@equinor/fusion-framework-cli 9.6.0 → 9.6.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.
|
@@ -71,7 +71,7 @@ Error: `+c.errorCode+`
|
|
|
71
71
|
Error Description: `+c.errorMessage):(l=c,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
|
|
72
72
|
Error: `+l.name+`
|
|
73
73
|
Error Description: `+l.message)),[2,null];case 4:return i||(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."),i=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Iw?Iw[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(n){return We.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return t.length>0},r.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==b1.None){var i=t.tenant?t.tenant:M.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+i+"/"}return n||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.aliases.indexOf(t)>-1)return i}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw de.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},r.isPublicCloudAuthority=function(e){return M.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},r.buildRegionalAuthorityString=function(e,t,n){var i=new We(e);i.validateAsUri();var o=i.getUrlComponents(),a=t+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(a=t+"."+M.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=We.constructAuthorityUriFromObject(at(at({},i.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,M.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r.transformCIAMAuthority=function(e){var t=e.endsWith(M.FORWARD_SLASH)?e:""+e+M.FORWARD_SLASH,n=new We(e),i=n.getUrlComponents();if(i.PathSegments.length===0&&i.HostNameAndPort.endsWith(M.CIAM_AUTH_URL)){var o=i.HostNameAndPort.split(".")[0];t=""+t+o+M.AAD_TENANT_DOMAIN_SUFFIX}return t},r.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Pc.COMMON,Pc.CONSUMERS,Pc.ORGANIZATIONS]),r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var mm=function(){function r(){}return r.createDiscoveredInstance=function(e,t,n,i,o,a,s){return Re(this,void 0,void 0,function(){var c,l,d;return Pe(this,function(u){switch(u.label){case 0:a==null||a.addQueueMeasurement(z.AuthorityFactoryCreateDiscoveredInstance,s),c=x1.transformCIAMAuthority(e),l=r.createInstance(c,t,n,i,o,a,s),u.label=1;case 1:return u.trys.push([1,3,,4]),a==null||a.setPreQueueTime(z.AuthorityResolveEndpointsAsync,s),[4,l.resolveEndpointsAsync()];case 2:return u.sent(),[2,l];case 3:throw d=u.sent(),de.createEndpointDiscoveryIncompleteError(d);case 4:return[2]}})})},r.createInstance=function(e,t,n,i,o,a,s){if(le.isEmpty(e))throw At.createUrlEmptyError();return new x1(e,t,n,i,o,a,s)},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var vm=function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(e,t){var n=e.indexOf(Ur.CACHE_KEY)===0,i=!0;return t&&(i=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&i},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Aw=function(){function r(){}return r.isThrottlingEntity=function(e,t){var n=!1;e&&(n=e.indexOf(Fh.THROTTLING_PREFIX)===0);var i=!0;return t&&(i=t.hasOwnProperty("throttleTime")),n&&i},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var lN={sendGetRequestAsync:function(){var r="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(ve.createUnexpectedError(r))},sendPostRequestAsync:function(){var r="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(ve.createUnexpectedError(r))}};/*! @azure/msal-common v13.3.1 2023-10-27 */var Xf={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."}},Tw=function(r){Qn(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.name="JoseHeaderError",Object.setPrototypeOf(i,e.prototype),i}return e.createMissingKidError=function(){return new e(Xf.missingKidError.code,Xf.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Xf.missingAlgError.code,Xf.missingAlgError.desc)},e}(ve);/*! @azure/msal-common v13.3.1 2023-10-27 */var dN=function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw Tw.createMissingKidError();if(!e.alg)throw Tw.createMissingAlgError();var t=new r({typ:e.typ||m5.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var uN=function(){function r(e,t){this.cacheOutcome=ss.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||M.EMPTY_STRING,this.wrapperVer=e.wrapperVer||M.EMPTY_STRING,this.telemetryCacheKey=Ur.CACHE_KEY+Er.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Ur.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Ur.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),i=[e,n].join(Ur.VALUE_SEPARATOR);return[Ur.SCHEMA_VERSION,i,t].join(Ur.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*t).join(Ur.VALUE_SEPARATOR),i=e.errors.slice(0,t).join(Ur.VALUE_SEPARATOR),o=e.errors.length,a=t<o?Ur.OVERFLOW_TRUE:Ur.OVERFLOW_FALSE,s=[o,a].join(Ur.VALUE_SEPARATOR);return[Ur.SCHEMA_VERSION,e.cacheHits,n,i,s].join(Ur.CATEGORY_SEPARATOR)},r.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Ur.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),le.isEmpty(e.subError)?le.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Ur.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new vm,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},r.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.errors.length;if(t===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var i=new vm;i.failedRequests=e.failedRequests.slice(t*2),i.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}},r.maxErrorsToSend=function(e){var t,n=0,i=0,o=e.errors.length;for(t=0;t<o;t++){var a=e.failedRequests[2*t]||M.EMPTY_STRING,s=e.failedRequests[2*t+1]||M.EMPTY_STRING,c=e.errors[t]||M.EMPTY_STRING;if(i+=a.toString().length+s.toString().length+c.length+3,i<Ur.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},r.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||M.EMPTY_STRING),e.push(this.regionSource||M.EMPTY_STRING),e.push(this.regionOutcome||M.EMPTY_STRING),e.join(",")},r.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},r.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var qS=function(){function r(e,t,n,i,o,a){this.authority=t,this.libraryName=i,this.libraryVersion=o,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return r.prototype.startPerformanceMeasurement=function(e,t){return{}},r.prototype.startPerformanceMeasuremeant=function(e,t){return{}},r.prototype.getIntFields=function(){return rN},r.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.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 n.time},r.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},r.prototype.addQueueMeasurement=function(e,t,n,i){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(n===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var o={eventName:e,queueTime:n,manuallyCompleted:i},a=this.queueMeasurements.get(t);if(a)a.push(o),this.queueMeasurements.set(t,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var s=[o];this.queueMeasurements.set(t,s)}this.preQueueTimeByCorrelationId.delete(t)},r.prototype.startMeasurement=function(e,t){var n=this,i,o,a=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s=this.startPerformanceMeasuremeant(e,a);s.startMeasurement();var c={eventId:this.generateId(),status:fm.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a,appName:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appName,appVersion:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appVersion};return this.cacheEventByCorrelationId(c),{endMeasurement:function(l){return n.endMeasurement(at(at({},c),l),s)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},addStaticFields:function(l){return n.addStaticFields(l,c.correlationId)},increment:function(l){return n.increment(l,c.correlationId)},measurement:s,event:c}},r.prototype.endMeasurement=function(e,t){var n=this,i,o,a=this.eventsByCorrelationId.get(e.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var s=e.eventId===a.eventId,c={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(c=this.getQueueInfo(e.correlationId),this.discardCache(a.correlationId)):(i=a.incompleteSubMeasurements)===null||i===void 0||i.delete(e.eventId),t==null||t.endMeasurement();var l=t==null?void 0:t.flushMeasurement();if(!l)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+l+" ms",e.correlationId),!s)return a[e.name+"DurationMs"]=Math.floor(l),at({},a);var d=at(at({},a),e),u=0;return(o=d.incompleteSubMeasurements)===null||o===void 0||o.forEach(function(h){n.logger.trace("PerformanceClient: Incomplete submeasurement "+h.name+" found for "+e.name,d.correlationId),u++}),d.incompleteSubMeasurements=void 0,d=at(at({},d),{durationMs:Math.round(l),queuedTimeMs:c.totalQueueTime,queuedCount:c.totalQueueCount,queuedManuallyCompletedCount:c.manuallyCompletedCount,status:fm.Completed,incompleteSubsCount:u}),this.truncateIntegralFields(d,this.getIntFields()),this.emitEvents([d],e.correlationId),d},r.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,at(at({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var i in e)n.hasOwnProperty(i)||(n[i]=0),n[i]+=e[i];else this.logger.trace("PerformanceClient: Event not found for",t)},r.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,at({},e)))},r.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,i=0,o=0;return t==null||t.forEach(function(a){n+=a.queueTime,i++,o+=a.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:i,manuallyCompletedCount:o}},r.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},r.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)},r.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},r.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},r.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(i,o){n.logger.trace("PerformanceClient: Emitting event to callback "+o,t),i.apply(null,[e])})},r.prototype.truncateIntegralFields=function(e,t){t.forEach(function(n){n in e&&typeof e[n]=="number"&&(e[n]=Math.floor(e[n]))})},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Rw=function(){function r(){}return r.prototype.startMeasurement=function(){},r.prototype.endMeasurement=function(){},r.prototype.flushMeasurement=function(){return null},r}(),hN=function(r){Qn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new Rw},e.prototype.startPerformanceMeasurement=function(){return new Rw},e.prototype.calculateQueuedTime=function(t,n){return 0},e.prototype.addQueueMeasurement=function(t,n,i){},e.prototype.setPreQueueTime=function(t,n){},e}(qS);/*! @azure/msal-browser v2.38.3 2023-10-27 */var X={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."}},se=function(r){rn(e,r);function e(t,n){var i=r.call(this,t,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="BrowserAuthError",i}return e.createPkceNotGeneratedError=function(t){return new e(X.pkceNotGenerated.code,X.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(X.cryptoDoesNotExist.code,X.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(X.httpMethodNotImplementedError.code,X.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(X.emptyNavigateUriError.code,X.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(X.hashEmptyError.code,X.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(X.hashDoesNotContainStateError.code,X.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(X.hashDoesNotContainKnownPropertiesError.code,X.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(X.unableToParseStateError.code,X.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(X.stateInteractionTypeMismatchError.code,X.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(X.interactionInProgress.code,X.interactionInProgress.desc)},e.createPopupWindowError=function(t){var n=X.popupWindowError.desc;return n=le.isEmpty(t)?n:n+" Details: "+t,new e(X.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(X.emptyWindowError.code,X.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(X.userCancelledError.code,X.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(X.monitorPopupTimeoutError.code,X.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(X.monitorIframeTimeoutError.code,X.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(X.redirectInIframeError.code,X.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(X.blockTokenRequestsInHiddenIframeError.code,X.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(X.blockAcquireTokenInPopupsError.code,X.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(X.iframeClosedPrematurelyError.code,X.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(X.silentLogoutUnsupportedError.code,X.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(X.noAccountError.code,X.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(X.silentPromptValueError.code,X.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(X.unableToParseTokenRequestCacheError.code,X.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(X.noTokenRequestCacheError.code,X.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(X.authRequestNotSet.code,X.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(X.noCachedAuthorityError.code,X.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(X.invalidCacheType.code,""+X.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(X.notInBrowserEnvironment.code,X.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(X.databaseNotOpen.code,X.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(X.noNetworkConnectivity.code,X.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,n){return new e(X.postRequestFailed.code,X.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(t,n){return new e(X.getRequestFailed.code,X.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(X.failedToParseNetworkResponse.code,X.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(X.unableToLoadTokenError.code,X.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(X.signingKeyNotFoundInStorage.code,X.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(X.authCodeRequired.code,X.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(X.authCodeOrNativeAccountRequired.code,X.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(X.spaCodeAndNativeAccountPresent.code,X.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(X.databaseUnavailable.code,X.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(X.unableToAcquireTokenFromNativePlatform.code,X.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(X.nativeHandshakeTimeout.code,X.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(X.nativeExtensionNotInstalled.code,X.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(X.nativeConnectionNotEstablished.code,X.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(X.nativeBrokerCalledBeforeInitialize.code,X.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(X.nativePromptNotSupported.code,X.nativePromptNotSupported.desc)},e}(ve);/*! @azure/msal-browser v2.38.3 2023-10-27 */var to={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"},nh={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},ma;(function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(ma||(ma={}));var hr;(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(hr||(hr={}));var Ao;(function(r){r.GET="GET",r.POST="POST"})(Ao||(Ao={}));var Xe;(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(Xe||(Xe={}));var ko;(function(r){r.ACCOUNT_KEYS="msal.account.keys",r.TOKEN_KEYS="msal.token.keys"})(ko||(ko={}));var od;(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(od||(od={}));var It;(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(It||(It={}));var fe;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(fe||(fe={}));var Pw;(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(Pw||(Pw={}));var Mw={scopes:Q1},Md="jwk",$w;(function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"})($w||($w={}));var _5="msal.db",fN=1,pN=_5+".keys",Fn;(function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(Fn||(Fn={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var Dn={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."}},gm=function(r){rn(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.name="BrowserConfigurationAuthError",Object.setPrototypeOf(i,e.prototype),i}return e.createRedirectUriEmptyError=function(){return new e(Dn.redirectUriNotSet.code,Dn.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Dn.postLogoutUriNotSet.code,Dn.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(Dn.storageNotSupportedError.code,Dn.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(Dn.noRedirectCallbacksSet.code,Dn.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(Dn.stubPcaInstanceCalled.code,Dn.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(Dn.inMemRedirectUnavailable.code,Dn.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(Dn.entropyNotProvided.code,Dn.entropyNotProvided.desc)},e}(ve);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Hw=function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==hr.LocalStorage&&e!==hr.SessionStorage)throw gm.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw gm.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var b5=function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var WS=function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(le.isEmpty(t))return null;try{var n=ya.parseRequestState(e,t);return n.libraryState.meta}catch(i){throw de.createInvalidStateError(t,i)}},r.parseServerResponseFromHash=function(e){if(!e)return{};var t=new We(e);return We.getDeserializedHash(t.getHash())},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var w5=function(r){rn(e,r);function e(t,n,i,o){var a=r.call(this,t,i,o)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=o,a.internalStorage=new b5,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return e.prototype.setupBrowserStorage=function(t){switch(t){case hr.LocalStorage:case hr.SessionStorage:try{return new Hw(t)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=hr.MemoryStorage,new b5},e.prototype.setupTemporaryCacheStorage=function(t,n){switch(n){case hr.LocalStorage:case hr.SessionStorage:try{return new Hw(t||hr.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case hr.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,n=M.CACHE_PREFIX+"."+xr.ID_TOKEN,i=M.CACHE_PREFIX+"."+xr.CLIENT_INFO,o=M.CACHE_PREFIX+"."+xr.ERROR,a=M.CACHE_PREFIX+"."+xr.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(i),l=this.browserStorage.getItem(o),d=this.browserStorage.getItem(a),u=[s,c,l,d],h=[xr.ID_TOKEN,xr.CLIENT_INFO,xr.ERROR,xr.ERROR_DESC];h.forEach(function(f,p){return t.migrateCacheEntry(f,u[p])})},e.prototype.migrateCacheEntry=function(t,n){n&&this.setTemporaryCache(t,n,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var n=this.getItem(ko.ACCOUNT_KEYS),i=this.getItem(ko.TOKEN_KEYS+"."+this.clientId);if(n&&i){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var o=this.browserStorage.getKeys();o.forEach(function(a){if(t.isCredentialKey(a)){var s=t.getItem(a);if(s){var c=t.validateAndParseJson(s);if(c&&c.hasOwnProperty("credentialType"))switch(c.credentialType){case be.ID_TOKEN:if(_c.isIdTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var l=zn.toObject(new _c,c),d=t.updateCredentialCacheKey(a,l);t.addTokenKey(d,be.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: "+a);break;case be.ACCESS_TOKEN:case be.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(bc.isAccessTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var u=zn.toObject(new bc,c),d=t.updateCredentialCacheKey(a,u);t.addTokenKey(d,be.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: "+a);break;case be.REFRESH_TOKEN:if(nd.isRefreshTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var h=zn.toObject(new nd,c),d=t.updateCredentialCacheKey(a,h);t.addTokenKey(d,be.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: "+a);break}}}if(t.isAccountKey(a)){var s=t.getItem(a);if(s){var f=t.validateAndParseJson(s);f&&Qr.isAccountEntity(f)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),t.addAccountKeyToMap(a))}}})},e.prototype.validateAndParseJson=function(t){try{var n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,n){this.browserStorage.setItem(t,n)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(t);if(!n)return this.removeAccountKeyFromMap(t),null;var i=this.validateAndParseJson(n);return!i||!Qr.isAccountEntity(i)?(this.removeAccountKeyFromMap(t),null):zn.toObject(new Qr,i)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var n=t.generateAccountKey();this.setItem(n,JSON.stringify(t)),this.addAccountKeyToMap(n)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(ko.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 n=this.getAccountKeys();n.indexOf(t)===-1?(n.push(t),this.setItem(ko.ACCOUNT_KEYS,JSON.stringify(n)),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 n=this.getAccountKeys(),i=n.indexOf(t);i>-1?(n.splice(i,1),this.setItem(ko.ACCOUNT_KEYS,JSON.stringify(n)),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 K(this,void 0,void 0,function(){return Y(this,function(n){return r.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){r.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,be.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return K(this,void 0,void 0,function(){return Y(this,function(n){return r.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,be.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){r.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,be.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(ko.TOKEN_KEYS+"."+this.clientId);if(t){var n=this.validateAndParseJson(t);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;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,n){this.logger.trace("BrowserCacheManager addTokenKey called");var i=this.getTokenKeys();switch(n){case be.ID_TOKEN:i.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(t));break;case be.ACCESS_TOKEN:i.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),i.accessToken.push(t));break;case be.REFRESH_TOKEN:i.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),de.createUnexpectedCredentialTypeError()}this.setItem(ko.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},e.prototype.removeTokenKey=function(t,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var i=this.getTokenKeys();switch(n){case be.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var o=i.idToken.indexOf(t);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case be.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var a=i.accessToken.indexOf(t);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case be.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var s=i.refreshToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(s,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: "+n),de.createUnexpectedCredentialTypeError()}this.setItem(ko.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},e.prototype.getIdTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,be.ID_TOKEN),null;var i=this.validateAndParseJson(n);return!i||!_c.isIdTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,be.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),zn.toObject(new _c,i))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,be.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,be.ACCESS_TOKEN),null;var i=this.validateAndParseJson(n);return!i||!bc.isAccessTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,be.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),zn.toObject(new bc,i))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,be.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,be.REFRESH_TOKEN),null;var i=this.validateAndParseJson(n);return!i||!nd.isRefreshTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,be.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),zn.toObject(new nd,i))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,be.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!g5.isAppMetadataEntity(t,i)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),zn.toObject(new g5,i))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=t.generateAppMetadataKey();this.setItem(n,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!vm.isServerTelemetryEntity(t,i)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),zn.toObject(new vm,i))},e.prototype.setServerTelemetry=function(t,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(t){var n=this.internalStorage.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(n);return i&&y5.isAuthorityMetadataEntity(t,i)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),zn.toObject(new y5,i)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,n=this.internalStorage.getKeys();return n.filter(function(i){return t.isAuthorityMetadata(i)})},e.prototype.setWrapperMetadata=function(t,n){this.internalStorage.setItem(od.WRAPPER_SKU,t),this.internalStorage.setItem(od.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(od.WRAPPER_SKU)||M.EMPTY_STRING,n=this.internalStorage.getItem(od.WRAPPER_VER)||M.EMPTY_STRING;return[t,n]},e.prototype.setAuthorityMetadata=function(t,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(xr.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(t);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var i=this.generateCacheKey(xr.ACTIVE_ACCOUNT),o=this.getItem(i);if(!o)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var n=this.generateCacheKey(xr.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(xr.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var o={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(n,JSON.stringify(o)),this.browserStorage.setItem(i,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(i)},e.prototype.getAccountInfoByFilter=function(t){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),n.filter(function(i){return!(t.username&&t.username.toLowerCase()!==i.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==i.homeAccountId||t.localAccountId&&t.localAccountId!==i.localAccountId||t.tenantId&&t.tenantId!==i.tenantId||t.environment&&t.environment!==i.environment)})},e.prototype.getAccountInfoByHints=function(t,n){var i=this.getAllAccounts().filter(function(o){if(n){var a=o.idTokenClaims&&o.idTokenClaims.sid;return n===a}return t?t===o.username:!1});if(i.length===1)return i[0];if(i.length>1)throw de.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var i=this.validateAndParseJson(n);return!i||!Aw.isThrottlingEntity(t,i)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),zn.toObject(new Aw,i))},e.prototype.setThrottlingCache=function(t,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(n))},e.prototype.getTemporaryCache=function(t,n){var i=n?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(i);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var a=this.temporaryCacheStorage.getItem(i);if(!a){if(this.cacheConfig.cacheLocation===hr.LocalStorage){var s=this.browserStorage.getItem(i);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(t,n,i){var o=i?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(o,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,n))},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 Qy(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return K(this,void 0,void 0,function(){var t=this;return Y(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(i){(t.browserStorage.containsKey(i)||t.temporaryCacheStorage.containsKey(i))&&(i.indexOf(M.CACHE_PREFIX)!==-1||i.indexOf(t.clientId)!==-1)&&t.removeItem(i)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return K(this,void 0,void 0,function(){var t,n,i=this;return Y(this,function(o){switch(o.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),n=[],t.accessToken.forEach(function(a){var s=i.getAccessTokenCredential(a);s!=null&&s.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&n.push(i.removeAccessToken(a))}),[4,Promise.all(n)];case 1:return o.sent(),n.length>0&&this.logger.warning(n.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,n,i){var o=encodeURIComponent(t)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(i){var a=this.getCookieExpirationTime(i);o+="expires="+a+";"}this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},e.prototype.getItemCookie=function(t){for(var n=encodeURIComponent(t)+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return M.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,n=M.CACHE_PREFIX+"."+this.clientId,i=document.cookie.split(";");i.forEach(function(o){for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(n)===0){var a=o.split("=")[0];t.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,M.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var n=new Date,i=new Date(n.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return i.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var n=this.validateAndParseJson(t);return n?JSON.stringify(t):le.startsWith(t,M.CACHE_PREFIX)||le.startsWith(t,xr.ADAL_ID_TOKEN)?t:M.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var n=ya.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Xe.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(t){var n=ya.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Xe.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(t){var n=ya.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Xe.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(t){var n=this.generateStateKey(t),i=this.getTemporaryCache(n);if(!i)return null;var o=this.generateAuthorityKey(i);return this.getTemporaryCache(o)},e.prototype.updateCacheEntries=function(t,n,i,o,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(t);this.setTemporaryCache(s,t,!1);var c=this.generateNonceKey(t);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(t);if(this.setTemporaryCache(l,i,!1),a){var d={credential:a.homeAccountId,type:oi.HOME_ACCOUNT_ID};this.setTemporaryCache(Xe.CCS_CREDENTIAL,JSON.stringify(d),!0)}else if(!le.isEmpty(o)){var d={credential:o,type:oi.UPN};this.setTemporaryCache(Xe.CCS_CREDENTIAL,JSON.stringify(d),!0)}},e.prototype.resetRequestCache=function(t){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),le.isEmpty(t)||this.getKeys().forEach(function(i){i.indexOf(t)!==-1&&n.removeItem(i)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(Xe.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Xe.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Xe.URL_HASH)),this.removeItem(this.generateCacheKey(Xe.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Xe.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Xe.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var n=this.generateStateKey(t),i=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+i),this.resetRequestCache(i||M.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(i){if(i.indexOf(Xe.REQUEST_STATE)!==-1){var o=n.temporaryCacheStorage.getItem(i);if(o){var a=WS.extractBrowserRequestState(n.cryptoImpl,o);a&&a.interactionType===t&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+o),n.resetRequestCache(o))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var i=n.base64Encode(JSON.stringify(t));this.setTemporaryCache(Xe.REQUEST_PARAMS,i,!0)},e.prototype.getCachedRequest=function(t,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var i=this.getTemporaryCache(Xe.REQUEST_PARAMS,!0);if(!i)throw se.createNoTokenRequestCacheError();var o=this.validateAndParseJson(n.base64Decode(i));if(!o)throw se.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Xe.REQUEST_PARAMS)),le.isEmpty(o.authority)){var a=this.generateAuthorityKey(t),s=this.getTemporaryCache(a);if(!s)throw se.createNoCachedAuthorityError();o.authority=s}return o},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(Xe.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(t);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var n=this.getInteractionInProgress();return t?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var t=M.CACHE_PREFIX+"."+Xe.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var n=M.CACHE_PREFIX+"."+Xe.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw se.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(xr.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(xr.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(xr.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(xr.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var i=n||t;if(i){var o=new Vo(i,this.cryptoImpl);if(o.claims&&o.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"),o.claims.preferred_username;if(o.claims&&o.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.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,n){var i=n.generateCredentialKey();if(t!==i){var o=this.getItem(t);if(o)return this.removeItem(t),this.setItem(i,o),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),i;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(Xe.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(Xe.REDIRECT_CONTEXT,t,!0)},e}(zn),mN=function(r,e){var t={cacheLocation:hr.MemoryStorage,temporaryCacheLocation:hr.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new w5(r,t,dm,e)};/*! @azure/msal-browser v2.38.3 2023-10-27 */var eg="@azure/msal-browser",qh="2.38.3";/*! @azure/msal-browser v2.38.3 2023-10-27 */var vN=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return K(this,void 0,void 0,function(){var n,i,o;return Y(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:Ao.GET,headers:this.getFetchHeaders(t)})];case 1:return n=a.sent(),[3,3];case 2:throw i=a.sent(),window.navigator.onLine?se.createGetRequestFailedError(i,e):se.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(o.body=a.sent(),o.status=n.status,o)];case 5:throw a.sent(),se.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},r.prototype.sendPostRequestAsync=function(e,t){return K(this,void 0,void 0,function(){var n,i,o,a;return Y(this,function(s){switch(s.label){case 0:n=t&&t.body||M.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:Ao.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return i=s.sent(),[3,4];case 3:throw o=s.sent(),window.navigator.onLine?se.createPostRequestFailedError(o,e):se.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 5:return[2,(a.body=s.sent(),a.status=i.status,a)];case 6:throw s.sent(),se.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},r.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var n=e.headers;return Object.keys(n).forEach(function(i){t.append(i,n[i])}),t},r.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(n,i){t[i]=n}),t},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var gN=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return K(this,void 0,void 0,function(){return Y(this,function(n){return[2,this.sendRequestAsync(e,Ao.GET,t)]})})},r.prototype.sendPostRequestAsync=function(e,t){return K(this,void 0,void 0,function(){return Y(this,function(n){return[2,this.sendRequestAsync(e,Ao.POST,t)]})})},r.prototype.sendRequestAsync=function(e,t,n){var i=this;return new Promise(function(o,a){var s=new XMLHttpRequest;if(s.open(t,e,!0),i.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(t===Ao.POST?a(se.createPostRequestFailedError("Failed with status "+s.status,e)):a(se.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:i.getHeaderDict(s),body:c,status:s.status};o(l)}catch{a(se.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===Ao.POST?a(se.createPostRequestFailedError("Failed with status "+s.status,e)):a(se.createGetRequestFailedError("Failed with status "+s.status,e)):a(se.createNoNetworkConnectivityError())},t===Ao.POST&&n&&n.body)s.send(n.body);else if(t===Ao.GET)s.send();else throw se.createHttpMethodNotImplementedError(t)})},r.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(i){e.setRequestHeader(i,n[i])})}},r.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),n=t.trim().split(/[\r\n]+/),i={};return n.forEach(function(o){var a=o.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(i[s]=c)}),i},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var nr=function(){function r(){}return r.clearHash=function(e){e.location.hash=M.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,M.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):M.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(to.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new We(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new vN:new gN},r.blockReloadInHiddenIframes=function(){var e=We.hashContainsKnownProperties(window.location.hash);if(e&&r.isInIframe())throw se.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var n=r.isInIframe();if(e===fe.Redirect&&n&&!t)throw se.createRedirectInIframeError(n)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw se.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw se.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw se.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),i=e.indexOf("Edge/"),o=t>0||n>0,a=i>0;return o||a},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var GS=function(){function r(e,t,n,i,o,a,s,c,l){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=i.clone(to.MSAL_SKU,qh,this.correlationId),this.performanceClient=s}return r.prototype.clearCacheOnLogout=function(e){return K(this,void 0,void 0,function(){return Y(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Qr.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(Qr.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]}})})},r.prototype.initializeBaseRequest=function(e,t){return K(this,void 0,void 0,function(){var n,i,o,a;return Y(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(z.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(i=Qy(e&&e.scopes||[]),o=pe(pe({},e),{correlationId:this.correlationId,authority:n,scopes:i}),!o.authenticationScheme)o.authenticationScheme=ut.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===ut.SSH){if(!e.sshJwk)throw At.createMissingSshJwkError();if(!e.sshKid)throw At.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!le.isEmptyObj(e.claims)?(a=o,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,o]}})})},r.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||nr.getCurrentUri();return We.getAbsoluteUrl(t,nr.getCurrentUri())},r.prototype.validateRequestAuthority=function(e,t){return K(this,void 0,void 0,function(){var n;return Y(this,function(i){switch(i.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n=i.sent(),!n.isAlias(t.environment))throw At.createAuthorityMismatchError();return[2]}})})},r.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={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 uN(n,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return K(this,void 0,void 0,function(){var t;return Y(this,function(n){switch(n.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,mm.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,mm.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Yd=function(r){rn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return K(this,void 0,void 0,function(){var n,i;return Y(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(z.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=o.sent(),i=pe(pe({},t),{redirectUri:t.redirectUri,code:M.EMPTY_STRING,codeVerifier:n.verifier}),t.codeChallenge=n.challenge,t.codeChallengeMethod=M.S256_CODE_CHALLENGE_METHOD,[2,i]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var n=pe({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 i=this.getLogoutHintFromIdTokenClaims(t.account);i&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=i)}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",n.correlationId),n.postLogoutRedirectUri=We.getAbsoluteUrl(t.postLogoutRedirectUri,nr.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=We.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,nr.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=We.getAbsoluteUrl(nr.getCurrentUri(),nr.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var n=t.idTokenClaims;if(n){if(n.login_hint)return n.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,n,i){return K(this,void 0,void 0,function(){var o;return Y(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(z.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(z.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,i)];case 1:return o=a.sent(),[2,new jS(o,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,n,i){return K(this,void 0,void 0,function(){var o,a;return Y(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(z.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(z.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,i)];case 1:return o=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:to.MSAL_SKU,version:qh,cpu:M.EMPTY_STRING,os:M.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,n,i){if(this.logger.verbose("validateAndExtractStateFromHash called",i),!t.state)throw se.createHashDoesNotContainStateError();var o=WS.extractBrowserRequestState(this.browserCrypto,t.state);if(!o)throw se.createUnableToParseStateError();if(o.interactionType!==n)throw se.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",i),t.state},e.prototype.getDiscoveredAuthority=function(t,n){var i;return K(this,void 0,void 0,function(){var o,a,s,c;return Y(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(z.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(z.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={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},s=t||this.config.auth.authority,c=x1.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(z.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,mm.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(d){return o.endMeasurement({success:!0}),d}).catch(function(d){throw o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})];case 1:return[2,l.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,n){return K(this,void 0,void 0,function(){var i,o,a,s,c,l,d;return Y(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(z.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),i=this.getRedirectUri(t.redirectUri),o={interactionType:n},a=ya.setRequestState(this.browserCrypto,t&&t.state||M.EMPTY_STRING,o),this.performanceClient.setPreQueueTime(z.InitializeBaseRequest,this.correlationId),c=[{}],[4,this.initializeBaseRequest(t)];case 1:return s=pe.apply(void 0,[pe.apply(void 0,c.concat([u.sent()])),{redirectUri:i,state:a,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:sm.FRAGMENT}]),l=t.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),le.isEmpty(s.loginHint)&&!l&&(d=this.browserStorage.getLegacyLoginHint(),d&&(s.loginHint=d)),[2,s]}})})},e}(GS);/*! @azure/msal-browser v2.38.3 2023-10-27 */var t_=function(){function r(e,t,n,i,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=i,this.performanceClient=o}return r.prototype.handleCodeResponseFromHash=function(e,t,n,i){return K(this,void 0,void 0,function(){var o,a,s;return Y(this,function(c){if(this.performanceClient.addQueueMeasurement(z.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),le.isEmpty(e))throw se.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(o),!a)throw de.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof Uc&&l.subError===X.userCancelledError.code?se.createUserCancelledError():l}return this.performanceClient.setPreQueueTime(z.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,i)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,n,i,o){return o===void 0&&(o=!0),K(this,void 0,void 0,function(){var a,s,c,l,d,u;return Y(this,function(h){switch(h.label){case 0:if(this.performanceClient.addQueueMeasurement(z.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(a),!s)throw de.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(z.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,i)]):[3,2];case 1:h.sent(),h.label=2;case 2:return o&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),this.performanceClient.setPreQueueTime(z.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return u=h.sent(),this.browserStorage.cleanRequestByState(t),[2,u]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,n){return K(this,void 0,void 0,function(){var i,o;return Y(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(z.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),i="https://"+e+"/"+t.tenant+"/",[4,mm.createDiscoveredInstance(i,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return o=a.sent(),this.authModule.updateAuthority(o),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Xe.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},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Zw=function(r){rn(e,r);function e(t,n,i,o,a,s){var c=r.call(this,t,n,i,o,s)||this;return c.browserCrypto=a,c}return e.prototype.initiateAuthRequest=function(t,n){return K(this,void 0,void 0,function(){var i,o;return Y(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),le.isEmpty(t)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Xe.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Xe.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),i={apiId:It.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),o=n.onRedirectNavigate(t),o===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(t,i)])));case 1:return a.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,n.navigationClient.navigateExternal(t,i)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),se.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,n,i,o){return K(this,void 0,void 0,function(){var a,s,c,l,d,u,h;return Y(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),le.isEmpty(t))throw se.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw de.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(p){throw p instanceof Uc&&p.subError===X.userCancelledError.code?se.createUserCancelledError():p}return l=this.browserStorage.generateNonceKey(s),d=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,i,o)]:[3,2];case 1:f.sent(),f.label=2;case 2:return c.nonce=d||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=f.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(t_);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Se;(function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd",r.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(Se||(Se={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var is;(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(is||(is={}));var Hu={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"}},Mo=function(r){rn(e,r);function e(t,n,i){var o=r.call(this,t,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="NativeAuthError",o.ext=i,o}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===is.PERSISTENT_ERROR||this.ext.status===is.DISABLED))return!0;switch(this.errorCode){case Hu.extensionError.code:return!0;default:return!1}},e.createError=function(t,n,i){if(i&&i.status)switch(i.status){case is.ACCOUNT_UNAVAILABLE:return no.createNativeAccountUnavailableError();case is.USER_INTERACTION_REQUIRED:return new no(t,n);case is.USER_CANCEL:return se.createUserCancelledError();case is.NO_NETWORK:return se.createNoNetworkConnectivityError()}return new e(t,n,i)},e.createUserSwitchError=function(){return new e(Hu.userSwitch.code,Hu.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Hu.tokensNotFoundInCache.code,Hu.tokensNotFoundInCache.desc)},e}(ve);/*! @azure/msal-browser v2.38.3 2023-10-27 */var KS=function(r){rn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s;return Y(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(z.SilentCacheClientAcquireToken,t.correlationId),i=this.initializeServerTelemetryManager(It.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(i,t.authority,t.azureCloudOptions)];case 1:o=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,o.acquireCachedToken(t)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof se&&s.errorCode===X.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof ve&&s.errorCode||void 0,subErrorCode:s instanceof ve&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(se.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,n,i){return K(this,void 0,void 0,function(){var o;return Y(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(z.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,i)];case 1:return o=a.sent(),[2,new iN(o,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,n){return K(this,void 0,void 0,function(){var i;return Y(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(z.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(z.InitializeBaseRequest,this.correlationId),i=[pe({},t)],[4,this.initializeBaseRequest(t,n)];case 1:return[2,pe.apply(void 0,[pe.apply(void 0,i.concat([o.sent()])),{account:n,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Yd);/*! @azure/msal-browser v2.38.3 2023-10-27 */var bd=function(r){rn(e,r);function e(t,n,i,o,a,s,c,l,d,u,h,f){var p=r.call(this,t,n,i,o,a,s,l,d,f)||this;return p.apiId=c,p.accountId=u,p.nativeMessageHandler=d,p.nativeStorageManager=h,p.silentCacheClient=new KS(t,p.nativeStorageManager,i,o,a,s,l,d,f),p}return e.prototype.acquireToken=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c,l;return Y(this,function(d){switch(d.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(z.NativeInteractionClientAcquireToken,t.correlationId),i=Mi.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:o=d.sent(),d.label=2;case 2:return d.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return a=d.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return d.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:ma.GetToken,request:o},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=d.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,o,i).then(function(u){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:u.requestId}),u}).catch(function(u){throw n.endMeasurement({success:!1,errorCode:u.errorCode,subErrorCode:u.subError,isNativeBroker:!0}),u})]}})})},e.prototype.createSilentCacheRequest=function(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:hn.fromString(t.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,n){return K(this,void 0,void 0,function(){var i,o,a,s;return Y(this,function(c){switch(c.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),de.createNoAccountFoundError();if(i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!i)throw de.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),o=this.createSilentCacheRequest(n,i),[4,this.silentCacheClient.acquireToken(o)];case 2:return a=c.sent(),[2,a];case 3:throw s=c.sent(),s;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c;return Y(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:n=l.sent(),i={method:ma.GetToken,request:n},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(i)];case 3:return o=l.sent(),this.validateNativeResponse(o),[3,5];case 4:if(a=l.sent(),a instanceof Mo&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Xe.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:It.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return K(this,void 0,void 0,function(){var t,n,i,o,a,s,c,l;return Y(this,function(d){switch(d.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];n=t.prompt,i=ww(t,["prompt"]),n&&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(Xe.NATIVE_REQUEST)),o={method:ma.GetToken,request:i},a=Mi.nowSeconds(),d.label=1;case 1:return d.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(o)];case 2:return s=d.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,i,a),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=d.sent(),this.browserStorage.setInteractionInProgress(!1),l;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,n,i){return K(this,void 0,void 0,function(){var o,a,s,c,l,d;return Y(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==n.accountId)throw Mo.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return o=u.sent(),a=o.getPreferredCache(),s=this.createIdTokenObj(t),c=this.createHomeAccountIdentifier(t,s),l=this.createAccountEntity(t,c,s,a),[4,this.generateAuthenticationResult(t,n,s,l,o.canonicalAuthority,i)];case 2:return d=u.sent(),this.cacheAccount(l),this.cacheNativeTokens(t,n,c,l,s,d.accessToken,d.tenantId,i),[2,d]}})})},e.prototype.createIdTokenObj=function(t){return new Vo(t.id_token||M.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,n){var i=Qr.generateHomeAccountId(t.client_info||M.EMPTY_STRING,Cn.Default,this.logger,this.browserCrypto,n);return i},e.prototype.createAccountEntity=function(t,n,i,o){return Qr.createAccount(t.client_info,n,i,void 0,void 0,void 0,o,t.account.id)},e.prototype.generateScopes=function(t,n){return t.scope?hn.fromString(t.scope):hn.fromString(n.scope)},e.prototype.generatePopAccessToken=function(t,n){return K(this,void 0,void 0,function(){var i,o;return Y(this,function(a){switch(a.label){case 0:if(n.tokenType!==ut.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(i=new Pd(this.browserCrypto),o={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw de.createKeyIdMissingError();return[4,i.signPopToken(t.access_token,n.keyId,o)];case 1:return[2,a.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,n,i,o,a,s){return K(this,void 0,void 0,function(){var c,l,d,u,h,f,p,m;return Y(this,function(x){switch(x.label){case 0:return c=this.addTelemetryFromNativeResponse(t),l=t.scope?hn.fromString(t.scope):hn.fromString(n.scope),d=t.account.properties||{},u=d.UID||i.claims.oid||i.claims.sub||M.EMPTY_STRING,h=d.TenantId||i.claims.tid||M.EMPTY_STRING,[4,this.generatePopAccessToken(t,n)];case 1:return f=x.sent(),p=n.tokenType===ut.POP?ut.POP:ut.BEARER,m={authority:a,uniqueId:u,tenantId:h,scopes:l.asArray(),account:o.getAccountInfo(),idToken:t.id_token,idTokenClaims:i.claims,accessToken:f,fromCache:c?this.isResponseFromCache(c):!1,expiresOn:new Date(Number(s+t.expires_in)*1e3),tokenType:p,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,m]}})})},e.prototype.cacheAccount=function(t){var n=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(i){n.logger.error("Error occurred while removing account context from browser storage. "+i)})},e.prototype.cacheNativeTokens=function(t,n,i,o,a,s,c,l){var d=_c.createIdTokenEntity(i,n.authority,t.id_token||M.EMPTY_STRING,n.clientId,a.claims.tid||M.EMPTY_STRING),u=n.tokenType===ut.POP?M.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,h=l+u,f=this.generateScopes(t,n),p=bc.createAccessTokenEntity(i,n.authority,s,n.clientId,a?a.claims.tid||M.EMPTY_STRING:c,f.printScopes(),h,0,this.browserCrypto),m=new Bh(o,d,p);this.nativeStorageManager.saveCacheRecord(m)},e.prototype.addTelemetryFromNativeResponse=function(t){var n=this.getMATSFromResponse(t);return n?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):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 Mo.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 K(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d,u,h,f=this;return Y(this,function(p){switch(p.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(n,t.account)]:[3,2];case 1:p.sent(),p.label=2;case 2:return i=new We(n),i.validateAsUri(),o=t.scopes,a=ww(t,["scopes"]),s=new hn(o||[]),s.appendScopes(Q1),c=function(){switch(f.apiId){case It.ssoSilent:case It.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),mn.NONE}if(!t.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case mn.NONE:case mn.CONSENT:case mn.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),se.createNativePromptParameterNotSupportedError()}},l=pe(pe({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:i.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:pe(pe(pe({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:nh.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==ut.POP?[3,4]:(d={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},u=new Pd(this.browserCrypto),[4,u.generateCnf(d)]);case 3:h=p.sent(),l.reqCnf=h.reqCnfString,l.keyId=h.kid,p.label=4;case 4:return[2,l]}})})},e}(GS);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Mc=function(){function r(e,t,n,i){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(z.NativeMessageHandlerHandshake)}return r.prototype.sendMessage=function(e){return K(this,void 0,void 0,function(){var t,n=this;return Y(this,function(i){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:nh.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(o,a){n.resolvers.set(t.responseId,{resolve:o,reject:a})})]})})},r.createProvider=function(e,t,n){return K(this,void 0,void 0,function(){var i,o;return Y(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),i=new r(e,t,n,nh.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),o=new r(e,t,n),[4,o.sendHandshakeRequest()];case 4:return a.sent(),[2,o];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return K(this,void 0,void 0,function(){var e,t=this;return Y(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:nh.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:ma.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(i){t.onChannelMessage(i)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(i,o){t.handshakeResolvers.set(e.responseId,{resolve:i,reject:o}),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}),o(se.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==nh.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===ma.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 n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(se.createNativeExtensionNotInstalledError()))}}},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),i=this.handshakeResolvers.get(t.responseId);try{var o=t.body.method;if(o===ma.Response){if(!n)return;var a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(Mo.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Mo.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw ve.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(o===ma.HandshakeResponse){if(!i)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}),i.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):i&&i.reject(s)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,n,i){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case ut.BEARER:case ut.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},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var yN=function(r){rn(e,r);function e(t,n,i,o,a,s,c,l,d,u){var h=r.call(this,t,n,i,o,a,s,c,d,u)||this;return h.nativeStorage=l,h}return e.prototype.acquireToken=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d,u,h=this;return Y(this,function(f){switch(f.label){case 0:return this.performanceClient.setPreQueueTime(z.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,fe.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||M.EMPTY_STRING,n.account||null),i=this.initializeServerTelemetryManager(It.acquireTokenRedirect),o=function(p){p.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state),h.eventHandler.emitEvent(Se.RESTORE_FROM_BFCACHE,fe.Redirect))},f.label=2;case 2:return f.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(z.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),this.performanceClient.setPreQueueTime(z.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new Zw(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(pe(pe({},n),{nativeBroker:Mc.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return l=f.sent(),d=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+d),window.addEventListener("pageshow",o),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:d,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw u=f.sent(),u instanceof ve&&u.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),i.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(n.state),u;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d,u,h,f,p;return Y(this,function(m){switch(m.label){case 0:n=this.initializeServerTelemetryManager(It.handleRedirectPromise),m.label=1;case 1:if(m.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(i=this.getRedirectResponseHash(t||window.location.hash),!i)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(fe.Redirect),[2,null];o=void 0;try{a=We.getDeserializedHash(i),o=this.validateAndExtractStateFromHash(a,fe.Redirect),this.logger.verbose("State extracted from hash")}catch(x){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+x),this.browserStorage.cleanRequestByInteractionType(fe.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(Xe.ORIGIN_URI,!0)||M.EMPTY_STRING,c=We.removeHashFromUrl(s),l=We.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(i,o,n)]):[3,3];case 2:return d=m.sent(),s.indexOf("#")>-1&&nr.replaceHash(s),[2,d];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(i,o,n)]);case 4:return!nr.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(Xe.URL_HASH,i,!0),u={apiId:It.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(f=nr.getHomepage(),this.browserStorage.setTemporaryCache(Xe.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,u)]):[3,6]):[3,9];case 5:return h=m.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,u)];case 7:h=m.sent(),m.label=8;case 8:if(!h)return[2,this.handleHash(i,o,n)];m.label=9;case 9:return[2,null];case 10:throw p=m.sent(),p instanceof ve&&p.setCorrelationId(this.correlationId),n.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(fe.Redirect),p;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var n=We.hashContainsKnownProperties(t);if(n)return nr.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var i=this.browserStorage.getTemporaryCache(Xe.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Xe.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),i},e.prototype.handleHash=function(t,n,i){return K(this,void 0,void 0,function(){var o,a,s,c,l,d,u,h=this;return Y(this,function(f){switch(f.label){case 0:if(o=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=We.getDeserializedHash(t),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw se.createNativeConnectionNotEstablishedError();return s=new bd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,It.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,o.correlationId),c=ya.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(pe(pe({},o),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw se.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(z.StandardInteractionClientCreateAuthCodeClient,o.correlationId),[4,this.createAuthCodeClient(i,l)];case 1:return d=f.sent(),this.logger.verbose("Auth code client created"),hm.removeThrottle(this.browserStorage,this.config.auth.clientId,o),u=new Zw(d,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,u.handleCodeResponseFromHash(t,n,d.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c,l;return Y(this,function(d){switch(d.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(t),i=this.initializeServerTelemetryManager(It.logout),d.label=1;case 1:return d.trys.push([1,10,,11]),this.eventHandler.emitEvent(Se.LOGOUT_START,fe.Redirect,t),[4,this.clearCacheOnLogout(n.account)];case 2:return d.sent(),o={apiId:It.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(z.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(i,t&&t.authority)];case 3:return a=d.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(Se.LOGOUT_SUCCESS,fe.Redirect,n),t&&typeof t.onRedirectNavigate=="function"?(c=t.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)])):[3,7];case 4:return d.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),d.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)];case 8:return d.sent(),[2];case 9:return[3,11];case 10:throw l=d.sent(),l instanceof ve&&l.setCorrelationId(this.correlationId),i.cacheFailedRequest(l),this.eventHandler.emitEvent(Se.LOGOUT_FAILURE,fe.Redirect,null,l),this.eventHandler.emitEvent(Se.LOGOUT_END,fe.Redirect),l;case 11:return this.eventHandler.emitEvent(Se.LOGOUT_END,fe.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var n=t||window.location.href;return We.getAbsoluteUrl(n,nr.getCurrentUri())},e}(Yd);/*! @azure/msal-browser v2.38.3 2023-10-27 */var _N=function(r){rn(e,r);function e(t,n,i,o,a,s,c,l,d,u){var h=r.call(this,t,n,i,o,a,s,c,d,u)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=l,h}return e.prototype.acquireToken=function(t){try{var n=this.generatePopupName(t.scopes||Q1,t.authority||this.config.auth.authority),i=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,n,i);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var o=this.openSizedPopup("about:blank",n,i);return this.acquireTokenPopupAsync(t,n,i,o)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(t),i=this.generateLogoutPopupName(n),o=t&&t.authority,a=t&&t.mainWindowRedirectUri,s=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,i,s,o,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",i,s);return this.logoutPopupAsync(n,i,s,o,c,a)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(t,n,i,o){return K(this,void 0,void 0,function(){var a,s,c,l,d,u,h,f,p,m,x,g,v,b,E,I,C,T=this;return Y(this,function(O){switch(O.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(It.acquireTokenPopup),this.performanceClient.setPreQueueTime(z.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,fe.Popup)];case 1:s=O.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||M.EMPTY_STRING,s.account||null),O.label=2;case 2:return O.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(z.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=O.sent(),this.performanceClient.setPreQueueTime(z.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=O.sent(),this.logger.verbose("Auth code client created"),d=Mc.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),u=void 0,d&&(u=this.performanceClient.startMeasurement(z.FetchAccountIdWithNativeBroker,t.correlationId)),[4,l.getAuthCodeUrl(pe(pe({},s),{nativeBroker:d}))];case 5:return h=O.sent(),f=new t_(l,this.browserStorage,c,this.logger,this.performanceClient),p={popup:o,popupName:n,popupWindowAttributes:i},m=this.initiateAuthRequest(h,p),this.eventHandler.emitEvent(Se.POPUP_OPENED,fe.Popup,{popupWindow:m},null),[4,this.monitorPopupForHash(m)];case 6:if(x=O.sent(),g=We.getDeserializedHash(x),v=this.validateAndExtractStateFromHash(g,fe.Popup,s.correlationId),hm.removeThrottle(this.browserStorage,this.config.auth.clientId,c),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),u&&u.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw se.createNativeConnectionNotEstablishedError();return b=new bd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,It.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,s.correlationId),E=ya.parseRequestState(this.browserCrypto,v).userRequestState,[2,b.acquireToken(pe(pe({},s),{state:E,prompt:void 0})).finally(function(){T.browserStorage.cleanRequestByState(v)})]}return[4,f.handleCodeResponseFromHash(x,v,l.authority,this.networkClient)];case 7:return I=O.sent(),[2,I];case 8:throw C=O.sent(),o&&o.close(),C instanceof ve&&C.setCorrelationId(this.correlationId),a.cacheFailedRequest(C),this.browserStorage.cleanRequestByState(s.state),C;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,n,i,o,a,s){return K(this,void 0,void 0,function(){var c,l,d,u,h,f,p;return Y(this,function(m){switch(m.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Se.LOGOUT_START,fe.Popup,t),c=this.initializeServerTelemetryManager(It.logoutPopup),m.label=1;case 1:return m.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return m.sent(),this.performanceClient.setPreQueueTime(z.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(c,o)];case 3:return l=m.sent(),this.logger.verbose("Auth code client created"),d=l.getLogoutUri(t),this.eventHandler.emitEvent(Se.LOGOUT_SUCCESS,fe.Popup,t),u=this.openPopup(d,{popupName:n,popupWindowAttributes:i,popup:a}),this.eventHandler.emitEvent(Se.POPUP_OPENED,fe.Popup,{popupWindow:u},null),[4,this.waitForLogoutPopup(u)];case 4:return m.sent(),s?(h={apiId:It.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=We.getAbsoluteUrl(s,nr.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw p=m.sent(),a&&a.close(),p instanceof ve&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Se.LOGOUT_FAILURE,fe.Popup,null,p),this.eventHandler.emitEvent(Se.LOGOUT_END,fe.Popup),c.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(Se.LOGOUT_END,fe.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,n){if(le.isEmpty(t))throw this.logger.error("Navigate url is empty"),se.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,n)},e.prototype.monitorPopupForHash=function(t){var n=this;return new Promise(function(i,o){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(t.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),o(se.createUserCancelledError());return}var l=M.EMPTY_STRING,d=M.EMPTY_STRING;try{l=t.location.href,d=t.location.hash}catch{}le.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,d?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(t),We.hashContainsKnownProperties(d)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),i(d)):(n.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."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+d),o(se.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),o(se.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var n=this;return new Promise(function(i){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){t.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(o),i());var a=M.EMPTY_STRING;try{a=t.location.href}catch{}le.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),n.cleanPopup(t),i())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,n){try{var i=void 0;if(n.popup?(i=n.popup,this.logger.verbosePii("Navigating popup window to: "+t),i.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),i=this.openSizedPopup(t,n.popupName,n.popupWindowAttributes)),!i)throw se.createEmptyWindowCreatedError();return i.focus&&i.focus(),this.currentWindow=i,window.addEventListener("beforeunload",this.unloadWindow),i}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),se.createPopupWindowError(o.toString())}},e.prototype.openSizedPopup=function(t,n,i){var o,a,s,c,l=window.screenLeft?window.screenLeft:window.screenX,d=window.screenTop?window.screenTop:window.screenY,u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=(o=i.popupSize)===null||o===void 0?void 0:o.width,p=(a=i.popupSize)===null||a===void 0?void 0:a.height,m=(s=i.popupPosition)===null||s===void 0?void 0:s.top,x=(c=i.popupPosition)===null||c===void 0?void 0:c.left;return(!f||f<0||f>u)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=to.POPUP_WIDTH),(!p||p<0||p>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=to.POPUP_HEIGHT),(!m||m<0||m>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),m=Math.max(0,h/2-to.POPUP_HEIGHT/2+d)),(!x||x<0||x>u)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),x=Math.max(0,u/2-to.POPUP_WIDTH/2+l)),window.open(t,n,"width="+f+", height="+p+", top="+m+", left="+x+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(fe.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,n){return to.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var n=t.account&&t.account.homeAccountId;return to.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Yd);/*! @azure/msal-browser v2.38.3 2023-10-27 */var bN=function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},t.timeout)})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var wN=6e4,x5=6e3,xN=3e4,CN=2e3;function EN(r,e){var t=r.auth,n=r.cache,i=r.system,o=r.telemetry,a={clientId:M.EMPTY_STRING,authority:""+M.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:M.EMPTY_STRING,authorityMetadata:M.EMPTY_STRING,redirectUri:M.EMPTY_STRING,postLogoutRedirectUri:M.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:w1.AAD,azureCloudOptions:{azureCloudInstance:b1.None,tenant:M.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:hr.SessionStorage,temporaryCacheLocation:hr.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(n&&n.cacheLocation===hr.LocalStorage),claimsBasedCachingEnabled:!0},c={loggerCallback:function(){},logLevel:Jt.Info,piiLoggingEnabled:!1},l=pe(pe({},FS),{loggerOptions:c,networkClient:e?nr.getBrowserNetworkClient():lN,navigationClient:new bN,loadFrameTimeout:0,windowHashTimeout:(i==null?void 0:i.loadFrameTimeout)||wN,iframeHashTimeout:(i==null?void 0:i.loadFrameTimeout)||x5,navigateFrameWait:e&&nr.detectIEOrEdge()?500:0,redirectNavigationTimeout:xN,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(i==null?void 0:i.nativeBrokerHandshakeTimeout)||CN,pollIntervalMilliseconds:to.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),d=pe(pe({},i),{loggerOptions:(i==null?void 0:i.loggerOptions)||c}),u={application:{appName:M.EMPTY_STRING,appVersion:M.EMPTY_STRING}},h={auth:pe(pe({},a),t),cache:pe(pe({},s),n),system:pe(pe({},l),d),telemetry:pe(pe({},u),o)};return h}/*! @azure/msal-browser v2.38.3 2023-10-27 */var YS=function(r){rn(e,r);function e(t,n,i,o,a,s){var c=r.call(this,t,n,i,o,s)||this;return c.navigateFrameWait=a.navigateFrameWait,c.pollIntervalMilliseconds=a.pollIntervalMilliseconds,c}return e.prototype.initiateAuthRequest=function(t){return K(this,void 0,void 0,function(){return Y(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(z.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),le.isEmpty(t))throw this.logger.info("Navigate url is empty"),se.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(z.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,n){var i=this;return this.performanceClient.addQueueMeasurement(z.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(o,a){n<x5&&i.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+x5+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){i.removeHiddenIframe(t),clearInterval(l),a(se.createMonitorIframeTimeoutError());return}var d=M.EMPTY_STRING,u=t.contentWindow;try{d=u?u.location.href:M.EMPTY_STRING}catch{}if(!le.isEmpty(d)){var h=u?u.location.hash:M.EMPTY_STRING;if(We.hashContainsKnownProperties(h)){i.removeHiddenIframe(t),clearInterval(l),o(h);return}}},i.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var n=this;return this.performanceClient.addQueueMeasurement(z.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(i,o){var a=n.createHiddenIframe();setTimeout(function(){if(!a){o("Unable to load iframe");return}a.src=t,i(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var n=this.createHiddenIframe();return n.src=t,n},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}(t_);/*! @azure/msal-browser v2.38.3 2023-10-27 */var kN=function(r){rn(e,r);function e(t,n,i,o,a,s,c,l,d,u,h){var f=r.call(this,t,n,i,o,a,s,l,u,h)||this;return f.apiId=c,f.nativeStorage=d,f}return e.prototype.acquireToken=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s;return Y(this,function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(z.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(z.SilentIframeClientAcquireToken,t.correlationId),le.isEmpty(t.loginHint)&&le.isEmpty(t.sid)&&(!t.account||le.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!==mn.NONE&&t.prompt!==mn.NO_SESSION)throw n.endMeasurement({success:!1}),se.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(z.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(pe(pe({},t),{prompt:t.prompt||mn.NONE}),fe.Silent)];case 1:i=c.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||M.EMPTY_STRING,i.account||null),o=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(z.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(z.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(a,i).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof ve&&s.setCorrelationId(this.correlationId),o.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(i.state),n.endMeasurement({errorCode:s instanceof ve&&s.errorCode||void 0,subErrorCode:s instanceof ve&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(se.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,n){return K(this,void 0,void 0,function(){var i,o,a,s,c,l,d,u,h,f=this;return Y(this,function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(z.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(z.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return i=p.sent(),this.performanceClient.setPreQueueTime(z.GetAuthCodeUrl,n.correlationId),[4,t.getAuthCodeUrl(pe(pe({},n),{nativeBroker:Mc.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return o=p.sent(),a=new YS(t,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(z.SilentHandlerInitiateAuthRequest,n.correlationId),[4,a.initiateAuthRequest(o)];case 3:return s=p.sent(),this.performanceClient.setPreQueueTime(z.SilentHandlerMonitorIframeForHash,n.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=p.sent(),l=We.getDeserializedHash(c),d=this.validateAndExtractStateFromHash(l,fe.Silent,i.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw se.createNativeConnectionNotEstablishedError();return u=new bd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),h=ya.parseRequestState(this.browserCrypto,d).userRequestState,[2,u.acquireToken(pe(pe({},n),{state:h,prompt:n.prompt||mn.NONE})).finally(function(){f.browserStorage.cleanRequestByState(d)})]}return this.performanceClient.setPreQueueTime(z.HandleCodeResponseFromHash,n.correlationId),[2,a.handleCodeResponseFromHash(c,d,t.authority,this.networkClient)]}})})},e}(Yd);/*! @azure/msal-browser v2.38.3 2023-10-27 */var SN=function(r){rn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c=this;return Y(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(z.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(z.InitializeBaseRequest,t.correlationId),i=[pe({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return n=pe.apply(void 0,i.concat([l.sent()])),o=this.performanceClient.startMeasurement(z.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(It.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(z.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,s.acquireTokenByRefreshToken(n).then(function(d){return o.endMeasurement({success:!0,fromCache:d.fromCache,requestId:d.requestId}),d}).catch(function(d){throw d instanceof ve&&d.setCorrelationId(c.correlationId),a.cacheFailedRequest(d),o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},e.prototype.logout=function(){return Promise.reject(se.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,n,i){return K(this,void 0,void 0,function(){var o;return Y(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(z.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,i)];case 1:return o=a.sent(),[2,new US(o,this.performanceClient)]}})})},e}(Yd);/*! @azure/msal-browser v2.38.3 2023-10-27 */var IN=function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.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},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.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)))},r.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."))},r.prototype.emitEvent=function(e,t,n,i){var o=this;if(typeof window<"u"){var a={eventType:e,interactionType:t||null,payload:n||null,error:i||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){o.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},r.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if(typeof n!="object"||!Qr.isAccountEntity(n))return;var i=zn.toObject(new Qr,n),o=i.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Se.ACCOUNT_ADDED,void 0,o)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Se.ACCOUNT_REMOVED,void 0,o))}catch{return}},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var cn=function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var QS=function(){function r(e){this.cryptoObj=e}return r.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,cn.decimalToHex(e[0])+cn.decimalToHex(e[1])+cn.decimalToHex(e[2])+cn.decimalToHex(e[3])+"-"+cn.decimalToHex(e[4])+cn.decimalToHex(e[5])+"-"+cn.decimalToHex(e[6])+cn.decimalToHex(e[7])+"-"+cn.decimalToHex(e[8])+cn.decimalToHex(e[9])+"-"+cn.decimalToHex(e[10])+cn.decimalToHex(e[11])+cn.decimalToHex(e[12])+cn.decimalToHex(e[13])+cn.decimalToHex(e[14])+cn.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",i=0,o=M.EMPTY_STRING,a=0;a<36;a++)t[a]!=="-"&&t[a]!=="4"&&(i=Math.random()*16|0),t[a]==="x"?o+=n[i]:t[a]==="y"?(i&=3,i|=8,o+=n[i]):o+=t[a];return o}},r.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)},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var _a=function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,n=0,i=e.length,o=0;o<i;o++)t=e.charCodeAt(o),n+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)t=e.charCodeAt(c),t<128?a[s++]=t:t<2048?(a[s++]=192+(t>>>6),a[s++]=128+(t&63)):t<65536?(a[s++]=224+(t>>>12),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<2097152?(a[s++]=240+(t>>>18),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<67108864?(a[s++]=248+(t>>>24),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):(a[s++]=252+(t>>>30),a[s++]=128+(t>>>24&63),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63));return a},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return t},r.utf8ArrToString=function(e){for(var t=M.EMPTY_STRING,n=void 0,i=e.length,o=0;o<i;o++)n=e[o],t+=String.fromCharCode(n>251&&n<254&&o+5<i?(n-252)*1073741824+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>247&&n<252&&o+4<i?(n-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>239&&n<248&&o+3<i?(n-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>223&&n<240&&o+2<i?(n-224<<12)+(e[++o]-128<<6)+e[++o]-128:n>191&&n<224&&o+1<i?(n-192<<6)+e[++o]-128:n);return t},r.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var XS=function(){function r(){}return r.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,M.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},r.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,M.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},r.prototype.encode=function(e){var t=_a.stringToUtf8Arr(e);return this.base64EncArr(t)},r.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=M.EMPTY_STRING,i=void 0,o=e.length,a=0,s=0;s<o;s++)i=s%3,a|=e[s]<<(16>>>i&24),(i===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return t===0?n:n.substring(0,n.length-t)+(t===1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var AN=function(){function r(){}return r.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 n=this.base64DecToArr(t);return _a.utf8ArrToString(n)},r.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,M.EMPTY_STRING),i=n.length,o=t?Math.ceil((i*3+1>>>2)/t)*t:i*3+1>>>2,a=new Uint8Array(o),s=void 0,c=void 0,l=0,d=0,u=0;u<i;u++)if(c=u&3,l|=this.b64ToUint6(n.charCodeAt(u))<<18-6*c,c===3||i-u===1){for(s=0;s<3&&d<o;s++,d++)a[d]=l>>>(16>>>s&24)&255;l=0}return a},r.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},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var TN=32,RN=function(){function r(e){this.base64Encode=new XS,this.cryptoObj=e}return r.prototype.generateCodes=function(){return K(this,void 0,void 0,function(){var e,t;return Y(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(TN);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(n){throw se.createPkceNotGeneratedError(n)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return K(this,void 0,void 0,function(){var t,n;return Y(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=i.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=i.sent(),se.createPkceNotGeneratedError(n);case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var PN=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return K(this,void 0,void 0,function(){return Y(this,function(t){return[2,window.crypto.subtle.exportKey(Md,e)]})})},r.prototype.importKey=function(e,t,n,i){return K(this,void 0,void 0,function(){return Y(this,function(o){return[2,window.crypto.subtle.importKey(Md,e,t,n,i)]})})},r.prototype.sign=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){return[2,window.crypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return K(this,void 0,void 0,function(){return Y(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var MN=function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Qy(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return K(this,void 0,void 0,function(){return Y(this,function(t){return[2,window.msrCrypto.subtle.exportKey(Md,e)]})})},r.prototype.importKey=function(e,t,n,i){return K(this,void 0,void 0,function(){return Y(this,function(o){return[2,window.msrCrypto.subtle.importKey(Md,e,t,n,i)]})})},r.prototype.sign=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return K(this,void 0,void 0,function(){return Y(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var $N=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.generateKey(e,t,n);s.addEventListener("complete",function(c){o(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.exportKey=function(e){return K(this,void 0,void 0,function(){return Y(this,function(t){return[2,new Promise(function(n,i){var o=window.msCrypto.subtle.exportKey(Md,e);o.addEventListener("complete",function(a){var s=a.target.result,c=_a.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,M.EMPTY_STRING).replace(/\n/g,M.EMPTY_STRING).replace(/\t/g,M.EMPTY_STRING).split(" ").join(M.EMPTY_STRING).replace("\0",M.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){i(l)}}),o.addEventListener("error",function(a){i(a)})})]})})},r.prototype.importKey=function(e,t,n,i){return K(this,void 0,void 0,function(){var o,a;return Y(this,function(s){return o=_a.getSortedObjectString(e),a=_a.stringToArrayBuffer(o),[2,new Promise(function(c,l){var d=window.msCrypto.subtle.importKey(Md,a,t,n,i);d.addEventListener("complete",function(u){c(u.target.result)}),d.addEventListener("error",function(u){l(u)})})]})})},r.prototype.sign=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.sign(e,t,n);s.addEventListener("complete",function(c){o(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.digest=function(e,t){return K(this,void 0,void 0,function(){return Y(this,function(n){return[2,new Promise(function(i,o){var a=window.msCrypto.subtle.digest(e,t.buffer);a.addEventListener("complete",function(s){i(s.target.result)}),a.addEventListener("error",function(s){o(s)})})]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var HN="RSASSA-PKCS1-v1_5",Ow="SHA-256",ZN=2048,ON=new Uint8Array([1,0,1]),JS=function(){function r(e,t){var n,i;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new PN;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new $N;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new MN;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."),se.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((i=this.cryptoOptions)===null||i===void 0)&&i.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),gm.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:HN,hash:Ow,modulusLength:ZN,publicExponent:ON}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return K(this,void 0,void 0,function(){var t;return Y(this,function(n){return t=_a.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Ow},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return K(this,void 0,void 0,function(){return Y(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return K(this,void 0,void 0,function(){return Y(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},r.prototype.sign=function(e,t){return K(this,void 0,void 0,function(){return Y(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var LN=function(){function r(){this.dbName=_5,this.version=fN,this.tableName=pN,this.dbOpen=!1}return r.prototype.open=function(){return K(this,void 0,void 0,function(){var e=this;return Y(this,function(t){return[2,new Promise(function(n,i){var o=window.indexedDB.open(e.dbName,e.version);o.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),o.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),o.addEventListener("error",function(){return i(se.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return K(this,void 0,void 0,function(){return Y(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]}})})},r.prototype.getItem=function(e){return K(this,void 0,void 0,function(){var t=this;return Y(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!t.db)return o(se.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.get(e);c.addEventListener("success",function(l){var d=l;t.closeConnection(),i(d.target.result)}),c.addEventListener("error",function(l){t.closeConnection(),o(l)})})]}})})},r.prototype.setItem=function(e,t){return K(this,void 0,void 0,function(){var n=this;return Y(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(o,a){if(!n.db)return a(se.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(t,e);l.addEventListener("success",function(){n.closeConnection(),o()}),l.addEventListener("error",function(d){n.closeConnection(),a(d)})})]}})})},r.prototype.removeItem=function(e){return K(this,void 0,void 0,function(){var t=this;return Y(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!t.db)return o(se.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readwrite"),s=a.objectStore(t.tableName),c=s.delete(e);c.addEventListener("success",function(){t.closeConnection(),i()}),c.addEventListener("error",function(l){t.closeConnection(),o(l)})})]}})})},r.prototype.getKeys=function(){return K(this,void 0,void 0,function(){var e=this;return Y(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(n,i){if(!e.db)return i(se.createDatabaseNotOpenError());var o=e.db.transaction([e.tableName],"readonly"),a=o.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),i(c)})})]}})})},r.prototype.containsKey=function(e){return K(this,void 0,void 0,function(){var t=this;return Y(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!t.db)return o(se.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.count(e);c.addEventListener("success",function(l){var d=l;t.closeConnection(),i(d.target.result===1)}),c.addEventListener("error",function(l){t.closeConnection(),o(l)})})]}})})},r.prototype.deleteDatabase=function(){return K(this,void 0,void 0,function(){return Y(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,n){var i=window.indexedDB.deleteDatabase(_5);i.addEventListener("success",function(){return t(!0)}),i.addEventListener("blocked",function(){return t(!0)}),i.addEventListener("error",function(){return n(!1)})})]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Lw=function(){function r(e,t){this.inMemoryCache=new b5,this.indexedDBCache=new LN,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(e instanceof se&&e.errorCode===X.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},r.prototype.getItem=function(e){return K(this,void 0,void 0,function(){var t,n;return Y(this,function(i){switch(i.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];i.label=1;case 1:return i.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,i.sent()];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return K(this,void 0,void 0,function(){var n;return Y(this,function(i){switch(i.label){case 0:this.inMemoryCache.setItem(e,t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return K(this,void 0,void 0,function(){var t;return Y(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return K(this,void 0,void 0,function(){var e,t;return Y(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.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,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return K(this,void 0,void 0,function(){var t,n;return Y(this,function(i){switch(i.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];i.label=1;case 1:return i.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,i.sent()];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return K(this,void 0,void 0,function(){var e,t;return Y(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ym;(function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(ym||(ym={}));var DN=function(){function r(e){this.logger=e,this.asymmetricKeys=new Lw(this.logger,ym.asymmetricKeys),this.symmetricKeys=new Lw(this.logger,ym.symmetricKeys)}return r.prototype.clear=function(){return K(this,void 0,void 0,function(){var e;return Y(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]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var NN=function(){function r(e,t,n){this.logger=e,this.browserCrypto=new JS(this.logger,n),this.b64Encode=new XS,this.b64Decode=new AN,this.guidGenerator=new QS(this.browserCrypto),this.pkceGenerator=new RN(this.browserCrypto),this.cache=new DN(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return K(this,void 0,void 0,function(){return Y(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return K(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d;return Y(this,function(u){switch(u.label){case 0:return n=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(z.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return i=u.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return o=u.sent(),a={e:o.e,kty:o.kty,n:o.n},s=_a.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=u.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return l=u.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return d=u.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:d,publicKey:i.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return u.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},r.prototype.removeTokenBindingKey=function(e){return K(this,void 0,void 0,function(){var t;return Y(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=n.sent(),[2,!t]}})})},r.prototype.clearKeystore=function(){return K(this,void 0,void 0,function(){return Y(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,n){var i;return K(this,void 0,void 0,function(){var o,a,s,c,l,d,u,h,f,p,m,x,g;return Y(this,function(v){switch(v.label){case 0:return o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(z.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=v.sent(),!a)throw se.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=v.sent(),c=_a.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),d=dN.getShrHeaderString({kid:l,alg:s.alg}),u=this.b64Encode.urlEncode(d),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),f=u+"."+h,p=_a.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,p)];case 3:return m=v.sent(),x=this.b64Encode.urlEncodeArr(new Uint8Array(m)),g=f+"."+x,o&&o.endMeasurement({success:!0}),[2,g]}})})},r.prototype.hashString=function(e){return K(this,void 0,void 0,function(){var t,n;return Y(this,function(i){switch(i.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=i.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Dw=function(){function r(e,t){this.correlationId=t,this.measureName=r.makeMeasureName(e,t),this.startMark=r.makeStartMark(e,t),this.endMark=r.makeEndMark(e,t)}return r.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},r.makeStartMark=function(e,t){return"msal.start."+e+"."+t},r.makeEndMark=function(e,t){return"msal.end."+e+"."+t},r.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"},r.flushMeasurements=function(e,t){if(r.supportsBrowserPerformance())try{t.forEach(function(n){var i=r.makeMeasureName(n.name,e),o=window.performance.getEntriesByName(i,"measure");o.length>0&&(window.performance.clearMeasures(i),window.performance.clearMarks(r.makeStartMark(i,e)),window.performance.clearMarks(r.makeEndMark(i,e)))})}catch{}},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.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},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var VN=function(r){rn(e,r);function e(t,n,i,o,a,s,c){var l=r.call(this,t,n,i,o,a,s)||this;return l.browserCrypto=new JS(l.logger,c),l.guidGenerator=new QS(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(t,n){return new Dw(t,n)},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 n=this.eventsByCorrelationId.get(t.event.correlationId),i=n&&n.eventId===t.event.eventId,o=[];i&&(n!=null&&n.incompleteSubMeasurements)&&n.incompleteSubMeasurements.forEach(function(a){o.push(pe({},a))}),o.length>0&&Dw.flushMeasurements(t.event.correlationId,o)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,n){var i=this,o=this.getPageVisibility(),a=r.prototype.startMeasurement.call(this,t,n);return pe(pe({},a),{endMeasurement:function(s){var c=a.endMeasurement(pe({startPageVisibility:o,endPageVisibility:i.getPageVisibility()},s));return i.deleteIncompleteSubMeasurements(a),c},discardMeasurement:function(){a.discardMeasurement(),i.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,n){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var i=this.preQueueTimeByCorrelationId.get(n);i&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+i.name+" found",n),this.addQueueMeasurement(i.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,n,i,o){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var a=r.prototype.getPreQueueTime.call(this,t,n);if(a){var s=window.performance.now(),c=i||r.prototype.calculateQueuedTime.call(this,a,s);return r.prototype.addQueueMeasurement.call(this,t,n,c,o)}},e}(qS);/*! @azure/msal-browser v2.38.3 2023-10-27 */var zN=function(){function r(e,t,n,i){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=n,this.cryptoObj=i}return r.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw se.createUnableToLoadTokenError("Please ensure server response includes id token.");var i=new Vo(t.id_token,this.cryptoObj),o,a;if(e.account){var s=this.loadAccount(i,e.account.environment,void 0,void 0,e.account.homeAccountId);o=new Bh(s,this.loadIdToken(i,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var c=x1.generateAuthority(e.authority,e.azureCloudOptions),l={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(a=new x1(c,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(i,a.hostnameAndPort,n.clientInfo,a.authorityType);o=new Bh(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(i,a.hostnameAndPort,t.client_info,a.authorityType);o=new Bh(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else throw se.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw se.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,i,o,a)},r.prototype.loadAccount=function(e,t,n,i,o){var a;if(o?a=o:i!==void 0&&n&&(a=Qr.generateHomeAccountId(n,i,this.logger,this.cryptoObj,e)),!a)throw se.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?Qr.createAccount(n,a,e,void 0,void 0,void 0,t):Qr.createGenericAccount(a,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw se.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,n,i){var o=_c.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,i);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw se.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(e,t,n,i,o,a){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw se.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw se.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new hn(e.scopes).printScopes(),c=a.expiresOn||t.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,d=bc.createAccessTokenEntity(n,i,t.access_token,this.config.auth.clientId,o,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(d),d;throw se.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,n,i){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var o=nd.createRefreshTokenEntity(n,i,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw se.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,n,i){var o,a,s,c=M.EMPTY_STRING,l=[],d=null,u;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=hn.fromString(n.accessToken.target).asArray(),d=new Date(Number(n.accessToken.expiresOn)*1e3),u=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||M.EMPTY_STRING,f=(t==null?void 0:t.claims.tid)||M.EMPTY_STRING;return{authority:i?i.canonicalAuthority:M.EMPTY_STRING,uniqueId:h,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:t?t.rawToken:M.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:d,correlationId:e.correlationId||M.EMPTY_STRING,requestId:M.EMPTY_STRING,extExpiresOn:u,familyId:M.EMPTY_STRING,tokenType:((o=n==null?void 0:n.accessToken)===null||o===void 0?void 0:o.tokenType)||M.EMPTY_STRING,state:M.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||M.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||M.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var FN=function(r){rn(e,r);function e(t){var n=r.call(this,t)||this;return n.includeRedirectUri=!1,n}return e}(jS);/*! @azure/msal-browser v2.38.3 2023-10-27 */var jN=function(r){rn(e,r);function e(t,n,i,o,a,s,c,l,d,u){var h=r.call(this,t,n,i,o,a,s,l,d,u)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c,l;return Y(this,function(d){switch(d.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw se.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(z.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,fe.Silent)];case 1:n=d.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||M.EMPTY_STRING,n.account||null),i=this.initializeServerTelemetryManager(this.apiId),d.label=2;case 2:return d.trys.push([2,4,,5]),o=pe(pe({},n),{code:t.code}),this.performanceClient.setPreQueueTime(z.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(i,n.authority)];case 3:return a=d.sent(),s=new FN(a),this.logger.verbose("Auth code client created"),c=new YS(s,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),[2,c.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=d.sent(),l instanceof ve&&l.setCorrelationId(this.correlationId),i.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(se.createSilentLogoutUnsupportedError())},e}(Yd);/*! @azure/msal-browser v2.38.3 2023-10-27 */var UN=function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=EN(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new _0(this.config.system.loggerOptions,eg,qh),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 VN(this.config.auth.clientId,this.config.auth.authority,this.logger,eg,qh,this.config.telemetry.application,this.config.system.cryptoOptions):new hN(this.config.auth.clientId,this.config.auth.authority,this.logger,eg,qh,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new NN(this.logger,this.performanceClient,this.config.system.cryptoOptions):dm,this.eventHandler=new IN(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new w5(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):mN(this.config.auth.clientId,this.logger);var t={cacheLocation:hr.MemoryStorage,temporaryCacheLocation:hr.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new w5(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new zN(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return r.prototype.initialize=function(){return K(this,void 0,void 0,function(){var e,t,n,i,o;return Y(this,function(a){switch(a.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(z.InitializeClientApplication),this.eventHandler.emitEvent(Se.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,Mc.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return i=a.sent(),this.logger.verbose(i),[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"),o=this.performanceClient.startMeasurement(z.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),o.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Se.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},r.prototype.handleRedirectPromise=function(e){return K(this,void 0,void 0,function(){var t,n,i,o,a,s,c,l,d=this;return Y(this,function(u){return this.logger.verbose("handleRedirectPromise called"),nr.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||M.EMPTY_STRING,i=this.redirectResponse.get(n),typeof i>"u"?(this.eventHandler.emitEvent(Se.HANDLE_REDIRECT_START,fe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),a=void 0,o&&Mc.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new bd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,It.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(Xe.CORRELATION_ID,!0)||M.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),i=a.then(function(h){if(h){var f=t.length<d.getAllAccounts().length;f?(d.eventHandler.emitEvent(Se.LOGIN_SUCCESS,fe.Redirect,h),d.logger.verbose("handleRedirectResponse returned result, login success")):(d.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_SUCCESS,fe.Redirect,h),d.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return d.eventHandler.emitEvent(Se.HANDLE_REDIRECT_END,fe.Redirect),h}).catch(function(h){throw t.length>0?d.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_FAILURE,fe.Redirect,null,h):d.eventHandler.emitEvent(Se.LOGIN_FAILURE,fe.Redirect,null,h),d.eventHandler.emitEvent(Se.HANDLE_REDIRECT_END,fe.Redirect),h}),this.redirectResponse.set(n,i)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,i]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return K(this,void 0,void 0,function(){var t,n,i,o,a,s=this;return Y(this,function(c){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(fe.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_START,fe.Redirect,e):this.eventHandler.emitEvent(Se.LOGIN_START,fe.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(o=new bd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,It.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),i=o.acquireTokenRedirect(e).catch(function(l){if(l instanceof Mo&&l.isFatal()){s.nativeExtensionProvider=void 0;var d=s.createRedirectClient(e.correlationId);return d.acquireToken(e)}else if(l instanceof no){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var d=s.createRedirectClient(e.correlationId);return d.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(e.correlationId),i=a.acquireToken(e)),[2,i.catch(function(l){throw n?s.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_FAILURE,fe.Redirect,null,l):s.eventHandler.emitEvent(Se.LOGIN_FAILURE,fe.Redirect,null,l),l})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),i=this.performanceClient.startMeasurement(z.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(fe.Popup)}catch(c){return Promise.reject(c)}var o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_START,fe.Popup,e):this.eventHandler.emitEvent(Se.LOGIN_START,fe.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,It.acquireTokenPopup).then(function(c){return t.browserStorage.setInteractionInProgress(!1),i.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),c}).catch(function(c){if(c instanceof Mo&&c.isFatal()){t.nativeExtensionProvider=void 0;var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof no){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=o.length<t.getAllAccounts().length;return l?t.eventHandler.emitEvent(Se.LOGIN_SUCCESS,fe.Popup,c):t.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_SUCCESS,fe.Popup,c),i.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),i.endMeasurement({success:!0,requestId:c.requestId}),c}).catch(function(c){return o.length>0?t.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_FAILURE,fe.Popup,null,c):t.eventHandler.emitEvent(Se.LOGIN_FAILURE,fe.Popup,null,c),i.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),Promise.reject(c)})},r.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}))},r.prototype.ssoSilent=function(e){var t;return K(this,void 0,void 0,function(){var n,i,o,a,s=this;return Y(this,function(c){return n=this.getRequestCorrelationId(e),i=pe(pe({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(fe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(z.SsoSilent,n),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(Se.SSO_SILENT_START,fe.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,It.ssoSilent).catch(function(l){if(l instanceof Mo&&l.isFatal()){s.nativeExtensionProvider=void 0;var d=s.createSilentIframeClient(i.correlationId);return d.acquireToken(i)}throw l}):(a=this.createSilentIframeClient(i.correlationId),o=a.acquireToken(i)),[2,o.then(function(l){var d,u;return s.eventHandler.emitEvent(Se.SSO_SILENT_SUCCESS,fe.Silent,l),(d=s.ssoSilentMeasurement)===null||d===void 0||d.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),(u=s.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){var d;throw s.eventHandler.emitEvent(Se.SSO_SILENT_FAILURE,fe.Silent,null,l),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},r.prototype.acquireTokenByCode=function(e){return K(this,void 0,void 0,function(){var t,n,i,o,a=this;return Y(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(fe.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_BY_CODE_START,fe.Silent,e),n=this.performanceClient.startMeasurement(z.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw se.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return i=e.code,o=this.hybridAuthCodeResponses.get(i),o?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),o=this.acquireTokenByCodeAsync(pe(pe({},e),{correlationId:t})).then(function(c){return a.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_BY_CODE_SUCCESS,fe.Silent,c),a.hybridAuthCodeResponses.delete(i),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(i),a.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_BY_CODE_FAILURE,fe.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}),this.hybridAuthCodeResponses.set(i,o)),[2,o];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,It.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof Mo&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw se.createUnableToAcquireTokenFromNativePlatformError()}else throw se.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_BY_CODE_FAILURE,fe.Silent,null,c),n.endMeasurement({errorCode:c instanceof ve&&c.errorCode||void 0,subErrorCode:c instanceof ve&&c.subError||void 0,success:!1}),c}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){var t;return K(this,void 0,void 0,function(){var n,i,o=this;return Y(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(z.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then(function(s){var c;return(c=o.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var c;throw(c=o.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",o.trackPageVisibilityWithMeasurement)})];case 1:return i=a.sent(),[2,i]}})})},r.prototype.acquireTokenFromCache=function(e,t,n){return K(this,void 0,void 0,function(){return Y(this,function(i){switch(this.performanceClient.addQueueMeasurement(z.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case Fn.Default:case Fn.AccessToken:case Fn.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw de.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return K(this,void 0,void 0,function(){var n;return Y(this,function(i){switch(this.performanceClient.addQueueMeasurement(z.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Fn.Default:case Fn.AccessTokenAndRefreshToken:case Fn.RefreshToken:case Fn.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(z.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw de.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return K(this,void 0,void 0,function(){var t;return Y(this,function(n){return this.performanceClient.addQueueMeasurement(z.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(z.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return K(this,void 0,void 0,function(){var t;return Y(this,function(n){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(pe({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return K(this,void 0,void 0,function(){var t,n;return Y(this,function(i){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(fe.Redirect),n=this.createRedirectClient(t),[2,n.logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(fe.Popup);var n=this.createPopupClient(t);return n.logout(e)}catch(i){return Promise.reject(i)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.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)},r.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)},r.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)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),nr.blockNonBrowserEnvironment(this.isBrowserEnvironment),nr.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),nr.blockReloadInHiddenIframes(),nr.blockAcquireTokenInPopups(),nr.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===fe.Redirect&&this.config.cache.cacheLocation===hr.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw gm.createInMemoryRedirectUnavailableError();(e===fe.Redirect||e===fe.Popup)&&this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),nr.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,n){return K(this,void 0,void 0,function(){var i;return Y(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw se.createNativeConnectionNotEstablishedError();return i=new bd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,i.acquireToken(e)]})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Mc.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 mn.NONE:case mn.CONSENT:case mn.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},r.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new _N(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new yN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new kN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,It.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new KS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new SN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new jN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,It.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():M.EMPTY_STRING},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var BN=function(r){rn(e,r);function e(t){var n=r.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return e.prototype.loginRedirect=function(t){return K(this,void 0,void 0,function(){var n;return Y(this,function(i){return n=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(pe({correlationId:n},t||Mw))]})})},e.prototype.loginPopup=function(t){var n=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(pe({correlationId:n},t||Mw))},e.prototype.acquireTokenSilent=function(t){return K(this,void 0,void 0,function(){var n,i,o,a,s,c,l,d=this;return Y(this,function(u){if(n=this.getRequestCorrelationId(t),i=this.performanceClient.startMeasurement(z.AcquireTokenSilent,n),i.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(fe.Silent),this.logger.verbose("acquireTokenSilent called",n),o=t.account||this.getActiveAccount(),!o)throw se.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:t.authority||M.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:o.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(z.AcquireTokenSilentAsync,n),l=this.acquireTokenSilentAsync(pe(pe({},t),{correlationId:n}),o).then(function(h){return d.activeSilentTokenRequests.delete(s),i.addStaticFields({accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),i.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:h.requestId}),h}).catch(function(h){throw d.activeSilentTokenRequests.delete(s),i.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),i.discardMeasurement(),[2,c])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,n){var i;return K(this,void 0,void 0,function(){var o,a,s,c,l,d=this;return Y(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(z.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_START,fe.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(z.AcquireTokenSilentAsync,t.correlationId),(i=this.astsAsyncMeasurement)===null||i===void 0||i.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Mc.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=pe(pe({},t),{account:n}),o=this.acquireTokenNative(a,It.acquireTokenSilent_silentFlow).catch(function(h){return K(d,void 0,void 0,function(){var f;return Y(this,function(p){if(h instanceof Mo&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(t.correlationId),[2,f.acquireToken(t)];throw h})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(z.InitializeSilentRequest,t.correlationId),[4,s.initializeSilentRequest(t,n)];case 2:c=u.sent(),l=pe(pe({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Fn.Default}),this.performanceClient.setPreQueueTime(z.AcquireTokenFromCache,c.correlationId),o=this.acquireTokenFromCache(s,c,l).catch(function(h){if(l.cacheLookupPolicy===Fn.AccessToken)throw h;return nr.blockReloadInHiddenIframes(),d.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_NETWORK_START,fe.Silent,c),d.performanceClient.setPreQueueTime(z.AcquireTokenByRefreshToken,c.correlationId),d.acquireTokenByRefreshToken(c,l).catch(function(f){var p=f instanceof Uc,m=f instanceof no,x=f.errorCode===id.noTokensFoundError.code,g=f.errorCode===to.INVALID_GRANT_ERROR;if((!p||!g||m||l.cacheLookupPolicy===Fn.AccessTokenAndRefreshToken||l.cacheLookupPolicy===Fn.RefreshToken)&&l.cacheLookupPolicy!==Fn.Skip&&!x)throw f;return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),d.performanceClient.setPreQueueTime(z.AcquireTokenBySilentIframe,c.correlationId),d.acquireTokenBySilentIframe(c)})}),u.label=3;case 3:return[2,o.then(function(h){var f;return d.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_SUCCESS,fe.Silent,h),(f=d.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){var f;throw d.eventHandler.emitEvent(Se.ACQUIRE_TOKEN_FAILURE,fe.Silent,null,h),(f=d.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}).finally(function(){document.removeEventListener("visibilitychange",d.trackPageVisibility)})]}})})},e}(UN);const Nw="redirect";var Vw=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class qN extends BN{get account(){return this.getAllAccounts().find(n=>{var i;return((i=n.idTokenClaims)===null||i===void 0?void 0:i.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const n=Math.ceil(Date.now()/1e3);return t.exp>n}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=Nw,n=!0){var i;return Vw(this,void 0,void 0,function*(){const o=(e==null?void 0:e.loginHint)||((i=this.account)===null||i===void 0?void 0:i.username),a=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:o,scopes:a});if(o&&n){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},t=Nw,n=!0){return Vw(this,void 0,void 0,function*(){const i=yield this.account;if(n&&i){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:i},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 WN=(r,e=window.location.origin)=>{r=r.match(/^http[s]?/)?r:e+r;const{origin:t,pathname:n}=new URL(r);return t+n.replace(/([^:]\/)\/+/g,"$1")},GN=(r,e,t,n,i)=>{const o=Object.assign({clientId:e,redirectUri:WN(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${r}`},n==null?void 0:n.auth),a=Object.assign({cacheLocation:"localStorage"},n==null?void 0:n.cache),s=n==null?void 0:n.system;return new(i||qN)(r,{auth:o,cache:a,system:s})};class eI extends _0{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case Jt.Error:return"error";case Jt.Warning:return"warn";case Jt.Info:return"info";case Jt.Verbose:default:return"debug"}}}loggerCallback(e,t,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var tg=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const KN="default";class YN{get defaultClient(){return this.getClient(KN)}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 n=GN(t.tenantId,t.clientId,t.redirectUri,t.config);return n.setLogger(new eI(0)),n}handleRedirect(){return tg(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,n=t.getLogger(),{requestOrigin:i}=t;yield t.handleRedirectPromise(),i===e?(n.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(i||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return tg(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return tg(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var QN=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const tI={name:"auth",configure:r=>{var e;const t=new VD;return!((e=r==null?void 0:r.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(r.auth.defaultConfig),t},initialize:({config:r})=>QN(void 0,void 0,void 0,function*(){const e=new YN(r);return r.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},XN=(r,e)=>({module:tI,configure:t=>{t.configureDefault(r),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e??{};n&&Object.entries(n).forEach(([i,o])=>t.configureClient(i,o))}});var r_=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const JN=r=>{var e;return{id:r.id,isChildType:r.isChildType,parentTypeIds:(e=r.parentTypeIds)!==null&&e!==void 0?e:[]}},n_=r=>{var e,t,n,i;return{id:r.id,externalId:(e=r.externalId)!==null&&e!==void 0?e:void 0,isActive:r.isActive,isDeleted:r.isDeleted,created:new Date(r.created),source:(t=r.source)!==null&&t!==void 0?t:void 0,title:(n=r.title)!==null&&n!==void 0?n:void 0,type:JN(r.type),value:(i=r.value)!==null&&i!==void 0?i:{}}},eV=r=>r_(void 0,void 0,void 0,function*(){const e=yield r.json();return n_(e)}),tV=r=>r_(void 0,void 0,void 0,function*(){return(yield r.json()).map(n_)}),rV=r=>r_(void 0,void 0,void 0,function*(){return(yield r.json()).map(n_)});var nV=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},iV=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Gp;class oV{constructor(e,t={}){this.config=t,Gp.set(this,void 0),nV(this,Gp,e,"f")}requireInstance(e){return iV(this,Gp,"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:n})=>n,client:{fn:e.get},expire:t}:e.get,query:typeof e.query=="function"?{key:n=>JSON.stringify(n),client:{fn:e.query},expire:t}:e.query},e.related&&(this.config.client.related=typeof e.related=="function"?{key:n=>JSON.stringify(n),client:{fn:e.related},expire:t}:e.related)}}Gp=new WeakMap;const aV=/^(?:(?:[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})$/,sV=r=>r.replace(/^\/+/,"").split("/").shift(),cV=r=>!!r.match(aV),lV=(r,e)=>t=>{const{extract:n=sV,validate:i=cV}=e??{},o=n(t);if(!o)return Kt;if(i(o))return r.contextClient.resolveContext(o);throw Error(`Failed to validate context [${o}] from path [${t}]`)},dV=({ref:r})=>{const e=r==null?void 0:r.context;if(!e)throw Error(["resolveContextFromNavigation","ref does not support context!"].join(`
|
|
74
|
-
`));return e.currentContext?_n(e.currentContext):Kt},uV=r=>({ref:e,modules:t})=>{const{context:n,navigation:i}=t,o=lV(n,r==null?void 0:r.path);return yd(i?o(i.path.pathname):Kt,dV({ref:e,modules:t})).pipe(pD())};var Jf=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},zw=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Kp;class hV{constructor(){this.defaultExpireTime=1*60*1e3,Kp.set(this,[])}addConfigBuilder(e){zw(this,Kp,"f").push(e)}_getServiceProvider(e){var t;return Jf(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(t=e.ref)===null||t===void 0?void 0:t.services;if(n)return n;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var t,n;return Jf(this,void 0,void 0,function*(){const i=yield zw(this,Kp,"f").reduce((o,a)=>Jf(this,void 0,void 0,function*(){const s=new oV(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({}));return(t=i.resolveInitialContext)!==null&&t!==void 0||(i.resolveInitialContext=uV()),(n=i.client)!==null&&n!==void 0||(i.client=yield Jf(this,void 0,void 0,function*(){const a=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:s=>a.get("v1",s,{selector:eV})},key:({id:s})=>s,expire:this.defaultExpireTime},query:{client:{fn:s=>a.query("v1",{query:s},{selector:tV})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime},related:{client:{fn:s=>a.related("v1",{id:s.item.id,query:{filter:s.filter}},{selector:rV})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime}}})),i})}}Kp=new WeakMap;var fV=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!r(e[i],t[i]))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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!r(e[a],t[a]))return!1}return!0}return e!==e&&t!==t};const pV=D3(fV);var Fw;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Fw||(Fw={}));const mV=r=>e=>e.pipe(d5(r)),vV=r=>e=>e.pipe(Gn(r)),gV=r=>e=>e.pipe(Ct(r)),C5=r=>r.pipe(Te(e=>e.value));let ep;const yV=new Uint8Array(16);function _V(){if(!ep&&(ep=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ep))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ep(yV)}const bV=/^(?:[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 wV(r){return typeof r=="string"&&bV.test(r)}const Br=[];for(let r=0;r<256;++r)Br.push((r+256).toString(16).slice(1));function rI(r,e=0){return Br[r[e+0]]+Br[r[e+1]]+Br[r[e+2]]+Br[r[e+3]]+"-"+Br[r[e+4]]+Br[r[e+5]]+"-"+Br[r[e+6]]+Br[r[e+7]]+"-"+Br[r[e+8]]+Br[r[e+9]]+"-"+Br[r[e+10]]+Br[r[e+11]]+Br[r[e+12]]+Br[r[e+13]]+Br[r[e+14]]+Br[r[e+15]]}function xV(r){if(!wV(r))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.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 CV(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const EV="6ba7b810-9dad-11d1-80b4-00c04fd430c8",kV="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function SV(r,e,t){function n(i,o,a,s){var c;if(typeof i=="string"&&(i=CV(i)),typeof o=="string"&&(o=xV(o)),((c=o)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+i.length);if(l.set(o),l.set(i,o.length),l=t(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,a){s=s||0;for(let d=0;d<16;++d)a[s+d]=l[d];return a}return rI(l)}try{n.name=r}catch{}return n.DNS=EV,n.URL=kV,n}const IV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jw={randomUUID:IV};function $d(r,e,t){if(jw.randomUUID&&!e&&!r)return jw.randomUUID();r=r||{};const n=r.random||(r.rng||_V)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=n[i];return e}return rI(n)}function AV(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function rg(r,e){return r<<e|r>>>32-e}function TV(r){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=[];for(let s=0;s<a.length;++s)r.push(a.charCodeAt(s))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const n=r.length/4+2,i=Math.ceil(n/16),o=new Array(i);for(let a=0;a<i;++a){const s=new Uint32Array(16);for(let c=0;c<16;++c)s[c]=r[a*64+c*4]<<24|r[a*64+c*4+1]<<16|r[a*64+c*4+2]<<8|r[a*64+c*4+3];o[a]=s}o[i-1][14]=(r.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(r.length-1)*8&4294967295;for(let a=0;a<i;++a){const s=new Uint32Array(80);for(let f=0;f<16;++f)s[f]=o[a][f];for(let f=16;f<80;++f)s[f]=rg(s[f-3]^s[f-8]^s[f-14]^s[f-16],1);let c=t[0],l=t[1],d=t[2],u=t[3],h=t[4];for(let f=0;f<80;++f){const p=Math.floor(f/20),m=rg(c,5)+AV(p,l,d,u)+h+e[p]+s[f]>>>0;h=u,u=d,d=rg(l,30)>>>0,l=c,c=m}t[0]=t[0]+c>>>0,t[1]=t[1]+l>>>0,t[2]=t[2]+d>>>0,t[3]=t[3]+u>>>0,t[4]=t[4]+h>>>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 RV=SV("v5",80,TV);class E5 extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}}function ni(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Is(r){return!!r&&!!r[ot]}function co(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===VV}(r)||Array.isArray(r)||!!r[Qw]||!!(!((e=r.constructor)===null||e===void 0)&&e[Qw])||i_(r)||o_(r))}function Uw(r){return Is(r)||ni(23,r),r[ot].t}function Hd(r,e,t){t===void 0&&(t=!1),Qd(r)===0?(t?Object.keys:d_)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,i){return e(i,n,r)})}function Qd(r){var e=r[ot];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:i_(r)?2:o_(r)?3:0}function k5(r,e){return Qd(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function PV(r,e){return Qd(r)===2?r.get(e):r[e]}function nI(r,e,t){var n=Qd(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function MV(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function i_(r){return DV&&r instanceof Map}function o_(r){return NV&&r instanceof Set}function Mr(r){return r.o||r.t}function a_(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=zV(r);delete e[ot];for(var t=d_(e),n=0;n<t.length;n++){var i=t[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),e)}function s_(r,e){return e===void 0&&(e=!1),c_(r)||Is(r)||!co(r)||(Qd(r)>1&&(r.set=r.add=r.clear=r.delete=$V),Object.freeze(r),e&&Hd(r,function(t,n){return s_(n,!0)},!0)),r}function $V(){ni(2)}function c_(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function Do(r){var e=I5[r];return e||ni(18,r),e}function HV(r,e){I5[r]||(I5[r]=e)}function _m(){return E1}function ng(r,e){e&&(Do("Patches"),r.u=[],r.s=[],r.v=e)}function bm(r){S5(r),r.p.forEach(ZV),r.p=null}function S5(r){r===E1&&(E1=r.l)}function Bw(r){return E1={p:[],l:E1,h:r,m:!0,_:0}}function ZV(r){var e=r[ot];e.i===0||e.i===1?e.j():e.g=!0}function ig(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||Do("ES5").S(e,r,n),n?(t[ot].P&&(bm(e),ni(4)),co(r)&&(r=wm(e,r),e.l||xm(e,r)),e.u&&Do("Patches").M(t[ot].t,r,e.u,e.s)):r=wm(e,t,[]),bm(e),e.u&&e.v(e.u,e.s),r!==iI?r:void 0}function wm(r,e,t){if(c_(e))return e;var n=e[ot];if(!n)return Hd(e,function(s,c){return qw(r,n,e,s,c,t)},!0),e;if(n.A!==r)return e;if(!n.P)return xm(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=a_(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),Hd(o,function(s,c){return qw(r,n,i,s,c,t,a)}),xm(r,i,!1),t&&r.u&&Do("Patches").N(n,t,r.u,r.s)}return n.o}function qw(r,e,t,n,i,o,a){if(Is(i)){var s=wm(r,i,o&&e&&e.i!==3&&!k5(e.R,n)?o.concat(n):void 0);if(nI(t,n,s),!Is(s))return;r.m=!1}else a&&t.add(i);if(co(i)&&!c_(i)){if(!r.h.D&&r._<1)return;wm(r,i),e&&e.A.l||xm(r,i)}}function xm(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&s_(e,t)}function og(r,e){var t=r[ot];return(t?Mr(t):r)[e]}function Ww(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function ca(r){r.P||(r.P=!0,r.l&&ca(r.l))}function ag(r){r.o||(r.o=a_(r.t))}function C1(r,e,t){var n=i_(e)?Do("MapSet").F(e,t):o_(e)?Do("MapSet").T(e,t):r.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:_m(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},c=s,l=A5;a&&(c=[s],l=ih);var d=Proxy.revocable(c,l),u=d.revoke,h=d.proxy;return s.k=h,s.j=u,h}(e,t):Do("ES5").J(e,t);return(t?t.A:_m()).p.push(n),n}function OV(r){return Is(r)||ni(22,r),function e(t){if(!co(t))return t;var n,i=t[ot],o=Qd(t);if(i){if(!i.P&&(i.i<4||!Do("ES5").K(i)))return i.t;i.I=!0,n=Gw(t,o),i.I=!1}else n=Gw(t,o);return Hd(n,function(a,s){i&&PV(i.t,a)===s||nI(n,a,e(s))}),o===3?new Set(n):n}(r)}function Gw(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return a_(r)}function LV(){function r(s,c){function l(){this.constructor=s}i(s,c),s.prototype=(l.prototype=c.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function t(s){s.o||(s.o=new Set,s.t.forEach(function(c){if(co(c)){var l=C1(s.A.h,c,s);s.p.set(c,l),s.o.add(l)}else s.o.add(c)}))}function n(s){s.g&&ni(3,JSON.stringify(Mr(s)))}var i=function(s,c){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var u in d)d.hasOwnProperty(u)&&(l[u]=d[u])})(s,c)},o=function(){function s(l,d){return this[ot]={i:2,l:d,A:d?d.A:_m(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}r(s,Map);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Mr(this[ot]).size}}),c.has=function(l){return Mr(this[ot]).has(l)},c.set=function(l,d){var u=this[ot];return n(u),Mr(u).has(l)&&Mr(u).get(l)===d||(e(u),ca(u),u.R.set(l,!0),u.o.set(l,d),u.R.set(l,!0)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[ot];return n(d),e(d),ca(d),d.t.has(l)?d.R.set(l,!1):d.R.delete(l),d.o.delete(l),!0},c.clear=function(){var l=this[ot];n(l),Mr(l).size&&(e(l),ca(l),l.R=new Map,Hd(l.t,function(d){l.R.set(d,!1)}),l.o.clear())},c.forEach=function(l,d){var u=this;Mr(this[ot]).forEach(function(h,f){l.call(d,u.get(f),f,u)})},c.get=function(l){var d=this[ot];n(d);var u=Mr(d).get(l);if(d.I||!co(u)||u!==d.t.get(l))return u;var h=C1(d.A.h,u,d);return e(d),d.o.set(l,h),h},c.keys=function(){return Mr(this[ot]).keys()},c.values=function(){var l,d=this,u=this.keys();return(l={})[tp]=function(){return d.values()},l.next=function(){var h=u.next();return h.done?h:{done:!1,value:d.get(h.value)}},l},c.entries=function(){var l,d=this,u=this.keys();return(l={})[tp]=function(){return d.entries()},l.next=function(){var h=u.next();if(h.done)return h;var f=d.get(h.value);return{done:!1,value:[h.value,f]}},l},c[tp]=function(){return this.entries()},s}(),a=function(){function s(l,d){return this[ot]={i:3,l:d,A:d?d.A:_m(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}r(s,Set);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Mr(this[ot]).size}}),c.has=function(l){var d=this[ot];return n(d),d.o?!!d.o.has(l)||!(!d.p.has(l)||!d.o.has(d.p.get(l))):d.t.has(l)},c.add=function(l){var d=this[ot];return n(d),this.has(l)||(t(d),ca(d),d.o.add(l)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[ot];return n(d),t(d),ca(d),d.o.delete(l)||!!d.p.has(l)&&d.o.delete(d.p.get(l))},c.clear=function(){var l=this[ot];n(l),Mr(l).size&&(t(l),ca(l),l.o.clear())},c.values=function(){var l=this[ot];return n(l),t(l),l.o.values()},c.entries=function(){var l=this[ot];return n(l),t(l),l.o.entries()},c.keys=function(){return this.values()},c[tp]=function(){return this.values()},c.forEach=function(l,d){for(var u=this.values(),h=u.next();!h.done;)l.call(d,h.value,h.value,this),h=u.next()},s}();HV("MapSet",{F:function(s,c){return new o(s,c)},T:function(s,c){return new a(s,c)}})}var Kw,E1,l_=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",DV=typeof Map<"u",NV=typeof Set<"u",Yw=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",iI=l_?Symbol.for("immer-nothing"):((Kw={})["immer-nothing"]=!0,Kw),Qw=l_?Symbol.for("immer-draftable"):"__$immer_draftable",ot=l_?Symbol.for("immer-state"):"__$immer_state",tp=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",VV=""+Object.prototype.constructor,d_=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,zV=Object.getOwnPropertyDescriptors||function(r){var e={};return d_(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},I5={},A5={get:function(r,e){if(e===ot)return r;var t=Mr(r);if(!k5(t,e))return function(i,o,a){var s,c=Ww(o,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(i.k):void 0}(r,t,e);var n=t[e];return r.I||!co(n)?n:n===og(r.t,e)?(ag(r),r.o[e]=C1(r.A.h,n,r)):n},has:function(r,e){return e in Mr(r)},ownKeys:function(r){return Reflect.ownKeys(Mr(r))},set:function(r,e,t){var n=Ww(Mr(r),e);if(n!=null&&n.set)return n.set.call(r.k,t),!0;if(!r.P){var i=og(Mr(r),e),o=i==null?void 0:i[ot];if(o&&o.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(MV(t,i)&&(t!==void 0||k5(r.t,e)))return!0;ag(r),ca(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return og(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,ag(r),ca(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Mr(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){ni(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){ni(12)}},ih={};Hd(A5,function(r,e){ih[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ih.deleteProperty=function(r,e){return ih.set.call(this,r,e,void 0)},ih.set=function(r,e,t){return A5.set.call(this,r[0],e,t,r[0])};var FV=function(){function r(t){var n=this;this.O=Yw,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var c=n;return function(m){var x=this;m===void 0&&(m=s);for(var g=arguments.length,v=Array(g>1?g-1:0),b=1;b<g;b++)v[b-1]=arguments[b];return c.produce(m,function(E){var I;return(I=o).call.apply(I,[x,E].concat(v))})}}var l;if(typeof o!="function"&&ni(6),a!==void 0&&typeof a!="function"&&ni(7),co(i)){var d=Bw(n),u=C1(n,i,void 0),h=!0;try{l=o(u),h=!1}finally{h?bm(d):S5(d)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return ng(d,a),ig(m,d)},function(m){throw bm(d),m}):(ng(d,a),ig(l,d))}if(!i||typeof i!="object"){if((l=o(i))===void 0&&(l=i),l===iI&&(l=void 0),n.D&&s_(l,!0),a){var f=[],p=[];Do("Patches").M(i,l,f,p),a(f,p)}return l}ni(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(l){for(var d=arguments.length,u=Array(d>1?d-1:0),h=1;h<d;h++)u[h-1]=arguments[h];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(u))})};var a,s,c=n.produce(i,o,function(l,d){a=l,s=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,a,s]}):[c,a,s]},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=r.prototype;return e.createDraft=function(t){co(t)||ni(8),Is(t)&&(t=OV(t));var n=Bw(this),i=C1(this,t,void 0);return i[ot].C=!0,S5(n),i},e.finishDraft=function(t,n){var i=t&&t[ot],o=i.A;return ng(o,n),ig(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Yw&&ni(20),this.O=t},e.applyPatches=function(t,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}i>-1&&(n=n.slice(i+1));var a=Do("Patches").$;return Is(t)?a(t,n):this.produce(t,function(s){return a(s,n)})},r}(),ui=new FV,oI=ui.produce;ui.produceWithPatches.bind(ui);ui.setAutoFreeze.bind(ui);ui.setUseProxies.bind(ui);ui.applyPatches.bind(ui);ui.createDraft.bind(ui);ui.finishDraft.bind(ui);const Xd=(...r)=>Ge(e=>r.includes(e.type));var ln=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},jV=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},bo,qi;class X1 extends Fe{get action$(){return ln(this,bo,"f").asObservable()}get value(){return ln(this,qi,"f").value}get closed(){return ln(this,qi,"f").closed||ln(this,bo,"f").closed}constructor(e,t){super(i=>ln(this,qi,"f").subscribe(i)),bo.set(this,new gn),qi.set(this,void 0);const n="getInitialState"in e?e.getInitialState():t;jV(this,qi,new Kd(n),"f"),ln(this,bo,"f").pipe(HS(e,n),MS()).subscribe(ln(this,qi,"f")),this.reset=()=>ln(this,qi,"f").next(n)}next(e){ln(this,bo,"f").next(e)}addEffect(e,t){const n=typeof e=="string"?this.action$.pipe(Xd(e)):this.action$,i=t||e;return n.pipe(Gn(o=>Wt(new Promise((a,s)=>{try{a(i(o,this.value))}catch(c){s(c)}})).pipe(sr(a=>(console.warn("unhandled effect",a),Kt)))),Ge(o=>!!o),nm(rm)).subscribe(ln(this,bo,"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(sr(n=>(console.trace("unhandled exception, epic closed!",n),Kt)),nm(rm)).subscribe(ln(this,bo,"f"))}unsubscribe(){ln(this,bo,"f").unsubscribe(),ln(this,qi,"f").unsubscribe()}complete(){ln(this,bo,"f").complete(),ln(this,qi,"f").complete()}asObservable(){return ln(this,qi,"f").asObservable()}}bo=new WeakMap,qi=new WeakMap;const aI=(r,e)=>Object.entries(r).reduce((t,[n,i])=>Object.assign(t,{[n]:typeof i=="function"?(...o)=>e.next(i(...o)):aI(i,e)}),{});function kr(r,e){function t(...n){if(e){const i=e(...n);if(!i)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:r,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:r,payload:n[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=n=>n.type===r,t}const Yp="::",u_=r=>new RegExp(`${Yp}\\${r}$`),Xw=r=>r.type.replace(u_("\\w+$"),"");function To(r,e,t,n){const i=kr([r,"request"].join(Yp),e);return t&&Object.assign(i,{success:kr([r,"success"].join(Yp),t)}),n&&Object.assign(i,{failure:kr([r,"failure"].join(Yp),n)}),i}const UV=r=>!!r.type.match(/::request$/),BV=r=>!!r.type.match(u_("success")),qV=r=>!!r.type.match(u_("failure")),WV=r=>BV(r)||qV(r);function Jw(r){return co(r)?oI(r,()=>{}):r}function GV(r){return typeof r=="function"}function Jd(r,e){const[t,n,i]=KV(e);let o;if(GV(r))o=()=>Jw(r());else{const s=Jw(r);o=()=>s}function a(s=o(),c){let l=[t[c.type],...n.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return l.filter(d=>!!d).length===0&&(l=[i]),l.reduce((d,u)=>{if(u)if(Is(d)){const f=u(d,c);return f===void 0?d:f}else{if(co(d))return oI(d,h=>u(h,c));{const h=u(d,c);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},s)}return a.getInitialState=o,a}function KV(r){const e={},t=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=a,i},addMatcher(o,a){return t.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return r(i),[e,t,n]}function YV(r,e){const t=typeof e=="function"?e:Jd(e.initial,o=>e.builder(o,r)),n=new X1(t),i=aI(r,n);return{actions:r,dispatch:i,subject:n}}const QV=()=>({request:kr("client/request",(e,t)=>{var n,i,o;return t??(t={}),(n=t.transaction)!==null&&n!==void 0||(t.transaction=$d()),(i=t.created)!==null&&i!==void 0||(t.created=Date.now()),(o=t.task)!==null&&o!==void 0||(t.task=new uS),{payload:e,meta:t}}),retry:kr("client/retry",e=>({payload:e})),success:kr("client/success",(e,t)=>({payload:e,meta:t})),cancel:kr("client/cancel",e=>({payload:e})),failure:kr("client/failure",(e,t)=>({payload:e,meta:t})),error:kr("client/error",(e,t)=>({payload:e,meta:t}))}),Zr=QV(),sI=r=>e=>e.pipe(Ge(Zr.request.match),Gn(t=>{const{meta:n}=t,{transaction:i}=n,o=new AbortController,{signal:a}=o;return new Fe(s=>{s.add(e.pipe(Ge(Zr.cancel.match)).subscribe(c=>{c.payload.transaction===i&&(a.aborted||o.abort(),s.complete())})),s.add(Wt(r(t,a)).subscribe({next:c=>s.next(c),error:c=>s.next(Zr.error(c,{request:t})),complete:()=>s.complete()}))})})),XV=r=>(r=Object.assign({},{count:0,delay:0},r),(e,t)=>e.pipe(sI(n=>e.pipe(Ge(Zr.failure.match),Ge(i=>i.meta.request===n),Ky(t),Ct(([i,o])=>{var a,s;const{transaction:c}=n.meta,l=o[c];if(!l)return Kt;const d=(s=(a=l.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,u=Object.assign({},r,n.meta.retry);if(d>=u.count)throw u.count?Error("maximum retries executed!",{cause:i.payload}):i.payload;return(typeof u.delay=="function"?Wt(u.delay(i.payload.cause)).pipe(sr(f=>{throw Error("failed to resolve delay",{cause:f})})):dD(u.delay)).pipe(Te(()=>Zr.retry(n)))}))))),JV=r=>e=>e.pipe(sI((t,n)=>Wt(r(t.payload,n)).pipe(Te(i=>Zr.success(i,{request:t})),sr(i=>_n(Zr.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:i}),{request:t})))))),ez=r=>r.pipe(Ge(Zr.retry.match),Te(e=>e.payload)),cI=()=>Ge(r=>r.status==="complete"),tz=(r={})=>Jd(r,e=>e.addCase(Zr.request,(t,n)=>{const{transaction:i,task:o,ref:a,created:s}=n.meta;t[i]={transaction:i,task:o,ref:a,created:s}}).addCase(Zr.success,(t,n)=>{const{request:i}=n.meta,{transaction:o,ref:a}=i.meta,s=t[o];if(s){const c={status:"complete",transaction:o,ref:a,value:n.payload,args:i.payload,created:s.created,completed:Date.now()};s.task.next(c),s.task.complete()}delete t[o]}).addCase(Zr.retry,(t,n)=>{var i;const{transaction:o}=n.payload.meta,a=t[o];a&&((i=a.retry)!==null&&i!==void 0||(a.retry=[]),a.retry.push(Date.now()))}).addCase(Zr.cancel,(t,n)=>{const{transaction:i,reason:o}=n.payload;if(t[i]){const a=Object.assign({},Uw(t[i]));a.task.error(new E5("abort",{request:a,message:o??"request was canceled"})),delete t[i]}}).addCase(Zr.failure,(t,n)=>{var i;const{payload:o,meta:a}=n,{transaction:s}=a.request.meta,c=t[s];c&&((i=c.errors)!==null&&i!==void 0||(c.errors=[]),c.errors.push(o))}).addCase(Zr.error,(t,n)=>{const{payload:i,meta:o}=n,{transaction:a}=o.request.meta;if(t[a]){const s=Object.assign({},Uw(t[a]));s.task.error(new E5("error",{request:s,message:`failed to process task [${a}]`,cause:i.cause})),delete t[a]}}));var rz=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},Qt=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},e8=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},or,ic;class t8 extends Fe{get closed(){return Qt(this,or,"f").closed}get state$(){return Qt(this,or,"f")}get action$(){return Qt(this,or,"f").action$}get success$(){return this.action$.pipe(Ge(Zr.success.match),Te(({payload:e})=>e))}get error$(){return this.action$.pipe(Xd("client/error"),Ky(Qt(this,or,"f")),Te(([e,t])=>{const{payload:n,meta:i}=e,{transaction:o}=i.request.meta,a=t[e.meta.request.meta.transaction];return new E5("error",{request:a,message:`failed to process task [${o}]`,cause:n})}))}constructor(e,t){super(o=>Qt(this,or,"f").subscribe(o)),or.set(this,void 0),ic.set(this,void 0);const n={};e8(this,or,new X1(tz(n)),"f"),e8(this,ic,new Nr(()=>Qt(this,or,"f").complete()),"f"),Qt(this,ic,"f").add(Qt(this,or,"f").addFlow(JV(e))),Qt(this,ic,"f").add(Qt(this,or,"f").addFlow(ez));const i=Object.assign({count:0,delay:0},t==null?void 0:t.retry);Qt(this,ic,"f").add(Qt(this,or,"f").addFlow(XV(i)))}next(e,t){const{ref:n,retry:i,task:o}=t??{},a=Zr.request(e,{ref:n,retry:i,task:o});return Qt(this,or,"f").next(a),a.meta}nextAsync(e,t){return rz(this,void 0,void 0,function*(){return Gr(this.next(e,t).task.pipe(cI()))})}getTaskByTransaction(e){const t=Qt(this,or,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(Qt(this,or,"f").value).find(n=>n.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const n=Object.values(Qt(this,or,"f").value).find(i=>i.ref===e);n!=null&&n.ref&&this.cancel(n.transaction,t)}cancel(e,t){if(e)Qt(this,or,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),Qt(this,or,"f").next(Zr.cancel({transaction:e,reason:t})));else for(const n of Object.keys(Qt(this,or,"f").value))this.cancel(n,"all transactions canceled")}on(e,t){return Qt(this,or,"f").addEffect(Zr[e].type,n=>{t(n,this)})}complete(){Qt(this,ic,"f").unsubscribe()}asObservable(){return Qt(this,or,"f").asObservable()}}or=new WeakMap,ic=new WeakMap;function nz(){return{set:kr("cache/set",(r,e)=>({payload:{key:r,entry:e}})),remove:kr("cache/remove",r=>({payload:r})),invalidate:kr("cache/invalidate",r=>({payload:r})),trim:kr("cache/trim",r=>({payload:r}))}}const gl=nz(),iz=(r,e)=>{var t,n;return((t=e.updated)!==null&&t!==void 0?t:0)-((n=r.updated)!==null&&n!==void 0?n:0)};function oz(r,e={}){return Jd(e,t=>t.addCase(r.set,(n,i)=>{var o;const{key:a,entry:s}=i.payload,c=n[a];if(c)c.updated=Date.now(),(o=c.updates)!==null&&o!==void 0||(c.updates=0),c.updates++;else{const l=Date.now();n[a]=Object.assign(Object.assign({},s),{created:l,updated:l})}}).addCase(r.remove,(n,i)=>{delete n[i.payload]}).addCase(r.invalidate,(n,i)=>{const o=n[i.payload];o&&delete o.updated}).addCase(r.trim,(n,i)=>{var o,a;const{payload:s}=i,c=(o=s.sort)!==null&&o!==void 0?o:iz,l=Object.keys(n),d=Object.entries(n).filter(([u,h])=>!s.validate||s.validate(h)).sort((u,h)=>c(u[1],h[1])).slice(0,(a=s.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).map(([u])=>u);if(l.length!==d.length)for(const u of l){const h=d.indexOf(u);h!==-1?d.splice(h,1):delete n[u]}}))}var Ui=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},az=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},Nn;class r8{get state(){return Ui(this,Nn,"f").value}get state$(){return Ui(this,Nn,"f").asObservable()}constructor(e){Nn.set(this,void 0);const{trimming:t,initial:n}=e??{};az(this,Nn,new X1(oz(gl,n)),"f"),t&&Ui(this,Nn,"f").addEffect("cache/set",()=>Ui(this,Nn,"f").next(gl.trim(t)))}setItem(...e){Ui(this,Nn,"f").next(gl.set(...e))}getItem(e){return Ui(this,Nn,"f").value[e]}removeItem(e){Ui(this,Nn,"f").next(gl.remove(e))}invalidate(e){Ui(this,Nn,"f").next(gl.invalidate(e))}trim(e){Ui(this,Nn,"f").next(gl.trim(e))}reset(){Ui(this,Nn,"f").reset()}complete(){Ui(this,Nn,"f").complete()}}Nn=new WeakMap;var bt=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},yl=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},sz=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(t[n[i]]=r[n[i]]);return t},oc,wo,Wa,Ml,$l,oh,Qp,T5;const cz=(r=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+r>Date.now()},lz=r=>{if(typeof r=="function")return r;switch(r){case"concat":return mV;case"merge":return vV;case"switch":default:return gV}};class Wr{get client(){return bt(this,wo,"f")}get cache(){return bt(this,Wa,"f")}constructor(e){var t;oc.set(this,new Nr),wo.set(this,void 0),Wa.set(this,void 0),Ml.set(this,new gn),$l.set(this,{}),oh.set(this,void 0),Qp.set(this,void 0),T5.set(this,$d()),yl(this,oh,i=>RV(e.key(i),bt(this,T5,"f")),"f"),yl(this,Qp,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:cz(e==null?void 0:e.expire),"f"),e.client instanceof t8?yl(this,wo,e.client,"f"):(yl(this,wo,new t8(e.client.fn,e.client.options),"f"),bt(this,oc,"f").add(()=>bt(this,wo,"f").complete())),e.cache instanceof r8?yl(this,Wa,e.cache,"f"):(yl(this,Wa,new r8(e.cache||{}),"f"),bt(this,oc,"f").add(()=>bt(this,Wa,"f").complete()));const n=lz(e.queueOperator);bt(this,oc,"f").add(()=>bt(this,Ml,"f").complete()),bt(this,oc,"f").add(bt(this,Ml,"f").pipe(n(i=>{const{args:o,options:a}=i;return new Fe(s=>{const{task:c,transaction:l}=bt(this,wo,"f").next(o,a);s.add(c.pipe(sr(()=>Kt)).subscribe(s)),s.add(()=>{setTimeout(()=>bt(this,wo,"f").cancel(l))})})}),cI(),ZS(()=>!bt(this,wo,"f").closed)).subscribe(i=>{const{args:o,value:a,transaction:s,ref:c}=i,l=c??bt(this,oh,"f").call(this,o);bt(this,Wa,"f").setItem(l,{value:a,args:o,transaction:s})}))}next(e,t){bt(this,Ml,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const n=t||{},{awaitResolve:i}=n,o=sz(n,["awaitResolve"]);return(i?Sr:Gr)(this._query(e,o))}complete(){bt(this,oc,"f").unsubscribe()}_query(e,t){const n=bt(this,oh,"f").call(this,e),i=this._createTask(n,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{bt(this,wo,"f").cancelTaskByRef(n,"abort signal triggered by caller")}),i}_createTask(e,t,n){const i=new gn,o=new Fe(a=>{var s;if(!bt(this,$l,"f")[e])bt(this,$l,"f")[e]=o;else return bt(this,$l,"f")[e].subscribe(a);i.pipe(om(()=>{delete bt(this,$l,"f")[e]})).subscribe(a);const c=bt(this,Wa,"f").getItem(e);c&&i.next(Object.assign(Object.assign({},c),{status:"cache"}));const l=((s=n==null?void 0:n.cache)===null||s===void 0?void 0:s.validate)||bt(this,Qp,"f");c&&l(c,t)?i.complete():bt(this,Ml,"f").next({args:t,options:{ref:e,task:i,retry:n==null?void 0:n.retry}})}).pipe(gD());return o}}oc=new WeakMap,wo=new WeakMap,Wa=new WeakMap,Ml=new WeakMap,$l=new WeakMap,oh=new WeakMap,Qp=new WeakMap,T5=new WeakMap;Wr.extractQueryValue=C5;var Fa=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},n8=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},ah,Jo;class dz extends Fe{get currentContext(){return Fa(this,Jo,"f").value}get currentContext$(){return Fa(this,Jo,"f").asObservable()}get client(){return Fa(this,ah,"f")}constructor(e){super(t=>Fa(this,Jo,"f").subscribe(t)),ah.set(this,void 0),Jo.set(this,void 0),n8(this,ah,new Wr(e),"f"),n8(this,Jo,new Kd(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(sr(()=>Kt)).subscribe(t=>this.setCurrentContext(t)):pV(e,Fa(this,Jo,"f").value)||Fa(this,Jo,"f").next(e)}resolveContext(e){return Fa(this,ah,"f").query({id:e}).pipe(Te(t=>t.value),sr(t=>{throw t.cause?t.cause:t}))}resolveContextAsync(e,t){return(t!=null&&t.awaitResolve?Sr:Gr)(this.resolveContext(e))}dispose(){Fa(this,Jo,"f").complete()}}ah=new WeakMap,Jo=new WeakMap;var Zu=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},it=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Gs=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},ea,Xp,sh,Wi,ac,sc,ch,Jp,e2;let uz=class{get contextClient(){return it(this,ea,"f")}get queryClient(){return it(this,Xp,"f")}get currentContext$(){return it(this,ea,"f").currentContext$}get currentContext(){return it(this,ea,"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,n,i;ea.set(this,void 0),Xp.set(this,void 0),sh.set(this,void 0),Wi.set(this,void 0),ac.set(this,new Nr),sc.set(this,void 0),ch.set(this,void 0),Jp.set(this,void 0),e2.set(this,new gn);const{config:o,event:a}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),Gs(this,Wi,a,"f"),o.resolveContext&&(this.resolveContext=(t=o.resolveContext)===null||t===void 0?void 0:t.bind(this)),o.validateContext&&(this.validateContext=(n=o.validateContext)===null||n===void 0?void 0:n.bind(this)),Gs(this,sc,o.contextType,"f"),Gs(this,ch,o.contextFilter,"f"),Gs(this,ea,new dz(o.client.get),"f"),Gs(this,Xp,new Wr(o.client.query),"f"),o.client.related&&Gs(this,sh,new Wr(o.client.related),"f"),Gs(this,Jp,(i=o.contextParameterFn)!==null&&i!==void 0?i:s=>({search:s.search,filter:{type:s.type}}),"f"),it(this,Wi,"f")&&(it(this,ac,"f").add(this.currentContext$.pipe(am()).subscribe(([s,c])=>{var l;(l=it(this,Wi,"f"))===null||l===void 0||l.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:s,next:c}})})),it(this,ac,"f").add(it(this,Wi,"f").addEventListener("onCurrentContextChanged",s=>{s.source!==this&&s.detail.next!==void 0&&this.setCurrentContext(s.detail.next)}))),it(this,ac,"f").add(it(this,e2,"f").pipe(Ct(s=>s),Rd(s=>console.debug("ContextProvider::#contextQueue",s))).subscribe(s=>it(this,ea,"f").setCurrentContext(s??null)))}connectParentContext(e,t){const i=e.currentContext$.pipe(Ge(o=>o!==void 0),Ge((o,a)=>{var s;return t!=null&&t.skipFirst&&a<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",o),!1):((s=this.currentContext)===null||s===void 0?void 0:s.id)!==(o==null?void 0:o.id)}),Ct(o=>Zu(this,void 0,void 0,function*(){var a;if(o){const s=yield(a=it(this,Wi,"f"))===null||a===void 0?void 0:a.dispatchEvent("onParentContextChanged",{source:this,detail:o,cancelable:!0});return{next:o,canceled:s==null?void 0:s.canceled}}return{next:o}})),Ge(o=>!o.canceled),Ct(({next:o})=>this.setCurrentContext(o,{validate:!0,resolve:!0}).pipe(sr(a=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",a),Kt)))),sr(o=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",o),Kt))).subscribe();return it(this,ac,"f").add(i),i}setCurrentContextById(e){return new Fe(t=>{try{it(this,ea,"f").resolveContext(e).pipe(Ge(n=>!!n),Ct(n=>this.setCurrentContext(n))).subscribe(t)}catch(n){t.error(n)}})}setCurrentContextByIdAsync(e){return Sr(this.setCurrentContextById(e))}setCurrentContext(e,t){const n=new gn,i=new gn,o=this._setCurrentContext(e,t).pipe(Rd(a=>i.next(a)),_d(n),om(()=>i.complete()),sr(a=>(i.error(a),Kt)));return it(this,e2,"f").next(o),i.pipe(om(()=>n.next(!0)))}_setCurrentContext(e,t){return new Fe(n=>{var i;if(e===this.currentContext)return n.next(e),n.complete();if(e&&(t!=null&&t.validate)&&!this.validateContext(e)){if(!t.resolve)return(i=it(this,Wi,"f"))===null||i===void 0||i.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),n.error(Error("failed to validate provided context"));if(t.resolve)return _n(e).pipe(Ct(o=>Zu(this,void 0,void 0,function*(){var a;const s=yield(a=it(this,Wi,"f"))===null||a===void 0?void 0:a.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("resolving of context was canceled");return o})),Ct(o=>this.resolveContext(o).pipe(Te(a=>({context:o,resolved:a})))),Ct(({context:o,resolved:a})=>Zu(this,void 0,void 0,function*(){var s;const c=yield(s=it(this,Wi,"f"))===null||s===void 0?void 0:s.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:o,resolved:a}});if(c!=null&&c.canceled)throw Error("resolving of context was canceled");return a})),Ct(o=>this._setCurrentContext(o))).subscribe(n)}return _n(e).pipe(Ct(o=>Zu(this,void 0,void 0,function*(){var a;const s=yield(a=it(this,Wi,"f"))===null||a===void 0?void 0:a.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("change of context was aborted");return o}))).subscribe(o=>{n.next(o),n.complete()})})}setCurrentContextAsync(e,t){return Zu(this,void 0,void 0,function*(){return Sr(this.setCurrentContext(e,t))})}queryContext(e){const t=this.queryClient.query(it(this,Jp,"f").call(this,{search:e,type:it(this,sc,"f")})).pipe(Te(n=>n.value));return it(this,ch,"f")?t.pipe(Te(it(this,ch,"f"))):t}queryContextAsync(e){return Sr(this.queryContext(e))}validateContext(e){return it(this,sc,"f")?it(this,sc,"f").map(t=>t.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:it(this,sc,"f")}}).pipe(Te(t=>t.filter(n=>this.validateContext(n))),Te(t=>{const n=t.shift();if(!n)throw Error("failed to resolve context");return t.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",t),n}))}resolveContextAsync(e){return Sr(this.resolveContext(e))}relatedContexts(e){return it(this,sh,"f")?it(this,sh,"f").query(e).pipe(Te(({value:t})=>t),sr(t=>{throw t.cause?t.cause:t})):kS(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return Sr(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContext(null)}dispose(){it(this,ac,"f").unsubscribe(),it(this,ea,"f").dispose()}};ea=new WeakMap,Xp=new WeakMap,sh=new WeakMap,Wi=new WeakMap,ac=new WeakMap,sc=new WeakMap,ch=new WeakMap,Jp=new WeakMap,e2=new WeakMap;var hz=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const fz="context",pz={name:fz,configure:()=>new hV,initialize:function(r){var e;return hz(this,void 0,void 0,function*(){const t=yield r.config.createConfig(r),n=r.hasModule("event")?yield r.requireInstance("event"):void 0,i=(e=r.ref)===null||e===void 0?void 0:e.context,o=new uz({config:t,event:n,parentContext:i}),a=new Nr(()=>o.dispose());return this.postInitialize=s=>new Fe(c=>{const l=t.resolveInitialContext?Wt(t.resolveInitialContext(s)).pipe(Ge(d=>!!d),Ct(d=>s.modules.context.setCurrentContext(d,{validate:!0,resolve:!0}))):Kt;c.add(l.pipe(sr(d=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",d),Kt))).subscribe({next:d=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${d?d.id:"none"}]`,d)},complete:()=>{t.connectParentContext!==!1&&i&&o.connectParentContext(i),c.complete()}}))}),this.dispose=()=>a.unsubscribe(),o})}};var i8=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class mz{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return i8(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 i8(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var sg=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class vz{constructor(e,t){this._client=e,this._http=t}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return sg(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,t){return sg(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},t),{baseUri:n.uri,defaultScopes:n.defaultScopes}))})}configureClient(e,t){return sg(this,void 0,void 0,function*(){const{key:n,alias:i}=typeof e=="string"?{key:e,alias:e}:e,{uri:o,defaultScopes:a}=yield this.resolveService(n);t.addConfig(VS(i,{baseUri:o,defaultScopes:a}))})}}var cg=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},o8=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},gz=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},lh;const a8="services";class yz{get environment(){var e;const t=(e=o8(this,lh,"f").cache.getItem(a8))===null||e===void 0?void 0:e.value;if(!t)throw Error("no cached environment found");return t}constructor({http:e,endpoint:t}){lh.set(this,void 0),this.http=e,this.endpoint=t,gz(this,lh,new Wr({client:{fn:()=>e.fetch$(t,{selector:this.selector.bind(this)})},key:()=>a8,expire:5*60*1e3}),"f")}fetchEnvironment(){return cg(this,void 0,void 0,function*(){return Gr(Wr.extractQueryValue(o8(this,lh,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return cg(this,void 0,void 0,function*(){const t=yield e.json(),n=t.services.reduce((i,o)=>{var a;return Object.assign(i,{[o.key]:{clientId:t.clientId,uri:o.uri,defaultScopes:(a=o.defaultScopes)!==null&&a!==void 0?a:[t.clientId+"/.default"]}})},{});return Object.assign(Object.assign({},t),{services:n})})}resolveService(e){return cg(this,void 0,void 0,function*(){try{const{services:t}=yield this.fetchEnvironment();return t[e]}catch(t){throw console.error(t),t}})}}lh=new WeakMap;const _z="serviceDiscovery";var bz=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const wz={name:_z,configure:()=>new mz({clientCtor:yz,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:r,requireInstance:e})=>bz(void 0,void 0,void 0,function*(){const t=yield e("http"),n=yield r.createHttpClientClient(t),i=yield r.createClient(n);return new vz(i,t)})};class xz{}var $i;(function(r){r.v1="1.0",r.v2="2.0"})($i||($i={}));class vi extends Error{constructor(e,t){super(`unsupported version ${e}`,{cause:t}),this.version=e}}const Cz=(r,e)=>{var t;const n=(t=$i[r])!==null&&t!==void 0?t:r;switch(n){case $i.v2:throw new vi(r);case $i.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/contexts/${i}/?${String(o)}`}}},Ez=(r,e,t)=>[Cz(r,e),t],kz=(r,e,t="json")=>(n,i)=>r[t](...Ez(e,n,i));var Sz=["eq","ne","gt","ge","lt","le"],rp=["and","or","not"],Iz=["any","all"],Az=["startswith","endswith","contains"],Tz=["expand","levels","select","skip","top","count","orderby","filter"],s8=/\((.*)\)/,c8=/(?!indexof)\((\w+)\)/,l8;(function(r){r.sum="sum",r.min="min",r.max="max",r.average="average",r.countdistinct="countdistinct"})(l8||(l8={}));var Qo="";function lI(r){var e=r===void 0?{}:r,t=e.select,n=e.search,i=e.skiptoken,o=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,d=e.orderBy,u=e.key,h=e.count,f=e.expand,p=e.action,m=e.func,x="",g=[],v={};if(u!=null&&(x+="(".concat($o(u,g),")")),(c||typeof h=="object")&&(v.$filter=k1(typeof h=="object"?h:c,g)),l&&(v.$apply=dI(l)),f&&(v.$expand=t2(f)),d&&(v.$orderby=h_(d)),h&&(typeof h=="boolean"?v.$count=!0:x+="/$count"),typeof a=="number"&&(v.$top=a),typeof s=="number"&&(v.$skip=s),p&&(x+="/".concat(p)),m){if(typeof m=="string")x+="/".concat(m);else if(typeof m=="object"){var b=Object.keys(m)[0],E=$o(m[b],g);x+="/".concat(b),E!==""&&(x+="(".concat(E,")"))}}return g.length>0&&Object.assign(v,g.reduce(function(I,C){var T;return Object.assign(I,(T={},T["@".concat(C.name)]=$o(C.value),T))},{})),Hz(x,vr({$select:t,$search:n,$skiptoken:i,$format:o},v))}function lg(r,e,t){return t===void 0&&(t=[]),"".concat(r," eq ").concat($o(e,t))}function k1(r,e,t){return r===void 0&&(r={}),e===void 0&&(e=[]),t===void 0&&(t=""),(Array.isArray(r)?r:[r]).reduce(function(o,a){if(a){var s=n(a,e,t);s&&o.push(s)}return o},[]).join(" and ");function n(o,a,s){o===void 0&&(o={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof o=="string")c=o;else if(o&&typeof o=="object"){var l=Object.keys(o).reduce(function(d,u){var h=o[u];if(h===void 0)return d;var f="";if(s?u===Qo?f=s:c8.test(u)?f=u.replace(c8,function(v,b){return b.trim()===Qo?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):s8.test(u)?f=u.replace(s8,function(v,b){return b.trim()===Qo?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):f="".concat(s,"/").concat(u):f=u,u===Qo&&Array.isArray(h))return d.concat(h.map(function(v){return lg(f,v)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)d.push(lg(f,h,a));else if(Array.isArray(h)){var p=u,m=h.map(function(v){return k1(v,a,s)}).filter(function(v){return v}).map(function(v){return rp.indexOf(p)!==-1?"(".concat(v,")"):v});m.length&&(rp.indexOf(p)!==-1?m.length&&(p==="not"?d.push(d8(m)):d.push("(".concat(m.join(" ".concat(p," ")),")"))):d.push(m.join(" ".concat(p," "))))}else if(rp.indexOf(f)!==-1){var x=f,m=Object.keys(h).map(function(b){var E;return n((E={},E[b]=h[b],E))});m.length&&(x==="not"?d.push(d8(m)):d.push("(".concat(m.join(" ".concat(x," ")),")")))}else if(typeof h=="object")if("type"in h)d.push(lg(f,h,a));else{var g=Object.keys(h);g.forEach(function(v){if(h[v]!==void 0)if(Sz.indexOf(v)!==-1)d.push("".concat(f," ").concat(v," ").concat($o(h[v],a)));else if(rp.indexOf(v)!==-1)Array.isArray(h[v])?d.push(h[v].map(function(C){return"("+n(C,a,f)+")"}).join(" ".concat(v," "))):d.push("("+n(h[v],a,f)+")");else if(Iz.indexOf(v)!==-1){var b=i(u.toLowerCase(),h[v],v,f);b&&d.push(b)}else if(v==="has")d.push("".concat(f," ").concat(v," ").concat($o(h[v],a)));else if(v==="in"){var E=Array.isArray(h[v])?h[v]:h[v].value.map(function(C){return{type:h[v].type,value:C}});d.push(f+" in ("+E.map(function(C){return $o(C,a)}).join(",")+")")}else if(Az.indexOf(v)!==-1)d.push("".concat(v,"(").concat(f,",").concat($o(h[v],a),")"));else{var I=n(h,a,f);I&&d.push(I)}})}else throw new Error("Unexpected value type: ".concat(h));return d},[]);c=l.join(" and ")}return c}function i(o,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=Rz(o,a,s,c);else if(a){var d=Array.isArray(a)?a.reduce(function(h,f){return f.hasOwnProperty(Qo)?(h.hasOwnProperty(Qo)||(h[Qo]=[]),h[Qo].push(f[Qo]),h):vr(vr({},h),f)},{}):a,u=n(d,e,o);l="".concat(c,"/").concat(s,"(").concat(u?"".concat(o,":").concat(u):"",")")}return l}}function Rz(r,e,t,n){var i="",o=t=="all"?"ne":"eq";return i="".concat(n,"/").concat(t,"(").concat(r,": ").concat(r," ").concat(o," '").concat(e,"')"),i}function Pz(r){return r=r.replace(/%/g,"%25"),r=r.replace(/\+/g,"%2B"),r=r.replace(/\//g,"%2F"),r=r.replace(/\?/g,"%3F"),r=r.replace(/#/g,"%23"),r=r.replace(/&/g,"%26"),r=r.replace(/'/g,"''"),r}function $o(r,e){if(typeof r=="string")return"'".concat(Pz(r),"'");if(r instanceof Date)return r.toISOString();if(typeof r=="number")return r;if(Array.isArray(r))return"[".concat(r.map(function(t){return $o(t)}).join(","),"]");if(r===null)return r;if(typeof r=="object")switch(r.type){case"raw":case"guid":return r.value;case"duration":return"duration'".concat(r.value,"'");case"binary":return"binary'".concat(r.value,"'");case"alias":return Array.isArray(e)&&e.push(r),"@".concat(r.name);case"json":return escape(JSON.stringify(r.value));case"decimal":return"".concat(r.value,"M");default:return Object.entries(r).filter(function(t){var n=t[1];return n!==void 0}).map(function(t){var n=t[0],i=t[1];return"".concat(n,"=").concat($o(i,e))}).join(",")}return r}function t2(r){if(typeof r=="number")return r;if(typeof r=="string")return r.indexOf("/")===-1?r:r.split("/").reverse().reduce(function(t,n,i,o){return i===0?"$expand=".concat(n):i===o.length-1?"".concat(n,"(").concat(t,")"):"$expand=".concat(n,"(").concat(t,")")},"");if(Array.isArray(r))return"".concat(r.map(function(t){return t2(t)}).join(","));if(typeof r=="object"){var e=Object.keys(r);return e.some(function(t){return Tz.indexOf(t.toLowerCase())!==-1})?e.map(function(t){var n;switch(t){case"filter":n=k1(r[t]);break;case"orderBy":n=h_(r[t]);break;case"levels":case"count":case"skip":case"top":n="".concat(r[t]);break;default:n=t2(r[t])}return"$".concat(t.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(t){var n=t2(r[t]);return n?"".concat(t,"(").concat(n,")"):t}).join(",")}return""}function dI(r){var e=Array.isArray(r)?r:[r],t=e.reduce(function(n,i){var o=i.aggregate,a=i.filter,s=i.groupBy,c=iS(i,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(o&&n.push("aggregate(".concat(Mz(o),")")),a){var d=k1(a);d&&n.push("filter(".concat(k1(d),")"))}return s&&n.push("groupby(".concat($z(s),")")),n},[]);return t.join("/")||void 0}function Mz(r){var e=Array.isArray(r)?r:[r];return e.map(function(t){return typeof t=="string"?t:Object.keys(t).map(function(n){var i=t[n];if(!i.with&&i.as)return"".concat(n," as ").concat(i.as);if(!i.with)throw new Error("'with' property required for '".concat(n,"'"));if(!i.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(i.with," as ").concat(i.as)})}).join(",")}function $z(r){if(!r.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(r.properties.join(","),")");return r.transform&&(e+=",".concat(dI(r.transform))),e}function h_(r,e){return e===void 0&&(e=""),Array.isArray(r)?r.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 r=="object"?Object.entries(r).map(function(t){var n=t[0],i=t[1];return h_(i,"".concat(n,"/"))}).map(function(t){return"".concat(e).concat(t)}).join(","):"".concat(e).concat(String(r))}function Hz(r,e){var t=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return t.length?"".concat(r,"?").concat(t.join("&")):r}function d8(r){return"not(".concat(r.join(" and "),")")}const Zz=r=>Object.keys(r).reduce((e,t)=>{var n;switch(t){case"type":return!((n=r[t])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),Oz=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,n])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:Zz(n)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),Lz=r=>typeof r=="string"?r:lI(Oz(r)),Dz=(r,e)=>{var t;const n=(t=$i[r])!==null&&t!==void 0?t:r;switch(n){case $i.v2:throw new vi(r);case $i.v1:default:{const{query:i,includeDeleted:o}=e,a=new URLSearchParams(Lz(i));return a.append("api-version",n),o&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},Nz=(r,e,t)=>[Dz(r,e),t],Vz=(r,e,t="json")=>(n,i)=>r[t](...Nz(e,n,i)),zz=r=>Object.keys(r).reduce((e,t)=>{var n;switch(t){case"type":return!((n=r[t])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),Fz=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,n])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:zz(n)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),jz=r=>typeof r=="string"?r:lI(Fz(r)),Uz=(r,e)=>{var t;const n=(t=$i[r])!==null&&t!==void 0?t:r;switch(n){case $i.v2:throw new vi(r);case $i.v1:default:{const{id:i,query:o}=e,a=new URLSearchParams(jz(o||""));return a.append("api-version",n),`/contexts/${i}/relations?${String(a)}`}}},Bz=(r,e,t)=>[Uz(r,e),t],qz=(r,e,t="json")=>(n,i)=>r[t](...Bz(e,n,i));class Wz{get Version(){return $i}constructor(e,t){this._client=e,this._method=t}get(e,...t){return kz(this._client,e,this._method)(...t)}query(e,...t){return Vz(this._client,e,this._method)(...t)}related(e,...t){return qz(this._client,e,this._method)(...t)}}const Gz=(r,e)=>{switch(r){case"v1":{const{id:t}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${t}/?${String(n)}`}default:{const{id:t}=e,n=new URLSearchParams;return n.append("api-version",r),`/bookmarks/${t}/?${String(n)}`}}},Kz=(r,e,t)=>{const n=Gz(r,e),i=Object.assign({},{method:"Delete"},t);return[n,i]},Yz=(r,e,t="fetch")=>(n,i)=>r[t](...Kz(e,n,i)),Qz=(r,e)=>{switch(r){case"v1":{const{id:t}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${t}/?${String(n)}`}default:{const{id:t}=e,n=new URLSearchParams;return n.append("api-version",r),`/bookmarks/${t}/?${String(n)}`}}},Xz=(r,e,t)=>[Qz(r,e),t],Jz=(r,e,t="json")=>(n,i)=>r[t](...Xz(e,n,i)),eF=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks?${String(t)}`}}},tF=(r,e,t)=>{const n=eF(r),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},t);return[n,o]},rF=(r,e,t="json")=>(n,i)=>r[t](...tF(e,n,i)),nF=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks/${e.id}?${String(t)}`}}},iF=(r,e,t)=>{const n=nF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},t);return[n,o]},oF=(r,e,t="json")=>(n,i)=>r[t](...iF(e,n,i)),aF=r=>{switch(r){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",r),`persons/me/bookmarks/?${String(e)}`}}},sF=(r,e)=>[aF(r),e],cF=(r,e,t="json")=>n=>r[t](...sF(e,n)),lF=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/persons/me/bookmarks/favourites?${String(t)}`}}},dF=(r,e,t)=>{const n=lF(r),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},t);return[n,o]},uF=(r,e,t="json")=>(n,i)=>r[t](...dF(e,n,i)),hF=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${t}/?${String(n)}`}}},fF=(r,e,t)=>{const n=hF(r,e),i=Object.assign({},{method:"Delete"},t);return[n,i]},pF=(r,e,t="fetch")=>(n,i)=>r[t](...fF(e,n,i)),mF=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,n=new URLSearchParams;return n.append("api-version",r),`/persons/me/bookmarks/favourites/${t}?${String(n)}`}}},vF=(r,e,t)=>{const n=mF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"head",headers:i},t);return[n,o]},gF=(r,e,t="json")=>(n,i)=>r[t](...vF(e,n,i));class yF{constructor(e,t){this._client=e,this._method=t}get(e,...t){return Jz(this._client,e,this._method)(...t)}getAll(e){return cF(this._client,e,this._method)()}post(e,...t){return rF(this._client,e,this._method)(...t)}patch(e,...t){return oF(this._client,e,this._method)(...t)}delete(e,...t){return Yz(this._client,e,this._method)(...t)}addFavorite(e,...t){return uF(this._client,e,this._method)(...t)}removeFavorite(e,...t){return pF(this._client,e,this._method)(...t)}verifyFavorite(e,...t){return gF(this._client,e,this._method)(...t)}}const _F=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},bF=(r,e,t)=>[_F(r,e),t],wF=(r,e,t="json")=>(n,i)=>r[t](...bF(e,n,i)),xF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},CF=(r,e,t)=>{const n=xF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},t);return[n,o]},EF=(r,e,t="json")=>(n,i)=>r[t](...CF(e,n,i)),kF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},SF=(r,e,t)=>{const n=kF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},t);return[n,o]},IF=(r,e,t="json")=>(n,i)=>r[t](...SF(e,n,i)),AF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},TF=(r,e,t)=>[AF(r,e),t],RF=(r,e,t="json")=>(n,i)=>r[t](...TF(e,n,i)),PF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},MF=(r,e,t)=>{const n=PF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"delete",headers:i},t);return[n,o]},$F=(r,e,t="json")=>(n,i)=>r[t](...MF(e,n,i));var Ft;(function(r){r.v1="1.0",r.v2="2.0"})(Ft||(Ft={}));const HF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},ZF=(r,e,t)=>{const n=HF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"put",body:JSON.stringify(e),headers:i},t);return[n,o]},OF=(r,e,t="json")=>(n,i)=>r[t](...ZF(e,n,i)),LF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},DF=(r,e,t)=>[LF(r,e),t],NF=(r,e,t="json")=>(n,i)=>r[t](...DF(e,n,i));class VF{get Version(){return Ft}constructor(e,t){this._client=e,this._method=t}getAll(e,...t){return RF(this._client,e,this._method)(...t)}getById(e,...t){return wF(this._client,e,this._method)(...t)}setSeenByUser(e,...t){return IF(this._client,e,this._method)(...t)}create(e,...t){return EF(this._client,e,this._method)(...t)}delete(e,...t){return $F(this._client,e,this._method)(...t)}getSettings(e,...t){return NF(this._client,e,this._method)(...t)}updateSettings(e,...t){return OF(this._client,e,this._method)(...t)}}var Oi;(function(r){r.v2="2.0",r.v4="4.0"})(Oi||(Oi={}));const zF=(r,e)=>{var t;const n=(t=Oi[r])!==null&&t!==void 0?t:r;switch(n){case Oi.v4:{const{azureId:i,expand:o}=e,a=new URLSearchParams;return a.append("api-version",n),o&&a.append("$expand",o.join(",")),`/persons/${i}?${String(a)}`}default:throw new vi(r)}},FF=(r,e,t)=>[zF(r,e),t],jF=(r,e,t="json")=>(n,i)=>r[t](...FF(e,n,i)),UF=(r,e)=>{var t;const n=(t=Oi[r])!==null&&t!==void 0?t:r;switch(n){case Oi.v2:{const{search:i}=e,o=new URLSearchParams;return o.append("api-version",n),o.append("$search",i),`/persons?${String(o)}`}default:throw new vi(r)}},BF=(r,e,t)=>[UF(r,e),t],qF=(r,e,t="json")=>(n,i)=>r[t](...BF(e,n,i)),WF=(r,e)=>{var t;const n=(t=Oi[r])!==null&&t!==void 0?t:r;switch(n){case Oi.v2:{const{azureId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/persons/${i}/photo?${String(o)}`}default:throw new vi(r)}},GF=(r,e,t)=>[WF(r,e),t],KF=(r,e,t="blob")=>(n,i)=>r[t](...GF(e,n,i));class YF{get Version(){return Oi}constructor(e){this._client=e}get(e,t,n,i){return jF(this._client,e,t)(n,i)}query(e,t,n,i){return qF(this._client,e,t)(n,i)}photo(e,t,n,i){return KF(this._client,e,t)(n,i)}}var dh=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class QF extends Error{constructor(e,t,n){super(e,n),this.response=t,this.name="ApiProviderError"}}const np=r=>dh(void 0,void 0,void 0,function*(){var e;if(!r.ok){const{headers:t,status:n,statusText:i,type:o,url:a,bodyUsed:s}=r,c=(e=t.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),l=!s&&(yield c?r.json():r.text());throw new QF("failed to execute request, response was not ok",{headers:t,status:n,statusText:i,type:o,url:a,data:l})}});class XF{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return dh(this,void 0,void 0,function*(){const t=yield this._createClientFn("notification");return t.responseHandler.add("validate_api_request",np),new VF(t,e)})}createBookmarksClient(e){return dh(this,void 0,void 0,function*(){const t=yield this._createClientFn("bookmarks");return t.responseHandler.add("validate_api_request",np),new yF(t,e)})}createContextClient(e){return dh(this,void 0,void 0,function*(){const t=yield this._createClientFn("context");return t.responseHandler.add("validate_api_request",np),new Wz(t,e)})}createPeopleClient(){return dh(this,void 0,void 0,function*(){const e=yield this._createClientFn("people");return e.responseHandler.add("validate_api_request",np),new YF(e)})}}var uI=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const JF="services",ej=(r,e)=>t=>uI(void 0,void 0,void 0,function*(){if(r.hasClient(t))return r.createClient(t);if(e)return e.createClient(t);throw Error(`failed to create http client for service ${t}`)}),hI={name:JF,configure:()=>new xz,initialize:({ref:r,config:e,requireInstance:t,hasModule:n})=>uI(void 0,void 0,void 0,function*(){if(!e.createClient){const i=yield t("http"),o=n("serviceDiscovery")?yield t("serviceDiscovery"):r==null?void 0:r.serviceDiscovery;e.createClient=ej(i,o)}if(!e.createClient)throw Error("missing configuration for creating API client");return new XF(e)})},tj=r=>{r.addConfig({module:hI})};class rj extends bD{constructor(){super([SD,tI,Yy,wz,hI,pz]),this.logger=new nS("FrameworkConfigurator")}configureHttp(...e){this.addConfig(ND(...e))}configureHttpClient(...e){this.addConfig(VS(...e))}configureMsal(...e){this.addConfig(XN(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var nj=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const ij=(r,e)=>nj(void 0,void 0,void 0,function*(){const t=yield r.initialize(e),n={modules:t};return window.Fusion=n,t.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n}),fI=y.createContext(null),oj=fI.Provider,pI=y.createContext({}),aj=pI.Provider,sj=()=>y.useContext(pI),cj=r=>sj()[r];var lj=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const dj=r=>y.lazy(()=>lj(void 0,void 0,void 0,function*(){const e=new rj;yield r(e);const t=yield ij(e);return{default:({children:n})=>w.jsx(oj,{value:t,children:w.jsx(aj,{value:t.modules,children:n})})}})),wn=()=>{let r=y.useContext(fI);return r||console.warn("could not locate fusion in context!"),r??(r=window.Fusion),r||console.error("Could not load framework, might not be initiated?"),r},uj=r=>{const t=wn().modules[r];return t||console.warn(`the requested module [${t}] is not included in the framework instance`),t},hj=r=>{const{configure:e,fallback:t,children:n}=r,i=y.useMemo(()=>dj(e),[e]);return w.jsx(y.Suspense,{fallback:t,children:w.jsx(i,{children:n})})};function ht(){return ht=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},ht.apply(this,arguments)}function zo(r){"@babel/helpers - typeof";return zo=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},zo(r)}function dg(r){return r&&zo(r)==="object"&&r.constructor===Object}function mI(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=t.clone?ht({},r):r;return dg(r)&&dg(e)&&Object.keys(e).forEach(function(i){i!=="__proto__"&&(dg(e[i])&&i in r?n[i]=mI(r[i],e[i],t):n[i]=e[i])}),n}function fj(r,e){if(zo(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function vI(r){var e=fj(r,"string");return zo(e)=="symbol"?e:String(e)}function Cm(r,e,t){return e=vI(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var pj=typeof Symbol=="function"&&Symbol.for;const gI=pj?Symbol.for("mui.nested"):"__THEME_NESTED__";var mj=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function vj(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.disableGlobal,t=e===void 0?!1:e,n=r.productionPrefix,i=n===void 0?"jss":n,o=r.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),c=0,l=function(){return c+=1,c};return function(d,u){var h=u.options.name;if(h&&h.indexOf("Mui")===0&&!u.options.link&&!t){if(mj.indexOf(d.key)!==-1)return"Mui-".concat(d.key);var f="".concat(s).concat(h,"-").concat(d.key);return!u.options.theme[gI]||a!==""?f:"".concat(f,"-").concat(l())}return"".concat(s).concat(i).concat(l())}}var u8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},J1=(typeof window>"u"?"undefined":u8(window))==="object"&&(typeof document>"u"?"undefined":u8(document))==="object"&&document.nodeType===9;function h8(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,vI(n.key),n)}}function yI(r,e,t){return e&&h8(r.prototype,e),t&&h8(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function R5(r,e){return R5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},R5(r,e)}function _I(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,R5(r,e)}function f8(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function bI(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}var gj={}.constructor;function P5(r){if(r==null||typeof r!="object")return r;if(Array.isArray(r))return r.map(P5);if(r.constructor!==gj)return r;var e={};for(var t in r)e[t]=P5(r[t]);return e}function f_(r,e,t){r===void 0&&(r="unnamed");var n=t.jss,i=P5(e),o=n.plugins.onCreateRule(r,i,t);return o||(r[0],null)}var p8=function(e,t){for(var n="",i=0;i<e.length&&e[i]!=="!important";i++)n&&(n+=t),n+=e[i];return n},$c=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!=="!important";n++)t&&(t+=", "),t+=p8(e[n]," ");else t=p8(e,", ");return e[e.length-1]==="!important"&&(t+=" !important"),t};function eu(r){return r&&r.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
74
|
+
`));return e.currentContext?_n(e.currentContext):Kt},uV=r=>({ref:e,modules:t})=>{const{context:n,navigation:i}=t,o=lV(n,r==null?void 0:r.path);return yd(i?o(i.path.pathname):Kt,dV({ref:e,modules:t})).pipe(pD())};var Jf=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},zw=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Kp;class hV{constructor(){this.defaultExpireTime=1*60*1e3,Kp.set(this,[])}addConfigBuilder(e){zw(this,Kp,"f").push(e)}_getServiceProvider(e){var t;return Jf(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(t=e.ref)===null||t===void 0?void 0:t.services;if(n)return n;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var t,n;return Jf(this,void 0,void 0,function*(){const i=yield zw(this,Kp,"f").reduce((o,a)=>Jf(this,void 0,void 0,function*(){const s=new oV(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({}));return(t=i.resolveInitialContext)!==null&&t!==void 0||(i.resolveInitialContext=uV()),(n=i.client)!==null&&n!==void 0||(i.client=yield Jf(this,void 0,void 0,function*(){const a=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:s=>a.get("v1",s,{selector:eV})},key:({id:s})=>s,expire:this.defaultExpireTime},query:{client:{fn:s=>a.query("v1",{query:s},{selector:tV})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime},related:{client:{fn:s=>a.related("v1",{id:s.item.id,query:{filter:s.filter}},{selector:rV})},key:s=>JSON.stringify(s),expire:this.defaultExpireTime}}})),i})}}Kp=new WeakMap;var fV=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!r(e[i],t[i]))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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!r(e[a],t[a]))return!1}return!0}return e!==e&&t!==t};const pV=D3(fV);var Fw;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Fw||(Fw={}));const mV=r=>e=>e.pipe(d5(r)),vV=r=>e=>e.pipe(Gn(r)),gV=r=>e=>e.pipe(Ct(r)),C5=r=>r.pipe(Te(e=>e.value));let ep;const yV=new Uint8Array(16);function _V(){if(!ep&&(ep=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ep))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ep(yV)}const bV=/^(?:[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 wV(r){return typeof r=="string"&&bV.test(r)}const Br=[];for(let r=0;r<256;++r)Br.push((r+256).toString(16).slice(1));function rI(r,e=0){return Br[r[e+0]]+Br[r[e+1]]+Br[r[e+2]]+Br[r[e+3]]+"-"+Br[r[e+4]]+Br[r[e+5]]+"-"+Br[r[e+6]]+Br[r[e+7]]+"-"+Br[r[e+8]]+Br[r[e+9]]+"-"+Br[r[e+10]]+Br[r[e+11]]+Br[r[e+12]]+Br[r[e+13]]+Br[r[e+14]]+Br[r[e+15]]}function xV(r){if(!wV(r))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.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 CV(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const EV="6ba7b810-9dad-11d1-80b4-00c04fd430c8",kV="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function SV(r,e,t){function n(i,o,a,s){var c;if(typeof i=="string"&&(i=CV(i)),typeof o=="string"&&(o=xV(o)),((c=o)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+i.length);if(l.set(o),l.set(i,o.length),l=t(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,a){s=s||0;for(let d=0;d<16;++d)a[s+d]=l[d];return a}return rI(l)}try{n.name=r}catch{}return n.DNS=EV,n.URL=kV,n}const IV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jw={randomUUID:IV};function $d(r,e,t){if(jw.randomUUID&&!e&&!r)return jw.randomUUID();r=r||{};const n=r.random||(r.rng||_V)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=n[i];return e}return rI(n)}function AV(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function rg(r,e){return r<<e|r>>>32-e}function TV(r){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=[];for(let s=0;s<a.length;++s)r.push(a.charCodeAt(s))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const n=r.length/4+2,i=Math.ceil(n/16),o=new Array(i);for(let a=0;a<i;++a){const s=new Uint32Array(16);for(let c=0;c<16;++c)s[c]=r[a*64+c*4]<<24|r[a*64+c*4+1]<<16|r[a*64+c*4+2]<<8|r[a*64+c*4+3];o[a]=s}o[i-1][14]=(r.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(r.length-1)*8&4294967295;for(let a=0;a<i;++a){const s=new Uint32Array(80);for(let f=0;f<16;++f)s[f]=o[a][f];for(let f=16;f<80;++f)s[f]=rg(s[f-3]^s[f-8]^s[f-14]^s[f-16],1);let c=t[0],l=t[1],d=t[2],u=t[3],h=t[4];for(let f=0;f<80;++f){const p=Math.floor(f/20),m=rg(c,5)+AV(p,l,d,u)+h+e[p]+s[f]>>>0;h=u,u=d,d=rg(l,30)>>>0,l=c,c=m}t[0]=t[0]+c>>>0,t[1]=t[1]+l>>>0,t[2]=t[2]+d>>>0,t[3]=t[3]+u>>>0,t[4]=t[4]+h>>>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 RV=SV("v5",80,TV);class E5 extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}}function ni(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Is(r){return!!r&&!!r[ot]}function co(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===VV}(r)||Array.isArray(r)||!!r[Qw]||!!(!((e=r.constructor)===null||e===void 0)&&e[Qw])||i_(r)||o_(r))}function Uw(r){return Is(r)||ni(23,r),r[ot].t}function Hd(r,e,t){t===void 0&&(t=!1),Qd(r)===0?(t?Object.keys:d_)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,i){return e(i,n,r)})}function Qd(r){var e=r[ot];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:i_(r)?2:o_(r)?3:0}function k5(r,e){return Qd(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function PV(r,e){return Qd(r)===2?r.get(e):r[e]}function nI(r,e,t){var n=Qd(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function MV(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function i_(r){return DV&&r instanceof Map}function o_(r){return NV&&r instanceof Set}function Mr(r){return r.o||r.t}function a_(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=zV(r);delete e[ot];for(var t=d_(e),n=0;n<t.length;n++){var i=t[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),e)}function s_(r,e){return e===void 0&&(e=!1),c_(r)||Is(r)||!co(r)||(Qd(r)>1&&(r.set=r.add=r.clear=r.delete=$V),Object.freeze(r),e&&Hd(r,function(t,n){return s_(n,!0)},!0)),r}function $V(){ni(2)}function c_(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function Do(r){var e=I5[r];return e||ni(18,r),e}function HV(r,e){I5[r]||(I5[r]=e)}function _m(){return E1}function ng(r,e){e&&(Do("Patches"),r.u=[],r.s=[],r.v=e)}function bm(r){S5(r),r.p.forEach(ZV),r.p=null}function S5(r){r===E1&&(E1=r.l)}function Bw(r){return E1={p:[],l:E1,h:r,m:!0,_:0}}function ZV(r){var e=r[ot];e.i===0||e.i===1?e.j():e.g=!0}function ig(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||Do("ES5").S(e,r,n),n?(t[ot].P&&(bm(e),ni(4)),co(r)&&(r=wm(e,r),e.l||xm(e,r)),e.u&&Do("Patches").M(t[ot].t,r,e.u,e.s)):r=wm(e,t,[]),bm(e),e.u&&e.v(e.u,e.s),r!==iI?r:void 0}function wm(r,e,t){if(c_(e))return e;var n=e[ot];if(!n)return Hd(e,function(s,c){return qw(r,n,e,s,c,t)},!0),e;if(n.A!==r)return e;if(!n.P)return xm(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=a_(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),Hd(o,function(s,c){return qw(r,n,i,s,c,t,a)}),xm(r,i,!1),t&&r.u&&Do("Patches").N(n,t,r.u,r.s)}return n.o}function qw(r,e,t,n,i,o,a){if(Is(i)){var s=wm(r,i,o&&e&&e.i!==3&&!k5(e.R,n)?o.concat(n):void 0);if(nI(t,n,s),!Is(s))return;r.m=!1}else a&&t.add(i);if(co(i)&&!c_(i)){if(!r.h.D&&r._<1)return;wm(r,i),e&&e.A.l||xm(r,i)}}function xm(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&s_(e,t)}function og(r,e){var t=r[ot];return(t?Mr(t):r)[e]}function Ww(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function ca(r){r.P||(r.P=!0,r.l&&ca(r.l))}function ag(r){r.o||(r.o=a_(r.t))}function C1(r,e,t){var n=i_(e)?Do("MapSet").F(e,t):o_(e)?Do("MapSet").T(e,t):r.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:_m(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},c=s,l=A5;a&&(c=[s],l=ih);var d=Proxy.revocable(c,l),u=d.revoke,h=d.proxy;return s.k=h,s.j=u,h}(e,t):Do("ES5").J(e,t);return(t?t.A:_m()).p.push(n),n}function OV(r){return Is(r)||ni(22,r),function e(t){if(!co(t))return t;var n,i=t[ot],o=Qd(t);if(i){if(!i.P&&(i.i<4||!Do("ES5").K(i)))return i.t;i.I=!0,n=Gw(t,o),i.I=!1}else n=Gw(t,o);return Hd(n,function(a,s){i&&PV(i.t,a)===s||nI(n,a,e(s))}),o===3?new Set(n):n}(r)}function Gw(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return a_(r)}function LV(){function r(s,c){function l(){this.constructor=s}i(s,c),s.prototype=(l.prototype=c.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function t(s){s.o||(s.o=new Set,s.t.forEach(function(c){if(co(c)){var l=C1(s.A.h,c,s);s.p.set(c,l),s.o.add(l)}else s.o.add(c)}))}function n(s){s.g&&ni(3,JSON.stringify(Mr(s)))}var i=function(s,c){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var u in d)d.hasOwnProperty(u)&&(l[u]=d[u])})(s,c)},o=function(){function s(l,d){return this[ot]={i:2,l:d,A:d?d.A:_m(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}r(s,Map);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Mr(this[ot]).size}}),c.has=function(l){return Mr(this[ot]).has(l)},c.set=function(l,d){var u=this[ot];return n(u),Mr(u).has(l)&&Mr(u).get(l)===d||(e(u),ca(u),u.R.set(l,!0),u.o.set(l,d),u.R.set(l,!0)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[ot];return n(d),e(d),ca(d),d.t.has(l)?d.R.set(l,!1):d.R.delete(l),d.o.delete(l),!0},c.clear=function(){var l=this[ot];n(l),Mr(l).size&&(e(l),ca(l),l.R=new Map,Hd(l.t,function(d){l.R.set(d,!1)}),l.o.clear())},c.forEach=function(l,d){var u=this;Mr(this[ot]).forEach(function(h,f){l.call(d,u.get(f),f,u)})},c.get=function(l){var d=this[ot];n(d);var u=Mr(d).get(l);if(d.I||!co(u)||u!==d.t.get(l))return u;var h=C1(d.A.h,u,d);return e(d),d.o.set(l,h),h},c.keys=function(){return Mr(this[ot]).keys()},c.values=function(){var l,d=this,u=this.keys();return(l={})[tp]=function(){return d.values()},l.next=function(){var h=u.next();return h.done?h:{done:!1,value:d.get(h.value)}},l},c.entries=function(){var l,d=this,u=this.keys();return(l={})[tp]=function(){return d.entries()},l.next=function(){var h=u.next();if(h.done)return h;var f=d.get(h.value);return{done:!1,value:[h.value,f]}},l},c[tp]=function(){return this.entries()},s}(),a=function(){function s(l,d){return this[ot]={i:3,l:d,A:d?d.A:_m(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}r(s,Set);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Mr(this[ot]).size}}),c.has=function(l){var d=this[ot];return n(d),d.o?!!d.o.has(l)||!(!d.p.has(l)||!d.o.has(d.p.get(l))):d.t.has(l)},c.add=function(l){var d=this[ot];return n(d),this.has(l)||(t(d),ca(d),d.o.add(l)),this},c.delete=function(l){if(!this.has(l))return!1;var d=this[ot];return n(d),t(d),ca(d),d.o.delete(l)||!!d.p.has(l)&&d.o.delete(d.p.get(l))},c.clear=function(){var l=this[ot];n(l),Mr(l).size&&(t(l),ca(l),l.o.clear())},c.values=function(){var l=this[ot];return n(l),t(l),l.o.values()},c.entries=function(){var l=this[ot];return n(l),t(l),l.o.entries()},c.keys=function(){return this.values()},c[tp]=function(){return this.values()},c.forEach=function(l,d){for(var u=this.values(),h=u.next();!h.done;)l.call(d,h.value,h.value,this),h=u.next()},s}();HV("MapSet",{F:function(s,c){return new o(s,c)},T:function(s,c){return new a(s,c)}})}var Kw,E1,l_=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",DV=typeof Map<"u",NV=typeof Set<"u",Yw=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",iI=l_?Symbol.for("immer-nothing"):((Kw={})["immer-nothing"]=!0,Kw),Qw=l_?Symbol.for("immer-draftable"):"__$immer_draftable",ot=l_?Symbol.for("immer-state"):"__$immer_state",tp=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",VV=""+Object.prototype.constructor,d_=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,zV=Object.getOwnPropertyDescriptors||function(r){var e={};return d_(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},I5={},A5={get:function(r,e){if(e===ot)return r;var t=Mr(r);if(!k5(t,e))return function(i,o,a){var s,c=Ww(o,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(i.k):void 0}(r,t,e);var n=t[e];return r.I||!co(n)?n:n===og(r.t,e)?(ag(r),r.o[e]=C1(r.A.h,n,r)):n},has:function(r,e){return e in Mr(r)},ownKeys:function(r){return Reflect.ownKeys(Mr(r))},set:function(r,e,t){var n=Ww(Mr(r),e);if(n!=null&&n.set)return n.set.call(r.k,t),!0;if(!r.P){var i=og(Mr(r),e),o=i==null?void 0:i[ot];if(o&&o.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(MV(t,i)&&(t!==void 0||k5(r.t,e)))return!0;ag(r),ca(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return og(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,ag(r),ca(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Mr(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){ni(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){ni(12)}},ih={};Hd(A5,function(r,e){ih[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ih.deleteProperty=function(r,e){return ih.set.call(this,r,e,void 0)},ih.set=function(r,e,t){return A5.set.call(this,r[0],e,t,r[0])};var FV=function(){function r(t){var n=this;this.O=Yw,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var c=n;return function(m){var x=this;m===void 0&&(m=s);for(var g=arguments.length,v=Array(g>1?g-1:0),b=1;b<g;b++)v[b-1]=arguments[b];return c.produce(m,function(E){var I;return(I=o).call.apply(I,[x,E].concat(v))})}}var l;if(typeof o!="function"&&ni(6),a!==void 0&&typeof a!="function"&&ni(7),co(i)){var d=Bw(n),u=C1(n,i,void 0),h=!0;try{l=o(u),h=!1}finally{h?bm(d):S5(d)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return ng(d,a),ig(m,d)},function(m){throw bm(d),m}):(ng(d,a),ig(l,d))}if(!i||typeof i!="object"){if((l=o(i))===void 0&&(l=i),l===iI&&(l=void 0),n.D&&s_(l,!0),a){var f=[],p=[];Do("Patches").M(i,l,f,p),a(f,p)}return l}ni(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(l){for(var d=arguments.length,u=Array(d>1?d-1:0),h=1;h<d;h++)u[h-1]=arguments[h];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(u))})};var a,s,c=n.produce(i,o,function(l,d){a=l,s=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,a,s]}):[c,a,s]},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=r.prototype;return e.createDraft=function(t){co(t)||ni(8),Is(t)&&(t=OV(t));var n=Bw(this),i=C1(this,t,void 0);return i[ot].C=!0,S5(n),i},e.finishDraft=function(t,n){var i=t&&t[ot],o=i.A;return ng(o,n),ig(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Yw&&ni(20),this.O=t},e.applyPatches=function(t,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}i>-1&&(n=n.slice(i+1));var a=Do("Patches").$;return Is(t)?a(t,n):this.produce(t,function(s){return a(s,n)})},r}(),ui=new FV,oI=ui.produce;ui.produceWithPatches.bind(ui);ui.setAutoFreeze.bind(ui);ui.setUseProxies.bind(ui);ui.applyPatches.bind(ui);ui.createDraft.bind(ui);ui.finishDraft.bind(ui);const Xd=(...r)=>Ge(e=>r.includes(e.type));var ln=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},jV=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},bo,qi;class X1 extends Fe{get action$(){return ln(this,bo,"f").asObservable()}get value(){return ln(this,qi,"f").value}get closed(){return ln(this,qi,"f").closed||ln(this,bo,"f").closed}constructor(e,t){super(i=>ln(this,qi,"f").subscribe(i)),bo.set(this,new gn),qi.set(this,void 0);const n="getInitialState"in e?e.getInitialState():t;jV(this,qi,new Kd(n),"f"),ln(this,bo,"f").pipe(HS(e,n),MS()).subscribe(ln(this,qi,"f")),this.reset=()=>ln(this,qi,"f").next(n)}next(e){ln(this,bo,"f").next(e)}addEffect(e,t){const n=typeof e=="string"?this.action$.pipe(Xd(e)):this.action$,i=t||e;return n.pipe(Gn(o=>Wt(new Promise((a,s)=>{try{a(i(o,this.value))}catch(c){s(c)}})).pipe(sr(a=>(console.warn("unhandled effect",a),Kt)))),Ge(o=>!!o),nm(rm)).subscribe(ln(this,bo,"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(sr(n=>(console.trace("unhandled exception, epic closed!",n),Kt)),nm(rm)).subscribe(ln(this,bo,"f"))}unsubscribe(){ln(this,bo,"f").unsubscribe(),ln(this,qi,"f").unsubscribe()}complete(){ln(this,bo,"f").complete(),ln(this,qi,"f").complete()}asObservable(){return ln(this,qi,"f").asObservable()}}bo=new WeakMap,qi=new WeakMap;const aI=(r,e)=>Object.entries(r).reduce((t,[n,i])=>Object.assign(t,{[n]:typeof i=="function"?(...o)=>e.next(i(...o)):aI(i,e)}),{});function kr(r,e){function t(...n){if(e){const i=e(...n);if(!i)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:r,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:r,payload:n[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=n=>n.type===r,t}const Yp="::",u_=r=>new RegExp(`${Yp}${r}$`),Xw=r=>r.type.replace(u_("\\w+$"),"");function To(r,e,t,n){const i=kr([r,"request"].join(Yp),e);return t&&Object.assign(i,{success:kr([r,"success"].join(Yp),t)}),n&&Object.assign(i,{failure:kr([r,"failure"].join(Yp),n)}),i}const UV=r=>!!r.type.match(/::request$/),BV=r=>!!r.type.match(u_("success")),qV=r=>!!r.type.match(u_("failure")),WV=r=>BV(r)||qV(r);function Jw(r){return co(r)?oI(r,()=>{}):r}function GV(r){return typeof r=="function"}function Jd(r,e){const[t,n,i]=KV(e);let o;if(GV(r))o=()=>Jw(r());else{const s=Jw(r);o=()=>s}function a(s=o(),c){let l=[t[c.type],...n.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return l.filter(d=>!!d).length===0&&(l=[i]),l.reduce((d,u)=>{if(u)if(Is(d)){const f=u(d,c);return f===void 0?d:f}else{if(co(d))return oI(d,h=>u(h,c));{const h=u(d,c);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},s)}return a.getInitialState=o,a}function KV(r){const e={},t=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=a,i},addMatcher(o,a){return t.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return r(i),[e,t,n]}function YV(r,e){const t=typeof e=="function"?e:Jd(e.initial,o=>e.builder(o,r)),n=new X1(t),i=aI(r,n);return{actions:r,dispatch:i,subject:n}}const QV=()=>({request:kr("client/request",(e,t)=>{var n,i,o;return t??(t={}),(n=t.transaction)!==null&&n!==void 0||(t.transaction=$d()),(i=t.created)!==null&&i!==void 0||(t.created=Date.now()),(o=t.task)!==null&&o!==void 0||(t.task=new uS),{payload:e,meta:t}}),retry:kr("client/retry",e=>({payload:e})),success:kr("client/success",(e,t)=>({payload:e,meta:t})),cancel:kr("client/cancel",e=>({payload:e})),failure:kr("client/failure",(e,t)=>({payload:e,meta:t})),error:kr("client/error",(e,t)=>({payload:e,meta:t}))}),Zr=QV(),sI=r=>e=>e.pipe(Ge(Zr.request.match),Gn(t=>{const{meta:n}=t,{transaction:i}=n,o=new AbortController,{signal:a}=o;return new Fe(s=>{s.add(e.pipe(Ge(Zr.cancel.match)).subscribe(c=>{c.payload.transaction===i&&(a.aborted||o.abort(),s.complete())})),s.add(Wt(r(t,a)).subscribe({next:c=>s.next(c),error:c=>s.next(Zr.error(c,{request:t})),complete:()=>s.complete()}))})})),XV=r=>(r=Object.assign({},{count:0,delay:0},r),(e,t)=>e.pipe(sI(n=>e.pipe(Ge(Zr.failure.match),Ge(i=>i.meta.request===n),Ky(t),Ct(([i,o])=>{var a,s;const{transaction:c}=n.meta,l=o[c];if(!l)return Kt;const d=(s=(a=l.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,u=Object.assign({},r,n.meta.retry);if(d>=u.count)throw u.count?Error("maximum retries executed!",{cause:i.payload}):i.payload;return(typeof u.delay=="function"?Wt(u.delay(i.payload.cause)).pipe(sr(f=>{throw Error("failed to resolve delay",{cause:f})})):dD(u.delay)).pipe(Te(()=>Zr.retry(n)))}))))),JV=r=>e=>e.pipe(sI((t,n)=>Wt(r(t.payload,n)).pipe(Te(i=>Zr.success(i,{request:t})),sr(i=>_n(Zr.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:i}),{request:t})))))),ez=r=>r.pipe(Ge(Zr.retry.match),Te(e=>e.payload)),cI=()=>Ge(r=>r.status==="complete"),tz=(r={})=>Jd(r,e=>e.addCase(Zr.request,(t,n)=>{const{transaction:i,task:o,ref:a,created:s}=n.meta;t[i]={transaction:i,task:o,ref:a,created:s}}).addCase(Zr.success,(t,n)=>{const{request:i}=n.meta,{transaction:o,ref:a}=i.meta,s=t[o];if(s){const c={status:"complete",transaction:o,ref:a,value:n.payload,args:i.payload,created:s.created,completed:Date.now()};s.task.next(c),s.task.complete()}delete t[o]}).addCase(Zr.retry,(t,n)=>{var i;const{transaction:o}=n.payload.meta,a=t[o];a&&((i=a.retry)!==null&&i!==void 0||(a.retry=[]),a.retry.push(Date.now()))}).addCase(Zr.cancel,(t,n)=>{const{transaction:i,reason:o}=n.payload;if(t[i]){const a=Object.assign({},Uw(t[i]));a.task.error(new E5("abort",{request:a,message:o??"request was canceled"})),delete t[i]}}).addCase(Zr.failure,(t,n)=>{var i;const{payload:o,meta:a}=n,{transaction:s}=a.request.meta,c=t[s];c&&((i=c.errors)!==null&&i!==void 0||(c.errors=[]),c.errors.push(o))}).addCase(Zr.error,(t,n)=>{const{payload:i,meta:o}=n,{transaction:a}=o.request.meta;if(t[a]){const s=Object.assign({},Uw(t[a]));s.task.error(new E5("error",{request:s,message:`failed to process task [${a}]`,cause:i.cause})),delete t[a]}}));var rz=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},Qt=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},e8=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},or,ic;class t8 extends Fe{get closed(){return Qt(this,or,"f").closed}get state$(){return Qt(this,or,"f")}get action$(){return Qt(this,or,"f").action$}get success$(){return this.action$.pipe(Ge(Zr.success.match),Te(({payload:e})=>e))}get error$(){return this.action$.pipe(Xd("client/error"),Ky(Qt(this,or,"f")),Te(([e,t])=>{const{payload:n,meta:i}=e,{transaction:o}=i.request.meta,a=t[e.meta.request.meta.transaction];return new E5("error",{request:a,message:`failed to process task [${o}]`,cause:n})}))}constructor(e,t){super(o=>Qt(this,or,"f").subscribe(o)),or.set(this,void 0),ic.set(this,void 0);const n={};e8(this,or,new X1(tz(n)),"f"),e8(this,ic,new Nr(()=>Qt(this,or,"f").complete()),"f"),Qt(this,ic,"f").add(Qt(this,or,"f").addFlow(JV(e))),Qt(this,ic,"f").add(Qt(this,or,"f").addFlow(ez));const i=Object.assign({count:0,delay:0},t==null?void 0:t.retry);Qt(this,ic,"f").add(Qt(this,or,"f").addFlow(XV(i)))}next(e,t){const{ref:n,retry:i,task:o}=t??{},a=Zr.request(e,{ref:n,retry:i,task:o});return Qt(this,or,"f").next(a),a.meta}nextAsync(e,t){return rz(this,void 0,void 0,function*(){return Gr(this.next(e,t).task.pipe(cI()))})}getTaskByTransaction(e){const t=Qt(this,or,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(Qt(this,or,"f").value).find(n=>n.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const n=Object.values(Qt(this,or,"f").value).find(i=>i.ref===e);n!=null&&n.ref&&this.cancel(n.transaction,t)}cancel(e,t){if(e)Qt(this,or,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),Qt(this,or,"f").next(Zr.cancel({transaction:e,reason:t})));else for(const n of Object.keys(Qt(this,or,"f").value))this.cancel(n,"all transactions canceled")}on(e,t){return Qt(this,or,"f").addEffect(Zr[e].type,n=>{t(n,this)})}complete(){Qt(this,ic,"f").unsubscribe()}asObservable(){return Qt(this,or,"f").asObservable()}}or=new WeakMap,ic=new WeakMap;function nz(){return{set:kr("cache/set",(r,e)=>({payload:{key:r,entry:e}})),remove:kr("cache/remove",r=>({payload:r})),invalidate:kr("cache/invalidate",r=>({payload:r})),trim:kr("cache/trim",r=>({payload:r}))}}const gl=nz(),iz=(r,e)=>{var t,n;return((t=e.updated)!==null&&t!==void 0?t:0)-((n=r.updated)!==null&&n!==void 0?n:0)};function oz(r,e={}){return Jd(e,t=>t.addCase(r.set,(n,i)=>{var o;const{key:a,entry:s}=i.payload,c=n[a];if(c)c.updated=Date.now(),(o=c.updates)!==null&&o!==void 0||(c.updates=0),c.updates++;else{const l=Date.now();n[a]=Object.assign(Object.assign({},s),{created:l,updated:l})}}).addCase(r.remove,(n,i)=>{delete n[i.payload]}).addCase(r.invalidate,(n,i)=>{const o=n[i.payload];o&&delete o.updated}).addCase(r.trim,(n,i)=>{var o,a;const{payload:s}=i,c=(o=s.sort)!==null&&o!==void 0?o:iz,l=Object.keys(n),d=Object.entries(n).filter(([u,h])=>!s.validate||s.validate(h)).sort((u,h)=>c(u[1],h[1])).slice(0,(a=s.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).map(([u])=>u);if(l.length!==d.length)for(const u of l){const h=d.indexOf(u);h!==-1?d.splice(h,1):delete n[u]}}))}var Ui=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},az=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},Nn;class r8{get state(){return Ui(this,Nn,"f").value}get state$(){return Ui(this,Nn,"f").asObservable()}constructor(e){Nn.set(this,void 0);const{trimming:t,initial:n}=e??{};az(this,Nn,new X1(oz(gl,n)),"f"),t&&Ui(this,Nn,"f").addEffect("cache/set",()=>Ui(this,Nn,"f").next(gl.trim(t)))}setItem(...e){Ui(this,Nn,"f").next(gl.set(...e))}getItem(e){return Ui(this,Nn,"f").value[e]}removeItem(e){Ui(this,Nn,"f").next(gl.remove(e))}invalidate(e){Ui(this,Nn,"f").next(gl.invalidate(e))}trim(e){Ui(this,Nn,"f").next(gl.trim(e))}reset(){Ui(this,Nn,"f").reset()}complete(){Ui(this,Nn,"f").complete()}}Nn=new WeakMap;var bt=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},yl=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},sz=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(t[n[i]]=r[n[i]]);return t},oc,wo,Wa,Ml,$l,oh,Qp,T5;const cz=(r=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+r>Date.now()},lz=r=>{if(typeof r=="function")return r;switch(r){case"concat":return mV;case"merge":return vV;case"switch":default:return gV}};class Wr{get client(){return bt(this,wo,"f")}get cache(){return bt(this,Wa,"f")}constructor(e){var t;oc.set(this,new Nr),wo.set(this,void 0),Wa.set(this,void 0),Ml.set(this,new gn),$l.set(this,{}),oh.set(this,void 0),Qp.set(this,void 0),T5.set(this,$d()),yl(this,oh,i=>RV(e.key(i),bt(this,T5,"f")),"f"),yl(this,Qp,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:cz(e==null?void 0:e.expire),"f"),e.client instanceof t8?yl(this,wo,e.client,"f"):(yl(this,wo,new t8(e.client.fn,e.client.options),"f"),bt(this,oc,"f").add(()=>bt(this,wo,"f").complete())),e.cache instanceof r8?yl(this,Wa,e.cache,"f"):(yl(this,Wa,new r8(e.cache||{}),"f"),bt(this,oc,"f").add(()=>bt(this,Wa,"f").complete()));const n=lz(e.queueOperator);bt(this,oc,"f").add(()=>bt(this,Ml,"f").complete()),bt(this,oc,"f").add(bt(this,Ml,"f").pipe(n(i=>{const{args:o,options:a}=i;return new Fe(s=>{const{task:c,transaction:l}=bt(this,wo,"f").next(o,a);s.add(c.pipe(sr(()=>Kt)).subscribe(s)),s.add(()=>{setTimeout(()=>bt(this,wo,"f").cancel(l))})})}),cI(),ZS(()=>!bt(this,wo,"f").closed)).subscribe(i=>{const{args:o,value:a,transaction:s,ref:c}=i,l=c??bt(this,oh,"f").call(this,o);bt(this,Wa,"f").setItem(l,{value:a,args:o,transaction:s})}))}next(e,t){bt(this,Ml,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const n=t||{},{awaitResolve:i}=n,o=sz(n,["awaitResolve"]);return(i?Sr:Gr)(this._query(e,o))}complete(){bt(this,oc,"f").unsubscribe()}_query(e,t){const n=bt(this,oh,"f").call(this,e),i=this._createTask(n,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{bt(this,wo,"f").cancelTaskByRef(n,"abort signal triggered by caller")}),i}_createTask(e,t,n){const i=new gn,o=new Fe(a=>{var s;if(!bt(this,$l,"f")[e])bt(this,$l,"f")[e]=o;else return bt(this,$l,"f")[e].subscribe(a);i.pipe(om(()=>{delete bt(this,$l,"f")[e]})).subscribe(a);const c=bt(this,Wa,"f").getItem(e);c&&i.next(Object.assign(Object.assign({},c),{status:"cache"}));const l=((s=n==null?void 0:n.cache)===null||s===void 0?void 0:s.validate)||bt(this,Qp,"f");c&&l(c,t)?i.complete():bt(this,Ml,"f").next({args:t,options:{ref:e,task:i,retry:n==null?void 0:n.retry}})}).pipe(gD());return o}}oc=new WeakMap,wo=new WeakMap,Wa=new WeakMap,Ml=new WeakMap,$l=new WeakMap,oh=new WeakMap,Qp=new WeakMap,T5=new WeakMap;Wr.extractQueryValue=C5;var Fa=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},n8=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},ah,Jo;class dz extends Fe{get currentContext(){return Fa(this,Jo,"f").value}get currentContext$(){return Fa(this,Jo,"f").asObservable()}get client(){return Fa(this,ah,"f")}constructor(e){super(t=>Fa(this,Jo,"f").subscribe(t)),ah.set(this,void 0),Jo.set(this,void 0),n8(this,ah,new Wr(e),"f"),n8(this,Jo,new Kd(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(sr(()=>Kt)).subscribe(t=>this.setCurrentContext(t)):pV(e,Fa(this,Jo,"f").value)||Fa(this,Jo,"f").next(e)}resolveContext(e){return Fa(this,ah,"f").query({id:e}).pipe(Te(t=>t.value),sr(t=>{throw t.cause?t.cause:t}))}resolveContextAsync(e,t){return(t!=null&&t.awaitResolve?Sr:Gr)(this.resolveContext(e))}dispose(){Fa(this,Jo,"f").complete()}}ah=new WeakMap,Jo=new WeakMap;var Zu=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},it=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Gs=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},ea,Xp,sh,Wi,ac,sc,ch,Jp,e2;let uz=class{get contextClient(){return it(this,ea,"f")}get queryClient(){return it(this,Xp,"f")}get currentContext$(){return it(this,ea,"f").currentContext$}get currentContext(){return it(this,ea,"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,n,i;ea.set(this,void 0),Xp.set(this,void 0),sh.set(this,void 0),Wi.set(this,void 0),ac.set(this,new Nr),sc.set(this,void 0),ch.set(this,void 0),Jp.set(this,void 0),e2.set(this,new gn);const{config:o,event:a}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),Gs(this,Wi,a,"f"),o.resolveContext&&(this.resolveContext=(t=o.resolveContext)===null||t===void 0?void 0:t.bind(this)),o.validateContext&&(this.validateContext=(n=o.validateContext)===null||n===void 0?void 0:n.bind(this)),Gs(this,sc,o.contextType,"f"),Gs(this,ch,o.contextFilter,"f"),Gs(this,ea,new dz(o.client.get),"f"),Gs(this,Xp,new Wr(o.client.query),"f"),o.client.related&&Gs(this,sh,new Wr(o.client.related),"f"),Gs(this,Jp,(i=o.contextParameterFn)!==null&&i!==void 0?i:s=>({search:s.search,filter:{type:s.type}}),"f"),it(this,Wi,"f")&&(it(this,ac,"f").add(this.currentContext$.pipe(am()).subscribe(([s,c])=>{var l;(l=it(this,Wi,"f"))===null||l===void 0||l.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:s,next:c}})})),it(this,ac,"f").add(it(this,Wi,"f").addEventListener("onCurrentContextChanged",s=>{s.source!==this&&s.detail.next!==void 0&&this.setCurrentContext(s.detail.next)}))),it(this,ac,"f").add(it(this,e2,"f").pipe(Ct(s=>s),Rd(s=>console.debug("ContextProvider::#contextQueue",s))).subscribe(s=>it(this,ea,"f").setCurrentContext(s??null)))}connectParentContext(e,t){const i=e.currentContext$.pipe(Ge(o=>o!==void 0),Ge((o,a)=>{var s;return t!=null&&t.skipFirst&&a<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",o),!1):((s=this.currentContext)===null||s===void 0?void 0:s.id)!==(o==null?void 0:o.id)}),Ct(o=>Zu(this,void 0,void 0,function*(){var a;if(o){const s=yield(a=it(this,Wi,"f"))===null||a===void 0?void 0:a.dispatchEvent("onParentContextChanged",{source:this,detail:o,cancelable:!0});return{next:o,canceled:s==null?void 0:s.canceled}}return{next:o}})),Ge(o=>!o.canceled),Ct(({next:o})=>this.setCurrentContext(o,{validate:!0,resolve:!0}).pipe(sr(a=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",a),Kt)))),sr(o=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",o),Kt))).subscribe();return it(this,ac,"f").add(i),i}setCurrentContextById(e){return new Fe(t=>{try{it(this,ea,"f").resolveContext(e).pipe(Ge(n=>!!n),Ct(n=>this.setCurrentContext(n))).subscribe(t)}catch(n){t.error(n)}})}setCurrentContextByIdAsync(e){return Sr(this.setCurrentContextById(e))}setCurrentContext(e,t){const n=new gn,i=new gn,o=this._setCurrentContext(e,t).pipe(Rd(a=>i.next(a)),_d(n),om(()=>i.complete()),sr(a=>(i.error(a),Kt)));return it(this,e2,"f").next(o),i.pipe(om(()=>n.next(!0)))}_setCurrentContext(e,t){return new Fe(n=>{var i;if(e===this.currentContext)return n.next(e),n.complete();if(e&&(t!=null&&t.validate)&&!this.validateContext(e)){if(!t.resolve)return(i=it(this,Wi,"f"))===null||i===void 0||i.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),n.error(Error("failed to validate provided context"));if(t.resolve)return _n(e).pipe(Ct(o=>Zu(this,void 0,void 0,function*(){var a;const s=yield(a=it(this,Wi,"f"))===null||a===void 0?void 0:a.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("resolving of context was canceled");return o})),Ct(o=>this.resolveContext(o).pipe(Te(a=>({context:o,resolved:a})))),Ct(({context:o,resolved:a})=>Zu(this,void 0,void 0,function*(){var s;const c=yield(s=it(this,Wi,"f"))===null||s===void 0?void 0:s.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:o,resolved:a}});if(c!=null&&c.canceled)throw Error("resolving of context was canceled");return a})),Ct(o=>this._setCurrentContext(o))).subscribe(n)}return _n(e).pipe(Ct(o=>Zu(this,void 0,void 0,function*(){var a;const s=yield(a=it(this,Wi,"f"))===null||a===void 0?void 0:a.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("change of context was aborted");return o}))).subscribe(o=>{n.next(o),n.complete()})})}setCurrentContextAsync(e,t){return Zu(this,void 0,void 0,function*(){return Sr(this.setCurrentContext(e,t))})}queryContext(e){const t=this.queryClient.query(it(this,Jp,"f").call(this,{search:e,type:it(this,sc,"f")})).pipe(Te(n=>n.value));return it(this,ch,"f")?t.pipe(Te(it(this,ch,"f"))):t}queryContextAsync(e){return Sr(this.queryContext(e))}validateContext(e){return it(this,sc,"f")?it(this,sc,"f").map(t=>t.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:it(this,sc,"f")}}).pipe(Te(t=>t.filter(n=>this.validateContext(n))),Te(t=>{const n=t.shift();if(!n)throw Error("failed to resolve context");return t.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",t),n}))}resolveContextAsync(e){return Sr(this.resolveContext(e))}relatedContexts(e){return it(this,sh,"f")?it(this,sh,"f").query(e).pipe(Te(({value:t})=>t),sr(t=>{throw t.cause?t.cause:t})):kS(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return Sr(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContext(null)}dispose(){it(this,ac,"f").unsubscribe(),it(this,ea,"f").dispose()}};ea=new WeakMap,Xp=new WeakMap,sh=new WeakMap,Wi=new WeakMap,ac=new WeakMap,sc=new WeakMap,ch=new WeakMap,Jp=new WeakMap,e2=new WeakMap;var hz=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const fz="context",pz={name:fz,configure:()=>new hV,initialize:function(r){var e;return hz(this,void 0,void 0,function*(){const t=yield r.config.createConfig(r),n=r.hasModule("event")?yield r.requireInstance("event"):void 0,i=(e=r.ref)===null||e===void 0?void 0:e.context,o=new uz({config:t,event:n,parentContext:i}),a=new Nr(()=>o.dispose());return this.postInitialize=s=>new Fe(c=>{const l=t.resolveInitialContext?Wt(t.resolveInitialContext(s)).pipe(Ge(d=>!!d),Ct(d=>s.modules.context.setCurrentContext(d,{validate:!0,resolve:!0}))):Kt;c.add(l.pipe(sr(d=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",d),Kt))).subscribe({next:d=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${d?d.id:"none"}]`,d)},complete:()=>{t.connectParentContext!==!1&&i&&o.connectParentContext(i),c.complete()}}))}),this.dispose=()=>a.unsubscribe(),o})}};var i8=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class mz{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return i8(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 i8(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var sg=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class vz{constructor(e,t){this._client=e,this._http=t}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return sg(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,t){return sg(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},t),{baseUri:n.uri,defaultScopes:n.defaultScopes}))})}configureClient(e,t){return sg(this,void 0,void 0,function*(){const{key:n,alias:i}=typeof e=="string"?{key:e,alias:e}:e,{uri:o,defaultScopes:a}=yield this.resolveService(n);t.addConfig(VS(i,{baseUri:o,defaultScopes:a}))})}}var cg=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},o8=function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},gz=function(r,e,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,t):i?i.value=t:e.set(r,t),t},lh;const a8="services";class yz{get environment(){var e;const t=(e=o8(this,lh,"f").cache.getItem(a8))===null||e===void 0?void 0:e.value;if(!t)throw Error("no cached environment found");return t}constructor({http:e,endpoint:t}){lh.set(this,void 0),this.http=e,this.endpoint=t,gz(this,lh,new Wr({client:{fn:()=>e.fetch$(t,{selector:this.selector.bind(this)})},key:()=>a8,expire:5*60*1e3}),"f")}fetchEnvironment(){return cg(this,void 0,void 0,function*(){return Gr(Wr.extractQueryValue(o8(this,lh,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return cg(this,void 0,void 0,function*(){const t=yield e.json(),n=t.services.reduce((i,o)=>{var a;return Object.assign(i,{[o.key]:{clientId:t.clientId,uri:o.uri,defaultScopes:(a=o.defaultScopes)!==null&&a!==void 0?a:[t.clientId+"/.default"]}})},{});return Object.assign(Object.assign({},t),{services:n})})}resolveService(e){return cg(this,void 0,void 0,function*(){try{const{services:t}=yield this.fetchEnvironment();return t[e]}catch(t){throw console.error(t),t}})}}lh=new WeakMap;const _z="serviceDiscovery";var bz=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const wz={name:_z,configure:()=>new mz({clientCtor:yz,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:r,requireInstance:e})=>bz(void 0,void 0,void 0,function*(){const t=yield e("http"),n=yield r.createHttpClientClient(t),i=yield r.createClient(n);return new vz(i,t)})};class xz{}var $i;(function(r){r.v1="1.0",r.v2="2.0"})($i||($i={}));class vi extends Error{constructor(e,t){super(`unsupported version ${e}`,{cause:t}),this.version=e}}const Cz=(r,e)=>{var t;const n=(t=$i[r])!==null&&t!==void 0?t:r;switch(n){case $i.v2:throw new vi(r);case $i.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/contexts/${i}/?${String(o)}`}}},Ez=(r,e,t)=>[Cz(r,e),t],kz=(r,e,t="json")=>(n,i)=>r[t](...Ez(e,n,i));var Sz=["eq","ne","gt","ge","lt","le"],rp=["and","or","not"],Iz=["any","all"],Az=["startswith","endswith","contains"],Tz=["expand","levels","select","skip","top","count","orderby","filter"],s8=/\((.*)\)/,c8=/(?!indexof)\((\w+)\)/,l8;(function(r){r.sum="sum",r.min="min",r.max="max",r.average="average",r.countdistinct="countdistinct"})(l8||(l8={}));var Qo="";function lI(r){var e=r===void 0?{}:r,t=e.select,n=e.search,i=e.skiptoken,o=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,d=e.orderBy,u=e.key,h=e.count,f=e.expand,p=e.action,m=e.func,x="",g=[],v={};if(u!=null&&(x+="(".concat($o(u,g),")")),(c||typeof h=="object")&&(v.$filter=k1(typeof h=="object"?h:c,g)),l&&(v.$apply=dI(l)),f&&(v.$expand=t2(f)),d&&(v.$orderby=h_(d)),h&&(typeof h=="boolean"?v.$count=!0:x+="/$count"),typeof a=="number"&&(v.$top=a),typeof s=="number"&&(v.$skip=s),p&&(x+="/".concat(p)),m){if(typeof m=="string")x+="/".concat(m);else if(typeof m=="object"){var b=Object.keys(m)[0],E=$o(m[b],g);x+="/".concat(b),E!==""&&(x+="(".concat(E,")"))}}return g.length>0&&Object.assign(v,g.reduce(function(I,C){var T;return Object.assign(I,(T={},T["@".concat(C.name)]=$o(C.value),T))},{})),Hz(x,vr({$select:t,$search:n,$skiptoken:i,$format:o},v))}function lg(r,e,t){return t===void 0&&(t=[]),"".concat(r," eq ").concat($o(e,t))}function k1(r,e,t){return r===void 0&&(r={}),e===void 0&&(e=[]),t===void 0&&(t=""),(Array.isArray(r)?r:[r]).reduce(function(o,a){if(a){var s=n(a,e,t);s&&o.push(s)}return o},[]).join(" and ");function n(o,a,s){o===void 0&&(o={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof o=="string")c=o;else if(o&&typeof o=="object"){var l=Object.keys(o).reduce(function(d,u){var h=o[u];if(h===void 0)return d;var f="";if(s?u===Qo?f=s:c8.test(u)?f=u.replace(c8,function(v,b){return b.trim()===Qo?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):s8.test(u)?f=u.replace(s8,function(v,b){return b.trim()===Qo?"(".concat(s,")"):"(".concat(s,"/").concat(b.trim(),")")}):f="".concat(s,"/").concat(u):f=u,u===Qo&&Array.isArray(h))return d.concat(h.map(function(v){return lg(f,v)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)d.push(lg(f,h,a));else if(Array.isArray(h)){var p=u,m=h.map(function(v){return k1(v,a,s)}).filter(function(v){return v}).map(function(v){return rp.indexOf(p)!==-1?"(".concat(v,")"):v});m.length&&(rp.indexOf(p)!==-1?m.length&&(p==="not"?d.push(d8(m)):d.push("(".concat(m.join(" ".concat(p," ")),")"))):d.push(m.join(" ".concat(p," "))))}else if(rp.indexOf(f)!==-1){var x=f,m=Object.keys(h).map(function(b){var E;return n((E={},E[b]=h[b],E))});m.length&&(x==="not"?d.push(d8(m)):d.push("(".concat(m.join(" ".concat(x," ")),")")))}else if(typeof h=="object")if("type"in h)d.push(lg(f,h,a));else{var g=Object.keys(h);g.forEach(function(v){if(h[v]!==void 0)if(Sz.indexOf(v)!==-1)d.push("".concat(f," ").concat(v," ").concat($o(h[v],a)));else if(rp.indexOf(v)!==-1)Array.isArray(h[v])?d.push(h[v].map(function(C){return"("+n(C,a,f)+")"}).join(" ".concat(v," "))):d.push("("+n(h[v],a,f)+")");else if(Iz.indexOf(v)!==-1){var b=i(u.toLowerCase(),h[v],v,f);b&&d.push(b)}else if(v==="has")d.push("".concat(f," ").concat(v," ").concat($o(h[v],a)));else if(v==="in"){var E=Array.isArray(h[v])?h[v]:h[v].value.map(function(C){return{type:h[v].type,value:C}});d.push(f+" in ("+E.map(function(C){return $o(C,a)}).join(",")+")")}else if(Az.indexOf(v)!==-1)d.push("".concat(v,"(").concat(f,",").concat($o(h[v],a),")"));else{var I=n(h,a,f);I&&d.push(I)}})}else throw new Error("Unexpected value type: ".concat(h));return d},[]);c=l.join(" and ")}return c}function i(o,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=Rz(o,a,s,c);else if(a){var d=Array.isArray(a)?a.reduce(function(h,f){return f.hasOwnProperty(Qo)?(h.hasOwnProperty(Qo)||(h[Qo]=[]),h[Qo].push(f[Qo]),h):vr(vr({},h),f)},{}):a,u=n(d,e,o);l="".concat(c,"/").concat(s,"(").concat(u?"".concat(o,":").concat(u):"",")")}return l}}function Rz(r,e,t,n){var i="",o=t=="all"?"ne":"eq";return i="".concat(n,"/").concat(t,"(").concat(r,": ").concat(r," ").concat(o," '").concat(e,"')"),i}function Pz(r){return r=r.replace(/%/g,"%25"),r=r.replace(/\+/g,"%2B"),r=r.replace(/\//g,"%2F"),r=r.replace(/\?/g,"%3F"),r=r.replace(/#/g,"%23"),r=r.replace(/&/g,"%26"),r=r.replace(/'/g,"''"),r}function $o(r,e){if(typeof r=="string")return"'".concat(Pz(r),"'");if(r instanceof Date)return r.toISOString();if(typeof r=="number")return r;if(Array.isArray(r))return"[".concat(r.map(function(t){return $o(t)}).join(","),"]");if(r===null)return r;if(typeof r=="object")switch(r.type){case"raw":case"guid":return r.value;case"duration":return"duration'".concat(r.value,"'");case"binary":return"binary'".concat(r.value,"'");case"alias":return Array.isArray(e)&&e.push(r),"@".concat(r.name);case"json":return escape(JSON.stringify(r.value));case"decimal":return"".concat(r.value,"M");default:return Object.entries(r).filter(function(t){var n=t[1];return n!==void 0}).map(function(t){var n=t[0],i=t[1];return"".concat(n,"=").concat($o(i,e))}).join(",")}return r}function t2(r){if(typeof r=="number")return r;if(typeof r=="string")return r.indexOf("/")===-1?r:r.split("/").reverse().reduce(function(t,n,i,o){return i===0?"$expand=".concat(n):i===o.length-1?"".concat(n,"(").concat(t,")"):"$expand=".concat(n,"(").concat(t,")")},"");if(Array.isArray(r))return"".concat(r.map(function(t){return t2(t)}).join(","));if(typeof r=="object"){var e=Object.keys(r);return e.some(function(t){return Tz.indexOf(t.toLowerCase())!==-1})?e.map(function(t){var n;switch(t){case"filter":n=k1(r[t]);break;case"orderBy":n=h_(r[t]);break;case"levels":case"count":case"skip":case"top":n="".concat(r[t]);break;default:n=t2(r[t])}return"$".concat(t.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(t){var n=t2(r[t]);return n?"".concat(t,"(").concat(n,")"):t}).join(",")}return""}function dI(r){var e=Array.isArray(r)?r:[r],t=e.reduce(function(n,i){var o=i.aggregate,a=i.filter,s=i.groupBy,c=iS(i,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(o&&n.push("aggregate(".concat(Mz(o),")")),a){var d=k1(a);d&&n.push("filter(".concat(k1(d),")"))}return s&&n.push("groupby(".concat($z(s),")")),n},[]);return t.join("/")||void 0}function Mz(r){var e=Array.isArray(r)?r:[r];return e.map(function(t){return typeof t=="string"?t:Object.keys(t).map(function(n){var i=t[n];if(!i.with&&i.as)return"".concat(n," as ").concat(i.as);if(!i.with)throw new Error("'with' property required for '".concat(n,"'"));if(!i.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(i.with," as ").concat(i.as)})}).join(",")}function $z(r){if(!r.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(r.properties.join(","),")");return r.transform&&(e+=",".concat(dI(r.transform))),e}function h_(r,e){return e===void 0&&(e=""),Array.isArray(r)?r.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 r=="object"?Object.entries(r).map(function(t){var n=t[0],i=t[1];return h_(i,"".concat(n,"/"))}).map(function(t){return"".concat(e).concat(t)}).join(","):"".concat(e).concat(String(r))}function Hz(r,e){var t=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return t.length?"".concat(r,"?").concat(t.join("&")):r}function d8(r){return"not(".concat(r.join(" and "),")")}const Zz=r=>Object.keys(r).reduce((e,t)=>{var n;switch(t){case"type":return!((n=r[t])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),Oz=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,n])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:Zz(n)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),Lz=r=>typeof r=="string"?r:lI(Oz(r)),Dz=(r,e)=>{var t;const n=(t=$i[r])!==null&&t!==void 0?t:r;switch(n){case $i.v2:throw new vi(r);case $i.v1:default:{const{query:i,includeDeleted:o}=e,a=new URLSearchParams(Lz(i));return a.append("api-version",n),o&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},Nz=(r,e,t)=>[Dz(r,e),t],Vz=(r,e,t="json")=>(n,i)=>r[t](...Nz(e,n,i)),zz=r=>Object.keys(r).reduce((e,t)=>{var n;switch(t){case"type":return!((n=r[t])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),Fz=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,n])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:zz(n)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),jz=r=>typeof r=="string"?r:lI(Fz(r)),Uz=(r,e)=>{var t;const n=(t=$i[r])!==null&&t!==void 0?t:r;switch(n){case $i.v2:throw new vi(r);case $i.v1:default:{const{id:i,query:o}=e,a=new URLSearchParams(jz(o||""));return a.append("api-version",n),`/contexts/${i}/relations?${String(a)}`}}},Bz=(r,e,t)=>[Uz(r,e),t],qz=(r,e,t="json")=>(n,i)=>r[t](...Bz(e,n,i));class Wz{get Version(){return $i}constructor(e,t){this._client=e,this._method=t}get(e,...t){return kz(this._client,e,this._method)(...t)}query(e,...t){return Vz(this._client,e,this._method)(...t)}related(e,...t){return qz(this._client,e,this._method)(...t)}}const Gz=(r,e)=>{switch(r){case"v1":{const{id:t}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${t}/?${String(n)}`}default:{const{id:t}=e,n=new URLSearchParams;return n.append("api-version",r),`/bookmarks/${t}/?${String(n)}`}}},Kz=(r,e,t)=>{const n=Gz(r,e),i=Object.assign({},{method:"Delete"},t);return[n,i]},Yz=(r,e,t="fetch")=>(n,i)=>r[t](...Kz(e,n,i)),Qz=(r,e)=>{switch(r){case"v1":{const{id:t}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${t}/?${String(n)}`}default:{const{id:t}=e,n=new URLSearchParams;return n.append("api-version",r),`/bookmarks/${t}/?${String(n)}`}}},Xz=(r,e,t)=>[Qz(r,e),t],Jz=(r,e,t="json")=>(n,i)=>r[t](...Xz(e,n,i)),eF=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks?${String(t)}`}}},tF=(r,e,t)=>{const n=eF(r),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},t);return[n,o]},rF=(r,e,t="json")=>(n,i)=>r[t](...tF(e,n,i)),nF=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks/${e.id}?${String(t)}`}}},iF=(r,e,t)=>{const n=nF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},t);return[n,o]},oF=(r,e,t="json")=>(n,i)=>r[t](...iF(e,n,i)),aF=r=>{switch(r){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",r),`persons/me/bookmarks/?${String(e)}`}}},sF=(r,e)=>[aF(r),e],cF=(r,e,t="json")=>n=>r[t](...sF(e,n)),lF=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/persons/me/bookmarks/favourites?${String(t)}`}}},dF=(r,e,t)=>{const n=lF(r),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},t);return[n,o]},uF=(r,e,t="json")=>(n,i)=>r[t](...dF(e,n,i)),hF=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${t}/?${String(n)}`}}},fF=(r,e,t)=>{const n=hF(r,e),i=Object.assign({},{method:"Delete"},t);return[n,i]},pF=(r,e,t="fetch")=>(n,i)=>r[t](...fF(e,n,i)),mF=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,n=new URLSearchParams;return n.append("api-version",r),`/persons/me/bookmarks/favourites/${t}?${String(n)}`}}},vF=(r,e,t)=>{const n=mF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"head",headers:i},t);return[n,o]},gF=(r,e,t="json")=>(n,i)=>r[t](...vF(e,n,i));class yF{constructor(e,t){this._client=e,this._method=t}get(e,...t){return Jz(this._client,e,this._method)(...t)}getAll(e){return cF(this._client,e,this._method)()}post(e,...t){return rF(this._client,e,this._method)(...t)}patch(e,...t){return oF(this._client,e,this._method)(...t)}delete(e,...t){return Yz(this._client,e,this._method)(...t)}addFavorite(e,...t){return uF(this._client,e,this._method)(...t)}removeFavorite(e,...t){return pF(this._client,e,this._method)(...t)}verifyFavorite(e,...t){return gF(this._client,e,this._method)(...t)}}const _F=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},bF=(r,e,t)=>[_F(r,e),t],wF=(r,e,t="json")=>(n,i)=>r[t](...bF(e,n,i)),xF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},CF=(r,e,t)=>{const n=xF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},t);return[n,o]},EF=(r,e,t="json")=>(n,i)=>r[t](...CF(e,n,i)),kF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},SF=(r,e,t)=>{const n=kF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},t);return[n,o]},IF=(r,e,t="json")=>(n,i)=>r[t](...SF(e,n,i)),AF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},TF=(r,e,t)=>[AF(r,e),t],RF=(r,e,t="json")=>(n,i)=>r[t](...TF(e,n,i)),PF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},MF=(r,e,t)=>{const n=PF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"delete",headers:i},t);return[n,o]},$F=(r,e,t="json")=>(n,i)=>r[t](...MF(e,n,i));var Ft;(function(r){r.v1="1.0",r.v2="2.0"})(Ft||(Ft={}));const HF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},ZF=(r,e,t)=>{const n=HF(r,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"put",body:JSON.stringify(e),headers:i},t);return[n,o]},OF=(r,e,t="json")=>(n,i)=>r[t](...ZF(e,n,i)),LF=(r,e)=>{var t;const n=(t=Ft[r])!==null&&t!==void 0?t:r;switch(n){case Ft.v2:throw new vi(r);case Ft.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},DF=(r,e,t)=>[LF(r,e),t],NF=(r,e,t="json")=>(n,i)=>r[t](...DF(e,n,i));class VF{get Version(){return Ft}constructor(e,t){this._client=e,this._method=t}getAll(e,...t){return RF(this._client,e,this._method)(...t)}getById(e,...t){return wF(this._client,e,this._method)(...t)}setSeenByUser(e,...t){return IF(this._client,e,this._method)(...t)}create(e,...t){return EF(this._client,e,this._method)(...t)}delete(e,...t){return $F(this._client,e,this._method)(...t)}getSettings(e,...t){return NF(this._client,e,this._method)(...t)}updateSettings(e,...t){return OF(this._client,e,this._method)(...t)}}var Oi;(function(r){r.v2="2.0",r.v4="4.0"})(Oi||(Oi={}));const zF=(r,e)=>{var t;const n=(t=Oi[r])!==null&&t!==void 0?t:r;switch(n){case Oi.v4:{const{azureId:i,expand:o}=e,a=new URLSearchParams;return a.append("api-version",n),o&&a.append("$expand",o.join(",")),`/persons/${i}?${String(a)}`}default:throw new vi(r)}},FF=(r,e,t)=>[zF(r,e),t],jF=(r,e,t="json")=>(n,i)=>r[t](...FF(e,n,i)),UF=(r,e)=>{var t;const n=(t=Oi[r])!==null&&t!==void 0?t:r;switch(n){case Oi.v2:{const{search:i}=e,o=new URLSearchParams;return o.append("api-version",n),o.append("$search",i),`/persons?${String(o)}`}default:throw new vi(r)}},BF=(r,e,t)=>[UF(r,e),t],qF=(r,e,t="json")=>(n,i)=>r[t](...BF(e,n,i)),WF=(r,e)=>{var t;const n=(t=Oi[r])!==null&&t!==void 0?t:r;switch(n){case Oi.v2:{const{azureId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/persons/${i}/photo?${String(o)}`}default:throw new vi(r)}},GF=(r,e,t)=>[WF(r,e),t],KF=(r,e,t="blob")=>(n,i)=>r[t](...GF(e,n,i));class YF{get Version(){return Oi}constructor(e){this._client=e}get(e,t,n,i){return jF(this._client,e,t)(n,i)}query(e,t,n,i){return qF(this._client,e,t)(n,i)}photo(e,t,n,i){return KF(this._client,e,t)(n,i)}}var dh=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class QF extends Error{constructor(e,t,n){super(e,n),this.response=t,this.name="ApiProviderError"}}const np=r=>dh(void 0,void 0,void 0,function*(){var e;if(!r.ok){const{headers:t,status:n,statusText:i,type:o,url:a,bodyUsed:s}=r,c=(e=t.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),l=!s&&(yield c?r.json():r.text());throw new QF("failed to execute request, response was not ok",{headers:t,status:n,statusText:i,type:o,url:a,data:l})}});class XF{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return dh(this,void 0,void 0,function*(){const t=yield this._createClientFn("notification");return t.responseHandler.add("validate_api_request",np),new VF(t,e)})}createBookmarksClient(e){return dh(this,void 0,void 0,function*(){const t=yield this._createClientFn("bookmarks");return t.responseHandler.add("validate_api_request",np),new yF(t,e)})}createContextClient(e){return dh(this,void 0,void 0,function*(){const t=yield this._createClientFn("context");return t.responseHandler.add("validate_api_request",np),new Wz(t,e)})}createPeopleClient(){return dh(this,void 0,void 0,function*(){const e=yield this._createClientFn("people");return e.responseHandler.add("validate_api_request",np),new YF(e)})}}var uI=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const JF="services",ej=(r,e)=>t=>uI(void 0,void 0,void 0,function*(){if(r.hasClient(t))return r.createClient(t);if(e)return e.createClient(t);throw Error(`failed to create http client for service ${t}`)}),hI={name:JF,configure:()=>new xz,initialize:({ref:r,config:e,requireInstance:t,hasModule:n})=>uI(void 0,void 0,void 0,function*(){if(!e.createClient){const i=yield t("http"),o=n("serviceDiscovery")?yield t("serviceDiscovery"):r==null?void 0:r.serviceDiscovery;e.createClient=ej(i,o)}if(!e.createClient)throw Error("missing configuration for creating API client");return new XF(e)})},tj=r=>{r.addConfig({module:hI})};class rj extends bD{constructor(){super([SD,tI,Yy,wz,hI,pz]),this.logger=new nS("FrameworkConfigurator")}configureHttp(...e){this.addConfig(ND(...e))}configureHttpClient(...e){this.addConfig(VS(...e))}configureMsal(...e){this.addConfig(XN(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var nj=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const ij=(r,e)=>nj(void 0,void 0,void 0,function*(){const t=yield r.initialize(e),n={modules:t};return window.Fusion=n,t.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n}),fI=y.createContext(null),oj=fI.Provider,pI=y.createContext({}),aj=pI.Provider,sj=()=>y.useContext(pI),cj=r=>sj()[r];var lj=function(r,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const dj=r=>y.lazy(()=>lj(void 0,void 0,void 0,function*(){const e=new rj;yield r(e);const t=yield ij(e);return{default:({children:n})=>w.jsx(oj,{value:t,children:w.jsx(aj,{value:t.modules,children:n})})}})),wn=()=>{let r=y.useContext(fI);return r||console.warn("could not locate fusion in context!"),r??(r=window.Fusion),r||console.error("Could not load framework, might not be initiated?"),r},uj=r=>{const t=wn().modules[r];return t||console.warn(`the requested module [${t}] is not included in the framework instance`),t},hj=r=>{const{configure:e,fallback:t,children:n}=r,i=y.useMemo(()=>dj(e),[e]);return w.jsx(y.Suspense,{fallback:t,children:w.jsx(i,{children:n})})};function ht(){return ht=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},ht.apply(this,arguments)}function zo(r){"@babel/helpers - typeof";return zo=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},zo(r)}function dg(r){return r&&zo(r)==="object"&&r.constructor===Object}function mI(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=t.clone?ht({},r):r;return dg(r)&&dg(e)&&Object.keys(e).forEach(function(i){i!=="__proto__"&&(dg(e[i])&&i in r?n[i]=mI(r[i],e[i],t):n[i]=e[i])}),n}function fj(r,e){if(zo(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function vI(r){var e=fj(r,"string");return zo(e)=="symbol"?e:String(e)}function Cm(r,e,t){return e=vI(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var pj=typeof Symbol=="function"&&Symbol.for;const gI=pj?Symbol.for("mui.nested"):"__THEME_NESTED__";var mj=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function vj(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.disableGlobal,t=e===void 0?!1:e,n=r.productionPrefix,i=n===void 0?"jss":n,o=r.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),c=0,l=function(){return c+=1,c};return function(d,u){var h=u.options.name;if(h&&h.indexOf("Mui")===0&&!u.options.link&&!t){if(mj.indexOf(d.key)!==-1)return"Mui-".concat(d.key);var f="".concat(s).concat(h,"-").concat(d.key);return!u.options.theme[gI]||a!==""?f:"".concat(f,"-").concat(l())}return"".concat(s).concat(i).concat(l())}}var u8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},J1=(typeof window>"u"?"undefined":u8(window))==="object"&&(typeof document>"u"?"undefined":u8(document))==="object"&&document.nodeType===9;function h8(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,vI(n.key),n)}}function yI(r,e,t){return e&&h8(r.prototype,e),t&&h8(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function R5(r,e){return R5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},R5(r,e)}function _I(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,R5(r,e)}function f8(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function bI(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}var gj={}.constructor;function P5(r){if(r==null||typeof r!="object")return r;if(Array.isArray(r))return r.map(P5);if(r.constructor!==gj)return r;var e={};for(var t in r)e[t]=P5(r[t]);return e}function f_(r,e,t){r===void 0&&(r="unnamed");var n=t.jss,i=P5(e),o=n.plugins.onCreateRule(r,i,t);return o||(r[0],null)}var p8=function(e,t){for(var n="",i=0;i<e.length&&e[i]!=="!important";i++)n&&(n+=t),n+=e[i];return n},$c=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!=="!important";n++)t&&(t+=", "),t+=p8(e[n]," ");else t=p8(e,", ");return e[e.length-1]==="!important"&&(t+=" !important"),t};function eu(r){return r&&r.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
75
75
|
`,space:" "}}function Ou(r,e){for(var t="",n=0;n<e;n++)t+=" ";return t+r}function S1(r,e,t){t===void 0&&(t={});var n="";if(!e)return n;var i=t,o=i.indent,a=o===void 0?0:o,s=e.fallbacks;t.format===!1&&(a=-1/0);var c=eu(t),l=c.linebreak,d=c.space;if(r&&a++,s)if(Array.isArray(s))for(var u=0;u<s.length;u++){var h=s[u];for(var f in h){var p=h[f];p!=null&&(n&&(n+=l),n+=Ou(f+":"+d+$c(p)+";",a))}}else for(var m in s){var x=s[m];x!=null&&(n&&(n+=l),n+=Ou(m+":"+d+$c(x)+";",a))}for(var g in e){var v=e[g];v!=null&&g!=="fallbacks"&&(n&&(n+=l),n+=Ou(g+":"+d+$c(v)+";",a))}return!n&&!t.allowEmpty||!r?n:(a--,n&&(n=""+l+n+l),Ou(""+r+d+"{"+n,a)+Ou("}",a))}var yj=/([[\].#*$><+~=|^:(),"'`\s])/g,m8=typeof CSS<"u"&&CSS.escape,p_=function(r){return m8?m8(r):r.replace(yj,"\\$1")},wI=function(){function r(t,n,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=t,this.options=i,this.style=n,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var e=r.prototype;return e.prop=function(n,i,o){if(i===void 0)return this.style[n];var a=o?o.force:!1;if(!a&&this.style[n]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,n,this));var c=s==null||s===!1,l=n in this.style;if(c&&!l&&!a)return this;var d=c&&l;if(d?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var u=this.options.sheet;return u&&u.attached,this},r}(),M5=function(r){_I(e,r);function e(n,i,o){var a;a=r.call(this,n,i,o)||this;var s=o.selector,c=o.scoped,l=o.sheet,d=o.generateId;return s?a.selectorText=s:c!==!1&&(a.id=d(f8(f8(a)),l),a.selectorText="."+p_(a.id)),a}var t=e.prototype;return t.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},t.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=$c(a))}return i},t.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?ht({},i,{allowEmpty:!0}):i;return S1(this.selectorText,this.style,s)},yI(e,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),e}(wI),_j={onCreateRule:function(e,t,n){return e[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new M5(e,t,n)}},ug={indent:1,children:!0},bj=/@([\w-]+)/,wj=function(){function r(t,n,i){this.type="conditional",this.isProcessed=!1,this.key=t;var o=t.match(bj);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new b0(ht({},i,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=r.prototype;return e.getRule=function(n){return this.rules.get(n)},e.indexOf=function(n){return this.rules.indexOf(n)},e.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},e.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.toString=function(n){n===void 0&&(n=ug);var i=eu(n),o=i.linebreak;if(n.indent==null&&(n.indent=ug.indent),n.children==null&&(n.children=ug.children),n.children===!1)return this.query+" {}";var a=this.rules.toString(n);return a?this.query+" {"+o+a+o+"}":""},r}(),xj=/@container|@media|@supports\s+/,Cj={onCreateRule:function(e,t,n){return xj.test(e)?new wj(e,t,n):null}},hg={indent:1,children:!0},Ej=/@keyframes\s+([\w-]+)/,$5=function(){function r(t,n,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=t.match(Ej);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,c=i.generateId;this.id=a===!1?this.name:p_(c(this,s)),this.rules=new b0(ht({},i,{parent:this}));for(var l in n)this.rules.add(l,n[l],ht({},i,{parent:this}));this.rules.process()}var e=r.prototype;return e.toString=function(n){n===void 0&&(n=hg);var i=eu(n),o=i.linebreak;if(n.indent==null&&(n.indent=hg.indent),n.children==null&&(n.children=hg.children),n.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(n);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},r}(),kj=/@keyframes\s+/,Sj=/\$([\w-]+)/g,H5=function(e,t){return typeof e=="string"?e.replace(Sj,function(n,i){return i in t?t[i]:n}):e},v8=function(e,t,n){var i=e[t],o=H5(i,n);o!==i&&(e[t]=o)},Ij={onCreateRule:function(e,t,n){return typeof e=="string"&&kj.test(e)?new $5(e,t,n):null},onProcessStyle:function(e,t,n){return t.type!=="style"||!n||("animation-name"in e&&v8(e,"animation-name",n.keyframes),"animation"in e&&v8(e,"animation",n.keyframes)),e},onChangeValue:function(e,t,n){var i=n.options.sheet;if(!i)return e;switch(t){case"animation":return H5(e,i.keyframes);case"animation-name":return H5(e,i.keyframes);default:return e}}},Aj=function(r){_I(e,r);function e(){return r.apply(this,arguments)||this}var t=e.prototype;return t.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?ht({},i,{allowEmpty:!0}):i;return S1(this.key,this.style,s)},e}(wI),Tj={onCreateRule:function(e,t,n){return n.parent&&n.parent.type==="keyframes"?new Aj(e,t,n):null}},Rj=function(){function r(t,n,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=t,this.style=n,this.options=i}var e=r.prototype;return e.toString=function(n){var i=eu(n),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=S1(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return S1(this.at,this.style,n)},r}(),Pj=/@font-face/,Mj={onCreateRule:function(e,t,n){return Pj.test(e)?new Rj(e,t,n):null}},$j=function(){function r(t,n,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=t,this.style=n,this.options=i}var e=r.prototype;return e.toString=function(n){return S1(this.key,this.style,n)},r}(),Hj={onCreateRule:function(e,t,n){return e==="@viewport"||e==="@-ms-viewport"?new $j(e,t,n):null}},Zj=function(){function r(t,n,i){this.type="simple",this.isProcessed=!1,this.key=t,this.value=n,this.options=i}var e=r.prototype;return e.toString=function(n){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
|
|
76
76
|
`);return i}return this.key+" "+this.value+";"},r}(),Oj={"@charset":!0,"@import":!0,"@namespace":!0},Lj={onCreateRule:function(e,t,n){return e in Oj?new Zj(e,t,n):null}},g8=[_j,Cj,Ij,Tj,Mj,Hj,Lj],Dj={process:!0},y8={force:!0,process:!0},b0=function(){function r(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var e=r.prototype;return e.add=function(n,i,o){var a=this.options,s=a.parent,c=a.sheet,l=a.jss,d=a.Renderer,u=a.generateId,h=a.scoped,f=ht({classes:this.classes,parent:s,sheet:c,jss:l,Renderer:d,generateId:u,scoped:h,name:n,keyframes:this.keyframes,selector:void 0},o),p=n;n in this.raw&&(p=n+"-d"+this.counter++),this.raw[p]=i,p in this.classes&&(f.selector="."+p_(this.classes[p]));var m=f_(p,i,f);if(!m)return null;this.register(m);var x=f.index===void 0?this.index.length:f.index;return this.index.splice(x,0,m),m},e.replace=function(n,i,o){var a=this.get(n),s=this.index.indexOf(a);a&&this.remove(a);var c=o;return s!==-1&&(c=ht({},o,{index:s})),this.add(n,i,c)},e.get=function(n){return this.map[n]},e.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},e.indexOf=function(n){return this.index.indexOf(n)},e.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},e.register=function(n){this.map[n.key]=n,n instanceof M5?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof $5&&this.keyframes&&(this.keyframes[n.name]=n.id)},e.unregister=function(n){delete this.map[n.key],n instanceof M5?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof $5&&delete this.keyframes[n.name]},e.update=function(){var n,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},e.updateOne=function(n,i,o){o===void 0&&(o=Dj);var a=this.options,s=a.jss.plugins,c=a.sheet;if(n.rules instanceof r){n.rules.update(i,o);return}var l=n.style;if(s.onUpdate(i,n,c,o),o.process&&l&&l!==n.style){s.onProcessStyle(n.style,n,c);for(var d in n.style){var u=n.style[d],h=l[d];u!==h&&n.prop(d,u,y8)}for(var f in l){var p=n.style[f],m=l[f];p==null&&p!==m&&n.prop(f,null,y8)}}},e.toString=function(n){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=eu(n),c=s.linebreak,l=0;l<this.index.length;l++){var d=this.index[l],u=d.toString(n);!u&&!a||(i&&(i+=c),i+=u)}return i},r}(),xI=function(){function r(t,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ht({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new b0(this.options);for(var i in t)this.rules.add(i,t[i]);this.rules.process()}var e=r.prototype;return e.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(n,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(n,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},e.replaceRule=function(n,i,o){var a=this.rules.get(n);if(!a)return this.addRule(n,i,o);var s=this.rules.replace(n,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},e.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},e.addRules=function(n,i){var o=[];for(var a in n){var s=this.addRule(a,n[a],i);s&&o.push(s)}return o},e.getRule=function(n){return this.rules.get(n)},e.deleteRule=function(n){var i=typeof n=="object"?n:this.rules.get(n);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},e.indexOf=function(n){return this.rules.indexOf(n)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},e.updateOne=function(n,i,o){return this.rules.updateOne(n,i,o),this},e.toString=function(n){return this.rules.toString(n)},r}(),Nj=function(){function r(){this.plugins={internal:[],external:[]},this.registry={}}var e=r.prototype;return e.onCreateRule=function(n,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](n,i,o);if(s)return s}return null},e.onProcessRule=function(n){if(!n.isProcessed){for(var i=n.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](n,i);n.style&&this.onProcessStyle(n.style,n,i),n.isProcessed=!0}},e.onProcessStyle=function(n,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},e.onProcessSheet=function(n){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](n)},e.onUpdate=function(n,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](n,i,o,a)},e.onChangeValue=function(n,i,o){for(var a=n,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},e.use=function(n,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(n)===-1&&(o.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var c in s)c in a&&a[c].push(s[c]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},r}(),Vj=function(){function r(){this.registry=[]}var e=r.prototype;return e.add=function(n){var i=this.registry,o=n.options.index;if(i.indexOf(n)===-1){if(i.length===0||o>=this.index){i.push(n);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,n);return}}},e.reset=function(){this.registry=[]},e.remove=function(n){var i=this.registry.indexOf(n);this.registry.splice(i,1)},e.toString=function(n){for(var i=n===void 0?{}:n,o=i.attached,a=bI(i,["attached"]),s=eu(a),c=s.linebreak,l="",d=0;d<this.registry.length;d++){var u=this.registry[d];o!=null&&u.attached!==o||(l&&(l+=c),l+=u.toString(a))}return l},yI(r,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),r}(),Wh=new Vj,Z5=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),O5="2f1acc6c3a606b082e5eef5e54414ffb";Z5[O5]==null&&(Z5[O5]=0);var _8=Z5[O5]++,b8=function(e){e===void 0&&(e={});var t=0,n=function(o,a){t+=1;var s="",c="";return a&&(a.options.classNamePrefix&&(c=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),e.minify?""+(c||"c")+_8+s+t:c+o.key+"-"+_8+(s?"-"+s:"")+"-"+t};return n},CI=function(e){var t;return function(){return t||(t=e()),t}},zj=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch{return""}},Fj=function(e,t,n){try{var i=n;if(Array.isArray(n)&&(i=$c(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;e.style.setProperty(t,a,o>-1?"important":"")}}catch{return!1}return!0},jj=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch{}},Uj=function(e,t){return e.selectorText=t,e.selectorText===t},EI=CI(function(){return document.querySelector("head")});function Bj(r,e){for(var t=0;t<r.length;t++){var n=r[t];if(n.attached&&n.options.index>e.index&&n.options.insertionPoint===e.insertionPoint)return n}return null}function qj(r,e){for(var t=r.length-1;t>=0;t--){var n=r[t];if(n.attached&&n.options.insertionPoint===e.insertionPoint)return n}return null}function Wj(r){for(var e=EI(),t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(n.nodeType===8&&n.nodeValue.trim()===r)return n}return null}function Gj(r){var e=Wh.registry;if(e.length>0){var t=Bj(e,r);if(t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element};if(t=qj(e,r),t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element.nextSibling}}var n=r.insertionPoint;if(n&&typeof n=="string"){var i=Wj(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function Kj(r,e){var t=e.insertionPoint,n=Gj(e);if(n!==!1&&n.parent){n.parent.insertBefore(r,n.node);return}if(t&&typeof t.nodeType=="number"){var i=t,o=i.parentNode;o&&o.insertBefore(r,i.nextSibling);return}EI().appendChild(r)}var Yj=CI(function(){var r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}),w8=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch{return!1}return e.cssRules[n]},x8=function(e,t){var n=e.cssRules.length;return t===void 0||t>n?n:t},Qj=function(){var e=document.createElement("style");return e.textContent=`
|
|
77
77
|
`,e},Xj=function(){function r(t){this.getPropertyValue=zj,this.setProperty=Fj,this.removeProperty=jj,this.setSelector=Uj,this.hasInsertedRules=!1,this.cssRules=[],t&&Wh.add(t),this.sheet=t;var n=this.sheet?this.sheet.options:{},i=n.media,o=n.meta,a=n.element;this.element=a||Qj(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=Yj();s&&this.element.setAttribute("nonce",s)}var e=r.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){Kj(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
@@ -430,7 +430,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
430
430
|
* LICENSE.md file in the root directory of this source tree.
|
|
431
431
|
*
|
|
432
432
|
* @license MIT
|
|
433
|
-
*/const jG=y.createContext({isTransitioning:!1}),UG=y.createContext(new Map),BG="startTransition",g9=j3[BG],qG="flushSync",y9=pH[qG];function WG(r){g9?g9(r):r()}function Uu(r){y9?y9(r):r()}class GG{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}}function KG(r){let{fallbackElement:e,router:t,future:n}=r,[i,o]=y.useState(t.state),[a,s]=y.useState(),[c,l]=y.useState({isTransitioning:!1}),[d,u]=y.useState(),[h,f]=y.useState(),[p,m]=y.useState(),x=y.useRef(new Map),{v7_startTransition:g}=n||{},v=y.useCallback(T=>{g?WG(T):T()},[g]),b=y.useCallback((T,O)=>{let{deletedFetchers:W,unstable_flushSync:ie,unstable_viewTransitionOpts:re}=O;W.forEach(F=>x.current.delete(F)),T.fetchers.forEach((F,Z)=>{F.data!==void 0&&x.current.set(Z,F.data)});let ae=t.window==null||typeof t.window.document.startViewTransition!="function";if(!re||ae){ie?Uu(()=>o(T)):v(()=>o(T));return}if(ie){Uu(()=>{h&&(d&&d.resolve(),h.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:re.currentLocation,nextLocation:re.nextLocation})});let F=t.window.document.startViewTransition(()=>{Uu(()=>o(T))});F.finished.finally(()=>{Uu(()=>{u(void 0),f(void 0),s(void 0),l({isTransitioning:!1})})}),Uu(()=>f(F));return}h?(d&&d.resolve(),h.skipTransition(),m({state:T,currentLocation:re.currentLocation,nextLocation:re.nextLocation})):(s(T),l({isTransitioning:!0,flushSync:!1,currentLocation:re.currentLocation,nextLocation:re.nextLocation}))},[t.window,h,d,x,v]);y.useLayoutEffect(()=>t.subscribe(b),[t,b]),y.useEffect(()=>{c.isTransitioning&&!c.flushSync&&u(new GG)},[c]),y.useEffect(()=>{if(d&&a&&t.window){let T=a,O=d.promise,W=t.window.document.startViewTransition(async()=>{v(()=>o(T)),await O});W.finished.finally(()=>{u(void 0),f(void 0),s(void 0),l({isTransitioning:!1})}),f(W)}},[v,a,d,t.window]),y.useEffect(()=>{d&&a&&i.location.key===a.location.key&&d.resolve()},[d,h,i.location,a]),y.useEffect(()=>{!c.isTransitioning&&p&&(s(p.state),l({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),m(void 0))},[c.isTransitioning,p]),y.useEffect(()=>{},[]);let E=y.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:T=>t.navigate(T),push:(T,O,W)=>t.navigate(T,{state:O,preventScrollReset:W==null?void 0:W.preventScrollReset}),replace:(T,O,W)=>t.navigate(T,{replace:!0,state:O,preventScrollReset:W==null?void 0:W.preventScrollReset})}),[t]),I=t.basename||"/",C=y.useMemo(()=>({router:t,navigator:E,static:!1,basename:I}),[t,E,I]);return y.createElement(y.Fragment,null,y.createElement(OA.Provider,{value:C},y.createElement(LA.Provider,{value:i},y.createElement(UG.Provider,{value:x.current},y.createElement(jG.Provider,{value:c},y.createElement(FG,{basename:I,location:i.location,navigationType:i.historyAction,navigator:E,future:{v7_relativeSplatPath:t.future.v7_relativeSplatPath}},i.initialized||t.future.v7_partialHydration?y.createElement(YG,{routes:t.routes,future:t.future,state:i}):e))))),null)}function YG(r){let{routes:e,future:t,state:n}=r;return RG(e,void 0,n,t)}var _9;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(_9||(_9={}));var b9;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(b9||(b9={}));const QG=(r,e,t)=>{y.useEffect(()=>{const n=r.subscribe(e);return n.add(t),()=>n.unsubscribe()},[r,e])},XG=(r,e,t)=>{y.useLayoutEffect(()=>{const n=r.subscribe(e);return n.add(t),()=>n.unsubscribe()},[r,e])};function Gc(r,e){const[t,n]=y.useState(()=>e!=null&&e.initial?"value"in r?r.value:e.initial:void 0),[i,o]=y.useState(null),[a,s]=y.useState(!1);y.useLayoutEffect(()=>{o(null),s(!1),n("value"in r?r.value:void 0)},[n,o,s,r]);const c=y.useMemo(()=>({next:n,error:o,complete:()=>s(!0)}),[n,o,s]);return XG(r,c,e==null?void 0:e.teardown),{value:t,error:i,complete:a}}function w9(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function R(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?w9(Object(t),!0).forEach(function(n){Cm(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):w9(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var vn=function(){return vn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vn.apply(this,arguments)};function R1(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return r.concat(o||Array.prototype.slice.call(e))}var Pt="-ms-",Xh="-moz-",dt="-webkit-",VA="comm",S0="rule",S_="decl",JG="@import",zA="@keyframes",eK="@layer",FA=Math.abs,I_=String.fromCharCode,e3=Object.assign;function tK(r,e){return Hr(r,0)^45?(((e<<2^Hr(r,0))<<2^Hr(r,1))<<2^Hr(r,2))<<2^Hr(r,3):0}function jA(r){return r.trim()}function oa(r,e){return(r=e.exec(r))?r[0]:r}function De(r,e,t){return r.replace(e,t)}function p2(r,e,t){return r.indexOf(e,t)}function Hr(r,e){return r.charCodeAt(e)|0}function Zd(r,e,t){return r.slice(e,t)}function Ro(r){return r.length}function UA(r){return r.length}function gh(r,e){return e.push(r),r}function rK(r,e){return r.map(e).join("")}function x9(r,e){return r.filter(function(t){return!oa(t,e)})}var I0=1,Od=1,BA=0,Li=0,fr=0,iu="";function A0(r,e,t,n,i,o,a,s){return{value:r,root:e,parent:t,type:n,props:i,children:o,line:I0,column:Od,length:a,return:"",siblings:s}}function es(r,e){return e3(A0("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},e)}function xl(r){for(;r.root;)r=es(r.root,{children:[r]});gh(r,r.siblings)}function nK(){return fr}function iK(){return fr=Li>0?Hr(iu,--Li):0,Od--,fr===10&&(Od=1,I0--),fr}function ao(){return fr=Li<BA?Hr(iu,Li++):0,Od++,fr===10&&(Od=1,I0++),fr}function Oc(){return Hr(iu,Li)}function m2(){return Li}function T0(r,e){return Zd(iu,r,e)}function t3(r){switch(r){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 oK(r){return I0=Od=1,BA=Ro(iu=r),Li=0,[]}function aK(r){return iu="",r}function Pg(r){return jA(T0(Li-1,r3(r===91?r+2:r===40?r+1:r)))}function sK(r){for(;(fr=Oc())&&fr<33;)ao();return t3(r)>2||t3(fr)>3?"":" "}function cK(r,e){for(;--e&&ao()&&!(fr<48||fr>102||fr>57&&fr<65||fr>70&&fr<97););return T0(r,m2()+(e<6&&Oc()==32&&ao()==32))}function r3(r){for(;ao();)switch(fr){case r:return Li;case 34:case 39:r!==34&&r!==39&&r3(fr);break;case 40:r===41&&r3(r);break;case 92:ao();break}return Li}function lK(r,e){for(;ao()&&r+fr!==57;)if(r+fr===84&&Oc()===47)break;return"/*"+T0(e,Li-1)+"*"+I_(r===47?r:ao())}function dK(r){for(;!t3(Oc());)ao();return T0(r,Li)}function uK(r){return aK(v2("",null,null,null,[""],r=oK(r),0,[0],r))}function v2(r,e,t,n,i,o,a,s,c){for(var l=0,d=0,u=a,h=0,f=0,p=0,m=1,x=1,g=1,v=0,b="",E=i,I=o,C=n,T=b;x;)switch(p=v,v=ao()){case 40:if(p!=108&&Hr(T,u-1)==58){p2(T+=De(Pg(v),"&","&\f"),"&\f",FA(l?s[l-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Pg(v);break;case 9:case 10:case 13:case 32:T+=sK(p);break;case 92:T+=cK(m2()-1,7);continue;case 47:switch(Oc()){case 42:case 47:gh(hK(lK(ao(),m2()),e,t,c),c);break;default:T+="/"}break;case 123*m:s[l++]=Ro(T)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:g==-1&&(T=De(T,/\f/g,"")),f>0&&Ro(T)-u&&gh(f>32?E9(T+";",n,t,u-1,c):E9(De(T," ","")+";",n,t,u-2,c),c);break;case 59:T+=";";default:if(gh(C=C9(T,e,t,l,d,i,s,b,E=[],I=[],u,o),o),v===123)if(d===0)v2(T,e,C,C,E,o,u,s,I);else switch(h===99&&Hr(T,3)===110?100:h){case 100:case 108:case 109:case 115:v2(r,C,C,n&&gh(C9(r,C,C,0,0,i,s,b,i,E=[],u,I),I),i,I,u,s,n?E:I);break;default:v2(T,C,C,C,[""],I,0,s,I)}}l=d=f=0,m=g=1,b=T="",u=a;break;case 58:u=1+Ro(T),f=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&iK()==125)continue}switch(T+=I_(v),v*m){case 38:g=d>0?1:(T+="\f",-1);break;case 44:s[l++]=(Ro(T)-1)*g,g=1;break;case 64:Oc()===45&&(T+=Pg(ao())),h=Oc(),d=u=Ro(b=T+=dK(m2())),v++;break;case 45:p===45&&Ro(T)==2&&(m=0)}}return o}function C9(r,e,t,n,i,o,a,s,c,l,d,u){for(var h=i-1,f=i===0?o:[""],p=UA(f),m=0,x=0,g=0;m<n;++m)for(var v=0,b=Zd(r,h+1,h=FA(x=a[m])),E=r;v<p;++v)(E=jA(x>0?f[v]+" "+b:De(b,/&\f/g,f[v])))&&(c[g++]=E);return A0(r,e,t,i===0?S0:s,c,l,d,u)}function hK(r,e,t,n){return A0(r,e,t,VA,I_(nK()),Zd(r,2,-2),0,n)}function E9(r,e,t,n,i){return A0(r,e,t,S_,Zd(r,0,n),Zd(r,n+1,-1),n,i)}function qA(r,e,t){switch(tK(r,e)){case 5103:return dt+"print-"+r+r;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 dt+r+r;case 4789:return Xh+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+r+Xh+r+Pt+r+r;case 5936:switch(Hr(r,e+11)){case 114:return dt+r+Pt+De(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return dt+r+Pt+De(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return dt+r+Pt+De(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return dt+r+Pt+r+r;case 6165:return dt+r+Pt+"flex-"+r+r;case 5187:return dt+r+De(r,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Pt+"flex-$1$2")+r;case 5443:return dt+r+Pt+"flex-item-"+De(r,/flex-|-self/g,"")+(oa(r,/flex-|baseline/)?"":Pt+"grid-row-"+De(r,/flex-|-self/g,""))+r;case 4675:return dt+r+Pt+"flex-line-pack"+De(r,/align-content|flex-|-self/g,"")+r;case 5548:return dt+r+Pt+De(r,"shrink","negative")+r;case 5292:return dt+r+Pt+De(r,"basis","preferred-size")+r;case 6060:return dt+"box-"+De(r,"-grow","")+dt+r+Pt+De(r,"grow","positive")+r;case 4554:return dt+De(r,/([^-])(transform)/g,"$1"+dt+"$2")+r;case 6187:return De(De(De(r,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),r,"")+r;case 5495:case 3959:return De(r,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return De(De(r,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+r+r;case 4200:if(!oa(r,/flex-|baseline/))return Pt+"grid-column-align"+Zd(r,e)+r;break;case 2592:case 3360:return Pt+De(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(n,i){return e=i,oa(n.props,/grid-\w+-end/)})?~p2(r+(t=t[e].value),"span",0)?r:Pt+De(r,"-start","")+r+Pt+"grid-row-span:"+(~p2(t,"span",0)?oa(t,/\d+/):+oa(t,/\d+/)-+oa(r,/\d+/))+";":Pt+De(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(n){return oa(n.props,/grid-\w+-start/)})?r:Pt+De(De(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return De(r,/(.+)-inline(.+)/,dt+"$1$2")+r;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(Ro(r)-1-e>6)switch(Hr(r,e+1)){case 109:if(Hr(r,e+4)!==45)break;case 102:return De(r,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Xh+(Hr(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~p2(r,"stretch",0)?qA(De(r,"stretch","fill-available"),e,t)+r:r}break;case 5152:case 5920:return De(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,o,a,s,c,l){return Pt+i+":"+o+l+(a?Pt+i+"-span:"+(s?c:+c-+o)+l:"")+r});case 4949:if(Hr(r,e+6)===121)return De(r,":",":"+dt)+r;break;case 6444:switch(Hr(r,Hr(r,14)===45?18:11)){case 120:return De(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+dt+(Hr(r,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Pt+"$2box$3")+r;case 100:return De(r,":",":"+Pt)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return De(r,"scroll-","scroll-snap-")+r}return r}function Rm(r,e){for(var t="",n=0;n<r.length;n++)t+=e(r[n],n,r,e)||"";return t}function fK(r,e,t,n){switch(r.type){case eK:if(r.children.length)break;case JG:case S_:return r.return=r.return||r.value;case VA:return"";case zA:return r.return=r.value+"{"+Rm(r.children,n)+"}";case S0:if(!Ro(r.value=r.props.join(",")))return""}return Ro(t=Rm(r.children,n))?r.return=r.value+"{"+t+"}":""}function pK(r){var e=UA(r);return function(t,n,i,o){for(var a="",s=0;s<e;s++)a+=r[s](t,n,i,o)||"";return a}}function mK(r){return function(e){e.root||(e=e.return)&&r(e)}}function vK(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case S_:r.return=qA(r.value,r.length,t);return;case zA:return Rm([es(r,{value:De(r.value,"@","@"+dt)})],n);case S0:if(r.length)return rK(t=r.props,function(i){switch(oa(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xl(es(r,{props:[De(i,/:(read-\w+)/,":"+Xh+"$1")]})),xl(es(r,{props:[i]})),e3(r,{props:x9(t,n)});break;case"::placeholder":xl(es(r,{props:[De(i,/:(plac\w+)/,":"+dt+"input-$1")]})),xl(es(r,{props:[De(i,/:(plac\w+)/,":"+Xh+"$1")]})),xl(es(r,{props:[De(i,/:(plac\w+)/,Pt+"input-$1")]})),xl(es(r,{props:[i]})),e3(r,{props:x9(t,n)});break}return""})}}var gK={animationIterationCount: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},ei={},Ld=typeof process<"u"&&ei!==void 0&&(ei.REACT_APP_SC_ATTR||ei.SC_ATTR)||"data-styled",WA="active",GA="data-styled-version",R0="6.1.8",A_=`/*!sc*/
|
|
433
|
+
*/const jG=y.createContext({isTransitioning:!1}),UG=y.createContext(new Map),BG="startTransition",g9=j3[BG],qG="flushSync",y9=pH[qG];function WG(r){g9?g9(r):r()}function Uu(r){y9?y9(r):r()}class GG{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}}function KG(r){let{fallbackElement:e,router:t,future:n}=r,[i,o]=y.useState(t.state),[a,s]=y.useState(),[c,l]=y.useState({isTransitioning:!1}),[d,u]=y.useState(),[h,f]=y.useState(),[p,m]=y.useState(),x=y.useRef(new Map),{v7_startTransition:g}=n||{},v=y.useCallback(T=>{g?WG(T):T()},[g]),b=y.useCallback((T,O)=>{let{deletedFetchers:W,unstable_flushSync:ie,unstable_viewTransitionOpts:re}=O;W.forEach(F=>x.current.delete(F)),T.fetchers.forEach((F,Z)=>{F.data!==void 0&&x.current.set(Z,F.data)});let ae=t.window==null||typeof t.window.document.startViewTransition!="function";if(!re||ae){ie?Uu(()=>o(T)):v(()=>o(T));return}if(ie){Uu(()=>{h&&(d&&d.resolve(),h.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:re.currentLocation,nextLocation:re.nextLocation})});let F=t.window.document.startViewTransition(()=>{Uu(()=>o(T))});F.finished.finally(()=>{Uu(()=>{u(void 0),f(void 0),s(void 0),l({isTransitioning:!1})})}),Uu(()=>f(F));return}h?(d&&d.resolve(),h.skipTransition(),m({state:T,currentLocation:re.currentLocation,nextLocation:re.nextLocation})):(s(T),l({isTransitioning:!0,flushSync:!1,currentLocation:re.currentLocation,nextLocation:re.nextLocation}))},[t.window,h,d,x,v]);y.useLayoutEffect(()=>t.subscribe(b),[t,b]),y.useEffect(()=>{c.isTransitioning&&!c.flushSync&&u(new GG)},[c]),y.useEffect(()=>{if(d&&a&&t.window){let T=a,O=d.promise,W=t.window.document.startViewTransition(async()=>{v(()=>o(T)),await O});W.finished.finally(()=>{u(void 0),f(void 0),s(void 0),l({isTransitioning:!1})}),f(W)}},[v,a,d,t.window]),y.useEffect(()=>{d&&a&&i.location.key===a.location.key&&d.resolve()},[d,h,i.location,a]),y.useEffect(()=>{!c.isTransitioning&&p&&(s(p.state),l({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),m(void 0))},[c.isTransitioning,p]),y.useEffect(()=>{},[]);let E=y.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:T=>t.navigate(T),push:(T,O,W)=>t.navigate(T,{state:O,preventScrollReset:W==null?void 0:W.preventScrollReset}),replace:(T,O,W)=>t.navigate(T,{replace:!0,state:O,preventScrollReset:W==null?void 0:W.preventScrollReset})}),[t]),I=t.basename||"/",C=y.useMemo(()=>({router:t,navigator:E,static:!1,basename:I}),[t,E,I]);return y.createElement(y.Fragment,null,y.createElement(OA.Provider,{value:C},y.createElement(LA.Provider,{value:i},y.createElement(UG.Provider,{value:x.current},y.createElement(jG.Provider,{value:c},y.createElement(FG,{basename:I,location:i.location,navigationType:i.historyAction,navigator:E,future:{v7_relativeSplatPath:t.future.v7_relativeSplatPath}},i.initialized||t.future.v7_partialHydration?y.createElement(YG,{routes:t.routes,future:t.future,state:i}):e))))),null)}function YG(r){let{routes:e,future:t,state:n}=r;return RG(e,void 0,n,t)}var _9;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(_9||(_9={}));var b9;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(b9||(b9={}));const QG=(r,e,t)=>{y.useEffect(()=>{const n=r.subscribe(e);return n.add(t),()=>n.unsubscribe()},[r,e])},XG=(r,e,t)=>{y.useLayoutEffect(()=>{const n=r.subscribe(e);return n.add(t),()=>n.unsubscribe()},[r,e])};function Gc(r,e){const t=y.useCallback(()=>{var u,h;return(h=(u=e==null?void 0:e.initial)!==null&&u!==void 0?u:r.value)!==null&&h!==void 0?h:void 0},[r,e==null?void 0:e.initial]),n=y.useRef(t()),[i,o]=y.useState(n.current),[a,s]=y.useState(null),[c,l]=y.useState(!1);y.useLayoutEffect(()=>{n.current=t()},[t]),y.useLayoutEffect(()=>{s(null),l(!1),o(n.current)},[o,s,l,r,n]);const d=y.useMemo(()=>({next:o,error:s,complete:()=>l(!0)}),[o,s,l]);return XG(r,d,e==null?void 0:e.teardown),{value:i,error:a,complete:c}}function w9(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function R(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?w9(Object(t),!0).forEach(function(n){Cm(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):w9(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var vn=function(){return vn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vn.apply(this,arguments)};function R1(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return r.concat(o||Array.prototype.slice.call(e))}var Pt="-ms-",Xh="-moz-",dt="-webkit-",VA="comm",S0="rule",S_="decl",JG="@import",zA="@keyframes",eK="@layer",FA=Math.abs,I_=String.fromCharCode,e3=Object.assign;function tK(r,e){return Hr(r,0)^45?(((e<<2^Hr(r,0))<<2^Hr(r,1))<<2^Hr(r,2))<<2^Hr(r,3):0}function jA(r){return r.trim()}function oa(r,e){return(r=e.exec(r))?r[0]:r}function De(r,e,t){return r.replace(e,t)}function p2(r,e,t){return r.indexOf(e,t)}function Hr(r,e){return r.charCodeAt(e)|0}function Zd(r,e,t){return r.slice(e,t)}function Ro(r){return r.length}function UA(r){return r.length}function gh(r,e){return e.push(r),r}function rK(r,e){return r.map(e).join("")}function x9(r,e){return r.filter(function(t){return!oa(t,e)})}var I0=1,Od=1,BA=0,Li=0,fr=0,iu="";function A0(r,e,t,n,i,o,a,s){return{value:r,root:e,parent:t,type:n,props:i,children:o,line:I0,column:Od,length:a,return:"",siblings:s}}function es(r,e){return e3(A0("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},e)}function xl(r){for(;r.root;)r=es(r.root,{children:[r]});gh(r,r.siblings)}function nK(){return fr}function iK(){return fr=Li>0?Hr(iu,--Li):0,Od--,fr===10&&(Od=1,I0--),fr}function ao(){return fr=Li<BA?Hr(iu,Li++):0,Od++,fr===10&&(Od=1,I0++),fr}function Oc(){return Hr(iu,Li)}function m2(){return Li}function T0(r,e){return Zd(iu,r,e)}function t3(r){switch(r){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 oK(r){return I0=Od=1,BA=Ro(iu=r),Li=0,[]}function aK(r){return iu="",r}function Pg(r){return jA(T0(Li-1,r3(r===91?r+2:r===40?r+1:r)))}function sK(r){for(;(fr=Oc())&&fr<33;)ao();return t3(r)>2||t3(fr)>3?"":" "}function cK(r,e){for(;--e&&ao()&&!(fr<48||fr>102||fr>57&&fr<65||fr>70&&fr<97););return T0(r,m2()+(e<6&&Oc()==32&&ao()==32))}function r3(r){for(;ao();)switch(fr){case r:return Li;case 34:case 39:r!==34&&r!==39&&r3(fr);break;case 40:r===41&&r3(r);break;case 92:ao();break}return Li}function lK(r,e){for(;ao()&&r+fr!==57;)if(r+fr===84&&Oc()===47)break;return"/*"+T0(e,Li-1)+"*"+I_(r===47?r:ao())}function dK(r){for(;!t3(Oc());)ao();return T0(r,Li)}function uK(r){return aK(v2("",null,null,null,[""],r=oK(r),0,[0],r))}function v2(r,e,t,n,i,o,a,s,c){for(var l=0,d=0,u=a,h=0,f=0,p=0,m=1,x=1,g=1,v=0,b="",E=i,I=o,C=n,T=b;x;)switch(p=v,v=ao()){case 40:if(p!=108&&Hr(T,u-1)==58){p2(T+=De(Pg(v),"&","&\f"),"&\f",FA(l?s[l-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Pg(v);break;case 9:case 10:case 13:case 32:T+=sK(p);break;case 92:T+=cK(m2()-1,7);continue;case 47:switch(Oc()){case 42:case 47:gh(hK(lK(ao(),m2()),e,t,c),c);break;default:T+="/"}break;case 123*m:s[l++]=Ro(T)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:g==-1&&(T=De(T,/\f/g,"")),f>0&&Ro(T)-u&&gh(f>32?E9(T+";",n,t,u-1,c):E9(De(T," ","")+";",n,t,u-2,c),c);break;case 59:T+=";";default:if(gh(C=C9(T,e,t,l,d,i,s,b,E=[],I=[],u,o),o),v===123)if(d===0)v2(T,e,C,C,E,o,u,s,I);else switch(h===99&&Hr(T,3)===110?100:h){case 100:case 108:case 109:case 115:v2(r,C,C,n&&gh(C9(r,C,C,0,0,i,s,b,i,E=[],u,I),I),i,I,u,s,n?E:I);break;default:v2(T,C,C,C,[""],I,0,s,I)}}l=d=f=0,m=g=1,b=T="",u=a;break;case 58:u=1+Ro(T),f=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&iK()==125)continue}switch(T+=I_(v),v*m){case 38:g=d>0?1:(T+="\f",-1);break;case 44:s[l++]=(Ro(T)-1)*g,g=1;break;case 64:Oc()===45&&(T+=Pg(ao())),h=Oc(),d=u=Ro(b=T+=dK(m2())),v++;break;case 45:p===45&&Ro(T)==2&&(m=0)}}return o}function C9(r,e,t,n,i,o,a,s,c,l,d,u){for(var h=i-1,f=i===0?o:[""],p=UA(f),m=0,x=0,g=0;m<n;++m)for(var v=0,b=Zd(r,h+1,h=FA(x=a[m])),E=r;v<p;++v)(E=jA(x>0?f[v]+" "+b:De(b,/&\f/g,f[v])))&&(c[g++]=E);return A0(r,e,t,i===0?S0:s,c,l,d,u)}function hK(r,e,t,n){return A0(r,e,t,VA,I_(nK()),Zd(r,2,-2),0,n)}function E9(r,e,t,n,i){return A0(r,e,t,S_,Zd(r,0,n),Zd(r,n+1,-1),n,i)}function qA(r,e,t){switch(tK(r,e)){case 5103:return dt+"print-"+r+r;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 dt+r+r;case 4789:return Xh+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+r+Xh+r+Pt+r+r;case 5936:switch(Hr(r,e+11)){case 114:return dt+r+Pt+De(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return dt+r+Pt+De(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return dt+r+Pt+De(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return dt+r+Pt+r+r;case 6165:return dt+r+Pt+"flex-"+r+r;case 5187:return dt+r+De(r,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Pt+"flex-$1$2")+r;case 5443:return dt+r+Pt+"flex-item-"+De(r,/flex-|-self/g,"")+(oa(r,/flex-|baseline/)?"":Pt+"grid-row-"+De(r,/flex-|-self/g,""))+r;case 4675:return dt+r+Pt+"flex-line-pack"+De(r,/align-content|flex-|-self/g,"")+r;case 5548:return dt+r+Pt+De(r,"shrink","negative")+r;case 5292:return dt+r+Pt+De(r,"basis","preferred-size")+r;case 6060:return dt+"box-"+De(r,"-grow","")+dt+r+Pt+De(r,"grow","positive")+r;case 4554:return dt+De(r,/([^-])(transform)/g,"$1"+dt+"$2")+r;case 6187:return De(De(De(r,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),r,"")+r;case 5495:case 3959:return De(r,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return De(De(r,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+r+r;case 4200:if(!oa(r,/flex-|baseline/))return Pt+"grid-column-align"+Zd(r,e)+r;break;case 2592:case 3360:return Pt+De(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(n,i){return e=i,oa(n.props,/grid-\w+-end/)})?~p2(r+(t=t[e].value),"span",0)?r:Pt+De(r,"-start","")+r+Pt+"grid-row-span:"+(~p2(t,"span",0)?oa(t,/\d+/):+oa(t,/\d+/)-+oa(r,/\d+/))+";":Pt+De(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(n){return oa(n.props,/grid-\w+-start/)})?r:Pt+De(De(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return De(r,/(.+)-inline(.+)/,dt+"$1$2")+r;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(Ro(r)-1-e>6)switch(Hr(r,e+1)){case 109:if(Hr(r,e+4)!==45)break;case 102:return De(r,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Xh+(Hr(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~p2(r,"stretch",0)?qA(De(r,"stretch","fill-available"),e,t)+r:r}break;case 5152:case 5920:return De(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,o,a,s,c,l){return Pt+i+":"+o+l+(a?Pt+i+"-span:"+(s?c:+c-+o)+l:"")+r});case 4949:if(Hr(r,e+6)===121)return De(r,":",":"+dt)+r;break;case 6444:switch(Hr(r,Hr(r,14)===45?18:11)){case 120:return De(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+dt+(Hr(r,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Pt+"$2box$3")+r;case 100:return De(r,":",":"+Pt)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return De(r,"scroll-","scroll-snap-")+r}return r}function Rm(r,e){for(var t="",n=0;n<r.length;n++)t+=e(r[n],n,r,e)||"";return t}function fK(r,e,t,n){switch(r.type){case eK:if(r.children.length)break;case JG:case S_:return r.return=r.return||r.value;case VA:return"";case zA:return r.return=r.value+"{"+Rm(r.children,n)+"}";case S0:if(!Ro(r.value=r.props.join(",")))return""}return Ro(t=Rm(r.children,n))?r.return=r.value+"{"+t+"}":""}function pK(r){var e=UA(r);return function(t,n,i,o){for(var a="",s=0;s<e;s++)a+=r[s](t,n,i,o)||"";return a}}function mK(r){return function(e){e.root||(e=e.return)&&r(e)}}function vK(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case S_:r.return=qA(r.value,r.length,t);return;case zA:return Rm([es(r,{value:De(r.value,"@","@"+dt)})],n);case S0:if(r.length)return rK(t=r.props,function(i){switch(oa(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xl(es(r,{props:[De(i,/:(read-\w+)/,":"+Xh+"$1")]})),xl(es(r,{props:[i]})),e3(r,{props:x9(t,n)});break;case"::placeholder":xl(es(r,{props:[De(i,/:(plac\w+)/,":"+dt+"input-$1")]})),xl(es(r,{props:[De(i,/:(plac\w+)/,":"+Xh+"$1")]})),xl(es(r,{props:[De(i,/:(plac\w+)/,Pt+"input-$1")]})),xl(es(r,{props:[i]})),e3(r,{props:x9(t,n)});break}return""})}}var gK={animationIterationCount: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},ei={},Ld=typeof process<"u"&&ei!==void 0&&(ei.REACT_APP_SC_ATTR||ei.SC_ATTR)||"data-styled",WA="active",GA="data-styled-version",R0="6.1.8",A_=`/*!sc*/
|
|
434
434
|
`,T_=typeof window<"u"&&"HTMLElement"in window,yK=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ei!==void 0&&ei.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ei.REACT_APP_SC_DISABLE_SPEEDY!==""?ei.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ei.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ei!==void 0&&ei.SC_DISABLE_SPEEDY!==void 0&&ei.SC_DISABLE_SPEEDY!==""&&ei.SC_DISABLE_SPEEDY!=="false"&&ei.SC_DISABLE_SPEEDY),P0=Object.freeze([]),Dd=Object.freeze({});function _K(r,e,t){return t===void 0&&(t=Dd),r.theme!==t.theme&&r.theme||e||t.theme}var KA=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"]),bK=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wK=/(^-|-$)/g;function k9(r){return r.replace(bK,"-").replace(wK,"")}var xK=/(a)(d)/gi,cp=52,S9=function(r){return String.fromCharCode(r+(r>25?39:97))};function n3(r){var e,t="";for(e=Math.abs(r);e>cp;e=e/cp|0)t=S9(e%cp)+t;return(S9(e%cp)+t).replace(xK,"$1-$2")}var Mg,YA=5381,ld=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},QA=function(r){return ld(YA,r)};function XA(r){return n3(QA(r)>>>0)}function CK(r){return r.displayName||r.name||"Component"}function $g(r){return typeof r=="string"&&!0}var JA=typeof Symbol=="function"&&Symbol.for,eT=JA?Symbol.for("react.memo"):60115,EK=JA?Symbol.for("react.forward_ref"):60112,kK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},SK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},IK=((Mg={})[EK]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mg[eT]=tT,Mg);function I9(r){return("type"in(e=r)&&e.type.$$typeof)===eT?tT:"$$typeof"in r?IK[r.$$typeof]:kK;var e}var AK=Object.defineProperty,TK=Object.getOwnPropertyNames,A9=Object.getOwnPropertySymbols,RK=Object.getOwnPropertyDescriptor,PK=Object.getPrototypeOf,T9=Object.prototype;function rT(r,e,t){if(typeof e!="string"){if(T9){var n=PK(e);n&&n!==T9&&rT(r,n,t)}var i=TK(e);A9&&(i=i.concat(A9(e)));for(var o=I9(r),a=I9(e),s=0;s<i.length;++s){var c=i[s];if(!(c in SK||t&&t[c]||a&&c in a||o&&c in o)){var l=RK(e,c);try{AK(r,c,l)}catch{}}}}return r}function Kc(r){return typeof r=="function"}function R_(r){return typeof r=="object"&&"styledComponentId"in r}function Ec(r,e){return r&&e?"".concat(r," ").concat(e):r||e||""}function i3(r,e){if(r.length===0)return"";for(var t=r[0],n=1;n<r.length;n++)t+=e?e+r[n]:r[n];return t}function P1(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function o3(r,e,t){if(t===void 0&&(t=!1),!t&&!P1(r)&&!Array.isArray(r))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)r[n]=o3(r[n],e[n]);else if(P1(e))for(var n in e)r[n]=o3(r[n],e[n]);return r}function P_(r,e){Object.defineProperty(r,"toString",{value:e})}function Yc(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var MK=function(){function r(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return r.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},r.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;e>=o;)if((o<<=1)<0)throw Yc(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),c=(a=0,t.length);a<c;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},r.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},r.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n,a=i;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(A_);return t},r}(),g2=new Map,Pm=new Map,y2=1,lp=function(r){if(g2.has(r))return g2.get(r);for(;Pm.has(y2);)y2++;var e=y2++;return g2.set(r,e),Pm.set(e,r),e},$K=function(r,e){y2=e+1,g2.set(r,e),Pm.set(e,r)},HK="style[".concat(Ld,"][").concat(GA,'="').concat(R0,'"]'),ZK=new RegExp("^".concat(Ld,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),OK=function(r,e,t){for(var n,i=t.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&r.registerName(e,n)},LK=function(r,e){for(var t,n=((t=e.textContent)!==null&&t!==void 0?t:"").split(A_),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var c=s.match(ZK);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&($K(d,l),OK(r,d,c[3]),r.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}};function DK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var nT=function(r){var e=document.head,t=r||e,n=document.createElement("style"),i=function(s){var c=Array.from(s.querySelectorAll("style[".concat(Ld,"]")));return c[c.length-1]}(t),o=i!==void 0?i.nextSibling:null;n.setAttribute(Ld,WA),n.setAttribute(GA,R0);var a=DK();return a&&n.setAttribute("nonce",a),t.insertBefore(n,o),n},NK=function(){function r(e){this.element=nT(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var n=document.styleSheets,i=0,o=n.length;i<o;i++){var a=n[i];if(a.ownerNode===t)return a}throw Yc(17)}(this.element),this.length=0}return r.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},r.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},r}(),VK=function(){function r(e){this.element=nT(e),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},r.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},r}(),zK=function(){function r(e){this.rules=[],this.length=0}return r.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},r.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},r.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},r}(),R9=T_,FK={isServer:!T_,useCSSOMInjection:!yK},iT=function(){function r(e,t,n){e===void 0&&(e=Dd),t===void 0&&(t={});var i=this;this.options=vn(vn({},FK),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&T_&&R9&&(R9=!1,function(o){for(var a=document.querySelectorAll(HK),s=0,c=a.length;s<c;s++){var l=a[s];l&&l.getAttribute(Ld)!==WA&&(LK(o,l),l.parentNode&&l.parentNode.removeChild(l))}}(this)),P_(this,function(){return function(o){for(var a=o.getTag(),s=a.length,c="",l=function(u){var h=function(g){return Pm.get(g)}(u);if(h===void 0)return"continue";var f=o.names.get(h),p=a.getGroup(u);if(f===void 0||p.length===0)return"continue";var m="".concat(Ld,".g").concat(u,'[id="').concat(h,'"]'),x="";f!==void 0&&f.forEach(function(g){g.length>0&&(x+="".concat(g,","))}),c+="".concat(p).concat(m,'{content:"').concat(x,'"}').concat(A_)},d=0;d<s;d++)l(d);return c}(i)})}return r.registerId=function(e){return lp(e)},r.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new r(vn(vn({},this.options),e),this.gs,t&&this.names||void 0)},r.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(e=function(t){var n=t.useCSSOMInjection,i=t.target;return t.isServer?new zK(i):n?new NK(i):new VK(i)}(this.options),new MK(e)));var e},r.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},r.prototype.registerName=function(e,t){if(lp(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},r.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(lp(e),n)},r.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},r.prototype.clearRules=function(e){this.getTag().clearGroup(lp(e)),this.clearNames(e)},r.prototype.clearTag=function(){this.tag=void 0},r}(),jK=/&/g,UK=/^\s*\/\/.*$/gm;function oT(r,e){return r.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(n){return"".concat(e," ").concat(n)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=oT(t.children,e)),t})}function BK(r){var e,t,n,i=r===void 0?Dd:r,o=i.options,a=o===void 0?Dd:o,s=i.plugins,c=s===void 0?P0:s,l=function(h,f,p){return p.startsWith(t)&&p.endsWith(t)&&p.replaceAll(t,"").length>0?".".concat(e):h},d=c.slice();d.push(function(h){h.type===S0&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(jK,t).replace(n,l))}),a.prefix&&d.push(vK),d.push(fK);var u=function(h,f,p,m){f===void 0&&(f=""),p===void 0&&(p=""),m===void 0&&(m="&"),e=m,t=f,n=new RegExp("\\".concat(t,"\\b"),"g");var x=h.replace(UK,""),g=uK(p||f?"".concat(p," ").concat(f," { ").concat(x," }"):x);a.namespace&&(g=oT(g,a.namespace));var v=[];return Rm(g,pK(d.concat(mK(function(b){return v.push(b)})))),v};return u.hash=c.length?c.reduce(function(h,f){return f.name||Yc(15),ld(h,f.name)},YA).toString():"",u}var qK=new iT,a3=BK(),aT=kt.createContext({shouldForwardProp:void 0,styleSheet:qK,stylis:a3});aT.Consumer;kt.createContext(void 0);function P9(){return y.useContext(aT)}var sT=function(){function r(e,t){var n=this;this.inject=function(i,o){o===void 0&&(o=a3);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,P_(this,function(){throw Yc(12,String(n.name))})}return r.prototype.getName=function(e){return e===void 0&&(e=a3),this.name+e.hash},r}(),WK=function(r){return r>="A"&&r<="Z"};function M9(r){for(var e="",t=0;t<r.length;t++){var n=r[t];if(t===1&&n==="-"&&r[0]==="-")return r;WK(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var cT=function(r){return r==null||r===!1||r===""},lT=function(r){var e,t,n=[];for(var i in r){var o=r[i];r.hasOwnProperty(i)&&!cT(o)&&(Array.isArray(o)&&o.isCss||Kc(o)?n.push("".concat(M9(i),":"),o,";"):P1(o)?n.push.apply(n,R1(R1(["".concat(i," {")],lT(o),!1),["}"],!1)):n.push("".concat(M9(i),": ").concat((e=i,(t=o)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in gK||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return n};function Lc(r,e,t,n){if(cT(r))return[];if(R_(r))return[".".concat(r.styledComponentId)];if(Kc(r)){if(!Kc(o=r)||o.prototype&&o.prototype.isReactComponent||!e)return[r];var i=r(e);return Lc(i,e,t,n)}var o;return r instanceof sT?t?(r.inject(t,n),[r.getName(n)]):[r]:P1(r)?lT(r):Array.isArray(r)?Array.prototype.concat.apply(P0,r.map(function(a){return Lc(a,e,t,n)})):[r.toString()]}function GK(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(Kc(t)&&!R_(t))return!1}return!0}var KK=QA(R0),YK=function(){function r(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&GK(e),this.componentId=t,this.baseHash=ld(KK,t),this.baseStyle=n,iT.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Ec(i,this.staticRulesId);else{var o=i3(Lc(this.rules,e,t,n)),a=n3(ld(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}i=Ec(i,a),this.staticRulesId=a}else{for(var c=ld(this.baseHash,n.hash),l="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")l+=u;else if(u){var h=i3(Lc(u,e,t,n));c=ld(c,h+d),l+=h}}if(l){var f=n3(c>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),i=Ec(i,f)}}return i},r}(),Mm=kt.createContext(void 0);Mm.Consumer;function Pa(r){var e=kt.useContext(Mm),t=y.useMemo(function(){return function(n,i){if(!n)throw Yc(14);if(Kc(n)){var o=n(i);return o}if(Array.isArray(n)||typeof n!="object")throw Yc(8);return i?vn(vn({},i),n):n}(r.theme,e)},[r.theme,e]);return r.children?kt.createElement(Mm.Provider,{value:t},r.children):null}var Hg={};function QK(r,e,t){var n=R_(r),i=r,o=!$g(r),a=e.attrs,s=a===void 0?P0:a,c=e.componentId,l=c===void 0?function(E,I){var C=typeof E!="string"?"sc":k9(E);Hg[C]=(Hg[C]||0)+1;var T="".concat(C,"-").concat(XA(R0+C+Hg[C]));return I?"".concat(I,"-").concat(T):T}(e.displayName,e.parentComponentId):c,d=e.displayName,u=d===void 0?function(E){return $g(E)?"styled.".concat(E):"Styled(".concat(CK(E),")")}(r):d,h=e.displayName&&e.componentId?"".concat(k9(e.displayName),"-").concat(e.componentId):e.componentId||l,f=n&&i.attrs?i.attrs.concat(s).filter(Boolean):s,p=e.shouldForwardProp;if(n&&i.shouldForwardProp){var m=i.shouldForwardProp;if(e.shouldForwardProp){var x=e.shouldForwardProp;p=function(E,I){return m(E,I)&&x(E,I)}}else p=m}var g=new YK(t,h,n?i.componentStyle:void 0);function v(E,I){return function(C,T,O){var W=C.attrs,ie=C.componentStyle,re=C.defaultProps,ae=C.foldedComponentIds,F=C.styledComponentId,Z=C.target,D=kt.useContext(Mm),q=P9(),L=C.shouldForwardProp||q.shouldForwardProp,P=_K(T,D,re)||Dd,j=function(nt,vt,On){for(var Us,Ko=vn(vn({},vt),{className:void 0,theme:On}),bu=0;bu<nt.length;bu+=1){var Ar=Kc(Us=nt[bu])?Us(Ko):Us;for(var Ln in Ar)Ko[Ln]=Ln==="className"?Ec(Ko[Ln],Ar[Ln]):Ln==="style"?vn(vn({},Ko[Ln]),Ar[Ln]):Ar[Ln]}return vt.className&&(Ko.className=Ec(Ko.className,vt.className)),Ko}(W,T,P),oe=j.as||Z,ne={};for(var he in j)j[he]===void 0||he[0]==="$"||he==="as"||he==="theme"&&j.theme===P||(he==="forwardedAs"?ne.as=j.forwardedAs:L&&!L(he,oe)||(ne[he]=j[he]));var st=function(nt,vt){var On=P9(),Us=nt.generateAndInjectStyles(vt,On.styleSheet,On.stylis);return Us}(ie,j),_e=Ec(ae,F);return st&&(_e+=" "+st),j.className&&(_e+=" "+j.className),ne[$g(oe)&&!KA.has(oe)?"class":"className"]=_e,ne.ref=O,y.createElement(oe,ne)}(b,E,I)}v.displayName=u;var b=kt.forwardRef(v);return b.attrs=f,b.componentStyle=g,b.displayName=u,b.shouldForwardProp=p,b.foldedComponentIds=n?Ec(i.foldedComponentIds,i.styledComponentId):"",b.styledComponentId=h,b.target=n?i.target:r,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=n?function(I){for(var C=[],T=1;T<arguments.length;T++)C[T-1]=arguments[T];for(var O=0,W=C;O<W.length;O++)o3(I,W[O],!0);return I}({},i.defaultProps,E):E}}),P_(b,function(){return".".concat(b.styledComponentId)}),o&&rT(b,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function $9(r,e){for(var t=[r[0]],n=0,i=e.length;n<i;n+=1)t.push(e[n],r[n+1]);return t}var H9=function(r){return Object.assign(r,{isCss:!0})};function we(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(Kc(r)||P1(r))return H9(Lc($9(P0,R1([r],e,!0))));var n=r;return e.length===0&&n.length===1&&typeof n[0]=="string"?Lc(n):H9(Lc($9(n,e)))}function s3(r,e,t){if(t===void 0&&(t=Dd),!e)throw Yc(1,e);var n=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return r(e,t,we.apply(void 0,R1([i],o,!1)))};return n.attrs=function(i){return s3(r,e,vn(vn({},t),{attrs:Array.prototype.concat(t.attrs,i).filter(Boolean)}))},n.withConfig=function(i){return s3(r,e,vn(vn({},t),i))},n}var dT=function(r){return s3(QK,r)},G=dT;KA.forEach(function(r){G[r]=dT(r)});function XK(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];var n=i3(we.apply(void 0,R1([r],e,!1))),i=XA(n);return new sT(i,n)}var JK={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},eY={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))"}}},tY={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)"},rY={_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)"}},nY={_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:""}},iY={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"}}},oY={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"}},te={clickbounds:JK,colors:eY,elevation:tY,interactions:rY,shape:nY,typography:iY,spacings:oY},Zg=te.typography.navigation.button,M_=te.colors.interactive,aY=M_.disabled__text.rgba,sY=M_.disabled__border.rgba,cY=M_.disabled__fill.rgba,Z9=te.spacings.comfortable.medium,uT=te.shape,hT=uT.button,O9=hT.minHeight,L9=hT.borderRadius,D9=uT._modes.compact.button.minHeight,N9=te.interactions.focused,fT=te.clickbounds,V9=fT.default__base,z9=fT.compact__standard,M0={background:"transparent",height:"var(--eds_button__height, ".concat(O9,")"),typography:R(R({},Zg),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(Zg.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(L9,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(Z9,")"),right:"var(--eds_button__padding_x, ".concat(Z9,")")},clickbound:{height:V9,width:"100%",offset:{top:"".concat((parseInt(V9)-parseInt(O9))/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(L9,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:N9.color,width:N9.width}},disabled:{background:cY,border:{type:"border",width:"1px",color:sY,style:"solid"},typography:R(R({},Zg),{},{color:aY,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(D9,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:z9,width:"100%",offset:{top:"".concat((parseInt(z9)-parseInt(D9))/2+1,"px"),left:"0"}}}}};function Ut(r){return r!=null&&zo(r)==="object"&&r["@@functional/placeholder"]===!0}function kc(r){return function e(t){return arguments.length===0||Ut(t)?e:r.apply(this,arguments)}}function dc(r){return function e(t,n){switch(arguments.length){case 0:return e;case 1:return Ut(t)?e:kc(function(i){return r(t,i)});default:return Ut(t)&&Ut(n)?e:Ut(t)?kc(function(i){return r(i,n)}):Ut(n)?kc(function(i){return r(t,i)}):r(t,n)}}}function pT(r){return function e(t,n,i){switch(arguments.length){case 0:return e;case 1:return Ut(t)?e:dc(function(o,a){return r(t,o,a)});case 2:return Ut(t)&&Ut(n)?e:Ut(t)?dc(function(o,a){return r(o,n,a)}):Ut(n)?dc(function(o,a){return r(t,o,a)}):kc(function(o){return r(t,n,o)});default:return Ut(t)&&Ut(n)&&Ut(i)?e:Ut(t)&&Ut(n)?dc(function(o,a){return r(o,a,i)}):Ut(t)&&Ut(i)?dc(function(o,a){return r(o,n,a)}):Ut(n)&&Ut(i)?dc(function(o,a){return r(t,o,a)}):Ut(t)?kc(function(o){return r(o,n,i)}):Ut(n)?kc(function(o){return r(t,o,i)}):Ut(i)?kc(function(o){return r(t,n,o)}):r(t,n,i)}}}function F9(r){return Object.prototype.toString.call(r)==="[object Object]"}function dp(r,e){return Object.prototype.hasOwnProperty.call(e,r)}var lY=pT(function(e,t,n){var i={},o;t=t||{},n=n||{};for(o in t)dp(o,t)&&(i[o]=dp(o,n)?e(o,t[o],n[o]):t[o]);for(o in n)dp(o,n)&&!dp(o,i)&&(i[o]=n[o]);return i}),dY=lY,uY=pT(function r(e,t,n){return dY(function(i,o,a){return F9(o)&&F9(a)?r(e,o,a):e(i,o,a)},t,n)}),hY=uY,fY=dc(function(e,t){return hY(function(n,i,o){return o},e,t)}),lr=fY,mT=te.colors,pY=mT.text.static_icons__primary_white.rgba,ou=mT.interactive,j9=ou.primary__resting.rgba,mY=ou.primary__hover.rgba,U9=ou.secondary__resting.rgba,B9=ou.secondary__link_hover.rgba,q9=ou.danger__resting.rgba,W9=ou.danger__hover.rgba,vY=te.shape.button.borderRadius,$0=lr(M0,{background:j9,typography:{color:pY},border:{type:"border",style:"solid",width:"1px",color:j9,radius:"var(--eds_button__radius, ".concat(vY,")")},states:{hover:{background:mY}}}),vT=lr($0,{background:U9,border:{color:U9},states:{hover:{background:B9,border:{color:B9}}}}),gT=lr($0,{background:q9,border:{color:q9},states:{hover:{background:W9,border:{color:W9}}}}),Ma=te.colors.interactive,G9=Ma.primary__resting.rgba,K9=Ma.primary__hover.rgba,gY=Ma.primary__hover_alt.rgba,Y9=Ma.secondary__resting.rgba,Q9=Ma.secondary__link_hover.rgba,yY=Ma.secondary__highlight.rgba,X9=Ma.danger__resting.rgba,J9=Ma.danger__hover.rgba,_Y=Ma.danger__highlight.rgba,bY=te.shape.button.borderRadius,$_=lr(M0,{typography:{color:G9},border:{type:"border",style:"solid",width:"1px",color:G9,radius:"var(--eds_button__radius, ".concat(bY,")")},states:{hover:{typography:{color:K9},background:gY,border:{style:"solid",type:"border",width:"1px",color:K9}},disabled:{background:"transparent"}}}),wY=lr($_,{typography:{color:Y9},border:{color:Y9},states:{hover:{background:yY,typography:{color:Q9},border:{color:Q9}}}}),xY=lr($_,{typography:{color:X9},border:{color:X9},states:{hover:{background:_Y,typography:{color:J9},border:{color:J9}}}}),$a=te.colors.interactive,CY=$a.primary__resting.rgba,EY=$a.primary__hover.rgba,kY=$a.primary__hover_alt.rgba,SY=$a.secondary__resting.rgba,IY=$a.secondary__link_hover.rgba,AY=$a.secondary__highlight.rgba,TY=$a.danger__resting.rgba,RY=$a.danger__hover.rgba,PY=$a.danger__highlight.rgba,H_=lr(M0,{typography:{color:CY},states:{hover:{background:kY,typography:{color:EY}},disabled:{background:"transparent",border:{color:"transparent"}}}}),MY=lr(H_,{typography:{color:SY},states:{hover:{background:AY,typography:{color:IY}}}}),$Y=lr(H_,{typography:{color:TY},states:{hover:{background:PY,typography:{color:RY}}}}),Os=te.colors.interactive,HY=Os.primary__resting.rgba,ZY=Os.primary__hover_alt.rgba,OY=Os.secondary__resting.rgba,LY=Os.secondary__link_hover.rgba,DY=Os.secondary__highlight.rgba,NY=Os.danger__resting.rgba,VY=Os.danger__hover.rgba,zY=Os.danger__highlight.rgba,yT=te.clickbounds,e7=yT.default__base,t7=yT.compact__standard,Cl=te.shape,FY=te.interactions.focused.width,Z_=lr(M0,{height:Cl.icon_button.minHeight,width:Cl.icon_button.minWidth,typography:{color:HY},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:e7,offset:{top:"0",left:"".concat((parseInt(e7)-parseInt(Cl.icon_button.minWidth))/2,"px")}},states:{hover:{background:ZY,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(FY),"px")}}},modes:{compact:{height:Cl._modes.compact.icon_button.minHeight,width:Cl._modes.compact.icon_button.minWidth,clickbound:{width:t7,offset:{top:"0",left:"".concat((parseInt(t7)-parseInt(Cl._modes.compact.icon_button.minWidth))/2,"px")}}}}}),jY=lr(Z_,{typography:{color:OY},states:{hover:{background:DY,typography:{color:LY}}}}),UY=lr(Z_,{typography:{color:NY},states:{hover:{background:zY,typography:{color:VY}}}}),_T=te.clickbounds,r7=_T.default__base,n7=_T.compact__standard,Bu=te.shape,O_={height:Bu.icon_button.minHeight,width:Bu.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:r7,offset:{top:"0",left:"".concat((parseInt(r7)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:Bu._modes.compact.icon_button.minHeight,width:Bu._modes.compact.icon_button.minWidth,clickbound:{width:n7,offset:{top:"0",left:"".concat((parseInt(n7)-parseInt(Bu._modes.compact.icon_button.minWidth))/2,"px")}}}}},BY=lr($0,O_),qY=lr(vT,O_),WY=lr(gT,O_),Og={primary:{contained:$0,outlined:$_,ghost:H_,ghost_icon:Z_,contained_icon:BY},secondary:{contained:vT,outlined:wY,ghost:MY,ghost_icon:jY,contained_icon:qY},danger:{contained:gT,outlined:xY,ghost:$Y,ghost_icon:UY,contained_icon:WY}},GY=function(e,t){y.useEffect(function(){var n=function(o){e&&!e.contains(o.target)&&t(o)};return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}},[e,t])},$m=function(e,t){y.useEffect(function(){var n=function(o){var a=o.key;switch(a){case e:t(o);break}};return document.addEventListener("keydown",n,!0),function(){document.removeEventListener("keydown",n,!0)}},[e,t])};function KY(r){if(Array.isArray(r))return r}function YY(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=o.call(t)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function QY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
435
435
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yn(r,e){return KY(r)||YY(r,e)||PI(r,e)||QY()}var bT=function(e,t){var n=y.useState(e),i=Yn(n,2),o=i[0],a=i[1],s=e||o;return y.useEffect(function(){o==null&&a("eds-".concat(t?t+"-":"").concat(Math.round(Math.random()*1e5)))},[o,t]),s},XY=function(e,t){y.useEffect(function(){var n=function(){e.style.height="auto";var o=e.scrollHeight,a=e.clientHeight,s=a;t>s&&(s=Math.min(t,Math.max(o,s)),o>t?e.style.overflow="auto":e.style.overflow="hidden",s>a&&(e.style.height="".concat(s,"px")))};return e&&t&&(n(),e.addEventListener("keyup",n,!0)),function(){e==null||e.removeEventListener("keyup",n,!0)}},[e,t])},JY=function(e){var t=y.useRef();y.useEffect(function(){if(!(typeof document>"u")){var n=document.documentElement,i=document,o=i.body;if(e){var a=window.innerWidth-n.clientWidth,s=parseInt(window.getComputedStyle(o).getPropertyValue("padding-right"))||0,c={overflow:o.style.overflow,paddingRight:o.style.paddingRight};t.current=c,o.style.overflow="hidden",o.style.paddingRight="".concat(s+a,"px")}else t.current&&(o.style.overflow=t.current.overflow,o.style.paddingRight=t.current.paddingRight);var l=t.current;return function(){o.style.overflow=l==null?void 0:l.overflow,o.style.paddingRight=l==null?void 0:l.paddingRight}}},[e])},eQ=typeof window<"u"?y.useLayoutEffect:y.useEffect,wT=function(e){var t=y.useState(null),n=Yn(t,2),i=n[0],o=n[1];return y.useEffect(function(){e&&i===null&&o(!!e.closest("dialog"))},[e]),i};function Bt(r){return r!=null&&zo(r)==="object"&&r["@@functional/placeholder"]===!0}function Sc(r){return function e(t){return arguments.length===0||Bt(t)?e:r.apply(this,arguments)}}function uc(r){return function e(t,n){switch(arguments.length){case 0:return e;case 1:return Bt(t)?e:Sc(function(i){return r(t,i)});default:return Bt(t)&&Bt(n)?e:Bt(t)?Sc(function(i){return r(i,n)}):Bt(n)?Sc(function(i){return r(t,i)}):r(t,n)}}}function xT(r){return function e(t,n,i){switch(arguments.length){case 0:return e;case 1:return Bt(t)?e:uc(function(o,a){return r(t,o,a)});case 2:return Bt(t)&&Bt(n)?e:Bt(t)?uc(function(o,a){return r(o,n,a)}):Bt(n)?uc(function(o,a){return r(t,o,a)}):Sc(function(o){return r(t,n,o)});default:return Bt(t)&&Bt(n)&&Bt(i)?e:Bt(t)&&Bt(n)?uc(function(o,a){return r(o,a,i)}):Bt(t)&&Bt(i)?uc(function(o,a){return r(o,n,a)}):Bt(n)&&Bt(i)?uc(function(o,a){return r(t,o,a)}):Bt(t)?Sc(function(o){return r(o,n,i)}):Bt(n)?Sc(function(o){return r(t,o,i)}):Bt(i)?Sc(function(o){return r(t,n,o)}):r(t,n,i)}}}function i7(r){return Object.prototype.toString.call(r)==="[object Object]"}function up(r,e){return Object.prototype.hasOwnProperty.call(e,r)}var tQ=xT(function(e,t,n){var i={},o;t=t||{},n=n||{};for(o in t)up(o,t)&&(i[o]=up(o,n)?e(o,t[o],n[o]):t[o]);for(o in n)up(o,n)&&!up(o,i)&&(i[o]=n[o]);return i}),rQ=xT(function r(e,t,n){return tQ(function(i,o,a){return i7(o)&&i7(a)?r(e,o,a):e(i,o,a)},t,n)}),nQ=uc(function(e,t){return rQ(function(n,i,o){return o},e,t)}),iQ=nQ,Bo=function(e,t){return y.useCallback(function(){var n=e.density;return n==="compact"?iQ(t,t.modes.compact):t},[e,t])},jo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.forEach(function(o){typeof o=="function"?o(i):o&&zo(o)==="object"&&(o.current=i)})}},oQ=function(e,t){var n=e.value;e.value=t;var i=e._valueTracker;typeof i<"u"&&i.setValue(n),e.dispatchEvent(new Event("change",{bubbles:!0}))},Ll=function(e){if(e){var t=e.width,n=t===void 0?"":t,i=e.style,o=i===void 0?"":i,a=e.color,s=a===void 0?"":a;return n?"".concat(n," ").concat(o," ").concat(s):null}},ci=function(e){var t,n,i,o;if(!e)return we({});switch(e.type){case"border":return we({border:Ll(e),borderRadius:e.radius});case"bordergroup":return we({borderBottom:Ll(e.bottom),borderTop:Ll(e.top),borderLeft:Ll(e.left),borderRight:Ll(e.right),borderBottomLeftRadius:e==null||(t=e.left)===null||t===void 0?void 0:t.radius,borderTopLeftRadius:e==null||(n=e.left)===null||n===void 0?void 0:n.radius,borderBottomRightRadius:e==null||(i=e.right)===null||i===void 0?void 0:i.radius,borderTopRightRadius:e==null||(o=e.right)===null||o===void 0?void 0:o.radius});default:return we({})}},aQ=te.colors.interactive.focus.rgba,tn=function(e){var t=e.color,n=t===void 0?aQ:t,i=e.style,o=i===void 0?"dashed":i,a=e.width,s=a===void 0?"2px":a,c=e.offset,l=c===void 0?"0px":c,d=e.type,u={color:n,style:o,width:s,offset:l,type:d};return we({outline:Ll(u),outlineOffset:u.offset})},Tn=function(e,t){if(!e)return"";var n=`
|
|
436
436
|
margin: 0;
|
|
@@ -449,7 +449,7 @@ font-feature-settings: `.concat(e.fontFeature,";")),t&&(n+=`
|
|
|
449
449
|
cursor: pointer;`),n},fo=function(e){var t=e.left,n=e.right,i=e.top,o=e.bottom;return we({paddingLeft:t,paddingTop:i,paddingRight:n,paddingBottom:o})},L_=function(e){var t=e.fontFamily,n=e.fontSize,i=e.fontWeight,o=e.lineHeight,a=e.letterSpacing,s=e.fontFeature,c=e.textDecoration,l=e.textTransform,d=e.fontStyle;return{fontFeatureSettings:s,fontFamily:t,fontSize:n,fontWeight:i,letterSpacing:a,lineHeight:o,textDecoration:c,textTransform:l,fontStyle:d}},sQ=G.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),cQ=G.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;}"]),lQ=y.forwardRef(function(e,t){var n=e.children,i=y.Children.map(n,function(o){return zo(o)!=="object"?w.jsx(sQ,{children:o}):o});return w.jsx(cQ,{ref:t,children:i})}),dQ={density:"comfortable"},uQ=y.createContext(dQ),po=function(){return y.useContext(uQ)},hQ=["color","variant","children","disabled","href","tabIndex","fullWidth"],Lg=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}},fQ=function(e,t){switch(t){case"danger":return Lg(Og.danger,e);case"secondary":return Lg(Og.secondary,e);case"primary":default:return Lg(Og.primary,e)}},pQ=G.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);}"]),mQ=G.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})(function(r){var e,t,n,i=r.theme,o=i.states,a=i.clickbound,s=o.focus,c=o.hover,l=o.disabled;return we(["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:",";}}}"],i.background,i.height,i.width,fo(i.spacings),ci(i.border),Tn(i.typography),a==null||(e=a.offset)===null||e===void 0?void 0:e.top,a==null||(t=a.offset)===null||t===void 0?void 0:t.left,a==null?void 0:a.width,a==null?void 0:a.height,c.background,(n=c.typography)===null||n===void 0?void 0:n.color,ci(c==null?void 0:c.border),tn(s.outline),tn(s.outline),l.background,ci(l.border),Tn(l.typography),l.background)}),CT=y.forwardRef(function(e,t){var n=e.color,i=n===void 0?"primary":n,o=e.variant,a=o===void 0?"contained":o,s=e.children,c=e.disabled,l=c===void 0?!1:c,d=e.href,u=e.tabIndex,h=u===void 0?0:u,f=e.fullWidth,p=f===void 0?!1:f,m=He(e,hQ),x=po(),g=x.density,v=Bo({density:g},fQ(a,i)),b=d&&!l?"a":m.as?m.as:"button",E=d||m.as?void 0:"button";h=l?-1:h;var I=R({ref:t,as:b,href:d,type:E,disabled:l,tabIndex:h},m);return w.jsx(Pa,{theme:v,children:w.jsx(mQ,R(R({},I),{},{children:p?w.jsx(lQ,{children:s}):w.jsx(pQ,{children:s})}))})}),vQ=te.shape.corners.borderRadius,gQ={border:{type:"border",radius:vQ}},yQ=["children","vertical"],_Q=gQ.border,Ua=_Q.radius,bQ=G.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(r){var e=r.$vertical;return we(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;}"],Ua,Ua,Ua,Ua)}),ET=y.forwardRef(function(e,t){var n=e.children,i=e.vertical,o=He(e,yQ),a=R({ref:t,$vertical:i},o);return w.jsx(bQ,R(R({role:"group"},a),{},{children:n}))}),kT=te.colors,wQ=kT.text.static_icons__primary_white.rgba,xQ=kT.ui.background__overlay.rgba,CQ=te.typography.ui,ST=te.spacings.comfortable,EQ=ST.x_large,qu=ST.small,kQ=te.shape.corners.borderRadius,va={typography:R(R({},CQ.tooltip),{},{color:wQ}),background:xQ,border:{type:"border",radius:kQ},entities:{tooltip:{height:EQ},arrow:{width:"6px",height:qu,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:qu,right:qu,top:qu,bottom:qu}};function Ts(r){return IT(r)?(r.nodeName||"").toLowerCase():"#document"}function Kn(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ha(r){var e;return(e=(IT(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function IT(r){return r instanceof Node||r instanceof Kn(r).Node}function zt(r){return r instanceof Element||r instanceof Kn(r).Element}function hi(r){return r instanceof HTMLElement||r instanceof Kn(r).HTMLElement}function c3(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Kn(r).ShadowRoot}function af(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=fi(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function SQ(r){return["table","td","th"].includes(Ts(r))}function D_(r){const e=N_(),t=fi(r);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(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function IQ(r){let e=Qc(r);for(;hi(e)&&!Nd(e);){if(D_(e))return e;e=Qc(e)}return null}function N_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Nd(r){return["html","body","#document"].includes(Ts(r))}function fi(r){return Kn(r).getComputedStyle(r)}function H0(r){return zt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Qc(r){if(Ts(r)==="html")return r;const e=r.assignedSlot||r.parentNode||c3(r)&&r.host||Ha(r);return c3(e)?e.host:e}function AT(r){const e=Qc(r);return Nd(e)?r.ownerDocument?r.ownerDocument.body:r.body:hi(e)&&af(e)?e:AT(e)}function Cs(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=AT(r),o=i===((n=r.ownerDocument)==null?void 0:n.body),a=Kn(i);return o?e.concat(a,a.visualViewport||[],af(i)?i:[],a.frameElement&&t?Cs(a.frameElement):[]):e.concat(i,Cs(i,[],t))}function l3(r){let e=r.activeElement;for(;((t=e)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;e=e.shadowRoot.activeElement}return e}function Vd(r,e){if(!r||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(r.contains(e))return!0;if(t&&c3(t)){let n=e;for(;n;){if(r===n)return!0;n=n.parentNode||n.host}}return!1}function V_(){const r=navigator.userAgentData;return r!=null&&r.platform?r.platform:navigator.platform}function TT(){const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?r.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function AQ(r){return RQ()?!1:!o7()&&r.width===0&&r.height===0||o7()&&r.width===1&&r.height===1&&r.pressure===0&&r.detail===0&&r.pointerType==="mouse"||r.width<1&&r.height<1&&r.pressure===0&&r.detail===0&&r.pointerType==="touch"}function RT(){return/apple/i.test(navigator.vendor)}function o7(){const r=/android/i;return r.test(V_())||r.test(TT())}function TQ(){return V_().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function RQ(){return TT().includes("jsdom/")}function PT(r,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(r)}function PQ(r){return"nativeEvent"in r}function MQ(r){return r.matches("html,body")}function us(r){return(r==null?void 0:r.ownerDocument)||document}function Dg(r,e){if(e==null)return!1;if("composedPath"in r)return r.composedPath().includes(e);const t=r;return t.target!=null&&e.contains(t.target)}function Dl(r){return"composedPath"in r?r.composedPath()[0]:r.target}const $Q="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function HQ(r){return hi(r)&&r.matches($Q)}const Rs=Math.min,ri=Math.max,Hm=Math.round,hp=Math.floor,Ps=r=>({x:r,y:r}),ZQ={left:"right",right:"left",bottom:"top",top:"bottom"},OQ={start:"end",end:"start"};function d3(r,e,t){return ri(r,Rs(e,t))}function au(r,e){return typeof r=="function"?r(e):r}function Ms(r){return r.split("-")[0]}function su(r){return r.split("-")[1]}function MT(r){return r==="x"?"y":"x"}function z_(r){return r==="y"?"height":"width"}function sf(r){return["top","bottom"].includes(Ms(r))?"y":"x"}function F_(r){return MT(sf(r))}function LQ(r,e,t){t===void 0&&(t=!1);const n=su(r),i=F_(r),o=z_(i);let a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=Zm(a)),[a,Zm(a)]}function DQ(r){const e=Zm(r);return[u3(r),e,u3(e)]}function u3(r){return r.replace(/start|end/g,e=>OQ[e])}function NQ(r,e,t){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?o:a;default:return[]}}function VQ(r,e,t,n){const i=su(r);let o=NQ(Ms(r),t==="start",n);return i&&(o=o.map(a=>a+"-"+i),e&&(o=o.concat(o.map(u3)))),o}function Zm(r){return r.replace(/left|right|bottom|top/g,e=>ZQ[e])}function zQ(r){return{top:0,right:0,bottom:0,left:0,...r}}function $T(r){return typeof r!="number"?zQ(r):{top:r,right:r,bottom:r,left:r}}function Om(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function a7(r,e,t){let{reference:n,floating:i}=r;const o=sf(e),a=F_(e),s=z_(a),c=Ms(e),l=o==="y",d=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let f;switch(c){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-i.width,y:u};break;default:f={x:n.x,y:n.y}}switch(su(e)){case"start":f[a]-=h*(t&&l?-1:1);break;case"end":f[a]+=h*(t&&l?-1:1);break}return f}const FQ=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=t,s=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:r,floating:e,strategy:i}),{x:d,y:u}=a7(l,n,c),h=n,f={},p=0;for(let m=0;m<s.length;m++){const{name:x,fn:g}=s[m],{x:v,y:b,data:E,reset:I}=await g({x:d,y:u,initialPlacement:n,placement:h,strategy:i,middlewareData:f,rects:l,platform:a,elements:{reference:r,floating:e}});if(d=v??d,u=b??u,f={...f,[x]:{...f[x],...E}},I&&p<=50){p++,typeof I=="object"&&(I.placement&&(h=I.placement),I.rects&&(l=I.rects===!0?await a.getElementRects({reference:r,floating:e,strategy:i}):I.rects),{x:d,y:u}=a7(l,h,c)),m=-1;continue}}return{x:d,y:u,placement:h,strategy:i,middlewareData:f}};async function j_(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:c}=r,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:f=0}=au(e,r),p=$T(f),x=s[h?u==="floating"?"reference":"floating":u],g=Om(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(x)))==null||t?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),v=u==="floating"?{...a.floating,x:n,y:i}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),E=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},I=Om(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:c}):v);return{top:(g.top-I.top+p.top)/E.y,bottom:(I.bottom-g.bottom+p.bottom)/E.y,left:(g.left-I.left+p.left)/E.x,right:(I.right-g.right+p.right)/E.x}}const jQ=r=>({name:"arrow",options:r,async fn(e){const{x:t,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:c}=e,{element:l,padding:d=0}=au(r,e)||{};if(l==null)return{};const u=$T(d),h={x:t,y:n},f=F_(i),p=z_(f),m=await a.getDimensions(l),x=f==="y",g=x?"top":"left",v=x?"bottom":"right",b=x?"clientHeight":"clientWidth",E=o.reference[p]+o.reference[f]-h[f]-o.floating[p],I=h[f]-o.reference[f],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let T=C?C[b]:0;(!T||!await(a.isElement==null?void 0:a.isElement(C)))&&(T=s.floating[b]||o.floating[p]);const O=E/2-I/2,W=T/2-m[p]/2-1,ie=Rs(u[g],W),re=Rs(u[v],W),ae=ie,F=T-m[p]-re,Z=T/2-m[p]/2+O,D=d3(ae,Z,F),q=!c.arrow&&su(i)!=null&&Z!=D&&o.reference[p]/2-(Z<ae?ie:re)-m[p]/2<0,L=q?Z<ae?Z-ae:Z-F:0;return{[f]:h[f]+L,data:{[f]:D,centerOffset:Z-D-L,...q&&{alignmentOffset:L}},reset:q}}}),UQ=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...x}=au(r,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const g=Ms(i),v=Ms(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=h||(v||!m?[Zm(s)]:DQ(s));!h&&p!=="none"&&E.push(...VQ(s,m,p,b));const I=[s,...E],C=await j_(e,x),T=[];let O=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&T.push(C[g]),u){const ae=LQ(i,a,b);T.push(C[ae[0]],C[ae[1]])}if(O=[...O,{placement:i,overflows:T}],!T.every(ae=>ae<=0)){var W,ie;const ae=(((W=o.flip)==null?void 0:W.index)||0)+1,F=I[ae];if(F)return{data:{index:ae,overflows:O},reset:{placement:F}};let Z=(ie=O.filter(D=>D.overflows[0]<=0).sort((D,q)=>D.overflows[1]-q.overflows[1])[0])==null?void 0:ie.placement;if(!Z)switch(f){case"bestFit":{var re;const D=(re=O.map(q=>[q.placement,q.overflows.filter(L=>L>0).reduce((L,P)=>L+P,0)]).sort((q,L)=>q[1]-L[1])[0])==null?void 0:re[0];D&&(Z=D);break}case"initialPlacement":Z=s;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};async function BQ(r,e){const{placement:t,platform:n,elements:i}=r,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=Ms(t),s=su(t),c=sf(t)==="y",l=["left","top"].includes(a)?-1:1,d=o&&c?-1:1,u=au(e,r);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),c?{x:f*d,y:h*l}:{x:h*l,y:f*d}}const Z0=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;const{x:i,y:o,placement:a,middlewareData:s}=e,c=await BQ(e,r);return a===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},qQ=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:x=>{let{x:g,y:v}=x;return{x:g,y:v}}},...c}=au(r,e),l={x:t,y:n},d=await j_(e,c),u=sf(Ms(i)),h=MT(u);let f=l[h],p=l[u];if(o){const x=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=f+d[x],b=f-d[g];f=d3(v,f,b)}if(a){const x=u==="y"?"top":"left",g=u==="y"?"bottom":"right",v=p+d[x],b=p-d[g];p=d3(v,p,b)}const m=s.fn({...e,[h]:f,[u]:p});return{...m,data:{x:m.x-t,y:m.y-n}}}}},WQ=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){const{placement:t,rects:n,platform:i,elements:o}=e,{apply:a=()=>{},...s}=au(r,e),c=await j_(e,s),l=Ms(t),d=su(t),u=sf(t)==="y",{width:h,height:f}=n.floating;let p,m;l==="top"||l==="bottom"?(p=l,m=d===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=l,p=d==="end"?"top":"bottom");const x=f-c[p],g=h-c[m],v=!e.middlewareData.shift;let b=x,E=g;if(u){const C=h-c.left-c.right;E=d||v?Rs(g,C):C}else{const C=f-c.top-c.bottom;b=d||v?Rs(x,C):C}if(v&&!d){const C=ri(c.left,0),T=ri(c.right,0),O=ri(c.top,0),W=ri(c.bottom,0);u?E=h-2*(C!==0||T!==0?C+T:ri(c.left,c.right)):b=f-2*(O!==0||W!==0?O+W:ri(c.top,c.bottom))}await a({...e,availableWidth:E,availableHeight:b});const I=await i.getDimensions(o.floating);return h!==I.width||f!==I.height?{reset:{rects:!0}}:{}}}};function HT(r){const e=fi(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=hi(r),o=i?r.offsetWidth:t,a=i?r.offsetHeight:n,s=Hm(t)!==o||Hm(n)!==a;return s&&(t=o,n=a),{width:t,height:n,$:s}}function U_(r){return zt(r)?r:r.contextElement}function wd(r){const e=U_(r);if(!hi(e))return Ps(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:o}=HT(e);let a=(o?Hm(t.width):t.width)/n,s=(o?Hm(t.height):t.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const GQ=Ps(0);function ZT(r){const e=Kn(r);return!N_()||!e.visualViewport?GQ:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function KQ(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Kn(r)?!1:e}function Xc(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=r.getBoundingClientRect(),o=U_(r);let a=Ps(1);e&&(n?zt(n)&&(a=wd(n)):a=wd(r));const s=KQ(o,t,n)?ZT(o):Ps(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const h=Kn(o),f=n&&zt(n)?Kn(n):n;let p=h.frameElement;for(;p&&n&&f!==h;){const m=wd(p),x=p.getBoundingClientRect(),g=fi(p),v=x.left+(p.clientLeft+parseFloat(g.paddingLeft))*m.x,b=x.top+(p.clientTop+parseFloat(g.paddingTop))*m.y;c*=m.x,l*=m.y,d*=m.x,u*=m.y,c+=v,l+=b,p=Kn(p).frameElement}}return Om({width:d,height:u,x:c,y:l})}function YQ(r){let{rect:e,offsetParent:t,strategy:n}=r;const i=hi(t),o=Ha(t);if(t===o)return e;let a={scrollLeft:0,scrollTop:0},s=Ps(1);const c=Ps(0);if((i||!i&&n!=="fixed")&&((Ts(t)!=="body"||af(o))&&(a=H0(t)),hi(t))){const l=Xc(t);s=wd(t),c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}}function QQ(r){return Array.from(r.getClientRects())}function OT(r){return Xc(Ha(r)).left+H0(r).scrollLeft}function XQ(r){const e=Ha(r),t=H0(r),n=r.ownerDocument.body,i=ri(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=ri(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+OT(r);const s=-t.scrollTop;return fi(n).direction==="rtl"&&(a+=ri(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function JQ(r,e){const t=Kn(r),n=Ha(r),i=t.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;const l=N_();(!l||l&&e==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s,y:c}}function eX(r,e){const t=Xc(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,o=hi(r)?wd(r):Ps(1),a=r.clientWidth*o.x,s=r.clientHeight*o.y,c=i*o.x,l=n*o.y;return{width:a,height:s,x:c,y:l}}function s7(r,e,t){let n;if(e==="viewport")n=JQ(r,t);else if(e==="document")n=XQ(Ha(r));else if(zt(e))n=eX(e,t);else{const i=ZT(r);n={...e,x:e.x-i.x,y:e.y-i.y}}return Om(n)}function LT(r,e){const t=Qc(r);return t===e||!zt(t)||Nd(t)?!1:fi(t).position==="fixed"||LT(t,e)}function tX(r,e){const t=e.get(r);if(t)return t;let n=Cs(r,[],!1).filter(s=>zt(s)&&Ts(s)!=="body"),i=null;const o=fi(r).position==="fixed";let a=o?Qc(r):r;for(;zt(a)&&!Nd(a);){const s=fi(a),c=D_(a);!c&&s.position==="fixed"&&(i=null),(o?!c&&!i:!c&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||af(a)&&!c&<(r,a))?n=n.filter(d=>d!==a):i=s,a=Qc(a)}return e.set(r,n),n}function rX(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const a=[...t==="clippingAncestors"?tX(e,this._c):[].concat(t),n],s=a[0],c=a.reduce((l,d)=>{const u=s7(e,d,i);return l.top=ri(u.top,l.top),l.right=Rs(u.right,l.right),l.bottom=Rs(u.bottom,l.bottom),l.left=ri(u.left,l.left),l},s7(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function nX(r){const{width:e,height:t}=HT(r);return{width:e,height:t}}function iX(r,e,t){const n=hi(e),i=Ha(e),o=t==="fixed",a=Xc(r,!0,o,e);let s={scrollLeft:0,scrollTop:0};const c=Ps(0);if(n||!n&&!o)if((Ts(e)!=="body"||af(i))&&(s=H0(e)),n){const l=Xc(e,!0,o,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else i&&(c.x=OT(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function c7(r,e){return!hi(r)||fi(r).position==="fixed"?null:e?e(r):r.offsetParent}function DT(r,e){const t=Kn(r);if(!hi(r))return t;let n=c7(r,e);for(;n&&SQ(n)&&fi(n).position==="static";)n=c7(n,e);return n&&(Ts(n)==="html"||Ts(n)==="body"&&fi(n).position==="static"&&!D_(n))?t:n||IQ(r)||t}const oX=async function(r){let{reference:e,floating:t,strategy:n}=r;const i=this.getOffsetParent||DT,o=this.getDimensions;return{reference:iX(e,await i(t),n),floating:{x:0,y:0,...await o(t)}}};function aX(r){return fi(r).direction==="rtl"}const sX={convertOffsetParentRelativeRectToViewportRelativeRect:YQ,getDocumentElement:Ha,getClippingRect:rX,getOffsetParent:DT,getElementRects:oX,getClientRects:QQ,getDimensions:nX,getScale:wd,isElement:zt,isRTL:aX};function cX(r,e){let t=null,n;const i=Ha(r);function o(){clearTimeout(n),t&&t.disconnect(),t=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),o();const{left:l,top:d,width:u,height:h}=r.getBoundingClientRect();if(s||e(),!u||!h)return;const f=hp(d),p=hp(i.clientWidth-(l+u)),m=hp(i.clientHeight-(d+h)),x=hp(l),v={rootMargin:-f+"px "+-p+"px "+-m+"px "+-x+"px",threshold:ri(0,Rs(1,c))||1};let b=!0;function E(I){const C=I[0].intersectionRatio;if(C!==c){if(!b)return a();C?a(!1,C):n=setTimeout(()=>{a(!1,1e-7)},100)}b=!1}try{t=new IntersectionObserver(E,{...v,root:i.ownerDocument})}catch{t=new IntersectionObserver(E,v)}t.observe(r)}return a(!0),o}function NT(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=U_(r),d=i||o?[...l?Cs(l):[],...Cs(e)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",t,{passive:!0}),o&&g.addEventListener("resize",t)});const u=l&&s?cX(l,t):null;let h=-1,f=null;a&&(f=new ResizeObserver(g=>{let[v]=g;v&&v.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{f&&f.observe(e)})),t()}),l&&!c&&f.observe(l),f.observe(e));let p,m=c?Xc(r):null;c&&x();function x(){const g=Xc(r);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&t(),m=g,p=requestAnimationFrame(x)}return t(),()=>{d.forEach(g=>{i&&g.removeEventListener("scroll",t),o&&g.removeEventListener("resize",t)}),u&&u(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(p)}}const O0=qQ,L0=UQ,lX=WQ,l7=jQ,B_=(r,e,t)=>{const n=new Map,i={platform:sX,...t},o={...i.platform,_c:n};return FQ(r,e,{...i,platform:o})},dX=r=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:r,fn(t){const{element:n,padding:i}=typeof r=="function"?r(t):r;return n&&e(n)?n.current!=null?l7({element:n.current,padding:i}).fn(t):{}:n?l7({element:n,padding:i}).fn(t):{}}}};var _2=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Lm(r,e){if(r===e)return!0;if(typeof r!=typeof e)return!1;if(typeof r=="function"&&r.toString()===e.toString())return!0;let t,n,i;if(r&&e&&typeof r=="object"){if(Array.isArray(r)){if(t=r.length,t!==e.length)return!1;for(n=t;n--!==0;)if(!Lm(r[n],e[n]))return!1;return!0}if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){const o=i[n];if(!(o==="_owner"&&r.$$typeof)&&!Lm(r[o],e[o]))return!1}return!0}return r!==r&&e!==e}function VT(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function d7(r,e){const t=VT(r);return Math.round(e*t)/t}function u7(r){const e=y.useRef(r);return _2(()=>{e.current=r}),e}function uX(r){r===void 0&&(r={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=r,[d,u]=y.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[h,f]=y.useState(n);Lm(h,n)||f(n);const[p,m]=y.useState(null),[x,g]=y.useState(null),v=y.useCallback(L=>{L!==C.current&&(C.current=L,m(L))},[]),b=y.useCallback(L=>{L!==T.current&&(T.current=L,g(L))},[]),E=o||p,I=a||x,C=y.useRef(null),T=y.useRef(null),O=y.useRef(d),W=c!=null,ie=u7(c),re=u7(i),ae=y.useCallback(()=>{if(!C.current||!T.current)return;const L={placement:e,strategy:t,middleware:h};re.current&&(L.platform=re.current),B_(C.current,T.current,L).then(P=>{const j={...P,isPositioned:!0};F.current&&!Lm(O.current,j)&&(O.current=j,nl.flushSync(()=>{u(j)}))})},[h,e,t,re]);_2(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(L=>({...L,isPositioned:!1})))},[l]);const F=y.useRef(!1);_2(()=>(F.current=!0,()=>{F.current=!1}),[]),_2(()=>{if(E&&(C.current=E),I&&(T.current=I),E&&I){if(ie.current)return ie.current(E,I,ae);ae()}},[E,I,ae,ie,W]);const Z=y.useMemo(()=>({reference:C,floating:T,setReference:v,setFloating:b}),[v,b]),D=y.useMemo(()=>({reference:E,floating:I}),[E,I]),q=y.useMemo(()=>{const L={position:t,left:0,top:0};if(!D.floating)return L;const P=d7(D.floating,d.x),j=d7(D.floating,d.y);return s?{...L,transform:"translate("+P+"px, "+j+"px)",...VT(D.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:P,top:j}},[t,s,D.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:ae,refs:Z,elements:D,floatingStyles:q}),[d,ae,Z,D,q])}/*!
|
|
450
450
|
* tabbable 6.2.0
|
|
451
451
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
452
|
-
*/var hX=["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])"],h3=hX.join(","),zT=typeof Element>"u",M1=zT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Dm=!zT&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},Nm=function r(e,t){var n;t===void 0&&(t=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",a=o||t&&e&&r(e.parentNode);return a},fX=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},pX=function(e,t,n){if(Nm(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(h3));return t&&M1.call(e,h3)&&i.unshift(e),i=i.filter(n),i},mX=function r(e,t,n){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!Nm(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),c=s.length?s:a.children,l=r(c,!0,n);n.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{var d=M1.call(a,h3);d&&n.filter(a)&&(t||!e.includes(a))&&i.push(a);var u=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),h=!Nm(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(u&&h){var f=r(u===!0?a.children:u.children,!0,n);n.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else o.unshift.apply(o,a.children)}}return i},FT=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},jT=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||fX(e))&&!FT(e)?0:e.tabIndex},vX=function(e,t){var n=jT(e);return n<0&&t&&!FT(e)?0:n},gX=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},UT=function(e){return e.tagName==="INPUT"},yX=function(e){return UT(e)&&e.type==="hidden"},_X=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},bX=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},wX=function(e){if(!e.name)return!0;var t=e.form||Dm(e),n=function(s){return t.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(a){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",a.message),!1}var o=bX(i,e.form);return!o||o===e},xX=function(e){return UT(e)&&e.type==="radio"},CX=function(e){return xX(e)&&!wX(e)},EX=function(e){var t,n=e&&Dm(e),i=(t=n)===null||t===void 0?void 0:t.host,o=!1;if(n&&n!==e){var a,s,c;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!o&&i;){var l,d,u;n=Dm(i),i=(l=n)===null||l===void 0?void 0:l.host,o=!!((d=i)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(i))}}return o},h7=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return n===0&&i===0},kX=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=M1.call(e,"details>summary:first-of-type"),a=o?e.parentElement:e;if(M1.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var c=e.parentElement,l=Dm(e);if(c&&!c.shadowRoot&&i(c)===!0)return h7(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=s}if(EX(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return h7(e);return!1},SX=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if(i.tagName==="LEGEND")return M1.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},IX=function(e,t){return!(t.disabled||Nm(t)||yX(t)||kX(t,e)||_X(t)||SX(t))},f7=function(e,t){return!(CX(t)||jT(t)<0||!IX(e,t))},AX=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},TX=function r(e){var t=[],n=[];return e.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,c=vX(s,a),l=a?r(i.candidates):s;c===0?a?t.push.apply(t,l):t.push(s):n.push({documentOrder:o,tabIndex:c,item:i,isScope:a,content:l})}),n.sort(gX).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},BT=function(e,t){t=t||{};var n;return t.getShadowRoot?n=mX([e],t.includeContainer,{filter:f7.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:AX}):n=pX(e,t.includeContainer,f7.bind(null,t)),TX(n)};const RX=j3.useInsertionEffect,PX=RX||(r=>r());function Nl(r){const e=y.useRef(()=>{});return PX(()=>{e.current=r}),y.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}var Sa=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Vm(){return Vm=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Vm.apply(this,arguments)}let Ng=!1,MX=0;const p7=()=>"floating-ui-"+MX++;function $X(){const[r,e]=y.useState(()=>Ng?p7():void 0);return Sa(()=>{r==null&&e(p7())},[]),y.useEffect(()=>{Ng||(Ng=!0)},[]),r}const HX=j3.useId,D0=HX||$X;function ZX(){const r=new Map;return{emit(e,t){var n;(n=r.get(e))==null||n.forEach(i=>i(t))},on(e,t){r.set(e,[...r.get(e)||[],t])},off(e,t){var n;r.set(e,((n=r.get(e))==null?void 0:n.filter(i=>i!==t))||[])}}}const OX=y.createContext(null),LX=y.createContext(null),q_=()=>{var r;return((r=y.useContext(OX))==null?void 0:r.id)||null},W_=()=>y.useContext(LX);function cf(r){return"data-floating-ui-"+r}function m7(r){const e=y.useRef(r);return Sa(()=>{e.current=r}),e}const v7=cf("safe-polygon");function Vg(r,e,t){return t&&!PT(t)?0:typeof r=="number"?r:r==null?void 0:r[e]}function DX(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,dataRef:i,events:o,elements:{domReference:a,floating:s},refs:c}=r,{enabled:l=!0,delay:d=0,handleClose:u=null,mouseOnly:h=!1,restMs:f=0,move:p=!0}=e,m=W_(),x=q_(),g=m7(u),v=m7(d),b=y.useRef(),E=y.useRef(),I=y.useRef(),C=y.useRef(),T=y.useRef(!0),O=y.useRef(!1),W=y.useRef(()=>{}),ie=y.useCallback(()=>{var Z;const D=(Z=i.current.openEvent)==null?void 0:Z.type;return(D==null?void 0:D.includes("mouse"))&&D!=="mousedown"},[i]);y.useEffect(()=>{if(!l)return;function Z(D){let{open:q}=D;q||(clearTimeout(E.current),clearTimeout(C.current),T.current=!0)}return o.on("openchange",Z),()=>{o.off("openchange",Z)}},[l,o]),y.useEffect(()=>{if(!l||!g.current||!t)return;function Z(q){ie()&&n(!1,q,"hover")}const D=us(s).documentElement;return D.addEventListener("mouseleave",Z),()=>{D.removeEventListener("mouseleave",Z)}},[s,t,n,l,g,ie]);const re=y.useCallback(function(Z,D,q){D===void 0&&(D=!0),q===void 0&&(q="hover");const L=Vg(v.current,"close",b.current);L&&!I.current?(clearTimeout(E.current),E.current=setTimeout(()=>n(!1,Z,q),L)):D&&(clearTimeout(E.current),n(!1,Z,q))},[v,n]),ae=y.useCallback(()=>{W.current(),I.current=void 0},[]),F=y.useCallback(()=>{if(O.current){const Z=us(c.floating.current).body;Z.style.pointerEvents="",Z.removeAttribute(v7),O.current=!1}},[c]);return y.useEffect(()=>{if(!l)return;function Z(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function D(P){if(clearTimeout(E.current),T.current=!1,h&&!PT(b.current)||f>0&&Vg(v.current,"open")===0)return;const j=Vg(v.current,"open",b.current);j?E.current=setTimeout(()=>{n(!0,P,"hover")},j):n(!0,P,"hover")}function q(P){if(Z())return;W.current();const j=us(s);if(clearTimeout(C.current),g.current){t||clearTimeout(E.current),I.current=g.current({...r,tree:m,x:P.clientX,y:P.clientY,onClose(){F(),ae(),re(P,!0,"safe-polygon")}});const ne=I.current;j.addEventListener("mousemove",ne),W.current=()=>{j.removeEventListener("mousemove",ne)};return}(b.current==="touch"?!Vd(s,P.relatedTarget):!0)&&re(P)}function L(P){Z()||g.current==null||g.current({...r,tree:m,x:P.clientX,y:P.clientY,onClose(){F(),ae(),re(P)}})(P)}if(zt(a)){const P=a;return t&&P.addEventListener("mouseleave",L),s==null||s.addEventListener("mouseleave",L),p&&P.addEventListener("mousemove",D,{once:!0}),P.addEventListener("mouseenter",D),P.addEventListener("mouseleave",q),()=>{t&&P.removeEventListener("mouseleave",L),s==null||s.removeEventListener("mouseleave",L),p&&P.removeEventListener("mousemove",D),P.removeEventListener("mouseenter",D),P.removeEventListener("mouseleave",q)}}},[a,s,l,r,h,f,p,re,ae,F,n,t,m,v,g,i]),Sa(()=>{var Z;if(l&&t&&(Z=g.current)!=null&&Z.__options.blockPointerEvents&&ie()){const q=us(s).body;if(q.setAttribute(v7,""),q.style.pointerEvents="none",O.current=!0,zt(a)&&s){var D;const L=a,P=m==null||(D=m.nodesRef.current.find(j=>j.id===x))==null||(D=D.context)==null?void 0:D.elements.floating;return P&&(P.style.pointerEvents=""),L.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{L.style.pointerEvents="",s.style.pointerEvents=""}}}},[l,t,x,s,a,m,g,ie]),Sa(()=>{t||(b.current=void 0,ae(),F())},[t,ae,F]),y.useEffect(()=>()=>{ae(),clearTimeout(E.current),clearTimeout(C.current),F()},[l,a,ae,F]),y.useMemo(()=>{if(!l)return{};function Z(D){b.current=D.pointerType}return{reference:{onPointerDown:Z,onPointerEnter:Z,onMouseMove(D){t||f===0||(clearTimeout(C.current),C.current=setTimeout(()=>{T.current||n(!0,D.nativeEvent,"hover")},f))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(D){re(D.nativeEvent,!1)}}}},[l,f,t,n,re])}function zg(r,e){let t=r.filter(i=>{var o;return i.parentId===e&&((o=i.context)==null?void 0:o.open)}),n=t;for(;n.length;)n=r.filter(i=>{var o;return(o=n)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),t=t.concat(n);return t}const qT=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function WT(r,e){const t=BT(r,qT());e==="prev"&&t.reverse();const n=t.indexOf(l3(us(r)));return t.slice(n+1)[0]}function NX(){return WT(document.body,"next")}function VX(){return WT(document.body,"prev")}function Fg(r,e){const t=e||r.currentTarget,n=r.relatedTarget;return!n||!Vd(t,n)}function zX(r){BT(r,qT()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function FX(r){r.querySelectorAll("[data-tabindex]").forEach(t=>{const n=t.dataset.tabindex;delete t.dataset.tabindex,n?t.setAttribute("tabindex",n):t.removeAttribute("tabindex")})}const GT={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 jX;function g7(r){r.key==="Tab"&&(r.target,clearTimeout(jX))}const y7=y.forwardRef(function(e,t){const[n,i]=y.useState();Sa(()=>(RT()&&i("button"),document.addEventListener("keydown",g7),()=>{document.removeEventListener("keydown",g7)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[cf("focus-guard")]:"",style:GT};return y.createElement("span",Vm({},e,o))}),KT=y.createContext(null);function UX(r){let{id:e,root:t}=r===void 0?{}:r;const[n,i]=y.useState(null),o=D0(),a=BX(),s=y.useMemo(()=>({id:e,root:t,portalContext:a,uniqueId:o}),[e,t,a,o]),c=y.useRef();return Sa(()=>()=>{n==null||n.remove()},[n,s]),Sa(()=>{if(c.current===s)return;c.current=s;const{id:l,root:d,portalContext:u,uniqueId:h}=s,f=l?document.getElementById(l):null,p=cf("portal");if(f){const m=document.createElement("div");m.id=h,m.setAttribute(p,""),f.appendChild(m),i(m)}else{let m=d||(u==null?void 0:u.portalNode);m&&!zt(m)&&(m=m.current),m=m||document.body;let x=null;l&&(x=document.createElement("div"),x.id=l,m.appendChild(x));const g=document.createElement("div");g.id=h,g.setAttribute(p,""),m=x||m,m.appendChild(g),i(g)}},[s]),n}function YT(r){let{children:e,id:t,root:n=null,preserveTabOrder:i=!0}=r;const o=UX({id:t,root:n}),[a,s]=y.useState(null),c=y.useRef(null),l=y.useRef(null),d=y.useRef(null),u=y.useRef(null),h=!!a&&!a.modal&&a.open&&i&&!!(n||o);return y.useEffect(()=>{if(!o||!i||a!=null&&a.modal)return;function f(p){o&&Fg(p)&&(p.type==="focusin"?FX:zX)(o)}return o.addEventListener("focusin",f,!0),o.addEventListener("focusout",f,!0),()=>{o.removeEventListener("focusin",f,!0),o.removeEventListener("focusout",f,!0)}},[o,i,a==null?void 0:a.modal]),y.createElement(KT.Provider,{value:y.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:u,portalNode:o,setFocusManagerState:s}),[i,o])},h&&o&&y.createElement(y7,{"data-type":"outside",ref:c,onFocus:f=>{if(Fg(f,o)){var p;(p=d.current)==null||p.focus()}else{const m=VX()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus()}}}),h&&o&&y.createElement("span",{"aria-owns":o.id,style:GT}),o&&nl.createPortal(e,o),h&&o&&y.createElement(y7,{"data-type":"outside",ref:l,onFocus:f=>{if(Fg(f,o)){var p;(p=u.current)==null||p.focus()}else{const m=NX()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,f.nativeEvent))}}}))}const BX=()=>y.useContext(KT),jg=new Set,qX=y.forwardRef(function(e,t){let{lockScroll:n=!1,...i}=e;const o=D0();return Sa(()=>{if(!n)return;jg.add(o);const a=/iP(hone|ad|od)|iOS/.test(V_()),s=document.body.style,l=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=s.left?parseFloat(s.left):window.pageXOffset,h=s.top?parseFloat(s.top):window.pageYOffset;if(s.overflow="hidden",d&&(s[l]=d+"px"),a){var f,p;const m=((f=window.visualViewport)==null?void 0:f.offsetLeft)||0,x=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(s,{position:"fixed",top:-(h-Math.floor(x))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{jg.delete(o),jg.size===0&&(Object.assign(s,{overflow:"",[l]:""}),a&&(Object.assign(s,{position:"",top:"",left:"",right:""}),window.scrollTo(u,h)))}},[o,n]),y.createElement("div",Vm({ref:t},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))}),WX={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},GX={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},_7=r=>{var e,t;return{escapeKey:typeof r=="boolean"?r:(e=r==null?void 0:r.escapeKey)!=null?e:!1,outsidePress:typeof r=="boolean"?r:(t=r==null?void 0:r.outsidePress)!=null?t:!0}};function QT(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,nodeId:i,elements:{reference:o,domReference:a,floating:s},dataRef:c}=r,{enabled:l=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:h="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:x,capture:g}=e,v=W_(),b=Nl(typeof u=="function"?u:()=>!1),E=typeof u=="function"?b:u,I=y.useRef(!1),C=y.useRef(!1),{escapeKey:T,outsidePress:O}=_7(x),{escapeKey:W,outsidePress:ie}=_7(g),re=Nl(D=>{if(!t||!l||!d||D.key!=="Escape")return;const q=v?zg(v.nodesRef.current,i):[];if(!T&&(D.stopPropagation(),q.length>0)){let L=!0;if(q.forEach(P=>{var j;if((j=P.context)!=null&&j.open&&!P.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}n(!1,PQ(D)?D.nativeEvent:D,"escape-key")}),ae=Nl(D=>{var q;const L=()=>{var P;re(D),(P=Dl(D))==null||P.removeEventListener("keydown",L)};(q=Dl(D))==null||q.addEventListener("keydown",L)}),F=Nl(D=>{const q=I.current;I.current=!1;const L=C.current;if(C.current=!1,h==="click"&&L||q||typeof E=="function"&&!E(D))return;const P=Dl(D),j="["+cf("inert")+"]",oe=us(s).querySelectorAll(j);let ne=zt(P)?P:null;for(;ne&&!Nd(ne);){const _e=Qc(ne);if(Nd(_e)||!zt(_e))break;ne=_e}if(oe.length&&zt(P)&&!MQ(P)&&!Vd(P,s)&&Array.from(oe).every(_e=>!Vd(ne,_e)))return;if(hi(P)&&s){const _e=P.clientWidth>0&&P.scrollWidth>P.clientWidth,nt=P.clientHeight>0&&P.scrollHeight>P.clientHeight;let vt=nt&&D.offsetX>P.clientWidth;if(nt&&fi(P).direction==="rtl"&&(vt=D.offsetX<=P.offsetWidth-P.clientWidth),vt||_e&&D.offsetY>P.clientHeight)return}const he=v&&zg(v.nodesRef.current,i).some(_e=>{var nt;return Dg(D,(nt=_e.context)==null?void 0:nt.elements.floating)});if(Dg(D,s)||Dg(D,a)||he)return;const st=v?zg(v.nodesRef.current,i):[];if(st.length>0){let _e=!0;if(st.forEach(nt=>{var vt;if((vt=nt.context)!=null&&vt.open&&!nt.context.dataRef.current.__outsidePressBubbles){_e=!1;return}}),!_e)return}n(!1,D,"outside-press")}),Z=Nl(D=>{var q;const L=()=>{var P;F(D),(P=Dl(D))==null||P.removeEventListener(h,L)};(q=Dl(D))==null||q.addEventListener(h,L)});return y.useEffect(()=>{if(!t||!l)return;c.current.__escapeKeyBubbles=T,c.current.__outsidePressBubbles=O;function D(P){n(!1,P,"ancestor-scroll")}const q=us(s);d&&q.addEventListener("keydown",W?ae:re,W),E&&q.addEventListener(h,ie?Z:F,ie);let L=[];return m&&(zt(a)&&(L=Cs(a)),zt(s)&&(L=L.concat(Cs(s))),!zt(o)&&o&&o.contextElement&&(L=L.concat(Cs(o.contextElement)))),L=L.filter(P=>{var j;return P!==((j=q.defaultView)==null?void 0:j.visualViewport)}),L.forEach(P=>{P.addEventListener("scroll",D,{passive:!0})}),()=>{d&&q.removeEventListener("keydown",W?ae:re,W),E&&q.removeEventListener(h,ie?Z:F,ie),L.forEach(P=>{P.removeEventListener("scroll",D)})}},[c,s,a,o,d,E,h,t,n,m,l,T,O,re,W,ae,F,ie,Z]),y.useEffect(()=>{I.current=!1},[E,h]),y.useMemo(()=>l?{reference:{onKeyDown:re,[WX[p]]:D=>{f&&n(!1,D.nativeEvent,"reference-press")}},floating:{onKeyDown:re,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[GX[h]]:()=>{I.current=!0}}}:{},[l,f,h,p,n,re])}function XT(r){var e;r===void 0&&(r={});const{open:t=!1,onOpenChange:n,nodeId:i}=r,[o,a]=y.useState(null),s=((e=r.elements)==null?void 0:e.reference)||o,c=uX(r),l=W_(),d=q_()!=null,u=Nl((I,C,T)=>{I&&(f.current.openEvent=C),p.emit("openchange",{open:I,event:C,reason:T,nested:d}),n==null||n(I,C,T)}),h=y.useRef(null),f=y.useRef({}),p=y.useState(()=>ZX())[0],m=D0(),x=y.useCallback(I=>{const C=zt(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),contextElement:I}:I;c.refs.setReference(C)},[c.refs]),g=y.useCallback(I=>{(zt(I)||I===null)&&(h.current=I,a(I)),(zt(c.refs.reference.current)||c.refs.reference.current===null||I!==null&&!zt(I))&&c.refs.setReference(I)},[c.refs]),v=y.useMemo(()=>({...c.refs,setReference:g,setPositionReference:x,domReference:h}),[c.refs,g,x]),b=y.useMemo(()=>({...c.elements,domReference:s}),[c.elements,s]),E=y.useMemo(()=>({...c,refs:v,elements:b,dataRef:f,nodeId:i,floatingId:m,events:p,open:t,onOpenChange:u}),[c,i,m,p,t,u,v,b]);return Sa(()=>{const I=l==null?void 0:l.nodesRef.current.find(C=>C.id===i);I&&(I.context=E)}),y.useMemo(()=>({...c,context:E,refs:v,elements:b}),[c,v,b,E])}function KX(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,events:i,refs:o,elements:{floating:a,domReference:s}}=r,{enabled:c=!0,visibleOnly:l=!0}=e,d=y.useRef(!1),u=y.useRef(),h=y.useRef(!0);return y.useEffect(()=>{if(!c)return;const f=Kn(s);function p(){!t&&hi(s)&&s===l3(us(s))&&(d.current=!0)}function m(){h.current=!0}return f.addEventListener("blur",p),f.addEventListener("keydown",m,!0),()=>{f.removeEventListener("blur",p),f.removeEventListener("keydown",m,!0)}},[s,t,c]),y.useEffect(()=>{if(!c)return;function f(p){let{reason:m}=p;(m==="reference-press"||m==="escape-key")&&(d.current=!0)}return i.on("openchange",f),()=>{i.off("openchange",f)}},[i,c]),y.useEffect(()=>()=>{clearTimeout(u.current)},[]),y.useMemo(()=>c?{reference:{onPointerDown(f){AQ(f.nativeEvent)||(h.current=!1)},onMouseLeave(){d.current=!1},onFocus(f){if(d.current)return;const p=Dl(f.nativeEvent);if(l&&zt(p))try{if(RT()&&TQ())throw Error();if(!p.matches(":focus-visible"))return}catch{if(!h.current&&!HQ(p))return}n(!0,f.nativeEvent,"focus")},onBlur(f){d.current=!1;const p=f.relatedTarget,m=zt(p)&&p.hasAttribute(cf("focus-guard"))&&p.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{const x=l3(s?s.ownerDocument:document);!p&&x===s||Vd(o.floating.current,p)||Vd(s,p)||m||n(!1,f.nativeEvent,"focus")})}}}:{},[c,l,s,o,n])}const b7="active",w7="selected";function Ug(r,e,t){const n=new Map,i=t==="item";let o=r;if(i&&r){const{[b7]:a,[w7]:s,...c}=r;o=c}return{...t==="floating"&&{tabIndex:-1},...o,...e.map(a=>{const s=a?a[t]:null;return typeof s=="function"?r?s(r):null:s}).concat(r).reduce((a,s)=>(s&&Object.entries(s).forEach(c=>{let[l,d]=c;if(!(i&&[b7,w7].includes(l)))if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof d=="function"){var u;(u=n.get(l))==null||u.push(d),a[l]=function(){for(var h,f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return(h=n.get(l))==null?void 0:h.map(x=>x(...p)).find(x=>x!==void 0)}}}else a[l]=d}),a),{})}}function JT(r){r===void 0&&(r=[]);const e=r,t=y.useCallback(o=>Ug(o,r,"reference"),e),n=y.useCallback(o=>Ug(o,r,"floating"),e),i=y.useCallback(o=>Ug(o,r,"item"),r.map(o=>o==null?void 0:o.item));return y.useMemo(()=>({getReferenceProps:t,getFloatingProps:n,getItemProps:i}),[t,n,i])}const YX=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function QX(r,e){var t;e===void 0&&(e={});const{open:n,floatingId:i}=r,{enabled:o=!0,role:a="dialog"}=e,s=(t=YX.get(a))!=null?t:a,c=D0(),d=q_()!=null;return y.useMemo(()=>{if(!o)return{};const u={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?{reference:{["aria-"+(a==="label"?"labelledby":"describedby")]:n?i:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":n?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:c},...s==="menu"&&d&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...s==="menu"&&{"aria-labelledby":c}},item(h){let{active:f,selected:p}=h;const m={role:"option",...f&&{id:i+"-option"}};switch(a){case"select":return{...m,"aria-selected":f&&p};case"combobox":return{...m,...f&&{"aria-selected":!0}}}return{}}}},[o,a,s,n,i,c,d])}var XX=["title","placement","children","style","enterDelay"],JX=G.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;}"],Tn(va.typography),fo(va.spacings),ci(va.border),va.background),eJ=G.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],va.entities.arrow.width,va.entities.arrow.height),tJ=G.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],va.entities.arrow.width,va.entities.arrow.height,va.background),rJ=y.forwardRef(function(e,t){var n=e.title,i=e.placement,o=i===void 0?"bottom":i,a=e.children,s=e.style,c=e.enterDelay,l=c===void 0?100:c,d=He(e,XX),u=y.useRef(null),h=y.useState(!1),f=Yn(h,2),p=f[0],m=f[1],x=n!=="",g=XT({placement:o,open:p,onOpenChange:m,middleware:[Z0(14),L0(),O0({padding:8}),dX({element:u})],whileElementsMounted:NT}),v=g.x,b=g.y,E=g.refs,I=g.strategy,C=g.context,T=g.middlewareData.arrow,O=T===void 0?{}:T,W=O.x,ie=O.y,re=g.placement,ae=y.useMemo(function(){return jo(E.setReference,a==null?void 0:a.ref)},[E.setReference,a==null?void 0:a.ref]),F=y.useMemo(function(){return jo(E.setFloating,t)},[E.setFloating,t]),Z=JT([DX(C,{delay:{open:l}}),KX(C),QX(C,{role:"tooltip"}),QT(C)]),D=Z.getReferenceProps,q=Z.getFloatingProps;y.useEffect(function(){var oe={top:"bottom",right:"left",bottom:"top",left:"right"}[re.split("-")[0]],ne="none";switch(oe){case"right":ne="rotateY(180deg)";break;case"left":ne="none";break;case"top":ne="rotate(90deg)";break;case"bottom":ne="rotate(-90deg)";break}if(u.current){var he;Object.assign(u.current.style,(he={left:W!=null?"".concat(W,"px"):"",top:ie!=null?"".concat(ie,"px"):"",right:"",bottom:""},Cm(he,oe,"-6px"),Cm(he,"transform",ne),he))}});var L=y.cloneElement(a,R({},D(R({ref:ae},a.props)))),P=wT(E.domReference.current),j=w.jsxs(JX,R(R(R({},d),q({ref:F,style:R(R({},s),{},{position:I,top:b||0,left:v||0})})),{},{children:[n,w.jsx(eJ,{ref:u,children:w.jsx(tJ,{className:"arrowSvg",children:w.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 w.jsxs(w.Fragment,{children:[P?w.jsx(w.Fragment,{children:x&&p&&j}):w.jsx(YT,{id:"eds-tooltip-container",children:x&&p&&j}),L]})}),nJ=["children","multiple","selectedIndexes","onChange"],iJ=y.forwardRef(function(e,t){var n=e.children,i=e.multiple,o=e.selectedIndexes,a=e.onChange,s=He(e,nJ),c=y.useState(o||[]),l=Yn(c,2),d=l[0],u=l[1];y.useEffect(function(){Array.isArray(o)&&u(o)},[o]);function h(p,m,x){var g=p;if(y.isValidElement(p)&&p.type===CT){var v={"aria-pressed":m?!0:void 0,variant:m?"contained":"outlined",onClick:function(E){var I,C;(I=g.props)===null||I===void 0||(C=I.onClick)===null||C===void 0||C.call(I,E);var T=[x];i&&(T=d.includes(x)?d.filter(function(O){return O!==x}):[].concat(v_(d),[x])),u(T),a&&a(T)}};return y.cloneElement(p,v)}}var f=y.Children.map(n,function(p,m){var x=d.includes(m),g=p;if(y.isValidElement(p)&&p.type===rJ){var v=y.Children.map(g.props.children,function(b){return h(b,x,m)});return y.cloneElement(g,null,v[0])}else return h(g,x,m)});return w.jsx(ET,R(R({ref:t},s),{},{children:f}))}),gr=CT;gr.Group=ET;gr.Toggle=iJ;gr.Group.displayName="Button.Group";gr.Toggle.displayName="Button.Toggle";function oJ(r){if(r==null)throw new TypeError("Cannot destructure "+r)}var f3={},x7=0,aJ=function(e){f3=R(R({},f3),e)},sJ=function(e){return x7+=1,{icon:f3[e],count:x7}},cJ=["size","color","name","rotation","title","data"],lJ=G.svg.attrs(function(r){var e=r.$height,t=r.$width,n=r.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:"".concat(e,"px"),width:"".concat(t,"px"),fill:n}}).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],function(r){var e=r.$rotation;return e?"rotate(".concat(e,"deg)"):"none"}),C7=G.path.attrs(function(r){var e=r.$height,t=r.$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"})([""]),dJ=function(e){return{icon:e,count:Math.floor(Math.random()*1e3)}},uJ=function(e,t,n){var i=t?dJ(t):sJ(e),o=i.icon,a=i.count;if(n<24){var s;o=((s=o.sizes)===null||s===void 0?void 0:s.small)||o}return{icon:o,count:a}},hJ=y.forwardRef(function(e,t){var n=e.size,i=e.color,o=i===void 0?"currentColor":i,a=e.name,s=e.rotation,c=e.title,l=e.data,d=He(e,cJ),u=uJ(a,l,n),h=u.icon,f=u.count;if(typeof h>"u")throw Error('Icon "'.concat(a,'" not found. Have you added it using Icon.add() or using data props?'));var p=n||parseInt(h.width),m=n||parseInt(h.height),x={$height:p,$width:m,fill:o,viewBox:"0 0 ".concat(m," ").concat(p),$rotation:s,name:a,"aria-hidden":!0},g={$height:h.height?parseInt(h.height):n,$size:n||parseInt(h.height)},v="";return c&&(v="".concat(h.prefix,"-").concat(h.name,"-").concat(f),x=R(R({},x),{},{title:c,role:"img","aria-hidden":void 0,"aria-labelledby":v})),w.jsxs(lJ,R(R(R({},x),d),{},{ref:t,children:[c&&w.jsx("title",{id:v,children:c}),Array.isArray(h.svgPathData)?h.svgPathData.map(function(b){return w.jsx(C7,R(R({},g),{},{d:b}),b)}):w.jsx(C7,R(R({"data-testid":"eds-icon-path"},g),{},{d:h.svgPathData}))]}))}),Et=hJ;Et.add=aJ;var fJ={name:"close",prefix:"eds",height:"24",width:"24",svgPathData:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z",sizes:{small:{name:"close_small",prefix:"eds",height:"18",width:"18",svgPathData:"M14 5.007 12.993 4 9 7.993 5.007 4 4 5.007 7.993 9 4 12.993 5.007 14 9 10.007 12.993 14 14 12.993 10.007 9 14 5.007Z"}}},pJ={name:"search",prefix:"eds",height:"24",width:"24",svgPathData:"M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27Zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5Z",sizes:{small:{name:"search_small",prefix:"eds",height:"18",width:"18",svgPathData:"M11.224 10.691h.592l3.743 3.75-1.118 1.118-3.75-3.743v-.592l-.202-.21a4.853 4.853 0 0 1-3.173 1.177 4.875 4.875 0 1 1 4.875-4.875 4.853 4.853 0 0 1-1.177 3.173l.21.202ZM3.94 7.316a3.37 3.37 0 0 0 3.375 3.375 3.37 3.37 0 0 0 3.375-3.375 3.37 3.37 0 0 0-3.375-3.375 3.37 3.37 0 0 0-3.375 3.375Z"}}},mJ={name:"checkbox",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0 1 0-1.41-1.41L10 14.17l-2.88-2.88a.996.996 0 1 0-1.41 1.41l3.59 3.59Z",sizes:{small:{name:"checkbox_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.75 2h10.5c.825 0 1.75.925 1.75 1.75v10.5c0 .825-.925 1.75-1.75 1.75H3.75c-.825 0-1.662-.925-1.662-1.75V3.75c0-.825.837-1.75 1.662-1.75Zm3.225 10.217a.747.747 0 0 0 1.057 0l5.685-5.692a.747.747 0 1 0-1.057-1.058l-5.16 5.16-2.16-2.16a.747.747 0 1 0-1.058 1.058l2.693 2.692Z"}}},vJ={name:"checkbox_outline",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm1 16h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1Z",sizes:{small:{name:"checkbox_outline_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75v10.5c0 .825-1.175 1.75-2 1.75H3.5c-.825 0-1.5-.925-1.5-1.75V3.75C2 2.925 2.675 2 3.5 2Zm1.214 12h8.572a.716.716 0 0 0 .714-.714V4.714A.716.716 0 0 0 13.286 4H4.714A.716.716 0 0 0 4 4.714v8.572c0 .393.321.714.714.714Z"}}},gJ={name:"checkbox_indeterminate",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm3 10h8c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1Z",sizes:{small:{name:"checkbox_indeterminate_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75V14c0 .825-1.175 2-2 2H4c-.825 0-2-1.175-2-2V3.75C2 2.925 2.675 2 3.5 2Zm2.3 8h6.4c.44 0 .8-.45.8-1s-.36-1-.8-1H5.8c-.44 0-.8.45-.8 1s.36 1 .8 1Z"}}},N0=y.createContext({variant:"minWidth",scrollable:!1,handleChange:function(){return null},activeTab:0,tabsId:"",tabsFocused:!1}),yJ=N0.Provider;N0.Consumer;var G_=te.colors,_J=G_.text.static_icons__tertiary.rgba,bJ=G_.ui.background__medium.rgba,V0=G_.interactive,E7=V0.focus.rgba,wJ=V0.primary__hover_alt.rgba,k7=V0.primary__resting.rgba,xJ=V0.primary__hover.rgba,S7=te.clickbounds.default__base,fp=te.spacings.comfortable.medium,Bg=te.interactions.focused.width,eR=te.typography.navigation,CJ=eR.menu_tabs,EJ=eR.menu_title,kJ={entities:{panel:{spacings:{top:fp,bottom:fp},states:{focus:{outline:{type:"outline",width:Bg,style:"dashed",color:E7}}},typography:R({},EJ)},tab:{background:"transparent",height:S7,clickbound:{height:S7,offset:{top:"2px"}},spacings:{left:fp,right:fp},typography:R({color:_J,textAlign:"center"},CJ),border:{type:"bordergroup",bottom:{color:bJ,style:"solid",width:"2px"}},states:{disabled:{border:{type:"border",width:0,color:"transparent",style:"solid"}},hover:{background:wJ},focus:{outline:{type:"outline",width:Bg,offset:"-".concat(parseInt(Bg),"px"),style:"dashed",color:E7}},active:{typography:{color:k7},border:{type:"bordergroup",bottom:{color:k7,style:"solid",width:"2px"}},states:{hover:{typography:{color:xJ}}}}}}},modes:{compact:{}}},SJ=["activeTab","onChange","onBlur","onFocus","variant","scrollable","id"],IJ=y.forwardRef(function(e,t){var n=e.activeTab,i=n===void 0?0:n,o=e.onChange,a=o===void 0?function(){return null}:o,s=e.onBlur,c=e.onFocus,l=e.variant,d=l===void 0?"minWidth":l,u=e.scrollable,h=u===void 0?!1:u,f=e.id,p=He(e,SJ),m=bT(f,"tabs"),x=y.useRef(null),g=y.useMemo(function(){return jo(x,t)},[x,t]),v=y.useState(!1),b=Yn(v,2),E=b[0],I=b[1],C=y.useState(!1),T=Yn(C,2),O=T[0],W=T[1],ie,re=function(P){W(!1),x.current&&x.current.removeEventListener("keyup",F),ie=setTimeout(function(){E&&I(!1)},0),s&&s(P)},ae=function(P){P.target.getAttribute("role")==="tab"&&(clearTimeout(ie),!E&&(O||x.current&&(W(!0),x.current.addEventListener("keyup",F,{once:!0,capture:!0})),c&&c(P)))},F=function(P){W(!1),P.key==="Tab"&&I(!0)};y.useEffect(function(){var L=x.current;return function(){L&&L.removeEventListener("keyup",F)}},[]);var Z=po(),D=Z.density,q=Bo({density:D},kJ);return w.jsx(Pa,{theme:q,children:w.jsx(yJ,{value:{activeTab:i,handleChange:a,tabsId:m,variant:d,scrollable:h,tabsFocused:E},children:w.jsx("div",R(R({ref:g},p),{},{onBlur:re,onFocus:ae}))})})}),AJ=["children"],TJ={fullWidth:"minmax(1%, 360px)",minWidth:"max-content"},RJ=G.div.attrs(function(){return{role:"tablist"}}).withConfig({displayName:"TabList__StyledTabList",componentId:"sc-1g1p5i1-0"})(["display:grid;grid-auto-flow:column;grid-auto-columns:",";overflow-x:",";scroll-snap-type:x mandatory;overscroll-behavior-x:contain;@media (prefers-reduced-motion:no-preference){scroll-behavior:smooth;}@media (hover:none){overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:0;& ::-webkit-scrollbar{width:0;height:0;}}"],function(r){var e=r.$variant;return TJ[e]},function(r){var e=r.$scrollable;return e?"auto":"hidden"}),PJ=y.forwardRef(function(e,t){var n=e.children,i=n===void 0?[]:n,o=He(e,AJ),a=y.useContext(N0),s=a.activeTab,c=a.handleChange,l=a.tabsId,d=a.variant,u=d===void 0?"minWidth":d,h=a.scrollable,f=h===void 0?!1:h,p=a.tabsFocused,m=y.useRef(),x=y.useState(!1),g=Yn(x,2),v=g[0],b=g[1],E=y.useCallback(function(re){(re!==null&&p||re!==null&&v)&&(b(!1),re.focus())},[v,p]),I=y.Children.map(i,function(re,ae){var F=re.props,Z=F.value,D=Z?Z===s:ae===s,q=D?jo(re.ref,E):re.ref;return D&&(m.current=ae),y.cloneElement(re,{id:"".concat(l,"-tab-").concat(ae+1),"aria-controls":"".concat(l,"-panel-").concat(ae+1),active:D,$index:ae,onClick:function(){return c(ae)},ref:q})}),C=I.filter(function(re){var ae=re.props;return!ae.disabled}).map(function(re){var ae=re.props;return ae.$index}),T=C[0],O=C[C.length-1],W=function(ae,F){var Z=ae==="left"?1:-1,D=C[C.indexOf(m.current)-Z];b(!0),c(D===void 0?F:D)},ie=function(ae){var F=ae.key;F==="ArrowLeft"&&(ae.preventDefault(),W("left",O)),F==="ArrowRight"&&(ae.preventDefault(),W("right",T))};return w.jsx(RJ,R(R({onKeyDown:ie,ref:t},o),{},{$variant:u,$scrollable:f,children:I}))}),MJ=["active","value"],$J=G.button.attrs(function(r){var e=r.$active,t=e===void 0?!1:e,n=r.disabled,i=n===void 0?!1:n,o=r.$value;return{type:"button",role:"tab","aria-selected":t,"aria-disabled":i,tabIndex:o||t?0:-1}}).withConfig({displayName:"Tab__StyledTab",componentId:"sc-scjkct-0"})(function(r){var e=r.theme,t=r.$active,n=r.disabled,i=e.entities.tab;return we(["appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;border:none;outline:none;height:",";"," "," color:",";background-color:",";position:relative;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;overflow-x:hidden;scroll-snap-align:end;scroll-snap-stop:always;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:",";","}}"," ",""],i.height,fo(i.spacings),Tn(i.typography),t?i.states.active.typography.color:i.typography.color,i.background,tn(i.states.focus.outline),tn(i.states.focus.outline),t?i.states.active.states.hover.typography.color:i.typography.color,n?we(["background:",";cursor:not-allowed;"],i.states.disabled.background):we(["background:",";cursor:pointer;"],i.states.hover.background),ci(n?i.states.disabled.border:i.border),t&&ci(i.states.active.border))}),HJ=y.forwardRef(function(e,t){var n=e.active,i=e.value,o=He(e,MJ);return w.jsx($J,R({ref:t,$active:n,$value:i},o))}),ZJ=["children","conditionalRender"],OJ=y.forwardRef(function(e,t){var n=e.children,i=e.conditionalRender,o=He(e,ZJ),a=y.useContext(N0),s=a.activeTab,c=a.tabsId,l=y.Children.map(n,function(d,u){return i&&s!==u?null:y.cloneElement(d,{id:"".concat(c,"-panel-").concat(u+1),"aria-labelledby":"".concat(c,"-tab-").concat(u+1),hidden:s!==u})});return w.jsx("div",R(R({ref:t},o),{},{children:l}))}),LJ=G.div.attrs(function(){return{tabIndex:0,role:"tabpanel"}}).withConfig({displayName:"TabPanel__StyledTabPanel",componentId:"sc-e8v1d4-0"})(function(r){var e=r.theme,t=e.entities.panel;return we([""," "," &:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],fo(t.spacings),Tn(t.typography),tn(t.states.focus.outline),tn(t.states.focus.outline))}),DJ=y.forwardRef(function(e,t){var n=ht({},(oJ(e),e));return w.jsx(LJ,R(R({ref:t},n),{},{children:n.children}))}),En=IJ;En.Tab=HJ;En.Panels=OJ;En.Panel=DJ;En.List=PJ;En.Tab.displayName="Tabs.Tab";En.Panels.displayName="Tabs.Panels";En.Panel.displayName="Tabs.Panel";En.List.displayName="Tabs.List";var NJ=te.elevation,VJ=te.colors.ui.background__default.rgba,zJ={background:VJ},FJ=["elevation"],jJ=G.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],zJ.background,function(r){var e=r.$elevation;return e}),z0=y.forwardRef(function(e,t){var n,i=e.elevation,o=i===void 0?"none":i,a=He(e,FJ),s=R(R({},a),{},{$elevation:(n=NJ[o])!==null&&n!==void 0?n:"none"});return w.jsx(jJ,R(R({},s),{},{ref:t}))}),K_=te.typography,UJ=te.colors,BJ=te.interactions.focused.width,qJ=K_.heading,WJ=K_.paragraph,ol=UJ.interactive,GJ=ol.primary__resting.rgba,KJ=ol.secondary__resting.rgba,YJ=ol.danger__resting.rgba,QJ=ol.warning__resting.rgba,XJ=ol.success__resting.rgba,JJ=ol.disabled__text.rgba,eee=ol.focus.rgba,I7={primary:GJ,secondary:KJ,danger:YJ,warning:QJ,success:XJ,disabled:JJ},A7=R(R({},qJ),WJ),T7={states:{focus:{outline:{width:BJ,color:eee,style:"dashed",type:"outline",offset:"2px"}}}},tee=["variant","children","bold","italic","link","lines","color","group","token","as"],ree=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"}},nee=function(e,t){return!t&&A7[e]?A7[e]:K_[t][e]},iee=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof I7[e]>"u"?e:I7[e]},oee=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(t?"_bold":"").concat(n?"_italic":"").concat(i?"_link":"")},aee=G.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(r){var e=r.$typography,t=r.$link;return Tn(e,t)},function(r){var e=r.$color;return we({color:iee(e)})},function(r){var e=r.$lines;return e&&we(["display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;"],e)},function(r){var e=r.$link;return e&&we(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],tn(T7.states.focus.outline),tn(T7.states.focus.outline))}),Di=y.forwardRef(function(e,t){var n=e.variant,i=n===void 0?"body_short":n,o=e.children,a=e.bold,s=e.italic,c=e.link,l=e.lines,d=e.color,u=e.group,h=e.token,f=e.as,p=He(e,tee),m=f||ree(i,c),x=oee(i,a,s,c),g=nee(x,u);if(typeof g>"u")throw new Error('Typography variant not found for variant "'.concat(x,'" ("').concat(i,'") & group "').concat(u||"",'"'));return w.jsx(aee,R(R({as:m,$typography:R(R({},g),h),$link:c,$lines:l,ref:t,$color:d},p),{},{children:o}))}),R7=te.colors,pp=te.spacings.comfortable,see=te.typography.navigation,cee={height:"64px",background:R7.ui.background__default.rgba,typography:see.menu_title,spacings:{left:pp.large,right:pp.large,top:pp.small,bottom:pp.small},border:{type:"bordergroup",bottom:{style:"solid",color:R7.ui.background__light.rgba,width:"2px"}},modes:{compact:{}}},lee=["children","elevation","sticky"],dee=G(z0).withConfig({displayName:"TopBar__StyledTopBar",componentId:"sc-1yj236q-0"})(function(r){var e=r.theme,t=r.$sticky;return we(["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,ci(e.border),fo(e.spacings),Tn(e.typography),t&&we(["position:sticky;top:0;z-index:1100;"]))}),uee=y.forwardRef(function(e,t){var n=e.children,i=e.elevation,o=i===void 0?"none":i,a=e.sticky,s=a===void 0?!0:a,c=He(e,lee),l=po(),d=l.density,u=Bo({density:d},cee),h=R(R({},c),{},{ref:t});return w.jsx(Pa,{theme:u,children:w.jsx(dee,R(R({forwardedAs:"header",elevation:o,$sticky:s},h),{},{children:n}))})}),hee=["children"],fee=G.div.withConfig({displayName:"Actions__StyledActions",componentId:"sc-1251ang-0"})(["grid-area:right;text-align:right;align-items:center;display:flex;"]),pee=y.forwardRef(function(e,t){var n=e.children,i=He(e,hee);return w.jsx(fee,R(R({ref:t},i),{},{children:n}))}),mee=["children"],vee=G.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;"]),gee=y.forwardRef(function(e,t){var n=e.children,i=He(e,mee);return w.jsx(vee,R(R({ref:t},i),{},{children:n}))}),yee=["children"],_ee=G.div.withConfig({displayName:"CustomContent__StyledCustomContent",componentId:"sc-d0e83a-0"})(["grid-area:center;"]),bee=y.forwardRef(function(e,t){var n=e.children,i=He(e,yee);return w.jsx(_ee,R(R({ref:t},i),{},{children:n}))}),Ho=uee;Ho.Actions=pee;Ho.Header=gee;Ho.CustomContent=bee;Ho.Actions.displayName="Topbar.Actions";Ho.Header.displayName="Topbar.Header";Ho.CustomContent.displayName="Topbar.CustomContent";var Wu=te.spacings.comfortable.medium,tR=te.typography,P7=tR.ui.accordion_header,wee=tR.paragraph.body_long,rR=te.colors.ui,xee=rR.background__default.rgba,Cee=rR.background__scrim.rgba,Eee=te.shape.corners.borderRadius,kee={width:"252px",background:xee,typography:P7,border:{type:"border",radius:Eee},spacings:{bottom:Wu},entities:{children:{spacings:{top:Wu,bottom:Wu,left:Wu,right:Wu}},title:{minHeight:"24px",typography:P7},content:{minHeight:"80px",height:"104px",typography:wee},actions:{minHeight:"48px"},scrim:{background:Cee}},modes:{compact:{}}},See=["children","open","onClose","isDismissable","dialogRef"],Iee=G(z0).attrs({"aria-labelledby":"eds-dialog-title","aria-describedby":"eds-dialog-customcontent",elevation:"above_scrim"}).withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-1mewo3f-0"})(function(r){var e=r.theme;return we(["width:",";background:",";display:grid;grid-auto-columns:auto;",";",";grid-gap:",";"],e.width,e.background,Tn(e.typography),ci(e.border),e.spacings.bottom)}),Aee=G.dialog.withConfig({displayName:"Dialog__StyledNativeDialog",componentId:"sc-1mewo3f-1"})(function(r){var e=r.theme;return we(["padding:0;border:0;overflow:visible;overscroll-behavior:contain;",";&::backdrop{background-color:",";}"],ci(e.border),e.entities.scrim.background)}),Tee=y.forwardRef(function(e,t){var n=e.children,i=e.open,o=e.onClose,a=e.isDismissable,s=a===void 0?!1:a,c=e.dialogRef,l=He(e,See),d=po(),u=d.density,h=y.useRef(null),f=Bo({density:u},kee),p=y.useMemo(function(){return jo(h,c)},[h,c]);y.useEffect(function(){if(i){var x;h==null||(x=h.current)===null||x===void 0||x.showModal()}else{var g;h==null||(g=h.current)===null||g===void 0||g.close()}},[i]),JY(i);var m=function(g){var v=g.target;v instanceof HTMLElement&&s&&v.nodeName==="DIALOG"&&o&&o()};return $m("Escape",function(x){x.preventDefault(),s&&o&&i&&o&&o()}),w.jsx(Pa,{theme:f,children:w.jsx(Aee,{ref:p,onMouseDown:m,children:i&&w.jsx(Iee,R(R({},l),{},{ref:t,children:n}))})})}),Ree=["children"],Pee=G.div.withConfig({displayName:"DialogActions__StyledDialogActions",componentId:"sc-16ydtxd-0"})(function(r){var e=r.theme,t=r.children;return we(["align-self:end;justify-self:start;padding:0 "," 0 ",";&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}",""],e.entities.children.spacings.right,e.entities.children.spacings.left,e.entities.children.spacings.top,e.entities.children.spacings.bottom,!t&&we(["min-height:initial;height:'8px';"]))}),Mee=y.forwardRef(function(e,t){var n=e.children,i=He(e,Ree);return w.jsx(Pee,R(R({ref:t},i),{},{children:n}))}),$ee=["children"],Hee=G.div.withConfig({displayName:"DialogTitle__StyledDialogTitle",componentId:"sc-1t3jljt-0"})(function(r){var e=r.theme,t=r.children;return we([""," min-height:",";align-self:end;justify-self:start;margin-right:",";",""],Tn(e.entities.title.typography),e.entities.title.minHeight,e.entities.children.spacings.right,!t&&we(["min-height:initial;height:'8px';"]))}),Zee=y.forwardRef(function(e,t){var n=e.children,i=He(e,$ee);return w.jsx(w.Fragment,{children:w.jsx(Hee,R(R({id:"eds-dialog-title",ref:t},i),{},{children:n}))})}),Y_=te.colors.ui,Oee=Y_.background__default.rgba,Lee=Y_.background__light.rgba,Dee=Y_.background__medium.rgba,nR=te.spacings.comfortable,M7=nR.small,$7=nR.medium,iR={lighter:{background:Oee},light:{background:Lee},mediumColor:{background:Dee}},Nee={spacings:{top:M7,bottom:M7}},Vee={spacings:{top:$7,bottom:$7}};const H7=Object.freeze(Object.defineProperty({__proto__:null,divider:iR,medium:Vee,small:Nee},Symbol.toStringTag,{value:"Module"}));var zee=["color","variant","size"],Fee=iR,jee=G.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1d8osde-0"})(function(r){var e=r.$backgroundColor,t=r.$marginTop,n=r.$marginBottom,i=r.$dividerHeight;return we(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],e,t,n,i,i)}),cu=y.forwardRef(function(e,t){var n=e.color,i=n===void 0?"medium":n,o=e.variant,a=o===void 0?"medium":o,s=e.size,c=s===void 0?"1":s,l=He(e,zee),d=i==="medium"?"mediumColor":i,u=R({$backgroundColor:Fee[d].background,$marginTop:H7[a].spacings.top,$marginBottom:H7[a].spacings.bottom,$dividerHeight:parseInt(c)},l);return w.jsx(jee,R(R({},u),{},{ref:t}))}),Uee=["children","scrollable"],Bee=G.div.withConfig({displayName:"DialogContent__StyledDialogContent",componentId:"sc-1tze18k-0"})(function(r){var e=r.theme,t=r.$scrollable;return we(["--content-spacing-top:",";"," min-height:",";align-self:stretch;justify-self:stretch;padding:0 "," 0 ",";&:first-child{padding-top:var(--content-spacing-top);}&:last-child{padding-bottom:",";}",""],e.entities.children.spacings.top,Tn(e.entities.content.typography),e.entities.content.minHeight,e.entities.children.spacings.right,e.entities.children.spacings.left,e.entities.children.spacings.bottom,t&&we(["&:not(:first-child){margin-top:calc(var(--content-spacing-top) * -1);}padding-top:var(--content-spacing-top);margin-bottom:calc(var(--content-spacing-top) * -1);padding-bottom:var(--content-spacing-top);min-height:initial;height:",";overflow-y:auto;"],e.entities.content.height))}),qee=G(cu).withConfig({displayName:"DialogContent__StyledDivider",componentId:"sc-1tze18k-1"})(["width:100%;margin:0;"]),oR=y.forwardRef(function(e,t){var n=e.children,i=e.scrollable,o=i===void 0?!1:i,a=He(e,Uee),s=R({$scrollable:o,ref:t},a);return w.jsxs(w.Fragment,{children:[w.jsx(Bee,R(R({id:"eds-dialog-customcontent"},s),{},{children:n})),n&&o&&w.jsx(qee,{color:"medium",variant:"small"})]})}),Wee=["children"],Gee=G.div.withConfig({displayName:"DialogHeader__StyledDialogHeader",componentId:"sc-mbwcos-0"})(function(r){var e=r.theme;return we(["display:flex;justify-content:space-between;align-items:center;padding:"," "," 0 ",";"],e.entities.children.spacings.top,e.entities.children.spacings.right,e.entities.children.spacings.left)}),Kee=G(cu).withConfig({displayName:"DialogHeader__StyledDivider",componentId:"sc-mbwcos-1"})(["margin-bottom:0;"]),Yee=y.forwardRef(function(e,t){var n=e.children,i=He(e,Wee),o=R(R({},i),{},{ref:t});return w.jsxs("div",R(R({},o),{},{children:[w.jsx(Gee,{children:n}),w.jsx(Kee,{variant:"small",color:"medium"})]}))}),cr=Tee;cr.Actions=Mee;cr.Title=Zee;cr.CustomContent=oR;cr.Content=oR;cr.Header=Yee;cr.Actions.displayName="Dialog.Actions";cr.Title.displayName="Dialog.Title";cr.Content.displayName="Dialog.Content";cr.Header.displayName="Dialog.Header";var Qee=["children"],Xee=G.div.withConfig({displayName:"SnackbarAction__StyledSnackbarAction",componentId:"sc-1v5mjvd-0"})(function(r){var e=r.theme;return we(["display:inline-flex;margin-left:",";margin-top:",";margin-bottom:",";"],e.entities.actions.spacings.left,e.entities.actions.spacings.top,e.entities.actions.spacings.bottom)}),Jee=y.forwardRef(function(e,t){var n=e.children,i=He(e,Qee),o=R(R({},i),{},{ref:t});return w.jsx(Xee,R(R({},o),{},{children:y.Children.only(n)}))}),ete=te.typography.ui.snackbar,Q_=te.colors,tte=Q_.ui.background__overlay.rgba,rte=Q_.text.static_icons__primary_white.rgba,nte=Q_.interactive.link_in_snackbars.rgba,aR=te.spacings.comfortable,mp=aR.medium,ite=aR.x_large,ote=te.clickbounds.default__base,ate=te.shape.button.borderRadius,ste={background:tte,minHeight:ote,border:{type:"border",width:0,radius:ate},entities:{actions:{spacings:{left:ite,top:"-10px",bottom:"-10px"}},button:{typography:{color:nte}}},spacings:{left:mp,bottom:mp,right:mp,top:mp},typography:R(R({},ete),{},{color:rte}),modes:{compact:{}}},cte=["open","autoHideDuration","onClose","placement","children"],lte=G(z0).withConfig({displayName:"Snackbar__StyledSnackbar",componentId:"sc-ac6no8-0"})(function(r){var e=r.theme,t=r.$placement;return we(["position:fixed;background-color:",";"," "," "," min-height:",";box-sizing:border-box;z-index:1400;"," a,button{color:",";}"],e.background,fo(e.spacings),ci(e.border),Tn(e.typography),e.minHeight,{top:t.includes("top")?e.spacings.top:t==="left"||t==="right"?"50%":void 0,bottom:t.includes("bottom")?e.spacings.bottom:void 0,right:t.includes("right")?e.spacings.right:void 0,left:t.includes("left")?e.spacings.left:t==="top"||t==="bottom"?"50%":void 0,transform:t==="left"||t==="right"?"translateY(-50%)":t==="top"||t==="bottom"?"translateX(-50%)":void 0},e.entities.button.typography.color)}),dte=y.forwardRef(function(e,t){var n=e.open,i=n===void 0?!1:n,o=e.autoHideDuration,a=o===void 0?7e3:o,s=e.onClose,c=e.placement,l=c===void 0?"bottom":c,d=e.children,u=He(e,cte),h=y.useState(i),f=Yn(h,2),p=f[0],m=f[1],x=y.useRef();y.useEffect(function(){return m(i),x.current=setTimeout(function(){m(!1),s&&s()},a),function(){return clearTimeout(x.current)}},[i,a,m,s]);var g=R({ref:t,$placement:l},u),v=po(),b=v.density,E=Bo({density:b},ste);return w.jsx(Pa,{theme:E,children:p&&nl.createPortal(w.jsx(lte,R(R({role:"alert",elevation:"overlay"},g),{},{children:d})),document.body)})}),sR=dte;sR.Action=Jee;var X_=te.colors,cR=X_.infographic,ute=cR.primary__moss_green_13.rgba,hte=cR.primary__moss_green_100.rgba,fte=X_.interactive.icon_on_interactive_colors.rgba,pte=X_.ui.background__semitransparent.rgba,mte={background:ute,entities:{progress:{background:hte}}},vte={background:pte,entities:{progress:{background:fte}}};const Z7=Object.freeze(Object.defineProperty({__proto__:null,neutral:vte,primary:mte},Symbol.toStringTag,{value:"Module"}));var gte=["variant","value","size","color"],yte=XK(["100%{transform:rotate(360deg);}"]),_te=G.svg.withConfig({displayName:"CircularProgress__Svg",componentId:"sc-hib054-0"})(["display:inline-block;",";"],function(r){var e=r.$variant;return e==="indeterminate"?we(["animation:"," 1.4s linear infinite;"],yte):we(["transform:rotate(-90deg);"])}),bte=G.output.withConfig({displayName:"CircularProgress__SrOnlyOutput",componentId:"sc-hib054-1"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),wte=G.circle.withConfig({displayName:"CircularProgress__TrackCircle",componentId:"sc-hib054-2"})([""]),xte=G.circle.withConfig({displayName:"CircularProgress__ProgressCircle",componentId:"sc-hib054-3"})([""]),Cte=function(e){return Z7[e]?Z7[e]:{background:"transparent",entities:{progress:{background:e}}}},Ete=y.forwardRef(function(e,t){var n=e.variant,i=n===void 0?"indeterminate":n,o=e.value,a=o===void 0?null:o,s=e.size,c=s===void 0?48:s,l=e.color,d=l===void 0?"primary":l,u=He(e,gte),h=4,f=Math.round(a),p={},m=R(R({},u),{},{ref:t,$variant:i}),x=Cte(d),g=y.useState(0),v=Yn(g,2),b=v[0],E=v[1],I=2*Math.PI*((48-h)/2);i==="determinate"&&(p.stroke=I.toFixed(3),p.strokeDashoffset="".concat(((100-f)/100*I).toFixed(3),"px"),m["aria-valuenow"]=f,a!==void 0&&(m["aria-valuenow"]=f,m["aria-valuemin"]=0,m["aria-valuemax"]=100)),y.useEffect(function(){i!=="indeterminate"&&(f>=25&&f<50?E(25):f>=50&&f<75?E(50):f>=75&&f<100?E(75):f===100&&E(100))},[f,i]);var C=function(){return"Loading ".concat(b,"%")};return w.jsxs(w.Fragment,{children:[w.jsxs(_te,R(R({},m),{},{viewBox:"24 24 48 48",role:"progressbar",height:c,width:c,preserveAspectRatio:"xMidYMid meet",children:[w.jsx(wte,{style:p,cx:48,cy:48,r:(48-h)/2,fill:"none",strokeWidth:h,stroke:x.background}),w.jsx(xte,{style:p,cx:48,cy:48,r:(48-h)/2,fill:"none",strokeLinecap:"round",strokeWidth:h,strokeDasharray:i==="determinate"?I:48,stroke:x.entities.progress.background})]})),i==="determinate"&&w.jsx(bte,{children:C()})]})}),lR={focusedIndex:-1,initialFocus:null,onClose:null},dR=y.createContext(lR),kte=function(e){var t=e.children,n=y.useState(lR),i=Yn(n,2),o=i[0],a=i[1],s=o.focusedIndex,c=o.initialFocus,l=o.onClose,d=function(m){a(function(x){return R(R({},x),{},{focusedIndex:m})})},u=function(m){a(function(x){return R(R({},x),{},{initialFocus:m})})},h=function(m){var x=function(){d(-1),u(null),m()};a(function(g){return R(R({},g),{},{onClose:x})})},f={setFocusedIndex:d,focusedIndex:s,setInitialFocus:u,initialFocus:c,setOnClose:h,onClose:l};return w.jsx(dR.Provider,{value:f,children:t})},J_=function(){return y.useContext(dR)},eb=te.colors,Ste=eb.ui.background__default.rgba,lu=eb.interactive,Ite=lu.primary__selected_highlight.rgba,Ate=lu.primary__resting.rgba,Tte=lu.focus.rgba,Rte=lu.disabled__fill.rgba,Pte=lu.disabled__text.rgba,Mte=lu.table__header__fill_hover.rgba,$te=eb.text.static_icons__default.rgba,tb=te.spacings.comfortable,O7=tb.medium,El=tb.large,kl=tb.small,qg=te.typography.navigation.menu_title,du={background:Ste,spacings:{top:kl,bottom:kl,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:R(R({},qg),{},{color:$te}),entities:{icon:{states:{disabled:{typography:{color:Rte}}}},item:{spacings:{left:El,right:El,top:O7,bottom:O7},states:{active:{typography:R(R({},qg),{},{color:Ate}),background:Ite},focus:{outline:{color:Tte,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:Mte},disabled:{typography:R(R({},qg),{},{color:Pte})}}},title:{spacings:{left:El,right:El,top:kl,bottom:kl}}},modes:{compact:{entities:{item:{spacings:{left:El,right:El,top:kl,bottom:kl}}}}}},Hte=["children","disabled","active","index","as","onClick","closeMenuOnClick"],Zte=du.typography,uR=du.entities,F0=uR.item.states,L7=F0.active,Ote=F0.focus,Lte=F0.hover,Dte=F0.disabled,Nte=uR.icon,Vte=G.button.attrs(function(r){var e=r.$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;"," "," "," ",""],Tn(Zte),function(r){var e=r.theme;return fo(e.entities.item.spacings)},function(r){var e=r.$active;return e&&we(["background:",";*{color:",";}"],L7.background,L7.typography.color)},function(r){var e=r.disabled;return e?we(["*{color:",";}svg{fill:",";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],Dte.typography.color,Nte.states.disabled.typography.color):we(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:",";}}&:focus{z-index:3;","}"],Lte.background,tn(Ote.outline))}),zte=G.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;"]),j0=y.forwardRef(function(e,t){var n=e.children,i=e.disabled,o=e.active,a=e.index,s=a===void 0?0:a,c=e.as,l=c===void 0?"button":c,d=e.onClick,u=e.closeMenuOnClick,h=u===void 0?!0:u,f=He(e,Hte),p=J_(),m=p.focusedIndex,x=p.setFocusedIndex,g=p.onClose,v=function(C){m!==C&&x(C)},b=s===m,E=R(R({},f),{},{as:l,disabled:i,$isFocused:b});return w.jsx(Vte,R(R({},E),{},{$active:o,ref:jo(t,function(I){b&&requestAnimationFrame(function(){I!==null&&I.focus()})}),onFocus:function(){return v(s)},onClick:function(C){d&&(d(C),g!==null&&h&&g(C))},children:w.jsx(zte,{children:n})}))});j0.displayName="MenuItem";var Fte=G.div.attrs(function(){return{tabIndex:0}}).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],fo(du.entities.title.spacings)),hR=y.memo(function(e){var t=e.children,n=e.title,i=e.index;return w.jsxs(w.Fragment,{children:[i!==0&&w.jsx("div",{children:w.jsx(cu,{variant:"small"})}),n&&w.jsx(Fte,{children:w.jsx(Di,{group:"navigation",variant:"label",children:n})}),t]})}),jte=["addCloseMenuOnClickIndex","children"],Ute=G.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;}"],fo(du.spacings));function D7(r){return!!(y.isValidElement(r)&&!r.props.disabled&&r.type===j0)}function Bte(r){return!!(y.isValidElement(r)&&r.type===j0&&r.props.closeMenuOnClick!==!1)}var qte=y.forwardRef(function(e,t){var n=e.addCloseMenuOnClickIndex,i=e.children,o=He(e,jte),a=J_(),s=a.focusedIndex,c=a.setFocusedIndex,l=a.initialFocus,d=-1,u=y.useMemo(function(){return[]},[]),h=y.useMemo(function(){return y.Children.map(i,function(g){if(!g)return g;if(g.type===hR){d++;var v=d,b=y.Children.map(g.props.children,function(E){return d++,D7(E)&&u.push(d),y.cloneElement(E,{index:d})});return y.cloneElement(g,{index:v},b)}else return d++,D7(g)&&u.push(d),Bte(g)&&n(d),y.cloneElement(g,{index:d})})},[i,u,d,n]),f=u[0],p=u[u.length-1];y.useEffect(function(){l==="first"&&c(f),l==="last"&&c(p)},[l,f,p]);var m=function(v,b){var E=v==="down"?1:-1,I=u.indexOf(s),C=u[I+E],T=typeof C>"u"?b:C;c(T)},x=function(v){var b=v.key;v.stopPropagation(),b==="ArrowDown"&&(v.preventDefault(),m("down",f)),b==="ArrowUp"&&(v.preventDefault(),m("up",p))};return w.jsx(Ute,R(R({onKeyDown:x,role:"menu"},o),{},{ref:t,children:h}))}),Wte=["children","anchorEl","onClose","open"],Gte=["anchorEl","open","placement","matchAnchorWidth","onClose","style","className"],Kte=du.border,Yte=G(z0).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["position:absolute;z-index:1400;width:fit-content;min-width:fit-content;",";",";"],ci(Kte),function(r){var e=r.open;return we({display:e?"block":"none"})}),Qte=y.forwardRef(function(e,t){var n=e.children,i=e.anchorEl,o=e.onClose,a=e.open,s=He(e,Wte),c=J_(),l=c.setOnClose,d=c.onClose,u=c.setInitialFocus,h=c.focusedIndex,f=y.useMemo(function(){return[]},[]);y.useEffect(function(){d===null&&o&&l(o)},[d,o,l]),y.useEffect(function(){var m=function(g){var v=g.key;switch((v==="ArrowDown"||v==="ArrowUp")&&(g.preventDefault(),g.stopPropagation(),i.dispatchEvent(new Event("click",{bubbles:!0}))),v){case"Enter":case"ArrowDown":u("first");break;case"ArrowUp":u("last");break}};return i&&i.addEventListener("keydown",m),function(){i&&i.removeEventListener("keydown",m)}},[i]),$m("Escape",function(){a&&d!==null&&(d(),i.focus())}),$m("Enter",function(){a&&d!==null&&f.includes(h)&&setTimeout(function(){window.document.contains(i)&&i.focus()},0)});var p=function(x){f.indexOf(x)<0&&f.push(x)};return w.jsx(qte,R(R({addCloseMenuOnClickIndex:p},s),{},{ref:t,children:n}))}),Xte=y.forwardRef(function(e,t){var n=e.anchorEl,i=e.open,o=e.placement,a=o===void 0?"bottom":o,s=e.matchAnchorWidth,c=s===void 0?!1:s,l=e.onClose,d=e.style,u=e.className,h=He(e,Gte),f=po(),p=f.density,m=Bo({density:p},du),x=[Z0(4),L0(),O0({padding:8})];c&&(x=[].concat(v_(x),[lX({apply:function(q){var L=q.rects,P=q.elements;Object.assign(P.floating.style,{width:"".concat(L.reference.width,"px")})}})]));var g=XT({elements:{reference:n},placement:a,open:i,onOpenChange:l,middleware:x}),v=g.x,b=g.y,E=g.refs,I=g.update,C=g.strategy,T=g.context,O=y.useMemo(function(){return jo(E.setFloating,t)},[E.setFloating,t]);eQ(function(){if(E.reference.current&&E.floating.current&&i)return NT(E.reference.current,E.floating.current,I)},[E.reference,E.floating,I,i]);var W=JT([QT(T,{escapeKey:!1})]),ie=W.getFloatingProps,re={open:i,className:u},ae=R(R({},h),{},{onClose:l,anchorEl:n,open:i}),F=wT(n),Z=w.jsx(Pa,{theme:m,children:w.jsx(Yte,R(R(R({elevation:"raised"},re),ie({ref:O,style:R(R({},d),{},{position:C,top:b||0,left:v||0})})),{},{children:w.jsx(kte,{children:w.jsx(Qte,R(R({},ae),{},{ref:t}))})}))});return w.jsx(w.Fragment,{children:F?Z:w.jsx(YT,{id:"eds-menu-container",children:Z})})}),zd=Xte;zd.Item=j0;zd.Section=hR;zd.Item.displayName="Menu.Item";zd.Section.displayName="Menu.Section";var rb=te.colors,Jte=rb.ui.background__light.rgba,fR=rb.text,ere=fR.static_icons__default,Wg=fR.static_icons__tertiary,Ls=rb.interactive,N7=Ls.disabled__text,tre=Ls.primary__resting,rre=Ls.danger__resting,V7=Ls.danger__hover,nre=Ls.warning__resting,z7=Ls.warning__hover,ire=Ls.success__resting,F7=Ls.success__hover,pR=te.spacings.comfortable,j7=pR.small,vp=pR.x_small,$1=te.typography,U7=te.shape,U0={minHeight:U7.straight.minHeight,background:Jte,spacings:{left:j7,right:j7,top:"6px",bottom:"6px"},typography:R(R({},$1.input.text),{},{color:ere.rgba}),entities:{placeholder:{typography:{color:Wg.rgba}},helperText:{typography:R(R({},$1.input.label),{},{color:Wg.rgba}),states:{disabled:{typography:{color:N7.rgba}}}}},states:{disabled:{typography:{color:N7.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"}},focus:{outline:{type:"outline",width:"2px",color:tre.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+Wg.rgba,modes:{compact:{minHeight:U7._modes.compact.straight.minHeight,spacings:{left:vp,right:vp,top:vp,bottom:vp}}}},ore=lr(U0,{boxShadow:"none",outline:{color:rre.rgba},states:{focus:{outline:{color:V7.rgba}}},entities:{helperText:{typography:R(R({},$1.input.label),{},{color:V7.rgba})}}}),are=lr(U0,{boxShadow:"none",outline:{color:nre.rgba},states:{focus:{outline:{color:z7.rgba}}},entities:{helperText:{typography:R(R({},$1.input.label),{},{color:z7.rgba})}}}),sre=lr(U0,{boxShadow:"none",outline:{color:ire.rgba},states:{focus:{outline:{color:F7.rgba}}},entities:{helperText:{typography:R(R({},$1.input.label),{},{color:F7.rgba})}}}),cre={input:U0,error:ore,warning:are,success:sre},B7=te.colors,Sl=te.spacings.comfortable,lre=te.typography,mR={background:B7.ui.background__light.hex,typography:R(R({},lre.input.helper),{},{color:B7.text.static_icons__tertiary.rgba}),spacings:{comfortable:{left:Sl.small,right:Sl.small,top:Sl.small,bottom:"6px"},compact:{left:Sl.small,right:Sl.small,top:Sl.xx_small,bottom:"6px"}}},dre=["text","icon","color"],ure=G.div.withConfig({displayName:"HelperText__Container",componentId:"sc-189ug61-0"})(function(r){var e=r.color;return we({display:"grid",gap:"8px",gridAutoFlow:"column",alignItems:"start",justifyContent:"start",color:e})}),hre=G.p.withConfig({displayName:"HelperText__Text",componentId:"sc-189ug61-1"})(["margin:0;",";"],L_(mR.typography)),fre=y.forwardRef(function(e,t){var n=e.text,i=e.icon,o=e.color,a=o===void 0?mR.typography.color:o,s=He(e,dre);return n?w.jsxs(ure,R(R({},R(R({},s),{},{color:a,ref:t})),{},{children:[i,w.jsx(hre,{children:n})]})):null}),Gg=te.colors,q7=te.spacings.comfortable,pre=te.typography,Gu={background:Gg.ui.background__light.rgba,typography:R(R({},pre.input.label),{},{color:Gg.text.static_icons__tertiary.rgba}),spacings:{left:q7.small,right:q7.small,top:"6px",bottom:"6px"},states:{disabled:{typography:{color:Gg.interactive.disabled__text.rgba}}}},mre=["label","meta","disabled"],vre=G.label.withConfig({displayName:"Label__LabelBase",componentId:"sc-1gi2bcn-0"})(["display:flex;justify-content:space-between;position:relative;"," margin-left:",";margin-right:",";color:",";"],Tn(Gu.typography),Gu.spacings.left,Gu.spacings.right,function(r){var e=r.$disabledText;return e?Gu.states.disabled.typography.color:Gu.typography.color}),W7=G.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),H1=y.forwardRef(function(e,t){var n=e.label,i=n===void 0?"":n,o=e.meta,a=e.disabled,s=a===void 0?!1:a,c=He(e,mre);return w.jsxs(vre,R(R({ref:t,$disabledText:s},c),{},{children:[w.jsx(W7,{children:i}),o&&w.jsx(W7,{children:o})]}))}),gre=["children","color","label","labelProps","helperProps","helperIcon"],yre=G.div.withConfig({displayName:"InputWrapper__Container",componentId:"sc-v6o9z1-0"})([""]),_re=G(fre).withConfig({displayName:"InputWrapper__HelperText",componentId:"sc-v6o9z1-1"})(["margin-top:8px;margin-left:8px;"]),bre=G(H1).withConfig({displayName:"InputWrapper__Label",componentId:"sc-v6o9z1-2"})(["margin-left:8px;margin-right:8px;"]),vR=y.forwardRef(function(e,t){var n=e.children,i=e.color,o=e.label,a=e.labelProps,s=a===void 0?{}:a,c=e.helperProps,l=c===void 0?{}:c,d=e.helperIcon,u=He(e,gre),h=po(),f=h.density,p=i||"input",m=cre[p],x=Bo({density:f},m),g=y.useCallback(function(){var E=x();return u.disabled?E.entities.helperText.states.disabled.typography.color:E.entities.helperText.typography.color},[x,u.disabled])(),v=!!(l!=null&&l.text),b=!!(o||s!=null&&s.label);return w.jsx(Pa,{theme:x,children:w.jsxs(yre,R(R({},u),{},{ref:t,children:[b&&w.jsx(bre,R({},R({label:o},s))),n,v&&w.jsx(_re,R({color:g},R({icon:d},l)))]}))})}),nb=te.colors,wre=nb.ui.background__light.rgba,gR=nb.text,xre=gR.static_icons__default,Kg=gR.static_icons__tertiary,Ds=nb.interactive,G7=Ds.disabled__text,Cre=Ds.primary__resting,K7=Ds.danger__resting,Y7=Ds.danger__hover,Q7=Ds.warning__resting,X7=Ds.warning__hover,J7=Ds.success__resting,ex=Ds.success__hover,yR=te.spacings.comfortable,gp=yR.small,yp=yR.x_small,Z1=te.typography,tx=te.shape,uu={height:tx.straight.minHeight,width:"100%",background:wre,spacings:{left:gp,right:gp,top:"6px",bottom:"6px"},typography:R(R({},Z1.input.text),{},{color:xre.rgba}),outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"},entities:{placeholder:{typography:{color:Kg.rgba}},adornment:{typography:R(R({},Z1.input.label),{},{color:Kg.rgba}),spacings:{left:gp,right:gp},states:{disabled:{typography:{color:G7.rgba}}}}},states:{disabled:{typography:{color:G7.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{},focus:{outline:{type:"outline",width:"2px",color:Cre.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+Kg.rgba,modes:{compact:{height:tx._modes.compact.straight.minHeight,spacings:{left:yp,right:yp,top:yp,bottom:yp}}}},Ere=lr(uu,{boxShadow:"none",outline:{color:K7.rgba},states:{focus:{outline:{color:Y7.rgba}}},entities:{adornment:{typography:R(R({},Z1.input.label),{},{color:K7.rgba}),states:{focus:{outline:{color:Y7.rgba}}}}}}),kre=lr(uu,{boxShadow:"none",outline:{color:Q7.rgba},states:{focus:{outline:{color:X7.rgba}}},entities:{adornment:{typography:R(R({},Z1.input.label),{},{color:Q7.rgba}),states:{focus:{outline:{color:X7.rgba}}}}}}),Sre=lr(uu,{boxShadow:"none",outline:{color:J7.rgba},states:{focus:{outline:{color:ex.rgba}}},entities:{adornment:{typography:R(R({},Z1.input.label),{},{color:J7.rgba}),states:{focus:{outline:{color:ex.rgba}}}}}}),Yg={input:uu,error:Ere,warning:kre,success:Sre},Ire=["variant","disabled","type","leftAdornments","rightAdornments","readOnly","className","style","leftAdornmentsProps","rightAdornmentsProps","leftAdornmentsWidth","rightAdornmentsWidth"],Are=G.div.withConfig({displayName:"Input__Container",componentId:"sc-1ykv024-0"})(function(r){var e,t=r.$token,n=r.disabled,i=r.readOnly,o=t.states,a=t.entities;return we(["--eds-input-adornment-color:",";--eds-input-color:",";position:relative;height:",";width:",";display:flex;flex-direction:row;border:none;box-sizing:border-box;box-shadow:",";background:var(--eds-input-background,",");"," &:focus-within{--eds-input-adornment-color:",";box-shadow:none;","}"," "," & > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"],a.adornment.typography.color,t.typography.color,t.height,t.width,t.boxShadow,t.background,tn(t.outline),(e=a.adornment)===null||e===void 0||(e=e.states.focus)===null||e===void 0?void 0:e.outline.color,tn(o.focus.outline),n&&we(["--eds-input-adornment-color:",";--eds-input-color:",";cursor:not-allowed;box-shadow:none;"],o.disabled.typography.color,o.disabled.typography.color),i&&we({background:o.readOnly.background,boxShadow:o.readOnly.boxShadow}))}),Tre=G.input.withConfig({displayName:"Input__StyledInput",componentId:"sc-1ykv024-1"})(function(r){var e=r.$token,t=r.$paddingLeft,n=r.$paddingRight;return we(["width:100%;border:none;background:transparent;"," "," outline:none;padding-left:",";padding-right:",";&::placeholder{color:",";}&:disabled{color:var(--eds-input-color);cursor:not-allowed;}"],fo(e.spacings),L_(e.typography),t,n,e.entities.placeholder.typography.color)}),_R=G.div.withConfig({displayName:"Input__Adornments",componentId:"sc-1ykv024-2"})(function(r){var e=r.$token;return we(["position:absolute;top:",";bottom:",";display:flex;align-items:center;"," color:var(--eds-input-adornment-color);"],e.spacings.top,e.spacings.bottom,L_(e.entities.adornment.typography))}),Rre=G(_R).withConfig({displayName:"Input__LeftAdornments",componentId:"sc-1ykv024-3"})(function(r){var e=r.$token;return we(["left:0;padding-left:",";"],e.entities.adornment.spacings.left)}),Pre=G(_R).withConfig({displayName:"Input__RightAdornments",componentId:"sc-1ykv024-4"})(function(r){var e=r.$token;return we(["right:0;padding-right:",";"],e.entities.adornment.spacings.right)}),Jc=y.forwardRef(function(e,t){var n=e.variant,i=e.disabled,o=i===void 0?!1:i,a=e.type,s=a===void 0?"text":a,c=e.leftAdornments,l=e.rightAdornments,d=e.readOnly,u=e.className,h=e.style,f=e.leftAdornmentsProps,p=e.rightAdornmentsProps,m=e.leftAdornmentsWidth,x=e.rightAdornmentsWidth,g=He(e,Ire),v=Yg[n]?Yg[n]:Yg.input,b=po(),E=b.density,I=Bo({density:E},v)(),C=y.useState(),T=Yn(C,2),O=T[0],W=T[1],ie=y.useState(),re=Yn(ie,2),ae=re[0],F=re[1],Z=y.useCallback(function(){var j=m||(ae?ae.clientWidth:0),oe=x||(O?O.clientWidth:0);return R(R({},I),{},{spacings:R(R({},I.spacings),{},{left:"".concat(j+parseInt(I.spacings.left),"px"),right:"".concat(oe+parseInt(I.spacings.right),"px")})})},[m,ae,x,O,I])(),D=R({ref:t,type:s,disabled:o,readOnly:d,$token:Z,style:{resize:"none"}},g),q={disabled:o,readOnly:d,className:u,style:h,$token:Z},L=R(R({},f),{},{ref:F,$token:Z}),P=R(R({},p),{},{ref:W,$token:Z});return w.jsxs(Are,R(R({},q),{},{children:[c?w.jsx(Rre,R(R({},L),{},{children:c})):null,w.jsx(Tre,R({$paddingLeft:Z.spacings.left,$paddingRight:Z.spacings.right},D)),l?w.jsx(Pre,R(R({},P),{},{children:l})):null]}))}),Mre=["variant","disabled","type","rowsMax"],rx=uu,$re=y.forwardRef(function(e,t){var n=e.variant,i=e.disabled,o=i===void 0?!1:i,a=e.type,s=a===void 0?"text":a,c=e.rowsMax,l=He(e,Mre),d=y.useState(null),u=Yn(d,2),h=u[0],f=u[1],p=po(),m=p.density,x=m==="compact"?rx.modes.compact.spacings:rx.spacings,g=uu.typography.lineHeight,v=x.top,b=x.bottom,E=16;h&&(E=parseInt(window.getComputedStyle(h).fontSize));var I=parseInt(v)+parseInt(b),C=parseFloat(g)*E*c+I;XY(h,c?C:null);var T=y.useCallback(function(){return jo(t,f)},[f,t])(),O=R({ref:T,type:s,disabled:o,variant:n},l),W={style:{alignItems:"flex-start"}};return w.jsx(Jc,R({as:"textarea",rightAdornmentsProps:W,leftAdornmentsProps:W,style:{height:"auto"}},O))}),Hre=["id","label","meta","unit","helperText","placeholder","disabled","multiline","className","variant","inputIcon","helperIcon","style","rowsMax","textareaRef","inputRef"],Zre=y.forwardRef(function(e,t){return e.$multiline?w.jsx($re,R({ref:t},e)):w.jsx(Jc,R({ref:t},e))}),bR=y.forwardRef(function(e,t){var n=e.id,i=e.label,o=e.meta,a=e.unit,s=e.helperText,c=e.placeholder,l=e.disabled,d=e.multiline,u=d===void 0?!1:d,h=e.className,f=e.variant,p=e.inputIcon,m=e.helperIcon,x=e.style,g=e.rowsMax,v=e.textareaRef,b=e.inputRef,E=He(e,Hre),I=bT(null,"helpertext"),C=R({"aria-invalid":f==="error"||void 0,disabled:l,placeholder:c,id:n,variant:f,rightAdornments:w.jsxs(w.Fragment,{children:[p,w.jsx("span",{children:a})]}),rowsMax:g,ref:b||v,$multiline:u},E),T={id:null,text:s,icon:m,disabled:l},O={ref:t,className:h,style:R({width:"100%"},x),color:f},W={htmlFor:n,label:i,meta:o,disabled:l};return s&&(C=R({"aria-describedby":I},C),T=R(R({},T),{},{id:I})),w.jsx(vR,R(R({helperProps:T,labelProps:W},O),{},{children:w.jsx(Zre,R({},C))}))}),Ore=te.colors.ui.background__scrim.rgba,Lre={background:Ore},Dre=["children","onClose","open","isDismissable"],Nre=Lre.background,Vre=G(qX).withConfig({displayName:"Scrim__StyledScrim",componentId:"sc-1fr7uvy-0"})(["background:",";z-index:1300;align-items:center;justify-content:center;display:flex;"],Nre),zre=G.div.withConfig({displayName:"Scrim__ScrimContent",componentId:"sc-1fr7uvy-1"})(["width:auto;height:auto;"]),Fre=y.forwardRef(function(e,t){var n=e.children,i=e.onClose,o=e.open,a=e.isDismissable,s=a===void 0?!1:a,c=He(e,Dre),l=y.useRef(null),d=y.useMemo(function(){return jo(l,t)},[l,t]);$m("Escape",function(){s&&i&&o&&i()});var u=function(f){f&&f.target===l.current&&f.type==="mousedown"&&s&&o&&i&&i()};return o?w.jsx(Vre,R(R({lockScroll:!0,onMouseDown:u,ref:d},c),{},{children:w.jsx(zre,{children:n})})):null}),jre=["onChange","style","className"],Ure=G(Jc).withConfig({displayName:"Search__SearchInput",componentId:"sc-v8l23u-0"})(["input{&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}}"]),Bre=G(gr).withConfig({displayName:"Search__InsideButton",componentId:"sc-v8l23u-1"})(["height:24px;width:24px;"]),qre=y.forwardRef(function(e,t){var n=e.onChange,i=e.style,o=e.className,a=He(e,jre),s=y.useRef(null),c=y.useState(!!a.defaultValue),l=Yn(c,2),d=l[0],u=l[1];y.useEffect(function(){a.disabled?u(!1):a.value&&u(!!a.value)},[a.value,a.disabled]);var h=function(){var x=s.current,g="";oQ(x,g)},f=function(x){u(!!x.currentTarget.value)},p=y.useMemo(function(){return jo(s,t)},[s,t]);return w.jsx(vR,{role:"search",style:i,className:o,children:w.jsx(Ure,R({onChange:function(x){f(x),n&&n(x)},ref:p,leftAdornmentsWidth:32,leftAdornments:w.jsx(Et,{data:pJ,"aria-hidden":!0,size:18}),rightAdornmentsWidth:32,rightAdornments:w.jsx(w.Fragment,{children:d&&w.jsx(Bre,{"aria-label":"clear search",title:"clear",variant:"ghost_icon",onClick:function(x){x.stopPropagation(),h()},children:w.jsx(Et,{data:fJ,size:16})})})},a))})}),B0=te.colors.interactive,Wre=B0.primary__resting.rgba,Gre=B0.primary__hover_alt.rgba,nx=B0.focus.rgba,Kre=B0.disabled__text.rgba,Yre=te.typography.navigation.menu_title,q0=te.spacings.comfortable,_p=q0.medium_small,bp=q0.x_small,Qre=q0.x_large,Xre=q0.xx_large,wR=te.clickbounds,Jre=wR.default__base,ene=wR.compact__standard,ix=te.interactions.focused.width,Jh={background:Wre,typography:Yre,width:Xre,spacings:{bottom:_p,top:_p,left:_p,right:_p},clickbound:{height:Jre},states:{hover:{background:Gre},disabled:{background:Kre},focus:{outline:{type:"outline",style:"dashed",width:ix,color:nx,offset:"10px"}}},modes:{compact:{width:Qre,spacings:{bottom:bp,top:bp,left:bp,right:bp},clickbound:{height:ene},states:{focus:{outline:{type:"outline",style:"dashed",width:ix,color:nx,offset:"2px"}}}}}},tne=["disabled","indeterminate","style","className"],Qg=G.path.attrs(function(r){var e=r.$icon;return{fillRule:"evenodd",clipRule:"evenodd",d:e.svgPathData}}).withConfig({displayName:"Input__StyledPath",componentId:"sc-rqj7qf-0"})([""]),rne=G.input.attrs(function(r){var e=r.type,t=e===void 0?"checkbox":e;return{type:t}}).withConfig({displayName:"Input",componentId:"sc-rqj7qf-1"})(["--scale:",";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{","}&:focus-visible + svg{","}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"],function(r){var e=r.theme,t=r.$iconSize;return parseFloat(e.clickbound.height)/t},function(r){var e=r.disabled;return e?"not-allowed":"pointer"},function(r){var e=r.theme;return tn(e.states.focus.outline)},function(r){var e=r.theme;return tn(e.states.focus.outline)}),ox=G.svg.attrs(function(r){var e=r.height,t=r.width,n=r.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:e,width:t,fill:n}}).withConfig({displayName:"Input__Svg",componentId:"sc-rqj7qf-2"})(["grid-area:input;pointer-events:none;"]),nne=G.span.withConfig({displayName:"Input__InputWrapper",componentId:"sc-rqj7qf-3"})(["display:inline-grid;grid:[input] 1fr / [input] 1fr;position:relative;isolation:isolate;"," &::before{content:'';position:absolute;width:",";aspect-ratio:1/1;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;}@media (hover:hover) and (pointer:fine){> svg{z-index:1;}&:hover{&::before{background-color:",";}}}"],function(r){var e=r.theme;return fo(e.spacings)},function(r){var e=r.theme;return e.width},function(r){var e=r.disabled;return e?"transparent":Jh.states.hover.background}),ax=y.forwardRef(function(e,t){var n=e.disabled,i=n===void 0?!1:n,o=e.indeterminate,a=e.style,s=e.className,c=He(e,tne),l=po(),d=l.density,u=Bo({density:d},Jh),h=24,f=i?Jh.states.disabled.background:Jh.background,p={disabled:i,style:a,className:s},m=R(Cm({ref:t,disabled:i},"data-indeterminate",o),c);return w.jsx(Pa,{theme:u,children:w.jsxs(nne,R(R({},p),{},{children:[w.jsx(rne,R({$iconSize:h},m)),o?w.jsx(ox,{width:h,height:h,viewBox:"0 0 ".concat(h," ").concat(h),fill:f,"aria-hidden":!0,children:w.jsx(Qg,{$icon:gJ,name:"indeterminate"})}):w.jsxs(ox,{width:h,height:h,viewBox:"0 0 ".concat(h," ").concat(h),fill:f,"aria-hidden":!0,children:[w.jsx(Qg,{$icon:mJ,name:"checked"}),w.jsx(Qg,{$icon:vJ,name:"not-checked"})]})]}))})}),ine=["label","disabled","indeterminate","className","style"],one=G.label.withConfig({displayName:"Checkbox__StyledLabel",componentId:"sc-yg6l8h-0"})(["display:inline-flex;align-items:center;cursor:",";"],function(r){var e=r.$disabled;return e?"not-allowed":"pointer"}),ane=G.span.withConfig({displayName:"Checkbox__LabelText",componentId:"sc-yg6l8h-1"})(["",";"],Tn(Jh.typography)),zm=y.forwardRef(function(e,t){var n=e.label,i=e.disabled,o=i===void 0?!1:i,a=e.indeterminate,s=e.className,c=e.style,l=He(e,ine);return n?w.jsxs(one,{$disabled:o,className:s,style:c,children:[w.jsx(ax,R(R({},l),{},{disabled:o,ref:t,indeterminate:a})),w.jsx(ane,{children:n})]}):w.jsx(ax,R(R({},l),{},{className:s,style:c,disabled:o,ref:t,indeterminate:a}))});zm.displayName="Checkbox";var xR=G.span.withConfig({displayName:"Switchstyles__BaseInputWrapper",componentId:"sc-x39lde-0"})(function(r){var e=r.theme,t=e.width,n=e.height;return we(["width:",";height:",";border-radius:50%;position:relative;grid-area:input;"],t,n)}),CR=G.input.attrs(function(r){var e=r.type,t=e===void 0?"checkbox":e;return{type:t}}).withConfig({displayName:"Switchstyles__BaseInput",componentId:"sc-x39lde-1"})(function(r){var e=r.disabled,t=r.theme;return we(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;position:relative;z-index:1;cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}"],e?"not-allowed":"pointer",tn(t.states.focus.outline),tn(t.states.focus.outline))}),ER=G.span.withConfig({displayName:"Switchstyles__GridWrapper",componentId:"sc-x39lde-2"})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;place-items:center;isolation:isolate;"]),sne=["disabled","className","style"],cne=G(CR).withConfig({displayName:"SwitchSmall__Input",componentId:"sc-1a99mis-0"})(function(r){var e=r.disabled,t=r.theme,n=t.states,i=t.entities,o=i.handle,a=i.track;return we(["&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:",";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:",";}}"],tn(n.focus.outline),tn(n.focus.outline),e?n.disabled.background:a.states.active.background,o.background,e?"transparent":n.hover.background)}),lne=G.span.withConfig({displayName:"SwitchSmall__Track",componentId:"sc-1a99mis-1"})(function(r){var e=r.$isDisabled,t=r.theme,n=t.states,i=t.entities.track;return we(["width:",";height:",";border-radius:10px;border:none;background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"],i.width,i.height,e?n.disabled.background:i.states.disabled.background)}),dne=G.span.withConfig({displayName:"SwitchSmall__Handle",componentId:"sc-1a99mis-2"})(function(r){var e=r.theme.entities.handle;return we(["background-color:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],e.background,e.width,e.height)}),p3=y.forwardRef(function(e,t){var n=e.disabled,i=e.className,o=e.style,a=He(e,sne);return w.jsxs(ER,{className:i,style:o,children:[w.jsx(cne,R(R({},a),{},{ref:t,disabled:n})),w.jsxs(xR,{children:[w.jsx(lne,{$isDisabled:n}),w.jsx(dne,{})]})]})});p3.displayName="SwitchSmall";var une=["disabled","className","style"],hne=G(CR).withConfig({displayName:"SwitchDefault__Input",componentId:"sc-16ym5pn-0"})(function(r){var e=r.disabled,t=r.theme;return we(["width:",";aspect-ratio:1/1;&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:",";}&:hover + span{background-color:",";}&:hover + span > span:last-child{background-color:",";}"],t.clickbound.height,e?t.states.disabled.background:t.entities.track.states.active.background,e?t.states.disabled.background:t.entities.handle.states.active.background,e?"transparent":t.states.hover.background,e?t.states.disabled.background:t.states.hover.entities.handle.background)}),fne=G.span.withConfig({displayName:"SwitchDefault__Track",componentId:"sc-16ym5pn-1"})(function(r){var e=r.$isDisabled,t=r.theme,n=t.states,i=t.entities.track;return we([""," border:none;width:",";height:",";background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transition:background 0.36s;",""],ci(i.border),i.width,i.height,i.background,e&&{backgroundColor:n.disabled.background})}),pne=G.span.withConfig({displayName:"SwitchDefault__Handle",componentId:"sc-16ym5pn-2"})(function(r){var e=r.$isDisabled,t=r.theme,n=t.states,i=t.entities.handle;return we(["background-color:",";"," box-shadow:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],i.background,e&&{backgroundColor:n.disabled.background},i.boxShadow,i.width,i.height)}),m3=y.forwardRef(function(e,t){var n=e.disabled,i=e.className,o=e.style,a=He(e,une);return w.jsxs(ER,{className:i,style:o,children:[w.jsx(hne,R(R({},a),{},{ref:t,disabled:n})),w.jsxs(xR,{children:[w.jsx(fne,{$isDisabled:n}),w.jsx(pne,{$isDisabled:n})]})]})});m3.displayName="SwitchDefault";var ib=te.colors,mne=ib.ui.background__medium.rgba,al=ib.interactive,sx=al.primary__hover_alt.rgba,cx=al.primary__hover.rgba,vne=al.primary__selected_highlight.rgba,lx=al.primary__resting.rgba,gne=al.disabled__fill.rgba,yne=al.focus.rgba,_ne=al.icon_on_interactive_colors.rgba,dx=ib.text.static_icons__tertiary.rgba,bne=te.typography.navigation.menu_title,wp=te.clickbounds,wne=te.elevation.raised,xne=te.spacings.comfortable.medium_small,kR=te.shape,ux=kR.circle,hx=kR._modes.compact.icon_button,Cne=te.interactions.focused.width,Ene={typography:bne,height:ux.minHeight,width:ux.minWidth,clickbound:{height:wp.default__base,width:wp.default__base},entities:{label:{spacings:{left:xne}},track:{width:"32px",height:"8px",background:mne,border:{type:"border",radius:"4px"},states:{active:{background:vne},hover:{background:cx}}},handle:{height:"16px",width:"16px",boxShadow:wne,background:dx,states:{active:{background:lx},hover:{background:sx}}}},modes:{compact:{height:hx.minHeight,width:hx.minWidth,clickbound:{height:wp.compact__standard,width:wp.compact__standard},entities:{track:{width:"20px",height:"10px",states:{disabled:{background:dx},active:{background:lx}}},handle:{height:"6px",width:"6px",background:_ne}}}},states:{disabled:{background:gne},focus:{outline:{width:Cne,type:"outline",style:"dashed",color:yne}},hover:{background:sx,entities:{handle:{background:cx}}}}},kne=["size","disabled","label","className","style"],Sne=G.label.withConfig({displayName:"Switch__StyledLabel",componentId:"sc-sdaahx-0"})(["cursor:",";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;gap:",";"],function(r){var e=r.$isDisabled;return e?"not-allowed":"pointer"},function(r){var e=r.$size;return e==="small"?"12px":"8px"}),Ine=G.span.withConfig({displayName:"Switch__Label",componentId:"sc-sdaahx-1"})(function(r){var e=r.theme;return we(["",";"],Tn(e.typography))}),ob=y.forwardRef(function(e,t){var n=e.size,i=n===void 0?"default":n,o=e.disabled,a=e.label,s=e.className,c=e.style,l=He(e,kne),d=po(),u=d.density,h=i==="small"?"compact":u,f=Bo({density:h},Ene);return w.jsx(Pa,{theme:f,children:a?w.jsxs(Sne,{$size:i,$isDisabled:o,className:s,style:c,children:[i==="small"?w.jsx(p3,R(R({disabled:o},l),{},{ref:t})):w.jsx(m3,R(R({disabled:o},l),{},{ref:t})),a&&w.jsx(Ine,{children:a})]}):i==="small"?w.jsx(p3,R(R({disabled:o,className:s,style:c},l),{},{ref:t})):w.jsx(m3,R(R({disabled:o,className:s,style:c},l),{},{ref:t}))})});ob.displayName="Switch";const v3=({error:r})=>w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{marginTop:20,border:"1px solid"},children:[w.jsx(Di,{variant:"h4",color:"warning",children:r.message}),w.jsx("section",{style:{padding:10},children:r.stack&&w.jsx("pre",{children:r.stack})})]}),r.cause&&w.jsx(v3,{error:r.cause})]}),Ane=r=>{const{appKey:e}=r,t=wn(),n=y.useRef(null),[i,o]=y.useState(!1),[a,s]=y.useState(),{value:c}=Gc(y.useMemo(()=>t.modules.app.current$,[t.modules.app]));return y.useEffect(()=>{t.modules.app.setCurrentApp(e)},[e,t]),y.useEffect(()=>{o(!0),s(void 0);const l=new Nr;return l.add(c==null?void 0:c.initialize().subscribe({next:({manifest:d,script:u,config:h})=>{const[f]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""],p=document.createElement("div");if(p.style.display="contents",!n.current)throw Error("Missing application mounting point");n.current.appendChild(p);const m=u.renderApp??u.default;l.add(m(p,{fusion:t,env:{basename:f,config:h,manifest:d}})),l.add(()=>p.remove())},complete:()=>{o(!1)},error:d=>{s(d)}})),()=>l.unsubscribe()},[t,c,n]),a?a.cause instanceof xs?w.jsxs("div",{children:[w.jsx("h2",{children:"🔥 Failed to load application manifest 🤬"}),w.jsx("h3",{children:a.cause.type}),w.jsx(v3,{error:a}),";"]}):w.jsxs("div",{children:[w.jsx("h2",{children:"🔥 Failed to load application 🤬"}),w.jsx(v3,{error:a}),";"]}):w.jsx("section",{id:"application-content",ref:n,children:i&&w.jsx(hA,{text:"Loading Application"})})},SR=()=>{const r=wn().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");const e=y.useMemo(()=>r.current$,[r]),{value:t,error:n}=Gc(e);return{currentApp:t,setCurrentApp:y.useMemo(()=>r.setCurrentApp.bind(r),[r]),clearCurrentApp:y.useMemo(()=>r.clearCurrentApp.bind(r),[r]),error:n}},Tne=()=>{var r;const{currentApp:e,error:t}=SR(),n=y.useMemo(()=>e?e.instance$:_n(null),[e]),{value:i,error:o,complete:a}=Gc(n,{initial:(r=e==null?void 0:e.state.modules)!==null&&r!==void 0?r:null});return{modules:i,error:o??t,complete:a}},Rne=r=>{const{modules:e,error:t,complete:n}=Tne();return{module:e===null?null:e[r],error:t,complete:n}};let IR=class AR extends CustomEvent{constructor(e){super(AR.eventName,e)}};IR.eventName="select";let Fm=class TR extends CustomEvent{constructor(e){super(TR.eventName,e)}};Fm.eventName="fwc-searchabledropdown-controller-connect";let ab=class extends pt{constructor(){super(...arguments),this.resolverCallbacks=[]}createRenderRoot(){return this}connectResolver(e){this.resolver=e,this.resolverCallbacks.forEach(t=>{t(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(Fm.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Fm.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:t,updateResolver:n}=e.detail;t(()=>{this.resolverCallbacks.filter(i=>i!==n)}),this.resolver&&n(this.resolver),this.resolverCallbacks.push(n),e.preventDefault(),e.stopPropagation()}};_([H()],ab.prototype,"resolver",void 0);/**
|
|
452
|
+
*/var hX=["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])"],h3=hX.join(","),zT=typeof Element>"u",M1=zT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Dm=!zT&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},Nm=function r(e,t){var n;t===void 0&&(t=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",a=o||t&&e&&r(e.parentNode);return a},fX=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},pX=function(e,t,n){if(Nm(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(h3));return t&&M1.call(e,h3)&&i.unshift(e),i=i.filter(n),i},mX=function r(e,t,n){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!Nm(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),c=s.length?s:a.children,l=r(c,!0,n);n.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{var d=M1.call(a,h3);d&&n.filter(a)&&(t||!e.includes(a))&&i.push(a);var u=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),h=!Nm(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(u&&h){var f=r(u===!0?a.children:u.children,!0,n);n.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else o.unshift.apply(o,a.children)}}return i},FT=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},jT=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||fX(e))&&!FT(e)?0:e.tabIndex},vX=function(e,t){var n=jT(e);return n<0&&t&&!FT(e)?0:n},gX=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},UT=function(e){return e.tagName==="INPUT"},yX=function(e){return UT(e)&&e.type==="hidden"},_X=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},bX=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},wX=function(e){if(!e.name)return!0;var t=e.form||Dm(e),n=function(s){return t.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(a){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",a.message),!1}var o=bX(i,e.form);return!o||o===e},xX=function(e){return UT(e)&&e.type==="radio"},CX=function(e){return xX(e)&&!wX(e)},EX=function(e){var t,n=e&&Dm(e),i=(t=n)===null||t===void 0?void 0:t.host,o=!1;if(n&&n!==e){var a,s,c;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!o&&i;){var l,d,u;n=Dm(i),i=(l=n)===null||l===void 0?void 0:l.host,o=!!((d=i)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(i))}}return o},h7=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return n===0&&i===0},kX=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=M1.call(e,"details>summary:first-of-type"),a=o?e.parentElement:e;if(M1.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var c=e.parentElement,l=Dm(e);if(c&&!c.shadowRoot&&i(c)===!0)return h7(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=s}if(EX(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return h7(e);return!1},SX=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if(i.tagName==="LEGEND")return M1.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},IX=function(e,t){return!(t.disabled||Nm(t)||yX(t)||kX(t,e)||_X(t)||SX(t))},f7=function(e,t){return!(CX(t)||jT(t)<0||!IX(e,t))},AX=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},TX=function r(e){var t=[],n=[];return e.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,c=vX(s,a),l=a?r(i.candidates):s;c===0?a?t.push.apply(t,l):t.push(s):n.push({documentOrder:o,tabIndex:c,item:i,isScope:a,content:l})}),n.sort(gX).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},BT=function(e,t){t=t||{};var n;return t.getShadowRoot?n=mX([e],t.includeContainer,{filter:f7.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:AX}):n=pX(e,t.includeContainer,f7.bind(null,t)),TX(n)};const RX=j3.useInsertionEffect,PX=RX||(r=>r());function Nl(r){const e=y.useRef(()=>{});return PX(()=>{e.current=r}),y.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}var Sa=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Vm(){return Vm=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Vm.apply(this,arguments)}let Ng=!1,MX=0;const p7=()=>"floating-ui-"+MX++;function $X(){const[r,e]=y.useState(()=>Ng?p7():void 0);return Sa(()=>{r==null&&e(p7())},[]),y.useEffect(()=>{Ng||(Ng=!0)},[]),r}const HX=j3.useId,D0=HX||$X;function ZX(){const r=new Map;return{emit(e,t){var n;(n=r.get(e))==null||n.forEach(i=>i(t))},on(e,t){r.set(e,[...r.get(e)||[],t])},off(e,t){var n;r.set(e,((n=r.get(e))==null?void 0:n.filter(i=>i!==t))||[])}}}const OX=y.createContext(null),LX=y.createContext(null),q_=()=>{var r;return((r=y.useContext(OX))==null?void 0:r.id)||null},W_=()=>y.useContext(LX);function cf(r){return"data-floating-ui-"+r}function m7(r){const e=y.useRef(r);return Sa(()=>{e.current=r}),e}const v7=cf("safe-polygon");function Vg(r,e,t){return t&&!PT(t)?0:typeof r=="number"?r:r==null?void 0:r[e]}function DX(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,dataRef:i,events:o,elements:{domReference:a,floating:s},refs:c}=r,{enabled:l=!0,delay:d=0,handleClose:u=null,mouseOnly:h=!1,restMs:f=0,move:p=!0}=e,m=W_(),x=q_(),g=m7(u),v=m7(d),b=y.useRef(),E=y.useRef(),I=y.useRef(),C=y.useRef(),T=y.useRef(!0),O=y.useRef(!1),W=y.useRef(()=>{}),ie=y.useCallback(()=>{var Z;const D=(Z=i.current.openEvent)==null?void 0:Z.type;return(D==null?void 0:D.includes("mouse"))&&D!=="mousedown"},[i]);y.useEffect(()=>{if(!l)return;function Z(D){let{open:q}=D;q||(clearTimeout(E.current),clearTimeout(C.current),T.current=!0)}return o.on("openchange",Z),()=>{o.off("openchange",Z)}},[l,o]),y.useEffect(()=>{if(!l||!g.current||!t)return;function Z(q){ie()&&n(!1,q,"hover")}const D=us(s).documentElement;return D.addEventListener("mouseleave",Z),()=>{D.removeEventListener("mouseleave",Z)}},[s,t,n,l,g,ie]);const re=y.useCallback(function(Z,D,q){D===void 0&&(D=!0),q===void 0&&(q="hover");const L=Vg(v.current,"close",b.current);L&&!I.current?(clearTimeout(E.current),E.current=setTimeout(()=>n(!1,Z,q),L)):D&&(clearTimeout(E.current),n(!1,Z,q))},[v,n]),ae=y.useCallback(()=>{W.current(),I.current=void 0},[]),F=y.useCallback(()=>{if(O.current){const Z=us(c.floating.current).body;Z.style.pointerEvents="",Z.removeAttribute(v7),O.current=!1}},[c]);return y.useEffect(()=>{if(!l)return;function Z(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function D(P){if(clearTimeout(E.current),T.current=!1,h&&!PT(b.current)||f>0&&Vg(v.current,"open")===0)return;const j=Vg(v.current,"open",b.current);j?E.current=setTimeout(()=>{n(!0,P,"hover")},j):n(!0,P,"hover")}function q(P){if(Z())return;W.current();const j=us(s);if(clearTimeout(C.current),g.current){t||clearTimeout(E.current),I.current=g.current({...r,tree:m,x:P.clientX,y:P.clientY,onClose(){F(),ae(),re(P,!0,"safe-polygon")}});const ne=I.current;j.addEventListener("mousemove",ne),W.current=()=>{j.removeEventListener("mousemove",ne)};return}(b.current==="touch"?!Vd(s,P.relatedTarget):!0)&&re(P)}function L(P){Z()||g.current==null||g.current({...r,tree:m,x:P.clientX,y:P.clientY,onClose(){F(),ae(),re(P)}})(P)}if(zt(a)){const P=a;return t&&P.addEventListener("mouseleave",L),s==null||s.addEventListener("mouseleave",L),p&&P.addEventListener("mousemove",D,{once:!0}),P.addEventListener("mouseenter",D),P.addEventListener("mouseleave",q),()=>{t&&P.removeEventListener("mouseleave",L),s==null||s.removeEventListener("mouseleave",L),p&&P.removeEventListener("mousemove",D),P.removeEventListener("mouseenter",D),P.removeEventListener("mouseleave",q)}}},[a,s,l,r,h,f,p,re,ae,F,n,t,m,v,g,i]),Sa(()=>{var Z;if(l&&t&&(Z=g.current)!=null&&Z.__options.blockPointerEvents&&ie()){const q=us(s).body;if(q.setAttribute(v7,""),q.style.pointerEvents="none",O.current=!0,zt(a)&&s){var D;const L=a,P=m==null||(D=m.nodesRef.current.find(j=>j.id===x))==null||(D=D.context)==null?void 0:D.elements.floating;return P&&(P.style.pointerEvents=""),L.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{L.style.pointerEvents="",s.style.pointerEvents=""}}}},[l,t,x,s,a,m,g,ie]),Sa(()=>{t||(b.current=void 0,ae(),F())},[t,ae,F]),y.useEffect(()=>()=>{ae(),clearTimeout(E.current),clearTimeout(C.current),F()},[l,a,ae,F]),y.useMemo(()=>{if(!l)return{};function Z(D){b.current=D.pointerType}return{reference:{onPointerDown:Z,onPointerEnter:Z,onMouseMove(D){t||f===0||(clearTimeout(C.current),C.current=setTimeout(()=>{T.current||n(!0,D.nativeEvent,"hover")},f))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(D){re(D.nativeEvent,!1)}}}},[l,f,t,n,re])}function zg(r,e){let t=r.filter(i=>{var o;return i.parentId===e&&((o=i.context)==null?void 0:o.open)}),n=t;for(;n.length;)n=r.filter(i=>{var o;return(o=n)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),t=t.concat(n);return t}const qT=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function WT(r,e){const t=BT(r,qT());e==="prev"&&t.reverse();const n=t.indexOf(l3(us(r)));return t.slice(n+1)[0]}function NX(){return WT(document.body,"next")}function VX(){return WT(document.body,"prev")}function Fg(r,e){const t=e||r.currentTarget,n=r.relatedTarget;return!n||!Vd(t,n)}function zX(r){BT(r,qT()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function FX(r){r.querySelectorAll("[data-tabindex]").forEach(t=>{const n=t.dataset.tabindex;delete t.dataset.tabindex,n?t.setAttribute("tabindex",n):t.removeAttribute("tabindex")})}const GT={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 jX;function g7(r){r.key==="Tab"&&(r.target,clearTimeout(jX))}const y7=y.forwardRef(function(e,t){const[n,i]=y.useState();Sa(()=>(RT()&&i("button"),document.addEventListener("keydown",g7),()=>{document.removeEventListener("keydown",g7)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[cf("focus-guard")]:"",style:GT};return y.createElement("span",Vm({},e,o))}),KT=y.createContext(null);function UX(r){let{id:e,root:t}=r===void 0?{}:r;const[n,i]=y.useState(null),o=D0(),a=BX(),s=y.useMemo(()=>({id:e,root:t,portalContext:a,uniqueId:o}),[e,t,a,o]),c=y.useRef();return Sa(()=>()=>{n==null||n.remove()},[n,s]),Sa(()=>{if(c.current===s)return;c.current=s;const{id:l,root:d,portalContext:u,uniqueId:h}=s,f=l?document.getElementById(l):null,p=cf("portal");if(f){const m=document.createElement("div");m.id=h,m.setAttribute(p,""),f.appendChild(m),i(m)}else{let m=d||(u==null?void 0:u.portalNode);m&&!zt(m)&&(m=m.current),m=m||document.body;let x=null;l&&(x=document.createElement("div"),x.id=l,m.appendChild(x));const g=document.createElement("div");g.id=h,g.setAttribute(p,""),m=x||m,m.appendChild(g),i(g)}},[s]),n}function YT(r){let{children:e,id:t,root:n=null,preserveTabOrder:i=!0}=r;const o=UX({id:t,root:n}),[a,s]=y.useState(null),c=y.useRef(null),l=y.useRef(null),d=y.useRef(null),u=y.useRef(null),h=!!a&&!a.modal&&a.open&&i&&!!(n||o);return y.useEffect(()=>{if(!o||!i||a!=null&&a.modal)return;function f(p){o&&Fg(p)&&(p.type==="focusin"?FX:zX)(o)}return o.addEventListener("focusin",f,!0),o.addEventListener("focusout",f,!0),()=>{o.removeEventListener("focusin",f,!0),o.removeEventListener("focusout",f,!0)}},[o,i,a==null?void 0:a.modal]),y.createElement(KT.Provider,{value:y.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:u,portalNode:o,setFocusManagerState:s}),[i,o])},h&&o&&y.createElement(y7,{"data-type":"outside",ref:c,onFocus:f=>{if(Fg(f,o)){var p;(p=d.current)==null||p.focus()}else{const m=VX()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus()}}}),h&&o&&y.createElement("span",{"aria-owns":o.id,style:GT}),o&&nl.createPortal(e,o),h&&o&&y.createElement(y7,{"data-type":"outside",ref:l,onFocus:f=>{if(Fg(f,o)){var p;(p=u.current)==null||p.focus()}else{const m=NX()||(a==null?void 0:a.refs.domReference.current);m==null||m.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,f.nativeEvent))}}}))}const BX=()=>y.useContext(KT),jg=new Set,qX=y.forwardRef(function(e,t){let{lockScroll:n=!1,...i}=e;const o=D0();return Sa(()=>{if(!n)return;jg.add(o);const a=/iP(hone|ad|od)|iOS/.test(V_()),s=document.body.style,l=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=s.left?parseFloat(s.left):window.pageXOffset,h=s.top?parseFloat(s.top):window.pageYOffset;if(s.overflow="hidden",d&&(s[l]=d+"px"),a){var f,p;const m=((f=window.visualViewport)==null?void 0:f.offsetLeft)||0,x=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(s,{position:"fixed",top:-(h-Math.floor(x))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{jg.delete(o),jg.size===0&&(Object.assign(s,{overflow:"",[l]:""}),a&&(Object.assign(s,{position:"",top:"",left:"",right:""}),window.scrollTo(u,h)))}},[o,n]),y.createElement("div",Vm({ref:t},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))}),WX={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},GX={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},_7=r=>{var e,t;return{escapeKey:typeof r=="boolean"?r:(e=r==null?void 0:r.escapeKey)!=null?e:!1,outsidePress:typeof r=="boolean"?r:(t=r==null?void 0:r.outsidePress)!=null?t:!0}};function QT(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,nodeId:i,elements:{reference:o,domReference:a,floating:s},dataRef:c}=r,{enabled:l=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:h="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:x,capture:g}=e,v=W_(),b=Nl(typeof u=="function"?u:()=>!1),E=typeof u=="function"?b:u,I=y.useRef(!1),C=y.useRef(!1),{escapeKey:T,outsidePress:O}=_7(x),{escapeKey:W,outsidePress:ie}=_7(g),re=Nl(D=>{if(!t||!l||!d||D.key!=="Escape")return;const q=v?zg(v.nodesRef.current,i):[];if(!T&&(D.stopPropagation(),q.length>0)){let L=!0;if(q.forEach(P=>{var j;if((j=P.context)!=null&&j.open&&!P.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}n(!1,PQ(D)?D.nativeEvent:D,"escape-key")}),ae=Nl(D=>{var q;const L=()=>{var P;re(D),(P=Dl(D))==null||P.removeEventListener("keydown",L)};(q=Dl(D))==null||q.addEventListener("keydown",L)}),F=Nl(D=>{const q=I.current;I.current=!1;const L=C.current;if(C.current=!1,h==="click"&&L||q||typeof E=="function"&&!E(D))return;const P=Dl(D),j="["+cf("inert")+"]",oe=us(s).querySelectorAll(j);let ne=zt(P)?P:null;for(;ne&&!Nd(ne);){const _e=Qc(ne);if(Nd(_e)||!zt(_e))break;ne=_e}if(oe.length&&zt(P)&&!MQ(P)&&!Vd(P,s)&&Array.from(oe).every(_e=>!Vd(ne,_e)))return;if(hi(P)&&s){const _e=P.clientWidth>0&&P.scrollWidth>P.clientWidth,nt=P.clientHeight>0&&P.scrollHeight>P.clientHeight;let vt=nt&&D.offsetX>P.clientWidth;if(nt&&fi(P).direction==="rtl"&&(vt=D.offsetX<=P.offsetWidth-P.clientWidth),vt||_e&&D.offsetY>P.clientHeight)return}const he=v&&zg(v.nodesRef.current,i).some(_e=>{var nt;return Dg(D,(nt=_e.context)==null?void 0:nt.elements.floating)});if(Dg(D,s)||Dg(D,a)||he)return;const st=v?zg(v.nodesRef.current,i):[];if(st.length>0){let _e=!0;if(st.forEach(nt=>{var vt;if((vt=nt.context)!=null&&vt.open&&!nt.context.dataRef.current.__outsidePressBubbles){_e=!1;return}}),!_e)return}n(!1,D,"outside-press")}),Z=Nl(D=>{var q;const L=()=>{var P;F(D),(P=Dl(D))==null||P.removeEventListener(h,L)};(q=Dl(D))==null||q.addEventListener(h,L)});return y.useEffect(()=>{if(!t||!l)return;c.current.__escapeKeyBubbles=T,c.current.__outsidePressBubbles=O;function D(P){n(!1,P,"ancestor-scroll")}const q=us(s);d&&q.addEventListener("keydown",W?ae:re,W),E&&q.addEventListener(h,ie?Z:F,ie);let L=[];return m&&(zt(a)&&(L=Cs(a)),zt(s)&&(L=L.concat(Cs(s))),!zt(o)&&o&&o.contextElement&&(L=L.concat(Cs(o.contextElement)))),L=L.filter(P=>{var j;return P!==((j=q.defaultView)==null?void 0:j.visualViewport)}),L.forEach(P=>{P.addEventListener("scroll",D,{passive:!0})}),()=>{d&&q.removeEventListener("keydown",W?ae:re,W),E&&q.removeEventListener(h,ie?Z:F,ie),L.forEach(P=>{P.removeEventListener("scroll",D)})}},[c,s,a,o,d,E,h,t,n,m,l,T,O,re,W,ae,F,ie,Z]),y.useEffect(()=>{I.current=!1},[E,h]),y.useMemo(()=>l?{reference:{onKeyDown:re,[WX[p]]:D=>{f&&n(!1,D.nativeEvent,"reference-press")}},floating:{onKeyDown:re,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[GX[h]]:()=>{I.current=!0}}}:{},[l,f,h,p,n,re])}function XT(r){var e;r===void 0&&(r={});const{open:t=!1,onOpenChange:n,nodeId:i}=r,[o,a]=y.useState(null),s=((e=r.elements)==null?void 0:e.reference)||o,c=uX(r),l=W_(),d=q_()!=null,u=Nl((I,C,T)=>{I&&(f.current.openEvent=C),p.emit("openchange",{open:I,event:C,reason:T,nested:d}),n==null||n(I,C,T)}),h=y.useRef(null),f=y.useRef({}),p=y.useState(()=>ZX())[0],m=D0(),x=y.useCallback(I=>{const C=zt(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),contextElement:I}:I;c.refs.setReference(C)},[c.refs]),g=y.useCallback(I=>{(zt(I)||I===null)&&(h.current=I,a(I)),(zt(c.refs.reference.current)||c.refs.reference.current===null||I!==null&&!zt(I))&&c.refs.setReference(I)},[c.refs]),v=y.useMemo(()=>({...c.refs,setReference:g,setPositionReference:x,domReference:h}),[c.refs,g,x]),b=y.useMemo(()=>({...c.elements,domReference:s}),[c.elements,s]),E=y.useMemo(()=>({...c,refs:v,elements:b,dataRef:f,nodeId:i,floatingId:m,events:p,open:t,onOpenChange:u}),[c,i,m,p,t,u,v,b]);return Sa(()=>{const I=l==null?void 0:l.nodesRef.current.find(C=>C.id===i);I&&(I.context=E)}),y.useMemo(()=>({...c,context:E,refs:v,elements:b}),[c,v,b,E])}function KX(r,e){e===void 0&&(e={});const{open:t,onOpenChange:n,events:i,refs:o,elements:{floating:a,domReference:s}}=r,{enabled:c=!0,visibleOnly:l=!0}=e,d=y.useRef(!1),u=y.useRef(),h=y.useRef(!0);return y.useEffect(()=>{if(!c)return;const f=Kn(s);function p(){!t&&hi(s)&&s===l3(us(s))&&(d.current=!0)}function m(){h.current=!0}return f.addEventListener("blur",p),f.addEventListener("keydown",m,!0),()=>{f.removeEventListener("blur",p),f.removeEventListener("keydown",m,!0)}},[s,t,c]),y.useEffect(()=>{if(!c)return;function f(p){let{reason:m}=p;(m==="reference-press"||m==="escape-key")&&(d.current=!0)}return i.on("openchange",f),()=>{i.off("openchange",f)}},[i,c]),y.useEffect(()=>()=>{clearTimeout(u.current)},[]),y.useMemo(()=>c?{reference:{onPointerDown(f){AQ(f.nativeEvent)||(h.current=!1)},onMouseLeave(){d.current=!1},onFocus(f){if(d.current)return;const p=Dl(f.nativeEvent);if(l&&zt(p))try{if(RT()&&TQ())throw Error();if(!p.matches(":focus-visible"))return}catch{if(!h.current&&!HQ(p))return}n(!0,f.nativeEvent,"focus")},onBlur(f){d.current=!1;const p=f.relatedTarget,m=zt(p)&&p.hasAttribute(cf("focus-guard"))&&p.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{const x=l3(s?s.ownerDocument:document);!p&&x===s||Vd(o.floating.current,p)||Vd(s,p)||m||n(!1,f.nativeEvent,"focus")})}}}:{},[c,l,s,o,n])}const b7="active",w7="selected";function Ug(r,e,t){const n=new Map,i=t==="item";let o=r;if(i&&r){const{[b7]:a,[w7]:s,...c}=r;o=c}return{...t==="floating"&&{tabIndex:-1},...o,...e.map(a=>{const s=a?a[t]:null;return typeof s=="function"?r?s(r):null:s}).concat(r).reduce((a,s)=>(s&&Object.entries(s).forEach(c=>{let[l,d]=c;if(!(i&&[b7,w7].includes(l)))if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof d=="function"){var u;(u=n.get(l))==null||u.push(d),a[l]=function(){for(var h,f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return(h=n.get(l))==null?void 0:h.map(x=>x(...p)).find(x=>x!==void 0)}}}else a[l]=d}),a),{})}}function JT(r){r===void 0&&(r=[]);const e=r,t=y.useCallback(o=>Ug(o,r,"reference"),e),n=y.useCallback(o=>Ug(o,r,"floating"),e),i=y.useCallback(o=>Ug(o,r,"item"),r.map(o=>o==null?void 0:o.item));return y.useMemo(()=>({getReferenceProps:t,getFloatingProps:n,getItemProps:i}),[t,n,i])}const YX=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function QX(r,e){var t;e===void 0&&(e={});const{open:n,floatingId:i}=r,{enabled:o=!0,role:a="dialog"}=e,s=(t=YX.get(a))!=null?t:a,c=D0(),d=q_()!=null;return y.useMemo(()=>{if(!o)return{};const u={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?{reference:{["aria-"+(a==="label"?"labelledby":"describedby")]:n?i:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":n?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:c},...s==="menu"&&d&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...s==="menu"&&{"aria-labelledby":c}},item(h){let{active:f,selected:p}=h;const m={role:"option",...f&&{id:i+"-option"}};switch(a){case"select":return{...m,"aria-selected":f&&p};case"combobox":return{...m,...f&&{"aria-selected":!0}}}return{}}}},[o,a,s,n,i,c,d])}var XX=["title","placement","children","style","enterDelay"],JX=G.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;}"],Tn(va.typography),fo(va.spacings),ci(va.border),va.background),eJ=G.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],va.entities.arrow.width,va.entities.arrow.height),tJ=G.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],va.entities.arrow.width,va.entities.arrow.height,va.background),rJ=y.forwardRef(function(e,t){var n=e.title,i=e.placement,o=i===void 0?"bottom":i,a=e.children,s=e.style,c=e.enterDelay,l=c===void 0?100:c,d=He(e,XX),u=y.useRef(null),h=y.useState(!1),f=Yn(h,2),p=f[0],m=f[1],x=n!=="",g=XT({placement:o,open:p,onOpenChange:m,middleware:[Z0(14),L0(),O0({padding:8}),dX({element:u})],whileElementsMounted:NT}),v=g.x,b=g.y,E=g.refs,I=g.strategy,C=g.context,T=g.middlewareData.arrow,O=T===void 0?{}:T,W=O.x,ie=O.y,re=g.placement,ae=y.useMemo(function(){return jo(E.setReference,a==null?void 0:a.ref)},[E.setReference,a==null?void 0:a.ref]),F=y.useMemo(function(){return jo(E.setFloating,t)},[E.setFloating,t]),Z=JT([DX(C,{delay:{open:l}}),KX(C),QX(C,{role:"tooltip"}),QT(C)]),D=Z.getReferenceProps,q=Z.getFloatingProps;y.useEffect(function(){var oe={top:"bottom",right:"left",bottom:"top",left:"right"}[re.split("-")[0]],ne="none";switch(oe){case"right":ne="rotateY(180deg)";break;case"left":ne="none";break;case"top":ne="rotate(90deg)";break;case"bottom":ne="rotate(-90deg)";break}if(u.current){var he;Object.assign(u.current.style,(he={left:W!=null?"".concat(W,"px"):"",top:ie!=null?"".concat(ie,"px"):"",right:"",bottom:""},Cm(he,oe,"-6px"),Cm(he,"transform",ne),he))}});var L=y.cloneElement(a,R({},D(R({ref:ae},a.props)))),P=wT(E.domReference.current),j=w.jsxs(JX,R(R(R({},d),q({ref:F,style:R(R({},s),{},{position:I,top:b||0,left:v||0})})),{},{children:[n,w.jsx(eJ,{ref:u,children:w.jsx(tJ,{className:"arrowSvg",children:w.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 w.jsxs(w.Fragment,{children:[P?w.jsx(w.Fragment,{children:x&&p&&j}):w.jsx(YT,{id:"eds-tooltip-container",children:x&&p&&j}),L]})}),nJ=["children","multiple","selectedIndexes","onChange"],iJ=y.forwardRef(function(e,t){var n=e.children,i=e.multiple,o=e.selectedIndexes,a=e.onChange,s=He(e,nJ),c=y.useState(o||[]),l=Yn(c,2),d=l[0],u=l[1];y.useEffect(function(){Array.isArray(o)&&u(o)},[o]);function h(p,m,x){var g=p;if(y.isValidElement(p)&&p.type===CT){var v={"aria-pressed":m?!0:void 0,variant:m?"contained":"outlined",onClick:function(E){var I,C;(I=g.props)===null||I===void 0||(C=I.onClick)===null||C===void 0||C.call(I,E);var T=[x];i&&(T=d.includes(x)?d.filter(function(O){return O!==x}):[].concat(v_(d),[x])),u(T),a&&a(T)}};return y.cloneElement(p,v)}}var f=y.Children.map(n,function(p,m){var x=d.includes(m),g=p;if(y.isValidElement(p)&&p.type===rJ){var v=y.Children.map(g.props.children,function(b){return h(b,x,m)});return y.cloneElement(g,null,v[0])}else return h(g,x,m)});return w.jsx(ET,R(R({ref:t},s),{},{children:f}))}),gr=CT;gr.Group=ET;gr.Toggle=iJ;gr.Group.displayName="Button.Group";gr.Toggle.displayName="Button.Toggle";function oJ(r){if(r==null)throw new TypeError("Cannot destructure "+r)}var f3={},x7=0,aJ=function(e){f3=R(R({},f3),e)},sJ=function(e){return x7+=1,{icon:f3[e],count:x7}},cJ=["size","color","name","rotation","title","data"],lJ=G.svg.attrs(function(r){var e=r.$height,t=r.$width,n=r.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:"".concat(e,"px"),width:"".concat(t,"px"),fill:n}}).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],function(r){var e=r.$rotation;return e?"rotate(".concat(e,"deg)"):"none"}),C7=G.path.attrs(function(r){var e=r.$height,t=r.$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"})([""]),dJ=function(e){return{icon:e,count:Math.floor(Math.random()*1e3)}},uJ=function(e,t,n){var i=t?dJ(t):sJ(e),o=i.icon,a=i.count;if(n<24){var s;o=((s=o.sizes)===null||s===void 0?void 0:s.small)||o}return{icon:o,count:a}},hJ=y.forwardRef(function(e,t){var n=e.size,i=e.color,o=i===void 0?"currentColor":i,a=e.name,s=e.rotation,c=e.title,l=e.data,d=He(e,cJ),u=uJ(a,l,n),h=u.icon,f=u.count;if(typeof h>"u")throw Error('Icon "'.concat(a,'" not found. Have you added it using Icon.add() or using data props?'));var p=n||parseInt(h.width),m=n||parseInt(h.height),x={$height:p,$width:m,fill:o,viewBox:"0 0 ".concat(m," ").concat(p),$rotation:s,name:a,"aria-hidden":!0},g={$height:h.height?parseInt(h.height):n,$size:n||parseInt(h.height)},v="";return c&&(v="".concat(h.prefix,"-").concat(h.name,"-").concat(f),x=R(R({},x),{},{title:c,role:"img","aria-hidden":void 0,"aria-labelledby":v})),w.jsxs(lJ,R(R(R({},x),d),{},{ref:t,children:[c&&w.jsx("title",{id:v,children:c}),Array.isArray(h.svgPathData)?h.svgPathData.map(function(b){return w.jsx(C7,R(R({},g),{},{d:b}),b)}):w.jsx(C7,R(R({"data-testid":"eds-icon-path"},g),{},{d:h.svgPathData}))]}))}),Et=hJ;Et.add=aJ;var fJ={name:"close",prefix:"eds",height:"24",width:"24",svgPathData:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z",sizes:{small:{name:"close_small",prefix:"eds",height:"18",width:"18",svgPathData:"M14 5.007 12.993 4 9 7.993 5.007 4 4 5.007 7.993 9 4 12.993 5.007 14 9 10.007 12.993 14 14 12.993 10.007 9 14 5.007Z"}}},pJ={name:"search",prefix:"eds",height:"24",width:"24",svgPathData:"M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27Zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5Z",sizes:{small:{name:"search_small",prefix:"eds",height:"18",width:"18",svgPathData:"M11.224 10.691h.592l3.743 3.75-1.118 1.118-3.75-3.743v-.592l-.202-.21a4.853 4.853 0 0 1-3.173 1.177 4.875 4.875 0 1 1 4.875-4.875 4.853 4.853 0 0 1-1.177 3.173l.21.202ZM3.94 7.316a3.37 3.37 0 0 0 3.375 3.375 3.37 3.37 0 0 0 3.375-3.375 3.37 3.37 0 0 0-3.375-3.375 3.37 3.37 0 0 0-3.375 3.375Z"}}},mJ={name:"checkbox",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0 1 0-1.41-1.41L10 14.17l-2.88-2.88a.996.996 0 1 0-1.41 1.41l3.59 3.59Z",sizes:{small:{name:"checkbox_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.75 2h10.5c.825 0 1.75.925 1.75 1.75v10.5c0 .825-.925 1.75-1.75 1.75H3.75c-.825 0-1.662-.925-1.662-1.75V3.75c0-.825.837-1.75 1.662-1.75Zm3.225 10.217a.747.747 0 0 0 1.057 0l5.685-5.692a.747.747 0 1 0-1.057-1.058l-5.16 5.16-2.16-2.16a.747.747 0 1 0-1.058 1.058l2.693 2.692Z"}}},vJ={name:"checkbox_outline",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm1 16h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1Z",sizes:{small:{name:"checkbox_outline_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75v10.5c0 .825-1.175 1.75-2 1.75H3.5c-.825 0-1.5-.925-1.5-1.75V3.75C2 2.925 2.675 2 3.5 2Zm1.214 12h8.572a.716.716 0 0 0 .714-.714V4.714A.716.716 0 0 0 13.286 4H4.714A.716.716 0 0 0 4 4.714v8.572c0 .393.321.714.714.714Z"}}},gJ={name:"checkbox_indeterminate",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm3 10h8c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1Z",sizes:{small:{name:"checkbox_indeterminate_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75V14c0 .825-1.175 2-2 2H4c-.825 0-2-1.175-2-2V3.75C2 2.925 2.675 2 3.5 2Zm2.3 8h6.4c.44 0 .8-.45.8-1s-.36-1-.8-1H5.8c-.44 0-.8.45-.8 1s.36 1 .8 1Z"}}},N0=y.createContext({variant:"minWidth",scrollable:!1,handleChange:function(){return null},activeTab:0,tabsId:"",tabsFocused:!1}),yJ=N0.Provider;N0.Consumer;var G_=te.colors,_J=G_.text.static_icons__tertiary.rgba,bJ=G_.ui.background__medium.rgba,V0=G_.interactive,E7=V0.focus.rgba,wJ=V0.primary__hover_alt.rgba,k7=V0.primary__resting.rgba,xJ=V0.primary__hover.rgba,S7=te.clickbounds.default__base,fp=te.spacings.comfortable.medium,Bg=te.interactions.focused.width,eR=te.typography.navigation,CJ=eR.menu_tabs,EJ=eR.menu_title,kJ={entities:{panel:{spacings:{top:fp,bottom:fp},states:{focus:{outline:{type:"outline",width:Bg,style:"dashed",color:E7}}},typography:R({},EJ)},tab:{background:"transparent",height:S7,clickbound:{height:S7,offset:{top:"2px"}},spacings:{left:fp,right:fp},typography:R({color:_J,textAlign:"center"},CJ),border:{type:"bordergroup",bottom:{color:bJ,style:"solid",width:"2px"}},states:{disabled:{border:{type:"border",width:0,color:"transparent",style:"solid"}},hover:{background:wJ},focus:{outline:{type:"outline",width:Bg,offset:"-".concat(parseInt(Bg),"px"),style:"dashed",color:E7}},active:{typography:{color:k7},border:{type:"bordergroup",bottom:{color:k7,style:"solid",width:"2px"}},states:{hover:{typography:{color:xJ}}}}}}},modes:{compact:{}}},SJ=["activeTab","onChange","onBlur","onFocus","variant","scrollable","id"],IJ=y.forwardRef(function(e,t){var n=e.activeTab,i=n===void 0?0:n,o=e.onChange,a=o===void 0?function(){return null}:o,s=e.onBlur,c=e.onFocus,l=e.variant,d=l===void 0?"minWidth":l,u=e.scrollable,h=u===void 0?!1:u,f=e.id,p=He(e,SJ),m=bT(f,"tabs"),x=y.useRef(null),g=y.useMemo(function(){return jo(x,t)},[x,t]),v=y.useState(!1),b=Yn(v,2),E=b[0],I=b[1],C=y.useState(!1),T=Yn(C,2),O=T[0],W=T[1],ie,re=function(P){W(!1),x.current&&x.current.removeEventListener("keyup",F),ie=setTimeout(function(){E&&I(!1)},0),s&&s(P)},ae=function(P){P.target.getAttribute("role")==="tab"&&(clearTimeout(ie),!E&&(O||x.current&&(W(!0),x.current.addEventListener("keyup",F,{once:!0,capture:!0})),c&&c(P)))},F=function(P){W(!1),P.key==="Tab"&&I(!0)};y.useEffect(function(){var L=x.current;return function(){L&&L.removeEventListener("keyup",F)}},[]);var Z=po(),D=Z.density,q=Bo({density:D},kJ);return w.jsx(Pa,{theme:q,children:w.jsx(yJ,{value:{activeTab:i,handleChange:a,tabsId:m,variant:d,scrollable:h,tabsFocused:E},children:w.jsx("div",R(R({ref:g},p),{},{onBlur:re,onFocus:ae}))})})}),AJ=["children"],TJ={fullWidth:"minmax(1%, 360px)",minWidth:"max-content"},RJ=G.div.attrs(function(){return{role:"tablist"}}).withConfig({displayName:"TabList__StyledTabList",componentId:"sc-1g1p5i1-0"})(["display:grid;grid-auto-flow:column;grid-auto-columns:",";overflow-x:",";scroll-snap-type:x mandatory;overscroll-behavior-x:contain;@media (prefers-reduced-motion:no-preference){scroll-behavior:smooth;}@media (hover:none){overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:0;& ::-webkit-scrollbar{width:0;height:0;}}"],function(r){var e=r.$variant;return TJ[e]},function(r){var e=r.$scrollable;return e?"auto":"hidden"}),PJ=y.forwardRef(function(e,t){var n=e.children,i=n===void 0?[]:n,o=He(e,AJ),a=y.useContext(N0),s=a.activeTab,c=a.handleChange,l=a.tabsId,d=a.variant,u=d===void 0?"minWidth":d,h=a.scrollable,f=h===void 0?!1:h,p=a.tabsFocused,m=y.useRef(),x=y.useState(!1),g=Yn(x,2),v=g[0],b=g[1],E=y.useCallback(function(re){(re!==null&&p||re!==null&&v)&&(b(!1),re.focus())},[v,p]),I=y.Children.map(i,function(re,ae){var F=re.props,Z=F.value,D=Z?Z===s:ae===s,q=D?jo(re.ref,E):re.ref;return D&&(m.current=ae),y.cloneElement(re,{id:"".concat(l,"-tab-").concat(ae+1),"aria-controls":"".concat(l,"-panel-").concat(ae+1),active:D,$index:ae,onClick:function(){return c(ae)},ref:q})}),C=I.filter(function(re){var ae=re.props;return!ae.disabled}).map(function(re){var ae=re.props;return ae.$index}),T=C[0],O=C[C.length-1],W=function(ae,F){var Z=ae==="left"?1:-1,D=C[C.indexOf(m.current)-Z];b(!0),c(D===void 0?F:D)},ie=function(ae){var F=ae.key;F==="ArrowLeft"&&(ae.preventDefault(),W("left",O)),F==="ArrowRight"&&(ae.preventDefault(),W("right",T))};return w.jsx(RJ,R(R({onKeyDown:ie,ref:t},o),{},{$variant:u,$scrollable:f,children:I}))}),MJ=["active","value"],$J=G.button.attrs(function(r){var e=r.$active,t=e===void 0?!1:e,n=r.disabled,i=n===void 0?!1:n,o=r.$value;return{type:"button",role:"tab","aria-selected":t,"aria-disabled":i,tabIndex:o||t?0:-1}}).withConfig({displayName:"Tab__StyledTab",componentId:"sc-scjkct-0"})(function(r){var e=r.theme,t=r.$active,n=r.disabled,i=e.entities.tab;return we(["appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;border:none;outline:none;height:",";"," "," color:",";background-color:",";position:relative;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;overflow-x:hidden;scroll-snap-align:end;scroll-snap-stop:always;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:",";","}}"," ",""],i.height,fo(i.spacings),Tn(i.typography),t?i.states.active.typography.color:i.typography.color,i.background,tn(i.states.focus.outline),tn(i.states.focus.outline),t?i.states.active.states.hover.typography.color:i.typography.color,n?we(["background:",";cursor:not-allowed;"],i.states.disabled.background):we(["background:",";cursor:pointer;"],i.states.hover.background),ci(n?i.states.disabled.border:i.border),t&&ci(i.states.active.border))}),HJ=y.forwardRef(function(e,t){var n=e.active,i=e.value,o=He(e,MJ);return w.jsx($J,R({ref:t,$active:n,$value:i},o))}),ZJ=["children","conditionalRender"],OJ=y.forwardRef(function(e,t){var n=e.children,i=e.conditionalRender,o=He(e,ZJ),a=y.useContext(N0),s=a.activeTab,c=a.tabsId,l=y.Children.map(n,function(d,u){return i&&s!==u?null:y.cloneElement(d,{id:"".concat(c,"-panel-").concat(u+1),"aria-labelledby":"".concat(c,"-tab-").concat(u+1),hidden:s!==u})});return w.jsx("div",R(R({ref:t},o),{},{children:l}))}),LJ=G.div.attrs(function(){return{tabIndex:0,role:"tabpanel"}}).withConfig({displayName:"TabPanel__StyledTabPanel",componentId:"sc-e8v1d4-0"})(function(r){var e=r.theme,t=e.entities.panel;return we([""," "," &:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],fo(t.spacings),Tn(t.typography),tn(t.states.focus.outline),tn(t.states.focus.outline))}),DJ=y.forwardRef(function(e,t){var n=ht({},(oJ(e),e));return w.jsx(LJ,R(R({ref:t},n),{},{children:n.children}))}),En=IJ;En.Tab=HJ;En.Panels=OJ;En.Panel=DJ;En.List=PJ;En.Tab.displayName="Tabs.Tab";En.Panels.displayName="Tabs.Panels";En.Panel.displayName="Tabs.Panel";En.List.displayName="Tabs.List";var NJ=te.elevation,VJ=te.colors.ui.background__default.rgba,zJ={background:VJ},FJ=["elevation"],jJ=G.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],zJ.background,function(r){var e=r.$elevation;return e}),z0=y.forwardRef(function(e,t){var n,i=e.elevation,o=i===void 0?"none":i,a=He(e,FJ),s=R(R({},a),{},{$elevation:(n=NJ[o])!==null&&n!==void 0?n:"none"});return w.jsx(jJ,R(R({},s),{},{ref:t}))}),K_=te.typography,UJ=te.colors,BJ=te.interactions.focused.width,qJ=K_.heading,WJ=K_.paragraph,ol=UJ.interactive,GJ=ol.primary__resting.rgba,KJ=ol.secondary__resting.rgba,YJ=ol.danger__resting.rgba,QJ=ol.warning__resting.rgba,XJ=ol.success__resting.rgba,JJ=ol.disabled__text.rgba,eee=ol.focus.rgba,I7={primary:GJ,secondary:KJ,danger:YJ,warning:QJ,success:XJ,disabled:JJ},A7=R(R({},qJ),WJ),T7={states:{focus:{outline:{width:BJ,color:eee,style:"dashed",type:"outline",offset:"2px"}}}},tee=["variant","children","bold","italic","link","lines","color","group","token","as"],ree=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"}},nee=function(e,t){return!t&&A7[e]?A7[e]:K_[t][e]},iee=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof I7[e]>"u"?e:I7[e]},oee=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(t?"_bold":"").concat(n?"_italic":"").concat(i?"_link":"")},aee=G.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(r){var e=r.$typography,t=r.$link;return Tn(e,t)},function(r){var e=r.$color;return we({color:iee(e)})},function(r){var e=r.$lines;return e&&we(["display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;"],e)},function(r){var e=r.$link;return e&&we(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],tn(T7.states.focus.outline),tn(T7.states.focus.outline))}),Di=y.forwardRef(function(e,t){var n=e.variant,i=n===void 0?"body_short":n,o=e.children,a=e.bold,s=e.italic,c=e.link,l=e.lines,d=e.color,u=e.group,h=e.token,f=e.as,p=He(e,tee),m=f||ree(i,c),x=oee(i,a,s,c),g=nee(x,u);if(typeof g>"u")throw new Error('Typography variant not found for variant "'.concat(x,'" ("').concat(i,'") & group "').concat(u||"",'"'));return w.jsx(aee,R(R({as:m,$typography:R(R({},g),h),$link:c,$lines:l,ref:t,$color:d},p),{},{children:o}))}),R7=te.colors,pp=te.spacings.comfortable,see=te.typography.navigation,cee={height:"64px",background:R7.ui.background__default.rgba,typography:see.menu_title,spacings:{left:pp.large,right:pp.large,top:pp.small,bottom:pp.small},border:{type:"bordergroup",bottom:{style:"solid",color:R7.ui.background__light.rgba,width:"2px"}},modes:{compact:{}}},lee=["children","elevation","sticky"],dee=G(z0).withConfig({displayName:"TopBar__StyledTopBar",componentId:"sc-1yj236q-0"})(function(r){var e=r.theme,t=r.$sticky;return we(["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,ci(e.border),fo(e.spacings),Tn(e.typography),t&&we(["position:sticky;top:0;z-index:1100;"]))}),uee=y.forwardRef(function(e,t){var n=e.children,i=e.elevation,o=i===void 0?"none":i,a=e.sticky,s=a===void 0?!0:a,c=He(e,lee),l=po(),d=l.density,u=Bo({density:d},cee),h=R(R({},c),{},{ref:t});return w.jsx(Pa,{theme:u,children:w.jsx(dee,R(R({forwardedAs:"header",elevation:o,$sticky:s},h),{},{children:n}))})}),hee=["children"],fee=G.div.withConfig({displayName:"Actions__StyledActions",componentId:"sc-1251ang-0"})(["grid-area:right;text-align:right;align-items:center;display:flex;"]),pee=y.forwardRef(function(e,t){var n=e.children,i=He(e,hee);return w.jsx(fee,R(R({ref:t},i),{},{children:n}))}),mee=["children"],vee=G.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;"]),gee=y.forwardRef(function(e,t){var n=e.children,i=He(e,mee);return w.jsx(vee,R(R({ref:t},i),{},{children:n}))}),yee=["children"],_ee=G.div.withConfig({displayName:"CustomContent__StyledCustomContent",componentId:"sc-d0e83a-0"})(["grid-area:center;"]),bee=y.forwardRef(function(e,t){var n=e.children,i=He(e,yee);return w.jsx(_ee,R(R({ref:t},i),{},{children:n}))}),Ho=uee;Ho.Actions=pee;Ho.Header=gee;Ho.CustomContent=bee;Ho.Actions.displayName="Topbar.Actions";Ho.Header.displayName="Topbar.Header";Ho.CustomContent.displayName="Topbar.CustomContent";var Wu=te.spacings.comfortable.medium,tR=te.typography,P7=tR.ui.accordion_header,wee=tR.paragraph.body_long,rR=te.colors.ui,xee=rR.background__default.rgba,Cee=rR.background__scrim.rgba,Eee=te.shape.corners.borderRadius,kee={width:"252px",background:xee,typography:P7,border:{type:"border",radius:Eee},spacings:{bottom:Wu},entities:{children:{spacings:{top:Wu,bottom:Wu,left:Wu,right:Wu}},title:{minHeight:"24px",typography:P7},content:{minHeight:"80px",height:"104px",typography:wee},actions:{minHeight:"48px"},scrim:{background:Cee}},modes:{compact:{}}},See=["children","open","onClose","isDismissable","dialogRef"],Iee=G(z0).attrs({"aria-labelledby":"eds-dialog-title","aria-describedby":"eds-dialog-customcontent",elevation:"above_scrim"}).withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-1mewo3f-0"})(function(r){var e=r.theme;return we(["width:",";background:",";display:grid;grid-auto-columns:auto;",";",";grid-gap:",";"],e.width,e.background,Tn(e.typography),ci(e.border),e.spacings.bottom)}),Aee=G.dialog.withConfig({displayName:"Dialog__StyledNativeDialog",componentId:"sc-1mewo3f-1"})(function(r){var e=r.theme;return we(["padding:0;border:0;overflow:visible;overscroll-behavior:contain;",";&::backdrop{background-color:",";}"],ci(e.border),e.entities.scrim.background)}),Tee=y.forwardRef(function(e,t){var n=e.children,i=e.open,o=e.onClose,a=e.isDismissable,s=a===void 0?!1:a,c=e.dialogRef,l=He(e,See),d=po(),u=d.density,h=y.useRef(null),f=Bo({density:u},kee),p=y.useMemo(function(){return jo(h,c)},[h,c]);y.useEffect(function(){if(i){var x;h==null||(x=h.current)===null||x===void 0||x.showModal()}else{var g;h==null||(g=h.current)===null||g===void 0||g.close()}},[i]),JY(i);var m=function(g){var v=g.target;v instanceof HTMLElement&&s&&v.nodeName==="DIALOG"&&o&&o()};return $m("Escape",function(x){x.preventDefault(),s&&o&&i&&o&&o()}),w.jsx(Pa,{theme:f,children:w.jsx(Aee,{ref:p,onMouseDown:m,children:i&&w.jsx(Iee,R(R({},l),{},{ref:t,children:n}))})})}),Ree=["children"],Pee=G.div.withConfig({displayName:"DialogActions__StyledDialogActions",componentId:"sc-16ydtxd-0"})(function(r){var e=r.theme,t=r.children;return we(["align-self:end;justify-self:start;padding:0 "," 0 ",";&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}",""],e.entities.children.spacings.right,e.entities.children.spacings.left,e.entities.children.spacings.top,e.entities.children.spacings.bottom,!t&&we(["min-height:initial;height:'8px';"]))}),Mee=y.forwardRef(function(e,t){var n=e.children,i=He(e,Ree);return w.jsx(Pee,R(R({ref:t},i),{},{children:n}))}),$ee=["children"],Hee=G.div.withConfig({displayName:"DialogTitle__StyledDialogTitle",componentId:"sc-1t3jljt-0"})(function(r){var e=r.theme,t=r.children;return we([""," min-height:",";align-self:end;justify-self:start;margin-right:",";",""],Tn(e.entities.title.typography),e.entities.title.minHeight,e.entities.children.spacings.right,!t&&we(["min-height:initial;height:'8px';"]))}),Zee=y.forwardRef(function(e,t){var n=e.children,i=He(e,$ee);return w.jsx(w.Fragment,{children:w.jsx(Hee,R(R({id:"eds-dialog-title",ref:t},i),{},{children:n}))})}),Y_=te.colors.ui,Oee=Y_.background__default.rgba,Lee=Y_.background__light.rgba,Dee=Y_.background__medium.rgba,nR=te.spacings.comfortable,M7=nR.small,$7=nR.medium,iR={lighter:{background:Oee},light:{background:Lee},mediumColor:{background:Dee}},Nee={spacings:{top:M7,bottom:M7}},Vee={spacings:{top:$7,bottom:$7}};const H7=Object.freeze(Object.defineProperty({__proto__:null,divider:iR,medium:Vee,small:Nee},Symbol.toStringTag,{value:"Module"}));var zee=["color","variant","size"],Fee=iR,jee=G.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1d8osde-0"})(function(r){var e=r.$backgroundColor,t=r.$marginTop,n=r.$marginBottom,i=r.$dividerHeight;return we(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],e,t,n,i,i)}),cu=y.forwardRef(function(e,t){var n=e.color,i=n===void 0?"medium":n,o=e.variant,a=o===void 0?"medium":o,s=e.size,c=s===void 0?"1":s,l=He(e,zee),d=i==="medium"?"mediumColor":i,u=R({$backgroundColor:Fee[d].background,$marginTop:H7[a].spacings.top,$marginBottom:H7[a].spacings.bottom,$dividerHeight:parseInt(c)},l);return w.jsx(jee,R(R({},u),{},{ref:t}))}),Uee=["children","scrollable"],Bee=G.div.withConfig({displayName:"DialogContent__StyledDialogContent",componentId:"sc-1tze18k-0"})(function(r){var e=r.theme,t=r.$scrollable;return we(["--content-spacing-top:",";"," min-height:",";align-self:stretch;justify-self:stretch;padding:0 "," 0 ",";&:first-child{padding-top:var(--content-spacing-top);}&:last-child{padding-bottom:",";}",""],e.entities.children.spacings.top,Tn(e.entities.content.typography),e.entities.content.minHeight,e.entities.children.spacings.right,e.entities.children.spacings.left,e.entities.children.spacings.bottom,t&&we(["&:not(:first-child){margin-top:calc(var(--content-spacing-top) * -1);}padding-top:var(--content-spacing-top);margin-bottom:calc(var(--content-spacing-top) * -1);padding-bottom:var(--content-spacing-top);min-height:initial;height:",";overflow-y:auto;"],e.entities.content.height))}),qee=G(cu).withConfig({displayName:"DialogContent__StyledDivider",componentId:"sc-1tze18k-1"})(["width:100%;margin:0;"]),oR=y.forwardRef(function(e,t){var n=e.children,i=e.scrollable,o=i===void 0?!1:i,a=He(e,Uee),s=R({$scrollable:o,ref:t},a);return w.jsxs(w.Fragment,{children:[w.jsx(Bee,R(R({id:"eds-dialog-customcontent"},s),{},{children:n})),n&&o&&w.jsx(qee,{color:"medium",variant:"small"})]})}),Wee=["children"],Gee=G.div.withConfig({displayName:"DialogHeader__StyledDialogHeader",componentId:"sc-mbwcos-0"})(function(r){var e=r.theme;return we(["display:flex;justify-content:space-between;align-items:center;padding:"," "," 0 ",";"],e.entities.children.spacings.top,e.entities.children.spacings.right,e.entities.children.spacings.left)}),Kee=G(cu).withConfig({displayName:"DialogHeader__StyledDivider",componentId:"sc-mbwcos-1"})(["margin-bottom:0;"]),Yee=y.forwardRef(function(e,t){var n=e.children,i=He(e,Wee),o=R(R({},i),{},{ref:t});return w.jsxs("div",R(R({},o),{},{children:[w.jsx(Gee,{children:n}),w.jsx(Kee,{variant:"small",color:"medium"})]}))}),cr=Tee;cr.Actions=Mee;cr.Title=Zee;cr.CustomContent=oR;cr.Content=oR;cr.Header=Yee;cr.Actions.displayName="Dialog.Actions";cr.Title.displayName="Dialog.Title";cr.Content.displayName="Dialog.Content";cr.Header.displayName="Dialog.Header";var Qee=["children"],Xee=G.div.withConfig({displayName:"SnackbarAction__StyledSnackbarAction",componentId:"sc-1v5mjvd-0"})(function(r){var e=r.theme;return we(["display:inline-flex;margin-left:",";margin-top:",";margin-bottom:",";"],e.entities.actions.spacings.left,e.entities.actions.spacings.top,e.entities.actions.spacings.bottom)}),Jee=y.forwardRef(function(e,t){var n=e.children,i=He(e,Qee),o=R(R({},i),{},{ref:t});return w.jsx(Xee,R(R({},o),{},{children:y.Children.only(n)}))}),ete=te.typography.ui.snackbar,Q_=te.colors,tte=Q_.ui.background__overlay.rgba,rte=Q_.text.static_icons__primary_white.rgba,nte=Q_.interactive.link_in_snackbars.rgba,aR=te.spacings.comfortable,mp=aR.medium,ite=aR.x_large,ote=te.clickbounds.default__base,ate=te.shape.button.borderRadius,ste={background:tte,minHeight:ote,border:{type:"border",width:0,radius:ate},entities:{actions:{spacings:{left:ite,top:"-10px",bottom:"-10px"}},button:{typography:{color:nte}}},spacings:{left:mp,bottom:mp,right:mp,top:mp},typography:R(R({},ete),{},{color:rte}),modes:{compact:{}}},cte=["open","autoHideDuration","onClose","placement","children"],lte=G(z0).withConfig({displayName:"Snackbar__StyledSnackbar",componentId:"sc-ac6no8-0"})(function(r){var e=r.theme,t=r.$placement;return we(["position:fixed;background-color:",";"," "," "," min-height:",";box-sizing:border-box;z-index:1400;"," a,button{color:",";}"],e.background,fo(e.spacings),ci(e.border),Tn(e.typography),e.minHeight,{top:t.includes("top")?e.spacings.top:t==="left"||t==="right"?"50%":void 0,bottom:t.includes("bottom")?e.spacings.bottom:void 0,right:t.includes("right")?e.spacings.right:void 0,left:t.includes("left")?e.spacings.left:t==="top"||t==="bottom"?"50%":void 0,transform:t==="left"||t==="right"?"translateY(-50%)":t==="top"||t==="bottom"?"translateX(-50%)":void 0},e.entities.button.typography.color)}),dte=y.forwardRef(function(e,t){var n=e.open,i=n===void 0?!1:n,o=e.autoHideDuration,a=o===void 0?7e3:o,s=e.onClose,c=e.placement,l=c===void 0?"bottom":c,d=e.children,u=He(e,cte),h=y.useState(i),f=Yn(h,2),p=f[0],m=f[1],x=y.useRef();y.useEffect(function(){return m(i),x.current=setTimeout(function(){m(!1),s&&s()},a),function(){return clearTimeout(x.current)}},[i,a,m,s]);var g=R({ref:t,$placement:l},u),v=po(),b=v.density,E=Bo({density:b},ste);return w.jsx(Pa,{theme:E,children:p&&nl.createPortal(w.jsx(lte,R(R({role:"alert",elevation:"overlay"},g),{},{children:d})),document.body)})}),sR=dte;sR.Action=Jee;var X_=te.colors,cR=X_.infographic,ute=cR.primary__moss_green_13.rgba,hte=cR.primary__moss_green_100.rgba,fte=X_.interactive.icon_on_interactive_colors.rgba,pte=X_.ui.background__semitransparent.rgba,mte={background:ute,entities:{progress:{background:hte}}},vte={background:pte,entities:{progress:{background:fte}}};const Z7=Object.freeze(Object.defineProperty({__proto__:null,neutral:vte,primary:mte},Symbol.toStringTag,{value:"Module"}));var gte=["variant","value","size","color"],yte=XK(["100%{transform:rotate(360deg);}"]),_te=G.svg.withConfig({displayName:"CircularProgress__Svg",componentId:"sc-hib054-0"})(["display:inline-block;",";"],function(r){var e=r.$variant;return e==="indeterminate"?we(["animation:"," 1.4s linear infinite;"],yte):we(["transform:rotate(-90deg);"])}),bte=G.output.withConfig({displayName:"CircularProgress__SrOnlyOutput",componentId:"sc-hib054-1"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),wte=G.circle.withConfig({displayName:"CircularProgress__TrackCircle",componentId:"sc-hib054-2"})([""]),xte=G.circle.withConfig({displayName:"CircularProgress__ProgressCircle",componentId:"sc-hib054-3"})([""]),Cte=function(e){return Z7[e]?Z7[e]:{background:"transparent",entities:{progress:{background:e}}}},Ete=y.forwardRef(function(e,t){var n=e.variant,i=n===void 0?"indeterminate":n,o=e.value,a=o===void 0?null:o,s=e.size,c=s===void 0?48:s,l=e.color,d=l===void 0?"primary":l,u=He(e,gte),h=4,f=Math.round(a),p={},m=R(R({},u),{},{ref:t,$variant:i}),x=Cte(d),g=y.useState(0),v=Yn(g,2),b=v[0],E=v[1],I=2*Math.PI*((48-h)/2);i==="determinate"&&(p.stroke=I.toFixed(3),p.strokeDashoffset="".concat(((100-f)/100*I).toFixed(3),"px"),m["aria-valuenow"]=f,a!==void 0&&(m["aria-valuenow"]=f,m["aria-valuemin"]=0,m["aria-valuemax"]=100)),y.useEffect(function(){i!=="indeterminate"&&(f>=25&&f<50?E(25):f>=50&&f<75?E(50):f>=75&&f<100?E(75):f===100&&E(100))},[f,i]);var C=function(){return"Loading ".concat(b,"%")};return w.jsxs(w.Fragment,{children:[w.jsxs(_te,R(R({},m),{},{viewBox:"24 24 48 48",role:"progressbar",height:c,width:c,preserveAspectRatio:"xMidYMid meet",children:[w.jsx(wte,{style:p,cx:48,cy:48,r:(48-h)/2,fill:"none",strokeWidth:h,stroke:x.background}),w.jsx(xte,{style:p,cx:48,cy:48,r:(48-h)/2,fill:"none",strokeLinecap:"round",strokeWidth:h,strokeDasharray:i==="determinate"?I:48,stroke:x.entities.progress.background})]})),i==="determinate"&&w.jsx(bte,{children:C()})]})}),lR={focusedIndex:-1,initialFocus:null,onClose:null},dR=y.createContext(lR),kte=function(e){var t=e.children,n=y.useState(lR),i=Yn(n,2),o=i[0],a=i[1],s=o.focusedIndex,c=o.initialFocus,l=o.onClose,d=function(m){a(function(x){return R(R({},x),{},{focusedIndex:m})})},u=function(m){a(function(x){return R(R({},x),{},{initialFocus:m})})},h=function(m){var x=function(){d(-1),u(null),m()};a(function(g){return R(R({},g),{},{onClose:x})})},f={setFocusedIndex:d,focusedIndex:s,setInitialFocus:u,initialFocus:c,setOnClose:h,onClose:l};return w.jsx(dR.Provider,{value:f,children:t})},J_=function(){return y.useContext(dR)},eb=te.colors,Ste=eb.ui.background__default.rgba,lu=eb.interactive,Ite=lu.primary__selected_highlight.rgba,Ate=lu.primary__resting.rgba,Tte=lu.focus.rgba,Rte=lu.disabled__fill.rgba,Pte=lu.disabled__text.rgba,Mte=lu.table__header__fill_hover.rgba,$te=eb.text.static_icons__default.rgba,tb=te.spacings.comfortable,O7=tb.medium,El=tb.large,kl=tb.small,qg=te.typography.navigation.menu_title,du={background:Ste,spacings:{top:kl,bottom:kl,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:R(R({},qg),{},{color:$te}),entities:{icon:{states:{disabled:{typography:{color:Rte}}}},item:{spacings:{left:El,right:El,top:O7,bottom:O7},states:{active:{typography:R(R({},qg),{},{color:Ate}),background:Ite},focus:{outline:{color:Tte,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:Mte},disabled:{typography:R(R({},qg),{},{color:Pte})}}},title:{spacings:{left:El,right:El,top:kl,bottom:kl}}},modes:{compact:{entities:{item:{spacings:{left:El,right:El,top:kl,bottom:kl}}}}}},Hte=["children","disabled","active","index","as","onClick","closeMenuOnClick"],Zte=du.typography,uR=du.entities,F0=uR.item.states,L7=F0.active,Ote=F0.focus,Lte=F0.hover,Dte=F0.disabled,Nte=uR.icon,Vte=G.button.attrs(function(r){var e=r.$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;"," "," "," ",""],Tn(Zte),function(r){var e=r.theme;return fo(e.entities.item.spacings)},function(r){var e=r.$active;return e&&we(["background:",";*{color:",";}"],L7.background,L7.typography.color)},function(r){var e=r.disabled;return e?we(["*{color:",";}svg{fill:",";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],Dte.typography.color,Nte.states.disabled.typography.color):we(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:",";}}&:focus{z-index:3;","}"],Lte.background,tn(Ote.outline))}),zte=G.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;"]),j0=y.forwardRef(function(e,t){var n=e.children,i=e.disabled,o=e.active,a=e.index,s=a===void 0?0:a,c=e.as,l=c===void 0?"button":c,d=e.onClick,u=e.closeMenuOnClick,h=u===void 0?!0:u,f=He(e,Hte),p=J_(),m=p.focusedIndex,x=p.setFocusedIndex,g=p.onClose,v=function(C){m!==C&&x(C)},b=s===m,E=R(R({},f),{},{as:l,disabled:i,$isFocused:b});return w.jsx(Vte,R(R({},E),{},{$active:o,ref:jo(t,function(I){b&&requestAnimationFrame(function(){I!==null&&I.focus()})}),onFocus:function(){return v(s)},onClick:function(C){d&&(d(C),g!==null&&h&&g(C))},children:w.jsx(zte,{children:n})}))});j0.displayName="MenuItem";var Fte=G.div.attrs(function(){return{tabIndex:0}}).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],fo(du.entities.title.spacings)),hR=y.memo(function(e){var t=e.children,n=e.title,i=e.index;return w.jsxs(w.Fragment,{children:[i!==0&&w.jsx("div",{children:w.jsx(cu,{variant:"small"})}),n&&w.jsx(Fte,{children:w.jsx(Di,{group:"navigation",variant:"label",children:n})}),t]})}),jte=["addCloseMenuOnClickIndex","children"],Ute=G.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;}"],fo(du.spacings));function D7(r){return!!(y.isValidElement(r)&&!r.props.disabled&&r.type===j0)}function Bte(r){return!!(y.isValidElement(r)&&r.type===j0&&r.props.closeMenuOnClick!==!1)}var qte=y.forwardRef(function(e,t){var n=e.addCloseMenuOnClickIndex,i=e.children,o=He(e,jte),a=J_(),s=a.focusedIndex,c=a.setFocusedIndex,l=a.initialFocus,d=-1,u=y.useMemo(function(){return[]},[]),h=y.useMemo(function(){return y.Children.map(i,function(g){if(!g)return g;if(g.type===hR){d++;var v=d,b=y.Children.map(g.props.children,function(E){return d++,D7(E)&&u.push(d),y.cloneElement(E,{index:d})});return y.cloneElement(g,{index:v},b)}else return d++,D7(g)&&u.push(d),Bte(g)&&n(d),y.cloneElement(g,{index:d})})},[i,u,d,n]),f=u[0],p=u[u.length-1];y.useEffect(function(){l==="first"&&c(f),l==="last"&&c(p)},[l,f,p]);var m=function(v,b){var E=v==="down"?1:-1,I=u.indexOf(s),C=u[I+E],T=typeof C>"u"?b:C;c(T)},x=function(v){var b=v.key;v.stopPropagation(),b==="ArrowDown"&&(v.preventDefault(),m("down",f)),b==="ArrowUp"&&(v.preventDefault(),m("up",p))};return w.jsx(Ute,R(R({onKeyDown:x,role:"menu"},o),{},{ref:t,children:h}))}),Wte=["children","anchorEl","onClose","open"],Gte=["anchorEl","open","placement","matchAnchorWidth","onClose","style","className"],Kte=du.border,Yte=G(z0).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["position:absolute;z-index:1400;width:fit-content;min-width:fit-content;",";",";"],ci(Kte),function(r){var e=r.open;return we({display:e?"block":"none"})}),Qte=y.forwardRef(function(e,t){var n=e.children,i=e.anchorEl,o=e.onClose,a=e.open,s=He(e,Wte),c=J_(),l=c.setOnClose,d=c.onClose,u=c.setInitialFocus,h=c.focusedIndex,f=y.useMemo(function(){return[]},[]);y.useEffect(function(){d===null&&o&&l(o)},[d,o,l]),y.useEffect(function(){var m=function(g){var v=g.key;switch((v==="ArrowDown"||v==="ArrowUp")&&(g.preventDefault(),g.stopPropagation(),i.dispatchEvent(new Event("click",{bubbles:!0}))),v){case"Enter":case"ArrowDown":u("first");break;case"ArrowUp":u("last");break}};return i&&i.addEventListener("keydown",m),function(){i&&i.removeEventListener("keydown",m)}},[i]),$m("Escape",function(){a&&d!==null&&(d(),i.focus())}),$m("Enter",function(){a&&d!==null&&f.includes(h)&&setTimeout(function(){window.document.contains(i)&&i.focus()},0)});var p=function(x){f.indexOf(x)<0&&f.push(x)};return w.jsx(qte,R(R({addCloseMenuOnClickIndex:p},s),{},{ref:t,children:n}))}),Xte=y.forwardRef(function(e,t){var n=e.anchorEl,i=e.open,o=e.placement,a=o===void 0?"bottom":o,s=e.matchAnchorWidth,c=s===void 0?!1:s,l=e.onClose,d=e.style,u=e.className,h=He(e,Gte),f=po(),p=f.density,m=Bo({density:p},du),x=[Z0(4),L0(),O0({padding:8})];c&&(x=[].concat(v_(x),[lX({apply:function(q){var L=q.rects,P=q.elements;Object.assign(P.floating.style,{width:"".concat(L.reference.width,"px")})}})]));var g=XT({elements:{reference:n},placement:a,open:i,onOpenChange:l,middleware:x}),v=g.x,b=g.y,E=g.refs,I=g.update,C=g.strategy,T=g.context,O=y.useMemo(function(){return jo(E.setFloating,t)},[E.setFloating,t]);eQ(function(){if(E.reference.current&&E.floating.current&&i)return NT(E.reference.current,E.floating.current,I)},[E.reference,E.floating,I,i]);var W=JT([QT(T,{escapeKey:!1})]),ie=W.getFloatingProps,re={open:i,className:u},ae=R(R({},h),{},{onClose:l,anchorEl:n,open:i}),F=wT(n),Z=w.jsx(Pa,{theme:m,children:w.jsx(Yte,R(R(R({elevation:"raised"},re),ie({ref:O,style:R(R({},d),{},{position:C,top:b||0,left:v||0})})),{},{children:w.jsx(kte,{children:w.jsx(Qte,R(R({},ae),{},{ref:t}))})}))});return w.jsx(w.Fragment,{children:F?Z:w.jsx(YT,{id:"eds-menu-container",children:Z})})}),zd=Xte;zd.Item=j0;zd.Section=hR;zd.Item.displayName="Menu.Item";zd.Section.displayName="Menu.Section";var rb=te.colors,Jte=rb.ui.background__light.rgba,fR=rb.text,ere=fR.static_icons__default,Wg=fR.static_icons__tertiary,Ls=rb.interactive,N7=Ls.disabled__text,tre=Ls.primary__resting,rre=Ls.danger__resting,V7=Ls.danger__hover,nre=Ls.warning__resting,z7=Ls.warning__hover,ire=Ls.success__resting,F7=Ls.success__hover,pR=te.spacings.comfortable,j7=pR.small,vp=pR.x_small,$1=te.typography,U7=te.shape,U0={minHeight:U7.straight.minHeight,background:Jte,spacings:{left:j7,right:j7,top:"6px",bottom:"6px"},typography:R(R({},$1.input.text),{},{color:ere.rgba}),entities:{placeholder:{typography:{color:Wg.rgba}},helperText:{typography:R(R({},$1.input.label),{},{color:Wg.rgba}),states:{disabled:{typography:{color:N7.rgba}}}}},states:{disabled:{typography:{color:N7.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"}},focus:{outline:{type:"outline",width:"2px",color:tre.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+Wg.rgba,modes:{compact:{minHeight:U7._modes.compact.straight.minHeight,spacings:{left:vp,right:vp,top:vp,bottom:vp}}}},ore=lr(U0,{boxShadow:"none",outline:{color:rre.rgba},states:{focus:{outline:{color:V7.rgba}}},entities:{helperText:{typography:R(R({},$1.input.label),{},{color:V7.rgba})}}}),are=lr(U0,{boxShadow:"none",outline:{color:nre.rgba},states:{focus:{outline:{color:z7.rgba}}},entities:{helperText:{typography:R(R({},$1.input.label),{},{color:z7.rgba})}}}),sre=lr(U0,{boxShadow:"none",outline:{color:ire.rgba},states:{focus:{outline:{color:F7.rgba}}},entities:{helperText:{typography:R(R({},$1.input.label),{},{color:F7.rgba})}}}),cre={input:U0,error:ore,warning:are,success:sre},B7=te.colors,Sl=te.spacings.comfortable,lre=te.typography,mR={background:B7.ui.background__light.hex,typography:R(R({},lre.input.helper),{},{color:B7.text.static_icons__tertiary.rgba}),spacings:{comfortable:{left:Sl.small,right:Sl.small,top:Sl.small,bottom:"6px"},compact:{left:Sl.small,right:Sl.small,top:Sl.xx_small,bottom:"6px"}}},dre=["text","icon","color"],ure=G.div.withConfig({displayName:"HelperText__Container",componentId:"sc-189ug61-0"})(function(r){var e=r.color;return we({display:"grid",gap:"8px",gridAutoFlow:"column",alignItems:"start",justifyContent:"start",color:e})}),hre=G.p.withConfig({displayName:"HelperText__Text",componentId:"sc-189ug61-1"})(["margin:0;",";"],L_(mR.typography)),fre=y.forwardRef(function(e,t){var n=e.text,i=e.icon,o=e.color,a=o===void 0?mR.typography.color:o,s=He(e,dre);return n?w.jsxs(ure,R(R({},R(R({},s),{},{color:a,ref:t})),{},{children:[i,w.jsx(hre,{children:n})]})):null}),Gg=te.colors,q7=te.spacings.comfortable,pre=te.typography,Gu={background:Gg.ui.background__light.rgba,typography:R(R({},pre.input.label),{},{color:Gg.text.static_icons__tertiary.rgba}),spacings:{left:q7.small,right:q7.small,top:"6px",bottom:"6px"},states:{disabled:{typography:{color:Gg.interactive.disabled__text.rgba}}}},mre=["label","meta","disabled"],vre=G.label.withConfig({displayName:"Label__LabelBase",componentId:"sc-1gi2bcn-0"})(["display:flex;justify-content:space-between;position:relative;"," margin-left:",";margin-right:",";color:",";"],Tn(Gu.typography),Gu.spacings.left,Gu.spacings.right,function(r){var e=r.$disabledText;return e?Gu.states.disabled.typography.color:Gu.typography.color}),W7=G.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),H1=y.forwardRef(function(e,t){var n=e.label,i=n===void 0?"":n,o=e.meta,a=e.disabled,s=a===void 0?!1:a,c=He(e,mre);return w.jsxs(vre,R(R({ref:t,$disabledText:s},c),{},{children:[w.jsx(W7,{children:i}),o&&w.jsx(W7,{children:o})]}))}),gre=["children","color","label","labelProps","helperProps","helperIcon"],yre=G.div.withConfig({displayName:"InputWrapper__Container",componentId:"sc-v6o9z1-0"})([""]),_re=G(fre).withConfig({displayName:"InputWrapper__HelperText",componentId:"sc-v6o9z1-1"})(["margin-top:8px;margin-left:8px;"]),bre=G(H1).withConfig({displayName:"InputWrapper__Label",componentId:"sc-v6o9z1-2"})(["margin-left:8px;margin-right:8px;"]),vR=y.forwardRef(function(e,t){var n=e.children,i=e.color,o=e.label,a=e.labelProps,s=a===void 0?{}:a,c=e.helperProps,l=c===void 0?{}:c,d=e.helperIcon,u=He(e,gre),h=po(),f=h.density,p=i||"input",m=cre[p],x=Bo({density:f},m),g=y.useCallback(function(){var E=x();return u.disabled?E.entities.helperText.states.disabled.typography.color:E.entities.helperText.typography.color},[x,u.disabled])(),v=!!(l!=null&&l.text),b=!!(o||s!=null&&s.label);return w.jsx(Pa,{theme:x,children:w.jsxs(yre,R(R({},u),{},{ref:t,children:[b&&w.jsx(bre,R({},R({label:o},s))),n,v&&w.jsx(_re,R({color:g},R({icon:d},l)))]}))})}),nb=te.colors,wre=nb.ui.background__light.rgba,gR=nb.text,xre=gR.static_icons__default,Kg=gR.static_icons__tertiary,Ds=nb.interactive,G7=Ds.disabled__text,Cre=Ds.primary__resting,K7=Ds.danger__resting,Y7=Ds.danger__hover,Q7=Ds.warning__resting,X7=Ds.warning__hover,J7=Ds.success__resting,ex=Ds.success__hover,yR=te.spacings.comfortable,gp=yR.small,yp=yR.x_small,Z1=te.typography,tx=te.shape,uu={height:tx.straight.minHeight,width:"100%",background:wre,spacings:{left:gp,right:gp,top:"6px",bottom:"6px"},typography:R(R({},Z1.input.text),{},{color:xre.rgba}),outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"},entities:{placeholder:{typography:{color:Kg.rgba}},adornment:{typography:R(R({},Z1.input.label),{},{color:Kg.rgba}),spacings:{left:gp,right:gp},states:{disabled:{typography:{color:G7.rgba}}}}},states:{disabled:{typography:{color:G7.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{},focus:{outline:{type:"outline",width:"2px",color:Cre.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+Kg.rgba,modes:{compact:{height:tx._modes.compact.straight.minHeight,spacings:{left:yp,right:yp,top:yp,bottom:yp}}}},Ere=lr(uu,{boxShadow:"none",outline:{color:K7.rgba},states:{focus:{outline:{color:Y7.rgba}}},entities:{adornment:{typography:R(R({},Z1.input.label),{},{color:K7.rgba}),states:{focus:{outline:{color:Y7.rgba}}}}}}),kre=lr(uu,{boxShadow:"none",outline:{color:Q7.rgba},states:{focus:{outline:{color:X7.rgba}}},entities:{adornment:{typography:R(R({},Z1.input.label),{},{color:Q7.rgba}),states:{focus:{outline:{color:X7.rgba}}}}}}),Sre=lr(uu,{boxShadow:"none",outline:{color:J7.rgba},states:{focus:{outline:{color:ex.rgba}}},entities:{adornment:{typography:R(R({},Z1.input.label),{},{color:J7.rgba}),states:{focus:{outline:{color:ex.rgba}}}}}}),Yg={input:uu,error:Ere,warning:kre,success:Sre},Ire=["variant","disabled","type","leftAdornments","rightAdornments","readOnly","className","style","leftAdornmentsProps","rightAdornmentsProps","leftAdornmentsWidth","rightAdornmentsWidth"],Are=G.div.withConfig({displayName:"Input__Container",componentId:"sc-1ykv024-0"})(function(r){var e,t=r.$token,n=r.disabled,i=r.readOnly,o=t.states,a=t.entities;return we(["--eds-input-adornment-color:",";--eds-input-color:",";position:relative;height:",";width:",";display:flex;flex-direction:row;border:none;box-sizing:border-box;box-shadow:",";background:var(--eds-input-background,",");"," &:focus-within{--eds-input-adornment-color:",";box-shadow:none;","}"," "," & > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"],a.adornment.typography.color,t.typography.color,t.height,t.width,t.boxShadow,t.background,tn(t.outline),(e=a.adornment)===null||e===void 0||(e=e.states.focus)===null||e===void 0?void 0:e.outline.color,tn(o.focus.outline),n&&we(["--eds-input-adornment-color:",";--eds-input-color:",";cursor:not-allowed;box-shadow:none;"],o.disabled.typography.color,o.disabled.typography.color),i&&we({background:o.readOnly.background,boxShadow:o.readOnly.boxShadow}))}),Tre=G.input.withConfig({displayName:"Input__StyledInput",componentId:"sc-1ykv024-1"})(function(r){var e=r.$token,t=r.$paddingLeft,n=r.$paddingRight;return we(["width:100%;border:none;background:transparent;"," "," outline:none;padding-left:",";padding-right:",";&::placeholder{color:",";}&:disabled{color:var(--eds-input-color);cursor:not-allowed;}"],fo(e.spacings),L_(e.typography),t,n,e.entities.placeholder.typography.color)}),_R=G.div.withConfig({displayName:"Input__Adornments",componentId:"sc-1ykv024-2"})(function(r){var e=r.$token;return we(["position:absolute;top:",";bottom:",";display:flex;align-items:center;"," color:var(--eds-input-adornment-color);"],e.spacings.top,e.spacings.bottom,L_(e.entities.adornment.typography))}),Rre=G(_R).withConfig({displayName:"Input__LeftAdornments",componentId:"sc-1ykv024-3"})(function(r){var e=r.$token;return we(["left:0;padding-left:",";"],e.entities.adornment.spacings.left)}),Pre=G(_R).withConfig({displayName:"Input__RightAdornments",componentId:"sc-1ykv024-4"})(function(r){var e=r.$token;return we(["right:0;padding-right:",";"],e.entities.adornment.spacings.right)}),Jc=y.forwardRef(function(e,t){var n=e.variant,i=e.disabled,o=i===void 0?!1:i,a=e.type,s=a===void 0?"text":a,c=e.leftAdornments,l=e.rightAdornments,d=e.readOnly,u=e.className,h=e.style,f=e.leftAdornmentsProps,p=e.rightAdornmentsProps,m=e.leftAdornmentsWidth,x=e.rightAdornmentsWidth,g=He(e,Ire),v=Yg[n]?Yg[n]:Yg.input,b=po(),E=b.density,I=Bo({density:E},v)(),C=y.useState(),T=Yn(C,2),O=T[0],W=T[1],ie=y.useState(),re=Yn(ie,2),ae=re[0],F=re[1],Z=y.useCallback(function(){var j=m||(ae?ae.clientWidth:0),oe=x||(O?O.clientWidth:0);return R(R({},I),{},{spacings:R(R({},I.spacings),{},{left:"".concat(j+parseInt(I.spacings.left),"px"),right:"".concat(oe+parseInt(I.spacings.right),"px")})})},[m,ae,x,O,I])(),D=R({ref:t,type:s,disabled:o,readOnly:d,$token:Z,style:{resize:"none"}},g),q={disabled:o,readOnly:d,className:u,style:h,$token:Z},L=R(R({},f),{},{ref:F,$token:Z}),P=R(R({},p),{},{ref:W,$token:Z});return w.jsxs(Are,R(R({},q),{},{children:[c?w.jsx(Rre,R(R({},L),{},{children:c})):null,w.jsx(Tre,R({$paddingLeft:Z.spacings.left,$paddingRight:Z.spacings.right},D)),l?w.jsx(Pre,R(R({},P),{},{children:l})):null]}))}),Mre=["variant","disabled","type","rowsMax"],rx=uu,$re=y.forwardRef(function(e,t){var n=e.variant,i=e.disabled,o=i===void 0?!1:i,a=e.type,s=a===void 0?"text":a,c=e.rowsMax,l=He(e,Mre),d=y.useState(null),u=Yn(d,2),h=u[0],f=u[1],p=po(),m=p.density,x=m==="compact"?rx.modes.compact.spacings:rx.spacings,g=uu.typography.lineHeight,v=x.top,b=x.bottom,E=16;h&&(E=parseInt(window.getComputedStyle(h).fontSize));var I=parseInt(v)+parseInt(b),C=parseFloat(g)*E*c+I;XY(h,c?C:null);var T=y.useCallback(function(){return jo(t,f)},[f,t])(),O=R({ref:T,type:s,disabled:o,variant:n},l),W={style:{alignItems:"flex-start"}};return w.jsx(Jc,R({as:"textarea",rightAdornmentsProps:W,leftAdornmentsProps:W,style:{height:"auto"}},O))}),Hre=["id","label","meta","unit","helperText","placeholder","disabled","multiline","className","variant","inputIcon","helperIcon","style","rowsMax","textareaRef","inputRef"],Zre=y.forwardRef(function(e,t){return e.$multiline?w.jsx($re,R({ref:t},e)):w.jsx(Jc,R({ref:t},e))}),bR=y.forwardRef(function(e,t){var n=e.id,i=e.label,o=e.meta,a=e.unit,s=e.helperText,c=e.placeholder,l=e.disabled,d=e.multiline,u=d===void 0?!1:d,h=e.className,f=e.variant,p=e.inputIcon,m=e.helperIcon,x=e.style,g=e.rowsMax,v=e.textareaRef,b=e.inputRef,E=He(e,Hre),I=bT(null,"helpertext"),C=R({"aria-invalid":f==="error"||void 0,disabled:l,placeholder:c,id:n,variant:f,rightAdornments:w.jsxs(w.Fragment,{children:[p,w.jsx("span",{children:a})]}),rowsMax:g,ref:b||v,$multiline:u},E),T={id:null,text:s,icon:m,disabled:l},O={ref:t,className:h,style:R({width:"100%"},x),color:f},W={htmlFor:n,label:i,meta:o,disabled:l};return s&&(C=R({"aria-describedby":I},C),T=R(R({},T),{},{id:I})),w.jsx(vR,R(R({helperProps:T,labelProps:W},O),{},{children:w.jsx(Zre,R({},C))}))}),Ore=te.colors.ui.background__scrim.rgba,Lre={background:Ore},Dre=["children","onClose","open","isDismissable"],Nre=Lre.background,Vre=G(qX).withConfig({displayName:"Scrim__StyledScrim",componentId:"sc-1fr7uvy-0"})(["background:",";z-index:1300;align-items:center;justify-content:center;display:flex;"],Nre),zre=G.div.withConfig({displayName:"Scrim__ScrimContent",componentId:"sc-1fr7uvy-1"})(["width:auto;height:auto;"]),Fre=y.forwardRef(function(e,t){var n=e.children,i=e.onClose,o=e.open,a=e.isDismissable,s=a===void 0?!1:a,c=He(e,Dre),l=y.useRef(null),d=y.useMemo(function(){return jo(l,t)},[l,t]);$m("Escape",function(){s&&i&&o&&i()});var u=function(f){f&&f.target===l.current&&f.type==="mousedown"&&s&&o&&i&&i()};return o?w.jsx(Vre,R(R({lockScroll:!0,onMouseDown:u,ref:d},c),{},{children:w.jsx(zre,{children:n})})):null}),jre=["onChange","style","className"],Ure=G(Jc).withConfig({displayName:"Search__SearchInput",componentId:"sc-v8l23u-0"})(["input{&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}}"]),Bre=G(gr).withConfig({displayName:"Search__InsideButton",componentId:"sc-v8l23u-1"})(["height:24px;width:24px;"]),qre=y.forwardRef(function(e,t){var n=e.onChange,i=e.style,o=e.className,a=He(e,jre),s=y.useRef(null),c=y.useState(!!a.defaultValue),l=Yn(c,2),d=l[0],u=l[1];y.useEffect(function(){a.disabled?u(!1):a.value&&u(!!a.value)},[a.value,a.disabled]);var h=function(){var x=s.current,g="";oQ(x,g)},f=function(x){u(!!x.currentTarget.value)},p=y.useMemo(function(){return jo(s,t)},[s,t]);return w.jsx(vR,{role:"search",style:i,className:o,children:w.jsx(Ure,R({onChange:function(x){f(x),n&&n(x)},ref:p,leftAdornmentsWidth:32,leftAdornments:w.jsx(Et,{data:pJ,"aria-hidden":!0,size:18}),rightAdornmentsWidth:32,rightAdornments:w.jsx(w.Fragment,{children:d&&w.jsx(Bre,{"aria-label":"clear search",title:"clear",variant:"ghost_icon",onClick:function(x){x.stopPropagation(),h()},children:w.jsx(Et,{data:fJ,size:16})})})},a))})}),B0=te.colors.interactive,Wre=B0.primary__resting.rgba,Gre=B0.primary__hover_alt.rgba,nx=B0.focus.rgba,Kre=B0.disabled__text.rgba,Yre=te.typography.navigation.menu_title,q0=te.spacings.comfortable,_p=q0.medium_small,bp=q0.x_small,Qre=q0.x_large,Xre=q0.xx_large,wR=te.clickbounds,Jre=wR.default__base,ene=wR.compact__standard,ix=te.interactions.focused.width,Jh={background:Wre,typography:Yre,width:Xre,spacings:{bottom:_p,top:_p,left:_p,right:_p},clickbound:{height:Jre},states:{hover:{background:Gre},disabled:{background:Kre},focus:{outline:{type:"outline",style:"dashed",width:ix,color:nx,offset:"10px"}}},modes:{compact:{width:Qre,spacings:{bottom:bp,top:bp,left:bp,right:bp},clickbound:{height:ene},states:{focus:{outline:{type:"outline",style:"dashed",width:ix,color:nx,offset:"2px"}}}}}},tne=["disabled","indeterminate","style","className"],Qg=G.path.attrs(function(r){var e=r.$icon;return{fillRule:"evenodd",clipRule:"evenodd",d:e.svgPathData}}).withConfig({displayName:"Input__StyledPath",componentId:"sc-rqj7qf-0"})([""]),rne=G.input.attrs(function(r){var e=r.type,t=e===void 0?"checkbox":e;return{type:t}}).withConfig({displayName:"Input",componentId:"sc-rqj7qf-1"})(["--scale:",";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{","}&:focus-visible + svg{","}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"],function(r){var e=r.theme,t=r.$iconSize;return parseFloat(e.clickbound.height)/t},function(r){var e=r.disabled;return e?"not-allowed":"pointer"},function(r){var e=r.theme;return tn(e.states.focus.outline)},function(r){var e=r.theme;return tn(e.states.focus.outline)}),ox=G.svg.attrs(function(r){var e=r.height,t=r.width,n=r.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:e,width:t,fill:n}}).withConfig({displayName:"Input__Svg",componentId:"sc-rqj7qf-2"})(["grid-area:input;pointer-events:none;"]),nne=G.span.withConfig({displayName:"Input__InputWrapper",componentId:"sc-rqj7qf-3"})(["display:inline-grid;grid:[input] 1fr / [input] 1fr;position:relative;isolation:isolate;"," &::before{content:'';position:absolute;width:",";aspect-ratio:1/1;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;}@media (hover:hover) and (pointer:fine){> svg{z-index:1;}&:hover{&::before{background-color:",";}}}"],function(r){var e=r.theme;return fo(e.spacings)},function(r){var e=r.theme;return e.width},function(r){var e=r.disabled;return e?"transparent":Jh.states.hover.background}),ax=y.forwardRef(function(e,t){var n=e.disabled,i=n===void 0?!1:n,o=e.indeterminate,a=e.style,s=e.className,c=He(e,tne),l=po(),d=l.density,u=Bo({density:d},Jh),h=24,f=i?Jh.states.disabled.background:Jh.background,p={disabled:i,style:a,className:s},m=R(Cm({ref:t,disabled:i},"data-indeterminate",o),c);return w.jsx(Pa,{theme:u,children:w.jsxs(nne,R(R({},p),{},{children:[w.jsx(rne,R({$iconSize:h},m)),o?w.jsx(ox,{width:h,height:h,viewBox:"0 0 ".concat(h," ").concat(h),fill:f,"aria-hidden":!0,children:w.jsx(Qg,{$icon:gJ,name:"indeterminate"})}):w.jsxs(ox,{width:h,height:h,viewBox:"0 0 ".concat(h," ").concat(h),fill:f,"aria-hidden":!0,children:[w.jsx(Qg,{$icon:mJ,name:"checked"}),w.jsx(Qg,{$icon:vJ,name:"not-checked"})]})]}))})}),ine=["label","disabled","indeterminate","className","style"],one=G.label.withConfig({displayName:"Checkbox__StyledLabel",componentId:"sc-yg6l8h-0"})(["display:inline-flex;align-items:center;cursor:",";"],function(r){var e=r.$disabled;return e?"not-allowed":"pointer"}),ane=G.span.withConfig({displayName:"Checkbox__LabelText",componentId:"sc-yg6l8h-1"})(["",";"],Tn(Jh.typography)),zm=y.forwardRef(function(e,t){var n=e.label,i=e.disabled,o=i===void 0?!1:i,a=e.indeterminate,s=e.className,c=e.style,l=He(e,ine);return n?w.jsxs(one,{$disabled:o,className:s,style:c,children:[w.jsx(ax,R(R({},l),{},{disabled:o,ref:t,indeterminate:a})),w.jsx(ane,{children:n})]}):w.jsx(ax,R(R({},l),{},{className:s,style:c,disabled:o,ref:t,indeterminate:a}))});zm.displayName="Checkbox";var xR=G.span.withConfig({displayName:"Switchstyles__BaseInputWrapper",componentId:"sc-x39lde-0"})(function(r){var e=r.theme,t=e.width,n=e.height;return we(["width:",";height:",";border-radius:50%;position:relative;grid-area:input;"],t,n)}),CR=G.input.attrs(function(r){var e=r.type,t=e===void 0?"checkbox":e;return{type:t}}).withConfig({displayName:"Switchstyles__BaseInput",componentId:"sc-x39lde-1"})(function(r){var e=r.disabled,t=r.theme;return we(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;position:relative;z-index:1;cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}"],e?"not-allowed":"pointer",tn(t.states.focus.outline),tn(t.states.focus.outline))}),ER=G.span.withConfig({displayName:"Switchstyles__GridWrapper",componentId:"sc-x39lde-2"})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;place-items:center;isolation:isolate;"]),sne=["disabled","className","style"],cne=G(CR).withConfig({displayName:"SwitchSmall__Input",componentId:"sc-1a99mis-0"})(function(r){var e=r.disabled,t=r.theme,n=t.states,i=t.entities,o=i.handle,a=i.track;return we(["&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:",";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:",";}}"],tn(n.focus.outline),tn(n.focus.outline),e?n.disabled.background:a.states.active.background,o.background,e?"transparent":n.hover.background)}),lne=G.span.withConfig({displayName:"SwitchSmall__Track",componentId:"sc-1a99mis-1"})(function(r){var e=r.$isDisabled,t=r.theme,n=t.states,i=t.entities.track;return we(["width:",";height:",";border-radius:10px;border:none;background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"],i.width,i.height,e?n.disabled.background:i.states.disabled.background)}),dne=G.span.withConfig({displayName:"SwitchSmall__Handle",componentId:"sc-1a99mis-2"})(function(r){var e=r.theme.entities.handle;return we(["background-color:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],e.background,e.width,e.height)}),p3=y.forwardRef(function(e,t){var n=e.disabled,i=e.className,o=e.style,a=He(e,sne);return w.jsxs(ER,{className:i,style:o,children:[w.jsx(cne,R(R({},a),{},{ref:t,disabled:n})),w.jsxs(xR,{children:[w.jsx(lne,{$isDisabled:n}),w.jsx(dne,{})]})]})});p3.displayName="SwitchSmall";var une=["disabled","className","style"],hne=G(CR).withConfig({displayName:"SwitchDefault__Input",componentId:"sc-16ym5pn-0"})(function(r){var e=r.disabled,t=r.theme;return we(["width:",";aspect-ratio:1/1;&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:",";}&:hover + span{background-color:",";}&:hover + span > span:last-child{background-color:",";}"],t.clickbound.height,e?t.states.disabled.background:t.entities.track.states.active.background,e?t.states.disabled.background:t.entities.handle.states.active.background,e?"transparent":t.states.hover.background,e?t.states.disabled.background:t.states.hover.entities.handle.background)}),fne=G.span.withConfig({displayName:"SwitchDefault__Track",componentId:"sc-16ym5pn-1"})(function(r){var e=r.$isDisabled,t=r.theme,n=t.states,i=t.entities.track;return we([""," border:none;width:",";height:",";background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transition:background 0.36s;",""],ci(i.border),i.width,i.height,i.background,e&&{backgroundColor:n.disabled.background})}),pne=G.span.withConfig({displayName:"SwitchDefault__Handle",componentId:"sc-16ym5pn-2"})(function(r){var e=r.$isDisabled,t=r.theme,n=t.states,i=t.entities.handle;return we(["background-color:",";"," box-shadow:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],i.background,e&&{backgroundColor:n.disabled.background},i.boxShadow,i.width,i.height)}),m3=y.forwardRef(function(e,t){var n=e.disabled,i=e.className,o=e.style,a=He(e,une);return w.jsxs(ER,{className:i,style:o,children:[w.jsx(hne,R(R({},a),{},{ref:t,disabled:n})),w.jsxs(xR,{children:[w.jsx(fne,{$isDisabled:n}),w.jsx(pne,{$isDisabled:n})]})]})});m3.displayName="SwitchDefault";var ib=te.colors,mne=ib.ui.background__medium.rgba,al=ib.interactive,sx=al.primary__hover_alt.rgba,cx=al.primary__hover.rgba,vne=al.primary__selected_highlight.rgba,lx=al.primary__resting.rgba,gne=al.disabled__fill.rgba,yne=al.focus.rgba,_ne=al.icon_on_interactive_colors.rgba,dx=ib.text.static_icons__tertiary.rgba,bne=te.typography.navigation.menu_title,wp=te.clickbounds,wne=te.elevation.raised,xne=te.spacings.comfortable.medium_small,kR=te.shape,ux=kR.circle,hx=kR._modes.compact.icon_button,Cne=te.interactions.focused.width,Ene={typography:bne,height:ux.minHeight,width:ux.minWidth,clickbound:{height:wp.default__base,width:wp.default__base},entities:{label:{spacings:{left:xne}},track:{width:"32px",height:"8px",background:mne,border:{type:"border",radius:"4px"},states:{active:{background:vne},hover:{background:cx}}},handle:{height:"16px",width:"16px",boxShadow:wne,background:dx,states:{active:{background:lx},hover:{background:sx}}}},modes:{compact:{height:hx.minHeight,width:hx.minWidth,clickbound:{height:wp.compact__standard,width:wp.compact__standard},entities:{track:{width:"20px",height:"10px",states:{disabled:{background:dx},active:{background:lx}}},handle:{height:"6px",width:"6px",background:_ne}}}},states:{disabled:{background:gne},focus:{outline:{width:Cne,type:"outline",style:"dashed",color:yne}},hover:{background:sx,entities:{handle:{background:cx}}}}},kne=["size","disabled","label","className","style"],Sne=G.label.withConfig({displayName:"Switch__StyledLabel",componentId:"sc-sdaahx-0"})(["cursor:",";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;gap:",";"],function(r){var e=r.$isDisabled;return e?"not-allowed":"pointer"},function(r){var e=r.$size;return e==="small"?"12px":"8px"}),Ine=G.span.withConfig({displayName:"Switch__Label",componentId:"sc-sdaahx-1"})(function(r){var e=r.theme;return we(["",";"],Tn(e.typography))}),ob=y.forwardRef(function(e,t){var n=e.size,i=n===void 0?"default":n,o=e.disabled,a=e.label,s=e.className,c=e.style,l=He(e,kne),d=po(),u=d.density,h=i==="small"?"compact":u,f=Bo({density:h},Ene);return w.jsx(Pa,{theme:f,children:a?w.jsxs(Sne,{$size:i,$isDisabled:o,className:s,style:c,children:[i==="small"?w.jsx(p3,R(R({disabled:o},l),{},{ref:t})):w.jsx(m3,R(R({disabled:o},l),{},{ref:t})),a&&w.jsx(Ine,{children:a})]}):i==="small"?w.jsx(p3,R(R({disabled:o,className:s,style:c},l),{},{ref:t})):w.jsx(m3,R(R({disabled:o,className:s,style:c},l),{},{ref:t}))})});ob.displayName="Switch";const v3=({error:r})=>w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{marginTop:20,border:"1px solid"},children:[w.jsx(Di,{variant:"h4",color:"warning",children:r.message}),w.jsx("section",{style:{padding:10},children:r.stack&&w.jsx("pre",{children:r.stack})})]}),r.cause&&w.jsx(v3,{error:r.cause})]}),Ane=r=>{const{appKey:e}=r,t=wn(),n=y.useRef(null),[i,o]=y.useState(!1),[a,s]=y.useState(),{value:c}=Gc(y.useMemo(()=>t.modules.app.current$,[t.modules.app]));return y.useEffect(()=>{t.modules.app.setCurrentApp(e)},[e,t]),y.useEffect(()=>{o(!0),s(void 0);const l=new Nr;return l.add(c==null?void 0:c.initialize().subscribe({next:({manifest:d,script:u,config:h})=>{const[f]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""],p=document.createElement("div");if(p.style.display="contents",!n.current)throw Error("Missing application mounting point");n.current.appendChild(p);const m=u.renderApp??u.default;l.add(m(p,{fusion:t,env:{basename:f,config:h,manifest:d}})),l.add(()=>p.remove())},complete:()=>{o(!1)},error:d=>{s(d)}})),()=>l.unsubscribe()},[t,c,n]),a?a.cause instanceof xs?w.jsxs("div",{children:[w.jsx("h2",{children:"🔥 Failed to load application manifest 🤬"}),w.jsx("h3",{children:a.cause.type}),w.jsx(v3,{error:a}),";"]}):w.jsxs("div",{children:[w.jsx("h2",{children:"🔥 Failed to load application 🤬"}),w.jsx(v3,{error:a}),";"]}):w.jsx("section",{id:"application-content",ref:n,children:i&&w.jsx(hA,{text:"Loading Application"})})},SR=()=>{const r=wn().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");const e=y.useMemo(()=>r.current$,[r]),{value:t,error:n}=Gc(e,{initial:r.current});return{currentApp:t,setCurrentApp:y.useMemo(()=>r.setCurrentApp.bind(r),[r]),clearCurrentApp:y.useMemo(()=>r.clearCurrentApp.bind(r),[r]),error:n}},Tne=()=>{var r;const{currentApp:e,error:t}=SR(),n=y.useMemo(()=>e?e.instance$:_n(null),[e]),{value:i,error:o,complete:a}=Gc(n,{initial:e===void 0?void 0:(r=e==null?void 0:e.instance)!==null&&r!==void 0?r:null});return{modules:i,error:o??t,complete:a}},Rne=r=>{const{modules:e,error:t,complete:n}=Tne();return{module:e===null?null:e===void 0?void 0:e[r],error:t,complete:n}};let IR=class AR extends CustomEvent{constructor(e){super(AR.eventName,e)}};IR.eventName="select";let Fm=class TR extends CustomEvent{constructor(e){super(TR.eventName,e)}};Fm.eventName="fwc-searchabledropdown-controller-connect";let ab=class extends pt{constructor(){super(...arguments),this.resolverCallbacks=[]}createRenderRoot(){return this}connectResolver(e){this.resolver=e,this.resolverCallbacks.forEach(t=>{t(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(Fm.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Fm.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:t,updateResolver:n}=e.detail;t(()=>{this.resolverCallbacks.filter(i=>i!==n)}),this.resolver&&n(this.resolver),this.resolverCallbacks.push(n),e.preventDefault(),e.stopPropagation()}};_([H()],ab.prototype,"resolver",void 0);/**
|
|
453
453
|
* @license
|
|
454
454
|
* Copyright 2017 Google LLC
|
|
455
455
|
* SPDX-License-Identifier: BSD-3-Clause
|