@equinor/roma-framework 0.0.1

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.
@@ -0,0 +1,392 @@
1
+ (function(Pg){typeof define=="function"&&define.amd?define(Pg):Pg()})(function(){"use strict";var Pg=typeof document<"u"?document.currentScript:null;function RH(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 YI(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lT={exports:{}},Dg={},cT={exports:{}},_n={};/**
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 QI;function kH(){if(QI)return _n;QI=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"),c=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($){return $===null||typeof $!="object"?null:($=E&&$[E]||$["@@iterator"],typeof $=="function"?$:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,O={};function F($,ne,ke){this.props=$,this.context=ne,this.refs=O,this.updater=ke||T}F.prototype.isReactComponent={},F.prototype.setState=function($,ne){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,ne,"setState")},F.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function H(){}H.prototype=F.prototype;function D($,ne,ke){this.props=$,this.context=ne,this.refs=O,this.updater=ke||T}var q=D.prototype=new H;q.constructor=D,A(q,F.prototype),q.isPureReactComponent=!0;var U=Array.isArray,V=Object.prototype.hasOwnProperty,te={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function Ne($,ne,ke){var lt,Le={},xt=null,Ut=null;if(ne!=null)for(lt in ne.ref!==void 0&&(Ut=ne.ref),ne.key!==void 0&&(xt=""+ne.key),ne)V.call(ne,lt)&&!Z.hasOwnProperty(lt)&&(Le[lt]=ne[lt]);var Bt=arguments.length-2;if(Bt===1)Le.children=ke;else if(1<Bt){for(var wt=Array(Bt),gn=0;gn<Bt;gn++)wt[gn]=arguments[gn+2];Le.children=wt}if($&&$.defaultProps)for(lt in Bt=$.defaultProps,Bt)Le[lt]===void 0&&(Le[lt]=Bt[lt]);return{$$typeof:n,type:$,key:xt,ref:Ut,props:Le,_owner:te.current}}function Ze($,ne){return{$$typeof:n,type:$.type,key:ne,ref:$.ref,props:$.props,_owner:$._owner}}function it($){return typeof $=="object"&&$!==null&&$.$$typeof===n}function Me($){var ne={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(ke){return ne[ke]})}var ze=/\/+/g;function ee($,ne){return typeof $=="object"&&$!==null&&$.key!=null?Me(""+$.key):ne.toString(36)}function J($,ne,ke,lt,Le){var xt=typeof $;(xt==="undefined"||xt==="boolean")&&($=null);var Ut=!1;if($===null)Ut=!0;else switch(xt){case"string":case"number":Ut=!0;break;case"object":switch($.$$typeof){case n:case e:Ut=!0}}if(Ut)return Ut=$,Le=Le(Ut),$=lt===""?"."+ee(Ut,0):lt,U(Le)?(ke="",$!=null&&(ke=$.replace(ze,"$&/")+"/"),J(Le,ne,ke,"",function(gn){return gn})):Le!=null&&(it(Le)&&(Le=Ze(Le,ke+(!Le.key||Ut&&Ut.key===Le.key?"":(""+Le.key).replace(ze,"$&/")+"/")+$)),ne.push(Le)),1;if(Ut=0,lt=lt===""?".":lt+":",U($))for(var Bt=0;Bt<$.length;Bt++){xt=$[Bt];var wt=lt+ee(xt,Bt);Ut+=J(xt,ne,ke,wt,Le)}else if(wt=S($),typeof wt=="function")for($=wt.call($),Bt=0;!(xt=$.next()).done;)xt=xt.value,wt=lt+ee(xt,Bt++),Ut+=J(xt,ne,ke,wt,Le);else if(xt==="object")throw ne=String($),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.");return Ut}function ye($,ne,ke){if($==null)return $;var lt=[],Le=0;return J($,lt,"","",function(xt){return ne.call(ke,xt,Le++)}),lt}function me($){if($._status===-1){var ne=$._result;ne=ne(),ne.then(function(ke){($._status===0||$._status===-1)&&($._status=1,$._result=ke)},function(ke){($._status===0||$._status===-1)&&($._status=2,$._result=ke)}),$._status===-1&&($._status=0,$._result=ne)}if($._status===1)return $._result.default;throw $._result}var he={current:null},G={transition:null},ge={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:G,ReactCurrentOwner:te};return _n.Children={map:ye,forEach:function($,ne,ke){ye($,function(){ne.apply(this,arguments)},ke)},count:function($){var ne=0;return ye($,function(){ne++}),ne},toArray:function($){return ye($,function(ne){return ne})||[]},only:function($){if(!it($))throw Error("React.Children.only expected to receive a single React element child.");return $}},_n.Component=F,_n.Fragment=t,_n.Profiler=a,_n.PureComponent=D,_n.StrictMode=r,_n.Suspense=p,_n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ge,_n.cloneElement=function($,ne,ke){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var lt=A({},$.props),Le=$.key,xt=$.ref,Ut=$._owner;if(ne!=null){if(ne.ref!==void 0&&(xt=ne.ref,Ut=te.current),ne.key!==void 0&&(Le=""+ne.key),$.type&&$.type.defaultProps)var Bt=$.type.defaultProps;for(wt in ne)V.call(ne,wt)&&!Z.hasOwnProperty(wt)&&(lt[wt]=ne[wt]===void 0&&Bt!==void 0?Bt[wt]:ne[wt])}var wt=arguments.length-2;if(wt===1)lt.children=ke;else if(1<wt){Bt=Array(wt);for(var gn=0;gn<wt;gn++)Bt[gn]=arguments[gn+2];lt.children=Bt}return{$$typeof:n,type:$.type,key:Le,ref:xt,props:lt,_owner:Ut}},_n.createContext=function($){return $={$$typeof:c,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:l,_context:$},$.Consumer=$},_n.createElement=Ne,_n.createFactory=function($){var ne=Ne.bind(null,$);return ne.type=$,ne},_n.createRef=function(){return{current:null}},_n.forwardRef=function($){return{$$typeof:f,render:$}},_n.isValidElement=it,_n.lazy=function($){return{$$typeof:y,_payload:{_status:-1,_result:$},_init:me}},_n.memo=function($,ne){return{$$typeof:m,type:$,compare:ne===void 0?null:ne}},_n.startTransition=function($){var ne=G.transition;G.transition={};try{$()}finally{G.transition=ne}},_n.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},_n.useCallback=function($,ne){return he.current.useCallback($,ne)},_n.useContext=function($){return he.current.useContext($)},_n.useDebugValue=function(){},_n.useDeferredValue=function($){return he.current.useDeferredValue($)},_n.useEffect=function($,ne){return he.current.useEffect($,ne)},_n.useId=function(){return he.current.useId()},_n.useImperativeHandle=function($,ne,ke){return he.current.useImperativeHandle($,ne,ke)},_n.useInsertionEffect=function($,ne){return he.current.useInsertionEffect($,ne)},_n.useLayoutEffect=function($,ne){return he.current.useLayoutEffect($,ne)},_n.useMemo=function($,ne){return he.current.useMemo($,ne)},_n.useReducer=function($,ne,ke){return he.current.useReducer($,ne,ke)},_n.useRef=function($){return he.current.useRef($)},_n.useState=function($){return he.current.useState($)},_n.useSyncExternalStore=function($,ne,ke){return he.current.useSyncExternalStore($,ne,ke)},_n.useTransition=function(){return he.current.useTransition()},_n.version="18.2.0",_n}var Lg={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
+ */Lg.exports;var XI;function AH(){return XI||(XI=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"),c=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"),O=Symbol.for("react.offscreen"),F=Symbol.iterator,H="@@iterator";function D(I){if(I===null||typeof I!="object")return null;var B=F&&I[F]||I[H];return typeof B=="function"?B:null}var q={current:null},U={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},te={current:null},Z={},Ne=null;function Ze(I){Ne=I}Z.setExtraStackFrame=function(I){Ne=I},Z.getCurrentStack=null,Z.getStackAddendum=function(){var I="";Ne&&(I+=Ne);var B=Z.getCurrentStack;return B&&(I+=B()||""),I};var it=!1,Me=!1,ze=!1,ee=!1,J=!1,ye={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:U,ReactCurrentOwner:te};ye.ReactDebugCurrentFrame=Z,ye.ReactCurrentActQueue=V;function me(I){{for(var B=arguments.length,de=new Array(B>1?B-1:0),_e=1;_e<B;_e++)de[_e-1]=arguments[_e];G("warn",I,de)}}function he(I){{for(var B=arguments.length,de=new Array(B>1?B-1:0),_e=1;_e<B;_e++)de[_e-1]=arguments[_e];G("error",I,de)}}function G(I,B,de){{var _e=ye.ReactDebugCurrentFrame,He=_e.getStackAddendum();He!==""&&(B+="%s",de=de.concat([He]));var Mt=de.map(function(Xe){return String(Xe)});Mt.unshift("Warning: "+B),Function.prototype.apply.call(console[I],console,Mt)}}var ge={};function $(I,B){{var de=I.constructor,_e=de&&(de.displayName||de.name)||"ReactClass",He=_e+"."+B;if(ge[He])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.",B,_e),ge[He]=!0}}var ne={isMounted:function(I){return!1},enqueueForceUpdate:function(I,B,de){$(I,"forceUpdate")},enqueueReplaceState:function(I,B,de,_e){$(I,"replaceState")},enqueueSetState:function(I,B,de,_e){$(I,"setState")}},ke=Object.assign,lt={};Object.freeze(lt);function Le(I,B,de){this.props=I,this.context=B,this.refs=lt,this.updater=de||ne}Le.prototype.isReactComponent={},Le.prototype.setState=function(I,B){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,B,"setState")},Le.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};{var xt={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)."]},Ut=function(I,B){Object.defineProperty(Le.prototype,I,{get:function(){me("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})};for(var Bt in xt)xt.hasOwnProperty(Bt)&&Ut(Bt,xt[Bt])}function wt(){}wt.prototype=Le.prototype;function gn(I,B,de){this.props=I,this.context=B,this.refs=lt,this.updater=de||ne}var Gr=gn.prototype=new wt;Gr.constructor=gn,ke(Gr,Le.prototype),Gr.isPureReactComponent=!0;function Wn(){var I={current:null};return Object.seal(I),I}var hi=Array.isArray;function ar(I){return hi(I)}function ro(I){{var B=typeof Symbol=="function"&&Symbol.toStringTag,de=B&&I[Symbol.toStringTag]||I.constructor.name||"Object";return de}}function sr(I){try{return Lr(I),!1}catch{return!0}}function Lr(I){return""+I}function lr(I){if(sr(I))return he("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ro(I)),Lr(I)}function go(I,B,de){var _e=I.displayName;if(_e)return _e;var He=B.displayName||B.name||"";return He!==""?de+"("+He+")":de}function No(I){return I.displayName||"Context"}function Xn(I){if(I==null)return null;if(typeof I.tag=="number"&&he("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 l:return"Fragment";case a:return"Portal";case f:return"Profiler";case c:return"StrictMode";case E:return"Suspense";case S:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case m:var B=I;return No(B)+".Consumer";case p:var de=I;return No(de._context)+".Provider";case y:return go(I,I.render,"ForwardRef");case T:var _e=I.displayName||null;return _e!==null?_e:Xn(I.type)||"Memo";case A:{var He=I,Mt=He._payload,Xe=He._init;try{return Xn(Xe(Mt))}catch{return null}}}return null}var yo=Object.prototype.hasOwnProperty,Vo={key:!0,ref:!0,__self:!0,__source:!0},_o,Ii,oo;oo={};function Co(I){if(yo.call(I,"ref")){var B=Object.getOwnPropertyDescriptor(I,"ref").get;if(B&&B.isReactWarning)return!1}return I.ref!==void 0}function nr(I){if(yo.call(I,"key")){var B=Object.getOwnPropertyDescriptor(I,"key").get;if(B&&B.isReactWarning)return!1}return I.key!==void 0}function Eo(I,B){var de=function(){_o||(_o=!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)",B))};de.isReactWarning=!0,Object.defineProperty(I,"key",{get:de,configurable:!0})}function Ha(I,B){var de=function(){Ii||(Ii=!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)",B))};de.isReactWarning=!0,Object.defineProperty(I,"ref",{get:de,configurable:!0})}function pi(I){if(typeof I.ref=="string"&&te.current&&I.__self&&te.current.stateNode!==I.__self){var B=Xn(te.current.type);oo[B]||(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',B,I.ref),oo[B]=!0)}}var Ve=function(I,B,de,_e,He,Mt,Xe){var It={$$typeof:r,type:I,key:B,ref:de,props:Xe,_owner:Mt};return It._store={},Object.defineProperty(It._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(It,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.defineProperty(It,"_source",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.freeze&&(Object.freeze(It.props),Object.freeze(It)),It};function mt(I,B,de){var _e,He={},Mt=null,Xe=null,It=null,sn=null;if(B!=null){Co(B)&&(Xe=B.ref,pi(B)),nr(B)&&(lr(B.key),Mt=""+B.key),It=B.__self===void 0?null:B.__self,sn=B.__source===void 0?null:B.__source;for(_e in B)yo.call(B,_e)&&!Vo.hasOwnProperty(_e)&&(He[_e]=B[_e])}var Rn=arguments.length-2;if(Rn===1)He.children=de;else if(Rn>1){for(var Jn=Array(Rn),qn=0;qn<Rn;qn++)Jn[qn]=arguments[qn+2];Object.freeze&&Object.freeze(Jn),He.children=Jn}if(I&&I.defaultProps){var Zn=I.defaultProps;for(_e in Zn)He[_e]===void 0&&(He[_e]=Zn[_e])}if(Mt||Xe){var ir=typeof I=="function"?I.displayName||I.name||"Unknown":I;Mt&&Eo(He,ir),Xe&&Ha(He,ir)}return Ve(I,Mt,Xe,It,sn,te.current,He)}function Xt(I,B){var de=Ve(I.type,B,I.ref,I._self,I._source,I._owner,I.props);return de}function re(I,B,de){if(I==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var _e,He=ke({},I.props),Mt=I.key,Xe=I.ref,It=I._self,sn=I._source,Rn=I._owner;if(B!=null){Co(B)&&(Xe=B.ref,Rn=te.current),nr(B)&&(lr(B.key),Mt=""+B.key);var Jn;I.type&&I.type.defaultProps&&(Jn=I.type.defaultProps);for(_e in B)yo.call(B,_e)&&!Vo.hasOwnProperty(_e)&&(B[_e]===void 0&&Jn!==void 0?He[_e]=Jn[_e]:He[_e]=B[_e])}var qn=arguments.length-2;if(qn===1)He.children=de;else if(qn>1){for(var Zn=Array(qn),ir=0;ir<qn;ir++)Zn[ir]=arguments[ir+2];He.children=Zn}return Ve(I.type,Mt,Xe,It,sn,Rn,He)}function se(I){return typeof I=="object"&&I!==null&&I.$$typeof===r}var Te=".",qe=":";function gt(I){var B=/[=:]/g,de={"=":"=0",":":"=2"},_e=I.replace(B,function(He){return de[He]});return"$"+_e}var Je=!1,yt=/\/+/g;function Ke(I){return I.replace(yt,"$&/")}function Be(I,B){return typeof I=="object"&&I!==null&&I.key!=null?(lr(I.key),gt(""+I.key)):B.toString(36)}function on(I,B,de,_e,He){var Mt=typeof I;(Mt==="undefined"||Mt==="boolean")&&(I=null);var Xe=!1;if(I===null)Xe=!0;else switch(Mt){case"string":case"number":Xe=!0;break;case"object":switch(I.$$typeof){case r:case a:Xe=!0}}if(Xe){var It=I,sn=He(It),Rn=_e===""?Te+Be(It,0):_e;if(ar(sn)){var Jn="";Rn!=null&&(Jn=Ke(Rn)+"/"),on(sn,B,Jn,"",function(Jy){return Jy})}else sn!=null&&(se(sn)&&(sn.key&&(!It||It.key!==sn.key)&&lr(sn.key),sn=Xt(sn,de+(sn.key&&(!It||It.key!==sn.key)?Ke(""+sn.key)+"/":"")+Rn)),B.push(sn));return 1}var qn,Zn,ir=0,yn=_e===""?Te:_e+qe;if(ar(I))for(var Cl=0;Cl<I.length;Cl++)qn=I[Cl],Zn=yn+Be(qn,Cl),ir+=on(qn,B,de,Zn,He);else{var Qd=D(I);if(typeof Qd=="function"){var Hh=I;Qd===Hh.entries&&(Je||me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Je=!0);for(var Xy=Qd.call(Hh),_s,jh=0;!(_s=Xy.next()).done;)qn=_s.value,Zn=yn+Be(qn,jh++),ir+=on(qn,B,de,Zn,He)}else if(Mt==="object"){var zh=String(I);throw new Error("Objects are not valid as a React child (found: "+(zh==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":zh)+"). If you meant to render a collection of children, use an array instead.")}}return ir}function Dn(I,B,de){if(I==null)return I;var _e=[],He=0;return on(I,_e,"","",function(Mt){return B.call(de,Mt,He++)}),_e}function pn(I){var B=0;return Dn(I,function(){B++}),B}function Bn(I,B,de){Dn(I,function(){B.apply(this,arguments)},de)}function cr(I){return Dn(I,function(B){return B})||[]}function Ko(I){if(!se(I))throw new Error("React.Children.only expected to receive a single React element child.");return I}function vi(I){var B={$$typeof:m,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};B.Provider={$$typeof:p,_context:B};var de=!1,_e=!1,He=!1;{var Mt={$$typeof:m,_context:B};Object.defineProperties(Mt,{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?")),B.Provider},set:function(Xe){B.Provider=Xe}},_currentValue:{get:function(){return B._currentValue},set:function(Xe){B._currentValue=Xe}},_currentValue2:{get:function(){return B._currentValue2},set:function(Xe){B._currentValue2=Xe}},_threadCount:{get:function(){return B._threadCount},set:function(Xe){B._threadCount=Xe}},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?")),B.Consumer}},displayName:{get:function(){return B.displayName},set:function(Xe){He||(me("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Xe),He=!0)}}}),B.Consumer=Mt}return B._currentRenderer=null,B._currentRenderer2=null,B}var wo=-1,Xi=0,Sr=1,io=2;function ao(I){if(I._status===wo){var B=I._result,de=B();if(de.then(function(Mt){if(I._status===Xi||I._status===wo){var Xe=I;Xe._status=Sr,Xe._result=Mt}},function(Mt){if(I._status===Xi||I._status===wo){var Xe=I;Xe._status=io,Xe._result=Mt}}),I._status===wo){var _e=I;_e._status=Xi,_e._result=de}}if(I._status===Sr){var He=I._result;return He===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?`,He),"default"in He||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'))`,He),He.default}else throw I._result}function Go(I){var B={_status:wo,_result:I},de={$$typeof:A,_payload:B,_init:ao};{var _e,He;Object.defineProperties(de,{defaultProps:{configurable:!0,get:function(){return _e},set:function(Mt){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=Mt,Object.defineProperty(de,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return He},set:function(Mt){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."),He=Mt,Object.defineProperty(de,"propTypes",{enumerable:!0})}}})}return de}function Ji(I){I!=null&&I.$$typeof===T?he("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!="function"?he("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&he("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&(I.defaultProps!=null||I.propTypes!=null)&&he("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var B={$$typeof:y,render:I};{var de;Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return de},set:function(_e){de=_e,!I.name&&!I.displayName&&(I.displayName=_e)}})}return B}var z;z=Symbol.for("react.module.reference");function Ce(I){return!!(typeof I=="string"||typeof I=="function"||I===l||I===f||J||I===c||I===E||I===S||ee||I===O||it||Me||ze||typeof I=="object"&&I!==null&&(I.$$typeof===A||I.$$typeof===T||I.$$typeof===p||I.$$typeof===m||I.$$typeof===y||I.$$typeof===z||I.getModuleId!==void 0))}function $e(I,B){Ce(I)||he("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I);var de={$$typeof:T,type:I,compare:B===void 0?null:B};{var _e;Object.defineProperty(de,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(He){_e=He,!I.name&&!I.displayName&&(I.displayName=He)}})}return de}function We(){var I=q.current;return I===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.`),I}function Ht(I){var B=We();if(I._context!==void 0){var de=I._context;de.Consumer===I?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===I&&he("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return B.useContext(I)}function Tt(I){var B=We();return B.useState(I)}function Ft(I,B,de){var _e=We();return _e.useReducer(I,B,de)}function bt(I){var B=We();return B.useRef(I)}function Ur(I,B){var de=We();return de.useEffect(I,B)}function rr(I,B){var de=We();return de.useInsertionEffect(I,B)}function or(I,B){var de=We();return de.useLayoutEffect(I,B)}function Wo(I,B){var de=We();return de.useCallback(I,B)}function Ls(I,B){var de=We();return de.useMemo(I,B)}function $d(I,B,de){var _e=We();return _e.useImperativeHandle(I,B,de)}function Sn(I,B){{var de=We();return de.useDebugValue(I,B)}}function Yy(){var I=We();return I.useTransition()}function ms(I){var B=We();return B.useDeferredValue(I)}function an(){var I=We();return I.useId()}function Us(I,B,de){var _e=We();return _e.useSyncExternalStore(I,B,de)}var fc=0,Hd,hc,Zi,Lh,Oi,Uh,Fh;function Wv(){}Wv.__reactDisabledLog=!0;function jd(){{if(fc===0){Hd=console.log,hc=console.info,Zi=console.warn,Lh=console.error,Oi=console.group,Uh=console.groupCollapsed,Fh=console.groupEnd;var I={configurable:!0,enumerable:!0,value:Wv,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}fc++}}function pc(){{if(fc--,fc===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ke({},I,{value:Hd}),info:ke({},I,{value:hc}),warn:ke({},I,{value:Zi}),error:ke({},I,{value:Lh}),group:ke({},I,{value:Oi}),groupCollapsed:ke({},I,{value:Uh}),groupEnd:ke({},I,{value:Fh})})}fc<0&&he("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var gs=ye.ReactCurrentDispatcher,Ni;function vc(I,B,de){{if(Ni===void 0)try{throw Error()}catch(He){var _e=He.stack.trim().match(/\n( *(at )?)/);Ni=_e&&_e[1]||""}return`
30
+ `+Ni+I}}var mc=!1,gc;{var zd=typeof WeakMap=="function"?WeakMap:Map;gc=new zd}function Bd(I,B){if(!I||mc)return"";{var de=gc.get(I);if(de!==void 0)return de}var _e;mc=!0;var He=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Mt;Mt=gs.current,gs.current=null,jd();try{if(B){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(yn){_e=yn}Reflect.construct(I,[],Xe)}else{try{Xe.call()}catch(yn){_e=yn}I.call(Xe.prototype)}}else{try{throw Error()}catch(yn){_e=yn}I()}}catch(yn){if(yn&&_e&&typeof yn.stack=="string"){for(var It=yn.stack.split(`
31
+ `),sn=_e.stack.split(`
32
+ `),Rn=It.length-1,Jn=sn.length-1;Rn>=1&&Jn>=0&&It[Rn]!==sn[Jn];)Jn--;for(;Rn>=1&&Jn>=0;Rn--,Jn--)if(It[Rn]!==sn[Jn]){if(Rn!==1||Jn!==1)do if(Rn--,Jn--,Jn<0||It[Rn]!==sn[Jn]){var qn=`
33
+ `+It[Rn].replace(" at new "," at ");return I.displayName&&qn.includes("<anonymous>")&&(qn=qn.replace("<anonymous>",I.displayName)),typeof I=="function"&&gc.set(I,qn),qn}while(Rn>=1&&Jn>=0);break}}}finally{mc=!1,gs.current=Mt,pc(),Error.prepareStackTrace=He}var Zn=I?I.displayName||I.name:"",ir=Zn?vc(Zn):"";return typeof I=="function"&&gc.set(I,ir),ir}function yl(I,B,de){return Bd(I,!1)}function Qy(I){var B=I.prototype;return!!(B&&B.isReactComponent)}function Fs(I,B,de){if(I==null)return"";if(typeof I=="function")return Bd(I,Qy(I));if(typeof I=="string")return vc(I);switch(I){case E:return vc("Suspense");case S:return vc("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case y:return yl(I.render);case T:return Fs(I.type,B,de);case A:{var _e=I,He=_e._payload,Mt=_e._init;try{return Fs(Mt(He),B,de)}catch{}}}return""}var xn={},qd=ye.ReactDebugCurrentFrame;function Ru(I){if(I){var B=I._owner,de=Fs(I.type,I._source,B?B.type:null);qd.setExtraStackFrame(de)}else qd.setExtraStackFrame(null)}function Vd(I,B,de,_e,He){{var Mt=Function.call.bind(yo);for(var Xe in I)if(Mt(I,Xe)){var It=void 0;try{if(typeof I[Xe]!="function"){var sn=Error((_e||"React class")+": "+de+" type `"+Xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[Xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw sn.name="Invariant Violation",sn}It=I[Xe](B,Xe,_e,de,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Rn){It=Rn}It&&!(It instanceof Error)&&(Ru(He),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,Xe,typeof It),Ru(null)),It instanceof Error&&!(It.message in xn)&&(xn[It.message]=!0,Ru(He),he("Failed %s type: %s",de,It.message),Ru(null))}}}function Tn(I){if(I){var B=I._owner,de=Fs(I.type,I._source,B?B.type:null);Ze(de)}else Ze(null)}var Kd;Kd=!1;function Gd(){if(te.current){var I=Xn(te.current.type);if(I)return`
34
+
35
+ Check the render method of \``+I+"`."}return""}function qt(I){if(I!==void 0){var B=I.fileName.replace(/^.*[\\\/]/,""),de=I.lineNumber;return`
36
+
37
+ Check your code at `+B+":"+de+"."}return""}function ku(I){return I!=null?qt(I.__source):""}var Tr={};function ea(I){var B=Gd();if(!B){var de=typeof I=="string"?I:I.displayName||I.name;de&&(B=`
38
+
39
+ Check the top-level render call using <`+de+">.")}return B}function Mi(I,B){if(!(!I._store||I._store.validated||I.key!=null)){I._store.validated=!0;var de=ea(B);if(!Tr[de]){Tr[de]=!0;var _e="";I&&I._owner&&I._owner!==te.current&&(_e=" It was passed a child from "+Xn(I._owner.type)+"."),Tn(I),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),Tn(null)}}}function yc(I,B){if(typeof I=="object"){if(ar(I))for(var de=0;de<I.length;de++){var _e=I[de];se(_e)&&Mi(_e,B)}else if(se(I))I._store&&(I._store.validated=!0);else if(I){var He=D(I);if(typeof He=="function"&&He!==I.entries)for(var Mt=He.call(I),Xe;!(Xe=Mt.next()).done;)se(Xe.value)&&Mi(Xe.value,B)}}}function Fr(I){{var B=I.type;if(B==null||typeof B=="string")return;var de;if(typeof B=="function")de=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===y||B.$$typeof===T))de=B.propTypes;else return;if(de){var _e=Xn(B);Vd(de,I.props,"prop",_e,I)}else if(B.PropTypes!==void 0&&!Kd){Kd=!0;var He=Xn(B);he("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",He||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&he("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ln(I){{for(var B=Object.keys(I.props),de=0;de<B.length;de++){var _e=B[de];if(_e!=="children"&&_e!=="key"){Tn(I),he("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_e),Tn(null);break}}I.ref!==null&&(Tn(I),he("Invalid attribute `ref` supplied to `React.Fragment`."),Tn(null))}}function Yv(I,B,de){var _e=Ce(I);if(!_e){var He="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(He+=" 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 Mt=ku(B);Mt?He+=Mt:He+=Gd();var Xe;I===null?Xe="null":ar(I)?Xe="array":I!==void 0&&I.$$typeof===r?(Xe="<"+(Xn(I.type)||"Unknown")+" />",He=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof I,he("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,He)}var It=mt.apply(this,arguments);if(It==null)return It;if(_e)for(var sn=2;sn<arguments.length;sn++)yc(arguments[sn],I);return I===l?Ln(It):Fr(It),It}var ta=!1;function Mo(I){var B=Yv.bind(null,I);return B.type=I,ta||(ta=!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(B,"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:I}),I}}),B}function $s(I,B,de){for(var _e=re.apply(this,arguments),He=2;He<arguments.length;He++)yc(arguments[He],_e.type);return Fr(_e),_e}function Qv(I,B){var de=U.transition;U.transition={};var _e=U.transition;U.transition._updatedFibers=new Set;try{I()}finally{if(U.transition=de,de===null&&_e._updatedFibers){var He=_e._updatedFibers.size;He>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 _l=!1,_c=null;function Xv(I){if(_c===null)try{var B=("require"+Math.random()).slice(0,7),de=n&&n[B];_c=de.call(n,"timers").setImmediate}catch{_c=function(He){_l===!1&&(_l=!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 Mt=new MessageChannel;Mt.port1.onmessage=He,Mt.port2.postMessage(void 0)}}return _c(I)}var ja=0,Cc=!1;function Ec(I){{var B=ja;ja++,V.current===null&&(V.current=[]);var de=V.isBatchingLegacy,_e;try{if(V.isBatchingLegacy=!0,_e=I(),!de&&V.didScheduleLegacyUpdate){var He=V.current;He!==null&&(V.didScheduleLegacyUpdate=!1,bc(He))}}catch(Zn){throw za(B),Zn}finally{V.isBatchingLegacy=de}if(_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var Mt=_e,Xe=!1,It={then:function(Zn,ir){Xe=!0,Mt.then(function(yn){za(B),ja===0?Wd(yn,Zn,ir):Zn(yn)},function(yn){za(B),ir(yn)})}};return!Cc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Xe||(Cc=!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 () => ...);"))}),It}else{var sn=_e;if(za(B),ja===0){var Rn=V.current;Rn!==null&&(bc(Rn),V.current=null);var Jn={then:function(Zn,ir){V.current===null?(V.current=[],Wd(sn,Zn,ir)):Zn(sn)}};return Jn}else{var qn={then:function(Zn,ir){Zn(sn)}};return qn}}}}function za(I){I!==ja-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. "),ja=I}function Wd(I,B,de){{var _e=V.current;if(_e!==null)try{bc(_e),Xv(function(){_e.length===0?(V.current=null,B(I)):Wd(I,B,de)})}catch(He){de(He)}else B(I)}}var wc=!1;function bc(I){if(!wc){wc=!0;var B=0;try{for(;B<I.length;B++){var de=I[B];do de=de(!0);while(de!==null)}I.length=0}catch(_e){throw I=I.slice(B+1),_e}finally{wc=!1}}}var Au=Yv,Yd=$s,$h=Mo,ys={map:Dn,forEach:Bn,count:pn,toArray:cr,only:Ko};e.Children=ys,e.Component=Le,e.Fragment=l,e.Profiler=f,e.PureComponent=gn,e.StrictMode=c,e.Suspense=E,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ye,e.cloneElement=Yd,e.createContext=vi,e.createElement=Au,e.createFactory=$h,e.createRef=Wn,e.forwardRef=Ji,e.isValidElement=se,e.lazy=Go,e.memo=$e,e.startTransition=Qv,e.unstable_act=Ec,e.useCallback=Wo,e.useContext=Ht,e.useDebugValue=Sn,e.useDeferredValue=ms,e.useEffect=Ur,e.useId=an,e.useImperativeHandle=$d,e.useInsertionEffect=rr,e.useLayoutEffect=or,e.useMemo=Ls,e.useReducer=Ft,e.useRef=bt,e.useState=Tt,e.useSyncExternalStore=Us,e.useTransition=Yy,e.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Lg,Lg.exports)),Lg.exports}process.env.NODE_ENV==="production"?cT.exports=kH():cT.exports=AH();var P=cT.exports;const tu=YI(P),uT=RH({__proto__:null,default:tu},[P]);/**
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 JI;function xH(){if(JI)return Dg;JI=1;var n=P,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 c(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 Dg.Fragment=t,Dg.jsx=c,Dg.jsxs=c,Dg}var Ug={};/**
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 ZI;function IH(){return ZI||(ZI=1,process.env.NODE_ENV!=="production"&&function(){var n=P,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"),c=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,O="@@iterator";function F(z){if(z===null||typeof z!="object")return null;var Ce=A&&z[A]||z[O];return typeof Ce=="function"?Ce:null}var H=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(z){{for(var Ce=arguments.length,$e=new Array(Ce>1?Ce-1:0),We=1;We<Ce;We++)$e[We-1]=arguments[We];q("error",z,$e)}}function q(z,Ce,$e){{var We=H.ReactDebugCurrentFrame,Ht=We.getStackAddendum();Ht!==""&&(Ce+="%s",$e=$e.concat([Ht]));var Tt=$e.map(function(Ft){return String(Ft)});Tt.unshift("Warning: "+Ce),Function.prototype.apply.call(console[z],console,Tt)}}var U=!1,V=!1,te=!1,Z=!1,Ne=!1,Ze;Ze=Symbol.for("react.module.reference");function it(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===l||Ne||z===a||z===m||z===y||Z||z===T||U||V||te||typeof z=="object"&&z!==null&&(z.$$typeof===S||z.$$typeof===E||z.$$typeof===c||z.$$typeof===f||z.$$typeof===p||z.$$typeof===Ze||z.getModuleId!==void 0))}function Me(z,Ce,$e){var We=z.displayName;if(We)return We;var Ht=Ce.displayName||Ce.name||"";return Ht!==""?$e+"("+Ht+")":$e}function ze(z){return z.displayName||"Context"}function ee(z){if(z==null)return null;if(typeof z.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof z=="function")return z.displayName||z.name||null;if(typeof z=="string")return z;switch(z){case 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 z=="object")switch(z.$$typeof){case f:var Ce=z;return ze(Ce)+".Consumer";case c:var $e=z;return ze($e._context)+".Provider";case p:return Me(z,z.render,"ForwardRef");case E:var We=z.displayName||null;return We!==null?We:ee(z.type)||"Memo";case S:{var Ht=z,Tt=Ht._payload,Ft=Ht._init;try{return ee(Ft(Tt))}catch{return null}}}return null}var J=Object.assign,ye=0,me,he,G,ge,$,ne,ke;function lt(){}lt.__reactDisabledLog=!0;function Le(){{if(ye===0){me=console.log,he=console.info,G=console.warn,ge=console.error,$=console.group,ne=console.groupCollapsed,ke=console.groupEnd;var z={configurable:!0,enumerable:!0,value:lt,writable:!0};Object.defineProperties(console,{info:z,log:z,warn:z,error:z,group:z,groupCollapsed:z,groupEnd:z})}ye++}}function xt(){{if(ye--,ye===0){var z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},z,{value:me}),info:J({},z,{value:he}),warn:J({},z,{value:G}),error:J({},z,{value:ge}),group:J({},z,{value:$}),groupCollapsed:J({},z,{value:ne}),groupEnd:J({},z,{value:ke})})}ye<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ut=H.ReactCurrentDispatcher,Bt;function wt(z,Ce,$e){{if(Bt===void 0)try{throw Error()}catch(Ht){var We=Ht.stack.trim().match(/\n( *(at )?)/);Bt=We&&We[1]||""}return`
56
+ `+Bt+z}}var gn=!1,Gr;{var Wn=typeof WeakMap=="function"?WeakMap:Map;Gr=new Wn}function hi(z,Ce){if(!z||gn)return"";{var $e=Gr.get(z);if($e!==void 0)return $e}var We;gn=!0;var Ht=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Tt;Tt=Ut.current,Ut.current=null,Le();try{if(Ce){var Ft=function(){throw Error()};if(Object.defineProperty(Ft.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ft,[])}catch(Sn){We=Sn}Reflect.construct(z,[],Ft)}else{try{Ft.call()}catch(Sn){We=Sn}z.call(Ft.prototype)}}else{try{throw Error()}catch(Sn){We=Sn}z()}}catch(Sn){if(Sn&&We&&typeof Sn.stack=="string"){for(var bt=Sn.stack.split(`
57
+ `),Ur=We.stack.split(`
58
+ `),rr=bt.length-1,or=Ur.length-1;rr>=1&&or>=0&&bt[rr]!==Ur[or];)or--;for(;rr>=1&&or>=0;rr--,or--)if(bt[rr]!==Ur[or]){if(rr!==1||or!==1)do if(rr--,or--,or<0||bt[rr]!==Ur[or]){var Wo=`
59
+ `+bt[rr].replace(" at new "," at ");return z.displayName&&Wo.includes("<anonymous>")&&(Wo=Wo.replace("<anonymous>",z.displayName)),typeof z=="function"&&Gr.set(z,Wo),Wo}while(rr>=1&&or>=0);break}}}finally{gn=!1,Ut.current=Tt,xt(),Error.prepareStackTrace=Ht}var Ls=z?z.displayName||z.name:"",$d=Ls?wt(Ls):"";return typeof z=="function"&&Gr.set(z,$d),$d}function ar(z,Ce,$e){return hi(z,!1)}function ro(z){var Ce=z.prototype;return!!(Ce&&Ce.isReactComponent)}function sr(z,Ce,$e){if(z==null)return"";if(typeof z=="function")return hi(z,ro(z));if(typeof z=="string")return wt(z);switch(z){case m:return wt("Suspense");case y:return wt("SuspenseList")}if(typeof z=="object")switch(z.$$typeof){case p:return ar(z.render);case E:return sr(z.type,Ce,$e);case S:{var We=z,Ht=We._payload,Tt=We._init;try{return sr(Tt(Ht),Ce,$e)}catch{}}}return""}var Lr=Object.prototype.hasOwnProperty,lr={},go=H.ReactDebugCurrentFrame;function No(z){if(z){var Ce=z._owner,$e=sr(z.type,z._source,Ce?Ce.type:null);go.setExtraStackFrame($e)}else go.setExtraStackFrame(null)}function Xn(z,Ce,$e,We,Ht){{var Tt=Function.call.bind(Lr);for(var Ft in z)if(Tt(z,Ft)){var bt=void 0;try{if(typeof z[Ft]!="function"){var Ur=Error((We||"React class")+": "+$e+" type `"+Ft+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof z[Ft]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ur.name="Invariant Violation",Ur}bt=z[Ft](Ce,Ft,We,$e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(rr){bt=rr}bt&&!(bt instanceof Error)&&(No(Ht),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",We||"React class",$e,Ft,typeof bt),No(null)),bt instanceof Error&&!(bt.message in lr)&&(lr[bt.message]=!0,No(Ht),D("Failed %s type: %s",$e,bt.message),No(null))}}}var yo=Array.isArray;function Vo(z){return yo(z)}function _o(z){{var Ce=typeof Symbol=="function"&&Symbol.toStringTag,$e=Ce&&z[Symbol.toStringTag]||z.constructor.name||"Object";return $e}}function Ii(z){try{return oo(z),!1}catch{return!0}}function oo(z){return""+z}function Co(z){if(Ii(z))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_o(z)),oo(z)}var nr=H.ReactCurrentOwner,Eo={key:!0,ref:!0,__self:!0,__source:!0},Ha,pi,Ve;Ve={};function mt(z){if(Lr.call(z,"ref")){var Ce=Object.getOwnPropertyDescriptor(z,"ref").get;if(Ce&&Ce.isReactWarning)return!1}return z.ref!==void 0}function Xt(z){if(Lr.call(z,"key")){var Ce=Object.getOwnPropertyDescriptor(z,"key").get;if(Ce&&Ce.isReactWarning)return!1}return z.key!==void 0}function re(z,Ce){if(typeof z.ref=="string"&&nr.current&&Ce&&nr.current.stateNode!==Ce){var $e=ee(nr.current.type);Ve[$e]||(D('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',ee(nr.current.type),z.ref),Ve[$e]=!0)}}function se(z,Ce){{var $e=function(){Ha||(Ha=!0,D("%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))};$e.isReactWarning=!0,Object.defineProperty(z,"key",{get:$e,configurable:!0})}}function Te(z,Ce){{var $e=function(){pi||(pi=!0,D("%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))};$e.isReactWarning=!0,Object.defineProperty(z,"ref",{get:$e,configurable:!0})}}var qe=function(z,Ce,$e,We,Ht,Tt,Ft){var bt={$$typeof:e,type:z,key:Ce,ref:$e,props:Ft,_owner:Tt};return bt._store={},Object.defineProperty(bt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(bt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:We}),Object.defineProperty(bt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ht}),Object.freeze&&(Object.freeze(bt.props),Object.freeze(bt)),bt};function gt(z,Ce,$e,We,Ht){{var Tt,Ft={},bt=null,Ur=null;$e!==void 0&&(Co($e),bt=""+$e),Xt(Ce)&&(Co(Ce.key),bt=""+Ce.key),mt(Ce)&&(Ur=Ce.ref,re(Ce,Ht));for(Tt in Ce)Lr.call(Ce,Tt)&&!Eo.hasOwnProperty(Tt)&&(Ft[Tt]=Ce[Tt]);if(z&&z.defaultProps){var rr=z.defaultProps;for(Tt in rr)Ft[Tt]===void 0&&(Ft[Tt]=rr[Tt])}if(bt||Ur){var or=typeof z=="function"?z.displayName||z.name||"Unknown":z;bt&&se(Ft,or),Ur&&Te(Ft,or)}return qe(z,bt,Ur,Ht,We,nr.current,Ft)}}var Je=H.ReactCurrentOwner,yt=H.ReactDebugCurrentFrame;function Ke(z){if(z){var Ce=z._owner,$e=sr(z.type,z._source,Ce?Ce.type:null);yt.setExtraStackFrame($e)}else yt.setExtraStackFrame(null)}var Be;Be=!1;function on(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function Dn(){{if(Je.current){var z=ee(Je.current.type);if(z)return`
60
+
61
+ Check the render method of \``+z+"`."}return""}}function pn(z){{if(z!==void 0){var Ce=z.fileName.replace(/^.*[\\\/]/,""),$e=z.lineNumber;return`
62
+
63
+ Check your code at `+Ce+":"+$e+"."}return""}}var Bn={};function cr(z){{var Ce=Dn();if(!Ce){var $e=typeof z=="string"?z:z.displayName||z.name;$e&&(Ce=`
64
+
65
+ Check the top-level render call using <`+$e+">.")}return Ce}}function Ko(z,Ce){{if(!z._store||z._store.validated||z.key!=null)return;z._store.validated=!0;var $e=cr(Ce);if(Bn[$e])return;Bn[$e]=!0;var We="";z&&z._owner&&z._owner!==Je.current&&(We=" It was passed a child from "+ee(z._owner.type)+"."),Ke(z),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$e,We),Ke(null)}}function vi(z,Ce){{if(typeof z!="object")return;if(Vo(z))for(var $e=0;$e<z.length;$e++){var We=z[$e];on(We)&&Ko(We,Ce)}else if(on(z))z._store&&(z._store.validated=!0);else if(z){var Ht=F(z);if(typeof Ht=="function"&&Ht!==z.entries)for(var Tt=Ht.call(z),Ft;!(Ft=Tt.next()).done;)on(Ft.value)&&Ko(Ft.value,Ce)}}}function wo(z){{var Ce=z.type;if(Ce==null||typeof Ce=="string")return;var $e;if(typeof Ce=="function")$e=Ce.propTypes;else if(typeof Ce=="object"&&(Ce.$$typeof===p||Ce.$$typeof===E))$e=Ce.propTypes;else return;if($e){var We=ee(Ce);Xn($e,z.props,"prop",We,z)}else if(Ce.PropTypes!==void 0&&!Be){Be=!0;var Ht=ee(Ce);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ht||"Unknown")}typeof Ce.getDefaultProps=="function"&&!Ce.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xi(z){{for(var Ce=Object.keys(z.props),$e=0;$e<Ce.length;$e++){var We=Ce[$e];if(We!=="children"&&We!=="key"){Ke(z),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",We),Ke(null);break}}z.ref!==null&&(Ke(z),D("Invalid attribute `ref` supplied to `React.Fragment`."),Ke(null))}}function Sr(z,Ce,$e,We,Ht,Tt){{var Ft=it(z);if(!Ft){var bt="";(z===void 0||typeof z=="object"&&z!==null&&Object.keys(z).length===0)&&(bt+=" 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 Ur=pn(Ht);Ur?bt+=Ur:bt+=Dn();var rr;z===null?rr="null":Vo(z)?rr="array":z!==void 0&&z.$$typeof===e?(rr="<"+(ee(z.type)||"Unknown")+" />",bt=" Did you accidentally export a JSX literal instead of a component?"):rr=typeof z,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",rr,bt)}var or=gt(z,Ce,$e,Ht,Tt);if(or==null)return or;if(Ft){var Wo=Ce.children;if(Wo!==void 0)if(We)if(Vo(Wo)){for(var Ls=0;Ls<Wo.length;Ls++)vi(Wo[Ls],z);Object.freeze&&Object.freeze(Wo)}else D("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 vi(Wo,z)}return z===r?Xi(or):wo(or),or}}function io(z,Ce,$e){return Sr(z,Ce,$e,!0)}function ao(z,Ce,$e){return Sr(z,Ce,$e,!1)}var Go=ao,Ji=io;Ug.Fragment=r,Ug.jsx=Go,Ug.jsxs=Ji}()),Ug}process.env.NODE_ENV==="production"?lT.exports=xH():lT.exports=IH();var ce=lT.exports,Fg={},dT={exports:{}},Ia={},oC={exports:{}},fT={};/**
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 eO;function OH(){return eO||(eO=1,function(n){function e(G,ge){var $=G.length;G.push(ge);e:for(;0<$;){var ne=$-1>>>1,ke=G[ne];if(0<a(ke,ge))G[ne]=ge,G[$]=ke,$=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],$=G.pop();if($!==ge){G[0]=$;e:for(var ne=0,ke=G.length,lt=ke>>>1;ne<lt;){var Le=2*(ne+1)-1,xt=G[Le],Ut=Le+1,Bt=G[Ut];if(0>a(xt,$))Ut<ke&&0>a(Bt,xt)?(G[ne]=Bt,G[Ut]=$,ne=Ut):(G[ne]=xt,G[Le]=$,ne=Le);else if(Ut<ke&&0>a(Bt,$))G[ne]=Bt,G[Ut]=$,ne=Ut;else break e}}return ge}function a(G,ge){var $=G.sortIndex-ge.sortIndex;return $!==0?$:G.id-ge.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;n.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();n.unstable_now=function(){return c.now()-f}}var p=[],m=[],y=1,E=null,S=3,T=!1,A=!1,O=!1,F=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function q(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 U(G){if(O=!1,q(G),!A)if(t(p)!==null)A=!0,me(V);else{var ge=t(m);ge!==null&&he(U,ge.startTime-G)}}function V(G,ge){A=!1,O&&(O=!1,H(Ne),Ne=-1),T=!0;var $=S;try{for(q(ge),E=t(p);E!==null&&(!(E.expirationTime>ge)||G&&!Me());){var ne=E.callback;if(typeof ne=="function"){E.callback=null,S=E.priorityLevel;var ke=ne(E.expirationTime<=ge);ge=n.unstable_now(),typeof ke=="function"?E.callback=ke:E===t(p)&&r(p),q(ge)}else r(p);E=t(p)}if(E!==null)var lt=!0;else{var Le=t(m);Le!==null&&he(U,Le.startTime-ge),lt=!1}return lt}finally{E=null,S=$,T=!1}}var te=!1,Z=null,Ne=-1,Ze=5,it=-1;function Me(){return!(n.unstable_now()-it<Ze)}function ze(){if(Z!==null){var G=n.unstable_now();it=G;var ge=!0;try{ge=Z(!0,G)}finally{ge?ee():(te=!1,Z=null)}}else te=!1}var ee;if(typeof D=="function")ee=function(){D(ze)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,ye=J.port2;J.port1.onmessage=ze,ee=function(){ye.postMessage(null)}}else ee=function(){F(ze,0)};function me(G){Z=G,te||(te=!0,ee())}function he(G,ge){Ne=F(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"):Ze=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 $=S;S=ge;try{return G()}finally{S=$}},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 $=S;S=G;try{return ge()}finally{S=$}},n.unstable_scheduleCallback=function(G,ge,$){var ne=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ne+$:ne):$=ne,G){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=$+ke,G={id:y++,callback:ge,priorityLevel:G,startTime:$,expirationTime:ke,sortIndex:-1},$>ne?(G.sortIndex=$,e(m,G),t(p)===null&&G===t(m)&&(O?(H(Ne),Ne=-1):O=!0,he(U,$-ne))):(G.sortIndex=ke,e(p,G),A||T||(A=!0,me(V))),G},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(G){var ge=S;return function(){var $=S;S=ge;try{return G.apply(this,arguments)}finally{S=$}}}}(fT)),fT}var hT={};/**
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 tO;function NH(){return tO||(tO=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(Ve,mt){var Xt=Ve.length;Ve.push(mt),f(Ve,mt,Xt)}function l(Ve){return Ve.length===0?null:Ve[0]}function c(Ve){if(Ve.length===0)return null;var mt=Ve[0],Xt=Ve.pop();return Xt!==mt&&(Ve[0]=Xt,p(Ve,Xt,0)),mt}function f(Ve,mt,Xt){for(var re=Xt;re>0;){var se=re-1>>>1,Te=Ve[se];if(m(Te,mt)>0)Ve[se]=mt,Ve[re]=Te,re=se;else return}}function p(Ve,mt,Xt){for(var re=Xt,se=Ve.length,Te=se>>>1;re<Te;){var qe=(re+1)*2-1,gt=Ve[qe],Je=qe+1,yt=Ve[Je];if(m(gt,mt)<0)Je<se&&m(yt,gt)<0?(Ve[re]=yt,Ve[Je]=mt,re=Je):(Ve[re]=gt,Ve[qe]=mt,re=qe);else if(Je<se&&m(yt,mt)<0)Ve[re]=yt,Ve[Je]=mt,re=Je;else return}}function m(Ve,mt){var Xt=Ve.sortIndex-mt.sortIndex;return Xt!==0?Xt:Ve.id-mt.id}var y=1,E=2,S=3,T=4,A=5;function O(Ve,mt){}var F=typeof performance=="object"&&typeof performance.now=="function";if(F){var H=performance;n.unstable_now=function(){return H.now()}}else{var D=Date,q=D.now();n.unstable_now=function(){return D.now()-q}}var U=1073741823,V=-1,te=250,Z=5e3,Ne=1e4,Ze=U,it=[],Me=[],ze=1,ee=null,J=S,ye=!1,me=!1,he=!1,G=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,$=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(Ve){for(var mt=l(Me);mt!==null;){if(mt.callback===null)c(Me);else if(mt.startTime<=Ve)c(Me),mt.sortIndex=mt.expirationTime,a(it,mt);else return;mt=l(Me)}}function ke(Ve){if(he=!1,ne(Ve),!me)if(l(it)!==null)me=!0,Co(lt);else{var mt=l(Me);mt!==null&&nr(ke,mt.startTime-Ve)}}function lt(Ve,mt){me=!1,he&&(he=!1,Eo()),ye=!0;var Xt=J;try{var re;if(!t)return Le(Ve,mt)}finally{ee=null,J=Xt,ye=!1}}function Le(Ve,mt){var Xt=mt;for(ne(Xt),ee=l(it);ee!==null&&!e&&!(ee.expirationTime>Xt&&(!Ve||No()));){var re=ee.callback;if(typeof re=="function"){ee.callback=null,J=ee.priorityLevel;var se=ee.expirationTime<=Xt,Te=re(se);Xt=n.unstable_now(),typeof Te=="function"?ee.callback=Te:ee===l(it)&&c(it),ne(Xt)}else c(it);ee=l(it)}if(ee!==null)return!0;var qe=l(Me);return qe!==null&&nr(ke,qe.startTime-Xt),!1}function xt(Ve,mt){switch(Ve){case y:case E:case S:case T:case A:break;default:Ve=S}var Xt=J;J=Ve;try{return mt()}finally{J=Xt}}function Ut(Ve){var mt;switch(J){case y:case E:case S:mt=S;break;default:mt=J;break}var Xt=J;J=mt;try{return Ve()}finally{J=Xt}}function Bt(Ve){var mt=J;return function(){var Xt=J;J=mt;try{return Ve.apply(this,arguments)}finally{J=Xt}}}function wt(Ve,mt,Xt){var re=n.unstable_now(),se;if(typeof Xt=="object"&&Xt!==null){var Te=Xt.delay;typeof Te=="number"&&Te>0?se=re+Te:se=re}else se=re;var qe;switch(Ve){case y:qe=V;break;case E:qe=te;break;case A:qe=Ze;break;case T:qe=Ne;break;case S:default:qe=Z;break}var gt=se+qe,Je={id:ze++,callback:mt,priorityLevel:Ve,startTime:se,expirationTime:gt,sortIndex:-1};return se>re?(Je.sortIndex=se,a(Me,Je),l(it)===null&&Je===l(Me)&&(he?Eo():he=!0,nr(ke,se-re))):(Je.sortIndex=gt,a(it,Je),!me&&!ye&&(me=!0,Co(lt))),Je}function gn(){}function Gr(){!me&&!ye&&(me=!0,Co(lt))}function Wn(){return l(it)}function hi(Ve){Ve.callback=null}function ar(){return J}var ro=!1,sr=null,Lr=-1,lr=r,go=-1;function No(){var Ve=n.unstable_now()-go;return!(Ve<lr)}function Xn(){}function yo(Ve){if(Ve<0||Ve>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ve>0?lr=Math.floor(1e3/Ve):lr=r}var Vo=function(){if(sr!==null){var Ve=n.unstable_now();go=Ve;var mt=!0,Xt=!0;try{Xt=sr(mt,Ve)}finally{Xt?_o():(ro=!1,sr=null)}}else ro=!1},_o;if(typeof $=="function")_o=function(){$(Vo)};else if(typeof MessageChannel<"u"){var Ii=new MessageChannel,oo=Ii.port2;Ii.port1.onmessage=Vo,_o=function(){oo.postMessage(null)}}else _o=function(){G(Vo,0)};function Co(Ve){sr=Ve,ro||(ro=!0,_o())}function nr(Ve,mt){Lr=G(function(){Ve(n.unstable_now())},mt)}function Eo(){ge(Lr),Lr=-1}var Ha=Xn,pi=null;n.unstable_IdlePriority=A,n.unstable_ImmediatePriority=y,n.unstable_LowPriority=T,n.unstable_NormalPriority=S,n.unstable_Profiling=pi,n.unstable_UserBlockingPriority=E,n.unstable_cancelCallback=hi,n.unstable_continueExecution=Gr,n.unstable_forceFrameRate=yo,n.unstable_getCurrentPriorityLevel=ar,n.unstable_getFirstCallbackNode=Wn,n.unstable_next=Ut,n.unstable_pauseExecution=gn,n.unstable_requestPaint=Ha,n.unstable_runWithPriority=xt,n.unstable_scheduleCallback=wt,n.unstable_shouldYield=No,n.unstable_wrapCallback=Bt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(hT)),hT}var nO;function rO(){return nO||(nO=1,process.env.NODE_ENV==="production"?oC.exports=OH():oC.exports=NH()),oC.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 oO;function MH(){if(oO)return Ia;oO=1;var n=P,e=rO();function t(s){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+s,v=1;v<arguments.length;v++)u+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+s+"; visit "+u+" 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,u){c(s,u),c(s+"Capture",u)}function c(s,u){for(a[s]=u,s=0;s<u.length;s++)r.add(u[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,u,v,_){if(v!==null&&v.type===0)return!1;switch(typeof u){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,u,v,_){if(u===null||typeof u>"u"||T(s,u,v,_))return!0;if(_)return!1;if(v!==null)switch(v.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function O(s,u,v,_,w,R,N){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=_,this.attributeNamespace=w,this.mustUseProperty=v,this.propertyName=s,this.type=u,this.sanitizeURL=R,this.removeEmptyString=N}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){F[s]=new O(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var u=s[0];F[u]=new O(u,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){F[s]=new O(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){F[s]=new O(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){F[s]=new O(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){F[s]=new O(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){F[s]=new O(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){F[s]=new O(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){F[s]=new O(s,5,!1,s.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function D(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 u=s.replace(H,D);F[u]=new O(u,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var u=s.replace(H,D);F[u]=new O(u,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var u=s.replace(H,D);F[u]=new O(u,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){F[s]=new O(s,1,!1,s.toLowerCase(),null,!1,!1)}),F.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){F[s]=new O(s,1,!1,s.toLowerCase(),null,!0,!0)});function q(s,u,v,_){var w=F.hasOwnProperty(u)?F[u]:null;(w!==null?w.type!==0:_||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(A(u,v,w,_)&&(v=null),_||w===null?S(u)&&(v===null?s.removeAttribute(u):s.setAttribute(u,""+v)):w.mustUseProperty?s[w.propertyName]=v===null?w.type===3?!1:"":v:(u=w.attributeName,_=w.attributeNamespace,v===null?s.removeAttribute(u):(w=w.type,v=w===3||w===4&&v===!0?"":""+v,_?s.setAttributeNS(_,u,v):s.setAttribute(u,v))))}var U=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),te=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),Ze=Symbol.for("react.profiler"),it=Symbol.for("react.provider"),Me=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),J=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 $=Object.assign,ne;function ke(s){if(ne===void 0)try{throw Error()}catch(v){var u=v.stack.trim().match(/\n( *(at )?)/);ne=u&&u[1]||""}return`
90
+ `+ne+s}var lt=!1;function Le(s,u){if(!s||lt)return"";lt=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(pe){var _=pe}Reflect.construct(s,[],u)}else{try{u.call()}catch(pe){_=pe}s.call(u.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,j=R.length-1;1<=N&&0<=j&&w[N]!==R[j];)j--;for(;1<=N&&0<=j;N--,j--)if(w[N]!==R[j]){if(N!==1||j!==1)do if(N--,j--,0>j||w[N]!==R[j]){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<=j);break}}}finally{lt=!1,Error.prepareStackTrace=v}return(s=s?s.displayName||s.name:"")?ke(s):""}function xt(s){switch(s.tag){case 5:return ke(s.type);case 16:return ke("Lazy");case 13:return ke("Suspense");case 19:return ke("SuspenseList");case 0:case 2:case 15:return s=Le(s.type,!1),s;case 11:return s=Le(s.type.render,!1),s;case 1:return s=Le(s.type,!0),s;default:return""}}function Ut(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 te:return"Portal";case Ze:return"Profiler";case Ne:return"StrictMode";case ee:return"Suspense";case J:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Me:return(s.displayName||"Context")+".Consumer";case it:return(s._context.displayName||"Context")+".Provider";case ze:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ye:return u=s.displayName||null,u!==null?u:Ut(s.type)||"Memo";case me:u=s._payload,s=s._init;try{return Ut(s(u))}catch{}}return null}function Bt(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ut(u);case 8:return u===Ne?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function wt(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function gn(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Gr(s){var u=gn(s)?"checked":"value",v=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),_=""+s[u];if(!s.hasOwnProperty(u)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var w=v.get,R=v.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return w.call(this)},set:function(N){_=""+N,R.call(this,N)}}),Object.defineProperty(s,u,{enumerable:v.enumerable}),{getValue:function(){return _},setValue:function(N){_=""+N},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Wn(s){s._valueTracker||(s._valueTracker=Gr(s))}function hi(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var v=u.getValue(),_="";return s&&(_=gn(s)?s.checked?"true":"false":s.value),s=_,s!==v?(u.setValue(s),!0):!1}function ar(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 ro(s,u){var v=u.checked;return $({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??s._wrapperState.initialChecked})}function sr(s,u){var v=u.defaultValue==null?"":u.defaultValue,_=u.checked!=null?u.checked:u.defaultChecked;v=wt(u.value!=null?u.value:v),s._wrapperState={initialChecked:_,initialValue:v,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function Lr(s,u){u=u.checked,u!=null&&q(s,"checked",u,!1)}function lr(s,u){Lr(s,u);var v=wt(u.value),_=u.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}u.hasOwnProperty("value")?No(s,u.type,v):u.hasOwnProperty("defaultValue")&&No(s,u.type,wt(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function go(s,u,v){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var _=u.type;if(!(_!=="submit"&&_!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,v||u===s.value||(s.value=u),s.defaultValue=u}v=s.name,v!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,v!==""&&(s.name=v)}function No(s,u,v){(u!=="number"||ar(s.ownerDocument)!==s)&&(v==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+v&&(s.defaultValue=""+v))}var Xn=Array.isArray;function yo(s,u,v,_){if(s=s.options,u){u={};for(var w=0;w<v.length;w++)u["$"+v[w]]=!0;for(v=0;v<s.length;v++)w=u.hasOwnProperty("$"+s[v].value),s[v].selected!==w&&(s[v].selected=w),w&&_&&(s[v].defaultSelected=!0)}else{for(v=""+wt(v),u=null,w=0;w<s.length;w++){if(s[w].value===v){s[w].selected=!0,_&&(s[w].defaultSelected=!0);return}u!==null||s[w].disabled||(u=s[w])}u!==null&&(u.selected=!0)}}function Vo(s,u){if(u.dangerouslySetInnerHTML!=null)throw Error(t(91));return $({},u,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function _o(s,u){var v=u.value;if(v==null){if(v=u.children,u=u.defaultValue,v!=null){if(u!=null)throw Error(t(92));if(Xn(v)){if(1<v.length)throw Error(t(93));v=v[0]}u=v}u==null&&(u=""),v=u}s._wrapperState={initialValue:wt(v)}}function Ii(s,u){var v=wt(u.value),_=wt(u.defaultValue);v!=null&&(v=""+v,v!==s.value&&(s.value=v),u.defaultValue==null&&s.defaultValue!==v&&(s.defaultValue=v)),_!=null&&(s.defaultValue=""+_)}function oo(s){var u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function Co(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 nr(s,u){return s==null||s==="http://www.w3.org/1999/xhtml"?Co(u):s==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Eo,Ha=function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,v,_,w){MSApp.execUnsafeLocalFunction(function(){return s(u,v,_,w)})}:s}(function(s,u){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=u;else{for(Eo=Eo||document.createElement("div"),Eo.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=Eo.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function pi(s,u){if(u){var v=s.firstChild;if(v&&v===s.lastChild&&v.nodeType===3){v.nodeValue=u;return}}s.textContent=u}var Ve={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},mt=["Webkit","ms","Moz","O"];Object.keys(Ve).forEach(function(s){mt.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),Ve[u]=Ve[s]})});function Xt(s,u,v){return u==null||typeof u=="boolean"||u===""?"":v||typeof u!="number"||u===0||Ve.hasOwnProperty(s)&&Ve[s]?(""+u).trim():u+"px"}function re(s,u){s=s.style;for(var v in u)if(u.hasOwnProperty(v)){var _=v.indexOf("--")===0,w=Xt(v,u[v],_);v==="float"&&(v="cssFloat"),_?s.setProperty(v,w):s[v]=w}}var se=$({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,u){if(u){if(se[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(t(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(t(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(t(61))}if(u.style!=null&&typeof u.style!="object")throw Error(t(62))}}function qe(s,u){if(s.indexOf("-")===-1)return typeof u.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 gt=null;function Je(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var yt=null,Ke=null,Be=null;function on(s){if(s=Zh(s)){if(typeof yt!="function")throw Error(t(280));var u=s.stateNode;u&&(u=Rt(u),yt(s.stateNode,s.type,u))}}function Dn(s){Ke?Be?Be.push(s):Be=[s]:Ke=s}function pn(){if(Ke){var s=Ke,u=Be;if(Be=Ke=null,on(s),u)for(s=0;s<u.length;s++)on(u[s])}}function Bn(s,u){return s(u)}function cr(){}var Ko=!1;function vi(s,u,v){if(Ko)return s(u,v);Ko=!0;try{return Bn(s,u,v)}finally{Ko=!1,(Ke!==null||Be!==null)&&(cr(),pn())}}function wo(s,u){var v=s.stateNode;if(v===null)return null;var _=Rt(v);if(_===null)return null;v=_[u];e:switch(u){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,u,typeof v));return v}var Xi=!1;if(f)try{var Sr={};Object.defineProperty(Sr,"passive",{get:function(){Xi=!0}}),window.addEventListener("test",Sr,Sr),window.removeEventListener("test",Sr,Sr)}catch{Xi=!1}function io(s,u,v,_,w,R,N,j,K){var pe=Array.prototype.slice.call(arguments,3);try{u.apply(v,pe)}catch(Oe){this.onError(Oe)}}var ao=!1,Go=null,Ji=!1,z=null,Ce={onError:function(s){ao=!0,Go=s}};function $e(s,u,v,_,w,R,N,j,K){ao=!1,Go=null,io.apply(Ce,arguments)}function We(s,u,v,_,w,R,N,j,K){if($e.apply(this,arguments),ao){if(ao){var pe=Go;ao=!1,Go=null}else throw Error(t(198));Ji||(Ji=!0,z=pe)}}function Ht(s){var u=s,v=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,u.flags&4098&&(v=u.return),s=u.return;while(s)}return u.tag===3?v:null}function Tt(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function Ft(s){if(Ht(s)!==s)throw Error(t(188))}function bt(s){var u=s.alternate;if(!u){if(u=Ht(s),u===null)throw Error(t(188));return u!==s?null:s}for(var v=s,_=u;;){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 Ft(w),s;if(R===_)return Ft(w),u;R=R.sibling}throw Error(t(188))}if(v.return!==_.return)v=w,_=R;else{for(var N=!1,j=w.child;j;){if(j===v){N=!0,v=w,_=R;break}if(j===_){N=!0,_=w,v=R;break}j=j.sibling}if(!N){for(j=R.child;j;){if(j===v){N=!0,v=R,_=w;break}if(j===_){N=!0,_=R,v=w;break}j=j.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:u}function Ur(s){return s=bt(s),s!==null?rr(s):null}function rr(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var u=rr(s);if(u!==null)return u;s=s.sibling}return null}var or=e.unstable_scheduleCallback,Wo=e.unstable_cancelCallback,Ls=e.unstable_shouldYield,$d=e.unstable_requestPaint,Sn=e.unstable_now,Yy=e.unstable_getCurrentPriorityLevel,ms=e.unstable_ImmediatePriority,an=e.unstable_UserBlockingPriority,Us=e.unstable_NormalPriority,fc=e.unstable_LowPriority,Hd=e.unstable_IdlePriority,hc=null,Zi=null;function Lh(s){if(Zi&&typeof Zi.onCommitFiberRoot=="function")try{Zi.onCommitFiberRoot(hc,s,void 0,(s.current.flags&128)===128)}catch{}}var Oi=Math.clz32?Math.clz32:Wv,Uh=Math.log,Fh=Math.LN2;function Wv(s){return s>>>=0,s===0?32:31-(Uh(s)/Fh|0)|0}var jd=64,pc=4194304;function gs(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 Ni(s,u){var v=s.pendingLanes;if(v===0)return 0;var _=0,w=s.suspendedLanes,R=s.pingedLanes,N=v&268435455;if(N!==0){var j=N&~w;j!==0?_=gs(j):(R&=N,R!==0&&(_=gs(R)))}else N=v&~w,N!==0?_=gs(N):R!==0&&(_=gs(R));if(_===0)return 0;if(u!==0&&u!==_&&!(u&w)&&(w=_&-_,R=u&-u,w>=R||w===16&&(R&4194240)!==0))return u;if(_&4&&(_|=v&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=_;0<u;)v=31-Oi(u),w=1<<v,_|=s[v],u&=~w;return _}function vc(s,u){switch(s){case 1:case 2:case 4:return u+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 u+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 mc(s,u){for(var v=s.suspendedLanes,_=s.pingedLanes,w=s.expirationTimes,R=s.pendingLanes;0<R;){var N=31-Oi(R),j=1<<N,K=w[N];K===-1?(!(j&v)||j&_)&&(w[N]=vc(j,u)):K<=u&&(s.expiredLanes|=j),R&=~j}}function gc(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function zd(){var s=jd;return jd<<=1,!(jd&4194240)&&(jd=64),s}function Bd(s){for(var u=[],v=0;31>v;v++)u.push(s);return u}function yl(s,u,v){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-Oi(u),s[u]=v}function Qy(s,u){var v=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var _=s.eventTimes;for(s=s.expirationTimes;0<v;){var w=31-Oi(v),R=1<<w;u[w]=0,_[w]=-1,s[w]=-1,v&=~R}}function Fs(s,u){var v=s.entangledLanes|=u;for(s=s.entanglements;v;){var _=31-Oi(v),w=1<<_;w&u|s[_]&u&&(s[_]|=u),v&=~w}}var xn=0;function qd(s){return s&=-s,1<s?4<s?s&268435455?16:536870912:4:1}var Ru,Vd,Tn,Kd,Gd,qt=!1,ku=[],Tr=null,ea=null,Mi=null,yc=new Map,Fr=new Map,Ln=[],Yv="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 ta(s,u){switch(s){case"focusin":case"focusout":Tr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":Mi=null;break;case"pointerover":case"pointerout":yc.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fr.delete(u.pointerId)}}function Mo(s,u,v,_,w,R){return s===null||s.nativeEvent!==R?(s={blockedOn:u,domEventName:v,eventSystemFlags:_,nativeEvent:R,targetContainers:[w]},u!==null&&(u=Zh(u),u!==null&&Vd(u)),s):(s.eventSystemFlags|=_,u=s.targetContainers,w!==null&&u.indexOf(w)===-1&&u.push(w),s)}function $s(s,u,v,_,w){switch(u){case"focusin":return Tr=Mo(Tr,s,u,v,_,w),!0;case"dragenter":return ea=Mo(ea,s,u,v,_,w),!0;case"mouseover":return Mi=Mo(Mi,s,u,v,_,w),!0;case"pointerover":var R=w.pointerId;return yc.set(R,Mo(yc.get(R)||null,s,u,v,_,w)),!0;case"gotpointercapture":return R=w.pointerId,Fr.set(R,Mo(Fr.get(R)||null,s,u,v,_,w)),!0}return!1}function Qv(s){var u=qa(s.target);if(u!==null){var v=Ht(u);if(v!==null){if(u=v.tag,u===13){if(u=Tt(v),u!==null){s.blockedOn=u,Gd(s.priority,function(){Tn(v)});return}}else if(u===3&&v.stateNode.current.memoizedState.isDehydrated){s.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}s.blockedOn=null}function _l(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var v=Yd(s.domEventName,s.eventSystemFlags,u[0],s.nativeEvent);if(v===null){v=s.nativeEvent;var _=new v.constructor(v.type,v);gt=_,v.target.dispatchEvent(_),gt=null}else return u=Zh(v),u!==null&&Vd(u),s.blockedOn=v,!1;u.shift()}return!0}function _c(s,u,v){_l(s)&&v.delete(u)}function Xv(){qt=!1,Tr!==null&&_l(Tr)&&(Tr=null),ea!==null&&_l(ea)&&(ea=null),Mi!==null&&_l(Mi)&&(Mi=null),yc.forEach(_c),Fr.forEach(_c)}function ja(s,u){s.blockedOn===u&&(s.blockedOn=null,qt||(qt=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Xv)))}function Cc(s){function u(w){return ja(w,s)}if(0<ku.length){ja(ku[0],s);for(var v=1;v<ku.length;v++){var _=ku[v];_.blockedOn===s&&(_.blockedOn=null)}}for(Tr!==null&&ja(Tr,s),ea!==null&&ja(ea,s),Mi!==null&&ja(Mi,s),yc.forEach(u),Fr.forEach(u),v=0;v<Ln.length;v++)_=Ln[v],_.blockedOn===s&&(_.blockedOn=null);for(;0<Ln.length&&(v=Ln[0],v.blockedOn===null);)Qv(v),v.blockedOn===null&&Ln.shift()}var Ec=U.ReactCurrentBatchConfig,za=!0;function Wd(s,u,v,_){var w=xn,R=Ec.transition;Ec.transition=null;try{xn=1,bc(s,u,v,_)}finally{xn=w,Ec.transition=R}}function wc(s,u,v,_){var w=xn,R=Ec.transition;Ec.transition=null;try{xn=4,bc(s,u,v,_)}finally{xn=w,Ec.transition=R}}function bc(s,u,v,_){if(za){var w=Yd(s,u,v,_);if(w===null)am(s,u,_,Au,v),ta(s,_);else if($s(w,s,u,v,_))_.stopPropagation();else if(ta(s,_),u&4&&-1<Yv.indexOf(s)){for(;w!==null;){var R=Zh(w);if(R!==null&&Ru(R),R=Yd(s,u,v,_),R===null&&am(s,u,_,Au,v),R===w)break;w=R}w!==null&&_.stopPropagation()}else am(s,u,_,null,v)}}var Au=null;function Yd(s,u,v,_){if(Au=null,s=Je(_),s=qa(s),s!==null)if(u=Ht(s),u===null)s=null;else if(v=u.tag,v===13){if(s=Tt(u),s!==null)return s;s=null}else if(v===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null);return Au=s,null}function $h(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(Yy()){case ms:return 1;case an:return 4;case Us:case fc:return 16;case Hd:return 536870912;default:return 16}default:return 16}}var ys=null,I=null,B=null;function de(){if(B)return B;var s,u=I,v=u.length,_,w="value"in ys?ys.value:ys.textContent,R=w.length;for(s=0;s<v&&u[s]===w[s];s++);var N=v-s;for(_=1;_<=N&&u[v-_]===w[R-_];_++);return B=w.slice(s,1<_?1-_:void 0)}function _e(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function He(){return!0}function Mt(){return!1}function Xe(s){function u(v,_,w,R,N){this._reactName=v,this._targetInst=w,this.type=_,this.nativeEvent=R,this.target=N,this.currentTarget=null;for(var j in s)s.hasOwnProperty(j)&&(v=s[j],this[j]=v?v(R):R[j]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?He:Mt,this.isPropagationStopped=Mt,this}return $(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=He)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=He)},persist:function(){},isPersistent:He}),u}var It={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=Xe(It),Rn=$({},It,{view:0,detail:0}),Jn=Xe(Rn),qn,Zn,ir,yn=$({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:t_,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!==ir&&(ir&&s.type==="mousemove"?(qn=s.screenX-ir.screenX,Zn=s.screenY-ir.screenY):Zn=qn=0,ir=s),qn)},movementY:function(s){return"movementY"in s?s.movementY:Zn}}),Cl=Xe(yn),Qd=$({},yn,{dataTransfer:0}),Hh=Xe(Qd),Xy=$({},Rn,{relatedTarget:0}),_s=Xe(Xy),jh=$({},It,{animationName:0,elapsedTime:0,pseudoElement:0}),zh=Xe(jh),Jy=$({},It,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Sk=Xe(Jy),Tk=$({},It,{data:0}),Zy=Xe(Tk),e_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bw={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"},Sw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tw(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=Sw[s])?!!u[s]:!1}function t_(){return Tw}var El=$({},Rn,{key:function(s){if(s.key){var u=e_[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=_e(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?bw[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:t_,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}}),Rk=Xe(El),n_=$({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jv=Xe(n_),r_=$({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:t_}),kk=Xe(r_),Zv=$({},It,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rw=Xe(Zv),na=$({},yn,{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}),wl=Xe(na),so=[9,13,27,32],Cs=f&&"CompositionEvent"in window,xu=null;f&&"documentMode"in document&&(xu=document.documentMode);var em=f&&"TextEvent"in window&&!xu,kw=f&&(!Cs||xu&&8<xu&&11>=xu),Xd=String.fromCharCode(32),Aw=!1;function xw(s,u){switch(s){case"keyup":return so.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tm(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Jd=!1;function Ak(s,u){switch(s){case"compositionend":return tm(u);case"keypress":return u.which!==32?null:(Aw=!0,Xd);case"textInput":return s=u.data,s===Xd&&Aw?null:s;default:return null}}function xk(s,u){if(Jd)return s==="compositionend"||!Cs&&xw(s,u)?(s=de(),B=I=ys=null,Jd=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return kw&&u.locale!=="ko"?null:u.data;default:return null}}var Iw={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 Ow(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!Iw[s.type]:u==="textarea"}function Nw(s,u,v,_){Dn(_),u=Qh(u,"onChange"),0<u.length&&(v=new sn("onChange","change",null,v,_),s.push({event:v,listeners:u}))}var Bh=null,Zd=null;function ef(s){im(s,0)}function tf(s){var u=rf(s);if(hi(u))return s}function Mw(s,u){if(s==="change")return u}var o_=!1;if(f){var i_;if(f){var a_="oninput"in document;if(!a_){var Pw=document.createElement("div");Pw.setAttribute("oninput","return;"),a_=typeof Pw.oninput=="function"}i_=a_}else i_=!1;o_=i_&&(!document.documentMode||9<document.documentMode)}function Dw(){Bh&&(Bh.detachEvent("onpropertychange",Lw),Zd=Bh=null)}function Lw(s){if(s.propertyName==="value"&&tf(Zd)){var u=[];Nw(u,Zd,s,Je(s)),vi(ef,u)}}function Ik(s,u,v){s==="focusin"?(Dw(),Bh=u,Zd=v,Bh.attachEvent("onpropertychange",Lw)):s==="focusout"&&Dw()}function Ok(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return tf(Zd)}function Nk(s,u){if(s==="click")return tf(u)}function Uw(s,u){if(s==="input"||s==="change")return tf(u)}function Mk(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var Ba=typeof Object.is=="function"?Object.is:Mk;function qh(s,u){if(Ba(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var v=Object.keys(s),_=Object.keys(u);if(v.length!==_.length)return!1;for(_=0;_<v.length;_++){var w=v[_];if(!p.call(u,w)||!Ba(s[w],u[w]))return!1}return!0}function Fw(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function $w(s,u){var v=Fw(s);s=0;for(var _;v;){if(v.nodeType===3){if(_=s+v.textContent.length,s<=u&&_>=u)return{node:v,offset:u-s};s=_}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Fw(v)}}function Hw(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?Hw(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function nm(){for(var s=window,u=ar();u instanceof s.HTMLIFrameElement;){try{var v=typeof u.contentWindow.location.href=="string"}catch{v=!1}if(v)s=u.contentWindow;else break;u=ar(s.document)}return u}function bl(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function rm(s){var u=nm(),v=s.focusedElem,_=s.selectionRange;if(u!==v&&v&&v.ownerDocument&&Hw(v.ownerDocument.documentElement,v)){if(_!==null&&bl(v)){if(u=_.start,s=_.end,s===void 0&&(s=u),"selectionStart"in v)v.selectionStart=u,v.selectionEnd=Math.min(s,v.value.length);else if(s=(u=v.ownerDocument||document)&&u.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=$w(v,R);var N=$w(v,_);w&&N&&(s.rangeCount!==1||s.anchorNode!==w.node||s.anchorOffset!==w.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(u=u.createRange(),u.setStart(w.node,w.offset),s.removeAllRanges(),R>_?(s.addRange(u),s.extend(N.node,N.offset)):(u.setEnd(N.node,N.offset),s.addRange(u)))}}for(u=[],s=v;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<u.length;v++)s=u[v],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var jw=f&&"documentMode"in document&&11>=document.documentMode,Es=null,s_=null,Vh=null,l_=!1;function zw(s,u,v){var _=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;l_||Es==null||Es!==ar(_)||(_=Es,"selectionStart"in _&&bl(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Vh&&qh(Vh,_)||(Vh=_,_=Qh(s_,"onSelect"),0<_.length&&(u=new sn("onSelect","select",null,u,v),s.push({event:u,listeners:_}),u.target=Es)))}function om(s,u){var v={};return v[s.toLowerCase()]=u.toLowerCase(),v["Webkit"+s]="webkit"+u,v["Moz"+s]="moz"+u,v}var Iu={animationend:om("Animation","AnimationEnd"),animationiteration:om("Animation","AnimationIteration"),animationstart:om("Animation","AnimationStart"),transitionend:om("Transition","TransitionEnd")},c_={},u_={};f&&(u_=document.createElement("div").style,"AnimationEvent"in window||(delete Iu.animationend.animation,delete Iu.animationiteration.animation,delete Iu.animationstart.animation),"TransitionEvent"in window||delete Iu.transitionend.transition);function Po(s){if(c_[s])return c_[s];if(!Iu[s])return s;var u=Iu[s],v;for(v in u)if(u.hasOwnProperty(v)&&v in u_)return c_[s]=u[v];return s}var d_=Po("animationend"),Bw=Po("animationiteration"),qw=Po("animationstart"),Vw=Po("transitionend"),Kw=new Map,Gw="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 Sl(s,u){Kw.set(s,u),l(u,[s])}for(var Kh=0;Kh<Gw.length;Kh++){var Ou=Gw[Kh],Pk=Ou.toLowerCase(),Gh=Ou[0].toUpperCase()+Ou.slice(1);Sl(Pk,"on"+Gh)}Sl(d_,"onAnimationEnd"),Sl(Bw,"onAnimationIteration"),Sl(qw,"onAnimationStart"),Sl("dblclick","onDoubleClick"),Sl("focusin","onFocus"),Sl("focusout","onBlur"),Sl(Vw,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("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 Wh="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(" "),Dk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wh));function Ww(s,u,v){var _=s.type||"unknown-event";s.currentTarget=v,We(_,u,void 0,s),s.currentTarget=null}function im(s,u){u=(u&4)!==0;for(var v=0;v<s.length;v++){var _=s[v],w=_.event;_=_.listeners;e:{var R=void 0;if(u)for(var N=_.length-1;0<=N;N--){var j=_[N],K=j.instance,pe=j.currentTarget;if(j=j.listener,K!==R&&w.isPropagationStopped())break e;Ww(w,j,pe),R=K}else for(N=0;N<_.length;N++){if(j=_[N],K=j.instance,pe=j.currentTarget,j=j.listener,K!==R&&w.isPropagationStopped())break e;Ww(w,j,pe),R=K}}}if(Ji)throw s=z,Ji=!1,z=null,s}function er(s,u){var v=u[y_];v===void 0&&(v=u[y_]=new Set);var _=s+"__bubble";v.has(_)||(Yw(u,s,2,!1),v.add(_))}function Sc(s,u,v){var _=0;u&&(_|=4),Yw(v,s,_,u)}var Tl="_reactListening"+Math.random().toString(36).slice(2);function nf(s){if(!s[Tl]){s[Tl]=!0,r.forEach(function(v){v!=="selectionchange"&&(Dk.has(v)||Sc(v,!1,s),Sc(v,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[Tl]||(u[Tl]=!0,Sc("selectionchange",!1,u))}}function Yw(s,u,v,_){switch($h(u)){case 1:var w=Wd;break;case 4:w=wc;break;default:w=bc}v=w.bind(null,u,v,s),w=void 0,!Xi||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(w=!0),_?w!==void 0?s.addEventListener(u,v,{capture:!0,passive:w}):s.addEventListener(u,v,!0):w!==void 0?s.addEventListener(u,v,{passive:w}):s.addEventListener(u,v,!1)}function am(s,u,v,_,w){var R=_;if(!(u&1)&&!(u&2)&&_!==null)e:for(;;){if(_===null)return;var N=_.tag;if(N===3||N===4){var j=_.stateNode.containerInfo;if(j===w||j.nodeType===8&&j.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(;j!==null;){if(N=qa(j),N===null)return;if(K=N.tag,K===5||K===6){_=R=N;continue e}j=j.parentNode}}_=_.return}vi(function(){var pe=R,Oe=Je(v),Pe=[];e:{var Ie=Kw.get(s);if(Ie!==void 0){var rt=sn,ut=s;switch(s){case"keypress":if(_e(v)===0)break e;case"keydown":case"keyup":rt=Rk;break;case"focusin":ut="focus",rt=_s;break;case"focusout":ut="blur",rt=_s;break;case"beforeblur":case"afterblur":rt=_s;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":rt=Cl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":rt=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":rt=kk;break;case d_:case Bw:case qw:rt=zh;break;case Vw:rt=Rw;break;case"scroll":rt=Jn;break;case"wheel":rt=wl;break;case"copy":case"cut":case"paste":rt=Sk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":rt=Jv}var vt=(u&4)!==0,Yr=!vt&&s==="scroll",oe=vt?Ie!==null?Ie+"Capture":null:Ie;vt=[];for(var Q=pe,le;Q!==null;){le=Q;var je=le.stateNode;if(le.tag===5&&je!==null&&(le=je,oe!==null&&(je=wo(Q,oe),je!=null&&vt.push(Yh(Q,je,le)))),Yr)break;Q=Q.return}0<vt.length&&(Ie=new rt(Ie,ut,null,v,Oe),Pe.push({event:Ie,listeners:vt}))}}if(!(u&7)){e:{if(Ie=s==="mouseover"||s==="pointerover",rt=s==="mouseout"||s==="pointerout",Ie&&v!==gt&&(ut=v.relatedTarget||v.fromElement)&&(qa(ut)||ut[Rl]))break e;if((rt||Ie)&&(Ie=Oe.window===Oe?Oe:(Ie=Oe.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,rt?(ut=v.relatedTarget||v.toElement,rt=pe,ut=ut?qa(ut):null,ut!==null&&(Yr=Ht(ut),ut!==Yr||ut.tag!==5&&ut.tag!==6)&&(ut=null)):(rt=null,ut=pe),rt!==ut)){if(vt=Cl,je="onMouseLeave",oe="onMouseEnter",Q="mouse",(s==="pointerout"||s==="pointerover")&&(vt=Jv,je="onPointerLeave",oe="onPointerEnter",Q="pointer"),Yr=rt==null?Ie:rf(rt),le=ut==null?Ie:rf(ut),Ie=new vt(je,Q+"leave",rt,v,Oe),Ie.target=Yr,Ie.relatedTarget=le,je=null,qa(Oe)===pe&&(vt=new vt(oe,Q+"enter",ut,v,Oe),vt.target=le,vt.relatedTarget=Yr,je=vt),Yr=je,rt&&ut)t:{for(vt=rt,oe=ut,Q=0,le=vt;le;le=Nu(le))Q++;for(le=0,je=oe;je;je=Nu(je))le++;for(;0<Q-le;)vt=Nu(vt),Q--;for(;0<le-Q;)oe=Nu(oe),le--;for(;Q--;){if(vt===oe||oe!==null&&vt===oe.alternate)break t;vt=Nu(vt),oe=Nu(oe)}vt=null}else vt=null;rt!==null&&f_(Pe,Ie,rt,vt,!1),ut!==null&&Yr!==null&&f_(Pe,Yr,ut,vt,!0)}}e:{if(Ie=pe?rf(pe):window,rt=Ie.nodeName&&Ie.nodeName.toLowerCase(),rt==="select"||rt==="input"&&Ie.type==="file")var _t=Mw;else if(Ow(Ie))if(o_)_t=Uw;else{_t=Ok;var dt=Ik}else(rt=Ie.nodeName)&&rt.toLowerCase()==="input"&&(Ie.type==="checkbox"||Ie.type==="radio")&&(_t=Nk);if(_t&&(_t=_t(s,pe))){Nw(Pe,_t,v,Oe);break e}dt&&dt(s,Ie,pe),s==="focusout"&&(dt=Ie._wrapperState)&&dt.controlled&&Ie.type==="number"&&No(Ie,"number",Ie.value)}switch(dt=pe?rf(pe):window,s){case"focusin":(Ow(dt)||dt.contentEditable==="true")&&(Es=dt,s_=pe,Vh=null);break;case"focusout":Vh=s_=Es=null;break;case"mousedown":l_=!0;break;case"contextmenu":case"mouseup":case"dragend":l_=!1,zw(Pe,v,Oe);break;case"selectionchange":if(jw)break;case"keydown":case"keyup":zw(Pe,v,Oe)}var St;if(Cs)e:{switch(s){case"compositionstart":var zt="onCompositionStart";break e;case"compositionend":zt="onCompositionEnd";break e;case"compositionupdate":zt="onCompositionUpdate";break e}zt=void 0}else Jd?xw(s,v)&&(zt="onCompositionEnd"):s==="keydown"&&v.keyCode===229&&(zt="onCompositionStart");zt&&(kw&&v.locale!=="ko"&&(Jd||zt!=="onCompositionStart"?zt==="onCompositionEnd"&&Jd&&(St=de()):(ys=Oe,I="value"in ys?ys.value:ys.textContent,Jd=!0)),dt=Qh(pe,zt),0<dt.length&&(zt=new Zy(zt,s,null,v,Oe),Pe.push({event:zt,listeners:dt}),St?zt.data=St:(St=tm(v),St!==null&&(zt.data=St)))),(St=em?Ak(s,v):xk(s,v))&&(pe=Qh(pe,"onBeforeInput"),0<pe.length&&(Oe=new Zy("onBeforeInput","beforeinput",null,v,Oe),Pe.push({event:Oe,listeners:pe}),Oe.data=St))}im(Pe,u)})}function Yh(s,u,v){return{instance:s,listener:u,currentTarget:v}}function Qh(s,u){for(var v=u+"Capture",_=[];s!==null;){var w=s,R=w.stateNode;w.tag===5&&R!==null&&(w=R,R=wo(s,v),R!=null&&_.unshift(Yh(s,R,w)),R=wo(s,u),R!=null&&_.push(Yh(s,R,w))),s=s.return}return _}function Nu(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function f_(s,u,v,_,w){for(var R=u._reactName,N=[];v!==null&&v!==_;){var j=v,K=j.alternate,pe=j.stateNode;if(K!==null&&K===_)break;j.tag===5&&pe!==null&&(j=pe,w?(K=wo(v,R),K!=null&&N.unshift(Yh(v,K,j))):w||(K=wo(v,R),K!=null&&N.push(Yh(v,K,j)))),v=v.return}N.length!==0&&s.push({event:u,listeners:N})}var h_=/\r\n?/g,Lk=/\u0000|\uFFFD/g;function p_(s){return(typeof s=="string"?s:""+s).replace(h_,`
94
+ `).replace(Lk,"")}function sm(s,u,v){if(u=p_(u),p_(s)!==u&&v)throw Error(t(425))}function lm(){}var v_=null,Mu=null;function Xh(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Pu=typeof setTimeout=="function"?setTimeout:void 0,Qw=typeof clearTimeout=="function"?clearTimeout:void 0,m_=typeof Promise=="function"?Promise:void 0,g_=typeof queueMicrotask=="function"?queueMicrotask:typeof m_<"u"?function(s){return m_.resolve(null).then(s).catch(Uk)}:Pu;function Uk(s){setTimeout(function(){throw s})}function Tc(s,u){var v=u,_=0;do{var w=v.nextSibling;if(s.removeChild(v),w&&w.nodeType===8)if(v=w.data,v==="/$"){if(_===0){s.removeChild(w),Cc(u);return}_--}else v!=="$"&&v!=="$?"&&v!=="$!"||_++;v=w}while(v);Cc(u)}function ws(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return s}function Jh(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var v=s.data;if(v==="$"||v==="$!"||v==="$?"){if(u===0)return s;u--}else v==="/$"&&u++}s=s.previousSibling}return null}var Rc=Math.random().toString(36).slice(2),Hs="__reactFiber$"+Rc,Du="__reactProps$"+Rc,Rl="__reactContainer$"+Rc,y_="__reactEvents$"+Rc,Fk="__reactListeners$"+Rc,__="__reactHandles$"+Rc;function qa(s){var u=s[Hs];if(u)return u;for(var v=s.parentNode;v;){if(u=v[Rl]||v[Hs]){if(v=u.alternate,u.child!==null||v!==null&&v.child!==null)for(s=Jh(s);s!==null;){if(v=s[Hs])return v;s=Jh(s)}return u}s=v,v=s.parentNode}return null}function Zh(s){return s=s[Hs]||s[Rl],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function rf(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(t(33))}function Rt(s){return s[Du]||null}var kc=[],ur=-1;function Jt(s){return{current:s}}function Mn(s){0>ur||(s.current=kc[ur],kc[ur]=null,ur--)}function Un(s,u){ur++,kc[ur]=s.current,s.current=u}var js={},jt=Jt(js),$r=Jt(!1),ra=js;function Va(s,u){var v=s.type.contextTypes;if(!v)return js;var _=s.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var w={},R;for(R in v)w[R]=u[R];return _&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=w),w}function Cr(s){return s=s.childContextTypes,s!=null}function Ka(){Mn($r),Mn(jt)}function Ac(s,u,v){if(jt.current!==js)throw Error(t(168));Un(jt,u),Un($r,v)}function ep(s,u,v){var _=s.stateNode;if(u=u.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var w in _)if(!(w in u))throw Error(t(108,Bt(s)||"Unknown",w));return $({},v,_)}function cm(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||js,ra=jt.current,Un(jt,s),Un($r,$r.current),!0}function Xw(s,u,v){var _=s.stateNode;if(!_)throw Error(t(169));v?(s=ep(s,u,ra),_.__reactInternalMemoizedMergedChildContext=s,Mn($r),Mn(jt),Un(jt,s)):Mn($r),Un($r,v)}var _a=null,Do=!1,tp=!1;function C_(s){_a===null?_a=[s]:_a.push(s)}function E_(s){Do=!0,C_(s)}function oa(){if(!tp&&_a!==null){tp=!0;var s=0,u=xn;try{var v=_a;for(xn=1;s<v.length;s++){var _=v[s];do _=_(!0);while(_!==null)}_a=null,Do=!1}catch(w){throw _a!==null&&(_a=_a.slice(s+1)),or(ms,oa),w}finally{xn=u,tp=!1}}return null}var xc=[],ia=0,Lu=null,of=0,aa=[],mi=0,Ga=null,Yo=1,kl="";function Ca(s,u){xc[ia++]=of,xc[ia++]=Lu,Lu=s,of=u}function w_(s,u,v){aa[mi++]=Yo,aa[mi++]=kl,aa[mi++]=Ga,Ga=s;var _=Yo;s=kl;var w=32-Oi(_)-1;_&=~(1<<w),v+=1;var R=32-Oi(u)+w;if(30<R){var N=w-w%5;R=(_&(1<<N)-1).toString(32),_>>=N,w-=N,Yo=1<<32-Oi(u)+w|v<<w|_,kl=R+s}else Yo=1<<R|v<<w|_,kl=s}function um(s){s.return!==null&&(Ca(s,1),w_(s,1,0))}function b_(s){for(;s===Lu;)Lu=xc[--ia],xc[ia]=null,of=xc[--ia],xc[ia]=null;for(;s===Ga;)Ga=aa[--mi],aa[mi]=null,kl=aa[--mi],aa[mi]=null,Yo=aa[--mi],aa[mi]=null}var Ea=null,sa=null,dr=!1,Wa=null;function S_(s,u){var v=es(5,null,null,0);v.elementType="DELETED",v.stateNode=u,v.return=s,u=s.deletions,u===null?(s.deletions=[v],s.flags|=16):u.push(v)}function Jw(s,u){switch(s.tag){case 5:var v=s.type;return u=u.nodeType!==1||v.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(s.stateNode=u,Ea=s,sa=ws(u.firstChild),!0):!1;case 6:return u=s.pendingProps===""||u.nodeType!==3?null:u,u!==null?(s.stateNode=u,Ea=s,sa=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(v=Ga!==null?{id:Yo,overflow:kl}:null,s.memoizedState={dehydrated:u,treeContext:v,retryLane:1073741824},v=es(18,null,null,0),v.stateNode=u,v.return=s,s.child=v,Ea=s,sa=null,!0):!1;default:return!1}}function dm(s){return(s.mode&1)!==0&&(s.flags&128)===0}function fm(s){if(dr){var u=sa;if(u){var v=u;if(!Jw(s,u)){if(dm(s))throw Error(t(418));u=ws(v.nextSibling);var _=Ea;u&&Jw(s,u)?S_(_,v):(s.flags=s.flags&-4097|2,dr=!1,Ea=s)}}else{if(dm(s))throw Error(t(418));s.flags=s.flags&-4097|2,dr=!1,Ea=s}}}function Zw(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Ea=s}function hm(s){if(s!==Ea)return!1;if(!dr)return Zw(s),dr=!0,!1;var u;if((u=s.tag!==3)&&!(u=s.tag!==5)&&(u=s.type,u=u!=="head"&&u!=="body"&&!Xh(s.type,s.memoizedProps)),u&&(u=sa)){if(dm(s))throw eb(),Error(t(418));for(;u;)S_(s,u),u=ws(u.nextSibling)}if(Zw(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(t(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8){var v=s.data;if(v==="/$"){if(u===0){sa=ws(s.nextSibling);break e}u--}else v!=="$"&&v!=="$!"&&v!=="$?"||u++}s=s.nextSibling}sa=null}}else sa=Ea?ws(s.stateNode.nextSibling):null;return!0}function eb(){for(var s=sa;s;)s=ws(s.nextSibling)}function Rr(){sa=Ea=null,dr=!1}function T_(s){Wa===null?Wa=[s]:Wa.push(s)}var pm=U.ReactCurrentBatchConfig;function wa(s,u){if(s&&s.defaultProps){u=$({},u),s=s.defaultProps;for(var v in s)u[v]===void 0&&(u[v]=s[v]);return u}return u}var zs=Jt(null),vm=null,Ic=null,R_=null;function k_(){R_=Ic=vm=null}function Oc(s){var u=zs.current;Mn(zs),s._currentValue=u}function Lo(s,u,v){for(;s!==null;){var _=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,_!==null&&(_.childLanes|=u)):_!==null&&(_.childLanes&u)!==u&&(_.childLanes|=u),s===v)break;s=s.return}}function Ye(s,u){vm=s,R_=Ic=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&u&&(lo=!0),s.firstContext=null)}function Wr(s){var u=s._currentValue;if(R_!==s)if(s={context:s,memoizedValue:u,next:null},Ic===null){if(vm===null)throw Error(t(308));Ic=s,vm.dependencies={lanes:0,firstContext:s}}else Ic=Ic.next=s;return u}var Qo=null;function A_(s){Qo===null?Qo=[s]:Qo.push(s)}function tb(s,u,v,_){var w=u.interleaved;return w===null?(v.next=v,A_(u)):(v.next=w.next,w.next=v),u.interleaved=v,Al(s,_)}function Al(s,u){s.lanes|=u;var v=s.alternate;for(v!==null&&(v.lanes|=u),v=s,s=s.return;s!==null;)s.childLanes|=u,v=s.alternate,v!==null&&(v.childLanes|=u),v=s,s=s.return;return v.tag===3?v.stateNode:null}var Nc=!1;function x_(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bo(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function xl(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function Mc(s,u,v){var _=s.updateQueue;if(_===null)return null;if(_=_.shared,vn&2){var w=_.pending;return w===null?u.next=u:(u.next=w.next,w.next=u),_.pending=u,Al(s,v)}return w=_.interleaved,w===null?(u.next=u,A_(_)):(u.next=w.next,w.next=u),_.interleaved=u,Al(s,v)}function mm(s,u,v){if(u=u.updateQueue,u!==null&&(u=u.shared,(v&4194240)!==0)){var _=u.lanes;_&=s.pendingLanes,v|=_,u.lanes=v,Fs(s,v)}}function I_(s,u){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=u:R=R.next=u}else w=R=u;v={baseState:_.baseState,firstBaseUpdate:w,lastBaseUpdate:R,shared:_.shared,effects:_.effects},s.updateQueue=v;return}s=v.lastBaseUpdate,s===null?v.firstBaseUpdate=u:s.next=u,v.lastBaseUpdate=u}function Pc(s,u,v,_){var w=s.updateQueue;Nc=!1;var R=w.firstBaseUpdate,N=w.lastBaseUpdate,j=w.shared.pending;if(j!==null){w.shared.pending=null;var K=j,pe=K.next;K.next=null,N===null?R=pe:N.next=pe,N=K;var Oe=s.alternate;Oe!==null&&(Oe=Oe.updateQueue,j=Oe.lastBaseUpdate,j!==N&&(j===null?Oe.firstBaseUpdate=pe:j.next=pe,Oe.lastBaseUpdate=K))}if(R!==null){var Pe=w.baseState;N=0,Oe=pe=K=null,j=R;do{var Ie=j.lane,rt=j.eventTime;if((_&Ie)===Ie){Oe!==null&&(Oe=Oe.next={eventTime:rt,lane:0,tag:j.tag,payload:j.payload,callback:j.callback,next:null});e:{var ut=s,vt=j;switch(Ie=u,rt=v,vt.tag){case 1:if(ut=vt.payload,typeof ut=="function"){Pe=ut.call(rt,Pe,Ie);break e}Pe=ut;break e;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=vt.payload,Ie=typeof ut=="function"?ut.call(rt,Pe,Ie):ut,Ie==null)break e;Pe=$({},Pe,Ie);break e;case 2:Nc=!0}}j.callback!==null&&j.lane!==0&&(s.flags|=64,Ie=w.effects,Ie===null?w.effects=[j]:Ie.push(j))}else rt={eventTime:rt,lane:Ie,tag:j.tag,payload:j.payload,callback:j.callback,next:null},Oe===null?(pe=Oe=rt,K=Pe):Oe=Oe.next=rt,N|=Ie;if(j=j.next,j===null){if(j=w.shared.pending,j===null)break;Ie=j,j=Ie.next,Ie.next=null,w.lastBaseUpdate=Ie,w.shared.pending=null}}while(1);if(Oe===null&&(K=Pe),w.baseState=K,w.firstBaseUpdate=pe,w.lastBaseUpdate=Oe,u=w.shared.interleaved,u!==null){w=u;do N|=w.lane,w=w.next;while(w!==u)}else R===null&&(w.shared.lanes=0);Ml|=N,s.lanes=N,s.memoizedState=Pe}}function Uu(s,u,v){if(s=u.effects,u.effects=null,s!==null)for(u=0;u<s.length;u++){var _=s[u],w=_.callback;if(w!==null){if(_.callback=null,_=v,typeof w!="function")throw Error(t(191,w));w.call(_)}}}var nb=new n.Component().refs;function O_(s,u,v,_){u=s.memoizedState,v=v(_,u),v=v==null?u:$({},u,v),s.memoizedState=v,s.lanes===0&&(s.updateQueue.baseState=v)}var gm={isMounted:function(s){return(s=s._reactInternals)?Ht(s)===s:!1},enqueueSetState:function(s,u,v){s=s._reactInternals;var _=Ci(),w=co(s),R=xl(_,w);R.payload=u,v!=null&&(R.callback=v),u=Mc(s,R,w),u!==null&&(Ei(u,s,w,_),mm(u,s,w))},enqueueReplaceState:function(s,u,v){s=s._reactInternals;var _=Ci(),w=co(s),R=xl(_,w);R.tag=1,R.payload=u,v!=null&&(R.callback=v),u=Mc(s,R,w),u!==null&&(Ei(u,s,w,_),mm(u,s,w))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var v=Ci(),_=co(s),w=xl(v,_);w.tag=2,u!=null&&(w.callback=u),u=Mc(s,w,_),u!==null&&(Ei(u,s,_,v),mm(u,s,_))}};function rb(s,u,v,_,w,R,N){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(_,R,N):u.prototype&&u.prototype.isPureReactComponent?!qh(v,_)||!qh(w,R):!0}function ob(s,u,v){var _=!1,w=js,R=u.contextType;return typeof R=="object"&&R!==null?R=Wr(R):(w=Cr(u)?ra:jt.current,_=u.contextTypes,R=(_=_!=null)?Va(s,w):js),u=new u(v,R),s.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=gm,s.stateNode=u,u._reactInternals=s,_&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=w,s.__reactInternalMemoizedMaskedChildContext=R),u}function ib(s,u,v,_){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(v,_),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(v,_),u.state!==s&&gm.enqueueReplaceState(u,u.state,null)}function ym(s,u,v,_){var w=s.stateNode;w.props=v,w.state=s.memoizedState,w.refs=nb,x_(s);var R=u.contextType;typeof R=="object"&&R!==null?w.context=Wr(R):(R=Cr(u)?ra:jt.current,w.context=Va(s,R)),w.state=s.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(O_(s,u,R,v),w.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(u=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),u!==w.state&&gm.enqueueReplaceState(w,w.state,null),Pc(s,v,w,_),w.state=s.memoizedState),typeof w.componentDidMount=="function"&&(s.flags|=4194308)}function af(s,u,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 u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===R?u.ref:(u=function(N){var j=w.refs;j===nb&&(j=w.refs={}),N===null?delete j[R]:j[R]=N},u._stringRef=R,u)}if(typeof s!="string")throw Error(t(284));if(!v._owner)throw Error(t(290,s))}return s}function _m(s,u){throw s=Object.prototype.toString.call(u),Error(t(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s))}function ab(s){var u=s._init;return u(s._payload)}function sb(s){function u(oe,Q){if(s){var le=oe.deletions;le===null?(oe.deletions=[Q],oe.flags|=16):le.push(Q)}}function v(oe,Q){if(!s)return null;for(;Q!==null;)u(oe,Q),Q=Q.sibling;return null}function _(oe,Q){for(oe=new Map;Q!==null;)Q.key!==null?oe.set(Q.key,Q):oe.set(Q.index,Q),Q=Q.sibling;return oe}function w(oe,Q){return oe=zc(oe,Q),oe.index=0,oe.sibling=null,oe}function R(oe,Q,le){return oe.index=le,s?(le=oe.alternate,le!==null?(le=le.index,le<Q?(oe.flags|=2,Q):le):(oe.flags|=2,Q)):(oe.flags|=1048576,Q)}function N(oe){return s&&oe.alternate===null&&(oe.flags|=2),oe}function j(oe,Q,le,je){return Q===null||Q.tag!==6?(Q=Cp(le,oe.mode,je),Q.return=oe,Q):(Q=w(Q,le),Q.return=oe,Q)}function K(oe,Q,le,je){var _t=le.type;return _t===Z?Oe(oe,Q,le.props.children,je,le.key):Q!==null&&(Q.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===me&&ab(_t)===Q.type)?(je=w(Q,le.props),je.ref=af(oe,Q,le),je.return=oe,je):(je=Xm(le.type,le.key,le.props,null,oe.mode,je),je.ref=af(oe,Q,le),je.return=oe,je)}function pe(oe,Q,le,je){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==le.containerInfo||Q.stateNode.implementation!==le.implementation?(Q=nd(le,oe.mode,je),Q.return=oe,Q):(Q=w(Q,le.children||[]),Q.return=oe,Q)}function Oe(oe,Q,le,je,_t){return Q===null||Q.tag!==7?(Q=td(le,oe.mode,je,_t),Q.return=oe,Q):(Q=w(Q,le),Q.return=oe,Q)}function Pe(oe,Q,le){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Q=Cp(""+Q,oe.mode,le),Q.return=oe,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case V:return le=Xm(Q.type,Q.key,Q.props,null,oe.mode,le),le.ref=af(oe,null,Q),le.return=oe,le;case te:return Q=nd(Q,oe.mode,le),Q.return=oe,Q;case me:var je=Q._init;return Pe(oe,je(Q._payload),le)}if(Xn(Q)||ge(Q))return Q=td(Q,oe.mode,le,null),Q.return=oe,Q;_m(oe,Q)}return null}function Ie(oe,Q,le,je){var _t=Q!==null?Q.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return _t!==null?null:j(oe,Q,""+le,je);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case V:return le.key===_t?K(oe,Q,le,je):null;case te:return le.key===_t?pe(oe,Q,le,je):null;case me:return _t=le._init,Ie(oe,Q,_t(le._payload),je)}if(Xn(le)||ge(le))return _t!==null?null:Oe(oe,Q,le,je,null);_m(oe,le)}return null}function rt(oe,Q,le,je,_t){if(typeof je=="string"&&je!==""||typeof je=="number")return oe=oe.get(le)||null,j(Q,oe,""+je,_t);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case V:return oe=oe.get(je.key===null?le:je.key)||null,K(Q,oe,je,_t);case te:return oe=oe.get(je.key===null?le:je.key)||null,pe(Q,oe,je,_t);case me:var dt=je._init;return rt(oe,Q,le,dt(je._payload),_t)}if(Xn(je)||ge(je))return oe=oe.get(le)||null,Oe(Q,oe,je,_t,null);_m(Q,je)}return null}function ut(oe,Q,le,je){for(var _t=null,dt=null,St=Q,zt=Q=0,$o=null;St!==null&&zt<le.length;zt++){St.index>zt?($o=St,St=null):$o=St.sibling;var An=Ie(oe,St,le[zt],je);if(An===null){St===null&&(St=$o);break}s&&St&&An.alternate===null&&u(oe,St),Q=R(An,Q,zt),dt===null?_t=An:dt.sibling=An,dt=An,St=$o}if(zt===le.length)return v(oe,St),dr&&Ca(oe,zt),_t;if(St===null){for(;zt<le.length;zt++)St=Pe(oe,le[zt],je),St!==null&&(Q=R(St,Q,zt),dt===null?_t=St:dt.sibling=St,dt=St);return dr&&Ca(oe,zt),_t}for(St=_(oe,St);zt<le.length;zt++)$o=rt(St,oe,zt,le[zt],je),$o!==null&&(s&&$o.alternate!==null&&St.delete($o.key===null?zt:$o.key),Q=R($o,Q,zt),dt===null?_t=$o:dt.sibling=$o,dt=$o);return s&&St.forEach(function(Bc){return u(oe,Bc)}),dr&&Ca(oe,zt),_t}function vt(oe,Q,le,je){var _t=ge(le);if(typeof _t!="function")throw Error(t(150));if(le=_t.call(le),le==null)throw Error(t(151));for(var dt=_t=null,St=Q,zt=Q=0,$o=null,An=le.next();St!==null&&!An.done;zt++,An=le.next()){St.index>zt?($o=St,St=null):$o=St.sibling;var Bc=Ie(oe,St,An.value,je);if(Bc===null){St===null&&(St=$o);break}s&&St&&Bc.alternate===null&&u(oe,St),Q=R(Bc,Q,zt),dt===null?_t=Bc:dt.sibling=Bc,dt=Bc,St=$o}if(An.done)return v(oe,St),dr&&Ca(oe,zt),_t;if(St===null){for(;!An.done;zt++,An=le.next())An=Pe(oe,An.value,je),An!==null&&(Q=R(An,Q,zt),dt===null?_t=An:dt.sibling=An,dt=An);return dr&&Ca(oe,zt),_t}for(St=_(oe,St);!An.done;zt++,An=le.next())An=rt(St,oe,zt,An.value,je),An!==null&&(s&&An.alternate!==null&&St.delete(An.key===null?zt:An.key),Q=R(An,Q,zt),dt===null?_t=An:dt.sibling=An,dt=An);return s&&St.forEach(function(oA){return u(oe,oA)}),dr&&Ca(oe,zt),_t}function Yr(oe,Q,le,je){if(typeof le=="object"&&le!==null&&le.type===Z&&le.key===null&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case V:e:{for(var _t=le.key,dt=Q;dt!==null;){if(dt.key===_t){if(_t=le.type,_t===Z){if(dt.tag===7){v(oe,dt.sibling),Q=w(dt,le.props.children),Q.return=oe,oe=Q;break e}}else if(dt.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===me&&ab(_t)===dt.type){v(oe,dt.sibling),Q=w(dt,le.props),Q.ref=af(oe,dt,le),Q.return=oe,oe=Q;break e}v(oe,dt);break}else u(oe,dt);dt=dt.sibling}le.type===Z?(Q=td(le.props.children,oe.mode,je,le.key),Q.return=oe,oe=Q):(je=Xm(le.type,le.key,le.props,null,oe.mode,je),je.ref=af(oe,Q,le),je.return=oe,oe=je)}return N(oe);case te:e:{for(dt=le.key;Q!==null;){if(Q.key===dt)if(Q.tag===4&&Q.stateNode.containerInfo===le.containerInfo&&Q.stateNode.implementation===le.implementation){v(oe,Q.sibling),Q=w(Q,le.children||[]),Q.return=oe,oe=Q;break e}else{v(oe,Q);break}else u(oe,Q);Q=Q.sibling}Q=nd(le,oe.mode,je),Q.return=oe,oe=Q}return N(oe);case me:return dt=le._init,Yr(oe,Q,dt(le._payload),je)}if(Xn(le))return ut(oe,Q,le,je);if(ge(le))return vt(oe,Q,le,je);_m(oe,le)}return typeof le=="string"&&le!==""||typeof le=="number"?(le=""+le,Q!==null&&Q.tag===6?(v(oe,Q.sibling),Q=w(Q,le),Q.return=oe,oe=Q):(v(oe,Q),Q=Cp(le,oe.mode,je),Q.return=oe,oe=Q),N(oe)):v(oe,Q)}return Yr}var sf=sb(!0),lb=sb(!1),np={},bs=Jt(np),rp=Jt(np),lf=Jt(np);function Fu(s){if(s===np)throw Error(t(174));return s}function N_(s,u){switch(Un(lf,u),Un(rp,s),Un(bs,np),s=u.nodeType,s){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:nr(null,"");break;default:s=s===8?u.parentNode:u,u=s.namespaceURI||null,s=s.tagName,u=nr(u,s)}Mn(bs),Un(bs,u)}function Dc(){Mn(bs),Mn(rp),Mn(lf)}function Ot(s){Fu(lf.current);var u=Fu(bs.current),v=nr(u,s.type);u!==v&&(Un(rp,s),Un(bs,v))}function ln(s){rp.current===s&&(Mn(bs),Mn(rp))}var Pt=Jt(0);function kr(s){for(var u=s;u!==null;){if(u.tag===13){var v=u.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if(u.flags&128)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Ya=[];function Cm(){for(var s=0;s<Ya.length;s++)Ya[s]._workInProgressVersionPrimary=null;Ya.length=0}var Em=U.ReactCurrentDispatcher,M_=U.ReactCurrentBatchConfig,$u=0,fr=null,Se=null,En=null,Dt=!1,Bs=!1,ba=0,Hu=0;function hr(){throw Error(t(321))}function ju(s,u){if(u===null)return!1;for(var v=0;v<u.length&&v<s.length;v++)if(!Ba(s[v],u[v]))return!1;return!0}function Lc(s,u,v,_,w,R){if($u=R,fr=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,Em.current=s===null||s.memoizedState===null?Hk:jk,s=v(_,w),Bs){R=0;do{if(Bs=!1,ba=0,25<=R)throw Error(t(301));R+=1,En=Se=null,u.updateQueue=null,Em.current=D_,s=v(_,w)}while(Bs)}if(Em.current=Um,u=Se!==null&&Se.next!==null,$u=0,En=Se=fr=null,Dt=!1,u)throw Error(t(300));return s}function zu(){var s=ba!==0;return ba=0,s}function Qa(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?fr.memoizedState=En=s:En=En.next=s,En}function la(){if(Se===null){var s=fr.alternate;s=s!==null?s.memoizedState:null}else s=Se.next;var u=En===null?fr.memoizedState:En.next;if(u!==null)En=u,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},En===null?fr.memoizedState=En=s:En=En.next=s}return En}function Bu(s,u){return typeof u=="function"?u(s):u}function op(s){var u=la(),v=u.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 j=N=null,K=null,pe=R;do{var Oe=pe.lane;if(($u&Oe)===Oe)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 Pe={lane:Oe,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};K===null?(j=K=Pe,N=_):K=K.next=Pe,fr.lanes|=Oe,Ml|=Oe}pe=pe.next}while(pe!==null&&pe!==R);K===null?N=_:K.next=j,Ba(_,u.memoizedState)||(lo=!0),u.memoizedState=_,u.baseState=N,u.baseQueue=K,v.lastRenderedState=_}if(s=v.interleaved,s!==null){w=s;do R=w.lane,fr.lanes|=R,Ml|=R,w=w.next;while(w!==s)}else w===null&&(v.lanes=0);return[u.memoizedState,v.dispatch]}function ip(s){var u=la(),v=u.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=s;var _=v.dispatch,w=v.pending,R=u.memoizedState;if(w!==null){v.pending=null;var N=w=w.next;do R=s(R,N.action),N=N.next;while(N!==w);Ba(R,u.memoizedState)||(lo=!0),u.memoizedState=R,u.baseQueue===null&&(u.baseState=R),v.lastRenderedState=R}return[R,_]}function wm(){}function bm(s,u){var v=fr,_=la(),w=u(),R=!Ba(_.memoizedState,w);if(R&&(_.memoizedState=w,lo=!0),_=_.queue,ap(Rm.bind(null,v,_,s),[s]),_.getSnapshot!==u||R||En!==null&&En.memoizedState.tag&1){if(v.flags|=2048,qu(9,Tm.bind(null,v,_,w,u),void 0,null),Ar===null)throw Error(t(349));$u&30||Sm(v,u,w)}return w}function Sm(s,u,v){s.flags|=16384,s={getSnapshot:u,value:v},u=fr.updateQueue,u===null?(u={lastEffect:null,stores:null},fr.updateQueue=u,u.stores=[s]):(v=u.stores,v===null?u.stores=[s]:v.push(s))}function Tm(s,u,v,_){u.value=v,u.getSnapshot=_,km(u)&&Am(s)}function Rm(s,u,v){return v(function(){km(u)&&Am(s)})}function km(s){var u=s.getSnapshot;s=s.value;try{var v=u();return!Ba(s,v)}catch{return!0}}function Am(s){var u=Al(s,1);u!==null&&Ei(u,s,1,-1)}function xm(s){var u=Qa();return typeof s=="function"&&(s=s()),u.memoizedState=u.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bu,lastRenderedState:s},u.queue=s,s=s.dispatch=Lm.bind(null,fr,s),[u.memoizedState,s]}function qu(s,u,v,_){return s={tag:s,create:u,destroy:v,deps:_,next:null},u=fr.updateQueue,u===null?(u={lastEffect:null,stores:null},fr.updateQueue=u,u.lastEffect=s.next=s):(v=u.lastEffect,v===null?u.lastEffect=s.next=s:(_=v.next,v.next=s,s.next=_,u.lastEffect=s)),s}function Im(){return la().memoizedState}function Vu(s,u,v,_){var w=Qa();fr.flags|=s,w.memoizedState=qu(1|u,v,void 0,_===void 0?null:_)}function Il(s,u,v,_){var w=la();_=_===void 0?null:_;var R=void 0;if(Se!==null){var N=Se.memoizedState;if(R=N.destroy,_!==null&&ju(_,N.deps)){w.memoizedState=qu(u,v,R,_);return}}fr.flags|=s,w.memoizedState=qu(1|u,v,R,_)}function Om(s,u){return Vu(8390656,8,s,u)}function ap(s,u){return Il(2048,8,s,u)}function Nm(s,u){return Il(4,2,s,u)}function Mm(s,u){return Il(4,4,s,u)}function P_(s,u){if(typeof u=="function")return s=s(),u(s),function(){u(null)};if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function cf(s,u,v){return v=v!=null?v.concat([s]):null,Il(4,4,P_.bind(null,u,s),v)}function Pm(){}function uf(s,u){var v=la();u=u===void 0?null:u;var _=v.memoizedState;return _!==null&&u!==null&&ju(u,_[1])?_[0]:(v.memoizedState=[s,u],s)}function Uc(s,u){var v=la();u=u===void 0?null:u;var _=v.memoizedState;return _!==null&&u!==null&&ju(u,_[1])?_[0]:(s=s(),v.memoizedState=[s,u],s)}function ca(s,u,v){return $u&21?(Ba(v,u)||(v=zd(),fr.lanes|=v,Ml|=v,s.baseState=!0),u):(s.baseState&&(s.baseState=!1,lo=!0),s.memoizedState=v)}function $k(s,u){var v=xn;xn=v!==0&&4>v?v:4,s(!0);var _=M_.transition;M_.transition={};try{s(!1),u()}finally{xn=v,M_.transition=_}}function tr(){return la().memoizedState}function Dm(s,u,v){var _=co(s);if(v={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null},df(s))sp(u,v);else if(v=tb(s,u,v,_),v!==null){var w=Ci();Ei(v,s,_,w),cb(v,u,_)}}function Lm(s,u,v){var _=co(s),w={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null};if(df(s))sp(u,w);else{var R=s.alternate;if(s.lanes===0&&(R===null||R.lanes===0)&&(R=u.lastRenderedReducer,R!==null))try{var N=u.lastRenderedState,j=R(N,v);if(w.hasEagerState=!0,w.eagerState=j,Ba(j,N)){var K=u.interleaved;K===null?(w.next=w,A_(u)):(w.next=K.next,K.next=w),u.interleaved=w;return}}catch{}finally{}v=tb(s,u,w,_),v!==null&&(w=Ci(),Ei(v,s,_,w),cb(v,u,_))}}function df(s){var u=s.alternate;return s===fr||u!==null&&u===fr}function sp(s,u){Bs=Dt=!0;var v=s.pending;v===null?u.next=u:(u.next=v.next,v.next=u),s.pending=u}function cb(s,u,v){if(v&4194240){var _=u.lanes;_&=s.pendingLanes,v|=_,u.lanes=v,Fs(s,v)}}var Um={readContext:Wr,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},Hk={readContext:Wr,useCallback:function(s,u){return Qa().memoizedState=[s,u===void 0?null:u],s},useContext:Wr,useEffect:Om,useImperativeHandle:function(s,u,v){return v=v!=null?v.concat([s]):null,Vu(4194308,4,P_.bind(null,u,s),v)},useLayoutEffect:function(s,u){return Vu(4194308,4,s,u)},useInsertionEffect:function(s,u){return Vu(4,2,s,u)},useMemo:function(s,u){var v=Qa();return u=u===void 0?null:u,s=s(),v.memoizedState=[s,u],s},useReducer:function(s,u,v){var _=Qa();return u=v!==void 0?v(u):u,_.memoizedState=_.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},_.queue=s,s=s.dispatch=Dm.bind(null,fr,s),[_.memoizedState,s]},useRef:function(s){var u=Qa();return s={current:s},u.memoizedState=s},useState:xm,useDebugValue:Pm,useDeferredValue:function(s){return Qa().memoizedState=s},useTransition:function(){var s=xm(!1),u=s[0];return s=$k.bind(null,s[1]),Qa().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,v){var _=fr,w=Qa();if(dr){if(v===void 0)throw Error(t(407));v=v()}else{if(v=u(),Ar===null)throw Error(t(349));$u&30||Sm(_,u,v)}w.memoizedState=v;var R={value:v,getSnapshot:u};return w.queue=R,Om(Rm.bind(null,_,R,s),[s]),_.flags|=2048,qu(9,Tm.bind(null,_,R,v,u),void 0,null),v},useId:function(){var s=Qa(),u=Ar.identifierPrefix;if(dr){var v=kl,_=Yo;v=(_&~(1<<32-Oi(_)-1)).toString(32)+v,u=":"+u+"R"+v,v=ba++,0<v&&(u+="H"+v.toString(32)),u+=":"}else v=Hu++,u=":"+u+"r"+v.toString(32)+":";return s.memoizedState=u},unstable_isNewReconciler:!1},jk={readContext:Wr,useCallback:uf,useContext:Wr,useEffect:ap,useImperativeHandle:cf,useInsertionEffect:Nm,useLayoutEffect:Mm,useMemo:Uc,useReducer:op,useRef:Im,useState:function(){return op(Bu)},useDebugValue:Pm,useDeferredValue:function(s){var u=la();return ca(u,Se.memoizedState,s)},useTransition:function(){var s=op(Bu)[0],u=la().memoizedState;return[s,u]},useMutableSource:wm,useSyncExternalStore:bm,useId:tr,unstable_isNewReconciler:!1},D_={readContext:Wr,useCallback:uf,useContext:Wr,useEffect:ap,useImperativeHandle:cf,useInsertionEffect:Nm,useLayoutEffect:Mm,useMemo:Uc,useReducer:ip,useRef:Im,useState:function(){return ip(Bu)},useDebugValue:Pm,useDeferredValue:function(s){var u=la();return Se===null?u.memoizedState=s:ca(u,Se.memoizedState,s)},useTransition:function(){var s=ip(Bu)[0],u=la().memoizedState;return[s,u]},useMutableSource:wm,useSyncExternalStore:bm,useId:tr,unstable_isNewReconciler:!1};function ff(s,u){try{var v="",_=u;do v+=xt(_),_=_.return;while(_);var w=v}catch(R){w=`
95
+ Error generating stack: `+R.message+`
96
+ `+R.stack}return{value:s,source:u,stack:w,digest:null}}function lp(s,u,v){return{value:s,source:null,stack:v??null,digest:u??null}}function Fm(s,u){try{console.error(u.value)}catch(v){setTimeout(function(){throw v})}}var zk=typeof WeakMap=="function"?WeakMap:Map;function ub(s,u,v){v=xl(-1,v),v.tag=3,v.payload={element:null};var _=u.value;return v.callback=function(){Vm||(Vm=!0,Qu=_),Fm(s,u)},v}function cp(s,u,v){v=xl(-1,v),v.tag=3;var _=s.type.getDerivedStateFromError;if(typeof _=="function"){var w=u.value;v.payload=function(){return _(w)},v.callback=function(){Fm(s,u)}}var R=s.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(v.callback=function(){Fm(s,u),typeof _!="function"&&(Ks===null?Ks=new Set([this]):Ks.add(this));var N=u.stack;this.componentDidCatch(u.value,{componentStack:N!==null?N:""})}),v}function db(s,u,v){var _=s.pingCache;if(_===null){_=s.pingCache=new zk;var w=new Set;_.set(u,w)}else w=_.get(u),w===void 0&&(w=new Set,_.set(u,w));w.has(v)||(w.add(v),s=Yk.bind(null,s,u,v),u.then(s,s))}function L_(s){do{var u;if((u=s.tag===13)&&(u=s.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return s;s=s.return}while(s!==null);return null}function U_(s,u,v,_,w){return s.mode&1?(s.flags|=65536,s.lanes=w,s):(s===u?s.flags|=65536:(s.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(u=xl(-1,1),u.tag=2,Mc(v,u,1))),v.lanes|=1),s)}var Bk=U.ReactCurrentOwner,lo=!1;function So(s,u,v,_){u.child=s===null?lb(u,null,v,_):sf(u,s.child,v,_)}function Fc(s,u,v,_,w){v=v.render;var R=u.ref;return Ye(u,w),_=Lc(s,u,v,_,R,w),v=zu(),s!==null&&!lo?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~w,Xo(s,u,w)):(dr&&v&&um(u),u.flags|=1,So(s,u,_,w),u.child)}function $m(s,u,v,_,w){if(s===null){var R=v.type;return typeof R=="function"&&!n0(R)&&R.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(u.tag=15,u.type=R,ua(s,u,R,_,w)):(s=Xm(v.type,null,_,u,u.mode,w),s.ref=u.ref,s.return=u,u.child=s)}if(R=s.child,!(s.lanes&w)){var N=R.memoizedProps;if(v=v.compare,v=v!==null?v:qh,v(N,_)&&s.ref===u.ref)return Xo(s,u,w)}return u.flags|=1,s=zc(R,_),s.ref=u.ref,s.return=u,u.child=s}function ua(s,u,v,_,w){if(s!==null){var R=s.memoizedProps;if(qh(R,_)&&s.ref===u.ref)if(lo=!1,u.pendingProps=_=R,(s.lanes&w)!==0)s.flags&131072&&(lo=!0);else return u.lanes=s.lanes,Xo(s,u,w)}return hf(s,u,v,_,w)}function Ku(s,u,v){var _=u.pendingProps,w=_.children,R=s!==null?s.memoizedState:null;if(_.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Un(_f,Sa),Sa|=v;else{if(!(v&1073741824))return s=R!==null?R.baseLanes|v:v,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:s,cachePool:null,transitions:null},u.updateQueue=null,Un(_f,Sa),Sa|=s,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=R!==null?R.baseLanes:v,Un(_f,Sa),Sa|=_}else R!==null?(_=R.baseLanes|v,u.memoizedState=null):_=v,Un(_f,Sa),Sa|=_;return So(s,u,w,v),u.child}function Zt(s,u){var v=u.ref;(s===null&&v!==null||s!==null&&s.ref!==v)&&(u.flags|=512,u.flags|=2097152)}function hf(s,u,v,_,w){var R=Cr(v)?ra:jt.current;return R=Va(u,R),Ye(u,w),v=Lc(s,u,v,_,R,w),_=zu(),s!==null&&!lo?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~w,Xo(s,u,w)):(dr&&_&&um(u),u.flags|=1,So(s,u,v,w),u.child)}function F_(s,u,v,_,w){if(Cr(v)){var R=!0;cm(u)}else R=!1;if(Ye(u,w),u.stateNode===null)gi(s,u),ob(u,v,_),ym(u,v,_,w),_=!0;else if(s===null){var N=u.stateNode,j=u.memoizedProps;N.props=j;var K=N.context,pe=v.contextType;typeof pe=="object"&&pe!==null?pe=Wr(pe):(pe=Cr(v)?ra:jt.current,pe=Va(u,pe));var Oe=v.getDerivedStateFromProps,Pe=typeof Oe=="function"||typeof N.getSnapshotBeforeUpdate=="function";Pe||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(j!==_||K!==pe)&&ib(u,N,_,pe),Nc=!1;var Ie=u.memoizedState;N.state=Ie,Pc(u,_,N,w),K=u.memoizedState,j!==_||Ie!==K||$r.current||Nc?(typeof Oe=="function"&&(O_(u,v,Oe,_),K=u.memoizedState),(j=Nc||rb(u,v,j,_,Ie,K,pe))?(Pe||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"&&(u.flags|=4194308)):(typeof N.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=_,u.memoizedState=K),N.props=_,N.state=K,N.context=pe,_=j):(typeof N.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{N=u.stateNode,bo(s,u),j=u.memoizedProps,pe=u.type===u.elementType?j:wa(u.type,j),N.props=pe,Pe=u.pendingProps,Ie=N.context,K=v.contextType,typeof K=="object"&&K!==null?K=Wr(K):(K=Cr(v)?ra:jt.current,K=Va(u,K));var rt=v.getDerivedStateFromProps;(Oe=typeof rt=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(j!==Pe||Ie!==K)&&ib(u,N,_,K),Nc=!1,Ie=u.memoizedState,N.state=Ie,Pc(u,_,N,w);var ut=u.memoizedState;j!==Pe||Ie!==ut||$r.current||Nc?(typeof rt=="function"&&(O_(u,v,rt,_),ut=u.memoizedState),(pe=Nc||rb(u,v,pe,_,Ie,ut,K)||!1)?(Oe||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(_,ut,K),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(_,ut,K)),typeof N.componentDidUpdate=="function"&&(u.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof N.componentDidUpdate!="function"||j===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||j===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=1024),u.memoizedProps=_,u.memoizedState=ut),N.props=_,N.state=ut,N.context=K,_=pe):(typeof N.componentDidUpdate!="function"||j===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||j===s.memoizedProps&&Ie===s.memoizedState||(u.flags|=1024),_=!1)}return fb(s,u,v,_,R,w)}function fb(s,u,v,_,w,R){Zt(s,u);var N=(u.flags&128)!==0;if(!_&&!N)return w&&Xw(u,v,!1),Xo(s,u,R);_=u.stateNode,Bk.current=u;var j=N&&typeof v.getDerivedStateFromError!="function"?null:_.render();return u.flags|=1,s!==null&&N?(u.child=sf(u,s.child,null,R),u.child=sf(u,null,j,R)):So(s,u,j,R),u.memoizedState=_.state,w&&Xw(u,v,!0),u.child}function hb(s){var u=s.stateNode;u.pendingContext?Ac(s,u.pendingContext,u.pendingContext!==u.context):u.context&&Ac(s,u.context,!1),N_(s,u.containerInfo)}function Hm(s,u,v,_,w){return Rr(),T_(w),u.flags|=256,So(s,u,v,_),u.child}var Gu={dehydrated:null,treeContext:null,retryLane:0};function $_(s){return{baseLanes:s,cachePool:null,transitions:null}}function H_(s,u,v){var _=u.pendingProps,w=Pt.current,R=!1,N=(u.flags&128)!==0,j;if((j=N)||(j=s!==null&&s.memoizedState===null?!1:(w&2)!==0),j?(R=!0,u.flags&=-129):(s===null||s.memoizedState!==null)&&(w|=1),Un(Pt,w&1),s===null)return fm(u),s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(u.mode&1?s.data==="$!"?u.lanes=8:u.lanes=1073741824:u.lanes=1,null):(N=_.children,s=_.fallback,R?(_=u.mode,R=u.child,N={mode:"hidden",children:N},!(_&1)&&R!==null?(R.childLanes=0,R.pendingProps=N):R=_p(N,_,0,null),s=td(s,_,v,null),R.return=u,s.return=u,R.sibling=s,u.child=R,u.child.memoizedState=$_(v),u.memoizedState=Gu,s):j_(u,N));if(w=s.memoizedState,w!==null&&(j=w.dehydrated,j!==null))return qk(s,u,N,_,j,w,v);if(R){R=_.fallback,N=u.mode,w=s.child,j=w.sibling;var K={mode:"hidden",children:_.children};return!(N&1)&&u.child!==w?(_=u.child,_.childLanes=0,_.pendingProps=K,u.deletions=null):(_=zc(w,K),_.subtreeFlags=w.subtreeFlags&14680064),j!==null?R=zc(j,R):(R=td(R,N,v,null),R.flags|=2),R.return=u,_.return=u,_.sibling=R,u.child=_,_=R,R=u.child,N=s.child.memoizedState,N=N===null?$_(v):{baseLanes:N.baseLanes|v,cachePool:null,transitions:N.transitions},R.memoizedState=N,R.childLanes=s.childLanes&~v,u.memoizedState=Gu,_}return R=s.child,s=R.sibling,_=zc(R,{mode:"visible",children:_.children}),!(u.mode&1)&&(_.lanes=v),_.return=u,_.sibling=null,s!==null&&(v=u.deletions,v===null?(u.deletions=[s],u.flags|=16):v.push(s)),u.child=_,u.memoizedState=null,_}function j_(s,u){return u=_p({mode:"visible",children:u},s.mode,0,null),u.return=s,s.child=u}function pf(s,u,v,_){return _!==null&&T_(_),sf(u,s.child,null,v),s=j_(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function qk(s,u,v,_,w,R,N){if(v)return u.flags&256?(u.flags&=-257,_=lp(Error(t(422))),pf(s,u,N,_)):u.memoizedState!==null?(u.child=s.child,u.flags|=128,null):(R=_.fallback,w=u.mode,_=_p({mode:"visible",children:_.children},w,0,null),R=td(R,w,N,null),R.flags|=2,_.return=u,R.return=u,_.sibling=R,u.child=_,u.mode&1&&sf(u,s.child,null,N),u.child.memoizedState=$_(N),u.memoizedState=Gu,R);if(!(u.mode&1))return pf(s,u,N,null);if(w.data==="$!"){if(_=w.nextSibling&&w.nextSibling.dataset,_)var j=_.dgst;return _=j,R=Error(t(419)),_=lp(R,_,void 0),pf(s,u,N,_)}if(j=(N&s.childLanes)!==0,lo||j){if(_=Ar,_!==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,Al(s,w),Ei(_,s,w,-1))}return Z_(),_=lp(Error(t(421))),pf(s,u,N,_)}return w.data==="$?"?(u.flags|=128,u.child=s.child,u=Qk.bind(null,s),w._reactRetry=u,null):(s=R.treeContext,sa=ws(w.nextSibling),Ea=u,dr=!0,Wa=null,s!==null&&(aa[mi++]=Yo,aa[mi++]=kl,aa[mi++]=Ga,Yo=s.id,kl=s.overflow,Ga=u),u=j_(u,_.children),u.flags|=4096,u)}function z_(s,u,v){s.lanes|=u;var _=s.alternate;_!==null&&(_.lanes|=u),Lo(s.return,u,v)}function jm(s,u,v,_,w){var R=s.memoizedState;R===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:_,tail:v,tailMode:w}:(R.isBackwards=u,R.rendering=null,R.renderingStartTime=0,R.last=_,R.tail=v,R.tailMode=w)}function B_(s,u,v){var _=u.pendingProps,w=_.revealOrder,R=_.tail;if(So(s,u,_.children,v),_=Pt.current,_&2)_=_&1|2,u.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&z_(s,v,u);else if(s.tag===19)z_(s,v,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}_&=1}if(Un(Pt,_),!(u.mode&1))u.memoizedState=null;else switch(w){case"forwards":for(v=u.child,w=null;v!==null;)s=v.alternate,s!==null&&kr(s)===null&&(w=v),v=v.sibling;v=w,v===null?(w=u.child,u.child=null):(w=v.sibling,v.sibling=null),jm(u,!1,w,v,R);break;case"backwards":for(v=null,w=u.child,u.child=null;w!==null;){if(s=w.alternate,s!==null&&kr(s)===null){u.child=w;break}s=w.sibling,w.sibling=v,v=w,w=s}jm(u,!0,v,null,R);break;case"together":jm(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function gi(s,u){!(u.mode&1)&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=2)}function Xo(s,u,v){if(s!==null&&(u.dependencies=s.dependencies),Ml|=u.lanes,!(v&u.childLanes))return null;if(s!==null&&u.child!==s.child)throw Error(t(153));if(u.child!==null){for(s=u.child,v=zc(s,s.pendingProps),u.child=v,v.return=u;s.sibling!==null;)s=s.sibling,v=v.sibling=zc(s,s.pendingProps),v.return=u;v.sibling=null}return u.child}function Ol(s,u,v){switch(u.tag){case 3:hb(u),Rr();break;case 5:Ot(u);break;case 1:Cr(u.type)&&cm(u);break;case 4:N_(u,u.stateNode.containerInfo);break;case 10:var _=u.type._context,w=u.memoizedProps.value;Un(zs,_._currentValue),_._currentValue=w;break;case 13:if(_=u.memoizedState,_!==null)return _.dehydrated!==null?(Un(Pt,Pt.current&1),u.flags|=128,null):v&u.child.childLanes?H_(s,u,v):(Un(Pt,Pt.current&1),s=Xo(s,u,v),s!==null?s.sibling:null);Un(Pt,Pt.current&1);break;case 19:if(_=(v&u.childLanes)!==0,s.flags&128){if(_)return B_(s,u,v);u.flags|=128}if(w=u.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),Un(Pt,Pt.current),_)break;return null;case 22:case 23:return u.lanes=0,Ku(s,u,v)}return Xo(s,u,v)}var up,Wu,Xa,To;up=function(s,u){for(var v=u.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===u)break;for(;v.sibling===null;){if(v.return===null||v.return===u)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},Wu=function(){},Xa=function(s,u,v,_){var w=s.memoizedProps;if(w!==_){s=u.stateNode,Fu(bs.current);var R=null;switch(v){case"input":w=ro(s,w),_=ro(s,_),R=[];break;case"select":w=$({},w,{value:void 0}),_=$({},_,{value:void 0}),R=[];break;case"textarea":w=Vo(s,w),_=Vo(s,_),R=[];break;default:typeof w.onClick!="function"&&typeof _.onClick=="function"&&(s.onclick=lm)}Te(v,_);var N;v=null;for(pe in w)if(!_.hasOwnProperty(pe)&&w.hasOwnProperty(pe)&&w[pe]!=null)if(pe==="style"){var j=w[pe];for(N in j)j.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(j=w!=null?w[pe]:void 0,_.hasOwnProperty(pe)&&K!==j&&(K!=null||j!=null))if(pe==="style")if(j){for(N in j)!j.hasOwnProperty(N)||K&&K.hasOwnProperty(N)||(v||(v={}),v[N]="");for(N in K)K.hasOwnProperty(N)&&j[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,j=j?j.__html:void 0,K!=null&&j!==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"&&er("scroll",s),R||j===K||(R=[])):(R=R||[]).push(pe,K))}v&&(R=R||[]).push("style",v);var pe=R;(u.updateQueue=pe)&&(u.flags|=4)}},To=function(s,u,v,_){v!==_&&(u.flags|=4)};function dp(s,u){if(!dr)switch(s.tailMode){case"hidden":u=s.tail;for(var v=null;u!==null;)u.alternate!==null&&(v=u),u=u.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?u||s.tail===null?s.tail=null:s.tail.sibling=null:_.sibling=null}}function yi(s){var u=s.alternate!==null&&s.alternate.child===s.child,v=0,_=0;if(u)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,u}function Vk(s,u,v){var _=u.pendingProps;switch(b_(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yi(u),null;case 1:return Cr(u.type)&&Ka(),yi(u),null;case 3:return _=u.stateNode,Dc(),Mn($r),Mn(jt),Cm(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(s===null||s.child===null)&&(hm(u)?u.flags|=4:s===null||s.memoizedState.isDehydrated&&!(u.flags&256)||(u.flags|=1024,Wa!==null&&(yp(Wa),Wa=null))),Wu(s,u),yi(u),null;case 5:ln(u);var w=Fu(lf.current);if(v=u.type,s!==null&&u.stateNode!=null)Xa(s,u,v,_,w),s.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!_){if(u.stateNode===null)throw Error(t(166));return yi(u),null}if(s=Fu(bs.current),hm(u)){_=u.stateNode,v=u.type;var R=u.memoizedProps;switch(_[Hs]=u,_[Du]=R,s=(u.mode&1)!==0,v){case"dialog":er("cancel",_),er("close",_);break;case"iframe":case"object":case"embed":er("load",_);break;case"video":case"audio":for(w=0;w<Wh.length;w++)er(Wh[w],_);break;case"source":er("error",_);break;case"img":case"image":case"link":er("error",_),er("load",_);break;case"details":er("toggle",_);break;case"input":sr(_,R),er("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!R.multiple},er("invalid",_);break;case"textarea":_o(_,R),er("invalid",_)}Te(v,R),w=null;for(var N in R)if(R.hasOwnProperty(N)){var j=R[N];N==="children"?typeof j=="string"?_.textContent!==j&&(R.suppressHydrationWarning!==!0&&sm(_.textContent,j,s),w=["children",j]):typeof j=="number"&&_.textContent!==""+j&&(R.suppressHydrationWarning!==!0&&sm(_.textContent,j,s),w=["children",""+j]):a.hasOwnProperty(N)&&j!=null&&N==="onScroll"&&er("scroll",_)}switch(v){case"input":Wn(_),go(_,R,!0);break;case"textarea":Wn(_),oo(_);break;case"select":case"option":break;default:typeof R.onClick=="function"&&(_.onclick=lm)}_=w,u.updateQueue=_,_!==null&&(u.flags|=4)}else{N=w.nodeType===9?w:w.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Co(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[Hs]=u,s[Du]=_,up(s,u,!1,!1),u.stateNode=s;e:{switch(N=qe(v,_),v){case"dialog":er("cancel",s),er("close",s),w=_;break;case"iframe":case"object":case"embed":er("load",s),w=_;break;case"video":case"audio":for(w=0;w<Wh.length;w++)er(Wh[w],s);w=_;break;case"source":er("error",s),w=_;break;case"img":case"image":case"link":er("error",s),er("load",s),w=_;break;case"details":er("toggle",s),w=_;break;case"input":sr(s,_),w=ro(s,_),er("invalid",s);break;case"option":w=_;break;case"select":s._wrapperState={wasMultiple:!!_.multiple},w=$({},_,{value:void 0}),er("invalid",s);break;case"textarea":_o(s,_),w=Vo(s,_),er("invalid",s);break;default:w=_}Te(v,w),j=w;for(R in j)if(j.hasOwnProperty(R)){var K=j[R];R==="style"?re(s,K):R==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,K!=null&&Ha(s,K)):R==="children"?typeof K=="string"?(v!=="textarea"||K!=="")&&pi(s,K):typeof K=="number"&&pi(s,""+K):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(a.hasOwnProperty(R)?K!=null&&R==="onScroll"&&er("scroll",s):K!=null&&q(s,R,K,N))}switch(v){case"input":Wn(s),go(s,_,!1);break;case"textarea":Wn(s),oo(s);break;case"option":_.value!=null&&s.setAttribute("value",""+wt(_.value));break;case"select":s.multiple=!!_.multiple,R=_.value,R!=null?yo(s,!!_.multiple,R,!1):_.defaultValue!=null&&yo(s,!!_.multiple,_.defaultValue,!0);break;default:typeof w.onClick=="function"&&(s.onclick=lm)}switch(v){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return yi(u),null;case 6:if(s&&u.stateNode!=null)To(s,u,s.memoizedProps,_);else{if(typeof _!="string"&&u.stateNode===null)throw Error(t(166));if(v=Fu(lf.current),Fu(bs.current),hm(u)){if(_=u.stateNode,v=u.memoizedProps,_[Hs]=u,(R=_.nodeValue!==v)&&(s=Ea,s!==null))switch(s.tag){case 3:sm(_.nodeValue,v,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&sm(_.nodeValue,v,(s.mode&1)!==0)}R&&(u.flags|=4)}else _=(v.nodeType===9?v:v.ownerDocument).createTextNode(_),_[Hs]=u,u.stateNode=_}return yi(u),null;case 13:if(Mn(Pt),_=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(dr&&sa!==null&&u.mode&1&&!(u.flags&128))eb(),Rr(),u.flags|=98560,R=!1;else if(R=hm(u),_!==null&&_.dehydrated!==null){if(s===null){if(!R)throw Error(t(318));if(R=u.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(t(317));R[Hs]=u}else Rr(),!(u.flags&128)&&(u.memoizedState=null),u.flags|=4;yi(u),R=!1}else Wa!==null&&(yp(Wa),Wa=null),R=!0;if(!R)return u.flags&65536?u:null}return u.flags&128?(u.lanes=v,u):(_=_!==null,_!==(s!==null&&s.memoizedState!==null)&&_&&(u.child.flags|=8192,u.mode&1&&(s===null||Pt.current&1?ko===0&&(ko=3):Z_())),u.updateQueue!==null&&(u.flags|=4),yi(u),null);case 4:return Dc(),Wu(s,u),s===null&&nf(u.stateNode.containerInfo),yi(u),null;case 10:return Oc(u.type._context),yi(u),null;case 17:return Cr(u.type)&&Ka(),yi(u),null;case 19:if(Mn(Pt),R=u.memoizedState,R===null)return yi(u),null;if(_=(u.flags&128)!==0,N=R.rendering,N===null)if(_)dp(R,!1);else{if(ko!==0||s!==null&&s.flags&128)for(s=u.child;s!==null;){if(N=kr(s),N!==null){for(u.flags|=128,dp(R,!1),_=N.updateQueue,_!==null&&(u.updateQueue=_,u.flags|=4),u.subtreeFlags=0,_=v,v=u.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 Un(Pt,Pt.current&1|2),u.child}s=s.sibling}R.tail!==null&&Sn()>Ef&&(u.flags|=128,_=!0,dp(R,!1),u.lanes=4194304)}else{if(!_)if(s=kr(N),s!==null){if(u.flags|=128,_=!0,v=s.updateQueue,v!==null&&(u.updateQueue=v,u.flags|=4),dp(R,!0),R.tail===null&&R.tailMode==="hidden"&&!N.alternate&&!dr)return yi(u),null}else 2*Sn()-R.renderingStartTime>Ef&&v!==1073741824&&(u.flags|=128,_=!0,dp(R,!1),u.lanes=4194304);R.isBackwards?(N.sibling=u.child,u.child=N):(v=R.last,v!==null?v.sibling=N:u.child=N,R.last=N)}return R.tail!==null?(u=R.tail,R.rendering=u,R.tail=u.sibling,R.renderingStartTime=Sn(),u.sibling=null,v=Pt.current,Un(Pt,_?v&1|2:v&1),u):(yi(u),null);case 22:case 23:return J_(),_=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==_&&(u.flags|=8192),_&&u.mode&1?Sa&1073741824&&(yi(u),u.subtreeFlags&6&&(u.flags|=8192)):yi(u),null;case 24:return null;case 25:return null}throw Error(t(156,u.tag))}function q_(s,u){switch(b_(u),u.tag){case 1:return Cr(u.type)&&Ka(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Dc(),Mn($r),Mn(jt),Cm(),s=u.flags,s&65536&&!(s&128)?(u.flags=s&-65537|128,u):null;case 5:return ln(u),null;case 13:if(Mn(Pt),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(t(340));Rr()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return Mn(Pt),null;case 4:return Dc(),null;case 10:return Oc(u.type._context),null;case 22:case 23:return J_(),null;case 24:return null;default:return null}}var fp=!1,Ro=!1,pb=typeof WeakSet=="function"?WeakSet:Set,ct=null;function vf(s,u){var v=s.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(_){jr(s,u,_)}else v.current=null}function hp(s,u,v){try{v()}catch(_){jr(s,u,_)}}var vb=!1;function mb(s,u){if(v_=za,s=nm(),bl(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,j=-1,K=-1,pe=0,Oe=0,Pe=s,Ie=null;t:for(;;){for(var rt;Pe!==v||w!==0&&Pe.nodeType!==3||(j=N+w),Pe!==R||_!==0&&Pe.nodeType!==3||(K=N+_),Pe.nodeType===3&&(N+=Pe.nodeValue.length),(rt=Pe.firstChild)!==null;)Ie=Pe,Pe=rt;for(;;){if(Pe===s)break t;if(Ie===v&&++pe===w&&(j=N),Ie===R&&++Oe===_&&(K=N),(rt=Pe.nextSibling)!==null)break;Pe=Ie,Ie=Pe.parentNode}Pe=rt}v=j===-1||K===-1?null:{start:j,end:K}}else v=null}v=v||{start:0,end:0}}else v=null;for(Mu={focusedElem:s,selectionRange:v},za=!1,ct=u;ct!==null;)if(u=ct,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,ct=s;else for(;ct!==null;){u=ct;try{var ut=u.alternate;if(u.flags&1024)switch(u.tag){case 0:case 11:case 15:break;case 1:if(ut!==null){var vt=ut.memoizedProps,Yr=ut.memoizedState,oe=u.stateNode,Q=oe.getSnapshotBeforeUpdate(u.elementType===u.type?vt:wa(u.type,vt),Yr);oe.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:var le=u.stateNode.containerInfo;le.nodeType===1?le.textContent="":le.nodeType===9&&le.documentElement&&le.removeChild(le.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(je){jr(u,u.return,je)}if(s=u.sibling,s!==null){s.return=u.return,ct=s;break}ct=u.return}return ut=vb,vb=!1,ut}function pp(s,u,v){var _=u.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&&hp(u,v,R)}w=w.next}while(w!==_)}}function vp(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var v=u=u.next;do{if((v.tag&s)===s){var _=v.create;v.destroy=_()}v=v.next}while(v!==u)}}function V_(s){var u=s.ref;if(u!==null){var v=s.stateNode;switch(s.tag){case 5:s=v;break;default:s=v}typeof u=="function"?u(s):u.current=s}}function K_(s){var u=s.alternate;u!==null&&(s.alternate=null,K_(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[Hs],delete u[Du],delete u[y_],delete u[Fk],delete u[__])),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 gb(s){return s.tag===5||s.tag===3||s.tag===4}function zm(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||gb(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 mf(s,u,v){var _=s.tag;if(_===5||_===6)s=s.stateNode,u?v.nodeType===8?v.parentNode.insertBefore(s,u):v.insertBefore(s,u):(v.nodeType===8?(u=v.parentNode,u.insertBefore(s,v)):(u=v,u.appendChild(s)),v=v._reactRootContainer,v!=null||u.onclick!==null||(u.onclick=lm));else if(_!==4&&(s=s.child,s!==null))for(mf(s,u,v),s=s.sibling;s!==null;)mf(s,u,v),s=s.sibling}function qs(s,u,v){var _=s.tag;if(_===5||_===6)s=s.stateNode,u?v.insertBefore(s,u):v.appendChild(s);else if(_!==4&&(s=s.child,s!==null))for(qs(s,u,v),s=s.sibling;s!==null;)qs(s,u,v),s=s.sibling}var Er=null,Uo=!1;function Ja(s,u,v){for(v=v.child;v!==null;)gf(s,u,v),v=v.sibling}function gf(s,u,v){if(Zi&&typeof Zi.onCommitFiberUnmount=="function")try{Zi.onCommitFiberUnmount(hc,v)}catch{}switch(v.tag){case 5:Ro||vf(v,u);case 6:var _=Er,w=Uo;Er=null,Ja(s,u,v),Er=_,Uo=w,Er!==null&&(Uo?(s=Er,v=v.stateNode,s.nodeType===8?s.parentNode.removeChild(v):s.removeChild(v)):Er.removeChild(v.stateNode));break;case 18:Er!==null&&(Uo?(s=Er,v=v.stateNode,s.nodeType===8?Tc(s.parentNode,v):s.nodeType===1&&Tc(s,v),Cc(s)):Tc(Er,v.stateNode));break;case 4:_=Er,w=Uo,Er=v.stateNode.containerInfo,Uo=!0,Ja(s,u,v),Er=_,Uo=w;break;case 0:case 11:case 14:case 15:if(!Ro&&(_=v.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){w=_=_.next;do{var R=w,N=R.destroy;R=R.tag,N!==void 0&&(R&2||R&4)&&hp(v,u,N),w=w.next}while(w!==_)}Ja(s,u,v);break;case 1:if(!Ro&&(vf(v,u),_=v.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=v.memoizedProps,_.state=v.memoizedState,_.componentWillUnmount()}catch(j){jr(v,u,j)}Ja(s,u,v);break;case 21:Ja(s,u,v);break;case 22:v.mode&1?(Ro=(_=Ro)||v.memoizedState!==null,Ja(s,u,v),Ro=_):Ja(s,u,v);break;default:Ja(s,u,v)}}function Nl(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var v=s.stateNode;v===null&&(v=s.stateNode=new pb),u.forEach(function(_){var w=Xk.bind(null,s,_);v.has(_)||(v.add(_),_.then(w,w))})}}function Ss(s,u){var v=u.deletions;if(v!==null)for(var _=0;_<v.length;_++){var w=v[_];try{var R=s,N=u,j=N;e:for(;j!==null;){switch(j.tag){case 5:Er=j.stateNode,Uo=!1;break e;case 3:Er=j.stateNode.containerInfo,Uo=!0;break e;case 4:Er=j.stateNode.containerInfo,Uo=!0;break e}j=j.return}if(Er===null)throw Error(t(160));gf(R,N,w),Er=null,Uo=!1;var K=w.alternate;K!==null&&(K.return=null),w.return=null}catch(pe){jr(w,u,pe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)yb(u,s),u=u.sibling}function yb(s,u){var v=s.alternate,_=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Ss(u,s),Vs(s),_&4){try{pp(3,s,s.return),vp(3,s)}catch(vt){jr(s,s.return,vt)}try{pp(5,s,s.return)}catch(vt){jr(s,s.return,vt)}}break;case 1:Ss(u,s),Vs(s),_&512&&v!==null&&vf(v,v.return);break;case 5:if(Ss(u,s),Vs(s),_&512&&v!==null&&vf(v,v.return),s.flags&32){var w=s.stateNode;try{pi(w,"")}catch(vt){jr(s,s.return,vt)}}if(_&4&&(w=s.stateNode,w!=null)){var R=s.memoizedProps,N=v!==null?v.memoizedProps:R,j=s.type,K=s.updateQueue;if(s.updateQueue=null,K!==null)try{j==="input"&&R.type==="radio"&&R.name!=null&&Lr(w,R),qe(j,N);var pe=qe(j,R);for(N=0;N<K.length;N+=2){var Oe=K[N],Pe=K[N+1];Oe==="style"?re(w,Pe):Oe==="dangerouslySetInnerHTML"?Ha(w,Pe):Oe==="children"?pi(w,Pe):q(w,Oe,Pe,pe)}switch(j){case"input":lr(w,R);break;case"textarea":Ii(w,R);break;case"select":var Ie=w._wrapperState.wasMultiple;w._wrapperState.wasMultiple=!!R.multiple;var rt=R.value;rt!=null?yo(w,!!R.multiple,rt,!1):Ie!==!!R.multiple&&(R.defaultValue!=null?yo(w,!!R.multiple,R.defaultValue,!0):yo(w,!!R.multiple,R.multiple?[]:"",!1))}w[Du]=R}catch(vt){jr(s,s.return,vt)}}break;case 6:if(Ss(u,s),Vs(s),_&4){if(s.stateNode===null)throw Error(t(162));w=s.stateNode,R=s.memoizedProps;try{w.nodeValue=R}catch(vt){jr(s,s.return,vt)}}break;case 3:if(Ss(u,s),Vs(s),_&4&&v!==null&&v.memoizedState.isDehydrated)try{Cc(u.containerInfo)}catch(vt){jr(s,s.return,vt)}break;case 4:Ss(u,s),Vs(s);break;case 13:Ss(u,s),Vs(s),w=s.child,w.flags&8192&&(R=w.memoizedState!==null,w.stateNode.isHidden=R,!R||w.alternate!==null&&w.alternate.memoizedState!==null||(Y_=Sn())),_&4&&Nl(s);break;case 22:if(Oe=v!==null&&v.memoizedState!==null,s.mode&1?(Ro=(pe=Ro)||Oe,Ss(u,s),Ro=pe):Ss(u,s),Vs(s),_&8192){if(pe=s.memoizedState!==null,(s.stateNode.isHidden=pe)&&!Oe&&s.mode&1)for(ct=s,Oe=s.child;Oe!==null;){for(Pe=ct=Oe;ct!==null;){switch(Ie=ct,rt=Ie.child,Ie.tag){case 0:case 11:case 14:case 15:pp(4,Ie,Ie.return);break;case 1:vf(Ie,Ie.return);var ut=Ie.stateNode;if(typeof ut.componentWillUnmount=="function"){_=Ie,v=Ie.return;try{u=_,ut.props=u.memoizedProps,ut.state=u.memoizedState,ut.componentWillUnmount()}catch(vt){jr(_,v,vt)}}break;case 5:vf(Ie,Ie.return);break;case 22:if(Ie.memoizedState!==null){G_(Pe);continue}}rt!==null?(rt.return=Ie,ct=rt):G_(Pe)}Oe=Oe.sibling}e:for(Oe=null,Pe=s;;){if(Pe.tag===5){if(Oe===null){Oe=Pe;try{w=Pe.stateNode,pe?(R=w.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none"):(j=Pe.stateNode,K=Pe.memoizedProps.style,N=K!=null&&K.hasOwnProperty("display")?K.display:null,j.style.display=Xt("display",N))}catch(vt){jr(s,s.return,vt)}}}else if(Pe.tag===6){if(Oe===null)try{Pe.stateNode.nodeValue=pe?"":Pe.memoizedProps}catch(vt){jr(s,s.return,vt)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===s)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===s)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===s)break e;Oe===Pe&&(Oe=null),Pe=Pe.return}Oe===Pe&&(Oe=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:Ss(u,s),Vs(s),_&4&&Nl(s);break;case 21:break;default:Ss(u,s),Vs(s)}}function Vs(s){var u=s.flags;if(u&2){try{e:{for(var v=s.return;v!==null;){if(gb(v)){var _=v;break e}v=v.return}throw Error(t(160))}switch(_.tag){case 5:var w=_.stateNode;_.flags&32&&(pi(w,""),_.flags&=-33);var R=zm(s);qs(s,R,w);break;case 3:case 4:var N=_.stateNode.containerInfo,j=zm(s);mf(s,j,N);break;default:throw Error(t(161))}}catch(K){jr(s,s.return,K)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function _b(s,u,v){ct=s,yf(s)}function yf(s,u,v){for(var _=(s.mode&1)!==0;ct!==null;){var w=ct,R=w.child;if(w.tag===22&&_){var N=w.memoizedState!==null||fp;if(!N){var j=w.alternate,K=j!==null&&j.memoizedState!==null||Ro;j=fp;var pe=Ro;if(fp=N,(Ro=K)&&!pe)for(ct=w;ct!==null;)N=ct,K=N.child,N.tag===22&&N.memoizedState!==null?Eb(w):K!==null?(K.return=N,ct=K):Eb(w);for(;R!==null;)ct=R,yf(R),R=R.sibling;ct=w,fp=j,Ro=pe}Cb(s)}else w.subtreeFlags&8772&&R!==null?(R.return=w,ct=R):Cb(s)}}function Cb(s){for(;ct!==null;){var u=ct;if(u.flags&8772){var v=u.alternate;try{if(u.flags&8772)switch(u.tag){case 0:case 11:case 15:Ro||vp(5,u);break;case 1:var _=u.stateNode;if(u.flags&4&&!Ro)if(v===null)_.componentDidMount();else{var w=u.elementType===u.type?v.memoizedProps:wa(u.type,v.memoizedProps);_.componentDidUpdate(w,v.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var R=u.updateQueue;R!==null&&Uu(u,R,_);break;case 3:var N=u.updateQueue;if(N!==null){if(v=null,u.child!==null)switch(u.child.tag){case 5:v=u.child.stateNode;break;case 1:v=u.child.stateNode}Uu(u,N,v)}break;case 5:var j=u.stateNode;if(v===null&&u.flags&4){v=j;var K=u.memoizedProps;switch(u.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(u.memoizedState===null){var pe=u.alternate;if(pe!==null){var Oe=pe.memoizedState;if(Oe!==null){var Pe=Oe.dehydrated;Pe!==null&&Cc(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Ro||u.flags&512&&V_(u)}catch(Ie){jr(u,u.return,Ie)}}if(u===s){ct=null;break}if(v=u.sibling,v!==null){v.return=u.return,ct=v;break}ct=u.return}}function G_(s){for(;ct!==null;){var u=ct;if(u===s){ct=null;break}var v=u.sibling;if(v!==null){v.return=u.return,ct=v;break}ct=u.return}}function Eb(s){for(;ct!==null;){var u=ct;try{switch(u.tag){case 0:case 11:case 15:var v=u.return;try{vp(4,u)}catch(K){jr(u,v,K)}break;case 1:var _=u.stateNode;if(typeof _.componentDidMount=="function"){var w=u.return;try{_.componentDidMount()}catch(K){jr(u,w,K)}}var R=u.return;try{V_(u)}catch(K){jr(u,R,K)}break;case 5:var N=u.return;try{V_(u)}catch(K){jr(u,N,K)}}}catch(K){jr(u,u.return,K)}if(u===s){ct=null;break}var j=u.sibling;if(j!==null){j.return=u.return,ct=j;break}ct=u.return}}var Bm=Math.ceil,mp=U.ReactCurrentDispatcher,W_=U.ReactCurrentOwner,_i=U.ReactCurrentBatchConfig,vn=0,Ar=null,Hr=null,Fo=0,Sa=0,_f=Jt(0),ko=0,gp=null,Ml=0,qm=0,Cf=0,Yu=null,Pi=null,Y_=0,Ef=1/0,Pl=null,Vm=!1,Qu=null,Ks=null,$c=!1,Hc=null,Km=0,wf=0,Gm=null,Xu=-1,Ju=0;function Ci(){return vn&6?Sn():Xu!==-1?Xu:Xu=Sn()}function co(s){return s.mode&1?vn&2&&Fo!==0?Fo&-Fo:pm.transition!==null?(Ju===0&&(Ju=zd()),Ju):(s=xn,s!==0||(s=window.event,s=s===void 0?16:$h(s.type)),s):1}function Ei(s,u,v,_){if(50<wf)throw wf=0,Gm=null,Error(t(185));yl(s,v,_),(!(vn&2)||s!==Ar)&&(s===Ar&&(!(vn&2)&&(qm|=v),ko===4&&Za(s,Fo)),wi(s,_),v===1&&vn===0&&!(u.mode&1)&&(Ef=Sn()+500,Do&&oa()))}function wi(s,u){var v=s.callbackNode;mc(s,u);var _=Ni(s,s===Ar?Fo:0);if(_===0)v!==null&&Wo(v),s.callbackNode=null,s.callbackPriority=0;else if(u=_&-_,s.callbackPriority!==u){if(v!=null&&Wo(v),u===1)s.tag===0?E_(wb.bind(null,s)):C_(wb.bind(null,s)),g_(function(){!(vn&6)&&oa()}),v=null;else{switch(qd(_)){case 1:v=ms;break;case 4:v=an;break;case 16:v=Us;break;case 536870912:v=Hd;break;default:v=Us}v=t0(v,bf.bind(null,s))}s.callbackPriority=u,s.callbackNode=v}}function bf(s,u){if(Xu=-1,Ju=0,vn&6)throw Error(t(327));var v=s.callbackNode;if(Tf()&&s.callbackNode!==v)return null;var _=Ni(s,s===Ar?Fo:0);if(_===0)return null;if(_&30||_&s.expiredLanes||u)u=Ym(s,_);else{u=_;var w=vn;vn|=2;var R=Wm();(Ar!==s||Fo!==u)&&(Pl=null,Ef=Sn()+500,Zu(s,u));do try{Gk();break}catch(j){bb(s,j)}while(1);k_(),mp.current=R,vn=w,Hr!==null?u=0:(Ar=null,Fo=0,u=ko)}if(u!==0){if(u===2&&(w=gc(s),w!==0&&(_=w,u=Q_(s,w))),u===1)throw v=gp,Zu(s,0),Za(s,_),wi(s,Sn()),v;if(u===6)Za(s,_);else{if(w=s.current.alternate,!(_&30)&&!X_(w)&&(u=Ym(s,_),u===2&&(R=gc(s),R!==0&&(_=R,u=Q_(s,R))),u===1))throw v=gp,Zu(s,0),Za(s,_),wi(s,Sn()),v;switch(s.finishedWork=w,s.finishedLanes=_,u){case 0:case 1:throw Error(t(345));case 2:ed(s,Pi,Pl);break;case 3:if(Za(s,_),(_&130023424)===_&&(u=Y_+500-Sn(),10<u)){if(Ni(s,0)!==0)break;if(w=s.suspendedLanes,(w&_)!==_){Ci(),s.pingedLanes|=s.suspendedLanes&w;break}s.timeoutHandle=Pu(ed.bind(null,s,Pi,Pl),u);break}ed(s,Pi,Pl);break;case 4:if(Za(s,_),(_&4194240)===_)break;for(u=s.eventTimes,w=-1;0<_;){var N=31-Oi(_);R=1<<N,N=u[N],N>w&&(w=N),_&=~R}if(_=w,_=Sn()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*Bm(_/1960))-_,10<_){s.timeoutHandle=Pu(ed.bind(null,s,Pi,Pl),_);break}ed(s,Pi,Pl);break;case 5:ed(s,Pi,Pl);break;default:throw Error(t(329))}}}return wi(s,Sn()),s.callbackNode===v?bf.bind(null,s):null}function Q_(s,u){var v=Yu;return s.current.memoizedState.isDehydrated&&(Zu(s,u).flags|=256),s=Ym(s,u),s!==2&&(u=Pi,Pi=v,u!==null&&yp(u)),s}function yp(s){Pi===null?Pi=s:Pi.push.apply(Pi,s)}function X_(s){for(var u=s;;){if(u.flags&16384){var v=u.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(!Ba(R(),w))return!1}catch{return!1}}}if(v=u.child,u.subtreeFlags&16384&&v!==null)v.return=u,u=v;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Za(s,u){for(u&=~Cf,u&=~qm,s.suspendedLanes|=u,s.pingedLanes&=~u,s=s.expirationTimes;0<u;){var v=31-Oi(u),_=1<<v;s[v]=-1,u&=~_}}function wb(s){if(vn&6)throw Error(t(327));Tf();var u=Ni(s,0);if(!(u&1))return wi(s,Sn()),null;var v=Ym(s,u);if(s.tag!==0&&v===2){var _=gc(s);_!==0&&(u=_,v=Q_(s,_))}if(v===1)throw v=gp,Zu(s,0),Za(s,u),wi(s,Sn()),v;if(v===6)throw Error(t(345));return s.finishedWork=s.current.alternate,s.finishedLanes=u,ed(s,Pi,Pl),wi(s,Sn()),null}function Sf(s,u){var v=vn;vn|=1;try{return s(u)}finally{vn=v,vn===0&&(Ef=Sn()+500,Do&&oa())}}function jc(s){Hc!==null&&Hc.tag===0&&!(vn&6)&&Tf();var u=vn;vn|=1;var v=_i.transition,_=xn;try{if(_i.transition=null,xn=1,s)return s()}finally{xn=_,_i.transition=v,vn=u,!(vn&6)&&oa()}}function J_(){Sa=_f.current,Mn(_f)}function Zu(s,u){s.finishedWork=null,s.finishedLanes=0;var v=s.timeoutHandle;if(v!==-1&&(s.timeoutHandle=-1,Qw(v)),Hr!==null)for(v=Hr.return;v!==null;){var _=v;switch(b_(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&Ka();break;case 3:Dc(),Mn($r),Mn(jt),Cm();break;case 5:ln(_);break;case 4:Dc();break;case 13:Mn(Pt);break;case 19:Mn(Pt);break;case 10:Oc(_.type._context);break;case 22:case 23:J_()}v=v.return}if(Ar=s,Hr=s=zc(s.current,null),Fo=Sa=u,ko=0,gp=null,Cf=qm=Ml=0,Pi=Yu=null,Qo!==null){for(u=0;u<Qo.length;u++)if(v=Qo[u],_=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=_}Qo=null}return s}function bb(s,u){do{var v=Hr;try{if(k_(),Em.current=Um,Dt){for(var _=fr.memoizedState;_!==null;){var w=_.queue;w!==null&&(w.pending=null),_=_.next}Dt=!1}if($u=0,En=Se=fr=null,Bs=!1,ba=0,W_.current=null,v===null||v.return===null){ko=1,gp=u,Hr=null;break}e:{var R=s,N=v.return,j=v,K=u;if(u=Fo,j.flags|=32768,K!==null&&typeof K=="object"&&typeof K.then=="function"){var pe=K,Oe=j,Pe=Oe.tag;if(!(Oe.mode&1)&&(Pe===0||Pe===11||Pe===15)){var Ie=Oe.alternate;Ie?(Oe.updateQueue=Ie.updateQueue,Oe.memoizedState=Ie.memoizedState,Oe.lanes=Ie.lanes):(Oe.updateQueue=null,Oe.memoizedState=null)}var rt=L_(N);if(rt!==null){rt.flags&=-257,U_(rt,N,j,R,u),rt.mode&1&&db(R,pe,u),u=rt,K=pe;var ut=u.updateQueue;if(ut===null){var vt=new Set;vt.add(K),u.updateQueue=vt}else ut.add(K);break e}else{if(!(u&1)){db(R,pe,u),Z_();break e}K=Error(t(426))}}else if(dr&&j.mode&1){var Yr=L_(N);if(Yr!==null){!(Yr.flags&65536)&&(Yr.flags|=256),U_(Yr,N,j,R,u),T_(ff(K,j));break e}}R=K=ff(K,j),ko!==4&&(ko=2),Yu===null?Yu=[R]:Yu.push(R),R=N;do{switch(R.tag){case 3:R.flags|=65536,u&=-u,R.lanes|=u;var oe=ub(R,K,u);I_(R,oe);break e;case 1:j=K;var Q=R.type,le=R.stateNode;if(!(R.flags&128)&&(typeof Q.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(Ks===null||!Ks.has(le)))){R.flags|=65536,u&=-u,R.lanes|=u;var je=cp(R,j,u);I_(R,je);break e}}R=R.return}while(R!==null)}e0(v)}catch(_t){u=_t,Hr===v&&v!==null&&(Hr=v=v.return);continue}break}while(1)}function Wm(){var s=mp.current;return mp.current=Um,s===null?Um:s}function Z_(){(ko===0||ko===3||ko===2)&&(ko=4),Ar===null||!(Ml&268435455)&&!(qm&268435455)||Za(Ar,Fo)}function Ym(s,u){var v=vn;vn|=2;var _=Wm();(Ar!==s||Fo!==u)&&(Pl=null,Zu(s,u));do try{Kk();break}catch(w){bb(s,w)}while(1);if(k_(),vn=v,mp.current=_,Hr!==null)throw Error(t(261));return Ar=null,Fo=0,ko}function Kk(){for(;Hr!==null;)Sb(Hr)}function Gk(){for(;Hr!==null&&!Ls();)Sb(Hr)}function Sb(s){var u=Rb(s.alternate,s,Sa);s.memoizedProps=s.pendingProps,u===null?e0(s):Hr=u,W_.current=null}function e0(s){var u=s;do{var v=u.alternate;if(s=u.return,u.flags&32768){if(v=q_(v,u),v!==null){v.flags&=32767,Hr=v;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{ko=6,Hr=null;return}}else if(v=Vk(v,u,Sa),v!==null){Hr=v;return}if(u=u.sibling,u!==null){Hr=u;return}Hr=u=s}while(u!==null);ko===0&&(ko=5)}function ed(s,u,v){var _=xn,w=_i.transition;try{_i.transition=null,xn=1,Wk(s,u,v,_)}finally{_i.transition=w,xn=_}return null}function Wk(s,u,v,_){do Tf();while(Hc!==null);if(vn&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(Qy(s,R),s===Ar&&(Hr=Ar=null,Fo=0),!(v.subtreeFlags&2064)&&!(v.flags&2064)||$c||($c=!0,t0(Us,function(){return Tf(),null})),R=(v.flags&15990)!==0,v.subtreeFlags&15990||R){R=_i.transition,_i.transition=null;var N=xn;xn=1;var j=vn;vn|=4,W_.current=null,mb(s,v),yb(v,s),rm(Mu),za=!!v_,Mu=v_=null,s.current=v,_b(v),$d(),vn=j,xn=N,_i.transition=R}else s.current=v;if($c&&($c=!1,Hc=s,Km=w),R=s.pendingLanes,R===0&&(Ks=null),Lh(v.stateNode),wi(s,Sn()),u!==null)for(_=s.onRecoverableError,v=0;v<u.length;v++)w=u[v],_(w.value,{componentStack:w.stack,digest:w.digest});if(Vm)throw Vm=!1,s=Qu,Qu=null,s;return Km&1&&s.tag!==0&&Tf(),R=s.pendingLanes,R&1?s===Gm?wf++:(wf=0,Gm=s):wf=0,oa(),null}function Tf(){if(Hc!==null){var s=qd(Km),u=_i.transition,v=xn;try{if(_i.transition=null,xn=16>s?16:s,Hc===null)var _=!1;else{if(s=Hc,Hc=null,Km=0,vn&6)throw Error(t(331));var w=vn;for(vn|=4,ct=s.current;ct!==null;){var R=ct,N=R.child;if(ct.flags&16){var j=R.deletions;if(j!==null){for(var K=0;K<j.length;K++){var pe=j[K];for(ct=pe;ct!==null;){var Oe=ct;switch(Oe.tag){case 0:case 11:case 15:pp(8,Oe,R)}var Pe=Oe.child;if(Pe!==null)Pe.return=Oe,ct=Pe;else for(;ct!==null;){Oe=ct;var Ie=Oe.sibling,rt=Oe.return;if(K_(Oe),Oe===pe){ct=null;break}if(Ie!==null){Ie.return=rt,ct=Ie;break}ct=rt}}}var ut=R.alternate;if(ut!==null){var vt=ut.child;if(vt!==null){ut.child=null;do{var Yr=vt.sibling;vt.sibling=null,vt=Yr}while(vt!==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:pp(9,R,R.return)}var oe=R.sibling;if(oe!==null){oe.return=R.return,ct=oe;break e}ct=R.return}}var Q=s.current;for(ct=Q;ct!==null;){N=ct;var le=N.child;if(N.subtreeFlags&2064&&le!==null)le.return=N,ct=le;else e:for(N=Q;ct!==null;){if(j=ct,j.flags&2048)try{switch(j.tag){case 0:case 11:case 15:vp(9,j)}}catch(_t){jr(j,j.return,_t)}if(j===N){ct=null;break e}var je=j.sibling;if(je!==null){je.return=j.return,ct=je;break e}ct=j.return}}if(vn=w,oa(),Zi&&typeof Zi.onPostCommitFiberRoot=="function")try{Zi.onPostCommitFiberRoot(hc,s)}catch{}_=!0}return _}finally{xn=v,_i.transition=u}}return!1}function Tb(s,u,v){u=ff(v,u),u=ub(s,u,1),s=Mc(s,u,1),u=Ci(),s!==null&&(yl(s,1,u),wi(s,u))}function jr(s,u,v){if(s.tag===3)Tb(s,s,v);else for(;u!==null;){if(u.tag===3){Tb(u,s,v);break}else if(u.tag===1){var _=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(Ks===null||!Ks.has(_))){s=ff(v,s),s=cp(u,s,1),u=Mc(u,s,1),s=Ci(),u!==null&&(yl(u,1,s),wi(u,s));break}}u=u.return}}function Yk(s,u,v){var _=s.pingCache;_!==null&&_.delete(u),u=Ci(),s.pingedLanes|=s.suspendedLanes&v,Ar===s&&(Fo&v)===v&&(ko===4||ko===3&&(Fo&130023424)===Fo&&500>Sn()-Y_?Zu(s,0):Cf|=v),wi(s,u)}function Qm(s,u){u===0&&(s.mode&1?(u=pc,pc<<=1,!(pc&130023424)&&(pc=4194304)):u=1);var v=Ci();s=Al(s,u),s!==null&&(yl(s,u,v),wi(s,v))}function Qk(s){var u=s.memoizedState,v=0;u!==null&&(v=u.retryLane),Qm(s,v)}function Xk(s,u){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(u),Qm(s,v)}var Rb;Rb=function(s,u,v){if(s!==null)if(s.memoizedProps!==u.pendingProps||$r.current)lo=!0;else{if(!(s.lanes&v)&&!(u.flags&128))return lo=!1,Ol(s,u,v);lo=!!(s.flags&131072)}else lo=!1,dr&&u.flags&1048576&&w_(u,of,u.index);switch(u.lanes=0,u.tag){case 2:var _=u.type;gi(s,u),s=u.pendingProps;var w=Va(u,jt.current);Ye(u,v),w=Lc(null,u,_,s,w,v);var R=zu();return u.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Cr(_)?(R=!0,cm(u)):R=!1,u.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,x_(u),w.updater=gm,u.stateNode=w,w._reactInternals=u,ym(u,_,s,v),u=fb(null,u,_,!0,R,v)):(u.tag=0,dr&&R&&um(u),So(null,u,w,v),u=u.child),u;case 16:_=u.elementType;e:{switch(gi(s,u),s=u.pendingProps,w=_._init,_=w(_._payload),u.type=_,w=u.tag=Zk(_),s=wa(_,s),w){case 0:u=hf(null,u,_,s,v);break e;case 1:u=F_(null,u,_,s,v);break e;case 11:u=Fc(null,u,_,s,v);break e;case 14:u=$m(null,u,_,wa(_.type,s),v);break e}throw Error(t(306,_,""))}return u;case 0:return _=u.type,w=u.pendingProps,w=u.elementType===_?w:wa(_,w),hf(s,u,_,w,v);case 1:return _=u.type,w=u.pendingProps,w=u.elementType===_?w:wa(_,w),F_(s,u,_,w,v);case 3:e:{if(hb(u),s===null)throw Error(t(387));_=u.pendingProps,R=u.memoizedState,w=R.element,bo(s,u),Pc(u,_,null,v);var N=u.memoizedState;if(_=N.element,R.isDehydrated)if(R={element:_,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},u.updateQueue.baseState=R,u.memoizedState=R,u.flags&256){w=ff(Error(t(423)),u),u=Hm(s,u,_,v,w);break e}else if(_!==w){w=ff(Error(t(424)),u),u=Hm(s,u,_,v,w);break e}else for(sa=ws(u.stateNode.containerInfo.firstChild),Ea=u,dr=!0,Wa=null,v=lb(u,null,_,v),u.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(Rr(),_===w){u=Xo(s,u,v);break e}So(s,u,_,v)}u=u.child}return u;case 5:return Ot(u),s===null&&fm(u),_=u.type,w=u.pendingProps,R=s!==null?s.memoizedProps:null,N=w.children,Xh(_,w)?N=null:R!==null&&Xh(_,R)&&(u.flags|=32),Zt(s,u),So(s,u,N,v),u.child;case 6:return s===null&&fm(u),null;case 13:return H_(s,u,v);case 4:return N_(u,u.stateNode.containerInfo),_=u.pendingProps,s===null?u.child=sf(u,null,_,v):So(s,u,_,v),u.child;case 11:return _=u.type,w=u.pendingProps,w=u.elementType===_?w:wa(_,w),Fc(s,u,_,w,v);case 7:return So(s,u,u.pendingProps,v),u.child;case 8:return So(s,u,u.pendingProps.children,v),u.child;case 12:return So(s,u,u.pendingProps.children,v),u.child;case 10:e:{if(_=u.type._context,w=u.pendingProps,R=u.memoizedProps,N=w.value,Un(zs,_._currentValue),_._currentValue=N,R!==null)if(Ba(R.value,N)){if(R.children===w.children&&!$r.current){u=Xo(s,u,v);break e}}else for(R=u.child,R!==null&&(R.return=u);R!==null;){var j=R.dependencies;if(j!==null){N=R.child;for(var K=j.firstContext;K!==null;){if(K.context===_){if(R.tag===1){K=xl(-1,v&-v),K.tag=2;var pe=R.updateQueue;if(pe!==null){pe=pe.shared;var Oe=pe.pending;Oe===null?K.next=K:(K.next=Oe.next,Oe.next=K),pe.pending=K}}R.lanes|=v,K=R.alternate,K!==null&&(K.lanes|=v),Lo(R.return,v,u),j.lanes|=v;break}K=K.next}}else if(R.tag===10)N=R.type===u.type?null:R.child;else if(R.tag===18){if(N=R.return,N===null)throw Error(t(341));N.lanes|=v,j=N.alternate,j!==null&&(j.lanes|=v),Lo(N,v,u),N=R.sibling}else N=R.child;if(N!==null)N.return=R;else for(N=R;N!==null;){if(N===u){N=null;break}if(R=N.sibling,R!==null){R.return=N.return,N=R;break}N=N.return}R=N}So(s,u,w.children,v),u=u.child}return u;case 9:return w=u.type,_=u.pendingProps.children,Ye(u,v),w=Wr(w),_=_(w),u.flags|=1,So(s,u,_,v),u.child;case 14:return _=u.type,w=wa(_,u.pendingProps),w=wa(_.type,w),$m(s,u,_,w,v);case 15:return ua(s,u,u.type,u.pendingProps,v);case 17:return _=u.type,w=u.pendingProps,w=u.elementType===_?w:wa(_,w),gi(s,u),u.tag=1,Cr(_)?(s=!0,cm(u)):s=!1,Ye(u,v),ob(u,_,w),ym(u,_,w,v),fb(null,u,_,!0,s,v);case 19:return B_(s,u,v);case 22:return Ku(s,u,v)}throw Error(t(156,u.tag))};function t0(s,u){return or(s,u)}function Jk(s,u,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=u,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 es(s,u,v,_){return new Jk(s,u,v,_)}function n0(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Zk(s){if(typeof s=="function")return n0(s)?1:0;if(s!=null){if(s=s.$$typeof,s===ze)return 11;if(s===ye)return 14}return 2}function zc(s,u){var v=s.alternate;return v===null?(v=es(s.tag,u,s.key,s.mode),v.elementType=s.elementType,v.type=s.type,v.stateNode=s.stateNode,v.alternate=s,s.alternate=v):(v.pendingProps=u,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,u=s.dependencies,v.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},v.sibling=s.sibling,v.index=s.index,v.ref=s.ref,v}function Xm(s,u,v,_,w,R){var N=2;if(_=s,typeof s=="function")n0(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case Z:return td(v.children,w,R,u);case Ne:N=8,w|=8;break;case Ze:return s=es(12,v,u,w|2),s.elementType=Ze,s.lanes=R,s;case ee:return s=es(13,v,u,w),s.elementType=ee,s.lanes=R,s;case J:return s=es(19,v,u,w),s.elementType=J,s.lanes=R,s;case he:return _p(v,w,R,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case it:N=10;break e;case Me:N=9;break e;case ze: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 u=es(N,v,u,w),u.elementType=s,u.type=_,u.lanes=R,u}function td(s,u,v,_){return s=es(7,s,_,u),s.lanes=v,s}function _p(s,u,v,_){return s=es(22,s,_,u),s.elementType=he,s.lanes=v,s.stateNode={isHidden:!1},s}function Cp(s,u,v){return s=es(6,s,null,u),s.lanes=v,s}function nd(s,u,v){return u=es(4,s.children!==null?s.children:[],s.key,u),u.lanes=v,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function eA(s,u,v,_,w){this.tag=u,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=Bd(0),this.expirationTimes=Bd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bd(0),this.identifierPrefix=_,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function Jm(s,u,v,_,w,R,N,j,K){return s=new eA(s,u,v,j,K),u===1?(u=1,R===!0&&(u|=8)):u=0,R=es(3,null,null,u),s.current=R,R.stateNode=s,R.memoizedState={element:_,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},x_(R),s}function kb(s,u,v){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:te,key:_==null?null:""+_,children:s,containerInfo:u,implementation:v}}function r0(s){if(!s)return js;s=s._reactInternals;e:{if(Ht(s)!==s||s.tag!==1)throw Error(t(170));var u=s;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Cr(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(t(171))}if(s.tag===1){var v=s.type;if(Cr(v))return ep(s,v,u)}return u}function Ab(s,u,v,_,w,R,N,j,K){return s=Jm(v,_,!0,s,w,R,N,j,K),s.context=r0(null),v=s.current,_=Ci(),w=co(v),R=xl(_,w),R.callback=u??null,Mc(v,R,w),s.current.lanes=w,yl(s,w,_),wi(s,_),s}function Ep(s,u,v,_){var w=u.current,R=Ci(),N=co(w);return v=r0(v),u.context===null?u.context=v:u.pendingContext=v,u=xl(R,N),u.payload={element:s},_=_===void 0?null:_,_!==null&&(u.callback=_),s=Mc(w,u,N),s!==null&&(Ei(s,w,N,R),mm(s,w,N)),N}function Zm(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 xb(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var v=s.retryLane;s.retryLane=v!==0&&v<u?v:u}}function o0(s,u){xb(s,u),(s=s.alternate)&&xb(s,u)}function Ib(){return null}var i0=typeof reportError=="function"?reportError:function(s){console.error(s)};function eg(s){this._internalRoot=s}Dl.prototype.render=eg.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(t(409));Ep(s,u,null,null)},Dl.prototype.unmount=eg.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;jc(function(){Ep(null,s,null,null)}),u[Rl]=null}};function Dl(s){this._internalRoot=s}Dl.prototype.unstable_scheduleHydration=function(s){if(s){var u=Kd();s={blockedOn:null,target:s,priority:u};for(var v=0;v<Ln.length&&u!==0&&u<Ln[v].priority;v++);Ln.splice(v,0,s),v===0&&Qv(s)}};function a0(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function tg(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function Ob(){}function tA(s,u,v,_,w){if(w){if(typeof _=="function"){var R=_;_=function(){var pe=Zm(N);R.call(pe)}}var N=Ab(u,_,s,0,null,!1,!1,"",Ob);return s._reactRootContainer=N,s[Rl]=N.current,nf(s.nodeType===8?s.parentNode:s),jc(),N}for(;w=s.lastChild;)s.removeChild(w);if(typeof _=="function"){var j=_;_=function(){var pe=Zm(K);j.call(pe)}}var K=Jm(s,0,!1,null,null,!1,!1,"",Ob);return s._reactRootContainer=K,s[Rl]=K.current,nf(s.nodeType===8?s.parentNode:s),jc(function(){Ep(u,K,v,_)}),K}function ng(s,u,v,_,w){var R=v._reactRootContainer;if(R){var N=R;if(typeof w=="function"){var j=w;w=function(){var K=Zm(N);j.call(K)}}Ep(u,N,s,w)}else N=tA(v,u,s,w,_);return Zm(N)}Ru=function(s){switch(s.tag){case 3:var u=s.stateNode;if(u.current.memoizedState.isDehydrated){var v=gs(u.pendingLanes);v!==0&&(Fs(u,v|1),wi(u,Sn()),!(vn&6)&&(Ef=Sn()+500,oa()))}break;case 13:jc(function(){var _=Al(s,1);if(_!==null){var w=Ci();Ei(_,s,1,w)}}),o0(s,1)}},Vd=function(s){if(s.tag===13){var u=Al(s,134217728);if(u!==null){var v=Ci();Ei(u,s,134217728,v)}o0(s,134217728)}},Tn=function(s){if(s.tag===13){var u=co(s),v=Al(s,u);if(v!==null){var _=Ci();Ei(v,s,u,_)}o0(s,u)}},Kd=function(){return xn},Gd=function(s,u){var v=xn;try{return xn=s,u()}finally{xn=v}},yt=function(s,u,v){switch(u){case"input":if(lr(s,v),u=v.name,v.type==="radio"&&u!=null){for(v=s;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<v.length;u++){var _=v[u];if(_!==s&&_.form===s.form){var w=Rt(_);if(!w)throw Error(t(90));hi(_),lr(_,w)}}}break;case"textarea":Ii(s,v);break;case"select":u=v.value,u!=null&&yo(s,!!v.multiple,u,!1)}},Bn=Sf,cr=jc;var nA={usingClientEntryPoint:!1,Events:[Zh,rf,Rt,Dn,pn,Sf]},Rf={findFiberByHostInstance:qa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rA={bundleType:Rf.bundleType,version:Rf.version,rendererPackageName:Rf.rendererPackageName,rendererConfig:Rf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Ur(s),s===null?null:s.stateNode},findFiberByHostInstance:Rf.findFiberByHostInstance||Ib,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 rg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rg.isDisabled&&rg.supportsFiber)try{hc=rg.inject(rA),Zi=rg}catch{}}return Ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nA,Ia.createPortal=function(s,u){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a0(u))throw Error(t(200));return kb(s,u,null,v)},Ia.createRoot=function(s,u){if(!a0(s))throw Error(t(299));var v=!1,_="",w=i0;return u!=null&&(u.unstable_strictMode===!0&&(v=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onRecoverableError!==void 0&&(w=u.onRecoverableError)),u=Jm(s,1,!1,null,null,v,!1,_,w),s[Rl]=u.current,nf(s.nodeType===8?s.parentNode:s),new eg(u)},Ia.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(t(188)):(s=Object.keys(s).join(","),Error(t(268,s)));return s=Ur(u),s=s===null?null:s.stateNode,s},Ia.flushSync=function(s){return jc(s)},Ia.hydrate=function(s,u,v){if(!tg(u))throw Error(t(200));return ng(null,s,u,!0,v)},Ia.hydrateRoot=function(s,u,v){if(!a0(s))throw Error(t(405));var _=v!=null&&v.hydratedSources||null,w=!1,R="",N=i0;if(v!=null&&(v.unstable_strictMode===!0&&(w=!0),v.identifierPrefix!==void 0&&(R=v.identifierPrefix),v.onRecoverableError!==void 0&&(N=v.onRecoverableError)),u=Ab(u,null,s,1,v??null,w,!1,R,N),s[Rl]=u.current,nf(s),_)for(s=0;s<_.length;s++)v=_[s],w=v._getVersion,w=w(v._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[v,w]:u.mutableSourceEagerHydrationData.push(v,w);return new Dl(u)},Ia.render=function(s,u,v){if(!tg(u))throw Error(t(200));return ng(null,s,u,!1,v)},Ia.unmountComponentAtNode=function(s){if(!tg(s))throw Error(t(40));return s._reactRootContainer?(jc(function(){ng(null,null,s,!1,function(){s._reactRootContainer=null,s[Rl]=null})}),!0):!1},Ia.unstable_batchedUpdates=Sf,Ia.unstable_renderSubtreeIntoContainer=function(s,u,v,_){if(!tg(v))throw Error(t(200));if(s==null||s._reactInternals===void 0)throw Error(t(38));return ng(s,u,v,!1,_)},Ia.version="18.2.0-next-9e3b772b8-20220608",Ia}var Oa={};/**
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 iO;function PH(){return iO||(iO=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=P,e=rO(),t=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function a(o){r=o}function l(o){if(!r){for(var i=arguments.length,d=new Array(i>1?i-1:0),h=1;h<i;h++)d[h-1]=arguments[h];f("warn",o,d)}}function c(o){if(!r){for(var i=arguments.length,d=new Array(i>1?i-1:0),h=1;h<i;h++)d[h-1]=arguments[h];f("error",o,d)}}function f(o,i,d){{var h=t.ReactDebugCurrentFrame,g=h.getStackAddendum();g!==""&&(i+="%s",d=d.concat([g]));var C=d.map(function(b){return String(b)});C.unshift("Warning: "+i),Function.prototype.apply.call(console[o],console,C)}}var p=0,m=1,y=2,E=3,S=4,T=5,A=6,O=7,F=8,H=9,D=10,q=11,U=12,V=13,te=14,Z=15,Ne=16,Ze=17,it=18,Me=19,ze=21,ee=22,J=23,ye=24,me=25,he=!0,G=!1,ge=!1,$=!1,ne=!1,ke=!0,lt=!1,Le=!1,xt=!0,Ut=!0,Bt=!0,wt=new Set,gn={},Gr={};function Wn(o,i){hi(o,i),hi(o+"Capture",i)}function hi(o,i){gn[o]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",o),gn[o]=i;{var d=o.toLowerCase();Gr[d]=o,o==="onDoubleClick"&&(Gr.ondblclick=o)}for(var h=0;h<i.length;h++)wt.add(i[h])}var ar=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ro=Object.prototype.hasOwnProperty;function sr(o){{var i=typeof Symbol=="function"&&Symbol.toStringTag,d=i&&o[Symbol.toStringTag]||o.constructor.name||"Object";return d}}function Lr(o){try{return lr(o),!1}catch{return!0}}function lr(o){return""+o}function go(o,i){if(Lr(o))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",i,sr(o)),lr(o)}function No(o){if(Lr(o))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",sr(o)),lr(o)}function Xn(o,i){if(Lr(o))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",i,sr(o)),lr(o)}function yo(o,i){if(Lr(o))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",i,sr(o)),lr(o)}function Vo(o){if(Lr(o))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",sr(o)),lr(o)}function _o(o){if(Lr(o))return c("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.",sr(o)),lr(o)}var Ii=0,oo=1,Co=2,nr=3,Eo=4,Ha=5,pi=6,Ve=":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",mt=Ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Xt=new RegExp("^["+Ve+"]["+mt+"]*$"),re={},se={};function Te(o){return ro.call(se,o)?!0:ro.call(re,o)?!1:Xt.test(o)?(se[o]=!0,!0):(re[o]=!0,c("Invalid attribute name: `%s`",o),!1)}function qe(o,i,d){return i!==null?i.type===Ii:d?!1:o.length>2&&(o[0]==="o"||o[0]==="O")&&(o[1]==="n"||o[1]==="N")}function gt(o,i,d,h){if(d!==null&&d.type===Ii)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":{if(h)return!1;if(d!==null)return!d.acceptsBooleans;var g=o.toLowerCase().slice(0,5);return g!=="data-"&&g!=="aria-"}default:return!1}}function Je(o,i,d,h){if(i===null||typeof i>"u"||gt(o,i,d,h))return!0;if(h)return!1;if(d!==null)switch(d.type){case nr:return!i;case Eo:return i===!1;case Ha:return isNaN(i);case pi:return isNaN(i)||i<1}return!1}function yt(o){return Be.hasOwnProperty(o)?Be[o]:null}function Ke(o,i,d,h,g,C,b){this.acceptsBooleans=i===Co||i===nr||i===Eo,this.attributeName=h,this.attributeNamespace=g,this.mustUseProperty=d,this.propertyName=o,this.type=i,this.sanitizeURL=C,this.removeEmptyString=b}var Be={},on=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];on.forEach(function(o){Be[o]=new Ke(o,Ii,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var i=o[0],d=o[1];Be[i]=new Ke(i,oo,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){Be[o]=new Ke(o,Co,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){Be[o]=new Ke(o,Co,!1,o,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(o){Be[o]=new Ke(o,nr,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){Be[o]=new Ke(o,nr,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){Be[o]=new Ke(o,Eo,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){Be[o]=new Ke(o,pi,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){Be[o]=new Ke(o,Ha,!1,o.toLowerCase(),null,!1,!1)});var Dn=/[\-\:]([a-z])/g,pn=function(o){return o[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(o){var i=o.replace(Dn,pn);Be[i]=new Ke(i,oo,!1,o,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(o){var i=o.replace(Dn,pn);Be[i]=new Ke(i,oo,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var i=o.replace(Dn,pn);Be[i]=new Ke(i,oo,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){Be[o]=new Ke(o,oo,!1,o.toLowerCase(),null,!1,!1)});var Bn="xlinkHref";Be[Bn]=new Ke("xlinkHref",oo,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){Be[o]=new Ke(o,oo,!1,o.toLowerCase(),null,!0,!0)});var cr=/^[\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,Ko=!1;function vi(o){!Ko&&cr.test(o)&&(Ko=!0,c("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(o)))}function wo(o,i,d,h){if(h.mustUseProperty){var g=h.propertyName;return o[g]}else{go(d,i),h.sanitizeURL&&vi(""+d);var C=h.attributeName,b=null;if(h.type===Eo){if(o.hasAttribute(C)){var k=o.getAttribute(C);return k===""?!0:Je(i,d,h,!1)?k:k===""+d?d:k}}else if(o.hasAttribute(C)){if(Je(i,d,h,!1))return o.getAttribute(C);if(h.type===nr)return d;b=o.getAttribute(C)}return Je(i,d,h,!1)?b===null?d:b:b===""+d?d:b}}function Xi(o,i,d,h){{if(!Te(i))return;if(!o.hasAttribute(i))return d===void 0?void 0:null;var g=o.getAttribute(i);return go(d,i),g===""+d?d:g}}function Sr(o,i,d,h){var g=yt(i);if(!qe(i,g,h)){if(Je(i,d,g,h)&&(d=null),h||g===null){if(Te(i)){var C=i;d===null?o.removeAttribute(C):(go(d,i),o.setAttribute(C,""+d))}return}var b=g.mustUseProperty;if(b){var k=g.propertyName;if(d===null){var x=g.type;o[k]=x===nr?!1:""}else o[k]=d;return}var M=g.attributeName,L=g.attributeNamespace;if(d===null)o.removeAttribute(M);else{var X=g.type,Y;X===nr||X===Eo&&d===!0?Y="":(go(d,M),Y=""+d,g.sanitizeURL&&vi(Y.toString())),L?o.setAttributeNS(L,M,Y):o.setAttribute(M,Y)}}}var io=Symbol.for("react.element"),ao=Symbol.for("react.portal"),Go=Symbol.for("react.fragment"),Ji=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),Ce=Symbol.for("react.provider"),$e=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),Tt=Symbol.for("react.suspense_list"),Ft=Symbol.for("react.memo"),bt=Symbol.for("react.lazy"),Ur=Symbol.for("react.scope"),rr=Symbol.for("react.debug_trace_mode"),or=Symbol.for("react.offscreen"),Wo=Symbol.for("react.legacy_hidden"),Ls=Symbol.for("react.cache"),$d=Symbol.for("react.tracing_marker"),Sn=Symbol.iterator,Yy="@@iterator";function ms(o){if(o===null||typeof o!="object")return null;var i=Sn&&o[Sn]||o[Yy];return typeof i=="function"?i:null}var an=Object.assign,Us=0,fc,Hd,hc,Zi,Lh,Oi,Uh;function Fh(){}Fh.__reactDisabledLog=!0;function Wv(){{if(Us===0){fc=console.log,Hd=console.info,hc=console.warn,Zi=console.error,Lh=console.group,Oi=console.groupCollapsed,Uh=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Fh,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}Us++}}function jd(){{if(Us--,Us===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:an({},o,{value:fc}),info:an({},o,{value:Hd}),warn:an({},o,{value:hc}),error:an({},o,{value:Zi}),group:an({},o,{value:Lh}),groupCollapsed:an({},o,{value:Oi}),groupEnd:an({},o,{value:Uh})})}Us<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pc=t.ReactCurrentDispatcher,gs;function Ni(o,i,d){{if(gs===void 0)try{throw Error()}catch(g){var h=g.stack.trim().match(/\n( *(at )?)/);gs=h&&h[1]||""}return`
105
+ `+gs+o}}var vc=!1,mc;{var gc=typeof WeakMap=="function"?WeakMap:Map;mc=new gc}function zd(o,i){if(!o||vc)return"";{var d=mc.get(o);if(d!==void 0)return d}var h;vc=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=pc.current,pc.current=null,Wv();try{if(i){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(o,[],b)}else{try{b.call()}catch(fe){h=fe}o.call(b.prototype)}}else{try{throw Error()}catch(fe){h=fe}o()}}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,L=x.length-1;M>=1&&L>=0&&k[M]!==x[L];)L--;for(;M>=1&&L>=0;M--,L--)if(k[M]!==x[L]){if(M!==1||L!==1)do if(M--,L--,L<0||k[M]!==x[L]){var X=`
108
+ `+k[M].replace(" at new "," at ");return o.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",o.displayName)),typeof o=="function"&&mc.set(o,X),X}while(M>=1&&L>=0);break}}}finally{vc=!1,pc.current=C,jd(),Error.prepareStackTrace=g}var Y=o?o.displayName||o.name:"",ue=Y?Ni(Y):"";return typeof o=="function"&&mc.set(o,ue),ue}function Bd(o,i,d){return zd(o,!0)}function yl(o,i,d){return zd(o,!1)}function Qy(o){var i=o.prototype;return!!(i&&i.isReactComponent)}function Fs(o,i,d){if(o==null)return"";if(typeof o=="function")return zd(o,Qy(o));if(typeof o=="string")return Ni(o);switch(o){case Ht:return Ni("Suspense");case Tt:return Ni("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case We:return yl(o.render);case Ft:return Fs(o.type,i,d);case bt:{var h=o,g=h._payload,C=h._init;try{return Fs(C(g),i,d)}catch{}}}return""}function xn(o){switch(o._debugOwner&&o._debugOwner.type,o._debugSource,o.tag){case T:return Ni(o.type);case Ne:return Ni("Lazy");case V:return Ni("Suspense");case Me:return Ni("SuspenseList");case p:case y:case Z:return yl(o.type);case q:return yl(o.type.render);case m:return Bd(o.type);default:return""}}function qd(o){try{var i="",d=o;do i+=xn(d),d=d.return;while(d);return i}catch(h){return`
109
+ Error generating stack: `+h.message+`
110
+ `+h.stack}}function Ru(o,i,d){var h=o.displayName;if(h)return h;var g=i.displayName||i.name||"";return g!==""?d+"("+g+")":d}function Vd(o){return o.displayName||"Context"}function Tn(o){if(o==null)return null;if(typeof o.tag=="number"&&c("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 Go:return"Fragment";case ao:return"Portal";case z:return"Profiler";case Ji:return"StrictMode";case Ht:return"Suspense";case Tt:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case $e:var i=o;return Vd(i)+".Consumer";case Ce:var d=o;return Vd(d._context)+".Provider";case We:return Ru(o,o.render,"ForwardRef");case Ft:var h=o.displayName||null;return h!==null?h:Tn(o.type)||"Memo";case bt:{var g=o,C=g._payload,b=g._init;try{return Tn(b(C))}catch{return null}}}return null}function Kd(o,i,d){var h=i.displayName||i.name||"";return o.displayName||(h!==""?d+"("+h+")":d)}function Gd(o){return o.displayName||"Context"}function qt(o){var i=o.tag,d=o.type;switch(i){case ye:return"Cache";case H:var h=d;return Gd(h)+".Consumer";case D:var g=d;return Gd(g._context)+".Provider";case it:return"DehydratedFragment";case q:return Kd(d,d.render,"ForwardRef");case O:return"Fragment";case T:return d;case S:return"Portal";case E:return"Root";case A:return"Text";case Ne:return Tn(d);case F:return d===Ji?"StrictMode":"Mode";case ee:return"Offscreen";case U:return"Profiler";case ze:return"Scope";case V:return"Suspense";case Me:return"SuspenseList";case me:return"TracingMarker";case m:case p:case Ze:case y:case te:case Z:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;break}return null}var ku=t.ReactDebugCurrentFrame,Tr=null,ea=!1;function Mi(){{if(Tr===null)return null;var o=Tr._debugOwner;if(o!==null&&typeof o<"u")return qt(o)}return null}function yc(){return Tr===null?"":qd(Tr)}function Fr(){ku.getCurrentStack=null,Tr=null,ea=!1}function Ln(o){ku.getCurrentStack=o===null?null:yc,Tr=o,ea=!1}function Yv(){return Tr}function ta(o){ea=o}function Mo(o){return""+o}function $s(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return _o(o),o;default:return""}}var Qv={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function _l(o,i){Qv[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||c("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`."),i.onChange||i.readOnly||i.disabled||i.checked==null||c("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 _c(o){var i=o.type,d=o.nodeName;return d&&d.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Xv(o){return o._valueTracker}function ja(o){o._valueTracker=null}function Cc(o){var i="";return o&&(_c(o)?i=o.checked?"true":"false":i=o.value),i}function Ec(o){var i=_c(o)?"checked":"value",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,i);_o(o[i]);var h=""+o[i];if(!(o.hasOwnProperty(i)||typeof d>"u"||typeof d.get!="function"||typeof d.set!="function")){var g=d.get,C=d.set;Object.defineProperty(o,i,{configurable:!0,get:function(){return g.call(this)},set:function(k){_o(k),h=""+k,C.call(this,k)}}),Object.defineProperty(o,i,{enumerable:d.enumerable});var b={getValue:function(){return h},setValue:function(k){_o(k),h=""+k},stopTracking:function(){ja(o),delete o[i]}};return b}}function za(o){Xv(o)||(o._valueTracker=Ec(o))}function Wd(o){if(!o)return!1;var i=Xv(o);if(!i)return!0;var d=i.getValue(),h=Cc(o);return h!==d?(i.setValue(h),!0):!1}function wc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var bc=!1,Au=!1,Yd=!1,$h=!1;function ys(o){var i=o.type==="checkbox"||o.type==="radio";return i?o.checked!=null:o.value!=null}function I(o,i){var d=o,h=i.checked,g=an({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??d._wrapperState.initialChecked});return g}function B(o,i){_l("input",i),i.checked!==void 0&&i.defaultChecked!==void 0&&!Au&&(c("%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",Mi()||"A component",i.type),Au=!0),i.value!==void 0&&i.defaultValue!==void 0&&!bc&&(c("%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",Mi()||"A component",i.type),bc=!0);var d=o,h=i.defaultValue==null?"":i.defaultValue;d._wrapperState={initialChecked:i.checked!=null?i.checked:i.defaultChecked,initialValue:$s(i.value!=null?i.value:h),controlled:ys(i)}}function de(o,i){var d=o,h=i.checked;h!=null&&Sr(d,"checked",h,!1)}function _e(o,i){var d=o;{var h=ys(i);!d._wrapperState.controlled&&h&&!$h&&(c("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"),$h=!0),d._wrapperState.controlled&&!h&&!Yd&&(c("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"),Yd=!0)}de(o,i);var g=$s(i.value),C=i.type;if(g!=null)C==="number"?(g===0&&d.value===""||d.value!=g)&&(d.value=Mo(g)):d.value!==Mo(g)&&(d.value=Mo(g));else if(C==="submit"||C==="reset"){d.removeAttribute("value");return}i.hasOwnProperty("value")?It(d,i.type,g):i.hasOwnProperty("defaultValue")&&It(d,i.type,$s(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(d.defaultChecked=!!i.defaultChecked)}function He(o,i,d){var h=o;if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var g=i.type,C=g==="submit"||g==="reset";if(C&&(i.value===void 0||i.value===null))return;var b=Mo(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 Mt(o,i){var d=o;_e(d,i),Xe(d,i)}function Xe(o,i){var d=i.name;if(i.type==="radio"&&d!=null){for(var h=o;h.parentNode;)h=h.parentNode;go(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===o||b.form!==o.form)){var k=Wb(b);if(!k)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Wd(b),_e(b,k)}}}}function It(o,i,d){(i!=="number"||wc(o.ownerDocument)!==o)&&(d==null?o.defaultValue=Mo(o._wrapperState.initialValue):o.defaultValue!==Mo(d)&&(o.defaultValue=Mo(d)))}var sn=!1,Rn=!1,Jn=!1;function qn(o,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?n.Children.forEach(i.children,function(d){d!=null&&(typeof d=="string"||typeof d=="number"||Rn||(Rn=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):i.dangerouslySetInnerHTML!=null&&(Jn||(Jn=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),i.selected!=null&&!sn&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),sn=!0)}function Zn(o,i){i.value!=null&&o.setAttribute("value",Mo($s(i.value)))}var ir=Array.isArray;function yn(o){return ir(o)}var Cl;Cl=!1;function Qd(){var o=Mi();return o?`
111
+
112
+ Check the render method of \``+o+"`.":""}var Hh=["value","defaultValue"];function Xy(o){{_l("select",o);for(var i=0;i<Hh.length;i++){var d=Hh[i];if(o[d]!=null){var h=yn(o[d]);o.multiple&&!h?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",d,Qd()):!o.multiple&&h&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",d,Qd())}}}}function _s(o,i,d,h){var g=o.options;if(i){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 L=Mo($s(d)),X=null,Y=0;Y<g.length;Y++){if(g[Y].value===L){g[Y].selected=!0,h&&(g[Y].defaultSelected=!0);return}X===null&&!g[Y].disabled&&(X=g[Y])}X!==null&&(X.selected=!0)}}function jh(o,i){return an({},i,{value:void 0})}function zh(o,i){var d=o;Xy(i),d._wrapperState={wasMultiple:!!i.multiple},i.value!==void 0&&i.defaultValue!==void 0&&!Cl&&(c("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"),Cl=!0)}function Jy(o,i){var d=o;d.multiple=!!i.multiple;var h=i.value;h!=null?_s(d,!!i.multiple,h,!1):i.defaultValue!=null&&_s(d,!!i.multiple,i.defaultValue,!0)}function Sk(o,i){var d=o,h=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?_s(d,!!i.multiple,g,!1):h!==!!i.multiple&&(i.defaultValue!=null?_s(d,!!i.multiple,i.defaultValue,!0):_s(d,!!i.multiple,i.multiple?[]:"",!1))}function Tk(o,i){var d=o,h=i.value;h!=null&&_s(d,!!i.multiple,h,!1)}var Zy=!1;function e_(o,i){var d=o;if(i.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var h=an({},i,{value:void 0,defaultValue:void 0,children:Mo(d._wrapperState.initialValue)});return h}function bw(o,i){var d=o;_l("textarea",i),i.value!==void 0&&i.defaultValue!==void 0&&!Zy&&(c("%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",Mi()||"A component"),Zy=!0);var h=i.value;if(h==null){var g=i.children,C=i.defaultValue;if(g!=null){c("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(yn(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:$s(h)}}function Sw(o,i){var d=o,h=$s(i.value),g=$s(i.defaultValue);if(h!=null){var C=Mo(h);C!==d.value&&(d.value=C),i.defaultValue==null&&d.defaultValue!==C&&(d.defaultValue=C)}g!=null&&(d.defaultValue=Mo(g))}function Tw(o,i){var d=o,h=d.textContent;h===d._wrapperState.initialValue&&h!==""&&h!==null&&(d.value=h)}function t_(o,i){Sw(o,i)}var El="http://www.w3.org/1999/xhtml",Rk="http://www.w3.org/1998/Math/MathML",n_="http://www.w3.org/2000/svg";function Jv(o){switch(o){case"svg":return n_;case"math":return Rk;default:return El}}function r_(o,i){return o==null||o===El?Jv(i):o===n_&&i==="foreignObject"?El:o}var kk=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,d,h,g){MSApp.execUnsafeLocalFunction(function(){return o(i,d,h,g)})}:o},Zv,Rw=kk(function(o,i){if(o.namespaceURI===n_&&!("innerHTML"in o)){Zv=Zv||document.createElement("div"),Zv.innerHTML="<svg>"+i.valueOf().toString()+"</svg>";for(var d=Zv.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;d.firstChild;)o.appendChild(d.firstChild);return}o.innerHTML=i}),na=1,wl=3,so=8,Cs=9,xu=11,em=function(o,i){if(i){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===wl){d.nodeValue=i;return}}o.textContent=i},kw={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"]},Xd={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 Aw(o,i){return o+i.charAt(0).toUpperCase()+i.substring(1)}var xw=["Webkit","ms","Moz","O"];Object.keys(Xd).forEach(function(o){xw.forEach(function(i){Xd[Aw(i,o)]=Xd[o]})});function tm(o,i,d){var h=i==null||typeof i=="boolean"||i==="";return h?"":!d&&typeof i=="number"&&i!==0&&!(Xd.hasOwnProperty(o)&&Xd[o])?i+"px":(yo(i,o),(""+i).trim())}var Jd=/([A-Z])/g,Ak=/^ms-/;function xk(o){return o.replace(Jd,"-$1").toLowerCase().replace(Ak,"-ms-")}var Iw=function(){};{var Ow=/^(?:webkit|moz|o)[A-Z]/,Nw=/^-ms-/,Bh=/-(.)/g,Zd=/;\s*$/,ef={},tf={},Mw=!1,o_=!1,i_=function(o){return o.replace(Bh,function(i,d){return d.toUpperCase()})},a_=function(o){ef.hasOwnProperty(o)&&ef[o]||(ef[o]=!0,c("Unsupported style property %s. Did you mean %s?",o,i_(o.replace(Nw,"ms-"))))},Pw=function(o){ef.hasOwnProperty(o)&&ef[o]||(ef[o]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1)))},Dw=function(o,i){tf.hasOwnProperty(i)&&tf[i]||(tf[i]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,i.replace(Zd,"")))},Lw=function(o,i){Mw||(Mw=!0,c("`NaN` is an invalid value for the `%s` css style property.",o))},Ik=function(o,i){o_||(o_=!0,c("`Infinity` is an invalid value for the `%s` css style property.",o))};Iw=function(o,i){o.indexOf("-")>-1?a_(o):Ow.test(o)?Pw(o):Zd.test(i)&&Dw(o,i),typeof i=="number"&&(isNaN(i)?Lw(o,i):isFinite(i)||Ik(o,i))}}var Ok=Iw;function Nk(o){{var i="",d="";for(var h in o)if(o.hasOwnProperty(h)){var g=o[h];if(g!=null){var C=h.indexOf("--")===0;i+=d+(C?h:xk(h))+":",i+=tm(h,g,C),d=";"}}return i||null}}function Uw(o,i){var d=o.style;for(var h in i)if(i.hasOwnProperty(h)){var g=h.indexOf("--")===0;g||Ok(h,i[h]);var C=tm(h,i[h],g);h==="float"&&(h="cssFloat"),g?d.setProperty(h,C):d[h]=C}}function Mk(o){return o==null||typeof o=="boolean"||o===""}function Ba(o){var i={};for(var d in o)for(var h=kw[d]||[d],g=0;g<h.length;g++)i[h[g]]=d;return i}function qh(o,i){{if(!i)return;var d=Ba(o),h=Ba(i),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,c("%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.",Mk(o[b])?"Removing":"Updating",b,k)}}}}var Fw={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},$w=an({menuitem:!0},Fw),Hw="__html";function nm(o,i){if(i){if($w[o]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw new Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof i.dangerouslySetInnerHTML!="object"||!(Hw in i.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(!i.suppressContentEditableWarning&&i.contentEditable&&i.children!=null&&c("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."),i.style!=null&&typeof i.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 bl(o,i){if(o.indexOf("-")===-1)return typeof i.is=="string";switch(o){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 rm={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"},jw={"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},Es={},s_=new RegExp("^(aria)-["+mt+"]*$"),Vh=new RegExp("^(aria)[A-Z]["+mt+"]*$");function l_(o,i){{if(ro.call(Es,i)&&Es[i])return!0;if(Vh.test(i)){var d="aria-"+i.slice(4).toLowerCase(),h=jw.hasOwnProperty(d)?d:null;if(h==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),Es[i]=!0,!0;if(i!==h)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,h),Es[i]=!0,!0}if(s_.test(i)){var g=i.toLowerCase(),C=jw.hasOwnProperty(g)?g:null;if(C==null)return Es[i]=!0,!1;if(i!==C)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,C),Es[i]=!0,!0}}return!0}function zw(o,i){{var d=[];for(var h in i){var g=l_(o,h);g||d.push(h)}var C=d.map(function(b){return"`"+b+"`"}).join(", ");d.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",C,o):d.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",C,o)}}function om(o,i){bl(o,i)||zw(o,i)}var Iu=!1;function c_(o,i){{if(o!=="input"&&o!=="textarea"&&o!=="select")return;i!=null&&i.value===null&&!Iu&&(Iu=!0,o==="select"&&i.multiple?c("`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.",o):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",o))}}var u_=function(){};{var Po={},d_=/^on./,Bw=/^on[^A-Z]/,qw=new RegExp("^(aria)-["+mt+"]*$"),Vw=new RegExp("^(aria)[A-Z]["+mt+"]*$");u_=function(o,i,d,h){if(ro.call(Po,i)&&Po[i])return!0;var g=i.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return c("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."),Po[i]=!0,!0;if(h!=null){var C=h.registrationNameDependencies,b=h.possibleRegistrationNames;if(C.hasOwnProperty(i))return!0;var k=b.hasOwnProperty(g)?b[g]:null;if(k!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",i,k),Po[i]=!0,!0;if(d_.test(i))return c("Unknown event handler property `%s`. It will be ignored.",i),Po[i]=!0,!0}else if(d_.test(i))return Bw.test(i)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Po[i]=!0,!0;if(qw.test(i)||Vw.test(i))return!0;if(g==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Po[i]=!0,!0;if(g==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Po[i]=!0,!0;if(g==="is"&&d!==null&&d!==void 0&&typeof d!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),Po[i]=!0,!0;if(typeof d=="number"&&isNaN(d))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),Po[i]=!0,!0;var x=yt(i),M=x!==null&&x.type===Ii;if(rm.hasOwnProperty(g)){var L=rm[g];if(L!==i)return c("Invalid DOM property `%s`. Did you mean `%s`?",i,L),Po[i]=!0,!0}else if(!M&&i!==g)return c("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.",i,g),Po[i]=!0,!0;return typeof d=="boolean"&&gt(i,d,x,!1)?(d?c('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,i,i,d,i):c('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,i,i,d,i,i,i),Po[i]=!0,!0):M?!0:gt(i,d,x,!1)?(Po[i]=!0,!1):((d==="false"||d==="true")&&x!==null&&x.type===nr&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,i,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".',i,d),Po[i]=!0),!0)}}var Kw=function(o,i,d){{var h=[];for(var g in i){var C=u_(o,g,i[g],d);C||h.push(g)}var b=h.map(function(k){return"`"+k+"`"}).join(", ");h.length===1?c("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,o):h.length>1&&c("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,o)}};function Gw(o,i,d){bl(o,i)||Kw(o,i,d)}var Sl=1,Kh=2,Ou=4,Pk=Sl|Kh|Ou,Gh=null;function Wh(o){Gh!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Gh=o}function Dk(){Gh===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Gh=null}function Ww(o){return o===Gh}function im(o){var i=o.target||o.srcElement||window;return i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===wl?i.parentNode:i}var er=null,Sc=null,Tl=null;function nf(o){var i=xf(o);if(i){if(typeof er!="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=i.stateNode;if(d){var h=Wb(d);er(i.stateNode,i.type,h)}}}function Yw(o){er=o}function am(o){Sc?Tl?Tl.push(o):Tl=[o]:Sc=o}function Yh(){return Sc!==null||Tl!==null}function Qh(){if(Sc){var o=Sc,i=Tl;if(Sc=null,Tl=null,nf(o),i)for(var d=0;d<i.length;d++)nf(i[d])}}var Nu=function(o,i){return o(i)},f_=function(){},h_=!1;function Lk(){var o=Yh();o&&(f_(),Qh())}function p_(o,i,d){if(h_)return o(i,d);h_=!0;try{return Nu(o,i,d)}finally{h_=!1,Lk()}}function sm(o,i,d){Nu=o,f_=d}function lm(o){return o==="button"||o==="input"||o==="select"||o==="textarea"}function v_(o,i,d){switch(o){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&&lm(i));default:return!1}}function Mu(o,i){var d=o.stateNode;if(d===null)return null;var h=Wb(d);if(h===null)return null;var g=h[i];if(v_(i,o.type,h))return null;if(g&&typeof g!="function")throw new Error("Expected `"+i+"` listener to be a function, instead got a value of `"+typeof g+"` type.");return g}var Xh=!1;if(ar)try{var Pu={};Object.defineProperty(Pu,"passive",{get:function(){Xh=!0}}),window.addEventListener("test",Pu,Pu),window.removeEventListener("test",Pu,Pu)}catch{Xh=!1}function Qw(o,i,d,h,g,C,b,k,x){var M=Array.prototype.slice.call(arguments,3);try{i.apply(d,M)}catch(L){this.onError(L)}}var m_=Qw;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var g_=document.createElement("react");m_=function(i,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 L=document.createEvent("Event"),X=!1,Y=!0,ue=window.event,fe=Object.getOwnPropertyDescriptor(window,"event");function we(){g_.removeEventListener(be,kt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ue)}var at=Array.prototype.slice.call(arguments,3);function kt(){X=!0,we(),d.apply(h,at),Y=!1}var Et,bn=!1,mn=!1;function ie(ae){if(Et=ae.error,bn=!0,Et===null&&ae.colno===0&&ae.lineno===0&&(mn=!0),ae.defaultPrevented&&Et!=null&&typeof Et=="object")try{Et._suppressLogging=!0}catch{}}var be="react-"+(i||"invokeguardedcallback");if(window.addEventListener("error",ie),g_.addEventListener(be,kt,!1),L.initEvent(be,!1,!1),g_.dispatchEvent(L),fe&&Object.defineProperty(window,"event",fe),X&&Y&&(bn?mn&&(Et=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.")):Et=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(Et)),window.removeEventListener("error",ie),!X)return we(),Qw.apply(this,arguments)}}var Uk=m_,Tc=!1,ws=null,Jh=!1,Rc=null,Hs={onError:function(o){Tc=!0,ws=o}};function Du(o,i,d,h,g,C,b,k,x){Tc=!1,ws=null,Uk.apply(Hs,arguments)}function Rl(o,i,d,h,g,C,b,k,x){if(Du.apply(this,arguments),Tc){var M=__();Jh||(Jh=!0,Rc=M)}}function y_(){if(Jh){var o=Rc;throw Jh=!1,Rc=null,o}}function Fk(){return Tc}function __(){if(Tc){var o=ws;return Tc=!1,ws=null,o}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 qa(o){return o._reactInternals}function Zh(o){return o._reactInternals!==void 0}function rf(o,i){o._reactInternals=i}var Rt=0,kc=1,ur=2,Jt=4,Mn=16,Un=32,js=64,jt=128,$r=256,ra=512,Va=1024,Cr=2048,Ka=4096,Ac=8192,ep=16384,cm=Cr|Jt|js|ra|Va|ep,Xw=32767,_a=32768,Do=65536,tp=131072,C_=1048576,E_=2097152,oa=4194304,xc=8388608,ia=16777216,Lu=33554432,of=Jt|Va|0,aa=ur|Jt|Mn|Un|ra|Ka|Ac,mi=Jt|js|ra|Ac,Ga=Cr|Mn,Yo=oa|xc|E_,kl=t.ReactCurrentOwner;function Ca(o){var i=o,d=o;if(o.alternate)for(;i.return;)i=i.return;else{var h=i;do i=h,(i.flags&(ur|Ka))!==Rt&&(d=i.return),h=i.return;while(h)}return i.tag===E?d:null}function w_(o){if(o.tag===V){var i=o.memoizedState;if(i===null){var d=o.alternate;d!==null&&(i=d.memoizedState)}if(i!==null)return i.dehydrated}return null}function um(o){return o.tag===E?o.stateNode.containerInfo:null}function b_(o){return Ca(o)===o}function Ea(o){{var i=kl.current;if(i!==null&&i.tag===m){var d=i,h=d.stateNode;h._warnedAboutRefsInRender||c("%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.",qt(d)||"A component"),h._warnedAboutRefsInRender=!0}}var g=qa(o);return g?Ca(g)===g:!1}function sa(o){if(Ca(o)!==o)throw new Error("Unable to find node on an unmounted component.")}function dr(o){var i=o.alternate;if(!i){var d=Ca(o);if(d===null)throw new Error("Unable to find node on an unmounted component.");return d!==o?null:o}for(var h=o,g=i;;){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 sa(C),o;if(x===g)return sa(C),i;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,L=C.child;L;){if(L===h){M=!0,h=C,g=b;break}if(L===g){M=!0,g=C,h=b;break}L=L.sibling}if(!M){for(L=b.child;L;){if(L===h){M=!0,h=b,g=C;break}if(L===g){M=!0,g=b,h=C;break}L=L.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?o:i}function Wa(o){var i=dr(o);return i!==null?S_(i):null}function S_(o){if(o.tag===T||o.tag===A)return o;for(var i=o.child;i!==null;){var d=S_(i);if(d!==null)return d;i=i.sibling}return null}function Jw(o){var i=dr(o);return i!==null?dm(i):null}function dm(o){if(o.tag===T||o.tag===A)return o;for(var i=o.child;i!==null;){if(i.tag!==S){var d=dm(i);if(d!==null)return d}i=i.sibling}return null}var fm=e.unstable_scheduleCallback,Zw=e.unstable_cancelCallback,hm=e.unstable_shouldYield,eb=e.unstable_requestPaint,Rr=e.unstable_now,T_=e.unstable_getCurrentPriorityLevel,pm=e.unstable_ImmediatePriority,wa=e.unstable_UserBlockingPriority,zs=e.unstable_NormalPriority,vm=e.unstable_LowPriority,Ic=e.unstable_IdlePriority,R_=e.unstable_yieldValue,k_=e.unstable_setDisableYieldValue,Oc=null,Lo=null,Ye=null,Wr=!1,Qo=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function A_(o){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.supportsFiber)return c("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{xt&&(o=an({},o,{getLaneLabelMap:Mc,injectProfilingHooks:xl})),Oc=i.inject(o),Lo=i}catch(d){c("React instrumentation encountered an error: %s.",d)}return!!i.checkDCE}function tb(o,i){if(Lo&&typeof Lo.onScheduleFiberRoot=="function")try{Lo.onScheduleFiberRoot(Oc,o,i)}catch(d){Wr||(Wr=!0,c("React instrumentation encountered an error: %s",d))}}function Al(o,i){if(Lo&&typeof Lo.onCommitFiberRoot=="function")try{var d=(o.current.flags&jt)===jt;if(Ut){var h;switch(i){case gi:h=pm;break;case Xo:h=wa;break;case Ol:h=zs;break;case up:h=Ic;break;default:h=zs;break}Lo.onCommitFiberRoot(Oc,o,h,d)}}catch(g){Wr||(Wr=!0,c("React instrumentation encountered an error: %s",g))}}function Nc(o){if(Lo&&typeof Lo.onPostCommitFiberRoot=="function")try{Lo.onPostCommitFiberRoot(Oc,o)}catch(i){Wr||(Wr=!0,c("React instrumentation encountered an error: %s",i))}}function x_(o){if(Lo&&typeof Lo.onCommitFiberUnmount=="function")try{Lo.onCommitFiberUnmount(Oc,o)}catch(i){Wr||(Wr=!0,c("React instrumentation encountered an error: %s",i))}}function bo(o){if(typeof R_=="function"&&(k_(o),a(o)),Lo&&typeof Lo.setStrictMode=="function")try{Lo.setStrictMode(Oc,o)}catch(i){Wr||(Wr=!0,c("React instrumentation encountered an error: %s",i))}}function xl(o){Ye=o}function Mc(){{for(var o=new Map,i=1,d=0;d<fr;d++){var h=$k(i);o.set(i,h),i*=2}return o}}function mm(o){Ye!==null&&typeof Ye.markCommitStarted=="function"&&Ye.markCommitStarted(o)}function I_(){Ye!==null&&typeof Ye.markCommitStopped=="function"&&Ye.markCommitStopped()}function Pc(o){Ye!==null&&typeof Ye.markComponentRenderStarted=="function"&&Ye.markComponentRenderStarted(o)}function Uu(){Ye!==null&&typeof Ye.markComponentRenderStopped=="function"&&Ye.markComponentRenderStopped()}function nb(o){Ye!==null&&typeof Ye.markComponentPassiveEffectMountStarted=="function"&&Ye.markComponentPassiveEffectMountStarted(o)}function O_(){Ye!==null&&typeof Ye.markComponentPassiveEffectMountStopped=="function"&&Ye.markComponentPassiveEffectMountStopped()}function gm(o){Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStarted=="function"&&Ye.markComponentPassiveEffectUnmountStarted(o)}function rb(){Ye!==null&&typeof Ye.markComponentPassiveEffectUnmountStopped=="function"&&Ye.markComponentPassiveEffectUnmountStopped()}function ob(o){Ye!==null&&typeof Ye.markComponentLayoutEffectMountStarted=="function"&&Ye.markComponentLayoutEffectMountStarted(o)}function ib(){Ye!==null&&typeof Ye.markComponentLayoutEffectMountStopped=="function"&&Ye.markComponentLayoutEffectMountStopped()}function ym(o){Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStarted=="function"&&Ye.markComponentLayoutEffectUnmountStarted(o)}function af(){Ye!==null&&typeof Ye.markComponentLayoutEffectUnmountStopped=="function"&&Ye.markComponentLayoutEffectUnmountStopped()}function _m(o,i,d){Ye!==null&&typeof Ye.markComponentErrored=="function"&&Ye.markComponentErrored(o,i,d)}function ab(o,i,d){Ye!==null&&typeof Ye.markComponentSuspended=="function"&&Ye.markComponentSuspended(o,i,d)}function sb(o){Ye!==null&&typeof Ye.markLayoutEffectsStarted=="function"&&Ye.markLayoutEffectsStarted(o)}function sf(){Ye!==null&&typeof Ye.markLayoutEffectsStopped=="function"&&Ye.markLayoutEffectsStopped()}function lb(o){Ye!==null&&typeof Ye.markPassiveEffectsStarted=="function"&&Ye.markPassiveEffectsStarted(o)}function np(){Ye!==null&&typeof Ye.markPassiveEffectsStopped=="function"&&Ye.markPassiveEffectsStopped()}function bs(o){Ye!==null&&typeof Ye.markRenderStarted=="function"&&Ye.markRenderStarted(o)}function rp(){Ye!==null&&typeof Ye.markRenderYielded=="function"&&Ye.markRenderYielded()}function lf(){Ye!==null&&typeof Ye.markRenderStopped=="function"&&Ye.markRenderStopped()}function Fu(o){Ye!==null&&typeof Ye.markRenderScheduled=="function"&&Ye.markRenderScheduled(o)}function N_(o,i){Ye!==null&&typeof Ye.markForceUpdateScheduled=="function"&&Ye.markForceUpdateScheduled(o,i)}function Dc(o,i){Ye!==null&&typeof Ye.markStateUpdateScheduled=="function"&&Ye.markStateUpdateScheduled(o,i)}var Ot=0,ln=1,Pt=2,kr=8,Ya=16,Cm=Math.clz32?Math.clz32:$u,Em=Math.log,M_=Math.LN2;function $u(o){var i=o>>>0;return i===0?32:31-(Em(i)/M_|0)|0}var fr=31,Se=0,En=0,Dt=1,Bs=2,ba=4,Hu=8,hr=16,ju=32,Lc=4194240,zu=64,Qa=128,la=256,Bu=512,op=1024,ip=2048,wm=4096,bm=8192,Sm=16384,Tm=32768,Rm=65536,km=131072,Am=262144,xm=524288,qu=1048576,Im=2097152,Vu=130023424,Il=4194304,Om=8388608,ap=16777216,Nm=33554432,Mm=67108864,P_=Il,cf=134217728,Pm=268435455,uf=268435456,Uc=536870912,ca=1073741824;function $k(o){{if(o&Dt)return"Sync";if(o&Bs)return"InputContinuousHydration";if(o&ba)return"InputContinuous";if(o&Hu)return"DefaultHydration";if(o&hr)return"Default";if(o&ju)return"TransitionHydration";if(o&Lc)return"Transition";if(o&Vu)return"Retry";if(o&cf)return"SelectiveHydration";if(o&uf)return"IdleHydration";if(o&Uc)return"Idle";if(o&ca)return"Offscreen"}}var tr=-1,Dm=zu,Lm=Il;function df(o){switch(lo(o)){case Dt:return Dt;case Bs:return Bs;case ba:return ba;case Hu:return Hu;case hr:return hr;case ju:return ju;case zu:case Qa:case la:case Bu:case op:case ip:case wm:case bm:case Sm:case Tm:case Rm:case km:case Am:case xm:case qu:case Im:return o&Lc;case Il:case Om:case ap:case Nm:case Mm:return o&Vu;case cf:return cf;case uf:return uf;case Uc:return Uc;case ca:return ca;default:return c("Should have found matching lanes. This is a bug in React."),o}}function sp(o,i){var d=o.pendingLanes;if(d===Se)return Se;var h=Se,g=o.suspendedLanes,C=o.pingedLanes,b=d&Pm;if(b!==Se){var k=b&~g;if(k!==Se)h=df(k);else{var x=b&C;x!==Se&&(h=df(x))}}else{var M=d&~g;M!==Se?h=df(M):C!==Se&&(h=df(C))}if(h===Se)return Se;if(i!==Se&&i!==h&&(i&g)===Se){var L=lo(h),X=lo(i);if(L>=X||L===hr&&(X&Lc)!==Se)return i}(h&ba)!==Se&&(h|=d&hr);var Y=o.entangledLanes;if(Y!==Se)for(var ue=o.entanglements,fe=h&Y;fe>0;){var we=Fc(fe),at=1<<we;h|=ue[we],fe&=~at}return h}function cb(o,i){for(var d=o.eventTimes,h=tr;i>0;){var g=Fc(i),C=1<<g,b=d[g];b>h&&(h=b),i&=~C}return h}function Um(o,i){switch(o){case Dt:case Bs:case ba:return i+250;case Hu:case hr:case ju:case zu:case Qa:case la:case Bu:case op:case ip:case wm:case bm:case Sm:case Tm:case Rm:case km:case Am:case xm:case qu:case Im:return i+5e3;case Il:case Om:case ap:case Nm:case Mm:return tr;case cf:case uf:case Uc:case ca:return tr;default:return c("Should have found matching lanes. This is a bug in React."),tr}}function Hk(o,i){for(var d=o.pendingLanes,h=o.suspendedLanes,g=o.pingedLanes,C=o.expirationTimes,b=d;b>0;){var k=Fc(b),x=1<<k,M=C[k];M===tr?((x&h)===Se||(x&g)!==Se)&&(C[k]=Um(x,i)):M<=i&&(o.expiredLanes|=x),b&=~x}}function jk(o){return df(o.pendingLanes)}function D_(o){var i=o.pendingLanes&~ca;return i!==Se?i:i&ca?ca:Se}function ff(o){return(o&Dt)!==Se}function lp(o){return(o&Pm)!==Se}function Fm(o){return(o&Vu)===o}function zk(o){var i=Dt|ba|hr;return(o&i)===Se}function ub(o){return(o&Lc)===o}function cp(o,i){var d=Bs|ba|Hu|hr;return(i&d)!==Se}function db(o,i){return(i&o.expiredLanes)!==Se}function L_(o){return(o&Lc)!==Se}function U_(){var o=Dm;return Dm<<=1,(Dm&Lc)===Se&&(Dm=zu),o}function Bk(){var o=Lm;return Lm<<=1,(Lm&Vu)===Se&&(Lm=Il),o}function lo(o){return o&-o}function So(o){return lo(o)}function Fc(o){return 31-Cm(o)}function $m(o){return Fc(o)}function ua(o,i){return(o&i)!==Se}function Ku(o,i){return(o&i)===i}function Zt(o,i){return o|i}function hf(o,i){return o&~i}function F_(o,i){return o&i}function fb(o){return o}function hb(o,i){return o!==En&&o<i?o:i}function Hm(o){for(var i=[],d=0;d<fr;d++)i.push(o);return i}function Gu(o,i,d){o.pendingLanes|=i,i!==Uc&&(o.suspendedLanes=Se,o.pingedLanes=Se);var h=o.eventTimes,g=$m(i);h[g]=d}function $_(o,i){o.suspendedLanes|=i,o.pingedLanes&=~i;for(var d=o.expirationTimes,h=i;h>0;){var g=Fc(h),C=1<<g;d[g]=tr,h&=~C}}function H_(o,i,d){o.pingedLanes|=o.suspendedLanes&i}function j_(o,i){var d=o.pendingLanes&~i;o.pendingLanes=i,o.suspendedLanes=Se,o.pingedLanes=Se,o.expiredLanes&=i,o.mutableReadLanes&=i,o.entangledLanes&=i;for(var h=o.entanglements,g=o.eventTimes,C=o.expirationTimes,b=d;b>0;){var k=Fc(b),x=1<<k;h[k]=Se,g[k]=tr,C[k]=tr,b&=~x}}function pf(o,i){for(var d=o.entangledLanes|=i,h=o.entanglements,g=d;g;){var C=Fc(g),b=1<<C;b&i|h[C]&i&&(h[C]|=i),g&=~b}}function qk(o,i){var d=lo(i),h;switch(d){case ba:h=Bs;break;case hr:h=Hu;break;case zu:case Qa:case la:case Bu:case op:case ip:case wm:case bm:case Sm:case Tm:case Rm:case km:case Am:case xm:case qu:case Im:case Il:case Om:case ap:case Nm:case Mm:h=ju;break;case Uc:h=uf;break;default:h=En;break}return(h&(o.suspendedLanes|i))!==En?En:h}function z_(o,i,d){if(Qo)for(var h=o.pendingUpdatersLaneMap;d>0;){var g=$m(d),C=1<<g,b=h[g];b.add(i),d&=~C}}function jm(o,i){if(Qo)for(var d=o.pendingUpdatersLaneMap,h=o.memoizedUpdaters;i>0;){var g=$m(i),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()),i&=~C}}function B_(o,i){return null}var gi=Dt,Xo=ba,Ol=hr,up=Uc,Wu=En;function Xa(){return Wu}function To(o){Wu=o}function dp(o,i){var d=Wu;try{return Wu=o,i()}finally{Wu=d}}function yi(o,i){return o!==0&&o<i?o:i}function Vk(o,i){return o===0||o>i?o:i}function q_(o,i){return o!==0&&o<i}function fp(o){var i=lo(o);return q_(gi,i)?q_(Xo,i)?lp(i)?Ol:up:Xo:gi}function Ro(o){var i=o.current.memoizedState;return i.isDehydrated}var pb;function ct(o){pb=o}function vf(o){pb(o)}var hp;function vb(o){hp=o}var mb;function pp(o){mb=o}var vp;function V_(o){vp=o}var K_;function gb(o){K_=o}var zm=!1,mf=[],qs=null,Er=null,Uo=null,Ja=new Map,gf=new Map,Nl=[],Ss=["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 yb(o){return Ss.indexOf(o)>-1}function Vs(o,i,d,h,g){return{blockedOn:o,domEventName:i,eventSystemFlags:d,nativeEvent:g,targetContainers:[h]}}function _b(o,i){switch(o){case"focusin":case"focusout":qs=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Uo=null;break;case"pointerover":case"pointerout":{var d=i.pointerId;Ja.delete(d);break}case"gotpointercapture":case"lostpointercapture":{var h=i.pointerId;gf.delete(h);break}}}function yf(o,i,d,h,g,C){if(o===null||o.nativeEvent!==C){var b=Vs(i,d,h,g,C);if(i!==null){var k=xf(i);k!==null&&hp(k)}return b}o.eventSystemFlags|=h;var x=o.targetContainers;return g!==null&&x.indexOf(g)===-1&&x.push(g),o}function Cb(o,i,d,h,g){switch(i){case"focusin":{var C=g;return qs=yf(qs,o,i,d,h,C),!0}case"dragenter":{var b=g;return Er=yf(Er,o,i,d,h,b),!0}case"mouseover":{var k=g;return Uo=yf(Uo,o,i,d,h,k),!0}case"pointerover":{var x=g,M=x.pointerId;return Ja.set(M,yf(Ja.get(M)||null,o,i,d,h,x)),!0}case"gotpointercapture":{var L=g,X=L.pointerId;return gf.set(X,yf(gf.get(X)||null,o,i,d,h,L)),!0}}return!1}function G_(o){var i=Sp(o.target);if(i!==null){var d=Ca(i);if(d!==null){var h=d.tag;if(h===V){var g=w_(d);if(g!==null){o.blockedOn=g,K_(o.priority,function(){mb(d)});return}}else if(h===E){var C=d.stateNode;if(Ro(C)){o.blockedOn=um(d);return}}}}o.blockedOn=null}function Eb(o){for(var i=vp(),d={blockedOn:null,target:o,priority:i},h=0;h<Nl.length&&q_(i,Nl[h].priority);h++);Nl.splice(h,0,d),h===0&&G_(d)}function Bm(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;i.length>0;){var d=i[0],h=Yu(o.domEventName,o.eventSystemFlags,d,o.nativeEvent);if(h===null){var g=o.nativeEvent,C=new g.constructor(g.type,g);Wh(C),g.target.dispatchEvent(C),Dk()}else{var b=xf(h);return b!==null&&hp(b),o.blockedOn=h,!1}i.shift()}return!0}function mp(o,i,d){Bm(o)&&d.delete(i)}function W_(){zm=!1,qs!==null&&Bm(qs)&&(qs=null),Er!==null&&Bm(Er)&&(Er=null),Uo!==null&&Bm(Uo)&&(Uo=null),Ja.forEach(mp),gf.forEach(mp)}function _i(o,i){o.blockedOn===i&&(o.blockedOn=null,zm||(zm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,W_)))}function vn(o){if(mf.length>0){_i(mf[0],o);for(var i=1;i<mf.length;i++){var d=mf[i];d.blockedOn===o&&(d.blockedOn=null)}}qs!==null&&_i(qs,o),Er!==null&&_i(Er,o),Uo!==null&&_i(Uo,o);var h=function(k){return _i(k,o)};Ja.forEach(h),gf.forEach(h);for(var g=0;g<Nl.length;g++){var C=Nl[g];C.blockedOn===o&&(C.blockedOn=null)}for(;Nl.length>0;){var b=Nl[0];if(b.blockedOn!==null)break;G_(b),b.blockedOn===null&&Nl.shift()}}var Ar=t.ReactCurrentBatchConfig,Hr=!0;function Fo(o){Hr=!!o}function Sa(){return Hr}function _f(o,i,d){var h=Pi(i),g;switch(h){case gi:g=ko;break;case Xo:g=gp;break;case Ol:default:g=Ml;break}return g.bind(null,i,d,o)}function ko(o,i,d,h){var g=Xa(),C=Ar.transition;Ar.transition=null;try{To(gi),Ml(o,i,d,h)}finally{To(g),Ar.transition=C}}function gp(o,i,d,h){var g=Xa(),C=Ar.transition;Ar.transition=null;try{To(Xo),Ml(o,i,d,h)}finally{To(g),Ar.transition=C}}function Ml(o,i,d,h){Hr&&qm(o,i,d,h)}function qm(o,i,d,h){var g=Yu(o,i,d,h);if(g===null){dA(o,i,h,Cf,d),_b(o,h);return}if(Cb(g,o,i,d,h)){h.stopPropagation();return}if(_b(o,h),i&Ou&&yb(o)){for(;g!==null;){var C=xf(g);C!==null&&vf(C);var b=Yu(o,i,d,h);if(b===null&&dA(o,i,h,Cf,d),b===g)break;g=b}g!==null&&h.stopPropagation();return}dA(o,i,h,null,d)}var Cf=null;function Yu(o,i,d,h){Cf=null;var g=im(h),C=Sp(g);if(C!==null){var b=Ca(C);if(b===null)C=null;else{var k=b.tag;if(k===V){var x=w_(b);if(x!==null)return x;C=null}else if(k===E){var M=b.stateNode;if(Ro(M))return um(b);C=null}else b!==C&&(C=null)}}return Cf=C,null}function Pi(o){switch(o){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 gi;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 Xo;case"message":{var i=T_();switch(i){case pm:return gi;case wa:return Xo;case zs:case vm:return Ol;case Ic:return up;default:return Ol}}default:return Ol}}function Y_(o,i,d){return o.addEventListener(i,d,!1),d}function Ef(o,i,d){return o.addEventListener(i,d,!0),d}function Pl(o,i,d,h){return o.addEventListener(i,d,{capture:!0,passive:h}),d}function Vm(o,i,d,h){return o.addEventListener(i,d,{passive:h}),d}var Qu=null,Ks=null,$c=null;function Hc(o){return Qu=o,Ks=Gm(),!0}function Km(){Qu=null,Ks=null,$c=null}function wf(){if($c)return $c;var o,i=Ks,d=i.length,h,g=Gm(),C=g.length;for(o=0;o<d&&i[o]===g[o];o++);var b=d-o;for(h=1;h<=b&&i[d-h]===g[C-h];h++);var k=h>1?1-h:void 0;return $c=g.slice(o,k),$c}function Gm(){return"value"in Qu?Qu.value:Qu.textContent}function Xu(o){var i,d=o.keyCode;return"charCode"in o?(i=o.charCode,i===0&&d===13&&(i=13)):i=d,i===10&&(i=13),i>=32||i===13?i:0}function Ju(){return!0}function Ci(){return!1}function co(o){function i(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 o)if(o.hasOwnProperty(k)){var x=o[k];x?this[k]=x(C):this[k]=C[k]}var M=C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1;return M?this.isDefaultPrevented=Ju:this.isDefaultPrevented=Ci,this.isPropagationStopped=Ci,this}return an(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Ju)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Ju)},persist:function(){},isPersistent:Ju}),i}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=co(Ei),bf=an({},Ei,{view:0,detail:0}),Q_=co(bf),yp,X_,Za;function wb(o){o!==Za&&(Za&&o.type==="mousemove"?(yp=o.screenX-Za.screenX,X_=o.screenY-Za.screenY):(yp=0,X_=0),Za=o)}var Sf=an({},bf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qm,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(wb(o),yp)},movementY:function(o){return"movementY"in o?o.movementY:X_}}),jc=co(Sf),J_=an({},Sf,{dataTransfer:0}),Zu=co(J_),bb=an({},bf,{relatedTarget:0}),Wm=co(bb),Z_=an({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),Ym=co(Z_),Kk=an({},Ei,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Gk=co(Kk),Sb=an({},Ei,{data:0}),e0=co(Sb),ed=e0,Wk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tf={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 Tb(o){if(o.key){var i=Wk[o.key]||o.key;if(i!=="Unidentified")return i}if(o.type==="keypress"){var d=Xu(o);return d===13?"Enter":String.fromCharCode(d)}return o.type==="keydown"||o.type==="keyup"?Tf[o.keyCode]||"Unidentified":""}var jr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yk(o){var i=this,d=i.nativeEvent;if(d.getModifierState)return d.getModifierState(o);var h=jr[o];return h?!!d[h]:!1}function Qm(o){return Yk}var Qk=an({},bf,{key:Tb,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qm,charCode:function(o){return o.type==="keypress"?Xu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Xu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Xk=co(Qk),Rb=an({},Sf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),t0=co(Rb),Jk=an({},bf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qm}),es=co(Jk),n0=an({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zk=co(n0),zc=an({},Sf,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Xm=co(zc),td=[9,13,27,32],_p=229,Cp=ar&&"CompositionEvent"in window,nd=null;ar&&"documentMode"in document&&(nd=document.documentMode);var eA=ar&&"TextEvent"in window&&!nd,Jm=ar&&(!Cp||nd&&nd>8&&nd<=11),kb=32,r0=String.fromCharCode(kb);function Ab(){Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Wn("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Wn("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Ep=!1;function Zm(o){return(o.ctrlKey||o.altKey||o.metaKey)&&!(o.ctrlKey&&o.altKey)}function xb(o){switch(o){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function o0(o,i){return o==="keydown"&&i.keyCode===_p}function Ib(o,i){switch(o){case"keyup":return td.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==_p;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function i0(o){var i=o.detail;return typeof i=="object"&&"data"in i?i.data:null}function eg(o){return o.locale==="ko"}var Dl=!1;function a0(o,i,d,h,g){var C,b;if(Cp?C=xb(i):Dl?Ib(i,h)&&(C="onCompositionEnd"):o0(i,h)&&(C="onCompositionStart"),!C)return null;Jm&&!eg(h)&&(!Dl&&C==="onCompositionStart"?Dl=Hc(g):C==="onCompositionEnd"&&Dl&&(b=wf()));var k=Db(d,C);if(k.length>0){var x=new e0(C,i,null,h,g);if(o.push({event:x,listeners:k}),b)x.data=b;else{var M=i0(h);M!==null&&(x.data=M)}}}function tg(o,i){switch(o){case"compositionend":return i0(i);case"keypress":var d=i.which;return d!==kb?null:(Ep=!0,r0);case"textInput":var h=i.data;return h===r0&&Ep?null:h;default:return null}}function Ob(o,i){if(Dl){if(o==="compositionend"||!Cp&&Ib(o,i)){var d=wf();return Km(),Dl=!1,d}return null}switch(o){case"paste":return null;case"keypress":if(!Zm(i)){if(i.char&&i.char.length>1)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Jm&&!eg(i)?null:i.data;default:return null}}function tA(o,i,d,h,g){var C;if(eA?C=tg(i,h):C=Ob(i,h),!C)return null;var b=Db(d,"onBeforeInput");if(b.length>0){var k=new ed("onBeforeInput","beforeinput",null,h,g);o.push({event:k,listeners:b}),k.data=C}}function ng(o,i,d,h,g,C,b){a0(o,i,d,h,g),tA(o,i,d,h,g)}var nA={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 Rf(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!nA[o.type]:i==="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 rA(o){if(!ar)return!1;var i="on"+o,d=i in document;if(!d){var h=document.createElement("div");h.setAttribute(i,"return;"),d=typeof h[i]=="function"}return d}function rg(){Wn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function s(o,i,d,h){am(h);var g=Db(i,"onChange");if(g.length>0){var C=new wi("onChange","change",null,d,h);o.push({event:C,listeners:g})}}var u=null,v=null;function _(o){var i=o.nodeName&&o.nodeName.toLowerCase();return i==="select"||i==="input"&&o.type==="file"}function w(o){var i=[];s(i,v,o,im(o)),p_(R,i)}function R(o){oU(o,0)}function N(o){var i=cg(o);if(Wd(i))return o}function j(o,i){if(o==="change")return i}var K=!1;ar&&(K=rA("input")&&(!document.documentMode||document.documentMode>9));function pe(o,i){u=o,v=i,u.attachEvent("onpropertychange",Pe)}function Oe(){u&&(u.detachEvent("onpropertychange",Pe),u=null,v=null)}function Pe(o){o.propertyName==="value"&&N(v)&&w(o)}function Ie(o,i,d){o==="focusin"?(Oe(),pe(i,d)):o==="focusout"&&Oe()}function rt(o,i){if(o==="selectionchange"||o==="keyup"||o==="keydown")return N(v)}function ut(o){var i=o.nodeName;return i&&i.toLowerCase()==="input"&&(o.type==="checkbox"||o.type==="radio")}function vt(o,i){if(o==="click")return N(i)}function Yr(o,i){if(o==="input"||o==="change")return N(i)}function oe(o){var i=o._wrapperState;!i||!i.controlled||o.type!=="number"||It(o,"number",o.value)}function Q(o,i,d,h,g,C,b){var k=d?cg(d):window,x,M;if(_(k)?x=j:Rf(k)?K?x=Yr:(x=rt,M=Ie):ut(k)&&(x=vt),x){var L=x(i,d);if(L){s(o,L,h,g);return}}M&&M(i,k,d),i==="focusout"&&oe(k)}function le(){hi("onMouseEnter",["mouseout","mouseover"]),hi("onMouseLeave",["mouseout","mouseover"]),hi("onPointerEnter",["pointerout","pointerover"]),hi("onPointerLeave",["pointerout","pointerover"])}function je(o,i,d,h,g,C,b){var k=i==="mouseover"||i==="pointerover",x=i==="mouseout"||i==="pointerout";if(k&&!Ww(h)){var M=h.relatedTarget||h.fromElement;if(M&&(Sp(M)||C0(M)))return}if(!(!x&&!k)){var L;if(g.window===g)L=g;else{var X=g.ownerDocument;X?L=X.defaultView||X.parentWindow:L=window}var Y,ue;if(x){var fe=h.relatedTarget||h.toElement;if(Y=d,ue=fe?Sp(fe):null,ue!==null){var we=Ca(ue);(ue!==we||ue.tag!==T&&ue.tag!==A)&&(ue=null)}}else Y=null,ue=d;if(Y!==ue){var at=jc,kt="onMouseLeave",Et="onMouseEnter",bn="mouse";(i==="pointerout"||i==="pointerover")&&(at=t0,kt="onPointerLeave",Et="onPointerEnter",bn="pointer");var mn=Y==null?L:cg(Y),ie=ue==null?L:cg(ue),be=new at(kt,bn+"leave",Y,h,g);be.target=mn,be.relatedTarget=ie;var ae=null,De=Sp(g);if(De===d){var st=new at(Et,bn+"enter",ue,h,g);st.target=ie,st.relatedTarget=mn,ae=st}iJ(o,be,ae,Y,ue)}}}function _t(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var dt=typeof Object.is=="function"?Object.is:_t;function St(o,i){if(dt(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var d=Object.keys(o),h=Object.keys(i);if(d.length!==h.length)return!1;for(var g=0;g<d.length;g++){var C=d[g];if(!ro.call(i,C)||!dt(o[C],i[C]))return!1}return!0}function zt(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function $o(o){for(;o;){if(o.nextSibling)return o.nextSibling;o=o.parentNode}}function An(o,i){for(var d=zt(o),h=0,g=0;d;){if(d.nodeType===wl){if(g=h+d.textContent.length,h<=i&&g>=i)return{node:d,offset:i-h};h=g}d=zt($o(d))}}function Bc(o){var i=o.ownerDocument,d=i&&i.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 oA(o,g,C,b,k)}function oA(o,i,d,h,g){var C=0,b=-1,k=-1,x=0,M=0,L=o,X=null;e:for(;;){for(var Y=null;L===i&&(d===0||L.nodeType===wl)&&(b=C+d),L===h&&(g===0||L.nodeType===wl)&&(k=C+g),L.nodeType===wl&&(C+=L.nodeValue.length),(Y=L.firstChild)!==null;)X=L,L=Y;for(;;){if(L===o)break e;if(X===i&&++x===d&&(b=C),X===h&&++M===g&&(k=C),(Y=L.nextSibling)!==null)break;L=X,X=L.parentNode}L=Y}return b===-1||k===-1?null:{start:b,end:k}}function HX(o,i){var d=o.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var g=h.getSelection(),C=o.textContent.length,b=Math.min(i.start,C),k=i.end===void 0?b:Math.min(i.end,C);if(!g.extend&&b>k){var x=k;k=b,b=x}var M=An(o,b),L=An(o,k);if(M&&L){if(g.rangeCount===1&&g.anchorNode===M.node&&g.anchorOffset===M.offset&&g.focusNode===L.node&&g.focusOffset===L.offset)return;var X=d.createRange();X.setStart(M.node,M.offset),g.removeAllRanges(),b>k?(g.addRange(X),g.extend(L.node,L.offset)):(X.setEnd(L.node,L.offset),g.addRange(X))}}}function KL(o){return o&&o.nodeType===wl}function GL(o,i){return!o||!i?!1:o===i?!0:KL(o)?!1:KL(i)?GL(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1}function jX(o){return o&&o.ownerDocument&&GL(o.ownerDocument.documentElement,o)}function zX(o){try{return typeof o.contentWindow.location.href=="string"}catch{return!1}}function WL(){for(var o=window,i=wc();i instanceof o.HTMLIFrameElement;){if(zX(i))o=i.contentWindow;else return i;i=wc(o.document)}return i}function iA(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}function BX(){var o=WL();return{focusedElem:o,selectionRange:iA(o)?VX(o):null}}function qX(o){var i=WL(),d=o.focusedElem,h=o.selectionRange;if(i!==d&&jX(d)){h!==null&&iA(d)&&KX(d,h);for(var g=[],C=d;C=C.parentNode;)C.nodeType===na&&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 VX(o){var i;return"selectionStart"in o?i={start:o.selectionStart,end:o.selectionEnd}:i=Bc(o),i||{start:0,end:0}}function KX(o,i){var d=i.start,h=i.end;h===void 0&&(h=d),"selectionStart"in o?(o.selectionStart=d,o.selectionEnd=Math.min(h,o.value.length)):HX(o,i)}var GX=ar&&"documentMode"in document&&document.documentMode<=11;function WX(){Wn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var og=null,aA=null,s0=null,sA=!1;function YX(o){if("selectionStart"in o&&iA(o))return{start:o.selectionStart,end:o.selectionEnd};var i=o.ownerDocument&&o.ownerDocument.defaultView||window,d=i.getSelection();return{anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}}function QX(o){return o.window===o?o.document:o.nodeType===Cs?o:o.ownerDocument}function YL(o,i,d){var h=QX(d);if(!(sA||og==null||og!==wc(h))){var g=YX(og);if(!s0||!St(s0,g)){s0=g;var C=Db(aA,"onSelect");if(C.length>0){var b=new wi("onSelect","select",null,i,d);o.push({event:b,listeners:C}),b.target=og}}}}function XX(o,i,d,h,g,C,b){var k=d?cg(d):window;switch(i){case"focusin":(Rf(k)||k.contentEditable==="true")&&(og=k,aA=d,s0=null);break;case"focusout":og=null,aA=null,s0=null;break;case"mousedown":sA=!0;break;case"contextmenu":case"mouseup":case"dragend":sA=!1,YL(o,h,g);break;case"selectionchange":if(GX)break;case"keydown":case"keyup":YL(o,h,g)}}function Nb(o,i){var d={};return d[o.toLowerCase()]=i.toLowerCase(),d["Webkit"+o]="webkit"+i,d["Moz"+o]="moz"+i,d}var ig={animationend:Nb("Animation","AnimationEnd"),animationiteration:Nb("Animation","AnimationIteration"),animationstart:Nb("Animation","AnimationStart"),transitionend:Nb("Transition","TransitionEnd")},lA={},QL={};ar&&(QL=document.createElement("div").style,"AnimationEvent"in window||(delete ig.animationend.animation,delete ig.animationiteration.animation,delete ig.animationstart.animation),"TransitionEvent"in window||delete ig.transitionend.transition);function Mb(o){if(lA[o])return lA[o];if(!ig[o])return o;var i=ig[o];for(var d in i)if(i.hasOwnProperty(d)&&d in QL)return lA[o]=i[d];return o}var XL=Mb("animationend"),JL=Mb("animationiteration"),ZL=Mb("animationstart"),eU=Mb("transitionend"),tU=new Map,nU=["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 kf(o,i){tU.set(o,i),Wn(i,[o])}function JX(){for(var o=0;o<nU.length;o++){var i=nU[o],d=i.toLowerCase(),h=i[0].toUpperCase()+i.slice(1);kf(d,"on"+h)}kf(XL,"onAnimationEnd"),kf(JL,"onAnimationIteration"),kf(ZL,"onAnimationStart"),kf("dblclick","onDoubleClick"),kf("focusin","onFocus"),kf("focusout","onBlur"),kf(eU,"onTransitionEnd")}function ZX(o,i,d,h,g,C,b){var k=tU.get(i);if(k!==void 0){var x=wi,M=i;switch(i){case"keypress":if(Xu(h)===0)return;case"keydown":case"keyup":x=Xk;break;case"focusin":M="focus",x=Wm;break;case"focusout":M="blur",x=Wm;break;case"beforeblur":case"afterblur":x=Wm;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=jc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Zu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=es;break;case XL:case JL:case ZL:x=Ym;break;case eU:x=Zk;break;case"scroll":x=Q_;break;case"wheel":x=Xm;break;case"copy":case"cut":case"paste":x=Gk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=t0;break}var L=(C&Ou)!==0;{var X=!L&&i==="scroll",Y=rJ(d,k,h.type,L,X);if(Y.length>0){var ue=new x(k,M,null,h,g);o.push({event:ue,listeners:Y})}}}}JX(),le(),rg(),WX(),Ab();function eJ(o,i,d,h,g,C,b){ZX(o,i,d,h,g,C);var k=(C&Pk)===0;k&&(je(o,i,d,h,g),Q(o,i,d,h,g),XX(o,i,d,h,g),ng(o,i,d,h,g))}var l0=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],cA=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(l0));function rU(o,i,d){var h=o.type||"unknown-event";o.currentTarget=d,Rl(h,i,void 0,o),o.currentTarget=null}function tJ(o,i,d){var h;if(d)for(var g=i.length-1;g>=0;g--){var C=i[g],b=C.instance,k=C.currentTarget,x=C.listener;if(b!==h&&o.isPropagationStopped())return;rU(o,x,k),h=b}else for(var M=0;M<i.length;M++){var L=i[M],X=L.instance,Y=L.currentTarget,ue=L.listener;if(X!==h&&o.isPropagationStopped())return;rU(o,ue,Y),h=X}}function oU(o,i){for(var d=(i&Ou)!==0,h=0;h<o.length;h++){var g=o[h],C=g.event,b=g.listeners;tJ(C,b,d)}y_()}function nJ(o,i,d,h,g){var C=im(d),b=[];eJ(b,o,h,d,C,i),oU(b,i)}function xr(o,i){cA.has(o)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',o);var d=!1,h=NZ(i),g=aJ(o,d);h.has(g)||(iU(i,o,Kh,d),h.add(g))}function uA(o,i,d){cA.has(o)&&!i&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',o);var h=0;i&&(h|=Ou),iU(d,o,h,i)}var Pb="_reactListening"+Math.random().toString(36).slice(2);function c0(o){if(!o[Pb]){o[Pb]=!0,wt.forEach(function(d){d!=="selectionchange"&&(cA.has(d)||uA(d,!1,o),uA(d,!0,o))});var i=o.nodeType===Cs?o:o.ownerDocument;i!==null&&(i[Pb]||(i[Pb]=!0,uA("selectionchange",!1,i)))}}function iU(o,i,d,h,g){var C=_f(o,i,d),b=void 0;Xh&&(i==="touchstart"||i==="touchmove"||i==="wheel")&&(b=!0),o=o,h?b!==void 0?Pl(o,i,C,b):Ef(o,i,C):b!==void 0?Vm(o,i,C,b):Y_(o,i,C)}function aU(o,i){return o===i||o.nodeType===so&&o.parentNode===i}function dA(o,i,d,h,g){var C=h;if(!(i&Sl)&&!(i&Kh)){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(aU(M,b))break;if(x===S)for(var L=k.return;L!==null;){var X=L.tag;if(X===E||X===S){var Y=L.stateNode.containerInfo;if(aU(Y,b))return}L=L.return}for(;M!==null;){var ue=Sp(M);if(ue===null)return;var fe=ue.tag;if(fe===T||fe===A){k=C=ue;continue e}M=M.parentNode}}k=k.return}}}p_(function(){return nJ(o,i,d,C)})}function u0(o,i,d){return{instance:o,listener:i,currentTarget:d}}function rJ(o,i,d,h,g,C){for(var b=i!==null?i+"Capture":null,k=h?b:i,x=[],M=o,L=null;M!==null;){var X=M,Y=X.stateNode,ue=X.tag;if(ue===T&&Y!==null&&(L=Y,k!==null)){var fe=Mu(M,k);fe!=null&&x.push(u0(M,fe,L))}if(g)break;M=M.return}return x}function Db(o,i){for(var d=i+"Capture",h=[],g=o;g!==null;){var C=g,b=C.stateNode,k=C.tag;if(k===T&&b!==null){var x=b,M=Mu(g,d);M!=null&&h.unshift(u0(g,M,x));var L=Mu(g,i);L!=null&&h.push(u0(g,L,x))}g=g.return}return h}function ag(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==T);return o||null}function oJ(o,i){for(var d=o,h=i,g=0,C=d;C;C=ag(C))g++;for(var b=0,k=h;k;k=ag(k))b++;for(;g-b>0;)d=ag(d),g--;for(;b-g>0;)h=ag(h),b--;for(var x=g;x--;){if(d===h||h!==null&&d===h.alternate)return d;d=ag(d),h=ag(h)}return null}function sU(o,i,d,h,g){for(var C=i._reactName,b=[],k=d;k!==null&&k!==h;){var x=k,M=x.alternate,L=x.stateNode,X=x.tag;if(M!==null&&M===h)break;if(X===T&&L!==null){var Y=L;if(g){var ue=Mu(k,C);ue!=null&&b.unshift(u0(k,ue,Y))}else if(!g){var fe=Mu(k,C);fe!=null&&b.push(u0(k,fe,Y))}}k=k.return}b.length!==0&&o.push({event:i,listeners:b})}function iJ(o,i,d,h,g){var C=h&&g?oJ(h,g):null;h!==null&&sU(o,i,h,C,!1),g!==null&&d!==null&&sU(o,d,g,C,!0)}function aJ(o,i){return o+"__"+(i?"capture":"bubble")}var ts=!1,d0="dangerouslySetInnerHTML",Lb="suppressContentEditableWarning",Af="suppressHydrationWarning",lU="autoFocus",wp="children",bp="style",Ub="__html",fA,Fb,f0,cU,$b,uU,dU;fA={dialog:!0,webview:!0},Fb=function(o,i){om(o,i),c_(o,i),Gw(o,i,{registrationNameDependencies:gn,possibleRegistrationNames:Gr})},uU=ar&&!document.documentMode,f0=function(o,i,d){if(!ts){var h=Hb(d),g=Hb(i);g!==h&&(ts=!0,c("Prop `%s` did not match. Server: %s Client: %s",o,JSON.stringify(g),JSON.stringify(h)))}},cU=function(o){if(!ts){ts=!0;var i=[];o.forEach(function(d){i.push(d)}),c("Extra attributes from the server: %s",i)}},$b=function(o,i){i===!1?c("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.",o,o,o):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",o,typeof i)},dU=function(o,i){var d=o.namespaceURI===El?o.ownerDocument.createElement(o.tagName):o.ownerDocument.createElementNS(o.namespaceURI,o.tagName);return d.innerHTML=i,d.innerHTML};var sJ=/\r\n?/g,lJ=/\u0000|\uFFFD/g;function Hb(o){Vo(o);var i=typeof o=="string"?o:""+o;return i.replace(sJ,`
125
+ `).replace(lJ,"")}function jb(o,i,d,h){var g=Hb(i),C=Hb(o);if(C!==g&&(h&&(ts||(ts=!0,c('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 fU(o){return o.nodeType===Cs?o:o.ownerDocument}function cJ(){}function zb(o){o.onclick=cJ}function uJ(o,i,d,h,g){for(var C in h)if(h.hasOwnProperty(C)){var b=h[C];if(C===bp)b&&Object.freeze(b),Uw(i,b);else if(C===d0){var k=b?b[Ub]:void 0;k!=null&&Rw(i,k)}else if(C===wp)if(typeof b=="string"){var x=o!=="textarea"||b!=="";x&&em(i,b)}else typeof b=="number"&&em(i,""+b);else C===Lb||C===Af||C===lU||(gn.hasOwnProperty(C)?b!=null&&(typeof b!="function"&&$b(C,b),C==="onScroll"&&xr("scroll",i)):b!=null&&Sr(i,C,b,g))}}function dJ(o,i,d,h){for(var g=0;g<i.length;g+=2){var C=i[g],b=i[g+1];C===bp?Uw(o,b):C===d0?Rw(o,b):C===wp?em(o,b):Sr(o,C,b,h)}}function fJ(o,i,d,h){var g,C=fU(d),b,k=h;if(k===El&&(k=Jv(o)),k===El){if(g=bl(o,i),!g&&o!==o.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",o),o==="script"){var x=C.createElement("div");x.innerHTML="<script><\/script>";var M=x.firstChild;b=x.removeChild(M)}else if(typeof i.is=="string")b=C.createElement(o,{is:i.is});else if(b=C.createElement(o),o==="select"){var L=b;i.multiple?L.multiple=!0:i.size&&(L.size=i.size)}}else b=C.createElementNS(k,o);return k===El&&!g&&Object.prototype.toString.call(b)==="[object HTMLUnknownElement]"&&!ro.call(fA,o)&&(fA[o]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",o)),b}function hJ(o,i){return fU(i).createTextNode(o)}function pJ(o,i,d,h){var g=bl(i,d);Fb(i,d);var C;switch(i){case"dialog":xr("cancel",o),xr("close",o),C=d;break;case"iframe":case"object":case"embed":xr("load",o),C=d;break;case"video":case"audio":for(var b=0;b<l0.length;b++)xr(l0[b],o);C=d;break;case"source":xr("error",o),C=d;break;case"img":case"image":case"link":xr("error",o),xr("load",o),C=d;break;case"details":xr("toggle",o),C=d;break;case"input":B(o,d),C=I(o,d),xr("invalid",o);break;case"option":qn(o,d),C=d;break;case"select":zh(o,d),C=jh(o,d),xr("invalid",o);break;case"textarea":bw(o,d),C=e_(o,d),xr("invalid",o);break;default:C=d}switch(nm(i,C),uJ(i,o,h,C,g),i){case"input":za(o),He(o,d,!1);break;case"textarea":za(o),Tw(o);break;case"option":Zn(o,d);break;case"select":Jy(o,d);break;default:typeof C.onClick=="function"&&zb(o);break}}function vJ(o,i,d,h,g){Fb(i,h);var C=null,b,k;switch(i){case"input":b=I(o,d),k=I(o,h),C=[];break;case"select":b=jh(o,d),k=jh(o,h),C=[];break;case"textarea":b=e_(o,d),k=e_(o,h),C=[];break;default:b=d,k=h,typeof b.onClick!="function"&&typeof k.onClick=="function"&&zb(o);break}nm(i,k);var x,M,L=null;for(x in b)if(!(k.hasOwnProperty(x)||!b.hasOwnProperty(x)||b[x]==null))if(x===bp){var X=b[x];for(M in X)X.hasOwnProperty(M)&&(L||(L={}),L[M]="")}else x===d0||x===wp||x===Lb||x===Af||x===lU||(gn.hasOwnProperty(x)?C||(C=[]):(C=C||[]).push(x,null));for(x in k){var Y=k[x],ue=b!=null?b[x]:void 0;if(!(!k.hasOwnProperty(x)||Y===ue||Y==null&&ue==null))if(x===bp)if(Y&&Object.freeze(Y),ue){for(M in ue)ue.hasOwnProperty(M)&&(!Y||!Y.hasOwnProperty(M))&&(L||(L={}),L[M]="");for(M in Y)Y.hasOwnProperty(M)&&ue[M]!==Y[M]&&(L||(L={}),L[M]=Y[M])}else L||(C||(C=[]),C.push(x,L)),L=Y;else if(x===d0){var fe=Y?Y[Ub]:void 0,we=ue?ue[Ub]:void 0;fe!=null&&we!==fe&&(C=C||[]).push(x,fe)}else x===wp?(typeof Y=="string"||typeof Y=="number")&&(C=C||[]).push(x,""+Y):x===Lb||x===Af||(gn.hasOwnProperty(x)?(Y!=null&&(typeof Y!="function"&&$b(x,Y),x==="onScroll"&&xr("scroll",o)),!C&&ue!==Y&&(C=[])):(C=C||[]).push(x,Y))}return L&&(qh(L,k[bp]),(C=C||[]).push(bp,L)),C}function mJ(o,i,d,h,g){d==="input"&&g.type==="radio"&&g.name!=null&&de(o,g);var C=bl(d,h),b=bl(d,g);switch(dJ(o,i,C,b),d){case"input":_e(o,g);break;case"textarea":Sw(o,g);break;case"select":Sk(o,g);break}}function gJ(o){{var i=o.toLowerCase();return rm.hasOwnProperty(i)&&rm[i]||null}}function yJ(o,i,d,h,g,C,b){var k,x;switch(k=bl(i,d),Fb(i,d),i){case"dialog":xr("cancel",o),xr("close",o);break;case"iframe":case"object":case"embed":xr("load",o);break;case"video":case"audio":for(var M=0;M<l0.length;M++)xr(l0[M],o);break;case"source":xr("error",o);break;case"img":case"image":case"link":xr("error",o),xr("load",o);break;case"details":xr("toggle",o);break;case"input":B(o,d),xr("invalid",o);break;case"option":qn(o,d);break;case"select":zh(o,d),xr("invalid",o);break;case"textarea":bw(o,d),xr("invalid",o);break}nm(i,d);{x=new Set;for(var L=o.attributes,X=0;X<L.length;X++){var Y=L[X].name.toLowerCase();switch(Y){case"value":break;case"checked":break;case"selected":break;default:x.add(L[X].name)}}}var ue=null;for(var fe in d)if(d.hasOwnProperty(fe)){var we=d[fe];if(fe===wp)typeof we=="string"?o.textContent!==we&&(d[Af]!==!0&&jb(o.textContent,we,C,b),ue=[wp,we]):typeof we=="number"&&o.textContent!==""+we&&(d[Af]!==!0&&jb(o.textContent,we,C,b),ue=[wp,""+we]);else if(gn.hasOwnProperty(fe))we!=null&&(typeof we!="function"&&$b(fe,we),fe==="onScroll"&&xr("scroll",o));else if(b&&typeof k=="boolean"){var at=void 0,kt=k&&lt?null:yt(fe);if(d[Af]!==!0){if(!(fe===Lb||fe===Af||fe==="value"||fe==="checked"||fe==="selected")){if(fe===d0){var Et=o.innerHTML,bn=we?we[Ub]:void 0;if(bn!=null){var mn=dU(o,bn);mn!==Et&&f0(fe,Et,mn)}}else if(fe===bp){if(x.delete(fe),uU){var ie=Nk(we);at=o.getAttribute("style"),ie!==at&&f0(fe,at,ie)}}else if(k&&!lt)x.delete(fe.toLowerCase()),at=Xi(o,fe,we),we!==at&&f0(fe,at,we);else if(!qe(fe,kt,k)&&!Je(fe,we,kt,k)){var be=!1;if(kt!==null)x.delete(kt.attributeName),at=wo(o,fe,we,kt);else{var ae=h;if(ae===El&&(ae=Jv(i)),ae===El)x.delete(fe.toLowerCase());else{var De=gJ(fe);De!==null&&De!==fe&&(be=!0,x.delete(De)),x.delete(fe)}at=Xi(o,fe,we)}var st=lt;!st&&we!==at&&!be&&f0(fe,at,we)}}}}}switch(b&&x.size>0&&d[Af]!==!0&&cU(x),i){case"input":za(o),He(o,d,!0);break;case"textarea":za(o),Tw(o);break;case"select":case"option":break;default:typeof d.onClick=="function"&&zb(o);break}return ue}function _J(o,i,d){var h=o.nodeValue!==i;return h}function hA(o,i){{if(ts)return;ts=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",i.nodeName.toLowerCase(),o.nodeName.toLowerCase())}}function pA(o,i){{if(ts)return;ts=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',i.nodeValue,o.nodeName.toLowerCase())}}function vA(o,i,d){{if(ts)return;ts=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",i,o.nodeName.toLowerCase())}}function mA(o,i){{if(i===""||ts)return;ts=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',i,o.nodeName.toLowerCase())}}function CJ(o,i,d){switch(i){case"input":Mt(o,d);return;case"textarea":t_(o,d);return;case"select":Tk(o,d);return}}var h0=function(){},p0=function(){};{var EJ=["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"],hU=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],wJ=hU.concat(["button"]),bJ=["dd","dt","li","option","optgroup","p","rp","rt"],pU={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};p0=function(o,i){var d=an({},o||pU),h={tag:i};return hU.indexOf(i)!==-1&&(d.aTagInScope=null,d.buttonTagInScope=null,d.nobrTagInScope=null),wJ.indexOf(i)!==-1&&(d.pTagInButtonScope=null),EJ.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(d.listItemTagAutoclosing=null,d.dlItemTagAutoclosing=null),d.current=h,i==="form"&&(d.formTag=h),i==="a"&&(d.aTagInScope=h),i==="button"&&(d.buttonTagInScope=h),i==="nobr"&&(d.nobrTagInScope=h),i==="p"&&(d.pTagInButtonScope=h),i==="li"&&(d.listItemTagAutoclosing=h),(i==="dd"||i==="dt")&&(d.dlItemTagAutoclosing=h),d};var SJ=function(o,i){switch(i){case"select":return o==="option"||o==="optgroup"||o==="#text";case"optgroup":return o==="option"||o==="#text";case"option":return o==="#text";case"tr":return o==="th"||o==="td"||o==="style"||o==="script"||o==="template";case"tbody":case"thead":case"tfoot":return o==="tr"||o==="style"||o==="script"||o==="template";case"colgroup":return o==="col"||o==="template";case"table":return o==="caption"||o==="colgroup"||o==="tbody"||o==="tfoot"||o==="thead"||o==="style"||o==="script"||o==="template";case"head":return o==="base"||o==="basefont"||o==="bgsound"||o==="link"||o==="meta"||o==="title"||o==="noscript"||o==="noframes"||o==="style"||o==="script"||o==="template";case"html":return o==="head"||o==="body"||o==="frameset";case"frameset":return o==="frame";case"#document":return o==="html"}switch(o){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return bJ.indexOf(i)===-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 i==null}return!0},TJ=function(o,i){switch(o){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 i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null},vU={};h0=function(o,i,d){d=d||pU;var h=d.current,g=h&&h.tag;i!=null&&(o!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),o="#text");var C=SJ(o,g)?null:h,b=C?null:TJ(o,d),k=C||b;if(k){var x=k.tag,M=!!C+"|"+o+"|"+x;if(!vU[M]){vU[M]=!0;var L=o,X="";if(o==="#text"?/\S/.test(i)?L="Text nodes":(L="Whitespace text nodes",X=" Make sure you don't have any extra whitespace between tags on each line of your source code."):L="<"+o+">",C){var Y="";x==="table"&&o==="tr"&&(Y+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",L,x,X,Y)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",L,x)}}}}var Bb="suppressHydrationWarning",qb="$",Vb="/$",v0="$?",m0="$!",RJ="style",gA=null,yA=null;function kJ(o){var i,d,h=o.nodeType;switch(h){case Cs:case xu:{i=h===Cs?"#document":"#fragment";var g=o.documentElement;d=g?g.namespaceURI:r_(null,"");break}default:{var C=h===so?o.parentNode:o,b=C.namespaceURI||null;i=C.tagName,d=r_(b,i);break}}{var k=i.toLowerCase(),x=p0(null,k);return{namespace:d,ancestorInfo:x}}}function AJ(o,i,d){{var h=o,g=r_(h.namespace,i),C=p0(h.ancestorInfo,i);return{namespace:g,ancestorInfo:C}}}function Voe(o){return o}function xJ(o){gA=Sa(),yA=BX();var i=null;return Fo(!1),i}function IJ(o){qX(yA),Fo(gA),gA=null,yA=null}function OJ(o,i,d,h,g){var C;{var b=h;if(h0(o,null,b.ancestorInfo),typeof i.children=="string"||typeof i.children=="number"){var k=""+i.children,x=p0(b.ancestorInfo,o);h0(null,k,x)}C=b.namespace}var M=fJ(o,i,d,C);return _0(g,M),RA(M,i),M}function NJ(o,i){o.appendChild(i)}function MJ(o,i,d,h,g){switch(pJ(o,i,d,h),i){case"button":case"input":case"select":case"textarea":return!!d.autoFocus;case"img":return!0;default:return!1}}function PJ(o,i,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=p0(b.ancestorInfo,i);h0(null,k,x)}}return vJ(o,i,d,h)}function _A(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function DJ(o,i,d,h){{var g=d;h0(null,o,g.ancestorInfo)}var C=hJ(o,i);return _0(h,C),C}function LJ(){var o=window.event;return o===void 0?Ol:Pi(o.type)}var CA=typeof setTimeout=="function"?setTimeout:void 0,UJ=typeof clearTimeout=="function"?clearTimeout:void 0,EA=-1,mU=typeof Promise=="function"?Promise:void 0,FJ=typeof queueMicrotask=="function"?queueMicrotask:typeof mU<"u"?function(o){return mU.resolve(null).then(o).catch($J)}:CA;function $J(o){setTimeout(function(){throw o})}function HJ(o,i,d,h){switch(i){case"button":case"input":case"select":case"textarea":d.autoFocus&&o.focus();return;case"img":{d.src&&(o.src=d.src);return}}}function jJ(o,i,d,h,g,C){mJ(o,i,d,h,g),RA(o,g)}function gU(o){em(o,"")}function zJ(o,i,d){o.nodeValue=d}function BJ(o,i){o.appendChild(i)}function qJ(o,i){var d;o.nodeType===so?(d=o.parentNode,d.insertBefore(i,o)):(d=o,d.appendChild(i));var h=o._reactRootContainer;h==null&&d.onclick===null&&zb(d)}function VJ(o,i,d){o.insertBefore(i,d)}function KJ(o,i,d){o.nodeType===so?o.parentNode.insertBefore(i,d):o.insertBefore(i,d)}function GJ(o,i){o.removeChild(i)}function WJ(o,i){o.nodeType===so?o.parentNode.removeChild(i):o.removeChild(i)}function wA(o,i){var d=i,h=0;do{var g=d.nextSibling;if(o.removeChild(d),g&&g.nodeType===so){var C=g.data;if(C===Vb)if(h===0){o.removeChild(g),vn(i);return}else h--;else(C===qb||C===v0||C===m0)&&h++}d=g}while(d);vn(i)}function YJ(o,i){o.nodeType===so?wA(o.parentNode,i):o.nodeType===na&&wA(o,i),vn(o)}function QJ(o){o=o;var i=o.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function XJ(o){o.nodeValue=""}function JJ(o,i){o=o;var d=i[RJ],h=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=tm("display",h)}function ZJ(o,i){o.nodeValue=i}function eZ(o){o.nodeType===na?o.textContent="":o.nodeType===Cs&&o.documentElement&&o.removeChild(o.documentElement)}function tZ(o,i,d){return o.nodeType!==na||i.toLowerCase()!==o.nodeName.toLowerCase()?null:o}function nZ(o,i){return i===""||o.nodeType!==wl?null:o}function rZ(o){return o.nodeType!==so?null:o}function yU(o){return o.data===v0}function bA(o){return o.data===m0}function oZ(o){var i=o.nextSibling&&o.nextSibling.dataset,d,h,g;return i&&(d=i.dgst,h=i.msg,g=i.stck),{message:h,digest:d,stack:g}}function iZ(o,i){o._reactRetry=i}function Kb(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===na||i===wl)break;if(i===so){var d=o.data;if(d===qb||d===m0||d===v0)break;if(d===Vb)return null}}return o}function g0(o){return Kb(o.nextSibling)}function aZ(o){return Kb(o.firstChild)}function sZ(o){return Kb(o.firstChild)}function lZ(o){return Kb(o.nextSibling)}function cZ(o,i,d,h,g,C,b){_0(C,o),RA(o,d);var k;{var x=g;k=x.namespace}var M=(C.mode&ln)!==Ot;return yJ(o,i,d,k,h,M,b)}function uZ(o,i,d,h){return _0(d,o),d.mode&ln,_J(o,i)}function dZ(o,i){_0(i,o)}function fZ(o){for(var i=o.nextSibling,d=0;i;){if(i.nodeType===so){var h=i.data;if(h===Vb){if(d===0)return g0(i);d--}else(h===qb||h===m0||h===v0)&&d++}i=i.nextSibling}return null}function _U(o){for(var i=o.previousSibling,d=0;i;){if(i.nodeType===so){var h=i.data;if(h===qb||h===m0||h===v0){if(d===0)return i;d--}else h===Vb&&d++}i=i.previousSibling}return null}function hZ(o){vn(o)}function pZ(o){vn(o)}function vZ(o){return o!=="head"&&o!=="body"}function mZ(o,i,d,h){var g=!0;jb(i.nodeValue,d,h,g)}function gZ(o,i,d,h,g,C){if(i[Bb]!==!0){var b=!0;jb(h.nodeValue,g,C,b)}}function yZ(o,i){i.nodeType===na?hA(o,i):i.nodeType===so||pA(o,i)}function _Z(o,i){{var d=o.parentNode;d!==null&&(i.nodeType===na?hA(d,i):i.nodeType===so||pA(d,i))}}function CZ(o,i,d,h,g){(g||i[Bb]!==!0)&&(h.nodeType===na?hA(d,h):h.nodeType===so||pA(d,h))}function EZ(o,i,d){vA(o,i)}function wZ(o,i){mA(o,i)}function bZ(o,i,d){{var h=o.parentNode;h!==null&&vA(h,i)}}function SZ(o,i){{var d=o.parentNode;d!==null&&mA(d,i)}}function TZ(o,i,d,h,g,C){(C||i[Bb]!==!0)&&vA(d,h)}function RZ(o,i,d,h,g){(g||i[Bb]!==!0)&&mA(d,h)}function kZ(o){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",o.nodeName.toLowerCase())}function AZ(o){c0(o)}var sg=Math.random().toString(36).slice(2),lg="__reactFiber$"+sg,SA="__reactProps$"+sg,y0="__reactContainer$"+sg,TA="__reactEvents$"+sg,xZ="__reactListeners$"+sg,IZ="__reactHandles$"+sg;function OZ(o){delete o[lg],delete o[SA],delete o[TA],delete o[xZ],delete o[IZ]}function _0(o,i){i[lg]=o}function Gb(o,i){i[y0]=o}function CU(o){o[y0]=null}function C0(o){return!!o[y0]}function Sp(o){var i=o[lg];if(i)return i;for(var d=o.parentNode;d;){if(i=d[y0]||d[lg],i){var h=i.alternate;if(i.child!==null||h!==null&&h.child!==null)for(var g=_U(o);g!==null;){var C=g[lg];if(C)return C;g=_U(g)}return i}o=d,d=o.parentNode}return null}function xf(o){var i=o[lg]||o[y0];return i&&(i.tag===T||i.tag===A||i.tag===V||i.tag===E)?i:null}function cg(o){if(o.tag===T||o.tag===A)return o.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Wb(o){return o[SA]||null}function RA(o,i){o[SA]=i}function NZ(o){var i=o[TA];return i===void 0&&(i=o[TA]=new Set),i}var EU={},wU=t.ReactDebugCurrentFrame;function Yb(o){if(o){var i=o._owner,d=Fs(o.type,o._source,i?i.type:null);wU.setExtraStackFrame(d)}else wU.setExtraStackFrame(null)}function Ll(o,i,d,h,g){{var C=Function.call.bind(ro);for(var b in o)if(C(o,b)){var k=void 0;try{if(typeof o[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 o[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}k=o[b](i,b,h,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){k=M}k&&!(k instanceof Error)&&(Yb(g),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",h||"React class",d,b,typeof k),Yb(null)),k instanceof Error&&!(k.message in EU)&&(EU[k.message]=!0,Yb(g),c("Failed %s type: %s",d,k.message),Yb(null))}}}var kA=[],Qb;Qb=[];var rd=-1;function If(o){return{current:o}}function da(o,i){if(rd<0){c("Unexpected pop.");return}i!==Qb[rd]&&c("Unexpected Fiber popped."),o.current=kA[rd],kA[rd]=null,Qb[rd]=null,rd--}function fa(o,i,d){rd++,kA[rd]=o.current,Qb[rd]=d,o.current=i}var AA;AA={};var Ts={};Object.freeze(Ts);var od=If(Ts),qc=If(!1),xA=Ts;function ug(o,i,d){return d&&Vc(i)?xA:od.current}function bU(o,i,d){{var h=o.stateNode;h.__reactInternalMemoizedUnmaskedChildContext=i,h.__reactInternalMemoizedMaskedChildContext=d}}function dg(o,i){{var d=o.type,h=d.contextTypes;if(!h)return Ts;var g=o.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===i)return g.__reactInternalMemoizedMaskedChildContext;var C={};for(var b in h)C[b]=i[b];{var k=qt(o)||"Unknown";Ll(h,C,"context",k)}return g&&bU(o,i,C),C}}function Xb(){return qc.current}function Vc(o){{var i=o.childContextTypes;return i!=null}}function Jb(o){da(qc,o),da(od,o)}function IA(o){da(qc,o),da(od,o)}function SU(o,i,d){{if(od.current!==Ts)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");fa(od,i,o),fa(qc,d,o)}}function TU(o,i,d){{var h=o.stateNode,g=i.childContextTypes;if(typeof h.getChildContext!="function"){{var C=qt(o)||"Unknown";AA[C]||(AA[C]=!0,c("%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((qt(o)||"Unknown")+'.getChildContext(): key "'+k+'" is not defined in childContextTypes.');{var x=qt(o)||"Unknown";Ll(g,b,"child context",x)}return an({},d,b)}}function Zb(o){{var i=o.stateNode,d=i&&i.__reactInternalMemoizedMergedChildContext||Ts;return xA=od.current,fa(od,d,o),fa(qc,qc.current,o),!0}}function RU(o,i,d){{var h=o.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=TU(o,i,xA);h.__reactInternalMemoizedMergedChildContext=g,da(qc,o),da(od,o),fa(od,g,o),fa(qc,d,o)}else da(qc,o),fa(qc,d,o)}}function MZ(o){{if(!b_(o)||o.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 i=o;do{switch(i.tag){case E:return i.stateNode.context;case m:{var d=i.type;if(Vc(d))return i.stateNode.__reactInternalMemoizedMergedChildContext;break}}i=i.return}while(i!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Of=0,eS=1,id=null,OA=!1,NA=!1;function kU(o){id===null?id=[o]:id.push(o)}function PZ(o){OA=!0,kU(o)}function AU(){OA&&Nf()}function Nf(){if(!NA&&id!==null){NA=!0;var o=0,i=Xa();try{var d=!0,h=id;for(To(gi);o<h.length;o++){var g=h[o];do g=g(d);while(g!==null)}id=null,OA=!1}catch(C){throw id!==null&&(id=id.slice(o+1)),fm(pm,Nf),C}finally{To(i),NA=!1}}return null}var fg=[],hg=0,tS=null,nS=0,Gs=[],Ws=0,Tp=null,ad=1,sd="";function DZ(o){return kp(),(o.flags&C_)!==Rt}function LZ(o){return kp(),nS}function UZ(){var o=sd,i=ad,d=i&~FZ(i);return d.toString(32)+o}function Rp(o,i){kp(),fg[hg++]=nS,fg[hg++]=tS,tS=o,nS=i}function xU(o,i,d){kp(),Gs[Ws++]=ad,Gs[Ws++]=sd,Gs[Ws++]=Tp,Tp=o;var h=ad,g=sd,C=rS(h)-1,b=h&~(1<<C),k=d+1,x=rS(i)+C;if(x>30){var M=C-C%5,L=(1<<M)-1,X=(b&L).toString(32),Y=b>>M,ue=C-M,fe=rS(i)+ue,we=k<<ue,at=we|Y,kt=X+g;ad=1<<fe|at,sd=kt}else{var Et=k<<C,bn=Et|b,mn=g;ad=1<<x|bn,sd=mn}}function MA(o){kp();var i=o.return;if(i!==null){var d=1,h=0;Rp(o,d),xU(o,d,h)}}function rS(o){return 32-Cm(o)}function FZ(o){return 1<<rS(o)-1}function PA(o){for(;o===tS;)tS=fg[--hg],fg[hg]=null,nS=fg[--hg],fg[hg]=null;for(;o===Tp;)Tp=Gs[--Ws],Gs[Ws]=null,sd=Gs[--Ws],Gs[Ws]=null,ad=Gs[--Ws],Gs[Ws]=null}function $Z(){return kp(),Tp!==null?{id:ad,overflow:sd}:null}function HZ(o,i){kp(),Gs[Ws++]=ad,Gs[Ws++]=sd,Gs[Ws++]=Tp,ad=i.id,sd=i.overflow,Tp=o}function kp(){Li()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Di=null,Ys=null,Ul=!1,Ap=!1,Mf=null;function jZ(){Ul&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function IU(){Ap=!0}function zZ(){return Ap}function BZ(o){var i=o.stateNode.containerInfo;return Ys=sZ(i),Di=o,Ul=!0,Mf=null,Ap=!1,!0}function qZ(o,i,d){return Ys=lZ(i),Di=o,Ul=!0,Mf=null,Ap=!1,d!==null&&HZ(o,d),!0}function OU(o,i){switch(o.tag){case E:{yZ(o.stateNode.containerInfo,i);break}case T:{var d=(o.mode&ln)!==Ot;CZ(o.type,o.memoizedProps,o.stateNode,i,d);break}case V:{var h=o.memoizedState;h.dehydrated!==null&&_Z(h.dehydrated,i);break}}}function NU(o,i){OU(o,i);var d=Gne();d.stateNode=i,d.return=o;var h=o.deletions;h===null?(o.deletions=[d],o.flags|=Mn):h.push(d)}function DA(o,i){{if(Ap)return;switch(o.tag){case E:{var d=o.stateNode.containerInfo;switch(i.tag){case T:var h=i.type;i.pendingProps,EZ(d,h);break;case A:var g=i.pendingProps;wZ(d,g);break}break}case T:{var C=o.type,b=o.memoizedProps,k=o.stateNode;switch(i.tag){case T:{var x=i.type,M=i.pendingProps,L=(o.mode&ln)!==Ot;TZ(C,b,k,x,M,L);break}case A:{var X=i.pendingProps,Y=(o.mode&ln)!==Ot;RZ(C,b,k,X,Y);break}}break}case V:{var ue=o.memoizedState,fe=ue.dehydrated;if(fe!==null)switch(i.tag){case T:var we=i.type;i.pendingProps,bZ(fe,we);break;case A:var at=i.pendingProps;SZ(fe,at);break}break}default:return}}}function MU(o,i){i.flags=i.flags&~Ka|ur,DA(o,i)}function PU(o,i){switch(o.tag){case T:{var d=o.type;o.pendingProps;var h=tZ(i,d);return h!==null?(o.stateNode=h,Di=o,Ys=aZ(h),!0):!1}case A:{var g=o.pendingProps,C=nZ(i,g);return C!==null?(o.stateNode=C,Di=o,Ys=null,!0):!1}case V:{var b=rZ(i);if(b!==null){var k={dehydrated:b,treeContext:$Z(),retryLane:ca};o.memoizedState=k;var x=Wne(b);return x.return=o,o.child=x,Di=o,Ys=null,!0}return!1}default:return!1}}function LA(o){return(o.mode&ln)!==Ot&&(o.flags&jt)===Rt}function UA(o){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function FA(o){if(Ul){var i=Ys;if(!i){LA(o)&&(DA(Di,o),UA()),MU(Di,o),Ul=!1,Di=o;return}var d=i;if(!PU(o,i)){LA(o)&&(DA(Di,o),UA()),i=g0(d);var h=Di;if(!i||!PU(o,i)){MU(Di,o),Ul=!1,Di=o;return}NU(h,d)}}}function VZ(o,i,d){var h=o.stateNode,g=!Ap,C=cZ(h,o.type,o.memoizedProps,i,d,o,g);return o.updateQueue=C,C!==null}function KZ(o){var i=o.stateNode,d=o.memoizedProps,h=uZ(i,d,o);if(h){var g=Di;if(g!==null)switch(g.tag){case E:{var C=g.stateNode.containerInfo,b=(g.mode&ln)!==Ot;mZ(C,i,d,b);break}case T:{var k=g.type,x=g.memoizedProps,M=g.stateNode,L=(g.mode&ln)!==Ot;gZ(k,x,M,i,d,L);break}}}return h}function GZ(o){var i=o.memoizedState,d=i!==null?i.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.");dZ(d,o)}function WZ(o){var i=o.memoizedState,d=i!==null?i.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 fZ(d)}function DU(o){for(var i=o.return;i!==null&&i.tag!==T&&i.tag!==E&&i.tag!==V;)i=i.return;Di=i}function oS(o){if(o!==Di)return!1;if(!Ul)return DU(o),Ul=!0,!1;if(o.tag!==E&&(o.tag!==T||vZ(o.type)&&!_A(o.type,o.memoizedProps))){var i=Ys;if(i)if(LA(o))LU(o),UA();else for(;i;)NU(o,i),i=g0(i)}return DU(o),o.tag===V?Ys=WZ(o):Ys=Di?g0(o.stateNode):null,!0}function YZ(){return Ul&&Ys!==null}function LU(o){for(var i=Ys;i;)OU(o,i),i=g0(i)}function pg(){Di=null,Ys=null,Ul=!1,Ap=!1}function UU(){Mf!==null&&(O$(Mf),Mf=null)}function Li(){return Ul}function $A(o){Mf===null?Mf=[o]:Mf.push(o)}var QZ=t.ReactCurrentBatchConfig,XZ=null;function JZ(){return QZ.transition}var Fl={recordUnsafeLifecycleWarnings:function(o,i){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(o,i){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var ZZ=function(o){for(var i=null,d=o;d!==null;)d.mode&kr&&(i=d),d=d.return;return i},xp=function(o){var i=[];return o.forEach(function(d){i.push(d)}),i.sort().join(", ")},E0=[],w0=[],b0=[],S0=[],T0=[],R0=[],Ip=new Set;Fl.recordUnsafeLifecycleWarnings=function(o,i){Ip.has(o.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&E0.push(o),o.mode&kr&&typeof i.UNSAFE_componentWillMount=="function"&&w0.push(o),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&b0.push(o),o.mode&kr&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&S0.push(o),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&T0.push(o),o.mode&kr&&typeof i.UNSAFE_componentWillUpdate=="function"&&R0.push(o))},Fl.flushPendingUnsafeLifecycleWarnings=function(){var o=new Set;E0.length>0&&(E0.forEach(function(Y){o.add(qt(Y)||"Component"),Ip.add(Y.type)}),E0=[]);var i=new Set;w0.length>0&&(w0.forEach(function(Y){i.add(qt(Y)||"Component"),Ip.add(Y.type)}),w0=[]);var d=new Set;b0.length>0&&(b0.forEach(function(Y){d.add(qt(Y)||"Component"),Ip.add(Y.type)}),b0=[]);var h=new Set;S0.length>0&&(S0.forEach(function(Y){h.add(qt(Y)||"Component"),Ip.add(Y.type)}),S0=[]);var g=new Set;T0.length>0&&(T0.forEach(function(Y){g.add(qt(Y)||"Component"),Ip.add(Y.type)}),T0=[]);var C=new Set;if(R0.length>0&&(R0.forEach(function(Y){C.add(qt(Y)||"Component"),Ip.add(Y.type)}),R0=[]),i.size>0){var b=xp(i);c(`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=xp(h);c(`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=xp(C);c(`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(o.size>0){var M=xp(o);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 L=xp(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`,L)}if(g.size>0){var X=xp(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`,X)}};var iS=new Map,FU=new Set;Fl.recordLegacyContextWarning=function(o,i){var d=ZZ(o);if(d===null){c("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(!FU.has(o.type)){var h=iS.get(d);(o.type.contextTypes!=null||o.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(h===void 0&&(h=[],iS.set(d,h)),h.push(o))}},Fl.flushLegacyContextWarning=function(){iS.forEach(function(o,i){if(o.length!==0){var d=o[0],h=new Set;o.forEach(function(C){h.add(qt(C)||"Component"),FU.add(C.type)});var g=xp(h);try{Ln(d),c(`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{Fr()}}})},Fl.discardPendingWarnings=function(){E0=[],w0=[],b0=[],S0=[],T0=[],R0=[],iS=new Map}}function $l(o,i){if(o&&o.defaultProps){var d=an({},i),h=o.defaultProps;for(var g in h)d[g]===void 0&&(d[g]=h[g]);return d}return i}var HA=If(null),jA;jA={};var aS=null,vg=null,zA=null,sS=!1;function lS(){aS=null,vg=null,zA=null,sS=!1}function $U(){sS=!0}function HU(){sS=!1}function jU(o,i,d){fa(HA,i._currentValue,o),i._currentValue=d,i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==jA&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=jA}function BA(o,i){var d=HA.current;da(HA,i),o._currentValue=d}function qA(o,i,d){for(var h=o;h!==null;){var g=h.alternate;if(Ku(h.childLanes,i)?g!==null&&!Ku(g.childLanes,i)&&(g.childLanes=Zt(g.childLanes,i)):(h.childLanes=Zt(h.childLanes,i),g!==null&&(g.childLanes=Zt(g.childLanes,i))),h===d)break;h=h.return}h!==d&&c("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 eee(o,i,d){tee(o,i,d)}function tee(o,i,d){var h=o.child;for(h!==null&&(h.return=o);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===i){if(h.tag===m){var k=So(d),x=ld(tr,k);x.tag=uS;var M=h.updateQueue;if(M!==null){var L=M.shared,X=L.pending;X===null?x.next=x:(x.next=X.next,X.next=x),L.pending=x}}h.lanes=Zt(h.lanes,d);var Y=h.alternate;Y!==null&&(Y.lanes=Zt(Y.lanes,d)),qA(h.return,d,o),C.lanes=Zt(C.lanes,d);break}b=b.next}}else if(h.tag===D)g=h.type===o.type?null:h.child;else if(h.tag===it){var ue=h.return;if(ue===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ue.lanes=Zt(ue.lanes,d);var fe=ue.alternate;fe!==null&&(fe.lanes=Zt(fe.lanes,d)),qA(ue,d,o),g=h.sibling}else g=h.child;if(g!==null)g.return=h;else for(g=h;g!==null;){if(g===o){g=null;break}var we=g.sibling;if(we!==null){we.return=g.return,g=we;break}g=g.return}h=g}}function mg(o,i){aS=o,vg=null,zA=null;var d=o.dependencies;if(d!==null){var h=d.firstContext;h!==null&&(ua(d.lanes,i)&&H0(),d.firstContext=null)}}function Ho(o){sS&&c("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 i=o._currentValue;if(zA!==o){var d={context:o,memoizedValue:i,next:null};if(vg===null){if(aS===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().");vg=d,aS.dependencies={lanes:Se,firstContext:d}}else vg=vg.next=d}return i}var Op=null;function VA(o){Op===null?Op=[o]:Op.push(o)}function nee(){if(Op!==null){for(var o=0;o<Op.length;o++){var i=Op[o],d=i.interleaved;if(d!==null){i.interleaved=null;var h=d.next,g=i.pending;if(g!==null){var C=g.next;g.next=h,d.next=C}i.pending=d}}Op=null}}function zU(o,i,d,h){var g=i.interleaved;return g===null?(d.next=d,VA(i)):(d.next=g.next,g.next=d),i.interleaved=d,cS(o,h)}function ree(o,i,d,h){var g=i.interleaved;g===null?(d.next=d,VA(i)):(d.next=g.next,g.next=d),i.interleaved=d}function oee(o,i,d,h){var g=i.interleaved;return g===null?(d.next=d,VA(i)):(d.next=g.next,g.next=d),i.interleaved=d,cS(o,h)}function ns(o,i){return cS(o,i)}var iee=cS;function cS(o,i){o.lanes=Zt(o.lanes,i);var d=o.alternate;d!==null&&(d.lanes=Zt(d.lanes,i)),d===null&&(o.flags&(ur|Ka))!==Rt&&B$(o);for(var h=o,g=o.return;g!==null;)g.childLanes=Zt(g.childLanes,i),d=g.alternate,d!==null?d.childLanes=Zt(d.childLanes,i):(g.flags&(ur|Ka))!==Rt&&B$(o),h=g,g=g.return;if(h.tag===E){var C=h.stateNode;return C}else return null}var BU=0,qU=1,uS=2,KA=3,dS=!1,GA,fS;GA=!1,fS=null;function WA(o){var i={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Se},effects:null};o.updateQueue=i}function VU(o,i){var d=i.updateQueue,h=o.updateQueue;if(d===h){var g={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects};i.updateQueue=g}}function ld(o,i){var d={eventTime:o,lane:i,tag:BU,payload:null,callback:null,next:null};return d}function Pf(o,i,d){var h=o.updateQueue;if(h===null)return null;var g=h.shared;if(fS===g&&!GA&&(c("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."),GA=!0),ine()){var C=g.pending;return C===null?i.next=i:(i.next=C.next,C.next=i),g.pending=i,iee(o,d)}else return oee(o,g,i,d)}function hS(o,i,d){var h=i.updateQueue;if(h!==null){var g=h.shared;if(L_(d)){var C=g.lanes;C=F_(C,o.pendingLanes);var b=Zt(C,d);g.lanes=b,pf(o,b)}}}function YA(o,i){var d=o.updateQueue,h=o.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=i:(b.next=i,b=i)}else C=b=i;d={baseState:g.baseState,firstBaseUpdate:C,lastBaseUpdate:b,shared:g.shared,effects:g.effects},o.updateQueue=d;return}}var L=d.lastBaseUpdate;L===null?d.firstBaseUpdate=i:L.next=i,d.lastBaseUpdate=i}function aee(o,i,d,h,g,C){switch(d.tag){case qU:{var b=d.payload;if(typeof b=="function"){$U();var k=b.call(C,h,g);{if(o.mode&kr){bo(!0);try{b.call(C,h,g)}finally{bo(!1)}}HU()}return k}return b}case KA:o.flags=o.flags&~Do|jt;case BU:{var x=d.payload,M;if(typeof x=="function"){$U(),M=x.call(C,h,g);{if(o.mode&kr){bo(!0);try{x.call(C,h,g)}finally{bo(!1)}}HU()}}else M=x;return M==null?h:an({},h,M)}case uS:return dS=!0,h}return h}function pS(o,i,d,h){var g=o.updateQueue;dS=!1,fS=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 L=o.alternate;if(L!==null){var X=L.updateQueue,Y=X.lastBaseUpdate;Y!==b&&(Y===null?X.firstBaseUpdate=M:Y.next=M,X.lastBaseUpdate=x)}}if(C!==null){var ue=g.baseState,fe=Se,we=null,at=null,kt=null,Et=C;do{var bn=Et.lane,mn=Et.eventTime;if(Ku(h,bn)){if(kt!==null){var be={eventTime:mn,lane:En,tag:Et.tag,payload:Et.payload,callback:Et.callback,next:null};kt=kt.next=be}ue=aee(o,g,Et,ue,i,d);var ae=Et.callback;if(ae!==null&&Et.lane!==En){o.flags|=js;var De=g.effects;De===null?g.effects=[Et]:De.push(Et)}}else{var ie={eventTime:mn,lane:bn,tag:Et.tag,payload:Et.payload,callback:Et.callback,next:null};kt===null?(at=kt=ie,we=ue):kt=kt.next=ie,fe=Zt(fe,bn)}if(Et=Et.next,Et===null){if(k=g.shared.pending,k===null)break;var st=k,et=st.next;st.next=null,Et=et,g.lastBaseUpdate=st,g.shared.pending=null}}while(!0);kt===null&&(we=ue),g.baseState=we,g.firstBaseUpdate=at,g.lastBaseUpdate=kt;var $t=g.shared.interleaved;if($t!==null){var Gt=$t;do fe=Zt(fe,Gt.lane),Gt=Gt.next;while(Gt!==$t)}else C===null&&(g.shared.lanes=Se);J0(fe),o.lanes=fe,o.memoizedState=ue}fS=null}function see(o,i){if(typeof o!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+o));o.call(i)}function KU(){dS=!1}function vS(){return dS}function GU(o,i,d){var h=i.effects;if(i.effects=null,h!==null)for(var g=0;g<h.length;g++){var C=h[g],b=C.callback;b!==null&&(C.callback=null,see(b,d))}}var QA={},WU=new n.Component().refs,XA,JA,ZA,ex,tx,YU,mS,nx,rx,ox;{XA=new Set,JA=new Set,ZA=new Set,ex=new Set,nx=new Set,tx=new Set,rx=new Set,ox=new Set;var QU=new Set;mS=function(o,i){if(!(o===null||typeof o=="function")){var d=i+"_"+o;QU.has(d)||(QU.add(d),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,o))}},YU=function(o,i){if(i===void 0){var d=Tn(o)||"Component";tx.has(d)||(tx.add(d),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}},Object.defineProperty(QA,"_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(QA)}function ix(o,i,d,h){var g=o.memoizedState,C=d(h,g);{if(o.mode&kr){bo(!0);try{C=d(h,g)}finally{bo(!1)}}YU(i,C)}var b=C==null?g:an({},g,C);if(o.memoizedState=b,o.lanes===Se){var k=o.updateQueue;k.baseState=b}}var ax={isMounted:Ea,enqueueSetState:function(o,i,d){var h=qa(o),g=ka(),C=zf(h),b=ld(g,C);b.payload=i,d!=null&&(mS(d,"setState"),b.callback=d);var k=Pf(h,b,C);k!==null&&(ii(k,h,C,g),hS(k,h,C)),Dc(h,C)},enqueueReplaceState:function(o,i,d){var h=qa(o),g=ka(),C=zf(h),b=ld(g,C);b.tag=qU,b.payload=i,d!=null&&(mS(d,"replaceState"),b.callback=d);var k=Pf(h,b,C);k!==null&&(ii(k,h,C,g),hS(k,h,C)),Dc(h,C)},enqueueForceUpdate:function(o,i){var d=qa(o),h=ka(),g=zf(d),C=ld(h,g);C.tag=uS,i!=null&&(mS(i,"forceUpdate"),C.callback=i);var b=Pf(d,C,g);b!==null&&(ii(b,d,g,h),hS(b,d,g)),N_(d,g)}};function XU(o,i,d,h,g,C,b){var k=o.stateNode;if(typeof k.shouldComponentUpdate=="function"){var x=k.shouldComponentUpdate(h,C,b);{if(o.mode&kr){bo(!0);try{x=k.shouldComponentUpdate(h,C,b)}finally{bo(!1)}}x===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Tn(i)||"Component")}return x}return i.prototype&&i.prototype.isPureReactComponent?!St(d,h)||!St(g,C):!0}function lee(o,i,d){var h=o.stateNode;{var g=Tn(i)||"Component",C=h.render;C||(i.prototype&&typeof i.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):c("%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&&c("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&&c("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&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),h.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),h.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),i.contextType&&i.contextTypes&&!rx.has(i)&&(rx.add(i),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof h.componentShouldUpdate=="function"&&c("%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),i.prototype&&i.prototype.isPureReactComponent&&typeof h.shouldComponentUpdate<"u"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Tn(i)||"A pure component"),typeof h.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof h.componentDidReceiveProps=="function"&&c("%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"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof h.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var b=h.props!==d;h.props!==void 0&&b&&c("%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&&c("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"&&!ZA.has(i)&&(ZA.add(i),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Tn(i))),typeof h.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof h.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof i.getSnapshotBeforeUpdate=="function"&&c("%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"||yn(k))&&c("%s.state: must be set to an object or null",g),typeof h.getChildContext=="function"&&typeof i.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function JU(o,i){i.updater=ax,o.stateNode=i,rf(i,o),i._reactInternalInstance=QA}function ZU(o,i,d){var h=!1,g=Ts,C=Ts,b=i.contextType;if("contextType"in i){var k=b===null||b!==void 0&&b.$$typeof===$e&&b._context===void 0;if(!k&&!ox.has(i)){ox.add(i);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(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Tn(i)||"Component",x)}}if(typeof b=="object"&&b!==null)C=Ho(b);else{g=ug(o,i,!0);var M=i.contextTypes;h=M!=null,C=h?dg(o,g):Ts}var L=new i(d,C);if(o.mode&kr){bo(!0);try{L=new i(d,C)}finally{bo(!1)}}var X=o.memoizedState=L.state!==null&&L.state!==void 0?L.state:null;JU(o,L);{if(typeof i.getDerivedStateFromProps=="function"&&X===null){var Y=Tn(i)||"Component";JA.has(Y)||(JA.add(Y),c("`%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.",Y,L.state===null?"null":"undefined",Y))}if(typeof i.getDerivedStateFromProps=="function"||typeof L.getSnapshotBeforeUpdate=="function"){var ue=null,fe=null,we=null;if(typeof L.componentWillMount=="function"&&L.componentWillMount.__suppressDeprecationWarning!==!0?ue="componentWillMount":typeof L.UNSAFE_componentWillMount=="function"&&(ue="UNSAFE_componentWillMount"),typeof L.componentWillReceiveProps=="function"&&L.componentWillReceiveProps.__suppressDeprecationWarning!==!0?fe="componentWillReceiveProps":typeof L.UNSAFE_componentWillReceiveProps=="function"&&(fe="UNSAFE_componentWillReceiveProps"),typeof L.componentWillUpdate=="function"&&L.componentWillUpdate.__suppressDeprecationWarning!==!0?we="componentWillUpdate":typeof L.UNSAFE_componentWillUpdate=="function"&&(we="UNSAFE_componentWillUpdate"),ue!==null||fe!==null||we!==null){var at=Tn(i)||"Component",kt=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ex.has(at)||(ex.add(at),c(`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`,at,kt,ue!==null?`
166
+ `+ue:"",fe!==null?`
167
+ `+fe:"",we!==null?`
168
+ `+we:""))}}}return h&&bU(o,g,C),L}function cee(o,i){var d=i.state;typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),d!==i.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",qt(o)||"Component"),ax.enqueueReplaceState(i,i.state,null))}function eF(o,i,d,h){var g=i.state;if(typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(d,h),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(d,h),i.state!==g){{var C=qt(o)||"Component";XA.has(C)||(XA.add(C),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",C))}ax.enqueueReplaceState(i,i.state,null)}}function sx(o,i,d,h){lee(o,i,d);var g=o.stateNode;g.props=d,g.state=o.memoizedState,g.refs=WU,WA(o);var C=i.contextType;if(typeof C=="object"&&C!==null)g.context=Ho(C);else{var b=ug(o,i,!0);g.context=dg(o,b)}{if(g.state===d){var k=Tn(i)||"Component";nx.has(k)||(nx.add(k),c("%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))}o.mode&kr&&Fl.recordLegacyContextWarning(o,g),Fl.recordUnsafeLifecycleWarnings(o,g)}g.state=o.memoizedState;var x=i.getDerivedStateFromProps;if(typeof x=="function"&&(ix(o,i,x,d),g.state=o.memoizedState),typeof i.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(cee(o,g),pS(o,d,g,h),g.state=o.memoizedState),typeof g.componentDidMount=="function"){var M=Jt;M|=oa,(o.mode&Ya)!==Ot&&(M|=ia),o.flags|=M}}function uee(o,i,d,h){var g=o.stateNode,C=o.memoizedProps;g.props=C;var b=g.context,k=i.contextType,x=Ts;if(typeof k=="object"&&k!==null)x=Ho(k);else{var M=ug(o,i,!0);x=dg(o,M)}var L=i.getDerivedStateFromProps,X=typeof L=="function"||typeof g.getSnapshotBeforeUpdate=="function";!X&&(typeof g.UNSAFE_componentWillReceiveProps=="function"||typeof g.componentWillReceiveProps=="function")&&(C!==d||b!==x)&&eF(o,g,d,x),KU();var Y=o.memoizedState,ue=g.state=Y;if(pS(o,d,g,h),ue=o.memoizedState,C===d&&Y===ue&&!Xb()&&!vS()){if(typeof g.componentDidMount=="function"){var fe=Jt;fe|=oa,(o.mode&Ya)!==Ot&&(fe|=ia),o.flags|=fe}return!1}typeof L=="function"&&(ix(o,i,L,d),ue=o.memoizedState);var we=vS()||XU(o,i,C,d,Y,ue,x);if(we){if(!X&&(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 at=Jt;at|=oa,(o.mode&Ya)!==Ot&&(at|=ia),o.flags|=at}}else{if(typeof g.componentDidMount=="function"){var kt=Jt;kt|=oa,(o.mode&Ya)!==Ot&&(kt|=ia),o.flags|=kt}o.memoizedProps=d,o.memoizedState=ue}return g.props=d,g.state=ue,g.context=x,we}function dee(o,i,d,h,g){var C=i.stateNode;VU(o,i);var b=i.memoizedProps,k=i.type===i.elementType?b:$l(i.type,b);C.props=k;var x=i.pendingProps,M=C.context,L=d.contextType,X=Ts;if(typeof L=="object"&&L!==null)X=Ho(L);else{var Y=ug(i,d,!0);X=dg(i,Y)}var ue=d.getDerivedStateFromProps,fe=typeof ue=="function"||typeof C.getSnapshotBeforeUpdate=="function";!fe&&(typeof C.UNSAFE_componentWillReceiveProps=="function"||typeof C.componentWillReceiveProps=="function")&&(b!==x||M!==X)&&eF(i,C,h,X),KU();var we=i.memoizedState,at=C.state=we;if(pS(i,h,C,g),at=i.memoizedState,b===x&&we===at&&!Xb()&&!vS()&&!ge)return typeof C.componentDidUpdate=="function"&&(b!==o.memoizedProps||we!==o.memoizedState)&&(i.flags|=Jt),typeof C.getSnapshotBeforeUpdate=="function"&&(b!==o.memoizedProps||we!==o.memoizedState)&&(i.flags|=Va),!1;typeof ue=="function"&&(ix(i,d,ue,h),at=i.memoizedState);var kt=vS()||XU(i,d,k,h,we,at,X)||ge;return kt?(!fe&&(typeof C.UNSAFE_componentWillUpdate=="function"||typeof C.componentWillUpdate=="function")&&(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(h,at,X),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(h,at,X)),typeof C.componentDidUpdate=="function"&&(i.flags|=Jt),typeof C.getSnapshotBeforeUpdate=="function"&&(i.flags|=Va)):(typeof C.componentDidUpdate=="function"&&(b!==o.memoizedProps||we!==o.memoizedState)&&(i.flags|=Jt),typeof C.getSnapshotBeforeUpdate=="function"&&(b!==o.memoizedProps||we!==o.memoizedState)&&(i.flags|=Va),i.memoizedProps=h,i.memoizedState=at),C.props=h,C.state=at,C.context=X,kt}var lx,cx,ux,dx,fx,tF=function(o,i){};lx=!1,cx=!1,ux={},dx={},fx={},tF=function(o,i){if(!(o===null||typeof o!="object")&&!(!o._store||o._store.validated||o.key!=null)){if(typeof o._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.");o._store.validated=!0;var d=qt(i)||"Component";dx[d]||(dx[d]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function k0(o,i,d){var h=d.ref;if(h!==null&&typeof h!="function"&&typeof h!="object"){if((o.mode&kr||Le)&&!(d._owner&&d._self&&d._owner.stateNode!==d._self)){var g=qt(o)||"Component";ux[g]||(c('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),ux[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;Xn(h,"ref");var M=""+h;if(i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===M)return i.ref;var L=function(X){var Y=x.refs;Y===WU&&(Y=x.refs={}),X===null?delete Y[M]:Y[M]=X};return L._stringRef=M,L}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 gS(o,i){var d=Object.prototype.toString.call(i);throw new Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}function yS(o){{var i=qt(o)||"Component";if(fx[i])return;fx[i]=!0,c("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 nF(o){var i=o._payload,d=o._init;return d(i)}function rF(o){function i(ie,be){if(o){var ae=ie.deletions;ae===null?(ie.deletions=[be],ie.flags|=Mn):ae.push(be)}}function d(ie,be){if(!o)return null;for(var ae=be;ae!==null;)i(ie,ae),ae=ae.sibling;return null}function h(ie,be){for(var ae=new Map,De=be;De!==null;)De.key!==null?ae.set(De.key,De):ae.set(De.index,De),De=De.sibling;return ae}function g(ie,be){var ae=$p(ie,be);return ae.index=0,ae.sibling=null,ae}function C(ie,be,ae){if(ie.index=ae,!o)return ie.flags|=C_,be;var De=ie.alternate;if(De!==null){var st=De.index;return st<be?(ie.flags|=ur,be):st}else return ie.flags|=ur,be}function b(ie){return o&&ie.alternate===null&&(ie.flags|=ur),ie}function k(ie,be,ae,De){if(be===null||be.tag!==A){var st=$I(ae,ie.mode,De);return st.return=ie,st}else{var et=g(be,ae);return et.return=ie,et}}function x(ie,be,ae,De){var st=ae.type;if(st===Go)return L(ie,be,ae.props.children,De,ae.key);if(be!==null&&(be.elementType===st||G$(be,ae)||typeof st=="object"&&st!==null&&st.$$typeof===bt&&nF(st)===be.type)){var et=g(be,ae.props);return et.ref=k0(ie,be,ae),et.return=ie,et._debugSource=ae._source,et._debugOwner=ae._owner,et}var $t=FI(ae,ie.mode,De);return $t.ref=k0(ie,be,ae),$t.return=ie,$t}function M(ie,be,ae,De){if(be===null||be.tag!==S||be.stateNode.containerInfo!==ae.containerInfo||be.stateNode.implementation!==ae.implementation){var st=HI(ae,ie.mode,De);return st.return=ie,st}else{var et=g(be,ae.children||[]);return et.return=ie,et}}function L(ie,be,ae,De,st){if(be===null||be.tag!==O){var et=qf(ae,ie.mode,De,st);return et.return=ie,et}else{var $t=g(be,ae);return $t.return=ie,$t}}function X(ie,be,ae){if(typeof be=="string"&&be!==""||typeof be=="number"){var De=$I(""+be,ie.mode,ae);return De.return=ie,De}if(typeof be=="object"&&be!==null){switch(be.$$typeof){case io:{var st=FI(be,ie.mode,ae);return st.ref=k0(ie,null,be),st.return=ie,st}case ao:{var et=HI(be,ie.mode,ae);return et.return=ie,et}case bt:{var $t=be._payload,Gt=be._init;return X(ie,Gt($t),ae)}}if(yn(be)||ms(be)){var Qn=qf(be,ie.mode,ae,null);return Qn.return=ie,Qn}gS(ie,be)}return typeof be=="function"&&yS(ie),null}function Y(ie,be,ae,De){var st=be!==null?be.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return st!==null?null:k(ie,be,""+ae,De);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case io:return ae.key===st?x(ie,be,ae,De):null;case ao:return ae.key===st?M(ie,be,ae,De):null;case bt:{var et=ae._payload,$t=ae._init;return Y(ie,be,$t(et),De)}}if(yn(ae)||ms(ae))return st!==null?null:L(ie,be,ae,De,null);gS(ie,ae)}return typeof ae=="function"&&yS(ie),null}function ue(ie,be,ae,De,st){if(typeof De=="string"&&De!==""||typeof De=="number"){var et=ie.get(ae)||null;return k(be,et,""+De,st)}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case io:{var $t=ie.get(De.key===null?ae:De.key)||null;return x(be,$t,De,st)}case ao:{var Gt=ie.get(De.key===null?ae:De.key)||null;return M(be,Gt,De,st)}case bt:var Qn=De._payload,In=De._init;return ue(ie,be,ae,In(Qn),st)}if(yn(De)||ms(De)){var Ao=ie.get(ae)||null;return L(be,Ao,De,st,null)}gS(be,De)}return typeof De=="function"&&yS(be),null}function fe(ie,be,ae){{if(typeof ie!="object"||ie===null)return be;switch(ie.$$typeof){case io:case ao:tF(ie,ae);var De=ie.key;if(typeof De!="string")break;if(be===null){be=new Set,be.add(De);break}if(!be.has(De)){be.add(De);break}c("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.",De);break;case bt:var st=ie._payload,et=ie._init;fe(et(st),be,ae);break}}return be}function we(ie,be,ae,De){for(var st=null,et=0;et<ae.length;et++){var $t=ae[et];st=fe($t,st,ie)}for(var Gt=null,Qn=null,In=be,Ao=0,On=0,uo=null;In!==null&&On<ae.length;On++){In.index>On?(uo=In,In=null):uo=In.sibling;var pa=Y(ie,In,ae[On],De);if(pa===null){In===null&&(In=uo);break}o&&In&&pa.alternate===null&&i(ie,In),Ao=C(pa,Ao,On),Qn===null?Gt=pa:Qn.sibling=pa,Qn=pa,In=uo}if(On===ae.length){if(d(ie,In),Li()){var Bi=On;Rp(ie,Bi)}return Gt}if(In===null){for(;On<ae.length;On++){var ks=X(ie,ae[On],De);ks!==null&&(Ao=C(ks,Ao,On),Qn===null?Gt=ks:Qn.sibling=ks,Qn=ks)}if(Li()){var Aa=On;Rp(ie,Aa)}return Gt}for(var xa=h(ie,In);On<ae.length;On++){var va=ue(xa,ie,On,ae[On],De);va!==null&&(o&&va.alternate!==null&&xa.delete(va.key===null?On:va.key),Ao=C(va,Ao,On),Qn===null?Gt=va:Qn.sibling=va,Qn=va)}if(o&&xa.forEach(function(Mg){return i(ie,Mg)}),Li()){var pd=On;Rp(ie,pd)}return Gt}function at(ie,be,ae,De){var st=ms(ae);if(typeof st!="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"&&(cx||c("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."),cx=!0),ae.entries===st&&(lx||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),lx=!0);var et=st.call(ae);if(et)for(var $t=null,Gt=et.next();!Gt.done;Gt=et.next()){var Qn=Gt.value;$t=fe(Qn,$t,ie)}}var In=st.call(ae);if(In==null)throw new Error("An iterable object provided no iterator.");for(var Ao=null,On=null,uo=be,pa=0,Bi=0,ks=null,Aa=In.next();uo!==null&&!Aa.done;Bi++,Aa=In.next()){uo.index>Bi?(ks=uo,uo=null):ks=uo.sibling;var xa=Y(ie,uo,Aa.value,De);if(xa===null){uo===null&&(uo=ks);break}o&&uo&&xa.alternate===null&&i(ie,uo),pa=C(xa,pa,Bi),On===null?Ao=xa:On.sibling=xa,On=xa,uo=ks}if(Aa.done){if(d(ie,uo),Li()){var va=Bi;Rp(ie,va)}return Ao}if(uo===null){for(;!Aa.done;Bi++,Aa=In.next()){var pd=X(ie,Aa.value,De);pd!==null&&(pa=C(pd,pa,Bi),On===null?Ao=pd:On.sibling=pd,On=pd)}if(Li()){var Mg=Bi;Rp(ie,Mg)}return Ao}for(var rC=h(ie,uo);!Aa.done;Bi++,Aa=In.next()){var Zc=ue(rC,ie,Bi,Aa.value,De);Zc!==null&&(o&&Zc.alternate!==null&&rC.delete(Zc.key===null?Bi:Zc.key),pa=C(Zc,pa,Bi),On===null?Ao=Zc:On.sibling=Zc,On=Zc)}if(o&&rC.forEach(function(Tre){return i(ie,Tre)}),Li()){var Sre=Bi;Rp(ie,Sre)}return Ao}function kt(ie,be,ae,De){if(be!==null&&be.tag===A){d(ie,be.sibling);var st=g(be,ae);return st.return=ie,st}d(ie,be);var et=$I(ae,ie.mode,De);return et.return=ie,et}function Et(ie,be,ae,De){for(var st=ae.key,et=be;et!==null;){if(et.key===st){var $t=ae.type;if($t===Go){if(et.tag===O){d(ie,et.sibling);var Gt=g(et,ae.props.children);return Gt.return=ie,Gt._debugSource=ae._source,Gt._debugOwner=ae._owner,Gt}}else if(et.elementType===$t||G$(et,ae)||typeof $t=="object"&&$t!==null&&$t.$$typeof===bt&&nF($t)===et.type){d(ie,et.sibling);var Qn=g(et,ae.props);return Qn.ref=k0(ie,et,ae),Qn.return=ie,Qn._debugSource=ae._source,Qn._debugOwner=ae._owner,Qn}d(ie,et);break}else i(ie,et);et=et.sibling}if(ae.type===Go){var In=qf(ae.props.children,ie.mode,De,ae.key);return In.return=ie,In}else{var Ao=FI(ae,ie.mode,De);return Ao.ref=k0(ie,be,ae),Ao.return=ie,Ao}}function bn(ie,be,ae,De){for(var st=ae.key,et=be;et!==null;){if(et.key===st)if(et.tag===S&&et.stateNode.containerInfo===ae.containerInfo&&et.stateNode.implementation===ae.implementation){d(ie,et.sibling);var $t=g(et,ae.children||[]);return $t.return=ie,$t}else{d(ie,et);break}else i(ie,et);et=et.sibling}var Gt=HI(ae,ie.mode,De);return Gt.return=ie,Gt}function mn(ie,be,ae,De){var st=typeof ae=="object"&&ae!==null&&ae.type===Go&&ae.key===null;if(st&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case io:return b(Et(ie,be,ae,De));case ao:return b(bn(ie,be,ae,De));case bt:var et=ae._payload,$t=ae._init;return mn(ie,be,$t(et),De)}if(yn(ae))return we(ie,be,ae,De);if(ms(ae))return at(ie,be,ae,De);gS(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?b(kt(ie,be,""+ae,De)):(typeof ae=="function"&&yS(ie),d(ie,be))}return mn}var gg=rF(!0),oF=rF(!1);function fee(o,i){if(o!==null&&i.child!==o.child)throw new Error("Resuming work not yet implemented.");if(i.child!==null){var d=i.child,h=$p(d,d.pendingProps);for(i.child=h,h.return=i;d.sibling!==null;)d=d.sibling,h=h.sibling=$p(d,d.pendingProps),h.return=i;h.sibling=null}}function hee(o,i){for(var d=o.child;d!==null;)zne(d,i),d=d.sibling}var A0={},Df=If(A0),x0=If(A0),_S=If(A0);function CS(o){if(o===A0)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return o}function iF(){var o=CS(_S.current);return o}function hx(o,i){fa(_S,i,o),fa(x0,o,o),fa(Df,A0,o);var d=kJ(i);da(Df,o),fa(Df,d,o)}function yg(o){da(Df,o),da(x0,o),da(_S,o)}function px(){var o=CS(Df.current);return o}function aF(o){CS(_S.current);var i=CS(Df.current),d=AJ(i,o.type);i!==d&&(fa(x0,o,o),fa(Df,d,o))}function vx(o){x0.current===o&&(da(Df,o),da(x0,o))}var pee=0,sF=1,lF=1,I0=2,Hl=If(pee);function mx(o,i){return(o&i)!==0}function _g(o){return o&sF}function gx(o,i){return o&sF|i}function vee(o,i){return o|i}function Lf(o,i){fa(Hl,i,o)}function Cg(o){da(Hl,o)}function mee(o,i){var d=o.memoizedState;return d!==null?d.dehydrated!==null:(o.memoizedProps,!0)}function ES(o){for(var i=o;i!==null;){if(i.tag===V){var d=i.memoizedState;if(d!==null){var h=d.dehydrated;if(h===null||yU(h)||bA(h))return i}}else if(i.tag===Me&&i.memoizedProps.revealOrder!==void 0){var g=(i.flags&jt)!==Rt;if(g)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)return null;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var rs=0,Jo=1,Kc=2,Zo=4,Ui=8,yx=[];function _x(){for(var o=0;o<yx.length;o++){var i=yx[o];i._workInProgressVersionPrimary=null}yx.length=0}function gee(o,i){var d=i._getVersion,h=d(i._source);o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[i,h]:o.mutableSourceEagerHydrationData.push(i,h)}var ot=t.ReactCurrentDispatcher,O0=t.ReactCurrentBatchConfig,Cx,Eg;Cx=new Set;var Np=Se,Yn=null,ei=null,ti=null,wS=!1,N0=!1,M0=0,yee=0,_ee=25,Re=null,Qs=null,Uf=-1,Ex=!1;function Fn(){{var o=Re;Qs===null?Qs=[o]:Qs.push(o)}}function Qe(){{var o=Re;Qs!==null&&(Uf++,Qs[Uf]!==o&&Cee(o))}}function wg(o){o!=null&&!yn(o)&&c("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Re,typeof o)}function Cee(o){{var i=qt(Yn);if(!Cx.has(i)&&(Cx.add(i),Qs!==null)){for(var d="",h=30,g=0;g<=Uf;g++){for(var C=Qs[g],b=g===Uf?o:C,k=g+1+". "+C;k.length<h;)k+=" ";k+=b+`
173
+ `,d+=k}c(`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
+ `,i,d)}}}function ha(){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 wx(o,i){if(Ex)return!1;if(i===null)return c("%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.",Re),!1;o.length!==i.length&&c(`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`,Re,"["+i.join(", ")+"]","["+o.join(", ")+"]");for(var d=0;d<i.length&&d<o.length;d++)if(!dt(o[d],i[d]))return!1;return!0}function bg(o,i,d,h,g,C){Np=C,Yn=i,Qs=o!==null?o._debugHookTypes:null,Uf=-1,Ex=o!==null&&o.type!==i.type,i.memoizedState=null,i.updateQueue=null,i.lanes=Se,o!==null&&o.memoizedState!==null?ot.current=IF:Qs!==null?ot.current=xF:ot.current=AF;var b=d(h,g);if(N0){var k=0;do{if(N0=!1,M0=0,k>=_ee)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");k+=1,Ex=!1,ei=null,ti=null,i.updateQueue=null,Uf=-1,ot.current=OF,b=d(h,g)}while(N0)}ot.current=DS,i._debugHookTypes=Qs;var x=ei!==null&&ei.next!==null;if(Np=Se,Yn=null,ei=null,ti=null,Re=null,Qs=null,Uf=-1,o!==null&&(o.flags&Yo)!==(i.flags&Yo)&&(o.mode&ln)!==Ot&&c("Internal React error: Expected static flag was missing. Please notify the React team."),wS=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return b}function Sg(){var o=M0!==0;return M0=0,o}function cF(o,i,d){i.updateQueue=o.updateQueue,(i.mode&Ya)!==Ot?i.flags&=~(Lu|ia|Cr|Jt):i.flags&=~(Cr|Jt),o.lanes=hf(o.lanes,d)}function uF(){if(ot.current=DS,wS){for(var o=Yn.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}wS=!1}Np=Se,Yn=null,ei=null,ti=null,Qs=null,Uf=-1,Re=null,bF=!1,N0=!1,M0=0}function Gc(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ti===null?Yn.memoizedState=ti=o:ti=ti.next=o,ti}function Xs(){var o;if(ei===null){var i=Yn.alternate;i!==null?o=i.memoizedState:o=null}else o=ei.next;var d;if(ti===null?d=Yn.memoizedState:d=ti.next,d!==null)ti=d,d=ti.next,ei=o;else{if(o===null)throw new Error("Rendered more hooks than during the previous render.");ei=o;var h={memoizedState:ei.memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null};ti===null?Yn.memoizedState=ti=h:ti=ti.next=h}return ti}function dF(){return{lastEffect:null,stores:null}}function bx(o,i){return typeof i=="function"?i(o):i}function Sx(o,i,d){var h=Gc(),g;d!==void 0?g=d(i):g=i,h.memoizedState=h.baseState=g;var C={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:o,lastRenderedState:g};h.queue=C;var b=C.dispatch=See.bind(null,Yn,C);return[h.memoizedState,b]}function Tx(o,i,d){var h=Xs(),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=o;var C=ei,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&&c("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 L=b.next,X=C.baseState,Y=null,ue=null,fe=null,we=L;do{var at=we.lane;if(Ku(Np,at)){if(fe!==null){var Et={lane:En,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null};fe=fe.next=Et}if(we.hasEagerState)X=we.eagerState;else{var bn=we.action;X=o(X,bn)}}else{var kt={lane:at,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null};fe===null?(ue=fe=kt,Y=X):fe=fe.next=kt,Yn.lanes=Zt(Yn.lanes,at),J0(at)}we=we.next}while(we!==null&&we!==L);fe===null?Y=X:fe.next=ue,dt(X,h.memoizedState)||H0(),h.memoizedState=X,h.baseState=Y,h.baseQueue=fe,g.lastRenderedState=X}var mn=g.interleaved;if(mn!==null){var ie=mn;do{var be=ie.lane;Yn.lanes=Zt(Yn.lanes,be),J0(be),ie=ie.next}while(ie!==mn)}else b===null&&(g.lanes=Se);var ae=g.dispatch;return[h.memoizedState,ae]}function Rx(o,i,d){var h=Xs(),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=o;var C=g.dispatch,b=g.pending,k=h.memoizedState;if(b!==null){g.pending=null;var x=b.next,M=x;do{var L=M.action;k=o(k,L),M=M.next}while(M!==x);dt(k,h.memoizedState)||H0(),h.memoizedState=k,h.baseQueue===null&&(h.baseState=k),g.lastRenderedState=k}return[k,C]}function Koe(o,i,d){}function Goe(o,i,d){}function kx(o,i,d){var h=Yn,g=Gc(),C,b=Li();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(),Eg||C!==d()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),Eg=!0)}else{if(C=i(),!Eg){var k=i();dt(C,k)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Eg=!0)}var x=ZS();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cp(x,Np)||fF(h,i,C)}g.memoizedState=C;var M={value:C,getSnapshot:i};return g.queue=M,kS(pF.bind(null,h,M,o),[o]),h.flags|=Cr,P0(Jo|Ui,hF.bind(null,h,M,C,i),void 0,null),C}function bS(o,i,d){var h=Yn,g=Xs(),C=i();if(!Eg){var b=i();dt(C,b)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Eg=!0)}var k=g.memoizedState,x=!dt(k,C);x&&(g.memoizedState=C,H0());var M=g.queue;if(L0(pF.bind(null,h,M,o),[o]),M.getSnapshot!==i||x||ti!==null&&ti.memoizedState.tag&Jo){h.flags|=Cr,P0(Jo|Ui,hF.bind(null,h,M,C,i),void 0,null);var L=ZS();if(L===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cp(L,Np)||fF(h,i,C)}return C}function fF(o,i,d){o.flags|=ep;var h={getSnapshot:i,value:d},g=Yn.updateQueue;if(g===null)g=dF(),Yn.updateQueue=g,g.stores=[h];else{var C=g.stores;C===null?g.stores=[h]:C.push(h)}}function hF(o,i,d,h){i.value=d,i.getSnapshot=h,vF(i)&&mF(o)}function pF(o,i,d){var h=function(){vF(i)&&mF(o)};return d(h)}function vF(o){var i=o.getSnapshot,d=o.value;try{var h=i();return!dt(d,h)}catch{return!0}}function mF(o){var i=ns(o,Dt);i!==null&&ii(i,o,Dt,tr)}function SS(o){var i=Gc();typeof o=="function"&&(o=o()),i.memoizedState=i.baseState=o;var d={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:bx,lastRenderedState:o};i.queue=d;var h=d.dispatch=Tee.bind(null,Yn,d);return[i.memoizedState,h]}function Ax(o){return Tx(bx)}function xx(o){return Rx(bx)}function P0(o,i,d,h){var g={tag:o,create:i,destroy:d,deps:h,next:null},C=Yn.updateQueue;if(C===null)C=dF(),Yn.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 Ix(o){var i=Gc();{var d={current:o};return i.memoizedState=d,d}}function TS(o){var i=Xs();return i.memoizedState}function D0(o,i,d,h){var g=Gc(),C=h===void 0?null:h;Yn.flags|=o,g.memoizedState=P0(Jo|i,d,void 0,C)}function RS(o,i,d,h){var g=Xs(),C=h===void 0?null:h,b=void 0;if(ei!==null){var k=ei.memoizedState;if(b=k.destroy,C!==null){var x=k.deps;if(wx(C,x)){g.memoizedState=P0(i,d,b,C);return}}}Yn.flags|=o,g.memoizedState=P0(Jo|i,d,b,C)}function kS(o,i){return(Yn.mode&Ya)!==Ot?D0(Lu|Cr|xc,Ui,o,i):D0(Cr|xc,Ui,o,i)}function L0(o,i){return RS(Cr,Ui,o,i)}function Ox(o,i){return D0(Jt,Kc,o,i)}function AS(o,i){return RS(Jt,Kc,o,i)}function Nx(o,i){var d=Jt;return d|=oa,(Yn.mode&Ya)!==Ot&&(d|=ia),D0(d,Zo,o,i)}function xS(o,i){return RS(Jt,Zo,o,i)}function gF(o,i){if(typeof i=="function"){var d=i,h=o();return d(h),function(){d(null)}}else if(i!=null){var g=i;g.hasOwnProperty("current")||c("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=o();return g.current=C,function(){g.current=null}}}function Mx(o,i,d){typeof i!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var h=d!=null?d.concat([o]):null,g=Jt;return g|=oa,(Yn.mode&Ya)!==Ot&&(g|=ia),D0(g,Zo,gF.bind(null,i,o),h)}function IS(o,i,d){typeof i!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null");var h=d!=null?d.concat([o]):null;return RS(Jt,Zo,gF.bind(null,i,o),h)}function Eee(o,i){}var OS=Eee;function Px(o,i){var d=Gc(),h=i===void 0?null:i;return d.memoizedState=[o,h],o}function NS(o,i){var d=Xs(),h=i===void 0?null:i,g=d.memoizedState;if(g!==null&&h!==null){var C=g[1];if(wx(h,C))return g[0]}return d.memoizedState=[o,h],o}function Dx(o,i){var d=Gc(),h=i===void 0?null:i,g=o();return d.memoizedState=[g,h],g}function MS(o,i){var d=Xs(),h=i===void 0?null:i,g=d.memoizedState;if(g!==null&&h!==null){var C=g[1];if(wx(h,C))return g[0]}var b=o();return d.memoizedState=[b,h],b}function Lx(o){var i=Gc();return i.memoizedState=o,o}function yF(o){var i=Xs(),d=ei,h=d.memoizedState;return CF(i,h,o)}function _F(o){var i=Xs();if(ei===null)return i.memoizedState=o,o;var d=ei.memoizedState;return CF(i,d,o)}function CF(o,i,d){var h=!zk(Np);if(h){if(!dt(d,i)){var g=U_();Yn.lanes=Zt(Yn.lanes,g),J0(g),o.baseState=!0}return i}else return o.baseState&&(o.baseState=!1,H0()),o.memoizedState=d,d}function wee(o,i,d){var h=Xa();To(yi(h,Xo)),o(!0);var g=O0.transition;O0.transition={};var C=O0.transition;O0.transition._updatedFibers=new Set;try{o(!1),i()}finally{if(To(h),O0.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 Ux(){var o=SS(!1),i=o[0],d=o[1],h=wee.bind(null,d),g=Gc();return g.memoizedState=h,[i,h]}function EF(){var o=Ax(),i=o[0],d=Xs(),h=d.memoizedState;return[i,h]}function wF(){var o=xx(),i=o[0],d=Xs(),h=d.memoizedState;return[i,h]}var bF=!1;function bee(){return bF}function Fx(){var o=Gc(),i=ZS(),d=i.identifierPrefix,h;if(Li()){var g=UZ();h=":"+d+"R"+g;var C=M0++;C>0&&(h+="H"+C.toString(32)),h+=":"}else{var b=yee++;h=":"+d+"r"+b.toString(32)+":"}return o.memoizedState=h,h}function PS(){var o=Xs(),i=o.memoizedState;return i}function See(o,i,d){typeof arguments[3]=="function"&&c("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=zf(o),g={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(SF(o))TF(i,g);else{var C=zU(o,i,g,h);if(C!==null){var b=ka();ii(C,o,h,b),RF(C,i,h)}}kF(o,h)}function Tee(o,i,d){typeof arguments[3]=="function"&&c("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=zf(o),g={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(SF(o))TF(i,g);else{var C=o.alternate;if(o.lanes===Se&&(C===null||C.lanes===Se)){var b=i.lastRenderedReducer;if(b!==null){var k;k=ot.current,ot.current=jl;try{var x=i.lastRenderedState,M=b(x,d);if(g.hasEagerState=!0,g.eagerState=M,dt(M,x)){ree(o,i,g,h);return}}catch{}finally{ot.current=k}}}var L=zU(o,i,g,h);if(L!==null){var X=ka();ii(L,o,h,X),RF(L,i,h)}}kF(o,h)}function SF(o){var i=o.alternate;return o===Yn||i!==null&&i===Yn}function TF(o,i){N0=wS=!0;var d=o.pending;d===null?i.next=i:(i.next=d.next,d.next=i),o.pending=i}function RF(o,i,d){if(L_(d)){var h=i.lanes;h=F_(h,o.pendingLanes);var g=Zt(h,d);i.lanes=g,pf(o,g)}}function kF(o,i,d){Dc(o,i)}var DS={readContext:Ho,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:G},AF=null,xF=null,IF=null,OF=null,Wc=null,jl=null,LS=null;{var $x=function(){c("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().")},Vt=function(){c("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")};AF={readContext:function(o){return Ho(o)},useCallback:function(o,i){return Re="useCallback",Fn(),wg(i),Px(o,i)},useContext:function(o){return Re="useContext",Fn(),Ho(o)},useEffect:function(o,i){return Re="useEffect",Fn(),wg(i),kS(o,i)},useImperativeHandle:function(o,i,d){return Re="useImperativeHandle",Fn(),wg(d),Mx(o,i,d)},useInsertionEffect:function(o,i){return Re="useInsertionEffect",Fn(),wg(i),Ox(o,i)},useLayoutEffect:function(o,i){return Re="useLayoutEffect",Fn(),wg(i),Nx(o,i)},useMemo:function(o,i){Re="useMemo",Fn(),wg(i);var d=ot.current;ot.current=Wc;try{return Dx(o,i)}finally{ot.current=d}},useReducer:function(o,i,d){Re="useReducer",Fn();var h=ot.current;ot.current=Wc;try{return Sx(o,i,d)}finally{ot.current=h}},useRef:function(o){return Re="useRef",Fn(),Ix(o)},useState:function(o){Re="useState",Fn();var i=ot.current;ot.current=Wc;try{return SS(o)}finally{ot.current=i}},useDebugValue:function(o,i){return Re="useDebugValue",Fn(),void 0},useDeferredValue:function(o){return Re="useDeferredValue",Fn(),Lx(o)},useTransition:function(){return Re="useTransition",Fn(),Ux()},useMutableSource:function(o,i,d){return Re="useMutableSource",Fn(),void 0},useSyncExternalStore:function(o,i,d){return Re="useSyncExternalStore",Fn(),kx(o,i,d)},useId:function(){return Re="useId",Fn(),Fx()},unstable_isNewReconciler:G},xF={readContext:function(o){return Ho(o)},useCallback:function(o,i){return Re="useCallback",Qe(),Px(o,i)},useContext:function(o){return Re="useContext",Qe(),Ho(o)},useEffect:function(o,i){return Re="useEffect",Qe(),kS(o,i)},useImperativeHandle:function(o,i,d){return Re="useImperativeHandle",Qe(),Mx(o,i,d)},useInsertionEffect:function(o,i){return Re="useInsertionEffect",Qe(),Ox(o,i)},useLayoutEffect:function(o,i){return Re="useLayoutEffect",Qe(),Nx(o,i)},useMemo:function(o,i){Re="useMemo",Qe();var d=ot.current;ot.current=Wc;try{return Dx(o,i)}finally{ot.current=d}},useReducer:function(o,i,d){Re="useReducer",Qe();var h=ot.current;ot.current=Wc;try{return Sx(o,i,d)}finally{ot.current=h}},useRef:function(o){return Re="useRef",Qe(),Ix(o)},useState:function(o){Re="useState",Qe();var i=ot.current;ot.current=Wc;try{return SS(o)}finally{ot.current=i}},useDebugValue:function(o,i){return Re="useDebugValue",Qe(),void 0},useDeferredValue:function(o){return Re="useDeferredValue",Qe(),Lx(o)},useTransition:function(){return Re="useTransition",Qe(),Ux()},useMutableSource:function(o,i,d){return Re="useMutableSource",Qe(),void 0},useSyncExternalStore:function(o,i,d){return Re="useSyncExternalStore",Qe(),kx(o,i,d)},useId:function(){return Re="useId",Qe(),Fx()},unstable_isNewReconciler:G},IF={readContext:function(o){return Ho(o)},useCallback:function(o,i){return Re="useCallback",Qe(),NS(o,i)},useContext:function(o){return Re="useContext",Qe(),Ho(o)},useEffect:function(o,i){return Re="useEffect",Qe(),L0(o,i)},useImperativeHandle:function(o,i,d){return Re="useImperativeHandle",Qe(),IS(o,i,d)},useInsertionEffect:function(o,i){return Re="useInsertionEffect",Qe(),AS(o,i)},useLayoutEffect:function(o,i){return Re="useLayoutEffect",Qe(),xS(o,i)},useMemo:function(o,i){Re="useMemo",Qe();var d=ot.current;ot.current=jl;try{return MS(o,i)}finally{ot.current=d}},useReducer:function(o,i,d){Re="useReducer",Qe();var h=ot.current;ot.current=jl;try{return Tx(o,i,d)}finally{ot.current=h}},useRef:function(o){return Re="useRef",Qe(),TS()},useState:function(o){Re="useState",Qe();var i=ot.current;ot.current=jl;try{return Ax(o)}finally{ot.current=i}},useDebugValue:function(o,i){return Re="useDebugValue",Qe(),OS()},useDeferredValue:function(o){return Re="useDeferredValue",Qe(),yF(o)},useTransition:function(){return Re="useTransition",Qe(),EF()},useMutableSource:function(o,i,d){return Re="useMutableSource",Qe(),void 0},useSyncExternalStore:function(o,i,d){return Re="useSyncExternalStore",Qe(),bS(o,i)},useId:function(){return Re="useId",Qe(),PS()},unstable_isNewReconciler:G},OF={readContext:function(o){return Ho(o)},useCallback:function(o,i){return Re="useCallback",Qe(),NS(o,i)},useContext:function(o){return Re="useContext",Qe(),Ho(o)},useEffect:function(o,i){return Re="useEffect",Qe(),L0(o,i)},useImperativeHandle:function(o,i,d){return Re="useImperativeHandle",Qe(),IS(o,i,d)},useInsertionEffect:function(o,i){return Re="useInsertionEffect",Qe(),AS(o,i)},useLayoutEffect:function(o,i){return Re="useLayoutEffect",Qe(),xS(o,i)},useMemo:function(o,i){Re="useMemo",Qe();var d=ot.current;ot.current=LS;try{return MS(o,i)}finally{ot.current=d}},useReducer:function(o,i,d){Re="useReducer",Qe();var h=ot.current;ot.current=LS;try{return Rx(o,i,d)}finally{ot.current=h}},useRef:function(o){return Re="useRef",Qe(),TS()},useState:function(o){Re="useState",Qe();var i=ot.current;ot.current=LS;try{return xx(o)}finally{ot.current=i}},useDebugValue:function(o,i){return Re="useDebugValue",Qe(),OS()},useDeferredValue:function(o){return Re="useDeferredValue",Qe(),_F(o)},useTransition:function(){return Re="useTransition",Qe(),wF()},useMutableSource:function(o,i,d){return Re="useMutableSource",Qe(),void 0},useSyncExternalStore:function(o,i,d){return Re="useSyncExternalStore",Qe(),bS(o,i)},useId:function(){return Re="useId",Qe(),PS()},unstable_isNewReconciler:G},Wc={readContext:function(o){return $x(),Ho(o)},useCallback:function(o,i){return Re="useCallback",Vt(),Fn(),Px(o,i)},useContext:function(o){return Re="useContext",Vt(),Fn(),Ho(o)},useEffect:function(o,i){return Re="useEffect",Vt(),Fn(),kS(o,i)},useImperativeHandle:function(o,i,d){return Re="useImperativeHandle",Vt(),Fn(),Mx(o,i,d)},useInsertionEffect:function(o,i){return Re="useInsertionEffect",Vt(),Fn(),Ox(o,i)},useLayoutEffect:function(o,i){return Re="useLayoutEffect",Vt(),Fn(),Nx(o,i)},useMemo:function(o,i){Re="useMemo",Vt(),Fn();var d=ot.current;ot.current=Wc;try{return Dx(o,i)}finally{ot.current=d}},useReducer:function(o,i,d){Re="useReducer",Vt(),Fn();var h=ot.current;ot.current=Wc;try{return Sx(o,i,d)}finally{ot.current=h}},useRef:function(o){return Re="useRef",Vt(),Fn(),Ix(o)},useState:function(o){Re="useState",Vt(),Fn();var i=ot.current;ot.current=Wc;try{return SS(o)}finally{ot.current=i}},useDebugValue:function(o,i){return Re="useDebugValue",Vt(),Fn(),void 0},useDeferredValue:function(o){return Re="useDeferredValue",Vt(),Fn(),Lx(o)},useTransition:function(){return Re="useTransition",Vt(),Fn(),Ux()},useMutableSource:function(o,i,d){return Re="useMutableSource",Vt(),Fn(),void 0},useSyncExternalStore:function(o,i,d){return Re="useSyncExternalStore",Vt(),Fn(),kx(o,i,d)},useId:function(){return Re="useId",Vt(),Fn(),Fx()},unstable_isNewReconciler:G},jl={readContext:function(o){return $x(),Ho(o)},useCallback:function(o,i){return Re="useCallback",Vt(),Qe(),NS(o,i)},useContext:function(o){return Re="useContext",Vt(),Qe(),Ho(o)},useEffect:function(o,i){return Re="useEffect",Vt(),Qe(),L0(o,i)},useImperativeHandle:function(o,i,d){return Re="useImperativeHandle",Vt(),Qe(),IS(o,i,d)},useInsertionEffect:function(o,i){return Re="useInsertionEffect",Vt(),Qe(),AS(o,i)},useLayoutEffect:function(o,i){return Re="useLayoutEffect",Vt(),Qe(),xS(o,i)},useMemo:function(o,i){Re="useMemo",Vt(),Qe();var d=ot.current;ot.current=jl;try{return MS(o,i)}finally{ot.current=d}},useReducer:function(o,i,d){Re="useReducer",Vt(),Qe();var h=ot.current;ot.current=jl;try{return Tx(o,i,d)}finally{ot.current=h}},useRef:function(o){return Re="useRef",Vt(),Qe(),TS()},useState:function(o){Re="useState",Vt(),Qe();var i=ot.current;ot.current=jl;try{return Ax(o)}finally{ot.current=i}},useDebugValue:function(o,i){return Re="useDebugValue",Vt(),Qe(),OS()},useDeferredValue:function(o){return Re="useDeferredValue",Vt(),Qe(),yF(o)},useTransition:function(){return Re="useTransition",Vt(),Qe(),EF()},useMutableSource:function(o,i,d){return Re="useMutableSource",Vt(),Qe(),void 0},useSyncExternalStore:function(o,i,d){return Re="useSyncExternalStore",Vt(),Qe(),bS(o,i)},useId:function(){return Re="useId",Vt(),Qe(),PS()},unstable_isNewReconciler:G},LS={readContext:function(o){return $x(),Ho(o)},useCallback:function(o,i){return Re="useCallback",Vt(),Qe(),NS(o,i)},useContext:function(o){return Re="useContext",Vt(),Qe(),Ho(o)},useEffect:function(o,i){return Re="useEffect",Vt(),Qe(),L0(o,i)},useImperativeHandle:function(o,i,d){return Re="useImperativeHandle",Vt(),Qe(),IS(o,i,d)},useInsertionEffect:function(o,i){return Re="useInsertionEffect",Vt(),Qe(),AS(o,i)},useLayoutEffect:function(o,i){return Re="useLayoutEffect",Vt(),Qe(),xS(o,i)},useMemo:function(o,i){Re="useMemo",Vt(),Qe();var d=ot.current;ot.current=jl;try{return MS(o,i)}finally{ot.current=d}},useReducer:function(o,i,d){Re="useReducer",Vt(),Qe();var h=ot.current;ot.current=jl;try{return Rx(o,i,d)}finally{ot.current=h}},useRef:function(o){return Re="useRef",Vt(),Qe(),TS()},useState:function(o){Re="useState",Vt(),Qe();var i=ot.current;ot.current=jl;try{return xx(o)}finally{ot.current=i}},useDebugValue:function(o,i){return Re="useDebugValue",Vt(),Qe(),OS()},useDeferredValue:function(o){return Re="useDeferredValue",Vt(),Qe(),_F(o)},useTransition:function(){return Re="useTransition",Vt(),Qe(),wF()},useMutableSource:function(o,i,d){return Re="useMutableSource",Vt(),Qe(),void 0},useSyncExternalStore:function(o,i,d){return Re="useSyncExternalStore",Vt(),Qe(),bS(o,i)},useId:function(){return Re="useId",Vt(),Qe(),PS()},unstable_isNewReconciler:G}}var Ff=e.unstable_now,NF=0,US=-1,U0=-1,FS=-1,Hx=!1,$S=!1;function MF(){return Hx}function Ree(){$S=!0}function kee(){Hx=!1,$S=!1}function Aee(){Hx=$S,$S=!1}function PF(){return NF}function DF(){NF=Ff()}function jx(o){U0=Ff(),o.actualStartTime<0&&(o.actualStartTime=Ff())}function LF(o){U0=-1}function HS(o,i){if(U0>=0){var d=Ff()-U0;o.actualDuration+=d,i&&(o.selfBaseDuration=d),U0=-1}}function Yc(o){if(US>=0){var i=Ff()-US;US=-1;for(var d=o.return;d!==null;){switch(d.tag){case E:var h=d.stateNode;h.effectDuration+=i;return;case U:var g=d.stateNode;g.effectDuration+=i;return}d=d.return}}}function zx(o){if(FS>=0){var i=Ff()-FS;FS=-1;for(var d=o.return;d!==null;){switch(d.tag){case E:var h=d.stateNode;h!==null&&(h.passiveEffectDuration+=i);return;case U:var g=d.stateNode;g!==null&&(g.passiveEffectDuration+=i);return}d=d.return}}}function Qc(){US=Ff()}function Bx(){FS=Ff()}function qx(o){for(var i=o.child;i;)o.actualDuration+=i.actualDuration,i=i.sibling}function Mp(o,i){return{value:o,source:i,stack:qd(i),digest:null}}function Vx(o,i,d){return{value:o,source:null,stack:d??null,digest:i??null}}function xee(o,i){return!0}function Kx(o,i){try{var d=xee(o,i);if(d===!1)return;var h=i.value,g=i.source,C=i.stack,b=C!==null?C:"";if(h!=null&&h._suppressLogging){if(o.tag===m)return;console.error(h)}var k=g?qt(g):null,x=k?"The above error occurred in the <"+k+"> component:":"The above error occurred in one of your React components:",M;if(o.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 L=qt(o)||"Anonymous";M="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+L+".")}var X=x+`
187
+ `+b+`
188
+
189
+ `+(""+M);console.error(X)}catch(Y){setTimeout(function(){throw Y})}}var Iee=typeof WeakMap=="function"?WeakMap:Map;function UF(o,i,d){var h=ld(tr,d);h.tag=KA,h.payload={element:null};var g=i.value;return h.callback=function(){wne(g),Kx(o,i)},h}function Gx(o,i,d){var h=ld(tr,d);h.tag=KA;var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var C=i.value;h.payload=function(){return g(C)},h.callback=function(){W$(o),Kx(o,i)}}var b=o.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(h.callback=function(){W$(o),Kx(o,i),typeof g!="function"&&Cne(this);var x=i.value,M=i.stack;this.componentDidCatch(x,{componentStack:M!==null?M:""}),typeof g!="function"&&(ua(o.lanes,Dt)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",qt(o)||"Unknown"))}),h}function FF(o,i,d){var h=o.pingCache,g;if(h===null?(h=o.pingCache=new Iee,g=new Set,h.set(i,g)):(g=h.get(i),g===void 0&&(g=new Set,h.set(i,g))),!g.has(d)){g.add(d);var C=bne.bind(null,o,i,d);Qo&&Z0(o,d),i.then(C,C)}}function Oee(o,i,d,h){var g=o.updateQueue;if(g===null){var C=new Set;C.add(d),o.updateQueue=C}else g.add(d)}function Nee(o,i){var d=o.tag;if((o.mode&ln)===Ot&&(d===p||d===q||d===Z)){var h=o.alternate;h?(o.updateQueue=h.updateQueue,o.memoizedState=h.memoizedState,o.lanes=h.lanes):(o.updateQueue=null,o.memoizedState=null)}}function $F(o){var i=o;do{if(i.tag===V&&mee(i))return i;i=i.return}while(i!==null);return null}function HF(o,i,d,h,g){if((o.mode&ln)===Ot){if(o===i)o.flags|=Do;else{if(o.flags|=jt,d.flags|=tp,d.flags&=~(cm|_a),d.tag===m){var C=d.alternate;if(C===null)d.tag=Ze;else{var b=ld(tr,Dt);b.tag=uS,Pf(d,b,Dt)}}d.lanes=Zt(d.lanes,Dt)}return o}return o.flags|=Do,o.lanes=g,o}function Mee(o,i,d,h,g){if(d.flags|=_a,Qo&&Z0(o,g),h!==null&&typeof h=="object"&&typeof h.then=="function"){var C=h;Nee(d),Li()&&d.mode&ln&&IU();var b=$F(i);if(b!==null){b.flags&=~$r,HF(b,i,d,o,g),b.mode&ln&&FF(o,C,g),Oee(b,o,C);return}else{if(!ff(g)){FF(o,C,g),RI();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(Li()&&d.mode&ln){IU();var x=$F(i);if(x!==null){(x.flags&Do)===Rt&&(x.flags|=$r),HF(x,i,d,o,g),$A(Mp(h,d));return}}h=Mp(h,d),fne(h);var M=i;do{switch(M.tag){case E:{var L=h;M.flags|=Do;var X=So(g);M.lanes=Zt(M.lanes,X);var Y=UF(M,L,X);YA(M,Y);return}case m:var ue=h,fe=M.type,we=M.stateNode;if((M.flags&jt)===Rt&&(typeof fe.getDerivedStateFromError=="function"||we!==null&&typeof we.componentDidCatch=="function"&&!$$(we))){M.flags|=Do;var at=So(g);M.lanes=Zt(M.lanes,at);var kt=Gx(M,ue,at);YA(M,kt);return}break}M=M.return}while(M!==null)}function Pee(){return null}var F0=t.ReactCurrentOwner,zl=!1,Wx,$0,Yx,Qx,Xx,Pp,Jx,jS;Wx={},$0={},Yx={},Qx={},Xx={},Pp=!1,Jx={},jS={};function Ta(o,i,d,h){o===null?i.child=oF(i,null,d,h):i.child=gg(i,o.child,d,h)}function Dee(o,i,d,h){i.child=gg(i,o.child,null,h),i.child=gg(i,null,d,h)}function jF(o,i,d,h,g){if(i.type!==i.elementType){var C=d.propTypes;C&&Ll(C,h,"prop",Tn(d))}var b=d.render,k=i.ref,x,M;mg(i,g),Pc(i);{if(F0.current=i,ta(!0),x=bg(o,i,b,h,k,g),M=Sg(),i.mode&kr){bo(!0);try{x=bg(o,i,b,h,k,g),M=Sg()}finally{bo(!1)}}ta(!1)}return Uu(),o!==null&&!zl?(cF(o,i,g),cd(o,i,g)):(Li()&&M&&MA(i),i.flags|=kc,Ta(o,i,x,g),i.child)}function zF(o,i,d,h,g){if(o===null){var C=d.type;if(Hne(C)&&d.compare===null&&d.defaultProps===void 0){var b=C;return b=Ng(C),i.tag=Z,i.type=b,tI(i,C),BF(o,i,b,h,g)}{var k=C.propTypes;k&&Ll(k,h,"prop",Tn(C))}var x=UI(d.type,null,h,i,i.mode,g);return x.ref=i.ref,x.return=i,i.child=x,x}{var M=d.type,L=M.propTypes;L&&Ll(L,h,"prop",Tn(M))}var X=o.child,Y=sI(o,g);if(!Y){var ue=X.memoizedProps,fe=d.compare;if(fe=fe!==null?fe:St,fe(ue,h)&&o.ref===i.ref)return cd(o,i,g)}i.flags|=kc;var we=$p(X,h);return we.ref=i.ref,we.return=i,i.child=we,we}function BF(o,i,d,h,g){if(i.type!==i.elementType){var C=i.elementType;if(C.$$typeof===bt){var b=C,k=b._payload,x=b._init;try{C=x(k)}catch{C=null}var M=C&&C.propTypes;M&&Ll(M,h,"prop",Tn(C))}}if(o!==null){var L=o.memoizedProps;if(St(L,h)&&o.ref===i.ref&&i.type===o.type)if(zl=!1,i.pendingProps=h=L,sI(o,g))(o.flags&tp)!==Rt&&(zl=!0);else return i.lanes=o.lanes,cd(o,i,g)}return Zx(o,i,d,h,g)}function qF(o,i,d){var h=i.pendingProps,g=h.children,C=o!==null?o.memoizedState:null;if(h.mode==="hidden"||$)if((i.mode&ln)===Ot){var b={baseLanes:Se,cachePool:null,transitions:null};i.memoizedState=b,eT(i,d)}else if(ua(d,ca)){var X={baseLanes:Se,cachePool:null,transitions:null};i.memoizedState=X;var Y=C!==null?C.baseLanes:d;eT(i,Y)}else{var k=null,x;if(C!==null){var M=C.baseLanes;x=Zt(M,d)}else x=d;i.lanes=i.childLanes=ca;var L={baseLanes:x,cachePool:k,transitions:null};return i.memoizedState=L,i.updateQueue=null,eT(i,x),null}else{var ue;C!==null?(ue=Zt(C.baseLanes,d),i.memoizedState=null):ue=d,eT(i,ue)}return Ta(o,i,g,d),i.child}function Lee(o,i,d){var h=i.pendingProps;return Ta(o,i,h,d),i.child}function Uee(o,i,d){var h=i.pendingProps.children;return Ta(o,i,h,d),i.child}function Fee(o,i,d){{i.flags|=Jt;{var h=i.stateNode;h.effectDuration=0,h.passiveEffectDuration=0}}var g=i.pendingProps,C=g.children;return Ta(o,i,C,d),i.child}function VF(o,i){var d=i.ref;(o===null&&d!==null||o!==null&&o.ref!==d)&&(i.flags|=ra,i.flags|=E_)}function Zx(o,i,d,h,g){if(i.type!==i.elementType){var C=d.propTypes;C&&Ll(C,h,"prop",Tn(d))}var b;{var k=ug(i,d,!0);b=dg(i,k)}var x,M;mg(i,g),Pc(i);{if(F0.current=i,ta(!0),x=bg(o,i,d,h,b,g),M=Sg(),i.mode&kr){bo(!0);try{x=bg(o,i,d,h,b,g),M=Sg()}finally{bo(!1)}}ta(!1)}return Uu(),o!==null&&!zl?(cF(o,i,g),cd(o,i,g)):(Li()&&M&&MA(i),i.flags|=kc,Ta(o,i,x,g),i.child)}function KF(o,i,d,h,g){{switch(tre(i)){case!1:{var C=i.stateNode,b=i.type,k=new b(i.memoizedProps,C.context),x=k.state;C.updater.enqueueSetState(C,x,null);break}case!0:{i.flags|=jt,i.flags|=Do;var M=new Error("Simulated error coming from DevTools"),L=So(g);i.lanes=Zt(i.lanes,L);var X=Gx(i,Mp(M,i),L);YA(i,X);break}}if(i.type!==i.elementType){var Y=d.propTypes;Y&&Ll(Y,h,"prop",Tn(d))}}var ue;Vc(d)?(ue=!0,Zb(i)):ue=!1,mg(i,g);var fe=i.stateNode,we;fe===null?(BS(o,i),ZU(i,d,h),sx(i,d,h,g),we=!0):o===null?we=uee(i,d,h,g):we=dee(o,i,d,h,g);var at=eI(o,i,d,we,ue,g);{var kt=i.stateNode;we&&kt.props!==h&&(Pp||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",qt(i)||"a component"),Pp=!0)}return at}function eI(o,i,d,h,g,C){VF(o,i);var b=(i.flags&jt)!==Rt;if(!h&&!b)return g&&RU(i,d,!1),cd(o,i,C);var k=i.stateNode;F0.current=i;var x;if(b&&typeof d.getDerivedStateFromError!="function")x=null,LF();else{Pc(i);{if(ta(!0),x=k.render(),i.mode&kr){bo(!0);try{k.render()}finally{bo(!1)}}ta(!1)}Uu()}return i.flags|=kc,o!==null&&b?Dee(o,i,x,C):Ta(o,i,x,C),i.memoizedState=k.state,g&&RU(i,d,!0),i.child}function GF(o){var i=o.stateNode;i.pendingContext?SU(o,i.pendingContext,i.pendingContext!==i.context):i.context&&SU(o,i.context,!1),hx(o,i.containerInfo)}function $ee(o,i,d){if(GF(i),o===null)throw new Error("Should have a current fiber. This is a bug in React.");var h=i.pendingProps,g=i.memoizedState,C=g.element;VU(o,i),pS(i,h,null,d);var b=i.memoizedState;i.stateNode;var k=b.element;if(g.isDehydrated){var x={element:k,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},M=i.updateQueue;if(M.baseState=x,i.memoizedState=x,i.flags&$r){var L=Mp(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."),i);return WF(o,i,k,d,L)}else if(k!==C){var X=Mp(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i);return WF(o,i,k,d,X)}else{BZ(i);var Y=oF(i,null,k,d);i.child=Y;for(var ue=Y;ue;)ue.flags=ue.flags&~ur|Ka,ue=ue.sibling}}else{if(pg(),k===C)return cd(o,i,d);Ta(o,i,k,d)}return i.child}function WF(o,i,d,h,g){return pg(),$A(g),i.flags|=$r,Ta(o,i,d,h),i.child}function Hee(o,i,d){aF(i),o===null&&FA(i);var h=i.type,g=i.pendingProps,C=o!==null?o.memoizedProps:null,b=g.children,k=_A(h,g);return k?b=null:C!==null&&_A(h,C)&&(i.flags|=Un),VF(o,i),Ta(o,i,b,d),i.child}function jee(o,i){return o===null&&FA(i),null}function zee(o,i,d,h){BS(o,i);var g=i.pendingProps,C=d,b=C._payload,k=C._init,x=k(b);i.type=x;var M=i.tag=jne(x),L=$l(x,g),X;switch(M){case p:return tI(i,x),i.type=x=Ng(x),X=Zx(null,i,x,L,h),X;case m:return i.type=x=OI(x),X=KF(null,i,x,L,h),X;case q:return i.type=x=NI(x),X=jF(null,i,x,L,h),X;case te:{if(i.type!==i.elementType){var Y=x.propTypes;Y&&Ll(Y,L,"prop",Tn(x))}return X=zF(null,i,x,$l(x.type,L),h),X}}var ue="";throw x!==null&&typeof x=="object"&&x.$$typeof===bt&&(ue=" 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."+ue))}function Bee(o,i,d,h,g){BS(o,i),i.tag=m;var C;return Vc(d)?(C=!0,Zb(i)):C=!1,mg(i,g),ZU(i,d,h),sx(i,d,h,g),eI(null,i,d,!0,C,g)}function qee(o,i,d,h){BS(o,i);var g=i.pendingProps,C;{var b=ug(i,d,!1);C=dg(i,b)}mg(i,h);var k,x;Pc(i);{if(d.prototype&&typeof d.prototype.render=="function"){var M=Tn(d)||"Unknown";Wx[M]||(c("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),Wx[M]=!0)}i.mode&kr&&Fl.recordLegacyContextWarning(i,null),ta(!0),F0.current=i,k=bg(null,i,d,g,C,h),x=Sg(),ta(!1)}if(Uu(),i.flags|=kc,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0){var L=Tn(d)||"Unknown";$0[L]||(c("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.",L,L,L),$0[L]=!0)}if(typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0){{var X=Tn(d)||"Unknown";$0[X]||(c("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.",X,X,X),$0[X]=!0)}i.tag=m,i.memoizedState=null,i.updateQueue=null;var Y=!1;return Vc(d)?(Y=!0,Zb(i)):Y=!1,i.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,WA(i),JU(i,k),sx(i,d,g,h),eI(null,i,d,!0,Y,h)}else{if(i.tag=p,i.mode&kr){bo(!0);try{k=bg(null,i,d,g,C,h),x=Sg()}finally{bo(!1)}}return Li()&&x&&MA(i),Ta(null,i,k,h),tI(i,d),i.child}}function tI(o,i){{if(i&&i.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",i.displayName||i.name||"Component"),o.ref!==null){var d="",h=Mi();h&&(d+=`
190
+
191
+ Check the render method of \``+h+"`.");var g=h||"",C=o._debugSource;C&&(g=C.fileName+":"+C.lineNumber),Xx[g]||(Xx[g]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",d))}if(typeof i.getDerivedStateFromProps=="function"){var b=Tn(i)||"Unknown";Qx[b]||(c("%s: Function components do not support getDerivedStateFromProps.",b),Qx[b]=!0)}if(typeof i.contextType=="object"&&i.contextType!==null){var k=Tn(i)||"Unknown";Yx[k]||(c("%s: Function components do not support contextType.",k),Yx[k]=!0)}}}var nI={dehydrated:null,treeContext:null,retryLane:En};function rI(o){return{baseLanes:o,cachePool:Pee(),transitions:null}}function Vee(o,i){var d=null;return{baseLanes:Zt(o.baseLanes,i),cachePool:d,transitions:o.transitions}}function Kee(o,i,d,h){if(i!==null){var g=i.memoizedState;if(g===null)return!1}return mx(o,I0)}function Gee(o,i){return hf(o.childLanes,i)}function YF(o,i,d){var h=i.pendingProps;nre(i)&&(i.flags|=jt);var g=Hl.current,C=!1,b=(i.flags&jt)!==Rt;if(b||Kee(g,o)?(C=!0,i.flags&=~jt):(o===null||o.memoizedState!==null)&&(g=vee(g,lF)),g=_g(g),Lf(i,g),o===null){FA(i);var k=i.memoizedState;if(k!==null){var x=k.dehydrated;if(x!==null)return Jee(i,x)}var M=h.children,L=h.fallback;if(C){var X=Wee(i,M,L,d),Y=i.child;return Y.memoizedState=rI(d),i.memoizedState=nI,X}else return oI(i,M)}else{var ue=o.memoizedState;if(ue!==null){var fe=ue.dehydrated;if(fe!==null)return Zee(o,i,b,h,fe,ue,d)}if(C){var we=h.fallback,at=h.children,kt=Qee(o,i,at,we,d),Et=i.child,bn=o.child.memoizedState;return Et.memoizedState=bn===null?rI(d):Vee(bn,d),Et.childLanes=Gee(o,d),i.memoizedState=nI,kt}else{var mn=h.children,ie=Yee(o,i,mn,d);return i.memoizedState=null,ie}}}function oI(o,i,d){var h=o.mode,g={mode:"visible",children:i},C=iI(g,h);return C.return=o,o.child=C,C}function Wee(o,i,d,h){var g=o.mode,C=o.child,b={mode:"hidden",children:i},k,x;return(g&ln)===Ot&&C!==null?(k=C,k.childLanes=Se,k.pendingProps=b,o.mode&Pt&&(k.actualDuration=0,k.actualStartTime=-1,k.selfBaseDuration=0,k.treeBaseDuration=0),x=qf(d,g,h,null)):(k=iI(b,g),x=qf(d,g,h,null)),k.return=o,x.return=o,k.sibling=x,o.child=k,x}function iI(o,i,d){return Q$(o,i,Se,null)}function QF(o,i){return $p(o,i)}function Yee(o,i,d,h){var g=o.child,C=g.sibling,b=QF(g,{mode:"visible",children:d});if((i.mode&ln)===Ot&&(b.lanes=h),b.return=i,b.sibling=null,C!==null){var k=i.deletions;k===null?(i.deletions=[C],i.flags|=Mn):k.push(C)}return i.child=b,b}function Qee(o,i,d,h,g){var C=i.mode,b=o.child,k=b.sibling,x={mode:"hidden",children:d},M;if((C&ln)===Ot&&i.child!==b){var L=i.child;M=L,M.childLanes=Se,M.pendingProps=x,i.mode&Pt&&(M.actualDuration=0,M.actualStartTime=-1,M.selfBaseDuration=b.selfBaseDuration,M.treeBaseDuration=b.treeBaseDuration),i.deletions=null}else M=QF(b,x),M.subtreeFlags=b.subtreeFlags&Yo;var X;return k!==null?X=$p(k,h):(X=qf(h,C,g,null),X.flags|=ur),X.return=i,M.return=i,M.sibling=X,i.child=M,X}function zS(o,i,d,h){h!==null&&$A(h),gg(i,o.child,null,d);var g=i.pendingProps,C=g.children,b=oI(i,C);return b.flags|=ur,i.memoizedState=null,b}function Xee(o,i,d,h,g){var C=i.mode,b={mode:"visible",children:d},k=iI(b,C),x=qf(h,C,g,null);return x.flags|=ur,k.return=i,x.return=i,k.sibling=x,i.child=k,(i.mode&ln)!==Ot&&gg(i,o.child,null,g),x}function Jee(o,i,d){return(o.mode&ln)===Ot?(c("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."),o.lanes=Dt):bA(i)?o.lanes=Hu:o.lanes=ca,null}function Zee(o,i,d,h,g,C,b){if(d)if(i.flags&$r){i.flags&=~$r;var ie=Vx(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return zS(o,i,b,ie)}else{if(i.memoizedState!==null)return i.child=o.child,i.flags|=jt,null;var be=h.children,ae=h.fallback,De=Xee(o,i,be,ae,b),st=i.child;return st.memoizedState=rI(b),i.memoizedState=nI,De}else{if(jZ(),(i.mode&ln)===Ot)return zS(o,i,b,null);if(bA(g)){var k,x,M;{var L=oZ(g);k=L.digest,x=L.message,M=L.stack}var X;x?X=new Error(x):X=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var Y=Vx(X,k,M);return zS(o,i,b,Y)}var ue=ua(b,o.childLanes);if(zl||ue){var fe=ZS();if(fe!==null){var we=qk(fe,b);if(we!==En&&we!==C.retryLane){C.retryLane=we;var at=tr;ns(o,we),ii(fe,o,we,at)}}RI();var kt=Vx(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 zS(o,i,b,kt)}else if(yU(g)){i.flags|=jt,i.child=o.child;var Et=Sne.bind(null,o);return iZ(g,Et),null}else{qZ(i,g,C.treeContext);var bn=h.children,mn=oI(i,bn);return mn.flags|=Ka,mn}}}function XF(o,i,d){o.lanes=Zt(o.lanes,i);var h=o.alternate;h!==null&&(h.lanes=Zt(h.lanes,i)),qA(o.return,i,d)}function ete(o,i,d){for(var h=i;h!==null;){if(h.tag===V){var g=h.memoizedState;g!==null&&XF(h,d,o)}else if(h.tag===Me)XF(h,d,o);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===o)return;for(;h.sibling===null;){if(h.return===null||h.return===o)return;h=h.return}h.sibling.return=h.return,h=h.sibling}}function tte(o){for(var i=o,d=null;i!==null;){var h=i.alternate;h!==null&&ES(h)===null&&(d=i),i=i.sibling}return d}function nte(o){if(o!==void 0&&o!=="forwards"&&o!=="backwards"&&o!=="together"&&!Jx[o])if(Jx[o]=!0,typeof o=="string")switch(o.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',o,o.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',o,o.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',o);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',o)}function rte(o,i){o!==void 0&&!jS[o]&&(o!=="collapsed"&&o!=="hidden"?(jS[o]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):i!=="forwards"&&i!=="backwards"&&(jS[o]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)))}function JF(o,i){{var d=yn(o),h=!d&&typeof ms(o)=="function";if(d||h){var g=d?"array":"iterable";return c("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,i,g),!1}}return!0}function ote(o,i){if((i==="forwards"||i==="backwards")&&o!==void 0&&o!==null&&o!==!1)if(yn(o)){for(var d=0;d<o.length;d++)if(!JF(o[d],d))return}else{var h=ms(o);if(typeof h=="function"){var g=h.call(o);if(g)for(var C=g.next(),b=0;!C.done;C=g.next()){if(!JF(C.value,b))return;b++}}else c('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?',i)}}function aI(o,i,d,h,g){var C=o.memoizedState;C===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:g}:(C.isBackwards=i,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=d,C.tailMode=g)}function ZF(o,i,d){var h=i.pendingProps,g=h.revealOrder,C=h.tail,b=h.children;nte(g),rte(C,g),ote(b,g),Ta(o,i,b,d);var k=Hl.current,x=mx(k,I0);if(x)k=gx(k,I0),i.flags|=jt;else{var M=o!==null&&(o.flags&jt)!==Rt;M&&ete(i,i.child,d),k=_g(k)}if(Lf(i,k),(i.mode&ln)===Ot)i.memoizedState=null;else switch(g){case"forwards":{var L=tte(i.child),X;L===null?(X=i.child,i.child=null):(X=L.sibling,L.sibling=null),aI(i,!1,X,L,C);break}case"backwards":{var Y=null,ue=i.child;for(i.child=null;ue!==null;){var fe=ue.alternate;if(fe!==null&&ES(fe)===null){i.child=ue;break}var we=ue.sibling;ue.sibling=Y,Y=ue,ue=we}aI(i,!0,Y,null,C);break}case"together":{aI(i,!1,null,null,void 0);break}default:i.memoizedState=null}return i.child}function ite(o,i,d){hx(i,i.stateNode.containerInfo);var h=i.pendingProps;return o===null?i.child=gg(i,null,h,d):Ta(o,i,h,d),i.child}var e$=!1;function ate(o,i,d){var h=i.type,g=h._context,C=i.pendingProps,b=i.memoizedProps,k=C.value;{"value"in C||e$||(e$=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var x=i.type.propTypes;x&&Ll(x,C,"prop","Context.Provider")}if(jU(i,g,k),b!==null){var M=b.value;if(dt(M,k)){if(b.children===C.children&&!Xb())return cd(o,i,d)}else eee(i,g,d)}var L=C.children;return Ta(o,i,L,d),i.child}var t$=!1;function ste(o,i,d){var h=i.type;h._context===void 0?h!==h.Consumer&&(t$||(t$=!0,c("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=i.pendingProps,C=g.children;typeof C!="function"&&c("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."),mg(i,d);var b=Ho(h);Pc(i);var k;return F0.current=i,ta(!0),k=C(b),ta(!1),Uu(),i.flags|=kc,Ta(o,i,k,d),i.child}function H0(){zl=!0}function BS(o,i){(i.mode&ln)===Ot&&o!==null&&(o.alternate=null,i.alternate=null,i.flags|=ur)}function cd(o,i,d){return o!==null&&(i.dependencies=o.dependencies),LF(),J0(i.lanes),ua(d,i.childLanes)?(fee(o,i),i.child):null}function lte(o,i,d){{var h=i.return;if(h===null)throw new Error("Cannot swap the root fiber.");if(o.alternate=null,i.alternate=null,d.index=i.index,d.sibling=i.sibling,d.return=i.return,d.ref=i.ref,i===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!==i;)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=[o],h.flags|=Mn):C.push(o),d.flags|=ur,d}}function sI(o,i){var d=o.lanes;return!!ua(d,i)}function cte(o,i,d){switch(i.tag){case E:GF(i),i.stateNode,pg();break;case T:aF(i);break;case m:{var h=i.type;Vc(h)&&Zb(i);break}case S:hx(i,i.stateNode.containerInfo);break;case D:{var g=i.memoizedProps.value,C=i.type._context;jU(i,C,g);break}case U:{var b=ua(d,i.childLanes);b&&(i.flags|=Jt);{var k=i.stateNode;k.effectDuration=0,k.passiveEffectDuration=0}}break;case V:{var x=i.memoizedState;if(x!==null){if(x.dehydrated!==null)return Lf(i,_g(Hl.current)),i.flags|=jt,null;var M=i.child,L=M.childLanes;if(ua(d,L))return YF(o,i,d);Lf(i,_g(Hl.current));var X=cd(o,i,d);return X!==null?X.sibling:null}else Lf(i,_g(Hl.current));break}case Me:{var Y=(o.flags&jt)!==Rt,ue=ua(d,i.childLanes);if(Y){if(ue)return ZF(o,i,d);i.flags|=jt}var fe=i.memoizedState;if(fe!==null&&(fe.rendering=null,fe.tail=null,fe.lastEffect=null),Lf(i,Hl.current),ue)break;return null}case ee:case J:return i.lanes=Se,qF(o,i,d)}return cd(o,i,d)}function n$(o,i,d){if(i._debugNeedsRemount&&o!==null)return lte(o,i,UI(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes));if(o!==null){var h=o.memoizedProps,g=i.pendingProps;if(h!==g||Xb()||i.type!==o.type)zl=!0;else{var C=sI(o,d);if(!C&&(i.flags&jt)===Rt)return zl=!1,cte(o,i,d);(o.flags&tp)!==Rt?zl=!0:zl=!1}}else if(zl=!1,Li()&&DZ(i)){var b=i.index,k=LZ();xU(i,k,b)}switch(i.lanes=Se,i.tag){case y:return qee(o,i,i.type,d);case Ne:{var x=i.elementType;return zee(o,i,x,d)}case p:{var M=i.type,L=i.pendingProps,X=i.elementType===M?L:$l(M,L);return Zx(o,i,M,X,d)}case m:{var Y=i.type,ue=i.pendingProps,fe=i.elementType===Y?ue:$l(Y,ue);return KF(o,i,Y,fe,d)}case E:return $ee(o,i,d);case T:return Hee(o,i,d);case A:return jee(o,i);case V:return YF(o,i,d);case S:return ite(o,i,d);case q:{var we=i.type,at=i.pendingProps,kt=i.elementType===we?at:$l(we,at);return jF(o,i,we,kt,d)}case O:return Lee(o,i,d);case F:return Uee(o,i,d);case U:return Fee(o,i,d);case D:return ate(o,i,d);case H:return ste(o,i,d);case te:{var Et=i.type,bn=i.pendingProps,mn=$l(Et,bn);if(i.type!==i.elementType){var ie=Et.propTypes;ie&&Ll(ie,mn,"prop",Tn(Et))}return mn=$l(Et.type,mn),zF(o,i,Et,mn,d)}case Z:return BF(o,i,i.type,i.pendingProps,d);case Ze:{var be=i.type,ae=i.pendingProps,De=i.elementType===be?ae:$l(be,ae);return Bee(o,i,be,De,d)}case Me:return ZF(o,i,d);case ze:break;case ee:return qF(o,i,d)}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Tg(o){o.flags|=Jt}function r$(o){o.flags|=ra,o.flags|=E_}var o$,lI,i$,a$;o$=function(o,i,d,h){for(var g=i.child;g!==null;){if(g.tag===T||g.tag===A)NJ(o,g.stateNode);else if(g.tag!==S){if(g.child!==null){g.child.return=g,g=g.child;continue}}if(g===i)return;for(;g.sibling===null;){if(g.return===null||g.return===i)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},lI=function(o,i){},i$=function(o,i,d,h,g){var C=o.memoizedProps;if(C!==h){var b=i.stateNode,k=px(),x=PJ(b,d,C,h,g,k);i.updateQueue=x,x&&Tg(i)}},a$=function(o,i,d,h){d!==h&&Tg(i)};function j0(o,i){if(!Li())switch(o.tailMode){case"hidden":{for(var d=o.tail,h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?o.tail=null:h.sibling=null;break}case"collapsed":{for(var g=o.tail,C=null;g!==null;)g.alternate!==null&&(C=g),g=g.sibling;C===null?!i&&o.tail!==null?o.tail.sibling=null:o.tail=null:C.sibling=null;break}}}function Fi(o){var i=o.alternate!==null&&o.alternate.child===o.child,d=Se,h=Rt;if(i){if((o.mode&Pt)!==Ot){for(var x=o.selfBaseDuration,M=o.child;M!==null;)d=Zt(d,Zt(M.lanes,M.childLanes)),h|=M.subtreeFlags&Yo,h|=M.flags&Yo,x+=M.treeBaseDuration,M=M.sibling;o.treeBaseDuration=x}else for(var L=o.child;L!==null;)d=Zt(d,Zt(L.lanes,L.childLanes)),h|=L.subtreeFlags&Yo,h|=L.flags&Yo,L.return=o,L=L.sibling;o.subtreeFlags|=h}else{if((o.mode&Pt)!==Ot){for(var g=o.actualDuration,C=o.selfBaseDuration,b=o.child;b!==null;)d=Zt(d,Zt(b.lanes,b.childLanes)),h|=b.subtreeFlags,h|=b.flags,g+=b.actualDuration,C+=b.treeBaseDuration,b=b.sibling;o.actualDuration=g,o.treeBaseDuration=C}else for(var k=o.child;k!==null;)d=Zt(d,Zt(k.lanes,k.childLanes)),h|=k.subtreeFlags,h|=k.flags,k.return=o,k=k.sibling;o.subtreeFlags|=h}return o.childLanes=d,i}function ute(o,i,d){if(YZ()&&(i.mode&ln)!==Ot&&(i.flags&jt)===Rt)return LU(i),pg(),i.flags|=$r|_a|Do,!1;var h=oS(i);if(d!==null&&d.dehydrated!==null)if(o===null){if(!h)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(GZ(i),Fi(i),(i.mode&Pt)!==Ot){var g=d!==null;if(g){var C=i.child;C!==null&&(i.treeBaseDuration-=C.treeBaseDuration)}}return!1}else{if(pg(),(i.flags&jt)===Rt&&(i.memoizedState=null),i.flags|=Jt,Fi(i),(i.mode&Pt)!==Ot){var b=d!==null;if(b){var k=i.child;k!==null&&(i.treeBaseDuration-=k.treeBaseDuration)}}return!1}else return UU(),!0}function s$(o,i,d){var h=i.pendingProps;switch(PA(i),i.tag){case y:case Ne:case Z:case p:case q:case O:case F:case U:case H:case te:return Fi(i),null;case m:{var g=i.type;return Vc(g)&&Jb(i),Fi(i),null}case E:{var C=i.stateNode;if(yg(i),IA(i),_x(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),o===null||o.child===null){var b=oS(i);if(b)Tg(i);else if(o!==null){var k=o.memoizedState;(!k.isDehydrated||(i.flags&$r)!==Rt)&&(i.flags|=Va,UU())}}return lI(o,i),Fi(i),null}case T:{vx(i);var x=iF(),M=i.type;if(o!==null&&i.stateNode!=null)i$(o,i,M,h,x),o.ref!==i.ref&&r$(i);else{if(!h){if(i.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 Fi(i),null}var L=px(),X=oS(i);if(X)VZ(i,x,L)&&Tg(i);else{var Y=OJ(M,h,x,L,i);o$(Y,i,!1,!1),i.stateNode=Y,MJ(Y,M,h,x)&&Tg(i)}i.ref!==null&&r$(i)}return Fi(i),null}case A:{var ue=h;if(o&&i.stateNode!=null){var fe=o.memoizedProps;a$(o,i,fe,ue)}else{if(typeof ue!="string"&&i.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=iF(),at=px(),kt=oS(i);kt?KZ(i)&&Tg(i):i.stateNode=DJ(ue,we,at,i)}return Fi(i),null}case V:{Cg(i);var Et=i.memoizedState;if(o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){var bn=ute(o,i,Et);if(!bn)return i.flags&Do?i:null}if((i.flags&jt)!==Rt)return i.lanes=d,(i.mode&Pt)!==Ot&&qx(i),i;var mn=Et!==null,ie=o!==null&&o.memoizedState!==null;if(mn!==ie&&mn){var be=i.child;if(be.flags|=Ac,(i.mode&ln)!==Ot){var ae=o===null&&(i.memoizedProps.unstable_avoidThisFallback!==!0||!ne);ae||mx(Hl.current,lF)?dne():RI()}}var De=i.updateQueue;if(De!==null&&(i.flags|=Jt),Fi(i),(i.mode&Pt)!==Ot&&mn){var st=i.child;st!==null&&(i.treeBaseDuration-=st.treeBaseDuration)}return null}case S:return yg(i),lI(o,i),o===null&&AZ(i.stateNode.containerInfo),Fi(i),null;case D:var et=i.type._context;return BA(et,i),Fi(i),null;case Ze:{var $t=i.type;return Vc($t)&&Jb(i),Fi(i),null}case Me:{Cg(i);var Gt=i.memoizedState;if(Gt===null)return Fi(i),null;var Qn=(i.flags&jt)!==Rt,In=Gt.rendering;if(In===null)if(Qn)j0(Gt,!1);else{var Ao=hne()&&(o===null||(o.flags&jt)===Rt);if(!Ao)for(var On=i.child;On!==null;){var uo=ES(On);if(uo!==null){Qn=!0,i.flags|=jt,j0(Gt,!1);var pa=uo.updateQueue;return pa!==null&&(i.updateQueue=pa,i.flags|=Jt),i.subtreeFlags=Rt,hee(i,d),Lf(i,gx(Hl.current,I0)),i.child}On=On.sibling}Gt.tail!==null&&Rr()>A$()&&(i.flags|=jt,Qn=!0,j0(Gt,!1),i.lanes=P_)}else{if(!Qn){var Bi=ES(In);if(Bi!==null){i.flags|=jt,Qn=!0;var ks=Bi.updateQueue;if(ks!==null&&(i.updateQueue=ks,i.flags|=Jt),j0(Gt,!0),Gt.tail===null&&Gt.tailMode==="hidden"&&!In.alternate&&!Li())return Fi(i),null}else Rr()*2-Gt.renderingStartTime>A$()&&d!==ca&&(i.flags|=jt,Qn=!0,j0(Gt,!1),i.lanes=P_)}if(Gt.isBackwards)In.sibling=i.child,i.child=In;else{var Aa=Gt.last;Aa!==null?Aa.sibling=In:i.child=In,Gt.last=In}}if(Gt.tail!==null){var xa=Gt.tail;Gt.rendering=xa,Gt.tail=xa.sibling,Gt.renderingStartTime=Rr(),xa.sibling=null;var va=Hl.current;return Qn?va=gx(va,I0):va=_g(va),Lf(i,va),xa}return Fi(i),null}case ze:break;case ee:case J:{TI(i);var pd=i.memoizedState,Mg=pd!==null;if(o!==null){var rC=o.memoizedState,Zc=rC!==null;Zc!==Mg&&!$&&(i.flags|=Ac)}return!Mg||(i.mode&ln)===Ot?Fi(i):ua(Jc,ca)&&(Fi(i),i.subtreeFlags&(ur|Jt)&&(i.flags|=Ac)),null}case ye:return null;case me:return null}throw new Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function dte(o,i,d){switch(PA(i),i.tag){case m:{var h=i.type;Vc(h)&&Jb(i);var g=i.flags;return g&Do?(i.flags=g&~Do|jt,(i.mode&Pt)!==Ot&&qx(i),i):null}case E:{i.stateNode,yg(i),IA(i),_x();var C=i.flags;return(C&Do)!==Rt&&(C&jt)===Rt?(i.flags=C&~Do|jt,i):null}case T:return vx(i),null;case V:{Cg(i);var b=i.memoizedState;if(b!==null&&b.dehydrated!==null){if(i.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");pg()}var k=i.flags;return k&Do?(i.flags=k&~Do|jt,(i.mode&Pt)!==Ot&&qx(i),i):null}case Me:return Cg(i),null;case S:return yg(i),null;case D:var x=i.type._context;return BA(x,i),null;case ee:case J:return TI(i),null;case ye:return null;default:return null}}function l$(o,i,d){switch(PA(i),i.tag){case m:{var h=i.type.childContextTypes;h!=null&&Jb(i);break}case E:{i.stateNode,yg(i),IA(i),_x();break}case T:{vx(i);break}case S:yg(i);break;case V:Cg(i);break;case Me:Cg(i);break;case D:var g=i.type._context;BA(g,i);break;case ee:case J:TI(i);break}}var c$=null;c$=new Set;var qS=!1,$i=!1,fte=typeof WeakSet=="function"?WeakSet:Set,ft=null,Rg=null,kg=null;function hte(o){Du(null,function(){throw o}),__()}var pte=function(o,i){if(i.props=o.memoizedProps,i.state=o.memoizedState,o.mode&Pt)try{Qc(),i.componentWillUnmount()}finally{Yc(o)}else i.componentWillUnmount()};function u$(o,i){try{$f(Zo,o)}catch(d){pr(o,i,d)}}function cI(o,i,d){try{pte(o,d)}catch(h){pr(o,i,h)}}function vte(o,i,d){try{d.componentDidMount()}catch(h){pr(o,i,h)}}function d$(o,i){try{h$(o)}catch(d){pr(o,i,d)}}function Ag(o,i){var d=o.ref;if(d!==null)if(typeof d=="function"){var h;try{if(Ut&&Bt&&o.mode&Pt)try{Qc(),h=d(null)}finally{Yc(o)}else h=d(null)}catch(g){pr(o,i,g)}typeof h=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",qt(o))}else d.current=null}function VS(o,i,d){try{d()}catch(h){pr(o,i,h)}}var f$=!1;function mte(o,i){xJ(o.containerInfo),ft=i,gte();var d=f$;return f$=!1,d}function gte(){for(;ft!==null;){var o=ft,i=o.child;(o.subtreeFlags&of)!==Rt&&i!==null?(i.return=o,ft=i):yte()}}function yte(){for(;ft!==null;){var o=ft;Ln(o);try{_te(o)}catch(d){pr(o,o.return,d)}Fr();var i=o.sibling;if(i!==null){i.return=o.return,ft=i;return}ft=o.return}}function _te(o){var i=o.alternate,d=o.flags;if((d&Va)!==Rt){switch(Ln(o),o.tag){case p:case q:case Z:break;case m:{if(i!==null){var h=i.memoizedProps,g=i.memoizedState,C=o.stateNode;o.type===o.elementType&&!Pp&&(C.props!==o.memoizedProps&&c("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.",qt(o)||"instance"),C.state!==o.memoizedState&&c("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.",qt(o)||"instance"));var b=C.getSnapshotBeforeUpdate(o.elementType===o.type?h:$l(o.type,h),g);{var k=c$;b===void 0&&!k.has(o.type)&&(k.add(o.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",qt(o)))}C.__reactInternalSnapshotBeforeUpdate=b}break}case E:{{var x=o.stateNode;eZ(x.containerInfo)}break}case T:case A:case S:case Ze: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.")}Fr()}}function Bl(o,i,d){var h=i.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var C=g.next,b=C;do{if((b.tag&o)===o){var k=b.destroy;b.destroy=void 0,k!==void 0&&((o&Ui)!==rs?gm(i):(o&Zo)!==rs&&ym(i),(o&Kc)!==rs&&eC(!0),VS(i,d,k),(o&Kc)!==rs&&eC(!1),(o&Ui)!==rs?rb():(o&Zo)!==rs&&af())}b=b.next}while(b!==C)}}function $f(o,i){var d=i.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var g=h.next,C=g;do{if((C.tag&o)===o){(o&Ui)!==rs?nb(i):(o&Zo)!==rs&&ob(i);var b=C.create;(o&Kc)!==rs&&eC(!0),C.destroy=b(),(o&Kc)!==rs&&eC(!1),(o&Ui)!==rs?O_():(o&Zo)!==rs&&ib();{var k=C.destroy;if(k!==void 0&&typeof k!="function"){var x=void 0;(C.tag&Zo)!==Rt?x="useLayoutEffect":(C.tag&Kc)!==Rt?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,c("%s must not return anything besides a function, which is used for clean-up.%s",x,M)}}}C=C.next}while(C!==g)}}function Cte(o,i){if((i.flags&Jt)!==Rt)switch(i.tag){case U:{var d=i.stateNode.passiveEffectDuration,h=i.memoizedProps,g=h.id,C=h.onPostCommit,b=PF(),k=i.alternate===null?"mount":"update";MF()&&(k="nested-update"),typeof C=="function"&&C(g,k,d,b);var x=i.return;e:for(;x!==null;){switch(x.tag){case E:var M=x.stateNode;M.passiveEffectDuration+=d;break e;case U:var L=x.stateNode;L.passiveEffectDuration+=d;break e}x=x.return}break}}}function Ete(o,i,d,h){if((d.flags&mi)!==Rt)switch(d.tag){case p:case q:case Z:{if(!$i)if(d.mode&Pt)try{Qc(),$f(Zo|Jo,d)}finally{Yc(d)}else $f(Zo|Jo,d);break}case m:{var g=d.stateNode;if(d.flags&Jt&&!$i)if(i===null)if(d.type===d.elementType&&!Pp&&(g.props!==d.memoizedProps&&c("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.",qt(d)||"instance"),g.state!==d.memoizedState&&c("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.",qt(d)||"instance")),d.mode&Pt)try{Qc(),g.componentDidMount()}finally{Yc(d)}else g.componentDidMount();else{var C=d.elementType===d.type?i.memoizedProps:$l(d.type,i.memoizedProps),b=i.memoizedState;if(d.type===d.elementType&&!Pp&&(g.props!==d.memoizedProps&&c("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.",qt(d)||"instance"),g.state!==d.memoizedState&&c("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.",qt(d)||"instance")),d.mode&Pt)try{Qc(),g.componentDidUpdate(C,b,g.__reactInternalSnapshotBeforeUpdate)}finally{Yc(d)}else g.componentDidUpdate(C,b,g.__reactInternalSnapshotBeforeUpdate)}var k=d.updateQueue;k!==null&&(d.type===d.elementType&&!Pp&&(g.props!==d.memoizedProps&&c("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.",qt(d)||"instance"),g.state!==d.memoizedState&&c("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.",qt(d)||"instance")),GU(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}GU(d,x,M)}break}case T:{var L=d.stateNode;if(i===null&&d.flags&Jt){var X=d.type,Y=d.memoizedProps;HJ(L,X,Y)}break}case A:break;case S:break;case U:{{var ue=d.memoizedProps,fe=ue.onCommit,we=ue.onRender,at=d.stateNode.effectDuration,kt=PF(),Et=i===null?"mount":"update";MF()&&(Et="nested-update"),typeof we=="function"&&we(d.memoizedProps.id,Et,d.actualDuration,d.treeBaseDuration,d.actualStartTime,kt);{typeof fe=="function"&&fe(d.memoizedProps.id,Et,at,kt),yne(d);var bn=d.return;e:for(;bn!==null;){switch(bn.tag){case E:var mn=bn.stateNode;mn.effectDuration+=at;break e;case U:var ie=bn.stateNode;ie.effectDuration+=at;break e}bn=bn.return}}}break}case V:{xte(o,d);break}case Me:case Ze:case ze:case ee:case J: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.")}$i||d.flags&ra&&h$(d)}function wte(o){switch(o.tag){case p:case q:case Z:{if(o.mode&Pt)try{Qc(),u$(o,o.return)}finally{Yc(o)}else u$(o,o.return);break}case m:{var i=o.stateNode;typeof i.componentDidMount=="function"&&vte(o,o.return,i),d$(o,o.return);break}case T:{d$(o,o.return);break}}}function bte(o,i){for(var d=null,h=o;;){if(h.tag===T){if(d===null){d=h;try{var g=h.stateNode;i?QJ(g):JJ(h.stateNode,h.memoizedProps)}catch(b){pr(o,o.return,b)}}}else if(h.tag===A){if(d===null)try{var C=h.stateNode;i?XJ(C):ZJ(C,h.memoizedProps)}catch(b){pr(o,o.return,b)}}else if(!((h.tag===ee||h.tag===J)&&h.memoizedState!==null&&h!==o)){if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===o)return;for(;h.sibling===null;){if(h.return===null||h.return===o)return;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}function h$(o){var i=o.ref;if(i!==null){var d=o.stateNode,h;switch(o.tag){case T:h=d;break;default:h=d}if(typeof i=="function"){var g;if(o.mode&Pt)try{Qc(),g=i(h)}finally{Yc(o)}else g=i(h);typeof g=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",qt(o))}else i.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",qt(o)),i.current=h}}function Ste(o){var i=o.alternate;i!==null&&(i.return=null),o.return=null}function p$(o){var i=o.alternate;i!==null&&(o.alternate=null,p$(i));{if(o.child=null,o.deletions=null,o.sibling=null,o.tag===T){var d=o.stateNode;d!==null&&OZ(d)}o.stateNode=null,o._debugOwner=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}}function Tte(o){for(var i=o.return;i!==null;){if(v$(i))return i;i=i.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 v$(o){return o.tag===T||o.tag===E||o.tag===S}function m$(o){var i=o;e:for(;;){for(;i.sibling===null;){if(i.return===null||v$(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==T&&i.tag!==A&&i.tag!==it;){if(i.flags&ur||i.child===null||i.tag===S)continue e;i.child.return=i,i=i.child}if(!(i.flags&ur))return i.stateNode}}function Rte(o){var i=Tte(o);switch(i.tag){case T:{var d=i.stateNode;i.flags&Un&&(gU(d),i.flags&=~Un);var h=m$(o);dI(o,h,d);break}case E:case S:{var g=i.stateNode.containerInfo,C=m$(o);uI(o,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 uI(o,i,d){var h=o.tag,g=h===T||h===A;if(g){var C=o.stateNode;i?KJ(d,C,i):qJ(d,C)}else if(h!==S){var b=o.child;if(b!==null){uI(b,i,d);for(var k=b.sibling;k!==null;)uI(k,i,d),k=k.sibling}}}function dI(o,i,d){var h=o.tag,g=h===T||h===A;if(g){var C=o.stateNode;i?VJ(d,C,i):BJ(d,C)}else if(h!==S){var b=o.child;if(b!==null){dI(b,i,d);for(var k=b.sibling;k!==null;)dI(k,i,d),k=k.sibling}}}var Hi=null,ql=!1;function kte(o,i,d){{var h=i;e:for(;h!==null;){switch(h.tag){case T:{Hi=h.stateNode,ql=!1;break e}case E:{Hi=h.stateNode.containerInfo,ql=!0;break e}case S:{Hi=h.stateNode.containerInfo,ql=!0;break e}}h=h.return}if(Hi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");g$(o,i,d),Hi=null,ql=!1}Ste(d)}function Hf(o,i,d){for(var h=d.child;h!==null;)g$(o,i,h),h=h.sibling}function g$(o,i,d){switch(x_(d),d.tag){case T:$i||Ag(d,i);case A:{{var h=Hi,g=ql;Hi=null,Hf(o,i,d),Hi=h,ql=g,Hi!==null&&(ql?WJ(Hi,d.stateNode):GJ(Hi,d.stateNode))}return}case it:{Hi!==null&&(ql?YJ(Hi,d.stateNode):wA(Hi,d.stateNode));return}case S:{{var C=Hi,b=ql;Hi=d.stateNode.containerInfo,ql=!0,Hf(o,i,d),Hi=C,ql=b}return}case p:case q:case te:case Z:{if(!$i){var k=d.updateQueue;if(k!==null){var x=k.lastEffect;if(x!==null){var M=x.next,L=M;do{var X=L,Y=X.destroy,ue=X.tag;Y!==void 0&&((ue&Kc)!==rs?VS(d,i,Y):(ue&Zo)!==rs&&(ym(d),d.mode&Pt?(Qc(),VS(d,i,Y),Yc(d)):VS(d,i,Y),af())),L=L.next}while(L!==M)}}}Hf(o,i,d);return}case m:{if(!$i){Ag(d,i);var fe=d.stateNode;typeof fe.componentWillUnmount=="function"&&cI(d,i,fe)}Hf(o,i,d);return}case ze:{Hf(o,i,d);return}case ee:{if(d.mode&ln){var we=$i;$i=we||d.memoizedState!==null,Hf(o,i,d),$i=we}else Hf(o,i,d);break}default:{Hf(o,i,d);return}}}function Ate(o){o.memoizedState}function xte(o,i){var d=i.memoizedState;if(d===null){var h=i.alternate;if(h!==null){var g=h.memoizedState;if(g!==null){var C=g.dehydrated;C!==null&&pZ(C)}}}}function y$(o){var i=o.updateQueue;if(i!==null){o.updateQueue=null;var d=o.stateNode;d===null&&(d=o.stateNode=new fte),i.forEach(function(h){var g=Tne.bind(null,o,h);if(!d.has(h)){if(d.add(h),Qo)if(Rg!==null&&kg!==null)Z0(kg,Rg);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");h.then(g,g)}})}}function Ite(o,i,d){Rg=d,kg=o,Ln(i),_$(i,o),Ln(i),Rg=null,kg=null}function Vl(o,i,d){var h=i.deletions;if(h!==null)for(var g=0;g<h.length;g++){var C=h[g];try{kte(o,i,C)}catch(x){pr(C,i,x)}}var b=Yv();if(i.subtreeFlags&aa)for(var k=i.child;k!==null;)Ln(k),_$(k,o),k=k.sibling;Ln(b)}function _$(o,i,d){var h=o.alternate,g=o.flags;switch(o.tag){case p:case q:case te:case Z:{if(Vl(i,o),Xc(o),g&Jt){try{Bl(Kc|Jo,o,o.return),$f(Kc|Jo,o)}catch($t){pr(o,o.return,$t)}if(o.mode&Pt){try{Qc(),Bl(Zo|Jo,o,o.return)}catch($t){pr(o,o.return,$t)}Yc(o)}else try{Bl(Zo|Jo,o,o.return)}catch($t){pr(o,o.return,$t)}}return}case m:{Vl(i,o),Xc(o),g&ra&&h!==null&&Ag(h,h.return);return}case T:{Vl(i,o),Xc(o),g&ra&&h!==null&&Ag(h,h.return);{if(o.flags&Un){var C=o.stateNode;try{gU(C)}catch($t){pr(o,o.return,$t)}}if(g&Jt){var b=o.stateNode;if(b!=null){var k=o.memoizedProps,x=h!==null?h.memoizedProps:k,M=o.type,L=o.updateQueue;if(o.updateQueue=null,L!==null)try{jJ(b,L,M,x,k,o)}catch($t){pr(o,o.return,$t)}}}}return}case A:{if(Vl(i,o),Xc(o),g&Jt){if(o.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 X=o.stateNode,Y=o.memoizedProps,ue=h!==null?h.memoizedProps:Y;try{zJ(X,ue,Y)}catch($t){pr(o,o.return,$t)}}return}case E:{if(Vl(i,o),Xc(o),g&Jt&&h!==null){var fe=h.memoizedState;if(fe.isDehydrated)try{hZ(i.containerInfo)}catch($t){pr(o,o.return,$t)}}return}case S:{Vl(i,o),Xc(o);return}case V:{Vl(i,o),Xc(o);var we=o.child;if(we.flags&Ac){var at=we.stateNode,kt=we.memoizedState,Et=kt!==null;if(at.isHidden=Et,Et){var bn=we.alternate!==null&&we.alternate.memoizedState!==null;bn||une()}}if(g&Jt){try{Ate(o)}catch($t){pr(o,o.return,$t)}y$(o)}return}case ee:{var mn=h!==null&&h.memoizedState!==null;if(o.mode&ln){var ie=$i;$i=ie||mn,Vl(i,o),$i=ie}else Vl(i,o);if(Xc(o),g&Ac){var be=o.stateNode,ae=o.memoizedState,De=ae!==null,st=o;if(be.isHidden=De,De&&!mn&&(st.mode&ln)!==Ot){ft=st;for(var et=st.child;et!==null;)ft=et,Nte(et),et=et.sibling}bte(st,De)}return}case Me:{Vl(i,o),Xc(o),g&Jt&&y$(o);return}case ze:return;default:{Vl(i,o),Xc(o);return}}}function Xc(o){var i=o.flags;if(i&ur){try{Rte(o)}catch(d){pr(o,o.return,d)}o.flags&=~ur}i&Ka&&(o.flags&=~Ka)}function Ote(o,i,d){Rg=d,kg=i,ft=o,C$(o,i,d),Rg=null,kg=null}function C$(o,i,d){for(var h=(o.mode&ln)!==Ot;ft!==null;){var g=ft,C=g.child;if(g.tag===ee&&h){var b=g.memoizedState!==null,k=b||qS;if(k){fI(o,i,d);continue}else{var x=g.alternate,M=x!==null&&x.memoizedState!==null,L=M||$i,X=qS,Y=$i;qS=k,$i=L,$i&&!Y&&(ft=g,Mte(g));for(var ue=C;ue!==null;)ft=ue,C$(ue,i,d),ue=ue.sibling;ft=g,qS=X,$i=Y,fI(o,i,d);continue}}(g.subtreeFlags&mi)!==Rt&&C!==null?(C.return=g,ft=C):fI(o,i,d)}}function fI(o,i,d){for(;ft!==null;){var h=ft;if((h.flags&mi)!==Rt){var g=h.alternate;Ln(h);try{Ete(i,g,h,d)}catch(b){pr(h,h.return,b)}Fr()}if(h===o){ft=null;return}var C=h.sibling;if(C!==null){C.return=h.return,ft=C;return}ft=h.return}}function Nte(o){for(;ft!==null;){var i=ft,d=i.child;switch(i.tag){case p:case q:case te:case Z:{if(i.mode&Pt)try{Qc(),Bl(Zo,i,i.return)}finally{Yc(i)}else Bl(Zo,i,i.return);break}case m:{Ag(i,i.return);var h=i.stateNode;typeof h.componentWillUnmount=="function"&&cI(i,i.return,h);break}case T:{Ag(i,i.return);break}case ee:{var g=i.memoizedState!==null;if(g){E$(o);continue}break}}d!==null?(d.return=i,ft=d):E$(o)}}function E$(o){for(;ft!==null;){var i=ft;if(i===o){ft=null;return}var d=i.sibling;if(d!==null){d.return=i.return,ft=d;return}ft=i.return}}function Mte(o){for(;ft!==null;){var i=ft,d=i.child;if(i.tag===ee){var h=i.memoizedState!==null;if(h){w$(o);continue}}d!==null?(d.return=i,ft=d):w$(o)}}function w$(o){for(;ft!==null;){var i=ft;Ln(i);try{wte(i)}catch(h){pr(i,i.return,h)}if(Fr(),i===o){ft=null;return}var d=i.sibling;if(d!==null){d.return=i.return,ft=d;return}ft=i.return}}function Pte(o,i,d,h){ft=i,Dte(i,o,d,h)}function Dte(o,i,d,h){for(;ft!==null;){var g=ft,C=g.child;(g.subtreeFlags&Ga)!==Rt&&C!==null?(C.return=g,ft=C):Lte(o,i,d,h)}}function Lte(o,i,d,h){for(;ft!==null;){var g=ft;if((g.flags&Cr)!==Rt){Ln(g);try{Ute(i,g,d,h)}catch(b){pr(g,g.return,b)}Fr()}if(g===o){ft=null;return}var C=g.sibling;if(C!==null){C.return=g.return,ft=C;return}ft=g.return}}function Ute(o,i,d,h){switch(i.tag){case p:case q:case Z:{if(i.mode&Pt){Bx();try{$f(Ui|Jo,i)}finally{zx(i)}}else $f(Ui|Jo,i);break}}}function Fte(o){ft=o,$te()}function $te(){for(;ft!==null;){var o=ft,i=o.child;if((ft.flags&Mn)!==Rt){var d=o.deletions;if(d!==null){for(var h=0;h<d.length;h++){var g=d[h];ft=g,zte(g,o)}{var C=o.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)}}}ft=o}}(o.subtreeFlags&Ga)!==Rt&&i!==null?(i.return=o,ft=i):Hte()}}function Hte(){for(;ft!==null;){var o=ft;(o.flags&Cr)!==Rt&&(Ln(o),jte(o),Fr());var i=o.sibling;if(i!==null){i.return=o.return,ft=i;return}ft=o.return}}function jte(o){switch(o.tag){case p:case q:case Z:{o.mode&Pt?(Bx(),Bl(Ui|Jo,o,o.return),zx(o)):Bl(Ui|Jo,o,o.return);break}}}function zte(o,i){for(;ft!==null;){var d=ft;Ln(d),qte(d,i),Fr();var h=d.child;h!==null?(h.return=d,ft=h):Bte(o)}}function Bte(o){for(;ft!==null;){var i=ft,d=i.sibling,h=i.return;if(p$(i),i===o){ft=null;return}if(d!==null){d.return=h,ft=d;return}ft=h}}function qte(o,i){switch(o.tag){case p:case q:case Z:{o.mode&Pt?(Bx(),Bl(Ui,o,i),zx(o)):Bl(Ui,o,i);break}}}function Vte(o){switch(o.tag){case p:case q:case Z:{try{$f(Zo|Jo,o)}catch(d){pr(o,o.return,d)}break}case m:{var i=o.stateNode;try{i.componentDidMount()}catch(d){pr(o,o.return,d)}break}}}function Kte(o){switch(o.tag){case p:case q:case Z:{try{$f(Ui|Jo,o)}catch(i){pr(o,o.return,i)}break}}}function Gte(o){switch(o.tag){case p:case q:case Z:{try{Bl(Zo|Jo,o,o.return)}catch(d){pr(o,o.return,d)}break}case m:{var i=o.stateNode;typeof i.componentWillUnmount=="function"&&cI(o,o.return,i);break}}}function Wte(o){switch(o.tag){case p:case q:case Z:try{Bl(Ui|Jo,o,o.return)}catch(i){pr(o,o.return,i)}}}if(typeof Symbol=="function"&&Symbol.for){var z0=Symbol.for;z0("selector.component"),z0("selector.has_pseudo_class"),z0("selector.role"),z0("selector.test_id"),z0("selector.text")}var Yte=[];function Qte(){Yte.forEach(function(o){return o()})}var Xte=t.ReactCurrentActQueue;function Jte(o){{var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,d=typeof jest<"u";return d&&i!==!1}}function b$(){{var o=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!o&&Xte.current!==null&&c("The current testing environment is not configured to support act(...)"),o}}var Zte=Math.ceil,hI=t.ReactCurrentDispatcher,pI=t.ReactCurrentOwner,ji=t.ReactCurrentBatchConfig,Kl=t.ReactCurrentActQueue,ni=0,S$=1,zi=2,Js=4,ud=0,B0=1,Dp=2,KS=3,q0=4,T$=5,vI=6,wn=ni,Ra=null,Qr=null,ri=Se,Jc=Se,mI=If(Se),oi=ud,V0=null,GS=Se,K0=Se,WS=Se,G0=null,os=null,gI=0,R$=500,k$=1/0,ene=500,dd=null;function W0(){k$=Rr()+ene}function A$(){return k$}var YS=!1,yI=null,xg=null,Lp=!1,jf=null,Y0=Se,_I=[],CI=null,tne=50,Q0=0,EI=null,wI=!1,QS=!1,nne=50,Ig=0,XS=null,X0=tr,JS=Se,x$=!1;function ZS(){return Ra}function ka(){return(wn&(zi|Js))!==ni?Rr():(X0!==tr||(X0=Rr()),X0)}function zf(o){var i=o.mode;if((i&ln)===Ot)return Dt;if((wn&zi)!==ni&&ri!==Se)return So(ri);var d=JZ()!==XZ;if(d){if(ji.transition!==null){var h=ji.transition;h._updatedFibers||(h._updatedFibers=new Set),h._updatedFibers.add(o)}return JS===En&&(JS=U_()),JS}var g=Xa();if(g!==En)return g;var C=LJ();return C}function rne(o){var i=o.mode;return(i&ln)===Ot?Dt:Bk()}function ii(o,i,d,h){kne(),x$&&c("useInsertionEffect must not schedule updates."),wI&&(QS=!0),Gu(o,d,h),(wn&zi)!==Se&&o===Ra?Ine(i):(Qo&&z_(o,i,d),One(i),o===Ra&&((wn&zi)===ni&&(K0=Zt(K0,d)),oi===q0&&Bf(o,ri)),is(o,h),d===Dt&&wn===ni&&(i.mode&ln)===Ot&&!Kl.isBatchingLegacy&&(W0(),AU()))}function one(o,i,d){var h=o.current;h.lanes=i,Gu(o,i,d),is(o,d)}function ine(o){return(wn&zi)!==ni}function is(o,i){var d=o.callbackNode;Hk(o,i);var h=sp(o,o===Ra?ri:Se);if(h===Se){d!==null&&V$(d),o.callbackNode=null,o.callbackPriority=En;return}var g=lo(h),C=o.callbackPriority;if(C===g&&!(Kl.current!==null&&d!==xI)){d==null&&C!==Dt&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}d!=null&&V$(d);var b;if(g===Dt)o.tag===Of?(Kl.isBatchingLegacy!==null&&(Kl.didScheduleLegacyUpdate=!0),PZ(N$.bind(null,o))):kU(N$.bind(null,o)),Kl.current!==null?Kl.current.push(Nf):FJ(function(){(wn&(zi|Js))===ni&&Nf()}),b=null;else{var k;switch(fp(h)){case gi:k=pm;break;case Xo:k=wa;break;case Ol:k=zs;break;case up:k=Ic;break;default:k=zs;break}b=II(k,I$.bind(null,o))}o.callbackPriority=g,o.callbackNode=b}function I$(o,i){if(kee(),X0=tr,JS=Se,(wn&(zi|Js))!==ni)throw new Error("Should not already be working.");var d=o.callbackNode,h=hd();if(h&&o.callbackNode!==d)return null;var g=sp(o,o===Ra?ri:Se);if(g===Se)return null;var C=!cp(o,g)&&!db(o,g)&&!i,b=C?vne(o,g):tT(o,g);if(b!==ud){if(b===Dp){var k=D_(o);k!==Se&&(g=k,b=bI(o,k))}if(b===B0){var x=V0;throw Up(o,Se),Bf(o,g),is(o,Rr()),x}if(b===vI)Bf(o,g);else{var M=!cp(o,g),L=o.current.alternate;if(M&&!sne(L)){if(b=tT(o,g),b===Dp){var X=D_(o);X!==Se&&(g=X,b=bI(o,X))}if(b===B0){var Y=V0;throw Up(o,Se),Bf(o,g),is(o,Rr()),Y}}o.finishedWork=L,o.finishedLanes=g,ane(o,b,g)}}return is(o,Rr()),o.callbackNode===d?I$.bind(null,o):null}function bI(o,i){var d=G0;if(Ro(o)){var h=Up(o,i);h.flags|=$r,kZ(o.containerInfo)}var g=tT(o,i);if(g!==Dp){var C=os;os=d,C!==null&&O$(C)}return g}function O$(o){os===null?os=o:os.push.apply(os,o)}function ane(o,i,d){switch(i){case ud:case B0:throw new Error("Root did not complete. This is a bug in React.");case Dp:{Fp(o,os,dd);break}case KS:{if(Bf(o,d),Fm(d)&&!K$()){var h=gI+R$-Rr();if(h>10){var g=sp(o,Se);if(g!==Se)break;var C=o.suspendedLanes;if(!Ku(C,d)){ka(),H_(o,C);break}o.timeoutHandle=CA(Fp.bind(null,o,os,dd),h);break}}Fp(o,os,dd);break}case q0:{if(Bf(o,d),ub(d))break;if(!K$()){var b=cb(o,d),k=b,x=Rr()-k,M=Rne(x)-x;if(M>10){o.timeoutHandle=CA(Fp.bind(null,o,os,dd),M);break}}Fp(o,os,dd);break}case T$:{Fp(o,os,dd);break}default:throw new Error("Unknown root exit status.")}}function sne(o){for(var i=o;;){if(i.flags&ep){var d=i.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(!dt(b(),k))return!1}catch{return!1}}}}var x=i.child;if(i.subtreeFlags&ep&&x!==null){x.return=i,i=x;continue}if(i===o)return!0;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}return!0}function Bf(o,i){i=hf(i,WS),i=hf(i,K0),$_(o,i)}function N$(o){if(Aee(),(wn&(zi|Js))!==ni)throw new Error("Should not already be working.");hd();var i=sp(o,Se);if(!ua(i,Dt))return is(o,Rr()),null;var d=tT(o,i);if(o.tag!==Of&&d===Dp){var h=D_(o);h!==Se&&(i=h,d=bI(o,h))}if(d===B0){var g=V0;throw Up(o,Se),Bf(o,i),is(o,Rr()),g}if(d===vI)throw new Error("Root did not complete. This is a bug in React.");var C=o.current.alternate;return o.finishedWork=C,o.finishedLanes=i,Fp(o,os,dd),is(o,Rr()),null}function lne(o,i){i!==Se&&(pf(o,Zt(i,Dt)),is(o,Rr()),(wn&(zi|Js))===ni&&(W0(),Nf()))}function SI(o,i){var d=wn;wn|=S$;try{return o(i)}finally{wn=d,wn===ni&&!Kl.isBatchingLegacy&&(W0(),AU())}}function cne(o,i,d,h,g){var C=Xa(),b=ji.transition;try{return ji.transition=null,To(gi),o(i,d,h,g)}finally{To(C),ji.transition=b,wn===ni&&W0()}}function fd(o){jf!==null&&jf.tag===Of&&(wn&(zi|Js))===ni&&hd();var i=wn;wn|=S$;var d=ji.transition,h=Xa();try{return ji.transition=null,To(gi),o?o():void 0}finally{To(h),ji.transition=d,wn=i,(wn&(zi|Js))===ni&&Nf()}}function M$(){return(wn&(zi|Js))!==ni}function eT(o,i){fa(mI,Jc,o),Jc=Zt(Jc,i)}function TI(o){Jc=mI.current,da(mI,o)}function Up(o,i){o.finishedWork=null,o.finishedLanes=Se;var d=o.timeoutHandle;if(d!==EA&&(o.timeoutHandle=EA,UJ(d)),Qr!==null)for(var h=Qr.return;h!==null;){var g=h.alternate;l$(g,h),h=h.return}Ra=o;var C=$p(o.current,null);return Qr=C,ri=Jc=i,oi=ud,V0=null,GS=Se,K0=Se,WS=Se,G0=null,os=null,nee(),Fl.discardPendingWarnings(),C}function P$(o,i){do{var d=Qr;try{if(lS(),uF(),Fr(),pI.current=null,d===null||d.return===null){oi=B0,V0=i,Qr=null;return}if(Ut&&d.mode&Pt&&HS(d,!0),xt)if(Uu(),i!==null&&typeof i=="object"&&typeof i.then=="function"){var h=i;ab(d,h,ri)}else _m(d,i,ri);Mee(o,d.return,d,i,ri),F$(d)}catch(g){i=g,Qr===d&&d!==null?(d=d.return,Qr=d):d=Qr;continue}return}while(!0)}function D$(){var o=hI.current;return hI.current=DS,o===null?DS:o}function L$(o){hI.current=o}function une(){gI=Rr()}function J0(o){GS=Zt(o,GS)}function dne(){oi===ud&&(oi=KS)}function RI(){(oi===ud||oi===KS||oi===Dp)&&(oi=q0),Ra!==null&&(lp(GS)||lp(K0))&&Bf(Ra,ri)}function fne(o){oi!==q0&&(oi=Dp),G0===null?G0=[o]:G0.push(o)}function hne(){return oi===ud}function tT(o,i){var d=wn;wn|=zi;var h=D$();if(Ra!==o||ri!==i){if(Qo){var g=o.memoizedUpdaters;g.size>0&&(Z0(o,ri),g.clear()),jm(o,i)}dd=B_(),Up(o,i)}bs(i);do try{pne();break}catch(C){P$(o,C)}while(!0);if(lS(),wn=d,L$(h),Qr!==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(),Ra=null,ri=Se,oi}function pne(){for(;Qr!==null;)U$(Qr)}function vne(o,i){var d=wn;wn|=zi;var h=D$();if(Ra!==o||ri!==i){if(Qo){var g=o.memoizedUpdaters;g.size>0&&(Z0(o,ri),g.clear()),jm(o,i)}dd=B_(),W0(),Up(o,i)}bs(i);do try{mne();break}catch(C){P$(o,C)}while(!0);return lS(),L$(h),wn=d,Qr!==null?(rp(),ud):(lf(),Ra=null,ri=Se,oi)}function mne(){for(;Qr!==null&&!hm();)U$(Qr)}function U$(o){var i=o.alternate;Ln(o);var d;(o.mode&Pt)!==Ot?(jx(o),d=kI(i,o,Jc),HS(o,!0)):d=kI(i,o,Jc),Fr(),o.memoizedProps=o.pendingProps,d===null?F$(o):Qr=d,pI.current=null}function F$(o){var i=o;do{var d=i.alternate,h=i.return;if((i.flags&_a)===Rt){Ln(i);var g=void 0;if((i.mode&Pt)===Ot?g=s$(d,i,Jc):(jx(i),g=s$(d,i,Jc),HS(i,!1)),Fr(),g!==null){Qr=g;return}}else{var C=dte(d,i);if(C!==null){C.flags&=Xw,Qr=C;return}if((i.mode&Pt)!==Ot){HS(i,!1);for(var b=i.actualDuration,k=i.child;k!==null;)b+=k.actualDuration,k=k.sibling;i.actualDuration=b}if(h!==null)h.flags|=_a,h.subtreeFlags=Rt,h.deletions=null;else{oi=vI,Qr=null;return}}var x=i.sibling;if(x!==null){Qr=x;return}i=h,Qr=i}while(i!==null);oi===ud&&(oi=T$)}function Fp(o,i,d){var h=Xa(),g=ji.transition;try{ji.transition=null,To(gi),gne(o,i,d,h)}finally{ji.transition=g,To(h)}return null}function gne(o,i,d,h){do hd();while(jf!==null);if(Ane(),(wn&(zi|Js))!==ni)throw new Error("Should not already be working.");var g=o.finishedWork,C=o.finishedLanes;if(mm(C),g===null)return I_(),null;if(C===Se&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),o.finishedWork=null,o.finishedLanes=Se,g===o.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.");o.callbackNode=null,o.callbackPriority=En;var b=Zt(g.lanes,g.childLanes);j_(o,b),o===Ra&&(Ra=null,Qr=null,ri=Se),((g.subtreeFlags&Ga)!==Rt||(g.flags&Ga)!==Rt)&&(Lp||(Lp=!0,CI=d,II(zs,function(){return hd(),null})));var k=(g.subtreeFlags&(of|aa|mi|Ga))!==Rt,x=(g.flags&(of|aa|mi|Ga))!==Rt;if(k||x){var M=ji.transition;ji.transition=null;var L=Xa();To(gi);var X=wn;wn|=Js,pI.current=null,mte(o,g),DF(),Ite(o,g,C),IJ(o.containerInfo),o.current=g,sb(C),Ote(g,o,C),sf(),eb(),wn=X,To(L),ji.transition=M}else o.current=g,DF();var Y=Lp;if(Lp?(Lp=!1,jf=o,Y0=C):(Ig=0,XS=null),b=o.pendingLanes,b===Se&&(xg=null),Y||z$(o.current,!1),Al(g.stateNode,h),Qo&&o.memoizedUpdaters.clear(),Qte(),is(o,Rr()),i!==null)for(var ue=o.onRecoverableError,fe=0;fe<i.length;fe++){var we=i[fe],at=we.stack,kt=we.digest;ue(we.value,{componentStack:at,digest:kt})}if(YS){YS=!1;var Et=yI;throw yI=null,Et}return ua(Y0,Dt)&&o.tag!==Of&&hd(),b=o.pendingLanes,ua(b,Dt)?(Ree(),o===EI?Q0++:(Q0=0,EI=o)):Q0=0,Nf(),I_(),null}function hd(){if(jf!==null){var o=fp(Y0),i=Vk(Ol,o),d=ji.transition,h=Xa();try{return ji.transition=null,To(i),_ne()}finally{To(h),ji.transition=d}}return!1}function yne(o){_I.push(o),Lp||(Lp=!0,II(zs,function(){return hd(),null}))}function _ne(){if(jf===null)return!1;var o=CI;CI=null;var i=jf,d=Y0;if(jf=null,Y0=Se,(wn&(zi|Js))!==ni)throw new Error("Cannot flush passive effects while already rendering.");wI=!0,QS=!1,lb(d);var h=wn;wn|=Js,Fte(i.current),Pte(i,i.current,d,o);{var g=_I;_I=[];for(var C=0;C<g.length;C++){var b=g[C];Cte(i,b)}}np(),z$(i.current,!0),wn=h,Nf(),QS?i===XS?Ig++:(Ig=0,XS=i):Ig=0,wI=!1,QS=!1,Nc(i);{var k=i.current.stateNode;k.effectDuration=0,k.passiveEffectDuration=0}return!0}function $$(o){return xg!==null&&xg.has(o)}function Cne(o){xg===null?xg=new Set([o]):xg.add(o)}function Ene(o){YS||(YS=!0,yI=o)}var wne=Ene;function H$(o,i,d){var h=Mp(d,i),g=UF(o,h,Dt),C=Pf(o,g,Dt),b=ka();C!==null&&(Gu(C,Dt,b),is(C,b))}function pr(o,i,d){if(hte(d),eC(!1),o.tag===E){H$(o,o,d);return}var h=null;for(h=i;h!==null;){if(h.tag===E){H$(h,o,d);return}else if(h.tag===m){var g=h.type,C=h.stateNode;if(typeof g.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&!$$(C)){var b=Mp(d,o),k=Gx(h,b,Dt),x=Pf(h,k,Dt),M=ka();x!==null&&(Gu(x,Dt,M),is(x,M));return}}h=h.return}c(`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 bne(o,i,d){var h=o.pingCache;h!==null&&h.delete(i);var g=ka();H_(o,d),Nne(o),Ra===o&&Ku(ri,d)&&(oi===q0||oi===KS&&Fm(ri)&&Rr()-gI<R$?Up(o,Se):WS=Zt(WS,d)),is(o,g)}function j$(o,i){i===En&&(i=rne(o));var d=ka(),h=ns(o,i);h!==null&&(Gu(h,i,d),is(h,d))}function Sne(o){var i=o.memoizedState,d=En;i!==null&&(d=i.retryLane),j$(o,d)}function Tne(o,i){var d=En,h;switch(o.tag){case V:h=o.stateNode;var g=o.memoizedState;g!==null&&(d=g.retryLane);break;case Me:h=o.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}h!==null&&h.delete(i),j$(o,d)}function Rne(o){return o<120?120:o<480?480:o<1080?1080:o<1920?1920:o<3e3?3e3:o<4320?4320:Zte(o/1960)*1960}function kne(){if(Q0>tne)throw Q0=0,EI=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.");Ig>nne&&(Ig=0,XS=null,c("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 Ane(){Fl.flushLegacyContextWarning(),Fl.flushPendingUnsafeLifecycleWarnings()}function z$(o,i){Ln(o),nT(o,ia,Gte),i&&nT(o,Lu,Wte),nT(o,ia,Vte),i&&nT(o,Lu,Kte),Fr()}function nT(o,i,d){for(var h=o,g=null;h!==null;){var C=h.subtreeFlags&i;h!==g&&h.child!==null&&C!==Rt?h=h.child:((h.flags&i)!==Rt&&d(h),h.sibling!==null?h=h.sibling:h=g=h.return)}}var rT=null;function B$(o){{if((wn&zi)!==ni||!(o.mode&ln))return;var i=o.tag;if(i!==y&&i!==E&&i!==m&&i!==p&&i!==q&&i!==te&&i!==Z)return;var d=qt(o)||"ReactComponent";if(rT!==null){if(rT.has(d))return;rT.add(d)}else rT=new Set([d]);var h=Tr;try{Ln(o),c("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?Ln(o):Fr()}}}var kI;{var xne=null;kI=function(o,i,d){var h=X$(xne,i);try{return n$(o,i,d)}catch(C){if(zZ()||C!==null&&typeof C=="object"&&typeof C.then=="function")throw C;if(lS(),uF(),l$(o,i),X$(i,h),i.mode&Pt&&jx(i),Du(null,n$,null,o,i,d),Fk()){var g=__();typeof g=="object"&&g!==null&&g._suppressLogging&&typeof C=="object"&&C!==null&&!C._suppressLogging&&(C._suppressLogging=!0)}throw C}}}var q$=!1,AI;AI=new Set;function Ine(o){if(ea&&!bee())switch(o.tag){case p:case q:case Z:{var i=Qr&&qt(Qr)||"Unknown",d=i;if(!AI.has(d)){AI.add(d);var h=qt(o)||"Unknown";c("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,i,i)}break}case m:{q$||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),q$=!0);break}}}function Z0(o,i){if(Qo){var d=o.memoizedUpdaters;d.forEach(function(h){z_(o,h,i)})}}var xI={};function II(o,i){{var d=Kl.current;return d!==null?(d.push(i),xI):fm(o,i)}}function V$(o){if(o!==xI)return Zw(o)}function K$(){return Kl.current!==null}function One(o){{if(o.mode&ln){if(!b$())return}else if(!Jte()||wn!==ni||o.tag!==p&&o.tag!==q&&o.tag!==Z)return;if(Kl.current===null){var i=Tr;try{Ln(o),c(`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`,qt(o))}finally{i?Ln(o):Fr()}}}}function Nne(o){o.tag!==Of&&b$()&&Kl.current===null&&c(`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 eC(o){x$=o}var Zs=null,Og=null,Mne=function(o){Zs=o};function Ng(o){{if(Zs===null)return o;var i=Zs(o);return i===void 0?o:i.current}}function OI(o){return Ng(o)}function NI(o){{if(Zs===null)return o;var i=Zs(o);if(i===void 0){if(o!=null&&typeof o.render=="function"){var d=Ng(o.render);if(o.render!==d){var h={$$typeof:We,render:d};return o.displayName!==void 0&&(h.displayName=o.displayName),h}}return o}return i.current}}function G$(o,i){{if(Zs===null)return!1;var d=o.elementType,h=i.type,g=!1,C=typeof h=="object"&&h!==null?h.$$typeof:null;switch(o.tag){case m:{typeof h=="function"&&(g=!0);break}case p:{(typeof h=="function"||C===bt)&&(g=!0);break}case q:{(C===We||C===bt)&&(g=!0);break}case te:case Z:{(C===Ft||C===bt)&&(g=!0);break}default:return!1}if(g){var b=Zs(d);if(b!==void 0&&b===Zs(h))return!0}return!1}}function W$(o){{if(Zs===null||typeof WeakSet!="function")return;Og===null&&(Og=new WeakSet),Og.add(o)}}var Pne=function(o,i){{if(Zs===null)return;var d=i.staleFamilies,h=i.updatedFamilies;hd(),fd(function(){MI(o.current,h,d)})}},Dne=function(o,i){{if(o.context!==Ts)return;hd(),fd(function(){tC(i,o,null,null)})}};function MI(o,i,d){{var h=o.alternate,g=o.child,C=o.sibling,b=o.tag,k=o.type,x=null;switch(b){case p:case Z:case m:x=k;break;case q:x=k.render;break}if(Zs===null)throw new Error("Expected resolveFamily to be set during hot reload.");var M=!1,L=!1;if(x!==null){var X=Zs(x);X!==void 0&&(d.has(X)?L=!0:i.has(X)&&(b===m?L=!0:M=!0))}if(Og!==null&&(Og.has(o)||h!==null&&Og.has(h))&&(L=!0),L&&(o._debugNeedsRemount=!0),L||M){var Y=ns(o,Dt);Y!==null&&ii(Y,o,Dt,tr)}g!==null&&!L&&MI(g,i,d),C!==null&&MI(C,i,d)}}var Lne=function(o,i){{var d=new Set,h=new Set(i.map(function(g){return g.current}));return PI(o.current,h,d),d}};function PI(o,i,d){{var h=o.child,g=o.sibling,C=o.tag,b=o.type,k=null;switch(C){case p:case Z:case m:k=b;break;case q:k=b.render;break}var x=!1;k!==null&&i.has(k)&&(x=!0),x?Une(o,d):h!==null&&PI(h,i,d),g!==null&&PI(g,i,d)}}function Une(o,i){{var d=Fne(o,i);if(d)return;for(var h=o;;){switch(h.tag){case T:i.add(h.stateNode);return;case S:i.add(h.stateNode.containerInfo);return;case E:i.add(h.stateNode.containerInfo);return}if(h.return===null)throw new Error("Expected to reach root first.");h=h.return}}}function Fne(o,i){for(var d=o,h=!1;;){if(d.tag===T)h=!0,i.add(d.stateNode);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===o)return h;for(;d.sibling===null;){if(d.return===null||d.return===o)return h;d=d.return}d.sibling.return=d.return,d=d.sibling}return!1}var DI;{DI=!1;try{var Y$=Object.preventExtensions({})}catch{DI=!0}}function $ne(o,i,d,h){this.tag=o,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=i,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=h,this.flags=Rt,this.subtreeFlags=Rt,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,!DI&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Rs=function(o,i,d,h){return new $ne(o,i,d,h)};function LI(o){var i=o.prototype;return!!(i&&i.isReactComponent)}function Hne(o){return typeof o=="function"&&!LI(o)&&o.defaultProps===void 0}function jne(o){if(typeof o=="function")return LI(o)?m:p;if(o!=null){var i=o.$$typeof;if(i===We)return q;if(i===Ft)return te}return y}function $p(o,i){var d=o.alternate;d===null?(d=Rs(o.tag,i,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d._debugSource=o._debugSource,d._debugOwner=o._debugOwner,d._debugHookTypes=o._debugHookTypes,d.alternate=o,o.alternate=d):(d.pendingProps=i,d.type=o.type,d.flags=Rt,d.subtreeFlags=Rt,d.deletions=null,d.actualDuration=0,d.actualStartTime=-1),d.flags=o.flags&Yo,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue;var h=o.dependencies;switch(d.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.selfBaseDuration=o.selfBaseDuration,d.treeBaseDuration=o.treeBaseDuration,d._debugNeedsRemount=o._debugNeedsRemount,d.tag){case y:case p:case Z:d.type=Ng(o.type);break;case m:d.type=OI(o.type);break;case q:d.type=NI(o.type);break}return d}function zne(o,i){o.flags&=Yo|ur;var d=o.alternate;if(d===null)o.childLanes=Se,o.lanes=i,o.child=null,o.subtreeFlags=Rt,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null,o.selfBaseDuration=0,o.treeBaseDuration=0;else{o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=Rt,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type;var h=d.dependencies;o.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},o.selfBaseDuration=d.selfBaseDuration,o.treeBaseDuration=d.treeBaseDuration}return o}function Bne(o,i,d){var h;return o===eS?(h=ln,i===!0&&(h|=kr,h|=Ya)):h=Ot,Qo&&(h|=Pt),Rs(E,null,null,h)}function UI(o,i,d,h,g,C){var b=y,k=o;if(typeof o=="function")LI(o)?(b=m,k=OI(k)):k=Ng(k);else if(typeof o=="string")b=T;else e:switch(o){case Go:return qf(d.children,g,C,i);case Ji:b=F,g|=kr,(g&ln)!==Ot&&(g|=Ya);break;case z:return qne(d,g,C,i);case Ht:return Vne(d,g,C,i);case Tt:return Kne(d,g,C,i);case or:return Q$(d,g,C,i);case Wo:case Ur:case Ls:case $d:case rr:default:{if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Ce:b=D;break e;case $e:b=H;break e;case We:b=q,k=NI(k);break e;case Ft:b=te;break e;case bt:b=Ne,k=null;break e}var x="";{(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).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?qt(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: "+(o==null?o:typeof o)+"."+x))}}var L=Rs(b,d,i,g);return L.elementType=o,L.type=k,L.lanes=C,L._debugOwner=h,L}function FI(o,i,d){var h=null;h=o._owner;var g=o.type,C=o.key,b=o.props,k=UI(g,C,b,h,i,d);return k._debugSource=o._source,k._debugOwner=o._owner,k}function qf(o,i,d,h){var g=Rs(O,o,h,i);return g.lanes=d,g}function qne(o,i,d,h){typeof o.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof o.id);var g=Rs(U,o,h,i|Pt);return g.elementType=z,g.lanes=d,g.stateNode={effectDuration:0,passiveEffectDuration:0},g}function Vne(o,i,d,h){var g=Rs(V,o,h,i);return g.elementType=Ht,g.lanes=d,g}function Kne(o,i,d,h){var g=Rs(Me,o,h,i);return g.elementType=Tt,g.lanes=d,g}function Q$(o,i,d,h){var g=Rs(ee,o,h,i);g.elementType=or,g.lanes=d;var C={isHidden:!1};return g.stateNode=C,g}function $I(o,i,d){var h=Rs(A,o,null,i);return h.lanes=d,h}function Gne(){var o=Rs(T,null,null,Ot);return o.elementType="DELETED",o}function Wne(o){var i=Rs(it,null,null,Ot);return i.stateNode=o,i}function HI(o,i,d){var h=o.children!==null?o.children:[],g=Rs(S,h,o.key,i);return g.lanes=d,g.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},g}function X$(o,i){return o===null&&(o=Rs(y,null,null,Ot)),o.tag=i.tag,o.key=i.key,o.elementType=i.elementType,o.type=i.type,o.stateNode=i.stateNode,o.return=i.return,o.child=i.child,o.sibling=i.sibling,o.index=i.index,o.ref=i.ref,o.pendingProps=i.pendingProps,o.memoizedProps=i.memoizedProps,o.updateQueue=i.updateQueue,o.memoizedState=i.memoizedState,o.dependencies=i.dependencies,o.mode=i.mode,o.flags=i.flags,o.subtreeFlags=i.subtreeFlags,o.deletions=i.deletions,o.lanes=i.lanes,o.childLanes=i.childLanes,o.alternate=i.alternate,o.actualDuration=i.actualDuration,o.actualStartTime=i.actualStartTime,o.selfBaseDuration=i.selfBaseDuration,o.treeBaseDuration=i.treeBaseDuration,o._debugSource=i._debugSource,o._debugOwner=i._debugOwner,o._debugNeedsRemount=i._debugNeedsRemount,o._debugHookTypes=i._debugHookTypes,o}function Yne(o,i,d,h,g){this.tag=i,this.containerInfo=o,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=EA,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=En,this.eventTimes=Hm(Se),this.expirationTimes=Hm(tr),this.pendingLanes=Se,this.suspendedLanes=Se,this.pingedLanes=Se,this.expiredLanes=Se,this.mutableReadLanes=Se,this.finishedLanes=Se,this.entangledLanes=Se,this.entanglements=Hm(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<fr;b++)C.push(new Set)}switch(i){case eS:this._debugRootType=d?"hydrateRoot()":"createRoot()";break;case Of:this._debugRootType=d?"hydrate()":"render()";break}}function J$(o,i,d,h,g,C,b,k,x,M){var L=new Yne(o,i,d,k,x),X=Bne(i,C);L.current=X,X.stateNode=L;{var Y={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null};X.memoizedState=Y}return WA(X),L}var jI="18.2.0";function Qne(o,i,d){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return No(h),{$$typeof:ao,key:h==null?null:""+h,children:o,containerInfo:i,implementation:d}}var zI,BI;zI=!1,BI={};function Z$(o){if(!o)return Ts;var i=qa(o),d=MZ(i);if(i.tag===m){var h=i.type;if(Vc(h))return TU(i,h,d)}return d}function Xne(o,i){{var d=qa(o);if(d===void 0){if(typeof o.render=="function")throw new Error("Unable to find node on an unmounted component.");var h=Object.keys(o).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+h)}var g=Wa(d);if(g===null)return null;if(g.mode&kr){var C=qt(d)||"Component";if(!BI[C]){BI[C]=!0;var b=Tr;try{Ln(g),d.mode&kr?c("%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",i,i,C):c("%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",i,i,C)}finally{b?Ln(b):Fr()}}}return g.stateNode}}function eH(o,i,d,h,g,C,b,k){var x=!1,M=null;return J$(o,i,x,M,d,h,g,C,b)}function tH(o,i,d,h,g,C,b,k,x,M){var L=!0,X=J$(d,h,L,o,g,C,b,k,x);X.context=Z$(null);var Y=X.current,ue=ka(),fe=zf(Y),we=ld(ue,fe);return we.callback=i??null,Pf(Y,we,fe),one(X,fe,ue),X}function tC(o,i,d,h){tb(i,o);var g=i.current,C=ka(),b=zf(g);Fu(b);var k=Z$(d);i.context===null?i.context=k:i.pendingContext=k,ea&&Tr!==null&&!zI&&(zI=!0,c(`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.`,qt(Tr)||"Unknown"));var x=ld(C,b);x.payload={element:o},h=h===void 0?null:h,h!==null&&(typeof h!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",h),x.callback=h);var M=Pf(g,x,b);return M!==null&&(ii(M,g,b,C),hS(M,g,b)),b}function oT(o){var i=o.current;if(!i.child)return null;switch(i.child.tag){case T:return i.child.stateNode;default:return i.child.stateNode}}function Jne(o){switch(o.tag){case E:{var i=o.stateNode;if(Ro(i)){var d=jk(i);lne(i,d)}break}case V:{fd(function(){var g=ns(o,Dt);if(g!==null){var C=ka();ii(g,o,Dt,C)}});var h=Dt;qI(o,h);break}}}function nH(o,i){var d=o.memoizedState;d!==null&&d.dehydrated!==null&&(d.retryLane=hb(d.retryLane,i))}function qI(o,i){nH(o,i);var d=o.alternate;d&&nH(d,i)}function Zne(o){if(o.tag===V){var i=cf,d=ns(o,i);if(d!==null){var h=ka();ii(d,o,i,h)}qI(o,i)}}function ere(o){if(o.tag===V){var i=zf(o),d=ns(o,i);if(d!==null){var h=ka();ii(d,o,i,h)}qI(o,i)}}function rH(o){var i=Jw(o);return i===null?null:i.stateNode}var oH=function(o){return null};function tre(o){return oH(o)}var iH=function(o){return!1};function nre(o){return iH(o)}var aH=null,sH=null,lH=null,cH=null,uH=null,dH=null,fH=null,hH=null,pH=null;{var vH=function(o,i,d){var h=i[d],g=yn(o)?o.slice():an({},o);return d+1===i.length?(yn(g)?g.splice(h,1):delete g[h],g):(g[h]=vH(o[h],i,d+1),g)},mH=function(o,i){return vH(o,i,0)},gH=function(o,i,d,h){var g=i[h],C=yn(o)?o.slice():an({},o);if(h+1===i.length){var b=d[h];C[b]=C[g],yn(C)?C.splice(g,1):delete C[g]}else C[g]=gH(o[g],i,d,h+1);return C},yH=function(o,i,d){if(i.length!==d.length){l("copyWithRename() expects paths of the same length");return}else for(var h=0;h<d.length-1;h++)if(i[h]!==d[h]){l("copyWithRename() expects paths to be the same except for the deepest key");return}return gH(o,i,d,0)},_H=function(o,i,d,h){if(d>=i.length)return h;var g=i[d],C=yn(o)?o.slice():an({},o);return C[g]=_H(o[g],i,d+1,h),C},CH=function(o,i,d){return _H(o,i,0,d)},VI=function(o,i){for(var d=o.memoizedState;d!==null&&i>0;)d=d.next,i--;return d};aH=function(o,i,d,h){var g=VI(o,i);if(g!==null){var C=CH(g.memoizedState,d,h);g.memoizedState=C,g.baseState=C,o.memoizedProps=an({},o.memoizedProps);var b=ns(o,Dt);b!==null&&ii(b,o,Dt,tr)}},sH=function(o,i,d){var h=VI(o,i);if(h!==null){var g=mH(h.memoizedState,d);h.memoizedState=g,h.baseState=g,o.memoizedProps=an({},o.memoizedProps);var C=ns(o,Dt);C!==null&&ii(C,o,Dt,tr)}},lH=function(o,i,d,h){var g=VI(o,i);if(g!==null){var C=yH(g.memoizedState,d,h);g.memoizedState=C,g.baseState=C,o.memoizedProps=an({},o.memoizedProps);var b=ns(o,Dt);b!==null&&ii(b,o,Dt,tr)}},cH=function(o,i,d){o.pendingProps=CH(o.memoizedProps,i,d),o.alternate&&(o.alternate.pendingProps=o.pendingProps);var h=ns(o,Dt);h!==null&&ii(h,o,Dt,tr)},uH=function(o,i){o.pendingProps=mH(o.memoizedProps,i),o.alternate&&(o.alternate.pendingProps=o.pendingProps);var d=ns(o,Dt);d!==null&&ii(d,o,Dt,tr)},dH=function(o,i,d){o.pendingProps=yH(o.memoizedProps,i,d),o.alternate&&(o.alternate.pendingProps=o.pendingProps);var h=ns(o,Dt);h!==null&&ii(h,o,Dt,tr)},fH=function(o){var i=ns(o,Dt);i!==null&&ii(i,o,Dt,tr)},hH=function(o){oH=o},pH=function(o){iH=o}}function rre(o){var i=Wa(o);return i===null?null:i.stateNode}function ore(o){return null}function ire(){return Tr}function are(o){var i=o.findFiberByHostInstance,d=t.ReactCurrentDispatcher;return A_({bundleType:o.bundleType,version:o.version,rendererPackageName:o.rendererPackageName,rendererConfig:o.rendererConfig,overrideHookState:aH,overrideHookStateDeletePath:sH,overrideHookStateRenamePath:lH,overrideProps:cH,overridePropsDeletePath:uH,overridePropsRenamePath:dH,setErrorHandler:hH,setSuspenseHandler:pH,scheduleUpdate:fH,currentDispatcherRef:d,findHostInstanceByFiber:rre,findFiberByHostInstance:i||ore,findHostInstancesForRefresh:Lne,scheduleRefresh:Pne,scheduleRoot:Dne,setRefreshHandler:Mne,getCurrentFiber:ire,reconcilerVersion:jI})}var EH=typeof reportError=="function"?reportError:function(o){console.error(o)};function KI(o){this._internalRoot=o}iT.prototype.render=KI.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):aT(arguments[1])?c("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"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var d=i.containerInfo;if(d.nodeType!==so){var h=rH(i.current);h&&h.parentNode!==d&&c("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.")}}tC(o,i,null,null)},iT.prototype.unmount=KI.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;M$()&&c("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."),fd(function(){tC(null,o,null,null)}),CU(i)}};function sre(o,i){if(!aT(o))throw new Error("createRoot(...): Target container is not a DOM element.");wH(o);var d=!1,h=!1,g="",C=EH;i!=null&&(i.hydrate?l("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===io&&c(`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 />);`),i.unstable_strictMode===!0&&(d=!0),i.identifierPrefix!==void 0&&(g=i.identifierPrefix),i.onRecoverableError!==void 0&&(C=i.onRecoverableError),i.transitionCallbacks!==void 0&&i.transitionCallbacks);var b=eH(o,eS,null,d,h,g,C);Gb(b.current,o);var k=o.nodeType===so?o.parentNode:o;return c0(k),new KI(b)}function iT(o){this._internalRoot=o}function lre(o){o&&Eb(o)}iT.prototype.unstable_scheduleHydration=lre;function cre(o,i,d){if(!aT(o))throw new Error("hydrateRoot(...): Target container is not a DOM element.");wH(o),i===void 0&&c("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=EH;d!=null&&(d.unstable_strictMode===!0&&(C=!0),d.identifierPrefix!==void 0&&(k=d.identifierPrefix),d.onRecoverableError!==void 0&&(x=d.onRecoverableError));var M=tH(i,null,o,eS,h,C,b,k,x);if(Gb(M.current,o),c0(o),g)for(var L=0;L<g.length;L++){var X=g[L];gee(M,X)}return new iT(M)}function aT(o){return!!(o&&(o.nodeType===na||o.nodeType===Cs||o.nodeType===xu||!ke))}function nC(o){return!!(o&&(o.nodeType===na||o.nodeType===Cs||o.nodeType===xu||o.nodeType===so&&o.nodeValue===" react-mount-point-unstable "))}function wH(o){o.nodeType===na&&o.tagName&&o.tagName.toUpperCase()==="BODY"&&c("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."),C0(o)&&(o._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("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 ure=t.ReactCurrentOwner,bH;bH=function(o){if(o._reactRootContainer&&o.nodeType!==so){var i=rH(o._reactRootContainer.current);i&&i.parentNode!==o&&c("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=!!o._reactRootContainer,h=GI(o),g=!!(h&&xf(h));g&&!d&&c("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."),o.nodeType===na&&o.tagName&&o.tagName.toUpperCase()==="BODY"&&c("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 GI(o){return o?o.nodeType===Cs?o.documentElement:o.firstChild:null}function SH(){}function dre(o,i,d,h,g){if(g){if(typeof h=="function"){var C=h;h=function(){var Y=oT(b);C.call(Y)}}var b=tH(i,h,o,Of,null,!1,!1,"",SH);o._reactRootContainer=b,Gb(b.current,o);var k=o.nodeType===so?o.parentNode:o;return c0(k),fd(),b}else{for(var x;x=o.lastChild;)o.removeChild(x);if(typeof h=="function"){var M=h;h=function(){var Y=oT(L);M.call(Y)}}var L=eH(o,Of,null,!1,!1,"",SH);o._reactRootContainer=L,Gb(L.current,o);var X=o.nodeType===so?o.parentNode:o;return c0(X),fd(function(){tC(i,L,d,h)}),L}}function fre(o,i){o!==null&&typeof o!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i,o)}function sT(o,i,d,h,g){bH(d),fre(g===void 0?null:g,"render");var C=d._reactRootContainer,b;if(!C)b=dre(d,i,o,g,h);else{if(b=C,typeof g=="function"){var k=g;g=function(){var x=oT(b);k.call(x)}}tC(i,b,o,g)}return oT(b)}function hre(o){{var i=ure.current;if(i!==null&&i.stateNode!==null){var d=i.stateNode._warnedAboutRefsInRender;d||c("%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.",Tn(i.type)||"A component"),i.stateNode._warnedAboutRefsInRender=!0}}return o==null?null:o.nodeType===na?o:Xne(o,"findDOMNode")}function pre(o,i,d){if(c("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"),!nC(i))throw new Error("Target container is not a DOM element.");{var h=C0(i)&&i._reactRootContainer===void 0;h&&c("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 sT(null,o,i,!0,d)}function vre(o,i,d){if(c("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"),!nC(i))throw new Error("Target container is not a DOM element.");{var h=C0(i)&&i._reactRootContainer===void 0;h&&c("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 sT(null,o,i,!1,d)}function mre(o,i,d,h){if(c("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"),!nC(d))throw new Error("Target container is not a DOM element.");if(o==null||!Zh(o))throw new Error("parentComponent must be a valid React Component");return sT(o,i,d,!1,h)}function gre(o){if(!nC(o))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var i=C0(o)&&o._reactRootContainer===void 0;i&&c("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(o._reactRootContainer){{var d=GI(o),h=d&&!xf(d);h&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return fd(function(){sT(null,null,o,!1,function(){o._reactRootContainer=null,CU(o)})}),!0}else{{var g=GI(o),C=!!(g&&xf(g)),b=o.nodeType===na&&nC(o.parentNode)&&!!o.parentNode._reactRootContainer;C&&c("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(Jne),vb(Zne),pp(ere),V_(Xa),gb(dp),(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")&&c("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"),Yw(CJ),sm(SI,cne,fd);function yre(o,i){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!aT(i))throw new Error("Target container is not a DOM element.");return Qne(o,i,null,d)}function _re(o,i,d,h){return mre(o,i,d,h)}var WI={usingClientEntryPoint:!1,Events:[xf,cg,Wb,am,Qh,SI]};function Cre(o,i){return WI.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),sre(o,i)}function Ere(o,i,d){return WI.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),cre(o,i,d)}function wre(o){return M$()&&c("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."),fd(o)}var bre=are({findFiberByHostInstance:Sp,bundleType:1,version:jI,rendererPackageName:"react-dom"});if(!bre&&ar&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var TH=window.location.protocol;/^(https?|file):$/.test(TH)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(TH==="file:"?`
234
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Oa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WI,Oa.createPortal=yre,Oa.createRoot=Cre,Oa.findDOMNode=hre,Oa.flushSync=wre,Oa.hydrate=pre,Oa.hydrateRoot=Ere,Oa.render=vre,Oa.unmountComponentAtNode=gre,Oa.unstable_batchedUpdates=SI,Oa.unstable_renderSubtreeIntoContainer=_re,Oa.version=jI,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Oa}function aO(){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(aO)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(aO(),dT.exports=MH()):dT.exports=PH();var pT=dT.exports,$g=pT;if(process.env.NODE_ENV==="production")Fg.createRoot=$g.createRoot,Fg.hydrateRoot=$g.hydrateRoot;else{var iC=$g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Fg.createRoot=function(n,e){iC.usingClientEntryPoint=!0;try{return $g.createRoot(n,e)}finally{iC.usingClientEntryPoint=!1}},Fg.hydrateRoot=function(n,e,t){iC.usingClientEntryPoint=!0;try{return $g.hydrateRoot(n,e,t)}finally{iC.usingClientEntryPoint=!1}}}var vT={exports:{}};const DH="2.0.0",sO=256,LH=Number.MAX_SAFE_INTEGER||9007199254740991,UH=16,FH=sO-6;var aC={MAX_LENGTH:sO,MAX_SAFE_COMPONENT_LENGTH:UH,MAX_SAFE_BUILD_LENGTH:FH,MAX_SAFE_INTEGER:LH,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:DH,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},sC=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}=aC,l=sC;e=n.exports={};const c=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=O=>{for(const[F,H]of S)O=O.split(`${F}*`).join(`${F}{0,${H}}`).split(`${F}+`).join(`${F}{1,${H}}`);return O},A=(O,F,H)=>{const D=T(F),q=y++;l(O,q,F),m[O]=q,p[q]=F,c[q]=new RegExp(F,H?"g":void 0),f[q]=new RegExp(D,H?"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*$")})(vT,vT.exports);var Hg=vT.exports;const $H=Object.freeze({loose:!0}),HH=Object.freeze({});var mT=n=>n?typeof n!="object"?$H:n:HH;const lO=/^[0-9]+$/,cO=(n,e)=>{const t=lO.test(n),r=lO.test(e);return t&&r&&(n=+n,e=+e),n===e?0:t&&!r?-1:r&&!t?1:n<e?-1:1};var uO={compareIdentifiers:cO,rcompareIdentifiers:(n,e)=>cO(e,n)};const lC=sC,{MAX_LENGTH:dO,MAX_SAFE_INTEGER:cC}=aC,{safeRe:fO,t:hO}=Hg,jH=mT,{compareIdentifiers:Hp}=uO;var ma=class eu{constructor(e,t){if(t=jH(t),e instanceof eu){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>dO)throw new TypeError(`version is longer than ${dO} characters`);lC("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?fO[hO.LOOSE]:fO[hO.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>cC||this.major<0)throw new TypeError("Invalid major version");if(this.minor>cC||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>cC||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<cC)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(lC("SemVer.compare",this.version,this.options,e),!(e instanceof eu)){if(typeof e=="string"&&e===this.version)return 0;e=new eu(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof eu||(e=new eu(e,this.options)),Hp(this.major,e.major)||Hp(this.minor,e.minor)||Hp(this.patch,e.patch)}comparePre(e){if(e instanceof eu||(e=new eu(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(lC("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 Hp(r,a)}while(++t)}compareBuild(e){e instanceof eu||(e=new eu(e,this.options));let t=0;do{const r=this.build[t],a=e.build[t];if(lC("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 Hp(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]),Hp(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 pO=ma;var jp=(n,e,t=!1)=>{if(n instanceof pO)return n;try{return new pO(n,e)}catch(r){if(!t)return null;throw r}};const zH=jp;var BH=(n,e)=>{const t=zH(n,e);return t?t.version:null};const qH=jp;var VH=(n,e)=>{const t=qH(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null};const vO=ma;var KH=(n,e,t,r,a)=>{typeof t=="string"&&(a=r,r=t,t=void 0);try{return new vO(n instanceof vO?n.version:n,t).inc(e,r,a).version}catch{return null}};const mO=jp;var GH=(n,e)=>{const t=mO(n,null,!0),r=mO(e,null,!0),a=t.compare(r);if(a===0)return null;const l=a>0,c=l?t:r,f=l?r:t,p=!!c.prerelease.length;if(!!f.prerelease.length&&!p)return!f.patch&&!f.minor?"major":c.patch?"patch":c.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 WH=ma;var YH=(n,e)=>new WH(n,e).major;const QH=ma;var XH=(n,e)=>new QH(n,e).minor;const JH=ma;var ZH=(n,e)=>new JH(n,e).patch;const e4=jp;var t4=(n,e)=>{const t=e4(n,e);return t&&t.prerelease.length?t.prerelease:null};const gO=ma;var el=(n,e,t)=>new gO(n,t).compare(new gO(e,t));const n4=el;var r4=(n,e,t)=>n4(e,n,t);const o4=el;var i4=(n,e)=>o4(n,e,!0);const yO=ma;var gT=(n,e,t)=>{const r=new yO(n,t),a=new yO(e,t);return r.compare(a)||r.compareBuild(a)};const a4=gT;var s4=(n,e)=>n.sort((t,r)=>a4(t,r,e));const l4=gT;var c4=(n,e)=>n.sort((t,r)=>l4(r,t,e));const u4=el;var uC=(n,e,t)=>u4(n,e,t)>0;const d4=el;var yT=(n,e,t)=>d4(n,e,t)<0;const f4=el;var _O=(n,e,t)=>f4(n,e,t)===0;const h4=el;var CO=(n,e,t)=>h4(n,e,t)!==0;const p4=el;var _T=(n,e,t)=>p4(n,e,t)>=0;const v4=el;var CT=(n,e,t)=>v4(n,e,t)<=0;const m4=_O,g4=CO,y4=uC,_4=_T,C4=yT,E4=CT;var EO=(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 m4(n,t,r);case"!=":return g4(n,t,r);case">":return y4(n,t,r);case">=":return _4(n,t,r);case"<":return C4(n,t,r);case"<=":return E4(n,t,r);default:throw new TypeError(`Invalid operator: ${e}`)}};const w4=ma,b4=jp,{safeRe:dC,t:fC}=Hg;var S4=(n,e)=>{if(n instanceof w4)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(dC[fC.COERCE]);else{let r;for(;(r=dC[fC.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)(!t||r.index+r[0].length!==t.index+t[0].length)&&(t=r),dC[fC.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;dC[fC.COERCERTL].lastIndex=-1}return t===null?null:b4(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)},ET,wO;function T4(){return wO||(wO=1,ET=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),ET}var R4=Pn;Pn.Node=Vf,Pn.create=Pn;function Pn(n){var e=this;if(e instanceof Pn||(e=new Pn),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}Pn.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},Pn.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++}},Pn.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++}},Pn.prototype.push=function(){for(var n=0,e=arguments.length;n<e;n++)A4(this,arguments[n]);return this.length},Pn.prototype.unshift=function(){for(var n=0,e=arguments.length;n<e;n++)x4(this,arguments[n]);return this.length},Pn.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}},Pn.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}},Pn.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},Pn.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},Pn.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},Pn.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},Pn.prototype.map=function(n,e){e=e||this;for(var t=new Pn,r=this.head;r!==null;)t.push(n.call(e,r.value,this)),r=r.next;return t},Pn.prototype.mapReverse=function(n,e){e=e||this;for(var t=new Pn,r=this.tail;r!==null;)t.push(n.call(e,r.value,this)),r=r.prev;return t},Pn.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},Pn.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},Pn.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},Pn.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},Pn.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 Pn;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},Pn.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 Pn;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},Pn.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=k4(this,a,t[r]);return l},Pn.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 k4(n,e,t){var r=e===n.head?new Vf(t,null,e,n):new Vf(t,e,e.next,n);return r.next===null&&(n.tail=r),r.prev===null&&(n.head=r),n.length++,r}function A4(n,e){n.tail=new Vf(e,n.tail,null,n),n.head||(n.head=n.tail),n.length++}function x4(n,e){n.head=new Vf(e,null,n.head,n),n.tail||(n.tail=n.head),n.length++}function Vf(n,e,t,r){if(!(this instanceof Vf))return new Vf(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{T4()(Pn)}catch{}const I4=R4,Kf=Symbol("max"),nu=Symbol("length"),zp=Symbol("lengthCalculator"),jg=Symbol("allowStale"),Gf=Symbol("maxAge"),ru=Symbol("dispose"),bO=Symbol("noDisposeOnSet"),ai=Symbol("lruList"),tl=Symbol("cache"),SO=Symbol("updateAgeOnGet"),wT=()=>1;class O4{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[Kf]=e.max||1/0;const t=e.length||wT;if(this[zp]=typeof t!="function"?wT:t,this[jg]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Gf]=e.maxAge||0,this[ru]=e.dispose,this[bO]=e.noDisposeOnSet||!1,this[SO]=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[Kf]=e||1/0,zg(this)}get max(){return this[Kf]}set allowStale(e){this[jg]=!!e}get allowStale(){return this[jg]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Gf]=e,zg(this)}get maxAge(){return this[Gf]}set lengthCalculator(e){typeof e!="function"&&(e=wT),e!==this[zp]&&(this[zp]=e,this[nu]=0,this[ai].forEach(t=>{t.length=this[zp](t.value,t.key),this[nu]+=t.length})),zg(this)}get lengthCalculator(){return this[zp]}get length(){return this[nu]}get itemCount(){return this[ai].length}rforEach(e,t){t=t||this;for(let r=this[ai].tail;r!==null;){const a=r.prev;TO(this,e,r,t),r=a}}forEach(e,t){t=t||this;for(let r=this[ai].head;r!==null;){const a=r.next;TO(this,e,r,t),r=a}}keys(){return this[ai].toArray().map(e=>e.key)}values(){return this[ai].toArray().map(e=>e.value)}reset(){this[ru]&&this[ai]&&this[ai].length&&this[ai].forEach(e=>this[ru](e.key,e.value)),this[tl]=new Map,this[ai]=new I4,this[nu]=0}dump(){return this[ai].map(e=>hC(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ai]}set(e,t,r){if(r=r||this[Gf],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const a=r?Date.now():0,l=this[zp](t,e);if(this[tl].has(e)){if(l>this[Kf])return Bp(this,this[tl].get(e)),!1;const p=this[tl].get(e).value;return this[ru]&&(this[bO]||this[ru](e,p.value)),p.now=a,p.maxAge=r,p.value=t,this[nu]+=l-p.length,p.length=l,this.get(e),zg(this),!0}const c=new N4(e,t,l,a,r);return c.length>this[Kf]?(this[ru]&&this[ru](e,t),!1):(this[nu]+=c.length,this[ai].unshift(c),this[tl].set(e,this[ai].head),zg(this),!0)}has(e){if(!this[tl].has(e))return!1;const t=this[tl].get(e).value;return!hC(this,t)}get(e){return bT(this,e,!0)}peek(e){return bT(this,e,!1)}pop(){const e=this[ai].tail;return e?(Bp(this,e),e.value):null}del(e){Bp(this,this[tl].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 c=l-t;c>0&&this.set(a.k,a.v,c)}}}prune(){this[tl].forEach((e,t)=>bT(this,t,!1))}}const bT=(n,e,t)=>{const r=n[tl].get(e);if(r){const a=r.value;if(hC(n,a)){if(Bp(n,r),!n[jg])return}else t&&(n[SO]&&(r.value.now=Date.now()),n[ai].unshiftNode(r));return a.value}},hC=(n,e)=>{if(!e||!e.maxAge&&!n[Gf])return!1;const t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[Gf]&&t>n[Gf]},zg=n=>{if(n[nu]>n[Kf])for(let e=n[ai].tail;n[nu]>n[Kf]&&e!==null;){const t=e.prev;Bp(n,e),e=t}},Bp=(n,e)=>{if(e){const t=e.value;n[ru]&&n[ru](t.key,t.value),n[nu]-=t.length,n[tl].delete(t.key),n[ai].removeNode(e)}};class N4{constructor(e,t,r,a,l){this.key=e,this.value=t,this.length=r,this.now=a,this.maxAge=l||0}}const TO=(n,e,t,r)=>{let a=t.value;hC(n,a)&&(Bp(n,t),n[jg]||(a=void 0)),a&&e.call(r,a.value,a.key,n)};var M4=O4,ST,RO;function nl(){if(RO)return ST;RO=1;class n{constructor(J,ye){if(ye=r(ye),J instanceof n)return J.loose===!!ye.loose&&J.includePrerelease===!!ye.includePrerelease?J:new n(J.raw,ye);if(J instanceof a)return this.raw=J.value,this.set=[[J]],this.format(),this;if(this.options=ye,this.loose=!!ye.loose,this.includePrerelease=!!ye.includePrerelease,this.raw=J.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&&O(he[0])){this.set=[he];break}}}this.format()}format(){return this.range=this.set.map(J=>J.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(J){const me=((this.options.includePrerelease&&S)|(this.options.loose&&T))+":"+J,he=t.get(me);if(he)return he;const G=this.options.loose,ge=G?f[p.HYPHENRANGELOOSE]:f[p.HYPHENRANGE];J=J.replace(ge,Me(this.options.includePrerelease)),l("hyphen replace",J),J=J.replace(f[p.COMPARATORTRIM],m),l("comparator trim",J),J=J.replace(f[p.TILDETRIM],y),l("tilde trim",J),J=J.replace(f[p.CARETTRIM],E),l("caret trim",J);let $=J.split(" ").map(Le=>H(Le,this.options)).join(" ").split(/\s+/).map(Le=>it(Le,this.options));G&&($=$.filter(Le=>(l("loose invalid filter",Le,this.options),!!Le.match(f[p.COMPARATORLOOSE])))),l("range list",$);const ne=new Map,ke=$.map(Le=>new a(Le,this.options));for(const Le of ke){if(A(Le))return[Le];ne.set(Le.value,Le)}ne.size>1&&ne.has("")&&ne.delete("");const lt=[...ne.values()];return t.set(me,lt),lt}intersects(J,ye){if(!(J instanceof n))throw new TypeError("a Range is required");return this.set.some(me=>F(me,ye)&&J.set.some(he=>F(he,ye)&&me.every(G=>he.every(ge=>G.intersects(ge,ye)))))}test(J){if(!J)return!1;if(typeof J=="string")try{J=new c(J,this.options)}catch{return!1}for(let ye=0;ye<this.set.length;ye++)if(ze(this.set[ye],J,this.options))return!0;return!1}}ST=n;const e=M4,t=new e({max:1e3}),r=mT,a=pC(),l=sC,c=ma,{safeRe:f,t:p,comparatorTrimReplace:m,tildeTrimReplace:y,caretTrimReplace:E}=Hg,{FLAG_INCLUDE_PRERELEASE:S,FLAG_LOOSE:T}=aC,A=ee=>ee.value==="<0.0.0-0",O=ee=>ee.value==="",F=(ee,J)=>{let ye=!0;const me=ee.slice();let he=me.pop();for(;ye&&me.length;)ye=me.every(G=>he.intersects(G,J)),he=me.pop();return ye},H=(ee,J)=>(l("comp",ee,J),ee=V(ee,J),l("caret",ee),ee=q(ee,J),l("tildes",ee),ee=Z(ee,J),l("xrange",ee),ee=Ze(ee,J),l("stars",ee),ee),D=ee=>!ee||ee.toLowerCase()==="x"||ee==="*",q=(ee,J)=>ee.trim().split(/\s+/).map(ye=>U(ye,J)).join(" "),U=(ee,J)=>{const ye=J.loose?f[p.TILDELOOSE]:f[p.TILDE];return ee.replace(ye,(me,he,G,ge,$)=>{l("tilde",ee,me,he,G,ge,$);let ne;return D(he)?ne="":D(G)?ne=`>=${he}.0.0 <${+he+1}.0.0-0`:D(ge)?ne=`>=${he}.${G}.0 <${he}.${+G+1}.0-0`:$?(l("replaceTilde pr",$),ne=`>=${he}.${G}.${ge}-${$} <${he}.${+G+1}.0-0`):ne=`>=${he}.${G}.${ge} <${he}.${+G+1}.0-0`,l("tilde return",ne),ne})},V=(ee,J)=>ee.trim().split(/\s+/).map(ye=>te(ye,J)).join(" "),te=(ee,J)=>{l("caret",ee,J);const ye=J.loose?f[p.CARETLOOSE]:f[p.CARET],me=J.includePrerelease?"-0":"";return ee.replace(ye,(he,G,ge,$,ne)=>{l("caret",ee,he,G,ge,$,ne);let ke;return D(G)?ke="":D(ge)?ke=`>=${G}.0.0${me} <${+G+1}.0.0-0`:D($)?G==="0"?ke=`>=${G}.${ge}.0${me} <${G}.${+ge+1}.0-0`:ke=`>=${G}.${ge}.0${me} <${+G+1}.0.0-0`:ne?(l("replaceCaret pr",ne),G==="0"?ge==="0"?ke=`>=${G}.${ge}.${$}-${ne} <${G}.${ge}.${+$+1}-0`:ke=`>=${G}.${ge}.${$}-${ne} <${G}.${+ge+1}.0-0`:ke=`>=${G}.${ge}.${$}-${ne} <${+G+1}.0.0-0`):(l("no pr"),G==="0"?ge==="0"?ke=`>=${G}.${ge}.${$}${me} <${G}.${ge}.${+$+1}-0`:ke=`>=${G}.${ge}.${$}${me} <${G}.${+ge+1}.0-0`:ke=`>=${G}.${ge}.${$} <${+G+1}.0.0-0`),l("caret return",ke),ke})},Z=(ee,J)=>(l("replaceXRanges",ee,J),ee.split(/\s+/).map(ye=>Ne(ye,J)).join(" ")),Ne=(ee,J)=>{ee=ee.trim();const ye=J.loose?f[p.XRANGELOOSE]:f[p.XRANGE];return ee.replace(ye,(me,he,G,ge,$,ne)=>{l("xRange",ee,me,he,G,ge,$,ne);const ke=D(G),lt=ke||D(ge),Le=lt||D($),xt=Le;return he==="="&&xt&&(he=""),ne=J.includePrerelease?"-0":"",ke?he===">"||he==="<"?me="<0.0.0-0":me="*":he&&xt?(lt&&(ge=0),$=0,he===">"?(he=">=",lt?(G=+G+1,ge=0,$=0):(ge=+ge+1,$=0)):he==="<="&&(he="<",lt?G=+G+1:ge=+ge+1),he==="<"&&(ne="-0"),me=`${he+G}.${ge}.${$}${ne}`):lt?me=`>=${G}.0.0${ne} <${+G+1}.0.0-0`:Le&&(me=`>=${G}.${ge}.0${ne} <${G}.${+ge+1}.0-0`),l("xRange return",me),me})},Ze=(ee,J)=>(l("replaceStars",ee,J),ee.trim().replace(f[p.STAR],"")),it=(ee,J)=>(l("replaceGTE0",ee,J),ee.trim().replace(f[J.includePrerelease?p.GTE0PRE:p.GTE0],"")),Me=ee=>(J,ye,me,he,G,ge,$,ne,ke,lt,Le,xt,Ut)=>(D(me)?ye="":D(he)?ye=`>=${me}.0.0${ee?"-0":""}`:D(G)?ye=`>=${me}.${he}.0${ee?"-0":""}`:ge?ye=`>=${ye}`:ye=`>=${ye}${ee?"-0":""}`,D(ke)?ne="":D(lt)?ne=`<${+ke+1}.0.0-0`:D(Le)?ne=`<${ke}.${+lt+1}.0-0`:xt?ne=`<=${ke}.${lt}.${Le}-${xt}`:ee?ne=`<${ke}.${lt}.${+Le+1}-0`:ne=`<=${ne}`,`${ye} ${ne}`.trim()),ze=(ee,J,ye)=>{for(let me=0;me<ee.length;me++)if(!ee[me].test(J))return!1;if(J.prerelease.length&&!ye.includePrerelease){for(let me=0;me<ee.length;me++)if(l(ee[me].semver),ee[me].semver!==a.ANY&&ee[me].semver.prerelease.length>0){const he=ee[me].semver;if(he.major===J.major&&he.minor===J.minor&&he.patch===J.patch)return!0}return!1}return!0};return ST}var TT,kO;function pC(){if(kO)return TT;kO=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(" "),c("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,c("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(c("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(">")))}}TT=e;const t=mT,{safeRe:r,t:a}=Hg,l=EO,c=sC,f=ma,p=nl();return TT}const P4=nl();var vC=(n,e,t)=>{try{e=new P4(e,t)}catch{return!1}return e.test(n)};const D4=nl();var L4=(n,e)=>new D4(n,e).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));const U4=ma,F4=nl();var $4=(n,e,t)=>{let r=null,a=null,l=null;try{l=new F4(e,t)}catch{return null}return n.forEach(c=>{l.test(c)&&(!r||a.compare(c)===-1)&&(r=c,a=new U4(r,t))}),r};const H4=ma,j4=nl();var z4=(n,e,t)=>{let r=null,a=null,l=null;try{l=new j4(e,t)}catch{return null}return n.forEach(c=>{l.test(c)&&(!r||a.compare(c)===1)&&(r=c,a=new H4(r,t))}),r};const RT=ma,B4=nl(),AO=uC;var q4=(n,e)=>{n=new B4(n,e);let t=new RT("0.0.0");if(n.test(t)||(t=new RT("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(c=>{const f=new RT(c.semver.version);switch(c.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!l||AO(f,l))&&(l=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),l&&(!t||AO(t,l))&&(t=l)}return t&&n.test(t)?t:null};const V4=nl();var K4=(n,e)=>{try{return new V4(n,e).range||"*"}catch{return null}};const G4=ma,xO=pC(),{ANY:W4}=xO,Y4=nl(),Q4=vC,IO=uC,OO=yT,X4=CT,J4=_T;var kT=(n,e,t,r)=>{n=new G4(n,r),e=new Y4(e,r);let a,l,c,f,p;switch(t){case">":a=IO,l=X4,c=OO,f=">",p=">=";break;case"<":a=OO,l=J4,c=IO,f="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Q4(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===W4&&(T=new xO(">=0.0.0")),E=E||T,S=S||T,a(T.semver,E.semver,r)?E=T:c(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&&c(n,S.semver))return!1}return!0};const Z4=kT;var ej=(n,e,t)=>Z4(n,e,">",t);const tj=kT;var nj=(n,e,t)=>tj(n,e,"<",t);const NO=nl();var rj=(n,e,t)=>(n=new NO(n,t),e=new NO(e,t),n.intersects(e,t));const oj=vC,ij=el;var aj=(n,e,t)=>{const r=[];let a=null,l=null;const c=n.sort((y,E)=>ij(y,E,t));for(const y of c)oj(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===c[0]?f.push("*"):E?y===c[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 MO=nl(),AT=pC(),{ANY:xT}=AT,Bg=vC,IT=el,sj=(n,e,t={})=>{if(n===e)return!0;n=new MO(n,t),e=new MO(e,t);let r=!1;e:for(const a of n.set){for(const l of e.set){const c=cj(a,l,t);if(r=r||c!==null,c)continue e}if(r)return!1}return!0},lj=[new AT(">=0.0.0-0")],PO=[new AT(">=0.0.0")],cj=(n,e,t)=>{if(n===e)return!0;if(n.length===1&&n[0].semver===xT){if(e.length===1&&e[0].semver===xT)return!0;t.includePrerelease?n=lj:n=PO}if(e.length===1&&e[0].semver===xT){if(t.includePrerelease)return!0;e=PO}const r=new Set;let a,l;for(const T of n)T.operator===">"||T.operator===">="?a=DO(a,T,t):T.operator==="<"||T.operator==="<="?l=LO(l,T,t):r.add(T.semver);if(r.size>1)return null;let c;if(a&&l){if(c=IT(a.semver,l.semver,t),c>0)return null;if(c===0&&(a.operator!==">="||l.operator!=="<="))return null}for(const T of r){if(a&&!Bg(T,String(a),t)||l&&!Bg(T,String(l),t))return null;for(const A of e)if(!Bg(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=DO(a,T,t),f===T&&f!==a)return!1}else if(a.operator===">="&&!Bg(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=LO(l,T,t),p===T&&p!==l)return!1}else if(l.operator==="<="&&!Bg(l.semver,String(T),t))return!1}if(!T.operator&&(l||a)&&c!==0)return!1}return!(a&&m&&!l&&c!==0||l&&y&&!a&&c!==0||S||E)},DO=(n,e,t)=>{if(!n)return e;const r=IT(n.semver,e.semver,t);return r>0?n:r<0||e.operator===">"&&n.operator===">="?e:n},LO=(n,e,t)=>{if(!n)return e;const r=IT(n.semver,e.semver,t);return r<0?n:r>0||e.operator==="<"&&n.operator==="<="?e:n};var uj=sj;const OT=Hg,UO=aC,dj=ma,FO=uO,fj=jp,hj=BH,pj=VH,vj=KH,mj=GH,gj=YH,yj=XH,_j=ZH,Cj=t4,Ej=el,wj=r4,bj=i4,Sj=gT,Tj=s4,Rj=c4,kj=uC,Aj=yT,xj=_O,Ij=CO,Oj=_T,Nj=CT,Mj=EO,Pj=S4,Dj=pC(),Lj=nl();var $O={parse:fj,valid:hj,clean:pj,inc:vj,diff:mj,major:gj,minor:yj,patch:_j,prerelease:Cj,compare:Ej,rcompare:wj,compareLoose:bj,compareBuild:Sj,sort:Tj,rsort:Rj,gt:kj,lt:Aj,eq:xj,neq:Ij,gte:Oj,lte:Nj,cmp:Mj,coerce:Pj,Comparator:Dj,Range:Lj,satisfies:vC,toComparators:L4,maxSatisfying:$4,minSatisfying:z4,minVersion:q4,validRange:K4,outside:kT,gtr:ej,ltr:nj,intersects:rj,simplifyRange:aj,subset:uj,SemVer:dj,re:OT.re,src:OT.src,tokens:OT.t,SEMVER_SPEC_VERSION:UO.SEMVER_SPEC_VERSION,RELEASE_TYPES:UO.RELEASE_TYPES,compareIdentifiers:FO.compareIdentifiers,rcompareIdentifiers:FO.rcompareIdentifiers};class qg extends $O.SemVer{satisfies(e){return $O.satisfies(this,e)}}let Uj=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 HO extends Uj{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 NT=function(n,e){return NT=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])},NT(n,e)};function Gl(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");NT(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var fo=function(){return fo=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},fo.apply(this,arguments)};function jO(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 Fj(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})}function zO(n,e){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(m){return function(y){return p([m,y])}}function p(m){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=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 Wf(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 Wl(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),a,l=[],c;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)l.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return l}function bi(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 qp(n){return this instanceof qp?(this.v=n,this):new qp(n)}function $j(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),a,l=[];return a={},c("next"),c("throw"),c("return"),a[Symbol.asyncIterator]=function(){return this},a;function c(S){r[S]&&(a[S]=function(T){return new Promise(function(A,O){l.push([S,T,A,O])>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 qp?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 Hj(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 Wf=="function"?Wf(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(c){return new Promise(function(f,p){c=n[l](c),a(f,p,c.done,c.value)})}}function a(l,c,f,p){Promise.resolve(p).then(function(m){l({value:m,done:f})},c)}}typeof SuppressedError=="function"&&SuppressedError;function zr(n){return typeof n=="function"}function mC(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 MT=mC(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 gC(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Si=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 c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var f=Wf(c),p=f.next();!p.done;p=f.next()){var m=p.value;m.remove(this)}}catch(O){e={error:O}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}else c.remove(this);var y=this.initialTeardown;if(zr(y))try{y()}catch(O){l=O instanceof MT?O.errors:[O]}var E=this._finalizers;if(E){this._finalizers=null;try{for(var S=Wf(E),T=S.next();!T.done;T=S.next()){var A=T.value;try{VO(A)}catch(O){l=l??[],O instanceof MT?l=bi(bi([],Wl(l)),Wl(O.errors)):l.push(O)}}}catch(O){r={error:O}}finally{try{T&&!T.done&&(a=S.return)&&a.call(S)}finally{if(r)throw r.error}}}if(l)throw new MT(l)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)VO(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)&&gC(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&gC(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),BO=Si.EMPTY;function qO(n){return n instanceof Si||n&&"closed"in n&&zr(n.remove)&&zr(n.add)&&zr(n.unsubscribe)}function VO(n){zr(n)?n():n.unsubscribe()}var KO={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},PT={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var a=PT.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,bi([n,e],Wl(t))):setTimeout.apply(void 0,bi([n,e],Wl(t)))},clearTimeout:function(n){var e=PT.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function GO(n){PT.setTimeout(function(){throw n})}function yC(){}function _C(n){n()}var DT=function(n){Gl(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,qO(t)&&t.add(r)):r.destination=qj,r}return e.create=function(t,r,a){return new Vp(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}(Si),jj=Function.prototype.bind;function LT(n,e){return jj.call(n,e)}var zj=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){CC(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){CC(r)}else CC(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){CC(t)}},n}(),Vp=function(n){Gl(e,n);function e(t,r,a){var l=n.call(this)||this,c;if(zr(t)||!t)c={next:t??void 0,error:r??void 0,complete:a??void 0};else{var f;l&&KO.useDeprecatedNextContext?(f=Object.create(t),f.unsubscribe=function(){return l.unsubscribe()},c={next:t.next&&LT(t.next,f),error:t.error&&LT(t.error,f),complete:t.complete&&LT(t.complete,f)}):c=t}return l.destination=new zj(c),l}return e}(DT);function CC(n){GO(n)}function Bj(n){throw n}var qj={closed:!0,next:yC,error:Bj,complete:yC},UT=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ou(n){return n}function Vj(n){return n.length===0?ou:n.length===1?n[0]:function(t){return n.reduce(function(r,a){return a(r)},t)}}var hn=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=Gj(e)?e:new Vp(e,t,r);return _C(function(){var c=a,f=c.operator,p=c.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=WO(t),new t(function(a,l){var c=new Vp({next:function(f){try{e(f)}catch(p){l(p),c.unsubscribe()}},error:l,complete:a});r.subscribe(c)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[UT]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vj(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=WO(e),new e(function(r,a){var l;t.subscribe(function(c){return l=c},function(c){return a(c)},function(){return r(l)})})},n.create=function(e){return new n(e)},n}();function WO(n){var e;return(e=n??KO.Promise)!==null&&e!==void 0?e:Promise}function Kj(n){return n&&zr(n.next)&&zr(n.error)&&zr(n.complete)}function Gj(n){return n&&n instanceof DT||Kj(n)&&qO(n)}function Wj(n){return zr(n==null?void 0:n.lift)}function Xr(n){return function(e){if(Wj(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 Br(n,e,t,r,a){return new Yj(n,e,t,r,a)}var Yj=function(n){Gl(e,n);function e(t,r,a,l,c,f){var p=n.call(this,t)||this;return p.onFinalize=c,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}(DT),Qj=mC(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),si=function(n){Gl(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 YO(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Qj},e.prototype.next=function(t){var r=this;_C(function(){var a,l;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var c=Wf(r.currentObservers),f=c.next();!f.done;f=c.next()){var p=f.value;p.next(t)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(a)throw a.error}}}})},e.prototype.error=function(t){var r=this;_C(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;_C(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,c=a.isStopped,f=a.observers;return l||c?BO:(this.currentObservers=null,f.push(t),new Si(function(){r.currentObservers=null,gC(f,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,a=r.hasError,l=r.thrownError,c=r.isStopped;a?t.error(l):c&&t.complete()},e.prototype.asObservable=function(){var t=new hn;return t.source=this,t},e.create=function(t,r){return new YO(t,r)},e}(hn),YO=function(n){Gl(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:BO},e}(si),Vg=function(n){Gl(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}(si),FT={now:function(){return(FT.delegate||Date).now()},delegate:void 0},EC=function(n){Gl(e,n);function e(t,r,a){t===void 0&&(t=1/0),r===void 0&&(r=1/0),a===void 0&&(a=FT);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,c=r._infiniteTimeWindow,f=r._timestampProvider,p=r._windowTime;a||(l.push(t),!c&&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,c=a._buffer,f=c.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,c=t._infiniteTimeWindow,f=(c?1:2)*r;if(r<1/0&&f<l.length&&l.splice(0,l.length-f),!c){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}(si),Xj=function(n){Gl(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(Si),wC={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var a=wC.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,bi([n,e],Wl(t))):setInterval.apply(void 0,bi([n,e],Wl(t)))},clearInterval:function(n){var e=wC.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},Jj=function(n){Gl(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,c=this.scheduler;return l!=null&&(this.id=this.recycleAsyncId(c,l,r)),this.pending=!0,this.delay=r,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(c,this.id,r),this},e.prototype.requestAsyncId=function(t,r,a){return a===void 0&&(a=0),wC.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&&wC.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(c){a=!0,l=c||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,gC(l,this),r!=null&&(this.id=this.recycleAsyncId(a,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(Xj),QO=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=FT.now,n}(),Zj=function(n){Gl(e,n);function e(t,r){r===void 0&&(r=QO.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}(QO),bC=new Zj(Jj),e3=bC,xo=new hn(function(n){return n.complete()});function XO(n){return n&&zr(n.schedule)}function JO(n){return n[n.length-1]}function ZO(n){return zr(JO(n))?n.pop():void 0}function $T(n){return XO(JO(n))?n.pop():void 0}var eN=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function tN(n){return zr(n==null?void 0:n.then)}function nN(n){return zr(n[UT])}function rN(n){return Symbol.asyncIterator&&zr(n==null?void 0:n[Symbol.asyncIterator])}function oN(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 t3(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var iN=t3();function aN(n){return zr(n==null?void 0:n[iN])}function sN(n){return $j(this,arguments,function(){var t,r,a,l;return zO(this,function(c){switch(c.label){case 0:t=n.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,qp(t.read())];case 3:return r=c.sent(),a=r.value,l=r.done,l?[4,qp(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,qp(a)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function lN(n){return zr(n==null?void 0:n.getReader)}function as(n){if(n instanceof hn)return n;if(n!=null){if(nN(n))return n3(n);if(eN(n))return r3(n);if(tN(n))return o3(n);if(rN(n))return cN(n);if(aN(n))return i3(n);if(lN(n))return a3(n)}throw oN(n)}function n3(n){return new hn(function(e){var t=n[UT]();if(zr(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function r3(n){return new hn(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function o3(n){return new hn(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,GO)})}function i3(n){return new hn(function(e){var t,r;try{for(var a=Wf(n),l=a.next();!l.done;l=a.next()){var c=l.value;if(e.next(c),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 cN(n){return new hn(function(e){s3(n,e).catch(function(t){return e.error(t)})})}function a3(n){return cN(sN(n))}function s3(n,e){var t,r,a,l;return Fj(this,void 0,void 0,function(){var c,f;return zO(this,function(p){switch(p.label){case 0:p.trys.push([0,5,6,11]),t=Hj(n),p.label=1;case 1:return[4,t.next()];case 2:if(r=p.sent(),!!r.done)return[3,4];if(c=r.value,e.next(c),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 Yl(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 SC(n,e){return e===void 0&&(e=0),Xr(function(t,r){t.subscribe(Br(r,function(a){return Yl(r,n,function(){return r.next(a)},e)},function(){return Yl(r,n,function(){return r.complete()},e)},function(a){return Yl(r,n,function(){return r.error(a)},e)}))})}function uN(n,e){return e===void 0&&(e=0),Xr(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function l3(n,e){return as(n).pipe(uN(e),SC(e))}function c3(n,e){return as(n).pipe(uN(e),SC(e))}function u3(n,e){return new hn(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function d3(n,e){return new hn(function(t){var r;return Yl(t,e,function(){r=n[iN](),Yl(t,e,function(){var a,l,c;try{a=r.next(),l=a.value,c=a.done}catch(f){t.error(f);return}c?t.complete():t.next(l)},0,!0)}),function(){return zr(r==null?void 0:r.return)&&r.return()}})}function dN(n,e){if(!n)throw new Error("Iterable cannot be null");return new hn(function(t){Yl(t,e,function(){var r=n[Symbol.asyncIterator]();Yl(t,e,function(){r.next().then(function(a){a.done?t.complete():t.next(a.value)})},0,!0)})})}function f3(n,e){return dN(sN(n),e)}function h3(n,e){if(n!=null){if(nN(n))return l3(n,e);if(eN(n))return u3(n,e);if(tN(n))return c3(n,e);if(rN(n))return dN(n,e);if(aN(n))return d3(n,e);if(lN(n))return f3(n,e)}throw oN(n)}function Ir(n,e){return e?h3(n,e):as(n)}function ss(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=$T(n);return Ir(n,t)}function fN(n,e){var t=zr(n)?n:function(){return n},r=function(a){return a.error(t())};return new hn(e?function(a){return e.schedule(r,0,a)}:r)}var Kg=mC(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function qi(n,e){var t=typeof e=="object";return new Promise(function(r,a){var l=!1,c;n.subscribe({next:function(f){c=f,l=!0},error:a,complete:function(){l?r(c):t?r(e.defaultValue):a(new Kg)}})})}function Ti(n,e){var t=typeof e=="object";return new Promise(function(r,a){var l=new Vp({next:function(c){r(c),l.unsubscribe()},error:a,complete:function(){t?r(e.defaultValue):a(new Kg)}});n.subscribe(l)})}function hN(n){return n instanceof Date&&!isNaN(n)}var p3=mC(function(n){return function(t){t===void 0&&(t=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function v3(n,e){var t=hN(n)?{first:n}:typeof n=="number"?{each:n}:n,r=t.first,a=t.each,l=t.with,c=l===void 0?m3:l,f=t.scheduler,p=f===void 0?e??bC:f,m=t.meta,y=m===void 0?null:m;if(r==null&&a==null)throw new TypeError("No timeout provided.");return Xr(function(E,S){var T,A,O=null,F=0,H=function(D){A=Yl(S,p,function(){try{T.unsubscribe(),as(c({meta:y,lastValue:O,seen:F})).subscribe(S)}catch(q){S.error(q)}},D)};T=E.subscribe(Br(S,function(D){A==null||A.unsubscribe(),F++,S.next(O=D),a>0&&H(a)},void 0,void 0,function(){A!=null&&A.closed||A==null||A.unsubscribe(),O=null})),!F&&H(r!=null?typeof r=="number"?r:+r-p.now():a)})}function m3(n){throw new p3(n)}function cn(n,e){return Xr(function(t,r){var a=0;t.subscribe(Br(r,function(l){r.next(n.call(e,l,a++))}))})}var g3=Array.isArray;function y3(n,e){return g3(e)?n.apply(void 0,bi([],Wl(e))):n(e)}function _3(n){return cn(function(e){return y3(n,e)})}var C3=Array.isArray,E3=Object.getPrototypeOf,w3=Object.prototype,b3=Object.keys;function S3(n){if(n.length===1){var e=n[0];if(C3(e))return{args:e,keys:null};if(T3(e)){var t=b3(e);return{args:t.map(function(r){return e[r]}),keys:t}}}return{args:n,keys:null}}function T3(n){return n&&typeof n=="object"&&E3(n)===w3}function R3(n,e){return n.reduce(function(t,r,a){return t[r]=e[a],t},{})}function k3(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=$T(n),r=ZO(n),a=S3(n),l=a.args,c=a.keys;if(l.length===0)return Ir([],t);var f=new hn(A3(l,t,c?function(p){return R3(c,p)}:ou));return r?f.pipe(_3(r)):f}function A3(n,e,t){return t===void 0&&(t=ou),function(r){pN(e,function(){for(var a=n.length,l=new Array(a),c=a,f=a,p=function(y){pN(e,function(){var E=Ir(n[y],e),S=!1;E.subscribe(Br(r,function(T){l[y]=T,S||(S=!0,f--),f||r.next(t(l.slice()))},function(){--c||r.complete()}))},r)},m=0;m<a;m++)p(m)},r)}}function pN(n,e,t){n?Yl(t,n,e):e()}function vN(n,e,t,r,a,l,c,f){var p=[],m=0,y=0,E=!1,S=function(){E&&!p.length&&!m&&e.complete()},T=function(O){return m<r?A(O):p.push(O)},A=function(O){l&&e.next(O),m++;var F=!1;as(t(O,y++)).subscribe(Br(e,function(H){a==null||a(H),l?T(H):e.next(H)},function(){F=!0},void 0,function(){if(F)try{m--;for(var H=function(){var D=p.shift();c?Yl(e,c,function(){return A(D)}):A(D)};p.length&&m<r;)H();S()}catch(D){e.error(D)}}))};return n.subscribe(Br(e,T,function(){E=!0,S()})),function(){f==null||f()}}function Na(n,e,t){return t===void 0&&(t=1/0),zr(e)?Na(function(r,a){return cn(function(l,c){return e(r,l,a,c)})(as(n(r,a)))},t):(typeof e=="number"&&(t=e),Xr(function(r,a){return vN(r,a,n,t)}))}function x3(n){return n===void 0&&(n=1/0),Na(ou,n)}function I3(){return x3(1)}function HT(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return I3()(Ir(n,$T(n)))}function jT(n,e,t){n===void 0&&(n=0),t===void 0&&(t=e3);var r=-1;return e!=null&&(XO(e)?t=e:r=e),new hn(function(a){var l=hN(n)?+n-t.now():n;l<0&&(l=0);var c=0;return t.schedule(function(){a.closed||(a.next(c++),0<=r?this.schedule(void 0,r):a.complete())},l)})}function un(n,e){return Xr(function(t,r){var a=0;t.subscribe(Br(r,function(l){return n.call(e,l,a++)&&r.next(l)}))})}function wr(n){return Xr(function(e,t){var r=null,a=!1,l;r=e.subscribe(Br(t,void 0,void 0,function(c){l=as(n(c,wr(n)(e))),r?(r.unsubscribe(),r=null,l.subscribe(t)):a=!0})),a&&(r.unsubscribe(),r=null,l.subscribe(t))})}function O3(n,e,t,r,a){return function(l,c){var f=t,p=e,m=0;l.subscribe(Br(c,function(y){var E=m++;p=f?n(p,y,E):(f=!0,y),r&&c.next(p)},a&&function(){f&&c.next(p),c.complete()}))}}function zT(n,e){return zr(e)?Na(n,e,1):Na(n,1)}function mN(n){return Xr(function(e,t){var r=!1;e.subscribe(Br(t,function(a){r=!0,t.next(a)},function(){r||t.next(n),t.complete()}))})}function N3(n){return n<=0?function(){return xo}:Xr(function(e,t){var r=0;e.subscribe(Br(t,function(a){++r<=n&&(t.next(a),n<=r&&t.complete())}))})}function gN(n,e){return e===void 0&&(e=ou),n=n??M3,Xr(function(t,r){var a,l=!0;t.subscribe(Br(r,function(c){var f=e(c);(l||!n(a,f))&&(l=!1,a=f,r.next(c))}))})}function M3(n,e){return n===e}function yN(n){return n===void 0&&(n=P3),Xr(function(e,t){var r=!1;e.subscribe(Br(t,function(a){r=!0,t.next(a)},function(){return r?t.complete():t.error(n())}))})}function P3(){return new Kg}function Gg(n){return Xr(function(e,t){try{e.subscribe(t)}finally{t.add(n)}})}function D3(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?un(function(a,l){return n(a,l,r)}):ou,N3(1),t?mN(e):yN(function(){return new Kg}))}}function L3(n){return n<=0?function(){return xo}:Xr(function(e,t){var r=[];e.subscribe(Br(t,function(a){r.push(a),n<r.length&&r.shift()},function(){var a,l;try{for(var c=Wf(r),f=c.next();!f.done;f=c.next()){var p=f.value;t.next(p)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(a)throw a.error}}t.complete()},void 0,function(){r=null}))})}function BT(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?un(function(a,l){return n(a,l,r)}):ou,L3(1),t?mN(e):yN(function(){return new Kg}))}}function U3(n,e,t){return t===void 0&&(t=1/0),Xr(function(r,a){var l=e;return vN(r,a,function(c,f){return n(l,c,f)},t,function(c){l=c},!1,void 0,function(){return l=null})})}function qT(){return Xr(function(n,e){var t,r=!1;n.subscribe(Br(e,function(a){var l=t;t=a,r&&e.next([l,a]),r=!0}))})}function _N(n,e){return Xr(O3(n,e,arguments.length>=2,!0))}function VT(n){n===void 0&&(n={});var e=n.connector,t=e===void 0?function(){return new si}:e,r=n.resetOnError,a=r===void 0?!0:r,l=n.resetOnComplete,c=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,O=!1,F=function(){E==null||E.unsubscribe(),E=void 0},H=function(){F(),y=S=void 0,A=O=!1},D=function(){var q=y;H(),q==null||q.unsubscribe()};return Xr(function(q,U){T++,!O&&!A&&F();var V=S=S??t();U.add(function(){T--,T===0&&!O&&!A&&(E=KT(D,p))}),V.subscribe(U),!y&&T>0&&(y=new Vp({next:function(te){return V.next(te)},error:function(te){O=!0,F(),E=KT(H,a,te),V.error(te)},complete:function(){A=!0,F(),E=KT(H,c),V.complete()}}),as(q).subscribe(y))})(m)}}function KT(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 Vp({next:function(){a.unsubscribe(),n()}});return as(e.apply(void 0,bi([],Wl(t)))).subscribe(a)}}function GT(n,e,t){var r,a,l,c,f=!1;return n&&typeof n=="object"?(r=n.bufferSize,c=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):c=n??1/0,VT({connector:function(){return new EC(c,e,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:f})}function F3(n){return un(function(e,t){return n<=t})}function qr(n,e){return Xr(function(t,r){var a=null,l=0,c=!1,f=function(){return c&&!a&&r.complete()};t.subscribe(Br(r,function(p){a==null||a.unsubscribe();var m=0,y=l++;as(n(p,y)).subscribe(a=Br(r,function(E){return r.next(e?e(p,E,y,m++):E)},function(){a=null,f()}))},function(){c=!0,f()}))})}function CN(n){return Xr(function(e,t){as(n).subscribe(Br(t,function(){return t.complete()},yC)),!t.closed&&e.subscribe(t)})}function TC(n,e){return e===void 0&&(e=!1),Xr(function(t,r){var a=0;t.subscribe(Br(r,function(l){var c=n(l,a++);(c||e)&&r.next(l),!c&&r.complete()}))})}function Kp(n,e,t){var r=zr(n)||e||t?{next:n,error:e,complete:t}:n;return r?Xr(function(a,l){var c;(c=r.subscribe)===null||c===void 0||c.call(r);var f=!0;a.subscribe(Br(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)}))}):ou}function Gp(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ZO(n);return Xr(function(r,a){for(var l=n.length,c=new Array(l),f=n.map(function(){return!1}),p=!1,m=function(E){as(n[E]).subscribe(Br(a,function(S){c[E]=S,!p&&!f[E]&&(f[E]=!0,(p=f.every(ou))&&(f=null))},yC))},y=0;y<l;y++)m(y);r.subscribe(Br(a,function(E){if(p){var S=bi([E],Wl(c));a.next(t?t.apply(void 0,bi([],Wl(S))):S)}}))})}globalThis&&globalThis.__awaiter,globalThis&&globalThis.__classPrivateFieldGet;var RC=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)},EN=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},kC,Wp;class wN{get version(){return RC(this,kC,"f")}constructor(e){kC.set(this,void 0),Wp.set(this,void 0);const{version:t}=e;EN(this,kC,new qg(t),"f"),EN(this,Wp,new Si,"f")}_addTeardown(e){return RC(this,Wp,"f").add(e),()=>RC(this,Wp,"f").remove(e)}dispose(){RC(this,Wp,"f").unsubscribe()}}kC=new WeakMap,Wp=new WeakMap;var iu=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class $3 extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class H3{constructor(e){this.logger=new HO("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((c,f)=>l(c[t.name],f)),r&&this._afterConfiguration.push(c=>r(c[t.name])),a&&this._afterInit.push(c=>a(c[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return iu(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 iu(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,c=Ir(t).pipe(Na(f=>iu(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}})),_N((f,p)=>Object.assign(f,p),{onAfterConfiguration(f){a.push(f)},onAfterInit(f){l.push(f)}}));return qi(c)}_postConfigure(e){return iu(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=>iu(this,void 0,void 0,function*(){var c;try{yield(c=l.postConfigure)===null||c===void 0?void 0:c.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 iu(this,void 0,void 0,function*(){const{modules:r,logger:a}=this,l=r.map(y=>y.name),c=new Vg({}),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 c.value[y]?(a.debug(`🚀⌛️ ${a.formatModuleName(String(y))} is initiated, skipping queue`),Promise.resolve(c.value[y])):(a.debug(`🚀⌛️ Awaiting init ${a.formatModuleName(String(y))}, timeout ${E}s`),Ti(c.pipe(un(S=>!!S[y]),cn(S=>S[y]),v3({each:E*1e3,with:()=>fN(()=>new $3)}))))};Ir(r).pipe(Na(y=>{const E=y.name;return a.debug(`🚀 initializing ${a.formatModuleName(y)}`),Ir(Promise.resolve(y.initialize({ref:t,config:e[E],requireInstance:p,hasModule:f}))).pipe(cn(S=>{var T;if(!(S instanceof wN)&&!(S.version instanceof qg)){a.debug("🤷 module does not extends the [BaseModuleProvider] or exposes [SemanticVersion]");try{S.version=y.version instanceof qg?y.version:new qg((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])=>{c.next(Object.assign(c.value,{[y]:E}))},complete:()=>c.complete()});const m=yield qi(c);return Object.seal(m),m})}_postInitialize(e,t){return iu(this,void 0,void 0,function*(){const{modules:r,logger:a,_afterInit:l}=this,c=Ir(r).pipe(un(f=>!!f.postInitialize),Kp(f=>a.debug(`🚀📌 post initializing moule ${a.formatModuleName(f)}`)),Na(f=>Ir(f.postInitialize({ref:t,modules:e,instance:e[f.name]})).pipe(Kp(()=>{a.debug(`🚀📌 post initialized moule ${a.formatModuleName(f)}`)}),wr(p=>(a.warn(`🚀📌 post initialize failed moule ${a.formatModuleName(f)}`,p),xo)))));if(yield qi(c),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 iu(this,void 0,void 0,function*(){const{modules:r}=this;yield Promise.allSettled(r.filter(a=>!!a.dispose).map(a=>iu(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 Yp=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},Yf=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)},AC,xC,Wg,IC,Yg,WT;class j3{constructor(e,t){this.__type=e,AC.set(this,void 0),xC.set(this,void 0),Wg.set(this,!1),IC.set(this,void 0),Yg.set(this,void 0),WT.set(this,Date.now()),Yp(this,AC,t.detail,"f"),Yp(this,xC,t.source,"f"),Yp(this,IC,!!t.cancelable,"f"),Yp(this,Yg,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return Yf(this,Yg,"f")&&!Yf(this,Wg,"f")}get created(){return Yf(this,WT,"f")}get cancelable(){return Yf(this,IC,"f")}get canceled(){return Yf(this,Wg,"f")}get detail(){return Yf(this,AC,"f")}get source(){return Yf(this,xC,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Yp(this,Wg,!0,"f")}stopPropagation(){Yp(this,Yg,!1,"f")}}AC=new WeakMap,xC=new WeakMap,Wg=new WeakMap,IC=new WeakMap,Yg=new WeakMap,WT=new WeakMap;var z3=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class B3{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var r,a;return z3(this,void 0,void 0,function*(){try{yield(r=this.__onDispatch)===null||r===void 0?void 0:r.call(this,e)}catch(c){throw c}const l=e;if(!l.dispatcher)l.dispatcher=this;else if(l.dispatcher===this)throw Error("loop detected");for(const c of t)e.cancelable?e.canceled||(yield Promise.resolve(c(e))):c(e);if(e.bubbles)try{yield(a=this.__onBubble)===null||a===void 0?void 0:a.call(this,e)}catch(c){throw c}})}}var bN=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class q3 extends hn{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 si,this.__dispatcher=new B3({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 bN(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new j3(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return bN(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 SN=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const V3={name:"event",configure:n=>{const e={},t=n==null?void 0:n.event;return t&&(e.onBubble=r=>SN(void 0,void 0,void 0,function*(){yield t.dispatchEvent(r)})),e},initialize:({config:n})=>new q3(n),postInitialize:({instance:n,modules:e})=>SN(void 0,void 0,void 0,function*(){n.dispatchEvent("onModulesLoaded",{detail:e,source:n})}),dispose({instance:n}){n.dispose()}};class TN{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?Ir(Object.values(this._operators)).pipe(U3((r,a)=>Promise.resolve(a(r)).then(l=>l??r),e,1),BT()):ss(e)}}const K3=(n,e)=>t=>{const r=new Headers(t.headers);return r.append(n,e),Object.assign(Object.assign({},t),{headers:r})};class RN extends TN{setHeader(e,t){const r=K3(e,t);return this.set("header-"+e,r)}}class G3 extends TN{}class W3{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new RN,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 Y3 extends Error{constructor(e){super(e)}}const Q3=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 X3{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:c=this.config.defaultHttpClientCtor,requestHandler:f=this.defaultHttpRequestHandler}=t,p={requestHandler:f},m=new c(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&&Q3(e))return{baseUri:e};if(!t)throw new Y3(`No registered http client for key [${e}]`);return t}return e}}function J3(n,e){e===void 0&&(e={});var t=e.selector,r=jO(e,["selector"]);return new hn(function(a){var l=new AbortController,c=l.signal,f=!0,p=r.signal;if(p)if(p.aborted)l.abort();else{var m=function(){c.aborted||l.abort()};p.addEventListener("abort",m),a.add(function(){return p.removeEventListener("abort",m)})}var y=fo(fo({},r),{signal:c}),E=function(S){f=!1,a.error(S)};return fetch(n,y).then(function(S){t?as(t(S)).subscribe(Br(a,void 0,function(){f=!1,a.complete()},E)):(f=!1,a.next(S),a.complete())}).catch(E),function(){f&&l.abort()}})}const Z3=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")}},ez=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 YT extends Error{constructor(e,t,r){super(e,r),this.message=e,this.response=t}}var kN=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 tz{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var r,a;this.uri=e,this._request$=new si,this._response$=new si,this._abort$=new si,this.requestHandler=(r=t==null?void 0:t.requestHandler)!==null&&r!==void 0?r:new RN,this.responseHandler=(a=t==null?void 0:t.responseHandler)!==null&&a!==void 0?a:new G3,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return Ti(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:Z3,c=new Headers(t==null?void 0:t.headers);return c.append("Accept","application/json"),c.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:a,selector:l,headers:c}))}json(e,t){return Ti(this.json$(e,t))}blob$(e,t){var r;const a=(r=t==null?void 0:t.selector)!==null&&r!==void 0?r:ez;return this.fetch$(e,Object.assign(Object.assign({},t),{selector:a}))}blob(e,t){return Ti(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=kN(r,["selector"]);return ss(Object.assign(Object.assign({},l),{uri:this._resolveUrl(e)})).pipe(qr(f=>this._prepareRequest(f)),Kp(f=>this._request$.next(f)),qr(f=>{var{uri:p,path:m}=f,y=kN(f,["uri","path"]);return J3(p,y)}),qr(f=>this._prepareResponse(f)),Kp(f=>this._response$.next(f)),qr(f=>{if(a)try{return a(f)}catch(p){throw new YT("failed to execute response selector",f,{cause:p})}return ss(f)}),CN(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 nz extends tz{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 AN=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const QT={name:"http",configure:()=>new W3(nz),initialize:({config:n,hasModule:e,requireInstance:t})=>AN(void 0,void 0,void 0,function*(){const r=new X3(n);if(e("auth")){const a=yield t("auth");r.defaultHttpRequestHandler.set("MSAL",l=>AN(void 0,void 0,void 0,function*(){const{scopes:c=[]}=l;if(c.length){const f=yield a.acquireToken({scopes:c});if(f){const p=new Headers(l.headers);return p.set("Authorization",`Bearer ${f.accessToken}`),Object.assign(Object.assign({},l),{headers:p})}}}))}return r})},rz=n=>({module:QT,configure:n}),xN=(n,e)=>({module:QT,configure:t=>{t.configureClient(n,e)}}),XT="default";class oz{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[XT]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[XT])throw Error("Default AuthClient already provided");this.configureClient(XT,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 JT=function(n,e){return JT=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])},JT(n,e)};function Ri(n,e){JT(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var pt=function(){return pt=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},pt.apply(this,arguments)};function IN(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 Ae(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})}function xe(n,e){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;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 iz(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),a,l=[],c;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)l.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return l}function ZT(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(iz(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 eR=function(n,e){return eR=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])},eR(n,e)};function Ma(n,e){eR(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $n=function(){return $n=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},$n.apply(this,arguments)};function Wt(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})}function Yt(n,e){var t={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;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 OC(){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],c=0,f=l.length;c<f;c++,a++)r[a]=l[c];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"},Qg=[W.OPENID_SCOPE,W.PROFILE_SCOPE,W.OFFLINE_ACCESS_SCOPE],ON=OC(Qg,[W.EMAIL_SCOPE]),ls;(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"})(ls||(ls={}));var jo;(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"})(jo||(jo={}));var Qf;(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"})(Qf||(Qf={}));var en;(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"})(en||(en={}));var Qp;(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"})(Qp||(Qp={}));var Vi={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Xg;(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"})(Xg||(Xg={}));var NN={PLAIN:"plain",S256:"S256"},NC;(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"})(NC||(NC={}));var MC;(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"})(MC||(MC={}));var au;(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"})(au||(au={}));var zo;(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."})(zo||(zo={}));var At;(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"})(At||(At={}));var su;(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"})(su||(su={}));var tR="appmetadata",az="client_info",Jg="1",Zg={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},As;(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"})(As||(As={}));var ki={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"},Vn;(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"})(Vn||(Vn={}));var ey={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},MN={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},PC;(function(n){n.username="username",n.password="password"})(PC||(PC={}));var Xp;(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"})(Xp||(Xp={}));var vd;(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"})(vd||(vd={}));var ty;(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"})(ty||(ty={}));var md;(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"})(md||(md={}));var nR;(function(n){n.Jwt="JWT",n.Jwk="JWK",n.Pop="pop"})(nR||(nR={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var DC={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."}},Ct=function(n){Ma(e,n);function e(t,r,a){var l=this,c=r?t+": "+r:t;return l=n.call(this,c)||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(DC.unexpectedError.code,DC.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(DC.postRequestFailed.code,DC.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.0 2023-08-24 */var LC={createNewGuid:function(){var n="Crypto interface - createNewGuid() has not been implemented";throw Ct.createUnexpectedError(n)},base64Decode:function(){var n="Crypto interface - base64Decode() has not been implemented";throw Ct.createUnexpectedError(n)},base64Encode:function(){var n="Crypto interface - base64Encode() has not been implemented";throw Ct.createUnexpectedError(n)},generatePkceCodes:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Crypto interface - generatePkceCodes() has not been implemented",Ct.createUnexpectedError(n)})})},getPublicKeyThumbprint:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Crypto interface - getPublicKeyThumbprint() has not been implemented",Ct.createUnexpectedError(n)})})},removeTokenBindingKey:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Crypto interface - removeTokenBindingKey() has not been implemented",Ct.createUnexpectedError(n)})})},clearKeystore:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Crypto interface - clearKeystore() has not been implemented",Ct.createUnexpectedError(n)})})},signJwt:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Crypto interface - signJwt() has not been implemented",Ct.createUnexpectedError(n)})})},hashString:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Crypto interface - hashString() has not been implemented",Ct.createUnexpectedError(n)})})}};/*! @azure/msal-common v13.3.0 2023-08-24 */var Fe={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."}},tt=function(n){Ma(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(Fe.clientInfoDecodingError.code,Fe.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(Fe.clientInfoEmptyError.code,""+Fe.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(Fe.tokenParsingError.code,Fe.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(Fe.nullOrEmptyToken.code,Fe.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(Fe.endpointResolutionError.code,Fe.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,r){return new e(Fe.networkError.code,Fe.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(Fe.unableToGetOpenidConfigError.code,Fe.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(Fe.hashNotDeserialized.code,Fe.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,r){return new e(Fe.invalidStateError.code,Fe.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+r)},e.createStateMismatchError=function(){return new e(Fe.stateMismatchError.code,Fe.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(Fe.stateNotFoundError.code,Fe.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(Fe.nonceMismatchError.code,Fe.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(Fe.authTimeNotFoundError.code,Fe.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(Fe.maxAgeTranspiredError.code,Fe.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(Fe.nonceNotFoundError.code,Fe.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(Fe.multipleMatchingTokens.code,Fe.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(Fe.multipleMatchingAccounts.code,Fe.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(Fe.multipleMatchingAppMetadata.code,Fe.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(Fe.tokenRequestCannotBeMade.code,Fe.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(Fe.appendEmptyScopeError.code,Fe.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(Fe.removeEmptyScopeError.code,Fe.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(Fe.appendScopeSetError.code,Fe.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(Fe.emptyInputScopeSetError.code,""+Fe.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(Fe.DeviceCodePollingCancelled.code,""+Fe.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(Fe.DeviceCodeExpired.code,""+Fe.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(Fe.DeviceCodeUnknownError.code,""+Fe.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(Fe.NoAccountInSilentRequest.code,""+Fe.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(Fe.invalidCacheRecord.code,Fe.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(Fe.invalidCacheEnvironment.code,Fe.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(Fe.noAccountFound.code,Fe.noAccountFound.desc)},e.createCachePluginError=function(){return new e(Fe.CachePluginError.code,""+Fe.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(Fe.noCryptoObj.code,""+Fe.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(Fe.invalidCacheType.code,""+Fe.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(Fe.unexpectedAccountType.code,""+Fe.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(Fe.unexpectedCredentialType.code,""+Fe.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(Fe.invalidAssertion.code,""+Fe.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(Fe.invalidClientCredential.code,""+Fe.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(Fe.tokenRefreshRequired.code,Fe.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(Fe.userTimeoutReached.code,Fe.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(Fe.tokenClaimsRequired.code,Fe.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(Fe.noAuthorizationCodeFromServer.code,Fe.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(Fe.bindingKeyNotRemovedError.code,Fe.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(Fe.logoutNotSupported.code,Fe.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(Fe.keyIdMissing.code,Fe.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(Fe.noNetworkConnectivity.code,Fe.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(Fe.userCanceledError.code,Fe.userCanceledError.desc)},e}(Ct);/*! @azure/msal-common v13.3.0 2023-08-24 */var nt=function(){function n(){}return n.decodeAuthToken=function(e){if(n.isEmpty(e))throw tt.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=t.exec(e);if(!r||r.length<4)throw tt.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 c=l.split(/=(.+)/g,2),f=c[0],p=c[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 Jr;(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"})(Jr||(Jr={}));var UC=function(){function n(e,t,r){this.level=Jr.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:Jr.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:Jr.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;nt.isEmpty(t.correlationId)?nt.isEmpty(this.correlationId)?a="["+r+"]":a="["+r+"] : ["+this.correlationId+"]":a="["+r+"] : ["+t.correlationId+"]";var l=a+" : "+this.packageName+"@"+this.packageVersion+" : "+Jr[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:Jr.Error,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:Jr.Error,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.warning=function(e,t){this.logMessage(e,{logLevel:Jr.Warning,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:Jr.Warning,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.info=function(e,t){this.logMessage(e,{logLevel:Jr.Info,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:Jr.Info,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:Jr.Verbose,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:Jr.Verbose,containsPii:!0,correlationId:t||W.EMPTY_STRING})},n.prototype.trace=function(e,t){this.logMessage(e,{logLevel:Jr.Trace,containsPii:!1,correlationId:t||W.EMPTY_STRING})},n.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:Jr.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 PN="@azure/msal-common",rR="13.3.0";/*! @azure/msal-common v13.3.0 2023-08-24 */var ny;(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"})(ny||(ny={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Qt={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."}},vr=function(n){Ma(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(Qt.redirectUriNotSet.code,Qt.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Qt.postLogoutUriNotSet.code,Qt.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(Qt.claimsRequestParsingError.code,Qt.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(Qt.authorityUriInsecure.code,Qt.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(Qt.urlParseError.code,Qt.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(Qt.urlEmptyError.code,Qt.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(Qt.emptyScopesError.code,""+Qt.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(Qt.clientIdSingleScopeError.code,Qt.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(Qt.invalidPrompt.code,Qt.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(Qt.invalidClaimsRequest.code,Qt.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(Qt.logoutRequestEmptyError.code,Qt.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(Qt.tokenRequestEmptyError.code,Qt.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(Qt.invalidCodeChallengeMethod.code,Qt.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(Qt.invalidCodeChallengeParams.code,Qt.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(Qt.invalidCloudDiscoveryMetadata.code,Qt.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(Qt.invalidAuthorityMetadata.code,Qt.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(Qt.untrustedAuthority.code,Qt.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(Qt.invalidAzureCloudInstance.code,Qt.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(Qt.missingSshJwk.code,Qt.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(Qt.missingSshKid.code,Qt.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(Qt.missingNonceAuthenticationHeader.code,Qt.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,r){return new e(Qt.invalidAuthenticationHeader.code,Qt.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+r)},e.createAuthorityMismatchError=function(){return new e(Qt.authorityMismatch.code,Qt.authorityMismatch.desc)},e}(tt);/*! @azure/msal-common v13.3.0 2023-08-24 */var Ki=function(){function n(e){var t=this,r=e?nt.trimArrayEntries(OC(e)):[],a=r?nt.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 vr.createEmptyScopesArrayError()},n.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),r=new n(t);return nt.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 ON.forEach(function(r){e.containsScope(r)&&(t+=1)}),this.scopes.size===t},n.prototype.appendScope=function(e){nt.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 tt.createAppendScopeSetError(r)}},n.prototype.removeScope=function(e){if(nt.isEmpty(e))throw tt.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},n.prototype.removeOIDCScopes=function(){var e=this;ON.forEach(function(t){e.scopes.delete(t)})},n.prototype.unionScopeSets=function(e){if(!e)throw tt.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 tt.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 FC(n,e){if(nt.isEmpty(n))throw tt.createClientInfoEmptyError();try{var t=e.base64Decode(n);return JSON.parse(t)}catch(r){throw tt.createClientInfoDecodingError(r.message)}}function Jp(n){if(nt.isEmpty(n))throw tt.createClientInfoDecodingError("Home account ID was empty.");var e=n.split(zo.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 ga;(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs",n[n.Dsts=2]="Dsts",n[n.Ciam=3]="Ciam"})(ga||(ga={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Ai=function(){function n(){}return n.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(zo.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 au.ADFS_ACCOUNT_TYPE:return su.ADFS;case au.MSAV1_ACCOUNT_TYPE:return su.MSA;case au.MSSTS_ACCOUNT_TYPE:return su.MSSTS;case au.GENERIC_ACCOUNT_TYPE:return su.GENERIC;default:throw tt.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(zo.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(e,t,r,a,l,c,f,p){var m,y,E,S,T,A,O=new n;O.authorityType=au.MSSTS_ACCOUNT_TYPE,O.clientInfo=e,O.homeAccountId=t,O.nativeAccountId=p;var F=f||a&&a.getPreferredCache();if(!F)throw tt.createInvalidCacheEnvironmentError();if(O.environment=F,O.realm=((m=r==null?void 0:r.claims)===null||m===void 0?void 0:m.tid)||W.EMPTY_STRING,r){O.idTokenClaims=r.claims,O.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 H=(S=r==null?void 0:r.claims)===null||S===void 0?void 0:S.preferred_username,D=!((T=r==null?void 0:r.claims)===null||T===void 0)&&T.emails?r.claims.emails[0]:null;O.username=H||D||W.EMPTY_STRING,O.name=(A=r==null?void 0:r.claims)===null||A===void 0?void 0:A.name}return O.cloudGraphHostName=l,O.msGraphHost=c,O},n.createGenericAccount=function(e,t,r,a,l,c){var f,p,m,y,E=new n;E.authorityType=r&&r.authorityType===ga.Adfs?au.ADFS_ACCOUNT_TYPE:au.GENERIC_ACCOUNT_TYPE,E.homeAccountId=e,E.realm=W.EMPTY_STRING;var S=c||r&&r.getPreferredCache();if(!S)throw tt.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 c,f=!((c=l==null?void 0:l.claims)===null||c===void 0)&&c.sub?l.claims.sub:W.EMPTY_STRING;if(t===ga.Adfs||t===ga.Dsts)return f;if(e)try{var p=FC(e,a);if(!nt.isEmpty(p.uid)&&!nt.isEmpty(p.utid))return""+p.uid+zo.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||{},c=t.idTokenClaims||{};a=l.iat===c.iat&&l.nonce===c.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 Ql=function(){function n(e,t){if(nt.isEmpty(e))throw tt.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=n.extractTokenClaims(e,t)}return n.extractTokenClaims=function(e,t){var r=nt.decodeAuthToken(e);try{var a=r.JWSPayload,l=t.base64Decode(a);return JSON.parse(l)}catch(c){throw tt.createTokenParsingError(c)}},n.checkMaxAge=function(e,t){var r=3e5;if(t===0||Date.now()-r>e+t)throw tt.createMaxAgeTranspiredError()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Pa=function(){function n(e,t,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(PN,rR)}return n.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var r=t.reduce(function(l,c){var f=e.getAccount(c);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 Ql(r.secret,this.cryptoImpl).claims),t},n.prototype.saveCacheRecord=function(e){return Wt(this,void 0,void 0,function(){return Yt(this,function(t){switch(t.label){case 0:if(!e)throw tt.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 Wt(this,void 0,void 0,function(){var t,r,a,l,c=this;return Yt(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=Ki.fromString(e.target),l=[],r.accessToken.forEach(function(p){if(c.accessTokenKeyMatchesFilter(p,t,!1)){var m=c.getAccessTokenCredential(p);if(m&&c.credentialMatchesFilter(m,t)){var y=Ki.fromString(m.target);y.intersectingScopeSets(a)&&l.push(c.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 c=t.getAccount(l);c&&(e.homeAccountId&&!t.matchHomeAccountId(c,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(c,e.localAccountId)||e.username&&!t.matchUsername(c,e.username)||e.environment&&!t.matchEnvironment(c,e.environment)||e.realm&&!t.matchRealm(c,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(c,e.nativeAccountId)||a.push(c))}}),a},n.prototype.isAccountKey=function(e,t,r){return!(e.split(zo.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(zo.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(At.ID_TOKEN.toLowerCase())===-1&&t.indexOf(At.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(At.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(At.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(At.REFRESH_TOKEN.toLowerCase())>-1){var r=""+At.REFRESH_TOKEN+zo.CACHE_KEY_SEPARATOR+this.clientId+zo.CACHE_KEY_SEPARATOR,a=""+At.REFRESH_TOKEN+zo.CACHE_KEY_SEPARATOR+Jg+zo.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===At.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Vn.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(c){if(r.isAppMetadata(c)){var f=r.getAppMetadata(c);f&&(e&&!r.matchEnvironment(f,e)||t&&!r.matchClientId(f,t)||(l[c]=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 c=t.getAuthorityMetadata(l);c&&c.aliases.indexOf(e)!==-1&&(a=c)}}),a},n.prototype.removeAllAccounts=function(){return Wt(this,void 0,void 0,function(){var e,t,r=this;return Yt(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 Wt(this,void 0,void 0,function(){var t;return Yt(this,function(r){switch(r.label){case 0:if(t=this.getAccount(e),!t)throw tt.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return r.sent(),this.removeItem(e),[2]}})})},n.prototype.removeAccountContext=function(e){return Wt(this,void 0,void 0,function(){var t,r,a,l=this;return Yt(this,function(c){switch(c.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 c.sent(),[2]}})})},n.prototype.removeAccessToken=function(e){return Wt(this,void 0,void 0,function(){var t,r,a;return Yt(this,function(l){switch(l.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==At.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==Vn.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(),tt.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),c=this.getIdToken(e,a),f=this.getAccessToken(e,t,a),p=this.getRefreshToken(e,!1,a),m=this.readAppMetadataFromCache(r);return l&&c&&(l.idTokenClaims=new Ql(c.secret,this.cryptoImpl).claims),{account:l,idToken:c,accessToken:f,refreshToken:p,appMetadata:m}},n.prototype.readAccountFromCache=function(e){var t=Ai.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:At.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 tt.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(c){if(r.idTokenKeyMatchesFilter(c,$n({clientId:r.clientId},e))){var f=r.getIdTokenCredential(c);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=Ki.createSearchScopes(t.scopes),c=t.authenticationScheme||Vn.BEARER,f=c&&c.toLowerCase()!==Vn.BEARER.toLowerCase()?At.ACCESS_TOKEN_WITH_AUTH_SCHEME:At.ACCESS_TOKEN,p={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:f,clientId:this.clientId,realm:e.tenantId,target:l,tokenType:c,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 tt.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(),c=0;c<l.length;c++){if(r&&!a.includes(l[c].toLowerCase()))return!1;if(!r&&a.includes(l[c].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 c=t.getAccessTokenCredential(l);c&&t.credentialMatchesFilter(c,e)&&a.push(c)}}),a},n.prototype.getRefreshToken=function(e,t,r){var a=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var l=t?Jg:void 0,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:At.REFRESH_TOKEN,clientId:this.clientId,familyId:l},f=r&&r.refreshToken||this.getTokenKeys().refreshToken,p=[];f.forEach(function(y){if(a.refreshTokenKeyMatchesFilter(y,c)){var E=a.getRefreshTokenCredential(y);E&&a.credentialMatchesFilter(E,c)&&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(c){return r[c]}),l=a.length;if(l<1)return null;if(l>1)throw tt.createMultipleMatchingAppMetadataInCacheError();return a[0]},n.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===Jg)},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!==At.ACCESS_TOKEN&&e.credentialType!==At.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(r||!e.target)return!1;var a=Ki.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(tR)!==-1},n.prototype.isAuthorityMetadata=function(e){return e.indexOf(Zg.CACHE_KEY)!==-1},n.prototype.generateAuthorityMetadataCacheKey=function(e){return Zg.CACHE_KEY+"-"+this.clientId+"-"+e},n.toObject=function(e,t){for(var r in t)e[r]=t[r];return e},n}(),sz=function(n){Ma(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 Ct.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e.prototype.clear=function(){return Wt(this,void 0,void 0,function(){var t;return Yt(this,function(r){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",Ct.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw Ct.createUnexpectedError(t)},e}(Pa);/*! @azure/msal-common v13.3.0 2023-08-24 */var lz=300,DN={tokenRenewalOffsetSeconds:lz,preventCorsPreflight:!1},cz={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Jr.Info,correlationId:W.EMPTY_STRING},uz={claimsBasedCachingEnabled:!0},dz={sendGetRequestAsync:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Network interface - sendGetRequestAsync() has not been implemented",Ct.createUnexpectedError(n)})})},sendPostRequestAsync:function(){return Wt(this,void 0,void 0,function(){var n;return Yt(this,function(e){throw n="Network interface - sendPostRequestAsync() has not been implemented",Ct.createUnexpectedError(n)})})}},fz={sku:W.SKU,version:rR,cpu:W.EMPTY_STRING,os:W.EMPTY_STRING},hz={clientSecret:W.EMPTY_STRING,clientAssertion:void 0},pz={azureCloudInstance:ny.None,tenant:""+W.DEFAULT_COMMON_TENANT},vz={application:{appName:"",appVersion:""}};function mz(n){var e=n.authOptions,t=n.systemOptions,r=n.loggerOptions,a=n.cacheOptions,l=n.storageInterface,c=n.networkInterface,f=n.cryptoInterface,p=n.clientCredentials,m=n.libraryInfo,y=n.telemetry,E=n.serverTelemetryManager,S=n.persistencePlugin,T=n.serializableCache,A=$n($n({},cz),r);return{authOptions:gz(e),systemOptions:$n($n({},DN),t),loggerOptions:A,cacheOptions:$n($n({},uz),a),storageInterface:l||new sz(e.clientId,LC,new UC(A)),networkInterface:c||dz,cryptoInterface:f||LC,clientCredentials:p||hz,libraryInfo:$n($n({},fz),m),telemetry:$n($n({},vz),y),serverTelemetryManager:E||null,persistencePlugin:S||null,serializableCache:T||null}}function gz(n){return $n({clientCapabilities:[],azureCloudOptions:pz,skipAuthorityMetadataCache:!1},n)}/*! @azure/msal-common v13.3.0 2023-08-24 */var Xf=function(n){Ma(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}(Ct);/*! @azure/msal-common v13.3.0 2023-08-24 */var $C=function(){function n(){}return n.generateThrottlingStorageKey=function(e){return ey.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 Xf(((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[ls.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(ls.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||ey.DEFAULT_THROTTLE_TIME_SECONDS),r+ey.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},c=this.generateThrottlingStorageKey(l);e.removeItem(c)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var yz=function(){function n(e,t){this.networkClient=e,this.cacheManager=t}return n.prototype.sendPostRequest=function(e,t,r){return Wt(this,void 0,void 0,function(){var a,l;return Yt(this,function(c){switch(c.label){case 0:$C.preProcess(this.cacheManager,e),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,r)];case 2:return a=c.sent(),[3,4];case 3:throw l=c.sent(),l instanceof Ct?l:tt.createNetworkError(t,l);case 4:return $C.postProcess(this.cacheManager,e,a),[2,a]}})})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var cs;(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"})(cs||(cs={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Jf=function(){function n(){}return n.validateRedirectUri=function(e){if(nt.isEmpty(e))throw vr.createRedirectUriEmptyError()},n.validatePrompt=function(e){var t=[];for(var r in Vi)t.push(Vi[r]);if(t.indexOf(e)<0)throw vr.createInvalidPromptError(e)},n.validateClaims=function(e){try{JSON.parse(e)}catch{throw vr.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(e,t){if(nt.isEmpty(e)||nt.isEmpty(t))throw vr.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},n.validateCodeChallengeMethod=function(e){if([NN.PLAIN,NN.S256].indexOf(e)<0)throw vr.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 ry=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(en.RESPONSE_TYPE,encodeURIComponent(W.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(en.RESPONSE_TYPE,encodeURIComponent(W.TOKEN_RESPONSE_TYPE+" "+W.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(e){this.parameters.set(en.RESPONSE_MODE,encodeURIComponent(e||NC.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(en.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var r=t?OC(e||[],Qg):e||[],a=new Ki(r);this.parameters.set(en.SCOPE,encodeURIComponent(a.printScopes()))},n.prototype.addClientId=function(e){this.parameters.set(en.CLIENT_ID,encodeURIComponent(e))},n.prototype.addRedirectUri=function(e){Jf.validateRedirectUri(e),this.parameters.set(en.REDIRECT_URI,encodeURIComponent(e))},n.prototype.addPostLogoutRedirectUri=function(e){Jf.validateRedirectUri(e),this.parameters.set(en.POST_LOGOUT_URI,encodeURIComponent(e))},n.prototype.addIdTokenHint=function(e){this.parameters.set(en.ID_TOKEN_HINT,encodeURIComponent(e))},n.prototype.addDomainHint=function(e){this.parameters.set(Xg.DOMAIN_HINT,encodeURIComponent(e))},n.prototype.addLoginHint=function(e){this.parameters.set(Xg.LOGIN_HINT,encodeURIComponent(e))},n.prototype.addCcsUpn=function(e){this.parameters.set(ls.CCS_HEADER,encodeURIComponent("UPN:"+e))},n.prototype.addCcsOid=function(e){this.parameters.set(ls.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},n.prototype.addSid=function(e){this.parameters.set(Xg.SID,encodeURIComponent(e))},n.prototype.addClaims=function(e,t){var r=this.addClientCapabilitiesToClaims(e,t);Jf.validateClaims(r),this.parameters.set(en.CLAIMS,encodeURIComponent(r))},n.prototype.addCorrelationId=function(e){this.parameters.set(en.CLIENT_REQUEST_ID,encodeURIComponent(e))},n.prototype.addLibraryInfo=function(e){this.parameters.set(en.X_CLIENT_SKU,e.sku),this.parameters.set(en.X_CLIENT_VER,e.version),e.os&&this.parameters.set(en.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(en.X_CLIENT_CPU,e.cpu)},n.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(en.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(en.X_APP_VER,e.appVersion)},n.prototype.addPrompt=function(e){Jf.validatePrompt(e),this.parameters.set(""+en.PROMPT,encodeURIComponent(e))},n.prototype.addState=function(e){nt.isEmpty(e)||this.parameters.set(en.STATE,encodeURIComponent(e))},n.prototype.addNonce=function(e){this.parameters.set(en.NONCE,encodeURIComponent(e))},n.prototype.addCodeChallengeParams=function(e,t){if(Jf.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(en.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(en.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw vr.createInvalidCodeChallengeParamsError()},n.prototype.addAuthorizationCode=function(e){this.parameters.set(en.CODE,encodeURIComponent(e))},n.prototype.addDeviceCode=function(e){this.parameters.set(en.DEVICE_CODE,encodeURIComponent(e))},n.prototype.addRefreshToken=function(e){this.parameters.set(en.REFRESH_TOKEN,encodeURIComponent(e))},n.prototype.addCodeVerifier=function(e){this.parameters.set(en.CODE_VERIFIER,encodeURIComponent(e))},n.prototype.addClientSecret=function(e){this.parameters.set(en.CLIENT_SECRET,encodeURIComponent(e))},n.prototype.addClientAssertion=function(e){nt.isEmpty(e)||this.parameters.set(en.CLIENT_ASSERTION,encodeURIComponent(e))},n.prototype.addClientAssertionType=function(e){nt.isEmpty(e)||this.parameters.set(en.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},n.prototype.addOboAssertion=function(e){this.parameters.set(en.OBO_ASSERTION,encodeURIComponent(e))},n.prototype.addRequestTokenUse=function(e){this.parameters.set(en.REQUESTED_TOKEN_USE,encodeURIComponent(e))},n.prototype.addGrantType=function(e){this.parameters.set(en.GRANT_TYPE,encodeURIComponent(e))},n.prototype.addClientInfo=function(){this.parameters.set(az,"1")},n.prototype.addExtraQueryParameters=function(e){var t=this,r=Jf.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 vr.createInvalidClaimsRequestError()}return t&&t.length>0&&(r.hasOwnProperty(Qp.ACCESS_TOKEN)||(r[Qp.ACCESS_TOKEN]={}),r[Qp.ACCESS_TOKEN][Qp.XMS_CC]={values:t}),JSON.stringify(r)},n.prototype.addUsername=function(e){this.parameters.set(PC.username,encodeURIComponent(e))},n.prototype.addPassword=function(e){this.parameters.set(PC.password,encodeURIComponent(e))},n.prototype.addPopToken=function(e){nt.isEmpty(e)||(this.parameters.set(en.TOKEN_TYPE,Vn.POP),this.parameters.set(en.REQ_CNF,encodeURIComponent(e)))},n.prototype.addSshJwk=function(e){nt.isEmpty(e)||(this.parameters.set(en.TOKEN_TYPE,Vn.SSH),this.parameters.set(en.REQ_CNF,encodeURIComponent(e)))},n.prototype.addServerTelemetry=function(e){this.parameters.set(en.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(en.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(en.X_MS_LIB_CAPABILITY,ey.X_MS_LIB_CAPABILITY_VALUE)},n.prototype.addLogoutHint=function(e){this.parameters.set(en.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 oR=function(){function n(e,t){this.config=mz(e),this.logger=new UC(this.config.loggerOptions,PN,rR),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new yz(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[ls.CONTENT_TYPE]=W.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case cs.HOME_ACCOUNT_ID:try{var r=Jp(e.credential);t[ls.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case cs.UPN:t[ls.CCS_HEADER]="UPN: "+e.credential;break}return t},n.prototype.executePostToTokenEndpoint=function(e,t,r,a){return Wt(this,void 0,void 0,function(){var l;return Yt(this,function(c){switch(c.label){case 0:return[4,this.networkManager.sendPostRequest(a,e,{body:t,headers:r})];case 1:return l=c.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 tt.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},n.prototype.createTokenQueryParameters=function(e){var t=new ry;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var iR=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 At.ID_TOKEN:return su.ID_TOKEN;case At.ACCESS_TOKEN:case At.ACCESS_TOKEN_WITH_AUTH_SCHEME:return su.ACCESS_TOKEN;case At.REFRESH_TOKEN:return su.REFRESH_TOKEN;default:throw tt.createUnexpectedCredentialTypeError()}},n.generateCredentialCacheKey=function(e,t,r,a,l,c,f,p,m){var y=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(r,a,l,f),this.generateTargetForCacheKey(c),this.generateClaimsHashForCacheKey(m),this.generateSchemeForCacheKey(p)];return y.join(zo.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(e,t){var r=[e,t];return r.join(zo.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(e,t,r,a){var l=e===At.REFRESH_TOKEN&&a||t,c=[e,l,r||W.EMPTY_STRING];return c.join(zo.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()!==Vn.BEARER.toLowerCase()?e.toLowerCase():W.EMPTY_STRING},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Zf=function(n){Ma(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,r,a,l,c){var f=new e;return f.credentialType=At.ID_TOKEN,f.homeAccountId=t,f.environment=r,f.clientId=l,f.secret=a,f.realm=c,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===At.ID_TOKEN:!1},e}(iR);/*! @azure/msal-common v13.3.0 2023-08-24 */var xs=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 eh=function(n){Ma(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,r,a,l,c,f,p,m,y,E,S,T,A,O,F){var H,D,q=new e;q.homeAccountId=t,q.credentialType=At.ACCESS_TOKEN,q.secret=a;var U=xs.nowSeconds();if(q.cachedAt=U.toString(),q.expiresOn=p.toString(),q.extendedExpiresOn=m.toString(),E&&(q.refreshOn=E.toString()),q.environment=r,q.clientId=l,q.realm=c,q.target=f,q.userAssertionHash=T,q.tokenType=nt.isEmpty(S)?Vn.BEARER:S,O&&(q.requestedClaims=O,q.requestedClaimsHash=F),((H=q.tokenType)===null||H===void 0?void 0:H.toLowerCase())!==Vn.BEARER.toLowerCase())switch(q.credentialType=At.ACCESS_TOKEN_WITH_AUTH_SCHEME,q.tokenType){case Vn.POP:var V=Ql.extractTokenClaims(a,y);if(!(!((D=V==null?void 0:V.cnf)===null||D===void 0)&&D.kid))throw tt.createTokenClaimsRequiredError();q.keyId=V.cnf.kid;break;case Vn.SSH:q.keyId=A}return q},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===At.ACCESS_TOKEN||t.credentialType===At.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(iR);/*! @azure/msal-common v13.3.0 2023-08-24 */var Zp=function(n){Ma(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,r,a,l,c,f){var p=new e;return p.clientId=l,p.credentialType=At.REFRESH_TOKEN,p.environment=r,p.homeAccountId=t,p.secret=a,p.userAssertionHash=f,c&&(p.familyId=c),p},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===At.REFRESH_TOKEN:!1},e}(iR);/*! @azure/msal-common v13.3.0 2023-08-24 */var LN=["interaction_required","consent_required","login_required"],_z=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ev={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."}},rl=function(n){Ma(e,n);function e(t,r,a,l,c,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=c||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&&LN.indexOf(t)>-1,c=!!a&&_z.indexOf(a)>-1,f=!!r&&LN.some(function(p){return r.indexOf(p)>-1});return l||f||c},e.createNoTokensFoundError=function(){return new e(ev.noTokensFoundError.code,ev.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ev.native_account_unavailable.code,ev.native_account_unavailable.desc)},e}(Ct);/*! @azure/msal-common v13.3.0 2023-08-24 */var oy=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 lu=function(){function n(){}return n.setRequestState=function(e,t,r){var a=n.generateLibraryState(e,r);return nt.isEmpty(t)?a:""+a+W.RESOURCE_DELIM+t},n.generateLibraryState=function(e,t){if(!e)throw tt.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 tt.createNoCryptoObjectError("parseRequestState");if(nt.isEmpty(t))throw tt.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,c=e.base64Decode(a),f=JSON.parse(c);return{userRequestState:nt.isEmpty(l)?W.EMPTY_STRING:l,libraryState:f}}catch(p){throw tt.createInvalidStateError(t,p)}},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var kn=function(){function n(e){if(this._urlString=e,nt.isEmpty(this._urlString))throw vr.createUrlEmptyError();nt.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 nt.endsWith(t,"?")?t=t.slice(0,-1):nt.endsWith(t,"?/")&&(t=t.slice(0,-2)),nt.endsWith(t,"/")||(t+="/"),t}return e},n.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw vr.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw vr.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw vr.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(e,t){return nt.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]===Qf.COMMON||r[0]===Qf.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 vr.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,!nt.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 vr.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(nt.isEmpty(e))return{};var t=n.parseHash(e),r=nt.queryStringToObject(nt.isEmpty(t)?e:t);if(!r)throw tt.createHashNotDeserializedError(JSON.stringify(r));return r},n.getDeserializedQueryString=function(e){if(nt.isEmpty(e))return{};var t=n.parseQueryString(e),r=nt.queryStringToObject(nt.isEmpty(t)?e:t);if(!r)throw tt.createHashNotDeserializedError(JSON.stringify(r));return r},n.hashContainsKnownProperties=function(e){if(nt.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 HC;(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"})(HC||(HC={}));var Cz=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.0 2023-08-24 */var aR;(function(n){n.SW="sw",n.UHW="uhw"})(aR||(aR={}));var tv=function(){function n(e,t){this.cryptoUtils=e,this.performanceClient=t}return n.prototype.generateCnf=function(e){var t,r;return Wt(this,void 0,void 0,function(){var a,l,c;return Yt(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)),c={kid:a.kid,reqCnfString:l},[4,this.cryptoUtils.hashString(l)];case 2:return[2,(c.reqCnfHash=f.sent(),c)]}})})},n.prototype.generateKid=function(e){var t;return Wt(this,void 0,void 0,function(){var r;return Yt(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:aR.SW}]}})})},n.prototype.signPopToken=function(e,t,r){return Wt(this,void 0,void 0,function(){return Yt(this,function(a){return[2,this.signPayload(e,t,r)]})})},n.prototype.signPayload=function(e,t,r,a){return Wt(this,void 0,void 0,function(){var l,c,f,p,m,y;return Yt(this,function(E){switch(E.label){case 0:return l=r.resourceRequestMethod,c=r.resourceRequestUri,f=r.shrClaims,p=r.shrNonce,m=c?new kn(c):void 0,y=m==null?void 0:m.getUrlComponents(),[4,this.cryptoUtils.signJwt($n({at:e,ts:xs.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 sR=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(e,t){var r=[tR,e,t];return r.join(zo.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(tR)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ez=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 jC=function(){function n(e,t,r,a,l,c,f){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=a,this.serializableCache=l,this.persistencePlugin=c,this.performanceClient=f}return n.prototype.validateServerAuthorizationCodeResponse=function(e,t,r){if(!e.state||!t)throw e.state?tt.createStateNotFoundError("Cached State"):tt.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw tt.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw rl.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new rl(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 Xf(e.error||W.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&FC(e.client_info,r)},n.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(rl.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new rl(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 Xf(e.error,t,e.suberror)}},n.prototype.handleServerTokenResponse=function(e,t,r,a,l,c,f,p,m){var y;return Wt(this,void 0,void 0,function(){var E,S,T,A,O,F,H;return Yt(this,function(D){switch(D.label){case 0:if((y=this.performanceClient)===null||y===void 0||y.addQueueMeasurement(Ee.HandleServerTokenResponse,e.correlation_id),e.id_token){if(E=new Ql(e.id_token||W.EMPTY_STRING,this.cryptoObj),l&&!nt.isEmpty(l.nonce)&&E.claims.nonce!==l.nonce)throw tt.createNonceMismatchError();if(a.maxAge||a.maxAge===0){if(S=E.claims.auth_time,!S)throw tt.createAuthTimeNotFoundError();Ql.checkMaxAge(S,a.maxAge)}}this.homeAccountIdentifier=Ai.generateHomeAccountId(e.client_info||W.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,E),l&&l.state&&(T=lu.parseRequestState(this.cryptoObj,l.state)),e.key_id=e.key_id||a.sshKid||void 0,A=this.generateCacheRecord(e,t,r,a,E,c,l),D.label=1;case 1:return D.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),O=new Ez(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(O)]):[3,3];case 2:D.sent(),D.label=3;case 3:return f&&!p&&A.account&&(F=A.account.generateAccountKey(),H=this.cacheStorage.getAccount(F),!H)?(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 D.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&O?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(O)]):[3,7];case 6:D.sent(),D.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,c,f){var p=t.getPreferredCache();if(nt.isEmpty(p))throw tt.createInvalidCacheEnvironmentError();var m,y;!nt.isEmpty(e.id_token)&&l&&(m=Zf.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(!nt.isEmpty(e.access_token)){var S=e.scope?Ki.fromString(e.scope):new Ki(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,O=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,F=r+T,H=F+A,D=O&&O>0?r+O:void 0;E=eh.createAccessTokenEntity(this.homeAccountIdentifier,p,e.access_token||W.EMPTY_STRING,this.clientId,l?l.claims.tid||W.EMPTY_STRING:t.tenant,S.printScopes(),F,H,this.cryptoObj,D,e.token_type,c,e.key_id,a.claims,a.requestedClaimsHash)}var q=null;nt.isEmpty(e.refresh_token)||(q=Zp.createRefreshTokenEntity(this.homeAccountIdentifier,p,e.refresh_token||W.EMPTY_STRING,this.clientId,e.foci,c));var U=null;return nt.isEmpty(e.foci)||(U=sR.createAppMetadataEntity(this.clientId,p,e.foci)),new oy(y,m,E,q,U)},n.prototype.generateAccountEntity=function(e,t,r,a){var l=r.authorityType,c=a?a.cloud_graph_host_name:W.EMPTY_STRING,f=a?a.msgraph_host:W.EMPTY_STRING;if(l===ga.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Ai.createGenericAccount(this.homeAccountIdentifier,t,r,c,f);if(nt.isEmpty(e.client_info)&&r.protocolMode==="AAD")throw tt.createClientInfoEmptyError();return e.client_info?Ai.createAccount(e.client_info,this.homeAccountIdentifier,t,r,c,f):Ai.createGenericAccount(this.homeAccountIdentifier,t,r,c,f)},n.generateAuthenticationResult=function(e,t,r,a,l,c,f,p,m){var y,E,S;return Wt(this,void 0,void 0,function(){var T,A,O,F,H,D,q,U,V,te,Z;return Yt(this,function(Ne){switch(Ne.label){case 0:if(T=W.EMPTY_STRING,A=[],O=null,H=W.EMPTY_STRING,!r.accessToken)return[3,4];if(r.accessToken.tokenType!==Vn.POP)return[3,2];if(D=new tv(e),q=r.accessToken,U=q.secret,V=q.keyId,!V)throw tt.createKeyIdMissingError();return[4,D.signPopToken(U,V,l)];case 1:return T=Ne.sent(),[3,3];case 2:T=r.accessToken.secret,Ne.label=3;case 3:A=Ki.fromString(r.accessToken.target).asArray(),O=new Date(Number(r.accessToken.expiresOn)*1e3),F=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),Ne.label=4;case 4:return r.appMetadata&&(H=r.appMetadata.familyId===Jg?Jg:W.EMPTY_STRING),te=(c==null?void 0:c.claims.oid)||(c==null?void 0:c.claims.sub)||W.EMPTY_STRING,Z=(c==null?void 0:c.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:te,tenantId:Z,scopes:A,account:r.account?r.account.getAccountInfo():null,idToken:c?c.rawToken:W.EMPTY_STRING,idTokenClaims:c?c.claims:{},accessToken:T,fromCache:a,expiresOn:O,correlationId:l.correlationId,requestId:m||W.EMPTY_STRING,extExpiresOn:F,familyId:H,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 UN=function(n){Ma(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 Wt(this,void 0,void 0,function(){var l;return Yt(this,function(c){switch(c.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=c.sent(),[2,kn.appendQueryString(this.authority.authorizationEndpoint,l)]}})})},e.prototype.acquireToken=function(t,r){var a,l,c,f,p,m;return Wt(this,void 0,void 0,function(){var y,E,S,T,A,O,F=this;return Yt(this,function(H){switch(H.label){case 0:if(!t||!t.code)throw tt.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=xs.nowSeconds(),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Ee.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return S=H.sent(),T=(f=S.headers)===null||f===void 0?void 0:f[ls.X_MS_REQUEST_ID],A=(p=S.headers)===null||p===void 0?void 0:p[ls.X_MS_HTTP_VERSION],A&&(y==null||y.addStaticFields({httpVerAuthority:A})),O=new jC(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),O.validateTokenResponse(S.body),(m=this.performanceClient)===null||m===void 0||m.setPreQueueTime(Ee.HandleServerTokenResponse,t.correlationId),[2,O.handleServerTokenResponse(S.body,this.authority,E,t,r,void 0,void 0,void 0,T).then(function(D){return y==null||y.endMeasurement({success:!0}),D}).catch(function(D){throw F.logger.verbose("Error in fetching token in ACC",t.correlationId),y==null||y.endMeasurement({errorCode:D.errorCode,subErrorCode:D.subError,success:!1}),D})]}})})},e.prototype.handleFragmentResponse=function(t,r){var a=new jC(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),l=new kn(t),c=kn.getDeserializedHash(l.getHash());if(a.validateServerAuthorizationCodeResponse(c,r,this.cryptoUtils),!c.code)throw tt.createNoAuthCodeInServerResponseError();return $n($n({},c),{code:c.code})},e.prototype.getLogoutUri=function(t){if(!t)throw vr.createEmptyLogoutRequestError();var r=this.createLogoutUrlQueryString(t);return kn.appendQueryString(this.authority.endSessionEndpoint,r)},e.prototype.executeTokenRequest=function(t,r){var a,l;return Wt(this,void 0,void 0,function(){var c,f,p,m,y,E,S;return Yt(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),c=this.createTokenQueryParameters(r),f=kn.appendQueryString(t.tokenEndpoint,c),[4,this.createTokenRequestBody(r)];case 1:if(p=T.sent(),m=void 0,r.clientInfo)try{y=FC(r.clientInfo,this.cryptoUtils),m={credential:""+y.uid+zo.CLIENT_INFO_SEPARATOR+y.utid,type:cs.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 Wt(this,void 0,void 0,function(){var l,c,f,p,m,y,E,E,S;return Yt(this,function(T){switch(T.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.AuthClientCreateTokenRequestBody,t.correlationId),l=new ry,l.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?l.addRedirectUri(t.redirectUri):Jf.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&&(c=this.config.clientCredentials.clientAssertion,l.addClientAssertion(c.assertion),l.addClientAssertionType(c.assertionType)),l.addGrantType(MC.AUTHORIZATION_CODE_GRANT),l.addClientInfo(),t.authenticationScheme!==Vn.POP?[3,2]:(f=new tv(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===Vn.SSH)if(t.sshJwk)l.addSshJwk(t.sshJwk);else throw vr.createMissingSshJwkError();T.label=3;case 3:if(m=t.correlationId||this.config.cryptoInterface.createNewGuid(),l.addCorrelationId(m),(!nt.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=FC(t.clientInfo,this.cryptoUtils),y={credential:""+E.uid+zo.CLIENT_INFO_SEPARATOR+E.utid,type:cs.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 cs.HOME_ACCOUNT_ID:try{E=Jp(y.credential),l.addCcsOid(E)}catch(A){this.logger.verbose("Could not parse home account ID for CCS Header: "+A)}break;case cs.UPN:l.addCcsUpn(y.credential);break}return t.tokenBodyParameters&&l.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[en.RETURN_SPA_CODE])&&l.addExtraQueryParameters((S={},S[en.RETURN_SPA_CODE]="1",S)),[2,l.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var r;return Wt(this,void 0,void 0,function(){var a,l,c,f,p,m,m,m,y,E;return Yt(this,function(S){switch(S.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.AuthClientCreateQueryString,t.correlationId),a=new ry,a.addClientId(this.config.authOptions.clientId),l=OC(t.scopes||[],t.extraScopesToConsent||[]),a.addScopes(l),a.addRedirectUri(t.redirectUri),c=t.correlationId||this.config.cryptoInterface.createNewGuid(),a.addCorrelationId(c),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!==Vi.SELECT_ACCOUNT)if(t.sid&&t.prompt===Vi.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=Jp(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===Vi.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),a.addSid(f);try{m=Jp(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=Jp(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),(!nt.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!==Vn.POP?[3,2]:(y=new tv(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 ry;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}(oR);/*! @azure/msal-common v13.3.0 2023-08-24 */var FN=function(n){Ma(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){var r,a,l,c,f,p,m;return Wt(this,void 0,void 0,function(){var y,E,S,T,A,O,F=this;return Yt(this,function(H){switch(H.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=xs.nowSeconds(),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(Ee.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return S=H.sent(),T=(c=S.headers)===null||c===void 0?void 0:c[ls.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[ls.X_MS_REQUEST_ID],O=new jC(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),O.validateTokenResponse(S.body),(m=this.performanceClient)===null||m===void 0||m.setPreQueueTime(Ee.HandleServerTokenResponse,t.correlationId),[2,O.handleServerTokenResponse(S.body,this.authority,E,t,void 0,void 0,!0,t.forceCache,A).then(function(D){return y==null||y.endMeasurement({success:!0}),D}).catch(function(D){throw F.logger.verbose("Error in fetching refresh token",t.correlationId),y==null||y.endMeasurement({errorCode:D.errorCode,subErrorCode:D.subError,success:!1}),D})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var r,a,l,c;return Wt(this,void 0,void 0,function(){var f,p,m;return Yt(this,function(y){if(!t)throw vr.createEmptyTokenRequestError();if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw tt.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 rl&&E.errorCode===ev.noTokensFoundError.code,m=E instanceof Xf&&E.errorCode===MN.INVALID_GRANT_ERROR&&E.subError===MN.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(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Ee.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,r){var a,l,c;return Wt(this,void 0,void 0,function(){var f,p,m;return Yt(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(),rl.createNoTokensFoundError();return f==null||f.endMeasurement({success:!0}),m=$n($n({},t),{refreshToken:p.secret,authenticationScheme:t.authenticationScheme||Vn.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:cs.HOME_ACCOUNT_ID}}),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Ee.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(m)]})})},e.prototype.executeTokenRequest=function(t,r){var a,l,c;return Wt(this,void 0,void 0,function(){var f,p,m,y,E,S;return Yt(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),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Ee.RefreshTokenClientCreateTokenRequestBody,t.correlationId),p=this.createTokenQueryParameters(t),m=kn.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 Wt(this,void 0,void 0,function(){var c,f,p,m,y,E,S;return Yt(this,function(T){switch(T.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Ee.RefreshTokenClientCreateTokenRequestBody,t.correlationId),c=t.correlationId,f=(a=this.performanceClient)===null||a===void 0?void 0:a.startMeasurement(Ee.BaseClientCreateTokenRequestHeaders,c),p=new ry,p.addClientId(this.config.authOptions.clientId),p.addScopes(t.scopes),p.addGrantType(MC.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(c),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!==Vn.POP?[3,2]:(y=new tv(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===Vn.SSH)if(t.sshJwk)p.addSshJwk(t.sshJwk);else throw f==null||f.endMeasurement({success:!1}),vr.createMissingSshJwkError();T.label=3;case 3:if((!nt.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 cs.HOME_ACCOUNT_ID:try{S=Jp(t.ccsCredential.credential),p.addCcsOid(S)}catch(A){this.logger.verbose("Could not parse home account ID for CCS Header: "+A)}break;case cs.UPN:p.addCcsUpn(t.ccsCredential.credential);break}return f==null||f.endMeasurement({success:!0}),[2,p.createQueryString()]}})})},e}(oR);/*! @azure/msal-common v13.3.0 2023-08-24 */var wz=function(n){Ma(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){return Wt(this,void 0,void 0,function(){var r,a;return Yt(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 tt&&r.errorCode===Fe.tokenRefreshRequired.code)return a=new FN(this.config,this.performanceClient),[2,a.acquireTokenByRefreshToken(t)];throw r;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var r,a,l,c,f;return Wt(this,void 0,void 0,function(){var p,m;return Yt(this,function(y){switch(y.label){case 0:if(!t)throw vr.createEmptyTokenRequestError();if(t.forceRefresh)throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(md.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),tt.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!nt.isEmptyObj(t.claims))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(md.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),tt.createRefreshRequiredError();if(!t.account)throw tt.createNoAccountInSilentRequestError();if(p=t.authority||this.authority.getPreferredCache(),m=this.cacheManager.readCacheRecord(t.account,t,p),m.accessToken){if(xs.wasClockTurnedBack(m.accessToken.cachedAt)||xs.isTokenExpired(m.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(c=this.serverTelemetryManager)===null||c===void 0||c.setCacheOutcome(md.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),tt.createRefreshRequiredError();if(m.accessToken.refreshOn&&xs.isTokenExpired(m.accessToken.refreshOn,0))throw(f=this.serverTelemetryManager)===null||f===void 0||f.setCacheOutcome(md.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),tt.createRefreshRequiredError()}else throw(l=this.serverTelemetryManager)===null||l===void 0||l.setCacheOutcome(md.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),tt.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 Wt(this,void 0,void 0,function(){var a,l;return Yt(this,function(c){switch(c.label){case 0:if(t.idToken&&(a=new Ql(t.idToken.secret,this.config.cryptoInterface)),r.maxAge||r.maxAge===0){if(l=a==null?void 0:a.claims.auth_time,!l)throw tt.createAuthTimeNotFoundError();Ql.checkMaxAge(l,r.maxAge)}return[4,jC.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,r,a)];case 1:return[2,c.sent()]}})})},e}(oR);/*! @azure/msal-common v13.3.0 2023-08-24 */function bz(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 $N={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"]}]}}},HN=$N.endpointMetadata,jN=$N.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.0 2023-08-24 */var iy;(function(n){n.AAD="AAD",n.OIDC="OIDC"})(iy||(iy={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var lR=function(){function n(){this.expiresAt=xs.nowSeconds()+Zg.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=xs.nowSeconds()+Zg.REFRESH_TIME_SECONDS},n.prototype.isExpired=function(){return this.expiresAt<=xs.nowSeconds()},n.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Zg.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 Sz(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.0 2023-08-24 */function Tz(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.0 2023-08-24 */var Rz=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,c;return Wt(this,void 0,void 0,function(){var f,p,m,y,E;return Yt(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===Xp.httpSuccess&&(f=m.body,t.region_source=vd.IMDS),m.status!==Xp.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?((c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Ee.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(y,p)]):(t.region_source=vd.FAILED_AUTO_DETECTION,[2,null]);case 4:E=S.sent(),E.status===Xp.httpSuccess&&(f=E.body,t.region_source=vd.IMDS),S.label=5;case 5:return[3,7];case 6:return S.sent(),t.region_source=vd.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=vd.ENVIRONMENT_VARIABLE,S.label=9;case 9:return f||(t.region_source=vd.FAILED_AUTO_DETECTION),[2,f||null]}})})},n.prototype.getRegionFromIMDS=function(e,t){var r;return Wt(this,void 0,void 0,function(){return Yt(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 Wt(this,void 0,void 0,function(){var r;return Yt(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===Xp.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 ay=function(){function n(e,t,r,a,l,c,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=c,this.correlationId=f,this.regionDiscovery=new Rz(t,this.performanceClient,this.correlationId)}return n.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(W.CIAM_AUTH_URL))return ga.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case W.ADFS:return ga.Adfs;case W.DSTS:return ga.Dsts}return ga.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 kn(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 tt.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 tt.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 tt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw tt.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw tt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw tt.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 tt.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)===ga.Default&&this.protocolMode===iy.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 kn(this.metadata.canonical_authority),l=a.getUrlComponents(),c=l.PathSegments,f=this.canonicalAuthorityUrlComponents.PathSegments;return f.forEach(function(p,m){var y=c[m];if(m===0&&t.canReplaceTenant(l)){var E=new kn(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===ga.Adfs||this.authorityType===ga.Dsts||this.protocolMode===iy.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 Wt(this,void 0,void 0,function(){var a,l,c,f;return Yt(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 lR,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 c=p.sent(),l!==As.CACHE&&c!==As.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,c,f;return Wt(this,void 0,void 0,function(){var p,m;return Yt(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,As.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,As.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,As.NETWORK];case 4:return m=this.getEndpointMetadataFromHardcodedValues(),m&&!this.authorityOptions.skipAuthorityMetadataCache?!((c=this.authorityOptions.azureRegionConfiguration)===null||c===void 0)&&c.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,As.HARDCODED_VALUES];case 7:throw tt.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(e){var t=new kn(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 vr.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){var e;return Wt(this,void 0,void 0,function(){var t,r;return Yt(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,bz(r.body)?r.body:null];case 3:return a.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in HN?HN[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(e){var t,r,a,l;return Wt(this,void 0,void 0,function(){var c,f;return Yt(this,function(p){switch(p.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Ee.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),c=(r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.azureRegion,c?c!==W.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=ty.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=c,[2,n.replaceWithRegionalInformation(e,c)]):((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=ty.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=f,[2,n.replaceWithRegionalInformation(e,f)];this.regionDiscoveryMetadata.region_outcome=ty.AUTO_DETECTION_REQUESTED_FAILED,p.label=2;case 2:return[2,e]}})})},n.prototype.updateCloudDiscoveryMetadata=function(e){var t,r;return Wt(this,void 0,void 0,function(){var a,l,c;return Yt(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,As.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,As.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,As.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),c=this.getCloudDiscoveryMetadataFromHarcodedValues(),c&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(c,!1),[2,As.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."),vr.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===ga.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."),vr.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 Wt(this,void 0,void 0,function(){var t,r,a,l,c,f,p,m;return Yt(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(),c=void 0,f=void 0,Sz(l.body))c=l.body,f=c.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+c.tenant_discovery_endpoint);else if(Tz(l.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+l.status),c=l.body,c.error===W.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+c.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+c.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 Ct?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 jN?jN[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(r){return kn.getDomainFromUrl(r).toLowerCase()===e.hostnameAndPort});return t.length>0},n.generateAuthority=function(e,t){var r;if(t&&t.azureCloudInstance!==ny.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 tt.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 kn(e);a.validateAsUri();var l=a.getUrlComponents(),c=t+"."+l.HostNameAndPort;this.isPublicCloudAuthority(l.HostNameAndPort)&&(c=t+"."+W.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var f=kn.constructAuthorityUriFromObject($n($n({},a.getUrlComponents()),{HostNameAndPort:c})).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 kn(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}",Qf.COMMON,Qf.CONSUMERS,Qf.ORGANIZATIONS]),n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var zC=function(){function n(){}return n.createDiscoveredInstance=function(e,t,r,a,l,c,f){return Wt(this,void 0,void 0,function(){var p,m,y;return Yt(this,function(E){switch(E.label){case 0:c==null||c.addQueueMeasurement(Ee.AuthorityFactoryCreateDiscoveredInstance,f),p=ay.transformCIAMAuthority(e),m=n.createInstance(p,t,r,a,l,c,f),E.label=1;case 1:return E.trys.push([1,3,,4]),c==null||c.setPreQueueTime(Ee.AuthorityResolveEndpointsAsync,f),[4,m.resolveEndpointsAsync()];case 2:return E.sent(),[2,m];case 3:throw y=E.sent(),tt.createEndpointDiscoveryIncompleteError(y);case 4:return[2]}})})},n.createInstance=function(e,t,r,a,l,c,f){if(nt.isEmpty(e))throw vr.createUrlEmptyError();return new ay(e,t,r,a,l,c,f)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var BC=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(e,t){var r=e.indexOf(ki.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 zN=function(){function n(){}return n.isThrottlingEntity=function(e,t){var r=!1;e&&(r=e.indexOf(ey.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 kz={sendGetRequestAsync:function(){var n="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Ct.createUnexpectedError(n))},sendPostRequestAsync:function(){var n="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Ct.createUnexpectedError(n))}};/*! @azure/msal-common v13.3.0 2023-08-24 */var qC={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."}},BN=function(n){Ma(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(qC.missingKidError.code,qC.missingKidError.desc)},e.createMissingAlgError=function(){return new e(qC.missingAlgError.code,qC.missingAlgError.desc)},e}(Ct);/*! @azure/msal-common v13.3.0 2023-08-24 */var Az=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 BN.createMissingKidError();if(!e.alg)throw BN.createMissingAlgError();var t=new n({typ:e.typ||nR.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var xz=function(){function n(e,t){this.cacheOutcome=md.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=ki.CACHE_KEY+zo.CACHE_KEY_SEPARATOR+e.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+ki.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(ki.VALUE_SEPARATOR),r=this.getRegionDiscoveryFields(),a=[e,r].join(ki.VALUE_SEPARATOR);return[ki.SCHEMA_VERSION,a,t].join(ki.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(ki.VALUE_SEPARATOR),a=e.errors.slice(0,t).join(ki.VALUE_SEPARATOR),l=e.errors.length,c=t<l?ki.OVERFLOW_TRUE:ki.OVERFLOW_FALSE,f=[l,c].join(ki.VALUE_SEPARATOR);return[ki.SCHEMA_VERSION,e.cacheHits,r,a,f].join(ki.CATEGORY_SEPARATOR)},n.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=ki.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),nt.isEmpty(e.subError)?nt.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(ki.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 BC,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 BC;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 c=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+=c.toString().length+f.toString().length+p.length+3,a<ki.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 qN=function(){function n(e,t,r,a,l,c){this.authority=t,this.libraryName=a,this.libraryVersion=l,this.applicationTelemetry=c,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 Cz},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},c=this.queueMeasurements.get(t);if(c)c.push(l),this.queueMeasurements.set(t,c);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,c=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",c),this.logger.trace("PerformanceClient: Performance measurement started for "+e,c);var f=this.startPerformanceMeasuremeant(e,c);f.startMeasurement();var p={eventId:this.generateId(),status:HC.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:c,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($n($n({},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,c=this.eventsByCorrelationId.get(e.correlationId);if(!c)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var f=e.eventId===c.eventId,p={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};f?(p=this.getQueueInfo(e.correlationId),this.discardCache(c.correlationId)):(a=c.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",c.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+m+" ms",e.correlationId),!f)return c[e.name+"DurationMs"]=Math.floor(m),$n({},c);var y=$n($n({},c),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=$n($n({},y),{durationMs:Math.round(m),queuedTimeMs:p.totalQueueTime,queuedCount:p.totalQueueCount,queuedManuallyCompletedCount:p.manuallyCompletedCount,status:HC.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,$n($n({},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,$n({},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(c){r+=c.queueTime,a++,l+=c.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 VN=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),Iz=function(n){Ma(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 VN},e.prototype.startPerformanceMeasurement=function(){return new VN},e.prototype.calculateQueuedTime=function(t,r){return 0},e.prototype.addQueueMeasurement=function(t,r,a){},e.prototype.setPreQueueTime=function(t,r){},e}(qN);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ue={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."}},Ge=function(n){Ri(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(Ue.pkceNotGenerated.code,Ue.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(Ue.cryptoDoesNotExist.code,Ue.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(Ue.httpMethodNotImplementedError.code,Ue.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(Ue.emptyNavigateUriError.code,Ue.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(Ue.hashEmptyError.code,Ue.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(Ue.hashDoesNotContainStateError.code,Ue.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(Ue.hashDoesNotContainKnownPropertiesError.code,Ue.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(Ue.unableToParseStateError.code,Ue.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(Ue.stateInteractionTypeMismatchError.code,Ue.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(Ue.interactionInProgress.code,Ue.interactionInProgress.desc)},e.createPopupWindowError=function(t){var r=Ue.popupWindowError.desc;return r=nt.isEmpty(t)?r:r+" Details: "+t,new e(Ue.popupWindowError.code,r)},e.createEmptyWindowCreatedError=function(){return new e(Ue.emptyWindowError.code,Ue.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(Ue.userCancelledError.code,Ue.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(Ue.monitorPopupTimeoutError.code,Ue.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(Ue.monitorIframeTimeoutError.code,Ue.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(Ue.redirectInIframeError.code,Ue.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(Ue.blockTokenRequestsInHiddenIframeError.code,Ue.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(Ue.blockAcquireTokenInPopupsError.code,Ue.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(Ue.iframeClosedPrematurelyError.code,Ue.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(Ue.silentLogoutUnsupportedError.code,Ue.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(Ue.noAccountError.code,Ue.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(Ue.silentPromptValueError.code,Ue.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(Ue.unableToParseTokenRequestCacheError.code,Ue.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(Ue.noTokenRequestCacheError.code,Ue.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(Ue.authRequestNotSet.code,Ue.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(Ue.noCachedAuthorityError.code,Ue.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(Ue.invalidCacheType.code,""+Ue.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(Ue.notInBrowserEnvironment.code,Ue.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(Ue.databaseNotOpen.code,Ue.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(Ue.noNetworkConnectivity.code,Ue.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,r){return new e(Ue.postRequestFailed.code,Ue.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createGetRequestFailedError=function(t,r){return new e(Ue.getRequestFailed.code,Ue.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(Ue.failedToParseNetworkResponse.code,Ue.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(Ue.unableToLoadTokenError.code,Ue.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(Ue.signingKeyNotFoundInStorage.code,Ue.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(Ue.authCodeRequired.code,Ue.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(Ue.authCodeOrNativeAccountRequired.code,Ue.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(Ue.spaCodeAndNativeAccountPresent.code,Ue.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(Ue.databaseUnavailable.code,Ue.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(Ue.unableToAcquireTokenFromNativePlatform.code,Ue.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(Ue.nativeHandshakeTimeout.code,Ue.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(Ue.nativeExtensionNotInstalled.code,Ue.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(Ue.nativeConnectionNotEstablished.code,Ue.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(Ue.nativeBrokerCalledBeforeInitialize.code,Ue.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(Ue.nativePromptNotSupported.code,Ue.nativePromptNotSupported.desc)},e}(Ct);/*! @azure/msal-browser v2.38.2 2023-08-24 */var ol={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"},sy={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},cu;(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"})(cu||(cu={}));var Io;(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"})(Io||(Io={}));var Xl;(function(n){n.GET="GET",n.POST="POST"})(Xl||(Xl={}));var Nn;(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"})(Nn||(Nn={}));var Jl;(function(n){n.ACCOUNT_KEYS="msal.account.keys",n.TOKEN_KEYS="msal.token.keys"})(Jl||(Jl={}));var nv;(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"})(nv||(nv={}));var mr;(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"})(mr||(mr={}));var ht;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(ht||(ht={}));var KN;(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"})(KN||(KN={}));var GN={scopes:Qg},rv="jwk",WN;(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"})(WN||(WN={}));var cR="msal.db",Oz=1,Nz=cR+".keys",Da;(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"})(Da||(Da={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var La={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."}},VC=function(n){Ri(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(La.redirectUriNotSet.code,La.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(La.postLogoutUriNotSet.code,La.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(La.storageNotSupportedError.code,La.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(La.noRedirectCallbacksSet.code,La.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(La.stubPcaInstanceCalled.code,La.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(La.inMemRedirectUnavailable.code,La.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(La.entropyNotProvided.code,La.entropyNotProvided.desc)},e}(Ct);/*! @azure/msal-browser v2.38.2 2023-08-24 */var YN=function(){function n(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return n.prototype.validateWindowStorage=function(e){if(e!==Io.LocalStorage&&e!==Io.SessionStorage)throw VC.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw VC.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 uR=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 QN=function(){function n(){}return n.extractBrowserRequestState=function(e,t){if(nt.isEmpty(t))return null;try{var r=lu.parseRequestState(e,t);return r.libraryState.meta}catch(a){throw tt.createInvalidStateError(t,a)}},n.parseServerResponseFromHash=function(e){if(!e)return{};var t=new kn(e);return kn.getDeserializedHash(t.getHash())},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var dR=function(n){Ri(e,n);function e(t,r,a,l){var c=n.call(this,t,a,l)||this;return c.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,c.cacheConfig=r,c.logger=l,c.internalStorage=new uR,c.browserStorage=c.setupBrowserStorage(c.cacheConfig.cacheLocation),c.temporaryCacheStorage=c.setupTemporaryCacheStorage(c.cacheConfig.temporaryCacheLocation,c.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(c.migrateCacheEntries(),c.createKeyMaps()),c}return e.prototype.setupBrowserStorage=function(t){switch(t){case Io.LocalStorage:case Io.SessionStorage:try{return new YN(t)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=Io.MemoryStorage,new uR},e.prototype.setupTemporaryCacheStorage=function(t,r){switch(r){case Io.LocalStorage:case Io.SessionStorage:try{return new YN(t||Io.SessionStorage)}catch(a){return this.logger.verbose(a),this.internalStorage}case Io.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,r=W.CACHE_PREFIX+"."+jo.ID_TOKEN,a=W.CACHE_PREFIX+"."+jo.CLIENT_INFO,l=W.CACHE_PREFIX+"."+jo.ERROR,c=W.CACHE_PREFIX+"."+jo.ERROR_DESC,f=this.browserStorage.getItem(r),p=this.browserStorage.getItem(a),m=this.browserStorage.getItem(l),y=this.browserStorage.getItem(c),E=[f,p,m,y],S=[jo.ID_TOKEN,jo.CLIENT_INFO,jo.ERROR,jo.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(Jl.ACCOUNT_KEYS),a=this.getItem(Jl.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(c){if(t.isCredentialKey(c)){var f=t.getItem(c);if(f){var p=t.validateAndParseJson(f);if(p&&p.hasOwnProperty("credentialType"))switch(p.credentialType){case At.ID_TOKEN:if(Zf.isIdTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+c+" found, saving key to token key map");var m=Pa.toObject(new Zf,p),y=t.updateCredentialCacheKey(c,m);t.addTokenKey(y,At.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: "+c);break;case At.ACCESS_TOKEN:case At.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(eh.isAccessTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+c+" found, saving key to token key map");var E=Pa.toObject(new eh,p),y=t.updateCredentialCacheKey(c,E);t.addTokenKey(y,At.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: "+c);break;case At.REFRESH_TOKEN:if(Zp.isRefreshTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+c+" found, saving key to token key map");var S=Pa.toObject(new Zp,p),y=t.updateCredentialCacheKey(c,S);t.addTokenKey(y,At.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: "+c);break}}}if(t.isAccountKey(c)){var f=t.getItem(c);if(f){var T=t.validateAndParseJson(f);T&&Ai.isAccountEntity(T)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+c+" found, saving key to account key map"),t.addAccountKeyToMap(c))}}})},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||!Ai.isAccountEntity(a)?(this.removeAccountKeyFromMap(t),null):Pa.toObject(new Ai,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(Jl.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(Jl.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(Jl.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 Ae(this,void 0,void 0,function(){return xe(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,At.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return n.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,At.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){n.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,At.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(Jl.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 At.ID_TOKEN:a.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),a.idToken.push(t));break;case At.ACCESS_TOKEN:a.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),a.accessToken.push(t));break;case At.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),tt.createUnexpectedCredentialTypeError()}this.setItem(Jl.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 At.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 At.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var c=a.accessToken.indexOf(t);c>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),a.accessToken.splice(c,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case At.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),tt.createUnexpectedCredentialTypeError()}this.setItem(Jl.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,At.ID_TOKEN),null;var a=this.validateAndParseJson(r);return!a||!Zf.isIdTokenEntity(a)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,At.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Pa.toObject(new Zf,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,At.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,At.ACCESS_TOKEN),null;var a=this.validateAndParseJson(r);return!a||!eh.isAccessTokenEntity(a)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,At.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Pa.toObject(new eh,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,At.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,At.REFRESH_TOKEN),null;var a=this.validateAndParseJson(r);return!a||!Zp.isRefreshTokenEntity(a)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,At.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Pa.toObject(new Zp,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,At.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||!sR.isAppMetadataEntity(t,a)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Pa.toObject(new sR,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||!BC.isServerTelemetryEntity(t,a)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Pa.toObject(new BC,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&&lR.isAuthorityMetadataEntity(t,a)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Pa.toObject(new lR,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(nv.WRAPPER_SKU,t),this.internalStorage.setItem(nv.WRAPPER_VER,r)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(nv.WRAPPER_SKU)||W.EMPTY_STRING,r=this.internalStorage.getItem(nv.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(jo.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(jo.ACTIVE_ACCOUNT),l=this.getItem(a);if(!l)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var c=this.getAccountInfoByFilter({localAccountId:l})[0]||null;return c?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(c),c):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(jo.ACTIVE_ACCOUNT_FILTERS),a=this.generateCacheKey(jo.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 c=l.idTokenClaims&&l.idTokenClaims.sid;return r===c}return t?t===l.username:!1});if(a.length===1)return a[0];if(a.length>1)throw tt.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||!zN.isThrottlingEntity(t,a)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Pa.toObject(new zN,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 c=this.temporaryCacheStorage.getItem(a);if(!c){if(this.cacheConfig.cacheLocation===Io.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"),c},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 ZT(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return Ae(this,void 0,void 0,function(){var t=this;return xe(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 Ae(this,void 0,void 0,function(){var t,r,a=this;return xe(this,function(l){switch(l.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),r=[],t.accessToken.forEach(function(c){var f=a.getAccessTokenCredential(c);f!=null&&f.requestedClaimsHash&&c.includes(f.requestedClaimsHash.toLowerCase())&&r.push(a.removeAccessToken(c))}),[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 c=this.getCookieExpirationTime(a);l+="expires="+c+";"}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 c=a[l];c.charAt(0)===" ";)c=c.substring(1);if(c.indexOf(r)===0)return decodeURIComponent(c.substring(r.length,c.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 c=l.split("=")[0];t.clearItemCookie(c)}})},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):nt.startsWith(t,W.CACHE_PREFIX)||nt.startsWith(t,jo.ADAL_ID_TOKEN)?t:W.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var r=lu.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Nn.AUTHORITY+"."+r)},e.prototype.generateNonceKey=function(t){var r=lu.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Nn.NONCE_IDTOKEN+"."+r)},e.prototype.generateStateKey=function(t){var r=lu.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Nn.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,c){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),c){var y={credential:c.homeAccountId,type:cs.HOME_ACCOUNT_ID};this.setTemporaryCache(Nn.CCS_CREDENTIAL,JSON.stringify(y),!0)}else if(!nt.isEmpty(l)){var y={credential:l,type:cs.UPN};this.setTemporaryCache(Nn.CCS_CREDENTIAL,JSON.stringify(y),!0)}},e.prototype.resetRequestCache=function(t){var r=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),nt.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(Nn.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Nn.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Nn.URL_HASH)),this.removeItem(this.generateCacheKey(Nn.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Nn.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Nn.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(Nn.REQUEST_STATE)!==-1){var l=r.temporaryCacheStorage.getItem(a);if(l){var c=QN.extractBrowserRequestState(r.cryptoImpl,l);c&&c.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(Nn.REQUEST_PARAMS,a,!0)},e.prototype.getCachedRequest=function(t,r){this.logger.trace("BrowserCacheManager.getCachedRequest called");var a=this.getTemporaryCache(Nn.REQUEST_PARAMS,!0);if(!a)throw Ge.createNoTokenRequestCacheError();var l=this.validateAndParseJson(r.base64Decode(a));if(!l)throw Ge.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Nn.REQUEST_PARAMS)),nt.isEmpty(l.authority)){var c=this.generateAuthorityKey(t),f=this.getTemporaryCache(c);if(!f)throw Ge.createNoCachedAuthorityError();l.authority=f}return l},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(Nn.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+"."+Nn.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var r=W.CACHE_PREFIX+"."+Nn.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw Ge.createInteractionInProgressError();this.setTemporaryCache(r,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(jo.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(jo.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var r=this.getTemporaryCache(jo.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(jo.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var a=r||t;if(a){var l=new Ql(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(Nn.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(Nn.REDIRECT_CONTEXT,t,!0)},e}(Pa),Mz=function(n,e){var t={cacheLocation:Io.MemoryStorage,temporaryCacheLocation:Io.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new dR(n,t,LC,e)};/*! @azure/msal-browser v2.38.2 2023-08-24 */var fR="@azure/msal-browser",ly="2.38.2";/*! @azure/msal-browser v2.38.2 2023-08-24 */var Pz=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return Ae(this,void 0,void 0,function(){var r,a,l;return xe(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,fetch(e,{method:Xl.GET,headers:this.getFetchHeaders(t)})];case 1:return r=c.sent(),[3,3];case 2:throw a=c.sent(),window.navigator.onLine?Ge.createGetRequestFailedError(a,e):Ge.createNoNetworkConnectivityError();case 3:return c.trys.push([3,5,,6]),l={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(l.body=c.sent(),l.status=r.status,l)];case 5:throw c.sent(),Ge.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(e,t){return Ae(this,void 0,void 0,function(){var r,a,l,c;return xe(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:Xl.POST,headers:this.getFetchHeaders(t),body:r})];case 2:return a=f.sent(),[3,4];case 3:throw l=f.sent(),window.navigator.onLine?Ge.createPostRequestFailedError(l,e):Ge.createNoNetworkConnectivityError();case 4:return f.trys.push([4,6,,7]),c={headers:this.getHeaderDict(a.headers)},[4,a.json()];case 5:return[2,(c.body=f.sent(),c.status=a.status,c)];case 6:throw f.sent(),Ge.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 Dz=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return[2,this.sendRequestAsync(e,Xl.GET,t)]})})},n.prototype.sendPostRequestAsync=function(e,t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return[2,this.sendRequestAsync(e,Xl.POST,t)]})})},n.prototype.sendRequestAsync=function(e,t,r){var a=this;return new Promise(function(l,c){var f=new XMLHttpRequest;if(f.open(t,e,!0),a.setXhrHeaders(f,r),f.onload=function(){(f.status<200||f.status>=300)&&(t===Xl.POST?c(Ge.createPostRequestFailedError("Failed with status "+f.status,e)):c(Ge.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{c(Ge.createFailedToParseNetworkResponseError(e))}},f.onerror=function(){window.navigator.onLine?t===Xl.POST?c(Ge.createPostRequestFailedError("Failed with status "+f.status,e)):c(Ge.createGetRequestFailedError("Failed with status "+f.status,e)):c(Ge.createNoNetworkConnectivityError())},t===Xl.POST&&r&&r.body)f.send(r.body);else if(t===Xl.GET)f.send();else throw Ge.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 c=l.split(": "),f=c.shift(),p=c.join(": ");f&&p&&(a[f]=p)}),a},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Zr=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(ol.POPUP_NAME_PREFIX+".")===0},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new kn(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Pz:new Dz},n.blockReloadInHiddenIframes=function(){var e=kn.hashContainsKnownProperties(window.location.hash);if(e&&n.isInIframe())throw Ge.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(e,t){var r=n.isInIframe();if(e===ht.Redirect&&r&&!t)throw Ge.createRedirectInIframeError(r)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw Ge.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(e){if(!e)throw Ge.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw Ge.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,c=a>0;return l||c},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var XN=function(){function n(e,t,r,a,l,c,f,p,m){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=l,this.navigationClient=c,this.nativeMessageHandler=p,this.correlationId=m||this.browserCrypto.createNewGuid(),this.logger=a.clone(ol.MSAL_SKU,ly,this.correlationId),this.performanceClient=f}return n.prototype.clearCacheOnLogout=function(e){return Ae(this,void 0,void 0,function(){return xe(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Ai.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(Ai.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 Ae(this,void 0,void 0,function(){var r,a,l,c;return xe(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=ZT(e&&e.scopes||[]),l=pt(pt({},e),{correlationId:this.correlationId,authority:r,scopes:a}),!l.authenticationScheme)l.authenticationScheme=Vn.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(l.authenticationScheme===Vn.SSH){if(!e.sshJwk)throw vr.createMissingSshJwkError();if(!e.sshKid)throw vr.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+l.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!nt.isEmptyObj(e.claims)?(c=l,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:c.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||Zr.getCurrentUri();return kn.getAbsoluteUrl(t,Zr.getCurrentUri())},n.prototype.validateRequestAuthority=function(e,t){return Ae(this,void 0,void 0,function(){var r;return xe(this,function(a){switch(a.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(r=a.sent(),!r.isAlias(t.environment))throw vr.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 xz(r,this.browserStorage)},n.prototype.getDiscoveredAuthority=function(e){return Ae(this,void 0,void 0,function(){var t;return xe(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,zC.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,zC.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 ov=function(n){Ri(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return Ae(this,void 0,void 0,function(){var r,a;return xe(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=pt(pt({},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=pt({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=kn.getAbsoluteUrl(t.postLogoutRedirectUri,Zr.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=kn.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Zr.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=kn.getAbsoluteUrl(Zr.getCurrentUri(),Zr.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 Ae(this,void 0,void 0,function(){var l;return xe(this,function(c){switch(c.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=c.sent(),[2,new UN(l,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,r,a){return Ae(this,void 0,void 0,function(){var l,c;return xe(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(),c=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:c.loggerCallback,piiLoggingEnabled:c.piiLoggingEnabled,logLevel:c.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:ol.MSAL_SKU,version:ly,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 Ge.createHashDoesNotContainStateError();var l=QN.extractBrowserRequestState(this.browserCrypto,t.state);if(!l)throw Ge.createUnableToParseStateError();if(l.interactionType!==r)throw Ge.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",a),t.state},e.prototype.getDiscoveredAuthority=function(t,r){var a;return Ae(this,void 0,void 0,function(){var l,c,f,p;return xe(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),c={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=ay.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,zC.createDiscoveredInstance(p,this.config.system.networkClient,this.browserStorage,c,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 Ae(this,void 0,void 0,function(){var a,l,c,f,p,m,y;return xe(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},c=lu.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=pt.apply(void 0,[pt.apply(void 0,p.concat([E.sent()])),{redirectUri:a,state:c,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:NC.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),nt.isEmpty(f.loginHint)&&!m&&(y=this.browserStorage.getLegacyLoginHint(),y&&(f.loginHint=y)),[2,f]}})})},e}(XN);/*! @azure/msal-browser v2.38.2 2023-08-24 */var hR=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 Ae(this,void 0,void 0,function(){var l,c,f;return xe(this,function(p){if(this.performanceClient.addQueueMeasurement(Ee.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),nt.isEmpty(e))throw Ge.createEmptyHashError(e);if(l=this.browserStorage.generateStateKey(t),c=this.browserStorage.getTemporaryCache(l),!c)throw tt.createStateNotFoundError("Cached State");try{f=this.authModule.handleFragmentResponse(e,c)}catch(m){throw m instanceof Xf&&m.subError===Ue.userCancelledError.code?Ge.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),Ae(this,void 0,void 0,function(){var c,f,p,m,y,E;return xe(this,function(S){switch(S.label){case 0:if(this.performanceClient.addQueueMeasurement(Ee.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),c=this.browserStorage.generateStateKey(t),f=this.browserStorage.getTemporaryCache(c),!f)throw tt.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 Ae(this,void 0,void 0,function(){var a,l;return xe(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),a="https://"+e+"/"+t.tenant+"/",[4,zC.createDiscoveredInstance(a,r,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return l=c.sent(),this.authModule.updateAuthority(l),[2]}})})},n.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Nn.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 JN=function(n){Ri(e,n);function e(t,r,a,l,c,f){var p=n.call(this,t,r,a,l,f)||this;return p.browserCrypto=c,p}return e.prototype.initiateAuthRequest=function(t,r){return Ae(this,void 0,void 0,function(){var a,l;return xe(this,function(c){switch(c.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),nt.isEmpty(t)?[3,7]:(r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Nn.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Nn.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),a={apiId:mr.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 c.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 c.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Ge.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,r,a,l){return Ae(this,void 0,void 0,function(){var c,f,p,m,y,E,S;return xe(this,function(T){switch(T.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),nt.isEmpty(t))throw Ge.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),c=this.browserStorage.generateStateKey(r),f=this.browserStorage.getTemporaryCache(c),!f)throw tt.createStateNotFoundError("Cached State");try{p=this.authModule.handleFragmentResponse(t,f)}catch(A){throw A instanceof Xf&&A.subError===Ue.userCancelledError.code?Ge.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}(hR);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Kt;(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"})(Kt||(Kt={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var gd;(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"})(gd||(gd={}));var cy={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"}},Zl=function(n){Ri(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===gd.PERSISTENT_ERROR||this.ext.status===gd.DISABLED))return!0;switch(this.errorCode){case cy.extensionError.code:return!0;default:return!1}},e.createError=function(t,r,a){if(a&&a.status)switch(a.status){case gd.ACCOUNT_UNAVAILABLE:return rl.createNativeAccountUnavailableError();case gd.USER_INTERACTION_REQUIRED:return new rl(t,r);case gd.USER_CANCEL:return Ge.createUserCancelledError();case gd.NO_NETWORK:return Ge.createNoNetworkConnectivityError()}return new e(t,r,a)},e.createUserSwitchError=function(){return new e(cy.userSwitch.code,cy.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(cy.tokensNotFoundInCache.code,cy.tokensNotFoundInCache.desc)},e}(Ct);/*! @azure/msal-browser v2.38.2 2023-08-24 */var ZN=function(n){Ri(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f;return xe(this,function(p){switch(p.label){case 0:return r=this.performanceClient.startMeasurement(Ee.SilentCacheClientAcquireToken,t.correlationId),a=this.initializeServerTelemetryManager(mr.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 c=p.sent(),r.endMeasurement({success:!0,fromCache:!0}),[2,c];case 4:throw f=p.sent(),f instanceof Ge&&f.errorCode===Ue.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 Ct&&f.errorCode||void 0,subErrorCode:f instanceof Ct&&f.subError||void 0,success:!1}),f;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Ge.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,r,a){return Ae(this,void 0,void 0,function(){var l;return xe(this,function(c){switch(c.label){case 0:return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,a)];case 1:return l=c.sent(),[2,new wz(l,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,r){return Ae(this,void 0,void 0,function(){var a;return xe(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(Ee.InitializeBaseRequest,this.correlationId),a=[pt({},t)],[4,this.initializeBaseRequest(t,r)];case 1:return[2,pt.apply(void 0,[pt.apply(void 0,a.concat([l.sent()])),{account:r,forceRefresh:t.forceRefresh||!1}])]}})})},e}(ov);/*! @azure/msal-browser v2.38.2 2023-08-24 */var iv=function(n){Ri(e,n);function e(t,r,a,l,c,f,p,m,y,E,S,T){var A=n.call(this,t,r,a,l,c,f,m,y,T)||this;return A.apiId=p,A.accountId=E,A.nativeMessageHandler=y,A.nativeStorageManager=S,A.silentCacheClient=new ZN(t,A.nativeStorageManager,a,l,c,f,m,y,T),A}return e.prototype.acquireToken=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m;return xe(this,function(y){switch(y.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),r=this.performanceClient.startMeasurement(Ee.NativeInteractionClientAcquireToken,t.correlationId),a=xs.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 c=y.sent(),r.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,c];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:cu.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:Ki.fromString(t.scope).asArray(),account:r,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,r){return Ae(this,void 0,void 0,function(){var a,l,c,f;return xe(this,function(p){switch(p.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),tt.createNoAccountFoundError();if(a=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!a)throw tt.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 c=p.sent(),[2,c];case 3:throw f=p.sent(),f;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f,p;return xe(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:cu.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(c=m.sent(),c instanceof Zl&&c.isFatal())throw c;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Nn.NATIVE_REQUEST,JSON.stringify(r),!0),f={apiId:mr.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 Ae(this,void 0,void 0,function(){var t,r,a,l,c,f,p,m;return xe(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=IN(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(Nn.NATIVE_REQUEST)),l={method:cu.GetToken,request:a},c=xs.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,c),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 Ae(this,void 0,void 0,function(){var l,c,f,p,m,y;return xe(this,function(E){switch(E.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==r.accountId)throw Zl.createUserSwitchError();return[4,this.getDiscoveredAuthority(r.authority)];case 1:return l=E.sent(),c=l.getPreferredCache(),f=this.createIdTokenObj(t),p=this.createHomeAccountIdentifier(t,f),m=this.createAccountEntity(t,p,f,c),[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 Ql(t.id_token||W.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,r){var a=Ai.generateHomeAccountId(t.client_info||W.EMPTY_STRING,ga.Default,this.logger,this.browserCrypto,r);return a},e.prototype.createAccountEntity=function(t,r,a,l){return Ai.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?Ki.fromString(t.scope):Ki.fromString(r.scope)},e.prototype.generatePopAccessToken=function(t,r){return Ae(this,void 0,void 0,function(){var a,l;return xe(this,function(c){switch(c.label){case 0:if(r.tokenType!==Vn.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(a=new tv(this.browserCrypto),l={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce},!r.keyId)throw tt.createKeyIdMissingError();return[4,a.signPopToken(t.access_token,r.keyId,l)];case 1:return[2,c.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,r,a,l,c,f){return Ae(this,void 0,void 0,function(){var p,m,y,E,S,T,A,O;return xe(this,function(F){switch(F.label){case 0:return p=this.addTelemetryFromNativeResponse(t),m=t.scope?Ki.fromString(t.scope):Ki.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=F.sent(),A=r.tokenType===Vn.POP?Vn.POP:Vn.BEARER,O={authority:c,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,O]}})})},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,c,f,p,m){var y=Zf.createIdTokenEntity(a,r.authority,t.id_token||W.EMPTY_STRING,r.clientId,c.claims.tid||W.EMPTY_STRING),E=r.tokenType===Vn.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=eh.createAccessTokenEntity(a,r.authority,f,r.clientId,c?c.claims.tid||W.EMPTY_STRING:p,T.printScopes(),S,0,this.browserCrypto),O=new oy(l,y,A);this.nativeStorageManager.saveCacheRecord(O)},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 Zl.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 Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m,y,E,S,T=this;return xe(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 kn(r),a.validateAsUri(),l=t.scopes,c=IN(t,["scopes"]),f=new Ki(l||[]),f.appendScopes(Qg),p=function(){switch(T.apiId){case mr.ssoSilent:case mr.acquireTokenSilent_silentFlow:return T.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Vi.NONE}if(!t.prompt){T.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case Vi.NONE:case Vi.CONSENT:case Vi.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"),Ge.createNativePromptParameterNotSupportedError()}},m=pt(pt({},c),{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:pt(pt(pt({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:sy.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==Vn.POP?[3,4]:(y={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},E=new tv(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}(XN);/*! @azure/msal-browser v2.38.2 2023-08-24 */var th=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 Ae(this,void 0,void 0,function(){var t,r=this;return xe(this,function(a){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:sy.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,c){r.resolvers.set(t.responseId,{resolve:l,reject:c})})]})})},n.createProvider=function(e,t,r){return Ae(this,void 0,void 0,function(){var a,l;return xe(this,function(c){switch(c.label){case 0:e.trace("NativeMessageHandler - createProvider called."),c.label=1;case 1:return c.trys.push([1,3,,5]),a=new n(e,t,r,sy.PREFERRED_EXTENSION_ID),[4,a.sendHandshakeRequest()];case 2:return c.sent(),[2,a];case 3:return c.sent(),l=new n(e,t,r),[4,l.sendHandshakeRequest()];case 4:return c.sent(),[2,l];case 5:return[2]}})})},n.prototype.sendHandshakeRequest=function(){return Ae(this,void 0,void 0,function(){var e,t=this;return xe(this,function(r){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:sy.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:cu.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(Ge.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!==sy.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===cu.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(Ge.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===cu.Response){if(!r)return;var c=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(c)),c.status!=="Success")r.reject(Zl.createError(c.code,c.description,c.ext));else if(c.result)c.result.code&&c.result.description?r.reject(Zl.createError(c.result.code,c.result.description,c.result.ext)):r.resolve(c.result);else throw Ct.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(l===cu.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 Vn.BEARER:case Vn.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 Lz=function(n){Ri(e,n);function e(t,r,a,l,c,f,p,m,y,E){var S=n.call(this,t,r,a,l,c,f,p,y,E)||this;return S.nativeStorage=m,S}return e.prototype.acquireToken=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m,y,E,S=this;return xe(this,function(T){switch(T.label){case 0:return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,ht.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(mr.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(Kt.RESTORE_FROM_BFCACHE,ht.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 c=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 JN(f,this.browserStorage,c,this.logger,this.browserCrypto,this.performanceClient),[4,f.getAuthCodeUrl(pt(pt({},r),{nativeBroker:th.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 Ct&&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 Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m,y,E,S,T,A;return xe(this,function(O){switch(O.label){case 0:r=this.initializeServerTelemetryManager(mr.handleRedirectPromise),O.label=1;case 1:if(O.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(ht.Redirect),[2,null];l=void 0;try{c=kn.getDeserializedHash(a),l=this.validateAndExtractStateFromHash(c,ht.Redirect),this.logger.verbose("State extracted from hash")}catch(F){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+F),this.browserStorage.cleanRequestByInteractionType(ht.Redirect),[2,null]}return f=this.browserStorage.getTemporaryCache(Nn.ORIGIN_URI,!0)||W.EMPTY_STRING,p=kn.removeHashFromUrl(f),m=kn.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=O.sent(),f.indexOf("#")>-1&&Zr.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!Zr.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(Nn.URL_HASH,a,!0),E={apiId:mr.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},S=!0,!f||f==="null"?(T=Zr.getHomepage(),this.browserStorage.setTemporaryCache(Nn.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=O.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+f),[4,this.navigationClient.navigateInternal(f,E)];case 7:S=O.sent(),O.label=8;case 8:if(!S)return[2,this.handleHash(a,l,r)];O.label=9;case 9:return[2,null];case 10:throw A=O.sent(),A instanceof Ct&&A.setCorrelationId(this.correlationId),r.cacheFailedRequest(A),this.browserStorage.cleanRequestByInteractionType(ht.Redirect),A;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var r=kn.hashContainsKnownProperties(t);if(r)return Zr.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var a=this.browserStorage.getTemporaryCache(Nn.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Nn.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),a},e.prototype.handleHash=function(t,r,a){return Ae(this,void 0,void 0,function(){var l,c,f,p,m,y,E,S=this;return xe(this,function(T){switch(T.label){case 0:if(l=this.browserStorage.getCachedRequest(r,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),c=kn.getDeserializedHash(t),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ge.createNativeConnectionNotEstablishedError();return f=new iv(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,mr.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,c.accountId,this.nativeStorage,l.correlationId),p=lu.parseRequestState(this.browserCrypto,r).userRequestState,[2,f.acquireToken(pt(pt({},l),{state:p,prompt:void 0})).finally(function(){S.browserStorage.cleanRequestByState(r)})]}if(m=this.browserStorage.getCachedAuthority(r),!m)throw Ge.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"),$C.removeThrottle(this.browserStorage,this.config.auth.clientId,l),E=new JN(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 Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m;return xe(this,function(y){switch(y.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(t),a=this.initializeServerTelemetryManager(mr.logout),y.label=1;case 1:return y.trys.push([1,10,,11]),this.eventHandler.emitEvent(Kt.LOGOUT_START,ht.Redirect,t),[4,this.clearCacheOnLogout(r.account)];case 2:return y.sent(),l={apiId:mr.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 c=y.sent(),this.logger.verbose("Auth code client created"),f=c.getLogoutUri(r),this.eventHandler.emitEvent(Kt.LOGOUT_SUCCESS,ht.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 Ct&&m.setCorrelationId(this.correlationId),a.cacheFailedRequest(m),this.eventHandler.emitEvent(Kt.LOGOUT_FAILURE,ht.Redirect,null,m),this.eventHandler.emitEvent(Kt.LOGOUT_END,ht.Redirect),m;case 11:return this.eventHandler.emitEvent(Kt.LOGOUT_END,ht.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var r=t||window.location.href;return kn.getAbsoluteUrl(r,Zr.getCurrentUri())},e}(ov);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Uz=function(n){Ri(e,n);function e(t,r,a,l,c,f,p,m,y,E){var S=n.call(this,t,r,a,l,c,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||Qg,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(c){return Promise.reject(c)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var r=this.initializeLogoutRequest(t),a=this.generateLogoutPopupName(r),l=t&&t.authority,c=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,c);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,c)}catch(m){return Promise.reject(m)}},e.prototype.acquireTokenPopupAsync=function(t,r,a,l){return Ae(this,void 0,void 0,function(){var c,f,p,m,y,E,S,T,A,O,F,H,D,q,U,V,te,Z=this;return xe(this,function(Ne){switch(Ne.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),c=this.initializeServerTelemetryManager(mr.acquireTokenPopup),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,ht.Popup)];case 1:f=Ne.sent(),this.browserStorage.updateCacheEntries(f.state,f.nonce,f.authority,f.loginHint||W.EMPTY_STRING,f.account||null),Ne.label=2;case 2:return Ne.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(f)];case 3:return p=Ne.sent(),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(c,f.authority,f.azureCloudOptions)];case 4:return m=Ne.sent(),this.logger.verbose("Auth code client created"),y=th.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),E=void 0,y&&(E=this.performanceClient.startMeasurement(Ee.FetchAccountIdWithNativeBroker,t.correlationId)),[4,m.getAuthCodeUrl(pt(pt({},f),{nativeBroker:y}))];case 5:return S=Ne.sent(),T=new hR(m,this.browserStorage,p,this.logger,this.performanceClient),A={popup:l,popupName:r,popupWindowAttributes:a},O=this.initiateAuthRequest(S,A),this.eventHandler.emitEvent(Kt.POPUP_OPENED,ht.Popup,{popupWindow:O},null),[4,this.monitorPopupForHash(O)];case 6:if(F=Ne.sent(),H=kn.getDeserializedHash(F),D=this.validateAndExtractStateFromHash(H,ht.Popup,f.correlationId),$C.removeThrottle(this.browserStorage,this.config.auth.clientId,p),H.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),E&&E.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Ge.createNativeConnectionNotEstablishedError();return q=new iv(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,mr.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,H.accountId,this.nativeStorage,f.correlationId),U=lu.parseRequestState(this.browserCrypto,D).userRequestState,[2,q.acquireToken(pt(pt({},f),{state:U,prompt:void 0})).finally(function(){Z.browserStorage.cleanRequestByState(D)})]}return[4,T.handleCodeResponseFromHash(F,D,m.authority,this.networkClient)];case 7:return V=Ne.sent(),[2,V];case 8:throw te=Ne.sent(),l&&l.close(),te instanceof Ct&&te.setCorrelationId(this.correlationId),c.cacheFailedRequest(te),this.browserStorage.cleanRequestByState(f.state),te;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,r,a,l,c,f){return Ae(this,void 0,void 0,function(){var p,m,y,E,S,T,A;return xe(this,function(O){switch(O.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Kt.LOGOUT_START,ht.Popup,t),p=this.initializeServerTelemetryManager(mr.logoutPopup),O.label=1;case 1:return O.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return O.sent(),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(p,l)];case 3:return m=O.sent(),this.logger.verbose("Auth code client created"),y=m.getLogoutUri(t),this.eventHandler.emitEvent(Kt.LOGOUT_SUCCESS,ht.Popup,t),E=this.openPopup(y,{popupName:r,popupWindowAttributes:a,popup:c}),this.eventHandler.emitEvent(Kt.POPUP_OPENED,ht.Popup,{popupWindow:E},null),[4,this.waitForLogoutPopup(E)];case 4:return O.sent(),f?(S={apiId:mr.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},T=kn.getAbsoluteUrl(f,Zr.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=O.sent(),c&&c.close(),A instanceof Ct&&A.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Kt.LOGOUT_FAILURE,ht.Popup,null,A),this.eventHandler.emitEvent(Kt.LOGOUT_END,ht.Popup),p.cacheFailedRequest(A),A;case 6:return this.eventHandler.emitEvent(Kt.LOGOUT_END,ht.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,r){if(nt.isEmpty(t))throw this.logger.error("Navigate url is empty"),Ge.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 c=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(Ge.createUserCancelledError());return}var m=W.EMPTY_STRING,y=W.EMPTY_STRING;try{m=t.location.href,y=t.location.hash}catch{}nt.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),kn.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(Ge.createHashDoesNotContainKnownPropertiesError()))):f>c&&(r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(p),l(Ge.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 c=W.EMPTY_STRING;try{c=t.location.href}catch{}nt.isEmpty(c)||c==="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 Ge.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),Ge.createPopupWindowError(l.toString())}},e.prototype.openSizedPopup=function(t,r,a){var l,c,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=(c=a.popupSize)===null||c===void 0?void 0:c.height,O=(f=a.popupPosition)===null||f===void 0?void 0:f.top,F=(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=ol.POPUP_WIDTH),(!A||A<0||A>S)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),A=ol.POPUP_HEIGHT),(!O||O<0||O>S)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),O=Math.max(0,S/2-ol.POPUP_HEIGHT/2+y)),(!F||F<0||F>E)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),F=Math.max(0,E/2-ol.POPUP_WIDTH/2+m)),window.open(t,r,"width="+T+", height="+A+", top="+O+", left="+F+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(ht.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 ol.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 ol.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r+"."+this.correlationId},e}(ov);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Fz=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 $z=6e4,pR=6e3,Hz=3e4,jz=2e3;function zz(n,e){var t=n.auth,r=n.cache,a=n.system,l=n.telemetry,c={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:iy.AAD,azureCloudOptions:{azureCloudInstance:ny.None,tenant:W.EMPTY_STRING},skipAuthorityMetadataCache:!1},f={cacheLocation:Io.SessionStorage,temporaryCacheLocation:Io.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(r&&r.cacheLocation===Io.LocalStorage),claimsBasedCachingEnabled:!0},p={loggerCallback:function(){},logLevel:Jr.Info,piiLoggingEnabled:!1},m=pt(pt({},DN),{loggerOptions:p,networkClient:e?Zr.getBrowserNetworkClient():kz,navigationClient:new Fz,loadFrameTimeout:0,windowHashTimeout:(a==null?void 0:a.loadFrameTimeout)||$z,iframeHashTimeout:(a==null?void 0:a.loadFrameTimeout)||pR,navigateFrameWait:e&&Zr.detectIEOrEdge()?500:0,redirectNavigationTimeout:Hz,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(a==null?void 0:a.nativeBrokerHandshakeTimeout)||jz,pollIntervalMilliseconds:ol.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),y=pt(pt({},a),{loggerOptions:(a==null?void 0:a.loggerOptions)||p}),E={application:{appName:W.EMPTY_STRING,appVersion:W.EMPTY_STRING}},S={auth:pt(pt({},c),t),cache:pt(pt({},f),r),system:pt(pt({},m),y),telemetry:pt(pt({},E),l)};return S}/*! @azure/msal-browser v2.38.2 2023-08-24 */var eM=function(n){Ri(e,n);function e(t,r,a,l,c,f){var p=n.call(this,t,r,a,l,f)||this;return p.navigateFrameWait=c.navigateFrameWait,p.pollIntervalMilliseconds=c.pollIntervalMilliseconds,p}return e.prototype.initiateAuthRequest=function(t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(Ee.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),nt.isEmpty(t))throw this.logger.info("Navigate url is empty"),Ge.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,c){r<pR&&a.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+r+"ms) than the default ("+pR+"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),c(Ge.createMonitorIframeTimeoutError());return}var y=W.EMPTY_STRING,E=t.contentWindow;try{y=E?E.location.href:W.EMPTY_STRING}catch{}if(!nt.isEmpty(y)){var S=E?E.location.hash:W.EMPTY_STRING;if(kn.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 c=r.createHiddenIframe();setTimeout(function(){if(!c){l("Unable to load iframe");return}c.src=t,a(c)},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}(hR);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Bz=function(n){Ri(e,n);function e(t,r,a,l,c,f,p,m,y,E,S){var T=n.call(this,t,r,a,l,c,f,m,E,S)||this;return T.apiId=p,T.nativeStorage=y,T}return e.prototype.acquireToken=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f;return xe(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),nt.isEmpty(t.loginHint)&&nt.isEmpty(t.sid)&&(!t.account||nt.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!==Vi.NONE&&t.prompt!==Vi.NO_SESSION)throw r.endMeasurement({success:!1}),Ge.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(pt(pt({},t),{prompt:t.prompt||Vi.NONE}),ht.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 c=p.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(Ee.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(c,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 Ct&&f.setCorrelationId(this.correlationId),l.cacheFailedRequest(f),this.browserStorage.cleanRequestByState(a.state),r.endMeasurement({errorCode:f instanceof Ct&&f.errorCode||void 0,subErrorCode:f instanceof Ct&&f.subError||void 0,success:!1}),f;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Ge.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,r){return Ae(this,void 0,void 0,function(){var a,l,c,f,p,m,y,E,S,T=this;return xe(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(pt(pt({},r),{nativeBroker:th.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return l=A.sent(),c=new eM(t,this.browserStorage,a,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(Ee.SilentHandlerInitiateAuthRequest,r.correlationId),[4,c.initiateAuthRequest(l)];case 3:return f=A.sent(),this.performanceClient.setPreQueueTime(Ee.SilentHandlerMonitorIframeForHash,r.correlationId),[4,c.monitorIframeForHash(f,this.config.system.iframeHashTimeout)];case 4:if(p=A.sent(),m=kn.getDeserializedHash(p),y=this.validateAndExtractStateFromHash(m,ht.Silent,a.correlationId),m.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ge.createNativeConnectionNotEstablishedError();return E=new iv(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=lu.parseRequestState(this.browserCrypto,y).userRequestState,[2,E.acquireToken(pt(pt({},r),{state:S,prompt:r.prompt||Vi.NONE})).finally(function(){T.browserStorage.cleanRequestByState(y)})]}return this.performanceClient.setPreQueueTime(Ee.HandleCodeResponseFromHash,r.correlationId),[2,c.handleCodeResponseFromHash(p,y,t.authority,this.networkClient)]}})})},e}(ov);/*! @azure/msal-browser v2.38.2 2023-08-24 */var qz=function(n){Ri(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f,p=this;return xe(this,function(m){switch(m.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(Ee.InitializeBaseRequest,t.correlationId),a=[pt({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return r=pt.apply(void 0,a.concat([m.sent()])),l=this.performanceClient.startMeasurement(Ee.SilentRefreshClientAcquireToken,r.correlationId),c=this.initializeServerTelemetryManager(mr.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(c,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 Ct&&y.setCorrelationId(p.correlationId),c.cacheFailedRequest(y),l.endMeasurement({errorCode:y.errorCode,subErrorCode:y.subError,success:!1}),y})]}})})},e.prototype.logout=function(){return Promise.reject(Ge.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,r,a){return Ae(this,void 0,void 0,function(){var l;return xe(this,function(c){switch(c.label){case 0:return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,a)];case 1:return l=c.sent(),[2,new FN(l,this.performanceClient)]}})})},e}(ov);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Vz=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 c={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,[c])})}},n.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var r=JSON.parse(t);if(typeof r!="object"||!Ai.isAccountEntity(r))return;var a=Pa.toObject(new Ai,r),l=a.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Kt.ACCOUNT_ADDED,void 0,l)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Kt.ACCOUNT_REMOVED,void 0,l))}catch{return}},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Gi=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 tM=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,Gi.decimalToHex(e[0])+Gi.decimalToHex(e[1])+Gi.decimalToHex(e[2])+Gi.decimalToHex(e[3])+"-"+Gi.decimalToHex(e[4])+Gi.decimalToHex(e[5])+"-"+Gi.decimalToHex(e[6])+Gi.decimalToHex(e[7])+"-"+Gi.decimalToHex(e[8])+Gi.decimalToHex(e[9])+"-"+Gi.decimalToHex(e[10])+Gi.decimalToHex(e[11])+Gi.decimalToHex(e[12])+Gi.decimalToHex(e[13])+Gi.decimalToHex(e[14])+Gi.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",a=0,l=W.EMPTY_STRING,c=0;c<36;c++)t[c]!=="-"&&t[c]!=="4"&&(a=Math.random()*16|0),t[c]==="x"?l+=r[a]:t[c]==="y"?(a&=3,a|=8,l+=r[a]):l+=t[c];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 uu=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 c=new Uint8Array(r),f=0,p=0;f<r;p++)t=e.charCodeAt(p),t<128?c[f++]=t:t<2048?(c[f++]=192+(t>>>6),c[f++]=128+(t&63)):t<65536?(c[f++]=224+(t>>>12),c[f++]=128+(t>>>6&63),c[f++]=128+(t&63)):t<2097152?(c[f++]=240+(t>>>18),c[f++]=128+(t>>>12&63),c[f++]=128+(t>>>6&63),c[f++]=128+(t&63)):t<67108864?(c[f++]=248+(t>>>24),c[f++]=128+(t>>>18&63),c[f++]=128+(t>>>12&63),c[f++]=128+(t>>>6&63),c[f++]=128+(t&63)):(c[f++]=252+(t>>>30),c[f++]=128+(t>>>24&63),c[f++]=128+(t>>>18&63),c[f++]=128+(t>>>12&63),c[f++]=128+(t>>>6&63),c[f++]=128+(t&63));return c},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 nM=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=uu.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,c=0,f=0;f<l;f++)a=f%3,c|=e[f]<<(16>>>a&24),(a===2||e.length-f===1)&&(r+=String.fromCharCode(this.uint6ToB64(c>>>18&63),this.uint6ToB64(c>>>12&63),this.uint6ToB64(c>>>6&63),this.uint6ToB64(c&63)),c=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 Kz=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 uu.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,c=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++)c[y]=m>>>(16>>>f&24)&255;m=0}return c},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 Gz=32,Wz=function(){function n(e){this.base64Encode=new nM,this.cryptoObj=e}return n.prototype.generateCodes=function(){return Ae(this,void 0,void 0,function(){var e,t;return xe(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(Gz);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(r){throw Ge.createPkceNotGeneratedError(r)}},n.prototype.generateCodeChallengeFromVerifier=function(e){return Ae(this,void 0,void 0,function(){var t,r;return xe(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(),Ge.createPkceNotGeneratedError(r);case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Yz=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ae(this,void 0,void 0,function(){return xe(this,function(a){return[2,window.crypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return Ae(this,void 0,void 0,function(){return xe(this,function(t){return[2,window.crypto.subtle.exportKey(rv,e)]})})},n.prototype.importKey=function(e,t,r,a){return Ae(this,void 0,void 0,function(){return xe(this,function(l){return[2,window.crypto.subtle.importKey(rv,e,t,r,a)]})})},n.prototype.sign=function(e,t,r){return Ae(this,void 0,void 0,function(){return xe(this,function(a){return[2,window.crypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return[2,window.crypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Qz=function(){function n(){}return n.prototype.initPrng=function(e){return window.msrCrypto.initPrng(ZT(e))},n.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ae(this,void 0,void 0,function(){return xe(this,function(a){return[2,window.msrCrypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return Ae(this,void 0,void 0,function(){return xe(this,function(t){return[2,window.msrCrypto.subtle.exportKey(rv,e)]})})},n.prototype.importKey=function(e,t,r,a){return Ae(this,void 0,void 0,function(){return xe(this,function(l){return[2,window.msrCrypto.subtle.importKey(rv,e,t,r,a)]})})},n.prototype.sign=function(e,t,r){return Ae(this,void 0,void 0,function(){return xe(this,function(a){return[2,window.msrCrypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return[2,window.msrCrypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Xz=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ae(this,void 0,void 0,function(){return xe(this,function(a){return[2,new Promise(function(l,c){var f=window.msCrypto.subtle.generateKey(e,t,r);f.addEventListener("complete",function(p){l(p.target.result)}),f.addEventListener("error",function(p){c(p)})})]})})},n.prototype.exportKey=function(e){return Ae(this,void 0,void 0,function(){return xe(this,function(t){return[2,new Promise(function(r,a){var l=window.msCrypto.subtle.exportKey(rv,e);l.addEventListener("complete",function(c){var f=c.target.result,p=uu.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(c){a(c)})})]})})},n.prototype.importKey=function(e,t,r,a){return Ae(this,void 0,void 0,function(){var l,c;return xe(this,function(f){return l=uu.getSortedObjectString(e),c=uu.stringToArrayBuffer(l),[2,new Promise(function(p,m){var y=window.msCrypto.subtle.importKey(rv,c,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 Ae(this,void 0,void 0,function(){return xe(this,function(a){return[2,new Promise(function(l,c){var f=window.msCrypto.subtle.sign(e,t,r);f.addEventListener("complete",function(p){l(p.target.result)}),f.addEventListener("error",function(p){c(p)})})]})})},n.prototype.digest=function(e,t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return[2,new Promise(function(a,l){var c=window.msCrypto.subtle.digest(e,t.buffer);c.addEventListener("complete",function(f){a(f.target.result)}),c.addEventListener("error",function(f){l(f)})})]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Jz="RSASSA-PKCS1-v1_5",rM="SHA-256",Zz=2048,eB=new Uint8Array([1,0,1]),oM=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 Yz;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Xz;else if(this.hasMsrCrypto()&&(!((r=this.cryptoOptions)===null||r===void 0)&&r.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Qz;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."),Ge.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."),VC.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:Jz,hash:rM,modulusLength:Zz,publicExponent:eB}}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 Ae(this,void 0,void 0,function(){var t;return xe(this,function(r){return t=uu.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:rM},t)]})})},n.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},n.prototype.generateKeyPair=function(e,t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},n.prototype.exportJwk=function(e){return Ae(this,void 0,void 0,function(){return xe(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},n.prototype.importJwk=function(e,t,r){return Ae(this,void 0,void 0,function(){return xe(this,function(a){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,r)]})})},n.prototype.sign=function(e,t){return Ae(this,void 0,void 0,function(){return xe(this,function(r){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var tB=function(){function n(){this.dbName=cR,this.version=Oz,this.tableName=Nz,this.dbOpen=!1}return n.prototype.open=function(){return Ae(this,void 0,void 0,function(){var e=this;return xe(this,function(t){return[2,new Promise(function(r,a){var l=window.indexedDB.open(e.dbName,e.version);l.addEventListener("upgradeneeded",function(c){var f=c;f.target.result.createObjectStore(e.tableName)}),l.addEventListener("success",function(c){var f=c;e.db=f.target.result,e.dbOpen=!0,r()}),l.addEventListener("error",function(){return a(Ge.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return Ae(this,void 0,void 0,function(){return xe(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 Ae(this,void 0,void 0,function(){var t=this;return xe(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(Ge.createDatabaseNotOpenError());var c=t.db.transaction([t.tableName],"readonly"),f=c.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 Ae(this,void 0,void 0,function(){var r=this;return xe(this,function(a){switch(a.label){case 0:return[4,this.validateDbIsOpen()];case 1:return a.sent(),[2,new Promise(function(l,c){if(!r.db)return c(Ge.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(),c(y)})})]}})})},n.prototype.removeItem=function(e){return Ae(this,void 0,void 0,function(){var t=this;return xe(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(Ge.createDatabaseNotOpenError());var c=t.db.transaction([t.tableName],"readwrite"),f=c.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 Ae(this,void 0,void 0,function(){var e=this;return xe(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(Ge.createDatabaseNotOpenError());var l=e.db.transaction([e.tableName],"readonly"),c=l.objectStore(e.tableName),f=c.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 Ae(this,void 0,void 0,function(){var t=this;return xe(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(Ge.createDatabaseNotOpenError());var c=t.db.transaction([t.tableName],"readonly"),f=c.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 Ae(this,void 0,void 0,function(){return xe(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,r){var a=window.indexedDB.deleteDatabase(cR);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 iM=function(){function n(e,t){this.inMemoryCache=new uR,this.indexedDBCache=new tB,this.logger=e,this.storeName=t}return n.prototype.handleDatabaseAccessError=function(e){if(e instanceof Ge&&e.errorCode===Ue.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 Ae(this,void 0,void 0,function(){var t,r;return xe(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 Ae(this,void 0,void 0,function(){var r;return xe(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 Ae(this,void 0,void 0,function(){var t;return xe(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 Ae(this,void 0,void 0,function(){var e,t;return xe(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 Ae(this,void 0,void 0,function(){var t,r;return xe(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 Ae(this,void 0,void 0,function(){var e,t;return xe(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 KC;(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"})(KC||(KC={}));var nB=function(){function n(e){this.logger=e,this.asymmetricKeys=new iM(this.logger,KC.asymmetricKeys),this.symmetricKeys=new iM(this.logger,KC.symmetricKeys)}return n.prototype.clear=function(){return Ae(this,void 0,void 0,function(){var e;return xe(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 rB=function(){function n(e,t,r){this.logger=e,this.browserCrypto=new oM(this.logger,r),this.b64Encode=new nM,this.b64Decode=new Kz,this.guidGenerator=new tM(this.browserCrypto),this.pkceGenerator=new Wz(this.browserCrypto),this.cache=new nB(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 Ae(this,void 0,void 0,function(){return xe(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(e){var t;return Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m,y;return xe(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(),c={e:l.e,kty:l.kty,n:l.n},f=uu.getSortedObjectString(c),[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 Ae(this,void 0,void 0,function(){var t;return xe(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 Ae(this,void 0,void 0,function(){return xe(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 Ae(this,void 0,void 0,function(){var l,c,f,p,m,y,E,S,T,A,O,F,H;return xe(this,function(D){switch(D.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(c=D.sent(),!c)throw Ge.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(c.publicKey)];case 2:return f=D.sent(),p=uu.getSortedObjectString(f),m=this.b64Encode.urlEncode(JSON.stringify({kid:t})),y=Az.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=uu.stringToArrayBuffer(T),[4,this.browserCrypto.sign(c.privateKey,A)];case 3:return O=D.sent(),F=this.b64Encode.urlEncodeArr(new Uint8Array(O)),H=T+"."+F,l&&l.endMeasurement({success:!0}),[2,H]}})})},n.prototype.hashString=function(e){return Ae(this,void 0,void 0,function(){var t,r;return xe(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 aM=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 oB=function(n){Ri(e,n);function e(t,r,a,l,c,f,p){var m=n.call(this,t,r,a,l,c,f)||this;return m.browserCrypto=new oM(m.logger,p),m.guidGenerator=new tM(m.browserCrypto),m}return e.prototype.startPerformanceMeasuremeant=function(t,r){return new aM(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(c){l.push(pt({},c))}),l.length>0&&aM.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(),c=n.prototype.startMeasurement.call(this,t,r);return pt(pt({},c),{endMeasurement:function(f){var p=c.endMeasurement(pt({startPageVisibility:l,endPageVisibility:a.getPageVisibility()},f));return a.deleteIncompleteSubMeasurements(c),p},discardMeasurement:function(){c.discardMeasurement(),a.deleteIncompleteSubMeasurements(c),c.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 c=n.prototype.getPreQueueTime.call(this,t,r);if(c){var f=window.performance.now(),p=a||n.prototype.calculateQueuedTime.call(this,c,f);return n.prototype.addQueueMeasurement.call(this,t,r,p,l)}},e}(qN);/*! @azure/msal-browser v2.38.2 2023-08-24 */var iB=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 Ge.createUnableToLoadTokenError("Please ensure server response includes id token.");var a=new Ql(t.id_token,this.cryptoObj),l,c;if(e.account){var f=this.loadAccount(a,e.account.environment,void 0,void 0,e.account.homeAccountId);l=new oy(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=ay.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(c=new ay(p,this.config.system.networkClient,this.storage,m,this.logger),r.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var f=this.loadAccount(a,c.hostnameAndPort,r.clientInfo,c.authorityType);l=new oy(f,this.loadIdToken(a,f.homeAccountId,c.hostnameAndPort,c.tenant),this.loadAccessToken(e,t,f.homeAccountId,c.hostnameAndPort,c.tenant,r),this.loadRefreshToken(e,t,f.homeAccountId,c.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var f=this.loadAccount(a,c.hostnameAndPort,t.client_info,c.authorityType);l=new oy(f,this.loadIdToken(a,f.homeAccountId,c.hostnameAndPort,c.tenant),this.loadAccessToken(e,t,f.homeAccountId,c.hostnameAndPort,c.tenant,r),this.loadRefreshToken(e,t,f.homeAccountId,c.hostnameAndPort))}else throw Ge.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw Ge.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,a,l,c)},n.prototype.loadAccount=function(e,t,r,a,l){var c;if(l?c=l:a!==void 0&&r&&(c=Ai.generateHomeAccountId(r,a,this.logger,this.cryptoObj,e)),!c)throw Ge.createUnableToLoadTokenError("Unexpected missing homeAccountId");var f=r?Ai.createAccount(r,c,e,void 0,void 0,void 0,t):Ai.createGenericAccount(c,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(f),f;throw Ge.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadIdToken=function(e,t,r,a){var l=Zf.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 Ge.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadAccessToken=function(e,t,r,a,l,c){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw Ge.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!c.extendedExpiresOn)throw Ge.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var f=new Ki(e.scopes).printScopes(),p=c.expiresOn||t.expires_in+new Date().getTime()/1e3,m=c.extendedExpiresOn,y=eh.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 Ge.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=Zp.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 Ge.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.generateAuthenticationResult=function(e,t,r,a){var l,c,f,p=W.EMPTY_STRING,m=[],y=null,E;r!=null&&r.accessToken&&(p=r.accessToken.secret,m=Ki.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:((c=r==null?void 0:r.account)===null||c===void 0?void 0:c.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 aB=function(n){Ri(e,n);function e(t){var r=n.call(this,t)||this;return r.includeRedirectUri=!1,r}return e}(UN);/*! @azure/msal-browser v2.38.2 2023-08-24 */var sB=function(n){Ri(e,n);function e(t,r,a,l,c,f,p,m,y,E){var S=n.call(this,t,r,a,l,c,f,m,y,E)||this;return S.apiId=p,S}return e.prototype.acquireToken=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m;return xe(this,function(y){switch(y.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw Ge.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,ht.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=pt(pt({},r),{code:t.code}),this.performanceClient.setPreQueueTime(Ee.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(a,r.authority)];case 3:return c=y.sent(),f=new aB(c),this.logger.verbose("Auth code client created"),p=new eM(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 Ct&&m.setCorrelationId(this.correlationId),a.cacheFailedRequest(m),this.browserStorage.cleanRequestByState(r.state),m;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Ge.createSilentLogoutUnsupportedError())},e}(ov);/*! @azure/msal-browser v2.38.2 2023-08-24 */var lB=function(){function n(e){this.isBrowserEnvironment=typeof window<"u",this.config=zz(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new UC(this.config.system.loggerOptions,fR,ly),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 oB(this.config.auth.clientId,this.config.auth.authority,this.logger,fR,ly,this.config.telemetry.application,this.config.system.cryptoOptions):new Iz(this.config.auth.clientId,this.config.auth.authority,this.logger,fR,ly,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new rB(this.logger,this.performanceClient,this.config.system.cryptoOptions):LC,this.eventHandler=new Vz(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new dR(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Mz(this.config.auth.clientId,this.logger);var t={cacheLocation:Io.MemoryStorage,temporaryCacheLocation:Io.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new dR(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new iB(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return n.prototype.initialize=function(){return Ae(this,void 0,void 0,function(){var e,t,r,a,l;return xe(this,function(c){switch(c.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(Kt.INITIALIZE_START),!e)return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),r=this,[4,th.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return r.nativeExtensionProvider=c.sent(),[3,4];case 3:return a=c.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:c.sent(),l.endMeasurement({success:!0}),c.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Kt.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},n.prototype.handleRedirectPromise=function(e){return Ae(this,void 0,void 0,function(){var t,r,a,l,c,f,p,m,y=this;return xe(this,function(E){return this.logger.verbose("handleRedirectPromise called"),Zr.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(Kt.HANDLE_REDIRECT_START,ht.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),l=this.browserStorage.getCachedNativeRequest(),c=void 0,l&&th.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),f=new iv(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,mr.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,l.accountId,this.nativeInternalStorage,l.correlationId),c=f.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),p=this.browserStorage.getTemporaryCache(Nn.CORRELATION_ID,!0)||W.EMPTY_STRING,m=this.createRedirectClient(p),c=m.handleRedirectPromise(e)),a=c.then(function(S){if(S){var T=t.length<y.getAllAccounts().length;T?(y.eventHandler.emitEvent(Kt.LOGIN_SUCCESS,ht.Redirect,S),y.logger.verbose("handleRedirectResponse returned result, login success")):(y.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_SUCCESS,ht.Redirect,S),y.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return y.eventHandler.emitEvent(Kt.HANDLE_REDIRECT_END,ht.Redirect),S}).catch(function(S){throw t.length>0?y.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_FAILURE,ht.Redirect,null,S):y.eventHandler.emitEvent(Kt.LOGIN_FAILURE,ht.Redirect,null,S),y.eventHandler.emitEvent(Kt.HANDLE_REDIRECT_END,ht.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 Ae(this,void 0,void 0,function(){var t,r,a,l,c,f=this;return xe(this,function(p){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(ht.Redirect),r=this.getAllAccounts().length>0,r?this.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_START,ht.Redirect,e):this.eventHandler.emitEvent(Kt.LOGIN_START,ht.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(l=new iv(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,mr.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),a=l.acquireTokenRedirect(e).catch(function(m){if(m instanceof Zl&&m.isFatal()){f.nativeExtensionProvider=void 0;var y=f.createRedirectClient(e.correlationId);return y.acquireToken(e)}else if(m instanceof rl){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})):(c=this.createRedirectClient(e.correlationId),a=c.acquireToken(e)),[2,a.catch(function(m){throw r?f.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_FAILURE,ht.Redirect,null,m):f.eventHandler.emitEvent(Kt.LOGIN_FAILURE,ht.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(ht.Popup)}catch(p){return Promise.reject(p)}var l=this.getAllAccounts();l.length>0?this.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_START,ht.Popup,e):this.eventHandler.emitEvent(Kt.LOGIN_START,ht.Popup,e);var c;if(this.canUseNative(e))c=this.acquireTokenNative(e,mr.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 Zl&&p.isFatal()){t.nativeExtensionProvider=void 0;var m=t.createPopupClient(e.correlationId);return m.acquireToken(e)}else if(p instanceof rl){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);c=f.acquireToken(e)}return c.then(function(p){var m=l.length<t.getAllAccounts().length;return m?t.eventHandler.emitEvent(Kt.LOGIN_SUCCESS,ht.Popup,p):t.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_SUCCESS,ht.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(Kt.ACQUIRE_TOKEN_FAILURE,ht.Popup,null,p):t.eventHandler.emitEvent(Kt.LOGIN_FAILURE,ht.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 Ae(this,void 0,void 0,function(){var r,a,l,c,f=this;return xe(this,function(p){return r=this.getRequestCorrelationId(e),a=pt(pt({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(ht.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(Kt.SSO_SILENT_START,ht.Silent,a),this.canUseNative(a)?l=this.acquireTokenNative(a,mr.ssoSilent).catch(function(m){if(m instanceof Zl&&m.isFatal()){f.nativeExtensionProvider=void 0;var y=f.createSilentIframeClient(a.correlationId);return y.acquireToken(a)}throw m}):(c=this.createSilentIframeClient(a.correlationId),l=c.acquireToken(a)),[2,l.then(function(m){var y,E;return f.eventHandler.emitEvent(Kt.SSO_SILENT_SUCCESS,ht.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(Kt.SSO_SILENT_FAILURE,ht.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 Ae(this,void 0,void 0,function(){var t,r,a,l,c=this;return xe(this,function(f){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(ht.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_BY_CODE_START,ht.Silent,e),r=this.performanceClient.startMeasurement(Ee.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw Ge.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(pt(pt({},e),{correlationId:t})).then(function(p){return c.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_BY_CODE_SUCCESS,ht.Silent,p),c.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 c.hybridAuthCodeResponses.delete(a),c.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_BY_CODE_FAILURE,ht.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,mr.acquireTokenByCode,e.nativeAccountId).catch(function(p){throw p instanceof Zl&&p.isFatal()&&(c.nativeExtensionProvider=void 0),p})];throw Ge.createUnableToAcquireTokenFromNativePlatformError()}else throw Ge.createAuthCodeOrNativeAccountIdRequiredError()}catch(p){throw this.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_BY_CODE_FAILURE,ht.Silent,null,p),r.endMeasurement({errorCode:p instanceof Ct&&p.errorCode||void 0,subErrorCode:p instanceof Ct&&p.subError||void 0,success:!1}),p}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(e){var t;return Ae(this,void 0,void 0,function(){var r,a,l=this;return xe(this,function(c){switch(c.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=c.sent(),[2,a]}})})},n.prototype.acquireTokenFromCache=function(e,t,r){return Ae(this,void 0,void 0,function(){return xe(this,function(a){switch(this.performanceClient.addQueueMeasurement(Ee.AcquireTokenFromCache,t.correlationId),r.cacheLookupPolicy){case Da.Default:case Da.AccessToken:case Da.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw tt.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenByRefreshToken=function(e,t){return Ae(this,void 0,void 0,function(){var r;return xe(this,function(a){switch(this.performanceClient.addQueueMeasurement(Ee.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Da.Default:case Da.AccessTokenAndRefreshToken:case Da.RefreshToken:case Da.RefreshTokenAndNetwork:return r=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(Ee.SilentRefreshClientAcquireToken,e.correlationId),[2,r.acquireToken(e)];default:throw tt.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenBySilentIframe=function(e){return Ae(this,void 0,void 0,function(){var t;return xe(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 Ae(this,void 0,void 0,function(){var t;return xe(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(pt({correlationId:t},e))]})})},n.prototype.logoutRedirect=function(e){return Ae(this,void 0,void 0,function(){var t,r;return xe(this,function(a){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(ht.Redirect),r=this.createRedirectClient(t),[2,r.logout(e)]})})},n.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(ht.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"),Zr.blockNonBrowserEnvironment(this.isBrowserEnvironment),Zr.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Zr.blockReloadInHiddenIframes(),Zr.blockAcquireTokenInPopups(),Zr.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===ht.Redirect&&this.config.cache.cacheLocation===Io.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw VC.createInMemoryRedirectUnavailableError();(e===ht.Redirect||e===ht.Popup)&&this.preflightInteractiveRequest(t)},n.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Zr.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(e,t,r){return Ae(this,void 0,void 0,function(){var a;return xe(this,function(l){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Ge.createNativeConnectionNotEstablishedError();return a=new iv(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"),!th.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 Vi.NONE:case Vi.CONSENT:case Vi.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 Uz(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 Lz(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 Bz(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,mr.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentCacheClient=function(e){return new ZN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentRefreshClient=function(e){return new qz(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentAuthCodeClient=function(e){return new sB(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,mr.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 cB=function(n){Ri(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 Ae(this,void 0,void 0,function(){var r;return xe(this,function(a){return r=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",r),[2,this.acquireTokenRedirect(pt({correlationId:r},t||GN))]})})},e.prototype.loginPopup=function(t){var r=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup(pt({correlationId:r},t||GN))},e.prototype.acquireTokenSilent=function(t){return Ae(this,void 0,void 0,function(){var r,a,l,c,f,p,m,y=this;return xe(this,function(E){if(r=this.getRequestCorrelationId(t),a=this.performanceClient.startMeasurement(Ee.AcquireTokenSilent,r),a.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(ht.Silent),this.logger.verbose("acquireTokenSilent called",r),l=t.account||this.getActiveAccount(),!l)throw Ge.createNoAccountError();return c={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(c),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(pt(pt({},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 Ae(this,void 0,void 0,function(){var l,c,f,p,m,y=this;return xe(this,function(E){switch(E.label){case 0:return this.performanceClient.addQueueMeasurement(Ee.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_START,ht.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),th.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&r.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),c=pt(pt({},t),{account:r}),l=this.acquireTokenNative(c,mr.acquireTokenSilent_silentFlow).catch(function(S){return Ae(y,void 0,void 0,function(){var T;return xe(this,function(A){if(S instanceof Zl&&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=pt(pt({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Da.Default}),this.performanceClient.setPreQueueTime(Ee.AcquireTokenFromCache,p.correlationId),l=this.acquireTokenFromCache(f,p,m).catch(function(S){if(m.cacheLookupPolicy===Da.AccessToken)throw S;return Zr.blockReloadInHiddenIframes(),y.eventHandler.emitEvent(Kt.ACQUIRE_TOKEN_NETWORK_START,ht.Silent,p),y.performanceClient.setPreQueueTime(Ee.AcquireTokenByRefreshToken,p.correlationId),y.acquireTokenByRefreshToken(p,m).catch(function(T){var A=T instanceof Xf,O=T instanceof rl,F=T.errorCode===ev.noTokensFoundError.code,H=T.errorCode===ol.INVALID_GRANT_ERROR;if((!A||!H||O||m.cacheLookupPolicy===Da.AccessTokenAndRefreshToken||m.cacheLookupPolicy===Da.RefreshToken)&&m.cacheLookupPolicy!==Da.Skip&&!F)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(Kt.ACQUIRE_TOKEN_SUCCESS,ht.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(Kt.ACQUIRE_TOKEN_FAILURE,ht.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}(lB);const sM="redirect";var lM=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class uB extends cB{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=sM,r=!0){var a;return lM(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),c=(e==null?void 0:e.scopes)||[],f=Object.assign(Object.assign({},e),{loginHint:l,scopes:c});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=sM,r=!0){return lM(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 dB=(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")},fB=(n,e,t,r,a)=>{const l=Object.assign({clientId:e,redirectUri:dB(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${n}`},r==null?void 0:r.auth),c=Object.assign({cacheLocation:"localStorage"},r==null?void 0:r.cache),f=r==null?void 0:r.system;return new(a||uB)(n,{auth:l,cache:c,system:f})};class cM extends UC{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case Jr.Error:return"error";case Jr.Warning:return"warn";case Jr.Info:return"info";case Jr.Verbose:default:return"debug"}}}loggerCallback(e,t,r){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var vR=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const hB="default";class pB{get defaultClient(){return this.getClient(hB)}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=fB(t.tenantId,t.clientId,t.redirectUri,t.config);return r.setLogger(new cM(0)),r}handleRedirect(){return vR(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 vR(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return vR(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var vB=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const uM={name:"auth",configure:n=>{var e;const t=new oz;return!((e=n==null?void 0:n.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(n.auth.defaultConfig),t},initialize:({config:n})=>vB(void 0,void 0,void 0,function*(){const e=new pB(n);return n.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},mB=(n,e)=>({module:uM,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 mR=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const gB=n=>{var e;return{id:n.id,isChildType:n.isChildType,parentTypeIds:(e=n.parentTypeIds)!==null&&e!==void 0?e:[]}},gR=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:gB(n.type),value:(a=n.value)!==null&&a!==void 0?a:{}}},yB=n=>mR(void 0,void 0,void 0,function*(){const e=yield n.json();return gR(e)}),_B=n=>mR(void 0,void 0,void 0,function*(){return(yield n.json()).map(gR)}),CB=n=>mR(void 0,void 0,void 0,function*(){return(yield n.json()).map(gR)});var EB=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},wB=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)},GC;class bB{constructor(e,t={}){this.config=t,GC.set(this,void 0),EB(this,GC,e,"f")}requireInstance(e){return wB(this,GC,"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)}}GC=new WeakMap;const SB=/^(?:(?:[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})$/,TB=n=>n.replace(/^\/+/,"").split("/").shift(),RB=n=>!!n.match(SB),kB=(n,e)=>t=>{const{extract:r=TB,validate:a=RB}=e??{},l=r(t);if(!l)return xo;if(a(l))return n.contextClient.resolveContext(l);throw Error(`Failed to validate context [${l}] from path [${t}]`)},AB=({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?ss(e.currentContext):xo},xB=n=>({ref:e,modules:t})=>{const{context:r,navigation:a}=t,l=kB(r,n==null?void 0:n.path);return HT(a?l(a.path.pathname):xo,AB({ref:e,modules:t})).pipe(D3())};var WC=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},dM=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)},YC;class IB{constructor(){this.defaultExpireTime=1*60*1e3,YC.set(this,[])}addConfigBuilder(e){dM(this,YC,"f").push(e)}_getServiceProvider(e){var t;return WC(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 WC(this,void 0,void 0,function*(){const a=yield dM(this,YC,"f").reduce((l,c)=>WC(this,void 0,void 0,function*(){const f=new bB(e,yield l);return yield Promise.resolve(c(f)),Object.assign(l,f.config)}),Promise.resolve({}));return(t=a.resolveInitialContext)!==null&&t!==void 0||(a.resolveInitialContext=xB()),(r=a.client)!==null&&r!==void 0||(a.client=yield(()=>WC(this,void 0,void 0,function*(){const c=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:f=>c.get("v1",f,{selector:yB})},key:({id:f})=>f,expire:this.defaultExpireTime},query:{client:{fn:f=>c.query("v1",{query:f},{selector:_B})},key:f=>JSON.stringify(f),expire:this.defaultExpireTime},related:{client:{fn:f=>c.related("v1",{id:f.item.id,query:{filter:f.filter}},{selector:CB})},key:f=>JSON.stringify(f),expire:this.defaultExpireTime}}}))()),a})}}YC=new WeakMap;var OB=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 c=l[a];if(!n(e[c],t[c]))return!1}return!0}return e!==e&&t!==t};const NB=YI(OB);var fM;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(fM||(fM={}));const MB=n=>e=>e.pipe(zT(n)),PB=n=>e=>e.pipe(Na(n)),DB=n=>e=>e.pipe(qr(n)),LB=n=>n.pipe(cn(e=>e.value));let QC;const UB=new Uint8Array(16);function FB(){if(!QC&&(QC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!QC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return QC(UB)}const $B=/^(?:[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 HB(n){return typeof n=="string"&&$B.test(n)}const xi=[];for(let n=0;n<256;++n)xi.push((n+256).toString(16).slice(1));function hM(n,e=0){return xi[n[e+0]]+xi[n[e+1]]+xi[n[e+2]]+xi[n[e+3]]+"-"+xi[n[e+4]]+xi[n[e+5]]+"-"+xi[n[e+6]]+xi[n[e+7]]+"-"+xi[n[e+8]]+xi[n[e+9]]+"-"+xi[n[e+10]]+xi[n[e+11]]+xi[n[e+12]]+xi[n[e+13]]+xi[n[e+14]]+xi[n[e+15]]}function jB(n){if(!HB(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 zB(n){n=unescape(encodeURIComponent(n));const e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}const BB="6ba7b810-9dad-11d1-80b4-00c04fd430c8",qB="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function VB(n,e,t){function r(a,l,c,f){var p;if(typeof a=="string"&&(a=zB(a)),typeof l=="string"&&(l=jB(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,c){f=f||0;for(let y=0;y<16;++y)c[f+y]=m[y];return c}return hM(m)}try{r.name=n}catch{}return r.DNS=BB,r.URL=qB,r}const pM={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function av(n,e,t){if(pM.randomUUID&&!e&&!n)return pM.randomUUID();n=n||{};const r=n.random||(n.rng||FB)();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 hM(r)}function KB(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 yR(n,e){return n<<e|n>>>32-e}function GB(n){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const c=unescape(encodeURIComponent(n));n=[];for(let f=0;f<c.length;++f)n.push(c.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 c=0;c<a;++c){const f=new Uint32Array(16);for(let p=0;p<16;++p)f[p]=n[c*64+p*4]<<24|n[c*64+p*4+1]<<16|n[c*64+p*4+2]<<8|n[c*64+p*4+3];l[c]=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 c=0;c<a;++c){const f=new Uint32Array(80);for(let T=0;T<16;++T)f[T]=l[c][T];for(let T=16;T<80;++T)f[T]=yR(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),O=yR(p,5)+KB(A,m,y,E)+S+e[A]+f[T]>>>0;S=E,E=y,y=yR(m,30)>>>0,m=p,p=O}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 _R=VB("v5",80,GB);let CR=class extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}};function Bo(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=r6[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(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function yd(n){return!!n&&!!n[Hn]}function il(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)===o6}(n)||Array.isArray(n)||!!n[bM]||!!(!((e=n.constructor)===null||e===void 0)&&e[bM])||wR(n)||bR(n))}function sv(n){return yd(n)||Bo(23,n),n[Hn].t}function lv(n,e,t){t===void 0&&(t=!1),cv(n)===0?(t?Object.keys:MR)(n).forEach(function(r){t&&typeof r=="symbol"||e(r,n[r],n)}):n.forEach(function(r,a){return e(a,r,n)})}function cv(n){var e=n[Hn];return e?e.i>3?e.i-4:e.i:Array.isArray(n)?1:wR(n)?2:bR(n)?3:0}function ER(n,e){return cv(n)===2?n.has(e):Object.prototype.hasOwnProperty.call(n,e)}function WB(n,e){return cv(n)===2?n.get(e):n[e]}function vM(n,e,t){var r=cv(n);r===2?n.set(e,t):r===3?n.add(t):n[e]=t}function YB(n,e){return n===e?n!==0||1/n==1/e:n!=n&&e!=e}function wR(n){return t6&&n instanceof Map}function bR(n){return n6&&n instanceof Set}function li(n){return n.o||n.t}function SR(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var e=i6(n);delete e[Hn];for(var t=MR(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 TR(n,e){return e===void 0&&(e=!1),RR(n)||yd(n)||!il(n)||(cv(n)>1&&(n.set=n.add=n.clear=n.delete=QB),Object.freeze(n),e&&lv(n,function(t,r){return TR(r,!0)},!0)),n}function QB(){Bo(2)}function RR(n){return n==null||typeof n!="object"||Object.isFrozen(n)}function ec(n){var e=PR[n];return e||Bo(18,n),e}function XB(n,e){PR[n]||(PR[n]=e)}function XC(){return process.env.NODE_ENV==="production"||uv||Bo(0),uv}function kR(n,e){e&&(ec("Patches"),n.u=[],n.s=[],n.v=e)}function JC(n){AR(n),n.p.forEach(JB),n.p=null}function AR(n){n===uv&&(uv=n.l)}function mM(n){return uv={p:[],l:uv,h:n,m:!0,_:0}}function JB(n){var e=n[Hn];e.i===0||e.i===1?e.j():e.g=!0}function xR(n,e){e._=e.p.length;var t=e.p[0],r=n!==void 0&&n!==t;return e.h.O||ec("ES5").S(e,n,r),r?(t[Hn].P&&(JC(e),Bo(4)),il(n)&&(n=ZC(e,n),e.l||eE(e,n)),e.u&&ec("Patches").M(t[Hn].t,n,e.u,e.s)):n=ZC(e,t,[]),JC(e),e.u&&e.v(e.u,e.s),n!==wM?n:void 0}function ZC(n,e,t){if(RR(e))return e;var r=e[Hn];if(!r)return lv(e,function(f,p){return gM(n,r,e,f,p,t)},!0),e;if(r.A!==n)return e;if(!r.P)return eE(n,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=r.i===4||r.i===5?r.o=SR(r.k):r.o,l=a,c=!1;r.i===3&&(l=new Set(a),a.clear(),c=!0),lv(l,function(f,p){return gM(n,r,a,f,p,t,c)}),eE(n,a,!1),t&&n.u&&ec("Patches").N(r,t,n.u,n.s)}return r.o}function gM(n,e,t,r,a,l,c){if(process.env.NODE_ENV!=="production"&&a===t&&Bo(5),yd(a)){var f=ZC(n,a,l&&e&&e.i!==3&&!ER(e.R,r)?l.concat(r):void 0);if(vM(t,r,f),!yd(f))return;n.m=!1}else c&&t.add(a);if(il(a)&&!RR(a)){if(!n.h.D&&n._<1)return;ZC(n,a),e&&e.A.l||eE(n,a)}}function eE(n,e,t){t===void 0&&(t=!1),!n.l&&n.h.D&&n.m&&TR(e,t)}function IR(n,e){var t=n[Hn];return(t?li(t):n)[e]}function yM(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 du(n){n.P||(n.P=!0,n.l&&du(n.l))}function OR(n){n.o||(n.o=SR(n.t))}function uy(n,e,t){var r=wR(e)?ec("MapSet").F(e,t):bR(e)?ec("MapSet").T(e,t):n.O?function(a,l){var c=Array.isArray(a),f={i:c?1:0,A:l?l.A:XC(),P:!1,I:!1,R:{},l,t:a,k:null,o:null,j:null,C:!1},p=f,m=DR;c&&(p=[f],m=dy);var y=Proxy.revocable(p,m),E=y.revoke,S=y.proxy;return f.k=S,f.j=E,S}(e,t):ec("ES5").J(e,t);return(t?t.A:XC()).p.push(r),r}function ZB(n){return yd(n)||Bo(22,n),function e(t){if(!il(t))return t;var r,a=t[Hn],l=cv(t);if(a){if(!a.P&&(a.i<4||!ec("ES5").K(a)))return a.t;a.I=!0,r=_M(t,l),a.I=!1}else r=_M(t,l);return lv(r,function(c,f){a&&WB(a.t,c)===f||vM(r,c,e(f))}),l===3?new Set(r):r}(n)}function _M(n,e){switch(e){case 2:return new Map(n);case 3:return Array.from(n)}return SR(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(il(p)){var m=uy(f.A.h,p,f);f.p.set(p,m),f.o.add(m)}else f.o.add(p)}))}function r(f){f.g&&Bo(3,JSON.stringify(li(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[Hn]={i:2,l:y,A:y?y.A:XC(),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 li(this[Hn]).size}}),p.has=function(m){return li(this[Hn]).has(m)},p.set=function(m,y){var E=this[Hn];return r(E),li(E).has(m)&&li(E).get(m)===y||(e(E),du(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[Hn];return r(y),e(y),du(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[Hn];r(m),li(m).size&&(e(m),du(m),m.R=new Map,lv(m.t,function(y){m.R.set(y,!1)}),m.o.clear())},p.forEach=function(m,y){var E=this;li(this[Hn]).forEach(function(S,T){m.call(y,E.get(T),T,E)})},p.get=function(m){var y=this[Hn];r(y);var E=li(y).get(m);if(y.I||!il(E)||E!==y.t.get(m))return E;var S=uy(y.A.h,E,y);return e(y),y.o.set(m,S),S},p.keys=function(){return li(this[Hn]).keys()},p.values=function(){var m,y=this,E=this.keys();return(m={})[tE]=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={})[tE]=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[tE]=function(){return this.entries()},f}(),c=function(){function f(m,y){return this[Hn]={i:3,l:y,A:y?y.A:XC(),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 li(this[Hn]).size}}),p.has=function(m){var y=this[Hn];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[Hn];return r(y),this.has(m)||(t(y),du(y),y.o.add(m)),this},p.delete=function(m){if(!this.has(m))return!1;var y=this[Hn];return r(y),t(y),du(y),y.o.delete(m)||!!y.p.has(m)&&y.o.delete(y.p.get(m))},p.clear=function(){var m=this[Hn];r(m),li(m).size&&(t(m),du(m),m.o.clear())},p.values=function(){var m=this[Hn];return r(m),t(m),m.o.values()},p.entries=function(){var m=this[Hn];return r(m),t(m),m.o.entries()},p.keys=function(){return this.values()},p[tE]=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}();XB("MapSet",{F:function(f,p){return new l(f,p)},T:function(f,p){return new c(f,p)}})}function Toe(n){return n}var CM,uv,NR=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",t6=typeof Map<"u",n6=typeof Set<"u",EM=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wM=NR?Symbol.for("immer-nothing"):((CM={})["immer-nothing"]=!0,CM),bM=NR?Symbol.for("immer-draftable"):"__$immer_draftable",Hn=NR?Symbol.for("immer-state"):"__$immer_state",tE=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",r6={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"},o6=""+Object.prototype.constructor,MR=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,i6=Object.getOwnPropertyDescriptors||function(n){var e={};return MR(n).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(n,t)}),e},PR={},DR={get:function(n,e){if(e===Hn)return n;var t=li(n);if(!ER(t,e))return function(a,l,c){var f,p=yM(l,c);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||!il(r)?r:r===IR(n.t,e)?(OR(n),n.o[e]=uy(n.A.h,r,n)):r},has:function(n,e){return e in li(n)},ownKeys:function(n){return Reflect.ownKeys(li(n))},set:function(n,e,t){var r=yM(li(n),e);if(r!=null&&r.set)return r.set.call(n.k,t),!0;if(!n.P){var a=IR(li(n),e),l=a==null?void 0:a[Hn];if(l&&l.t===t)return n.o[e]=t,n.R[e]=!1,!0;if(YB(t,a)&&(t!==void 0||ER(n.t,e)))return!0;OR(n),du(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 IR(n.t,e)!==void 0||e in n.t?(n.R[e]=!1,OR(n),du(n)):delete n.R[e],n.o&&delete n.o[e],!0},getOwnPropertyDescriptor:function(n,e){var t=li(n),r=Reflect.getOwnPropertyDescriptor(t,e);return r&&{writable:!0,configurable:n.i!==1||e!=="length",enumerable:r.enumerable,value:t[e]}},defineProperty:function(){Bo(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){Bo(12)}},dy={};lv(DR,function(n,e){dy[n]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),dy.deleteProperty=function(n,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&Bo(13),dy.set.call(this,n,e,void 0)},dy.set=function(n,e,t){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&Bo(14),DR.set.call(this,n[0],e,t,n[0])};var a6=function(){function n(t){var r=this;this.O=EM,this.D=!0,this.produce=function(a,l,c){if(typeof a=="function"&&typeof l!="function"){var f=l;l=a;var p=r;return function(O){var F=this;O===void 0&&(O=f);for(var H=arguments.length,D=Array(H>1?H-1:0),q=1;q<H;q++)D[q-1]=arguments[q];return p.produce(O,function(U){var V;return(V=l).call.apply(V,[F,U].concat(D))})}}var m;if(typeof l!="function"&&Bo(6),c!==void 0&&typeof c!="function"&&Bo(7),il(a)){var y=mM(r),E=uy(r,a,void 0),S=!0;try{m=l(E),S=!1}finally{S?JC(y):AR(y)}return typeof Promise<"u"&&m instanceof Promise?m.then(function(O){return kR(y,c),xR(O,y)},function(O){throw JC(y),O}):(kR(y,c),xR(m,y))}if(!a||typeof a!="object"){if((m=l(a))===void 0&&(m=a),m===wM&&(m=void 0),r.D&&TR(m,!0),c){var T=[],A=[];ec("Patches").M(a,m,T,A),c(T,A)}return m}Bo(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 c,f,p=r.produce(a,l,function(m,y){c=m,f=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(m){return[m,c,f]}):[p,c,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){il(t)||Bo(8),yd(t)&&(t=ZB(t));var r=mM(this),a=uy(this,t,void 0);return a[Hn].C=!0,AR(r),a},e.finishDraft=function(t,r){var a=t&&t[Hn];process.env.NODE_ENV!=="production"&&(a&&a.C||Bo(9),a.I&&Bo(10));var l=a.A;return kR(l,r),xR(void 0,l)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!EM&&Bo(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 c=ec("Patches").$;return yd(t)?c(t,r):this.produce(t,function(f){return c(f,r)})},n}(),us=new a6,SM=us.produce;us.produceWithPatches.bind(us),us.setAutoFreeze.bind(us),us.setUseProxies.bind(us),us.applyPatches.bind(us),us.createDraft.bind(us),us.finishDraft.bind(us);const nE=(...n)=>un(e=>n.includes(e.type));var Wi=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)},s6=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},tc,al;class nh extends hn{get action$(){return Wi(this,tc,"f").asObservable()}get value(){return Wi(this,al,"f").value}get closed(){return Wi(this,al,"f").closed||Wi(this,tc,"f").closed}constructor(e,t){super(a=>Wi(this,al,"f").subscribe(a)),tc.set(this,new si),al.set(this,void 0);const r="getInitialState"in e?e.getInitialState():t;s6(this,al,new Vg(r),"f"),Wi(this,tc,"f").pipe(_N(e,r),gN()).subscribe(Wi(this,al,"f")),this.reset=()=>Wi(this,al,"f").next(r)}next(e){Wi(this,tc,"f").next(e)}addEffect(e,t){const r=typeof e=="string"?this.action$.pipe(nE(e)):this.action$,a=t||e;return r.pipe(Na(l=>Ir(new Promise((c,f)=>{try{c(a(l,this.value))}catch(p){f(p)}})).pipe(wr(c=>(console.warn("unhandled effect",c),xo)))),un(l=>!!l),SC(bC)).subscribe(Wi(this,tc,"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(wr(r=>(console.trace("unhandled exception, epic closed!",r),xo)),SC(bC)).subscribe(Wi(this,tc,"f"))}unsubscribe(){Wi(this,tc,"f").unsubscribe(),Wi(this,al,"f").unsubscribe()}complete(){Wi(this,tc,"f").complete(),Wi(this,al,"f").complete()}asObservable(){return Wi(this,al,"f").asObservable()}}tc=new WeakMap,al=new WeakMap;function Cn(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 rE="::",LR=n=>new RegExp(`${rE}\\${n}$`),TM=n=>n.type.replace(LR("\\w+$"),"");function oE(n,e,t,r){const a=Cn([n,"request"].join(rE),e);return t&&Object.assign(a,{success:Cn([n,"success"].join(rE),t)}),r&&Object.assign(a,{failure:Cn([n,"failure"].join(rE),r)}),a}const l6=n=>!!n.type.match(/::request$/),c6=n=>!!n.type.match(LR("success")),u6=n=>!!n.type.match(LR("failure")),d6=n=>c6(n)||u6(n);function RM(n){return il(n)?SM(n,()=>{}):n}function f6(n){return typeof n=="function"}function rh(n,e){const[t,r,a]=h6(e);let l;if(f6(n))l=()=>RM(n());else{const f=RM(n);l=()=>f}function c(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(yd(y)){const T=E(y,p);return T===void 0?y:T}else{if(il(y))return SM(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 c.getInitialState=l,c}function h6(n){const e={},t=[];let r;const a={addCase(l,c){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]=c,a},addMatcher(l,c){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:c}),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 ci=(()=>({request:Cn("client/request",(e,t)=>{var r,a,l;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=av()),(a=t.created)!==null&&a!==void 0||(t.created=Date.now()),(l=t.task)!==null&&l!==void 0||(t.task=new EC),{payload:e,meta:t}}),retry:Cn("client/retry",e=>({payload:e})),success:Cn("client/success",(e,t)=>({payload:e,meta:t})),cancel:Cn("client/cancel",e=>({payload:e})),failure:Cn("client/failure",(e,t)=>({payload:e,meta:t})),error:Cn("client/error",(e,t)=>({payload:e,meta:t}))}))(),kM=n=>e=>e.pipe(un(ci.request.match),Na(t=>{const{meta:r}=t,{transaction:a}=r,l=new AbortController,{signal:c}=l;return new hn(f=>{f.add(e.pipe(un(ci.cancel.match)).subscribe(p=>{p.payload.transaction===a&&(c.aborted||l.abort(),f.complete())})),f.add(Ir(n(t,c)).subscribe({next:p=>f.next(p),error:p=>f.next(ci.error(p,{request:t})),complete:()=>f.complete()}))})})),p6=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(kM(r=>e.pipe(un(ci.failure.match),un(a=>a.meta.request===r),Gp(t),qr(([a,l])=>{var c,f;const{transaction:p}=r.meta,m=l[p];if(!m)return xo;const y=(f=(c=m.retry)===null||c===void 0?void 0:c.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"?Ir(E.delay(a.payload.cause)).pipe(wr(T=>{throw Error("failed to resolve delay",{cause:T})})):jT(E.delay)).pipe(cn(()=>ci.retry(r)))}))))),v6=n=>e=>e.pipe(kM((t,r)=>Ir(n(t.payload,r)).pipe(cn(a=>ci.success(a,{request:t})),wr(a=>ss(ci.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:a}),{request:t})))))),m6=n=>n.pipe(un(ci.retry.match),cn(e=>e.payload)),AM=()=>un(n=>n.status==="complete"),g6=(n={})=>rh(n,e=>e.addCase(ci.request,(t,r)=>{const{transaction:a,task:l,ref:c,created:f}=r.meta;t[a]={transaction:a,task:l,ref:c,created:f}}).addCase(ci.success,(t,r)=>{const{request:a}=r.meta,{transaction:l,ref:c}=a.meta,f=t[l];if(f){const p={status:"complete",transaction:l,ref:c,value:r.payload,args:a.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[l]}).addCase(ci.retry,(t,r)=>{var a;const{transaction:l}=r.payload.meta,c=t[l];c&&((a=c.retry)!==null&&a!==void 0||(c.retry=[]),c.retry.push(Date.now()))}).addCase(ci.cancel,(t,r)=>{const{transaction:a,reason:l}=r.payload;if(t[a]){const c=Object.assign({},sv(t[a]));c.task.error(new CR("abort",{request:c,message:l??"request was canceled"})),delete t[a]}}).addCase(ci.failure,(t,r)=>{var a;const{payload:l,meta:c}=r,{transaction:f}=c.request.meta,p=t[f];p&&((a=p.errors)!==null&&a!==void 0||(p.errors=[]),p.errors.push(l))}).addCase(ci.error,(t,r)=>{const{payload:a,meta:l}=r,{transaction:c}=l.request.meta;if(t[c]){const f=Object.assign({},sv(t[c]));f.task.error(new CR("error",{request:f,message:`failed to process task [${c}]`,cause:a.cause})),delete t[c]}}));var y6=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},eo=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)},xM=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},ho,oh;let IM=class extends hn{get closed(){return eo(this,ho,"f").closed}get state$(){return eo(this,ho,"f")}get action$(){return eo(this,ho,"f").action$}get success$(){return this.action$.pipe(un(ci.success.match),cn(({payload:e})=>e))}get error$(){return this.action$.pipe(nE("client/error"),Gp(eo(this,ho,"f")),cn(([e,t])=>{const{payload:r,meta:a}=e,{transaction:l}=a.request.meta,c=t[e.meta.request.meta.transaction];return new CR("error",{request:c,message:`failed to process task [${l}]`,cause:r})}))}constructor(e,t){super(l=>eo(this,ho,"f").subscribe(l)),ho.set(this,void 0),oh.set(this,void 0);const r={};xM(this,ho,new nh(g6(r)),"f"),xM(this,oh,new Si(()=>eo(this,ho,"f").complete()),"f"),eo(this,oh,"f").add(eo(this,ho,"f").addFlow(v6(e))),eo(this,oh,"f").add(eo(this,ho,"f").addFlow(m6));const a=Object.assign({count:0,delay:0},t==null?void 0:t.retry);eo(this,oh,"f").add(eo(this,ho,"f").addFlow(p6(a)))}next(e,t){const{ref:r,retry:a,task:l}=t??{},c=ci.request(e,{ref:r,retry:a,task:l});return eo(this,ho,"f").next(c),c.meta}nextAsync(e,t){return y6(this,void 0,void 0,function*(){return Ti(this.next(e,t).task.pipe(AM()))})}getTaskByTransaction(e){const t=eo(this,ho,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(eo(this,ho,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(eo(this,ho,"f").value).find(a=>a.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)eo(this,ho,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),eo(this,ho,"f").next(ci.cancel({transaction:e,reason:t})));else for(const r of Object.keys(eo(this,ho,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return eo(this,ho,"f").addEffect(ci[e].type,r=>{t(r,this)})}complete(){eo(this,oh,"f").unsubscribe()}asObservable(){return eo(this,ho,"f").asObservable()}};ho=new WeakMap,oh=new WeakMap;function _6(){return{set:Cn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:Cn("cache/remove",n=>({payload:n})),invalidate:Cn("cache/invalidate",n=>({payload:n})),trim:Cn("cache/trim",n=>({payload:n}))}}const dv=_6(),C6=(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 E6(n,e={}){return rh(e,t=>t.addCase(n.set,(r,a)=>{var l;const{key:c,entry:f}=a.payload,p=r[c];if(p)p.updated=Date.now(),(l=p.updates)!==null&&l!==void 0||(p.updates=0),p.updates++;else{const m=Date.now();r[c]=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,c;const{payload:f}=a,p=(l=f.sort)!==null&&l!==void 0?l:C6,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,(c=f.size)!==null&&c!==void 0?c: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)},w6=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},Ua;let OM=class{get state(){return sl(this,Ua,"f").value}get state$(){return sl(this,Ua,"f").asObservable()}constructor(e){Ua.set(this,void 0);const{trimming:t,initial:r}=e??{};w6(this,Ua,new nh(E6(dv,r)),"f"),t&&sl(this,Ua,"f").addEffect("cache/set",()=>sl(this,Ua,"f").next(dv.trim(t)))}setItem(...e){sl(this,Ua,"f").next(dv.set(...e))}getItem(e){return sl(this,Ua,"f").value[e]}removeItem(e){sl(this,Ua,"f").next(dv.remove(e))}invalidate(e){sl(this,Ua,"f").next(dv.invalidate(e))}trim(e){sl(this,Ua,"f").next(dv.trim(e))}reset(){sl(this,Ua,"f").reset()}complete(){sl(this,Ua,"f").complete()}};Ua=new WeakMap;var gr=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)},fv=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},b6=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},ih,nc,_d,hv,fy,hy,iE,UR;const S6=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},T6=n=>{if(typeof n=="function")return n;switch(n){case"concat":return MB;case"merge":return PB;case"switch":default:return DB}};let aE=class{get client(){return gr(this,nc,"f")}get cache(){return gr(this,_d,"f")}constructor(e){var t;ih.set(this,new Si),nc.set(this,void 0),_d.set(this,void 0),hv.set(this,new si),fy.set(this,{}),hy.set(this,void 0),iE.set(this,void 0),UR.set(this,av()),fv(this,hy,a=>_R(e.key(a),gr(this,UR,"f")),"f"),fv(this,iE,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:S6(e==null?void 0:e.expire),"f"),e.client instanceof IM?fv(this,nc,e.client,"f"):(fv(this,nc,new IM(e.client.fn,e.client.options),"f"),gr(this,ih,"f").add(()=>gr(this,nc,"f").complete())),e.cache instanceof OM?fv(this,_d,e.cache,"f"):(fv(this,_d,new OM(e.cache||{}),"f"),gr(this,ih,"f").add(()=>gr(this,_d,"f").complete()));const r=T6(e.queueOperator);gr(this,ih,"f").add(()=>gr(this,hv,"f").complete()),gr(this,ih,"f").add(gr(this,hv,"f").pipe(r(a=>{const{args:l,options:c}=a;return new hn(f=>{const{task:p,transaction:m}=gr(this,nc,"f").next(l,c);f.add(p.pipe(wr(()=>xo)).subscribe(f)),f.add(()=>{setTimeout(()=>gr(this,nc,"f").cancel(m))})})}),AM(),TC(()=>!gr(this,nc,"f").closed)).subscribe(a=>{const{args:l,value:c,transaction:f,ref:p}=a,m=p??gr(this,hy,"f").call(this,l);gr(this,_d,"f").setItem(m,{value:c,args:l,transaction:f})}))}next(e,t){gr(this,hv,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:a}=r,l=b6(r,["awaitResolve"]);return(a?qi:Ti)(this._query(e,l))}complete(){gr(this,ih,"f").unsubscribe()}_query(e,t){var r;const a=gr(this,hy,"f").call(this,e),l=(r=gr(this,fy,"f")[a])!==null&&r!==void 0?r:this._createTask(a,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{gr(this,nc,"f").cancelTaskByRef(a,"abort signal triggered by caller")}),l}_createTask(e,t,r){const a=new si,l=new hn(c=>{var f;gr(this,fy,"f")[e]=l,a.subscribe(c);const p=gr(this,_d,"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)||gr(this,iE,"f");p&&m(p,t)?a.complete():gr(this,hv,"f").next({args:t,options:{ref:e,task:a,retry:r==null?void 0:r.retry}})}).pipe(Gg(()=>{delete gr(this,fy,"f")[e]}),GT());return l}};ih=new WeakMap,nc=new WeakMap,_d=new WeakMap,hv=new WeakMap,fy=new WeakMap,hy=new WeakMap,iE=new WeakMap,UR=new WeakMap,aE.extractQueryValue=LB;var Cd=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)},NM=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},py,fu;class R6 extends hn{get currentContext(){return Cd(this,fu,"f").value}get currentContext$(){return Cd(this,fu,"f").asObservable()}get client(){return Cd(this,py,"f")}constructor(e){super(t=>Cd(this,fu,"f").subscribe(t)),py.set(this,void 0),fu.set(this,void 0),NM(this,py,new aE(e),"f"),NM(this,fu,new Vg(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(wr(()=>xo)).subscribe(t=>this.setCurrentContext(t)):NB(e,Cd(this,fu,"f").value)||Cd(this,fu,"f").next(e)}resolveContext(e){return Cd(this,py,"f").query({id:e}).pipe(cn(t=>t.value),wr(t=>{throw t.cause?t.cause:t}))}resolveContextAsync(e,t){return(t!=null&&t.awaitResolve?qi:Ti)(this.resolveContext(e))}dispose(){Cd(this,fu,"f").complete()}}py=new WeakMap,fu=new WeakMap;var vy=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},jn=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)},ah=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},hu,sE,my,ll,sh,lh,gy,lE,cE;class k6{get contextClient(){return jn(this,hu,"f")}get queryClient(){return jn(this,sE,"f")}get currentContext$(){return jn(this,hu,"f").currentContext$}get currentContext(){return jn(this,hu,"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;hu.set(this,void 0),sE.set(this,void 0),my.set(this,void 0),ll.set(this,void 0),sh.set(this,new Si),lh.set(this,void 0),gy.set(this,void 0),lE.set(this,void 0),cE.set(this,new si);const{config:l,event:c}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),ah(this,ll,c,"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)),ah(this,lh,l.contextType,"f"),ah(this,gy,l.contextFilter,"f"),ah(this,hu,new R6(l.client.get),"f"),ah(this,sE,new aE(l.client.query),"f"),l.client.related&&ah(this,my,new aE(l.client.related),"f"),ah(this,lE,(a=l.contextParameterFn)!==null&&a!==void 0?a:f=>({search:f.search,filter:{type:f.type}}),"f"),jn(this,ll,"f")&&(jn(this,sh,"f").add(this.currentContext$.pipe(qT()).subscribe(([f,p])=>{var m;(m=jn(this,ll,"f"))===null||m===void 0||m.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:f,next:p}})})),jn(this,sh,"f").add(jn(this,ll,"f").addEventListener("onCurrentContextChanged",f=>{f.source!==this&&f.detail.next!==void 0&&this.setCurrentContext(f.detail.next)}))),jn(this,sh,"f").add(jn(this,cE,"f").pipe(qr(f=>f),Kp(f=>console.debug("ContextProvider::#contextQueue",f))).subscribe(f=>jn(this,hu,"f").setCurrentContext(f??null)))}connectParentContext(e,t){const a=e.currentContext$.pipe(un(l=>l!==void 0),un((l,c)=>{var f;return t!=null&&t.skipFirst&&c<=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)}),qr(l=>vy(this,void 0,void 0,function*(){var c;if(l){const f=yield(c=jn(this,ll,"f"))===null||c===void 0?void 0:c.dispatchEvent("onParentContextChanged",{source:this,detail:l,cancelable:!0});return{next:l,canceled:f==null?void 0:f.canceled}}return{next:l}})),un(l=>!l.canceled),qr(({next:l})=>this.setCurrentContext(l,{validate:!0,resolve:!0}).pipe(wr(c=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",c),xo)))),wr(l=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",l),xo))).subscribe();return jn(this,sh,"f").add(a),a}setCurrentContextById(e){return new hn(t=>{try{jn(this,hu,"f").resolveContext(e).pipe(un(r=>!!r),qr(r=>this.setCurrentContext(r))).subscribe(t)}catch(r){t.error(r)}})}setCurrentContextByIdAsync(e){return qi(this.setCurrentContextById(e))}setCurrentContext(e,t){const r=new si,a=new si,l=this._setCurrentContext(e,t).pipe(Kp(c=>a.next(c)),CN(r),Gg(()=>a.complete()),wr(c=>(a.error(c),xo)));return jn(this,cE,"f").next(l),a.pipe(Gg(()=>r.next(!0)))}_setCurrentContext(e,t){return new hn(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=jn(this,ll,"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 ss(e).pipe(qr(l=>vy(this,void 0,void 0,function*(){var c;const f=yield(c=jn(this,ll,"f"))===null||c===void 0?void 0:c.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:l}});if(f!=null&&f.canceled)throw Error("resolving of context was canceled");return l})),qr(l=>this.resolveContext(l).pipe(cn(c=>({context:l,resolved:c})))),qr(({context:l,resolved:c})=>vy(this,void 0,void 0,function*(){var f;const p=yield(f=jn(this,ll,"f"))===null||f===void 0?void 0:f.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:l,resolved:c}});if(p!=null&&p.canceled)throw Error("resolving of context was canceled");return c})),qr(l=>this._setCurrentContext(l))).subscribe(r)}return ss(e).pipe(qr(l=>vy(this,void 0,void 0,function*(){var c;const f=yield(c=jn(this,ll,"f"))===null||c===void 0?void 0:c.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 vy(this,void 0,void 0,function*(){return qi(this.setCurrentContext(e,t))})}queryContext(e){const t=this.queryClient.query(jn(this,lE,"f").call(this,{search:e,type:jn(this,lh,"f")})).pipe(cn(r=>r.value));return jn(this,gy,"f")?t.pipe(cn(jn(this,gy,"f"))):t}queryContextAsync(e){return qi(this.queryContext(e))}validateContext(e){return jn(this,lh,"f")?jn(this,lh,"f").map(t=>t.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:jn(this,lh,"f")}}).pipe(cn(t=>t.filter(r=>this.validateContext(r))),cn(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 qi(this.resolveContext(e))}relatedContexts(e){return jn(this,my,"f")?jn(this,my,"f").query(e).pipe(cn(({value:t})=>t),wr(t=>{throw t.cause?t.cause:t})):fN(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return qi(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContext(null)}dispose(){jn(this,sh,"f").unsubscribe(),jn(this,hu,"f").dispose()}}hu=new WeakMap,sE=new WeakMap,my=new WeakMap,ll=new WeakMap,sh=new WeakMap,lh=new WeakMap,gy=new WeakMap,lE=new WeakMap,cE=new WeakMap;var A6=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const MM={name:"context",configure:()=>new IB,initialize:function(n){var e;return A6(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 k6({config:t,event:r,parentContext:a}),c=new Si(()=>l.dispose());return this.postInitialize=f=>new hn(p=>{const m=t.resolveInitialContext?Ir(t.resolveInitialContext(f)).pipe(un(y=>!!y),qr(y=>f.modules.context.setCurrentContext(y,{validate:!0,resolve:!0}))):xo;p.add(m.pipe(wr(y=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",y),xo))).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=()=>c.unsubscribe(),l})}},x6=(n,e)=>{n.addConfig({module:MM,configure:t=>{e&&t.addConfigBuilder(e)}})};var PM=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class I6{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return PM(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 PM(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var FR=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class O6{constructor(e,t){this._client=e,this._http=t}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return FR(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,t){return FR(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 FR(this,void 0,void 0,function*(){const{key:r,alias:a}=typeof e=="string"?{key:e,alias:e}:e,{uri:l,defaultScopes:c}=yield this.resolveService(r);t.addConfig(xN(a,{baseUri:l,defaultScopes:c}))})}}var DM;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(DM||(DM={}));const N6=n=>e=>e.pipe(zT(n)),M6=n=>e=>e.pipe(Na(n)),P6=n=>e=>e.pipe(qr(n)),D6=n=>n.pipe(cn(e=>e.value));let $R=class extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}};const ui=(()=>({request:Cn("client/request",(e,t)=>{var r,a,l;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=av()),(a=t.created)!==null&&a!==void 0||(t.created=Date.now()),(l=t.task)!==null&&l!==void 0||(t.task=new EC),{payload:e,meta:t}}),retry:Cn("client/retry",e=>({payload:e})),success:Cn("client/success",(e,t)=>({payload:e,meta:t})),cancel:Cn("client/cancel",e=>({payload:e})),failure:Cn("client/failure",(e,t)=>({payload:e,meta:t})),error:Cn("client/error",(e,t)=>({payload:e,meta:t}))}))(),LM=n=>e=>e.pipe(un(ui.request.match),Na(t=>{const{meta:r}=t,{transaction:a}=r,l=new AbortController,{signal:c}=l;return new hn(f=>{f.add(e.pipe(un(ui.cancel.match)).subscribe(p=>{p.payload.transaction===a&&(c.aborted||l.abort(),f.complete())})),f.add(Ir(n(t,c)).subscribe({next:p=>f.next(p),error:p=>f.next(ui.error(p,{request:t})),complete:()=>f.complete()}))})})),L6=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(LM(r=>e.pipe(un(ui.failure.match),un(a=>a.meta.request===r),Gp(t),qr(([a,l])=>{var c,f;const{transaction:p}=r.meta,m=l[p];if(!m)return xo;const y=(f=(c=m.retry)===null||c===void 0?void 0:c.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"?Ir(E.delay(a.payload.cause)).pipe(wr(T=>{throw Error("failed to resolve delay",{cause:T})})):jT(E.delay)).pipe(cn(()=>ui.retry(r)))}))))),U6=n=>e=>e.pipe(LM((t,r)=>Ir(n(t.payload,r)).pipe(cn(a=>ui.success(a,{request:t})),wr(a=>ss(ui.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:a}),{request:t})))))),F6=n=>n.pipe(un(ui.retry.match),cn(e=>e.payload)),UM=()=>un(n=>n.status==="complete"),$6=(n={})=>rh(n,e=>e.addCase(ui.request,(t,r)=>{const{transaction:a,task:l,ref:c,created:f}=r.meta;t[a]={transaction:a,task:l,ref:c,created:f}}).addCase(ui.success,(t,r)=>{const{request:a}=r.meta,{transaction:l,ref:c}=a.meta,f=t[l];if(f){const p={status:"complete",transaction:l,ref:c,value:r.payload,args:a.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[l]}).addCase(ui.retry,(t,r)=>{var a;const{transaction:l}=r.payload.meta,c=t[l];c&&((a=c.retry)!==null&&a!==void 0||(c.retry=[]),c.retry.push(Date.now()))}).addCase(ui.cancel,(t,r)=>{const{transaction:a,reason:l}=r.payload;if(t[a]){const c=Object.assign({},sv(t[a]));c.task.error(new $R("abort",{request:c,message:l??"request was canceled"})),delete t[a]}}).addCase(ui.failure,(t,r)=>{var a;const{payload:l,meta:c}=r,{transaction:f}=c.request.meta,p=t[f];p&&((a=p.errors)!==null&&a!==void 0||(p.errors=[]),p.errors.push(l))}).addCase(ui.error,(t,r)=>{const{payload:a,meta:l}=r,{transaction:c}=l.request.meta;if(t[c]){const f=Object.assign({},sv(t[c]));f.task.error(new $R("error",{request:f,message:`failed to process task [${c}]`,cause:a.cause})),delete t[c]}}));var H6=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},to=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)},FM=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},po,ch;let $M=class extends hn{get closed(){return to(this,po,"f").closed}get state$(){return to(this,po,"f")}get action$(){return to(this,po,"f").action$}get success$(){return this.action$.pipe(un(ui.success.match),cn(({payload:e})=>e))}get error$(){return this.action$.pipe(nE("client/error"),Gp(to(this,po,"f")),cn(([e,t])=>{const{payload:r,meta:a}=e,{transaction:l}=a.request.meta,c=t[e.meta.request.meta.transaction];return new $R("error",{request:c,message:`failed to process task [${l}]`,cause:r})}))}constructor(e,t){super(l=>to(this,po,"f").subscribe(l)),po.set(this,void 0),ch.set(this,void 0);const r={};FM(this,po,new nh($6(r)),"f"),FM(this,ch,new Si(()=>to(this,po,"f").complete()),"f"),to(this,ch,"f").add(to(this,po,"f").addFlow(U6(e))),to(this,ch,"f").add(to(this,po,"f").addFlow(F6));const a=Object.assign({count:0,delay:0},t==null?void 0:t.retry);to(this,ch,"f").add(to(this,po,"f").addFlow(L6(a)))}next(e,t){const{ref:r,retry:a,task:l}=t??{},c=ui.request(e,{ref:r,retry:a,task:l});return to(this,po,"f").next(c),c.meta}nextAsync(e,t){return H6(this,void 0,void 0,function*(){return Ti(this.next(e,t).task.pipe(UM()))})}getTaskByTransaction(e){const t=to(this,po,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(to(this,po,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(to(this,po,"f").value).find(a=>a.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)to(this,po,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),to(this,po,"f").next(ui.cancel({transaction:e,reason:t})));else for(const r of Object.keys(to(this,po,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return to(this,po,"f").addEffect(ui[e].type,r=>{t(r,this)})}complete(){to(this,ch,"f").unsubscribe()}asObservable(){return to(this,po,"f").asObservable()}};po=new WeakMap,ch=new WeakMap;function j6(){return{set:Cn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:Cn("cache/remove",n=>({payload:n})),invalidate:Cn("cache/invalidate",n=>({payload:n})),trim:Cn("cache/trim",n=>({payload:n}))}}const pv=j6(),z6=(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 B6(n,e={}){return rh(e,t=>t.addCase(n.set,(r,a)=>{var l;const{key:c,entry:f}=a.payload,p=r[c];if(p)p.updated=Date.now(),(l=p.updates)!==null&&l!==void 0||(p.updates=0),p.updates++;else{const m=Date.now();r[c]=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,c;const{payload:f}=a,p=(l=f.sort)!==null&&l!==void 0?l:z6,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,(c=f.size)!==null&&c!==void 0?c: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 cl=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)},q6=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},Fa;let HM=class{get state(){return cl(this,Fa,"f").value}get state$(){return cl(this,Fa,"f").asObservable()}constructor(e){Fa.set(this,void 0);const{trimming:t,initial:r}=e??{};q6(this,Fa,new nh(B6(pv,r)),"f"),t&&cl(this,Fa,"f").addEffect("cache/set",()=>cl(this,Fa,"f").next(pv.trim(t)))}setItem(...e){cl(this,Fa,"f").next(pv.set(...e))}getItem(e){return cl(this,Fa,"f").value[e]}removeItem(e){cl(this,Fa,"f").next(pv.remove(e))}invalidate(e){cl(this,Fa,"f").next(pv.invalidate(e))}trim(e){cl(this,Fa,"f").next(pv.trim(e))}reset(){cl(this,Fa,"f").reset()}complete(){cl(this,Fa,"f").complete()}};Fa=new WeakMap;var yr=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)},vv=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},V6=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},uh,rc,Ed,mv,yy,_y,uE,HR;const K6=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},G6=n=>{if(typeof n=="function")return n;switch(n){case"concat":return N6;case"merge":return M6;case"switch":default:return P6}};let jR=class{get client(){return yr(this,rc,"f")}get cache(){return yr(this,Ed,"f")}constructor(e){var t;uh.set(this,new Si),rc.set(this,void 0),Ed.set(this,void 0),mv.set(this,new si),yy.set(this,{}),_y.set(this,void 0),uE.set(this,void 0),HR.set(this,av()),vv(this,_y,a=>_R(e.key(a),yr(this,HR,"f")),"f"),vv(this,uE,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:K6(e==null?void 0:e.expire),"f"),e.client instanceof $M?vv(this,rc,e.client,"f"):(vv(this,rc,new $M(e.client.fn,e.client.options),"f"),yr(this,uh,"f").add(()=>yr(this,rc,"f").complete())),e.cache instanceof HM?vv(this,Ed,e.cache,"f"):(vv(this,Ed,new HM(e.cache||{}),"f"),yr(this,uh,"f").add(()=>yr(this,Ed,"f").complete()));const r=G6(e.queueOperator);yr(this,uh,"f").add(()=>yr(this,mv,"f").complete()),yr(this,uh,"f").add(yr(this,mv,"f").pipe(r(a=>{const{args:l,options:c}=a;return new hn(f=>{const{task:p,transaction:m}=yr(this,rc,"f").next(l,c);f.add(p.pipe(wr(()=>xo)).subscribe(f)),f.add(()=>{setTimeout(()=>yr(this,rc,"f").cancel(m))})})}),UM(),TC(()=>!yr(this,rc,"f").closed)).subscribe(a=>{const{args:l,value:c,transaction:f,ref:p}=a,m=p??yr(this,_y,"f").call(this,l);yr(this,Ed,"f").setItem(m,{value:c,args:l,transaction:f})}))}next(e,t){yr(this,mv,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:a}=r,l=V6(r,["awaitResolve"]);return(a?qi:Ti)(this._query(e,l))}complete(){yr(this,uh,"f").unsubscribe()}_query(e,t){var r;const a=yr(this,_y,"f").call(this,e),l=(r=yr(this,yy,"f")[a])!==null&&r!==void 0?r:this._createTask(a,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{yr(this,rc,"f").cancelTaskByRef(a,"abort signal triggered by caller")}),l}_createTask(e,t,r){const a=new si,l=new hn(c=>{var f;yr(this,yy,"f")[e]=l,a.subscribe(c);const p=yr(this,Ed,"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)||yr(this,uE,"f");p&&m(p,t)?a.complete():yr(this,mv,"f").next({args:t,options:{ref:e,task:a,retry:r==null?void 0:r.retry}})}).pipe(Gg(()=>{delete yr(this,yy,"f")[e]}),GT());return l}};uh=new WeakMap,rc=new WeakMap,Ed=new WeakMap,mv=new WeakMap,yy=new WeakMap,_y=new WeakMap,uE=new WeakMap,HR=new WeakMap,jR.extractQueryValue=D6;var zR=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},jM=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)},W6=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},Cy;const zM="services";class Y6{get environment(){var e;const t=(e=jM(this,Cy,"f").cache.getItem(zM))===null||e===void 0?void 0:e.value;if(!t)throw Error("no cached environment found");return t}constructor({http:e,endpoint:t}){Cy.set(this,void 0),this.http=e,this.endpoint=t,W6(this,Cy,new jR({client:{fn:()=>e.fetch$(t,{selector:this.selector.bind(this)})},key:()=>zM,expire:5*60*1e3}),"f")}fetchEnvironment(){return zR(this,void 0,void 0,function*(){return Ti(jR.extractQueryValue(jM(this,Cy,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return zR(this,void 0,void 0,function*(){const t=yield e.json(),r=t.services.reduce((a,l)=>{var c;return Object.assign(a,{[l.key]:{clientId:t.clientId,uri:l.uri,defaultScopes:(c=l.defaultScopes)!==null&&c!==void 0?c:[t.clientId+"/.default"]}})},{});return Object.assign(Object.assign({},t),{services:r})})}resolveService(e){return zR(this,void 0,void 0,function*(){try{const{services:t}=yield this.fetchEnvironment();return t[e]}catch(t){throw console.error(t),t}})}}Cy=new WeakMap;const Q6="serviceDiscovery";var X6=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const J6={name:Q6,configure:()=>new I6({clientCtor:Y6,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:n,requireInstance:e})=>X6(void 0,void 0,void 0,function*(){const t=yield e("http"),r=yield n.createHttpClientClient(t),a=yield n.createClient(r);return new O6(a,t)})};class Z6{}var Is;(function(n){n.v1="1.0",n.v2="2.0"})(Is||(Is={}));class ds extends Error{constructor(e,t){super(`unsupported version ${e}`,{cause:t}),this.version=e}}const e5=(n,e)=>{var t;const r=(t=Is[n])!==null&&t!==void 0?t:n;switch(r){case Is.v2:throw new ds(n);case Is.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/contexts/${a}/?${String(l)}`}}},t5=(n,e,t)=>[e5(n,e),t],n5=(n,e,t="json")=>(r,a)=>n[t](...t5(e,r,a));var r5=["eq","ne","gt","ge","lt","le"],dE=["and","or","not"],o5=["any","all"],i5=["startswith","endswith","contains"],a5=["expand","levels","select","skip","top","count","orderby","filter"],BM=/\((.*)\)/,qM=/(?!indexof)\((\w+)\)/,VM;(function(n){n.sum="sum",n.min="min",n.max="max",n.average="average",n.countdistinct="countdistinct"})(VM||(VM={}));var pu="";function KM(n){var e=n===void 0?{}:n,t=e.select,r=e.search,a=e.skiptoken,l=e.format,c=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,O=e.func,F="",H=[],D={};if(E!=null&&(F+="(".concat(oc(E,H),")")),(p||typeof S=="object")&&(D.$filter=Ey(typeof S=="object"?S:p,H)),m&&(D.$apply=GM(m)),T&&(D.$expand=fE(T)),y&&(D.$orderby=qR(y)),S&&(typeof S=="boolean"?D.$count=!0:F+="/$count"),typeof c=="number"&&(D.$top=c),typeof f=="number"&&(D.$skip=f),A&&(F+="/".concat(A)),O){if(typeof O=="string")F+="/".concat(O);else if(typeof O=="object"){var q=Object.keys(O)[0],U=oc(O[q],H);F+="/".concat(q),U!==""&&(F+="(".concat(U,")"))}}return H.length>0&&Object.assign(D,H.reduce(function(V,te){var Z;return Object.assign(V,(Z={},Z["@".concat(te.name)]=oc(te.value),Z))},{})),d5(F,fo({$select:t,$search:r,$skiptoken:a,$format:l},D))}function BR(n,e,t){return t===void 0&&(t=[]),"".concat(n," eq ").concat(oc(e,t))}function Ey(n,e,t){return n===void 0&&(n={}),e===void 0&&(e=[]),t===void 0&&(t=""),(Array.isArray(n)?n:[n]).reduce(function(l,c){if(c){var f=r(c,e,t);f&&l.push(f)}return l},[]).join(" and ");function r(l,c,f){l===void 0&&(l={}),c===void 0&&(c=[]),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===pu?T=f:qM.test(E)?T=E.replace(qM,function(D,q){return q.trim()===pu?"(".concat(f,")"):"(".concat(f,"/").concat(q.trim(),")")}):BM.test(E)?T=E.replace(BM,function(D,q){return q.trim()===pu?"(".concat(f,")"):"(".concat(f,"/").concat(q.trim(),")")}):T="".concat(f,"/").concat(E):T=E,E===pu&&Array.isArray(S))return y.concat(S.map(function(D){return BR(T,D)}));if(["number","string","boolean"].indexOf(typeof S)!==-1||S instanceof Date||S===null)y.push(BR(T,S,c));else if(Array.isArray(S)){var A=E,O=S.map(function(D){return Ey(D,c,f)}).filter(function(D){return D}).map(function(D){return dE.indexOf(A)!==-1?"(".concat(D,")"):D});O.length&&(dE.indexOf(A)!==-1?O.length&&(A==="not"?y.push(WM(O)):y.push("(".concat(O.join(" ".concat(A," ")),")"))):y.push(O.join(" ".concat(A," "))))}else if(dE.indexOf(T)!==-1){var F=T,O=Object.keys(S).map(function(q){var U;return r((U={},U[q]=S[q],U))});O.length&&(F==="not"?y.push(WM(O)):y.push("(".concat(O.join(" ".concat(F," ")),")")))}else if(typeof S=="object")if("type"in S)y.push(BR(T,S,c));else{var H=Object.keys(S);H.forEach(function(D){if(S[D]!==void 0)if(r5.indexOf(D)!==-1)y.push("".concat(T," ").concat(D," ").concat(oc(S[D],c)));else if(dE.indexOf(D)!==-1)Array.isArray(S[D])?y.push(S[D].map(function(te){return"("+r(te,c,T)+")"}).join(" ".concat(D," "))):y.push("("+r(S[D],c,T)+")");else if(o5.indexOf(D)!==-1){var q=a(E.toLowerCase(),S[D],D,T);q&&y.push(q)}else if(D==="has")y.push("".concat(T," ").concat(D," ").concat(oc(S[D],c)));else if(D==="in"){var U=Array.isArray(S[D])?S[D]:S[D].value.map(function(te){return{type:S[D].type,value:te}});y.push(T+" in ("+U.map(function(te){return oc(te,c)}).join(",")+")")}else if(i5.indexOf(D)!==-1)y.push("".concat(D,"(").concat(T,",").concat(oc(S[D],c),")"));else{var V=r(S,c,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,c,f,p){var m="";if(typeof c=="string"||c instanceof String)m=s5(l,c,f,p);else if(c){var y=Array.isArray(c)?c.reduce(function(S,T){return T.hasOwnProperty(pu)?(S.hasOwnProperty(pu)||(S[pu]=[]),S[pu].push(T[pu]),S):fo(fo({},S),T)},{}):c,E=r(y,e,l);m="".concat(p,"/").concat(f,"(").concat(E?"".concat(l,":").concat(E):"",")")}return m}}function s5(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 l5(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 oc(n,e){if(typeof n=="string")return"'".concat(l5(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 oc(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(oc(a,e))}).join(",")}return n}function fE(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 fE(t)}).join(","));if(typeof n=="object"){var e=Object.keys(n);return e.some(function(t){return a5.indexOf(t.toLowerCase())!==-1})?e.map(function(t){var r;switch(t){case"filter":r=Ey(n[t]);break;case"orderBy":r=qR(n[t]);break;case"levels":case"count":case"skip":case"top":r="".concat(n[t]);break;default:r=fE(n[t])}return"$".concat(t.toLowerCase(),"=").concat(r)}).join(";"):e.map(function(t){var r=fE(n[t]);return r?"".concat(t,"(").concat(r,")"):t}).join(",")}return""}function GM(n){var e=Array.isArray(n)?n:[n],t=e.reduce(function(r,a){var l=a.aggregate,c=a.filter,f=a.groupBy,p=jO(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(c5(l),")")),c){var y=Ey(c);y&&r.push("filter(".concat(Ey(y),")"))}return f&&r.push("groupby(".concat(u5(f),")")),r},[]);return t.join("/")||void 0}function c5(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 u5(n){if(!n.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(n.properties.join(","),")");return n.transform&&(e+=",".concat(GM(n.transform))),e}function qR(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 qR(a,"".concat(r,"/"))}).map(function(t){return"".concat(e).concat(t)}).join(","):"".concat(e).concat(String(n))}function d5(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 WM(n){return"not(".concat(n.join(" and "),")")}const f5=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]})}},{}),h5=n=>Object.entries(n).filter(([e,t])=>!!t).reduce((e,[t,r])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:f5(r)});default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),p5=n=>typeof n=="string"?n:KM(h5(n)),v5=(n,e)=>{var t;const r=(t=Is[n])!==null&&t!==void 0?t:n;switch(r){case Is.v2:throw new ds(n);case Is.v1:default:{const{query:a,includeDeleted:l}=e,c=new URLSearchParams(p5(a));return c.append("api-version",r),l&&c.append("includeDeleted","true"),`/contexts/?${String(c)}`}}},m5=(n,e,t)=>[v5(n,e),t],g5=(n,e,t="json")=>(r,a)=>n[t](...m5(e,r,a)),y5=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]})}},{}),_5=n=>Object.entries(n).filter(([e,t])=>!!t).reduce((e,[t,r])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:y5(r)});default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),C5=n=>typeof n=="string"?n:KM(_5(n)),E5=(n,e)=>{var t;const r=(t=Is[n])!==null&&t!==void 0?t:n;switch(r){case Is.v2:throw new ds(n);case Is.v1:default:{const{id:a,query:l}=e,c=new URLSearchParams(C5(l||""));return c.append("api-version",r),`/contexts/${a}/relations?${String(c)}`}}},w5=(n,e,t)=>[E5(n,e),t],b5=(n,e,t="json")=>(r,a)=>n[t](...w5(e,r,a));class S5{get Version(){return Is}constructor(e,t){this._client=e,this._method=t}get(e,...t){return n5(this._client,e,this._method)(...t)}query(e,...t){return g5(this._client,e,this._method)(...t)}related(e,...t){return b5(this._client,e,this._method)(...t)}}const T5=(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)}`}}},R5=(n,e,t)=>{const r=T5(n,e),a=Object.assign({},{method:"Delete"},t);return[r,a]},k5=(n,e,t="fetch")=>(r,a)=>n[t](...R5(e,r,a)),A5=(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)}`}}},x5=(n,e,t)=>[A5(n,e),t],I5=(n,e,t="json")=>(r,a)=>n[t](...x5(e,r,a)),O5=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/bookmarks?${String(t)}`}}},N5=(n,e,t)=>{const r=O5(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]},M5=(n,e,t="json")=>(r,a)=>n[t](...N5(e,r,a)),P5=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/bookmarks/${e.id}?${String(t)}`}}},D5=(n,e,t)=>{const r=P5(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]},L5=(n,e,t="json")=>(r,a)=>n[t](...D5(e,r,a)),U5=n=>{switch(n){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",n),`persons/me/bookmarks/?${String(e)}`}}},F5=(n,e)=>[U5(n),e],$5=(n,e,t="json")=>r=>n[t](...F5(e,r)),H5=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/persons/me/bookmarks/favourites?${String(t)}`}}},j5=(n,e,t)=>{const r=H5(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]},z5=(n,e,t="json")=>(r,a)=>n[t](...j5(e,r,a)),B5=(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)}`}}},q5=(n,e,t)=>{const r=B5(n,e),a=Object.assign({},{method:"Delete"},t);return[r,a]},V5=(n,e,t="fetch")=>(r,a)=>n[t](...q5(e,r,a)),K5=(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)}`}}},G5=(n,e,t)=>{const r=K5(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"head",headers:a},t);return[r,l]},W5=(n,e,t="json")=>(r,a)=>n[t](...G5(e,r,a));class Y5{constructor(e,t){this._client=e,this._method=t}get(e,...t){return I5(this._client,e,this._method)(...t)}getAll(e){return $5(this._client,e,this._method)()}post(e,...t){return M5(this._client,e,this._method)(...t)}patch(e,...t){return L5(this._client,e,this._method)(...t)}delete(e,...t){return k5(this._client,e,this._method)(...t)}addFavorite(e,...t){return z5(this._client,e,this._method)(...t)}removeFavorite(e,...t){return V5(this._client,e,this._method)(...t)}verifyFavorite(e,...t){return W5(this._client,e,this._method)(...t)}}const Q5=Y5,X5=(n,e)=>{var t;const r=(t=Or[n])!==null&&t!==void 0?t:n;switch(r){case Or.v2:throw new ds(n);case Or.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/notification/${a}/?${String(l)}`}}},J5=(n,e,t)=>[X5(n,e),t],Z5=(n,e,t="json")=>(r,a)=>n[t](...J5(e,r,a)),eq=(n,e)=>{var t;const r=(t=Or[n])!==null&&t!==void 0?t:n;switch(r){case Or.v2:throw new ds(n);case Or.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/?${String(l)}`}}},tq=(n,e,t)=>{const r=eq(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]},nq=(n,e,t="json")=>(r,a)=>n[t](...tq(e,r,a)),rq=(n,e)=>{var t;const r=(t=Or[n])!==null&&t!==void 0?t:n;switch(r){case Or.v2:throw new ds(n);case Or.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/notification/${a}/?${String(l)}`}}},oq=(n,e,t)=>{const r=rq(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]},iq=(n,e,t="json")=>(r,a)=>n[t](...oq(e,r,a)),aq=(n,e)=>{var t;const r=(t=Or[n])!==null&&t!==void 0?t:n;switch(r){case Or.v2:throw new ds(n);case Or.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/?${String(l)}`}}},sq=(n,e,t)=>[aq(n,e),t],lq=(n,e,t="json")=>(r,a)=>n[t](...sq(e,r,a)),cq=(n,e)=>{var t;const r=(t=Or[n])!==null&&t!==void 0?t:n;switch(r){case Or.v2:throw new ds(n);case Or.v1:default:{const{id:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/notification/${a}/?${String(l)}`}}},uq=(n,e,t)=>{const r=cq(n,e),a=new Headers;a.append("content-type","application/json");const l=Object.assign({},{method:"delete",headers:a},t);return[r,l]},dq=(n,e,t="json")=>(r,a)=>n[t](...uq(e,r,a));var Or;(function(n){n.v1="1.0",n.v2="2.0"})(Or||(Or={}));const fq=(n,e)=>{var t;const r=(t=Or[n])!==null&&t!==void 0?t:n;switch(r){case Or.v2:throw new ds(n);case Or.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/settings/?${String(l)}`}}},hq=(n,e,t)=>{const r=fq(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]},pq=(n,e,t="json")=>(r,a)=>n[t](...hq(e,r,a)),vq=(n,e)=>{var t;const r=(t=Or[n])!==null&&t!==void 0?t:n;switch(r){case Or.v2:throw new ds(n);case Or.v1:default:{const{userId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/person/${a}/notifications/settings/?${String(l)}`}}},mq=(n,e,t)=>[vq(n,e),t],gq=(n,e,t="json")=>(r,a)=>n[t](...mq(e,r,a));class yq{get Version(){return Or}constructor(e,t){this._client=e,this._method=t}getAll(e,...t){return lq(this._client,e,this._method)(...t)}getById(e,...t){return Z5(this._client,e,this._method)(...t)}setSeenByUser(e,...t){return iq(this._client,e,this._method)(...t)}create(e,...t){return nq(this._client,e,this._method)(...t)}delete(e,...t){return dq(this._client,e,this._method)(...t)}getSettings(e,...t){return gq(this._client,e,this._method)(...t)}updateSettings(e,...t){return pq(this._client,e,this._method)(...t)}}var vu;(function(n){n.v2="2.0",n.v4="4.0"})(vu||(vu={}));const _q=(n,e)=>{var t;const r=(t=vu[n])!==null&&t!==void 0?t:n;switch(r){case vu.v4:{const{azureId:a,expand:l}=e,c=new URLSearchParams;return c.append("api-version",r),l&&c.append("$expand",l.join(",")),`/persons/${a}?${String(c)}`}default:throw new ds(n)}},Cq=(n,e,t)=>[_q(n,e),t],Eq=(n,e,t="json")=>(r,a)=>n[t](...Cq(e,r,a)),wq=(n,e)=>{var t;const r=(t=vu[n])!==null&&t!==void 0?t:n;switch(r){case vu.v2:{const{search:a}=e,l=new URLSearchParams;return l.append("api-version",r),l.append("$search",a),`/persons?${String(l)}`}default:throw new ds(n)}},bq=(n,e,t)=>[wq(n,e),t],Sq=(n,e,t="json")=>(r,a)=>n[t](...bq(e,r,a)),Tq=(n,e)=>{var t;const r=(t=vu[n])!==null&&t!==void 0?t:n;switch(r){case vu.v2:{const{azureId:a}=e,l=new URLSearchParams;return l.append("api-version",r),`/persons/${a}/photo?${String(l)}`}default:throw new ds(n)}},Rq=(n,e,t)=>[Tq(n,e),t],kq=(n,e,t="blob")=>(r,a)=>n[t](...Rq(e,r,a));class Aq{get Version(){return vu}constructor(e){this._client=e}get(e,t,r,a){return Eq(this._client,e,t)(r,a)}query(e,t,r,a){return Sq(this._client,e,t)(r,a)}photo(e,t,r,a){return kq(this._client,e,t)(r,a)}}var wy=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};class xq extends Error{constructor(e,t,r){super(e,r),this.response=t,this.name="ApiProviderError"}}const hE=n=>wy(void 0,void 0,void 0,function*(){var e;if(!n.ok){const{headers:t,status:r,statusText:a,type:l,url:c,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 xq("failed to execute request, response was not ok",{headers:t,status:r,statusText:a,type:l,url:c,data:m})}});class Iq{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return wy(this,void 0,void 0,function*(){const t=yield this._createClientFn("notification");return t.responseHandler.add("validate_api_request",hE),new yq(t,e)})}createBookmarksClient(e){return wy(this,void 0,void 0,function*(){const t=yield this._createClientFn("bookmarks");return t.responseHandler.add("validate_api_request",hE),new Q5(t,e)})}createContextClient(e){return wy(this,void 0,void 0,function*(){const t=yield this._createClientFn("context");return t.responseHandler.add("validate_api_request",hE),new S5(t,e)})}createPeopleClient(){return wy(this,void 0,void 0,function*(){const e=yield this._createClientFn("people");return e.responseHandler.add("validate_api_request",hE),new Aq(e)})}}var YM=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const Oq="services",Nq=(n,e)=>t=>YM(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}`)}),Mq={name:Oq,configure:()=>new Z6,initialize:({ref:n,config:e,requireInstance:t,hasModule:r})=>YM(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=Nq(a,l)}if(!e.createClient)throw Error("missing configuration for creating API client");return new Iq(e)})};class Pq extends H3{constructor(){super([V3,uM,QT,J6,Mq,MM]),this.logger=new HO("FrameworkConfigurator")}configureHttp(...e){this.addConfig(rz(...e))}configureHttpClient(...e){this.addConfig(xN(...e))}configureMsal(...e){this.addConfig(mB(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var Dq=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const Lq=(n,e)=>Dq(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}),QM=P.createContext(null),Uq=QM.Provider,Fq=P.createContext({});globalThis&&globalThis.__awaiter,globalThis&&globalThis.__rest;const $q=Fq.Provider;var Hq=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const jq=n=>P.lazy(()=>Hq(void 0,void 0,void 0,function*(){const e=new Pq;yield n(e);const t=yield Lq(e);return{default:({children:r})=>ce.jsx(Uq,{value:t,children:ce.jsx($q,{value:t.modules,children:r})})}})),pE=()=>{let n=P.useContext(QM);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},zq=n=>{const{configure:e,fallback:t,children:r}=n,a=P.useMemo(()=>jq(e),[e]);return ce.jsx(P.Suspense,{fallback:t,children:ce.jsx(a,{children:r})})};var Bq=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},qq=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)},vE;class Vq{constructor(e,t={}){this.config=t,vE.set(this,void 0),Bq(this,vE,e,"f")}requireInstance(e){return qq(this,vE,"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}}}vE=new WeakMap;var XM;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(XM||(XM={}));const Kq=n=>e=>e.pipe(zT(n)),Gq=n=>e=>e.pipe(Na(n)),Wq=n=>e=>e.pipe(qr(n)),Yq=n=>n.pipe(cn(e=>e.value));class VR extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}}const di=(()=>({request:Cn("client/request",(e,t)=>{var r,a,l;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=av()),(a=t.created)!==null&&a!==void 0||(t.created=Date.now()),(l=t.task)!==null&&l!==void 0||(t.task=new EC),{payload:e,meta:t}}),retry:Cn("client/retry",e=>({payload:e})),success:Cn("client/success",(e,t)=>({payload:e,meta:t})),cancel:Cn("client/cancel",e=>({payload:e})),failure:Cn("client/failure",(e,t)=>({payload:e,meta:t})),error:Cn("client/error",(e,t)=>({payload:e,meta:t}))}))(),JM=n=>e=>e.pipe(un(di.request.match),Na(t=>{const{meta:r}=t,{transaction:a}=r,l=new AbortController,{signal:c}=l;return new hn(f=>{f.add(e.pipe(un(di.cancel.match)).subscribe(p=>{p.payload.transaction===a&&(c.aborted||l.abort(),f.complete())})),f.add(Ir(n(t,c)).subscribe({next:p=>f.next(p),error:p=>f.next(di.error(p,{request:t})),complete:()=>f.complete()}))})})),Qq=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(JM(r=>e.pipe(un(di.failure.match),un(a=>a.meta.request===r),Gp(t),qr(([a,l])=>{var c,f;const{transaction:p}=r.meta,m=l[p];if(!m)return xo;const y=(f=(c=m.retry)===null||c===void 0?void 0:c.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"?Ir(E.delay(a.payload.cause)).pipe(wr(T=>{throw Error("failed to resolve delay",{cause:T})})):jT(E.delay)).pipe(cn(()=>di.retry(r)))}))))),Xq=n=>e=>e.pipe(JM((t,r)=>Ir(n(t.payload,r)).pipe(cn(a=>di.success(a,{request:t})),wr(a=>ss(di.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:a}),{request:t})))))),Jq=n=>n.pipe(un(di.retry.match),cn(e=>e.payload)),ZM=()=>un(n=>n.status==="complete"),Zq=(n={})=>rh(n,e=>e.addCase(di.request,(t,r)=>{const{transaction:a,task:l,ref:c,created:f}=r.meta;t[a]={transaction:a,task:l,ref:c,created:f}}).addCase(di.success,(t,r)=>{const{request:a}=r.meta,{transaction:l,ref:c}=a.meta,f=t[l];if(f){const p={status:"complete",transaction:l,ref:c,value:r.payload,args:a.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[l]}).addCase(di.retry,(t,r)=>{var a;const{transaction:l}=r.payload.meta,c=t[l];c&&((a=c.retry)!==null&&a!==void 0||(c.retry=[]),c.retry.push(Date.now()))}).addCase(di.cancel,(t,r)=>{const{transaction:a,reason:l}=r.payload;if(t[a]){const c=Object.assign({},sv(t[a]));c.task.error(new VR("abort",{request:c,message:l??"request was canceled"})),delete t[a]}}).addCase(di.failure,(t,r)=>{var a;const{payload:l,meta:c}=r,{transaction:f}=c.request.meta,p=t[f];p&&((a=p.errors)!==null&&a!==void 0||(p.errors=[]),p.errors.push(l))}).addCase(di.error,(t,r)=>{const{payload:a,meta:l}=r,{transaction:c}=l.request.meta;if(t[c]){const f=Object.assign({},sv(t[c]));f.task.error(new VR("error",{request:f,message:`failed to process task [${c}]`,cause:a.cause})),delete t[c]}}));var eV=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},no=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)},eP=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},vo,dh;class tP extends hn{get closed(){return no(this,vo,"f").closed}get state$(){return no(this,vo,"f")}get action$(){return no(this,vo,"f").action$}get success$(){return this.action$.pipe(un(di.success.match),cn(({payload:e})=>e))}get error$(){return this.action$.pipe(nE("client/error"),Gp(no(this,vo,"f")),cn(([e,t])=>{const{payload:r,meta:a}=e,{transaction:l}=a.request.meta,c=t[e.meta.request.meta.transaction];return new VR("error",{request:c,message:`failed to process task [${l}]`,cause:r})}))}constructor(e,t){super(l=>no(this,vo,"f").subscribe(l)),vo.set(this,void 0),dh.set(this,void 0);const r={};eP(this,vo,new nh(Zq(r)),"f"),eP(this,dh,new Si(()=>no(this,vo,"f").complete()),"f"),no(this,dh,"f").add(no(this,vo,"f").addFlow(Xq(e))),no(this,dh,"f").add(no(this,vo,"f").addFlow(Jq));const a=Object.assign({count:0,delay:0},t==null?void 0:t.retry);no(this,dh,"f").add(no(this,vo,"f").addFlow(Qq(a)))}next(e,t){const{ref:r,retry:a,task:l}=t??{},c=di.request(e,{ref:r,retry:a,task:l});return no(this,vo,"f").next(c),c.meta}nextAsync(e,t){return eV(this,void 0,void 0,function*(){return Ti(this.next(e,t).task.pipe(ZM()))})}getTaskByTransaction(e){const t=no(this,vo,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(no(this,vo,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(no(this,vo,"f").value).find(a=>a.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)no(this,vo,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),no(this,vo,"f").next(di.cancel({transaction:e,reason:t})));else for(const r of Object.keys(no(this,vo,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return no(this,vo,"f").addEffect(di[e].type,r=>{t(r,this)})}complete(){no(this,dh,"f").unsubscribe()}asObservable(){return no(this,vo,"f").asObservable()}}vo=new WeakMap,dh=new WeakMap;function tV(){return{set:Cn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:Cn("cache/remove",n=>({payload:n})),invalidate:Cn("cache/invalidate",n=>({payload:n})),trim:Cn("cache/trim",n=>({payload:n}))}}const gv=tV(),nV=(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 rV(n,e={}){return rh(e,t=>t.addCase(n.set,(r,a)=>{var l;const{key:c,entry:f}=a.payload,p=r[c];if(p)p.updated=Date.now(),(l=p.updates)!==null&&l!==void 0||(p.updates=0),p.updates++;else{const m=Date.now();r[c]=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,c;const{payload:f}=a,p=(l=f.sort)!==null&&l!==void 0?l:nV,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,(c=f.size)!==null&&c!==void 0?c: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 ul=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)},oV=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},$a;class nP{get state(){return ul(this,$a,"f").value}get state$(){return ul(this,$a,"f").asObservable()}constructor(e){$a.set(this,void 0);const{trimming:t,initial:r}=e??{};oV(this,$a,new nh(rV(gv,r)),"f"),t&&ul(this,$a,"f").addEffect("cache/set",()=>ul(this,$a,"f").next(gv.trim(t)))}setItem(...e){ul(this,$a,"f").next(gv.set(...e))}getItem(e){return ul(this,$a,"f").value[e]}removeItem(e){ul(this,$a,"f").next(gv.remove(e))}invalidate(e){ul(this,$a,"f").next(gv.invalidate(e))}trim(e){ul(this,$a,"f").next(gv.trim(e))}reset(){ul(this,$a,"f").reset()}complete(){ul(this,$a,"f").complete()}}$a=new WeakMap;var _r=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},iV=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},fh,ic,wd,_v,by,Sy,mE,KR;const aV=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},sV=n=>{if(typeof n=="function")return n;switch(n){case"concat":return Kq;case"merge":return Gq;case"switch":default:return Wq}};class hh{get client(){return _r(this,ic,"f")}get cache(){return _r(this,wd,"f")}constructor(e){var t;fh.set(this,new Si),ic.set(this,void 0),wd.set(this,void 0),_v.set(this,new si),by.set(this,{}),Sy.set(this,void 0),mE.set(this,void 0),KR.set(this,av()),yv(this,Sy,a=>_R(e.key(a),_r(this,KR,"f")),"f"),yv(this,mE,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:aV(e==null?void 0:e.expire),"f"),e.client instanceof tP?yv(this,ic,e.client,"f"):(yv(this,ic,new tP(e.client.fn,e.client.options),"f"),_r(this,fh,"f").add(()=>_r(this,ic,"f").complete())),e.cache instanceof nP?yv(this,wd,e.cache,"f"):(yv(this,wd,new nP(e.cache||{}),"f"),_r(this,fh,"f").add(()=>_r(this,wd,"f").complete()));const r=sV(e.queueOperator);_r(this,fh,"f").add(()=>_r(this,_v,"f").complete()),_r(this,fh,"f").add(_r(this,_v,"f").pipe(r(a=>{const{args:l,options:c}=a;return new hn(f=>{const{task:p,transaction:m}=_r(this,ic,"f").next(l,c);f.add(p.pipe(wr(()=>xo)).subscribe(f)),f.add(()=>{setTimeout(()=>_r(this,ic,"f").cancel(m))})})}),ZM(),TC(()=>!_r(this,ic,"f").closed)).subscribe(a=>{const{args:l,value:c,transaction:f,ref:p}=a,m=p??_r(this,Sy,"f").call(this,l);_r(this,wd,"f").setItem(m,{value:c,args:l,transaction:f})}))}next(e,t){_r(this,_v,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:a}=r,l=iV(r,["awaitResolve"]);return(a?qi:Ti)(this._query(e,l))}complete(){_r(this,fh,"f").unsubscribe()}_query(e,t){var r;const a=_r(this,Sy,"f").call(this,e),l=(r=_r(this,by,"f")[a])!==null&&r!==void 0?r:this._createTask(a,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{_r(this,ic,"f").cancelTaskByRef(a,"abort signal triggered by caller")}),l}_createTask(e,t,r){const a=new si,l=new hn(c=>{var f;_r(this,by,"f")[e]=l,a.subscribe(c);const p=_r(this,wd,"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)||_r(this,mE,"f");p&&m(p,t)?a.complete():_r(this,_v,"f").next({args:t,options:{ref:e,task:a,retry:r==null?void 0:r.retry}})}).pipe(Gg(()=>{delete _r(this,by,"f")[e]}),GT());return l}}fh=new WeakMap,ic=new WeakMap,wd=new WeakMap,_v=new WeakMap,by=new WeakMap,Sy=new WeakMap,mE=new WeakMap,KR=new WeakMap,hh.extractQueryValue=Yq;const Kn=(()=>({setManifest:Cn("set_manifest",(n,e)=>({payload:n,meta:{created:Date.now(),update:e}})),fetchManifest:oE("fetch_manifest",(n,e)=>({payload:n,meta:{update:e}}),n=>({payload:n}),n=>({payload:n})),setConfig:Cn("set_config",n=>({payload:n})),fetchConfig:oE("fetch_config",n=>({payload:n}),n=>({payload:n}),n=>({payload:n})),setModule:Cn("set_module",n=>({payload:n})),importApp:oE("import_app",n=>({payload:n}),n=>({payload:n}),n=>({payload:n})),setInstance:Cn("set_instance",n=>({payload:n})),initialize:oE("initialize_app",()=>({payload:null}),()=>({payload:null}),n=>({payload:n}))}))();e6();const lV=n=>rh(Object.assign(Object.assign({},n),{status:new Set}),e=>e.addCase(Kn.setManifest,(t,r)=>{r.meta.update?t.manifest=Object.assign(Object.assign({},t.manifest),r.payload):t.manifest=r.payload}).addCase(Kn.setConfig,(t,r)=>{t.config=r.payload}).addCase(Kn.setModule,(t,r)=>{t.modules=r.payload}).addCase(Kn.setInstance,(t,r)=>{t.instance=r.payload}).addMatcher(l6,(t,r)=>{t.status.add(TM(r))}).addMatcher(d6,(t,r)=>{t.status.delete(TM(r))})),cV=n=>e=>e.pipe(un(Kn.fetchManifest.match),qr(t=>{const{payload:r,meta:{update:a}}=t,l=Ir(n.getAppManifest(r)).pipe(un(c=>!!c),VT());return HT(l.pipe(cn(c=>Kn.setManifest(c,a))),l.pipe(BT(),cn(c=>Kn.fetchManifest.success(c)))).pipe(wr(c=>ss(Kn.fetchManifest.failure(c))))})),uV=n=>e=>e.pipe(un(Kn.fetchConfig.match),qr(({payload:t})=>{const r=Ir(n.getAppConfig(t)).pipe(un(a=>!!a),VT());return HT(r.pipe(cn(a=>Kn.setConfig(a))),r.pipe(BT(),cn(a=>Kn.fetchConfig.success(a)))).pipe(wr(a=>ss(Kn.fetchConfig.failure(a))))})),dV=()=>n=>n.pipe(un(Kn.importApp.match),qr(({payload:e})=>Ir(import(e)).pipe(cn(Kn.importApp.success),wr(t=>ss(Kn.importApp.failure(t)))))),fV=(n,e)=>{const t=lV(n),r=new nh(t);return r.addFlow(cV(e)),r.addFlow(uV(e)),r.addFlow(dV()),r};var hV=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},rn=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)},pV=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},GR,tn,rP;function Ty(){return un(n=>n!=null)}let vV=class{get manifest$(){return rn(this,tn,"f").pipe(cn(({manifest:e})=>e),Ty())}get config$(){return rn(this,tn,"f").pipe(cn(({config:e})=>e),Ty())}get modules$(){return rn(this,tn,"f").pipe(cn(({modules:e})=>e),Ty())}get instance$(){return rn(this,tn,"f").pipe(cn(({instance:e})=>e),Ty())}get state(){return rn(this,tn,"f").value}get appKey(){return rn(this,tn,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return Ti(this.manifest$)}get config(){return this.state.config}get configAsync(){return Ti(this.config$)}get instance(){return rn(this,tn,"f").value.instance}constructor(e,t){GR.add(this),tn.set(this,void 0),pV(this,tn,fV(e,t.provider),"f");const{appKey:r}=e,{event:a}=t;a&&rn(this,GR,"m",rP).call(this,a);const l=new Si;a&&(l.add(()=>{a.dispatchEvent("onAppDispose",{detail:{appKey:r}})}),l.add(a.addEventListener("onAppModulesLoaded",c=>{c.detail.appKey===r&&rn(this,tn,"f").next(Kn.setInstance(c.detail.modules))}))),this.dispose=()=>{l==null||l.unsubscribe(),rn(this,tn,"f").value.instance&&rn(this,tn,"f").value.instance.dispose(),rn(this,tn,"f").complete()}}initialize(){return new hn(e=>{rn(this,tn,"f").next(Kn.initialize()),e.add(k3([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([t,r,a])=>e.next({manifest:t,script:r,config:a}),error:t=>{e.error(t),rn(this,tn,"f").next(Kn.initialize.failure(t))},complete:()=>{rn(this,tn,"f").next(Kn.initialize.success()),e.complete()}}))})}loadConfig(){rn(this,tn,"f").next(Kn.fetchConfig(this.appKey))}loadManifest(e){rn(this,tn,"f").next(Kn.fetchManifest(this.appKey,e))}updateManifest(e,t){rn(this,tn,"f").next(Kn.setManifest(e,!t))}loadAppModule(e=!0){return hV(this,void 0,void 0,function*(){const t=yield this.getManifestAsync(e);rn(this,tn,"f").next(Kn.importApp(t.entry))})}getConfig(e=!1){return new hn(t=>{if(rn(this,tn,"f").value.config&&(t.next(rn(this,tn,"f").value.config),!e))return t.complete();t.add(rn(this,tn,"f").addEffect("set_config",({payload:r})=>{t.next(r)})),t.add(rn(this,tn,"f").addEffect("fetch_config::success",({payload:r})=>{t.next(r),t.complete()})),t.add(rn(this,tn,"f").addEffect("fetch_config::failure",({payload:r})=>{t.error(Error("failed to load application config",{cause:r}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?Ti:qi)(this.getConfig(!e))}getManifest(e=!1){return new hn(t=>{if(rn(this,tn,"f").value.manifest&&(t.next(rn(this,tn,"f").value.manifest),!e))return t.complete();t.add(rn(this,tn,"f").addEffect("set_manifest",({payload:r})=>{t.next(r)})),t.add(rn(this,tn,"f").addEffect("fetch_manifest::success",({payload:r})=>{t.next(r),t.complete()})),t.add(rn(this,tn,"f").addEffect("fetch_manifest::failure",({payload:r})=>{t.error(Error("failed to load application manifest",{cause:r}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?Ti:qi)(this.getManifest(!e))}getAppModule(e=!1){return new hn(t=>{if(rn(this,tn,"f").value.modules&&(t.next(rn(this,tn,"f").value.modules),!e))return t.complete();t.add(rn(this,tn,"f").addEffect("set_module",({payload:r})=>{t.next(r)})),t.add(rn(this,tn,"f").addEffect("import_app::success",({payload:r})=>{t.next(r),t.complete()})),t.add(rn(this,tn,"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=>ss(rn(this,tn,"f").next(Kn.importApp(r.entry)))))})}getAppModuleAsync(e=!0){return(e?Ti:qi)(this.getAppModule(!e))}};tn=new WeakMap,GR=new WeakSet,rP=function(e){const{appKey:t}=this;rn(this,tn,"f").addEffect(Kn.fetchManifest.success.type,r=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),rn(this,tn,"f").addEffect(Kn.fetchConfig.success.type,r=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),rn(this,tn,"f").addEffect(Kn.importApp.success.type,r=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),rn(this,tn,"f").addEffect(Kn.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:t},source:this})}),rn(this,tn,"f").addEffect(Kn.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:t},source:this})}),rn(this,tn,"f").addEffect(Kn.initialize.failure.type,({payload:r})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:t,error:r},source:this})})};class ph extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new ph("unauthorized","failed to load application manifest, request not authorized",t);case 404:return new ph("not_found","application manifest not found",t)}return new ph("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 Yi=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)},gE=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},Ry,ky,bd,Sd,yE;class mV{static compareAppManifest(e,t){return JSON.stringify(e)===JSON.stringify(t)}get current(){return Yi(this,bd,"f").value}get current$(){return Yi(this,bd,"f").pipe(gN((e,t)=>e&&t?e.appKey===t.appKey:e===t))}constructor(e){Ry.set(this,void 0),ky.set(this,void 0),bd.set(this,void 0),Sd.set(this,new Si),yE.set(this,void 0);const{event:t,config:r}=e;gE(this,yE,t,"f"),gE(this,bd,new Vg(void 0),"f"),this.appClient=new hh(r.client.getAppManifest),gE(this,Ry,new hh(r.client.getAppManifests),"f"),gE(this,ky,new hh(r.client.getAppConfig),"f"),Yi(this,Sd,"f").add(()=>this.appClient.complete()),Yi(this,Sd,"f").add(()=>Yi(this,Ry,"f").complete()),Yi(this,Sd,"f").add(()=>Yi(this,ky,"f").complete()),Yi(this,Sd,"f").add(this.current$.pipe(qT(),TC(()=>!!t)).subscribe(([a,l])=>{t==null||t.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:a,next:l}})})),Yi(this,Sd,"f").add(Yi(this,bd,"f").pipe(qT(),cn(([a])=>a),Ty()).subscribe(a=>a.dispose()))}getAppManifest(e){return hh.extractQueryValue(this.appClient.query({appKey:e}).pipe(wr(t=>{const{cause:r}=t;throw r instanceof ph?r:r instanceof YT?ph.fromHttpResponse(r.response,{cause:r}):new ph("unknown","failed to load manifest",{cause:r})})))}getAllAppManifests(){return hh.extractQueryValue(Yi(this,Ry,"f").query())}getAppConfig(e,t){return hh.extractQueryValue(Yi(this,ky,"f").query({appKey:e,tag:t}).pipe(wr(r=>{const{cause:a}=r;throw a instanceof vh?a:a instanceof YT?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;Yi(this,bd,"f").next(t)}clearCurrentApp(){Yi(this,bd,"f").next(null)}createApp(e){return console.warn(),new vV(e,{provider:this,event:Yi(this,yE,"f")})}dispose(){Yi(this,Sd,"f").unsubscribe()}}Ry=new WeakMap,ky=new WeakMap,bd=new WeakMap,Sd=new WeakMap,yE=new WeakMap;var gV=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})};const WR="app",yV={name:WR,configure:()=>new _V,initialize:n=>gV(void 0,void 0,void 0,function*(){const e=yield n.config.createConfig(n),t=yield n.requireInstance("event").catch(()=>{});return new mV({config:e,event:t})}),dispose:n=>{n.instance.dispose()}};var _E=globalThis&&globalThis.__awaiter||function(n,e,t,r){function a(l){return l instanceof t?l:new t(function(c){c(l)})}return new(t||(t=Promise))(function(l,c){function f(y){try{m(r.next(y))}catch(E){c(E)}}function p(y){try{m(r.throw(y))}catch(E){c(E)}}function m(y){y.done?l(y.value):a(y.value).then(f,p)}m((r=r.apply(n,e||[])).next())})},oP=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)},CE;class _V{constructor(){this.defaultExpireTime=1*60*1e3,CE.set(this,[])}addConfigBuilder(e){oP(this,CE,"f").push(e)}_createHttpClient(e){return _E(this,void 0,void 0,function*(){const t=yield e.requireInstance("http");if(t.hasClient(WR))return t.createClient(WR);{const r=yield e.requireInstance("serviceDiscovery");try{return yield r.createClient("app")}catch{return yield r.createClient("portal")}}})}createConfig(e){var t;return _E(this,void 0,void 0,function*(){const r=yield oP(this,CE,"f").reduce((a,l)=>_E(this,void 0,void 0,function*(){const c=new Vq(e,yield a);return yield Promise.resolve(l(c)),Object.assign(a,c.config)}),Promise.resolve({}));return(t=r.client)!==null&&t!==void 0||(r.client=yield(()=>_E(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:c})=>a.json$(`/api/apps/${l}/config${c?`?tag=${c}`:""}`)},key:l=>JSON.stringify(l),expire:this.defaultExpireTime}}}))()),r})}}CE=new WeakMap;const CV=(n,e)=>{n.addConfig({module:yV,configure:t=>{e&&t.addConfigBuilder(e)}})};class EV{}/**
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 Nr(){return Nr=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},Nr.apply(this,arguments)}var Mr;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(Mr||(Mr={}));const iP="popstate";function wV(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),c=Mr.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,O){A===void 0&&(A=null);let F=mh(a?m().pathname:"/",T,A,O);return Qi(F.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(T)),F}function E(T){return typeof T=="string"?T:ac(T)}return{get index(){return l},get action(){return c},get location(){return m()},createHref:E,createURL(T){return new URL(E(T),"http://localhost")},encodeLocation(T){let A=typeof T=="string"?dl(T):T;return{pathname:A.pathname||"",search:A.search||"",hash:A.hash||""}},push(T,A){c=Mr.Push;let O=y(T,A);l+=1,a.splice(l,a.length,O),r&&f&&f({action:c,location:O,delta:1})},replace(T,A){c=Mr.Replace;let O=y(T,A);a[l]=O,r&&f&&f({action:c,location:O,delta:0})},go(T){c=Mr.Pop;let A=p(l+T),O=a[A];l=A,f&&f({action:c,location:O,delta:T})},listen(T){return f=T,()=>{f=null}}}}function bV(n){n===void 0&&(n={});function e(r,a){let{pathname:l,search:c,hash:f}=r.location;return mh("",{pathname:l,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(r,a){return typeof a=="string"?a:ac(a)}return sP(e,t,null,n)}function SV(n){n===void 0&&(n={});function e(a,l){let{pathname:c="/",search:f="",hash:p=""}=dl(a.location.hash.substr(1));return!c.startsWith("/")&&!c.startsWith(".")&&(c="/"+c),mh("",{pathname:c,search:f,hash:p},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function t(a,l){let c=a.document.querySelector("base"),f="";if(c&&c.getAttribute("href")){let p=a.location.href,m=p.indexOf("#");f=m===-1?p:p.slice(0,m)}return f+"#"+(typeof l=="string"?l:ac(l))}function r(a,l){Qi(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(l)+")")}return sP(e,t,r,n)}function Lt(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function Qi(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function TV(){return Math.random().toString(36).substr(2,8)}function aP(n,e){return{usr:n.state,key:n.key,idx:e}}function mh(n,e,t,r){return t===void 0&&(t=null),Nr({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?dl(e):e,{state:t,key:e&&e.key||r||TV()})}function ac(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 dl(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 sP(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:l=!1}=r,c=a.history,f=Mr.Pop,p=null,m=y();m==null&&(m=0,c.replaceState(Nr({},c.state,{idx:m}),""));function y(){return(c.state||{idx:null}).idx}function E(){f=Mr.Pop;let F=y(),H=F==null?null:F-m;m=F,p&&p({action:f,location:O.location,delta:H})}function S(F,H){f=Mr.Push;let D=mh(O.location,F,H);t&&t(D,F),m=y()+1;let q=aP(D,m),U=O.createHref(D);try{c.pushState(q,"",U)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;a.location.assign(U)}l&&p&&p({action:f,location:O.location,delta:1})}function T(F,H){f=Mr.Replace;let D=mh(O.location,F,H);t&&t(D,F),m=y();let q=aP(D,m),U=O.createHref(D);c.replaceState(q,"",U),l&&p&&p({action:f,location:O.location,delta:0})}function A(F){let H=a.location.origin!=="null"?a.location.origin:a.location.href,D=typeof F=="string"?F:ac(F);return Lt(H,"No window.location.(origin|href) available to create URL for href: "+D),new URL(D,H)}let O={get action(){return f},get location(){return n(a,c)},listen(F){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(iP,E),p=F,()=>{a.removeEventListener(iP,E),p=null}},createHref(F){return e(a,F)},createURL:A,encodeLocation(F){let H=A(F);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:S,replace:T,go(F){return c.go(F)}};return O}var mo;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(mo||(mo={}));const RV=new Set(["lazy","caseSensitive","path","id","index","children"]);function kV(n){return n.index===!0}function YR(n,e,t,r){return t===void 0&&(t=[]),r===void 0&&(r={}),n.map((a,l)=>{let c=[...t,l],f=typeof a.id=="string"?a.id:c.join("-");if(Lt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Lt(!r[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),kV(a)){let p=Nr({},a,e(a),{id:f});return r[f]=p,p}else{let p=Nr({},a,e(a),{id:f,children:void 0});return r[f]=p,a.children&&(p.children=YR(a.children,e,c,r)),p}})}function Cv(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?dl(e):e,a=Td(r.pathname||"/",t);if(a==null)return null;let l=lP(n);AV(l);let c=null;for(let f=0;c==null&&f<l.length;++f)c=UV(l[f],HV(a));return c}function lP(n,e,t,r){e===void 0&&(e=[]),t===void 0&&(t=[]),r===void 0&&(r="");let a=(l,c,f)=>{let p={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};p.relativePath.startsWith("/")&&(Lt(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=sc([r,p.relativePath]),y=t.concat(p);l.children&&l.children.length>0&&(Lt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),lP(l.children,e,y,m)),!(l.path==null&&!l.index)&&e.push({path:m,score:DV(m,l.index),routesMeta:y})};return n.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))a(l,c);else for(let p of cP(l.path))a(l,c,p)}),e}function cP(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 c=cP(r.join("/")),f=[];return f.push(...c.map(p=>p===""?l:[l,p].join("/"))),a&&f.push(...c),f.map(p=>n.startsWith("/")&&p===""?"/":p)}function AV(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:LV(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const xV=/^:\w+$/,IV=3,OV=2,NV=1,MV=10,PV=-2,uP=n=>n==="*";function DV(n,e){let t=n.split("/"),r=t.length;return t.some(uP)&&(r+=PV),e&&(r+=OV),t.filter(a=>!uP(a)).reduce((a,l)=>a+(xV.test(l)?IV:l===""?NV:MV),r)}function LV(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 UV(n,e){let{routesMeta:t}=n,r={},a="/",l=[];for(let c=0;c<t.length;++c){let f=t[c],p=c===t.length-1,m=a==="/"?e:e.slice(a.length)||"/",y=FV({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:sc([a,y.pathname]),pathnameBase:qV(sc([a,y.pathnameBase])),route:E}),y.pathnameBase!=="/"&&(a=sc([a,y.pathnameBase]))}return l}function FV(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,r]=$V(n.path,n.caseSensitive,n.end),a=e.match(t);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:r.reduce((m,y,E)=>{if(y==="*"){let S=f[E]||"";c=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}return m[y]=jV(f[E]||"",y),m},{}),pathname:l,pathnameBase:c,pattern:n}}function $V(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),Qi(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,(c,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 HV(n){try{return decodeURI(n)}catch(e){return Qi(!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 jV(n,e){try{return decodeURIComponent(n)}catch(t){return Qi(!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 Td(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 zV(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?dl(n):n;return{pathname:t?t.startsWith("/")?t:BV(t,e):e,search:VV(r),hash:KV(a)}}function BV(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 QR(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 EE(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function XR(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=dl(n):(a=Nr({},n),Lt(!a.pathname||!a.pathname.includes("?"),QR("?","pathname","search",a)),Lt(!a.pathname||!a.pathname.includes("#"),QR("#","pathname","hash",a)),Lt(!a.search||!a.search.includes("#"),QR("#","search","hash",a)));let l=n===""||a.pathname==="",c=l?"/":a.pathname,f;if(r||c==null)f=t;else{let E=e.length-1;if(c.startsWith("..")){let S=c.split("/");for(;S[0]==="..";)S.shift(),E-=1;a.pathname=S.join("/")}f=E>=0?e[E]:"/"}let p=zV(a,f),m=c&&c!=="/"&&c.endsWith("/"),y=(l||c===".")&&t.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}const sc=n=>n.join("/").replace(/\/\/+/g,"/"),qV=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),VV=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,KV=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;class dP{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 fP(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const hP=["post","put","patch","delete"],GV=new Set(hP),WV=["get",...hP],YV=new Set(WV),QV=new Set([301,302,303,307,308]),XV=new Set([307,308]),JR={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},JV={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ay={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},pP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZV=n=>({hasErrorBoundary:!!n.hasErrorBoundary});function e8(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;Lt(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=ZV;let l={},c=YR(n.routes,a,void 0,l),f,p=n.basename||"/",m=Nr({v7_normalizeFormMethod:!1,v7_prependBasename:!1},n.future),y=null,E=new Set,S=null,T=null,A=null,O=n.hydrationData!=null,F=Cv(c,n.history.location,p),H=null;if(F==null){let re=Os(404,{pathname:n.history.location.pathname}),{matches:se,route:Te}=bP(c);F=se,H={[Te.id]:re}}let D=!F.some(re=>re.route.lazy)&&(!F.some(re=>re.route.loader)||n.hydrationData!=null),q,U={historyAction:n.history.action,location:n.history.location,matches:F,initialized:D,navigation:JR,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||H,fetchers:new Map,blockers:new Map},V=Mr.Pop,te=!1,Z,Ne=!1,Ze=!1,it=[],Me=[],ze=new Map,ee=0,J=-1,ye=new Map,me=new Set,he=new Map,G=new Map,ge=new Map,$=!1;function ne(){return y=n.history.listen(re=>{let{action:se,location:Te,delta:qe}=re;if($){$=!1;return}Qi(ge.size===0||qe!=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 gt=nr({currentLocation:U.location,nextLocation:Te,historyAction:se});if(gt&&qe!=null){$=!0,n.history.go(qe*-1),Co(gt,{state:"blocked",location:Te,proceed(){Co(gt,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),n.history.go(qe)},reset(){let Je=new Map(U.blockers);Je.set(gt,Ay),Le({blockers:Je})}});return}return wt(se,Te)}),U.initialized||wt(Mr.Pop,U.location),q}function ke(){y&&y(),E.clear(),Z&&Z.abort(),U.fetchers.forEach((re,se)=>No(se)),U.blockers.forEach((re,se)=>oo(se))}function lt(re){return E.add(re),()=>E.delete(re)}function Le(re){U=Nr({},U,re),E.forEach(se=>se(U))}function xt(re,se){var Te,qe;let gt=U.actionData!=null&&U.navigation.formMethod!=null&&fl(U.navigation.formMethod)&&U.navigation.state==="loading"&&((Te=re.state)==null?void 0:Te._isRedirect)!==!0,Je;se.actionData?Object.keys(se.actionData).length>0?Je=se.actionData:Je=null:gt?Je=U.actionData:Je=null;let yt=se.loaderData?wP(U.loaderData,se.loaderData,se.matches||[],se.errors):U.loaderData,Ke=U.blockers;Ke.size>0&&(Ke=new Map(Ke),Ke.forEach((on,Dn)=>Ke.set(Dn,Ay)));let Be=te===!0||U.navigation.formMethod!=null&&fl(U.navigation.formMethod)&&((qe=re.state)==null?void 0:qe._isRedirect)!==!0;f&&(c=f,f=void 0),Ne||V===Mr.Pop||(V===Mr.Push?n.history.push(re,re.state):V===Mr.Replace&&n.history.replace(re,re.state)),Le(Nr({},se,{actionData:Je,loaderData:yt,historyAction:V,location:re,initialized:!0,navigation:JR,revalidation:"idle",restoreScrollPosition:mt(re,se.matches||U.matches),preventScrollReset:Be,blockers:Ke})),V=Mr.Pop,te=!1,Ne=!1,Ze=!1,it=[],Me=[]}async function Ut(re,se){if(typeof re=="number"){n.history.go(re);return}let Te=ZR(U.location,U.matches,p,m.v7_prependBasename,re,se==null?void 0:se.fromRouteId,se==null?void 0:se.relative),{path:qe,submission:gt,error:Je}=vP(m.v7_normalizeFormMethod,!1,Te,se),yt=U.location,Ke=mh(U.location,qe,se&&se.state);Ke=Nr({},Ke,n.history.encodeLocation(Ke));let Be=se&&se.replace!=null?se.replace:void 0,on=Mr.Push;Be===!0?on=Mr.Replace:Be===!1||gt!=null&&fl(gt.formMethod)&&gt.formAction===U.location.pathname+U.location.search&&(on=Mr.Replace);let Dn=se&&"preventScrollReset"in se?se.preventScrollReset===!0:void 0,pn=nr({currentLocation:yt,nextLocation:Ke,historyAction:on});if(pn){Co(pn,{state:"blocked",location:Ke,proceed(){Co(pn,{state:"proceeding",proceed:void 0,reset:void 0,location:Ke}),Ut(re,se)},reset(){let Bn=new Map(U.blockers);Bn.set(pn,Ay),Le({blockers:Bn})}});return}return await wt(on,Ke,{submission:gt,pendingError:Je,preventScrollReset:Dn,replace:se&&se.replace})}function Bt(){if(lr(),Le({revalidation:"loading"}),U.navigation.state!=="submitting"){if(U.navigation.state==="idle"){wt(U.historyAction,U.location,{startUninterruptedRevalidation:!0});return}wt(V||U.historyAction,U.navigation.location,{overrideNavigation:U.navigation})}}async function wt(re,se,Te){Z&&Z.abort(),Z=null,V=re,Ne=(Te&&Te.startUninterruptedRevalidation)===!0,Ve(U.location,U.matches),te=(Te&&Te.preventScrollReset)===!0;let qe=f||c,gt=Te&&Te.overrideNavigation,Je=Cv(qe,se,p);if(!Je){let Bn=Os(404,{pathname:se.pathname}),{matches:cr,route:Ko}=bP(qe);Eo(),xt(se,{matches:cr,loaderData:{},errors:{[Ko.id]:Bn}});return}if(U.initialized&&!Ze&&i8(U.location,se)&&!(Te&&Te.submission&&fl(Te.submission.formMethod))){xt(se,{matches:Je});return}Z=new AbortController;let yt=Iy(n.history,se,Z.signal,Te&&Te.submission),Ke,Be;if(Te&&Te.pendingError)Be={[Ev(Je).route.id]:Te.pendingError};else if(Te&&Te.submission&&fl(Te.submission.formMethod)){let Bn=await gn(yt,se,Te.submission,Je,{replace:Te.replace});if(Bn.shortCircuited)return;Ke=Bn.pendingActionData,Be=Bn.pendingActionError,gt=wE(se,Te.submission),yt=new Request(yt.url,{signal:yt.signal})}let{shortCircuited:on,loaderData:Dn,errors:pn}=await Gr(yt,se,Je,gt,Te&&Te.submission,Te&&Te.fetcherSubmission,Te&&Te.replace,Ke,Be);on||(Z=null,xt(se,Nr({matches:Je},Ke?{actionData:Ke}:{},{loaderData:Dn,errors:pn})))}async function gn(re,se,Te,qe,gt){gt===void 0&&(gt={}),lr();let Je=u8(se,Te);Le({navigation:Je});let yt,Ke=n1(qe,se);if(!Ke.route.action&&!Ke.route.lazy)yt={type:mo.error,error:Os(405,{method:re.method,pathname:se.pathname,routeId:Ke.route.id})};else if(yt=await xy("action",re,Ke,qe,l,a,p),re.signal.aborted)return{shortCircuited:!0};if(wv(yt)){let Be;return gt&&gt.replace!=null?Be=gt.replace:Be=yt.location===U.location.pathname+U.location.search,await sr(U,yt,{submission:Te,replace:Be}),{shortCircuited:!0}}if(Oy(yt)){let Be=Ev(qe,Ke.route.id);return(gt&&gt.replace)!==!0&&(V=Mr.Push),{pendingActionData:{},pendingActionError:{[Be.route.id]:yt.error}}}if(gh(yt))throw Os(400,{type:"defer-action"});return{pendingActionData:{[Ke.route.id]:yt.data}}}async function Gr(re,se,Te,qe,gt,Je,yt,Ke,Be){let on=qe||wE(se,gt),Dn=gt||Je||AP(on),pn=f||c,[Bn,cr]=mP(n.history,U,Te,Dn,se,Ze,it,Me,he,me,pn,p,Ke,Be);if(Eo(Ce=>!(Te&&Te.some($e=>$e.route.id===Ce))||Bn&&Bn.some($e=>$e.route.id===Ce)),J=++ee,Bn.length===0&&cr.length===0){let Ce=Vo();return xt(se,Nr({matches:Te,loaderData:{},errors:Be||null},Ke?{actionData:Ke}:{},Ce?{fetchers:new Map(U.fetchers)}:{})),{shortCircuited:!0}}if(!Ne){cr.forEach($e=>{let We=U.fetchers.get($e.key),Ht=Ny(void 0,We?We.data:void 0);U.fetchers.set($e.key,Ht)});let Ce=Ke||U.actionData;Le(Nr({navigation:on},Ce?Object.keys(Ce).length===0?{actionData:null}:{actionData:Ce}:{},cr.length>0?{fetchers:new Map(U.fetchers)}:{}))}cr.forEach(Ce=>{ze.has(Ce.key)&&Xn(Ce.key),Ce.controller&&ze.set(Ce.key,Ce.controller)});let Ko=()=>cr.forEach(Ce=>Xn(Ce.key));Z&&Z.signal.addEventListener("abort",Ko);let{results:vi,loaderResults:wo,fetcherResults:Xi}=await Lr(U.matches,Te,Bn,cr,re);if(re.signal.aborted)return{shortCircuited:!0};Z&&Z.signal.removeEventListener("abort",Ko),cr.forEach(Ce=>ze.delete(Ce.key));let Sr=SP(vi);if(Sr){if(Sr.idx>=Bn.length){let Ce=cr[Sr.idx-Bn.length].key;me.add(Ce)}return await sr(U,Sr.result,{replace:yt}),{shortCircuited:!0}}let{loaderData:io,errors:ao}=EP(U,Te,Bn,wo,Be,cr,Xi,G);G.forEach((Ce,$e)=>{Ce.subscribe(We=>{(We||Ce.done)&&G.delete($e)})});let Go=Vo(),Ji=_o(J),z=Go||Ji||cr.length>0;return Nr({loaderData:io,errors:ao},z?{fetchers:new Map(U.fetchers)}:{})}function Wn(re){return U.fetchers.get(re)||JV}function hi(re,se,Te,qe){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.");ze.has(re)&&Xn(re);let gt=f||c,Je=ZR(U.location,U.matches,p,m.v7_prependBasename,Te,se,qe==null?void 0:qe.relative),yt=Cv(gt,Je,p);if(!yt){go(re,se,Os(404,{pathname:Je}));return}let{path:Ke,submission:Be,error:on}=vP(m.v7_normalizeFormMethod,!0,Je,qe);if(on){go(re,se,on);return}let Dn=n1(yt,Ke);if(te=(qe&&qe.preventScrollReset)===!0,Be&&fl(Be.formMethod)){ar(re,se,Ke,Dn,yt,Be);return}he.set(re,{routeId:se,path:Ke}),ro(re,se,Ke,Dn,yt,Be)}async function ar(re,se,Te,qe,gt,Je){if(lr(),he.delete(re),!qe.route.action&&!qe.route.lazy){let Tt=Os(405,{method:Je.formMethod,pathname:Te,routeId:se});go(re,se,Tt);return}let yt=U.fetchers.get(re),Ke=d8(Je,yt);U.fetchers.set(re,Ke),Le({fetchers:new Map(U.fetchers)});let Be=new AbortController,on=Iy(n.history,Te,Be.signal,Je);ze.set(re,Be);let Dn=ee,pn=await xy("action",on,qe,gt,l,a,p);if(on.signal.aborted){ze.get(re)===Be&&ze.delete(re);return}if(wv(pn))if(ze.delete(re),J>Dn){let Tt=bv(void 0);U.fetchers.set(re,Tt),Le({fetchers:new Map(U.fetchers)});return}else{me.add(re);let Tt=Ny(Je);return U.fetchers.set(re,Tt),Le({fetchers:new Map(U.fetchers)}),sr(U,pn,{submission:Je,isFetchActionRedirect:!0})}if(Oy(pn)){go(re,se,pn.error);return}if(gh(pn))throw Os(400,{type:"defer-action"});let Bn=U.navigation.location||U.location,cr=Iy(n.history,Bn,Be.signal),Ko=f||c,vi=U.navigation.state!=="idle"?Cv(Ko,U.navigation.location,p):U.matches;Lt(vi,"Didn't find any matches after fetcher action");let wo=++ee;ye.set(re,wo);let Xi=Ny(Je,pn.data);U.fetchers.set(re,Xi);let[Sr,io]=mP(n.history,U,vi,Je,Bn,Ze,it,Me,he,me,Ko,p,{[qe.route.id]:pn.data},void 0);io.filter(Tt=>Tt.key!==re).forEach(Tt=>{let Ft=Tt.key,bt=U.fetchers.get(Ft),Ur=Ny(void 0,bt?bt.data:void 0);U.fetchers.set(Ft,Ur),ze.has(Ft)&&Xn(Ft),Tt.controller&&ze.set(Ft,Tt.controller)}),Le({fetchers:new Map(U.fetchers)});let ao=()=>io.forEach(Tt=>Xn(Tt.key));Be.signal.addEventListener("abort",ao);let{results:Go,loaderResults:Ji,fetcherResults:z}=await Lr(U.matches,vi,Sr,io,cr);if(Be.signal.aborted)return;Be.signal.removeEventListener("abort",ao),ye.delete(re),ze.delete(re),io.forEach(Tt=>ze.delete(Tt.key));let Ce=SP(Go);if(Ce){if(Ce.idx>=Sr.length){let Tt=io[Ce.idx-Sr.length].key;me.add(Tt)}return sr(U,Ce.result)}let{loaderData:$e,errors:We}=EP(U,U.matches,Sr,Ji,void 0,io,z,G);if(U.fetchers.has(re)){let Tt=bv(pn.data);U.fetchers.set(re,Tt)}let Ht=_o(wo);U.navigation.state==="loading"&&wo>J?(Lt(V,"Expected pending action"),Z&&Z.abort(),xt(U.navigation.location,{matches:vi,loaderData:$e,errors:We,fetchers:new Map(U.fetchers)})):(Le(Nr({errors:We,loaderData:wP(U.loaderData,$e,vi,We)},Ht||io.length>0?{fetchers:new Map(U.fetchers)}:{})),Ze=!1)}async function ro(re,se,Te,qe,gt,Je){let yt=U.fetchers.get(re),Ke=Ny(Je,yt?yt.data:void 0);U.fetchers.set(re,Ke),Le({fetchers:new Map(U.fetchers)});let Be=new AbortController,on=Iy(n.history,Te,Be.signal);ze.set(re,Be);let Dn=ee,pn=await xy("loader",on,qe,gt,l,a,p);if(gh(pn)&&(pn=await kP(pn,on.signal,!0)||pn),ze.get(re)===Be&&ze.delete(re),on.signal.aborted)return;if(wv(pn))if(J>Dn){let cr=bv(void 0);U.fetchers.set(re,cr),Le({fetchers:new Map(U.fetchers)});return}else{me.add(re),await sr(U,pn);return}if(Oy(pn)){let cr=Ev(U.matches,se);U.fetchers.delete(re),Le({fetchers:new Map(U.fetchers),errors:{[cr.route.id]:pn.error}});return}Lt(!gh(pn),"Unhandled fetcher deferred data");let Bn=bv(pn.data);U.fetchers.set(re,Bn),Le({fetchers:new Map(U.fetchers)})}async function sr(re,se,Te){let{submission:qe,replace:gt,isFetchActionRedirect:Je}=Te===void 0?{}:Te;se.revalidate&&(Ze=!0);let yt=mh(re.location,se.location,Nr({_isRedirect:!0},Je?{_isFetchActionRedirect:!0}:{}));if(Lt(yt,"Expected a location on the redirect navigation"),t){let on=!1;if(se.reloadDocument)on=!0;else if(pP.test(se.location)){const Dn=n.history.createURL(se.location);on=Dn.origin!==e.location.origin||Td(Dn.pathname,p)==null}if(on){gt?e.location.replace(se.location):e.location.assign(se.location);return}}Z=null;let Ke=gt===!0?Mr.Replace:Mr.Push,Be=qe||AP(re.navigation);if(XV.has(se.status)&&Be&&fl(Be.formMethod))await wt(Ke,yt,{submission:Nr({},Be,{formAction:se.location}),preventScrollReset:te});else if(Je)await wt(Ke,yt,{overrideNavigation:wE(yt),fetcherSubmission:Be,preventScrollReset:te});else{let on=wE(yt,Be);await wt(Ke,yt,{overrideNavigation:on,preventScrollReset:te})}}async function Lr(re,se,Te,qe,gt){let Je=await Promise.all([...Te.map(Be=>xy("loader",gt,Be,se,l,a,p)),...qe.map(Be=>Be.matches&&Be.match&&Be.controller?xy("loader",Iy(n.history,Be.path,Be.controller.signal),Be.match,Be.matches,l,a,p):{type:mo.error,error:Os(404,{pathname:Be.path})})]),yt=Je.slice(0,Te.length),Ke=Je.slice(Te.length);return await Promise.all([RP(re,Te,yt,yt.map(()=>gt.signal),!1,U.loaderData),RP(re,qe.map(Be=>Be.match),Ke,qe.map(Be=>Be.controller?Be.controller.signal:null),!0)]),{results:Je,loaderResults:yt,fetcherResults:Ke}}function lr(){Ze=!0,it.push(...Eo()),he.forEach((re,se)=>{ze.has(se)&&(Me.push(se),Xn(se))})}function go(re,se,Te){let qe=Ev(U.matches,se);No(re),Le({errors:{[qe.route.id]:Te},fetchers:new Map(U.fetchers)})}function No(re){let se=U.fetchers.get(re);ze.has(re)&&!(se&&se.state==="loading"&&ye.has(re))&&Xn(re),he.delete(re),ye.delete(re),me.delete(re),U.fetchers.delete(re)}function Xn(re){let se=ze.get(re);Lt(se,"Expected fetch controller: "+re),se.abort(),ze.delete(re)}function yo(re){for(let se of re){let Te=Wn(se),qe=bv(Te.data);U.fetchers.set(se,qe)}}function Vo(){let re=[],se=!1;for(let Te of me){let qe=U.fetchers.get(Te);Lt(qe,"Expected fetcher: "+Te),qe.state==="loading"&&(me.delete(Te),re.push(Te),se=!0)}return yo(re),se}function _o(re){let se=[];for(let[Te,qe]of ye)if(qe<re){let gt=U.fetchers.get(Te);Lt(gt,"Expected fetcher: "+Te),gt.state==="loading"&&(Xn(Te),ye.delete(Te),se.push(Te))}return yo(se),se.length>0}function Ii(re,se){let Te=U.blockers.get(re)||Ay;return ge.get(re)!==se&&ge.set(re,se),Te}function oo(re){U.blockers.delete(re),ge.delete(re)}function Co(re,se){let Te=U.blockers.get(re)||Ay;Lt(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 qe=new Map(U.blockers);qe.set(re,se),Le({blockers:qe})}function nr(re){let{currentLocation:se,nextLocation:Te,historyAction:qe}=re;if(ge.size===0)return;ge.size>1&&Qi(!1,"A router only supports one blocker at a time");let gt=Array.from(ge.entries()),[Je,yt]=gt[gt.length-1],Ke=U.blockers.get(Je);if(!(Ke&&Ke.state==="proceeding")&&yt({currentLocation:se,nextLocation:Te,historyAction:qe}))return Je}function Eo(re){let se=[];return G.forEach((Te,qe)=>{(!re||re(qe))&&(Te.cancel(),se.push(qe),G.delete(qe))}),se}function Ha(re,se,Te){if(S=re,A=se,T=Te||null,!O&&U.navigation===JR){O=!0;let qe=mt(U.location,U.matches);qe!=null&&Le({restoreScrollPosition:qe})}return()=>{S=null,A=null,T=null}}function pi(re,se){return T&&T(re,se.map(qe=>c8(qe,U.loaderData)))||re.key}function Ve(re,se){if(S&&A){let Te=pi(re,se);S[Te]=A()}}function mt(re,se){if(S){let Te=pi(re,se),qe=S[Te];if(typeof qe=="number")return qe}return null}function Xt(re){l={},f=YR(re,a,void 0,l)}return q={get basename(){return p},get state(){return U},get routes(){return c},initialize:ne,subscribe:lt,enableScrollRestoration:Ha,navigate:Ut,fetch:hi,revalidate:Bt,createHref:re=>n.history.createHref(re),encodeLocation:re=>n.history.encodeLocation(re),getFetcher:Wn,deleteFetcher:No,dispose:ke,getBlocker:Ii,deleteBlocker:oo,_internalFetchControllers:ze,_internalActiveDeferreds:G,_internalSetRoutes:Xt},q}function t8(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function ZR(n,e,t,r,a,l,c){let f,p;if(l!=null&&c!=="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=XR(a||".",EE(f).map(y=>y.pathnameBase),Td(n.pathname,t)||n.pathname,c==="path");return a==null&&(m.search=n.search,m.hash=n.hash),(a==null||a===""||a===".")&&p&&p.route.index&&!t1(m.search)&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r&&t!=="/"&&(m.pathname=m.pathname==="/"?t:sc([t,m.pathname])),ac(m)}function vP(n,e,t,r){if(!r||!t8(r))return{path:t};if(r.formMethod&&!l8(r.formMethod))return{path:t,error:Os(405,{method:r.formMethod})};let a=()=>({path:t,error:Os(400,{type:"invalid-body"})}),l=r.formMethod||"get",c=n?l.toUpperCase():l.toLowerCase(),f=TP(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!fl(c))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[O,F]=A;return""+T+O+"="+F+`
278
+ `},""):String(r.body);return{path:t,submission:{formMethod:c,formAction:f,formEncType:r.formEncType,formData:void 0,json:void 0,text:S}}}else if(r.formEncType==="application/json"){if(!fl(c))return a();try{let S=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:c,formAction:f,formEncType:r.formEncType,formData:void 0,json:S,text:void 0}}}catch{return a()}}}Lt(typeof FormData=="function","FormData is not available in this environment");let p,m;if(r.formData)p=e1(r.formData),m=r.formData;else if(r.body instanceof FormData)p=e1(r.body),m=r.body;else if(r.body instanceof URLSearchParams)p=r.body,m=CP(p);else if(r.body==null)p=new URLSearchParams,m=new FormData;else try{p=new URLSearchParams(r.body),m=CP(p)}catch{return a()}let y={formMethod:c,formAction:f,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(fl(y.formMethod))return{path:t,submission:y};let E=dl(t);return e&&E.search&&t1(E.search)&&p.append("index",""),E.search="?"+p,{path:ac(E),submission:y}}function n8(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 mP(n,e,t,r,a,l,c,f,p,m,y,E,S,T){let A=T?Object.values(T)[0]:S?Object.values(S)[0]:void 0,O=n.createURL(e.location),F=n.createURL(a),H=T?Object.keys(T)[0]:void 0,q=n8(t,H).filter((V,te)=>{if(V.route.lazy)return!0;if(V.route.loader==null)return!1;if(r8(e.loaderData,e.matches[te],V)||c.some(Ze=>Ze===V.route.id))return!0;let Z=e.matches[te],Ne=V;return yP(V,Nr({currentUrl:O,currentParams:Z.params,nextUrl:F,nextParams:Ne.params},r,{actionResult:A,defaultShouldRevalidate:l||O.pathname+O.search===F.pathname+F.search||O.search!==F.search||gP(Z,Ne)}))}),U=[];return p.forEach((V,te)=>{if(!t.some(Me=>Me.route.id===V.routeId))return;let Z=Cv(y,V.path,E);if(!Z){U.push({key:te,routeId:V.routeId,path:V.path,matches:null,match:null,controller:null});return}let Ne=e.fetchers.get(te),Ze=n1(Z,V.path),it=!1;m.has(te)?it=!1:f.includes(te)?it=!0:Ne&&Ne.state!=="idle"&&Ne.data===void 0?it=l:it=yP(Ze,Nr({currentUrl:O,currentParams:e.matches[e.matches.length-1].params,nextUrl:F,nextParams:t[t.length-1].params},r,{actionResult:A,defaultShouldRevalidate:l})),it&&U.push({key:te,routeId:V.routeId,path:V.path,matches:Z,match:Ze,controller:new AbortController})}),[q,U]}function r8(n,e,t){let r=!e||t.route.id!==e.route.id,a=n[t.route.id]===void 0;return r||a}function gP(n,e){let t=n.route.path;return n.pathname!==e.pathname||t!=null&&t.endsWith("*")&&n.params["*"]!==e.params["*"]}function yP(n,e){if(n.route.shouldRevalidate){let t=n.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function _P(n,e,t){if(!n.lazy)return;let r=await n.lazy();if(!n.lazy)return;let a=t[n.id];Lt(a,"No route found in manifest");let l={};for(let c in r){let p=a[c]!==void 0&&c!=="hasErrorBoundary";Qi(!p,'Route "'+a.id+'" has a static property "'+c+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+c+'" will be ignored.')),!p&&!RV.has(c)&&(l[c]=r[c])}Object.assign(a,l),Object.assign(a,Nr({},e(a),{lazy:void 0}))}async function xy(n,e,t,r,a,l,c,f){f===void 0&&(f={});let p,m,y,E=A=>{let O,F=new Promise((H,D)=>O=D);return y=()=>O(),e.signal.addEventListener("abort",y),Promise.race([A({request:e,params:t.params,context:f.requestContext}),F])};try{let A=t.route[n];if(t.route.lazy)if(A)m=(await Promise.all([E(A),_P(t.route,l,a)]))[0];else if(await _P(t.route,l,a),A=t.route[n],A)m=await E(A);else if(n==="action"){let O=new URL(e.url),F=O.pathname+O.search;throw Os(405,{method:e.method,pathname:F,routeId:t.route.id})}else return{type:mo.data,data:void 0};else if(A)m=await E(A);else{let O=new URL(e.url),F=O.pathname+O.search;throw Os(404,{pathname:F})}Lt(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=mo.error,m=A}finally{y&&e.signal.removeEventListener("abort",y)}if(s8(m)){let A=m.status;if(QV.has(A)){let H=m.headers.get("Location");if(Lt(H,"Redirects returned/thrown from loaders/actions must have a Location header"),!pP.test(H))H=ZR(new URL(e.url),r.slice(0,r.indexOf(t)+1),c,!0,H);else if(!f.isStaticRequest){let D=new URL(e.url),q=H.startsWith("//")?new URL(D.protocol+H):new URL(H),U=Td(q.pathname,c)!=null;q.origin===D.origin&&U&&(H=q.pathname+q.search+q.hash)}if(f.isStaticRequest)throw m.headers.set("Location",H),m;return{type:mo.redirect,status:A,location:H,revalidate:m.headers.get("X-Remix-Revalidate")!==null,reloadDocument:m.headers.get("X-Remix-Reload-Document")!==null}}if(f.isRouteRequest)throw{type:p===mo.error?mo.error:mo.data,response:m};let O,F=m.headers.get("Content-Type");return F&&/\bapplication\/json\b/.test(F)?O=await m.json():O=await m.text(),p===mo.error?{type:p,error:new dP(A,m.statusText,O),headers:m.headers}:{type:mo.data,data:O,statusCode:m.status,headers:m.headers}}if(p===mo.error)return{type:p,error:m};if(a8(m)){var S,T;return{type:mo.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:mo.data,data:m}}function Iy(n,e,t,r){let a=n.createURL(TP(e)).toString(),l={signal:t};if(r&&fl(r.formMethod)){let{formMethod:c,formEncType:f}=r;l.method=c.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=e1(r.formData):l.body=r.formData}return new Request(a,l)}function e1(n){let e=new URLSearchParams;for(let[t,r]of n.entries())e.append(t,typeof r=="string"?r:r.name);return e}function CP(n){let e=new FormData;for(let[t,r]of n.entries())e.append(t,r);return e}function o8(n,e,t,r,a){let l={},c=null,f,p=!1,m={};return t.forEach((y,E)=>{let S=e[E].route.id;if(Lt(!wv(y),"Cannot handle redirect results in processLoaderData"),Oy(y)){let T=Ev(n,S),A=y.error;r&&(A=Object.values(r)[0],r=void 0),c=c||{},c[T.route.id]==null&&(c[T.route.id]=A),l[S]=void 0,p||(p=!0,f=fP(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&&(c=r,l[Object.keys(r)[0]]=void 0),{loaderData:l,errors:c,statusCode:f||200,loaderHeaders:m}}function EP(n,e,t,r,a,l,c,f){let{loaderData:p,errors:m}=o8(e,t,r,a,f);for(let y=0;y<l.length;y++){let{key:E,match:S,controller:T}=l[y];Lt(c!==void 0&&c[y]!==void 0,"Did not find corresponding fetcher result");let A=c[y];if(!(T&&T.signal.aborted))if(Oy(A)){let O=Ev(n.matches,S==null?void 0:S.route.id);m&&m[O.route.id]||(m=Nr({},m,{[O.route.id]:A.error})),n.fetchers.delete(E)}else if(wv(A))Lt(!1,"Unhandled fetcher revalidation redirect");else if(gh(A))Lt(!1,"Unhandled fetcher deferred data");else{let O=bv(A.data);n.fetchers.set(E,O)}}return{loaderData:p,errors:m}}function wP(n,e,t,r){let a=Nr({},e);for(let l of t){let c=l.route.id;if(e.hasOwnProperty(c)?e[c]!==void 0&&(a[c]=e[c]):n[c]!==void 0&&l.route.loader&&(a[c]=n[c]),r&&r.hasOwnProperty(c))break}return a}function Ev(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 bP(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 Os(n,e){let{pathname:t,routeId:r,method:a,type:l}=e===void 0?{}:e,c="Unknown Server Error",f="Unknown @remix-run/router error";return n===400?(c="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?(c="Forbidden",f='Route "'+r+'" does not match URL "'+t+'"'):n===404?(c="Not Found",f='No route matches URL "'+t+'"'):n===405&&(c="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 dP(n||500,c,new Error(f),!0)}function SP(n){for(let e=n.length-1;e>=0;e--){let t=n[e];if(wv(t))return{result:t,idx:e}}}function TP(n){let e=typeof n=="string"?dl(n):n;return ac(Nr({},e,{hash:""}))}function i8(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===mo.deferred}function Oy(n){return n.type===mo.error}function wv(n){return(n&&n.type)===mo.redirect}function a8(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 s8(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function l8(n){return YV.has(n.toLowerCase())}function fl(n){return GV.has(n.toLowerCase())}async function RP(n,e,t,r,a,l){for(let c=0;c<t.length;c++){let f=t[c],p=e[c];if(!p)continue;let m=n.find(E=>E.route.id===p.route.id),y=m!=null&&!gP(m,p)&&(l&&l[p.route.id])!==void 0;if(gh(f)&&(a||y)){let E=r[c];Lt(E,"Expected an AbortSignal for revalidating fetcher deferred result"),await kP(f,E,a).then(S=>{S&&(t[c]=S||t[c])})}}}async function kP(n,e,t){if(t===void 0&&(t=!1),!await n.deferredData.resolveData(e)){if(t)try{return{type:mo.data,data:n.deferredData.unwrappedData}}catch(a){return{type:mo.error,error:a}}return{type:mo.data,data:n.deferredData.data}}}function t1(n){return new URLSearchParams(n).getAll("index").some(e=>e==="")}function c8(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 n1(n,e){let t=typeof e=="string"?dl(e).search:e.search;if(n[n.length-1].route.index&&t1(t||""))return n[n.length-1];let r=EE(n);return r[r.length-1]}function AP(n){let{formMethod:e,formAction:t,formEncType:r,text:a,formData:l,json:c}=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(c!==void 0)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:c,text:void 0}}}function wE(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 u8(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 Ny(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 d8(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 bv(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 f8=n=>{switch(n){case"hash":return SV({v5Compat:!0});case"memory":return wV({v5Compat:!0});case"browser":default:return bV({v5Compat:!0})}};var Pr=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=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},Ns,SE,r1,TE,lc,yh;class h8 extends hn{get basename(){return Pr(this,SE,"f")}get origin(){return Pr(this,r1,"f")}get state(){return Pr(this,lc,"f").asObservable()}get value(){return Pr(this,lc,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(a=>Pr(this,lc,"f").subscribe(a)),Ns.set(this,void 0),SE.set(this,void 0),r1.set(this,window.location.origin),TE.set(this,new Si),lc.set(this,void 0),yh.set(this,void 0);const{basename:t,history:r}=e;bE(this,yh,e.logger||console,"f"),bE(this,SE,t,"f"),bE(this,Ns,r,"f"),bE(this,lc,new Vg({action:Pr(this,Ns,"f").action,location:Pr(this,Ns,"f").location,delta:null}),"f"),Pr(this,TE,"f").add(Pr(this,Ns,"f").listen(a=>{a.location.key!==Pr(this,lc,"f").value.location.key&&(Pr(this,yh,"f").debug("Navigator::constructor","history changed",a,Pr(this,lc,"f").value),Pr(this,lc,"f").next(a))}))}encodeLocation(e){return Pr(this,Ns,"f").encodeLocation(e)}listen(e){Pr(this,yh,"f").debug("Navigator::listen",e);const t=Pr(this,lc,"f").pipe(F3(1)).subscribe(r=>{Pr(this,yh,"f").debug("Navigator::listen[onchange]"),e(r)});return()=>(Pr(this,yh,"f").debug("Navigator::listen[unsubscribe]"),t.unsubscribe())}createHref(e){return Pr(this,Ns,"f").createHref(e)}go(e){Pr(this,Ns,"f").go(e)}push(e,t){return Pr(this,Ns,"f").push(e,t)}replace(e,t){return Pr(this,Ns,"f").replace(e,t)}createURL(e){return Pr(this,Ns,"f").createURL(e)}dispose(){Pr(this,TE,"f").unsubscribe()}}Ns=new WeakMap,SE=new WeakMap,r1=new WeakMap,TE=new WeakMap,lc=new WeakMap,yh=new WeakMap;var Ms=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)},xP=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},hl,_h;const IP=n=>n.replace(/\/+/g,"/");class p8 extends wN{get state$(){return Ms(this,hl,"f").pipe(un(e=>Ms(this,_h,"f")?e.location.pathname.startsWith(Ms(this,_h,"f")):!0),cn(({action:e,location:t})=>({action:e,location:this._localizePath(t)})))}get navigator(){return Ms(this,hl,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),hl.set(this,void 0),_h.set(this,void 0);const{basename:t,history:r}=e.config;if(xP(this,_h,t,"f"),!r)throw Error("no history provided!");xP(this,hl,new h8({basename:t,history:r}),"f"),this._addTeardown(()=>Ms(this,hl,"f").dispose())}createRouter(e){const t=Ms(this,hl,"f");console.debug("NavigationProvider::createRouter",e);const r=e8({basename:t.basename,history:t,routes:e,future:{v7_prependBasename:!0}});return r.initialize(),r}createHref(e){return Ms(this,hl,"f").createHref(this._createToPath(e??this.path))}createURL(e){return Ms(this,hl,"f").createURL(this._createToPath(e??this.path))}push(e,t){return Ms(this,hl,"f").push(this._createToPath(e),t)}replace(e,t){return Ms(this,hl,"f").replace(this._createToPath(e),t)}_localizePath(e){var t;const{pathname:r,search:a,hash:l}=e;return{pathname:IP(r.replace((t=Ms(this,_h,"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:IP([Ms(this,_h,"f"),t==="/"?void 0:t].filter(l=>!!l).join("/")),search:r,hash:a}}}hl=new WeakMap,_h=new WeakMap;const OP="3.0.5",v8="navigation",m8={version:new qg(OP),name:v8,configure:n=>{const e=new EV;return n&&(e.history=n.navigation.navigator),e},initialize:({config:n})=>{var e;return(e=n.history)!==null&&e!==void 0||(n.history=f8()),new p8({version:OP,config:n})},dispose({instance:n}){n.dispose()}},g8=(n,e)=>{const t=typeof e=="string"?{configure:r=>{r.basename=e}}:e;n.addConfig(Object.assign({module:m8},t))},y8=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:Pg&&Pg.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}),CV(n),g8(n),x6(n),n.onConfigured(()=>{console.log("framework config done")}),n.onInitialized(async e=>{e.auth.defaultClient.setLogger(new cM(4)),window.sessionStorage.clear(),e.event.subscribe(t=>console.log(`🔔🌍 [${t.type}]`,t.detail,t))})};function mu(n){"@babel/helpers - typeof";return mu=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},mu(n)}function _8(n,e){if(mu(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(mu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function C8(n){var e=_8(n,"string");return mu(e)==="symbol"?e:String(e)}function o1(n,e,t){return e=C8(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function NP(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?NP(Object(t),!0).forEach(function(r){o1(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):NP(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function E8(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 zn(n,e){if(n==null)return{};var t=E8(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 w8(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var b8=/^((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)-.*))$/,S8=w8(function(n){return b8.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),br="-ms-",My="-moz-",Gn="-webkit-",MP="comm",RE="rule",i1="decl",T8="@import",PP="@keyframes",R8="@layer",k8=Math.abs,a1=String.fromCharCode,s1=Object.assign;function A8(n,e){return fi(n,0)^45?(((e<<2^fi(n,0))<<2^fi(n,1))<<2^fi(n,2))<<2^fi(n,3):0}function DP(n){return n.trim()}function gu(n,e){return(n=e.exec(n))?n[0]:n}function dn(n,e,t){return n.replace(e,t)}function kE(n,e){return n.indexOf(e)}function fi(n,e){return n.charCodeAt(e)|0}function Sv(n,e,t){return n.slice(e,t)}function cc(n){return n.length}function LP(n){return n.length}function Py(n,e){return e.push(n),n}function x8(n,e){return n.map(e).join("")}function UP(n,e){return n.filter(function(t){return!gu(t,e)})}var AE=1,Tv=1,FP=0,Ps=0,Oo=0,Rv="";function xE(n,e,t,r,a,l,c,f){return{value:n,root:e,parent:t,type:r,props:a,children:l,line:AE,column:Tv,length:c,return:"",siblings:f}}function Rd(n,e){return s1(xE("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function kv(n){for(;n.root;)n=Rd(n.root,{children:[n]});Py(n,n.siblings)}function I8(){return Oo}function O8(){return Oo=Ps>0?fi(Rv,--Ps):0,Tv--,Oo===10&&(Tv=1,AE--),Oo}function pl(){return Oo=Ps<FP?fi(Rv,Ps++):0,Tv++,Oo===10&&(Tv=1,AE++),Oo}function Ch(){return fi(Rv,Ps)}function IE(){return Ps}function OE(n,e){return Sv(Rv,n,e)}function l1(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 N8(n){return AE=Tv=1,FP=cc(Rv=n),Ps=0,[]}function M8(n){return Rv="",n}function c1(n){return DP(OE(Ps-1,u1(n===91?n+2:n===40?n+1:n)))}function P8(n){for(;(Oo=Ch())&&Oo<33;)pl();return l1(n)>2||l1(Oo)>3?"":" "}function D8(n,e){for(;--e&&pl()&&!(Oo<48||Oo>102||Oo>57&&Oo<65||Oo>70&&Oo<97););return OE(n,IE()+(e<6&&Ch()==32&&pl()==32))}function u1(n){for(;pl();)switch(Oo){case n:return Ps;case 34:case 39:n!==34&&n!==39&&u1(Oo);break;case 40:n===41&&u1(n);break;case 92:pl();break}return Ps}function L8(n,e){for(;pl()&&n+Oo!==47+10;)if(n+Oo===42+42&&Ch()===47)break;return"/*"+OE(e,Ps-1)+"*"+a1(n===47?n:pl())}function U8(n){for(;!l1(Ch());)pl();return OE(n,Ps)}function F8(n){return M8(NE("",null,null,null,[""],n=N8(n),0,[0],n))}function NE(n,e,t,r,a,l,c,f,p){for(var m=0,y=0,E=c,S=0,T=0,A=0,O=1,F=1,H=1,D=0,q="",U=a,V=l,te=r,Z=q;F;)switch(A=D,D=pl()){case 40:if(A!=108&&fi(Z,E-1)==58){kE(Z+=dn(c1(D),"&","&\f"),"&\f")!=-1&&(H=-1);break}case 34:case 39:case 91:Z+=c1(D);break;case 9:case 10:case 13:case 32:Z+=P8(A);break;case 92:Z+=D8(IE()-1,7);continue;case 47:switch(Ch()){case 42:case 47:Py($8(L8(pl(),IE()),e,t,p),p);break;default:Z+="/"}break;case 123*O:f[m++]=cc(Z)*H;case 125*O:case 59:case 0:switch(D){case 0:case 125:F=0;case 59+y:H==-1&&(Z=dn(Z,/\f/g,"")),T>0&&cc(Z)-E&&Py(T>32?HP(Z+";",r,t,E-1,p):HP(dn(Z," ","")+";",r,t,E-2,p),p);break;case 59:Z+=";";default:if(Py(te=$P(Z,e,t,m,y,a,f,q,U=[],V=[],E,l),l),D===123)if(y===0)NE(Z,e,te,te,U,l,E,f,V);else switch(S===99&&fi(Z,3)===110?100:S){case 100:case 108:case 109:case 115:NE(n,te,te,r&&Py($P(n,te,te,0,0,a,f,q,a,U=[],E,V),V),a,V,E,f,r?U:V);break;default:NE(Z,te,te,te,[""],V,0,f,V)}}m=y=T=0,O=H=1,q=Z="",E=c;break;case 58:E=1+cc(Z),T=A;default:if(O<1){if(D==123)--O;else if(D==125&&O++==0&&O8()==125)continue}switch(Z+=a1(D),D*O){case 38:H=y>0?1:(Z+="\f",-1);break;case 44:f[m++]=(cc(Z)-1)*H,H=1;break;case 64:Ch()===45&&(Z+=c1(pl())),S=Ch(),y=E=cc(q=Z+=U8(IE())),D++;break;case 45:A===45&&cc(Z)==2&&(O=0)}}return l}function $P(n,e,t,r,a,l,c,f,p,m,y,E){for(var S=a-1,T=a===0?l:[""],A=LP(T),O=0,F=0,H=0;O<r;++O)for(var D=0,q=Sv(n,S+1,S=k8(F=c[O])),U=n;D<A;++D)(U=DP(F>0?T[D]+" "+q:dn(q,/&\f/g,T[D])))&&(p[H++]=U);return xE(n,e,t,a===0?RE:f,p,m,y,E)}function $8(n,e,t,r){return xE(n,e,t,MP,a1(I8()),Sv(n,2,-2),0,r)}function HP(n,e,t,r,a){return xE(n,e,t,i1,Sv(n,0,r),Sv(n,r+1,-1),r,a)}function jP(n,e,t){switch(A8(n,e)){case 5103:return Gn+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Gn+n+n;case 4789:return My+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Gn+n+My+n+br+n+n;case 5936:switch(fi(n,e+11)){case 114:return Gn+n+br+dn(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Gn+n+br+dn(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Gn+n+br+dn(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return Gn+n+br+n+n;case 6165:return Gn+n+br+"flex-"+n+n;case 5187:return Gn+n+dn(n,/(\w+).+(:[^]+)/,Gn+"box-$1$2"+br+"flex-$1$2")+n;case 5443:return Gn+n+br+"flex-item-"+dn(n,/flex-|-self/g,"")+(gu(n,/flex-|baseline/)?"":br+"grid-row-"+dn(n,/flex-|-self/g,""))+n;case 4675:return Gn+n+br+"flex-line-pack"+dn(n,/align-content|flex-|-self/g,"")+n;case 5548:return Gn+n+br+dn(n,"shrink","negative")+n;case 5292:return Gn+n+br+dn(n,"basis","preferred-size")+n;case 6060:return Gn+"box-"+dn(n,"-grow","")+Gn+n+br+dn(n,"grow","positive")+n;case 4554:return Gn+dn(n,/([^-])(transform)/g,"$1"+Gn+"$2")+n;case 6187:return dn(dn(dn(n,/(zoom-|grab)/,Gn+"$1"),/(image-set)/,Gn+"$1"),n,"")+n;case 5495:case 3959:return dn(n,/(image-set\([^]*)/,Gn+"$1$`$1");case 4968:return dn(dn(n,/(.+:)(flex-)?(.*)/,Gn+"box-pack:$3"+br+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gn+n+n;case 4200:if(!gu(n,/flex-|baseline/))return br+"grid-column-align"+Sv(n,e)+n;break;case 2592:case 3360:return br+dn(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,a){return e=a,gu(r.props,/grid-\w+-end/)})?~kE(n+(t=t[e].value),"span")?n:br+dn(n,"-start","")+n+br+"grid-row-span:"+(~kE(t,"span")?gu(t,/\d+/):+gu(t,/\d+/)-+gu(n,/\d+/))+";":br+dn(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return gu(r.props,/grid-\w+-start/)})?n:br+dn(dn(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return dn(n,/(.+)-inline(.+)/,Gn+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cc(n)-1-e>6)switch(fi(n,e+1)){case 109:if(fi(n,e+4)!==45)break;case 102:return dn(n,/(.+:)(.+)-([^]+)/,"$1"+Gn+"$2-$3$1"+My+(fi(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~kE(n,"stretch")?jP(dn(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return dn(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,l,c,f,p,m){return br+a+":"+l+m+(c?br+a+"-span:"+(f?p:+p-+l)+m:"")+n});case 4949:if(fi(n,e+6)===121)return dn(n,":",":"+Gn)+n;break;case 6444:switch(fi(n,fi(n,14)===45?18:11)){case 120:return dn(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Gn+(fi(n,14)===45?"inline-":"")+"box$3$1"+Gn+"$2$3$1"+br+"$2box$3")+n;case 100:return dn(n,":",":"+br)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return dn(n,"scroll-","scroll-snap-")+n}return n}function ME(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function H8(n,e,t,r){switch(n.type){case R8:if(n.children.length)break;case T8:case i1:return n.return=n.return||n.value;case MP:return"";case PP:return n.return=n.value+"{"+ME(n.children,r)+"}";case RE:if(!cc(n.value=n.props.join(",")))return""}return cc(t=ME(n.children,r))?n.return=n.value+"{"+t+"}":""}function j8(n){var e=LP(n);return function(t,r,a,l){for(var c="",f=0;f<e;f++)c+=n[f](t,r,a,l)||"";return c}}function z8(n){return function(e){e.root||(e=e.return)&&n(e)}}function B8(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case i1:n.return=jP(n.value,n.length,t);return;case PP:return ME([Rd(n,{value:dn(n.value,"@","@"+Gn)})],r);case RE:if(n.length)return x8(t=n.props,function(a){switch(gu(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kv(Rd(n,{props:[dn(a,/:(read-\w+)/,":"+My+"$1")]})),kv(Rd(n,{props:[a]})),s1(n,{props:UP(t,r)});break;case"::placeholder":kv(Rd(n,{props:[dn(a,/:(plac\w+)/,":"+Gn+"input-$1")]})),kv(Rd(n,{props:[dn(a,/:(plac\w+)/,":"+My+"$1")]})),kv(Rd(n,{props:[dn(a,/:(plac\w+)/,br+"input-$1")]})),kv(Rd(n,{props:[a]})),s1(n,{props:UP(t,r)});break}return""})}}var q8={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},Eh=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",d1=typeof window<"u"&&"HTMLElement"in window,V8=!!(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"),zP=/invalid hook call/i,PE=new Set,K8=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(c){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];zP.test(c)?(l=!1,PE.delete(r)):a.apply(void 0,bi([c],f,!1))},P.useRef(),l&&!PE.has(r)&&(console.warn(r),PE.add(r))}catch(c){zP.test(c.message)&&PE.delete(r)}finally{console.error=a}}},DE=Object.freeze([]),Av=Object.freeze({});function G8(n,e,t){return t===void 0&&(t=Av),n.theme!==t.theme&&n.theme||e||t.theme}var f1=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"]),W8=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Y8=/(^-|-$)/g;function BP(n){return n.replace(W8,"-").replace(Y8,"")}var Q8=/(a)(d)/gi,qP=function(n){return String.fromCharCode(n+(n>25?39:97))};function h1(n){var e,t="";for(e=Math.abs(n);e>52;e=e/52|0)t=qP(e%52)+t;return(qP(e%52)+t).replace(Q8,"$1-$2")}var p1,wh=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},VP=function(n){return wh(5381,n)};function KP(n){return h1(VP(n)>>>0)}function GP(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function v1(n){return typeof n=="string"&&(process.env.NODE_ENV==="production"||n.charAt(0)===n.charAt(0).toLowerCase())}var WP=typeof Symbol=="function"&&Symbol.for,YP=WP?Symbol.for("react.memo"):60115,X8=WP?Symbol.for("react.forward_ref"):60112,J8={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z8={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},QP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eK=((p1={})[X8]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p1[YP]=QP,p1);function XP(n){return("type"in(e=n)&&e.type.$$typeof)===YP?QP:"$$typeof"in n?eK[n.$$typeof]:J8;var e}var tK=Object.defineProperty,nK=Object.getOwnPropertyNames,JP=Object.getOwnPropertySymbols,rK=Object.getOwnPropertyDescriptor,oK=Object.getPrototypeOf,ZP=Object.prototype;function eD(n,e,t){if(typeof e!="string"){if(ZP){var r=oK(e);r&&r!==ZP&&eD(n,r,t)}var a=nK(e);JP&&(a=a.concat(JP(e)));for(var l=XP(n),c=XP(e),f=0;f<a.length;++f){var p=a[f];if(!(p in Z8||t&&t[p]||c&&p in c||l&&p in l)){var m=rK(e,p);try{tK(n,p,m)}catch{}}}}return n}function bh(n){return typeof n=="function"}function m1(n){return typeof n=="object"&&"styledComponentId"in n}function Sh(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function g1(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 xv(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function y1(n,e,t){if(t===void 0&&(t=!1),!t&&!xv(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=y1(n[r],e[r]);else if(xv(e))for(var r in e)n[r]=y1(n[r],e[r]);return n}function _1(n,e){Object.defineProperty(n,"toString",{value:e})}var iK=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 aK(){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(c){t=t.replace(/%[a-z]/,c)}),t}function yu(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(aK.apply(void 0,bi([iK[n]],e,!1)).trim())}var sK=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 yu(16,"".concat(e));this.groupSizes=new Uint32Array(l),this.groupSizes.set(r),this.length=l;for(var c=a;c<l;c++)this.groupSizes[c]=0}for(var f=this.indexOfGroup(e+1),p=(c=0,t.length);c<p;c++)this.tag.insertRule(f,t[c])&&(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,c=a;c<l;c++)t+="".concat(this.tag.getRule(c)).concat(`/*!sc*/
322
+ `);return t},n}(),LE=new Map,UE=new Map,C1=1,FE=function(n){if(LE.has(n))return LE.get(n);for(;UE.has(C1);)C1++;var e=C1++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>1073741824))throw yu(16,"".concat(e));return LE.set(n,e),UE.set(e,n),e},lK=function(n,e){LE.set(n,e),UE.set(e,n)},cK="style[".concat(Eh,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),uK=new RegExp("^".concat(Eh,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dK=function(n,e,t){for(var r,a=t.split(","),l=0,c=a.length;l<c;l++)(r=a[l])&&n.registerName(e,r)},fK=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(`/*!sc*/
323
+ `),a=[],l=0,c=r.length;l<c;l++){var f=r[l].trim();if(f){var p=f.match(uK);if(p){var m=0|parseInt(p[1],10),y=p[2];m!==0&&(lK(y,m),dK(n,y,p[3]),n.getTag().insertRules(m,a)),a.length=0}else a.push(f)}}};function hK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var tD=function(n){var e=document.head,t=n||e,r=document.createElement("style"),a=function(f){var p=Array.from(f.querySelectorAll("style[".concat(Eh,"]")));return p[p.length-1]}(t),l=a!==void 0?a.nextSibling:null;r.setAttribute(Eh,"active"),r.setAttribute("data-styled-version","6.0.8");var c=hK();return c&&r.setAttribute("nonce",c),t.insertBefore(r,l),r},pK=function(){function n(e){this.element=tD(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 c=r[a];if(c.ownerNode===t)return c}throw yu(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}(),vK=function(){function n(e){this.element=tD(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}(),mK=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}(),nD=d1,gK={isServer:!d1,useCSSOMInjection:!V8},rD=function(){function n(e,t,r){e===void 0&&(e=Av),t===void 0&&(t={});var a=this;this.options=fo(fo({},gK),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&d1&&nD&&(nD=!1,function(l){for(var c=document.querySelectorAll(cK),f=0,p=c.length;f<p;f++){var m=c[f];m&&m.getAttribute(Eh)!=="active"&&(fK(l,m),m.parentNode&&m.parentNode.removeChild(m))}}(this)),_1(this,function(){return function(l){for(var c=l.getTag(),f=c.length,p="",m=function(E){var S=function(H){return UE.get(H)}(E);if(S===void 0)return"continue";var T=l.names.get(S),A=c.getGroup(E);if(T===void 0||A.length===0)return"continue";var O="".concat(Eh,".g").concat(E,'[id="').concat(S,'"]'),F="";T!==void 0&&T.forEach(function(H){H.length>0&&(F+="".concat(H,","))}),p+="".concat(A).concat(O,'{content:"').concat(F,'"}').concat(`/*!sc*/
324
+ `)},y=0;y<f;y++)m(y);return p}(a)})}return n.registerId=function(e){return FE(e)},n.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new n(fo(fo({},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 mK(a):r?new pK(a):new vK(a)}(this.options),new sK(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(FE(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(FE(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(FE(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n}(),yK=/&/g,_K=/^\s*\/\/.*$/gm;function oD(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=oD(t.children,e)),t})}function CK(n){var e,t,r,a=n===void 0?Av:n,l=a.options,c=l===void 0?Av:l,f=a.plugins,p=f===void 0?DE: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===RE&&S.value.includes("&")&&(S.props[0]=S.props[0].replace(yK,t).replace(r,m))}),c.prefix&&y.push(B8),y.push(H8);var E=function(S,T,A,O){T===void 0&&(T=""),A===void 0&&(A=""),O===void 0&&(O="&"),e=O,t=T,r=new RegExp("\\".concat(t,"\\b"),"g");var F=S.replace(_K,""),H=F8(A||T?"".concat(A," ").concat(T," { ").concat(F," }"):F);c.namespace&&(H=oD(H,c.namespace));var D=[];return ME(H,j8(y.concat(z8(function(q){return D.push(q)})))),D};return E.hash=p.length?p.reduce(function(S,T){return T.name||yu(15),wh(S,T.name)},5381).toString():"",E}var EK=new rD,E1=CK(),iD=tu.createContext({shouldForwardProp:void 0,styleSheet:EK,stylis:E1});iD.Consumer,tu.createContext(void 0);function aD(){return P.useContext(iD)}var w1=function(){function n(e,t){var r=this;this.inject=function(a,l){l===void 0&&(l=E1);var c=r.name+l.hash;a.hasNameForId(r.id,c)||a.insertRules(r.id,c,l(r.rules,c,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,_1(this,function(){throw yu(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=E1),this.name+e.hash},n}(),wK=function(n){return n>="A"&&n<="Z"};function sD(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;wK(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var lD=function(n){return n==null||n===!1||n===""},cD=function(n){var e,t,r=[];for(var a in n){var l=n[a];n.hasOwnProperty(a)&&!lD(l)&&(Array.isArray(l)&&l.isCss||bh(l)?r.push("".concat(sD(a),":"),l,";"):xv(l)?r.push.apply(r,bi(bi(["".concat(a," {")],cD(l),!1),["}"],!1)):r.push("".concat(sD(a),": ").concat((e=a,(t=l)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in q8||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function Th(n,e,t,r){if(lD(n))return[];if(m1(n))return[".".concat(n.styledComponentId)];if(bh(n)){if(!bh(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 w1||xv(a)||a===null||console.error("".concat(GP(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.")),Th(a,e,t,r)}var l;return n instanceof w1?t?(n.inject(t,r),[n.getName(r)]):[n]:xv(n)?cD(n):Array.isArray(n)?Array.prototype.concat.apply(DE,n.map(function(c){return Th(c,e,t,r)})):[n.toString()]}function bK(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(bh(t)&&!m1(t))return!1}return!0}var SK=VP("6.0.8"),TK=function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&bK(e),this.componentId=t,this.baseHash=wh(SK,t),this.baseStyle=r,rD.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=Sh(a,this.staticRulesId);else{var l=g1(Th(this.rules,e,t,r)),c=h1(wh(this.baseHash,l)>>>0);if(!t.hasNameForId(this.componentId,c)){var f=r(l,".".concat(c),void 0,this.componentId);t.insertRules(this.componentId,c,f)}a=Sh(a,c),this.staticRulesId=c}else{for(var p=wh(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=wh(p,E));else if(E){var S=g1(Th(E,e,t,r));p=wh(p,S+y),m+=S}}if(m){var T=h1(p>>>0);t.hasNameForId(this.componentId,T)||t.insertRules(this.componentId,T,r(m,".".concat(T),void 0,this.componentId)),a=Sh(a,T)}}return a},n}(),$E=tu.createContext(void 0);$E.Consumer;function HE(n){var e=tu.useContext($E),t=P.useMemo(function(){return function(r,a){if(!r)throw yu(14);if(bh(r)){var l=r(a);if(process.env.NODE_ENV!=="production"&&(l===null||Array.isArray(l)||typeof l!="object"))throw yu(7);return l}if(Array.isArray(r)||typeof r!="object")throw yu(8);return a?fo(fo({},a),r):r}(n.theme,e)},[n.theme,e]);return n.children?tu.createElement($E.Provider,{value:t},n.children):null}var b1={},uD=new Set;function RK(n,e,t){var r=m1(n),a=n,l=!v1(n),c=e.attrs,f=c===void 0?DE:c,p=e.componentId,m=p===void 0?function(U,V){var te=typeof U!="string"?"sc":BP(U);b1[te]=(b1[te]||0)+1;var Z="".concat(te,"-").concat(KP("6.0.8"+te+b1[te]));return V?"".concat(V,"-").concat(Z):Z}(e.displayName,e.parentComponentId):p,y=e.displayName,E=y===void 0?function(U){return v1(U)?"styled.".concat(U):"Styled(".concat(GP(U),")")}(n):y,S=e.displayName&&e.componentId?"".concat(BP(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 O=a.shouldForwardProp;if(e.shouldForwardProp){var F=e.shouldForwardProp;A=function(U,V){return O(U,V)&&F(U,V)}}else A=O}var H=new TK(t,S,r?a.componentStyle:void 0);function D(U,V){return function(te,Z,Ne){var Ze=te.attrs,it=te.componentStyle,Me=te.defaultProps,ze=te.foldedComponentIds,ee=te.styledComponentId,J=te.target,ye=tu.useContext($E),me=aD(),he=te.shouldForwardProp||me.shouldForwardProp;process.env.NODE_ENV!=="production"&&P.useDebugValue(ee);var G=function(Le,xt,Ut){for(var Bt,wt=fo(fo({},xt),{className:void 0,theme:Ut}),gn=0;gn<Le.length;gn+=1){var Gr=bh(Bt=Le[gn])?Bt(wt):Bt;for(var Wn in Gr)wt[Wn]=Wn==="className"?Sh(wt[Wn],Gr[Wn]):Wn==="style"?fo(fo({},wt[Wn]),Gr[Wn]):Gr[Wn]}return xt.className&&(wt.className=Sh(wt.className,xt.className)),wt}(Ze,Z,G8(Z,ye,Me)||Av),ge=G.as||J,$={};for(var ne in G)G[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"||(ne==="forwardedAs"?$.as=G.forwardedAs:he&&!he(ne,ge)||($[ne]=G[ne],he||process.env.NODE_ENV!=="development"||S8(ne)||uD.has(ne)||!f1.has(ge)||(uD.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 ke=function(Le,xt){var Ut=aD(),Bt=Le.generateAndInjectStyles(xt,Ut.styleSheet,Ut.stylis);return process.env.NODE_ENV!=="production"&&P.useDebugValue(Bt),Bt}(it,G);process.env.NODE_ENV!=="production"&&te.warnTooManyClasses&&te.warnTooManyClasses(ke);var lt=Sh(ze,ee);return ke&&(lt+=" "+ke),G.className&&(lt+=" "+G.className),$[v1(ge)&&!f1.has(ge)?"class":"className"]=lt,$.ref=Ne,P.createElement(ge,$)}(q,U,V)}process.env.NODE_ENV!=="production"&&(D.displayName=E);var q=tu.forwardRef(D);return q.attrs=T,q.componentStyle=H,q.shouldForwardProp=A,process.env.NODE_ENV!=="production"&&(q.displayName=E),q.foldedComponentIds=r?Sh(a.foldedComponentIds,a.styledComponentId):"",q.styledComponentId=S,q.target=r?a.target:n,Object.defineProperty(q,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(U){this._foldedDefaultProps=r?function(V){for(var te=[],Z=1;Z<arguments.length;Z++)te[Z-1]=arguments[Z];for(var Ne=0,Ze=te;Ne<Ze.length;Ne++)y1(V,Ze[Ne],!0);return V}({},a.defaultProps,U):U}}),process.env.NODE_ENV!=="production"&&(K8(E,S),q.warnTooManyClasses=function(U,V){var te={},Z=!1;return function(Ne){if(!Z&&(te[Ne]=!0,Object.keys(te).length>=200)){var Ze=V?' with the id of "'.concat(V,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(U).concat(Ze,`.
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,te={}}}}(E,S)),_1(q,function(){return".".concat(q.styledComponentId)}),l&&eD(q,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),q}function dD(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 fD=function(n){return Object.assign(n,{isCss:!0})};function fn(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(bh(n)||xv(n)){var r=n;return fD(Th(dD(DE,bi([r],e,!0))))}var a=n;return e.length===0&&a.length===1&&typeof a[0]=="string"?Th(a):fD(Th(dD(a,e)))}function S1(n,e,t){if(t===void 0&&(t=Av),!e)throw yu(1,e);var r=function(a){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];return n(e,t,fn.apply(void 0,bi([a],l,!1)))};return r.attrs=function(a){return S1(n,e,fo(fo({},t),{attrs:Array.prototype.concat(t.attrs,a).filter(Boolean)}))},r.withConfig=function(a){return S1(n,e,fo(fo({},t),a))},r}var hD=function(n){return S1(RK,n)},Nt=hD;f1.forEach(function(n){Nt[n]=hD(n)});function pD(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=g1(fn.apply(void 0,bi([n],e,!1))),a=KP(r);return new w1(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 jE="__sc-".concat(Eh,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[jE]||(window[jE]=0),window[jE]===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[jE]+=1);var kK={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},AK={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))"}}},xK={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)"},IK={_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)"}},OK={_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:""}},NK={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"}}},MK={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"}},nn={clickbounds:kK,colors:AK,elevation:xK,interactions:IK,shape:OK,typography:NK,spacings:MK},T1=nn.typography.navigation.button,R1=nn.colors.interactive,PK=R1.disabled__text.rgba,DK=R1.disabled__border.rgba,LK=R1.disabled__fill.rgba,vD=nn.spacings.comfortable.medium,mD=nn.shape,gD=mD.button,yD=gD.minHeight,_D=gD.borderRadius,CD=mD._modes.compact.button.minHeight,ED=nn.interactions.focused,wD=nn.clickbounds,bD=wD.default__base,SD=wD.compact__standard,zE={background:"transparent",height:"var(--eds_button__height, ".concat(yD,")"),typography:ve(ve({},T1),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(T1.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(_D,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(vD,")"),right:"var(--eds_button__padding_x, ".concat(vD,")")},clickbound:{height:bD,width:"100%",offset:{top:"".concat((parseInt(bD)-parseInt(yD))/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(_D,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:ED.color,width:ED.width}},disabled:{background:LK,border:{type:"border",width:"1px",color:DK,style:"solid"},typography:ve(ve({},T1),{},{color:PK,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(CD,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:SD,width:"100%",offset:{top:"".concat((parseInt(SD)-parseInt(CD))/2+1,"px"),left:"0"}}}}};function Vr(n){return n!=null&&mu(n)==="object"&&n["@@functional/placeholder"]===!0}function Rh(n){return function e(t){return arguments.length===0||Vr(t)?e:n.apply(this,arguments)}}function kh(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return Vr(t)?e:Rh(function(a){return n(t,a)});default:return Vr(t)&&Vr(r)?e:Vr(t)?Rh(function(a){return n(a,r)}):Vr(r)?Rh(function(a){return n(t,a)}):n(t,r)}}}function TD(n){return function e(t,r,a){switch(arguments.length){case 0:return e;case 1:return Vr(t)?e:kh(function(l,c){return n(t,l,c)});case 2:return Vr(t)&&Vr(r)?e:Vr(t)?kh(function(l,c){return n(l,r,c)}):Vr(r)?kh(function(l,c){return n(t,l,c)}):Rh(function(l){return n(t,r,l)});default:return Vr(t)&&Vr(r)&&Vr(a)?e:Vr(t)&&Vr(r)?kh(function(l,c){return n(l,c,a)}):Vr(t)&&Vr(a)?kh(function(l,c){return n(l,r,c)}):Vr(r)&&Vr(a)?kh(function(l,c){return n(t,l,c)}):Vr(t)?Rh(function(l){return n(l,r,a)}):Vr(r)?Rh(function(l){return n(t,l,a)}):Vr(a)?Rh(function(l){return n(t,r,l)}):n(t,r,a)}}}function RD(n){return Object.prototype.toString.call(n)==="[object Object]"}function BE(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var UK=TD(function(e,t,r){var a={},l;t=t||{},r=r||{};for(l in t)BE(l,t)&&(a[l]=BE(l,r)?e(l,t[l],r[l]):t[l]);for(l in r)BE(l,r)&&!BE(l,a)&&(a[l]=r[l]);return a}),FK=TD(function n(e,t,r){return UK(function(a,l,c){return RD(l)&&RD(c)?n(e,l,c):e(a,l,c)},t,r)}),$K=kh(function(e,t){return FK(function(r,a,l){return l},e,t)}),ya=$K,kD=nn.colors,HK=kD.text.static_icons__primary_white.rgba,Iv=kD.interactive,AD=Iv.primary__resting.rgba,jK=Iv.primary__hover.rgba,xD=Iv.secondary__resting.rgba,ID=Iv.secondary__link_hover.rgba,OD=Iv.danger__resting.rgba,ND=Iv.danger__hover.rgba,zK=nn.shape.button.borderRadius,qE=ya(zE,{background:AD,typography:{color:HK},border:{type:"border",style:"solid",width:"1px",color:AD,radius:"var(--eds_button__radius, ".concat(zK,")")},states:{hover:{background:jK}}}),MD=ya(qE,{background:xD,border:{color:xD},states:{hover:{background:ID,border:{color:ID}}}}),PD=ya(qE,{background:OD,border:{color:OD},states:{hover:{background:ND,border:{color:ND}}}}),_u=nn.colors.interactive,DD=_u.primary__resting.rgba,LD=_u.primary__hover.rgba,BK=_u.primary__hover_alt.rgba,UD=_u.secondary__resting.rgba,FD=_u.secondary__link_hover.rgba,qK=_u.secondary__highlight.rgba,$D=_u.danger__resting.rgba,HD=_u.danger__hover.rgba,VK=_u.danger__highlight.rgba,KK=nn.shape.button.borderRadius,k1=ya(zE,{typography:{color:DD},border:{type:"border",style:"solid",width:"1px",color:DD,radius:"var(--eds_button__radius, ".concat(KK,")")},states:{hover:{typography:{color:LD},background:BK,border:{style:"solid",type:"border",width:"1px",color:LD}},disabled:{background:"transparent"}}}),GK=ya(k1,{typography:{color:UD},border:{color:UD},states:{hover:{background:qK,typography:{color:FD},border:{color:FD}}}}),WK=ya(k1,{typography:{color:$D},border:{color:$D},states:{hover:{background:VK,typography:{color:HD},border:{color:HD}}}}),Cu=nn.colors.interactive,YK=Cu.primary__resting.rgba,QK=Cu.primary__hover.rgba,XK=Cu.primary__hover_alt.rgba,JK=Cu.secondary__resting.rgba,ZK=Cu.secondary__link_hover.rgba,eG=Cu.secondary__highlight.rgba,tG=Cu.danger__resting.rgba,nG=Cu.danger__hover.rgba,rG=Cu.danger__highlight.rgba,A1=ya(zE,{typography:{color:YK},states:{hover:{background:XK,typography:{color:QK}},disabled:{background:"transparent",border:{color:"transparent"}}}}),oG=ya(A1,{typography:{color:JK},states:{hover:{background:eG,typography:{color:ZK}}}}),iG=ya(A1,{typography:{color:tG},states:{hover:{background:rG,typography:{color:nG}}}}),kd=nn.colors.interactive,aG=kd.primary__resting.rgba,sG=kd.primary__hover_alt.rgba,lG=kd.secondary__resting.rgba,cG=kd.secondary__link_hover.rgba,uG=kd.secondary__highlight.rgba,dG=kd.danger__resting.rgba,fG=kd.danger__hover.rgba,hG=kd.danger__highlight.rgba,jD=nn.clickbounds,zD=jD.default__base,BD=jD.compact__standard,Ov=nn.shape,pG=nn.interactions.focused.width,x1=ya(zE,{height:Ov.icon_button.minHeight,width:Ov.icon_button.minWidth,typography:{color:aG},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:zD,offset:{top:"0",left:"".concat((parseInt(zD)-parseInt(Ov.icon_button.minWidth))/2,"px")}},states:{hover:{background:sG,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(pG),"px")}}},modes:{compact:{height:Ov._modes.compact.icon_button.minHeight,width:Ov._modes.compact.icon_button.minWidth,clickbound:{width:BD,offset:{top:"0",left:"".concat((parseInt(BD)-parseInt(Ov._modes.compact.icon_button.minWidth))/2,"px")}}}}}),vG=ya(x1,{typography:{color:lG},states:{hover:{background:uG,typography:{color:cG}}}}),mG=ya(x1,{typography:{color:dG},states:{hover:{background:hG,typography:{color:fG}}}}),qD=nn.clickbounds,VD=qD.default__base,KD=qD.compact__standard,Dy=nn.shape,I1={height:Dy.icon_button.minHeight,width:Dy.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:VD,offset:{top:"0",left:"".concat((parseInt(VD)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:Dy._modes.compact.icon_button.minHeight,width:Dy._modes.compact.icon_button.minWidth,clickbound:{width:KD,offset:{top:"0",left:"".concat((parseInt(KD)-parseInt(Dy._modes.compact.icon_button.minWidth))/2,"px")}}}}},gG=ya(qE,I1),yG=ya(MD,I1),_G=ya(PD,I1),O1={primary:{contained:qE,outlined:k1,ghost:A1,ghost_icon:x1,contained_icon:gG},secondary:{contained:MD,outlined:GK,ghost:oG,ghost_icon:vG,contained_icon:yG},danger:{contained:PD,outlined:WK,ghost:iG,ghost_icon:mG,contained_icon:_G}},GD=function(e,t){P.useEffect(function(){var r=function(l){var c=l.key;switch(c){case e:t(l);break}};return document.addEventListener("keydown",r,!0),function(){document.removeEventListener("keydown",r,!0)}},[e,t])};function CG(n){if(Array.isArray(n))return n}function EG(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,a,l,c,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&&(c=t.return(),Object(c)!==c))return}finally{if(m)throw a}}return f}}function N1(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 WD(n,e){if(n){if(typeof n=="string")return N1(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 N1(n,e)}}function wG(){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 Eu(n,e){return CG(n)||EG(n,e)||WD(n,e)||wG()}var bG=function(e,t){var r=P.useState(e),a=Eu(r,2),l=a[0],c=a[1],f=e||l;return P.useEffect(function(){l==null&&c("eds-".concat(t?t+"-":"").concat(Math.round(Math.random()*1e5)))},[l,t]),f},SG=typeof window<"u"?P.useLayoutEffect:P.useEffect,YD=function(e){var t=P.useState(null),r=Eu(t,2),a=r[0],l=r[1];return P.useEffect(function(){e&&a===null&&l(!!e.closest("dialog"))},[e]),a};function Kr(n){return n!=null&&mu(n)==="object"&&n["@@functional/placeholder"]===!0}function Ah(n){return function e(t){return arguments.length===0||Kr(t)?e:n.apply(this,arguments)}}function xh(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return Kr(t)?e:Ah(function(a){return n(t,a)});default:return Kr(t)&&Kr(r)?e:Kr(t)?Ah(function(a){return n(a,r)}):Kr(r)?Ah(function(a){return n(t,a)}):n(t,r)}}}function QD(n){return function e(t,r,a){switch(arguments.length){case 0:return e;case 1:return Kr(t)?e:xh(function(l,c){return n(t,l,c)});case 2:return Kr(t)&&Kr(r)?e:Kr(t)?xh(function(l,c){return n(l,r,c)}):Kr(r)?xh(function(l,c){return n(t,l,c)}):Ah(function(l){return n(t,r,l)});default:return Kr(t)&&Kr(r)&&Kr(a)?e:Kr(t)&&Kr(r)?xh(function(l,c){return n(l,c,a)}):Kr(t)&&Kr(a)?xh(function(l,c){return n(l,r,c)}):Kr(r)&&Kr(a)?xh(function(l,c){return n(t,l,c)}):Kr(t)?Ah(function(l){return n(l,r,a)}):Kr(r)?Ah(function(l){return n(t,l,a)}):Kr(a)?Ah(function(l){return n(t,r,l)}):n(t,r,a)}}}function XD(n){return Object.prototype.toString.call(n)==="[object Object]"}function VE(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var TG=QD(function(e,t,r){var a={},l;t=t||{},r=r||{};for(l in t)VE(l,t)&&(a[l]=VE(l,r)?e(l,t[l],r[l]):t[l]);for(l in r)VE(l,r)&&!VE(l,a)&&(a[l]=r[l]);return a}),RG=QD(function n(e,t,r){return TG(function(a,l,c){return XD(l)&&XD(c)?n(e,l,c):e(a,l,c)},t,r)}),kG=xh(function(e,t){return RG(function(r,a,l){return l},e,t)}),AG=kG,KE=function(e,t){return P.useCallback(function(){var r=e.density;return r==="compact"?AG(t,t.modes.compact):t},[e,t])},Ly=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&&mu(l)==="object"&&(l.current=a)})}},Nv=function(e){if(e){var t=e.width,r=t===void 0?"":t,a=e.style,l=a===void 0?"":a,c=e.color,f=c===void 0?"":c;return r?"".concat(r," ").concat(l," ").concat(f):null}},vl=function(e){var t,r,a,l;if(!e)return fn({});switch(e.type){case"border":return fn({border:Nv(e),borderRadius:e.radius});case"bordergroup":return fn({borderBottom:Nv(e.bottom),borderTop:Nv(e.top),borderLeft:Nv(e.left),borderRight:Nv(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 fn({})}},xG=nn.colors.interactive.focus.rgba,wu=function(e){var t=e.color,r=t===void 0?xG:t,a=e.style,l=a===void 0?"dashed":a,c=e.width,f=c===void 0?"2px":c,p=e.offset,m=p===void 0?"0px":p,y=e.type,E={color:r,style:l,width:f,offset:m,type:y};return fn({outline:Nv(E),outlineOffset:E.offset})},Mv=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},Pv=function(e){var t=e.left,r=e.right,a=e.top,l=e.bottom;return fn({paddingLeft:t,paddingTop:a,paddingRight:r,paddingBottom:l})},IG=Nt.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),OG=Nt.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;}"]),NG=P.forwardRef(function(e,t){var r=e.children,a=P.Children.map(r,function(l){return mu(l)!=="object"?ce.jsx(IG,{children:l}):l});return ce.jsx(OG,{ref:t,children:a})}),MG={density:"comfortable"},PG=P.createContext(MG),GE=function(){return P.useContext(PG)},DG=["color","variant","children","disabled","href","tabIndex","fullWidth"],M1=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}},LG=function(e,t){switch(t){case"danger":return M1(O1.danger,e);case"secondary":return M1(O1.secondary,e);case"primary":default:return M1(O1.primary,e)}},UG=Nt.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);}"]),FG=Nt.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})(function(n){var e,t,r,a=n.theme,l=a.states,c=a.clickbound,f=l.focus,p=l.hover,m=l.disabled;return fn(["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,Pv(a.spacings),vl(a.border),Mv(a.typography),c==null||(e=c.offset)===null||e===void 0?void 0:e.top,c==null||(t=c.offset)===null||t===void 0?void 0:t.left,c==null?void 0:c.width,c==null?void 0:c.height,p.background,(r=p.typography)===null||r===void 0?void 0:r.color,vl(p==null?void 0:p.border),wu(f.outline),wu(f.outline),m.background,vl(m.border),Mv(m.typography),m.background)}),JD=P.forwardRef(function(e,t){var r=e.color,a=r===void 0?"primary":r,l=e.variant,c=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,O=zn(e,DG),F=GE(),H=F.density,D=KE({density:H},LG(c,a)),q=y&&!m?"a":O.as?O.as:"button",U=y||O.as?void 0:"button";S=m?-1:S;var V=ve({ref:t,as:q,href:y,type:U,disabled:m,tabIndex:S},O);return ce.jsx(HE,{theme:D,children:ce.jsx(FG,ve(ve({},V),{},{children:A?ce.jsx(NG,{children:f}):ce.jsx(UG,{children:f})}))})}),$G=nn.shape.corners.borderRadius,HG={border:{type:"border",radius:$G}},jG=["children","vertical"],zG=HG.border,Ad=zG.radius,BG=Nt.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 fn(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;}"],Ad,Ad,Ad,Ad)}),ZD=P.forwardRef(function(e,t){var r=e.children,a=e.vertical,l=zn(e,jG),c=ve({ref:t,vertical:a},l);return ce.jsx(BG,ve(ve({role:"group"},c),{},{children:r}))});function qG(n){if(Array.isArray(n))return N1(n)}function VG(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function KG(){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 e2(n){return qG(n)||VG(n)||WD(n)||KG()}var t2=nn.colors,GG=t2.text.static_icons__primary_white.rgba,WG=t2.ui.background__overlay.rgba,YG=nn.typography.ui,n2=nn.spacings.comfortable,QG=n2.x_large,Uy=n2.small,XG=nn.shape.corners.borderRadius,bu={typography:ve(ve({},YG.tooltip),{},{color:GG}),background:WG,border:{type:"border",radius:XG},entities:{tooltip:{height:QG},arrow:{width:"6px",height:Uy,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:Uy,right:Uy,top:Uy,bottom:Uy}};const xd=Math.min,fs=Math.max,WE=Math.round,YE=Math.floor,Id=n=>({x:n,y:n}),JG={left:"right",right:"left",bottom:"top",top:"bottom"},ZG={start:"end",end:"start"};function P1(n,e,t){return fs(n,xd(e,t))}function Dv(n,e){return typeof n=="function"?n(e):n}function Od(n){return n.split("-")[0]}function Lv(n){return n.split("-")[1]}function r2(n){return n==="x"?"y":"x"}function D1(n){return n==="y"?"height":"width"}function Fy(n){return["top","bottom"].includes(Od(n))?"y":"x"}function L1(n){return r2(Fy(n))}function eW(n,e,t){t===void 0&&(t=!1);const r=Lv(n),a=L1(n),l=D1(a);let c=a==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(c=QE(c)),[c,QE(c)]}function tW(n){const e=QE(n);return[U1(n),e,U1(e)]}function U1(n){return n.replace(/start|end/g,e=>ZG[e])}function nW(n,e,t){const r=["left","right"],a=["right","left"],l=["top","bottom"],c=["bottom","top"];switch(n){case"top":case"bottom":return t?e?a:r:e?r:a;case"left":case"right":return e?l:c;default:return[]}}function rW(n,e,t,r){const a=Lv(n);let l=nW(Od(n),t==="start",r);return a&&(l=l.map(c=>c+"-"+a),e&&(l=l.concat(l.map(U1)))),l}function QE(n){return n.replace(/left|right|bottom|top/g,e=>JG[e])}function oW(n){return{top:0,right:0,bottom:0,left:0,...n}}function o2(n){return typeof n!="number"?oW(n):{top:n,right:n,bottom:n,left:n}}function XE(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function Nd(n){return i2(n)?(n.nodeName||"").toLowerCase():"#document"}function hs(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Su(n){var e;return(e=(i2(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function i2(n){return n instanceof Node||n instanceof hs(n).Node}function Dr(n){return n instanceof Element||n instanceof hs(n).Element}function Ds(n){return n instanceof HTMLElement||n instanceof hs(n).HTMLElement}function F1(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof hs(n).ShadowRoot}function $y(n){const{overflow:e,overflowX:t,overflowY:r,display:a}=ps(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(a)}function iW(n){return["table","td","th"].includes(Nd(n))}function $1(n){const e=H1(),t=ps(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 aW(n){let e=Ih(n);for(;Ds(e)&&!Hy(e);){if($1(e))return e;e=Ih(e)}return null}function H1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Hy(n){return["html","body","#document"].includes(Nd(n))}function ps(n){return hs(n).getComputedStyle(n)}function JE(n){return Dr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Ih(n){if(Nd(n)==="html")return n;const e=n.assignedSlot||n.parentNode||F1(n)&&n.host||Su(n);return F1(e)?e.host:e}function a2(n){const e=Ih(n);return Hy(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ds(e)&&$y(e)?e:a2(e)}function Md(n,e){var t;e===void 0&&(e=[]);const r=a2(n),a=r===((t=n.ownerDocument)==null?void 0:t.body),l=hs(r);return a?e.concat(l,l.visualViewport||[],$y(r)?r:[],l.frameElement?Md(l.frameElement):[]):e.concat(r,Md(r))}function s2(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 Uv(n,e){if(!n||!e)return!1;const t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&F1(t)){let r=e;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function sW(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function lW(){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 cW(n){if(n.mozInputSource===0&&n.isTrusted)return!0;const e=/Android/i;return(e.test(sW())||e.test(lW()))&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function uW(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 dW(){return/apple/i.test(navigator.vendor)}function l2(n,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(n)}function fW(n){return"nativeEvent"in n}function hW(n){return n.matches("html,body")}function uc(n){return(n==null?void 0:n.ownerDocument)||document}function ZE(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 pW(n){return"composedPath"in n?n.composedPath()[0]:n.target}function c2(n,e,t){let{reference:r,floating:a}=n;const l=Fy(e),c=L1(e),f=D1(c),p=Od(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(Lv(e)){case"start":T[c]-=S*(t&&m?-1:1);break;case"end":T[c]+=S*(t&&m?-1:1);break}return T}const vW=async(n,e,t)=>{const{placement:r="bottom",strategy:a="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(e));let m=await c.getElementRects({reference:n,floating:e,strategy:a}),{x:y,y:E}=c2(m,r,p),S=r,T={},A=0;for(let O=0;O<f.length;O++){const{name:F,fn:H}=f[O],{x:D,y:q,data:U,reset:V}=await H({x:y,y:E,initialPlacement:r,placement:S,strategy:a,middlewareData:T,rects:m,platform:c,elements:{reference:n,floating:e}});if(y=D??y,E=q??E,T={...T,[F]:{...T[F],...U}},V&&A<=50){A++,typeof V=="object"&&(V.placement&&(S=V.placement),V.rects&&(m=V.rects===!0?await c.getElementRects({reference:n,floating:e,strategy:a}):V.rects),{x:y,y:E}=c2(m,S,p)),O=-1;continue}}return{x:y,y:E,placement:S,strategy:a,middlewareData:T}};async function j1(n,e){var t;e===void 0&&(e={});const{x:r,y:a,platform:l,rects:c,elements:f,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:E="floating",altBoundary:S=!1,padding:T=0}=Dv(e,n),A=o2(T),F=f[S?E==="floating"?"reference":"floating":E],H=XE(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(F)))==null||t?F:F.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:m,rootBoundary:y,strategy:p})),D=E==="floating"?{...c.floating,x:r,y:a}:c.reference,q=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),U=await(l.isElement==null?void 0:l.isElement(q))?await(l.getScale==null?void 0:l.getScale(q))||{x:1,y:1}:{x:1,y:1},V=XE(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:D,offsetParent:q,strategy:p}):D);return{top:(H.top-V.top+A.top)/U.y,bottom:(V.bottom-H.bottom+A.bottom)/U.y,left:(H.left-V.left+A.left)/U.x,right:(V.right-H.right+A.right)/U.x}}const u2=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:a,rects:l,platform:c,elements:f}=e,{element:p,padding:m=0}=Dv(n,e)||{};if(p==null)return{};const y=o2(m),E={x:t,y:r},S=L1(a),T=D1(S),A=await c.getDimensions(p),O=S==="y",F=O?"top":"left",H=O?"bottom":"right",D=O?"clientHeight":"clientWidth",q=l.reference[T]+l.reference[S]-E[S]-l.floating[T],U=E[S]-l.reference[S],V=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let te=V?V[D]:0;(!te||!await(c.isElement==null?void 0:c.isElement(V)))&&(te=f.floating[D]||l.floating[T]);const Z=q/2-U/2,Ne=te/2-A[T]/2-1,Ze=xd(y[F],Ne),it=xd(y[H],Ne),Me=Ze,ze=te-A[T]-it,ee=te/2-A[T]/2+Z,J=P1(Me,ee,ze),me=Lv(a)!=null&&ee!=J&&l.reference[T]/2-(ee<Me?Ze:it)-A[T]/2<0?ee<Me?Me-ee:ze-ee:0;return{[S]:E[S]-me,data:{[S]:J,centerOffset:ee-J+me}}}}),d2=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t;const{placement:r,middlewareData:a,rects:l,initialPlacement:c,platform:f,elements:p}=e,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:E,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:A=!0,...O}=Dv(n,e),F=Od(r),H=Od(c)===c,D=await(f.isRTL==null?void 0:f.isRTL(p.floating)),q=E||(H||!A?[QE(c)]:tW(c));!E&&T!=="none"&&q.push(...rW(c,A,T,D));const U=[c,...q],V=await j1(e,O),te=[];let Z=((t=a.flip)==null?void 0:t.overflows)||[];if(m&&te.push(V[F]),y){const Me=eW(r,l,D);te.push(V[Me[0]],V[Me[1]])}if(Z=[...Z,{placement:r,overflows:te}],!te.every(Me=>Me<=0)){var Ne,Ze;const Me=(((Ne=a.flip)==null?void 0:Ne.index)||0)+1,ze=U[Me];if(ze)return{data:{index:Me,overflows:Z},reset:{placement:ze}};let ee=(Ze=Z.filter(J=>J.overflows[0]<=0).sort((J,ye)=>J.overflows[1]-ye.overflows[1])[0])==null?void 0:Ze.placement;if(!ee)switch(S){case"bestFit":{var it;const J=(it=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:it[0];J&&(ee=J);break}case"initialPlacement":ee=c;break}if(r!==ee)return{reset:{placement:ee}}}return{}}}};async function mW(n,e){const{placement:t,platform:r,elements:a}=n,l=await(r.isRTL==null?void 0:r.isRTL(a.floating)),c=Od(t),f=Lv(t),p=Fy(t)==="y",m=["left","top"].includes(c)?-1:1,y=l&&p?-1:1,E=Dv(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 f2=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){const{x:t,y:r}=e,a=await mW(e,n);return{x:t+a.x,y:r+a.y,data:a}}}},h2=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:c=!1,limiter:f={fn:F=>{let{x:H,y:D}=F;return{x:H,y:D}}},...p}=Dv(n,e),m={x:t,y:r},y=await j1(e,p),E=Fy(Od(a)),S=r2(E);let T=m[S],A=m[E];if(l){const F=S==="y"?"top":"left",H=S==="y"?"bottom":"right",D=T+y[F],q=T-y[H];T=P1(D,T,q)}if(c){const F=E==="y"?"top":"left",H=E==="y"?"bottom":"right",D=A+y[F],q=A-y[H];A=P1(D,A,q)}const O=f.fn({...e,[S]:T,[E]:A});return{...O,data:{x:O.x-t,y:O.y-r}}}}},gW=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:c=()=>{},...f}=Dv(n,e),p=await j1(e,f),m=Od(t),y=Lv(t),E=Fy(t)==="y",{width:S,height:T}=r.floating;let A,O;m==="top"||m==="bottom"?(A=m,O=y===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(O=m,A=y==="end"?"top":"bottom");const F=T-p[A],H=S-p[O],D=!e.middlewareData.shift;let q=F,U=H;if(E){const te=S-p.left-p.right;U=y||D?xd(H,te):te}else{const te=T-p.top-p.bottom;q=y||D?xd(F,te):te}if(D&&!y){const te=fs(p.left,0),Z=fs(p.right,0),Ne=fs(p.top,0),Ze=fs(p.bottom,0);E?U=S-2*(te!==0||Z!==0?te+Z:fs(p.left,p.right)):q=T-2*(Ne!==0||Ze!==0?Ne+Ze:fs(p.top,p.bottom))}await c({...e,availableWidth:U,availableHeight:q});const V=await a.getDimensions(l.floating);return S!==V.width||T!==V.height?{reset:{rects:!0}}:{}}}};function p2(n){const e=ps(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=Ds(n),l=a?n.offsetWidth:t,c=a?n.offsetHeight:r,f=WE(t)!==l||WE(r)!==c;return f&&(t=l,r=c),{width:t,height:r,$:f}}function z1(n){return Dr(n)?n:n.contextElement}function Fv(n){const e=z1(n);if(!Ds(e))return Id(1);const t=e.getBoundingClientRect(),{width:r,height:a,$:l}=p2(e);let c=(l?WE(t.width):t.width)/r,f=(l?WE(t.height):t.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const yW=Id(0);function v2(n){const e=hs(n);return!H1()||!e.visualViewport?yW:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _W(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==hs(n)?!1:e}function Oh(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const a=n.getBoundingClientRect(),l=z1(n);let c=Id(1);e&&(r?Dr(r)&&(c=Fv(r)):c=Fv(n));const f=_W(l,t,r)?v2(l):Id(0);let p=(a.left+f.x)/c.x,m=(a.top+f.y)/c.y,y=a.width/c.x,E=a.height/c.y;if(l){const S=hs(l),T=r&&Dr(r)?hs(r):r;let A=S.frameElement;for(;A&&r&&T!==S;){const O=Fv(A),F=A.getBoundingClientRect(),H=ps(A),D=F.left+(A.clientLeft+parseFloat(H.paddingLeft))*O.x,q=F.top+(A.clientTop+parseFloat(H.paddingTop))*O.y;p*=O.x,m*=O.y,y*=O.x,E*=O.y,p+=D,m+=q,A=hs(A).frameElement}}return XE({width:y,height:E,x:p,y:m})}function CW(n){let{rect:e,offsetParent:t,strategy:r}=n;const a=Ds(t),l=Su(t);if(t===l)return e;let c={scrollLeft:0,scrollTop:0},f=Id(1);const p=Id(0);if((a||!a&&r!=="fixed")&&((Nd(t)!=="body"||$y(l))&&(c=JE(t)),Ds(t))){const m=Oh(t);f=Fv(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-c.scrollLeft*f.x+p.x,y:e.y*f.y-c.scrollTop*f.y+p.y}}function EW(n){return Array.from(n.getClientRects())}function m2(n){return Oh(Su(n)).left+JE(n).scrollLeft}function wW(n){const e=Su(n),t=JE(n),r=n.ownerDocument.body,a=fs(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),l=fs(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let c=-t.scrollLeft+m2(n);const f=-t.scrollTop;return ps(r).direction==="rtl"&&(c+=fs(e.clientWidth,r.clientWidth)-a),{width:a,height:l,x:c,y:f}}function bW(n,e){const t=hs(n),r=Su(n),a=t.visualViewport;let l=r.clientWidth,c=r.clientHeight,f=0,p=0;if(a){l=a.width,c=a.height;const m=H1();(!m||m&&e==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:l,height:c,x:f,y:p}}function SW(n,e){const t=Oh(n,!0,e==="fixed"),r=t.top+n.clientTop,a=t.left+n.clientLeft,l=Ds(n)?Fv(n):Id(1),c=n.clientWidth*l.x,f=n.clientHeight*l.y,p=a*l.x,m=r*l.y;return{width:c,height:f,x:p,y:m}}function g2(n,e,t){let r;if(e==="viewport")r=bW(n,t);else if(e==="document")r=wW(Su(n));else if(Dr(e))r=SW(e,t);else{const a=v2(n);r={...e,x:e.x-a.x,y:e.y-a.y}}return XE(r)}function y2(n,e){const t=Ih(n);return t===e||!Dr(t)||Hy(t)?!1:ps(t).position==="fixed"||y2(t,e)}function TW(n,e){const t=e.get(n);if(t)return t;let r=Md(n).filter(f=>Dr(f)&&Nd(f)!=="body"),a=null;const l=ps(n).position==="fixed";let c=l?Ih(n):n;for(;Dr(c)&&!Hy(c);){const f=ps(c),p=$1(c);!p&&f.position==="fixed"&&(a=null),(l?!p&&!a:!p&&f.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||$y(c)&&!p&&y2(n,c))?r=r.filter(y=>y!==c):a=f,c=Ih(c)}return e.set(n,r),r}function RW(n){let{element:e,boundary:t,rootBoundary:r,strategy:a}=n;const c=[...t==="clippingAncestors"?TW(e,this._c):[].concat(t),r],f=c[0],p=c.reduce((m,y)=>{const E=g2(e,y,a);return m.top=fs(E.top,m.top),m.right=xd(E.right,m.right),m.bottom=xd(E.bottom,m.bottom),m.left=fs(E.left,m.left),m},g2(e,f,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function kW(n){return p2(n)}function AW(n,e,t){const r=Ds(e),a=Su(e),l=t==="fixed",c=Oh(n,!0,l,e);let f={scrollLeft:0,scrollTop:0};const p=Id(0);if(r||!r&&!l)if((Nd(e)!=="body"||$y(a))&&(f=JE(e)),r){const m=Oh(e,!0,l,e);p.x=m.x+e.clientLeft,p.y=m.y+e.clientTop}else a&&(p.x=m2(a));return{x:c.left+f.scrollLeft-p.x,y:c.top+f.scrollTop-p.y,width:c.width,height:c.height}}function _2(n,e){return!Ds(n)||ps(n).position==="fixed"?null:e?e(n):n.offsetParent}function C2(n,e){const t=hs(n);if(!Ds(n))return t;let r=_2(n,e);for(;r&&iW(r)&&ps(r).position==="static";)r=_2(r,e);return r&&(Nd(r)==="html"||Nd(r)==="body"&&ps(r).position==="static"&&!$1(r))?t:r||aW(n)||t}const xW=async function(n){let{reference:e,floating:t,strategy:r}=n;const a=this.getOffsetParent||C2,l=this.getDimensions;return{reference:AW(e,await a(t),r),floating:{x:0,y:0,...await l(t)}}};function IW(n){return ps(n).direction==="rtl"}const OW={convertOffsetParentRelativeRectToViewportRelativeRect:CW,getDocumentElement:Su,getClippingRect:RW,getOffsetParent:C2,getElementRects:xW,getClientRects:EW,getDimensions:kW,getScale:Fv,isElement:Dr,isRTL:IW};function NW(n,e){let t=null,r;const a=Su(n);function l(){clearTimeout(r),t&&t.disconnect(),t=null}function c(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=YE(y),A=YE(a.clientWidth-(m+E)),O=YE(a.clientHeight-(y+S)),F=YE(m),D={rootMargin:-T+"px "+-A+"px "+-O+"px "+-F+"px",threshold:fs(0,xd(1,p))||1};let q=!0;function U(V){const te=V[0].intersectionRatio;if(te!==p){if(!q)return c();te?c(!1,te):r=setTimeout(()=>{c(!1,1e-7)},100)}q=!1}try{t=new IntersectionObserver(U,{...D,root:a.ownerDocument})}catch{t=new IntersectionObserver(U,D)}t.observe(n)}return c(!0),l}function E2(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,m=z1(n),y=a||l?[...m?Md(m):[],...Md(e)]:[];y.forEach(H=>{a&&H.addEventListener("scroll",t,{passive:!0}),l&&H.addEventListener("resize",t)});const E=m&&f?NW(m,t):null;let S=-1,T=null;c&&(T=new ResizeObserver(H=>{let[D]=H;D&&D.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,O=p?Oh(n):null;p&&F();function F(){const H=Oh(n);O&&(H.x!==O.x||H.y!==O.y||H.width!==O.width||H.height!==O.height)&&t(),O=H,A=requestAnimationFrame(F)}return t(),()=>{y.forEach(H=>{a&&H.removeEventListener("scroll",t),l&&H.removeEventListener("resize",t)}),E&&E(),T&&T.disconnect(),T=null,p&&cancelAnimationFrame(A)}}const MW=(n,e,t)=>{const r=new Map,a={platform:OW,...t},l={...a.platform,_c:r};return vW(n,e,{...a,platform:l})},PW=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?u2({element:r.current,padding:a}).fn(t):{}:r?u2({element:r,padding:a}).fn(t):{}}}};var ew=typeof document<"u"?P.useLayoutEffect:P.useEffect;function tw(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(!tw(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)&&!tw(n[l],e[l]))return!1}return!0}return n!==n&&e!==e}function w2(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function b2(n,e){const t=w2(n);return Math.round(e*t)/t}function S2(n){const e=P.useRef(n);return ew(()=>{e.current=n}),e}function DW(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:r=[],platform:a,elements:{reference:l,floating:c}={},transform:f=!0,whileElementsMounted:p,open:m}=n,[y,E]=P.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[S,T]=P.useState(r);tw(S,r)||T(r);const[A,O]=P.useState(null),[F,H]=P.useState(null),D=P.useCallback(me=>{me!=te.current&&(te.current=me,O(me))},[O]),q=P.useCallback(me=>{me!==Z.current&&(Z.current=me,H(me))},[H]),U=l||A,V=c||F,te=P.useRef(null),Z=P.useRef(null),Ne=P.useRef(y),Ze=S2(p),it=S2(a),Me=P.useCallback(()=>{if(!te.current||!Z.current)return;const me={placement:e,strategy:t,middleware:S};it.current&&(me.platform=it.current),MW(te.current,Z.current,me).then(he=>{const G={...he,isPositioned:!0};ze.current&&!tw(Ne.current,G)&&(Ne.current=G,pT.flushSync(()=>{E(G)}))})},[S,e,t,it]);ew(()=>{m===!1&&Ne.current.isPositioned&&(Ne.current.isPositioned=!1,E(me=>({...me,isPositioned:!1})))},[m]);const ze=P.useRef(!1);ew(()=>(ze.current=!0,()=>{ze.current=!1}),[]),ew(()=>{if(U&&(te.current=U),V&&(Z.current=V),U&&V){if(Ze.current)return Ze.current(U,V,Me);Me()}},[U,V,Me,Ze]);const ee=P.useMemo(()=>({reference:te,floating:Z,setReference:D,setFloating:q}),[D,q]),J=P.useMemo(()=>({reference:U,floating:V}),[U,V]),ye=P.useMemo(()=>{const me={position:t,left:0,top:0};if(!J.floating)return me;const he=b2(J.floating,y.x),G=b2(J.floating,y.y);return f?{...me,transform:"translate("+he+"px, "+G+"px)",...w2(J.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:he,top:G}},[t,f,J.floating,y.x,y.y]);return P.useMemo(()=>({...y,update:Me,refs:ee,elements:J,floatingStyles:ye}),[y,Me,ee,J,ye])}/*!
354
+ * tabbable 6.2.0
355
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
356
+ */var LW=["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])"],B1=LW.join(","),T2=typeof Element>"u",jy=T2?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nw=!T2&&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},rw=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",c=l||t&&e&&n(e.parentNode);return c},UW=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},FW=function(e,t,r){if(rw(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(B1));return t&&jy.call(e,B1)&&a.unshift(e),a=a.filter(r),a},$W=function n(e,t,r){for(var a=[],l=Array.from(e);l.length;){var c=l.shift();if(!rw(c,!1))if(c.tagName==="SLOT"){var f=c.assignedElements(),p=f.length?f:c.children,m=n(p,!0,r);r.flatten?a.push.apply(a,m):a.push({scopeParent:c,candidates:m})}else{var y=jy.call(c,B1);y&&r.filter(c)&&(t||!e.includes(c))&&a.push(c);var E=c.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(c),S=!rw(E,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(E&&S){var T=n(E===!0?c.children:E.children,!0,r);r.flatten?a.push.apply(a,T):a.push({scopeParent:c,candidates:T})}else l.unshift.apply(l,c.children)}}return a},R2=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},k2=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||UW(e))&&!R2(e)?0:e.tabIndex},HW=function(e,t){var r=k2(e);return r<0&&t&&!R2(e)?0:r},jW=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},A2=function(e){return e.tagName==="INPUT"},zW=function(e){return A2(e)&&e.type==="hidden"},BW=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},qW=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},VW=function(e){if(!e.name)return!0;var t=e.form||nw(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(c){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",c.message),!1}var l=qW(a,e.form);return!l||l===e},KW=function(e){return A2(e)&&e.type==="radio"},GW=function(e){return KW(e)&&!VW(e)},WW=function(e){var t,r=e&&nw(e),a=(t=r)===null||t===void 0?void 0:t.host,l=!1;if(r&&r!==e){var c,f,p;for(l=!!((c=a)!==null&&c!==void 0&&(f=c.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=nw(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},x2=function(e){var t=e.getBoundingClientRect(),r=t.width,a=t.height;return r===0&&a===0},YW=function(e,t){var r=t.displayCheck,a=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var l=jy.call(e,"details>summary:first-of-type"),c=l?e.parentElement:e;if(jy.call(c,"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=nw(e);if(p&&!p.shadowRoot&&a(p)===!0)return x2(e);e.assignedSlot?e=e.assignedSlot:!p&&m!==e.ownerDocument?e=m.host:e=p}e=f}if(WW(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return x2(e);return!1},QW=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 jy.call(t,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}t=t.parentElement}return!1},XW=function(e,t){return!(t.disabled||rw(t)||zW(t)||YW(t,e)||BW(t)||QW(t))},I2=function(e,t){return!(GW(t)||k2(t)<0||!XW(e,t))},JW=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ZW=function n(e){var t=[],r=[];return e.forEach(function(a,l){var c=!!a.scopeParent,f=c?a.scopeParent:a,p=HW(f,c),m=c?n(a.candidates):f;p===0?c?t.push.apply(t,m):t.push(f):r.push({documentOrder:l,tabIndex:p,item:a,isScope:c,content:m})}),r.sort(jW).reduce(function(a,l){return l.isScope?a.push.apply(a,l.content):a.push(l.content),a},[]).concat(t)},O2=function(e,t){t=t||{};var r;return t.getShadowRoot?r=$W([e],t.includeContainer,{filter:I2.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:JW}):r=FW(e,t.includeContainer,I2.bind(null,t)),ZW(r)},Pd=typeof document<"u"?P.useLayoutEffect:P.useEffect;function q1(){return q1=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},q1.apply(this,arguments)}let V1=!1,e9=0;const N2=()=>"floating-ui-"+e9++;function t9(){const[n,e]=P.useState(()=>V1?N2():void 0);return Pd(()=>{n==null&&e(N2())},[]),P.useEffect(()=>{V1||(V1=!0)},[]),n}const K1=uT["useId".toString()]||t9;function n9(){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 r9=P.createContext(null),o9=P.createContext(null),M2=()=>{var n;return((n=P.useContext(r9))==null?void 0:n.id)||null},G1=()=>P.useContext(o9);function zy(n){return"data-floating-ui-"+n}function P2(n){const e=P.useRef(n);return Pd(()=>{e.current=n}),e}const D2=zy("safe-polygon");function W1(n,e,t){return t&&!l2(t)?0:typeof n=="number"?n:n==null?void 0:n[e]}function i9(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:a,events:l,elements:{domReference:c,floating:f},refs:p}=n,{enabled:m=!0,delay:y=0,handleClose:E=null,mouseOnly:S=!1,restMs:T=0,move:A=!0}=e,O=G1(),F=M2(),H=P2(E),D=P2(y),q=P.useRef(),U=P.useRef(),V=P.useRef(),te=P.useRef(),Z=P.useRef(!0),Ne=P.useRef(!1),Ze=P.useRef(()=>{}),it=P.useCallback(()=>{var J;const ye=(J=a.current.openEvent)==null?void 0:J.type;return(ye==null?void 0:ye.includes("mouse"))&&ye!=="mousedown"},[a]);P.useEffect(()=>{if(!m)return;function J(){clearTimeout(U.current),clearTimeout(te.current),Z.current=!0}return l.on("dismiss",J),()=>{l.off("dismiss",J)}},[m,l]),P.useEffect(()=>{if(!m||!H.current||!t)return;function J(me){it()&&r(!1,me)}const ye=uc(f).documentElement;return ye.addEventListener("mouseleave",J),()=>{ye.removeEventListener("mouseleave",J)}},[f,t,r,m,H,a,it]);const Me=P.useCallback(function(J,ye){ye===void 0&&(ye=!0);const me=W1(D.current,"close",q.current);me&&!V.current?(clearTimeout(U.current),U.current=setTimeout(()=>r(!1,J),me)):ye&&(clearTimeout(U.current),r(!1,J))},[D,r]),ze=P.useCallback(()=>{Ze.current(),V.current=void 0},[]),ee=P.useCallback(()=>{if(Ne.current){const J=uc(p.floating.current).body;J.style.pointerEvents="",J.removeAttribute(D2),Ne.current=!1}},[p]);return P.useEffect(()=>{if(!m)return;function J(){return a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1}function ye(G){if(clearTimeout(U.current),Z.current=!1,S&&!l2(q.current)||T>0&&W1(D.current,"open")===0)return;const ge=W1(D.current,"open",q.current);ge?U.current=setTimeout(()=>{r(!0,G)},ge):r(!0,G)}function me(G){if(J())return;Ze.current();const ge=uc(f);if(clearTimeout(te.current),H.current){t||clearTimeout(U.current),V.current=H.current({...n,tree:O,x:G.clientX,y:G.clientY,onClose(){ee(),ze(),Me(G)}});const ne=V.current;ge.addEventListener("mousemove",ne),Ze.current=()=>{ge.removeEventListener("mousemove",ne)};return}(q.current==="touch"?!Uv(f,G.relatedTarget):!0)&&Me(G)}function he(G){J()||H.current==null||H.current({...n,tree:O,x:G.clientX,y:G.clientY,onClose(){ee(),ze(),Me(G)}})(G)}if(Dr(c)){const G=c;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)}}},[c,f,m,n,S,T,A,Me,ze,ee,r,t,O,D,H,a]),Pd(()=>{var J;if(m&&t&&(J=H.current)!=null&&J.__options.blockPointerEvents&&it()){const he=uc(f).body;if(he.setAttribute(D2,""),he.style.pointerEvents="none",Ne.current=!0,Dr(c)&&f){var ye,me;const G=c,ge=O==null||(ye=O.nodesRef.current.find($=>$.id===F))==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,F,f,c,O,H,a,it]),Pd(()=>{t||(q.current=void 0,ze(),ee())},[t,ze,ee]),P.useEffect(()=>()=>{ze(),clearTimeout(U.current),clearTimeout(te.current),ee()},[m,c,ze,ee]),P.useMemo(()=>{if(!m)return{};function J(ye){q.current=ye.pointerType}return{reference:{onPointerDown:J,onPointerEnter:J,onMouseMove(ye){t||T===0||(clearTimeout(te.current),te.current=setTimeout(()=>{Z.current||r(!0,ye.nativeEvent)},T))}},floating:{onMouseEnter(){clearTimeout(U.current)},onMouseLeave(ye){l.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),Me(ye.nativeEvent,!1)}}}},[l,m,T,t,r,Me])}function Y1(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(c=>{var f;return a.parentId===c.id&&((f=a.context)==null?void 0:f.open)})}),t=t.concat(r);return t}const L2=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function U2(n,e){const t=O2(n,L2());e==="prev"&&t.reverse();const r=t.indexOf(s2(uc(n)));return t.slice(r+1)[0]}function a9(){return U2(document.body,"next")}function s9(){return U2(document.body,"prev")}function Q1(n,e){const t=e||n.currentTarget,r=n.relatedTarget;return!r||!Uv(t,r)}function l9(n){O2(n,L2()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function c9(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 F2={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 u9;function $2(n){n.key==="Tab"&&(n.target,clearTimeout(u9))}const H2=P.forwardRef(function(e,t){const[r,a]=P.useState();Pd(()=>(dW()&&a("button"),document.addEventListener("keydown",$2),()=>{document.removeEventListener("keydown",$2)}),[]);const l={ref:t,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[zy("focus-guard")]:"",style:F2};return P.createElement("span",q1({},e,l))}),j2=P.createContext(null);function d9(n){let{id:e,root:t}=n===void 0?{}:n;const[r,a]=P.useState(null),l=K1(),c=f9(),f=P.useMemo(()=>({id:e,root:t,portalContext:c,uniqueId:l}),[e,t,c,l]),p=P.useRef();return Pd(()=>()=>{r==null||r.remove()},[r,f]),Pd(()=>{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=zy("portal");if(T){const O=document.createElement("div");O.id=S,O.setAttribute(A,""),T.appendChild(O),a(O)}else{let O=y||(E==null?void 0:E.portalNode);O&&!Dr(O)&&(O=O.current),O=O||document.body;let F=null;m&&(F=document.createElement("div"),F.id=m,O.appendChild(F));const H=document.createElement("div");H.id=S,H.setAttribute(A,""),O=F||O,O.appendChild(H),a(H)}},[f]),r}function z2(n){let{children:e,id:t,root:r=null,preserveTabOrder:a=!0}=n;const l=d9({id:t,root:r}),[c,f]=P.useState(null),p=P.useRef(null),m=P.useRef(null),y=P.useRef(null),E=P.useRef(null),S=!!c&&!c.modal&&c.open&&a&&!!(r||l);return P.useEffect(()=>{if(!l||!a||c!=null&&c.modal)return;function T(A){l&&Q1(A)&&(A.type==="focusin"?c9:l9)(l)}return l.addEventListener("focusin",T,!0),l.addEventListener("focusout",T,!0),()=>{l.removeEventListener("focusin",T,!0),l.removeEventListener("focusout",T,!0)}},[l,a,c==null?void 0:c.modal]),P.createElement(j2.Provider,{value:P.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:y,afterInsideRef:E,portalNode:l,setFocusManagerState:f}),[a,l])},S&&l&&P.createElement(H2,{"data-type":"outside",ref:p,onFocus:T=>{if(Q1(T,l)){var A;(A=y.current)==null||A.focus()}else{const O=s9()||(c==null?void 0:c.refs.domReference.current);O==null||O.focus()}}}),S&&l&&P.createElement("span",{"aria-owns":l.id,style:F2}),l&&pT.createPortal(e,l),S&&l&&P.createElement(H2,{"data-type":"outside",ref:m,onFocus:T=>{if(Q1(T,l)){var A;(A=E.current)==null||A.focus()}else{const O=a9()||(c==null?void 0:c.refs.domReference.current);O==null||O.focus(),c!=null&&c.closeOnFocusOut&&(c==null||c.onOpenChange(!1,T.nativeEvent))}}}))}const f9=()=>P.useContext(j2),h9=uT["useInsertionEffect".toString()]||(n=>n());function ow(n){const e=P.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return h9(()=>{e.current=n}),P.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 p9={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},v9={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},m9=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 B2(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,events:a,nodeId:l,elements:{reference:c,domReference:f,floating:p},dataRef:m}=n,{enabled:y=!0,escapeKey:E=!0,outsidePress:S=!0,outsidePressEvent:T="pointerdown",referencePress:A=!1,referencePressEvent:O="pointerdown",ancestorScroll:F=!1,bubbles:H}=e,D=G1(),q=M2()!=null,U=ow(typeof S=="function"?S:()=>!1),V=typeof S=="function"?U:S,te=P.useRef(!1),{escapeKeyBubbles:Z,outsidePressBubbles:Ne}=m9(H),Ze=ow(Me=>{if(!t||!y||!E||Me.key!=="Escape")return;const ze=D?Y1(D.nodesRef.current,l):[];if(!Z&&(Me.stopPropagation(),ze.length>0)){let ee=!0;if(ze.forEach(J=>{var ye;if((ye=J.context)!=null&&ye.open&&!J.context.dataRef.current.__escapeKeyBubbles){ee=!1;return}}),!ee)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,fW(Me)?Me.nativeEvent:Me)}),it=ow(Me=>{const ze=te.current;if(te.current=!1,ze||typeof V=="function"&&!V(Me))return;const ee=pW(Me),J="["+zy("inert")+"]",ye=uc(p).querySelectorAll(J);let me=Dr(ee)?ee:null;for(;me&&!Hy(me);){const ge=Ih(me);if(ge===uc(p).body||!Dr(ge))break;me=ge}if(ye.length&&Dr(ee)&&!hW(ee)&&!Uv(ee,p)&&Array.from(ye).every(ge=>!Uv(me,ge)))return;if(Ds(ee)&&p){const ge=ee.clientWidth>0&&ee.scrollWidth>ee.clientWidth,$=ee.clientHeight>0&&ee.scrollHeight>ee.clientHeight;let ne=$&&Me.offsetX>ee.clientWidth;if($&&ps(ee).direction==="rtl"&&(ne=Me.offsetX<=ee.offsetWidth-ee.clientWidth),ne||ge&&Me.offsetY>ee.clientHeight)return}const he=D&&Y1(D.nodesRef.current,l).some(ge=>{var $;return ZE(Me,($=ge.context)==null?void 0:$.elements.floating)});if(ZE(Me,p)||ZE(Me,f)||he)return;const G=D?Y1(D.nodesRef.current,l):[];if(G.length>0){let ge=!0;if(G.forEach($=>{var ne;if((ne=$.context)!=null&&ne.open&&!$.context.dataRef.current.__outsidePressBubbles){ge=!1;return}}),!ge)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:q?{preventScroll:!0}:cW(Me)||uW(Me)}}),r(!1,Me)});return P.useEffect(()=>{if(!t||!y)return;m.current.__escapeKeyBubbles=Z,m.current.__outsidePressBubbles=Ne;function Me(J){r(!1,J)}const ze=uc(p);E&&ze.addEventListener("keydown",Ze),V&&ze.addEventListener(T,it);let ee=[];return F&&(Dr(f)&&(ee=Md(f)),Dr(p)&&(ee=ee.concat(Md(p))),!Dr(c)&&c&&c.contextElement&&(ee=ee.concat(Md(c.contextElement)))),ee=ee.filter(J=>{var ye;return J!==((ye=ze.defaultView)==null?void 0:ye.visualViewport)}),ee.forEach(J=>{J.addEventListener("scroll",Me,{passive:!0})}),()=>{E&&ze.removeEventListener("keydown",Ze),V&&ze.removeEventListener(T,it),ee.forEach(J=>{J.removeEventListener("scroll",Me)})}},[m,p,f,c,E,V,T,t,r,F,y,Z,Ne,Ze,it]),P.useEffect(()=>{te.current=!1},[V,T]),P.useMemo(()=>y?{reference:{onKeyDown:Ze,[p9[O]]:Me=>{A&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,Me.nativeEvent))}},floating:{onKeyDown:Ze,[v9[T]]:()=>{te.current=!0}}}:{},[y,a,A,T,O,r,Ze])}let X1;process.env.NODE_ENV!=="production"&&(X1=new Set);function q2(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&&!Dr(n.elements.reference)){var c;if(!((c=X1)!=null&&c.has(Z))){var f;(f=X1)==null||f.add(Z),console.error(Z)}}}const[p,m]=P.useState(null),y=((e=n.elements)==null?void 0:e.reference)||p,E=DW(n),S=G1(),T=ow((Z,Ne)=>{Z&&(O.current.openEvent=Ne),r==null||r(Z,Ne)}),A=P.useRef(null),O=P.useRef({}),F=P.useState(()=>n9())[0],H=K1(),D=P.useCallback(Z=>{const Ne=Dr(Z)?{getBoundingClientRect:()=>Z.getBoundingClientRect(),contextElement:Z}:Z;E.refs.setReference(Ne)},[E.refs]),q=P.useCallback(Z=>{(Dr(Z)||Z===null)&&(A.current=Z,m(Z)),(Dr(E.refs.reference.current)||E.refs.reference.current===null||Z!==null&&!Dr(Z))&&E.refs.setReference(Z)},[E.refs]),U=P.useMemo(()=>({...E.refs,setReference:q,setPositionReference:D,domReference:A}),[E.refs,q,D]),V=P.useMemo(()=>({...E.elements,domReference:y}),[E.elements,y]),te=P.useMemo(()=>({...E,refs:U,elements:V,dataRef:O,nodeId:a,floatingId:H,events:F,open:t,onOpenChange:T}),[E,a,H,F,t,T,U,V]);return Pd(()=>{const Z=S==null?void 0:S.nodesRef.current.find(Ne=>Ne.id===a);Z&&(Z.context=te)}),P.useMemo(()=>({...E,context:te,refs:U,elements:V}),[E,U,V,te])}function g9(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:a,events:l,refs:c,elements:{floating:f,domReference:p}}=n,{enabled:m=!0,keyboardOnly:y=!0}=e,E=P.useRef(""),S=P.useRef(!1),T=P.useRef();return P.useEffect(()=>{if(!m)return;const O=uc(f).defaultView||window;function F(){!t&&Ds(p)&&p===s2(uc(p))&&(S.current=!0)}return O.addEventListener("blur",F),()=>{O.removeEventListener("blur",F)}},[f,p,t,m]),P.useEffect(()=>{if(!m)return;function A(O){(O.type==="referencePress"||O.type==="escapeKey")&&(S.current=!0)}return l.on("dismiss",A),()=>{l.off("dismiss",A)}},[l,m]),P.useEffect(()=>()=>{clearTimeout(T.current)},[]),P.useMemo(()=>m?{reference:{onPointerDown(A){let{pointerType:O}=A;E.current=O,S.current=!!(O&&y)},onMouseLeave(){S.current=!1},onFocus(A){var O;S.current||A.type==="focus"&&((O=a.current.openEvent)==null?void 0:O.type)==="mousedown"&&ZE(a.current.openEvent,p)||r(!0,A.nativeEvent)},onBlur(A){S.current=!1;const O=A.relatedTarget,F=Dr(O)&&O.hasAttribute(zy("focus-guard"))&&O.getAttribute("data-type")==="outside";T.current=setTimeout(()=>{Uv(c.floating.current,O)||Uv(p,O)||F||r(!1,A.nativeEvent)})}}}:{},[m,y,p,c,a,r])}function J1(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(c=>{let[f,p]=c;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 V2(n){n===void 0&&(n=[]);const e=n,t=P.useCallback(l=>J1(l,n,"reference"),e),r=P.useCallback(l=>J1(l,n,"floating"),e),a=P.useCallback(l=>J1(l,n,"item"),n.map(l=>l==null?void 0:l.item));return P.useMemo(()=>({getReferenceProps:t,getFloatingProps:r,getItemProps:a}),[t,r,a])}function y9(n,e){e===void 0&&(e={});const{open:t,floatingId:r}=n,{enabled:a=!0,role:l="dialog"}=e,c=K1();return P.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:c}},floating:{...f,...l==="menu"&&{"aria-labelledby":c}}}:{}},[a,l,t,r,c])}var _9=["title","placement","children","style","enterDelay"],C9=Nt.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;}"],Mv(bu.typography),Pv(bu.spacings),vl(bu.border),bu.background),E9=Nt.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],bu.entities.arrow.width,bu.entities.arrow.height),w9=Nt.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],bu.entities.arrow.width,bu.entities.arrow.height,bu.background),By=P.forwardRef(function(e,t){var r=e.title,a=e.placement,l=a===void 0?"bottom":a,c=e.children,f=e.style,p=e.enterDelay,m=p===void 0?100:p,y=zn(e,_9),E=P.useRef(null),S=P.useState(!1),T=Eu(S,2),A=T[0],O=T[1],F=r!=="",H=q2({placement:l,open:A,onOpenChange:O,middleware:[f2(14),d2(),h2({padding:8}),PW({element:E})],whileElementsMounted:E2}),D=H.x,q=H.y,U=H.refs,V=H.strategy,te=H.context,Z=H.middlewareData.arrow,Ne=Z===void 0?{}:Z,Ze=Ne.x,it=Ne.y,Me=H.placement,ze=P.useMemo(function(){return Ly(U.setReference,c==null?void 0:c.ref)},[U.setReference,c==null?void 0:c.ref]),ee=P.useMemo(function(){return Ly(U.setFloating,t)},[U.setFloating,t]),J=V2([i9(te,{delay:{open:m}}),g9(te),y9(te,{role:"tooltip"}),B2(te)]),ye=J.getReferenceProps,me=J.getFloatingProps;P.useEffect(function(){var $={top:"bottom",right:"left",bottom:"top",left:"right"}[Me.split("-")[0]],ne="none";switch($){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 ke;Object.assign(E.current.style,(ke={left:Ze!=null?"".concat(Ze,"px"):"",top:it!=null?"".concat(it,"px"):"",right:"",bottom:""},o1(ke,$,"-6px"),o1(ke,"transform",ne),ke))}});var he=P.cloneElement(c,ve({},ye(ve({ref:ze},c.props)))),G=YD(U.domReference.current),ge=ce.jsxs(C9,ve(ve(ve({},y),me({ref:ee,style:ve(ve({},f),{},{position:V,top:q||0,left:D||0})})),{},{children:[r,ce.jsx(E9,{ref:E,children:ce.jsx(w9,{className:"arrowSvg",children:ce.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 ce.jsxs(ce.Fragment,{children:[G?ce.jsx(ce.Fragment,{children:F&&A&&ge}):ce.jsx(z2,{id:"eds-tooltip-container",children:F&&A&&ge}),he]})}),b9=["children","multiple","selectedIndexes","onChange"],S9=P.forwardRef(function(e,t){var r=e.children,a=e.multiple,l=e.selectedIndexes,c=e.onChange,f=zn(e,b9),p=P.useState(l||[]),m=Eu(p,2),y=m[0],E=m[1];P.useEffect(function(){Array.isArray(l)&&E(l)},[l]);function S(A,O,F){var H=A;if(P.isValidElement(A)&&A.type===JD){var D={"aria-pressed":O?!0:void 0,variant:O?"contained":"outlined",onClick:function(U){var V,te;(V=H.props)===null||V===void 0||(te=V.onClick)===null||te===void 0||te.call(V,U);var Z=[F];a&&(Z=y.includes(F)?y.filter(function(Ne){return Ne!==F}):[].concat(e2(y),[F])),E(Z),c&&c(Z)}};return P.cloneElement(A,D)}}var T=P.Children.map(r,function(A,O){var F=y.includes(O),H=A;if(P.isValidElement(A)&&A.type===By){var D=P.Children.map(H.props.children,function(q){return S(q,F,O)});return P.cloneElement(H,null,D[0])}else return S(H,F,O)});return ce.jsx(ZD,ve(ve({ref:t},f),{},{children:T}))}),Nh=JD;Nh.Group=ZD,Nh.Toggle=S9,Nh.Group.displayName="Button.Group",Nh.Toggle.displayName="Button.Toggle";function T9(n){if(n==null)throw new TypeError("Cannot destructure "+n)}function Z1(){return Z1=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},Z1.apply(this,arguments)}var ek={},K2=0,R9=function(e){ek=ve(ve({},ek),e)},k9=function(e){return K2+=1,{icon:ek[e],count:K2}},A9=["size","color","name","rotation","title","data"],x9=function(e){var t=e.rotation;return t?"transform: rotate(".concat(t,"deg)"):""},I9=Nt.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"})(["",""],x9),O9=Nt.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"})([""]),N9=function(e){return{icon:e,count:Math.floor(Math.random()*1e3)}},M9=function(e,t,r){var a=t?N9(t):k9(e),l=a.icon,c=a.count;if(r<24){var f;l=((f=l.sizes)===null||f===void 0?void 0:f.small)||l}return{icon:l,count:c}},P9=P.forwardRef(function(e,t){var r=e.size,a=e.color,l=a===void 0?"currentColor":a,c=e.name,f=e.rotation,p=e.title,m=e.data,y=zn(e,A9),E=M9(c,m,r),S=E.icon,T=E.count;if(typeof S>"u")throw Error('Icon "'.concat(c,'" not found. Have you added it using Icon.add() or using data props?'));var A=r||parseInt(S.width),O=r||parseInt(S.height),F={height:A,width:O,fill:l,viewBox:"0 0 ".concat(O," ").concat(A),rotation:f,name:c,"aria-hidden":!0},H={d:S.svgPathData,$height:S.height?S.height:r,size:r||S.height},D="";return p&&(D="".concat(S.prefix,"-").concat(S.name,"-").concat(T),F=ve(ve({},F),{},{title:p,role:"img","aria-hidden":void 0,"aria-labelledby":D})),ce.jsxs(I9,ve(ve(ve({},F),y),{},{ref:t,children:[p&&ce.jsx("title",{id:D,children:p}),ce.jsx(O9,ve({"data-testid":"eds-icon-path"},H))]}))}),ml=P9;ml.add=R9;var D9={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"},L9={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"},U9={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"},F9={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"}}},$9={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"}}},H9={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"}}},j9={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"},iw=nn.colors.ui,z9=iw.background__default.rgba,B9=iw.background__info.rgba,q9=iw.background__warning.rgba,V9=iw.background__danger.rgba,aw=nn.spacings.comfortable.medium,K9=nn.shape.corners.borderRadius,Mh={background:z9,border:{type:"border",radius:K9},spacings:{left:aw,bottom:aw,right:aw,top:aw}},G9={background:B9},W9={background:V9},Y9={background:q9};const Q9=Object.freeze(Object.defineProperty({__proto__:null,danger:W9,info:G9,primary:Mh,warning:Y9},Symbol.toStringTag,{value:"Module"}));var X9=nn.elevation,J9=nn.colors.ui.background__default.rgba,Z9={background:J9},e7=["elevation"],t7=Nt.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],Z9.background,function(n){var e=n.$elevation;return e}),tk=P.forwardRef(function(e,t){var r,a=e.elevation,l=zn(e,e7),c=ve(ve({},l),{},{$elevation:(r=X9[a])!==null&&r!==void 0?r:"none"});return ce.jsx(t7,ve(ve({},c),{},{ref:t}))}),n7=["children","variant","elevation"],r7=Mh,o7=Nt(tk).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},vl(r7.border)),i7=P.forwardRef(function(e,t){var r=e.children,a=e.variant,l=a===void 0?"default":a,c=e.elevation,f=c===void 0?"none":c,p=zn(e,n7),m=l==="default"?"primary":l,y=Q9[m],E=ve({ref:t,background:y.background},p);return ce.jsx(o7,ve(ve({elevation:f},E),{},{children:r}))}),nk=nn.typography,a7=nn.colors,s7=nn.interactions.focused.width,l7=nk.heading,c7=nk.paragraph,Ph=a7.interactive,u7=Ph.primary__resting.rgba,d7=Ph.secondary__resting.rgba,f7=Ph.danger__resting.rgba,h7=Ph.warning__resting.rgba,p7=Ph.success__resting.rgba,v7=Ph.disabled__text.rgba,m7=Ph.focus.rgba,G2={primary:u7,secondary:d7,danger:f7,warning:h7,success:p7,disabled:v7},W2=ve(ve({},l7),c7),Y2={states:{focus:{outline:{width:s7,color:m7,style:"dashed",type:"outline",offset:"2px"}}}},g7=["variant","children","bold","italic","link","color","group","token","as"],y7=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"}},_7=function(e,t){return!t&&W2[e]?W2[e]:nk[t][e]},C7=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof G2[e]>"u"?e:G2[e]},E7=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":"")},w7=Nt.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(n){var e=n.typography,t=n.$link;return Mv(e,t)},function(n){var e=n.$color;return fn({color:C7(e)})},function(n){var e=n.lines;return e>0&&fn(["&{display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"],e)},function(n){var e=n.$link;return e&&fn(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],wu(Y2.states.focus.outline),wu(Y2.states.focus.outline))}),Dd=P.forwardRef(function(e,t){var r=e.variant,a=r===void 0?"body_short":r,l=e.children,c=e.bold,f=e.italic,p=e.link,m=e.color,y=e.group,E=e.token,S=e.as,T=zn(e,g7),A=S||y7(a,p),O=E7(a,c,f,p),F=_7(O,y);if(typeof F>"u")throw new Error('Typography variant not found for variant "'.concat(O,'" ("').concat(a,'") & group "').concat(y||"",'"'));return ce.jsx(w7,ve(ve({as:A,typography:ve(ve({},F),E),$link:p,ref:t,$color:m},T),{},{children:l}))}),b7=["children","alignRight","meta"],sw=Mh.spacings,S7=Nt.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},sw.right,sw.left,sw.top,sw.bottom),T7=P.forwardRef(function(e,t){var r=e.children,a=e.alignRight,l=a===void 0?!1:a,c=e.meta,f=c===void 0?"":c,p=zn(e,b7),m=l?"flex-end":"flex-start",y=ve({ref:t,justifyContent:m},p);return ce.jsxs(S7,ve(ve({},y),{},{children:[r,f!==""&&ce.jsx(Dd,{variant:"caption",children:f})]}))}),R7=["children"],rk=Mh.spacings,k7=Nt.div.withConfig({displayName:"CardContent__StyledCardContent",componentId:"sc-esm4ym-0"})(["display:grid;padding:0 "," 0 ",";&:last-child{padding-bottom:",";}"],rk.right,rk.left,rk.bottom),A7=P.forwardRef(function(e,t){var r=e.children,a=zn(e,R7);return ce.jsx(k7,ve(ve({ref:t},a),{},{children:r}))}),x7=["children","fullWidth"],Ld=Mh.spacings,Ud=Mh.border,I7=Nt.div.withConfig({displayName:"CardMedia__StyledCardMedia",componentId:"sc-kr8q9c-0"})(["display:flex;width:auto;",""],function(n){var e=n.fullWidth;return e?fn(["> *{width:100%;}&:first-child{img{border-top-right-radius:",";border-top-left-radius:",";}}&:last-child{img{border-bottom-right-radius:",";border-bottom-left-radius:",";}}"],Ud.type==="border"&&Ud.radius,Ud.type==="border"&&Ud.radius,Ud.type==="border"&&Ud.radius,Ud.type==="border"&&Ud.radius):fn(["padding:0 "," 0 ",";&:first-child{padding:"," "," 0 ",";}&:last-child{padding:0 "," "," ",";}> *{width:100%;}"],Ld.right,Ld.left,Ld.top,Ld.right,Ld.left,Ld.right,Ld.bottom,Ld.left)}),O7=P.forwardRef(function(e,t){var r=e.children,a=e.fullWidth,l=a===void 0?!1:a,c=zn(e,x7),f=ve(ve({},c),{},{ref:t,fullWidth:l});return ce.jsx(I7,ve(ve({},f),{},{children:r}))}),N7=["children"],qy=Mh.spacings,M7=Nt.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:",";}"],qy.right,qy.left,qy.left,qy.top,qy.bottom),P7=P.forwardRef(function(e,t){var r=e.children,a=zn(e,N7),l=ve(ve({},a),{},{ref:t});return ce.jsx(M7,ve(ve({},l),{},{children:r}))}),D7=["children"],L7=Nt.div.withConfig({displayName:"CardHeaderTitle__StyledCardHeaderTitle",componentId:"sc-11m80r3-0"})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]),U7=P.forwardRef(function(e,t){var r=e.children,a=zn(e,D7),l=ve(ve({},a),{},{ref:t});return ce.jsx(L7,ve(ve({},l),{},{children:r}))}),vs=i7;vs.Actions=T7,vs.Content=A7,vs.Header=P7,vs.Media=O7,vs.HeaderTitle=U7,vs.Actions.displayName="Card.Actions",vs.Content.displayName="Card.Content",vs.Header.displayName="Card.Header",vs.Media.displayName="Card.Media",vs.HeaderTitle.displayName="Card.HeaderTitle";var Q2=nn.colors,lw=nn.spacings.comfortable,F7=nn.typography.navigation,$7={height:"64px",background:Q2.ui.background__default.rgba,typography:F7.menu_title,spacings:{left:lw.large,right:lw.large,top:lw.small,bottom:lw.small},border:{type:"bordergroup",bottom:{style:"solid",color:Q2.ui.background__light.rgba,width:"2px"}},modes:{compact:{}}},H7=["children","elevation","sticky"],j7=Nt(tk).withConfig({displayName:"TopBar__StyledTopBar",componentId:"sc-1yj236q-0"})(function(n){var e=n.theme,t=n.sticky;return fn(["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,vl(e.border),Pv(e.spacings),Mv(e.typography),t&&fn(["position:sticky;top:0;z-index:1100;"]))}),z7=P.forwardRef(function(e,t){var r=e.children,a=e.elevation,l=a===void 0?"none":a,c=e.sticky,f=c===void 0?!0:c,p=zn(e,H7),m=GE(),y=m.density,E=KE({density:y},$7),S=ve(ve({},p),{},{ref:t});return ce.jsx(HE,{theme:E,children:ce.jsx(j7,ve(ve({forwardedAs:"header",elevation:l,sticky:f},S),{},{children:r}))})}),B7=["children"],q7=Nt.div.withConfig({displayName:"Actions__StyledActions",componentId:"sc-1251ang-0"})(["grid-area:right;text-align:right;align-items:center;display:flex;"]),V7=P.forwardRef(function(e,t){var r=e.children,a=zn(e,B7);return ce.jsx(q7,ve(ve({ref:t},a),{},{children:r}))}),K7=["children"],G7=Nt.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;"]),W7=P.forwardRef(function(e,t){var r=e.children,a=zn(e,K7);return ce.jsx(G7,ve(ve({ref:t},a),{},{children:r}))}),Y7=["children"],Q7=Nt.div.withConfig({displayName:"CustomContent__StyledCustomContent",componentId:"sc-d0e83a-0"})(["grid-area:center;"]),X7=P.forwardRef(function(e,t){var r=e.children,a=zn(e,Y7);return ce.jsx(Q7,ve(ve({ref:t},a),{},{children:r}))}),Tu=z7;Tu.Actions=V7,Tu.Header=W7,Tu.CustomContent=X7,Tu.Actions.displayName="Topbar.Actions",Tu.Header.displayName="Topbar.Header",Tu.CustomContent.displayName="Topbar.CustomContent";var ok=nn.colors.ui,J7=ok.background__default.rgba,Z7=ok.background__light.rgba,eY=ok.background__medium.rgba,X2=nn.spacings.comfortable,J2=X2.small,Z2=X2.medium,eL={lighter:{background:J7},light:{background:Z7},mediumColor:{background:eY}},tY={spacings:{top:J2,bottom:J2}},nY={spacings:{top:Z2,bottom:Z2}};const tL=Object.freeze(Object.defineProperty({__proto__:null,divider:eL,medium:nY,small:tY},Symbol.toStringTag,{value:"Module"}));var rY=["color","variant","size"],oY=eL,iY=Nt.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 fn(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],e,t,r,a,a)}),ik=P.forwardRef(function(e,t){var r=e.color,a=r===void 0?"medium":r,l=e.variant,c=l===void 0?"medium":l,f=e.size,p=f===void 0?"1":f,m=zn(e,rY),y=a==="medium"?"mediumColor":a,E=ve({backgroundColor:oY[y].background,marginTop:tL[c].spacings.top,marginBottom:tL[c].spacings.bottom,dividerHeight:parseInt(p)},m);return ce.jsx(iY,ve(ve({},E),{},{ref:t}))}),aY=nn.colors.logo.fill_positive.rgba,sY={background:aY},lY=["variant","value","size"],$v=pD(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]),cY=pD(["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;}"]),uY=Nt.svg.withConfig({displayName:"StarProgress__Svg",componentId:"sc-c0byj9-0"})(["fill:",";",""],sY.background,function(n){var e=n.variant,t=n.progress;return e==="indeterminate"?fn(["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;}}"],$v,$v,$v,$v,$v,$v):fn(["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:",";}}"],cY,t>90?"running":"paused",t>80?"running":"paused",t>60?"running":"paused",t>40?"running":"paused",t>20?"running":"paused",t<=20?"running":"paused")}),dY=P.forwardRef(function(e,t){var r=e.variant,a=r===void 0?"indeterminate":r,l=e.value,c=l===void 0?null:l,f=e.size,p=f===void 0?48:f,m=zn(e,lY),y=Math.round(c),E=p*1.2,S=p,T=ve(ve({},m),{},{ref:t,variant:a,progress:y});return a==="determinate"&&c!==void 0&&(T["aria-valuenow"]=y,T["aria-valuemin"]=0,T["aria-valuemax"]=100),ce.jsxs(uY,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:[ce.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"}),ce.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"}),ce.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"}),ce.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"}),ce.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"}),ce.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"})]}))}),nL={focusedIndex:-1,initialFocus:null,onClose:null},rL=P.createContext(nL),fY=function(e){var t=e.children,r=P.useState(nL),a=Eu(r,2),l=a[0],c=a[1],f=l.focusedIndex,p=l.initialFocus,m=l.onClose,y=function(O){c(function(F){return ve(ve({},F),{},{focusedIndex:O})})},E=function(O){c(function(F){return ve(ve({},F),{},{initialFocus:O})})},S=function(O){var F=function(){y(-1),E(null),O()};c(function(H){return ve(ve({},H),{},{onClose:F})})},T={setFocusedIndex:y,focusedIndex:f,setInitialFocus:E,initialFocus:p,setOnClose:S,onClose:m};return ce.jsx(rL.Provider,{value:T,children:t})},ak=function(){return P.useContext(rL)},sk=nn.colors,hY=sk.ui.background__default.rgba,Hv=sk.interactive,pY=Hv.primary__selected_highlight.rgba,vY=Hv.primary__resting.rgba,mY=Hv.focus.rgba,gY=Hv.disabled__fill.rgba,yY=Hv.disabled__text.rgba,_Y=Hv.table__header__fill_hover.rgba,CY=sk.text.static_icons__default.rgba,lk=nn.spacings.comfortable,oL=lk.medium,jv=lk.large,zv=lk.small,ck=nn.typography.navigation.menu_title,Bv={background:hY,spacings:{top:zv,bottom:zv,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:ve(ve({},ck),{},{color:CY}),entities:{icon:{states:{disabled:{typography:{color:gY}}}},item:{spacings:{left:jv,right:jv,top:oL,bottom:oL},states:{active:{typography:ve(ve({},ck),{},{color:vY}),background:pY},focus:{outline:{color:mY,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:_Y},disabled:{typography:ve(ve({},ck),{},{color:yY})}}},title:{spacings:{left:jv,right:jv,top:zv,bottom:zv}}},modes:{compact:{entities:{item:{spacings:{left:jv,right:jv,top:zv,bottom:zv}}}}}},EY=["children","disabled","active","index","as","onClick","closeMenuOnClick"],wY=Bv.typography,iL=Bv.entities,cw=iL.item.states,aL=cw.active,bY=cw.focus,SY=cw.hover,TY=cw.disabled,RY=iL.icon,kY=Nt.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;"," "," "," ",""],Mv(wY),function(n){var e=n.theme;return Pv(e.entities.item.spacings)},function(n){var e=n.$active;return e&&fn(["background:",";*{color:",";}"],aL.background,aL.typography.color)},function(n){var e=n.disabled;return e?fn(["*{color:",";}svg{fill:",";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],TY.typography.color,RY.states.disabled.typography.color):fn(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:",";}}&:focus{z-index:3;","}"],SY.background,wu(bY.outline))}),AY=Nt.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;"]),uw=P.forwardRef(function(e,t){var r=e.children,a=e.disabled,l=e.active,c=e.index,f=c===void 0?0:c,p=e.as,m=p===void 0?"button":p,y=e.onClick,E=e.closeMenuOnClick,S=E===void 0?!0:E,T=zn(e,EY),A=ak(),O=A.focusedIndex,F=A.setFocusedIndex,H=A.onClose,D=function(te){O!==te&&F(te)},q=f===O,U=ve(ve({},T),{},{as:m,disabled:a,$isFocused:q});return ce.jsx(kY,ve(ve({},U),{},{$active:l,ref:Ly(t,function(V){q&&requestAnimationFrame(function(){V!==null&&V.focus()})}),onFocus:function(){return D(f)},onClick:function(te){y&&(y(te),H!==null&&S&&H(te))},children:ce.jsx(AY,{children:r})}))});uw.displayName="MenuItem";var xY=Nt.div.attrs(function(){return{tabIndex:0}}).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],Pv(Bv.entities.title.spacings)),sL=P.memo(function(e){var t=e.children,r=e.title,a=e.index;return ce.jsxs(ce.Fragment,{children:[a!==0&&ce.jsx("div",{children:ce.jsx(ik,{variant:"small"})}),r&&ce.jsx(xY,{children:ce.jsx(Dd,{group:"navigation",variant:"label",children:r})}),t]})}),IY=["addCloseMenuOnClickIndex","children"],OY=Nt.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;}"],Pv(Bv.spacings));function lL(n){return!!(P.isValidElement(n)&&!n.props.disabled&&n.type===uw)}function NY(n){return!!(P.isValidElement(n)&&n.type===uw&&n.props.closeMenuOnClick!==!1)}var MY=P.forwardRef(function(e,t){var r=e.addCloseMenuOnClickIndex,a=e.children,l=zn(e,IY),c=ak(),f=c.focusedIndex,p=c.setFocusedIndex,m=c.initialFocus,y=-1,E=P.useMemo(function(){return[]},[]),S=P.useMemo(function(){return P.Children.map(a,function(H){if(!H)return H;if(H.type===sL){y++;var D=y,q=P.Children.map(H.props.children,function(U){return y++,lL(U)&&E.push(y),P.cloneElement(U,{index:y})});return P.cloneElement(H,{index:D},q)}else return y++,lL(H)&&E.push(y),NY(H)&&r(y),P.cloneElement(H,{index:y})})},[a,E,y,r]),T=E[0],A=E[E.length-1];P.useEffect(function(){m==="first"&&p(T),m==="last"&&p(A)},[m,T,A]);var O=function(D,q){var U=D==="down"?1:-1,V=E.indexOf(f),te=E[V+U],Z=typeof te>"u"?q:te;p(Z)},F=function(D){var q=D.key;D.stopPropagation(),q==="ArrowDown"&&(D.preventDefault(),O("down",T)),q==="ArrowUp"&&(D.preventDefault(),O("up",A))};return ce.jsx(OY,ve(ve({onKeyDown:F,role:"menu"},l),{},{ref:t,children:S}))}),PY=["children","anchorEl","onClose","open"],DY=["anchorEl","open","placement","matchAnchorWidth","onClose","style","className"],LY=Bv.border,UY=Nt(tk).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["position:absolute;z-index:1400;width:fit-content;min-width:fit-content;",";",";"],vl(LY),function(n){var e=n.open;return fn({display:e?"block":"none"})}),FY=P.forwardRef(function(e,t){var r=e.children,a=e.anchorEl,l=e.onClose,c=e.open,f=zn(e,PY),p=ak(),m=p.setOnClose,y=p.onClose,E=p.setInitialFocus,S=p.focusedIndex,T=P.useMemo(function(){return[]},[]);P.useEffect(function(){y===null&&l&&m(l)},[y,l,m]),P.useEffect(function(){var O=function(H){var D=H.key;switch((D==="ArrowDown"||D==="ArrowUp")&&(H.preventDefault(),H.stopPropagation(),a.dispatchEvent(new Event("click",{bubbles:!0}))),D){case"Enter":case"ArrowDown":E("first");break;case"ArrowUp":E("last");break}};return a&&a.addEventListener("keydown",O),function(){a&&a.removeEventListener("keydown",O)}},[a]),GD("Escape",function(){c&&y!==null&&(y(),a.focus())}),GD("Enter",function(){c&&y!==null&&T.includes(S)&&setTimeout(function(){window.document.contains(a)&&a.focus()},0)});var A=function(F){T.indexOf(F)<0&&T.push(F)};return ce.jsx(MY,ve(ve({addCloseMenuOnClickIndex:A},f),{},{ref:t,children:r}))}),$Y=P.forwardRef(function(e,t){var r=e.anchorEl,a=e.open,l=e.placement,c=l===void 0?"bottom":l,f=e.matchAnchorWidth,p=f===void 0?!1:f,m=e.onClose,y=e.style,E=e.className,S=zn(e,DY),T=GE(),A=T.density,O=KE({density:A},Bv),F=[f2(4),d2(),h2({padding:8})];p&&(F=[].concat(e2(F),[gW({apply:function(me){var he=me.rects,G=me.elements;Object.assign(G.floating.style,{width:"".concat(he.reference.width,"px")})}})]));var H=q2({elements:{reference:r},placement:c,open:a,onOpenChange:m,middleware:F}),D=H.x,q=H.y,U=H.refs,V=H.update,te=H.strategy,Z=H.context,Ne=P.useMemo(function(){return Ly(U.setFloating,t)},[U.setFloating,t]);SG(function(){if(U.reference.current&&U.floating.current&&a)return E2(U.reference.current,U.floating.current,V)},[U.reference,U.floating,V,a]);var Ze=V2([B2(Z,{escapeKey:!1})]),it=Ze.getFloatingProps,Me={open:a,className:E},ze=ve(ve({},S),{},{onClose:m,anchorEl:r,open:a}),ee=YD(r),J=ce.jsx(HE,{theme:O,children:ce.jsx(UY,ve(ve(ve({elevation:"raised"},Me),it({ref:Ne,style:ve(ve({},y),{},{position:te,top:q||0,left:D||0})})),{},{children:ce.jsx(fY,{children:ce.jsx(FY,ve(ve({},ze),{},{ref:t}))})}))});return ce.jsx(ce.Fragment,{children:ee?J:ce.jsx(z2,{id:"eds-menu-container",children:J})})}),qv=$Y;qv.Item=uw,qv.Section=sL,qv.Item.displayName="Menu.Item",qv.Section.displayName="Menu.Section";var uk=nn.colors,dk=uk.ui,cL=dk.background__light.rgba,HY=dk.background__medium.rgba,jY=dk.background__default.rgba,Vy=uk.interactive,zY=Vy.focus.rgba,BY=Vy.primary__resting.rgba,qY=Vy.primary__selected_highlight.rgba,VY=Vy.disabled__fill.rgba,KY=Vy.disabled__text.rgba,uL=uk.text,dL=uL.static_icons__default.rgba,GY=uL.static_icons__primary_white.rgba,fk=nn.spacings.comfortable,fL=fk.medium,dw=fk.large,hL=fk.small,Fd={background:jY,minWidth:"72px",maxWidth:"256px",spacings:{top:dw,bottom:dw},border:{type:"bordergroup",right:{color:cL,width:"2px",style:"solid"}},entities:{actionButton:{typography:{color:GY},spacings:{top:fL,bottom:fL,right:dw,left:dw}},sidebarItem:{minHeight:"48px",spacings:{top:"0",bottom:"0"},typography:{color:dL},border:{type:"bordergroup",bottom:{color:cL,width:"2px",style:"solid"}},states:{active:{background:qY,typography:{color:BY}},hover:{background:HY},focus:{outline:{color:zY,style:"dashed",type:"outline",width:"2px",offset:"-2px"}},disabled:{background:VY,typography:{color:KY}}}},toggleOpen:{spacings:{top:hL,bottom:hL},typography:{color:dL}}},modes:{compact:{entities:{}}}},pL={isOpen:!1,onToggle:null},vL=P.createContext(pL),WY=function(e){var t=e.children,r=P.useState(pL),a=Eu(r,2),l=a[0],c=a[1],f=l.isOpen,p=l.onToggle,m=P.useCallback(function(S){c(function(T){return ve(ve({},T),{},{isOpen:S})}),p==null||p(S)},[p]),y=function(T){c(function(A){return ve(ve({},A),{},{onToggle:T})})},E={setIsOpen:m,setOnToggle:y,onToggle:p,isOpen:f};return ce.jsx(vL.Provider,{value:E,children:t})},Vv=function(){return P.useContext(vL)},YY=["onToggle","open","children"],QY=["onToggle","open","children"],XY=P.forwardRef(function(e,t){var r=e.onToggle,a=e.open,l=a===void 0?!1:a,c=e.children,f=zn(e,YY),p=Vv(),m=p.isOpen,y=p.setIsOpen,E=p.onToggle,S=p.setOnToggle;return P.useEffect(function(){E===null&&r&&S(r)},[E,r,S]),P.useEffect(function(){y(l)},[l]),ce.jsx(JY,ve(ve({},f),{},{open:m,ref:t,children:c}))}),JY=Nt.div.withConfig({displayName:"SideBar__GridContainer",componentId:"sc-a84pkc-0"})(function(n){var e=n.theme,t=n.open;return fn(["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:",";",""],vl(e.border),e.background,t?e.maxWidth:e.minWidth,t?e.maxWidth:e.minWidth,!t&&fn(["scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]))}),mL=P.forwardRef(function(n,e){var t=n.onToggle,r=n.open,a=r===void 0?!1:r,l=n.children,c=zn(n,QY),f=GE(),p=f.density,m=KE({density:p},Fd),y=ve({onToggle:t,open:a,children:l},c);return ce.jsx(HE,{theme:m,children:ce.jsx(WY,{children:ce.jsx(XY,ve(ve({},y),{},{ref:e}))})})});mL.displayName="SideBar";var ZY=["icon","label","active","onClick","as"],gL=Fd.entities.sidebarItem,eQ=gL.typography.color,tQ=gL.states.active.typography.color,yL=Nt.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,c=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 fn(["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,vl(c),l,t?p:m,S,T,T,T,wu(y.outline))}),nQ=Nt(Dd).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 fn(["justify-self:start;color:",";&::first-letter{text-transform:capitalize;}"],t?l:a)}),rQ=Nt(By).withConfig({displayName:"SidebarLink__Tooltip",componentId:"sc-gbehcj-2"})(["text-transform:capitalize;"]),_L=P.forwardRef(function(e,t){var r=e.icon,a=e.label,l=e.active,c=e.onClick,f=e.as,p=f===void 0?"a":f,m=zn(e,ZY),y=Vv(),E=y.isOpen,S=function(){return l?tQ:eQ};return E?ce.jsxs(yL,ve(ve({as:p,tabIndex:0,$active:l,onClick:c,ref:t},m),{},{children:[r&&ce.jsx(ml,{data:r,color:S()}),ce.jsx(nQ,{variant:"cell_text",group:"table",$active:l,children:a})]})):ce.jsx(rQ,{title:a,placement:"right",children:ce.jsx(yL,ve(ve({tabIndex:0,as:p,$active:l,onClick:c,ref:t},m),{},{children:r&&ce.jsx(ml,{data:r,color:S()})}))})});_L.displayName="SidebarLink";var oQ=["children"],iQ=Nt.div.withConfig({displayName:"SideBarContent__StyledSideBarContent",componentId:"sc-kq9ra8-0"})(function(){return fn(["grid-area:content;"])}),aQ=P.forwardRef(function(e,t){var r=e.children,a=zn(e,oQ),l=ve({ref:t},a);return ce.jsx(iQ,ve(ve({},l),{},{children:r}))}),sQ=["children"],lQ=Nt.div.withConfig({displayName:"SideBarFooter__StyledSideBarFooter",componentId:"sc-1hsu72u-0"})(function(){return fn(["grid-area:footer;"])}),cQ=P.forwardRef(function(e,t){var r=e.children,a=zn(e,sQ),l=ve({ref:t},a);return ce.jsx(lQ,ve(ve({},l),{},{children:r}))}),uQ=Fd.entities.toggleOpen.typography.color,dQ=Nt.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 fn(["width:",";display:grid;place-items:center;margin-block-start:",";margin-block-end:",";"],t,a,l)}),fQ=P.forwardRef(function(e,t){var r=Z1({},(T9(e),e)),a=ve(ve({},r),{},{ref:t}),l=Vv(),c=l.isOpen,f=l.setIsOpen;return ce.jsx(dQ,ve(ve({open:c},a),{},{children:ce.jsx(By,{title:c?"Collapse":"Expand",placement:"right",children:ce.jsx(Nh,{variant:"ghost_icon",onClick:function(){return f(!c)},children:ce.jsx(ml,{size:24,data:c?j9:U9,color:uQ})})})}))}),hQ=["label","icon","style","className"],CL=Fd.entities.actionButton.typography.color,EL=Nt.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,c=r.top,f=r.bottom;return fn(["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,c,f)}),pQ=Nt(Nh).withConfig({displayName:"SideBarButton__ExtendedButton",componentId:"sc-15xlkyo-1"})(function(){return fn(["height:40px;grid-column:2;width:fit-content;"])}),vQ=P.forwardRef(function(e,t){var r=e.label,a=e.icon,l=e.style,c=e.className,f=zn(e,hQ),p=ve(ve({},f),{},{ref:t}),m={style:l,className:c},y=Vv(),E=y.isOpen;return E?ce.jsx(EL,ve(ve({open:E},m),{},{children:ce.jsxs(pQ,ve(ve({open:!0,variant:"contained"},p),{},{children:[ce.jsx(ml,{data:a,color:CL})," ",r]}))})):ce.jsx(By,{title:r,placement:"right",children:ce.jsx(EL,ve(ve({open:E},m),{},{children:ce.jsx(Nh,ve(ve({variant:"contained_icon"},p),{},{children:ce.jsx(ml,{data:a,color:CL})}))}))})}),mQ=["icon","label","isExpanded","id","active","toggleExpand","onClick","children","disabled"],wL=Fd.minWidth,fw=Fd.entities.sidebarItem,hk=fw.minHeight,bL=fw.border,gQ=fw.typography.color,hw=fw.states,SL=hw.active,pk=SL.background,yQ=SL.typography.color,TL=hw.hover.background,RL=hw.focus,kL=hw.disabled,_Q=kL.background,CQ=kL.typography.color,AL=Nt.div.withConfig({displayName:"SideBarAccordion__MenuItem",componentId:"sc-1ekwnbi-0"})(function(n){var e=n.$isExpanded;return fn(["display:grid;grid-template-columns:1fr;place-items:center;text-decoration:none;min-height:",";",";&:hover{cursor:pointer;background-color:",";}&:focus-visible{",";}"],hk,!e&&vl(bL),e?"none":TL,wu(RL.outline))}),xL=Nt.h2.withConfig({displayName:"SideBarAccordion__AccordionHeader",componentId:"sc-1ekwnbi-1"})(function(n){var e=n.$active;return fn(["margin:0;width:100%;min-height:",";background-color:",";&:hover{cursor:pointer;background-color:",";}"],hk,e?pk:"none",e?pk:TL)}),IL=Nt.button.withConfig({displayName:"SideBarAccordion__Button",componentId:"sc-1ekwnbi-2"})(function(n){var e=n.$active;return fn(["width:100%;min-height:",";padding:0;border:none;background-color:",";cursor:pointer;display:grid;place-items:center;&:focus-visible{",";}&:disabled{background-color:",";cursor:auto;}"],hk,e?pk:"transparent",wu(RL.outline),_Q)}),EQ=Nt(IL).withConfig({displayName:"SideBarAccordion__OpenSidebarButton",componentId:"sc-1ekwnbi-3"})(["grid-template-columns:"," 1fr 48px;"],wL),wQ=Nt(IL).withConfig({displayName:"SideBarAccordion__ClosedSidebarButton",componentId:"sc-1ekwnbi-4"})(["grid-template-columns:",";position:relative;overflow:hidden;"],wL),bQ=Nt(ml).withConfig({displayName:"SideBarAccordion__AccordionIcon",componentId:"sc-1ekwnbi-5"})(["position:absolute;bottom:-10px;right:-10px;transform:rotate(-45deg);"]),SQ=Nt.div.withConfig({displayName:"SideBarAccordion__Panel",componentId:"sc-1ekwnbi-6"})(["width:100%;",""],vl(bL)),TQ=Nt(Dd).withConfig({displayName:"SideBarAccordion__ItemText",componentId:"sc-1ekwnbi-7"})(function(n){var e=n.$textColor;return fn(["justify-self:start;color:",";&::first-letter{text-transform:capitalize;}"],e)}),RQ=Nt(By).withConfig({displayName:"SideBarAccordion__Tooltip",componentId:"sc-1ekwnbi-8"})(["text-transform:capitalize;"]),OL=P.forwardRef(function(e,t){var r=e.icon,a=e.label,l=e.isExpanded,c=e.id,f=e.active,p=e.toggleExpand,m=e.onClick,y=e.children,E=e.disabled,S=zn(e,mQ),T=bG(c,"accordion"),A=P.useState(!1),O=Eu(A,2),F=O[0],H=O[1],D=P.useState(l),q=Eu(D,2),U=q[0],V=q[1],te=P.useState(null),Z=Eu(te,2),Ne=Z[0],Ze=Z[1],it=Vv(),Me=it.isOpen,ze=p!==void 0?l:U,ee=P.useMemo(function(){if(f!==void 0)return f;var $=!1;return P.Children.forEach(y,function(ne){var ke=ne;ke.props.active&&($=!0)}),Me?!ze&&$:$},[f,y,ze,Me]),J=P.useMemo(function(){return Ly(Ze,t)},[t]),ye=function(){H(!1)},me=function(){p===void 0?V(!U):p(),m&&m()},he=function(){H(!F),m&&m()},G=function(){return ee?yQ:E?CQ:gQ};if(Me)return ce.jsxs(AL,{$isExpanded:ze,children:[ce.jsx(xL,{$active:ee,children:ce.jsxs(EQ,ve(ve({ref:t,id:"header_".concat(T),"aria-expanded":ze,"aria-controls":"panel_".concat(T),onClick:me,disabled:E},S),{},{children:[r&&ce.jsx(ml,{data:r,color:G()}),ce.jsx(TQ,{variant:"cell_text",group:"table",$textColor:G(),children:a}),ce.jsx(ml,{data:ze?$9:F9,size:24,color:G()})]}))}),ze&&ce.jsx(SQ,{id:"panel_".concat(T),role:"region","aria-labelledby":"header_".concat(T),children:y})]});var ge=F?"":a;return ce.jsxs(ce.Fragment,{children:[ce.jsx(RQ,{title:ge,placement:"right",children:ce.jsx(AL,{$isExpanded:ze,children:ce.jsx(xL,{$active:ee,children:ce.jsxs(wQ,ve(ve({ref:J,id:"anchor-default","aria-haspopup":"true","aria-expanded":F,"aria-controls":"menu-default",onClick:he,disabled:E},S),{},{children:[r&&ce.jsx(ml,{data:r,color:G()}),ce.jsx(bQ,{data:H9,size:24,color:G()})]}))})})}),ce.jsx(qv,{open:F,placement:"right-start",onClose:ye,anchorEl:Ne,children:P.Children.map(y,function($){var ne=$;return ce.jsx(qv.Item,ve(ve({},$.props),{},{children:ne.props.label}))})})]})});OL.displayName="SidebarAccordion";var kQ=["label","active","onClick","as"],AQ=Fd.minWidth,vk=Fd.entities.sidebarItem,xQ=vk.minHeight,IQ=vk.typography.color,mk=vk.states,NL=mk.active,ML=NL.background,OQ=NL.typography.color,NQ=mk.focus,MQ=mk.hover.background,PQ=Nt.a.withConfig({displayName:"SideBarAccordionItem__Container",componentId:"sc-1aeo1e1-0"})(function(n){var e=n.$active;return fn(["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{",";}"],AQ,e?ML:"transparent",e?ML:MQ,wu(NQ.outline))}),DQ=Nt.div.withConfig({displayName:"SideBarAccordionItem__TextWrapper",componentId:"sc-1aeo1e1-1"})(["min-height:",";grid-column:2;justify-self:start;display:flex;align-items:center;width:100%;"],xQ),LQ=Nt(Dd).withConfig({displayName:"SideBarAccordionItem__Text",componentId:"sc-1aeo1e1-2"})(function(n){var e=n.$active;return fn(["color:",";width:100%;&::first-letter{text-transform:capitalize;}"],e?OQ:IQ)}),PL=P.forwardRef(function(e,t){var r=e.label,a=e.active,l=e.onClick,c=e.as,f=c===void 0?"a":c,p=zn(e,kQ),m=Vv(),y=m.isOpen;return y?ce.jsx(PQ,ve(ve({as:f,tabIndex:0,$active:a,onClick:l,ref:t},p),{},{children:ce.jsx(DQ,{children:ce.jsx(LQ,{variant:"cell_text",group:"table",$active:a,children:r})})})):null});PL.displayName="SideBarAccordionItem";var qo=mL;qo.Link=_L,qo.Content=aQ,qo.Footer=cQ,qo.Toggle=fQ,qo.Button=vQ,qo.Accordion=OL,qo.AccordionItem=PL,qo.Link.displayName="SideBar.Link",qo.Content.displayName="SideBar.Content",qo.Footer.displayName="SideBar.Footer",qo.Toggle.displayName="SideBar.Toggle",qo.Button.displayName="SideBar.Button",qo.Accordion.displayName="SideBar.Accordion",qo.AccordionItem.displayName="SideBar.AccordionItem";const pw=({children:n,text:e})=>ce.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"80%",height:"80vh",overflow:"hidden",flexDirection:"column"},children:[ce.jsx(dY,{size:96*2,variant:"indeterminate",children:n}),ce.jsx(Dd,{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 vw(){return vw=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},vw.apply(this,arguments)}const Kv=P.createContext(null);process.env.NODE_ENV!=="production"&&(Kv.displayName="DataRouter");const mw=P.createContext(null);process.env.NODE_ENV!=="production"&&(mw.displayName="DataRouterState");const UQ=P.createContext(null);process.env.NODE_ENV!=="production"&&(UQ.displayName="Await");const dc=P.createContext(null);process.env.NODE_ENV!=="production"&&(dc.displayName="Navigation");const Ky=P.createContext(null);process.env.NODE_ENV!=="production"&&(Ky.displayName="Location");const gl=P.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(gl.displayName="Route");const gk=P.createContext(null);process.env.NODE_ENV!=="production"&&(gk.displayName="RouteError");function FQ(n,e){let{relative:t}=e===void 0?{}:e;Gy()||(process.env.NODE_ENV!=="production"?Lt(!1,"useHref() may be used only in the context of a <Router> component."):Lt(!1));let{basename:r,navigator:a}=P.useContext(dc),{hash:l,pathname:c,search:f}=gw(n,{relative:t}),p=c;return r!=="/"&&(p=c==="/"?r:sc([r,c])),a.createHref({pathname:p,search:f,hash:l})}function Gy(){return P.useContext(Ky)!=null}function Gv(){return Gy()||(process.env.NODE_ENV!=="production"?Lt(!1,"useLocation() may be used only in the context of a <Router> component."):Lt(!1)),P.useContext(Ky).location}const DL="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function LL(n){P.useContext(dc).static||P.useLayoutEffect(n)}function $Q(){let{isDataRoute:n}=P.useContext(gl);return n?tX():HQ()}function HQ(){Gy()||(process.env.NODE_ENV!=="production"?Lt(!1,"useNavigate() may be used only in the context of a <Router> component."):Lt(!1));let n=P.useContext(Kv),{basename:e,navigator:t}=P.useContext(dc),{matches:r}=P.useContext(gl),{pathname:a}=Gv(),l=JSON.stringify(EE(r).map(p=>p.pathnameBase)),c=P.useRef(!1);return LL(()=>{c.current=!0}),P.useCallback(function(p,m){if(m===void 0&&(m={}),process.env.NODE_ENV!=="production"&&Qi(c.current,DL),!c.current)return;if(typeof p=="number"){t.go(p);return}let y=XR(p,JSON.parse(l),a,m.relative==="path");n==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:sc([e,y.pathname])),(m.replace?t.replace:t.push)(y,m.state,m)},[e,t,l,a,n])}const jQ=P.createContext(null);function zQ(n){let e=P.useContext(gl).outlet;return e&&P.createElement(jQ.Provider,{value:n},e)}function BQ(){let{matches:n}=P.useContext(gl),e=n[n.length-1];return e?e.params:{}}function gw(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=P.useContext(gl),{pathname:a}=Gv(),l=JSON.stringify(EE(r).map(c=>c.pathnameBase));return P.useMemo(()=>XR(n,JSON.parse(l),a,t==="path"),[n,l,a,t])}function qQ(n,e,t){Gy()||(process.env.NODE_ENV!=="production"?Lt(!1,"useRoutes() may be used only in the context of a <Router> component."):Lt(!1));let{navigator:r}=P.useContext(dc),{matches:a}=P.useContext(gl),l=a[a.length-1],c=l?l.params:{},f=l?l.pathname:"/",p=l?l.pathnameBase:"/",m=l&&l.route;if(process.env.NODE_ENV!=="production"){let H=m&&m.path||"";nX(f,!m||H.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+f+'" (under <Route path="'+H+'">) 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="'+H+'"> to <Route ')+('path="'+(H==="/"?"*":H+"/*")+'">.'))}let y=Gv(),E;if(e){var S;let H=typeof e=="string"?dl(e):e;p==="/"||(S=H.pathname)!=null&&S.startsWith(p)||(process.env.NODE_ENV!=="production"?Lt(!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 "'+H.pathname+'" was given in the `location` prop.')):Lt(!1)),E=H}else E=y;let T=E.pathname||"/",A=p==="/"?T:T.slice(p.length)||"/",O=Cv(n,{pathname:A});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Qi(m||O!=null,'No routes matched location "'+E.pathname+E.search+E.hash+'" '),process.env.NODE_ENV!=="production"&&Qi(O==null||O[O.length-1].route.element!==void 0||O[O.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 F=YQ(O&&O.map(H=>Object.assign({},H,{params:Object.assign({},c,H.params),pathname:sc([p,r.encodeLocation?r.encodeLocation(H.pathname).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?p:sc([p,r.encodeLocation?r.encodeLocation(H.pathnameBase).pathname:H.pathnameBase])})),a,t);return e&&F?P.createElement(Ky.Provider,{value:{location:vw({pathname:"/",search:"",hash:"",state:null,key:"default"},E),navigationType:Mr.Pop}},F):F}function VQ(){let n=eX(),e=fP(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},c=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",n),c=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:l},"ErrorBoundary")," or"," ",P.createElement("code",{style:l},"errorElement")," prop on your route."))),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},e),t?P.createElement("pre",{style:a},t):null,c)}const KQ=P.createElement(VQ,null);class GQ extends P.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?P.createElement(gl.Provider,{value:this.props.routeContext},P.createElement(gk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WQ(n){let{routeContext:e,match:t,children:r}=n,a=P.useContext(Kv);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(gl.Provider,{value:e},r)}function YQ(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,c=(r=t)==null?void 0:r.errors;if(c!=null){let f=l.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id]));f>=0||(process.env.NODE_ENV!=="production"?Lt(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):Lt(!1)),l=l.slice(0,Math.min(l.length,f+1))}return l.reduceRight((f,p,m)=>{let y=p.route.id?c==null?void 0:c[p.route.id]:null,E=null;t&&(E=p.route.errorElement||KQ);let S=e.concat(l.slice(0,m+1)),T=()=>{let A;return y?A=E:p.route.Component?A=P.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=f,P.createElement(WQ,{match:p,routeContext:{outlet:f,matches:S,isDataRoute:t!=null},children:A})};return t&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?P.createElement(GQ,{location:t.location,revalidation:t.revalidation,component:E,error:y,children:T(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):T()},null)}var UL=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(UL||{}),Wy=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}(Wy||{});function yk(n){return n+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function QQ(n){let e=P.useContext(Kv);return e||(process.env.NODE_ENV!=="production"?Lt(!1,yk(n)):Lt(!1)),e}function XQ(n){let e=P.useContext(mw);return e||(process.env.NODE_ENV!=="production"?Lt(!1,yk(n)):Lt(!1)),e}function JQ(n){let e=P.useContext(gl);return e||(process.env.NODE_ENV!=="production"?Lt(!1,yk(n)):Lt(!1)),e}function _k(n){let e=JQ(n),t=e.matches[e.matches.length-1];return t.route.id||(process.env.NODE_ENV!=="production"?Lt(!1,n+' can only be used on routes that contain a unique "id"'):Lt(!1)),t.route.id}function ZQ(){return _k(Wy.UseRouteId)}function eX(){var n;let e=P.useContext(gk),t=XQ(Wy.UseRouteError),r=_k(Wy.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function tX(){let{router:n}=QQ(UL.UseNavigateStable),e=_k(Wy.UseNavigateStable),t=P.useRef(!1);return LL(()=>{t.current=!0}),P.useCallback(function(a,l){l===void 0&&(l={}),process.env.NODE_ENV!=="production"&&Qi(t.current,DL),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,vw({fromRouteId:e},l)))},[n,e])}const FL={};function nX(n,e,t){!e&&!FL[n]&&(FL[n]=!0,process.env.NODE_ENV!=="production"&&Qi(!1,t))}const $L=uT["startTransition"];function rX(n){let{fallbackElement:e,router:t,future:r}=n,[a,l]=P.useState(t.state),{v7_startTransition:c}=r||{},f=P.useCallback(E=>{c&&$L?$L(()=>l(E)):l(E)},[l,c]);P.useLayoutEffect(()=>t.subscribe(f),[t,f]);let p=P.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=P.useMemo(()=>({router:t,navigator:p,static:!1,basename:m}),[t,p,m]);return P.createElement(P.Fragment,null,P.createElement(Kv.Provider,{value:y},P.createElement(mw.Provider,{value:a},P.createElement(aX,{basename:m,location:a.location,navigationType:a.historyAction,navigator:p},a.initialized?P.createElement(oX,{routes:t.routes,state:a}):e))),null)}function oX(n){let{routes:e,state:t}=n;return qQ(e,void 0,t)}function iX(n){return zQ(n.context)}function aX(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Mr.Pop,navigator:l,static:c=!1}=n;Gy()&&(process.env.NODE_ENV!=="production"?Lt(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Lt(!1));let f=e.replace(/^\/*/,"/"),p=P.useMemo(()=>({basename:f,navigator:l,static:c}),[f,l,c]);typeof r=="string"&&(r=dl(r));let{pathname:m="/",search:y="",hash:E="",state:S=null,key:T="default"}=r,A=P.useMemo(()=>{let O=Td(m,f);return O==null?null:{location:{pathname:O,search:y,hash:E,state:S,key:T},navigationType:a}},[f,m,y,E,S,T,a]);return process.env.NODE_ENV!=="production"&&Qi(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:P.createElement(dc.Provider,{value:p},P.createElement(Ky.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 Dh(){return Dh=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},Dh.apply(this,arguments)}function Ck(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 yw="get",_w="application/x-www-form-urlencoded";function Cw(n){return n!=null&&typeof n.tagName=="string"}function sX(n){return Cw(n)&&n.tagName.toLowerCase()==="button"}function lX(n){return Cw(n)&&n.tagName.toLowerCase()==="form"}function cX(n){return Cw(n)&&n.tagName.toLowerCase()==="input"}function uX(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function dX(n,e){return n.button===0&&(!e||e==="_self")&&!uX(n)}let Ew=null;function fX(){if(Ew===null)try{new FormData(document.createElement("form"),0),Ew=!1}catch{Ew=!0}return Ew}const hX=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ek(n){return n!=null&&!hX.has(n)?(process.env.NODE_ENV!=="production"&&Qi(!1,'"'+n+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+_w+'"')),null):n}function pX(n,e){let t,r,a,l,c;if(lX(n)){let f=n.getAttribute("action");r=f?Td(f,e):null,t=n.getAttribute("method")||yw,a=Ek(n.getAttribute("enctype"))||_w,l=new FormData(n)}else if(sX(n)||cX(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?Td(p,e):null,t=n.getAttribute("formmethod")||f.getAttribute("method")||yw,a=Ek(n.getAttribute("formenctype"))||Ek(f.getAttribute("enctype"))||_w,l=new FormData(f,n),!fX()){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(Cw(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=yw,r=null,a=_w,c=n}return l&&a==="text/plain"&&(c=l,l=void 0),{action:r,method:t.toLowerCase(),encType:a,formData:l,body:c}}const vX=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],mX=["aria-current","caseSensitive","className","end","style","to","children"],gX=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const yX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_X=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wk=P.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:l,replace:c,state:f,target:p,to:m,preventScrollReset:y}=e,E=Ck(e,vX),{basename:S}=P.useContext(dc),T,A=!1;if(typeof m=="string"&&_X.test(m)&&(T=m,yX))try{let D=new URL(window.location.href),q=m.startsWith("//")?new URL(D.protocol+m):new URL(m),U=Td(q.pathname,S);q.origin===D.origin&&U!=null?m=U+q.search+q.hash:A=!0}catch{process.env.NODE_ENV!=="production"&&Qi(!1,'<Link to="'+m+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let O=FQ(m,{relative:a}),F=SX(m,{replace:c,state:f,target:p,preventScrollReset:y,relative:a});function H(D){r&&r(D),D.defaultPrevented||F(D)}return P.createElement("a",Dh({},E,{href:T||O,onClick:A||l?r:H,ref:t,target:p}))});process.env.NODE_ENV!=="production"&&(wk.displayName="Link");const CX=P.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:a=!1,className:l="",end:c=!1,style:f,to:p,children:m}=e,y=Ck(e,mX),E=gw(p,{relative:y.relative}),S=Gv(),T=P.useContext(mw),{navigator:A}=P.useContext(dc),O=A.encodeLocation?A.encodeLocation(E).pathname:E.pathname,F=S.pathname,H=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(F=F.toLowerCase(),H=H?H.toLowerCase():null,O=O.toLowerCase());let D=F===O||!c&&F.startsWith(O)&&F.charAt(O.length)==="/",q=H!=null&&(H===O||!c&&H.startsWith(O)&&H.charAt(O.length)==="/"),U=D?r:void 0,V;typeof l=="function"?V=l({isActive:D,isPending:q}):V=[l,D?"active":null,q?"pending":null].filter(Boolean).join(" ");let te=typeof f=="function"?f({isActive:D,isPending:q}):f;return P.createElement(wk,Dh({},y,{"aria-current":U,className:V,ref:t,style:te,to:p}),typeof m=="function"?m({isActive:D,isPending:q}):m)});process.env.NODE_ENV!=="production"&&(CX.displayName="NavLink");const EX=P.forwardRef((n,e)=>{let t=RX();return P.createElement(HL,Dh({},n,{submit:t,ref:e}))});process.env.NODE_ENV!=="production"&&(EX.displayName="Form");const HL=P.forwardRef((n,e)=>{let{reloadDocument:t,replace:r,state:a,method:l=yw,action:c,onSubmit:f,submit:p,relative:m,preventScrollReset:y}=n,E=Ck(n,gX),S=l.toLowerCase()==="get"?"get":"post",T=kX(c,{relative:m}),A=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let F=O.nativeEvent.submitter,H=(F==null?void 0:F.getAttribute("formmethod"))||l;p(F||O.currentTarget,{method:H,replace:r,state:a,relative:m,preventScrollReset:y})};return P.createElement("form",Dh({ref:e,method:S,action:T,onSubmit:t?f:A},E))});process.env.NODE_ENV!=="production"&&(HL.displayName="FormImpl"),process.env.NODE_ENV;var bk;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher"})(bk||(bk={}));var jL;(function(n){n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(jL||(jL={}));function wX(n){return n+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function bX(n){let e=P.useContext(Kv);return e||(process.env.NODE_ENV!=="production"?Lt(!1,wX(n)):Lt(!1)),e}function SX(n,e){let{target:t,replace:r,state:a,preventScrollReset:l,relative:c}=e===void 0?{}:e,f=$Q(),p=Gv(),m=gw(n,{relative:c});return P.useCallback(y=>{if(dX(y,t)){y.preventDefault();let E=r!==void 0?r:ac(p)===ac(m);f(n,{replace:E,state:a,preventScrollReset:l,relative:c})}},[p,f,m,r,a,t,n,l,c])}function TX(){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 RX(){let{router:n}=bX(bk.UseSubmit),{basename:e}=P.useContext(dc),t=ZQ();return P.useCallback(function(r,a){a===void 0&&(a={}),TX();let{action:l,method:c,encType:f,formData:p,body:m}=pX(r,e);n.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:p,body:m,formMethod:a.method||c,formEncType:a.encType||f,replace:a.replace,state:a.state,fromRouteId:t})},[n,e,t])}function kX(n,e){let{relative:t}=e===void 0?{}:e,{basename:r}=P.useContext(dc),a=P.useContext(gl);a||(process.env.NODE_ENV!=="production"?Lt(!1,"useFormAction must be used inside a RouteContext"):Lt(!1));let[l]=a.matches.slice(-1),c=Dh({},gw(n||".",{relative:t})),f=Gv();if(n==null&&(c.search=f.search,l.route.index)){let p=new URLSearchParams(c.search);p.delete("index"),c.search=p.toString()?"?"+p.toString():""}return(!n||n===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:sc([r,c.pathname])),ac(c)}const ww=({error:n})=>(console.error(n),ce.jsxs(ce.Fragment,{children:[ce.jsxs(vs,{variant:"warning",children:[ce.jsx(vs.Header,{children:ce.jsx(Dd,{variant:"h4",color:"warning",children:n.message})}),ce.jsx(vs.Content,{children:n.stack??"Derp"})]}),ce.jsxs("div",{style:{marginTop:20,border:"1px solid"},children:[ce.jsx(Dd,{variant:"h4",color:"warning",children:n.message}),ce.jsx("section",{style:{padding:10},children:n.stack&&ce.jsx("pre",{children:n.stack})})]}),n.cause&&ce.jsx(ww,{error:n.cause})]})),AX=(n,e,t)=>{P.useLayoutEffect(()=>{const r=n.subscribe(e);return r.add(t),()=>r.unsubscribe()},[n,e])};function zL(n,e){const[t,r]=P.useState(()=>e!=null&&e.initial?"value"in n?n.value:e.initial:void 0),[a,l]=P.useState(null),[c,f]=P.useState(!1);P.useLayoutEffect(()=>{l(null),f(!1),r("value"in n?n.value:void 0)},[r,l,f,n]);const p=P.useMemo(()=>({next:r,error:l,complete:()=>f(!0)}),[r,l,f]);return AX(n,p,e==null?void 0:e.teardown),{value:t,error:a,complete:c}}const BL=()=>{const n=pE().modules.app;if(!n)throw Error("Current framework does not have AppModule configured");const e=P.useMemo(()=>n.current$,[n]),{value:t,error:r}=zL(e);return{currentApp:t,setCurrentApp:P.useMemo(()=>n.setCurrentApp.bind(n),[n]),clearCurrentApp:P.useMemo(()=>n.clearCurrentApp.bind(n),[n]),error:r}},xX=()=>{const n=pE().modules.app;if(!n)throw Error("Current framework does not have AppModule configured");return n},qL=n=>{const e=xX(),{value:t,complete:r}=zL(P.useMemo(()=>e.getAllAppManifests(),[e]));return{apps:P.useMemo(()=>t&&!(n!=null&&n.includeHidden)?t.filter(l=>!l.hide):t,[n,t]),isLoading:!r}};function IX(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 OX({app:n,kind:e}){e=e??"widget";const{setCurrentApp:t,clearCurrentApp:r}=BL(),a=pE(),[l,c]=P.useState(null),[f,p]=P.useState(!1),m=(S,T)=>{a.modules.event.dispatchEvent(S,new CustomEvent(S,T))};function y(S){const{appModule:T,appModuleScript:A}=IX(n,a),[O]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];return qi(A).then(F=>{(F.script.renderApp??F.script.default)(S,{fusion:a,env:{manifest:n,config:{environment:"development",endpoints:{}},basename:O,props:{}}}),e==="app"&&t(n.key)}),T}P.useEffect(()=>{var A;if(c(null),!n){m("onAppInitializeFailed",{detail:"App not found"}),c(new Error("Selected application does not exist"));return}p(!0);const S=document.createElement("div");S.style.height="30%",(A=E.current)==null||A.appendChild(S);const T=y(S);return p(!1),()=>{var O;try{(O=E.current)==null||O.removeChild(S)}catch{}T.dispose(),r()}},[n]);const E=P.useRef(null);return ce.jsxs("div",{ref:E,children:[f&&ce.jsx(pw,{text:`Loading ${e==="app"?"application":"widget"}`}),l&&ce.jsx(ww,{error:l})]})}const NX=()=>{const{appKey:n}=BQ(),{apps:e}=qL({includeHidden:!0}),t=P.useMemo(()=>e==null?void 0:e.find(r=>r.key===n),[n,e]);return e?t?ce.jsx(OX,{app:t,kind:"app"}):ce.jsx(ww,{error:new Error("App not found")}):ce.jsx(pw,{text:"Loading apps..."})},MX={Title:Nt.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
+ `},PX=()=>{const{currentApp:n}=BL();return ce.jsxs(Tu,{id:"cli-top-bar",sticky:!1,style:{padding:0,height:48},children:[ce.jsx(Tu.Header,{children:ce.jsxs(MX.Title,{children:[ce.jsx(ml,{data:D9}),ce.jsx("span",{children:"Roma"})]})}),ce.jsxs(Tu.CustomContent,{children:["Dev Portal: ",(n==null?void 0:n.appKey)??""]})]})},DX=({setOpen:n})=>ce.jsxs(qo,{onToggle:e=>n(e),children:[ce.jsxs(qo.Content,{children:[ce.jsx(qo.Toggle,{}),ce.jsx(ik,{size:"2",color:"light",style:{marginBlockEnd:0}}),ce.jsx(qo.Link,{as:wk,label:"Home",icon:L9,to:"/",children:"Home"})]}),ce.jsx(qo.Footer,{children:ce.jsx(ik,{size:"2",color:"light",style:{marginBlockEnd:0}})})]}),VL={NavigationContainer:Nt.div`
384
+ display: grid;
385
+ grid-template-columns: ${n=>n.open?"286px 1fr 448px":"86px 1fr 448px"};
386
+ grid-column-gap: 24px;
387
+ `,RootContainer:Nt.div`
388
+ display: grid;
389
+ grid-template-columns: 1fr;
390
+ grid-template-rows: 48px 1fr;
391
+ height: calc(100vh);
392
+ `},LX=()=>{const[n,e]=P.useState(!1),{isLoading:t}=qL();return t?ce.jsx(pw,{text:"Loading apps..."}):ce.jsxs(VL.RootContainer,{children:[ce.jsx(PX,{}),ce.jsxs(VL.NavigationContainer,{open:n,children:[ce.jsx(DX,{setOpen:e}),ce.jsx("div",{style:{paddingTop:"32px"},children:ce.jsx(iX,{})})]})]})},UX=[{path:"/",element:ce.jsx(LX,{}),children:[{path:"apps/:appKey/*",element:ce.jsx(NX,{})},{path:"*",element:ce.jsx(ww,{error:new Error("404: Page not found")})}]}];function FX(){const{navigation:n}=pE().modules,[e]=P.useState(()=>n.createRouter(UX));return ce.jsx(rX,{router:e,fallbackElement:ce.jsx("p",{children:"Invalid route."})})}const $X=document.getElementById("root");Fg.createRoot($X).render(ce.jsx(tu.StrictMode,{children:ce.jsx(zq,{configure:y8,fallback:ce.jsx(pw,{text:"Starting Roma Workbench..."}),children:ce.jsx(FX,{})})}))});