(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{2857:function(et,eo,ei){"use strict";ei.d(eo,{Jh:function(){return __generator},ZT:function(){return __extends},_T:function(){return __rest},fl:function(){return __spread},mG:function(){return __awaiter},pi:function(){return __assign}});/*! @azure/msal-browser v2.28.3 2022-09-12 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)Object.prototype.hasOwnProperty.call(eo,ei)&&(et[ei]=eo[ei])})(et,eo)};function __extends(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)};function __rest(et,eo){var ei={};for(var ea in et)Object.prototype.hasOwnProperty.call(et,ea)&&0>eo.indexOf(ea)&&(ei[ea]=et[ea]);if(null!=et&&"function"==typeof Object.getOwnPropertySymbols)for(var eu=0,ea=Object.getOwnPropertySymbols(et);eu<ea.length;eu++)0>eo.indexOf(ea[eu])&&Object.prototype.propertyIsEnumerable.call(et,ea[eu])&&(ei[ea[eu]]=et[ea[eu]]);return ei}function __awaiter(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})}function __generator(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}}function __read(et,eo){var ei="function"==typeof Symbol&&et[Symbol.iterator];if(!ei)return et;var ea,eu,ed=ei.call(et),eh=[];try{for(;(void 0===eo||eo-- >0)&&!(ea=ed.next()).done;)eh.push(ea.value)}catch(et){eu={error:et}}finally{try{ea&&!ea.done&&(ei=ed.return)&&ei.call(ed)}finally{if(eu)throw eu.error}}return eh}function __spread(){for(var et=[],eo=0;eo<arguments.length;eo++)et=et.concat(__read(arguments[eo]));return et}},5931:function(et,eo,ei){"use strict";ei.d(eo,{W:function(){return eh}});var ea=ei(2857),eu=ei(87342),ed={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."},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."}},eh=function(et){function BrowserConfigurationAuthError(eo,ei){var ea=et.call(this,eo,ei)||this;return ea.name="BrowserConfigurationAuthError",Object.setPrototypeOf(ea,BrowserConfigurationAuthError.prototype),ea}return(0,ea.ZT)(BrowserConfigurationAuthError,et),BrowserConfigurationAuthError.createRedirectUriEmptyError=function(){return new BrowserConfigurationAuthError(ed.redirectUriNotSet.code,ed.redirectUriNotSet.desc)},BrowserConfigurationAuthError.createPostLogoutRedirectUriEmptyError=function(){return new BrowserConfigurationAuthError(ed.postLogoutUriNotSet.code,ed.postLogoutUriNotSet.desc)},BrowserConfigurationAuthError.createStorageNotSupportedError=function(et){return new BrowserConfigurationAuthError(ed.storageNotSupportedError.code,ed.storageNotSupportedError.desc+" Given Location: "+et)},BrowserConfigurationAuthError.createRedirectCallbacksNotSetError=function(){return new BrowserConfigurationAuthError(ed.noRedirectCallbacksSet.code,ed.noRedirectCallbacksSet.desc)},BrowserConfigurationAuthError.createStubPcaInstanceCalledError=function(){return new BrowserConfigurationAuthError(ed.stubPcaInstanceCalled.code,ed.stubPcaInstanceCalled.desc)},BrowserConfigurationAuthError.createInMemoryRedirectUnavailableError=function(){return new BrowserConfigurationAuthError(ed.inMemRedirectUnavailable.code,ed.inMemRedirectUnavailable.desc)},BrowserConfigurationAuthError}(eu.l)},60539:function(et,eo,ei){"use strict";var ea;ei.d(eo,{t:function(){return ea}}),function(et){et.INITIALIZE_START="msal:initializeStart",et.INITIALIZE_END="msal:initializeEnd",et.ACCOUNT_ADDED="msal:accountAdded",et.ACCOUNT_REMOVED="msal:accountRemoved",et.LOGIN_START="msal:loginStart",et.LOGIN_SUCCESS="msal:loginSuccess",et.LOGIN_FAILURE="msal:loginFailure",et.ACQUIRE_TOKEN_START="msal:acquireTokenStart",et.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",et.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",et.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",et.SSO_SILENT_START="msal:ssoSilentStart",et.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",et.SSO_SILENT_FAILURE="msal:ssoSilentFailure",et.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",et.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",et.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",et.HANDLE_REDIRECT_START="msal:handleRedirectStart",et.HANDLE_REDIRECT_END="msal:handleRedirectEnd",et.POPUP_OPENED="msal:popupOpened",et.LOGOUT_START="msal:logoutStart",et.LOGOUT_SUCCESS="msal:logoutSuccess",et.LOGOUT_FAILURE="msal:logoutFailure",et.LOGOUT_END="msal:logoutEnd"}(ea||(ea={}))},99735:function(et,eo,ei){"use strict";ei.d(eo,{$H:function(){return eg},BD:function(){return e_},Bs:function(){return ep},EC:function(){return ed},Gv:function(){return eT},H4:function(){return eI},Ix:function(){return eu},Ky:function(){return ea},Mm:function(){return eA},WN:function(){return ef},c4:function(){return eh},kd:function(){return eR},lA:function(){return ey},qx:function(){return eS},s_:function(){return em},yo:function(){return ew}});var ea,eu,ed,eh,ep,ef,em,eg,ey,eC=ei(77891),eS={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",POLL_INTERVAL_MS:50,MSAL_SKU:"msal.js.browser"},e_={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"};!function(et){et.HandshakeRequest="Handshake",et.HandshakeResponse="HandshakeResponse",et.GetToken="GetToken",et.Response="Response"}(ea||(ea={})),function(et){et.LocalStorage="localStorage",et.SessionStorage="sessionStorage",et.MemoryStorage="memoryStorage"}(eu||(eu={})),function(et){et.GET="GET",et.POST="POST"}(ed||(ed={})),function(et){et.AUTHORITY="authority",et.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",et.SESSION_STATE="session.state",et.REQUEST_STATE="request.state",et.NONCE_IDTOKEN="nonce.id_token",et.ORIGIN_URI="request.origin",et.RENEW_STATUS="token.renew.status",et.URL_HASH="urlHash",et.REQUEST_PARAMS="request.params",et.SCOPES="scopes",et.INTERACTION_STATUS_KEY="interaction.status",et.CCS_CREDENTIAL="ccs.credential",et.CORRELATION_ID="request.correlationId",et.NATIVE_REQUEST="request.native"}(eh||(eh={})),function(et){et.WRAPPER_SKU="wrapper.sku",et.WRAPPER_VER="wrapper.version"}(ep||(ep={})),function(et){et[et.acquireTokenRedirect=861]="acquireTokenRedirect",et[et.acquireTokenPopup=862]="acquireTokenPopup",et[et.ssoSilent=863]="ssoSilent",et[et.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",et[et.handleRedirectPromise=865]="handleRedirectPromise",et[et.acquireTokenByCode=866]="acquireTokenByCode",et[et.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",et[et.logout=961]="logout",et[et.logoutPopup=962]="logoutPopup"}(ef||(ef={})),function(et){et.Redirect="redirect",et.Popup="popup",et.Silent="silent",et.None="none"}(em||(em={})),function(et){et.Startup="startup",et.Login="login",et.Logout="logout",et.AcquireToken="acquireToken",et.SsoSilent="ssoSilent",et.HandleRedirect="handleRedirect",et.None="none"}(eg||(eg={}));var ew={scopes:eC.f_},eA="jwk";!function(et){et.React="@azure/msal-react",et.Angular="@azure/msal-angular"}(ey||(ey={}));var eI="msal.db",eR=1,eT=eI+".keys"},5096:function(et,eo,ei){"use strict";ei.d(eo,{Jh:function(){return __generator},ZT:function(){return __extends},mG:function(){return __awaiter},pi:function(){return __assign},pr:function(){return __spreadArrays}});/*! @azure/msal-common v7.4.1 2022-09-12 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)Object.prototype.hasOwnProperty.call(eo,ei)&&(et[ei]=eo[ei])})(et,eo)};function __extends(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)};function __awaiter(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})}function __generator(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}}function __spreadArrays(){for(var et=0,eo=0,ei=arguments.length;eo<ei;eo++)et+=arguments[eo].length;for(var ea=Array(et),eu=0,eo=0;eo<ei;eo++)for(var ed=arguments[eo],eh=0,ep=ed.length;eh<ep;eh++,eu++)ea[eu]=ed[eh];return ea}},87342:function(et,eo,ei){"use strict";ei.d(eo,{l:function(){return eh}});var ea=ei(5096),eu=ei(77891),ed={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},eh=function(et){function AuthError(eo,ei,ea){var ed=this,eh=ei?eo+": "+ei:eo;return Object.setPrototypeOf(ed=et.call(this,eh)||this,AuthError.prototype),ed.errorCode=eo||eu.gT.EMPTY_STRING,ed.errorMessage=ei||eu.gT.EMPTY_STRING,ed.subError=ea||eu.gT.EMPTY_STRING,ed.name="AuthError",ed}return(0,ea.ZT)(AuthError,et),AuthError.prototype.setCorrelationId=function(et){this.correlationId=et},AuthError.createUnexpectedError=function(et){return new AuthError(ed.unexpectedError.code,ed.unexpectedError.desc+": "+et)},AuthError.createPostRequestFailed=function(et){return new AuthError(ed.postRequestFailed.code,ed.postRequestFailed.desc+": "+et)},AuthError}(Error)},60742:function(et,eo,ei){"use strict";ei.d(eo,{A:function(){return ed},e:function(){return eh}});var ea=ei(5096),eu=ei(87342),ed={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."}},eh=function(et){function ClientAuthError(eo,ei){var ea=et.call(this,eo,ei)||this;return ea.name="ClientAuthError",Object.setPrototypeOf(ea,ClientAuthError.prototype),ea}return(0,ea.ZT)(ClientAuthError,et),ClientAuthError.createClientInfoDecodingError=function(et){return new ClientAuthError(ed.clientInfoDecodingError.code,ed.clientInfoDecodingError.desc+" Failed with error: "+et)},ClientAuthError.createClientInfoEmptyError=function(){return new ClientAuthError(ed.clientInfoEmptyError.code,""+ed.clientInfoEmptyError.desc)},ClientAuthError.createTokenParsingError=function(et){return new ClientAuthError(ed.tokenParsingError.code,ed.tokenParsingError.desc+" Failed with error: "+et)},ClientAuthError.createTokenNullOrEmptyError=function(et){return new ClientAuthError(ed.nullOrEmptyToken.code,ed.nullOrEmptyToken.desc+" Raw Token Value: "+et)},ClientAuthError.createEndpointDiscoveryIncompleteError=function(et){return new ClientAuthError(ed.endpointResolutionError.code,ed.endpointResolutionError.desc+" Detail: "+et)},ClientAuthError.createNetworkError=function(et,eo){return new ClientAuthError(ed.networkError.code,ed.networkError.desc+" | Fetch client threw: "+eo+" | Attempted to reach: "+et.split("?")[0])},ClientAuthError.createUnableToGetOpenidConfigError=function(et){return new ClientAuthError(ed.unableToGetOpenidConfigError.code,ed.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+et)},ClientAuthError.createHashNotDeserializedError=function(et){return new ClientAuthError(ed.hashNotDeserialized.code,ed.hashNotDeserialized.desc+" Given Object: "+et)},ClientAuthError.createInvalidStateError=function(et,eo){return new ClientAuthError(ed.invalidStateError.code,ed.invalidStateError.desc+" Invalid State: "+et+", Root Err: "+eo)},ClientAuthError.createStateMismatchError=function(){return new ClientAuthError(ed.stateMismatchError.code,ed.stateMismatchError.desc)},ClientAuthError.createStateNotFoundError=function(et){return new ClientAuthError(ed.stateNotFoundError.code,ed.stateNotFoundError.desc+":  "+et)},ClientAuthError.createNonceMismatchError=function(){return new ClientAuthError(ed.nonceMismatchError.code,ed.nonceMismatchError.desc)},ClientAuthError.createNonceNotFoundError=function(et){return new ClientAuthError(ed.nonceNotFoundError.code,ed.nonceNotFoundError.desc+":  "+et)},ClientAuthError.createMultipleMatchingTokensInCacheError=function(){return new ClientAuthError(ed.multipleMatchingTokens.code,ed.multipleMatchingTokens.desc+".")},ClientAuthError.createMultipleMatchingAccountsInCacheError=function(){return new ClientAuthError(ed.multipleMatchingAccounts.code,ed.multipleMatchingAccounts.desc)},ClientAuthError.createMultipleMatchingAppMetadataInCacheError=function(){return new ClientAuthError(ed.multipleMatchingAppMetadata.code,ed.multipleMatchingAppMetadata.desc)},ClientAuthError.createTokenRequestCannotBeMadeError=function(){return new ClientAuthError(ed.tokenRequestCannotBeMade.code,ed.tokenRequestCannotBeMade.desc)},ClientAuthError.createAppendEmptyScopeToSetError=function(et){return new ClientAuthError(ed.appendEmptyScopeError.code,ed.appendEmptyScopeError.desc+" Given Scope: "+et)},ClientAuthError.createRemoveEmptyScopeFromSetError=function(et){return new ClientAuthError(ed.removeEmptyScopeError.code,ed.removeEmptyScopeError.desc+" Given Scope: "+et)},ClientAuthError.createAppendScopeSetError=function(et){return new ClientAuthError(ed.appendScopeSetError.code,ed.appendScopeSetError.desc+" Detail Error: "+et)},ClientAuthError.createEmptyInputScopeSetError=function(){return new ClientAuthError(ed.emptyInputScopeSetError.code,""+ed.emptyInputScopeSetError.desc)},ClientAuthError.createDeviceCodeCancelledError=function(){return new ClientAuthError(ed.DeviceCodePollingCancelled.code,""+ed.DeviceCodePollingCancelled.desc)},ClientAuthError.createDeviceCodeExpiredError=function(){return new ClientAuthError(ed.DeviceCodeExpired.code,""+ed.DeviceCodeExpired.desc)},ClientAuthError.createDeviceCodeUnknownError=function(){return new ClientAuthError(ed.DeviceCodeUnknownError.code,""+ed.DeviceCodeUnknownError.desc)},ClientAuthError.createNoAccountInSilentRequestError=function(){return new ClientAuthError(ed.NoAccountInSilentRequest.code,""+ed.NoAccountInSilentRequest.desc)},ClientAuthError.createNullOrUndefinedCacheRecord=function(){return new ClientAuthError(ed.invalidCacheRecord.code,ed.invalidCacheRecord.desc)},ClientAuthError.createInvalidCacheEnvironmentError=function(){return new ClientAuthError(ed.invalidCacheEnvironment.code,ed.invalidCacheEnvironment.desc)},ClientAuthError.createNoAccountFoundError=function(){return new ClientAuthError(ed.noAccountFound.code,ed.noAccountFound.desc)},ClientAuthError.createCachePluginError=function(){return new ClientAuthError(ed.CachePluginError.code,""+ed.CachePluginError.desc)},ClientAuthError.createNoCryptoObjectError=function(et){return new ClientAuthError(ed.noCryptoObj.code,""+ed.noCryptoObj.desc+et)},ClientAuthError.createInvalidCacheTypeError=function(){return new ClientAuthError(ed.invalidCacheType.code,""+ed.invalidCacheType.desc)},ClientAuthError.createUnexpectedAccountTypeError=function(){return new ClientAuthError(ed.unexpectedAccountType.code,""+ed.unexpectedAccountType.desc)},ClientAuthError.createUnexpectedCredentialTypeError=function(){return new ClientAuthError(ed.unexpectedCredentialType.code,""+ed.unexpectedCredentialType.desc)},ClientAuthError.createInvalidAssertionError=function(){return new ClientAuthError(ed.invalidAssertion.code,""+ed.invalidAssertion.desc)},ClientAuthError.createInvalidCredentialError=function(){return new ClientAuthError(ed.invalidClientCredential.code,""+ed.invalidClientCredential.desc)},ClientAuthError.createRefreshRequiredError=function(){return new ClientAuthError(ed.tokenRefreshRequired.code,ed.tokenRefreshRequired.desc)},ClientAuthError.createUserTimeoutReachedError=function(){return new ClientAuthError(ed.userTimeoutReached.code,ed.userTimeoutReached.desc)},ClientAuthError.createTokenClaimsRequiredError=function(){return new ClientAuthError(ed.tokenClaimsRequired.code,ed.tokenClaimsRequired.desc)},ClientAuthError.createNoAuthCodeInServerResponseError=function(){return new ClientAuthError(ed.noAuthorizationCodeFromServer.code,ed.noAuthorizationCodeFromServer.desc)},ClientAuthError.createBindingKeyNotRemovedError=function(){return new ClientAuthError(ed.bindingKeyNotRemovedError.code,ed.bindingKeyNotRemovedError.desc)},ClientAuthError.createLogoutNotSupportedError=function(){return new ClientAuthError(ed.logoutNotSupported.code,ed.logoutNotSupported.desc)},ClientAuthError.createKeyIdMissingError=function(){return new ClientAuthError(ed.keyIdMissing.code,ed.keyIdMissing.desc)},ClientAuthError}(eu.l)},21362:function(et,eo,ei){"use strict";ei.d(eo,{Y:function(){return eh},i:function(){return ea}});var ea,eu=ei(61653),ed=ei(77891);!function(et){et[et.Error=0]="Error",et[et.Warning=1]="Warning",et[et.Info=2]="Info",et[et.Verbose=3]="Verbose",et[et.Trace=4]="Trace"}(ea||(ea={}));var eh=function(){function Logger(et,eo,ei){this.level=ea.Info;var defaultLoggerCallback=function(){};this.localCallback=et.loggerCallback||defaultLoggerCallback,this.piiLoggingEnabled=et.piiLoggingEnabled||!1,this.level="number"==typeof et.logLevel?et.logLevel:ea.Info,this.correlationId=et.correlationId||ed.gT.EMPTY_STRING,this.packageName=eo||ed.gT.EMPTY_STRING,this.packageVersion=ei||ed.gT.EMPTY_STRING}return Logger.prototype.clone=function(et,eo,ei){return new Logger({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:ei||this.correlationId},et,eo)},Logger.prototype.logMessage=function(et,eo){if(!(eo.logLevel>this.level)&&(this.piiLoggingEnabled||!eo.containsPii)){var ei,ed=new Date().toUTCString(),eh=(ei=eu.x.isEmpty(eo.correlationId)?eu.x.isEmpty(this.correlationId)?"["+ed+"]":"["+ed+"] : ["+this.correlationId+"]":"["+ed+"] : ["+eo.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+ea[eo.logLevel]+" - "+et;this.executeCallback(eo.logLevel,eh,eo.containsPii||!1)}},Logger.prototype.executeCallback=function(et,eo,ei){this.localCallback&&this.localCallback(et,eo,ei)},Logger.prototype.error=function(et,eo){this.logMessage(et,{logLevel:ea.Error,containsPii:!1,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.errorPii=function(et,eo){this.logMessage(et,{logLevel:ea.Error,containsPii:!0,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.warning=function(et,eo){this.logMessage(et,{logLevel:ea.Warning,containsPii:!1,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.warningPii=function(et,eo){this.logMessage(et,{logLevel:ea.Warning,containsPii:!0,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.info=function(et,eo){this.logMessage(et,{logLevel:ea.Info,containsPii:!1,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.infoPii=function(et,eo){this.logMessage(et,{logLevel:ea.Info,containsPii:!0,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.verbose=function(et,eo){this.logMessage(et,{logLevel:ea.Verbose,containsPii:!1,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.verbosePii=function(et,eo){this.logMessage(et,{logLevel:ea.Verbose,containsPii:!0,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.trace=function(et,eo){this.logMessage(et,{logLevel:ea.Trace,containsPii:!1,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.tracePii=function(et,eo){this.logMessage(et,{logLevel:ea.Trace,containsPii:!0,correlationId:eo||ed.gT.EMPTY_STRING})},Logger.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},Logger}()},77891:function(et,eo,ei){"use strict";ei.d(eo,{$f:function(){return eL},As:function(){return ep},Bv:function(){return eC},D1:function(){return eW},Fo:function(){return eh},Ge:function(){return eR},HN:function(){return eK},L:function(){return eO},LL:function(){return ew},NJ:function(){return eN},Nb:function(){return ed},QU:function(){return eH},SZ:function(){return ea},To:function(){return ek},VO:function(){return ef},VX:function(){return eB},Vi:function(){return eu},W:function(){return eE},Xj:function(){return e_},YY:function(){return eT},bb:function(){return ez},ch:function(){return eG},d3:function(){return eS},dg:function(){return eF},f_:function(){return eU},gT:function(){return eD},hO:function(){return eI},iR:function(){return ey},ki:function(){return eP},pQ:function(){return eA},qJ:function(){return eg},sR:function(){return ej},vw:function(){return em}});var ea,eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT,eE,eP,ek,eO,eM=ei(5096),eD={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240},eU=[eD.OPENID_SCOPE,eD.PROFILE_SCOPE,eD.OFFLINE_ACCESS_SCOPE],eL=(0,eM.pr)(eU,[eD.EMAIL_SCOPE]);!function(et){et.CONTENT_TYPE="Content-Type",et.RETRY_AFTER="Retry-After",et.CCS_HEADER="X-AnchorMailbox",et.WWWAuthenticate="WWW-Authenticate",et.AuthenticationInfo="Authentication-Info"}(ea||(ea={})),function(et){et.ID_TOKEN="idtoken",et.CLIENT_INFO="client.info",et.ADAL_ID_TOKEN="adal.idtoken",et.ERROR="error",et.ERROR_DESC="error.description",et.ACTIVE_ACCOUNT="active-account",et.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(eu||(eu={})),function(et){et.COMMON="common",et.ORGANIZATIONS="organizations",et.CONSUMERS="consumers"}(ed||(ed={})),function(et){et.CLIENT_ID="client_id",et.REDIRECT_URI="redirect_uri",et.RESPONSE_TYPE="response_type",et.RESPONSE_MODE="response_mode",et.GRANT_TYPE="grant_type",et.CLAIMS="claims",et.SCOPE="scope",et.ERROR="error",et.ERROR_DESCRIPTION="error_description",et.ACCESS_TOKEN="access_token",et.ID_TOKEN="id_token",et.REFRESH_TOKEN="refresh_token",et.EXPIRES_IN="expires_in",et.STATE="state",et.NONCE="nonce",et.PROMPT="prompt",et.SESSION_STATE="session_state",et.CLIENT_INFO="client_info",et.CODE="code",et.CODE_CHALLENGE="code_challenge",et.CODE_CHALLENGE_METHOD="code_challenge_method",et.CODE_VERIFIER="code_verifier",et.CLIENT_REQUEST_ID="client-request-id",et.X_CLIENT_SKU="x-client-SKU",et.X_CLIENT_VER="x-client-VER",et.X_CLIENT_OS="x-client-OS",et.X_CLIENT_CPU="x-client-CPU",et.X_CLIENT_CURR_TELEM="x-client-current-telemetry",et.X_CLIENT_LAST_TELEM="x-client-last-telemetry",et.X_MS_LIB_CAPABILITY="x-ms-lib-capability",et.X_APP_NAME="x-app-name",et.X_APP_VER="x-app-ver",et.POST_LOGOUT_URI="post_logout_redirect_uri",et.ID_TOKEN_HINT="id_token_hint",et.DEVICE_CODE="device_code",et.CLIENT_SECRET="client_secret",et.CLIENT_ASSERTION="client_assertion",et.CLIENT_ASSERTION_TYPE="client_assertion_type",et.TOKEN_TYPE="token_type",et.REQ_CNF="req_cnf",et.OBO_ASSERTION="assertion",et.REQUESTED_TOKEN_USE="requested_token_use",et.ON_BEHALF_OF="on_behalf_of",et.FOCI="foci",et.CCS_HEADER="X-AnchorMailbox",et.RETURN_SPA_CODE="return_spa_code",et.NATIVE_BROKER="nativebroker",et.LOGOUT_HINT="logout_hint"}(eh||(eh={})),function(et){et.ACCESS_TOKEN="access_token",et.XMS_CC="xms_cc"}(ep||(ep={}));var eN={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create"};!function(et){et.ACCOUNT="account",et.SID="sid",et.LOGIN_HINT="login_hint",et.ID_TOKEN="id_token",et.DOMAIN_HINT="domain_hint",et.ORGANIZATIONS="organizations",et.CONSUMERS="consumers",et.ACCOUNT_ID="accountIdentifier",et.HOMEACCOUNT_ID="homeAccountIdentifier"}(ef||(ef={}));var eB={PLAIN:"plain",S256:"S256"};!function(et){et.QUERY="query",et.FRAGMENT="fragment",et.FORM_POST="form_post"}(em||(em={})),function(et){et.IMPLICIT_GRANT="implicit",et.AUTHORIZATION_CODE_GRANT="authorization_code",et.CLIENT_CREDENTIALS_GRANT="client_credentials",et.RESOURCE_OWNER_PASSWORD_GRANT="password",et.REFRESH_TOKEN_GRANT="refresh_token",et.DEVICE_CODE_GRANT="device_code",et.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(eg||(eg={})),function(et){et.MSSTS_ACCOUNT_TYPE="MSSTS",et.ADFS_ACCOUNT_TYPE="ADFS",et.MSAV1_ACCOUNT_TYPE="MSA",et.GENERIC_ACCOUNT_TYPE="Generic"}(ey||(ey={})),function(et){et.CACHE_KEY_SEPARATOR="-",et.CLIENT_INFO_SEPARATOR="."}(eC||(eC={})),function(et){et.ID_TOKEN="IdToken",et.ACCESS_TOKEN="AccessToken",et.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",et.REFRESH_TOKEN="RefreshToken"}(eS||(eS={})),function(et){et.ACCOUNT="Account",et.CREDENTIAL="Credential",et.ID_TOKEN="IdToken",et.ACCESS_TOKEN="AccessToken",et.REFRESH_TOKEN="RefreshToken",et.APP_METADATA="AppMetadata",et.TEMPORARY="TempCache",et.TELEMETRY="Telemetry",et.UNDEFINED="Undefined",et.THROTTLING="Throttling"}(e_||(e_={})),function(et){et[et.ADFS=1001]="ADFS",et[et.MSA=1002]="MSA",et[et.MSSTS=1003]="MSSTS",et[et.GENERIC=1004]="GENERIC",et[et.ACCESS_TOKEN=2001]="ACCESS_TOKEN",et[et.REFRESH_TOKEN=2002]="REFRESH_TOKEN",et[et.ID_TOKEN=2003]="ID_TOKEN",et[et.APP_METADATA=3001]="APP_METADATA",et[et.UNDEFINED=9999]="UNDEFINED"}(ew||(ew={}));var eF="appmetadata",ej="client_info",eG="1",eH={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400};!function(et){et.CONFIG="config",et.CACHE="cache",et.NETWORK="network",et.HARDCODED_VALUES="hardcoded_values"}(eA||(eA={}));var eK={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"};!function(et){et.BEARER="Bearer",et.POP="pop",et.SSH="ssh-cert"}(eI||(eI={}));var ez={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},eW={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"};!function(et){et.username="username",et.password="password"}(eR||(eR={})),function(et){et[et.httpSuccess=200]="httpSuccess",et[et.httpBadRequest=400]="httpBadRequest"}(eT||(eT={})),function(et){et.FAILED_AUTO_DETECTION="1",et.INTERNAL_CACHE="2",et.ENVIRONMENT_VARIABLE="3",et.IMDS="4"}(eE||(eE={})),function(et){et.CONFIGURED_MATCHES_DETECTED="1",et.CONFIGURED_NO_AUTO_DETECTION="2",et.CONFIGURED_NOT_DETECTED="3",et.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",et.AUTO_DETECTION_REQUESTED_FAILED="5"}(eP||(eP={})),function(et){et.NO_CACHE_HIT="0",et.FORCE_REFRESH="1",et.NO_CACHED_ACCESS_TOKEN="2",et.CACHED_ACCESS_TOKEN_EXPIRED="3",et.REFRESH_CACHED_ACCESS_TOKEN="4"}(ek||(ek={})),function(et){et.Jwt="JWT",et.Jwk="JWK"}(eO||(eO={}))},61653:function(et,eo,ei){"use strict";ei.d(eo,{x:function(){return eu}});var ea=ei(60742),eu=function(){function StringUtils(){}return StringUtils.decodeAuthToken=function(et){if(StringUtils.isEmpty(et))throw ea.e.createTokenNullOrEmptyError(et);var eo=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(et);if(!eo||eo.length<4)throw ea.e.createTokenParsingError("Given token is malformed: "+JSON.stringify(et));return{header:eo[1],JWSPayload:eo[2],JWSSig:eo[3]}},StringUtils.isEmpty=function(et){return void 0===et||!et||0===et.length},StringUtils.isEmptyObj=function(et){if(et&&!StringUtils.isEmpty(et))try{var eo=JSON.parse(et);return 0===Object.keys(eo).length}catch(et){}return!0},StringUtils.startsWith=function(et,eo){return 0===et.indexOf(eo)},StringUtils.endsWith=function(et,eo){return et.length>=eo.length&&et.lastIndexOf(eo)===et.length-eo.length},StringUtils.queryStringToObject=function(et){var eo={},ei=et.split("&"),decode=function(et){return decodeURIComponent(et.replace(/\+/g," "))};return ei.forEach(function(et){if(et.trim()){var ei=et.split(/=(.+)/g,2),ea=ei[0],eu=ei[1];ea&&eu&&(eo[decode(ea)]=decode(eu))}}),eo},StringUtils.trimArrayEntries=function(et){return et.map(function(et){return et.trim()})},StringUtils.removeEmptyStringsFromArray=function(et){return et.filter(function(et){return!StringUtils.isEmpty(et)})},StringUtils.jsonParseHelper=function(et){try{return JSON.parse(et)}catch(et){return null}},StringUtils.matchPattern=function(et,eo){return new RegExp(et.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(eo)},StringUtils}()},51131:function(et,eo,ei){"use strict";ei.d(eo,{J:function(){return ea}});let ea="production"},81703:function(et,eo,ei){"use strict";ei.d(eo,{X:function(){return ea}});let ea="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},71195:function(et,eo,ei){"use strict";ei.d(eo,{RP:function(){return notifyEventProcessors},cc:function(){return addGlobalEventProcessor},fH:function(){return getGlobalEventProcessors}});var ea=ei(71235),eu=ei(96893),ed=ei(12343),eh=ei(67597),ep=ei(81703);function getGlobalEventProcessors(){return(0,ea.Y)("globalEventProcessors",()=>[])}function addGlobalEventProcessor(et){getGlobalEventProcessors().push(et)}function notifyEventProcessors(et,eo,ei,ea=0){return new eu.cW((eu,ef)=>{let em=et[ea];if(null===eo||"function"!=typeof em)eu(eo);else{let eg=em({...eo},ei);ep.X&&em.id&&null===eg&&ed.kg.log(`Event processor "${em.id}" dropped event`),(0,eh.J8)(eg)?eg.then(eo=>notifyEventProcessors(et,eo,ei,ea+1).then(eu)).then(null,ef):notifyEventProcessors(et,eg,ei,ea+1).then(eu).then(null,ef)}})}},64487:function(et,eo,ei){"use strict";ei.d(eo,{$e:function(){return withScope},Tb:function(){return captureException},av:function(){return setUser},cg:function(){return captureSession},eN:function(){return captureEvent},nZ:function(){return getCurrentScope},n_:function(){return addBreadcrumb},s3:function(){return getClient},v:function(){return setContext},yj:function(){return startSession},yl:function(){return flush}});var ea=ei(12343),eu=ei(71235),ed=ei(51131),eh=ei(81703),ep=ei(95659),ef=ei(9015),em=ei(88942);function captureException(et,eo){return(0,ep.Gd)().captureException(et,(0,em.U0)(eo))}function captureEvent(et,eo){return(0,ep.Gd)().captureEvent(et,eo)}function addBreadcrumb(et,eo){(0,ep.Gd)().addBreadcrumb(et,eo)}function setContext(et,eo){(0,ep.Gd)().setContext(et,eo)}function setUser(et){(0,ep.Gd)().setUser(et)}function withScope(...et){let eo=(0,ep.Gd)();if(2===et.length){let[ei,ea]=et;return ei?eo.withScope(()=>(eo.getStackTop().scope=ei,ea(ei))):eo.withScope(ea)}return eo.withScope(et[0])}async function flush(et){let eo=getClient();return eo?eo.flush(et):(eh.X&&ea.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function getClient(){return(0,ep.Gd)().getClient()}function getCurrentScope(){return(0,ep.Gd)().getScope()}function startSession(et){let eo=getClient(),ei=(0,ep.aF)(),ea=getCurrentScope(),{release:eh,environment:em=ed.J}=eo&&eo.getOptions()||{},{userAgent:eg}=eu.GLOBAL_OBJ.navigator||{},ey=(0,ef.Hv)({release:eh,environment:em,user:ea.getUser()||ei.getUser(),...eg&&{userAgent:eg},...et}),eC=ei.getSession();return eC&&"ok"===eC.status&&(0,ef.CT)(eC,{status:"exited"}),endSession(),ei.setSession(ey),ea.setSession(ey),ey}function endSession(){let et=(0,ep.aF)(),eo=getCurrentScope(),ei=eo.getSession()||et.getSession();ei&&(0,ef.RJ)(ei),_sendSessionUpdate(),et.setSession(),eo.setSession()}function _sendSessionUpdate(){let et=(0,ep.aF)(),eo=getCurrentScope(),ei=getClient(),ea=eo.getSession()||et.getSession();ea&&ei&&ei.captureSession&&ei.captureSession(ea)}function captureSession(et=!1){if(et){endSession();return}_sendSessionUpdate()}},95659:function(et,eo,ei){"use strict";ei.d(eo,{Gd:function(){return getCurrentHub},aF:function(){return getIsolationScope},cu:function(){return getMainCarrier}});var ea=ei(67597),eu=ei(62844),ed=ei(21170),eh=ei(12343),ep=ei(71235),ef=ei(51131),em=ei(81703),eg=ei(10350),ey=ei(9015),eC=ei(40105);let eS=parseFloat(eC.J),e_=100;let Hub=class Hub{constructor(et,eo,ei,ea=eS){let eu,ed;this._version=ea,eo?eu=eo:(eu=new eg.sX).setClient(et),ei?ed=ei:(ed=new eg.sX).setClient(et),this._stack=[{scope:eu}],et&&this.bindClient(et),this._isolationScope=ed}isOlderThan(et){return this._version<et}bindClient(et){let eo=this.getStackTop();eo.client=et,eo.scope.setClient(et),et&&et.setupIntegrations&&et.setupIntegrations()}pushScope(){let et=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:et}),et}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(et){let eo;let ei=this.pushScope();try{eo=et(ei)}catch(et){throw this.popScope(),et}return(0,ea.J8)(eo)?eo.then(et=>(this.popScope(),et),et=>{throw this.popScope(),et}):(this.popScope(),eo)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(et,eo){let ei=this._lastEventId=eo&&eo.event_id?eo.event_id:(0,eu.DM)(),ea=Error("Sentry syntheticException");return this.getScope().captureException(et,{originalException:et,syntheticException:ea,...eo,event_id:ei}),ei}captureMessage(et,eo,ei){let ea=this._lastEventId=ei&&ei.event_id?ei.event_id:(0,eu.DM)(),ed=Error(et);return this.getScope().captureMessage(et,eo,{originalException:et,syntheticException:ed,...ei,event_id:ea}),ea}captureEvent(et,eo){let ei=eo&&eo.event_id?eo.event_id:(0,eu.DM)();return et.type||(this._lastEventId=ei),this.getScope().captureEvent(et,{...eo,event_id:ei}),ei}lastEventId(){return this._lastEventId}addBreadcrumb(et,eo){let{scope:ei,client:ea}=this.getStackTop();if(!ea)return;let{beforeBreadcrumb:eu=null,maxBreadcrumbs:ep=e_}=ea.getOptions&&ea.getOptions()||{};if(ep<=0)return;let ef=(0,ed.yW)(),em={timestamp:ef,...et},eg=eu?(0,eh.Cf)(()=>eu(em,eo)):em;null!==eg&&(ea.emit&&ea.emit("beforeAddBreadcrumb",eg,eo),ei.addBreadcrumb(eg,ep))}setUser(et){this.getScope().setUser(et),this.getIsolationScope().setUser(et)}setTags(et){this.getScope().setTags(et),this.getIsolationScope().setTags(et)}setExtras(et){this.getScope().setExtras(et),this.getIsolationScope().setExtras(et)}setTag(et,eo){this.getScope().setTag(et,eo),this.getIsolationScope().setTag(et,eo)}setExtra(et,eo){this.getScope().setExtra(et,eo),this.getIsolationScope().setExtra(et,eo)}setContext(et,eo){this.getScope().setContext(et,eo),this.getIsolationScope().setContext(et,eo)}configureScope(et){let{scope:eo,client:ei}=this.getStackTop();ei&&et(eo)}run(et){let eo=makeMain(this);try{et(this)}finally{makeMain(eo)}}getIntegration(et){let eo=this.getClient();if(!eo)return null;try{return eo.getIntegration(et)}catch(eo){return em.X&&eh.kg.warn(`Cannot retrieve integration ${et.id} from the current Hub`),null}}startTransaction(et,eo){let ei=this._callExtensionMethod("startTransaction",et,eo);if(em.X&&!ei){let et=this.getClient();et?eh.kg.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):eh.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return ei}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(et=!1){if(et)return this.endSession();this._sendSessionUpdate()}endSession(){let et=this.getStackTop(),eo=et.scope,ei=eo.getSession();ei&&(0,ey.RJ)(ei),this._sendSessionUpdate(),eo.setSession()}startSession(et){let{scope:eo,client:ei}=this.getStackTop(),{release:ea,environment:eu=ef.J}=ei&&ei.getOptions()||{},{userAgent:ed}=ep.GLOBAL_OBJ.navigator||{},eh=(0,ey.Hv)({release:ea,environment:eu,user:eo.getUser(),...ed&&{userAgent:ed},...et}),em=eo.getSession&&eo.getSession();return em&&"ok"===em.status&&(0,ey.CT)(em,{status:"exited"}),this.endSession(),eo.setSession(eh),eh}shouldSendDefaultPii(){let et=this.getClient(),eo=et&&et.getOptions();return!!(eo&&eo.sendDefaultPii)}_sendSessionUpdate(){let{scope:et,client:eo}=this.getStackTop(),ei=et.getSession();ei&&eo&&eo.captureSession&&eo.captureSession(ei)}_callExtensionMethod(et,...eo){let ei=getMainCarrier(),ea=ei.__SENTRY__;if(ea&&ea.extensions&&"function"==typeof ea.extensions[et])return ea.extensions[et].apply(this,eo);em.X&&eh.kg.warn(`Extension method ${et} couldn't be found, doing nothing.`)}};function getMainCarrier(){return ep.GLOBAL_OBJ.__SENTRY__=ep.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},ep.GLOBAL_OBJ}function makeMain(et){let eo=getMainCarrier(),ei=getHubFromCarrier(eo);return setHubOnCarrier(eo,et),ei}function getCurrentHub(){let et=getMainCarrier();if(et.__SENTRY__&&et.__SENTRY__.acs){let eo=et.__SENTRY__.acs.getCurrentHub();if(eo)return eo}return getGlobalHub(et)}function getIsolationScope(){return getCurrentHub().getIsolationScope()}function getGlobalHub(et=getMainCarrier()){return(!hasHubOnCarrier(et)||getHubFromCarrier(et).isOlderThan(eS))&&setHubOnCarrier(et,new Hub),getHubFromCarrier(et)}function hasHubOnCarrier(et){return!!(et&&et.__SENTRY__&&et.__SENTRY__.hub)}function getHubFromCarrier(et){return(0,ep.Y)("hub",()=>new Hub,et)}function setHubOnCarrier(et,eo){if(!et)return!1;let ei=et.__SENTRY__=et.__SENTRY__||{};return ei.hub=eo,!0}},10350:function(et,eo,ei){"use strict";let ea;ei.d(eo,{lW:function(){return getGlobalScope},sX:function(){return Scope}});var eu=ei(67597),ed=ei(21170),eh=ei(62844),ep=ei(12343),ef=ei(71195),em=ei(9015),eg=ei(73379);let ey=100;let Scope=class Scope{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}static clone(et){return et?et.clone():new Scope}clone(){let et=new Scope;return et._breadcrumbs=[...this._breadcrumbs],et._tags={...this._tags},et._extra={...this._extra},et._contexts={...this._contexts},et._user=this._user,et._level=this._level,et._span=this._span,et._session=this._session,et._transactionName=this._transactionName,et._fingerprint=this._fingerprint,et._eventProcessors=[...this._eventProcessors],et._requestSession=this._requestSession,et._attachments=[...this._attachments],et._sdkProcessingMetadata={...this._sdkProcessingMetadata},et._propagationContext={...this._propagationContext},et._client=this._client,et}setClient(et){this._client=et}getClient(){return this._client}addScopeListener(et){this._scopeListeners.push(et)}addEventProcessor(et){return this._eventProcessors.push(et),this}setUser(et){return this._user=et||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,em.CT)(this._session,{user:et}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(et){return this._requestSession=et,this}setTags(et){return this._tags={...this._tags,...et},this._notifyScopeListeners(),this}setTag(et,eo){return this._tags={...this._tags,[et]:eo},this._notifyScopeListeners(),this}setExtras(et){return this._extra={...this._extra,...et},this._notifyScopeListeners(),this}setExtra(et,eo){return this._extra={...this._extra,[et]:eo},this._notifyScopeListeners(),this}setFingerprint(et){return this._fingerprint=et,this._notifyScopeListeners(),this}setLevel(et){return this._level=et,this._notifyScopeListeners(),this}setTransactionName(et){return this._transactionName=et,this._notifyScopeListeners(),this}setContext(et,eo){return null===eo?delete this._contexts[et]:this._contexts[et]=eo,this._notifyScopeListeners(),this}setSpan(et){return this._span=et,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let et=this._span;return et&&et.transaction}setSession(et){return et?this._session=et:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(et){if(!et)return this;let eo="function"==typeof et?et(this):et;if(eo instanceof Scope){let et=eo.getScopeData();this._tags={...this._tags,...et.tags},this._extra={...this._extra,...et.extra},this._contexts={...this._contexts,...et.contexts},et.user&&Object.keys(et.user).length&&(this._user=et.user),et.level&&(this._level=et.level),et.fingerprint.length&&(this._fingerprint=et.fingerprint),eo.getRequestSession()&&(this._requestSession=eo.getRequestSession()),et.propagationContext&&(this._propagationContext=et.propagationContext)}else if((0,eu.PO)(eo)){let eo=et;this._tags={...this._tags,...eo.tags},this._extra={...this._extra,...eo.extra},this._contexts={...this._contexts,...eo.contexts},eo.user&&(this._user=eo.user),eo.level&&(this._level=eo.level),eo.fingerprint&&(this._fingerprint=eo.fingerprint),eo.requestSession&&(this._requestSession=eo.requestSession),eo.propagationContext&&(this._propagationContext=eo.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=generatePropagationContext(),this}addBreadcrumb(et,eo){let ei="number"==typeof eo?eo:ey;if(ei<=0)return this;let ea={timestamp:(0,ed.yW)(),...et},eu=this._breadcrumbs;return eu.push(ea),this._breadcrumbs=eu.length>ei?eu.slice(-ei):eu,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(et){return this._attachments.push(et),this}getAttachments(){let et=this.getScopeData();return et.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:et,_attachments:eo,_contexts:ei,_tags:ea,_extra:eu,_user:ed,_level:eh,_fingerprint:ep,_eventProcessors:ef,_propagationContext:em,_sdkProcessingMetadata:eg,_transactionName:ey,_span:eC}=this;return{breadcrumbs:et,attachments:eo,contexts:ei,tags:ea,extra:eu,user:ed,level:eh,fingerprint:ep||[],eventProcessors:ef,propagationContext:em,sdkProcessingMetadata:eg,transactionName:ey,span:eC}}applyToEvent(et,eo={},ei=[]){(0,eg.gi)(et,this.getScopeData());let ea=[...ei,...(0,ef.fH)(),...this._eventProcessors];return(0,ef.RP)(ea,et,eo)}setSDKProcessingMetadata(et){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...et},this}setPropagationContext(et){return this._propagationContext=et,this}getPropagationContext(){return this._propagationContext}captureException(et,eo){let ei=eo&&eo.event_id?eo.event_id:(0,eh.DM)();if(!this._client)return ep.kg.warn("No client configured on scope - will not capture exception!"),ei;let ea=Error("Sentry syntheticException");return this._client.captureException(et,{originalException:et,syntheticException:ea,...eo,event_id:ei},this),ei}captureMessage(et,eo,ei){let ea=ei&&ei.event_id?ei.event_id:(0,eh.DM)();if(!this._client)return ep.kg.warn("No client configured on scope - will not capture message!"),ea;let eu=Error(et);return this._client.captureMessage(et,eo,{originalException:et,syntheticException:eu,...ei,event_id:ea},this),ea}captureEvent(et,eo){let ei=eo&&eo.event_id?eo.event_id:(0,eh.DM)();return this._client?this._client.captureEvent(et,{...eo,event_id:ei},this):ep.kg.warn("No client configured on scope - will not capture event!"),ei}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(et=>{et(this)}),this._notifyingListeners=!1)}};function getGlobalScope(){return ea||(ea=new Scope),ea}function generatePropagationContext(){return{traceId:(0,eh.DM)(),spanId:(0,eh.DM)().substring(16)}}},9015:function(et,eo,ei){"use strict";ei.d(eo,{CT:function(){return updateSession},Hv:function(){return makeSession},RJ:function(){return closeSession}});var ea=ei(21170),eu=ei(62844),ed=ei(20535);function makeSession(et){let eo=(0,ea.ph)(),ei={sid:(0,eu.DM)(),init:!0,timestamp:eo,started:eo,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>sessionToJSON(ei)};return et&&updateSession(ei,et),ei}function updateSession(et,eo={}){if(!eo.user||(!et.ipAddress&&eo.user.ip_address&&(et.ipAddress=eo.user.ip_address),et.did||eo.did||(et.did=eo.user.id||eo.user.email||eo.user.username)),et.timestamp=eo.timestamp||(0,ea.ph)(),eo.abnormal_mechanism&&(et.abnormal_mechanism=eo.abnormal_mechanism),eo.ignoreDuration&&(et.ignoreDuration=eo.ignoreDuration),eo.sid&&(et.sid=32===eo.sid.length?eo.sid:(0,eu.DM)()),void 0!==eo.init&&(et.init=eo.init),!et.did&&eo.did&&(et.did=`${eo.did}`),"number"==typeof eo.started&&(et.started=eo.started),et.ignoreDuration)et.duration=void 0;else if("number"==typeof eo.duration)et.duration=eo.duration;else{let eo=et.timestamp-et.started;et.duration=eo>=0?eo:0}eo.release&&(et.release=eo.release),eo.environment&&(et.environment=eo.environment),!et.ipAddress&&eo.ipAddress&&(et.ipAddress=eo.ipAddress),!et.userAgent&&eo.userAgent&&(et.userAgent=eo.userAgent),"number"==typeof eo.errors&&(et.errors=eo.errors),eo.status&&(et.status=eo.status)}function closeSession(et,eo){let ei={};eo?ei={status:eo}:"ok"===et.status&&(ei={status:"exited"}),updateSession(et,ei)}function sessionToJSON(et){return(0,ed.Jr)({sid:`${et.sid}`,init:et.init,started:new Date(1e3*et.started).toISOString(),timestamp:new Date(1e3*et.timestamp).toISOString(),status:et.status,errors:et.errors,did:"number"==typeof et.did||"string"==typeof et.did?`${et.did}`:void 0,duration:et.duration,abnormal_mechanism:et.abnormal_mechanism,attrs:{release:et.release,environment:et.environment,ip_address:et.ipAddress,user_agent:et.userAgent}})}},90454:function(et,eo,ei){"use strict";ei.d(eo,{_:function(){return getDynamicSamplingContextFromClient},j:function(){return getDynamicSamplingContextFromSpan}});var ea=ei(20535),eu=ei(51131),ed=ei(64487),eh=ei(55102),ep=ei(93371);function getDynamicSamplingContextFromClient(et,eo,ei){let ed=eo.getOptions(),{publicKey:eh}=eo.getDsn()||{},{segment:ep}=ei&&ei.getUser()||{},ef=(0,ea.Jr)({environment:ed.environment||eu.J,release:ed.release,user_segment:ep,public_key:eh,trace_id:et});return eo.emit&&eo.emit("createDsc",ef),ef}function getDynamicSamplingContextFromSpan(et){let eo=(0,ed.s3)();if(!eo)return{};let ei=getDynamicSamplingContextFromClient((0,ep.XU)(et).trace_id||"",eo,(0,ed.nZ)()),ea=(0,eh.G)(et);if(!ea)return ei;let eu=ea&&ea._frozenDynamicSamplingContext;if(eu)return eu;let{sampleRate:ef,source:em}=ea.metadata;null!=ef&&(ei.sample_rate=`${ef}`);let eg=(0,ep.XU)(ea);return em&&"url"!==em&&(ei.transaction=eg.description),ei.sampled=String((0,ep.Tt)(ea)),eo.emit&&eo.emit("createDsc",ei),ei}},73379:function(et,eo,ei){"use strict";ei.d(eo,{gi:function(){return applyScopeDataToEvent},yo:function(){return mergeScopeData}});var ea=ei(20535),eu=ei(62844),ed=ei(90454),eh=ei(55102),ep=ei(93371);function applyScopeDataToEvent(et,eo){let{fingerprint:ei,span:ea,breadcrumbs:eu,sdkProcessingMetadata:ed}=eo;applyDataToEvent(et,eo),ea&&applySpanToEvent(et,ea),applyFingerprintToEvent(et,ei),applyBreadcrumbsToEvent(et,eu),applySdkMetadataToEvent(et,ed)}function mergeScopeData(et,eo){let{extra:ei,tags:ea,user:eu,contexts:ed,level:eh,sdkProcessingMetadata:ep,breadcrumbs:ef,fingerprint:em,eventProcessors:eg,attachments:ey,propagationContext:eC,transactionName:eS,span:e_}=eo;mergeAndOverwriteScopeData(et,"extra",ei),mergeAndOverwriteScopeData(et,"tags",ea),mergeAndOverwriteScopeData(et,"user",eu),mergeAndOverwriteScopeData(et,"contexts",ed),mergeAndOverwriteScopeData(et,"sdkProcessingMetadata",ep),eh&&(et.level=eh),eS&&(et.transactionName=eS),e_&&(et.span=e_),ef.length&&(et.breadcrumbs=[...et.breadcrumbs,...ef]),em.length&&(et.fingerprint=[...et.fingerprint,...em]),eg.length&&(et.eventProcessors=[...et.eventProcessors,...eg]),ey.length&&(et.attachments=[...et.attachments,...ey]),et.propagationContext={...et.propagationContext,...eC}}function mergeAndOverwriteScopeData(et,eo,ei){if(ei&&Object.keys(ei).length)for(let ea in et[eo]={...et[eo]},ei)Object.prototype.hasOwnProperty.call(ei,ea)&&(et[eo][ea]=ei[ea])}function applyDataToEvent(et,eo){let{extra:ei,tags:eu,user:ed,contexts:eh,level:ep,transactionName:ef}=eo,em=(0,ea.Jr)(ei);em&&Object.keys(em).length&&(et.extra={...em,...et.extra});let eg=(0,ea.Jr)(eu);eg&&Object.keys(eg).length&&(et.tags={...eg,...et.tags});let ey=(0,ea.Jr)(ed);ey&&Object.keys(ey).length&&(et.user={...ey,...et.user});let eC=(0,ea.Jr)(eh);eC&&Object.keys(eC).length&&(et.contexts={...eC,...et.contexts}),ep&&(et.level=ep),ef&&(et.transaction=ef)}function applyBreadcrumbsToEvent(et,eo){let ei=[...et.breadcrumbs||[],...eo];et.breadcrumbs=ei.length?ei:void 0}function applySdkMetadataToEvent(et,eo){et.sdkProcessingMetadata={...et.sdkProcessingMetadata,...eo}}function applySpanToEvent(et,eo){et.contexts={trace:(0,ep.wy)(eo),...et.contexts};let ei=(0,eh.G)(eo);if(ei){et.sdkProcessingMetadata={dynamicSamplingContext:(0,ed.j)(eo),...et.sdkProcessingMetadata};let ea=(0,ep.XU)(ei).description;ea&&(et.tags={transaction:ea,...et.tags})}}function applyFingerprintToEvent(et,eo){et.fingerprint=et.fingerprint?(0,eu.lE)(et.fingerprint):[],eo&&(et.fingerprint=et.fingerprint.concat(eo)),et.fingerprint&&!et.fingerprint.length&&delete et.fingerprint}},55102:function(et,eo,ei){"use strict";function getRootSpan(et){return et.transaction}ei.d(eo,{G:function(){return getRootSpan}})},88942:function(et,eo,ei){"use strict";ei.d(eo,{R:function(){return prepareEvent},U0:function(){return parseEventHintOrCaptureContext}});var ea=ei(62844),eu=ei(21170),ed=ei(57321),eh=ei(71235),ep=ei(34754),ef=ei(51131),em=ei(71195),eg=ei(10350),ey=ei(73379),eC=ei(93371);function prepareEvent(et,eo,ei,ed,eh,ep){let{normalizeDepth:ef=3,normalizeMaxBreadth:eC=1e3}=et,eS={...eo,event_id:eo.event_id||ei.event_id||(0,ea.DM)(),timestamp:eo.timestamp||(0,eu.yW)()},e_=ei.integrations||et.integrations.map(et=>et.name);applyClientOptions(eS,et),applyIntegrationsMetadata(eS,e_),void 0===eo.type&&applyDebugIds(eS,et.stackParser);let ew=getFinalScope(ed,ei.captureContext);ei.mechanism&&(0,ea.EG)(eS,ei.mechanism);let eA=eh&&eh.getEventProcessors?eh.getEventProcessors():[],eI=(0,eg.lW)().getScopeData();if(ep){let et=ep.getScopeData();(0,ey.yo)(eI,et)}if(ew){let et=ew.getScopeData();(0,ey.yo)(eI,et)}let eR=[...ei.attachments||[],...eI.attachments];eR.length&&(ei.attachments=eR),(0,ey.gi)(eS,eI);let eT=[...eA,...(0,em.fH)(),...eI.eventProcessors],eE=(0,em.RP)(eT,eS,ei);return eE.then(et=>(et&&applyDebugMeta(et),"number"==typeof ef&&ef>0)?normalizeEvent(et,ef,eC):et)}function applyClientOptions(et,eo){let{environment:ei,release:ea,dist:eu,maxValueLength:eh=250}=eo;"environment"in et||(et.environment="environment"in eo?ei:ef.J),void 0===et.release&&void 0!==ea&&(et.release=ea),void 0===et.dist&&void 0!==eu&&(et.dist=eu),et.message&&(et.message=(0,ed.$G)(et.message,eh));let ep=et.exception&&et.exception.values&&et.exception.values[0];ep&&ep.value&&(ep.value=(0,ed.$G)(ep.value,eh));let em=et.request;em&&em.url&&(em.url=(0,ed.$G)(em.url,eh))}let eS=new WeakMap;function applyDebugIds(et,eo){let ei;let ea=eh.GLOBAL_OBJ._sentryDebugIds;if(!ea)return;let eu=eS.get(eo);eu?ei=eu:(ei=new Map,eS.set(eo,ei));let ed=Object.keys(ea).reduce((et,eu)=>{let ed;let eh=ei.get(eu);eh?ed=eh:(ed=eo(eu),ei.set(eu,ed));for(let eo=ed.length-1;eo>=0;eo--){let ei=ed[eo];if(ei.filename){et[ei.filename]=ea[eu];break}}return et},{});try{et.exception.values.forEach(et=>{et.stacktrace.frames.forEach(et=>{et.filename&&(et.debug_id=ed[et.filename])})})}catch(et){}}function applyDebugMeta(et){let eo={};try{et.exception.values.forEach(et=>{et.stacktrace.frames.forEach(et=>{et.debug_id&&(et.abs_path?eo[et.abs_path]=et.debug_id:et.filename&&(eo[et.filename]=et.debug_id),delete et.debug_id)})})}catch(et){}if(0===Object.keys(eo).length)return;et.debug_meta=et.debug_meta||{},et.debug_meta.images=et.debug_meta.images||[];let ei=et.debug_meta.images;Object.keys(eo).forEach(et=>{ei.push({type:"sourcemap",code_file:et,debug_id:eo[et]})})}function applyIntegrationsMetadata(et,eo){eo.length>0&&(et.sdk=et.sdk||{},et.sdk.integrations=[...et.sdk.integrations||[],...eo])}function normalizeEvent(et,eo,ei){if(!et)return null;let ea={...et,...et.breadcrumbs&&{breadcrumbs:et.breadcrumbs.map(et=>({...et,...et.data&&{data:(0,ep.Fv)(et.data,eo,ei)}}))},...et.user&&{user:(0,ep.Fv)(et.user,eo,ei)},...et.contexts&&{contexts:(0,ep.Fv)(et.contexts,eo,ei)},...et.extra&&{extra:(0,ep.Fv)(et.extra,eo,ei)}};return et.contexts&&et.contexts.trace&&ea.contexts&&(ea.contexts.trace=et.contexts.trace,et.contexts.trace.data&&(ea.contexts.trace.data=(0,ep.Fv)(et.contexts.trace.data,eo,ei))),et.spans&&(ea.spans=et.spans.map(et=>{let ea=(0,eC.XU)(et).data;return ea&&(et.data=(0,ep.Fv)(ea,eo,ei)),et})),ea}function getFinalScope(et,eo){if(!eo)return et;let ei=et?et.clone():new eg.sX;return ei.update(eo),ei}function parseEventHintOrCaptureContext(et){return et?hintIsScopeOrFunction(et)||hintIsScopeContext(et)?{captureContext:et}:et:void 0}function hintIsScopeOrFunction(et){return et instanceof eg.sX||"function"==typeof et}let e_=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function hintIsScopeContext(et){return Object.keys(et).some(et=>e_.includes(et))}},93371:function(et,eo,ei){"use strict";ei.d(eo,{$k:function(){return spanTimeInputToSeconds},Hb:function(){return spanToTraceHeader},Tt:function(){return spanIsSampled},XU:function(){return spanToJSON},i0:function(){return ep},ve:function(){return eh},wy:function(){return spanToTraceContext}});var ea=ei(20535),eu=ei(77638),ed=ei(21170);let eh=0,ep=1;function spanToTraceContext(et){let{spanId:eo,traceId:ei}=et.spanContext(),{data:eu,op:ed,parent_span_id:eh,status:ep,tags:ef,origin:em}=spanToJSON(et);return(0,ea.Jr)({data:eu,op:ed,parent_span_id:eh,span_id:eo,status:ep,tags:ef,trace_id:ei,origin:em})}function spanToTraceHeader(et){let{traceId:eo,spanId:ei}=et.spanContext(),ea=spanIsSampled(et);return(0,eu.$p)(eo,ei,ea)}function spanTimeInputToSeconds(et){return"number"==typeof et?ensureTimestampInSeconds(et):Array.isArray(et)?et[0]+et[1]/1e9:et instanceof Date?ensureTimestampInSeconds(et.getTime()):(0,ed.ph)()}function ensureTimestampInSeconds(et){let eo=et>9999999999;return eo?et/1e3:et}function spanToJSON(et){return spanIsSpanClass(et)?et.getSpanJSON():"function"==typeof et.toJSON?et.toJSON():{}}function spanIsSpanClass(et){return"function"==typeof et.getSpanJSON}function spanIsSampled(et){let{traceFlags:eo}=et.spanContext();return!!(eo&ep)}},40105:function(et,eo,ei){"use strict";ei.d(eo,{J:function(){return ea}});let ea="7.107.0"},48808:function(et,eo,ei){"use strict";ei.d(eo,{X:function(){return ea}});let ea="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},99181:function(et,eo,ei){"use strict";ei.d(eo,{EN:function(){return baggageHeaderToDynamicSamplingContext},IQ:function(){return dynamicSamplingContextToSentryBaggageHeader},bU:function(){return eh}});var ea=ei(53897),eu=ei(67597),ed=ei(12343);let eh="baggage",ep="sentry-",ef=/^sentry-/,em=8192;function baggageHeaderToDynamicSamplingContext(et){if(!(0,eu.HD)(et)&&!Array.isArray(et))return;let eo={};if(Array.isArray(et))eo=et.reduce((et,eo)=>{let ei=baggageHeaderToObject(eo);for(let eo of Object.keys(ei))et[eo]=ei[eo];return et},{});else{if(!et)return;eo=baggageHeaderToObject(et)}let ei=Object.entries(eo).reduce((et,[eo,ei])=>{if(eo.match(ef)){let ea=eo.slice(ep.length);et[ea]=ei}return et},{});return Object.keys(ei).length>0?ei:void 0}function dynamicSamplingContextToSentryBaggageHeader(et){if(!et)return;let eo=Object.entries(et).reduce((et,[eo,ei])=>(ei&&(et[`${ep}${eo}`]=ei),et),{});return objectToBaggageHeader(eo)}function baggageHeaderToObject(et){return et.split(",").map(et=>et.split("=").map(et=>decodeURIComponent(et.trim()))).reduce((et,[eo,ei])=>(et[eo]=ei,et),{})}function objectToBaggageHeader(et){if(0!==Object.keys(et).length)return Object.entries(et).reduce((et,[eo,ei],eu)=>{let eh=`${encodeURIComponent(eo)}=${encodeURIComponent(ei)}`,ep=0===eu?eh:`${et},${eh}`;return ep.length>em?(ea.X&&ed.kg.warn(`Not adding key: ${eo} with val: ${ei} to baggage header due to exceeding baggage size limits.`),et):ep},"")}},58464:function(et,eo,ei){"use strict";ei.d(eo,{Rt:function(){return htmlTreeAsString},iY:function(){return getComponentName},l4:function(){return getLocationHref},qT:function(){return getDomElement}});var ea=ei(67597),eu=ei(71235);let ed=(0,eu.R)(),eh=80;function htmlTreeAsString(et,eo={}){if(!et)return"<unknown>";try{let ei,ea=et,eu=5,ed=[],ep=0,ef=0,em=" > ",eg=em.length,ey=Array.isArray(eo)?eo:eo.keyAttrs,eC=!Array.isArray(eo)&&eo.maxStringLength||eh;for(;ea&&ep++<eu&&(ei=_htmlElementAsString(ea,ey),"html"!==ei&&(!(ep>1)||!(ef+ed.length*eg+ei.length>=eC)));)ed.push(ei),ef+=ei.length,ea=ea.parentNode;return ed.reverse().join(em)}catch(et){return"<unknown>"}}function _htmlElementAsString(et,eo){let ei,eu,eh,ep,ef;let em=et,eg=[];if(!em||!em.tagName)return"";if(ed.HTMLElement&&em instanceof HTMLElement&&em.dataset&&em.dataset.sentryComponent)return em.dataset.sentryComponent;eg.push(em.tagName.toLowerCase());let ey=eo&&eo.length?eo.filter(et=>em.getAttribute(et)).map(et=>[et,em.getAttribute(et)]):null;if(ey&&ey.length)ey.forEach(et=>{eg.push(`[${et[0]}="${et[1]}"]`)});else if(em.id&&eg.push(`#${em.id}`),(ei=em.className)&&(0,ea.HD)(ei))for(ef=0,eu=ei.split(/\s+/);ef<eu.length;ef++)eg.push(`.${eu[ef]}`);let eC=["aria-label","type","name","title","alt"];for(ef=0;ef<eC.length;ef++)eh=eC[ef],(ep=em.getAttribute(eh))&&eg.push(`[${eh}="${ep}"]`);return eg.join("")}function getLocationHref(){try{return ed.document.location.href}catch(et){return""}}function getDomElement(et){return ed.document&&ed.document.querySelector?ed.document.querySelector(et):null}function getComponentName(et){if(!ed.HTMLElement)return null;let eo=et,ei=5;for(let et=0;et<ei&&eo;et++){if(eo instanceof HTMLElement&&eo.dataset.sentryComponent)return eo.dataset.sentryComponent;eo=eo.parentNode}return null}},53897:function(et,eo,ei){"use strict";ei.d(eo,{X:function(){return ea}});let ea="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},68518:function(et,eo,ei){"use strict";function isBrowserBundle(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function getSDKSource(){return"npm"}ei.d(eo,{S:function(){return getSDKSource},n:function(){return isBrowserBundle}})},67597:function(et,eo,ei){"use strict";ei.d(eo,{Cy:function(){return isSyntheticEvent},HD:function(){return isString},J8:function(){return isThenable},Kj:function(){return isRegExp},Le:function(){return isParameterizedString},PO:function(){return isPlainObject},TX:function(){return isDOMError},V9:function(){return isInstanceOf},VW:function(){return isErrorEvent},VZ:function(){return isError},cO:function(){return isEvent},fm:function(){return isDOMException},i2:function(){return isNaN},kK:function(){return isElement},pt:function(){return isPrimitive},y1:function(){return isVueViewModel}});let ea=Object.prototype.toString;function isError(et){switch(ea.call(et)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return isInstanceOf(et,Error)}}function isBuiltin(et,eo){return ea.call(et)===`[object ${eo}]`}function isErrorEvent(et){return isBuiltin(et,"ErrorEvent")}function isDOMError(et){return isBuiltin(et,"DOMError")}function isDOMException(et){return isBuiltin(et,"DOMException")}function isString(et){return isBuiltin(et,"String")}function isParameterizedString(et){return"object"==typeof et&&null!==et&&"__sentry_template_string__"in et&&"__sentry_template_values__"in et}function isPrimitive(et){return null===et||isParameterizedString(et)||"object"!=typeof et&&"function"!=typeof et}function isPlainObject(et){return isBuiltin(et,"Object")}function isEvent(et){return"undefined"!=typeof Event&&isInstanceOf(et,Event)}function isElement(et){return"undefined"!=typeof Element&&isInstanceOf(et,Element)}function isRegExp(et){return isBuiltin(et,"RegExp")}function isThenable(et){return!!(et&&et.then&&"function"==typeof et.then)}function isSyntheticEvent(et){return isPlainObject(et)&&"nativeEvent"in et&&"preventDefault"in et&&"stopPropagation"in et}function isNaN(et){return"number"==typeof et&&et!=et}function isInstanceOf(et,eo){try{return et instanceof eo}catch(et){return!1}}function isVueViewModel(et){return!!("object"==typeof et&&null!==et&&(et.__isVue||et._isVue))}},12343:function(et,eo,ei){"use strict";ei.d(eo,{Cf:function(){return consoleSandbox},LD:function(){return ep},RU:function(){return eh},kg:function(){return ef}});var ea=ei(53897),eu=ei(71235);let ed="Sentry Logger ",eh=["debug","info","warn","error","log","assert","trace"],ep={};function consoleSandbox(et){if(!("console"in eu.GLOBAL_OBJ))return et();let eo=eu.GLOBAL_OBJ.console,ei={},ea=Object.keys(ep);ea.forEach(et=>{let ea=ep[et];ei[et]=eo[et],eo[et]=ea});try{return et()}finally{ea.forEach(et=>{eo[et]=ei[et]})}}function makeLogger(){let et=!1,eo={enable:()=>{et=!0},disable:()=>{et=!1},isEnabled:()=>et};return ea.X?eh.forEach(ei=>{eo[ei]=(...eo)=>{et&&consoleSandbox(()=>{eu.GLOBAL_OBJ.console[ei](`${ed}[${ei}]:`,...eo)})}}):eh.forEach(et=>{eo[et]=()=>void 0}),eo}let ef=makeLogger()},62844:function(et,eo,ei){"use strict";ei.d(eo,{DM:function(){return uuid4},Db:function(){return addExceptionTypeValue},EG:function(){return addExceptionMechanism},YO:function(){return checkOrSetAlreadyCaught},jH:function(){return getEventDescription},lE:function(){return arrayify}});var ea=ei(20535),eu=ei(71235);function uuid4(){let et=eu.GLOBAL_OBJ,eo=et.crypto||et.msCrypto,getRandomByte=()=>16*Math.random();try{if(eo&&eo.randomUUID)return eo.randomUUID().replace(/-/g,"");eo&&eo.getRandomValues&&(getRandomByte=()=>{let et=new Uint8Array(1);return eo.getRandomValues(et),et[0]})}catch(et){}return"10000000100040008000100000000000".replace(/[018]/g,et=>(et^(15&getRandomByte())>>et/4).toString(16))}function getFirstException(et){return et.exception&&et.exception.values?et.exception.values[0]:void 0}function getEventDescription(et){let{message:eo,event_id:ei}=et;if(eo)return eo;let ea=getFirstException(et);return ea?ea.type&&ea.value?`${ea.type}: ${ea.value}`:ea.type||ea.value||ei||"<unknown>":ei||"<unknown>"}function addExceptionTypeValue(et,eo,ei){let ea=et.exception=et.exception||{},eu=ea.values=ea.values||[],ed=eu[0]=eu[0]||{};ed.value||(ed.value=eo||""),ed.type||(ed.type=ei||"Error")}function addExceptionMechanism(et,eo){let ei=getFirstException(et);if(!ei)return;let ea={type:"generic",handled:!0},eu=ei.mechanism;if(ei.mechanism={...ea,...eu,...eo},eo&&"data"in eo){let et={...eu&&eu.data,...eo.data};ei.mechanism.data=et}}function checkOrSetAlreadyCaught(et){if(et&&et.__sentry_captured__)return!0;try{(0,ea.xp)(et,"__sentry_captured__",!0)}catch(et){}return!1}function arrayify(et){return Array.isArray(et)?et:[et]}},61422:function(et,eo,ei){"use strict";ei.d(eo,{KV:function(){return isNodeEnv}});var ea=ei(68518);et=ei.hmd(et);var eu=ei(34155);function isNodeEnv(){return!(0,ea.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==eu?eu:0)}},34754:function(et,eo,ei){"use strict";ei.d(eo,{Fv:function(){return normalize},Qy:function(){return normalizeToSize}});var ea=ei(67597);function memoBuilder(){let et="function"==typeof WeakSet,eo=et?new WeakSet:[];return[function(ei){if(et)return!!eo.has(ei)||(eo.add(ei),!1);for(let et=0;et<eo.length;et++){let ea=eo[et];if(ea===ei)return!0}return eo.push(ei),!1},function(ei){if(et)eo.delete(ei);else for(let et=0;et<eo.length;et++)if(eo[et]===ei){eo.splice(et,1);break}}]}var eu=ei(20535),ed=ei(30360);function normalize(et,eo=100,ei=Infinity){try{return visit("",et,eo,ei)}catch(et){return{ERROR:`**non-serializable** (${et})`}}}function normalizeToSize(et,eo=3,ei=102400){let ea=normalize(et,eo);return jsonSize(ea)>ei?normalizeToSize(et,eo-1,ei):ea}function visit(et,eo,ei=Infinity,ed=Infinity,eh=memoBuilder()){let[ep,ef]=eh;if(null==eo||["number","boolean","string"].includes(typeof eo)&&!(0,ea.i2)(eo))return eo;let em=stringifyValue(et,eo);if(!em.startsWith("[object "))return em;if(eo.__sentry_skip_normalization__)return eo;let eg="number"==typeof eo.__sentry_override_normalization_depth__?eo.__sentry_override_normalization_depth__:ei;if(0===eg)return em.replace("object ","");if(ep(eo))return"[Circular ~]";let ey=eo;if(ey&&"function"==typeof ey.toJSON)try{let et=ey.toJSON();return visit("",et,eg-1,ed,eh)}catch(et){}let eC=Array.isArray(eo)?[]:{},eS=0,e_=(0,eu.Sh)(eo);for(let et in e_){if(!Object.prototype.hasOwnProperty.call(e_,et))continue;if(eS>=ed){eC[et]="[MaxProperties ~]";break}let eo=e_[et];eC[et]=visit(et,eo,eg-1,ed,eh),eS++}return ef(eo),eC}function stringifyValue(et,eo){try{if("domain"===et&&eo&&"object"==typeof eo&&eo._events)return"[Domain]";if("domainEmitter"===et)return"[DomainEmitter]";if(void 0!==ei.g&&eo===ei.g)return"[Global]";if("undefined"!=typeof window&&eo===window)return"[Window]";if("undefined"!=typeof document&&eo===document)return"[Document]";if((0,ea.y1)(eo))return"[VueViewModel]";if((0,ea.Cy)(eo))return"[SyntheticEvent]";if("number"==typeof eo&&eo!=eo)return"[NaN]";if("function"==typeof eo)return`[Function: ${(0,ed.$P)(eo)}]`;if("symbol"==typeof eo)return`[${String(eo)}]`;if("bigint"==typeof eo)return`[BigInt: ${String(eo)}]`;let eu=getConstructorName(eo);if(/^HTML(\w*)Element$/.test(eu))return`[HTMLElement: ${eu}]`;return`[object ${eu}]`}catch(et){return`**non-serializable** (${et})`}}function getConstructorName(et){let eo=Object.getPrototypeOf(et);return eo?eo.constructor.name:"null prototype"}function utf8Length(et){return~-encodeURI(et).split(/%..|./).length}function jsonSize(et){return utf8Length(JSON.stringify(et))}},20535:function(et,eo,ei){"use strict";ei.d(eo,{$Q:function(){return markFunctionWrapped},HK:function(){return getOriginalFunction},Jr:function(){return dropUndefinedKeys},Sh:function(){return convertToPlainObject},_j:function(){return urlEncode},hl:function(){return fill},xp:function(){return addNonEnumerableProperty},zf:function(){return extractExceptionKeysForMessage}});var ea=ei(58464),eu=ei(53897),ed=ei(67597),eh=ei(12343),ep=ei(57321);function fill(et,eo,ei){if(!(eo in et))return;let ea=et[eo],eu=ei(ea);"function"==typeof eu&&markFunctionWrapped(eu,ea),et[eo]=eu}function addNonEnumerableProperty(et,eo,ei){try{Object.defineProperty(et,eo,{value:ei,writable:!0,configurable:!0})}catch(ei){eu.X&&eh.kg.log(`Failed to add non-enumerable property "${eo}" to object`,et)}}function markFunctionWrapped(et,eo){try{let ei=eo.prototype||{};et.prototype=eo.prototype=ei,addNonEnumerableProperty(et,"__sentry_original__",eo)}catch(et){}}function getOriginalFunction(et){return et.__sentry_original__}function urlEncode(et){return Object.keys(et).map(eo=>`${encodeURIComponent(eo)}=${encodeURIComponent(et[eo])}`).join("&")}function convertToPlainObject(et){if((0,ed.VZ)(et))return{message:et.message,name:et.name,stack:et.stack,...getOwnProperties(et)};if(!(0,ed.cO)(et))return et;{let eo={type:et.type,target:serializeEventTarget(et.target),currentTarget:serializeEventTarget(et.currentTarget),...getOwnProperties(et)};return"undefined"!=typeof CustomEvent&&(0,ed.V9)(et,CustomEvent)&&(eo.detail=et.detail),eo}}function serializeEventTarget(et){try{return(0,ed.kK)(et)?(0,ea.Rt)(et):Object.prototype.toString.call(et)}catch(et){return"<unknown>"}}function getOwnProperties(et){if("object"!=typeof et||null===et)return{};{let eo={};for(let ei in et)Object.prototype.hasOwnProperty.call(et,ei)&&(eo[ei]=et[ei]);return eo}}function extractExceptionKeysForMessage(et,eo=40){let ei=Object.keys(convertToPlainObject(et));if(ei.sort(),!ei.length)return"[object has no keys]";if(ei[0].length>=eo)return(0,ep.$G)(ei[0],eo);for(let et=ei.length;et>0;et--){let ea=ei.slice(0,et).join(", ");if(!(ea.length>eo)){if(et===ei.length)return ea;return(0,ep.$G)(ea,eo)}}return""}function dropUndefinedKeys(et){let eo=new Map;return _dropUndefinedKeys(et,eo)}function _dropUndefinedKeys(et,eo){if(isPojo(et)){let ei=eo.get(et);if(void 0!==ei)return ei;let ea={};for(let ei of(eo.set(et,ea),Object.keys(et)))void 0!==et[ei]&&(ea[ei]=_dropUndefinedKeys(et[ei],eo));return ea}if(Array.isArray(et)){let ei=eo.get(et);if(void 0!==ei)return ei;let ea=[];return eo.set(et,ea),et.forEach(et=>{ea.push(_dropUndefinedKeys(et,eo))}),ea}return et}function isPojo(et){if(!(0,ed.PO)(et))return!1;try{let eo=Object.getPrototypeOf(et).constructor.name;return!eo||"Object"===eo}catch(et){return!0}}},30360:function(et,eo,ei){"use strict";ei.d(eo,{$P:function(){return getFunctionName},Sq:function(){return stackParserFromStackParserOptions},pE:function(){return createStackParser}});let ea=50,eu=/\(error: (.*)\)/,ed=/captureMessage|captureException/;function createStackParser(...et){let eo=et.sort((et,eo)=>et[0]-eo[0]).map(et=>et[1]);return(et,ei=0)=>{let ed=[],eh=et.split("\n");for(let et=ei;et<eh.length;et++){let ei=eh[et];if(ei.length>1024)continue;let ep=eu.test(ei)?ei.replace(eu,"$1"):ei;if(!ep.match(/\S*Error: /)){for(let et of eo){let eo=et(ep);if(eo){ed.push(eo);break}}if(ed.length>=ea)break}}return stripSentryFramesAndReverse(ed)}}function stackParserFromStackParserOptions(et){return Array.isArray(et)?createStackParser(...et):et}function stripSentryFramesAndReverse(et){if(!et.length)return[];let eo=Array.from(et);return/sentryWrapped/.test(eo[eo.length-1].function||"")&&eo.pop(),eo.reverse(),ed.test(eo[eo.length-1].function||"")&&(eo.pop(),ed.test(eo[eo.length-1].function||"")&&eo.pop()),eo.slice(0,ea).map(et=>({...et,filename:et.filename||eo[eo.length-1].filename,function:et.function||"?"}))}let eh="<anonymous>";function getFunctionName(et){try{if(!et||"function"!=typeof et)return eh;return et.name||eh}catch(et){return eh}}},57321:function(et,eo,ei){"use strict";ei.d(eo,{$G:function(){return truncate},U0:function(){return stringMatchesSomePattern},nK:function(){return safeJoin}});var ea=ei(67597);function truncate(et,eo=0){return"string"!=typeof et||0===eo?et:et.length<=eo?et:`${et.slice(0,eo)}...`}function safeJoin(et,eo){if(!Array.isArray(et))return"";let ei=[];for(let eo=0;eo<et.length;eo++){let eu=et[eo];try{(0,ea.y1)(eu)?ei.push("[VueViewModel]"):ei.push(String(eu))}catch(et){ei.push("[value cannot be serialized]")}}return ei.join(eo)}function isMatchingPattern(et,eo,ei=!1){return!!(0,ea.HD)(et)&&((0,ea.Kj)(eo)?eo.test(et):!!(0,ea.HD)(eo)&&(ei?et===eo:et.includes(eo)))}function stringMatchesSomePattern(et,eo=[],ei=!1){return eo.some(eo=>isMatchingPattern(et,eo,ei))}},96893:function(et,eo,ei){"use strict";ei.d(eo,{$2:function(){return rejectedSyncPromise},WD:function(){return resolvedSyncPromise},cW:function(){return SyncPromise}});var ea,eu=ei(67597);function resolvedSyncPromise(et){return new SyncPromise(eo=>{eo(et)})}function rejectedSyncPromise(et){return new SyncPromise((eo,ei)=>{ei(et)})}!function(et){let eo=0;et[et.PENDING=eo]="PENDING";let ei=1;et[et.RESOLVED=ei]="RESOLVED";let ea=2;et[et.REJECTED=ea]="REJECTED"}(ea||(ea={}));let SyncPromise=class SyncPromise{constructor(et){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=ea.PENDING,this._handlers=[];try{et(this._resolve,this._reject)}catch(et){this._reject(et)}}then(et,eo){return new SyncPromise((ei,ea)=>{this._handlers.push([!1,eo=>{if(et)try{ei(et(eo))}catch(et){ea(et)}else ei(eo)},et=>{if(eo)try{ei(eo(et))}catch(et){ea(et)}else ea(et)}]),this._executeHandlers()})}catch(et){return this.then(et=>et,et)}finally(et){return new SyncPromise((eo,ei)=>{let ea,eu;return this.then(eo=>{eu=!1,ea=eo,et&&et()},eo=>{eu=!0,ea=eo,et&&et()}).then(()=>{if(eu){ei(ea);return}eo(ea)})})}__init(){this._resolve=et=>{this._setResult(ea.RESOLVED,et)}}__init2(){this._reject=et=>{this._setResult(ea.REJECTED,et)}}__init3(){this._setResult=(et,eo)=>{if(this._state===ea.PENDING){if((0,eu.J8)(eo)){eo.then(this._resolve,this._reject);return}this._state=et,this._value=eo,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ea.PENDING)return;let et=this._handlers.slice();this._handlers=[],et.forEach(et=>{et[0]||(this._state===ea.RESOLVED&&et[1](this._value),this._state===ea.REJECTED&&et[2](this._value),et[0]=!0)})}}}},21170:function(et,eo,ei){"use strict";let ea;ei.d(eo,{Z1:function(){return ep},ph:function(){return eh},yW:function(){return dateTimestampInSeconds}});var eu=ei(71235);let ed=1e3;function dateTimestampInSeconds(){return Date.now()/ed}function createUnixTimestampInSecondsFunc(){let{performance:et}=eu.GLOBAL_OBJ;if(!et||!et.now)return dateTimestampInSeconds;let eo=Date.now()-et.now(),ei=void 0==et.timeOrigin?eo:et.timeOrigin;return()=>(ei+et.now())/ed}let eh=createUnixTimestampInSecondsFunc(),ep=(()=>{let{performance:et}=eu.GLOBAL_OBJ;if(!et||!et.now){ea="none";return}let eo=36e5,ei=et.now(),ed=Date.now(),eh=et.timeOrigin?Math.abs(et.timeOrigin+ei-ed):eo,ep=eh<eo,ef=et.timing&&et.timing.navigationStart,em="number"==typeof ef,eg=em?Math.abs(ef+ei-ed):eo,ey=eg<eo;return ep||ey?eh<=eg?(ea="timeOrigin",et.timeOrigin):(ea="navigationStart",ef):(ea="dateNow",ed)})()},77638:function(et,eo,ei){"use strict";ei.d(eo,{$p:function(){return generateSentryTraceHeader},KA:function(){return tracingContextFromHeaders},pT:function(){return propagationContextFromHeaders}});var ea=ei(99181),eu=ei(62844);let ed=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function extractTraceparentData(et){let eo;if(!et)return;let ei=et.match(ed);if(ei)return"1"===ei[3]?eo=!0:"0"===ei[3]&&(eo=!1),{traceId:ei[1],parentSampled:eo,parentSpanId:ei[2]}}function tracingContextFromHeaders(et,eo){let ei=extractTraceparentData(et),ed=(0,ea.EN)(eo),{traceId:eh,parentSpanId:ep,parentSampled:ef}=ei||{};return ei?{traceparentData:ei,dynamicSamplingContext:ed||{},propagationContext:{traceId:eh||(0,eu.DM)(),parentSpanId:ep||(0,eu.DM)().substring(16),spanId:(0,eu.DM)().substring(16),sampled:ef,dsc:ed||{}}}:{traceparentData:ei,dynamicSamplingContext:void 0,propagationContext:{traceId:eh||(0,eu.DM)(),spanId:(0,eu.DM)().substring(16)}}}function propagationContextFromHeaders(et,eo){let ei=extractTraceparentData(et),ed=(0,ea.EN)(eo),{traceId:eh,parentSpanId:ep,parentSampled:ef}=ei||{};return ei?{traceId:eh||(0,eu.DM)(),parentSpanId:ep||(0,eu.DM)().substring(16),spanId:(0,eu.DM)().substring(16),sampled:ef,dsc:ed||{}}:{traceId:eh||(0,eu.DM)(),spanId:(0,eu.DM)().substring(16)}}function generateSentryTraceHeader(et=(0,eu.DM)(),eo=(0,eu.DM)().substring(16),ei){let ea="";return void 0!==ei&&(ea=ei?"-1":"-0"),`${et}-${eo}${ea}`}},71235:function(et,eo,ei){"use strict";function isGlobalObj(et){return et&&et.Math==Math?et:void 0}ei.d(eo,{GLOBAL_OBJ:function(){return ea},R:function(){return getGlobalObject},Y:function(){return getGlobalSingleton}});let ea="object"==typeof globalThis&&isGlobalObj(globalThis)||"object"==typeof window&&isGlobalObj(window)||"object"==typeof self&&isGlobalObj(self)||"object"==typeof ei.g&&isGlobalObj(ei.g)||function(){return this}()||{};function getGlobalObject(){return ea}function getGlobalSingleton(et,eo,ei){let eu=ei||ea,ed=eu.__SENTRY__=eu.__SENTRY__||{},eh=ed[et]||(ed[et]=eo());return eh}},61565:function(et,eo,ei){"use strict";ei.d(eo,{AU:function(){return asyncActions_getTreatments},Eo:function(){return initSplitSdk},Z7:function(){return selectors_selectTreatmentValue},P0:function(){return splitReducer}});var ea,eu,ed,eh,ep,ef,em,eg="redux-1.10.0",ey="control",eC={treatment:"control",config:null},getControlTreatmentsWithConfig=function(et){return et.reduce(function(et,eo){return et[eo]=eC,et},{})},eS="SPLIT_READY",e_="SPLIT_READY_WITH_EVALUATIONS",ew="SPLIT_READY_FROM_CACHE",eA="SPLIT_READY_FROM_CACHE_WITH_EVALUATIONS",eI="SPLIT_UPDATE",eR="SPLIT_UPDATE_WITH_EVALUATIONS",eT="SPLIT_TIMEDOUT",eE="SPLIT_DESTROY",eP="ADD_TREATMENTS",ek='[ERROR] To use "getTreatments" the SDK must be first initialized with an "initSplitSdk" action',eO='[ERROR] When using selectors, "splitState" value must be a proper splitio piece of state',eM='[ERROR] "getTreatments" must be called with a param object containing a valid splitNames or flagSets properties',eD="[WARN]  Both splitNames and flagSets properties were provided. flagSets will be ignored",__assign=function(){return(__assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},eU={isReady:!1,isReadyFromCache:!1,isTimedout:!1,hasTimedout:!1,isDestroyed:!1,lastUpdate:0,treatments:{}};function setReady(et,eo){return __assign(__assign({},et),{isReady:!0,isTimedout:!1,lastUpdate:eo})}function setReadyFromCache(et,eo){return __assign(__assign({},et),{isReadyFromCache:!0,lastUpdate:eo})}function setUpdated(et,eo){return __assign(__assign({},et),{lastUpdate:eo})}function assignTreatments(et,eo,ei){return et.treatments=__assign({},et.treatments),Object.entries(ei).forEach(function(ei){var ea,eu,ed=ei[0],eh=ei[1];if(et.treatments[ed]){var ep=et.treatments[ed];ep[eo]&&ep[eo].treatment===eh.treatment&&ep[eo].config===eh.config||(et.treatments[ed]=__assign(__assign({},et.treatments[ed]),((ea={})[eo]=eh,ea)))}else et.treatments[ed]=((eu={})[eo]=eh,eu)}),et}var splitReducer=function(et,eo){switch(void 0===et&&(et=eU),eo.type){case eS:return setReady(et,eo.payload.timestamp);case ew:return setReadyFromCache(et,eo.payload.timestamp);case eT:return __assign(__assign({},et),{isTimedout:!0,hasTimedout:!0,lastUpdate:eo.payload.timestamp});case eI:return setUpdated(et,eo.payload.timestamp);case eE:return __assign(__assign({},et),{isDestroyed:!0,lastUpdate:eo.payload.timestamp});case eP:var ei=eo.payload,ea=ei.key,eu=ei.treatments,ed=__assign({},et);return assignTreatments(ed,ea,eu);case e_:var eh=eo.payload,ea=eh.key,eu=eh.treatments,ep=eh.timestamp,ed=setReady(et,ep);return assignTreatments(ed,ea,eu);case eA:var ef=eo.payload,ea=ef.key,eu=ef.treatments,ep=ef.timestamp,ed=setReadyFromCache(et,ep);return assignTreatments(ed,ea,eu);case eR:var em=eo.payload,ea=em.key,eu=em.treatments,ep=em.timestamp,ed=setUpdated(et,ep);return assignTreatments(ed,ea,eu);default:return et}},eL=Object.getOwnPropertySymbols,eN=Object.prototype.hasOwnProperty,eB=Object.prototype.propertyIsEnumerable;function toObject(et){if(null==et)throw TypeError("Object.assign cannot be called with null or undefined");return Object(et)}var eF=!function(){try{if(!Object.assign)return!1;var et=new String("abc");if(et[5]="de","5"===Object.getOwnPropertyNames(et)[0])return!1;for(var eo={},ei=0;ei<10;ei++)eo["_"+String.fromCharCode(ei)]=ei;var ea=Object.getOwnPropertyNames(eo).map(function(et){return eo[et]});if("0123456789"!==ea.join(""))return!1;var eu={};if("abcdefghijklmnopqrst".split("").forEach(function(et){eu[et]=et}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},eu)).join(""))return!1;return!0}catch(et){return!1}}()?function(et,eo){for(var ei,ea,eu=toObject(et),ed=1;ed<arguments.length;ed++){for(var eh in ei=Object(arguments[ed]))eN.call(ei,eh)&&(eu[eh]=ei[eh]);if(eL){ea=eL(ei);for(var ep=0;ep<ea.length;ep++)eB.call(ei,ea[ep])&&(eu[ea[ep]]=ei[ea[ep]])}}return eu}:Object.assign,ej=0,eG=1,eH=2,eK=3,ez=4,eW=5,eV=6,eJ=7,eY=8,e$=9,eZ=10,eQ=11,eX=12,e0=13,e4=14,e6=15,e5=16,e8=17,e7=18,e9=19,tr=20,tn=21,ti=22,ta=23,ts=24,tc=25,tu=26,td=27,tp=28,tf=29,tm=30,tg=31,ty=32,tv=33,tb=34,tC=35,tS=36,t_=37,tw=38,tA=39,tI=100,tR=101,tT=102,tE=103,tP=104,tk=105,tO=106,tx=107,tM=108,tD=109,tU=110,tL=111,tN=112,tq=113,tB=114,tF=115,tj=116,tG=117,tH=118,tK=119,tz=120,tW=121,tV=122,tJ=123,tY=124,t$=200,tZ=201,tQ=202,tX=203,t0=204,t1=205,t2=206,t4=207,t3=208,t6=209,t5=210,t8=211,t7=212,t9=213,rr=214,rn=215,ro=216,ri=217,ra=218,rs=219,rc=220,ru=221,rl=222,rd=223,rh=224,rp=225,rf=226,rm=227,rg=228,ry=300,rv=301,rb=302,rC=303,rS=304,r_=305,rw=306,rA=307,rI=308,rR=309,rT=310,rE=311,rP=312,rk=313,rO=314,rx=315,rM=316,rD=317,rU=318,rL=319,rN=320,rq=321,rB=322,rF=323,rj=324,rG=325,rH=326,rK=327,rz=328,rW="settings",rV="Factory instantiation",rJ="engine",rY=rJ+":combiner: ",r$=rJ+":matcher: ",rZ=rJ+":value: ",rQ="sync",rX=rQ+":sync-manager: ",r0=rQ+":offline: ",r1=rQ+":streaming: ",r2=rQ+":featureflag-changes: ",r4=rQ+":my-segments: ",r3=rQ+":polling-manager: ",r6=rQ+":submitter: ",r5="impressions-tracker: ",r8="events-tracker: ",r7="unique-keys-tracker: ",r9="cleanup: ",nr="Global fetch API is not available.";function splitHttpClientFactory(et,eo,ei){var ea=et.log,eu=et.core.authorizationKey,ed=et.version,eh=et.runtime,ep=eh.ip,ef=eh.hostname,em=ei&&ei(),eg=eo&&eo();eg||ea.error(rC,[nr]);var ey={Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+eu,SplitSDKVersion:ed};return ep&&(ey.SplitSDKMachineIP=ep),ef&&(ey.SplitSDKMachineName=ef),function(et,eo,ei,eu){void 0===eo&&(eo={}),void 0===ei&&(ei=function(){}),void 0===eu&&(eu=!1);var ed=eF({headers:eo.headers?eF({},ey,eo.headers):ey,method:eo.method||"GET",body:eo.body},em);return eg?eg(et,ed).then(function(et){return et.ok?(ei(),et):et.text().then(function(eo){return Promise.reject({response:et,message:eo})})}).catch(function(eo){var ed=eo&&eo.response,eh="";eh=ed?404===ed.status?"Invalid SDK key or resource not found.":eo.message:eo.message||"Network Error",ed&&403===ed.status||ea[eu?"info":"error"](rB,[ed?ed.status:"NO_STATUS",et,eh]);var ep=Error(eh);throw ep.statusCode=ed&&ed.status,ei(ep),ep}):Promise.reject(Error(nr))}}var nn="control",no={treatment:nn,config:null},ni="IMPRESSION",nc="EVENT",nu="DEBUG",nl="OPTIMIZED",nd="NONE",nh="localhost",np="standalone",nf="producer",nm="consumer",ng="consumer_partial",ny="MEMORY",nv="LOCALSTORAGE",nC="GRANTED",nS="DECLINED",n_="UNKNOWN",nw="getTreatment",nA="getTreatments",nI="getTreatmentWithConfig",nR="getTreatmentsWithConfig",nT="getTreatmentsByFlagSet",nE="getTreatmentsByFlagSets",nP="getTreatmentsWithConfigByFlagSet",nk="getTreatmentsWithConfigByFlagSets",nO="track",nx="split",nM="splits",nD="names",nU=0,nL=1,nN=2,nq=0,nB=1,nF=2,nj=0,nG=1,nH=2,nK="sp",nz="im",nW="ic",nV="ev",nJ="te",nY="to",n$="se",nZ="ms",nQ="t",nX="ts",n0="tc",n1="tcs",n2="tf",n4="tfs",n3="tcf",n6="tcfs",n5="tr",n8=0,n7=10,n9=20,ot=30,or=40,oo=50,oi=60,oa=70,oc=80,ou=0,ol=1,od=1,oh=0,of=1,om=2,og={headers:{"Cache-Control":"no-cache"}};function userKeyToQueryParam(et){return"users="+encodeURIComponent(et)}function splitApiFactory(et,eo,ei){var ea=et.urls,eu=et.sync.__splitFiltersValidation&&et.sync.__splitFiltersValidation.queryString,ed=et.sync.impressionsMode,eh=splitHttpClientFactory(et,eo.getFetch,eo.getOptions);return{getSdkAPIHealthCheck:function(){return eh(ea.sdk+"/version").then(function(){return!0}).catch(function(){return!1})},getEventsAPIHealthCheck:function(){return eh(ea.events+"/version").then(function(){return!0}).catch(function(){return!1})},fetchAuth:function(et){var eo=ea.auth+"/v2/auth";if(et){var eu=et.map(userKeyToQueryParam).join("&");eu&&(eo+="?"+eu)}return eh(eo,void 0,ei.trackHttp(nY))},fetchSplitChanges:function(eo,ed,ep){return eh(ea.sdk+"/splitChanges?since="+eo+(ep?"&till="+ep:"")+(eu||""),ed?og:void 0,ei.trackHttp(nK)).catch(function(eo){throw 414===eo.statusCode&&et.log.error(rK),eo})},fetchSegmentChanges:function(et,eo,eu,ed){return eh(ea.sdk+"/segmentChanges/"+eo+"?since="+et+(ed?"&till="+ed:""),eu?og:void 0,ei.trackHttp(n$))},fetchMySegments:function(et,eo){return eh(ea.sdk+"/mySegments/"+encodeURIComponent(et),eo?og:void 0,ei.trackHttp(nZ))},postEventsBulk:function(et,eo){return eh(ea.events+"/events/bulk",{method:"POST",body:et,headers:eo},ei.trackHttp(nV))},postTestImpressionsBulk:function(et,eo){return eh(ea.events+"/testImpressions/bulk",{method:"POST",body:et,headers:eF({SplitSDKImpressionsMode:ed},eo)},ei.trackHttp(nz))},postTestImpressionsCount:function(et,eo){return eh(ea.events+"/testImpressions/count",{method:"POST",body:et,headers:eo},ei.trackHttp(nW))},postUniqueKeysBulkCs:function(et,eo){return eh(ea.telemetry+"/v1/keys/cs",{method:"POST",body:et,headers:eo},ei.trackHttp(nJ))},postUniqueKeysBulkSs:function(et,eo){return eh(ea.telemetry+"/v1/keys/ss",{method:"POST",body:et,headers:eo},ei.trackHttp(nJ))},postMetricsConfig:function(et,eo){return eh(ea.telemetry+"/v1/metrics/config",{method:"POST",body:et,headers:eo},ei.trackHttp(nJ),!0)},postMetricsUsage:function(et,eo){return eh(ea.telemetry+"/v1/metrics/usage",{method:"POST",body:et,headers:eo},ei.trackHttp(nJ),!0)}}}function syncTaskFactory(et,eo,ei,ea){void 0===ea&&(ea="task");var eu,ed,eh,ep=0,ef=!1,em=0;function execute(){for(var ei=[],ed=0;ed<arguments.length;ed++)ei[ed]=arguments[ed];return ep++,et.debug(t_,[ea]),eu=(eu?eu.then(function(){return eo.apply(void 0,ei)}):eo.apply(void 0,ei)).then(function(et){return ep--,et})}function periodicExecute(et){return execute.apply(void 0,ed).then(function(eo){return ef&&et===em&&(eh=setTimeout(periodicExecute,ei,et)),eo})}return{execute:execute,isExecuting:function(){return ep>0},start:function(){for(var eo=[],eu=0;eu<arguments.length;eu++)eo[eu]=arguments[eu];if(!ef)return ef=!0,em++,ed=eo,et.debug(tS,[ea,ei]),periodicExecute(em)},stop:function(){ef=!1,eh&&(et.debug(tw,[ea]),clearTimeout(eh),eh=void 0)},isRunning:function(){return ef}}}function submitterFactory(et,eo,ei,ea,eu,ed,eh,ep){void 0===eh&&(eh=0);var ef,em=0;function postData(){if(ei.isEmpty()&&!ef)return Promise.resolve();var ea="number"==typeof(ef=ei.pop(ef)).length?ef.length+" "+eu:eu;et[ep?"debug":"info"](tj,[ea]);var eg=JSON.stringify(ed?ed(ef):ef);return eh||(ef=void 0),eo(eg).then(function(){em=0,ef=void 0}).catch(function(eo){eh?em===eh?(em=0,ef=void 0,et[ep?"debug":"warn"](t6,[ea,eo])):(em++,et[ep?"debug":"warn"](t5,[ea,eo])):et[ep?"debug":"warn"](t6,[ea,eo])})}return syncTaskFactory(et,postData,ea,eu+" submitter")}function firstPushWindowDecorator(et,eo){var ei,ea=!1,eu=et.start;et.start=function(){ea=!0,ei=setTimeout(eu,eo)};var ed=et.stop;return et.stop=function(){ea=!1,clearTimeout(ei),ed()},et.isRunning=function(){return ea},et}var oy="events";function eventsSubmitterFactory(et){var eo=et.settings,ei=eo.log,ea=eo.scheduler.eventsPushRate,eu=eo.startup.eventsFirstPushWindow,ed=et.splitApi.postEventsBulk,eh=et.storage.events,ep=submitterFactory(ei,ed,eh,ea,oy);return eu>0&&(ep=firstPushWindowDecorator(ep,eu)),eh.setOnFullQueueCb(function(){ep.isRunning()&&(ei.info(tF,[oy]),ep.execute())}),ep}var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)Object.prototype.hasOwnProperty.call(eo,ei)&&(et[ei]=eo[ei])})(et,eo)};function __extends(et,eo){if("function"!=typeof eo&&null!==eo)throw TypeError("Class extends value "+String(eo)+" is not a constructor or null");function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}var tslib_es6_assign=function(){return(tslib_es6_assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)};function __spreadArray(et,eo,ei){if(ei||2==arguments.length)for(var ea,eu=0,ed=eo.length;eu<ed;eu++)!ea&&eu in eo||(ea||(ea=Array.prototype.slice.call(eo,0,eu)),ea[eu]=eo[eu]);return et.concat(ea||Array.prototype.slice.call(eo))}function endsWith(et,eo,ei){return void 0===ei&&(ei=!1),!!(isString(et)&&isString(eo))&&(ei&&(et=et.toLowerCase(),eo=eo.toLowerCase()),et.slice(et.length-eo.length)===eo)}function find(et,eo){var ei;if(isObject(et))for(var ea=Object.keys(et),eu=0;eu<ea.length&&!ei;eu++){var ed=ea[eu],eh=eo(et[ed],ed,et);eh&&(ei=et[ed])}else if(Array.isArray(et))for(var eu=0;eu<et.length&&!ei;eu++){var eh=eo(et[eu],eu,et);eh&&(ei=et[eu])}return ei}function findIndex(et,eo){if(Array.isArray(et)&&"function"==typeof eo){for(var ei=0;ei<et.length;ei++)if(!0===eo(et[ei],ei,et))return ei}return -1}function forOwn(et,eo){return Object.keys(et).forEach(function(ei){return eo(et[ei],ei,et)}),et}function get(et,eo,ei){var ea=ei;try{var eu=eo.split("."),ed=et;eu.forEach(function(et){return ed=ed[et]}),void 0!==ed&&(ea=ed)}catch(et){}return ea}function groupBy(et,eo){var ei={};if(Array.isArray(et)&&isString(eo))for(var ea=0;ea<et.length;ea++){var eu=et[ea][eo];isString(eu)&&(ei[eu]||(ei[eu]=[]),ei[eu].push(et[ea]))}return ei}function isBoolean(et){return!0===et||!1===et}function isFiniteNumber(et){return et instanceof Number&&(et=et.valueOf()),"number"==typeof et&&(Number.isFinite?Number.isFinite(et):isFinite(et))}function isNaNNumber(et){return et instanceof Number&&(et=et.valueOf()),et!=et}function isObject(et){return null!==et&&"object"==typeof et&&(et.constructor===Object||null!=et.constructor&&"Object"===et.constructor.name)}function isString(et){return"string"==typeof et||et instanceof String}function stringToUpperCase(et){return isString(et)?et.toUpperCase():et}function merge(et,eo){for(var ei=[],ea=2;ea<arguments.length;ea++)ei[ea-2]=arguments[ea];var eu=et;if(isObject(eo)&&Object.keys(eo).forEach(function(et){var ei=eo[et];isObject(ei)&&(ei=eu[et]&&isObject(eu[et])?merge({},eu[et],ei):merge({},ei)),void 0!==ei&&(eu[et]=ei)}),ei&&ei.length){var ed=ei.splice(0,1)[0];eu=merge.apply(void 0,__spreadArray([eu,ed],ei,!1))}return eu}function startsWith(et,eo){return!!(isString(et)&&isString(eo))&&et.slice(0,eo.length)===eo}function toNumber(et){if("number"==typeof et)return et;if(isObject(et)&&"function"==typeof et.valueOf){var eo=et.valueOf();et=isObject(eo)?eo+"":eo}return"string"!=typeof et?0===et?et:+et:+(et=et.replace(/^\s+|\s+$/g,""))}function lang_toString(et){if(null==et)return"";if("string"==typeof et)return et;if(Array.isArray(et))return et.map(function(et){return isString(et)?et:""})+"";var eo=et+"";return"0"===eo&&1/et===Number.NEGATIVE_INFINITY?"-0":eo}function uniq(et){var eo={};return et.filter(function(et){return!Object.prototype.hasOwnProperty.call(eo,et)&&(eo[et]=!0)})}function uniqAsStrings(et,eo){void 0===eo&&(eo=JSON.stringify);var ei={};return et.filter(function(et){var ea=eo(et);return!Object.prototype.hasOwnProperty.call(ei,ea)&&(ei[ea]=!0)})}"function"==typeof SuppressedError&&SuppressedError;var ov="impressions";function fromImpressionsCollector(et,eo){var ei=groupBy(eo,"feature"),ea=[];return forOwn(ei,function(eo,ei){ea.push({f:ei,i:eo.map(function(eo){return{k:eo.keyName,t:eo.treatment,m:eo.time,c:eo.changeNumber,r:et?eo.label:void 0,b:eo.bucketingKey?eo.bucketingKey:void 0,pt:eo.pt?eo.pt:void 0}})})}),ea}function impressionsSubmitterFactory(et){var eo=et.settings,ei=eo.log,ea=eo.scheduler.impressionsRefreshRate,eu=eo.core.labelsEnabled,ed=et.splitApi.postTestImpressionsBulk,eh=et.storage.impressions,ep=submitterFactory(ei,ed,eh,ea,ov,fromImpressionsCollector.bind(void 0,eu),1);return eh.setOnFullQueueCb(function(){ep.isRunning()&&(ei.info(tF,[ov]),ep.execute())}),ep}function fromImpressionCountsCollector(et){for(var eo=[],ei=Object.keys(et),ea=0;ea<ei.length;ea++){var eu=ei[ea].split("::");if(2===eu.length){var ed=eu[0],eh=eu[1],ep={f:ed,m:Number(eh),rc:et[ei[ea]]};eo.push(ep)}}return{pf:eo}}var ob=18e5;function impressionCountsSubmitterFactory(et){var eo=et.settings.log,ei=et.splitApi.postTestImpressionsCount,ea=et.storage.impressionCounts;if(ea)return submitterFactory(eo,ei,ea,ob,"impression counts",fromImpressionCountsCollector,1)}var oC="state::splits-arrived",oS="state::splits-cache-loaded",o_="state::segments-arrived",ow="init::timeout",oA="init::ready",oI="init::cache-ready",oR="state::update";function validateMode(et,eo){if("localhost"===et)return nh;if(-1===[np,nf,nm,ng].indexOf(eo))throw Error("Invalid mode provided");return eo}function isConsumerMode(et){return nm===et||ng===et}var oT=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/;function validateSplit(et,eo,ei,ea){if(void 0===ea&&(ea="feature flag name"),void 0==eo)et.error(rx,[ei,ea]);else if(isString(eo)){if(oT.test(eo)&&(et.warn(rr,[ei,ea,eo]),eo=eo.trim()),eo.length>0)return eo;et.error(rL,[ei,ea])}else et.error(rU,[ei,ea]);return!1}function validateSplits(et,eo,ei,ea,eu){if(void 0===ea&&(ea="feature flag names"),void 0===eu&&(eu="feature flag name"),Array.isArray(eo)&&eo.length>0){var ed=[];if(eo.forEach(function(eo){var ea=validateSplit(et,eo,ei,eu);ea&&ed.push(ea)}),ed.length)return uniq(ed)}return et.error(rN,[ei,ea]),!1}var oE=[{type:"bySet",maxLength:50,queryParam:"sets="},{type:"byName",maxLength:400,queryParam:"names="},{type:"byPrefix",maxLength:50,queryParam:"prefixes="}],oP=/^[a-z0-9][_a-z0-9]{0,49}$/,ok=/[A-Z]/;function validateFilterType(et){return oE.some(function(eo){return eo.type===et})}function validateSplitFilter(et,eo,ei,ea){var eu=validateSplits(et,ei,rW,eo+" filter",eo+" filter value");if(eu){if("bySet"===eo&&(eu=sanitizeFlagSets(et,eu,rW)),eu.length>ea)throw Error(ea+" unique values can be specified at most for '"+eo+"' filter. You passed "+eu.length+". Please consider reducing the amount or using other filter.");eu.sort()}return eu||[]}function queryStringBuilder(et){var eo=[];return oE.forEach(function(ei){var ea=ei.type,eu=ei.queryParam,ed=et[ea];ed.length>0&&eo.push(eu+ed.map(function(et){return encodeURIComponent(et)}).join(","))}),eo.length>0?"&"+eo.join("&"):null}function sanitizeFlagSets(et,eo,ei){return uniq(eo.map(function(eo){return ok.test(eo)&&(et.warn(rf,[ei,eo]),eo=eo.toLowerCase()),eo}).filter(function(eo){return oP.test(eo)?"string"==typeof eo:(et.warn(rp,[ei,eo,oP,eo]),!1)}))}function configuredFilter(et,eo){return find(et,function(et){return et.type===eo&&et.values.length>0})}function validateSplitFilters(et,eo,ei){var ea={validFilters:[],queryString:null,groupedFilters:{bySet:[],byName:[],byPrefix:[]}};return eo&&(isConsumerMode(ei)?et.warn(rs):Array.isArray(eo)&&0!==eo.length?(ea.validFilters=eo.filter(function(eo,ei){return eo&&validateFilterType(eo.type)&&Array.isArray(eo.values)?(ea.groupedFilters[eo.type]=ea.groupedFilters[eo.type].concat(eo.values),!0):(et.warn(rc,[ei]),!1)}),oE.forEach(function(eo){var ei=eo.type,eu=eo.maxLength;ea.groupedFilters[ei].length>0&&(ea.groupedFilters[ei]=validateSplitFilter(et,ei,ea.groupedFilters[ei],eu))}),configuredFilter(ea.validFilters,"bySet")&&((configuredFilter(ea.validFilters,"byName")||configuredFilter(ea.validFilters,"byPrefix"))&&et.error(rz),eF(ea.groupedFilters,{byName:[],byPrefix:[]})),ea.queryString=queryStringBuilder(ea.groupedFilters),et.debug(tA,[ea.queryString])):et.warn(ru)),ea}function validateFlagSets(et,eo,ei,ea){var eu=validateSplits(et,ei,eo,"flag sets","flag set"),ed=eu?sanitizeFlagSets(et,eu,eo):[];return ea.length>0&&(ed=ed.filter(function(ei){return ea.indexOf(ei)>-1||(et.warn(rm,[eo,ei]),!1)})),ed}function validImpressionsMode(et,eo){return[nu,nl,nd].indexOf(eo=stringToUpperCase(eo))>-1?eo:(et.error(rq,["impressionsMode",[nu,nl,nd],nl]),nl)}var ox=250;function validateKeyValue(et,eo,ei,ea){if(void 0==eo)return et.error(rx,[ei,ea]),!1;if(isFiniteNumber(eo))return et.warn(t9,[ei,ea,eo]),lang_toString(eo);if(isString(eo)){if((eo=eo.trim()).length>0&&eo.length<=ox)return eo;0===eo.length?et.error(rL,[ei,ea]):eo.length>ox&&et.error(rM,[ei,ea])}else et.error(rU,[ei,ea]);return!1}function validateKey(et,eo,ei){if(!isObject(eo))return validateKeyValue(et,eo,ei,"key");var ea=validateKeyValue(et,eo.matchingKey,ei,"matchingKey"),eu=validateKeyValue(et,eo.bucketingKey,ei,"bucketingKey");return ea&&eu?{matchingKey:ea,bucketingKey:eu}:(et.error(rD,[ei]),!1)}var oM=/[A-Z]/,oD="traffic_type";function validateTrafficType(et,eo,ei){if(void 0==eo)et.error(rx,[ei,oD]);else if(isString(eo)){if(0!==eo.length)return oM.test(eo)&&(et.warn(ro,[ei]),eo=eo.toLowerCase()),eo;et.error(rL,[ei,oD])}else et.error(rU,[ei,oD]);return!1}var oU={mode:np,core:{authorizationKey:void 0,key:void 0,trafficType:void 0,labelsEnabled:!0,IPAddressesEnabled:void 0},scheduler:{featuresRefreshRate:60,segmentsRefreshRate:60,telemetryRefreshRate:3600,impressionsRefreshRate:300,offlineRefreshRate:15,eventsPushRate:60,eventsQueueSize:500,impressionsQueueSize:3e4,pushRetryBackoffBase:1},urls:{sdk:"https://sdk.split.io/api",events:"https://events.split.io/api",auth:"https://auth.split.io/api",streaming:"https://streaming.split.io",telemetry:"https://telemetry.split.io/api"},storage:void 0,debug:void 0,impressionListener:void 0,version:void 0,integrations:void 0,streamingEnabled:!0,sync:{splitFilters:void 0,impressionsMode:nl,localhostMode:void 0,enabled:!0},log:void 0};function fromSecondsToMillis(et){return Math.round(1e3*et)}function settingsValidation(et,eo){var ei=eo.defaults,ea=eo.runtime,eu=eo.storage,ed=eo.integrations,eh=eo.logger,ep=eo.localhost,ef=eo.consent,em=merge({},oU,ei,et),eg=eh(em);function validateMinValue(et,eo,ei){return eo>=ei?eo:(eg.error(rH,[et,ei]),ei)}em.log=eg,em.sync.impressionsMode=validImpressionsMode(eg,em.sync.impressionsMode);var ey=em.scheduler,eC=em.startup;ey.featuresRefreshRate=fromSecondsToMillis(ey.featuresRefreshRate),ey.segmentsRefreshRate=fromSecondsToMillis(ey.segmentsRefreshRate),ey.offlineRefreshRate=fromSecondsToMillis(ey.offlineRefreshRate),ey.eventsPushRate=fromSecondsToMillis(ey.eventsPushRate),ey.telemetryRefreshRate=fromSecondsToMillis(validateMinValue("telemetryRefreshRate",ey.telemetryRefreshRate,60)),void 0===get(et,"scheduler.impressionsRefreshRate")&&em.sync.impressionsMode===nu&&(ey.impressionsRefreshRate=60),ey.impressionsRefreshRate=fromSecondsToMillis(ey.impressionsRefreshRate),ey.metricsRefreshRate&&eg.warn("`metricsRefreshRate` will be deprecated soon. For configuring telemetry rates, update `telemetryRefreshRate` value in configs"),eC.requestTimeoutBeforeReady=fromSecondsToMillis(eC.requestTimeoutBeforeReady),eC.readyTimeout=fromSecondsToMillis(eC.readyTimeout),eC.eventsFirstPushWindow=fromSecondsToMillis(eC.eventsFirstPushWindow),em.mode=validateMode(em.core.authorizationKey,em.mode),eu&&(em.storage=eu(em));var eS=em.core.key;if(eo.acceptKey){if(em.mode===nh&&void 0===eS?em.core.key="localhost_key":em.core.key=validateKey(eg,eS,"Client instantiation"),eo.acceptTT){var e_=em.core.trafficType;void 0!==e_&&(em.core.trafficType=validateTrafficType(eg,e_,"Client instantiation"))}}else void 0!==eS&&eg.warn("Provided `key` is ignored in server-side SDK."),em.core.key=void 0;em.runtime=ea(em),ed&&(em.integrations=ed(em)),ep&&(em.sync.localhostMode=ep(em)),!1!==em.streamingEnabled&&(em.streamingEnabled=!0,ey.pushRetryBackoffBase=fromSecondsToMillis(ey.pushRetryBackoffBase)),!1!==em.sync.enabled&&(em.sync.enabled=!0);var ew=validateSplitFilters(eg,em.sync.splitFilters,em.mode);return em.sync.splitFilters=ew.validFilters,em.sync.__splitFiltersValidation=ew,em.userConsent=ef(em),em}var oL="sdk_key";function validateApiKey(et,eo){var ei=!1;return void 0==eo?et.error(rx,[rV,oL]):isString(eo)?eo.length>0?ei=eo:et.error(rL,[rV,oL]):et.error(rU,[rV,oL]),ei}var oN={};function validateAndTrackApiKey(et,eo){var ei=validateApiKey(et,eo);return ei&&(oN[ei]?(et.warn(rl,[oN[ei]+" factory/ies with this SDK Key"]),oN[ei]++):(oN[ei]=1,Object.keys(oN).length>1&&et.warn(rl,["an instance of the Split factory"]))),ei}function releaseApiKey(et){oN[et]&&oN[et]--,0===oN[et]&&delete oN[et]}function timer(et){var eo=et();return function(){return Math.round(et()-eo)}}var oq=((ea={})[np]=nq,ea[nm]=nB,ea[ng]=nF,ea),oB=((eu={})[nl]=nj,eu[nu]=nG,eu[nd]=nH,eu),oF=((ed={})[n_]=1,ed[nC]=2,ed[nS]=3,ed);function getActiveFactories(){return Object.keys(oN).length}function getRedundantActiveFactories(){return Object.keys(oN).reduce(function(et,eo){return et+oN[eo]-1},0)}function getTelemetryFlagSetsStats(et){var eo=0;et.validFilters.forEach(function(et){"bySet"===et.type&&(eo+=et.values.length)});var ei=et.groupedFilters.bySet.length,ea=eo-ei;return{flagSetsTotal:eo,flagSetsIgnored:ea}}function getTelemetryConfigStats(et,eo){return{oM:oq[et],st:eo.toLowerCase(),aF:getActiveFactories(),rF:getRedundantActiveFactories()}}function telemetryCacheConfigAdapter(et,eo){return{isEmpty:function(){return!1},clear:function(){},pop:function(){var ei=eo.urls,ea=eo.scheduler,eu=void 0!==eo.core.key,ed=getTelemetryFlagSetsStats(eo.sync.__splitFiltersValidation),eh=ed.flagSetsTotal,ep=ed.flagSetsIgnored;return eF(getTelemetryConfigStats(eo.mode,eo.storage.type),{sE:eo.streamingEnabled,rR:{sp:ea.featuresRefreshRate/1e3,se:eu?void 0:ea.segmentsRefreshRate/1e3,ms:eu?ea.segmentsRefreshRate/1e3:void 0,im:ea.impressionsRefreshRate/1e3,ev:ea.eventsPushRate/1e3,te:ea.telemetryRefreshRate/1e3},uO:{s:ei.sdk!==oU.urls.sdk,e:ei.events!==oU.urls.events,a:ei.auth!==oU.urls.auth,st:ei.streaming!==oU.urls.streaming,t:ei.telemetry!==oU.urls.telemetry},iQ:ea.impressionsQueueSize,eQ:ea.eventsQueueSize,iM:oB[eo.sync.impressionsMode],iL:!!eo.impressionListener,hP:!1,tR:et.getTimeUntilReady(),tC:et.getTimeUntilReadyFromCache(),nR:et.getNonReadyUsage(),t:et.popTags(),i:eo.integrations&&eo.integrations.map(function(et){return et.type}),uC:eo.userConsent?oF[eo.userConsent]:0,fsT:eh,fsI:ep})}}}function telemetrySubmitterFactory(et){var eo=et.storage.telemetry,ei=et.platform.now;if(eo&&ei){var ea=et.settings,eu=et.settings,ed=eu.log,eh=eu.scheduler.telemetryRefreshRate,ep=et.splitApi,ef=et.readiness,em=et.sdkReadinessManager,eg=timer(ei),ey=firstPushWindowDecorator(submitterFactory(ed,ep.postMetricsUsage,eo,eh,"telemetry stats",void 0,0,!0),eh);return ef.gate.once(oI,function(){eo.recordTimeUntilReadyFromCache(eg())}),em.incInternalReadyCbCount(),ef.gate.once(oA,function(){eo.recordTimeUntilReady(eg()),ey.isRunning()&&submitterFactory(ed,ep.postMetricsConfig,telemetryCacheConfigAdapter(eo,ea),0,"telemetry config",void 0,0,!0).execute()}),ey}}var oj="unique keys",oG=9e5;function uniqueKeysSubmitterFactory(et){var eo=et.settings,ei=eo.log,ea=eo.core.key,eu=et.splitApi,ed=eu.postUniqueKeysBulkCs,eh=eu.postUniqueKeysBulkSs,ep=et.storage.uniqueKeys,ef=submitterFactory(ei,void 0!==ea?ed:eh,ep,oG,oj);return ep.setOnFullQueueCb(function(){ef.isRunning()&&(ei.info(tF,[oj]),ef.execute())}),ef}function submitterManagerFactory(et){var eo=[impressionsSubmitterFactory(et),eventsSubmitterFactory(et)],ei=impressionCountsSubmitterFactory(et);ei&&eo.push(ei);var ea=telemetrySubmitterFactory(et);return et.storage.uniqueKeys&&eo.push(uniqueKeysSubmitterFactory(et)),{start:function(et){et||eo.forEach(function(et){return et.start()}),ea&&ea.start()},stop:function(et){eo.forEach(function(et){return et.stop()}),!et&&ea&&ea.stop()},isRunning:function(){return eo.some(function(et){return et.isRunning()})},execute:function(et){var ei=et?[]:eo.map(function(et){return et.execute()});return ea&&ei.push(ea.execute()),Promise.all(ei)},isExecuting:function(){return eo.some(function(et){return et.isExecuting()})}}}var oH=600,oK="PUSH_NONRETRYABLE_ERROR",oz="PUSH_RETRYABLE_ERROR",oW="PUSH_SUBSYSTEM_UP",oV="PUSH_SUBSYSTEM_DOWN",oJ="MY_SEGMENTS_UPDATE",oY="MY_SEGMENTS_UPDATE_V2",o$="SEGMENT_UPDATE",oZ="SPLIT_KILL",oQ="SPLIT_UPDATE",oX="CONTROL",o0="OCCUPANCY";function isConsentGranted(et){var eo=et.userConsent;return!eo||eo===nC}function syncManagerOnlineFactory(et,eo){return function(ei){var ea=ei.settings,eu=ei.settings,ed=eu.log,eh=eu.streamingEnabled,ep=eu.sync.enabled,ef=ei.telemetryTracker,em=et&&et(ei),eg=ep&&eh&&em&&eo?eo(ei,em):void 0,ey=submitterManagerFactory(ei);function startPolling(){em.isRunning()?ed.info(tH):(ed.info(tG),em.start(),ef.streamingEvent(oa,ol))}function stopPollingAndSyncAll(){ed.info(tK),em.isRunning()&&(em.stop(),ef.streamingEvent(oa,ou)),em.syncAll()}eg&&(eg.on(oW,stopPollingAndSyncAll),eg.on(oV,startPolling));var eC=!1,eS=!0;return{pollingManager:em,pushManager:eg,submitterManager:ey,start:function(){eC=!0,em&&(ep?eg?(eS&&(em.syncAll(),eS=!1),eg.start()):em.start():eS&&(em.syncAll(),eS=!1)),ey.start(!isConsentGranted(ea))},stop:function(){eC=!1,eg&&eg.stop(),em&&em.isRunning()&&em.stop(),ey.stop()},isRunning:function(){return eC},flush:function(){return ey.execute(!isConsentGranted(ea))},shared:function(et,eo,ei){if(em){var ea=em.add(et,eo,ei);return{isRunning:ea.isRunning,start:function(){ep?eg?(em.isRunning()?ei.splits.usesSegments()&&ea.start():ea.execute(),eg.add(et,ea)):ei.splits.usesSegments()&&ea.start():eo.isReady()||ea.execute()},stop:function(){var eo=em.get(et);eo&&(eg&&eg.remove(et),eo.isRunning()&&eo.stop(),em.remove(et))},flush:function(){return Promise.resolve()}}}}}}}!function(et){et.STREAMING_DISABLED="STREAMING_DISABLED",et.STREAMING_PAUSED="STREAMING_PAUSED",et.STREAMING_RESUMED="STREAMING_RESUMED",et.STREAMING_RESET="STREAMING_RESET"}(eh||(eh={}));var o2=function(){function Backoff(et,eo,ei){this.baseMillis=Backoff.__TEST__BASE_MILLIS||eo||Backoff.DEFAULT_BASE_MILLIS,this.maxMillis=Backoff.__TEST__MAX_MILLIS||ei||Backoff.DEFAULT_MAX_MILLIS,this.attempts=0,this.cb=et}return Backoff.prototype.scheduleCall=function(){var et=this,eo=Math.min(this.baseMillis*Math.pow(2,this.attempts),this.maxMillis);return this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=setTimeout(function(){et.timeoutID=void 0,et.cb()},eo),this.attempts++,eo},Backoff.prototype.reset=function(){this.attempts=0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=void 0)},Backoff.DEFAULT_BASE_MILLIS=1e3,Backoff.DEFAULT_MAX_MILLIS=18e5,Backoff}();function errorParser(et){return isString(et.data)&&(et.parsedData=JSON.parse(et.data)),et}function messageParser(et){if(et.data){var eo=JSON.parse(et.data);return eo.parsedData=JSON.parse(eo.data),eo.name&&"[meta]occupancy"===eo.name&&(eo.parsedData.type=o0),eo}}var o4=[/control_pri$/,/control_sec$/],o3=[n7,n9];function notificationKeeperFactory(et,eo){var ei=o4.map(function(et){return{regex:et,hasPublishers:!0,oTime:-1,cTime:-1}}),ea=!0,eu=!0;function getHasPublishers(){return ei.some(function(et){return et.hasPublishers})}return{handleOpen:function(){eo.streamingEvent(n8),et.emit(oW)},isStreamingUp:function(){return eu&&ea},handleOccupancyEvent:function(ed,eh,ep){for(var ef=0;ef<ei.length;ef++){var em=ei[ef];if(em.regex.test(eh)){if(eo.streamingEvent(o3[ef],ed),ep>em.oTime){em.oTime=ep,em.hasPublishers=0!==ed;var eg=getHasPublishers();eu&&(!eg&&ea?et.emit(oV):eg&&!ea&&et.emit(oW)),ea=eg}return}}},handleControlEvent:function(ed,ep,ef){if(ed===eh.STREAMING_RESET){et.emit(ed);return}for(var em=0;em<ei.length;em++){var eg=ei[em];if(eg.regex.test(ep)){ef>eg.cTime&&(eg.cTime=ef,ed===eh.STREAMING_DISABLED?(eo.streamingEvent(ot,oh),et.emit(oK)):ea&&(ed===eh.STREAMING_PAUSED&&eu?(eo.streamingEvent(ot,om),et.emit(oV)):ed!==eh.STREAMING_RESUMED||eu||(eo.streamingEvent(ot,of),et.emit(oW))),eu=ed===eh.STREAMING_RESUMED);return}}}}}function SSEHandlerFactory(et,eo,ei){var ea=notificationKeeperFactory(eo,ei);function isRetryableError(et){if(et.parsedData&&et.parsedData.code){var eo=et.parsedData.code;if(ei.streamingEvent(oi,eo),40140<=eo&&eo<=40149)return!0;if(4e4<=eo&&eo<=49999)return!1}else ei.streamingEvent(or,od);return!0}return{handleOpen:function(){ea.handleOpen()},handleError:function(ei){var ea=ei;try{ea=errorParser(ei)}catch(eo){et.warn(t2,[eo])}var eu=ea.parsedData&&ea.parsedData.message||ea.message;et.error(r_,[eu]),isRetryableError(ea)?eo.emit(oz):eo.emit(oK)},handleMessage:function(ei){try{if(!(eu=messageParser(ei)))return}catch(eo){et.warn(t4,[eo]);return}var eu,ed=eu.parsedData,eh=eu.data,ep=eu.channel,ef=eu.timestamp;if(et.debug(tC,[eh]),ea.isStreamingUp()||-1!==[o0,oX].indexOf(ed.type))switch(ed.type){case oQ:case o$:case oY:case oZ:eo.emit(ed.type,ed);break;case oJ:eo.emit(ed.type,ed,ep);break;case o0:ea.handleOccupancyEvent(ed.metrics.publishers,ep,ef);break;case oX:ea.handleControlEvent(ed.controlType,ep,ef)}}}}function MySegmentsUpdateWorker(et,eo){var ei,ea,eu=0,ed=-1,eh=!1,ep=new o2(__handleMySegmentsUpdateCall);function __handleMySegmentsUpdateCall(){if(ei=!0,eu>ed){eh=!1;var ef=eu;et.execute(ea,!0).then(function(et){ei&&(!1!==et&&(ea&&eo.trackUpdatesFromSSE(nZ),ed=Math.max(ed,ef)),eh?__handleMySegmentsUpdateCall():ep.scheduleCall())})}else ei=!1}return{put:function(et,eo){et<=ed||et<=eu||(eu=et,eh=!0,ea=eo,(ep.timeoutID||!ei)&&__handleMySegmentsUpdateCall(),ep.reset())},stop:function(){ei=!1,ep.reset()}}}var o6=1e4,o5=6e4,o8=10;function SegmentsUpdateWorker(et,eo,ei){function SegmentUpdateWorker(ea){var eu,ed,eh=0,ep=!1,ef=new o2(__handleSegmentUpdateCall,o6,o5);function __handleSegmentUpdateCall(){eu=!0,eh>ei.getChangeNumber(ea)?(ep=!1,eo.execute(!1,ea,!0,ed?eh:void 0).then(function(){if(eu){if(ep)__handleSegmentUpdateCall();else{var eo=ef.attempts+1;if(eh<=ei.getChangeNumber(ea)){et.debug("Refresh completed"+(ed?" bypassing the CDN":"")+" in "+eo+" attempts."),eu=!1;return}if(eo<o8){ef.scheduleCall();return}ed?(et.debug("No changes fetched after "+eo+" attempts with CDN bypassed."),eu=!1):(ef.reset(),ed=!0,__handleSegmentUpdateCall())}}})):eu=!1}return{put:function(et){et<=ei.getChangeNumber(ea)||et<=eh||(eh=et,ep=!0,ed=!1,(ef.timeoutID||!eu)&&__handleSegmentUpdateCall(),ef.reset())},stop:function(){eu=!1,ef.reset()}}}var ea={};return{put:function(et){var eo=et.changeNumber,ei=et.segmentName;ea[ei]||(ea[ei]=SegmentUpdateWorker(ei)),ea[ei].put(eo)},stop:function(){Object.keys(ea).forEach(function(et){return ea[et].stop()})}}}function SplitsUpdateWorker(et,eo,ei,ea,eu,ed){var eh,ep,ef,em=0,eg=!1,ey=new o2(__handleSplitUpdateCall,o6,o5);function __handleSplitUpdateCall(){if(eh=!0,em>eo.getChangeNumber()){eg=!1;var ea=ef?{payload:ef,changeNumber:em}:void 0;ei.execute(!0,ep?em:void 0,ea).then(function(){if(eh){if(eg)__handleSplitUpdateCall();else{ea&&eu.trackUpdatesFromSSE(nK),ed&&ed.execute(!0);var ei=ey.attempts+1;if(em<=eo.getChangeNumber()){et.debug("Refresh completed"+(ep?" bypassing the CDN":"")+" in "+ei+" attempts."),eh=!1;return}if(ei<o8){ey.scheduleCall();return}ep?(et.debug("No changes fetched after "+ei+" attempts with CDN bypassed."),eh=!1):(ey.reset(),ep=!0,__handleSplitUpdateCall())}}})}else eh=!1}function put(et,ei){var ea=et.changeNumber,eu=et.pcn,ed=eo.getChangeNumber();ea<=ed||ea<=em||(em=ea,eg=!0,ep=!1,ef=void 0,ei&&ed===eu&&(ef=ei),(ey.timeoutID||!eh)&&__handleSplitUpdateCall(),ey.reset())}return{put:put,killSplit:function(et){var ei=et.changeNumber,eu=et.splitName,ed=et.defaultTreatment;eo.killLocally(eu,ed,ei)&&ea.emit(oC,!0),put({changeNumber:ei})},stop:function(){eh=!1,ey.reset()}}}var o7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function decodeFromBase64(et){var eo=String(et).replace(/[=]+$/,"");if(eo.length%4==1)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var ei="",ea=0,eu=void 0,ed=void 0,eh=0;ed=eo.charAt(eh++);~ed&&(eu=ea%4?64*eu+ed:ed,ea++%4)&&(ei+=String.fromCharCode(255&eu>>(-2*ea&6))))ed=o7.indexOf(ed);return ei}function encodeToBase64(et){for(var eo=String(et),ei="",ea=void 0,eu=void 0,ed=0,eh=o7;eo.charAt(0|ed)||(eh="=",ed%1);ei+=eh.charAt(63&ea>>8-ed%1*8)){if((eu=eo.charCodeAt(ed+=3/4))>255)throw Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");ea=ea<<8|eu}return ei}function decodeJWTtoken(et){return JSON.parse(decodeURIComponent(decodeFromBase64(et.split(".")[1].replace(/-/g,"+").replace(/_/g,"/")).split("").map(function(et){return"%"+("00"+et.charCodeAt(0).toString(16)).slice(-2)}).join("")))}function encodeUTF8(et,eo){var ei=null;for("number"==typeof et&&(ei=et,et=function(){return null});null!==ei||null!==(ei=et());)ei<128?eo(127&ei):(ei<2048?eo(ei>>6&31|192):(ei<65536?eo(ei>>12&15|224):(eo(ei>>18&7|240),eo(ei>>12&63|128)),eo(ei>>6&63|128)),eo(63&ei|128)),ei=null}function UTF16toUTF8(et,eo){for(var ei,ea=null;null!==(ei=null!==ea?ea:et());){if(ei>=55296&&ei<=57343&&null!==(ea=et())&&ea>=56320&&ea<=57343){eo((ei-55296)*1024+ea-56320+65536),ea=null;continue}eo(ei)}null!==ea&&eo(ea)}function encodeUTF16toUTF8(et,eo){UTF16toUTF8(et,function(et){encodeUTF8(et,eo)})}var o9=String.fromCharCode;function stringSource(et){if("string"!=typeof et)throw TypeError("Illegal argument: "+typeof et);var eo=0;return function(){return eo>=et.length?null:et.charCodeAt(eo++)}}function stringDestination(){var et=[],eo=[];return function(){if(0==arguments.length)return eo.join("")+o9.apply(String,et);et.length+arguments.length>1024&&(eo.push(o9.apply(String,et)),et.length=0),Array.prototype.push.apply(et,arguments)}}function UTF16ToUTF8(et){var eo;return encodeUTF16toUTF8(stringSource(et),eo=stringDestination()),eo()}/*!
 * +----------------------------------------------------------------------------------+
 * | murmurHash3.js v3.0.0 (http://github.com/karanlyons/murmurHash3.js)              |
 * | A TypeScript/JavaScript implementation of MurmurHash3's hashing algorithms.      |
 * |----------------------------------------------------------------------------------|
 * | Copyright (c) 2012-2020 Karan Lyons. Freely distributable under the MIT license. |
 * +----------------------------------------------------------------------------------+
 */function x86Multiply(et,eo){return(65535&et)*eo+(((et>>>16)*eo&65535)<<16)}function x86Rotl(et,eo){return et<<eo|et>>>32-eo}function x86Fmix(et){return et^=et>>>16,et=x86Multiply(et,2246822507),et^=et>>>13,et=x86Multiply(et,3266489909),et^=et>>>16}function hash32(et,eo){eo=eo||0;for(var ei=(et=et||"").length%4,ea=et.length-ei,eu=eo,ed=0,eh=3432918353,ep=461845907,ef=0;ef<ea;ef+=4)ed=x86Rotl(ed=x86Multiply(ed=255&et.charCodeAt(ef)|(255&et.charCodeAt(ef+1))<<8|(255&et.charCodeAt(ef+2))<<16|(255&et.charCodeAt(ef+3))<<24,eh),15),eu^=ed=x86Multiply(ed,ep),eu=x86Multiply(eu=x86Rotl(eu,13),5)+3864292196;switch(ed=0,ei){case 3:ed^=(255&et.charCodeAt(ef+2))<<16;case 2:ed^=(255&et.charCodeAt(ef+1))<<8;case 1:ed^=255&et.charCodeAt(ef),ed=x86Rotl(ed=x86Multiply(ed,eh),15),eu^=ed=x86Multiply(ed,ep)}return eu^=et.length,(eu=x86Fmix(eu))>>>0}function hash(et,eo){return hash32(UTF16ToUTF8(et),eo>>>0)}function bucket(et,eo){return Math.abs(hash(et,eo)%100)+1}function authenticateFactory(et){return function(eo){return et(eo).then(function(et){return et.json()}).then(function(et){if(et.token){var eo=decodeJWTtoken(et.token);if("number"!=typeof eo.iat||"number"!=typeof eo.exp)throw Error('token properties "issuedAt" (iat) or "expiration" (exp) are missing or invalid');var ei=JSON.parse(eo["x-ably-capability"]);return eF({decodedToken:eo,channels:ei},et)}return et})}}function hashUserKey(et){return encodeToBase64(hash(et,0).toString())}var ir="1.1",io=/^control_/;function buildSSEHeaders(et){var eo={SplitSDKClientKey:isString(et.core.authorizationKey)?et.core.authorizationKey.slice(-4):"",SplitSDKVersion:et.version},ei=et.runtime,ea=ei.ip,eu=ei.hostname;return ea&&(eo.SplitSDKMachineIP=ea),eu&&(eo.SplitSDKMachineName=eu),eo}var ia=function(){function SSEClient(et,eo,ei){if(this.eventSource=ei&&ei(),!this.eventSource)throw Error("EventSource API is not available. ");this.streamingUrl=et.urls.streaming+"/sse",this.useHeaders=eo,this.headers=buildSSEHeaders(et)}return SSEClient.prototype.setEventHandler=function(et){this.handler=et},SSEClient.prototype.open=function(et){this.close();var eo=Object.keys(et.channels).map(function(et){return encodeURIComponent((io.test(et)?"[?occupancy=metrics.publishers]":"")+et)}).join(","),ei=this.streamingUrl+"?channels="+eo+"&accessToken="+et.token+"&v="+ir+"&heartbeats=true";this.connection=new this.eventSource(this.useHeaders?ei:ei+"&SplitSDKVersion="+this.headers.SplitSDKVersion+"&SplitSDKClientKey="+this.headers.SplitSDKClientKey,this.useHeaders?{headers:this.headers}:void 0),this.handler&&(this.connection.addEventListener("open",this.handler.handleOpen),this.connection.addEventListener("message",this.handler.handleMessage),this.connection.addEventListener("error",this.handler.handleError))},SSEClient.prototype.close=function(){this.connection&&this.connection.close()},SSEClient}();function getMatching(et){return isObject(et)?et.matchingKey:et}function getBucketing(et){return isObject(et)?et.bucketingKey:void 0}function keyParser(et){return isObject(et)?{matchingKey:et.matchingKey,bucketingKey:et.bucketingKey}:{matchingKey:et,bucketingKey:et}}!function(et){et[et.None=0]="None",et[et.Gzip=1]="Gzip",et[et.Zlib=2]="Zlib"}(ep||(ep={})),function(et){et[et.UnboundedFetchRequest=0]="UnboundedFetchRequest",et[et.BoundedFetchRequest=1]="BoundedFetchRequest",et[et.KeyList=2]="KeyList",et[et.SegmentRemoval=3]="SegmentRemoval"}(ef||(ef={}));var ic=function(){if([typeof Uint8Array,typeof Uint16Array,typeof Uint32Array].some(function(et){return"function"!=et}))return"global Uint8Array object is not available for gzip/zlib decompression";var et=Uint8Array,eo=Uint16Array,ei=Uint32Array,ea=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),eu=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ed=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(et,ea){for(var eu=new eo(31),ed=0;ed<31;++ed)eu[ed]=ea+=1<<et[ed-1];for(var eh=new ei(eu[30]),ed=1;ed<30;++ed)for(var ep=eu[ed];ep<eu[ed+1];++ep)eh[ep]=ep-eu[ed]<<5|ed;return[eu,eh]},eh=freb(ea,2),ep=eh[0],ef=eh[1];ep[28]=258,ef[258]=28;for(var em=freb(eu,0)[0],eg=new eo(32768),ey=0;ey<32768;++ey){var eC=(43690&ey)>>>1|(21845&ey)<<1;eC=(61680&(eC=(52428&eC)>>>2|(13107&eC)<<2))>>>4|(3855&eC)<<4,eg[ey]=((65280&eC)>>>8|(255&eC)<<8)>>>1}for(var hMap=function(et,ei,ea){for(var eu,ed=et.length,eh=0,ep=new eo(ei);eh<ed;++eh)++ep[et[eh]-1];var ef=new eo(ei);for(eh=0;eh<ei;++eh)ef[eh]=ef[eh-1]+ep[eh-1]<<1;if(ea){eu=new eo(1<<ei);var em=15-ei;for(eh=0;eh<ed;++eh)if(et[eh])for(var ey=eh<<4|et[eh],eC=ei-et[eh],eS=ef[et[eh]-1]++<<eC,e_=eS|(1<<eC)-1;eS<=e_;++eS)eu[eg[eS]>>>em]=ey}else for(eh=0,eu=new eo(ed);eh<ed;++eh)et[eh]&&(eu[eh]=eg[ef[et[eh]-1]++]>>>15-et[eh]);return eu},eS=new et(288),ey=0;ey<144;++ey)eS[ey]=8;for(var ey=144;ey<256;++ey)eS[ey]=9;for(var ey=256;ey<280;++ey)eS[ey]=7;for(var ey=280;ey<288;++ey)eS[ey]=8;for(var e_=new et(32),ey=0;ey<32;++ey)e_[ey]=5;var ew=hMap(eS,9,1),eA=hMap(e_,5,1),max=function(et){for(var eo=et[0],ei=1;ei<et.length;++ei)et[ei]>eo&&(eo=et[ei]);return eo},bits=function(et,eo,ei){var ea=eo/8|0;return(et[ea]|et[ea+1]<<8)>>(7&eo)&ei},bits16=function(et,eo){var ei=eo/8|0;return(et[ei]|et[ei+1]<<8|et[ei+2]<<16)>>(7&eo)},shft=function(et){return(et+7)/8|0},slc=function(ea,eu,ed){(null==eu||eu<0)&&(eu=0),(null==ed||ed>ea.length)&&(ed=ea.length);var eh=new(ea instanceof eo?eo:ea instanceof ei?ei:et)(ed-eu);return eh.set(ea.subarray(eu,ed)),eh},eI=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(et,eo,ei){var ea=Error(eo||eI[et]);if(ea.code=et,Error.captureStackTrace&&Error.captureStackTrace(ea,err),!ei)throw ea;return ea},inflt=function(eo,ei,eh){var ef=eo.length;if(!ef||eh&&eh.f&&!eh.l)return ei||new et(0);var eg=!ei||eh,ey=!eh||eh.i;eh||(eh={}),ei||(ei=new et(3*ef));var cbuf=function(eo){var ea=ei.length;if(eo>ea){var eu=new et(Math.max(2*ea,eo));eu.set(ei),ei=eu}},eC=eh.f||0,eS=eh.p||0,e_=eh.b||0,eI=eh.l,eR=eh.d,eT=eh.m,eE=eh.n,eP=8*ef;do{if(!eI){eC=bits(eo,eS,1);var ek=bits(eo,eS+1,3);if(eS+=3,ek){if(1==ek)eI=ew,eR=eA,eT=9,eE=5;else if(2==ek){var eO=bits(eo,eS,31)+257,eM=bits(eo,eS+10,15)+4,eD=eO+bits(eo,eS+5,31)+1;eS+=14;for(var eU=new et(eD),eL=new et(19),eN=0;eN<eM;++eN)eL[ed[eN]]=bits(eo,eS+3*eN,7);eS+=3*eM;for(var eB=max(eL),eF=(1<<eB)-1,ej=hMap(eL,eB,1),eN=0;eN<eD;){var eG=ej[bits(eo,eS,eF)];eS+=15&eG;var eH=eG>>>4;if(eH<16)eU[eN++]=eH;else{var eK=0,ez=0;for(16==eH?(ez=3+bits(eo,eS,3),eS+=2,eK=eU[eN-1]):17==eH?(ez=3+bits(eo,eS,7),eS+=3):18==eH&&(ez=11+bits(eo,eS,127),eS+=7);ez--;)eU[eN++]=eK}}var eW=eU.subarray(0,eO),eV=eU.subarray(eO);eT=max(eW),eE=max(eV),eI=hMap(eW,eT,1),eR=hMap(eV,eE,1)}else err(1)}else{var eH=shft(eS)+4,eJ=eo[eH-4]|eo[eH-3]<<8,eY=eH+eJ;if(eY>ef){ey&&err(0);break}eg&&cbuf(e_+eJ),ei.set(eo.subarray(eH,eY),e_),eh.b=e_+=eJ,eh.p=eS=8*eY,eh.f=eC;continue}if(eS>eP){ey&&err(0);break}}eg&&cbuf(e_+131072);for(var e$=(1<<eT)-1,eZ=(1<<eE)-1,eQ=eS;;eQ=eS){var eK=eI[bits16(eo,eS)&e$],eX=eK>>>4;if((eS+=15&eK)>eP){ey&&err(0);break}if(eK||err(2),eX<256)ei[e_++]=eX;else if(256==eX){eQ=eS,eI=null;break}else{var e0=eX-254;if(eX>264){var eN=eX-257,e4=ea[eN];e0=bits(eo,eS,(1<<e4)-1)+ep[eN],eS+=e4}var e6=eR[bits16(eo,eS)&eZ],e5=e6>>>4;e6||err(3),eS+=15&e6;var eV=em[e5];if(e5>3){var e4=eu[e5];eV+=bits16(eo,eS)&(1<<e4)-1,eS+=e4}if(eS>eP){ey&&err(0);break}eg&&cbuf(e_+131072);for(var e8=e_+e0;e_<e8;e_+=4)ei[e_]=ei[e_-eV],ei[e_+1]=ei[e_+1-eV],ei[e_+2]=ei[e_+2-eV],ei[e_+3]=ei[e_+3-eV];e_=e8}}eh.l=eI,eh.p=eQ,eh.b=e_,eh.f=eC,eI&&(eC=1,eh.m=eT,eh.d=eR,eh.n=eE)}while(!eC);return e_==ei.length?ei:slc(ei,0,e_)},gzs=function(et){(31!=et[0]||139!=et[1]||8!=et[2])&&err(6,"invalid gzip data");var eo=et[3],ei=10;4&eo&&(ei+=et[10]|(et[11]<<8)+2);for(var ea=(eo>>3&1)+(eo>>4&1);ea>0;ea-=!et[ei++]);return ei+(2&eo)},gzl=function(et){var eo=et.length;return(et[eo-4]|et[eo-3]<<8|et[eo-2]<<16|et[eo-1]<<24)>>>0},zlv=function(et){((15&et[0])!=8||et[0]>>>4>7||(et[0]<<8|et[1])%31)&&err(6,"invalid zlib data"),32&et[1]&&err(6,"invalid zlib data: preset dictionaries not supported")};return{gunzipSync:function(eo,ei){return inflt(eo.subarray(gzs(eo),-8),ei||new et(gzl(eo)))},unzlibSync:function(et,eo){return inflt((zlv(et),et.subarray(2,-4)),eo)}}}(),iu=1,ih=2;function Uint8ArrayToString(et){return String.fromCharCode.apply(null,et)}function StringToUint8Array(et){var eo=et.split("").map(function(et){return et.charCodeAt(0)});return new Uint8Array(eo)}function decompress(et,eo){var ei=StringToUint8Array(decodeFromBase64(et));if("string"==typeof ic)throw Error(ic);if(eo===iu)return ic.gunzipSync(ei);if(eo===ih)return ic.unzlibSync(ei);throw Error("Invalid compression algorithm #"+eo)}function parseKeyList(et,eo,ei){void 0===ei&&(ei=!0);var ea=Uint8ArrayToString(decompress(et,eo));return ei&&(ea=ea.replace(/\d+/g,'"$&"')),JSON.parse(ea)}function parseBitmap(et,eo){return decompress(et,eo)}function isInBitmap(et,eo){var ei=parseInt(eo.slice(8),16)%(8*et.length),ea=Math.floor(ei/8),eu=ei%8;return(et[ea]&1<<eu)>0}function parseFFUpdatePayload(et,eo){var ei=!1;return et>0?parseKeyList(eo,et,ei):JSON.parse(decodeFromBase64(eo))}var im=function(){function SetPoly(et){var eo=this;this.__setData__=[],Array.isArray(et)&&et.forEach(function(et){eo.add(et)})}return SetPoly.prototype.clear=function(){this.__setData__.length&&(this.__setData__.length=0)},SetPoly.prototype.add=function(et){return this.has(et)||this.__setData__.push(et),this},SetPoly.prototype.delete=function(et){var eo=this.__setData__.indexOf(et);return -1!==eo&&(this.__setData__.splice(eo,1),!0)},SetPoly.prototype.has=function(et){return -1!==this.__setData__.indexOf(et)},SetPoly.prototype.forEach=function(et,eo){if("function"!=typeof et)throw TypeError(et+" is not a function");for(var ei=0;ei<this.__setData__.length;ei++){var ea=this.__setData__[ei];et.call(eo,ea,ea,this)}},Object.defineProperty(SetPoly.prototype,"size",{get:function(){return this.__setData__.length},enumerable:!1,configurable:!0}),SetPoly}();function setToArray(et){return et instanceof im?et.__setData__.slice():Array.from(et)}var ig=function(){return"function"==typeof Array.from&&"function"==typeof Set&&Set.prototype&&Set.prototype.values?Set:im}();function returnSetsUnion(et,eo){var ei=new ig(setToArray(et));return eo.forEach(function(et){ei.add(et)}),ei}function _x64Add(et,eo){et=[et[0]>>>16,65535&et[0],et[1]>>>16,65535&et[1]],eo=[eo[0]>>>16,65535&eo[0],eo[1]>>>16,65535&eo[1]];var ei=[0,0,0,0];return ei[3]+=et[3]+eo[3],ei[2]+=ei[3]>>>16,ei[3]&=65535,ei[2]+=et[2]+eo[2],ei[1]+=ei[2]>>>16,ei[2]&=65535,ei[1]+=et[1]+eo[1],ei[0]+=ei[1]>>>16,ei[1]&=65535,ei[0]+=et[0]+eo[0],ei[0]&=65535,[ei[0]<<16|ei[1],ei[2]<<16|ei[3]]}function _x64Multiply(et,eo){et=[et[0]>>>16,65535&et[0],et[1]>>>16,65535&et[1]],eo=[eo[0]>>>16,65535&eo[0],eo[1]>>>16,65535&eo[1]];var ei=[0,0,0,0];return ei[3]+=et[3]*eo[3],ei[2]+=ei[3]>>>16,ei[3]&=65535,ei[2]+=et[2]*eo[3],ei[1]+=ei[2]>>>16,ei[2]&=65535,ei[2]+=et[3]*eo[2],ei[1]+=ei[2]>>>16,ei[2]&=65535,ei[1]+=et[1]*eo[3],ei[0]+=ei[1]>>>16,ei[1]&=65535,ei[1]+=et[2]*eo[2],ei[0]+=ei[1]>>>16,ei[1]&=65535,ei[1]+=et[3]*eo[1],ei[0]+=ei[1]>>>16,ei[1]&=65535,ei[0]+=et[0]*eo[3]+et[1]*eo[2]+et[2]*eo[1]+et[3]*eo[0],ei[0]&=65535,[ei[0]<<16|ei[1],ei[2]<<16|ei[3]]}function _x64Rotl(et,eo){return 32==(eo%=64)?[et[1],et[0]]:eo<32?[et[0]<<eo|et[1]>>>32-eo,et[1]<<eo|et[0]>>>32-eo]:(eo-=32,[et[1]<<eo|et[0]>>>32-eo,et[0]<<eo|et[1]>>>32-eo])}function _x64LeftShift(et,eo){return 0==(eo%=64)?et:eo<32?[et[0]<<eo|et[1]>>>32-eo,et[1]<<eo]:[et[1]<<eo-32,0]}function _x64Xor(et,eo){return[et[0]^eo[0],et[1]^eo[1]]}function _x64Fmix(et){return et=_x64Multiply(et=_x64Xor(et,[0,et[0]>>>1]),[4283543511,3981806797]),et=_x64Multiply(et=_x64Xor(et,[0,et[0]>>>1]),[3301882366,444984403]),et=_x64Xor(et,[0,et[0]>>>1])}function hash128x64(et,eo){eo=eo||0;for(var ei=(et=et||"").length%16,ea=et.length-ei,eu=[0,eo],ed=[0,eo],eh=[0,0],ep=[0,0],ef=[2277735313,289559509],em=[1291169091,658871167],eg=0;eg<ea;eg+=16)eh=[255&et.charCodeAt(eg+4)|(255&et.charCodeAt(eg+5))<<8|(255&et.charCodeAt(eg+6))<<16|(255&et.charCodeAt(eg+7))<<24,255&et.charCodeAt(eg)|(255&et.charCodeAt(eg+1))<<8|(255&et.charCodeAt(eg+2))<<16|(255&et.charCodeAt(eg+3))<<24],ep=[255&et.charCodeAt(eg+12)|(255&et.charCodeAt(eg+13))<<8|(255&et.charCodeAt(eg+14))<<16|(255&et.charCodeAt(eg+15))<<24,255&et.charCodeAt(eg+8)|(255&et.charCodeAt(eg+9))<<8|(255&et.charCodeAt(eg+10))<<16|(255&et.charCodeAt(eg+11))<<24],eh=_x64Rotl(eh=_x64Multiply(eh,ef),31),eu=_x64Add(eu=_x64Rotl(eu=_x64Xor(eu,eh=_x64Multiply(eh,em)),27),ed),eu=_x64Add(_x64Multiply(eu,[0,5]),[0,1390208809]),ep=_x64Rotl(ep=_x64Multiply(ep,em),33),ed=_x64Add(ed=_x64Rotl(ed=_x64Xor(ed,ep=_x64Multiply(ep,ef)),31),eu),ed=_x64Add(_x64Multiply(ed,[0,5]),[0,944331445]);switch(eh=[0,0],ep=[0,0],ei){case 15:ep=_x64Xor(ep,_x64LeftShift([0,et.charCodeAt(eg+14)],48));case 14:ep=_x64Xor(ep,_x64LeftShift([0,et.charCodeAt(eg+13)],40));case 13:ep=_x64Xor(ep,_x64LeftShift([0,et.charCodeAt(eg+12)],32));case 12:ep=_x64Xor(ep,_x64LeftShift([0,et.charCodeAt(eg+11)],24));case 11:ep=_x64Xor(ep,_x64LeftShift([0,et.charCodeAt(eg+10)],16));case 10:ep=_x64Xor(ep,_x64LeftShift([0,et.charCodeAt(eg+9)],8));case 9:ep=_x64Rotl(ep=_x64Multiply(ep=_x64Xor(ep,[0,et.charCodeAt(eg+8)]),em),33),ed=_x64Xor(ed,ep=_x64Multiply(ep,ef));case 8:eh=_x64Xor(eh,_x64LeftShift([0,et.charCodeAt(eg+7)],56));case 7:eh=_x64Xor(eh,_x64LeftShift([0,et.charCodeAt(eg+6)],48));case 6:eh=_x64Xor(eh,_x64LeftShift([0,et.charCodeAt(eg+5)],40));case 5:eh=_x64Xor(eh,_x64LeftShift([0,et.charCodeAt(eg+4)],32));case 4:eh=_x64Xor(eh,_x64LeftShift([0,et.charCodeAt(eg+3)],24));case 3:eh=_x64Xor(eh,_x64LeftShift([0,et.charCodeAt(eg+2)],16));case 2:eh=_x64Xor(eh,_x64LeftShift([0,et.charCodeAt(eg+1)],8));case 1:eh=_x64Rotl(eh=_x64Multiply(eh=_x64Xor(eh,[0,et.charCodeAt(eg)]),ef),31),eu=_x64Xor(eu,eh=_x64Multiply(eh,em))}return eu=_x64Add(eu=_x64Xor(eu,[0,et.length]),ed=_x64Xor(ed,[0,et.length])),ed=_x64Add(ed,eu),eu=_x64Add(eu=_x64Fmix(eu),ed=_x64Fmix(ed)),ed=_x64Add(ed,eu),("00000000"+(eu[0]>>>0).toString(16)).slice(-8)+("00000000"+(eu[1]>>>0).toString(16)).slice(-8)+("00000000"+(ed[0]>>>0).toString(16)).slice(-8)+("00000000"+(ed[1]>>>0).toString(16)).slice(-8)}function hash128(et,eo){return hash128x64(UTF16ToUTF8(et),eo>>>0)}function hex2dec(et){var eo,ei,ea,eu=[0];for(eo=0;eo<et.length;eo+=1){for(ea=parseInt(et.charAt(eo),16),ei=eu.length-1;ei>=0;ei-=1)eu[ei]=16*eu[ei]+ea,ea=eu[ei]/10|0,eu[ei]%=10;for(;ea>0;)eu.unshift(ea%10),ea=ea/10|0}return eu.join("")}function hash64(et){var eo=hash128(et).slice(0,16);return{hex:eo,dec:hex2dec(eo)}}function pushManagerFactory(et,eo){var ei,ea,eu,ed,ep,em=et.settings,eg=et.storage,ey=et.splitApi,eC=et.readiness,eS=et.platform,e_=et.telemetryTracker,ew=em.core.key?getMatching(em.core.key):void 0,eA=em.log;try{ei=new ia(em,!ew,eS.getEventSource)}catch(et){eA.warn(t3,[et]);return}var eI=authenticateFactory(ey.fetchAuth),eR=new eS.EventEmitter,eT=SSEHandlerFactory(eA,eR,e_);ei.setEventHandler(eT);var eE=ew?void 0:SegmentsUpdateWorker(eA,eo.segmentsSyncTask,eg.segments),eP=SplitsUpdateWorker(eA,eg.splits,eo.splitsSyncTask,eC.splits,e_,ew?void 0:eo.segmentsSyncTask),ek={},eO={},eM=!1,eD=new o2(connectPush,em.scheduler.pushRetryBackoffBase);function scheduleTokenRefreshAndSse(et){ed&&clearTimeout(ed),ep&&clearTimeout(ep);var eo=et.decodedToken,eu=eo.exp-eo.iat-oH,eh="number"==typeof et.connDelay&&et.connDelay>=0?et.connDelay:60;eA.info(tU,[eu,eh]),ed=setTimeout(connectPush,1e3*eu),ep=setTimeout(function(){ea||ei.open(et)},1e3*eh),e_.streamingEvent(oo,eo.exp)}function connectPush(){if(!ea){eA.info(tN),ea=!1;var et=ew?Object.keys(eO):void 0;eI(et).then(function(eo){if(!ea){if(!eo.pushEnabled){eA.info(tq),eR.emit(oK);return}et&&et.length<Object.keys(eO).length||scheduleTokenRefreshAndSse(eo)}}).catch(function(et){if(!ea){if(eA.error(rw,[et.message]),et.statusCode>=400&&et.statusCode<500){e_.streamingEvent(oc),eR.emit(oK);return}eR.emit(oz)}})}}function disconnectPush(){ea||(ea=!0,ei.close(),eA.info(tB),ed&&clearTimeout(ed),ep&&clearTimeout(ep),eD.reset(),stopWorkers())}function stopWorkers(){eP.stop(),ew?forOwn(eO,function(et){return et.worker.stop()}):eE.stop()}return eR.on(oV,stopWorkers),eR.on(oW,function(){eD.reset()}),eR.on(oK,function(){eu=!0,disconnectPush(),eR.emit(oV)}),eR.on(oz,function(){ei.close();var et=eD.scheduleCall();eA.info(tL,[et/1e3]),eR.emit(oV)}),eR.on(eh.STREAMING_RESET,function(){ea||(ed&&clearTimeout(ed),connectPush())}),eR.on(oZ,eP.killSplit),eR.on(oQ,function(et){if(et.d&&void 0!==et.c)try{var eo=parseFFUpdatePayload(et.c,et.d);if(eo){eP.put(et,eo);return}}catch(et){eA.warn(rh,[et])}eP.put(et)}),ew?(eR.on(oJ,function(et,eo){var ei=ek[eo.split("_")[2]];ei&&eO[ei]&&eO[ei].worker.put(et.changeNumber,et.includesPayload?et.segmentList?et.segmentList:[]:void 0)}),eR.on(oY,function(et){switch(et.u){case ef.BoundedFetchRequest:var eo;try{eo=parseBitmap(et.d,et.c)}catch(et){eA.warn(rd,["BoundedFetchRequest",et]);break}forOwn(eO,function(ei){var ea=ei.hash64,eu=ei.worker;isInBitmap(eo,ea.hex)&&eu.put(et.changeNumber)});return;case ef.KeyList:var ei,ea,eu=void 0;try{eu=parseKeyList(et.d,et.c),ei=new ig(eu.a),ea=new ig(eu.r)}catch(et){eA.warn(rd,["KeyList",et]);break}forOwn(eO,function(eo){var eu=eo.hash64,ed=eo.worker,eh=!!ei.has(eu.dec)||!ea.has(eu.dec)&&void 0;void 0!==eh&&ed.put(et.changeNumber,{name:et.segmentName,add:eh})});return;case ef.SegmentRemoval:if(!et.segmentName){eA.warn(rd,["SegmentRemoval","No segment name was provided"]);break}forOwn(eO,function(eo){return eo.worker.put(et.changeNumber,{name:et.segmentName,add:!1})});return}forOwn(eO,function(eo){eo.worker.put(et.changeNumber)})})):eR.on(o$,eE.put),eF(Object.create(eR),{stop:function(){disconnectPush(),ew&&this.remove(ew)},start:function(){eu||!1===ea||(ea=!1,ew?this.add(ew,eo.segmentsSyncTask):setTimeout(connectPush))},isRunning:function(){return!1===ea},add:function(et,eo){var ei=hashUserKey(et);ek[ei]||(ek[ei]=et,eO[et]={hash64:hash64(et),worker:MySegmentsUpdateWorker(eo,e_)},eM=!0,setTimeout(function(){eM&&(eM=!1,connectPush())},0))},remove:function(et){var eo=hashUserKey(et);delete ek[eo],delete eO[et]}})}function mySegmentsFetcherFactory(et){return function(eo,ei,ea){var eu=et(eo,ei);return ea&&(eu=ea(eu)),eu.then(function(et){return et.json()}).then(function(et){return et.mySegments.map(function(et){return et.name})})}}function timeout(et,eo){return et<1?eo:new Promise(function(ei,ea){var eu=setTimeout(function(){ea(Error("Operation timed out because it exceeded the configured time limit of "+et+" ms."))},et);eo.then(function(et){clearTimeout(eu),ei(et)},function(et){clearTimeout(eu),ea(et)})})}function mySegmentsUpdaterFactory(et,eo,ei,ea,eu,ed,eh,ep){var ef=!0,em=!0;function _promiseDecorator(et){return em&&(et=timeout(ed,et)),et}function updateSegments(et){var eo;if(Array.isArray(et))eo=ea.resetSegments(et);else{var ed=et.name,eh=et.add;ea.isInSegment(ed)!==eh?(eo=!0,eh?ea.addToSegment(ed):ea.removeFromSegment(ed)):eo=!1}ei.usesSegments()&&(eo||ef)&&(ef=!1,eu.emit(o_))}function _mySegmentsUpdater(ei,ea,eu){return(ea?new Promise(function(et){updateSegments(ea),et(!0)}):eo(ep,eu,_promiseDecorator).then(function(et){return em=!1,updateSegments(et),!0})).catch(function(eo){return em&&eh>ei?(ei+=1,et.warn(t0,[ei,eo]),_mySegmentsUpdater(ei)):(em=!1,!1)})}return function(et,eo){return _mySegmentsUpdater(0,et,eo)}}function mySegmentsSyncTaskFactory(et,eo,ei,ea,eu){return syncTaskFactory(ea.log,mySegmentsUpdaterFactory(ea.log,mySegmentsFetcherFactory(et),eo.splits,eo.segments,ei.segments,ea.startup.requestTimeoutBeforeReady,ea.startup.retriesOnFailureBeforeReady,eu),ea.scheduler.segmentsRefreshRate,"mySegmentsUpdater")}function splitChangesFetcherFactory(et){return function(eo,ei,ea,eu){var ed=et(eo,ei,ea);return eu&&(ed=eu(ed)),ed.then(function(et){return et.json()})}}function checkAllSegmentsExist(et){return Promise.resolve(et.getRegisteredSegments()).then(function(eo){return Promise.all(eo.map(function(eo){return et.getChangeNumber(eo)})).then(function(et){return et.every(function(et){return -1!==et})})})}function parseSegments(et){for(var eo=et.conditions,ei=new ig,ea=0;ea<eo.length;ea++)eo[ea].matcherGroup.matchers.forEach(function(et){"IN_SEGMENT"===et.matcherType&&ei.add(et.userDefinedSegmentMatcherData.segmentName)});return ei}function matchFilters(et,eo){var ei=eo.groupedFilters,ea=ei.bySet,eu=ei.byName,ed=ei.byPrefix;if(ea.length>0)return et.sets&&et.sets.some(function(et){return ea.indexOf(et)>-1});var eh=eu.length>0,ep=ed.length>0;if(!eh&&!ep)return!0;var ef=eh&&eu.indexOf(et.name)>-1,em=ep&&ed.some(function(eo){return startsWith(et.name,eo)});return ef||em}function computeSplitsMutation(et,eo){var ei=new ig,ea=et.reduce(function(et,ea){return"ACTIVE"===ea.status&&matchFilters(ea,eo)?(et.added.push([ea.name,ea]),parseSegments(ea).forEach(function(et){ei.add(et)})):et.removed.push(ea.name),et},{added:[],removed:[],segments:[]});return ea.segments=setToArray(ei),ea}function splitChangesUpdaterFactory(et,eo,ei,ea,eu,ed,eh,ep,ef){void 0===eh&&(eh=0),void 0===ep&&(ep=0);var em=!0;function _promiseDecorator(et){return em&&eh&&(et=timeout(eh,et)),et}function isThereUpdate(et){var eo=et[1],ei=et[2];return!!(eo&&eo.some(function(et){return et})||ei&&ei.some(function(et){return et}))}return function(eh,eg,ey){function _splitChangesUpdater(eC,eS){void 0===eS&&(eS=0),et.debug(tg,[eC]);var e_=Promise.resolve(ey?{splits:[ey.payload],till:ey.changeNumber}:eo(eC,eh,eg,_promiseDecorator)).then(function(eo){em=!1;var eh=computeSplitsMutation(eo.splits,eu);return et.debug(ty,[eh.added.length]),et.debug(tv,[eh.removed.length]),et.debug(tb,[eh.segments.length]),Promise.all([ei.setChangeNumber(eo.till),ei.addSplits(eh.added),ei.removeSplits(eh.removed),ea.registerSegments(eh.segments)]).then(function(et){return!ed||Promise.resolve(!ed.splitsArrived||eC!==eo.till&&isThereUpdate(et)&&(ef||checkAllSegmentsExist(ea))).catch(function(){return!1}).then(function(et){return et&&ed.emit(oC),!0})})}).catch(function(eo){return(et.warn(t1,[eo]),em&&ep>eS)?(eS+=1,et.info(tD,[eS,eo]),_splitChangesUpdater(eC,eS)):(em=!1,!1)});return ed&&em&&Promise.resolve(ei.checkCache()).then(function(et){et&&ed.emit(oS)}),e_}return Promise.resolve(ei.getChangeNumber()).then(_splitChangesUpdater)}}function splitsSyncTaskFactory(et,eo,ei,ea,eu){return syncTaskFactory(ea.log,splitChangesUpdaterFactory(ea.log,splitChangesFetcherFactory(et),eo.splits,eo.segments,ea.sync.__splitFiltersValidation,ei.splits,ea.startup.requestTimeoutBeforeReady,ea.startup.retriesOnFailureBeforeReady,eu),ea.scheduler.featuresRefreshRate,"splitChangesUpdater")}function pollingManagerCSFactory(et){var eo=et.splitApi,ei=et.storage,ea=et.readiness,eu=et.settings,ed=eu.log,eh=splitsSyncTaskFactory(eo.fetchSplitChanges,ei,ea,eu,!0),ep={},ef=add(getMatching(eu.core.key),ea,ei);function startMySegmentsSyncTasks(){forOwn(ep,function(et){et.start()})}function stopMySegmentsSyncTasks(){forOwn(ep,function(et){et.isRunning()&&et.stop()})}function add(et,ei,ea){var ed=mySegmentsSyncTaskFactory(eo.fetchMySegments,ea,ei,eu,et);function smartReady(){ei.isReady()||ea.splits.usesSegments()||ei.segments.emit(o_)}return ea.splits.usesSegments()?ei.splits.once(oC,smartReady):setTimeout(smartReady,0),ep[et]=ed,ed}return ea.splits.on(oC,function(){if(eh.isRunning()){var et=ei.splits.usesSegments();et!==ef.isRunning()&&(ed.info(tO,[et?"ON":"OFF"]),et?startMySegmentsSyncTasks():stopMySegmentsSyncTasks())}}),{splitsSyncTask:eh,segmentsSyncTask:ef,start:function(){ed.info(tx),eh.start(),ei.splits.usesSegments()&&startMySegmentsSyncTasks()},stop:function(){ed.info(tM),eh.isRunning()&&eh.stop(),stopMySegmentsSyncTasks()},isRunning:eh.isRunning,syncAll:function(){var et=[eh.execute()];return forOwn(ep,function(eo){et.push(eo.execute())}),Promise.all(et)},add:add,remove:function(et){delete ep[et]},get:function(et){return ep[et]}}}var iy=function(){function ImpressionsCacheInMemory(et){void 0===et&&(et=0),this.maxQueue=et,this.queue=[]}return ImpressionsCacheInMemory.prototype.setOnFullQueueCb=function(et){this.onFullQueue=et},ImpressionsCacheInMemory.prototype.track=function(et){var eo;(eo=this.queue).push.apply(eo,et),this.maxQueue>0&&this.queue.length>=this.maxQueue&&this.onFullQueue&&this.onFullQueue()},ImpressionsCacheInMemory.prototype.clear=function(){this.queue=[]},ImpressionsCacheInMemory.prototype.pop=function(et){var eo=this.queue;return this.clear(),et?et.concat(eo):eo},ImpressionsCacheInMemory.prototype.isEmpty=function(){return 0===this.queue.length},ImpressionsCacheInMemory}(),iv=36e5;function truncateTimeFrame(et){return et-et%iv}var ib=3e4,iC=function(){function ImpressionCountsCacheInMemory(et){void 0===et&&(et=ib),this.cache={},this.cacheSize=0,this.maxStorage=et}return ImpressionCountsCacheInMemory.prototype._makeKey=function(et,eo){return et+"::"+truncateTimeFrame(eo)},ImpressionCountsCacheInMemory.prototype.track=function(et,eo,ei){var ea=this._makeKey(et,eo),eu=this.cache[ea];this.cache[ea]=eu?eu+ei:ei,this.onFullQueue&&(this.cacheSize=this.cacheSize+ei,this.cacheSize>=this.maxStorage&&this.onFullQueue())},ImpressionCountsCacheInMemory.prototype.pop=function(et){var eo=this.cache;return(this.clear(),et)?(Object.keys(eo).forEach(function(ei){et[ei]?et[ei]+=eo[ei]:et[ei]=eo[ei]}),et):eo},ImpressionCountsCacheInMemory.prototype.clear=function(){this.cache={},this.cacheSize=0},ImpressionCountsCacheInMemory.prototype.isEmpty=function(){return 0===Object.keys(this.cache).length},ImpressionCountsCacheInMemory}(),iS=5242880,i_=function(){function EventsCacheInMemory(et){void 0===et&&(et=0),this.maxQueue=et,this.queue=[],this.queueByteSize=0}return EventsCacheInMemory.prototype.setOnFullQueueCb=function(et){this.onFullQueue=et},EventsCacheInMemory.prototype.track=function(et,eo){return void 0===eo&&(eo=0),this.queueByteSize+=eo,this.queue.push(et),this._checkForFlush(),!0},EventsCacheInMemory.prototype.clear=function(){this.queue=[],this.queueByteSize=0},EventsCacheInMemory.prototype.pop=function(et){var eo=this.queue;return this.clear(),et?et.concat(eo):eo},EventsCacheInMemory.prototype.isEmpty=function(){return 0===this.queue.length},EventsCacheInMemory.prototype._checkForFlush=function(){(this.queueByteSize>iS||this.maxQueue>0&&this.queue.length>=this.maxQueue)&&this.onFullQueue&&this.onFullQueue()},EventsCacheInMemory}(),iw=/[^.]+$/,iA="SPLITIO";function validatePrefix(et){return et?et+".SPLITIO":"SPLITIO"}function getStorageHash(et){return hash(et.core.authorizationKey+"::"+et.sync.__splitFiltersValidation.queryString).toString(16)}var iI=function(et){function KeyBuilderCS(eo,ei){var ea=et.call(this,eo)||this;return ea.matchingKey=ei,ea.regexSplitsCacheKey=RegExp("^"+eo+"\\.(splits?|trafficType|flagSet)\\."),ea}return __extends(KeyBuilderCS,et),KeyBuilderCS.prototype.buildSegmentNameKey=function(et){return this.prefix+"."+this.matchingKey+".segment."+et},KeyBuilderCS.prototype.extractSegmentName=function(et){var eo=this.prefix+"."+this.matchingKey+".segment.";if(startsWith(et,eo))return et.substr(eo.length)},KeyBuilderCS.prototype.buildOldSegmentNameKey=function(et){return this.matchingKey+"."+this.prefix+".segment."+et},KeyBuilderCS.prototype.extractOldSegmentKey=function(et){var eo=this.matchingKey+"."+this.prefix+".segment.";if(startsWith(et,eo))return et.substr(eo.length)},KeyBuilderCS.prototype.buildLastUpdatedKey=function(){return this.prefix+".splits.lastUpdated"},KeyBuilderCS.prototype.isSplitsCacheKey=function(et){return this.regexSplitsCacheKey.test(et)},KeyBuilderCS}(function(){function KeyBuilder(et){void 0===et&&(et=iA),this.prefix=et}return KeyBuilder.prototype.buildTrafficTypeKey=function(et){return this.prefix+".trafficType."+et},KeyBuilder.prototype.buildFlagSetKey=function(et){return this.prefix+".flagSet."+et},KeyBuilder.prototype.buildSplitKey=function(et){return this.prefix+".split."+et},KeyBuilder.prototype.buildSplitsTillKey=function(){return this.prefix+".splits.till"},KeyBuilder.prototype.isSplitKey=function(et){return startsWith(et,this.prefix+".split.")},KeyBuilder.prototype.buildSplitKeyPrefix=function(){return this.prefix+".split."},KeyBuilder.prototype.buildSplitsWithSegmentCountKey=function(){return this.prefix+".splits.usingSegments"},KeyBuilder.prototype.buildSegmentNameKey=function(et){return this.prefix+".segment."+et},KeyBuilder.prototype.buildSegmentTillKey=function(et){return this.prefix+".segment."+et+".till"},KeyBuilder.prototype.extractKey=function(et){var eo=et.match(iw);if(eo&&eo.length)return eo[0];throw Error("Invalid latency key provided")},KeyBuilder.prototype.buildHashKey=function(){return this.prefix+".hash"},KeyBuilder}());function isLocalStorageAvailable(){var et="__SPLITSOFTWARE__";try{return localStorage.setItem(et,et),localStorage.removeItem(et),!0}catch(et){return!1}}var iR=function(){function AbstractSplitsCacheSync(){}return AbstractSplitsCacheSync.prototype.addSplits=function(et){var eo=this;return et.map(function(et){return eo.addSplit(et[0],et[1])})},AbstractSplitsCacheSync.prototype.removeSplits=function(et){var eo=this;return et.map(function(et){return eo.removeSplit(et)})},AbstractSplitsCacheSync.prototype.getSplits=function(et){var eo=this,ei={};return et.forEach(function(et){ei[et]=eo.getSplit(et)}),ei},AbstractSplitsCacheSync.prototype.getAll=function(){var et=this;return this.getSplitNames().map(function(eo){return et.getSplit(eo)})},AbstractSplitsCacheSync.prototype.checkCache=function(){return!1},AbstractSplitsCacheSync.prototype.killLocally=function(et,eo,ei){var ea=this.getSplit(et);if(ea&&(!ea.changeNumber||ea.changeNumber<ei)){var eu=eF({},ea);return eu.killed=!0,eu.defaultTreatment=eo,eu.changeNumber=ei,this.addSplit(et,eu)}return!1},AbstractSplitsCacheSync}();function usesSegments(et){for(var eo=et.conditions||[],ei=0;ei<eo.length;ei++)for(var ea=eo[ei].matcherGroup.matchers,eu=0;eu<ea.length;eu++)if("IN_SEGMENT"===ea[eu].matcherType)return!0;return!1}var iT="storage:localstorage: ",iE="1",iP=function(et){function SplitsCacheInLocal(eo,ei,ea){var eu=et.call(this)||this;return eu.keys=ei,eu.log=eo.log,eu.storageHash=getStorageHash(eo),eu.flagSetsFilter=eo.sync.__splitFiltersValidation.groupedFilters.bySet,eu._checkExpiration(ea),eu._checkFilterQuery(),eu}return __extends(SplitsCacheInLocal,et),SplitsCacheInLocal.prototype._decrementCount=function(et){var eo=toNumber(localStorage.getItem(et))-1;eo>0?localStorage.setItem(et,eo):localStorage.removeItem(et)},SplitsCacheInLocal.prototype._decrementCounts=function(et){try{if(et){var eo=this.keys.buildTrafficTypeKey(et.trafficTypeName);if(this._decrementCount(eo),usesSegments(et)){var ei=this.keys.buildSplitsWithSegmentCountKey();this._decrementCount(ei)}}}catch(et){this.log.error(iT+et)}},SplitsCacheInLocal.prototype._incrementCounts=function(et){try{if(et){var eo=this.keys.buildTrafficTypeKey(et.trafficTypeName);if(localStorage.setItem(eo,toNumber(localStorage.getItem(eo))+1),usesSegments(et)){var ei=this.keys.buildSplitsWithSegmentCountKey();localStorage.setItem(ei,toNumber(localStorage.getItem(ei))+1)}}}catch(et){this.log.error(iT+et)}},SplitsCacheInLocal.prototype.clear=function(){this.log.info(iT+"Flushing Splits data from localStorage");for(var et=localStorage.length,eo=[],ei=0;ei<et;ei++){var ea=localStorage.key(ei);null!=ea&&this.keys.isSplitsCacheKey(ea)&&eo.push(ea)}eo.forEach(function(et){localStorage.removeItem(et)}),this.hasSync=!1},SplitsCacheInLocal.prototype.addSplit=function(et,eo){try{var ei=this.keys.buildSplitKey(et),ea=localStorage.getItem(ei),eu=ea?JSON.parse(ea):null;return localStorage.setItem(ei,JSON.stringify(eo)),this._incrementCounts(eo),this._decrementCounts(eu),eu&&this.removeFromFlagSets(eu.name,eu.sets),this.addToFlagSets(eo),!0}catch(et){return this.log.error(iT+et),!1}},SplitsCacheInLocal.prototype.removeSplit=function(et){try{var eo=this.getSplit(et);return localStorage.removeItem(this.keys.buildSplitKey(et)),this._decrementCounts(eo),eo&&this.removeFromFlagSets(eo.name,eo.sets),!0}catch(et){return this.log.error(iT+et),!1}},SplitsCacheInLocal.prototype.getSplit=function(et){var eo=localStorage.getItem(this.keys.buildSplitKey(et));return eo&&JSON.parse(eo)},SplitsCacheInLocal.prototype.setChangeNumber=function(et){if(this.updateNewFilter){this.log.info(iT+"SDK key or feature flag filter criteria was modified. Updating cache");var eo=this.keys.buildHashKey();try{localStorage.setItem(eo,this.storageHash)}catch(et){this.log.error(iT+et)}this.updateNewFilter=!1}try{return localStorage.setItem(this.keys.buildSplitsTillKey(),et+""),localStorage.setItem(this.keys.buildLastUpdatedKey(),Date.now()+""),this.hasSync=!0,!0}catch(et){return this.log.error(iT+et),!1}},SplitsCacheInLocal.prototype.getChangeNumber=function(){var et=-1,eo=localStorage.getItem(this.keys.buildSplitsTillKey());return null!==eo?isNaNNumber(eo=parseInt(eo,10))?et:eo:et},SplitsCacheInLocal.prototype.getSplitNames=function(){for(var et=localStorage.length,eo=[],ei=0;ei<et;){var ea=localStorage.key(ei);null!=ea&&this.keys.isSplitKey(ea)&&eo.push(this.keys.extractKey(ea)),ei++}return eo},SplitsCacheInLocal.prototype.trafficTypeExists=function(et){var eo=toNumber(localStorage.getItem(this.keys.buildTrafficTypeKey(et)));return isFiniteNumber(eo)&&eo>0},SplitsCacheInLocal.prototype.usesSegments=function(){if(!this.hasSync)return!0;var et=localStorage.getItem(this.keys.buildSplitsWithSegmentCountKey()),eo=null===et?0:toNumber(et);return!isFiniteNumber(eo)||eo>0},SplitsCacheInLocal.prototype.checkCache=function(){return this.getChangeNumber()>-1},SplitsCacheInLocal.prototype._checkExpiration=function(et){var eo=localStorage.getItem(this.keys.buildLastUpdatedKey());null!==eo&&!isNaNNumber(eo=parseInt(eo,10))&&et&&eo<et&&this.clear()},SplitsCacheInLocal.prototype._checkFilterQuery=function(){var et=this.keys.buildHashKey();if(localStorage.getItem(et)!==this.storageHash)try{this.updateNewFilter=!0,this.checkCache()&&this.clear()}catch(et){this.log.error(iT+et)}},SplitsCacheInLocal.prototype.getNamesByFlagSets=function(et){var eo=this;return et.map(function(et){var ei=eo.keys.buildFlagSetKey(et),ea=localStorage.getItem(ei);return new ig(ea?JSON.parse(ea):[])})},SplitsCacheInLocal.prototype.addToFlagSets=function(et){var eo=this;et.sets&&et.sets.forEach(function(ei){if(!(eo.flagSetsFilter.length>0)||eo.flagSetsFilter.some(function(et){return et===ei})){var ea=eo.keys.buildFlagSetKey(ei),eu=localStorage.getItem(ea),ed=new ig(eu?JSON.parse(eu):[]);ed.add(et.name),localStorage.setItem(ea,JSON.stringify(setToArray(ed)))}})},SplitsCacheInLocal.prototype.removeFromFlagSets=function(et,eo){var ei=this;eo&&eo.forEach(function(eo){ei.removeNames(eo,et)})},SplitsCacheInLocal.prototype.removeNames=function(et,eo){var ei=this.keys.buildFlagSetKey(et),ea=localStorage.getItem(ei);if(ea){var eu=new ig(JSON.parse(ea));if(eu.delete(eo),0===eu.size){localStorage.removeItem(ei);return}localStorage.setItem(ei,JSON.stringify(setToArray(eu)))}},SplitsCacheInLocal}(iR),ik=function(){function AbstractSegmentsCacheSync(){}return AbstractSegmentsCacheSync.prototype.registerSegments=function(et){return!1},AbstractSegmentsCacheSync.prototype.setChangeNumber=function(et,eo){return!0},AbstractSegmentsCacheSync.prototype.getChangeNumber=function(et){return -1},AbstractSegmentsCacheSync.prototype.resetSegments=function(et){return!0},AbstractSegmentsCacheSync}(),iO=function(et){function MySegmentsCacheInLocal(eo,ei){var ea=et.call(this)||this;return ea.log=eo,ea.keys=ei,ea}return __extends(MySegmentsCacheInLocal,et),MySegmentsCacheInLocal.prototype.clear=function(){this.log.info(iT+"Flushing MySegments data from localStorage"),this.resetSegments([])},MySegmentsCacheInLocal.prototype.addToSegment=function(et){var eo=this.keys.buildSegmentNameKey(et);try{return localStorage.setItem(eo,iE),!0}catch(et){return this.log.error(iT+et),!1}},MySegmentsCacheInLocal.prototype.removeFromSegment=function(et){var eo=this.keys.buildSegmentNameKey(et);try{return localStorage.removeItem(eo),!0}catch(et){return this.log.error(iT+et),!1}},MySegmentsCacheInLocal.prototype.isInSegment=function(et){return localStorage.getItem(this.keys.buildSegmentNameKey(et))===iE},MySegmentsCacheInLocal.prototype.resetSegments=function(et){var eo,ei=this,ea=!1,eu=Object.keys(localStorage).reduce(function(eo,ea){var eu=ei.keys.extractSegmentName(ea);if(eu)eo.push(eu);else if(eu=ei.keys.extractOldSegmentKey(ea)){var ed=ei.keys.buildSegmentNameKey(eu);try{!localStorage.getItem(ed)&&et.indexOf(eu)>-1&&(localStorage.setItem(ed,iE),eo.push(eu)),localStorage.removeItem(ea)}catch(et){ei.log.error(et)}}return eo},[]);if(0===et.length&&eu.length===et.length)return ea;if(eu.length!==et.length)ea=!0,eu.forEach(function(et){return ei.removeFromSegment(et)}),et.forEach(function(et){return ei.addToSegment(et)});else{for(eo=0;eo<et.length&&-1!==eu.indexOf(et[eo]);eo++);eo<et.length&&(ea=!0,eu.forEach(function(et){return ei.removeFromSegment(et)}),et.forEach(function(et){return ei.addToSegment(et)}))}return ea},MySegmentsCacheInLocal.prototype.getRegisteredSegments=function(){var et=this;return Object.keys(localStorage).reduce(function(eo,ei){var ea=et.keys.extractSegmentName(ei);return ea&&eo.push(ea),eo},[])},MySegmentsCacheInLocal.prototype.getKeysCount=function(){return 1},MySegmentsCacheInLocal}(ik),ix=function(et){function MySegmentsCacheInMemory(){var eo=null!==et&&et.apply(this,arguments)||this;return eo.segmentCache={},eo}return __extends(MySegmentsCacheInMemory,et),MySegmentsCacheInMemory.prototype.clear=function(){this.segmentCache={}},MySegmentsCacheInMemory.prototype.addToSegment=function(et){return this.segmentCache[et]=!0,!0},MySegmentsCacheInMemory.prototype.removeFromSegment=function(et){return delete this.segmentCache[et],!0},MySegmentsCacheInMemory.prototype.isInSegment=function(et){return!0===this.segmentCache[et]},MySegmentsCacheInMemory.prototype.resetSegments=function(et){var eo,ei=this,ea=!1,eu=Object.keys(this.segmentCache);if(0===et.length&&eu.length===et.length)return ea;if(eu.length!==et.length)ea=!0,this.segmentCache={},et.forEach(function(et){ei.addToSegment(et)});else{for(eo=0;eo<et.length&&this.isInSegment(et[eo]);eo++);eo<et.length&&(ea=!0,this.segmentCache={},et.forEach(function(et){ei.addToSegment(et)}))}return ea},MySegmentsCacheInMemory.prototype.getRegisteredSegments=function(){return Object.keys(this.segmentCache)},MySegmentsCacheInMemory.prototype.getKeysCount=function(){return 1},MySegmentsCacheInMemory}(ik),iM=function(et){function SplitsCacheInMemory(eo){var ei=et.call(this)||this;return ei.splitsCache={},ei.ttCache={},ei.changeNumber=-1,ei.splitsWithSegmentsCount=0,ei.flagSetsCache={},ei.flagSetsFilter=eo?eo.groupedFilters.bySet:[],ei}return __extends(SplitsCacheInMemory,et),SplitsCacheInMemory.prototype.clear=function(){this.splitsCache={},this.ttCache={},this.changeNumber=-1,this.splitsWithSegmentsCount=0},SplitsCacheInMemory.prototype.addSplit=function(et,eo){var ei=this.getSplit(et);if(ei){var ea=ei.trafficTypeName;this.ttCache[ea]--,this.ttCache[ea]||delete this.ttCache[ea],this.removeFromFlagSets(ei.name,ei.sets),usesSegments(ei)&&this.splitsWithSegmentsCount--}if(!eo)return!1;this.splitsCache[et]=eo;var eu=eo.trafficTypeName;return this.ttCache[eu]=(this.ttCache[eu]||0)+1,this.addToFlagSets(eo),usesSegments(eo)&&this.splitsWithSegmentsCount++,!0},SplitsCacheInMemory.prototype.removeSplit=function(et){var eo=this.getSplit(et);if(!eo)return!1;delete this.splitsCache[et];var ei=eo.trafficTypeName;return this.ttCache[ei]--,this.ttCache[ei]||delete this.ttCache[ei],this.removeFromFlagSets(eo.name,eo.sets),usesSegments(eo)&&this.splitsWithSegmentsCount--,!0},SplitsCacheInMemory.prototype.getSplit=function(et){return this.splitsCache[et]||null},SplitsCacheInMemory.prototype.setChangeNumber=function(et){return this.changeNumber=et,!0},SplitsCacheInMemory.prototype.getChangeNumber=function(){return this.changeNumber},SplitsCacheInMemory.prototype.getSplitNames=function(){return Object.keys(this.splitsCache)},SplitsCacheInMemory.prototype.trafficTypeExists=function(et){return isFiniteNumber(this.ttCache[et])&&this.ttCache[et]>0},SplitsCacheInMemory.prototype.usesSegments=function(){return -1===this.getChangeNumber()||this.splitsWithSegmentsCount>0},SplitsCacheInMemory.prototype.getNamesByFlagSets=function(et){var eo=this;return et.map(function(et){return eo.flagSetsCache[et]||new ig})},SplitsCacheInMemory.prototype.addToFlagSets=function(et){var eo=this;et.sets&&et.sets.forEach(function(ei){(!(eo.flagSetsFilter.length>0)||eo.flagSetsFilter.some(function(et){return et===ei}))&&(eo.flagSetsCache[ei]||(eo.flagSetsCache[ei]=new ig([])),eo.flagSetsCache[ei].add(et.name))})},SplitsCacheInMemory.prototype.removeFromFlagSets=function(et,eo){var ei=this;eo&&eo.forEach(function(eo){ei.removeNames(eo,et)})},SplitsCacheInMemory.prototype.removeNames=function(et,eo){this.flagSetsCache[et]&&(this.flagSetsCache[et].delete(eo),0===this.flagSetsCache[et].size&&delete this.flagSetsCache[et])},SplitsCacheInMemory}(iR),iD="GOOGLE_ANALYTICS_TO_SPLIT",iU="SPLIT_TO_GOOGLE_ANALYTICS",iL=864e6,iN=0,iq=22,iB=1.5;function findLatencyIndex(et){var eo=Math.min(iq,Math.max(iN,Math.ceil(Math.log(et)/Math.log(iB))));return isNaNNumber(eo)?0:eo}var iF=20,ij=10;function newBuckets(){return[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}var iG=.001;function shouldRecordTelemetry(et){var eo=et.settings;return eo.mode!==nh&&(void 0===eo.core.key||Math.random()<=iG)}var iH=function(){function TelemetryCacheInMemory(et,eo){this.splits=et,this.segments=eo,this.e=!0,this.notReadyUsage=0,this.impressionStats=[0,0,0],this.eventStats=[0,0],this.lastSync={},this.httpErrors={},this.httpLatencies={},this.authRejections=0,this.tokenRefreshes=0,this.streamingEvents=[],this.tags=[],this.exceptions={},this.latencies={},this.updatesFromSSE={sp:0,ms:0}}return TelemetryCacheInMemory.prototype.isEmpty=function(){return this.e},TelemetryCacheInMemory.prototype.clear=function(){},TelemetryCacheInMemory.prototype.pop=function(){return this.e=!0,{lS:this.getLastSynchronization(),mL:this.popLatencies(),mE:this.popExceptions(),hE:this.popHttpErrors(),hL:this.popHttpLatencies(),tR:this.popTokenRefreshes(),aR:this.popAuthRejections(),iQ:this.getImpressionStats(nU),iDe:this.getImpressionStats(nN),iDr:this.getImpressionStats(nL),spC:this.splits&&this.splits.getSplitNames().length,seC:this.segments&&this.segments.getRegisteredSegments().length,skC:this.segments&&this.segments.getKeysCount(),sL:this.getSessionLength(),eQ:this.getEventStats(nU),eD:this.getEventStats(nL),sE:this.popStreamingEvents(),t:this.popTags(),ufs:this.popUpdatesFromSSE()}},TelemetryCacheInMemory.prototype.getTimeUntilReady=function(){return this.timeUntilReady},TelemetryCacheInMemory.prototype.recordTimeUntilReady=function(et){this.timeUntilReady=et},TelemetryCacheInMemory.prototype.getTimeUntilReadyFromCache=function(){return this.timeUntilReadyFromCache},TelemetryCacheInMemory.prototype.recordTimeUntilReadyFromCache=function(et){this.timeUntilReadyFromCache=et},TelemetryCacheInMemory.prototype.getNonReadyUsage=function(){return this.notReadyUsage},TelemetryCacheInMemory.prototype.recordNonReadyUsage=function(){this.notReadyUsage++},TelemetryCacheInMemory.prototype.getImpressionStats=function(et){return this.impressionStats[et]},TelemetryCacheInMemory.prototype.recordImpressionStats=function(et,eo){this.impressionStats[et]+=eo,this.e=!1},TelemetryCacheInMemory.prototype.getEventStats=function(et){return this.eventStats[et]},TelemetryCacheInMemory.prototype.recordEventStats=function(et,eo){this.eventStats[et]+=eo,this.e=!1},TelemetryCacheInMemory.prototype.getLastSynchronization=function(){return this.lastSync},TelemetryCacheInMemory.prototype.recordSuccessfulSync=function(et,eo){this.lastSync[et]=eo,this.e=!1},TelemetryCacheInMemory.prototype.popHttpErrors=function(){var et=this.httpErrors;return this.httpErrors={},et},TelemetryCacheInMemory.prototype.recordHttpError=function(et,eo){var ei=this.httpErrors[et]=this.httpErrors[et]||{};ei[eo]=(ei[eo]||0)+1,this.e=!1},TelemetryCacheInMemory.prototype.popHttpLatencies=function(){var et=this.httpLatencies;return this.httpLatencies={},et},TelemetryCacheInMemory.prototype.recordHttpLatency=function(et,eo){var ei=this.httpLatencies[et]=this.httpLatencies[et]||newBuckets();ei[findLatencyIndex(eo)]++,this.e=!1},TelemetryCacheInMemory.prototype.popAuthRejections=function(){var et=this.authRejections;return this.authRejections=0,et},TelemetryCacheInMemory.prototype.recordAuthRejections=function(){this.authRejections++,this.e=!1},TelemetryCacheInMemory.prototype.popTokenRefreshes=function(){var et=this.tokenRefreshes;return this.tokenRefreshes=0,et},TelemetryCacheInMemory.prototype.recordTokenRefreshes=function(){this.tokenRefreshes++,this.e=!1},TelemetryCacheInMemory.prototype.popStreamingEvents=function(){return this.streamingEvents.splice(0)},TelemetryCacheInMemory.prototype.recordStreamingEvents=function(et){this.streamingEvents.length<iF&&this.streamingEvents.push(et),this.e=!1},TelemetryCacheInMemory.prototype.popTags=function(){return this.tags.splice(0)},TelemetryCacheInMemory.prototype.addTag=function(et){this.tags.length<ij&&this.tags.push(et),this.e=!1},TelemetryCacheInMemory.prototype.getSessionLength=function(){return this.sessionLength},TelemetryCacheInMemory.prototype.recordSessionLength=function(et){this.sessionLength=et,this.e=!1},TelemetryCacheInMemory.prototype.popExceptions=function(){var et=this.exceptions;return this.exceptions={},et},TelemetryCacheInMemory.prototype.recordException=function(et){this.exceptions[et]=(this.exceptions[et]||0)+1,this.e=!1},TelemetryCacheInMemory.prototype.popLatencies=function(){var et=this.latencies;return this.latencies={},et},TelemetryCacheInMemory.prototype.recordLatency=function(et,eo){var ei=this.latencies[et]=this.latencies[et]||newBuckets();ei[findLatencyIndex(eo)]++,this.e=!1},TelemetryCacheInMemory.prototype.popUpdatesFromSSE=function(){var et=this.updatesFromSSE;return this.updatesFromSSE={sp:0,ms:0},et},TelemetryCacheInMemory.prototype.recordUpdatesFromSSE=function(et){this.updatesFromSSE[et]++,this.e=!1},TelemetryCacheInMemory}(),iK=function(){function UniqueKeysCacheInMemoryCS(et){void 0===et&&(et=ib),this.uniqueTrackerSize=0,this.uniqueKeysTracker={},this.maxStorage=et}return UniqueKeysCacheInMemoryCS.prototype.setOnFullQueueCb=function(et){this.onFullQueue=et},UniqueKeysCacheInMemoryCS.prototype.track=function(et,eo){this.uniqueKeysTracker[et]||(this.uniqueKeysTracker[et]=new ig);var ei=this.uniqueKeysTracker[et];!ei.has(eo)&&(ei.add(eo),this.uniqueTrackerSize++),this.uniqueTrackerSize>=this.maxStorage&&this.onFullQueue&&this.onFullQueue()},UniqueKeysCacheInMemoryCS.prototype.clear=function(){this.uniqueTrackerSize=0,this.uniqueKeysTracker={}},UniqueKeysCacheInMemoryCS.prototype.pop=function(){var et=this.uniqueKeysTracker;return this.clear(),this.fromUniqueKeysCollector(et)},UniqueKeysCacheInMemoryCS.prototype.isEmpty=function(){return 0===Object.keys(this.uniqueKeysTracker).length},UniqueKeysCacheInMemoryCS.prototype.fromUniqueKeysCollector=function(et){for(var eo=[],ei=Object.keys(et),ea=0;ea<ei.length;ea++){var eu=ei[ea],ed=setToArray(et[eu]),eh={k:eu,fs:ed};eo.push(eh)}return{keys:eo}},UniqueKeysCacheInMemoryCS}();function InMemoryStorageCS_InMemoryStorageCSFactory(et){var eo=et.settings,ei=eo.scheduler,ea=ei.impressionsQueueSize,eu=ei.eventsQueueSize,ed=eo.sync,eh=ed.impressionsMode,ep=ed.__splitFiltersValidation,ef=new iM(ep),em=new ix,eg={splits:ef,segments:em,impressions:new iy(ea),impressionCounts:eh!==nu?new iC:void 0,events:new i_(eu),telemetry:shouldRecordTelemetry(et)?new iH(ef,em):void 0,uniqueKeys:eh===nd?new iK:void 0,destroy:function(){this.splits.clear(),this.segments.clear(),this.impressions.clear(),this.impressionCounts&&this.impressionCounts.clear(),this.events.clear(),this.uniqueKeys&&this.uniqueKeys.clear()},shared:function(){return{splits:this.splits,segments:new ix,impressions:this.impressions,impressionCounts:this.impressionCounts,events:this.events,telemetry:this.telemetry,destroy:function(){this.splits=new iM(ep),this.segments.clear()}}}};if(et.settings.mode===nh){var noopTrack=function(){return!0};eg.impressions.track=noopTrack,eg.events.track=noopTrack,eg.impressionCounts&&(eg.impressionCounts.track=noopTrack),eg.uniqueKeys&&(eg.uniqueKeys.track=noopTrack)}return eg}function InLocalStorage(et){void 0===et&&(et={});var eo=validatePrefix(et.prefix);function InLocalStorageCSFactory(et){if(!isLocalStorageAvailable())return et.settings.log.warn(iT+"LocalStorage API is unavailable. Falling back to default MEMORY storage"),InMemoryStorageCS_InMemoryStorageCSFactory(et);var ei=et.settings,ea=et.settings,eu=ea.log,ed=ea.scheduler,eh=ed.impressionsQueueSize,ep=ed.eventsQueueSize,ef=ea.sync,em=ef.impressionsMode,eg=ef.__splitFiltersValidation,ey=getMatching(ei.core.key),eC=new iI(eo,ey),eS=Date.now()-iL,e_=new iP(ei,eC,eS),ew=new iO(eu,eC);return{splits:e_,segments:ew,impressions:new iy(eh),impressionCounts:em!==nu?new iC:void 0,events:new i_(ep),telemetry:shouldRecordTelemetry(et)?new iH(e_,ew):void 0,uniqueKeys:em===nd?new iK:void 0,destroy:function(){var et;this.splits=new iM(eg),this.segments=new ix,this.impressions.clear(),this.impressionCounts&&this.impressionCounts.clear(),this.events.clear(),null===(et=this.uniqueKeys)||void 0===et||et.clear()},shared:function(et){var ei=new iI(eo,et);return{splits:this.splits,segments:new iO(eu,ei),impressions:this.impressions,impressionCounts:this.impressionCounts,events:this.events,telemetry:this.telemetry,destroy:function(){this.splits=new iM(eg),this.segments=new ix}}}}}return InLocalStorageCSFactory.type=nv,InLocalStorageCSFactory}function thenable(et){return null!=et&&"function"==typeof et.then}function validateIfNotDestroyed(et,eo,ei){return!eo.isDestroyed()||(et.error(rO,[ei]),!1)}function validateIfOperational(et,eo,ei,ea){return!!(eo.isReady()||eo.isReadyFromCache())||(et.warn(tX,[ei,ea?" for feature flag "+ea.toString():""]),!1)}InMemoryStorageCS_InMemoryStorageCSFactory.type=ny;var iz="killed",iW="default rule",iV="definition not found",iJ="not ready",iY="exception",i$="archived",iZ="not in split";function validateSplitExistence(et,eo,ei,ea,eu){return!eo.isReady()||ea!==iV&&null!=ea||(et.warn(rn,[eu,ei]),!1)}function collectTreatments(et){var eo=et.conditions,ei=find(eo,function(et){return"ROLLOUT"===et.conditionType});return ei||(ei=eo[0]),ei?ei.partitions.map(function(et){return et.treatment}):[]}function objectToView(et){return et?{name:et.name,trafficType:et.trafficTypeName,killed:et.killed,changeNumber:et.changeNumber||0,treatments:collectTreatments(et),configs:et.configurations||{},sets:et.sets||[],defaultTreatment:et.defaultTreatment}:null}function objectsToViews(et){var eo=[];return et.forEach(function(et){var ei=objectToView(et);ei&&eo.push(ei)}),eo}function sdkManagerFactory(et,eo,ei){var ea=ei.readinessManager,eu=ei.sdkStatus,ed=et.log,eh=isConsumerMode(et.mode);return eF(Object.create(eu),{split:function(et){var ei=validateSplit(ed,et,nx);if(!validateIfNotDestroyed(ed,ea,nx)||!validateIfOperational(ed,ea,nx)||!ei)return eh?Promise.resolve(null):null;var eu=eo.getSplit(ei);return thenable(eu)?eu.catch(function(){return null}).then(function(et){return validateSplitExistence(ed,ea,ei,et,nx),objectToView(et)}):(validateSplitExistence(ed,ea,ei,eu,nx),objectToView(eu))},splits:function(){if(!validateIfNotDestroyed(ed,ea,nM)||!validateIfOperational(ed,ea,nM))return eh?Promise.resolve([]):[];var et=eo.getAll();return thenable(et)?et.catch(function(){return[]}).then(objectsToViews):objectsToViews(et)},names:function(){if(!validateIfNotDestroyed(ed,ea,nD)||!validateIfOperational(ed,ea,nD))return eh?Promise.resolve([]):[];var et=eo.getSplitNames();return thenable(et)?et.catch(function(){return[]}):et}})}var iQ=function(){function AttributesCacheInMemory(){this.attributesCache={}}return AttributesCacheInMemory.prototype.setAttribute=function(et,eo){return this.attributesCache[et]=eo,!0},AttributesCacheInMemory.prototype.getAttribute=function(et){return this.attributesCache[et]},AttributesCacheInMemory.prototype.setAttributes=function(et){return this.attributesCache=eF(this.attributesCache,et),!0},AttributesCacheInMemory.prototype.getAll=function(){return this.attributesCache},AttributesCacheInMemory.prototype.removeAttribute=function(et){return Object.keys(this.attributesCache).indexOf(et)>=0&&(delete this.attributesCache[et],!0)},AttributesCacheInMemory.prototype.clear=function(){return this.attributesCache={},!0},AttributesCacheInMemory}();function validateAttribute(et,eo,ei,ea){if(!isString(eo)||0===eo.length)return et.warn(ea+": you passed an invalid attribute name, attribute name must be a non-empty string."),!1;var eu=isString(ei),ed=isFiniteNumber(ei),eh=isBoolean(ei),ep=Array.isArray(ei);return!!eu||!!ed||!!eh||!!ep||(et.warn(ea+": you passed an invalid attribute value for "+eo+". Acceptable types are: string, number, boolean and array of strings."),!1)}function validateAttributes(et,eo,ei){return void 0==eo||isObject(eo)?eo:(et.error(rE,[ei,"attributes"]),!1)}function validateAttributesDeep(et,eo,ei){if(!validateAttributes(et,eo,ei))return!1;var ea=!0;return Object.keys(eo).forEach(function(eu){validateAttribute(et,eu,eo[eu],ei)||(ea=!1)}),ea}function clientAttributesDecoration(et,eo){var ei=new iQ,ea=eo.getTreatment,eu=eo.getTreatmentWithConfig,ed=eo.getTreatments,eh=eo.getTreatmentsWithConfig,ep=eo.getTreatmentsByFlagSets,ef=eo.getTreatmentsWithConfigByFlagSets,em=eo.getTreatmentsByFlagSet,eg=eo.getTreatmentsWithConfigByFlagSet,ey=eo.track;function combineAttributes(et){var eo=ei.getAll();return Object.keys(eo).length>0?eF({},eo,et):et}return eF(eo,{getTreatment:function(et,eo,ei){return ea(et,eo,combineAttributes(ei))},getTreatmentWithConfig:function(et,eo,ei){return eu(et,eo,combineAttributes(ei))},getTreatments:function(et,eo,ei){return ed(et,eo,combineAttributes(ei))},getTreatmentsWithConfig:function(et,eo,ei){return eh(et,eo,combineAttributes(ei))},getTreatmentsByFlagSets:function(et,eo,ei){return ep(et,eo,combineAttributes(ei))},getTreatmentsWithConfigByFlagSets:function(et,eo,ei){return ef(et,eo,combineAttributes(ei))},getTreatmentsByFlagSet:function(et,eo,ei){return em(et,eo,combineAttributes(ei))},getTreatmentsWithConfigByFlagSet:function(et,eo,ei){return eg(et,eo,combineAttributes(ei))},track:function(et,eo,ei,ea,eu){return ey(et,eo,ei,ea,eu)},setAttribute:function(eo,ea){var eu={};return eu[eo]=ea,!!validateAttributesDeep(et,eu,"setAttribute")&&(et.debug("stored "+ea+" for attribute "+eo),ei.setAttribute(eo,ea))},getAttribute:function(eo){return et.debug("retrieved attribute "+eo),ei.getAttribute(eo+"")},setAttributes:function(eo){return!!validateAttributesDeep(et,eo,"setAttributes")&&ei.setAttributes(eo)},getAttributes:function(){return ei.getAll()},removeAttribute:function(eo){return et.debug("removed attribute "+eo),ei.removeAttribute(eo+"")},clearAttributes:function(){return ei.clear()}})}function clientCSDecorator(et,eo,ei,ea){var eu=clientAttributesDecoration(et,eo);return eF(eu,{getTreatment:eu.getTreatment.bind(eu,ei),getTreatmentWithConfig:eu.getTreatmentWithConfig.bind(eu,ei),getTreatments:eu.getTreatments.bind(eu,ei),getTreatmentsWithConfig:eu.getTreatmentsWithConfig.bind(eu,ei),getTreatmentsByFlagSets:eu.getTreatmentsByFlagSets.bind(eu,ei),getTreatmentsWithConfigByFlagSets:eu.getTreatmentsWithConfigByFlagSets.bind(eu,ei),getTreatmentsByFlagSet:eu.getTreatmentsByFlagSet.bind(eu,ei),getTreatmentsWithConfigByFlagSet:eu.getTreatmentsWithConfigByFlagSet.bind(eu,ei),track:ea?eu.track.bind(eu,ei,ea):eu.track.bind(eu,ei),isClientSide:!0,key:ei,trafficType:ea})}var iX={UNDEFINED:0,ALL_KEYS:1,IN_SEGMENT:2,WHITELIST:3,EQUAL_TO:4,GREATER_THAN_OR_EQUAL_TO:5,LESS_THAN_OR_EQUAL_TO:6,BETWEEN:7,EQUAL_TO_SET:8,CONTAINS_ANY_OF_SET:9,CONTAINS_ALL_OF_SET:10,PART_OF_SET:11,ENDS_WITH:12,STARTS_WITH:13,CONTAINS_STRING:14,IN_SPLIT_TREATMENT:15,EQUAL_TO_BOOLEAN:16,MATCHES_STRING:17},i0={BOOLEAN:"BOOLEAN",STRING:"STRING",NUMBER:"NUMBER",SET:"SET",DATETIME:"DATETIME",NOT_SPECIFIED:"NOT_SPECIFIED"};function matcherTypesMapper(et){return iX[et]||iX.UNDEFINED}function segmentTransform(et){return et?et.segmentName:void 0}function whitelistTransform(et){return new ig(et.whitelist)}function setTransform(et){return et.whitelist}function numericTransform(et){return et.value}function zeroSinceHH(et){return new Date(et).setUTCHours(0,0,0,0)}function zeroSinceSS(et){return new Date(et).setUTCSeconds(0,0)}function matchersTransform(et){var eo=et.map(function(et){var eo=et.matcherType,ei=et.negate,ea=et.keySelector,eu=et.userDefinedSegmentMatcherData,ed=et.whitelistMatcherData,eh=et.unaryNumericMatcherData,ep=et.betweenMatcherData,ef=et.dependencyMatcherData,em=et.booleanMatcherData,eg=et.stringMatcherData,ey=ea&&ea.attribute,eC=matcherTypesMapper(eo),eS=i0.STRING,e_=void 0;return eC===iX.IN_SEGMENT?e_=segmentTransform(eu):eC===iX.WHITELIST?e_=whitelistTransform(ed):eC===iX.EQUAL_TO?(e_=numericTransform(eh),eS=i0.NUMBER,"DATETIME"===eh.dataType&&(e_=zeroSinceHH(e_),eS=i0.DATETIME)):eC===iX.GREATER_THAN_OR_EQUAL_TO||eC===iX.LESS_THAN_OR_EQUAL_TO?(e_=numericTransform(eh),eS=i0.NUMBER,"DATETIME"===eh.dataType&&(e_=zeroSinceSS(e_),eS=i0.DATETIME)):eC===iX.BETWEEN?(e_=ep,eS=i0.NUMBER,"DATETIME"===e_.dataType&&(e_.start=zeroSinceSS(e_.start),e_.end=zeroSinceSS(e_.end),eS=i0.DATETIME)):eC===iX.EQUAL_TO_SET||eC===iX.CONTAINS_ANY_OF_SET||eC===iX.CONTAINS_ALL_OF_SET||eC===iX.PART_OF_SET?(e_=setTransform(ed),eS=i0.SET):eC===iX.STARTS_WITH||eC===iX.ENDS_WITH||eC===iX.CONTAINS_STRING?e_=setTransform(ed):eC===iX.IN_SPLIT_TREATMENT?(e_=ef,eS=i0.NOT_SPECIFIED):eC===iX.EQUAL_TO_BOOLEAN?(eS=i0.BOOLEAN,e_=em):eC===iX.MATCHES_STRING&&(e_=eg),{attribute:ey,negate:ei,type:eC,value:e_,dataType:eS}});return -1===findIndex(eo,function(et){return et.type===iX.UNDEFINED})?eo:[]}var i2=function(){function Treatments(et,eo){if(100!==et[et.length-1])throw RangeError("Provided invalid dataset as input");this._ranges=et,this._treatments=eo}return Treatments.parse=function(et){var eo=et.reduce(function(et,eo){var ei=eo.size,ea=eo.treatment;return et.ranges.push(et.inc+=ei),et.treatments.push(ea),et},{inc:0,ranges:[],treatments:[]}),ei=eo.ranges,ea=eo.treatments;return new Treatments(ei,ea)},Treatments.prototype.getTreatmentFor=function(et){if(et<0||et>100)throw RangeError("Please provide a value between 0 and 100");var eo=findIndex(this._ranges,function(eo){return et<=eo});return this._treatments[eo]},Treatments}(),i4=[void 0,function(et){return function(eo){return et.debug(ez),null!=eo}},function(et,eo,ei){return function(ea){var eu=ei.segments.isInSegment(eo,ea);return thenable(eu)?eu.then(function(ei){return et.debug(e7,[eo,ea,eu]),ei}):et.debug(e7,[eo,ea,eu]),eu}},function(et,eo){return function(ei){var ea=eo.has(ei);return et.debug(ti,[ei,setToArray(eo).join(","),ea]),ea}},function(et,eo){return function(ei){var ea=ei===eo;return et.debug(eX,[ei,eo,ea]),ea}},function(et,eo){return function(ei){var ea=ei>=eo;return et.debug(e6,[ei,eo,ea]),ea}},function(et,eo){return function(ei){var ea=ei<=eo;return et.debug(e5,[ei,eo,ea]),ea}},function(et,eo){return function(ei){var ea=ei>=eo.start&&ei<=eo.end;return et.debug(eW,[ei,eo.start,eo.end,ea]),ea}},function(et,eo){return function(ei){for(var ea=ei.length===eo.length,_loop_1=function(et){0>findIndex(eo,function(eo){return eo===ei[et]})&&(ea=!1)},eu=0;eu<ei.length&&ea;eu++)_loop_1(eu);return et.debug(e0,[ei,eo,ea]),ea}},function(et,eo){return function(ei){for(var ea=!1,_loop_1=function(et){findIndex(ei,function(ei){return ei===eo[et]})>=0&&(ea=!0)},eu=0;eu<eo.length&&!ea;eu++)_loop_1(eu);return et.debug(eY,[ei,eo,ea]),ea}},function(et,eo){return function(ei){var ea=!0;if(ei.length<eo.length)ea=!1;else for(var _loop_1=function(et){0>findIndex(ei,function(ei){return ei===eo[et]})&&(ea=!1)},eu=0;eu<eo.length&&ea;eu++)_loop_1(eu);return et.debug(eJ,[ei,eo,ea]),ea}},function(et,eo){return function(ei){for(var ea=ei.length<=eo.length,_loop_1=function(et){0>findIndex(eo,function(eo){return eo===ei[et]})&&(ea=!1)},eu=0;eu<ei.length&&ea;eu++)_loop_1(eu);return et.debug(e8,[ei,eo,ea]),ea}},function(et,eo){return function(ei){var ea=eo.some(function(et){return endsWith(ei,et)});return et.debug(e4,[ei,eo,ea]),ea}},function(et,eo){return function(ei){var ea=eo.some(function(et){return startsWith(ei,et)});return et.debug(tn,[ei,eo,ea]),ea}},function(et,eo){return function(ei){var ea=eo.some(function(et){return isString(ei)&&ei.indexOf(et)>-1});return et.debug(e$,[ei,eo,ea]),ea}},function(et,eo,ei){var ea=eo.split,eu=eo.treatments;function checkTreatment(eo,ei,ea){var eu=!1;return Array.isArray(ei)&&(eu=-1!==ei.indexOf(eo.treatment)),et.debug(eZ,[ea,eo.treatment,eo.label,ea,ei,eu]),eu}return function(eo,ed){var eh=eo.key,ep=eo.attributes;et.debug(eQ,[ea,JSON.stringify(eh),ep?"\n attributes: "+JSON.stringify(ep):""]);var ef=ed(et,eh,ea,ep,ei);return thenable(ef)?ef.then(function(et){return checkTreatment(et,eu,ea)}):checkTreatment(ef,eu,ea)}},function(et,eo){return function(ei){var ea=eo===ei;return et.debug(eV,[eo,ei]),ea}},function(et,eo){return function(ei){try{ea=new RegExp(eo)}catch(ei){return et.debug(tr,[eo]),!1}var ea,eu=ea.test(ei);return et.debug(e9,[ei,eo,eu?"yes":"no"]),eu}}];function matcherFactory(et,eo,ei){var ea,eu=eo.type,ed=eo.value;return i4[eu]&&(ea=i4[eu](et,ed,ei)),ea}function sanitizeNumber(et){var eo=toNumber(et);return isNaN(eo)?void 0:eo}function sanitizeString(et){var eo=et;return isObject(et)&&(eo=et.matchingKey?et.matchingKey:void 0),lang_toString(eo)||void 0}function sanitizeArray(et){var eo=Array.isArray(et)?uniq(et.map(function(et){return et+""})):[];return eo.length?eo:void 0}function sanitizeBoolean(et){if(!0===et||!1===et)return et;if("string"==typeof et){var eo=et.toLocaleLowerCase();if("true"===eo)return!0;if("false"===eo)return!1}}function dependencyProcessor(et,eo){return{key:et,attributes:eo}}function getProcessingFunction(et,eo){switch(et){case iX.EQUAL_TO:return"DATETIME"===eo?zeroSinceHH:void 0;case iX.GREATER_THAN_OR_EQUAL_TO:case iX.LESS_THAN_OR_EQUAL_TO:case iX.BETWEEN:return"DATETIME"===eo?zeroSinceSS:void 0;case iX.IN_SPLIT_TREATMENT:return dependencyProcessor;default:return}}function sanitize(et,eo,ei,ea,eu){var ed,eh=getProcessingFunction(eo,ea);switch(ea){case i0.NUMBER:case i0.DATETIME:ed=sanitizeNumber(ei);break;case i0.STRING:ed=sanitizeString(ei);break;case i0.SET:ed=sanitizeArray(ei);break;case i0.BOOLEAN:ed=sanitizeBoolean(ei);break;case i0.NOT_SPECIFIED:ed=ei;break;default:ed=void 0}return eh&&(ed=eh(ed,eu)),et.debug(ts,[ei,ea,ed instanceof Object?JSON.stringify(ed):ed]),ed}function parseValue(et,eo,ei,ea){var eu=void 0;return ei?ea?(eu=ea[ei],et.debug(ta,[ei,eu])):et.warn(tZ,[ei]):eu=eo,eu}function sanitizeValue(et,eo,ei,ea){var eu=ei.attribute,ed=parseValue(et,eo,eu,ea),eh=sanitize(et,ei.type,ed,ei.dataType,ea);if(void 0!==eh)return eh;et.warn(t$,[ed+(eu?" for attribute "+eu:"")])}function getTreatment(et,eo,ei,ea){var eu=bucket(eo,ei),ed=ea.getTreatmentFor(eu);return et.debug(eK,[eu,eo,ei,ed]),ed}function shouldApplyRollout(et,eo,ei){return!(et<100&&bucket(eo,ei)>et)}function match(et,eo,ei,ea,eu,ed){if(eo)return{treatment:getTreatment(et,ei,ea,eu),label:ed}}function conditionContext(et,eo,ei,ea,eu){return function(ed,eh,ep,ef,em,eg){if("ROLLOUT"===eu&&!shouldApplyRollout(ep,ed.bucketingKey,ef))return{treatment:void 0,label:iZ};var ey=eo(ed,em,eg);return thenable(ey)?ey.then(function(eo){return match(et,eo,ed.bucketingKey,eh,ei,ea)}):match(et,ey,ed.bucketingKey,eh,ei,ea)}}function ifElseIfCombinerContext(et,eo){function unexpectedInputHandler(){return et.error(ry),{treatment:nn,label:iY}}function computeTreatment(eo){for(var ei=eo.length,ea=0;ea<ei;ea++){var eu=eo[ea];if(void 0!==eu)return et.debug(eG,[eu.treatment]),eu}et.debug(eH)}function ifElseIfCombiner(et,ei,ea,eu,ed,eh){var ep=eo.map(function(eo){return eo(et,ei,ea,eu,ed,eh)});return -1!==findIndex(ep,thenable)?Promise.all(ep).then(function(et){return computeTreatment(et)}):computeTreatment(ep)}return!Array.isArray(eo)||Array.isArray(eo)&&0===eo.length?unexpectedInputHandler:ifElseIfCombiner}function andCombinerContext(et,eo){function andResults(eo){var ei=eo.every(function(et){return et});return et.debug(ej,[ei]),ei}return function(){for(var et=[],ei=0;ei<arguments.length;ei++)et[ei]=arguments[ei];var ea=eo.map(function(eo){return eo.apply(void 0,et)});return -1!==findIndex(ea,thenable)?Promise.all(ea).then(andResults):andResults(ea)}}function parser(et,eo,ei){for(var ea=[],eu=0;eu<eo.length;eu++){var ed=eo[eu],eh=ed.matcherGroup,ep=ed.partitions,ef=ed.label,em=ed.conditionType,eg=matchersTransform(eh.matchers).map(function(eo){var ea=matcherFactory(et,eo,ei);return function(ei,eu,ed){var eh=sanitizeValue(et,ei,eo,eu),ep=void 0!==eh&&!!ea&&ea(eh,ed);return thenable(ep)?ep.then(function(et){return!!(et^eo.negate)}):!!(ep^eo.negate)}});if(0===eg.length){ea=[];break}ea.push(conditionContext(et,andCombinerContext(et,eg),i2.parse(ep),ef,em))}return ifElseIfCombinerContext(et,ea)}function evaluationResult(et,eo){return{treatment:get(et,"treatment",eo),label:get(et,"label",iW)}}var i3=function(){function Engine(et,eo){this.baseInfo=et,this.evaluator=eo,"string"!=typeof this.baseInfo.defaultTreatment&&(this.baseInfo.defaultTreatment=nn)}return Engine.parse=function(et,eo,ei){var ea=parser(et,eo.conditions,ei);return new Engine(eo,ea)},Engine.prototype.getKey=function(){return this.baseInfo.name},Engine.prototype.getTreatment=function(et,eo,ei){var ea,eu,ed,eh=this.baseInfo,ep=eh.killed,ef=eh.seed,em=eh.defaultTreatment,eg=eh.trafficAllocation,ey=eh.trafficAllocationSeed;try{ea=keyParser(et)}catch(et){return{treatment:nn,label:iY}}if(this.isGarbage())eu=nn,ed=i$;else if(ep)eu=em,ed=iz;else{var eC=this.evaluator(ea,ef,eg,ey,eo,ei);return thenable(eC)?eC.then(function(et){return evaluationResult(et,em)}):evaluationResult(eC,em)}return{treatment:eu,label:ed}},Engine.prototype.isGarbage=function(){return"ARCHIVED"===this.baseInfo.status},Engine.prototype.getChangeNumber=function(){return this.baseInfo.changeNumber},Engine}(),i6={treatment:nn,label:iY,config:null};function treatmentsException(et){var eo={};return et.forEach(function(et){eo[et]=i6}),eo}function evaluateFeature(et,eo,ei,ea,eu){var ed;try{ed=eu.splits.getSplit(ei)}catch(et){return i6}return thenable(ed)?ed.then(function(ei){return getEvaluation(et,ei,eo,ea,eu)}).catch(function(){return i6}):getEvaluation(et,ed,eo,ea,eu)}function evaluateFeatures(et,eo,ei,ea,eu){var ed;try{ed=eu.splits.getSplits(ei)}catch(et){return treatmentsException(ei)}return thenable(ed)?ed.then(function(ed){return getEvaluations(et,ei,ed,eo,ea,eu)}).catch(function(){return treatmentsException(ei)}):getEvaluations(et,ei,ed,eo,ea,eu)}function evaluateFeaturesByFlagSets(et,eo,ei,ea,eu,ed){var eh;function evaluate(eh){for(var ep=new ig,ef=0;ef<ei.length;ef++){var em=eh[ef];em.size?ep=returnSetsUnion(ep,em):et.warn(rg,[ed,ei[ef]])}return ep.size?evaluateFeatures(et,eo,setToArray(ep),ea,eu):{}}try{eh=eu.splits.getNamesByFlagSets(ei)}catch(et){return{}}return thenable(eh)?eh.then(function(et){return evaluate(et)}).catch(function(){return{}}):evaluate(eh)}function getEvaluation(et,eo,ei,ea,eu){var ed={treatment:nn,label:iV,config:null};if(eo){var eh=i3.parse(et,eo,eu);if(thenable(ed=eh.getTreatment(ei,ea,evaluateFeature)))return ed.then(function(et){return et.changeNumber=eh.getChangeNumber(),et.config=eo.configurations&&eo.configurations[et.treatment]||null,et});ed.changeNumber=eh.getChangeNumber(),ed.config=eo.configurations&&eo.configurations[ed.treatment]||null}return ed}function getEvaluations(et,eo,ei,ea,eu,ed){var eh={},ep=[];return eo.forEach(function(eo){var ef=getEvaluation(et,ei[eo],ea,eu,ed);thenable(ef)?ep.push(ef.then(function(et){eh[eo]=et})):eh[eo]=ef}),ep.length>0?Promise.all(ep).then(function(){return eh}):eh}function logTTExistenceWarning(et,eo,ei){et.warn(ri,[ei,eo])}function validateTrafficTypeExistence(et,eo,ei,ea,eu,ed){if(!eo.isReady()||ea===nh)return!0;var eh=ei.trafficTypeExists(eu);return thenable(eh)?eh.then(function(eo){return eo||logTTExistenceWarning(et,eu,ed),eo}):(eh||logTTExistenceWarning(et,eu,ed),eh)}var i5={treatment:nn,label:iJ};function treatmentsNotReady(et){var eo={};return et.forEach(function(et){eo[et]=i5}),eo}function clientFactory(et){var eo=et.sdkReadinessManager.readinessManager,ei=et.storage,ea=et.settings,eu=et.impressionsTracker,ed=et.eventTracker,eh=et.telemetryTracker,ep=ea.log,ef=ea.mode,em=isConsumerMode(ef);function getTreatment(et,ea,ed,ef,eg){void 0===ef&&(ef=!1),void 0===eg&&(eg=nw);var ey=eh.trackEval(ef?n0:nQ),wrapUp=function(eo){var ei=[],eh=processEvaluation(eo,ea,et,ed,ef,eg,ei);return eu.track(ei,ed),ey(ei[0]&&ei[0].label),eh},eC=eo.isReady()||eo.isReadyFromCache()?evaluateFeature(ep,et,ea,ed,ei):em?Promise.resolve(i5):i5;return thenable(eC)?eC.then(function(et){return wrapUp(et)}):wrapUp(eC)}function getTreatmentWithConfig(et,eo,ei){return getTreatment(et,eo,ei,!0,nI)}function getTreatments(et,ea,ed,ef,eg){void 0===ef&&(ef=!1),void 0===eg&&(eg=nA);var ey=eh.trackEval(ef?n1:nX),wrapUp=function(eo){var ei=[],ea={};return Object.keys(eo).forEach(function(eu){ea[eu]=processEvaluation(eo[eu],eu,et,ed,ef,eg,ei)}),eu.track(ei,ed),ey(ei[0]&&ei[0].label),ea},eC=eo.isReady()||eo.isReadyFromCache()?evaluateFeatures(ep,et,ea,ed,ei):em?Promise.resolve(treatmentsNotReady(ea)):treatmentsNotReady(ea);return thenable(eC)?eC.then(function(et){return wrapUp(et)}):wrapUp(eC)}function getTreatmentsWithConfig(et,eo,ei){return getTreatments(et,eo,ei,!0,nR)}function getTreatmentsByFlagSets(et,ea,ed,ef,eg,ey){void 0===ef&&(ef=!1),void 0===eg&&(eg=n4),void 0===ey&&(ey=nE);var eC=eh.trackEval(eg),wrapUp=function(eo){var ei=[],ea={},eh=eo;return Object.keys(eh).forEach(function(eo){ea[eo]=processEvaluation(eh[eo],eo,et,ed,ef,ey,ei)}),eu.track(ei,ed),eC(ei[0]&&ei[0].label),ea},eS=eo.isReady()||eo.isReadyFromCache()?evaluateFeaturesByFlagSets(ep,et,ea,ed,ei,ey):em?Promise.resolve({}):{};return thenable(eS)?eS.then(function(et){return wrapUp(et)}):wrapUp(eS)}function getTreatmentsWithConfigByFlagSets(et,eo,ei){return getTreatmentsByFlagSets(et,eo,ei,!0,n6,nk)}function getTreatmentsByFlagSet(et,eo,ei){return getTreatmentsByFlagSets(et,[eo],ei,!1,n2,nT)}function getTreatmentsWithConfigByFlagSet(et,eo,ei){return getTreatmentsByFlagSets(et,[eo],ei,!0,n3,nP)}function processEvaluation(et,ei,ea,eu,ed,eh,ef){var em=getMatching(ea),eg=getBucketing(ea),ey=et.treatment,eC=et.label,eS=et.changeNumber,e_=et.config,ew=void 0===e_?null:e_;return(ep.info(tT,[ei,em,ey,eC]),validateSplitExistence(ep,eo,ei,eC,eh)&&(ep.info(tE),ef.push({feature:ei,keyName:em,treatment:ey,time:Date.now(),bucketingKey:eg,label:eC,changeNumber:eS})),ed)?{treatment:ey,config:ew}:ey}return{getTreatment:getTreatment,getTreatmentWithConfig:getTreatmentWithConfig,getTreatments:getTreatments,getTreatmentsWithConfig:getTreatmentsWithConfig,getTreatmentsByFlagSets:getTreatmentsByFlagSets,getTreatmentsWithConfigByFlagSets:getTreatmentsWithConfigByFlagSets,getTreatmentsByFlagSet:getTreatmentsByFlagSet,getTreatmentsWithConfigByFlagSet:getTreatmentsWithConfigByFlagSet,track:function(et,ea,eu,em,eg,ey){void 0===ey&&(ey=1024);var eC=eh.trackEval(n5),eS=getMatching(et),e_={eventTypeId:eu,trafficTypeName:ea,value:em,timestamp:Date.now(),key:eS,properties:eg};validateTrafficTypeExistence(ep,eo,ei.splits,ef,ea,nO);var ew=ed.track(e_,ey);return thenable(ew)?ew.then(function(et){return eC(),et}):(eC(),ew)},isClientSide:!1}}var i8=/^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/,i7="event_type";function validateEvent(et,eo,ei){if(void 0==eo)et.error(rx,[ei,i7]);else if(isString(eo)){if(0===eo.length)et.error(rL,[ei,i7]);else{if(i8.test(eo))return eo;et.error(rT,[ei,eo])}}else et.error(rU,[ei,i7]);return!1}function validateEventValue(et,eo,ei){return isFiniteNumber(eo)||void 0==eo?eo:(et.error(rk,[ei]),!1)}var i9={NULL:0,STRING:2,BOOLEAN:4,NUMBER:8},an=300,ao=32768,ai=1024;function validateEventProperties(et,eo,ei){if(void 0==eo)return{properties:null,size:ai};if(!isObject(eo))return et.error(rE,[ei,"properties"]),{properties:!1,size:ai};var ea=Object.keys(eo),eu=eF({},eo),ed={properties:eu,size:ai};ea.length>an&&et.warn(t7,[ei]);for(var eh=0;eh<ea.length;eh++){ed.size+=ea[eh].length*i9.STRING;var ep=eu[ea[eh]],ef=isString(ep),em=isFiniteNumber(ep),eg=isBoolean(ep),ey=null===ep;if(ef||em||eg||ey||(eu[ea[eh]]=null,ep=null,ey=!0,et.warn(t8,[ei,ea[eh]])),ey?ed.size+=i9.NULL:em?ed.size+=i9.NUMBER:eg?ed.size+=i9.BOOLEAN:ef&&(ed.size+=ep.length*i9.STRING),ed.size>ao){et.error(rP,[ei]),ed.properties=!1;break}}return ed}function clientInputValidationDecorator(et,eo,ei){var ea=et.log,eu=isConsumerMode(et.mode);function validateEvaluationParams(eo,eu,ed,eh,ep){var ef=startsWith(eh,nA),em=validateKey(ea,eo,eh),eg=!1,ey=[];eu&&(eg=ef?validateSplits(ea,eu,eh):validateSplit(ea,eu,eh));var eC=validateAttributes(ea,ed,eh),eS=validateIfNotDestroyed(ea,ei,eh);return ep&&(ey=validateFlagSets(ea,eh,ep,et.sync.__splitFiltersValidation.groupedFilters.bySet)),validateIfOperational(ea,ei,eh,eg),{valid:eS&&em&&(eg||ey.length>0)&&!1!==eC,key:em,splitOrSplits:eg,flagSetOrFlagSets:ey,attributes:eC}}function wrapResult(et){return eu?Promise.resolve(et):et}return{getTreatment:function(et,ei,ea){var eu=validateEvaluationParams(et,ei,ea,nw);return eu.valid?eo.getTreatment(eu.key,eu.splitOrSplits,eu.attributes):wrapResult(nn)},getTreatmentWithConfig:function(et,ei,ea){var eu=validateEvaluationParams(et,ei,ea,nI);return eu.valid?eo.getTreatmentWithConfig(eu.key,eu.splitOrSplits,eu.attributes):wrapResult(eF({},no))},getTreatments:function(et,ei,ea){var eu=validateEvaluationParams(et,ei,ea,nA);if(eu.valid)return eo.getTreatments(eu.key,eu.splitOrSplits,eu.attributes);var ed={};return eu.splitOrSplits&&eu.splitOrSplits.forEach(function(et){return ed[et]=nn}),wrapResult(ed)},getTreatmentsWithConfig:function(et,ei,ea){var eu=validateEvaluationParams(et,ei,ea,nR);if(eu.valid)return eo.getTreatmentsWithConfig(eu.key,eu.splitOrSplits,eu.attributes);var ed={};return eu.splitOrSplits&&eu.splitOrSplits.forEach(function(et){return ed[et]=eF({},no)}),wrapResult(ed)},getTreatmentsByFlagSets:function(et,ei,ea){var eu=validateEvaluationParams(et,void 0,ea,nE,ei);return eu.valid?eo.getTreatmentsByFlagSets(eu.key,eu.flagSetOrFlagSets,eu.attributes):wrapResult({})},getTreatmentsWithConfigByFlagSets:function(et,ei,ea){var eu=validateEvaluationParams(et,void 0,ea,nk,ei);return eu.valid?eo.getTreatmentsWithConfigByFlagSets(eu.key,eu.flagSetOrFlagSets,eu.attributes):wrapResult({})},getTreatmentsByFlagSet:function(et,ei,ea){var eu=validateEvaluationParams(et,void 0,ea,nT,[ei]);return eu.valid?eo.getTreatmentsByFlagSet(eu.key,eu.flagSetOrFlagSets[0],eu.attributes):wrapResult({})},getTreatmentsWithConfigByFlagSet:function(et,ei,ea){var eu=validateEvaluationParams(et,void 0,ea,nP,[ei]);return eu.valid?eo.getTreatmentsWithConfigByFlagSet(eu.key,eu.flagSetOrFlagSets[0],eu.attributes):wrapResult({})},track:function(et,ed,eh,ep,ef){var em=validateKey(ea,et,nO),eg=validateTrafficType(ea,ed,nO),ey=validateEvent(ea,eh,nO),eC=validateEventValue(ea,ep,nO),eS=validateEventProperties(ea,ef,nO),e_=eS.properties,ew=eS.size;return validateIfNotDestroyed(ea,ei,nO)&&em&&eg&&ey&&!1!==eC&&!1!==e_?eo.track(em,eg,ey,eC,e_,ew):!!eu&&Promise.resolve(!1)}}}var aa=1e3;function sdkClientFactory(et,eo){var ei=et.sdkReadinessManager,ea=et.syncManager,eu=et.storage,ed=et.signalListener,eh=et.settings,ep=et.telemetryTracker,ef=et.uniqueKeysTracker,em=0;function __cooldown(et,eo){var ei=Date.now(),ea=ei-em;return ea<eo?(eh.log.warn("Flush cooldown, remaining time "+(eo-ea)/1e3+" seconds"),Promise.resolve()):(em=ei,et())}function __flush(){return ea?ea.flush():Promise.resolve()}return eF(Object.create(ei.sdkStatus),clientInputValidationDecorator(eh,clientFactory(et),ei.readinessManager),{flush:function(){return __cooldown(__flush,aa)},destroy:function(){return ei.readinessManager.destroy(),eo||ep.sessionLength(),ea&&ea.stop(),__flush().then(function(){return ed&&ed.stop(),eo||releaseApiKey(eh.core.authorizationKey),ef&&ef.stop(),eu.destroy()})}})}function buildInstanceId(et,eo){return(et.matchingKey?et.matchingKey:et)+"-"+(et.bucketingKey?et.bucketingKey:et)+"-"+(void 0!==eo?eo:"")}var ac="Client instantiation";function sdkClientMethodCSFactory(et){var eo=et.storage,ei=et.syncManager,ea=et.sdkReadinessManager,eu=et.settings,ed=eu.core,eh=ed.key,ep=ed.trafficType,ef=eu.startup.readyTimeout,em=eu.log,eg=clientCSDecorator(em,sdkClientFactory(et),eh,ep),ey=buildInstanceId(keyParser(eh),ep),eC={};return eC[ey]=eg,function(eu,ed){if(void 0===eu)return em.debug(td),eg;var eh,ep=validateKey(em,eu,"Shared "+ac);if(!1===ep)throw Error("Shared Client needs a valid key.");if(void 0!==ed&&!1===(eh=validateTrafficType(em,ed,"Shared "+ac)))throw Error("Shared Client needs a valid traffic type or no traffic type at all.");var ey=buildInstanceId(ep,eh);if(eC[ey])em.debug(tp);else{var eS=getMatching(ep),e_=ea.shared(ef),ew=eo.shared&&eo.shared(eS,function(et){if(et){e_.readinessManager.timeout();return}e_.readinessManager.segments.emit(o_)}),eA=ei&&ew&&ei.shared(eS,e_.readinessManager,ew);eC[ey]=clientCSDecorator(em,sdkClientFactory(eF({},et,{sdkReadinessManager:e_,storage:ew||eo,syncManager:eA,signalListener:void 0}),!0),ep,eh),eA&&eA.start(),em.info(tP)}return eC[ey]}}var au=function(){function MapPoly(et){var eo=this;this.__mapKeysData__=[],this.__mapValuesData__=[],Array.isArray(et)&&et.forEach(function(et){eo.set(et[0],et[1])})}return MapPoly.prototype.clear=function(){this.__mapKeysData__.length&&(this.__mapKeysData__.length=0,this.__mapValuesData__.length=0)},MapPoly.prototype.delete=function(et){var eo=this.__mapKeysData__.indexOf(et);return -1!==eo&&(this.__mapKeysData__.splice(eo,1),this.__mapValuesData__.splice(eo,1),!0)},MapPoly.prototype.forEach=function(et,eo){for(var ei=0;ei<this.__mapKeysData__.length;ei++)et.call(eo,this.__mapValuesData__[ei],this.__mapKeysData__[ei],this)},MapPoly.prototype.get=function(et){var eo=this.__mapKeysData__.indexOf(et);if(-1!==eo)return this.__mapValuesData__[eo]},MapPoly.prototype.has=function(et){return -1!==this.__mapKeysData__.indexOf(et)},MapPoly.prototype.set=function(et,eo){var ei=this.__mapKeysData__.indexOf(et);return -1===ei&&(ei=this.__mapKeysData__.push(et)-1),this.__mapValuesData__[ei]=eo,this},Object.defineProperty(MapPoly.prototype,"size",{get:function(){return this.__mapKeysData__.length},enumerable:!1,configurable:!0}),MapPoly}(),al=function(){return"function"==typeof Array.from&&"function"==typeof Map&&Map.prototype&&Map.prototype.values?Map:au}(),ad=function(){return function(et,eo,ei,ea){this.list=ea,this.value=et,eo?(eo.next=this,this.prev=eo):this.prev=null,ei?(ei.prev=this,this.next=ei):this.next=null}}(),ah=function(){function LinkedList(){this.tail=null,this.head=null,this.length=0}return LinkedList.prototype.removeNode=function(et){if(et&&et instanceof ad){if(et.list!==this)throw Error("removing node which does not belong to this list");var eo=et.next,ei=et.prev;return eo&&(eo.prev=ei),ei&&(ei.next=eo),et===this.head&&(this.head=eo),et===this.tail&&(this.tail=ei),et.list.length--,et.next=null,et.prev=null,et.list=null,eo}},LinkedList.prototype.unshiftNode=function(et){if(et&&et instanceof ad&&et!==this.head){et.list&&et.list.removeNode(et);var eo=this.head;et.list=this,et.next=eo,eo&&(eo.prev=et),this.head=et,this.tail||(this.tail=et),this.length++}},LinkedList.prototype.unshift=function(){for(var et=0,eo=arguments.length;et<eo;et++)this.head=new ad(arguments[et],null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},LinkedList}(),ap=function(){function LRUCache(et){this.maxLen=et||1,this.items=new al,this.lru=new ah}return LRUCache.prototype.get=function(et){var eo=this.items.get(et);if(eo&&eo instanceof ad)return this.lru.unshiftNode(eo),eo.value.value},LRUCache.prototype.set=function(et,eo){var ei=this.items.get(et);if(ei){if(!(ei instanceof ad))return!1;this.lru.unshiftNode(ei),this.lru.head.value.value=eo}else{if(this.lru.length===this.maxLen){var ea=this.lru.tail;if(!ea)return!1;this.items.delete(ea.value.key),this.lru.removeNode(this.lru.tail)}this.lru.unshift({key:et,value:eo}),this.items.set(et,this.lru.head)}return!0},LRUCache}(),af=function(){function ImpressionObserver(et,eo){this.cache=new ap(et),this.hasher=eo}return ImpressionObserver.prototype.testAndSet=function(et){var eo=this.hasher(et),ei=this.cache.get(eo);return this.cache.set(eo,et.time),ei},ImpressionObserver}();function buildKey(et){return et.keyName+":"+et.feature+":"+et.treatment+":"+et.label+":"+et.changeNumber}function hashImpression32(et){return hash(buildKey(et))}var am=500;function impressionObserverCSFactory(){return new af(am,hashImpression32)}function pluggableIntegrationsManagerFactory(et,eo){var ei=[];if(et.forEach(function(et){var ea=et(eo);ea&&ea.queue&&ei.push(ea)}),0!==ei.length)return{handleImpression:function(et){ei.forEach(function(eo){return eo.queue({type:ni,payload:et})})},handleEvent:function(et){ei.forEach(function(eo){return eo.queue({type:nc,payload:et})})}}}var ag="ga-to-split: ",ay="ga-to-split:mapper";function providePlugin(et,eo,ei,ea,eu,ed){var eh=et.GoogleAnalyticsObject||"ga";et[eh]=et[eh]||function(){(et[eh].q=et[eh].q||[]).push(arguments)},et[eh]("provide",eo,ei);var ep=et[eh].q&&et[eh].q.push!==[].push;eu&&!ep&&ea.error(ag+"integration is configured to autorequire the splitTracker plugin, but the necessary script does not seem to have run. Please check the docs."),ed&&ep&&ed.addTag("integration:ga-autorequire")}var av=function(et){return function(eo){var ei=eo.get("hitType"),ea=eo.get(et.eventTypeId[ei]||"hitType"),eu=eo.get(et.eventValue[ei]),ed={},eh=et.eventProperties[ei];if(eh)for(var ep=0;ep<eh.length;ep++){var ef=eo.get(eh[ep]);void 0!==ef&&(ed[eh[ep]]=ef)}return{eventTypeId:ea,value:eu,properties:ed,timestamp:Date.now()}}}({eventTypeId:{event:"eventAction",social:"socialAction"},eventValue:{event:"eventValue",timing:"timingValue"},eventProperties:{pageview:["page"],screenview:["screenName"],event:["eventCategory","eventLabel"],social:["socialNetwork","socialTarget"],timing:["timingCategory","timingVar","timingLabel"],exception:["exDescription","exFatal"]}}),ab="ga";function validateIdentities(et){return Array.isArray(et)?uniqAsStrings(et).filter(function(et){if(!et)return!1;var eo=et.key,ei=et.trafficType;return!!((isString(eo)||isFiniteNumber(eo))&&isString(ei))}):[]}function validateEventData(et,eo){return!!validateEvent(et,eo.eventTypeId,ay)&&!1!==validateEventValue(et,eo.value,ay)&&!1!==validateEventProperties(et,eo.properties,ay).properties&&(!eo.timestamp||!!isFiniteNumber(eo.timestamp))&&(!eo.key||!1!==validateKey(et,eo.key,ay))&&(!eo.trafficTypeName||!1!==validateTrafficType(et,eo.trafficTypeName,ay))}var aC=/^[^a-zA-Z0-9]+/,aS=/[^-_.:a-zA-Z0-9]+/g;function fixEventTypeId(et,eo){if(!isString(eo)||0===eo.length)return eo;var ei=eo.replace(aC,"").replace(aS,"_"),ea=ei.slice(0,80);return ea.length<ei.length&&et.warn(ag+"EventTypeId was truncated because it cannot be more than 80 characters long."),ea}function GaToSplit(et,eo){var ei=eo.storage,ea=eo.settings,eu=ea.core,ed=ea.log,eh=eo.telemetryTracker,ep={prefix:ab,identities:eu.key&&eu.trafficType?[{key:eu.key,trafficType:eu.trafficType}]:void 0},ef=function(){return function(eo,ea){var eu=eF({},ep,et,ea);this.tracker=eo;var eh=validateIdentities(eu.identities);if(0===eh.length){ed.warn(ag+"No valid identities were provided. Please check that you are passing a valid list of identities or providing a traffic type at the SDK configuration.");return}var ef=eh.length-eu.identities.length;ef&&ed.warn(ag+(ef+" identities were discarded because they are invalid or duplicated. Identities must be an array of objects with key and trafficType.")),eu.identities=eh,isString(eu.prefix)||(ed.warn(ag+"The provided `prefix` was ignored since it is invalid. Please check that you are passing a string object as `prefix`."),eu.prefix=void 0);var em=eo.get("sendHitTask");eo.set("sendHitTask",function(et){if(em(et),!(!1===eu.hits||et.get("splitHit"))){try{if(eu.filter&&!eu.filter(et))return}catch(et){ed.warn(ag+"custom filter threw: "+et);return}var eo=av(et);if(eu.mapper){try{eo=eu.mapper(et,eo)}catch(et){ed.warn(ag+"custom mapper threw: "+et);return}if(!eo)return}eu.prefix&&(eo.eventTypeId=eu.prefix+"."+eo.eventTypeId),eo.eventTypeId=fixEventTypeId(ed,eo.eventTypeId),validateEventData(ed,eo)&&(eo.key&&eo.trafficTypeName?ei.events.track(eo):eu.identities.forEach(function(et){var ea=eF({key:et.key,trafficTypeName:et.trafficType},eo);ei.events.track(ea)}))}}),ed.info(ag+"integration started")}}();providePlugin(window,"splitTracker",ef,ed,!0===et.autoRequire,eh)}function GoogleAnalyticsToSplit(et){function GoogleAnalyticsToSplitFactory(eo){return GaToSplit(et,eo)}return void 0===et&&(et={}),GoogleAnalyticsToSplitFactory.type="GOOGLE_ANALYTICS_TO_SPLIT",GoogleAnalyticsToSplitFactory}var a_="split-to-ga: ",aw="`ga` command queue not found.",aA="No hit was sent.",aI=function(){function SplitToGa(et,eo){this.trackerNames=SplitToGa.defaultTrackerNames,this.log=et,eo&&("function"==typeof eo.filter&&(this.filter=eo.filter),"function"==typeof eo.mapper&&(this.mapper=eo.mapper),Array.isArray(eo.trackerNames)&&(this.trackerNames=uniq(eo.trackerNames)),this.impressions=eo.impressions,this.events=eo.events),et.info(a_+"integration started"),"function"!=typeof SplitToGa.getGa()&&et.warn(a_+(aw+" No hits will be sent until it is available."))}return SplitToGa.defaultMapper=function(et){var eo=et.type,ei=et.payload;switch(eo){case ni:return{hitType:"event",eventCategory:"split-impression",eventAction:"Evaluate "+ei.impression.feature,eventLabel:"Treatment: "+ei.impression.treatment+". Targeting rule: "+ei.impression.label+".",nonInteraction:!0};case nc:return{hitType:"event",eventCategory:"split-event",eventAction:ei.eventTypeId,eventValue:ei.value,nonInteraction:!0}}},SplitToGa.getGa=function(){return"undefined"!=typeof window?window[window.GoogleAnalyticsObject||"ga"]:void 0},SplitToGa.validateFieldsObject=function(et,eo){return!!eo&&!!eo.hitType||(et.warn(a_+"your custom mapper returned an invalid FieldsObject instance. It must be an object with at least a `hitType` field."),!1)},SplitToGa.prototype.queue=function(et){var eo,ei=SplitToGa.getGa();if(ei){if(!1===this.impressions&&et.type===ni||!1===this.events&&et.type===nc)return;try{if(this.filter&&!this.filter(et)||(eo=SplitToGa.defaultMapper(et),this.mapper&&(!(eo=this.mapper(et,eo))||!SplitToGa.validateFieldsObject(this.log,eo))))return}catch(et){this.log.warn(a_+"queue method threw: "+et+". "+aA);return}this.trackerNames.forEach(function(et){var ea=et?et+".send":"send";eo.splitHit=!0,ei(ea,eo)})}else this.log.warn(a_+(aw+" ")+aA)},SplitToGa.defaultTrackerNames=[""],SplitToGa}();function SplitToGoogleAnalytics(et){function SplitToGoogleAnalyticsFactory(eo){return new aI(eo.settings.log,et)}return void 0===et&&(et={}),SplitToGoogleAnalyticsFactory.type="SPLIT_TO_GOOGLE_ANALYTICS",SplitToGoogleAnalyticsFactory}function integrationsManagerFactory(et,eo){return pluggableIntegrationsManagerFactory(et.map(function(et){switch(et.type){case iD:return GoogleAnalyticsToSplit(et);case iU:return SplitToGoogleAnalytics(et)}}).filter(function(et){return et&&"function"==typeof et}),eo)}function __InLocalStorageMockFactory(et){var eo=InMemoryStorageCS_InMemoryStorageCSFactory(et);return eo.splits.checkCache=function(){return!0},eo}function promiseWrapper(et,eo){var ei=!1,ea=!1;function chain(et){var eu=new Promise(function(ei,eu){return et.then(ei,function(et){ea?eu(et):eo(et)})}),ed=eu.then;return Object.defineProperty(eu,"then",{value:function(et,eo){var eh=ed.call(eu,et,eo);return("function"==typeof et&&(ei=!0),"function"==typeof eo)?(ea=!0,eh):chain(eh)}}),eu}var eu=chain(et);return eu.hasOnFulfilled=function(){return ei},eu}function splitsEventEmitterFactory(et){var eo=eF(new et,{splitsArrived:!1,splitsCacheLoaded:!1});return eo.on(oC,function(et){et||(eo.splitsArrived=!0)}),eo.once(oS,function(){eo.splitsCacheLoaded=!0}),eo}function segmentsEventEmitterFactory(et){var eo=eF(new et,{segmentsArrived:!1});return eo.once(o_,function(){eo.segmentsArrived=!0}),eo}function readinessManagerFactory(et,eo,ei){void 0===eo&&(eo=0),void 0===ei&&(ei=splitsEventEmitterFactory(et));var ea,eu=segmentsEventEmitterFactory(et),ed=new et,eh=!1;ei.splitsCacheLoaded?eh=!0:ei.once(oS,checkIsReadyFromCache);var ep=!1;function timeout(){ep||(ep=!0,ed.emit(ow,"Split SDK emitted SDK_READY_TIMED_OUT event."))}eo>0&&(ea=setTimeout(timeout,eo));var ef=!1;ei.on(oC,checkIsReadyOrUpdate),eu.on(o_,checkIsReadyOrUpdate);var em=!1;function checkIsReadyFromCache(){if(eh=!0,!ef)try{ed.emit(oI)}catch(et){setTimeout(function(){throw et},0)}}function checkIsReadyOrUpdate(et){if(ef)try{ed.emit(oR,et)}catch(et){setTimeout(function(){throw et},0)}else if(ei.splitsArrived&&eu.segmentsArrived){clearTimeout(ea),ef=!0;try{ed.emit(oA)}catch(et){setTimeout(function(){throw et},0)}}}var eg=1;return{splits:ei,segments:eu,gate:ed,shared:function(eo){return void 0===eo&&(eo=0),eg++,readinessManagerFactory(et,eo,ei)},timeout:timeout,setDestroyed:function(){em=!0},destroy:function(){em=!0,eu.removeAllListeners(),ed.removeAllListeners(),clearTimeout(ea),eg>0&&eg--,0===eg&&ei.removeAllListeners()},isReady:function(){return ef},hasTimedout:function(){return ep},isReadyFromCache:function(){return eh},isDestroyed:function(){return em},isOperational:function(){return(ef||eh)&&!em}}}__InLocalStorageMockFactory.type=ny;var aR="newListener",aT="removeListener";function sdkReadinessManagerFactory(et,eo,ei,ea){void 0===ei&&(ei=0),void 0===ea&&(ea=readinessManagerFactory(eo,ei));var eu=0,ed=0;ea.gate.on(aT,function(et){et===oA&&ed--}),ea.gate.on(aR,function(eo){(eo===oA||eo===ow)&&(ea.isReady()?et.error(rb,[eo===oA?"SDK_READY":"SDK_READY_TIMED_OUT"]):eo===oA&&ed++)});var eh=generateReadyPromise();function defaultOnRejected(eo){et.error(eo&&eo.message)}function generateReadyPromise(){var eo=promiseWrapper(new Promise(function(ei,eh){ea.gate.once(oA,function(){et.info(tR),ed!==eu||eo.hasOnFulfilled()||et.warn(tQ),ei()}),ea.gate.once(ow,function(et){eh(Error(et))})}),defaultOnRejected);return eo}return ea.gate.once(oI,function(){et.info(tI)}),{readinessManager:ea,shared:function(ei){return void 0===ei&&(ei=0),sdkReadinessManagerFactory(et,eo,ei,ea.shared(ei))},incInternalReadyCbCount:function(){eu++},sdkStatus:eF(Object.create(ea.gate),{Event:{SDK_READY:oA,SDK_READY_FROM_CACHE:oI,SDK_UPDATE:oR,SDK_READY_TIMED_OUT:ow},ready:function(){return ea.hasTimedout()?ea.isReady()?Promise.resolve():promiseWrapper(Promise.reject(Error("Split SDK has emitted SDK_READY_TIMED_OUT event.")),defaultOnRejected):eh},__getStatus:function(){return{isReady:ea.isReady(),isReadyFromCache:ea.isReadyFromCache(),isOperational:ea.isOperational(),hasTimedout:ea.hasTimedout(),isDestroyed:ea.isDestroyed()}}})}}function impressionsTrackerFactory(et,eo,ei,ea,eu){var ed=et.log,eh=et.impressionListener,ep=et.runtime,ef=ep.ip,em=ep.hostname,eg=et.version;return{track:function(ep,ey){if(et.userConsent!==nS){var eC=ep.length,eS=ei.process(ep),e_=eS.impressionsToStore,ew=eS.impressionsToListener,eA=eS.deduped,eI=ew.length;if(e_.length>0){var eR=eo.track(e_);thenable(eR)?eR.then(function(){ed.info(tW,[eC])}).catch(function(et){ed.error(rA,[eC,et])}):eu&&(eu.recordImpressionStats(nU,e_.length),eu.recordImpressionStats(nN,eA))}if(eh||ea)for(var _loop_1=function(et){var eo={impression:eF({},ew[et]),attributes:ey,ip:ef,hostname:em,sdkLanguageVersion:eg};setTimeout(function(){ea&&ea.handleImpression(eo);try{eh&&eh.logImpression(eo)}catch(et){ed.error(rI,[et])}},0)},eT=0;eT<eI;eT++)_loop_1(eT)}}}}function eventTrackerFactory(et,eo,ei,ea){var eu=et.log,ed=isConsumerMode(et.mode);function queueEventsCallback(et,eo){var ea=et.eventTypeId,ed=et.trafficTypeName,eh=et.key,ep=et.value,ef=et.timestamp,em=et.properties,eg='event of type "'+ea+'" for traffic type "'+ed+'". Key: '+eh+". Value: "+ep+". Timestamp: "+ef+". "+(em?"With properties.":"With no properties.");return eo?(eu.info(tz,[eg]),ei&&setTimeout(function(){var eo=eF({},et);em&&(eo.properties=eF({},em)),ei.handleEvent(eo)},0)):eu.error(rR,[eg]),eo}return{track:function(ei,eu){if(et.userConsent===nS)return!!ed&&Promise.resolve(!1);var eh=eo.track(ei,eu);return thenable(eh)?eh.then(queueEventsCallback.bind(null,ei)):(ea&&ea.recordEventStats(eh?nU:nL,1),queueEventsCallback(ei,eh))}}}function telemetryTrackerFactory(et,eo){if(et&&eo){var ei=timer(eo);return{trackEval:function(ei){var ea=timer(eo);return function(eo){switch(eo){case iY:et.recordException(ei);return;case iJ:et.recordNonReadyUsage&&et.recordNonReadyUsage()}et.recordLatency(ei,ea())}},trackHttp:function(ei){var ea=timer(eo);return function(eo){et.recordHttpLatency(ei,ea()),eo&&eo.statusCode?et.recordHttpError(ei,eo.statusCode):et.recordSuccessfulSync(ei,Date.now())}},sessionLength:function(){et.recordSessionLength&&et.recordSessionLength(ei())},streamingEvent:function(eo,ei){eo===oc?et.recordAuthRejections():(et.recordStreamingEvents({e:eo,d:ei,t:Date.now()}),eo===oo&&et.recordTokenRefreshes())},addTag:function(eo){et.addTag&&et.addTag(eo)},trackUpdatesFromSSE:function(eo){et.recordUpdatesFromSSE(eo)}}}var noopTrack=function(){return function(){}};return{trackEval:noopTrack,trackHttp:noopTrack,sessionLength:function(){},streamingEvent:function(){},addTag:function(){},trackUpdatesFromSSE:function(){}}}var aE={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR",NONE:"NONE"},aP={DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5};function isLogLevelString(et){return!!find(aE,function(eo){return et===eo})}function _sprintf(et,eo){void 0===et&&(et=""),void 0===eo&&(eo=[]);var ei=0;return et.replace(/%s/g,function(){return eo[ei++]})}var ak={prefix:"splitio",logLevel:aE.NONE,showLevel:!0},aO=function(){function Logger(et,eo){this.options=eF({},ak,et),this.codes=eo||new al,this.logLevel=aP[this.options.logLevel]}return Logger.prototype.setLogLevel=function(et){this.options.logLevel=et,this.logLevel=aP[et]},Logger.prototype.debug=function(et,eo){this._shouldLog(1)&&this._log(aE.DEBUG,et,eo)},Logger.prototype.info=function(et,eo){this._shouldLog(2)&&this._log(aE.INFO,et,eo)},Logger.prototype.warn=function(et,eo){this._shouldLog(3)&&this._log(aE.WARN,et,eo)},Logger.prototype.error=function(et,eo){this._shouldLog(4)&&this._log(aE.ERROR,et,eo)},Logger.prototype._log=function(et,eo,ei){if("number"==typeof eo){var ea=this.codes.get(eo);eo=ea?_sprintf(ea,ei):"Message code "+eo+(ei?", with args: "+ei.toString():"")}else ei&&(eo=_sprintf(eo,ei));console.log(this._generateLogMessage(et,eo))},Logger.prototype._generateLogMessage=function(et,eo){var ei=" => ",ea="";return this.options.showLevel&&(ea+="["+et+"]"+(et===aE.INFO||et===aE.WARN?" ":"")+" "),this.options.prefix&&(ea+=this.options.prefix+ei),ea+eo},Logger.prototype._shouldLog=function(et){return et>=this.logLevel},Logger}();function createLoggerAPI(et){function setLogLevel(eo){isLogLevelString(eo)?et.setLogLevel(eo):et.error(rv)}return{enable:function(){setLogLevel(aE.DEBUG)},setLogLevel:setLogLevel,disable:function(){setLogLevel(aE.NONE)},LogLevel:aE}}function strategyDebugFactory(et){return{process:function(eo){return eo.forEach(function(eo){eo.pt=et.testAndSet(eo)}),{impressionsToStore:eo,impressionsToListener:eo,deduped:0}}}}function strategyOptimizedFactory(et,eo){return{process:function(ei){var ea=[];return ei.forEach(function(ei){ei.pt=et.testAndSet(ei);var eu=Date.now();ei.pt&&eo.track(ei.feature,eu,1),(!ei.pt||ei.pt<truncateTimeFrame(eu))&&ea.push(ei)}),{impressionsToStore:ea,impressionsToListener:ei,deduped:ei.length-ea.length}}}}function strategyNoneFactory(et,eo){return{process:function(ei){return ei.forEach(function(ei){var ea=Date.now();et.track(ei.feature,ea,1),eo.track(ei.keyName,ei.feature)}),{impressionsToStore:[],impressionsToListener:ei,deduped:0}}}}var ax={add:function(){return!0},contains:function(){return!0},clear:function(){}};function uniqueKeysTrackerFactory(et,eo,ei){var ea;return void 0===ei&&(ei=ax),ei.refreshRate&&(ea=setInterval(ei.clear,ei.refreshRate)),{track:function(ea,eu){if(!ei.add(ea,eu)){et.debug(r7+"The feature "+eu+" and key "+ea+" exist in the filter");return}eo.track(ea,eu)},stop:function(){clearInterval(ea)}}}function sdkFactory(et){var eo,ei=et.settings,ea=et.platform,eu=et.storageFactory,ed=et.splitApiFactory,eh=et.extraProps,ep=et.syncManagerFactory,ef=et.SignalListener,em=et.impressionsObserverFactory,eg=et.integrationsManagerFactory,ey=et.sdkManagerFactory,eC=et.sdkClientMethodFactory,eS=et.filterAdapterFactory,e_=ei.log,ew=ei.sync.impressionsMode;validateAndTrackApiKey(e_,ei.core.authorizationKey);var eA=sdkReadinessManagerFactory(e_,ea.EventEmitter,ei.startup.readyTimeout),eI=eA.readinessManager,eR=eu({settings:ei,onReadyCb:function(et){if(et){eI.timeout();return}eI.splits.emit(oC),eI.segments.emit(o_)}}),eT=telemetryTrackerFactory(eR.telemetry,ea.now),eE=eg&&eg({settings:ei,storage:eR,telemetryTracker:eT}),eP=em(),ek=ew===nd?uniqueKeysTrackerFactory(e_,eR.uniqueKeys,eS&&eS()):void 0;switch(ew){case nl:eo=strategyOptimizedFactory(eP,eR.impressionCounts);break;case nd:eo=strategyNoneFactory(eR.impressionCounts,ek);break;default:eo=strategyDebugFactory(eP)}var eO=impressionsTrackerFactory(ei,eR.impressions,eo,eE,eR.telemetry),eM=eventTrackerFactory(ei,eR.events,eE,eR.telemetry),eD=ed&&ed(ei,ea,eT),eU={splitApi:eD,eventTracker:eM,impressionsTracker:eO,telemetryTracker:eT,uniqueKeysTracker:ek,sdkReadinessManager:eA,readiness:eI,settings:ei,storage:eR,platform:ea},eL=ep&&ep(eU);eU.syncManager=eL;var eN=ef&&new ef(eL,ei,eR,eD);eU.signalListener=eN;var eB=eC(eU),ej=ey(ei,eR.splits,eA);return eL&&eL.start(),eN&&eN.start(),e_.info(tk),eF({client:eB,manager:function(){return e_.debug(tf),ej},Logger:createLoggerAPI(e_),settings:ei},eh&&eh(eU))}var aM={GRANTED:nC,DECLINED:nS,UNKNOWN:n_};function createUserConsentAPI(et){var eo=et.settings,ei=et.settings.log,ea=et.syncManager,eu=et.storage,ed=eu.events,eh=eu.impressions,ep=eu.impressionCounts;return isConsentGranted(eo)||ei.info(tY,[eo.userConsent]),{setStatus:function(et){if(!isBoolean(et))return ei.warn(rG,["UserConsent.setStatus"]),!1;var eu,ef,em=et?nC:nS;return eo.userConsent!==em?(ei.info(tV,[eo.userConsent,em]),eo.userConsent=em,et?null===(eu=null==ea?void 0:ea.submitterManager)||void 0===eu||eu.start():(null===(ef=null==ea?void 0:ea.submitterManager)||void 0===ef||ef.stop(!0),ed.clear&&ed.clear(),eh.clear&&eh.clear(),ep&&ep.clear&&ep.clear())):ei.info(tJ,[em]),!0},getStatus:function(){return eo.userConsent},Status:aM}}function validateRuntime(){return{ip:!1,hostname:!1}}var aD=ei(34155),aU=void 0!==aD&&void 0!==aD.version&&!!aD.version,aL=[[ry,rY+"Invalid feature flag, no valid rules found"],[rv,"logger: Invalid Log Level - No changes to the logs will be applied."],[rC,"The SDK will not get ready. Reason: %s"],[rA,r5+"Could not store impressions bulk with %s impression(s). Error: %s"],[rI,r5+"Impression listener logImpression method threw: %s."],[rR,r8+"Failed to queue %s"],[rS,r0+"There was an issue loading the mock feature flags data. No changes will be applied to the current cache. %s"],[r_,r1+"Failed to connect or error on streaming connection, with error message: %s"],[rw,r1+"Failed to authenticate for streaming. Error: %s."],[rB,"Response status is not OK. Status: %s. URL: %s. Message: %s"],[rb,"A listener was added for %s on the SDK, which has already fired and won't be emitted again. The callback won't be executed."],[rO,"%s: Client has already been destroyed - no calls possible."],[rT,'%s: you passed "%s", event_type must adhere to the regular expression /^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/g. This means an event_type must be alphanumeric, cannot be more than 80 characters long, and can only include a dash, underscore, period, or colon as separators of alphanumeric characters.'],[rE,"%s: %s must be a plain object."],[rP,"%s: the maximum size allowed for the properties is 32768 bytes, which was exceeded. Event not queued."],[rk,"%s: value must be a finite number."],[rx,"%s: you passed a null or undefined %s. It must be a non-empty string."],[rM,"%s: %s too long. It must have 250 characters or less."],[rD,"%s: Key must be an object with bucketingKey and matchingKey with valid string properties."],[rU,"%s: you passed an invalid %s. It must be a non-empty string."],[rL,"%s: you passed an empty %s. It must be a non-empty string."],[rN,"%s: %s must be a non-empty array."],[rG,"%s: provided param must be a boolean value."],[rq,rW+': you passed an invalid "%s" config param. It should be one of the following values: %s. Defaulting to "%s".'],[rF,rW+': an invalid value was received for "sync.localhostMode" config. A valid entity should be provided for localhost mode.'],[rj,rW+": the provided storage is invalid.%s Falling back into default MEMORY storage"],[rH,rW+': the provided "%s" config param is lower than allowed. Setting to the minimum value %s seconds'],[rK,rW+": the amount of flag sets provided are big causing uri length error."],[rz,rW+": the Set filter is exclusive and cannot be used simultaneously with names or prefix filters. Ignoring names and prefixes."]].concat([[t$,rZ+"Value %s doesn't match with expected type."],[tZ,rZ+"Defined attribute [%s], no attributes received."],[t0,r4+"Retrying download of segments #%s. Reason: %s"],[t1,r2+"Error while doing fetch of feature flags. %s"],[t2,r1+"Error parsing SSE error notification: %s"],[t4,r1+"Error parsing SSE message notification: %s"],[t3,r1+"Falling back to polling mode. Reason: %s"],[t6,r6+"Dropping %s after retry. Reason: %s."],[t5,r6+"Failed to push %s, keeping data to retry on next iteration. Reason: %s."],[tX,"%s: the SDK is not ready, results may be incorrect%s. Make sure to wait for SDK readiness before using this method."],[tQ,"No listeners for SDK Readiness detected. Incorrect control treatments could have been logged if you called getTreatment/s while the SDK was not yet ready."],[t8,'%s: Property "%s" is of invalid type. Setting value to null.'],[t7,"%s: Event has more than 300 properties. Some of them will be trimmed when processed."],[t9,'%s: %s "%s" is not of type string, converting.'],[rr,'%s: %s "%s" has extra whitespace, trimming.'],[rn,'%s: feature flag "%s" does not exist in this environment. Please double check what feature flags exist in the Split user interface.'],[ro,"%s: traffic_type_name should be all lowercase - converting string to lowercase."],[ri,'%s: traffic type "%s" does not have any corresponding feature flag in this environment, make sure you\'re tracking your events to a valid traffic type defined in the Split user interface.'],[rm,"%s: you passed %s which is not part of the configured FlagSetsFilter, ignoring Flag Set."],[ra,rW+": %s integration item(s) at settings is invalid. %s"],[rs,rW+": feature flag filters are not applicable for Consumer modes where the SDK does not keep rollout data in sync. Filters were discarded"],[rc,rW+': feature flag filter at position %s is invalid. It must be an object with a valid filter type ("bySet", "byName" or "byPrefix") and a list of "values".'],[ru,rW+": feature flag filter configuration must be a non-empty array of filter objects."],[rl,rW+": You already have %s. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application"],[rd,r1+"Fetching MySegments due to an error processing %s notification: %s"],[rh,r1+"Fetching SplitChanges due to an error processing SPLIT_UPDATE notification: %s"],[rp,"%s: you passed %s, flag set must adhere to the regular expressions %s. This means a flag set must start with a letter or number, be in lowercase, alphanumeric and have a max length of 50 characters. %s was discarded."],[rf,"%s: flag set %s should be all lowercase - converting string to lowercase."],[rg,"%s: you passed %s flag set that does not contain cached feature flag names. Please double check what flag sets are in use in the Split user interface."]]),aN="Split SDK client is ready",aq=aL.concat([[tI,aN+" from cache"],[tR,aN],[tT,r5+"Feature flag: %s. Key: %s. Evaluation: %s. Label: %s"],[tE,r5+"Queueing corresponding impression."],[tP,"New shared client instance created."],[tk,"New Split SDK instance created."],[tz,r8+"Successfully queued %s"],[tW,r5+"Successfully stored %s impression(s)."],[tV,"UserConsent: consent status changed from %s to %s."],[tJ,"UserConsent: call had no effect because it was the current consent status (%s)."],[tY,"Starting the SDK with %s user consent. No data will be sent."],[tO,r3+"Turning segments data polling %s."],[tx,r3+"Starting polling"],[tM,r3+"Stopping polling"],[tD,r2+"Retrying download of feature flags #%s. Reason: %s"],[tF,r6+"Flushing full %s queue and reseting timer."],[tj,r6+"Pushing %s."],[tU,r1+"Refreshing streaming token in %s seconds, and connecting streaming in %s seconds."],[tL,r1+"Attempting to reconnect streaming in %s seconds."],[tN,r1+"Connecting streaming."],[tq,r1+"Streaming is disabled for given SDK key. Switching to polling mode."],[tB,r1+"Disconnecting streaming."],[tG,rX+"Streaming not available. Starting polling."],[tH,rX+"Streaming couldn't connect. Continue polling."],[tK,rX+"Streaming connected. Syncing and stopping polling."]]).concat([[ej,rY+"[andCombiner] evaluates to %s"],[eG,rY+"Treatment found: %s"],[eH,rY+"All predicates evaluated, no treatment found."],[eK,rJ+': using algo "murmur" bucket %s for key %s using seed %s - treatment %s'],[ez,r$+"[allMatcher] is always true"],[eW,r$+"[betweenMatcher] is %s between %s and %s? %s"],[eV,r$+"[booleanMatcher] %s === %s"],[eJ,r$+"[containsAllMatcher] %s contains all elements of %s? %s"],[eY,r$+"[containsAnyMatcher] %s contains at least an element of %s? %s"],[e$,r$+"[containsStringMatcher] %s contains %s? %s"],[eZ,r$+'[dependencyMatcher] parent feature flag "%s" evaluated to "%s" with label "%s". %s evaluated treatment is part of [%s] ? %s.'],[eQ,r$+'[dependencyMatcher] will evaluate parent feature flag: "%s" with key: %s %s'],[eX,r$+"[equalToMatcher] is %s equal to %s? %s"],[e0,r$+"[equalToSetMatcher] is %s equal to set %s? %s"],[e4,r$+"[endsWithMatcher] %s ends with %s? %s"],[e6,r$+"[greaterThanEqualMatcher] is %s greater than %s? %s"],[e5,r$+"[lessThanEqualMatcher] is %s less than %s? %s"],[e8,r$+"[partOfMatcher] %s is part of %s? %s"],[e7,r$+"[segmentMatcher] evaluated %s / %s => %s"],[e9,r$+"[stringMatcher] does %s matches with %s? %s"],[tr,r$+"[stringMatcher] %s is an invalid regex"],[tn,r$+"[startsWithMatcher] %s starts with %s? %s"],[ti,r$+"[whitelistMatcher] evaluated %s in [%s] => %s"],[ta,rZ+"Extracted attribute [%s], [%s] will be used for matching."],[ts,rJ+":sanitize: Attempted to sanitize [%s] which should be of type [%s]. Sanitized and processed value => [%s]"],[tc,r9+"Registering cleanup handler %s"],[tu,r9+"Deregistering cleanup handler %s"],[td,"Retrieving default SDK client."],[tp,"Retrieving existing SDK client."],[tf,"Retrieving manager instance."],[tm,r0+"Feature flags data: \n%s"],[tg,r2+"Spin up feature flags update using since = %s"],[ty,r2+"New feature flags %s"],[tv,r2+"Removed feature flags %s"],[tb,r2+"Segment names collected %s"],[tC,r1+"New SSE message received, with data: %s."],[tS,rQ+": Starting %s. Running each %s millis"],[t_,rQ+": Running %s"],[tw,rQ+": Stopping %s"],[tA,rW+': feature flags filtering criteria is "%s".']]);function getLogLevel(et){return"boolean"==typeof et?et?aE.DEBUG:aE.NONE:"string"==typeof et&&isLogLevelString(et)?et:void 0}var aB=ei(34155),aF=new al(aq),aj="splitio_debug",aG="SPLITIO_DEBUG",aH=String(aU?aB.env[aG]:isLocalStorageAvailable()?localStorage.getItem(aj):""),aK=aE.NONE;function validateLogger(et){var eo=et.debug,ei=void 0!==eo?getLogLevel(eo):aK,ea=new aO({logLevel:ei||aK},aF);return ei||ea._log(aE.ERROR,"Invalid Log Level - No changes to the logs will be applied."),ea}function parseCondition(et){var eo=et.treatment;return et.keys?{conditionType:"WHITELIST",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"WHITELIST",negate:!1,whitelistMatcherData:{whitelist:isString(et.keys)?[et.keys]:et.keys}}]},partitions:[{treatment:eo,size:100}],label:"whitelisted "+eo}:{conditionType:"ROLLOUT",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"ALL_KEYS",negate:!1}]},partitions:[{treatment:eo,size:100}],label:"default rule"}}function hasTreatmentChanged(et,eo){return typeof et!=typeof eo||("string"==typeof et?et!==eo:et.treatment!==eo.treatment||et.config!==eo.config)}function fromObjectUpdaterFactory(et,eo,ei,ea){var eu=ea.log,ed=eo.splits,eh=!0;return function(){var eo=[],ep=null,ef={};try{ef=et(ea)}catch(et){ep=et,eu.error(rS,[et])}return!ep&&ef?(eu.debug(tm,[JSON.stringify(ef)]),forOwn(ef,function(et,ei){eo.push([ei,{name:ei,status:"ACTIVE",killed:!1,trafficAllocation:100,defaultTreatment:nn,conditions:et.conditions||[],configurations:et.configurations,trafficTypeName:et.trafficTypeName}])}),Promise.all([ed.clear(),ed.addSplits(eo)]).then(function(){return ei.splits.emit(oC),eh&&(eh=!1,Promise.resolve(ed.checkCache()).then(function(et){et&&ei.splits.emit(oS),ei.segments.emit(o_)})),!0})):Promise.resolve(!0)}}function fromObjectSyncTaskFactory(et,eo,ei,ea){return syncTaskFactory(ea.log,fromObjectUpdaterFactory(et,eo,ei,ea),ea.scheduler.offlineRefreshRate,"offlineUpdater")}function flush(){return Promise.resolve()}/^(enabled?|on)/i.test(aH)?aK=aE.DEBUG:isLogLevelString(aH)&&(aK=aH);var az=function(et){return function(eo){var ei=eo.settings,ea=eo.readiness,eu=eo.storage;return eF(fromObjectSyncTaskFactory(et(),eu,ea,ei),{flush:flush,shared:function(et,eo){return{start:function(){setTimeout(function(){eo.segments.emit(o_)},0)},stop:function(){},isRunning:function(){return!0},flush:flush}}})}}(function(){var et={emptyMock:"1"};function mockUpdated(eo){var ei=Object.keys(eo);return ei.length!==Object.keys(et).length?(et=eo,!0):ei.some(function(ei){var ea=!et[ei],eu=hasTreatmentChanged(et[ei],eo[ei]),ed=ea||eu;return ed&&(et=eo),ed})}return function(et){var eo=et.features||{};if(!mockUpdated(eo))return!1;var ei={};return forOwn(eo,function(et,eo){var ea=et,eu=null;isObject(et)&&(ea=et.treatment,eu=et.config||eu);var ed={};null!==eu&&(ed[ea]=eu),ei[eo]={trafficTypeName:"localhost",conditions:[parseCondition({treatment:ea})],configurations:ed}}),ei}});function LocalhostFromObject(){return az}az.type="LocalhostFromObject";var aW=[nS,nC,n_];function validateConsent(et){var eo=et.userConsent,ei=et.log;return(eo=stringToUpperCase(eo),aW.indexOf(eo)>-1)?eo:(ei.error(rq,["userConsent",aW,nC]),nC)}var aV="LOCALSTORAGE";function validateIntegrations(et,eo,ei){var ea=et.integrations,eu=et.log;if(!Array.isArray(ea)||0===ea.length)return[];var ed=ea.filter(eo),eh=ea.length-ed.length;return eh&&eu.warn(ra,[eh,ei||""]),ed}function validateConfigurableIntegrations(et,eo){return void 0===eo&&(eo=[]),validateIntegrations(et,function(et){return et&&isString(et.type)&&eo.indexOf(et.type)>-1},'Integration items must have a valid "type" value')}var aJ={defaults:{startup:{requestTimeoutBeforeReady:5,retriesOnFailureBeforeReady:1,readyTimeout:10,eventsFirstPushWindow:10},userConsent:nC,version:"javascript-10.24.1"},acceptKey:!0,acceptTT:!0,runtime:validateRuntime,storage:function(et){var eo,ei=et.log,ea=et.mode,eu=et.storage,ed=void 0===eu?{type:ny}:eu,eh=ed.type,ep=ed.options,ef=void 0===ep?{}:ep,em=ed.prefix,fallbackToMemory=function(){eo=eh,eh=ny};return ea===nh&&eh===aV&&fallbackToMemory(),(eh===ny||eh===aV)&&(eh!==aV||isLocalStorageAvailable())||(fallbackToMemory(),ei.error("Invalid or unavailable storage. Fallbacking into MEMORY storage")),{type:eh,options:ef,prefix:em,__originalType:eo}},integrations:function(et){return validateConfigurableIntegrations(et,[iD,iU])},logger:validateLogger,localhost:function(){return LocalhostFromObject()},consent:validateConsent};function settingsFactory(et){return settingsValidation(et,aJ)}var aY="object"==typeof Reflect?Reflect:null,a$=aY&&"function"==typeof aY.apply?aY.apply:function(et,eo,ei){return Function.prototype.apply.call(et,eo,ei)};function ProcessEmitWarning(et){console&&console.warn&&console.warn(et)}em=aY&&"function"==typeof aY.ownKeys?aY.ownKeys:Object.getOwnPropertySymbols?function(et){return Object.getOwnPropertyNames(et).concat(Object.getOwnPropertySymbols(et))}:function(et){return Object.getOwnPropertyNames(et)};var aZ=Number.isNaN||function(et){return et!=et};function EventEmitter(){EventEmitter.init.call(this)}EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var aQ=10;function checkListener(et){if("function"!=typeof et)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof et)}function _getMaxListeners(et){return void 0===et._maxListeners?EventEmitter.defaultMaxListeners:et._maxListeners}function _addListener(et,eo,ei,ea){if(checkListener(ei),void 0===(ed=et._events)?(ed=et._events=Object.create(null),et._eventsCount=0):(void 0!==ed.newListener&&(et.emit("newListener",eo,ei.listener?ei.listener:ei),ed=et._events),eh=ed[eo]),void 0===eh)eh=ed[eo]=ei,++et._eventsCount;else if("function"==typeof eh?eh=ed[eo]=ea?[ei,eh]:[eh,ei]:ea?eh.unshift(ei):eh.push(ei),(eu=_getMaxListeners(et))>0&&eh.length>eu&&!eh.warned){eh.warned=!0;var eu,ed,eh,ep=Error("Possible EventEmitter memory leak detected. "+eh.length+" "+String(eo)+" listeners added. Use emitter.setMaxListeners() to increase limit");ep.name="MaxListenersExceededWarning",ep.emitter=et,ep.type=eo,ep.count=eh.length,ProcessEmitWarning(ep)}return et}function onceWrapper(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,eo,ei){var ea={fired:!1,wrapFn:void 0,target:et,type:eo,listener:ei},eu=onceWrapper.bind(ea);return eu.listener=ei,ea.wrapFn=eu,eu}function _listeners(et,eo,ei){var ea=et._events;if(void 0===ea)return[];var eu=ea[eo];return void 0===eu?[]:"function"==typeof eu?ei?[eu.listener||eu]:[eu]:ei?unwrapListeners(eu):arrayClone(eu,eu.length)}function listenerCount(et){var eo=this._events;if(void 0!==eo){var ei=eo[et];if("function"==typeof ei)return 1;if(void 0!==ei)return ei.length}return 0}function arrayClone(et,eo){for(var ei=Array(eo),ea=0;ea<eo;++ea)ei[ea]=et[ea];return ei}function spliceOne(et,eo){for(;eo+1<et.length;eo++)et[eo]=et[eo+1];et.pop()}function unwrapListeners(et){for(var eo=Array(et.length),ei=0;ei<eo.length;++ei)eo[ei]=et[ei].listener||et[ei];return eo}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return aQ},set:function(et){if("number"!=typeof et||et<0||aZ(et))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+et+".");aQ=et}}),EventEmitter.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(et){if("number"!=typeof et||et<0||aZ(et))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+et+".");return this._maxListeners=et,this},EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(et){for(var eo=[],ei=1;ei<arguments.length;ei++)eo.push(arguments[ei]);var ea="error"===et,eu=this._events;if(void 0!==eu)ea=ea&&void 0===eu.error;else if(!ea)return!1;if(ea){if(eo.length>0&&(ed=eo[0]),ed instanceof Error)throw ed;var ed,eh=Error("Unhandled error."+(ed?" ("+ed.message+")":""));throw eh.context=ed,eh}var ep=eu[et];if(void 0===ep)return!1;if("function"==typeof ep)a$(ep,this,eo);else for(var ef=ep.length,em=arrayClone(ep,ef),ei=0;ei<ef;++ei)a$(em[ei],this,eo);return!0},EventEmitter.prototype.addListener=function(et,eo){return _addListener(this,et,eo,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(et,eo){return _addListener(this,et,eo,!0)},EventEmitter.prototype.once=function(et,eo){return checkListener(eo),this.on(et,_onceWrap(this,et,eo)),this},EventEmitter.prototype.prependOnceListener=function(et,eo){return checkListener(eo),this.prependListener(et,_onceWrap(this,et,eo)),this},EventEmitter.prototype.removeListener=function(et,eo){var ei,ea,eu,ed,eh;if(checkListener(eo),void 0===(ea=this._events)||void 0===(ei=ea[et]))return this;if(ei===eo||ei.listener===eo)0==--this._eventsCount?this._events=Object.create(null):(delete ea[et],ea.removeListener&&this.emit("removeListener",et,ei.listener||eo));else if("function"!=typeof ei){for(eu=-1,ed=ei.length-1;ed>=0;ed--)if(ei[ed]===eo||ei[ed].listener===eo){eh=ei[ed].listener,eu=ed;break}if(eu<0)return this;0===eu?ei.shift():spliceOne(ei,eu),1===ei.length&&(ea[et]=ei[0]),void 0!==ea.removeListener&&this.emit("removeListener",et,eh||eo)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(et){var eo,ei,ea;if(void 0===(ei=this._events))return this;if(void 0===ei.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ei[et]&&(0==--this._eventsCount?this._events=Object.create(null):delete ei[et]),this;if(0==arguments.length){var eu,ed=Object.keys(ei);for(ea=0;ea<ed.length;++ea)"removeListener"!==(eu=ed[ea])&&this.removeAllListeners(eu);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(eo=ei[et]))this.removeListener(et,eo);else if(void 0!==eo)for(ea=eo.length-1;ea>=0;ea--)this.removeListener(et,eo[ea]);return this},EventEmitter.prototype.listeners=function(et){return _listeners(this,et,!0)},EventEmitter.prototype.rawListeners=function(et){return _listeners(this,et,!1)},EventEmitter.listenerCount=function(et,eo){return"function"==typeof et.listenerCount?et.listenerCount(eo):listenerCount.call(et,eo)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?em(this._events):[]};var aX=ei(63144),a0=ei.n(aX);function getFetch(){return"function"==typeof fetch?fetch:a0()}function getEventSource(){return"function"==typeof EventSource?EventSource:void 0}var a1="visibilitychange",a2="pagehide",a4="for visibilitychange and pagehide events.",a3=function(){function BrowserSignalListener(et,eo,ei,ea){this.syncManager=et,this.settings=eo,this.storage=ei,this.serviceApi=ea,this.flushData=this.flushData.bind(this),this.flushDataIfHidden=this.flushDataIfHidden.bind(this),this.fromImpressionsCollector=fromImpressionsCollector.bind(void 0,eo.core.labelsEnabled)}return BrowserSignalListener.prototype.start=function(){this.settings.log.debug(tc,[a4]),"undefined"!=typeof document&&document.addEventListener&&document.addEventListener(a1,this.flushDataIfHidden),"undefined"!=typeof window&&window.addEventListener&&window.addEventListener(a2,this.flushData)},BrowserSignalListener.prototype.stop=function(){this.settings.log.debug(tu,[a4]),"undefined"!=typeof document&&document.removeEventListener&&document.removeEventListener(a1,this.flushDataIfHidden),"undefined"!=typeof window&&window.removeEventListener&&window.removeEventListener(a2,this.flushData)},BrowserSignalListener.prototype.flushData=function(){if(this.syncManager){var et=this.settings.urls,eo=et.events,ei=et.telemetry;if(isConsentGranted(this.settings)){var ea=this.settings.sync.impressionsMode,eu={sim:ea===nl?nl:ea===nu?nu:nd};this._flushData(eo+"/testImpressions/beacon",this.storage.impressions,this.serviceApi.postTestImpressionsBulk,this.fromImpressionsCollector,eu),this._flushData(eo+"/events/beacon",this.storage.events,this.serviceApi.postEventsBulk),this.storage.impressionCounts&&this._flushData(eo+"/testImpressions/count/beacon",this.storage.impressionCounts,this.serviceApi.postTestImpressionsCount,fromImpressionCountsCollector),this.storage.uniqueKeys&&this._flushData(ei+"/v1/keys/cs/beacon",this.storage.uniqueKeys,this.serviceApi.postUniqueKeysBulkCs)}this.storage.telemetry&&this._flushData(ei+"/v1/metrics/usage/beacon",this.storage.telemetry,this.serviceApi.postMetricsUsage)}},BrowserSignalListener.prototype.flushDataIfHidden=function(){"hidden"===document.visibilityState&&this.flushData()},BrowserSignalListener.prototype._flushData=function(et,eo,ei,ea,eu){if(!eo.isEmpty()){var ed=ea?ea(eo.pop()):eo.pop();this._sendBeacon(et,ed,eu)||ei(JSON.stringify(ed)).catch(function(){})}},BrowserSignalListener.prototype._sendBeacon=function(et,eo,ei){if("undefined"!=typeof navigator&&navigator.sendBeacon){var ea={entries:eo,token:this.settings.core.authorizationKey,sdk:this.settings.version};ei&&eF(ea,ei);var eu=JSON.stringify(ea);try{return navigator.sendBeacon(et,eu)}catch(et){}}return!1},BrowserSignalListener}(),a6={getFetch:getFetch,getEventSource:getEventSource,EventEmitter:EventEmitter,now:function(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):Date.now}()},a5=a3,a8=syncManagerOnlineFactory(pollingManagerCSFactory,pushManagerFactory);function getStorage(et){return et.storage.type===nv?InLocalStorage(et.storage):et.storage.__originalType===nv?__InLocalStorageMockFactory:InMemoryStorageCS_InMemoryStorageCSFactory}function getModules(et){var eo={settings:et,platform:a6,storageFactory:getStorage(et),splitApiFactory:splitApiFactory,syncManagerFactory:a8,sdkManagerFactory:sdkManagerFactory,sdkClientMethodFactory:sdkClientMethodCSFactory,SignalListener:a5,integrationsManagerFactory:et.integrations&&et.integrations.length>0?integrationsManagerFactory.bind(null,et.integrations):void 0,impressionsObserverFactory:impressionObserverCSFactory,extraProps:function(et){return{UserConsent:createUserConsentAPI(et)}}};return et.mode===nh&&(eo.splitApiFactory=void 0,eo.syncManagerFactory=et.sync.localhostMode,eo.SignalListener=void 0),eo}function SplitFactory(et,eo){var ei=getModules(settingsFactory(et));return eo&&eo(ei),sdkFactory(ei)}var utils_assign=function(){return(utils_assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)};function utils_isObject(et){return et&&"object"==typeof et&&et.constructor===Object}function matching(et){return utils_isObject(et)?et.matchingKey:et}function getStatus(et){return et.__getStatus()}function validateGetTreatmentsParams(et){if(!utils_isObject(et)||!et.splitNames&&!et.flagSets)return console.log(eM),!1;var eo=et.splitNames,ei=et.flagSets;if(eo){if(!(eo=validateFeatureFlags("string"==typeof eo?[eo]:eo)))return console.log(eM),!1;ei&&console.log(eD),ei=void 0}else if(!Array.isArray(ei="string"==typeof ei?[ei]:ei))return console.log(eM),!1;return utils_assign(utils_assign({},et),{splitNames:eo,flagSets:ei})}function validateFeatureFlags(et,eo){if(void 0===eo&&(eo="feature flag names"),Array.isArray(et)&&et.length>0){var ei=[];if(et.forEach(function(et){var eo=validateFeatureFlag(et);eo&&ei.push(eo)}),ei.length)return utils_uniq(ei)}return console.log("[ERROR] "+eo+" must be a non-empty array."),!1}var a7=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/;function validateFeatureFlag(et,eo){if(void 0===eo&&(eo="feature flag name"),void 0==et)console.log("[ERROR] you passed a null or undefined "+eo+", "+eo+" must be a non-empty string.");else if(utils_isString(et)){if(a7.test(et)&&(console.log("[WARN] "+eo+' "'+et+'" has extra whitespace, trimming.'),et=et.trim()),et.length>0)return et;console.log("[ERROR] you passed an empty "+eo+", "+eo+" must be a non-empty string.")}else console.log("[ERROR] you passed an invalid "+eo+", "+eo+" must be a non-empty string.");return!1}function utils_uniq(et){var eo={};return et.filter(function(et){return!Object.prototype.hasOwnProperty.call(eo,et)&&(eo[et]=!0)})}function utils_isString(et){return"string"==typeof et||et instanceof String}function splitReady(){return{type:eS,payload:{timestamp:Date.now()}}}function splitReadyWithEvaluations(et,eo){return{type:e_,payload:{timestamp:Date.now(),key:matching(et),treatments:eo}}}function splitReadyFromCache(){return{type:ew,payload:{timestamp:Date.now()}}}function splitReadyFromCacheWithEvaluations(et,eo){return{type:eA,payload:{timestamp:Date.now(),key:matching(et),treatments:eo}}}function splitUpdate(){return{type:eI,payload:{timestamp:Date.now()}}}function splitUpdateWithEvaluations(et,eo){return{type:eR,payload:{timestamp:Date.now(),key:matching(et),treatments:eo}}}function splitTimedout(){return{type:eT,payload:{timestamp:Date.now()}}}function actions_splitDestroy(){return{type:eE,payload:{timestamp:Date.now()}}}function addTreatments(et,eo){return{type:eP,payload:{key:matching(et),treatments:eo}}}var asyncActions_assign=function(){return(asyncActions_assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},a9={config:null,splitio:null,factory:null,sharedClients:{},isDetached:!1,dispatch:null};function initSplitSdk(et){a9.config=et.config,a9.splitio=et.splitio||((null===(ei=null===(eo=a9.config)||void 0===eo?void 0:eo.core)||void 0===ei?void 0:ei.authorizationKey)==="localhost"&&(null===(ea=a9.config)||void 0===ea||ea.features),SplitFactory),a9.factory=a9.splitio(a9.config,function(et){a9.isDetached=et.settings.version.includes("nodejs"),et.settings.version=eg});var eo,ei,ea,eu=a9.isDetached?a9.factory.client():asyncActions_getClient(a9);return et.onReady&&eu.once(eu.Event.SDK_READY,et.onReady),et.onReadyFromCache&&eu.once(eu.Event.SDK_READY_FROM_CACHE,et.onReadyFromCache),et.onTimedout&&eu.once(eu.Event.SDK_READY_TIMED_OUT,et.onTimedout),et.onUpdate&&eu.on(eu.Event.SDK_UPDATE,et.onUpdate),function(et){var eo=getStatus(eu);return eo.hasTimedout&&et(splitTimedout()),eo.isReady&&et(splitReady()),eo.isDestroyed&&et(actions_splitDestroy()),!a9.isDetached&&(a9.dispatch=et,eo.isReadyFromCache&&et(splitReadyFromCache())),eu.ready()}}function __getTreatments(et,eo){return eo.reduce(function(eo,ei){return asyncActions_assign(asyncActions_assign({},eo),ei.splitNames?et.getTreatmentsWithConfig(ei.splitNames,ei.attributes):et.getTreatmentsWithConfigByFlagSets(ei.flagSets,ei.attributes))},{})}function asyncActions_getTreatments(et){if(!a9.factory)return console.error(ek),function(){};if(!(et=validateGetTreatmentsParams(et)))return function(){};var eo=et.splitNames,ei=et.flagSets;if(a9.isDetached){var ea=a9.factory.client(),eu=eo?ea.getTreatmentsWithConfig(et.key,eo,et.attributes):ea.getTreatmentsWithConfigByFlagSets(et.key,ei,et.attributes);return addTreatments(et.key,eu)}var ed=asyncActions_getClient(a9,et.key);et.evalOnUpdate?(eo&&eo.forEach(function(eo){ed.evalOnUpdate["flag::"+eo]=asyncActions_assign(asyncActions_assign({},et),{splitNames:[eo]})}),ei&&ei.forEach(function(eo){ed.evalOnUpdate["set::"+eo]=asyncActions_assign(asyncActions_assign({},et),{flagSets:[eo]})})):(eo&&eo.forEach(function(et){delete ed.evalOnUpdate["flag::"+et]}),ei&&ei.forEach(function(et){delete ed.evalOnUpdate["set::"+et]}));var eh=getStatus(ed);if(eh.isReady||ed.evalOnReady.push(et),!eh.isReadyFromCache&&et.evalOnReadyFromCache&&ed.evalOnReadyFromCache.push(et),!eh.isOperational)return addTreatments(et.key||a9.config.core.key,eo?getControlTreatmentsWithConfig(eo):{});var eu=__getTreatments(ed,[et]);return addTreatments(et.key||a9.config.core.key,eu)}function asyncActions_getClient(et,eo){var ei=matching(eo),ea=!ei||ei===matching(et.config.core.key),eu=ea?et.factory.client():et.factory.client(ei);return eu._trackingStatus||(ea||(et.sharedClients[ei]=eu),eu._trackingStatus=!0,eu.evalOnUpdate={},eu.evalOnReady=[],eu.evalOnReadyFromCache=[],eu.once(eu.Event.SDK_READY,function(){if(et.dispatch){if(eu.evalOnReady.length){var ei=__getTreatments(eu,eu.evalOnReady);eo?et.dispatch(addTreatments(eo,ei)):et.dispatch(splitReadyWithEvaluations(et.config.core.key,ei))}else eo||et.dispatch(splitReady())}}),eu.once(eu.Event.SDK_READY_TIMED_OUT,function(){et.dispatch&&!eo&&et.dispatch(splitTimedout())}),eu.once(eu.Event.SDK_READY_FROM_CACHE,function(){if(et.dispatch){if(eu.evalOnReadyFromCache.length){var ei=__getTreatments(eu,eu.evalOnReadyFromCache);eo?et.dispatch(addTreatments(eo,ei)):et.dispatch(splitReadyFromCacheWithEvaluations(et.config.core.key,ei))}else eo||et.dispatch(splitReadyFromCache())}}),eu.on(eu.Event.SDK_UPDATE,function(){if(et.dispatch){var ei=Object.values(eu.evalOnUpdate);if(ei.length){var ea=__getTreatments(eu,ei);eo?et.dispatch(addTreatments(eo,ea)):et.dispatch(splitUpdateWithEvaluations(et.config.core.key,ea))}else eo||et.dispatch(splitUpdate())}})),eu}function selectors_selectTreatmentValue(et,eo,ei,ea){return void 0===ea&&(ea=ey),selectTreatmentWithConfig(et,eo,ei,{treatment:ea,config:null}).treatment}function selectTreatmentWithConfig(et,eo,ei,ea){void 0===ea&&(ea=eC);var eu=et&&et.treatments?et.treatments[eo]:console.error(eO);return(eu?ei?eu[ei.toString()]:Object.values(eu)[0]:void 0)||ea}ei(67294);var connectToggler_assign=function(){return(connectToggler_assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)}},66344:function(et,eo,ei){"use strict";var ea=this&&this.__createBinding||(Object.create?function(et,eo,ei,ea){void 0===ea&&(ea=ei),Object.defineProperty(et,ea,{enumerable:!0,get:function(){return eo[ei]}})}:function(et,eo,ei,ea){void 0===ea&&(ea=ei),et[ea]=eo[ei]}),eu=this&&this.__exportStar||function(et,eo){for(var ei in et)"default"===ei||eo.hasOwnProperty(ei)||ea(eo,et,ei)};Object.defineProperty(eo,"__esModule",{value:!0}),eu(ei(70193),eo),eu(ei(81780),eo),eu(ei(58112),eo),eu(ei(52309),eo),eu(ei(74161),eo),eu(ei(68070),eo),eu(ei(23483),eo),eu(ei(39913),eo),eu(ei(83941),eo),eu(ei(79013),eo),eu(ei(41941),eo),eu(ei(1281),eo),eu(ei(82647),eo),eu(ei(10107),eo),eu(ei(19577),eo),eu(ei(82483),eo),eu(ei(45767),eo),eu(ei(32635),eo),eu(ei(2577),eo),eu(ei(13114),eo),eu(ei(56779),eo),eu(ei(60724),eo),eu(ei(64264),eo),eu(ei(80606),eo),eu(ei(15926),eo),eu(ei(37886),eo),eu(ei(50628),eo),eu(ei(68600),eo),eu(ei(21428),eo),eu(ei(18128),eo),eu(ei(58699),eo),eu(ei(62414),eo),eu(ei(20550),eo),eu(ei(82739),eo),eu(ei(5277),eo),eu(ei(29851),eo),eu(ei(79893),eo),eu(ei(95086),eo),eu(ei(2539),eo),eu(ei(87716),eo),eu(ei(11206),eo)},58112:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AccountsApi=eo.AccountsApiFactory=eo.AccountsApiFp=eo.AccountsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.AccountsApiAxiosParamCreator=function(et){var eo=this;return{accountsControllerActivateParentAccount:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("parentAccountId","Required parameter parentAccountId was null or undefined when calling accountsControllerActivateParentAccount.");for(eS in eo="/parent-accounts/{parentAccountId}/activate".replace("{parentAccountId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},accountsControllerActivateSubAccount:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("subAccountId","Required parameter subAccountId was null or undefined when calling accountsControllerActivateSubAccount.");for(eS in eo="/sub-accounts/{subAccountId}/activate".replace("{subAccountId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},accountsControllerBalanceSheetPreview:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling accountsControllerBalanceSheetPreview.");for(eS in eo="/client/{clientId}/balancesheet-preview".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},accountsControllerDeactivateParentAccount:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("parentAccountId","Required parameter parentAccountId was null or undefined when calling accountsControllerDeactivateParentAccount.");for(eS in eo="/parent-accounts/{parentAccountId}/deactivate".replace("{parentAccountId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},accountsControllerDeactivateSubAccount:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("subAccountId","Required parameter subAccountId was null or undefined when calling accountsControllerDeactivateSubAccount.");for(eS in eo="/sub-accounts/{subAccountId}/deactivate".replace("{subAccountId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},accountsControllerGetOwnerEquityAccountMapping:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling accountsControllerGetOwnerEquityAccountMapping.");for(eS in eo="/clients/{clientId}/owners-equity-sub-accounts".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},accountsControllerGetSubAccountsByParentAccount:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("parentAccountId","Required parameter parentAccountId was null or undefined when calling accountsControllerGetSubAccountsByParentAccount.");for(e_ in eo="/parent-accounts/{parentAccountId}/sub-accounts".replace("{parentAccountId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},ea&&(eC.include=ea),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},accountsControllerListParentAccounts:function(ei,ea,ep,ef,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){for(eI in eo="/parent-accounts",ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==ei&&(ew.clientId=ei),void 0!==ea&&(ew.reportTypeId=ea),void 0!==ep&&(ew.isNetConsolidate=ep),ef&&(ew.include=ef),void 0!==em&&(ew.searchTerm=em),void 0!==eg&&(ew.active=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},accountsControllerListQbAccountByReportTypeAndParent:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,ef,em,eg,ey,eC,eS,e_;return eh(this,function(eh){for(eS in eo="/qb-account-details",ed=new URL(eo,"https://example.com"),et&&(ef=et.baseOptions),em=eu(eu({method:"GET"},ef),ep),eg={},ey={},void 0!==ei&&(ey.reportTypeId=ei),void 0!==ea&&(ey.parentAccountId=ea),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ep.query)eC.set(eS,ep.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ef&&ef.headers?ef.headers:{},em.headers=eu(eu(eu({},eg),e_),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.AccountsApiFp=function(et){return{accountsControllerActivateParentAccount:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerActivateParentAccount(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerActivateSubAccount:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerActivateSubAccount(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerBalanceSheetPreview:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerBalanceSheetPreview(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerDeactivateParentAccount:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerDeactivateParentAccount(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerDeactivateSubAccount:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerDeactivateSubAccount(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerGetOwnerEquityAccountMapping:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerGetOwnerEquityAccountMapping(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerGetSubAccountsByParentAccount:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerGetSubAccountsByParentAccount(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerListParentAccounts:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerListParentAccounts(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},accountsControllerListQbAccountByReportTypeAndParent:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AccountsApiAxiosParamCreator(et).accountsControllerListQbAccountByReportTypeAndParent(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AccountsApiFactory=function(et,ei,ea){return{accountsControllerActivateParentAccount:function(eu,ed){return eo.AccountsApiFp(et).accountsControllerActivateParentAccount(eu,ed).then(function(et){return et(ea,ei)})},accountsControllerActivateSubAccount:function(eu,ed){return eo.AccountsApiFp(et).accountsControllerActivateSubAccount(eu,ed).then(function(et){return et(ea,ei)})},accountsControllerBalanceSheetPreview:function(eu,ed){return eo.AccountsApiFp(et).accountsControllerBalanceSheetPreview(eu,ed).then(function(et){return et(ea,ei)})},accountsControllerDeactivateParentAccount:function(eu,ed){return eo.AccountsApiFp(et).accountsControllerDeactivateParentAccount(eu,ed).then(function(et){return et(ea,ei)})},accountsControllerDeactivateSubAccount:function(eu,ed){return eo.AccountsApiFp(et).accountsControllerDeactivateSubAccount(eu,ed).then(function(et){return et(ea,ei)})},accountsControllerGetOwnerEquityAccountMapping:function(eu,ed){return eo.AccountsApiFp(et).accountsControllerGetOwnerEquityAccountMapping(eu,ed).then(function(et){return et(ea,ei)})},accountsControllerGetSubAccountsByParentAccount:function(eu,ed,eh){return eo.AccountsApiFp(et).accountsControllerGetSubAccountsByParentAccount(eu,ed,eh).then(function(et){return et(ea,ei)})},accountsControllerListParentAccounts:function(eu,ed,eh,ep,ef,em,eg){return eo.AccountsApiFp(et).accountsControllerListParentAccounts(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},accountsControllerListQbAccountByReportTypeAndParent:function(eu,ed,eh){return eo.AccountsApiFp(et).accountsControllerListQbAccountByReportTypeAndParent(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function AccountsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AccountsApi,et),AccountsApi.prototype.accountsControllerActivateParentAccount=function(et,ei){var ea=this;return eo.AccountsApiFp(this.configuration).accountsControllerActivateParentAccount(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AccountsApi.prototype.accountsControllerActivateSubAccount=function(et,ei){var ea=this;return eo.AccountsApiFp(this.configuration).accountsControllerActivateSubAccount(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AccountsApi.prototype.accountsControllerBalanceSheetPreview=function(et,ei){var ea=this;return eo.AccountsApiFp(this.configuration).accountsControllerBalanceSheetPreview(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AccountsApi.prototype.accountsControllerDeactivateParentAccount=function(et,ei){var ea=this;return eo.AccountsApiFp(this.configuration).accountsControllerDeactivateParentAccount(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AccountsApi.prototype.accountsControllerDeactivateSubAccount=function(et,ei){var ea=this;return eo.AccountsApiFp(this.configuration).accountsControllerDeactivateSubAccount(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AccountsApi.prototype.accountsControllerGetOwnerEquityAccountMapping=function(et,ei){var ea=this;return eo.AccountsApiFp(this.configuration).accountsControllerGetOwnerEquityAccountMapping(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AccountsApi.prototype.accountsControllerGetSubAccountsByParentAccount=function(et,ei,ea){var eu=this;return eo.AccountsApiFp(this.configuration).accountsControllerGetSubAccountsByParentAccount(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},AccountsApi.prototype.accountsControllerListParentAccounts=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.AccountsApiFp(this.configuration).accountsControllerListParentAccounts(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},AccountsApi.prototype.accountsControllerListQbAccountByReportTypeAndParent=function(et,ei,ea){var eu=this;return eo.AccountsApiFp(this.configuration).accountsControllerListQbAccountByReportTypeAndParent(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},AccountsApi}(ef.BaseAPI);eo.AccountsApi=em},52309:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AgenciesApi=eo.AgenciesApiFactory=eo.AgenciesApiFp=eo.AgenciesApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.AgenciesApiAxiosParamCreator=function(et){var eo=this;return{agencyControllerActivateAgency:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyControllerActivateAgency.");for(eS in eo="/agencies/{agencyId}/activate".replace("{agencyId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},agencyControllerAddAgency:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencyControllerAddAgency.");for(eS in eo="/agencies",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),ey={},(eg={})["Content-Type"]="application/json",eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),ew="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=ew?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},agencyControllerDeActivateAgency:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyControllerDeActivateAgency.");for(eS in eo="/agencies/{agencyId}/deactivate".replace("{agencyId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},agencyControllerGetAgencies:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/agencies",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},agencyControllerGetAgencyById:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyControllerGetAgencyById.");for(eS in eo="/agencies/{agencyId}".replace("{agencyId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},agencyControllerUpdateAgency:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencyControllerUpdateAgency.");if(null==ea)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyControllerUpdateAgency.");for(e_ in eo="/agencies/{agencyId}".replace("{agencyId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},agencyControllerUpdateAgencyLogo:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyControllerUpdateAgencyLogo.");for(eS in eo="/agencies/{agencyId}/logo".replace("{agencyId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.AgenciesApiFp=function(et){return{agencyControllerActivateAgency:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerActivateAgency(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyControllerAddAgency:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerAddAgency(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyControllerDeActivateAgency:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerDeActivateAgency(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyControllerGetAgencies:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerGetAgencies(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},agencyControllerGetAgencyById:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerGetAgencyById(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyControllerUpdateAgency:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerUpdateAgency(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyControllerUpdateAgencyLogo:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerUpdateAgencyLogo(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AgenciesApiFactory=function(et,ei,ea){return{agencyControllerActivateAgency:function(eu,ed){return eo.AgenciesApiFp(et).agencyControllerActivateAgency(eu,ed).then(function(et){return et(ea,ei)})},agencyControllerAddAgency:function(eu,ed){return eo.AgenciesApiFp(et).agencyControllerAddAgency(eu,ed).then(function(et){return et(ea,ei)})},agencyControllerDeActivateAgency:function(eu,ed){return eo.AgenciesApiFp(et).agencyControllerDeActivateAgency(eu,ed).then(function(et){return et(ea,ei)})},agencyControllerGetAgencies:function(eu){return eo.AgenciesApiFp(et).agencyControllerGetAgencies(eu).then(function(et){return et(ea,ei)})},agencyControllerGetAgencyById:function(eu,ed){return eo.AgenciesApiFp(et).agencyControllerGetAgencyById(eu,ed).then(function(et){return et(ea,ei)})},agencyControllerUpdateAgency:function(eu,ed,eh){return eo.AgenciesApiFp(et).agencyControllerUpdateAgency(eu,ed,eh).then(function(et){return et(ea,ei)})},agencyControllerUpdateAgencyLogo:function(eu,ed){return eo.AgenciesApiFp(et).agencyControllerUpdateAgencyLogo(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function AgenciesApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AgenciesApi,et),AgenciesApi.prototype.agencyControllerActivateAgency=function(et,ei){var ea=this;return eo.AgenciesApiFp(this.configuration).agencyControllerActivateAgency(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AgenciesApi.prototype.agencyControllerAddAgency=function(et,ei){var ea=this;return eo.AgenciesApiFp(this.configuration).agencyControllerAddAgency(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AgenciesApi.prototype.agencyControllerDeActivateAgency=function(et,ei){var ea=this;return eo.AgenciesApiFp(this.configuration).agencyControllerDeActivateAgency(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AgenciesApi.prototype.agencyControllerGetAgencies=function(et){var ei=this;return eo.AgenciesApiFp(this.configuration).agencyControllerGetAgencies(et).then(function(et){return et(ei.axios,ei.basePath)})},AgenciesApi.prototype.agencyControllerGetAgencyById=function(et,ei){var ea=this;return eo.AgenciesApiFp(this.configuration).agencyControllerGetAgencyById(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AgenciesApi.prototype.agencyControllerUpdateAgency=function(et,ei,ea){var eu=this;return eo.AgenciesApiFp(this.configuration).agencyControllerUpdateAgency(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},AgenciesApi.prototype.agencyControllerUpdateAgencyLogo=function(et,ei){var ea=this;return eo.AgenciesApiFp(this.configuration).agencyControllerUpdateAgencyLogo(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AgenciesApi}(ef.BaseAPI);eo.AgenciesApi=em},74161:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AgencySettingsApi=eo.AgencySettingsApiFactory=eo.AgencySettingsApiFp=eo.AgencySettingsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.AgencySettingsApiAxiosParamCreator=function(et){var eo=this;return{agencySettingsControllerAddReportValidationSettings:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencySettingsControllerAddReportValidationSettings.");if(null==ea)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencySettingsControllerAddReportValidationSettings.");for(e_ in eo="/agencies/{agencyId}/agency-settings/validation-settings".replace("{agencyId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},agencySettingsControllerGetAgencySettings:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencySettingsControllerGetAgencySettings.");for(eS in eo="/agencies/{agencyId}/agency-settings".replace("{agencyId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.AgencySettingsApiFp=function(et){return{agencySettingsControllerAddReportValidationSettings:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencySettingsApiAxiosParamCreator(et).agencySettingsControllerAddReportValidationSettings(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencySettingsControllerGetAgencySettings:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencySettingsApiAxiosParamCreator(et).agencySettingsControllerGetAgencySettings(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AgencySettingsApiFactory=function(et,ei,ea){return{agencySettingsControllerAddReportValidationSettings:function(eu,ed,eh){return eo.AgencySettingsApiFp(et).agencySettingsControllerAddReportValidationSettings(eu,ed,eh).then(function(et){return et(ea,ei)})},agencySettingsControllerGetAgencySettings:function(eu,ed){return eo.AgencySettingsApiFp(et).agencySettingsControllerGetAgencySettings(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function AgencySettingsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AgencySettingsApi,et),AgencySettingsApi.prototype.agencySettingsControllerAddReportValidationSettings=function(et,ei,ea){var eu=this;return eo.AgencySettingsApiFp(this.configuration).agencySettingsControllerAddReportValidationSettings(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},AgencySettingsApi.prototype.agencySettingsControllerGetAgencySettings=function(et,ei){var ea=this;return eo.AgencySettingsApiFp(this.configuration).agencySettingsControllerGetAgencySettings(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AgencySettingsApi}(ef.BaseAPI);eo.AgencySettingsApi=em},70193:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AISAccountMappingsApi=eo.AISAccountMappingsApiFactory=eo.AISAccountMappingsApiFp=eo.AISAccountMappingsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.AISAccountMappingsApiAxiosParamCreator=function(et){var eo=this;return{aISAccountMappingControllerCreateAisAccountMapping:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling aISAccountMappingControllerCreateAisAccountMapping.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountMappingControllerCreateAisAccountMapping.");for(e_ in eo="/clients/{clientId}/ais-account-mapping".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},aISAccountMappingControllerCreateAisAutoMapping:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling aISAccountMappingControllerCreateAisAutoMapping.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountMappingControllerCreateAisAutoMapping.");for(e_ in eo="/clients/{clientId}/ais-auto-mappings".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},aISAccountMappingControllerDownloadAisAccountMapping:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountMappingControllerDownloadAisAccountMapping.");for(eS in eo="/clients/{clientId}/ais-account-mapping/download".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},aISAccountMappingControllerListAisAccountMapping:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountMappingControllerListAisAccountMapping.");for(eA in eo="/clients/{clientId}/ais-account-mapping".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==ea&&(e_.take=ea),void 0!==ep&&(e_.skip=ep),void 0!==em&&(e_.searchTerm=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})}}},eo.AISAccountMappingsApiFp=function(et){return{aISAccountMappingControllerCreateAisAccountMapping:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountMappingsApiAxiosParamCreator(et).aISAccountMappingControllerCreateAisAccountMapping(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountMappingControllerCreateAisAutoMapping:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountMappingsApiAxiosParamCreator(et).aISAccountMappingControllerCreateAisAutoMapping(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountMappingControllerDownloadAisAccountMapping:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountMappingsApiAxiosParamCreator(et).aISAccountMappingControllerDownloadAisAccountMapping(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountMappingControllerListAisAccountMapping:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountMappingsApiAxiosParamCreator(et).aISAccountMappingControllerListAisAccountMapping(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AISAccountMappingsApiFactory=function(et,ei,ea){return{aISAccountMappingControllerCreateAisAccountMapping:function(eu,ed,eh){return eo.AISAccountMappingsApiFp(et).aISAccountMappingControllerCreateAisAccountMapping(eu,ed,eh).then(function(et){return et(ea,ei)})},aISAccountMappingControllerCreateAisAutoMapping:function(eu,ed,eh){return eo.AISAccountMappingsApiFp(et).aISAccountMappingControllerCreateAisAutoMapping(eu,ed,eh).then(function(et){return et(ea,ei)})},aISAccountMappingControllerDownloadAisAccountMapping:function(eu,ed){return eo.AISAccountMappingsApiFp(et).aISAccountMappingControllerDownloadAisAccountMapping(eu,ed).then(function(et){return et(ea,ei)})},aISAccountMappingControllerListAisAccountMapping:function(eu,ed,eh,ep,ef){return eo.AISAccountMappingsApiFp(et).aISAccountMappingControllerListAisAccountMapping(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})}}};var em=function(et){function AISAccountMappingsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AISAccountMappingsApi,et),AISAccountMappingsApi.prototype.aISAccountMappingControllerCreateAisAccountMapping=function(et,ei,ea){var eu=this;return eo.AISAccountMappingsApiFp(this.configuration).aISAccountMappingControllerCreateAisAccountMapping(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},AISAccountMappingsApi.prototype.aISAccountMappingControllerCreateAisAutoMapping=function(et,ei,ea){var eu=this;return eo.AISAccountMappingsApiFp(this.configuration).aISAccountMappingControllerCreateAisAutoMapping(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},AISAccountMappingsApi.prototype.aISAccountMappingControllerDownloadAisAccountMapping=function(et,ei){var ea=this;return eo.AISAccountMappingsApiFp(this.configuration).aISAccountMappingControllerDownloadAisAccountMapping(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},AISAccountMappingsApi.prototype.aISAccountMappingControllerListAisAccountMapping=function(et,ei,ea,eu,ed){var eh=this;return eo.AISAccountMappingsApiFp(this.configuration).aISAccountMappingControllerListAisAccountMapping(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},AISAccountMappingsApi}(ef.BaseAPI);eo.AISAccountMappingsApi=em},81780:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AISAccountsApi=eo.AISAccountsApiFactory=eo.AISAccountsApiFp=eo.AISAccountsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.AISAccountsApiAxiosParamCreator=function(et){var eo=this;return{aISAccountsControllerGetAisAccounts:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountsControllerGetAisAccounts.");if(null==ea)throw new ef.RequiredError("id","Required parameter id was null or undefined when calling aISAccountsControllerGetAisAccounts.");for(e_ in eo="/clients/{clientId}/ais-accounts/{id}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{id}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},aISAccountsControllerIgnoreAisDataValidationError:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling aISAccountsControllerIgnoreAisDataValidationError.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountsControllerIgnoreAisDataValidationError.");if(null==ep)throw new ef.RequiredError("errorId","Required parameter errorId was null or undefined when calling aISAccountsControllerIgnoreAisDataValidationError.");for(ew in eo="/clients/{clientId}/data-validation-errors/{errorId}/ignore".replace("{clientId}",encodeURIComponent(String(ea))).replace("{errorId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},aISAccountsControllerListAisAccounts:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountsControllerListAisAccounts.");for(eI in eo="/clients/{clientId}/ais-accounts".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},ea&&(ew.include=ea),void 0!==ep&&(ew.take=ep),void 0!==em&&(ew.skip=em),void 0!==eg&&(ew.searchTerm=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},aISAccountsControllerListAisCustomers:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountsControllerListAisCustomers.");for(eA in eo="/clients/{clientId}/ais-customers".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==ea&&(e_.searchTerm=ea),void 0!==ep&&(e_.take=ep),void 0!==em&&(e_.skip=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},aISAccountsControllerListAisDataValidationErrors:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountsControllerListAisDataValidationErrors.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling aISAccountsControllerListAisDataValidationErrors.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling aISAccountsControllerListAisDataValidationErrors.");if(null==em)throw new ef.RequiredError("errorType","Required parameter errorType was null or undefined when calling aISAccountsControllerListAisDataValidationErrors.");for(eR in eo="/clients/{clientId}/{year}/{month}/data-validation-errors".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==em&&(eA.errorType=em),void 0!==eg&&(eA.take=eg),void 0!==ey&&(eA.skip=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},aISAccountsControllerSyncMissingMonthData:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling aISAccountsControllerSyncMissingMonthData.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling aISAccountsControllerSyncMissingMonthData.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling aISAccountsControllerSyncMissingMonthData.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/ais-missing-months".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.AISAccountsApiFp=function(et){return{aISAccountsControllerGetAisAccounts:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountsApiAxiosParamCreator(et).aISAccountsControllerGetAisAccounts(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountsControllerIgnoreAisDataValidationError:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountsApiAxiosParamCreator(et).aISAccountsControllerIgnoreAisDataValidationError(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountsControllerListAisAccounts:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountsApiAxiosParamCreator(et).aISAccountsControllerListAisAccounts(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountsControllerListAisCustomers:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountsApiAxiosParamCreator(et).aISAccountsControllerListAisCustomers(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountsControllerListAisDataValidationErrors:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountsApiAxiosParamCreator(et).aISAccountsControllerListAisDataValidationErrors(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},aISAccountsControllerSyncMissingMonthData:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AISAccountsApiAxiosParamCreator(et).aISAccountsControllerSyncMissingMonthData(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AISAccountsApiFactory=function(et,ei,ea){return{aISAccountsControllerGetAisAccounts:function(eu,ed,eh){return eo.AISAccountsApiFp(et).aISAccountsControllerGetAisAccounts(eu,ed,eh).then(function(et){return et(ea,ei)})},aISAccountsControllerIgnoreAisDataValidationError:function(eu,ed,eh,ep){return eo.AISAccountsApiFp(et).aISAccountsControllerIgnoreAisDataValidationError(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},aISAccountsControllerListAisAccounts:function(eu,ed,eh,ep,ef,em){return eo.AISAccountsApiFp(et).aISAccountsControllerListAisAccounts(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},aISAccountsControllerListAisCustomers:function(eu,ed,eh,ep,ef){return eo.AISAccountsApiFp(et).aISAccountsControllerListAisCustomers(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},aISAccountsControllerListAisDataValidationErrors:function(eu,ed,eh,ep,ef,em,eg){return eo.AISAccountsApiFp(et).aISAccountsControllerListAisDataValidationErrors(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},aISAccountsControllerSyncMissingMonthData:function(eu,ed,eh,ep){return eo.AISAccountsApiFp(et).aISAccountsControllerSyncMissingMonthData(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function AISAccountsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AISAccountsApi,et),AISAccountsApi.prototype.aISAccountsControllerGetAisAccounts=function(et,ei,ea){var eu=this;return eo.AISAccountsApiFp(this.configuration).aISAccountsControllerGetAisAccounts(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},AISAccountsApi.prototype.aISAccountsControllerIgnoreAisDataValidationError=function(et,ei,ea,eu){var ed=this;return eo.AISAccountsApiFp(this.configuration).aISAccountsControllerIgnoreAisDataValidationError(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},AISAccountsApi.prototype.aISAccountsControllerListAisAccounts=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.AISAccountsApiFp(this.configuration).aISAccountsControllerListAisAccounts(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},AISAccountsApi.prototype.aISAccountsControllerListAisCustomers=function(et,ei,ea,eu,ed){var eh=this;return eo.AISAccountsApiFp(this.configuration).aISAccountsControllerListAisCustomers(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},AISAccountsApi.prototype.aISAccountsControllerListAisDataValidationErrors=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.AISAccountsApiFp(this.configuration).aISAccountsControllerListAisDataValidationErrors(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},AISAccountsApi.prototype.aISAccountsControllerSyncMissingMonthData=function(et,ei,ea,eu){var ed=this;return eo.AISAccountsApiFp(this.configuration).aISAccountsControllerSyncMissingMonthData(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},AISAccountsApi}(ef.BaseAPI);eo.AISAccountsApi=em},68070:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.BudgetsApi=eo.BudgetsApiFactory=eo.BudgetsApiFp=eo.BudgetsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.BudgetsApiAxiosParamCreator=function(et){var eo=this;return{manualBudgetsControllerCreateBudget:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling manualBudgetsControllerCreateBudget.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling manualBudgetsControllerCreateBudget.");for(e_ in eo="/clients/{clientId}/budgets/manual".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},manualBudgetsControllerDeleteBudget:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling manualBudgetsControllerDeleteBudget.");if(null==ea)throw new ef.RequiredError("budgetId","Required parameter budgetId was null or undefined when calling manualBudgetsControllerDeleteBudget.");for(e_ in eo="/clients/{clientId}/budgets/manual/{budgetId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{budgetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},manualBudgetsControllerGetBudget:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling manualBudgetsControllerGetBudget.");if(null==ea)throw new ef.RequiredError("budgetId","Required parameter budgetId was null or undefined when calling manualBudgetsControllerGetBudget.");for(e_ in eo="/clients/{clientId}/budgets/manual/{budgetId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{budgetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},manualBudgetsControllerGetBudgets:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling manualBudgetsControllerGetBudgets.");if(null==ea)throw new ef.RequiredError("skip","Required parameter skip was null or undefined when calling manualBudgetsControllerGetBudgets.");if(null==ep)throw new ef.RequiredError("take","Required parameter take was null or undefined when calling manualBudgetsControllerGetBudgets.");for(ew in eo="/clients/{clientId}/budgets/manual".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},void 0!==ea&&(eS.skip=ea),void 0!==ep&&(eS.take=ep),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},manualBudgetsControllerSetBudgetDetails:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling manualBudgetsControllerSetBudgetDetails.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling manualBudgetsControllerSetBudgetDetails.");if(null==ep)throw new ef.RequiredError("budgetId","Required parameter budgetId was null or undefined when calling manualBudgetsControllerSetBudgetDetails.");for(ew in eo="/clients/{clientId}/budgets/manual/{budgetId}/details".replace("{clientId}",encodeURIComponent(String(ea))).replace("{budgetId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},manualBudgetsControllerUpdateBudget:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling manualBudgetsControllerUpdateBudget.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling manualBudgetsControllerUpdateBudget.");if(null==ep)throw new ef.RequiredError("budgetId","Required parameter budgetId was null or undefined when calling manualBudgetsControllerUpdateBudget.");for(ew in eo="/clients/{clientId}/budgets/manual/{budgetId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{budgetId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},qboBudgetsControllerDeleteQboBudget:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboBudgetsControllerDeleteQboBudget.");if(null==ea)throw new ef.RequiredError("budgetId","Required parameter budgetId was null or undefined when calling qboBudgetsControllerDeleteQboBudget.");for(e_ in eo="/clients/{clientId}/budgets/qbo/{budgetId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{budgetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},qboBudgetsControllerGetBudgetVsActuals:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboBudgetsControllerGetBudgetVsActuals.");if(null==ea)throw new ef.RequiredError("budgetId","Required parameter budgetId was null or undefined when calling qboBudgetsControllerGetBudgetVsActuals.");for(e_ in eo="/clients/{clientId}/budgets/qbo/{budgetId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{budgetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},qboBudgetsControllerGetBudgets:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboBudgetsControllerGetBudgets.");for(eS in eo="/clients/{clientId}/budgets/qbo/available".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},qboBudgetsControllerGetImportedBudgets:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboBudgetsControllerGetImportedBudgets.");if(null==ea)throw new ef.RequiredError("skip","Required parameter skip was null or undefined when calling qboBudgetsControllerGetImportedBudgets.");if(null==ep)throw new ef.RequiredError("take","Required parameter take was null or undefined when calling qboBudgetsControllerGetImportedBudgets.");for(ew in eo="/clients/{clientId}/budgets/qbo".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},void 0!==ea&&(eS.skip=ea),void 0!==ep&&(eS.take=ep),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},qboBudgetsControllerImportQboBudget:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling qboBudgetsControllerImportQboBudget.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboBudgetsControllerImportQboBudget.");for(e_ in eo="/clients/{clientId}/budgets/qbo/import".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},qboBudgetsControllerRefreshQboBudget:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboBudgetsControllerRefreshQboBudget.");if(null==ea)throw new ef.RequiredError("budgetId","Required parameter budgetId was null or undefined when calling qboBudgetsControllerRefreshQboBudget.");for(e_ in eo="/clients/{clientId}/budgets/qbo/{budgetId}/refresh".replace("{clientId}",encodeURIComponent(String(ei))).replace("{budgetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.BudgetsApiFp=function(et){return{manualBudgetsControllerCreateBudget:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).manualBudgetsControllerCreateBudget(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},manualBudgetsControllerDeleteBudget:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).manualBudgetsControllerDeleteBudget(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},manualBudgetsControllerGetBudget:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).manualBudgetsControllerGetBudget(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},manualBudgetsControllerGetBudgets:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).manualBudgetsControllerGetBudgets(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},manualBudgetsControllerSetBudgetDetails:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).manualBudgetsControllerSetBudgetDetails(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},manualBudgetsControllerUpdateBudget:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).manualBudgetsControllerUpdateBudget(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qboBudgetsControllerDeleteQboBudget:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).qboBudgetsControllerDeleteQboBudget(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qboBudgetsControllerGetBudgetVsActuals:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).qboBudgetsControllerGetBudgetVsActuals(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qboBudgetsControllerGetBudgets:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).qboBudgetsControllerGetBudgets(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qboBudgetsControllerGetImportedBudgets:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).qboBudgetsControllerGetImportedBudgets(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qboBudgetsControllerImportQboBudget:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).qboBudgetsControllerImportQboBudget(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qboBudgetsControllerRefreshQboBudget:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.BudgetsApiAxiosParamCreator(et).qboBudgetsControllerRefreshQboBudget(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.BudgetsApiFactory=function(et,ei,ea){return{manualBudgetsControllerCreateBudget:function(eu,ed,eh){return eo.BudgetsApiFp(et).manualBudgetsControllerCreateBudget(eu,ed,eh).then(function(et){return et(ea,ei)})},manualBudgetsControllerDeleteBudget:function(eu,ed,eh){return eo.BudgetsApiFp(et).manualBudgetsControllerDeleteBudget(eu,ed,eh).then(function(et){return et(ea,ei)})},manualBudgetsControllerGetBudget:function(eu,ed,eh){return eo.BudgetsApiFp(et).manualBudgetsControllerGetBudget(eu,ed,eh).then(function(et){return et(ea,ei)})},manualBudgetsControllerGetBudgets:function(eu,ed,eh,ep){return eo.BudgetsApiFp(et).manualBudgetsControllerGetBudgets(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},manualBudgetsControllerSetBudgetDetails:function(eu,ed,eh,ep){return eo.BudgetsApiFp(et).manualBudgetsControllerSetBudgetDetails(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},manualBudgetsControllerUpdateBudget:function(eu,ed,eh,ep){return eo.BudgetsApiFp(et).manualBudgetsControllerUpdateBudget(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},qboBudgetsControllerDeleteQboBudget:function(eu,ed,eh){return eo.BudgetsApiFp(et).qboBudgetsControllerDeleteQboBudget(eu,ed,eh).then(function(et){return et(ea,ei)})},qboBudgetsControllerGetBudgetVsActuals:function(eu,ed,eh){return eo.BudgetsApiFp(et).qboBudgetsControllerGetBudgetVsActuals(eu,ed,eh).then(function(et){return et(ea,ei)})},qboBudgetsControllerGetBudgets:function(eu,ed){return eo.BudgetsApiFp(et).qboBudgetsControllerGetBudgets(eu,ed).then(function(et){return et(ea,ei)})},qboBudgetsControllerGetImportedBudgets:function(eu,ed,eh,ep){return eo.BudgetsApiFp(et).qboBudgetsControllerGetImportedBudgets(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},qboBudgetsControllerImportQboBudget:function(eu,ed,eh){return eo.BudgetsApiFp(et).qboBudgetsControllerImportQboBudget(eu,ed,eh).then(function(et){return et(ea,ei)})},qboBudgetsControllerRefreshQboBudget:function(eu,ed,eh){return eo.BudgetsApiFp(et).qboBudgetsControllerRefreshQboBudget(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function BudgetsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(BudgetsApi,et),BudgetsApi.prototype.manualBudgetsControllerCreateBudget=function(et,ei,ea){var eu=this;return eo.BudgetsApiFp(this.configuration).manualBudgetsControllerCreateBudget(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},BudgetsApi.prototype.manualBudgetsControllerDeleteBudget=function(et,ei,ea){var eu=this;return eo.BudgetsApiFp(this.configuration).manualBudgetsControllerDeleteBudget(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},BudgetsApi.prototype.manualBudgetsControllerGetBudget=function(et,ei,ea){var eu=this;return eo.BudgetsApiFp(this.configuration).manualBudgetsControllerGetBudget(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},BudgetsApi.prototype.manualBudgetsControllerGetBudgets=function(et,ei,ea,eu){var ed=this;return eo.BudgetsApiFp(this.configuration).manualBudgetsControllerGetBudgets(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},BudgetsApi.prototype.manualBudgetsControllerSetBudgetDetails=function(et,ei,ea,eu){var ed=this;return eo.BudgetsApiFp(this.configuration).manualBudgetsControllerSetBudgetDetails(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},BudgetsApi.prototype.manualBudgetsControllerUpdateBudget=function(et,ei,ea,eu){var ed=this;return eo.BudgetsApiFp(this.configuration).manualBudgetsControllerUpdateBudget(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},BudgetsApi.prototype.qboBudgetsControllerDeleteQboBudget=function(et,ei,ea){var eu=this;return eo.BudgetsApiFp(this.configuration).qboBudgetsControllerDeleteQboBudget(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},BudgetsApi.prototype.qboBudgetsControllerGetBudgetVsActuals=function(et,ei,ea){var eu=this;return eo.BudgetsApiFp(this.configuration).qboBudgetsControllerGetBudgetVsActuals(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},BudgetsApi.prototype.qboBudgetsControllerGetBudgets=function(et,ei){var ea=this;return eo.BudgetsApiFp(this.configuration).qboBudgetsControllerGetBudgets(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},BudgetsApi.prototype.qboBudgetsControllerGetImportedBudgets=function(et,ei,ea,eu){var ed=this;return eo.BudgetsApiFp(this.configuration).qboBudgetsControllerGetImportedBudgets(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},BudgetsApi.prototype.qboBudgetsControllerImportQboBudget=function(et,ei,ea){var eu=this;return eo.BudgetsApiFp(this.configuration).qboBudgetsControllerImportQboBudget(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},BudgetsApi.prototype.qboBudgetsControllerRefreshQboBudget=function(et,ei,ea){var eu=this;return eo.BudgetsApiFp(this.configuration).qboBudgetsControllerRefreshQboBudget(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},BudgetsApi}(ef.BaseAPI);eo.BudgetsApi=em},23483:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ChartOfAccountsApi=eo.ChartOfAccountsApiFactory=eo.ChartOfAccountsApiFp=eo.ChartOfAccountsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ChartOfAccountsApiAxiosParamCreator=function(et){var eo=this;return{chartOfAccountsControllerCreateChartOfAccounts:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling chartOfAccountsControllerCreateChartOfAccounts.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartOfAccountsControllerCreateChartOfAccounts.");for(e_ in eo="/clients/{clientId}/chart-of-accounts".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},chartOfAccountsControllerGetChartOfAccounts:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartOfAccountsControllerGetChartOfAccounts.");for(eS in eo="/clients/{clientId}/chart-of-accounts".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},chartOfAccountsControllerGetSubAccountForNote:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartOfAccountsControllerGetSubAccountForNote.");for(e_ in eo="/clients/{clientId}/sub-accounts".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},void 0!==ea&&(eC.reportTypeId=ea),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},chartOfAccountsControllerUpdateChartOfAccountPresentationName:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling chartOfAccountsControllerUpdateChartOfAccountPresentationName.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartOfAccountsControllerUpdateChartOfAccountPresentationName.");for(e_ in eo="/clients/{clientId}/chart-of-accounts/presentation-name".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName.");for(e_ in eo="/clients/{clientId}/chart-of-accounts/sub-account-presentation-name".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.ChartOfAccountsApiFp=function(et){return{chartOfAccountsControllerCreateChartOfAccounts:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartOfAccountsApiAxiosParamCreator(et).chartOfAccountsControllerCreateChartOfAccounts(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},chartOfAccountsControllerGetChartOfAccounts:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartOfAccountsApiAxiosParamCreator(et).chartOfAccountsControllerGetChartOfAccounts(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},chartOfAccountsControllerGetSubAccountForNote:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartOfAccountsApiAxiosParamCreator(et).chartOfAccountsControllerGetSubAccountForNote(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},chartOfAccountsControllerUpdateChartOfAccountPresentationName:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartOfAccountsApiAxiosParamCreator(et).chartOfAccountsControllerUpdateChartOfAccountPresentationName(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartOfAccountsApiAxiosParamCreator(et).chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ChartOfAccountsApiFactory=function(et,ei,ea){return{chartOfAccountsControllerCreateChartOfAccounts:function(eu,ed,eh){return eo.ChartOfAccountsApiFp(et).chartOfAccountsControllerCreateChartOfAccounts(eu,ed,eh).then(function(et){return et(ea,ei)})},chartOfAccountsControllerGetChartOfAccounts:function(eu,ed){return eo.ChartOfAccountsApiFp(et).chartOfAccountsControllerGetChartOfAccounts(eu,ed).then(function(et){return et(ea,ei)})},chartOfAccountsControllerGetSubAccountForNote:function(eu,ed,eh){return eo.ChartOfAccountsApiFp(et).chartOfAccountsControllerGetSubAccountForNote(eu,ed,eh).then(function(et){return et(ea,ei)})},chartOfAccountsControllerUpdateChartOfAccountPresentationName:function(eu,ed,eh){return eo.ChartOfAccountsApiFp(et).chartOfAccountsControllerUpdateChartOfAccountPresentationName(eu,ed,eh).then(function(et){return et(ea,ei)})},chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName:function(eu,ed,eh){return eo.ChartOfAccountsApiFp(et).chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function ChartOfAccountsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ChartOfAccountsApi,et),ChartOfAccountsApi.prototype.chartOfAccountsControllerCreateChartOfAccounts=function(et,ei,ea){var eu=this;return eo.ChartOfAccountsApiFp(this.configuration).chartOfAccountsControllerCreateChartOfAccounts(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ChartOfAccountsApi.prototype.chartOfAccountsControllerGetChartOfAccounts=function(et,ei){var ea=this;return eo.ChartOfAccountsApiFp(this.configuration).chartOfAccountsControllerGetChartOfAccounts(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ChartOfAccountsApi.prototype.chartOfAccountsControllerGetSubAccountForNote=function(et,ei,ea){var eu=this;return eo.ChartOfAccountsApiFp(this.configuration).chartOfAccountsControllerGetSubAccountForNote(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ChartOfAccountsApi.prototype.chartOfAccountsControllerUpdateChartOfAccountPresentationName=function(et,ei,ea){var eu=this;return eo.ChartOfAccountsApiFp(this.configuration).chartOfAccountsControllerUpdateChartOfAccountPresentationName(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ChartOfAccountsApi.prototype.chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName=function(et,ei,ea){var eu=this;return eo.ChartOfAccountsApiFp(this.configuration).chartOfAccountsControllerUpdateChartOfAccountSubAccountPresentationName(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ChartOfAccountsApi}(ef.BaseAPI);eo.ChartOfAccountsApi=em},39913:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ChartsAndGraphsApi=eo.ChartsAndGraphsApiFactory=eo.ChartsAndGraphsApiFp=eo.ChartsAndGraphsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ChartsAndGraphsApiAxiosParamCreator=function(et){var eo=this;return{chartsAndGraphsControllerAddUpdateChart:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling chartsAndGraphsControllerAddUpdateChart.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartsAndGraphsControllerAddUpdateChart.");for(e_ in eo="/clients/{clientId}/chart".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},chartsAndGraphsControllerGetChartData:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartsAndGraphsControllerGetChartData.");if(null==ea)throw new ef.RequiredError("chartId","Required parameter chartId was null or undefined when calling chartsAndGraphsControllerGetChartData.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling chartsAndGraphsControllerGetChartData.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling chartsAndGraphsControllerGetChartData.");for(eA in eo="/clients/{clientId}/charts/{chartId}/year/{year}/month/{month}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{chartId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},chartsAndGraphsControllerGetChartDataList:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartsAndGraphsControllerGetChartDataList.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling chartsAndGraphsControllerGetChartDataList.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling chartsAndGraphsControllerGetChartDataList.");if(null==em)throw new ef.RequiredError("chartIds","Required parameter chartIds was null or undefined when calling chartsAndGraphsControllerGetChartDataList.");for(eA in eo="/clients/{clientId}/{year}/{month}/charts".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==em&&(e_.chartIds=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},chartsAndGraphsControllerGetChartsInputs:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling chartsAndGraphsControllerGetChartsInputs.");for(e_ in eo="/clients/{clientId}/chart-inputs".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},void 0!==ea&&(eC.type=ea),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.ChartsAndGraphsApiFp=function(et){return{chartsAndGraphsControllerAddUpdateChart:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartsAndGraphsApiAxiosParamCreator(et).chartsAndGraphsControllerAddUpdateChart(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},chartsAndGraphsControllerGetChartData:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartsAndGraphsApiAxiosParamCreator(et).chartsAndGraphsControllerGetChartData(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},chartsAndGraphsControllerGetChartDataList:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartsAndGraphsApiAxiosParamCreator(et).chartsAndGraphsControllerGetChartDataList(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},chartsAndGraphsControllerGetChartsInputs:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ChartsAndGraphsApiAxiosParamCreator(et).chartsAndGraphsControllerGetChartsInputs(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ChartsAndGraphsApiFactory=function(et,ei,ea){return{chartsAndGraphsControllerAddUpdateChart:function(eu,ed,eh){return eo.ChartsAndGraphsApiFp(et).chartsAndGraphsControllerAddUpdateChart(eu,ed,eh).then(function(et){return et(ea,ei)})},chartsAndGraphsControllerGetChartData:function(eu,ed,eh,ep,ef){return eo.ChartsAndGraphsApiFp(et).chartsAndGraphsControllerGetChartData(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},chartsAndGraphsControllerGetChartDataList:function(eu,ed,eh,ep,ef){return eo.ChartsAndGraphsApiFp(et).chartsAndGraphsControllerGetChartDataList(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},chartsAndGraphsControllerGetChartsInputs:function(eu,ed,eh){return eo.ChartsAndGraphsApiFp(et).chartsAndGraphsControllerGetChartsInputs(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function ChartsAndGraphsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ChartsAndGraphsApi,et),ChartsAndGraphsApi.prototype.chartsAndGraphsControllerAddUpdateChart=function(et,ei,ea){var eu=this;return eo.ChartsAndGraphsApiFp(this.configuration).chartsAndGraphsControllerAddUpdateChart(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ChartsAndGraphsApi.prototype.chartsAndGraphsControllerGetChartData=function(et,ei,ea,eu,ed){var eh=this;return eo.ChartsAndGraphsApiFp(this.configuration).chartsAndGraphsControllerGetChartData(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ChartsAndGraphsApi.prototype.chartsAndGraphsControllerGetChartDataList=function(et,ei,ea,eu,ed){var eh=this;return eo.ChartsAndGraphsApiFp(this.configuration).chartsAndGraphsControllerGetChartDataList(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ChartsAndGraphsApi.prototype.chartsAndGraphsControllerGetChartsInputs=function(et,ei,ea){var eu=this;return eo.ChartsAndGraphsApiFp(this.configuration).chartsAndGraphsControllerGetChartsInputs(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ChartsAndGraphsApi}(ef.BaseAPI);eo.ChartsAndGraphsApi=em},83941:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientAiSettingsApi=eo.ClientAiSettingsApiFactory=eo.ClientAiSettingsApiFp=eo.ClientAiSettingsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ClientAiSettingsApiAxiosParamCreator=function(et){var eo=this;return{clientAiSettingsControllerAddClientSettings:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientAiSettingsControllerAddClientSettings.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientAiSettingsControllerAddClientSettings.");for(e_ in eo="/clients/{clientId}/ai-settings".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientAiSettingsControllerGetClientSettings:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientAiSettingsControllerGetClientSettings.");for(eS in eo="/clients/{clientId}/ai-settings".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.ClientAiSettingsApiFp=function(et){return{clientAiSettingsControllerAddClientSettings:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientAiSettingsApiAxiosParamCreator(et).clientAiSettingsControllerAddClientSettings(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientAiSettingsControllerGetClientSettings:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientAiSettingsApiAxiosParamCreator(et).clientAiSettingsControllerGetClientSettings(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientAiSettingsApiFactory=function(et,ei,ea){return{clientAiSettingsControllerAddClientSettings:function(eu,ed,eh){return eo.ClientAiSettingsApiFp(et).clientAiSettingsControllerAddClientSettings(eu,ed,eh).then(function(et){return et(ea,ei)})},clientAiSettingsControllerGetClientSettings:function(eu,ed){return eo.ClientAiSettingsApiFp(et).clientAiSettingsControllerGetClientSettings(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function ClientAiSettingsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientAiSettingsApi,et),ClientAiSettingsApi.prototype.clientAiSettingsControllerAddClientSettings=function(et,ei,ea){var eu=this;return eo.ClientAiSettingsApiFp(this.configuration).clientAiSettingsControllerAddClientSettings(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientAiSettingsApi.prototype.clientAiSettingsControllerGetClientSettings=function(et,ei){var ea=this;return eo.ClientAiSettingsApiFp(this.configuration).clientAiSettingsControllerGetClientSettings(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientAiSettingsApi}(ef.BaseAPI);eo.ClientAiSettingsApi=em},79013:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientDatasetsApi=eo.ClientDatasetsApiFactory=eo.ClientDatasetsApiFp=eo.ClientDatasetsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ClientDatasetsApiAxiosParamCreator=function(et){var eo=this;return{clientDatasetsControllerAddClientDataset:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerAddClientDataset.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerAddClientDataset.");for(e_ in eo="/clients/{clientId}/client-datasets".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerAddClientList:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerAddClientList.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerAddClientList.");for(e_ in eo="/clients/{clientId}/client-list".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerAddClientListElement:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerAddClientListElement.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerAddClientListElement.");if(null==ep)throw new ef.RequiredError("clientListId","Required parameter clientListId was null or undefined when calling clientDatasetsControllerAddClientListElement.");for(ew in eo="/clients/{clientId}/client-lists/{clientListId}/elements".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientListId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerAddColumns:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerAddColumns.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerAddColumns.");if(null==ep)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerAddColumns.");for(ew in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/columns".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientDatasetId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerAddDataIntoDataset:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerAddDataIntoDataset.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerAddDataIntoDataset.");if(null==ep)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerAddDataIntoDataset.");for(ew in eo="/clients/{clientId}/client-datasets/{clientDatasetId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientDatasetId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerArchiveClientDatset:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerArchiveClientDatset.");if(null==ea)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerArchiveClientDatset.");for(e_ in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/archive".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientDatasetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerArchiveClientList:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerArchiveClientList.");if(null==ea)throw new ef.RequiredError("clientListId","Required parameter clientListId was null or undefined when calling clientDatasetsControllerArchiveClientList.");for(e_ in eo="/clients/{clientId}/client-lists/{clientListId}/archive".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientListId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerCheckIfDataSetExists:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerCheckIfDataSetExists.");if(null==ea)throw new ef.RequiredError("datasetName","Required parameter datasetName was null or undefined when calling clientDatasetsControllerCheckIfDataSetExists.");for(e_ in eo="/clients/{clientId}/client-datasets/exists".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},void 0!==ea&&(eC.datasetName=ea),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerDeleteClientListElement:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerDeleteClientListElement.");if(null==ea)throw new ef.RequiredError("clientListId","Required parameter clientListId was null or undefined when calling clientDatasetsControllerDeleteClientListElement.");if(null==ep)throw new ef.RequiredError("element","Required parameter element was null or undefined when calling clientDatasetsControllerDeleteClientListElement.");for(ew in eo="/clients/{clientId}/client-lists/{clientListId}/elements".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientListId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"DELETE"},eg),em),eC={},eS={},void 0!==ep&&(eS.element=ep),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerDeleteColumns:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerDeleteColumns.");if(null==ea)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerDeleteColumns.");if(null==ep)throw new ef.RequiredError("code","Required parameter code was null or undefined when calling clientDatasetsControllerDeleteColumns.");for(ew in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/columns/{code}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientDatasetId}",encodeURIComponent(String(ea))).replace("{code}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"DELETE"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerDeleteDataFromClientDataset:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerDeleteDataFromClientDataset.");if(null==ea)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerDeleteDataFromClientDataset.");if(null==ep)throw new ef.RequiredError("dataId","Required parameter dataId was null or undefined when calling clientDatasetsControllerDeleteDataFromClientDataset.");for(ew in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/data/{dataId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientDatasetId}",encodeURIComponent(String(ea))).replace("{dataId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"DELETE"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerGetClientDatasetById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerGetClientDatasetById.");if(null==ea)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerGetClientDatasetById.");for(e_ in eo="/clients/{clientId}/client-datasets/{clientDatasetId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientDatasetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerGetClientDatasetVariables:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerGetClientDatasetVariables.");if(null==ea)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerGetClientDatasetVariables.");for(ew in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/variables".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientDatasetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},void 0!==ep&&(eS.filterBy=ep),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerGetClientListById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerGetClientListById.");if(null==ea)throw new ef.RequiredError("clientListId","Required parameter clientListId was null or undefined when calling clientDatasetsControllerGetClientListById.");for(e_ in eo="/clients/{clientId}/client-lists/{clientListId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientListId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerGetDataById:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerGetDataById.");if(null==ea)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerGetDataById.");if(null==ep)throw new ef.RequiredError("dataId","Required parameter dataId was null or undefined when calling clientDatasetsControllerGetDataById.");for(ew in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/data/{dataId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientDatasetId}",encodeURIComponent(String(ea))).replace("{dataId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerListClientDatasets:function(ei,ea,ep,em,eg,ey,eC,eS){return void 0===eS&&(eS={}),ed(eo,void 0,void 0,function(){var eo,ed,e_,ew,eA,eI,eR,eT,eE;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerListClientDatasets.");for(eT in eo="/clients/{clientId}/client-datasets".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(e_=et.baseOptions),ew=eu(eu({method:"GET"},e_),eS),eA={},eI={},void 0!==ea&&(eI.archive=ea),void 0!==ep&&(eI.sortDir=ep),void 0!==em&&(eI.sortBy=em),void 0!==eg&&(eI.take=eg),void 0!==ey&&(eI.skip=ey),void 0!==eC&&(eI.searchTerm=eC),eR=new URLSearchParams(ed.search),eI)eR.set(eT,eI[eT]);for(eT in eS.query)eR.set(eT,eS.query[eT]);return ed.search=new URLSearchParams(eR).toString(),eE=e_&&e_.headers?e_.headers:{},ew.headers=eu(eu(eu({},eA),eE),eS.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ew}]})})},clientDatasetsControllerListClientLists:function(ei,ea,ep,em,eg,ey,eC,eS){return void 0===eS&&(eS={}),ed(eo,void 0,void 0,function(){var eo,ed,e_,ew,eA,eI,eR,eT,eE;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerListClientLists.");for(eT in eo="/clients/{clientId}/client-lists".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(e_=et.baseOptions),ew=eu(eu({method:"GET"},e_),eS),eA={},eI={},void 0!==ea&&(eI.archive=ea),void 0!==ep&&(eI.sortDir=ep),void 0!==em&&(eI.sortBy=em),void 0!==eg&&(eI.take=eg),void 0!==ey&&(eI.skip=ey),void 0!==eC&&(eI.searchTerm=eC),eR=new URLSearchParams(ed.search),eI)eR.set(eT,eI[eT]);for(eT in eS.query)eR.set(eT,eS.query[eT]);return ed.search=new URLSearchParams(eR).toString(),eE=e_&&e_.headers?e_.headers:{},ew.headers=eu(eu(eu({},eA),eE),eS.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ew}]})})},clientDatasetsControllerPatchClientDataset:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerPatchClientDataset.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerPatchClientDataset.");if(null==ep)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerPatchClientDataset.");for(ew in eo="/clients/{clientId}/client-datasets/{clientDatasetId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientDatasetId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerPatchClientListById:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerPatchClientListById.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerPatchClientListById.");if(null==ep)throw new ef.RequiredError("clientListId","Required parameter clientListId was null or undefined when calling clientDatasetsControllerPatchClientListById.");for(ew in eo="/clients/{clientId}/client-lists/{clientListId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientListId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerRestoreClientDatset:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerRestoreClientDatset.");if(null==ea)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerRestoreClientDatset.");for(e_ in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/restore".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientDatasetId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerRestoreClientList:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerRestoreClientList.");if(null==ea)throw new ef.RequiredError("clientListId","Required parameter clientListId was null or undefined when calling clientDatasetsControllerRestoreClientList.");for(e_ in eo="/clients/{clientId}/client-lists/{clientListId}/restore".replace("{clientId}",encodeURIComponent(String(ei))).replace("{clientListId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientDatasetsControllerUpdateClientListById:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerUpdateClientListById.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerUpdateClientListById.");if(null==ep)throw new ef.RequiredError("clientListId","Required parameter clientListId was null or undefined when calling clientDatasetsControllerUpdateClientListById.");for(ew in eo="/clients/{clientId}/client-lists/{clientListId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientListId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PUT"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientDatasetsControllerUpdateColumns:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerUpdateColumns.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerUpdateColumns.");if(null==ep)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerUpdateColumns.");if(null==em)throw new ef.RequiredError("code","Required parameter code was null or undefined when calling clientDatasetsControllerUpdateColumns.");for(eA in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/columns/{code}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientDatasetId}",encodeURIComponent(String(ep))).replace("{code}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"PATCH"},ey),eg),e_={},(eS={})["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),eR="string"!=typeof ei||"application/json"===eC.headers["Content-Type"],eC.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},clientDatasetsControllerUpdateDataFromClientDataset:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientDatasetsControllerUpdateDataFromClientDataset.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerUpdateDataFromClientDataset.");if(null==ep)throw new ef.RequiredError("clientDatasetId","Required parameter clientDatasetId was null or undefined when calling clientDatasetsControllerUpdateDataFromClientDataset.");if(null==em)throw new ef.RequiredError("dataId","Required parameter dataId was null or undefined when calling clientDatasetsControllerUpdateDataFromClientDataset.");for(eA in eo="/clients/{clientId}/client-datasets/{clientDatasetId}/data/{dataId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{clientDatasetId}",encodeURIComponent(String(ep))).replace("{dataId}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"PATCH"},ey),eg),e_={},(eS={})["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),eR="string"!=typeof ei||"application/json"===eC.headers["Content-Type"],eC.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},clientDatasetsControllerUploadCsv:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientDatasetsControllerUploadCsv.");for(eS in eo="/clients/{clientId}/client-datasets/upload".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.ClientDatasetsApiFp=function(et){return{clientDatasetsControllerAddClientDataset:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerAddClientDataset(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerAddClientList:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerAddClientList(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerAddClientListElement:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerAddClientListElement(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerAddColumns:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerAddColumns(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerAddDataIntoDataset:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerAddDataIntoDataset(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerArchiveClientDatset:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerArchiveClientDatset(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerArchiveClientList:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerArchiveClientList(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerCheckIfDataSetExists:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerCheckIfDataSetExists(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerDeleteClientListElement:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerDeleteClientListElement(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerDeleteColumns:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerDeleteColumns(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerDeleteDataFromClientDataset:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerDeleteDataFromClientDataset(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerGetClientDatasetById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerGetClientDatasetById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerGetClientDatasetVariables:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerGetClientDatasetVariables(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerGetClientListById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerGetClientListById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerGetDataById:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerGetDataById(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerListClientDatasets:function(ei,ea,em,eg,ey,eC,eS,e_){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerListClientDatasets(ei,ea,em,eg,ey,eC,eS,e_)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerListClientLists:function(ei,ea,em,eg,ey,eC,eS,e_){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerListClientLists(ei,ea,em,eg,ey,eC,eS,e_)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerPatchClientDataset:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerPatchClientDataset(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerPatchClientListById:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerPatchClientListById(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerRestoreClientDatset:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerRestoreClientDatset(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerRestoreClientList:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerRestoreClientList(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerUpdateClientListById:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerUpdateClientListById(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerUpdateColumns:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerUpdateColumns(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerUpdateDataFromClientDataset:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerUpdateDataFromClientDataset(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientDatasetsControllerUploadCsv:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientDatasetsApiAxiosParamCreator(et).clientDatasetsControllerUploadCsv(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientDatasetsApiFactory=function(et,ei,ea){return{clientDatasetsControllerAddClientDataset:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerAddClientDataset(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerAddClientList:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerAddClientList(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerAddClientListElement:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerAddClientListElement(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerAddColumns:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerAddColumns(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerAddDataIntoDataset:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerAddDataIntoDataset(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerArchiveClientDatset:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerArchiveClientDatset(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerArchiveClientList:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerArchiveClientList(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerCheckIfDataSetExists:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerCheckIfDataSetExists(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerDeleteClientListElement:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerDeleteClientListElement(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerDeleteColumns:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerDeleteColumns(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerDeleteDataFromClientDataset:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerDeleteDataFromClientDataset(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerGetClientDatasetById:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerGetClientDatasetById(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerGetClientDatasetVariables:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerGetClientDatasetVariables(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerGetClientListById:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerGetClientListById(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerGetDataById:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerGetDataById(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerListClientDatasets:function(eu,ed,eh,ep,ef,em,eg,ey){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerListClientDatasets(eu,ed,eh,ep,ef,em,eg,ey).then(function(et){return et(ea,ei)})},clientDatasetsControllerListClientLists:function(eu,ed,eh,ep,ef,em,eg,ey){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerListClientLists(eu,ed,eh,ep,ef,em,eg,ey).then(function(et){return et(ea,ei)})},clientDatasetsControllerPatchClientDataset:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerPatchClientDataset(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerPatchClientListById:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerPatchClientListById(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerRestoreClientDatset:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerRestoreClientDatset(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerRestoreClientList:function(eu,ed,eh){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerRestoreClientList(eu,ed,eh).then(function(et){return et(ea,ei)})},clientDatasetsControllerUpdateClientListById:function(eu,ed,eh,ep){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerUpdateClientListById(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientDatasetsControllerUpdateColumns:function(eu,ed,eh,ep,ef){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerUpdateColumns(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientDatasetsControllerUpdateDataFromClientDataset:function(eu,ed,eh,ep,ef){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerUpdateDataFromClientDataset(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientDatasetsControllerUploadCsv:function(eu,ed){return eo.ClientDatasetsApiFp(et).clientDatasetsControllerUploadCsv(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function ClientDatasetsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientDatasetsApi,et),ClientDatasetsApi.prototype.clientDatasetsControllerAddClientDataset=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerAddClientDataset(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerAddClientList=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerAddClientList(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerAddClientListElement=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerAddClientListElement(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerAddColumns=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerAddColumns(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerAddDataIntoDataset=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerAddDataIntoDataset(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerArchiveClientDatset=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerArchiveClientDatset(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerArchiveClientList=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerArchiveClientList(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerCheckIfDataSetExists=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerCheckIfDataSetExists(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerDeleteClientListElement=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerDeleteClientListElement(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerDeleteColumns=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerDeleteColumns(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerDeleteDataFromClientDataset=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerDeleteDataFromClientDataset(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerGetClientDatasetById=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerGetClientDatasetById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerGetClientDatasetVariables=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerGetClientDatasetVariables(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerGetClientListById=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerGetClientListById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerGetDataById=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerGetDataById(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerListClientDatasets=function(et,ei,ea,eu,ed,eh,ep,ef){var em=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerListClientDatasets(et,ei,ea,eu,ed,eh,ep,ef).then(function(et){return et(em.axios,em.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerListClientLists=function(et,ei,ea,eu,ed,eh,ep,ef){var em=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerListClientLists(et,ei,ea,eu,ed,eh,ep,ef).then(function(et){return et(em.axios,em.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerPatchClientDataset=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerPatchClientDataset(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerPatchClientListById=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerPatchClientListById(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerRestoreClientDatset=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerRestoreClientDatset(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerRestoreClientList=function(et,ei,ea){var eu=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerRestoreClientList(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerUpdateClientListById=function(et,ei,ea,eu){var ed=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerUpdateClientListById(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerUpdateColumns=function(et,ei,ea,eu,ed){var eh=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerUpdateColumns(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerUpdateDataFromClientDataset=function(et,ei,ea,eu,ed){var eh=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerUpdateDataFromClientDataset(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ClientDatasetsApi.prototype.clientDatasetsControllerUploadCsv=function(et,ei){var ea=this;return eo.ClientDatasetsApiFp(this.configuration).clientDatasetsControllerUploadCsv(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientDatasetsApi}(ef.BaseAPI);eo.ClientDatasetsApi=em},41941:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientGoalsApi=eo.ClientGoalsApiFactory=eo.ClientGoalsApiFp=eo.ClientGoalsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ClientGoalsApiAxiosParamCreator=function(et){var eo=this;return{clientGoalsControllerAddClientGoal:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientGoalsControllerAddClientGoal.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerAddClientGoal.");for(e_ in eo="/clients/{clientId}/goals".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientGoalsControllerAddClientGoalNote:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientGoalsControllerAddClientGoalNote.");if(null==ea)throw new ef.RequiredError("notesType","Required parameter notesType was null or undefined when calling clientGoalsControllerAddClientGoalNote.");if(null==ep)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerAddClientGoalNote.");if(null==em)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerAddClientGoalNote.");for(eA in eo="/clients/{clientId}/goals/{goalId}/internal-notes".replace("{clientId}",encodeURIComponent(String(ep))).replace("{goalId}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"POST"},ey),eg),eS={},e_={},void 0!==ea&&(e_.notesType=ea),eS["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),eR="string"!=typeof ei||"application/json"===eC.headers["Content-Type"],eC.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},clientGoalsControllerArchiveClientGoalById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerArchiveClientGoalById.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerArchiveClientGoalById.");for(e_ in eo="/clients/{clientId}/goals/{goalId}/archive".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientGoalsControllerDeleteClientGoalNotesById:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerDeleteClientGoalNotesById.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerDeleteClientGoalNotesById.");if(null==ep)throw new ef.RequiredError("noteId","Required parameter noteId was null or undefined when calling clientGoalsControllerDeleteClientGoalNotesById.");if(null==em)throw new ef.RequiredError("notesType","Required parameter notesType was null or undefined when calling clientGoalsControllerDeleteClientGoalNotesById.");for(eA in eo="/clients/{clientId}/goals/{goalId}/internal-notes/{noteId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))).replace("{noteId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"DELETE"},ey),eg),eS={},e_={},void 0!==em&&(e_.notesType=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},clientGoalsControllerGetClientGoalById:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerGetClientGoalById.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerGetClientGoalById.");for(eA in eo="/clients/{clientId}/goals/{goalId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==ep&&(e_.year=ep),void 0!==em&&(e_.month=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},clientGoalsControllerGetClientGoalNotes:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerGetClientGoalNotes.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerGetClientGoalNotes.");if(null==ep)throw new ef.RequiredError("notesType","Required parameter notesType was null or undefined when calling clientGoalsControllerGetClientGoalNotes.");for(eR in eo="/clients/{clientId}/goals/{goalId}/internal-notes".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==ep&&(eA.notesType=ep),void 0!==em&&(eA.searchTerm=em),void 0!==eg&&(eA.take=eg),void 0!==ey&&(eA.skip=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},clientGoalsControllerGetClientGoalProgress:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerGetClientGoalProgress.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerGetClientGoalProgress.");for(e_ in eo="/clients/{clientId}/goals/{goalId}/progress".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientGoalsControllerGetClientGoals:function(ei,ea,ep,em,eg,ey,eC,eS){return void 0===eS&&(eS={}),ed(eo,void 0,void 0,function(){var eo,ed,e_,ew,eA,eI,eR,eT,eE;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerGetClientGoals.");if(null==ea)throw new ef.RequiredError("pagination","Required parameter pagination was null or undefined when calling clientGoalsControllerGetClientGoals.");for(eT in eo="/clients/{clientId}/goals".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(e_=et.baseOptions),ew=eu(eu({method:"GET"},e_),eS),eA={},eI={},void 0!==ea&&(eI.pagination=ea),void 0!==ep&&(eI.archive=ep),void 0!==em&&(eI.filterBy=em),void 0!==eg&&(eI.searchTerm=eg),void 0!==ey&&(eI.take=ey),void 0!==eC&&(eI.skip=eC),eR=new URLSearchParams(ed.search),eI)eR.set(eT,eI[eT]);for(eT in eS.query)eR.set(eT,eS.query[eT]);return ed.search=new URLSearchParams(eR).toString(),eE=e_&&e_.headers?e_.headers:{},ew.headers=eu(eu(eu({},eA),eE),eS.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ew}]})})},clientGoalsControllerGetClientGoalsById:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerGetClientGoalsById.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling clientGoalsControllerGetClientGoalsById.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling clientGoalsControllerGetClientGoalsById.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/report-goals".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientGoalsControllerGetPreviousMonthReportGoalsStatus:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerGetPreviousMonthReportGoalsStatus.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling clientGoalsControllerGetPreviousMonthReportGoalsStatus.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling clientGoalsControllerGetPreviousMonthReportGoalsStatus.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/goals-status".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientGoalsControllerLockClientGoalById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerLockClientGoalById.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerLockClientGoalById.");for(e_ in eo="/clients/{clientId}/goals/{goalId}/lock".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientGoalsControllerReOrderGoals:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientGoalsControllerReOrderGoals.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerReOrderGoals.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling clientGoalsControllerReOrderGoals.");for(ew in eo="/clients/{clientId}/goals/year/{year}/re-order".replace("{clientId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientGoalsControllerRestoreClientGoalById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerRestoreClientGoalById.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerRestoreClientGoalById.");for(e_ in eo="/clients/{clientId}/goals/{goalId}/restore".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientGoalsControllerUnlockClientGoalById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerUnlockClientGoalById.");if(null==ea)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerUnlockClientGoalById.");for(e_ in eo="/clients/{clientId}/goals/{goalId}/unlock".replace("{clientId}",encodeURIComponent(String(ei))).replace("{goalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientGoalsControllerUpdateGoal:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientGoalsControllerUpdateGoal.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerUpdateGoal.");if(null==ep)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerUpdateGoal.");for(ew in eo="/clients/{clientId}/goals/{goalId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{goalId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientGoalsControllerUpdateNote:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientGoalsControllerUpdateNote.");if(null==ea)throw new ef.RequiredError("notesType","Required parameter notesType was null or undefined when calling clientGoalsControllerUpdateNote.");if(null==ep)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientGoalsControllerUpdateNote.");if(null==em)throw new ef.RequiredError("goalId","Required parameter goalId was null or undefined when calling clientGoalsControllerUpdateNote.");if(null==eg)throw new ef.RequiredError("noteId","Required parameter noteId was null or undefined when calling clientGoalsControllerUpdateNote.");for(eI in eo="/clients/{clientId}/goals/{goalId}/internal-notes/{noteId}".replace("{clientId}",encodeURIComponent(String(ep))).replace("{goalId}",encodeURIComponent(String(em))).replace("{noteId}",encodeURIComponent(String(eg))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"PATCH"},eC),ey),e_={},ew={},void 0!==ea&&(ew.notesType=ea),e_["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),eT="string"!=typeof ei||"application/json"===eS.headers["Content-Type"],eS.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})}}},eo.ClientGoalsApiFp=function(et){return{clientGoalsControllerAddClientGoal:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerAddClientGoal(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerAddClientGoalNote:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerAddClientGoalNote(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerArchiveClientGoalById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerArchiveClientGoalById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerDeleteClientGoalNotesById:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerDeleteClientGoalNotesById(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerGetClientGoalById:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerGetClientGoalById(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerGetClientGoalNotes:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerGetClientGoalNotes(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerGetClientGoalProgress:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerGetClientGoalProgress(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerGetClientGoals:function(ei,ea,em,eg,ey,eC,eS,e_){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerGetClientGoals(ei,ea,em,eg,ey,eC,eS,e_)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerGetClientGoalsById:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerGetClientGoalsById(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerGetPreviousMonthReportGoalsStatus:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerGetPreviousMonthReportGoalsStatus(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerLockClientGoalById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerLockClientGoalById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerReOrderGoals:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerReOrderGoals(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerRestoreClientGoalById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerRestoreClientGoalById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerUnlockClientGoalById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerUnlockClientGoalById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerUpdateGoal:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerUpdateGoal(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientGoalsControllerUpdateNote:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientGoalsApiAxiosParamCreator(et).clientGoalsControllerUpdateNote(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientGoalsApiFactory=function(et,ei,ea){return{clientGoalsControllerAddClientGoal:function(eu,ed,eh){return eo.ClientGoalsApiFp(et).clientGoalsControllerAddClientGoal(eu,ed,eh).then(function(et){return et(ea,ei)})},clientGoalsControllerAddClientGoalNote:function(eu,ed,eh,ep,ef){return eo.ClientGoalsApiFp(et).clientGoalsControllerAddClientGoalNote(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientGoalsControllerArchiveClientGoalById:function(eu,ed,eh){return eo.ClientGoalsApiFp(et).clientGoalsControllerArchiveClientGoalById(eu,ed,eh).then(function(et){return et(ea,ei)})},clientGoalsControllerDeleteClientGoalNotesById:function(eu,ed,eh,ep,ef){return eo.ClientGoalsApiFp(et).clientGoalsControllerDeleteClientGoalNotesById(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientGoalsControllerGetClientGoalById:function(eu,ed,eh,ep,ef){return eo.ClientGoalsApiFp(et).clientGoalsControllerGetClientGoalById(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientGoalsControllerGetClientGoalNotes:function(eu,ed,eh,ep,ef,em,eg){return eo.ClientGoalsApiFp(et).clientGoalsControllerGetClientGoalNotes(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},clientGoalsControllerGetClientGoalProgress:function(eu,ed,eh){return eo.ClientGoalsApiFp(et).clientGoalsControllerGetClientGoalProgress(eu,ed,eh).then(function(et){return et(ea,ei)})},clientGoalsControllerGetClientGoals:function(eu,ed,eh,ep,ef,em,eg,ey){return eo.ClientGoalsApiFp(et).clientGoalsControllerGetClientGoals(eu,ed,eh,ep,ef,em,eg,ey).then(function(et){return et(ea,ei)})},clientGoalsControllerGetClientGoalsById:function(eu,ed,eh,ep){return eo.ClientGoalsApiFp(et).clientGoalsControllerGetClientGoalsById(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientGoalsControllerGetPreviousMonthReportGoalsStatus:function(eu,ed,eh,ep){return eo.ClientGoalsApiFp(et).clientGoalsControllerGetPreviousMonthReportGoalsStatus(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientGoalsControllerLockClientGoalById:function(eu,ed,eh){return eo.ClientGoalsApiFp(et).clientGoalsControllerLockClientGoalById(eu,ed,eh).then(function(et){return et(ea,ei)})},clientGoalsControllerReOrderGoals:function(eu,ed,eh,ep){return eo.ClientGoalsApiFp(et).clientGoalsControllerReOrderGoals(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientGoalsControllerRestoreClientGoalById:function(eu,ed,eh){return eo.ClientGoalsApiFp(et).clientGoalsControllerRestoreClientGoalById(eu,ed,eh).then(function(et){return et(ea,ei)})},clientGoalsControllerUnlockClientGoalById:function(eu,ed,eh){return eo.ClientGoalsApiFp(et).clientGoalsControllerUnlockClientGoalById(eu,ed,eh).then(function(et){return et(ea,ei)})},clientGoalsControllerUpdateGoal:function(eu,ed,eh,ep){return eo.ClientGoalsApiFp(et).clientGoalsControllerUpdateGoal(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientGoalsControllerUpdateNote:function(eu,ed,eh,ep,ef,em){return eo.ClientGoalsApiFp(et).clientGoalsControllerUpdateNote(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})}}};var em=function(et){function ClientGoalsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientGoalsApi,et),ClientGoalsApi.prototype.clientGoalsControllerAddClientGoal=function(et,ei,ea){var eu=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerAddClientGoal(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerAddClientGoalNote=function(et,ei,ea,eu,ed){var eh=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerAddClientGoalNote(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerArchiveClientGoalById=function(et,ei,ea){var eu=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerArchiveClientGoalById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerDeleteClientGoalNotesById=function(et,ei,ea,eu,ed){var eh=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerDeleteClientGoalNotesById(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerGetClientGoalById=function(et,ei,ea,eu,ed){var eh=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerGetClientGoalById(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerGetClientGoalNotes=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerGetClientGoalNotes(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerGetClientGoalProgress=function(et,ei,ea){var eu=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerGetClientGoalProgress(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerGetClientGoals=function(et,ei,ea,eu,ed,eh,ep,ef){var em=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerGetClientGoals(et,ei,ea,eu,ed,eh,ep,ef).then(function(et){return et(em.axios,em.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerGetClientGoalsById=function(et,ei,ea,eu){var ed=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerGetClientGoalsById(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerGetPreviousMonthReportGoalsStatus=function(et,ei,ea,eu){var ed=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerGetPreviousMonthReportGoalsStatus(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerLockClientGoalById=function(et,ei,ea){var eu=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerLockClientGoalById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerReOrderGoals=function(et,ei,ea,eu){var ed=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerReOrderGoals(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerRestoreClientGoalById=function(et,ei,ea){var eu=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerRestoreClientGoalById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerUnlockClientGoalById=function(et,ei,ea){var eu=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerUnlockClientGoalById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerUpdateGoal=function(et,ei,ea,eu){var ed=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerUpdateGoal(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientGoalsApi.prototype.clientGoalsControllerUpdateNote=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ClientGoalsApiFp(this.configuration).clientGoalsControllerUpdateNote(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ClientGoalsApi}(ef.BaseAPI);eo.ClientGoalsApi=em},1281:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientPortalsApi=eo.ClientPortalsApiFactory=eo.ClientPortalsApiFp=eo.ClientPortalsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ClientPortalsApiAxiosParamCreator=function(et){var eo=this;return{clientPortalControllerAddWelcomeMessage:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("file","Required parameter file was null or undefined when calling clientPortalControllerAddWelcomeMessage.");if(null==ea)throw new ef.RequiredError("message","Required parameter message was null or undefined when calling clientPortalControllerAddWelcomeMessage.");if(null==ep)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientPortalControllerAddWelcomeMessage.");for(eA in eo="/clients/{clientId}/welcome-message".replace("{clientId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new FormData,void 0!==ei&&e_.append("file",ei),void 0!==ea&&e_.append("message",ea),eC["Content-Type"]="multipart/form-data",ew=new URLSearchParams(ed.search),eS)ew.set(eA,eS[eA]);for(eA in em.query)ew.set(eA,em.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eI),em.headers),ey.data=e_,[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},clientPortalControllerArchiveClientUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientPortalControllerArchiveClientUser.");for(eS in eo="/clients/{clientId}/welcome-message/archive".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientPortalControllerCreateCpConfiguration:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientPortalControllerCreateCpConfiguration.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientPortalControllerCreateCpConfiguration.");for(e_ in eo="/clients/{clientId}/cp-configurations".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientPortalControllerGetClientWelcomeMessageById:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientPortalControllerGetClientWelcomeMessageById.");for(eS in eo="/clients/{clientId}/welcome-message".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientPortalControllerGetCpConfiguration:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientPortalControllerGetCpConfiguration.");for(eS in eo="/clients/{clientId}/cp-configurations".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientPortalControllerListAvailableWidgetsByClient:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientPortalControllerListAvailableWidgetsByClient.");if(null==ea)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling clientPortalControllerListAvailableWidgetsByClient.");for(eA in eo="/clients/{clientId}/available-widgets".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==ep&&(e_.year=ep),void 0!==em&&(e_.month=em),void 0!==ea&&(e_.mode=ea),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},clientPortalControllerRestoreClientUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientPortalControllerRestoreClientUser.");for(eS in eo="/clients/{clientId}/welcome-message/restore".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.ClientPortalsApiFp=function(et){return{clientPortalControllerAddWelcomeMessage:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientPortalsApiAxiosParamCreator(et).clientPortalControllerAddWelcomeMessage(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientPortalControllerArchiveClientUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientPortalsApiAxiosParamCreator(et).clientPortalControllerArchiveClientUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientPortalControllerCreateCpConfiguration:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientPortalsApiAxiosParamCreator(et).clientPortalControllerCreateCpConfiguration(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientPortalControllerGetClientWelcomeMessageById:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientPortalsApiAxiosParamCreator(et).clientPortalControllerGetClientWelcomeMessageById(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientPortalControllerGetCpConfiguration:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientPortalsApiAxiosParamCreator(et).clientPortalControllerGetCpConfiguration(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientPortalControllerListAvailableWidgetsByClient:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientPortalsApiAxiosParamCreator(et).clientPortalControllerListAvailableWidgetsByClient(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientPortalControllerRestoreClientUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientPortalsApiAxiosParamCreator(et).clientPortalControllerRestoreClientUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientPortalsApiFactory=function(et,ei,ea){return{clientPortalControllerAddWelcomeMessage:function(eu,ed,eh,ep){return eo.ClientPortalsApiFp(et).clientPortalControllerAddWelcomeMessage(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientPortalControllerArchiveClientUser:function(eu,ed){return eo.ClientPortalsApiFp(et).clientPortalControllerArchiveClientUser(eu,ed).then(function(et){return et(ea,ei)})},clientPortalControllerCreateCpConfiguration:function(eu,ed,eh){return eo.ClientPortalsApiFp(et).clientPortalControllerCreateCpConfiguration(eu,ed,eh).then(function(et){return et(ea,ei)})},clientPortalControllerGetClientWelcomeMessageById:function(eu,ed){return eo.ClientPortalsApiFp(et).clientPortalControllerGetClientWelcomeMessageById(eu,ed).then(function(et){return et(ea,ei)})},clientPortalControllerGetCpConfiguration:function(eu,ed){return eo.ClientPortalsApiFp(et).clientPortalControllerGetCpConfiguration(eu,ed).then(function(et){return et(ea,ei)})},clientPortalControllerListAvailableWidgetsByClient:function(eu,ed,eh,ep,ef){return eo.ClientPortalsApiFp(et).clientPortalControllerListAvailableWidgetsByClient(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientPortalControllerRestoreClientUser:function(eu,ed){return eo.ClientPortalsApiFp(et).clientPortalControllerRestoreClientUser(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function ClientPortalsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientPortalsApi,et),ClientPortalsApi.prototype.clientPortalControllerAddWelcomeMessage=function(et,ei,ea,eu){var ed=this;return eo.ClientPortalsApiFp(this.configuration).clientPortalControllerAddWelcomeMessage(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientPortalsApi.prototype.clientPortalControllerArchiveClientUser=function(et,ei){var ea=this;return eo.ClientPortalsApiFp(this.configuration).clientPortalControllerArchiveClientUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientPortalsApi.prototype.clientPortalControllerCreateCpConfiguration=function(et,ei,ea){var eu=this;return eo.ClientPortalsApiFp(this.configuration).clientPortalControllerCreateCpConfiguration(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientPortalsApi.prototype.clientPortalControllerGetClientWelcomeMessageById=function(et,ei){var ea=this;return eo.ClientPortalsApiFp(this.configuration).clientPortalControllerGetClientWelcomeMessageById(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientPortalsApi.prototype.clientPortalControllerGetCpConfiguration=function(et,ei){var ea=this;return eo.ClientPortalsApiFp(this.configuration).clientPortalControllerGetCpConfiguration(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientPortalsApi.prototype.clientPortalControllerListAvailableWidgetsByClient=function(et,ei,ea,eu,ed){var eh=this;return eo.ClientPortalsApiFp(this.configuration).clientPortalControllerListAvailableWidgetsByClient(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ClientPortalsApi.prototype.clientPortalControllerRestoreClientUser=function(et,ei){var ea=this;return eo.ClientPortalsApiFp(this.configuration).clientPortalControllerRestoreClientUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientPortalsApi}(ef.BaseAPI);eo.ClientPortalsApi=em},82647:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientSettingsApi=eo.ClientSettingsApiFactory=eo.ClientSettingsApiFp=eo.ClientSettingsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ClientSettingsApiAxiosParamCreator=function(et){var eo=this;return{clientSettingsControllerAddClientSettings:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientSettingsControllerAddClientSettings.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientSettingsControllerAddClientSettings.");for(e_ in eo="/clients/{clientId}/client-settings".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientSettingsControllerAddReportValidationSettings:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientSettingsControllerAddReportValidationSettings.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientSettingsControllerAddReportValidationSettings.");for(e_ in eo="/clients/{clientId}/client-settings/validation-settings".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientSettingsControllerGetClientSettings:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientSettingsControllerGetClientSettings.");for(eS in eo="/clients/{clientId}/client-settings".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.ClientSettingsApiFp=function(et){return{clientSettingsControllerAddClientSettings:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientSettingsApiAxiosParamCreator(et).clientSettingsControllerAddClientSettings(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientSettingsControllerAddReportValidationSettings:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientSettingsApiAxiosParamCreator(et).clientSettingsControllerAddReportValidationSettings(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientSettingsControllerGetClientSettings:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientSettingsApiAxiosParamCreator(et).clientSettingsControllerGetClientSettings(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientSettingsApiFactory=function(et,ei,ea){return{clientSettingsControllerAddClientSettings:function(eu,ed,eh){return eo.ClientSettingsApiFp(et).clientSettingsControllerAddClientSettings(eu,ed,eh).then(function(et){return et(ea,ei)})},clientSettingsControllerAddReportValidationSettings:function(eu,ed,eh){return eo.ClientSettingsApiFp(et).clientSettingsControllerAddReportValidationSettings(eu,ed,eh).then(function(et){return et(ea,ei)})},clientSettingsControllerGetClientSettings:function(eu,ed){return eo.ClientSettingsApiFp(et).clientSettingsControllerGetClientSettings(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function ClientSettingsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientSettingsApi,et),ClientSettingsApi.prototype.clientSettingsControllerAddClientSettings=function(et,ei,ea){var eu=this;return eo.ClientSettingsApiFp(this.configuration).clientSettingsControllerAddClientSettings(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientSettingsApi.prototype.clientSettingsControllerAddReportValidationSettings=function(et,ei,ea){var eu=this;return eo.ClientSettingsApiFp(this.configuration).clientSettingsControllerAddReportValidationSettings(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientSettingsApi.prototype.clientSettingsControllerGetClientSettings=function(et,ei){var ea=this;return eo.ClientSettingsApiFp(this.configuration).clientSettingsControllerGetClientSettings(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientSettingsApi}(ef.BaseAPI);eo.ClientSettingsApi=em},10107:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientsApi=eo.ClientsApiFactory=eo.ClientsApiFp=eo.ClientsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ClientsApiAxiosParamCreator=function(et){var eo=this;return{clientControllerActivateClient:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerActivateClient.");for(eS in eo="/clients/{clientId}/activate".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientControllerAddClient:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientControllerAddClient.");for(eS in eo="/clients",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),ey={},(eg={})["Content-Type"]="application/json",eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),ew="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=ew?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientControllerAddClientFinancialProfile:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientControllerAddClientFinancialProfile.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerAddClientFinancialProfile.");for(e_ in eo="/clients/{clientId}/financial-profile".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientControllerAddLongTermGoal:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientControllerAddLongTermGoal.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerAddLongTermGoal.");for(e_ in eo="/clients/{clientId}/long-term-goal".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientControllerDeActivateClient:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerDeActivateClient.");for(eS in eo="/clients/{clientId}/deactivate".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientControllerGetClientById:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerGetClientById.");for(eS in eo="/clients/{clientId}".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientControllerGetClients:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling clientControllerGetClients.");for(eS in eo="/clients",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},void 0!==ei&&(ey.agencyId=ei),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientControllerUpdateClient:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientControllerUpdateClient.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerUpdateClient.");for(e_ in eo="/clients/{clientId}".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientControllerUpdateClientLogo:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerUpdateClientLogo.");for(eS in eo="/clients/{clientId}/logo".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientControllerUpdateLongTermGoal:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientControllerUpdateLongTermGoal.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientControllerUpdateLongTermGoal.");if(null==ep)throw new ef.RequiredError("longTermGoalId","Required parameter longTermGoalId was null or undefined when calling clientControllerUpdateLongTermGoal.");for(ew in eo="/clients/{clientId}/long-term-goal/{longTermGoalId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{longTermGoalId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.ClientsApiFp=function(et){return{clientControllerActivateClient:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerActivateClient(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerAddClient:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerAddClient(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerAddClientFinancialProfile:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerAddClientFinancialProfile(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerAddLongTermGoal:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerAddLongTermGoal(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerDeActivateClient:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerDeActivateClient(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerGetClientById:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerGetClientById(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerGetClients:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerGetClients(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerUpdateClient:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerUpdateClient(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerUpdateClientLogo:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerUpdateClientLogo(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientControllerUpdateLongTermGoal:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientControllerUpdateLongTermGoal(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientsApiFactory=function(et,ei,ea){return{clientControllerActivateClient:function(eu,ed){return eo.ClientsApiFp(et).clientControllerActivateClient(eu,ed).then(function(et){return et(ea,ei)})},clientControllerAddClient:function(eu,ed){return eo.ClientsApiFp(et).clientControllerAddClient(eu,ed).then(function(et){return et(ea,ei)})},clientControllerAddClientFinancialProfile:function(eu,ed,eh){return eo.ClientsApiFp(et).clientControllerAddClientFinancialProfile(eu,ed,eh).then(function(et){return et(ea,ei)})},clientControllerAddLongTermGoal:function(eu,ed,eh){return eo.ClientsApiFp(et).clientControllerAddLongTermGoal(eu,ed,eh).then(function(et){return et(ea,ei)})},clientControllerDeActivateClient:function(eu,ed){return eo.ClientsApiFp(et).clientControllerDeActivateClient(eu,ed).then(function(et){return et(ea,ei)})},clientControllerGetClientById:function(eu,ed){return eo.ClientsApiFp(et).clientControllerGetClientById(eu,ed).then(function(et){return et(ea,ei)})},clientControllerGetClients:function(eu,ed){return eo.ClientsApiFp(et).clientControllerGetClients(eu,ed).then(function(et){return et(ea,ei)})},clientControllerUpdateClient:function(eu,ed,eh){return eo.ClientsApiFp(et).clientControllerUpdateClient(eu,ed,eh).then(function(et){return et(ea,ei)})},clientControllerUpdateClientLogo:function(eu,ed){return eo.ClientsApiFp(et).clientControllerUpdateClientLogo(eu,ed).then(function(et){return et(ea,ei)})},clientControllerUpdateLongTermGoal:function(eu,ed,eh,ep){return eo.ClientsApiFp(et).clientControllerUpdateLongTermGoal(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function ClientsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientsApi,et),ClientsApi.prototype.clientControllerActivateClient=function(et,ei){var ea=this;return eo.ClientsApiFp(this.configuration).clientControllerActivateClient(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientsApi.prototype.clientControllerAddClient=function(et,ei){var ea=this;return eo.ClientsApiFp(this.configuration).clientControllerAddClient(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientsApi.prototype.clientControllerAddClientFinancialProfile=function(et,ei,ea){var eu=this;return eo.ClientsApiFp(this.configuration).clientControllerAddClientFinancialProfile(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientsApi.prototype.clientControllerAddLongTermGoal=function(et,ei,ea){var eu=this;return eo.ClientsApiFp(this.configuration).clientControllerAddLongTermGoal(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientsApi.prototype.clientControllerDeActivateClient=function(et,ei){var ea=this;return eo.ClientsApiFp(this.configuration).clientControllerDeActivateClient(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientsApi.prototype.clientControllerGetClientById=function(et,ei){var ea=this;return eo.ClientsApiFp(this.configuration).clientControllerGetClientById(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientsApi.prototype.clientControllerGetClients=function(et,ei){var ea=this;return eo.ClientsApiFp(this.configuration).clientControllerGetClients(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientsApi.prototype.clientControllerUpdateClient=function(et,ei,ea){var eu=this;return eo.ClientsApiFp(this.configuration).clientControllerUpdateClient(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ClientsApi.prototype.clientControllerUpdateClientLogo=function(et,ei){var ea=this;return eo.ClientsApiFp(this.configuration).clientControllerUpdateClientLogo(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ClientsApi.prototype.clientControllerUpdateLongTermGoal=function(et,ei,ea,eu){var ed=this;return eo.ClientsApiFp(this.configuration).clientControllerUpdateLongTermGoal(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ClientsApi}(ef.BaseAPI);eo.ClientsApi=em},19577:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.CustomOpexAccountsApi=eo.CustomOpexAccountsApiFactory=eo.CustomOpexAccountsApiFp=eo.CustomOpexAccountsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.CustomOpexAccountsApiAxiosParamCreator=function(et){var eo=this;return{customOpexAccountControllerAddCustomOpexAccounts:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling customOpexAccountControllerAddCustomOpexAccounts.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customOpexAccountControllerAddCustomOpexAccounts.");for(e_ in eo="/clients/{clientId}/custom-opex-accounts".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},customOpexAccountControllerArchiveCustomOpexAccountById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customOpexAccountControllerArchiveCustomOpexAccountById.");if(null==ea)throw new ef.RequiredError("customOpexAccountId","Required parameter customOpexAccountId was null or undefined when calling customOpexAccountControllerArchiveCustomOpexAccountById.");for(e_ in eo="/clients/{clientId}/custom-opex-accounts/{customOpexAccountId}/archive".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customOpexAccountId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},customOpexAccountControllerRestoreCustomOpexAccountById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customOpexAccountControllerRestoreCustomOpexAccountById.");if(null==ea)throw new ef.RequiredError("customOpexAccountId","Required parameter customOpexAccountId was null or undefined when calling customOpexAccountControllerRestoreCustomOpexAccountById.");for(e_ in eo="/clients/{clientId}/custom-opex-accounts/{customOpexAccountId}/restore".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customOpexAccountId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},customOpexAccountControllerUpdateCustomOpex:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling customOpexAccountControllerUpdateCustomOpex.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customOpexAccountControllerUpdateCustomOpex.");if(null==ep)throw new ef.RequiredError("customOpexAccountId","Required parameter customOpexAccountId was null or undefined when calling customOpexAccountControllerUpdateCustomOpex.");for(ew in eo="/clients/{clientId}/custom-opex-accounts/{customOpexAccountId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{customOpexAccountId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.CustomOpexAccountsApiFp=function(et){return{customOpexAccountControllerAddCustomOpexAccounts:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomOpexAccountsApiAxiosParamCreator(et).customOpexAccountControllerAddCustomOpexAccounts(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customOpexAccountControllerArchiveCustomOpexAccountById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomOpexAccountsApiAxiosParamCreator(et).customOpexAccountControllerArchiveCustomOpexAccountById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customOpexAccountControllerRestoreCustomOpexAccountById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomOpexAccountsApiAxiosParamCreator(et).customOpexAccountControllerRestoreCustomOpexAccountById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customOpexAccountControllerUpdateCustomOpex:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomOpexAccountsApiAxiosParamCreator(et).customOpexAccountControllerUpdateCustomOpex(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.CustomOpexAccountsApiFactory=function(et,ei,ea){return{customOpexAccountControllerAddCustomOpexAccounts:function(eu,ed,eh){return eo.CustomOpexAccountsApiFp(et).customOpexAccountControllerAddCustomOpexAccounts(eu,ed,eh).then(function(et){return et(ea,ei)})},customOpexAccountControllerArchiveCustomOpexAccountById:function(eu,ed,eh){return eo.CustomOpexAccountsApiFp(et).customOpexAccountControllerArchiveCustomOpexAccountById(eu,ed,eh).then(function(et){return et(ea,ei)})},customOpexAccountControllerRestoreCustomOpexAccountById:function(eu,ed,eh){return eo.CustomOpexAccountsApiFp(et).customOpexAccountControllerRestoreCustomOpexAccountById(eu,ed,eh).then(function(et){return et(ea,ei)})},customOpexAccountControllerUpdateCustomOpex:function(eu,ed,eh,ep){return eo.CustomOpexAccountsApiFp(et).customOpexAccountControllerUpdateCustomOpex(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function CustomOpexAccountsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(CustomOpexAccountsApi,et),CustomOpexAccountsApi.prototype.customOpexAccountControllerAddCustomOpexAccounts=function(et,ei,ea){var eu=this;return eo.CustomOpexAccountsApiFp(this.configuration).customOpexAccountControllerAddCustomOpexAccounts(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},CustomOpexAccountsApi.prototype.customOpexAccountControllerArchiveCustomOpexAccountById=function(et,ei,ea){var eu=this;return eo.CustomOpexAccountsApiFp(this.configuration).customOpexAccountControllerArchiveCustomOpexAccountById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},CustomOpexAccountsApi.prototype.customOpexAccountControllerRestoreCustomOpexAccountById=function(et,ei,ea){var eu=this;return eo.CustomOpexAccountsApiFp(this.configuration).customOpexAccountControllerRestoreCustomOpexAccountById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},CustomOpexAccountsApi.prototype.customOpexAccountControllerUpdateCustomOpex=function(et,ei,ea,eu){var ed=this;return eo.CustomOpexAccountsApiFp(this.configuration).customOpexAccountControllerUpdateCustomOpex(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},CustomOpexAccountsApi}(ef.BaseAPI);eo.CustomOpexAccountsApi=em},82483:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.CustomTablesApi=eo.CustomTablesApiFactory=eo.CustomTablesApiFp=eo.CustomTablesApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.CustomTablesApiAxiosParamCreator=function(et){var eo=this;return{customTableControllerAddClientCustomTable:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling customTableControllerAddClientCustomTable.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customTableControllerAddClientCustomTable.");for(e_ in eo="/clients/{clientId}/custom-tables".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},customTableControllerAddDataToCustomTable:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling customTableControllerAddDataToCustomTable.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customTableControllerAddDataToCustomTable.");if(null==ep)throw new ef.RequiredError("customTableId","Required parameter customTableId was null or undefined when calling customTableControllerAddDataToCustomTable.");for(ew in eo="/clients/{clientId}/custom-tables/{customTableId}/data".replace("{clientId}",encodeURIComponent(String(ea))).replace("{customTableId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},customTableControllerDeleteCustomTable:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customTableControllerDeleteCustomTable.");if(null==ea)throw new ef.RequiredError("customTableId","Required parameter customTableId was null or undefined when calling customTableControllerDeleteCustomTable.");for(e_ in eo="/clients/{clientId}/custom-tables/{customTableId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customTableId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},customTableControllerEditClientCustomTable:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling customTableControllerEditClientCustomTable.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customTableControllerEditClientCustomTable.");if(null==ep)throw new ef.RequiredError("customTableId","Required parameter customTableId was null or undefined when calling customTableControllerEditClientCustomTable.");for(ew in eo="/clients/{clientId}/custom-tables/{customTableId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{customTableId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PUT"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},customTableControllerGetCUstomTableById:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customTableControllerGetCUstomTableById.");if(null==ea)throw new ef.RequiredError("customTableId","Required parameter customTableId was null or undefined when calling customTableControllerGetCUstomTableById.");for(eA in eo="/clients/{clientId}/custom-tables/{customTableId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customTableId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==ep&&(e_.year=ep),void 0!==em&&(e_.month=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})}}},eo.CustomTablesApiFp=function(et){return{customTableControllerAddClientCustomTable:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomTablesApiAxiosParamCreator(et).customTableControllerAddClientCustomTable(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customTableControllerAddDataToCustomTable:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomTablesApiAxiosParamCreator(et).customTableControllerAddDataToCustomTable(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customTableControllerDeleteCustomTable:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomTablesApiAxiosParamCreator(et).customTableControllerDeleteCustomTable(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customTableControllerEditClientCustomTable:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomTablesApiAxiosParamCreator(et).customTableControllerEditClientCustomTable(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customTableControllerGetCUstomTableById:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomTablesApiAxiosParamCreator(et).customTableControllerGetCUstomTableById(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.CustomTablesApiFactory=function(et,ei,ea){return{customTableControllerAddClientCustomTable:function(eu,ed,eh){return eo.CustomTablesApiFp(et).customTableControllerAddClientCustomTable(eu,ed,eh).then(function(et){return et(ea,ei)})},customTableControllerAddDataToCustomTable:function(eu,ed,eh,ep){return eo.CustomTablesApiFp(et).customTableControllerAddDataToCustomTable(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},customTableControllerDeleteCustomTable:function(eu,ed,eh){return eo.CustomTablesApiFp(et).customTableControllerDeleteCustomTable(eu,ed,eh).then(function(et){return et(ea,ei)})},customTableControllerEditClientCustomTable:function(eu,ed,eh,ep){return eo.CustomTablesApiFp(et).customTableControllerEditClientCustomTable(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},customTableControllerGetCUstomTableById:function(eu,ed,eh,ep,ef){return eo.CustomTablesApiFp(et).customTableControllerGetCUstomTableById(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})}}};var em=function(et){function CustomTablesApi(){return null!==et&&et.apply(this,arguments)||this}return ea(CustomTablesApi,et),CustomTablesApi.prototype.customTableControllerAddClientCustomTable=function(et,ei,ea){var eu=this;return eo.CustomTablesApiFp(this.configuration).customTableControllerAddClientCustomTable(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},CustomTablesApi.prototype.customTableControllerAddDataToCustomTable=function(et,ei,ea,eu){var ed=this;return eo.CustomTablesApiFp(this.configuration).customTableControllerAddDataToCustomTable(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},CustomTablesApi.prototype.customTableControllerDeleteCustomTable=function(et,ei,ea){var eu=this;return eo.CustomTablesApiFp(this.configuration).customTableControllerDeleteCustomTable(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},CustomTablesApi.prototype.customTableControllerEditClientCustomTable=function(et,ei,ea,eu){var ed=this;return eo.CustomTablesApiFp(this.configuration).customTableControllerEditClientCustomTable(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},CustomTablesApi.prototype.customTableControllerGetCUstomTableById=function(et,ei,ea,eu,ed){var eh=this;return eo.CustomTablesApiFp(this.configuration).customTableControllerGetCUstomTableById(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},CustomTablesApi}(ef.BaseAPI);eo.CustomTablesApi=em},45767:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.CustomersAndVendorsApi=eo.CustomersAndVendorsApiFactory=eo.CustomersAndVendorsApiFp=eo.CustomersAndVendorsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.CustomersAndVendorsApiAxiosParamCreator=function(et){var eo=this;return{customerAndVendorControllerAddCustomersAndVendors:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("file","Required parameter file was null or undefined when calling customerAndVendorControllerAddCustomersAndVendors.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customerAndVendorControllerAddCustomersAndVendors.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling customerAndVendorControllerAddCustomersAndVendors.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling customerAndVendorControllerAddCustomersAndVendors.");for(eI in eo="/clients/{clientId}/year/{year}/month/{month}/customers-and-vendors".replace("{clientId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"POST"},ey),eg),eS={},e_={},ew=new FormData,void 0!==ei&&ew.append("file",ei),eS["Content-Type"]="multipart/form-data",eA=new URLSearchParams(ed.search),e_)eA.set(eI,e_[eI]);for(eI in eg.query)eA.set(eI,eg.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eR),eg.headers),eC.data=ew,[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},customerAndVendorControllerCreateCustomerVendorData:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customerAndVendorControllerCreateCustomerVendorData.");if(null==ea)throw new ef.RequiredError("customerVendorRawDataId","Required parameter customerVendorRawDataId was null or undefined when calling customerAndVendorControllerCreateCustomerVendorData.");for(e_ in eo="/clients/{clientId}/customer-vendor-raw-data/{customerVendorRawDataId}/customers-and-vendors".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customerVendorRawDataId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},customerAndVendorControllerDownloadCustomersAndVendors:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customerAndVendorControllerDownloadCustomersAndVendors.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling customerAndVendorControllerDownloadCustomersAndVendors.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling customerAndVendorControllerDownloadCustomersAndVendors.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/customers-and-vendors/download".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},customerAndVendorControllerListCustomerVendorData:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customerAndVendorControllerListCustomerVendorData.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling customerAndVendorControllerListCustomerVendorData.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling customerAndVendorControllerListCustomerVendorData.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/customers-and-vendors".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},customerAndVendorControllerPurgeCustomerVendorData:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling customerAndVendorControllerPurgeCustomerVendorData.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling customerAndVendorControllerPurgeCustomerVendorData.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling customerAndVendorControllerPurgeCustomerVendorData.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/customers-and-vendors".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"DELETE"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.CustomersAndVendorsApiFp=function(et){return{customerAndVendorControllerAddCustomersAndVendors:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomersAndVendorsApiAxiosParamCreator(et).customerAndVendorControllerAddCustomersAndVendors(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customerAndVendorControllerCreateCustomerVendorData:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomersAndVendorsApiAxiosParamCreator(et).customerAndVendorControllerCreateCustomerVendorData(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customerAndVendorControllerDownloadCustomersAndVendors:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomersAndVendorsApiAxiosParamCreator(et).customerAndVendorControllerDownloadCustomersAndVendors(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customerAndVendorControllerListCustomerVendorData:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomersAndVendorsApiAxiosParamCreator(et).customerAndVendorControllerListCustomerVendorData(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},customerAndVendorControllerPurgeCustomerVendorData:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.CustomersAndVendorsApiAxiosParamCreator(et).customerAndVendorControllerPurgeCustomerVendorData(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.CustomersAndVendorsApiFactory=function(et,ei,ea){return{customerAndVendorControllerAddCustomersAndVendors:function(eu,ed,eh,ep,ef){return eo.CustomersAndVendorsApiFp(et).customerAndVendorControllerAddCustomersAndVendors(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},customerAndVendorControllerCreateCustomerVendorData:function(eu,ed,eh){return eo.CustomersAndVendorsApiFp(et).customerAndVendorControllerCreateCustomerVendorData(eu,ed,eh).then(function(et){return et(ea,ei)})},customerAndVendorControllerDownloadCustomersAndVendors:function(eu,ed,eh,ep){return eo.CustomersAndVendorsApiFp(et).customerAndVendorControllerDownloadCustomersAndVendors(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},customerAndVendorControllerListCustomerVendorData:function(eu,ed,eh,ep){return eo.CustomersAndVendorsApiFp(et).customerAndVendorControllerListCustomerVendorData(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},customerAndVendorControllerPurgeCustomerVendorData:function(eu,ed,eh,ep){return eo.CustomersAndVendorsApiFp(et).customerAndVendorControllerPurgeCustomerVendorData(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function CustomersAndVendorsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(CustomersAndVendorsApi,et),CustomersAndVendorsApi.prototype.customerAndVendorControllerAddCustomersAndVendors=function(et,ei,ea,eu,ed){var eh=this;return eo.CustomersAndVendorsApiFp(this.configuration).customerAndVendorControllerAddCustomersAndVendors(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},CustomersAndVendorsApi.prototype.customerAndVendorControllerCreateCustomerVendorData=function(et,ei,ea){var eu=this;return eo.CustomersAndVendorsApiFp(this.configuration).customerAndVendorControllerCreateCustomerVendorData(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},CustomersAndVendorsApi.prototype.customerAndVendorControllerDownloadCustomersAndVendors=function(et,ei,ea,eu){var ed=this;return eo.CustomersAndVendorsApiFp(this.configuration).customerAndVendorControllerDownloadCustomersAndVendors(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},CustomersAndVendorsApi.prototype.customerAndVendorControllerListCustomerVendorData=function(et,ei,ea,eu){var ed=this;return eo.CustomersAndVendorsApiFp(this.configuration).customerAndVendorControllerListCustomerVendorData(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},CustomersAndVendorsApi.prototype.customerAndVendorControllerPurgeCustomerVendorData=function(et,ei,ea,eu){var ed=this;return eo.CustomersAndVendorsApiFp(this.configuration).customerAndVendorControllerPurgeCustomerVendorData(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},CustomersAndVendorsApi}(ef.BaseAPI);eo.CustomersAndVendorsApi=em},32635:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.DataDiagnosticsApi=eo.DataDiagnosticsApiFactory=eo.DataDiagnosticsApiFp=eo.DataDiagnosticsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.DataDiagnosticsApiAxiosParamCreator=function(et){var eo=this;return{dataDiagnosticsClientControllerCheckAisSync:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerCheckAisSync.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling dataDiagnosticsClientControllerCheckAisSync.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling dataDiagnosticsClientControllerCheckAisSync.");for(ew in eo="/clients/{clientId}/data-diagnostics/check-ais-sync/{year}/{month}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},dataDiagnosticsClientControllerDashboardTimeline:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerDashboardTimeline.");if(null==ea)throw new ef.RequiredError("period","Required parameter period was null or undefined when calling dataDiagnosticsClientControllerDashboardTimeline.");for(e_ in eo="/clients/{clientId}/data-diagnostics/dashboard-timeline".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},void 0!==ea&&(eC.period=ea),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},dataDiagnosticsClientControllerDeleteDiagnosticResult:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerDeleteDiagnosticResult.");if(null==ea)throw new ef.RequiredError("diagnosticResultId","Required parameter diagnosticResultId was null or undefined when calling dataDiagnosticsClientControllerDeleteDiagnosticResult.");for(e_ in eo="/clients/{clientId}/data-diagnostics/{diagnosticResultId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{diagnosticResultId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},dataDiagnosticsClientControllerListConfig:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerListConfig.");for(e_ in eo="/clients/{clientId}/data-diagnostics/config".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},void 0!==ea&&(eC.categoryId=ea),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},dataDiagnosticsClientControllerListDiagnostics:function(ei,ea,ep,em,eg,ey,eC,eS,e_){return void 0===e_&&(e_={}),ed(eo,void 0,void 0,function(){var eo,ed,ew,eA,eI,eR,eT,eE,eP;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerListDiagnostics.");for(eE in eo="/clients/{clientId}/data-diagnostics/results".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ew=et.baseOptions),eA=eu(eu({method:"GET"},ew),e_),eI={},eR={},void 0!==ea&&(eR.month=ea),void 0!==ep&&(eR.year=ep),void 0!==em&&(eR.status=em),void 0!==eg&&(eR.categoryId=eg),void 0!==ey&&(eR.searchTerm=ey),void 0!==eC&&(eR.take=eC),void 0!==eS&&(eR.skip=eS),eT=new URLSearchParams(ed.search),eR)eT.set(eE,eR[eE]);for(eE in e_.query)eT.set(eE,e_.query[eE]);return ed.search=new URLSearchParams(eT).toString(),eP=ew&&ew.headers?ew.headers:{},eA.headers=eu(eu(eu({},eI),eP),e_.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eA}]})})},dataDiagnosticsClientControllerListSummary:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerListSummary.");for(eI in eo="/clients/{clientId}/data-diagnostics/summary".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==ea&&(ew.month=ea),void 0!==ep&&(ew.year=ep),void 0!==em&&(ew.diagnosticId=em),void 0!==eg&&(ew.categoryId=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},dataDiagnosticsClientControllerRunDiagnostics:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling dataDiagnosticsClientControllerRunDiagnostics.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerRunDiagnostics.");for(e_ in eo="/clients/{clientId}/data-diagnostics/run".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},dataDiagnosticsClientControllerUpdateDiagnosticResultStatus:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling dataDiagnosticsClientControllerUpdateDiagnosticResultStatus.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerUpdateDiagnosticResultStatus.");if(null==ep)throw new ef.RequiredError("resultId","Required parameter resultId was null or undefined when calling dataDiagnosticsClientControllerUpdateDiagnosticResultStatus.");for(ew in eo="/clients/{clientId}/data-diagnostics/results/{resultId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{resultId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},dataDiagnosticsClientControllerUpsertConfig:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling dataDiagnosticsClientControllerUpsertConfig.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataDiagnosticsClientControllerUpsertConfig.");for(e_ in eo="/clients/{clientId}/data-diagnostics/config".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PUT"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},dataDiagnosticsControllerListCategories:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/data-diagnostics/categories",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},dataDiagnosticsControllerListDiagnostics:function(ei,ea,ep,ef){return void 0===ef&&(ef={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){for(e_ in eo="/data-diagnostics",ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ef),ey={},eC={},void 0!==ei&&(eC.categoryId=ei),void 0!==ea&&(eC.skip=ea),void 0!==ep&&(eC.take=ep),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ef.query)eS.set(e_,ef.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ef.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.DataDiagnosticsApiFp=function(et){return{dataDiagnosticsClientControllerCheckAisSync:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerCheckAisSync(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerDashboardTimeline:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerDashboardTimeline(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerDeleteDiagnosticResult:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerDeleteDiagnosticResult(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerListConfig:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerListConfig(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerListDiagnostics:function(ei,ea,em,eg,ey,eC,eS,e_,ew){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerListDiagnostics(ei,ea,em,eg,ey,eC,eS,e_,ew)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerListSummary:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerListSummary(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerRunDiagnostics:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerRunDiagnostics(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerUpdateDiagnosticResultStatus:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerUpdateDiagnosticResultStatus(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsClientControllerUpsertConfig:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsClientControllerUpsertConfig(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataDiagnosticsControllerListCategories:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsControllerListCategories(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},dataDiagnosticsControllerListDiagnostics:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataDiagnosticsApiAxiosParamCreator(et).dataDiagnosticsControllerListDiagnostics(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.DataDiagnosticsApiFactory=function(et,ei,ea){return{dataDiagnosticsClientControllerCheckAisSync:function(eu,ed,eh,ep){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerCheckAisSync(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerDashboardTimeline:function(eu,ed,eh){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerDashboardTimeline(eu,ed,eh).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerDeleteDiagnosticResult:function(eu,ed,eh){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerDeleteDiagnosticResult(eu,ed,eh).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerListConfig:function(eu,ed,eh){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerListConfig(eu,ed,eh).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerListDiagnostics:function(eu,ed,eh,ep,ef,em,eg,ey,eC){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerListDiagnostics(eu,ed,eh,ep,ef,em,eg,ey,eC).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerListSummary:function(eu,ed,eh,ep,ef,em){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerListSummary(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerRunDiagnostics:function(eu,ed,eh){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerRunDiagnostics(eu,ed,eh).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerUpdateDiagnosticResultStatus:function(eu,ed,eh,ep){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerUpdateDiagnosticResultStatus(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},dataDiagnosticsClientControllerUpsertConfig:function(eu,ed,eh){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsClientControllerUpsertConfig(eu,ed,eh).then(function(et){return et(ea,ei)})},dataDiagnosticsControllerListCategories:function(eu){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsControllerListCategories(eu).then(function(et){return et(ea,ei)})},dataDiagnosticsControllerListDiagnostics:function(eu,ed,eh,ep){return eo.DataDiagnosticsApiFp(et).dataDiagnosticsControllerListDiagnostics(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function DataDiagnosticsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(DataDiagnosticsApi,et),DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerCheckAisSync=function(et,ei,ea,eu){var ed=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerCheckAisSync(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerDashboardTimeline=function(et,ei,ea){var eu=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerDashboardTimeline(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerDeleteDiagnosticResult=function(et,ei,ea){var eu=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerDeleteDiagnosticResult(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerListConfig=function(et,ei,ea){var eu=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerListConfig(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerListDiagnostics=function(et,ei,ea,eu,ed,eh,ep,ef,em){var eg=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerListDiagnostics(et,ei,ea,eu,ed,eh,ep,ef,em).then(function(et){return et(eg.axios,eg.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerListSummary=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerListSummary(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerRunDiagnostics=function(et,ei,ea){var eu=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerRunDiagnostics(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerUpdateDiagnosticResultStatus=function(et,ei,ea,eu){var ed=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerUpdateDiagnosticResultStatus(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsClientControllerUpsertConfig=function(et,ei,ea){var eu=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsClientControllerUpsertConfig(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsControllerListCategories=function(et){var ei=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsControllerListCategories(et).then(function(et){return et(ei.axios,ei.basePath)})},DataDiagnosticsApi.prototype.dataDiagnosticsControllerListDiagnostics=function(et,ei,ea,eu){var ed=this;return eo.DataDiagnosticsApiFp(this.configuration).dataDiagnosticsControllerListDiagnostics(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DataDiagnosticsApi}(ef.BaseAPI);eo.DataDiagnosticsApi=em},2577:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.DataTablesApi=eo.DataTablesApiFactory=eo.DataTablesApiFp=eo.DataTablesApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.DataTablesApiAxiosParamCreator=function(et){var eo=this;return{dataTableControllerCreateDataTable:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling dataTableControllerCreateDataTable.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataTableControllerCreateDataTable.");for(e_ in eo="/clients/{clientId}/data-tables".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},dataTableControllerGetChartData:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling dataTableControllerGetChartData.");if(null==ea)throw new ef.RequiredError("dataTableId","Required parameter dataTableId was null or undefined when calling dataTableControllerGetChartData.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling dataTableControllerGetChartData.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling dataTableControllerGetChartData.");for(eA in eo="/clients/{clientId}/data-tables/{dataTableId}/year/{year}/month/{month}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{dataTableId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})}}},eo.DataTablesApiFp=function(et){return{dataTableControllerCreateDataTable:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataTablesApiAxiosParamCreator(et).dataTableControllerCreateDataTable(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},dataTableControllerGetChartData:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DataTablesApiAxiosParamCreator(et).dataTableControllerGetChartData(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.DataTablesApiFactory=function(et,ei,ea){return{dataTableControllerCreateDataTable:function(eu,ed,eh){return eo.DataTablesApiFp(et).dataTableControllerCreateDataTable(eu,ed,eh).then(function(et){return et(ea,ei)})},dataTableControllerGetChartData:function(eu,ed,eh,ep,ef){return eo.DataTablesApiFp(et).dataTableControllerGetChartData(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})}}};var em=function(et){function DataTablesApi(){return null!==et&&et.apply(this,arguments)||this}return ea(DataTablesApi,et),DataTablesApi.prototype.dataTableControllerCreateDataTable=function(et,ei,ea){var eu=this;return eo.DataTablesApiFp(this.configuration).dataTableControllerCreateDataTable(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DataTablesApi.prototype.dataTableControllerGetChartData=function(et,ei,ea,eu,ed){var eh=this;return eo.DataTablesApiFp(this.configuration).dataTableControllerGetChartData(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},DataTablesApi}(ef.BaseAPI);eo.DataTablesApi=em},13114:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.DiagnosticsApi=eo.DiagnosticsApiFactory=eo.DiagnosticsApiFp=eo.DiagnosticsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.DiagnosticsApiAxiosParamCreator=function(et){var eo=this;return{diagnosticsControllerCreateDiagnostic:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling diagnosticsControllerCreateDiagnostic.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling diagnosticsControllerCreateDiagnostic.");for(e_ in eo="/clients/{clientId}/diagnostics".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},diagnosticsControllerGetDiagnostics:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling diagnosticsControllerGetDiagnostics.");if(null==ea)throw new ef.RequiredError("skip","Required parameter skip was null or undefined when calling diagnosticsControllerGetDiagnostics.");if(null==ep)throw new ef.RequiredError("take","Required parameter take was null or undefined when calling diagnosticsControllerGetDiagnostics.");for(eR in eo="/clients/{clientId}/diagnostics".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==ea&&(eA.skip=ea),void 0!==ep&&(eA.take=ep),void 0!==em&&(eA.search=em),void 0!==eg&&(eA.period=eg),void 0!==ey&&(eA.status=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},diagnosticsControllerGetSubmittedDiagnostics:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling diagnosticsControllerGetSubmittedDiagnostics.");if(null==ea)throw new ef.RequiredError("skip","Required parameter skip was null or undefined when calling diagnosticsControllerGetSubmittedDiagnostics.");if(null==ep)throw new ef.RequiredError("take","Required parameter take was null or undefined when calling diagnosticsControllerGetSubmittedDiagnostics.");for(eR in eo="/clients/{clientId}/diagnostics/submitted".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==ea&&(eA.skip=ea),void 0!==ep&&(eA.take=ep),void 0!==em&&(eA.search=em),void 0!==eg&&(eA.period=eg),void 0!==ey&&(eA.status=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},diagnosticsControllerPublishDiagnostics:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling diagnosticsControllerPublishDiagnostics.");for(eS in eo="/clients/{clientId}/diagnostics/publish".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},diagnosticsControllerUpdateDiagnostic:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling diagnosticsControllerUpdateDiagnostic.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling diagnosticsControllerUpdateDiagnostic.");if(null==ep)throw new ef.RequiredError("diagnosticId","Required parameter diagnosticId was null or undefined when calling diagnosticsControllerUpdateDiagnostic.");for(ew in eo="/clients/{clientId}/diagnostics/{diagnosticId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{diagnosticId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},diagnosticsControllerUpdateDiagnosticStatus:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling diagnosticsControllerUpdateDiagnosticStatus.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling diagnosticsControllerUpdateDiagnosticStatus.");if(null==ep)throw new ef.RequiredError("diagnosticId","Required parameter diagnosticId was null or undefined when calling diagnosticsControllerUpdateDiagnosticStatus.");for(ew in eo="/clients/{clientId}/diagnostics/{diagnosticId}/status".replace("{clientId}",encodeURIComponent(String(ea))).replace("{diagnosticId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PUT"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.DiagnosticsApiFp=function(et){return{diagnosticsControllerCreateDiagnostic:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DiagnosticsApiAxiosParamCreator(et).diagnosticsControllerCreateDiagnostic(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},diagnosticsControllerGetDiagnostics:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DiagnosticsApiAxiosParamCreator(et).diagnosticsControllerGetDiagnostics(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},diagnosticsControllerGetSubmittedDiagnostics:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DiagnosticsApiAxiosParamCreator(et).diagnosticsControllerGetSubmittedDiagnostics(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},diagnosticsControllerPublishDiagnostics:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DiagnosticsApiAxiosParamCreator(et).diagnosticsControllerPublishDiagnostics(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},diagnosticsControllerUpdateDiagnostic:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DiagnosticsApiAxiosParamCreator(et).diagnosticsControllerUpdateDiagnostic(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},diagnosticsControllerUpdateDiagnosticStatus:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DiagnosticsApiAxiosParamCreator(et).diagnosticsControllerUpdateDiagnosticStatus(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.DiagnosticsApiFactory=function(et,ei,ea){return{diagnosticsControllerCreateDiagnostic:function(eu,ed,eh){return eo.DiagnosticsApiFp(et).diagnosticsControllerCreateDiagnostic(eu,ed,eh).then(function(et){return et(ea,ei)})},diagnosticsControllerGetDiagnostics:function(eu,ed,eh,ep,ef,em,eg){return eo.DiagnosticsApiFp(et).diagnosticsControllerGetDiagnostics(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},diagnosticsControllerGetSubmittedDiagnostics:function(eu,ed,eh,ep,ef,em,eg){return eo.DiagnosticsApiFp(et).diagnosticsControllerGetSubmittedDiagnostics(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},diagnosticsControllerPublishDiagnostics:function(eu,ed){return eo.DiagnosticsApiFp(et).diagnosticsControllerPublishDiagnostics(eu,ed).then(function(et){return et(ea,ei)})},diagnosticsControllerUpdateDiagnostic:function(eu,ed,eh,ep){return eo.DiagnosticsApiFp(et).diagnosticsControllerUpdateDiagnostic(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},diagnosticsControllerUpdateDiagnosticStatus:function(eu,ed,eh,ep){return eo.DiagnosticsApiFp(et).diagnosticsControllerUpdateDiagnosticStatus(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function DiagnosticsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(DiagnosticsApi,et),DiagnosticsApi.prototype.diagnosticsControllerCreateDiagnostic=function(et,ei,ea){var eu=this;return eo.DiagnosticsApiFp(this.configuration).diagnosticsControllerCreateDiagnostic(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DiagnosticsApi.prototype.diagnosticsControllerGetDiagnostics=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.DiagnosticsApiFp(this.configuration).diagnosticsControllerGetDiagnostics(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},DiagnosticsApi.prototype.diagnosticsControllerGetSubmittedDiagnostics=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.DiagnosticsApiFp(this.configuration).diagnosticsControllerGetSubmittedDiagnostics(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},DiagnosticsApi.prototype.diagnosticsControllerPublishDiagnostics=function(et,ei){var ea=this;return eo.DiagnosticsApiFp(this.configuration).diagnosticsControllerPublishDiagnostics(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},DiagnosticsApi.prototype.diagnosticsControllerUpdateDiagnostic=function(et,ei,ea,eu){var ed=this;return eo.DiagnosticsApiFp(this.configuration).diagnosticsControllerUpdateDiagnostic(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DiagnosticsApi.prototype.diagnosticsControllerUpdateDiagnosticStatus=function(et,ei,ea,eu){var ed=this;return eo.DiagnosticsApiFp(this.configuration).diagnosticsControllerUpdateDiagnosticStatus(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DiagnosticsApi}(ef.BaseAPI);eo.DiagnosticsApi=em},56779:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.DocumentsApi=eo.DocumentsApiFactory=eo.DocumentsApiFp=eo.DocumentsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.DocumentsApiAxiosParamCreator=function(et){var eo=this;return{documentsControllerAddClientDocuments:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("files","Required parameter files was null or undefined when calling documentsControllerAddClientDocuments.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerAddClientDocuments.");if(null==ep)throw new ef.RequiredError("documentFolderId","Required parameter documentFolderId was null or undefined when calling documentsControllerAddClientDocuments.");for(eA in eo="/clients/{clientId}/document-folders/{documentFolderId}/documents".replace("{clientId}",encodeURIComponent(String(ea))).replace("{documentFolderId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new FormData,ei&&ei.forEach(function(et){e_.append("files",et)}),eC["Content-Type"]="multipart/form-data",ew=new URLSearchParams(ed.search),eS)ew.set(eA,eS[eA]);for(eA in em.query)ew.set(eA,em.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eI),em.headers),ey.data=e_,[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},documentsControllerAddDocumentFolder:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling documentsControllerAddDocumentFolder.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerAddDocumentFolder.");for(e_ in eo="/clients/{clientId}/document-folders".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},documentsControllerDeleteDocumentFolder:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerDeleteDocumentFolder.");if(null==ea)throw new ef.RequiredError("documentFolderId","Required parameter documentFolderId was null or undefined when calling documentsControllerDeleteDocumentFolder.");for(e_ in eo="/clients/{clientId}/document-folders/{documentFolderId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{documentFolderId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},documentsControllerDeleteDocuments:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling documentsControllerDeleteDocuments.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerDeleteDocuments.");for(e_ in eo="/clients/{clientId}/documents".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},documentsControllerDownloadDocument:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerDownloadDocument.");if(null==ea)throw new ef.RequiredError("documentId","Required parameter documentId was null or undefined when calling documentsControllerDownloadDocument.");for(e_ in eo="/clients/{clientId}/documents/{documentId}/download".replace("{clientId}",encodeURIComponent(String(ei))).replace("{documentId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},documentsControllerGetAllDocumentOfParticularFolder:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew){return void 0===ew&&(ew={}),ed(eo,void 0,void 0,function(){var eo,ed,eA,eI,eR,eT,eE,eP,ek;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerGetAllDocumentOfParticularFolder.");if(null==ea)throw new ef.RequiredError("documentFolderId","Required parameter documentFolderId was null or undefined when calling documentsControllerGetAllDocumentOfParticularFolder.");if(null==ep)throw new ef.RequiredError("pagination","Required parameter pagination was null or undefined when calling documentsControllerGetAllDocumentOfParticularFolder.");for(eP in eo="/clients/{clientId}/document-folders/{documentFolderId}/documents".replace("{clientId}",encodeURIComponent(String(ei))).replace("{documentFolderId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(eA=et.baseOptions),eI=eu(eu({method:"GET"},eA),ew),eR={},eT={},void 0!==ep&&(eT.pagination=ep),void 0!==em&&(eT.filterBy=em),void 0!==eg&&(eT.sortDir=eg),void 0!==ey&&(eT.sortBy=ey),void 0!==eC&&(eT.searchTerm=eC),void 0!==eS&&(eT.take=eS),void 0!==e_&&(eT.skip=e_),eE=new URLSearchParams(ed.search),eT)eE.set(eP,eT[eP]);for(eP in ew.query)eE.set(eP,ew.query[eP]);return ed.search=new URLSearchParams(eE).toString(),ek=eA&&eA.headers?eA.headers:{},eI.headers=eu(eu(eu({},eR),ek),ew.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eI}]})})},documentsControllerGetDocumentFolderById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerGetDocumentFolderById.");if(null==ea)throw new ef.RequiredError("documentFolderId","Required parameter documentFolderId was null or undefined when calling documentsControllerGetDocumentFolderById.");for(e_ in eo="/clients/{clientId}/document-folders/{documentFolderId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{documentFolderId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},documentsControllerListDocumentFolders:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerListDocumentFolders.");if(null==ea)throw new ef.RequiredError("pagination","Required parameter pagination was null or undefined when calling documentsControllerListDocumentFolders.");for(eR in eo="/clients/{clientId}/document-folders".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==ea&&(eA.pagination=ea),void 0!==ep&&(eA.filterBy=ep),void 0!==em&&(eA.searchTerm=em),void 0!==eg&&(eA.take=eg),void 0!==ey&&(eA.skip=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},documentsControllerPatchDocument:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling documentsControllerPatchDocument.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerPatchDocument.");if(null==ep)throw new ef.RequiredError("documentId","Required parameter documentId was null or undefined when calling documentsControllerPatchDocument.");for(ew in eo="/clients/{clientId}/document-folders/{documentFolderId}/documents/{documentId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{documentId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},documentsControllerPatchDocumentFolder:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling documentsControllerPatchDocumentFolder.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerPatchDocumentFolder.");if(null==ep)throw new ef.RequiredError("documentFolderId","Required parameter documentFolderId was null or undefined when calling documentsControllerPatchDocumentFolder.");for(ew in eo="/clients/{clientId}/document-folders/{documentFolderId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{documentFolderId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},documentsControllerViewDocument:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling documentsControllerViewDocument.");if(null==ea)throw new ef.RequiredError("documentId","Required parameter documentId was null or undefined when calling documentsControllerViewDocument.");for(e_ in eo="/clients/{clientId}/documents/{documentId}/view".replace("{clientId}",encodeURIComponent(String(ei))).replace("{documentId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.DocumentsApiFp=function(et){return{documentsControllerAddClientDocuments:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerAddClientDocuments(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerAddDocumentFolder:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerAddDocumentFolder(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerDeleteDocumentFolder:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerDeleteDocumentFolder(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerDeleteDocuments:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerDeleteDocuments(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerDownloadDocument:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerDownloadDocument(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerGetAllDocumentOfParticularFolder:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerGetAllDocumentOfParticularFolder(ei,ea,em,eg,ey,eC,eS,e_,ew,eA)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerGetDocumentFolderById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerGetDocumentFolderById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerListDocumentFolders:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerListDocumentFolders(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerPatchDocument:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerPatchDocument(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerPatchDocumentFolder:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerPatchDocumentFolder(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},documentsControllerViewDocument:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DocumentsApiAxiosParamCreator(et).documentsControllerViewDocument(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.DocumentsApiFactory=function(et,ei,ea){return{documentsControllerAddClientDocuments:function(eu,ed,eh,ep){return eo.DocumentsApiFp(et).documentsControllerAddClientDocuments(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},documentsControllerAddDocumentFolder:function(eu,ed,eh){return eo.DocumentsApiFp(et).documentsControllerAddDocumentFolder(eu,ed,eh).then(function(et){return et(ea,ei)})},documentsControllerDeleteDocumentFolder:function(eu,ed,eh){return eo.DocumentsApiFp(et).documentsControllerDeleteDocumentFolder(eu,ed,eh).then(function(et){return et(ea,ei)})},documentsControllerDeleteDocuments:function(eu,ed,eh){return eo.DocumentsApiFp(et).documentsControllerDeleteDocuments(eu,ed,eh).then(function(et){return et(ea,ei)})},documentsControllerDownloadDocument:function(eu,ed,eh){return eo.DocumentsApiFp(et).documentsControllerDownloadDocument(eu,ed,eh).then(function(et){return et(ea,ei)})},documentsControllerGetAllDocumentOfParticularFolder:function(eu,ed,eh,ep,ef,em,eg,ey,eC,eS){return eo.DocumentsApiFp(et).documentsControllerGetAllDocumentOfParticularFolder(eu,ed,eh,ep,ef,em,eg,ey,eC,eS).then(function(et){return et(ea,ei)})},documentsControllerGetDocumentFolderById:function(eu,ed,eh){return eo.DocumentsApiFp(et).documentsControllerGetDocumentFolderById(eu,ed,eh).then(function(et){return et(ea,ei)})},documentsControllerListDocumentFolders:function(eu,ed,eh,ep,ef,em,eg){return eo.DocumentsApiFp(et).documentsControllerListDocumentFolders(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},documentsControllerPatchDocument:function(eu,ed,eh,ep){return eo.DocumentsApiFp(et).documentsControllerPatchDocument(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},documentsControllerPatchDocumentFolder:function(eu,ed,eh,ep){return eo.DocumentsApiFp(et).documentsControllerPatchDocumentFolder(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},documentsControllerViewDocument:function(eu,ed,eh){return eo.DocumentsApiFp(et).documentsControllerViewDocument(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function DocumentsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(DocumentsApi,et),DocumentsApi.prototype.documentsControllerAddClientDocuments=function(et,ei,ea,eu){var ed=this;return eo.DocumentsApiFp(this.configuration).documentsControllerAddClientDocuments(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DocumentsApi.prototype.documentsControllerAddDocumentFolder=function(et,ei,ea){var eu=this;return eo.DocumentsApiFp(this.configuration).documentsControllerAddDocumentFolder(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DocumentsApi.prototype.documentsControllerDeleteDocumentFolder=function(et,ei,ea){var eu=this;return eo.DocumentsApiFp(this.configuration).documentsControllerDeleteDocumentFolder(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DocumentsApi.prototype.documentsControllerDeleteDocuments=function(et,ei,ea){var eu=this;return eo.DocumentsApiFp(this.configuration).documentsControllerDeleteDocuments(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DocumentsApi.prototype.documentsControllerDownloadDocument=function(et,ei,ea){var eu=this;return eo.DocumentsApiFp(this.configuration).documentsControllerDownloadDocument(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DocumentsApi.prototype.documentsControllerGetAllDocumentOfParticularFolder=function(et,ei,ea,eu,ed,eh,ep,ef,em,eg){var ey=this;return eo.DocumentsApiFp(this.configuration).documentsControllerGetAllDocumentOfParticularFolder(et,ei,ea,eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ey.axios,ey.basePath)})},DocumentsApi.prototype.documentsControllerGetDocumentFolderById=function(et,ei,ea){var eu=this;return eo.DocumentsApiFp(this.configuration).documentsControllerGetDocumentFolderById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DocumentsApi.prototype.documentsControllerListDocumentFolders=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.DocumentsApiFp(this.configuration).documentsControllerListDocumentFolders(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},DocumentsApi.prototype.documentsControllerPatchDocument=function(et,ei,ea,eu){var ed=this;return eo.DocumentsApiFp(this.configuration).documentsControllerPatchDocument(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DocumentsApi.prototype.documentsControllerPatchDocumentFolder=function(et,ei,ea,eu){var ed=this;return eo.DocumentsApiFp(this.configuration).documentsControllerPatchDocumentFolder(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},DocumentsApi.prototype.documentsControllerViewDocument=function(et,ei,ea){var eu=this;return eo.DocumentsApiFp(this.configuration).documentsControllerViewDocument(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DocumentsApi}(ef.BaseAPI);eo.DocumentsApi=em},60724:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.DynamicFinancialStatementApi=eo.DynamicFinancialStatementApiFactory=eo.DynamicFinancialStatementApiFp=eo.DynamicFinancialStatementApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.DynamicFinancialStatementApiAxiosParamCreator=function(et){var eo=this;return{dFMControllerListDynamicFinancialStatementTypes:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,ef,em,eg,ey,eC,eS,e_;return eh(this,function(eh){for(eS in eo="/dynamic-financial-statement-types",ed=new URL(eo,"https://example.com"),et&&(ef=et.baseOptions),em=eu(eu({method:"GET"},ef),ep),eg={},ey={},void 0!==ei&&(ey.clientId=ei),void 0!==ea&&(ey.reportTypeId=ea),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ep.query)eC.set(eS,ep.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ef&&ef.headers?ef.headers:{},em.headers=eu(eu(eu({},eg),e_),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.DynamicFinancialStatementApiFp=function(et){return{dFMControllerListDynamicFinancialStatementTypes:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.DynamicFinancialStatementApiAxiosParamCreator(et).dFMControllerListDynamicFinancialStatementTypes(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.DynamicFinancialStatementApiFactory=function(et,ei,ea){return{dFMControllerListDynamicFinancialStatementTypes:function(eu,ed,eh){return eo.DynamicFinancialStatementApiFp(et).dFMControllerListDynamicFinancialStatementTypes(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function DynamicFinancialStatementApi(){return null!==et&&et.apply(this,arguments)||this}return ea(DynamicFinancialStatementApi,et),DynamicFinancialStatementApi.prototype.dFMControllerListDynamicFinancialStatementTypes=function(et,ei,ea){var eu=this;return eo.DynamicFinancialStatementApiFp(this.configuration).dFMControllerListDynamicFinancialStatementTypes(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},DynamicFinancialStatementApi}(ef.BaseAPI);eo.DynamicFinancialStatementApi=em},64264:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.EBITDAApi=eo.EBITDAApiFactory=eo.EBITDAApiFp=eo.EBITDAApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.EBITDAApiAxiosParamCreator=function(et){var eo=this;return{eBITDAControllerActivateClientEBITDA:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling eBITDAControllerActivateClientEBITDA.");for(eS in eo="/ebitda/{clientId}/activate".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},eBITDAControllerCreateClientEBITDA:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling eBITDAControllerCreateClientEBITDA.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling eBITDAControllerCreateClientEBITDA.");for(e_ in eo="/ebitda/{clientId}".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},eBITDAControllerDeactivateClientEBITDA:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling eBITDAControllerDeactivateClientEBITDA.");for(eS in eo="/ebitda/{clientId}/deactivate".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},eBITDAControllerGetClientEBITDA:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling eBITDAControllerGetClientEBITDA.");for(eS in eo="/ebitda/{clientId}".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},eBITDAControllerUpdateClientEBITDA:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling eBITDAControllerUpdateClientEBITDA.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling eBITDAControllerUpdateClientEBITDA.");for(e_ in eo="/ebitda/{clientId}".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.EBITDAApiFp=function(et){return{eBITDAControllerActivateClientEBITDA:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.EBITDAApiAxiosParamCreator(et).eBITDAControllerActivateClientEBITDA(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},eBITDAControllerCreateClientEBITDA:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.EBITDAApiAxiosParamCreator(et).eBITDAControllerCreateClientEBITDA(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},eBITDAControllerDeactivateClientEBITDA:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.EBITDAApiAxiosParamCreator(et).eBITDAControllerDeactivateClientEBITDA(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},eBITDAControllerGetClientEBITDA:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.EBITDAApiAxiosParamCreator(et).eBITDAControllerGetClientEBITDA(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},eBITDAControllerUpdateClientEBITDA:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.EBITDAApiAxiosParamCreator(et).eBITDAControllerUpdateClientEBITDA(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.EBITDAApiFactory=function(et,ei,ea){return{eBITDAControllerActivateClientEBITDA:function(eu,ed){return eo.EBITDAApiFp(et).eBITDAControllerActivateClientEBITDA(eu,ed).then(function(et){return et(ea,ei)})},eBITDAControllerCreateClientEBITDA:function(eu,ed,eh){return eo.EBITDAApiFp(et).eBITDAControllerCreateClientEBITDA(eu,ed,eh).then(function(et){return et(ea,ei)})},eBITDAControllerDeactivateClientEBITDA:function(eu,ed){return eo.EBITDAApiFp(et).eBITDAControllerDeactivateClientEBITDA(eu,ed).then(function(et){return et(ea,ei)})},eBITDAControllerGetClientEBITDA:function(eu,ed){return eo.EBITDAApiFp(et).eBITDAControllerGetClientEBITDA(eu,ed).then(function(et){return et(ea,ei)})},eBITDAControllerUpdateClientEBITDA:function(eu,ed,eh){return eo.EBITDAApiFp(et).eBITDAControllerUpdateClientEBITDA(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function EBITDAApi(){return null!==et&&et.apply(this,arguments)||this}return ea(EBITDAApi,et),EBITDAApi.prototype.eBITDAControllerActivateClientEBITDA=function(et,ei){var ea=this;return eo.EBITDAApiFp(this.configuration).eBITDAControllerActivateClientEBITDA(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},EBITDAApi.prototype.eBITDAControllerCreateClientEBITDA=function(et,ei,ea){var eu=this;return eo.EBITDAApiFp(this.configuration).eBITDAControllerCreateClientEBITDA(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},EBITDAApi.prototype.eBITDAControllerDeactivateClientEBITDA=function(et,ei){var ea=this;return eo.EBITDAApiFp(this.configuration).eBITDAControllerDeactivateClientEBITDA(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},EBITDAApi.prototype.eBITDAControllerGetClientEBITDA=function(et,ei){var ea=this;return eo.EBITDAApiFp(this.configuration).eBITDAControllerGetClientEBITDA(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},EBITDAApi.prototype.eBITDAControllerUpdateClientEBITDA=function(et,ei,ea){var eu=this;return eo.EBITDAApiFp(this.configuration).eBITDAControllerUpdateClientEBITDA(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},EBITDAApi}(ef.BaseAPI);eo.EBITDAApi=em},80606:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.FinancialPackageStageApi=eo.FinancialPackageStageApiFactory=eo.FinancialPackageStageApiFp=eo.FinancialPackageStageApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.FinancialPackageStageApiAxiosParamCreator=function(et){var eo=this;return{financialPackageStageControllerAisSyncWebhook:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling financialPackageStageControllerAisSyncWebhook.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling financialPackageStageControllerAisSyncWebhook.");if(null==ep)throw new ef.RequiredError("financialPackageStageId","Required parameter financialPackageStageId was null or undefined when calling financialPackageStageControllerAisSyncWebhook.");for(ew in eo="/clients/{clientId}/financial-packages-stage/{financialPackageStageId}/ais-sync-webhook".replace("{clientId}",encodeURIComponent(String(ea))).replace("{financialPackageStageId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},financialPackageStageControllerGetFinancialPackagesStage:function(ei,ea,ep,em,eg,ey,eC,eS,e_){return void 0===e_&&(e_={}),ed(eo,void 0,void 0,function(){var eo,ed,ew,eA,eI,eR,eT,eE,eP;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling financialPackageStageControllerGetFinancialPackagesStage.");if(null==ea)throw new ef.RequiredError("pagination","Required parameter pagination was null or undefined when calling financialPackageStageControllerGetFinancialPackagesStage.");for(eE in eo="/clients/{clientId}/financial-packages-stage".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ew=et.baseOptions),eA=eu(eu({method:"GET"},ew),e_),eI={},eR={},void 0!==ep&&(eR.year=ep),void 0!==ea&&(eR.pagination=ea),void 0!==em&&(eR.sortDir=em),void 0!==eg&&(eR.sortBy=eg),void 0!==ey&&(eR.searchTerm=ey),void 0!==eC&&(eR.take=eC),void 0!==eS&&(eR.skip=eS),eT=new URLSearchParams(ed.search),eR)eT.set(eE,eR[eE]);for(eE in e_.query)eT.set(eE,e_.query[eE]);return ed.search=new URLSearchParams(eT).toString(),eP=ew&&ew.headers?ew.headers:{},eA.headers=eu(eu(eu({},eI),eP),e_.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eA}]})})},financialPackageStageControllerUpdateFinancialPackageStage:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling financialPackageStageControllerUpdateFinancialPackageStage.");if(null==ea)throw new ef.RequiredError("financialPackageStageId","Required parameter financialPackageStageId was null or undefined when calling financialPackageStageControllerUpdateFinancialPackageStage.");if(null==ep)throw new ef.RequiredError("status","Required parameter status was null or undefined when calling financialPackageStageControllerUpdateFinancialPackageStage.");for(ew in eo="/clients/{clientId}/financial-packages-stage/{financialPackageStageId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{financialPackageStageId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},void 0!==ep&&(eS.status=ep),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.FinancialPackageStageApiFp=function(et){return{financialPackageStageControllerAisSyncWebhook:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.FinancialPackageStageApiAxiosParamCreator(et).financialPackageStageControllerAisSyncWebhook(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},financialPackageStageControllerGetFinancialPackagesStage:function(ei,ea,em,eg,ey,eC,eS,e_,ew){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.FinancialPackageStageApiAxiosParamCreator(et).financialPackageStageControllerGetFinancialPackagesStage(ei,ea,em,eg,ey,eC,eS,e_,ew)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},financialPackageStageControllerUpdateFinancialPackageStage:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.FinancialPackageStageApiAxiosParamCreator(et).financialPackageStageControllerUpdateFinancialPackageStage(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.FinancialPackageStageApiFactory=function(et,ei,ea){return{financialPackageStageControllerAisSyncWebhook:function(eu,ed,eh,ep){return eo.FinancialPackageStageApiFp(et).financialPackageStageControllerAisSyncWebhook(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},financialPackageStageControllerGetFinancialPackagesStage:function(eu,ed,eh,ep,ef,em,eg,ey,eC){return eo.FinancialPackageStageApiFp(et).financialPackageStageControllerGetFinancialPackagesStage(eu,ed,eh,ep,ef,em,eg,ey,eC).then(function(et){return et(ea,ei)})},financialPackageStageControllerUpdateFinancialPackageStage:function(eu,ed,eh,ep){return eo.FinancialPackageStageApiFp(et).financialPackageStageControllerUpdateFinancialPackageStage(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function FinancialPackageStageApi(){return null!==et&&et.apply(this,arguments)||this}return ea(FinancialPackageStageApi,et),FinancialPackageStageApi.prototype.financialPackageStageControllerAisSyncWebhook=function(et,ei,ea,eu){var ed=this;return eo.FinancialPackageStageApiFp(this.configuration).financialPackageStageControllerAisSyncWebhook(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},FinancialPackageStageApi.prototype.financialPackageStageControllerGetFinancialPackagesStage=function(et,ei,ea,eu,ed,eh,ep,ef,em){var eg=this;return eo.FinancialPackageStageApiFp(this.configuration).financialPackageStageControllerGetFinancialPackagesStage(et,ei,ea,eu,ed,eh,ep,ef,em).then(function(et){return et(eg.axios,eg.basePath)})},FinancialPackageStageApi.prototype.financialPackageStageControllerUpdateFinancialPackageStage=function(et,ei,ea,eu){var ed=this;return eo.FinancialPackageStageApiFp(this.configuration).financialPackageStageControllerUpdateFinancialPackageStage(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},FinancialPackageStageApi}(ef.BaseAPI);eo.FinancialPackageStageApi=em},15926:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.HealthCheckApi=eo.HealthCheckApiFactory=eo.HealthCheckApiFp=eo.HealthCheckApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.HealthCheckApiAxiosParamCreator=function(et){var eo=this;return{healthCheckControllerCheck:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/health-check",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})}}},eo.HealthCheckApiFp=function(et){return{healthCheckControllerCheck:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.HealthCheckApiAxiosParamCreator(et).healthCheckControllerCheck(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})}}},eo.HealthCheckApiFactory=function(et,ei,ea){return{healthCheckControllerCheck:function(eu){return eo.HealthCheckApiFp(et).healthCheckControllerCheck(eu).then(function(et){return et(ea,ei)})}}};var em=function(et){function HealthCheckApi(){return null!==et&&et.apply(this,arguments)||this}return ea(HealthCheckApi,et),HealthCheckApi.prototype.healthCheckControllerCheck=function(et){var ei=this;return eo.HealthCheckApiFp(this.configuration).healthCheckControllerCheck(et).then(function(et){return et(ei.axios,ei.basePath)})},HealthCheckApi}(ef.BaseAPI);eo.HealthCheckApi=em},50628:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.InsightsApi=eo.InsightsApiFactory=eo.InsightsApiFp=eo.InsightsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.InsightsApiAxiosParamCreator=function(et){var eo=this;return{insightsControllerBackfillInsightCard:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling insightsControllerBackfillInsightCard.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerBackfillInsightCard.");for(e_ in eo="/clients/{clientId}/backfill/insights/cards".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},insightsControllerCreateDefaultInsightLayout:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerCreateDefaultInsightLayout.");for(eS in eo="/clients/{clientId}/insights/layout/default".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},insightsControllerCreateInsightCard:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling insightsControllerCreateInsightCard.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerCreateInsightCard.");for(e_ in eo="/clients/{clientId}/insights/card".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},insightsControllerCreateInsightCards:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling insightsControllerCreateInsightCards.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerCreateInsightCards.");for(e_ in eo="/clients/{clientId}/insights/cards".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},insightsControllerCreateInsightLayout:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling insightsControllerCreateInsightLayout.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerCreateInsightLayout.");for(e_ in eo="/clients/{clientId}/insights/layout".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},insightsControllerGetAvailableInsightPeriods:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerGetAvailableInsightPeriods.");for(eS in eo="/clients/{clientId}/insights/periods".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},insightsControllerGetInsightCards:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerGetInsightCards.");if(null==ea)throw new ef.RequiredError("period","Required parameter period was null or undefined when calling insightsControllerGetInsightCards.");for(e_ in eo="/clients/{clientId}/insights/cards/{period}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{period}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},insightsControllerUpdateUserInsightPosition:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling insightsControllerUpdateUserInsightPosition.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling insightsControllerUpdateUserInsightPosition.");for(e_ in eo="/clients/{clientId}/insights/layout".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.InsightsApiFp=function(et){return{insightsControllerBackfillInsightCard:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerBackfillInsightCard(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},insightsControllerCreateDefaultInsightLayout:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerCreateDefaultInsightLayout(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},insightsControllerCreateInsightCard:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerCreateInsightCard(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},insightsControllerCreateInsightCards:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerCreateInsightCards(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},insightsControllerCreateInsightLayout:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerCreateInsightLayout(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},insightsControllerGetAvailableInsightPeriods:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerGetAvailableInsightPeriods(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},insightsControllerGetInsightCards:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerGetInsightCards(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},insightsControllerUpdateUserInsightPosition:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.InsightsApiAxiosParamCreator(et).insightsControllerUpdateUserInsightPosition(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.InsightsApiFactory=function(et,ei,ea){return{insightsControllerBackfillInsightCard:function(eu,ed,eh){return eo.InsightsApiFp(et).insightsControllerBackfillInsightCard(eu,ed,eh).then(function(et){return et(ea,ei)})},insightsControllerCreateDefaultInsightLayout:function(eu,ed){return eo.InsightsApiFp(et).insightsControllerCreateDefaultInsightLayout(eu,ed).then(function(et){return et(ea,ei)})},insightsControllerCreateInsightCard:function(eu,ed,eh){return eo.InsightsApiFp(et).insightsControllerCreateInsightCard(eu,ed,eh).then(function(et){return et(ea,ei)})},insightsControllerCreateInsightCards:function(eu,ed,eh){return eo.InsightsApiFp(et).insightsControllerCreateInsightCards(eu,ed,eh).then(function(et){return et(ea,ei)})},insightsControllerCreateInsightLayout:function(eu,ed,eh){return eo.InsightsApiFp(et).insightsControllerCreateInsightLayout(eu,ed,eh).then(function(et){return et(ea,ei)})},insightsControllerGetAvailableInsightPeriods:function(eu,ed){return eo.InsightsApiFp(et).insightsControllerGetAvailableInsightPeriods(eu,ed).then(function(et){return et(ea,ei)})},insightsControllerGetInsightCards:function(eu,ed,eh){return eo.InsightsApiFp(et).insightsControllerGetInsightCards(eu,ed,eh).then(function(et){return et(ea,ei)})},insightsControllerUpdateUserInsightPosition:function(eu,ed,eh){return eo.InsightsApiFp(et).insightsControllerUpdateUserInsightPosition(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function InsightsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(InsightsApi,et),InsightsApi.prototype.insightsControllerBackfillInsightCard=function(et,ei,ea){var eu=this;return eo.InsightsApiFp(this.configuration).insightsControllerBackfillInsightCard(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},InsightsApi.prototype.insightsControllerCreateDefaultInsightLayout=function(et,ei){var ea=this;return eo.InsightsApiFp(this.configuration).insightsControllerCreateDefaultInsightLayout(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},InsightsApi.prototype.insightsControllerCreateInsightCard=function(et,ei,ea){var eu=this;return eo.InsightsApiFp(this.configuration).insightsControllerCreateInsightCard(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},InsightsApi.prototype.insightsControllerCreateInsightCards=function(et,ei,ea){var eu=this;return eo.InsightsApiFp(this.configuration).insightsControllerCreateInsightCards(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},InsightsApi.prototype.insightsControllerCreateInsightLayout=function(et,ei,ea){var eu=this;return eo.InsightsApiFp(this.configuration).insightsControllerCreateInsightLayout(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},InsightsApi.prototype.insightsControllerGetAvailableInsightPeriods=function(et,ei){var ea=this;return eo.InsightsApiFp(this.configuration).insightsControllerGetAvailableInsightPeriods(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},InsightsApi.prototype.insightsControllerGetInsightCards=function(et,ei,ea){var eu=this;return eo.InsightsApiFp(this.configuration).insightsControllerGetInsightCards(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},InsightsApi.prototype.insightsControllerUpdateUserInsightPosition=function(et,ei,ea){var eu=this;return eo.InsightsApiFp(this.configuration).insightsControllerUpdateUserInsightPosition(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},InsightsApi}(ef.BaseAPI);eo.InsightsApi=em},37886:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ISClassificationApi=eo.ISClassificationApiFactory=eo.ISClassificationApiFp=eo.ISClassificationApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ISClassificationApiAxiosParamCreator=function(et){var eo=this;return{isClassificationControllerCreateClientGLClass:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling isClassificationControllerCreateClientGLClass.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling isClassificationControllerCreateClientGLClass.");for(e_ in eo="/clients/{clientId}/gl-class-list".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},isClassificationControllerCreateClientIsClassifications:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling isClassificationControllerCreateClientIsClassifications.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling isClassificationControllerCreateClientIsClassifications.");for(e_ in eo="/clients/{clientId}/client-is-classifications".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},isClassificationControllerGetClientGLClass:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling isClassificationControllerGetClientGLClass.");for(eS in eo="/clients/{clientId}/gl-class-list".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},isClassificationControllerGetClientIsClassifications:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling isClassificationControllerGetClientIsClassifications.");for(eS in eo="/clients/{clientId}/client-is-classifications".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},isClassificationControllerListAisClass:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling isClassificationControllerListAisClass.");for(eS in eo="/clients/{clientId}/classes".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},isClassificationControllerListAisLocation:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling isClassificationControllerListAisLocation.");for(eS in eo="/clients/{clientId}/locations".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},isClassificationControllerRemoveGlClientList:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling isClassificationControllerRemoveGlClientList.");for(eS in eo="/clients/{clientId}/gl-class-list".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"DELETE"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.ISClassificationApiFp=function(et){return{isClassificationControllerCreateClientGLClass:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ISClassificationApiAxiosParamCreator(et).isClassificationControllerCreateClientGLClass(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},isClassificationControllerCreateClientIsClassifications:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ISClassificationApiAxiosParamCreator(et).isClassificationControllerCreateClientIsClassifications(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},isClassificationControllerGetClientGLClass:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ISClassificationApiAxiosParamCreator(et).isClassificationControllerGetClientGLClass(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},isClassificationControllerGetClientIsClassifications:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ISClassificationApiAxiosParamCreator(et).isClassificationControllerGetClientIsClassifications(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},isClassificationControllerListAisClass:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ISClassificationApiAxiosParamCreator(et).isClassificationControllerListAisClass(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},isClassificationControllerListAisLocation:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ISClassificationApiAxiosParamCreator(et).isClassificationControllerListAisLocation(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},isClassificationControllerRemoveGlClientList:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ISClassificationApiAxiosParamCreator(et).isClassificationControllerRemoveGlClientList(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ISClassificationApiFactory=function(et,ei,ea){return{isClassificationControllerCreateClientGLClass:function(eu,ed,eh){return eo.ISClassificationApiFp(et).isClassificationControllerCreateClientGLClass(eu,ed,eh).then(function(et){return et(ea,ei)})},isClassificationControllerCreateClientIsClassifications:function(eu,ed,eh){return eo.ISClassificationApiFp(et).isClassificationControllerCreateClientIsClassifications(eu,ed,eh).then(function(et){return et(ea,ei)})},isClassificationControllerGetClientGLClass:function(eu,ed){return eo.ISClassificationApiFp(et).isClassificationControllerGetClientGLClass(eu,ed).then(function(et){return et(ea,ei)})},isClassificationControllerGetClientIsClassifications:function(eu,ed){return eo.ISClassificationApiFp(et).isClassificationControllerGetClientIsClassifications(eu,ed).then(function(et){return et(ea,ei)})},isClassificationControllerListAisClass:function(eu,ed){return eo.ISClassificationApiFp(et).isClassificationControllerListAisClass(eu,ed).then(function(et){return et(ea,ei)})},isClassificationControllerListAisLocation:function(eu,ed){return eo.ISClassificationApiFp(et).isClassificationControllerListAisLocation(eu,ed).then(function(et){return et(ea,ei)})},isClassificationControllerRemoveGlClientList:function(eu,ed){return eo.ISClassificationApiFp(et).isClassificationControllerRemoveGlClientList(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function ISClassificationApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ISClassificationApi,et),ISClassificationApi.prototype.isClassificationControllerCreateClientGLClass=function(et,ei,ea){var eu=this;return eo.ISClassificationApiFp(this.configuration).isClassificationControllerCreateClientGLClass(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ISClassificationApi.prototype.isClassificationControllerCreateClientIsClassifications=function(et,ei,ea){var eu=this;return eo.ISClassificationApiFp(this.configuration).isClassificationControllerCreateClientIsClassifications(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ISClassificationApi.prototype.isClassificationControllerGetClientGLClass=function(et,ei){var ea=this;return eo.ISClassificationApiFp(this.configuration).isClassificationControllerGetClientGLClass(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ISClassificationApi.prototype.isClassificationControllerGetClientIsClassifications=function(et,ei){var ea=this;return eo.ISClassificationApiFp(this.configuration).isClassificationControllerGetClientIsClassifications(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ISClassificationApi.prototype.isClassificationControllerListAisClass=function(et,ei){var ea=this;return eo.ISClassificationApiFp(this.configuration).isClassificationControllerListAisClass(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ISClassificationApi.prototype.isClassificationControllerListAisLocation=function(et,ei){var ea=this;return eo.ISClassificationApiFp(this.configuration).isClassificationControllerListAisLocation(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ISClassificationApi.prototype.isClassificationControllerRemoveGlClientList=function(et,ei){var ea=this;return eo.ISClassificationApiFp(this.configuration).isClassificationControllerRemoveGlClientList(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ISClassificationApi}(ef.BaseAPI);eo.ISClassificationApi=em},68600:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.KPIsApi=eo.KPIsApiFactory=eo.KPIsApiFp=eo.KPIsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.KPIsApiAxiosParamCreator=function(et){var eo=this;return{kpisControllerAddCustomKpi:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling kpisControllerAddCustomKpi.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling kpisControllerAddCustomKpi.");for(e_ in eo="/clients/{clientId}/custom-kpi".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},kpisControllerAddUpdateStdKpi:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling kpisControllerAddUpdateStdKpi.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling kpisControllerAddUpdateStdKpi.");for(e_ in eo="/clients/{clientId}/kpis".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},kpisControllerArchiveStandardKpi:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("standardKpiId","Required parameter standardKpiId was null or undefined when calling kpisControllerArchiveStandardKpi.");for(eS in eo="/kpis/standard-kpis/{standardKpiId}/archive".replace("{standardKpiId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},kpisControllerGetCustomKpiDetails:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling kpisControllerGetCustomKpiDetails.");if(null==ea)throw new ef.RequiredError("customKpiId","Required parameter customKpiId was null or undefined when calling kpisControllerGetCustomKpiDetails.");for(e_ in eo="/clients/{clientId}/custom-kpi/{customKpiId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customKpiId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},kpisControllerGetKpiDetails:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("standardKpiId","Required parameter standardKpiId was null or undefined when calling kpisControllerGetKpiDetails.");for(eS in eo="/kpis/standard-kpis/{standardKpiId}".replace("{standardKpiId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},kpisControllerGetKpiInputs:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("type","Required parameter type was null or undefined when calling kpisControllerGetKpiInputs.");for(e_ in eo="/kpis/input-data",ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},void 0!==ea&&(eC.clientId=ea),void 0!==ei&&(eC.type=ei),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},kpisControllerGetKpiSnapshots:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling kpisControllerGetKpiSnapshots.");if(null==ea)throw new ef.RequiredError("kpiId","Required parameter kpiId was null or undefined when calling kpisControllerGetKpiSnapshots.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling kpisControllerGetKpiSnapshots.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling kpisControllerGetKpiSnapshots.");if(null==eg)throw new ef.RequiredError("kpiType","Required parameter kpiType was null or undefined when calling kpisControllerGetKpiSnapshots.");for(eI in eo="/clients/{clientId}/kpi/{kpiId}/{year}/{month}/snapshots".replace("{clientId}",encodeURIComponent(String(ei))).replace("{kpiId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==eg&&(ew.kpiType=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},kpisControllerListCustomKpis:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew,eA,eI){return void 0===eI&&(eI={}),ed(eo,void 0,void 0,function(){var eo,ed,eR,eT,eE,eP,ek,eO,eM;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling kpisControllerListCustomKpis.");if(null==ea)throw new ef.RequiredError("pagination","Required parameter pagination was null or undefined when calling kpisControllerListCustomKpis.");for(eO in eo="/clients/{clientId}/custom-kpi".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eR=et.baseOptions),eT=eu(eu({method:"GET"},eR),eI),eE={},eP={},void 0!==ep&&(eP.mode=ep),void 0!==em&&(eP.year=em),void 0!==eg&&(eP.month=eg),void 0!==ey&&(eP.sortDir=ey),void 0!==eC&&(eP.sortBy=eC),void 0!==eS&&(eP.take=eS),void 0!==e_&&(eP.skip=e_),void 0!==ew&&(eP.searchTerm=ew),void 0!==eA&&(eP.active=eA),void 0!==ea&&(eP.pagination=ea),ek=new URLSearchParams(ed.search),eP)ek.set(eO,eP[eO]);for(eO in eI.query)ek.set(eO,eI.query[eO]);return ed.search=new URLSearchParams(ek).toString(),eM=eR&&eR.headers?eR.headers:{},eT.headers=eu(eu(eu({},eE),eM),eI.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eT}]})})},kpisControllerListStandardKpiCategories:function(ei,ea,ep,ef,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){for(eA in eo="/kpis/standard-kpi-categories",ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==ei&&(e_.sortDir=ei),void 0!==ea&&(e_.sortBy=ea),void 0!==ep&&(e_.take=ep),void 0!==ef&&(e_.skip=ef),void 0!==em&&(e_.searchTerm=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},kpisControllerListStandardKpis:function(ei,ea,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI,eR){return void 0===eR&&(eR={}),ed(eo,void 0,void 0,function(){var eo,ed,eT,eE,eP,ek,eO,eM,eD;return eh(this,function(eh){for(eM in eo="/kpis/standard-kpis",ed=new URL(eo,"https://example.com"),et&&(eT=et.baseOptions),eE=eu(eu({method:"GET"},eT),eR),eP={},ek={},void 0!==ei&&(ek.mode=ei),void 0!==ea&&(ek.year=ea),void 0!==ep&&(ek.month=ep),void 0!==ef&&(ek.sortDir=ef),void 0!==em&&(ek.clientId=em),void 0!==eg&&(ek.categoryId=eg),void 0!==ey&&(ek.sortBy=ey),void 0!==eC&&(ek.take=eC),void 0!==eS&&(ek.skip=eS),void 0!==e_&&(ek.searchTerm=e_),ew&&(ek.include=ew),void 0!==eA&&(ek.archive=eA),void 0!==eI&&(ek.active=eI),eO=new URLSearchParams(ed.search),ek)eO.set(eM,ek[eM]);for(eM in eR.query)eO.set(eM,eR.query[eM]);return ed.search=new URLSearchParams(eO).toString(),eD=eT&&eT.headers?eT.headers:{},eE.headers=eu(eu(eu({},eP),eD),eR.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eE}]})})},kpisControllerRestoreStandardKpi:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("standardKpiId","Required parameter standardKpiId was null or undefined when calling kpisControllerRestoreStandardKpi.");for(eS in eo="/kpis/standard-kpis/{standardKpiId}/restore".replace("{standardKpiId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},kpisControllerUpdateCustomKpi:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling kpisControllerUpdateCustomKpi.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling kpisControllerUpdateCustomKpi.");if(null==ep)throw new ef.RequiredError("customKpiId","Required parameter customKpiId was null or undefined when calling kpisControllerUpdateCustomKpi.");for(ew in eo="/clients/{clientId}/custom-kpi/{customKpiId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{customKpiId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.KPIsApiFp=function(et){return{kpisControllerAddCustomKpi:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerAddCustomKpi(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerAddUpdateStdKpi:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerAddUpdateStdKpi(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerArchiveStandardKpi:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerArchiveStandardKpi(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerGetCustomKpiDetails:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerGetCustomKpiDetails(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerGetKpiDetails:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerGetKpiDetails(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerGetKpiInputs:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerGetKpiInputs(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerGetKpiSnapshots:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerGetKpiSnapshots(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerListCustomKpis:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerListCustomKpis(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerListStandardKpiCategories:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerListStandardKpiCategories(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerListStandardKpis:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT,eE){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerListStandardKpis(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT,eE)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerRestoreStandardKpi:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerRestoreStandardKpi(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},kpisControllerUpdateCustomKpi:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.KPIsApiAxiosParamCreator(et).kpisControllerUpdateCustomKpi(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.KPIsApiFactory=function(et,ei,ea){return{kpisControllerAddCustomKpi:function(eu,ed,eh){return eo.KPIsApiFp(et).kpisControllerAddCustomKpi(eu,ed,eh).then(function(et){return et(ea,ei)})},kpisControllerAddUpdateStdKpi:function(eu,ed,eh){return eo.KPIsApiFp(et).kpisControllerAddUpdateStdKpi(eu,ed,eh).then(function(et){return et(ea,ei)})},kpisControllerArchiveStandardKpi:function(eu,ed){return eo.KPIsApiFp(et).kpisControllerArchiveStandardKpi(eu,ed).then(function(et){return et(ea,ei)})},kpisControllerGetCustomKpiDetails:function(eu,ed,eh){return eo.KPIsApiFp(et).kpisControllerGetCustomKpiDetails(eu,ed,eh).then(function(et){return et(ea,ei)})},kpisControllerGetKpiDetails:function(eu,ed){return eo.KPIsApiFp(et).kpisControllerGetKpiDetails(eu,ed).then(function(et){return et(ea,ei)})},kpisControllerGetKpiInputs:function(eu,ed,eh){return eo.KPIsApiFp(et).kpisControllerGetKpiInputs(eu,ed,eh).then(function(et){return et(ea,ei)})},kpisControllerGetKpiSnapshots:function(eu,ed,eh,ep,ef,em){return eo.KPIsApiFp(et).kpisControllerGetKpiSnapshots(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},kpisControllerListCustomKpis:function(eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew){return eo.KPIsApiFp(et).kpisControllerListCustomKpis(eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew).then(function(et){return et(ea,ei)})},kpisControllerListStandardKpiCategories:function(eu,ed,eh,ep,ef,em){return eo.KPIsApiFp(et).kpisControllerListStandardKpiCategories(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},kpisControllerListStandardKpis:function(eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI){return eo.KPIsApiFp(et).kpisControllerListStandardKpis(eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI).then(function(et){return et(ea,ei)})},kpisControllerRestoreStandardKpi:function(eu,ed){return eo.KPIsApiFp(et).kpisControllerRestoreStandardKpi(eu,ed).then(function(et){return et(ea,ei)})},kpisControllerUpdateCustomKpi:function(eu,ed,eh,ep){return eo.KPIsApiFp(et).kpisControllerUpdateCustomKpi(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function KPIsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(KPIsApi,et),KPIsApi.prototype.kpisControllerAddCustomKpi=function(et,ei,ea){var eu=this;return eo.KPIsApiFp(this.configuration).kpisControllerAddCustomKpi(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},KPIsApi.prototype.kpisControllerAddUpdateStdKpi=function(et,ei,ea){var eu=this;return eo.KPIsApiFp(this.configuration).kpisControllerAddUpdateStdKpi(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},KPIsApi.prototype.kpisControllerArchiveStandardKpi=function(et,ei){var ea=this;return eo.KPIsApiFp(this.configuration).kpisControllerArchiveStandardKpi(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},KPIsApi.prototype.kpisControllerGetCustomKpiDetails=function(et,ei,ea){var eu=this;return eo.KPIsApiFp(this.configuration).kpisControllerGetCustomKpiDetails(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},KPIsApi.prototype.kpisControllerGetKpiDetails=function(et,ei){var ea=this;return eo.KPIsApiFp(this.configuration).kpisControllerGetKpiDetails(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},KPIsApi.prototype.kpisControllerGetKpiInputs=function(et,ei,ea){var eu=this;return eo.KPIsApiFp(this.configuration).kpisControllerGetKpiInputs(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},KPIsApi.prototype.kpisControllerGetKpiSnapshots=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.KPIsApiFp(this.configuration).kpisControllerGetKpiSnapshots(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},KPIsApi.prototype.kpisControllerListCustomKpis=function(et,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC){var eS=this;return eo.KPIsApiFp(this.configuration).kpisControllerListCustomKpis(et,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC).then(function(et){return et(eS.axios,eS.basePath)})},KPIsApi.prototype.kpisControllerListStandardKpiCategories=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.KPIsApiFp(this.configuration).kpisControllerListStandardKpiCategories(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},KPIsApi.prototype.kpisControllerListStandardKpis=function(et,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_){var ew=this;return eo.KPIsApiFp(this.configuration).kpisControllerListStandardKpis(et,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_).then(function(et){return et(ew.axios,ew.basePath)})},KPIsApi.prototype.kpisControllerRestoreStandardKpi=function(et,ei){var ea=this;return eo.KPIsApiFp(this.configuration).kpisControllerRestoreStandardKpi(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},KPIsApi.prototype.kpisControllerUpdateCustomKpi=function(et,ei,ea,eu){var ed=this;return eo.KPIsApiFp(this.configuration).kpisControllerUpdateCustomKpi(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},KPIsApi}(ef.BaseAPI);eo.KPIsApi=em},21428:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.MediaItemsApi=eo.MediaItemsApiFactory=eo.MediaItemsApiFp=eo.MediaItemsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.MediaItemsApiAxiosParamCreator=function(et){var eo=this;return{mediaItemsControllerGetMediaItemById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling mediaItemsControllerGetMediaItemById.");if(null==ea)throw new ef.RequiredError("mediaItemId","Required parameter mediaItemId was null or undefined when calling mediaItemsControllerGetMediaItemById.");for(e_ in eo="/clients/{clientId}/media-items/{mediaItemId}/details".replace("{clientId}",encodeURIComponent(String(ei))).replace("{mediaItemId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},mediaItemsControllerGetMediaItems:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling mediaItemsControllerGetMediaItems.");for(eR in eo="/clients/{clientId}/media-items".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==ea&&(eA.sortDir=ea),void 0!==ep&&(eA.sortBy=ep),void 0!==em&&(eA.take=em),void 0!==eg&&(eA.skip=eg),void 0!==ey&&(eA.searchTerm=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},mediaItemsControllerUploadImage:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("file","Required parameter file was null or undefined when calling mediaItemsControllerUploadImage.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling mediaItemsControllerUploadImage.");for(ew in eo="/clients/{clientId}/media-items".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new FormData,void 0!==ei&&eS.append("file",ei),ey["Content-Type"]="multipart/form-data",e_=new URLSearchParams(ed.search),eC)e_.set(ew,eC[ew]);for(ew in ep.query)e_.set(ew,ep.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eA),ep.headers),eg.data=eS,[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})}}},eo.MediaItemsApiFp=function(et){return{mediaItemsControllerGetMediaItemById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.MediaItemsApiAxiosParamCreator(et).mediaItemsControllerGetMediaItemById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},mediaItemsControllerGetMediaItems:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.MediaItemsApiAxiosParamCreator(et).mediaItemsControllerGetMediaItems(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},mediaItemsControllerUploadImage:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.MediaItemsApiAxiosParamCreator(et).mediaItemsControllerUploadImage(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.MediaItemsApiFactory=function(et,ei,ea){return{mediaItemsControllerGetMediaItemById:function(eu,ed,eh){return eo.MediaItemsApiFp(et).mediaItemsControllerGetMediaItemById(eu,ed,eh).then(function(et){return et(ea,ei)})},mediaItemsControllerGetMediaItems:function(eu,ed,eh,ep,ef,em,eg){return eo.MediaItemsApiFp(et).mediaItemsControllerGetMediaItems(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},mediaItemsControllerUploadImage:function(eu,ed,eh){return eo.MediaItemsApiFp(et).mediaItemsControllerUploadImage(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function MediaItemsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(MediaItemsApi,et),MediaItemsApi.prototype.mediaItemsControllerGetMediaItemById=function(et,ei,ea){var eu=this;return eo.MediaItemsApiFp(this.configuration).mediaItemsControllerGetMediaItemById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},MediaItemsApi.prototype.mediaItemsControllerGetMediaItems=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.MediaItemsApiFp(this.configuration).mediaItemsControllerGetMediaItems(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},MediaItemsApi.prototype.mediaItemsControllerUploadImage=function(et,ei,ea){var eu=this;return eo.MediaItemsApiFp(this.configuration).mediaItemsControllerUploadImage(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},MediaItemsApi}(ef.BaseAPI);eo.MediaItemsApi=em},18128:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.NotesApi=eo.NotesApiFactory=eo.NotesApiFp=eo.NotesApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.NotesApiAxiosParamCreator=function(et){var eo=this;return{notesControllerCustomerVendorTableForNotes:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling notesControllerCustomerVendorTableForNotes.");if(null==ea)throw new ef.RequiredError("noteId","Required parameter noteId was null or undefined when calling notesControllerCustomerVendorTableForNotes.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling notesControllerCustomerVendorTableForNotes.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling notesControllerCustomerVendorTableForNotes.");for(eA in eo="/clients/{clientId}/reports/year/{year}/month/{month}/notes/{noteId}/customer-vendor-table".replace("{clientId}",encodeURIComponent(String(ei))).replace("{noteId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},notesControllerGetNotesAisTable:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling notesControllerGetNotesAisTable.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling notesControllerGetNotesAisTable.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling notesControllerGetNotesAisTable.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling notesControllerGetNotesAisTable.");for(eA in eo="/clients/{clientId}/reports/year/{year}/month/{month}/ais-table".replace("{clientId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"POST"},ey),eg),e_={},(eS={})["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),eR="string"!=typeof ei||"application/json"===eC.headers["Content-Type"],eC.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},notesControllerListNotes:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling notesControllerListNotes.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling notesControllerListNotes.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling notesControllerListNotes.");if(null==em)throw new ef.RequiredError("type","Required parameter type was null or undefined when calling notesControllerListNotes.");for(eA in eo="/clients/{clientId}/reports/{year}/{month}/notes".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==em&&(e_.type=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},notesControllerListNotesByFinancialSnapshot:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling notesControllerListNotesByFinancialSnapshot.");if(null==ea)throw new ef.RequiredError("financialSnapshotId","Required parameter financialSnapshotId was null or undefined when calling notesControllerListNotesByFinancialSnapshot.");for(e_ in eo="/clients/{clientId}/reports/{financialSnapshotId}/notes".replace("{clientId}",encodeURIComponent(String(ei))).replace("{financialSnapshotId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},notesControllerUpdateNote:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling notesControllerUpdateNote.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling notesControllerUpdateNote.");for(e_ in eo="/clients/{clientId}/notes".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PUT"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},notesControllerUpdateNotes:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT,eE;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling notesControllerUpdateNotes.");if(null==ea)throw new ef.RequiredError("type","Required parameter type was null or undefined when calling notesControllerUpdateNotes.");if(null==ep)throw new ef.RequiredError("noteId","Required parameter noteId was null or undefined when calling notesControllerUpdateNotes.");if(null==em)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling notesControllerUpdateNotes.");if(null==eg)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling notesControllerUpdateNotes.");if(null==ey)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling notesControllerUpdateNotes.");for(eR in eo="/clients/{clientId}/reports/{year}/{month}/notes/{noteId}".replace("{noteId}",encodeURIComponent(String(ep))).replace("{clientId}",encodeURIComponent(String(em))).replace("{year}",encodeURIComponent(String(eg))).replace("{month}",encodeURIComponent(String(ey))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"POST"},eS),eC),ew={},eA={},void 0!==ea&&(eA.type=ea),ew["Content-Type"]="application/json",eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),eE="string"!=typeof ei||"application/json"===e_.headers["Content-Type"],e_.data=eE?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})}}},eo.NotesApiFp=function(et){return{notesControllerCustomerVendorTableForNotes:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.NotesApiAxiosParamCreator(et).notesControllerCustomerVendorTableForNotes(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},notesControllerGetNotesAisTable:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.NotesApiAxiosParamCreator(et).notesControllerGetNotesAisTable(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},notesControllerListNotes:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.NotesApiAxiosParamCreator(et).notesControllerListNotes(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},notesControllerListNotesByFinancialSnapshot:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.NotesApiAxiosParamCreator(et).notesControllerListNotesByFinancialSnapshot(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},notesControllerUpdateNote:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.NotesApiAxiosParamCreator(et).notesControllerUpdateNote(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},notesControllerUpdateNotes:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.NotesApiAxiosParamCreator(et).notesControllerUpdateNotes(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.NotesApiFactory=function(et,ei,ea){return{notesControllerCustomerVendorTableForNotes:function(eu,ed,eh,ep,ef){return eo.NotesApiFp(et).notesControllerCustomerVendorTableForNotes(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},notesControllerGetNotesAisTable:function(eu,ed,eh,ep,ef){return eo.NotesApiFp(et).notesControllerGetNotesAisTable(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},notesControllerListNotes:function(eu,ed,eh,ep,ef){return eo.NotesApiFp(et).notesControllerListNotes(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},notesControllerListNotesByFinancialSnapshot:function(eu,ed,eh){return eo.NotesApiFp(et).notesControllerListNotesByFinancialSnapshot(eu,ed,eh).then(function(et){return et(ea,ei)})},notesControllerUpdateNote:function(eu,ed,eh){return eo.NotesApiFp(et).notesControllerUpdateNote(eu,ed,eh).then(function(et){return et(ea,ei)})},notesControllerUpdateNotes:function(eu,ed,eh,ep,ef,em,eg){return eo.NotesApiFp(et).notesControllerUpdateNotes(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})}}};var em=function(et){function NotesApi(){return null!==et&&et.apply(this,arguments)||this}return ea(NotesApi,et),NotesApi.prototype.notesControllerCustomerVendorTableForNotes=function(et,ei,ea,eu,ed){var eh=this;return eo.NotesApiFp(this.configuration).notesControllerCustomerVendorTableForNotes(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},NotesApi.prototype.notesControllerGetNotesAisTable=function(et,ei,ea,eu,ed){var eh=this;return eo.NotesApiFp(this.configuration).notesControllerGetNotesAisTable(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},NotesApi.prototype.notesControllerListNotes=function(et,ei,ea,eu,ed){var eh=this;return eo.NotesApiFp(this.configuration).notesControllerListNotes(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},NotesApi.prototype.notesControllerListNotesByFinancialSnapshot=function(et,ei,ea){var eu=this;return eo.NotesApiFp(this.configuration).notesControllerListNotesByFinancialSnapshot(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},NotesApi.prototype.notesControllerUpdateNote=function(et,ei,ea){var eu=this;return eo.NotesApiFp(this.configuration).notesControllerUpdateNote(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},NotesApi.prototype.notesControllerUpdateNotes=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.NotesApiFp(this.configuration).notesControllerUpdateNotes(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},NotesApi}(ef.BaseAPI);eo.NotesApi=em},58699:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ProfitRecommendationsApi=eo.ProfitRecommendationsApiFactory=eo.ProfitRecommendationsApiFp=eo.ProfitRecommendationsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ProfitRecommendationsApiAxiosParamCreator=function(et){var eo=this;return{profitRecommendationsControllerAddProfitRecommendation:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling profitRecommendationsControllerAddProfitRecommendation.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerAddProfitRecommendation.");for(e_ in eo="/clients/{clientId}/profit-recommendation".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},profitRecommendationsControllerAddProfitRecommendationNote:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling profitRecommendationsControllerAddProfitRecommendationNote.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerAddProfitRecommendationNote.");if(null==ep)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerAddProfitRecommendationNote.");for(ew in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/internal-notes".replace("{clientId}",encodeURIComponent(String(ea))).replace("{recommendationId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},profitRecommendationsControllerArchiveProfitRecommendationById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerArchiveProfitRecommendationById.");if(null==ea)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerArchiveProfitRecommendationById.");for(e_ in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/archive".replace("{clientId}",encodeURIComponent(String(ei))).replace("{recommendationId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},profitRecommendationsControllerCreateProfitRecommendationSteps:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling profitRecommendationsControllerCreateProfitRecommendationSteps.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerCreateProfitRecommendationSteps.");if(null==ep)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerCreateProfitRecommendationSteps.");for(ew in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/steps".replace("{clientId}",encodeURIComponent(String(ea))).replace("{recommendationId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},profitRecommendationsControllerDeleteProfitRecommendationNotesById:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerDeleteProfitRecommendationNotesById.");if(null==ea)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerDeleteProfitRecommendationNotesById.");if(null==ep)throw new ef.RequiredError("noteId","Required parameter noteId was null or undefined when calling profitRecommendationsControllerDeleteProfitRecommendationNotesById.");for(ew in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/internal-notes/{noteId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{recommendationId}",encodeURIComponent(String(ea))).replace("{noteId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"DELETE"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},profitRecommendationsControllerGetProfitRecommendationById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerGetProfitRecommendationById.");if(null==ea)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerGetProfitRecommendationById.");for(e_ in eo="/clients/{clientId}/profit-recommendations/{recommendationId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{recommendationId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},profitRecommendationsControllerGetProfitRecommendationNotes:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerGetProfitRecommendationNotes.");if(null==ea)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerGetProfitRecommendationNotes.");for(eI in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/internal-notes".replace("{clientId}",encodeURIComponent(String(ei))).replace("{recommendationId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==ep&&(ew.searchTerm=ep),void 0!==em&&(ew.take=em),void 0!==eg&&(ew.skip=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},profitRecommendationsControllerGetProfitRecommendationSteps:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerGetProfitRecommendationSteps.");if(null==ea)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerGetProfitRecommendationSteps.");for(e_ in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/steps".replace("{clientId}",encodeURIComponent(String(ei))).replace("{recommendationId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},profitRecommendationsControllerGetProfitRecommendations:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew,eA,eI){return void 0===eI&&(eI={}),ed(eo,void 0,void 0,function(){var eo,ed,eR,eT,eE,eP,ek,eO,eM;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerGetProfitRecommendations.");if(null==ea)throw new ef.RequiredError("pagination","Required parameter pagination was null or undefined when calling profitRecommendationsControllerGetProfitRecommendations.");for(eO in eo="/clients/{clientId}/profit-recommendations".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eR=et.baseOptions),eT=eu(eu({method:"GET"},eR),eI),eE={},eP={},void 0!==ea&&(eP.pagination=ea),void 0!==ep&&(eP.status=ep),void 0!==em&&(eP.period=em),void 0!==eg&&(eP.filterBy=eg),void 0!==ey&&(eP.archive=ey),void 0!==eC&&(eP.sortDir=eC),void 0!==eS&&(eP.sortBy=eS),void 0!==e_&&(eP.searchTerm=e_),void 0!==ew&&(eP.take=ew),void 0!==eA&&(eP.skip=eA),ek=new URLSearchParams(ed.search),eP)ek.set(eO,eP[eO]);for(eO in eI.query)ek.set(eO,eI.query[eO]);return ed.search=new URLSearchParams(ek).toString(),eM=eR&&eR.headers?eR.headers:{},eT.headers=eu(eu(eu({},eE),eM),eI.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eT}]})})},profitRecommendationsControllerRestoreProfitRecommendationById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerRestoreProfitRecommendationById.");if(null==ea)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerRestoreProfitRecommendationById.");for(e_ in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/restore".replace("{clientId}",encodeURIComponent(String(ei))).replace("{recommendationId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},profitRecommendationsControllerUpdateNote:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling profitRecommendationsControllerUpdateNote.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerUpdateNote.");if(null==ep)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerUpdateNote.");if(null==em)throw new ef.RequiredError("noteId","Required parameter noteId was null or undefined when calling profitRecommendationsControllerUpdateNote.");for(eA in eo="/clients/{clientId}/profit-recommendations/{recommendationId}/internal-notes/{noteId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{recommendationId}",encodeURIComponent(String(ep))).replace("{noteId}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"PATCH"},ey),eg),e_={},(eS={})["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),eR="string"!=typeof ei||"application/json"===eC.headers["Content-Type"],eC.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},profitRecommendationsControllerUpdateProfitRecommendation:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling profitRecommendationsControllerUpdateProfitRecommendation.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling profitRecommendationsControllerUpdateProfitRecommendation.");if(null==ep)throw new ef.RequiredError("recommendationId","Required parameter recommendationId was null or undefined when calling profitRecommendationsControllerUpdateProfitRecommendation.");for(ew in eo="/clients/{clientId}/profit-recommendations/{recommendationId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{recommendationId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.ProfitRecommendationsApiFp=function(et){return{profitRecommendationsControllerAddProfitRecommendation:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerAddProfitRecommendation(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerAddProfitRecommendationNote:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerAddProfitRecommendationNote(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerArchiveProfitRecommendationById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerArchiveProfitRecommendationById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerCreateProfitRecommendationSteps:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerCreateProfitRecommendationSteps(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerDeleteProfitRecommendationNotesById:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerDeleteProfitRecommendationNotesById(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerGetProfitRecommendationById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerGetProfitRecommendationById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerGetProfitRecommendationNotes:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerGetProfitRecommendationNotes(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerGetProfitRecommendationSteps:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerGetProfitRecommendationSteps(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerGetProfitRecommendations:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerGetProfitRecommendations(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerRestoreProfitRecommendationById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerRestoreProfitRecommendationById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerUpdateNote:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerUpdateNote(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},profitRecommendationsControllerUpdateProfitRecommendation:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ProfitRecommendationsApiAxiosParamCreator(et).profitRecommendationsControllerUpdateProfitRecommendation(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ProfitRecommendationsApiFactory=function(et,ei,ea){return{profitRecommendationsControllerAddProfitRecommendation:function(eu,ed,eh){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerAddProfitRecommendation(eu,ed,eh).then(function(et){return et(ea,ei)})},profitRecommendationsControllerAddProfitRecommendationNote:function(eu,ed,eh,ep){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerAddProfitRecommendationNote(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},profitRecommendationsControllerArchiveProfitRecommendationById:function(eu,ed,eh){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerArchiveProfitRecommendationById(eu,ed,eh).then(function(et){return et(ea,ei)})},profitRecommendationsControllerCreateProfitRecommendationSteps:function(eu,ed,eh,ep){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerCreateProfitRecommendationSteps(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},profitRecommendationsControllerDeleteProfitRecommendationNotesById:function(eu,ed,eh,ep){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerDeleteProfitRecommendationNotesById(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},profitRecommendationsControllerGetProfitRecommendationById:function(eu,ed,eh){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerGetProfitRecommendationById(eu,ed,eh).then(function(et){return et(ea,ei)})},profitRecommendationsControllerGetProfitRecommendationNotes:function(eu,ed,eh,ep,ef,em){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerGetProfitRecommendationNotes(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},profitRecommendationsControllerGetProfitRecommendationSteps:function(eu,ed,eh){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerGetProfitRecommendationSteps(eu,ed,eh).then(function(et){return et(ea,ei)})},profitRecommendationsControllerGetProfitRecommendations:function(eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerGetProfitRecommendations(eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew).then(function(et){return et(ea,ei)})},profitRecommendationsControllerRestoreProfitRecommendationById:function(eu,ed,eh){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerRestoreProfitRecommendationById(eu,ed,eh).then(function(et){return et(ea,ei)})},profitRecommendationsControllerUpdateNote:function(eu,ed,eh,ep,ef){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerUpdateNote(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},profitRecommendationsControllerUpdateProfitRecommendation:function(eu,ed,eh,ep){return eo.ProfitRecommendationsApiFp(et).profitRecommendationsControllerUpdateProfitRecommendation(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function ProfitRecommendationsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ProfitRecommendationsApi,et),ProfitRecommendationsApi.prototype.profitRecommendationsControllerAddProfitRecommendation=function(et,ei,ea){var eu=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerAddProfitRecommendation(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerAddProfitRecommendationNote=function(et,ei,ea,eu){var ed=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerAddProfitRecommendationNote(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerArchiveProfitRecommendationById=function(et,ei,ea){var eu=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerArchiveProfitRecommendationById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerCreateProfitRecommendationSteps=function(et,ei,ea,eu){var ed=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerCreateProfitRecommendationSteps(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerDeleteProfitRecommendationNotesById=function(et,ei,ea,eu){var ed=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerDeleteProfitRecommendationNotesById(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerGetProfitRecommendationById=function(et,ei,ea){var eu=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerGetProfitRecommendationById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerGetProfitRecommendationNotes=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerGetProfitRecommendationNotes(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerGetProfitRecommendationSteps=function(et,ei,ea){var eu=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerGetProfitRecommendationSteps(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerGetProfitRecommendations=function(et,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC){var eS=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerGetProfitRecommendations(et,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC).then(function(et){return et(eS.axios,eS.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerRestoreProfitRecommendationById=function(et,ei,ea){var eu=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerRestoreProfitRecommendationById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerUpdateNote=function(et,ei,ea,eu,ed){var eh=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerUpdateNote(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ProfitRecommendationsApi.prototype.profitRecommendationsControllerUpdateProfitRecommendation=function(et,ei,ea,eu){var ed=this;return eo.ProfitRecommendationsApiFp(this.configuration).profitRecommendationsControllerUpdateProfitRecommendation(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ProfitRecommendationsApi}(ef.BaseAPI);eo.ProfitRecommendationsApi=em},20550:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.QbdJobLogsApi=eo.QbdJobLogsApiFactory=eo.QbdJobLogsApiFp=eo.QbdJobLogsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.QbdJobLogsApiAxiosParamCreator=function(et){var eo=this;return{qbdJobLogControllerAddQbdJobLog:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qbdJobLogControllerAddQbdJobLog.");for(eS in eo="/clients/{clientId}/qbd-job-log".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},qbdJobLogControllerGetQbdJobRunStatus:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qbdJobLogControllerGetQbdJobRunStatus.");if(null==ea)throw new ef.RequiredError("qbdJobLogId","Required parameter qbdJobLogId was null or undefined when calling qbdJobLogControllerGetQbdJobRunStatus.");for(e_ in eo="/clients/{clientId}/qbd-job-log/{qbdJobLogId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{qbdJobLogId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},qbdJobLogControllerGetQbdLastJob:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qbdJobLogControllerGetQbdLastJob.");for(eS in eo="/clients/{clientId}/qbd-processing-check".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},qbdJobLogControllerSetQbdJobRunStatus:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling qbdJobLogControllerSetQbdJobRunStatus.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qbdJobLogControllerSetQbdJobRunStatus.");if(null==ep)throw new ef.RequiredError("qbdJobLogId","Required parameter qbdJobLogId was null or undefined when calling qbdJobLogControllerSetQbdJobRunStatus.");for(ew in eo="/clients/{clientId}/qbd-job-log/{qbdJobLogId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{qbdJobLogId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.QbdJobLogsApiFp=function(et){return{qbdJobLogControllerAddQbdJobLog:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.QbdJobLogsApiAxiosParamCreator(et).qbdJobLogControllerAddQbdJobLog(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qbdJobLogControllerGetQbdJobRunStatus:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.QbdJobLogsApiAxiosParamCreator(et).qbdJobLogControllerGetQbdJobRunStatus(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qbdJobLogControllerGetQbdLastJob:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.QbdJobLogsApiAxiosParamCreator(et).qbdJobLogControllerGetQbdLastJob(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qbdJobLogControllerSetQbdJobRunStatus:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.QbdJobLogsApiAxiosParamCreator(et).qbdJobLogControllerSetQbdJobRunStatus(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.QbdJobLogsApiFactory=function(et,ei,ea){return{qbdJobLogControllerAddQbdJobLog:function(eu,ed){return eo.QbdJobLogsApiFp(et).qbdJobLogControllerAddQbdJobLog(eu,ed).then(function(et){return et(ea,ei)})},qbdJobLogControllerGetQbdJobRunStatus:function(eu,ed,eh){return eo.QbdJobLogsApiFp(et).qbdJobLogControllerGetQbdJobRunStatus(eu,ed,eh).then(function(et){return et(ea,ei)})},qbdJobLogControllerGetQbdLastJob:function(eu,ed){return eo.QbdJobLogsApiFp(et).qbdJobLogControllerGetQbdLastJob(eu,ed).then(function(et){return et(ea,ei)})},qbdJobLogControllerSetQbdJobRunStatus:function(eu,ed,eh,ep){return eo.QbdJobLogsApiFp(et).qbdJobLogControllerSetQbdJobRunStatus(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function QbdJobLogsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(QbdJobLogsApi,et),QbdJobLogsApi.prototype.qbdJobLogControllerAddQbdJobLog=function(et,ei){var ea=this;return eo.QbdJobLogsApiFp(this.configuration).qbdJobLogControllerAddQbdJobLog(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},QbdJobLogsApi.prototype.qbdJobLogControllerGetQbdJobRunStatus=function(et,ei,ea){var eu=this;return eo.QbdJobLogsApiFp(this.configuration).qbdJobLogControllerGetQbdJobRunStatus(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},QbdJobLogsApi.prototype.qbdJobLogControllerGetQbdLastJob=function(et,ei){var ea=this;return eo.QbdJobLogsApiFp(this.configuration).qbdJobLogControllerGetQbdLastJob(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},QbdJobLogsApi.prototype.qbdJobLogControllerSetQbdJobRunStatus=function(et,ei,ea,eu){var ed=this;return eo.QbdJobLogsApiFp(this.configuration).qbdJobLogControllerSetQbdJobRunStatus(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},QbdJobLogsApi}(ef.BaseAPI);eo.QbdJobLogsApi=em},62414:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.QBOApi=eo.QBOApiFactory=eo.QBOApiFp=eo.QBOApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.QBOApiAxiosParamCreator=function(et){var eo=this;return{qboControllerCreateIncomeStatement:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboControllerCreateIncomeStatement.");for(eS in eo="/qbo/clients/{clientId}/disconnect".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},qboControllerGetPermissions:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling qboControllerGetPermissions.");for(eS in eo="/qbo/clients/{clientId}/disconnect".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})}}},eo.QBOApiFp=function(et){return{qboControllerCreateIncomeStatement:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.QBOApiAxiosParamCreator(et).qboControllerCreateIncomeStatement(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},qboControllerGetPermissions:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.QBOApiAxiosParamCreator(et).qboControllerGetPermissions(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.QBOApiFactory=function(et,ei,ea){return{qboControllerCreateIncomeStatement:function(eu,ed){return eo.QBOApiFp(et).qboControllerCreateIncomeStatement(eu,ed).then(function(et){return et(ea,ei)})},qboControllerGetPermissions:function(eu,ed){return eo.QBOApiFp(et).qboControllerGetPermissions(eu,ed).then(function(et){return et(ea,ei)})}}};var em=function(et){function QBOApi(){return null!==et&&et.apply(this,arguments)||this}return ea(QBOApi,et),QBOApi.prototype.qboControllerCreateIncomeStatement=function(et,ei){var ea=this;return eo.QBOApiFp(this.configuration).qboControllerCreateIncomeStatement(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},QBOApi.prototype.qboControllerGetPermissions=function(et,ei){var ea=this;return eo.QBOApiFp(this.configuration).qboControllerGetPermissions(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},QBOApi}(ef.BaseAPI);eo.QBOApi=em},82739:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ReportCalculationsApi=eo.ReportCalculationsApiFactory=eo.ReportCalculationsApiFp=eo.ReportCalculationsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ReportCalculationsApiAxiosParamCreator=function(et){var eo=this;return{reportCalculationControllerCreateCalculation:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportCalculationControllerCreateCalculation.");for(eS in eo="/calculations",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),ey={},(eg={})["Content-Type"]="application/json",eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),ew="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=ew?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportCalculationControllerGetById:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("calculationId","Required parameter calculationId was null or undefined when calling reportCalculationControllerGetById.");for(eS in eo="/calculations/{calculationId}".replace("{calculationId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportCalculationControllerGetUsers:function(ei,ea,ep,ef,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){for(ew in eo="/calculations",ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},void 0!==ei&&(eS.reportTypeId=ei),void 0!==ea&&(eS.take=ea),void 0!==ep&&(eS.skip=ep),void 0!==ef&&(eS.searchTerm=ef),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportCalculationControllerListDfmCalculations:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/reports/income-statement/13-month-calculations",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})}}},eo.ReportCalculationsApiFp=function(et){return{reportCalculationControllerCreateCalculation:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportCalculationsApiAxiosParamCreator(et).reportCalculationControllerCreateCalculation(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportCalculationControllerGetById:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportCalculationsApiAxiosParamCreator(et).reportCalculationControllerGetById(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportCalculationControllerGetUsers:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportCalculationsApiAxiosParamCreator(et).reportCalculationControllerGetUsers(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportCalculationControllerListDfmCalculations:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.ReportCalculationsApiAxiosParamCreator(et).reportCalculationControllerListDfmCalculations(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})}}},eo.ReportCalculationsApiFactory=function(et,ei,ea){return{reportCalculationControllerCreateCalculation:function(eu,ed){return eo.ReportCalculationsApiFp(et).reportCalculationControllerCreateCalculation(eu,ed).then(function(et){return et(ea,ei)})},reportCalculationControllerGetById:function(eu,ed){return eo.ReportCalculationsApiFp(et).reportCalculationControllerGetById(eu,ed).then(function(et){return et(ea,ei)})},reportCalculationControllerGetUsers:function(eu,ed,eh,ep,ef){return eo.ReportCalculationsApiFp(et).reportCalculationControllerGetUsers(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportCalculationControllerListDfmCalculations:function(eu){return eo.ReportCalculationsApiFp(et).reportCalculationControllerListDfmCalculations(eu).then(function(et){return et(ea,ei)})}}};var em=function(et){function ReportCalculationsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ReportCalculationsApi,et),ReportCalculationsApi.prototype.reportCalculationControllerCreateCalculation=function(et,ei){var ea=this;return eo.ReportCalculationsApiFp(this.configuration).reportCalculationControllerCreateCalculation(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportCalculationsApi.prototype.reportCalculationControllerGetById=function(et,ei){var ea=this;return eo.ReportCalculationsApiFp(this.configuration).reportCalculationControllerGetById(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportCalculationsApi.prototype.reportCalculationControllerGetUsers=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportCalculationsApiFp(this.configuration).reportCalculationControllerGetUsers(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportCalculationsApi.prototype.reportCalculationControllerListDfmCalculations=function(et){var ei=this;return eo.ReportCalculationsApiFp(this.configuration).reportCalculationControllerListDfmCalculations(et).then(function(et){return et(ei.axios,ei.basePath)})},ReportCalculationsApi}(ef.BaseAPI);eo.ReportCalculationsApi=em},5277:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ReportPublishApi=eo.ReportPublishApiFactory=eo.ReportPublishApiFp=eo.ReportPublishApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ReportPublishApiAxiosParamCreator=function(et){var eo=this;return{reportPublishControllerGetAllReportPublishPreConditions:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/report-publish/pre-conditions",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},reportPublishControllerGetReportPublishPreConditions:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportPublishControllerGetReportPublishPreConditions.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportPublishControllerGetReportPublishPreConditions.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportPublishControllerGetReportPublishPreConditions.");if(null==em)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling reportPublishControllerGetReportPublishPreConditions.");for(eA in eo="/clients/{clientId}/year/{year}/month/{month}/report-publish/pre-conditions".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==em&&(e_.mode=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportPublishControllerPublishReport:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportPublishControllerPublishReport.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportPublishControllerPublishReport.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportPublishControllerPublishReport.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/report-publish".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportPublishControllerUnpublishReport:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportPublishControllerUnpublishReport.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportPublishControllerUnpublishReport.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportPublishControllerUnpublishReport.");for(ew in eo="/clients/{clientId}/year/{year}/month/{month}/report-unpublish".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.ReportPublishApiFp=function(et){return{reportPublishControllerGetAllReportPublishPreConditions:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.ReportPublishApiAxiosParamCreator(et).reportPublishControllerGetAllReportPublishPreConditions(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},reportPublishControllerGetReportPublishPreConditions:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportPublishApiAxiosParamCreator(et).reportPublishControllerGetReportPublishPreConditions(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportPublishControllerPublishReport:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportPublishApiAxiosParamCreator(et).reportPublishControllerPublishReport(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportPublishControllerUnpublishReport:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportPublishApiAxiosParamCreator(et).reportPublishControllerUnpublishReport(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ReportPublishApiFactory=function(et,ei,ea){return{reportPublishControllerGetAllReportPublishPreConditions:function(eu){return eo.ReportPublishApiFp(et).reportPublishControllerGetAllReportPublishPreConditions(eu).then(function(et){return et(ea,ei)})},reportPublishControllerGetReportPublishPreConditions:function(eu,ed,eh,ep,ef){return eo.ReportPublishApiFp(et).reportPublishControllerGetReportPublishPreConditions(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportPublishControllerPublishReport:function(eu,ed,eh,ep){return eo.ReportPublishApiFp(et).reportPublishControllerPublishReport(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportPublishControllerUnpublishReport:function(eu,ed,eh,ep){return eo.ReportPublishApiFp(et).reportPublishControllerUnpublishReport(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function ReportPublishApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ReportPublishApi,et),ReportPublishApi.prototype.reportPublishControllerGetAllReportPublishPreConditions=function(et){var ei=this;return eo.ReportPublishApiFp(this.configuration).reportPublishControllerGetAllReportPublishPreConditions(et).then(function(et){return et(ei.axios,ei.basePath)})},ReportPublishApi.prototype.reportPublishControllerGetReportPublishPreConditions=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportPublishApiFp(this.configuration).reportPublishControllerGetReportPublishPreConditions(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportPublishApi.prototype.reportPublishControllerPublishReport=function(et,ei,ea,eu){var ed=this;return eo.ReportPublishApiFp(this.configuration).reportPublishControllerPublishReport(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportPublishApi.prototype.reportPublishControllerUnpublishReport=function(et,ei,ea,eu){var ed=this;return eo.ReportPublishApiFp(this.configuration).reportPublishControllerUnpublishReport(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportPublishApi}(ef.BaseAPI);eo.ReportPublishApi=em},29851:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ReportTasksApi=eo.ReportTasksApiFactory=eo.ReportTasksApiFp=eo.ReportTasksApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ReportTasksApiAxiosParamCreator=function(et){var eo=this;return{reportTasksControllerGetClientReportingTask:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("taskId","Required parameter taskId was null or undefined when calling reportTasksControllerGetClientReportingTask.");for(eS in eo="/tasks/{taskId}".replace("{taskId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportTasksControllerGetReportingTaskLastHIstory:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTasksControllerGetReportingTaskLastHIstory.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTasksControllerGetReportingTaskLastHIstory.");for(e_ in eo="/clients/{clientId}/task-history".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTasksControllerListClientReportTasks:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTasksControllerListClientReportTasks.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTasksControllerListClientReportTasks.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTasksControllerListClientReportTasks.");for(ew in eo="/clients/{clientId}/{year}/{month}/tasks".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTasksControllerRetryClientReportTaskById:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTasksControllerRetryClientReportTaskById.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTasksControllerRetryClientReportTaskById.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTasksControllerRetryClientReportTaskById.");if(null==em)throw new ef.RequiredError("taskId","Required parameter taskId was null or undefined when calling reportTasksControllerRetryClientReportTaskById.");for(eA in eo="/clients/{clientId}/{year}/{month}/tasks/{taskId}/retry".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))).replace("{taskId}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"POST"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportTasksControllerRetryClientReportTasks:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTasksControllerRetryClientReportTasks.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTasksControllerRetryClientReportTasks.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTasksControllerRetryClientReportTasks.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTasksControllerRetryClientReportTasks.");for(eA in eo="/clients/{clientId}/{year}/{month}/tasks/retry".replace("{clientId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"POST"},ey),eg),e_={},(eS={})["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),eR="string"!=typeof ei||"application/json"===eC.headers["Content-Type"],eC.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportTasksControllerUpdateReportTaskStatus:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTasksControllerUpdateReportTaskStatus.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTasksControllerUpdateReportTaskStatus.");if(null==ep)throw new ef.RequiredError("taskId","Required parameter taskId was null or undefined when calling reportTasksControllerUpdateReportTaskStatus.");for(ew in eo="/clients/{clientId}/tasks/{taskId}/status".replace("{clientId}",encodeURIComponent(String(ea))).replace("{taskId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PUT"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.ReportTasksApiFp=function(et){return{reportTasksControllerGetClientReportingTask:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTasksApiAxiosParamCreator(et).reportTasksControllerGetClientReportingTask(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTasksControllerGetReportingTaskLastHIstory:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTasksApiAxiosParamCreator(et).reportTasksControllerGetReportingTaskLastHIstory(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTasksControllerListClientReportTasks:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTasksApiAxiosParamCreator(et).reportTasksControllerListClientReportTasks(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTasksControllerRetryClientReportTaskById:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTasksApiAxiosParamCreator(et).reportTasksControllerRetryClientReportTaskById(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTasksControllerRetryClientReportTasks:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTasksApiAxiosParamCreator(et).reportTasksControllerRetryClientReportTasks(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTasksControllerUpdateReportTaskStatus:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTasksApiAxiosParamCreator(et).reportTasksControllerUpdateReportTaskStatus(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ReportTasksApiFactory=function(et,ei,ea){return{reportTasksControllerGetClientReportingTask:function(eu,ed){return eo.ReportTasksApiFp(et).reportTasksControllerGetClientReportingTask(eu,ed).then(function(et){return et(ea,ei)})},reportTasksControllerGetReportingTaskLastHIstory:function(eu,ed,eh){return eo.ReportTasksApiFp(et).reportTasksControllerGetReportingTaskLastHIstory(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTasksControllerListClientReportTasks:function(eu,ed,eh,ep){return eo.ReportTasksApiFp(et).reportTasksControllerListClientReportTasks(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTasksControllerRetryClientReportTaskById:function(eu,ed,eh,ep,ef){return eo.ReportTasksApiFp(et).reportTasksControllerRetryClientReportTaskById(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportTasksControllerRetryClientReportTasks:function(eu,ed,eh,ep,ef){return eo.ReportTasksApiFp(et).reportTasksControllerRetryClientReportTasks(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportTasksControllerUpdateReportTaskStatus:function(eu,ed,eh,ep){return eo.ReportTasksApiFp(et).reportTasksControllerUpdateReportTaskStatus(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function ReportTasksApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ReportTasksApi,et),ReportTasksApi.prototype.reportTasksControllerGetClientReportingTask=function(et,ei){var ea=this;return eo.ReportTasksApiFp(this.configuration).reportTasksControllerGetClientReportingTask(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportTasksApi.prototype.reportTasksControllerGetReportingTaskLastHIstory=function(et,ei,ea){var eu=this;return eo.ReportTasksApiFp(this.configuration).reportTasksControllerGetReportingTaskLastHIstory(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTasksApi.prototype.reportTasksControllerListClientReportTasks=function(et,ei,ea,eu){var ed=this;return eo.ReportTasksApiFp(this.configuration).reportTasksControllerListClientReportTasks(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTasksApi.prototype.reportTasksControllerRetryClientReportTaskById=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportTasksApiFp(this.configuration).reportTasksControllerRetryClientReportTaskById(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportTasksApi.prototype.reportTasksControllerRetryClientReportTasks=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportTasksApiFp(this.configuration).reportTasksControllerRetryClientReportTasks(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportTasksApi.prototype.reportTasksControllerUpdateReportTaskStatus=function(et,ei,ea,eu){var ed=this;return eo.ReportTasksApiFp(this.configuration).reportTasksControllerUpdateReportTaskStatus(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTasksApi}(ef.BaseAPI);eo.ReportTasksApi=em},79893:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ReportTemplatesApi=eo.ReportTemplatesApiFactory=eo.ReportTemplatesApiFp=eo.ReportTemplatesApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ReportTemplatesApiAxiosParamCreator=function(et){var eo=this;return{reportTemplatesControllerAddArApSettings:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddArApSettings.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddArApSettings.");for(e_ in eo="/clients/{clientId}/ar-ap-settings".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerAddClientsReportModuleConfig:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/report-module/client-report-module-config",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"POST"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},reportTemplatesControllerAddConfigForClientMonthlyReport:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddConfigForClientMonthlyReport.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddConfigForClientMonthlyReport.");if(null==ep)throw new ef.RequiredError("reportModuleConfigId","Required parameter reportModuleConfigId was null or undefined when calling reportTemplatesControllerAddConfigForClientMonthlyReport.");if(null==em)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTemplatesControllerAddConfigForClientMonthlyReport.");if(null==eg)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTemplatesControllerAddConfigForClientMonthlyReport.");for(eI in eo="/clients/{clientId}/report-module-config/{reportModuleConfigId}/{year}/{month}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{reportModuleConfigId}",encodeURIComponent(String(ep))).replace("{year}",encodeURIComponent(String(em))).replace("{month}",encodeURIComponent(String(eg))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"POST"},eC),ey),ew={},(e_={})["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),eT="string"!=typeof ei||"application/json"===eS.headers["Content-Type"],eS.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportTemplatesControllerAddConfigurationToDFMModule:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddConfigurationToDFMModule.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddConfigurationToDFMModule.");if(null==ep)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerAddConfigurationToDFMModule.");for(ew in eo="/clients/{clientId}/report-templates/{reportTemplateId}/dfm-config".replace("{clientId}",encodeURIComponent(String(ea))).replace("{reportTemplateId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerAddConfigurationToModule:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddConfigurationToModule.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddConfigurationToModule.");if(null==ep)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerAddConfigurationToModule.");if(null==em)throw new ef.RequiredError("moduleId","Required parameter moduleId was null or undefined when calling reportTemplatesControllerAddConfigurationToModule.");for(eA in eo="/clients/{clientId}/report-templates/{reportTemplateId}/modules/{moduleId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{reportTemplateId}",encodeURIComponent(String(ep))).replace("{moduleId}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"POST"},ey),eg),e_={},(eS={})["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),eR="string"!=typeof ei||"application/json"===eC.headers["Content-Type"],eC.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportTemplatesControllerAddCustomReportModules:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddCustomReportModules.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddCustomReportModules.");for(e_ in eo="/clients/{clientId}/custom-report-modules".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerAddFinancialPackage:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddFinancialPackage.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddFinancialPackage.");if(null==ep)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerAddFinancialPackage.");if(null==em)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTemplatesControllerAddFinancialPackage.");if(null==eg)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTemplatesControllerAddFinancialPackage.");for(eI in eo="/clients/{clientId}/report-templates/{reportTemplateId}/{year}/{month}/financial-packages".replace("{clientId}",encodeURIComponent(String(ea))).replace("{reportTemplateId}",encodeURIComponent(String(ep))).replace("{year}",encodeURIComponent(String(em))).replace("{month}",encodeURIComponent(String(eg))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"POST"},eC),ey),ew={},(e_={})["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),eT="string"!=typeof ei||"application/json"===eS.headers["Content-Type"],eS.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportTemplatesControllerAddModuleToReportTemplate:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddModuleToReportTemplate.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddModuleToReportTemplate.");if(null==ep)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerAddModuleToReportTemplate.");for(ew in eo="/clients/{clientId}/report-templates/{reportTemplateId}/modules".replace("{clientId}",encodeURIComponent(String(ea))).replace("{reportTemplateId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerAddProfitRecommendationWidgets:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddProfitRecommendationWidgets.");if(null==ea)throw new ef.RequiredError("financialPackageId","Required parameter financialPackageId was null or undefined when calling reportTemplatesControllerAddProfitRecommendationWidgets.");for(e_ in eo="/clients/{clientId}/financial-packages/{financialPackageId}/add-profit-recommendations".replace("{clientId}",encodeURIComponent(String(ei))).replace("{financialPackageId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerAddUpdateConfigForClientMonthlyReport:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerAddUpdateConfigForClientMonthlyReport.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerAddUpdateConfigForClientMonthlyReport.");if(null==ep)throw new ef.RequiredError("reportModuleConfigId","Required parameter reportModuleConfigId was null or undefined when calling reportTemplatesControllerAddUpdateConfigForClientMonthlyReport.");if(null==em)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTemplatesControllerAddUpdateConfigForClientMonthlyReport.");if(null==eg)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTemplatesControllerAddUpdateConfigForClientMonthlyReport.");for(eI in eo="/clients/{clientId}/report-module-config/{reportModuleConfigId}/year/{year}/month/{month}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{reportModuleConfigId}",encodeURIComponent(String(ep))).replace("{year}",encodeURIComponent(String(em))).replace("{month}",encodeURIComponent(String(eg))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"POST"},eC),ey),ew={},(e_={})["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),eT="string"!=typeof ei||"application/json"===eS.headers["Content-Type"],eS.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportTemplatesControllerArchiveReportModuleConfigById:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("reportModuleConfigId","Required parameter reportModuleConfigId was null or undefined when calling reportTemplatesControllerArchiveReportModuleConfigById.");for(eS in eo="/report-module-config/{reportModuleConfigId}/archive".replace("{reportModuleConfigId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportTemplatesControllerCreateReportTemplate:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerCreateReportTemplate.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerCreateReportTemplate.");for(e_ in eo="/clients/{clientId}/report-templates".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),eC={},(ey={})["Content-Type"]="application/json",eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),eA="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eA?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerDeleteFinancialPackage:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerDeleteFinancialPackage.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerDeleteFinancialPackage.");if(null==ep)throw new ef.RequiredError("financialPackageId","Required parameter financialPackageId was null or undefined when calling reportTemplatesControllerDeleteFinancialPackage.");for(ew in eo="/clients/{clientId}/financial-packages/{financialPackageId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{financialPackageId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"DELETE"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerGetAllClientReportModuleConfig:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetAllClientReportModuleConfig.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTemplatesControllerGetAllClientReportModuleConfig.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTemplatesControllerGetAllClientReportModuleConfig.");for(ew in eo="/clients/{clientId}/{year}/{month}/crmc".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerGetArApSettings:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetArApSettings.");for(eS in eo="/clients/{clientId}/ar-ap-settings".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportTemplatesControllerGetClientReportModuleConfigById:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetClientReportModuleConfigById.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTemplatesControllerGetClientReportModuleConfigById.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTemplatesControllerGetClientReportModuleConfigById.");if(null==em)throw new ef.RequiredError("crmcId","Required parameter crmcId was null or undefined when calling reportTemplatesControllerGetClientReportModuleConfigById.");for(eA in eo="/clients/{clientId}/{year}/{month}/crmc/{crmcId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))).replace("{crmcId}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportTemplatesControllerGetCrmc:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetCrmc.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTemplatesControllerGetCrmc.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTemplatesControllerGetCrmc.");if(null==em)throw new ef.RequiredError("reportModuleCode","Required parameter reportModuleCode was null or undefined when calling reportTemplatesControllerGetCrmc.");for(eA in eo="/clients/{clientId}/{year}/{month}/modules/{reportModuleCode}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))).replace("{reportModuleCode}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportTemplatesControllerGetCustomReportModules:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetCustomReportModules.");if(null==ea)throw new ef.RequiredError("customReportModuleId","Required parameter customReportModuleId was null or undefined when calling reportTemplatesControllerGetCustomReportModules.");for(e_ in eo="/clients/{clientId}/custom-report-modules/{customReportModuleId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customReportModuleId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerGetDfmModuleConfiguration:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetDfmModuleConfiguration.");if(null==ea)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerGetDfmModuleConfiguration.");for(e_ in eo="/clients/{clientId}/report-templates/{reportTemplateId}/dfm-config".replace("{clientId}",encodeURIComponent(String(ei))).replace("{reportTemplateId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerGetFinancialModuleMonthlyReportForClient:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetFinancialModuleMonthlyReportForClient.");if(null==ea)throw new ef.RequiredError("reportModuleConfigId","Required parameter reportModuleConfigId was null or undefined when calling reportTemplatesControllerGetFinancialModuleMonthlyReportForClient.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportTemplatesControllerGetFinancialModuleMonthlyReportForClient.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportTemplatesControllerGetFinancialModuleMonthlyReportForClient.");for(eA in eo="/clients/{clientId}/report-module-config/{reportModuleConfigId}/{year}/{month}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{reportModuleConfigId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportTemplatesControllerGetFinancialPackageByFinancialPackageId:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetFinancialPackageByFinancialPackageId.");if(null==ea)throw new ef.RequiredError("financialPackageId","Required parameter financialPackageId was null or undefined when calling reportTemplatesControllerGetFinancialPackageByFinancialPackageId.");for(e_ in eo="/clients/{clientId}/financial-package/{financialPackageId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{financialPackageId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerGetFinancialPackageById:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("financialPackageId","Required parameter financialPackageId was null or undefined when calling reportTemplatesControllerGetFinancialPackageById.");for(eS in eo="/financial-packages/{financialPackageId}".replace("{financialPackageId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportTemplatesControllerGetFinancialPackages:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew){return void 0===ew&&(ew={}),ed(eo,void 0,void 0,function(){var eo,ed,eA,eI,eR,eT,eE,eP,ek;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetFinancialPackages.");if(null==ea)throw new ef.RequiredError("pagination","Required parameter pagination was null or undefined when calling reportTemplatesControllerGetFinancialPackages.");for(eP in eo="/clients/{clientId}/financial-packages".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eA=et.baseOptions),eI=eu(eu({method:"GET"},eA),ew),eR={},eT={},void 0!==ep&&(eT.year=ep),void 0!==em&&(eT.status=em),void 0!==ea&&(eT.pagination=ea),void 0!==eg&&(eT.sortDir=eg),void 0!==ey&&(eT.sortBy=ey),void 0!==eC&&(eT.searchTerm=eC),void 0!==eS&&(eT.take=eS),void 0!==e_&&(eT.skip=e_),eE=new URLSearchParams(ed.search),eT)eE.set(eP,eT[eP]);for(eP in ew.query)eE.set(eP,ew.query[eP]);return ed.search=new URLSearchParams(eE).toString(),ek=eA&&eA.headers?eA.headers:{},eI.headers=eu(eu(eu({},eR),ek),ew.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eI}]})})},reportTemplatesControllerGetModuleConfiguration:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetModuleConfiguration.");if(null==ea)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerGetModuleConfiguration.");if(null==ep)throw new ef.RequiredError("moduleId","Required parameter moduleId was null or undefined when calling reportTemplatesControllerGetModuleConfiguration.");for(ew in eo="/clients/{clientId}/report-templates/{reportTemplateId}/modules/{moduleId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{reportTemplateId}",encodeURIComponent(String(ea))).replace("{moduleId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerGetReportModules:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,ef,em,eg,ey,eC,eS;return eh(this,function(eh){for(eC in eo="/report-templates/modules",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),ef=eu(eu({method:"GET"},ep),ea),em={},eg={},void 0!==ei&&(eg.clientId=ei),ey=new URLSearchParams(ed.search),eg)ey.set(eC,eg[eC]);for(eC in ea.query)ey.set(eC,ea.query[eC]);return ed.search=new URLSearchParams(ey).toString(),eS=ep&&ep.headers?ep.headers:{},ef.headers=eu(eu(eu({},em),eS),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ef}]})})},reportTemplatesControllerGetReportTemplateModule:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerGetReportTemplateModule.");if(null==ea)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerGetReportTemplateModule.");if(null==ep)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling reportTemplatesControllerGetReportTemplateModule.");for(eI in eo="/clients/{clientId}/report-templates/{reportTemplateId}/modules".replace("{clientId}",encodeURIComponent(String(ei))).replace("{reportTemplateId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==ep&&(ew.mode=ep),void 0!==em&&(ew.year=em),void 0!==eg&&(ew.month=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportTemplatesControllerListClientReportTemplates:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerListClientReportTemplates.");for(ew in eo="/clients/{clientId}/report-templates".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},void 0!==ea&&(eS.take=ea),void 0!==ep&&(eS.skip=ep),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerListDfmModules:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerListDfmModules.");for(eS in eo="/clients/{clientId}/dfm-modules".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportTemplatesControllerPatchClientReportModuleConfig:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerPatchClientReportModuleConfig.");if(null==ea)throw new ef.RequiredError("crmcId","Required parameter crmcId was null or undefined when calling reportTemplatesControllerPatchClientReportModuleConfig.");for(e_ in eo="/clients/{clientId}/crmc/{crmcId}/config".replace("{clientId}",encodeURIComponent(String(ei))).replace("{crmcId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PUT"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerPatchCustomReportModules:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerPatchCustomReportModules.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerPatchCustomReportModules.");if(null==ep)throw new ef.RequiredError("customReportModuleId","Required parameter customReportModuleId was null or undefined when calling reportTemplatesControllerPatchCustomReportModules.");for(ew in eo="/clients/{clientId}/custom-report-modules/{customReportModuleId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{customReportModuleId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerRemoveCustomReportModules:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerRemoveCustomReportModules.");if(null==ea)throw new ef.RequiredError("customReportModuleId","Required parameter customReportModuleId was null or undefined when calling reportTemplatesControllerRemoveCustomReportModules.");for(e_ in eo="/clients/{clientId}/custom-report-modules/{customReportModuleId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{customReportModuleId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerRemoveDfmModule:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerRemoveDfmModule.");if(null==ea)throw new ef.RequiredError("dfmModuleId","Required parameter dfmModuleId was null or undefined when calling reportTemplatesControllerRemoveDfmModule.");for(e_ in eo="/clients/{clientId}/dfm-modules/{dfmModuleId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{dfmModuleId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.query)eS.set(e_,ep.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},reportTemplatesControllerRemoveModuleToReportTemplate:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerRemoveModuleToReportTemplate.");if(null==ea)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerRemoveModuleToReportTemplate.");if(null==ep)throw new ef.RequiredError("moduleId","Required parameter moduleId was null or undefined when calling reportTemplatesControllerRemoveModuleToReportTemplate.");for(ew in eo="/clients/{clientId}/report-templates/{reportTemplateId}/modules/{moduleId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{reportTemplateId}",encodeURIComponent(String(ea))).replace("{moduleId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"DELETE"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportTemplatesControllerRestoreReportModuleConfigById:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("reportModuleConfigId","Required parameter reportModuleConfigId was null or undefined when calling reportTemplatesControllerRestoreReportModuleConfigById.");for(eS in eo="/report-module-config/{reportModuleConfigId}/restore".replace("{reportModuleConfigId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportTemplatesControllerUpdateArApSetting:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/seed-data/update-ar-ap-settings",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"POST"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},reportTemplatesControllerUpdateReportTemplate:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportTemplatesControllerUpdateReportTemplate.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportTemplatesControllerUpdateReportTemplate.");if(null==ep)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling reportTemplatesControllerUpdateReportTemplate.");for(ew in eo="/clients/{clientId}/report-templates/{reportTemplateId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{reportTemplateId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eS={},(eC={})["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),eI="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})}}},eo.ReportTemplatesApiFp=function(et){return{reportTemplatesControllerAddArApSettings:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddArApSettings(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddClientsReportModuleConfig:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddClientsReportModuleConfig(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},reportTemplatesControllerAddConfigForClientMonthlyReport:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddConfigForClientMonthlyReport(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddConfigurationToDFMModule:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddConfigurationToDFMModule(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddConfigurationToModule:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddConfigurationToModule(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddCustomReportModules:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddCustomReportModules(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddFinancialPackage:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddFinancialPackage(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddModuleToReportTemplate:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddModuleToReportTemplate(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddProfitRecommendationWidgets:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddProfitRecommendationWidgets(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerAddUpdateConfigForClientMonthlyReport:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerAddUpdateConfigForClientMonthlyReport(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerArchiveReportModuleConfigById:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerArchiveReportModuleConfigById(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerCreateReportTemplate:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerCreateReportTemplate(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerDeleteFinancialPackage:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerDeleteFinancialPackage(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetAllClientReportModuleConfig:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetAllClientReportModuleConfig(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetArApSettings:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetArApSettings(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetClientReportModuleConfigById:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetClientReportModuleConfigById(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetCrmc:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetCrmc(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetCustomReportModules:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetCustomReportModules(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetDfmModuleConfiguration:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetDfmModuleConfiguration(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetFinancialModuleMonthlyReportForClient:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetFinancialModuleMonthlyReportForClient(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetFinancialPackageByFinancialPackageId:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetFinancialPackageByFinancialPackageId(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetFinancialPackageById:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetFinancialPackageById(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetFinancialPackages:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetFinancialPackages(ei,ea,em,eg,ey,eC,eS,e_,ew,eA)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetModuleConfiguration:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetModuleConfiguration(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetReportModules:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetReportModules(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerGetReportTemplateModule:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerGetReportTemplateModule(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerListClientReportTemplates:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerListClientReportTemplates(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerListDfmModules:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerListDfmModules(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerPatchClientReportModuleConfig:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerPatchClientReportModuleConfig(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerPatchCustomReportModules:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerPatchCustomReportModules(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerRemoveCustomReportModules:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerRemoveCustomReportModules(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerRemoveDfmModule:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerRemoveDfmModule(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerRemoveModuleToReportTemplate:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerRemoveModuleToReportTemplate(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerRestoreReportModuleConfigById:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerRestoreReportModuleConfigById(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportTemplatesControllerUpdateArApSetting:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerUpdateArApSetting(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},reportTemplatesControllerUpdateReportTemplate:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportTemplatesApiAxiosParamCreator(et).reportTemplatesControllerUpdateReportTemplate(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ReportTemplatesApiFactory=function(et,ei,ea){return{reportTemplatesControllerAddArApSettings:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddArApSettings(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddClientsReportModuleConfig:function(eu){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddClientsReportModuleConfig(eu).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddConfigForClientMonthlyReport:function(eu,ed,eh,ep,ef,em){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddConfigForClientMonthlyReport(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddConfigurationToDFMModule:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddConfigurationToDFMModule(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddConfigurationToModule:function(eu,ed,eh,ep,ef){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddConfigurationToModule(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddCustomReportModules:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddCustomReportModules(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddFinancialPackage:function(eu,ed,eh,ep,ef,em){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddFinancialPackage(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddModuleToReportTemplate:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddModuleToReportTemplate(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddProfitRecommendationWidgets:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddProfitRecommendationWidgets(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerAddUpdateConfigForClientMonthlyReport:function(eu,ed,eh,ep,ef,em){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerAddUpdateConfigForClientMonthlyReport(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportTemplatesControllerArchiveReportModuleConfigById:function(eu,ed){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerArchiveReportModuleConfigById(eu,ed).then(function(et){return et(ea,ei)})},reportTemplatesControllerCreateReportTemplate:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerCreateReportTemplate(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerDeleteFinancialPackage:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerDeleteFinancialPackage(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetAllClientReportModuleConfig:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetAllClientReportModuleConfig(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetArApSettings:function(eu,ed){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetArApSettings(eu,ed).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetClientReportModuleConfigById:function(eu,ed,eh,ep,ef){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetClientReportModuleConfigById(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetCrmc:function(eu,ed,eh,ep,ef){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetCrmc(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetCustomReportModules:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetCustomReportModules(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetDfmModuleConfiguration:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetDfmModuleConfiguration(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetFinancialModuleMonthlyReportForClient:function(eu,ed,eh,ep,ef){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetFinancialModuleMonthlyReportForClient(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetFinancialPackageByFinancialPackageId:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetFinancialPackageByFinancialPackageId(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetFinancialPackageById:function(eu,ed){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetFinancialPackageById(eu,ed).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetFinancialPackages:function(eu,ed,eh,ep,ef,em,eg,ey,eC,eS){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetFinancialPackages(eu,ed,eh,ep,ef,em,eg,ey,eC,eS).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetModuleConfiguration:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetModuleConfiguration(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetReportModules:function(eu,ed){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetReportModules(eu,ed).then(function(et){return et(ea,ei)})},reportTemplatesControllerGetReportTemplateModule:function(eu,ed,eh,ep,ef,em){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerGetReportTemplateModule(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportTemplatesControllerListClientReportTemplates:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerListClientReportTemplates(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerListDfmModules:function(eu,ed){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerListDfmModules(eu,ed).then(function(et){return et(ea,ei)})},reportTemplatesControllerPatchClientReportModuleConfig:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerPatchClientReportModuleConfig(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerPatchCustomReportModules:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerPatchCustomReportModules(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerRemoveCustomReportModules:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerRemoveCustomReportModules(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerRemoveDfmModule:function(eu,ed,eh){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerRemoveDfmModule(eu,ed,eh).then(function(et){return et(ea,ei)})},reportTemplatesControllerRemoveModuleToReportTemplate:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerRemoveModuleToReportTemplate(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportTemplatesControllerRestoreReportModuleConfigById:function(eu,ed){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerRestoreReportModuleConfigById(eu,ed).then(function(et){return et(ea,ei)})},reportTemplatesControllerUpdateArApSetting:function(eu){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerUpdateArApSetting(eu).then(function(et){return et(ea,ei)})},reportTemplatesControllerUpdateReportTemplate:function(eu,ed,eh,ep){return eo.ReportTemplatesApiFp(et).reportTemplatesControllerUpdateReportTemplate(eu,ed,eh,ep).then(function(et){return et(ea,ei)})}}};var em=function(et){function ReportTemplatesApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ReportTemplatesApi,et),ReportTemplatesApi.prototype.reportTemplatesControllerAddArApSettings=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddArApSettings(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddClientsReportModuleConfig=function(et){var ei=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddClientsReportModuleConfig(et).then(function(et){return et(ei.axios,ei.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddConfigForClientMonthlyReport=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddConfigForClientMonthlyReport(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddConfigurationToDFMModule=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddConfigurationToDFMModule(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddConfigurationToModule=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddConfigurationToModule(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddCustomReportModules=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddCustomReportModules(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddFinancialPackage=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddFinancialPackage(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddModuleToReportTemplate=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddModuleToReportTemplate(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddProfitRecommendationWidgets=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddProfitRecommendationWidgets(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerAddUpdateConfigForClientMonthlyReport=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerAddUpdateConfigForClientMonthlyReport(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerArchiveReportModuleConfigById=function(et,ei){var ea=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerArchiveReportModuleConfigById(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerCreateReportTemplate=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerCreateReportTemplate(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerDeleteFinancialPackage=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerDeleteFinancialPackage(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetAllClientReportModuleConfig=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetAllClientReportModuleConfig(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetArApSettings=function(et,ei){var ea=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetArApSettings(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetClientReportModuleConfigById=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetClientReportModuleConfigById(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetCrmc=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetCrmc(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetCustomReportModules=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetCustomReportModules(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetDfmModuleConfiguration=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetDfmModuleConfiguration(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetFinancialModuleMonthlyReportForClient=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetFinancialModuleMonthlyReportForClient(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetFinancialPackageByFinancialPackageId=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetFinancialPackageByFinancialPackageId(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetFinancialPackageById=function(et,ei){var ea=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetFinancialPackageById(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetFinancialPackages=function(et,ei,ea,eu,ed,eh,ep,ef,em,eg){var ey=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetFinancialPackages(et,ei,ea,eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ey.axios,ey.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetModuleConfiguration=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetModuleConfiguration(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetReportModules=function(et,ei){var ea=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetReportModules(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerGetReportTemplateModule=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerGetReportTemplateModule(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerListClientReportTemplates=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerListClientReportTemplates(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerListDfmModules=function(et,ei){var ea=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerListDfmModules(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerPatchClientReportModuleConfig=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerPatchClientReportModuleConfig(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerPatchCustomReportModules=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerPatchCustomReportModules(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerRemoveCustomReportModules=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerRemoveCustomReportModules(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerRemoveDfmModule=function(et,ei,ea){var eu=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerRemoveDfmModule(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerRemoveModuleToReportTemplate=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerRemoveModuleToReportTemplate(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerRestoreReportModuleConfigById=function(et,ei){var ea=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerRestoreReportModuleConfigById(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerUpdateArApSetting=function(et){var ei=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerUpdateArApSetting(et).then(function(et){return et(ei.axios,ei.basePath)})},ReportTemplatesApi.prototype.reportTemplatesControllerUpdateReportTemplate=function(et,ei,ea,eu){var ed=this;return eo.ReportTemplatesApiFp(this.configuration).reportTemplatesControllerUpdateReportTemplate(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportTemplatesApi}(ef.BaseAPI);eo.ReportTemplatesApi=em},95086:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ReportsApi=eo.ReportsApiFactory=eo.ReportsApiFp=eo.ReportsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.ReportsApiAxiosParamCreator=function(et){var eo=this;return{reportsControllerBalanceSheet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerBalanceSheet.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerBalanceSheet.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerBalanceSheet.");for(ew in eo="/clients/{clientId}/reports/{year}/{month}/balance-sheet".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerBuildReports:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerBuildReports.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerBuildReports.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerBuildReports.");if(null==em)throw new ef.RequiredError("numberOfPeriod","Required parameter numberOfPeriod was null or undefined when calling reportsControllerBuildReports.");if(null==eg)throw new ef.RequiredError("snapshotType","Required parameter snapshotType was null or undefined when calling reportsControllerBuildReports.");for(eI in eo="/clients/{clientId}/reports/{year}/{month}/reports".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"POST"},eC),ey),e_={},ew={},void 0!==em&&(ew.numberOfPeriod=em),void 0!==eg&&(ew.snapshotType=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportsControllerBuildSbcSnapshot:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerBuildSbcSnapshot.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerBuildSbcSnapshot.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerBuildSbcSnapshot.");for(ew in eo="/clients/{clientId}/reports/year/{year}/month/{month}/sbc".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerBuildTripleBottomLine:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerBuildTripleBottomLine.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerBuildTripleBottomLine.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerBuildTripleBottomLine.");for(eA in eo="/clients/{clientId}/reports/{year}/{month}/tbl".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"POST"},ey),eg),eS={},e_={},void 0!==em&&(e_.reportType=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportsControllerCashFlowStatement:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerCashFlowStatement.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerCashFlowStatement.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerCashFlowStatement.");for(ew in eo="/clients/{clientId}/reports/{year}/{month}/cash-flow-statement".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerCreateBalanceSheet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerCreateBalanceSheet.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerCreateBalanceSheet.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerCreateBalanceSheet.");for(ew in eo="/clients/{clientId}/reports/{year}/{month}/balance-sheet".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerCreateCashFlowStatement:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerCreateCashFlowStatement.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerCreateCashFlowStatement.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerCreateCashFlowStatement.");for(ew in eo="/clients/{clientId}/reports/{year}/{month}/cash-flow-statement".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerCreateIncomeStatement:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerCreateIncomeStatement.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerCreateIncomeStatement.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerCreateIncomeStatement.");for(ew in eo="/clients/{clientId}/reports/{year}/{month}/income-statement".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerCreateSnapshotByType:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportsControllerCreateSnapshotByType.");for(eS in eo="/clients/{clientId}/reports/snapshot",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),ey={},(eg={})["Content-Type"]="application/json",eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),ew="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=ew?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportsControllerDownloadProgress:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerDownloadProgress.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerDownloadProgress.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerDownloadProgress.");for(ew in eo="/clients/{clientId}/reports/{year}/{month}/progress".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerGet13MonthStatements:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGet13MonthStatements.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGet13MonthStatements.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGet13MonthStatements.");if(null==em)throw new ef.RequiredError("statementType","Required parameter statementType was null or undefined when calling reportsControllerGet13MonthStatements.");for(eA in eo="/clients/{clientId}/reports/{year}/{month}/13-month-statements".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==em&&(e_.statementType=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportsControllerGetARAP:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetARAP.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetARAP.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetARAP.");if(null==em)throw new ef.RequiredError("type","Required parameter type was null or undefined when calling reportsControllerGetARAP.");if(null==eg)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling reportsControllerGetARAP.");for(eI in eo="/clients/{clientId}/reports/{year}/{month}/ar-ap".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==em&&(ew.type=em),void 0!==eg&&(ew.mode=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportsControllerGetCbs:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetCbs.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetCbs.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetCbs.");if(null==em)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling reportsControllerGetCbs.");for(eR in eo="/clients/{clientId}/reports/year/{year}/month/{month}/cbs".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==em&&(eA.mode=em),void 0!==eg&&(eA.id=eg),void 0!==ey&&(eA.customModuleId=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},reportsControllerGetCcf:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetCcf.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetCcf.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetCcf.");if(null==em)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling reportsControllerGetCcf.");for(eR in eo="/clients/{clientId}/reports/year/{year}/month/{month}/ccf".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==em&&(eA.mode=em),void 0!==eg&&(eA.id=eg),void 0!==ey&&(eA.customModuleId=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},reportsControllerGetCis:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetCis.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetCis.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetCis.");if(null==em)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling reportsControllerGetCis.");for(eR in eo="/clients/{clientId}/reports/{year}/{month}/cis".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==em&&(eA.mode=em),void 0!==eg&&(eA.id=eg),void 0!==ey&&(eA.customModuleId=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},reportsControllerGetComparableStatement:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetComparableStatement.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetComparableStatement.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetComparableStatement.");if(null==em)throw new ef.RequiredError("type","Required parameter type was null or undefined when calling reportsControllerGetComparableStatement.");if(null==eg)throw new ef.RequiredError("statementType","Required parameter statementType was null or undefined when calling reportsControllerGetComparableStatement.");for(eI in eo="/clients/{clientId}/reports/{year}/{month}/comparable-statement".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==em&&(ew.type=em),void 0!==eg&&(ew.statementType=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportsControllerGetCustomTrailStatements:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetCustomTrailStatements.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetCustomTrailStatements.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetCustomTrailStatements.");if(null==em)throw new ef.RequiredError("trailValue","Required parameter trailValue was null or undefined when calling reportsControllerGetCustomTrailStatements.");if(null==eg)throw new ef.RequiredError("trailType","Required parameter trailType was null or undefined when calling reportsControllerGetCustomTrailStatements.");if(null==ey)throw new ef.RequiredError("statementType","Required parameter statementType was null or undefined when calling reportsControllerGetCustomTrailStatements.");for(eR in eo="/clients/{clientId}/reports/{year}/{month}/custom-trail/{trailValue}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))).replace("{trailValue}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},void 0!==eg&&(eA.trailType=eg),void 0!==ey&&(eA.statementType=ey),eI=new URLSearchParams(ed.search),eA)eI.set(eR,eA[eR]);for(eR in eC.query)eI.set(eR,eC.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eT),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]})})},reportsControllerGetSaleByCustomer:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetSaleByCustomer.");if(null==ea)throw new ef.RequiredError("salesByCustomerWidgetId","Required parameter salesByCustomerWidgetId was null or undefined when calling reportsControllerGetSaleByCustomer.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetSaleByCustomer.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetSaleByCustomer.");if(null==eg)throw new ef.RequiredError("reportModuleConfigId","Required parameter reportModuleConfigId was null or undefined when calling reportsControllerGetSaleByCustomer.");for(eI in eo="/clients/{clientId}/reports/year/{year}/month/{month}/sales-by-customer/{salesByCustomerWidgetId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{salesByCustomerWidgetId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==eg&&(ew.reportModuleConfigId=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})},reportsControllerGetSectionAndSubAccountMappings:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetSectionAndSubAccountMappings.");for(eS in eo="/clients/{clientId}/reports/cash-flow-mappings".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportsControllerGetSnapshotByType:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetSnapshotByType.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetSnapshotByType.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetSnapshotByType.");if(null==em)throw new ef.RequiredError("snapshotType","Required parameter snapshotType was null or undefined when calling reportsControllerGetSnapshotByType.");for(eA in eo="/clients/{clientId}/reports/{year}/{month}/snapshot/{snapshotType}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))).replace("{snapshotType}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportsControllerGetTripleBottomLine:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerGetTripleBottomLine.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerGetTripleBottomLine.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerGetTripleBottomLine.");for(eA in eo="/clients/{clientId}/{year}/{month}/tbl".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==em&&(e_.reportType=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportsControllerIncomeStatement:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerIncomeStatement.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerIncomeStatement.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerIncomeStatement.");for(ew in eo="/clients/{clientId}/reports/{year}/{month}/income-statement".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.query)e_.set(ew,em.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},reportsControllerIsClassification:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerIsClassification.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerIsClassification.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerIsClassification.");if(null==em)throw new ef.RequiredError("type","Required parameter type was null or undefined when calling reportsControllerIsClassification.");for(eA in eo="/clients/{clientId}/reports/{year}/{month}/is-classification".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==em&&(e_.type=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportsControllerPostSchedule:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerPostSchedule.");for(eS in eo="/clients/{clientId}/reports/pre-conditions".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportsControllerTripleBottomLine:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerTripleBottomLine.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerTripleBottomLine.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerTripleBottomLine.");for(eA in eo="/clients/{clientId}/reports/{year}/{month}/tbl".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},void 0!==em&&(e_.reportType=em),ew=new URLSearchParams(ed.search),e_)ew.set(eA,e_[eA]);for(eA in eg.query)ew.set(eA,eg.query[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eI),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]})})},reportsControllerUpdateSnapshotByType:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportsControllerUpdateSnapshotByType.");for(eS in eo="/clients/{clientId}/reports/snapshot",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"PUT"},ep),ea),ey={},(eg={})["Content-Type"]="application/json",eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.query)eC.set(eS,ea.query[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),ew="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=ew?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},reportsControllerUpdateTbl:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling reportsControllerUpdateTbl.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling reportsControllerUpdateTbl.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling reportsControllerUpdateTbl.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling reportsControllerUpdateTbl.");for(eI in eo="/clients/{clientId}/reports/{year}/{month}/tbl-description".replace("{clientId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"POST"},eC),ey),e_={},ew={},void 0!==eg&&(ew.reportType=eg),e_["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),eT="string"!=typeof ei||"application/json"===eS.headers["Content-Type"],eS.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})}}},eo.ReportsApiFp=function(et){return{reportsControllerBalanceSheet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerBalanceSheet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerBuildReports:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerBuildReports(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerBuildSbcSnapshot:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerBuildSbcSnapshot(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerBuildTripleBottomLine:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerBuildTripleBottomLine(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerCashFlowStatement:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerCashFlowStatement(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerCreateBalanceSheet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerCreateBalanceSheet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerCreateCashFlowStatement:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerCreateCashFlowStatement(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerCreateIncomeStatement:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerCreateIncomeStatement(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerCreateSnapshotByType:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerCreateSnapshotByType(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerDownloadProgress:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerDownloadProgress(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGet13MonthStatements:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGet13MonthStatements(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetARAP:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetARAP(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetCbs:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetCbs(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetCcf:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetCcf(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetCis:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetCis(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetComparableStatement:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetComparableStatement(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetCustomTrailStatements:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetCustomTrailStatements(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetSaleByCustomer:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetSaleByCustomer(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetSectionAndSubAccountMappings:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetSectionAndSubAccountMappings(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetSnapshotByType:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetSnapshotByType(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerGetTripleBottomLine:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerGetTripleBottomLine(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerIncomeStatement:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerIncomeStatement(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerIsClassification:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerIsClassification(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerPostSchedule:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerPostSchedule(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerTripleBottomLine:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerTripleBottomLine(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerUpdateSnapshotByType:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerUpdateSnapshotByType(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},reportsControllerUpdateTbl:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).reportsControllerUpdateTbl(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ReportsApiFactory=function(et,ei,ea){return{reportsControllerBalanceSheet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerBalanceSheet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerBuildReports:function(eu,ed,eh,ep,ef,em){return eo.ReportsApiFp(et).reportsControllerBuildReports(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportsControllerBuildSbcSnapshot:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerBuildSbcSnapshot(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerBuildTripleBottomLine:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).reportsControllerBuildTripleBottomLine(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportsControllerCashFlowStatement:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerCashFlowStatement(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerCreateBalanceSheet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerCreateBalanceSheet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerCreateCashFlowStatement:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerCreateCashFlowStatement(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerCreateIncomeStatement:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerCreateIncomeStatement(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerCreateSnapshotByType:function(eu,ed){return eo.ReportsApiFp(et).reportsControllerCreateSnapshotByType(eu,ed).then(function(et){return et(ea,ei)})},reportsControllerDownloadProgress:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerDownloadProgress(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerGet13MonthStatements:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).reportsControllerGet13MonthStatements(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportsControllerGetARAP:function(eu,ed,eh,ep,ef,em){return eo.ReportsApiFp(et).reportsControllerGetARAP(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportsControllerGetCbs:function(eu,ed,eh,ep,ef,em,eg){return eo.ReportsApiFp(et).reportsControllerGetCbs(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},reportsControllerGetCcf:function(eu,ed,eh,ep,ef,em,eg){return eo.ReportsApiFp(et).reportsControllerGetCcf(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},reportsControllerGetCis:function(eu,ed,eh,ep,ef,em,eg){return eo.ReportsApiFp(et).reportsControllerGetCis(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},reportsControllerGetComparableStatement:function(eu,ed,eh,ep,ef,em){return eo.ReportsApiFp(et).reportsControllerGetComparableStatement(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportsControllerGetCustomTrailStatements:function(eu,ed,eh,ep,ef,em,eg){return eo.ReportsApiFp(et).reportsControllerGetCustomTrailStatements(eu,ed,eh,ep,ef,em,eg).then(function(et){return et(ea,ei)})},reportsControllerGetSaleByCustomer:function(eu,ed,eh,ep,ef,em){return eo.ReportsApiFp(et).reportsControllerGetSaleByCustomer(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},reportsControllerGetSectionAndSubAccountMappings:function(eu,ed){return eo.ReportsApiFp(et).reportsControllerGetSectionAndSubAccountMappings(eu,ed).then(function(et){return et(ea,ei)})},reportsControllerGetSnapshotByType:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).reportsControllerGetSnapshotByType(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportsControllerGetTripleBottomLine:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).reportsControllerGetTripleBottomLine(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportsControllerIncomeStatement:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).reportsControllerIncomeStatement(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},reportsControllerIsClassification:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).reportsControllerIsClassification(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportsControllerPostSchedule:function(eu,ed){return eo.ReportsApiFp(et).reportsControllerPostSchedule(eu,ed).then(function(et){return et(ea,ei)})},reportsControllerTripleBottomLine:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).reportsControllerTripleBottomLine(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},reportsControllerUpdateSnapshotByType:function(eu,ed){return eo.ReportsApiFp(et).reportsControllerUpdateSnapshotByType(eu,ed).then(function(et){return et(ea,ei)})},reportsControllerUpdateTbl:function(eu,ed,eh,ep,ef,em){return eo.ReportsApiFp(et).reportsControllerUpdateTbl(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})}}};var em=function(et){function ReportsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ReportsApi,et),ReportsApi.prototype.reportsControllerBalanceSheet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerBalanceSheet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerBuildReports=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportsApiFp(this.configuration).reportsControllerBuildReports(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportsApi.prototype.reportsControllerBuildSbcSnapshot=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerBuildSbcSnapshot(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerBuildTripleBottomLine=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).reportsControllerBuildTripleBottomLine(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.reportsControllerCashFlowStatement=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerCashFlowStatement(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerCreateBalanceSheet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerCreateBalanceSheet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerCreateCashFlowStatement=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerCreateCashFlowStatement(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerCreateIncomeStatement=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerCreateIncomeStatement(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerCreateSnapshotByType=function(et,ei){var ea=this;return eo.ReportsApiFp(this.configuration).reportsControllerCreateSnapshotByType(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportsApi.prototype.reportsControllerDownloadProgress=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerDownloadProgress(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerGet13MonthStatements=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).reportsControllerGet13MonthStatements(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.reportsControllerGetARAP=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetARAP(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportsApi.prototype.reportsControllerGetCbs=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetCbs(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},ReportsApi.prototype.reportsControllerGetCcf=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetCcf(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},ReportsApi.prototype.reportsControllerGetCis=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetCis(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},ReportsApi.prototype.reportsControllerGetComparableStatement=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetComparableStatement(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportsApi.prototype.reportsControllerGetCustomTrailStatements=function(et,ei,ea,eu,ed,eh,ep){var ef=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetCustomTrailStatements(et,ei,ea,eu,ed,eh,ep).then(function(et){return et(ef.axios,ef.basePath)})},ReportsApi.prototype.reportsControllerGetSaleByCustomer=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetSaleByCustomer(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportsApi.prototype.reportsControllerGetSectionAndSubAccountMappings=function(et,ei){var ea=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetSectionAndSubAccountMappings(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportsApi.prototype.reportsControllerGetSnapshotByType=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetSnapshotByType(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.reportsControllerGetTripleBottomLine=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).reportsControllerGetTripleBottomLine(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.reportsControllerIncomeStatement=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).reportsControllerIncomeStatement(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.reportsControllerIsClassification=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).reportsControllerIsClassification(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.reportsControllerPostSchedule=function(et,ei){var ea=this;return eo.ReportsApiFp(this.configuration).reportsControllerPostSchedule(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportsApi.prototype.reportsControllerTripleBottomLine=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).reportsControllerTripleBottomLine(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.reportsControllerUpdateSnapshotByType=function(et,ei){var ea=this;return eo.ReportsApiFp(this.configuration).reportsControllerUpdateSnapshotByType(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},ReportsApi.prototype.reportsControllerUpdateTbl=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportsApiFp(this.configuration).reportsControllerUpdateTbl(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportsApi}(ef.BaseAPI);eo.ReportsApi=em},2539:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.SeedDataApi=eo.SeedDataApiFactory=eo.SeedDataApiFp=eo.SeedDataApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.SeedDataApiAxiosParamCreator=function(et){var eo=this;return{seedDataControllerGetAggregationTypes:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/aggregation-types",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},seedDataControllerGetDatasetFieldTypes:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/dataset-field-types",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},seedDataControllerListChartTypes:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/chart-types",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},seedDataControllerListRoleGroups:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/role-groups",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},seedDataControllerListTblTypes:function(ei,ea,ep,ef){return void 0===ef&&(ef={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){for(e_ in eo="/type-data/tbl-chart-types",ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ef),ey={},eC={},void 0!==ei&&(eC.clientId=ei),void 0!==ea&&(eC.year=ea),void 0!==ep&&(eC.month=ep),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ef.query)eS.set(e_,ef.query[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ef.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},seedDataControllerReportTypes:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,ef,em,eg,ey,eC,eS;return eh(this,function(eh){for(eC in eo="/type-data/report-types",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),ef=eu(eu({method:"GET"},ep),ea),em={},eg={},void 0!==ei&&(eg.searchTerm=ei),ey=new URLSearchParams(ed.search),eg)ey.set(eC,eg[eC]);for(eC in ea.query)ey.set(eC,ea.query[eC]);return ed.search=new URLSearchParams(ey).toString(),eS=ep&&ep.headers?ep.headers:{},ef.headers=eu(eu(eu({},em),eS),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ef}]})})},seedDataControllerSeedDataForAddColumnIdsInDataSets:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/datasets-variables-ids-update",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"PATCH"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})}}},eo.SeedDataApiFp=function(et){return{seedDataControllerGetAggregationTypes:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerGetAggregationTypes(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},seedDataControllerGetDatasetFieldTypes:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerGetDatasetFieldTypes(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},seedDataControllerListChartTypes:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListChartTypes(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},seedDataControllerListRoleGroups:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListRoleGroups(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},seedDataControllerListTblTypes:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListTblTypes(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerReportTypes:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerReportTypes(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerSeedDataForAddColumnIdsInDataSets:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerSeedDataForAddColumnIdsInDataSets(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})}}},eo.SeedDataApiFactory=function(et,ei,ea){return{seedDataControllerGetAggregationTypes:function(eu){return eo.SeedDataApiFp(et).seedDataControllerGetAggregationTypes(eu).then(function(et){return et(ea,ei)})},seedDataControllerGetDatasetFieldTypes:function(eu){return eo.SeedDataApiFp(et).seedDataControllerGetDatasetFieldTypes(eu).then(function(et){return et(ea,ei)})},seedDataControllerListChartTypes:function(eu){return eo.SeedDataApiFp(et).seedDataControllerListChartTypes(eu).then(function(et){return et(ea,ei)})},seedDataControllerListRoleGroups:function(eu){return eo.SeedDataApiFp(et).seedDataControllerListRoleGroups(eu).then(function(et){return et(ea,ei)})},seedDataControllerListTblTypes:function(eu,ed,eh,ep){return eo.SeedDataApiFp(et).seedDataControllerListTblTypes(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},seedDataControllerReportTypes:function(eu,ed){return eo.SeedDataApiFp(et).seedDataControllerReportTypes(eu,ed).then(function(et){return et(ea,ei)})},seedDataControllerSeedDataForAddColumnIdsInDataSets:function(eu){return eo.SeedDataApiFp(et).seedDataControllerSeedDataForAddColumnIdsInDataSets(eu).then(function(et){return et(ea,ei)})}}};var em=function(et){function SeedDataApi(){return null!==et&&et.apply(this,arguments)||this}return ea(SeedDataApi,et),SeedDataApi.prototype.seedDataControllerGetAggregationTypes=function(et){var ei=this;return eo.SeedDataApiFp(this.configuration).seedDataControllerGetAggregationTypes(et).then(function(et){return et(ei.axios,ei.basePath)})},SeedDataApi.prototype.seedDataControllerGetDatasetFieldTypes=function(et){var ei=this;return eo.SeedDataApiFp(this.configuration).seedDataControllerGetDatasetFieldTypes(et).then(function(et){return et(ei.axios,ei.basePath)})},SeedDataApi.prototype.seedDataControllerListChartTypes=function(et){var ei=this;return eo.SeedDataApiFp(this.configuration).seedDataControllerListChartTypes(et).then(function(et){return et(ei.axios,ei.basePath)})},SeedDataApi.prototype.seedDataControllerListRoleGroups=function(et){var ei=this;return eo.SeedDataApiFp(this.configuration).seedDataControllerListRoleGroups(et).then(function(et){return et(ei.axios,ei.basePath)})},SeedDataApi.prototype.seedDataControllerListTblTypes=function(et,ei,ea,eu){var ed=this;return eo.SeedDataApiFp(this.configuration).seedDataControllerListTblTypes(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},SeedDataApi.prototype.seedDataControllerReportTypes=function(et,ei){var ea=this;return eo.SeedDataApiFp(this.configuration).seedDataControllerReportTypes(et,ei).then(function(et){return et(ea.axios,ea.basePath)})},SeedDataApi.prototype.seedDataControllerSeedDataForAddColumnIdsInDataSets=function(et){var ei=this;return eo.SeedDataApiFp(this.configuration).seedDataControllerSeedDataForAddColumnIdsInDataSets(et).then(function(et){return et(ei.axios,ei.basePath)})},SeedDataApi}(ef.BaseAPI);eo.SeedDataApi=em},87716:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.TableOfContentApi=eo.TableOfContentApiFactory=eo.TableOfContentApiFp=eo.TableOfContentApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.TableOfContentApiAxiosParamCreator=function(et){var eo=this;return{tableOfContentControllerGetTableOfContent:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling tableOfContentControllerGetTableOfContent.");if(null==ea)throw new ef.RequiredError("reportTemplateId","Required parameter reportTemplateId was null or undefined when calling tableOfContentControllerGetTableOfContent.");if(null==ep)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling tableOfContentControllerGetTableOfContent.");if(null==em)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling tableOfContentControllerGetTableOfContent.");for(eI in eo="/clients/{clientId}/report-templates/{reportTemplateId}/{year}/{month}/table-of-content".replace("{clientId}",encodeURIComponent(String(ei))).replace("{reportTemplateId}",encodeURIComponent(String(ea))).replace("{year}",encodeURIComponent(String(ep))).replace("{month}",encodeURIComponent(String(em))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},void 0!==eg&&(ew.notesNoOfPages=eg),eA=new URLSearchParams(ed.search),ew)eA.set(eI,ew[eI]);for(eI in ey.query)eA.set(eI,ey.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eR),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]})})}}},eo.TableOfContentApiFp=function(et){return{tableOfContentControllerGetTableOfContent:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.TableOfContentApiAxiosParamCreator(et).tableOfContentControllerGetTableOfContent(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.TableOfContentApiFactory=function(et,ei,ea){return{tableOfContentControllerGetTableOfContent:function(eu,ed,eh,ep,ef,em){return eo.TableOfContentApiFp(et).tableOfContentControllerGetTableOfContent(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})}}};var em=function(et){function TableOfContentApi(){return null!==et&&et.apply(this,arguments)||this}return ea(TableOfContentApi,et),TableOfContentApi.prototype.tableOfContentControllerGetTableOfContent=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.TableOfContentApiFp(this.configuration).tableOfContentControllerGetTableOfContent(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},TableOfContentApi}(ef.BaseAPI);eo.TableOfContentApi=em},11206:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.TenancyApi=eo.TenancyApiFactory=eo.TenancyApiFp=eo.TenancyApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(38006);eo.TenancyApiAxiosParamCreator=function(et){var eo=this;return{tenancyControllerGetPermissions:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/tenancy/agency-cache",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"DELETE"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.query)eg.set(ey,ei.query[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})}}},eo.TenancyApiFp=function(et){return{tenancyControllerGetPermissions:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.TenancyApiAxiosParamCreator(et).tenancyControllerGetPermissions(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})}}},eo.TenancyApiFactory=function(et,ei,ea){return{tenancyControllerGetPermissions:function(eu){return eo.TenancyApiFp(et).tenancyControllerGetPermissions(eu).then(function(et){return et(ea,ei)})}}};var em=function(et){function TenancyApi(){return null!==et&&et.apply(this,arguments)||this}return ea(TenancyApi,et),TenancyApi.prototype.tenancyControllerGetPermissions=function(et){var ei=this;return eo.TenancyApiFp(this.configuration).tenancyControllerGetPermissions(et).then(function(et){return et(ei.axios,ei.basePath)})},TenancyApi}(ef.BaseAPI);eo.TenancyApi=em},38006:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}();Object.defineProperty(eo,"__esModule",{value:!0}),eo.RequiredError=eo.BaseAPI=eo.COLLECTION_FORMATS=eo.BASE_PATH=void 0;var eu=ei(97218);eo.BASE_PATH="/".replace(/\/+$/,""),eo.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"	",pipes:"|"};var ed=function(){return function(et,ei,ea){void 0===ei&&(ei=eo.BASE_PATH),void 0===ea&&(ea=eu.default),this.basePath=ei,this.axios=ea,et&&(this.configuration=et,this.basePath=et.basePath||this.basePath)}}();eo.BaseAPI=ed;var eh=function(et){function RequiredError(eo,ei){var ea=et.call(this,ei)||this;return ea.field=eo,ea.name="RequiredError",ea}return ea(RequiredError,et),RequiredError}(Error);eo.RequiredError=eh},13597:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.Configuration=void 0;var ei=function(){return function(et){void 0===et&&(et={}),this.apiKey=et.apiKey,this.username=et.username,this.password=et.password,this.accessToken=et.accessToken,this.basePath=et.basePath,this.baseOptions=et.baseOptions}}();eo.Configuration=ei},95893:function(et,eo,ei){"use strict";var ea=this&&this.__createBinding||(Object.create?function(et,eo,ei,ea){void 0===ea&&(ea=ei),Object.defineProperty(et,ea,{enumerable:!0,get:function(){return eo[ei]}})}:function(et,eo,ei,ea){void 0===ea&&(ea=ei),et[ea]=eo[ei]}),eu=this&&this.__exportStar||function(et,eo){for(var ei in et)"default"===ei||eo.hasOwnProperty(ei)||ea(eo,et,ei)};Object.defineProperty(eo,"__esModule",{value:!0}),eu(ei(66344),eo),eu(ei(13597),eo)},46310:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ReportsApi=eo.ReportsApiFactory=eo.ReportsApiFp=eo.ReportsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(82201);eo.ReportsApiAxiosParamCreator=function(et){var eo=this;return{clientsClientIdReportsBalanceSheetGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsBalanceSheetGet.");if(eo="/clients/{clientId}/reports/balance-sheet".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsCashFlowStatementGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsCashFlowStatementGet.");if(eo="/clients/{clientId}/reports/cash-flow-statement".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsClientSnapshotGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsClientSnapshotGet.");if(eo="/clients/{clientId}/reports/client-snapshot".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsComparableReportGet:function(ei,ea,ep,em,eg,ey){return void 0===ey&&(ey={}),ed(eo,void 0,void 0,function(){var eo,ed,eC,eS,e_,ew,eA,eI,eR,eT,eE;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsComparableReportGet.");if(eo="/clients/{clientId}/reports/comparable-report".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eC=et.baseOptions),eS=eu(eu({method:"GET"},eC),ey),e_={},ew={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return eI=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:eI=eh.sent(),eh.label=4;case 4:eA=eI,e_.Authorization=eA,eh.label=5;case 5:for(eT in void 0!==ea&&(ew.year=ea),void 0!==ep&&(ew.month=ep),void 0!==em&&(ew.compareType=em),void 0!==eg&&(ew.snapshotType=eg),eR=new URLSearchParams(ed.search),ew)eR.set(eT,ew[eT]);for(eT in ey.query)eR.set(eT,ey.query[eT]);return ed.search=new URLSearchParams(eR).toString(),eE=eC&&eC.headers?eC.headers:{},eS.headers=eu(eu(eu({},e_),eE),ey.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eS}]}})})},clientsClientIdReportsCoverPageGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsCoverPageGet.");if(eo="/clients/{clientId}/reports/cover-page".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsCustomModuleGet:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsCustomModuleGet.");if(eo="/clients/{clientId}/reports/custom-module".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return eA=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:eA=eh.sent(),eh.label=4;case 4:ew=eA,eS.Authorization=ew,eh.label=5;case 5:for(eR in void 0!==ea&&(e_.year=ea),void 0!==ep&&(e_.month=ep),void 0!==em&&(e_.moduleId=em),eI=new URLSearchParams(ed.search),e_)eI.set(eR,e_[eR]);for(eR in eg.query)eI.set(eR,eg.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eT),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]}})})},clientsClientIdReportsCustomTrailGet:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsCustomTrailGet.");if(eo="/clients/{clientId}/reports/custom-trail".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return eA=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:eA=eh.sent(),eh.label=4;case 4:ew=eA,eS.Authorization=ew,eh.label=5;case 5:for(eR in void 0!==ea&&(e_.year=ea),void 0!==ep&&(e_.month=ep),void 0!==em&&(e_.snapshotType=em),eI=new URLSearchParams(ed.search),e_)eI.set(eR,e_[eR]);for(eR in eg.query)eI.set(eR,eg.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eT),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]}})})},clientsClientIdReportsExecutiveSummaryGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsExecutiveSummaryGet.");if(eo="/clients/{clientId}/reports/executive-summary".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsGet.");if(eo="/clients/{clientId}/reports".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsGoalGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsGoalGet.");if(eo="/clients/{clientId}/reports/goal".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsIncomeStatementGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsIncomeStatementGet.");if(eo="/clients/{clientId}/reports/income-statement".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsIsClassificationGet:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsIsClassificationGet.");if(eo="/clients/{clientId}/reports/is-classification".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return eA=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:eA=eh.sent(),eh.label=4;case 4:ew=eA,eS.Authorization=ew,eh.label=5;case 5:for(eR in void 0!==ea&&(e_.year=ea),void 0!==ep&&(e_.month=ep),void 0!==em&&(e_.isClassificationType=em),eI=new URLSearchParams(ed.search),e_)eI.set(eR,e_[eR]);for(eR in eg.query)eI.set(eR,eg.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eT),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]}})})},clientsClientIdReportsKpiGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsKpiGet.");if(eo="/clients/{clientId}/reports/kpi".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsNotesGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsNotesGet.");if(eo="/clients/{clientId}/reports/notes".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsProfitRecommendationGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsProfitRecommendationGet.");if(eo="/clients/{clientId}/reports/profit-recommendation".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsTblGet:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsTblGet.");if(eo="/clients/{clientId}/reports/tbl".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization=e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.year=ea),void 0!==ep&&(eS.month=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.query)eA.set(eI,em.query[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsClientIdReportsThirteenMonthsGet:function(ei,ea,ep,em,eg){return void 0===eg&&(eg={}),ed(eo,void 0,void 0,function(){var eo,ed,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsClientIdReportsThirteenMonthsGet.");if(eo="/clients/{clientId}/reports/thirteen-months".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ey=et.baseOptions),eC=eu(eu({method:"GET"},ey),eg),eS={},e_={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return eA=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:eA=eh.sent(),eh.label=4;case 4:ew=eA,eS.Authorization=ew,eh.label=5;case 5:for(eR in void 0!==ea&&(e_.year=ea),void 0!==ep&&(e_.month=ep),void 0!==em&&(e_.snapshotType=em),eI=new URLSearchParams(ed.search),e_)eI.set(eR,e_[eR]);for(eR in eg.query)eI.set(eR,eg.query[eR]);return ed.search=new URLSearchParams(eI).toString(),eT=ey&&ey.headers?ey.headers:{},eC.headers=eu(eu(eu({},eS),eT),eg.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eC}]}})})},sampleTextGet:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,ef,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(eo="/sample-text",ed=new URL(eo,"https://example.com"),et&&(ef=et.baseOptions),em=eu(eu({method:"GET"},ef),ep),eg={},ey={},!(et&&et.apiKey))return[3,5];if("function"!=typeof et.apiKey)return[3,2];return[4,et.apiKey("Authorization")];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.apiKey];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization=eC,eh.label=5;case 5:for(ew in void 0!==ei&&(ey.fontSize=ei),void 0!==ea&&(ey.lineNo=ea),e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ep.query)e_.set(ew,ep.query[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ef&&ef.headers?ef.headers:{},em.headers=eu(eu(eu({},eg),eA),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})}}},eo.ReportsApiFp=function(et){return{clientsClientIdReportsBalanceSheetGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsBalanceSheetGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsCashFlowStatementGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsCashFlowStatementGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsClientSnapshotGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsClientSnapshotGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsComparableReportGet:function(ei,ea,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsComparableReportGet(ei,ea,em,eg,ey,eC)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsCoverPageGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsCoverPageGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsCustomModuleGet:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsCustomModuleGet(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsCustomTrailGet:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsCustomTrailGet(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsExecutiveSummaryGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsExecutiveSummaryGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsGoalGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsGoalGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsIncomeStatementGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsIncomeStatementGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsIsClassificationGet:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsIsClassificationGet(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsKpiGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsKpiGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsNotesGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsNotesGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsProfitRecommendationGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsProfitRecommendationGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsTblGet:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsTblGet(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsClientIdReportsThirteenMonthsGet:function(ei,ea,em,eg,ey){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).clientsClientIdReportsThirteenMonthsGet(ei,ea,em,eg,ey)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},sampleTextGet:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ReportsApiAxiosParamCreator(et).sampleTextGet(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ReportsApiFactory=function(et,ei,ea){return{clientsClientIdReportsBalanceSheetGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsBalanceSheetGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsCashFlowStatementGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsCashFlowStatementGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsClientSnapshotGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsClientSnapshotGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsComparableReportGet:function(eu,ed,eh,ep,ef,em){return eo.ReportsApiFp(et).clientsClientIdReportsComparableReportGet(eu,ed,eh,ep,ef,em).then(function(et){return et(ea,ei)})},clientsClientIdReportsCoverPageGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsCoverPageGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsCustomModuleGet:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).clientsClientIdReportsCustomModuleGet(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientsClientIdReportsCustomTrailGet:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).clientsClientIdReportsCustomTrailGet(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientsClientIdReportsExecutiveSummaryGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsExecutiveSummaryGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsGoalGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsGoalGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsIncomeStatementGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsIncomeStatementGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsIsClassificationGet:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).clientsClientIdReportsIsClassificationGet(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},clientsClientIdReportsKpiGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsKpiGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsNotesGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsNotesGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsProfitRecommendationGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsProfitRecommendationGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsTblGet:function(eu,ed,eh,ep){return eo.ReportsApiFp(et).clientsClientIdReportsTblGet(eu,ed,eh,ep).then(function(et){return et(ea,ei)})},clientsClientIdReportsThirteenMonthsGet:function(eu,ed,eh,ep,ef){return eo.ReportsApiFp(et).clientsClientIdReportsThirteenMonthsGet(eu,ed,eh,ep,ef).then(function(et){return et(ea,ei)})},sampleTextGet:function(eu,ed,eh){return eo.ReportsApiFp(et).sampleTextGet(eu,ed,eh).then(function(et){return et(ea,ei)})}}};var em=function(et){function ReportsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ReportsApi,et),ReportsApi.prototype.clientsClientIdReportsBalanceSheetGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsBalanceSheetGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsCashFlowStatementGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsCashFlowStatementGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsClientSnapshotGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsClientSnapshotGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsComparableReportGet=function(et,ei,ea,eu,ed,eh){var ep=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsComparableReportGet(et,ei,ea,eu,ed,eh).then(function(et){return et(ep.axios,ep.basePath)})},ReportsApi.prototype.clientsClientIdReportsCoverPageGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsCoverPageGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsCustomModuleGet=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsCustomModuleGet(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.clientsClientIdReportsCustomTrailGet=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsCustomTrailGet(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.clientsClientIdReportsExecutiveSummaryGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsExecutiveSummaryGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsGoalGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsGoalGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsIncomeStatementGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsIncomeStatementGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsIsClassificationGet=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsIsClassificationGet(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.clientsClientIdReportsKpiGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsKpiGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsNotesGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsNotesGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsProfitRecommendationGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsProfitRecommendationGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsTblGet=function(et,ei,ea,eu){var ed=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsTblGet(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})},ReportsApi.prototype.clientsClientIdReportsThirteenMonthsGet=function(et,ei,ea,eu,ed){var eh=this;return eo.ReportsApiFp(this.configuration).clientsClientIdReportsThirteenMonthsGet(et,ei,ea,eu,ed).then(function(et){return et(eh.axios,eh.basePath)})},ReportsApi.prototype.sampleTextGet=function(et,ei,ea){var eu=this;return eo.ReportsApiFp(this.configuration).sampleTextGet(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})},ReportsApi}(ef.BaseAPI);eo.ReportsApi=em},82201:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}();Object.defineProperty(eo,"__esModule",{value:!0}),eo.RequiredError=eo.BaseAPI=eo.COLLECTION_FORMATS=eo.BASE_PATH=void 0;var eu=ei(97218);eo.BASE_PATH="/".replace(/\/+$/,""),eo.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"	",pipes:"|"};var ed=function(){return function(et,ei,ea){void 0===ei&&(ei=eo.BASE_PATH),void 0===ea&&(ea=eu.default),this.basePath=ei,this.axios=ea,et&&(this.configuration=et,this.basePath=et.basePath||this.basePath)}}();eo.BaseAPI=ed;var eh=function(et){function RequiredError(eo,ei){var ea=et.call(this,ei)||this;return ea.field=eo,ea.name="RequiredError",ea}return ea(RequiredError,et),RequiredError}(Error);eo.RequiredError=eh},82973:function(et,eo,ei){"use strict";var ea=this&&this.__createBinding||(Object.create?function(et,eo,ei,ea){void 0===ea&&(ea=ei),Object.defineProperty(et,ea,{enumerable:!0,get:function(){return eo[ei]}})}:function(et,eo,ei,ea){void 0===ea&&(ea=ei),et[ea]=eo[ei]}),eu=this&&this.__exportStar||function(et,eo){for(var ei in et)"default"===ei||eo.hasOwnProperty(ei)||ea(eo,et,ei)};Object.defineProperty(eo,"__esModule",{value:!0}),eu(ei(7684),eo),eu(ei(90544),eo),eu(ei(46978),eo),eu(ei(19592),eo),eu(ei(8854),eo),eu(ei(26224),eo),eu(ei(9188),eo),eu(ei(34185),eo),eu(ei(23731),eo),eu(ei(84710),eo)},7684:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AgenciesApi=eo.AgenciesApiFactory=eo.AgenciesApiFp=eo.AgenciesApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.AgenciesApiAxiosParamCreator=function(et){var eo=this;return{agencyControllerGetAgencies:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC,eS,e_;return eh(this,function(eh){switch(eh.label){case 0:if(eo="/agencies",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ey=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ey=eh.sent(),eh.label=4;case 4:eg=ey,ef.Authorization="Bearer "+eg,eh.label=5;case 5:for(eS in eC=new URLSearchParams(ea.search),em)eC.set(eS,em[eS]);for(eS in ei.params)eC.set(eS,ei.params[eS]);return ea.search=new URLSearchParams(eC).toString(),e_=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),e_),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]}})})},agencyControllerGetAgencyBySlug:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("slug","Required parameter slug was null or undefined when calling agencyControllerGetAgencyBySlug.");if(eo="/agencies/slug/{slug}".replace("{slug}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})}}},eo.AgenciesApiFp=function(et){return{agencyControllerGetAgencies:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerGetAgencies(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},agencyControllerGetAgencyBySlug:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgenciesApiAxiosParamCreator(et).agencyControllerGetAgencyBySlug(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AgenciesApiFactory=function(et,ei,ea){return{agencyControllerGetAgencies:function(eu){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgenciesApiFp(et).agencyControllerGetAgencies(eu).then(function(et){return et(ea,ei)})]})})},agencyControllerGetAgencyBySlug:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgenciesApiFp(et).agencyControllerGetAgencyBySlug(eu,ep).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function AgenciesApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AgenciesApi,et),AgenciesApi.prototype.agencyControllerGetAgencies=function(et){return ed(this,void 0,void 0,function(){var ei=this;return eh(this,function(ea){return[2,eo.AgenciesApiFp(this.configuration).agencyControllerGetAgencies(et).then(function(et){return et(ei.axios,ei.basePath)})]})})},AgenciesApi.prototype.agencyControllerGetAgencyBySlug=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.AgenciesApiFp(this.configuration).agencyControllerGetAgencyBySlug(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},AgenciesApi}(ef.BaseAPI);eo.AgenciesApi=em},90544:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AgencyEmailTemplateApi=eo.AgencyEmailTemplateApiFactory=eo.AgencyEmailTemplateApiFp=eo.AgencyEmailTemplateApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.AgencyEmailTemplateApiAxiosParamCreator=function(et){var eo=this;return{agencyEmailTemplatesControllerAddAgencyEmailTemplate:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencyEmailTemplatesControllerAddAgencyEmailTemplate.");if(null==ea)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyEmailTemplatesControllerAddAgencyEmailTemplate.");if(null==ep)throw new ef.RequiredError("type","Required parameter type was null or undefined when calling agencyEmailTemplatesControllerAddAgencyEmailTemplate.");if(eo="/agency/{agencyId}/email-template/{type}".replace("{agencyId}",encodeURIComponent(String(ea))).replace("{type}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in eC["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),eT="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},agencyEmailTemplatesControllerArchiveAgencyEmailTemplate:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyEmailTemplatesControllerArchiveAgencyEmailTemplate.");if(null==ea)throw new ef.RequiredError("emailTemplateId","Required parameter emailTemplateId was null or undefined when calling agencyEmailTemplatesControllerArchiveAgencyEmailTemplate.");if(eo="/agency/{agencyId}/email-template/{emailTemplateId}/archive".replace("{agencyId}",encodeURIComponent(String(ei))).replace("{emailTemplateId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},agencyEmailTemplatesControllerGetAgencyEmailTemplateById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyEmailTemplatesControllerGetAgencyEmailTemplateById.");if(null==ea)throw new ef.RequiredError("emailTemplateId","Required parameter emailTemplateId was null or undefined when calling agencyEmailTemplatesControllerGetAgencyEmailTemplateById.");if(eo="/agency/{agencyId}/email-template/{emailTemplateId}".replace("{agencyId}",encodeURIComponent(String(ei))).replace("{emailTemplateId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},agencyEmailTemplatesControllerGetAgencyEmailTemplates:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew,eA){return void 0===eA&&(eA={}),ed(eo,void 0,void 0,function(){var eo,ed,eI,eR,eT,eE,eP,ek,eO,eM,eD;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyEmailTemplatesControllerGetAgencyEmailTemplates.");if(eo="/agency/{agencyId}/email-template".replace("{agencyId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eI=et.baseOptions),eR=eu(eu({method:"GET"},eI),eA),eT={},eE={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ek=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ek=eh.sent(),eh.label=4;case 4:eP=ek,eT.Authorization="Bearer "+eP,eh.label=5;case 5:for(eM in void 0!==ea&&(eE.type=ea),void 0!==ep&&(eE.sortDir=ep),void 0!==em&&(eE.active=em),void 0!==eg&&(eE.archive=eg),void 0!==ey&&(eE.sortBy=ey),void 0!==eC&&(eE.take=eC),void 0!==eS&&(eE.skip=eS),void 0!==e_&&(eE.searchTerm=e_),ew&&(eE.include=ew),eO=new URLSearchParams(ed.search),eE)eO.set(eM,eE[eM]);for(eM in eA.params)eO.set(eM,eA.params[eM]);return ed.search=new URLSearchParams(eO).toString(),eD=eI&&eI.headers?eI.headers:{},eR.headers=eu(eu(eu({},eT),eD),eA.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eR}]}})})},agencyEmailTemplatesControllerRestoreAgencyEmailTemplate:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyEmailTemplatesControllerRestoreAgencyEmailTemplate.");if(null==ea)throw new ef.RequiredError("emailTemplateId","Required parameter emailTemplateId was null or undefined when calling agencyEmailTemplatesControllerRestoreAgencyEmailTemplate.");if(eo="/agency/{agencyId}/email-template/{emailTemplateId}/restore".replace("{agencyId}",encodeURIComponent(String(ei))).replace("{emailTemplateId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},agencyEmailTemplatesControllerUpdateAgencyEmailTemplate:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencyEmailTemplatesControllerUpdateAgencyEmailTemplate.");if(null==ea)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyEmailTemplatesControllerUpdateAgencyEmailTemplate.");if(null==ep)throw new ef.RequiredError("emailTemplateId","Required parameter emailTemplateId was null or undefined when calling agencyEmailTemplatesControllerUpdateAgencyEmailTemplate.");if(eo="/agency/{agencyId}/email-template/{emailTemplateId}".replace("{agencyId}",encodeURIComponent(String(ea))).replace("{emailTemplateId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in eC["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),eT="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})}}},eo.AgencyEmailTemplateApiFp=function(et){return{agencyEmailTemplatesControllerAddAgencyEmailTemplate:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyEmailTemplateApiAxiosParamCreator(et).agencyEmailTemplatesControllerAddAgencyEmailTemplate(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyEmailTemplatesControllerArchiveAgencyEmailTemplate:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyEmailTemplateApiAxiosParamCreator(et).agencyEmailTemplatesControllerArchiveAgencyEmailTemplate(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyEmailTemplatesControllerGetAgencyEmailTemplateById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyEmailTemplateApiAxiosParamCreator(et).agencyEmailTemplatesControllerGetAgencyEmailTemplateById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyEmailTemplatesControllerGetAgencyEmailTemplates:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyEmailTemplateApiAxiosParamCreator(et).agencyEmailTemplatesControllerGetAgencyEmailTemplates(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyEmailTemplatesControllerRestoreAgencyEmailTemplate:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyEmailTemplateApiAxiosParamCreator(et).agencyEmailTemplatesControllerRestoreAgencyEmailTemplate(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyEmailTemplatesControllerUpdateAgencyEmailTemplate:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyEmailTemplateApiAxiosParamCreator(et).agencyEmailTemplatesControllerUpdateAgencyEmailTemplate(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AgencyEmailTemplateApiFactory=function(et,ei,ea){return{agencyEmailTemplatesControllerAddAgencyEmailTemplate:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(et).agencyEmailTemplatesControllerAddAgencyEmailTemplate(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})},agencyEmailTemplatesControllerArchiveAgencyEmailTemplate:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(et).agencyEmailTemplatesControllerArchiveAgencyEmailTemplate(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},agencyEmailTemplatesControllerGetAgencyEmailTemplateById:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(et).agencyEmailTemplatesControllerGetAgencyEmailTemplateById(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},agencyEmailTemplatesControllerGetAgencyEmailTemplates:function(eu,ep,ef,em,eg,ey,eC,eS,e_,ew,eA){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(et).agencyEmailTemplatesControllerGetAgencyEmailTemplates(eu,ep,ef,em,eg,ey,eC,eS,e_,ew,eA).then(function(et){return et(ea,ei)})]})})},agencyEmailTemplatesControllerRestoreAgencyEmailTemplate:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(et).agencyEmailTemplatesControllerRestoreAgencyEmailTemplate(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},agencyEmailTemplatesControllerUpdateAgencyEmailTemplate:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(et).agencyEmailTemplatesControllerUpdateAgencyEmailTemplate(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function AgencyEmailTemplateApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AgencyEmailTemplateApi,et),AgencyEmailTemplateApi.prototype.agencyEmailTemplatesControllerAddAgencyEmailTemplate=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.AgencyEmailTemplateApiFp(this.configuration).agencyEmailTemplatesControllerAddAgencyEmailTemplate(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},AgencyEmailTemplateApi.prototype.agencyEmailTemplatesControllerArchiveAgencyEmailTemplate=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(this.configuration).agencyEmailTemplatesControllerArchiveAgencyEmailTemplate(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},AgencyEmailTemplateApi.prototype.agencyEmailTemplatesControllerGetAgencyEmailTemplateById=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(this.configuration).agencyEmailTemplatesControllerGetAgencyEmailTemplateById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},AgencyEmailTemplateApi.prototype.agencyEmailTemplatesControllerGetAgencyEmailTemplates=function(et,ei,ea,eu,ep,ef,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.AgencyEmailTemplateApiFp(this.configuration).agencyEmailTemplatesControllerGetAgencyEmailTemplates(et,ei,ea,eu,ep,ef,em,eg,ey,eC,eS).then(function(et){return et(ed.axios,ed.basePath)})]})})},AgencyEmailTemplateApi.prototype.agencyEmailTemplatesControllerRestoreAgencyEmailTemplate=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.AgencyEmailTemplateApiFp(this.configuration).agencyEmailTemplatesControllerRestoreAgencyEmailTemplate(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},AgencyEmailTemplateApi.prototype.agencyEmailTemplatesControllerUpdateAgencyEmailTemplate=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.AgencyEmailTemplateApiFp(this.configuration).agencyEmailTemplatesControllerUpdateAgencyEmailTemplate(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},AgencyEmailTemplateApi}(ef.BaseAPI);eo.AgencyEmailTemplateApi=em},46978:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.AgencyUserAssignmentsApi=eo.AgencyUserAssignmentsApiFactory=eo.AgencyUserAssignmentsApiFp=eo.AgencyUserAssignmentsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.AgencyUserAssignmentsApiAxiosParamCreator=function(et){var eo=this;return{agencyUserAssignmentsControllerAssignAgencyToGlobalUser:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencyUserAssignmentsControllerAssignAgencyToGlobalUser.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling agencyUserAssignmentsControllerAssignAgencyToGlobalUser.");if(eo="/users/{userId}/agency-assign-global-user".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},agencyUserAssignmentsControllerAssignGlobalUserToAgency:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencyUserAssignmentsControllerAssignGlobalUserToAgency.");if(null==ea)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyUserAssignmentsControllerAssignGlobalUserToAgency.");if(eo="/agencies/{agencyId}/assign-global-users".replace("{agencyId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT,eE,eP;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment.");if(eo="/agencies/{agencyId}/global-user-assignments".replace("{agencyId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eR=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eR=eh.sent(),eh.label=4;case 4:eI=eR,ew.Authorization="Bearer "+eI,eh.label=5;case 5:for(eE in void 0!==ea&&(eA.sortDir=ea),void 0!==ep&&(eA.sortBy=ep),void 0!==em&&(eA.take=em),void 0!==eg&&(eA.skip=eg),ey&&(eA.include=ey),eT=new URLSearchParams(ed.search),eA)eT.set(eE,eA[eE]);for(eE in eC.params)eT.set(eE,eC.params[eE]);return ed.search=new URLSearchParams(eT).toString(),eP=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eP),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]}})})},agencyUserAssignmentsControllerGetGlobalUserAssignments:function(ei,ea,ep,em,eg,ey,eC){return void 0===eC&&(eC={}),ed(eo,void 0,void 0,function(){var eo,ed,eS,e_,ew,eA,eI,eR,eT,eE,eP;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling agencyUserAssignmentsControllerGetGlobalUserAssignments.");if(eo="/users/{userId}/global-user-assignments".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eS=et.baseOptions),e_=eu(eu({method:"GET"},eS),eC),ew={},eA={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eR=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eR=eh.sent(),eh.label=4;case 4:eI=eR,ew.Authorization="Bearer "+eI,eh.label=5;case 5:for(eE in void 0!==ea&&(eA.sortDir=ea),void 0!==ep&&(eA.sortBy=ep),void 0!==em&&(eA.take=em),void 0!==eg&&(eA.skip=eg),ey&&(eA.include=ey),eT=new URLSearchParams(ed.search),eA)eT.set(eE,eA[eE]);for(eE in eC.params)eT.set(eE,eC.params[eE]);return ed.search=new URLSearchParams(eT).toString(),eP=eS&&eS.headers?eS.headers:{},e_.headers=eu(eu(eu({},ew),eP),eC.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:e_}]}})})},agencyUserAssignmentsControllerRemoveGlobalUserAssignment:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling agencyUserAssignmentsControllerRemoveGlobalUserAssignment.");if(null==ea)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling agencyUserAssignmentsControllerRemoveGlobalUserAssignment.");if(eo="/users/{userId}/agencies/{agencyId}/global-user-assignments".replace("{userId}",encodeURIComponent(String(ei))).replace("{agencyId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},agencyUserAssignmentsControllerRemoveGlobalUserAssignments:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling agencyUserAssignmentsControllerRemoveGlobalUserAssignments.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling agencyUserAssignmentsControllerRemoveGlobalUserAssignments.");if(eo="/users/{userId}/global-user-assignments".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})}}},eo.AgencyUserAssignmentsApiFp=function(et){return{agencyUserAssignmentsControllerAssignAgencyToGlobalUser:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyUserAssignmentsApiAxiosParamCreator(et).agencyUserAssignmentsControllerAssignAgencyToGlobalUser(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyUserAssignmentsControllerAssignGlobalUserToAgency:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyUserAssignmentsApiAxiosParamCreator(et).agencyUserAssignmentsControllerAssignGlobalUserToAgency(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyUserAssignmentsApiAxiosParamCreator(et).agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyUserAssignmentsControllerGetGlobalUserAssignments:function(ei,ea,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyUserAssignmentsApiAxiosParamCreator(et).agencyUserAssignmentsControllerGetGlobalUserAssignments(ei,ea,em,eg,ey,eC,eS)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyUserAssignmentsControllerRemoveGlobalUserAssignment:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyUserAssignmentsApiAxiosParamCreator(et).agencyUserAssignmentsControllerRemoveGlobalUserAssignment(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},agencyUserAssignmentsControllerRemoveGlobalUserAssignments:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.AgencyUserAssignmentsApiAxiosParamCreator(et).agencyUserAssignmentsControllerRemoveGlobalUserAssignments(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.AgencyUserAssignmentsApiFactory=function(et,ei,ea){return{agencyUserAssignmentsControllerAssignAgencyToGlobalUser:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(et).agencyUserAssignmentsControllerAssignAgencyToGlobalUser(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},agencyUserAssignmentsControllerAssignGlobalUserToAgency:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(et).agencyUserAssignmentsControllerAssignGlobalUserToAgency(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment:function(eu,ep,ef,em,eg,ey,eC){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(et).agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment(eu,ep,ef,em,eg,ey,eC).then(function(et){return et(ea,ei)})]})})},agencyUserAssignmentsControllerGetGlobalUserAssignments:function(eu,ep,ef,em,eg,ey,eC){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(et).agencyUserAssignmentsControllerGetGlobalUserAssignments(eu,ep,ef,em,eg,ey,eC).then(function(et){return et(ea,ei)})]})})},agencyUserAssignmentsControllerRemoveGlobalUserAssignment:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(et).agencyUserAssignmentsControllerRemoveGlobalUserAssignment(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},agencyUserAssignmentsControllerRemoveGlobalUserAssignments:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(et).agencyUserAssignmentsControllerRemoveGlobalUserAssignments(eu,ep,ef).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function AgencyUserAssignmentsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(AgencyUserAssignmentsApi,et),AgencyUserAssignmentsApi.prototype.agencyUserAssignmentsControllerAssignAgencyToGlobalUser=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(this.configuration).agencyUserAssignmentsControllerAssignAgencyToGlobalUser(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},AgencyUserAssignmentsApi.prototype.agencyUserAssignmentsControllerAssignGlobalUserToAgency=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(this.configuration).agencyUserAssignmentsControllerAssignGlobalUserToAgency(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},AgencyUserAssignmentsApi.prototype.agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment=function(et,ei,ea,eu,ep,ef,em){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.AgencyUserAssignmentsApiFp(this.configuration).agencyUserAssignmentsControllerGetAgencyGlobalUserAssignment(et,ei,ea,eu,ep,ef,em).then(function(et){return et(ed.axios,ed.basePath)})]})})},AgencyUserAssignmentsApi.prototype.agencyUserAssignmentsControllerGetGlobalUserAssignments=function(et,ei,ea,eu,ep,ef,em){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.AgencyUserAssignmentsApiFp(this.configuration).agencyUserAssignmentsControllerGetGlobalUserAssignments(et,ei,ea,eu,ep,ef,em).then(function(et){return et(ed.axios,ed.basePath)})]})})},AgencyUserAssignmentsApi.prototype.agencyUserAssignmentsControllerRemoveGlobalUserAssignment=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(this.configuration).agencyUserAssignmentsControllerRemoveGlobalUserAssignment(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},AgencyUserAssignmentsApi.prototype.agencyUserAssignmentsControllerRemoveGlobalUserAssignments=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.AgencyUserAssignmentsApiFp(this.configuration).agencyUserAssignmentsControllerRemoveGlobalUserAssignments(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},AgencyUserAssignmentsApi}(ef.BaseAPI);eo.AgencyUserAssignmentsApi=em},19592:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientMembersApi=eo.ClientMembersApiFactory=eo.ClientMembersApiFp=eo.ClientMembersApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.ClientMembersApiAxiosParamCreator=function(et){var eo=this;return{clientMembersControllerAddAdvisorMember:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientMembersControllerAddAdvisorMember.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerAddAdvisorMember.");if(eo="/clients/{clientId}/advisor-members".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientMembersControllerAddExecutiveMember:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientMembersControllerAddExecutiveMember.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerAddExecutiveMember.");if(eo="/clients/{clientId}/executive-members".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientMembersControllerAddExecutiveMemberById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerAddExecutiveMemberById.");if(null==ea)throw new ef.RequiredError("memberId","Required parameter memberId was null or undefined when calling clientMembersControllerAddExecutiveMemberById.");if(eo="/clients/{clientId}/executive-members/{memberId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{memberId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientMembersControllerDeleteAdvisorMemberById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerDeleteAdvisorMemberById.");if(null==ea)throw new ef.RequiredError("memberId","Required parameter memberId was null or undefined when calling clientMembersControllerDeleteAdvisorMemberById.");if(eo="/clients/{clientId}/advisor-members/{memberId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{memberId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientMembersControllerDeleteExecutiveMemberById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerDeleteExecutiveMemberById.");if(null==ea)throw new ef.RequiredError("memberId","Required parameter memberId was null or undefined when calling clientMembersControllerDeleteExecutiveMemberById.");if(eo="/clients/{clientId}/executive-members/{memberId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{memberId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientMembersControllerGetAdvisorMemberById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerGetAdvisorMemberById.");if(null==ea)throw new ef.RequiredError("memberId","Required parameter memberId was null or undefined when calling clientMembersControllerGetAdvisorMemberById.");if(eo="/clients/{clientId}/advisor-members/{memberId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{memberId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientMembersControllerGetAdvisorMembers:function(ei,ea,ep,em,eg,ey,eC,eS){return void 0===eS&&(eS={}),ed(eo,void 0,void 0,function(){var eo,ed,e_,ew,eA,eI,eR,eT,eE,eP,ek;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerGetAdvisorMembers.");if(eo="/clients/{clientId}/advisor-members".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(e_=et.baseOptions),ew=eu(eu({method:"GET"},e_),eS),eA={},eI={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eT=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eT=eh.sent(),eh.label=4;case 4:eR=eT,eA.Authorization="Bearer "+eR,eh.label=5;case 5:for(eP in void 0!==ea&&(eI.sortDir=ea),void 0!==ep&&(eI.sortBy=ep),void 0!==em&&(eI.take=em),void 0!==eg&&(eI.skip=eg),void 0!==ey&&(eI.searchTerm=ey),eC&&(eI.include=eC),eE=new URLSearchParams(ed.search),eI)eE.set(eP,eI[eP]);for(eP in eS.params)eE.set(eP,eS.params[eP]);return ed.search=new URLSearchParams(eE).toString(),ek=e_&&e_.headers?e_.headers:{},ew.headers=eu(eu(eu({},eA),ek),eS.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ew}]}})})},clientMembersControllerGetExecutiveMembers:function(ei,ea,ep,em,eg,ey,eC,eS){return void 0===eS&&(eS={}),ed(eo,void 0,void 0,function(){var eo,ed,e_,ew,eA,eI,eR,eT,eE,eP,ek;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerGetExecutiveMembers.");if(eo="/clients/{clientId}/executive-members".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(e_=et.baseOptions),ew=eu(eu({method:"GET"},e_),eS),eA={},eI={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eT=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eT=eh.sent(),eh.label=4;case 4:eR=eT,eA.Authorization="Bearer "+eR,eh.label=5;case 5:for(eP in void 0!==ea&&(eI.sortDir=ea),void 0!==ep&&(eI.sortBy=ep),void 0!==em&&(eI.take=em),void 0!==eg&&(eI.skip=eg),void 0!==ey&&(eI.searchTerm=ey),eC&&(eI.include=eC),eE=new URLSearchParams(ed.search),eI)eE.set(eP,eI[eP]);for(eP in eS.params)eE.set(eP,eS.params[eP]);return ed.search=new URLSearchParams(eE).toString(),ek=e_&&e_.headers?e_.headers:{},ew.headers=eu(eu(eu({},eA),ek),eS.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ew}]}})})},clientMembersControllerInviteExecutiveMember:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerInviteExecutiveMember.");if(null==ea)throw new ef.RequiredError("memberId","Required parameter memberId was null or undefined when calling clientMembersControllerInviteExecutiveMember.");if(eo="/clients/{clientId}/executive-members/{memberId}/invite".replace("{clientId}",encodeURIComponent(String(ei))).replace("{memberId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientMembersControllerUpdateAdvisorMember:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientMembersControllerUpdateAdvisorMember.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerUpdateAdvisorMember.");if(null==ep)throw new ef.RequiredError("memberId","Required parameter memberId was null or undefined when calling clientMembersControllerUpdateAdvisorMember.");if(eo="/clients/{clientId}/advisor-members/{memberId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{memberId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in eC["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),eT="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientMembersControllerUpdateExecutiveMember:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientMembersControllerUpdateExecutiveMember.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientMembersControllerUpdateExecutiveMember.");if(null==ep)throw new ef.RequiredError("memberId","Required parameter memberId was null or undefined when calling clientMembersControllerUpdateExecutiveMember.");if(eo="/clients/{clientId}/executive-members/{memberId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{memberId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"PATCH"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in eC["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),eT="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})}}},eo.ClientMembersApiFp=function(et){return{clientMembersControllerAddAdvisorMember:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerAddAdvisorMember(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerAddExecutiveMember:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerAddExecutiveMember(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerAddExecutiveMemberById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerAddExecutiveMemberById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerDeleteAdvisorMemberById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerDeleteAdvisorMemberById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerDeleteExecutiveMemberById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerDeleteExecutiveMemberById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerGetAdvisorMemberById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerGetAdvisorMemberById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerGetAdvisorMembers:function(ei,ea,em,eg,ey,eC,eS,e_){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerGetAdvisorMembers(ei,ea,em,eg,ey,eC,eS,e_)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerGetExecutiveMembers:function(ei,ea,em,eg,ey,eC,eS,e_){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerGetExecutiveMembers(ei,ea,em,eg,ey,eC,eS,e_)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerInviteExecutiveMember:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerInviteExecutiveMember(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerUpdateAdvisorMember:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerUpdateAdvisorMember(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientMembersControllerUpdateExecutiveMember:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientMembersApiAxiosParamCreator(et).clientMembersControllerUpdateExecutiveMember(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientMembersApiFactory=function(et,ei,ea){return{clientMembersControllerAddAdvisorMember:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerAddAdvisorMember(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientMembersControllerAddExecutiveMember:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerAddExecutiveMember(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientMembersControllerAddExecutiveMemberById:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerAddExecutiveMemberById(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientMembersControllerDeleteAdvisorMemberById:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerDeleteAdvisorMemberById(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientMembersControllerDeleteExecutiveMemberById:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerDeleteExecutiveMemberById(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientMembersControllerGetAdvisorMemberById:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerGetAdvisorMemberById(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientMembersControllerGetAdvisorMembers:function(eu,ep,ef,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerGetAdvisorMembers(eu,ep,ef,em,eg,ey,eC,eS).then(function(et){return et(ea,ei)})]})})},clientMembersControllerGetExecutiveMembers:function(eu,ep,ef,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerGetExecutiveMembers(eu,ep,ef,em,eg,ey,eC,eS).then(function(et){return et(ea,ei)})]})})},clientMembersControllerInviteExecutiveMember:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerInviteExecutiveMember(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientMembersControllerUpdateAdvisorMember:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerUpdateAdvisorMember(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})},clientMembersControllerUpdateExecutiveMember:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientMembersApiFp(et).clientMembersControllerUpdateExecutiveMember(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function ClientMembersApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientMembersApi,et),ClientMembersApi.prototype.clientMembersControllerAddAdvisorMember=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerAddAdvisorMember(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerAddExecutiveMember=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerAddExecutiveMember(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerAddExecutiveMemberById=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerAddExecutiveMemberById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerDeleteAdvisorMemberById=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerDeleteAdvisorMemberById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerDeleteExecutiveMemberById=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerDeleteExecutiveMemberById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerGetAdvisorMemberById=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerGetAdvisorMemberById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerGetAdvisorMembers=function(et,ei,ea,eu,ep,ef,em,eg){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerGetAdvisorMembers(et,ei,ea,eu,ep,ef,em,eg).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerGetExecutiveMembers=function(et,ei,ea,eu,ep,ef,em,eg){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerGetExecutiveMembers(et,ei,ea,eu,ep,ef,em,eg).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerInviteExecutiveMember=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerInviteExecutiveMember(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerUpdateAdvisorMember=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerUpdateAdvisorMember(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientMembersApi.prototype.clientMembersControllerUpdateExecutiveMember=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientMembersApiFp(this.configuration).clientMembersControllerUpdateExecutiveMember(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientMembersApi}(ef.BaseAPI);eo.ClientMembersApi=em},8854:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientUserAssignmentsApi=eo.ClientUserAssignmentsApiFactory=eo.ClientUserAssignmentsApiFp=eo.ClientUserAssignmentsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.ClientUserAssignmentsApiAxiosParamCreator=function(et){var eo=this;return{clientUserAssignmentsControllerAssignClientToClientUser:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientUserAssignmentsControllerAssignClientToClientUser.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientUserAssignmentsControllerAssignClientToClientUser.");if(eo="/clients/{clientId}/assign-client-user".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientUserAssignmentsControllerAssignClientToExecutiveMember:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientUserAssignmentsControllerAssignClientToExecutiveMember.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientUserAssignmentsControllerAssignClientToExecutiveMember.");if(eo="/client/{clientId}/assign-executive-members".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientUserAssignmentsControllerAssignClients:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientUserAssignmentsControllerAssignClients.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling clientUserAssignmentsControllerAssignClients.");if(eo="/users/{userId}/assign-clients".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientUserAssignmentsControllerAssignUsers:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientUserAssignmentsControllerAssignUsers.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientUserAssignmentsControllerAssignUsers.");if(eo="/clients/{clientId}/assign-users".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientUserAssignmentsControllerGetAssignmentClients:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew){return void 0===ew&&(ew={}),ed(eo,void 0,void 0,function(){var eo,ed,eA,eI,eR,eT,eE,eP,ek,eO,eM;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientUserAssignmentsControllerGetAssignmentClients.");if(eo="/clients/{clientId}/client-members".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eA=et.baseOptions),eI=eu(eu({method:"GET"},eA),ew),eR={},eT={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eP=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eP=eh.sent(),eh.label=4;case 4:eE=eP,eR.Authorization="Bearer "+eE,eh.label=5;case 5:for(eO in void 0!==ea&&(eT.sortDir=ea),void 0!==ep&&(eT.sortBy=ep),void 0!==em&&(eT.take=em),void 0!==eg&&(eT.skip=eg),void 0!==ey&&(eT.searchTerm=ey),void 0!==eC&&(eT.userRole=eC),eS&&(eT.include=eS),void 0!==e_&&(eT.active=e_),ek=new URLSearchParams(ed.search),eT)ek.set(eO,eT[eO]);for(eO in ew.params)ek.set(eO,ew.params[eO]);return ed.search=new URLSearchParams(ek).toString(),eM=eA&&eA.headers?eA.headers:{},eI.headers=eu(eu(eu({},eR),eM),ew.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eI}]}})})},clientUserAssignmentsControllerGetAssignmentUsers:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew){return void 0===ew&&(ew={}),ed(eo,void 0,void 0,function(){var eo,ed,eA,eI,eR,eT,eE,eP,ek,eO,eM;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling clientUserAssignmentsControllerGetAssignmentUsers.");if(eo="/users/{userId}/client-users".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eA=et.baseOptions),eI=eu(eu({method:"GET"},eA),ew),eR={},eT={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eP=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eP=eh.sent(),eh.label=4;case 4:eE=eP,eR.Authorization="Bearer "+eE,eh.label=5;case 5:for(eO in void 0!==ea&&(eT.sortDir=ea),void 0!==ep&&(eT.sortBy=ep),void 0!==em&&(eT.take=em),void 0!==eg&&(eT.skip=eg),void 0!==ey&&(eT.searchTerm=ey),eC&&(eT.clientMember=eC),eS&&(eT.include=eS),void 0!==e_&&(eT.active=e_),ek=new URLSearchParams(ed.search),eT)ek.set(eO,eT[eO]);for(eO in ew.params)ek.set(eO,ew.params[eO]);return ed.search=new URLSearchParams(ek).toString(),eM=eA&&eA.headers?eA.headers:{},eI.headers=eu(eu(eu({},eR),eM),ew.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eI}]}})})},clientUserAssignmentsControllerGetAssignmentsByEmail:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("emailAddress","Required parameter emailAddress was null or undefined when calling clientUserAssignmentsControllerGetAssignmentsByEmail.");for(e_ in eo="/client-user-assignments",ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},void 0!==ei&&(eC.emailAddress=ei),void 0!==ea&&(eC.include=ea),eS=new URLSearchParams(ed.search),eC)eS.set(e_,eC[e_]);for(e_ in ep.params)eS.set(e_,ep.params[e_]);return ed.search=new URLSearchParams(eS).toString(),ew=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),ew),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]})})},clientUserAssignmentsControllerGetClientCoverPage:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientUserAssignmentsControllerGetClientCoverPage.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling clientUserAssignmentsControllerGetClientCoverPage.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling clientUserAssignmentsControllerGetClientCoverPage.");if(eo="/clients/{clientId}/years/{year}/month/{month}/cover-page".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientUserAssignmentsControllerGetReportPublishValidation:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientUserAssignmentsControllerGetReportPublishValidation.");if(null==ea)throw new ef.RequiredError("year","Required parameter year was null or undefined when calling clientUserAssignmentsControllerGetReportPublishValidation.");if(null==ep)throw new ef.RequiredError("month","Required parameter month was null or undefined when calling clientUserAssignmentsControllerGetReportPublishValidation.");if(eo="/clients/{clientId}/years/{year}/month/{month}/report-publish-validation".replace("{clientId}",encodeURIComponent(String(ei))).replace("{year}",encodeURIComponent(String(ea))).replace("{month}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientUserAssignmentsControllerRemoveUser:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientUserAssignmentsControllerRemoveUser.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling clientUserAssignmentsControllerRemoveUser.");if(eo="/clients/{clientId}/users/{userId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})}}},eo.ClientUserAssignmentsApiFp=function(et){return{clientUserAssignmentsControllerAssignClientToClientUser:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerAssignClientToClientUser(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerAssignClientToExecutiveMember:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerAssignClientToExecutiveMember(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerAssignClients:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerAssignClients(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerAssignUsers:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerAssignUsers(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerGetAssignmentClients:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerGetAssignmentClients(ei,ea,em,eg,ey,eC,eS,e_,ew,eA)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerGetAssignmentUsers:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerGetAssignmentUsers(ei,ea,em,eg,ey,eC,eS,e_,ew,eA)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerGetAssignmentsByEmail:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerGetAssignmentsByEmail(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerGetClientCoverPage:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerGetClientCoverPage(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerGetReportPublishValidation:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerGetReportPublishValidation(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientUserAssignmentsControllerRemoveUser:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientUserAssignmentsApiAxiosParamCreator(et).clientUserAssignmentsControllerRemoveUser(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientUserAssignmentsApiFactory=function(et,ei,ea){return{clientUserAssignmentsControllerAssignClientToClientUser:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerAssignClientToClientUser(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerAssignClientToExecutiveMember:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerAssignClientToExecutiveMember(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerAssignClients:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerAssignClients(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerAssignUsers:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerAssignUsers(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerGetAssignmentClients:function(eu,ep,ef,em,eg,ey,eC,eS,e_,ew){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerGetAssignmentClients(eu,ep,ef,em,eg,ey,eC,eS,e_,ew).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerGetAssignmentUsers:function(eu,ep,ef,em,eg,ey,eC,eS,e_,ew){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerGetAssignmentUsers(eu,ep,ef,em,eg,ey,eC,eS,e_,ew).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerGetAssignmentsByEmail:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerGetAssignmentsByEmail(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerGetClientCoverPage:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerGetClientCoverPage(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerGetReportPublishValidation:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerGetReportPublishValidation(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})},clientUserAssignmentsControllerRemoveUser:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(et).clientUserAssignmentsControllerRemoveUser(eu,ep,ef).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function ClientUserAssignmentsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientUserAssignmentsApi,et),ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerAssignClientToClientUser=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerAssignClientToClientUser(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerAssignClientToExecutiveMember=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerAssignClientToExecutiveMember(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerAssignClients=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerAssignClients(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerAssignUsers=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerAssignUsers(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerGetAssignmentClients=function(et,ei,ea,eu,ep,ef,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerGetAssignmentClients(et,ei,ea,eu,ep,ef,em,eg,ey,eC).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerGetAssignmentUsers=function(et,ei,ea,eu,ep,ef,em,eg,ey,eC){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerGetAssignmentUsers(et,ei,ea,eu,ep,ef,em,eg,ey,eC).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerGetAssignmentsByEmail=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerGetAssignmentsByEmail(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerGetClientCoverPage=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerGetClientCoverPage(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerGetReportPublishValidation=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerGetReportPublishValidation(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientUserAssignmentsApi.prototype.clientUserAssignmentsControllerRemoveUser=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientUserAssignmentsApiFp(this.configuration).clientUserAssignmentsControllerRemoveUser(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientUserAssignmentsApi}(ef.BaseAPI);eo.ClientUserAssignmentsApi=em},26224:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.ClientsApi=eo.ClientsApiFactory=eo.ClientsApiFp=eo.ClientsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.ClientsApiAxiosParamCreator=function(et){var eo=this;return{clientsControllerActivateClient:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerActivateClient.");if(eo="/clients/{clientId}/activate".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},clientsControllerAddClient:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientsControllerAddClient.");if(eo="/clients",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in eg["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),eI="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},clientsControllerAddClientFinancialProfile:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientsControllerAddClientFinancialProfile.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerAddClientFinancialProfile.");if(eo="/clients/{clientId}/financial-profile".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientsControllerAddLongTermGoal:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientsControllerAddLongTermGoal.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerAddLongTermGoal.");if(eo="/clients/{clientId}/long-term-goal".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientsControllerDeActivateClient:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerDeActivateClient.");if(eo="/clients/{clientId}/deactivate".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},clientsControllerDeleteLongTermGoal:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerDeleteLongTermGoal.");if(null==ea)throw new ef.RequiredError("longTermGoalId","Required parameter longTermGoalId was null or undefined when calling clientsControllerDeleteLongTermGoal.");if(eo="/clients/{clientId}/long-term-goal/{longTermGoalId}".replace("{clientId}",encodeURIComponent(String(ei))).replace("{longTermGoalId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"DELETE"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientsControllerGetPermissionById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerGetPermissionById.");if(eo="/clients/{clientId}".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ea&&(eC.include=ea),ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientsControllerGetPermissions:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew,eA){return void 0===eA&&(eA={}),ed(eo,void 0,void 0,function(){var eo,ed,eI,eR,eT,eE,eP,ek,eO,eM,eD;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("apiMode","Required parameter apiMode was null or undefined when calling clientsControllerGetPermissions.");if(eo="/clients",ed=new URL(eo,"https://example.com"),et&&(eI=et.baseOptions),eR=eu(eu({method:"GET"},eI),eA),eT={},eE={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ek=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ek=eh.sent(),eh.label=4;case 4:eP=ek,eT.Authorization="Bearer "+eP,eh.label=5;case 5:for(eM in void 0!==ea&&(eE.agencyId=ea),void 0!==ep&&(eE.clientType=ep),void 0!==em&&(eE.sortDir=em),void 0!==eg&&(eE.sortBy=eg),void 0!==ey&&(eE.take=ey),void 0!==eC&&(eE.skip=eC),void 0!==eS&&(eE.searchTerm=eS),void 0!==e_&&(eE.active=e_),void 0!==ei&&(eE.apiMode=ei),ew&&(eE.include=ew),eO=new URLSearchParams(ed.search),eE)eO.set(eM,eE[eM]);for(eM in eA.params)eO.set(eM,eA.params[eM]);return ed.search=new URLSearchParams(eO).toString(),eD=eI&&eI.headers?eI.headers:{},eR.headers=eu(eu(eu({},eT),eD),eA.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eR}]}})})},clientsControllerOnBoardClient:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerOnBoardClient.");for(eS in eo="/clients/{clientId}/on-board".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},et&&(et.username||et.password)&&(em.auth={username:et.username,password:et.password}),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.params)eC.set(eS,ea.params[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientsControllerOnBoardClientSendSns:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerOnBoardClientSendSns.");for(eS in eo="/clients/{clientId}/on-board-sns".replace("{clientId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},et&&(et.username||et.password)&&(em.auth={username:et.username,password:et.password}),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.params)eC.set(eS,ea.params[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},clientsControllerUpdate:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientsControllerUpdate.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerUpdate.");if(eo="/clients/{clientId}".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientsControllerUpdateClientLogoForm:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("file","Required parameter file was null or undefined when calling clientsControllerUpdateClientLogoForm.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerUpdateClientLogoForm.");if(eo="/clients/{clientId}/logo".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new FormData,!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,ey.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in void 0!==ei&&eS.append("file",ei),ey["Content-Type"]="multipart/form-data",eA=new URLSearchParams(ed.search),eC)eA.set(eI,eC[eI]);for(eI in ep.params)eA.set(eI,ep.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eR),ep.headers),eg.data=eS,[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},clientsControllerUpdateLongTermGoal:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling clientsControllerUpdateLongTermGoal.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerUpdateLongTermGoal.");if(null==ep)throw new ef.RequiredError("longTermGoalId","Required parameter longTermGoalId was null or undefined when calling clientsControllerUpdateLongTermGoal.");if(eo="/clients/{clientId}/long-term-goal/{longTermGoalId}".replace("{clientId}",encodeURIComponent(String(ea))).replace("{longTermGoalId}",encodeURIComponent(String(ep))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"POST"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in eC["Content-Type"]="application/json",eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),eT="string"!=typeof ei||"application/json"===ey.headers["Content-Type"],ey.data=eT?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})},clientsControllerUploadImageForm:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("file","Required parameter file was null or undefined when calling clientsControllerUploadImageForm.");if(null==ea)throw new ef.RequiredError("clientId","Required parameter clientId was null or undefined when calling clientsControllerUploadImageForm.");if(eo="/clients/{clientId}/file".replace("{clientId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new FormData,!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,ey.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in void 0!==ei&&eS.append("file",ei),ey["Content-Type"]="multipart/form-data",eA=new URLSearchParams(ed.search),eC)eA.set(eI,eC[eI]);for(eI in ep.params)eA.set(eI,ep.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eR),ep.headers),eg.data=eS,[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})}}},eo.ClientsApiFp=function(et){return{clientsControllerActivateClient:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerActivateClient(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerAddClient:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerAddClient(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerAddClientFinancialProfile:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerAddClientFinancialProfile(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerAddLongTermGoal:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerAddLongTermGoal(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerDeActivateClient:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerDeActivateClient(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerDeleteLongTermGoal:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerDeleteLongTermGoal(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerGetPermissionById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerGetPermissionById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerGetPermissions:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerGetPermissions(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerOnBoardClient:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerOnBoardClient(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerOnBoardClientSendSns:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerOnBoardClientSendSns(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerUpdate:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerUpdate(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerUpdateClientLogoForm:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerUpdateClientLogoForm(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerUpdateLongTermGoal:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerUpdateLongTermGoal(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},clientsControllerUploadImageForm:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.ClientsApiAxiosParamCreator(et).clientsControllerUploadImageForm(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.ClientsApiFactory=function(et,ei,ea){return{clientsControllerActivateClient:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerActivateClient(eu,ep).then(function(et){return et(ea,ei)})]})})},clientsControllerAddClient:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerAddClient(eu,ep).then(function(et){return et(ea,ei)})]})})},clientsControllerAddClientFinancialProfile:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerAddClientFinancialProfile(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientsControllerAddLongTermGoal:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerAddLongTermGoal(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientsControllerDeActivateClient:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerDeActivateClient(eu,ep).then(function(et){return et(ea,ei)})]})})},clientsControllerDeleteLongTermGoal:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerDeleteLongTermGoal(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientsControllerGetPermissionById:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerGetPermissionById(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientsControllerGetPermissions:function(eu,ep,ef,em,eg,ey,eC,eS,e_,ew,eA){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerGetPermissions(eu,ep,ef,em,eg,ey,eC,eS,e_,ew,eA).then(function(et){return et(ea,ei)})]})})},clientsControllerOnBoardClient:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerOnBoardClient(eu,ep).then(function(et){return et(ea,ei)})]})})},clientsControllerOnBoardClientSendSns:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerOnBoardClientSendSns(eu,ep).then(function(et){return et(ea,ei)})]})})},clientsControllerUpdate:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerUpdate(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientsControllerUpdateClientLogoForm:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerUpdateClientLogoForm(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},clientsControllerUpdateLongTermGoal:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerUpdateLongTermGoal(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})},clientsControllerUploadImageForm:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.ClientsApiFp(et).clientsControllerUploadImageForm(eu,ep,ef).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function ClientsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(ClientsApi,et),ClientsApi.prototype.clientsControllerActivateClient=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.ClientsApiFp(this.configuration).clientsControllerActivateClient(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},ClientsApi.prototype.clientsControllerAddClient=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.ClientsApiFp(this.configuration).clientsControllerAddClient(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},ClientsApi.prototype.clientsControllerAddClientFinancialProfile=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientsApiFp(this.configuration).clientsControllerAddClientFinancialProfile(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientsApi.prototype.clientsControllerAddLongTermGoal=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientsApiFp(this.configuration).clientsControllerAddLongTermGoal(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientsApi.prototype.clientsControllerDeActivateClient=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.ClientsApiFp(this.configuration).clientsControllerDeActivateClient(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},ClientsApi.prototype.clientsControllerDeleteLongTermGoal=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientsApiFp(this.configuration).clientsControllerDeleteLongTermGoal(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientsApi.prototype.clientsControllerGetPermissionById=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientsApiFp(this.configuration).clientsControllerGetPermissionById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientsApi.prototype.clientsControllerGetPermissions=function(et,ei,ea,eu,ep,ef,em,eg,ey,eC,eS){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientsApiFp(this.configuration).clientsControllerGetPermissions(et,ei,ea,eu,ep,ef,em,eg,ey,eC,eS).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientsApi.prototype.clientsControllerOnBoardClient=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.ClientsApiFp(this.configuration).clientsControllerOnBoardClient(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},ClientsApi.prototype.clientsControllerOnBoardClientSendSns=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.ClientsApiFp(this.configuration).clientsControllerOnBoardClientSendSns(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},ClientsApi.prototype.clientsControllerUpdate=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientsApiFp(this.configuration).clientsControllerUpdate(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientsApi.prototype.clientsControllerUpdateClientLogoForm=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientsApiFp(this.configuration).clientsControllerUpdateClientLogoForm(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientsApi.prototype.clientsControllerUpdateLongTermGoal=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.ClientsApiFp(this.configuration).clientsControllerUpdateLongTermGoal(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},ClientsApi.prototype.clientsControllerUploadImageForm=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.ClientsApiFp(this.configuration).clientsControllerUploadImageForm(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},ClientsApi}(ef.BaseAPI);eo.ClientsApi=em},9188:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.HealthCheckApi=eo.HealthCheckApiFactory=eo.HealthCheckApiFp=eo.HealthCheckApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.HealthCheckApiAxiosParamCreator=function(et){var eo=this;return{healthCheckControllerCheck:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/health-check",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.params)eg.set(ey,ei.params[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})}}},eo.HealthCheckApiFp=function(et){return{healthCheckControllerCheck:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.HealthCheckApiAxiosParamCreator(et).healthCheckControllerCheck(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})}}},eo.HealthCheckApiFactory=function(et,ei,ea){return{healthCheckControllerCheck:function(eu){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.HealthCheckApiFp(et).healthCheckControllerCheck(eu).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function HealthCheckApi(){return null!==et&&et.apply(this,arguments)||this}return ea(HealthCheckApi,et),HealthCheckApi.prototype.healthCheckControllerCheck=function(et){return ed(this,void 0,void 0,function(){var ei=this;return eh(this,function(ea){return[2,eo.HealthCheckApiFp(this.configuration).healthCheckControllerCheck(et).then(function(et){return et(ei.axios,ei.basePath)})]})})},HealthCheckApi}(ef.BaseAPI);eo.HealthCheckApi=em},34185:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.PermissionsApi=eo.PermissionsApiFactory=eo.PermissionsApiFp=eo.PermissionsApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.PermissionsApiAxiosParamCreator=function(et){var eo=this;return{permissionsControllerActivatePermission:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionId","Required parameter permissionId was null or undefined when calling permissionsControllerActivatePermission.");if(eo="/permissions/{permissionId}/activate".replace("{permissionId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerActivatePermissionCategory:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionCategoryId","Required parameter permissionCategoryId was null or undefined when calling permissionsControllerActivatePermissionCategory.");if(eo="/permission-categories/{permissionCategoryId}/activate".replace("{permissionCategoryId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerArchivePermission:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionId","Required parameter permissionId was null or undefined when calling permissionsControllerArchivePermission.");if(eo="/permissions/{permissionId}/archive".replace("{permissionId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerArchivePermissionCategory:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionCategoryId","Required parameter permissionCategoryId was null or undefined when calling permissionsControllerArchivePermissionCategory.");if(eo="/permission-categories/{permissionCategoryId}/archive".replace("{permissionCategoryId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerDeactivatePermission:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionId","Required parameter permissionId was null or undefined when calling permissionsControllerDeactivatePermission.");if(eo="/permissions/{permissionId}/deactivate".replace("{permissionId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerDeactivatePermissionCategory:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionCategoryId","Required parameter permissionCategoryId was null or undefined when calling permissionsControllerDeactivatePermissionCategory.");if(eo="/permission-categories/{permissionCategoryId}/deactivate".replace("{permissionCategoryId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerGetPermissionById:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("criteria","Required parameter criteria was null or undefined when calling permissionsControllerGetPermissionById.");if(null==ea)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling permissionsControllerGetPermissionById.");if(eo="/permissions/{criteria}".replace("{criteria}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in void 0!==ea&&(eC.mode=ea),ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},permissionsControllerGetPermissions:function(ei,ea,ep,ef,em,eg,ey,eC,eS){return void 0===eS&&(eS={}),ed(eo,void 0,void 0,function(){var eo,ed,e_,ew,eA,eI,eR,eT,eE,eP,ek;return eh(this,function(eh){switch(eh.label){case 0:if(eo="/permissions",ed=new URL(eo,"https://example.com"),et&&(e_=et.baseOptions),ew=eu(eu({method:"GET"},e_),eS),eA={},eI={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eT=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eT=eh.sent(),eh.label=4;case 4:eR=eT,eA.Authorization="Bearer "+eR,eh.label=5;case 5:for(eP in void 0!==ei&&(eI.sortDir=ei),void 0!==ea&&(eI.sortBy=ea),void 0!==ep&&(eI.take=ep),void 0!==ef&&(eI.skip=ef),void 0!==em&&(eI.searchTerm=em),eg&&(eI.include=eg),void 0!==ey&&(eI.categoryCode=ey),void 0!==eC&&(eI.active=eC),eE=new URLSearchParams(ed.search),eI)eE.set(eP,eI[eP]);for(eP in eS.params)eE.set(eP,eS.params[eP]);return ed.search=new URLSearchParams(eE).toString(),ek=e_&&e_.headers?e_.headers:{},ew.headers=eu(eu(eu({},eA),ek),eS.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ew}]}})})},permissionsControllerGetPermissionsByCategory:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("code","Required parameter code was null or undefined when calling permissionsControllerGetPermissionsByCategory.");if(eo="/permission-categories/{code}/permissions".replace("{code}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerListPermissionCategories:function(ei,ea,ep,ef){return void 0===ef&&(ef={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(eo="/permission-categories",ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ef),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ei&&(eC.include=ei),void 0!==ea&&(eC.searchTerm=ea),void 0!==ep&&(eC.active=ep),ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ef.params)ew.set(eA,ef.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ef.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},permissionsControllerRestorePermission:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionId","Required parameter permissionId was null or undefined when calling permissionsControllerRestorePermission.");if(eo="/permissions/{permissionId}/restore".replace("{permissionId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},permissionsControllerRestorePermissionCategory:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionCategoryId","Required parameter permissionCategoryId was null or undefined when calling permissionsControllerRestorePermissionCategory.");if(eo="/permission-categories/{permissionCategoryId}/restore".replace("{permissionCategoryId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})}}},eo.PermissionsApiFp=function(et){return{permissionsControllerActivatePermission:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerActivatePermission(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerActivatePermissionCategory:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerActivatePermissionCategory(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerArchivePermission:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerArchivePermission(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerArchivePermissionCategory:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerArchivePermissionCategory(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerDeactivatePermission:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerDeactivatePermission(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerDeactivatePermissionCategory:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerDeactivatePermissionCategory(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerGetPermissionById:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerGetPermissionById(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerGetPermissions:function(ei,ea,em,eg,ey,eC,eS,e_,ew){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerGetPermissions(ei,ea,em,eg,ey,eC,eS,e_,ew)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerGetPermissionsByCategory:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerGetPermissionsByCategory(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerListPermissionCategories:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerListPermissionCategories(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerRestorePermission:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerRestorePermission(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},permissionsControllerRestorePermissionCategory:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.PermissionsApiAxiosParamCreator(et).permissionsControllerRestorePermissionCategory(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.PermissionsApiFactory=function(et,ei,ea){return{permissionsControllerActivatePermission:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerActivatePermission(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerActivatePermissionCategory:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerActivatePermissionCategory(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerArchivePermission:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerArchivePermission(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerArchivePermissionCategory:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerArchivePermissionCategory(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerDeactivatePermission:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerDeactivatePermission(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerDeactivatePermissionCategory:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerDeactivatePermissionCategory(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerGetPermissionById:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerGetPermissionById(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},permissionsControllerGetPermissions:function(eu,ep,ef,em,eg,ey,eC,eS,e_){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerGetPermissions(eu,ep,ef,em,eg,ey,eC,eS,e_).then(function(et){return et(ea,ei)})]})})},permissionsControllerGetPermissionsByCategory:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerGetPermissionsByCategory(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerListPermissionCategories:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerListPermissionCategories(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})},permissionsControllerRestorePermission:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerRestorePermission(eu,ep).then(function(et){return et(ea,ei)})]})})},permissionsControllerRestorePermissionCategory:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.PermissionsApiFp(et).permissionsControllerRestorePermissionCategory(eu,ep).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function PermissionsApi(){return null!==et&&et.apply(this,arguments)||this}return ea(PermissionsApi,et),PermissionsApi.prototype.permissionsControllerActivatePermission=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerActivatePermission(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerActivatePermissionCategory=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerActivatePermissionCategory(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerArchivePermission=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerArchivePermission(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerArchivePermissionCategory=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerArchivePermissionCategory(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerDeactivatePermission=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerDeactivatePermission(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerDeactivatePermissionCategory=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerDeactivatePermissionCategory(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerGetPermissionById=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerGetPermissionById(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},PermissionsApi.prototype.permissionsControllerGetPermissions=function(et,ei,ea,eu,ep,ef,em,eg,ey){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerGetPermissions(et,ei,ea,eu,ep,ef,em,eg,ey).then(function(et){return et(ed.axios,ed.basePath)})]})})},PermissionsApi.prototype.permissionsControllerGetPermissionsByCategory=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerGetPermissionsByCategory(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerListPermissionCategories=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerListPermissionCategories(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},PermissionsApi.prototype.permissionsControllerRestorePermission=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerRestorePermission(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi.prototype.permissionsControllerRestorePermissionCategory=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.PermissionsApiFp(this.configuration).permissionsControllerRestorePermissionCategory(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},PermissionsApi}(ef.BaseAPI);eo.PermissionsApi=em},23731:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.SeedDataApi=eo.SeedDataApiFactory=eo.SeedDataApiFp=eo.SeedDataApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.SeedDataApiAxiosParamCreator=function(et){var eo=this;return{seedDataControllerListAccountingRoleTypes:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,ef,em,eg,ey,eC,eS;return eh(this,function(eh){for(eC in eo="/type-data/accounting-role-types",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),ef=eu(eu({method:"GET"},ep),ea),em={},eg={},void 0!==ei&&(eg.searchTerm=ei),ey=new URLSearchParams(ed.search),eg)ey.set(eC,eg[eC]);for(eC in ea.params)ey.set(eC,ea.params[eC]);return ed.search=new URLSearchParams(ey).toString(),eS=ep&&ep.headers?ep.headers:{},ef.headers=eu(eu(eu({},em),eS),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ef}]})})},seedDataControllerListAdvisorTypes:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,ef,em,eg,ey,eC,eS;return eh(this,function(eh){for(eC in eo="/type-data/advisor-types",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),ef=eu(eu({method:"GET"},ep),ea),em={},eg={},void 0!==ei&&(eg.searchTerm=ei),ey=new URLSearchParams(ed.search),eg)ey.set(eC,eg[eC]);for(eC in ea.params)ey.set(eC,ea.params[eC]);return ed.search=new URLSearchParams(ey).toString(),eS=ep&&ep.headers?ep.headers:{},ef.headers=eu(eu(eu({},em),eS),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ef}]})})},seedDataControllerListEntityTypes:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,ef,em,eg,ey,eC,eS;return eh(this,function(eh){for(eC in eo="/type-data/entity-types",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),ef=eu(eu({method:"GET"},ep),ea),em={},eg={},void 0!==ei&&(eg.searchTerm=ei),ey=new URLSearchParams(ed.search),eg)ey.set(eC,eg[eC]);for(eC in ea.params)ey.set(eC,ea.params[eC]);return ed.search=new URLSearchParams(ey).toString(),eS=ep&&ep.headers?ep.headers:{},ef.headers=eu(eu(eu({},em),eS),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ef}]})})},seedDataControllerListExecutiveRoleTypes:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,ef,em,eg,ey,eC,eS;return eh(this,function(eh){for(eC in eo="/type-data/executive-role-types",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),ef=eu(eu({method:"GET"},ep),ea),em={},eg={},void 0!==ei&&(eg.searchTerm=ei),ey=new URLSearchParams(ed.search),eg)ey.set(eC,eg[eC]);for(eC in ea.params)ey.set(eC,ea.params[eC]);return ed.search=new URLSearchParams(ey).toString(),eS=ep&&ep.headers?ep.headers:{},ef.headers=eu(eu(eu({},em),eS),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ef}]})})},seedDataControllerListRoleGroups:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/role-groups",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.params)eg.set(ey,ei.params[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},seedDataControllerListStates:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,ef,em,eg,ey,eC,eS,e_;return eh(this,function(eh){for(eS in eo="/type-data/states",ed=new URL(eo,"https://example.com"),et&&(ef=et.baseOptions),em=eu(eu({method:"GET"},ef),ep),eg={},ey={},void 0!==ei&&(ey.database=ei),void 0!==ea&&(ey.searchTerm=ea),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ep.params)eC.set(eS,ep.params[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ef&&ef.headers?ef.headers:{},em.headers=eu(eu(eu({},eg),e_),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},seedDataControllerListTaxTypes:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,ef,em,eg,ey,eC,eS;return eh(this,function(eh){for(eC in eo="/type-data/tax-types",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),ef=eu(eu({method:"GET"},ep),ea),em={},eg={},void 0!==ei&&(eg.searchTerm=ei),ey=new URLSearchParams(ed.search),eg)ey.set(eC,eg[eC]);for(eC in ea.params)ey.set(eC,ea.params[eC]);return ed.search=new URLSearchParams(ey).toString(),eS=ep&&ep.headers?ep.headers:{},ef.headers=eu(eu(eu({},em),eS),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ef}]})})},seedDataControllerListTimezones:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/time-zones",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.params)eg.set(ey,ei.params[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})},seedDataControllerListUserRoles:function(ei){return void 0===ei&&(ei={}),ed(eo,void 0,void 0,function(){var eo,ea,ed,ep,ef,em,eg,ey,eC;return eh(this,function(eh){for(ey in eo="/type-data/user-personas",ea=new URL(eo,"https://example.com"),et&&(ed=et.baseOptions),ep=eu(eu({method:"GET"},ed),ei),ef={},em={},eg=new URLSearchParams(ea.search),em)eg.set(ey,em[ey]);for(ey in ei.params)eg.set(ey,ei.params[ey]);return ea.search=new URLSearchParams(eg).toString(),eC=ed&&ed.headers?ed.headers:{},ep.headers=eu(eu(eu({},ef),eC),ei.headers),[2,{url:ea.pathname+ea.search+ea.hash,options:ep}]})})}}},eo.SeedDataApiFp=function(et){return{seedDataControllerListAccountingRoleTypes:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListAccountingRoleTypes(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerListAdvisorTypes:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListAdvisorTypes(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerListEntityTypes:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListEntityTypes(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerListExecutiveRoleTypes:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListExecutiveRoleTypes(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerListRoleGroups:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListRoleGroups(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},seedDataControllerListStates:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListStates(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerListTaxTypes:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListTaxTypes(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},seedDataControllerListTimezones:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListTimezones(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})},seedDataControllerListUserRoles:function(ei){return ed(this,void 0,void 0,function(){var ea;return eh(this,function(ed){switch(ed.label){case 0:return[4,eo.SeedDataApiAxiosParamCreator(et).seedDataControllerListUserRoles(ei)];case 1:return ea=ed.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ea.options),{url:eo+ea.url});return et.request(ei)}]}})})}}},eo.SeedDataApiFactory=function(et,ei,ea){return{seedDataControllerListAccountingRoleTypes:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListAccountingRoleTypes(eu,ep).then(function(et){return et(ea,ei)})]})})},seedDataControllerListAdvisorTypes:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListAdvisorTypes(eu,ep).then(function(et){return et(ea,ei)})]})})},seedDataControllerListEntityTypes:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListEntityTypes(eu,ep).then(function(et){return et(ea,ei)})]})})},seedDataControllerListExecutiveRoleTypes:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListExecutiveRoleTypes(eu,ep).then(function(et){return et(ea,ei)})]})})},seedDataControllerListRoleGroups:function(eu){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListRoleGroups(eu).then(function(et){return et(ea,ei)})]})})},seedDataControllerListStates:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListStates(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},seedDataControllerListTaxTypes:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListTaxTypes(eu,ep).then(function(et){return et(ea,ei)})]})})},seedDataControllerListTimezones:function(eu){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListTimezones(eu).then(function(et){return et(ea,ei)})]})})},seedDataControllerListUserRoles:function(eu){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.SeedDataApiFp(et).seedDataControllerListUserRoles(eu).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function SeedDataApi(){return null!==et&&et.apply(this,arguments)||this}return ea(SeedDataApi,et),SeedDataApi.prototype.seedDataControllerListAccountingRoleTypes=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListAccountingRoleTypes(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListAdvisorTypes=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListAdvisorTypes(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListEntityTypes=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListEntityTypes(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListExecutiveRoleTypes=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListExecutiveRoleTypes(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListRoleGroups=function(et){return ed(this,void 0,void 0,function(){var ei=this;return eh(this,function(ea){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListRoleGroups(et).then(function(et){return et(ei.axios,ei.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListStates=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListStates(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListTaxTypes=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListTaxTypes(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListTimezones=function(et){return ed(this,void 0,void 0,function(){var ei=this;return eh(this,function(ea){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListTimezones(et).then(function(et){return et(ei.axios,ei.basePath)})]})})},SeedDataApi.prototype.seedDataControllerListUserRoles=function(et){return ed(this,void 0,void 0,function(){var ei=this;return eh(this,function(ea){return[2,eo.SeedDataApiFp(this.configuration).seedDataControllerListUserRoles(et).then(function(et){return et(ei.axios,ei.basePath)})]})})},SeedDataApi}(ef.BaseAPI);eo.SeedDataApi=em},84710:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}(),eu=this&&this.__assign||function(){return(eu=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},ed=this&&this.__awaiter||function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},eh=this&&this.__generator||function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}};Object.defineProperty(eo,"__esModule",{value:!0}),eo.UsersApi=eo.UsersApiFactory=eo.UsersApiFp=eo.UsersApiAxiosParamCreator=void 0;var ep=ei(97218),ef=ei(35305);eo.UsersApiAxiosParamCreator=function(et){var eo=this;return{usersControllerActivateUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerActivateUser.");if(eo="/users/{userId}/activate".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerArchiveClientUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerArchiveClientUser.");if(eo="/users/{userId}/archive".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerAssignIndividualPermission:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling usersControllerAssignIndividualPermission.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerAssignIndividualPermission.");if(eo="/users/{userId}/assign-permissions".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},usersControllerAssignPermissionByPersona:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling usersControllerAssignPermissionByPersona.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerAssignPermissionByPersona.");if(eo="/users/{userId}/assign-permissions-by-persona".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},usersControllerCancelInvitation:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerCancelInvitation.");if(eo="/users/{userId}/cancel-invite".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerConfirmRegistration:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling usersControllerConfirmRegistration.");for(eS in eo="/users/confirm-registration",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},et&&(et.username||et.password)&&(em.auth={username:et.username,password:et.password}),eg["Content-Type"]="application/json",eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.params)eC.set(eS,ea.params[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),ew="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=ew?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},usersControllerCreateGlobalUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling usersControllerCreateGlobalUser.");if(eo="/global-users",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in eg["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),eI="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerCreateUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling usersControllerCreateUser.");if(eo="/users",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in eg["Content-Type"]="application/json",e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),eI="string"!=typeof ei||"application/json"===em.headers["Content-Type"],em.data=eI?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerDeActivateUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerDeActivateUser.");if(eo="/users/{userId}/deactivate".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerDeleteUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerDeleteUser.");if(eo="/users/{userId}".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"DELETE"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerFindUser:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("criteria","Required parameter criteria was null or undefined when calling usersControllerFindUser.");if(null==ea)throw new ef.RequiredError("mode","Required parameter mode was null or undefined when calling usersControllerFindUser.");for(ew in eo="/users/find",ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},et&&(et.username||et.password)&&(ey.auth={username:et.username,password:et.password}),void 0!==ei&&(eS.criteria=ei),void 0!==ea&&(eS.mode=ea),void 0!==ep&&(eS.tenantId=ep),e_=new URLSearchParams(ed.search),eS)e_.set(ew,eS[ew]);for(ew in em.params)e_.set(ew,em.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eA),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]})})},usersControllerGetSlugByEmail:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("email","Required parameter email was null or undefined when calling usersControllerGetSlugByEmail.");for(eS in eo="/users/user-agency-details",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},void 0!==ei&&(ey.email=ei),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.params)eC.set(eS,ea.params[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},usersControllerGetUserByCriteria:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerGetUserByCriteria.");if(eo="/users/{userId}/details".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"GET"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ea&&(eC.include=ea),ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},usersControllerGetUsers:function(ei,ea,ep,em,eg,ey,eC,eS,e_,ew,eA,eI,eR){return void 0===eR&&(eR={}),ed(eo,void 0,void 0,function(){var eo,ed,eT,eE,eP,ek,eO,eM,eD,eU,eL;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("agencyId","Required parameter agencyId was null or undefined when calling usersControllerGetUsers.");if(eo="/users",ed=new URL(eo,"https://example.com"),et&&(eT=et.baseOptions),eE=eu(eu({method:"GET"},eT),eR),eP={},ek={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eM=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eM=eh.sent(),eh.label=4;case 4:eO=eM,eP.Authorization="Bearer "+eO,eh.label=5;case 5:for(eU in void 0!==ea&&(ek.roleGroupId=ea),void 0!==ei&&(ek.agencyId=ei),ep&&(ek.include=ep),void 0!==em&&(ek.userRole=em),void 0!==eg&&(ek.sortDir=eg),void 0!==ey&&(ek.sortBy=ey),void 0!==eC&&(ek.take=eC),void 0!==eS&&(ek.skip=eS),void 0!==e_&&(ek.searchTerm=e_),void 0!==ew&&(ek.clientId=ew),void 0!==eA&&(ek.archive=eA),void 0!==eI&&(ek.active=eI),eD=new URLSearchParams(ed.search),ek)eD.set(eU,ek[eU]);for(eU in eR.params)eD.set(eU,eR.params[eU]);return ed.search=new URLSearchParams(eD).toString(),eL=eT&&eT.headers?eT.headers:{},eE.headers=eu(eu(eu({},eP),eL),eR.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eE}]}})})},usersControllerLockUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerLockUser.");if(eo="/users/{userId}/lock".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerRejectInvitation:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("code","Required parameter code was null or undefined when calling usersControllerRejectInvitation.");for(eS in eo="/users/{code}/reject".replace("{code}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.params)eC.set(eS,ea.params[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},usersControllerResendInvitation:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerResendInvitation.");if(eo="/users/{userId}/resend-invite".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in void 0!==ea&&(eC.isIrisInvitation=ea),ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},usersControllerRestoreClientUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerRestoreClientUser.");if(eo="/users/{userId}/restore".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerUnLockUser:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_,ew,eA;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerUnLockUser.");if(eo="/users/{userId}/unlock".replace("{userId}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"POST"},ep),ea),eg={},ey={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return eS=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:eS=eh.sent(),eh.label=4;case 4:eC=eS,eg.Authorization="Bearer "+eC,eh.label=5;case 5:for(ew in e_=new URLSearchParams(ed.search),ey)e_.set(ew,ey[ew]);for(ew in ea.params)e_.set(ew,ea.params[ew]);return ed.search=new URLSearchParams(e_).toString(),eA=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),eA),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]}})})},usersControllerUpdate:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling usersControllerUpdate.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerUpdate.");if(eo="/users/{userId}".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},usersControllerUpdateGlobalUser:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("body","Required parameter body was null or undefined when calling usersControllerUpdateGlobalUser.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerUpdateGlobalUser.");if(eo="/global-users/{userId}".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"PATCH"},em),ep),ey={},eC={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return e_=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:e_=eh.sent(),eh.label=4;case 4:eS=e_,ey.Authorization="Bearer "+eS,eh.label=5;case 5:for(eA in ey["Content-Type"]="application/json",ew=new URLSearchParams(ed.search),eC)ew.set(eA,eC[eA]);for(eA in ep.params)ew.set(eA,ep.params[eA]);return ed.search=new URLSearchParams(ew).toString(),eI=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eI),ep.headers),eR="string"!=typeof ei||"application/json"===eg.headers["Content-Type"],eg.data=eR?JSON.stringify(void 0!==ei?ei:{}):ei||"",[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},usersControllerUpdateUserProfilePicForm:function(ei,ea,ep){return void 0===ep&&(ep={}),ed(eo,void 0,void 0,function(){var eo,ed,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("file","Required parameter file was null or undefined when calling usersControllerUpdateUserProfilePicForm.");if(null==ea)throw new ef.RequiredError("userId","Required parameter userId was null or undefined when calling usersControllerUpdateUserProfilePicForm.");if(eo="/users/{userId}/profile-pic".replace("{userId}",encodeURIComponent(String(ea))),ed=new URL(eo,"https://example.com"),et&&(em=et.baseOptions),eg=eu(eu({method:"POST"},em),ep),ey={},eC={},eS=new FormData,!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,ey.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in void 0!==ei&&eS.append("file",ei),ey["Content-Type"]="multipart/form-data",eA=new URLSearchParams(ed.search),eC)eA.set(eI,eC[eI]);for(eI in ep.params)eA.set(eI,ep.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=em&&em.headers?em.headers:{},eg.headers=eu(eu(eu({},ey),eR),ep.headers),eg.data=eS,[2,{url:ed.pathname+ed.search+ed.hash,options:eg}]}})})},usersControllerValidateInvitation:function(ei,ea){return void 0===ea&&(ea={}),ed(eo,void 0,void 0,function(){var eo,ed,ep,em,eg,ey,eC,eS,e_;return eh(this,function(eh){if(null==ei)throw new ef.RequiredError("inviteCode","Required parameter inviteCode was null or undefined when calling usersControllerValidateInvitation.");for(eS in eo="/invitations/validate",ed=new URL(eo,"https://example.com"),et&&(ep=et.baseOptions),em=eu(eu({method:"GET"},ep),ea),eg={},ey={},void 0!==ei&&(ey.inviteCode=ei),eC=new URLSearchParams(ed.search),ey)eC.set(eS,ey[eS]);for(eS in ea.params)eC.set(eS,ea.params[eS]);return ed.search=new URLSearchParams(eC).toString(),e_=ep&&ep.headers?ep.headers:{},em.headers=eu(eu(eu({},eg),e_),ea.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:em}]})})},usersControllerViewUsersByPermissions:function(ei,ea,ep,em){return void 0===em&&(em={}),ed(eo,void 0,void 0,function(){var eo,ed,eg,ey,eC,eS,e_,ew,eA,eI,eR;return eh(this,function(eh){switch(eh.label){case 0:if(null==ei)throw new ef.RequiredError("permissionCode","Required parameter permissionCode was null or undefined when calling usersControllerViewUsersByPermissions.");if(eo="/permissions/{permissionCode}/users".replace("{permissionCode}",encodeURIComponent(String(ei))),ed=new URL(eo,"https://example.com"),et&&(eg=et.baseOptions),ey=eu(eu({method:"GET"},eg),em),eC={},eS={},!(et&&et.accessToken))return[3,5];if("function"!=typeof et.accessToken)return[3,2];return[4,et.accessToken()];case 1:return ew=eh.sent(),[3,4];case 2:return[4,et.accessToken];case 3:ew=eh.sent(),eh.label=4;case 4:e_=ew,eC.Authorization="Bearer "+e_,eh.label=5;case 5:for(eI in void 0!==ea&&(eS.take=ea),void 0!==ep&&(eS.skip=ep),eA=new URLSearchParams(ed.search),eS)eA.set(eI,eS[eI]);for(eI in em.params)eA.set(eI,em.params[eI]);return ed.search=new URLSearchParams(eA).toString(),eR=eg&&eg.headers?eg.headers:{},ey.headers=eu(eu(eu({},eC),eR),em.headers),[2,{url:ed.pathname+ed.search+ed.hash,options:ey}]}})})}}},eo.UsersApiFp=function(et){return{usersControllerActivateUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerActivateUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerArchiveClientUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerArchiveClientUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerAssignIndividualPermission:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerAssignIndividualPermission(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerAssignPermissionByPersona:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerAssignPermissionByPersona(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerCancelInvitation:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerCancelInvitation(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerConfirmRegistration:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerConfirmRegistration(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerCreateGlobalUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerCreateGlobalUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerCreateUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerCreateUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerDeActivateUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerDeActivateUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerDeleteUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerDeleteUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerFindUser:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerFindUser(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerGetSlugByEmail:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerGetSlugByEmail(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerGetUserByCriteria:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerGetUserByCriteria(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerGetUsers:function(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerGetUsers(ei,ea,em,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerLockUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerLockUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerRejectInvitation:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerRejectInvitation(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerResendInvitation:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerResendInvitation(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerRestoreClientUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerRestoreClientUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerUnLockUser:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerUnLockUser(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerUpdate:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerUpdate(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerUpdateGlobalUser:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerUpdateGlobalUser(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerUpdateUserProfilePicForm:function(ei,ea,em){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerUpdateUserProfilePicForm(ei,ea,em)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerValidateInvitation:function(ei,ea){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerValidateInvitation(ei,ea)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})},usersControllerViewUsersByPermissions:function(ei,ea,em,eg){return ed(this,void 0,void 0,function(){var ed;return eh(this,function(eh){switch(eh.label){case 0:return[4,eo.UsersApiAxiosParamCreator(et).usersControllerViewUsersByPermissions(ei,ea,em,eg)];case 1:return ed=eh.sent(),[2,function(et,eo){void 0===et&&(et=ep.default),void 0===eo&&(eo=ef.BASE_PATH);var ei=eu(eu({},ed.options),{url:eo+ed.url});return et.request(ei)}]}})})}}},eo.UsersApiFactory=function(et,ei,ea){return{usersControllerActivateUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerActivateUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerArchiveClientUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerArchiveClientUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerAssignIndividualPermission:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerAssignIndividualPermission(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},usersControllerAssignPermissionByPersona:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerAssignPermissionByPersona(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},usersControllerCancelInvitation:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerCancelInvitation(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerConfirmRegistration:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerConfirmRegistration(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerCreateGlobalUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerCreateGlobalUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerCreateUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerCreateUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerDeActivateUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerDeActivateUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerDeleteUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerDeleteUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerFindUser:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerFindUser(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})},usersControllerGetSlugByEmail:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerGetSlugByEmail(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerGetUserByCriteria:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerGetUserByCriteria(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},usersControllerGetUsers:function(eu,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI,eR){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerGetUsers(eu,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI,eR).then(function(et){return et(ea,ei)})]})})},usersControllerLockUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerLockUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerRejectInvitation:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerRejectInvitation(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerResendInvitation:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerResendInvitation(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},usersControllerRestoreClientUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerRestoreClientUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerUnLockUser:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerUnLockUser(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerUpdate:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerUpdate(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},usersControllerUpdateGlobalUser:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerUpdateGlobalUser(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},usersControllerUpdateUserProfilePicForm:function(eu,ep,ef){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerUpdateUserProfilePicForm(eu,ep,ef).then(function(et){return et(ea,ei)})]})})},usersControllerValidateInvitation:function(eu,ep){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerValidateInvitation(eu,ep).then(function(et){return et(ea,ei)})]})})},usersControllerViewUsersByPermissions:function(eu,ep,ef,em){return ed(this,void 0,void 0,function(){return eh(this,function(ed){return[2,eo.UsersApiFp(et).usersControllerViewUsersByPermissions(eu,ep,ef,em).then(function(et){return et(ea,ei)})]})})}}};var em=function(et){function UsersApi(){return null!==et&&et.apply(this,arguments)||this}return ea(UsersApi,et),UsersApi.prototype.usersControllerActivateUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerActivateUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerArchiveClientUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerArchiveClientUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerAssignIndividualPermission=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.UsersApiFp(this.configuration).usersControllerAssignIndividualPermission(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},UsersApi.prototype.usersControllerAssignPermissionByPersona=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.UsersApiFp(this.configuration).usersControllerAssignPermissionByPersona(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},UsersApi.prototype.usersControllerCancelInvitation=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerCancelInvitation(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerConfirmRegistration=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerConfirmRegistration(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerCreateGlobalUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerCreateGlobalUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerCreateUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerCreateUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerDeActivateUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerDeActivateUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerDeleteUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerDeleteUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerFindUser=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.UsersApiFp(this.configuration).usersControllerFindUser(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},UsersApi.prototype.usersControllerGetSlugByEmail=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerGetSlugByEmail(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerGetUserByCriteria=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.UsersApiFp(this.configuration).usersControllerGetUserByCriteria(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},UsersApi.prototype.usersControllerGetUsers=function(et,ei,ea,eu,ep,ef,em,eg,ey,eC,eS,e_,ew){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.UsersApiFp(this.configuration).usersControllerGetUsers(et,ei,ea,eu,ep,ef,em,eg,ey,eC,eS,e_,ew).then(function(et){return et(ed.axios,ed.basePath)})]})})},UsersApi.prototype.usersControllerLockUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerLockUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerRejectInvitation=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerRejectInvitation(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerResendInvitation=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.UsersApiFp(this.configuration).usersControllerResendInvitation(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},UsersApi.prototype.usersControllerRestoreClientUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerRestoreClientUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerUnLockUser=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerUnLockUser(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerUpdate=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.UsersApiFp(this.configuration).usersControllerUpdate(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},UsersApi.prototype.usersControllerUpdateGlobalUser=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.UsersApiFp(this.configuration).usersControllerUpdateGlobalUser(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},UsersApi.prototype.usersControllerUpdateUserProfilePicForm=function(et,ei,ea){return ed(this,void 0,void 0,function(){var eu=this;return eh(this,function(ed){return[2,eo.UsersApiFp(this.configuration).usersControllerUpdateUserProfilePicForm(et,ei,ea).then(function(et){return et(eu.axios,eu.basePath)})]})})},UsersApi.prototype.usersControllerValidateInvitation=function(et,ei){return ed(this,void 0,void 0,function(){var ea=this;return eh(this,function(eu){return[2,eo.UsersApiFp(this.configuration).usersControllerValidateInvitation(et,ei).then(function(et){return et(ea.axios,ea.basePath)})]})})},UsersApi.prototype.usersControllerViewUsersByPermissions=function(et,ei,ea,eu){return ed(this,void 0,void 0,function(){var ed=this;return eh(this,function(eh){return[2,eo.UsersApiFp(this.configuration).usersControllerViewUsersByPermissions(et,ei,ea,eu).then(function(et){return et(ed.axios,ed.basePath)})]})})},UsersApi}(ef.BaseAPI);eo.UsersApi=em},35305:function(et,eo,ei){"use strict";var ea=this&&this.__extends||function(){var extendStatics=function(et,eo){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(et,eo){et.__proto__=eo}||function(et,eo){for(var ei in eo)eo.hasOwnProperty(ei)&&(et[ei]=eo[ei])})(et,eo)};return function(et,eo){function __(){this.constructor=et}extendStatics(et,eo),et.prototype=null===eo?Object.create(eo):(__.prototype=eo.prototype,new __)}}();Object.defineProperty(eo,"__esModule",{value:!0}),eo.RequiredError=eo.BaseAPI=eo.COLLECTION_FORMATS=eo.BASE_PATH=void 0;var eu=ei(97218);eo.BASE_PATH="/".replace(/\/+$/,""),eo.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"	",pipes:"|"};var ed=function(){return function(et,ei,ea){void 0===ei&&(ei=eo.BASE_PATH),void 0===ea&&(ea=eu.default),this.basePath=ei,this.axios=ea,et&&(this.configuration=et,this.basePath=et.basePath||this.basePath)}}();eo.BaseAPI=ed;var eh=function(et){function RequiredError(eo,ei){var ea=et.call(this,ei)||this;return ea.field=eo,ea.name="RequiredError",ea}return ea(RequiredError,et),RequiredError}(Error);eo.RequiredError=eh},78634:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.Configuration=void 0;var ei=function(){return function(et){void 0===et&&(et={}),this.apiKey=et.apiKey,this.username=et.username,this.password=et.password,this.accessToken=et.accessToken,this.basePath=et.basePath,this.baseOptions=et.baseOptions}}();eo.Configuration=ei},47719:function(et,eo,ei){"use strict";var ea=this&&this.__createBinding||(Object.create?function(et,eo,ei,ea){void 0===ea&&(ea=ei),Object.defineProperty(et,ea,{enumerable:!0,get:function(){return eo[ei]}})}:function(et,eo,ei,ea){void 0===ea&&(ea=ei),et[ea]=eo[ei]}),eu=this&&this.__exportStar||function(et,eo){for(var ei in et)"default"===ei||eo.hasOwnProperty(ei)||ea(eo,et,ei)};Object.defineProperty(eo,"__esModule",{value:!0}),eu(ei(82973),eo),eu(ei(78634),eo),eu(ei(38694),eo)},1489:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},64841:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},90031:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},58103:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},8954:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},22153:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},47274:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},14865:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},32645:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},38989:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},87192:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},70102:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},58640:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},24019:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},32486:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},6428:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},88527:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},9734:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},88249:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},61596:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},40988:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},49345:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},73368:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},61709:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},99611:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},43546:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},84310:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},53785:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},85587:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},61440:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},4395:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},80774:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},75720:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},7936:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},27743:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},90855:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},41876:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},26984:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},58379:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},4448:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},38733:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},91536:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},12166:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},85643:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},38694:function(et,eo,ei){"use strict";var ea=this&&this.__createBinding||(Object.create?function(et,eo,ei,ea){void 0===ea&&(ea=ei),Object.defineProperty(et,ea,{enumerable:!0,get:function(){return eo[ei]}})}:function(et,eo,ei,ea){void 0===ea&&(ea=ei),et[ea]=eo[ei]}),eu=this&&this.__exportStar||function(et,eo){for(var ei in et)"default"===ei||eo.hasOwnProperty(ei)||ea(eo,et,ei)};Object.defineProperty(eo,"__esModule",{value:!0}),eu(ei(1489),eo),eu(ei(64841),eo),eu(ei(90031),eo),eu(ei(58103),eo),eu(ei(8954),eo),eu(ei(22153),eo),eu(ei(47274),eo),eu(ei(14865),eo),eu(ei(32645),eo),eu(ei(38989),eo),eu(ei(87192),eo),eu(ei(70102),eo),eu(ei(58640),eo),eu(ei(24019),eo),eu(ei(32486),eo),eu(ei(6428),eo),eu(ei(88527),eo),eu(ei(9734),eo),eu(ei(88249),eo),eu(ei(61596),eo),eu(ei(40988),eo),eu(ei(49345),eo),eu(ei(73368),eo),eu(ei(61709),eo),eu(ei(99611),eo),eu(ei(43546),eo),eu(ei(84310),eo),eu(ei(53785),eo),eu(ei(85587),eo),eu(ei(61440),eo),eu(ei(4395),eo),eu(ei(7936),eo),eu(ei(80774),eo),eu(ei(75720),eo),eu(ei(27743),eo),eu(ei(90855),eo),eu(ei(41876),eo),eu(ei(26984),eo),eu(ei(58379),eo),eu(ei(4448),eo),eu(ei(38733),eo),eu(ei(12166),eo),eu(ei(91536),eo),eu(ei(85643),eo),eu(ei(10748),eo),eu(ei(82029),eo),eu(ei(81800),eo),eu(ei(66809),eo),eu(ei(45814),eo),eu(ei(59294),eo),eu(ei(33631),eo),eu(ei(69969),eo),eu(ei(1102),eo),eu(ei(80270),eo),eu(ei(15281),eo),eu(ei(63047),eo),eu(ei(83942),eo),eu(ei(13802),eo),eu(ei(48858),eo),eu(ei(57219),eo),eu(ei(80667),eo),eu(ei(23685),eo),eu(ei(95326),eo),eu(ei(90192),eo),eu(ei(67639),eo),eu(ei(51106),eo),eu(ei(89337),eo),eu(ei(51015),eo),eu(ei(22362),eo),eu(ei(50405),eo),eu(ei(71841),eo),eu(ei(25594),eo),eu(ei(67241),eo),eu(ei(69538),eo),eu(ei(9732),eo),eu(ei(59154),eo),eu(ei(37029),eo),eu(ei(70347),eo),eu(ei(76909),eo),eu(ei(97071),eo),eu(ei(39025),eo),eu(ei(84975),eo),eu(ei(97754),eo)},10748:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},82029:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},81800:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},66809:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},45814:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},59294:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},33631:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},69969:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},1102:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},80270:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},15281:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},63047:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},83942:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},48858:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},13802:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},57219:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},80667:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},23685:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},95326:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},90192:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},67639:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},51106:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},89337:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},51015:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},22362:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},50405:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},71841:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},25594:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},67241:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},69538:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},9732:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},59154:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},37029:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},70347:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},76909:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},97071:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},39025:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},84975:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},97754:function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},79742:function(et,eo){"use strict";eo.byteLength=byteLength,eo.toByteArray=toByteArray,eo.fromByteArray=fromByteArray;for(var ei=[],ea=[],eu="undefined"!=typeof Uint8Array?Uint8Array:Array,ed="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eh=0,ep=ed.length;eh<ep;++eh)ei[eh]=ed[eh],ea[ed.charCodeAt(eh)]=eh;function getLens(et){var eo=et.length;if(eo%4>0)throw Error("Invalid string. Length must be a multiple of 4");var ei=et.indexOf("=");-1===ei&&(ei=eo);var ea=ei===eo?0:4-ei%4;return[ei,ea]}function byteLength(et){var eo=getLens(et),ei=eo[0],ea=eo[1];return(ei+ea)*3/4-ea}function _byteLength(et,eo,ei){return(eo+ei)*3/4-ei}function toByteArray(et){var eo,ei,ed=getLens(et),eh=ed[0],ep=ed[1],ef=new eu(_byteLength(et,eh,ep)),em=0,eg=ep>0?eh-4:eh;for(ei=0;ei<eg;ei+=4)eo=ea[et.charCodeAt(ei)]<<18|ea[et.charCodeAt(ei+1)]<<12|ea[et.charCodeAt(ei+2)]<<6|ea[et.charCodeAt(ei+3)],ef[em++]=eo>>16&255,ef[em++]=eo>>8&255,ef[em++]=255&eo;return 2===ep&&(eo=ea[et.charCodeAt(ei)]<<2|ea[et.charCodeAt(ei+1)]>>4,ef[em++]=255&eo),1===ep&&(eo=ea[et.charCodeAt(ei)]<<10|ea[et.charCodeAt(ei+1)]<<4|ea[et.charCodeAt(ei+2)]>>2,ef[em++]=eo>>8&255,ef[em++]=255&eo),ef}function tripletToBase64(et){return ei[et>>18&63]+ei[et>>12&63]+ei[et>>6&63]+ei[63&et]}function encodeChunk(et,eo,ei){for(var ea=[],eu=eo;eu<ei;eu+=3)ea.push(tripletToBase64((et[eu]<<16&16711680)+(et[eu+1]<<8&65280)+(255&et[eu+2])));return ea.join("")}function fromByteArray(et){for(var eo,ea=et.length,eu=ea%3,ed=[],eh=16383,ep=0,ef=ea-eu;ep<ef;ep+=eh)ed.push(encodeChunk(et,ep,ep+eh>ef?ef:ep+eh));return 1===eu?ed.push(ei[(eo=et[ea-1])>>2]+ei[eo<<4&63]+"=="):2===eu&&ed.push(ei[(eo=(et[ea-2]<<8)+et[ea-1])>>10]+ei[eo>>4&63]+ei[eo<<2&63]+"="),ed.join("")}ea["-".charCodeAt(0)]=62,ea["_".charCodeAt(0)]=63},48764:function(et,eo,ei){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var ea=ei(79742),eu=ei(80645),ed="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;eo.Buffer=Buffer,eo.SlowBuffer=SlowBuffer,eo.INSPECT_MAX_BYTES=50;var eh=2147483647;function typedArraySupport(){try{var et=new Uint8Array(1),eo={foo:function(){return 42}};return Object.setPrototypeOf(eo,Uint8Array.prototype),Object.setPrototypeOf(et,eo),42===et.foo()}catch(et){return!1}}function createBuffer(et){if(et>eh)throw RangeError('The value "'+et+'" is invalid for option "size"');var eo=new Uint8Array(et);return Object.setPrototypeOf(eo,Buffer.prototype),eo}function Buffer(et,eo,ei){if("number"==typeof et){if("string"==typeof eo)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(et)}return from(et,eo,ei)}function from(et,eo,ei){if("string"==typeof et)return fromString(et,eo);if(ArrayBuffer.isView(et))return fromArrayView(et);if(null==et)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);if(isInstance(et,ArrayBuffer)||et&&isInstance(et.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(et,SharedArrayBuffer)||et&&isInstance(et.buffer,SharedArrayBuffer)))return fromArrayBuffer(et,eo,ei);if("number"==typeof et)throw TypeError('The "value" argument must not be of type number. Received type number');var ea=et.valueOf&&et.valueOf();if(null!=ea&&ea!==et)return Buffer.from(ea,eo,ei);var eu=fromObject(et);if(eu)return eu;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof et[Symbol.toPrimitive])return Buffer.from(et[Symbol.toPrimitive]("string"),eo,ei);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et)}function assertSize(et){if("number"!=typeof et)throw TypeError('"size" argument must be of type number');if(et<0)throw RangeError('The value "'+et+'" is invalid for option "size"')}function alloc(et,eo,ei){return(assertSize(et),et<=0)?createBuffer(et):void 0!==eo?"string"==typeof ei?createBuffer(et).fill(eo,ei):createBuffer(et).fill(eo):createBuffer(et)}function allocUnsafe(et){return assertSize(et),createBuffer(et<0?0:0|checked(et))}function fromString(et,eo){if(("string"!=typeof eo||""===eo)&&(eo="utf8"),!Buffer.isEncoding(eo))throw TypeError("Unknown encoding: "+eo);var ei=0|byteLength(et,eo),ea=createBuffer(ei),eu=ea.write(et,eo);return eu!==ei&&(ea=ea.slice(0,eu)),ea}function fromArrayLike(et){for(var eo=et.length<0?0:0|checked(et.length),ei=createBuffer(eo),ea=0;ea<eo;ea+=1)ei[ea]=255&et[ea];return ei}function fromArrayView(et){if(isInstance(et,Uint8Array)){var eo=new Uint8Array(et);return fromArrayBuffer(eo.buffer,eo.byteOffset,eo.byteLength)}return fromArrayLike(et)}function fromArrayBuffer(et,eo,ei){var ea;if(eo<0||et.byteLength<eo)throw RangeError('"offset" is outside of buffer bounds');if(et.byteLength<eo+(ei||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(ea=void 0===eo&&void 0===ei?new Uint8Array(et):void 0===ei?new Uint8Array(et,eo):new Uint8Array(et,eo,ei),Buffer.prototype),ea}function fromObject(et){if(Buffer.isBuffer(et)){var eo=0|checked(et.length),ei=createBuffer(eo);return 0===ei.length||et.copy(ei,0,0,eo),ei}return void 0!==et.length?"number"!=typeof et.length||numberIsNaN(et.length)?createBuffer(0):fromArrayLike(et):"Buffer"===et.type&&Array.isArray(et.data)?fromArrayLike(et.data):void 0}function checked(et){if(et>=eh)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eh.toString(16)+" bytes");return 0|et}function SlowBuffer(et){return+et!=et&&(et=0),Buffer.alloc(+et)}function byteLength(et,eo){if(Buffer.isBuffer(et))return et.length;if(ArrayBuffer.isView(et)||isInstance(et,ArrayBuffer))return et.byteLength;if("string"!=typeof et)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof et);var ei=et.length,ea=arguments.length>2&&!0===arguments[2];if(!ea&&0===ei)return 0;for(var eu=!1;;)switch(eo){case"ascii":case"latin1":case"binary":return ei;case"utf8":case"utf-8":return utf8ToBytes(et).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ei;case"hex":return ei>>>1;case"base64":return base64ToBytes(et).length;default:if(eu)return ea?-1:utf8ToBytes(et).length;eo=(""+eo).toLowerCase(),eu=!0}}function slowToString(et,eo,ei){var ea=!1;if((void 0===eo||eo<0)&&(eo=0),eo>this.length||((void 0===ei||ei>this.length)&&(ei=this.length),ei<=0||(ei>>>=0)<=(eo>>>=0)))return"";for(et||(et="utf8");;)switch(et){case"hex":return hexSlice(this,eo,ei);case"utf8":case"utf-8":return utf8Slice(this,eo,ei);case"ascii":return asciiSlice(this,eo,ei);case"latin1":case"binary":return latin1Slice(this,eo,ei);case"base64":return base64Slice(this,eo,ei);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,eo,ei);default:if(ea)throw TypeError("Unknown encoding: "+et);et=(et+"").toLowerCase(),ea=!0}}function swap(et,eo,ei){var ea=et[eo];et[eo]=et[ei],et[ei]=ea}function bidirectionalIndexOf(et,eo,ei,ea,eu){if(0===et.length)return -1;if("string"==typeof ei?(ea=ei,ei=0):ei>2147483647?ei=2147483647:ei<-2147483648&&(ei=-2147483648),numberIsNaN(ei=+ei)&&(ei=eu?0:et.length-1),ei<0&&(ei=et.length+ei),ei>=et.length){if(eu)return -1;ei=et.length-1}else if(ei<0){if(!eu)return -1;ei=0}if("string"==typeof eo&&(eo=Buffer.from(eo,ea)),Buffer.isBuffer(eo))return 0===eo.length?-1:arrayIndexOf(et,eo,ei,ea,eu);if("number"==typeof eo)return(eo&=255,"function"==typeof Uint8Array.prototype.indexOf)?eu?Uint8Array.prototype.indexOf.call(et,eo,ei):Uint8Array.prototype.lastIndexOf.call(et,eo,ei):arrayIndexOf(et,[eo],ei,ea,eu);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(et,eo,ei,ea,eu){var ed,eh=1,ep=et.length,ef=eo.length;if(void 0!==ea&&("ucs2"===(ea=String(ea).toLowerCase())||"ucs-2"===ea||"utf16le"===ea||"utf-16le"===ea)){if(et.length<2||eo.length<2)return -1;eh=2,ep/=2,ef/=2,ei/=2}function read(et,eo){return 1===eh?et[eo]:et.readUInt16BE(eo*eh)}if(eu){var em=-1;for(ed=ei;ed<ep;ed++)if(read(et,ed)===read(eo,-1===em?0:ed-em)){if(-1===em&&(em=ed),ed-em+1===ef)return em*eh}else -1!==em&&(ed-=ed-em),em=-1}else for(ei+ef>ep&&(ei=ep-ef),ed=ei;ed>=0;ed--){for(var eg=!0,ey=0;ey<ef;ey++)if(read(et,ed+ey)!==read(eo,ey)){eg=!1;break}if(eg)return ed}return -1}function hexWrite(et,eo,ei,ea){ei=Number(ei)||0;var eu=et.length-ei;ea?(ea=Number(ea))>eu&&(ea=eu):ea=eu;var ed=eo.length;ea>ed/2&&(ea=ed/2);for(var eh=0;eh<ea;++eh){var ep=parseInt(eo.substr(2*eh,2),16);if(numberIsNaN(ep))break;et[ei+eh]=ep}return eh}function utf8Write(et,eo,ei,ea){return blitBuffer(utf8ToBytes(eo,et.length-ei),et,ei,ea)}function asciiWrite(et,eo,ei,ea){return blitBuffer(asciiToBytes(eo),et,ei,ea)}function base64Write(et,eo,ei,ea){return blitBuffer(base64ToBytes(eo),et,ei,ea)}function ucs2Write(et,eo,ei,ea){return blitBuffer(utf16leToBytes(eo,et.length-ei),et,ei,ea)}function base64Slice(et,eo,ei){return 0===eo&&ei===et.length?ea.fromByteArray(et):ea.fromByteArray(et.slice(eo,ei))}function utf8Slice(et,eo,ei){ei=Math.min(et.length,ei);for(var ea=[],eu=eo;eu<ei;){var ed,eh,ep,ef,em=et[eu],eg=null,ey=em>239?4:em>223?3:em>191?2:1;if(eu+ey<=ei)switch(ey){case 1:em<128&&(eg=em);break;case 2:(192&(ed=et[eu+1]))==128&&(ef=(31&em)<<6|63&ed)>127&&(eg=ef);break;case 3:ed=et[eu+1],eh=et[eu+2],(192&ed)==128&&(192&eh)==128&&(ef=(15&em)<<12|(63&ed)<<6|63&eh)>2047&&(ef<55296||ef>57343)&&(eg=ef);break;case 4:ed=et[eu+1],eh=et[eu+2],ep=et[eu+3],(192&ed)==128&&(192&eh)==128&&(192&ep)==128&&(ef=(15&em)<<18|(63&ed)<<12|(63&eh)<<6|63&ep)>65535&&ef<1114112&&(eg=ef)}null===eg?(eg=65533,ey=1):eg>65535&&(eg-=65536,ea.push(eg>>>10&1023|55296),eg=56320|1023&eg),ea.push(eg),eu+=ey}return decodeCodePointsArray(ea)}eo.kMaxLength=eh,Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(et,eo,ei){return from(et,eo,ei)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(et,eo,ei){return alloc(et,eo,ei)},Buffer.allocUnsafe=function(et){return allocUnsafe(et)},Buffer.allocUnsafeSlow=function(et){return allocUnsafe(et)},Buffer.isBuffer=function(et){return null!=et&&!0===et._isBuffer&&et!==Buffer.prototype},Buffer.compare=function(et,eo){if(isInstance(et,Uint8Array)&&(et=Buffer.from(et,et.offset,et.byteLength)),isInstance(eo,Uint8Array)&&(eo=Buffer.from(eo,eo.offset,eo.byteLength)),!Buffer.isBuffer(et)||!Buffer.isBuffer(eo))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(et===eo)return 0;for(var ei=et.length,ea=eo.length,eu=0,ed=Math.min(ei,ea);eu<ed;++eu)if(et[eu]!==eo[eu]){ei=et[eu],ea=eo[eu];break}return ei<ea?-1:ea<ei?1:0},Buffer.isEncoding=function(et){switch(String(et).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(et,eo){if(!Array.isArray(et))throw TypeError('"list" argument must be an Array of Buffers');if(0===et.length)return Buffer.alloc(0);if(void 0===eo)for(ei=0,eo=0;ei<et.length;++ei)eo+=et[ei].length;var ei,ea=Buffer.allocUnsafe(eo),eu=0;for(ei=0;ei<et.length;++ei){var ed=et[ei];if(isInstance(ed,Uint8Array))eu+ed.length>ea.length?Buffer.from(ed).copy(ea,eu):Uint8Array.prototype.set.call(ea,ed,eu);else if(Buffer.isBuffer(ed))ed.copy(ea,eu);else throw TypeError('"list" argument must be an Array of Buffers');eu+=ed.length}return ea},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var et=this.length;if(et%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var eo=0;eo<et;eo+=2)swap(this,eo,eo+1);return this},Buffer.prototype.swap32=function(){var et=this.length;if(et%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var eo=0;eo<et;eo+=4)swap(this,eo,eo+3),swap(this,eo+1,eo+2);return this},Buffer.prototype.swap64=function(){var et=this.length;if(et%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var eo=0;eo<et;eo+=8)swap(this,eo,eo+7),swap(this,eo+1,eo+6),swap(this,eo+2,eo+5),swap(this,eo+3,eo+4);return this},Buffer.prototype.toString=function(){var et=this.length;return 0===et?"":0==arguments.length?utf8Slice(this,0,et):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(et){if(!Buffer.isBuffer(et))throw TypeError("Argument must be a Buffer");return this===et||0===Buffer.compare(this,et)},Buffer.prototype.inspect=function(){var et="",ei=eo.INSPECT_MAX_BYTES;return et=this.toString("hex",0,ei).replace(/(.{2})/g,"$1 ").trim(),this.length>ei&&(et+=" ... "),"<Buffer "+et+">"},ed&&(Buffer.prototype[ed]=Buffer.prototype.inspect),Buffer.prototype.compare=function(et,eo,ei,ea,eu){if(isInstance(et,Uint8Array)&&(et=Buffer.from(et,et.offset,et.byteLength)),!Buffer.isBuffer(et))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof et);if(void 0===eo&&(eo=0),void 0===ei&&(ei=et?et.length:0),void 0===ea&&(ea=0),void 0===eu&&(eu=this.length),eo<0||ei>et.length||ea<0||eu>this.length)throw RangeError("out of range index");if(ea>=eu&&eo>=ei)return 0;if(ea>=eu)return -1;if(eo>=ei)return 1;if(eo>>>=0,ei>>>=0,ea>>>=0,eu>>>=0,this===et)return 0;for(var ed=eu-ea,eh=ei-eo,ep=Math.min(ed,eh),ef=this.slice(ea,eu),em=et.slice(eo,ei),eg=0;eg<ep;++eg)if(ef[eg]!==em[eg]){ed=ef[eg],eh=em[eg];break}return ed<eh?-1:eh<ed?1:0},Buffer.prototype.includes=function(et,eo,ei){return -1!==this.indexOf(et,eo,ei)},Buffer.prototype.indexOf=function(et,eo,ei){return bidirectionalIndexOf(this,et,eo,ei,!0)},Buffer.prototype.lastIndexOf=function(et,eo,ei){return bidirectionalIndexOf(this,et,eo,ei,!1)},Buffer.prototype.write=function(et,eo,ei,ea){if(void 0===eo)ea="utf8",ei=this.length,eo=0;else if(void 0===ei&&"string"==typeof eo)ea=eo,ei=this.length,eo=0;else if(isFinite(eo))eo>>>=0,isFinite(ei)?(ei>>>=0,void 0===ea&&(ea="utf8")):(ea=ei,ei=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var eu=this.length-eo;if((void 0===ei||ei>eu)&&(ei=eu),et.length>0&&(ei<0||eo<0)||eo>this.length)throw RangeError("Attempt to write outside buffer bounds");ea||(ea="utf8");for(var ed=!1;;)switch(ea){case"hex":return hexWrite(this,et,eo,ei);case"utf8":case"utf-8":return utf8Write(this,et,eo,ei);case"ascii":case"latin1":case"binary":return asciiWrite(this,et,eo,ei);case"base64":return base64Write(this,et,eo,ei);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,et,eo,ei);default:if(ed)throw TypeError("Unknown encoding: "+ea);ea=(""+ea).toLowerCase(),ed=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ep=4096;function decodeCodePointsArray(et){var eo=et.length;if(eo<=ep)return String.fromCharCode.apply(String,et);for(var ei="",ea=0;ea<eo;)ei+=String.fromCharCode.apply(String,et.slice(ea,ea+=ep));return ei}function asciiSlice(et,eo,ei){var ea="";ei=Math.min(et.length,ei);for(var eu=eo;eu<ei;++eu)ea+=String.fromCharCode(127&et[eu]);return ea}function latin1Slice(et,eo,ei){var ea="";ei=Math.min(et.length,ei);for(var eu=eo;eu<ei;++eu)ea+=String.fromCharCode(et[eu]);return ea}function hexSlice(et,eo,ei){var ea=et.length;(!eo||eo<0)&&(eo=0),(!ei||ei<0||ei>ea)&&(ei=ea);for(var eu="",ed=eo;ed<ei;++ed)eu+=em[et[ed]];return eu}function utf16leSlice(et,eo,ei){for(var ea=et.slice(eo,ei),eu="",ed=0;ed<ea.length-1;ed+=2)eu+=String.fromCharCode(ea[ed]+256*ea[ed+1]);return eu}function checkOffset(et,eo,ei){if(et%1!=0||et<0)throw RangeError("offset is not uint");if(et+eo>ei)throw RangeError("Trying to access beyond buffer length")}function checkInt(et,eo,ei,ea,eu,ed){if(!Buffer.isBuffer(et))throw TypeError('"buffer" argument must be a Buffer instance');if(eo>eu||eo<ed)throw RangeError('"value" argument is out of bounds');if(ei+ea>et.length)throw RangeError("Index out of range")}function checkIEEE754(et,eo,ei,ea,eu,ed){if(ei+ea>et.length||ei<0)throw RangeError("Index out of range")}function writeFloat(et,eo,ei,ea,ed){return eo=+eo,ei>>>=0,ed||checkIEEE754(et,eo,ei,4,34028234663852886e22,-34028234663852886e22),eu.write(et,eo,ei,ea,23,4),ei+4}function writeDouble(et,eo,ei,ea,ed){return eo=+eo,ei>>>=0,ed||checkIEEE754(et,eo,ei,8,17976931348623157e292,-17976931348623157e292),eu.write(et,eo,ei,ea,52,8),ei+8}Buffer.prototype.slice=function(et,eo){var ei=this.length;et=~~et,eo=void 0===eo?ei:~~eo,et<0?(et+=ei)<0&&(et=0):et>ei&&(et=ei),eo<0?(eo+=ei)<0&&(eo=0):eo>ei&&(eo=ei),eo<et&&(eo=et);var ea=this.subarray(et,eo);return Object.setPrototypeOf(ea,Buffer.prototype),ea},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function(et,eo,ei){et>>>=0,eo>>>=0,ei||checkOffset(et,eo,this.length);for(var ea=this[et],eu=1,ed=0;++ed<eo&&(eu*=256);)ea+=this[et+ed]*eu;return ea},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function(et,eo,ei){et>>>=0,eo>>>=0,ei||checkOffset(et,eo,this.length);for(var ea=this[et+--eo],eu=1;eo>0&&(eu*=256);)ea+=this[et+--eo]*eu;return ea},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(et,eo){return et>>>=0,eo||checkOffset(et,1,this.length),this[et]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(et,eo){return et>>>=0,eo||checkOffset(et,2,this.length),this[et]|this[et+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(et,eo){return et>>>=0,eo||checkOffset(et,2,this.length),this[et]<<8|this[et+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(et,eo){return et>>>=0,eo||checkOffset(et,4,this.length),(this[et]|this[et+1]<<8|this[et+2]<<16)+16777216*this[et+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(et,eo){return et>>>=0,eo||checkOffset(et,4,this.length),16777216*this[et]+(this[et+1]<<16|this[et+2]<<8|this[et+3])},Buffer.prototype.readIntLE=function(et,eo,ei){et>>>=0,eo>>>=0,ei||checkOffset(et,eo,this.length);for(var ea=this[et],eu=1,ed=0;++ed<eo&&(eu*=256);)ea+=this[et+ed]*eu;return ea>=(eu*=128)&&(ea-=Math.pow(2,8*eo)),ea},Buffer.prototype.readIntBE=function(et,eo,ei){et>>>=0,eo>>>=0,ei||checkOffset(et,eo,this.length);for(var ea=eo,eu=1,ed=this[et+--ea];ea>0&&(eu*=256);)ed+=this[et+--ea]*eu;return ed>=(eu*=128)&&(ed-=Math.pow(2,8*eo)),ed},Buffer.prototype.readInt8=function(et,eo){return(et>>>=0,eo||checkOffset(et,1,this.length),128&this[et])?-((255-this[et]+1)*1):this[et]},Buffer.prototype.readInt16LE=function(et,eo){et>>>=0,eo||checkOffset(et,2,this.length);var ei=this[et]|this[et+1]<<8;return 32768&ei?4294901760|ei:ei},Buffer.prototype.readInt16BE=function(et,eo){et>>>=0,eo||checkOffset(et,2,this.length);var ei=this[et+1]|this[et]<<8;return 32768&ei?4294901760|ei:ei},Buffer.prototype.readInt32LE=function(et,eo){return et>>>=0,eo||checkOffset(et,4,this.length),this[et]|this[et+1]<<8|this[et+2]<<16|this[et+3]<<24},Buffer.prototype.readInt32BE=function(et,eo){return et>>>=0,eo||checkOffset(et,4,this.length),this[et]<<24|this[et+1]<<16|this[et+2]<<8|this[et+3]},Buffer.prototype.readFloatLE=function(et,eo){return et>>>=0,eo||checkOffset(et,4,this.length),eu.read(this,et,!0,23,4)},Buffer.prototype.readFloatBE=function(et,eo){return et>>>=0,eo||checkOffset(et,4,this.length),eu.read(this,et,!1,23,4)},Buffer.prototype.readDoubleLE=function(et,eo){return et>>>=0,eo||checkOffset(et,8,this.length),eu.read(this,et,!0,52,8)},Buffer.prototype.readDoubleBE=function(et,eo){return et>>>=0,eo||checkOffset(et,8,this.length),eu.read(this,et,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(et,eo,ei,ea){if(et=+et,eo>>>=0,ei>>>=0,!ea){var eu=Math.pow(2,8*ei)-1;checkInt(this,et,eo,ei,eu,0)}var ed=1,eh=0;for(this[eo]=255&et;++eh<ei&&(ed*=256);)this[eo+eh]=et/ed&255;return eo+ei},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function(et,eo,ei,ea){if(et=+et,eo>>>=0,ei>>>=0,!ea){var eu=Math.pow(2,8*ei)-1;checkInt(this,et,eo,ei,eu,0)}var ed=ei-1,eh=1;for(this[eo+ed]=255&et;--ed>=0&&(eh*=256);)this[eo+ed]=et/eh&255;return eo+ei},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,1,255,0),this[eo]=255&et,eo+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,2,65535,0),this[eo]=255&et,this[eo+1]=et>>>8,eo+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,2,65535,0),this[eo]=et>>>8,this[eo+1]=255&et,eo+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,4,4294967295,0),this[eo+3]=et>>>24,this[eo+2]=et>>>16,this[eo+1]=et>>>8,this[eo]=255&et,eo+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,4,4294967295,0),this[eo]=et>>>24,this[eo+1]=et>>>16,this[eo+2]=et>>>8,this[eo+3]=255&et,eo+4},Buffer.prototype.writeIntLE=function(et,eo,ei,ea){if(et=+et,eo>>>=0,!ea){var eu=Math.pow(2,8*ei-1);checkInt(this,et,eo,ei,eu-1,-eu)}var ed=0,eh=1,ep=0;for(this[eo]=255&et;++ed<ei&&(eh*=256);)et<0&&0===ep&&0!==this[eo+ed-1]&&(ep=1),this[eo+ed]=(et/eh>>0)-ep&255;return eo+ei},Buffer.prototype.writeIntBE=function(et,eo,ei,ea){if(et=+et,eo>>>=0,!ea){var eu=Math.pow(2,8*ei-1);checkInt(this,et,eo,ei,eu-1,-eu)}var ed=ei-1,eh=1,ep=0;for(this[eo+ed]=255&et;--ed>=0&&(eh*=256);)et<0&&0===ep&&0!==this[eo+ed+1]&&(ep=1),this[eo+ed]=(et/eh>>0)-ep&255;return eo+ei},Buffer.prototype.writeInt8=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,1,127,-128),et<0&&(et=255+et+1),this[eo]=255&et,eo+1},Buffer.prototype.writeInt16LE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,2,32767,-32768),this[eo]=255&et,this[eo+1]=et>>>8,eo+2},Buffer.prototype.writeInt16BE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,2,32767,-32768),this[eo]=et>>>8,this[eo+1]=255&et,eo+2},Buffer.prototype.writeInt32LE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,4,2147483647,-2147483648),this[eo]=255&et,this[eo+1]=et>>>8,this[eo+2]=et>>>16,this[eo+3]=et>>>24,eo+4},Buffer.prototype.writeInt32BE=function(et,eo,ei){return et=+et,eo>>>=0,ei||checkInt(this,et,eo,4,2147483647,-2147483648),et<0&&(et=4294967295+et+1),this[eo]=et>>>24,this[eo+1]=et>>>16,this[eo+2]=et>>>8,this[eo+3]=255&et,eo+4},Buffer.prototype.writeFloatLE=function(et,eo,ei){return writeFloat(this,et,eo,!0,ei)},Buffer.prototype.writeFloatBE=function(et,eo,ei){return writeFloat(this,et,eo,!1,ei)},Buffer.prototype.writeDoubleLE=function(et,eo,ei){return writeDouble(this,et,eo,!0,ei)},Buffer.prototype.writeDoubleBE=function(et,eo,ei){return writeDouble(this,et,eo,!1,ei)},Buffer.prototype.copy=function(et,eo,ei,ea){if(!Buffer.isBuffer(et))throw TypeError("argument should be a Buffer");if(ei||(ei=0),ea||0===ea||(ea=this.length),eo>=et.length&&(eo=et.length),eo||(eo=0),ea>0&&ea<ei&&(ea=ei),ea===ei||0===et.length||0===this.length)return 0;if(eo<0)throw RangeError("targetStart out of bounds");if(ei<0||ei>=this.length)throw RangeError("Index out of range");if(ea<0)throw RangeError("sourceEnd out of bounds");ea>this.length&&(ea=this.length),et.length-eo<ea-ei&&(ea=et.length-eo+ei);var eu=ea-ei;return this===et&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(eo,ei,ea):Uint8Array.prototype.set.call(et,this.subarray(ei,ea),eo),eu},Buffer.prototype.fill=function(et,eo,ei,ea){if("string"==typeof et){if("string"==typeof eo?(ea=eo,eo=0,ei=this.length):"string"==typeof ei&&(ea=ei,ei=this.length),void 0!==ea&&"string"!=typeof ea)throw TypeError("encoding must be a string");if("string"==typeof ea&&!Buffer.isEncoding(ea))throw TypeError("Unknown encoding: "+ea);if(1===et.length){var eu,ed=et.charCodeAt(0);("utf8"===ea&&ed<128||"latin1"===ea)&&(et=ed)}}else"number"==typeof et?et&=255:"boolean"==typeof et&&(et=Number(et));if(eo<0||this.length<eo||this.length<ei)throw RangeError("Out of range index");if(ei<=eo)return this;if(eo>>>=0,ei=void 0===ei?this.length:ei>>>0,et||(et=0),"number"==typeof et)for(eu=eo;eu<ei;++eu)this[eu]=et;else{var eh=Buffer.isBuffer(et)?et:Buffer.from(et,ea),ep=eh.length;if(0===ep)throw TypeError('The value "'+et+'" is invalid for argument "value"');for(eu=0;eu<ei-eo;++eu)this[eu+eo]=eh[eu%ep]}return this};var ef=/[^+/0-9A-Za-z-_]/g;function base64clean(et){if((et=(et=et.split("=")[0]).trim().replace(ef,"")).length<2)return"";for(;et.length%4!=0;)et+="=";return et}function utf8ToBytes(et,eo){eo=eo||1/0;for(var ei,ea=et.length,eu=null,ed=[],eh=0;eh<ea;++eh){if((ei=et.charCodeAt(eh))>55295&&ei<57344){if(!eu){if(ei>56319||eh+1===ea){(eo-=3)>-1&&ed.push(239,191,189);continue}eu=ei;continue}if(ei<56320){(eo-=3)>-1&&ed.push(239,191,189),eu=ei;continue}ei=(eu-55296<<10|ei-56320)+65536}else eu&&(eo-=3)>-1&&ed.push(239,191,189);if(eu=null,ei<128){if((eo-=1)<0)break;ed.push(ei)}else if(ei<2048){if((eo-=2)<0)break;ed.push(ei>>6|192,63&ei|128)}else if(ei<65536){if((eo-=3)<0)break;ed.push(ei>>12|224,ei>>6&63|128,63&ei|128)}else if(ei<1114112){if((eo-=4)<0)break;ed.push(ei>>18|240,ei>>12&63|128,ei>>6&63|128,63&ei|128)}else throw Error("Invalid code point")}return ed}function asciiToBytes(et){for(var eo=[],ei=0;ei<et.length;++ei)eo.push(255&et.charCodeAt(ei));return eo}function utf16leToBytes(et,eo){for(var ei,ea,eu=[],ed=0;ed<et.length&&!((eo-=2)<0);++ed)ea=(ei=et.charCodeAt(ed))>>8,eu.push(ei%256),eu.push(ea);return eu}function base64ToBytes(et){return ea.toByteArray(base64clean(et))}function blitBuffer(et,eo,ei,ea){for(var eu=0;eu<ea&&!(eu+ei>=eo.length)&&!(eu>=et.length);++eu)eo[eu+ei]=et[eu];return eu}function isInstance(et,eo){return et instanceof eo||null!=et&&null!=et.constructor&&null!=et.constructor.name&&et.constructor.name===eo.name}function numberIsNaN(et){return et!=et}var em=function(){for(var et="0123456789abcdef",eo=Array(256),ei=0;ei<16;++ei)for(var ea=16*ei,eu=0;eu<16;++eu)eo[ea+eu]=et[ei]+et[eu];return eo}()},17187:function(et){"use strict";var eo,ei="object"==typeof Reflect?Reflect:null,ea=ei&&"function"==typeof ei.apply?ei.apply:function(et,eo,ei){return Function.prototype.apply.call(et,eo,ei)};function ProcessEmitWarning(et){console&&console.warn&&console.warn(et)}eo=ei&&"function"==typeof ei.ownKeys?ei.ownKeys:Object.getOwnPropertySymbols?function(et){return Object.getOwnPropertyNames(et).concat(Object.getOwnPropertySymbols(et))}:function(et){return Object.getOwnPropertyNames(et)};var eu=Number.isNaN||function(et){return et!=et};function EventEmitter(){EventEmitter.init.call(this)}et.exports=EventEmitter,et.exports.once=once,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var ed=10;function checkListener(et){if("function"!=typeof et)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof et)}function _getMaxListeners(et){return void 0===et._maxListeners?EventEmitter.defaultMaxListeners:et._maxListeners}function _addListener(et,eo,ei,ea){if(checkListener(ei),void 0===(ed=et._events)?(ed=et._events=Object.create(null),et._eventsCount=0):(void 0!==ed.newListener&&(et.emit("newListener",eo,ei.listener?ei.listener:ei),ed=et._events),eh=ed[eo]),void 0===eh)eh=ed[eo]=ei,++et._eventsCount;else if("function"==typeof eh?eh=ed[eo]=ea?[ei,eh]:[eh,ei]:ea?eh.unshift(ei):eh.push(ei),(eu=_getMaxListeners(et))>0&&eh.length>eu&&!eh.warned){eh.warned=!0;var eu,ed,eh,ep=Error("Possible EventEmitter memory leak detected. "+eh.length+" "+String(eo)+" listeners added. Use emitter.setMaxListeners() to increase limit");ep.name="MaxListenersExceededWarning",ep.emitter=et,ep.type=eo,ep.count=eh.length,ProcessEmitWarning(ep)}return et}function onceWrapper(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,eo,ei){var ea={fired:!1,wrapFn:void 0,target:et,type:eo,listener:ei},eu=onceWrapper.bind(ea);return eu.listener=ei,ea.wrapFn=eu,eu}function _listeners(et,eo,ei){var ea=et._events;if(void 0===ea)return[];var eu=ea[eo];return void 0===eu?[]:"function"==typeof eu?ei?[eu.listener||eu]:[eu]:ei?unwrapListeners(eu):arrayClone(eu,eu.length)}function listenerCount(et){var eo=this._events;if(void 0!==eo){var ei=eo[et];if("function"==typeof ei)return 1;if(void 0!==ei)return ei.length}return 0}function arrayClone(et,eo){for(var ei=Array(eo),ea=0;ea<eo;++ea)ei[ea]=et[ea];return ei}function spliceOne(et,eo){for(;eo+1<et.length;eo++)et[eo]=et[eo+1];et.pop()}function unwrapListeners(et){for(var eo=Array(et.length),ei=0;ei<eo.length;++ei)eo[ei]=et[ei].listener||et[ei];return eo}function once(et,eo){return new Promise(function(ei,ea){function errorListener(ei){et.removeListener(eo,resolver),ea(ei)}function resolver(){"function"==typeof et.removeListener&&et.removeListener("error",errorListener),ei([].slice.call(arguments))}eventTargetAgnosticAddListener(et,eo,resolver,{once:!0}),"error"!==eo&&addErrorHandlerIfEventEmitter(et,errorListener,{once:!0})})}function addErrorHandlerIfEventEmitter(et,eo,ei){"function"==typeof et.on&&eventTargetAgnosticAddListener(et,"error",eo,ei)}function eventTargetAgnosticAddListener(et,eo,ei,ea){if("function"==typeof et.on)ea.once?et.once(eo,ei):et.on(eo,ei);else if("function"==typeof et.addEventListener)et.addEventListener(eo,function wrapListener(eu){ea.once&&et.removeEventListener(eo,wrapListener),ei(eu)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof et)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return ed},set:function(et){if("number"!=typeof et||et<0||eu(et))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+et+".");ed=et}}),EventEmitter.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(et){if("number"!=typeof et||et<0||eu(et))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+et+".");return this._maxListeners=et,this},EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(et){for(var eo=[],ei=1;ei<arguments.length;ei++)eo.push(arguments[ei]);var eu="error"===et,ed=this._events;if(void 0!==ed)eu=eu&&void 0===ed.error;else if(!eu)return!1;if(eu){if(eo.length>0&&(eh=eo[0]),eh instanceof Error)throw eh;var eh,ep=Error("Unhandled error."+(eh?" ("+eh.message+")":""));throw ep.context=eh,ep}var ef=ed[et];if(void 0===ef)return!1;if("function"==typeof ef)ea(ef,this,eo);else for(var em=ef.length,eg=arrayClone(ef,em),ei=0;ei<em;++ei)ea(eg[ei],this,eo);return!0},EventEmitter.prototype.addListener=function(et,eo){return _addListener(this,et,eo,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(et,eo){return _addListener(this,et,eo,!0)},EventEmitter.prototype.once=function(et,eo){return checkListener(eo),this.on(et,_onceWrap(this,et,eo)),this},EventEmitter.prototype.prependOnceListener=function(et,eo){return checkListener(eo),this.prependListener(et,_onceWrap(this,et,eo)),this},EventEmitter.prototype.removeListener=function(et,eo){var ei,ea,eu,ed,eh;if(checkListener(eo),void 0===(ea=this._events)||void 0===(ei=ea[et]))return this;if(ei===eo||ei.listener===eo)0==--this._eventsCount?this._events=Object.create(null):(delete ea[et],ea.removeListener&&this.emit("removeListener",et,ei.listener||eo));else if("function"!=typeof ei){for(eu=-1,ed=ei.length-1;ed>=0;ed--)if(ei[ed]===eo||ei[ed].listener===eo){eh=ei[ed].listener,eu=ed;break}if(eu<0)return this;0===eu?ei.shift():spliceOne(ei,eu),1===ei.length&&(ea[et]=ei[0]),void 0!==ea.removeListener&&this.emit("removeListener",et,eh||eo)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(et){var eo,ei,ea;if(void 0===(ei=this._events))return this;if(void 0===ei.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ei[et]&&(0==--this._eventsCount?this._events=Object.create(null):delete ei[et]),this;if(0==arguments.length){var eu,ed=Object.keys(ei);for(ea=0;ea<ed.length;++ea)"removeListener"!==(eu=ed[ea])&&this.removeAllListeners(eu);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(eo=ei[et]))this.removeListener(et,eo);else if(void 0!==eo)for(ea=eo.length-1;ea>=0;ea--)this.removeListener(et,eo[ea]);return this},EventEmitter.prototype.listeners=function(et){return _listeners(this,et,!0)},EventEmitter.prototype.rawListeners=function(et){return _listeners(this,et,!1)},EventEmitter.listenerCount=function(et,eo){return"function"==typeof et.listenerCount?et.listenerCount(eo):listenerCount.call(et,eo)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?eo(this._events):[]}},11184:function(et,eo){"use strict";var ei,ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(et){return typeof et}:function(et){return et&&"function"==typeof Symbol&&et.constructor===Symbol?"symbol":typeof et};!function(eu,ed){"object"===ea(eo)?et.exports=ed():void 0!==(ei=(function(){return eu.Humanize=ed()}).apply(eo,[]))&&(et.exports=ei)}(this,function(){var et=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],eo={P:0x4000000000000,T:1099511627776,G:1073741824,M:1048576},exists=function(et){return null!=et},isNaN=function(et){return et!=et},isFiniteNumber=function(et){return isFinite(et)&&!isNaN(parseFloat(et))},isArray=function(et){return"[object Array]"===Object.prototype.toString.call(et)},ei={intword:function(et,eo){var ea=arguments.length<=2||void 0===arguments[2]?2:arguments[2];return ei.compactInteger(et,ea)},compactInteger:function(et){var eo=arguments.length<=1||void 0===arguments[1]?0:arguments[1];eo=Math.max(eo,0);var ei=parseInt(et,10),ea=ei<0?"-":"",eu=Math.abs(ei),ed=String(eu),eh=ed.length,ep=[13,10,7,4],ef=["T","B","M","k"];if(eu<1e3)return""+ea+ed;if(eh>ep[0]+3)return ei.toExponential(eo).replace("e+","x10^");for(var em=void 0,eg=0;eg<ep.length;eg++){var ey=ep[eg];if(eh>=ey){em=ey;break}}var eC=eh-em+1,eS=ed.split(""),e_=eS.slice(0,eC),ew=eS.slice(eC,eC+eo+1),eA=e_.join(""),eI=ew.join("");return eI.length<eo&&(eI+=""+Array(eo-eI.length+1).join("0")),0===eo?""+ea+eA+ef[ep.indexOf(em)]:""+ea+Number(eA+"."+eI).toFixed(eo)+ef[ep.indexOf(em)]},intComma:function(et){var eo=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return ei.formatNumber(et,eo)},intcomma:function(){return ei.intComma.apply(ei,arguments)},fileSize:function(et){var ea=arguments.length<=1||void 0===arguments[1]?2:arguments[1];for(var eu in eo)if(eo.hasOwnProperty(eu)){var ed=eo[eu];if(et>=ed)return ei.formatNumber(et/ed,ea,"")+" "+eu+"B"}return et>=1024?ei.formatNumber(et/1024,0)+" KB":ei.formatNumber(et,0)+ei.pluralize(et," byte")},filesize:function(){return ei.fileSize.apply(ei,arguments)},formatNumber:function(et){var eo=arguments.length<=1||void 0===arguments[1]?0:arguments[1],ea=arguments.length<=2||void 0===arguments[2]?",":arguments[2],eu=arguments.length<=3||void 0===arguments[3]?".":arguments[3],firstComma=function(et,eo,ei){return ei?et.substr(0,ei)+eo:""},commas=function(et,eo,ei){return et.substr(ei).replace(/(\d{3})(?=\d)/g,"$1"+eo)},decimals=function(et,eo,ea){return ea?eo+ei.toFixed(Math.abs(et),ea).split(".")[1]:""},ed=ei.normalizePrecision(eo),eh=et<0&&"-"||"",ep=String(parseInt(ei.toFixed(Math.abs(et||0),ed),10)),ef=ep.length>3?ep.length%3:0;return eh+firstComma(ep,ea,ef)+commas(ep,ea,ef)+decimals(et,eu,ed)},toFixed:function(et,eo){var ea=Math.pow(10,eo=exists(eo)?eo:ei.normalizePrecision(eo,0));return(Math.round(et*ea)/ea).toFixed(eo)},normalizePrecision:function(et,eo){return isNaN(et=Math.round(Math.abs(et)))?eo:et},ordinal:function(et){var eo=parseInt(et,10);if(0===eo)return et;if([11,12,13].indexOf(eo%100)>=0)return eo+"th";var ei=void 0;switch(eo%10){case 1:ei="st";break;case 2:ei="nd";break;case 3:ei="rd";break;default:ei="th"}return""+eo+ei},times:function(et){var eo=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(isFiniteNumber(et)&&et>=0){var ei=parseFloat(et),ea=["never","once","twice"];return exists(eo[ei])?String(eo[ei]):exists(ea[ei])&&ea[ei].toString()||ei.toString()+" times"}return null},pluralize:function(et,eo,ei){return exists(et)&&exists(eo)?(ei=exists(ei)?ei:eo+"s",1===parseInt(et,10)?eo:ei):null},truncate:function(et){var eo=arguments.length<=1||void 0===arguments[1]?100:arguments[1],ei=arguments.length<=2||void 0===arguments[2]?"...":arguments[2];return et.length>eo?et.substring(0,eo-ei.length)+ei:et},truncateWords:function(et,eo){for(var ei=et.split(" "),ea="",eu=0;eu<eo;)exists(ei[eu])&&(ea+=ei[eu]+" "),eu++;return ei.length>eo?ea+"...":null},truncatewords:function(){return ei.truncateWords.apply(ei,arguments)},boundedNumber:function(et){var eo=arguments.length<=1||void 0===arguments[1]?100:arguments[1],ei=arguments.length<=2||void 0===arguments[2]?"+":arguments[2],ea=void 0;return isFiniteNumber(et)&&isFiniteNumber(eo)&&et>eo&&(ea=eo+ei),(ea||et).toString()},truncatenumber:function(){return ei.boundedNumber.apply(ei,arguments)},oxford:function(et,eo,ea){var eu=et.length,ed=void 0;if(eu<2)return String(et);if(2===eu)return et.join(" and ");if(exists(eo)&&eu>eo){var eh=eu-eo;ed=eo,ea=exists(ea)?ea:", and "+eh+" "+ei.pluralize(eh,"other")}else ed=-1,ea=", and "+et[eu-1];return et.slice(0,ed).join(", ")+ea},dictionary:function(et){var eo=arguments.length<=1||void 0===arguments[1]?" is ":arguments[1],ei=arguments.length<=2||void 0===arguments[2]?", ":arguments[2],eu="";if(exists(et)&&(void 0===et?"undefined":ea(et))==="object"&&!isArray(et)){var ed=[];for(var eh in et)if(et.hasOwnProperty(eh)){var ep=et[eh];ed.push(""+eh+eo+ep)}return ed.join(ei)}return eu},frequency:function(et,eo){if(!isArray(et))return null;var ea=et.length,eu=ei.times(ea);return 0===ea?eu+" "+eo:eo+" "+eu},pace:function(eo,ea){var eu=arguments.length<=2||void 0===arguments[2]?"time":arguments[2];if(0===eo||0===ea)return"No "+ei.pluralize(0,eu);for(var ed="Approximately",eh=void 0,ep=void 0,ef=eo/ea,em=0;em<et.length;++em){var eg=et[em];if((ep=ef*eg.value)>1){eh=eg.name;break}}eh||(ed="Less than",ep=1,eh=et[et.length-1].name);var ey=Math.round(ep);return eu=ei.pluralize(ey,eu),ed+" "+ey+" "+eu+" per "+eh},nl2br:function(et){var eo=arguments.length<=1||void 0===arguments[1]?"<br/>":arguments[1];return et.replace(/\n/g,eo)},br2nl:function(et){var eo=arguments.length<=1||void 0===arguments[1]?"\r\n":arguments[1];return et.replace(/\<br\s*\/?\>/g,eo)},capitalize:function(et){var eo=!(arguments.length<=1)&&void 0!==arguments[1]&&arguments[1];return""+et.charAt(0).toUpperCase()+(eo?et.slice(1).toLowerCase():et.slice(1))},capitalizeAll:function(et){return et.replace(/(?:^|\s)\S/g,function(et){return et.toUpperCase()})},titleCase:function(et){var eo=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,ea=/\S+[A-Z]+\S*/,eu=/\s+/,ed=/-/,eh=void 0;return(eh=function(et){for(var ep=!(arguments.length<=1)&&void 0!==arguments[1]&&arguments[1],ef=arguments.length<=2||void 0===arguments[2]||arguments[2],em=[],eg=et.split(ep?ed:eu),ey=0;ey<eg.length;++ey){var eC=eg[ey];if(-1!==eC.indexOf("-")){em.push(eh(eC,!0,0===ey||ey===eg.length-1));continue}if(ef&&(0===ey||ey===eg.length-1)){em.push(ea.test(eC)?eC:ei.capitalize(eC));continue}ea.test(eC)?em.push(eC):eo.test(eC)?em.push(eC.toLowerCase()):em.push(ei.capitalize(eC))}return em.join(ep?"-":" ")})(et)},titlecase:function(){return ei.titleCase.apply(ei,arguments)}};return ei})},80645:function(et,eo){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */eo.read=function(et,eo,ei,ea,eu){var ed,eh,ep=8*eu-ea-1,ef=(1<<ep)-1,em=ef>>1,eg=-7,ey=ei?eu-1:0,eC=ei?-1:1,eS=et[eo+ey];for(ey+=eC,ed=eS&(1<<-eg)-1,eS>>=-eg,eg+=ep;eg>0;ed=256*ed+et[eo+ey],ey+=eC,eg-=8);for(eh=ed&(1<<-eg)-1,ed>>=-eg,eg+=ea;eg>0;eh=256*eh+et[eo+ey],ey+=eC,eg-=8);if(0===ed)ed=1-em;else{if(ed===ef)return eh?NaN:(eS?-1:1)*(1/0);eh+=Math.pow(2,ea),ed-=em}return(eS?-1:1)*eh*Math.pow(2,ed-ea)},eo.write=function(et,eo,ei,ea,eu,ed){var eh,ep,ef,em=8*ed-eu-1,eg=(1<<em)-1,ey=eg>>1,eC=23===eu?5960464477539062e-23:0,eS=ea?0:ed-1,e_=ea?1:-1,ew=eo<0||0===eo&&1/eo<0?1:0;for(isNaN(eo=Math.abs(eo))||eo===1/0?(ep=isNaN(eo)?1:0,eh=eg):(eh=Math.floor(Math.log(eo)/Math.LN2),eo*(ef=Math.pow(2,-eh))<1&&(eh--,ef*=2),eh+ey>=1?eo+=eC/ef:eo+=eC*Math.pow(2,1-ey),eo*ef>=2&&(eh++,ef/=2),eh+ey>=eg?(ep=0,eh=eg):eh+ey>=1?(ep=(eo*ef-1)*Math.pow(2,eu),eh+=ey):(ep=eo*Math.pow(2,ey-1)*Math.pow(2,eu),eh=0));eu>=8;et[ei+eS]=255&ep,eS+=e_,ep/=256,eu-=8);for(eh=eh<<eu|ep,em+=eu;em>0;et[ei+eS]=255&eh,eS+=e_,eh/=256,em-=8);et[ei+eS-e_]|=128*ew}},35369:function(et,eo,ei){"use strict";var ea,eu,ed,eh,ep,ef,em,eg,ey,eC,eS="delete",e_=5,ew=32,eA=31,eI={};function MakeRef(){return{value:!1}}function SetRef(et){et&&(et.value=!0)}function OwnerID(){}function ensureSize(et){return void 0===et.size&&(et.size=et.__iterate(returnTrue)),et.size}function wrapIndex(et,eo){if("number"!=typeof eo){var ei=eo>>>0;if(""+ei!==eo||4294967295===ei)return NaN;eo=ei}return eo<0?ensureSize(et)+eo:eo}function returnTrue(){return!0}function wholeSlice(et,eo,ei){return(0===et&&!isNeg(et)||void 0!==ei&&et<=-ei)&&(void 0===eo||void 0!==ei&&eo>=ei)}function resolveBegin(et,eo){return resolveIndex(et,eo,0)}function resolveEnd(et,eo){return resolveIndex(et,eo,eo)}function resolveIndex(et,eo,ei){return void 0===et?ei:isNeg(et)?eo===1/0?eo:0|Math.max(0,eo+et):void 0===eo||eo===et?et:0|Math.min(eo,et)}function isNeg(et){return et<0||0===et&&1/et==-1/0}var eR="@@__IMMUTABLE_ITERABLE__@@";function isCollection(et){return!!(et&&et[eR])}var eT="@@__IMMUTABLE_KEYED__@@";function isKeyed(et){return!!(et&&et[eT])}var eE="@@__IMMUTABLE_INDEXED__@@";function isIndexed(et){return!!(et&&et[eE])}function isAssociative(et){return isKeyed(et)||isIndexed(et)}var Collection=function(et){return isCollection(et)?et:eK(et)},eP=function(et){function KeyedCollection(et){return isKeyed(et)?et:ez(et)}return et&&(KeyedCollection.__proto__=et),KeyedCollection.prototype=Object.create(et&&et.prototype),KeyedCollection.prototype.constructor=KeyedCollection,KeyedCollection}(Collection),ek=function(et){function IndexedCollection(et){return isIndexed(et)?et:eW(et)}return et&&(IndexedCollection.__proto__=et),IndexedCollection.prototype=Object.create(et&&et.prototype),IndexedCollection.prototype.constructor=IndexedCollection,IndexedCollection}(Collection),eO=function(et){function SetCollection(et){return isCollection(et)&&!isAssociative(et)?et:eV(et)}return et&&(SetCollection.__proto__=et),SetCollection.prototype=Object.create(et&&et.prototype),SetCollection.prototype.constructor=SetCollection,SetCollection}(Collection);Collection.Keyed=eP,Collection.Indexed=ek,Collection.Set=eO;var eM="@@__IMMUTABLE_SEQ__@@";function isSeq(et){return!!(et&&et[eM])}var eD="@@__IMMUTABLE_RECORD__@@";function isRecord(et){return!!(et&&et[eD])}function isImmutable(et){return isCollection(et)||isRecord(et)}var eU="@@__IMMUTABLE_ORDERED__@@";function isOrdered(et){return!!(et&&et[eU])}var eL=0,eN=1,eB=2,eF="function"==typeof Symbol&&Symbol.iterator,ej="@@iterator",eG=eF||ej,Iterator=function(et){this.next=et};function iteratorValue(et,eo,ei,ea){var eu=0===et?eo:1===et?ei:[eo,ei];return ea?ea.value=eu:ea={value:eu,done:!1},ea}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(et){return!!Array.isArray(et)||!!getIteratorFn(et)}function isIterator(et){return et&&"function"==typeof et.next}function getIterator(et){var eo=getIteratorFn(et);return eo&&eo.call(et)}function getIteratorFn(et){var eo=et&&(eF&&et[eF]||et[ej]);if("function"==typeof eo)return eo}function isEntriesIterable(et){var eo=getIteratorFn(et);return eo&&eo===et.entries}function isKeysIterable(et){var eo=getIteratorFn(et);return eo&&eo===et.keys}Iterator.prototype.toString=function(){return"[Iterator]"},Iterator.KEYS=eL,Iterator.VALUES=eN,Iterator.ENTRIES=eB,Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()},Iterator.prototype[eG]=function(){return this};var eH=Object.prototype.hasOwnProperty;function isArrayLike(et){return!!Array.isArray(et)||"string"==typeof et||et&&"object"==typeof et&&Number.isInteger(et.length)&&et.length>=0&&(0===et.length?1===Object.keys(et).length:et.hasOwnProperty(et.length-1))}var eK=function(et){function Seq(et){return null==et?emptySequence():isImmutable(et)?et.toSeq():seqFromValue(et)}return et&&(Seq.__proto__=et),Seq.prototype=Object.create(et&&et.prototype),Seq.prototype.constructor=Seq,Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function(et,eo){var ei=this._cache;if(ei){for(var ea=ei.length,eu=0;eu!==ea;){var ed=ei[eo?ea-++eu:eu++];if(!1===et(ed[1],ed[0],this))break}return eu}return this.__iterateUncached(et,eo)},Seq.prototype.__iterator=function(et,eo){var ei=this._cache;if(ei){var ea=ei.length,eu=0;return new Iterator(function(){if(eu===ea)return iteratorDone();var ed=ei[eo?ea-++eu:eu++];return iteratorValue(et,ed[0],ed[1])})}return this.__iteratorUncached(et,eo)},Seq}(Collection),ez=function(et){function KeyedSeq(et){return null==et?emptySequence().toKeyedSeq():isCollection(et)?isKeyed(et)?et.toSeq():et.fromEntrySeq():isRecord(et)?et.toSeq():keyedSeqFromValue(et)}return et&&(KeyedSeq.__proto__=et),KeyedSeq.prototype=Object.create(et&&et.prototype),KeyedSeq.prototype.constructor=KeyedSeq,KeyedSeq.prototype.toKeyedSeq=function(){return this},KeyedSeq}(eK),eW=function(et){function IndexedSeq(et){return null==et?emptySequence():isCollection(et)?isKeyed(et)?et.entrySeq():et.toIndexedSeq():isRecord(et)?et.toSeq().entrySeq():indexedSeqFromValue(et)}return et&&(IndexedSeq.__proto__=et),IndexedSeq.prototype=Object.create(et&&et.prototype),IndexedSeq.prototype.constructor=IndexedSeq,IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq}(eK),eV=function(et){function SetSeq(et){return(isCollection(et)&&!isAssociative(et)?et:eW(et)).toSetSeq()}return et&&(SetSeq.__proto__=et),SetSeq.prototype=Object.create(et&&et.prototype),SetSeq.prototype.constructor=SetSeq,SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},SetSeq}(eK);eK.isSeq=isSeq,eK.Keyed=ez,eK.Set=eV,eK.Indexed=eW,eK.prototype[eM]=!0;var eJ=function(et){function ArraySeq(et){this._array=et,this.size=et.length}return et&&(ArraySeq.__proto__=et),ArraySeq.prototype=Object.create(et&&et.prototype),ArraySeq.prototype.constructor=ArraySeq,ArraySeq.prototype.get=function(et,eo){return this.has(et)?this._array[wrapIndex(this,et)]:eo},ArraySeq.prototype.__iterate=function(et,eo){for(var ei=this._array,ea=ei.length,eu=0;eu!==ea;){var ed=eo?ea-++eu:eu++;if(!1===et(ei[ed],ed,this))break}return eu},ArraySeq.prototype.__iterator=function(et,eo){var ei=this._array,ea=ei.length,eu=0;return new Iterator(function(){if(eu===ea)return iteratorDone();var ed=eo?ea-++eu:eu++;return iteratorValue(et,ed,ei[ed])})},ArraySeq}(eW),eY=function(et){function ObjectSeq(et){var eo=Object.keys(et).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(et):[]);this._object=et,this._keys=eo,this.size=eo.length}return et&&(ObjectSeq.__proto__=et),ObjectSeq.prototype=Object.create(et&&et.prototype),ObjectSeq.prototype.constructor=ObjectSeq,ObjectSeq.prototype.get=function(et,eo){return void 0===eo||this.has(et)?this._object[et]:eo},ObjectSeq.prototype.has=function(et){return eH.call(this._object,et)},ObjectSeq.prototype.__iterate=function(et,eo){for(var ei=this._object,ea=this._keys,eu=ea.length,ed=0;ed!==eu;){var eh=ea[eo?eu-++ed:ed++];if(!1===et(ei[eh],eh,this))break}return ed},ObjectSeq.prototype.__iterator=function(et,eo){var ei=this._object,ea=this._keys,eu=ea.length,ed=0;return new Iterator(function(){if(ed===eu)return iteratorDone();var eh=ea[eo?eu-++ed:ed++];return iteratorValue(et,eh,ei[eh])})},ObjectSeq}(ez);eY.prototype[eU]=!0;var e$=function(et){function CollectionSeq(et){this._collection=et,this.size=et.length||et.size}return et&&(CollectionSeq.__proto__=et),CollectionSeq.prototype=Object.create(et&&et.prototype),CollectionSeq.prototype.constructor=CollectionSeq,CollectionSeq.prototype.__iterateUncached=function(et,eo){if(eo)return this.cacheResult().__iterate(et,eo);var ei,ea=getIterator(this._collection),eu=0;if(isIterator(ea))for(;!(ei=ea.next()).done&&!1!==et(ei.value,eu++,this););return eu},CollectionSeq.prototype.__iteratorUncached=function(et,eo){if(eo)return this.cacheResult().__iterator(et,eo);var ei=getIterator(this._collection);if(!isIterator(ei))return new Iterator(iteratorDone);var ea=0;return new Iterator(function(){var eo=ei.next();return eo.done?eo:iteratorValue(et,ea++,eo.value)})},CollectionSeq}(eW);function emptySequence(){return ea||(ea=new eJ([]))}function keyedSeqFromValue(et){var eo=maybeIndexedSeqFromValue(et);if(eo)return eo.fromEntrySeq();if("object"==typeof et)return new eY(et);throw TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+et)}function indexedSeqFromValue(et){var eo=maybeIndexedSeqFromValue(et);if(eo)return eo;throw TypeError("Expected Array or collection object of values: "+et)}function seqFromValue(et){var eo=maybeIndexedSeqFromValue(et);if(eo)return isEntriesIterable(et)?eo.fromEntrySeq():isKeysIterable(et)?eo.toSetSeq():eo;if("object"==typeof et)return new eY(et);throw TypeError("Expected Array or collection object of values, or keyed object: "+et)}function maybeIndexedSeqFromValue(et){return isArrayLike(et)?new eJ(et):hasIterator(et)?new e$(et):void 0}var eZ="@@__IMMUTABLE_MAP__@@";function isMap(et){return!!(et&&et[eZ])}function isOrderedMap(et){return isMap(et)&&isOrdered(et)}function isValueObject(et){return!!(et&&"function"==typeof et.equals&&"function"==typeof et.hashCode)}function is(et,eo){if(et===eo||et!=et&&eo!=eo)return!0;if(!et||!eo)return!1;if("function"==typeof et.valueOf&&"function"==typeof eo.valueOf){if((et=et.valueOf())===(eo=eo.valueOf())||et!=et&&eo!=eo)return!0;if(!et||!eo)return!1}return!!(isValueObject(et)&&isValueObject(eo)&&et.equals(eo))}var eQ="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(et,eo){var ei=65535&(et|=0),ea=65535&(eo|=0);return ei*ea+((et>>>16)*ea+ei*(eo>>>16)<<16>>>0)|0};function smi(et){return et>>>1&1073741824|3221225471&et}var eX=Object.prototype.valueOf;function hash(et){if(null==et)return hashNullish(et);if("function"==typeof et.hashCode)return smi(et.hashCode(et));var eo=valueOf(et);if(null==eo)return hashNullish(eo);switch(typeof eo){case"boolean":return eo?1108378657:1108378656;case"number":return hashNumber(eo);case"string":return eo.length>e9?cachedHashString(eo):hashString(eo);case"object":case"function":return hashJSObj(eo);case"symbol":return hashSymbol(eo);default:if("function"==typeof eo.toString)return hashString(eo.toString());throw Error("Value type "+typeof eo+" cannot be hashed.")}}function hashNullish(et){return null===et?1108378658:1108378659}function hashNumber(et){if(et!=et||et===1/0)return 0;var eo=0|et;for(eo!==et&&(eo^=4294967295*et);et>4294967295;)et/=4294967295,eo^=et;return smi(eo)}function cachedHashString(et){var eo=ti[et];return void 0===eo&&(eo=hashString(et),tn===tr&&(tn=0,ti={}),tn++,ti[et]=eo),eo}function hashString(et){for(var eo=0,ei=0;ei<et.length;ei++)eo=31*eo+et.charCodeAt(ei)|0;return smi(eo)}function hashSymbol(et){var eo=e5[et];return void 0!==eo||(eo=nextHash(),e5[et]=eo),eo}function hashJSObj(et){var eo;if(e6&&void 0!==(eo=eu.get(et))||void 0!==(eo=et[e7])||!e4&&(void 0!==(eo=et.propertyIsEnumerable&&et.propertyIsEnumerable[e7])||void 0!==(eo=getIENodeHash(et))))return eo;if(eo=nextHash(),e6)eu.set(et,eo);else if(void 0!==e0&&!1===e0(et))throw Error("Non-extensible objects are not allowed as keys.");else if(e4)Object.defineProperty(et,e7,{enumerable:!1,configurable:!1,writable:!1,value:eo});else if(void 0!==et.propertyIsEnumerable&&et.propertyIsEnumerable===et.constructor.prototype.propertyIsEnumerable)et.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},et.propertyIsEnumerable[e7]=eo;else if(void 0!==et.nodeType)et[e7]=eo;else throw Error("Unable to set a non-enumerable property on object.");return eo}var e0=Object.isExtensible,e4=function(){try{return Object.defineProperty({},"@",{}),!0}catch(et){return!1}}();function getIENodeHash(et){if(et&&et.nodeType>0)switch(et.nodeType){case 1:return et.uniqueID;case 9:return et.documentElement&&et.documentElement.uniqueID}}function valueOf(et){return et.valueOf!==eX&&"function"==typeof et.valueOf?et.valueOf(et):et}function nextHash(){var et=++e8;return 1073741824&e8&&(e8=0),et}var e6="function"==typeof WeakMap;e6&&(eu=new WeakMap);var e5=Object.create(null),e8=0,e7="__immutablehash__";"function"==typeof Symbol&&(e7=Symbol(e7));var e9=16,tr=255,tn=0,ti={},ta=function(et){function ToKeyedSequence(et,eo){this._iter=et,this._useKeys=eo,this.size=et.size}return et&&(ToKeyedSequence.__proto__=et),ToKeyedSequence.prototype=Object.create(et&&et.prototype),ToKeyedSequence.prototype.constructor=ToKeyedSequence,ToKeyedSequence.prototype.get=function(et,eo){return this._iter.get(et,eo)},ToKeyedSequence.prototype.has=function(et){return this._iter.has(et)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var et=this,eo=reverseFactory(this,!0);return this._useKeys||(eo.valueSeq=function(){return et._iter.toSeq().reverse()}),eo},ToKeyedSequence.prototype.map=function(et,eo){var ei=this,ea=mapFactory(this,et,eo);return this._useKeys||(ea.valueSeq=function(){return ei._iter.toSeq().map(et,eo)}),ea},ToKeyedSequence.prototype.__iterate=function(et,eo){var ei=this;return this._iter.__iterate(function(eo,ea){return et(eo,ea,ei)},eo)},ToKeyedSequence.prototype.__iterator=function(et,eo){return this._iter.__iterator(et,eo)},ToKeyedSequence}(ez);ta.prototype[eU]=!0;var ts=function(et){function ToIndexedSequence(et){this._iter=et,this.size=et.size}return et&&(ToIndexedSequence.__proto__=et),ToIndexedSequence.prototype=Object.create(et&&et.prototype),ToIndexedSequence.prototype.constructor=ToIndexedSequence,ToIndexedSequence.prototype.includes=function(et){return this._iter.includes(et)},ToIndexedSequence.prototype.__iterate=function(et,eo){var ei=this,ea=0;return eo&&ensureSize(this),this._iter.__iterate(function(eu){return et(eu,eo?ei.size-++ea:ea++,ei)},eo)},ToIndexedSequence.prototype.__iterator=function(et,eo){var ei=this,ea=this._iter.__iterator(eN,eo),eu=0;return eo&&ensureSize(this),new Iterator(function(){var ed=ea.next();return ed.done?ed:iteratorValue(et,eo?ei.size-++eu:eu++,ed.value,ed)})},ToIndexedSequence}(eW),tc=function(et){function ToSetSequence(et){this._iter=et,this.size=et.size}return et&&(ToSetSequence.__proto__=et),ToSetSequence.prototype=Object.create(et&&et.prototype),ToSetSequence.prototype.constructor=ToSetSequence,ToSetSequence.prototype.has=function(et){return this._iter.includes(et)},ToSetSequence.prototype.__iterate=function(et,eo){var ei=this;return this._iter.__iterate(function(eo){return et(eo,eo,ei)},eo)},ToSetSequence.prototype.__iterator=function(et,eo){var ei=this._iter.__iterator(eN,eo);return new Iterator(function(){var eo=ei.next();return eo.done?eo:iteratorValue(et,eo.value,eo.value,eo)})},ToSetSequence}(eV),tu=function(et){function FromEntriesSequence(et){this._iter=et,this.size=et.size}return et&&(FromEntriesSequence.__proto__=et),FromEntriesSequence.prototype=Object.create(et&&et.prototype),FromEntriesSequence.prototype.constructor=FromEntriesSequence,FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function(et,eo){var ei=this;return this._iter.__iterate(function(eo){if(eo){validateEntry(eo);var ea=isCollection(eo);return et(ea?eo.get(1):eo[1],ea?eo.get(0):eo[0],ei)}},eo)},FromEntriesSequence.prototype.__iterator=function(et,eo){var ei=this._iter.__iterator(eN,eo);return new Iterator(function(){for(;;){var eo=ei.next();if(eo.done)return eo;var ea=eo.value;if(ea){validateEntry(ea);var eu=isCollection(ea);return iteratorValue(et,eu?ea.get(0):ea[0],eu?ea.get(1):ea[1],eo)}}})},FromEntriesSequence}(ez);function flipFactory(et){var eo=makeSequence(et);return eo._iter=et,eo.size=et.size,eo.flip=function(){return et},eo.reverse=function(){var eo=et.reverse.apply(this);return eo.flip=function(){return et.reverse()},eo},eo.has=function(eo){return et.includes(eo)},eo.includes=function(eo){return et.has(eo)},eo.cacheResult=cacheResultThrough,eo.__iterateUncached=function(eo,ei){var ea=this;return et.__iterate(function(et,ei){return!1!==eo(ei,et,ea)},ei)},eo.__iteratorUncached=function(eo,ei){if(eo===eB){var ea=et.__iterator(eo,ei);return new Iterator(function(){var et=ea.next();if(!et.done){var eo=et.value[0];et.value[0]=et.value[1],et.value[1]=eo}return et})}return et.__iterator(eo===eN?eL:eN,ei)},eo}function mapFactory(et,eo,ei){var ea=makeSequence(et);return ea.size=et.size,ea.has=function(eo){return et.has(eo)},ea.get=function(ea,eu){var ed=et.get(ea,eI);return ed===eI?eu:eo.call(ei,ed,ea,et)},ea.__iterateUncached=function(ea,eu){var ed=this;return et.__iterate(function(et,eu,eh){return!1!==ea(eo.call(ei,et,eu,eh),eu,ed)},eu)},ea.__iteratorUncached=function(ea,eu){var ed=et.__iterator(eB,eu);return new Iterator(function(){var eu=ed.next();if(eu.done)return eu;var eh=eu.value,ep=eh[0];return iteratorValue(ea,ep,eo.call(ei,eh[1],ep,et),eu)})},ea}function reverseFactory(et,eo){var ei=this,ea=makeSequence(et);return ea._iter=et,ea.size=et.size,ea.reverse=function(){return et},et.flip&&(ea.flip=function(){var eo=flipFactory(et);return eo.reverse=function(){return et.flip()},eo}),ea.get=function(ei,ea){return et.get(eo?ei:-1-ei,ea)},ea.has=function(ei){return et.has(eo?ei:-1-ei)},ea.includes=function(eo){return et.includes(eo)},ea.cacheResult=cacheResultThrough,ea.__iterate=function(ei,ea){var eu=this,ed=0;return ea&&ensureSize(et),et.__iterate(function(et,eh){return ei(et,eo?eh:ea?eu.size-++ed:ed++,eu)},!ea)},ea.__iterator=function(ea,eu){var ed=0;eu&&ensureSize(et);var eh=et.__iterator(eB,!eu);return new Iterator(function(){var et=eh.next();if(et.done)return et;var ep=et.value;return iteratorValue(ea,eo?ep[0]:eu?ei.size-++ed:ed++,ep[1],et)})},ea}function filterFactory(et,eo,ei,ea){var eu=makeSequence(et);return ea&&(eu.has=function(ea){var eu=et.get(ea,eI);return eu!==eI&&!!eo.call(ei,eu,ea,et)},eu.get=function(ea,eu){var ed=et.get(ea,eI);return ed!==eI&&eo.call(ei,ed,ea,et)?ed:eu}),eu.__iterateUncached=function(eu,ed){var eh=this,ep=0;return et.__iterate(function(et,ed,ef){if(eo.call(ei,et,ed,ef))return ep++,eu(et,ea?ed:ep-1,eh)},ed),ep},eu.__iteratorUncached=function(eu,ed){var eh=et.__iterator(eB,ed),ep=0;return new Iterator(function(){for(;;){var ed=eh.next();if(ed.done)return ed;var ef=ed.value,em=ef[0],eg=ef[1];if(eo.call(ei,eg,em,et))return iteratorValue(eu,ea?em:ep++,eg,ed)}})},eu}function countByFactory(et,eo,ei){var ea=tp().asMutable();return et.__iterate(function(eu,ed){ea.update(eo.call(ei,eu,ed,et),0,function(et){return et+1})}),ea.asImmutable()}function groupByFactory(et,eo,ei){var ea=isKeyed(et),eu=(isOrdered(et)?tw():tp()).asMutable();et.__iterate(function(ed,eh){eu.update(eo.call(ei,ed,eh,et),function(et){return(et=et||[]).push(ea?[eh,ed]:ed),et})});var ed=collectionClass(et);return eu.map(function(eo){return reify(et,ed(eo))}).asImmutable()}function sliceFactory(et,eo,ei,ea){var eu,ed=et.size;if(wholeSlice(eo,ei,ed))return et;var eh=resolveBegin(eo,ed),ep=resolveEnd(ei,ed);if(eh!=eh||ep!=ep)return sliceFactory(et.toSeq().cacheResult(),eo,ei,ea);var ef=ep-eh;ef==ef&&(eu=ef<0?0:ef);var em=makeSequence(et);return em.size=0===eu?eu:et.size&&eu||void 0,!ea&&isSeq(et)&&eu>=0&&(em.get=function(eo,ei){return(eo=wrapIndex(this,eo))>=0&&eo<eu?et.get(eo+eh,ei):ei}),em.__iterateUncached=function(eo,ei){var ed=this;if(0===eu)return 0;if(ei)return this.cacheResult().__iterate(eo,ei);var ep=0,ef=!0,em=0;return et.__iterate(function(et,ei){if(!(ef&&(ef=ep++<eh)))return em++,!1!==eo(et,ea?ei:em-1,ed)&&em!==eu}),em},em.__iteratorUncached=function(eo,ei){if(0!==eu&&ei)return this.cacheResult().__iterator(eo,ei);if(0===eu)return new Iterator(iteratorDone);var ed=et.__iterator(eo,ei),ep=0,ef=0;return new Iterator(function(){for(;ep++<eh;)ed.next();if(++ef>eu)return iteratorDone();var et=ed.next();return ea||eo===eN||et.done?et:eo===eL?iteratorValue(eo,ef-1,void 0,et):iteratorValue(eo,ef-1,et.value[1],et)})},em}function takeWhileFactory(et,eo,ei){var ea=makeSequence(et);return ea.__iterateUncached=function(ea,eu){var ed=this;if(eu)return this.cacheResult().__iterate(ea,eu);var eh=0;return et.__iterate(function(et,eu,ep){return eo.call(ei,et,eu,ep)&&++eh&&ea(et,eu,ed)}),eh},ea.__iteratorUncached=function(ea,eu){var ed=this;if(eu)return this.cacheResult().__iterator(ea,eu);var eh=et.__iterator(eB,eu),ep=!0;return new Iterator(function(){if(!ep)return iteratorDone();var et=eh.next();if(et.done)return et;var eu=et.value,ef=eu[0],em=eu[1];return eo.call(ei,em,ef,ed)?ea===eB?et:iteratorValue(ea,ef,em,et):(ep=!1,iteratorDone())})},ea}function skipWhileFactory(et,eo,ei,ea){var eu=makeSequence(et);return eu.__iterateUncached=function(eu,ed){var eh=this;if(ed)return this.cacheResult().__iterate(eu,ed);var ep=!0,ef=0;return et.__iterate(function(et,ed,em){if(!(ep&&(ep=eo.call(ei,et,ed,em))))return ef++,eu(et,ea?ed:ef-1,eh)}),ef},eu.__iteratorUncached=function(eu,ed){var eh=this;if(ed)return this.cacheResult().__iterator(eu,ed);var ep=et.__iterator(eB,ed),ef=!0,em=0;return new Iterator(function(){do{if((et=ep.next()).done){if(ea||eu===eN)return et;if(eu===eL)return iteratorValue(eu,em++,void 0,et);return iteratorValue(eu,em++,et.value[1],et)}var et,ed,eg,ey=et.value;ed=ey[0],eg=ey[1],ef&&(ef=eo.call(ei,eg,ed,eh))}while(ef);return eu===eB?et:iteratorValue(eu,ed,eg,et)})},eu}function concatFactory(et,eo){var ei=isKeyed(et),ea=[et].concat(eo).map(function(et){return isCollection(et)?ei&&(et=eP(et)):et=ei?keyedSeqFromValue(et):indexedSeqFromValue(Array.isArray(et)?et:[et]),et}).filter(function(et){return 0!==et.size});if(0===ea.length)return et;if(1===ea.length){var eu=ea[0];if(eu===et||ei&&isKeyed(eu)||isIndexed(et)&&isIndexed(eu))return eu}var ed=new eJ(ea);return ei?ed=ed.toKeyedSeq():isIndexed(et)||(ed=ed.toSetSeq()),(ed=ed.flatten(!0)).size=ea.reduce(function(et,eo){if(void 0!==et){var ei=eo.size;if(void 0!==ei)return et+ei}},0),ed}function flattenFactory(et,eo,ei){var ea=makeSequence(et);return ea.__iterateUncached=function(eu,ed){if(ed)return this.cacheResult().__iterate(eu,ed);var eh=0,ep=!1;function flatDeep(et,ef){et.__iterate(function(et,ed){return(!eo||ef<eo)&&isCollection(et)?flatDeep(et,ef+1):(eh++,!1===eu(et,ei?ed:eh-1,ea)&&(ep=!0)),!ep},ed)}return flatDeep(et,0),eh},ea.__iteratorUncached=function(ea,eu){if(eu)return this.cacheResult().__iterator(ea,eu);var ed=et.__iterator(ea,eu),eh=[],ep=0;return new Iterator(function(){for(;ed;){var et=ed.next();if(!1!==et.done){ed=eh.pop();continue}var ef=et.value;if(ea===eB&&(ef=ef[1]),!((!eo||eh.length<eo)&&isCollection(ef)))return ei?et:iteratorValue(ea,ep++,ef,et);eh.push(ed),ed=ef.__iterator(ea,eu)}return iteratorDone()})},ea}function flatMapFactory(et,eo,ei){var ea=collectionClass(et);return et.toSeq().map(function(eu,ed){return ea(eo.call(ei,eu,ed,et))}).flatten(!0)}function interposeFactory(et,eo){var ei=makeSequence(et);return ei.size=et.size&&2*et.size-1,ei.__iterateUncached=function(ei,ea){var eu=this,ed=0;return et.__iterate(function(et){return(!ed||!1!==ei(eo,ed++,eu))&&!1!==ei(et,ed++,eu)},ea),ed},ei.__iteratorUncached=function(ei,ea){var eu,ed=et.__iterator(eN,ea),eh=0;return new Iterator(function(){return(!eu||eh%2)&&(eu=ed.next()).done?eu:eh%2?iteratorValue(ei,eh++,eo):iteratorValue(ei,eh++,eu.value,eu)})},ei}function sortFactory(et,eo,ei){eo||(eo=defaultComparator);var ea=isKeyed(et),eu=0,ed=et.toSeq().map(function(eo,ea){return[ea,eo,eu++,ei?ei(eo,ea,et):eo]}).valueSeq().toArray();return ed.sort(function(et,ei){return eo(et[3],ei[3])||et[2]-ei[2]}).forEach(ea?function(et,eo){ed[eo].length=2}:function(et,eo){ed[eo]=et[1]}),ea?ez(ed):isIndexed(et)?eW(ed):eV(ed)}function maxFactory(et,eo,ei){if(eo||(eo=defaultComparator),ei){var ea=et.toSeq().map(function(eo,ea){return[eo,ei(eo,ea,et)]}).reduce(function(et,ei){return maxCompare(eo,et[1],ei[1])?ei:et});return ea&&ea[0]}return et.reduce(function(et,ei){return maxCompare(eo,et,ei)?ei:et})}function maxCompare(et,eo,ei){var ea=et(ei,eo);return 0===ea&&ei!==eo&&(null==ei||ei!=ei)||ea>0}function zipWithFactory(et,eo,ei,ea){var eu=makeSequence(et),ed=new eJ(ei).map(function(et){return et.size});return eu.size=ea?ed.max():ed.min(),eu.__iterate=function(et,eo){for(var ei,ea=this.__iterator(eN,eo),eu=0;!(ei=ea.next()).done&&!1!==et(ei.value,eu++,this););return eu},eu.__iteratorUncached=function(et,eu){var ed=ei.map(function(et){return et=Collection(et),getIterator(eu?et.reverse():et)}),eh=0,ep=!1;return new Iterator(function(){var ei;return(ep||(ei=ed.map(function(et){return et.next()}),ep=ea?ei.every(function(et){return et.done}):ei.some(function(et){return et.done})),ep)?iteratorDone():iteratorValue(et,eh++,eo.apply(null,ei.map(function(et){return et.value})))})},eu}function reify(et,eo){return et===eo?et:isSeq(et)?eo:et.constructor(eo)}function validateEntry(et){if(et!==Object(et))throw TypeError("Expected [K, V] tuple: "+et)}function collectionClass(et){return isKeyed(et)?eP:isIndexed(et)?ek:eO}function makeSequence(et){return Object.create((isKeyed(et)?ez:isIndexed(et)?eW:eV).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):eK.prototype.cacheResult.call(this)}function defaultComparator(et,eo){return void 0===et&&void 0===eo?0:void 0===et?1:void 0===eo?-1:et>eo?1:et<eo?-1:0}function arrCopy(et,eo){eo=eo||0;for(var ei=Math.max(0,et.length-eo),ea=Array(ei),eu=0;eu<ei;eu++)ea[eu]=et[eu+eo];return ea}function invariant(et,eo){if(!et)throw Error(eo)}function assertNotInfinite(et){invariant(et!==1/0,"Cannot perform this action with an infinite size.")}function coerceKeyPath(et){if(isArrayLike(et)&&"string"!=typeof et)return et;if(isOrdered(et))return et.toArray();throw TypeError("Invalid keyPath: expected Ordered Collection or Array: "+et)}ts.prototype.cacheResult=ta.prototype.cacheResult=tc.prototype.cacheResult=tu.prototype.cacheResult=cacheResultThrough;var td=Object.prototype.toString;function isPlainObject(et){if(!et||"object"!=typeof et||"[object Object]"!==td.call(et))return!1;var eo=Object.getPrototypeOf(et);if(null===eo)return!0;for(var ei=eo,ea=Object.getPrototypeOf(eo);null!==ea;)ea=Object.getPrototypeOf(ei=ea);return ei===eo}function isDataStructure(et){return"object"==typeof et&&(isImmutable(et)||Array.isArray(et)||isPlainObject(et))}function quoteString(et){try{return"string"==typeof et?JSON.stringify(et):String(et)}catch(eo){return JSON.stringify(et)}}function has(et,eo){return isImmutable(et)?et.has(eo):isDataStructure(et)&&eH.call(et,eo)}function get(et,eo,ei){return isImmutable(et)?et.get(eo,ei):has(et,eo)?"function"==typeof et.get?et.get(eo):et[eo]:ei}function shallowCopy(et){if(Array.isArray(et))return arrCopy(et);var eo={};for(var ei in et)eH.call(et,ei)&&(eo[ei]=et[ei]);return eo}function remove(et,eo){if(!isDataStructure(et))throw TypeError("Cannot update non-data-structure value: "+et);if(isImmutable(et)){if(!et.remove)throw TypeError("Cannot update immutable value without .remove() method: "+et);return et.remove(eo)}if(!eH.call(et,eo))return et;var ei=shallowCopy(et);return Array.isArray(ei)?ei.splice(eo,1):delete ei[eo],ei}function set(et,eo,ei){if(!isDataStructure(et))throw TypeError("Cannot update non-data-structure value: "+et);if(isImmutable(et)){if(!et.set)throw TypeError("Cannot update immutable value without .set() method: "+et);return et.set(eo,ei)}if(eH.call(et,eo)&&ei===et[eo])return et;var ea=shallowCopy(et);return ea[eo]=ei,ea}function updateIn$1(et,eo,ei,ea){ea||(ea=ei,ei=void 0);var eu=updateInDeeply(isImmutable(et),et,coerceKeyPath(eo),0,ei,ea);return eu===eI?ei:eu}function updateInDeeply(et,eo,ei,ea,eu,ed){var eh=eo===eI;if(ea===ei.length){var ep=eh?eu:eo,ef=ed(ep);return ef===ep?eo:ef}if(!eh&&!isDataStructure(eo))throw TypeError("Cannot update within non-data-structure value in path ["+ei.slice(0,ea).map(quoteString)+"]: "+eo);var em=ei[ea],eg=eh?eI:get(eo,em,eI),ey=updateInDeeply(eg===eI?et:isImmutable(eg),eg,ei,ea+1,eu,ed);return ey===eg?eo:ey===eI?remove(eo,em):set(eh?et?emptyMap():{}:eo,em,ey)}function setIn$1(et,eo,ei){return updateIn$1(et,eo,eI,function(){return ei})}function setIn(et,eo){return setIn$1(this,et,eo)}function removeIn(et,eo){return updateIn$1(et,eo,function(){return eI})}function deleteIn(et){return removeIn(this,et)}function update$1(et,eo,ei,ea){return updateIn$1(et,[eo],ei,ea)}function update(et,eo,ei){return 1==arguments.length?et(this):update$1(this,et,eo,ei)}function updateIn(et,eo,ei){return updateIn$1(this,et,eo,ei)}function merge$1(){for(var et=[],eo=arguments.length;eo--;)et[eo]=arguments[eo];return mergeIntoKeyedWith(this,et)}function mergeWith$1(et){for(var eo=[],ei=arguments.length-1;ei-- >0;)eo[ei]=arguments[ei+1];if("function"!=typeof et)throw TypeError("Invalid merger function: "+et);return mergeIntoKeyedWith(this,eo,et)}function mergeIntoKeyedWith(et,eo,ei){for(var ea=[],eu=0;eu<eo.length;eu++){var ed=eP(eo[eu]);0!==ed.size&&ea.push(ed)}return 0===ea.length?et:0!==et.toSeq().size||et.__ownerID||1!==ea.length?et.withMutations(function(et){for(var eo=ei?function(eo,ea){update$1(et,ea,eI,function(et){return et===eI?eo:ei(et,eo,ea)})}:function(eo,ei){et.set(ei,eo)},eu=0;eu<ea.length;eu++)ea[eu].forEach(eo)}):et.constructor(ea[0])}function merge(et){for(var eo=[],ei=arguments.length-1;ei-- >0;)eo[ei]=arguments[ei+1];return mergeWithSources(et,eo)}function mergeWith(et,eo){for(var ei=[],ea=arguments.length-2;ea-- >0;)ei[ea]=arguments[ea+2];return mergeWithSources(eo,ei,et)}function mergeDeep$1(et){for(var eo=[],ei=arguments.length-1;ei-- >0;)eo[ei]=arguments[ei+1];return mergeDeepWithSources(et,eo)}function mergeDeepWith$1(et,eo){for(var ei=[],ea=arguments.length-2;ea-- >0;)ei[ea]=arguments[ea+2];return mergeDeepWithSources(eo,ei,et)}function mergeDeepWithSources(et,eo,ei){return mergeWithSources(et,eo,deepMergerWith(ei))}function mergeWithSources(et,eo,ei){if(!isDataStructure(et))throw TypeError("Cannot merge into non-data-structure value: "+et);if(isImmutable(et))return"function"==typeof ei&&et.mergeWith?et.mergeWith.apply(et,[ei].concat(eo)):et.merge?et.merge.apply(et,eo):et.concat.apply(et,eo);for(var ea=Array.isArray(et),eu=et,ed=ea?ek:eP,eh=ea?function(eo){eu===et&&(eu=shallowCopy(eu)),eu.push(eo)}:function(eo,ea){var ed=eH.call(eu,ea),eh=ed&&ei?ei(eu[ea],eo,ea):eo;ed&&eh===eu[ea]||(eu===et&&(eu=shallowCopy(eu)),eu[ea]=eh)},ep=0;ep<eo.length;ep++)ed(eo[ep]).forEach(eh);return eu}function deepMergerWith(et){function deepMerger(eo,ei,ea){return isDataStructure(eo)&&isDataStructure(ei)&&areMergeable(eo,ei)?mergeWithSources(eo,[ei],deepMerger):et?et(eo,ei,ea):ei}return deepMerger}function areMergeable(et,eo){var ei=eK(et),ea=eK(eo);return isIndexed(ei)===isIndexed(ea)&&isKeyed(ei)===isKeyed(ea)}function mergeDeep(){for(var et=[],eo=arguments.length;eo--;)et[eo]=arguments[eo];return mergeDeepWithSources(this,et)}function mergeDeepWith(et){for(var eo=[],ei=arguments.length-1;ei-- >0;)eo[ei]=arguments[ei+1];return mergeDeepWithSources(this,eo,et)}function mergeIn(et){for(var eo=[],ei=arguments.length-1;ei-- >0;)eo[ei]=arguments[ei+1];return updateIn$1(this,et,emptyMap(),function(et){return mergeWithSources(et,eo)})}function mergeDeepIn(et){for(var eo=[],ei=arguments.length-1;ei-- >0;)eo[ei]=arguments[ei+1];return updateIn$1(this,et,emptyMap(),function(et){return mergeDeepWithSources(et,eo)})}function withMutations(et){var eo=this.asMutable();return et(eo),eo.wasAltered()?eo.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var tp=function(et){function Map(eo){return null==eo?emptyMap():isMap(eo)&&!isOrdered(eo)?eo:emptyMap().withMutations(function(ei){var ea=et(eo);assertNotInfinite(ea.size),ea.forEach(function(et,eo){return ei.set(eo,et)})})}return et&&(Map.__proto__=et),Map.prototype=Object.create(et&&et.prototype),Map.prototype.constructor=Map,Map.of=function(){for(var et=[],eo=arguments.length;eo--;)et[eo]=arguments[eo];return emptyMap().withMutations(function(eo){for(var ei=0;ei<et.length;ei+=2){if(ei+1>=et.length)throw Error("Missing value for key: "+et[ei]);eo.set(et[ei],et[ei+1])}})},Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(et,eo){return this._root?this._root.get(0,void 0,et,eo):eo},Map.prototype.set=function(et,eo){return updateMap(this,et,eo)},Map.prototype.remove=function(et){return updateMap(this,et,eI)},Map.prototype.deleteAll=function(et){var eo=Collection(et);return 0===eo.size?this:this.withMutations(function(et){eo.forEach(function(eo){return et.remove(eo)})})},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},Map.prototype.sort=function(et){return tw(sortFactory(this,et))},Map.prototype.sortBy=function(et,eo){return tw(sortFactory(this,eo,et))},Map.prototype.map=function(et,eo){var ei=this;return this.withMutations(function(ea){ea.forEach(function(eu,ed){ea.set(ed,et.call(eo,eu,ed,ei))})})},Map.prototype.__iterator=function(et,eo){return new tm(this,et,eo)},Map.prototype.__iterate=function(et,eo){var ei=this,ea=0;return this._root&&this._root.iterate(function(eo){return ea++,et(eo[1],eo[0],ei)},eo),ea},Map.prototype.__ensureOwner=function(et){return et===this.__ownerID?this:et?makeMap(this.size,this._root,et,this.__hash):0===this.size?emptyMap():(this.__ownerID=et,this.__altered=!1,this)},Map}(eP);tp.isMap=isMap;var tf=tp.prototype;tf[eZ]=!0,tf[eS]=tf.remove,tf.removeAll=tf.deleteAll,tf.setIn=setIn,tf.removeIn=tf.deleteIn=deleteIn,tf.update=update,tf.updateIn=updateIn,tf.merge=tf.concat=merge$1,tf.mergeWith=mergeWith$1,tf.mergeDeep=mergeDeep,tf.mergeDeepWith=mergeDeepWith,tf.mergeIn=mergeIn,tf.mergeDeepIn=mergeDeepIn,tf.withMutations=withMutations,tf.wasAltered=wasAltered,tf.asImmutable=asImmutable,tf["@@transducer/init"]=tf.asMutable=asMutable,tf["@@transducer/step"]=function(et,eo){return et.set(eo[0],eo[1])},tf["@@transducer/result"]=function(et){return et.asImmutable()};var ArrayMapNode=function(et,eo){this.ownerID=et,this.entries=eo};ArrayMapNode.prototype.get=function(et,eo,ei,ea){for(var eu=this.entries,ed=0,eh=eu.length;ed<eh;ed++)if(is(ei,eu[ed][0]))return eu[ed][1];return ea},ArrayMapNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){for(var ep=eu===eI,ef=this.entries,em=0,eg=ef.length;em<eg&&!is(ea,ef[em][0]);em++);var ey=em<eg;if(ey?ef[em][1]===eu:ep)return this;if(SetRef(eh),(ep||!ey)&&SetRef(ed),!ep||1!==ef.length){if(!ey&&!ep&&ef.length>=tg)return createNodes(et,ef,ea,eu);var eC=et&&et===this.ownerID,eS=eC?ef:arrCopy(ef);return(ey?ep?em===eg-1?eS.pop():eS[em]=eS.pop():eS[em]=[ea,eu]:eS.push([ea,eu]),eC)?(this.entries=eS,this):new ArrayMapNode(et,eS)}};var BitmapIndexedNode=function(et,eo,ei){this.ownerID=et,this.bitmap=eo,this.nodes=ei};BitmapIndexedNode.prototype.get=function(et,eo,ei,ea){void 0===eo&&(eo=hash(ei));var eu=1<<((0===et?eo:eo>>>et)&eA),ed=this.bitmap;return(ed&eu)==0?ea:this.nodes[popCount(ed&eu-1)].get(et+e_,eo,ei,ea)},BitmapIndexedNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){void 0===ei&&(ei=hash(ea));var ep=(0===eo?ei:ei>>>eo)&eA,ef=1<<ep,em=this.bitmap,eg=(em&ef)!=0;if(!eg&&eu===eI)return this;var ey=popCount(em&ef-1),eC=this.nodes,eS=eg?eC[ey]:void 0,ew=updateNode(eS,et,eo+e_,ei,ea,eu,ed,eh);if(ew===eS)return this;if(!eg&&ew&&eC.length>=ty)return expandNodes(et,eC,em,ep,ew);if(eg&&!ew&&2===eC.length&&isLeafNode(eC[1^ey]))return eC[1^ey];if(eg&&ew&&1===eC.length&&isLeafNode(ew))return ew;var eR=et&&et===this.ownerID,eT=eg?ew?em:em^ef:em|ef,eE=eg?ew?setAt(eC,ey,ew,eR):spliceOut(eC,ey,eR):spliceIn(eC,ey,ew,eR);return eR?(this.bitmap=eT,this.nodes=eE,this):new BitmapIndexedNode(et,eT,eE)};var HashArrayMapNode=function(et,eo,ei){this.ownerID=et,this.count=eo,this.nodes=ei};HashArrayMapNode.prototype.get=function(et,eo,ei,ea){void 0===eo&&(eo=hash(ei));var eu=(0===et?eo:eo>>>et)&eA,ed=this.nodes[eu];return ed?ed.get(et+e_,eo,ei,ea):ea},HashArrayMapNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){void 0===ei&&(ei=hash(ea));var ep=(0===eo?ei:ei>>>eo)&eA,ef=eu===eI,em=this.nodes,eg=em[ep];if(ef&&!eg)return this;var ey=updateNode(eg,et,eo+e_,ei,ea,eu,ed,eh);if(ey===eg)return this;var eC=this.count;if(eg){if(!ey&&--eC<tv)return packNodes(et,em,eC,ep)}else eC++;var eS=et&&et===this.ownerID,ew=setAt(em,ep,ey,eS);return eS?(this.count=eC,this.nodes=ew,this):new HashArrayMapNode(et,eC,ew)};var HashCollisionNode=function(et,eo,ei){this.ownerID=et,this.keyHash=eo,this.entries=ei};HashCollisionNode.prototype.get=function(et,eo,ei,ea){for(var eu=this.entries,ed=0,eh=eu.length;ed<eh;ed++)if(is(ei,eu[ed][0]))return eu[ed][1];return ea},HashCollisionNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){void 0===ei&&(ei=hash(ea));var ep=eu===eI;if(ei!==this.keyHash)return ep?this:(SetRef(eh),SetRef(ed),mergeIntoNode(this,et,eo,ei,[ea,eu]));for(var ef=this.entries,em=0,eg=ef.length;em<eg&&!is(ea,ef[em][0]);em++);var ey=em<eg;if(ey?ef[em][1]===eu:ep)return this;if(SetRef(eh),(ep||!ey)&&SetRef(ed),ep&&2===eg)return new ValueNode(et,this.keyHash,ef[1^em]);var eC=et&&et===this.ownerID,eS=eC?ef:arrCopy(ef);return(ey?ep?em===eg-1?eS.pop():eS[em]=eS.pop():eS[em]=[ea,eu]:eS.push([ea,eu]),eC)?(this.entries=eS,this):new HashCollisionNode(et,this.keyHash,eS)};var ValueNode=function(et,eo,ei){this.ownerID=et,this.keyHash=eo,this.entry=ei};ValueNode.prototype.get=function(et,eo,ei,ea){return is(ei,this.entry[0])?this.entry[1]:ea},ValueNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){var ep=eu===eI,ef=is(ea,this.entry[0]);if(ef?eu===this.entry[1]:ep)return this;if(SetRef(eh),ep){SetRef(ed);return}return ef?et&&et===this.ownerID?(this.entry[1]=eu,this):new ValueNode(et,this.keyHash,[ea,eu]):(SetRef(ed),mergeIntoNode(this,et,eo,hash(ea),[ea,eu]))},ArrayMapNode.prototype.iterate=HashCollisionNode.prototype.iterate=function(et,eo){for(var ei=this.entries,ea=0,eu=ei.length-1;ea<=eu;ea++)if(!1===et(ei[eo?eu-ea:ea]))return!1},BitmapIndexedNode.prototype.iterate=HashArrayMapNode.prototype.iterate=function(et,eo){for(var ei=this.nodes,ea=0,eu=ei.length-1;ea<=eu;ea++){var ed=ei[eo?eu-ea:ea];if(ed&&!1===ed.iterate(et,eo))return!1}},ValueNode.prototype.iterate=function(et,eo){return et(this.entry)};var tm=function(et){function MapIterator(et,eo,ei){this._type=eo,this._reverse=ei,this._stack=et._root&&mapIteratorFrame(et._root)}return et&&(MapIterator.__proto__=et),MapIterator.prototype=Object.create(et&&et.prototype),MapIterator.prototype.constructor=MapIterator,MapIterator.prototype.next=function(){for(var et=this._type,eo=this._stack;eo;){var ei=eo.node,ea=eo.index++,eu=void 0;if(ei.entry){if(0===ea)return mapIteratorValue(et,ei.entry)}else if(ei.entries){if(ea<=(eu=ei.entries.length-1))return mapIteratorValue(et,ei.entries[this._reverse?eu-ea:ea])}else if(ea<=(eu=ei.nodes.length-1)){var ed=ei.nodes[this._reverse?eu-ea:ea];if(ed){if(ed.entry)return mapIteratorValue(et,ed.entry);eo=this._stack=mapIteratorFrame(ed,eo)}continue}eo=this._stack=this._stack.__prev}return iteratorDone()},MapIterator}(Iterator);function mapIteratorValue(et,eo){return iteratorValue(et,eo[0],eo[1])}function mapIteratorFrame(et,eo){return{node:et,index:0,__prev:eo}}function makeMap(et,eo,ei,ea){var eu=Object.create(tf);return eu.size=et,eu._root=eo,eu.__ownerID=ei,eu.__hash=ea,eu.__altered=!1,eu}function emptyMap(){return ed||(ed=makeMap(0))}function updateMap(et,eo,ei){if(et._root){var ea,eu,ed=MakeRef(),eh=MakeRef();if(ea=updateNode(et._root,et.__ownerID,0,void 0,eo,ei,ed,eh),!eh.value)return et;eu=et.size+(ed.value?ei===eI?-1:1:0)}else{if(ei===eI)return et;eu=1,ea=new ArrayMapNode(et.__ownerID,[[eo,ei]])}return et.__ownerID?(et.size=eu,et._root=ea,et.__hash=void 0,et.__altered=!0,et):ea?makeMap(eu,ea):emptyMap()}function updateNode(et,eo,ei,ea,eu,ed,eh,ep){return et?et.update(eo,ei,ea,eu,ed,eh,ep):ed===eI?et:(SetRef(ep),SetRef(eh),new ValueNode(eo,ea,[eu,ed]))}function isLeafNode(et){return et.constructor===ValueNode||et.constructor===HashCollisionNode}function mergeIntoNode(et,eo,ei,ea,eu){if(et.keyHash===ea)return new HashCollisionNode(eo,ea,[et.entry,eu]);var ed,eh=(0===ei?et.keyHash:et.keyHash>>>ei)&eA,ep=(0===ei?ea:ea>>>ei)&eA,ef=eh===ep?[mergeIntoNode(et,eo,ei+e_,ea,eu)]:(ed=new ValueNode(eo,ea,eu),eh<ep?[et,ed]:[ed,et]);return new BitmapIndexedNode(eo,1<<eh|1<<ep,ef)}function createNodes(et,eo,ei,ea){et||(et=new OwnerID);for(var eu=new ValueNode(et,hash(ei),[ei,ea]),ed=0;ed<eo.length;ed++){var eh=eo[ed];eu=eu.update(et,0,void 0,eh[0],eh[1])}return eu}function packNodes(et,eo,ei,ea){for(var eu=0,ed=0,eh=Array(ei),ep=0,ef=1,em=eo.length;ep<em;ep++,ef<<=1){var eg=eo[ep];void 0!==eg&&ep!==ea&&(eu|=ef,eh[ed++]=eg)}return new BitmapIndexedNode(et,eu,eh)}function expandNodes(et,eo,ei,ea,eu){for(var ed=0,eh=Array(ew),ep=0;0!==ei;ep++,ei>>>=1)eh[ep]=1&ei?eo[ed++]:void 0;return eh[ea]=eu,new HashArrayMapNode(et,ed+1,eh)}function popCount(et){return et-=et>>1&1431655765,et=(et=(858993459&et)+(et>>2&858993459))+(et>>4)&252645135,et+=et>>8,127&(et+=et>>16)}function setAt(et,eo,ei,ea){var eu=ea?et:arrCopy(et);return eu[eo]=ei,eu}function spliceIn(et,eo,ei,ea){var eu=et.length+1;if(ea&&eo+1===eu)return et[eo]=ei,et;for(var ed=Array(eu),eh=0,ep=0;ep<eu;ep++)ep===eo?(ed[ep]=ei,eh=-1):ed[ep]=et[ep+eh];return ed}function spliceOut(et,eo,ei){var ea=et.length-1;if(ei&&eo===ea)return et.pop(),et;for(var eu=Array(ea),ed=0,eh=0;eh<ea;eh++)eh===eo&&(ed=1),eu[eh]=et[eh+ed];return eu}var tg=ew/4,ty=ew/2,tv=ew/4,tb="@@__IMMUTABLE_LIST__@@";function isList(et){return!!(et&&et[tb])}var tC=function(et){function List(eo){var ei=emptyList();if(null==eo)return ei;if(isList(eo))return eo;var ea=et(eo),eu=ea.size;return 0===eu?ei:(assertNotInfinite(eu),eu>0&&eu<ew)?makeList(0,eu,e_,null,new VNode(ea.toArray())):ei.withMutations(function(et){et.setSize(eu),ea.forEach(function(eo,ei){return et.set(ei,eo)})})}return et&&(List.__proto__=et),List.prototype=Object.create(et&&et.prototype),List.prototype.constructor=List,List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(et,eo){if((et=wrapIndex(this,et))>=0&&et<this.size){var ei=listNodeFor(this,et+=this._origin);return ei&&ei.array[et&eA]}return eo},List.prototype.set=function(et,eo){return updateList(this,et,eo)},List.prototype.remove=function(et){return this.has(et)?0===et?this.shift():et===this.size-1?this.pop():this.splice(et,1):this},List.prototype.insert=function(et,eo){return this.splice(et,0,eo)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=e_,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):emptyList()},List.prototype.push=function(){var et=arguments,eo=this.size;return this.withMutations(function(ei){setListBounds(ei,0,eo+et.length);for(var ea=0;ea<et.length;ea++)ei.set(eo+ea,et[ea])})},List.prototype.pop=function(){return setListBounds(this,0,-1)},List.prototype.unshift=function(){var et=arguments;return this.withMutations(function(eo){setListBounds(eo,-et.length);for(var ei=0;ei<et.length;ei++)eo.set(ei,et[ei])})},List.prototype.shift=function(){return setListBounds(this,1)},List.prototype.concat=function(){for(var eo=arguments,ei=[],ea=0;ea<arguments.length;ea++){var eu=eo[ea],ed=et("string"!=typeof eu&&hasIterator(eu)?eu:[eu]);0!==ed.size&&ei.push(ed)}return 0===ei.length?this:0!==this.size||this.__ownerID||1!==ei.length?this.withMutations(function(et){ei.forEach(function(eo){return eo.forEach(function(eo){return et.push(eo)})})}):this.constructor(ei[0])},List.prototype.setSize=function(et){return setListBounds(this,0,et)},List.prototype.map=function(et,eo){var ei=this;return this.withMutations(function(ea){for(var eu=0;eu<ei.size;eu++)ea.set(eu,et.call(eo,ea.get(eu),eu,ei))})},List.prototype.slice=function(et,eo){var ei=this.size;return wholeSlice(et,eo,ei)?this:setListBounds(this,resolveBegin(et,ei),resolveEnd(eo,ei))},List.prototype.__iterator=function(et,eo){var ei=eo?this.size:0,ea=iterateList(this,eo);return new Iterator(function(){var eu=ea();return eu===t_?iteratorDone():iteratorValue(et,eo?--ei:ei++,eu)})},List.prototype.__iterate=function(et,eo){for(var ei,ea=eo?this.size:0,eu=iterateList(this,eo);(ei=eu())!==t_&&!1!==et(ei,eo?--ea:ea++,this););return ea},List.prototype.__ensureOwner=function(et){return et===this.__ownerID?this:et?makeList(this._origin,this._capacity,this._level,this._root,this._tail,et,this.__hash):0===this.size?emptyList():(this.__ownerID=et,this.__altered=!1,this)},List}(ek);tC.isList=isList;var tS=tC.prototype;tS[tb]=!0,tS[eS]=tS.remove,tS.merge=tS.concat,tS.setIn=setIn,tS.deleteIn=tS.removeIn=deleteIn,tS.update=update,tS.updateIn=updateIn,tS.mergeIn=mergeIn,tS.mergeDeepIn=mergeDeepIn,tS.withMutations=withMutations,tS.wasAltered=wasAltered,tS.asImmutable=asImmutable,tS["@@transducer/init"]=tS.asMutable=asMutable,tS["@@transducer/step"]=function(et,eo){return et.push(eo)},tS["@@transducer/result"]=function(et){return et.asImmutable()};var VNode=function(et,eo){this.array=et,this.ownerID=eo};VNode.prototype.removeBefore=function(et,eo,ei){if(ei===eo?1<<eo:0===this.array.length)return this;var ea,eu=ei>>>eo&eA;if(eu>=this.array.length)return new VNode([],et);var ed=0===eu;if(eo>0){var eh=this.array[eu];if((ea=eh&&eh.removeBefore(et,eo-e_,ei))===eh&&ed)return this}if(ed&&!ea)return this;var ep=editableVNode(this,et);if(!ed)for(var ef=0;ef<eu;ef++)ep.array[ef]=void 0;return ea&&(ep.array[eu]=ea),ep},VNode.prototype.removeAfter=function(et,eo,ei){if(ei===(eo?1<<eo:0)||0===this.array.length)return this;var ea,eu=ei-1>>>eo&eA;if(eu>=this.array.length)return this;if(eo>0){var ed=this.array[eu];if((ea=ed&&ed.removeAfter(et,eo-e_,ei))===ed&&eu===this.array.length-1)return this}var eh=editableVNode(this,et);return eh.array.splice(eu+1),ea&&(eh.array[eu]=ea),eh};var t_={};function iterateList(et,eo){var ei=et._origin,ea=et._capacity,eu=getTailOffset(ea),ed=et._tail;return iterateNodeOrLeaf(et._root,et._level,0);function iterateNodeOrLeaf(et,eo,ei){return 0===eo?iterateLeaf(et,ei):iterateNode(et,eo,ei)}function iterateLeaf(et,eh){var ep=eh===eu?ed&&ed.array:et&&et.array,ef=eh>ei?0:ei-eh,em=ea-eh;return em>ew&&(em=ew),function(){if(ef===em)return t_;var et=eo?--em:ef++;return ep&&ep[et]}}function iterateNode(et,eu,ed){var eh,ep=et&&et.array,ef=ed>ei?0:ei-ed>>eu,em=(ea-ed>>eu)+1;return em>ew&&(em=ew),function(){for(;;){if(eh){var et=eh();if(et!==t_)return et;eh=null}if(ef===em)return t_;var ei=eo?--em:ef++;eh=iterateNodeOrLeaf(ep&&ep[ei],eu-e_,ed+(ei<<eu))}}}}function makeList(et,eo,ei,ea,eu,ed,eh){var ep=Object.create(tS);return ep.size=eo-et,ep._origin=et,ep._capacity=eo,ep._level=ei,ep._root=ea,ep._tail=eu,ep.__ownerID=ed,ep.__hash=eh,ep.__altered=!1,ep}function emptyList(){return eh||(eh=makeList(0,0,e_))}function updateList(et,eo,ei){if((eo=wrapIndex(et,eo))!=eo)return et;if(eo>=et.size||eo<0)return et.withMutations(function(et){eo<0?setListBounds(et,eo).set(0,ei):setListBounds(et,0,eo+1).set(eo,ei)});eo+=et._origin;var ea=et._tail,eu=et._root,ed=MakeRef();return(eo>=getTailOffset(et._capacity)?ea=updateVNode(ea,et.__ownerID,0,eo,ei,ed):eu=updateVNode(eu,et.__ownerID,et._level,eo,ei,ed),ed.value)?et.__ownerID?(et._root=eu,et._tail=ea,et.__hash=void 0,et.__altered=!0,et):makeList(et._origin,et._capacity,et._level,eu,ea):et}function updateVNode(et,eo,ei,ea,eu,ed){var eh,ep=ea>>>ei&eA,ef=et&&ep<et.array.length;if(!ef&&void 0===eu)return et;if(ei>0){var em=et&&et.array[ep],eg=updateVNode(em,eo,ei-e_,ea,eu,ed);return eg===em?et:((eh=editableVNode(et,eo)).array[ep]=eg,eh)}return ef&&et.array[ep]===eu?et:(ed&&SetRef(ed),eh=editableVNode(et,eo),void 0===eu&&ep===eh.array.length-1?eh.array.pop():eh.array[ep]=eu,eh)}function editableVNode(et,eo){return eo&&et&&eo===et.ownerID?et:new VNode(et?et.array.slice():[],eo)}function listNodeFor(et,eo){if(eo>=getTailOffset(et._capacity))return et._tail;if(eo<1<<et._level+e_){for(var ei=et._root,ea=et._level;ei&&ea>0;)ei=ei.array[eo>>>ea&eA],ea-=e_;return ei}}function setListBounds(et,eo,ei){void 0!==eo&&(eo|=0),void 0!==ei&&(ei|=0);var ea=et.__ownerID||new OwnerID,eu=et._origin,ed=et._capacity,eh=eu+eo,ep=void 0===ei?ed:ei<0?ed+ei:eu+ei;if(eh===eu&&ep===ed)return et;if(eh>=ep)return et.clear();for(var ef=et._level,em=et._root,eg=0;eh+eg<0;)em=new VNode(em&&em.array.length?[void 0,em]:[],ea),ef+=e_,eg+=1<<ef;eg&&(eh+=eg,eu+=eg,ep+=eg,ed+=eg);for(var ey=getTailOffset(ed),eC=getTailOffset(ep);eC>=1<<ef+e_;)em=new VNode(em&&em.array.length?[em]:[],ea),ef+=e_;var eS=et._tail,ew=eC<ey?listNodeFor(et,ep-1):eC>ey?new VNode([],ea):eS;if(eS&&eC>ey&&eh<ed&&eS.array.length){for(var eI=em=editableVNode(em,ea),eR=ef;eR>e_;eR-=e_){var eT=ey>>>eR&eA;eI=eI.array[eT]=editableVNode(eI.array[eT],ea)}eI.array[ey>>>e_&eA]=eS}if(ep<ed&&(ew=ew&&ew.removeAfter(ea,0,ep)),eh>=eC)eh-=eC,ep-=eC,ef=e_,em=null,ew=ew&&ew.removeBefore(ea,0,eh);else if(eh>eu||eC<ey){for(eg=0;em;){var eE=eh>>>ef&eA;if(eE!==eC>>>ef&eA)break;eE&&(eg+=(1<<ef)*eE),ef-=e_,em=em.array[eE]}em&&eh>eu&&(em=em.removeBefore(ea,ef,eh-eg)),em&&eC<ey&&(em=em.removeAfter(ea,ef,eC-eg)),eg&&(eh-=eg,ep-=eg)}return et.__ownerID?(et.size=ep-eh,et._origin=eh,et._capacity=ep,et._level=ef,et._root=em,et._tail=ew,et.__hash=void 0,et.__altered=!0,et):makeList(eh,ep,ef,em,ew)}function getTailOffset(et){return et<ew?0:et-1>>>e_<<e_}var tw=function(et){function OrderedMap(et){return null==et?emptyOrderedMap():isOrderedMap(et)?et:emptyOrderedMap().withMutations(function(eo){var ei=eP(et);assertNotInfinite(ei.size),ei.forEach(function(et,ei){return eo.set(ei,et)})})}return et&&(OrderedMap.__proto__=et),OrderedMap.prototype=Object.create(et&&et.prototype),OrderedMap.prototype.constructor=OrderedMap,OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(et,eo){var ei=this._map.get(et);return void 0!==ei?this._list.get(ei)[1]:eo},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):emptyOrderedMap()},OrderedMap.prototype.set=function(et,eo){return updateOrderedMap(this,et,eo)},OrderedMap.prototype.remove=function(et){return updateOrderedMap(this,et,eI)},OrderedMap.prototype.__iterate=function(et,eo){var ei=this;return this._list.__iterate(function(eo){return eo&&et(eo[1],eo[0],ei)},eo)},OrderedMap.prototype.__iterator=function(et,eo){return this._list.fromEntrySeq().__iterator(et,eo)},OrderedMap.prototype.__ensureOwner=function(et){if(et===this.__ownerID)return this;var eo=this._map.__ensureOwner(et),ei=this._list.__ensureOwner(et);return et?makeOrderedMap(eo,ei,et,this.__hash):0===this.size?emptyOrderedMap():(this.__ownerID=et,this.__altered=!1,this._map=eo,this._list=ei,this)},OrderedMap}(tp);function makeOrderedMap(et,eo,ei,ea){var eu=Object.create(tw.prototype);return eu.size=et?et.size:0,eu._map=et,eu._list=eo,eu.__ownerID=ei,eu.__hash=ea,eu.__altered=!1,eu}function emptyOrderedMap(){return ep||(ep=makeOrderedMap(emptyMap(),emptyList()))}function updateOrderedMap(et,eo,ei){var ea,eu,ed=et._map,eh=et._list,ep=ed.get(eo),ef=void 0!==ep;if(ei===eI){if(!ef)return et;eh.size>=ew&&eh.size>=2*ed.size?(ea=(eu=eh.filter(function(et,eo){return void 0!==et&&ep!==eo})).toKeyedSeq().map(function(et){return et[0]}).flip().toMap(),et.__ownerID&&(ea.__ownerID=eu.__ownerID=et.__ownerID)):(ea=ed.remove(eo),eu=ep===eh.size-1?eh.pop():eh.set(ep,void 0))}else if(ef){if(ei===eh.get(ep)[1])return et;ea=ed,eu=eh.set(ep,[eo,ei])}else ea=ed.set(eo,eh.size),eu=eh.set(eh.size,[eo,ei]);return et.__ownerID?(et.size=ea.size,et._map=ea,et._list=eu,et.__hash=void 0,et.__altered=!0,et):makeOrderedMap(ea,eu)}tw.isOrderedMap=isOrderedMap,tw.prototype[eU]=!0,tw.prototype[eS]=tw.prototype.remove;var tA="@@__IMMUTABLE_STACK__@@";function isStack(et){return!!(et&&et[tA])}var tI=function(et){function Stack(et){return null==et?emptyStack():isStack(et)?et:emptyStack().pushAll(et)}return et&&(Stack.__proto__=et),Stack.prototype=Object.create(et&&et.prototype),Stack.prototype.constructor=Stack,Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(et,eo){var ei=this._head;for(et=wrapIndex(this,et);ei&&et--;)ei=ei.next;return ei?ei.value:eo},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){var et=arguments;if(0==arguments.length)return this;for(var eo=this.size+arguments.length,ei=this._head,ea=arguments.length-1;ea>=0;ea--)ei={value:et[ea],next:ei};return this.__ownerID?(this.size=eo,this._head=ei,this.__hash=void 0,this.__altered=!0,this):makeStack(eo,ei)},Stack.prototype.pushAll=function(eo){if(0===(eo=et(eo)).size)return this;if(0===this.size&&isStack(eo))return eo;assertNotInfinite(eo.size);var ei=this.size,ea=this._head;return(eo.__iterate(function(et){ei++,ea={value:et,next:ea}},!0),this.__ownerID)?(this.size=ei,this._head=ea,this.__hash=void 0,this.__altered=!0,this):makeStack(ei,ea)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},Stack.prototype.slice=function(eo,ei){if(wholeSlice(eo,ei,this.size))return this;var ea=resolveBegin(eo,this.size);if(resolveEnd(ei,this.size)!==this.size)return et.prototype.slice.call(this,eo,ei);for(var eu=this.size-ea,ed=this._head;ea--;)ed=ed.next;return this.__ownerID?(this.size=eu,this._head=ed,this.__hash=void 0,this.__altered=!0,this):makeStack(eu,ed)},Stack.prototype.__ensureOwner=function(et){return et===this.__ownerID?this:et?makeStack(this.size,this._head,et,this.__hash):0===this.size?emptyStack():(this.__ownerID=et,this.__altered=!1,this)},Stack.prototype.__iterate=function(et,eo){var ei=this;if(eo)return new eJ(this.toArray()).__iterate(function(eo,ea){return et(eo,ea,ei)},eo);for(var ea=0,eu=this._head;eu&&!1!==et(eu.value,ea++,this);)eu=eu.next;return ea},Stack.prototype.__iterator=function(et,eo){if(eo)return new eJ(this.toArray()).__iterator(et,eo);var ei=0,ea=this._head;return new Iterator(function(){if(ea){var eo=ea.value;return ea=ea.next,iteratorValue(et,ei++,eo)}return iteratorDone()})},Stack}(ek);tI.isStack=isStack;var tR=tI.prototype;function makeStack(et,eo,ei,ea){var eu=Object.create(tR);return eu.size=et,eu._head=eo,eu.__ownerID=ei,eu.__hash=ea,eu.__altered=!1,eu}function emptyStack(){return ef||(ef=makeStack(0))}tR[tA]=!0,tR.shift=tR.pop,tR.unshift=tR.push,tR.unshiftAll=tR.pushAll,tR.withMutations=withMutations,tR.wasAltered=wasAltered,tR.asImmutable=asImmutable,tR["@@transducer/init"]=tR.asMutable=asMutable,tR["@@transducer/step"]=function(et,eo){return et.unshift(eo)},tR["@@transducer/result"]=function(et){return et.asImmutable()};var tT="@@__IMMUTABLE_SET__@@";function isSet(et){return!!(et&&et[tT])}function isOrderedSet(et){return isSet(et)&&isOrdered(et)}function deepEqual(et,eo){if(et===eo)return!0;if(!isCollection(eo)||void 0!==et.size&&void 0!==eo.size&&et.size!==eo.size||void 0!==et.__hash&&void 0!==eo.__hash&&et.__hash!==eo.__hash||isKeyed(et)!==isKeyed(eo)||isIndexed(et)!==isIndexed(eo)||isOrdered(et)!==isOrdered(eo))return!1;if(0===et.size&&0===eo.size)return!0;var ei=!isAssociative(et);if(isOrdered(et)){var ea=et.entries();return eo.every(function(et,eo){var eu=ea.next().value;return eu&&is(eu[1],et)&&(ei||is(eu[0],eo))})&&ea.next().done}var eu=!1;if(void 0===et.size){if(void 0===eo.size)"function"==typeof et.cacheResult&&et.cacheResult();else{eu=!0;var ed=et;et=eo,eo=ed}}var eh=!0,ep=eo.__iterate(function(eo,ea){if(ei?!et.has(eo):eu?!is(eo,et.get(ea,eI)):!is(et.get(ea,eI),eo))return eh=!1,!1});return eh&&et.size===ep}function mixin(et,eo){var keyCopier=function(ei){et.prototype[ei]=eo[ei]};return Object.keys(eo).forEach(keyCopier),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(eo).forEach(keyCopier),et}function toJS(et){if(!et||"object"!=typeof et)return et;if(!isCollection(et)){if(!isDataStructure(et))return et;et=eK(et)}if(isKeyed(et)){var eo={};return et.__iterate(function(et,ei){eo[ei]=toJS(et)}),eo}var ei=[];return et.__iterate(function(et){ei.push(toJS(et))}),ei}var tE=function(et){function Set(eo){return null==eo?emptySet():isSet(eo)&&!isOrdered(eo)?eo:emptySet().withMutations(function(ei){var ea=et(eo);assertNotInfinite(ea.size),ea.forEach(function(et){return ei.add(et)})})}return et&&(Set.__proto__=et),Set.prototype=Object.create(et&&et.prototype),Set.prototype.constructor=Set,Set.of=function(){return this(arguments)},Set.fromKeys=function(et){return this(eP(et).keySeq())},Set.intersect=function(et){return(et=Collection(et).toArray()).length?tP.intersect.apply(Set(et.pop()),et):emptySet()},Set.union=function(et){return(et=Collection(et).toArray()).length?tP.union.apply(Set(et.pop()),et):emptySet()},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(et){return this._map.has(et)},Set.prototype.add=function(et){return updateSet(this,this._map.set(et,et))},Set.prototype.remove=function(et){return updateSet(this,this._map.remove(et))},Set.prototype.clear=function(){return updateSet(this,this._map.clear())},Set.prototype.map=function(et,eo){var ei=this,ea=!1,eu=updateSet(this,this._map.mapEntries(function(eu){var ed=eu[1],eh=et.call(eo,ed,ed,ei);return eh!==ed&&(ea=!0),[eh,eh]},eo));return ea?eu:this},Set.prototype.union=function(){for(var eo=[],ei=arguments.length;ei--;)eo[ei]=arguments[ei];return 0===(eo=eo.filter(function(et){return 0!==et.size})).length?this:0!==this.size||this.__ownerID||1!==eo.length?this.withMutations(function(ei){for(var ea=0;ea<eo.length;ea++)et(eo[ea]).forEach(function(et){return ei.add(et)})}):this.constructor(eo[0])},Set.prototype.intersect=function(){for(var eo=[],ei=arguments.length;ei--;)eo[ei]=arguments[ei];if(0===eo.length)return this;eo=eo.map(function(eo){return et(eo)});var ea=[];return this.forEach(function(et){eo.every(function(eo){return eo.includes(et)})||ea.push(et)}),this.withMutations(function(et){ea.forEach(function(eo){et.remove(eo)})})},Set.prototype.subtract=function(){for(var eo=[],ei=arguments.length;ei--;)eo[ei]=arguments[ei];if(0===eo.length)return this;eo=eo.map(function(eo){return et(eo)});var ea=[];return this.forEach(function(et){eo.some(function(eo){return eo.includes(et)})&&ea.push(et)}),this.withMutations(function(et){ea.forEach(function(eo){et.remove(eo)})})},Set.prototype.sort=function(et){return tU(sortFactory(this,et))},Set.prototype.sortBy=function(et,eo){return tU(sortFactory(this,eo,et))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function(et,eo){var ei=this;return this._map.__iterate(function(eo){return et(eo,eo,ei)},eo)},Set.prototype.__iterator=function(et,eo){return this._map.__iterator(et,eo)},Set.prototype.__ensureOwner=function(et){if(et===this.__ownerID)return this;var eo=this._map.__ensureOwner(et);return et?this.__make(eo,et):0===this.size?this.__empty():(this.__ownerID=et,this._map=eo,this)},Set}(eO);tE.isSet=isSet;var tP=tE.prototype;function updateSet(et,eo){return et.__ownerID?(et.size=eo.size,et._map=eo,et):eo===et._map?et:0===eo.size?et.__empty():et.__make(eo)}function makeSet(et,eo){var ei=Object.create(tP);return ei.size=et?et.size:0,ei._map=et,ei.__ownerID=eo,ei}function emptySet(){return em||(em=makeSet(emptyMap()))}tP[tT]=!0,tP[eS]=tP.remove,tP.merge=tP.concat=tP.union,tP.withMutations=withMutations,tP.asImmutable=asImmutable,tP["@@transducer/init"]=tP.asMutable=asMutable,tP["@@transducer/step"]=function(et,eo){return et.add(eo)},tP["@@transducer/result"]=function(et){return et.asImmutable()},tP.__empty=emptySet,tP.__make=makeSet;var tk=function(et){function Range(et,eo,ei){if(!(this instanceof Range))return new Range(et,eo,ei);if(invariant(0!==ei,"Cannot step a Range by 0"),et=et||0,void 0===eo&&(eo=1/0),ei=void 0===ei?1:Math.abs(ei),eo<et&&(ei=-ei),this._start=et,this._end=eo,this._step=ei,this.size=Math.max(0,Math.ceil((eo-et)/ei-1)+1),0===this.size){if(eg)return eg;eg=this}}return et&&(Range.__proto__=et),Range.prototype=Object.create(et&&et.prototype),Range.prototype.constructor=Range,Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Range.prototype.get=function(et,eo){return this.has(et)?this._start+wrapIndex(this,et)*this._step:eo},Range.prototype.includes=function(et){var eo=(et-this._start)/this._step;return eo>=0&&eo<this.size&&eo===Math.floor(eo)},Range.prototype.slice=function(et,eo){return wholeSlice(et,eo,this.size)?this:(et=resolveBegin(et,this.size),(eo=resolveEnd(eo,this.size))<=et)?new Range(0,0):new Range(this.get(et,this._end),this.get(eo,this._end),this._step)},Range.prototype.indexOf=function(et){var eo=et-this._start;if(eo%this._step==0){var ei=eo/this._step;if(ei>=0&&ei<this.size)return ei}return -1},Range.prototype.lastIndexOf=function(et){return this.indexOf(et)},Range.prototype.__iterate=function(et,eo){for(var ei=this.size,ea=this._step,eu=eo?this._start+(ei-1)*ea:this._start,ed=0;ed!==ei&&!1!==et(eu,eo?ei-++ed:ed++,this);)eu+=eo?-ea:ea;return ed},Range.prototype.__iterator=function(et,eo){var ei=this.size,ea=this._step,eu=eo?this._start+(ei-1)*ea:this._start,ed=0;return new Iterator(function(){if(ed===ei)return iteratorDone();var eh=eu;return eu+=eo?-ea:ea,iteratorValue(et,eo?ei-++ed:ed++,eh)})},Range.prototype.equals=function(et){return et instanceof Range?this._start===et._start&&this._end===et._end&&this._step===et._step:deepEqual(this,et)},Range}(eW);function getIn$1(et,eo,ei){for(var ea=coerceKeyPath(eo),eu=0;eu!==ea.length;)if((et=get(et,ea[eu++],eI))===eI)return ei;return et}function getIn(et,eo){return getIn$1(this,et,eo)}function hasIn$1(et,eo){return getIn$1(et,eo,eI)!==eI}function hasIn(et){return hasIn$1(this,et)}function toObject(){assertNotInfinite(this.size);var et={};return this.__iterate(function(eo,ei){et[ei]=eo}),et}Collection.isIterable=isCollection,Collection.isKeyed=isKeyed,Collection.isIndexed=isIndexed,Collection.isAssociative=isAssociative,Collection.isOrdered=isOrdered,Collection.Iterator=Iterator,mixin(Collection,{toArray:function(){assertNotInfinite(this.size);var et=Array(this.size||0),eo=isKeyed(this),ei=0;return this.__iterate(function(ea,eu){et[ei++]=eo?[eu,ea]:ea}),et},toIndexedSeq:function(){return new ts(this)},toJS:function(){return toJS(this)},toKeyedSeq:function(){return new ta(this,!0)},toMap:function(){return tp(this.toKeyedSeq())},toObject:toObject,toOrderedMap:function(){return tw(this.toKeyedSeq())},toOrderedSet:function(){return tU(isKeyed(this)?this.valueSeq():this)},toSet:function(){return tE(isKeyed(this)?this.valueSeq():this)},toSetSeq:function(){return new tc(this)},toSeq:function(){return isIndexed(this)?this.toIndexedSeq():isKeyed(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return tI(isKeyed(this)?this.valueSeq():this)},toList:function(){return tC(isKeyed(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(et,eo){return 0===this.size?et+eo:et+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+eo},concat:function(){for(var et=[],eo=arguments.length;eo--;)et[eo]=arguments[eo];return reify(this,concatFactory(this,et))},includes:function(et){return this.some(function(eo){return is(eo,et)})},entries:function(){return this.__iterator(eB)},every:function(et,eo){assertNotInfinite(this.size);var ei=!0;return this.__iterate(function(ea,eu,ed){if(!et.call(eo,ea,eu,ed))return ei=!1,!1}),ei},filter:function(et,eo){return reify(this,filterFactory(this,et,eo,!0))},find:function(et,eo,ei){var ea=this.findEntry(et,eo);return ea?ea[1]:ei},forEach:function(et,eo){return assertNotInfinite(this.size),this.__iterate(eo?et.bind(eo):et)},join:function(et){assertNotInfinite(this.size),et=void 0!==et?""+et:",";var eo="",ei=!0;return this.__iterate(function(ea){ei?ei=!1:eo+=et,eo+=null!=ea?ea.toString():""}),eo},keys:function(){return this.__iterator(eL)},map:function(et,eo){return reify(this,mapFactory(this,et,eo))},reduce:function(et,eo,ei){return reduce(this,et,eo,ei,arguments.length<2,!1)},reduceRight:function(et,eo,ei){return reduce(this,et,eo,ei,arguments.length<2,!0)},reverse:function(){return reify(this,reverseFactory(this,!0))},slice:function(et,eo){return reify(this,sliceFactory(this,et,eo,!0))},some:function(et,eo){return!this.every(not(et),eo)},sort:function(et){return reify(this,sortFactory(this,et))},values:function(){return this.__iterator(eN)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(et,eo){return ensureSize(et?this.toSeq().filter(et,eo):this)},countBy:function(et,eo){return countByFactory(this,et,eo)},equals:function(et){return deepEqual(this,et)},entrySeq:function(){var et=this;if(et._cache)return new eJ(et._cache);var eo=et.toSeq().map(entryMapper).toIndexedSeq();return eo.fromEntrySeq=function(){return et.toSeq()},eo},filterNot:function(et,eo){return this.filter(not(et),eo)},findEntry:function(et,eo,ei){var ea=ei;return this.__iterate(function(ei,eu,ed){if(et.call(eo,ei,eu,ed))return ea=[eu,ei],!1}),ea},findKey:function(et,eo){var ei=this.findEntry(et,eo);return ei&&ei[0]},findLast:function(et,eo,ei){return this.toKeyedSeq().reverse().find(et,eo,ei)},findLastEntry:function(et,eo,ei){return this.toKeyedSeq().reverse().findEntry(et,eo,ei)},findLastKey:function(et,eo){return this.toKeyedSeq().reverse().findKey(et,eo)},first:function(et){return this.find(returnTrue,null,et)},flatMap:function(et,eo){return reify(this,flatMapFactory(this,et,eo))},flatten:function(et){return reify(this,flattenFactory(this,et,!0))},fromEntrySeq:function(){return new tu(this)},get:function(et,eo){return this.find(function(eo,ei){return is(ei,et)},void 0,eo)},getIn:getIn,groupBy:function(et,eo){return groupByFactory(this,et,eo)},has:function(et){return this.get(et,eI)!==eI},hasIn:hasIn,isSubset:function(et){return et="function"==typeof et.includes?et:Collection(et),this.every(function(eo){return et.includes(eo)})},isSuperset:function(et){return(et="function"==typeof et.isSubset?et:Collection(et)).isSubset(this)},keyOf:function(et){return this.findKey(function(eo){return is(eo,et)})},keySeq:function(){return this.toSeq().map(keyMapper).toIndexedSeq()},last:function(et){return this.toSeq().reverse().first(et)},lastKeyOf:function(et){return this.toKeyedSeq().reverse().keyOf(et)},max:function(et){return maxFactory(this,et)},maxBy:function(et,eo){return maxFactory(this,eo,et)},min:function(et){return maxFactory(this,et?neg(et):defaultNegComparator)},minBy:function(et,eo){return maxFactory(this,eo?neg(eo):defaultNegComparator,et)},rest:function(){return this.slice(1)},skip:function(et){return 0===et?this:this.slice(Math.max(0,et))},skipLast:function(et){return 0===et?this:this.slice(0,-Math.max(0,et))},skipWhile:function(et,eo){return reify(this,skipWhileFactory(this,et,eo,!0))},skipUntil:function(et,eo){return this.skipWhile(not(et),eo)},sortBy:function(et,eo){return reify(this,sortFactory(this,eo,et))},take:function(et){return this.slice(0,Math.max(0,et))},takeLast:function(et){return this.slice(-Math.max(0,et))},takeWhile:function(et,eo){return reify(this,takeWhileFactory(this,et,eo))},takeUntil:function(et,eo){return this.takeWhile(not(et),eo)},update:function(et){return et(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hashCollection(this))}});var tO=Collection.prototype;tO[eR]=!0,tO[eG]=tO.values,tO.toJSON=tO.toArray,tO.__toStringMapper=quoteString,tO.inspect=tO.toSource=function(){return this.toString()},tO.chain=tO.flatMap,tO.contains=tO.includes,mixin(eP,{flip:function(){return reify(this,flipFactory(this))},mapEntries:function(et,eo){var ei=this,ea=0;return reify(this,this.toSeq().map(function(eu,ed){return et.call(eo,[ed,eu],ea++,ei)}).fromEntrySeq())},mapKeys:function(et,eo){var ei=this;return reify(this,this.toSeq().flip().map(function(ea,eu){return et.call(eo,ea,eu,ei)}).flip())}});var tx=eP.prototype;tx[eT]=!0,tx[eG]=tO.entries,tx.toJSON=toObject,tx.__toStringMapper=function(et,eo){return quoteString(eo)+": "+quoteString(et)},mixin(ek,{toKeyedSeq:function(){return new ta(this,!1)},filter:function(et,eo){return reify(this,filterFactory(this,et,eo,!1))},findIndex:function(et,eo){var ei=this.findEntry(et,eo);return ei?ei[0]:-1},indexOf:function(et){var eo=this.keyOf(et);return void 0===eo?-1:eo},lastIndexOf:function(et){var eo=this.lastKeyOf(et);return void 0===eo?-1:eo},reverse:function(){return reify(this,reverseFactory(this,!1))},slice:function(et,eo){return reify(this,sliceFactory(this,et,eo,!1))},splice:function(et,eo){var ei=arguments.length;if(eo=Math.max(eo||0,0),0===ei||2===ei&&!eo)return this;et=resolveBegin(et,et<0?this.count():this.size);var ea=this.slice(0,et);return reify(this,1===ei?ea:ea.concat(arrCopy(arguments,2),this.slice(et+eo)))},findLastIndex:function(et,eo){var ei=this.findLastEntry(et,eo);return ei?ei[0]:-1},first:function(et){return this.get(0,et)},flatten:function(et){return reify(this,flattenFactory(this,et,!1))},get:function(et,eo){return(et=wrapIndex(this,et))<0||this.size===1/0||void 0!==this.size&&et>this.size?eo:this.find(function(eo,ei){return ei===et},void 0,eo)},has:function(et){return(et=wrapIndex(this,et))>=0&&(void 0!==this.size?this.size===1/0||et<this.size:-1!==this.indexOf(et))},interpose:function(et){return reify(this,interposeFactory(this,et))},interleave:function(){var et=[this].concat(arrCopy(arguments)),eo=zipWithFactory(this.toSeq(),eW.of,et),ei=eo.flatten(!0);return eo.size&&(ei.size=eo.size*et.length),reify(this,ei)},keySeq:function(){return tk(0,this.size)},last:function(et){return this.get(-1,et)},skipWhile:function(et,eo){return reify(this,skipWhileFactory(this,et,eo,!1))},zip:function(){var et=[this].concat(arrCopy(arguments));return reify(this,zipWithFactory(this,defaultZipper,et))},zipAll:function(){var et=[this].concat(arrCopy(arguments));return reify(this,zipWithFactory(this,defaultZipper,et,!0))},zipWith:function(et){var eo=arrCopy(arguments);return eo[0]=this,reify(this,zipWithFactory(this,et,eo))}});var tM=ek.prototype;tM[eE]=!0,tM[eU]=!0,mixin(eO,{get:function(et,eo){return this.has(et)?et:eo},includes:function(et){return this.has(et)},keySeq:function(){return this.valueSeq()}});var tD=eO.prototype;function reduce(et,eo,ei,ea,eu,ed){return assertNotInfinite(et.size),et.__iterate(function(et,ed,eh){eu?(eu=!1,ei=et):ei=eo.call(ea,ei,et,ed,eh)},ed),ei}function keyMapper(et,eo){return eo}function entryMapper(et,eo){return[eo,et]}function not(et){return function(){return!et.apply(this,arguments)}}function neg(et){return function(){return-et.apply(this,arguments)}}function defaultZipper(){return arrCopy(arguments)}function defaultNegComparator(et,eo){return et<eo?1:et>eo?-1:0}function hashCollection(et){if(et.size===1/0)return 0;var eo=isOrdered(et),ei=isKeyed(et),ea=eo?1:0;return murmurHashOfSize(et.__iterate(ei?eo?function(et,eo){ea=31*ea+hashMerge(hash(et),hash(eo))|0}:function(et,eo){ea=ea+hashMerge(hash(et),hash(eo))|0}:eo?function(et){ea=31*ea+hash(et)|0}:function(et){ea=ea+hash(et)|0}),ea)}function murmurHashOfSize(et,eo){return eo=eQ(eo,3432918353),eo=eQ(eo<<15|eo>>>-15,461845907),eo=((eo=eQ(eo<<13|eo>>>-13,5))+3864292196|0)^et,eo=eQ(eo^eo>>>16,2246822507),eo=smi((eo=eQ(eo^eo>>>13,3266489909))^eo>>>16)}function hashMerge(et,eo){return et^eo+2654435769+(et<<6)+(et>>2)|0}tD.has=tO.includes,tD.contains=tD.includes,tD.keys=tD.values,mixin(ez,tx),mixin(eW,tM),mixin(eV,tD);var tU=function(et){function OrderedSet(et){return null==et?emptyOrderedSet():isOrderedSet(et)?et:emptyOrderedSet().withMutations(function(eo){var ei=eO(et);assertNotInfinite(ei.size),ei.forEach(function(et){return eo.add(et)})})}return et&&(OrderedSet.__proto__=et),OrderedSet.prototype=Object.create(et&&et.prototype),OrderedSet.prototype.constructor=OrderedSet,OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(et){return this(eP(et).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet}(tE);tU.isOrderedSet=isOrderedSet;var tL=tU.prototype;function makeOrderedSet(et,eo){var ei=Object.create(tL);return ei.size=et?et.size:0,ei._map=et,ei.__ownerID=eo,ei}function emptyOrderedSet(){return ey||(ey=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(et){if(isRecord(et))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(et))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===et||"object"!=typeof et)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}tL[eU]=!0,tL.zip=tM.zip,tL.zipWith=tM.zipWith,tL.zipAll=tM.zipAll,tL.__empty=emptyOrderedSet,tL.__make=makeOrderedSet;var Record=function(et,eo){throwOnInvalidDefaultValues(et);var ei,RecordType=function(eu){var ed=this;if(eu instanceof RecordType)return eu;if(!(this instanceof RecordType))return new RecordType(eu);if(!ei){ei=!0;var eh=Object.keys(et),ep=ea._indices={};ea._name=eo,ea._keys=eh,ea._defaultValues=et;for(var ef=0;ef<eh.length;ef++){var em=eh[ef];ep[em]=ef,ea[em]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+recordName(this)+' with property "'+em+'" since that property name is part of the Record API.'):setProp(ea,em)}}return this.__ownerID=void 0,this._values=tC().withMutations(function(et){et.setSize(ed._keys.length),eP(eu).forEach(function(eo,ei){et.set(ed._indices[ei],eo===ed._defaultValues[ei]?void 0:eo)})}),this},ea=RecordType.prototype=Object.create(tN);return ea.constructor=RecordType,eo&&(RecordType.displayName=eo),RecordType};Record.prototype.toString=function(){for(var et,eo=recordName(this)+" { ",ei=this._keys,ea=0,eu=ei.length;ea!==eu;ea++)et=ei[ea],eo+=(ea?", ":"")+et+": "+quoteString(this.get(et));return eo+" }"},Record.prototype.equals=function(et){return this===et||isRecord(et)&&recordSeq(this).equals(recordSeq(et))},Record.prototype.hashCode=function(){return recordSeq(this).hashCode()},Record.prototype.has=function(et){return this._indices.hasOwnProperty(et)},Record.prototype.get=function(et,eo){if(!this.has(et))return eo;var ei=this._indices[et],ea=this._values.get(ei);return void 0===ea?this._defaultValues[et]:ea},Record.prototype.set=function(et,eo){if(this.has(et)){var ei=this._values.set(this._indices[et],eo===this._defaultValues[et]?void 0:eo);if(ei!==this._values&&!this.__ownerID)return makeRecord(this,ei)}return this},Record.prototype.remove=function(et){return this.set(et)},Record.prototype.clear=function(){var et=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:makeRecord(this,et)},Record.prototype.wasAltered=function(){return this._values.wasAltered()},Record.prototype.toSeq=function(){return recordSeq(this)},Record.prototype.toJS=function(){return toJS(this)},Record.prototype.entries=function(){return this.__iterator(eB)},Record.prototype.__iterator=function(et,eo){return recordSeq(this).__iterator(et,eo)},Record.prototype.__iterate=function(et,eo){return recordSeq(this).__iterate(et,eo)},Record.prototype.__ensureOwner=function(et){if(et===this.__ownerID)return this;var eo=this._values.__ensureOwner(et);return et?makeRecord(this,eo,et):(this.__ownerID=et,this._values=eo,this)},Record.isRecord=isRecord,Record.getDescriptiveName=recordName;var tN=Record.prototype;function makeRecord(et,eo,ei){var ea=Object.create(Object.getPrototypeOf(et));return ea._values=eo,ea.__ownerID=ei,ea}function recordName(et){return et.constructor.displayName||et.constructor.name||"Record"}function recordSeq(et){return keyedSeqFromValue(et._keys.map(function(eo){return[eo,et.get(eo)]}))}function setProp(et,eo){try{Object.defineProperty(et,eo,{get:function(){return this.get(eo)},set:function(et){invariant(this.__ownerID,"Cannot set on an immutable record."),this.set(eo,et)}})}catch(et){}}function fromJSWith(et,eo,ei,ea,eu,ed){if("string"!=typeof ei&&!isImmutable(ei)&&(isArrayLike(ei)||hasIterator(ei)||isPlainObject(ei))){if(~et.indexOf(ei))throw TypeError("Cannot convert circular structure to Immutable");et.push(ei),eu&&""!==ea&&eu.push(ea);var eh=eo.call(ed,ea,eK(ei).map(function(ea,ed){return fromJSWith(et,eo,ea,ed,eu,ei)}),eu&&eu.slice());return et.pop(),eu&&eu.pop(),eh}return ei}function defaultConverter(et,eo){return isIndexed(eo)?eo.toList():isKeyed(eo)?eo.toMap():eo.toSet()}tN[eD]=!0,tN[eS]=tN.remove,tN.deleteIn=tN.removeIn=deleteIn,tN.getIn=getIn,tN.hasIn=tO.hasIn,tN.merge=merge$1,tN.mergeWith=mergeWith$1,tN.mergeIn=mergeIn,tN.mergeDeep=mergeDeep,tN.mergeDeepWith=mergeDeepWith,tN.mergeDeepIn=mergeDeepIn,tN.setIn=setIn,tN.update=update,tN.updateIn=updateIn,tN.withMutations=withMutations,tN.asMutable=asMutable,tN.asImmutable=asImmutable,tN[eG]=tN.entries,tN.toJSON=tN.toObject=tO.toObject,tN.inspect=tN.toSource=function(){return this.toString()};var tq={version:"4.1.0",Collection:Collection,Iterable:Collection,Seq:eK,Map:tp,OrderedMap:tw,List:tC,Stack:tI,Set:tE,OrderedSet:tU,Record:Record,Range:tk,Repeat:function(et){function Repeat(et,eo){if(!(this instanceof Repeat))return new Repeat(et,eo);if(this._value=et,this.size=void 0===eo?1/0:Math.max(0,eo),0===this.size){if(eC)return eC;eC=this}}return et&&(Repeat.__proto__=et),Repeat.prototype=Object.create(et&&et.prototype),Repeat.prototype.constructor=Repeat,Repeat.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat.prototype.get=function(et,eo){return this.has(et)?this._value:eo},Repeat.prototype.includes=function(et){return is(this._value,et)},Repeat.prototype.slice=function(et,eo){var ei=this.size;return wholeSlice(et,eo,ei)?this:new Repeat(this._value,resolveEnd(eo,ei)-resolveBegin(et,ei))},Repeat.prototype.reverse=function(){return this},Repeat.prototype.indexOf=function(et){return is(this._value,et)?0:-1},Repeat.prototype.lastIndexOf=function(et){return is(this._value,et)?this.size:-1},Repeat.prototype.__iterate=function(et,eo){for(var ei=this.size,ea=0;ea!==ei&&!1!==et(this._value,eo?ei-++ea:ea++,this););return ea},Repeat.prototype.__iterator=function(et,eo){var ei=this,ea=this.size,eu=0;return new Iterator(function(){return eu===ea?iteratorDone():iteratorValue(et,eo?ea-++eu:eu++,ei._value)})},Repeat.prototype.equals=function(et){return et instanceof Repeat?is(this._value,et._value):deepEqual(et)},Repeat}(eW),is:is,fromJS:function(et,eo){return fromJSWith([],eo||defaultConverter,et,"",eo&&eo.length>2?[]:void 0,{"":et})},hash:hash,isImmutable:isImmutable,isCollection:isCollection,isKeyed:isKeyed,isIndexed:isIndexed,isAssociative:isAssociative,isOrdered:isOrdered,isValueObject:isValueObject,isPlainObject:isPlainObject,isSeq:isSeq,isList:isList,isMap:isMap,isOrderedMap:isOrderedMap,isStack:isStack,isSet:isSet,isOrderedSet:isOrderedSet,isRecord:isRecord,get:get,getIn:getIn$1,has:has,hasIn:hasIn$1,merge:merge,mergeDeep:mergeDeep$1,mergeWith:mergeWith,mergeDeepWith:mergeDeepWith$1,remove:remove,removeIn:removeIn,set:set,setIn:setIn$1,update:update$1,updateIn:updateIn$1};eo.ZP=tq},23634:function(et){!function(eo,ei){et.exports=ei()}(0,function(){"use strict";var et,eo,ei,ea,eu,ed,eh,ep,ef,em,eg=Array.prototype.slice;function createClass(et,eo){eo&&(et.prototype=Object.create(eo.prototype)),et.prototype.constructor=et}function Iterable(et){return isIterable(et)?et:Seq(et)}function KeyedIterable(et){return isKeyed(et)?et:KeyedSeq(et)}function IndexedIterable(et){return isIndexed(et)?et:IndexedSeq(et)}function SetIterable(et){return isIterable(et)&&!isAssociative(et)?et:SetSeq(et)}function isIterable(et){return!!(et&&et[ey])}function isKeyed(et){return!!(et&&et[eC])}function isIndexed(et){return!!(et&&et[eS])}function isAssociative(et){return isKeyed(et)||isIndexed(et)}function isOrdered(et){return!!(et&&et[e_])}createClass(KeyedIterable,Iterable),createClass(IndexedIterable,Iterable),createClass(SetIterable,Iterable),Iterable.isIterable=isIterable,Iterable.isKeyed=isKeyed,Iterable.isIndexed=isIndexed,Iterable.isAssociative=isAssociative,Iterable.isOrdered=isOrdered,Iterable.Keyed=KeyedIterable,Iterable.Indexed=IndexedIterable,Iterable.Set=SetIterable;var ey="@@__IMMUTABLE_ITERABLE__@@",eC="@@__IMMUTABLE_KEYED__@@",eS="@@__IMMUTABLE_INDEXED__@@",e_="@@__IMMUTABLE_ORDERED__@@",ew="delete",eA=5,eI=32,eR=31,eT={},eE={value:!1},eP={value:!1};function MakeRef(et){return et.value=!1,et}function SetRef(et){et&&(et.value=!0)}function OwnerID(){}function arrCopy(et,eo){eo=eo||0;for(var ei=Math.max(0,et.length-eo),ea=Array(ei),eu=0;eu<ei;eu++)ea[eu]=et[eu+eo];return ea}function ensureSize(et){return void 0===et.size&&(et.size=et.__iterate(returnTrue)),et.size}function wrapIndex(et,eo){if("number"!=typeof eo){var ei=eo>>>0;if(""+ei!==eo||4294967295===ei)return NaN;eo=ei}return eo<0?ensureSize(et)+eo:eo}function returnTrue(){return!0}function wholeSlice(et,eo,ei){return(0===et||void 0!==ei&&et<=-ei)&&(void 0===eo||void 0!==ei&&eo>=ei)}function resolveBegin(et,eo){return resolveIndex(et,eo,0)}function resolveEnd(et,eo){return resolveIndex(et,eo,eo)}function resolveIndex(et,eo,ei){return void 0===et?ei:et<0?Math.max(0,eo+et):void 0===eo?et:Math.min(eo,et)}var ek=0,eO=1,eM=2,eD="function"==typeof Symbol&&Symbol.iterator,eU="@@iterator",eL=eD||eU;function Iterator(et){this.next=et}function iteratorValue(et,eo,ei,ea){var eu=0===et?eo:1===et?ei:[eo,ei];return ea?ea.value=eu:ea={value:eu,done:!1},ea}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(et){return!!getIteratorFn(et)}function isIterator(et){return et&&"function"==typeof et.next}function getIterator(et){var eo=getIteratorFn(et);return eo&&eo.call(et)}function getIteratorFn(et){var eo=et&&(eD&&et[eD]||et[eU]);if("function"==typeof eo)return eo}function isArrayLike(et){return et&&"number"==typeof et.length}function Seq(et){return null==et?emptySequence():isIterable(et)?et.toSeq():seqFromValue(et)}function KeyedSeq(et){return null==et?emptySequence().toKeyedSeq():isIterable(et)?isKeyed(et)?et.toSeq():et.fromEntrySeq():keyedSeqFromValue(et)}function IndexedSeq(et){return null==et?emptySequence():isIterable(et)?isKeyed(et)?et.entrySeq():et.toIndexedSeq():indexedSeqFromValue(et)}function SetSeq(et){return(null==et?emptySequence():isIterable(et)?isKeyed(et)?et.entrySeq():et:indexedSeqFromValue(et)).toSetSeq()}Iterator.prototype.toString=function(){return"[Iterator]"},Iterator.KEYS=ek,Iterator.VALUES=eO,Iterator.ENTRIES=eM,Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()},Iterator.prototype[eL]=function(){return this},createClass(Seq,Iterable),Seq.of=function(){return Seq(arguments)},Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function(et,eo){return seqIterate(this,et,eo,!0)},Seq.prototype.__iterator=function(et,eo){return seqIterator(this,et,eo,!0)},createClass(KeyedSeq,Seq),KeyedSeq.prototype.toKeyedSeq=function(){return this},createClass(IndexedSeq,Seq),IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq.prototype.__iterate=function(et,eo){return seqIterate(this,et,eo,!1)},IndexedSeq.prototype.__iterator=function(et,eo){return seqIterator(this,et,eo,!1)},createClass(SetSeq,Seq),SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},Seq.isSeq=isSeq,Seq.Keyed=KeyedSeq,Seq.Set=SetSeq,Seq.Indexed=IndexedSeq;var eN="@@__IMMUTABLE_SEQ__@@";function ArraySeq(et){this._array=et,this.size=et.length}function ObjectSeq(et){var eo=Object.keys(et);this._object=et,this._keys=eo,this.size=eo.length}function IterableSeq(et){this._iterable=et,this.size=et.length||et.size}function IteratorSeq(et){this._iterator=et,this._iteratorCache=[]}function isSeq(et){return!!(et&&et[eN])}function emptySequence(){return et||(et=new ArraySeq([]))}function keyedSeqFromValue(et){var eo=Array.isArray(et)?new ArraySeq(et).fromEntrySeq():isIterator(et)?new IteratorSeq(et).fromEntrySeq():hasIterator(et)?new IterableSeq(et).fromEntrySeq():"object"==typeof et?new ObjectSeq(et):void 0;if(!eo)throw TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+et);return eo}function indexedSeqFromValue(et){var eo=maybeIndexedSeqFromValue(et);if(!eo)throw TypeError("Expected Array or iterable object of values: "+et);return eo}function seqFromValue(et){var eo=maybeIndexedSeqFromValue(et)||"object"==typeof et&&new ObjectSeq(et);if(!eo)throw TypeError("Expected Array or iterable object of values, or keyed object: "+et);return eo}function maybeIndexedSeqFromValue(et){return isArrayLike(et)?new ArraySeq(et):isIterator(et)?new IteratorSeq(et):hasIterator(et)?new IterableSeq(et):void 0}function seqIterate(et,eo,ei,ea){var eu=et._cache;if(eu){for(var ed=eu.length-1,eh=0;eh<=ed;eh++){var ep=eu[ei?ed-eh:eh];if(!1===eo(ep[1],ea?ep[0]:eh,et))return eh+1}return eh}return et.__iterateUncached(eo,ei)}function seqIterator(et,eo,ei,ea){var eu=et._cache;if(eu){var ed=eu.length-1,eh=0;return new Iterator(function(){var et=eu[ei?ed-eh:eh];return eh++>ed?iteratorDone():iteratorValue(eo,ea?et[0]:eh-1,et[1])})}return et.__iteratorUncached(eo,ei)}function fromJS(et,eo){return eo?fromJSWith(eo,et,"",{"":et}):fromJSDefault(et)}function fromJSWith(et,eo,ei,ea){return Array.isArray(eo)?et.call(ea,ei,IndexedSeq(eo).map(function(ei,ea){return fromJSWith(et,ei,ea,eo)})):isPlainObj(eo)?et.call(ea,ei,KeyedSeq(eo).map(function(ei,ea){return fromJSWith(et,ei,ea,eo)})):eo}function fromJSDefault(et){return Array.isArray(et)?IndexedSeq(et).map(fromJSDefault).toList():isPlainObj(et)?KeyedSeq(et).map(fromJSDefault).toMap():et}function isPlainObj(et){return et&&(et.constructor===Object||void 0===et.constructor)}function is(et,eo){if(et===eo||et!=et&&eo!=eo)return!0;if(!et||!eo)return!1;if("function"==typeof et.valueOf&&"function"==typeof eo.valueOf){if((et=et.valueOf())===(eo=eo.valueOf())||et!=et&&eo!=eo)return!0;if(!et||!eo)return!1}return!!("function"==typeof et.equals&&"function"==typeof eo.equals&&et.equals(eo))}function deepEqual(et,eo){if(et===eo)return!0;if(!isIterable(eo)||void 0!==et.size&&void 0!==eo.size&&et.size!==eo.size||void 0!==et.__hash&&void 0!==eo.__hash&&et.__hash!==eo.__hash||isKeyed(et)!==isKeyed(eo)||isIndexed(et)!==isIndexed(eo)||isOrdered(et)!==isOrdered(eo))return!1;if(0===et.size&&0===eo.size)return!0;var ei=!isAssociative(et);if(isOrdered(et)){var ea=et.entries();return eo.every(function(et,eo){var eu=ea.next().value;return eu&&is(eu[1],et)&&(ei||is(eu[0],eo))})&&ea.next().done}var eu=!1;if(void 0===et.size){if(void 0===eo.size)"function"==typeof et.cacheResult&&et.cacheResult();else{eu=!0;var ed=et;et=eo,eo=ed}}var eh=!0,ep=eo.__iterate(function(eo,ea){if(ei?!et.has(eo):eu?!is(eo,et.get(ea,eT)):!is(et.get(ea,eT),eo))return eh=!1,!1});return eh&&et.size===ep}function Repeat(et,ei){if(!(this instanceof Repeat))return new Repeat(et,ei);if(this._value=et,this.size=void 0===ei?1/0:Math.max(0,ei),0===this.size){if(eo)return eo;eo=this}}function invariant(et,eo){if(!et)throw Error(eo)}function Range(et,eo,ea){if(!(this instanceof Range))return new Range(et,eo,ea);if(invariant(0!==ea,"Cannot step a Range by 0"),et=et||0,void 0===eo&&(eo=1/0),ea=void 0===ea?1:Math.abs(ea),eo<et&&(ea=-ea),this._start=et,this._end=eo,this._step=ea,this.size=Math.max(0,Math.ceil((eo-et)/ea-1)+1),0===this.size){if(ei)return ei;ei=this}}function Collection(){throw TypeError("Abstract")}function KeyedCollection(){}function IndexedCollection(){}function SetCollection(){}Seq.prototype[eN]=!0,createClass(ArraySeq,IndexedSeq),ArraySeq.prototype.get=function(et,eo){return this.has(et)?this._array[wrapIndex(this,et)]:eo},ArraySeq.prototype.__iterate=function(et,eo){for(var ei=this._array,ea=ei.length-1,eu=0;eu<=ea;eu++)if(!1===et(ei[eo?ea-eu:eu],eu,this))return eu+1;return eu},ArraySeq.prototype.__iterator=function(et,eo){var ei=this._array,ea=ei.length-1,eu=0;return new Iterator(function(){return eu>ea?iteratorDone():iteratorValue(et,eu,ei[eo?ea-eu++:eu++])})},createClass(ObjectSeq,KeyedSeq),ObjectSeq.prototype.get=function(et,eo){return void 0===eo||this.has(et)?this._object[et]:eo},ObjectSeq.prototype.has=function(et){return this._object.hasOwnProperty(et)},ObjectSeq.prototype.__iterate=function(et,eo){for(var ei=this._object,ea=this._keys,eu=ea.length-1,ed=0;ed<=eu;ed++){var eh=ea[eo?eu-ed:ed];if(!1===et(ei[eh],eh,this))return ed+1}return ed},ObjectSeq.prototype.__iterator=function(et,eo){var ei=this._object,ea=this._keys,eu=ea.length-1,ed=0;return new Iterator(function(){var eh=ea[eo?eu-ed:ed];return ed++>eu?iteratorDone():iteratorValue(et,eh,ei[eh])})},ObjectSeq.prototype[e_]=!0,createClass(IterableSeq,IndexedSeq),IterableSeq.prototype.__iterateUncached=function(et,eo){if(eo)return this.cacheResult().__iterate(et,eo);var ei,ea=getIterator(this._iterable),eu=0;if(isIterator(ea))for(;!(ei=ea.next()).done&&!1!==et(ei.value,eu++,this););return eu},IterableSeq.prototype.__iteratorUncached=function(et,eo){if(eo)return this.cacheResult().__iterator(et,eo);var ei=getIterator(this._iterable);if(!isIterator(ei))return new Iterator(iteratorDone);var ea=0;return new Iterator(function(){var eo=ei.next();return eo.done?eo:iteratorValue(et,ea++,eo.value)})},createClass(IteratorSeq,IndexedSeq),IteratorSeq.prototype.__iterateUncached=function(et,eo){if(eo)return this.cacheResult().__iterate(et,eo);for(var ei,ea=this._iterator,eu=this._iteratorCache,ed=0;ed<eu.length;)if(!1===et(eu[ed],ed++,this))return ed;for(;!(ei=ea.next()).done;){var eh=ei.value;if(eu[ed]=eh,!1===et(eh,ed++,this))break}return ed},IteratorSeq.prototype.__iteratorUncached=function(et,eo){if(eo)return this.cacheResult().__iterator(et,eo);var ei=this._iterator,ea=this._iteratorCache,eu=0;return new Iterator(function(){if(eu>=ea.length){var eo=ei.next();if(eo.done)return eo;ea[eu]=eo.value}return iteratorValue(et,eu,ea[eu++])})},createClass(Repeat,IndexedSeq),Repeat.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat.prototype.get=function(et,eo){return this.has(et)?this._value:eo},Repeat.prototype.includes=function(et){return is(this._value,et)},Repeat.prototype.slice=function(et,eo){var ei=this.size;return wholeSlice(et,eo,ei)?this:new Repeat(this._value,resolveEnd(eo,ei)-resolveBegin(et,ei))},Repeat.prototype.reverse=function(){return this},Repeat.prototype.indexOf=function(et){return is(this._value,et)?0:-1},Repeat.prototype.lastIndexOf=function(et){return is(this._value,et)?this.size:-1},Repeat.prototype.__iterate=function(et,eo){for(var ei=0;ei<this.size;ei++)if(!1===et(this._value,ei,this))return ei+1;return ei},Repeat.prototype.__iterator=function(et,eo){var ei=this,ea=0;return new Iterator(function(){return ea<ei.size?iteratorValue(et,ea++,ei._value):iteratorDone()})},Repeat.prototype.equals=function(et){return et instanceof Repeat?is(this._value,et._value):deepEqual(et)},createClass(Range,IndexedSeq),Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Range.prototype.get=function(et,eo){return this.has(et)?this._start+wrapIndex(this,et)*this._step:eo},Range.prototype.includes=function(et){var eo=(et-this._start)/this._step;return eo>=0&&eo<this.size&&eo===Math.floor(eo)},Range.prototype.slice=function(et,eo){return wholeSlice(et,eo,this.size)?this:(et=resolveBegin(et,this.size),(eo=resolveEnd(eo,this.size))<=et)?new Range(0,0):new Range(this.get(et,this._end),this.get(eo,this._end),this._step)},Range.prototype.indexOf=function(et){var eo=et-this._start;if(eo%this._step==0){var ei=eo/this._step;if(ei>=0&&ei<this.size)return ei}return -1},Range.prototype.lastIndexOf=function(et){return this.indexOf(et)},Range.prototype.__iterate=function(et,eo){for(var ei=this.size-1,ea=this._step,eu=eo?this._start+ei*ea:this._start,ed=0;ed<=ei;ed++){if(!1===et(eu,ed,this))return ed+1;eu+=eo?-ea:ea}return ed},Range.prototype.__iterator=function(et,eo){var ei=this.size-1,ea=this._step,eu=eo?this._start+ei*ea:this._start,ed=0;return new Iterator(function(){var eh=eu;return eu+=eo?-ea:ea,ed>ei?iteratorDone():iteratorValue(et,ed++,eh)})},Range.prototype.equals=function(et){return et instanceof Range?this._start===et._start&&this._end===et._end&&this._step===et._step:deepEqual(this,et)},createClass(Collection,Iterable),createClass(KeyedCollection,Collection),createClass(IndexedCollection,Collection),createClass(SetCollection,Collection),Collection.Keyed=KeyedCollection,Collection.Indexed=IndexedCollection,Collection.Set=SetCollection;var eB="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(et,eo){var ei=65535&(et|=0),ea=65535&(eo|=0);return ei*ea+((et>>>16)*ea+ei*(eo>>>16)<<16>>>0)|0};function smi(et){return et>>>1&1073741824|3221225471&et}function hash(et){if(!1===et||null==et||"function"==typeof et.valueOf&&(!1===(et=et.valueOf())||null==et))return 0;if(!0===et)return 1;var eo=typeof et;if("number"===eo){if(et!=et||et===1/0)return 0;var ei=0|et;for(ei!==et&&(ei^=4294967295*et);et>4294967295;)et/=4294967295,ei^=et;return smi(ei)}if("string"===eo)return et.length>ez?cachedHashString(et):hashString(et);if("function"==typeof et.hashCode)return et.hashCode();if("object"===eo)return hashJSObj(et);if("function"==typeof et.toString)return hashString(et.toString());throw Error("Value type "+eo+" cannot be hashed.")}function cachedHashString(et){var eo=eJ[et];return void 0===eo&&(eo=hashString(et),eV===eW&&(eV=0,eJ={}),eV++,eJ[et]=eo),eo}function hashString(et){for(var eo=0,ei=0;ei<et.length;ei++)eo=31*eo+et.charCodeAt(ei)|0;return smi(eo)}function hashJSObj(et){var eo;if(eG&&void 0!==(eo=ea.get(et))||void 0!==(eo=et[eK])||!ej&&(void 0!==(eo=et.propertyIsEnumerable&&et.propertyIsEnumerable[eK])||void 0!==(eo=getIENodeHash(et))))return eo;if(eo=++eH,1073741824&eH&&(eH=0),eG)ea.set(et,eo);else if(void 0!==eF&&!1===eF(et))throw Error("Non-extensible objects are not allowed as keys.");else if(ej)Object.defineProperty(et,eK,{enumerable:!1,configurable:!1,writable:!1,value:eo});else if(void 0!==et.propertyIsEnumerable&&et.propertyIsEnumerable===et.constructor.prototype.propertyIsEnumerable)et.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},et.propertyIsEnumerable[eK]=eo;else if(void 0!==et.nodeType)et[eK]=eo;else throw Error("Unable to set a non-enumerable property on object.");return eo}var eF=Object.isExtensible,ej=function(){try{return Object.defineProperty({},"@",{}),!0}catch(et){return!1}}();function getIENodeHash(et){if(et&&et.nodeType>0)switch(et.nodeType){case 1:return et.uniqueID;case 9:return et.documentElement&&et.documentElement.uniqueID}}var eG="function"==typeof WeakMap;eG&&(ea=new WeakMap);var eH=0,eK="__immutablehash__";"function"==typeof Symbol&&(eK=Symbol(eK));var ez=16,eW=255,eV=0,eJ={};function assertNotInfinite(et){invariant(et!==1/0,"Cannot perform this action with an infinite size.")}function Map(et){return null==et?emptyMap():isMap(et)&&!isOrdered(et)?et:emptyMap().withMutations(function(eo){var ei=KeyedIterable(et);assertNotInfinite(ei.size),ei.forEach(function(et,ei){return eo.set(ei,et)})})}function isMap(et){return!!(et&&et[eY])}createClass(Map,KeyedCollection),Map.of=function(){var et=eg.call(arguments,0);return emptyMap().withMutations(function(eo){for(var ei=0;ei<et.length;ei+=2){if(ei+1>=et.length)throw Error("Missing value for key: "+et[ei]);eo.set(et[ei],et[ei+1])}})},Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(et,eo){return this._root?this._root.get(0,void 0,et,eo):eo},Map.prototype.set=function(et,eo){return updateMap(this,et,eo)},Map.prototype.setIn=function(et,eo){return this.updateIn(et,eT,function(){return eo})},Map.prototype.remove=function(et){return updateMap(this,et,eT)},Map.prototype.deleteIn=function(et){return this.updateIn(et,function(){return eT})},Map.prototype.update=function(et,eo,ei){return 1==arguments.length?et(this):this.updateIn([et],eo,ei)},Map.prototype.updateIn=function(et,eo,ei){ei||(ei=eo,eo=void 0);var ea=updateInDeepMap(this,forceIterator(et),eo,ei);return ea===eT?void 0:ea},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},Map.prototype.merge=function(){return mergeIntoMapWith(this,void 0,arguments)},Map.prototype.mergeWith=function(et){var eo=eg.call(arguments,1);return mergeIntoMapWith(this,et,eo)},Map.prototype.mergeIn=function(et){var eo=eg.call(arguments,1);return this.updateIn(et,emptyMap(),function(et){return"function"==typeof et.merge?et.merge.apply(et,eo):eo[eo.length-1]})},Map.prototype.mergeDeep=function(){return mergeIntoMapWith(this,deepMerger,arguments)},Map.prototype.mergeDeepWith=function(et){var eo=eg.call(arguments,1);return mergeIntoMapWith(this,deepMergerWith(et),eo)},Map.prototype.mergeDeepIn=function(et){var eo=eg.call(arguments,1);return this.updateIn(et,emptyMap(),function(et){return"function"==typeof et.mergeDeep?et.mergeDeep.apply(et,eo):eo[eo.length-1]})},Map.prototype.sort=function(et){return OrderedMap(sortFactory(this,et))},Map.prototype.sortBy=function(et,eo){return OrderedMap(sortFactory(this,eo,et))},Map.prototype.withMutations=function(et){var eo=this.asMutable();return et(eo),eo.wasAltered()?eo.__ensureOwner(this.__ownerID):this},Map.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)},Map.prototype.asImmutable=function(){return this.__ensureOwner()},Map.prototype.wasAltered=function(){return this.__altered},Map.prototype.__iterator=function(et,eo){return new MapIterator(this,et,eo)},Map.prototype.__iterate=function(et,eo){var ei=this,ea=0;return this._root&&this._root.iterate(function(eo){return ea++,et(eo[1],eo[0],ei)},eo),ea},Map.prototype.__ensureOwner=function(et){return et===this.__ownerID?this:et?makeMap(this.size,this._root,et,this.__hash):(this.__ownerID=et,this.__altered=!1,this)},Map.isMap=isMap;var eY="@@__IMMUTABLE_MAP__@@",e$=Map.prototype;function ArrayMapNode(et,eo){this.ownerID=et,this.entries=eo}function BitmapIndexedNode(et,eo,ei){this.ownerID=et,this.bitmap=eo,this.nodes=ei}function HashArrayMapNode(et,eo,ei){this.ownerID=et,this.count=eo,this.nodes=ei}function HashCollisionNode(et,eo,ei){this.ownerID=et,this.keyHash=eo,this.entries=ei}function ValueNode(et,eo,ei){this.ownerID=et,this.keyHash=eo,this.entry=ei}function MapIterator(et,eo,ei){this._type=eo,this._reverse=ei,this._stack=et._root&&mapIteratorFrame(et._root)}function mapIteratorValue(et,eo){return iteratorValue(et,eo[0],eo[1])}function mapIteratorFrame(et,eo){return{node:et,index:0,__prev:eo}}function makeMap(et,eo,ei,ea){var eu=Object.create(e$);return eu.size=et,eu._root=eo,eu.__ownerID=ei,eu.__hash=ea,eu.__altered=!1,eu}function emptyMap(){return eu||(eu=makeMap(0))}function updateMap(et,eo,ei){if(et._root){var ea,eu,ed=MakeRef(eE),eh=MakeRef(eP);if(ea=updateNode(et._root,et.__ownerID,0,void 0,eo,ei,ed,eh),!eh.value)return et;eu=et.size+(ed.value?ei===eT?-1:1:0)}else{if(ei===eT)return et;eu=1,ea=new ArrayMapNode(et.__ownerID,[[eo,ei]])}return et.__ownerID?(et.size=eu,et._root=ea,et.__hash=void 0,et.__altered=!0,et):ea?makeMap(eu,ea):emptyMap()}function updateNode(et,eo,ei,ea,eu,ed,eh,ep){return et?et.update(eo,ei,ea,eu,ed,eh,ep):ed===eT?et:(SetRef(ep),SetRef(eh),new ValueNode(eo,ea,[eu,ed]))}function isLeafNode(et){return et.constructor===ValueNode||et.constructor===HashCollisionNode}function mergeIntoNode(et,eo,ei,ea,eu){if(et.keyHash===ea)return new HashCollisionNode(eo,ea,[et.entry,eu]);var ed,eh=(0===ei?et.keyHash:et.keyHash>>>ei)&eR,ep=(0===ei?ea:ea>>>ei)&eR,ef=eh===ep?[mergeIntoNode(et,eo,ei+eA,ea,eu)]:(ed=new ValueNode(eo,ea,eu),eh<ep?[et,ed]:[ed,et]);return new BitmapIndexedNode(eo,1<<eh|1<<ep,ef)}function createNodes(et,eo,ei,ea){et||(et=new OwnerID);for(var eu=new ValueNode(et,hash(ei),[ei,ea]),ed=0;ed<eo.length;ed++){var eh=eo[ed];eu=eu.update(et,0,void 0,eh[0],eh[1])}return eu}function packNodes(et,eo,ei,ea){for(var eu=0,ed=0,eh=Array(ei),ep=0,ef=1,em=eo.length;ep<em;ep++,ef<<=1){var eg=eo[ep];void 0!==eg&&ep!==ea&&(eu|=ef,eh[ed++]=eg)}return new BitmapIndexedNode(et,eu,eh)}function expandNodes(et,eo,ei,ea,eu){for(var ed=0,eh=Array(eI),ep=0;0!==ei;ep++,ei>>>=1)eh[ep]=1&ei?eo[ed++]:void 0;return eh[ea]=eu,new HashArrayMapNode(et,ed+1,eh)}function mergeIntoMapWith(et,eo,ei){for(var ea=[],eu=0;eu<ei.length;eu++){var ed=ei[eu],eh=KeyedIterable(ed);isIterable(ed)||(eh=eh.map(function(et){return fromJS(et)})),ea.push(eh)}return mergeIntoCollectionWith(et,eo,ea)}function deepMerger(et,eo,ei){return et&&et.mergeDeep&&isIterable(eo)?et.mergeDeep(eo):is(et,eo)?et:eo}function deepMergerWith(et){return function(eo,ei,ea){if(eo&&eo.mergeDeepWith&&isIterable(ei))return eo.mergeDeepWith(et,ei);var eu=et(eo,ei,ea);return is(eo,eu)?eo:eu}}function mergeIntoCollectionWith(et,eo,ei){return 0===(ei=ei.filter(function(et){return 0!==et.size})).length?et:0!==et.size||et.__ownerID||1!==ei.length?et.withMutations(function(et){for(var ea=eo?function(ei,ea){et.update(ea,eT,function(et){return et===eT?ei:eo(et,ei,ea)})}:function(eo,ei){et.set(ei,eo)},eu=0;eu<ei.length;eu++)ei[eu].forEach(ea)}):et.constructor(ei[0])}function updateInDeepMap(et,eo,ei,ea){var eu=et===eT,ed=eo.next();if(ed.done){var eh=eu?ei:et,ep=ea(eh);return ep===eh?et:ep}invariant(eu||et&&et.set,"invalid keyPath");var ef=ed.value,em=eu?eT:et.get(ef,eT),eg=updateInDeepMap(em,eo,ei,ea);return eg===em?et:eg===eT?et.remove(ef):(eu?emptyMap():et).set(ef,eg)}function popCount(et){return et-=et>>1&1431655765,et=(et=(858993459&et)+(et>>2&858993459))+(et>>4)&252645135,et+=et>>8,127&(et+=et>>16)}function setIn(et,eo,ei,ea){var eu=ea?et:arrCopy(et);return eu[eo]=ei,eu}function spliceIn(et,eo,ei,ea){var eu=et.length+1;if(ea&&eo+1===eu)return et[eo]=ei,et;for(var ed=Array(eu),eh=0,ep=0;ep<eu;ep++)ep===eo?(ed[ep]=ei,eh=-1):ed[ep]=et[ep+eh];return ed}function spliceOut(et,eo,ei){var ea=et.length-1;if(ei&&eo===ea)return et.pop(),et;for(var eu=Array(ea),ed=0,eh=0;eh<ea;eh++)eh===eo&&(ed=1),eu[eh]=et[eh+ed];return eu}e$[eY]=!0,e$[ew]=e$.remove,e$.removeIn=e$.deleteIn,ArrayMapNode.prototype.get=function(et,eo,ei,ea){for(var eu=this.entries,ed=0,eh=eu.length;ed<eh;ed++)if(is(ei,eu[ed][0]))return eu[ed][1];return ea},ArrayMapNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){for(var ep=eu===eT,ef=this.entries,em=0,eg=ef.length;em<eg&&!is(ea,ef[em][0]);em++);var ey=em<eg;if(ey?ef[em][1]===eu:ep)return this;if(SetRef(eh),(ep||!ey)&&SetRef(ed),!ep||1!==ef.length){if(!ey&&!ep&&ef.length>=eZ)return createNodes(et,ef,ea,eu);var eC=et&&et===this.ownerID,eS=eC?ef:arrCopy(ef);return(ey?ep?em===eg-1?eS.pop():eS[em]=eS.pop():eS[em]=[ea,eu]:eS.push([ea,eu]),eC)?(this.entries=eS,this):new ArrayMapNode(et,eS)}},BitmapIndexedNode.prototype.get=function(et,eo,ei,ea){void 0===eo&&(eo=hash(ei));var eu=1<<((0===et?eo:eo>>>et)&eR),ed=this.bitmap;return(ed&eu)==0?ea:this.nodes[popCount(ed&eu-1)].get(et+eA,eo,ei,ea)},BitmapIndexedNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){void 0===ei&&(ei=hash(ea));var ep=(0===eo?ei:ei>>>eo)&eR,ef=1<<ep,em=this.bitmap,eg=(em&ef)!=0;if(!eg&&eu===eT)return this;var ey=popCount(em&ef-1),eC=this.nodes,eS=eg?eC[ey]:void 0,e_=updateNode(eS,et,eo+eA,ei,ea,eu,ed,eh);if(e_===eS)return this;if(!eg&&e_&&eC.length>=eQ)return expandNodes(et,eC,em,ep,e_);if(eg&&!e_&&2===eC.length&&isLeafNode(eC[1^ey]))return eC[1^ey];if(eg&&e_&&1===eC.length&&isLeafNode(e_))return e_;var ew=et&&et===this.ownerID,eI=eg?e_?em:em^ef:em|ef,eE=eg?e_?setIn(eC,ey,e_,ew):spliceOut(eC,ey,ew):spliceIn(eC,ey,e_,ew);return ew?(this.bitmap=eI,this.nodes=eE,this):new BitmapIndexedNode(et,eI,eE)},HashArrayMapNode.prototype.get=function(et,eo,ei,ea){void 0===eo&&(eo=hash(ei));var eu=(0===et?eo:eo>>>et)&eR,ed=this.nodes[eu];return ed?ed.get(et+eA,eo,ei,ea):ea},HashArrayMapNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){void 0===ei&&(ei=hash(ea));var ep=(0===eo?ei:ei>>>eo)&eR,ef=eu===eT,em=this.nodes,eg=em[ep];if(ef&&!eg)return this;var ey=updateNode(eg,et,eo+eA,ei,ea,eu,ed,eh);if(ey===eg)return this;var eC=this.count;if(eg){if(!ey&&--eC<eX)return packNodes(et,em,eC,ep)}else eC++;var eS=et&&et===this.ownerID,e_=setIn(em,ep,ey,eS);return eS?(this.count=eC,this.nodes=e_,this):new HashArrayMapNode(et,eC,e_)},HashCollisionNode.prototype.get=function(et,eo,ei,ea){for(var eu=this.entries,ed=0,eh=eu.length;ed<eh;ed++)if(is(ei,eu[ed][0]))return eu[ed][1];return ea},HashCollisionNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){void 0===ei&&(ei=hash(ea));var ep=eu===eT;if(ei!==this.keyHash)return ep?this:(SetRef(eh),SetRef(ed),mergeIntoNode(this,et,eo,ei,[ea,eu]));for(var ef=this.entries,em=0,eg=ef.length;em<eg&&!is(ea,ef[em][0]);em++);var ey=em<eg;if(ey?ef[em][1]===eu:ep)return this;if(SetRef(eh),(ep||!ey)&&SetRef(ed),ep&&2===eg)return new ValueNode(et,this.keyHash,ef[1^em]);var eC=et&&et===this.ownerID,eS=eC?ef:arrCopy(ef);return(ey?ep?em===eg-1?eS.pop():eS[em]=eS.pop():eS[em]=[ea,eu]:eS.push([ea,eu]),eC)?(this.entries=eS,this):new HashCollisionNode(et,this.keyHash,eS)},ValueNode.prototype.get=function(et,eo,ei,ea){return is(ei,this.entry[0])?this.entry[1]:ea},ValueNode.prototype.update=function(et,eo,ei,ea,eu,ed,eh){var ep=eu===eT,ef=is(ea,this.entry[0]);if(ef?eu===this.entry[1]:ep)return this;if(SetRef(eh),ep){SetRef(ed);return}return ef?et&&et===this.ownerID?(this.entry[1]=eu,this):new ValueNode(et,this.keyHash,[ea,eu]):(SetRef(ed),mergeIntoNode(this,et,eo,hash(ea),[ea,eu]))},ArrayMapNode.prototype.iterate=HashCollisionNode.prototype.iterate=function(et,eo){for(var ei=this.entries,ea=0,eu=ei.length-1;ea<=eu;ea++)if(!1===et(ei[eo?eu-ea:ea]))return!1},BitmapIndexedNode.prototype.iterate=HashArrayMapNode.prototype.iterate=function(et,eo){for(var ei=this.nodes,ea=0,eu=ei.length-1;ea<=eu;ea++){var ed=ei[eo?eu-ea:ea];if(ed&&!1===ed.iterate(et,eo))return!1}},ValueNode.prototype.iterate=function(et,eo){return et(this.entry)},createClass(MapIterator,Iterator),MapIterator.prototype.next=function(){for(var et=this._type,eo=this._stack;eo;){var ei,ea=eo.node,eu=eo.index++;if(ea.entry){if(0===eu)return mapIteratorValue(et,ea.entry)}else if(ea.entries){if(eu<=(ei=ea.entries.length-1))return mapIteratorValue(et,ea.entries[this._reverse?ei-eu:eu])}else if(eu<=(ei=ea.nodes.length-1)){var ed=ea.nodes[this._reverse?ei-eu:eu];if(ed){if(ed.entry)return mapIteratorValue(et,ed.entry);eo=this._stack=mapIteratorFrame(ed,eo)}continue}eo=this._stack=this._stack.__prev}return iteratorDone()};var eZ=eI/4,eQ=eI/2,eX=eI/4;function List(et){var eo=emptyList();if(null==et)return eo;if(isList(et))return et;var ei=IndexedIterable(et),ea=ei.size;return 0===ea?eo:(assertNotInfinite(ea),ea>0&&ea<eI)?makeList(0,ea,eA,null,new VNode(ei.toArray())):eo.withMutations(function(et){et.setSize(ea),ei.forEach(function(eo,ei){return et.set(ei,eo)})})}function isList(et){return!!(et&&et[e0])}createClass(List,IndexedCollection),List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(et,eo){if((et=wrapIndex(this,et))>=0&&et<this.size){var ei=listNodeFor(this,et+=this._origin);return ei&&ei.array[et&eR]}return eo},List.prototype.set=function(et,eo){return updateList(this,et,eo)},List.prototype.remove=function(et){return this.has(et)?0===et?this.shift():et===this.size-1?this.pop():this.splice(et,1):this},List.prototype.insert=function(et,eo){return this.splice(et,0,eo)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=eA,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):emptyList()},List.prototype.push=function(){var et=arguments,eo=this.size;return this.withMutations(function(ei){setListBounds(ei,0,eo+et.length);for(var ea=0;ea<et.length;ea++)ei.set(eo+ea,et[ea])})},List.prototype.pop=function(){return setListBounds(this,0,-1)},List.prototype.unshift=function(){var et=arguments;return this.withMutations(function(eo){setListBounds(eo,-et.length);for(var ei=0;ei<et.length;ei++)eo.set(ei,et[ei])})},List.prototype.shift=function(){return setListBounds(this,1)},List.prototype.merge=function(){return mergeIntoListWith(this,void 0,arguments)},List.prototype.mergeWith=function(et){var eo=eg.call(arguments,1);return mergeIntoListWith(this,et,eo)},List.prototype.mergeDeep=function(){return mergeIntoListWith(this,deepMerger,arguments)},List.prototype.mergeDeepWith=function(et){var eo=eg.call(arguments,1);return mergeIntoListWith(this,deepMergerWith(et),eo)},List.prototype.setSize=function(et){return setListBounds(this,0,et)},List.prototype.slice=function(et,eo){var ei=this.size;return wholeSlice(et,eo,ei)?this:setListBounds(this,resolveBegin(et,ei),resolveEnd(eo,ei))},List.prototype.__iterator=function(et,eo){var ei=0,ea=iterateList(this,eo);return new Iterator(function(){var eo=ea();return eo===e6?iteratorDone():iteratorValue(et,ei++,eo)})},List.prototype.__iterate=function(et,eo){for(var ei,ea=0,eu=iterateList(this,eo);(ei=eu())!==e6&&!1!==et(ei,ea++,this););return ea},List.prototype.__ensureOwner=function(et){return et===this.__ownerID?this:et?makeList(this._origin,this._capacity,this._level,this._root,this._tail,et,this.__hash):(this.__ownerID=et,this)},List.isList=isList;var e0="@@__IMMUTABLE_LIST__@@",e4=List.prototype;function VNode(et,eo){this.array=et,this.ownerID=eo}e4[e0]=!0,e4[ew]=e4.remove,e4.setIn=e$.setIn,e4.deleteIn=e4.removeIn=e$.removeIn,e4.update=e$.update,e4.updateIn=e$.updateIn,e4.mergeIn=e$.mergeIn,e4.mergeDeepIn=e$.mergeDeepIn,e4.withMutations=e$.withMutations,e4.asMutable=e$.asMutable,e4.asImmutable=e$.asImmutable,e4.wasAltered=e$.wasAltered,VNode.prototype.removeBefore=function(et,eo,ei){if(ei===eo?1<<eo:0===this.array.length)return this;var ea,eu=ei>>>eo&eR;if(eu>=this.array.length)return new VNode([],et);var ed=0===eu;if(eo>0){var eh=this.array[eu];if((ea=eh&&eh.removeBefore(et,eo-eA,ei))===eh&&ed)return this}if(ed&&!ea)return this;var ep=editableVNode(this,et);if(!ed)for(var ef=0;ef<eu;ef++)ep.array[ef]=void 0;return ea&&(ep.array[eu]=ea),ep},VNode.prototype.removeAfter=function(et,eo,ei){if(ei===(eo?1<<eo:0)||0===this.array.length)return this;var ea,eu=ei-1>>>eo&eR;if(eu>=this.array.length)return this;if(eo>0){var ed=this.array[eu];if((ea=ed&&ed.removeAfter(et,eo-eA,ei))===ed&&eu===this.array.length-1)return this}var eh=editableVNode(this,et);return eh.array.splice(eu+1),ea&&(eh.array[eu]=ea),eh};var e6={};function iterateList(et,eo){var ei=et._origin,ea=et._capacity,eu=getTailOffset(ea),ed=et._tail;return iterateNodeOrLeaf(et._root,et._level,0);function iterateNodeOrLeaf(et,eo,ei){return 0===eo?iterateLeaf(et,ei):iterateNode(et,eo,ei)}function iterateLeaf(et,eh){var ep=eh===eu?ed&&ed.array:et&&et.array,ef=eh>ei?0:ei-eh,em=ea-eh;return em>eI&&(em=eI),function(){if(ef===em)return e6;var et=eo?--em:ef++;return ep&&ep[et]}}function iterateNode(et,eu,ed){var eh,ep=et&&et.array,ef=ed>ei?0:ei-ed>>eu,em=(ea-ed>>eu)+1;return em>eI&&(em=eI),function(){for(;;){if(eh){var et=eh();if(et!==e6)return et;eh=null}if(ef===em)return e6;var ei=eo?--em:ef++;eh=iterateNodeOrLeaf(ep&&ep[ei],eu-eA,ed+(ei<<eu))}}}}function makeList(et,eo,ei,ea,eu,ed,eh){var ep=Object.create(e4);return ep.size=eo-et,ep._origin=et,ep._capacity=eo,ep._level=ei,ep._root=ea,ep._tail=eu,ep.__ownerID=ed,ep.__hash=eh,ep.__altered=!1,ep}function emptyList(){return ed||(ed=makeList(0,0,eA))}function updateList(et,eo,ei){if((eo=wrapIndex(et,eo))!=eo)return et;if(eo>=et.size||eo<0)return et.withMutations(function(et){eo<0?setListBounds(et,eo).set(0,ei):setListBounds(et,0,eo+1).set(eo,ei)});eo+=et._origin;var ea=et._tail,eu=et._root,ed=MakeRef(eP);return(eo>=getTailOffset(et._capacity)?ea=updateVNode(ea,et.__ownerID,0,eo,ei,ed):eu=updateVNode(eu,et.__ownerID,et._level,eo,ei,ed),ed.value)?et.__ownerID?(et._root=eu,et._tail=ea,et.__hash=void 0,et.__altered=!0,et):makeList(et._origin,et._capacity,et._level,eu,ea):et}function updateVNode(et,eo,ei,ea,eu,ed){var eh,ep=ea>>>ei&eR,ef=et&&ep<et.array.length;if(!ef&&void 0===eu)return et;if(ei>0){var em=et&&et.array[ep],eg=updateVNode(em,eo,ei-eA,ea,eu,ed);return eg===em?et:((eh=editableVNode(et,eo)).array[ep]=eg,eh)}return ef&&et.array[ep]===eu?et:(SetRef(ed),eh=editableVNode(et,eo),void 0===eu&&ep===eh.array.length-1?eh.array.pop():eh.array[ep]=eu,eh)}function editableVNode(et,eo){return eo&&et&&eo===et.ownerID?et:new VNode(et?et.array.slice():[],eo)}function listNodeFor(et,eo){if(eo>=getTailOffset(et._capacity))return et._tail;if(eo<1<<et._level+eA){for(var ei=et._root,ea=et._level;ei&&ea>0;)ei=ei.array[eo>>>ea&eR],ea-=eA;return ei}}function setListBounds(et,eo,ei){void 0!==eo&&(eo|=0),void 0!==ei&&(ei|=0);var ea=et.__ownerID||new OwnerID,eu=et._origin,ed=et._capacity,eh=eu+eo,ep=void 0===ei?ed:ei<0?ed+ei:eu+ei;if(eh===eu&&ep===ed)return et;if(eh>=ep)return et.clear();for(var ef=et._level,em=et._root,eg=0;eh+eg<0;)em=new VNode(em&&em.array.length?[void 0,em]:[],ea),ef+=eA,eg+=1<<ef;eg&&(eh+=eg,eu+=eg,ep+=eg,ed+=eg);for(var ey=getTailOffset(ed),eC=getTailOffset(ep);eC>=1<<ef+eA;)em=new VNode(em&&em.array.length?[em]:[],ea),ef+=eA;var eS=et._tail,e_=eC<ey?listNodeFor(et,ep-1):eC>ey?new VNode([],ea):eS;if(eS&&eC>ey&&eh<ed&&eS.array.length){for(var ew=em=editableVNode(em,ea),eI=ef;eI>eA;eI-=eA){var eT=ey>>>eI&eR;ew=ew.array[eT]=editableVNode(ew.array[eT],ea)}ew.array[ey>>>eA&eR]=eS}if(ep<ed&&(e_=e_&&e_.removeAfter(ea,0,ep)),eh>=eC)eh-=eC,ep-=eC,ef=eA,em=null,e_=e_&&e_.removeBefore(ea,0,eh);else if(eh>eu||eC<ey){for(eg=0;em;){var eE=eh>>>ef&eR;if(eE!==eC>>>ef&eR)break;eE&&(eg+=(1<<ef)*eE),ef-=eA,em=em.array[eE]}em&&eh>eu&&(em=em.removeBefore(ea,ef,eh-eg)),em&&eC<ey&&(em=em.removeAfter(ea,ef,eC-eg)),eg&&(eh-=eg,ep-=eg)}return et.__ownerID?(et.size=ep-eh,et._origin=eh,et._capacity=ep,et._level=ef,et._root=em,et._tail=e_,et.__hash=void 0,et.__altered=!0,et):makeList(eh,ep,ef,em,e_)}function mergeIntoListWith(et,eo,ei){for(var ea=[],eu=0,ed=0;ed<ei.length;ed++){var eh=ei[ed],ep=IndexedIterable(eh);ep.size>eu&&(eu=ep.size),isIterable(eh)||(ep=ep.map(function(et){return fromJS(et)})),ea.push(ep)}return eu>et.size&&(et=et.setSize(eu)),mergeIntoCollectionWith(et,eo,ea)}function getTailOffset(et){return et<eI?0:et-1>>>eA<<eA}function OrderedMap(et){return null==et?emptyOrderedMap():isOrderedMap(et)?et:emptyOrderedMap().withMutations(function(eo){var ei=KeyedIterable(et);assertNotInfinite(ei.size),ei.forEach(function(et,ei){return eo.set(ei,et)})})}function isOrderedMap(et){return isMap(et)&&isOrdered(et)}function makeOrderedMap(et,eo,ei,ea){var eu=Object.create(OrderedMap.prototype);return eu.size=et?et.size:0,eu._map=et,eu._list=eo,eu.__ownerID=ei,eu.__hash=ea,eu}function emptyOrderedMap(){return eh||(eh=makeOrderedMap(emptyMap(),emptyList()))}function updateOrderedMap(et,eo,ei){var ea,eu,ed=et._map,eh=et._list,ep=ed.get(eo),ef=void 0!==ep;if(ei===eT){if(!ef)return et;eh.size>=eI&&eh.size>=2*ed.size?(ea=(eu=eh.filter(function(et,eo){return void 0!==et&&ep!==eo})).toKeyedSeq().map(function(et){return et[0]}).flip().toMap(),et.__ownerID&&(ea.__ownerID=eu.__ownerID=et.__ownerID)):(ea=ed.remove(eo),eu=ep===eh.size-1?eh.pop():eh.set(ep,void 0))}else if(ef){if(ei===eh.get(ep)[1])return et;ea=ed,eu=eh.set(ep,[eo,ei])}else ea=ed.set(eo,eh.size),eu=eh.set(eh.size,[eo,ei]);return et.__ownerID?(et.size=ea.size,et._map=ea,et._list=eu,et.__hash=void 0,et):makeOrderedMap(ea,eu)}function ToKeyedSequence(et,eo){this._iter=et,this._useKeys=eo,this.size=et.size}function ToIndexedSequence(et){this._iter=et,this.size=et.size}function ToSetSequence(et){this._iter=et,this.size=et.size}function FromEntriesSequence(et){this._iter=et,this.size=et.size}function flipFactory(et){var eo=makeSequence(et);return eo._iter=et,eo.size=et.size,eo.flip=function(){return et},eo.reverse=function(){var eo=et.reverse.apply(this);return eo.flip=function(){return et.reverse()},eo},eo.has=function(eo){return et.includes(eo)},eo.includes=function(eo){return et.has(eo)},eo.cacheResult=cacheResultThrough,eo.__iterateUncached=function(eo,ei){var ea=this;return et.__iterate(function(et,ei){return!1!==eo(ei,et,ea)},ei)},eo.__iteratorUncached=function(eo,ei){if(eo===eM){var ea=et.__iterator(eo,ei);return new Iterator(function(){var et=ea.next();if(!et.done){var eo=et.value[0];et.value[0]=et.value[1],et.value[1]=eo}return et})}return et.__iterator(eo===eO?ek:eO,ei)},eo}function mapFactory(et,eo,ei){var ea=makeSequence(et);return ea.size=et.size,ea.has=function(eo){return et.has(eo)},ea.get=function(ea,eu){var ed=et.get(ea,eT);return ed===eT?eu:eo.call(ei,ed,ea,et)},ea.__iterateUncached=function(ea,eu){var ed=this;return et.__iterate(function(et,eu,eh){return!1!==ea(eo.call(ei,et,eu,eh),eu,ed)},eu)},ea.__iteratorUncached=function(ea,eu){var ed=et.__iterator(eM,eu);return new Iterator(function(){var eu=ed.next();if(eu.done)return eu;var eh=eu.value,ep=eh[0];return iteratorValue(ea,ep,eo.call(ei,eh[1],ep,et),eu)})},ea}function reverseFactory(et,eo){var ei=makeSequence(et);return ei._iter=et,ei.size=et.size,ei.reverse=function(){return et},et.flip&&(ei.flip=function(){var eo=flipFactory(et);return eo.reverse=function(){return et.flip()},eo}),ei.get=function(ei,ea){return et.get(eo?ei:-1-ei,ea)},ei.has=function(ei){return et.has(eo?ei:-1-ei)},ei.includes=function(eo){return et.includes(eo)},ei.cacheResult=cacheResultThrough,ei.__iterate=function(eo,ei){var ea=this;return et.__iterate(function(et,ei){return eo(et,ei,ea)},!ei)},ei.__iterator=function(eo,ei){return et.__iterator(eo,!ei)},ei}function filterFactory(et,eo,ei,ea){var eu=makeSequence(et);return ea&&(eu.has=function(ea){var eu=et.get(ea,eT);return eu!==eT&&!!eo.call(ei,eu,ea,et)},eu.get=function(ea,eu){var ed=et.get(ea,eT);return ed!==eT&&eo.call(ei,ed,ea,et)?ed:eu}),eu.__iterateUncached=function(eu,ed){var eh=this,ep=0;return et.__iterate(function(et,ed,ef){if(eo.call(ei,et,ed,ef))return ep++,eu(et,ea?ed:ep-1,eh)},ed),ep},eu.__iteratorUncached=function(eu,ed){var eh=et.__iterator(eM,ed),ep=0;return new Iterator(function(){for(;;){var ed=eh.next();if(ed.done)return ed;var ef=ed.value,em=ef[0],eg=ef[1];if(eo.call(ei,eg,em,et))return iteratorValue(eu,ea?em:ep++,eg,ed)}})},eu}function countByFactory(et,eo,ei){var ea=Map().asMutable();return et.__iterate(function(eu,ed){ea.update(eo.call(ei,eu,ed,et),0,function(et){return et+1})}),ea.asImmutable()}function groupByFactory(et,eo,ei){var ea=isKeyed(et),eu=(isOrdered(et)?OrderedMap():Map()).asMutable();et.__iterate(function(ed,eh){eu.update(eo.call(ei,ed,eh,et),function(et){return(et=et||[]).push(ea?[eh,ed]:ed),et})});var ed=iterableClass(et);return eu.map(function(eo){return reify(et,ed(eo))})}function sliceFactory(et,eo,ei,ea){var eu,ed=et.size;if(void 0!==eo&&(eo|=0),void 0!==ei&&(ei===1/0?ei=ed:ei|=0),wholeSlice(eo,ei,ed))return et;var eh=resolveBegin(eo,ed),ep=resolveEnd(ei,ed);if(eh!=eh||ep!=ep)return sliceFactory(et.toSeq().cacheResult(),eo,ei,ea);var ef=ep-eh;ef==ef&&(eu=ef<0?0:ef);var em=makeSequence(et);return em.size=0===eu?eu:et.size&&eu||void 0,!ea&&isSeq(et)&&eu>=0&&(em.get=function(eo,ei){return(eo=wrapIndex(this,eo))>=0&&eo<eu?et.get(eo+eh,ei):ei}),em.__iterateUncached=function(eo,ei){var ed=this;if(0===eu)return 0;if(ei)return this.cacheResult().__iterate(eo,ei);var ep=0,ef=!0,em=0;return et.__iterate(function(et,ei){if(!(ef&&(ef=ep++<eh)))return em++,!1!==eo(et,ea?ei:em-1,ed)&&em!==eu}),em},em.__iteratorUncached=function(eo,ei){if(0!==eu&&ei)return this.cacheResult().__iterator(eo,ei);var ed=0!==eu&&et.__iterator(eo,ei),ep=0,ef=0;return new Iterator(function(){for(;ep++<eh;)ed.next();if(++ef>eu)return iteratorDone();var et=ed.next();return ea||eo===eO?et:eo===ek?iteratorValue(eo,ef-1,void 0,et):iteratorValue(eo,ef-1,et.value[1],et)})},em}function takeWhileFactory(et,eo,ei){var ea=makeSequence(et);return ea.__iterateUncached=function(ea,eu){var ed=this;if(eu)return this.cacheResult().__iterate(ea,eu);var eh=0;return et.__iterate(function(et,eu,ep){return eo.call(ei,et,eu,ep)&&++eh&&ea(et,eu,ed)}),eh},ea.__iteratorUncached=function(ea,eu){var ed=this;if(eu)return this.cacheResult().__iterator(ea,eu);var eh=et.__iterator(eM,eu),ep=!0;return new Iterator(function(){if(!ep)return iteratorDone();var et=eh.next();if(et.done)return et;var eu=et.value,ef=eu[0],em=eu[1];return eo.call(ei,em,ef,ed)?ea===eM?et:iteratorValue(ea,ef,em,et):(ep=!1,iteratorDone())})},ea}function skipWhileFactory(et,eo,ei,ea){var eu=makeSequence(et);return eu.__iterateUncached=function(eu,ed){var eh=this;if(ed)return this.cacheResult().__iterate(eu,ed);var ep=!0,ef=0;return et.__iterate(function(et,ed,em){if(!(ep&&(ep=eo.call(ei,et,ed,em))))return ef++,eu(et,ea?ed:ef-1,eh)}),ef},eu.__iteratorUncached=function(eu,ed){var eh=this;if(ed)return this.cacheResult().__iterator(eu,ed);var ep=et.__iterator(eM,ed),ef=!0,em=0;return new Iterator(function(){var et,ed,eg;do{if((et=ep.next()).done){if(ea||eu===eO)return et;if(eu===ek)return iteratorValue(eu,em++,void 0,et);return iteratorValue(eu,em++,et.value[1],et)}var ey=et.value;ed=ey[0],eg=ey[1],ef&&(ef=eo.call(ei,eg,ed,eh))}while(ef);return eu===eM?et:iteratorValue(eu,ed,eg,et)})},eu}function concatFactory(et,eo){var ei=isKeyed(et),ea=[et].concat(eo).map(function(et){return isIterable(et)?ei&&(et=KeyedIterable(et)):et=ei?keyedSeqFromValue(et):indexedSeqFromValue(Array.isArray(et)?et:[et]),et}).filter(function(et){return 0!==et.size});if(0===ea.length)return et;if(1===ea.length){var eu=ea[0];if(eu===et||ei&&isKeyed(eu)||isIndexed(et)&&isIndexed(eu))return eu}var ed=new ArraySeq(ea);return ei?ed=ed.toKeyedSeq():isIndexed(et)||(ed=ed.toSetSeq()),(ed=ed.flatten(!0)).size=ea.reduce(function(et,eo){if(void 0!==et){var ei=eo.size;if(void 0!==ei)return et+ei}},0),ed}function flattenFactory(et,eo,ei){var ea=makeSequence(et);return ea.__iterateUncached=function(ea,eu){var ed=0,eh=!1;function flatDeep(et,ep){var ef=this;et.__iterate(function(et,eu){return(!eo||ep<eo)&&isIterable(et)?flatDeep(et,ep+1):!1===ea(et,ei?eu:ed++,ef)&&(eh=!0),!eh},eu)}return flatDeep(et,0),ed},ea.__iteratorUncached=function(ea,eu){var ed=et.__iterator(ea,eu),eh=[],ep=0;return new Iterator(function(){for(;ed;){var et=ed.next();if(!1!==et.done){ed=eh.pop();continue}var ef=et.value;if(ea===eM&&(ef=ef[1]),!((!eo||eh.length<eo)&&isIterable(ef)))return ei?et:iteratorValue(ea,ep++,ef,et);eh.push(ed),ed=ef.__iterator(ea,eu)}return iteratorDone()})},ea}function flatMapFactory(et,eo,ei){var ea=iterableClass(et);return et.toSeq().map(function(eu,ed){return ea(eo.call(ei,eu,ed,et))}).flatten(!0)}function interposeFactory(et,eo){var ei=makeSequence(et);return ei.size=et.size&&2*et.size-1,ei.__iterateUncached=function(ei,ea){var eu=this,ed=0;return et.__iterate(function(et,ea){return(!ed||!1!==ei(eo,ed++,eu))&&!1!==ei(et,ed++,eu)},ea),ed},ei.__iteratorUncached=function(ei,ea){var eu,ed=et.__iterator(eO,ea),eh=0;return new Iterator(function(){return(!eu||eh%2)&&(eu=ed.next()).done?eu:eh%2?iteratorValue(ei,eh++,eo):iteratorValue(ei,eh++,eu.value,eu)})},ei}function sortFactory(et,eo,ei){eo||(eo=defaultComparator);var ea=isKeyed(et),eu=0,ed=et.toSeq().map(function(eo,ea){return[ea,eo,eu++,ei?ei(eo,ea,et):eo]}).toArray();return ed.sort(function(et,ei){return eo(et[3],ei[3])||et[2]-ei[2]}).forEach(ea?function(et,eo){ed[eo].length=2}:function(et,eo){ed[eo]=et[1]}),ea?KeyedSeq(ed):isIndexed(et)?IndexedSeq(ed):SetSeq(ed)}function maxFactory(et,eo,ei){if(eo||(eo=defaultComparator),!ei)return et.reduce(function(et,ei){return maxCompare(eo,et,ei)?ei:et});var ea=et.toSeq().map(function(eo,ea){return[eo,ei(eo,ea,et)]}).reduce(function(et,ei){return maxCompare(eo,et[1],ei[1])?ei:et});return ea&&ea[0]}function maxCompare(et,eo,ei){var ea=et(ei,eo);return 0===ea&&ei!==eo&&(null==ei||ei!=ei)||ea>0}function zipWithFactory(et,eo,ei){var ea=makeSequence(et);return ea.size=new ArraySeq(ei).map(function(et){return et.size}).min(),ea.__iterate=function(et,eo){for(var ei,ea=this.__iterator(eO,eo),eu=0;!(ei=ea.next()).done&&!1!==et(ei.value,eu++,this););return eu},ea.__iteratorUncached=function(et,ea){var eu=ei.map(function(et){return et=Iterable(et),getIterator(ea?et.reverse():et)}),ed=0,eh=!1;return new Iterator(function(){var ei;return(eh||(eh=(ei=eu.map(function(et){return et.next()})).some(function(et){return et.done})),eh)?iteratorDone():iteratorValue(et,ed++,eo.apply(null,ei.map(function(et){return et.value})))})},ea}function reify(et,eo){return isSeq(et)?eo:et.constructor(eo)}function validateEntry(et){if(et!==Object(et))throw TypeError("Expected [K, V] tuple: "+et)}function resolveSize(et){return assertNotInfinite(et.size),ensureSize(et)}function iterableClass(et){return isKeyed(et)?KeyedIterable:isIndexed(et)?IndexedIterable:SetIterable}function makeSequence(et){return Object.create((isKeyed(et)?KeyedSeq:isIndexed(et)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(et,eo){return et>eo?1:et<eo?-1:0}function forceIterator(et){var eo=getIterator(et);if(!eo){if(!isArrayLike(et))throw TypeError("Expected iterable or array-like: "+et);eo=getIterator(Iterable(et))}return eo}function Record(et,eo){var ei,RecordType=function(eu){if(eu instanceof RecordType)return eu;if(!(this instanceof RecordType))return new RecordType(eu);if(!ei){ei=!0;var ed=Object.keys(et);setProps(ea,ed),ea.size=ed.length,ea._name=eo,ea._keys=ed,ea._defaultValues=et}this._map=Map(eu)},ea=RecordType.prototype=Object.create(e5);return ea.constructor=RecordType,RecordType}createClass(OrderedMap,Map),OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(et,eo){var ei=this._map.get(et);return void 0!==ei?this._list.get(ei)[1]:eo},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):emptyOrderedMap()},OrderedMap.prototype.set=function(et,eo){return updateOrderedMap(this,et,eo)},OrderedMap.prototype.remove=function(et){return updateOrderedMap(this,et,eT)},OrderedMap.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},OrderedMap.prototype.__iterate=function(et,eo){var ei=this;return this._list.__iterate(function(eo){return eo&&et(eo[1],eo[0],ei)},eo)},OrderedMap.prototype.__iterator=function(et,eo){return this._list.fromEntrySeq().__iterator(et,eo)},OrderedMap.prototype.__ensureOwner=function(et){if(et===this.__ownerID)return this;var eo=this._map.__ensureOwner(et),ei=this._list.__ensureOwner(et);return et?makeOrderedMap(eo,ei,et,this.__hash):(this.__ownerID=et,this._map=eo,this._list=ei,this)},OrderedMap.isOrderedMap=isOrderedMap,OrderedMap.prototype[e_]=!0,OrderedMap.prototype[ew]=OrderedMap.prototype.remove,createClass(ToKeyedSequence,KeyedSeq),ToKeyedSequence.prototype.get=function(et,eo){return this._iter.get(et,eo)},ToKeyedSequence.prototype.has=function(et){return this._iter.has(et)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var et=this,eo=reverseFactory(this,!0);return this._useKeys||(eo.valueSeq=function(){return et._iter.toSeq().reverse()}),eo},ToKeyedSequence.prototype.map=function(et,eo){var ei=this,ea=mapFactory(this,et,eo);return this._useKeys||(ea.valueSeq=function(){return ei._iter.toSeq().map(et,eo)}),ea},ToKeyedSequence.prototype.__iterate=function(et,eo){var ei,ea=this;return this._iter.__iterate(this._useKeys?function(eo,ei){return et(eo,ei,ea)}:(ei=eo?resolveSize(this):0,function(eu){return et(eu,eo?--ei:ei++,ea)}),eo)},ToKeyedSequence.prototype.__iterator=function(et,eo){if(this._useKeys)return this._iter.__iterator(et,eo);var ei=this._iter.__iterator(eO,eo),ea=eo?resolveSize(this):0;return new Iterator(function(){var eu=ei.next();return eu.done?eu:iteratorValue(et,eo?--ea:ea++,eu.value,eu)})},ToKeyedSequence.prototype[e_]=!0,createClass(ToIndexedSequence,IndexedSeq),ToIndexedSequence.prototype.includes=function(et){return this._iter.includes(et)},ToIndexedSequence.prototype.__iterate=function(et,eo){var ei=this,ea=0;return this._iter.__iterate(function(eo){return et(eo,ea++,ei)},eo)},ToIndexedSequence.prototype.__iterator=function(et,eo){var ei=this._iter.__iterator(eO,eo),ea=0;return new Iterator(function(){var eo=ei.next();return eo.done?eo:iteratorValue(et,ea++,eo.value,eo)})},createClass(ToSetSequence,SetSeq),ToSetSequence.prototype.has=function(et){return this._iter.includes(et)},ToSetSequence.prototype.__iterate=function(et,eo){var ei=this;return this._iter.__iterate(function(eo){return et(eo,eo,ei)},eo)},ToSetSequence.prototype.__iterator=function(et,eo){var ei=this._iter.__iterator(eO,eo);return new Iterator(function(){var eo=ei.next();return eo.done?eo:iteratorValue(et,eo.value,eo.value,eo)})},createClass(FromEntriesSequence,KeyedSeq),FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function(et,eo){var ei=this;return this._iter.__iterate(function(eo){if(eo){validateEntry(eo);var ea=isIterable(eo);return et(ea?eo.get(1):eo[1],ea?eo.get(0):eo[0],ei)}},eo)},FromEntriesSequence.prototype.__iterator=function(et,eo){var ei=this._iter.__iterator(eO,eo);return new Iterator(function(){for(;;){var eo=ei.next();if(eo.done)return eo;var ea=eo.value;if(ea){validateEntry(ea);var eu=isIterable(ea);return iteratorValue(et,eu?ea.get(0):ea[0],eu?ea.get(1):ea[1],eo)}}})},ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough,createClass(Record,KeyedCollection),Record.prototype.toString=function(){return this.__toString(recordName(this)+" {","}")},Record.prototype.has=function(et){return this._defaultValues.hasOwnProperty(et)},Record.prototype.get=function(et,eo){if(!this.has(et))return eo;var ei=this._defaultValues[et];return this._map?this._map.get(et,ei):ei},Record.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var et=this.constructor;return et._empty||(et._empty=makeRecord(this,emptyMap()))},Record.prototype.set=function(et,eo){if(!this.has(et))throw Error('Cannot set unknown key "'+et+'" on '+recordName(this));if(this._map&&!this._map.has(et)&&eo===this._defaultValues[et])return this;var ei=this._map&&this._map.set(et,eo);return this.__ownerID||ei===this._map?this:makeRecord(this,ei)},Record.prototype.remove=function(et){if(!this.has(et))return this;var eo=this._map&&this._map.remove(et);return this.__ownerID||eo===this._map?this:makeRecord(this,eo)},Record.prototype.wasAltered=function(){return this._map.wasAltered()},Record.prototype.__iterator=function(et,eo){var ei=this;return KeyedIterable(this._defaultValues).map(function(et,eo){return ei.get(eo)}).__iterator(et,eo)},Record.prototype.__iterate=function(et,eo){var ei=this;return KeyedIterable(this._defaultValues).map(function(et,eo){return ei.get(eo)}).__iterate(et,eo)},Record.prototype.__ensureOwner=function(et){if(et===this.__ownerID)return this;var eo=this._map&&this._map.__ensureOwner(et);return et?makeRecord(this,eo,et):(this.__ownerID=et,this._map=eo,this)};var e5=Record.prototype;function makeRecord(et,eo,ei){var ea=Object.create(Object.getPrototypeOf(et));return ea._map=eo,ea.__ownerID=ei,ea}function recordName(et){return et._name||et.constructor.name||"Record"}function setProps(et,eo){try{eo.forEach(setProp.bind(void 0,et))}catch(et){}}function setProp(et,eo){Object.defineProperty(et,eo,{get:function(){return this.get(eo)},set:function(et){invariant(this.__ownerID,"Cannot set on an immutable record."),this.set(eo,et)}})}function Set(et){return null==et?emptySet():isSet(et)&&!isOrdered(et)?et:emptySet().withMutations(function(eo){var ei=SetIterable(et);assertNotInfinite(ei.size),ei.forEach(function(et){return eo.add(et)})})}function isSet(et){return!!(et&&et[e8])}e5[ew]=e5.remove,e5.deleteIn=e5.removeIn=e$.removeIn,e5.merge=e$.merge,e5.mergeWith=e$.mergeWith,e5.mergeIn=e$.mergeIn,e5.mergeDeep=e$.mergeDeep,e5.mergeDeepWith=e$.mergeDeepWith,e5.mergeDeepIn=e$.mergeDeepIn,e5.setIn=e$.setIn,e5.update=e$.update,e5.updateIn=e$.updateIn,e5.withMutations=e$.withMutations,e5.asMutable=e$.asMutable,e5.asImmutable=e$.asImmutable,createClass(Set,SetCollection),Set.of=function(){return this(arguments)},Set.fromKeys=function(et){return this(KeyedIterable(et).keySeq())},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(et){return this._map.has(et)},Set.prototype.add=function(et){return updateSet(this,this._map.set(et,!0))},Set.prototype.remove=function(et){return updateSet(this,this._map.remove(et))},Set.prototype.clear=function(){return updateSet(this,this._map.clear())},Set.prototype.union=function(){var et=eg.call(arguments,0);return 0===(et=et.filter(function(et){return 0!==et.size})).length?this:0!==this.size||this.__ownerID||1!==et.length?this.withMutations(function(eo){for(var ei=0;ei<et.length;ei++)SetIterable(et[ei]).forEach(function(et){return eo.add(et)})}):this.constructor(et[0])},Set.prototype.intersect=function(){var et=eg.call(arguments,0);if(0===et.length)return this;et=et.map(function(et){return SetIterable(et)});var eo=this;return this.withMutations(function(ei){eo.forEach(function(eo){et.every(function(et){return et.includes(eo)})||ei.remove(eo)})})},Set.prototype.subtract=function(){var et=eg.call(arguments,0);if(0===et.length)return this;et=et.map(function(et){return SetIterable(et)});var eo=this;return this.withMutations(function(ei){eo.forEach(function(eo){et.some(function(et){return et.includes(eo)})&&ei.remove(eo)})})},Set.prototype.merge=function(){return this.union.apply(this,arguments)},Set.prototype.mergeWith=function(et){var eo=eg.call(arguments,1);return this.union.apply(this,eo)},Set.prototype.sort=function(et){return OrderedSet(sortFactory(this,et))},Set.prototype.sortBy=function(et,eo){return OrderedSet(sortFactory(this,eo,et))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function(et,eo){var ei=this;return this._map.__iterate(function(eo,ea){return et(ea,ea,ei)},eo)},Set.prototype.__iterator=function(et,eo){return this._map.map(function(et,eo){return eo}).__iterator(et,eo)},Set.prototype.__ensureOwner=function(et){if(et===this.__ownerID)return this;var eo=this._map.__ensureOwner(et);return et?this.__make(eo,et):(this.__ownerID=et,this._map=eo,this)},Set.isSet=isSet;var e8="@@__IMMUTABLE_SET__@@",e7=Set.prototype;function updateSet(et,eo){return et.__ownerID?(et.size=eo.size,et._map=eo,et):eo===et._map?et:0===eo.size?et.__empty():et.__make(eo)}function makeSet(et,eo){var ei=Object.create(e7);return ei.size=et?et.size:0,ei._map=et,ei.__ownerID=eo,ei}function emptySet(){return ep||(ep=makeSet(emptyMap()))}function OrderedSet(et){return null==et?emptyOrderedSet():isOrderedSet(et)?et:emptyOrderedSet().withMutations(function(eo){var ei=SetIterable(et);assertNotInfinite(ei.size),ei.forEach(function(et){return eo.add(et)})})}function isOrderedSet(et){return isSet(et)&&isOrdered(et)}e7[e8]=!0,e7[ew]=e7.remove,e7.mergeDeep=e7.merge,e7.mergeDeepWith=e7.mergeWith,e7.withMutations=e$.withMutations,e7.asMutable=e$.asMutable,e7.asImmutable=e$.asImmutable,e7.__empty=emptySet,e7.__make=makeSet,createClass(OrderedSet,Set),OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(et){return this(KeyedIterable(et).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet.isOrderedSet=isOrderedSet;var e9=OrderedSet.prototype;function makeOrderedSet(et,eo){var ei=Object.create(e9);return ei.size=et?et.size:0,ei._map=et,ei.__ownerID=eo,ei}function emptyOrderedSet(){return ef||(ef=makeOrderedSet(emptyOrderedMap()))}function Stack(et){return null==et?emptyStack():isStack(et)?et:emptyStack().unshiftAll(et)}function isStack(et){return!!(et&&et[tr])}e9[e_]=!0,e9.__empty=emptyOrderedSet,e9.__make=makeOrderedSet,createClass(Stack,IndexedCollection),Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(et,eo){var ei=this._head;for(et=wrapIndex(this,et);ei&&et--;)ei=ei.next;return ei?ei.value:eo},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){if(0==arguments.length)return this;for(var et=this.size+arguments.length,eo=this._head,ei=arguments.length-1;ei>=0;ei--)eo={value:arguments[ei],next:eo};return this.__ownerID?(this.size=et,this._head=eo,this.__hash=void 0,this.__altered=!0,this):makeStack(et,eo)},Stack.prototype.pushAll=function(et){if(0===(et=IndexedIterable(et)).size)return this;assertNotInfinite(et.size);var eo=this.size,ei=this._head;return(et.reverse().forEach(function(et){eo++,ei={value:et,next:ei}}),this.__ownerID)?(this.size=eo,this._head=ei,this.__hash=void 0,this.__altered=!0,this):makeStack(eo,ei)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.unshift=function(){return this.push.apply(this,arguments)},Stack.prototype.unshiftAll=function(et){return this.pushAll(et)},Stack.prototype.shift=function(){return this.pop.apply(this,arguments)},Stack.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},Stack.prototype.slice=function(et,eo){if(wholeSlice(et,eo,this.size))return this;var ei=resolveBegin(et,this.size);if(resolveEnd(eo,this.size)!==this.size)return IndexedCollection.prototype.slice.call(this,et,eo);for(var ea=this.size-ei,eu=this._head;ei--;)eu=eu.next;return this.__ownerID?(this.size=ea,this._head=eu,this.__hash=void 0,this.__altered=!0,this):makeStack(ea,eu)},Stack.prototype.__ensureOwner=function(et){return et===this.__ownerID?this:et?makeStack(this.size,this._head,et,this.__hash):(this.__ownerID=et,this.__altered=!1,this)},Stack.prototype.__iterate=function(et,eo){if(eo)return this.reverse().__iterate(et);for(var ei=0,ea=this._head;ea&&!1!==et(ea.value,ei++,this);)ea=ea.next;return ei},Stack.prototype.__iterator=function(et,eo){if(eo)return this.reverse().__iterator(et);var ei=0,ea=this._head;return new Iterator(function(){if(ea){var eo=ea.value;return ea=ea.next,iteratorValue(et,ei++,eo)}return iteratorDone()})},Stack.isStack=isStack;var tr="@@__IMMUTABLE_STACK__@@",tn=Stack.prototype;function makeStack(et,eo,ei,ea){var eu=Object.create(tn);return eu.size=et,eu._head=eo,eu.__ownerID=ei,eu.__hash=ea,eu.__altered=!1,eu}function emptyStack(){return em||(em=makeStack(0))}function mixin(et,eo){var keyCopier=function(ei){et.prototype[ei]=eo[ei]};return Object.keys(eo).forEach(keyCopier),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(eo).forEach(keyCopier),et}tn[tr]=!0,tn.withMutations=e$.withMutations,tn.asMutable=e$.asMutable,tn.asImmutable=e$.asImmutable,tn.wasAltered=e$.wasAltered,Iterable.Iterator=Iterator,mixin(Iterable,{toArray:function(){assertNotInfinite(this.size);var et=Array(this.size||0);return this.valueSeq().__iterate(function(eo,ei){et[ei]=eo}),et},toIndexedSeq:function(){return new ToIndexedSequence(this)},toJS:function(){return this.toSeq().map(function(et){return et&&"function"==typeof et.toJS?et.toJS():et}).__toJS()},toJSON:function(){return this.toSeq().map(function(et){return et&&"function"==typeof et.toJSON?et.toJSON():et}).__toJS()},toKeyedSeq:function(){return new ToKeyedSequence(this,!0)},toMap:function(){return Map(this.toKeyedSeq())},toObject:function(){assertNotInfinite(this.size);var et={};return this.__iterate(function(eo,ei){et[ei]=eo}),et},toOrderedMap:function(){return OrderedMap(this.toKeyedSeq())},toOrderedSet:function(){return OrderedSet(isKeyed(this)?this.valueSeq():this)},toSet:function(){return Set(isKeyed(this)?this.valueSeq():this)},toSetSeq:function(){return new ToSetSequence(this)},toSeq:function(){return isIndexed(this)?this.toIndexedSeq():isKeyed(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Stack(isKeyed(this)?this.valueSeq():this)},toList:function(){return List(isKeyed(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(et,eo){return 0===this.size?et+eo:et+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+eo},concat:function(){var et=eg.call(arguments,0);return reify(this,concatFactory(this,et))},includes:function(et){return this.some(function(eo){return is(eo,et)})},entries:function(){return this.__iterator(eM)},every:function(et,eo){assertNotInfinite(this.size);var ei=!0;return this.__iterate(function(ea,eu,ed){if(!et.call(eo,ea,eu,ed))return ei=!1,!1}),ei},filter:function(et,eo){return reify(this,filterFactory(this,et,eo,!0))},find:function(et,eo,ei){var ea=this.findEntry(et,eo);return ea?ea[1]:ei},forEach:function(et,eo){return assertNotInfinite(this.size),this.__iterate(eo?et.bind(eo):et)},join:function(et){assertNotInfinite(this.size),et=void 0!==et?""+et:",";var eo="",ei=!0;return this.__iterate(function(ea){ei?ei=!1:eo+=et,eo+=null!=ea?ea.toString():""}),eo},keys:function(){return this.__iterator(ek)},map:function(et,eo){return reify(this,mapFactory(this,et,eo))},reduce:function(et,eo,ei){var ea,eu;return assertNotInfinite(this.size),arguments.length<2?eu=!0:ea=eo,this.__iterate(function(eo,ed,eh){eu?(eu=!1,ea=eo):ea=et.call(ei,ea,eo,ed,eh)}),ea},reduceRight:function(et,eo,ei){var ea=this.toKeyedSeq().reverse();return ea.reduce.apply(ea,arguments)},reverse:function(){return reify(this,reverseFactory(this,!0))},slice:function(et,eo){return reify(this,sliceFactory(this,et,eo,!0))},some:function(et,eo){return!this.every(not(et),eo)},sort:function(et){return reify(this,sortFactory(this,et))},values:function(){return this.__iterator(eO)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(et,eo){return ensureSize(et?this.toSeq().filter(et,eo):this)},countBy:function(et,eo){return countByFactory(this,et,eo)},equals:function(et){return deepEqual(this,et)},entrySeq:function(){var et=this;if(et._cache)return new ArraySeq(et._cache);var eo=et.toSeq().map(entryMapper).toIndexedSeq();return eo.fromEntrySeq=function(){return et.toSeq()},eo},filterNot:function(et,eo){return this.filter(not(et),eo)},findEntry:function(et,eo,ei){var ea=ei;return this.__iterate(function(ei,eu,ed){if(et.call(eo,ei,eu,ed))return ea=[eu,ei],!1}),ea},findKey:function(et,eo){var ei=this.findEntry(et,eo);return ei&&ei[0]},findLast:function(et,eo,ei){return this.toKeyedSeq().reverse().find(et,eo,ei)},findLastEntry:function(et,eo,ei){return this.toKeyedSeq().reverse().findEntry(et,eo,ei)},findLastKey:function(et,eo){return this.toKeyedSeq().reverse().findKey(et,eo)},first:function(){return this.find(returnTrue)},flatMap:function(et,eo){return reify(this,flatMapFactory(this,et,eo))},flatten:function(et){return reify(this,flattenFactory(this,et,!0))},fromEntrySeq:function(){return new FromEntriesSequence(this)},get:function(et,eo){return this.find(function(eo,ei){return is(ei,et)},void 0,eo)},getIn:function(et,eo){for(var ei,ea=this,eu=forceIterator(et);!(ei=eu.next()).done;){var ed=ei.value;if((ea=ea&&ea.get?ea.get(ed,eT):eT)===eT)return eo}return ea},groupBy:function(et,eo){return groupByFactory(this,et,eo)},has:function(et){return this.get(et,eT)!==eT},hasIn:function(et){return this.getIn(et,eT)!==eT},isSubset:function(et){return et="function"==typeof et.includes?et:Iterable(et),this.every(function(eo){return et.includes(eo)})},isSuperset:function(et){return(et="function"==typeof et.isSubset?et:Iterable(et)).isSubset(this)},keyOf:function(et){return this.findKey(function(eo){return is(eo,et)})},keySeq:function(){return this.toSeq().map(keyMapper).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(et){return this.toKeyedSeq().reverse().keyOf(et)},max:function(et){return maxFactory(this,et)},maxBy:function(et,eo){return maxFactory(this,eo,et)},min:function(et){return maxFactory(this,et?neg(et):defaultNegComparator)},minBy:function(et,eo){return maxFactory(this,eo?neg(eo):defaultNegComparator,et)},rest:function(){return this.slice(1)},skip:function(et){return this.slice(Math.max(0,et))},skipLast:function(et){return reify(this,this.toSeq().reverse().skip(et).reverse())},skipWhile:function(et,eo){return reify(this,skipWhileFactory(this,et,eo,!0))},skipUntil:function(et,eo){return this.skipWhile(not(et),eo)},sortBy:function(et,eo){return reify(this,sortFactory(this,eo,et))},take:function(et){return this.slice(0,Math.max(0,et))},takeLast:function(et){return reify(this,this.toSeq().reverse().take(et).reverse())},takeWhile:function(et,eo){return reify(this,takeWhileFactory(this,et,eo))},takeUntil:function(et,eo){return this.takeWhile(not(et),eo)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hashIterable(this))}});var ti=Iterable.prototype;ti[ey]=!0,ti[eL]=ti.values,ti.__toJS=ti.toArray,ti.__toStringMapper=quoteString,ti.inspect=ti.toSource=function(){return this.toString()},ti.chain=ti.flatMap,ti.contains=ti.includes,mixin(KeyedIterable,{flip:function(){return reify(this,flipFactory(this))},mapEntries:function(et,eo){var ei=this,ea=0;return reify(this,this.toSeq().map(function(eu,ed){return et.call(eo,[ed,eu],ea++,ei)}).fromEntrySeq())},mapKeys:function(et,eo){var ei=this;return reify(this,this.toSeq().flip().map(function(ea,eu){return et.call(eo,ea,eu,ei)}).flip())}});var ta=KeyedIterable.prototype;function keyMapper(et,eo){return eo}function entryMapper(et,eo){return[eo,et]}function not(et){return function(){return!et.apply(this,arguments)}}function neg(et){return function(){return-et.apply(this,arguments)}}function quoteString(et){return"string"==typeof et?JSON.stringify(et):String(et)}function defaultZipper(){return arrCopy(arguments)}function defaultNegComparator(et,eo){return et<eo?1:et>eo?-1:0}function hashIterable(et){if(et.size===1/0)return 0;var eo=isOrdered(et),ei=isKeyed(et),ea=eo?1:0;return murmurHashOfSize(et.__iterate(ei?eo?function(et,eo){ea=31*ea+hashMerge(hash(et),hash(eo))|0}:function(et,eo){ea=ea+hashMerge(hash(et),hash(eo))|0}:eo?function(et){ea=31*ea+hash(et)|0}:function(et){ea=ea+hash(et)|0}),ea)}function murmurHashOfSize(et,eo){return eo=eB(eo,3432918353),eo=eB(eo<<15|eo>>>-15,461845907),eo=((eo=eB(eo<<13|eo>>>-13,5))+3864292196|0)^et,eo=eB(eo^eo>>>16,2246822507),eo=smi((eo=eB(eo^eo>>>13,3266489909))^eo>>>16)}function hashMerge(et,eo){return et^eo+2654435769+(et<<6)+(et>>2)|0}return ta[eC]=!0,ta[eL]=ti.entries,ta.__toJS=ti.toObject,ta.__toStringMapper=function(et,eo){return JSON.stringify(eo)+": "+quoteString(et)},mixin(IndexedIterable,{toKeyedSeq:function(){return new ToKeyedSequence(this,!1)},filter:function(et,eo){return reify(this,filterFactory(this,et,eo,!1))},findIndex:function(et,eo){var ei=this.findEntry(et,eo);return ei?ei[0]:-1},indexOf:function(et){var eo=this.keyOf(et);return void 0===eo?-1:eo},lastIndexOf:function(et){var eo=this.lastKeyOf(et);return void 0===eo?-1:eo},reverse:function(){return reify(this,reverseFactory(this,!1))},slice:function(et,eo){return reify(this,sliceFactory(this,et,eo,!1))},splice:function(et,eo){var ei=arguments.length;if(eo=Math.max(0|eo,0),0===ei||2===ei&&!eo)return this;et=resolveBegin(et,et<0?this.count():this.size);var ea=this.slice(0,et);return reify(this,1===ei?ea:ea.concat(arrCopy(arguments,2),this.slice(et+eo)))},findLastIndex:function(et,eo){var ei=this.findLastEntry(et,eo);return ei?ei[0]:-1},first:function(){return this.get(0)},flatten:function(et){return reify(this,flattenFactory(this,et,!1))},get:function(et,eo){return(et=wrapIndex(this,et))<0||this.size===1/0||void 0!==this.size&&et>this.size?eo:this.find(function(eo,ei){return ei===et},void 0,eo)},has:function(et){return(et=wrapIndex(this,et))>=0&&(void 0!==this.size?this.size===1/0||et<this.size:-1!==this.indexOf(et))},interpose:function(et){return reify(this,interposeFactory(this,et))},interleave:function(){var et=[this].concat(arrCopy(arguments)),eo=zipWithFactory(this.toSeq(),IndexedSeq.of,et),ei=eo.flatten(!0);return eo.size&&(ei.size=eo.size*et.length),reify(this,ei)},keySeq:function(){return Range(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(et,eo){return reify(this,skipWhileFactory(this,et,eo,!1))},zip:function(){var et=[this].concat(arrCopy(arguments));return reify(this,zipWithFactory(this,defaultZipper,et))},zipWith:function(et){var eo=arrCopy(arguments);return eo[0]=this,reify(this,zipWithFactory(this,et,eo))}}),IndexedIterable.prototype[eS]=!0,IndexedIterable.prototype[e_]=!0,mixin(SetIterable,{get:function(et,eo){return this.has(et)?et:eo},includes:function(et){return this.has(et)},keySeq:function(){return this.valueSeq()}}),SetIterable.prototype.has=ti.includes,SetIterable.prototype.contains=SetIterable.prototype.includes,mixin(KeyedSeq,KeyedIterable.prototype),mixin(IndexedSeq,IndexedIterable.prototype),mixin(SetSeq,SetIterable.prototype),mixin(KeyedCollection,KeyedIterable.prototype),mixin(IndexedCollection,IndexedIterable.prototype),mixin(SetCollection,SetIterable.prototype),{Iterable:Iterable,Seq:Seq,Collection:Collection,Map:Map,OrderedMap:OrderedMap,List:List,Stack:Stack,Set:Set,OrderedSet:OrderedSet,Record:Record,Range:Range,Repeat:Repeat,is:is,fromJS:fromJS}})},64847:function(et,eo,ei){"use strict";var ea=ei(23634),eu=ei(67129),ed=ei(55153),eh=ei(42472),ep=eh.concat,ef=eh.escape,em=eu.op,eg=eu.isMap,ey=eu.isIndexed,mapDiff=function(et,eo,ei){var eu=[],ed=ei||"";if(ea.is(et,eo)||et==eo==null)return eu;var eh=ey(et)&&ey(eo),eC=null,eS=null;return et.forEach&&et.forEach(function(et,ei){if(eo.has(ei)){if(eg(et)&&eg(eo.get(ei)))eu=eu.concat(mapDiff(et,eo.get(ei),ep(ed,ef(ei))));else if(ey(eo.get(ei))&&ey(et))eu=eu.concat(sequenceDiff(et,eo.get(ei),ep(ed,ef(ei))));else{var ea=eo.get?eo.get(ei):eo;et!==ea&&eu.push(em("replace",ep(ed,ef(ei)),ea))}}else eh?(eS=null!=eC&&eC+1===ei?eS:ei,eu.push(em("remove",ep(ed,ef(eS)))),eC=ei):eu.push(em("remove",ep(ed,ef(ei))))}),eo.forEach(function(eo,ei){et.has&&!et.has(ei)&&eu.push(em("add",ep(ed,ef(ei)),eo))}),eu},sequenceDiff=function(et,eo,ei){var eu=[],eh=ei||"";if(ea.is(et,eo)||et==eo==null)return eu;if((et.count()+1)*(eo.count()+1)>=1e4)return mapDiff(et,eo,ei);var ef=ed.diff(et,eo),ey=0;return ef.forEach(function(et){if("="===et.op)ey++;else if("!="===et.op){if(eg(et.val)&&eg(et.newVal)){var eo=mapDiff(et.val,et.newVal,ep(eh,ey));eu=eu.concat(eo)}else eu.push(em("replace",ep(eh,ey),et.newVal));ey++}else"+"===et.op?(eu.push(em("add",ep(eh,ey),et.val)),ey++):"-"===et.op&&eu.push(em("remove",ep(eh,ey)))}),eu},primitiveTypeDiff=function(et,eo,ei){var ea=ei||"";return et===eo?[]:[em("replace",ep(ea,""),eo)]},diff=function(et,eo,ei){return ea.is(et,eo)?ea.List():et!=eo&&(null==et||null==eo)?ea.fromJS([em("replace","/",eo)]):ey(et)&&ey(eo)?ea.fromJS(sequenceDiff(et,eo)):eg(et)&&eg(eo)?ea.fromJS(mapDiff(et,eo)):ea.fromJS(primitiveTypeDiff(et,eo,ei))};et.exports=diff},55153:function(et,eo,ei){"use strict";var ea=ei(23634),makeMatrix=function(et,eo,ei){for(var ea=[],eu=0;eu<et;eu++)if(ea[eu]=Array(eo),null!=ei)for(var ed=0;ed<eo;ed++)ea[eu][ed]=ei;return ea},lcs=function(et,eo){var ei=computeLcsMatrix(et,eo);return backtrackLcs(et,eo,ei)},eu=ea.Record({op:"=",val:null}),ed=ea.Record({op:"!=",val:null,newVal:null}),diff=function(et,eo){return printDiff(computeLcsMatrix(et,eo),et,eo,et.size||0,eo.size||0)},printDiff=function(et,eo,ei,eh,ep){for(var ef=[],em=eh-1,eg=ep-1;em>=0||eg>=0;)em>=0&&eg>=0&&ea.is(eo.get(em),ei.get(eg))?(ef.push(new eu({op:"=",val:eo.get(em)})),em-=1,eg-=1):em>=0&&eg>=0&&em===eg&&!ea.is(eo.get(em),ei.get(eg))?(ef.push(new ed({val:eo.get(em),newVal:ei.get(em)})),em-=1,eg-=1):eg>=0&&(-1===em||et[em+1][eg]>=et[em][eg+1])?(ef.push(new eu({op:"+",val:ei.get(eg)})),eg-=1):em>=0&&(-1===eg||et[em+1][eg]<et[em][eg+1])&&(ef.push(new eu({op:"-",val:eo.get(em)})),em-=1);return ef.reverse()};function computeLcsMatrix(et,eo){for(var ei=et.size||0,eu=eo.size||0,ed=makeMatrix(ei+1,eu+1,0),eh=0;eh<ei;eh++)for(var ep=0;ep<eu;ep++)ea.is(et.get(eh),eo.get(ep))?ed[eh+1][ep+1]=ed[eh][ep]+1:ed[eh+1][ep+1]=Math.max(ed[eh+1][ep],ed[eh][ep+1]);return ed}var backtrackLcs=function(et,eo,ei){for(var eu=[],ed=et.size,eh=eo.size;0!==ed&&0!==eh;)ei[ed][eh]===ei[ed-1][eh]?ed--:ei[ed][eh]===ei[ed][eh-1]?eh--:ea.is(et.get(ed-1),eo.get(eh-1))&&(eu.push(et.get(ed-1)),ed--,eh--);return eu.reverse()};et.exports={lcs:lcs,computeLcsMatrix:computeLcsMatrix,diff:diff}},42472:function(et){"use strict";var eo=RegExp("/","g"),ei=RegExp("~1","g"),ea=/~/g,eu=/~0/g,ed={escape:function(et){if("number"==typeof et)return et.toString();if("string"!=typeof et)throw"param str ("+et+") is not a string";return et.replace(ea,"~0").replace(eo,"~1")},unescape:function(et){return"string"==typeof et?et.replace(ei,"/").replace(eu,"~"):et},concat:function(et,eo){return et+"/"+eo}};et.exports=ed},67129:function(et,eo,ei){"use strict";var ea=ei(23634),isMap=function(et){return ea.Iterable.isKeyed(et)},isIndexed=function(et){return ea.Iterable.isIndexed(et)},op=function(et,eo,ei){return"remove"===et?{op:et,path:eo}:{op:et,path:eo,value:ei}};et.exports={isMap:isMap,isIndexed:isIndexed,op:op}},96486:function(et,eo,ei){var ea;et=ei.nmd(et),(function(){var eu,ed="4.17.21",eh=200,ep="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ef="Expected a function",em="Invalid `variable` option passed into `_.template`",eg="__lodash_hash_undefined__",ey=500,eC="__lodash_placeholder__",eS=1,e_=2,ew=4,eA=1,eI=2,eR=1,eT=2,eE=4,eP=8,ek=16,eO=32,eM=64,eD=128,eU=256,eL=512,eN=30,eB="...",eF=800,ej=16,eG=1,eH=2,eK=3,ez=1/0,eW=9007199254740991,eV=17976931348623157e292,eJ=0/0,eY=4294967295,e$=4294967294,eZ=2147483647,eQ=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],eX="[object Arguments]",e0="[object Array]",e4="[object AsyncFunction]",e6="[object Boolean]",e5="[object Date]",e8="[object DOMException]",e7="[object Error]",e9="[object Function]",tr="[object GeneratorFunction]",tn="[object Map]",ti="[object Number]",ta="[object Null]",ts="[object Object]",tc="[object Promise]",tu="[object Proxy]",td="[object RegExp]",tp="[object Set]",tf="[object String]",tm="[object Symbol]",tg="[object Undefined]",ty="[object WeakMap]",tv="[object WeakSet]",tb="[object ArrayBuffer]",tC="[object DataView]",tS="[object Float32Array]",t_="[object Float64Array]",tw="[object Int8Array]",tA="[object Int16Array]",tI="[object Int32Array]",tR="[object Uint8Array]",tT="[object Uint8ClampedArray]",tE="[object Uint16Array]",tP="[object Uint32Array]",tk=/\b__p \+= '';/g,tO=/\b(__p \+=) '' \+/g,tx=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tM=/&(?:amp|lt|gt|quot|#39);/g,tD=/[&<>"']/g,tU=RegExp(tM.source),tL=RegExp(tD.source),tN=/<%-([\s\S]+?)%>/g,tq=/<%([\s\S]+?)%>/g,tB=/<%=([\s\S]+?)%>/g,tF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tj=/^\w*$/,tG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tH=/[\\^$.*+?()[\]{}|]/g,tK=RegExp(tH.source),tz=/^\s+/,tW=/\s/,tV=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tJ=/\{\n\/\* \[wrapped with (.+)\] \*/,tY=/,? & /,t$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tZ=/[()=,{}\[\]\/\s]/,tQ=/\\(\\)?/g,tX=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,t0=/\w*$/,t1=/^[-+]0x[0-9a-f]+$/i,t2=/^0b[01]+$/i,t4=/^\[object .+?Constructor\]$/,t3=/^0o[0-7]+$/i,t6=/^(?:0|[1-9]\d*)$/,t5=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,t8=/($^)/,t7=/['\n\r\u2028\u2029\\]/g,t9="\ud800-\udfff",rr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",rn="\\u2700-\\u27bf",ro="a-z\\xdf-\\xf6\\xf8-\\xff",ri="A-Z\\xc0-\\xd6\\xd8-\\xde",ra="\\ufe0e\\ufe0f",rs="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rc="['’]",ru="["+t9+"]",rl="["+rs+"]",rd="["+rr+"]",rh="\\d+",rp="["+rn+"]",rf="["+ro+"]",rm="[^"+t9+rs+rh+rn+ro+ri+"]",rg="\ud83c[\udffb-\udfff]",ry="[^"+t9+"]",rv="(?:\ud83c[\udde6-\uddff]){2}",rb="[\ud800-\udbff][\udc00-\udfff]",rC="["+ri+"]",rS="\\u200d",r_="(?:"+rf+"|"+rm+")",rw="(?:"+rC+"|"+rm+")",rA="(?:"+rc+"(?:d|ll|m|re|s|t|ve))?",rI="(?:"+rc+"(?:D|LL|M|RE|S|T|VE))?",rR="(?:"+rd+"|"+rg+")?",rT="["+ra+"]?",rE="(?:"+rS+"(?:"+[ry,rv,rb].join("|")+")"+rT+rR+")*",rP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rO=rT+rR+rE,rx="(?:"+[rp,rv,rb].join("|")+")"+rO,rM="(?:"+[ry+rd+"?",rd,rv,rb,ru].join("|")+")",rD=RegExp(rc,"g"),rU=RegExp(rd,"g"),rL=RegExp(rg+"(?="+rg+")|"+rM+rO,"g"),rN=RegExp([rC+"?"+rf+"+"+rA+"(?="+[rl,rC,"$"].join("|")+")",rw+"+"+rI+"(?="+[rl,rC+r_,"$"].join("|")+")",rC+"?"+r_+"+"+rA,rC+"+"+rI,rk,rP,rh,rx].join("|"),"g"),rq=RegExp("["+rS+t9+rr+ra+"]"),rB=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rF=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rj=-1,rG={};rG[tS]=rG[t_]=rG[tw]=rG[tA]=rG[tI]=rG[tR]=rG[tT]=rG[tE]=rG[tP]=!0,rG[eX]=rG[e0]=rG[tb]=rG[e6]=rG[tC]=rG[e5]=rG[e7]=rG[e9]=rG[tn]=rG[ti]=rG[ts]=rG[td]=rG[tp]=rG[tf]=rG[ty]=!1;var rH={};rH[eX]=rH[e0]=rH[tb]=rH[tC]=rH[e6]=rH[e5]=rH[tS]=rH[t_]=rH[tw]=rH[tA]=rH[tI]=rH[tn]=rH[ti]=rH[ts]=rH[td]=rH[tp]=rH[tf]=rH[tm]=rH[tR]=rH[tT]=rH[tE]=rH[tP]=!0,rH[e7]=rH[e9]=rH[ty]=!1;var rK={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},rz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rW={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},rV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rJ=parseFloat,rY=parseInt,r$="object"==typeof ei.g&&ei.g&&ei.g.Object===Object&&ei.g,rZ="object"==typeof self&&self&&self.Object===Object&&self,rQ=r$||rZ||Function("return this")(),rX=eo&&!eo.nodeType&&eo,r0=rX&&et&&!et.nodeType&&et,r1=r0&&r0.exports===rX,r2=r1&&r$.process,r4=function(){try{var et=r0&&r0.require&&r0.require("util").types;if(et)return et;return r2&&r2.binding&&r2.binding("util")}catch(et){}}(),r3=r4&&r4.isArrayBuffer,r6=r4&&r4.isDate,r5=r4&&r4.isMap,r8=r4&&r4.isRegExp,r7=r4&&r4.isSet,r9=r4&&r4.isTypedArray;function apply(et,eo,ei){switch(ei.length){case 0:return et.call(eo);case 1:return et.call(eo,ei[0]);case 2:return et.call(eo,ei[0],ei[1]);case 3:return et.call(eo,ei[0],ei[1],ei[2])}return et.apply(eo,ei)}function arrayAggregator(et,eo,ei,ea){for(var eu=-1,ed=null==et?0:et.length;++eu<ed;){var eh=et[eu];eo(ea,eh,ei(eh),et)}return ea}function arrayEach(et,eo){for(var ei=-1,ea=null==et?0:et.length;++ei<ea&&!1!==eo(et[ei],ei,et););return et}function arrayEachRight(et,eo){for(var ei=null==et?0:et.length;ei--&&!1!==eo(et[ei],ei,et););return et}function arrayEvery(et,eo){for(var ei=-1,ea=null==et?0:et.length;++ei<ea;)if(!eo(et[ei],ei,et))return!1;return!0}function arrayFilter(et,eo){for(var ei=-1,ea=null==et?0:et.length,eu=0,ed=[];++ei<ea;){var eh=et[ei];eo(eh,ei,et)&&(ed[eu++]=eh)}return ed}function arrayIncludes(et,eo){return!!(null==et?0:et.length)&&baseIndexOf(et,eo,0)>-1}function arrayIncludesWith(et,eo,ei){for(var ea=-1,eu=null==et?0:et.length;++ea<eu;)if(ei(eo,et[ea]))return!0;return!1}function arrayMap(et,eo){for(var ei=-1,ea=null==et?0:et.length,eu=Array(ea);++ei<ea;)eu[ei]=eo(et[ei],ei,et);return eu}function arrayPush(et,eo){for(var ei=-1,ea=eo.length,eu=et.length;++ei<ea;)et[eu+ei]=eo[ei];return et}function arrayReduce(et,eo,ei,ea){var eu=-1,ed=null==et?0:et.length;for(ea&&ed&&(ei=et[++eu]);++eu<ed;)ei=eo(ei,et[eu],eu,et);return ei}function arrayReduceRight(et,eo,ei,ea){var eu=null==et?0:et.length;for(ea&&eu&&(ei=et[--eu]);eu--;)ei=eo(ei,et[eu],eu,et);return ei}function arraySome(et,eo){for(var ei=-1,ea=null==et?0:et.length;++ei<ea;)if(eo(et[ei],ei,et))return!0;return!1}var nr=baseProperty("length");function asciiToArray(et){return et.split("")}function asciiWords(et){return et.match(t$)||[]}function baseFindKey(et,eo,ei){var ea;return ei(et,function(et,ei,eu){if(eo(et,ei,eu))return ea=ei,!1}),ea}function baseFindIndex(et,eo,ei,ea){for(var eu=et.length,ed=ei+(ea?1:-1);ea?ed--:++ed<eu;)if(eo(et[ed],ed,et))return ed;return -1}function baseIndexOf(et,eo,ei){return eo==eo?strictIndexOf(et,eo,ei):baseFindIndex(et,baseIsNaN,ei)}function baseIndexOfWith(et,eo,ei,ea){for(var eu=ei-1,ed=et.length;++eu<ed;)if(ea(et[eu],eo))return eu;return -1}function baseIsNaN(et){return et!=et}function baseMean(et,eo){var ei=null==et?0:et.length;return ei?baseSum(et,eo)/ei:eJ}function baseProperty(et){return function(eo){return null==eo?eu:eo[et]}}function basePropertyOf(et){return function(eo){return null==et?eu:et[eo]}}function baseReduce(et,eo,ei,ea,eu){return eu(et,function(et,eu,ed){ei=ea?(ea=!1,et):eo(ei,et,eu,ed)}),ei}function baseSortBy(et,eo){var ei=et.length;for(et.sort(eo);ei--;)et[ei]=et[ei].value;return et}function baseSum(et,eo){for(var ei,ea=-1,ed=et.length;++ea<ed;){var eh=eo(et[ea]);eu!==eh&&(ei=eu===ei?eh:ei+eh)}return ei}function baseTimes(et,eo){for(var ei=-1,ea=Array(et);++ei<et;)ea[ei]=eo(ei);return ea}function baseToPairs(et,eo){return arrayMap(eo,function(eo){return[eo,et[eo]]})}function baseTrim(et){return et?et.slice(0,trimmedEndIndex(et)+1).replace(tz,""):et}function baseUnary(et){return function(eo){return et(eo)}}function baseValues(et,eo){return arrayMap(eo,function(eo){return et[eo]})}function cacheHas(et,eo){return et.has(eo)}function charsStartIndex(et,eo){for(var ei=-1,ea=et.length;++ei<ea&&baseIndexOf(eo,et[ei],0)>-1;);return ei}function charsEndIndex(et,eo){for(var ei=et.length;ei--&&baseIndexOf(eo,et[ei],0)>-1;);return ei}function countHolders(et,eo){for(var ei=et.length,ea=0;ei--;)et[ei]===eo&&++ea;return ea}var nn=basePropertyOf(rK),no=basePropertyOf(rz);function escapeStringChar(et){return"\\"+rV[et]}function getValue(et,eo){return null==et?eu:et[eo]}function hasUnicode(et){return rq.test(et)}function hasUnicodeWord(et){return rB.test(et)}function iteratorToArray(et){for(var eo,ei=[];!(eo=et.next()).done;)ei.push(eo.value);return ei}function mapToArray(et){var eo=-1,ei=Array(et.size);return et.forEach(function(et,ea){ei[++eo]=[ea,et]}),ei}function overArg(et,eo){return function(ei){return et(eo(ei))}}function replaceHolders(et,eo){for(var ei=-1,ea=et.length,eu=0,ed=[];++ei<ea;){var eh=et[ei];(eh===eo||eh===eC)&&(et[ei]=eC,ed[eu++]=ei)}return ed}function setToArray(et){var eo=-1,ei=Array(et.size);return et.forEach(function(et){ei[++eo]=et}),ei}function setToPairs(et){var eo=-1,ei=Array(et.size);return et.forEach(function(et){ei[++eo]=[et,et]}),ei}function strictIndexOf(et,eo,ei){for(var ea=ei-1,eu=et.length;++ea<eu;)if(et[ea]===eo)return ea;return -1}function strictLastIndexOf(et,eo,ei){for(var ea=ei+1;ea--&&et[ea]!==eo;);return ea}function stringSize(et){return hasUnicode(et)?unicodeSize(et):nr(et)}function stringToArray(et){return hasUnicode(et)?unicodeToArray(et):asciiToArray(et)}function trimmedEndIndex(et){for(var eo=et.length;eo--&&tW.test(et.charAt(eo)););return eo}var ni=basePropertyOf(rW);function unicodeSize(et){for(var eo=rL.lastIndex=0;rL.test(et);)++eo;return eo}function unicodeToArray(et){return et.match(rL)||[]}function unicodeWords(et){return et.match(rN)||[]}var nc=function runInContext(et){var eo=(et=null==et?rQ:nc.defaults(rQ.Object(),et,nc.pick(rQ,rF))).Array,ei=et.Date,ea=et.Error,tW=et.Function,t$=et.Math,t9=et.Object,rr=et.RegExp,rn=et.String,ro=et.TypeError,ri=eo.prototype,ra=tW.prototype,rs=t9.prototype,rc=et["__core-js_shared__"],ru=ra.toString,rl=rs.hasOwnProperty,rd=0,rh=function(){var et=/[^.]+$/.exec(rc&&rc.keys&&rc.keys.IE_PROTO||"");return et?"Symbol(src)_1."+et:""}(),rp=rs.toString,rf=ru.call(t9),rm=rQ._,rg=rr("^"+ru.call(rl).replace(tH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ry=r1?et.Buffer:eu,rv=et.Symbol,rb=et.Uint8Array,rC=ry?ry.allocUnsafe:eu,rS=overArg(t9.getPrototypeOf,t9),r_=t9.create,rw=rs.propertyIsEnumerable,rA=ri.splice,rI=rv?rv.isConcatSpreadable:eu,rR=rv?rv.iterator:eu,rT=rv?rv.toStringTag:eu,rE=function(){try{var et=getNative(t9,"defineProperty");return et({},"",{}),et}catch(et){}}(),rP=et.clearTimeout!==rQ.clearTimeout&&et.clearTimeout,rk=ei&&ei.now!==rQ.Date.now&&ei.now,rO=et.setTimeout!==rQ.setTimeout&&et.setTimeout,rx=t$.ceil,rM=t$.floor,rL=t9.getOwnPropertySymbols,rN=ry?ry.isBuffer:eu,rq=et.isFinite,rB=ri.join,rK=overArg(t9.keys,t9),rz=t$.max,rW=t$.min,rV=ei.now,r$=et.parseInt,rZ=t$.random,rX=ri.reverse,r0=getNative(et,"DataView"),r2=getNative(et,"Map"),r4=getNative(et,"Promise"),nr=getNative(et,"Set"),nu=getNative(et,"WeakMap"),nl=getNative(t9,"create"),nd=nu&&new nu,nh={},np=toSource(r0),nf=toSource(r2),nm=toSource(r4),ng=toSource(nr),ny=toSource(nu),nv=rv?rv.prototype:eu,nC=nv?nv.valueOf:eu,nS=nv?nv.toString:eu;function lodash(et){if(isObjectLike(et)&&!ob(et)&&!(et instanceof LazyWrapper)){if(et instanceof LodashWrapper)return et;if(rl.call(et,"__wrapped__"))return wrapperClone(et)}return new LodashWrapper(et)}var n_=function(){function object(){}return function(et){if(!isObject(et))return{};if(r_)return r_(et);object.prototype=et;var eo=new object;return object.prototype=eu,eo}}();function baseLodash(){}function LodashWrapper(et,eo){this.__wrapped__=et,this.__actions__=[],this.__chain__=!!eo,this.__index__=0,this.__values__=eu}function LazyWrapper(et){this.__wrapped__=et,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=eY,this.__views__=[]}function lazyClone(){var et=new LazyWrapper(this.__wrapped__);return et.__actions__=copyArray(this.__actions__),et.__dir__=this.__dir__,et.__filtered__=this.__filtered__,et.__iteratees__=copyArray(this.__iteratees__),et.__takeCount__=this.__takeCount__,et.__views__=copyArray(this.__views__),et}function lazyReverse(){if(this.__filtered__){var et=new LazyWrapper(this);et.__dir__=-1,et.__filtered__=!0}else et=this.clone(),et.__dir__*=-1;return et}function lazyValue(){var et=this.__wrapped__.value(),eo=this.__dir__,ei=ob(et),ea=eo<0,eu=ei?et.length:0,ed=getView(0,eu,this.__views__),eh=ed.start,ep=ed.end,ef=ep-eh,em=ea?ep:eh-1,eg=this.__iteratees__,ey=eg.length,eC=0,eS=rW(ef,this.__takeCount__);if(!ei||!ea&&eu==ef&&eS==ef)return baseWrapperValue(et,this.__actions__);var e_=[];e:for(;ef--&&eC<eS;){for(var ew=-1,eA=et[em+=eo];++ew<ey;){var eI=eg[ew],eR=eI.iteratee,eT=eI.type,eE=eR(eA);if(eT==eH)eA=eE;else if(!eE){if(eT==eG)continue e;break e}}e_[eC++]=eA}return e_}function Hash(et){var eo=-1,ei=null==et?0:et.length;for(this.clear();++eo<ei;){var ea=et[eo];this.set(ea[0],ea[1])}}function hashClear(){this.__data__=nl?nl(null):{},this.size=0}function hashDelete(et){var eo=this.has(et)&&delete this.__data__[et];return this.size-=eo?1:0,eo}function hashGet(et){var eo=this.__data__;if(nl){var ei=eo[et];return ei===eg?eu:ei}return rl.call(eo,et)?eo[et]:eu}function hashHas(et){var eo=this.__data__;return nl?eu!==eo[et]:rl.call(eo,et)}function hashSet(et,eo){var ei=this.__data__;return this.size+=this.has(et)?0:1,ei[et]=nl&&eu===eo?eg:eo,this}function ListCache(et){var eo=-1,ei=null==et?0:et.length;for(this.clear();++eo<ei;){var ea=et[eo];this.set(ea[0],ea[1])}}function listCacheClear(){this.__data__=[],this.size=0}function listCacheDelete(et){var eo=this.__data__,ei=assocIndexOf(eo,et);return!(ei<0)&&(ei==eo.length-1?eo.pop():rA.call(eo,ei,1),--this.size,!0)}function listCacheGet(et){var eo=this.__data__,ei=assocIndexOf(eo,et);return ei<0?eu:eo[ei][1]}function listCacheHas(et){return assocIndexOf(this.__data__,et)>-1}function listCacheSet(et,eo){var ei=this.__data__,ea=assocIndexOf(ei,et);return ea<0?(++this.size,ei.push([et,eo])):ei[ea][1]=eo,this}function MapCache(et){var eo=-1,ei=null==et?0:et.length;for(this.clear();++eo<ei;){var ea=et[eo];this.set(ea[0],ea[1])}}function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(r2||ListCache),string:new Hash}}function mapCacheDelete(et){var eo=getMapData(this,et).delete(et);return this.size-=eo?1:0,eo}function mapCacheGet(et){return getMapData(this,et).get(et)}function mapCacheHas(et){return getMapData(this,et).has(et)}function mapCacheSet(et,eo){var ei=getMapData(this,et),ea=ei.size;return ei.set(et,eo),this.size+=ei.size==ea?0:1,this}function SetCache(et){var eo=-1,ei=null==et?0:et.length;for(this.__data__=new MapCache;++eo<ei;)this.add(et[eo])}function setCacheAdd(et){return this.__data__.set(et,eg),this}function setCacheHas(et){return this.__data__.has(et)}function Stack(et){var eo=this.__data__=new ListCache(et);this.size=eo.size}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(et){var eo=this.__data__,ei=eo.delete(et);return this.size=eo.size,ei}function stackGet(et){return this.__data__.get(et)}function stackHas(et){return this.__data__.has(et)}function stackSet(et,eo){var ei=this.__data__;if(ei instanceof ListCache){var ea=ei.__data__;if(!r2||ea.length<eh-1)return ea.push([et,eo]),this.size=++ei.size,this;ei=this.__data__=new MapCache(ea)}return ei.set(et,eo),this.size=ei.size,this}function arrayLikeKeys(et,eo){var ei=ob(et),ea=!ei&&ov(et),eu=!ei&&!ea&&oS(et),ed=!ei&&!ea&&!eu&&oR(et),eh=ei||ea||eu||ed,ep=eh?baseTimes(et.length,rn):[],ef=ep.length;for(var em in et)(eo||rl.call(et,em))&&!(eh&&("length"==em||eu&&("offset"==em||"parent"==em)||ed&&("buffer"==em||"byteLength"==em||"byteOffset"==em)||isIndex(em,ef)))&&ep.push(em);return ep}function arraySample(et){var eo=et.length;return eo?et[baseRandom(0,eo-1)]:eu}function arraySampleSize(et,eo){return shuffleSelf(copyArray(et),baseClamp(eo,0,et.length))}function arrayShuffle(et){return shuffleSelf(copyArray(et))}function assignMergeValue(et,eo,ei){(eu===ei||eq(et[eo],ei))&&(eu!==ei||eo in et)||baseAssignValue(et,eo,ei)}function assignValue(et,eo,ei){var ea=et[eo];rl.call(et,eo)&&eq(ea,ei)&&(eu!==ei||eo in et)||baseAssignValue(et,eo,ei)}function assocIndexOf(et,eo){for(var ei=et.length;ei--;)if(eq(et[ei][0],eo))return ei;return -1}function baseAggregator(et,eo,ei,ea){return nw(et,function(et,eu,ed){eo(ea,et,ei(et),ed)}),ea}function baseAssign(et,eo){return et&&copyObject(eo,keys(eo),et)}function baseAssignIn(et,eo){return et&&copyObject(eo,keysIn(eo),et)}function baseAssignValue(et,eo,ei){"__proto__"==eo&&rE?rE(et,eo,{configurable:!0,enumerable:!0,value:ei,writable:!0}):et[eo]=ei}function baseAt(et,ei){for(var ea=-1,ed=ei.length,eh=eo(ed),ep=null==et;++ea<ed;)eh[ea]=ep?eu:get(et,ei[ea]);return eh}function baseClamp(et,eo,ei){return et==et&&(eu!==ei&&(et=et<=ei?et:ei),eu!==eo&&(et=et>=eo?et:eo)),et}function baseClone(et,eo,ei,ea,ed,eh){var ep,ef=eo&eS,em=eo&e_,eg=eo&ew;if(ei&&(ep=ed?ei(et,ea,ed,eh):ei(et)),eu!==ep)return ep;if(!isObject(et))return et;var ey=ob(et);if(ey){if(ep=initCloneArray(et),!ef)return copyArray(et,ep)}else{var eC=nU(et),eA=eC==e9||eC==tr;if(oS(et))return cloneBuffer(et,ef);if(eC==ts||eC==eX||eA&&!ed){if(ep=em||eA?{}:initCloneObject(et),!ef)return em?copySymbolsIn(et,baseAssignIn(ep,et)):copySymbols(et,baseAssign(ep,et))}else{if(!rH[eC])return ed?et:{};ep=initCloneByTag(et,eC,ef)}}eh||(eh=new Stack);var eI=eh.get(et);if(eI)return eI;eh.set(et,ep),oI(et)?et.forEach(function(ea){ep.add(baseClone(ea,eo,ei,ea,et,eh))}):ow(et)&&et.forEach(function(ea,eu){ep.set(eu,baseClone(ea,eo,ei,eu,et,eh))});var eR=eg?em?getAllKeysIn:getAllKeys:em?keysIn:keys,eT=ey?eu:eR(et);return arrayEach(eT||et,function(ea,eu){eT&&(ea=et[eu=ea]),assignValue(ep,eu,baseClone(ea,eo,ei,eu,et,eh))}),ep}function baseConforms(et){var eo=keys(et);return function(ei){return baseConformsTo(ei,et,eo)}}function baseConformsTo(et,eo,ei){var ea=ei.length;if(null==et)return!ea;for(et=t9(et);ea--;){var ed=ei[ea],eh=eo[ed],ep=et[ed];if(eu===ep&&!(ed in et)||!eh(ep))return!1}return!0}function baseDelay(et,eo,ei){if("function"!=typeof et)throw new ro(ef);return nq(function(){et.apply(eu,ei)},eo)}function baseDifference(et,eo,ei,ea){var eu=-1,ed=arrayIncludes,ep=!0,ef=et.length,em=[],eg=eo.length;if(!ef)return em;ei&&(eo=arrayMap(eo,baseUnary(ei))),ea?(ed=arrayIncludesWith,ep=!1):eo.length>=eh&&(ed=cacheHas,ep=!1,eo=new SetCache(eo));e:for(;++eu<ef;){var ey=et[eu],eC=null==ei?ey:ei(ey);if(ey=ea||0!==ey?ey:0,ep&&eC==eC){for(var eS=eg;eS--;)if(eo[eS]===eC)continue e;em.push(ey)}else ed(eo,eC,ea)||em.push(ey)}return em}lodash.templateSettings={escape:tN,evaluate:tq,interpolate:tB,variable:"",imports:{_:lodash}},lodash.prototype=baseLodash.prototype,lodash.prototype.constructor=lodash,LodashWrapper.prototype=n_(baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper,LazyWrapper.prototype=n_(baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper,Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet,ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet,MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet,SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas,Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var nw=createBaseEach(baseForOwn),nA=createBaseEach(baseForOwnRight,!0);function baseEvery(et,eo){var ei=!0;return nw(et,function(et,ea,eu){return ei=!!eo(et,ea,eu)}),ei}function baseExtremum(et,eo,ei){for(var ea=-1,ed=et.length;++ea<ed;){var eh=et[ea],ep=eo(eh);if(null!=ep&&(eu===ef?ep==ep&&!isSymbol(ep):ei(ep,ef)))var ef=ep,em=eh}return em}function baseFill(et,eo,ei,ea){var ed=et.length;for((ei=toInteger(ei))<0&&(ei=-ei>ed?0:ed+ei),(ea=eu===ea||ea>ed?ed:toInteger(ea))<0&&(ea+=ed),ea=ei>ea?0:toLength(ea);ei<ea;)et[ei++]=eo;return et}function baseFilter(et,eo){var ei=[];return nw(et,function(et,ea,eu){eo(et,ea,eu)&&ei.push(et)}),ei}function baseFlatten(et,eo,ei,ea,eu){var ed=-1,eh=et.length;for(ei||(ei=isFlattenable),eu||(eu=[]);++ed<eh;){var ep=et[ed];eo>0&&ei(ep)?eo>1?baseFlatten(ep,eo-1,ei,ea,eu):arrayPush(eu,ep):ea||(eu[eu.length]=ep)}return eu}var nI=createBaseFor(),nR=createBaseFor(!0);function baseForOwn(et,eo){return et&&nI(et,eo,keys)}function baseForOwnRight(et,eo){return et&&nR(et,eo,keys)}function baseFunctions(et,eo){return arrayFilter(eo,function(eo){return isFunction(et[eo])})}function baseGet(et,eo){eo=castPath(eo,et);for(var ei=0,ea=eo.length;null!=et&&ei<ea;)et=et[toKey(eo[ei++])];return ei&&ei==ea?et:eu}function baseGetAllKeys(et,eo,ei){var ea=eo(et);return ob(et)?ea:arrayPush(ea,ei(et))}function baseGetTag(et){return null==et?eu===et?tg:ta:rT&&rT in t9(et)?getRawTag(et):objectToString(et)}function baseGt(et,eo){return et>eo}function baseHas(et,eo){return null!=et&&rl.call(et,eo)}function baseHasIn(et,eo){return null!=et&&eo in t9(et)}function baseInRange(et,eo,ei){return et>=rW(eo,ei)&&et<rz(eo,ei)}function baseIntersection(et,ei,ea){for(var ed=ea?arrayIncludesWith:arrayIncludes,eh=et[0].length,ep=et.length,ef=ep,em=eo(ep),eg=1/0,ey=[];ef--;){var eC=et[ef];ef&&ei&&(eC=arrayMap(eC,baseUnary(ei))),eg=rW(eC.length,eg),em[ef]=!ea&&(ei||eh>=120&&eC.length>=120)?new SetCache(ef&&eC):eu}eC=et[0];var eS=-1,e_=em[0];e:for(;++eS<eh&&ey.length<eg;){var ew=eC[eS],eA=ei?ei(ew):ew;if(ew=ea||0!==ew?ew:0,!(e_?cacheHas(e_,eA):ed(ey,eA,ea))){for(ef=ep;--ef;){var eI=em[ef];if(!(eI?cacheHas(eI,eA):ed(et[ef],eA,ea)))continue e}e_&&e_.push(eA),ey.push(ew)}}return ey}function baseInverter(et,eo,ei,ea){return baseForOwn(et,function(et,eu,ed){eo(ea,ei(et),eu,ed)}),ea}function baseInvoke(et,eo,ei){eo=castPath(eo,et);var ea=null==(et=parent(et,eo))?et:et[toKey(last(eo))];return null==ea?eu:apply(ea,et,ei)}function baseIsArguments(et){return isObjectLike(et)&&baseGetTag(et)==eX}function baseIsArrayBuffer(et){return isObjectLike(et)&&baseGetTag(et)==tb}function baseIsDate(et){return isObjectLike(et)&&baseGetTag(et)==e5}function baseIsEqual(et,eo,ei,ea,eu){return et===eo||(null!=et&&null!=eo&&(isObjectLike(et)||isObjectLike(eo))?baseIsEqualDeep(et,eo,ei,ea,baseIsEqual,eu):et!=et&&eo!=eo)}function baseIsEqualDeep(et,eo,ei,ea,eu,ed){var eh=ob(et),ep=ob(eo),ef=eh?e0:nU(et),em=ep?e0:nU(eo);ef=ef==eX?ts:ef,em=em==eX?ts:em;var eg=ef==ts,ey=em==ts,eC=ef==em;if(eC&&oS(et)){if(!oS(eo))return!1;eh=!0,eg=!1}if(eC&&!eg)return ed||(ed=new Stack),eh||oR(et)?equalArrays(et,eo,ei,ea,eu,ed):equalByTag(et,eo,ef,ei,ea,eu,ed);if(!(ei&eA)){var eS=eg&&rl.call(et,"__wrapped__"),e_=ey&&rl.call(eo,"__wrapped__");if(eS||e_){var ew=eS?et.value():et,eI=e_?eo.value():eo;return ed||(ed=new Stack),eu(ew,eI,ei,ea,ed)}}return!!eC&&(ed||(ed=new Stack),equalObjects(et,eo,ei,ea,eu,ed))}function baseIsMap(et){return isObjectLike(et)&&nU(et)==tn}function baseIsMatch(et,eo,ei,ea){var ed=ei.length,eh=ed,ep=!ea;if(null==et)return!eh;for(et=t9(et);ed--;){var ef=ei[ed];if(ep&&ef[2]?ef[1]!==et[ef[0]]:!(ef[0]in et))return!1}for(;++ed<eh;){var em=(ef=ei[ed])[0],eg=et[em],ey=ef[1];if(ep&&ef[2]){if(eu===eg&&!(em in et))return!1}else{var eC=new Stack;if(ea)var eS=ea(eg,ey,em,et,eo,eC);if(!(eu===eS?baseIsEqual(ey,eg,eA|eI,ea,eC):eS))return!1}}return!0}function baseIsNative(et){return!(!isObject(et)||isMasked(et))&&(isFunction(et)?rg:t4).test(toSource(et))}function baseIsRegExp(et){return isObjectLike(et)&&baseGetTag(et)==td}function baseIsSet(et){return isObjectLike(et)&&nU(et)==tp}function baseIsTypedArray(et){return isObjectLike(et)&&isLength(et.length)&&!!rG[baseGetTag(et)]}function baseIteratee(et){return"function"==typeof et?et:null==et?identity:"object"==typeof et?ob(et)?baseMatchesProperty(et[0],et[1]):baseMatches(et):property(et)}function baseKeys(et){if(!isPrototype(et))return rK(et);var eo=[];for(var ei in t9(et))rl.call(et,ei)&&"constructor"!=ei&&eo.push(ei);return eo}function baseKeysIn(et){if(!isObject(et))return nativeKeysIn(et);var eo=isPrototype(et),ei=[];for(var ea in et)"constructor"==ea&&(eo||!rl.call(et,ea))||ei.push(ea);return ei}function baseLt(et,eo){return et<eo}function baseMap(et,ei){var ea=-1,eu=isArrayLike(et)?eo(et.length):[];return nw(et,function(et,eo,ed){eu[++ea]=ei(et,eo,ed)}),eu}function baseMatches(et){var eo=getMatchData(et);return 1==eo.length&&eo[0][2]?matchesStrictComparable(eo[0][0],eo[0][1]):function(ei){return ei===et||baseIsMatch(ei,et,eo)}}function baseMatchesProperty(et,eo){return isKey(et)&&isStrictComparable(eo)?matchesStrictComparable(toKey(et),eo):function(ei){var ea=get(ei,et);return eu===ea&&ea===eo?hasIn(ei,et):baseIsEqual(eo,ea,eA|eI)}}function baseMerge(et,eo,ei,ea,ed){et!==eo&&nI(eo,function(eh,ep){if(ed||(ed=new Stack),isObject(eh))baseMergeDeep(et,eo,ep,ei,baseMerge,ea,ed);else{var ef=ea?ea(safeGet(et,ep),eh,ep+"",et,eo,ed):eu;eu===ef&&(ef=eh),assignMergeValue(et,ep,ef)}},keysIn)}function baseMergeDeep(et,eo,ei,ea,ed,eh,ep){var ef=safeGet(et,ei),em=safeGet(eo,ei),eg=ep.get(em);if(eg){assignMergeValue(et,ei,eg);return}var ey=eh?eh(ef,em,ei+"",et,eo,ep):eu,eC=eu===ey;if(eC){var eS=ob(em),e_=!eS&&oS(em),ew=!eS&&!e_&&oR(em);ey=em,eS||e_||ew?ob(ef)?ey=ef:isArrayLikeObject(ef)?ey=copyArray(ef):e_?(eC=!1,ey=cloneBuffer(em,!0)):ew?(eC=!1,ey=cloneTypedArray(em,!0)):ey=[]:isPlainObject(em)||ov(em)?(ey=ef,ov(ef)?ey=toPlainObject(ef):(!isObject(ef)||isFunction(ef))&&(ey=initCloneObject(em))):eC=!1}eC&&(ep.set(em,ey),ed(ey,em,ea,eh,ep),ep.delete(em)),assignMergeValue(et,ei,ey)}function baseNth(et,eo){var ei=et.length;if(ei)return isIndex(eo+=eo<0?ei:0,ei)?et[eo]:eu}function baseOrderBy(et,eo,ei){eo=eo.length?arrayMap(eo,function(et){return ob(et)?function(eo){return baseGet(eo,1===et.length?et[0]:et)}:et}):[identity];var ea=-1;return eo=arrayMap(eo,baseUnary(getIteratee())),baseSortBy(baseMap(et,function(et,ei,eu){return{criteria:arrayMap(eo,function(eo){return eo(et)}),index:++ea,value:et}}),function(et,eo){return compareMultiple(et,eo,ei)})}function basePick(et,eo){return basePickBy(et,eo,function(eo,ei){return hasIn(et,ei)})}function basePickBy(et,eo,ei){for(var ea=-1,eu=eo.length,ed={};++ea<eu;){var eh=eo[ea],ep=baseGet(et,eh);ei(ep,eh)&&baseSet(ed,castPath(eh,et),ep)}return ed}function basePropertyDeep(et){return function(eo){return baseGet(eo,et)}}function basePullAll(et,eo,ei,ea){var eu=ea?baseIndexOfWith:baseIndexOf,ed=-1,eh=eo.length,ep=et;for(et===eo&&(eo=copyArray(eo)),ei&&(ep=arrayMap(et,baseUnary(ei)));++ed<eh;)for(var ef=0,em=eo[ed],eg=ei?ei(em):em;(ef=eu(ep,eg,ef,ea))>-1;)ep!==et&&rA.call(ep,ef,1),rA.call(et,ef,1);return et}function basePullAt(et,eo){for(var ei=et?eo.length:0,ea=ei-1;ei--;){var eu=eo[ei];if(ei==ea||eu!==ed){var ed=eu;isIndex(eu)?rA.call(et,eu,1):baseUnset(et,eu)}}return et}function baseRandom(et,eo){return et+rM(rZ()*(eo-et+1))}function baseRange(et,ei,ea,eu){for(var ed=-1,eh=rz(rx((ei-et)/(ea||1)),0),ep=eo(eh);eh--;)ep[eu?eh:++ed]=et,et+=ea;return ep}function baseRepeat(et,eo){var ei="";if(!et||eo<1||eo>eW)return ei;do eo%2&&(ei+=et),(eo=rM(eo/2))&&(et+=et);while(eo);return ei}function baseRest(et,eo){return nB(overRest(et,eo,identity),et+"")}function baseSample(et){return arraySample(values(et))}function baseSampleSize(et,eo){var ei=values(et);return shuffleSelf(ei,baseClamp(eo,0,ei.length))}function baseSet(et,eo,ei,ea){if(!isObject(et))return et;eo=castPath(eo,et);for(var ed=-1,eh=eo.length,ep=eh-1,ef=et;null!=ef&&++ed<eh;){var em=toKey(eo[ed]),eg=ei;if("__proto__"===em||"constructor"===em||"prototype"===em)break;if(ed!=ep){var ey=ef[em];eg=ea?ea(ey,em,ef):eu,eu===eg&&(eg=isObject(ey)?ey:isIndex(eo[ed+1])?[]:{})}assignValue(ef,em,eg),ef=ef[em]}return et}var nT=nd?function(et,eo){return nd.set(et,eo),et}:identity,nE=rE?function(et,eo){return rE(et,"toString",{configurable:!0,enumerable:!1,value:constant(eo),writable:!0})}:identity;function baseShuffle(et){return shuffleSelf(values(et))}function baseSlice(et,ei,ea){var eu=-1,ed=et.length;ei<0&&(ei=-ei>ed?0:ed+ei),(ea=ea>ed?ed:ea)<0&&(ea+=ed),ed=ei>ea?0:ea-ei>>>0,ei>>>=0;for(var eh=eo(ed);++eu<ed;)eh[eu]=et[eu+ei];return eh}function baseSome(et,eo){var ei;return nw(et,function(et,ea,eu){return!(ei=eo(et,ea,eu))}),!!ei}function baseSortedIndex(et,eo,ei){var ea=0,eu=null==et?ea:et.length;if("number"==typeof eo&&eo==eo&&eu<=eZ){for(;ea<eu;){var ed=ea+eu>>>1,eh=et[ed];null!==eh&&!isSymbol(eh)&&(ei?eh<=eo:eh<eo)?ea=ed+1:eu=ed}return eu}return baseSortedIndexBy(et,eo,identity,ei)}function baseSortedIndexBy(et,eo,ei,ea){var ed=0,eh=null==et?0:et.length;if(0===eh)return 0;for(var ep=(eo=ei(eo))!=eo,ef=null===eo,em=isSymbol(eo),eg=eu===eo;ed<eh;){var ey=rM((ed+eh)/2),eC=ei(et[ey]),eS=eu!==eC,e_=null===eC,ew=eC==eC,eA=isSymbol(eC);if(ep)var eI=ea||ew;else eI=eg?ew&&(ea||eS):ef?ew&&eS&&(ea||!e_):em?ew&&eS&&!e_&&(ea||!eA):!e_&&!eA&&(ea?eC<=eo:eC<eo);eI?ed=ey+1:eh=ey}return rW(eh,e$)}function baseSortedUniq(et,eo){for(var ei=-1,ea=et.length,eu=0,ed=[];++ei<ea;){var eh=et[ei],ep=eo?eo(eh):eh;if(!ei||!eq(ep,ef)){var ef=ep;ed[eu++]=0===eh?0:eh}}return ed}function baseToNumber(et){return"number"==typeof et?et:isSymbol(et)?eJ:+et}function baseToString(et){if("string"==typeof et)return et;if(ob(et))return arrayMap(et,baseToString)+"";if(isSymbol(et))return nS?nS.call(et):"";var eo=et+"";return"0"==eo&&1/et==-ez?"-0":eo}function baseUniq(et,eo,ei){var ea=-1,eu=arrayIncludes,ed=et.length,ep=!0,ef=[],em=ef;if(ei)ep=!1,eu=arrayIncludesWith;else if(ed>=eh){var eg=eo?null:nO(et);if(eg)return setToArray(eg);ep=!1,eu=cacheHas,em=new SetCache}else em=eo?[]:ef;e:for(;++ea<ed;){var ey=et[ea],eC=eo?eo(ey):ey;if(ey=ei||0!==ey?ey:0,ep&&eC==eC){for(var eS=em.length;eS--;)if(em[eS]===eC)continue e;eo&&em.push(eC),ef.push(ey)}else eu(em,eC,ei)||(em!==ef&&em.push(eC),ef.push(ey))}return ef}function baseUnset(et,eo){return eo=castPath(eo,et),null==(et=parent(et,eo))||delete et[toKey(last(eo))]}function baseUpdate(et,eo,ei,ea){return baseSet(et,eo,ei(baseGet(et,eo)),ea)}function baseWhile(et,eo,ei,ea){for(var eu=et.length,ed=ea?eu:-1;(ea?ed--:++ed<eu)&&eo(et[ed],ed,et););return ei?baseSlice(et,ea?0:ed,ea?ed+1:eu):baseSlice(et,ea?ed+1:0,ea?eu:ed)}function baseWrapperValue(et,eo){var ei=et;return ei instanceof LazyWrapper&&(ei=ei.value()),arrayReduce(eo,function(et,eo){return eo.func.apply(eo.thisArg,arrayPush([et],eo.args))},ei)}function baseXor(et,ei,ea){var eu=et.length;if(eu<2)return eu?baseUniq(et[0]):[];for(var ed=-1,eh=eo(eu);++ed<eu;)for(var ep=et[ed],ef=-1;++ef<eu;)ef!=ed&&(eh[ed]=baseDifference(eh[ed]||ep,et[ef],ei,ea));return baseUniq(baseFlatten(eh,1),ei,ea)}function baseZipObject(et,eo,ei){for(var ea=-1,ed=et.length,eh=eo.length,ep={};++ea<ed;){var ef=ea<eh?eo[ea]:eu;ei(ep,et[ea],ef)}return ep}function castArrayLikeObject(et){return isArrayLikeObject(et)?et:[]}function castFunction(et){return"function"==typeof et?et:identity}function castPath(et,eo){return ob(et)?et:isKey(et,eo)?[et]:nF(toString(et))}var nP=baseRest;function castSlice(et,eo,ei){var ea=et.length;return ei=eu===ei?ea:ei,!eo&&ei>=ea?et:baseSlice(et,eo,ei)}var nk=rP||function(et){return rQ.clearTimeout(et)};function cloneBuffer(et,eo){if(eo)return et.slice();var ei=et.length,ea=rC?rC(ei):new et.constructor(ei);return et.copy(ea),ea}function cloneArrayBuffer(et){var eo=new et.constructor(et.byteLength);return new rb(eo).set(new rb(et)),eo}function cloneDataView(et,eo){var ei=eo?cloneArrayBuffer(et.buffer):et.buffer;return new et.constructor(ei,et.byteOffset,et.byteLength)}function cloneRegExp(et){var eo=new et.constructor(et.source,t0.exec(et));return eo.lastIndex=et.lastIndex,eo}function cloneSymbol(et){return nC?t9(nC.call(et)):{}}function cloneTypedArray(et,eo){var ei=eo?cloneArrayBuffer(et.buffer):et.buffer;return new et.constructor(ei,et.byteOffset,et.length)}function compareAscending(et,eo){if(et!==eo){var ei=eu!==et,ea=null===et,ed=et==et,eh=isSymbol(et),ep=eu!==eo,ef=null===eo,em=eo==eo,eg=isSymbol(eo);if(!ef&&!eg&&!eh&&et>eo||eh&&ep&&em&&!ef&&!eg||ea&&ep&&em||!ei&&em||!ed)return 1;if(!ea&&!eh&&!eg&&et<eo||eg&&ei&&ed&&!ea&&!eh||ef&&ei&&ed||!ep&&ed||!em)return -1}return 0}function compareMultiple(et,eo,ei){for(var ea=-1,eu=et.criteria,ed=eo.criteria,eh=eu.length,ep=ei.length;++ea<eh;){var ef=compareAscending(eu[ea],ed[ea]);if(ef){if(ea>=ep)return ef;return ef*("desc"==ei[ea]?-1:1)}}return et.index-eo.index}function composeArgs(et,ei,ea,eu){for(var ed=-1,eh=et.length,ep=ea.length,ef=-1,em=ei.length,eg=rz(eh-ep,0),ey=eo(em+eg),eC=!eu;++ef<em;)ey[ef]=ei[ef];for(;++ed<ep;)(eC||ed<eh)&&(ey[ea[ed]]=et[ed]);for(;eg--;)ey[ef++]=et[ed++];return ey}function composeArgsRight(et,ei,ea,eu){for(var ed=-1,eh=et.length,ep=-1,ef=ea.length,em=-1,eg=ei.length,ey=rz(eh-ef,0),eC=eo(ey+eg),eS=!eu;++ed<ey;)eC[ed]=et[ed];for(var e_=ed;++em<eg;)eC[e_+em]=ei[em];for(;++ep<ef;)(eS||ed<eh)&&(eC[e_+ea[ep]]=et[ed++]);return eC}function copyArray(et,ei){var ea=-1,eu=et.length;for(ei||(ei=eo(eu));++ea<eu;)ei[ea]=et[ea];return ei}function copyObject(et,eo,ei,ea){var ed=!ei;ei||(ei={});for(var eh=-1,ep=eo.length;++eh<ep;){var ef=eo[eh],em=ea?ea(ei[ef],et[ef],ef,ei,et):eu;eu===em&&(em=et[ef]),ed?baseAssignValue(ei,ef,em):assignValue(ei,ef,em)}return ei}function copySymbols(et,eo){return copyObject(et,nM(et),eo)}function copySymbolsIn(et,eo){return copyObject(et,nD(et),eo)}function createAggregator(et,eo){return function(ei,ea){var eu=ob(ei)?arrayAggregator:baseAggregator,ed=eo?eo():{};return eu(ei,et,getIteratee(ea,2),ed)}}function createAssigner(et){return baseRest(function(eo,ei){var ea=-1,ed=ei.length,eh=ed>1?ei[ed-1]:eu,ep=ed>2?ei[2]:eu;for(eh=et.length>3&&"function"==typeof eh?(ed--,eh):eu,ep&&isIterateeCall(ei[0],ei[1],ep)&&(eh=ed<3?eu:eh,ed=1),eo=t9(eo);++ea<ed;){var ef=ei[ea];ef&&et(eo,ef,ea,eh)}return eo})}function createBaseEach(et,eo){return function(ei,ea){if(null==ei)return ei;if(!isArrayLike(ei))return et(ei,ea);for(var eu=ei.length,ed=eo?eu:-1,eh=t9(ei);(eo?ed--:++ed<eu)&&!1!==ea(eh[ed],ed,eh););return ei}}function createBaseFor(et){return function(eo,ei,ea){for(var eu=-1,ed=t9(eo),eh=ea(eo),ep=eh.length;ep--;){var ef=eh[et?ep:++eu];if(!1===ei(ed[ef],ef,ed))break}return eo}}function createBind(et,eo,ei){var ea=eo&eR,eu=createCtor(et);function wrapper(){return(this&&this!==rQ&&this instanceof wrapper?eu:et).apply(ea?ei:this,arguments)}return wrapper}function createCaseFirst(et){return function(eo){var ei=hasUnicode(eo=toString(eo))?stringToArray(eo):eu,ea=ei?ei[0]:eo.charAt(0),ed=ei?castSlice(ei,1).join(""):eo.slice(1);return ea[et]()+ed}}function createCompounder(et){return function(eo){return arrayReduce(words(deburr(eo).replace(rD,"")),et,"")}}function createCtor(et){return function(){var eo=arguments;switch(eo.length){case 0:return new et;case 1:return new et(eo[0]);case 2:return new et(eo[0],eo[1]);case 3:return new et(eo[0],eo[1],eo[2]);case 4:return new et(eo[0],eo[1],eo[2],eo[3]);case 5:return new et(eo[0],eo[1],eo[2],eo[3],eo[4]);case 6:return new et(eo[0],eo[1],eo[2],eo[3],eo[4],eo[5]);case 7:return new et(eo[0],eo[1],eo[2],eo[3],eo[4],eo[5],eo[6])}var ei=n_(et.prototype),ea=et.apply(ei,eo);return isObject(ea)?ea:ei}}function createCurry(et,ei,ea){var ed=createCtor(et);function wrapper(){for(var eh=arguments.length,ep=eo(eh),ef=eh,em=getHolder(wrapper);ef--;)ep[ef]=arguments[ef];var eg=eh<3&&ep[0]!==em&&ep[eh-1]!==em?[]:replaceHolders(ep,em);return(eh-=eg.length)<ea?createRecurry(et,ei,createHybrid,wrapper.placeholder,eu,ep,eg,eu,eu,ea-eh):apply(this&&this!==rQ&&this instanceof wrapper?ed:et,this,ep)}return wrapper}function createFind(et){return function(eo,ei,ea){var ed=t9(eo);if(!isArrayLike(eo)){var eh=getIteratee(ei,3);eo=keys(eo),ei=function(et){return eh(ed[et],et,ed)}}var ep=et(eo,ei,ea);return ep>-1?ed[eh?eo[ep]:ep]:eu}}function createFlow(et){return flatRest(function(eo){var ei=eo.length,ea=ei,ed=LodashWrapper.prototype.thru;for(et&&eo.reverse();ea--;){var eh=eo[ea];if("function"!=typeof eh)throw new ro(ef);if(ed&&!ep&&"wrapper"==getFuncName(eh))var ep=new LodashWrapper([],!0)}for(ea=ep?ea:ei;++ea<ei;){var em=getFuncName(eh=eo[ea]),eg="wrapper"==em?nx(eh):eu;ep=eg&&isLaziable(eg[0])&&eg[1]==(eD|eP|eO|eU)&&!eg[4].length&&1==eg[9]?ep[getFuncName(eg[0])].apply(ep,eg[3]):1==eh.length&&isLaziable(eh)?ep[em]():ep.thru(eh)}return function(){var et=arguments,ea=et[0];if(ep&&1==et.length&&ob(ea))return ep.plant(ea).value();for(var eu=0,ed=ei?eo[eu].apply(this,et):ea;++eu<ei;)ed=eo[eu].call(this,ed);return ed}})}function createHybrid(et,ei,ea,ed,eh,ep,ef,em,eg,ey){var eC=ei&eD,eS=ei&eR,e_=ei&eT,ew=ei&(eP|ek),eA=ei&eL,eI=e_?eu:createCtor(et);function wrapper(){for(var eu=arguments.length,eR=eo(eu),eT=eu;eT--;)eR[eT]=arguments[eT];if(ew)var eE=getHolder(wrapper),eP=countHolders(eR,eE);if(ed&&(eR=composeArgs(eR,ed,eh,ew)),ep&&(eR=composeArgsRight(eR,ep,ef,ew)),eu-=eP,ew&&eu<ey){var ek=replaceHolders(eR,eE);return createRecurry(et,ei,createHybrid,wrapper.placeholder,ea,eR,ek,em,eg,ey-eu)}var eO=eS?ea:this,eM=e_?eO[et]:et;return eu=eR.length,em?eR=reorder(eR,em):eA&&eu>1&&eR.reverse(),eC&&eg<eu&&(eR.length=eg),this&&this!==rQ&&this instanceof wrapper&&(eM=eI||createCtor(eM)),eM.apply(eO,eR)}return wrapper}function createInverter(et,eo){return function(ei,ea){return baseInverter(ei,et,eo(ea),{})}}function createMathOperation(et,eo){return function(ei,ea){var ed;if(eu===ei&&eu===ea)return eo;if(eu!==ei&&(ed=ei),eu!==ea){if(eu===ed)return ea;"string"==typeof ei||"string"==typeof ea?(ei=baseToString(ei),ea=baseToString(ea)):(ei=baseToNumber(ei),ea=baseToNumber(ea)),ed=et(ei,ea)}return ed}}function createOver(et){return flatRest(function(eo){return eo=arrayMap(eo,baseUnary(getIteratee())),baseRest(function(ei){var ea=this;return et(eo,function(et){return apply(et,ea,ei)})})})}function createPadding(et,eo){var ei=(eo=eu===eo?" ":baseToString(eo)).length;if(ei<2)return ei?baseRepeat(eo,et):eo;var ea=baseRepeat(eo,rx(et/stringSize(eo)));return hasUnicode(eo)?castSlice(stringToArray(ea),0,et).join(""):ea.slice(0,et)}function createPartial(et,ei,ea,eu){var ed=ei&eR,eh=createCtor(et);function wrapper(){for(var ei=-1,ep=arguments.length,ef=-1,em=eu.length,eg=eo(em+ep),ey=this&&this!==rQ&&this instanceof wrapper?eh:et;++ef<em;)eg[ef]=eu[ef];for(;ep--;)eg[ef++]=arguments[++ei];return apply(ey,ed?ea:this,eg)}return wrapper}function createRange(et){return function(eo,ei,ea){return ea&&"number"!=typeof ea&&isIterateeCall(eo,ei,ea)&&(ei=ea=eu),eo=toFinite(eo),eu===ei?(ei=eo,eo=0):ei=toFinite(ei),ea=eu===ea?eo<ei?1:-1:toFinite(ea),baseRange(eo,ei,ea,et)}}function createRelationalOperation(et){return function(eo,ei){return"string"==typeof eo&&"string"==typeof ei||(eo=toNumber(eo),ei=toNumber(ei)),et(eo,ei)}}function createRecurry(et,eo,ei,ea,ed,eh,ep,ef,em,eg){var ey=eo&eP,eC=ey?ep:eu,eS=ey?eu:ep,e_=ey?eh:eu,ew=ey?eu:eh;eo|=ey?eO:eM,(eo&=~(ey?eM:eO))&eE||(eo&=~(eR|eT));var eA=[et,eo,ed,e_,eC,ew,eS,ef,em,eg],eI=ei.apply(eu,eA);return isLaziable(et)&&nN(eI,eA),eI.placeholder=ea,setWrapToString(eI,et,eo)}function createRound(et){var eo=t$[et];return function(et,ei){if(et=toNumber(et),(ei=null==ei?0:rW(toInteger(ei),292))&&rq(et)){var ea=(toString(et)+"e").split("e");return+((ea=(toString(eo(ea[0]+"e"+(+ea[1]+ei)))+"e").split("e"))[0]+"e"+(+ea[1]-ei))}return eo(et)}}var nO=nr&&1/setToArray(new nr([,-0]))[1]==ez?function(et){return new nr(et)}:noop;function createToPairs(et){return function(eo){var ei=nU(eo);return ei==tn?mapToArray(eo):ei==tp?setToPairs(eo):baseToPairs(eo,et(eo))}}function createWrap(et,eo,ei,ea,ed,eh,ep,em){var eg=eo&eT;if(!eg&&"function"!=typeof et)throw new ro(ef);var ey=ea?ea.length:0;if(ey||(eo&=~(eO|eM),ea=ed=eu),ep=eu===ep?ep:rz(toInteger(ep),0),em=eu===em?em:toInteger(em),ey-=ed?ed.length:0,eo&eM){var eC=ea,eS=ed;ea=ed=eu}var e_=eg?eu:nx(et),ew=[et,eo,ei,ea,ed,eC,eS,eh,ep,em];if(e_&&mergeData(ew,e_),et=ew[0],eo=ew[1],ei=ew[2],ea=ew[3],ed=ew[4],(em=ew[9]=eu===ew[9]?eg?0:et.length:rz(ew[9]-ey,0))||!(eo&(eP|ek))||(eo&=~(eP|ek)),eo&&eo!=eR)eA=eo==eP||eo==ek?createCurry(et,eo,em):eo!=eO&&eo!=(eR|eO)||ed.length?createHybrid.apply(eu,ew):createPartial(et,eo,ei,ea);else var eA=createBind(et,eo,ei);return setWrapToString((e_?nT:nN)(eA,ew),et,eo)}function customDefaultsAssignIn(et,eo,ei,ea){return eu===et||eq(et,rs[ei])&&!rl.call(ea,ei)?eo:et}function customDefaultsMerge(et,eo,ei,ea,ed,eh){return isObject(et)&&isObject(eo)&&(eh.set(eo,et),baseMerge(et,eo,eu,customDefaultsMerge,eh),eh.delete(eo)),et}function customOmitClone(et){return isPlainObject(et)?eu:et}function equalArrays(et,eo,ei,ea,ed,eh){var ep=ei&eA,ef=et.length,em=eo.length;if(ef!=em&&!(ep&&em>ef))return!1;var eg=eh.get(et),ey=eh.get(eo);if(eg&&ey)return eg==eo&&ey==et;var eC=-1,eS=!0,e_=ei&eI?new SetCache:eu;for(eh.set(et,eo),eh.set(eo,et);++eC<ef;){var ew=et[eC],eR=eo[eC];if(ea)var eT=ep?ea(eR,ew,eC,eo,et,eh):ea(ew,eR,eC,et,eo,eh);if(eu!==eT){if(eT)continue;eS=!1;break}if(e_){if(!arraySome(eo,function(et,eo){if(!cacheHas(e_,eo)&&(ew===et||ed(ew,et,ei,ea,eh)))return e_.push(eo)})){eS=!1;break}}else if(!(ew===eR||ed(ew,eR,ei,ea,eh))){eS=!1;break}}return eh.delete(et),eh.delete(eo),eS}function equalByTag(et,eo,ei,ea,eu,ed,eh){switch(ei){case tC:if(et.byteLength!=eo.byteLength||et.byteOffset!=eo.byteOffset)break;et=et.buffer,eo=eo.buffer;case tb:if(et.byteLength!=eo.byteLength||!ed(new rb(et),new rb(eo)))break;return!0;case e6:case e5:case ti:return eq(+et,+eo);case e7:return et.name==eo.name&&et.message==eo.message;case td:case tf:return et==eo+"";case tn:var ep=mapToArray;case tp:var ef=ea&eA;if(ep||(ep=setToArray),et.size!=eo.size&&!ef)break;var em=eh.get(et);if(em)return em==eo;ea|=eI,eh.set(et,eo);var eg=equalArrays(ep(et),ep(eo),ea,eu,ed,eh);return eh.delete(et),eg;case tm:if(nC)return nC.call(et)==nC.call(eo)}return!1}function equalObjects(et,eo,ei,ea,ed,eh){var ep=ei&eA,ef=getAllKeys(et),em=ef.length;if(em!=getAllKeys(eo).length&&!ep)return!1;for(var eg=em;eg--;){var ey=ef[eg];if(!(ep?ey in eo:rl.call(eo,ey)))return!1}var eC=eh.get(et),eS=eh.get(eo);if(eC&&eS)return eC==eo&&eS==et;var e_=!0;eh.set(et,eo),eh.set(eo,et);for(var ew=ep;++eg<em;){var eI=et[ey=ef[eg]],eR=eo[ey];if(ea)var eT=ep?ea(eR,eI,ey,eo,et,eh):ea(eI,eR,ey,et,eo,eh);if(!(eu===eT?eI===eR||ed(eI,eR,ei,ea,eh):eT)){e_=!1;break}ew||(ew="constructor"==ey)}if(e_&&!ew){var eE=et.constructor,eP=eo.constructor;eE!=eP&&"constructor"in et&&"constructor"in eo&&!("function"==typeof eE&&eE instanceof eE&&"function"==typeof eP&&eP instanceof eP)&&(e_=!1)}return eh.delete(et),eh.delete(eo),e_}function flatRest(et){return nB(overRest(et,eu,flatten),et+"")}function getAllKeys(et){return baseGetAllKeys(et,keys,nM)}function getAllKeysIn(et){return baseGetAllKeys(et,keysIn,nD)}var nx=nd?function(et){return nd.get(et)}:noop;function getFuncName(et){for(var eo=et.name+"",ei=nh[eo],ea=rl.call(nh,eo)?ei.length:0;ea--;){var eu=ei[ea],ed=eu.func;if(null==ed||ed==et)return eu.name}return eo}function getHolder(et){return(rl.call(lodash,"placeholder")?lodash:et).placeholder}function getIteratee(){var et=lodash.iteratee||iteratee;return et=et===iteratee?baseIteratee:et,arguments.length?et(arguments[0],arguments[1]):et}function getMapData(et,eo){var ei=et.__data__;return isKeyable(eo)?ei["string"==typeof eo?"string":"hash"]:ei.map}function getMatchData(et){for(var eo=keys(et),ei=eo.length;ei--;){var ea=eo[ei],eu=et[ea];eo[ei]=[ea,eu,isStrictComparable(eu)]}return eo}function getNative(et,eo){var ei=getValue(et,eo);return baseIsNative(ei)?ei:eu}function getRawTag(et){var eo=rl.call(et,rT),ei=et[rT];try{et[rT]=eu;var ea=!0}catch(et){}var ed=rp.call(et);return ea&&(eo?et[rT]=ei:delete et[rT]),ed}var nM=rL?function(et){return null==et?[]:arrayFilter(rL(et=t9(et)),function(eo){return rw.call(et,eo)})}:stubArray,nD=rL?function(et){for(var eo=[];et;)arrayPush(eo,nM(et)),et=rS(et);return eo}:stubArray,nU=baseGetTag;function getView(et,eo,ei){for(var ea=-1,eu=ei.length;++ea<eu;){var ed=ei[ea],eh=ed.size;switch(ed.type){case"drop":et+=eh;break;case"dropRight":eo-=eh;break;case"take":eo=rW(eo,et+eh);break;case"takeRight":et=rz(et,eo-eh)}}return{start:et,end:eo}}function getWrapDetails(et){var eo=et.match(tJ);return eo?eo[1].split(tY):[]}function hasPath(et,eo,ei){eo=castPath(eo,et);for(var ea=-1,eu=eo.length,ed=!1;++ea<eu;){var eh=toKey(eo[ea]);if(!(ed=null!=et&&ei(et,eh)))break;et=et[eh]}return ed||++ea!=eu?ed:!!(eu=null==et?0:et.length)&&isLength(eu)&&isIndex(eh,eu)&&(ob(et)||ov(et))}function initCloneArray(et){var eo=et.length,ei=new et.constructor(eo);return eo&&"string"==typeof et[0]&&rl.call(et,"index")&&(ei.index=et.index,ei.input=et.input),ei}function initCloneObject(et){return"function"!=typeof et.constructor||isPrototype(et)?{}:n_(rS(et))}function initCloneByTag(et,eo,ei){var ea=et.constructor;switch(eo){case tb:return cloneArrayBuffer(et);case e6:case e5:return new ea(+et);case tC:return cloneDataView(et,ei);case tS:case t_:case tw:case tA:case tI:case tR:case tT:case tE:case tP:return cloneTypedArray(et,ei);case tn:return new ea;case ti:case tf:return new ea(et);case td:return cloneRegExp(et);case tp:return new ea;case tm:return cloneSymbol(et)}}function insertWrapDetails(et,eo){var ei=eo.length;if(!ei)return et;var ea=ei-1;return eo[ea]=(ei>1?"& ":"")+eo[ea],eo=eo.join(ei>2?", ":" "),et.replace(tV,"{\n/* [wrapped with "+eo+"] */\n")}function isFlattenable(et){return ob(et)||ov(et)||!!(rI&&et&&et[rI])}function isIndex(et,eo){var ei=typeof et;return!!(eo=null==eo?eW:eo)&&("number"==ei||"symbol"!=ei&&t6.test(et))&&et>-1&&et%1==0&&et<eo}function isIterateeCall(et,eo,ei){if(!isObject(ei))return!1;var ea=typeof eo;return("number"==ea?!!(isArrayLike(ei)&&isIndex(eo,ei.length)):"string"==ea&&eo in ei)&&eq(ei[eo],et)}function isKey(et,eo){if(ob(et))return!1;var ei=typeof et;return!!("number"==ei||"symbol"==ei||"boolean"==ei||null==et||isSymbol(et))||tj.test(et)||!tF.test(et)||null!=eo&&et in t9(eo)}function isKeyable(et){var eo=typeof et;return"string"==eo||"number"==eo||"symbol"==eo||"boolean"==eo?"__proto__"!==et:null===et}function isLaziable(et){var eo=getFuncName(et),ei=lodash[eo];if("function"!=typeof ei||!(eo in LazyWrapper.prototype))return!1;if(et===ei)return!0;var ea=nx(ei);return!!ea&&et===ea[0]}function isMasked(et){return!!rh&&rh in et}(r0&&nU(new r0(new ArrayBuffer(1)))!=tC||r2&&nU(new r2)!=tn||r4&&nU(r4.resolve())!=tc||nr&&nU(new nr)!=tp||nu&&nU(new nu)!=ty)&&(nU=function(et){var eo=baseGetTag(et),ei=eo==ts?et.constructor:eu,ea=ei?toSource(ei):"";if(ea)switch(ea){case np:return tC;case nf:return tn;case nm:return tc;case ng:return tp;case ny:return ty}return eo});var nL=rc?isFunction:stubFalse;function isPrototype(et){var eo=et&&et.constructor;return et===("function"==typeof eo&&eo.prototype||rs)}function isStrictComparable(et){return et==et&&!isObject(et)}function matchesStrictComparable(et,eo){return function(ei){return null!=ei&&ei[et]===eo&&(eu!==eo||et in t9(ei))}}function memoizeCapped(et){var eo=memoize(et,function(et){return ei.size===ey&&ei.clear(),et}),ei=eo.cache;return eo}function mergeData(et,eo){var ei=et[1],ea=eo[1],eu=ei|ea,ed=eu<(eR|eT|eD),eh=ea==eD&&ei==eP||ea==eD&&ei==eU&&et[7].length<=eo[8]||ea==(eD|eU)&&eo[7].length<=eo[8]&&ei==eP;if(!(ed||eh))return et;ea&eR&&(et[2]=eo[2],eu|=ei&eR?0:eE);var ep=eo[3];if(ep){var ef=et[3];et[3]=ef?composeArgs(ef,ep,eo[4]):ep,et[4]=ef?replaceHolders(et[3],eC):eo[4]}return(ep=eo[5])&&(ef=et[5],et[5]=ef?composeArgsRight(ef,ep,eo[6]):ep,et[6]=ef?replaceHolders(et[5],eC):eo[6]),(ep=eo[7])&&(et[7]=ep),ea&eD&&(et[8]=null==et[8]?eo[8]:rW(et[8],eo[8])),null==et[9]&&(et[9]=eo[9]),et[0]=eo[0],et[1]=eu,et}function nativeKeysIn(et){var eo=[];if(null!=et)for(var ei in t9(et))eo.push(ei);return eo}function objectToString(et){return rp.call(et)}function overRest(et,ei,ea){return ei=rz(eu===ei?et.length-1:ei,0),function(){for(var eu=arguments,ed=-1,eh=rz(eu.length-ei,0),ep=eo(eh);++ed<eh;)ep[ed]=eu[ei+ed];ed=-1;for(var ef=eo(ei+1);++ed<ei;)ef[ed]=eu[ed];return ef[ei]=ea(ep),apply(et,this,ef)}}function parent(et,eo){return eo.length<2?et:baseGet(et,baseSlice(eo,0,-1))}function reorder(et,eo){for(var ei=et.length,ea=rW(eo.length,ei),ed=copyArray(et);ea--;){var eh=eo[ea];et[ea]=isIndex(eh,ei)?ed[eh]:eu}return et}function safeGet(et,eo){if(("constructor"!==eo||"function"!=typeof et[eo])&&"__proto__"!=eo)return et[eo]}var nN=shortOut(nT),nq=rO||function(et,eo){return rQ.setTimeout(et,eo)},nB=shortOut(nE);function setWrapToString(et,eo,ei){var ea=eo+"";return nB(et,insertWrapDetails(ea,updateWrapDetails(getWrapDetails(ea),ei)))}function shortOut(et){var eo=0,ei=0;return function(){var ea=rV(),ed=ej-(ea-ei);if(ei=ea,ed>0){if(++eo>=eF)return arguments[0]}else eo=0;return et.apply(eu,arguments)}}function shuffleSelf(et,eo){var ei=-1,ea=et.length,ed=ea-1;for(eo=eu===eo?ea:eo;++ei<eo;){var eh=baseRandom(ei,ed),ep=et[eh];et[eh]=et[ei],et[ei]=ep}return et.length=eo,et}var nF=memoizeCapped(function(et){var eo=[];return 46===et.charCodeAt(0)&&eo.push(""),et.replace(tG,function(et,ei,ea,eu){eo.push(ea?eu.replace(tQ,"$1"):ei||et)}),eo});function toKey(et){if("string"==typeof et||isSymbol(et))return et;var eo=et+"";return"0"==eo&&1/et==-ez?"-0":eo}function toSource(et){if(null!=et){try{return ru.call(et)}catch(et){}try{return et+""}catch(et){}}return""}function updateWrapDetails(et,eo){return arrayEach(eQ,function(ei){var ea="_."+ei[0];eo&ei[1]&&!arrayIncludes(et,ea)&&et.push(ea)}),et.sort()}function wrapperClone(et){if(et instanceof LazyWrapper)return et.clone();var eo=new LodashWrapper(et.__wrapped__,et.__chain__);return eo.__actions__=copyArray(et.__actions__),eo.__index__=et.__index__,eo.__values__=et.__values__,eo}function chunk(et,ei,ea){ei=(ea?isIterateeCall(et,ei,ea):eu===ei)?1:rz(toInteger(ei),0);var ed=null==et?0:et.length;if(!ed||ei<1)return[];for(var eh=0,ep=0,ef=eo(rx(ed/ei));eh<ed;)ef[ep++]=baseSlice(et,eh,eh+=ei);return ef}function compact(et){for(var eo=-1,ei=null==et?0:et.length,ea=0,eu=[];++eo<ei;){var ed=et[eo];ed&&(eu[ea++]=ed)}return eu}function concat(){var et=arguments.length;if(!et)return[];for(var ei=eo(et-1),ea=arguments[0],eu=et;eu--;)ei[eu-1]=arguments[eu];return arrayPush(ob(ea)?copyArray(ea):[ea],baseFlatten(ei,1))}var nj=baseRest(function(et,eo){return isArrayLikeObject(et)?baseDifference(et,baseFlatten(eo,1,isArrayLikeObject,!0)):[]}),nG=baseRest(function(et,eo){var ei=last(eo);return isArrayLikeObject(ei)&&(ei=eu),isArrayLikeObject(et)?baseDifference(et,baseFlatten(eo,1,isArrayLikeObject,!0),getIteratee(ei,2)):[]}),nH=baseRest(function(et,eo){var ei=last(eo);return isArrayLikeObject(ei)&&(ei=eu),isArrayLikeObject(et)?baseDifference(et,baseFlatten(eo,1,isArrayLikeObject,!0),eu,ei):[]});function drop(et,eo,ei){var ea=null==et?0:et.length;return ea?baseSlice(et,(eo=ei||eu===eo?1:toInteger(eo))<0?0:eo,ea):[]}function dropRight(et,eo,ei){var ea=null==et?0:et.length;return ea?baseSlice(et,0,(eo=ea-(eo=ei||eu===eo?1:toInteger(eo)))<0?0:eo):[]}function dropRightWhile(et,eo){return et&&et.length?baseWhile(et,getIteratee(eo,3),!0,!0):[]}function dropWhile(et,eo){return et&&et.length?baseWhile(et,getIteratee(eo,3),!0):[]}function fill(et,eo,ei,ea){var eu=null==et?0:et.length;return eu?(ei&&"number"!=typeof ei&&isIterateeCall(et,eo,ei)&&(ei=0,ea=eu),baseFill(et,eo,ei,ea)):[]}function findIndex(et,eo,ei){var ea=null==et?0:et.length;if(!ea)return -1;var eu=null==ei?0:toInteger(ei);return eu<0&&(eu=rz(ea+eu,0)),baseFindIndex(et,getIteratee(eo,3),eu)}function findLastIndex(et,eo,ei){var ea=null==et?0:et.length;if(!ea)return -1;var ed=ea-1;return eu!==ei&&(ed=toInteger(ei),ed=ei<0?rz(ea+ed,0):rW(ed,ea-1)),baseFindIndex(et,getIteratee(eo,3),ed,!0)}function flatten(et){return(null==et?0:et.length)?baseFlatten(et,1):[]}function flattenDeep(et){return(null==et?0:et.length)?baseFlatten(et,ez):[]}function flattenDepth(et,eo){return(null==et?0:et.length)?baseFlatten(et,eo=eu===eo?1:toInteger(eo)):[]}function fromPairs(et){for(var eo=-1,ei=null==et?0:et.length,ea={};++eo<ei;){var eu=et[eo];ea[eu[0]]=eu[1]}return ea}function head(et){return et&&et.length?et[0]:eu}function indexOf(et,eo,ei){var ea=null==et?0:et.length;if(!ea)return -1;var eu=null==ei?0:toInteger(ei);return eu<0&&(eu=rz(ea+eu,0)),baseIndexOf(et,eo,eu)}function initial(et){return(null==et?0:et.length)?baseSlice(et,0,-1):[]}var nK=baseRest(function(et){var eo=arrayMap(et,castArrayLikeObject);return eo.length&&eo[0]===et[0]?baseIntersection(eo):[]}),nz=baseRest(function(et){var eo=last(et),ei=arrayMap(et,castArrayLikeObject);return eo===last(ei)?eo=eu:ei.pop(),ei.length&&ei[0]===et[0]?baseIntersection(ei,getIteratee(eo,2)):[]}),nW=baseRest(function(et){var eo=last(et),ei=arrayMap(et,castArrayLikeObject);return(eo="function"==typeof eo?eo:eu)&&ei.pop(),ei.length&&ei[0]===et[0]?baseIntersection(ei,eu,eo):[]});function join(et,eo){return null==et?"":rB.call(et,eo)}function last(et){var eo=null==et?0:et.length;return eo?et[eo-1]:eu}function lastIndexOf(et,eo,ei){var ea=null==et?0:et.length;if(!ea)return -1;var ed=ea;return eu!==ei&&(ed=(ed=toInteger(ei))<0?rz(ea+ed,0):rW(ed,ea-1)),eo==eo?strictLastIndexOf(et,eo,ed):baseFindIndex(et,baseIsNaN,ed,!0)}function nth(et,eo){return et&&et.length?baseNth(et,toInteger(eo)):eu}var nV=baseRest(pullAll);function pullAll(et,eo){return et&&et.length&&eo&&eo.length?basePullAll(et,eo):et}function pullAllBy(et,eo,ei){return et&&et.length&&eo&&eo.length?basePullAll(et,eo,getIteratee(ei,2)):et}function pullAllWith(et,eo,ei){return et&&et.length&&eo&&eo.length?basePullAll(et,eo,eu,ei):et}var nJ=flatRest(function(et,eo){var ei=null==et?0:et.length,ea=baseAt(et,eo);return basePullAt(et,arrayMap(eo,function(et){return isIndex(et,ei)?+et:et}).sort(compareAscending)),ea});function remove(et,eo){var ei=[];if(!(et&&et.length))return ei;var ea=-1,eu=[],ed=et.length;for(eo=getIteratee(eo,3);++ea<ed;){var eh=et[ea];eo(eh,ea,et)&&(ei.push(eh),eu.push(ea))}return basePullAt(et,eu),ei}function reverse(et){return null==et?et:rX.call(et)}function slice(et,eo,ei){var ea=null==et?0:et.length;return ea?(ei&&"number"!=typeof ei&&isIterateeCall(et,eo,ei)?(eo=0,ei=ea):(eo=null==eo?0:toInteger(eo),ei=eu===ei?ea:toInteger(ei)),baseSlice(et,eo,ei)):[]}function sortedIndex(et,eo){return baseSortedIndex(et,eo)}function sortedIndexBy(et,eo,ei){return baseSortedIndexBy(et,eo,getIteratee(ei,2))}function sortedIndexOf(et,eo){var ei=null==et?0:et.length;if(ei){var ea=baseSortedIndex(et,eo);if(ea<ei&&eq(et[ea],eo))return ea}return -1}function sortedLastIndex(et,eo){return baseSortedIndex(et,eo,!0)}function sortedLastIndexBy(et,eo,ei){return baseSortedIndexBy(et,eo,getIteratee(ei,2),!0)}function sortedLastIndexOf(et,eo){if(null==et?0:et.length){var ei=baseSortedIndex(et,eo,!0)-1;if(eq(et[ei],eo))return ei}return -1}function sortedUniq(et){return et&&et.length?baseSortedUniq(et):[]}function sortedUniqBy(et,eo){return et&&et.length?baseSortedUniq(et,getIteratee(eo,2)):[]}function tail(et){var eo=null==et?0:et.length;return eo?baseSlice(et,1,eo):[]}function take(et,eo,ei){return et&&et.length?baseSlice(et,0,(eo=ei||eu===eo?1:toInteger(eo))<0?0:eo):[]}function takeRight(et,eo,ei){var ea=null==et?0:et.length;return ea?baseSlice(et,(eo=ea-(eo=ei||eu===eo?1:toInteger(eo)))<0?0:eo,ea):[]}function takeRightWhile(et,eo){return et&&et.length?baseWhile(et,getIteratee(eo,3),!1,!0):[]}function takeWhile(et,eo){return et&&et.length?baseWhile(et,getIteratee(eo,3)):[]}var nY=baseRest(function(et){return baseUniq(baseFlatten(et,1,isArrayLikeObject,!0))}),n$=baseRest(function(et){var eo=last(et);return isArrayLikeObject(eo)&&(eo=eu),baseUniq(baseFlatten(et,1,isArrayLikeObject,!0),getIteratee(eo,2))}),nZ=baseRest(function(et){var eo=last(et);return eo="function"==typeof eo?eo:eu,baseUniq(baseFlatten(et,1,isArrayLikeObject,!0),eu,eo)});function uniq(et){return et&&et.length?baseUniq(et):[]}function uniqBy(et,eo){return et&&et.length?baseUniq(et,getIteratee(eo,2)):[]}function uniqWith(et,eo){return eo="function"==typeof eo?eo:eu,et&&et.length?baseUniq(et,eu,eo):[]}function unzip(et){if(!(et&&et.length))return[];var eo=0;return et=arrayFilter(et,function(et){if(isArrayLikeObject(et))return eo=rz(et.length,eo),!0}),baseTimes(eo,function(eo){return arrayMap(et,baseProperty(eo))})}function unzipWith(et,eo){if(!(et&&et.length))return[];var ei=unzip(et);return null==eo?ei:arrayMap(ei,function(et){return apply(eo,eu,et)})}var nQ=baseRest(function(et,eo){return isArrayLikeObject(et)?baseDifference(et,eo):[]}),nX=baseRest(function(et){return baseXor(arrayFilter(et,isArrayLikeObject))}),n0=baseRest(function(et){var eo=last(et);return isArrayLikeObject(eo)&&(eo=eu),baseXor(arrayFilter(et,isArrayLikeObject),getIteratee(eo,2))}),n1=baseRest(function(et){var eo=last(et);return eo="function"==typeof eo?eo:eu,baseXor(arrayFilter(et,isArrayLikeObject),eu,eo)}),n2=baseRest(unzip);function zipObject(et,eo){return baseZipObject(et||[],eo||[],assignValue)}function zipObjectDeep(et,eo){return baseZipObject(et||[],eo||[],baseSet)}var n4=baseRest(function(et){var eo=et.length,ei=eo>1?et[eo-1]:eu;return ei="function"==typeof ei?(et.pop(),ei):eu,unzipWith(et,ei)});function chain(et){var eo=lodash(et);return eo.__chain__=!0,eo}function tap(et,eo){return eo(et),et}function thru(et,eo){return eo(et)}var n3=flatRest(function(et){var eo=et.length,ei=eo?et[0]:0,ea=this.__wrapped__,interceptor=function(eo){return baseAt(eo,et)};return!(eo>1)&&!this.__actions__.length&&ea instanceof LazyWrapper&&isIndex(ei)?((ea=ea.slice(ei,+ei+(eo?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:eu}),new LodashWrapper(ea,this.__chain__).thru(function(et){return eo&&!et.length&&et.push(eu),et})):this.thru(interceptor)});function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}function wrapperNext(){eu===this.__values__&&(this.__values__=toArray(this.value()));var et=this.__index__>=this.__values__.length,eo=et?eu:this.__values__[this.__index__++];return{done:et,value:eo}}function wrapperToIterator(){return this}function wrapperPlant(et){for(var eo,ei=this;ei instanceof baseLodash;){var ea=wrapperClone(ei);ea.__index__=0,ea.__values__=eu,eo?ed.__wrapped__=ea:eo=ea;var ed=ea;ei=ei.__wrapped__}return ed.__wrapped__=et,eo}function wrapperReverse(){var et=this.__wrapped__;if(et instanceof LazyWrapper){var eo=et;return this.__actions__.length&&(eo=new LazyWrapper(this)),(eo=eo.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:eu}),new LodashWrapper(eo,this.__chain__)}return this.thru(reverse)}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}var n6=createAggregator(function(et,eo,ei){rl.call(et,ei)?++et[ei]:baseAssignValue(et,ei,1)});function every(et,eo,ei){var ea=ob(et)?arrayEvery:baseEvery;return ei&&isIterateeCall(et,eo,ei)&&(eo=eu),ea(et,getIteratee(eo,3))}function filter(et,eo){return(ob(et)?arrayFilter:baseFilter)(et,getIteratee(eo,3))}var n5=createFind(findIndex),n8=createFind(findLastIndex);function flatMap(et,eo){return baseFlatten(map(et,eo),1)}function flatMapDeep(et,eo){return baseFlatten(map(et,eo),ez)}function flatMapDepth(et,eo,ei){return ei=eu===ei?1:toInteger(ei),baseFlatten(map(et,eo),ei)}function forEach(et,eo){return(ob(et)?arrayEach:nw)(et,getIteratee(eo,3))}function forEachRight(et,eo){return(ob(et)?arrayEachRight:nA)(et,getIteratee(eo,3))}var n7=createAggregator(function(et,eo,ei){rl.call(et,ei)?et[ei].push(eo):baseAssignValue(et,ei,[eo])});function includes(et,eo,ei,ea){et=isArrayLike(et)?et:values(et),ei=ei&&!ea?toInteger(ei):0;var eu=et.length;return ei<0&&(ei=rz(eu+ei,0)),isString(et)?ei<=eu&&et.indexOf(eo,ei)>-1:!!eu&&baseIndexOf(et,eo,ei)>-1}var n9=baseRest(function(et,ei,ea){var eu=-1,ed="function"==typeof ei,eh=isArrayLike(et)?eo(et.length):[];return nw(et,function(et){eh[++eu]=ed?apply(ei,et,ea):baseInvoke(et,ei,ea)}),eh}),ot=createAggregator(function(et,eo,ei){baseAssignValue(et,ei,eo)});function map(et,eo){return(ob(et)?arrayMap:baseMap)(et,getIteratee(eo,3))}function orderBy(et,eo,ei,ea){return null==et?[]:(ob(eo)||(eo=null==eo?[]:[eo]),ob(ei=ea?eu:ei)||(ei=null==ei?[]:[ei]),baseOrderBy(et,eo,ei))}var or=createAggregator(function(et,eo,ei){et[ei?0:1].push(eo)},function(){return[[],[]]});function reduce(et,eo,ei){var ea=ob(et)?arrayReduce:baseReduce,eu=arguments.length<3;return ea(et,getIteratee(eo,4),ei,eu,nw)}function reduceRight(et,eo,ei){var ea=ob(et)?arrayReduceRight:baseReduce,eu=arguments.length<3;return ea(et,getIteratee(eo,4),ei,eu,nA)}function reject(et,eo){return(ob(et)?arrayFilter:baseFilter)(et,negate(getIteratee(eo,3)))}function sample(et){return(ob(et)?arraySample:baseSample)(et)}function sampleSize(et,eo,ei){return eo=(ei?isIterateeCall(et,eo,ei):eu===eo)?1:toInteger(eo),(ob(et)?arraySampleSize:baseSampleSize)(et,eo)}function shuffle(et){return(ob(et)?arrayShuffle:baseShuffle)(et)}function size(et){if(null==et)return 0;if(isArrayLike(et))return isString(et)?stringSize(et):et.length;var eo=nU(et);return eo==tn||eo==tp?et.size:baseKeys(et).length}function some(et,eo,ei){var ea=ob(et)?arraySome:baseSome;return ei&&isIterateeCall(et,eo,ei)&&(eo=eu),ea(et,getIteratee(eo,3))}var oo=baseRest(function(et,eo){if(null==et)return[];var ei=eo.length;return ei>1&&isIterateeCall(et,eo[0],eo[1])?eo=[]:ei>2&&isIterateeCall(eo[0],eo[1],eo[2])&&(eo=[eo[0]]),baseOrderBy(et,baseFlatten(eo,1),[])}),oi=rk||function(){return rQ.Date.now()};function after(et,eo){if("function"!=typeof eo)throw new ro(ef);return et=toInteger(et),function(){if(--et<1)return eo.apply(this,arguments)}}function ary(et,eo,ei){return eo=ei?eu:eo,eo=et&&null==eo?et.length:eo,createWrap(et,eD,eu,eu,eu,eu,eo)}function before(et,eo){var ei;if("function"!=typeof eo)throw new ro(ef);return et=toInteger(et),function(){return--et>0&&(ei=eo.apply(this,arguments)),et<=1&&(eo=eu),ei}}var oa=baseRest(function(et,eo,ei){var ea=eR;if(ei.length){var eu=replaceHolders(ei,getHolder(oa));ea|=eO}return createWrap(et,ea,eo,ei,eu)}),oc=baseRest(function(et,eo,ei){var ea=eR|eT;if(ei.length){var eu=replaceHolders(ei,getHolder(oc));ea|=eO}return createWrap(eo,ea,et,ei,eu)});function curry(et,eo,ei){eo=ei?eu:eo;var ea=createWrap(et,eP,eu,eu,eu,eu,eu,eo);return ea.placeholder=curry.placeholder,ea}function curryRight(et,eo,ei){eo=ei?eu:eo;var ea=createWrap(et,ek,eu,eu,eu,eu,eu,eo);return ea.placeholder=curryRight.placeholder,ea}function debounce(et,eo,ei){var ea,ed,eh,ep,em,eg,ey=0,eC=!1,eS=!1,e_=!0;if("function"!=typeof et)throw new ro(ef);function invokeFunc(eo){var ei=ea,eh=ed;return ea=ed=eu,ey=eo,ep=et.apply(eh,ei)}function leadingEdge(et){return ey=et,em=nq(timerExpired,eo),eC?invokeFunc(et):ep}function remainingWait(et){var ei=et-eg,ea=et-ey,eu=eo-ei;return eS?rW(eu,eh-ea):eu}function shouldInvoke(et){var ei=et-eg,ea=et-ey;return eu===eg||ei>=eo||ei<0||eS&&ea>=eh}function timerExpired(){var et=oi();if(shouldInvoke(et))return trailingEdge(et);em=nq(timerExpired,remainingWait(et))}function trailingEdge(et){return(em=eu,e_&&ea)?invokeFunc(et):(ea=ed=eu,ep)}function cancel(){eu!==em&&nk(em),ey=0,ea=eg=ed=em=eu}function flush(){return eu===em?ep:trailingEdge(oi())}function debounced(){var et=oi(),ei=shouldInvoke(et);if(ea=arguments,ed=this,eg=et,ei){if(eu===em)return leadingEdge(eg);if(eS)return nk(em),em=nq(timerExpired,eo),invokeFunc(eg)}return eu===em&&(em=nq(timerExpired,eo)),ep}return eo=toNumber(eo)||0,isObject(ei)&&(eC=!!ei.leading,eh=(eS="maxWait"in ei)?rz(toNumber(ei.maxWait)||0,eo):eh,e_="trailing"in ei?!!ei.trailing:e_),debounced.cancel=cancel,debounced.flush=flush,debounced}var ou=baseRest(function(et,eo){return baseDelay(et,1,eo)}),ol=baseRest(function(et,eo,ei){return baseDelay(et,toNumber(eo)||0,ei)});function flip(et){return createWrap(et,eL)}function memoize(et,eo){if("function"!=typeof et||null!=eo&&"function"!=typeof eo)throw new ro(ef);var memoized=function(){var ei=arguments,ea=eo?eo.apply(this,ei):ei[0],eu=memoized.cache;if(eu.has(ea))return eu.get(ea);var ed=et.apply(this,ei);return memoized.cache=eu.set(ea,ed)||eu,ed};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(et){if("function"!=typeof et)throw new ro(ef);return function(){var eo=arguments;switch(eo.length){case 0:return!et.call(this);case 1:return!et.call(this,eo[0]);case 2:return!et.call(this,eo[0],eo[1]);case 3:return!et.call(this,eo[0],eo[1],eo[2])}return!et.apply(this,eo)}}function once(et){return before(2,et)}memoize.Cache=MapCache;var od=nP(function(et,eo){var ei=(eo=1==eo.length&&ob(eo[0])?arrayMap(eo[0],baseUnary(getIteratee())):arrayMap(baseFlatten(eo,1),baseUnary(getIteratee()))).length;return baseRest(function(ea){for(var eu=-1,ed=rW(ea.length,ei);++eu<ed;)ea[eu]=eo[eu].call(this,ea[eu]);return apply(et,this,ea)})}),oh=baseRest(function(et,eo){var ei=replaceHolders(eo,getHolder(oh));return createWrap(et,eO,eu,eo,ei)}),of=baseRest(function(et,eo){var ei=replaceHolders(eo,getHolder(of));return createWrap(et,eM,eu,eo,ei)}),om=flatRest(function(et,eo){return createWrap(et,eU,eu,eu,eu,eo)});function rest(et,eo){if("function"!=typeof et)throw new ro(ef);return baseRest(et,eo=eu===eo?eo:toInteger(eo))}function spread(et,eo){if("function"!=typeof et)throw new ro(ef);return eo=null==eo?0:rz(toInteger(eo),0),baseRest(function(ei){var ea=ei[eo],eu=castSlice(ei,0,eo);return ea&&arrayPush(eu,ea),apply(et,this,eu)})}function throttle(et,eo,ei){var ea=!0,eu=!0;if("function"!=typeof et)throw new ro(ef);return isObject(ei)&&(ea="leading"in ei?!!ei.leading:ea,eu="trailing"in ei?!!ei.trailing:eu),debounce(et,eo,{leading:ea,maxWait:eo,trailing:eu})}function unary(et){return ary(et,1)}function wrap(et,eo){return oh(castFunction(eo),et)}function castArray(){if(!arguments.length)return[];var et=arguments[0];return ob(et)?et:[et]}function clone(et){return baseClone(et,ew)}function cloneWith(et,eo){return baseClone(et,ew,eo="function"==typeof eo?eo:eu)}function cloneDeep(et){return baseClone(et,eS|ew)}function cloneDeepWith(et,eo){return baseClone(et,eS|ew,eo="function"==typeof eo?eo:eu)}function conformsTo(et,eo){return null==eo||baseConformsTo(et,eo,keys(eo))}function eq(et,eo){return et===eo||et!=et&&eo!=eo}var og=createRelationalOperation(baseGt),oy=createRelationalOperation(function(et,eo){return et>=eo}),ov=baseIsArguments(function(){return arguments}())?baseIsArguments:function(et){return isObjectLike(et)&&rl.call(et,"callee")&&!rw.call(et,"callee")},ob=eo.isArray,oC=r3?baseUnary(r3):baseIsArrayBuffer;function isArrayLike(et){return null!=et&&isLength(et.length)&&!isFunction(et)}function isArrayLikeObject(et){return isObjectLike(et)&&isArrayLike(et)}function isBoolean(et){return!0===et||!1===et||isObjectLike(et)&&baseGetTag(et)==e6}var oS=rN||stubFalse,o_=r6?baseUnary(r6):baseIsDate;function isElement(et){return isObjectLike(et)&&1===et.nodeType&&!isPlainObject(et)}function isEmpty(et){if(null==et)return!0;if(isArrayLike(et)&&(ob(et)||"string"==typeof et||"function"==typeof et.splice||oS(et)||oR(et)||ov(et)))return!et.length;var eo=nU(et);if(eo==tn||eo==tp)return!et.size;if(isPrototype(et))return!baseKeys(et).length;for(var ei in et)if(rl.call(et,ei))return!1;return!0}function isEqual(et,eo){return baseIsEqual(et,eo)}function isEqualWith(et,eo,ei){var ea=(ei="function"==typeof ei?ei:eu)?ei(et,eo):eu;return eu===ea?baseIsEqual(et,eo,eu,ei):!!ea}function isError(et){if(!isObjectLike(et))return!1;var eo=baseGetTag(et);return eo==e7||eo==e8||"string"==typeof et.message&&"string"==typeof et.name&&!isPlainObject(et)}function isFinite(et){return"number"==typeof et&&rq(et)}function isFunction(et){if(!isObject(et))return!1;var eo=baseGetTag(et);return eo==e9||eo==tr||eo==e4||eo==tu}function isInteger(et){return"number"==typeof et&&et==toInteger(et)}function isLength(et){return"number"==typeof et&&et>-1&&et%1==0&&et<=eW}function isObject(et){var eo=typeof et;return null!=et&&("object"==eo||"function"==eo)}function isObjectLike(et){return null!=et&&"object"==typeof et}var ow=r5?baseUnary(r5):baseIsMap;function isMatch(et,eo){return et===eo||baseIsMatch(et,eo,getMatchData(eo))}function isMatchWith(et,eo,ei){return ei="function"==typeof ei?ei:eu,baseIsMatch(et,eo,getMatchData(eo),ei)}function isNaN(et){return isNumber(et)&&et!=+et}function isNative(et){if(nL(et))throw new ea(ep);return baseIsNative(et)}function isNull(et){return null===et}function isNil(et){return null==et}function isNumber(et){return"number"==typeof et||isObjectLike(et)&&baseGetTag(et)==ti}function isPlainObject(et){if(!isObjectLike(et)||baseGetTag(et)!=ts)return!1;var eo=rS(et);if(null===eo)return!0;var ei=rl.call(eo,"constructor")&&eo.constructor;return"function"==typeof ei&&ei instanceof ei&&ru.call(ei)==rf}var oA=r8?baseUnary(r8):baseIsRegExp;function isSafeInteger(et){return isInteger(et)&&et>=-eW&&et<=eW}var oI=r7?baseUnary(r7):baseIsSet;function isString(et){return"string"==typeof et||!ob(et)&&isObjectLike(et)&&baseGetTag(et)==tf}function isSymbol(et){return"symbol"==typeof et||isObjectLike(et)&&baseGetTag(et)==tm}var oR=r9?baseUnary(r9):baseIsTypedArray;function isUndefined(et){return eu===et}function isWeakMap(et){return isObjectLike(et)&&nU(et)==ty}function isWeakSet(et){return isObjectLike(et)&&baseGetTag(et)==tv}var oT=createRelationalOperation(baseLt),oE=createRelationalOperation(function(et,eo){return et<=eo});function toArray(et){if(!et)return[];if(isArrayLike(et))return isString(et)?stringToArray(et):copyArray(et);if(rR&&et[rR])return iteratorToArray(et[rR]());var eo=nU(et);return(eo==tn?mapToArray:eo==tp?setToArray:values)(et)}function toFinite(et){return et?(et=toNumber(et))===ez||et===-ez?(et<0?-1:1)*eV:et==et?et:0:0===et?et:0}function toInteger(et){var eo=toFinite(et),ei=eo%1;return eo==eo?ei?eo-ei:eo:0}function toLength(et){return et?baseClamp(toInteger(et),0,eY):0}function toNumber(et){if("number"==typeof et)return et;if(isSymbol(et))return eJ;if(isObject(et)){var eo="function"==typeof et.valueOf?et.valueOf():et;et=isObject(eo)?eo+"":eo}if("string"!=typeof et)return 0===et?et:+et;et=baseTrim(et);var ei=t2.test(et);return ei||t3.test(et)?rY(et.slice(2),ei?2:8):t1.test(et)?eJ:+et}function toPlainObject(et){return copyObject(et,keysIn(et))}function toSafeInteger(et){return et?baseClamp(toInteger(et),-eW,eW):0===et?et:0}function toString(et){return null==et?"":baseToString(et)}var oP=createAssigner(function(et,eo){if(isPrototype(eo)||isArrayLike(eo)){copyObject(eo,keys(eo),et);return}for(var ei in eo)rl.call(eo,ei)&&assignValue(et,ei,eo[ei])}),ok=createAssigner(function(et,eo){copyObject(eo,keysIn(eo),et)}),ox=createAssigner(function(et,eo,ei,ea){copyObject(eo,keysIn(eo),et,ea)}),oM=createAssigner(function(et,eo,ei,ea){copyObject(eo,keys(eo),et,ea)}),oD=flatRest(baseAt);function create(et,eo){var ei=n_(et);return null==eo?ei:baseAssign(ei,eo)}var oU=baseRest(function(et,eo){et=t9(et);var ei=-1,ea=eo.length,ed=ea>2?eo[2]:eu;for(ed&&isIterateeCall(eo[0],eo[1],ed)&&(ea=1);++ei<ea;)for(var eh=eo[ei],ep=keysIn(eh),ef=-1,em=ep.length;++ef<em;){var eg=ep[ef],ey=et[eg];(eu===ey||eq(ey,rs[eg])&&!rl.call(et,eg))&&(et[eg]=eh[eg])}return et}),oL=baseRest(function(et){return et.push(eu,customDefaultsMerge),apply(oj,eu,et)});function findKey(et,eo){return baseFindKey(et,getIteratee(eo,3),baseForOwn)}function findLastKey(et,eo){return baseFindKey(et,getIteratee(eo,3),baseForOwnRight)}function forIn(et,eo){return null==et?et:nI(et,getIteratee(eo,3),keysIn)}function forInRight(et,eo){return null==et?et:nR(et,getIteratee(eo,3),keysIn)}function forOwn(et,eo){return et&&baseForOwn(et,getIteratee(eo,3))}function forOwnRight(et,eo){return et&&baseForOwnRight(et,getIteratee(eo,3))}function functions(et){return null==et?[]:baseFunctions(et,keys(et))}function functionsIn(et){return null==et?[]:baseFunctions(et,keysIn(et))}function get(et,eo,ei){var ea=null==et?eu:baseGet(et,eo);return eu===ea?ei:ea}function has(et,eo){return null!=et&&hasPath(et,eo,baseHas)}function hasIn(et,eo){return null!=et&&hasPath(et,eo,baseHasIn)}var oN=createInverter(function(et,eo,ei){null!=eo&&"function"!=typeof eo.toString&&(eo=rp.call(eo)),et[eo]=ei},constant(identity)),oq=createInverter(function(et,eo,ei){null!=eo&&"function"!=typeof eo.toString&&(eo=rp.call(eo)),rl.call(et,eo)?et[eo].push(ei):et[eo]=[ei]},getIteratee),oB=baseRest(baseInvoke);function keys(et){return isArrayLike(et)?arrayLikeKeys(et):baseKeys(et)}function keysIn(et){return isArrayLike(et)?arrayLikeKeys(et,!0):baseKeysIn(et)}function mapKeys(et,eo){var ei={};return eo=getIteratee(eo,3),baseForOwn(et,function(et,ea,eu){baseAssignValue(ei,eo(et,ea,eu),et)}),ei}function mapValues(et,eo){var ei={};return eo=getIteratee(eo,3),baseForOwn(et,function(et,ea,eu){baseAssignValue(ei,ea,eo(et,ea,eu))}),ei}var oF=createAssigner(function(et,eo,ei){baseMerge(et,eo,ei)}),oj=createAssigner(function(et,eo,ei,ea){baseMerge(et,eo,ei,ea)}),oG=flatRest(function(et,eo){var ei={};if(null==et)return ei;var ea=!1;eo=arrayMap(eo,function(eo){return eo=castPath(eo,et),ea||(ea=eo.length>1),eo}),copyObject(et,getAllKeysIn(et),ei),ea&&(ei=baseClone(ei,eS|e_|ew,customOmitClone));for(var eu=eo.length;eu--;)baseUnset(ei,eo[eu]);return ei});function omitBy(et,eo){return pickBy(et,negate(getIteratee(eo)))}var oH=flatRest(function(et,eo){return null==et?{}:basePick(et,eo)});function pickBy(et,eo){if(null==et)return{};var ei=arrayMap(getAllKeysIn(et),function(et){return[et]});return eo=getIteratee(eo),basePickBy(et,ei,function(et,ei){return eo(et,ei[0])})}function result(et,eo,ei){eo=castPath(eo,et);var ea=-1,ed=eo.length;for(ed||(ed=1,et=eu);++ea<ed;){var eh=null==et?eu:et[toKey(eo[ea])];eu===eh&&(ea=ed,eh=ei),et=isFunction(eh)?eh.call(et):eh}return et}function set(et,eo,ei){return null==et?et:baseSet(et,eo,ei)}function setWith(et,eo,ei,ea){return ea="function"==typeof ea?ea:eu,null==et?et:baseSet(et,eo,ei,ea)}var oK=createToPairs(keys),oz=createToPairs(keysIn);function transform(et,eo,ei){var ea=ob(et),eu=ea||oS(et)||oR(et);if(eo=getIteratee(eo,4),null==ei){var ed=et&&et.constructor;ei=eu?ea?new ed:[]:isObject(et)&&isFunction(ed)?n_(rS(et)):{}}return(eu?arrayEach:baseForOwn)(et,function(et,ea,eu){return eo(ei,et,ea,eu)}),ei}function unset(et,eo){return null==et||baseUnset(et,eo)}function update(et,eo,ei){return null==et?et:baseUpdate(et,eo,castFunction(ei))}function updateWith(et,eo,ei,ea){return ea="function"==typeof ea?ea:eu,null==et?et:baseUpdate(et,eo,castFunction(ei),ea)}function values(et){return null==et?[]:baseValues(et,keys(et))}function valuesIn(et){return null==et?[]:baseValues(et,keysIn(et))}function clamp(et,eo,ei){return eu===ei&&(ei=eo,eo=eu),eu!==ei&&(ei=(ei=toNumber(ei))==ei?ei:0),eu!==eo&&(eo=(eo=toNumber(eo))==eo?eo:0),baseClamp(toNumber(et),eo,ei)}function inRange(et,eo,ei){return eo=toFinite(eo),eu===ei?(ei=eo,eo=0):ei=toFinite(ei),baseInRange(et=toNumber(et),eo,ei)}function random(et,eo,ei){if(ei&&"boolean"!=typeof ei&&isIterateeCall(et,eo,ei)&&(eo=ei=eu),eu===ei&&("boolean"==typeof eo?(ei=eo,eo=eu):"boolean"==typeof et&&(ei=et,et=eu)),eu===et&&eu===eo?(et=0,eo=1):(et=toFinite(et),eu===eo?(eo=et,et=0):eo=toFinite(eo)),et>eo){var ea=et;et=eo,eo=ea}if(ei||et%1||eo%1){var ed=rZ();return rW(et+ed*(eo-et+rJ("1e-"+((ed+"").length-1))),eo)}return baseRandom(et,eo)}var oW=createCompounder(function(et,eo,ei){return eo=eo.toLowerCase(),et+(ei?capitalize(eo):eo)});function capitalize(et){return oX(toString(et).toLowerCase())}function deburr(et){return(et=toString(et))&&et.replace(t5,nn).replace(rU,"")}function endsWith(et,eo,ei){et=toString(et),eo=baseToString(eo);var ea=et.length,ed=ei=eu===ei?ea:baseClamp(toInteger(ei),0,ea);return(ei-=eo.length)>=0&&et.slice(ei,ed)==eo}function escape(et){return(et=toString(et))&&tL.test(et)?et.replace(tD,no):et}function escapeRegExp(et){return(et=toString(et))&&tK.test(et)?et.replace(tH,"\\$&"):et}var oV=createCompounder(function(et,eo,ei){return et+(ei?"-":"")+eo.toLowerCase()}),oJ=createCompounder(function(et,eo,ei){return et+(ei?" ":"")+eo.toLowerCase()}),oY=createCaseFirst("toLowerCase");function pad(et,eo,ei){et=toString(et);var ea=(eo=toInteger(eo))?stringSize(et):0;if(!eo||ea>=eo)return et;var eu=(eo-ea)/2;return createPadding(rM(eu),ei)+et+createPadding(rx(eu),ei)}function padEnd(et,eo,ei){et=toString(et);var ea=(eo=toInteger(eo))?stringSize(et):0;return eo&&ea<eo?et+createPadding(eo-ea,ei):et}function padStart(et,eo,ei){et=toString(et);var ea=(eo=toInteger(eo))?stringSize(et):0;return eo&&ea<eo?createPadding(eo-ea,ei)+et:et}function parseInt(et,eo,ei){return ei||null==eo?eo=0:eo&&(eo=+eo),r$(toString(et).replace(tz,""),eo||0)}function repeat(et,eo,ei){return eo=(ei?isIterateeCall(et,eo,ei):eu===eo)?1:toInteger(eo),baseRepeat(toString(et),eo)}function replace(){var et=arguments,eo=toString(et[0]);return et.length<3?eo:eo.replace(et[1],et[2])}var o$=createCompounder(function(et,eo,ei){return et+(ei?"_":"")+eo.toLowerCase()});function split(et,eo,ei){return(ei&&"number"!=typeof ei&&isIterateeCall(et,eo,ei)&&(eo=ei=eu),ei=eu===ei?eY:ei>>>0)?(et=toString(et))&&("string"==typeof eo||null!=eo&&!oA(eo))&&!(eo=baseToString(eo))&&hasUnicode(et)?castSlice(stringToArray(et),0,ei):et.split(eo,ei):[]}var oZ=createCompounder(function(et,eo,ei){return et+(ei?" ":"")+oX(eo)});function startsWith(et,eo,ei){return et=toString(et),ei=null==ei?0:baseClamp(toInteger(ei),0,et.length),eo=baseToString(eo),et.slice(ei,ei+eo.length)==eo}function template(et,eo,ei){var ed=lodash.templateSettings;ei&&isIterateeCall(et,eo,ei)&&(eo=eu),et=toString(et),eo=ox({},eo,ed,customDefaultsAssignIn);var eh,ep,ef=ox({},eo.imports,ed.imports,customDefaultsAssignIn),eg=keys(ef),ey=baseValues(ef,eg),eC=0,eS=eo.interpolate||t8,e_="__p += '",ew=rr((eo.escape||t8).source+"|"+eS.source+"|"+(eS===tB?tX:t8).source+"|"+(eo.evaluate||t8).source+"|$","g"),eA="//# sourceURL="+(rl.call(eo,"sourceURL")?(eo.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rj+"]")+"\n";et.replace(ew,function(eo,ei,ea,eu,ed,ef){return ea||(ea=eu),e_+=et.slice(eC,ef).replace(t7,escapeStringChar),ei&&(eh=!0,e_+="' +\n__e("+ei+") +\n'"),ed&&(ep=!0,e_+="';\n"+ed+";\n__p += '"),ea&&(e_+="' +\n((__t = ("+ea+")) == null ? '' : __t) +\n'"),eC=ef+eo.length,eo}),e_+="';\n";var eI=rl.call(eo,"variable")&&eo.variable;if(eI){if(tZ.test(eI))throw new ea(em)}else e_="with (obj) {\n"+e_+"\n}\n";e_=(ep?e_.replace(tk,""):e_).replace(tO,"$1").replace(tx,"$1;"),e_="function("+(eI||"obj")+") {\n"+(eI?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(eh?", __e = _.escape":"")+(ep?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+e_+"return __p\n}";var eR=o0(function(){return tW(eg,eA+"return "+e_).apply(eu,ey)});if(eR.source=e_,isError(eR))throw eR;return eR}function toLower(et){return toString(et).toLowerCase()}function toUpper(et){return toString(et).toUpperCase()}function trim(et,eo,ei){if((et=toString(et))&&(ei||eu===eo))return baseTrim(et);if(!et||!(eo=baseToString(eo)))return et;var ea=stringToArray(et),ed=stringToArray(eo),eh=charsStartIndex(ea,ed),ep=charsEndIndex(ea,ed)+1;return castSlice(ea,eh,ep).join("")}function trimEnd(et,eo,ei){if((et=toString(et))&&(ei||eu===eo))return et.slice(0,trimmedEndIndex(et)+1);if(!et||!(eo=baseToString(eo)))return et;var ea=stringToArray(et),ed=charsEndIndex(ea,stringToArray(eo))+1;return castSlice(ea,0,ed).join("")}function trimStart(et,eo,ei){if((et=toString(et))&&(ei||eu===eo))return et.replace(tz,"");if(!et||!(eo=baseToString(eo)))return et;var ea=stringToArray(et),ed=charsStartIndex(ea,stringToArray(eo));return castSlice(ea,ed).join("")}function truncate(et,eo){var ei=eN,ea=eB;if(isObject(eo)){var ed="separator"in eo?eo.separator:ed;ei="length"in eo?toInteger(eo.length):ei,ea="omission"in eo?baseToString(eo.omission):ea}var eh=(et=toString(et)).length;if(hasUnicode(et)){var ep=stringToArray(et);eh=ep.length}if(ei>=eh)return et;var ef=ei-stringSize(ea);if(ef<1)return ea;var em=ep?castSlice(ep,0,ef).join(""):et.slice(0,ef);if(eu===ed)return em+ea;if(ep&&(ef+=em.length-ef),oA(ed)){if(et.slice(ef).search(ed)){var eg,ey=em;for(ed.global||(ed=rr(ed.source,toString(t0.exec(ed))+"g")),ed.lastIndex=0;eg=ed.exec(ey);)var eC=eg.index;em=em.slice(0,eu===eC?ef:eC)}}else if(et.indexOf(baseToString(ed),ef)!=ef){var eS=em.lastIndexOf(ed);eS>-1&&(em=em.slice(0,eS))}return em+ea}function unescape(et){return(et=toString(et))&&tU.test(et)?et.replace(tM,ni):et}var oQ=createCompounder(function(et,eo,ei){return et+(ei?" ":"")+eo.toUpperCase()}),oX=createCaseFirst("toUpperCase");function words(et,eo,ei){return(et=toString(et),eo=ei?eu:eo,eu===eo)?hasUnicodeWord(et)?unicodeWords(et):asciiWords(et):et.match(eo)||[]}var o0=baseRest(function(et,eo){try{return apply(et,eu,eo)}catch(et){return isError(et)?et:new ea(et)}}),o2=flatRest(function(et,eo){return arrayEach(eo,function(eo){baseAssignValue(et,eo=toKey(eo),oa(et[eo],et))}),et});function cond(et){var eo=null==et?0:et.length,ei=getIteratee();return et=eo?arrayMap(et,function(et){if("function"!=typeof et[1])throw new ro(ef);return[ei(et[0]),et[1]]}):[],baseRest(function(ei){for(var ea=-1;++ea<eo;){var eu=et[ea];if(apply(eu[0],this,ei))return apply(eu[1],this,ei)}})}function conforms(et){return baseConforms(baseClone(et,eS))}function constant(et){return function(){return et}}function defaultTo(et,eo){return null==et||et!=et?eo:et}var o4=createFlow(),o3=createFlow(!0);function identity(et){return et}function iteratee(et){return baseIteratee("function"==typeof et?et:baseClone(et,eS))}function matches(et){return baseMatches(baseClone(et,eS))}function matchesProperty(et,eo){return baseMatchesProperty(et,baseClone(eo,eS))}var o6=baseRest(function(et,eo){return function(ei){return baseInvoke(ei,et,eo)}}),o5=baseRest(function(et,eo){return function(ei){return baseInvoke(et,ei,eo)}});function mixin(et,eo,ei){var ea=keys(eo),eu=baseFunctions(eo,ea);null!=ei||isObject(eo)&&(eu.length||!ea.length)||(ei=eo,eo=et,et=this,eu=baseFunctions(eo,keys(eo)));var ed=!(isObject(ei)&&"chain"in ei)||!!ei.chain,eh=isFunction(et);return arrayEach(eu,function(ei){var ea=eo[ei];et[ei]=ea,eh&&(et.prototype[ei]=function(){var eo=this.__chain__;if(ed||eo){var ei=et(this.__wrapped__);return(ei.__actions__=copyArray(this.__actions__)).push({func:ea,args:arguments,thisArg:et}),ei.__chain__=eo,ei}return ea.apply(et,arrayPush([this.value()],arguments))})}),et}function noConflict(){return rQ._===this&&(rQ._=rm),this}function noop(){}function nthArg(et){return et=toInteger(et),baseRest(function(eo){return baseNth(eo,et)})}var o8=createOver(arrayMap),o7=createOver(arrayEvery),o9=createOver(arraySome);function property(et){return isKey(et)?baseProperty(toKey(et)):basePropertyDeep(et)}function propertyOf(et){return function(eo){return null==et?eu:baseGet(et,eo)}}var ir=createRange(),io=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}function times(et,eo){if((et=toInteger(et))<1||et>eW)return[];var ei=eY,ea=rW(et,eY);eo=getIteratee(eo),et-=eY;for(var eu=baseTimes(ea,eo);++ei<et;)eo(ei);return eu}function toPath(et){return ob(et)?arrayMap(et,toKey):isSymbol(et)?[et]:copyArray(nF(toString(et)))}function uniqueId(et){var eo=++rd;return toString(et)+eo}var ia=createMathOperation(function(et,eo){return et+eo},0),ic=createRound("ceil"),iu=createMathOperation(function(et,eo){return et/eo},1),ih=createRound("floor");function max(et){return et&&et.length?baseExtremum(et,identity,baseGt):eu}function maxBy(et,eo){return et&&et.length?baseExtremum(et,getIteratee(eo,2),baseGt):eu}function mean(et){return baseMean(et,identity)}function meanBy(et,eo){return baseMean(et,getIteratee(eo,2))}function min(et){return et&&et.length?baseExtremum(et,identity,baseLt):eu}function minBy(et,eo){return et&&et.length?baseExtremum(et,getIteratee(eo,2),baseLt):eu}var im=createMathOperation(function(et,eo){return et*eo},1),ig=createRound("round"),iy=createMathOperation(function(et,eo){return et-eo},0);function sum(et){return et&&et.length?baseSum(et,identity):0}function sumBy(et,eo){return et&&et.length?baseSum(et,getIteratee(eo,2)):0}return lodash.after=after,lodash.ary=ary,lodash.assign=oP,lodash.assignIn=ok,lodash.assignInWith=ox,lodash.assignWith=oM,lodash.at=oD,lodash.before=before,lodash.bind=oa,lodash.bindAll=o2,lodash.bindKey=oc,lodash.castArray=castArray,lodash.chain=chain,lodash.chunk=chunk,lodash.compact=compact,lodash.concat=concat,lodash.cond=cond,lodash.conforms=conforms,lodash.constant=constant,lodash.countBy=n6,lodash.create=create,lodash.curry=curry,lodash.curryRight=curryRight,lodash.debounce=debounce,lodash.defaults=oU,lodash.defaultsDeep=oL,lodash.defer=ou,lodash.delay=ol,lodash.difference=nj,lodash.differenceBy=nG,lodash.differenceWith=nH,lodash.drop=drop,lodash.dropRight=dropRight,lodash.dropRightWhile=dropRightWhile,lodash.dropWhile=dropWhile,lodash.fill=fill,lodash.filter=filter,lodash.flatMap=flatMap,lodash.flatMapDeep=flatMapDeep,lodash.flatMapDepth=flatMapDepth,lodash.flatten=flatten,lodash.flattenDeep=flattenDeep,lodash.flattenDepth=flattenDepth,lodash.flip=flip,lodash.flow=o4,lodash.flowRight=o3,lodash.fromPairs=fromPairs,lodash.functions=functions,lodash.functionsIn=functionsIn,lodash.groupBy=n7,lodash.initial=initial,lodash.intersection=nK,lodash.intersectionBy=nz,lodash.intersectionWith=nW,lodash.invert=oN,lodash.invertBy=oq,lodash.invokeMap=n9,lodash.iteratee=iteratee,lodash.keyBy=ot,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=mapKeys,lodash.mapValues=mapValues,lodash.matches=matches,lodash.matchesProperty=matchesProperty,lodash.memoize=memoize,lodash.merge=oF,lodash.mergeWith=oj,lodash.method=o6,lodash.methodOf=o5,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=nthArg,lodash.omit=oG,lodash.omitBy=omitBy,lodash.once=once,lodash.orderBy=orderBy,lodash.over=o8,lodash.overArgs=od,lodash.overEvery=o7,lodash.overSome=o9,lodash.partial=oh,lodash.partialRight=of,lodash.partition=or,lodash.pick=oH,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=propertyOf,lodash.pull=nV,lodash.pullAll=pullAll,lodash.pullAllBy=pullAllBy,lodash.pullAllWith=pullAllWith,lodash.pullAt=nJ,lodash.range=ir,lodash.rangeRight=io,lodash.rearg=om,lodash.reject=reject,lodash.remove=remove,lodash.rest=rest,lodash.reverse=reverse,lodash.sampleSize=sampleSize,lodash.set=set,lodash.setWith=setWith,lodash.shuffle=shuffle,lodash.slice=slice,lodash.sortBy=oo,lodash.sortedUniq=sortedUniq,lodash.sortedUniqBy=sortedUniqBy,lodash.split=split,lodash.spread=spread,lodash.tail=tail,lodash.take=take,lodash.takeRight=takeRight,lodash.takeRightWhile=takeRightWhile,lodash.takeWhile=takeWhile,lodash.tap=tap,lodash.throttle=throttle,lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=oK,lodash.toPairsIn=oz,lodash.toPath=toPath,lodash.toPlainObject=toPlainObject,lodash.transform=transform,lodash.unary=unary,lodash.union=nY,lodash.unionBy=n$,lodash.unionWith=nZ,lodash.uniq=uniq,lodash.uniqBy=uniqBy,lodash.uniqWith=uniqWith,lodash.unset=unset,lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=update,lodash.updateWith=updateWith,lodash.values=values,lodash.valuesIn=valuesIn,lodash.without=nQ,lodash.words=words,lodash.wrap=wrap,lodash.xor=nX,lodash.xorBy=n0,lodash.xorWith=n1,lodash.zip=n2,lodash.zipObject=zipObject,lodash.zipObjectDeep=zipObjectDeep,lodash.zipWith=n4,lodash.entries=oK,lodash.entriesIn=oz,lodash.extend=ok,lodash.extendWith=ox,mixin(lodash,lodash),lodash.add=ia,lodash.attempt=o0,lodash.camelCase=oW,lodash.capitalize=capitalize,lodash.ceil=ic,lodash.clamp=clamp,lodash.clone=clone,lodash.cloneDeep=cloneDeep,lodash.cloneDeepWith=cloneDeepWith,lodash.cloneWith=cloneWith,lodash.conformsTo=conformsTo,lodash.deburr=deburr,lodash.defaultTo=defaultTo,lodash.divide=iu,lodash.endsWith=endsWith,lodash.eq=eq,lodash.escape=escape,lodash.escapeRegExp=escapeRegExp,lodash.every=every,lodash.find=n5,lodash.findIndex=findIndex,lodash.findKey=findKey,lodash.findLast=n8,lodash.findLastIndex=findLastIndex,lodash.findLastKey=findLastKey,lodash.floor=ih,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=forInRight,lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.get=get,lodash.gt=og,lodash.gte=oy,lodash.has=has,lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.inRange=inRange,lodash.invoke=oB,lodash.isArguments=ov,lodash.isArray=ob,lodash.isArrayBuffer=oC,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=isBoolean,lodash.isBuffer=oS,lodash.isDate=o_,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isEqual=isEqual,lodash.isEqualWith=isEqualWith,lodash.isError=isError,lodash.isFinite=isFinite,lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=ow,lodash.isMatch=isMatch,lodash.isMatchWith=isMatchWith,lodash.isNaN=isNaN,lodash.isNative=isNative,lodash.isNil=isNil,lodash.isNull=isNull,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=oA,lodash.isSafeInteger=isSafeInteger,lodash.isSet=oI,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=oR,lodash.isUndefined=isUndefined,lodash.isWeakMap=isWeakMap,lodash.isWeakSet=isWeakSet,lodash.join=join,lodash.kebabCase=oV,lodash.last=last,lodash.lastIndexOf=lastIndexOf,lodash.lowerCase=oJ,lodash.lowerFirst=oY,lodash.lt=oT,lodash.lte=oE,lodash.max=max,lodash.maxBy=maxBy,lodash.mean=mean,lodash.meanBy=meanBy,lodash.min=min,lodash.minBy=minBy,lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=stubObject,lodash.stubString=stubString,lodash.stubTrue=stubTrue,lodash.multiply=im,lodash.nth=nth,lodash.noConflict=noConflict,lodash.noop=noop,lodash.now=oi,lodash.pad=pad,lodash.padEnd=padEnd,lodash.padStart=padStart,lodash.parseInt=parseInt,lodash.random=random,lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.repeat=repeat,lodash.replace=replace,lodash.result=result,lodash.round=ig,lodash.runInContext=runInContext,lodash.sample=sample,lodash.size=size,lodash.snakeCase=o$,lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.sortedIndexBy=sortedIndexBy,lodash.sortedIndexOf=sortedIndexOf,lodash.sortedLastIndex=sortedLastIndex,lodash.sortedLastIndexBy=sortedLastIndexBy,lodash.sortedLastIndexOf=sortedLastIndexOf,lodash.startCase=oZ,lodash.startsWith=startsWith,lodash.subtract=iy,lodash.sum=sum,lodash.sumBy=sumBy,lodash.template=template,lodash.times=times,lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=toLower,lodash.toNumber=toNumber,lodash.toSafeInteger=toSafeInteger,lodash.toString=toString,lodash.toUpper=toUpper,lodash.trim=trim,lodash.trimEnd=trimEnd,lodash.trimStart=trimStart,lodash.truncate=truncate,lodash.unescape=unescape,lodash.uniqueId=uniqueId,lodash.upperCase=oQ,lodash.upperFirst=oX,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,function(){var et={};return baseForOwn(lodash,function(eo,ei){rl.call(lodash.prototype,ei)||(et[ei]=eo)}),et}(),{chain:!1}),lodash.VERSION=ed,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(et){lodash[et].placeholder=lodash}),arrayEach(["drop","take"],function(et,eo){LazyWrapper.prototype[et]=function(ei){ei=eu===ei?1:rz(toInteger(ei),0);var ea=this.__filtered__&&!eo?new LazyWrapper(this):this.clone();return ea.__filtered__?ea.__takeCount__=rW(ei,ea.__takeCount__):ea.__views__.push({size:rW(ei,eY),type:et+(ea.__dir__<0?"Right":"")}),ea},LazyWrapper.prototype[et+"Right"]=function(eo){return this.reverse()[et](eo).reverse()}}),arrayEach(["filter","map","takeWhile"],function(et,eo){var ei=eo+1,ea=ei==eG||ei==eK;LazyWrapper.prototype[et]=function(et){var eo=this.clone();return eo.__iteratees__.push({iteratee:getIteratee(et,3),type:ei}),eo.__filtered__=eo.__filtered__||ea,eo}}),arrayEach(["head","last"],function(et,eo){var ei="take"+(eo?"Right":"");LazyWrapper.prototype[et]=function(){return this[ei](1).value()[0]}}),arrayEach(["initial","tail"],function(et,eo){var ei="drop"+(eo?"":"Right");LazyWrapper.prototype[et]=function(){return this.__filtered__?new LazyWrapper(this):this[ei](1)}}),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(et){return this.filter(et).head()},LazyWrapper.prototype.findLast=function(et){return this.reverse().find(et)},LazyWrapper.prototype.invokeMap=baseRest(function(et,eo){return"function"==typeof et?new LazyWrapper(this):this.map(function(ei){return baseInvoke(ei,et,eo)})}),LazyWrapper.prototype.reject=function(et){return this.filter(negate(getIteratee(et)))},LazyWrapper.prototype.slice=function(et,eo){et=toInteger(et);var ei=this;return ei.__filtered__&&(et>0||eo<0)?new LazyWrapper(ei):(et<0?ei=ei.takeRight(-et):et&&(ei=ei.drop(et)),eu!==eo&&(ei=(eo=toInteger(eo))<0?ei.dropRight(-eo):ei.take(eo-et)),ei)},LazyWrapper.prototype.takeRightWhile=function(et){return this.reverse().takeWhile(et).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(eY)},baseForOwn(LazyWrapper.prototype,function(et,eo){var ei=/^(?:filter|find|map|reject)|While$/.test(eo),ea=/^(?:head|last)$/.test(eo),ed=lodash[ea?"take"+("last"==eo?"Right":""):eo],eh=ea||/^find/.test(eo);ed&&(lodash.prototype[eo]=function(){var eo=this.__wrapped__,ep=ea?[1]:arguments,ef=eo instanceof LazyWrapper,em=ep[0],eg=ef||ob(eo),interceptor=function(et){var eo=ed.apply(lodash,arrayPush([et],ep));return ea&&ey?eo[0]:eo};eg&&ei&&"function"==typeof em&&1!=em.length&&(ef=eg=!1);var ey=this.__chain__,eC=!!this.__actions__.length,eS=eh&&!ey,e_=ef&&!eC;if(!eh&&eg){eo=e_?eo:new LazyWrapper(this);var ew=et.apply(eo,ep);return ew.__actions__.push({func:thru,args:[interceptor],thisArg:eu}),new LodashWrapper(ew,ey)}return eS&&e_?et.apply(this,ep):(ew=this.thru(interceptor),eS?ea?ew.value()[0]:ew.value():ew)})}),arrayEach(["pop","push","shift","sort","splice","unshift"],function(et){var eo=ri[et],ei=/^(?:push|sort|unshift)$/.test(et)?"tap":"thru",ea=/^(?:pop|shift)$/.test(et);lodash.prototype[et]=function(){var et=arguments;if(ea&&!this.__chain__){var eu=this.value();return eo.apply(ob(eu)?eu:[],et)}return this[ei](function(ei){return eo.apply(ob(ei)?ei:[],et)})}}),baseForOwn(LazyWrapper.prototype,function(et,eo){var ei=lodash[eo];if(ei){var ea=ei.name+"";rl.call(nh,ea)||(nh[ea]=[]),nh[ea].push({name:eo,func:ei})}}),nh[createHybrid(eu,eT).name]=[{name:"wrapper",func:eu}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=n3,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,rR&&(lodash.prototype[rR]=wrapperToIterator),lodash}();rQ._=nc,eu!==(ea=(function(){return nc}).call(eo,ei,eo,et))&&(et.exports=ea)}).call(this)},38589:function(et,eo,ei){"use strict";let ea;eu={value:!0},eo.Z=setupReact;var eu,ed=ei(73935);let eh=ed.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function setupReact(){let listener=et=>{try{let ei=ea(et.target),eu=[],ed=ei;for(;ed;){var eo="function"==typeof ed.elementType&&ed.elementType.displayName;eo&&eu.push(eo),ed=ed.return}et.__lrName=eu}catch(et){console.error("logrocket-react caught an error while hooking into React. Please make sure you are using the correct version of logrocket-react for your version of react-dom.")}};document.body.addEventListener("click",listener,{capture:!0,passive:!0})}eh&&eh.Events&&eh.Events[0]?ea=eh.Events[0]:console.warn("logrocket-react does not work with this version of React")},19258:function(et,eo,ei){var ea=ei(48764).Buffer;!function(eo,ei){et.exports=ei()}(0,function(){return function(){var et={"./packages/@logrocket/arson/src/index.js":function(et,eo,ei){"use strict";var eu=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.encode=encode,eo.decode=decode;var ed=eu(ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js")),eh=-1,ep=-2,ef=-3,em=-4,eg=-5,ey=Object.create(null),registerType=function(et,eo){function check(ei){if("function"!=typeof eo[ei])throw Error("second argument to ARSON.registerType("+JSON.stringify(et)+", ...) must be an object with a "+ei+" method")}check("deconstruct"),check("reconstruct"),ey[et]=eo},eC=Object.prototype.toString,eS="[object Date]",e_="[object RegExp]",ew="[object Set]",eA="[object Map]";function encode(et){return JSON.stringify(toTable(et))}function toTable(et){var eo=[],ei="function"==typeof Map&&new Map;function getIndex(et){var ea;switch((0,ed.default)(et)){case"undefined":return eh;case"number":if(isNaN(et))return ef;if(!isFinite(et))return et<0?eg:em}return ei?void 0===(ea=ei.get(et))&&(ea=eo.push(et)-1,ei.set(et,ea)):(ea=eo.indexOf(et))<0&&(ea=eo.push(et)-1),ea}function copy(et){var eo=et;if(et&&"object"===(0,ed.default)(et)){var ei=Object.keys(et);if(isPlainObject(et))eo={};else if(Array.isArray(et)){eo=Array(et.length);var ea=et.length;if(ea>ei.length)for(var eu=0;eu<ea;++eu)eo[eu]=ep}else{for(var eh in ey){var ef=ey[eh].deconstruct(et);if(ef){for(var eu=0;eu<ef.length;++eu)ef[eu]=getIndex(ef[eu]);return ef.unshift(eh),ef}}return({}).toString.call(et)}ei.forEach(function(ei){eo[ei]=getIndex(et[ei])})}return eo}var ea=getIndex(et);if(ea<0)return ea;for(var eu=[],eC=0;eC<eo.length;++eC)eu[eC]=copy(eo[eC]);return eu}function isPlainObject(et){return!!et&&"object"===(0,ed.default)(et)&&(Object.getPrototypeOf?Object.getPrototypeOf(et):et.__proto__)===Object.prototype}function decode(et){return fromTable(JSON.parse(et))}function fromTable(et){if("number"==typeof et&&et<0)return getValueWithoutCache(et);var eo=Array(et.length);function getValue(et){return et in eo?eo[et]:eo[et]=getValueWithoutCache(et)}function getValueWithoutCache(eo){if(eo<0){if(eo===eh||eo===ep)return;if(eo===ef)return NaN;if(eo===em)return 1/0;if(eo===eg)return-1/0;throw Error("invalid ARSON index: "+eo)}var eu=et[eo];if(eu&&"object"===(0,ed.default)(eu)){if(Array.isArray(eu)){var eC=eu[0];if("string"==typeof eC&&eC in ey){var eS=ey[eC].reconstruct,e_=eS();return e_&&ei.push({reconstruct:eS,empty:e_,argIndexes:eu.slice(1)}),et[eo]=e_||eS(eu.slice(1).map(getValue))}}ea.push(eu)}return eu}var ei=[],ea=[];return et.forEach(function(et,eo){getValue(eo)}),ei.forEach(function(et){et.args=et.argIndexes.map(getValue)}),ea.forEach(function(eo){Object.keys(eo).forEach(function(ei){var ea=eo[ei];if("number"==typeof ea){if(ea<0){if(ea===ep){delete eo[ei];return}eo[ei]=getValue(ea)}else eo[ei]=et[ea]}})}),ei.forEach(function(et){et.reconstruct.call(et.empty,et.args)}),et[0]}"function"==typeof ea&&"function"==typeof ea.isBuffer&&registerType("Buffer",{deconstruct:function(et){return ea.isBuffer(et)&&[et.toString("base64"),"base64"]},reconstruct:function(et){return et&&ea.from(et[0],et[1])}}),registerType("Date",{deconstruct:function(et){return eC.call(et)===eS&&[et.toJSON()]},reconstruct:function(et){return et&&new Date(et[0])}}),registerType("RegExp",{deconstruct:function(et){if(eC.call(et)===e_){var eo=[et.source],ei="";return et.ignoreCase&&(ei+="i"),et.multiline&&(ei+="m"),et.global&&(ei+="g"),ei&&eo.push(ei),eo}},reconstruct:function(et){return et&&new RegExp(et[0],et[1])}}),"function"==typeof Set&&"function"==typeof Array.from&&registerType("Set",{deconstruct:function(et){if(eC.call(et)===ew)return Array.from(et)},reconstruct:function(et){if(!et)return new Set;et.forEach(this.add,this)}}),"function"==typeof Map&&"function"==typeof Array.from&&registerType("Map",{deconstruct:function(et){if(eC.call(et)===eA)return Array.from(et)},reconstruct:function(et){if(!et)return new Map;et.forEach(function(et){this.set(et[0],et[1])},this)}})},"./packages/@logrocket/console/src/index.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var eu=ea(ei(/*! ./registerConsole */"./packages/@logrocket/console/src/registerConsole.js")).default;eo.default=eu},"./packages/@logrocket/console/src/registerConsole.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=registerConsole;var eu=ea(ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js")),ed=ea(ei(/*! @logrocket/utils/src/enhanceFunc */"./packages/@logrocket/utils/src/enhanceFunc.js")),eh=ei(/*! @logrocket/exceptions */"./packages/@logrocket/exceptions/src/index.js");function registerConsole(et){var eo=[];return["log","warn","info","error","debug"].forEach(function(ei){eo.push((0,ed.default)(console,ei,function(){for(var eo=arguments.length,ea=Array(eo),ed=0;ed<eo;ed++)ea[ed]=arguments[ed];et.addEvent("lr.core.LogEvent",function(){var eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ed=eo.isEnabled;return"object"===(0,eu.default)(ed)&&!1===ed[ei]||!1===ed?null:("error"===ei&&eo.shouldAggregateConsoleErrors&&eh.Capture.captureMessage(et,ea[0],ea,{},!0),{logLevel:ei.toUpperCase(),args:ea})})}))}),function(){eo.forEach(function(et){return et()})}}},"./packages/@logrocket/exceptions/src/Capture.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.captureMessage=captureMessage,eo.captureException=captureException;var eu=ei(/*! @logrocket/utils */"./packages/@logrocket/utils/src/index.ts"),ed=ea(ei(/*! @logrocket/utils/src/TraceKit */"./packages/@logrocket/utils/src/TraceKit.js")),eh=ea(ei(/*! ./stackTraceFromError */"./packages/@logrocket/exceptions/src/stackTraceFromError.js"));function captureMessage(et,eo,ei){var ea=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},ed=arguments.length>4&&void 0!==arguments[4]&&arguments[4],eh={exceptionType:ed?"CONSOLE":"MESSAGE",message:eo,messageArgs:ei,browserHref:window.location?window.location.href:""};(0,eu.scrubException)(eh,ea),et.addEvent("lr.core.Exception",function(){return eh})}function captureException(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ea=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,ep=ea||ed.default.computeStackTrace(eo),ef={exceptionType:"WINDOW",errorType:ep.name,message:ep.message,browserHref:window.location?window.location.href:""};(0,eu.scrubException)(ef,ei);var em={_stackTrace:(0,eh.default)(ep)};et.addEvent("lr.core.Exception",function(){return ef},em)}},"./packages/@logrocket/exceptions/src/index.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),eu=ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(eo,"__esModule",{value:!0}),Object.defineProperty(eo,"registerExceptions",{enumerable:!0,get:function(){return ed.default}}),eo.Capture=void 0;var ed=ea(ei(/*! ./registerExceptions */"./packages/@logrocket/exceptions/src/registerExceptions.js")),eh=_interopRequireWildcard(ei(/*! ./Capture */"./packages/@logrocket/exceptions/src/Capture.js"));function _getRequireWildcardCache(et){if("function"!=typeof WeakMap)return null;var eo=new WeakMap,ei=new WeakMap;return(_getRequireWildcardCache=function(et){return et?ei:eo})(et)}function _interopRequireWildcard(et,eo){if(!eo&&et&&et.__esModule)return et;if(null===et||"object"!==eu(et)&&"function"!=typeof et)return{default:et};var ei=_getRequireWildcardCache(eo);if(ei&&ei.has(et))return ei.get(et);var ea={},ed=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var eh in et)if("default"!==eh&&Object.prototype.hasOwnProperty.call(et,eh)){var ep=ed?Object.getOwnPropertyDescriptor(et,eh):null;ep&&(ep.get||ep.set)?Object.defineProperty(ea,eh,ep):ea[eh]=et[eh]}return ea.default=et,ei&&ei.set(et,ea),ea}eo.Capture=eh},"./packages/@logrocket/exceptions/src/raven/raven.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var eu=ea(ei(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js")),ed=ea(ei(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js")),eh=ea(ei(/*! @logrocket/utils/src/TraceKit */"./packages/@logrocket/utils/src/TraceKit.js")),ep=Object.prototype;function isUndefined(et){return void 0===et}function isFunction(et){return"function"==typeof et}function hasKey(et,eo){return ep.hasOwnProperty.call(et,eo)}function fill(et,eo,ei,ea){var eu=et[eo];et[eo]=ei(eu),ea&&ea.push([et,eo,eu])}var ef="undefined"!=typeof window?window:void 0!==ei.g?ei.g:"undefined"!=typeof self?self:{};ef.document;var em=function(){function Handler(et){var eo=et.captureException;(0,eu.default)(this,Handler),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=eo,eh.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,ed.default)(Handler,[{key:"uninstall",value:function(){for(eh.default.report.unsubscribe(this._errorHandler);this._wrappedBuiltIns.length;){var et,eo=(et=this._wrappedBuiltIns.shift())[0],ei=et[1],ea=et[2];eo[ei]=ea}}},{key:"_errorHandler",value:function(et){this._ignoreOnError||this.captureException(et)}},{key:"_ignoreNextOnError",value:function(){var et=this;this._ignoreOnError+=1,setTimeout(function(){et._ignoreOnError-=1})}},{key:"context",value:function(et,eo,ei){return isFunction(et)&&(ei=eo||[],eo=et,et=void 0),this.wrap(et,eo).apply(this,ei)}},{key:"wrap",value:function(et,eo,ei){var ea=this;if(isUndefined(eo)&&!isFunction(et))return et;if(isFunction(et)&&(eo=et,et=void 0),!isFunction(eo))return eo;try{if(eo.__lr__)return eo;if(eo.__lr_wrapper__)return eo.__lr_wrapper__;if(!Object.isExtensible(eo))return eo}catch(et){return eo}function wrapped(){var eu=[],ed=arguments.length,ep=!et||et&&!1!==et.deep;for(ei&&isFunction(ei)&&ei.apply(this,arguments);ed--;)eu[ed]=ep?ea.wrap(et,arguments[ed]):arguments[ed];try{return eo.apply(this,eu)}catch(eo){throw ea._ignoreNextOnError(),ea.captureException(eh.default.computeStackTrace(eo),et),eo}}for(var eu in eo)hasKey(eo,eu)&&(wrapped[eu]=eo[eu]);return wrapped.prototype=eo.prototype,eo.__lr_wrapper__=wrapped,wrapped.__lr__=!0,wrapped.__inner__=eo,wrapped}},{key:"_instrumentTryCatch",value:function(){var et=this,eo=et._wrappedBuiltIns;function wrapTimeFn(eo){return function(ei,ea){for(var eu=Array(arguments.length),ed=0;ed<eu.length;++ed)eu[ed]=arguments[ed];var eh=eu[0];return(isFunction(eh)&&(eu[0]=et.wrap(eh)),eo.apply)?eo.apply(this,eu):eo(eu[0],eu[1])}}function wrapEventTarget(ei){var ea=ef[ei]&&ef[ei].prototype;ea&&ea.hasOwnProperty&&ea.hasOwnProperty("addEventListener")&&(fill(ea,"addEventListener",function(eo){return function(ei,ea,eu,ed){var eh;try{ea&&ea.handleEvent&&(ea.handleEvent=et.wrap(ea.handleEvent))}catch(et){}return eo.call(this,ei,et.wrap(ea,void 0,eh),eu,ed)}},eo),fill(ea,"removeEventListener",function(et){return function(eo,ei,ea,eu){try{var ed=null==ei?void 0:ei.__lr_wrapper__;ed&&et.call(this,eo,ed,ea,eu)}catch(et){}return et.call(this,eo,ei,ea,eu)}},void 0))}fill(ef,"setTimeout",wrapTimeFn,eo),fill(ef,"setInterval",wrapTimeFn,eo),ef.requestAnimationFrame&&fill(ef,"requestAnimationFrame",function(eo){return function(ei){return eo(et.wrap(ei))}},eo);for(var ei=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ea=0;ea<ei.length;ea++)wrapEventTarget(ei[ea]);var eu=ef.jQuery||ef.$;eu&&eu.fn&&eu.fn.ready&&fill(eu.fn,"ready",function(eo){return function(ei){return eo.call(this,et.wrap(ei))}},eo)}}]),Handler}();eo.default=em},"./packages/@logrocket/exceptions/src/registerExceptions.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),eu=ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=registerCore;var ed=ea(ei(/*! ./raven/raven */"./packages/@logrocket/exceptions/src/raven/raven.js")),eh=_interopRequireWildcard(ei(/*! ./Capture */"./packages/@logrocket/exceptions/src/Capture.js"));function _getRequireWildcardCache(et){if("function"!=typeof WeakMap)return null;var eo=new WeakMap,ei=new WeakMap;return(_getRequireWildcardCache=function(et){return et?ei:eo})(et)}function _interopRequireWildcard(et,eo){if(!eo&&et&&et.__esModule)return et;if(null===et||"object"!==eu(et)&&"function"!=typeof et)return{default:et};var ei=_getRequireWildcardCache(eo);if(ei&&ei.has(et))return ei.get(et);var ea={},ed=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var eh in et)if("default"!==eh&&Object.prototype.hasOwnProperty.call(et,eh)){var ep=ed?Object.getOwnPropertyDescriptor(et,eh):null;ep&&(ep.get||ep.set)?Object.defineProperty(ea,eh,ep):ea[eh]=et[eh]}return ea.default=et,ei&&ei.set(et,ea),ea}function registerCore(et){var eo=new ed.default({captureException:function(eo){eh.captureException(et,null,null,eo)}}),rejectionHandler=function(eo){et.addEvent("lr.core.Exception",function(){return{exceptionType:"UNHANDLED_REJECTION",message:eo.reason||"Unhandled Promise rejection"}})};return window.addEventListener("unhandledrejection",rejectionHandler),function(){window.removeEventListener("unhandledrejection",rejectionHandler),eo.uninstall()}}},"./packages/@logrocket/exceptions/src/stackTraceFromError.js":function(et,eo){"use strict";function stackTraceFromError(et){function makeNotNull(et){return null===et?void 0:et}return et.stack?et.stack.map(function(et){return{lineNumber:makeNotNull(et.line),columnNumber:makeNotNull(et.column),fileName:makeNotNull(et.url),functionName:makeNotNull(et.func)}}):void 0}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=stackTraceFromError},"./packages/@logrocket/network/src/fetchIntercept.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var eu=ea(ei(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js")),ed=ei(/*! ./registerXHR */"./packages/@logrocket/network/src/registerXHR.js"),eh=[];function makeInterceptor(et,eo){for(var ei=eh.reduce(function(et,eo){return[eo].concat(et)},[]),ea=arguments.length,ep=Array(ea>2?ea-2:0),ef=2;ef<ea;ef++)ep[ef-2]=arguments[ef];var em=Promise.resolve(ep);return ei.forEach(function(et){var ei=et.request,ea=et.requestError;(ei||ea)&&(em=em.then(function(et){return ei.apply(void 0,[eo].concat((0,eu.default)(et)))},function(et){return ea.apply(void 0,[eo].concat((0,eu.default)(et)))}))}),em=em.then(function(eo){var ei,ea;(0,ed.setActive)(!1);try{ei=et.apply(void 0,(0,eu.default)(eo))}catch(et){ea=et}if((0,ed.setActive)(!0),ea)throw ea;return ei}),ei.forEach(function(et){var ei=et.response,ea=et.responseError;(ei||ea)&&(em=em.then(function(et){return ei(eo,et)},function(et){return ea&&ea(eo,et)}))}),em}function attach(et){if(et.fetch&&et.Promise){var eo=et.fetch.polyfill;et.fetch=function(et){var eo=0;return function(){for(var ei=arguments.length,ea=Array(ei),eu=0;eu<ei;eu++)ea[eu]=arguments[eu];return makeInterceptor.apply(void 0,[et,eo++].concat(ea))}}(et.fetch),eo&&(et.fetch.polyfill=eo)}}var ep=!1,ef={register:function(et){return ep||(ep=!0,attach(window)),eh.push(et),function(){var eo=eh.indexOf(et);eo>=0&&eh.splice(eo,1)}},clear:function(){eh=[]}};eo.default=ef},"./packages/@logrocket/network/src/index.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=registerNetwork;var eu=ea(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),ed=ea(ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js")),eh=ea(ei(/*! ./registerFetch */"./packages/@logrocket/network/src/registerFetch.js")),ep=ei(/*! ./registerIonic */"./packages/@logrocket/network/src/registerIonic.ts"),ef=ea(ei(/*! ./registerNetworkInformation */"./packages/@logrocket/network/src/registerNetworkInformation.js")),em=ea(ei(/*! ./registerXHR */"./packages/@logrocket/network/src/registerXHR.js")),eg=ea(ei(/*! @logrocket/utils/src/mapValues */"./packages/@logrocket/utils/src/mapValues.js"));function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eu.default)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function registerNetwork(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isReactNative:!1},ei=eo.isReactNative,ea=eo.shouldAugmentNPS,eu=eo.shouldParseXHRBlob,ey={},truncate=function(et){var eo=4096e3,ei=et;if("object"===(0,ed.default)(et)&&null!=et){var ea=Object.getPrototypeOf(et);(ea===Object.prototype||null===ea)&&(ei=JSON.stringify(et))}if(ei&&ei.length&&ei.length>eo&&"string"==typeof ei){var eu=ei.substring(0,1e3);return"".concat(eu," ... LogRocket truncating to first 1000 characters.\n      Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference/network")}return et},addRequest=function(eo,ei){var ea=ei.method;et.addEvent("lr.network.RequestEvent",function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eu=et.isEnabled,ed=void 0===eu||eu,eh=et.requestSanitizer,ep=void 0===eh?function(et){return et}:eh;if(!ed)return null;var ef=null;try{ef=ep(_objectSpread(_objectSpread({},ei),{},{reqId:eo}))}catch(et){console.error(et)}if(ef){var em=ef.url;if("undefined"!=typeof document&&"function"==typeof document.createElement){var eC=document.createElement("a");eC.href=ef.url,em=eC.href}return{reqId:eo,url:em,headers:(0,eg.default)(ef.headers,function(et){return"".concat(et)}),body:truncate(ef.body),method:ea,referrer:ef.referrer||void 0,mode:ef.mode||void 0,credentials:ef.credentials||void 0}}return ey[eo]=!0,null})},addResponse=function(eo,ei){var ea=ei.method,eu=ei.status;et.addEvent("lr.network.ResponseEvent",function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ed=et.isEnabled,eh=void 0===ed||ed,ep=et.responseSanitizer,ef=void 0===ep?function(et){return et}:ep;if(!eh)return null;if(ey[eo])return delete ey[eo],null;var em=null;try{em=ef(_objectSpread(_objectSpread({},ei),{},{reqId:eo}))}catch(et){console.error(et)}return em?{reqId:eo,status:em.status,headers:(0,eg.default)(em.headers,function(et){return"".concat(et)}),body:truncate(em.body),method:ea}:{reqId:eo,status:eu,headers:{},body:null,method:ea}})},isIgnored=function(eo){return et.isDisabled||!0===ey[eo]},eC=(0,eh.default)({addRequest:addRequest,addResponse:addResponse,isIgnored:isIgnored}),eS=(0,em.default)({addRequest:addRequest,addResponse:addResponse,isIgnored:isIgnored,logger:et,shouldAugmentNPS:ea,shouldParseXHRBlob:eu}),e_=(0,ep.registerIonic)({addRequest:addRequest,addResponse:addResponse,isIgnored:isIgnored}),ew=ei?function(){}:(0,ef.default)(et);return function(){ew(),eC(),eS(),e_()}}},"./packages/@logrocket/network/src/registerFetch.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=registerFetch;var eu=ea(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),ed=ea(ei(/*! @logrocket/utils/src/mapValues */"./packages/@logrocket/utils/src/mapValues.js")),eh=ea(ei(/*! ./fetchIntercept */"./packages/@logrocket/network/src/fetchIntercept.js"));function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eu.default)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function makeObjectFromHeaders(et){if(null==et||"function"!=typeof et.forEach)return et;var eo={};return et.forEach(function(et,ei){eo[ei]?eo[ei]="".concat(eo[ei],",").concat(et):eo[ei]="".concat(et)}),eo}var stringifyHeaders=function(et){return(0,ed.default)(makeObjectFromHeaders(et),function(et){return"".concat(et)})};function pluckFetchFields(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:et.url,headers:stringifyHeaders(et.headers),method:et.method&&et.method.toUpperCase(),referrer:et.referrer||void 0,mode:et.mode||void 0,credentials:et.credentials||void 0}}function registerFetch(et){var eo=et.addRequest,ei=et.addResponse,ea=et.isIgnored,eu="fetch-",ed={};return eh.default.register({request:function(et){for(var ei,ea,eh=arguments.length,ep=Array(eh>1?eh-1:0),ef=1;ef<eh;ef++)ep[ef-1]=arguments[ef];if("undefined"!=typeof Request&&ep[0]instanceof Request){try{ea=ep[0].clone().text()}catch(et){ea=Promise.resolve("LogRocket fetch error: ".concat(et.message))}ei=ea.then(function(et){return _objectSpread(_objectSpread({},pluckFetchFields(ep[0])),{},{body:et})},function(et){return _objectSpread(_objectSpread({},pluckFetchFields(ep[0])),{},{body:"LogRocket fetch error: ".concat(et.message)})})}else ei=Promise.resolve(_objectSpread(_objectSpread({},pluckFetchFields(ep[1])),{},{url:"".concat(ep[0]),body:(ep[1]||{}).body}));return ei.then(function(ei){return ed[et]=ei.method,eo("".concat(eu).concat(et),ei),ep})},requestError:function(et,eo){return Promise.reject(eo)},response:function(et,eo){if(ea("".concat(eu).concat(et)))return eo;if("text/event-stream"===eo.headers.get("content-type"))ep=Promise.resolve("LogRocket skipped consuming an event-stream body.");else{try{eh=eo.clone()}catch(ea){var eh,ep,ef={url:eo.url,status:eo.status,headers:stringifyHeaders(eo.headers),body:"LogRocket fetch error: ".concat(ea.message),method:ed[et]};return delete ed[et],ei("".concat(eu).concat(et),ef),eo}try{if(window.TextDecoder&&eh.body){var em=eh.body.getReader(),eg=new window.TextDecoder("utf-8"),ey="";ep=em.read().then(function readResponseBody(et){var eo=et.done,ei=et.value;if(eo)return ey;var ea=ei?eg.decode(ei,{stream:!0}):"";return ey+=ea,em.read().then(readResponseBody)})}else ep=eh.text()}catch(et){ep=Promise.resolve("LogRocket error reading body: ".concat(et.message))}}return ep.catch(function(et){if(!("AbortError"===et.name&&et instanceof DOMException))return"LogRocket error reading body: ".concat(et.message)}).then(function(ea){var eh={url:eo.url,status:eo.status,headers:stringifyHeaders(eo.headers),body:ea,method:ed[et]};delete ed[et],ei("".concat(eu).concat(et),eh)}),eo},responseError:function(et,eo){var ea={url:void 0,status:0,headers:{},body:"".concat(eo)};return ei("".concat(eu).concat(et),ea),Promise.reject(eo)}})}},"./packages/@logrocket/network/src/registerIonic.ts":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.mergeHeaders=mergeHeaders,eo.serializeQueryParams=serializeQueryParams,eo.appendQueryParamsString=appendQueryParamsString,eo.processData=processData,eo.registerIonic=registerIonic;var eu=ea(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),ed=ea(ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js")),eh=ea(ei(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js")),ep=ea(ei(/*! @logrocket/utils/src/protectFunc */"./packages/@logrocket/utils/src/protectFunc.js"));function _createForOfIteratorHelper(et,eo){var ei="undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(!ei){if(Array.isArray(et)||(ei=_unsupportedIterableToArray(et))||eo&&et&&"number"==typeof et.length){ei&&(et=ei);var ea=0,F=function(){};return{s:F,n:function(){return ea>=et.length?{done:!0}:{done:!1,value:et[ea++]}},e:function(et){throw et},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var eu,ed=!0,eh=!1;return{s:function(){ei=ei.call(et)},n:function(){var et=ei.next();return ed=et.done,et},e:function(et){eh=!0,eu=et},f:function(){try{ed||null==ei.return||ei.return()}finally{if(eh)throw eu}}}}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eu.default)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}var ef=new Set(["get","put","post","patch","head","delete","options","upload","download"]),em=new Set(["urlencoded","json","utf8"]),eg=new Set(["raw","multipart"]),ey="ionic-",eC=new Set(["desktop","mobileweb","pwa"]),eS=new Set(["FormData"]),e_=new Set,ew=new Set(["string"]),eA=new Set(["string","array"]),eI={utf8:ew,urlencoded:new Set(["object"]),json:new Set(["array","object"]),raw:new Set(["Uint8Array","ArrayBuffer"]),default:e_};function checkForValidStringValue(et,eo,ei){if("string"!=typeof eo||(eo=eo.trim().toLowerCase(),!et.has(eo)))throw Error("".concat(ei," must be one of: ").concat((0,eh.default)(et).join(", ")));return eo}function checkKeyValuePairObject(et,eo,ei){if("object"!==(0,ed.default)(et))throw Error(ei);for(var ea=0,eu=Object.keys(et);ea<eu.length;ea++){var eh=eu[ea];if(!eo.has((0,ed.default)(et[eh])))throw Error(ei)}return et}function getMatchingHostHeaders(et,eo){var ei=new URL(et).host;return eo.getHeaders(ei)||null}function mergeHeaders(et,eo){return _objectSpread(_objectSpread({},et),eo)}function getMergedHeaders(et,eo,ei){return mergeHeaders(mergeHeaders(ei.getHeaders("*")||{},getMatchingHostHeaders(et,ei)||{}),eo)}function serializeValue(et,eo){return eo?encodeURIComponent(et):et}function serializeIdentifier(et,eo,ei){return et.length?ei?"".concat(encodeURIComponent(et),"[").concat(encodeURIComponent(eo),"]"):"".concat(et,"[").concat(eo,"]"):ei?encodeURIComponent(eo):eo}function serializeArray(et,eo,ei){var ea,eu=[],eh=_createForOfIteratorHelper(eo);try{for(eh.s();!(ea=eh.n()).done;){var ep=ea.value;if(Array.isArray(ep)){eu.push(serializeArray("".concat(et,"[]"),ep,ei));continue}if("object"===(0,ed.default)(ep)){eu.push(serializeObject("".concat(et,"[]").concat(ep),ei,void 0));continue}eu.push("".concat(serializeIdentifier(et,"",ei),"=").concat(serializeValue(ep,ei)))}}catch(et){eh.e(et)}finally{eh.f()}return eu.join("&")}function serializeObject(et,eo,ei){var ea=[];for(var eu in eo)if(eo.hasOwnProperty(eu)){var eh=et.length?"".concat(et,"[").concat(eu,"]"):eu;if(Array.isArray(eo[eu])){ea.push(serializeArray(eh,eo[eu],ei));continue}if("object"===(0,ed.default)(eo[eu])&&null!==eo[eu]){ea.push(serializeObject(eh,eo[eu],ei));continue}ea.push("".concat(serializeIdentifier(et,eu,ei),"=").concat(serializeValue(eo[eu],ei)))}return ea.join("&")}function serializeQueryParams(et,eo){return serializeObject("",et,eo)}function appendQueryParamsString(et,eo){if(!et.length||!eo.length)return et;var ei=new URL(et),ea=ei.host,eu=ei.pathname,ed=ei.search,eh=ei.hash,ep=ei.protocol;return"".concat(ep,"//").concat(ea).concat(eu).concat(ed.length?"".concat(ed,"&").concat(eo):"?".concat(eo)).concat(eh)}function getAllowedDataTypes(et){return eI[et]||eI.default}function getAllowedInstanceTypes(et){return"multipart"===et?eS:e_}function processData(et,eo){var ea=(0,ed.default)(et),eu=getAllowedDataTypes(eo),ep=getAllowedInstanceTypes(eo);if(ep.size>0){var ef=!1;if(ep.forEach(function(eo){ei.g[eo]&&et instanceof ei.g[eo]&&(ef=!0)}),!ef)throw Error("INSTANCE_TYPE_MISMATCH_DATA ".concat((0,eh.default)(ep).join(", ")))}if(0===ep.size&&!eu.has(ea))throw Error("TYPE_MISMATCH_DATA ".concat((0,eh.default)(eu).join(", ")));return"utf8"===eo?et:JSON.stringify(et,void 0,2)}function handleMissingOptions(et,eo){var ei,ea=(et=et||{}).data;try{ei=checkForValidStringValue(em,et.serializer||eo.getDataSerializer(),"serializer / data payload type")}catch(eu){ei=checkForValidStringValue(eg,et.serializer||eo.getDataSerializer(),"serializer / data payload type"),ea={}}return{data:ea,filePath:et.filePath,followRedirect:et.followRedirect,headers:checkKeyValuePairObject(et.headers||{},ew,"Invalid header type, must be string"),method:checkForValidStringValue(ef,et.method||ef[0],"method"),name:et.name,params:checkKeyValuePairObject(et.params||{},eA,"Invalid param, must be of type string or array"),responseType:et.responseType,serializer:ei,connectTimeout:et.connectTimeout,readTimeout:et.readTimeout,timeout:et.timeout}}var eR=0;function registerIonic(et){var eo,ei,ea,eu=et.addRequest,ed=et.addResponse,eh=et.isIgnored,ef=null===(eo=window.cordova)||void 0===eo?void 0:null===(ei=eo.plugin)||void 0===ei?void 0:ei.http,em={},eg=!1;if(void 0===ef)return function(){};var eS=null===(ea=window.ionic)||void 0===ea?void 0:ea.platforms;if(void 0!==eS&&"function"==typeof eS.some&&eS.some(function(et){return eC.has(et)}))return function(){};var e_=ef.sendRequest,ew=(0,ep.default)(function(et,eo,ei){if(!eh("".concat(ey).concat(ei)))try{var ea={url:et.url||"",status:et.status<600&&et.status>=100?et.status:0,headers:et.headers||{},body:eo?et.data:et.error,method:em[ei].toUpperCase()};ed("".concat(ey).concat(ei),ea)}catch(eo){var eu={url:et.url||"",status:et.status<600&&et.status>=100?et.status:0,headers:et.headers||{},body:"LogRocket fetch error: ".concat(eo.message),method:em[ei].toUpperCase()};ed("".concat(ey).concat(ei),eu)}});return ef.sendRequest=function(et,eo,ei,ea){var ed=++eR,ourSuccessHandler=function(et){eg||(ew(et,!0,ed),delete em[ed]),ei(et)},ourFailureHandler=function(et){eg||(ew(et,!1,ed),delete em[ed]),ea(et)};if(!eg)try{var eh=handleMissingOptions(eo,ef),ep=appendQueryParamsString(et,serializeObject("",eh.params,!0)),eC=getMergedHeaders(et,eh.headers,ef),eS=eh.method||"get";em[ed]=eS;var eA={url:ep,method:eS.toUpperCase(),headers:eC||{},body:processData(eh.data||{},eh.serializer)};eu("".concat(ey).concat(ed),eA)}catch(ei){var eI={url:et,method:(eo.method||"get").toUpperCase(),headers:{},body:"LogRocket fetch error: ".concat(ei.message)};eu("".concat(ey).concat(ed),eI)}return e_(et,eo,ourSuccessHandler,ourFailureHandler)},function(){eg=!0,ef.sendRequest=e_,em={}}}},"./packages/@logrocket/network/src/registerNetworkInformation.js":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=registerNetworkInformation;var ei={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"};function registerNetworkInformation(et){var eo=void 0;function sendNetworkInformation(){var ea={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(ea.effectiveType=ei[window.navigator.connection.effectiveType]||"UNKNOWN"):ea.effectiveType="NONE",eo&&ea.online===eo.online&&ea.effectiveType===eo.effectiveType||(eo=ea,et.addEvent("lr.network.NetworkStatusEvent",function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=et.isEnabled;return void 0===eo||eo?ea:null}))}return setTimeout(sendNetworkInformation),window.navigator.connection&&"function"==typeof window.navigator.connection.addEventListener&&window.navigator.connection.addEventListener("change",sendNetworkInformation),window.addEventListener("online",sendNetworkInformation),window.addEventListener("offline",sendNetworkInformation),function(){window.removeEventListener("offline",sendNetworkInformation),window.removeEventListener("online",sendNetworkInformation),window.navigator.connection&&"function"==typeof window.navigator.connection.removeEventListener&&window.navigator.connection.removeEventListener("change",sendNetworkInformation)}}},"./packages/@logrocket/network/src/registerXHR.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.setActive=setActive,eo.default=registerXHR;var eu=ea(ei(/*! @logrocket/utils/src/mapValues */"./packages/@logrocket/utils/src/mapValues.js")),ed=ea(ei(/*! @logrocket/utils/src/enhanceFunc */"./packages/@logrocket/utils/src/enhanceFunc.js")),eh=ea(ei(/*! @logrocket/utils/src/startsWith */"./packages/@logrocket/utils/src/startsWith.js")),ep=ei(/*! @logrocket/utils/src/constants/nps */"./packages/@logrocket/utils/src/constants/nps.js"),ef=!0;function setActive(et){ef=et}var em=0;function registerXHR(et){var eo=et.addRequest,ei=et.addResponse,ea=et.isIgnored,eg=et.logger,ey=et.shouldAugmentNPS,eC=void 0===ey||ey,eS=et.shouldParseXHRBlob,e_=void 0!==eS&&eS,ew=XMLHttpRequest,eA=new WeakMap,eI=!1,eR="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,(XMLHttpRequest=function(et,ey){var eS=new ew(et,ey);if(!ef)return eS;eA.set(eS,{xhrId:++em,headers:{}});var eT=eS.open;function openShim(){for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];try{var ea=eo[1];if(window.URL&&"function"==typeof window.URL&&0===ea.search(ep.WOOTRIC_RESPONSES_REGEX)){var eu=new window.URL(eg.recordingURL);eu.searchParams.set("nps","wootric");var ed=new window.URL(ea),eh=ed.searchParams.get("response[text]"),ef=eh?"".concat(eh,"\n\n"):"";ed.searchParams.set("response[text]","".concat(ef,"<").concat(eu.href,"|View LogRocket session>")),eo[1]=ed.href}}catch(et){}return eT.apply(this,eo)}var eE=eS.send;function sendShim(){for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];try{var ea=eA.get(eS);if(window.URL&&"function"==typeof window.URL&&ea&&ea.url&&0===ea.url.search(ep.DELIGHTED_RESPONSES_REGEX)&&eo.length&&-1!==eo[0].indexOf(ep.DELIGHTED_FEEDBACK_PREFIX)){var eu=new window.URL(eg.recordingURL);eu.searchParams.set("nps","delighted");var ed=encodeURIComponent(eu.href),ef=eo[0].split("&").map(function(et){if((0,eh.default)(et,ep.DELIGHTED_FEEDBACK_PREFIX)){var eo=et===ep.DELIGHTED_FEEDBACK_PREFIX;return"".concat(et).concat(eo?"":"\n\n","<").concat(ed,"|View LogRocket session>")}return et}).join("&");eo[0]=ef}}catch(et){}return eE.apply(this,eo)}eC&&(eS.open=openShim,eS.send=sendShim),(0,ed.default)(eS,"open",function(et,eo){if(!eI){var ei=eA.get(eS);ei.method=et,ei.url=eo}}),(0,ed.default)(eS,"send",function(et){if(!eI){var ei=eA.get(eS);if(ei){var ea={url:ei.url,method:ei.method&&ei.method.toUpperCase(),headers:(0,eu.default)(ei.headers||{},function(et){return et.join(", ")}),body:et};eo("".concat(eR).concat(ei.xhrId),ea)}}}),(0,ed.default)(eS,"setRequestHeader",function(et,eo){if(!eI){var ei=eA.get(eS);ei&&(ei.headers=ei.headers||{},ei.headers[et]=ei.headers[et]||[],ei.headers[et].push(eo))}});var eP={readystatechange:function(){if(!eI&&4===eS.readyState){var et,eo=eA.get(eS);if(!(!eo||ea("".concat(eR).concat(eo.xhrId)))){var eu=(eS.getAllResponseHeaders()||"").split(/[\r\n]+/).reduce(function(et,eo){var ei=et,ea=eo.split(": ");if(ea.length>0){var eu=ea.shift(),ed=ea.join(": ");et[eu]?ei[eu]+=", ".concat(ed):ei[eu]=ed}return ei},{});try{switch(eS.responseType){case"json":et=eg._shouldCloneResponse?JSON.parse(JSON.stringify(eS.response)):eS.response;break;case"arraybuffer":case"blob":et=eS.response;break;case"document":et=eS.responseXML;break;case"text":case"":et=eS.responseText;break;default:et=""}}catch(eo){et="LogRocket: Error accessing response."}var ed={url:eo.url,status:eS.status,headers:eu,body:et,method:(eo.method||"").toUpperCase()};if(e_&&ed.body instanceof Blob){var eh=new FileReader;eh.readAsText(ed.body),eh.onload=function(){try{ed.body=JSON.parse(eh.result)}catch(et){}ei("".concat(eR).concat(eo.xhrId),ed)}}else ei("".concat(eR).concat(eo.xhrId),ed)}}}};return Object.keys(eP).forEach(function(et){eS.addEventListener(et,eP[et])}),eS}).prototype=ew.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach(function(et){XMLHttpRequest[et]=ew[et]}),function(){eI=!0,XMLHttpRequest=ew}}},"./packages/@logrocket/now/src/index.js":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var ei=Date.now.bind(Date),ea=ei(),eu="undefined"!=typeof performance&&performance.now?performance.now.bind(performance):function(){return ei()-ea};eo.default=eu},"./packages/@logrocket/redux/src/createEnhancer.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=createEnhancer;var eu=ea(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),ed=ea(ei(/*! @logrocket/now */"./packages/@logrocket/now/src/index.js"));function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eu.default)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}var eh=0;function createEnhancer(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ei=eo.stateSanitizer,ea=void 0===ei?function(et){return et}:ei,eu=eo.actionSanitizer,ep=void 0===eu?function(et){return et}:eu;return function(eo){return function(ei,eu,ef){var em=eo(ei,eu,ef),eg=em.dispatch,ey=eh++;et.addEvent("lr.redux.InitialState",function(){var et;try{et=ea(em.getState())}catch(et){console.error(et.toString())}return{state:et,storeId:ey}});var dispatch=function(eo){var ei,eu,eh=(0,ed.default)();try{eu=eg(eo)}catch(et){ei=et}finally{var ef=(0,ed.default)()-eh;et.addEvent("lr.redux.ReduxAction",function(){var et=null,ei=null;try{et=ea(em.getState()),ei=ep(eo)}catch(et){console.error(et.toString())}return et&&ei?{storeId:ey,action:ei,duration:ef,stateDelta:et}:null})}if(ei)throw ei;return eu};return _objectSpread(_objectSpread({},em),{},{dispatch:dispatch})}}}},"./packages/@logrocket/redux/src/createMiddleware.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=createMiddleware;var eu=ea(ei(/*! @logrocket/now */"./packages/@logrocket/now/src/index.js")),ed=0;function createMiddleware(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ei=eo.stateSanitizer,ea=void 0===ei?function(et){return et}:ei,eh=eo.actionSanitizer,ep=void 0===eh?function(et){return et}:eh;return function(eo){var ei=ed++;return et.addEvent("lr.redux.InitialState",function(){var et;try{et=ea(eo.getState())}catch(et){console.error(et.toString())}return{state:et,storeId:ei}}),function(ed){return function(eh){var ef,em,eg=(0,eu.default)();try{em=ed(eh)}catch(et){ef=et}finally{var ey=(0,eu.default)()-eg;et.addEvent("lr.redux.ReduxAction",function(){var et=null,eu=null;try{et=ea(eo.getState()),eu=ep(eh)}catch(et){console.error(et.toString())}return et&&eu?{storeId:ei,action:eu,duration:ey,stateDelta:et}:null})}if(ef)throw ef;return em}}}}},"./packages/@logrocket/redux/src/index.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),Object.defineProperty(eo,"createEnhancer",{enumerable:!0,get:function(){return eu.default}}),Object.defineProperty(eo,"createMiddleware",{enumerable:!0,get:function(){return ed.default}});var eu=ea(ei(/*! ./createEnhancer */"./packages/@logrocket/redux/src/createEnhancer.js")),ed=ea(ei(/*! ./createMiddleware */"./packages/@logrocket/redux/src/createMiddleware.js"))},"./packages/@logrocket/utils/src/TraceKit.js":function(et,eo,ei){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var ea={collectWindowErrors:!0,debug:!1},eu="undefined"!=typeof window?window:void 0!==ei.g?ei.g:"undefined"!=typeof self?self:{},ed=[].slice,eh="?",ep=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function getLocationHref(){return"undefined"==typeof document||void 0===document.location?"":document.location.href}ea.report=function(){var et,eo,ei=[],ef=null,em=null,eg=null;function subscribe(et){installGlobalHandler(),ei.push(et)}function unsubscribe(et){for(var eo=ei.length-1;eo>=0;--eo)ei[eo]===et&&ei.splice(eo,1)}function unsubscribeAll(){uninstallGlobalHandler(),ei=[]}function notifyHandlers(et,eo){var eu=null;if(!eo||ea.collectWindowErrors){for(var eh in ei)if(ei.hasOwnProperty(eh))try{ei[eh].apply(null,[et].concat(ed.call(arguments,2)))}catch(et){eu=et}if(eu)throw eu}}function traceKitWindowOnError(eo,ei,eu,ed,ef){var em=null;if(eg)ea.computeStackTrace.augmentStackTraceWithInitialElement(eg,ei,eu,eo),processLastException();else if(ef)notifyHandlers(em=ea.computeStackTrace(ef),!0);else{var ey,eC={url:ei,line:eu,column:ed},eS=void 0,e_=eo;if("[object String]"===({}).toString.call(eo)){var ey=eo.match(ep);ey&&(eS=ey[1],e_=ey[2])}eC.func=eh,notifyHandlers(em={name:eS,message:e_,url:getLocationHref(),stack:[eC]},!0)}return!!et&&et.apply(this,arguments)}function installGlobalHandler(){eo||(et=eu.onerror,eu.onerror=traceKitWindowOnError,eo=!0)}function uninstallGlobalHandler(){eo&&(eu.onerror=et,eo=!1,et=void 0)}function processLastException(){var et=eg,eo=ef;ef=null,eg=null,em=null,notifyHandlers.apply(null,[et,!1].concat(eo))}function report(et,eo){var ei=ed.call(arguments,1);if(eg){if(em===et)return;processLastException()}var eu=ea.computeStackTrace(et);if(eg=eu,em=et,ef=ei,setTimeout(function(){em===et&&processLastException()},eu.incomplete?2e3:0),!1!==eo)throw et}return report.subscribe=subscribe,report.unsubscribe=unsubscribe,report.uninstall=unsubscribeAll,report}(),ea.computeStackTrace=function(){function computeStackTraceFromStackProp(et){if(void 0!==et.stack&&et.stack){for(var eo,ei,ea=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,ed=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ep=et.stack.split("\n"),ef=[],em=/^(.*) is undefined$/.exec(et.message),eg=0,ey=ep.length;eg<ey;++eg){if(eo=ea.exec(ep[eg])){var eC=eo[2]&&-1!==eo[2].indexOf("native");ei={url:eC?null:eo[2],func:eo[1]||eh,args:eC?[eo[2]]:[],line:eo[3]?+eo[3]:null,column:eo[4]?+eo[4]:null}}else if(eo=ed.exec(ep[eg]))ei={url:eo[2],func:eo[1]||eh,args:[],line:+eo[3],column:eo[4]?+eo[4]:null};else{if(!(eo=eu.exec(ep[eg])))continue;ei={url:eo[3],func:eo[1]||eh,args:eo[2]?eo[2].split(","):[],line:eo[4]?+eo[4]:null,column:eo[5]?+eo[5]:null}}!ei.func&&ei.line&&(ei.func=eh),ef.push(ei)}return ef.length?(ef[0].column||void 0===et.columnNumber||(ef[0].column=et.columnNumber+1),{name:et.name,message:et.message,url:getLocationHref(),stack:ef}):null}}function augmentStackTraceWithInitialElement(et,eo,ei,ea){var eu={url:eo,line:ei};if(eu.url&&eu.line){if(et.incomplete=!1,eu.func||(eu.func=eh),et.stack.length>0&&et.stack[0].url===eu.url){if(et.stack[0].line===eu.line)return!1;if(!et.stack[0].line&&et.stack[0].func===eu.func)return et.stack[0].line=eu.line,!1}return et.stack.unshift(eu),et.partial=!0,!0}return et.incomplete=!0,!1}function computeStackTraceByWalkingCallerChain(et,eo){for(var ei,eu,ed=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,ep=[],ef={},em=!1,eg=computeStackTraceByWalkingCallerChain.caller;eg&&!em;eg=eg.caller)if(eg!==computeStackTrace&&eg!==ea.report){if(eu={url:null,func:eh,line:null,column:null},eg.name?eu.func=eg.name:(ei=ed.exec(eg.toString()))&&(eu.func=ei[1]),void 0===eu.func)try{eu.func=ei.input.substring(0,ei.input.indexOf("{"))}catch(et){}ef[""+eg]?em=!0:ef[""+eg]=!0,ep.push(eu)}eo&&ep.splice(0,eo);var ey={name:et.name,message:et.message,url:getLocationHref(),stack:ep};return augmentStackTraceWithInitialElement(ey,et.sourceURL||et.fileName,et.line||et.lineNumber,et.message||et.description),ey}function computeStackTrace(et,eo){var ei=null;eo=null==eo?0:+eo;try{if(ei=computeStackTraceFromStackProp(et))return ei}catch(et){if(ea.debug)throw et}try{if(ei=computeStackTraceByWalkingCallerChain(et,eo+1))return ei}catch(et){if(ea.debug)throw et}return{name:et.name,message:et.message,url:getLocationHref()}}return computeStackTrace.augmentStackTraceWithInitialElement=augmentStackTraceWithInitialElement,computeStackTrace.computeStackTraceFromStackProp=computeStackTraceFromStackProp,computeStackTrace}();var ef=ea;eo.default=ef},"./packages/@logrocket/utils/src/addListener.js":function(et,eo){"use strict";function addListener(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,ea=eo;return ei.addEventListener(et,function(){ea&&ea.apply(void 0,arguments)},{capture:!0,passive:!0}),function(){ea=null}}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=addListener},"./packages/@logrocket/utils/src/adjustOsVersion.ts":function(et,eo){"use strict";function adjustOsVersion(et,eo){var ei=eo;return eo&&et.toLowerCase().replace(/\s/g,"").indexOf("macos")>-1&&(ei=eo.replace("10.15.7","10.15.7+")),ei}function adjustOs(et){return adjustOsVersion(et,et)}Object.defineProperty(eo,"__esModule",{value:!0}),eo.adjustOsVersion=adjustOsVersion,eo.adjustOs=adjustOs},"./packages/@logrocket/utils/src/applyUrlSanitizer.js":function(et,eo){"use strict";function applyUrlSanitizer(et){var eo,ei=et.logger,ea=et.url,eu=void 0===ea?"":ea,ed=(ei.getConfig("lr.browser")||{}).urlSanitizer,eh=void 0===ed?function(et){return et}:ed;try{eo=eh(eu)}catch(et){console.error(et)}return"string"==typeof eo?eo:""}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=applyUrlSanitizer},"./packages/@logrocket/utils/src/browserUtils.js":function(et,eo){"use strict";function getNodeName(et){return"#document-fragment"===et.nodeName&&"open"===et.mode?"$shadow-root":et.nodeName?et.nodeName.toLowerCase():""}function getTargetForEvent(et){return"function"==typeof et.composedPath&&et.composed?et.composedPath()[0]:et.path?et.path[0]:et.target}Object.defineProperty(eo,"__esModule",{value:!0}),eo.getNodeName=getNodeName,eo.getTargetForEvent=getTargetForEvent,eo.getNodePath=getNodePath;var ei=1e3;function getNodePath(et){for(var eo=et,ea=[],eu=0;eo&&(eo.parentNode||eo.host);){var ed=getNodeName(eo);if("body"===ed)break;var eh={nodeName:ed},ep=eh.nodeName.length;if(eo.id&&eo.id.length>0&&(eh.id=eo.id,ep+=eo.id.length),eo.classList&&eo.classList.length>0){eh.classList=Array.prototype.slice.call(eo.classList,0);var ef=Array.prototype.join.call(eo.classList,"");ef&&(ep+=ef.length)}if(eu+ep>ei)break;if(eo.parentNode&&eo.parentNode.children)try{var em=0,eg=eo;do em+=1,eg=eg.previousElementSibling;while(eg);eh.nthChild=em}catch(et){}eu+=ep,ea.push(eh),eo=eo.parentNode||eo.host}return ea}},"./packages/@logrocket/utils/src/constants/issues.ts":function(et,eo,ei){"use strict";var ea,eu=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.ES_ISSUE_TYPE_BASE_FILTER=eo.ES_ISSUE_TYPES=eo.ISSUE_GROUP_TYPE=eo.ISSUE_TYPE=void 0;var ed=eu(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),eh={EXCEPTION:"EXCEPTION",NETWORK_ERROR:"NETWORK_ERROR",RAGE_CLICK:"RAGE_CLICK",DEAD_CLICK:"DEAD_CLICK",FRUSTRATING_NETWORK:"FRUSTRATING_NETWORK",ERROR_STATE:"ERROR_STATE"};eo.ISSUE_TYPE=eh;var ep={ENCODED_FILTER:"ENCODED_FILTER",SENTRY:"SENTRY",TROYTOWN:"TROYTOWN"};eo.ISSUE_GROUP_TYPE=ep;var ef=[eh.RAGE_CLICK,eh.DEAD_CLICK,eh.FRUSTRATING_NETWORK,eh.ERROR_STATE];eo.ES_ISSUE_TYPES=ef;var em=(ea={},(0,ed.default)(ea,eh.RAGE_CLICK,{rageClicked:{operator:"TEXT_IS",strings:[]}}),(0,ed.default)(ea,eh.DEAD_CLICK,{deadClicked:{operator:"TEXT_IS",strings:[]}}),ea);eo.ES_ISSUE_TYPE_BASE_FILTER=em},"./packages/@logrocket/utils/src/constants/logTypes.js":function(et,eo,ei){"use strict";var ea,eu=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.LOG_FILTER_TYPES=eo.LOG_TYPES=void 0;var ed=eu(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),eh={LOG:"LOG",WARN:"WARN",ERROR:"ERROR",DEBUG:"DEBUG",INFO:"INFO",REDUX:"REDUX",LIFECYCLE:"LIFECYCLE",NAVIGATION:"NAVIGATION",NETWORK:"NETWORK",PREV_SESSION:"PREV_SESSION",NEXT_SESSION:"NEXT_SESSION",LOAD_MORE:"LOAD_MORE",EXCEPTION:"EXCEPTION",CRASH:"CRASH"};eo.LOG_TYPES=eh;var ep=(ea={},(0,ed.default)(ea,eh.LOG,{label:"Logs",filterLabel:"Log",types:[eh.LOG]}),(0,ed.default)(ea,eh.WARN,{label:"Warnings",filterLabel:"Warning",types:[eh.WARN]}),(0,ed.default)(ea,eh.ERROR,{label:"Errors",filterLabel:"Error",types:[eh.ERROR,eh.EXCEPTION,eh.CRASH]}),(0,ed.default)(ea,eh.INFO,{label:"Info",filterLabel:"Info",types:[eh.INFO]}),(0,ed.default)(ea,eh.DEBUG,{label:"Debug",filterLabel:"Debug",types:[eh.DEBUG]}),(0,ed.default)(ea,eh.REDUX,{label:"Redux",types:[eh.REDUX]}),(0,ed.default)(ea,eh.NAVIGATION,{label:"Navigation",types:[eh.NAVIGATION,eh.LIFECYCLE]}),ea);eo.LOG_FILTER_TYPES=ep},"./packages/@logrocket/utils/src/constants/metrics.js":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR=eo.DEFAULT_HEATMAP_FOR_URL_OPERATOR=eo.nextSortDirection=eo.SORT_DIRECTION=eo.FEEDBACK_SORT_COLUMN=eo.HEATMAP_FOR_URL_OPERATOR=eo.METRIC_RETENTION_TYPE=eo.METRIC_TIMESERIES_TYPE=void 0;var ei={SESSION_COUNT:"SESSION_COUNT",PERCENTILE:"PERCENTILE",CONVERSION_RATE:"CONVERSION_RATE",SESSION_PERCENTAGE:"SESSION_PERCENTAGE",ACTIVE_USERS:"ACTIVE_USERS",EVENT_COUNT:"EVENT_COUNT"};eo.METRIC_TIMESERIES_TYPE=ei;var ea={USER_PERCENTAGE:"USER_PERCENTAGE"};eo.METRIC_RETENTION_TYPE=ea;var eu={IS:"IS",CONTAINS:"CONTAINS",LIKE:"LIKE",HREF_LIKE:"HREF_LIKE"};eo.HEATMAP_FOR_URL_OPERATOR=eu;var ed={RATING:"RATING",SUBMISSION_DATE:"SUBMISSION_DATE"};eo.FEEDBACK_SORT_COLUMN=ed;var eh={UNSET:"UNSET",ASC:"ASC",DESC:"DESC"};eo.SORT_DIRECTION=eh;var nextSortDirection=function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ei=eo.reverse,ea=void 0!==ei&&ei,eu=eh.UNSET,ed=eh.ASC,ep=eh.DESC,ef=[eu,ep,ed];ea&&(ef=[eu,ed,ep]);var em=ef.indexOf(et);return ef[(em+1)%ef.length]};eo.nextSortDirection=nextSortDirection;var ep=eu.IS;eo.DEFAULT_HEATMAP_FOR_URL_OPERATOR=ep;var ef=eu.HREF_LIKE;eo.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR=ef},"./packages/@logrocket/utils/src/constants/mobile.ts":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.MAXIMUM_SUPPORTED_VERSION=eo.MINIMUM_SUPPORTED_VERSION=eo.IOS_VERSION=eo.ANDROID_VERSION=void 0;var ei="1.32.1";eo.ANDROID_VERSION=ei;var ea="1.32.1";eo.IOS_VERSION=ea;var eu="1.0.0";eo.MINIMUM_SUPPORTED_VERSION=eu;var ed="1.33.0";eo.MAXIMUM_SUPPORTED_VERSION=ed},"./packages/@logrocket/utils/src/constants/nps.js":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.DELIGHTED_FEEDBACK_PREFIX=eo.DELIGHTED_RESPONSES_REGEX=eo.WOOTRIC_RESPONSES_REGEX=void 0;var ei=/^https:\/\/production.wootric.com\/responses/;eo.WOOTRIC_RESPONSES_REGEX=ei;var ea=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/;eo.DELIGHTED_RESPONSES_REGEX=ea;var eu="comment=";eo.DELIGHTED_FEEDBACK_PREFIX=eu},"./packages/@logrocket/utils/src/constants/platformTypes.ts":function(et,eo){"use strict";var ei;Object.defineProperty(eo,"__esModule",{value:!0}),eo.PlatformType=void 0,eo.PlatformType=ei,function(et){et[et.UNKNOWN=0]="UNKNOWN",et[et.WEB=1]="WEB",et[et.ANDROID=2]="ANDROID",et[et.IOS=3]="IOS"}(ei||(eo.PlatformType=ei={}))},"./packages/@logrocket/utils/src/constants/replayTypes.ts":function(et,eo){"use strict";var ei;Object.defineProperty(eo,"__esModule",{value:!0}),eo.REPLAY_TYPE=void 0,eo.REPLAY_TYPE=ei,function(et){et.SKIA="SKIA",et.DOM="DOM"}(ei||(eo.REPLAY_TYPE=ei={}))},"./packages/@logrocket/utils/src/constants/sdkTypes.ts":function(et,eo,ei){"use strict";var ea,eu,ed,eh=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.SESSION_TYPE_TO_DISPLAY=eo.SDK_REPLAY_TYPE=eo.SDK_TYPE_TO_DISPLAY=eo.SDK_TYPE=void 0;var ep=eh(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),ef=ei(/*! ./replayTypes */"./packages/@logrocket/utils/src/constants/replayTypes.ts");eo.SDK_TYPE=ed,function(et){et.WEB="web",et.MOBILE="mobile",et.UNKNOWN="unknown"}(ed||(eo.SDK_TYPE=ed={}));var em=(ea={},(0,ep.default)(ea,ed.WEB,"Web"),(0,ep.default)(ea,ed.MOBILE,"Mobile"),ea);eo.SDK_TYPE_TO_DISPLAY=em;var eg=(eu={},(0,ep.default)(eu,ed.WEB,ef.REPLAY_TYPE.DOM),(0,ep.default)(eu,ed.MOBILE,ef.REPLAY_TYPE.SKIA),eu);eo.SDK_REPLAY_TYPE=eg;var ey=em;eo.SESSION_TYPE_TO_DISPLAY=ey},"./packages/@logrocket/utils/src/constants/statusCodes.ts":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.getStatusText=getStatusText,eo.STATUS_CODES=void 0;var ei={0:"",100:"Continue",101:"Switching Protocol",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"unused",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"};function getStatusText(et){return ei[String(et)]}eo.STATUS_CODES=ei},"./packages/@logrocket/utils/src/contains.js":function(et,eo){"use strict";function contains(et,eo){return et&&eo&&et.indexOf(eo)>-1}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=contains},"./packages/@logrocket/utils/src/deepArsonify.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=deepArsonify;var eu=_interopRequireWildcard(ei(/*! @logrocket/arson */"./packages/@logrocket/arson/src/index.js"));function _getRequireWildcardCache(et){if("function"!=typeof WeakMap)return null;var eo=new WeakMap,ei=new WeakMap;return(_getRequireWildcardCache=function(et){return et?ei:eo})(et)}function _interopRequireWildcard(et,eo){if(!eo&&et&&et.__esModule)return et;if(null===et||"object"!==ea(et)&&"function"!=typeof et)return{default:et};var ei=_getRequireWildcardCache(eo);if(ei&&ei.has(et))return ei.get(et);var eu={},ed=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var eh in et)if("default"!==eh&&Object.prototype.hasOwnProperty.call(et,eh)){var ep=ed?Object.getOwnPropertyDescriptor(et,eh):null;ep&&(ep.get||ep.set)?Object.defineProperty(eu,eh,ep):eu[eh]=et[eh]}return eu.default=et,ei&&ei.set(et,eu),eu}function deepArsonify(et){return{arson:eu.encode(et)}}},"./packages/@logrocket/utils/src/deepDearsonify.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=deepDearsonify;var eu=_interopRequireWildcard(ei(/*! @logrocket/arson */"./packages/@logrocket/arson/src/index.js"));function _getRequireWildcardCache(et){if("function"!=typeof WeakMap)return null;var eo=new WeakMap,ei=new WeakMap;return(_getRequireWildcardCache=function(et){return et?ei:eo})(et)}function _interopRequireWildcard(et,eo){if(!eo&&et&&et.__esModule)return et;if(null===et||"object"!==ea(et)&&"function"!=typeof et)return{default:et};var ei=_getRequireWildcardCache(eo);if(ei&&ei.has(et))return ei.get(et);var eu={},ed=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var eh in et)if("default"!==eh&&Object.prototype.hasOwnProperty.call(et,eh)){var ep=ed?Object.getOwnPropertyDescriptor(et,eh):null;ep&&(ep.get||ep.set)?Object.defineProperty(eu,eh,ep):eu[eh]=et[eh]}return eu.default=et,ei&&ei.set(et,eu),eu}function deepDearsonify(et){return et?eu.decode(et.arson):et}},"./packages/@logrocket/utils/src/endsWith.js":function(et,eo){"use strict";function endsWith(et,eo){return et&&eo&&et.substring(et.length-eo.length)===eo}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=endsWith},"./packages/@logrocket/utils/src/enhanceFunc.js":function(et,eo){"use strict";function enhanceFunc(et,eo,ei){var ea=et[eo];function shim(){for(var et,eo=arguments.length,eu=Array(eo),ed=0;ed<eo;ed++)eu[ed]=arguments[ed];return ea&&(et=ea.apply(this,eu)),ei.apply(this,eu),et}return et[eo]=shim,function(){et[eo]=ea}}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=enhanceFunc},"./packages/@logrocket/utils/src/find.js":function(et,eo){"use strict";function find(et,eo){for(var ei=0;ei<et.length;ei++)if(eo(et[ei]))return et[ei]}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=find},"./packages/@logrocket/utils/src/findIndex.js":function(et,eo){"use strict";function findIndex(et,eo){for(var ei=0;ei<et.length;ei++)if(eo(et[ei]))return ei;return -1}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=findIndex},"./packages/@logrocket/utils/src/findKeyFrames.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=findKeyFrames;var eu=ea(ei(/*! lodash/sortedLastIndexBy */"./packages/@logrocket/utils/node_modules/lodash/sortedLastIndexBy.js"));function findKeyFrames(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ea=ei.sdkThrottle,ed=void 0===ea?500:ea;if(!et.length)return null;var eh=(0,eu.default)(et,{time:eo},"time"),ep=et[eh]||et[eh-1],ef=et[eh-1]||ep,em=Math.min(ep.time-ef.time,ed),eg=Math.max(eo-(ep.time-em),0);return{prev:ef,next:ep,ratio:0===em?1:Math.min(eg/em,1)}}},"./packages/@logrocket/utils/src/flatten.js":function(et,eo){"use strict";function flatten(et,eo){return et.concat(eo)}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=flatten},"./packages/@logrocket/utils/src/getCssRules.ts":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.getCssRule=eo.getCssRules=void 0;var getCssRules=function(et){try{var eo=et.cssRules;if(!eo&&et instanceof CSSStyleSheet)return et.rules;return eo}catch(et){return null}};eo.getCssRules=getCssRules;var getCssRule=function(et,eo){var ei=getCssRules(et);return!ei||eo>=ei.length?null:ei.item(eo)};eo.getCssRule=getCssRule},"./packages/@logrocket/utils/src/getGraphQLOperation.js":function(et,eo){"use strict";function getGraphQLOperation(et){if(et)try{var eo=("string"==typeof et?JSON.parse(et):et).query.trim().match(/(query|mutation) ([a-z_-]+)/i);if(!eo)return{};return{operationType:eo[1],operationName:eo[2]}}catch(et){}return{}}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=getGraphQLOperation},"./packages/@logrocket/utils/src/getNodeSelector.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var eu=(0,ea(ei(/*! ./protectFunc */"./packages/@logrocket/utils/src/protectFunc.js")).default)(function(et){var eo={nodeName:et.nodeName?et.nodeName.toLowerCase():""};return et.id&&et.id.length>0&&(eo.id=et.id),et.classList&&et.classList.length>0&&(eo.classList=Array.prototype.slice.call(et.classList,0)),eo});eo.default=eu},"./packages/@logrocket/utils/src/hashString.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.combineHashes=eo.hashString=void 0;var eu=ea(ei(/*! ./protectFunc */"./packages/@logrocket/utils/src/protectFunc.js")),ed=ei(/*! ./sendTelemetryData */"./packages/@logrocket/utils/src/sendTelemetryData.js");function _createForOfIteratorHelper(et,eo){var ei="undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(!ei){if(Array.isArray(et)||(ei=_unsupportedIterableToArray(et))||eo&&et&&"number"==typeof et.length){ei&&(et=ei);var ea=0,F=function(){};return{s:F,n:function(){return ea>=et.length?{done:!0}:{done:!1,value:et[ea++]}},e:function(et){throw et},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var eu,ed=!0,eh=!1;return{s:function(){ei=ei.call(et)},n:function(){var et=ei.next();return ed=et.done,et},e:function(et){eh=!0,eu=et},f:function(){try{ed||null==ei.return||ei.return()}finally{if(eh)throw eu}}}}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}var eh=(0,eu.default)(function(et){try{var eo=0;if("string"==typeof et&&et.length)for(var ei=0;ei<et.length;ei++)eo=31*eo+et.charCodeAt(ei)|0;return eo}catch(eo){return(0,ed.sendTelemetry)("Failed to hash string",{extra:{str:et}}),null}});eo.hashString=eh;var combineHashes=function(et){var eo,ei=et.shift()||0,ea=_createForOfIteratorHelper(et);try{for(ea.s();!(eo=ea.n()).done;){var eu=eo.value;ei^=eu+2654435769+(ei<<6)+(ei>>2)}}catch(et){ea.e(et)}finally{ea.f()}return ei};eo.combineHashes=combineHashes},"./packages/@logrocket/utils/src/identityStatus.ts":function(et,eo){"use strict";var ei;function parseIdentityStatus(et){if(!et)return ei.Unknown;switch(parseInt(et,10)){case ei.Anonymous:return ei.Anonymous;case ei.Identified:return ei.Identified;default:return ei.Unknown}}Object.defineProperty(eo,"__esModule",{value:!0}),eo.parseIdentityStatus=parseIdentityStatus,eo.IdentityStatus=void 0,eo.IdentityStatus=ei,function(et){et[et.Unknown=0]="Unknown",et[et.Anonymous=1]="Anonymous",et[et.Identified=2]="Identified"}(ei||(eo.IdentityStatus=ei={}))},"./packages/@logrocket/utils/src/index.ts":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),eu=ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(eo,"__esModule",{value:!0});var ed={enhanceFunc:!0,shallowArsonify:!0,shallowDearsonify:!0,deepArsonify:!0,deepDearsonify:!0,addListener:!0,protectFunc:!0,findIndex:!0,find:!0,flatten:!0,selectorMatches:!0,parseSelectorForMatch:!0,querySelectorWithShadowDom:!0,sendErrorTelemetry:!0,sendTelemetry:!0,sanitizeValue:!0,adjustOs:!0,adjustOsVersion:!0,selectorFromNodePath:!0,startsWith:!0,endsWith:!0,contains:!0,uuid:!0,randomInt:!0,getCssRules:!0,getCssRule:!0,getNodeSelector:!0,getGraphQLOperation:!0,isSessionEvent:!0,isActivityEvent:!0,parseIntFromHex:!0,isRecordingSampled:!0,makeRecordingID:!0,setFromArray:!0,setToArray:!0,applyUrlSanitizer:!0,maybeCleanSwiftUIClassName:!0,LOG_FILTER_TYPES:!0,LOG_TYPES:!0,METRIC_TIMESERIES_TYPE:!0,HEATMAP_FOR_URL_OPERATOR:!0,DEFAULT_HEATMAP_FOR_URL_OPERATOR:!0,DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR:!0,SORT_DIRECTION:!0,FEEDBACK_SORT_COLUMN:!0,METRIC_RETENTION_TYPE:!0,ISSUE_TYPE:!0,ISSUE_GROUP_TYPE:!0,ES_ISSUE_TYPE_BASE_FILTER:!0,ES_ISSUE_TYPES:!0,findKeyFrames:!0,interpolate:!0,interpolateMobile:!0,removeOutdated:!0,DELIGHTED_RESPONSES_REGEX:!0,WOOTRIC_RESPONSES_REGEX:!0,PlatformType:!0,REPLAY_TYPE:!0,ReplayType:!0,SDK_REPLAY_TYPE:!0,SDK_TYPE:!0,SDK_TYPE_TO_DISPLAY:!0,SESSION_TYPE_TO_DISPLAY:!0,STATUS_CODES:!0,getStatusText:!0,parseQueryString:!0,likeOperator:!0,scrollMapHistogramToPercent:!0,combineHashes:!0,hashString:!0,encodeUserTraitString:!0,parseUserTraitString:!0,IdentityStatus:!0,parseIdentityStatus:!0,scrubException:!0,MobileConstants:!0};Object.defineProperty(eo,"enhanceFunc",{enumerable:!0,get:function(){return eh.default}}),Object.defineProperty(eo,"shallowArsonify",{enumerable:!0,get:function(){return ep.default}}),Object.defineProperty(eo,"shallowDearsonify",{enumerable:!0,get:function(){return ef.default}}),Object.defineProperty(eo,"deepArsonify",{enumerable:!0,get:function(){return em.default}}),Object.defineProperty(eo,"deepDearsonify",{enumerable:!0,get:function(){return eg.default}}),Object.defineProperty(eo,"addListener",{enumerable:!0,get:function(){return ey.default}}),Object.defineProperty(eo,"protectFunc",{enumerable:!0,get:function(){return eC.default}}),Object.defineProperty(eo,"findIndex",{enumerable:!0,get:function(){return eS.default}}),Object.defineProperty(eo,"find",{enumerable:!0,get:function(){return e_.default}}),Object.defineProperty(eo,"flatten",{enumerable:!0,get:function(){return ew.default}}),Object.defineProperty(eo,"selectorMatches",{enumerable:!0,get:function(){return eA.default}}),Object.defineProperty(eo,"parseSelectorForMatch",{enumerable:!0,get:function(){return eI.default}}),Object.defineProperty(eo,"querySelectorWithShadowDom",{enumerable:!0,get:function(){return eR.default}}),Object.defineProperty(eo,"sendErrorTelemetry",{enumerable:!0,get:function(){return eT.default}}),Object.defineProperty(eo,"sendTelemetry",{enumerable:!0,get:function(){return eT.sendTelemetry}}),Object.defineProperty(eo,"sanitizeValue",{enumerable:!0,get:function(){return eE.default}}),Object.defineProperty(eo,"adjustOs",{enumerable:!0,get:function(){return eP.adjustOs}}),Object.defineProperty(eo,"adjustOsVersion",{enumerable:!0,get:function(){return eP.adjustOsVersion}}),Object.defineProperty(eo,"selectorFromNodePath",{enumerable:!0,get:function(){return ek.default}}),Object.defineProperty(eo,"startsWith",{enumerable:!0,get:function(){return eO.default}}),Object.defineProperty(eo,"endsWith",{enumerable:!0,get:function(){return eM.default}}),Object.defineProperty(eo,"contains",{enumerable:!0,get:function(){return eD.default}}),Object.defineProperty(eo,"uuid",{enumerable:!0,get:function(){return eU.default}}),Object.defineProperty(eo,"randomInt",{enumerable:!0,get:function(){return eL.default}}),Object.defineProperty(eo,"getCssRules",{enumerable:!0,get:function(){return eN.getCssRules}}),Object.defineProperty(eo,"getCssRule",{enumerable:!0,get:function(){return eN.getCssRule}}),Object.defineProperty(eo,"getNodeSelector",{enumerable:!0,get:function(){return eB.default}}),Object.defineProperty(eo,"getGraphQLOperation",{enumerable:!0,get:function(){return eF.default}}),Object.defineProperty(eo,"isSessionEvent",{enumerable:!0,get:function(){return ej.default}}),Object.defineProperty(eo,"isActivityEvent",{enumerable:!0,get:function(){return eG.default}}),Object.defineProperty(eo,"parseIntFromHex",{enumerable:!0,get:function(){return eH.default}}),Object.defineProperty(eo,"isRecordingSampled",{enumerable:!0,get:function(){return eK.default}}),Object.defineProperty(eo,"makeRecordingID",{enumerable:!0,get:function(){return ez.default}}),Object.defineProperty(eo,"setFromArray",{enumerable:!0,get:function(){return eW.default}}),Object.defineProperty(eo,"setToArray",{enumerable:!0,get:function(){return eV.default}}),Object.defineProperty(eo,"applyUrlSanitizer",{enumerable:!0,get:function(){return eJ.default}}),Object.defineProperty(eo,"maybeCleanSwiftUIClassName",{enumerable:!0,get:function(){return eY.default}}),Object.defineProperty(eo,"LOG_FILTER_TYPES",{enumerable:!0,get:function(){return e$.LOG_FILTER_TYPES}}),Object.defineProperty(eo,"LOG_TYPES",{enumerable:!0,get:function(){return e$.LOG_TYPES}}),Object.defineProperty(eo,"METRIC_TIMESERIES_TYPE",{enumerable:!0,get:function(){return eZ.METRIC_TIMESERIES_TYPE}}),Object.defineProperty(eo,"HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return eZ.HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(eo,"DEFAULT_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return eZ.DEFAULT_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(eo,"DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return eZ.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(eo,"SORT_DIRECTION",{enumerable:!0,get:function(){return eZ.SORT_DIRECTION}}),Object.defineProperty(eo,"FEEDBACK_SORT_COLUMN",{enumerable:!0,get:function(){return eZ.FEEDBACK_SORT_COLUMN}}),Object.defineProperty(eo,"METRIC_RETENTION_TYPE",{enumerable:!0,get:function(){return eZ.METRIC_RETENTION_TYPE}}),Object.defineProperty(eo,"ISSUE_TYPE",{enumerable:!0,get:function(){return eQ.ISSUE_TYPE}}),Object.defineProperty(eo,"ISSUE_GROUP_TYPE",{enumerable:!0,get:function(){return eQ.ISSUE_GROUP_TYPE}}),Object.defineProperty(eo,"ES_ISSUE_TYPE_BASE_FILTER",{enumerable:!0,get:function(){return eQ.ES_ISSUE_TYPE_BASE_FILTER}}),Object.defineProperty(eo,"ES_ISSUE_TYPES",{enumerable:!0,get:function(){return eQ.ES_ISSUE_TYPES}}),Object.defineProperty(eo,"findKeyFrames",{enumerable:!0,get:function(){return eX.default}}),Object.defineProperty(eo,"interpolate",{enumerable:!0,get:function(){return e0.default}}),Object.defineProperty(eo,"interpolateMobile",{enumerable:!0,get:function(){return e0.interpolateMobile}}),Object.defineProperty(eo,"removeOutdated",{enumerable:!0,get:function(){return e4.default}}),Object.defineProperty(eo,"DELIGHTED_RESPONSES_REGEX",{enumerable:!0,get:function(){return e6.DELIGHTED_RESPONSES_REGEX}}),Object.defineProperty(eo,"WOOTRIC_RESPONSES_REGEX",{enumerable:!0,get:function(){return e6.WOOTRIC_RESPONSES_REGEX}}),Object.defineProperty(eo,"PlatformType",{enumerable:!0,get:function(){return e5.PlatformType}}),Object.defineProperty(eo,"REPLAY_TYPE",{enumerable:!0,get:function(){return e8.REPLAY_TYPE}}),Object.defineProperty(eo,"ReplayType",{enumerable:!0,get:function(){return e8.ReplayType}}),Object.defineProperty(eo,"SDK_REPLAY_TYPE",{enumerable:!0,get:function(){return e7.SDK_REPLAY_TYPE}}),Object.defineProperty(eo,"SDK_TYPE",{enumerable:!0,get:function(){return e7.SDK_TYPE}}),Object.defineProperty(eo,"SDK_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return e7.SDK_TYPE_TO_DISPLAY}}),Object.defineProperty(eo,"SESSION_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return e7.SESSION_TYPE_TO_DISPLAY}}),Object.defineProperty(eo,"STATUS_CODES",{enumerable:!0,get:function(){return e9.STATUS_CODES}}),Object.defineProperty(eo,"getStatusText",{enumerable:!0,get:function(){return e9.getStatusText}}),Object.defineProperty(eo,"parseQueryString",{enumerable:!0,get:function(){return tr.parseQueryString}}),Object.defineProperty(eo,"likeOperator",{enumerable:!0,get:function(){return tn.likeOperator}}),Object.defineProperty(eo,"scrollMapHistogramToPercent",{enumerable:!0,get:function(){return ti.default}}),Object.defineProperty(eo,"combineHashes",{enumerable:!0,get:function(){return ta.combineHashes}}),Object.defineProperty(eo,"hashString",{enumerable:!0,get:function(){return ta.hashString}}),Object.defineProperty(eo,"encodeUserTraitString",{enumerable:!0,get:function(){return ts.encodeUserTraitString}}),Object.defineProperty(eo,"parseUserTraitString",{enumerable:!0,get:function(){return ts.parseUserTraitString}}),Object.defineProperty(eo,"IdentityStatus",{enumerable:!0,get:function(){return tc.IdentityStatus}}),Object.defineProperty(eo,"parseIdentityStatus",{enumerable:!0,get:function(){return tc.parseIdentityStatus}}),Object.defineProperty(eo,"scrubException",{enumerable:!0,get:function(){return tu.scrubException}}),eo.MobileConstants=void 0;var eh=ea(ei(/*! ./enhanceFunc */"./packages/@logrocket/utils/src/enhanceFunc.js")),ep=ea(ei(/*! ./shallowArsonify */"./packages/@logrocket/utils/src/shallowArsonify.js")),ef=ea(ei(/*! ./shallowDearsonify */"./packages/@logrocket/utils/src/shallowDearsonify.js")),em=ea(ei(/*! ./deepArsonify */"./packages/@logrocket/utils/src/deepArsonify.js")),eg=ea(ei(/*! ./deepDearsonify */"./packages/@logrocket/utils/src/deepDearsonify.js")),ey=ea(ei(/*! ./addListener */"./packages/@logrocket/utils/src/addListener.js")),eC=ea(ei(/*! ./protectFunc */"./packages/@logrocket/utils/src/protectFunc.js")),eS=ea(ei(/*! ./findIndex */"./packages/@logrocket/utils/src/findIndex.js")),e_=ea(ei(/*! ./find */"./packages/@logrocket/utils/src/find.js")),ew=ea(ei(/*! ./flatten */"./packages/@logrocket/utils/src/flatten.js")),eA=ea(ei(/*! ./selectorMatches */"./packages/@logrocket/utils/src/selectorMatches.js")),eI=ea(ei(/*! ./parseSelectorForMatch */"./packages/@logrocket/utils/src/parseSelectorForMatch.js")),eR=ea(ei(/*! ./querySelectorWithShadowDom */"./packages/@logrocket/utils/src/querySelectorWithShadowDom.js")),eT=_interopRequireWildcard(ei(/*! ./sendTelemetryData */"./packages/@logrocket/utils/src/sendTelemetryData.js")),eE=ea(ei(/*! ./sanitizeValue */"./packages/@logrocket/utils/src/sanitizeValue.js")),eP=ei(/*! ./adjustOsVersion */"./packages/@logrocket/utils/src/adjustOsVersion.ts"),ek=ea(ei(/*! ./selectorFromNodePath */"./packages/@logrocket/utils/src/selectorFromNodePath.js")),eO=ea(ei(/*! ./startsWith */"./packages/@logrocket/utils/src/startsWith.js")),eM=ea(ei(/*! ./endsWith */"./packages/@logrocket/utils/src/endsWith.js")),eD=ea(ei(/*! ./contains */"./packages/@logrocket/utils/src/contains.js")),eU=ea(ei(/*! ./uuid */"./packages/@logrocket/utils/src/uuid.js")),eL=ea(ei(/*! ./randomInt */"./packages/@logrocket/utils/src/randomInt.js")),eN=ei(/*! ./getCssRules */"./packages/@logrocket/utils/src/getCssRules.ts"),eB=ea(ei(/*! ./getNodeSelector */"./packages/@logrocket/utils/src/getNodeSelector.js")),eF=ea(ei(/*! ./getGraphQLOperation */"./packages/@logrocket/utils/src/getGraphQLOperation.js")),ej=ea(ei(/*! ./isSessionEvent */"./packages/@logrocket/utils/src/isSessionEvent.js")),eG=ea(ei(/*! ./isActivityEvent */"./packages/@logrocket/utils/src/isActivityEvent.js")),eH=ea(ei(/*! ./parseIntFromHex */"./packages/@logrocket/utils/src/parseIntFromHex.js")),eK=ea(ei(/*! ./isRecordingSampled */"./packages/@logrocket/utils/src/isRecordingSampled.js")),ez=ea(ei(/*! ./makeRecordingID */"./packages/@logrocket/utils/src/makeRecordingID.js")),eW=ea(ei(/*! ./setFromArray */"./packages/@logrocket/utils/src/setFromArray.js")),eV=ea(ei(/*! ./setToArray */"./packages/@logrocket/utils/src/setToArray.js")),eJ=ea(ei(/*! ./applyUrlSanitizer */"./packages/@logrocket/utils/src/applyUrlSanitizer.js")),eY=ea(ei(/*! ./maybeCleanSwiftUIClassName */"./packages/@logrocket/utils/src/maybeCleanSwiftUIClassName.ts")),e$=ei(/*! ./constants/logTypes */"./packages/@logrocket/utils/src/constants/logTypes.js"),eZ=ei(/*! ./constants/metrics */"./packages/@logrocket/utils/src/constants/metrics.js"),eQ=ei(/*! ./constants/issues */"./packages/@logrocket/utils/src/constants/issues.ts"),eX=ea(ei(/*! ./findKeyFrames */"./packages/@logrocket/utils/src/findKeyFrames.js")),e0=_interopRequireWildcard(ei(/*! ./interpolate */"./packages/@logrocket/utils/src/interpolate.js")),e4=ea(ei(/*! ./removeOutdated */"./packages/@logrocket/utils/src/removeOutdated.js")),e6=ei(/*! ./constants/nps */"./packages/@logrocket/utils/src/constants/nps.js"),e5=ei(/*! ./constants/platformTypes */"./packages/@logrocket/utils/src/constants/platformTypes.ts"),e8=ei(/*! ./constants/replayTypes */"./packages/@logrocket/utils/src/constants/replayTypes.ts"),e7=ei(/*! ./constants/sdkTypes */"./packages/@logrocket/utils/src/constants/sdkTypes.ts"),e9=ei(/*! ./constants/statusCodes */"./packages/@logrocket/utils/src/constants/statusCodes.ts"),tr=ei(/*! ./parseQueryString */"./packages/@logrocket/utils/src/parseQueryString.js"),tn=ei(/*! ./likeOperator */"./packages/@logrocket/utils/src/likeOperator.js"),ti=ea(ei(/*! ./scrollMapHistogramToPercent */"./packages/@logrocket/utils/src/scrollMapHistogramToPercent.js")),ta=ei(/*! ./hashString */"./packages/@logrocket/utils/src/hashString.js"),ts=ei(/*! ./userTraitStrings */"./packages/@logrocket/utils/src/userTraitStrings.ts"),tc=ei(/*! ./identityStatus */"./packages/@logrocket/utils/src/identityStatus.ts"),tu=ei(/*! ./scrubException */"./packages/@logrocket/utils/src/scrubException.ts"),td=_interopRequireWildcard(ei(/*! ./constants/mobile */"./packages/@logrocket/utils/src/constants/mobile.ts"));eo.MobileConstants=td;var tp=ei(/*! ./browserUtils */"./packages/@logrocket/utils/src/browserUtils.js");Object.keys(tp).forEach(function(et){!("default"===et||"__esModule"===et||Object.prototype.hasOwnProperty.call(ed,et))&&(et in eo&&eo[et]===tp[et]||Object.defineProperty(eo,et,{enumerable:!0,get:function(){return tp[et]}}))});var tf=ei(/*! ./isValidAppID */"./packages/@logrocket/utils/src/isValidAppID.ts");Object.keys(tf).forEach(function(et){!("default"===et||"__esModule"===et||Object.prototype.hasOwnProperty.call(ed,et))&&(et in eo&&eo[et]===tf[et]||Object.defineProperty(eo,et,{enumerable:!0,get:function(){return tf[et]}}))});var tm=ei(/*! ./requireValue */"./packages/@logrocket/utils/src/requireValue.ts");Object.keys(tm).forEach(function(et){!("default"===et||"__esModule"===et||Object.prototype.hasOwnProperty.call(ed,et))&&(et in eo&&eo[et]===tm[et]||Object.defineProperty(eo,et,{enumerable:!0,get:function(){return tm[et]}}))});var tg=ei(/*! ./types */"./packages/@logrocket/utils/src/types.ts");function _getRequireWildcardCache(et){if("function"!=typeof WeakMap)return null;var eo=new WeakMap,ei=new WeakMap;return(_getRequireWildcardCache=function(et){return et?ei:eo})(et)}function _interopRequireWildcard(et,eo){if(!eo&&et&&et.__esModule)return et;if(null===et||"object"!==eu(et)&&"function"!=typeof et)return{default:et};var ei=_getRequireWildcardCache(eo);if(ei&&ei.has(et))return ei.get(et);var ea={},ed=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var eh in et)if("default"!==eh&&Object.prototype.hasOwnProperty.call(et,eh)){var ep=ed?Object.getOwnPropertyDescriptor(et,eh):null;ep&&(ep.get||ep.set)?Object.defineProperty(ea,eh,ep):ea[eh]=et[eh]}return ea.default=et,ei&&ei.set(et,ea),ea}Object.keys(tg).forEach(function(et){!("default"===et||"__esModule"===et||Object.prototype.hasOwnProperty.call(ed,et))&&(et in eo&&eo[et]===tg[et]||Object.defineProperty(eo,et,{enumerable:!0,get:function(){return tg[et]}}))})},"./packages/@logrocket/utils/src/interpolate.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=interpolate,eo.interpolateMobile=interpolateMobile;var eu=ea(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js"));function _createForOfIteratorHelper(et,eo){var ei="undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(!ei){if(Array.isArray(et)||(ei=_unsupportedIterableToArray(et))||eo&&et&&"number"==typeof et.length){ei&&(et=ei);var ea=0,F=function(){};return{s:F,n:function(){return ea>=et.length?{done:!0}:{done:!1,value:et[ea++]}},e:function(et){throw et},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var eu,ed=!0,eh=!1;return{s:function(){ei=ei.call(et)},n:function(){var et=ei.next();return ed=et.done,et},e:function(et){eh=!0,eu=et},f:function(){try{ed||null==ei.return||ei.return()}finally{if(eh)throw eu}}}}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eu.default)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function interpolate(et,eo){if(!et)return{};var ei,ea=et.prev,eu=et.next,ed=et.ratio,eh=_objectSpread({},eu),ep=_createForOfIteratorHelper(eo);try{for(ep.s();!(ei=ep.n()).done;){var ef=ei.value;eh[ef]=ea[ef]+(eu[ef]-ea[ef])*ed}}catch(et){ep.e(et)}finally{ep.f()}return eh}function interpolateMobile(et,eo,ei){if(!et)return{};var ea=et.prev,eu=et.next;return"MOVE"===eu.type?interpolate(et,eo):ea===eu&&Math.abs(ei-eu.time)>500?null:eu}},"./packages/@logrocket/utils/src/isActivityEvent.js":function(et,eo){"use strict";function isActivityEvent(et){return["lr.browser.MouseEvent","lr.browser.ScrollEvent","lr.browser.InputEvent","lr.browser.InputChangeEvent","lr.android.TouchEvent","lr.android.InputChangeEvent","lr.ios.TouchEvent","lr.ios.InputChangeEvent"].indexOf(et)>-1}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=isActivityEvent},"./packages/@logrocket/utils/src/isRecordingSampled.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=isRecordingSampled;var eu=ea(ei(/*! ./parseIntFromHex */"./packages/@logrocket/utils/src/parseIntFromHex.js")),ed=1e4;function isRecordingSampled(et,eo){if(eo<=0)return!1;var ei=Math.floor(eo*ed);return(0,eu.default)(et)%ed<=ei}},"./packages/@logrocket/utils/src/isSessionEvent.js":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=isSessionEvent;var ei=["lr.browser.NavigationEvent","lr.browser.InputChangeEvent","lr.browser.InputEvent"];function isSessionEvent(et){return ei.indexOf(et.type)>-1||"CLICK"===et.data.eventType}},"./packages/@logrocket/utils/src/isValidAppID.ts":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.isValidAppID=isValidAppID;var ei=/^[a-z0-9_-]+\/[a-z0-9_-]+$/;function isValidAppID(et){return"string"==typeof et&&ei.test(et)}},"./packages/@logrocket/utils/src/likeOperator.js":function(et,eo){"use strict";function likeOperator(et,eo){var ei=eo.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\*/g,".*").replace(/\\\?/g,".");return new RegExp("^".concat(ei,"$")).test(et)}Object.defineProperty(eo,"__esModule",{value:!0}),eo.likeOperator=likeOperator},"./packages/@logrocket/utils/src/logError.js":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var ei="undefined"!=typeof console&&console.error&&console.error.bind?console.error.bind(console):function(){};eo.default=ei},"./packages/@logrocket/utils/src/makeRecordingID.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=makeRecordingID;var eu=ea(ei(/*! ./uuid */"./packages/@logrocket/utils/src/uuid.js"));function makeRecordingID(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=et.prefix,ei=void 0===eo?5:eo;return"".concat(ei,"-").concat((0,eu.default)())}},"./packages/@logrocket/utils/src/mapValues.js":function(et,eo){"use strict";function mapValues(et,eo){if(null==et)return{};var ei={};return Object.keys(et).forEach(function(ea){ei[ea]=eo(et[ea])}),ei}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=mapValues},"./packages/@logrocket/utils/src/maybeCleanSwiftUIClassName.ts":function(et,eo){"use strict";function maybeCleanSwiftUIClassName(et){return et?et.replace(/</g,"%3c").replace(/>/g,"%3e").replace(/\s/g,""):""}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=maybeCleanSwiftUIClassName},"./packages/@logrocket/utils/src/parseIntFromHex.js":function(et,eo){"use strict";function parseIntFromHex(et){var eo=et.replace(/[^0-9a-f]/g,"");return parseInt("0x".concat(eo),16)||0}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=parseIntFromHex},"./packages/@logrocket/utils/src/parseQueryString.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.parseQueryString=void 0;var eu=ea(ei(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js")),parseSearchParams=function(et){var eo={};return et.split("&").forEach(function(et){var ei=et.split("=").map(function(et){return et.replace(/\+/g," ")}).map(decodeURIComponent),ea=(0,eu.default)(ei,2),ed=ea[0],eh=ea[1];eo[ed]=eh}),eo},parseQueryString=function(et){var eo=et.indexOf("?");return -1===eo?{}:parseSearchParams(et.substring(eo+1))};eo.parseQueryString=parseQueryString},"./packages/@logrocket/utils/src/parseSelectorForMatch.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=parseSelectorForMatch;var eu=ea(ei(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js")),ed=ea(ei(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js")),eh=ea(ei(/*! ./startsWith */"./packages/@logrocket/utils/src/startsWith.js")),ep="~",ef=":nth-child(";function parseSelectorForMatch(et){return et.replace(/\s*>\s*|:nth-child\(([1-9][0-9]*|odd|even)\)|\s+/gi,function(et){return et.indexOf(">")>-1?" >":0===et.trim().length?" ":"".concat(ep).concat(et.slice(ef.length))}).split(/\s+/).map(function(et){var eo={},ei=et;if(">"===ei.charAt(0)&&(eo.directDesc=!0,ei=ei.slice(1)),(ei=ei.replace(/^([a-z0-9-_]+)/ig,function(et){return eo.nodeName=et,""})).charAt(0)===ep){var ea=ei.slice(1).split(")"),ef=(0,ed.default)(ea,2),em=ef[0],eg=ef[1];eo.nthChild=em,ei=eg}return ei.replace(/\.|#/gi,function(et){return" ".concat(et)}).trim().split(" ").forEach(function(et){if((0,eh.default)(et,".")){var ei=et.slice(1);eo.classList=eo.classList?[].concat((0,eu.default)(eo.classList),[ei]):[ei]}else(0,eh.default)(et,"#")&&(eo.id=et.slice(1))}),eo})}},"./packages/@logrocket/utils/src/protectFunc.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=protectFunc;var eu=ea(ei(/*! ./sendTelemetryData */"./packages/@logrocket/utils/src/sendTelemetryData.js")),ed=ea(ei(/*! ./logError */"./packages/@logrocket/utils/src/logError.js"));function protectFunc(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){var ei;try{ei=et.apply(void 0,arguments)}catch(et){if("undefined"!=typeof window&&window._lrdebug)throw et;var ea=eo(et);(0,ed.default)("LogRocket",et),(0,eu.default)(et,ea)}return ei}}},"./packages/@logrocket/utils/src/querySelectorWithShadowDom.js":function(et,eo){"use strict";function _createForOfIteratorHelper(et,eo){var ei="undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(!ei){if(Array.isArray(et)||(ei=_unsupportedIterableToArray(et))||eo&&et&&"number"==typeof et.length){ei&&(et=ei);var ea=0,F=function(){};return{s:F,n:function(){return ea>=et.length?{done:!0}:{done:!1,value:et[ea++]}},e:function(et){throw et},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var eu,ed=!0,eh=!1;return{s:function(){ei=ei.call(et)},n:function(){var et=ei.next();return ed=et.done,et},e:function(et){eh=!0,eu=et},f:function(){try{ed||null==ei.return||ei.return()}finally{if(eh)throw eu}}}}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=querySelectorWithShadowDom,eo.caseInsensitiveQuerySelector=void 0;var getMatchingChildren=function(et){var eo=et.root,ei=et.selectorList,ea=et.directDesc,eu=ei[0].split(/(?=\.)|(?=#)/),ed=eu.shift(),eh="",ep=[];eu.forEach(function(et){"#"===et[0]&&(eh=et.toLowerCase().substring(1).trim()),"."===et[0]&&ep.push(et.toLowerCase().substring(1).trim())});var ef,em=[],eg=_createForOfIteratorHelper(ea?[eo.querySelector(":scope > ".concat(ed))]:eo.querySelectorAll(ed));try{var _loop=function(){var et=ef.value;if(!et||eh!==et.id.toLowerCase())return"continue";var eo=Array.from(et.classList.values()).map(function(et){return et.toLowerCase()}).filter(function(et){return""!==et&&":"!==et[0]});if(!ep.every(function(et){return eo.indexOf(et)>-1}))return"continue";em.push(et)};for(eg.s();!(ef=eg.n()).done;){var ey=_loop();if("continue"===ey)continue}}catch(et){eg.e(et)}finally{eg.f()}return em},caseInsensitiveQuerySelector=function(et,eo){if(!eo.length||!(ea=et.host?et:et.querySelector("body")))return null;for(var ei=[{matches:[ea],selectorList:eo.split(" > "),directDesc:!1}];ei.length;){var ea,eu,ed=ei.shift(),eh=ed.matches,ep=ed.selectorList,ef=ed.directDesc,em=_createForOfIteratorHelper(eh);try{for(em.s();!(eu=em.n()).done;){var eg=eu.value,ey=getMatchingChildren({root:eg,selectorList:ep,directDesc:ef});if(ey.length&&1===ep.length)return ey[0];ey.length&&ei.push({matches:ey,selectorList:ep.slice(1),directDesc:!0})}}catch(et){em.e(et)}finally{em.f()}}return null};function querySelectorWithShadowDom(et,eo){if(eo.startsWith("$shadow-root >"))throw Error("Malformed selector '".concat(eo,"': should not start with $shadow-root"));eo.endsWith("> $shadow-root")&&(eo=eo.slice(0,eo.length-14));for(var ei,ea=et,eu=eo.split("> $shadow-root >"),ed=0;ed<eu.length;ed++)if((ei=caseInsensitiveQuerySelector(ea,eu[ed]))&&ed<eu.length-1){if(ei.shadowRoot)ea=ei.shadowRoot;else throw Error("Missing shadowRoot for selector '".concat(eo,"' at depth ").concat(ed))}return{root:ea,node:ei}}eo.caseInsensitiveQuerySelector=caseInsensitiveQuerySelector},"./packages/@logrocket/utils/src/randomInt.js":function(et,eo){"use strict";function randomInt(et,eo){var ei=Math.ceil(et);return Math.floor(Math.random()*(Math.floor(eo)-ei))+ei}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=randomInt},"./packages/@logrocket/utils/src/removeOutdated.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=removeOutdated;var eu=ea(ei(/*! lodash/sortedLastIndexBy */"./packages/@logrocket/utils/node_modules/lodash/sortedLastIndexBy.js")),ed=5e3;function removeOutdated(et,eo){if(0===et.length)return et;var ei=(0,eu.default)(et,{time:eo.time-ed},"time")-1,ea=et[ei];return ea&&eo.time-ea.time>ed&&ei>0?et.slice(ei):et}},"./packages/@logrocket/utils/src/requireValue.ts":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.requireValue=void 0;var requireValue=function(et){if(void 0===et)throw Error("Value must not be undefined.");return et};eo.requireValue=requireValue},"./packages/@logrocket/utils/src/sanitizeValue.js":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=sanitizeValue;var _replaceWithLipsum=function(et){for(var eo="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ",ei=Math.ceil(et.length/eo.length),ea="";ei>0;)ea+=eo,ei--;return ea.slice(0,et.length)};function sanitizeValue(et,eo){var ei=String(et);return"lipsum"===String(eo).toLowerCase()?_replaceWithLipsum(ei):""}},"./packages/@logrocket/utils/src/scrollMapHistogramToPercent.js":function(et,eo){"use strict";function scrollMapHistogramToPercent(et,eo){for(var ei=[],ea=et.reduce(function(et,eo){return et+eo.count},0),eu=0,ed=1;ed<=100;ed++){var eh=eo*(.01*ed);eu>=et.length?ei.push(0):(ei.push(ea),eh>et[eu].maxScroll&&(ea-=et[eu].count,eu++))}return ei}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=scrollMapHistogramToPercent},"./packages/@logrocket/utils/src/scrubException.ts":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.scrubException=scrubException;var eu=ea(ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"));function _createForOfIteratorHelper(et,eo){var ei="undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(!ei){if(Array.isArray(et)||(ei=_unsupportedIterableToArray(et))||eo&&et&&"number"==typeof et.length){ei&&(et=ei);var ea=0,F=function(){};return{s:F,n:function(){return ea>=et.length?{done:!0}:{done:!1,value:et[ea++]}},e:function(et){throw et},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var eu,ed=!0,eh=!1;return{s:function(){ei=ei.call(et)},n:function(){var et=ei.next();return ed=et.done,et},e:function(et){eh=!0,eu=et},f:function(){try{ed||null==ei.return||ei.return()}finally{if(eh)throw eu}}}}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}function isScalar(et){return/boolean|number|string/.test((0,eu.default)(et))}var ed=["level","logger"],eh=["tags","extra"];function scrubException(et,eo){if(eo){var ei,ea=_createForOfIteratorHelper(ed);try{for(ea.s();!(ei=ea.n()).done;){var eu=ei.value,ep=eo[eu];isScalar(ep)&&(et[eu]=ep.toString())}}catch(et){ea.e(et)}finally{ea.f()}var ef,em=_createForOfIteratorHelper(eh);try{for(em.s();!(ef=em.n()).done;){for(var eg=ef.value,ey=eo[eg]||{},eC={},eS=0,e_=Object.keys(ey);eS<e_.length;eS++){var ew=e_[eS],eA=ey[ew];isScalar(eA)&&(eC[ew.toString()]=eA.toString())}et[eg]=eC}}catch(et){em.e(et)}finally{em.f()}}}},"./packages/@logrocket/utils/src/selectorFromNodePath.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=selectorFromNodePath;var eu=ea(ei(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js"));function _createForOfIteratorHelper(et,eo){var ei="undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(!ei){if(Array.isArray(et)||(ei=_unsupportedIterableToArray(et))||eo&&et&&"number"==typeof et.length){ei&&(et=ei);var ea=0,F=function(){};return{s:F,n:function(){return ea>=et.length?{done:!0}:{done:!1,value:et[ea++]}},e:function(et){throw et},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var eu,ed=!0,eh=!1;return{s:function(){ei=ei.call(et)},n:function(){var et=ei.next();return ed=et.done,et},e:function(et){eh=!0,eu=et},f:function(){try{ed||null==ei.return||ei.return()}finally{if(eh)throw eu}}}}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}function selectorFromNodePath(){var et,eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],ei=[],ea=_createForOfIteratorHelper((0,eu.default)(eo).reverse());try{var _loop=function(){var eo=et.value,ea=eo.nodeName,ed=eo.id,eh=eo.nthChild,ep=eo.classList,ef=[],em=[];eh&&em.push("nth-child(".concat(eh,")")),ea&&(ef.push(ea),em.sort().map(function(et){return ef.push(":".concat(et))})),ed&&ef.push("#".concat(ed.replaceAll(".","\\."))),ep&&ep.length&&(ep=ep.map(function(et){return et.toLowerCase()}).sort(),ef=[].concat((0,eu.default)(ef),(0,eu.default)(ep.map(function(et){return".".concat(et.replaceAll(".","\\."))})))),ef.length&&ei.push(ef.join(" "))};for(ea.s();!(et=ea.n()).done;)_loop()}catch(et){ea.e(et)}finally{ea.f()}return ei.join(" > ")}},"./packages/@logrocket/utils/src/selectorMatches.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=selectorMatches;var eu=ea(ei(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js")),ed=ea(ei(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js")),eh=ea(ei(/*! ./findIndex */"./packages/@logrocket/utils/src/findIndex.js"));function _createForOfIteratorHelper(et,eo){var ei="undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(!ei){if(Array.isArray(et)||(ei=_unsupportedIterableToArray(et))||eo&&et&&"number"==typeof et.length){ei&&(et=ei);var ea=0,F=function(){};return{s:F,n:function(){return ea>=et.length?{done:!0}:{done:!1,value:et[ea++]}},e:function(et){throw et},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var eu,ed=!0,eh=!1;return{s:function(){ei=ei.call(et)},n:function(){var et=ei.next();return ed=et.done,et},e:function(et){eh=!0,eu=et},f:function(){try{ed||null==ei.return||ei.return()}finally{if(eh)throw eu}}}}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}function nodesMatch(et,eo){if(!(et&&eo)||et.id&&et.id!==eo.id||et.nodeName&&et.nodeName!==eo.nodeName||et.classList&&(!eo.classList||et.classList.map(function(et){return et.toLowerCase()}).some(function(et){return -1===eo.classList.map(function(et){return et.toLowerCase()}).indexOf(et)})))return!1;if(et.nthChild){var ei=parseInt(et.nthChild,10);return isNaN(ei)?Math.abs(eo.nthChild%2)===("odd"===et.nthChild?1:0):ei===eo.nthChild}return!0}function selectorMatches(et,eo){var ei,ea,ep=et.slice(0).reverse(),ef=_createForOfIteratorHelper(eo);try{var _loop=function(){var et=ea.value;return et.directDesc?nodesMatch.apply(void 0,[et].concat((0,eu.default)(ep.splice(0,1))))?"continue":{v:!1}:(ei=(0,eh.default)(ep,function(eo){return nodesMatch(et,eo)}),-1===ei)?{v:!1}:void ep.splice(0,ei+1)};for(ef.s();!(ea=ef.n()).done;){var em=_loop();if("continue"!==em&&"object"===(0,ed.default)(em))return em.v}}catch(et){ef.e(et)}finally{ef.f()}return!0}},"./packages/@logrocket/utils/src/sendTelemetryData.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.sendTelemetry=sendTelemetry,eo.default=sendErrorTelemetry;var eu=ea(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),ed=ea(ei(/*! ./logError */"./packages/@logrocket/utils/src/logError.js")),eh=ea(ei(/*! ./TraceKit */"./packages/@logrocket/utils/src/TraceKit.js"));function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eu.default)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}var ep="e61d691ee9b4d58762e823e42ca861a51c993e8f";function _sendToSentry(et){var eo=window._lrXMLHttpRequest||XMLHttpRequest;try{var ei=new eo,ea=et.message,eu="https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793";ei.open("POST",eu),ei.send(JSON.stringify(_objectSpread({message:ea,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":"undefined"!=typeof navigator&&navigator.userAgent},url:"undefined"!=typeof location&&location.href},release:ep,environment:"test"},et)))}catch(et){(0,ed.default)("Failed to send",et)}}function sendTelemetry(et,eo){if("undefined"!=typeof window&&window._lrdebug)return void(0,ed.default)(et);eo&&eo.extra&&eo.extra.appID&&"function"==typeof eo.extra.appID.indexOf&&0===eo.extra.appID.indexOf("au2drp/")&&Math.random()>=.25||_sendToSentry(_objectSpread({message:et},eo))}function sendErrorTelemetry(et,eo){try{var ei,ea,eu=et.message;try{ei=JSON.stringify(eo).slice(0,1e3)}catch(et){try{ei="Could not stringify payload: ".concat(Object.prototype.toString.call(eo))}catch(et){}}try{ea=eh.default.computeStackTrace(et).stack.map(function(et){return{filename:et.url,lineno:et.line,colno:et.column,function:et.func||"?"}})}catch(et){}_sendToSentry({message:eu,extra:{stringPayload:ei},exception:{values:[{type:et.type,value:eu,stacktrace:{frames:ea}}]}})}catch(et){(0,ed.default)("Failed to send",et)}}},"./packages/@logrocket/utils/src/setFromArray.js":function(et,eo){"use strict";function setFromArray(et){var eo=new Set;return et.forEach(function(et){return eo.add(et)}),eo}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=setFromArray},"./packages/@logrocket/utils/src/setToArray.js":function(et,eo){"use strict";function setToArray(et){var eo=[];return et.forEach(function(et){return eo.push(et)}),eo}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=setToArray},"./packages/@logrocket/utils/src/shallowArsonify.js":function(et,eo){"use strict";function shallowArsonify(et){var eo=({}).toString.call(et);switch(eo){case"[object Undefined]":return{undefined:{}};case"[object Null]":return{null:{}};case"[object Boolean]":return{boolean:{bool:et}};case"[object Number]":return{number:{double:et}};case"[object String]":return{string:{string:et}};case"[object Object]":return{object:{map:et}};case"[object Array]":return{array:{map:et}};case"[object Date]":return{date:{double:et.getTime()}};case"[object Error]":return{string:{string:"".concat(et.name,": ").concat(et.message)}};default:return{unsupported:{type:eo}}}}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=shallowArsonify},"./packages/@logrocket/utils/src/shallowDearsonify.js":function(et,eo){"use strict";function shallowDearsonify(et){switch(et.type||Object.keys(et)[0]){case"undefined":return;case"null":return null;case"boolean":return et.boolean.bool;case"number":return et.number.double;case"string":return et.string.string;case"object":return et.object.map;case"array":return Object.keys(et.array.map).reduce(function(eo,ei){return eo[ei]=et.array.map[ei],eo},[]);case"date":return new Date(et.date.double);case"unsupported":return et.unsupported.type;default:throw TypeError("Unexpected value in shallowDearsonify: ".concat(et))}}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=shallowDearsonify},"./packages/@logrocket/utils/src/startsWith.js":function(et,eo){"use strict";function startsWith(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return et&&eo&&et.substring(ei,ei+eo.length)===eo}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=startsWith},"./packages/@logrocket/utils/src/types.ts":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0})},"./packages/@logrocket/utils/src/userTraitStrings.ts":function(et,eo){"use strict";Object.defineProperty(eo,"__esModule",{value:!0}),eo.parseUserTraitString=eo.encodeUserTraitString=void 0;var ei=":",ea="\x1a",encodeUserTraitString=function(){for(var et=arguments.length,eo=Array(et),eu=0;eu<et;eu++)eo[eu]=arguments[eu];return eo.map(function(et){return et.replace(RegExp(ei,"g"),ea)}).join(ei)};eo.encodeUserTraitString=encodeUserTraitString;var parseUserTraitString=function(et){return(et||ei).split(ei).map(function(et){return et.replace(RegExp(ea,"g"),ei)})};eo.parseUserTraitString=parseUserTraitString},"./packages/@logrocket/utils/src/uuid.js":function(et,eo){"use strict";function uuid(et){return et?(et^16*Math.random()>>et/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,uuid)}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=uuid},"./packages/logrocket/src/LogRocket.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=eo.MAX_QUEUE_SIZE=void 0;var eu=ea(ei(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js")),ed=ea(ei(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js")),eh=ea(ei(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js")),ep=ea(ei(/*! @babel/runtime/helpers/objectWithoutProperties */"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),ef=ea(ei(/*! @logrocket/network */"./packages/@logrocket/network/src/index.js")),em=ei(/*! @logrocket/exceptions */"./packages/@logrocket/exceptions/src/index.js"),eg=ea(ei(/*! @logrocket/console */"./packages/@logrocket/console/src/index.js")),ey=ei(/*! @logrocket/redux */"./packages/@logrocket/redux/src/index.js");function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eh.default)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}var eC=1e3;eo.MAX_QUEUE_SIZE=eC;var considerIngestServerOption=function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=et.ingestServer,ei=(0,ep.default)(et,["ingestServer"]);return eo?_objectSpread({serverURL:"".concat(eo,"/i"),statsURL:"".concat(eo,"/s")},ei):ei},eS=function(){function LogRocket(){var et=this;(0,eu.default)(this,LogRocket),this._buffer=[],["log","info","warn","error","debug"].forEach(function(eo){et[eo]=function(){for(var ei=arguments.length,ea=Array(ei),eu=0;eu<ei;eu++)ea[eu]=arguments[eu];et.addEvent("lr.core.LogEvent",function(){var ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"error"===eo&&ei.shouldAggregateConsoleErrors&&em.Capture.captureMessage(et,ea[0],ea,{},!0),{logLevel:eo.toUpperCase(),args:ea}},{shouldCaptureStackTrace:!0})}}),this._isInitialized=!1,this._installed=[],window._lr_surl_cb=this.getSessionURL.bind(this)}return(0,ed.default)(LogRocket,[{key:"addEvent",value:function(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ea=Date.now();this._run(function(eu){eu.addEvent(et,eo,_objectSpread(_objectSpread({},ei),{},{timeOverride:ea}))})}},{key:"onLogger",value:function(et){for(this._logger=et;this._buffer.length>0;)this._buffer.shift()(this._logger)}},{key:"_run",value:function(et){if(!this._isDisabled){if(this._logger)et(this._logger);else{if(this._buffer.length>=eC){this._isDisabled=!0,console.warn("LogRocket: script did not load. Check that you have a valid network connection."),this.uninstall();return}this._buffer.push(et.bind(this))}}}},{key:"init",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._isInitialized){var ei=eo.shouldAugmentNPS,ea=void 0===ei||ei,eu=eo.shouldParseXHRBlob,ed=void 0!==eu&&eu,eh=eo.shouldDetectExceptions;(void 0===eh||eh)&&this._installed.push((0,em.registerExceptions)(this)),this._installed.push((0,ef.default)(this,{shouldAugmentNPS:!!ea,shouldParseXHRBlob:!!ed})),this._installed.push((0,eg.default)(this)),this._isInitialized=!0,this._run(function(ei){ei.init(et,considerIngestServerOption(eo))})}}},{key:"start",value:function(){this._run(function(et){et.start()})}},{key:"uninstall",value:function(){this._installed.forEach(function(et){return et()}),this._buffer=[],this._run(function(et){et.uninstall()})}},{key:"identify",value:function(et,eo){this._run(function(ei){ei.identify(et,eo)})}},{key:"startNewSession",value:function(){this._run(function(et){et.startNewSession()})}},{key:"track",value:function(et,eo){this._run(function(ei){ei.track(et,eo)})}},{key:"getSessionURL",value:function(et){if("function"!=typeof et)throw Error("LogRocket: must pass callback to getSessionURL()");this._run(function(eo){eo.getSessionURL?eo.getSessionURL(et):et(eo.recordingURL)})}},{key:"trackScrollEvent",value:function(et){this._logger&&this._logger.trackScrollEvent(et)}},{key:"getVersion",value:function(et){this._run(function(eo){et(eo.version)})}},{key:"captureMessage",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};em.Capture.captureMessage(this,et,[et],eo)}},{key:"captureException",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};em.Capture.captureException(this,et,eo)}},{key:"version",get:function(){return this._logger&&this._logger.version}},{key:"sessionURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingID",get:function(){return this._logger&&this._logger.recordingID}},{key:"threadID",get:function(){return this._logger&&this._logger.threadID}},{key:"tabID",get:function(){return this._logger&&this._logger.tabID}},{key:"reduxEnhancer",value:function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.createEnhancer)(this,et)}},{key:"reduxMiddleware",value:function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ey.createMiddleware)(this,et)}},{key:"isDisabled",get:function(){return!!(this._isDisabled||this._logger&&this._logger._isDisabled)}}]),LogRocket}();eo.default=eS},"./packages/logrocket/src/makeLogRocket.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=makeLogRocket;var eu=ea(ei(/*! ./LogRocket */"./packages/logrocket/src/LogRocket.js")),ed="LogRocket does not yet support React Native.",makeNoopPolyfill=function(){return{init:function(){},uninstall:function(){},log:function(){},info:function(){},warn:function(){},error:function(){},debug:function(){},addEvent:function(){},identify:function(){},start:function(){},get threadID(){return null},get recordingID(){return null},get recordingURL(){return null},reduxEnhancer:function(){return function(et){return function(){return et.apply(void 0,arguments)}}},reduxMiddleware:function(){return function(){return function(et){return function(eo){return et(eo)}}}},track:function(){},getSessionURL:function(){},getVersion:function(){},startNewSession:function(){},onLogger:function(){},setClock:function(){},captureMessage:function(){},captureException:function(){}}};function makeLogRocket(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)throw Error(ed);if("undefined"!=typeof window){if(window._disableLogRocket)return makeNoopPolyfill();if(window.MutationObserver&&window.WeakMap){window._lrMutationObserver=window.MutationObserver;var eo=new eu.default;return et(eo),eo}}return makeNoopPolyfill()}},"./packages/logrocket/src/setup.js":function(et,eo,ei){"use strict";var ea=ei(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=setup;var eu=ea(ei(/*! @babel/runtime/helpers/objectWithoutProperties */"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),ed=ea(ei(/*! ./makeLogRocket */"./packages/logrocket/src/makeLogRocket.js")),eh={"cdn.logrocket.io":"https://r.logrocket.io","cdn.lr-ingest.io":"https://r.lr-ingest.io","cdn.lr-in.com":"https://r.lr-in.com","cdn.lr-in-prod.com":"https://r.lr-in-prod.com","cdn.lr-ingest.com":"https://r.lr-ingest.com","cdn.ingest-lr.com":"https://r.ingest-lr.com","cdn.lr-intake.com":"https://r.lr-intake.com","cdn.intake-lr.com":"https://r.intake-lr.com","cdn.logr-ingest.com":"https://r.logr-ingest.com","cdn-staging.logrocket.io":"https://staging-i.logrocket.io","cdn-staging.lr-ingest.io":"https://staging-i.lr-ingest.io","cdn-staging.lr-in.com":"https://staging-i.lr-in.com","cdn-staging.lr-in-prod.com":"https://staging-i.lr-in-prod.com","cdn-staging.lr-ingest.com":"https://staging-i.lr-ingest.com","cdn-staging.ingest-lr.com":"https://staging-i.ingest-lr.com","cdn-staging.lr-intake.com":"https://staging-i.lr-intake.com","cdn-staging.intake-lr.com":"https://staging-i.intake-lr.com","cdn-staging.logr-ingest.com":"https://staging-i.logr-ingest.com"};function setup(){var et,eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ei=eo.enterpriseServer,ea=eo.sdkVersion,ep=void 0===ea?"8.1.0":ea,ef=(0,eu.default)(eo,["enterpriseServer","sdkVersion"]),em="https://cdn.logrocket.io";if("script"===ep)try{var eg=document.currentScript.src.match(/^(https?:\/\/([^\\]+))\/.+$/),ey=eg&&eg[2];ey&&eh[ey]&&(em=eg&&eg[1],et=eh[ey])}catch(et){}else em="https://cdn.logr-ingest.com",et="https://r.logr-ingest.com";var eC=ef.sdkServer||ei,eS=ef.ingestServer||ei||et,e_=(0,ed.default)(function(){var et=document.createElement("script");eS&&(void 0===window.__SDKCONFIG__&&(window.__SDKCONFIG__={}),window.__SDKCONFIG__.serverURL="".concat(eS,"/i"),window.__SDKCONFIG__.statsURL="".concat(eS,"/s")),eC?et.src="".concat(eC,"/logger.min.js"):window.__SDKCONFIG__&&window.__SDKCONFIG__.loggerURL?et.src=window.__SDKCONFIG__.loggerURL:window._lrAsyncScript?et.src=window._lrAsyncScript:et.src="".concat(em,"/logger-1.min.js"),et.async=!0,document.head.appendChild(et),et.onload=function(){"function"==typeof window._LRLogger?e_.onLogger(new window._LRLogger({sdkVersion:ep})):(console.warn("LogRocket: script execution has been blocked by a product or service."),e_.uninstall())},et.onerror=function(){console.warn("LogRocket: script could not load. Check that you have a valid network connection."),e_.uninstall()}});return e_}},"./packages/@logrocket/utils/node_modules/lodash/_DataView.js":function(et,eo,ei){var ea=ei(/*! ./_getNative */"./packages/@logrocket/utils/node_modules/lodash/_getNative.js")(ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js"),"DataView");et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_Hash.js":function(et,eo,ei){var ea=ei(/*! ./_hashClear */"./packages/@logrocket/utils/node_modules/lodash/_hashClear.js"),eu=ei(/*! ./_hashDelete */"./packages/@logrocket/utils/node_modules/lodash/_hashDelete.js"),ed=ei(/*! ./_hashGet */"./packages/@logrocket/utils/node_modules/lodash/_hashGet.js"),eh=ei(/*! ./_hashHas */"./packages/@logrocket/utils/node_modules/lodash/_hashHas.js"),ep=ei(/*! ./_hashSet */"./packages/@logrocket/utils/node_modules/lodash/_hashSet.js");function Hash(et){var eo=-1,ei=null==et?0:et.length;for(this.clear();++eo<ei;){var ea=et[eo];this.set(ea[0],ea[1])}}Hash.prototype.clear=ea,Hash.prototype.delete=eu,Hash.prototype.get=ed,Hash.prototype.has=eh,Hash.prototype.set=ep,et.exports=Hash},"./packages/@logrocket/utils/node_modules/lodash/_ListCache.js":function(et,eo,ei){var ea=ei(/*! ./_listCacheClear */"./packages/@logrocket/utils/node_modules/lodash/_listCacheClear.js"),eu=ei(/*! ./_listCacheDelete */"./packages/@logrocket/utils/node_modules/lodash/_listCacheDelete.js"),ed=ei(/*! ./_listCacheGet */"./packages/@logrocket/utils/node_modules/lodash/_listCacheGet.js"),eh=ei(/*! ./_listCacheHas */"./packages/@logrocket/utils/node_modules/lodash/_listCacheHas.js"),ep=ei(/*! ./_listCacheSet */"./packages/@logrocket/utils/node_modules/lodash/_listCacheSet.js");function ListCache(et){var eo=-1,ei=null==et?0:et.length;for(this.clear();++eo<ei;){var ea=et[eo];this.set(ea[0],ea[1])}}ListCache.prototype.clear=ea,ListCache.prototype.delete=eu,ListCache.prototype.get=ed,ListCache.prototype.has=eh,ListCache.prototype.set=ep,et.exports=ListCache},"./packages/@logrocket/utils/node_modules/lodash/_Map.js":function(et,eo,ei){var ea=ei(/*! ./_getNative */"./packages/@logrocket/utils/node_modules/lodash/_getNative.js")(ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js"),"Map");et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_MapCache.js":function(et,eo,ei){var ea=ei(/*! ./_mapCacheClear */"./packages/@logrocket/utils/node_modules/lodash/_mapCacheClear.js"),eu=ei(/*! ./_mapCacheDelete */"./packages/@logrocket/utils/node_modules/lodash/_mapCacheDelete.js"),ed=ei(/*! ./_mapCacheGet */"./packages/@logrocket/utils/node_modules/lodash/_mapCacheGet.js"),eh=ei(/*! ./_mapCacheHas */"./packages/@logrocket/utils/node_modules/lodash/_mapCacheHas.js"),ep=ei(/*! ./_mapCacheSet */"./packages/@logrocket/utils/node_modules/lodash/_mapCacheSet.js");function MapCache(et){var eo=-1,ei=null==et?0:et.length;for(this.clear();++eo<ei;){var ea=et[eo];this.set(ea[0],ea[1])}}MapCache.prototype.clear=ea,MapCache.prototype.delete=eu,MapCache.prototype.get=ed,MapCache.prototype.has=eh,MapCache.prototype.set=ep,et.exports=MapCache},"./packages/@logrocket/utils/node_modules/lodash/_Promise.js":function(et,eo,ei){var ea=ei(/*! ./_getNative */"./packages/@logrocket/utils/node_modules/lodash/_getNative.js")(ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js"),"Promise");et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_Set.js":function(et,eo,ei){var ea=ei(/*! ./_getNative */"./packages/@logrocket/utils/node_modules/lodash/_getNative.js")(ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js"),"Set");et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_SetCache.js":function(et,eo,ei){var ea=ei(/*! ./_MapCache */"./packages/@logrocket/utils/node_modules/lodash/_MapCache.js"),eu=ei(/*! ./_setCacheAdd */"./packages/@logrocket/utils/node_modules/lodash/_setCacheAdd.js"),ed=ei(/*! ./_setCacheHas */"./packages/@logrocket/utils/node_modules/lodash/_setCacheHas.js");function SetCache(et){var eo=-1,ei=null==et?0:et.length;for(this.__data__=new ea;++eo<ei;)this.add(et[eo])}SetCache.prototype.add=SetCache.prototype.push=eu,SetCache.prototype.has=ed,et.exports=SetCache},"./packages/@logrocket/utils/node_modules/lodash/_Stack.js":function(et,eo,ei){var ea=ei(/*! ./_ListCache */"./packages/@logrocket/utils/node_modules/lodash/_ListCache.js"),eu=ei(/*! ./_stackClear */"./packages/@logrocket/utils/node_modules/lodash/_stackClear.js"),ed=ei(/*! ./_stackDelete */"./packages/@logrocket/utils/node_modules/lodash/_stackDelete.js"),eh=ei(/*! ./_stackGet */"./packages/@logrocket/utils/node_modules/lodash/_stackGet.js"),ep=ei(/*! ./_stackHas */"./packages/@logrocket/utils/node_modules/lodash/_stackHas.js"),ef=ei(/*! ./_stackSet */"./packages/@logrocket/utils/node_modules/lodash/_stackSet.js");function Stack(et){var eo=this.__data__=new ea(et);this.size=eo.size}Stack.prototype.clear=eu,Stack.prototype.delete=ed,Stack.prototype.get=eh,Stack.prototype.has=ep,Stack.prototype.set=ef,et.exports=Stack},"./packages/@logrocket/utils/node_modules/lodash/_Symbol.js":function(et,eo,ei){var ea=ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js").Symbol;et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_Uint8Array.js":function(et,eo,ei){var ea=ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js").Uint8Array;et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_WeakMap.js":function(et,eo,ei){var ea=ei(/*! ./_getNative */"./packages/@logrocket/utils/node_modules/lodash/_getNative.js")(ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js"),"WeakMap");et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_arrayFilter.js":function(et){function arrayFilter(et,eo){for(var ei=-1,ea=null==et?0:et.length,eu=0,ed=[];++ei<ea;){var eh=et[ei];eo(eh,ei,et)&&(ed[eu++]=eh)}return ed}et.exports=arrayFilter},"./packages/@logrocket/utils/node_modules/lodash/_arrayLikeKeys.js":function(et,eo,ei){var ea=ei(/*! ./_baseTimes */"./packages/@logrocket/utils/node_modules/lodash/_baseTimes.js"),eu=ei(/*! ./isArguments */"./packages/@logrocket/utils/node_modules/lodash/isArguments.js"),ed=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js"),eh=ei(/*! ./isBuffer */"./packages/@logrocket/utils/node_modules/lodash/isBuffer.js"),ep=ei(/*! ./_isIndex */"./packages/@logrocket/utils/node_modules/lodash/_isIndex.js"),ef=ei(/*! ./isTypedArray */"./packages/@logrocket/utils/node_modules/lodash/isTypedArray.js"),em=Object.prototype.hasOwnProperty;function arrayLikeKeys(et,eo){var ei=ed(et),eg=!ei&&eu(et),ey=!ei&&!eg&&eh(et),eC=!ei&&!eg&&!ey&&ef(et),eS=ei||eg||ey||eC,e_=eS?ea(et.length,String):[],ew=e_.length;for(var eA in et)(eo||em.call(et,eA))&&!(eS&&("length"==eA||ey&&("offset"==eA||"parent"==eA)||eC&&("buffer"==eA||"byteLength"==eA||"byteOffset"==eA)||ep(eA,ew)))&&e_.push(eA);return e_}et.exports=arrayLikeKeys},"./packages/@logrocket/utils/node_modules/lodash/_arrayMap.js":function(et){function arrayMap(et,eo){for(var ei=-1,ea=null==et?0:et.length,eu=Array(ea);++ei<ea;)eu[ei]=eo(et[ei],ei,et);return eu}et.exports=arrayMap},"./packages/@logrocket/utils/node_modules/lodash/_arrayPush.js":function(et){function arrayPush(et,eo){for(var ei=-1,ea=eo.length,eu=et.length;++ei<ea;)et[eu+ei]=eo[ei];return et}et.exports=arrayPush},"./packages/@logrocket/utils/node_modules/lodash/_arraySome.js":function(et){function arraySome(et,eo){for(var ei=-1,ea=null==et?0:et.length;++ei<ea;)if(eo(et[ei],ei,et))return!0;return!1}et.exports=arraySome},"./packages/@logrocket/utils/node_modules/lodash/_assocIndexOf.js":function(et,eo,ei){var ea=ei(/*! ./eq */"./packages/@logrocket/utils/node_modules/lodash/eq.js");function assocIndexOf(et,eo){for(var ei=et.length;ei--;)if(ea(et[ei][0],eo))return ei;return -1}et.exports=assocIndexOf},"./packages/@logrocket/utils/node_modules/lodash/_baseGet.js":function(et,eo,ei){var ea=ei(/*! ./_castPath */"./packages/@logrocket/utils/node_modules/lodash/_castPath.js"),eu=ei(/*! ./_toKey */"./packages/@logrocket/utils/node_modules/lodash/_toKey.js");function baseGet(et,eo){eo=ea(eo,et);for(var ei=0,ed=eo.length;null!=et&&ei<ed;)et=et[eu(eo[ei++])];return ei&&ei==ed?et:void 0}et.exports=baseGet},"./packages/@logrocket/utils/node_modules/lodash/_baseGetAllKeys.js":function(et,eo,ei){var ea=ei(/*! ./_arrayPush */"./packages/@logrocket/utils/node_modules/lodash/_arrayPush.js"),eu=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js");function baseGetAllKeys(et,eo,ei){var ed=eo(et);return eu(et)?ed:ea(ed,ei(et))}et.exports=baseGetAllKeys},"./packages/@logrocket/utils/node_modules/lodash/_baseGetTag.js":function(et,eo,ei){var ea=ei(/*! ./_Symbol */"./packages/@logrocket/utils/node_modules/lodash/_Symbol.js"),eu=ei(/*! ./_getRawTag */"./packages/@logrocket/utils/node_modules/lodash/_getRawTag.js"),ed=ei(/*! ./_objectToString */"./packages/@logrocket/utils/node_modules/lodash/_objectToString.js"),eh="[object Null]",ep="[object Undefined]",ef=ea?ea.toStringTag:void 0;function baseGetTag(et){return null==et?void 0===et?ep:eh:ef&&ef in Object(et)?eu(et):ed(et)}et.exports=baseGetTag},"./packages/@logrocket/utils/node_modules/lodash/_baseHasIn.js":function(et){function baseHasIn(et,eo){return null!=et&&eo in Object(et)}et.exports=baseHasIn},"./packages/@logrocket/utils/node_modules/lodash/_baseIsArguments.js":function(et,eo,ei){var ea=ei(/*! ./_baseGetTag */"./packages/@logrocket/utils/node_modules/lodash/_baseGetTag.js"),eu=ei(/*! ./isObjectLike */"./packages/@logrocket/utils/node_modules/lodash/isObjectLike.js"),ed="[object Arguments]";function baseIsArguments(et){return eu(et)&&ea(et)==ed}et.exports=baseIsArguments},"./packages/@logrocket/utils/node_modules/lodash/_baseIsEqual.js":function(et,eo,ei){var ea=ei(/*! ./_baseIsEqualDeep */"./packages/@logrocket/utils/node_modules/lodash/_baseIsEqualDeep.js"),eu=ei(/*! ./isObjectLike */"./packages/@logrocket/utils/node_modules/lodash/isObjectLike.js");function baseIsEqual(et,eo,ei,ed,eh){return et===eo||(null!=et&&null!=eo&&(eu(et)||eu(eo))?ea(et,eo,ei,ed,baseIsEqual,eh):et!=et&&eo!=eo)}et.exports=baseIsEqual},"./packages/@logrocket/utils/node_modules/lodash/_baseIsEqualDeep.js":function(et,eo,ei){var ea=ei(/*! ./_Stack */"./packages/@logrocket/utils/node_modules/lodash/_Stack.js"),eu=ei(/*! ./_equalArrays */"./packages/@logrocket/utils/node_modules/lodash/_equalArrays.js"),ed=ei(/*! ./_equalByTag */"./packages/@logrocket/utils/node_modules/lodash/_equalByTag.js"),eh=ei(/*! ./_equalObjects */"./packages/@logrocket/utils/node_modules/lodash/_equalObjects.js"),ep=ei(/*! ./_getTag */"./packages/@logrocket/utils/node_modules/lodash/_getTag.js"),ef=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js"),em=ei(/*! ./isBuffer */"./packages/@logrocket/utils/node_modules/lodash/isBuffer.js"),eg=ei(/*! ./isTypedArray */"./packages/@logrocket/utils/node_modules/lodash/isTypedArray.js"),ey=1,eC="[object Arguments]",eS="[object Array]",e_="[object Object]",ew=Object.prototype.hasOwnProperty;function baseIsEqualDeep(et,eo,ei,eA,eI,eR){var eT=ef(et),eE=ef(eo),eP=eT?eS:ep(et),ek=eE?eS:ep(eo);eP=eP==eC?e_:eP,ek=ek==eC?e_:ek;var eO=eP==e_,eM=ek==e_,eD=eP==ek;if(eD&&em(et)){if(!em(eo))return!1;eT=!0,eO=!1}if(eD&&!eO)return eR||(eR=new ea),eT||eg(et)?eu(et,eo,ei,eA,eI,eR):ed(et,eo,eP,ei,eA,eI,eR);if(!(ei&ey)){var eU=eO&&ew.call(et,"__wrapped__"),eL=eM&&ew.call(eo,"__wrapped__");if(eU||eL){var eN=eU?et.value():et,eB=eL?eo.value():eo;return eR||(eR=new ea),eI(eN,eB,ei,eA,eR)}}return!!eD&&(eR||(eR=new ea),eh(et,eo,ei,eA,eI,eR))}et.exports=baseIsEqualDeep},"./packages/@logrocket/utils/node_modules/lodash/_baseIsMatch.js":function(et,eo,ei){var ea=ei(/*! ./_Stack */"./packages/@logrocket/utils/node_modules/lodash/_Stack.js"),eu=ei(/*! ./_baseIsEqual */"./packages/@logrocket/utils/node_modules/lodash/_baseIsEqual.js"),ed=1,eh=2;function baseIsMatch(et,eo,ei,ep){var ef=ei.length,em=ef,eg=!ep;if(null==et)return!em;for(et=Object(et);ef--;){var ey=ei[ef];if(eg&&ey[2]?ey[1]!==et[ey[0]]:!(ey[0]in et))return!1}for(;++ef<em;){var eC=(ey=ei[ef])[0],eS=et[eC],e_=ey[1];if(eg&&ey[2]){if(void 0===eS&&!(eC in et))return!1}else{var ew=new ea;if(ep)var eA=ep(eS,e_,eC,et,eo,ew);if(!(void 0===eA?eu(e_,eS,ed|eh,ep,ew):eA))return!1}}return!0}et.exports=baseIsMatch},"./packages/@logrocket/utils/node_modules/lodash/_baseIsNative.js":function(et,eo,ei){var ea=ei(/*! ./isFunction */"./packages/@logrocket/utils/node_modules/lodash/isFunction.js"),eu=ei(/*! ./_isMasked */"./packages/@logrocket/utils/node_modules/lodash/_isMasked.js"),ed=ei(/*! ./isObject */"./packages/@logrocket/utils/node_modules/lodash/isObject.js"),eh=ei(/*! ./_toSource */"./packages/@logrocket/utils/node_modules/lodash/_toSource.js"),ep=/[\\^$.*+?()[\]{}|]/g,ef=/^\[object .+?Constructor\]$/,em=Object.prototype,eg=Function.prototype.toString,ey=em.hasOwnProperty,eC=RegExp("^"+eg.call(ey).replace(ep,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(et){return!(!ed(et)||eu(et))&&(ea(et)?eC:ef).test(eh(et))}et.exports=baseIsNative},"./packages/@logrocket/utils/node_modules/lodash/_baseIsTypedArray.js":function(et,eo,ei){var ea=ei(/*! ./_baseGetTag */"./packages/@logrocket/utils/node_modules/lodash/_baseGetTag.js"),eu=ei(/*! ./isLength */"./packages/@logrocket/utils/node_modules/lodash/isLength.js"),ed=ei(/*! ./isObjectLike */"./packages/@logrocket/utils/node_modules/lodash/isObjectLike.js"),eh="[object Arguments]",ep="[object Array]",ef="[object Boolean]",em="[object Date]",eg="[object Error]",ey="[object Function]",eC="[object Map]",eS="[object Number]",e_="[object Object]",ew="[object RegExp]",eA="[object Set]",eI="[object String]",eR="[object WeakMap]",eT="[object ArrayBuffer]",eE="[object DataView]",eP="[object Float64Array]",ek="[object Int8Array]",eO="[object Int16Array]",eM="[object Int32Array]",eD="[object Uint8Array]",eU="[object Uint8ClampedArray]",eL="[object Uint16Array]",eN="[object Uint32Array]",eB={};function baseIsTypedArray(et){return ed(et)&&eu(et.length)&&!!eB[ea(et)]}eB["[object Float32Array]"]=eB[eP]=eB[ek]=eB[eO]=eB[eM]=eB[eD]=eB[eU]=eB[eL]=eB[eN]=!0,eB[eh]=eB[ep]=eB[eT]=eB[ef]=eB[eE]=eB[em]=eB[eg]=eB[ey]=eB[eC]=eB[eS]=eB[e_]=eB[ew]=eB[eA]=eB[eI]=eB[eR]=!1,et.exports=baseIsTypedArray},"./packages/@logrocket/utils/node_modules/lodash/_baseIteratee.js":function(et,eo,ei){var ea=ei(/*! ./_baseMatches */"./packages/@logrocket/utils/node_modules/lodash/_baseMatches.js"),eu=ei(/*! ./_baseMatchesProperty */"./packages/@logrocket/utils/node_modules/lodash/_baseMatchesProperty.js"),ed=ei(/*! ./identity */"./packages/@logrocket/utils/node_modules/lodash/identity.js"),eh=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js"),ep=ei(/*! ./property */"./packages/@logrocket/utils/node_modules/lodash/property.js");function baseIteratee(et){return"function"==typeof et?et:null==et?ed:"object"==typeof et?eh(et)?eu(et[0],et[1]):ea(et):ep(et)}et.exports=baseIteratee},"./packages/@logrocket/utils/node_modules/lodash/_baseKeys.js":function(et,eo,ei){var ea=ei(/*! ./_isPrototype */"./packages/@logrocket/utils/node_modules/lodash/_isPrototype.js"),eu=ei(/*! ./_nativeKeys */"./packages/@logrocket/utils/node_modules/lodash/_nativeKeys.js"),ed=Object.prototype.hasOwnProperty;function baseKeys(et){if(!ea(et))return eu(et);var eo=[];for(var ei in Object(et))ed.call(et,ei)&&"constructor"!=ei&&eo.push(ei);return eo}et.exports=baseKeys},"./packages/@logrocket/utils/node_modules/lodash/_baseMatches.js":function(et,eo,ei){var ea=ei(/*! ./_baseIsMatch */"./packages/@logrocket/utils/node_modules/lodash/_baseIsMatch.js"),eu=ei(/*! ./_getMatchData */"./packages/@logrocket/utils/node_modules/lodash/_getMatchData.js"),ed=ei(/*! ./_matchesStrictComparable */"./packages/@logrocket/utils/node_modules/lodash/_matchesStrictComparable.js");function baseMatches(et){var eo=eu(et);return 1==eo.length&&eo[0][2]?ed(eo[0][0],eo[0][1]):function(ei){return ei===et||ea(ei,et,eo)}}et.exports=baseMatches},"./packages/@logrocket/utils/node_modules/lodash/_baseMatchesProperty.js":function(et,eo,ei){var ea=ei(/*! ./_baseIsEqual */"./packages/@logrocket/utils/node_modules/lodash/_baseIsEqual.js"),eu=ei(/*! ./get */"./packages/@logrocket/utils/node_modules/lodash/get.js"),ed=ei(/*! ./hasIn */"./packages/@logrocket/utils/node_modules/lodash/hasIn.js"),eh=ei(/*! ./_isKey */"./packages/@logrocket/utils/node_modules/lodash/_isKey.js"),ep=ei(/*! ./_isStrictComparable */"./packages/@logrocket/utils/node_modules/lodash/_isStrictComparable.js"),ef=ei(/*! ./_matchesStrictComparable */"./packages/@logrocket/utils/node_modules/lodash/_matchesStrictComparable.js"),em=ei(/*! ./_toKey */"./packages/@logrocket/utils/node_modules/lodash/_toKey.js"),eg=1,ey=2;function baseMatchesProperty(et,eo){return eh(et)&&ep(eo)?ef(em(et),eo):function(ei){var eh=eu(ei,et);return void 0===eh&&eh===eo?ed(ei,et):ea(eo,eh,eg|ey)}}et.exports=baseMatchesProperty},"./packages/@logrocket/utils/node_modules/lodash/_baseProperty.js":function(et){function baseProperty(et){return function(eo){return null==eo?void 0:eo[et]}}et.exports=baseProperty},"./packages/@logrocket/utils/node_modules/lodash/_basePropertyDeep.js":function(et,eo,ei){var ea=ei(/*! ./_baseGet */"./packages/@logrocket/utils/node_modules/lodash/_baseGet.js");function basePropertyDeep(et){return function(eo){return ea(eo,et)}}et.exports=basePropertyDeep},"./packages/@logrocket/utils/node_modules/lodash/_baseSortedIndexBy.js":function(et,eo,ei){var ea=ei(/*! ./isSymbol */"./packages/@logrocket/utils/node_modules/lodash/isSymbol.js"),eu=4294967294,ed=Math.floor,eh=Math.min;function baseSortedIndexBy(et,eo,ei,ep){var ef=0,em=null==et?0:et.length;if(0===em)return 0;for(var eg=(eo=ei(eo))!=eo,ey=null===eo,eC=ea(eo),eS=void 0===eo;ef<em;){var e_=ed((ef+em)/2),ew=ei(et[e_]),eA=void 0!==ew,eI=null===ew,eR=ew==ew,eT=ea(ew);if(eg)var eE=ep||eR;else eE=eS?eR&&(ep||eA):ey?eR&&eA&&(ep||!eI):eC?eR&&eA&&!eI&&(ep||!eT):!eI&&!eT&&(ep?ew<=eo:ew<eo);eE?ef=e_+1:em=e_}return eh(em,eu)}et.exports=baseSortedIndexBy},"./packages/@logrocket/utils/node_modules/lodash/_baseTimes.js":function(et){function baseTimes(et,eo){for(var ei=-1,ea=Array(et);++ei<et;)ea[ei]=eo(ei);return ea}et.exports=baseTimes},"./packages/@logrocket/utils/node_modules/lodash/_baseToString.js":function(et,eo,ei){var ea=ei(/*! ./_Symbol */"./packages/@logrocket/utils/node_modules/lodash/_Symbol.js"),eu=ei(/*! ./_arrayMap */"./packages/@logrocket/utils/node_modules/lodash/_arrayMap.js"),ed=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js"),eh=ei(/*! ./isSymbol */"./packages/@logrocket/utils/node_modules/lodash/isSymbol.js"),ep=1/0,ef=ea?ea.prototype:void 0,em=ef?ef.toString:void 0;function baseToString(et){if("string"==typeof et)return et;if(ed(et))return eu(et,baseToString)+"";if(eh(et))return em?em.call(et):"";var eo=et+"";return"0"==eo&&1/et==-ep?"-0":eo}et.exports=baseToString},"./packages/@logrocket/utils/node_modules/lodash/_baseUnary.js":function(et){function baseUnary(et){return function(eo){return et(eo)}}et.exports=baseUnary},"./packages/@logrocket/utils/node_modules/lodash/_cacheHas.js":function(et){function cacheHas(et,eo){return et.has(eo)}et.exports=cacheHas},"./packages/@logrocket/utils/node_modules/lodash/_castPath.js":function(et,eo,ei){var ea=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js"),eu=ei(/*! ./_isKey */"./packages/@logrocket/utils/node_modules/lodash/_isKey.js"),ed=ei(/*! ./_stringToPath */"./packages/@logrocket/utils/node_modules/lodash/_stringToPath.js"),eh=ei(/*! ./toString */"./packages/@logrocket/utils/node_modules/lodash/toString.js");function castPath(et,eo){return ea(et)?et:eu(et,eo)?[et]:ed(eh(et))}et.exports=castPath},"./packages/@logrocket/utils/node_modules/lodash/_coreJsData.js":function(et,eo,ei){var ea=ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js")["__core-js_shared__"];et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_equalArrays.js":function(et,eo,ei){var ea=ei(/*! ./_SetCache */"./packages/@logrocket/utils/node_modules/lodash/_SetCache.js"),eu=ei(/*! ./_arraySome */"./packages/@logrocket/utils/node_modules/lodash/_arraySome.js"),ed=ei(/*! ./_cacheHas */"./packages/@logrocket/utils/node_modules/lodash/_cacheHas.js"),eh=1,ep=2;function equalArrays(et,eo,ei,ef,em,eg){var ey=ei&eh,eC=et.length,eS=eo.length;if(eC!=eS&&!(ey&&eS>eC))return!1;var e_=eg.get(et),ew=eg.get(eo);if(e_&&ew)return e_==eo&&ew==et;var eA=-1,eI=!0,eR=ei&ep?new ea:void 0;for(eg.set(et,eo),eg.set(eo,et);++eA<eC;){var eT=et[eA],eE=eo[eA];if(ef)var eP=ey?ef(eE,eT,eA,eo,et,eg):ef(eT,eE,eA,et,eo,eg);if(void 0!==eP){if(eP)continue;eI=!1;break}if(eR){if(!eu(eo,function(et,eo){if(!ed(eR,eo)&&(eT===et||em(eT,et,ei,ef,eg)))return eR.push(eo)})){eI=!1;break}}else if(!(eT===eE||em(eT,eE,ei,ef,eg))){eI=!1;break}}return eg.delete(et),eg.delete(eo),eI}et.exports=equalArrays},"./packages/@logrocket/utils/node_modules/lodash/_equalByTag.js":function(et,eo,ei){var ea=ei(/*! ./_Symbol */"./packages/@logrocket/utils/node_modules/lodash/_Symbol.js"),eu=ei(/*! ./_Uint8Array */"./packages/@logrocket/utils/node_modules/lodash/_Uint8Array.js"),ed=ei(/*! ./eq */"./packages/@logrocket/utils/node_modules/lodash/eq.js"),eh=ei(/*! ./_equalArrays */"./packages/@logrocket/utils/node_modules/lodash/_equalArrays.js"),ep=ei(/*! ./_mapToArray */"./packages/@logrocket/utils/node_modules/lodash/_mapToArray.js"),ef=ei(/*! ./_setToArray */"./packages/@logrocket/utils/node_modules/lodash/_setToArray.js"),em=1,eg=2,ey="[object Boolean]",eC="[object Date]",eS="[object Error]",e_="[object Map]",ew="[object Number]",eA="[object RegExp]",eI="[object Set]",eR="[object String]",eT="[object Symbol]",eE="[object ArrayBuffer]",eP="[object DataView]",ek=ea?ea.prototype:void 0,eO=ek?ek.valueOf:void 0;function equalByTag(et,eo,ei,ea,ek,eM,eD){switch(ei){case eP:if(et.byteLength!=eo.byteLength||et.byteOffset!=eo.byteOffset)break;et=et.buffer,eo=eo.buffer;case eE:if(et.byteLength!=eo.byteLength||!eM(new eu(et),new eu(eo)))break;return!0;case ey:case eC:case ew:return ed(+et,+eo);case eS:return et.name==eo.name&&et.message==eo.message;case eA:case eR:return et==eo+"";case e_:var eU=ep;case eI:var eL=ea&em;if(eU||(eU=ef),et.size!=eo.size&&!eL)break;var eN=eD.get(et);if(eN)return eN==eo;ea|=eg,eD.set(et,eo);var eB=eh(eU(et),eU(eo),ea,ek,eM,eD);return eD.delete(et),eB;case eT:if(eO)return eO.call(et)==eO.call(eo)}return!1}et.exports=equalByTag},"./packages/@logrocket/utils/node_modules/lodash/_equalObjects.js":function(et,eo,ei){var ea=ei(/*! ./_getAllKeys */"./packages/@logrocket/utils/node_modules/lodash/_getAllKeys.js"),eu=1,ed=Object.prototype.hasOwnProperty;function equalObjects(et,eo,ei,eh,ep,ef){var em=ei&eu,eg=ea(et),ey=eg.length;if(ey!=ea(eo).length&&!em)return!1;for(var eC=ey;eC--;){var eS=eg[eC];if(!(em?eS in eo:ed.call(eo,eS)))return!1}var e_=ef.get(et),ew=ef.get(eo);if(e_&&ew)return e_==eo&&ew==et;var eA=!0;ef.set(et,eo),ef.set(eo,et);for(var eI=em;++eC<ey;){var eR=et[eS=eg[eC]],eT=eo[eS];if(eh)var eE=em?eh(eT,eR,eS,eo,et,ef):eh(eR,eT,eS,et,eo,ef);if(!(void 0===eE?eR===eT||ep(eR,eT,ei,eh,ef):eE)){eA=!1;break}eI||(eI="constructor"==eS)}if(eA&&!eI){var eP=et.constructor,ek=eo.constructor;eP!=ek&&"constructor"in et&&"constructor"in eo&&!("function"==typeof eP&&eP instanceof eP&&"function"==typeof ek&&ek instanceof ek)&&(eA=!1)}return ef.delete(et),ef.delete(eo),eA}et.exports=equalObjects},"./packages/@logrocket/utils/node_modules/lodash/_freeGlobal.js":function(et,eo,ei){var ea="object"==typeof ei.g&&ei.g&&ei.g.Object===Object&&ei.g;et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_getAllKeys.js":function(et,eo,ei){var ea=ei(/*! ./_baseGetAllKeys */"./packages/@logrocket/utils/node_modules/lodash/_baseGetAllKeys.js"),eu=ei(/*! ./_getSymbols */"./packages/@logrocket/utils/node_modules/lodash/_getSymbols.js"),ed=ei(/*! ./keys */"./packages/@logrocket/utils/node_modules/lodash/keys.js");function getAllKeys(et){return ea(et,ed,eu)}et.exports=getAllKeys},"./packages/@logrocket/utils/node_modules/lodash/_getMapData.js":function(et,eo,ei){var ea=ei(/*! ./_isKeyable */"./packages/@logrocket/utils/node_modules/lodash/_isKeyable.js");function getMapData(et,eo){var ei=et.__data__;return ea(eo)?ei["string"==typeof eo?"string":"hash"]:ei.map}et.exports=getMapData},"./packages/@logrocket/utils/node_modules/lodash/_getMatchData.js":function(et,eo,ei){var ea=ei(/*! ./_isStrictComparable */"./packages/@logrocket/utils/node_modules/lodash/_isStrictComparable.js"),eu=ei(/*! ./keys */"./packages/@logrocket/utils/node_modules/lodash/keys.js");function getMatchData(et){for(var eo=eu(et),ei=eo.length;ei--;){var ed=eo[ei],eh=et[ed];eo[ei]=[ed,eh,ea(eh)]}return eo}et.exports=getMatchData},"./packages/@logrocket/utils/node_modules/lodash/_getNative.js":function(et,eo,ei){var ea=ei(/*! ./_baseIsNative */"./packages/@logrocket/utils/node_modules/lodash/_baseIsNative.js"),eu=ei(/*! ./_getValue */"./packages/@logrocket/utils/node_modules/lodash/_getValue.js");function getNative(et,eo){var ei=eu(et,eo);return ea(ei)?ei:void 0}et.exports=getNative},"./packages/@logrocket/utils/node_modules/lodash/_getRawTag.js":function(et,eo,ei){var ea=ei(/*! ./_Symbol */"./packages/@logrocket/utils/node_modules/lodash/_Symbol.js"),eu=Object.prototype,ed=eu.hasOwnProperty,eh=eu.toString,ep=ea?ea.toStringTag:void 0;function getRawTag(et){var eo=ed.call(et,ep),ei=et[ep];try{et[ep]=void 0;var ea=!0}catch(et){}var eu=eh.call(et);return ea&&(eo?et[ep]=ei:delete et[ep]),eu}et.exports=getRawTag},"./packages/@logrocket/utils/node_modules/lodash/_getSymbols.js":function(et,eo,ei){var ea=ei(/*! ./_arrayFilter */"./packages/@logrocket/utils/node_modules/lodash/_arrayFilter.js"),eu=ei(/*! ./stubArray */"./packages/@logrocket/utils/node_modules/lodash/stubArray.js"),ed=Object.prototype.propertyIsEnumerable,eh=Object.getOwnPropertySymbols,ep=eh?function(et){return null==et?[]:ea(eh(et=Object(et)),function(eo){return ed.call(et,eo)})}:eu;et.exports=ep},"./packages/@logrocket/utils/node_modules/lodash/_getTag.js":function(et,eo,ei){var ea=ei(/*! ./_DataView */"./packages/@logrocket/utils/node_modules/lodash/_DataView.js"),eu=ei(/*! ./_Map */"./packages/@logrocket/utils/node_modules/lodash/_Map.js"),ed=ei(/*! ./_Promise */"./packages/@logrocket/utils/node_modules/lodash/_Promise.js"),eh=ei(/*! ./_Set */"./packages/@logrocket/utils/node_modules/lodash/_Set.js"),ep=ei(/*! ./_WeakMap */"./packages/@logrocket/utils/node_modules/lodash/_WeakMap.js"),ef=ei(/*! ./_baseGetTag */"./packages/@logrocket/utils/node_modules/lodash/_baseGetTag.js"),em=ei(/*! ./_toSource */"./packages/@logrocket/utils/node_modules/lodash/_toSource.js"),eg="[object Map]",ey="[object Object]",eC="[object Promise]",eS="[object Set]",e_="[object WeakMap]",ew="[object DataView]",eA=em(ea),eI=em(eu),eR=em(ed),eT=em(eh),eE=em(ep),eP=ef;(ea&&eP(new ea(new ArrayBuffer(1)))!=ew||eu&&eP(new eu)!=eg||ed&&eP(ed.resolve())!=eC||eh&&eP(new eh)!=eS||ep&&eP(new ep)!=e_)&&(eP=function(et){var eo=ef(et),ei=eo==ey?et.constructor:void 0,ea=ei?em(ei):"";if(ea)switch(ea){case eA:return ew;case eI:return eg;case eR:return eC;case eT:return eS;case eE:return e_}return eo}),et.exports=eP},"./packages/@logrocket/utils/node_modules/lodash/_getValue.js":function(et){function getValue(et,eo){return null==et?void 0:et[eo]}et.exports=getValue},"./packages/@logrocket/utils/node_modules/lodash/_hasPath.js":function(et,eo,ei){var ea=ei(/*! ./_castPath */"./packages/@logrocket/utils/node_modules/lodash/_castPath.js"),eu=ei(/*! ./isArguments */"./packages/@logrocket/utils/node_modules/lodash/isArguments.js"),ed=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js"),eh=ei(/*! ./_isIndex */"./packages/@logrocket/utils/node_modules/lodash/_isIndex.js"),ep=ei(/*! ./isLength */"./packages/@logrocket/utils/node_modules/lodash/isLength.js"),ef=ei(/*! ./_toKey */"./packages/@logrocket/utils/node_modules/lodash/_toKey.js");function hasPath(et,eo,ei){eo=ea(eo,et);for(var em=-1,eg=eo.length,ey=!1;++em<eg;){var eC=ef(eo[em]);if(!(ey=null!=et&&ei(et,eC)))break;et=et[eC]}return ey||++em!=eg?ey:!!(eg=null==et?0:et.length)&&ep(eg)&&eh(eC,eg)&&(ed(et)||eu(et))}et.exports=hasPath},"./packages/@logrocket/utils/node_modules/lodash/_hashClear.js":function(et,eo,ei){var ea=ei(/*! ./_nativeCreate */"./packages/@logrocket/utils/node_modules/lodash/_nativeCreate.js");function hashClear(){this.__data__=ea?ea(null):{},this.size=0}et.exports=hashClear},"./packages/@logrocket/utils/node_modules/lodash/_hashDelete.js":function(et){function hashDelete(et){var eo=this.has(et)&&delete this.__data__[et];return this.size-=eo?1:0,eo}et.exports=hashDelete},"./packages/@logrocket/utils/node_modules/lodash/_hashGet.js":function(et,eo,ei){var ea=ei(/*! ./_nativeCreate */"./packages/@logrocket/utils/node_modules/lodash/_nativeCreate.js"),eu="__lodash_hash_undefined__",ed=Object.prototype.hasOwnProperty;function hashGet(et){var eo=this.__data__;if(ea){var ei=eo[et];return ei===eu?void 0:ei}return ed.call(eo,et)?eo[et]:void 0}et.exports=hashGet},"./packages/@logrocket/utils/node_modules/lodash/_hashHas.js":function(et,eo,ei){var ea=ei(/*! ./_nativeCreate */"./packages/@logrocket/utils/node_modules/lodash/_nativeCreate.js"),eu=Object.prototype.hasOwnProperty;function hashHas(et){var eo=this.__data__;return ea?void 0!==eo[et]:eu.call(eo,et)}et.exports=hashHas},"./packages/@logrocket/utils/node_modules/lodash/_hashSet.js":function(et,eo,ei){var ea=ei(/*! ./_nativeCreate */"./packages/@logrocket/utils/node_modules/lodash/_nativeCreate.js"),eu="__lodash_hash_undefined__";function hashSet(et,eo){var ei=this.__data__;return this.size+=this.has(et)?0:1,ei[et]=ea&&void 0===eo?eu:eo,this}et.exports=hashSet},"./packages/@logrocket/utils/node_modules/lodash/_isIndex.js":function(et){var eo=9007199254740991,ei=/^(?:0|[1-9]\d*)$/;function isIndex(et,ea){var eu=typeof et;return!!(ea=null==ea?eo:ea)&&("number"==eu||"symbol"!=eu&&ei.test(et))&&et>-1&&et%1==0&&et<ea}et.exports=isIndex},"./packages/@logrocket/utils/node_modules/lodash/_isKey.js":function(et,eo,ei){var ea=ei(/*! ./isArray */"./packages/@logrocket/utils/node_modules/lodash/isArray.js"),eu=ei(/*! ./isSymbol */"./packages/@logrocket/utils/node_modules/lodash/isSymbol.js"),ed=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eh=/^\w*$/;function isKey(et,eo){if(ea(et))return!1;var ei=typeof et;return!!("number"==ei||"symbol"==ei||"boolean"==ei||null==et||eu(et))||eh.test(et)||!ed.test(et)||null!=eo&&et in Object(eo)}et.exports=isKey},"./packages/@logrocket/utils/node_modules/lodash/_isKeyable.js":function(et){function isKeyable(et){var eo=typeof et;return"string"==eo||"number"==eo||"symbol"==eo||"boolean"==eo?"__proto__"!==et:null===et}et.exports=isKeyable},"./packages/@logrocket/utils/node_modules/lodash/_isMasked.js":function(et,eo,ei){var ea=ei(/*! ./_coreJsData */"./packages/@logrocket/utils/node_modules/lodash/_coreJsData.js"),eu=function(){var et=/[^.]+$/.exec(ea&&ea.keys&&ea.keys.IE_PROTO||"");return et?"Symbol(src)_1."+et:""}();function isMasked(et){return!!eu&&eu in et}et.exports=isMasked},"./packages/@logrocket/utils/node_modules/lodash/_isPrototype.js":function(et){var eo=Object.prototype;function isPrototype(et){var ei=et&&et.constructor;return et===("function"==typeof ei&&ei.prototype||eo)}et.exports=isPrototype},"./packages/@logrocket/utils/node_modules/lodash/_isStrictComparable.js":function(et,eo,ei){var ea=ei(/*! ./isObject */"./packages/@logrocket/utils/node_modules/lodash/isObject.js");function isStrictComparable(et){return et==et&&!ea(et)}et.exports=isStrictComparable},"./packages/@logrocket/utils/node_modules/lodash/_listCacheClear.js":function(et){function listCacheClear(){this.__data__=[],this.size=0}et.exports=listCacheClear},"./packages/@logrocket/utils/node_modules/lodash/_listCacheDelete.js":function(et,eo,ei){var ea=ei(/*! ./_assocIndexOf */"./packages/@logrocket/utils/node_modules/lodash/_assocIndexOf.js"),eu=Array.prototype.splice;function listCacheDelete(et){var eo=this.__data__,ei=ea(eo,et);return!(ei<0)&&(ei==eo.length-1?eo.pop():eu.call(eo,ei,1),--this.size,!0)}et.exports=listCacheDelete},"./packages/@logrocket/utils/node_modules/lodash/_listCacheGet.js":function(et,eo,ei){var ea=ei(/*! ./_assocIndexOf */"./packages/@logrocket/utils/node_modules/lodash/_assocIndexOf.js");function listCacheGet(et){var eo=this.__data__,ei=ea(eo,et);return ei<0?void 0:eo[ei][1]}et.exports=listCacheGet},"./packages/@logrocket/utils/node_modules/lodash/_listCacheHas.js":function(et,eo,ei){var ea=ei(/*! ./_assocIndexOf */"./packages/@logrocket/utils/node_modules/lodash/_assocIndexOf.js");function listCacheHas(et){return ea(this.__data__,et)>-1}et.exports=listCacheHas},"./packages/@logrocket/utils/node_modules/lodash/_listCacheSet.js":function(et,eo,ei){var ea=ei(/*! ./_assocIndexOf */"./packages/@logrocket/utils/node_modules/lodash/_assocIndexOf.js");function listCacheSet(et,eo){var ei=this.__data__,eu=ea(ei,et);return eu<0?(++this.size,ei.push([et,eo])):ei[eu][1]=eo,this}et.exports=listCacheSet},"./packages/@logrocket/utils/node_modules/lodash/_mapCacheClear.js":function(et,eo,ei){var ea=ei(/*! ./_Hash */"./packages/@logrocket/utils/node_modules/lodash/_Hash.js"),eu=ei(/*! ./_ListCache */"./packages/@logrocket/utils/node_modules/lodash/_ListCache.js"),ed=ei(/*! ./_Map */"./packages/@logrocket/utils/node_modules/lodash/_Map.js");function mapCacheClear(){this.size=0,this.__data__={hash:new ea,map:new(ed||eu),string:new ea}}et.exports=mapCacheClear},"./packages/@logrocket/utils/node_modules/lodash/_mapCacheDelete.js":function(et,eo,ei){var ea=ei(/*! ./_getMapData */"./packages/@logrocket/utils/node_modules/lodash/_getMapData.js");function mapCacheDelete(et){var eo=ea(this,et).delete(et);return this.size-=eo?1:0,eo}et.exports=mapCacheDelete},"./packages/@logrocket/utils/node_modules/lodash/_mapCacheGet.js":function(et,eo,ei){var ea=ei(/*! ./_getMapData */"./packages/@logrocket/utils/node_modules/lodash/_getMapData.js");function mapCacheGet(et){return ea(this,et).get(et)}et.exports=mapCacheGet},"./packages/@logrocket/utils/node_modules/lodash/_mapCacheHas.js":function(et,eo,ei){var ea=ei(/*! ./_getMapData */"./packages/@logrocket/utils/node_modules/lodash/_getMapData.js");function mapCacheHas(et){return ea(this,et).has(et)}et.exports=mapCacheHas},"./packages/@logrocket/utils/node_modules/lodash/_mapCacheSet.js":function(et,eo,ei){var ea=ei(/*! ./_getMapData */"./packages/@logrocket/utils/node_modules/lodash/_getMapData.js");function mapCacheSet(et,eo){var ei=ea(this,et),eu=ei.size;return ei.set(et,eo),this.size+=ei.size==eu?0:1,this}et.exports=mapCacheSet},"./packages/@logrocket/utils/node_modules/lodash/_mapToArray.js":function(et){function mapToArray(et){var eo=-1,ei=Array(et.size);return et.forEach(function(et,ea){ei[++eo]=[ea,et]}),ei}et.exports=mapToArray},"./packages/@logrocket/utils/node_modules/lodash/_matchesStrictComparable.js":function(et){function matchesStrictComparable(et,eo){return function(ei){return null!=ei&&ei[et]===eo&&(void 0!==eo||et in Object(ei))}}et.exports=matchesStrictComparable},"./packages/@logrocket/utils/node_modules/lodash/_memoizeCapped.js":function(et,eo,ei){var ea=ei(/*! ./memoize */"./packages/@logrocket/utils/node_modules/lodash/memoize.js"),eu=500;function memoizeCapped(et){var eo=ea(et,function(et){return ei.size===eu&&ei.clear(),et}),ei=eo.cache;return eo}et.exports=memoizeCapped},"./packages/@logrocket/utils/node_modules/lodash/_nativeCreate.js":function(et,eo,ei){var ea=ei(/*! ./_getNative */"./packages/@logrocket/utils/node_modules/lodash/_getNative.js")(Object,"create");et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_nativeKeys.js":function(et,eo,ei){var ea=ei(/*! ./_overArg */"./packages/@logrocket/utils/node_modules/lodash/_overArg.js")(Object.keys,Object);et.exports=ea},"./packages/@logrocket/utils/node_modules/lodash/_nodeUtil.js":function(et,eo,ei){et=ei.nmd(et);var ea=ei(/*! ./_freeGlobal */"./packages/@logrocket/utils/node_modules/lodash/_freeGlobal.js"),eu=eo&&!eo.nodeType&&eo,ed=eu&&et&&!et.nodeType&&et,eh=ed&&ed.exports===eu&&ea.process,ep=function(){try{var et=ed&&ed.require&&ed.require("util").types;if(et)return et;return eh&&eh.binding&&eh.binding("util")}catch(et){}}();et.exports=ep},"./packages/@logrocket/utils/node_modules/lodash/_objectToString.js":function(et){var eo=Object.prototype.toString;function objectToString(et){return eo.call(et)}et.exports=objectToString},"./packages/@logrocket/utils/node_modules/lodash/_overArg.js":function(et){function overArg(et,eo){return function(ei){return et(eo(ei))}}et.exports=overArg},"./packages/@logrocket/utils/node_modules/lodash/_root.js":function(et,eo,ei){var ea=ei(/*! ./_freeGlobal */"./packages/@logrocket/utils/node_modules/lodash/_freeGlobal.js"),eu="object"==typeof self&&self&&self.Object===Object&&self,ed=ea||eu||Function("return this")();et.exports=ed},"./packages/@logrocket/utils/node_modules/lodash/_setCacheAdd.js":function(et){var eo="__lodash_hash_undefined__";function setCacheAdd(et){return this.__data__.set(et,eo),this}et.exports=setCacheAdd},"./packages/@logrocket/utils/node_modules/lodash/_setCacheHas.js":function(et){function setCacheHas(et){return this.__data__.has(et)}et.exports=setCacheHas},"./packages/@logrocket/utils/node_modules/lodash/_setToArray.js":function(et){function setToArray(et){var eo=-1,ei=Array(et.size);return et.forEach(function(et){ei[++eo]=et}),ei}et.exports=setToArray},"./packages/@logrocket/utils/node_modules/lodash/_stackClear.js":function(et,eo,ei){var ea=ei(/*! ./_ListCache */"./packages/@logrocket/utils/node_modules/lodash/_ListCache.js");function stackClear(){this.__data__=new ea,this.size=0}et.exports=stackClear},"./packages/@logrocket/utils/node_modules/lodash/_stackDelete.js":function(et){function stackDelete(et){var eo=this.__data__,ei=eo.delete(et);return this.size=eo.size,ei}et.exports=stackDelete},"./packages/@logrocket/utils/node_modules/lodash/_stackGet.js":function(et){function stackGet(et){return this.__data__.get(et)}et.exports=stackGet},"./packages/@logrocket/utils/node_modules/lodash/_stackHas.js":function(et){function stackHas(et){return this.__data__.has(et)}et.exports=stackHas},"./packages/@logrocket/utils/node_modules/lodash/_stackSet.js":function(et,eo,ei){var ea=ei(/*! ./_ListCache */"./packages/@logrocket/utils/node_modules/lodash/_ListCache.js"),eu=ei(/*! ./_Map */"./packages/@logrocket/utils/node_modules/lodash/_Map.js"),ed=ei(/*! ./_MapCache */"./packages/@logrocket/utils/node_modules/lodash/_MapCache.js"),eh=200;function stackSet(et,eo){var ei=this.__data__;if(ei instanceof ea){var ep=ei.__data__;if(!eu||ep.length<eh-1)return ep.push([et,eo]),this.size=++ei.size,this;ei=this.__data__=new ed(ep)}return ei.set(et,eo),this.size=ei.size,this}et.exports=stackSet},"./packages/@logrocket/utils/node_modules/lodash/_stringToPath.js":function(et,eo,ei){var ea=ei(/*! ./_memoizeCapped */"./packages/@logrocket/utils/node_modules/lodash/_memoizeCapped.js"),eu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ed=/\\(\\)?/g,eh=ea(function(et){var eo=[];return 46===et.charCodeAt(0)&&eo.push(""),et.replace(eu,function(et,ei,ea,eu){eo.push(ea?eu.replace(ed,"$1"):ei||et)}),eo});et.exports=eh},"./packages/@logrocket/utils/node_modules/lodash/_toKey.js":function(et,eo,ei){var ea=ei(/*! ./isSymbol */"./packages/@logrocket/utils/node_modules/lodash/isSymbol.js"),eu=1/0;function toKey(et){if("string"==typeof et||ea(et))return et;var eo=et+"";return"0"==eo&&1/et==-eu?"-0":eo}et.exports=toKey},"./packages/@logrocket/utils/node_modules/lodash/_toSource.js":function(et){var eo=Function.prototype.toString;function toSource(et){if(null!=et){try{return eo.call(et)}catch(et){}try{return et+""}catch(et){}}return""}et.exports=toSource},"./packages/@logrocket/utils/node_modules/lodash/eq.js":function(et){function eq(et,eo){return et===eo||et!=et&&eo!=eo}et.exports=eq},"./packages/@logrocket/utils/node_modules/lodash/get.js":function(et,eo,ei){var ea=ei(/*! ./_baseGet */"./packages/@logrocket/utils/node_modules/lodash/_baseGet.js");function get(et,eo,ei){var eu=null==et?void 0:ea(et,eo);return void 0===eu?ei:eu}et.exports=get},"./packages/@logrocket/utils/node_modules/lodash/hasIn.js":function(et,eo,ei){var ea=ei(/*! ./_baseHasIn */"./packages/@logrocket/utils/node_modules/lodash/_baseHasIn.js"),eu=ei(/*! ./_hasPath */"./packages/@logrocket/utils/node_modules/lodash/_hasPath.js");function hasIn(et,eo){return null!=et&&eu(et,eo,ea)}et.exports=hasIn},"./packages/@logrocket/utils/node_modules/lodash/identity.js":function(et){function identity(et){return et}et.exports=identity},"./packages/@logrocket/utils/node_modules/lodash/isArguments.js":function(et,eo,ei){var ea=ei(/*! ./_baseIsArguments */"./packages/@logrocket/utils/node_modules/lodash/_baseIsArguments.js"),eu=ei(/*! ./isObjectLike */"./packages/@logrocket/utils/node_modules/lodash/isObjectLike.js"),ed=Object.prototype,eh=ed.hasOwnProperty,ep=ed.propertyIsEnumerable,ef=ea(function(){return arguments}())?ea:function(et){return eu(et)&&eh.call(et,"callee")&&!ep.call(et,"callee")};et.exports=ef},"./packages/@logrocket/utils/node_modules/lodash/isArray.js":function(et){var eo=Array.isArray;et.exports=eo},"./packages/@logrocket/utils/node_modules/lodash/isArrayLike.js":function(et,eo,ei){var ea=ei(/*! ./isFunction */"./packages/@logrocket/utils/node_modules/lodash/isFunction.js"),eu=ei(/*! ./isLength */"./packages/@logrocket/utils/node_modules/lodash/isLength.js");function isArrayLike(et){return null!=et&&eu(et.length)&&!ea(et)}et.exports=isArrayLike},"./packages/@logrocket/utils/node_modules/lodash/isBuffer.js":function(et,eo,ei){et=ei.nmd(et);var ea=ei(/*! ./_root */"./packages/@logrocket/utils/node_modules/lodash/_root.js"),eu=ei(/*! ./stubFalse */"./packages/@logrocket/utils/node_modules/lodash/stubFalse.js"),ed=eo&&!eo.nodeType&&eo,eh=ed&&et&&!et.nodeType&&et,ep=eh&&eh.exports===ed?ea.Buffer:void 0,ef=(ep?ep.isBuffer:void 0)||eu;et.exports=ef},"./packages/@logrocket/utils/node_modules/lodash/isFunction.js":function(et,eo,ei){var ea=ei(/*! ./_baseGetTag */"./packages/@logrocket/utils/node_modules/lodash/_baseGetTag.js"),eu=ei(/*! ./isObject */"./packages/@logrocket/utils/node_modules/lodash/isObject.js"),ed="[object AsyncFunction]",eh="[object Function]",ep="[object GeneratorFunction]",ef="[object Proxy]";function isFunction(et){if(!eu(et))return!1;var eo=ea(et);return eo==eh||eo==ep||eo==ed||eo==ef}et.exports=isFunction},"./packages/@logrocket/utils/node_modules/lodash/isLength.js":function(et){var eo=9007199254740991;function isLength(et){return"number"==typeof et&&et>-1&&et%1==0&&et<=eo}et.exports=isLength},"./packages/@logrocket/utils/node_modules/lodash/isObject.js":function(et){function isObject(et){var eo=typeof et;return null!=et&&("object"==eo||"function"==eo)}et.exports=isObject},"./packages/@logrocket/utils/node_modules/lodash/isObjectLike.js":function(et){function isObjectLike(et){return null!=et&&"object"==typeof et}et.exports=isObjectLike},"./packages/@logrocket/utils/node_modules/lodash/isSymbol.js":function(et,eo,ei){var ea=ei(/*! ./_baseGetTag */"./packages/@logrocket/utils/node_modules/lodash/_baseGetTag.js"),eu=ei(/*! ./isObjectLike */"./packages/@logrocket/utils/node_modules/lodash/isObjectLike.js"),ed="[object Symbol]";function isSymbol(et){return"symbol"==typeof et||eu(et)&&ea(et)==ed}et.exports=isSymbol},"./packages/@logrocket/utils/node_modules/lodash/isTypedArray.js":function(et,eo,ei){var ea=ei(/*! ./_baseIsTypedArray */"./packages/@logrocket/utils/node_modules/lodash/_baseIsTypedArray.js"),eu=ei(/*! ./_baseUnary */"./packages/@logrocket/utils/node_modules/lodash/_baseUnary.js"),ed=ei(/*! ./_nodeUtil */"./packages/@logrocket/utils/node_modules/lodash/_nodeUtil.js"),eh=ed&&ed.isTypedArray,ep=eh?eu(eh):ea;et.exports=ep},"./packages/@logrocket/utils/node_modules/lodash/keys.js":function(et,eo,ei){var ea=ei(/*! ./_arrayLikeKeys */"./packages/@logrocket/utils/node_modules/lodash/_arrayLikeKeys.js"),eu=ei(/*! ./_baseKeys */"./packages/@logrocket/utils/node_modules/lodash/_baseKeys.js"),ed=ei(/*! ./isArrayLike */"./packages/@logrocket/utils/node_modules/lodash/isArrayLike.js");function keys(et){return ed(et)?ea(et):eu(et)}et.exports=keys},"./packages/@logrocket/utils/node_modules/lodash/memoize.js":function(et,eo,ei){var ea=ei(/*! ./_MapCache */"./packages/@logrocket/utils/node_modules/lodash/_MapCache.js"),eu="Expected a function";function memoize(et,eo){if("function"!=typeof et||null!=eo&&"function"!=typeof eo)throw TypeError(eu);var memoized=function(){var ei=arguments,ea=eo?eo.apply(this,ei):ei[0],eu=memoized.cache;if(eu.has(ea))return eu.get(ea);var ed=et.apply(this,ei);return memoized.cache=eu.set(ea,ed)||eu,ed};return memoized.cache=new(memoize.Cache||ea),memoized}memoize.Cache=ea,et.exports=memoize},"./packages/@logrocket/utils/node_modules/lodash/property.js":function(et,eo,ei){var ea=ei(/*! ./_baseProperty */"./packages/@logrocket/utils/node_modules/lodash/_baseProperty.js"),eu=ei(/*! ./_basePropertyDeep */"./packages/@logrocket/utils/node_modules/lodash/_basePropertyDeep.js"),ed=ei(/*! ./_isKey */"./packages/@logrocket/utils/node_modules/lodash/_isKey.js"),eh=ei(/*! ./_toKey */"./packages/@logrocket/utils/node_modules/lodash/_toKey.js");function property(et){return ed(et)?ea(eh(et)):eu(et)}et.exports=property},"./packages/@logrocket/utils/node_modules/lodash/sortedLastIndexBy.js":function(et,eo,ei){var ea=ei(/*! ./_baseIteratee */"./packages/@logrocket/utils/node_modules/lodash/_baseIteratee.js"),eu=ei(/*! ./_baseSortedIndexBy */"./packages/@logrocket/utils/node_modules/lodash/_baseSortedIndexBy.js");function sortedLastIndexBy(et,eo,ei){return eu(et,eo,ea(ei,2),!0)}et.exports=sortedLastIndexBy},"./packages/@logrocket/utils/node_modules/lodash/stubArray.js":function(et){function stubArray(){return[]}et.exports=stubArray},"./packages/@logrocket/utils/node_modules/lodash/stubFalse.js":function(et){function stubFalse(){return!1}et.exports=stubFalse},"./packages/@logrocket/utils/node_modules/lodash/toString.js":function(et,eo,ei){var ea=ei(/*! ./_baseToString */"./packages/@logrocket/utils/node_modules/lodash/_baseToString.js");function toString(et){return null==et?"":ea(et)}et.exports=toString},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(et){function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}et.exports=_arrayLikeToArray,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(et){function _arrayWithHoles(et){if(Array.isArray(et))return et}et.exports=_arrayWithHoles,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(et,eo,ei){var ea=ei(/*! ./arrayLikeToArray.js */"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function _arrayWithoutHoles(et){if(Array.isArray(et))return ea(et)}et.exports=_arrayWithoutHoles,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(et){function _classCallCheck(et,eo){if(!(et instanceof eo))throw TypeError("Cannot call a class as a function")}et.exports=_classCallCheck,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(et,eo,ei){var ea=ei(/*! ./toPropertyKey.js */"./node_modules/@babel/runtime/helpers/toPropertyKey.js");function _defineProperties(et,eo){for(var ei=0;ei<eo.length;ei++){var eu=eo[ei];eu.enumerable=eu.enumerable||!1,eu.configurable=!0,"value"in eu&&(eu.writable=!0),Object.defineProperty(et,ea(eu.key),eu)}}function _createClass(et,eo,ei){return eo&&_defineProperties(et.prototype,eo),ei&&_defineProperties(et,ei),Object.defineProperty(et,"prototype",{writable:!1}),et}et.exports=_createClass,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(et,eo,ei){var ea=ei(/*! ./toPropertyKey.js */"./node_modules/@babel/runtime/helpers/toPropertyKey.js");function _defineProperty(et,eo,ei){return(eo=ea(eo))in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}et.exports=_defineProperty,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(et){function _interopRequireDefault(et){return et&&et.__esModule?et:{default:et}}et.exports=_interopRequireDefault,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(et){function _iterableToArray(et){if("undefined"!=typeof Symbol&&null!=et[Symbol.iterator]||null!=et["@@iterator"])return Array.from(et)}et.exports=_iterableToArray,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(et){function _iterableToArrayLimit(et,eo){var ei=null==et?null:"undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(null!=ei){var ea,eu,ed,eh,ep=[],ef=!0,em=!1;try{if(ed=(ei=ei.call(et)).next,0===eo){if(Object(ei)!==ei)return;ef=!1}else for(;!(ef=(ea=ed.call(ei)).done)&&(ep.push(ea.value),ep.length!==eo);ef=!0);}catch(et){em=!0,eu=et}finally{try{if(!ef&&null!=ei.return&&(eh=ei.return(),Object(eh)!==eh))return}finally{if(em)throw eu}}return ep}}et.exports=_iterableToArrayLimit,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(et){function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}et.exports=_nonIterableRest,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(et){function _nonIterableSpread(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}et.exports=_nonIterableSpread,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":function(et,eo,ei){var ea=ei(/*! ./objectWithoutPropertiesLoose.js */"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");function _objectWithoutProperties(et,eo){if(null==et)return{};var ei,eu,ed=ea(et,eo);if(Object.getOwnPropertySymbols){var eh=Object.getOwnPropertySymbols(et);for(eu=0;eu<eh.length;eu++)ei=eh[eu],!(eo.indexOf(ei)>=0)&&Object.prototype.propertyIsEnumerable.call(et,ei)&&(ed[ei]=et[ei])}return ed}et.exports=_objectWithoutProperties,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":function(et){function _objectWithoutPropertiesLoose(et,eo){if(null==et)return{};var ei,ea,eu={},ed=Object.keys(et);for(ea=0;ea<ed.length;ea++)ei=ed[ea],eo.indexOf(ei)>=0||(eu[ei]=et[ei]);return eu}et.exports=_objectWithoutPropertiesLoose,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(et,eo,ei){var ea=ei(/*! ./arrayWithHoles.js */"./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),eu=ei(/*! ./iterableToArrayLimit.js */"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),ed=ei(/*! ./unsupportedIterableToArray.js */"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),eh=ei(/*! ./nonIterableRest.js */"./node_modules/@babel/runtime/helpers/nonIterableRest.js");function _slicedToArray(et,eo){return ea(et)||eu(et,eo)||ed(et,eo)||eh()}et.exports=_slicedToArray,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(et,eo,ei){var ea=ei(/*! ./arrayWithoutHoles.js */"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),eu=ei(/*! ./iterableToArray.js */"./node_modules/@babel/runtime/helpers/iterableToArray.js"),ed=ei(/*! ./unsupportedIterableToArray.js */"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),eh=ei(/*! ./nonIterableSpread.js */"./node_modules/@babel/runtime/helpers/nonIterableSpread.js");function _toConsumableArray(et){return ea(et)||eu(et)||ed(et)||eh()}et.exports=_toConsumableArray,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(et,eo,ei){var ea=ei(/*! ./typeof.js */"./node_modules/@babel/runtime/helpers/typeof.js").default;function _toPrimitive(et,eo){if("object"!==ea(et)||null===et)return et;var ei=et[Symbol.toPrimitive];if(void 0!==ei){var eu=ei.call(et,eo||"default");if("object"!==ea(eu))return eu;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===eo?String:Number)(et)}et.exports=_toPrimitive,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(et,eo,ei){var ea=ei(/*! ./typeof.js */"./node_modules/@babel/runtime/helpers/typeof.js").default,eu=ei(/*! ./toPrimitive.js */"./node_modules/@babel/runtime/helpers/toPrimitive.js");function _toPropertyKey(et){var eo=eu(et,"string");return"symbol"===ea(eo)?eo:String(eo)}et.exports=_toPropertyKey,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(et){function _typeof(eo){return et.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(et){return typeof et}:function(et){return et&&"function"==typeof Symbol&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},et.exports.__esModule=!0,et.exports.default=et.exports,_typeof(eo)}et.exports=_typeof,et.exports.__esModule=!0,et.exports.default=et.exports},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(et,eo,ei){var ea=ei(/*! ./arrayLikeToArray.js */"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return ea(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return ea(et,eo)}}et.exports=_unsupportedIterableToArray,et.exports.__esModule=!0,et.exports.default=et.exports}},eo={};function __nested_webpack_require_412220__(ei){var ea=eo[ei];if(void 0!==ea)return ea.exports;var eu=eo[ei]={id:ei,loaded:!1,exports:{}};return et[ei](eu,eu.exports,__nested_webpack_require_412220__),eu.loaded=!0,eu.exports}!function(){__nested_webpack_require_412220__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(et){if("object"==typeof window)return window}}()}(),function(){__nested_webpack_require_412220__.nmd=function(et){return et.paths=[],et.children||(et.children=[]),et}}();var ei={};return!function(){"use strict";var et=ei,eo=__nested_webpack_require_412220__(/*! @babel/runtime/helpers/interopRequireDefault */"./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var ea=(0,eo(__nested_webpack_require_412220__(/*! ./setup */"./packages/logrocket/src/setup.js")).default)();et.default=ea}(),ei=ei.default}()})},30381:function(et,eo,ei){et=ei.nmd(et),function(eo,ei){et.exports=ei()}(0,function(){"use strict";function hooks(){return eR.apply(null,arguments)}function setHookCallback(et){eR=et}function isArray(et){return et instanceof Array||"[object Array]"===Object.prototype.toString.call(et)}function isObject(et){return null!=et&&"[object Object]"===Object.prototype.toString.call(et)}function hasOwnProp(et,eo){return Object.prototype.hasOwnProperty.call(et,eo)}function isObjectEmpty(et){var eo;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(et).length;for(eo in et)if(hasOwnProp(et,eo))return!1;return!0}function isUndefined(et){return void 0===et}function isNumber(et){return"number"==typeof et||"[object Number]"===Object.prototype.toString.call(et)}function isDate(et){return et instanceof Date||"[object Date]"===Object.prototype.toString.call(et)}function map(et,eo){var ei,ea=[],eu=et.length;for(ei=0;ei<eu;++ei)ea.push(eo(et[ei],ei));return ea}function extend(et,eo){for(var ei in eo)hasOwnProp(eo,ei)&&(et[ei]=eo[ei]);return hasOwnProp(eo,"toString")&&(et.toString=eo.toString),hasOwnProp(eo,"valueOf")&&(et.valueOf=eo.valueOf),et}function createUTC(et,eo,ei,ea){return createLocalOrUTC(et,eo,ei,ea,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(et){return null==et._pf&&(et._pf=defaultParsingFlags()),et._pf}function isValid(et){if(null==et._isValid){var eo=getParsingFlags(et),ei=eT.call(eo.parsedDateParts,function(et){return null!=et}),ea=!isNaN(et._d.getTime())&&eo.overflow<0&&!eo.empty&&!eo.invalidEra&&!eo.invalidMonth&&!eo.invalidWeekday&&!eo.weekdayMismatch&&!eo.nullInput&&!eo.invalidFormat&&!eo.userInvalidated&&(!eo.meridiem||eo.meridiem&&ei);if(et._strict&&(ea=ea&&0===eo.charsLeftOver&&0===eo.unusedTokens.length&&void 0===eo.bigHour),null!=Object.isFrozen&&Object.isFrozen(et))return ea;et._isValid=ea}return et._isValid}function createInvalid(et){var eo=createUTC(NaN);return null!=et?extend(getParsingFlags(eo),et):getParsingFlags(eo).userInvalidated=!0,eo}eT=Array.prototype.some?Array.prototype.some:function(et){var eo,ei=Object(this),ea=ei.length>>>0;for(eo=0;eo<ea;eo++)if(eo in ei&&et.call(this,ei[eo],eo,ei))return!0;return!1};var eo,ei,ea=hooks.momentProperties=[],eu=!1;function copyConfig(et,eo){var ei,eu,ed,eh=ea.length;if(isUndefined(eo._isAMomentObject)||(et._isAMomentObject=eo._isAMomentObject),isUndefined(eo._i)||(et._i=eo._i),isUndefined(eo._f)||(et._f=eo._f),isUndefined(eo._l)||(et._l=eo._l),isUndefined(eo._strict)||(et._strict=eo._strict),isUndefined(eo._tzm)||(et._tzm=eo._tzm),isUndefined(eo._isUTC)||(et._isUTC=eo._isUTC),isUndefined(eo._offset)||(et._offset=eo._offset),isUndefined(eo._pf)||(et._pf=getParsingFlags(eo)),isUndefined(eo._locale)||(et._locale=eo._locale),eh>0)for(ei=0;ei<eh;ei++)isUndefined(ed=eo[eu=ea[ei]])||(et[eu]=ed);return et}function Moment(et){copyConfig(this,et),this._d=new Date(null!=et._d?et._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===eu&&(eu=!0,hooks.updateOffset(this),eu=!1)}function isMoment(et){return et instanceof Moment||null!=et&&null!=et._isAMomentObject}function warn(et){!1===hooks.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+et)}function deprecate(et,eo){var ei=!0;return extend(function(){if(null!=hooks.deprecationHandler&&hooks.deprecationHandler(null,et),ei){var ea,eu,ed,eh=[],ep=arguments.length;for(eu=0;eu<ep;eu++){if(ea="","object"==typeof arguments[eu]){for(ed in ea+="\n["+eu+"] ",arguments[0])hasOwnProp(arguments[0],ed)&&(ea+=ed+": "+arguments[0][ed]+", ");ea=ea.slice(0,-2)}else ea=arguments[eu];eh.push(ea)}warn(et+"\nArguments: "+Array.prototype.slice.call(eh).join("")+"\n"+Error().stack),ei=!1}return eo.apply(this,arguments)},eo)}var ed={};function deprecateSimple(et,eo){null!=hooks.deprecationHandler&&hooks.deprecationHandler(et,eo),ed[et]||(warn(eo),ed[et]=!0)}function isFunction(et){return"undefined"!=typeof Function&&et instanceof Function||"[object Function]"===Object.prototype.toString.call(et)}function set(et){var eo,ei;for(ei in et)hasOwnProp(et,ei)&&(isFunction(eo=et[ei])?this[ei]=eo:this["_"+ei]=eo);this._config=et,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(et,eo){var ei,ea=extend({},et);for(ei in eo)hasOwnProp(eo,ei)&&(isObject(et[ei])&&isObject(eo[ei])?(ea[ei]={},extend(ea[ei],et[ei]),extend(ea[ei],eo[ei])):null!=eo[ei]?ea[ei]=eo[ei]:delete ea[ei]);for(ei in et)hasOwnProp(et,ei)&&!hasOwnProp(eo,ei)&&isObject(et[ei])&&(ea[ei]=extend({},ea[ei]));return ea}function Locale(et){null!=et&&this.set(et)}hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null,eE=Object.keys?Object.keys:function(et){var eo,ei=[];for(eo in et)hasOwnProp(et,eo)&&ei.push(eo);return ei};var eh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(et,eo,ei){var ea=this._calendar[et]||this._calendar.sameElse;return isFunction(ea)?ea.call(eo,ei):ea}function zeroFill(et,eo,ei){var ea=""+Math.abs(et);return(et>=0?ei?"+":"":"-")+Math.pow(10,Math.max(0,eo-ea.length)).toString().substr(1)+ea}var ep=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ef=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,em={},eg={};function addFormatToken(et,eo,ei,ea){var eu=ea;"string"==typeof ea&&(eu=function(){return this[ea]()}),et&&(eg[et]=eu),eo&&(eg[eo[0]]=function(){return zeroFill(eu.apply(this,arguments),eo[1],eo[2])}),ei&&(eg[ei]=function(){return this.localeData().ordinal(eu.apply(this,arguments),et)})}function removeFormattingTokens(et){return et.match(/\[[\s\S]/)?et.replace(/^\[|\]$/g,""):et.replace(/\\/g,"")}function makeFormatFunction(et){var eo,ei,ea=et.match(ep);for(eo=0,ei=ea.length;eo<ei;eo++)eg[ea[eo]]?ea[eo]=eg[ea[eo]]:ea[eo]=removeFormattingTokens(ea[eo]);return function(eo){var eu,ed="";for(eu=0;eu<ei;eu++)ed+=isFunction(ea[eu])?ea[eu].call(eo,et):ea[eu];return ed}}function formatMoment(et,eo){return et.isValid()?(em[eo=expandFormat(eo,et.localeData())]=em[eo]||makeFormatFunction(eo),em[eo](et)):et.localeData().invalidDate()}function expandFormat(et,eo){var ei=5;function replaceLongDateFormatTokens(et){return eo.longDateFormat(et)||et}for(ef.lastIndex=0;ei>=0&&ef.test(et);)et=et.replace(ef,replaceLongDateFormatTokens),ef.lastIndex=0,ei-=1;return et}var ey={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(et){var eo=this._longDateFormat[et],ei=this._longDateFormat[et.toUpperCase()];return eo||!ei?eo:(this._longDateFormat[et]=ei.match(ep).map(function(et){return"MMMM"===et||"MM"===et||"DD"===et||"dddd"===et?et.slice(1):et}).join(""),this._longDateFormat[et])}var eC="Invalid date";function invalidDate(){return this._invalidDate}var eS="%d",e_=/\d{1,2}/;function ordinal(et){return this._ordinal.replace("%d",et)}var ew={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(et,eo,ei,ea){var eu=this._relativeTime[ei];return isFunction(eu)?eu(et,eo,ei,ea):eu.replace(/%d/i,et)}function pastFuture(et,eo){var ei=this._relativeTime[et>0?"future":"past"];return isFunction(ei)?ei(eo):ei.replace(/%s/i,eo)}var eA={};function addUnitAlias(et,eo){var ei=et.toLowerCase();eA[ei]=eA[ei+"s"]=eA[eo]=et}function normalizeUnits(et){return"string"==typeof et?eA[et]||eA[et.toLowerCase()]:void 0}function normalizeObjectUnits(et){var eo,ei,ea={};for(ei in et)hasOwnProp(et,ei)&&(eo=normalizeUnits(ei))&&(ea[eo]=et[ei]);return ea}var eI={};function addUnitPriority(et,eo){eI[et]=eo}function getPrioritizedUnits(et){var eo,ei=[];for(eo in et)hasOwnProp(et,eo)&&ei.push({unit:eo,priority:eI[eo]});return ei.sort(function(et,eo){return et.priority-eo.priority}),ei}function isLeapYear(et){return et%4==0&&et%100!=0||et%400==0}function absFloor(et){return et<0?Math.ceil(et)||0:Math.floor(et)}function toInt(et){var eo=+et,ei=0;return 0!==eo&&isFinite(eo)&&(ei=absFloor(eo)),ei}function makeGetSet(et,eo){return function(ei){return null!=ei?(set$1(this,et,ei),hooks.updateOffset(this,eo),this):get(this,et)}}function get(et,eo){return et.isValid()?et._d["get"+(et._isUTC?"UTC":"")+eo]():NaN}function set$1(et,eo,ei){et.isValid()&&!isNaN(ei)&&("FullYear"===eo&&isLeapYear(et.year())&&1===et.month()&&29===et.date()?(ei=toInt(ei),et._d["set"+(et._isUTC?"UTC":"")+eo](ei,et.month(),daysInMonth(ei,et.month()))):et._d["set"+(et._isUTC?"UTC":"")+eo](ei))}function stringGet(et){return isFunction(this[et=normalizeUnits(et)])?this[et]():this}function stringSet(et,eo){if("object"==typeof et){var ei,ea=getPrioritizedUnits(et=normalizeObjectUnits(et)),eu=ea.length;for(ei=0;ei<eu;ei++)this[ea[ei].unit](et[ea[ei].unit])}else if(isFunction(this[et=normalizeUnits(et)]))return this[et](eo);return this}var eR,eT,eE,eP,ek=/\d/,eO=/\d\d/,eM=/\d{3}/,eD=/\d{4}/,eU=/[+-]?\d{6}/,eL=/\d\d?/,eN=/\d\d\d\d?/,eB=/\d\d\d\d\d\d?/,eF=/\d{1,3}/,ej=/\d{1,4}/,eG=/[+-]?\d{1,6}/,eH=/\d+/,eK=/[+-]?\d+/,ez=/Z|[+-]\d\d:?\d\d/gi,eW=/Z|[+-]\d\d(?::?\d\d)?/gi,eV=/[+-]?\d+(\.\d{1,3})?/,eJ=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function addRegexToken(et,eo,ei){eP[et]=isFunction(eo)?eo:function(et,ea){return et&&ei?ei:eo}}function getParseRegexForToken(et,eo){return hasOwnProp(eP,et)?eP[et](eo._strict,eo._locale):new RegExp(unescapeFormat(et))}function unescapeFormat(et){return regexEscape(et.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(et,eo,ei,ea,eu){return eo||ei||ea||eu}))}function regexEscape(et){return et.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}eP={};var eY={};function addParseToken(et,eo){var ei,ea,eu=eo;for("string"==typeof et&&(et=[et]),isNumber(eo)&&(eu=function(et,ei){ei[eo]=toInt(et)}),ea=et.length,ei=0;ei<ea;ei++)eY[et[ei]]=eu}function addWeekParseToken(et,eo){addParseToken(et,function(et,ei,ea,eu){ea._w=ea._w||{},eo(et,ea._w,ea,eu)})}function addTimeToArrayFromToken(et,eo,ei){null!=eo&&hasOwnProp(eY,et)&&eY[et](eo,ei._a,ei,et)}var e$=0,eZ=1,eQ=2,eX=3,e0=4,e4=5,e6=6,e5=7,e8=8;function mod(et,eo){return(et%eo+eo)%eo}function daysInMonth(et,eo){if(isNaN(et)||isNaN(eo))return NaN;var ei=mod(eo,12);return et+=(eo-ei)/12,1===ei?isLeapYear(et)?29:28:31-ei%7%2}tv=Array.prototype.indexOf?Array.prototype.indexOf:function(et){var eo;for(eo=0;eo<this.length;++eo)if(this[eo]===et)return eo;return -1},addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1}),addFormatToken("MMM",0,0,function(et){return this.localeData().monthsShort(this,et)}),addFormatToken("MMMM",0,0,function(et){return this.localeData().months(this,et)}),addUnitAlias("month","M"),addUnitPriority("month",8),addRegexToken("M",eL),addRegexToken("MM",eL,eO),addRegexToken("MMM",function(et,eo){return eo.monthsShortRegex(et)}),addRegexToken("MMMM",function(et,eo){return eo.monthsRegex(et)}),addParseToken(["M","MM"],function(et,eo){eo[eZ]=toInt(et)-1}),addParseToken(["MMM","MMMM"],function(et,eo,ei,ea){var eu=ei._locale.monthsParse(et,ea,ei._strict);null!=eu?eo[eZ]=eu:getParsingFlags(ei).invalidMonth=et});var e7="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),e9="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,tn=eJ,ti=eJ;function localeMonths(et,eo){return et?isArray(this._months)?this._months[et.month()]:this._months[(this._months.isFormat||tr).test(eo)?"format":"standalone"][et.month()]:isArray(this._months)?this._months:this._months.standalone}function localeMonthsShort(et,eo){return et?isArray(this._monthsShort)?this._monthsShort[et.month()]:this._monthsShort[tr.test(eo)?"format":"standalone"][et.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(et,eo,ei){var ea,eu,ed,eh=et.toLocaleLowerCase();if(!this._monthsParse)for(ea=0,this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];ea<12;++ea)ed=createUTC([2e3,ea]),this._shortMonthsParse[ea]=this.monthsShort(ed,"").toLocaleLowerCase(),this._longMonthsParse[ea]=this.months(ed,"").toLocaleLowerCase();return ei?"MMM"===eo?-1!==(eu=tv.call(this._shortMonthsParse,eh))?eu:null:-1!==(eu=tv.call(this._longMonthsParse,eh))?eu:null:"MMM"===eo?-1!==(eu=tv.call(this._shortMonthsParse,eh))?eu:-1!==(eu=tv.call(this._longMonthsParse,eh))?eu:null:-1!==(eu=tv.call(this._longMonthsParse,eh))?eu:-1!==(eu=tv.call(this._shortMonthsParse,eh))?eu:null}function localeMonthsParse(et,eo,ei){var ea,eu,ed;if(this._monthsParseExact)return handleStrictParse.call(this,et,eo,ei);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ea=0;ea<12;ea++)if(eu=createUTC([2e3,ea]),ei&&!this._longMonthsParse[ea]&&(this._longMonthsParse[ea]=RegExp("^"+this.months(eu,"").replace(".","")+"$","i"),this._shortMonthsParse[ea]=RegExp("^"+this.monthsShort(eu,"").replace(".","")+"$","i")),ei||this._monthsParse[ea]||(ed="^"+this.months(eu,"")+"|^"+this.monthsShort(eu,""),this._monthsParse[ea]=RegExp(ed.replace(".",""),"i")),ei&&"MMMM"===eo&&this._longMonthsParse[ea].test(et)||ei&&"MMM"===eo&&this._shortMonthsParse[ea].test(et)||!ei&&this._monthsParse[ea].test(et))return ea}function setMonth(et,eo){var ei;if(!et.isValid())return et;if("string"==typeof eo){if(/^\d+$/.test(eo))eo=toInt(eo);else if(!isNumber(eo=et.localeData().monthsParse(eo)))return et}return ei=Math.min(et.date(),daysInMonth(et.year(),eo)),et._d["set"+(et._isUTC?"UTC":"")+"Month"](eo,ei),et}function getSetMonth(et){return null!=et?(setMonth(this,et),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(et){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),et)?this._monthsShortStrictRegex:this._monthsShortRegex:(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=tn),this._monthsShortStrictRegex&&et?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(et){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),et)?this._monthsStrictRegex:this._monthsRegex:(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=ti),this._monthsStrictRegex&&et?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function cmpLenRev(et,eo){return eo.length-et.length}var et,eo,ei=[],ea=[],eu=[];for(et=0;et<12;et++)eo=createUTC([2e3,et]),ei.push(this.monthsShort(eo,"")),ea.push(this.months(eo,"")),eu.push(this.months(eo,"")),eu.push(this.monthsShort(eo,""));for(ei.sort(cmpLenRev),ea.sort(cmpLenRev),eu.sort(cmpLenRev),et=0;et<12;et++)ei[et]=regexEscape(ei[et]),ea[et]=regexEscape(ea[et]);for(et=0;et<24;et++)eu[et]=regexEscape(eu[et]);this._monthsRegex=RegExp("^("+eu.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+ea.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+ei.join("|")+")","i")}function daysInYear(et){return isLeapYear(et)?366:365}addFormatToken("Y",0,0,function(){var et=this.year();return et<=9999?zeroFill(et,4):"+"+et}),addFormatToken(0,["YY",2],0,function(){return this.year()%100}),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addUnitPriority("year",1),addRegexToken("Y",eK),addRegexToken("YY",eL,eO),addRegexToken("YYYY",ej,eD),addRegexToken("YYYYY",eG,eU),addRegexToken("YYYYYY",eG,eU),addParseToken(["YYYYY","YYYYYY"],e$),addParseToken("YYYY",function(et,eo){eo[e$]=2===et.length?hooks.parseTwoDigitYear(et):toInt(et)}),addParseToken("YY",function(et,eo){eo[e$]=hooks.parseTwoDigitYear(et)}),addParseToken("Y",function(et,eo){eo[e$]=parseInt(et,10)}),hooks.parseTwoDigitYear=function(et){return toInt(et)+(toInt(et)>68?1900:2e3)};var ta=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(et,eo,ei,ea,eu,ed,eh){var ep;return et<100&&et>=0?isFinite((ep=new Date(et+400,eo,ei,ea,eu,ed,eh)).getFullYear())&&ep.setFullYear(et):ep=new Date(et,eo,ei,ea,eu,ed,eh),ep}function createUTCDate(et){var eo,ei;return et<100&&et>=0?(ei=Array.prototype.slice.call(arguments),ei[0]=et+400,isFinite((eo=new Date(Date.UTC.apply(null,ei))).getUTCFullYear())&&eo.setUTCFullYear(et)):eo=new Date(Date.UTC.apply(null,arguments)),eo}function firstWeekOffset(et,eo,ei){var ea=7+eo-ei;return-((7+createUTCDate(et,0,ea).getUTCDay()-eo)%7)+ea-1}function dayOfYearFromWeeks(et,eo,ei,ea,eu){var ed,eh,ep=1+7*(eo-1)+(7+ei-ea)%7+firstWeekOffset(et,ea,eu);return ep<=0?eh=daysInYear(ed=et-1)+ep:ep>daysInYear(et)?(ed=et+1,eh=ep-daysInYear(et)):(ed=et,eh=ep),{year:ed,dayOfYear:eh}}function weekOfYear(et,eo,ei){var ea,eu,ed=firstWeekOffset(et.year(),eo,ei),eh=Math.floor((et.dayOfYear()-ed-1)/7)+1;return eh<1?ea=eh+weeksInYear(eu=et.year()-1,eo,ei):eh>weeksInYear(et.year(),eo,ei)?(ea=eh-weeksInYear(et.year(),eo,ei),eu=et.year()+1):(eu=et.year(),ea=eh),{week:ea,year:eu}}function weeksInYear(et,eo,ei){var ea=firstWeekOffset(et,eo,ei),eu=firstWeekOffset(et+1,eo,ei);return(daysInYear(et)-ea+eu)/7}function localeWeek(et){return weekOfYear(et,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",eL),addRegexToken("ww",eL,eO),addRegexToken("W",eL),addRegexToken("WW",eL,eO),addWeekParseToken(["w","ww","W","WW"],function(et,eo,ei,ea){eo[ea.substr(0,1)]=toInt(et)});var ts={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(et){var eo=this.localeData().week(this);return null==et?eo:this.add((et-eo)*7,"d")}function getSetISOWeek(et){var eo=weekOfYear(this,1,4).week;return null==et?eo:this.add((et-eo)*7,"d")}function parseWeekday(et,eo){return"string"!=typeof et?et:isNaN(et)?"number"==typeof(et=eo.weekdaysParse(et))?et:null:parseInt(et,10)}function parseIsoWeekday(et,eo){return"string"==typeof et?eo.weekdaysParse(et)%7||7:isNaN(et)?null:et}function shiftWeekdays(et,eo){return et.slice(eo,7).concat(et.slice(0,eo))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,function(et){return this.localeData().weekdaysMin(this,et)}),addFormatToken("ddd",0,0,function(et){return this.localeData().weekdaysShort(this,et)}),addFormatToken("dddd",0,0,function(et){return this.localeData().weekdays(this,et)}),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",eL),addRegexToken("e",eL),addRegexToken("E",eL),addRegexToken("dd",function(et,eo){return eo.weekdaysMinRegex(et)}),addRegexToken("ddd",function(et,eo){return eo.weekdaysShortRegex(et)}),addRegexToken("dddd",function(et,eo){return eo.weekdaysRegex(et)}),addWeekParseToken(["dd","ddd","dddd"],function(et,eo,ei,ea){var eu=ei._locale.weekdaysParse(et,ea,ei._strict);null!=eu?eo.d=eu:getParsingFlags(ei).invalidWeekday=et}),addWeekParseToken(["d","e","E"],function(et,eo,ei,ea){eo[ea]=toInt(et)});var tc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),tu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),td="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tp=eJ,tf=eJ,tm=eJ;function localeWeekdays(et,eo){var ei=isArray(this._weekdays)?this._weekdays:this._weekdays[et&&!0!==et&&this._weekdays.isFormat.test(eo)?"format":"standalone"];return!0===et?shiftWeekdays(ei,this._week.dow):et?ei[et.day()]:ei}function localeWeekdaysShort(et){return!0===et?shiftWeekdays(this._weekdaysShort,this._week.dow):et?this._weekdaysShort[et.day()]:this._weekdaysShort}function localeWeekdaysMin(et){return!0===et?shiftWeekdays(this._weekdaysMin,this._week.dow):et?this._weekdaysMin[et.day()]:this._weekdaysMin}function handleStrictParse$1(et,eo,ei){var ea,eu,ed,eh=et.toLocaleLowerCase();if(!this._weekdaysParse)for(ea=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];ea<7;++ea)ed=createUTC([2e3,1]).day(ea),this._minWeekdaysParse[ea]=this.weekdaysMin(ed,"").toLocaleLowerCase(),this._shortWeekdaysParse[ea]=this.weekdaysShort(ed,"").toLocaleLowerCase(),this._weekdaysParse[ea]=this.weekdays(ed,"").toLocaleLowerCase();return ei?"dddd"===eo?-1!==(eu=tv.call(this._weekdaysParse,eh))?eu:null:"ddd"===eo?-1!==(eu=tv.call(this._shortWeekdaysParse,eh))?eu:null:-1!==(eu=tv.call(this._minWeekdaysParse,eh))?eu:null:"dddd"===eo?-1!==(eu=tv.call(this._weekdaysParse,eh))||-1!==(eu=tv.call(this._shortWeekdaysParse,eh))?eu:-1!==(eu=tv.call(this._minWeekdaysParse,eh))?eu:null:"ddd"===eo?-1!==(eu=tv.call(this._shortWeekdaysParse,eh))||-1!==(eu=tv.call(this._weekdaysParse,eh))?eu:-1!==(eu=tv.call(this._minWeekdaysParse,eh))?eu:null:-1!==(eu=tv.call(this._minWeekdaysParse,eh))||-1!==(eu=tv.call(this._weekdaysParse,eh))?eu:-1!==(eu=tv.call(this._shortWeekdaysParse,eh))?eu:null}function localeWeekdaysParse(et,eo,ei){var ea,eu,ed;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,et,eo,ei);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ea=0;ea<7;ea++){if(eu=createUTC([2e3,1]).day(ea),ei&&!this._fullWeekdaysParse[ea]&&(this._fullWeekdaysParse[ea]=RegExp("^"+this.weekdays(eu,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ea]=RegExp("^"+this.weekdaysShort(eu,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ea]=RegExp("^"+this.weekdaysMin(eu,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ea]||(ed="^"+this.weekdays(eu,"")+"|^"+this.weekdaysShort(eu,"")+"|^"+this.weekdaysMin(eu,""),this._weekdaysParse[ea]=RegExp(ed.replace(".",""),"i")),ei&&"dddd"===eo&&this._fullWeekdaysParse[ea].test(et)||ei&&"ddd"===eo&&this._shortWeekdaysParse[ea].test(et))return ea;if(ei&&"dd"===eo&&this._minWeekdaysParse[ea].test(et))return ea;if(!ei&&this._weekdaysParse[ea].test(et))return ea}}function getSetDayOfWeek(et){if(!this.isValid())return null!=et?this:NaN;var eo=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=et?(et=parseWeekday(et,this.localeData()),this.add(et-eo,"d")):eo}function getSetLocaleDayOfWeek(et){if(!this.isValid())return null!=et?this:NaN;var eo=(this.day()+7-this.localeData()._week.dow)%7;return null==et?eo:this.add(et-eo,"d")}function getSetISODayOfWeek(et){if(!this.isValid())return null!=et?this:NaN;if(null==et)return this.day()||7;var eo=parseIsoWeekday(et,this.localeData());return this.day(this.day()%7?eo:eo-7)}function weekdaysRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et)?this._weekdaysStrictRegex:this._weekdaysRegex:(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=tp),this._weekdaysStrictRegex&&et?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tf),this._weekdaysShortStrictRegex&&et?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tm),this._weekdaysMinStrictRegex&&et?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(et,eo){return eo.length-et.length}var et,eo,ei,ea,eu,ed=[],eh=[],ep=[],ef=[];for(et=0;et<7;et++)eo=createUTC([2e3,1]).day(et),ei=regexEscape(this.weekdaysMin(eo,"")),ea=regexEscape(this.weekdaysShort(eo,"")),eu=regexEscape(this.weekdays(eo,"")),ed.push(ei),eh.push(ea),ep.push(eu),ef.push(ei),ef.push(ea),ef.push(eu);ed.sort(cmpLenRev),eh.sort(cmpLenRev),ep.sort(cmpLenRev),ef.sort(cmpLenRev),this._weekdaysRegex=RegExp("^("+ef.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+ep.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+eh.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+ed.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(et,eo){addFormatToken(et,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),eo)})}function matchMeridiem(et,eo){return eo._meridiemParse}function localeIsPM(et){return"p"===(et+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}),addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)}),addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",eL),addRegexToken("h",eL),addRegexToken("k",eL),addRegexToken("HH",eL,eO),addRegexToken("hh",eL,eO),addRegexToken("kk",eL,eO),addRegexToken("hmm",eN),addRegexToken("hmmss",eB),addRegexToken("Hmm",eN),addRegexToken("Hmmss",eB),addParseToken(["H","HH"],eX),addParseToken(["k","kk"],function(et,eo,ei){var ea=toInt(et);eo[eX]=24===ea?0:ea}),addParseToken(["a","A"],function(et,eo,ei){ei._isPm=ei._locale.isPM(et),ei._meridiem=et}),addParseToken(["h","hh"],function(et,eo,ei){eo[eX]=toInt(et),getParsingFlags(ei).bigHour=!0}),addParseToken("hmm",function(et,eo,ei){var ea=et.length-2;eo[eX]=toInt(et.substr(0,ea)),eo[e0]=toInt(et.substr(ea)),getParsingFlags(ei).bigHour=!0}),addParseToken("hmmss",function(et,eo,ei){var ea=et.length-4,eu=et.length-2;eo[eX]=toInt(et.substr(0,ea)),eo[e0]=toInt(et.substr(ea,2)),eo[e4]=toInt(et.substr(eu)),getParsingFlags(ei).bigHour=!0}),addParseToken("Hmm",function(et,eo,ei){var ea=et.length-2;eo[eX]=toInt(et.substr(0,ea)),eo[e0]=toInt(et.substr(ea))}),addParseToken("Hmmss",function(et,eo,ei){var ea=et.length-4,eu=et.length-2;eo[eX]=toInt(et.substr(0,ea)),eo[e0]=toInt(et.substr(ea,2)),eo[e4]=toInt(et.substr(eu))});var tg=/[ap]\.?m?\.?/i,ty=makeGetSet("Hours",!0);function localeMeridiem(et,eo,ei){return et>11?ei?"pm":"PM":ei?"am":"AM"}var tv,tb,tC={calendar:eh,longDateFormat:ey,invalidDate:eC,ordinal:eS,dayOfMonthOrdinalParse:e_,relativeTime:ew,months:e7,monthsShort:e9,week:ts,weekdays:tc,weekdaysMin:td,weekdaysShort:tu,meridiemParse:tg},tS={},t_={};function commonPrefix(et,eo){var ei,ea=Math.min(et.length,eo.length);for(ei=0;ei<ea;ei+=1)if(et[ei]!==eo[ei])return ei;return ea}function normalizeLocale(et){return et?et.toLowerCase().replace("_","-"):et}function chooseLocale(et){for(var eo,ei,ea,eu,ed=0;ed<et.length;){for(eo=(eu=normalizeLocale(et[ed]).split("-")).length,ei=(ei=normalizeLocale(et[ed+1]))?ei.split("-"):null;eo>0;){if(ea=loadLocale(eu.slice(0,eo).join("-")))return ea;if(ei&&ei.length>=eo&&commonPrefix(eu,ei)>=eo-1)break;eo--}ed++}return tb}function isLocaleNameSane(et){return null!=et.match("^[^/\\\\]*$")}function loadLocale(eo){var ei=null;if(void 0===tS[eo]&&et&&et.exports&&isLocaleNameSane(eo))try{ei=tb._abbr,function(){var et=Error("Cannot find module 'undefined'");throw et.code="MODULE_NOT_FOUND",et}(),getSetGlobalLocale(ei)}catch(et){tS[eo]=null}return tS[eo]}function getSetGlobalLocale(et,eo){var ei;return et&&((ei=isUndefined(eo)?getLocale(et):defineLocale(et,eo))?tb=ei:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+et+" not found. Did you forget to load it?")),tb._abbr}function defineLocale(et,eo){if(null===eo)return delete tS[et],null;var ei,ea=tC;if(eo.abbr=et,null!=tS[et])deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ea=tS[et]._config;else if(null!=eo.parentLocale){if(null!=tS[eo.parentLocale])ea=tS[eo.parentLocale]._config;else{if(null==(ei=loadLocale(eo.parentLocale)))return t_[eo.parentLocale]||(t_[eo.parentLocale]=[]),t_[eo.parentLocale].push({name:et,config:eo}),null;ea=ei._config}}return tS[et]=new Locale(mergeConfigs(ea,eo)),t_[et]&&t_[et].forEach(function(et){defineLocale(et.name,et.config)}),getSetGlobalLocale(et),tS[et]}function updateLocale(et,eo){if(null!=eo){var ei,ea,eu=tC;null!=tS[et]&&null!=tS[et].parentLocale?tS[et].set(mergeConfigs(tS[et]._config,eo)):(null!=(ea=loadLocale(et))&&(eu=ea._config),eo=mergeConfigs(eu,eo),null==ea&&(eo.abbr=et),(ei=new Locale(eo)).parentLocale=tS[et],tS[et]=ei),getSetGlobalLocale(et)}else null!=tS[et]&&(null!=tS[et].parentLocale?(tS[et]=tS[et].parentLocale,et===getSetGlobalLocale()&&getSetGlobalLocale(et)):null!=tS[et]&&delete tS[et]);return tS[et]}function getLocale(et){var eo;if(et&&et._locale&&et._locale._abbr&&(et=et._locale._abbr),!et)return tb;if(!isArray(et)){if(eo=loadLocale(et))return eo;et=[et]}return chooseLocale(et)}function listLocales(){return eE(tS)}function checkOverflow(et){var eo,ei=et._a;return ei&&-2===getParsingFlags(et).overflow&&(eo=ei[eZ]<0||ei[eZ]>11?eZ:ei[eQ]<1||ei[eQ]>daysInMonth(ei[e$],ei[eZ])?eQ:ei[eX]<0||ei[eX]>24||24===ei[eX]&&(0!==ei[e0]||0!==ei[e4]||0!==ei[e6])?eX:ei[e0]<0||ei[e0]>59?e0:ei[e4]<0||ei[e4]>59?e4:ei[e6]<0||ei[e6]>999?e6:-1,getParsingFlags(et)._overflowDayOfYear&&(eo<e$||eo>eQ)&&(eo=eQ),getParsingFlags(et)._overflowWeeks&&-1===eo&&(eo=e5),getParsingFlags(et)._overflowWeekday&&-1===eo&&(eo=e8),getParsingFlags(et).overflow=eo),et}var tw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tA=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tI=/Z|[+-]\d\d(?::?\d\d)?/,tR=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tT=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tE=/^\/?Date\((-?\d+)/i,tP=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tk={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromISO(et){var eo,ei,ea,eu,ed,eh,ep=et._i,ef=tw.exec(ep)||tA.exec(ep),em=tR.length,eg=tT.length;if(ef){for(eo=0,getParsingFlags(et).iso=!0,ei=em;eo<ei;eo++)if(tR[eo][1].exec(ef[1])){eu=tR[eo][0],ea=!1!==tR[eo][2];break}if(null==eu){et._isValid=!1;return}if(ef[3]){for(eo=0,ei=eg;eo<ei;eo++)if(tT[eo][1].exec(ef[3])){ed=(ef[2]||" ")+tT[eo][0];break}if(null==ed){et._isValid=!1;return}}if(!ea&&null!=ed){et._isValid=!1;return}if(ef[4]){if(tI.exec(ef[4]))eh="Z";else{et._isValid=!1;return}}et._f=eu+(ed||"")+(eh||""),configFromStringAndFormat(et)}else et._isValid=!1}function extractFromRFC2822Strings(et,eo,ei,ea,eu,ed){var eh=[untruncateYear(et),e9.indexOf(eo),parseInt(ei,10),parseInt(ea,10),parseInt(eu,10)];return ed&&eh.push(parseInt(ed,10)),eh}function untruncateYear(et){var eo=parseInt(et,10);return eo<=49?2e3+eo:eo<=999?1900+eo:eo}function preprocessRFC2822(et){return et.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(et,eo,ei){return!et||tu.indexOf(et)===new Date(eo[0],eo[1],eo[2]).getDay()||(getParsingFlags(ei).weekdayMismatch=!0,ei._isValid=!1,!1)}function calculateOffset(et,eo,ei){if(et)return tk[et];if(eo)return 0;var ea=parseInt(ei,10),eu=ea%100;return 60*((ea-eu)/100)+eu}function configFromRFC2822(et){var eo,ei=tP.exec(preprocessRFC2822(et._i));if(ei){if(eo=extractFromRFC2822Strings(ei[4],ei[3],ei[2],ei[5],ei[6],ei[7]),!checkWeekday(ei[1],eo,et))return;et._a=eo,et._tzm=calculateOffset(ei[8],ei[9],ei[10]),et._d=createUTCDate.apply(null,et._a),et._d.setUTCMinutes(et._d.getUTCMinutes()-et._tzm),getParsingFlags(et).rfc2822=!0}else et._isValid=!1}function configFromString(et){var eo=tE.exec(et._i);if(null!==eo){et._d=new Date(+eo[1]);return}configFromISO(et),!1===et._isValid&&(delete et._isValid,configFromRFC2822(et),!1===et._isValid&&(delete et._isValid,et._strict?et._isValid=!1:hooks.createFromInputFallback(et)))}function defaults(et,eo,ei){return null!=et?et:null!=eo?eo:ei}function currentDateArray(et){var eo=new Date(hooks.now());return et._useUTC?[eo.getUTCFullYear(),eo.getUTCMonth(),eo.getUTCDate()]:[eo.getFullYear(),eo.getMonth(),eo.getDate()]}function configFromArray(et){var eo,ei,ea,eu,ed,eh=[];if(!et._d){for(ea=currentDateArray(et),et._w&&null==et._a[eQ]&&null==et._a[eZ]&&dayOfYearFromWeekInfo(et),null!=et._dayOfYear&&(ed=defaults(et._a[e$],ea[e$]),(et._dayOfYear>daysInYear(ed)||0===et._dayOfYear)&&(getParsingFlags(et)._overflowDayOfYear=!0),ei=createUTCDate(ed,0,et._dayOfYear),et._a[eZ]=ei.getUTCMonth(),et._a[eQ]=ei.getUTCDate()),eo=0;eo<3&&null==et._a[eo];++eo)et._a[eo]=eh[eo]=ea[eo];for(;eo<7;eo++)et._a[eo]=eh[eo]=null==et._a[eo]?2===eo?1:0:et._a[eo];24===et._a[eX]&&0===et._a[e0]&&0===et._a[e4]&&0===et._a[e6]&&(et._nextDay=!0,et._a[eX]=0),et._d=(et._useUTC?createUTCDate:createDate).apply(null,eh),eu=et._useUTC?et._d.getUTCDay():et._d.getDay(),null!=et._tzm&&et._d.setUTCMinutes(et._d.getUTCMinutes()-et._tzm),et._nextDay&&(et._a[eX]=24),et._w&&void 0!==et._w.d&&et._w.d!==eu&&(getParsingFlags(et).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(et){var eo,ei,ea,eu,ed,eh,ep,ef,em;null!=(eo=et._w).GG||null!=eo.W||null!=eo.E?(ed=1,eh=4,ei=defaults(eo.GG,et._a[e$],weekOfYear(createLocal(),1,4).year),ea=defaults(eo.W,1),((eu=defaults(eo.E,1))<1||eu>7)&&(ef=!0)):(ed=et._locale._week.dow,eh=et._locale._week.doy,em=weekOfYear(createLocal(),ed,eh),ei=defaults(eo.gg,et._a[e$],em.year),ea=defaults(eo.w,em.week),null!=eo.d?((eu=eo.d)<0||eu>6)&&(ef=!0):null!=eo.e?(eu=eo.e+ed,(eo.e<0||eo.e>6)&&(ef=!0)):eu=ed),ea<1||ea>weeksInYear(ei,ed,eh)?getParsingFlags(et)._overflowWeeks=!0:null!=ef?getParsingFlags(et)._overflowWeekday=!0:(ep=dayOfYearFromWeeks(ei,ea,eu,ed,eh),et._a[e$]=ep.year,et._dayOfYear=ep.dayOfYear)}function configFromStringAndFormat(et){if(et._f===hooks.ISO_8601){configFromISO(et);return}if(et._f===hooks.RFC_2822){configFromRFC2822(et);return}et._a=[],getParsingFlags(et).empty=!0;var eo,ei,ea,eu,ed,eh,ef,em=""+et._i,ey=em.length,eC=0;for(eo=0,ef=(ea=expandFormat(et._f,et._locale).match(ep)||[]).length;eo<ef;eo++)eu=ea[eo],(ei=(em.match(getParseRegexForToken(eu,et))||[])[0])&&((ed=em.substr(0,em.indexOf(ei))).length>0&&getParsingFlags(et).unusedInput.push(ed),em=em.slice(em.indexOf(ei)+ei.length),eC+=ei.length),eg[eu]?(ei?getParsingFlags(et).empty=!1:getParsingFlags(et).unusedTokens.push(eu),addTimeToArrayFromToken(eu,ei,et)):et._strict&&!ei&&getParsingFlags(et).unusedTokens.push(eu);getParsingFlags(et).charsLeftOver=ey-eC,em.length>0&&getParsingFlags(et).unusedInput.push(em),et._a[eX]<=12&&!0===getParsingFlags(et).bigHour&&et._a[eX]>0&&(getParsingFlags(et).bigHour=void 0),getParsingFlags(et).parsedDateParts=et._a.slice(0),getParsingFlags(et).meridiem=et._meridiem,et._a[eX]=meridiemFixWrap(et._locale,et._a[eX],et._meridiem),null!==(eh=getParsingFlags(et).era)&&(et._a[e$]=et._locale.erasConvertYear(eh,et._a[e$])),configFromArray(et),checkOverflow(et)}function meridiemFixWrap(et,eo,ei){var ea;return null==ei?eo:null!=et.meridiemHour?et.meridiemHour(eo,ei):(null!=et.isPM&&((ea=et.isPM(ei))&&eo<12&&(eo+=12),ea||12!==eo||(eo=0)),eo)}function configFromStringAndArray(et){var eo,ei,ea,eu,ed,eh,ep=!1,ef=et._f.length;if(0===ef){getParsingFlags(et).invalidFormat=!0,et._d=new Date(NaN);return}for(eu=0;eu<ef;eu++)ed=0,eh=!1,eo=copyConfig({},et),null!=et._useUTC&&(eo._useUTC=et._useUTC),eo._f=et._f[eu],configFromStringAndFormat(eo),isValid(eo)&&(eh=!0),ed+=getParsingFlags(eo).charsLeftOver+10*getParsingFlags(eo).unusedTokens.length,getParsingFlags(eo).score=ed,ep?ed<ea&&(ea=ed,ei=eo):(null==ea||ed<ea||eh)&&(ea=ed,ei=eo,eh&&(ep=!0));extend(et,ei||eo)}function configFromObject(et){if(!et._d){var eo=normalizeObjectUnits(et._i),ei=void 0===eo.day?eo.date:eo.day;et._a=map([eo.year,eo.month,ei,eo.hour,eo.minute,eo.second,eo.millisecond],function(et){return et&&parseInt(et,10)}),configFromArray(et)}}function createFromConfig(et){var eo=new Moment(checkOverflow(prepareConfig(et)));return eo._nextDay&&(eo.add(1,"d"),eo._nextDay=void 0),eo}function prepareConfig(et){var eo=et._i,ei=et._f;return(et._locale=et._locale||getLocale(et._l),null===eo||void 0===ei&&""===eo)?createInvalid({nullInput:!0}):("string"==typeof eo&&(et._i=eo=et._locale.preparse(eo)),isMoment(eo))?new Moment(checkOverflow(eo)):(isDate(eo)?et._d=eo:isArray(ei)?configFromStringAndArray(et):ei?configFromStringAndFormat(et):configFromInput(et),isValid(et)||(et._d=null),et)}function configFromInput(et){var eo=et._i;isUndefined(eo)?et._d=new Date(hooks.now()):isDate(eo)?et._d=new Date(eo.valueOf()):"string"==typeof eo?configFromString(et):isArray(eo)?(et._a=map(eo.slice(0),function(et){return parseInt(et,10)}),configFromArray(et)):isObject(eo)?configFromObject(et):isNumber(eo)?et._d=new Date(eo):hooks.createFromInputFallback(et)}function createLocalOrUTC(et,eo,ei,ea,eu){var ed={};return(!0===eo||!1===eo)&&(ea=eo,eo=void 0),(!0===ei||!1===ei)&&(ea=ei,ei=void 0),(isObject(et)&&isObjectEmpty(et)||isArray(et)&&0===et.length)&&(et=void 0),ed._isAMomentObject=!0,ed._useUTC=ed._isUTC=eu,ed._l=ei,ed._i=et,ed._f=eo,ed._strict=ea,createFromConfig(ed)}function createLocal(et,eo,ei,ea){return createLocalOrUTC(et,eo,ei,ea,!1)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(et){et._d=new Date(et._i+(et._useUTC?" UTC":""))}),hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};var tO=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var et=createLocal.apply(null,arguments);return this.isValid()&&et.isValid()?et<this?this:et:createInvalid()}),tx=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var et=createLocal.apply(null,arguments);return this.isValid()&&et.isValid()?et>this?this:et:createInvalid()});function pickBy(et,eo){var ei,ea;if(1===eo.length&&isArray(eo[0])&&(eo=eo[0]),!eo.length)return createLocal();for(ea=1,ei=eo[0];ea<eo.length;++ea)(!eo[ea].isValid()||eo[ea][et](ei))&&(ei=eo[ea]);return ei}function min(){var et=[].slice.call(arguments,0);return pickBy("isBefore",et)}function max(){var et=[].slice.call(arguments,0);return pickBy("isAfter",et)}var now=function(){return Date.now?Date.now():+new Date},tM=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(et){var eo,ei,ea=!1,eu=tM.length;for(eo in et)if(hasOwnProp(et,eo)&&!(-1!==tv.call(tM,eo)&&(null==et[eo]||!isNaN(et[eo]))))return!1;for(ei=0;ei<eu;++ei)if(et[tM[ei]]){if(ea)return!1;parseFloat(et[tM[ei]])!==toInt(et[tM[ei]])&&(ea=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(et){var eo=normalizeObjectUnits(et),ei=eo.year||0,ea=eo.quarter||0,eu=eo.month||0,ed=eo.week||eo.isoWeek||0,eh=eo.day||0,ep=eo.hour||0,ef=eo.minute||0,em=eo.second||0,eg=eo.millisecond||0;this._isValid=isDurationValid(eo),this._milliseconds=+eg+1e3*em+6e4*ef+36e5*ep,this._days=+eh+7*ed,this._months=+eu+3*ea+12*ei,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(et){return et instanceof Duration}function absRound(et){return et<0?-1*Math.round(-1*et):Math.round(et)}function compareArrays(et,eo,ei){var ea,eu=Math.min(et.length,eo.length),ed=Math.abs(et.length-eo.length),eh=0;for(ea=0;ea<eu;ea++)(ei&&et[ea]!==eo[ea]||!ei&&toInt(et[ea])!==toInt(eo[ea]))&&eh++;return eh+ed}function offset(et,eo){addFormatToken(et,0,0,function(){var et=this.utcOffset(),ei="+";return et<0&&(et=-et,ei="-"),ei+zeroFill(~~(et/60),2)+eo+zeroFill(~~et%60,2)})}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",eW),addRegexToken("ZZ",eW),addParseToken(["Z","ZZ"],function(et,eo,ei){ei._useUTC=!0,ei._tzm=offsetFromString(eW,et)});var tD=/([\+\-]|\d\d)/gi;function offsetFromString(et,eo){var ei,ea,eu=(eo||"").match(et);return null===eu?null:0===(ea=+(60*(ei=((eu[eu.length-1]||[])+"").match(tD)||["-",0,0])[1])+toInt(ei[2]))?0:"+"===ei[0]?ea:-ea}function cloneWithOffset(et,eo){var ei,ea;return eo._isUTC?(ei=eo.clone(),ea=(isMoment(et)||isDate(et)?et.valueOf():createLocal(et).valueOf())-ei.valueOf(),ei._d.setTime(ei._d.valueOf()+ea),hooks.updateOffset(ei,!1),ei):createLocal(et).local()}function getDateOffset(et){return-Math.round(et._d.getTimezoneOffset())}function getSetOffset(et,eo,ei){var ea,eu=this._offset||0;if(!this.isValid())return null!=et?this:NaN;if(null==et)return this._isUTC?eu:getDateOffset(this);if("string"==typeof et){if(null===(et=offsetFromString(eW,et)))return this}else 16>Math.abs(et)&&!ei&&(et*=60);return!this._isUTC&&eo&&(ea=getDateOffset(this)),this._offset=et,this._isUTC=!0,null!=ea&&this.add(ea,"m"),eu===et||(!eo||this._changeInProgress?addSubtract(this,createDuration(et-eu,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}function getSetZone(et,eo){return null!=et?("string"!=typeof et&&(et=-et),this.utcOffset(et,eo),this):-this.utcOffset()}function setOffsetToUTC(et){return this.utcOffset(0,et)}function setOffsetToLocal(et){return this._isUTC&&(this.utcOffset(0,et),this._isUTC=!1,et&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var et=offsetFromString(ez,this._i);null!=et?this.utcOffset(et):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(et){return!!this.isValid()&&(et=et?createLocal(et).utcOffset():0,(this.utcOffset()-et)%60==0)}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var et,eo={};return copyConfig(eo,this),(eo=prepareConfig(eo))._a?(et=eo._isUTC?createUTC(eo._a):createLocal(eo._a),this._isDSTShifted=this.isValid()&&compareArrays(eo._a,et.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var tU=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tL=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(et,eo){var ei,ea,eu,ed=et,eh=null;return isDuration(et)?ed={ms:et._milliseconds,d:et._days,M:et._months}:isNumber(et)||!isNaN(+et)?(ed={},eo?ed[eo]=+et:ed.milliseconds=+et):(eh=tU.exec(et))?(ei="-"===eh[1]?-1:1,ed={y:0,d:toInt(eh[eQ])*ei,h:toInt(eh[eX])*ei,m:toInt(eh[e0])*ei,s:toInt(eh[e4])*ei,ms:toInt(absRound(1e3*eh[e6]))*ei}):(eh=tL.exec(et))?(ei="-"===eh[1]?-1:1,ed={y:parseIso(eh[2],ei),M:parseIso(eh[3],ei),w:parseIso(eh[4],ei),d:parseIso(eh[5],ei),h:parseIso(eh[6],ei),m:parseIso(eh[7],ei),s:parseIso(eh[8],ei)}):null==ed?ed={}:"object"==typeof ed&&("from"in ed||"to"in ed)&&(eu=momentsDifference(createLocal(ed.from),createLocal(ed.to)),(ed={}).ms=eu.milliseconds,ed.M=eu.months),ea=new Duration(ed),isDuration(et)&&hasOwnProp(et,"_locale")&&(ea._locale=et._locale),isDuration(et)&&hasOwnProp(et,"_isValid")&&(ea._isValid=et._isValid),ea}function parseIso(et,eo){var ei=et&&parseFloat(et.replace(",","."));return(isNaN(ei)?0:ei)*eo}function positiveMomentsDifference(et,eo){var ei={};return ei.months=eo.month()-et.month()+(eo.year()-et.year())*12,et.clone().add(ei.months,"M").isAfter(eo)&&--ei.months,ei.milliseconds=+eo-+et.clone().add(ei.months,"M"),ei}function momentsDifference(et,eo){var ei;return et.isValid()&&eo.isValid()?(eo=cloneWithOffset(eo,et),et.isBefore(eo)?ei=positiveMomentsDifference(et,eo):((ei=positiveMomentsDifference(eo,et)).milliseconds=-ei.milliseconds,ei.months=-ei.months),ei):{milliseconds:0,months:0}}function createAdder(et,eo){return function(ei,ea){var eu;return null===ea||isNaN(+ea)||(deprecateSimple(eo,"moment()."+eo+"(period, number) is deprecated. Please use moment()."+eo+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),eu=ei,ei=ea,ea=eu),addSubtract(this,createDuration(ei,ea),et),this}}function addSubtract(et,eo,ei,ea){var eu=eo._milliseconds,ed=absRound(eo._days),eh=absRound(eo._months);et.isValid()&&(ea=null==ea||ea,eh&&setMonth(et,get(et,"Month")+eh*ei),ed&&set$1(et,"Date",get(et,"Date")+ed*ei),eu&&et._d.setTime(et._d.valueOf()+eu*ei),ea&&hooks.updateOffset(et,ed||eh))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var tN=createAdder(1,"add"),tq=createAdder(-1,"subtract");function isString(et){return"string"==typeof et||et instanceof String}function isMomentInput(et){return isMoment(et)||isDate(et)||isString(et)||isNumber(et)||isNumberOrStringArray(et)||isMomentInputObject(et)||null==et}function isMomentInputObject(et){var eo,ei,ea=isObject(et)&&!isObjectEmpty(et),eu=!1,ed=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],eh=ed.length;for(eo=0;eo<eh;eo+=1)ei=ed[eo],eu=eu||hasOwnProp(et,ei);return ea&&eu}function isNumberOrStringArray(et){var eo=isArray(et),ei=!1;return eo&&(ei=0===et.filter(function(eo){return!isNumber(eo)&&isString(et)}).length),eo&&ei}function isCalendarSpec(et){var eo,ei,ea=isObject(et)&&!isObjectEmpty(et),eu=!1,ed=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(eo=0;eo<ed.length;eo+=1)ei=ed[eo],eu=eu||hasOwnProp(et,ei);return ea&&eu}function getCalendarFormat(et,eo){var ei=et.diff(eo,"days",!0);return ei<-6?"sameElse":ei<-1?"lastWeek":ei<0?"lastDay":ei<1?"sameDay":ei<2?"nextDay":ei<7?"nextWeek":"sameElse"}function calendar$1(et,eo){1==arguments.length&&(arguments[0]?isMomentInput(arguments[0])?(et=arguments[0],eo=void 0):isCalendarSpec(arguments[0])&&(eo=arguments[0],et=void 0):(et=void 0,eo=void 0));var ei=et||createLocal(),ea=cloneWithOffset(ei,this).startOf("day"),eu=hooks.calendarFormat(this,ea)||"sameElse",ed=eo&&(isFunction(eo[eu])?eo[eu].call(this,ei):eo[eu]);return this.format(ed||this.localeData().calendar(eu,this,createLocal(ei)))}function clone(){return new Moment(this)}function isAfter(et,eo){var ei=isMoment(et)?et:createLocal(et);return!!(this.isValid()&&ei.isValid())&&("millisecond"===(eo=normalizeUnits(eo)||"millisecond")?this.valueOf()>ei.valueOf():ei.valueOf()<this.clone().startOf(eo).valueOf())}function isBefore(et,eo){var ei=isMoment(et)?et:createLocal(et);return!!(this.isValid()&&ei.isValid())&&("millisecond"===(eo=normalizeUnits(eo)||"millisecond")?this.valueOf()<ei.valueOf():this.clone().endOf(eo).valueOf()<ei.valueOf())}function isBetween(et,eo,ei,ea){var eu=isMoment(et)?et:createLocal(et),ed=isMoment(eo)?eo:createLocal(eo);return!!(this.isValid()&&eu.isValid()&&ed.isValid())&&("("===(ea=ea||"()")[0]?this.isAfter(eu,ei):!this.isBefore(eu,ei))&&(")"===ea[1]?this.isBefore(ed,ei):!this.isAfter(ed,ei))}function isSame(et,eo){var ei,ea=isMoment(et)?et:createLocal(et);return!!(this.isValid()&&ea.isValid())&&("millisecond"===(eo=normalizeUnits(eo)||"millisecond")?this.valueOf()===ea.valueOf():(ei=ea.valueOf(),this.clone().startOf(eo).valueOf()<=ei&&ei<=this.clone().endOf(eo).valueOf()))}function isSameOrAfter(et,eo){return this.isSame(et,eo)||this.isAfter(et,eo)}function isSameOrBefore(et,eo){return this.isSame(et,eo)||this.isBefore(et,eo)}function diff(et,eo,ei){var ea,eu,ed;if(!this.isValid()||!(ea=cloneWithOffset(et,this)).isValid())return NaN;switch(eu=(ea.utcOffset()-this.utcOffset())*6e4,eo=normalizeUnits(eo)){case"year":ed=monthDiff(this,ea)/12;break;case"month":ed=monthDiff(this,ea);break;case"quarter":ed=monthDiff(this,ea)/3;break;case"second":ed=(this-ea)/1e3;break;case"minute":ed=(this-ea)/6e4;break;case"hour":ed=(this-ea)/36e5;break;case"day":ed=(this-ea-eu)/864e5;break;case"week":ed=(this-ea-eu)/6048e5;break;default:ed=this-ea}return ei?ed:absFloor(ed)}function monthDiff(et,eo){if(et.date()<eo.date())return-monthDiff(eo,et);var ei,ea,eu=(eo.year()-et.year())*12+(eo.month()-et.month()),ed=et.clone().add(eu,"months");return ea=eo-ed<0?(eo-ed)/(ed-(ei=et.clone().add(eu-1,"months"))):(eo-ed)/((ei=et.clone().add(eu+1,"months"))-ed),-(eu+ea)||0}function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(et){if(!this.isValid())return null;var eo=!0!==et,ei=eo?this.clone().utc():this;return 0>ei.year()||ei.year()>9999?formatMoment(ei,eo?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?eo?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",formatMoment(ei,"Z")):formatMoment(ei,eo?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var et,eo,ei,ea,eu="moment",ed="";return this.isLocal()||(eu=0===this.utcOffset()?"moment.utc":"moment.parseZone",ed="Z"),et="["+eu+'("]',eo=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",ei="-MM-DD[T]HH:mm:ss.SSS",ea=ed+'[")]',this.format(et+eo+ei+ea)}function format(et){et||(et=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var eo=formatMoment(this,et);return this.localeData().postformat(eo)}function from(et,eo){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({to:this,from:et}).locale(this.locale()).humanize(!eo):this.localeData().invalidDate()}function fromNow(et){return this.from(createLocal(),et)}function to(et,eo){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({from:this,to:et}).locale(this.locale()).humanize(!eo):this.localeData().invalidDate()}function toNow(et){return this.to(createLocal(),et)}function locale(et){var eo;return void 0===et?this._locale._abbr:(null!=(eo=getLocale(et))&&(this._locale=eo),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tB=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(et){return void 0===et?this.localeData():this.locale(et)});function localeData(){return this._locale}var tF=1e3,tj=6e4,tG=36e5,tH=126227808e5;function mod$1(et,eo){return(et%eo+eo)%eo}function localStartOfDate(et,eo,ei){return et<100&&et>=0?new Date(et+400,eo,ei)-tH:new Date(et,eo,ei).valueOf()}function utcStartOfDate(et,eo,ei){return et<100&&et>=0?Date.UTC(et+400,eo,ei)-tH:Date.UTC(et,eo,ei)}function startOf(et){var eo,ei;if(void 0===(et=normalizeUnits(et))||"millisecond"===et||!this.isValid())return this;switch(ei=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":eo=ei(this.year(),0,1);break;case"quarter":eo=ei(this.year(),this.month()-this.month()%3,1);break;case"month":eo=ei(this.year(),this.month(),1);break;case"week":eo=ei(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":eo=ei(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":eo=ei(this.year(),this.month(),this.date());break;case"hour":eo=this._d.valueOf(),eo-=mod$1(eo+(this._isUTC?0:this.utcOffset()*tj),tG);break;case"minute":eo=this._d.valueOf(),eo-=mod$1(eo,tj);break;case"second":eo=this._d.valueOf(),eo-=mod$1(eo,tF)}return this._d.setTime(eo),hooks.updateOffset(this,!0),this}function endOf(et){var eo,ei;if(void 0===(et=normalizeUnits(et))||"millisecond"===et||!this.isValid())return this;switch(ei=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":eo=ei(this.year()+1,0,1)-1;break;case"quarter":eo=ei(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":eo=ei(this.year(),this.month()+1,1)-1;break;case"week":eo=ei(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":eo=ei(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":eo=ei(this.year(),this.month(),this.date()+1)-1;break;case"hour":eo=this._d.valueOf(),eo+=tG-mod$1(eo+(this._isUTC?0:this.utcOffset()*tj),tG)-1;break;case"minute":eo=this._d.valueOf(),eo+=tj-mod$1(eo,tj)-1;break;case"second":eo=this._d.valueOf(),eo+=tF-mod$1(eo,tF)-1}return this._d.setTime(eo),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var et=this;return[et.year(),et.month(),et.date(),et.hour(),et.minute(),et.second(),et.millisecond()]}function toObject(){var et=this;return{years:et.year(),months:et.month(),date:et.date(),hours:et.hours(),minutes:et.minutes(),seconds:et.seconds(),milliseconds:et.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function localeEras(et,eo){var ei,ea,eu,ed=this._eras||getLocale("en")._eras;for(ei=0,ea=ed.length;ei<ea;++ei)switch("string"==typeof ed[ei].since&&(eu=hooks(ed[ei].since).startOf("day"),ed[ei].since=eu.valueOf()),typeof ed[ei].until){case"undefined":ed[ei].until=Infinity;break;case"string":eu=hooks(ed[ei].until).startOf("day").valueOf(),ed[ei].until=eu.valueOf()}return ed}function localeErasParse(et,eo,ei){var ea,eu,ed,eh,ep,ef=this.eras();for(ea=0,et=et.toUpperCase(),eu=ef.length;ea<eu;++ea)if(ed=ef[ea].name.toUpperCase(),eh=ef[ea].abbr.toUpperCase(),ep=ef[ea].narrow.toUpperCase(),ei)switch(eo){case"N":case"NN":case"NNN":if(eh===et)return ef[ea];break;case"NNNN":if(ed===et)return ef[ea];break;case"NNNNN":if(ep===et)return ef[ea]}else if([ed,eh,ep].indexOf(et)>=0)return ef[ea]}function localeErasConvertYear(et,eo){var ei=et.since<=et.until?1:-1;return void 0===eo?hooks(et.since).year():hooks(et.since).year()+(eo-et.offset)*ei}function getEraName(){var et,eo,ei,ea=this.localeData().eras();for(et=0,eo=ea.length;et<eo;++et)if(ei=this.clone().startOf("day").valueOf(),ea[et].since<=ei&&ei<=ea[et].until||ea[et].until<=ei&&ei<=ea[et].since)return ea[et].name;return""}function getEraNarrow(){var et,eo,ei,ea=this.localeData().eras();for(et=0,eo=ea.length;et<eo;++et)if(ei=this.clone().startOf("day").valueOf(),ea[et].since<=ei&&ei<=ea[et].until||ea[et].until<=ei&&ei<=ea[et].since)return ea[et].narrow;return""}function getEraAbbr(){var et,eo,ei,ea=this.localeData().eras();for(et=0,eo=ea.length;et<eo;++et)if(ei=this.clone().startOf("day").valueOf(),ea[et].since<=ei&&ei<=ea[et].until||ea[et].until<=ei&&ei<=ea[et].since)return ea[et].abbr;return""}function getEraYear(){var et,eo,ei,ea,eu=this.localeData().eras();for(et=0,eo=eu.length;et<eo;++et)if(ei=eu[et].since<=eu[et].until?1:-1,ea=this.clone().startOf("day").valueOf(),eu[et].since<=ea&&ea<=eu[et].until||eu[et].until<=ea&&ea<=eu[et].since)return(this.year()-hooks(eu[et].since).year())*ei+eu[et].offset;return this.year()}function erasNameRegex(et){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),et?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(et){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),et?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(et){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),et?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(et,eo){return eo.erasAbbrRegex(et)}function matchEraName(et,eo){return eo.erasNameRegex(et)}function matchEraNarrow(et,eo){return eo.erasNarrowRegex(et)}function matchEraYearOrdinal(et,eo){return eo._eraYearOrdinalRegex||eH}function computeErasParse(){var et,eo,ei=[],ea=[],eu=[],ed=[],eh=this.eras();for(et=0,eo=eh.length;et<eo;++et)ea.push(regexEscape(eh[et].name)),ei.push(regexEscape(eh[et].abbr)),eu.push(regexEscape(eh[et].narrow)),ed.push(regexEscape(eh[et].name)),ed.push(regexEscape(eh[et].abbr)),ed.push(regexEscape(eh[et].narrow));this._erasRegex=RegExp("^("+ed.join("|")+")","i"),this._erasNameRegex=RegExp("^("+ea.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+ei.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+eu.join("|")+")","i")}function addWeekYearFormatToken(et,eo){addFormatToken(0,[et,et.length],0,eo)}function getSetWeekYear(et){return getSetWeekYearHelper.call(this,et,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(et){return getSetWeekYearHelper.call(this,et,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var et=this.localeData()._week;return weeksInYear(this.year(),et.dow,et.doy)}function getWeeksInWeekYear(){var et=this.localeData()._week;return weeksInYear(this.weekYear(),et.dow,et.doy)}function getSetWeekYearHelper(et,eo,ei,ea,eu){var ed;return null==et?weekOfYear(this,ea,eu).year:(eo>(ed=weeksInYear(et,ea,eu))&&(eo=ed),setWeekAll.call(this,et,eo,ei,ea,eu))}function setWeekAll(et,eo,ei,ea,eu){var ed=dayOfYearFromWeeks(et,eo,ei,ea,eu),eh=createUTCDate(ed.year,0,ed.dayOfYear);return this.year(eh.getUTCFullYear()),this.month(eh.getUTCMonth()),this.date(eh.getUTCDate()),this}function getSetQuarter(et){return null==et?Math.ceil((this.month()+1)/3):this.month((et-1)*3+this.month()%3)}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(et,eo,ei,ea){var eu=ei._locale.erasParse(et,ea,ei._strict);eu?getParsingFlags(ei).era=eu:getParsingFlags(ei).invalidEra=et}),addRegexToken("y",eH),addRegexToken("yy",eH),addRegexToken("yyy",eH),addRegexToken("yyyy",eH),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],e$),addParseToken(["yo"],function(et,eo,ei,ea){var eu;ei._locale._eraYearOrdinalRegex&&(eu=et.match(ei._locale._eraYearOrdinalRegex)),ei._locale.eraYearOrdinalParse?eo[e$]=ei._locale.eraYearOrdinalParse(et,eu):eo[e$]=parseInt(et,10)}),addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100}),addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100}),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",eK),addRegexToken("g",eK),addRegexToken("GG",eL,eO),addRegexToken("gg",eL,eO),addRegexToken("GGGG",ej,eD),addRegexToken("gggg",ej,eD),addRegexToken("GGGGG",eG,eU),addRegexToken("ggggg",eG,eU),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(et,eo,ei,ea){eo[ea.substr(0,2)]=toInt(et)}),addWeekParseToken(["gg","GG"],function(et,eo,ei,ea){eo[ea]=hooks.parseTwoDigitYear(et)}),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",ek),addParseToken("Q",function(et,eo){eo[eZ]=(toInt(et)-1)*3}),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",eL),addRegexToken("DD",eL,eO),addRegexToken("Do",function(et,eo){return et?eo._dayOfMonthOrdinalParse||eo._ordinalParse:eo._dayOfMonthOrdinalParseLenient}),addParseToken(["D","DD"],eQ),addParseToken("Do",function(et,eo){eo[eQ]=toInt(et.match(eL)[0])});var tK=makeGetSet("Date",!0);function getSetDayOfYear(et){var eo=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==et?eo:this.add(et-eo,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",eF),addRegexToken("DDDD",eM),addParseToken(["DDD","DDDD"],function(et,eo,ei){ei._dayOfYear=toInt(et)}),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",eL),addRegexToken("mm",eL,eO),addParseToken(["m","mm"],e0);var tz=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",eL),addRegexToken("ss",eL,eO),addParseToken(["s","ss"],e4);var tW=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)}),addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,function(){return 10*this.millisecond()}),addFormatToken(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),addFormatToken(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),addFormatToken(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),addFormatToken(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),addFormatToken(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",eF,ek),addRegexToken("SS",eF,eO),addRegexToken("SSS",eF,eM),eo="SSSS";eo.length<=9;eo+="S")addRegexToken(eo,eH);function parseMs(et,eo){eo[e6]=toInt(("0."+et)*1e3)}for(eo="S";eo.length<=9;eo+="S")addParseToken(eo,parseMs);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}ei=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var tV=Moment.prototype;function createUnix(et){return createLocal(1e3*et)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(et){return et}tV.add=tN,tV.calendar=calendar$1,tV.clone=clone,tV.diff=diff,tV.endOf=endOf,tV.format=format,tV.from=from,tV.fromNow=fromNow,tV.to=to,tV.toNow=toNow,tV.get=stringGet,tV.invalidAt=invalidAt,tV.isAfter=isAfter,tV.isBefore=isBefore,tV.isBetween=isBetween,tV.isSame=isSame,tV.isSameOrAfter=isSameOrAfter,tV.isSameOrBefore=isSameOrBefore,tV.isValid=isValid$2,tV.lang=tB,tV.locale=locale,tV.localeData=localeData,tV.max=tx,tV.min=tO,tV.parsingFlags=parsingFlags,tV.set=stringSet,tV.startOf=startOf,tV.subtract=tq,tV.toArray=toArray,tV.toObject=toObject,tV.toDate=toDate,tV.toISOString=toISOString,tV.inspect=inspect,"undefined"!=typeof Symbol&&null!=Symbol.for&&(tV[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tV.toJSON=toJSON,tV.toString=toString,tV.unix=unix,tV.valueOf=valueOf,tV.creationData=creationData,tV.eraName=getEraName,tV.eraNarrow=getEraNarrow,tV.eraAbbr=getEraAbbr,tV.eraYear=getEraYear,tV.year=ta,tV.isLeapYear=getIsLeapYear,tV.weekYear=getSetWeekYear,tV.isoWeekYear=getSetISOWeekYear,tV.quarter=tV.quarters=getSetQuarter,tV.month=getSetMonth,tV.daysInMonth=getDaysInMonth,tV.week=tV.weeks=getSetWeek,tV.isoWeek=tV.isoWeeks=getSetISOWeek,tV.weeksInYear=getWeeksInYear,tV.weeksInWeekYear=getWeeksInWeekYear,tV.isoWeeksInYear=getISOWeeksInYear,tV.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,tV.date=tK,tV.day=tV.days=getSetDayOfWeek,tV.weekday=getSetLocaleDayOfWeek,tV.isoWeekday=getSetISODayOfWeek,tV.dayOfYear=getSetDayOfYear,tV.hour=tV.hours=ty,tV.minute=tV.minutes=tz,tV.second=tV.seconds=tW,tV.millisecond=tV.milliseconds=ei,tV.utcOffset=getSetOffset,tV.utc=setOffsetToUTC,tV.local=setOffsetToLocal,tV.parseZone=setOffsetToParsedOffset,tV.hasAlignedHourOffset=hasAlignedHourOffset,tV.isDST=isDaylightSavingTime,tV.isLocal=isLocal,tV.isUtcOffset=isUtcOffset,tV.isUtc=isUtc,tV.isUTC=isUtc,tV.zoneAbbr=getZoneAbbr,tV.zoneName=getZoneName,tV.dates=deprecate("dates accessor is deprecated. Use date instead.",tK),tV.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),tV.years=deprecate("years accessor is deprecated. Use year instead",ta),tV.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),tV.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var tJ=Locale.prototype;function get$1(et,eo,ei,ea){var eu=getLocale(),ed=createUTC().set(ea,eo);return eu[ei](ed,et)}function listMonthsImpl(et,eo,ei){if(isNumber(et)&&(eo=et,et=void 0),et=et||"",null!=eo)return get$1(et,eo,ei,"month");var ea,eu=[];for(ea=0;ea<12;ea++)eu[ea]=get$1(et,ea,ei,"month");return eu}function listWeekdaysImpl(et,eo,ei,ea){"boolean"==typeof et||(ei=eo=et,et=!1),isNumber(eo)&&(ei=eo,eo=void 0),eo=eo||"";var eu,ed=getLocale(),eh=et?ed._week.dow:0,ep=[];if(null!=ei)return get$1(eo,(ei+eh)%7,ea,"day");for(eu=0;eu<7;eu++)ep[eu]=get$1(eo,(eu+eh)%7,ea,"day");return ep}function listMonths(et,eo){return listMonthsImpl(et,eo,"months")}function listMonthsShort(et,eo){return listMonthsImpl(et,eo,"monthsShort")}function listWeekdays(et,eo,ei){return listWeekdaysImpl(et,eo,ei,"weekdays")}function listWeekdaysShort(et,eo,ei){return listWeekdaysImpl(et,eo,ei,"weekdaysShort")}function listWeekdaysMin(et,eo,ei){return listWeekdaysImpl(et,eo,ei,"weekdaysMin")}tJ.calendar=calendar,tJ.longDateFormat=longDateFormat,tJ.invalidDate=invalidDate,tJ.ordinal=ordinal,tJ.preparse=preParsePostFormat,tJ.postformat=preParsePostFormat,tJ.relativeTime=relativeTime,tJ.pastFuture=pastFuture,tJ.set=set,tJ.eras=localeEras,tJ.erasParse=localeErasParse,tJ.erasConvertYear=localeErasConvertYear,tJ.erasAbbrRegex=erasAbbrRegex,tJ.erasNameRegex=erasNameRegex,tJ.erasNarrowRegex=erasNarrowRegex,tJ.months=localeMonths,tJ.monthsShort=localeMonthsShort,tJ.monthsParse=localeMonthsParse,tJ.monthsRegex=monthsRegex,tJ.monthsShortRegex=monthsShortRegex,tJ.week=localeWeek,tJ.firstDayOfYear=localeFirstDayOfYear,tJ.firstDayOfWeek=localeFirstDayOfWeek,tJ.weekdays=localeWeekdays,tJ.weekdaysMin=localeWeekdaysMin,tJ.weekdaysShort=localeWeekdaysShort,tJ.weekdaysParse=localeWeekdaysParse,tJ.weekdaysRegex=weekdaysRegex,tJ.weekdaysShortRegex=weekdaysShortRegex,tJ.weekdaysMinRegex=weekdaysMinRegex,tJ.isPM=localeIsPM,tJ.meridiem=localeMeridiem,getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(et){var eo=et%10,ei=1===toInt(et%100/10)?"th":1===eo?"st":2===eo?"nd":3===eo?"rd":"th";return et+ei}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var tY=Math.abs;function abs(){var et=this._data;return this._milliseconds=tY(this._milliseconds),this._days=tY(this._days),this._months=tY(this._months),et.milliseconds=tY(et.milliseconds),et.seconds=tY(et.seconds),et.minutes=tY(et.minutes),et.hours=tY(et.hours),et.months=tY(et.months),et.years=tY(et.years),this}function addSubtract$1(et,eo,ei,ea){var eu=createDuration(eo,ei);return et._milliseconds+=ea*eu._milliseconds,et._days+=ea*eu._days,et._months+=ea*eu._months,et._bubble()}function add$1(et,eo){return addSubtract$1(this,et,eo,1)}function subtract$1(et,eo){return addSubtract$1(this,et,eo,-1)}function absCeil(et){return et<0?Math.floor(et):Math.ceil(et)}function bubble(){var et,eo,ei,ea,eu,ed=this._milliseconds,eh=this._days,ep=this._months,ef=this._data;return ed>=0&&eh>=0&&ep>=0||ed<=0&&eh<=0&&ep<=0||(ed+=864e5*absCeil(monthsToDays(ep)+eh),eh=0,ep=0),ef.milliseconds=ed%1e3,et=absFloor(ed/1e3),ef.seconds=et%60,eo=absFloor(et/60),ef.minutes=eo%60,ei=absFloor(eo/60),ef.hours=ei%24,eh+=absFloor(ei/24),ep+=eu=absFloor(daysToMonths(eh)),eh-=absCeil(monthsToDays(eu)),ea=absFloor(ep/12),ep%=12,ef.days=eh,ef.months=ep,ef.years=ea,this}function daysToMonths(et){return 4800*et/146097}function monthsToDays(et){return 146097*et/4800}function as(et){if(!this.isValid())return NaN;var eo,ei,ea=this._milliseconds;if("month"===(et=normalizeUnits(et))||"quarter"===et||"year"===et)switch(eo=this._days+ea/864e5,ei=this._months+daysToMonths(eo),et){case"month":return ei;case"quarter":return ei/3;case"year":return ei/12}else switch(eo=this._days+Math.round(monthsToDays(this._months)),et){case"week":return eo/7+ea/6048e5;case"day":return eo+ea/864e5;case"hour":return 24*eo+ea/36e5;case"minute":return 1440*eo+ea/6e4;case"second":return 86400*eo+ea/1e3;case"millisecond":return Math.floor(864e5*eo)+ea;default:throw Error("Unknown unit "+et)}}function valueOf$1(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN}function makeAs(et){return function(){return this.as(et)}}var t$=makeAs("ms"),tZ=makeAs("s"),tQ=makeAs("m"),tX=makeAs("h"),t0=makeAs("d"),t1=makeAs("w"),t2=makeAs("M"),t4=makeAs("Q"),t3=makeAs("y");function clone$1(){return createDuration(this)}function get$2(et){return et=normalizeUnits(et),this.isValid()?this[et+"s"]():NaN}function makeGetter(et){return function(){return this.isValid()?this._data[et]:NaN}}var t6=makeGetter("milliseconds"),t5=makeGetter("seconds"),t8=makeGetter("minutes"),t7=makeGetter("hours"),t9=makeGetter("days"),rr=makeGetter("months"),rn=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var ro=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(et,eo,ei,ea,eu){return eu.relativeTime(eo||1,!!ei,et,ea)}function relativeTime$1(et,eo,ei,ea){var eu=createDuration(et).abs(),ed=ro(eu.as("s")),eh=ro(eu.as("m")),ep=ro(eu.as("h")),ef=ro(eu.as("d")),em=ro(eu.as("M")),eg=ro(eu.as("w")),ey=ro(eu.as("y")),eC=ed<=ei.ss&&["s",ed]||ed<ei.s&&["ss",ed]||eh<=1&&["m"]||eh<ei.m&&["mm",eh]||ep<=1&&["h"]||ep<ei.h&&["hh",ep]||ef<=1&&["d"]||ef<ei.d&&["dd",ef];return null!=ei.w&&(eC=eC||eg<=1&&["w"]||eg<ei.w&&["ww",eg]),(eC=eC||em<=1&&["M"]||em<ei.M&&["MM",em]||ey<=1&&["y"]||["yy",ey])[2]=eo,eC[3]=+et>0,eC[4]=ea,substituteTimeAgo.apply(null,eC)}function getSetRelativeTimeRounding(et){return void 0===et?ro:"function"==typeof et&&(ro=et,!0)}function getSetRelativeTimeThreshold(et,eo){return void 0!==ri[et]&&(void 0===eo?ri[et]:(ri[et]=eo,"s"===et&&(ri.ss=eo-1),!0))}function humanize(et,eo){if(!this.isValid())return this.localeData().invalidDate();var ei,ea,eu=!1,ed=ri;return"object"==typeof et&&(eo=et,et=!1),"boolean"==typeof et&&(eu=et),"object"==typeof eo&&(ed=Object.assign({},ri,eo),null!=eo.s&&null==eo.ss&&(ed.ss=eo.s-1)),ea=relativeTime$1(this,!eu,ed,ei=this.localeData()),eu&&(ea=ei.pastFuture(+this,ea)),ei.postformat(ea)}var ra=Math.abs;function sign(et){return(et>0)-(et<0)||+et}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var et,eo,ei,ea,eu,ed,eh,ep,ef=ra(this._milliseconds)/1e3,em=ra(this._days),eg=ra(this._months),ey=this.asSeconds();return ey?(et=absFloor(ef/60),eo=absFloor(et/60),ef%=60,et%=60,ei=absFloor(eg/12),eg%=12,ea=ef?ef.toFixed(3).replace(/\.?0+$/,""):"",eu=ey<0?"-":"",ed=sign(this._months)!==sign(ey)?"-":"",eh=sign(this._days)!==sign(ey)?"-":"",ep=sign(this._milliseconds)!==sign(ey)?"-":"",eu+"P"+(ei?ed+ei+"Y":"")+(eg?ed+eg+"M":"")+(em?eh+em+"D":"")+(eo||et||ef?"T":"")+(eo?ep+eo+"H":"")+(et?ep+et+"M":"")+(ef?ep+ea+"S":"")):"P0D"}var rs=Duration.prototype;return rs.isValid=isValid$1,rs.abs=abs,rs.add=add$1,rs.subtract=subtract$1,rs.as=as,rs.asMilliseconds=t$,rs.asSeconds=tZ,rs.asMinutes=tQ,rs.asHours=tX,rs.asDays=t0,rs.asWeeks=t1,rs.asMonths=t2,rs.asQuarters=t4,rs.asYears=t3,rs.valueOf=valueOf$1,rs._bubble=bubble,rs.clone=clone$1,rs.get=get$2,rs.milliseconds=t6,rs.seconds=t5,rs.minutes=t8,rs.hours=t7,rs.days=t9,rs.weeks=weeks,rs.months=rr,rs.years=rn,rs.humanize=humanize,rs.toISOString=toISOString$1,rs.toString=toISOString$1,rs.toJSON=toISOString$1,rs.locale=locale,rs.localeData=localeData,rs.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),rs.lang=tB,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",eK),addRegexToken("X",eV),addParseToken("X",function(et,eo,ei){ei._d=new Date(1e3*parseFloat(et))}),addParseToken("x",function(et,eo,ei){ei._d=new Date(toInt(et))}),hooks.version="2.29.4",setHookCallback(createLocal),hooks.fn=tV,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=tV,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks})},28858:function(et,eo,ei){"use strict";ei.d(eo,{KV:function(){return createWrapper},ju:function(){return ep}});var ea,eu=ei(67294),ed=ei(45007),eh=ei(11163),__assign=function(){return(__assign=Object.assign||function(et){for(var eo,ei=1,ea=arguments.length;ei<ea;ei++)for(var eu in eo=arguments[ei])Object.prototype.hasOwnProperty.call(eo,eu)&&(et[eu]=eo[eu]);return et}).apply(this,arguments)},__awaiter=function(et,eo,ei,ea){function adopt(et){return et instanceof ei?et:new ei(function(eo){eo(et)})}return new(ei||(ei=Promise))(function(ei,eu){function fulfilled(et){try{step(ea.next(et))}catch(et){eu(et)}}function rejected(et){try{step(ea.throw(et))}catch(et){eu(et)}}function step(et){et.done?ei(et.value):adopt(et.value).then(fulfilled,rejected)}step((ea=ea.apply(et,eo||[])).next())})},__generator=function(et,eo){var ei,ea,eu,ed,eh={label:0,sent:function(){if(1&eu[0])throw eu[1];return eu[1]},trys:[],ops:[]};return ed={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ed[Symbol.iterator]=function(){return this}),ed;function verb(et){return function(eo){return step([et,eo])}}function step(ed){if(ei)throw TypeError("Generator is already executing.");for(;eh;)try{if(ei=1,ea&&(eu=2&ed[0]?ea.return:ed[0]?ea.throw||((eu=ea.return)&&eu.call(ea),0):ea.next)&&!(eu=eu.call(ea,ed[1])).done)return eu;switch(ea=0,eu&&(ed=[2&ed[0],eu.value]),ed[0]){case 0:case 1:eu=ed;break;case 4:return eh.label++,{value:ed[1],done:!1};case 5:eh.label++,ea=ed[1],ed=[0];continue;case 7:ed=eh.ops.pop(),eh.trys.pop();continue;default:if(!(eu=(eu=eh.trys).length>0&&eu[eu.length-1])&&(6===ed[0]||2===ed[0])){eh=0;continue}if(3===ed[0]&&(!eu||ed[1]>eu[0]&&ed[1]<eu[3])){eh.label=ed[1];break}if(6===ed[0]&&eh.label<eu[1]){eh.label=eu[1],eu=ed;break}if(eu&&eh.label<eu[2]){eh.label=eu[2],eh.ops.push(ed);break}eu[2]&&eh.ops.pop(),eh.trys.pop();continue}ed=eo.call(et,eh)}catch(et){ed=[6,et],ea=0}finally{ei=eu=0}if(5&ed[0])throw ed[1];return{value:ed[0]?ed[1]:void 0,done:!0}}},__rest=function(et,eo){var ei={};for(var ea in et)Object.prototype.hasOwnProperty.call(et,ea)&&0>eo.indexOf(ea)&&(ei[ea]=et[ea]);if(null!=et&&"function"==typeof Object.getOwnPropertySymbols)for(var eu=0,ea=Object.getOwnPropertySymbols(et);eu<ea.length;eu++)0>eo.indexOf(ea[eu])&&Object.prototype.propertyIsEnumerable.call(et,ea[eu])&&(ei[ea[eu]]=et[ea[eu]]);return ei},ep="__NEXT_REDUX_WRAPPER_HYDRATE__",getIsServer=function(){return"undefined"==typeof window},getDeserializedState=function(et,eo){var ei=(void 0===eo?{}:eo).deserializeState;return ei?ei(et):et},getSerializedState=function(et,eo){var ei=(void 0===eo?{}:eo).serializeState;return ei?ei(et):et},initStore=function(et){var eo,ei,eu,ed=et.makeStore,eh=et.context,ep=void 0===eh?{}:eh,createStore=function(){return ed(ep)};if(getIsServer()){var ef=(null===(eo=ep)||void 0===eo?void 0:eo.req)||(null===(eu=null===(ei=ep)||void 0===ei?void 0:ei.ctx)||void 0===eu?void 0:eu.req);return ef?(ef.__nextReduxWrapperStore||(ef.__nextReduxWrapperStore=createStore()),ef.__nextReduxWrapperStore):createStore()}return ea||(ea=createStore()),ea},createWrapper=function(et,eo){void 0===eo&&(eo={});var makeProps=function(ei){var ea=ei.callback,eu=ei.context,ed=ei.addStoreToContext,eh=void 0!==ed&&ed;return __awaiter(void 0,void 0,void 0,function(){var ei,ed,ep,ef,em;return __generator(this,function(eg){switch(eg.label){case 0:if(ei=initStore({context:eu,makeStore:et}),eo.debug&&console.log("1. getProps created store with state",ei.getState()),eh&&(eu.ctx?eu.ctx.store=ei:eu.store=ei),!(ef=ed=ea&&ea(ei)))return[3,2];return[4,ed(eu)];case 1:ef=eg.sent(),eg.label=2;case 2:return ep=ef||{},eo.debug&&console.log("3. getProps after dispatches has store state",ei.getState()),em=ei.getState(),[2,{initialProps:ep,initialState:getIsServer()?getSerializedState(em,eo):em}]}})})},getStaticProps=function(et){return function(eo){return __awaiter(void 0,void 0,void 0,function(){var ei,ea,eu;return __generator(this,function(ed){switch(ed.label){case 0:return[4,makeProps({callback:et,context:eo})];case 1:return ea=(ei=ed.sent()).initialProps,eu=ei.initialState,[2,__assign(__assign({},ea),{props:__assign(__assign({},ea.props),{initialState:eu})})]}})})}},hydrate=function(et,ei){ei&&et.dispatch({type:ep,payload:getDeserializedState(ei,eo)})},hydrateOrchestrator=function(et,eo,ei,ea,eu){var ed;ei?(hydrate(et,eo),hydrate(et,ei)):(ea||eu||eo)&&hydrate(et,null!==(ed=null!=ea?ea:eu)&&void 0!==ed?ed:eo)},useHybridHydrate=function(et,eo,ei,ea,ed){var ep=(0,eh.useRouter)().events,ef=(0,eu.useRef)(!0);(0,eu.useEffect)(function(){var handleStart=function(){ef.current=!0};return null==ep||ep.on("routeChangeStart",handleStart),function(){null==ep||ep.off("routeChangeStart",handleStart)}},[ep]),(0,eu.useMemo)(function(){ef.current&&(hydrateOrchestrator(et,eo,ei,ea,ed),ef.current=!1)},[et,eo,ei,ea,ed])},useWrappedStore=function(ei,ea){void 0===ea&&(ea="useWrappedStore");var ed,eh,ep,ef,em,eg,ey=ei.initialState,eC=ei.initialProps,eS=__rest(ei,["initialState","initialProps"]),e_=(null==eS?void 0:eS.__N_SSG)?null===(ed=null==eS?void 0:eS.pageProps)||void 0===ed?void 0:ed.initialState:null,ew=(null==eS?void 0:eS.__N_SSP)?null===(eh=null==eS?void 0:eS.pageProps)||void 0===eh?void 0:eh.initialState:null,eA=e_||ew?null:null!==(ef=null===(ep=null==eS?void 0:eS.pageProps)||void 0===ep?void 0:ep.initialState)&&void 0!==ef?ef:null;eo.debug&&console.log("4.",ea,"created new store with",{giapState:ey,gspState:e_,gsspState:ew,gippState:eA});var eI=(0,eu.useMemo)(function(){return initStore({makeStore:et})},[]);useHybridHydrate(eI,ey,e_,ew,eA);var eR=eS;return eC&&eC.pageProps&&(eR.pageProps=__assign(__assign({},eC.pageProps),eS.pageProps)),(null===(em=null==eS?void 0:eS.pageProps)||void 0===em?void 0:em.initialState)&&(eR=__assign(__assign({},eS),{pageProps:__assign({},eS.pageProps)}),delete eR.pageProps.initialState),(null===(eg=null==eR?void 0:eR.pageProps)||void 0===eg?void 0:eg.initialProps)&&(eR.pageProps=__assign(__assign({},eR.pageProps),eR.pageProps.initialProps),delete eR.pageProps.initialProps),{store:eI,props:__assign(__assign({},eC),eR)}};return{getServerSideProps:function(et){return function(eo){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(ei){switch(ei.label){case 0:return[4,getStaticProps(et)(eo)];case 1:return[2,ei.sent()]}})})}},getStaticProps:getStaticProps,getInitialAppProps:function(et){return function(eo){return __awaiter(void 0,void 0,void 0,function(){var ei,ea,eu;return __generator(this,function(ed){switch(ed.label){case 0:return[4,makeProps({callback:et,context:eo,addStoreToContext:!0})];case 1:return ea=(ei=ed.sent()).initialProps,eu=ei.initialState,[2,__assign(__assign({},ea),{initialState:eu})]}})})}},getInitialPageProps:function(et){return function(eo){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(ei){switch(ei.label){case 0:if("getState"in eo)return[2,et&&et(eo)];return[4,makeProps({callback:et,context:eo,addStoreToContext:!0})];case 1:return[2,ei.sent()]}})})}},withRedux:function(et){console.warn("/!\\ You are using legacy implementation. Please update your code: use createWrapper() and wrapper.useWrappedStore().");var WrappedComponent=function(eo){var ei=useWrappedStore(eo,WrappedComponent.displayName),ea=ei.store,eh=ei.props;return eu.createElement(ed.zt,{store:ea},eu.createElement(et,__assign({},eh)))};return WrappedComponent.displayName="withRedux(".concat(et.displayName||et.name||"Component",")"),"getInitialProps"in et&&(WrappedComponent.getInitialProps=et.getInitialProps),WrappedComponent},useWrappedStore:useWrappedStore}}},63144:function(et){"use strict";let eo=self.fetch.bind(self);et.exports=eo,et.exports.default=et.exports},6840:function(et,eo,ei){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return ei(99439)}])},3765:function(et,eo,ei){"use strict";ei.d(eo,{h:function(){return eu}});var ea=ei(22920);let eu={success(et){(0,ea.Am)(et,{type:"success"})},warning(et){(0,ea.Am)(et,{type:"warning"})},info(et){(0,ea.Am)(et,{type:"info"})},error(et){(0,ea.Am)(et,{type:"error"})},toast(et){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";(0,ea.Am)(et,{type:eo})}}},42169:function(et,eo,ei){"use strict";ei.d(eo,{m:function(){return useAccount}});var ea=ei(85893),eu=ei(98573),ed=ei(87209),eh=ei(23250),ep=ei(78066),ef=ei(66725),em=ei(11163),eg=ei(67294),ey=ei(88767);let eC=(0,eg.createContext)({isRoleAssumed:!1,accountId:"",accountDetails:null,assumeRole:(et,eo)=>{},removeRole:()=>{},refetchAccountDetails:()=>{}}),useAccount=()=>(0,eg.useContext)(eC),AccountProvider=et=>{let{children:eo}=et,ei=(0,em.useRouter)(),{userInfo:eS}=(0,eu.a)(),{isClientUser:e_,isSuperAdmin:ew,isTGGUser:eA,isGlobalUser:eI,isMultiClient:eR,agency:eT}=null!=eS?eS:{},{isRoleAssumed:eE,removeRole:eP}=(0,ed.m)(),ek=ei.query[ef.si.accountId],eO=ei.query.accountId,[eM,eD]=(0,eg.useState)(!1),[eU,eL]=(0,eg.useState)(""),[eN,eB]=(0,eg.useState)(null),{data:eF,isSuccess:ej,isLoading:eG,refetch:eH}=(0,ey.useQuery)(["/agencies/".concat(eU),{agencyId:eU,include:["agency"]}],eh.Z.getAgencyById,{refetchOnWindowFocus:!1,enabled:!!eU&&!e_&&!eA});(0,eg.useEffect)(()=>{eU!==(null==eN?void 0:eN.id)&&eB(null)},[eU,eN]),(0,eg.useEffect)(()=>{eF&&ej&&eB(eF)},[eG,eF]),(0,eg.useEffect)(()=>{eT&&(eA||e_)&&eB(eT)},[eT,eU]);let eK=(0,eg.useCallback)((et,eo)=>{if(eL(et),document.cookie="hub.agency.id=".concat(et),eo){let eo=(0,ep.Wz)({[ef.si.accountId]:et});ei.push({pathname:ef._j.admin.client.list,query:eo})}},[ei,eL]),ez=(0,eg.useCallback)(()=>{eE&&eP(),ei.push(ef._j.admin.agency.list)},[ei,eP,eE]);return(0,eg.useEffect)(()=>{(ew||eA||eI||e_&&eR)&&(ek||eO?(eL((null==ek?void 0:ek.toString())||(null==eO?void 0:eO.toString())||""),document.cookie="hub.agency.id=".concat((null==ek?void 0:ek.toString())||(null==eO?void 0:eO.toString()))):(eL(""),document.cookie="hub.agency.id="),eM?(!ek||e_)&&eD(!1):ek&&!e_&&eD(!0)),(null==eS?void 0:eS.isClientUser)&&!(null==eS?void 0:eS.isMultiClient)&&(eL(null==eS?void 0:eS.parentId),document.cookie="hub.agency.id=".concat(eS.parentId))},[ek,eO,eM,eS]),(0,ea.jsx)(eC.Provider,{value:{isRoleAssumed:eM,accountId:eU,assumeRole:eK,removeRole:ez,accountDetails:eN,refetchAccountDetails:eH},children:eo})};eo.Z=AccountProvider},69575:function(et,eo,ei){"use strict";ei.d(eo,{A:function(){return useAgency}});var ea=ei(85893),eu=ei(28214),ed=ei(67294),eh=ei(88767);let ep=(0,ed.createContext)({}),useAgency=()=>(0,ed.useContext)(ep),AgencyProvider=et=>{let{children:eo}=et,ei=(0,ed.useMemo)(()=>{let et=window.location.hostname,[eo,ei]=et.split(".");if(!(!eo||["app","admin","app"].includes(eo))&&["hub-analytics","tgg-accounting","localhost"].includes(ei))return eo},[]),{data:ef,isSuccess:em,isLoading:eg}=(0,eh.useQuery)(["/clients/slug/".concat(ei),{slug:ei}],eu.Z.getAgencyDetails,{refetchOnWindowFocus:!1,enabled:!!ei}),ey=(0,ed.useMemo)(()=>({agencyName:(null==ef?void 0:ef.name)||"",logoUrl:(null==ef?void 0:ef.logoUrl)||"",agencyId:(null==ef?void 0:ef.id)||"",isLoading:eg,isSuccess:em}),[ef,eg,em]);return(0,ea.jsx)(ep.Provider,{value:ey,children:eo})};eo.Z=AgencyProvider},98573:function(et,eo,ei){"use strict";ei.d(eo,{a:function(){return useAuth}});var ea=ei(85893),eu=ei(76272),ed=ei(64487),eh=ei(33065),ep=ei(16053),ef=ei(85126),em=ei(89970),eg=ei(66725),ey=ei(42474),eC=ei.n(ey),eS=ei(11163),e_=ei(67294);let ew=(0,e_.createContext)({}),useAuth=()=>(0,e_.useContext)(ew),AuthProvider=et=>{let eo=(0,eS.useRouter)(),[ei,ey]=(0,e_.useState)(!1),[eA,eI]=(0,e_.useState)(!1),[eR,eT,eE,eP]=(0,eu.Z)({firstName:"",lastName:"",displayName:"",email:"",imageUrl:"",userId:"",userRole:"",jobRole:"",clientId:"",roleGroup:"",roleGroupCode:"",permissions:[],assignedClients:[],assignedAgencies:[],isOwner:!1,isActive:!1,isTGGUser:!1,isClientUser:!1,isFullAccess:!1,isGlobalUser:!1,isSuperAdmin:!1,isMultiClient:!1,isReadOnlyAccess:!1,isStandardAccess:!1,agency:null,parentAccountId:""});async function authenticateAndRedirect(et){let ei=ep.Z.getDecodedAccessToken();if(ei&&(null==ei?void 0:ei.sub)){eI(!0);let eS=ei.tggUserId,e_=await eh.Z.getUserById({queryKey:["",{userId:eS,include:"assigned-agency"}]}),{id:ew,userRole:eA,permissions:eR,firstName:eE,lastName:eP,email:ek,jobRole:eO,imageUrl:eM,client:eD,createdAt:eU,roleGroup:eL,roleGroupCode:eN,assignedClients:eB,assignedAgencies:eF,isOwner:ej,isActive:eG,isTGGUser:eH,isSuperAdmin:eK,isClientUser:ez,isFullAccess:eW,isGlobalUser:eV,isMultiClient:eJ,isReadOnlyAccess:eY,isStandardAccess:e$,clientName:eZ,agency:eQ,parentAccountId:eX}=(0,em.wG)(e_);if(ew&&eG&&eA){var ea,eu,ef;let ei="V8SMq1DLdA3s0r6Q0xXrP9l1U7a2-1QTtTB-EJfaVMTp06ecglNS",eh=Math.floor(Date.now()/1e3),ep=[eC().createHmac("sha256",ei).update("".concat(ew,"-").concat(eh)).digest("hex"),eh].join("-"),em={uid_hash:ep,email:ek,name:"".concat(eE," ").concat(eP),created:eU,role:eA,permission:eN};if(ey(!0),eT({firstName:eE,lastName:eP,displayName:"".concat(eE," ").concat(eP),email:ek,imageUrl:eM,userId:eS,userRole:eA,jobRole:eO,isSuperAdmin:eK,isTGGUser:eH,isClientUser:ez,isActive:eG,permissions:eR,clientId:ez?eD.id:"",assignedClients:eB,assignedAgencies:eF,roleGroup:eL,roleGroupCode:eN,isOwner:ej,isFullAccess:eW,isMultiClient:eJ,isStandardAccess:e$,isReadOnlyAccess:eY,isGlobalUser:eV,agency:eQ,parentAccountId:eX}),ed.av({id:eS,email:ek,username:"".concat(eE," ").concat(eP)}),eQ&&eX&&(ez||eH)){let et={uid:eX,name:(null==eQ?void 0:eQ.name)||"",clientName:eZ||""};em.logoUrl=(null==eQ?void 0:eQ.logoUrl)||"",null===(eu=window)||void 0===eu||null===(ea=eu.chmln)||void 0===ea||ea.identify(ew,{...em,company:{...et}})}else null===(ef=window)||void 0===ef||ef.chmln.identify(ew,{...em});eI(!1),et&&(eX&&ez&&!eJ?eo.push({pathname:eg._j.client.clientUserDashboard,query:{[eg.si.accountId]:eX}}):eH&&eX?eo.push({pathname:eg._j.admin.client.list,query:{[eg.si.accountId]:eX}}):eo.push((0,eg.f5)(ez,eJ)))}else ep.Z.logOut()}else ep.Z.logOut()}async function checkAuthentication(){let et=ep.Z.handleAuthentication();"notValidToken"===et?handleLogout():"Authenticated"===et&&authenticateAndRedirect()}function handleLogout(){ey(!1),eP(),ep.Z.logOut()}function haveRights(et){return(0,ef.P)(et,ei,eR)}(0,e_.useEffect)(()=>{let et=0;document.addEventListener("mousemove",()=>{et=0}),document.addEventListener("keypress",()=>{et=0});let eo=setInterval(async()=>{et>=18e5&&(et=0,ep.Z.logOut()),et+=1e3},1e3);return()=>clearInterval(eo)},[]),(0,e_.useEffect)(()=>{let et=eg.Fl.some(et=>et.path===eo.pathname);if(et){let et=ep.Z.handleAuthentication();"Authenticated"!==et&&eo.push(eg._j.common.login)}},[eo]),(0,e_.useEffect)(()=>{let et=setInterval(async()=>{let et=eg.Fl.some(et=>et.path===eo.pathname);if(et){let et=ep.Z.handleAuthentication();"noAccessToken"===et?eo.push(eg._j.common.login):"notValidToken"===et&&handleLogout()}},6e4);return()=>clearInterval(et)},[eo]),(0,e_.useEffect)(()=>{let et=setInterval(async()=>{let et=ep.Z.isAboutToExpire();et&&confirm("Your session will expire in 5 minutes. Please re-login to continue using this application.")&&ep.Z.logOut()},3e4);return()=>clearInterval(et)},[]),(0,e_.useEffect)(()=>{checkAuthentication()},[]);let ek=(0,e_.useMemo)(()=>({isAuthenticated:ei,setIsAuthenticated:ey,userInfo:eR,setUserInfo:eT,isUserInfoLoading:eA,authenticateAndRedirect,handleLogout,haveRights}),[ei,eR,eA]);return(0,ea.jsx)(ew.Provider,{value:ek,children:et.children})};eo.Z=AuthProvider},87209:function(et,eo,ei){"use strict";ei.d(eo,{Z:function(){return eE},m:function(){return useClient}});var ea=ei(85893),eu=ei(42169),ed=ei(98573),eh=ei(64022),ep=ei(88767);function useClientAISProfile(et){let{userInfo:eo,isAuthenticated:ei}=(0,ed.a)(),ea=null==eo?void 0:eo.isClientUser,{data:eu,isSuccess:ef,refetch:em}=(0,ep.useQuery)(["/get/clients/".concat(et,"/ais-profile"),{clientId:et}],eh.Z.getAISProfile,{refetchOnWindowFocus:!1,keepPreviousData:!0,enabled:!!ei&&!!et&&!ea});return{aisProfileDetails:ef?eu:null,refetchAISProfileDetails:em}}var ef=ei(42717);function useClientPreConditions(et){let{data:eo,isSuccess:ei,refetch:ea}=(0,ep.useQuery)(["/get/clients/".concat(et,"/reports/pre-conditions"),{clientId:et}],ef.Z.getClientPreConditions,{refetchOnWindowFocus:!1,keepPreviousData:!0,enabled:!!et});return{data:ei?eo:null,refetch:ea}}var em=ei(76272),eg=ei(2722),ey=ei(25704),eC=ei(78066);function clientConditionResponseHelper(et){var eo;let ei={isAISSetupDone:!1,isCOASetupDone:!1,isAISAccountsDownloaded:!1,isAISMappingDone:!1,isReportTemplateSetupDone:!1};return(null==et?void 0:null===(eo=et.preConditions)||void 0===eo?void 0:eo.length)>0&&et.preConditions.forEach(et=>{switch(et.condition){case"ais-profile-setup":ei.isAISSetupDone=et.complete;break;case"coa-setup":ei.isCOASetupDone=et.complete;break;case"ais-accounts-download":ei.isAISAccountsDownloaded=et.complete;break;case"ais-account-mappings":ei.isAISMappingDone=et.complete;break;case"report-template-setup":ei.isReportTemplateSetupDone=et.complete}}),ei}var eS=ei(66725),e_=ei(11163),ew=ei(67294),eA=ei(36769),eI=ei(79657),eR=ei(1604);let eT=(0,ew.createContext)({isRoleAssumed:!1,clientId:"",assumeRole:(et,eo,ei)=>{},removeRole:()=>{},clientDetails:null,refetchClientDetails:()=>{},isOnClientPage:!1,clientAISProfile:null,clientStatus:{isAISSetupDone:!1,isCOASetupDone:!1,isAISAccountsDownloaded:!1,isAISMappingDone:!1,isReportTemplateSetupDone:!1},refetchClientStatus:()=>{},isAISAccountSetupPending:!1,isAISAccountSetupDone:!1,refetchAISProfileDetails:()=>{},portalView:"admin",setPortalView:et=>{},isClientView:!1,clientUserAssumeRole:(et,eo)=>{}}),useClient=()=>(0,ew.useContext)(eT),ClientProvider=et=>{var eo,ei;let eh=(0,e_.useRouter)(),ef=null===(eo=eh.query[eS.si.clientId])||void 0===eo?void 0:eo.toString(),eE=null===(ei=eh.query.clientId)||void 0===ei?void 0:ei.toString(),{userInfo:eP}=(0,ed.a)(),{accountId:ek,isRoleAssumed:eO}=(0,eu.m)(),[eM,eD]=(0,ew.useState)(!1),[eU,eL]=(0,ew.useState)(""),[eN,eB]=(0,ew.useState)(null),[eF,ej]=(0,ew.useState)(!1),[eG,eH]=(0,ew.useState)(null),[eK,ez,eW,eV]=(0,em.Z)({isAISSetupDone:!1,isCOASetupDone:!1,isAISAccountsDownloaded:!1,isAISMappingDone:!1,isReportTemplateSetupDone:!1}),[eJ,eY]=(0,ew.useState)("admin"),{aisProfileDetails:e$,refetchAISProfileDetails:eZ}=useClientAISProfile(eU),{data:eQ,refetch:eX}=useClientPreConditions(eU);(0,ew.useEffect)(()=>{let et=eR.z.enum(["client","admin"]).safeParse(sessionStorage.getItem(ey.H0.clientPortalView));et.success&&eY(et.data)},[]);let e0=(0,eA.T)();(0,ew.useEffect)(()=>{(null==eP?void 0:eP.isClientUser)&&!eU?e0((0,eI.ou)(eI.cH.user)):(null==eP?void 0:eP.isClientUser)||eM?e0((0,eI.ou)(eI.cH.client)):eO?e0((0,eI.ou)(eI.cH.admin)):e0((0,eI.ou)(eI.cH.owner))},[e0,null==eP?void 0:eP.isClientUser,eM,eO,eU]);let{data:e4,isSuccess:e6,isLoading:e5,refetch:e8}=(0,ep.useQuery)(["/clients/".concat(eU),{clientId:eU,include:["financial-profile","agency"]}],eg.Z.getClientById,{refetchOnWindowFocus:!1,enabled:!!eU}),setPortalView=et=>{eY(et),sessionStorage.setItem(ey.H0.clientPortalView,et)};function assumeRole(et,eo,ei){if(eL(et),setPortalView("admin"),document.cookie="hub.client.id=".concat(et),eo){let eo=(0,eC.Wz)({[eS.si.accountId]:ei,[eS.si.clientId]:et});eh.push({pathname:eS._j.client.details,query:eo})}}function clientUserAssumeRole(et,eo){eL(et),document.cookie="hub.client.id=".concat(et);let ei=(0,eC.Wz)({[eS.si.accountId]:eo,[eS.si.clientId]:et});eh.push({pathname:eS._j.client.clientUserDashboard,query:ei})}function removeRole(){setPortalView("admin"),document.cookie="hub.client.id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",sessionStorage.removeItem(ey.H0.clientPortalView);let et=(0,eC.Wz)({[eS.si.accountId]:ek});eh.push({pathname:eS._j.admin.client.list,query:et})}(0,ew.useEffect)(()=>{if((null==eP?void 0:eP.isSuperAdmin)||(null==eP?void 0:eP.isTGGUser)||(null==eP?void 0:eP.isGlobalUser)||(null==eP?void 0:eP.isClientUser)&&(null==eP?void 0:eP.isMultiClient)){let et=ef||eE||"";eL(et),document.cookie="hub.client.id=".concat(et),eM?(!ef||(null==eP?void 0:eP.isClientUser))&&eD(!1):!ef||(null==eP?void 0:eP.isClientUser)||eD(!0)}(null==eP?void 0:eP.isClientUser)&&!(null==eP?void 0:eP.isMultiClient)&&(eL(null==eP?void 0:eP.clientId),document.cookie="hub.client.id=".concat(null==eP?void 0:eP.clientId))},[ef,eE,eM,eP]),(0,ew.useEffect)(()=>{eU!==(null==eN?void 0:eN.id)&&eB(null)},[eU,eN]),(0,ew.useEffect)(()=>{e4&&e6&&eB(e4)},[e5,e4]),(0,ew.useEffect)(()=>{eh.pathname&&(Object.keys(eS._j.client).some(et=>eS._j.client[et]===eh.pathname)?ej(!0):ej(!1))},[eh]),(0,ew.useEffect)(()=>{eU&&e$?eH(e$):eU&&null===eG&&eZ()},[eU,e$]),(0,ew.useEffect)(()=>{eU&&eQ?ez(clientConditionResponseHelper(eQ)):eV()},[eU,eQ]),(0,ew.useEffect)(()=>{(null==eP?void 0:eP.isClientUser)?setPortalView("client"):((null==eP?void 0:eP.isSuperAdmin)||(null==eP?void 0:eP.isTGGUser)||(null==eP?void 0:eP.isGlobalUser)||eM)&&setPortalView("admin")},[eP,eM]);let e7=(0,ew.useMemo)(()=>{var et;return{isRoleAssumed:eM,clientId:eU,assumeRole,removeRole,clientDetails:eN,refetchClientDetails:e8,isOnClientPage:eF,clientAISProfile:eG,clientStatus:eK,refetchClientStatus:eX,isAISAccountSetupPending:!!eG||null===eG,isAISAccountSetupDone:!!eG&&!!(null==eG?void 0:null===(et=eG.data)||void 0===et?void 0:et.id),refetchAISProfileDetails:eZ,portalView:eJ,setPortalView,isClientView:(null==eP?void 0:eP.isClientUser)||"client"===eJ,clientUserAssumeRole}},[eM,eU,eN,eF,eG,eK,eJ,null==eP?void 0:eP.isClientUser]);return(0,ea.jsx)(eT.Provider,{value:e7,children:et.children})};var eE=ClientProvider},39186:function(et,eo,ei){"use strict";ei.d(eo,{q:function(){return useFormulaBuilder}});var ea=ei(85893),eu=ei(28846),ed=ei(76272),eh=ei(66082),ep=ei(32057),ef=ei(67294),em=ei(57632);let eg=(0,ef.createContext)({state:{formulaName:"",formulaDescription:"",trailingPeriod:null,outputType:"",outputDecimal:0},setState:et=>{},handleState:(et,eo)=>{},clearState:()=>{},formula:[],setFormula:et=>{},removeFormulaItem:et=>{},inputs:[],setInputs:et=>{},addInput:()=>{},deleteInputByIndex:et=>{},updateInputsField:(et,eo,ei)=>{},isLocked:!0,setIsLocked:et=>{},addBracketsToFormula:()=>{},addOperatorToFormula:(et,eo)=>{},addInputToFormula:et=>{},isTestMode:!1,setIsTestMode:et=>{},isDeleteMode:!1,setIsDeleteMode:et=>{},clearFormula:()=>{}}),useFormulaBuilder=()=>(0,ef.useContext)(eg),FormulaBuilderProvider=et=>{let[eo,ei]=(0,ef.useState)(!0),[ey,eC]=(0,ef.useState)(!1),[eS,e_]=(0,ef.useState)(!1),[ew,eA,eI,eR]=(0,ed.Z)({formulaName:"",formulaDescription:"",trailingPeriod:null,outputType:"number",outputDecimal:0}),[eT,eE,eP,ek,eO]=(0,eu.Z)([]),[eM,eD,eU,eL,eN,eB]=(0,eu.Z)([]),eF=(0,ef.useCallback)(()=>{eU({id:(0,em.Z)(),selectedAccount:null,aggregation:"",isDisabled:!1,trailingPeriod:null,value:"",testValue:(0,ep.n0)(eM)})},[eU,ep.n0,em.Z]),ej=(0,ef.useCallback)(et=>{let eo=eM[et].id,ei=[...eT];eN(et),eE(ei.filter(et=>!(et.type===eh.AX.input&&et.id===eo)))},[eM,eN,eE,eh.AX]),eG=(0,ef.useCallback)((et,eo)=>{let ei=[...eT],ea=ei.findLastIndex(et=>et.type===eh.AX.input);ea>=0?ei.splice(ea,0,{type:et,id:eo}):ei.splice(ei.length-1,0,{type:et,id:eo}),eE(ei)},[eT,eE]),eH=(0,ef.useCallback)(()=>{let et=(0,ep.iL)(),eo=[...eT];eo.splice(0,0,{color:et,type:eh.AX.bracket,id:eh.XO.open}),eo.push({color:et,type:eh.AX.bracket,id:eh.XO.close}),eE(eo)},[eT,eE,eh.XO,eh.AX]),eK=(0,ef.useCallback)(et=>{let eo=[...eT],ei=eT.findLastIndex(et=>et.type===eh.AX.bracket);ei>=0?eo.splice(ei,0,et):eo.push(et),eE(eo)},[eT,eE,eh.AX]),ez=(0,ef.useCallback)(()=>{eE([]),eD([]),eR(),eC(!1),e_(!1)},[eE,eD,eR,eC,e_]);return(0,ea.jsx)(eg.Provider,{value:{state:ew,setState:eA,handleState:eI,clearState:eR,clearFormula:ez,formula:eT,setFormula:eE,removeFormulaItem:eO,inputs:eM,setInputs:eD,addInput:eF,deleteInputByIndex:ej,updateInputsField:eB,isLocked:eo,setIsLocked:ei,addBracketsToFormula:eH,addOperatorToFormula:eG,addInputToFormula:eK,isTestMode:ey,setIsTestMode:eC,isDeleteMode:eS,setIsDeleteMode:e_},children:et.children})};eo.Z=FormulaBuilderProvider},5459:function(et,eo,ei){"use strict";ei.d(eo,{Z:function(){return eR},n:function(){return useReport}});var ea=ei(85893),eu=ei(3765),ed=ei(87209),eh=ei(5906),ep=ei(42717),ef=ei(88767);function useFinancialPackageDetails(et,eo){let{isFetched:ei,data:ea,refetch:eu}=(0,ef.useQuery)(["/get/clients/".concat(et,"/financial-package/").concat(eo),{clientId:et,financialPackageId:eo}],ep.Z.getFinancialPackageDetails,{refetchOnWindowFocus:!1,keepPreviousData:!0,enabled:!!et&&!!eo});return ei?{financialPackage:ea,refetch:eu}:{financialPackage:null,refetch:()=>{}}}var em=ei(38748),eg=ei(77179),ey=ei(51183),eC=ei(11163),eS=ei(45697),e_=ei.n(eS),ew=ei(67294),eA=ei(26524);let eI=(0,ew.createContext)({}),useReport=()=>(0,ew.useContext)(eI),ReportProvider=et=>{var eo,ei,eS;let{children:e_}=et,eR=(0,eC.useRouter)(),{reportTemplateId:eT,packageComponentId:eE,financialPackageId:eP}=eR.query,{t:ek}=(0,eA.$)(),{clientId:eO}=(0,ed.m)(),{financialPackage:eM}=useFinancialPackageDetails(eO,eP),{packagesData:eD,refetch:eU}=(0,eh.R)(eO,eT,!!eP,null==eM?void 0:eM.year,null==eM?void 0:eM.month),[eL,eN]=(0,ew.useState)(!1),[eB,eF]=(0,ew.useState)(null),[ej,eG]=(0,ew.useState)(!1),[eH,eK]=(0,ew.useState)(!1),[ez,eW]=(0,ew.useState)(1),[eV,eJ]=(0,ew.useState)(!1);function startCall(et){let eo=em.Z.setFullReportAPICallsStarted("get");eo.includes(et)||eo.push(et),em.Z.setFullReportAPICallsStarted("set",eo)}function endCall(et){let eo=em.Z.setFullReportAPICallsStarted("get"),ei=em.Z.setFullReportAPICallsDone("get");ei.includes(et)||ei.push(et),em.Z.setFullReportAPICallsDone("set",ei),(null==ei?void 0:ei.length)===(null==eo?void 0:eo.length)&&(eu.h.success(ek("report.changesSaved")),eG(!1),eK(!0),em.Z.setFullReportAPICallsStarted("remove"),em.Z.setFullReportAPICallsDone("remove"))}function clearContext(){em.Z.setFullReportAPICallsStarted("remove"),em.Z.setFullReportAPICallsDone("remove"),eG(!1),eK(!1),eW(1)}(0,ew.useEffect)(()=>{eH&&setTimeout(()=>{eK(!1)},5e3)},[eH]),(0,ew.useEffect)(()=>{ej&&setTimeout(()=>{let et=em.Z.setFullReportAPICallsStarted("get");(null==et?void 0:et.length)<=0&&eG(!1)},8e3)},[ej]),(0,ew.useEffect)(()=>{let et="Changes you made may not be saved.",beforeRouteHandler=eo=>{if(eR.pathname!==eo&&ej){if(confirm(et))clearContext();else throw eR.events.emit("routeChangeError"),'Route change to "'.concat(eo,'" was aborted.')}};return eR.events.on("routeChangeStart",beforeRouteHandler),()=>{eR.events.off("routeChangeStart",beforeRouteHandler)}},[ej]),(0,ew.useEffect)(()=>{function paste(et){var eo;et.preventDefault();let ei=null===(eo=et.clipboardData)||void 0===eo?void 0:eo.getData("text/plain");document.execCommand("insertHTML",!1,ei)}return document.addEventListener("paste",paste),()=>document.removeEventListener("paste",paste)},[]);let{data:eY,isSuccess:e$,refetch:eZ}=(0,ef.useQuery)(["/clients/".concat(eO,"/report-templates/").concat(eT,"/modules/").concat(eE),{clientId:eO,reportTemplateId:eT,moduleId:eE}],ep.Z.getWidgetSelectionModuleConfiguration,{refetchOnWindowFocus:!1,enabled:!!eO&&!!eT&&!!eE&&!eP}),{data:eQ,isSuccess:eX,refetch:e0}=(0,ef.useQuery)(["/clients/".concat(eO,"/report-module-config/").concat(null==eB?void 0:null===(eo=eB.configuration)||void 0===eo?void 0:eo.id,"/").concat(null==eM?void 0:eM.year,"/").concat(null==eM?void 0:eM.month),{clientId:eO,year:null==eM?void 0:eM.year,month:null==eM?void 0:eM.month,reportModuleConfigId:null==eB?void 0:null===(ei=eB.configuration)||void 0===ei?void 0:ei.id}],ep.Z.getMonthlyReportModulesConfiguration,{refetchOnWindowFocus:!1,enabled:!!eO&&!!(null==eM?void 0:eM.year)&&!!(null==eM?void 0:eM.month)&&!!(null==eB?void 0:null===(eS=eB.configuration)||void 0===eS?void 0:eS.id)&&eE===eB.id&&!(null==eB?void 0:eB.isDfm)&&!!eP});(0,ew.useEffect)(()=>{var et;if(eE&&(null==eD?void 0:null===(et=eD.items)||void 0===et?void 0:et.length)>0){let et=eD.items.find(et=>(null==et?void 0:et.id)===eE);if(null==et?void 0:et.id)eF(et);else{let et=null;null==eD||eD.items.some(eo=>{let{children:ei,haveChildren:ea}=(0,ey.xV)(eo);if(ea){let eo=ei.find(et=>et.id===eE);if(null==eo?void 0:eo.id)return et=eo,!0}return!1}),eF(et)}}},[eE,eD]);let e4=(0,ew.useMemo)(()=>{var et;return{packagesData:(null==eD?void 0:null===(et=eD.items)||void 0===et?void 0:et.length)>0?null==eD?void 0:eD.items.sort((et,eo)=>et.displayOrder>eo.displayOrder?1:-1):[],refetchPackages:eU,selectedPackage:eB,financialPackage:eM,isReportPublished:(null==eM?void 0:eM.status)===eg.a2.published,isModuleDataSuccess:eP?eX:e$,moduleData:eP?eQ:eY,refetchModuleData:eP?e0:eZ,isShowFullReport:eL,setIsShowFullReport:eN,callSave:ej,setCallSave:eG,refetch:eH,setRefetch:eK,isReport:!!eP,notesPages:ez,setNotesPages:eW,startCall,endCall,disableButtons:eV,setDisableButtons:eJ,clearContext}},[eD,eB,e$,eX,eY,eQ,eM,eL,ej,ez,eV]);return(0,ea.jsx)(eI.Provider,{value:e4,children:e_})};var eR=ReportProvider;ReportProvider.propTypes={children:e_().any}},59846:function(et,eo,ei){"use strict";var ea;ei.d(eo,{l:function(){return ea},r:function(){return isAiWidget}}),function(et){et.TITLE="title",et.TEXT="text",et.IMAGE="image",et.KPI="kpi",et.DFM="dfm",et.GOAL="goal",et.PROFIT_RECOMMENDATION="profitRecommendation",et.TBL="tbl",et.CHARTS="charts",et.PDF="pdf",et.DATA_TABLE="data-table",et.CUSTOM_TABLE="custom-table",et.SALES_BY_CUSTOMER="sales-by-customer",et.AI_COMMENTARY="ai-commentary"}(ea||(ea={}));let isAiWidget=et=>{var eo;return(null==et?void 0:et.type)==="ai-commentary"&&!!(null===(eo=et.data)||void 0===eo?void 0:eo.topic)}},73696:function(et,eo,ei){"use strict";ei.d(eo,{Z:function(){return eR},y:function(){return useSeedData}});var ea=ei(85893),eu=ei(23322),ed=ei(70767),eh=ei(32818);let PermissionsServices=class PermissionsServices{constructor(){this.getAllPermissions=async et=>{let{queryKey:eo}=et,[ei,{sortDir:ea="ASC",sortBy:eu="id",take:ed=10,skip:ep=0,searchTerm:ef="",include:em="",categoryCode:eg="",active:ey=null}]=eo;return await eh.EF.get("/permissions",{params:{sortDir:ea,sortBy:eu,take:ed,skip:ep,searchTerm:ef,include:em,categoryCode:eg,active:ey}})},this.getPermissionsByCriteria=async et=>{let{queryKey:eo}=et,[ei,{criteria:ea,mode:eu="id"}]=eo;return ea&&eu?await eh.EF.get("/permissions/".concat(ea),{params:{mode:eu}}):(console.warn("Criteria or mode not provided, PermissionsServices.getPermissionsByCriteria"),null)},this.getPermissionsByCategory=async et=>{let{queryKey:eo}=et,[ei,{code:ea}]=eo;return ea?await eh.EF.get("/permission-categories/".concat(ea,"/permissions")):(console.warn("Code not provided, PermissionsServices.getPermissionsByCategory"),null)},this.getPermissionCategories=async et=>{let{queryKey:eo}=et,[ei,{include:ea="",searchTerm:eu="",active:ed=null}]=eo,ep=await eh.EF.get("/permission-categories",{params:{include:ea,searchTerm:eu,active:ed}});return ep},this.activatePermission=async et=>et?await eh.EF.post("/permissions/".concat(et,"/activate")):(console.warn("PermissionId not provided, PermissionsServices.activatePermission"),null),this.archivePermission=async et=>et?await eh.EF.post("/permissions/".concat(et,"/archive")):(console.warn("PermissionId not provided, PermissionsServices.archivePermission"),null),this.restorePermission=async et=>et?await eh.EF.post("/permissions/".concat(et,"/restore")):(console.warn("PermissionId not provided, PermissionsServices.restorePermission"),null),this.activatePermissionCategory=async et=>et?await eh.EF.post("/permission-categories/".concat(et,"/activate")):(console.warn("PermissionCategoryId not provided, PermissionsServices.activatePermissionCategory"),null),this.deactivatePermissionCategory=async et=>et?await eh.EF.post("/permission-categories/".concat(et,"/deactivate")):(console.warn("PermissionCategoryId not provided, PermissionsServices.deactivatePermissionCategory"),null),this.archivePermissionCategory=async et=>et?await eh.EF.post("/permission-categories/".concat(et,"/archive")):(console.warn("PermissionCategoryId not provided, PermissionsServices.archivePermissionCategory"),null),this.restorePermissionCategory=async et=>et?await eh.EF.post("/permission-categories/".concat(et,"/restore")):(console.warn("PermissionCategoryId not provided, PermissionsServices.restorePermissionCategory"),null)}};let ep=new PermissionsServices;var ef=ep,em=ei(31600),eg=ei(16053),ey=ei(66725),eC=ei(11163),eS=ei(45697),e_=ei.n(eS),ew=ei(67294),eA=ei(88767);let eI=(0,ew.createContext)({}),useSeedData=()=>(0,ew.useContext)(eI),SeedDataProvider=et=>{let{children:eo}=et,ei=(0,eC.useRouter)(),[eh,ep]=(0,ew.useState)(!1),[eS,e_]=(0,ew.useState)(""),eR=ei.query[ey.si.accountId];(0,ew.useEffect)(()=>{e_(eR)},[eR]),(0,ew.useEffect)(()=>{let et=eg.Z.handleAuthentication();ep("Authenticated"===et);let eo=setInterval(async()=>{let et=eg.Z.handleAuthentication();ep("Authenticated"===et)},6e4);return()=>clearInterval(eo)},[]);let{data:eT,isSuccess:eE}=(0,eA.useQuery)(["/type-data/states"],em.Z.getStates,{refetchOnWindowFocus:!1}),{data:eP,isSuccess:ek}=(0,eA.useQuery)(["/type-data/time-zones"],em.Z.getTimezones,{refetchOnWindowFocus:!1}),{data:eO,isSuccess:eM}=(0,eA.useQuery)(["/type-data/executive-role-types"],em.Z.getExecutiveRoleTypes,{refetchOnWindowFocus:!1}),{data:eD,isSuccess:eU}=(0,eA.useQuery)(["/type-data/advisor-types"],em.Z.getAdvisorRoleTypes,{refetchOnWindowFocus:!1}),{data:eL,isSuccess:eN}=(0,eA.useQuery)(["/type-data/accounting-role-types"],em.Z.getAccountingRoleTypes,{refetchOnWindowFocus:!1}),{data:eB,isSuccess:eF}=(0,eA.useQuery)(["/type-data/entity-types"],em.Z.getEntityTypes,{refetchOnWindowFocus:!1}),{data:ej,isSuccess:eG}=(0,eA.useQuery)(["/type-data/tax-types"],em.Z.getTaxTypes,{refetchOnWindowFocus:!1}),{isLoading:eH,data:eK,isSuccess:ez,refetch:eW}=(0,eA.useQuery)(["/type-data/report-types/".concat(eS)],em.Z.getReportTypes,{refetchOnWindowFocus:!1,enabled:eh&&!!eS}),{data:eV,isSuccess:eJ}=(0,eA.useQuery)(["/dynamic-financial-statement-types/".concat(eS),{clientId:""}],eu.Z.getDfmTypes,{refetchOnWindowFocus:!1,enabled:eh&&!!eS}),{data:eY,isSuccess:e$}=(0,eA.useQuery)(["/permission-categories",{include:"permision",active:!0}],ef.getPermissionCategories,{refetchOnWindowFocus:!1,enabled:eh}),{data:eZ,isSuccess:eQ,refetch:eX}=(0,eA.useQuery)(["/role-groups"],em.Z.getRoleGroups,{refetchOnWindowFocus:!1}),{data:e0,isSuccess:e4}=(0,eA.useQuery)(["/get/std-kpi-categories",{active:!0}],ed.Z.getKPIsCategory,{refetchOnWindowFocus:!1,enabled:eh&&(ey._j.admin.kpis.list===ei.pathname||ey._j.client.kpis.stdKPIsList===ei.pathname)}),{data:e6,isSuccess:e5}=(0,eA.useQuery)(["/dataset-field-types/".concat(eS)],em.Z.getDataSetFieldTypes,{refetchOnWindowFocus:!1,enabled:eh&&!!eS}),{data:e8,isSuccess:e7,refetch:e9}=(0,eA.useQuery)(["/type-data/chart-types/".concat(eS)],em.Z.getChartTypes,{refetchOnWindowFocus:!1,enabled:eh&&!!eS}),tr=(0,ew.useMemo)(()=>({states:(null==eT?void 0:eT.items)||[],timezones:(null==eP?void 0:eP.items)||[],executiveRoleTypes:(null==eO?void 0:eO.items)||[],advisorRoleTypes:(null==eD?void 0:eD.items)||[],accountingRoleTypes:(null==eL?void 0:eL.items)||[],entityTypes:(null==eB?void 0:eB.items)||[],taxTypes:(null==ej?void 0:ej.items)||[],reportTypes:(null==eK?void 0:eK.items)||[],dfmTypes:(null==eV?void 0:eV.items)||[],permissions:(null==eY?void 0:eY.items)||[],kpisCategoryData:(null==e0?void 0:e0.items)||[],dataSetFieldTypes:(null==e6?void 0:e6.items)||[],chartTypes:(null==e8?void 0:e8.items)||[],refetchChartTypes:e9,roleGroups:(null==eZ?void 0:eZ.items)||[],refetchRoleGroup:eX,refetchReportTypes:eW}),[eT,eE,eP,ek,eO,eM,eD,eU,eL,eN,eB,eF,ej,eG,eK,eH,ez,eV,eJ,eY,e$,e0,e4,e6,e5,e8,e7,eZ,eQ]);return(0,ea.jsx)(eI.Provider,{value:tr,children:eo})};var eR=SeedDataProvider;SeedDataProvider.propTypes={children:e_().any}},33071:function(et,eo,ei){"use strict";ei.d(eo,{Z:function(){return em},F:function(){return useTheme}});var ea=ei(85893),eu=ei(9054),ed=ei(67294);let useMediaQuery=et=>{let[eo,ei]=(0,ed.useState)(!1);return(0,ed.useEffect)(()=>{let ea=window.matchMedia(et);ea.matches!==eo&&ei(ea.matches);let listener=()=>ei(ea.matches);return window.addEventListener("resize",listener),()=>window.removeEventListener("resize",listener)},[eo,et]),eo};var eh=useMediaQuery,ep=ei(25704);let ef=(0,ed.createContext)({isMobile:!1,showFullNav:!1,isTablet:!1,isDark:!1,keepMenuOpen:!1,isLaptop:!1,isLargeLaptop:!1,setShowFullNav:et=>{},setKeepMenuOpen:(et,eo)=>{},setIsDark:(et,eo)=>{}}),useTheme=()=>(0,ed.useContext)(ef),ThemeProvider=et=>{let{children:eo}=et,ei=eh("(max-width:767px)"),[em,eg]=(0,ed.useState)(!0),ey=eh("(min-width:1024px)"),eC=eh("(min-width:1440px)"),eS=eh("(min-width:1636px)"),[e_,ew]=(0,eu.Z)(!1,ep.H0.darkMode),[eA,eI]=(0,eu.Z)(!0,ep.H0.sideMenu);(0,ed.useEffect)(()=>{ey||eg(!1)},[ey]),(0,ed.useEffect)(()=>{if(document.documentElement){let et=document.documentElement;e_?et.className="dark":et.className=""}},[e_]);let eR=(0,ed.useMemo)(()=>({isMobile:ei,showFullNav:em,isTablet:ey,isDark:e_,keepMenuOpen:eA,isLaptop:eC,isLargeLaptop:eS,setShowFullNav:eg,setIsDark:ew,setKeepMenuOpen:eI}),[ei,em,ey,e_,eA,eC,eS]);return(0,ea.jsx)(ef.Provider,{value:eR,children:eo})};var em=ThemeProvider},5906:function(et,eo,ei){"use strict";ei.d(eo,{R:function(){return useClientTemplatePackages}});var ea=ei(42717),eu=ei(88767);function useClientTemplatePackages(et,eo){let ei=arguments.length>2&&void 0!==arguments[2]&&arguments[2],ed=arguments.length>3?arguments[3]:void 0,eh=arguments.length>4?arguments[4]:void 0,ep=ei?!!eo&&!!et&&!!ed&&!!eh:!!eo&&!!et,{data:ef,isFetched:em,refetch:eg,isLoading:ey}=(0,eu.useQuery)(["/clients/".concat(et,"/report-templates/").concat(eo,"/modules"),{clientId:et,reportTemplateId:eo,mode:ei?"financial-package":"template-builder",year:ed,month:eh}],ea.Z.getReportModules,{refetchOnWindowFocus:!1,keepPreviousData:!1,enabled:!!ep});return em?{packagesData:ef,refetch:()=>eg(),isPackageDataLoading:ey}:{packagesData:null,refetch:()=>{},isPackageDataLoading:ey}}},28846:function(et,eo,ei){"use strict";var ea=ei(67294);let useArrState=et=>{let[eo,ei]=(0,ea.useState)(et),addItem=et=>{ei(eo=>[...eo,et])},updateItem=(et,eo)=>{ei(ei=>{let ea=[...ei];return ea[et]&&Object.keys(ea[et]).length>0&&(ea[et]=eo),ea})},updateItemField=(et,eo,ea)=>{ei(ei=>{let eu=[...ei];return eu[et]&&eo in eu[et]&&(eu[et][eo]=ea),eu})},removeItem=et=>{ei(eo=>{let ei=[...eo];return ei.splice(et,1),ei})};return[eo,ei,addItem,updateItem,removeItem,updateItemField]};eo.Z=useArrState},9054:function(et,eo,ei){"use strict";var ea=ei(67294);function useLocalState(et,eo){eo||console.error("Localstorage Key is not passed. useLocalState");let[ei,eu]=(0,ea.useState)(et),[ed,eh]=(0,ea.useState)(!1);return(0,ea.useEffect)(()=>{let ei=localStorage.getItem(eo);ei?eu(JSON.parse(ei)):localStorage.setItem(eo,JSON.stringify(et)),eh(!0)},[et,eo]),(0,ea.useEffect)(()=>{ed&&localStorage.setItem(eo,JSON.stringify(ei))},[ei,ed,eo]),[ei,eu]}eo.Z=useLocalState},76272:function(et,eo,ei){"use strict";var ea=ei(67294);let useObjState=et=>{let[eo,ei]=(0,ea.useState)(et),handleState=(et,eo)=>{ei(ei=>({...ei,[et]:eo}))},clearState=()=>{ei(et)};return[eo,ei,handleState,clearState]};eo.Z=useObjState},71966:function(et,eo,ei){"use strict";let ea,eu,ed,eh,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI,eR,eT,eE,eP,ek,eO,eM;var eD,eU,eL,eN,eB,eF,ej,eG={};ei.r(eG),ei.d(eG,{FunctionToString:function(){return e6},InboundFilters:function(){return tn},LinkedErrors:function(){return td}});var eH={};ei.r(eH),ei.d(eH,{Breadcrumbs:function(){return tW},Dedupe:function(){return t4},GlobalHandlers:function(){return tk},HttpContext:function(){return t0},LinkedErrors:function(){return tZ},TryCatch:function(){return tD}});var eK=ei(40105);function applySdkMetadata(et,eo,ei=[eo],ea="npm"){let eu=et._metadata||{};eu.sdk||(eu.sdk={name:`sentry.javascript.${eo}`,packages:ei.map(et=>({name:`${ea}:@sentry/${et}`,version:eK.J})),version:eK.J}),et._metadata=eu}var ez=ei(64487);function hasTracingEnabled(et){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let eo=(0,ez.s3)(),ei=et||eo&&eo.getOptions();return!!ei&&(ei.enableTracing||"tracesSampleRate"in ei||"tracesSampler"in ei)}var eW=ei(20535),eV=ei(62844),eJ=ei(12343),eY=ei(81703),e$=ei(71195),eZ=ei(95659);let eQ=[];function filterDuplicates(et){let eo={};return et.forEach(et=>{let{name:ei}=et,ea=eo[ei];ea&&!ea.isDefaultInstance&&et.isDefaultInstance||(eo[ei]=et)}),Object.keys(eo).map(et=>eo[et])}function getIntegrationsToSetup(et){let eo;let ei=et.defaultIntegrations||[],ea=et.integrations;ei.forEach(et=>{et.isDefaultInstance=!0}),eo=Array.isArray(ea)?[...ei,...ea]:"function"==typeof ea?(0,eV.lE)(ea(ei)):ei;let eu=filterDuplicates(eo),ed=findIndex(eu,et=>"Debug"===et.name);if(-1!==ed){let[et]=eu.splice(ed,1);eu.push(et)}return eu}function setupIntegrations(et,eo){let ei={};return eo.forEach(eo=>{eo&&setupIntegration(et,eo,ei)}),ei}function afterSetupIntegrations(et,eo){for(let ei of eo)ei&&ei.afterAllSetup&&ei.afterAllSetup(et)}function setupIntegration(et,eo,ei){if(ei[eo.name]){eY.X&&eJ.kg.log(`Integration skipped because it was already installed: ${eo.name}`);return}if(ei[eo.name]=eo,-1===eQ.indexOf(eo.name)&&(eo.setupOnce(e$.cc,eZ.Gd),eQ.push(eo.name)),eo.setup&&"function"==typeof eo.setup&&eo.setup(et),et.on&&"function"==typeof eo.preprocessEvent){let ei=eo.preprocessEvent.bind(eo);et.on("preprocessEvent",(eo,ea)=>ei(eo,ea,et))}if(et.addEventProcessor&&"function"==typeof eo.processEvent){let ei=eo.processEvent.bind(eo),ea=Object.assign((eo,ea)=>ei(eo,ea,et),{id:eo.name});et.addEventProcessor(ea)}eY.X&&eJ.kg.log(`Integration installed: ${eo.name}`)}function findIndex(et,eo){for(let ei=0;ei<et.length;ei++)if(!0===eo(et[ei]))return ei;return -1}function convertIntegrationFnToClass(et,eo){return Object.assign(function(...et){return eo(...et)},{id:et})}function defineIntegration(et){return et}let eX="FunctionToString",e0=new WeakMap,_functionToStringIntegration=()=>({name:eX,setupOnce(){ea=Function.prototype.toString;try{Function.prototype.toString=function(...et){let eo=(0,eW.HK)(this),ei=e0.has((0,ez.s3)())&&void 0!==eo?eo:this;return ea.apply(ei,et)}}catch(et){}},setup(et){e0.set(et,!0)}}),e4=defineIntegration(_functionToStringIntegration),e6=convertIntegrationFnToClass(eX,e4);var e5=ei(57321);let e8=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],e7=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],e9="InboundFilters",_inboundFiltersIntegration=(et={})=>({name:e9,setupOnce(){},processEvent(eo,ei,ea){let eu=ea.getOptions(),ed=_mergeOptions(et,eu);return _shouldDropEvent(eo,ed)?null:eo}}),tr=defineIntegration(_inboundFiltersIntegration),tn=convertIntegrationFnToClass(e9,tr);function _mergeOptions(et={},eo={}){return{allowUrls:[...et.allowUrls||[],...eo.allowUrls||[]],denyUrls:[...et.denyUrls||[],...eo.denyUrls||[]],ignoreErrors:[...et.ignoreErrors||[],...eo.ignoreErrors||[],...et.disableErrorDefaults?[]:e8],ignoreTransactions:[...et.ignoreTransactions||[],...eo.ignoreTransactions||[],...et.disableTransactionDefaults?[]:e7],ignoreInternal:void 0===et.ignoreInternal||et.ignoreInternal}}function _shouldDropEvent(et,eo){return eo.ignoreInternal&&_isSentryError(et)?(eY.X&&eJ.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,eV.jH)(et)}`),!0):_isIgnoredError(et,eo.ignoreErrors)?(eY.X&&eJ.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,eV.jH)(et)}`),!0):_isIgnoredTransaction(et,eo.ignoreTransactions)?(eY.X&&eJ.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,eV.jH)(et)}`),!0):_isDeniedUrl(et,eo.denyUrls)?(eY.X&&eJ.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,eV.jH)(et)}.
Url: ${_getEventFilterUrl(et)}`),!0):!_isAllowedUrl(et,eo.allowUrls)&&(eY.X&&eJ.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,eV.jH)(et)}.
Url: ${_getEventFilterUrl(et)}`),!0)}function _isIgnoredError(et,eo){return!et.type&&!!eo&&!!eo.length&&_getPossibleEventMessages(et).some(et=>(0,e5.U0)(et,eo))}function _isIgnoredTransaction(et,eo){if("transaction"!==et.type||!eo||!eo.length)return!1;let ei=et.transaction;return!!ei&&(0,e5.U0)(ei,eo)}function _isDeniedUrl(et,eo){if(!eo||!eo.length)return!1;let ei=_getEventFilterUrl(et);return!!ei&&(0,e5.U0)(ei,eo)}function _isAllowedUrl(et,eo){if(!eo||!eo.length)return!0;let ei=_getEventFilterUrl(et);return!ei||(0,e5.U0)(ei,eo)}function _getPossibleEventMessages(et){let eo;let ei=[];et.message&&ei.push(et.message);try{eo=et.exception.values[et.exception.values.length-1]}catch(et){}return eo&&eo.value&&(ei.push(eo.value),eo.type&&ei.push(`${eo.type}: ${eo.value}`)),eY.X&&0===ei.length&&eJ.kg.error(`Could not extract message for event ${(0,eV.jH)(et)}`),ei}function _isSentryError(et){try{return"SentryError"===et.exception.values[0].type}catch(et){}return!1}function _getLastValidUrl(et=[]){for(let eo=et.length-1;eo>=0;eo--){let ei=et[eo];if(ei&&"<anonymous>"!==ei.filename&&"[native code]"!==ei.filename)return ei.filename||null}return null}function _getEventFilterUrl(et){try{let eo;try{eo=et.exception.values[0].stacktrace.frames}catch(et){}return eo?_getLastValidUrl(eo):null}catch(eo){return eY.X&&eJ.kg.error(`Cannot extract url for event ${(0,eV.jH)(et)}`),null}}var ti=ei(67597);function applyAggregateErrorsToEvent(et,eo,ei=250,ea,eu,ed,eh){if(!ed.exception||!ed.exception.values||!eh||!(0,ti.V9)(eh.originalException,Error))return;let ep=ed.exception.values.length>0?ed.exception.values[ed.exception.values.length-1]:void 0;ep&&(ed.exception.values=truncateAggregateExceptions(aggregateExceptionsFromError(et,eo,eu,eh.originalException,ea,ed.exception.values,ep,0),ei))}function aggregateExceptionsFromError(et,eo,ei,ea,eu,ed,eh,ep){if(ed.length>=ei+1)return ed;let ef=[...ed];if((0,ti.V9)(ea[eu],Error)){applyExceptionGroupFieldsForParentException(eh,ep);let ed=et(eo,ea[eu]),em=ef.length;applyExceptionGroupFieldsForChildException(ed,eu,em,ep),ef=aggregateExceptionsFromError(et,eo,ei,ea[eu],eu,[ed,...ef],ed,em)}return Array.isArray(ea.errors)&&ea.errors.forEach((ea,ed)=>{if((0,ti.V9)(ea,Error)){applyExceptionGroupFieldsForParentException(eh,ep);let em=et(eo,ea),eg=ef.length;applyExceptionGroupFieldsForChildException(em,`errors[${ed}]`,eg,ep),ef=aggregateExceptionsFromError(et,eo,ei,ea,eu,[em,...ef],em,eg)}}),ef}function applyExceptionGroupFieldsForParentException(et,eo){et.mechanism=et.mechanism||{type:"generic",handled:!0},et.mechanism={...et.mechanism,..."AggregateError"===et.type&&{is_exception_group:!0},exception_id:eo}}function applyExceptionGroupFieldsForChildException(et,eo,ei,ea){et.mechanism=et.mechanism||{type:"generic",handled:!0},et.mechanism={...et.mechanism,type:"chained",source:eo,exception_id:ei,parent_id:ea}}function truncateAggregateExceptions(et,eo){return et.map(et=>(et.value&&(et.value=(0,e5.$G)(et.value,eo)),et))}function parseStackFrames(et,eo){return et(eo.stack||"",1)}function exceptionFromError(et,eo){let ei={type:eo.name||eo.constructor.name,value:eo.message},ea=parseStackFrames(et,eo);return ea.length&&(ei.stacktrace={frames:ea}),ei}let ta="cause",ts=5,tc="LinkedErrors",_linkedErrorsIntegration=(et={})=>{let eo=et.limit||ts,ei=et.key||ta;return{name:tc,setupOnce(){},preprocessEvent(et,ea,eu){let ed=eu.getOptions();applyAggregateErrorsToEvent(exceptionFromError,ed.stackParser,ed.maxValueLength,ei,eo,et,ea)}}},tu=defineIntegration(_linkedErrorsIntegration),td=convertIntegrationFnToClass(tc,tu),tp=eG;var tf=ei(71235);let tm=tf.GLOBAL_OBJ,tg=0;function shouldIgnoreOnError(){return tg>0}function ignoreNextOnError(){tg++,setTimeout(()=>{tg--})}function wrap(et,eo={},ei){if("function"!=typeof et)return et;try{let eo=et.__sentry_wrapped__;if(eo)return eo;if((0,eW.HK)(et))return et}catch(eo){return et}let sentryWrapped=function(){let ea=Array.prototype.slice.call(arguments);try{ei&&"function"==typeof ei&&ei.apply(this,arguments);let eu=ea.map(et=>wrap(et,eo));return et.apply(this,eu)}catch(et){throw ignoreNextOnError(),(0,ez.$e)(ei=>{ei.addEventProcessor(et=>(eo.mechanism&&((0,eV.Db)(et,void 0,void 0),(0,eV.EG)(et,eo.mechanism)),et.extra={...et.extra,arguments:ea},et)),(0,ez.Tb)(et)}),et}};try{for(let eo in et)Object.prototype.hasOwnProperty.call(et,eo)&&(sentryWrapped[eo]=et[eo])}catch(et){}(0,eW.$Q)(sentryWrapped,et),(0,eW.xp)(et,"__sentry_wrapped__",sentryWrapped);try{let eo=Object.getOwnPropertyDescriptor(sentryWrapped,"name");eo.configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>et.name})}catch(et){}return sentryWrapped}var ty=ei(53897),tv=ei(30360);let tb={},tC={};function addHandler(et,eo){tb[et]=tb[et]||[],tb[et].push(eo)}function maybeInstrument(et,eo){tC[et]||(eo(),tC[et]=!0)}function triggerHandlers(et,eo){let ei=et&&tb[et];if(ei)for(let ea of ei)try{ea(eo)}catch(eo){ty.X&&eJ.kg.error(`Error while triggering instrumentation handler.
Type: ${et}
Name: ${(0,tv.$P)(ea)}
Error:`,eo)}}let tS=null;function addGlobalErrorInstrumentationHandler(et){let eo="error";addHandler(eo,et),maybeInstrument(eo,instrumentError)}function instrumentError(){tS=tf.GLOBAL_OBJ.onerror,tf.GLOBAL_OBJ.onerror=function(et,eo,ei,ea,eu){let ed={column:ea,error:eu,line:ei,msg:et,url:eo};return triggerHandlers("error",ed),!!tS&&!tS.__SENTRY_LOADER__&&tS.apply(this,arguments)},tf.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let t_=null;function addGlobalUnhandledRejectionInstrumentationHandler(et){let eo="unhandledrejection";addHandler(eo,et),maybeInstrument(eo,instrumentUnhandledRejection)}function instrumentUnhandledRejection(){t_=tf.GLOBAL_OBJ.onunhandledrejection,tf.GLOBAL_OBJ.onunhandledrejection=function(et){let eo=et;return triggerHandlers("unhandledrejection",eo),!t_||!!t_.__SENTRY_LOADER__||t_.apply(this,arguments)},tf.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var tw=ei(58464);let tA="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var tI=ei(34754),tR=ei(96893);function eventbuilder_exceptionFromError(et,eo){let ei=eventbuilder_parseStackFrames(et,eo),ea={type:eo&&eo.name,value:extractMessage(eo)};return ei.length&&(ea.stacktrace={frames:ei}),void 0===ea.type&&""===ea.value&&(ea.value="Unrecoverable error caught"),ea}function eventFromPlainObject(et,eo,ei,ea){let eu=(0,ez.s3)(),ed=eu&&eu.getOptions().normalizeDepth,eh={exception:{values:[{type:(0,ti.cO)(eo)?eo.constructor.name:ea?"UnhandledRejection":"Error",value:getNonErrorObjectExceptionValue(eo,{isUnhandledRejection:ea})}]},extra:{__serialized__:(0,tI.Qy)(eo,ed)}};if(ei){let eo=eventbuilder_parseStackFrames(et,ei);eo.length&&(eh.exception.values[0].stacktrace={frames:eo})}return eh}function eventFromError(et,eo){return{exception:{values:[eventbuilder_exceptionFromError(et,eo)]}}}function eventbuilder_parseStackFrames(et,eo){let ei=eo.stacktrace||eo.stack||"",ea=getPopSize(eo);try{return et(ei,ea)}catch(et){}return[]}let tT=/Minified React error #\d+;/i;function getPopSize(et){if(et){if("number"==typeof et.framesToPop)return et.framesToPop;if(tT.test(et.message))return 1}return 0}function extractMessage(et){let eo=et&&et.message;return eo?eo.error&&"string"==typeof eo.error.message?eo.error.message:eo:"No error message"}function eventFromException(et,eo,ei,ea){let eu=ei&&ei.syntheticException||void 0,ed=eventbuilder_eventFromUnknownInput(et,eo,eu,ea);return(0,eV.EG)(ed),ed.level="error",ei&&ei.event_id&&(ed.event_id=ei.event_id),(0,tR.WD)(ed)}function eventbuilder_eventFromMessage(et,eo,ei="info",ea,eu){let ed=ea&&ea.syntheticException||void 0,eh=eventFromString(et,eo,ed,eu);return eh.level=ei,ea&&ea.event_id&&(eh.event_id=ea.event_id),(0,tR.WD)(eh)}function eventbuilder_eventFromUnknownInput(et,eo,ei,ea,eu){let ed;if((0,ti.VW)(eo)&&eo.error){let ei=eo;return eventFromError(et,ei.error)}if((0,ti.TX)(eo)||(0,ti.fm)(eo)){let eu=eo;if("stack"in eo)ed=eventFromError(et,eo);else{let eo=eu.name||((0,ti.TX)(eu)?"DOMError":"DOMException"),eh=eu.message?`${eo}: ${eu.message}`:eo;ed=eventFromString(et,eh,ei,ea),(0,eV.Db)(ed,eh)}return"code"in eu&&(ed.tags={...ed.tags,"DOMException.code":`${eu.code}`}),ed}if((0,ti.VZ)(eo))return eventFromError(et,eo);if((0,ti.PO)(eo)||(0,ti.cO)(eo)){let ea=eo;return ed=eventFromPlainObject(et,ea,ei,eu),(0,eV.EG)(ed,{synthetic:!0}),ed}return ed=eventFromString(et,eo,ei,ea),(0,eV.Db)(ed,`${eo}`,void 0),(0,eV.EG)(ed,{synthetic:!0}),ed}function eventFromString(et,eo,ei,ea){let eu={};if(ea&&ei){let ea=eventbuilder_parseStackFrames(et,ei);ea.length&&(eu.exception={values:[{value:eo,stacktrace:{frames:ea}}]})}if((0,ti.Le)(eo)){let{__sentry_template_string__:et,__sentry_template_values__:ei}=eo;return eu.logentry={message:et,params:ei},eu}return eu.message=eo,eu}function getNonErrorObjectExceptionValue(et,{isUnhandledRejection:eo}){let ei=(0,eW.zf)(et),ea=eo?"promise rejection":"exception";if((0,ti.VW)(et))return`Event \`ErrorEvent\` captured as ${ea} with message \`${et.message}\``;if((0,ti.cO)(et)){let eo=getObjectClassName(et);return`Event \`${eo}\` (type=${et.type}) captured as ${ea}`}return`Object captured as ${ea} with keys: ${ei}`}function getObjectClassName(et){try{let eo=Object.getPrototypeOf(et);return eo?eo.constructor.name:void 0}catch(et){}}let tE="GlobalHandlers",_globalHandlersIntegration=(et={})=>{let eo={onerror:!0,onunhandledrejection:!0,...et};return{name:tE,setupOnce(){Error.stackTraceLimit=50},setup(et){eo.onerror&&(_installGlobalOnErrorHandler(et),globalHandlerLog("onerror")),eo.onunhandledrejection&&(_installGlobalOnUnhandledRejectionHandler(et),globalHandlerLog("onunhandledrejection"))}}},tP=defineIntegration(_globalHandlersIntegration),tk=convertIntegrationFnToClass(tE,tP);function _installGlobalOnErrorHandler(et){addGlobalErrorInstrumentationHandler(eo=>{let{stackParser:ei,attachStacktrace:ea}=getOptions();if((0,ez.s3)()!==et||shouldIgnoreOnError())return;let{msg:eu,url:ed,line:eh,column:ep,error:ef}=eo,em=void 0===ef&&(0,ti.HD)(eu)?_eventFromIncompleteOnError(eu,ed,eh,ep):_enhanceEventWithInitialFrame(eventbuilder_eventFromUnknownInput(ei,ef||eu,void 0,ea,!1),ed,eh,ep);em.level="error",(0,ez.eN)(em,{originalException:ef,mechanism:{handled:!1,type:"onerror"}})})}function _installGlobalOnUnhandledRejectionHandler(et){addGlobalUnhandledRejectionInstrumentationHandler(eo=>{let{stackParser:ei,attachStacktrace:ea}=getOptions();if((0,ez.s3)()!==et||shouldIgnoreOnError())return;let eu=_getUnhandledRejectionError(eo),ed=(0,ti.pt)(eu)?_eventFromRejectionWithPrimitive(eu):eventbuilder_eventFromUnknownInput(ei,eu,void 0,ea,!0);ed.level="error",(0,ez.eN)(ed,{originalException:eu,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function _getUnhandledRejectionError(et){if((0,ti.pt)(et))return et;let eo=et;try{if("reason"in eo)return eo.reason;if("detail"in eo&&"reason"in eo.detail)return eo.detail.reason}catch(et){}return et}function _eventFromRejectionWithPrimitive(et){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(et)}`}]}}}function _eventFromIncompleteOnError(et,eo,ei,ea){let eu=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,ed=(0,ti.VW)(et)?et.message:et,eh="Error",ep=ed.match(eu);ep&&(eh=ep[1],ed=ep[2]);let ef={exception:{values:[{type:eh,value:ed}]}};return _enhanceEventWithInitialFrame(ef,eo,ei,ea)}function _enhanceEventWithInitialFrame(et,eo,ei,ea){let eu=et.exception=et.exception||{},ed=eu.values=eu.values||[],eh=ed[0]=ed[0]||{},ep=eh.stacktrace=eh.stacktrace||{},ef=ep.frames=ep.frames||[],em=isNaN(parseInt(ea,10))?void 0:ea,eg=isNaN(parseInt(ei,10))?void 0:ei,ey=(0,ti.HD)(eo)&&eo.length>0?eo:(0,tw.l4)();return 0===ef.length&&ef.push({colno:em,filename:ey,function:"?",in_app:!0,lineno:eg}),et}function globalHandlerLog(et){tA&&eJ.kg.log(`Global Handler attached: ${et}`)}function getOptions(){let et=(0,ez.s3)(),eo=et&&et.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return eo}let tO=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],tx="TryCatch",_browserApiErrorsIntegration=(et={})=>{let eo={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...et};return{name:tx,setupOnce(){eo.setTimeout&&(0,eW.hl)(tm,"setTimeout",_wrapTimeFunction),eo.setInterval&&(0,eW.hl)(tm,"setInterval",_wrapTimeFunction),eo.requestAnimationFrame&&(0,eW.hl)(tm,"requestAnimationFrame",_wrapRAF),eo.XMLHttpRequest&&"XMLHttpRequest"in tm&&(0,eW.hl)(XMLHttpRequest.prototype,"send",_wrapXHR);let et=eo.eventTarget;if(et){let eo=Array.isArray(et)?et:tO;eo.forEach(_wrapEventTarget)}}}},tM=defineIntegration(_browserApiErrorsIntegration),tD=convertIntegrationFnToClass(tx,tM);function _wrapTimeFunction(et){return function(...eo){let ei=eo[0];return eo[0]=wrap(ei,{mechanism:{data:{function:(0,tv.$P)(et)},handled:!1,type:"instrument"}}),et.apply(this,eo)}}function _wrapRAF(et){return function(eo){return et.apply(this,[wrap(eo,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,tv.$P)(et)},handled:!1,type:"instrument"}})])}}function _wrapXHR(et){return function(...eo){let ei=this,ea=["onload","onerror","onprogress","onreadystatechange"];return ea.forEach(et=>{et in ei&&"function"==typeof ei[et]&&(0,eW.hl)(ei,et,function(eo){let ei={mechanism:{data:{function:et,handler:(0,tv.$P)(eo)},handled:!1,type:"instrument"}},ea=(0,eW.HK)(eo);return ea&&(ei.mechanism.data.handler=(0,tv.$P)(ea)),wrap(eo,ei)})}),et.apply(this,eo)}}function _wrapEventTarget(et){let eo=tm,ei=eo[et]&&eo[et].prototype;ei&&ei.hasOwnProperty&&ei.hasOwnProperty("addEventListener")&&((0,eW.hl)(ei,"addEventListener",function(eo){return function(ei,ea,eu){try{"function"==typeof ea.handleEvent&&(ea.handleEvent=wrap(ea.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,tv.$P)(ea),target:et},handled:!1,type:"instrument"}}))}catch(et){}return eo.apply(this,[ei,wrap(ea,{mechanism:{data:{function:"addEventListener",handler:(0,tv.$P)(ea),target:et},handled:!1,type:"instrument"}}),eu])}}),(0,eW.hl)(ei,"removeEventListener",function(et){return function(eo,ei,ea){let eu=ei;try{let ei=eu&&eu.__sentry_wrapped__;ei&&et.call(this,eo,ei,ea)}catch(et){}return et.call(this,eo,eu,ea)}}))}function addConsoleInstrumentationHandler(et){let eo="console";addHandler(eo,et),maybeInstrument(eo,instrumentConsole)}function instrumentConsole(){"console"in tf.GLOBAL_OBJ&&eJ.RU.forEach(function(et){et in tf.GLOBAL_OBJ.console&&(0,eW.hl)(tf.GLOBAL_OBJ.console,et,function(eo){return eJ.LD[et]=eo,function(...eo){let ei={args:eo,level:et};triggerHandlers("console",ei);let ea=eJ.LD[et];ea&&ea.apply(tf.GLOBAL_OBJ.console,eo)}})})}let tU=tf.GLOBAL_OBJ,tL=1e3;function addClickKeypressInstrumentationHandler(et){let eo="dom";addHandler(eo,et),maybeInstrument(eo,instrumentDOM)}function instrumentDOM(){if(!tU.document)return;let et=triggerHandlers.bind(null,"dom"),eo=makeDOMEventHandler(et,!0);tU.document.addEventListener("click",eo,!1),tU.document.addEventListener("keypress",eo,!1),["EventTarget","Node"].forEach(eo=>{let ei=tU[eo]&&tU[eo].prototype;ei&&ei.hasOwnProperty&&ei.hasOwnProperty("addEventListener")&&((0,eW.hl)(ei,"addEventListener",function(eo){return function(ei,ea,eu){if("click"===ei||"keypress"==ei)try{let ea=this,ed=ea.__sentry_instrumentation_handlers__=ea.__sentry_instrumentation_handlers__||{},eh=ed[ei]=ed[ei]||{refCount:0};if(!eh.handler){let ea=makeDOMEventHandler(et);eh.handler=ea,eo.call(this,ei,ea,eu)}eh.refCount++}catch(et){}return eo.call(this,ei,ea,eu)}}),(0,eW.hl)(ei,"removeEventListener",function(et){return function(eo,ei,ea){if("click"===eo||"keypress"==eo)try{let ei=this,eu=ei.__sentry_instrumentation_handlers__||{},ed=eu[eo];ed&&(ed.refCount--,ed.refCount<=0&&(et.call(this,eo,ed.handler,ea),ed.handler=void 0,delete eu[eo]),0===Object.keys(eu).length&&delete ei.__sentry_instrumentation_handlers__)}catch(et){}return et.call(this,eo,ei,ea)}}))})}function isSimilarToLastCapturedEvent(et){if(et.type!==ed)return!1;try{if(!et.target||et.target._sentryId!==eh)return!1}catch(et){}return!0}function shouldSkipDOMEvent(et,eo){return"keypress"===et&&(!eo||!eo.tagName||"INPUT"!==eo.tagName&&"TEXTAREA"!==eo.tagName&&!eo.isContentEditable)}function makeDOMEventHandler(et,eo=!1){return ei=>{if(!ei||ei._sentryCaptured)return;let ea=getEventTarget(ei);if(shouldSkipDOMEvent(ei.type,ea))return;(0,eW.xp)(ei,"_sentryCaptured",!0),ea&&!ea._sentryId&&(0,eW.xp)(ea,"_sentryId",(0,eV.DM)());let ep="keypress"===ei.type?"input":ei.type;if(!isSimilarToLastCapturedEvent(ei)){let eu={event:ei,name:ep,global:eo};et(eu),ed=ei.type,eh=ea?ea._sentryId:void 0}clearTimeout(eu),eu=tU.setTimeout(()=>{eh=void 0,ed=void 0},tL)}}function getEventTarget(et){try{return et.target}catch(et){return null}}let tN=tf.GLOBAL_OBJ,tq="__sentry_xhr_v3__";function addXhrInstrumentationHandler(et){let eo="xhr";addHandler(eo,et),maybeInstrument(eo,instrumentXHR)}function instrumentXHR(){if(!tN.XMLHttpRequest)return;let et=XMLHttpRequest.prototype;(0,eW.hl)(et,"open",function(et){return function(...eo){let ei=Date.now(),ea=(0,ti.HD)(eo[0])?eo[0].toUpperCase():void 0,eu=parseUrl(eo[1]);if(!ea||!eu)return et.apply(this,eo);this[tq]={method:ea,url:eu,request_headers:{}},"POST"===ea&&eu.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let onreadystatechangeHandler=()=>{let et=this[tq];if(et&&4===this.readyState){try{et.status_code=this.status}catch(et){}let eo={args:[ea,eu],endTimestamp:Date.now(),startTimestamp:ei,xhr:this};triggerHandlers("xhr",eo)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,eW.hl)(this,"onreadystatechange",function(et){return function(...eo){return onreadystatechangeHandler(),et.apply(this,eo)}}):this.addEventListener("readystatechange",onreadystatechangeHandler),(0,eW.hl)(this,"setRequestHeader",function(et){return function(...eo){let[ei,ea]=eo,eu=this[tq];return eu&&(0,ti.HD)(ei)&&(0,ti.HD)(ea)&&(eu.request_headers[ei.toLowerCase()]=ea),et.apply(this,eo)}}),et.apply(this,eo)}}),(0,eW.hl)(et,"send",function(et){return function(...eo){let ei=this[tq];if(!ei)return et.apply(this,eo);void 0!==eo[0]&&(ei.body=eo[0]);let ea={args:[ei.method,ei.url],startTimestamp:Date.now(),xhr:this};return triggerHandlers("xhr",ea),et.apply(this,eo)}})}function parseUrl(et){if((0,ti.HD)(et))return et;try{return et.toString()}catch(et){}}let tB=(0,tf.R)();function supportsFetch(){if(!("fetch"in tB))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(et){return!1}}function isNativeFetch(et){return et&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(et.toString())}function supportsNativeFetch(){if("string"==typeof EdgeRuntime)return!0;if(!supportsFetch())return!1;if(isNativeFetch(tB.fetch))return!0;let et=!1,eo=tB.document;if(eo&&"function"==typeof eo.createElement)try{let ei=eo.createElement("iframe");ei.hidden=!0,eo.head.appendChild(ei),ei.contentWindow&&ei.contentWindow.fetch&&(et=isNativeFetch(ei.contentWindow.fetch)),eo.head.removeChild(ei)}catch(et){ty.X&&eJ.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",et)}return et}function addFetchInstrumentationHandler(et){let eo="fetch";addHandler(eo,et),maybeInstrument(eo,instrumentFetch)}function instrumentFetch(){supportsNativeFetch()&&(0,eW.hl)(tf.GLOBAL_OBJ,"fetch",function(et){return function(...eo){let{method:ei,url:ea}=parseFetchArgs(eo),eu={args:eo,fetchData:{method:ei,url:ea},startTimestamp:Date.now()};return triggerHandlers("fetch",{...eu}),et.apply(tf.GLOBAL_OBJ,eo).then(et=>{let eo={...eu,endTimestamp:Date.now(),response:et};return triggerHandlers("fetch",eo),et},et=>{let eo={...eu,endTimestamp:Date.now(),error:et};throw triggerHandlers("fetch",eo),et})}})}function hasProp(et,eo){return!!et&&"object"==typeof et&&!!et[eo]}function getUrlFromResource(et){return"string"==typeof et?et:et?hasProp(et,"url")?et.url:et.toString?et.toString():"":""}function parseFetchArgs(et){if(0===et.length)return{method:"GET",url:""};if(2===et.length){let[eo,ei]=et;return{url:getUrlFromResource(eo),method:hasProp(ei,"method")?String(ei.method).toUpperCase():"GET"}}let eo=et[0];return{url:getUrlFromResource(eo),method:hasProp(eo,"method")?String(eo.method).toUpperCase():"GET"}}let tF=(0,tf.R)();function supportsHistory(){let et=tF.chrome,eo=et&&et.app&&et.app.runtime,ei="history"in tF&&!!tF.history.pushState&&!!tF.history.replaceState;return!eo&&ei}let tj=tf.GLOBAL_OBJ;function addHistoryInstrumentationHandler(et){let eo="history";addHandler(eo,et),maybeInstrument(eo,instrumentHistory)}function instrumentHistory(){if(!supportsHistory())return;let et=tj.onpopstate;function historyReplacementFunction(et){return function(...eo){let ei=eo.length>2?eo[2]:void 0;if(ei){let et=ep,eo=String(ei);ep=eo;let ea={from:et,to:eo};triggerHandlers("history",ea)}return et.apply(this,eo)}}tj.onpopstate=function(...eo){let ei=tj.location.href,ea=ep;ep=ei;let eu={from:ea,to:ei};if(triggerHandlers("history",eu),et)try{return et.apply(this,eo)}catch(et){}},(0,eW.hl)(tj.history,"pushState",historyReplacementFunction),(0,eW.hl)(tj.history,"replaceState",historyReplacementFunction)}let tG=["fatal","error","warning","log","info","debug"];function severityLevelFromString(et){return"warn"===et?"warning":tG.includes(et)?et:"log"}function url_parseUrl(et){if(!et)return{};let eo=et.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!eo)return{};let ei=eo[6]||"",ea=eo[8]||"";return{host:eo[4],path:eo[5],protocol:eo[2],search:ei,hash:ea,relative:eo[5]+ei+ea}}function stripUrlQueryAndFragment(et){return et.split(/[\?#]/,1)[0]}let tH=1024,tK="Breadcrumbs",_breadcrumbsIntegration=(et={})=>{let eo={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...et};return{name:tK,setupOnce(){},setup(et){eo.console&&addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(et)),eo.dom&&addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(et,eo.dom)),eo.xhr&&addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(et)),eo.fetch&&addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(et)),eo.history&&addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(et)),eo.sentry&&et.on&&et.on("beforeSendEvent",_getSentryBreadcrumbHandler(et))}}},tz=defineIntegration(_breadcrumbsIntegration),tW=convertIntegrationFnToClass(tK,tz);function _getSentryBreadcrumbHandler(et){return function(eo){(0,ez.s3)()===et&&(0,ez.n_)({category:`sentry.${"transaction"===eo.type?"transaction":"event"}`,event_id:eo.event_id,level:eo.level,message:(0,eV.jH)(eo)},{event:eo})}}function _getDomBreadcrumbHandler(et,eo){return function(ei){let ea,eu;if((0,ez.s3)()!==et)return;let ed="object"==typeof eo?eo.serializeAttribute:void 0,eh="object"==typeof eo&&"number"==typeof eo.maxStringLength?eo.maxStringLength:void 0;eh&&eh>tH&&(tA&&eJ.kg.warn(`\`dom.maxStringLength\` cannot exceed ${tH}, but a value of ${eh} was configured. Sentry will use ${tH} instead.`),eh=tH),"string"==typeof ed&&(ed=[ed]);try{let et=ei.event,eo=_isEvent(et)?et.target:et;ea=(0,tw.Rt)(eo,{keyAttrs:ed,maxStringLength:eh}),eu=(0,tw.iY)(eo)}catch(et){ea="<unknown>"}if(0===ea.length)return;let ep={category:`ui.${ei.name}`,message:ea};eu&&(ep.data={"ui.component_name":eu}),(0,ez.n_)(ep,{event:ei.event,name:ei.name,global:ei.global})}}function _getConsoleBreadcrumbHandler(et){return function(eo){if((0,ez.s3)()!==et)return;let ei={category:"console",data:{arguments:eo.args,logger:"console"},level:severityLevelFromString(eo.level),message:(0,e5.nK)(eo.args," ")};if("assert"===eo.level){if(!1!==eo.args[0])return;ei.message=`Assertion failed: ${(0,e5.nK)(eo.args.slice(1)," ")||"console.assert"}`,ei.data.arguments=eo.args.slice(1)}(0,ez.n_)(ei,{input:eo.args,level:eo.level})}}function _getXhrBreadcrumbHandler(et){return function(eo){if((0,ez.s3)()!==et)return;let{startTimestamp:ei,endTimestamp:ea}=eo,eu=eo.xhr[tq];if(!ei||!ea||!eu)return;let{method:ed,url:eh,status_code:ep,body:ef}=eu,em={method:ed,url:eh,status_code:ep},eg={xhr:eo.xhr,input:ef,startTimestamp:ei,endTimestamp:ea};(0,ez.n_)({category:"xhr",data:em,type:"http"},eg)}}function _getFetchBreadcrumbHandler(et){return function(eo){if((0,ez.s3)()!==et)return;let{startTimestamp:ei,endTimestamp:ea}=eo;if(!(!ea||eo.fetchData.url.match(/sentry_key/)&&"POST"===eo.fetchData.method)){if(eo.error){let et=eo.fetchData,eu={data:eo.error,input:eo.args,startTimestamp:ei,endTimestamp:ea};(0,ez.n_)({category:"fetch",data:et,level:"error",type:"http"},eu)}else{let et=eo.response,eu={...eo.fetchData,status_code:et&&et.status},ed={input:eo.args,response:et,startTimestamp:ei,endTimestamp:ea};(0,ez.n_)({category:"fetch",data:eu,type:"http"},ed)}}}}function _getHistoryBreadcrumbHandler(et){return function(eo){if((0,ez.s3)()!==et)return;let ei=eo.from,ea=eo.to,eu=url_parseUrl(tm.location.href),ed=ei?url_parseUrl(ei):void 0,eh=url_parseUrl(ea);ed&&ed.path||(ed=eu),eu.protocol===eh.protocol&&eu.host===eh.host&&(ea=eh.relative),eu.protocol===ed.protocol&&eu.host===ed.host&&(ei=ed.relative),(0,ez.n_)({category:"navigation",data:{from:ei,to:ea}})}}function _isEvent(et){return!!et&&!!et.target}let tV="cause",tJ=5,tY="LinkedErrors",linkederrors_linkedErrorsIntegration=(et={})=>{let eo=et.limit||tJ,ei=et.key||tV;return{name:tY,setupOnce(){},preprocessEvent(et,ea,eu){let ed=eu.getOptions();applyAggregateErrorsToEvent(eventbuilder_exceptionFromError,ed.stackParser,ed.maxValueLength,ei,eo,et,ea)}}},t$=defineIntegration(linkederrors_linkedErrorsIntegration),tZ=convertIntegrationFnToClass(tY,t$),tQ="HttpContext",_httpContextIntegration=()=>({name:tQ,setupOnce(){},preprocessEvent(et){if(!tm.navigator&&!tm.location&&!tm.document)return;let eo=et.request&&et.request.url||tm.location&&tm.location.href,{referrer:ei}=tm.document||{},{userAgent:ea}=tm.navigator||{},eu={...et.request&&et.request.headers,...ei&&{Referer:ei},...ea&&{"User-Agent":ea}},ed={...et.request,...eo&&{url:eo},headers:eu};et.request=ed}}),tX=defineIntegration(_httpContextIntegration),t0=convertIntegrationFnToClass(tQ,tX),t1="Dedupe",_dedupeIntegration=()=>{let et;return{name:t1,setupOnce(){},processEvent(eo){if(eo.type)return eo;try{if(dedupe_shouldDropEvent(eo,et))return tA&&eJ.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(et){}return et=eo}}},t2=defineIntegration(_dedupeIntegration),t4=convertIntegrationFnToClass(t1,t2);function dedupe_shouldDropEvent(et,eo){return!!eo&&!!(_isSameMessageEvent(et,eo)||_isSameExceptionEvent(et,eo))}function _isSameMessageEvent(et,eo){let ei=et.message,ea=eo.message;return!!((ei||ea)&&(!ei||ea)&&(ei||!ea)&&ei===ea&&_isSameFingerprint(et,eo)&&_isSameStacktrace(et,eo))}function _isSameExceptionEvent(et,eo){let ei=_getExceptionFromEvent(eo),ea=_getExceptionFromEvent(et);return!!(ei&&ea&&ei.type===ea.type&&ei.value===ea.value&&_isSameFingerprint(et,eo)&&_isSameStacktrace(et,eo))}function _isSameStacktrace(et,eo){let ei=_getFramesFromEvent(et),ea=_getFramesFromEvent(eo);if(!ei&&!ea)return!0;if(ei&&!ea||!ei&&ea||ea.length!==ei.length)return!1;for(let et=0;et<ea.length;et++){let eo=ea[et],eu=ei[et];if(eo.filename!==eu.filename||eo.lineno!==eu.lineno||eo.colno!==eu.colno||eo.function!==eu.function)return!1}return!0}function _isSameFingerprint(et,eo){let ei=et.fingerprint,ea=eo.fingerprint;if(!ei&&!ea)return!0;if(ei&&!ea||!ei&&ea)return!1;try{return!(ei.join("")!==ea.join(""))}catch(et){return!1}}function _getExceptionFromEvent(et){return et.exception&&et.exception.values&&et.exception.values[0]}function _getFramesFromEvent(et){let eo=et.exception;if(eo)try{return eo.values[0].stacktrace.frames}catch(et){}}let t3={};tm.Sentry&&tm.Sentry.Integrations&&(t3=tm.Sentry.Integrations);let t6={...t3,...tp,...eH};function initAndBind(et,eo){!0===eo.debug&&(eY.X?eJ.kg.enable():(0,eJ.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let ei=(0,ez.nZ)();ei.update(eo.initialScope);let ea=new et(eo);setCurrentClient(ea),initializeClient(ea)}function setCurrentClient(et){let eo=(0,eZ.Gd)(),ei=eo.getStackTop();ei.client=et,ei.scope.setClient(et)}function initializeClient(et){et.init?et.init():et.setupIntegrations&&et.setupIntegrations()}let t5=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function isValidProtocol(et){return"http"===et||"https"===et}function dsn_dsnToString(et,eo=!1){let{host:ei,path:ea,pass:eu,port:ed,projectId:eh,protocol:ep,publicKey:ef}=et;return`${ep}://${ef}${eo&&eu?`:${eu}`:""}@${ei}${ed?`:${ed}`:""}/${ea?`${ea}/`:ea}${eh}`}function dsnFromString(et){let eo=t5.exec(et);if(!eo){(0,eJ.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${et}`)});return}let[ei,ea,eu="",ed,eh="",ep]=eo.slice(1),ef="",em=ep,eg=em.split("/");if(eg.length>1&&(ef=eg.slice(0,-1).join("/"),em=eg.pop()),em){let et=em.match(/^\d+/);et&&(em=et[0])}return dsnFromComponents({host:ed,pass:eu,path:ef,projectId:em,port:eh,protocol:ei,publicKey:ea})}function dsnFromComponents(et){return{protocol:et.protocol,publicKey:et.publicKey||"",pass:et.pass||"",host:et.host,port:et.port||"",path:et.path||"",projectId:et.projectId}}function validateDsn(et){if(!ty.X)return!0;let{port:eo,projectId:ei,protocol:ea}=et,eu=["protocol","publicKey","host","projectId"],ed=eu.find(eo=>!et[eo]&&(eJ.kg.error(`Invalid Sentry Dsn: ${eo} missing`),!0));return!ed&&(ei.match(/^\d+$/)?isValidProtocol(ea)?!(eo&&isNaN(parseInt(eo,10)))||(eJ.kg.error(`Invalid Sentry Dsn: Invalid port ${eo}`),!1):(eJ.kg.error(`Invalid Sentry Dsn: Invalid protocol ${ea}`),!1):(eJ.kg.error(`Invalid Sentry Dsn: Invalid projectId ${ei}`),!1))}function dsn_makeDsn(et){let eo="string"==typeof et?dsnFromString(et):dsnFromComponents(et);if(eo&&validateDsn(eo))return eo}function createEnvelope(et,eo=[]){return[et,eo]}function addItemToEnvelope(et,eo){let[ei,ea]=et;return[ei,[...ea,eo]]}function forEachEnvelopeItem(et,eo){let ei=et[1];for(let et of ei){let ei=et[0].type,ea=eo(et,ei);if(ea)return!0}return!1}function encodeUTF8(et,eo){let ei=eo||new TextEncoder;return ei.encode(et)}function serializeEnvelope(et,eo){let[ei,ea]=et,eu=JSON.stringify(ei);function append(et){"string"==typeof eu?eu="string"==typeof et?eu+et:[encodeUTF8(eu,eo),et]:eu.push("string"==typeof et?encodeUTF8(et,eo):et)}for(let et of ea){let[eo,ei]=et;if(append(`
${JSON.stringify(eo)}
`),"string"==typeof ei||ei instanceof Uint8Array)append(ei);else{let et;try{et=JSON.stringify(ei)}catch(eo){et=JSON.stringify((0,tI.Fv)(ei))}append(et)}}return"string"==typeof eu?eu:concatBuffers(eu)}function concatBuffers(et){let eo=et.reduce((et,eo)=>et+eo.length,0),ei=new Uint8Array(eo),ea=0;for(let eo of et)ei.set(eo,ea),ea+=eo.length;return ei}function createAttachmentEnvelopeItem(et,eo){let ei="string"==typeof et.data?encodeUTF8(et.data,eo):et.data;return[(0,eW.Jr)({type:"attachment",length:ei.length,filename:et.filename,content_type:et.contentType,attachment_type:et.attachmentType}),ei]}let t8={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"unknown"};function envelopeItemTypeToDataCategory(et){return t8[et]}function getSdkMetadataForEnvelopeHeader(et){if(!et||!et.sdk)return;let{name:eo,version:ei}=et.sdk;return{name:eo,version:ei}}function createEventEnvelopeHeaders(et,eo,ei,ea){let eu=et.sdkProcessingMetadata&&et.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:et.event_id,sent_at:new Date().toISOString(),...eo&&{sdk:eo},...!!ei&&ea&&{dsn:dsn_dsnToString(ea)},...eu&&{trace:(0,eW.Jr)({...eu})}}}let SentryError=class SentryError extends Error{constructor(et,eo="warn"){super(et),this.message=et,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=eo}};let t7="7";function getBaseApiEndpoint(et){let eo=et.protocol?`${et.protocol}:`:"",ei=et.port?`:${et.port}`:"";return`${eo}//${et.host}${ei}${et.path?`/${et.path}`:""}/api/`}function _getIngestEndpoint(et){return`${getBaseApiEndpoint(et)}${et.projectId}/envelope/`}function _encodedAuth(et,eo){return(0,eW._j)({sentry_key:et.publicKey,sentry_version:t7,...eo&&{sentry_client:`${eo.name}/${eo.version}`}})}function getEnvelopeEndpointWithUrlEncodedAuth(et,eo={}){let ei="string"==typeof eo?eo:eo.tunnel,ea="string"!=typeof eo&&eo._metadata?eo._metadata.sdk:void 0;return ei||`${_getIngestEndpoint(et)}?${_encodedAuth(et,ea)}`}function enhanceEventWithSdkInfo(et,eo){return eo&&(et.sdk=et.sdk||{},et.sdk.name=et.sdk.name||eo.name,et.sdk.version=et.sdk.version||eo.version,et.sdk.integrations=[...et.sdk.integrations||[],...eo.integrations||[]],et.sdk.packages=[...et.sdk.packages||[],...eo.packages||[]]),et}function createSessionEnvelope(et,eo,ei,ea){let eu=getSdkMetadataForEnvelopeHeader(ei),ed={sent_at:new Date().toISOString(),...eu&&{sdk:eu},...!!ea&&eo&&{dsn:dsn_dsnToString(eo)}},eh="aggregates"in et?[{type:"sessions"},et]:[{type:"session"},et.toJSON()];return createEnvelope(ed,[eh])}function createEventEnvelope(et,eo,ei,ea){let eu=getSdkMetadataForEnvelopeHeader(ei),ed=et.type&&"replay_event"!==et.type?et.type:"event";enhanceEventWithSdkInfo(et,ei&&ei.sdk);let eh=createEventEnvelopeHeaders(et,eu,ea,eo);delete et.sdkProcessingMetadata;let ep=[{type:ed},et];return createEnvelope(eh,[ep])}function serializeMetricBuckets(et){let eo="";for(let ei of et){let et=Object.entries(ei.tags),ea=et.length>0?`|#${et.map(([et,eo])=>`${et}:${eo}`).join(",")}`:"";eo+=`${ei.name}@${ei.unit}:${ei.metric}|${ei.metricType}${ea}|T${ei.timestamp}
`}return eo}function createMetricEnvelope(et,eo,ei,ea){let eu={sent_at:new Date().toISOString()};ei&&ei.sdk&&(eu.sdk={name:ei.sdk.name,version:ei.sdk.version}),ea&&eo&&(eu.dsn=dsn_dsnToString(eo));let ed=createMetricEnvelopeItem(et);return createEnvelope(eu,[ed])}function createMetricEnvelopeItem(et){let eo=serializeMetricBuckets(et),ei={type:"statsd",length:eo.length};return[ei,eo]}var t9=ei(9015),rr=ei(90454),rn=ei(88942);let ro="Not capturing exception because it's already been captured.";let BaseClient=class BaseClient{constructor(et){if(this._options=et,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],et.dsn?this._dsn=dsn_makeDsn(et.dsn):eY.X&&eJ.kg.warn("No DSN provided, client will not send events."),this._dsn){let eo=getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,et);this._transport=et.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...et.transportOptions,url:eo})}}captureException(et,eo,ei){if((0,eV.YO)(et)){eY.X&&eJ.kg.log(ro);return}let ea=eo&&eo.event_id;return this._process(this.eventFromException(et,eo).then(et=>this._captureEvent(et,eo,ei)).then(et=>{ea=et})),ea}captureMessage(et,eo,ei,ea){let eu=ei&&ei.event_id,ed=(0,ti.Le)(et)?et:String(et),eh=(0,ti.pt)(et)?this.eventFromMessage(ed,eo,ei):this.eventFromException(et,ei);return this._process(eh.then(et=>this._captureEvent(et,ei,ea)).then(et=>{eu=et})),eu}captureEvent(et,eo,ei){if(eo&&eo.originalException&&(0,eV.YO)(eo.originalException)){eY.X&&eJ.kg.log(ro);return}let ea=eo&&eo.event_id,eu=et.sdkProcessingMetadata||{},ed=eu.capturedSpanScope;return this._process(this._captureEvent(et,eo,ed||ei).then(et=>{ea=et})),ea}captureSession(et){"string"!=typeof et.release?eY.X&&eJ.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(et),(0,t9.CT)(et,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(et){let eo=this._transport;return eo?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(et).then(ei=>eo.flush(et).then(et=>ei&&et))):(0,tR.WD)(!0)}close(et){return this.flush(et).then(et=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),et))}getEventProcessors(){return this._eventProcessors}addEventProcessor(et){this._eventProcessors.push(et)}setupIntegrations(et){(et&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(et){return this.getIntegrationByName(et)}getIntegrationByName(et){return this._integrations[et]}getIntegration(et){try{return this._integrations[et.id]||null}catch(eo){return eY.X&&eJ.kg.warn(`Cannot retrieve integration ${et.id} from the current Client`),null}}addIntegration(et){let eo=this._integrations[et.name];setupIntegration(this,et,this._integrations),eo||afterSetupIntegrations(this,[et])}sendEvent(et,eo={}){this.emit("beforeSendEvent",et,eo);let ei=createEventEnvelope(et,this._dsn,this._options._metadata,this._options.tunnel);for(let et of eo.attachments||[])ei=addItemToEnvelope(ei,createAttachmentEnvelopeItem(et,this._options.transportOptions&&this._options.transportOptions.textEncoder));let ea=this._sendEnvelope(ei);ea&&ea.then(eo=>this.emit("afterSendEvent",et,eo),null)}sendSession(et){let eo=createSessionEnvelope(et,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(eo)}recordDroppedEvent(et,eo,ei){if(this._options.sendClientReports){let ei=`${et}:${eo}`;eY.X&&eJ.kg.log(`Adding outcome: "${ei}"`),this._outcomes[ei]=this._outcomes[ei]+1||1}}captureAggregateMetrics(et){eY.X&&eJ.kg.log(`Flushing aggregated metrics, number of metrics: ${et.length}`);let eo=createMetricEnvelope(et,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(eo)}on(et,eo){this._hooks[et]||(this._hooks[et]=[]),this._hooks[et].push(eo)}emit(et,...eo){this._hooks[et]&&this._hooks[et].forEach(et=>et(...eo))}_setupIntegrations(){let{integrations:et}=this._options;this._integrations=setupIntegrations(this,et),afterSetupIntegrations(this,et),this._integrationsInitialized=!0}_updateSessionFromEvent(et,eo){let ei=!1,ea=!1,eu=eo.exception&&eo.exception.values;if(eu)for(let et of(ea=!0,eu)){let eo=et.mechanism;if(eo&&!1===eo.handled){ei=!0;break}}let ed="ok"===et.status,eh=ed&&0===et.errors||ed&&ei;eh&&((0,t9.CT)(et,{...ei&&{status:"crashed"},errors:et.errors||Number(ea||ei)}),this.captureSession(et))}_isClientDoneProcessing(et){return new tR.cW(eo=>{let ei=0,ea=1,eu=setInterval(()=>{0==this._numProcessing?(clearInterval(eu),eo(!0)):(ei+=ea,et&&ei>=et&&(clearInterval(eu),eo(!1)))},ea)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(et,eo,ei,ea=(0,eZ.aF)()){let eu=this.getOptions(),ed=Object.keys(this._integrations);return!eo.integrations&&ed.length>0&&(eo.integrations=ed),this.emit("preprocessEvent",et,eo),(0,rn.R)(eu,et,eo,ei,this,ea).then(et=>{if(null===et)return et;let eo={...ea.getPropagationContext(),...ei?ei.getPropagationContext():void 0},eu=et.contexts&&et.contexts.trace;if(!eu&&eo){let{traceId:ea,spanId:eu,parentSpanId:ed,dsc:eh}=eo;et.contexts={trace:{trace_id:ea,span_id:eu,parent_span_id:ed},...et.contexts};let ep=eh||(0,rr._)(ea,this,ei);et.sdkProcessingMetadata={dynamicSamplingContext:ep,...et.sdkProcessingMetadata}}return et})}_captureEvent(et,eo={},ei){return this._processEvent(et,eo,ei).then(et=>et.event_id,et=>{if(eY.X){let eo=et;"log"===eo.logLevel?eJ.kg.log(eo.message):eJ.kg.warn(eo)}})}_processEvent(et,eo,ei){let ea=this.getOptions(),{sampleRate:eu}=ea,ed=isTransactionEvent(et),eh=isErrorEvent(et),ep=et.type||"error",ef=`before send for type \`${ep}\``;if(eh&&"number"==typeof eu&&Math.random()>eu)return this.recordDroppedEvent("sample_rate","error",et),(0,tR.$2)(new SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${eu})`,"log"));let em="replay_event"===ep?"replay":ep,eg=et.sdkProcessingMetadata||{},ey=eg.capturedSpanIsolationScope;return this._prepareEvent(et,eo,ei,ey).then(ei=>{if(null===ei)throw this.recordDroppedEvent("event_processor",em,et),new SentryError("An event processor returned `null`, will not send event.","log");let eu=eo.data&&!0===eo.data.__sentry__;if(eu)return ei;let ed=processBeforeSend(ea,ei,eo);return _validateBeforeSendResult(ed,ef)}).then(ea=>{if(null===ea)throw this.recordDroppedEvent("before_send",em,et),new SentryError(`${ef} returned \`null\`, will not send event.`,"log");let eu=ei&&ei.getSession();!ed&&eu&&this._updateSessionFromEvent(eu,ea);let eh=ea.transaction_info;if(ed&&eh&&ea.transaction!==et.transaction){let et="custom";ea.transaction_info={...eh,source:et}}return this.sendEvent(ea,eo),ea}).then(null,et=>{if(et instanceof SentryError)throw et;throw this.captureException(et,{data:{__sentry__:!0},originalException:et}),new SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${et}`)})}_process(et){this._numProcessing++,et.then(et=>(this._numProcessing--,et),et=>(this._numProcessing--,et))}_sendEnvelope(et){if(this.emit("beforeEnvelope",et),this._isEnabled()&&this._transport)return this._transport.send(et).then(null,et=>{eY.X&&eJ.kg.error("Error while sending event:",et)});eY.X&&eJ.kg.error("Transport disabled")}_clearOutcomes(){let et=this._outcomes;return this._outcomes={},Object.keys(et).map(eo=>{let[ei,ea]=eo.split(":");return{reason:ei,category:ea,quantity:et[eo]}})}};function _validateBeforeSendResult(et,eo){let ei=`${eo} must return \`null\` or a valid event.`;if((0,ti.J8)(et))return et.then(et=>{if(!(0,ti.PO)(et)&&null!==et)throw new SentryError(ei);return et},et=>{throw new SentryError(`${eo} rejected with ${et}`)});if(!(0,ti.PO)(et)&&null!==et)throw new SentryError(ei);return et}function processBeforeSend(et,eo,ei){let{beforeSend:ea,beforeSendTransaction:eu}=et;return isErrorEvent(eo)&&ea?ea(eo,ei):isTransactionEvent(eo)&&eu?eu(eo,ei):eo}function isErrorEvent(et){return void 0===et.type}function isTransactionEvent(et){return"transaction"===et.type}function addEventProcessor(et){let eo=(0,ez.s3)();eo&&eo.addEventProcessor&&eo.addEventProcessor(et)}var ri=ei(68518),ra=ei(21170);function createClientReportEnvelope(et,eo,ei){let ea=[{type:"client_report"},{timestamp:ei||(0,ra.yW)(),discarded_events:et}];return createEnvelope(eo?{dsn:eo}:{},[ea])}function createUserFeedbackEnvelope(et,{metadata:eo,tunnel:ei,dsn:ea}){let eu={event_id:et.event_id,sent_at:new Date().toISOString(),...eo&&eo.sdk&&{sdk:{name:eo.sdk.name,version:eo.sdk.version}},...!!ei&&!!ea&&{dsn:dsn_dsnToString(ea)}},ed=createUserFeedbackEnvelopeItem(et);return createEnvelope(eu,[ed])}function createUserFeedbackEnvelopeItem(et){let eo={type:"user_report"};return[eo,et]}let BrowserClient=class BrowserClient extends BaseClient{constructor(et){let eo=tm.SENTRY_SDK_SOURCE||(0,ri.S)();applySdkMetadata(et,"browser",["browser"],eo),super(et),et.sendClientReports&&tm.document&&tm.document.addEventListener("visibilitychange",()=>{"hidden"===tm.document.visibilityState&&this._flushOutcomes()})}eventFromException(et,eo){return eventFromException(this._options.stackParser,et,eo,this._options.attachStacktrace)}eventFromMessage(et,eo="info",ei){return eventbuilder_eventFromMessage(this._options.stackParser,et,eo,ei,this._options.attachStacktrace)}captureUserFeedback(et){if(!this._isEnabled()){tA&&eJ.kg.warn("SDK not enabled, will not capture user feedback.");return}let eo=createUserFeedbackEnvelope(et,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(eo)}_prepareEvent(et,eo,ei){return et.platform=et.platform||"javascript",super._prepareEvent(et,eo,ei)}_flushOutcomes(){let et=this._clearOutcomes();if(0===et.length){tA&&eJ.kg.log("No outcomes to send");return}if(!this._dsn){tA&&eJ.kg.log("No dsn provided, will not send outcomes");return}tA&&eJ.kg.log("Sending outcomes:",et);let eo=createClientReportEnvelope(et,this._options.tunnel&&dsn_dsnToString(this._dsn));this._sendEnvelope(eo)}};let rs="?",rc=30,ru=40,rl=50;function createFrame(et,eo,ei,ea){let eu={filename:et,function:eo,in_app:!0};return void 0!==ei&&(eu.lineno=ei),void 0!==ea&&(eu.colno=ea),eu}let rd=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rh=/\((\S*)(?::(\d+))(?::(\d+))\)/,chromeStackParserFn=et=>{let eo=rd.exec(et);if(eo){let et=eo[2]&&0===eo[2].indexOf("eval");if(et){let et=rh.exec(eo[2]);et&&(eo[2]=et[1],eo[3]=et[2],eo[4]=et[3])}let[ei,ea]=extractSafariExtensionDetails(eo[1]||rs,eo[2]);return createFrame(ea,ei,eo[3]?+eo[3]:void 0,eo[4]?+eo[4]:void 0)}},rp=[rc,chromeStackParserFn],rf=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gecko=et=>{let eo=rf.exec(et);if(eo){let et=eo[3]&&eo[3].indexOf(" > eval")>-1;if(et){let et=rm.exec(eo[3]);et&&(eo[1]=eo[1]||"eval",eo[3]=et[1],eo[4]=et[2],eo[5]="")}let ei=eo[3],ea=eo[1]||rs;return[ea,ei]=extractSafariExtensionDetails(ea,ei),createFrame(ei,ea,eo[4]?+eo[4]:void 0,eo[5]?+eo[5]:void 0)}},rg=[rl,gecko],ry=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,winjs=et=>{let eo=ry.exec(et);return eo?createFrame(eo[2],eo[1]||rs,+eo[3],eo[4]?+eo[4]:void 0):void 0},rv=[ru,winjs],rb=[rp,rg,rv],rC=(0,tv.pE)(...rb),extractSafariExtensionDetails=(et,eo)=>{let ei=-1!==et.indexOf("safari-extension"),ea=-1!==et.indexOf("safari-web-extension");return ei||ea?[-1!==et.indexOf("@")?et.split("@")[0]:rs,ei?`safari-extension:${eo}`:`safari-web-extension:${eo}`]:[et,eo]};function makePromiseBuffer(et){let eo=[];function isReady(){return void 0===et||eo.length<et}function remove(et){return eo.splice(eo.indexOf(et),1)[0]}function add(et){if(!isReady())return(0,tR.$2)(new SentryError("Not adding Promise because buffer limit was reached."));let ei=et();return -1===eo.indexOf(ei)&&eo.push(ei),ei.then(()=>remove(ei)).then(null,()=>remove(ei).then(null,()=>{})),ei}function drain(et){return new tR.cW((ei,ea)=>{let eu=eo.length;if(!eu)return ei(!0);let ed=setTimeout(()=>{et&&et>0&&ei(!1)},et);eo.forEach(et=>{(0,tR.WD)(et).then(()=>{--eu||(clearTimeout(ed),ei(!0))},ea)})})}return{$:eo,add,drain}}let rS=6e4;function parseRetryAfterHeader(et,eo=Date.now()){let ei=parseInt(`${et}`,10);if(!isNaN(ei))return 1e3*ei;let ea=Date.parse(`${et}`);return isNaN(ea)?rS:ea-eo}function disabledUntil(et,eo){return et[eo]||et.all||0}function isRateLimited(et,eo,ei=Date.now()){return disabledUntil(et,eo)>ei}function updateRateLimits(et,{statusCode:eo,headers:ei},ea=Date.now()){let eu={...et},ed=ei&&ei["x-sentry-rate-limits"],eh=ei&&ei["retry-after"];if(ed)for(let et of ed.trim().split(",")){let[eo,ei]=et.split(":",2),ed=parseInt(eo,10),eh=(isNaN(ed)?60:ed)*1e3;if(ei)for(let et of ei.split(";"))eu[et]=ea+eh;else eu.all=ea+eh}else eh?eu.all=ea+parseRetryAfterHeader(eh,ea):429===eo&&(eu.all=ea+6e4);return eu}let r_=30;function createTransport(et,eo,ei=makePromiseBuffer(et.bufferSize||r_)){let ea={},flush=et=>ei.drain(et);function send(eu){let ed=[];if(forEachEnvelopeItem(eu,(eo,ei)=>{let eu=envelopeItemTypeToDataCategory(ei);if(isRateLimited(ea,eu)){let ea=getEventForEnvelopeItem(eo,ei);et.recordDroppedEvent("ratelimit_backoff",eu,ea)}else ed.push(eo)}),0===ed.length)return(0,tR.WD)();let eh=createEnvelope(eu[0],ed),recordEnvelopeLoss=eo=>{forEachEnvelopeItem(eh,(ei,ea)=>{let eu=getEventForEnvelopeItem(ei,ea);et.recordDroppedEvent(eo,envelopeItemTypeToDataCategory(ea),eu)})},requestTask=()=>eo({body:serializeEnvelope(eh,et.textEncoder)}).then(et=>(void 0!==et.statusCode&&(et.statusCode<200||et.statusCode>=300)&&eY.X&&eJ.kg.warn(`Sentry responded with status code ${et.statusCode} to sent event.`),ea=updateRateLimits(ea,et),et),et=>{throw recordEnvelopeLoss("network_error"),et});return ei.add(requestTask).then(et=>et,et=>{if(et instanceof SentryError)return eY.X&&eJ.kg.error("Skipped sending event because buffer is full."),recordEnvelopeLoss("queue_overflow"),(0,tR.WD)();throw et})}return send.__sentry__baseTransport__=!0,{send,flush}}function getEventForEnvelopeItem(et,eo){if("event"===eo||"transaction"===eo)return Array.isArray(et)?et[1]:void 0}function getNativeFetchImplementation(){if(ek)return ek;if(isNativeFetch(tm.fetch))return ek=tm.fetch.bind(tm);let et=tm.document,eo=tm.fetch;if(et&&"function"==typeof et.createElement)try{let ei=et.createElement("iframe");ei.hidden=!0,et.head.appendChild(ei);let ea=ei.contentWindow;ea&&ea.fetch&&(eo=ea.fetch),et.head.removeChild(ei)}catch(et){tA&&eJ.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",et)}return ek=eo.bind(tm)}function clearCachedFetchImplementation(){ek=void 0}function makeFetchTransport(et,eo=getNativeFetchImplementation()){let ei=0,ea=0;function makeRequest(eu){let ed=eu.body.length;ei+=ed,ea++;let eh={body:eu.body,method:"POST",referrerPolicy:"origin",headers:et.headers,keepalive:ei<=6e4&&ea<15,...et.fetchOptions};try{return eo(et.url,eh).then(et=>(ei-=ed,ea--,{statusCode:et.status,headers:{"x-sentry-rate-limits":et.headers.get("X-Sentry-Rate-Limits"),"retry-after":et.headers.get("Retry-After")}}))}catch(et){return clearCachedFetchImplementation(),ei-=ed,ea--,(0,tR.$2)(et)}}return createTransport(et,makeRequest)}let rw=4;function makeXHRTransport(et){function makeRequest(eo){return new tR.cW((ei,ea)=>{let eu=new XMLHttpRequest;for(let eo in eu.onerror=ea,eu.onreadystatechange=()=>{eu.readyState===rw&&ei({statusCode:eu.status,headers:{"x-sentry-rate-limits":eu.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":eu.getResponseHeader("Retry-After")}})},eu.open("POST",et.url),et.headers)Object.prototype.hasOwnProperty.call(et.headers,eo)&&eu.setRequestHeader(eo,et.headers[eo]);eu.send(eo.body)})}return createTransport(et,makeRequest)}let rA=[tr(),e4(),tM(),tz(),tP(),t$(),t2(),tX()];function getDefaultIntegrations(et){return[...rA]}function init(et={}){void 0===et.defaultIntegrations&&(et.defaultIntegrations=getDefaultIntegrations()),void 0===et.release&&("string"==typeof __SENTRY_RELEASE__&&(et.release=__SENTRY_RELEASE__),tm.SENTRY_RELEASE&&tm.SENTRY_RELEASE.id&&(et.release=tm.SENTRY_RELEASE.id)),void 0===et.autoSessionTracking&&(et.autoSessionTracking=!0),void 0===et.sendClientReports&&(et.sendClientReports=!0);let eo={...et,stackParser:(0,tv.Sq)(et.stackParser||rC),integrations:getIntegrationsToSetup(et),transport:et.transport||(supportsFetch()?makeFetchTransport:makeXHRTransport)};initAndBind(BrowserClient,eo),et.autoSessionTracking&&startSessionTracking()}function startSessionTracking(){if(void 0===tm.document){tA&&eJ.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,ez.yj)({ignoreDuration:!0}),(0,ez.cg)(),addHistoryInstrumentationHandler(({from:et,to:eo})=>{void 0!==et&&et!==eo&&((0,ez.yj)({ignoreDuration:!0}),(0,ez.cg)())})}function sdk_init(et){let eo={...et};applySdkMetadata(eo,"react"),init(eo)}var rI=ei(34155);function getVercelEnv(et){let eo=et?"production":rI.env.VERCEL_ENV;return eo?`vercel-${eo}`:void 0}function _optionalChain(et){let eo;let ei=et[0],ea=1;for(;ea<et.length;){let eu=et[ea],ed=et[ea+1];if(ea+=2,("optionalAccess"===eu||"optionalCall"===eu)&&null==ei)return;"access"===eu||"optionalAccess"===eu?(eo=ei,ei=ed(ei)):("call"===eu||"optionalCall"===eu)&&(ei=ed((...et)=>ei.call(eo,...et)),eo=void 0)}return ei}var rR=ei(93371);function getMetricStorageForSpan(et){return ef?ef.get(et):void 0}function getMetricSummaryJsonForSpan(et){let eo=getMetricStorageForSpan(et);if(!eo)return;let ei={};for(let[,[et,ea]]of eo)ei[et]||(ei[et]=[]),ei[et].push((0,eW.Jr)(ea));return ei}let rT="sentry.source",rE="sentry.sample_rate",rP="sentry.op",rk="sentry.origin",rO="profile_id";var rx=ei(55102);function getSpanStatusFromHttpCode(et){if(et<400&&et>=100)return"ok";if(et>=400&&et<500)switch(et){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(et>=500&&et<600)switch(et){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function setHttpStatus(et,eo){et.setTag("http.status_code",String(eo)),et.setData("http.response.status_code",eo);let ei=getSpanStatusFromHttpCode(eo);"unknown_error"!==ei&&et.setStatus(ei)}!function(et){let eo="ok";et.Ok=eo;let ei="deadline_exceeded";et.DeadlineExceeded=ei;let ea="unauthenticated";et.Unauthenticated=ea;let eu="permission_denied";et.PermissionDenied=eu;let ed="not_found";et.NotFound=ed;let eh="resource_exhausted";et.ResourceExhausted=eh;let ep="invalid_argument";et.InvalidArgument=ep;let ef="unimplemented";et.Unimplemented=ef;let em="unavailable";et.Unavailable=em;let eg="internal_error";et.InternalError=eg;let ey="unknown_error";et.UnknownError=ey;let eC="cancelled";et.Cancelled=eC;let eS="already_exists";et.AlreadyExists=eS;let e_="failed_precondition";et.FailedPrecondition=e_;let ew="aborted";et.Aborted=ew;let eA="out_of_range";et.OutOfRange=eA;let eI="data_loss";et.DataLoss=eI}(eB||(eB={}));let SpanRecorder=class SpanRecorder{constructor(et=1e3){this._maxlen=et,this.spans=[]}add(et){this.spans.length>this._maxlen?et.spanRecorder=void 0:this.spans.push(et)}};let Span=class Span{constructor(et={}){this._traceId=et.traceId||(0,eV.DM)(),this._spanId=et.spanId||(0,eV.DM)().substring(16),this._startTime=et.startTimestamp||(0,ra.ph)(),this.tags=et.tags?{...et.tags}:{},this.data=et.data?{...et.data}:{},this.instrumenter=et.instrumenter||"sentry",this._attributes={},this.setAttributes({[rk]:et.origin||"manual",[rP]:et.op,...et.attributes}),this._name=et.name||et.description,et.parentSpanId&&(this._parentSpanId=et.parentSpanId),"sampled"in et&&(this._sampled=et.sampled),et.status&&(this._status=et.status),et.endTimestamp&&(this._endTime=et.endTimestamp),et.exclusiveTime&&(this._exclusiveTime=et.exclusiveTime),this._measurements=et.measurements?{...et.measurements}:{}}get name(){return this._name||""}set name(et){this.updateName(et)}get description(){return this._name}set description(et){this._name=et}get traceId(){return this._traceId}set traceId(et){this._traceId=et}get spanId(){return this._spanId}set spanId(et){this._spanId=et}set parentSpanId(et){this._parentSpanId=et}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(et){this._sampled=et}get attributes(){return this._attributes}set attributes(et){this._attributes=et}get startTimestamp(){return this._startTime}set startTimestamp(et){this._startTime=et}get endTimestamp(){return this._endTime}set endTimestamp(et){this._endTime=et}get status(){return this._status}set status(et){this._status=et}get op(){return this._attributes[rP]}set op(et){this.setAttribute(rP,et)}get origin(){return this._attributes[rk]}set origin(et){this.setAttribute(rk,et)}spanContext(){let{_spanId:et,_traceId:eo,_sampled:ei}=this;return{spanId:et,traceId:eo,traceFlags:ei?rR.i0:rR.ve}}startChild(et){let eo=new Span({...et,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});eo.spanRecorder=this.spanRecorder,eo.spanRecorder&&eo.spanRecorder.add(eo);let ei=(0,rx.G)(this);if(eo.transaction=ei,eY.X&&ei){let ea=et&&et.op||"< unknown op >",eu=(0,rR.XU)(eo).description||"< unknown name >",ed=ei.spanContext().spanId,eh=`[Tracing] Starting '${ea}' span on transaction '${eu}' (${ed}).`;eJ.kg.log(eh),this._logMessage=eh}return eo}setTag(et,eo){return this.tags={...this.tags,[et]:eo},this}setData(et,eo){return this.data={...this.data,[et]:eo},this}setAttribute(et,eo){void 0===eo?delete this._attributes[et]:this._attributes[et]=eo}setAttributes(et){Object.keys(et).forEach(eo=>this.setAttribute(eo,et[eo]))}setStatus(et){return this._status=et,this}setHttpStatus(et){return setHttpStatus(this,et),this}setName(et){this.updateName(et)}updateName(et){return this._name=et,this}isSuccess(){return"ok"===this._status}finish(et){return this.end(et)}end(et){if(this._endTime)return;let eo=(0,rx.G)(this);if(eY.X&&eo&&eo.spanContext().spanId!==this._spanId){let et=this._logMessage;et&&eJ.kg.log(et.replace("Starting","Finishing"))}this._endTime=(0,rR.$k)(et)}toTraceparent(){return(0,rR.Hb)(this)}toContext(){return(0,eW.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(et){return this.data=et.data||{},this._name=et.name||et.description,this._endTime=et.endTimestamp,this.op=et.op,this._parentSpanId=et.parentSpanId,this._sampled=et.sampled,this._spanId=et.spanId||this._spanId,this._startTime=et.startTimestamp||this._startTime,this._status=et.status,this.tags=et.tags||{},this._traceId=et.traceId||this._traceId,this}getTraceContext(){return(0,rR.wy)(this)}getSpanJSON(){return(0,eW.Jr)({data:this._getData(),description:this._name,op:this._attributes[rP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[rk],_metrics_summary:getMetricSummaryJsonForSpan(this),profile_id:this._attributes[rO],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:et,_attributes:eo}=this,ei=Object.keys(et).length>0,ea=Object.keys(eo).length>0;return ei||ea?ei&&ea?{...et,...eo}:ei?et:eo:void 0}};function startInactiveSpan(et){if(!hasTracingEnabled())return;let eo=normalizeContext(et),ei=(0,eZ.Gd)(),ea=et.scope?et.scope.getSpan():trace_getActiveSpan(),eu=et.onlyIfParent&&!ea;if(eu)return;let ed=et.scope||(0,ez.nZ)(),eh=ed.clone();return createChildSpanOrTransaction(ei,{parentSpan:ea,spanContext:eo,forceTransaction:et.forceTransaction,scope:eh})}function trace_getActiveSpan(){return(0,ez.nZ)().getSpan()}function createChildSpanOrTransaction(et,{parentSpan:eo,spanContext:ei,forceTransaction:ea,scope:eu}){let ed;if(!hasTracingEnabled())return;let eh=(0,eZ.aF)();if(eo&&!ea)ed=eo.startChild(ei);else if(eo){let ea=(0,rr.j)(eo),{traceId:eu,spanId:eh}=eo.spanContext(),ep=(0,rR.Tt)(eo);ed=et.startTransaction({traceId:eu,parentSpanId:eh,parentSampled:ep,...ei,metadata:{dynamicSamplingContext:ea,...ei.metadata}})}else{let{traceId:eo,dsc:ea,parentSpanId:ep,sampled:ef}={...eh.getPropagationContext(),...eu.getPropagationContext()};ed=et.startTransaction({traceId:eo,parentSpanId:ep,parentSampled:ef,...ei,metadata:{dynamicSamplingContext:ea,...ei.metadata}})}return eu.setSpan(ed),setCapturedScopesOnSpan(ed,eu,eh),ed}function normalizeContext(et){if(et.startTime){let eo={...et};return eo.startTimestamp=(0,rR.$k)(et.startTime),delete eo.startTime,eo}return et}let rM="_sentryScope",rD="_sentryIsolationScope";function setCapturedScopesOnSpan(et,eo,ei){et&&((0,eW.xp)(et,rD,ei),(0,eW.xp)(et,rM,eo))}function getCapturedScopesOnSpan(et){return{scope:et[rM],isolationScope:et[rD]}}let Transaction=class Transaction extends Span{constructor(et,eo){super(et),this._contexts={},this._hub=eo||(0,eZ.Gd)(),this._name=et.name||"",this._metadata={...et.metadata},this._trimEnd=et.trimEnd,this.transaction=this;let ei=this._metadata.dynamicSamplingContext;ei&&(this._frozenDynamicSamplingContext={...ei})}get name(){return this._name}set name(et){this.setName(et)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[rT]&&{source:this._attributes[rT]},...this._attributes[rE]&&{sampleRate:this._attributes[rE]}}}set metadata(et){this._metadata=et}setName(et,eo="custom"){this._name=et,this.setAttribute(rT,eo)}updateName(et){return this._name=et,this}initSpanRecorder(et=1e3){this.spanRecorder||(this.spanRecorder=new SpanRecorder(et)),this.spanRecorder.add(this)}setContext(et,eo){null===eo?delete this._contexts[et]:this._contexts[et]=eo}setMeasurement(et,eo,ei=""){this._measurements[et]={value:eo,unit:ei}}setMetadata(et){this._metadata={...this._metadata,...et}}end(et){let eo=(0,rR.$k)(et),ei=this._finishTransaction(eo);if(ei)return this._hub.captureEvent(ei)}toContext(){let et=super.toContext();return(0,eW.Jr)({...et,name:this._name,trimEnd:this._trimEnd})}updateWithContext(et){return super.updateWithContext(et),this._name=et.name||"",this._trimEnd=et.trimEnd,this}getDynamicSamplingContext(){return(0,rr.j)(this)}setHub(et){this._hub=et}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(et){if(void 0!==this._endTime)return;this._name||(eY.X&&eJ.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(et);let eo=this._hub.getClient();if(eo&&eo.emit&&eo.emit("finishTransaction",this),!0!==this._sampled){eY.X&&eJ.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),eo&&eo.recordDroppedEvent("sample_rate","transaction");return}let ei=this.spanRecorder?this.spanRecorder.spans.filter(et=>et!==this&&(0,rR.XU)(et).timestamp):[];if(this._trimEnd&&ei.length>0){let et=ei.map(et=>(0,rR.XU)(et).timestamp).filter(Boolean);this._endTime=et.reduce((et,eo)=>et>eo?et:eo)}let{scope:ea,isolationScope:eu}=getCapturedScopesOnSpan(this),{metadata:ed}=this,{source:eh}=ed,ep={contexts:{...this._contexts,trace:(0,rR.wy)(this)},spans:ei,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...ed,capturedSpanScope:ea,capturedSpanIsolationScope:eu,...(0,eW.Jr)({dynamicSamplingContext:(0,rr.j)(this)})},_metrics_summary:getMetricSummaryJsonForSpan(this),...eh&&{transaction_info:{source:eh}}},ef=Object.keys(this._measurements).length>0;return ef&&(eY.X&&eJ.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),ep.measurements=this._measurements),eY.X&&eJ.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),ep}};let rU={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},rL="finishReason",rN=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];let IdleTransactionSpanRecorder=class IdleTransactionSpanRecorder extends SpanRecorder{constructor(et,eo,ei,ea){super(ea),this._pushActivity=et,this._popActivity=eo,this.transactionSpanId=ei}add(et){if(et.spanContext().spanId!==this.transactionSpanId){let eo=et.end;et.end=(...ei)=>(this._popActivity(et.spanContext().spanId),eo.apply(et,ei)),void 0===(0,rR.XU)(et).timestamp&&this._pushActivity(et.spanContext().spanId)}super.add(et)}};let IdleTransaction=class IdleTransaction extends Transaction{constructor(et,eo,ei=rU.idleTimeout,ea=rU.finalTimeout,eu=rU.heartbeatInterval,ed=!1,eh=!1){super(et,eo),this._idleHub=eo,this._idleTimeout=ei,this._finalTimeout=ea,this._heartbeatInterval=eu,this._onScope=ed,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=rN[4],this._autoFinishAllowed=!eh,ed&&(eY.X&&eJ.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),eo.getScope().setSpan(this)),eh||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=rN[3],this.end())},this._finalTimeout)}end(et){let eo=(0,rR.$k)(et);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute(rL,this._finishReason),this.spanRecorder){for(let et of(eY.X&&eJ.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*eo).toISOString(),this.op),this._beforeFinishCallbacks))et(this,eo);this.spanRecorder.spans=this.spanRecorder.spans.filter(et=>{if(et.spanContext().spanId===this.spanContext().spanId)return!0;!(0,rR.XU)(et).timestamp&&(et.setStatus("cancelled"),et.end(eo),eY.X&&eJ.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(et,void 0,2)));let{start_timestamp:ei,timestamp:ea}=(0,rR.XU)(et),eu=ei&&ei<eo,ed=(this._finalTimeout+this._idleTimeout)/1e3,eh=ea&&ei&&ea-ei<ed;if(eY.X){let eo=JSON.stringify(et,void 0,2);eu?eh||eJ.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",eo):eJ.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",eo)}return eu&&eh}),eY.X&&eJ.kg.log("[Tracing] flushing IdleTransaction")}else eY.X&&eJ.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){let et=this._idleHub.getScope();et.getTransaction()===this&&et.setSpan(void 0)}return super.end(et)}registerBeforeFinishCallback(et){this._beforeFinishCallbacks.push(et)}initSpanRecorder(et){if(!this.spanRecorder){let pushActivity=et=>{this._finished||this._pushActivity(et)},popActivity=et=>{this._finished||this._popActivity(et)};this.spanRecorder=new IdleTransactionSpanRecorder(pushActivity,popActivity,this.spanContext().spanId,et),eY.X&&eJ.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(et,{restartOnChildSpanChange:eo}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===eo,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=rN[5],this.end(et)))}setFinishReason(et){this._finishReason=et}sendAutoFinishSignal(){this._autoFinishAllowed||(eY.X&&eJ.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(et){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=rN[1],this.end(et))},this._idleTimeout)}_pushActivity(et){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),eY.X&&eJ.kg.log(`[Tracing] pushActivity: ${et}`),this.activities[et]=!0,eY.X&&eJ.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(et){if(this.activities[et]&&(eY.X&&eJ.kg.log(`[Tracing] popActivity ${et}`),delete this.activities[et],eY.X&&eJ.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let et=(0,ra.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=rN[5],this.end(et)):this._restartIdleTimeout(et+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let et=Object.keys(this.activities).join("");et===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=et,this._heartbeatCounter>=3?this._autoFinishAllowed&&(eY.X&&eJ.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=rN[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){eY.X&&eJ.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};function getActiveTransaction(et){let eo=et||(0,eZ.Gd)(),ei=eo.getScope();return ei.getTransaction()}let rq=!1;function registerErrorInstrumentation(){rq||(rq=!0,addGlobalErrorInstrumentationHandler(errorCallback),addGlobalUnhandledRejectionInstrumentationHandler(errorCallback))}function errorCallback(){let et=getActiveTransaction();if(et){let eo="internal_error";eY.X&&eJ.kg.log(`[Tracing] Transaction: ${eo} -> Global error occured`),et.setStatus(eo)}}function sampleTransaction(et,eo,ei){let ea;return hasTracingEnabled(eo)?void 0!==et.sampled?et.setAttribute(rE,Number(et.sampled)):("function"==typeof eo.tracesSampler?(ea=eo.tracesSampler(ei),et.setAttribute(rE,Number(ea))):void 0!==ei.parentSampled?ea=ei.parentSampled:void 0!==eo.tracesSampleRate?(ea=eo.tracesSampleRate,et.setAttribute(rE,Number(ea))):(ea=1,et.setAttribute(rE,ea)),isValidSampleRate(ea))?ea?(et.sampled=Math.random()<ea,et.sampled)?eY.X&&eJ.kg.log(`[Tracing] starting ${et.op} transaction - ${(0,rR.XU)(et).description}`):eY.X&&eJ.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(ea)})`):(eY.X&&eJ.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof eo.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),et.sampled=!1):(eY.X&&eJ.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),et.sampled=!1):et.sampled=!1,et}function isValidSampleRate(et){return(0,ti.i2)(et)||!("number"==typeof et||"boolean"==typeof et)?(eY.X&&eJ.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(et)} of type ${JSON.stringify(typeof et)}.`),!1):!(et<0)&&!(et>1)||(eY.X&&eJ.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${et}.`),!1)}function traceHeaders(){let et=this.getScope(),eo=et.getSpan();return eo?{"sentry-trace":(0,rR.Hb)(eo)}:{}}function _startTransaction(et,eo){let ei=this.getClient(),ea=ei&&ei.getOptions()||{},eu=ea.instrumenter||"sentry",ed=et.instrumenter||"sentry";eu!==ed&&(eY.X&&eJ.kg.error(`A transaction was started with instrumenter=\`${ed}\`, but the SDK is configured with the \`${eu}\` instrumenter.
The transaction will not be sampled. Please use the ${eu} instrumentation to start transactions.`),et.sampled=!1);let eh=new Transaction(et,this);return(eh=sampleTransaction(eh,ea,{name:et.name,parentSampled:et.parentSampled,transactionContext:et,attributes:{...et.data,...et.attributes},...eo})).isRecording()&&eh.initSpanRecorder(ea._experiments&&ea._experiments.maxSpans),ei&&ei.emit&&ei.emit("startTransaction",eh),eh}function startIdleTransaction(et,eo,ei,ea,eu,ed,eh,ep=!1){let ef=et.getClient(),em=ef&&ef.getOptions()||{},eg=new IdleTransaction(eo,et,ei,ea,eh,eu,ep);return(eg=sampleTransaction(eg,em,{name:eo.name,parentSampled:eo.parentSampled,transactionContext:eo,attributes:{...eo.data,...eo.attributes},...ed})).isRecording()&&eg.initSpanRecorder(em._experiments&&em._experiments.maxSpans),ef&&ef.emit&&ef.emit("startTransaction",eg),eg}function addTracingExtensions(){let et=(0,eZ.cu)();et.__SENTRY__&&(et.__SENTRY__.extensions=et.__SENTRY__.extensions||{},et.__SENTRY__.extensions.startTransaction||(et.__SENTRY__.extensions.startTransaction=_startTransaction),et.__SENTRY__.extensions.traceHeaders||(et.__SENTRY__.extensions.traceHeaders=traceHeaders),registerErrorInstrumentation())}errorCallback.tag="sentry_tracingErrorCallback";var rB=ei(77638);let rF="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rj=tf.GLOBAL_OBJ;function registerBackgroundTabDetection(){rj&&rj.document?rj.document.addEventListener("visibilitychange",()=>{let et=getActiveTransaction();if(rj.document.hidden&&et){let eo="cancelled",{op:ei,status:ea}=(0,rR.XU)(et);rF&&eJ.kg.log(`[Tracing] Transaction: ${eo} -> since tab moved to the background, op: ${ei}`),ea||et.setStatus(eo),et.setTag("visibilitychange","document.hidden"),et.end()}}):rF&&eJ.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}let bindReporter=(et,eo,ei)=>{let ea,eu;return ed=>{eo.value>=0&&(ed||ei)&&((eu=eo.value-(ea||0))||void 0===ea)&&(ea=eo.value,eo.delta=eu,et(eo))}},generateUniqueID=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,getNavigationEntryFromPerformanceTiming=()=>{let et=rj.performance.timing,eo=rj.performance.navigation.type,ei={entryType:"navigation",startTime:0,type:2==eo?"back_forward":1===eo?"reload":"navigate"};for(let eo in et)"navigationStart"!==eo&&"toJSON"!==eo&&(ei[eo]=Math.max(et[eo]-et.navigationStart,0));return ei},getNavigationEntry=()=>rj.__WEB_VITALS_POLYFILL__?rj.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||getNavigationEntryFromPerformanceTiming()):rj.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],getActivationStart=()=>{let et=getNavigationEntry();return et&&et.activationStart||0},initMetric=(et,eo)=>{let ei=getNavigationEntry(),ea="navigate";return ei&&(ea=rj.document.prerendering||getActivationStart()>0?"prerender":ei.type.replace(/_/g,"-")),{name:et,value:void 0===eo?-1:eo,rating:"good",delta:0,entries:[],id:generateUniqueID(),navigationType:ea}},observe=(et,eo,ei)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(et)){let ea=new PerformanceObserver(et=>{eo(et.getEntries())});return ea.observe(Object.assign({type:et,buffered:!0},ei||{})),ea}}catch(et){}},onHidden=(et,eo)=>{let onHiddenOrPageHide=ei=>{("pagehide"===ei.type||"hidden"===rj.document.visibilityState)&&(et(ei),eo&&(removeEventListener("visibilitychange",onHiddenOrPageHide,!0),removeEventListener("pagehide",onHiddenOrPageHide,!0)))};addEventListener("visibilitychange",onHiddenOrPageHide,!0),addEventListener("pagehide",onHiddenOrPageHide,!0)},onCLS=et=>{let eo;let ei=initMetric("CLS",0),ea=0,eu=[],handleEntries=et=>{et.forEach(et=>{if(!et.hadRecentInput){let ed=eu[0],eh=eu[eu.length-1];ea&&0!==eu.length&&et.startTime-eh.startTime<1e3&&et.startTime-ed.startTime<5e3?(ea+=et.value,eu.push(et)):(ea=et.value,eu=[et]),ea>ei.value&&(ei.value=ea,ei.entries=eu,eo&&eo())}})},ed=observe("layout-shift",handleEntries);if(ed){eo=bindReporter(et,ei);let stopListening=()=>{handleEntries(ed.takeRecords()),eo(!0)};return onHidden(stopListening),stopListening}},rG=-1,initHiddenTime=()=>"hidden"!==rj.document.visibilityState||rj.document.prerendering?1/0:0,trackChanges=()=>{onHidden(({timeStamp:et})=>{rG=et},!0)},getVisibilityWatcher=()=>(rG<0&&(rG=initHiddenTime(),trackChanges()),{get firstHiddenTime(){return rG}}),onFID=et=>{let eo;let ei=getVisibilityWatcher(),ea=initMetric("FID"),handleEntry=et=>{et.startTime<ei.firstHiddenTime&&(ea.value=et.processingStart-et.startTime,ea.entries.push(et),eo(!0))},handleEntries=et=>{et.forEach(handleEntry)},eu=observe("first-input",handleEntries);eo=bindReporter(et,ea),eu&&onHidden(()=>{handleEntries(eu.takeRecords()),eu.disconnect()},!0)},rH=0,rK=1/0,rz=0,updateEstimate=et=>{et.forEach(et=>{et.interactionId&&(rK=Math.min(rK,et.interactionId),rH=(rz=Math.max(rz,et.interactionId))?(rz-rK)/7+1:0)})},getInteractionCount=()=>em?rH:performance.interactionCount||0,initInteractionCountPolyfill=()=>{"interactionCount"in performance||em||(em=observe("event",updateEstimate,{type:"event",buffered:!0,durationThreshold:0}))},getInteractionCountForNavigation=()=>getInteractionCount(),rW=10,rV=[],rJ={},processEntry=et=>{let eo=rV[rV.length-1],ei=rJ[et.interactionId];if(ei||rV.length<rW||et.duration>eo.latency){if(ei)ei.entries.push(et),ei.latency=Math.max(ei.latency,et.duration);else{let eo={id:et.interactionId,latency:et.duration,entries:[et]};rJ[eo.id]=eo,rV.push(eo)}rV.sort((et,eo)=>eo.latency-et.latency),rV.splice(rW).forEach(et=>{delete rJ[et.id]})}},estimateP98LongestInteraction=()=>{let et=Math.min(rV.length-1,Math.floor(getInteractionCountForNavigation()/50));return rV[et]},onINP=(et,eo)=>{let ei;eo=eo||{},initInteractionCountPolyfill();let ea=initMetric("INP"),handleEntries=et=>{et.forEach(et=>{if(et.interactionId&&processEntry(et),"first-input"===et.entryType){let eo=!rV.some(eo=>eo.entries.some(eo=>et.duration===eo.duration&&et.startTime===eo.startTime));eo&&processEntry(et)}});let eo=estimateP98LongestInteraction();eo&&eo.latency!==ea.value&&(ea.value=eo.latency,ea.entries=eo.entries,ei())},eu=observe("event",handleEntries,{durationThreshold:eo.durationThreshold||40});ei=bindReporter(et,ea,eo.reportAllChanges),eu&&(eu.observe({type:"first-input",buffered:!0}),onHidden(()=>{handleEntries(eu.takeRecords()),ea.value<0&&getInteractionCountForNavigation()>0&&(ea.value=0,ea.entries=[]),ei(!0)}))},rY={},onLCP=et=>{let eo;let ei=getVisibilityWatcher(),ea=initMetric("LCP"),handleEntries=et=>{let eu=et[et.length-1];if(eu){let et=Math.max(eu.startTime-getActivationStart(),0);et<ei.firstHiddenTime&&(ea.value=et,ea.entries=[eu],eo())}},eu=observe("largest-contentful-paint",handleEntries);if(eu){eo=bindReporter(et,ea);let stopListening=()=>{rY[ea.id]||(handleEntries(eu.takeRecords()),eu.disconnect(),rY[ea.id]=!0,eo(!0))};return["keydown","click"].forEach(et=>{addEventListener(et,stopListening,{once:!0,capture:!0})}),onHidden(stopListening,!0),stopListening}},r$={},rZ={};function addClsInstrumentationHandler(et,eo=!1){return addMetricObserver("cls",et,instrumentCls,eg,eo)}function addLcpInstrumentationHandler(et,eo=!1){return addMetricObserver("lcp",et,instrumentLcp,eC,eo)}function addFidInstrumentationHandler(et){return addMetricObserver("fid",et,instrumentFid,ey)}function addInpInstrumentationHandler(et){return addMetricObserver("inp",et,instrumentInp,eS)}function addPerformanceInstrumentationHandler(et,eo){return instrument_addHandler(et,eo),rZ[et]||(instrumentPerformanceObserver(et),rZ[et]=!0),getCleanupCallback(et,eo)}function instrument_triggerHandlers(et,eo){let ei=r$[et];if(ei&&ei.length)for(let ea of ei)try{ea(eo)}catch(eo){rF&&eJ.kg.error(`Error while triggering instrumentation handler.
Type: ${et}
Name: ${(0,tv.$P)(ea)}
Error:`,eo)}}function instrumentCls(){return onCLS(et=>{instrument_triggerHandlers("cls",{metric:et}),eg=et})}function instrumentFid(){return onFID(et=>{instrument_triggerHandlers("fid",{metric:et}),ey=et})}function instrumentLcp(){return onLCP(et=>{instrument_triggerHandlers("lcp",{metric:et}),eC=et})}function instrumentInp(){return onINP(et=>{instrument_triggerHandlers("inp",{metric:et}),eS=et})}function addMetricObserver(et,eo,ei,ea,eu=!1){let ed;return instrument_addHandler(et,eo),rZ[et]||(ed=ei(),rZ[et]=!0),ea&&eo({metric:ea}),getCleanupCallback(et,eo,eu?ed:void 0)}function instrumentPerformanceObserver(et){let eo={};"event"===et&&(eo.durationThreshold=0),observe(et,eo=>{instrument_triggerHandlers(et,{entries:eo})},eo)}function instrument_addHandler(et,eo){r$[et]=r$[et]||[],r$[et].push(eo)}function getCleanupCallback(et,eo,ei){return()=>{ei&&ei();let ea=r$[et];if(!ea)return;let eu=ea.indexOf(eo);-1!==eu&&ea.splice(eu,1)}}function createSpanEnvelope(et,eo){let ei={sent_at:new Date().toISOString()};eo&&(ei.dsn=dsn_dsnToString(eo));let ea=et.map(createSpanItem);return createEnvelope(ei,ea)}function createSpanItem(et){let eo={type:"span"};return[eo,et]}function setMeasurement(et,eo,ei){let ea=getActiveTransaction();ea&&ea.setMeasurement(et,eo,ei)}function isMeasurementValue(et){return"number"==typeof et&&isFinite(et)}function _startChild(et,{startTimestamp:eo,...ei}){return eo&&et.startTimestamp>eo&&(et.startTimestamp=eo),et.startChild({startTimestamp:eo,...ei})}let rQ=2147483647;function msToSec(et){return et/1e3}function getBrowserPerformanceAPI(){return rj&&rj.addEventListener&&rj.performance}let rX=0,r0={};function startTrackingWebVitals(){let et=getBrowserPerformanceAPI();if(et&&ra.Z1){et.mark&&rj.performance.mark("sentry-tracing-init");let eo=_trackFID(),ei=_trackCLS(),ea=_trackLCP();return()=>{eo(),ei(),ea()}}return()=>void 0}function startTrackingLongTasks(){addPerformanceInstrumentationHandler("longtask",({entries:et})=>{for(let eo of et){let et=getActiveTransaction();if(!et)return;let ei=msToSec(ra.Z1+eo.startTime),ea=msToSec(eo.duration);et.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:ei,endTimestamp:ei+ea})}})}function startTrackingInteractions(){addPerformanceInstrumentationHandler("event",({entries:et})=>{for(let eo of et){let et=getActiveTransaction();if(!et)return;if("click"===eo.name){let ei=msToSec(ra.Z1+eo.startTime),ea=msToSec(eo.duration),eu={description:(0,tw.Rt)(eo.target),op:`ui.interaction.${eo.name}`,origin:"auto.ui.browser.metrics",startTimestamp:ei,endTimestamp:ei+ea},ed=(0,tw.iY)(eo.target);ed&&(eu.attributes={"ui.component_name":ed}),et.startChild(eu)}}})}function startTrackingINP(et){let eo=getBrowserPerformanceAPI();if(eo&&ra.Z1){let eo=_trackINP(et);return()=>{eo()}}return()=>void 0}function _trackCLS(){return addClsInstrumentationHandler(({metric:et})=>{let eo=et.entries[et.entries.length-1];eo&&(rF&&eJ.kg.log("[Measurements] Adding CLS"),r0.cls={value:et.value,unit:""},ew=eo)},!0)}function _trackLCP(){return addLcpInstrumentationHandler(({metric:et})=>{let eo=et.entries[et.entries.length-1];eo&&(rF&&eJ.kg.log("[Measurements] Adding LCP"),r0.lcp={value:et.value,unit:"millisecond"},e_=eo)},!0)}function _trackFID(){return addFidInstrumentationHandler(({metric:et})=>{let eo=et.entries[et.entries.length-1];if(!eo)return;let ei=msToSec(ra.Z1),ea=msToSec(eo.startTime);rF&&eJ.kg.log("[Measurements] Adding FID"),r0.fid={value:et.value,unit:"millisecond"},r0["mark.fid"]={value:ei+ea,unit:"second"}})}function _trackINP(et){return addInpInstrumentationHandler(({metric:eo})=>{let ei=eo.entries.find(et=>"click"===et.name||"pointerdown"===et.name),ea=(0,ez.s3)();if(!ei||!ea)return;let eu=ea.getOptions(),ed=msToSec(ra.Z1+ei.startTime),eh=msToSec(eo.value),{routeName:ep,parentContext:ef,activeTransaction:em,user:eg,replayId:ey}=void 0!==ei.interactionId?et[ei.interactionId]:{routeName:void 0,parentContext:void 0,activeTransaction:void 0,user:void 0,replayId:void 0},eC=void 0!==eg?eg.email||eg.id||eg.ip_address:void 0,eS=void 0!==em?em.getProfileId():void 0,e_=new Span({startTimestamp:ed,endTimestamp:ed+eh,op:"ui.interaction.click",name:(0,tw.Rt)(ei.target),attributes:{release:eu.release,environment:eu.environment,transaction:ep,...void 0!==eC&&""!==eC?{user:eC}:{},...void 0!==eS?{profile_id:eS}:{},...void 0!==ey?{replay_id:ey}:{}},exclusiveTime:eo.value,measurements:{inp:{value:eo.value,unit:"millisecond"}}}),ew=getSampleRate(ef,eu);if(ew&&Math.random()<ew){let et=e_?createSpanEnvelope([e_],ea.getDsn()):void 0,eo=ea&&ea.getTransport();eo&&et&&eo.send(et).then(null,et=>{rF&&eJ.kg.error("Error while sending interaction:",et)});return}})}function addPerformanceEntries(et){let eo,ei;let ea=getBrowserPerformanceAPI();if(!ea||!rj.performance.getEntries||!ra.Z1)return;rF&&eJ.kg.log("[Tracing] Adding & adjusting spans using Performance API");let eu=msToSec(ra.Z1),ed=ea.getEntries(),{op:eh,start_timestamp:ep}=(0,rR.XU)(et);if(ed.slice(rX).forEach(ea=>{let ed=msToSec(ea.startTime),eh=msToSec(ea.duration);if("navigation"!==et.op||!ep||!(eu+ed<ep))switch(ea.entryType){case"navigation":_addNavigationSpans(et,ea,eu),eo=eu+msToSec(ea.responseStart),ei=eu+msToSec(ea.requestStart);break;case"mark":case"paint":case"measure":{_addMeasureSpans(et,ea,ed,eh,eu);let eo=getVisibilityWatcher(),ei=ea.startTime<eo.firstHiddenTime;"first-paint"===ea.name&&ei&&(rF&&eJ.kg.log("[Measurements] Adding FP"),r0.fp={value:ea.startTime,unit:"millisecond"}),"first-contentful-paint"===ea.name&&ei&&(rF&&eJ.kg.log("[Measurements] Adding FCP"),r0.fcp={value:ea.startTime,unit:"millisecond"});break}case"resource":_addResourceSpans(et,ea,ea.name,ed,eh,eu)}}),rX=Math.max(ed.length-1,0),_trackNavigator(et),"pageload"===eh){_addTtfbToMeasurements(r0,eo,ei,ep),["fcp","fp","lcp"].forEach(et=>{if(!r0[et]||!ep||eu>=ep)return;let eo=r0[et].value,ei=eu+msToSec(eo),ea=Math.abs((ei-ep)*1e3),ed=ea-eo;rF&&eJ.kg.log(`[Measurements] Normalized ${et} from ${eo} to ${ea} (${ed})`),r0[et].value=ea});let ea=r0["mark.fid"];ea&&r0.fid&&(_startChild(et,{description:"first input delay",endTimestamp:ea.value+msToSec(r0.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:ea.value}),delete r0["mark.fid"]),"fcp"in r0||delete r0.cls,Object.keys(r0).forEach(et=>{setMeasurement(et,r0[et].value,r0[et].unit)}),_tagMetricInfo(et)}e_=void 0,ew=void 0,r0={}}function _addMeasureSpans(et,eo,ei,ea,eu){let ed=eu+ei,eh=ed+ea;return _startChild(et,{description:eo.name,endTimestamp:eh,op:eo.entryType,origin:"auto.resource.browser.metrics",startTimestamp:ed}),ed}function _addNavigationSpans(et,eo,ei){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(ea=>{_addPerformanceNavigationTiming(et,eo,ea,ei)}),_addPerformanceNavigationTiming(et,eo,"secureConnection",ei,"TLS/SSL","connectEnd"),_addPerformanceNavigationTiming(et,eo,"fetch",ei,"cache","domainLookupStart"),_addPerformanceNavigationTiming(et,eo,"domainLookup",ei,"DNS"),_addRequest(et,eo,ei)}function _addPerformanceNavigationTiming(et,eo,ei,ea,eu,ed){let eh=ed?eo[ed]:eo[`${ei}End`],ep=eo[`${ei}Start`];ep&&eh&&_startChild(et,{op:"browser",origin:"auto.browser.browser.metrics",description:eu||ei,startTimestamp:ea+msToSec(ep),endTimestamp:ea+msToSec(eh)})}function _addRequest(et,eo,ei){eo.responseEnd&&(_startChild(et,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:ei+msToSec(eo.requestStart),endTimestamp:ei+msToSec(eo.responseEnd)}),_startChild(et,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:ei+msToSec(eo.responseStart),endTimestamp:ei+msToSec(eo.responseEnd)}))}function _addResourceSpans(et,eo,ei,ea,eu,ed){if("xmlhttprequest"===eo.initiatorType||"fetch"===eo.initiatorType)return;let eh=url_parseUrl(ei),ep={};setResourceEntrySizeData(ep,eo,"transferSize","http.response_transfer_size"),setResourceEntrySizeData(ep,eo,"encodedBodySize","http.response_content_length"),setResourceEntrySizeData(ep,eo,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in eo&&(ep["resource.render_blocking_status"]=eo.renderBlockingStatus),eh.protocol&&(ep["url.scheme"]=eh.protocol.split(":").pop()),eh.host&&(ep["server.address"]=eh.host),ep["url.same_origin"]=ei.includes(rj.location.origin);let ef=ed+ea,em=ef+eu;_startChild(et,{description:ei.replace(rj.location.origin,""),endTimestamp:em,op:eo.initiatorType?`resource.${eo.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:ef,data:ep})}function _trackNavigator(et){let eo=rj.navigator;if(!eo)return;let ei=eo.connection;ei&&(ei.effectiveType&&et.setTag("effectiveConnectionType",ei.effectiveType),ei.type&&et.setTag("connectionType",ei.type),isMeasurementValue(ei.rtt)&&(r0["connection.rtt"]={value:ei.rtt,unit:"millisecond"})),isMeasurementValue(eo.deviceMemory)&&et.setTag("deviceMemory",`${eo.deviceMemory} GB`),isMeasurementValue(eo.hardwareConcurrency)&&et.setTag("hardwareConcurrency",String(eo.hardwareConcurrency))}function _tagMetricInfo(et){e_&&(rF&&eJ.kg.log("[Measurements] Adding LCP Data"),e_.element&&et.setTag("lcp.element",(0,tw.Rt)(e_.element)),e_.id&&et.setTag("lcp.id",e_.id),e_.url&&et.setTag("lcp.url",e_.url.trim().slice(0,200)),et.setTag("lcp.size",e_.size)),ew&&ew.sources&&(rF&&eJ.kg.log("[Measurements] Adding CLS Data"),ew.sources.forEach((eo,ei)=>et.setTag(`cls.source.${ei+1}`,(0,tw.Rt)(eo.node))))}function setResourceEntrySizeData(et,eo,ei,ea){let eu=eo[ei];null!=eu&&eu<rQ&&(et[ea]=eu)}function _addTtfbToMeasurements(et,eo,ei,ea){"number"==typeof eo&&ea&&(rF&&eJ.kg.log("[Measurements] Adding TTFB"),et.ttfb={value:1e3*Math.max(eo-ea,0),unit:"millisecond"},"number"==typeof ei&&ei<=eo&&(et["ttfb.requestTime"]={value:(eo-ei)*1e3,unit:"millisecond"}))}function getSampleRate(et,eo){let ei;return!!hasTracingEnabled(eo)&&(isValidSampleRate(ei=void 0!==et&&"function"==typeof eo.tracesSampler?eo.tracesSampler({transactionContext:et,name:et.name,parentSampled:et.parentSampled,attributes:{...et.data,...et.attributes},location:rj.location}):void 0!==et&&void 0!==et.sampled?et.sampled:void 0!==eo.tracesSampleRate?eo.tracesSampleRate:1)?ei:(rF&&eJ.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),!1))}var r1=ei(99181);function instrumentFetchRequest(et,eo,ei,ea,eu="auto.http.browser"){if(!hasTracingEnabled()||!et.fetchData)return;let ed=eo(et.fetchData.url);if(et.endTimestamp&&ed){let eo=et.fetchData.__span;if(!eo)return;let ei=ea[eo];if(ei){if(et.response){setHttpStatus(ei,et.response.status);let eo=et.response&&et.response.headers&&et.response.headers.get("content-length");if(eo){let et=parseInt(eo);et>0&&ei.setAttribute("http.response_content_length",et)}}else et.error&&ei.setStatus("internal_error");ei.end(),delete ea[eo]}return}let eh=(0,ez.nZ)(),ep=(0,ez.s3)(),{method:ef,url:em}=et.fetchData,eg=ed?startInactiveSpan({name:`${ef} ${em}`,onlyIfParent:!0,attributes:{url:em,type:"fetch","http.method":ef,[rk]:eu},op:"http.client"}):void 0;if(eg&&(et.fetchData.__span=eg.spanContext().spanId,ea[eg.spanContext().spanId]=eg),ei(et.fetchData.url)&&ep){let eo=et.args[0];et.args[1]=et.args[1]||{};let ei=et.args[1];ei.headers=addTracingHeadersToFetchRequest(eo,ep,eh,ei,eg)}return eg}function addTracingHeadersToFetchRequest(et,eo,ei,ea,eu){let ed=eu||ei.getSpan(),eh=(0,eZ.aF)(),{traceId:ep,spanId:ef,sampled:em,dsc:eg}={...eh.getPropagationContext(),...ei.getPropagationContext()},ey=ed?(0,rR.Hb)(ed):(0,rB.$p)(ep,ef,em),eC=(0,r1.IQ)(eg||(ed?(0,rr.j)(ed):(0,rr._)(ep,eo,ei))),eS=ea.headers||("undefined"!=typeof Request&&(0,ti.V9)(et,Request)?et.headers:void 0);if(!eS)return{"sentry-trace":ey,baggage:eC};if("undefined"!=typeof Headers&&(0,ti.V9)(eS,Headers)){let et=new Headers(eS);return et.append("sentry-trace",ey),eC&&et.append(r1.bU,eC),et}if(Array.isArray(eS)){let et=[...eS,["sentry-trace",ey]];return eC&&et.push([r1.bU,eC]),et}{let et="baggage"in eS?eS.baggage:void 0,eo=[];return Array.isArray(et)?eo.push(...et):et&&eo.push(et),eC&&eo.push(eC),{...eS,"sentry-trace":ey,baggage:eo.length>0?eo.join(","):void 0}}}let r2=["localhost",/^\/(?!\/)/],r4={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:r2,tracePropagationTargets:r2};function instrumentOutgoingRequests(et){let{traceFetch:eo,traceXHR:ei,tracePropagationTargets:ea,tracingOrigins:eu,shouldCreateSpanForRequest:ed,enableHTTPTimings:eh}={traceFetch:r4.traceFetch,traceXHR:r4.traceXHR,...et},ep="function"==typeof ed?ed:et=>!0,shouldAttachHeadersWithTargets=et=>shouldAttachHeaders(et,ea||eu),ef={};eo&&addFetchInstrumentationHandler(et=>{let eo=instrumentFetchRequest(et,ep,shouldAttachHeadersWithTargets,ef);eh&&eo&&addHTTPTimings(eo)}),ei&&addXhrInstrumentationHandler(et=>{let eo=xhrCallback(et,ep,shouldAttachHeadersWithTargets,ef);eh&&eo&&addHTTPTimings(eo)})}function isPerformanceResourceTiming(et){return"resource"===et.entryType&&"initiatorType"in et&&"string"==typeof et.nextHopProtocol&&("fetch"===et.initiatorType||"xmlhttprequest"===et.initiatorType)}function addHTTPTimings(et){let{url:eo}=(0,rR.XU)(et).data||{};if(!eo||"string"!=typeof eo)return;let ei=addPerformanceInstrumentationHandler("resource",({entries:ea})=>{ea.forEach(ea=>{if(isPerformanceResourceTiming(ea)&&ea.name.endsWith(eo)){let eo=resourceTimingEntryToSpanData(ea);eo.forEach(eo=>et.setAttribute(...eo)),setTimeout(ei)}})})}function extractNetworkProtocol(et){let eo="unknown",ei="unknown",ea="";for(let eu of et){if("/"===eu){[eo,ei]=et.split("/");break}if(!isNaN(Number(eu))){eo="h"===ea?"http":ea,ei=et.split(ea)[1];break}ea+=eu}return ea===et&&(eo=ea),{name:eo,version:ei}}function getAbsoluteTime(et=0){return((ra.Z1||performance.timeOrigin)+et)/1e3}function resourceTimingEntryToSpanData(et){let{name:eo,version:ei}=extractNetworkProtocol(et.nextHopProtocol),ea=[];return(ea.push(["network.protocol.version",ei],["network.protocol.name",eo]),ra.Z1)?[...ea,["http.request.redirect_start",getAbsoluteTime(et.redirectStart)],["http.request.fetch_start",getAbsoluteTime(et.fetchStart)],["http.request.domain_lookup_start",getAbsoluteTime(et.domainLookupStart)],["http.request.domain_lookup_end",getAbsoluteTime(et.domainLookupEnd)],["http.request.connect_start",getAbsoluteTime(et.connectStart)],["http.request.secure_connection_start",getAbsoluteTime(et.secureConnectionStart)],["http.request.connection_end",getAbsoluteTime(et.connectEnd)],["http.request.request_start",getAbsoluteTime(et.requestStart)],["http.request.response_start",getAbsoluteTime(et.responseStart)],["http.request.response_end",getAbsoluteTime(et.responseEnd)]]:ea}function shouldAttachHeaders(et,eo){return(0,e5.U0)(et,eo||r2)}function xhrCallback(et,eo,ei,ea){let eu=et.xhr,ed=eu&&eu[tq];if(!hasTracingEnabled()||!eu||eu.__sentry_own_request__||!ed)return;let eh=eo(ed.url);if(et.endTimestamp&&eh){let et=eu.__sentry_xhr_span_id__;if(!et)return;let eo=ea[et];eo&&void 0!==ed.status_code&&(setHttpStatus(eo,ed.status_code),eo.end(),delete ea[et]);return}let ep=(0,ez.nZ)(),ef=(0,eZ.aF)(),em=eh?startInactiveSpan({name:`${ed.method} ${ed.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":ed.method,url:ed.url,[rk]:"auto.http.browser"},op:"http.client"}):void 0;em&&(eu.__sentry_xhr_span_id__=em.spanContext().spanId,ea[eu.__sentry_xhr_span_id__]=em);let eg=(0,ez.s3)();if(eu.setRequestHeader&&ei(ed.url)&&eg){let{traceId:et,spanId:eo,sampled:ei,dsc:ea}={...ef.getPropagationContext(),...ep.getPropagationContext()},ed=em?(0,rR.Hb)(em):(0,rB.$p)(et,eo,ei),eh=(0,r1.IQ)(ea||(em?(0,rr.j)(em):(0,rr._)(et,eg,ep)));setHeaderOnXhr(eu,ed,eh)}return em}function setHeaderOnXhr(et,eo,ei){try{et.setRequestHeader("sentry-trace",eo),ei&&et.setRequestHeader(r1.bU,ei)}catch(et){}}function instrumentRoutingWithDefaults(et,eo=!0,ei=!0){let ea;if(!rj||!rj.location){rF&&eJ.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let eu=rj.location.href;eo&&(ea=et({name:rj.location.pathname,startTimestamp:ra.Z1?ra.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),ei&&addHistoryInstrumentationHandler(({to:eo,from:ei})=>{if(void 0===ei&&eu&&-1!==eu.indexOf(eo)){eu=void 0;return}ei!==eo&&(eu=void 0,ea&&(rF&&eJ.kg.log(`[Tracing] Finishing current transaction with op: ${ea.op}`),ea.end()),ea=et({name:rj.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}let r3="BrowserTracing",r6={...rU,markBackgroundTransactions:!0,routingInstrumentation:instrumentRoutingWithDefaults,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,_experiments:{},...r4},r5=10;let browsertracing_BrowserTracing=class browsertracing_BrowserTracing{constructor(et){this.name=r3,this._hasSetTracePropagationTargets=!1,addTracingExtensions(),rF&&(this._hasSetTracePropagationTargets=!!(et&&(et.tracePropagationTargets||et.tracingOrigins))),this.options={...r6,...et},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),et&&!et.tracePropagationTargets&&et.tracingOrigins&&(this.options.tracePropagationTargets=et.tracingOrigins),this._collectWebVitals=startTrackingWebVitals(),this._interactionIdtoRouteNameMapping={},this.options.enableInp&&startTrackingINP(this._interactionIdtoRouteNameMapping),this.options.enableLongTask&&startTrackingLongTasks(),this.options._experiments.enableInteractions&&startTrackingInteractions(),this._latestRoute={name:void 0,context:void 0}}setupOnce(et,eo){this._getCurrentHub=eo;let ei=eo(),ea=ei.getClient(),eu=ea&&ea.getOptions(),{routingInstrumentation:ed,startTransactionOnLocationChange:eh,startTransactionOnPageLoad:ep,markBackgroundTransactions:ef,traceFetch:em,traceXHR:eg,shouldCreateSpanForRequest:ey,enableHTTPTimings:eC,_experiments:eS}=this.options,e_=eu&&eu.tracePropagationTargets,ew=e_||this.options.tracePropagationTargets;rF&&this._hasSetTracePropagationTargets&&e_&&eJ.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),ed(et=>{let ei=this._createRouteTransaction(et);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(ei,et,eo),ei},ep,eh),ef&&registerBackgroundTabDetection(),eS.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),instrumentOutgoingRequests({traceFetch:em,traceXHR:eg,tracePropagationTargets:ew,shouldCreateSpanForRequest:ey,enableHTTPTimings:eC})}_createRouteTransaction(et){let eo;if(!this._getCurrentHub){rF&&eJ.kg.warn(`[Tracing] Did not create ${et.op} transaction because _getCurrentHub is invalid.`);return}let ei=this._getCurrentHub(),{beforeNavigate:ea,idleTimeout:eu,finalTimeout:ed,heartbeatInterval:eh}=this.options,ep="pageload"===et.op;if(ep){let ei=ep?getMetaContent("sentry-trace"):"",ea=ep?getMetaContent("baggage"):void 0,{traceId:eu,dsc:ed,parentSpanId:eh,sampled:ef}=(0,rB.pT)(ei,ea);eo={traceId:eu,parentSpanId:eh,parentSampled:ef,...et,metadata:{...et.metadata,dynamicSamplingContext:ed},trimEnd:!0}}else eo={trimEnd:!0,...et};let ef="function"==typeof ea?ea(eo):eo,em=void 0===ef?{...eo,sampled:!1}:ef;em.metadata=em.name!==eo.name?{...em.metadata,source:"custom"}:em.metadata,this._latestRoute.name=em.name,this._latestRoute.context=em,!1===em.sampled&&rF&&eJ.kg.log(`[Tracing] Will not send ${em.op} transaction because of beforeNavigate.`),rF&&eJ.kg.log(`[Tracing] Starting ${em.op} transaction on scope`);let{location:eg}=rj,ey=startIdleTransaction(ei,em,eu,ed,!0,{location:eg},eh,ep);return ep&&(rj.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(rj.document.readyState)&&ey.sendAutoFinishSignal()}),["interactive","complete"].includes(rj.document.readyState)&&ey.sendAutoFinishSignal()),ey.registerBeforeFinishCallback(et=>{this._collectWebVitals(),addPerformanceEntries(et)}),ey}_registerInteractionListener(){let et;let registerInteractionTransaction=()=>{let{idleTimeout:eo,finalTimeout:ei,heartbeatInterval:ea}=this.options,eu="ui.action.click",ed=getActiveTransaction();if(ed&&ed.op&&["navigation","pageload"].includes(ed.op)){rF&&eJ.kg.warn(`[Tracing] Did not create ${eu} transaction because a pageload or navigation transaction is in progress.`);return}if(et&&(et.setFinishReason("interactionInterrupted"),et.end(),et=void 0),!this._getCurrentHub){rF&&eJ.kg.warn(`[Tracing] Did not create ${eu} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){rF&&eJ.kg.warn(`[Tracing] Did not create ${eu} transaction because _latestRouteName is missing.`);return}let eh=this._getCurrentHub(),{location:ep}=rj,ef={name:this._latestRoute.name,op:eu,trimEnd:!0,data:{[rT]:this._latestRoute.context?getSource(this._latestRoute.context):"url"}};et=startIdleTransaction(eh,ef,eo,ei,!0,{location:ep},ea)};["click"].forEach(et=>{addEventListener(et,registerInteractionTransaction,{once:!1,capture:!0})})}_registerInpInteractionListener(){addPerformanceInstrumentationHandler("event",({entries:et})=>{let eo=(0,ez.s3)(),ei=void 0!==eo&&void 0!==eo.getIntegrationByName?eo.getIntegrationByName("Replay"):void 0,ea=void 0!==ei?ei.getReplayId():void 0,eu=getActiveTransaction(),ed=(0,ez.nZ)(),eh=void 0!==ed?ed.getUser():void 0;for(let eo of et)if(isPerformanceEventTiming(eo)){let et=eo.duration,ei=Object.keys(this._interactionIdtoRouteNameMapping),ed=ei.length>0?ei.reduce((et,eo)=>this._interactionIdtoRouteNameMapping[et].duration<this._interactionIdtoRouteNameMapping[eo].duration?et:eo):void 0;if(void 0===ed||et>this._interactionIdtoRouteNameMapping[ed].duration){let ei=eo.interactionId,ep=this._latestRoute.name,ef=this._latestRoute.context;ei&&ep&&ef&&(ed&&Object.keys(this._interactionIdtoRouteNameMapping).length>=r5&&delete this._interactionIdtoRouteNameMapping[ed],this._interactionIdtoRouteNameMapping[ei]={routeName:ep,duration:et,parentContext:ef,user:eh,activeTransaction:eu,replayId:ea})}}})}};function getMetaContent(et){let eo=(0,tw.qT)(`meta[name=${et}]`);return eo?eo.getAttribute("content"):void 0}function getSource(et){let eo=et.attributes&&et.attributes[rT],ei=et.data&&et.data[rT],ea=et.metadata&&et.metadata.source;return eo||ei||ea}function isPerformanceEventTiming(et){return"duration"in et}let r8="BrowserTracing",r7={...rU,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,_experiments:{},...r4},browserTracingIntegration=(et={})=>{let eo=!!rF&&!!(et.tracePropagationTargets||et.tracingOrigins);addTracingExtensions(),!et.tracePropagationTargets&&et.tracingOrigins&&(et.tracePropagationTargets=et.tracingOrigins);let ei={...r7,...et},ea=startTrackingWebVitals(),eu={};ei.enableInp&&startTrackingINP(eu),ei.enableLongTask&&startTrackingLongTasks(),ei._experiments.enableInteractions&&startTrackingInteractions();let ed={name:void 0,context:void 0};function _createRouteTransaction(et){let eo;let eu=(0,eZ.Gd)(),{beforeStartSpan:eh,idleTimeout:ep,finalTimeout:ef,heartbeatInterval:em}=ei,eg="pageload"===et.op;if(eg){let ei=eg?browserTracingIntegration_getMetaContent("sentry-trace"):"",ea=eg?browserTracingIntegration_getMetaContent("baggage"):void 0,{traceId:eu,dsc:ed,parentSpanId:eh,sampled:ep}=(0,rB.pT)(ei,ea);eo={traceId:eu,parentSpanId:eh,parentSampled:ep,...et,metadata:{...et.metadata,dynamicSamplingContext:ed},trimEnd:!0}}else eo={trimEnd:!0,...et};let ey=eh?eh(eo):eo;ey.metadata=ey.name!==eo.name?{...ey.metadata,source:"custom"}:ey.metadata,ed.name=ey.name,ed.context=ey,!1===ey.sampled&&rF&&eJ.kg.log(`[Tracing] Will not send ${ey.op} transaction because of beforeNavigate.`),rF&&eJ.kg.log(`[Tracing] Starting ${ey.op} transaction on scope`);let{location:eC}=rj,eS=startIdleTransaction(eu,ey,ep,ef,!0,{location:eC},em,eg);return eg&&rj.document&&(rj.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(rj.document.readyState)&&eS.sendAutoFinishSignal()}),["interactive","complete"].includes(rj.document.readyState)&&eS.sendAutoFinishSignal()),eS.registerBeforeFinishCallback(et=>{ea(),addPerformanceEntries(et)}),eS}return{name:r8,setupOnce:()=>{},afterAllSetup(et){let ea;let eh=et.getOptions(),{markBackgroundSpan:ep,traceFetch:ef,traceXHR:em,shouldCreateSpanForRequest:eg,enableHTTPTimings:ey,_experiments:eC}=ei,eS=eh&&eh.tracePropagationTargets,e_=eS||ei.tracePropagationTargets;rF&&eo&&eS&&eJ.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let ew=rj.location&&rj.location.href;if(et.on&&(et.on("startNavigationSpan",et=>{ea&&(rF&&eJ.kg.log(`[Tracing] Finishing current transaction with op: ${(0,rR.XU)(ea).op}`),ea.end()),ea=_createRouteTransaction({op:"navigation",...et})}),et.on("startPageLoadSpan",et=>{ea&&(rF&&eJ.kg.log(`[Tracing] Finishing current transaction with op: ${(0,rR.XU)(ea).op}`),ea.end()),ea=_createRouteTransaction({op:"pageload",...et})})),ei.instrumentPageLoad&&et.emit&&rj.location){let eo={name:rj.location.pathname,startTimestamp:ra.Z1?ra.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[rT]:"url"}};startBrowserTracingPageLoadSpan(et,eo)}ei.instrumentNavigation&&et.emit&&rj.location&&addHistoryInstrumentationHandler(({to:eo,from:ei})=>{if(void 0===ei&&ew&&-1!==ew.indexOf(eo)){ew=void 0;return}if(ei!==eo){ew=void 0;let eo={name:rj.location.pathname,origin:"auto.navigation.browser",attributes:{[rT]:"url"}};startBrowserTracingNavigationSpan(et,eo)}}),ep&&registerBackgroundTabDetection(),eC.enableInteractions&&registerInteractionListener(ei,ed),ei.enableInp&&registerInpInteractionListener(eu,ed),instrumentOutgoingRequests({traceFetch:ef,traceXHR:em,tracePropagationTargets:e_,shouldCreateSpanForRequest:eg,enableHTTPTimings:ey})},options:ei}};function startBrowserTracingPageLoadSpan(et,eo){if(!et.emit)return;et.emit("startPageLoadSpan",eo);let ei=trace_getActiveSpan(),ea=ei&&(0,rR.XU)(ei).op;return"pageload"===ea?ei:void 0}function startBrowserTracingNavigationSpan(et,eo){if(!et.emit)return;et.emit("startNavigationSpan",eo);let ei=trace_getActiveSpan(),ea=ei&&(0,rR.XU)(ei).op;return"navigation"===ea?ei:void 0}function browserTracingIntegration_getMetaContent(et){let eo=(0,tw.qT)(`meta[name=${et}]`);return eo?eo.getAttribute("content"):void 0}function registerInteractionListener(et,eo){let ei;let registerInteractionTransaction=()=>{let{idleTimeout:ea,finalTimeout:eu,heartbeatInterval:ed}=et,eh="ui.action.click",ep=getActiveTransaction();if(ep&&ep.op&&["navigation","pageload"].includes(ep.op)){rF&&eJ.kg.warn(`[Tracing] Did not create ${eh} transaction because a pageload or navigation transaction is in progress.`);return}if(ei&&(ei.setFinishReason("interactionInterrupted"),ei.end(),ei=void 0),!eo.name){rF&&eJ.kg.warn(`[Tracing] Did not create ${eh} transaction because _latestRouteName is missing.`);return}let{location:ef}=rj,em={name:eo.name,op:eh,trimEnd:!0,data:{[rT]:eo.context?browserTracingIntegration_getSource(eo.context):"url"}};ei=startIdleTransaction((0,eZ.Gd)(),em,ea,eu,!0,{location:ef},ed)};["click"].forEach(et=>{addEventListener(et,registerInteractionTransaction,{once:!1,capture:!0})})}function browserTracingIntegration_isPerformanceEventTiming(et){return"duration"in et}let r9=10;function registerInpInteractionListener(et,eo){addPerformanceInstrumentationHandler("event",({entries:ei})=>{let ea=(0,ez.s3)(),eu=void 0!==ea&&void 0!==ea.getIntegrationByName?ea.getIntegrationByName("Replay"):void 0,ed=void 0!==eu?eu.getReplayId():void 0,eh=getActiveTransaction(),ep=(0,ez.nZ)(),ef=void 0!==ep?ep.getUser():void 0;for(let ea of ei)if(browserTracingIntegration_isPerformanceEventTiming(ea)){let ei=ea.duration,eu=Object.keys(et),ep=eu.length>0?eu.reduce((eo,ei)=>et[eo].duration<et[ei].duration?eo:ei):void 0;if(void 0===ep||ei>et[ep].duration){let eu=ea.interactionId,em=eo.name,eg=eo.context;eu&&em&&eg&&(ep&&Object.keys(et).length>=r9&&delete et[ep],et[eu]={routeName:em,duration:ei,parentContext:eg,user:ef,activeTransaction:eh,replayId:ed})}}})}function browserTracingIntegration_getSource(et){let eo=et.attributes&&et.attributes[rT],ei=et.data&&et.data[rT],ea=et.metadata&&et.metadata.source;return eo||ei||ea}let nr={"routing.instrumentation":"next-app-router"};function appRouterInstrumentation(et,eo=!0,ei=!0,ea,eu){let ed;let eh=tm.location.pathname;if(eo){let eo={name:eh,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:nr,startTimestamp:ra.Z1?ra.Z1/1e3:void 0,metadata:{source:"url"}};ed=et(eo),ea(eo)}ei&&addFetchInstrumentationHandler(eo=>{if(void 0!==eo.endTimestamp||"GET"!==eo.fetchData.method)return;let ei=parseNavigatingRscFetchArgs(eo.args);if(null===ei)return;let ea=ei.targetPathname,ep={...nr,from:eh};eh=ea,ed&&ed.end();let ef={name:ea,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:ep,metadata:{source:"url"}};et(ef),eu(ef)})}function parseNavigatingRscFetchArgs(et){if(!et[0]||"object"!=typeof et[0]||void 0===et[0].searchParams||!et[1]||"object"!=typeof et[1]||!("headers"in et[1]))return null;try{let eo=et[0],ei=et[1].headers;if("1"!==ei.RSC||"1"===ei["Next-Router-Prefetch"])return null;return{targetPathname:eo.pathname}}catch(et){return null}}var nn=ei(11163),no=ei.n(nn),ni=ei(48808);let nc=tm;function extractNextDataTagInformation(){let et;let eo=nc.document.getElementById("__NEXT_DATA__");if(eo&&eo.innerHTML)try{et=JSON.parse(eo.innerHTML)}catch(et){ni.X&&eJ.kg.warn("Could not extract __NEXT_DATA__")}if(!et)return{};let ei={},{page:ea,query:eu,props:ed}=et;return ei.route=ea,ei.params=eu,ed&&ed.pageProps&&(ei.sentryTrace=ed.pageProps._sentryTraceData,ei.baggage=ed.pageProps._sentryBaggage),ei}let nu={"routing.instrumentation":"next-pages-router"},nl=(0,ez.s3)();function pagesRouterInstrumentation(et,eo=!0,ei=!0,ea,eu){let{route:ed,params:eh,sentryTrace:ep,baggage:ef}=extractNextDataTagInformation(),{traceparentData:em,dynamicSamplingContext:eg,propagationContext:ey}=(0,rB.KA)(ep,ef);if((0,ez.nZ)().setPropagationContext(ey),eM=ed||nc.location.pathname,eo){let eo=ed?"route":"url",ei={name:eM,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:nu,startTimestamp:ra.Z1?ra.Z1/1e3:void 0,...eh&&nl&&nl.getOptions().sendDefaultPii&&{data:eh},...em,metadata:{source:eo,dynamicSamplingContext:em&&!eg?{}:eg}};eO=et(ei),ea(ei)}ei&&no().events.on("routeChangeStart",eo=>{let ei,ea;let ed=stripUrlQueryAndFragment(eo),eh=getNextRouteFromPathname(ed);eh?(ei=eh,ea="route"):(ei=ed,ea="url");let ep={...nu,from:eM};eM=ei,eO&&eO.end();let ef={name:ei,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:ep,metadata:{source:ea}},em=et(ef);if(eu(ef),em){let et=em.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),finishRouteChangeSpan=()=>{et.end(),no().events.off("routeChangeComplete",finishRouteChangeSpan)};no().events.on("routeChangeComplete",finishRouteChangeSpan)}})}function getNextRouteFromPathname(et){let eo=(nc.__BUILD_MANIFEST||{}).sortedPages;if(eo)return eo.find(eo=>{let ei=convertNextRouteToRegExp(eo);return et.match(ei)})}function convertNextRouteToRegExp(et){let eo=et.split("/"),ei="";eo[eo.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(eo.pop(),ei="(?:/(.+?))?");let ea=eo.map(et=>et.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${ea}${ei}(?:/)?$`)}function nextRouterInstrumentation(et,eo=!0,ei=!0,ea,eu){let ed=!tm.document.getElementById("__NEXT_DATA__");ed?appRouterInstrumentation(et,eo,ei,ea||(()=>void 0),eu||(()=>void 0)):pagesRouterInstrumentation(et,eo,ei,ea||(()=>void 0),eu||(()=>void 0))}let BrowserTracing=class BrowserTracing extends browsertracing_BrowserTracing{constructor(et){super({tracingOrigins:[...r4.tracingOrigins,/^(api\/)/],routingInstrumentation:nextRouterInstrumentation,...et})}};function browserTracingIntegration_browserTracingIntegration(et){let eo=browserTracingIntegration({tracingOrigins:[...r4.tracingOrigins,/^(api\/)/],...et,instrumentNavigation:!1,instrumentPageLoad:!1});return{...eo,afterAllSetup(ei){let startPageloadCallback=et=>{startBrowserTracingPageLoadSpan(ei,et)},startNavigationCallback=et=>{startBrowserTracingNavigationSpan(ei,et)};nextRouterInstrumentation(()=>void 0,!1,_optionalChain([et,"optionalAccess",et=>et.instrumentNavigation]),startPageloadCallback,startNavigationCallback),eo.afterAllSetup(ei),nextRouterInstrumentation(()=>void 0,_optionalChain([et,"optionalAccess",et=>et.instrumentPageLoad]),!1,startPageloadCallback,startNavigationCallback)}}}function normalizeArray(et,eo){let ei=0;for(let eo=et.length-1;eo>=0;eo--){let ea=et[eo];"."===ea?et.splice(eo,1):".."===ea?(et.splice(eo,1),ei++):ei&&(et.splice(eo,1),ei--)}if(eo)for(;ei--;ei)et.unshift("..");return et}let nd=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function splitPath(et){let eo=et.length>1024?`<truncated>${et.slice(-1024)}`:et,ei=nd.exec(eo);return ei?ei.slice(1):[]}function resolve(...et){let eo="",ei=!1;for(let ea=et.length-1;ea>=-1&&!ei;ea--){let eu=ea>=0?et[ea]:"/";eu&&(eo=`${eu}/${eo}`,ei="/"===eu.charAt(0))}return eo=normalizeArray(eo.split("/").filter(et=>!!et),!ei).join("/"),(ei?"/":"")+eo||"."}function trim(et){let eo=0;for(;eo<et.length&&""===et[eo];eo++);let ei=et.length-1;for(;ei>=0&&""===et[ei];ei--);return eo>ei?[]:et.slice(eo,ei-eo+1)}function relative(et,eo){et=resolve(et).slice(1),eo=resolve(eo).slice(1);let ei=trim(et.split("/")),ea=trim(eo.split("/")),eu=Math.min(ei.length,ea.length),ed=eu;for(let et=0;et<eu;et++)if(ei[et]!==ea[et]){ed=et;break}let eh=[];for(let et=ed;et<ei.length;et++)eh.push("..");return(eh=eh.concat(ea.slice(ed))).join("/")}function basename(et,eo){let ei=splitPath(et)[2];return eo&&ei.slice(-1*eo.length)===eo&&(ei=ei.slice(0,ei.length-eo.length)),ei}let nh="RewriteFrames",_rewriteFramesIntegration=(et={})=>{let eo=et.root,ei=et.prefix||"app:///",ea=et.iteratee||(et=>{if(!et.filename)return et;let ea=/^[a-zA-Z]:\\/.test(et.filename)||et.filename.includes("\\")&&!et.filename.includes("/"),eu=/^\//.test(et.filename);if(ea||eu){let eu=ea?et.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):et.filename,ed=eo?relative(eo,eu):basename(eu);et.filename=`${ei}${ed}`}return et});function _processExceptionsEvent(et){try{return{...et,exception:{...et.exception,values:et.exception.values.map(et=>({...et,...et.stacktrace&&{stacktrace:_processStacktrace(et.stacktrace)}}))}}}catch(eo){return et}}function _processStacktrace(et){return{...et,frames:et&&et.frames&&et.frames.map(et=>ea(et))}}return{name:nh,setupOnce(){},processEvent(et){let eo=et;return et.exception&&Array.isArray(et.exception.values)&&(eo=_processExceptionsEvent(eo)),eo}}},np=defineIntegration(_rewriteFramesIntegration);convertIntegrationFnToClass(nh,np);let nf=tf.GLOBAL_OBJ,customRewriteFramesIntegration=et=>{let eo=nf.__rewriteFramesAssetPrefixPath__||"";return np({iteratee:et=>{try{let{origin:ei}=new URL(et.filename);et.filename=_optionalChain([et,"access",et=>et.filename,"optionalAccess",et=>et.replace,"call",et=>et(ei,"app://"),"access",et=>et.replace,"call",et=>et(eo,"")])}catch(et){}return et.filename&&et.filename.startsWith("app:///_next")&&(et.filename=decodeURI(et.filename)),et.filename&&et.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(et.in_app=!1),et},...et})},nm=defineIntegration(customRewriteFramesIntegration),ng=tf.GLOBAL_OBJ;function applyTunnelRouteOption(et){let eo=ng.__sentryRewritesTunnelPath__;if(eo&&et.dsn){let ei=dsnFromString(et.dsn);if(!ei)return;let ea=ei.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(ea){let eu=ea[1],ed=ea[2],eh=`${eo}?o=${eu}&p=${ei.projectId}`;ed&&(eh+=`&r=${ed}`),et.tunnel=eh,ni.X&&eJ.kg.info(`Tunneling events to "${eh}"`)}else ni.X&&eJ.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}function client_init(et){let eo={environment:getVercelEnv(!0)||"production",defaultIntegrations:client_getDefaultIntegrations(et),...et};fixBrowserTracingIntegration(eo),applyTunnelRouteOption(eo),applySdkMetadata(eo,"nextjs",["nextjs","react"]),sdk_init(eo);let ei=(0,ez.nZ)();ei.setTag("runtime","browser");let filterTransactions=et=>"transaction"===et.type&&"/404"===et.transaction?null:et;filterTransactions.id="NextClient404Filter",ei.addEventProcessor(filterTransactions)}function fixBrowserTracingIntegration(et){let{integrations:eo}=et;eo&&(Array.isArray(eo)?et.integrations=maybeUpdateBrowserTracingIntegration(eo):et.integrations=et=>{let ei=eo(et);return maybeUpdateBrowserTracingIntegration(ei)})}function isNewBrowserTracingIntegration(et){return!!et.afterAllSetup&&!!et.options}function maybeUpdateBrowserTracingIntegration(et){let eo=et.find(et=>"BrowserTracing"===et.name);if(!eo)return et;if(isNewBrowserTracingIntegration(eo)){let{options:ei}=eo;et[et.indexOf(eo)]=new BrowserTracing(ei)}if(!(eo instanceof BrowserTracing)){let ei=eo.options;delete ei.routingInstrumentation,delete ei.tracingOrigins,et[et.indexOf(eo)]=new BrowserTracing(ei)}return et}function client_getDefaultIntegrations(et){let eo=[...getDefaultIntegrations(et),nm()];return("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&hasTracingEnabled(et)&&eo.push(browserTracingIntegration_browserTracingIntegration()),eo}function _nullishCoalesce(et,eo){return null!=et?et:eo()}function isSentryRequestUrl(et,eo){let ei=eo&&isHub(eo)?eo.getClient():eo,ea=ei&&ei.getDsn(),eu=ei&&ei.getOptions().tunnel;return checkDsn(et,ea)||checkTunnel(et,eu)}function checkTunnel(et,eo){return!!eo&&removeTrailingSlash(et)===removeTrailingSlash(eo)}function checkDsn(et,eo){return!!eo&&et.includes(eo.host)}function removeTrailingSlash(et){return"/"===et[et.length-1]?et.slice(0,-1):et}function isHub(et){return void 0!==et.getClient}({...t6});var ny=ei(61422);function isBrowser(){return"undefined"!=typeof window&&(!(0,ny.KV)()||isElectronNodeRenderer())}function isElectronNodeRenderer(){return void 0!==tf.GLOBAL_OBJ.process&&"renderer"===tf.GLOBAL_OBJ.process.type}let nv=tf.GLOBAL_OBJ,nC="sentryReplaySession",nS="replay_event",n_="Unable to send Replay",nw=3e5,nA=9e5,nI=5e3,nR=5500,nT=6e4,nE=5e3,nP=3,nk=15e4,nO=5e3,nx=3e3,nM=300,nD=2e7,nU=4999,nL=15e3,nN=36e5;function _nullishCoalesce$1(et,eo){return null!=et?et:eo()}function _optionalChain$5(et){let eo;let ei=et[0],ea=1;for(;ea<et.length;){let eu=et[ea],ed=et[ea+1];if(ea+=2,("optionalAccess"===eu||"optionalCall"===eu)&&null==ei)return;"access"===eu||"optionalAccess"===eu?(eo=ei,ei=ed(ei)):("call"===eu||"optionalCall"===eu)&&(ei=ed((...et)=>ei.call(eo,...et)),eo=void 0)}return ei}function isElement$1(et){return et.nodeType===et.ELEMENT_NODE}function isShadowRoot(et){let eo=_optionalChain$5([et,"optionalAccess",et=>et.host]);return _optionalChain$5([eo,"optionalAccess",et=>et.shadowRoot])===et}function isNativeShadowDom(et){return"[object ShadowRoot]"===Object.prototype.toString.call(et)}function fixBrowserCompatibilityIssuesInCSS(et){return et.includes(" background-clip: text;")&&!et.includes(" -webkit-background-clip: text;")&&(et=et.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),et}function escapeImportStatement(et){let{cssText:eo}=et;if(eo.split('"').length<3)return eo;let ei=["@import",`url(${JSON.stringify(et.href)})`];return""===et.layerName?ei.push("layer"):et.layerName&&ei.push(`layer(${et.layerName})`),et.supportsText&&ei.push(`supports(${et.supportsText})`),et.media.length&&ei.push(et.media.mediaText),ei.join(" ")+";"}function stringifyStylesheet(et){try{let eo=et.rules||et.cssRules;return eo?fixBrowserCompatibilityIssuesInCSS(Array.from(eo,stringifyRule).join("")):null}catch(et){return null}}function stringifyRule(et){let eo;if(isCSSImportRule(et))try{eo=stringifyStylesheet(et.styleSheet)||escapeImportStatement(et)}catch(et){}else if(isCSSStyleRule(et)&&et.selectorText.includes(":"))return fixSafariColons(et.cssText);return eo||et.cssText}function fixSafariColons(et){let eo=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return et.replace(eo,"$1\\$2")}function isCSSImportRule(et){return"styleSheet"in et}function isCSSStyleRule(et){return"selectorText"in et}!function(et){et[et.Document=0]="Document",et[et.DocumentType=1]="DocumentType",et[et.Element=2]="Element",et[et.Text=3]="Text",et[et.CDATA=4]="CDATA",et[et.Comment=5]="Comment"}(eF||(eF={}));let Mirror=class Mirror{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(et){if(!et)return -1;let eo=_optionalChain$5([this,"access",et=>et.getMeta,"call",eo=>eo(et),"optionalAccess",et=>et.id]);return _nullishCoalesce$1(eo,()=>-1)}getNode(et){return this.idNodeMap.get(et)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(et){return this.nodeMetaMap.get(et)||null}removeNodeFromMap(et){let eo=this.getId(et);this.idNodeMap.delete(eo),et.childNodes&&et.childNodes.forEach(et=>this.removeNodeFromMap(et))}has(et){return this.idNodeMap.has(et)}hasNode(et){return this.nodeMetaMap.has(et)}add(et,eo){let ei=eo.id;this.idNodeMap.set(ei,et),this.nodeMetaMap.set(et,eo)}replace(et,eo){let ei=this.getNode(et);if(ei){let et=this.nodeMetaMap.get(ei);et&&this.nodeMetaMap.set(eo,et)}this.idNodeMap.set(et,eo)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function createMirror(){return new Mirror}function shouldMaskInput({maskInputOptions:et,tagName:eo,type:ei}){return"OPTION"===eo&&(eo="SELECT"),!!(et[eo.toLowerCase()]||ei&&et[ei]||"password"===ei||"INPUT"===eo&&!ei&&et.text)}function maskInputValue({isMasked:et,element:eo,value:ei,maskInputFn:ea}){let eu=ei||"";return et?(ea&&(eu=ea(eu,eo)),"*".repeat(eu.length)):eu}function toLowerCase(et){return et.toLowerCase()}function toUpperCase(et){return et.toUpperCase()}let nq="__rrweb_original__";function is2DCanvasBlank(et){let eo=et.getContext("2d");if(!eo)return!0;let ei=50;for(let ea=0;ea<et.width;ea+=ei)for(let eu=0;eu<et.height;eu+=ei){let ed=eo.getImageData,eh=nq in ed?ed[nq]:ed,ep=new Uint32Array(eh.call(eo,ea,eu,Math.min(ei,et.width-ea),Math.min(ei,et.height-eu)).data.buffer);if(ep.some(et=>0!==et))return!1}return!0}function getInputType(et){let eo=et.type;return et.hasAttribute("data-rr-is-password")?"password":eo?toLowerCase(eo):null}function getInputValue(et,eo,ei){return"INPUT"===eo&&("radio"===ei||"checkbox"===ei)?et.getAttribute("value")||"":et.value}let nB=1,nF=RegExp("[^a-z0-9-_:]"),nj=-2;function genId(){return nB++}function getValidTagName(et){if(et instanceof HTMLFormElement)return"form";let eo=toLowerCase(et.tagName);return nF.test(eo)?"div":eo}function extractOrigin(et){let eo="";return(eo=et.indexOf("//")>-1?et.split("/").slice(0,3).join("/"):et.split("/")[0]).split("?")[0]}let nG=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,nH=/^(?:[a-z+]+:)?\/\//i,nK=/^www\..*/i,nz=/^(data:)([^,]*),(.*)/i;function absoluteToStylesheet(et,eo){return(et||"").replace(nG,(et,ei,ea,eu,ed,eh)=>{let ep=ea||ed||eh,ef=ei||eu||"";if(!ep)return et;if(nH.test(ep)||nK.test(ep)||nz.test(ep))return`url(${ef}${ep}${ef})`;if("/"===ep[0])return`url(${ef}${extractOrigin(eo)+ep}${ef})`;let em=eo.split("/"),eg=ep.split("/");for(let et of(em.pop(),eg))"."!==et&&(".."===et?em.pop():em.push(et));return`url(${ef}${em.join("/")}${ef})`})}let nW=/^[^ \t\n\r\u000c]+/,nV=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(et,eo){if(""===eo.trim())return eo;let ei=0;function collectCharacters(et){let ea;let eu=et.exec(eo.substring(ei));return eu?(ea=eu[0],ei+=ea.length,ea):""}let ea=[];for(;collectCharacters(nV),!(ei>=eo.length);){let eu=collectCharacters(nW);if(","===eu.slice(-1))eu=absoluteToDoc(et,eu.substring(0,eu.length-1)),ea.push(eu);else{let ed="";eu=absoluteToDoc(et,eu);let eh=!1;for(;;){let et=eo.charAt(ei);if(""===et){ea.push((eu+ed).trim());break}if(eh)")"===et&&(eh=!1);else{if(","===et){ei+=1,ea.push((eu+ed).trim());break}"("===et&&(eh=!0)}ed+=et,ei+=1}}}return ea.join(", ")}function absoluteToDoc(et,eo){if(!eo||""===eo.trim())return eo;let ei=et.createElement("a");return ei.href=eo,ei.href}function isSVGElement(et){return!!("svg"===et.tagName||et.ownerSVGElement)}function getHref(){let et=document.createElement("a");return et.href="",et.href}function transformAttribute(et,eo,ei,ea,eu,ed){return ea?"src"!==ei&&("href"!==ei||"use"===eo&&"#"===ea[0])&&("xlink:href"!==ei||"#"===ea[0])&&("background"!==ei||"table"!==eo&&"td"!==eo&&"th"!==eo)?"srcset"===ei?getAbsoluteSrcsetString(et,ea):"style"===ei?absoluteToStylesheet(ea,getHref()):"object"===eo&&"data"===ei?absoluteToDoc(et,ea):"function"==typeof ed?ed(ei,ea,eu):ea:absoluteToDoc(et,ea):ea}function ignoreAttribute(et,eo,ei){return("video"===et||"audio"===et)&&"autoplay"===eo}function _isBlockedElement(et,eo,ei,ea){try{if(ea&&et.matches(ea))return!1;if("string"==typeof eo){if(et.classList.contains(eo))return!0}else for(let ei=et.classList.length;ei--;){let ea=et.classList[ei];if(eo.test(ea))return!0}if(ei)return et.matches(ei)}catch(et){}return!1}function elementClassMatchesRegex(et,eo){for(let ei=et.classList.length;ei--;){let ea=et.classList[ei];if(eo.test(ea))return!0}return!1}function distanceToMatch(et,eo,ei=1/0,ea=0){return!et||et.nodeType!==et.ELEMENT_NODE||ea>ei?-1:eo(et)?ea:distanceToMatch(et.parentNode,eo,ei,ea+1)}function createMatchPredicate(et,eo){return ei=>{let ea=ei;if(null===ea)return!1;try{if(et){if("string"==typeof et){if(ea.matches(`.${et}`))return!0}else if(elementClassMatchesRegex(ea,et))return!0}if(eo&&ea.matches(eo))return!0;return!1}catch(et){return!1}}}function needMaskingText(et,eo,ei,ea,eu,ed){try{let eh=et.nodeType===et.ELEMENT_NODE?et:et.parentElement;if(null===eh)return!1;if("INPUT"===eh.tagName){let et=eh.getAttribute("autocomplete"),eo=["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"];if(eo.includes(et))return!0}let ep=-1,ef=-1;if(ed){if((ef=distanceToMatch(eh,createMatchPredicate(ea,eu)))<0)return!0;ep=distanceToMatch(eh,createMatchPredicate(eo,ei),ef>=0?ef:1/0)}else{if((ep=distanceToMatch(eh,createMatchPredicate(eo,ei)))<0)return!1;ef=distanceToMatch(eh,createMatchPredicate(ea,eu),ep>=0?ep:1/0)}return ep>=0?!(ef>=0)||ep<=ef:!(ef>=0)&&!!ed}catch(et){}return!!ed}function onceIframeLoaded(et,eo,ei){let ea;let eu=et.contentWindow;if(!eu)return;let ed=!1;try{ea=eu.document.readyState}catch(et){return}if("complete"!==ea){let ea=setTimeout(()=>{ed||(eo(),ed=!0)},ei);et.addEventListener("load",()=>{clearTimeout(ea),ed=!0,eo()});return}let eh="about:blank";if(eu.location.href!==eh||et.src===eh||""===et.src)return setTimeout(eo,0),et.addEventListener("load",eo);et.addEventListener("load",eo)}function onceStylesheetLoaded(et,eo,ei){let ea,eu=!1;try{ea=et.sheet}catch(et){return}if(ea)return;let ed=setTimeout(()=>{eu||(eo(),eu=!0)},ei);et.addEventListener("load",()=>{clearTimeout(ed),eu=!0,eo()})}function serializeNode(et,eo){let{doc:ei,mirror:ea,blockClass:eu,blockSelector:ed,unblockSelector:eh,maskAllText:ep,maskAttributeFn:ef,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC,inlineStylesheet:eS,maskInputOptions:e_={},maskTextFn:ew,maskInputFn:eA,dataURLOptions:eI={},inlineImages:eR,recordCanvas:eT,keepIframeSrcFn:eE,newlyAddedElement:eP=!1}=eo,ek=getRootId(ei,ea);switch(et.nodeType){case et.DOCUMENT_NODE:if("CSS1Compat"!==et.compatMode)return{type:eF.Document,childNodes:[],compatMode:et.compatMode};return{type:eF.Document,childNodes:[]};case et.DOCUMENT_TYPE_NODE:return{type:eF.DocumentType,name:et.name,publicId:et.publicId,systemId:et.systemId,rootId:ek};case et.ELEMENT_NODE:return serializeElementNode(et,{doc:ei,blockClass:eu,blockSelector:ed,unblockSelector:eh,inlineStylesheet:eS,maskAttributeFn:ef,maskInputOptions:e_,maskInputFn:eA,dataURLOptions:eI,inlineImages:eR,recordCanvas:eT,keepIframeSrcFn:eE,newlyAddedElement:eP,rootId:ek,maskAllText:ep,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC});case et.TEXT_NODE:return serializeTextNode(et,{maskAllText:ep,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC,maskTextFn:ew,maskInputOptions:e_,maskInputFn:eA,rootId:ek});case et.CDATA_SECTION_NODE:return{type:eF.CDATA,textContent:"",rootId:ek};case et.COMMENT_NODE:return{type:eF.Comment,textContent:et.textContent||"",rootId:ek};default:return!1}}function getRootId(et,eo){if(!eo.hasNode(et))return;let ei=eo.getId(et);return 1===ei?void 0:ei}function serializeTextNode(et,eo){let{maskAllText:ei,maskTextClass:ea,unmaskTextClass:eu,maskTextSelector:ed,unmaskTextSelector:eh,maskTextFn:ep,maskInputOptions:ef,maskInputFn:em,rootId:eg}=eo,ey=et.parentNode&&et.parentNode.tagName,eC=et.textContent,eS="STYLE"===ey||void 0,e_="SCRIPT"===ey||void 0,ew="TEXTAREA"===ey||void 0;if(eS&&eC){try{et.nextSibling||et.previousSibling||_optionalChain$5([et,"access",et=>et.parentNode,"access",et=>et.sheet,"optionalAccess",et=>et.cssRules])&&(eC=stringifyStylesheet(et.parentNode.sheet))}catch(eo){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${eo}`,et)}eC=absoluteToStylesheet(eC,getHref())}e_&&(eC="SCRIPT_PLACEHOLDER");let eA=needMaskingText(et,ea,ed,eu,eh,ei);if(eS||e_||ew||!eC||!eA||(eC=ep?ep(eC):eC.replace(/[\S]/g,"*")),ew&&eC&&(ef.textarea||eA)&&(eC=em?em(eC,et.parentNode):eC.replace(/[\S]/g,"*")),"OPTION"===ey&&eC){let eo=shouldMaskInput({type:null,tagName:ey,maskInputOptions:ef});eC=maskInputValue({isMasked:needMaskingText(et,ea,ed,eu,eh,eo),element:et,value:eC,maskInputFn:em})}return{type:eF.Text,textContent:eC||"",isStyle:eS,rootId:eg}}function serializeElementNode(et,eo){let ei;let{doc:ea,blockClass:eu,blockSelector:ed,unblockSelector:eh,inlineStylesheet:ep,maskInputOptions:ef={},maskAttributeFn:em,maskInputFn:eg,dataURLOptions:ey={},inlineImages:eC,recordCanvas:eS,keepIframeSrcFn:e_,newlyAddedElement:ew=!1,rootId:eR,maskAllText:eT,maskTextClass:eE,unmaskTextClass:eP,maskTextSelector:ek,unmaskTextSelector:eO}=eo,eM=_isBlockedElement(et,eu,ed,eh),eD=getValidTagName(et),eU={},eL=et.attributes.length;for(let eo=0;eo<eL;eo++){let ei=et.attributes[eo];ei.name&&!ignoreAttribute(eD,ei.name,ei.value)&&(eU[ei.name]=transformAttribute(ea,eD,toLowerCase(ei.name),ei.value,et,em))}if("link"===eD&&ep){let eo=Array.from(ea.styleSheets).find(eo=>eo.href===et.href),ei=null;eo&&(ei=stringifyStylesheet(eo)),ei&&(delete eU.rel,delete eU.href,eU._cssText=absoluteToStylesheet(ei,eo.href))}if("style"===eD&&et.sheet&&!(et.innerText||et.textContent||"").trim().length){let eo=stringifyStylesheet(et.sheet);eo&&(eU._cssText=absoluteToStylesheet(eo,getHref()))}if("input"===eD||"textarea"===eD||"select"===eD||"option"===eD){let eo=et,ei=getInputType(eo),ea=getInputValue(eo,toUpperCase(eD),ei),eu=eo.checked;if("submit"!==ei&&"button"!==ei&&ea){let et=needMaskingText(eo,eE,ek,eP,eO,shouldMaskInput({type:ei,tagName:toUpperCase(eD),maskInputOptions:ef}));eU.value=maskInputValue({isMasked:et,element:eo,value:ea,maskInputFn:eg})}eu&&(eU.checked=eu)}if("option"===eD&&(et.selected&&!ef.select?eU.selected=!0:delete eU.selected),"canvas"===eD&&eS){if("2d"===et.__context)is2DCanvasBlank(et)||(eU.rr_dataURL=et.toDataURL(ey.type,ey.quality));else if(!("__context"in et)){let eo=et.toDataURL(ey.type,ey.quality),ei=document.createElement("canvas");ei.width=et.width,ei.height=et.height;let ea=ei.toDataURL(ey.type,ey.quality);eo!==ea&&(eU.rr_dataURL=eo)}}if("img"===eD&&eC){eA||(eI=(eA=ea.createElement("canvas")).getContext("2d"));let eo=et,ei=eo.crossOrigin;eo.crossOrigin="anonymous";let recordInlineImage=()=>{eo.removeEventListener("load",recordInlineImage);try{eA.width=eo.naturalWidth,eA.height=eo.naturalHeight,eI.drawImage(eo,0,0),eU.rr_dataURL=eA.toDataURL(ey.type,ey.quality)}catch(et){console.warn(`Cannot inline img src=${eo.currentSrc}! Error: ${et}`)}ei?eU.crossOrigin=ei:eo.removeAttribute("crossorigin")};eo.complete&&0!==eo.naturalWidth?recordInlineImage():eo.addEventListener("load",recordInlineImage)}if(("audio"===eD||"video"===eD)&&(eU.rr_mediaState=et.paused?"paused":"played",eU.rr_mediaCurrentTime=et.currentTime),!ew&&(et.scrollLeft&&(eU.rr_scrollLeft=et.scrollLeft),et.scrollTop&&(eU.rr_scrollTop=et.scrollTop)),eM){let{width:eo,height:ei}=et.getBoundingClientRect();eU={class:eU.class,rr_width:`${eo}px`,rr_height:`${ei}px`}}"iframe"!==eD||e_(eU.src)||(et.contentDocument||(eU.rr_src=eU.src),delete eU.src);try{customElements.get(eD)&&(ei=!0)}catch(et){}return{type:eF.Element,tagName:eD,attributes:eU,childNodes:[],isSVG:isSVGElement(et)||void 0,needBlock:eM,rootId:eR,isCustom:ei}}function lowerIfExists(et){return null==et?"":et.toLowerCase()}function slimDOMExcluded(et,eo){if(eo.comment&&et.type===eF.Comment)return!0;if(et.type===eF.Element){if(eo.script&&("script"===et.tagName||"link"===et.tagName&&("preload"===et.attributes.rel||"modulepreload"===et.attributes.rel)&&"script"===et.attributes.as||"link"===et.tagName&&"prefetch"===et.attributes.rel&&"string"==typeof et.attributes.href&&et.attributes.href.endsWith(".js"))||eo.headFavicon&&("link"===et.tagName&&"shortcut icon"===et.attributes.rel||"meta"===et.tagName&&(lowerIfExists(et.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(et.attributes.name)||"icon"===lowerIfExists(et.attributes.rel)||"apple-touch-icon"===lowerIfExists(et.attributes.rel)||"shortcut icon"===lowerIfExists(et.attributes.rel))))return!0;if("meta"===et.tagName){if(eo.headMetaDescKeywords&&lowerIfExists(et.attributes.name).match(/^description|keywords$/)||eo.headMetaSocial&&(lowerIfExists(et.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(et.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(et.attributes.name)))return!0;if(eo.headMetaRobots&&("robots"===lowerIfExists(et.attributes.name)||"googlebot"===lowerIfExists(et.attributes.name)||"bingbot"===lowerIfExists(et.attributes.name)))return!0;if(eo.headMetaHttpEquiv&&void 0!==et.attributes["http-equiv"])return!0;else if(eo.headMetaAuthorship&&("author"===lowerIfExists(et.attributes.name)||"generator"===lowerIfExists(et.attributes.name)||"framework"===lowerIfExists(et.attributes.name)||"publisher"===lowerIfExists(et.attributes.name)||"progid"===lowerIfExists(et.attributes.name)||lowerIfExists(et.attributes.property).match(/^article:/)||lowerIfExists(et.attributes.property).match(/^product:/)))return!0;else if(eo.headMetaVerification&&("google-site-verification"===lowerIfExists(et.attributes.name)||"yandex-verification"===lowerIfExists(et.attributes.name)||"csrf-token"===lowerIfExists(et.attributes.name)||"p:domain_verify"===lowerIfExists(et.attributes.name)||"verify-v1"===lowerIfExists(et.attributes.name)||"verification"===lowerIfExists(et.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(et.attributes.name)))return!0}}return!1}function serializeNodeWithId(et,eo){let ei;let{doc:ea,mirror:eu,blockClass:ed,blockSelector:eh,unblockSelector:ep,maskAllText:ef,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC,skipChild:eS=!1,inlineStylesheet:e_=!0,maskInputOptions:ew={},maskAttributeFn:eA,maskTextFn:eI,maskInputFn:eR,slimDOMOptions:eT,dataURLOptions:eE={},inlineImages:eP=!1,recordCanvas:ek=!1,onSerialize:eO,onIframeLoad:eM,iframeLoadTimeout:eD=5e3,onStylesheetLoad:eU,stylesheetLoadTimeout:eL=5e3,keepIframeSrcFn:eN=()=>!1,newlyAddedElement:eB=!1}=eo,{preserveWhiteSpace:ej=!0}=eo,eG=serializeNode(et,{doc:ea,mirror:eu,blockClass:ed,blockSelector:eh,maskAllText:ef,unblockSelector:ep,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC,inlineStylesheet:e_,maskInputOptions:ew,maskAttributeFn:eA,maskTextFn:eI,maskInputFn:eR,dataURLOptions:eE,inlineImages:eP,recordCanvas:ek,keepIframeSrcFn:eN,newlyAddedElement:eB});if(!eG)return console.warn(et,"not serialized"),null;ei=eu.hasNode(et)?eu.getId(et):!slimDOMExcluded(eG,eT)&&(ej||eG.type!==eF.Text||eG.isStyle||eG.textContent.replace(/^\s+|\s+$/gm,"").length)?genId():nj;let eH=Object.assign(eG,{id:ei});if(eu.add(et,eH),ei===nj)return null;eO&&eO(et);let eK=!eS;if(eH.type===eF.Element){eK=eK&&!eH.needBlock,delete eH.needBlock;let eo=et.shadowRoot;eo&&isNativeShadowDom(eo)&&(eH.isShadowHost=!0)}if((eH.type===eF.Document||eH.type===eF.Element)&&eK){eT.headWhitespace&&eH.type===eF.Element&&"head"===eH.tagName&&(ej=!1);let eo={doc:ea,mirror:eu,blockClass:ed,blockSelector:eh,maskAllText:ef,unblockSelector:ep,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC,skipChild:eS,inlineStylesheet:e_,maskInputOptions:ew,maskAttributeFn:eA,maskTextFn:eI,maskInputFn:eR,slimDOMOptions:eT,dataURLOptions:eE,inlineImages:eP,recordCanvas:ek,preserveWhiteSpace:ej,onSerialize:eO,onIframeLoad:eM,iframeLoadTimeout:eD,onStylesheetLoad:eU,stylesheetLoadTimeout:eL,keepIframeSrcFn:eN};for(let ei of Array.from(et.childNodes)){let et=serializeNodeWithId(ei,eo);et&&eH.childNodes.push(et)}if(isElement$1(et)&&et.shadowRoot)for(let ei of Array.from(et.shadowRoot.childNodes)){let ea=serializeNodeWithId(ei,eo);ea&&(isNativeShadowDom(et.shadowRoot)&&(ea.isShadow=!0),eH.childNodes.push(ea))}}return et.parentNode&&isShadowRoot(et.parentNode)&&isNativeShadowDom(et.parentNode)&&(eH.isShadow=!0),eH.type===eF.Element&&"iframe"===eH.tagName&&onceIframeLoaded(et,()=>{let eo=et.contentDocument;if(eo&&eM){let ei=serializeNodeWithId(eo,{doc:eo,mirror:eu,blockClass:ed,blockSelector:eh,unblockSelector:ep,maskAllText:ef,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC,skipChild:!1,inlineStylesheet:e_,maskInputOptions:ew,maskAttributeFn:eA,maskTextFn:eI,maskInputFn:eR,slimDOMOptions:eT,dataURLOptions:eE,inlineImages:eP,recordCanvas:ek,preserveWhiteSpace:ej,onSerialize:eO,onIframeLoad:eM,iframeLoadTimeout:eD,onStylesheetLoad:eU,stylesheetLoadTimeout:eL,keepIframeSrcFn:eN});ei&&eM(et,ei)}},eD),eH.type===eF.Element&&"link"===eH.tagName&&"stylesheet"===eH.attributes.rel&&onceStylesheetLoaded(et,()=>{if(eU){let eo=serializeNodeWithId(et,{doc:ea,mirror:eu,blockClass:ed,blockSelector:eh,unblockSelector:ep,maskAllText:ef,maskTextClass:em,unmaskTextClass:eg,maskTextSelector:ey,unmaskTextSelector:eC,skipChild:!1,inlineStylesheet:e_,maskInputOptions:ew,maskAttributeFn:eA,maskTextFn:eI,maskInputFn:eR,slimDOMOptions:eT,dataURLOptions:eE,inlineImages:eP,recordCanvas:ek,preserveWhiteSpace:ej,onSerialize:eO,onIframeLoad:eM,iframeLoadTimeout:eD,onStylesheetLoad:eU,stylesheetLoadTimeout:eL,keepIframeSrcFn:eN});eo&&eU(et,eo)}},eL),eH}function snapshot(et,eo){let{mirror:ei=new Mirror,blockClass:ea="rr-block",blockSelector:eu=null,unblockSelector:ed=null,maskAllText:eh=!1,maskTextClass:ep="rr-mask",unmaskTextClass:ef=null,maskTextSelector:em=null,unmaskTextSelector:eg=null,inlineStylesheet:ey=!0,inlineImages:eC=!1,recordCanvas:eS=!1,maskAllInputs:e_=!1,maskAttributeFn:ew,maskTextFn:eA,maskInputFn:eI,slimDOM:eR=!1,dataURLOptions:eT,preserveWhiteSpace:eE,onSerialize:eP,onIframeLoad:ek,iframeLoadTimeout:eO,onStylesheetLoad:eM,stylesheetLoadTimeout:eD,keepIframeSrcFn:eU=()=>!1}=eo||{},eL=!0===e_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===e_?{}:e_,eN=!0===eR||"all"===eR?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===eR,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===eR?{}:eR;return serializeNodeWithId(et,{doc:et,mirror:ei,blockClass:ea,blockSelector:eu,unblockSelector:ed,maskAllText:eh,maskTextClass:ep,unmaskTextClass:ef,maskTextSelector:em,unmaskTextSelector:eg,skipChild:!1,inlineStylesheet:ey,maskInputOptions:eL,maskAttributeFn:ew,maskTextFn:eA,maskInputFn:eI,slimDOMOptions:eN,dataURLOptions:eT,inlineImages:eC,recordCanvas:eS,preserveWhiteSpace:eE,onSerialize:eP,onIframeLoad:ek,iframeLoadTimeout:eO,onStylesheetLoad:eM,stylesheetLoadTimeout:eD,keepIframeSrcFn:eU,newlyAddedElement:!1})}function _optionalChain$4(et){let eo;let ei=et[0],ea=1;for(;ea<et.length;){let eu=et[ea],ed=et[ea+1];if(ea+=2,("optionalAccess"===eu||"optionalCall"===eu)&&null==ei)return;"access"===eu||"optionalAccess"===eu?(eo=ei,ei=ed(ei)):("call"===eu||"optionalCall"===eu)&&(ei=ed((...et)=>ei.call(eo,...et)),eo=void 0)}return ei}function on(et,eo,ei=document){let ea={capture:!0,passive:!0};return ei.addEventListener(et,eo,ea),()=>ei.removeEventListener(et,eo,ea)}let nJ="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",nY={map:{},getId:()=>(console.error(nJ),-1),getNode:()=>(console.error(nJ),null),removeNodeFromMap(){console.error(nJ)},has:()=>(console.error(nJ),!1),reset(){console.error(nJ)}};function throttle$1(et,eo,ei={}){let ea=null,eu=0;return function(...ed){let eh=Date.now();eu||!1!==ei.leading||(eu=eh);let ep=eo-(eh-eu),ef=this;ep<=0||ep>eo?(ea&&(clearTimeout(ea),ea=null),eu=eh,et.apply(ef,ed)):ea||!1===ei.trailing||(ea=setTimeout(()=>{eu=!1===ei.leading?0:Date.now(),ea=null,et.apply(ef,ed)},ep))}}function hookSetter(et,eo,ei,ea,eu=window){let ed=eu.Object.getOwnPropertyDescriptor(et,eo);return eu.Object.defineProperty(et,eo,ea?ei:{set(et){setTimeout(()=>{ei.set.call(this,et)},0),ed&&ed.set&&ed.set.call(this,et)}}),()=>hookSetter(et,eo,ed||{},!0)}function patch(et,eo,ei){try{if(!(eo in et))return()=>{};let ea=et[eo],eu=ei(ea);return"function"==typeof eu&&(eu.prototype=eu.prototype||{},Object.defineProperties(eu,{__rrweb_original__:{enumerable:!1,value:ea}})),et[eo]=eu,()=>{et[eo]=ea}}catch(et){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(nY=new Proxy(nY,{get:(et,eo,ei)=>("map"===eo&&console.error(nJ),Reflect.get(et,eo,ei))}));let n$=Date.now;function getWindowScroll(et){let eo=et.document;return{left:eo.scrollingElement?eo.scrollingElement.scrollLeft:void 0!==et.pageXOffset?et.pageXOffset:_optionalChain$4([eo,"optionalAccess",et=>et.documentElement,"access",et=>et.scrollLeft])||_optionalChain$4([eo,"optionalAccess",et=>et.body,"optionalAccess",et=>et.parentElement,"optionalAccess",et=>et.scrollLeft])||_optionalChain$4([eo,"optionalAccess",et=>et.body,"optionalAccess",et=>et.scrollLeft])||0,top:eo.scrollingElement?eo.scrollingElement.scrollTop:void 0!==et.pageYOffset?et.pageYOffset:_optionalChain$4([eo,"optionalAccess",et=>et.documentElement,"access",et=>et.scrollTop])||_optionalChain$4([eo,"optionalAccess",et=>et.body,"optionalAccess",et=>et.parentElement,"optionalAccess",et=>et.scrollTop])||_optionalChain$4([eo,"optionalAccess",et=>et.body,"optionalAccess",et=>et.scrollTop])||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function isBlocked(et,eo,ei,ea,eu){if(!et)return!1;let ed=et.nodeType===et.ELEMENT_NODE?et:et.parentElement;if(!ed)return!1;let eh=createMatchPredicate(eo,ei);if(!eu){let et=ea&&ed.matches(ea);return eh(ed)&&!et}let ep=distanceToMatch(ed,eh),ef=-1;return!(ep<0)&&(ea&&(ef=distanceToMatch(ed,createMatchPredicate(null,ea))),ep>-1&&ef<0||ep<ef)}function isSerialized(et,eo){return -1!==eo.getId(et)}function isIgnored(et,eo){return eo.getId(et)===nj}function isAncestorRemoved(et,eo){if(isShadowRoot(et))return!1;let ei=eo.getId(et);return!eo.has(ei)||(!et.parentNode||et.parentNode.nodeType!==et.DOCUMENT_NODE)&&(!et.parentNode||isAncestorRemoved(et.parentNode,eo))}function legacy_isTouchEvent(et){return!!et.changedTouches}function polyfill(et=window){"NodeList"in et&&!et.NodeList.prototype.forEach&&(et.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in et&&!et.DOMTokenList.prototype.forEach&&(et.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...et)=>{let eo=et[0];if(!(0 in et))throw TypeError("1 argument is required");do if(this===eo)return!0;while(eo=eo&&eo.parentNode);return!1})}function isSerializedIframe(et,eo){return!!("IFRAME"===et.nodeName&&eo.getMeta(et))}function isSerializedStylesheet(et,eo){return!!("LINK"===et.nodeName&&et.nodeType===et.ELEMENT_NODE&&et.getAttribute&&"stylesheet"===et.getAttribute("rel")&&eo.getMeta(et))}function hasShadowRoot(et){return!!_optionalChain$4([et,"optionalAccess",et=>et.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(n$=()=>new Date().getTime());let StyleSheetMirror=class StyleSheetMirror{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(et){return _nullishCoalesce(this.styleIDMap.get(et),()=>-1)}has(et){return this.styleIDMap.has(et)}add(et,eo){let ei;return this.has(et)?this.getId(et):(ei=void 0===eo?this.id++:eo,this.styleIDMap.set(et,ei),this.idStyleMap.set(ei,et),ei)}getStyle(et){return this.idStyleMap.get(et)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function getShadowHost(et){let eo=null;return _optionalChain$4([et,"access",et=>et.getRootNode,"optionalCall",et=>et(),"optionalAccess",et=>et.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&et.getRootNode().host&&(eo=et.getRootNode().host),eo}function getRootShadowHost(et){let eo,ei=et;for(;eo=getShadowHost(ei);)ei=eo;return ei}function shadowHostInDom(et){let eo=et.ownerDocument;if(!eo)return!1;let ei=getRootShadowHost(et);return eo.contains(ei)}function inDom(et){let eo=et.ownerDocument;return!!eo&&(eo.contains(et)||shadowHostInDom(et))}function getRequestAnimationFrameImplementation(){if(eR)return eR;let et=window.document,eo=window.requestAnimationFrame;if(et&&"function"==typeof et.createElement)try{let ei=et.createElement("iframe");ei.hidden=!0,et.head.appendChild(ei);let ea=ei.contentWindow;ea&&ea.requestAnimationFrame&&(eo=ea.requestAnimationFrame),et.head.removeChild(ei)}catch(et){}return eR=eo.bind(window)}function onRequestAnimationFrame(...et){return getRequestAnimationFrameImplementation()(...et)}var nZ=((eD=nZ||{})[eD.DomContentLoaded=0]="DomContentLoaded",eD[eD.Load=1]="Load",eD[eD.FullSnapshot=2]="FullSnapshot",eD[eD.IncrementalSnapshot=3]="IncrementalSnapshot",eD[eD.Meta=4]="Meta",eD[eD.Custom=5]="Custom",eD[eD.Plugin=6]="Plugin",eD),nQ=((eU=nQ||{})[eU.Mutation=0]="Mutation",eU[eU.MouseMove=1]="MouseMove",eU[eU.MouseInteraction=2]="MouseInteraction",eU[eU.Scroll=3]="Scroll",eU[eU.ViewportResize=4]="ViewportResize",eU[eU.Input=5]="Input",eU[eU.TouchMove=6]="TouchMove",eU[eU.MediaInteraction=7]="MediaInteraction",eU[eU.StyleSheetRule=8]="StyleSheetRule",eU[eU.CanvasMutation=9]="CanvasMutation",eU[eU.Font=10]="Font",eU[eU.Log=11]="Log",eU[eU.Drag=12]="Drag",eU[eU.StyleDeclaration=13]="StyleDeclaration",eU[eU.Selection=14]="Selection",eU[eU.AdoptedStyleSheet=15]="AdoptedStyleSheet",eU[eU.CustomElement=16]="CustomElement",eU),nX=((eL=nX||{})[eL.MouseUp=0]="MouseUp",eL[eL.MouseDown=1]="MouseDown",eL[eL.Click=2]="Click",eL[eL.ContextMenu=3]="ContextMenu",eL[eL.DblClick=4]="DblClick",eL[eL.Focus=5]="Focus",eL[eL.Blur=6]="Blur",eL[eL.TouchStart=7]="TouchStart",eL[eL.TouchMove_Departed=8]="TouchMove_Departed",eL[eL.TouchEnd=9]="TouchEnd",eL[eL.TouchCancel=10]="TouchCancel",eL),n0=((eN=n0||{})[eN.Mouse=0]="Mouse",eN[eN.Pen=1]="Pen",eN[eN.Touch=2]="Touch",eN);function _optionalChain$3(et){let eo;let ei=et[0],ea=1;for(;ea<et.length;){let eu=et[ea],ed=et[ea+1];if(ea+=2,("optionalAccess"===eu||"optionalCall"===eu)&&null==ei)return;"access"===eu||"optionalAccess"===eu?(eo=ei,ei=ed(ei)):("call"===eu||"optionalCall"===eu)&&(ei=ed((...et)=>ei.call(eo,...et)),eo=void 0)}return ei}function isNodeInLinkedList(et){return"__ln"in et}let DoubleLinkedList=class DoubleLinkedList{constructor(){this.length=0,this.head=null,this.tail=null}get(et){if(et>=this.length)throw Error("Position outside of list range");let eo=this.head;for(let ei=0;ei<et;ei++)eo=_optionalChain$3([eo,"optionalAccess",et=>et.next])||null;return eo}addNode(et){let eo={value:et,previous:null,next:null};if(et.__ln=eo,et.previousSibling&&isNodeInLinkedList(et.previousSibling)){let ei=et.previousSibling.__ln.next;eo.next=ei,eo.previous=et.previousSibling.__ln,et.previousSibling.__ln.next=eo,ei&&(ei.previous=eo)}else if(et.nextSibling&&isNodeInLinkedList(et.nextSibling)&&et.nextSibling.__ln.previous){let ei=et.nextSibling.__ln.previous;eo.previous=ei,eo.next=et.nextSibling.__ln,et.nextSibling.__ln.previous=eo,ei&&(ei.next=eo)}else this.head&&(this.head.previous=eo),eo.next=this.head,this.head=eo;null===eo.next&&(this.tail=eo),this.length++}removeNode(et){let eo=et.__ln;this.head&&(eo.previous?(eo.previous.next=eo.next,eo.next?eo.next.previous=eo.previous:this.tail=eo.previous):(this.head=eo.next,this.head?this.head.previous=null:this.tail=null),et.__ln&&delete et.__ln,this.length--)}};let moveKey=(et,eo)=>`${et}@${eo}`;let MutationBuffer=class MutationBuffer{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=et=>{et.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let et=[],eo=new Set,ei=new DoubleLinkedList,getNextId=et=>{let eo=et,ei=nj;for(;ei===nj;)ei=(eo=eo&&eo.nextSibling)&&this.mirror.getId(eo);return ei},pushAdd=ea=>{if(!ea.parentNode||!inDom(ea))return;let eu=isShadowRoot(ea.parentNode)?this.mirror.getId(getShadowHost(ea)):this.mirror.getId(ea.parentNode),ed=getNextId(ea);if(-1===eu||-1===ed)return ei.addNode(ea);let eh=serializeNodeWithId(ea,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:et=>{isSerializedIframe(et,this.mirror)&&this.iframeManager.addIframe(et),isSerializedStylesheet(et,this.mirror)&&this.stylesheetManager.trackLinkElement(et),hasShadowRoot(ea)&&this.shadowDomManager.addShadowRoot(ea.shadowRoot,this.doc)},onIframeLoad:(et,eo)=>{this.iframeManager.attachIframe(et,eo),this.shadowDomManager.observeAttachShadow(et)},onStylesheetLoad:(et,eo)=>{this.stylesheetManager.attachLinkElement(et,eo)}});eh&&(et.push({parentId:eu,nextId:ed,node:eh}),eo.add(eh.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let et of this.movedSet)(!isParentRemoved(this.removes,et,this.mirror)||this.movedSet.has(et.parentNode))&&pushAdd(et);for(let et of this.addedSet)isAncestorInSet(this.droppedSet,et)||isParentRemoved(this.removes,et,this.mirror)?isAncestorInSet(this.movedSet,et)?pushAdd(et):this.droppedSet.add(et):pushAdd(et);let ea=null;for(;ei.length;){let et=null;if(ea){let eo=this.mirror.getId(ea.value.parentNode),ei=getNextId(ea.value);-1!==eo&&-1!==ei&&(et=ea)}if(!et){let eo=ei.tail;for(;eo;){let ei=eo;if(eo=eo.previous,ei){let eo=this.mirror.getId(ei.value.parentNode),ea=getNextId(ei.value);if(-1===ea)continue;if(-1!==eo){et=ei;break}{let eo=ei.value;if(eo.parentNode&&eo.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let ea=eo.parentNode.host,eu=this.mirror.getId(ea);if(-1!==eu){et=ei;break}}}}}}if(!et){for(;ei.head;)ei.removeNode(ei.head.value);break}ea=et.previous,ei.removeNode(et.value),pushAdd(et.value)}let eu={texts:this.texts.map(et=>({id:this.mirror.getId(et.node),value:et.value})).filter(et=>!eo.has(et.id)).filter(et=>this.mirror.has(et.id)),attributes:this.attributes.map(et=>{let{attributes:eo}=et;if("string"==typeof eo.style){let ei=JSON.stringify(et.styleDiff),ea=JSON.stringify(et._unchangedStyles);ei.length<eo.style.length&&(ei+ea).split("var(").length===eo.style.split("var(").length&&(eo.style=et.styleDiff)}return{id:this.mirror.getId(et.node),attributes:eo}}).filter(et=>!eo.has(et.id)).filter(et=>this.mirror.has(et.id)),removes:this.removes,adds:et};(eu.texts.length||eu.attributes.length||eu.removes.length||eu.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(eu))},this.processMutation=et=>{let eo;if(!isIgnored(et.target,this.mirror)){try{eo=document.implementation.createHTMLDocument()}catch(et){eo=this.doc}switch(et.type){case"characterData":{let eo=et.target.textContent;isBlocked(et.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eo===et.oldValue||this.texts.push({value:needMaskingText(et.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&eo?this.maskTextFn?this.maskTextFn(eo):eo.replace(/[\S]/g,"*"):eo,node:et.target});break}case"attributes":{let ei=et.target,ea=et.attributeName,eu=et.target.getAttribute(ea);if("value"===ea){let eo=getInputType(ei),ea=ei.tagName;eu=getInputValue(ei,ea,eo);let ed=shouldMaskInput({maskInputOptions:this.maskInputOptions,tagName:ea,type:eo}),eh=needMaskingText(et.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,ed);eu=maskInputValue({isMasked:eh,element:ei,value:eu,maskInputFn:this.maskInputFn})}if(isBlocked(et.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eu===et.oldValue)return;let ed=this.attributes.find(eo=>eo.node===et.target);if("IFRAME"===ei.tagName&&"src"===ea&&!this.keepIframeSrcFn(eu)){if(ei.contentDocument)return;ea="rr_src"}if(ed||(ed={node:et.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(ed)),"type"===ea&&"INPUT"===ei.tagName&&"password"===(et.oldValue||"").toLowerCase()&&ei.setAttribute("data-rr-is-password","true"),!ignoreAttribute(ei.tagName,ea)&&(ed.attributes[ea]=transformAttribute(this.doc,toLowerCase(ei.tagName),toLowerCase(ea),eu,ei,this.maskAttributeFn),"style"===ea)){let ea=eo.createElement("span");for(let eo of(et.oldValue&&ea.setAttribute("style",et.oldValue),Array.from(ei.style))){let et=ei.style.getPropertyValue(eo),eu=ei.style.getPropertyPriority(eo);et!==ea.style.getPropertyValue(eo)||eu!==ea.style.getPropertyPriority(eo)?""===eu?ed.styleDiff[eo]=et:ed.styleDiff[eo]=[et,eu]:ed._unchangedStyles[eo]=[et,eu]}for(let et of Array.from(ea.style))""===ei.style.getPropertyValue(et)&&(ed.styleDiff[et]=!1)}break}case"childList":if(isBlocked(et.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;et.addedNodes.forEach(eo=>this.genAdds(eo,et.target)),et.removedNodes.forEach(eo=>{let ei=this.mirror.getId(eo),ea=isShadowRoot(et.target)?this.mirror.getId(et.target.host):this.mirror.getId(et.target);!(isBlocked(et.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||isIgnored(eo,this.mirror))&&isSerialized(eo,this.mirror)&&(this.addedSet.has(eo)?(deepDelete(this.addedSet,eo),this.droppedSet.add(eo)):this.addedSet.has(et.target)&&-1===ei||isAncestorRemoved(et.target,this.mirror)||(this.movedSet.has(eo)&&this.movedMap[moveKey(ei,ea)]?deepDelete(this.movedSet,eo):this.removes.push({parentId:ea,id:ei,isShadow:!!(isShadowRoot(et.target)&&isNativeShadowDom(et.target))||void 0})),this.mapRemoves.push(eo))})}}},this.genAdds=(et,eo)=>{if(!this.processedNodeManager.inOtherBuffer(et,this)&&!(this.addedSet.has(et)||this.movedSet.has(et))){if(this.mirror.hasNode(et)){if(isIgnored(et,this.mirror))return;this.movedSet.add(et);let ei=null;eo&&this.mirror.hasNode(eo)&&(ei=this.mirror.getId(eo)),ei&&-1!==ei&&(this.movedMap[moveKey(this.mirror.getId(et),ei)]=!0)}else this.addedSet.add(et),this.droppedSet.delete(et);!isBlocked(et,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(et.childNodes.forEach(et=>this.genAdds(et)),hasShadowRoot(et)&&et.shadowRoot.childNodes.forEach(eo=>{this.processedNodeManager.add(eo,this),this.genAdds(eo,et)}))}}}init(et){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(eo=>{this[eo]=et[eo]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function deepDelete(et,eo){et.delete(eo),eo.childNodes.forEach(eo=>deepDelete(et,eo))}function isParentRemoved(et,eo,ei){return 0!==et.length&&_isParentRemoved(et,eo,ei)}function _isParentRemoved(et,eo,ei){let{parentNode:ea}=eo;if(!ea)return!1;let eu=ei.getId(ea);return!!et.some(et=>et.id===eu)||_isParentRemoved(et,ea,ei)}function isAncestorInSet(et,eo){return 0!==et.size&&_isAncestorInSet(et,eo)}function _isAncestorInSet(et,eo){let{parentNode:ei}=eo;return!!ei&&(!!et.has(ei)||_isAncestorInSet(et,ei))}function registerErrorHandler(et){eT=et}function unregisterErrorHandler(){eT=void 0}let callbackWrapper=et=>{if(!eT)return et;let rrwebWrapped=(...eo)=>{try{return et(...eo)}catch(et){if(eT&&!0===eT(et))return()=>{};throw et}};return rrwebWrapped};function _optionalChain$2(et){let eo;let ei=et[0],ea=1;for(;ea<et.length;){let eu=et[ea],ed=et[ea+1];if(ea+=2,("optionalAccess"===eu||"optionalCall"===eu)&&null==ei)return;"access"===eu||"optionalAccess"===eu?(eo=ei,ei=ed(ei)):("call"===eu||"optionalCall"===eu)&&(ei=ed((...et)=>ei.call(eo,...et)),eo=void 0)}return ei}let n1=[];function esm_getEventTarget(et){try{if("composedPath"in et){let eo=et.composedPath();if(eo.length)return eo[0]}else if("path"in et&&et.path.length)return et.path[0]}catch(et){}return et&&et.target}function initMutationObserver(et,eo){let ei=new MutationBuffer;n1.push(ei),ei.init(et);let ea=window.MutationObserver||window.__rrMutationObserver,eu=_optionalChain$2([window,"optionalAccess",et=>et.Zone,"optionalAccess",et=>et.__symbol__,"optionalCall",et=>et("MutationObserver")]);eu&&window[eu]&&(ea=window[eu]);let ed=new ea(callbackWrapper(eo=>{et.onMutation&&!1===et.onMutation(eo)||ei.processMutations.bind(ei)(eo)}));return ed.observe(eo,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),ed}function initMoveObserver({mousemoveCb:et,sampling:eo,doc:ei,mirror:ea}){let eu;if(!1===eo.mousemove)return()=>{};let ed="number"==typeof eo.mousemove?eo.mousemove:50,eh="number"==typeof eo.mousemoveCallback?eo.mousemoveCallback:500,ep=[],ef=throttle$1(callbackWrapper(eo=>{let ei=Date.now()-eu;et(ep.map(et=>(et.timeOffset-=ei,et)),eo),ep=[],eu=null}),eh),em=callbackWrapper(throttle$1(callbackWrapper(et=>{let eo=esm_getEventTarget(et),{clientX:ei,clientY:ed}=legacy_isTouchEvent(et)?et.changedTouches[0]:et;eu||(eu=n$()),ep.push({x:ei,y:ed,id:ea.getId(eo),timeOffset:n$()-eu}),ef("undefined"!=typeof DragEvent&&et instanceof DragEvent?nQ.Drag:et instanceof MouseEvent?nQ.MouseMove:nQ.TouchMove)}),ed,{trailing:!1})),eg=[on("mousemove",em,ei),on("touchmove",em,ei),on("drag",em,ei)];return callbackWrapper(()=>{eg.forEach(et=>et())})}function initMouseInteractionObserver({mouseInteractionCb:et,doc:eo,mirror:ei,blockClass:ea,blockSelector:eu,unblockSelector:ed,sampling:eh}){if(!1===eh.mouseInteraction)return()=>{};let ep=!0===eh.mouseInteraction||void 0===eh.mouseInteraction?{}:eh.mouseInteraction,ef=[],em=null,getHandler=eo=>eh=>{let ep=esm_getEventTarget(eh);if(isBlocked(ep,ea,eu,ed,!0))return;let ef=null,eg=eo;if("pointerType"in eh){switch(eh.pointerType){case"mouse":ef=n0.Mouse;break;case"touch":ef=n0.Touch;break;case"pen":ef=n0.Pen}ef===n0.Touch?nX[eo]===nX.MouseDown?eg="TouchStart":nX[eo]===nX.MouseUp&&(eg="TouchEnd"):n0.Pen}else legacy_isTouchEvent(eh)&&(ef=n0.Touch);null!==ef?(em=ef,(eg.startsWith("Touch")&&ef===n0.Touch||eg.startsWith("Mouse")&&ef===n0.Mouse)&&(ef=null)):nX[eo]===nX.Click&&(ef=em,em=null);let ey=legacy_isTouchEvent(eh)?eh.changedTouches[0]:eh;if(!ey)return;let eC=ei.getId(ep),{clientX:eS,clientY:e_}=ey;callbackWrapper(et)({type:nX[eg],id:eC,x:eS,y:e_,...null!==ef&&{pointerType:ef}})};return Object.keys(nX).filter(et=>Number.isNaN(Number(et))&&!et.endsWith("_Departed")&&!1!==ep[et]).forEach(et=>{let ei=toLowerCase(et),ea=getHandler(et);if(window.PointerEvent)switch(nX[et]){case nX.MouseDown:case nX.MouseUp:ei=ei.replace("mouse","pointer");break;case nX.TouchStart:case nX.TouchEnd:return}ef.push(on(ei,ea,eo))}),callbackWrapper(()=>{ef.forEach(et=>et())})}function initScrollObserver({scrollCb:et,doc:eo,mirror:ei,blockClass:ea,blockSelector:eu,unblockSelector:ed,sampling:eh}){let ep=callbackWrapper(throttle$1(callbackWrapper(eh=>{let ep=esm_getEventTarget(eh);if(!ep||isBlocked(ep,ea,eu,ed,!0))return;let ef=ei.getId(ep);if(ep===eo&&eo.defaultView){let ei=getWindowScroll(eo.defaultView);et({id:ef,x:ei.left,y:ei.top})}else et({id:ef,x:ep.scrollLeft,y:ep.scrollTop})}),eh.scroll||100));return on("scroll",ep,eo)}function initViewportResizeObserver({viewportResizeCb:et},{win:eo}){let ei=-1,ea=-1,eu=callbackWrapper(throttle$1(callbackWrapper(()=>{let eo=getWindowHeight(),eu=getWindowWidth();(ei!==eo||ea!==eu)&&(et({width:Number(eu),height:Number(eo)}),ei=eo,ea=eu)}),200));return on("resize",eu,eo)}let n2=["INPUT","TEXTAREA","SELECT"],n4=new WeakMap;function initInputObserver({inputCb:et,doc:eo,mirror:ei,blockClass:ea,blockSelector:eu,unblockSelector:ed,ignoreClass:eh,ignoreSelector:ep,maskInputOptions:ef,maskInputFn:em,sampling:eg,userTriggeredOnInput:ey,maskTextClass:eC,unmaskTextClass:eS,maskTextSelector:e_,unmaskTextSelector:ew}){function eventHandler(et){let ei=esm_getEventTarget(et),eg=et.isTrusted,eA=ei&&toUpperCase(ei.tagName);if("OPTION"===eA&&(ei=ei.parentElement),!ei||!eA||0>n2.indexOf(eA)||isBlocked(ei,ea,eu,ed,!0))return;let eI=ei;if(eI.classList.contains(eh)||ep&&eI.matches(ep))return;let eR=getInputType(ei),eT=getInputValue(eI,eA,eR),eE=!1,eP=shouldMaskInput({maskInputOptions:ef,tagName:eA,type:eR}),ek=needMaskingText(ei,eC,e_,eS,ew,eP);("radio"===eR||"checkbox"===eR)&&(eE=ei.checked),eT=maskInputValue({isMasked:ek,element:ei,value:eT,maskInputFn:em}),cbWithDedup(ei,ey?{text:eT,isChecked:eE,userTriggered:eg}:{text:eT,isChecked:eE});let eO=ei.name;"radio"===eR&&eO&&eE&&eo.querySelectorAll(`input[type="radio"][name="${eO}"]`).forEach(et=>{if(et!==ei){let eo=maskInputValue({isMasked:ek,element:et,value:getInputValue(et,eA,eR),maskInputFn:em});cbWithDedup(et,ey?{text:eo,isChecked:!eE,userTriggered:!1}:{text:eo,isChecked:!eE})}})}function cbWithDedup(eo,ea){let eu=n4.get(eo);if(!eu||eu.text!==ea.text||eu.isChecked!==ea.isChecked){n4.set(eo,ea);let eu=ei.getId(eo);callbackWrapper(et)({...ea,id:eu})}}let eA="last"===eg.input?["change"]:["input","change"],eI=eA.map(et=>on(et,callbackWrapper(eventHandler),eo)),eR=eo.defaultView;if(!eR)return()=>{eI.forEach(et=>et())};let eT=eR.Object.getOwnPropertyDescriptor(eR.HTMLInputElement.prototype,"value"),eE=[[eR.HTMLInputElement.prototype,"value"],[eR.HTMLInputElement.prototype,"checked"],[eR.HTMLSelectElement.prototype,"value"],[eR.HTMLTextAreaElement.prototype,"value"],[eR.HTMLSelectElement.prototype,"selectedIndex"],[eR.HTMLOptionElement.prototype,"selected"]];return eT&&eT.set&&eI.push(...eE.map(et=>hookSetter(et[0],et[1],{set(){callbackWrapper(eventHandler)({target:this,isTrusted:!1})}},!1,eR))),callbackWrapper(()=>{eI.forEach(et=>et())})}function getNestedCSSRulePositions(et){let eo=[];return function(et,eo){if(hasNestedCSSRule("CSSGroupingRule")&&et.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&et.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&et.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&et.parentRule instanceof CSSConditionRule){let ei=Array.from(et.parentRule.cssRules),ea=ei.indexOf(et);eo.unshift(ea)}else if(et.parentStyleSheet){let ei=Array.from(et.parentStyleSheet.cssRules),ea=ei.indexOf(et);eo.unshift(ea)}return eo}(et,eo)}function getIdAndStyleId(et,eo,ei){let ea,eu;return et?(et.ownerNode?ea=eo.getId(et.ownerNode):eu=ei.getId(et),{styleId:eu,id:ea}):{}}function initStyleSheetObserver({styleSheetRuleCb:et,mirror:eo,stylesheetManager:ei},{win:ea}){let eu,ed;if(!ea.CSSStyleSheet||!ea.CSSStyleSheet.prototype)return()=>{};let eh=ea.CSSStyleSheet.prototype.insertRule;ea.CSSStyleSheet.prototype.insertRule=new Proxy(eh,{apply:callbackWrapper((ea,eu,ed)=>{let[eh,ep]=ed,{id:ef,styleId:em}=getIdAndStyleId(eu,eo,ei.styleMirror);return(ef&&-1!==ef||em&&-1!==em)&&et({id:ef,styleId:em,adds:[{rule:eh,index:ep}]}),ea.apply(eu,ed)})});let ep=ea.CSSStyleSheet.prototype.deleteRule;ea.CSSStyleSheet.prototype.deleteRule=new Proxy(ep,{apply:callbackWrapper((ea,eu,ed)=>{let[eh]=ed,{id:ep,styleId:ef}=getIdAndStyleId(eu,eo,ei.styleMirror);return(ep&&-1!==ep||ef&&-1!==ef)&&et({id:ep,styleId:ef,removes:[{index:eh}]}),ea.apply(eu,ed)})}),ea.CSSStyleSheet.prototype.replace&&(eu=ea.CSSStyleSheet.prototype.replace,ea.CSSStyleSheet.prototype.replace=new Proxy(eu,{apply:callbackWrapper((ea,eu,ed)=>{let[eh]=ed,{id:ep,styleId:ef}=getIdAndStyleId(eu,eo,ei.styleMirror);return(ep&&-1!==ep||ef&&-1!==ef)&&et({id:ep,styleId:ef,replace:eh}),ea.apply(eu,ed)})})),ea.CSSStyleSheet.prototype.replaceSync&&(ed=ea.CSSStyleSheet.prototype.replaceSync,ea.CSSStyleSheet.prototype.replaceSync=new Proxy(ed,{apply:callbackWrapper((ea,eu,ed)=>{let[eh]=ed,{id:ep,styleId:ef}=getIdAndStyleId(eu,eo,ei.styleMirror);return(ep&&-1!==ep||ef&&-1!==ef)&&et({id:ep,styleId:ef,replaceSync:eh}),ea.apply(eu,ed)})}));let ef={};canMonkeyPatchNestedCSSRule("CSSGroupingRule")?ef.CSSGroupingRule=ea.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(ef.CSSMediaRule=ea.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(ef.CSSConditionRule=ea.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(ef.CSSSupportsRule=ea.CSSSupportsRule));let em={};return Object.entries(ef).forEach(([ea,eu])=>{em[ea]={insertRule:eu.prototype.insertRule,deleteRule:eu.prototype.deleteRule},eu.prototype.insertRule=new Proxy(em[ea].insertRule,{apply:callbackWrapper((ea,eu,ed)=>{let[eh,ep]=ed,{id:ef,styleId:em}=getIdAndStyleId(eu.parentStyleSheet,eo,ei.styleMirror);return(ef&&-1!==ef||em&&-1!==em)&&et({id:ef,styleId:em,adds:[{rule:eh,index:[...getNestedCSSRulePositions(eu),ep||0]}]}),ea.apply(eu,ed)})}),eu.prototype.deleteRule=new Proxy(em[ea].deleteRule,{apply:callbackWrapper((ea,eu,ed)=>{let[eh]=ed,{id:ep,styleId:ef}=getIdAndStyleId(eu.parentStyleSheet,eo,ei.styleMirror);return(ep&&-1!==ep||ef&&-1!==ef)&&et({id:ep,styleId:ef,removes:[{index:[...getNestedCSSRulePositions(eu),eh]}]}),ea.apply(eu,ed)})})}),callbackWrapper(()=>{ea.CSSStyleSheet.prototype.insertRule=eh,ea.CSSStyleSheet.prototype.deleteRule=ep,eu&&(ea.CSSStyleSheet.prototype.replace=eu),ed&&(ea.CSSStyleSheet.prototype.replaceSync=ed),Object.entries(ef).forEach(([et,eo])=>{eo.prototype.insertRule=em[et].insertRule,eo.prototype.deleteRule=em[et].deleteRule})})}function initAdoptedStyleSheetObserver({mirror:et,stylesheetManager:eo},ei){let ea=null;ea="#document"===ei.nodeName?et.getId(ei):et.getId(ei.host);let eu="#document"===ei.nodeName?_optionalChain$2([ei,"access",et=>et.defaultView,"optionalAccess",et=>et.Document]):_optionalChain$2([ei,"access",et=>et.ownerDocument,"optionalAccess",et=>et.defaultView,"optionalAccess",et=>et.ShadowRoot]),ed=_optionalChain$2([eu,"optionalAccess",et=>et.prototype])?Object.getOwnPropertyDescriptor(_optionalChain$2([eu,"optionalAccess",et=>et.prototype]),"adoptedStyleSheets"):void 0;return null!==ea&&-1!==ea&&eu&&ed?(Object.defineProperty(ei,"adoptedStyleSheets",{configurable:ed.configurable,enumerable:ed.enumerable,get(){return _optionalChain$2([ed,"access",et=>et.get,"optionalAccess",et=>et.call,"call",et=>et(this)])},set(et){let ei=_optionalChain$2([ed,"access",et=>et.set,"optionalAccess",et=>et.call,"call",eo=>eo(this,et)]);if(null!==ea&&-1!==ea)try{eo.adoptStyleSheets(et,ea)}catch(et){}return ei}}),callbackWrapper(()=>{Object.defineProperty(ei,"adoptedStyleSheets",{configurable:ed.configurable,enumerable:ed.enumerable,get:ed.get,set:ed.set})})):()=>{}}function initStyleDeclarationObserver({styleDeclarationCb:et,mirror:eo,ignoreCSSAttributes:ei,stylesheetManager:ea},{win:eu}){let ed=eu.CSSStyleDeclaration.prototype.setProperty;eu.CSSStyleDeclaration.prototype.setProperty=new Proxy(ed,{apply:callbackWrapper((eu,eh,ep)=>{let[ef,em,eg]=ep;if(ei.has(ef))return ed.apply(eh,[ef,em,eg]);let{id:ey,styleId:eC}=getIdAndStyleId(_optionalChain$2([eh,"access",et=>et.parentRule,"optionalAccess",et=>et.parentStyleSheet]),eo,ea.styleMirror);return(ey&&-1!==ey||eC&&-1!==eC)&&et({id:ey,styleId:eC,set:{property:ef,value:em,priority:eg},index:getNestedCSSRulePositions(eh.parentRule)}),eu.apply(eh,ep)})});let eh=eu.CSSStyleDeclaration.prototype.removeProperty;return eu.CSSStyleDeclaration.prototype.removeProperty=new Proxy(eh,{apply:callbackWrapper((eu,ed,ep)=>{let[ef]=ep;if(ei.has(ef))return eh.apply(ed,[ef]);let{id:em,styleId:eg}=getIdAndStyleId(_optionalChain$2([ed,"access",et=>et.parentRule,"optionalAccess",et=>et.parentStyleSheet]),eo,ea.styleMirror);return(em&&-1!==em||eg&&-1!==eg)&&et({id:em,styleId:eg,remove:{property:ef},index:getNestedCSSRulePositions(ed.parentRule)}),eu.apply(ed,ep)})}),callbackWrapper(()=>{eu.CSSStyleDeclaration.prototype.setProperty=ed,eu.CSSStyleDeclaration.prototype.removeProperty=eh})}function initMediaInteractionObserver({mediaInteractionCb:et,blockClass:eo,blockSelector:ei,unblockSelector:ea,mirror:eu,sampling:ed,doc:eh}){let ep=callbackWrapper(eh=>throttle$1(callbackWrapper(ed=>{let ep=esm_getEventTarget(ed);if(!ep||isBlocked(ep,eo,ei,ea,!0))return;let{currentTime:ef,volume:em,muted:eg,playbackRate:ey}=ep;et({type:eh,id:eu.getId(ep),currentTime:ef,volume:em,muted:eg,playbackRate:ey})}),ed.media||500)),ef=[on("play",ep(0),eh),on("pause",ep(1),eh),on("seeked",ep(2),eh),on("volumechange",ep(3),eh),on("ratechange",ep(4),eh)];return callbackWrapper(()=>{ef.forEach(et=>et())})}function initFontObserver({fontCb:et,doc:eo}){let ei=eo.defaultView;if(!ei)return()=>{};let ea=[],eu=new WeakMap,ed=ei.FontFace;ei.FontFace=function(et,eo,ei){let ea=new ed(et,eo,ei);return eu.set(ea,{family:et,buffer:"string"!=typeof eo,descriptors:ei,fontSource:"string"==typeof eo?eo:JSON.stringify(Array.from(new Uint8Array(eo)))}),ea};let eh=patch(eo.fonts,"add",function(eo){return function(ei){return setTimeout(callbackWrapper(()=>{let eo=eu.get(ei);eo&&(et(eo),eu.delete(ei))}),0),eo.apply(this,[ei])}});return ea.push(()=>{ei.FontFace=ed}),ea.push(eh),callbackWrapper(()=>{ea.forEach(et=>et())})}function initSelectionObserver(et){let{doc:eo,mirror:ei,blockClass:ea,blockSelector:eu,unblockSelector:ed,selectionCb:eh}=et,ep=!0,ef=callbackWrapper(()=>{let et=eo.getSelection();if(!et||ep&&_optionalChain$2([et,"optionalAccess",et=>et.isCollapsed]))return;ep=et.isCollapsed||!1;let ef=[],em=et.rangeCount||0;for(let eo=0;eo<em;eo++){let eh=et.getRangeAt(eo),{startContainer:ep,startOffset:em,endContainer:eg,endOffset:ey}=eh,eC=isBlocked(ep,ea,eu,ed,!0)||isBlocked(eg,ea,eu,ed,!0);eC||ef.push({start:ei.getId(ep),startOffset:em,end:ei.getId(eg),endOffset:ey})}eh({ranges:ef})});return ef(),on("selectionchange",ef)}function initCustomElementObserver({doc:et,customElementCb:eo}){let ei=et.defaultView;if(!ei||!ei.customElements)return()=>{};let ea=patch(ei.customElements,"define",function(et){return function(ei,ea,eu){try{eo({define:{name:ei}})}catch(et){}return et.apply(this,[ei,ea,eu])}});return ea}function initObservers(et,eo={}){let ei=et.doc.defaultView;if(!ei)return()=>{};let ea=initMutationObserver(et,et.doc),eu=initMoveObserver(et),ed=initMouseInteractionObserver(et),eh=initScrollObserver(et),ep=initViewportResizeObserver(et,{win:ei}),ef=initInputObserver(et),em=initMediaInteractionObserver(et),eg=initStyleSheetObserver(et,{win:ei}),ey=initAdoptedStyleSheetObserver(et,et.doc),eC=initStyleDeclarationObserver(et,{win:ei}),eS=et.collectFonts?initFontObserver(et):()=>{},e_=initSelectionObserver(et),ew=initCustomElementObserver(et),eA=[];for(let eo of et.plugins)eA.push(eo.observer(eo.callback,ei,eo.options));return callbackWrapper(()=>{n1.forEach(et=>et.reset()),ea.disconnect(),eu(),ed(),eh(),ep(),ef(),em(),eg(),ey(),eC(),eS(),e_(),ew(),eA.forEach(et=>et())})}function hasNestedCSSRule(et){return void 0!==window[et]}function canMonkeyPatchNestedCSSRule(et){return!!(void 0!==window[et]&&window[et].prototype&&"insertRule"in window[et].prototype&&"deleteRule"in window[et].prototype)}let CrossOriginIframeMirror=class CrossOriginIframeMirror{constructor(et){this.generateIdFn=et,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(et,eo,ei,ea){let eu=ei||this.getIdToRemoteIdMap(et),ed=ea||this.getRemoteIdToIdMap(et),eh=eu.get(eo);return eh||(eh=this.generateIdFn(),eu.set(eo,eh),ed.set(eh,eo)),eh}getIds(et,eo){let ei=this.getIdToRemoteIdMap(et),ea=this.getRemoteIdToIdMap(et);return eo.map(eo=>this.getId(et,eo,ei,ea))}getRemoteId(et,eo,ei){let ea=ei||this.getRemoteIdToIdMap(et);if("number"!=typeof eo)return eo;let eu=ea.get(eo);return eu||-1}getRemoteIds(et,eo){let ei=this.getRemoteIdToIdMap(et);return eo.map(eo=>this.getRemoteId(et,eo,ei))}reset(et){if(!et){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(et),this.iframeRemoteIdToIdMap.delete(et)}getIdToRemoteIdMap(et){let eo=this.iframeIdToRemoteIdMap.get(et);return eo||(eo=new Map,this.iframeIdToRemoteIdMap.set(et,eo)),eo}getRemoteIdToIdMap(et){let eo=this.iframeRemoteIdToIdMap.get(et);return eo||(eo=new Map,this.iframeRemoteIdToIdMap.set(et,eo)),eo}};function _optionalChain$1(et){let eo;let ei=et[0],ea=1;for(;ea<et.length;){let eu=et[ea],ed=et[ea+1];if(ea+=2,("optionalAccess"===eu||"optionalCall"===eu)&&null==ei)return;"access"===eu||"optionalAccess"===eu?(eo=ei,ei=ed(ei)):("call"===eu||"optionalCall"===eu)&&(ei=ed((...et)=>ei.call(eo,...et)),eo=void 0)}return ei}let IframeManagerNoop=class IframeManagerNoop{constructor(){this.crossOriginIframeMirror=new CrossOriginIframeMirror(genId),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}};let IframeManager=class IframeManager{constructor(et){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new CrossOriginIframeMirror(genId),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=et.mutationCb,this.wrappedEmit=et.wrappedEmit,this.stylesheetManager=et.stylesheetManager,this.recordCrossOriginIframes=et.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=et.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(et){this.iframes.set(et,!0),et.contentWindow&&this.crossOriginIframeMap.set(et.contentWindow,et)}addLoadListener(et){this.loadListener=et}attachIframe(et,eo){this.mutationCb({adds:[{parentId:this.mirror.getId(et),nextId:null,node:eo}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),_optionalChain$1([this,"access",et=>et.loadListener,"optionalCall",eo=>eo(et)]),et.contentDocument&&et.contentDocument.adoptedStyleSheets&&et.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(et.contentDocument.adoptedStyleSheets,this.mirror.getId(et.contentDocument))}handleMessage(et){let eo=et;if("rrweb"!==eo.data.type||eo.origin!==eo.data.origin)return;let ei=et.source;if(!ei)return;let ea=this.crossOriginIframeMap.get(et.source);if(!ea)return;let eu=this.transformCrossOriginEvent(ea,eo.data.event);eu&&this.wrappedEmit(eu,eo.data.isCheckout)}transformCrossOriginEvent(et,eo){switch(eo.type){case nZ.FullSnapshot:{this.crossOriginIframeMirror.reset(et),this.crossOriginIframeStyleMirror.reset(et),this.replaceIdOnNode(eo.data.node,et);let ei=eo.data.node.id;return this.crossOriginIframeRootIdMap.set(et,ei),this.patchRootIdOnNode(eo.data.node,ei),{timestamp:eo.timestamp,type:nZ.IncrementalSnapshot,data:{source:nQ.Mutation,adds:[{parentId:this.mirror.getId(et),nextId:null,node:eo.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case nZ.Meta:case nZ.Load:case nZ.DomContentLoaded:break;case nZ.Plugin:return eo;case nZ.Custom:return this.replaceIds(eo.data.payload,et,["id","parentId","previousId","nextId"]),eo;case nZ.IncrementalSnapshot:switch(eo.data.source){case nQ.Mutation:return eo.data.adds.forEach(eo=>{this.replaceIds(eo,et,["parentId","nextId","previousId"]),this.replaceIdOnNode(eo.node,et);let ei=this.crossOriginIframeRootIdMap.get(et);ei&&this.patchRootIdOnNode(eo.node,ei)}),eo.data.removes.forEach(eo=>{this.replaceIds(eo,et,["parentId","id"])}),eo.data.attributes.forEach(eo=>{this.replaceIds(eo,et,["id"])}),eo.data.texts.forEach(eo=>{this.replaceIds(eo,et,["id"])}),eo;case nQ.Drag:case nQ.TouchMove:case nQ.MouseMove:return eo.data.positions.forEach(eo=>{this.replaceIds(eo,et,["id"])}),eo;case nQ.ViewportResize:return!1;case nQ.MediaInteraction:case nQ.MouseInteraction:case nQ.Scroll:case nQ.CanvasMutation:case nQ.Input:return this.replaceIds(eo.data,et,["id"]),eo;case nQ.StyleSheetRule:case nQ.StyleDeclaration:return this.replaceIds(eo.data,et,["id"]),this.replaceStyleIds(eo.data,et,["styleId"]),eo;case nQ.Font:return eo;case nQ.Selection:return eo.data.ranges.forEach(eo=>{this.replaceIds(eo,et,["start","end"])}),eo;case nQ.AdoptedStyleSheet:return this.replaceIds(eo.data,et,["id"]),this.replaceStyleIds(eo.data,et,["styleIds"]),_optionalChain$1([eo,"access",et=>et.data,"access",et=>et.styles,"optionalAccess",et=>et.forEach,"call",eo=>eo(eo=>{this.replaceStyleIds(eo,et,["styleId"])})]),eo}}return!1}replace(et,eo,ei,ea){for(let eu of ea)(Array.isArray(eo[eu])||"number"==typeof eo[eu])&&(Array.isArray(eo[eu])?eo[eu]=et.getIds(ei,eo[eu]):eo[eu]=et.getId(ei,eo[eu]));return eo}replaceIds(et,eo,ei){return this.replace(this.crossOriginIframeMirror,et,eo,ei)}replaceStyleIds(et,eo,ei){return this.replace(this.crossOriginIframeStyleMirror,et,eo,ei)}replaceIdOnNode(et,eo){this.replaceIds(et,eo,["id","rootId"]),"childNodes"in et&&et.childNodes.forEach(et=>{this.replaceIdOnNode(et,eo)})}patchRootIdOnNode(et,eo){et.type===eF.Document||et.rootId||(et.rootId=eo),"childNodes"in et&&et.childNodes.forEach(et=>{this.patchRootIdOnNode(et,eo)})}};let ShadowDomManagerNoop=class ShadowDomManagerNoop{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}};let ShadowDomManager=class ShadowDomManager{constructor(et){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=et.mutationCb,this.scrollCb=et.scrollCb,this.bypassOptions=et.bypassOptions,this.mirror=et.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(et,eo){if(!isNativeShadowDom(et)||this.shadowDoms.has(et))return;this.shadowDoms.add(et);let ei=initMutationObserver({...this.bypassOptions,doc:eo,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},et);this.restoreHandlers.push(()=>ei.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:et,mirror:this.mirror})),setTimeout(()=>{et.adoptedStyleSheets&&et.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(et.adoptedStyleSheets,this.mirror.getId(et.host)),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},et))},0)}observeAttachShadow(et){et.contentWindow&&et.contentDocument&&this.patchAttachShadow(et.contentWindow.Element,et.contentDocument)}patchAttachShadow(et,eo){let ei=this;this.restoreHandlers.push(patch(et.prototype,"attachShadow",function(et){return function(ea){let eu=et.call(this,ea);return this.shadowRoot&&inDom(this)&&ei.addShadowRoot(this.shadowRoot,eo),eu}}))}reset(){this.restoreHandlers.forEach(et=>{try{et()}catch(et){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}};let CanvasManagerNoop=class CanvasManagerNoop{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}};let StylesheetManager=class StylesheetManager{constructor(et){this.trackedLinkElements=new WeakSet,this.styleMirror=new StyleSheetMirror,this.mutationCb=et.mutationCb,this.adoptedStyleSheetCb=et.adoptedStyleSheetCb}attachLinkElement(et,eo){"_cssText"in eo.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:eo.id,attributes:eo.attributes}]}),this.trackLinkElement(et)}trackLinkElement(et){this.trackedLinkElements.has(et)||(this.trackedLinkElements.add(et),this.trackStylesheetInLinkElement(et))}adoptStyleSheets(et,eo){if(0===et.length)return;let ei={id:eo,styleIds:[]},ea=[];for(let eo of et){let et;this.styleMirror.has(eo)?et=this.styleMirror.getId(eo):(et=this.styleMirror.add(eo),ea.push({styleId:et,rules:Array.from(eo.rules||CSSRule,(et,eo)=>({rule:stringifyRule(et),index:eo}))})),ei.styleIds.push(et)}ea.length>0&&(ei.styles=ea),this.adoptedStyleSheetCb(ei)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(et){}};let ProcessedNodeManager=class ProcessedNodeManager{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){onRequestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(et,eo){let ei=this.nodeMap.get(et);return ei&&Array.from(ei).some(et=>et!==eo)}add(et,eo){this.nodeMap.set(et,(this.nodeMap.get(et)||new Set).add(eo))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}};function wrapEvent(et){let eo=et;return eo.timestamp=n$(),eo}let n3=createMirror();function record(et={}){let eo;let{emit:ei,checkoutEveryNms:ea,checkoutEveryNth:eu,blockClass:ed="rr-block",blockSelector:eh=null,unblockSelector:ep=null,ignoreClass:ef="rr-ignore",ignoreSelector:em=null,maskAllText:eg=!1,maskTextClass:ey="rr-mask",unmaskTextClass:eC=null,maskTextSelector:eS=null,unmaskTextSelector:e_=null,inlineStylesheet:ew=!0,maskAllInputs:eA,maskInputOptions:eI,slimDOMOptions:eR,maskAttributeFn:eT,maskInputFn:eP,maskTextFn:ek,packFn:eO,sampling:eM={},dataURLOptions:eD={},mousemoveWait:eU,recordCanvas:eL=!1,recordCrossOriginIframes:eN=!1,recordAfter:eB="DOMContentLoaded"===et.recordAfter?et.recordAfter:"load",userTriggeredOnInput:eF=!1,collectFonts:ej=!1,inlineImages:eG=!1,plugins:eH,keepIframeSrcFn:eK=()=>!1,ignoreCSSAttributes:ez=new Set([]),errorHandler:eW,onMutation:eV,getCanvasManager:eJ}=et;registerErrorHandler(eW);let eY=!eN||window.parent===window,e$=!1;if(!eY)try{window.parent.document&&(e$=!1)}catch(et){e$=!0}if(eY&&!ei)throw Error("emit function is required");void 0!==eU&&void 0===eM.mousemove&&(eM.mousemove=eU),n3.reset();let eZ=!0===eA?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==eI?eI:{},eQ=!0===eR||"all"===eR?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===eR,headMetaDescKeywords:"all"===eR}:eR||{};polyfill();let eX=0,eventProcessor=et=>{for(let eo of eH||[])eo.eventProcessor&&(et=eo.eventProcessor(et));return eO&&!e$&&(et=eO(et)),et},wrappedEmit=(et,ed)=>{if(_optionalChain([n1,"access",et=>et[0],"optionalAccess",et=>et.isFrozen,"call",et=>et()])&&et.type!==nZ.FullSnapshot&&!(et.type===nZ.IncrementalSnapshot&&et.data.source===nQ.Mutation)&&n1.forEach(et=>et.unfreeze()),eY)_optionalChain([ei,"optionalCall",eo=>eo(eventProcessor(et),ed)]);else if(e$){let eo={type:"rrweb",event:eventProcessor(et),origin:window.location.origin,isCheckout:ed};window.parent.postMessage(eo,"*")}if(et.type===nZ.FullSnapshot)eo=et,eX=0;else if(et.type===nZ.IncrementalSnapshot){if(et.data.source===nQ.Mutation&&et.data.isAttachIframe)return;eX++;let ei=eu&&eX>=eu,ed=ea&&et.timestamp-eo.timestamp>ea;(ei||ed)&&takeFullSnapshot(!0)}},wrappedMutationEmit=et=>{wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.Mutation,...et}}))},wrappedScrollEmit=et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.Scroll,...et}})),wrappedCanvasMutationEmit=et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.CanvasMutation,...et}})),wrappedAdoptedStyleSheetEmit=et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.AdoptedStyleSheet,...et}})),e0=new StylesheetManager({mutationCb:wrappedMutationEmit,adoptedStyleSheetCb:wrappedAdoptedStyleSheetEmit}),e4="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new IframeManagerNoop:new IframeManager({mirror:n3,mutationCb:wrappedMutationEmit,stylesheetManager:e0,recordCrossOriginIframes:eN,wrappedEmit});for(let et of eH||[])et.getMirror&&et.getMirror({nodeMirror:n3,crossOriginIframeMirror:e4.crossOriginIframeMirror,crossOriginIframeStyleMirror:e4.crossOriginIframeStyleMirror});let e6=new ProcessedNodeManager,e5=_getCanvasManager(eJ,{mirror:n3,win:window,mutationCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.CanvasMutation,...et}})),recordCanvas:eL,blockClass:ed,blockSelector:eh,unblockSelector:ep,sampling:eM.canvas,dataURLOptions:eD,errorHandler:eW}),e8="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ShadowDomManagerNoop:new ShadowDomManager({mutationCb:wrappedMutationEmit,scrollCb:wrappedScrollEmit,bypassOptions:{onMutation:eV,blockClass:ed,blockSelector:eh,unblockSelector:ep,maskAllText:eg,maskTextClass:ey,unmaskTextClass:eC,maskTextSelector:eS,unmaskTextSelector:e_,inlineStylesheet:ew,maskInputOptions:eZ,dataURLOptions:eD,maskAttributeFn:eT,maskTextFn:ek,maskInputFn:eP,recordCanvas:eL,inlineImages:eG,sampling:eM,slimDOMOptions:eQ,iframeManager:e4,stylesheetManager:e0,canvasManager:e5,keepIframeSrcFn:eK,processedNodeManager:e6},mirror:n3}),takeFullSnapshot=(et=!1)=>{wrappedEmit(wrapEvent({type:nZ.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}}),et),e0.reset(),e8.init(),n1.forEach(et=>et.lock());let eo=snapshot(document,{mirror:n3,blockClass:ed,blockSelector:eh,unblockSelector:ep,maskAllText:eg,maskTextClass:ey,unmaskTextClass:eC,maskTextSelector:eS,unmaskTextSelector:e_,inlineStylesheet:ew,maskAllInputs:eZ,maskAttributeFn:eT,maskInputFn:eP,maskTextFn:ek,slimDOM:eQ,dataURLOptions:eD,recordCanvas:eL,inlineImages:eG,onSerialize:et=>{isSerializedIframe(et,n3)&&e4.addIframe(et),isSerializedStylesheet(et,n3)&&e0.trackLinkElement(et),hasShadowRoot(et)&&e8.addShadowRoot(et.shadowRoot,document)},onIframeLoad:(et,eo)=>{e4.attachIframe(et,eo),e8.observeAttachShadow(et)},onStylesheetLoad:(et,eo)=>{e0.attachLinkElement(et,eo)},keepIframeSrcFn:eK});if(!eo)return console.warn("Failed to snapshot the document");wrappedEmit(wrapEvent({type:nZ.FullSnapshot,data:{node:eo,initialOffset:getWindowScroll(window)}})),n1.forEach(et=>et.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&e0.adoptStyleSheets(document.adoptedStyleSheets,n3.getId(document))};eE=takeFullSnapshot;try{let et=[],observe=et=>callbackWrapper(initObservers)({onMutation:eV,mutationCb:wrappedMutationEmit,mousemoveCb:(et,eo)=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:eo,positions:et}})),mouseInteractionCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.MouseInteraction,...et}})),scrollCb:wrappedScrollEmit,viewportResizeCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.ViewportResize,...et}})),inputCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.Input,...et}})),mediaInteractionCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.MediaInteraction,...et}})),styleSheetRuleCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.StyleSheetRule,...et}})),styleDeclarationCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.StyleDeclaration,...et}})),canvasMutationCb:wrappedCanvasMutationEmit,fontCb:et=>wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.Font,...et}})),selectionCb:et=>{wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.Selection,...et}}))},customElementCb:et=>{wrappedEmit(wrapEvent({type:nZ.IncrementalSnapshot,data:{source:nQ.CustomElement,...et}}))},blockClass:ed,ignoreClass:ef,ignoreSelector:em,maskAllText:eg,maskTextClass:ey,unmaskTextClass:eC,maskTextSelector:eS,unmaskTextSelector:e_,maskInputOptions:eZ,inlineStylesheet:ew,sampling:eM,recordCanvas:eL,inlineImages:eG,userTriggeredOnInput:eF,collectFonts:ej,doc:et,maskAttributeFn:eT,maskInputFn:eP,maskTextFn:ek,keepIframeSrcFn:eK,blockSelector:eh,unblockSelector:ep,slimDOMOptions:eQ,dataURLOptions:eD,mirror:n3,iframeManager:e4,stylesheetManager:e0,shadowDomManager:e8,processedNodeManager:e6,canvasManager:e5,ignoreCSSAttributes:ez,plugins:_optionalChain([eH,"optionalAccess",et=>et.filter,"call",et=>et(et=>et.observer),"optionalAccess",et=>et.map,"call",et=>et(et=>({observer:et.observer,options:et.options,callback:eo=>wrappedEmit(wrapEvent({type:nZ.Plugin,data:{plugin:et.name,payload:eo}}))}))])||[]},{});e4.addLoadListener(eo=>{try{et.push(observe(eo.contentDocument))}catch(et){console.warn(et)}});let init=()=>{takeFullSnapshot(),et.push(observe(document))};return"interactive"===document.readyState||"complete"===document.readyState?init():(et.push(on("DOMContentLoaded",()=>{wrappedEmit(wrapEvent({type:nZ.DomContentLoaded,data:{}})),"DOMContentLoaded"===eB&&init()})),et.push(on("load",()=>{wrappedEmit(wrapEvent({type:nZ.Load,data:{}})),"load"===eB&&init()},window))),()=>{et.forEach(et=>et()),e6.destroy(),eE=void 0,unregisterErrorHandler()}}catch(et){console.warn(et)}}function takeFullSnapshot(et){if(!eE)throw Error("please take full snapshot after start recording");eE(et)}function _getCanvasManager(et,eo){try{return et?et(eo):new CanvasManagerNoop}catch(et){return console.warn("Unable to initialize CanvasManager"),new CanvasManagerNoop}}record.mirror=n3,record.takeFullSnapshot=takeFullSnapshot;let n6=3,n5=5;function timestampToMs(et){let eo=et>9999999999;return eo?et:1e3*et}function timestampToS(et){let eo=et>9999999999;return eo?et/1e3:et}function addBreadcrumbEvent(et,eo){"sentry.transaction"!==eo.category&&(["ui.click","ui.input"].includes(eo.category)?et.triggerUserActivity():et.checkAndHandleExpiredSession(),et.addUpdate(()=>(et.throttledAddEvent({type:nZ.Custom,timestamp:1e3*(eo.timestamp||0),data:{tag:"breadcrumb",payload:(0,tI.Fv)(eo,10,1e3)}}),"console"===eo.category)))}let n8="button,a";function getClosestInteractive(et){let eo=et.closest(n8);return eo||et}function getClickTargetNode(et){let eo=getTargetNode(et);return eo&&eo instanceof Element?getClosestInteractive(eo):eo}function getTargetNode(et){return isEventWithTarget(et)?et.target:et}function isEventWithTarget(et){return"object"==typeof et&&!!et&&"target"in et}function onWindowOpen(et){return eP||(eP=[],monkeyPatchWindowOpen()),eP.push(et),()=>{let eo=eP?eP.indexOf(et):-1;eo>-1&&eP.splice(eo,1)}}function monkeyPatchWindowOpen(){(0,eW.hl)(nv,"open",function(et){return function(...eo){if(eP)try{eP.forEach(et=>et())}catch(et){}return et.apply(nv,eo)}})}function handleClick(et,eo,ei){et.handleClick(eo,ei)}let ClickDetector=class ClickDetector{constructor(et,eo,ei=addBreadcrumbEvent){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=eo.timeout/1e3,this._threshold=eo.threshold/1e3,this._scollTimeout=eo.scrollTimeout/1e3,this._replay=et,this._ignoreSelector=eo.ignoreSelector,this._addBreadcrumbEvent=ei}addListeners(){let et=onWindowOpen(()=>{this._lastMutation=nowInSeconds()});this._teardown=()=>{et(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(et,eo){if(ignoreElement(eo,this._ignoreSelector)||!isClickBreadcrumb(et))return;let ei={timestamp:timestampToS(et.timestamp),clickBreadcrumb:et,clickCount:0,node:eo};this._clicks.some(et=>et.node===ei.node&&1>Math.abs(et.timestamp-ei.timestamp))||(this._clicks.push(ei),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(et=Date.now()){this._lastMutation=timestampToS(et)}registerScroll(et=Date.now()){this._lastScroll=timestampToS(et)}registerClick(et){let eo=getClosestInteractive(et);this._handleMultiClick(eo)}_handleMultiClick(et){this._getClicks(et).forEach(et=>{et.clickCount++})}_getClicks(et){return this._clicks.filter(eo=>eo.node===et)}_checkClicks(){let et=[],eo=nowInSeconds();for(let ei of(this._clicks.forEach(ei=>{!ei.mutationAfter&&this._lastMutation&&(ei.mutationAfter=ei.timestamp<=this._lastMutation?this._lastMutation-ei.timestamp:void 0),!ei.scrollAfter&&this._lastScroll&&(ei.scrollAfter=ei.timestamp<=this._lastScroll?this._lastScroll-ei.timestamp:void 0),ei.timestamp+this._timeout<=eo&&et.push(ei)}),et)){let et=this._clicks.indexOf(ei);et>-1&&(this._generateBreadcrumbs(ei),this._clicks.splice(et,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(et){let eo=this._replay,ei=et.scrollAfter&&et.scrollAfter<=this._scollTimeout,ea=et.mutationAfter&&et.mutationAfter<=this._threshold,eu=!ei&&!ea,{clickCount:ed,clickBreadcrumb:eh}=et;if(eu){let ei=1e3*Math.min(et.mutationAfter||this._timeout,this._timeout),ea=ei<1e3*this._timeout?"mutation":"timeout",eu={type:"default",message:eh.message,timestamp:eh.timestamp,category:"ui.slowClickDetected",data:{...eh.data,url:nv.location.href,route:eo.getCurrentRoute(),timeAfterClickMs:ei,endReason:ea,clickCount:ed||1}};this._addBreadcrumbEvent(eo,eu);return}if(ed>1){let et={type:"default",message:eh.message,timestamp:eh.timestamp,category:"ui.multiClick",data:{...eh.data,url:nv.location.href,route:eo.getCurrentRoute(),clickCount:ed,metric:!0}};this._addBreadcrumbEvent(eo,et)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}};let n7=["A","BUTTON","INPUT"];function ignoreElement(et,eo){return!!(!n7.includes(et.tagName)||"INPUT"===et.tagName&&!["submit","button"].includes(et.getAttribute("type")||"")||"A"===et.tagName&&(et.hasAttribute("download")||et.hasAttribute("target")&&"_self"!==et.getAttribute("target"))||eo&&et.matches(eo))}function isClickBreadcrumb(et){return!!(et.data&&"number"==typeof et.data.nodeId&&et.timestamp)}function nowInSeconds(){return Date.now()/1e3}function updateClickDetectorForRecordingEvent(et,eo){try{if(!isIncrementalEvent(eo))return;let{source:ei}=eo.data;if(ei===nQ.Mutation&&et.registerMutation(eo.timestamp),ei===nQ.Scroll&&et.registerScroll(eo.timestamp),isIncrementalMouseInteraction(eo)){let{type:ei,id:ea}=eo.data,eu=record.mirror.getNode(ea);eu instanceof HTMLElement&&ei===nX.Click&&et.registerClick(eu)}}catch(et){}}function isIncrementalEvent(et){return et.type===n6}function isIncrementalMouseInteraction(et){return et.data.source===nQ.MouseInteraction}function createBreadcrumb(et){return{timestamp:Date.now()/1e3,type:"default",...et}}!function(et){et[et.Document=0]="Document",et[et.DocumentType=1]="DocumentType",et[et.Element=2]="Element",et[et.Text=3]="Text",et[et.CDATA=4]="CDATA",et[et.Comment=5]="Comment"}(ej||(ej={}));let n9=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function getAttributesToRecord(et){let eo={};for(let ei in et)if(n9.has(ei)){let ea=ei;("data-testid"===ei||"data-test-id"===ei)&&(ea="testId"),eo[ea]=et[ei]}return eo}let handleDomListener=et=>eo=>{if(!et.isEnabled())return;let ei=handleDom(eo);if(!ei)return;let ea="click"===eo.name,eu=ea?eo.event:void 0;ea&&et.clickDetector&&eu&&eu.target&&!eu.altKey&&!eu.metaKey&&!eu.ctrlKey&&!eu.shiftKey&&handleClick(et.clickDetector,ei,getClickTargetNode(eo.event)),addBreadcrumbEvent(et,ei)};function getBaseDomBreadcrumb(et,eo){let ei=record.mirror.getId(et),ea=ei&&record.mirror.getNode(ei),eu=ea&&record.mirror.getMeta(ea),ed=eu&&isElement(eu)?eu:null;return{message:eo,data:ed?{nodeId:ei,node:{id:ei,tagName:ed.tagName,textContent:Array.from(ed.childNodes).map(et=>et.type===ej.Text&&et.textContent).filter(Boolean).map(et=>et.trim()).join(""),attributes:getAttributesToRecord(ed.attributes)}}:{}}}function handleDom(et){let{target:eo,message:ei}=getDomTarget(et);return createBreadcrumb({category:`ui.${et.name}`,...getBaseDomBreadcrumb(eo,ei)})}function getDomTarget(et){let eo;let ei="click"===et.name,ea=null;try{ea=ei?getClickTargetNode(et.event):getTargetNode(et.event),eo=(0,tw.Rt)(ea,{maxStringLength:200})||"<unknown>"}catch(et){eo="<unknown>"}return{target:ea,message:eo}}function isElement(et){return et.type===ej.Element}function handleKeyboardEvent(et,eo){if(!et.isEnabled())return;et.updateUserActivity();let ei=getKeyboardBreadcrumb(eo);ei&&addBreadcrumbEvent(et,ei)}function getKeyboardBreadcrumb(et){let{metaKey:eo,shiftKey:ei,ctrlKey:ea,altKey:eu,key:ed,target:eh}=et;if(!eh||isInputElement(eh)||!ed)return null;let ep=eo||ea||eu,ef=1===ed.length;if(!ep&&ef)return null;let em=(0,tw.Rt)(eh,{maxStringLength:200})||"<unknown>",eg=getBaseDomBreadcrumb(eh,em);return createBreadcrumb({category:"ui.keyDown",message:em,data:{...eg.data,metaKey:eo,shiftKey:ei,ctrlKey:ea,altKey:eu,key:ed}})}function isInputElement(et){return"INPUT"===et.tagName||"TEXTAREA"===et.tagName||et.isContentEditable}let ot={resource:createResourceEntry,paint:createPaintEntry,navigation:createNavigationEntry};function createPerformanceEntries(et){return et.map(createPerformanceEntry).filter(Boolean)}function createPerformanceEntry(et){return ot[et.entryType]?ot[et.entryType](et):null}function esm_getAbsoluteTime(et){return((ra.Z1||nv.performance.timeOrigin)+et)/1e3}function createPaintEntry(et){let{duration:eo,entryType:ei,name:ea,startTime:eu}=et,ed=esm_getAbsoluteTime(eu);return{type:ei,name:ea,start:ed,end:ed+eo,data:void 0}}function createNavigationEntry(et){let{entryType:eo,name:ei,decodedBodySize:ea,duration:eu,domComplete:ed,encodedBodySize:eh,domContentLoadedEventStart:ep,domContentLoadedEventEnd:ef,domInteractive:em,loadEventStart:eg,loadEventEnd:ey,redirectCount:eC,startTime:eS,transferSize:e_,type:ew}=et;return 0===eu?null:{type:`${eo}.${ew}`,start:esm_getAbsoluteTime(eS),end:esm_getAbsoluteTime(ed),name:ei,data:{size:e_,decodedBodySize:ea,encodedBodySize:eh,duration:eu,domInteractive:em,domContentLoadedEventStart:ep,domContentLoadedEventEnd:ef,loadEventStart:eg,loadEventEnd:ey,domComplete:ed,redirectCount:eC}}}function createResourceEntry(et){let{entryType:eo,initiatorType:ei,name:ea,responseEnd:eu,startTime:ed,decodedBodySize:eh,encodedBodySize:ep,responseStatus:ef,transferSize:em}=et;return["fetch","xmlhttprequest"].includes(ei)?null:{type:`${eo}.${ei}`,start:esm_getAbsoluteTime(ed),end:esm_getAbsoluteTime(eu),name:ea,data:{size:em,statusCode:ef,decodedBodySize:eh,encodedBodySize:ep}}}function getLargestContentfulPaint(et){let eo=et.entries,ei=eo[eo.length-1],ea=ei?ei.element:void 0,eu=et.value,ed=esm_getAbsoluteTime(eu),eh={type:"largest-contentful-paint",name:"largest-contentful-paint",start:ed,end:ed,data:{value:eu,size:eu,nodeId:ea?record.mirror.getId(ea):void 0}};return eh}function setupPerformanceObserver(et){function addPerformanceEntry(eo){et.performanceEntries.includes(eo)||et.performanceEntries.push(eo)}function onEntries({entries:et}){et.forEach(addPerformanceEntry)}let eo=[];return["navigation","paint","resource"].forEach(et=>{eo.push(addPerformanceInstrumentationHandler(et,onEntries))}),eo.push(addLcpInstrumentationHandler(({metric:eo})=>{et.replayPerformanceEntries.push(getLargestContentfulPaint(eo))})),()=>{eo.forEach(et=>et())}}let or="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,oo='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function e(){let et=new Blob([oo]);return URL.createObjectURL(et)}function logInfo(et,eo){or&&(eJ.kg.info(et),eo&&addLogBreadcrumb(et))}function logInfoNextTick(et,eo){or&&(eJ.kg.info(et),eo&&setTimeout(()=>{addLogBreadcrumb(et)},0))}function addLogBreadcrumb(et){(0,ez.n_)({category:"console",data:{logger:"replay"},level:"info",message:et},{level:"info"})}let EventBufferSizeExceededError=class EventBufferSizeExceededError extends Error{constructor(){super(`Event buffer exceeded maximum size of ${nD}.`)}};let EventBufferArray=class EventBufferArray{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(et){let eo=JSON.stringify(et).length;if(this._totalSize+=eo,this._totalSize>nD)throw new EventBufferSizeExceededError;this.events.push(et)}finish(){return new Promise(et=>{let eo=this.events;this.clear(),et(JSON.stringify(eo))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let et=this.events.map(et=>et.timestamp).sort()[0];return et?timestampToMs(et):null}};let WorkerHandler=class WorkerHandler{constructor(et){this._worker=et,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((et,eo)=>{this._worker.addEventListener("message",({data:ei})=>{ei.success?et():eo()},{once:!0}),this._worker.addEventListener("error",et=>{eo(et)},{once:!0})})),this._ensureReadyPromise}destroy(){logInfo("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(et,eo){let ei=this._getAndIncrementId();return new Promise((ea,eu)=>{let listener=({data:eo})=>{let ed=eo;if(ed.method===et&&ed.id===ei){if(this._worker.removeEventListener("message",listener),!ed.success){or&&eJ.kg.error("[Replay]",ed.response),eu(Error("Error in compression worker"));return}ea(ed.response)}};this._worker.addEventListener("message",listener),this._worker.postMessage({id:ei,method:et,arg:eo})})}_getAndIncrementId(){return this._id++}};let EventBufferCompressionWorker=class EventBufferCompressionWorker{constructor(et){this._worker=new WorkerHandler(et),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(et){let eo=timestampToMs(et.timestamp);(!this._earliestTimestamp||eo<this._earliestTimestamp)&&(this._earliestTimestamp=eo);let ei=JSON.stringify(et);return(this._totalSize+=ei.length,this._totalSize>nD)?Promise.reject(new EventBufferSizeExceededError):this._sendEventToWorker(ei)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,et=>{or&&eJ.kg.warn('[Replay] Sending "clear" message to worker failed',et)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(et){return this._worker.postMessage("addEvent",et)}async _finishRequest(){let et=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,et}};let EventBufferProxy=class EventBufferProxy{constructor(et){this._fallback=new EventBufferArray,this._compression=new EventBufferCompressionWorker(et),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(et){this._used.hasCheckout=et}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(et){return this._used.addEvent(et)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(et){logInfo("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:et,hasCheckout:eo}=this._fallback,ei=[];for(let eo of et)ei.push(this._compression.addEvent(eo));this._compression.hasCheckout=eo,this._used=this._compression;try{await Promise.all(ei)}catch(et){or&&eJ.kg.warn("[Replay] Failed to add events when switching buffers.",et)}}};function createEventBuffer({useCompression:et,workerUrl:eo}){if(et&&window.Worker){let et=_loadWorker(eo);if(et)return et}return logInfo("[Replay] Using simple buffer"),new EventBufferArray}function _loadWorker(et){try{let eo=et||_getWorkerUrl();if(!eo)return;logInfo(`[Replay] Using compression worker${et?` from ${et}`:""}`);let ei=new Worker(eo);return new EventBufferProxy(ei)}catch(et){logInfo("[Replay] Failed to create compression worker")}}function _getWorkerUrl(){return"undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":e()}function hasSessionStorage(){try{return"sessionStorage"in nv&&!!nv.sessionStorage}catch(et){return!1}}function clearSession(et){deleteSession(),et.session=void 0}function deleteSession(){if(hasSessionStorage())try{nv.sessionStorage.removeItem(nC)}catch(et){}}function isSampled(et){return void 0!==et&&Math.random()<et}function makeSession(et){let eo=Date.now(),ei=et.id||(0,eV.DM)(),ea=et.started||eo,eu=et.lastActivity||eo,ed=et.segmentId||0,eh=et.sampled,ep=et.previousSessionId;return{id:ei,started:ea,lastActivity:eu,segmentId:ed,sampled:eh,previousSessionId:ep}}function saveSession(et){if(hasSessionStorage())try{nv.sessionStorage.setItem(nC,JSON.stringify(et))}catch(et){}}function getSessionSampleType(et,eo){return isSampled(et)?"session":!!eo&&"buffer"}function createSession({sessionSampleRate:et,allowBuffering:eo,stickySession:ei=!1},{previousSessionId:ea}={}){let eu=getSessionSampleType(et,eo),ed=makeSession({sampled:eu,previousSessionId:ea});return ei&&saveSession(ed),ed}function fetchSession(et){if(!hasSessionStorage())return null;try{let eo=nv.sessionStorage.getItem(nC);if(!eo)return null;let ei=JSON.parse(eo);return logInfoNextTick("[Replay] Loading existing session",et),makeSession(ei)}catch(et){return null}}function isExpired(et,eo,ei=+new Date){return null===et||void 0===eo||eo<0||0!==eo&&et+eo<=ei}function isSessionExpired(et,{maxReplayDuration:eo,sessionIdleExpire:ei,targetTime:ea=Date.now()}){return isExpired(et.started,eo,ea)||isExpired(et.lastActivity,ei,ea)}function shouldRefreshSession(et,{sessionIdleExpire:eo,maxReplayDuration:ei}){return!!isSessionExpired(et,{sessionIdleExpire:eo,maxReplayDuration:ei})&&("buffer"!==et.sampled||0!==et.segmentId)}function loadOrCreateSession({traceInternals:et,sessionIdleExpire:eo,maxReplayDuration:ei,previousSessionId:ea},eu){let ed=eu.stickySession&&fetchSession(et);return ed?shouldRefreshSession(ed,{sessionIdleExpire:eo,maxReplayDuration:ei})?(logInfoNextTick("[Replay] Session in sessionStorage is expired, creating new one..."),createSession(eu,{previousSessionId:ed.id})):ed:(logInfoNextTick("[Replay] Creating new session",et),createSession(eu,{previousSessionId:ea}))}function isCustomEvent(et){return et.type===nZ.Custom}function addEventSync(et,eo,ei){return!!shouldAddEvent(et,eo)&&(_addEvent(et,eo,ei),!0)}function addEvent(et,eo,ei){return shouldAddEvent(et,eo)?_addEvent(et,eo,ei):Promise.resolve(null)}async function _addEvent(et,eo,ei){if(!et.eventBuffer)return null;try{ei&&"buffer"===et.recordingMode&&et.eventBuffer.clear(),ei&&(et.eventBuffer.hasCheckout=!0);let ea=et.getOptions(),eu=maybeApplyCallback(eo,ea.beforeAddRecordingEvent);if(!eu)return;return await et.eventBuffer.addEvent(eu)}catch(ea){let eo=ea&&ea instanceof EventBufferSizeExceededError?"addEventSizeExceeded":"addEvent";or&&eJ.kg.error(ea),await et.stop({reason:eo});let ei=(0,ez.s3)();ei&&ei.recordDroppedEvent("internal_sdk_error","replay")}}function shouldAddEvent(et,eo){if(!et.eventBuffer||et.isPaused()||!et.isEnabled())return!1;let ei=timestampToMs(eo.timestamp);return!(ei+et.timeouts.sessionIdlePause<Date.now())&&(!(ei>et.getContext().initialTimestamp+et.getOptions().maxReplayDuration)||(logInfo(`[Replay] Skipping event with timestamp ${ei} because it is after maxReplayDuration`,et.getOptions()._experiments.traceInternals),!1))}function maybeApplyCallback(et,eo){try{if("function"==typeof eo&&isCustomEvent(et))return eo(et)}catch(et){return or&&eJ.kg.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",et),null}return et}function esm_isErrorEvent(et){return!et.type}function esm_isTransactionEvent(et){return"transaction"===et.type}function isReplayEvent(et){return"replay_event"===et.type}function isFeedbackEvent(et){return"feedback"===et.type}function handleAfterSendEvent(et){let eo=isBaseTransportSend();return(ei,ea)=>{if(!et.isEnabled()||!esm_isErrorEvent(ei)&&!esm_isTransactionEvent(ei))return;let eu=ea&&ea.statusCode;if(!eo||eu&&!(eu<200)&&!(eu>=300)){if(esm_isTransactionEvent(ei)){handleTransactionEvent(et,ei);return}handleErrorEvent(et,ei)}}}function handleTransactionEvent(et,eo){let ei=et.getContext();eo.contexts&&eo.contexts.trace&&eo.contexts.trace.trace_id&&ei.traceIds.size<100&&ei.traceIds.add(eo.contexts.trace.trace_id)}function handleErrorEvent(et,eo){let ei=et.getContext();if(eo.event_id&&ei.errorIds.size<100&&ei.errorIds.add(eo.event_id),"buffer"!==et.recordingMode||!eo.tags||!eo.tags.replayId)return;let{beforeErrorSampling:ea}=et.getOptions();("function"!=typeof ea||ea(eo))&&setTimeout(()=>{et.sendBufferedReplayOrFlush()})}function isBaseTransportSend(){let et=(0,ez.s3)();if(!et)return!1;let eo=et.getTransport();return!!eo&&(eo.send.__sentry__baseTransport__||!1)}function handleBeforeSendEvent(et){return eo=>{et.isEnabled()&&esm_isErrorEvent(eo)&&handleHydrationError(et,eo)}}function handleHydrationError(et,eo){let ei=eo.exception&&eo.exception.values&&eo.exception.values[0].value;if("string"==typeof ei&&(ei.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||ei.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let eo=createBreadcrumb({category:"replay.hydrate-error"});addBreadcrumbEvent(et,eo)}}function isRrwebError(et,eo){return!et.type&&!!et.exception&&!!et.exception.values&&!!et.exception.values.length&&!!eo.originalException&&!!eo.originalException.__rrweb__}function addFeedbackBreadcrumb(et,eo){et.triggerUserActivity(),et.addUpdate(()=>!eo.timestamp||(et.throttledAddEvent({type:nZ.Custom,timestamp:1e3*eo.timestamp,data:{tag:"breadcrumb",payload:{timestamp:eo.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:eo.event_id}}}}),!1))}function shouldSampleForBufferEvent(et,eo){return"buffer"===et.recordingMode&&eo.message!==n_&&!!eo.exception&&!eo.type&&isSampled(et.getOptions().errorSampleRate)}function handleGlobalEventListener(et,eo=!1){let ei=eo?handleAfterSendEvent(et):void 0;return Object.assign((eo,ea)=>{if(!et.isEnabled())return eo;if(isReplayEvent(eo))return delete eo.breadcrumbs,eo;if(!esm_isErrorEvent(eo)&&!esm_isTransactionEvent(eo)&&!isFeedbackEvent(eo))return eo;let eu=et.checkAndHandleExpiredSession();if(!eu)return eo;if(isFeedbackEvent(eo))return et.flush(),eo.contexts.feedback.replay_id=et.getSessionId(),addFeedbackBreadcrumb(et,eo),eo;if(isRrwebError(eo,ea)&&!et.getOptions()._experiments.captureExceptions)return or&&eJ.kg.log("[Replay] Ignoring error from rrweb internals",eo),null;let ed=shouldSampleForBufferEvent(et,eo),eh=ed||"session"===et.recordingMode;return eh&&(eo.tags={...eo.tags,replayId:et.getSessionId()}),ei&&ei(eo,{statusCode:200}),eo},{id:"Replay"})}function createPerformanceSpans(et,eo){return eo.map(({type:eo,start:ei,end:ea,name:eu,data:ed})=>{let eh=et.throttledAddEvent({type:nZ.Custom,timestamp:ei,data:{tag:"performanceSpan",payload:{op:eo,description:eu,startTimestamp:ei,endTimestamp:ea,data:ed}}});return"string"==typeof eh?Promise.resolve(null):eh})}function handleHistory(et){let{from:eo,to:ei}=et,ea=Date.now()/1e3;return{type:"navigation.push",start:ea,end:ea,name:ei,data:{previous:eo}}}function handleHistorySpanListener(et){return eo=>{if(!et.isEnabled())return;let ei=handleHistory(eo);null!==ei&&(et.getContext().urls.push(ei.name),et.triggerUserActivity(),et.addUpdate(()=>(createPerformanceSpans(et,[ei]),!1)))}}function shouldFilterRequest(et,eo){return(!or||!et.getOptions()._experiments.traceInternals)&&isSentryRequestUrl(eo,(0,ez.s3)())}function addNetworkBreadcrumb(et,eo){!et.isEnabled()||null===eo||shouldFilterRequest(et,eo.name)||et.addUpdate(()=>(createPerformanceSpans(et,[eo]),!0))}function handleFetch(et){let{startTimestamp:eo,endTimestamp:ei,fetchData:ea,response:eu}=et;if(!ei)return null;let{method:ed,url:eh}=ea;return{type:"resource.fetch",start:eo/1e3,end:ei/1e3,name:eh,data:{method:ed,statusCode:eu?eu.status:void 0}}}function handleFetchSpanListener(et){return eo=>{if(!et.isEnabled())return;let ei=handleFetch(eo);addNetworkBreadcrumb(et,ei)}}function handleXhr(et){let{startTimestamp:eo,endTimestamp:ei,xhr:ea}=et,eu=ea[tq];if(!eo||!ei||!eu)return null;let{method:ed,url:eh,status_code:ep}=eu;return void 0===eh?null:{type:"resource.xhr",name:eh,start:eo/1e3,end:ei/1e3,data:{method:ed,statusCode:ep}}}function handleXhrSpanListener(et){return eo=>{if(!et.isEnabled())return;let ei=handleXhr(eo);addNetworkBreadcrumb(et,ei)}}function getBodySize(et,eo){if(et)try{if("string"==typeof et)return eo.encode(et).length;if(et instanceof URLSearchParams)return eo.encode(et.toString()).length;if(et instanceof FormData){let ei=_serializeFormData(et);return eo.encode(ei).length}if(et instanceof Blob)return et.size;if(et instanceof ArrayBuffer)return et.byteLength}catch(et){}}function parseContentLengthHeader(et){if(!et)return;let eo=parseInt(et,10);return isNaN(eo)?void 0:eo}function getBodyString(et){try{if("string"==typeof et)return[et];if(et instanceof URLSearchParams)return[et.toString()];if(et instanceof FormData)return[_serializeFormData(et)];if(!et)return[void 0]}catch(eo){return or&&eJ.kg.warn("[Replay] Failed to serialize body",et),[void 0,"BODY_PARSE_ERROR"]}return or&&eJ.kg.info("[Replay] Skipping network body because of body type",et),[void 0,"UNPARSEABLE_BODY_TYPE"]}function mergeWarning(et,eo){if(!et)return{headers:{},size:void 0,_meta:{warnings:[eo]}};let ei={...et._meta},ea=ei.warnings||[];return ei.warnings=[...ea,eo],et._meta=ei,et}function makeNetworkReplayBreadcrumb(et,eo){if(!eo)return null;let{startTimestamp:ei,endTimestamp:ea,url:eu,method:ed,statusCode:eh,request:ep,response:ef}=eo,em={type:et,start:ei/1e3,end:ea/1e3,name:eu,data:(0,eW.Jr)({method:ed,statusCode:eh,request:ep,response:ef})};return em}function buildSkippedNetworkRequestOrResponse(et){return{headers:{},size:et,_meta:{warnings:["URL_SKIPPED"]}}}function buildNetworkRequestOrResponse(et,eo,ei){if(!eo&&0===Object.keys(et).length)return;if(!eo)return{headers:et};if(!ei)return{headers:et,size:eo};let ea={headers:et,size:eo},{body:eu,warnings:ed}=normalizeNetworkBody(ei);return ea.body=eu,ed&&ed.length>0&&(ea._meta={warnings:ed}),ea}function getAllowedHeaders(et,eo){return Object.keys(et).reduce((ei,ea)=>{let eu=ea.toLowerCase();return eo.includes(eu)&&et[ea]&&(ei[eu]=et[ea]),ei},{})}function _serializeFormData(et){return new URLSearchParams(et).toString()}function normalizeNetworkBody(et){if(!et||"string"!=typeof et)return{body:et};let eo=et.length>nk,ei=_strIsProbablyJson(et);if(eo){let eo=et.slice(0,nk);return ei?{body:eo,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${eo}…`,warnings:["TEXT_TRUNCATED"]}}if(ei)try{let eo=JSON.parse(et);return{body:eo}}catch(et){}return{body:et}}function _strIsProbablyJson(et){let eo=et[0],ei=et[et.length-1];return"["===eo&&"]"===ei||"{"===eo&&"}"===ei}function urlMatches(et,eo){let ei=getFullUrl(et);return(0,e5.U0)(ei,eo)}function getFullUrl(et,eo=nv.document.baseURI){if(et.startsWith("http://")||et.startsWith("https://")||et.startsWith(nv.location.origin))return et;let ei=new URL(et,eo);if(ei.origin!==new URL(eo).origin)return et;let ea=ei.href;return!et.endsWith("/")&&ea.endsWith("/")?ea.slice(0,-1):ea}async function captureFetchBreadcrumbToReplay(et,eo,ei){try{let ea=await _prepareFetchData(et,eo,ei),eu=makeNetworkReplayBreadcrumb("resource.fetch",ea);addNetworkBreadcrumb(ei.replay,eu)}catch(et){or&&eJ.kg.error("[Replay] Failed to capture fetch breadcrumb",et)}}function enrichFetchBreadcrumb(et,eo,ei){let{input:ea,response:eu}=eo,ed=ea?_getFetchRequestArgBody(ea):void 0,eh=getBodySize(ed,ei.textEncoder),ep=eu?parseContentLengthHeader(eu.headers.get("content-length")):void 0;void 0!==eh&&(et.data.request_body_size=eh),void 0!==ep&&(et.data.response_body_size=ep)}async function _prepareFetchData(et,eo,ei){let ea=Date.now(),{startTimestamp:eu=ea,endTimestamp:ed=ea}=eo,{url:eh,method:ep,status_code:ef=0,request_body_size:em,response_body_size:eg}=et.data,ey=urlMatches(eh,ei.networkDetailAllowUrls)&&!urlMatches(eh,ei.networkDetailDenyUrls),eC=ey?_getRequestInfo(ei,eo.input,em):buildSkippedNetworkRequestOrResponse(em),eS=await _getResponseInfo(ey,ei,eo.response,eg);return{startTimestamp:eu,endTimestamp:ed,url:eh,method:ep,statusCode:ef,request:eC,response:eS}}function _getRequestInfo({networkCaptureBodies:et,networkRequestHeaders:eo},ei,ea){let eu=ei?getRequestHeaders(ei,eo):{};if(!et)return buildNetworkRequestOrResponse(eu,ea,void 0);let ed=_getFetchRequestArgBody(ei),[eh,ep]=getBodyString(ed),ef=buildNetworkRequestOrResponse(eu,ea,eh);return ep?mergeWarning(ef,ep):ef}async function _getResponseInfo(et,{networkCaptureBodies:eo,textEncoder:ei,networkResponseHeaders:ea},eu,ed){if(!et&&void 0!==ed)return buildSkippedNetworkRequestOrResponse(ed);let eh=eu?getAllHeaders(eu.headers,ea):{};if(!eu||!eo&&void 0!==ed)return buildNetworkRequestOrResponse(eh,ed,void 0);let[ep,ef]=await _parseFetchResponseBody(eu),em=getResponseData(ep,{networkCaptureBodies:eo,textEncoder:ei,responseBodySize:ed,captureDetails:et,headers:eh});return ef?mergeWarning(em,ef):em}function getResponseData(et,{networkCaptureBodies:eo,textEncoder:ei,responseBodySize:ea,captureDetails:eu,headers:ed}){try{let eh=et&&et.length&&void 0===ea?getBodySize(et,ei):ea;if(!eu)return buildSkippedNetworkRequestOrResponse(eh);if(eo)return buildNetworkRequestOrResponse(ed,eh,et);return buildNetworkRequestOrResponse(ed,eh,void 0)}catch(et){return or&&eJ.kg.warn("[Replay] Failed to serialize response body",et),buildNetworkRequestOrResponse(ed,ea,void 0)}}async function _parseFetchResponseBody(et){let eo=_tryCloneResponse(et);if(!eo)return[void 0,"BODY_PARSE_ERROR"];try{let et=await _tryGetResponseText(eo);return[et]}catch(et){return or&&eJ.kg.warn("[Replay] Failed to get text body from response",et),[void 0,"BODY_PARSE_ERROR"]}}function _getFetchRequestArgBody(et=[]){if(2===et.length&&"object"==typeof et[1])return et[1].body}function getAllHeaders(et,eo){let ei={};return eo.forEach(eo=>{et.get(eo)&&(ei[eo]=et.get(eo))}),ei}function getRequestHeaders(et,eo){return 1===et.length&&"string"!=typeof et[0]?getHeadersFromOptions(et[0],eo):2===et.length?getHeadersFromOptions(et[1],eo):{}}function getHeadersFromOptions(et,eo){if(!et)return{};let ei=et.headers;return ei?ei instanceof Headers?getAllHeaders(ei,eo):Array.isArray(ei)?{}:getAllowedHeaders(ei,eo):{}}function _tryCloneResponse(et){try{return et.clone()}catch(et){or&&eJ.kg.warn("[Replay] Failed to clone response body",et)}}function _tryGetResponseText(et){return new Promise((eo,ei)=>{let ea=setTimeout(()=>ei(Error("Timeout while trying to read response body")),500);_getResponseText(et).then(et=>eo(et),et=>ei(et)).finally(()=>clearTimeout(ea))})}async function _getResponseText(et){return await et.text()}async function captureXhrBreadcrumbToReplay(et,eo,ei){try{let ea=_prepareXhrData(et,eo,ei),eu=makeNetworkReplayBreadcrumb("resource.xhr",ea);addNetworkBreadcrumb(ei.replay,eu)}catch(et){or&&eJ.kg.error("[Replay] Failed to capture xhr breadcrumb",et)}}function enrichXhrBreadcrumb(et,eo,ei){let{xhr:ea,input:eu}=eo;if(!ea)return;let ed=getBodySize(eu,ei.textEncoder),eh=ea.getResponseHeader("content-length")?parseContentLengthHeader(ea.getResponseHeader("content-length")):_getBodySize(ea.response,ea.responseType,ei.textEncoder);void 0!==ed&&(et.data.request_body_size=ed),void 0!==eh&&(et.data.response_body_size=eh)}function _prepareXhrData(et,eo,ei){let ea=Date.now(),{startTimestamp:eu=ea,endTimestamp:ed=ea,input:eh,xhr:ep}=eo,{url:ef,method:em,status_code:eg=0,request_body_size:ey,response_body_size:eC}=et.data;if(!ef)return null;if(!ep||!urlMatches(ef,ei.networkDetailAllowUrls)||urlMatches(ef,ei.networkDetailDenyUrls)){let et=buildSkippedNetworkRequestOrResponse(ey),eo=buildSkippedNetworkRequestOrResponse(eC);return{startTimestamp:eu,endTimestamp:ed,url:ef,method:em,statusCode:eg,request:et,response:eo}}let eS=ep[tq],e_=eS?getAllowedHeaders(eS.request_headers,ei.networkRequestHeaders):{},ew=getAllowedHeaders(getResponseHeaders(ep),ei.networkResponseHeaders),[eA,eI]=ei.networkCaptureBodies?getBodyString(eh):[void 0],[eR,eT]=ei.networkCaptureBodies?_getXhrResponseBody(ep):[void 0],eE=buildNetworkRequestOrResponse(e_,ey,eA),eP=buildNetworkRequestOrResponse(ew,eC,eR);return{startTimestamp:eu,endTimestamp:ed,url:ef,method:em,statusCode:eg,request:eI?mergeWarning(eE,eI):eE,response:eT?mergeWarning(eP,eT):eP}}function getResponseHeaders(et){let eo=et.getAllResponseHeaders();return eo?eo.split("\r\n").reduce((et,eo)=>{let[ei,ea]=eo.split(": ");return et[ei.toLowerCase()]=ea,et},{}):{}}function _getXhrResponseBody(et){let eo=[];try{return[et.responseText]}catch(et){eo.push(et)}try{return _parseXhrResponse(et.response,et.responseType)}catch(et){eo.push(et)}return or&&eJ.kg.warn("[Replay] Failed to get xhr response body",...eo),[void 0]}function _parseXhrResponse(et,eo){try{if("string"==typeof et)return[et];if(et instanceof Document)return[et.body.outerHTML];if("json"===eo&&et&&"object"==typeof et)return[JSON.stringify(et)];if(!et)return[void 0]}catch(eo){return or&&eJ.kg.warn("[Replay] Failed to serialize body",et),[void 0,"BODY_PARSE_ERROR"]}return or&&eJ.kg.info("[Replay] Skipping network body because of body type",et),[void 0,"UNPARSEABLE_BODY_TYPE"]}function _getBodySize(et,eo,ei){try{let ea="json"===eo&&et&&"object"==typeof et?JSON.stringify(et):et;return getBodySize(ea,ei)}catch(et){return}}function handleNetworkBreadcrumbs(et){let eo=(0,ez.s3)();try{let ei=new TextEncoder,{networkDetailAllowUrls:ea,networkDetailDenyUrls:eu,networkCaptureBodies:ed,networkRequestHeaders:eh,networkResponseHeaders:ep}=et.getOptions(),ef={replay:et,textEncoder:ei,networkDetailAllowUrls:ea,networkDetailDenyUrls:eu,networkCaptureBodies:ed,networkRequestHeaders:eh,networkResponseHeaders:ep};eo&&eo.on?eo.on("beforeAddBreadcrumb",(et,eo)=>beforeAddNetworkBreadcrumb(ef,et,eo)):(addFetchInstrumentationHandler(handleFetchSpanListener(et)),addXhrInstrumentationHandler(handleXhrSpanListener(et)))}catch(et){}}function beforeAddNetworkBreadcrumb(et,eo,ei){if(eo.data)try{_isXhrBreadcrumb(eo)&&_isXhrHint(ei)&&(enrichXhrBreadcrumb(eo,ei,et),captureXhrBreadcrumbToReplay(eo,ei,et)),_isFetchBreadcrumb(eo)&&_isFetchHint(ei)&&(enrichFetchBreadcrumb(eo,ei,et),captureFetchBreadcrumbToReplay(eo,ei,et))}catch(et){or&&eJ.kg.warn("Error when enriching network breadcrumb")}}function _isXhrBreadcrumb(et){return"xhr"===et.category}function _isFetchBreadcrumb(et){return"fetch"===et.category}function _isXhrHint(et){return et&&et.xhr}function _isFetchHint(et){return et&&et.response}let oi=null;function isBreadcrumbWithCategory(et){return!!et.category}let handleScopeListener=et=>eo=>{if(!et.isEnabled())return;let ei=handleScope(eo);ei&&addBreadcrumbEvent(et,ei)};function handleScope(et){let eo=et.getLastBreadcrumb&&et.getLastBreadcrumb();return oi!==eo&&eo?(oi=eo,!isBreadcrumbWithCategory(eo)||["fetch","xhr","sentry.event","sentry.transaction"].includes(eo.category)||eo.category.startsWith("ui."))?null:"console"===eo.category?normalizeConsoleBreadcrumb(eo):createBreadcrumb(eo):null}function normalizeConsoleBreadcrumb(et){let eo=et.data&&et.data.arguments;if(!Array.isArray(eo)||0===eo.length)return createBreadcrumb(et);let ei=!1,ea=eo.map(et=>{if(!et)return et;if("string"==typeof et)return et.length>nO?(ei=!0,`${et.slice(0,nO)}…`):et;if("object"==typeof et)try{let eo=(0,tI.Fv)(et,7),ea=JSON.stringify(eo);if(ea.length>nO)return ei=!0,`${JSON.stringify(eo,null,2).slice(0,nO)}…`;return eo}catch(et){}return et});return createBreadcrumb({...et,data:{...et.data,arguments:ea,...ei?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function addGlobalListeners(et){let eo=(0,ez.nZ)(),ei=(0,ez.s3)();eo.addScopeListener(handleScopeListener(et)),addClickKeypressInstrumentationHandler(handleDomListener(et)),addHistoryInstrumentationHandler(handleHistorySpanListener(et)),handleNetworkBreadcrumbs(et);let ea=handleGlobalEventListener(et,!hasHooks(ei));ei&&ei.addEventProcessor?ei.addEventProcessor(ea):addEventProcessor(ea),hasHooks(ei)&&(ei.on("beforeSendEvent",handleBeforeSendEvent(et)),ei.on("afterSendEvent",handleAfterSendEvent(et)),ei.on("createDsc",eo=>{let ei=et.getSessionId();if(ei&&et.isEnabled()&&"session"===et.recordingMode){let ea=et.checkAndHandleExpiredSession();ea&&(eo.replay_id=ei)}}),ei.on("startTransaction",eo=>{et.lastTransaction=eo}),ei.on("finishTransaction",eo=>{et.lastTransaction=eo}),ei.on("beforeSendFeedback",(eo,ei)=>{let ea=et.getSessionId();ei&&ei.includeReplay&&et.isEnabled()&&ea&&eo.contexts&&eo.contexts.feedback&&(eo.contexts.feedback.replay_id=ea)}))}function hasHooks(et){return!!(et&&et.on)}async function addMemoryEntry(et){try{return Promise.all(createPerformanceSpans(et,[createMemoryEntry(nv.performance.memory)]))}catch(et){return[]}}function createMemoryEntry(et){let{jsHeapSizeLimit:eo,totalJSHeapSize:ei,usedJSHeapSize:ea}=et,eu=Date.now()/1e3;return{type:"memory",name:"memory",start:eu,end:eu,data:{memory:{jsHeapSizeLimit:eo,totalJSHeapSize:ei,usedJSHeapSize:ea}}}}function debounce(et,eo,ei){let ea,eu,ed;let eh=ei&&ei.maxWait?Math.max(ei.maxWait,eo):0;function invokeFunc(){return cancelTimers(),ea=et()}function cancelTimers(){void 0!==eu&&clearTimeout(eu),void 0!==ed&&clearTimeout(ed),eu=ed=void 0}function flush(){return void 0!==eu||void 0!==ed?invokeFunc():ea}function debounced(){return eu&&clearTimeout(eu),eu=setTimeout(invokeFunc,eo),eh&&void 0===ed&&(ed=setTimeout(invokeFunc,eh)),ea}return debounced.cancel=cancelTimers,debounced.flush=flush,debounced}function getHandleRecordingEmit(et){let eo=!1;return(ei,ea)=>{if(!et.checkAndHandleExpiredSession()){or&&eJ.kg.warn("[Replay] Received replay event after session expired.");return}let eu=ea||!eo;eo=!0,et.clickDetector&&updateClickDetectorForRecordingEvent(et.clickDetector,ei),et.addUpdate(()=>{if("buffer"===et.recordingMode&&eu&&et.setInitialState(),!addEventSync(et,ei,eu))return!0;if(!eu)return!1;if(addSettingsEvent(et,eu),et.session&&et.session.previousSessionId)return!0;if("buffer"===et.recordingMode&&et.session&&et.eventBuffer){let eo=et.eventBuffer.getEarliestTimestamp();eo&&(logInfo(`[Replay] Updating session start time to earliest event in buffer to ${new Date(eo)}`,et.getOptions()._experiments.traceInternals),et.session.started=eo,et.getOptions().stickySession&&saveSession(et.session))}return"session"===et.recordingMode&&et.flush(),!0})}}function createOptionsEvent(et){let eo=et.getOptions();return{type:nZ.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:et.isRecordingCanvas(),sessionSampleRate:eo.sessionSampleRate,errorSampleRate:eo.errorSampleRate,useCompressionOption:eo.useCompression,blockAllMedia:eo.blockAllMedia,maskAllText:eo.maskAllText,maskAllInputs:eo.maskAllInputs,useCompression:!!et.eventBuffer&&"worker"===et.eventBuffer.type,networkDetailHasUrls:eo.networkDetailAllowUrls.length>0,networkCaptureBodies:eo.networkCaptureBodies,networkRequestHasHeaders:eo.networkRequestHeaders.length>0,networkResponseHasHeaders:eo.networkResponseHeaders.length>0}}}}function addSettingsEvent(et,eo){eo&&et.session&&0===et.session.segmentId&&addEventSync(et,createOptionsEvent(et),!1)}function createReplayEnvelope(et,eo,ei,ea){return createEnvelope(createEventEnvelopeHeaders(et,getSdkMetadataForEnvelopeHeader(et),ea,ei),[[{type:"replay_event"},et],[{type:"replay_recording",length:"string"==typeof eo?new TextEncoder().encode(eo).length:eo.length},eo]])}function prepareRecordingData({recordingData:et,headers:eo}){let ei;let ea=`${JSON.stringify(eo)}
`;if("string"==typeof et)ei=`${ea}${et}`;else{let eo=new TextEncoder,eu=eo.encode(ea);(ei=new Uint8Array(eu.length+et.length)).set(eu),ei.set(et,eu.length)}return ei}async function prepareReplayEvent({client:et,scope:eo,replayId:ei,event:ea}){let eu="object"!=typeof et._integrations||null===et._integrations||Array.isArray(et._integrations)?void 0:Object.keys(et._integrations),ed={event_id:ei,integrations:eu};et.emit&&et.emit("preprocessEvent",ea,ed);let eh=await (0,rn.R)(et.getOptions(),ea,ed,eo,et,(0,eZ.aF)());if(!eh)return null;eh.platform=eh.platform||"javascript";let ep=et.getSdkMetadata&&et.getSdkMetadata(),{name:ef,version:em}=ep&&ep.sdk||{};return eh.sdk={...eh.sdk,name:ef||"sentry.javascript.unknown",version:em||"0.0.0"},eh}async function sendReplayRequest({recordingData:et,replayId:eo,segmentId:ei,eventContext:ea,timestamp:eu,session:ed}){let eh;let ep=prepareRecordingData({recordingData:et,headers:{segment_id:ei}}),{urls:ef,errorIds:em,traceIds:eg,initialTimestamp:ey}=ea,eC=(0,ez.s3)(),eS=(0,ez.nZ)(),e_=eC&&eC.getTransport(),ew=eC&&eC.getDsn();if(!eC||!e_||!ew||!ed.sampled)return;let eA={type:nS,replay_start_timestamp:ey/1e3,timestamp:eu/1e3,error_ids:em,trace_ids:eg,urls:ef,replay_id:eo,segment_id:ei,replay_type:ed.sampled},eI=await prepareReplayEvent({scope:eS,client:eC,replayId:eo,event:eA});if(!eI){eC.recordDroppedEvent("event_processor","replay",eA),logInfo("An event processor returned `null`, will not send event.");return}delete eI.sdkProcessingMetadata;let eR=createReplayEnvelope(eI,ep,ew,eC.getOptions().tunnel);try{eh=await e_.send(eR)}catch(eo){let et=Error(n_);try{et.cause=eo}catch(et){}throw et}if(!eh)return eh;if("number"==typeof eh.statusCode&&(eh.statusCode<200||eh.statusCode>=300))throw new TransportStatusCodeError(eh.statusCode);let eT=updateRateLimits({},eh);if(isRateLimited(eT,"replay"))throw new RateLimitError(eT);return eh}let TransportStatusCodeError=class TransportStatusCodeError extends Error{constructor(et){super(`Transport returned status code ${et}`)}};let RateLimitError=class RateLimitError extends Error{constructor(et){super("Rate limit hit"),this.rateLimits=et}};async function sendReplay(et,eo={count:0,interval:nE}){let{recordingData:ei,options:ea}=et;if(ei.length)try{return await sendReplayRequest(et),!0}catch(ei){if(ei instanceof TransportStatusCodeError||ei instanceof RateLimitError)throw ei;if((0,ez.v)("Replays",{_retryCount:eo.count}),or&&ea._experiments&&ea._experiments.captureExceptions&&(0,ez.Tb)(ei),eo.count>=nP){let et=Error(`${n_} - max retries exceeded`);try{et.cause=ei}catch(et){}throw et}return eo.interval*=++eo.count,new Promise((ei,ea)=>{setTimeout(async()=>{try{await sendReplay(et,eo),ei(!0)}catch(et){ea(et)}},eo.interval)})}}let oa="__THROTTLED",oc="__SKIPPED";function throttle(et,eo,ei){let ea=new Map,_cleanup=et=>{let eo=et-ei;ea.forEach((et,ei)=>{ei<eo&&ea.delete(ei)})},_getTotalCount=()=>[...ea.values()].reduce((et,eo)=>et+eo,0),eu=!1;return(...ei)=>{let ed=Math.floor(Date.now()/1e3);if(_cleanup(ed),_getTotalCount()>=eo){let et=eu;return eu=!0,et?oc:oa}eu=!1;let eh=ea.get(ed)||0;return ea.set(ed,eh+1),et(...ei)}}let ReplayContainer=class ReplayContainer{constructor({options:et,recordingOptions:eo}){ReplayContainer.prototype.__init.call(this),ReplayContainer.prototype.__init2.call(this),ReplayContainer.prototype.__init3.call(this),ReplayContainer.prototype.__init4.call(this),ReplayContainer.prototype.__init5.call(this),ReplayContainer.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:nw,sessionIdleExpire:nA},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=eo,this._options=et,this._debouncedFlush=debounce(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=throttle((et,eo)=>addEvent(this,et,eo),300,5);let{slowClickTimeout:ei,slowClickIgnoreSelectors:ea}=this.getOptions(),eu=ei?{threshold:Math.min(nx,ei),timeout:ei,scrollTimeout:nM,ignoreSelector:ea?ea.join(","):""}:void 0;eu&&(this.clickDetector=new ClickDetector(this,eu))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(et){let{errorSampleRate:eo,sessionSampleRate:ei}=this._options;if(!(eo<=0)||!(ei<=0)){if(this._initializeSessionForSampling(et),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",logInfoNextTick(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");logInfoNextTick("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);let et=loadOrCreateSession({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=et,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");logInfoNextTick("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let et=loadOrCreateSession({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=et,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let et=this._canvas;this._stopRecording=record({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:nT},emit:getHandleRecordingEmit(this),onMutation:this._onMutationHandler,...et?{recordCanvas:et.recordCanvas,getCanvasManager:et.getCanvasManager,sampling:et.sampling,dataURLOptions:et.dataURLOptions}:{}})}catch(et){this._handleException(et)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(et){return this._handleException(et),!1}}async stop({forceFlush:et=!1,reason:eo}={}){if(this._isEnabled){this._isEnabled=!1;try{logInfo(`[Replay] Stopping Replay${eo?` triggered by ${eo}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),et&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,clearSession(this)}catch(et){this._handleException(et)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),logInfo("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),logInfo("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:et=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let eo=Date.now();logInfo("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let ei=this.stopRecording();et&&ei&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(eo),this._updateSessionActivity(eo),this._maybeSaveSession()),this.startRecording())}addUpdate(et){let eo=et();"buffer"!==this.recordingMode&&!0!==eo&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&isExpired(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let et=`${nv.location.pathname}${nv.location.hash}${nv.location.search}`,eo=`${nv.location.origin}${et}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=eo,this._context.initialTimestamp=Date.now(),this._context.urls.push(eo)}throttledAddEvent(et,eo){let ei=this._throttledAddEvent(et,eo);if(ei===oa){let et=createBreadcrumb({category:"replay.throttled"});this.addUpdate(()=>!addEventSync(this,{type:n5,timestamp:et.timestamp||0,data:{tag:"breadcrumb",payload:et,metric:!0}}))}return ei}getCurrentRoute(){let et=this.lastTransaction||(0,ez.nZ)().getTransaction(),eo=et&&(0,rR.XU)(et).data||{},ei=eo[rT];if(et&&ei&&["route","custom"].includes(ei))return(0,rR.XU)(et).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=createEventBuffer({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(et){or&&eJ.kg.error("[Replay]",et),or&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,ez.Tb)(et)}_initializeSessionForSampling(et){let eo=this._options.errorSampleRate>0,ei=loadOrCreateSession({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:et},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:eo});this.session=ei}_checkSession(){if(!this.session)return!1;let et=this.session;return!shouldRefreshSession(et,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(et),!1)}async _refreshSession(et){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(et.id))}_addListeners(){try{nv.document.addEventListener("visibilitychange",this._handleVisibilityChange),nv.addEventListener("blur",this._handleWindowBlur),nv.addEventListener("focus",this._handleWindowFocus),nv.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(addGlobalListeners(this),this._hasInitializedCoreListeners=!0)}catch(et){this._handleException(et)}this._performanceCleanupCallback=setupPerformanceObserver(this)}_removeListeners(){try{nv.document.removeEventListener("visibilitychange",this._handleVisibilityChange),nv.removeEventListener("blur",this._handleWindowBlur),nv.removeEventListener("focus",this._handleWindowFocus),nv.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(et){this._handleException(et)}}__init(){this._handleVisibilityChange=()=>{"visible"===nv.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let et=createBreadcrumb({category:"ui.blur"});this._doChangeToBackgroundTasks(et)}}__init3(){this._handleWindowFocus=()=>{let et=createBreadcrumb({category:"ui.focus"});this._doChangeToForegroundTasks(et)}}__init4(){this._handleKeyboardEvent=et=>{handleKeyboardEvent(this,et)}}_doChangeToBackgroundTasks(et){if(!this.session)return;let eo=isSessionExpired(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});eo||(et&&this._createCustomBreadcrumb(et),this.conditionalFlush())}_doChangeToForegroundTasks(et){if(!this.session)return;let eo=this.checkAndHandleExpiredSession();if(!eo){logInfo("[Replay] Document has become active, but session has expired");return}et&&this._createCustomBreadcrumb(et)}_updateUserActivity(et=Date.now()){this._lastActivity=et}_updateSessionActivity(et=Date.now()){this.session&&(this.session.lastActivity=et,this._maybeSaveSession())}_createCustomBreadcrumb(et){this.addUpdate(()=>{this.throttledAddEvent({type:nZ.Custom,timestamp:et.timestamp||0,data:{tag:"breadcrumb",payload:et}})})}_addPerformanceEntries(){let et=createPerformanceEntries(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(createPerformanceSpans(this,et))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:et,eventBuffer:eo}=this;if(!et||!eo||et.segmentId)return;let ei=eo.getEarliestTimestamp();ei&&ei<this._context.initialTimestamp&&(this._context.initialTimestamp=ei)}_popEventContext(){let et={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),et}async _runFlush(){let et=this.getSessionId();if(!this.session||!this.eventBuffer||!et){or&&eJ.kg.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await addMemoryEntry(this),this.eventBuffer&&et===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let eo=Date.now();if(eo-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let ei=this._popEventContext(),ea=this.session.segmentId++;this._maybeSaveSession();let eu=await this.eventBuffer.finish();await sendReplay({replayId:et,recordingData:eu,segmentId:ea,eventContext:ei,session:this.session,options:this.getOptions(),timestamp:eo})}catch(eo){this._handleException(eo),this.stop({reason:"sendReplay"});let et=(0,ez.s3)();et&&et.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:et=!1}={})=>{if(!this._isEnabled&&!et)return;if(!this.checkAndHandleExpiredSession()){or&&eJ.kg.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;let eo=this.session.started,ei=Date.now(),ea=ei-eo;this._debouncedFlush.cancel();let eu=ea<this._options.minReplayDuration,ed=ea>this._options.maxReplayDuration+5e3;if(eu||ed){logInfo(`[Replay] Session duration (${Math.floor(ea/1e3)}s) is too ${eu?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),eu&&this._debouncedFlush();return}let eh=this.eventBuffer;if(eh&&0===this.session.segmentId&&!eh.hasCheckout&&logInfo("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(et){or&&eJ.kg.error(et)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&saveSession(this.session)}__init6(){this._onMutationHandler=et=>{let eo=et.length,ei=this._options.mutationLimit,ea=this._options.mutationBreadcrumbLimit,eu=ei&&eo>ei;if(eo>ea||eu){let et=createBreadcrumb({category:"replay.mutations",data:{count:eo,limit:eu}});this._createCustomBreadcrumb(et)}return!eu||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}};function getOption(et,eo,ei,ea){let eu="string"==typeof ea?ea.split(","):[],ed=[...et,...eu,...eo];return void 0!==ei&&("string"==typeof ei&&ed.push(`.${ei}`),(0,eJ.Cf)(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),ed.join(",")}function getPrivacyOptions({mask:et,unmask:eo,block:ei,unblock:ea,ignore:eu,blockClass:ed,blockSelector:eh,maskTextClass:ep,maskTextSelector:ef,ignoreClass:em}){let eg=['base[href="/"]'],ey=getOption(et,[".sentry-mask","[data-sentry-mask]"],ep,ef),eC=getOption(eo,[".sentry-unmask","[data-sentry-unmask]"]),eS={maskTextSelector:ey,unmaskTextSelector:eC,blockSelector:getOption(ei,[".sentry-block","[data-sentry-block]",...eg],ed,eh),unblockSelector:getOption(ea,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:getOption(eu,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],em)};return ed instanceof RegExp&&(eS.blockClass=ed),ep instanceof RegExp&&(eS.maskTextClass=ep),eS}function maskAttribute({el:et,key:eo,maskAttributes:ei,maskAllText:ea,privacyOptions:eu,value:ed}){return!ea||eu.unmaskTextSelector&&et.matches(eu.unmaskTextSelector)?ed:ei.includes(eo)||"value"===eo&&"INPUT"===et.tagName&&["submit","button"].includes(et.getAttribute("type")||"")?ed.replace(/[\S]/g,"*"):ed}let ou='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ol=["content-length","content-type","accept"],od=!1,replayIntegration=et=>new Replay(et);let Replay=class Replay{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:et=nI,flushMaxDelay:eo=nR,minReplayDuration:ei=nU,maxReplayDuration:ea=nN,stickySession:eu=!0,useCompression:ed=!0,workerUrl:eh,_experiments:ep={},sessionSampleRate:ef,errorSampleRate:em,maskAllText:eg=!0,maskAllInputs:ey=!0,blockAllMedia:eC=!0,mutationBreadcrumbLimit:eS=750,mutationLimit:e_=1e4,slowClickTimeout:ew=7e3,slowClickIgnoreSelectors:eA=[],networkDetailAllowUrls:eI=[],networkDetailDenyUrls:eR=[],networkCaptureBodies:eT=!0,networkRequestHeaders:eE=[],networkResponseHeaders:eP=[],mask:ek=[],maskAttributes:eO=["title","placeholder"],unmask:eM=[],block:eD=[],unblock:eU=[],ignore:eL=[],maskFn:eN,beforeAddRecordingEvent:eB,beforeErrorSampling:eF,blockClass:ej,blockSelector:eG,maskInputOptions:eH,maskTextClass:eK,maskTextSelector:ez,ignoreClass:eW}={}){this.name=Replay.id;let eV=getPrivacyOptions({mask:ek,unmask:eM,block:eD,unblock:eU,ignore:eL,blockClass:ej,blockSelector:eG,maskTextClass:eK,maskTextSelector:ez,ignoreClass:eW});if(this._recordingOptions={maskAllInputs:ey,maskAllText:eg,maskInputOptions:{...eH||{},password:!0},maskTextFn:eN,maskInputFn:eN,maskAttributeFn:(et,eo,ei)=>maskAttribute({maskAttributes:eO,maskAllText:eg,privacyOptions:eV,key:et,value:eo,el:ei}),...eV,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:et=>{try{et.__rrweb__=!0}catch(et){}}},this._initialOptions={flushMinDelay:et,flushMaxDelay:eo,minReplayDuration:Math.min(ei,nL),maxReplayDuration:Math.min(ea,nN),stickySession:eu,sessionSampleRate:ef,errorSampleRate:em,useCompression:ed,workerUrl:eh,blockAllMedia:eC,maskAllInputs:ey,maskAllText:eg,mutationBreadcrumbLimit:eS,mutationLimit:e_,slowClickTimeout:ew,slowClickIgnoreSelectors:eA,networkDetailAllowUrls:eI,networkDetailDenyUrls:eR,networkCaptureBodies:eT,networkRequestHeaders:_getMergedNetworkHeaders(eE),networkResponseHeaders:_getMergedNetworkHeaders(eP),beforeAddRecordingEvent:eB,beforeErrorSampling:eF,_experiments:ep},"number"==typeof ef&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysSessionSampleRate: ${ef} })`),this._initialOptions.sessionSampleRate=ef),"number"==typeof em&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysOnErrorSampleRate: ${em} })`),this._initialOptions.errorSampleRate=em),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ou}`:ou),this._isInitialized&&isBrowser())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return od}set _isInitialized(et){od=et}setupOnce(){isBrowser()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(et){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(et):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let et=loadReplayOptionsFromClient(this._initialOptions);this._replay=new ReplayContainer({options:et,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let et=(0,ez.s3)(),eo=et.getIntegrationByName("ReplayCanvas");if(!eo)return;this._replay._canvas=eo.getOptions()}catch(et){}}};function loadReplayOptionsFromClient(et){let eo=(0,ez.s3)(),ei=eo&&eo.getOptions(),ea={sessionSampleRate:0,errorSampleRate:0,...(0,eW.Jr)(et)};return ei?(null==et.sessionSampleRate&&null==et.errorSampleRate&&null==ei.replaysSessionSampleRate&&null==ei.replaysOnErrorSampleRate&&(0,eJ.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),"number"==typeof ei.replaysSessionSampleRate&&(ea.sessionSampleRate=ei.replaysSessionSampleRate),"number"==typeof ei.replaysOnErrorSampleRate&&(ea.errorSampleRate=ei.replaysOnErrorSampleRate)):(0,eJ.Cf)(()=>{console.warn("SDK client is not available.")}),ea}function _getMergedNetworkHeaders(et){return[...ol,...et.map(et=>et.toLowerCase())]}Replay.__initStatic();var oh=ei(34155),of=window;of.__sentryRewritesTunnelPath__="/monitoring",of.SENTRY_RELEASE={id:"52f5589e908891b080677cbcba12fccb7305ed8a"},of.__sentryBasePath=void 0,of.__rewriteFramesAssetPrefixPath__="",oh.env.NEXT_PUBLIC_DEBUG_SENTRY,client_init({dsn:"https://b3fd0010127b63b0f4e489ac63f8fa8d@o4506344193261568.ingest.sentry.io/4506354549260288",tracesSampleRate:.4,debug:!!oh.env.NEXT_PUBLIC_DEBUG_SENTRY,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,integrations:[replayIntegration({maskAllText:!1,blockAllMedia:!0})]})},99439:function(et,eo,ei){"use strict";ei.r(eo),ei.d(eo,{default:function(){return tm}});var ea,eu=ei(85893),ed=ei(22839),eh=ei(41819),ep={translation:{common:JSON.parse('{"details":"Details","change":"Change","cancel":"Cancel","time":{"days":"DAYS","hrs":"HRS","min":"MIN","sec":"SEC"},"readMore":"Read More","readLess":"Read Less","summary":"Summary","edit":"Edit","add":"Add","view":"View","archive":"archive","restore":"restore","language":"Language","theme":"Theme","remove":"remove","login":"Login","userAction":{"signOut":"sign out","myProfile":"my profile","useLight":"Use Light Mode","useDark":"Use Dark Mode"},"breadcrumbs":{"home":"Home","addClient":"Add Client","editClient":"Edit Client","clients":"Clients","addTGGUser":"Add HUB Analytics User","editTGGUser":"Edit HUB Analytics User","accounts":"Accounts","createAISAccountProfile":"Create GL Account Profile","aisAccountProfile":"GL Account Profile","accountMapping":"GL Account Mapping","qbSync":"QuickBooks Sync","templateBuilder":"Reporting Template","reports":"Reports","users":"Users","preview":"Preview","configure":"Configure","mapAISAccounts":"AIS Account Mappings","kpis":"KPIs","stdKPIs":"Standard KPIs","customKPIs":"Custom KPIs","nonAccountingKPIs":"Non Accounting KPIs","dataSets":"Data Sets","addNonAccountingKPIs":"Add Non Accounting KPIs","financialReport":"Financial Report","tasks":"Tasks","profitRecommendations":"Profitability Recommendations","dataDiagnostics":"Data Diagnostics","qbdSetup":"QuickBooks Desktop","isClassifications":"Income Statement Classifications","unmappedAISAccounts":"Unmapped AIS Accounts","mappedAISAccounts":"Mapped AIS Accounts","orphanedAISAccounts":"Orphaned AIS Accounts","dataSetAndLists":"Data Sets & List","documents":"Documents","addAgency":"Add Agency Account","editAgency":"Edit Agency Account","addGlobalAdmin":"Add Global Admin","editGlobalAdmin":"Edit Global Admin","reportingTemplate":"Reporting Template"},"save":"Save","continue":"Continue","next":"Next","previous":"Previous","done":"Done","reset":"Reset","viewErrors":"Errors","close":"Close","saveAndClose":"Save & Close","saveAndContinue":"Save & Continue","saveAndAddProfile":"Save & Add Profile","saveAndGoBack":"Save & Go Back","saveAndAddMore":"Save & Add More","saveChanges":"Save Changes","saveAKA":"Save AKA","delete":"Delete","rename":"Rename","clearData":"Clear Data","customize":"Customize","editDetails":"Edit Details","viewDetails":"View Details","reviewDetails":"Review Details","retry":"Refresh Report","refresh":"Refresh","address":"Address","addressLine1":"Address Line 1","addressLine2":"Address Line 2","city":"City","state":"State","postalCode":"Postal Code","website":"Website","phoneNumber":"Phone Number","tagline":"Tagline","taglinePlaceholder":"Organization Tagline","summaryPlaceholder":"Organization Summary","businessOverview":"Business Overview","permissions":"permissions","publishingRequirements":"Publishing Requirements","all":"All","permissionCategory":{"all":"All","admin":"Admin","read":"Read","delete":"Delete","create":"Create"},"account":"account","accounts":"accounts","incomeStatement":"Income Statement","balanceSheet":"Balance Sheet","activate":"Activate","deactivate":"Deactivate","activated":"Activated","deactivated":"Deactivated","archived":"archived","editUser":"Edit User","errors":{"required":"This field is required.","email":"Invalid Email address.","chooseDifferentClassificationName":"Two classifications lists cannot have matching names. Please change.","chooseDifferentName":"Please choose a different name for this option.","selectAccount":"Please select accounts","invalidPostalCode":"Invalid Postal Code","notMoreThan":"Should not be more than {{number}}","invalidAgingSchedule":"Invalid Periods for Aging Schedule","pleaseSelectOneOption":"Please select from one of the options","invalidPhone":"Invalid Phone Number","requiredSlug":"Please Enter URL"},"inviteUser":"Hi {{name}}, Welcome to","inviteRejected":"Invitation Rejected!","pending":"pending","rejected":"rejected","accepted":"accepted","cancelled":"cancelled","keepMenuOpen":"Keep Menu Open","map":"map","noAccess":"No Access","noAccessDesc":"You don\'t have permission to view this page.","type":"type","review":"Review","dateCreated":"Date Created","permission":{"accessDenied":"Access Denied","noReadAccessToReports":"You don\'t have permission to view financial reports.","noReadAccessToTemplates":"You don\'t have permission to view report templates."},"pleaseConfirm":"Please Confirm","manage":"manage","yes":"yes","no":"no","monthYear":"Month & Year","download":"Download","simulatedData":"Simulated Data","changeImage":"Change Image","dataOutOfRange":"Some data points are out of range","lock":"Lock","unLock":"Unlock","goHome":"Back to Homepage","hideText":"Hide Text","showText":"Show Text","status":"Status","left":"(Left)","right":"(Right)","showDataTable":"Show Data Table","hideDataTable":"Hide Data Table","create":"Create","createAccount":"Create Account","lastUpdatedOn":"Last updated on:","published":"Published: {{date}}","welcome":"Welcome back!","selectClient":"Select a Client","viewClient":"View Client","deactivatedMess":"Deactivated Successfully.","activatedMess":"Activated Successfully."}'),client:JSON.parse('{"client":"client","clients":"clients","generalInfo":"General Info","addClient":"Add Client","invitations":"Invitations","noClientTitle":"No Clients have been added","noClientDescription":"To add a new client, simply click the button below.","noFilteredClientTitle":"No Deactivated Clients","noFilteredClientDescription":"There are no clients that match the selected filter. Clear the filter to see all active clients.","noActiveFilteredClientTitle":"No Activated Clients","noActiveFilteredClientDescription":"There are no clients that match the selected filter. Clear the filter to see all clients.","blankDescription":"No Client ","clientAction":{"viewDetails":"View Details","assumeRole":"Manage Client","editProfile":"Edit Profile","editClient":"Edit Client","unAssignClient":"Unassign Client"},"addEditClient":{"title":"Add Client","editTitle":"Edit Client","name":"Client Name","nameDesc":"This will be displayed on your profile.","namePlaceholder":"Enter client name","nameError":"Please add client name.","timezone":"Timezone","timezonePlaceholder":"Select Timezone","timezoneError":"Please select timezone.","clientLogo":"Client Logo","clientLogoDesc":"Update the client logo","clickToUpload":"Click to upload","dragDropInstruction":" or drag and drop JPG, JPEG or PNG","maxSize":"(max. 500KB)","errorAddressLine1":"Enter address line 1","errorAddressLine2":"Enter address line 2","errorCity":"Enter city","errorState":"Enter state","errorPostalCode":"Enter postal code","errorWebsite":"Enter valid website URL.","errorPhoneNumber":"Enter phone number","errorTagline":"Enter tagline","errorSummary":"Enter organization summary"},"clientDetails":"Client Details","organizationProfile":{"title":"Organization Profile","description":"Enter the Client\'s Organization details here. These details will be displayed on the monthly financial reports.","orgDetails":"Organization Details","orgAddress":"Organization Address","willDisplayOnProfile":"This will displayed on your profile","snapshotOfOrg":"A quick snapshot of your organization."},"financialProfile":{"title":"Financial Profile","description":"Enter the Client\'s financial details here. These details will be displayed on the monthly financial reports.","financialStates":"Financial States","errorFinancialStates":"Select financial states","entityType":"Entity Type","errorEntityType":"Select entity type","taxBasis":" Tax Basis","errorTaxBasis":"Select tax basis","stateOfIncorporation":"State Of Incorporation","errorStateOfIncorporation":"Select state of incorporation","financialYear":"Financial Year","errorFinancialYear":"Select financial year","calendar":"Calendar","specificMonth":"Specific Month","fiscal":"Fiscal"},"teamAdvisor":"Team/Advisors","teamAdvisors":{"description":"Enter the client\'s team and advisory information here","managementOwnership":"Management & Ownership","noManagementOwnership":"No Member Added","noManagementOwnershipDesc":"Simply click the \\"Add\\" button to add management & owners information","companyAdvisors":"Company Advisors","noCompanyAdvisors":"No Member Added","noCompanyAdvisorsDesc":"Simply click the \\"Add\\" button to add company\'s advisors","accountingTeam":"Agency Accounting Team","noAccountingTeam":"No Member Added","noAccountingTeamDesc":"Simply click the \\"Add\\" button to add Agency team that manages this company","noClientUserDesc":"Simply click the \\"Add\\" button to invite client user","remove":"Delete","removed":"Advisor Deleted!","addAccountingTeamBtn":"Add Accounting Team","accountingMemberRemoved":"Member Deleted!","clientMemberRemoved":"Member Deleted!","invitationsConfirmTitle":"Resend  Member Invitation","invitationsConfirmDesc":"Are you sure you want to resend invitation?","invitationsConfirmSuccess":"Invitation sent to {{memberName}}."},"clientExecutiveDrawer":{"addExecutiveMember":"Add Executive Member","addExistingExecutiveMember":"Add Existing Executive Member","title":"Add Client Executive","editTitle":"Edit Client Executive","addExecutive":"Add Executive","inviteButton":"Invite Client User","firstName":"First Name","firstNamePlaceholder":"Enter First Name","lastName":"Last Name","lastNamePlaceholder":"Enter Last Name","email":"Email","emailPlaceholder":"Enter Email","ExecutiveRole":"Executive Role","inviteUserToPlatform":"Invite User To The Platform (Optional)","inviteDescription":"The system will send the user an invite to create an account on the email address: \'{{email}}\'","removed":"Executive Member Deleted!","removeConfirmTitle":"Delete this Executive Member","removeConfirmDesc":"After you delete this member they will no longer be able to access this account.","confirmRole":"You have selected {{role}} Executive Role which already added, are you sure you want to continue?","selectRole":"Select Role for all the selected users.","noUserSelected":"Select One or More Users to assign.","successUserAdd":"Users added successfully.","successfulAddExecutive":"Executive user added successfully.","successfulUpdatedExecutive":"Executive user updated successfully.","userWithEmailAlreadyAssignedTo":"User with email: {{email}} already Assigned to:","clientConfirmation":"Would you like to add user to {{clientName}} Client?"},"clientAdvisorDrawer":{"title":"Add Advisors","editTitle":"Edit Advisors","institutionName":"Institution Name","institutionNamePlaceholder":"Enter Institution Name","firstName":"Contact First Name","firstNamePlaceholder":"Enter First Name","lastName":"Contact Last Name","lastNamePlaceholder":"Enter Last Name","email":"Contact Email","emailPlaceholder":"Enter Email","advisorRole":"Advisor Type","addAdvisor":"Add Advisor","successfulUpdatedAdvisors":"Advisor user updated successfully.","successfulAddAdvisors":"Advisor user added successfully."},"clientAccountingDrawer":{"title":"Add Accounting Team","tggUsers":"HUB Analytics Users","tggUsersInfo":"Select Users to start adding in client\'s accounting team.","noTGGUserFoundTitle":"No User Found","noTGGUserFoundDescription":"No User found matching the criteria","noUserSelected":"Select One or more HUB Analytics Users to add","successfulAddAccount":"Accounting user added successfully."},"inviteClientUser":{"addClientUsers":"Add Client Users","title":"Invite Client User","inviteButton":"Invite Client User","firstName":"First Name","firstNamePlaceholder":"Enter First Name","lastName":"Last Name","lastNamePlaceholder":"Enter Last Name","email":"Email","emailPlaceholder":"Enter Email","inviteDescription":"The system will send the user an invite to create an account on the email address: \'{{email}}\'","noInvitation":"No invitations have been sent","clientUsers":"Client Users","clientUsersSub":"Invite Client\'s Users here","editClientUser":"Edit Client User"},"clientList":{"client":"Client","location":"Location","actions":"Actions"},"accounts":{"title":"Accounts: {{name}}","aisAccounts":"AIS Accounts","aisAccountsCOAPendingDesc":"AIS account management will be available once the Parent Account Configuration is setup above.","aisAccountsDesc":"Manage your AIS Accounts here.\\nYou will need to connect with your AIS to manage these accounts.","aisAccountsBtn":"Manage AIS Accounts","chartOfAccounts":"Parent Account Configuration","chartOfAccountsDesc":"Map \'Parent Account Configuration\' for Income Statement and Balance Sheet here.","chartOfAccountsBtn":"Manage Parent Account Configuration"},"aisAccounts":{"title":"Create GL Account Profile","aisAccountProfile":"GL Account Profile","qbSync":"QuickBooks Sync","connectToAISSystem":"Connect To Your AIS System","connectToAISSystemDesc":"You have not connected your AIS System with the HUB Platform yet. Let\'s get you going!","qbOnlineTitle":"I Use QuickBooks Online","qbOnlineDesc":"Connect your QuickBooks Online account with our platform so that we can access your data.","qbOnlineBtn":"Connect w/ QuickBooks Online","qbDesktopTitle":"I Use QuickBooks Desktop","qbDesktopDesc":"Connect your QuickBooks Desktop by downloading our connector so that we can access your data.","qbDesktopBtn":"Connect QuickBooks Connector","qbDesktop":"QuickBooks Desktop","qbOnline":"QuickBooks Online","connect":"Connect","connected":"Connected:","lastSynced":"Last Synced:","qbConnected":"Connected","aisAccountsListing":"AIS Accounts Listing","btnAISAccountMapping":"AIS Account Mapping","reSync":"Re-Sync","noDataTitle":"No AIS Accounts Downloaded","noDataDesc":"You have not downloaded any AIS Accounts yet. Click on the button below to connect with your AIS and download the account information.","qbOnlineTroubleTitle":"Trouble Connecting With AIS","qbOnlineTroubleDesc":"Please make sure that you are connected with the system correctly.","downloadAISAccounts":"Download AIS Accounts","connectWithQuickBooksOnlineAgain":"Connect With QuickBooks Online Again","connectWithQuickBooksDesktopAgain":"Connect With QuickBooks Desktop Again","downloadConnector":"Download Connector","startProcessing":"Start Processing Data","viewInstructions":"View Instructions","aisAccountsDownloadSuccessful":"AIS Accounts Download Successful","aisAccountsDownloadSuccessfulDesc":"Accounts Downloaded! We successfully downloaded {{totalNumber}} accounts. Please review them below.","aisAccountsDownloadError":"Errors In AIS Accounts","aisAccountsDownloadErrorDesc":"The following AIS Accounts are not setup correctly","aisErrorTitle":"AIS Account Errors","aisErrorDesc":"The accounts shown below are not setup correctly in your AIS System. Please review and correct then in AIS. You can re-sync the information again after they are corrected in the AIS system.","reSyncFromAIS":"Re-Sync From AIS","unknownAISAccountTitle":"Unknown Accounts In HUB","unknownAISAccountDesc":"We found {{totalNumber}} accounts in HUB that do not match with the accounts downloaded from AIS. Please review this information and correct the errors.","unmappedAISAccountTitle":"Unmapped AIS Accounts Found","unmappedAISAccountDesc":"We found {{totalNumber}} AIS accounts that are not mapped in your system.","noUnmappedAISAccountDesc":"No Unmapped AIS accounts found in your system.","orphanedAISAccountTitle":"Orphaned AIS Accounts","orphanedAISAccountDesc":"We found {{totalNumber}} Orphaned AIS accounts in your system.","reviewAccounts":"Review Accounts","reviewMapping":"Review Mapping","notClassifying":"Not Classifying","classifyingDesc":"This Client uses following methods to classify their income statement: ({{listing}})","notClassifyingDesc":"This Client is not classifying their income statement","aisOrphanedTitle":"Unknown Accounts In HUB","aisOrphanedDesc":"The accounts shown below only exist in HUB. They are no longer available in the AIS system. Please reconcile these accounts by removing them or review the AIS system to verify this information.","virtualAccountsAffectedTitle":"Virtual Accounts Affected","virtualAccountsAffectedDesc":"The following virtual accounts are affected.","kpiAffectedTitle":"KPI Affected","kpiAffectedDesc":"The following KPIs use the orphaned accounts and will no longer show information correctly.","unmappedAISAccounts":"Unmapped AIS Accounts","unmappedAISAccountsDesc":"The accounts below are not yet mapped into HUB. This will impact the accuracy of your reports. Please map them now.","mapAISAccounts":"Map AIS Accounts","qbdStep1":"Install the TGG Connector V2","qbdStep1Info":"(Note : if you have already installed then skip steps 2 and 3 )","qbdStep2":"Download the QBD Connector V2 by clicking on \\"Download Connector\\" button in below.","qbdStep3":"On successful download click and install the setup, and make sure it installed correctly on system","qbdStep4":"Click On \\"Start Process\\" button to start the data downloading process.","qbdStep4Info":"It will open up the TGG Connector app and start downloading process. Wait until the process completes and then check and verify the data.","outOfSync":"{{current}} out of {{total}} synced","waitForSync":"Please wait for sync to complete..."},"chartOfAccounts":{"title":"Parent Account Configuration","titleName":"Parent Account Configuration: {{name}}","saveChartOfAccounts":"Save Configuration","viewChartOfAccounts":"View Configuration","addedChartOfAccount":"Parent Account Configuration mappings saved!","selectDisplayName":"Select Display Name","displayMsg":"Select the Label that clients will see on their reports for this Primary account."},"aisAccountMapping":{"title":"AIS Account Mappings","selectReport":"Select a report","viewMappings":"View Mappings","currentAssets":"Current Assets","noncurrentAssets":"Non Current Assets","aisAccountName":"AIS Account Name","presentationName":"Presentation Name","subAccount":"Parent Account","btnSaveAISAccountMappings":"Save GL Account Mappings","btnHubIntelligentMapping":"HUB Intelligent Mapping","btnClearMappings":"Clear Mappings","btnRevertMappings":"Revert to Original","btnReviewMapping":"Review AIS Account Mappings","btnReviewUnmappedMapping":"Review Unmapped AIS Accounts","noAISAccountAvailable":"No GL Accounts","noAISAccountAvailableDesc":"No GL Accounts available for mapping to this parent account","mappedAISAccounts":"Mapped AIS Accounts","mappedAISAccountsDesc":"These AIS accounts are currently mapped to the HUB platform.","noMappedAISAccountsFound":"No AIS Account Found","noUnmappedAISAccountsFound":"No Unmapped AIS Account Found","noMappedAISAccountsByFilter":"No AIS Account Matches Current Filter","noMappedAISAccountsByFilterDesc":"No AIS Account found that matches the applied filter. To see all the AIS Account, simply clear the applied filter.","mapped":"Mapped","unmapped":"Unmapped","all":"All","mappingSaved":"Mappings have been saved!","mappingSavedAndMoved":"Mapping has been saved, and moved to the bottom of the list. Unmapped sub-accounts are at the top of the screen for continued mapping.","glClassList":"GL Class List","noAISAccountMappings":"No GL Account Mappings Found","noCOASetup":"No Parent Account Configuration Found"},"arap":{"title":"AR/AP Settings","saved":"AR/AP Settings Saved!","viewCustomers":"View Customers","customers":"Customers","noCustomerTitle":"No Customer Available!"},"qbd":{"setup":"QuickBooks Desktop Setup","downloadHere":"Download here","readyToConnect":"Ready to Connect","setupInfo":"Select the type of QuickBooks setup you use","thirdParty-title":"QBD is installed on 3rd party platform like Mindcentric","thirdParty-info":"If QBD is installed on a 3rd party platform such as Mindcentric, then please read the instruction here.","thirdParty-step1-title":"Connect","thirdParty-step1":"Make sure you connect to the Client\'s QBD using Citrix servers","thirdParty-step2-title":"Download Connector","thirdParty-step2":"Once you are logged in, open HUB and download the QuickBooks Desktop connector","thirdParty-step3-title":"Run Connector","thirdParty-step3":"Run the QBD connector and connect to QBD each time you want to download data","locally-title":"QBD is installed on locally on this system","locally-info":"Use this option if you connect to the client\'s machine via VPN or have QBD installed on this computer.","locally-step1-title":"Download Connector","locally-step1":"Download the QuickBooks Desktop Connector ","locally-step2-title":"Run Connector","locally-step2":"Run the QBD connector and connect to QBD each time you want to download data ","locally-step3-title":"Download Data","locally-step3":"Go to Reports & trigger the data download process ","locally-desc":"The QuickBooks Desktop connector is for clients host QuickBooks Desktop on their own server. If a client hosts their QuickBooks Desktop application on a 3rd party platform, please contact your HUB Analytics account manager for assistance."},"isc":{"btn":"Income Statement Classifications","title":"Income Statement Classifications","subTitle":"Does the client classify their income statement using one or more of the following classification methods? If not classifying, simply click Save.","info":"Select all options that apply","userQuestion":"Does the client use one or more of the following methods to classify their income statement (GL Accounts, Class List, or Location List)?","isSections":"Income Statement Sections","nameList":"Please enter a unique name for this classification list","locationList":"Location List","locationListInfo":"Use QuickBooks Online\'s Location field for classification","classList":"Class List","classListInfo-qbo":"Use QuickBooks Online\'s Class list for classification","classListInfo-qbd":"Use QuickBooks Desktop\'s Class list for classification","glAccounts":"GL Accounts","glAccountsInfo":"Categorize GL Accounts by a class list you create using HUB","createGLClass":"Create the GL account class name and class members here.","createList":"Create List","createAClassList":"Create A Class List","editAClassList":"Edit A Class List","giveNameToClass":"Give your Class list a friendly name","addOptionsList":"Add at least 2 options for your list","create":"Create","list":"List:","noClassList":"No Classes found","noLocationList":"No Locations found"},"dashboard":{"noNotification":"No Notifications yet","noReport":"No Reports published yet","noLongTermTitle":"No Long Term Company Goals","noLongTermDesc":"Long Term Company Goals have not been set up yet.","noLongTermClientDesc":"Long term company goals have not been added yet. Please contact TGG accounting to add long term company goals.","reportDeleted":"Data is missing because a recent financial package has been unpublished or deleted. Please contact your accountant to republish the report"},"longTermCompanyGoal":"Long Term Company Goal","longTermCompanyGoals":"Long Term Company Goals","longTermCompanyGoalPlaceholder":"Enter Long Term Company Goal","noLongTermCompanyGoalsFound":"No Long Term Company Goals Found","createLongTermCompanyGoal":"Create Long Term Company Goal","editLongTermCompanyGoal":"Edit Long Term Company Goal","longTermCompanyGoalUpdatedMess":"Long Term Company Goal Updated!","longTermCompanyGoalCreatedMess":"Long Term Company Goal Created!","longTermCompanyGoalsDeleteMess":"Removed Long Term Company Goal successfully","ais":{"disconnectTitle":"Disconnect QuickBooks Online","disconnectDesc1":"Are you sure you want to disconnect the current QuickBooks account and delete all data?","disconnectDesc2":"An active QuickBooks connection is required to use HUB features.","disconnectDesc3":"Please Note: Taking this action will reset your existing reporting template and delete your published and unpublished reports. Please download the reports you like to keep as this action is irreversible.","disconnectDesc4":"Please type <b>DELETE</b> in the box below to confirm this action.","waitText":"Kindly wait as we proceed with the disconnection process.","btnDisconnect":"Disconnect & Delete"}}'),user:JSON.parse('{"users":"Users","tggUsers":"HUB Analytics Users","internalUsers":"Internal Users","clientUsers":"Client Users","addTGGUser":"Add HUB Analytics User","addClientUser":"Add Client User","noUserTitle":"No User have been added","noUserDescription":"To add a new user, simply click the button below.","noFilteredUserTitle":"No Activated Users","noFilteredUserDeactivatedTitle":"No Deactivated Users","noFilteredUser":"No Users found","noFilteredUserDescription":"There are no users that match the selected filter. Clear the filter to see all active users.","noFilteredUserDescriptionDeactivated":"There are no users that match the selected filter. Clear the filter to see all deactivated users.","tgg-user":{"title":"Add HUB Analytics User","editTitle":"Edit HUB Analytics User","userDetails":"User Details","permissions":"Permissions","review":"Review User Information"},"addUserDetails":{"title":"Add User Details","userDetails":"User Details","userDetailsInfo":"This will be displayed on user\'s profile.","firstName":"First Name","firstNamePlaceholder":"Enter First Name","lastName":"Last Name","lastNamePlaceholder":"Enter Last Name","email":"Email","emailPlaceholder":"Enter Email","phoneNumber":"Phone Number","userRole":"User Role","role":"Role"},"addPermissions":{"reviewPermissions":"Permissions","permissions":"Select User Permissions","permissionsInfo":"Select the permission role for this user.","assignedFromExistingUser":"Assign From Existing User","assignFromExistingPersona":"Assign From Existing Persona","selectSpecificPermissions":"Select Specific Permissions"},"createUser":"Create User","userList":{"firstName":"First Name","lastName":"Last Name","name":"Name","email":"Email","phoneNumber":"Phone Number","role":"Role","jobRole":"Job Role","systemRole":"System Role","actions":"Actions","viewDetails":"View Details","change":"Change","invite":"Invitation Status","resendInvite":"Resend Invite","cancelInvite":"Cancel Invite","company":"Company","sendInvite":"Send Invite"},"assignClient":{"title":"Assign Client","info":"Select One or More Clients to assign:","noClientSelected":"Select One or More Clients to assign","selectRole":"Select Role for all the selected clients."},"assignAgency":{"title":"Assign Agency","info":"Select One or More Agencies to assign:","noAgencieSelected":"Select One or More Agencies to assign","selectRole":"Select Role for all the selected Agencies."},"userDetails":"User Details","assignedClient":"Assigned Client","noAssignedClient":"No Client Assigned","noAssignedClientDesc":"No Client Assigned to this user","noAssignedPermission":"No Permission Assigned","noAssignedPermissionDesc":"No Permission Assigned to this user","permissionInfo":"Permission Info"}'),profile:JSON.parse('{"myProfile":"My Profile","title":"Personal Info","desc":"Update your photo and personal details here.","firstName":"First Name","firstNamePlaceholder":"Enter First Name","lastName":"Last Name","lastNamePlaceholder":"Enter Last Name","email":"Email","clickToUpload":"Click to upload","dragDropInstruction":" or drag and drop JPG, JPEG or PNG","maxSize":"(max. 500KB)"}'),report:JSON.parse('{"title":"Reports","reportingTemplate":"Reporting Template","reportingTemplateDesc":"Select the components you would like to add the client\'s monthly financial reports.","blackDesc":"You have not configured the elements for the client\'s monthly report package. Start configuring these elements now.","changesSaved":"Changes Saved.","viewFullReport":"View Report","downloadPDF":"Download PDF","tasksBtn":"Tasks","publish":"Publish","unPublish":"Unpublish","validationCheck":"Validation Check","validationCheckReport":"Validation Check Report","publishReport":"Publish Report","publishReportBlankSlateDesc":"Publish Report not found.","publishingValidation":"Publishing Validations","reportPublishSuccessfully":"The report for {{reportTitle}} has been successfully published.","reportUnpublishSuccessfully":"Report unpublished successfully","confirmUnpublishReport":"Confirm Unpublish: {{title}}","confirmUnpublishReportDesc":"Are you sure you want to unpublish this report?","resync":"Resync","retry":"Retry","mapAccounts":"Map Accounts","completeMapping":"Mapping Completed","confirm":{"remove":"Confirm Remove","removePage":"Are you sure you want to remove this page?","removeWidget":"Are you sure you want to remove this widget?"},"templateBuilder":{"title":"Packages - Reporting Template","previewTitle":"Financial Report Preview","packageTitle":"Select Template Modules","addTemplateModules":"Add Template Module","packageTitle1":"No Template Available","addTemplateModules1":"No templates have been added yet. To add a template, please click on the button below to redirect to the reporting template screen.","addTemplateModules2":"No templates have been added yet. Simply Click on the button below to add a template.","editTemplateModules":"Edit Template Module","manageReportingTemplate":"Manage Reporting Template","packageDesc":"Select the components you would like to add the client\'s monthly financial reports now.","configure":"Configure","preview":"Preview","added":"Added","remove":"Remove","add":"Add","name":"Name","enterTemplateName":"Enter Template Module Name","version":"Version","commonPackageDesc":"This adds a cover page to the client\'s financial reports","noFinancialPackage":"No Financial Packages Available","noFinancialPackageDesc":"You have not created any monthly financial package for this client. To start, please click on the button below.","noPublishedFinancialPackageDesc":"You have not published any monthly financial package for this client.","createMonthlyFinancialReport":"Create Monthly Financial Report","customModule":"Create Custom Reporting Module","customModuleDesc1":"For Dedicated KPIs, Custom Financial Statements, Appendices, etc.","customModuleSideDrawerTitle":"Custom Reporting Module","customModuleTitle":"Title","customModuleTitlePlaceholder":"Enter title","customModuleDesc":"Description (Optional)","customModuleDescPlaceholder":"Enter Description here...","customModuleCode":"Code","customModuleAdded":"Custom Reporting Module Added.","customModuleDeleted":"Custom Reporting Module Deleted.","customModuleEdited":"Custom Reporting Module Changed.","editModule":"Edit Module","removeModule":"Delete Module","noReportAvailableForAppliedFilterDesc":"No Financial Report available for applied filter. Clear the applied filter to see all financial reports.","removeCustomModule":"Remove Custom Module - {{title}}","removeCustomModuleDesc":"Are you sure want to delete this custom module permanently, and remove it from the list?","viewFinancialPreview":"View Financial Package"},"coverPage":{"title":"Financial Statements and Analysis","date":"Period Ending {{date}}","reportsIncluded":"Reports Included:","page":"Page#","preparedBy":"Prepared By:","internalUseOnly":"Unaudited: For Internal Management Use Only","pageFromTo":"Page {{number}} of {{totalPage}}","clientLogo":"Client Logo"},"clientSnapshot":{"title":"Business Summary","businessOverview":"Business Overview","mission":"Mission:","vision":"Vision:","ownership":"Management & Ownership","advisors":"Advisors","department":"Department","managementMember":"Management Member","entityType":"Entity Type","taxBasis":"Tax Basis","financialYear":"Financial Year","executiveSummary":"Executive Summary"},"tbl":{"tblTitle":"Triple Bottom Line","updateDesc":"Update {{name}} Description","description":"Description","descriptionPlaceholder":"Add description for {{name}}","allAdded":"All Triple Bottom Lines are added to report.","notFound":"Triple Bottom Line not found."},"incomeStatement":{"title":"Income Statement"},"balanceSheet":{"title":"Balance Sheet"},"cashFlowStatement":{"title":"Cash Flow Statement"},"kpi":{"title":"KPIs","standardKpis":"Standard KPIs","customKpis":"Custom KPIs","addedKpis":"Added","searchTermPlaceholder":"Search here...","kpiTitle":"Title","kpiTitlePlaceholder":"KPI title here","kpiDescription":"KPI Description (Optional)","kpiMonthlyDescription":"KPI Monthly Note","kpiDescriptionPlaceholder":"Type here...","kpiDescriptionHelper":"Any description you add here will automatically be shown on each month\'s financial report. You can change this description every month.","addToReport":"Add To Report","closePreview":"Close Preview","details":"Details","stdKpiBlankSlateDesc1":"KPIs not found for the criteria provided.","stdKpiBlankSlateDesc2":"KPIs not found.","customKpiBlankSlateDesc":"No Custom KPI available.","addedKpiBlankSlateDesc":"No KPIs Selected","inputVariables":"Input Variables","function":"Function","trailing":"Trailing Period ({{type}})","monthsOfData":"Months of Data to include","configure":"Configure"},"reportPeriod":{"title":"Reporting Period","desc":"Select the month/year to generate the financial reports for.","year":"Year","month":"Month","newFinancialPackage":"New Financial Package"},"clientStatus":{"aisProfileSetup":"AIS Profile Setup","aisProfileSetup-btn":"Setup AIS Profile","aisProfileSetup-done":"You have finished setting up the AIS Profile for this client.","aisProfileSetup-notDone":"You have not yet setup the AIS Profile for this client. Click here to configure.","coaSetup":"Parent Account Configuration Setup","coaSetup-btn":"Setup Parent Account Configuration","coaSetup-done":"You have finished setting up the Parent Account Configuration for this client.","coaSetup-notDone":"You have not yet setup the Parent Account Configuration for this client. Click here to configure.","aisAccountDownload":"AIS Accounts Downloaded","aisAccountDownload-btn":"Import AIS Accounts","aisAccountDownload-done":"You have finished downloading the AIS Accounts for this client.","aisAccountDownload-notDone":"You have not yet downloaded the AIS for this client. Click here to download them.","aisAccountMapping":"AIS Account Mappings","aisAccountMapping-btn":"Map AIS Account","aisAccountMapping-done":"You have finished mapping the AIS Accounts for this client.","reporting-aisAccountMapping-notDone":"Please map unmapped AIS accounts to proceed to \'Reporting Template\'.","aisAccountMapping-notDone":"You have not finished mapping the AIS Accounts for this client. Click here to finish the mapping process.","reportTemplateSetup":"Report Template Setup","reportTemplateSetup-btn":"Setup Report Template","reportTemplateSetup-done":"You have finished selecting the components that make up the financial reports.","reportTemplateSetup-notDone":"You have not finished selecting the components for the monthly financial reports. Click here to build the reporting template."},"note":{"addNote":"Add Note","editNote":"Edit Note","title":"Title","titlePlaceholder":"Enter title","description":"Description","descriptionPlaceholder":"Enter notes here ","includeInTOC":"Include in TOC","notesUpdated":"Notes Updated.","notesToFS":"Notes to the Financial Statements","notesNumber":"Note {{number}}","arapNotes":"Notes - {{type}}","agingSchedule":"Aging Schedule","customer":"Customer","agingScheduleAndCustomer":"Aging Schedule and Customer","includeAISTitle":"Include AIS Accounts Breakdown","includeAISDesc":"Selecting this option will add a breakdown table containing the AIS Accounts that are associated with this parent account. This will show monthly and yearly standings for the AIS account in a tabular format.","addConfigureTable":"Add/Configure Table","glTableConfiguration":"GL Table Configuration","standardGLTable":"Standard GL Table (Current Month)","addDescription":"Add Description Column","addPercentageOfTotalParentAccount":"Add % of Monthly Parent Account Value","addYTD":"Add YTD Parent Account Value","addPercentageYTD":"Add % of YTD Parent Account Value","trailingGLTable":"Trailing GL Table (Four Month Values)","changeConfiguration":"Change Configuration","removeConfiguration":"Remove Table","definitionMonthlyReportCommentary":"Definition + Monthly Report Commentary","commentaryAddedInMonthlyReport":"Commentary Added in Monthly Report","notesRenderingMsg":"Notes are Rendering, Please wait...","addCustomerVendorTable":"Add Customer/Vendor Table","addPercentageOfTotal":"Add % of Total","showTop":"Show top X customers/vendors","deleteConfigurationsTable":"Delete Configurations Table","deleteConfigurationsTableDesc":"Are you sure want to delete this Configurations Table?","addCustomTable":"Add Custom Table"},"arap":{"accountsReceivable":"Accounts Receivable","accountsPayable":"Accounts Payable","fivePercent-ar-title":"Show only customers with 5% or more of total receivables.","fivePercent-ar-desc":"All others aggregated into \\"Other\\". Max 20 rows in table","tenPercent-ar-title":"Show only customers with 10% or more of total receivables.","tenPercent-ar-desc":"All others aggregated into \\"Other\\". Max 10 rows in table","custom-ar-title":"Show up to top “X” customers (Max 25) with receivables.","custom-ar-desc":"All others aggregated into \\"Other\\". Max 26 rows in table. Best for clients with concentrated receivables, but many customers.","fivePercent-ap-title":"Show only vendors with 5% or more of total payables.","fivePercent-ap-desc":"All others aggregated into \\"Other\\". Max 20 rows in table","tenPercent-ap-title":"Show only vendors with 10% or more of total payables.","tenPercent-ap-desc":"All others aggregated into \\"Other\\". Max 10 rows in table","custom-ap-title":"Show up to top “X” vendors (Max 25) with payables.","custom-ap-desc":"All others aggregated into \\"Other\\". Max 26 rows in table. Best for clients with concentrated payables, but many vendors.","showAllowance":"Show Allowance for Doubtful Accounts + Gross/Net Receivables in applicable Accounts Receivable tables?","arMaintainTitle":"Does this client maintain transaction-level customer detail in Accounts Receivable?","apMaintainTitle":"Does this client maintain transaction-level vendor detail in Accounts Payable?","ifNoMaintainInfo":"(If no, {{key}}-related tables and graphs will not be available)","manageDisplaySettings":"Manage {{key}} Display Settings","arDisplaySettingInfo":"For tables displaying customers with receivables due, please select from one of the following options:","apDisplaySettingInfo":"For tables displaying vendors with payable due, please select from one of the following options:","customers":"Customers","vendors":"Vendors","periods":"Periods","manageAgingSchedule":"Manage {{key}} Aging Schedule","arManageAgingScheduleInfo":"Use this aging schedule to see where you stand with Accounts receivables with various customers.","apManageAgingScheduleInfo":"Use this aging schedule to see where you stand with Accounts payable with various vendors.","arapTitleDataErrors":"AR/AP Data Errors","errorIgnored":"Error Ignored!","client":"Client","vendor":"Vendor","amount":"Amount","invoiceDate":"Invoice Date","dueDate":"Due Date","transactionType":"Transaction Type","ignoreTransactionTypeErrors":"Ignore Transaction Type Errors?","ignoreTransactionTypeErrorsDesc1":"The invalid transaction types will be ignored and you will continue building to your report.","ignoreTransactionTypeErrorsDesc2":"To continue, please provide us with a reason you are choosing to ignore these errors.","ignoreReason":"Ignore Reason","ignoreReasonPlaceholder":"Enter reason here...","blankSlate":"No Errors found for {{type}}.","settings":"Settings","glTables":"Table/Chart Selection","agingScheduleAndCustomer":"Table: {{type}} + Aging Schedule","agingSchedule":"Table: Aging Schedule Only","customer":"Table: {{type}} Only","agingScheduleGraph":"Graph: Aging Schedule Only"},"dfm":{"title":"Condensed Financial Statement","buildMyOwn":"Build My Own","reportType":"Report Type","settings":"Settings","backToListing":"Back To Listing","showEbitdaText":"Show EBITDA in Condensed Income Statement","showEbitda":"Show EBITDA","addToPage":"Add To Page","enabledMetrics":"Enabled Metrics","showYTD":"Show YTD Column","placeholder":"Custom Financial Statements are not displayed in the Template Preview. They are managed in the configuration screen and will appear on each monthly report.","displayMode":"Display Mode","parentOnly":"Primary Only","parentSubAccounts":"Primary & Parent-Accounts","aisAccounts":"AIS Accounts","parentOnlyInfo":"This mode displays only the Primary accounts on the Income statement.","parentSubInfo":"This mode displays only the Primary accounts and Parent accounts on the Income statement.","aisInfo":"This mode displays only the Primary accounts, Parent accounts and AIS accounts on the Income statement.","hideSubAccounts":"Hide Parent-accounts","showSubAccounts":"Show Parent-accounts","hideAISAccounts":"Hide AIS-accounts","showAISAccounts":"Show AIS-accounts","noAISAccountFound":"No AIS Account Found","thirteenMonthIS":"13 Month Income Statement","thirteenMonthBS":"13 Month Balance Sheet","thirteenMonthCS":"13 Month Cash Flow Statement","cis":"Income Statement","cbs":"Balance Sheet","cfs":"Cash Flow Statement","condensed-income-statement":"Condensed Income Statement","condensed-balance-sheet":"Condensed Balance Sheet","condensed-cash-flow-statement":"Condensed Cash Flow Statement","currentMonthYoYComparableIS":"Current Month YoY Comparable Income Statement","CurrentQuarterYoYComparableIS":"Current Quarter YoY Comparable Income Statement","currentYearYoYComparableIS":"Current Year YoY Comparable Income Statement","currentMonthYoYComparableCS":"Current Month YoY Comparable Cash Flow Statement","CurrentQuarterYoYComparableCS":"Current Quarter YoY Comparable Cash Flow Statement","currentYearYoYComparableCS":"Current Year YoY Comparable Cash Flow Statement","comparableIS":"Comparable Income Statement","reportingPeriod":"Reporting Period","customTrailing":"Custom Trailing","customTrailingIS":"Custom Trailing Income Statement","customTrailingBS":"Custom Trailing Balance Sheet","customTrailingCS":"Custom Trailing Cash-Flow Statement","customISByClasses":"Custom Income Statement - By Classes","customISByClassesQuarter":"Quarter To Date Income Statement - By Classes","customISByClassesYear":"Year To Date Income Statement - By Classes","customISByClassesNotConfigTitle":"No Preview Available","customISByClassesNotConfigDesc":"Client is not classifying their income statement","customISByClassesNotSelectedDesc":"Please select classification method","customISByClassesNotListDesc":"List is not available for this classification method","customTrailingISValue":"{{value}} Trailing Income Statement","customTrailingBSValue":"{{value}} Trailing Balance Sheet","customTrailingCSValue":"{{value}} Trailing Cash-Flow Statement","month":"Month","quarter":"Quarter","year":"year","classifyBy":"Classify By","selectOtherColumn":"Select \\"Other\\" Column","selectOtherColumnDesc":"Select this option to group one or more classes into an \\"Other\\" column. This helps you focus on the classes you want to visualize and group the rest into an \\"Other\\" column.","showYTDComparison":"Show YTD Comparison","showVariance":"Show Variance","periodType":"Period Type","varianceType":"Variance Type"},"goal":{"title":"Company Goals","desc":"Select one or more goals to add to the client\'s financial reports.","internalNote":"Internal Notes","saveAndAddToReport":"Save and Add To Report","goalActivity":"Goal Activity","goalActivityPlaceholder":"Enter Goal Notes for the month","placeholder":"Active Company Goals are not displayed in the Reporting Template. They are managed in the Company Goals section and will appear when each monthly report is created.","goalStatus":"Edit Goal Status","status":"Status","errorStatus":"Please select the status of all the Company Goals.","successStatus":"Company Goal status updated!","goalsRenderingMsg":"Goals are Rendering, Please wait..."},"profitRecommendations":{"title":"Profit Recommendation","desc":"Select one or more Profitability Recommendations to add to the client\'s financial reports.","internalNote":"Internal Notes","saveAndAddToReport":"Save and Add To Report","prActivity":"Profit Recommendation Activity","prActivityPlaceholder":"Enter Profit Recommendation Activity for the month","placeholder":"Active Profitability Recommendations are not displayed in the Reporting Template. They are managed in the Profitability Recommendations section and will appear when each monthly report is created."},"tasks":{"reportingTasks":"Reporting Tasks","reportingTasksBtn":"Reporting Tasks","noReportingTasks":"No Reporting Tasks","noReportingTasksDesc-1":"No completed reporting tasks available to show.","noReportingTasksDesc-2":"No pending reporting tasks available to show.","noReportingTasksDesc-3":"No failed reporting tasks available to show.","noReportingTasksDesc":"No reporting tasks available to show.","reportRefreshed":"Report Tasks Refreshed!","reportRefreshing":"Initiating Report Refresh!","resync24MonthData":"Resync 24-Month Data","qbConfirmDesc1":"You have selected to Re-Sync QuickBooks data for {{selectedDate}}. This report will refresh once the download is complete. Are you sure you want to begin?","qbConfirmDesc2":"You have selected to Re-Sync QuickBooks data from {{selectedDate}} to {{endDate}}. This report will refresh once the download is complete. Are you sure you want to begin?"},"noSettingsAvailable":"No Settings Available","viewReport":"View Report","charts":{"title":"Chart & Graph Module","chartTpe":"Select Chart/Graph Type","chartParameter":"Select Chart Parameters","stdGraphTitle":"Standard Column/Line Graph","stdGraphDesc":"This graph type allows up to four inputs. Inputs can include any primary, parent, or sub account, margins, standard or custom KPIs, individual data sets (not list-based) over multiple periods of time. Target lines and target ranges can be used on graphs with a single input.","stackedGraphTitle":"Stacked/Split Column Graph","stackedGraphDesc":"This graph type is used to display any class data (ie.g., business unit revenue), list-based data sets e.g., units sold by product list), or itemized parent accounts under a parent account (e.g.) into column format over multiple periods of time.","pieGraphTitle":"Pie Chart","pieGraphDesc":"This chart type is used to display any class data (ie.g., business unit revenue), list-based data sets e.g., units sold by a product list, or itemized parent accounts under a parent account (e.g.) for a single period (month, quarter, year).","ytdGraphTitle":"Year-To-Date Line/Column Graph","chartTitle":"Graph Title","chartTitlePlaceholder":"Enter Graph Title","input":"Input","inputs":"Input(s)","legendLabel":"Legend Label","legendLabelPlaceholder":"Enter Legend Label","inputPlaceholder":"Select Input","outputDisplay":"Output Display","number":"Number","percentOfTotal":"Percent Of Total","period":"Period Type","periodPlaceholder":"Select Period Type","trailingPeriod":"Number of Trailing Periods","trailingPeriodPlaceholder":"Select Number of Trailing Periods","addComparable":"Add Comparable Pie Chart for Previous Year","hideOthers":"Hide Others Column","dataSource":"Data source","dataSourcePlaceholder":"Select Data source","conditionalFormatting":"Conditional Formatting (For one input graphs only)","targetLine":"Target Line","targetRange":"Target Range","targetValue":"Target Value","targetValuePlaceholder":"Enter target value","targetRangeLow":"Range Low","targetRangeLowPlaceholder":"Enter Range Low","targetRangeHigh":"Range High","targetRangeHighPlaceholder":"Enter Range High","lineColor":"Line Color","aboveTargetColor":"Above Target Color","belowTargetColor":"Below Target Color","addDataTable":"Add Data Table","disableDataLabels":"Disable Data Labels","maxAxisValidation":"Please add at most 2 inputs on the Left/Right axis.","maxRangeValueValidation":"Range High value must be greater than Range Low Value.","monthlyDescription":"Monthly Note","description":"Description (Optional)","descriptionPlaceholder":"type here...","typeMismatchedValidation":"Different data sources are not allowed to be set on the same Axis.","duplicateDataSourceFound":"Same data sources are not allowed to be set.","min":"Min","max":"Max","intervals":"Intervals","minPlaceholder":"Enter Min value","maxPlaceholder":"Enter Max value","intervalPlaceholder":"Select Intervals","showDecimalPlaces":"Show Decimal Places","leftAxisLabel":"Left Axis Settings","rightAxisLabel":"Right Axis Settings","axisSettingLabel":"Axis Settings","maxValueValidation":"Max value must be greater than Min Value.","enableDataLabels":"Labels","maxLimit":"Does not impact currency values over $1m.","customerMizOptions":"Customer Mix Options","customerMizOptionsPlaceholder":"Select Option","customerMixChart":"Customer Mix Chart"},"pdf":{"modal":{"title":"Add PDF","editTitle":"Edit PDF","pdfTitle":"PDF Title","titlePlaceholder":"Enter title","clickUpload":"Click to upload","dragAndDropPDF":"or drag and drop PDF","maxPDFSize":"max. 10 MB"}},"cvTable":{"title":"Customer/Vendor Tables ({{title}})","instruction":"Please follow the following instructions to upload the itemized customer/vendor data.","i1":"Download the .csv template","i2":"Fill in the customer/vendor information for the month","i3":"Upload the .csv file","eligibleAccounts":"Eligible accounts for customer/vendor data are limited to:","customer":"Customer Parent Accounts","vendor":"Vendor Parent Accounts","downloadTemplate":"Download CSV Template Here","parentAccount":"Parent Account","customerVendor":"Customer/Vendor","customerVendorName":"Customer/Vendor Name","totalUpload":"Total $ Upload","totalHub":"Total $ HUB","accountUploaded":"All uploaded account values matched and data uploaded successfully.","clearData":"Clear All Data","clearTableDataConfirmation":"Are you sure you want to clear table data?","dataRemoved":"All accounts are removed!","dataAdded":"Customer/Vendor accounts added successfully!","rowLevelErrorSummary":"Row-Level Error Summary"},"csv":{"clickUpload":"Click to upload","dragAndDropPDF":"or drag and drop CSV","maxPDFSize":"max. 10 MB"},"dt":{"title":"Table Module Configuration","tableTitle":"Table Title","tableTitlePlaceholder":"Enter Table Title","inputs":"Input(s)","dataSource":"Data source","dataSourcePlaceholder":"Select Data source","tableDisplayName":"Table Display Name","tableDisplayNamePlaceholder":"Enter Table Display Name","addInput":"Add Input"},"ct":{"title":"Custom Table","numberOfRows":"Number of Rows","columns":"Column(s)","columnType":"Column Type","columnTypePlaceholder":"Column Type","columnName":"Column Name","columnNamePlaceholder":"Enter Column Name","totalRow":"Total Row","customTableDataEntry":"Custom Table Data Entry","glTableDataEntry":"GL Account Table Description Entry","alignment":"Alignment"},"sct":{"title":"Top Sales by Customer Configuration","tableTitle":"Table Title","topXCustomer":"Top \'X\' Customers + Other","custom":"Custom","topXCustomerDescription":"Total customers with Sales in last 12 months: {{number}}","calculationPeriod":"Calculation Period","check1":"Show each customers % of total sales for the period","check2":"Add a commentary box to this table","numberCheck":"Please add a number between 1 and 50."}}'),kpis:JSON.parse('{"kpis":"KPIs","categoryPlaceholder":"KPIs Category","noFilteredKPIsTitle":"No KPIs Matches Current Filter","noFilteredKPIsDescription":"No KPIs found that matches the applied filter. To see all the KPIs, simply clear the applied filter.","KPIsList":{"name":"Name","category":"Category","actions":"Actions","dateCreated":"Date Created"},"stdKPIs":"Standard KPIs","customKPIs":"Custom KPIs","addCustomKPI":"Create Custom KPI","customKPIsInfo":"Below are the client\'s custom KPIs, which also include any customized standard KPIs.","customize":"Customize","nonAccountingKPIs":"Non Accounting KPIs","nonAccountingKPIsGetStarted":"Non Accounting KPIs - Get Started","createNonAccountingKPIs":"Create Non Accounting KPIs","noCustomKPIsTitle":"No Custom KPIs Created","noCustomKPIsInfo":"You do not have any custom KPIs created.","noNonAccountingKPIsTitle":"No Non Accounting KPIs Created","noNonAccountingKPIsInfo":"You do not have any non accounting KPIs created. Please click on the button below to get started.","archiveConfirm":"Archive KPI - {{title}}","restoreConfirm":"Restore KPI - {{title}}","archiveConfirmDesc":"Are you sure you want to archive this KPI?","restoreConfirmDesc":"Are you sure you want to restore this KPI?","kpiArchived":"KPI Archived!","kpiRestored":"KPI Restored!","dataSetAndLists":"Data Sets & List","nonClientAccountingKPIs":"No Key Performance Indicators available.","nonAccountingSteps":{"createDataSet":"Create Data Set","editDataSetWithName":"Edit Data Set: {{name}}","createDataSetInfo1":"You will need a data set to store the non accounting data.","createDataSetInfo2":"You can use the same data set to create multiple KPIs.","createDataSetInfo3":"You can create data sets for any information that you would like to display as KPIs. For e.g. regional sales, employee sales etc.","createDataSetInfo4":"Already created data sets?","createDataSetInfo5":"Non-Accounting KPIs require monthly data-entry to create charts for financial KPIs. Typical examples of data sets include: Total Employees Per Month, Total Sales Per Region etc.","previewDataSet":"Preview Date Set","previewDataSetInfo":"You can start adding data for columns that you have provided for this data sets.","buildKPI":"Build your KPI","configureKPIs":"Configure KPIs","configureKPIsInfo1":"Configure one or more KPIs using the data set","configureKPIsInfo2":"Use KPIs in financial packages","createDataSetBtn":"Create Data Set","selectExistingDataSetBtn":"Select Existing Data Set","configureNonAccountingBtn":"Configure Non Accounting KPI","dataSetDetails":"Data Set Details","dataSetColumns":"Data Set Columns","dataSetPreview":"Data Set Preview","columns":"Columns","addColumn":"Add Column","editColumn":"Edit Column","columnName":"Column Name","enterColumnName":"Enter Column Name","columnType":"Column Type","columnDesc":"Column Description","enterColumnDesc":"Enter Column Description","dataSetColumnsInfo":"You can create data sets for any information that you would like to display as KPIs. For e.g. regional sales, employee sales etc.","noDataSetColumnsTitle":"No Columns Created","noDataSetColumnsInfo":"Please click on the button \\"Add Column\\" to start adding Column.","dataSetName":"Data Set Name","enterDataSetName":"Enter Data Set Name","addData":"Add Data","addDataTitle":"{{name}} - Add Data","editDataTitle":"{{name}} - Edit Data","selectDataSet":"Select Data Set","selectDataSetField":"Select Data Set Field","dataSetVariables":"Data Set Variables","dataSetVariablesInfo":"Here are the variables belonging to this data set","yes":"Yes","no":"No"},"nonAccountingStepInfo":{"title":"Create Non-Accounting KPIs using our 2-step process","step1":"Create a Data Set","step1Info":"Non-Accounting KPIs require monthly data-entry to create charts for financial KPIs.\\nTypical examples of data sets include: Total Employees Per Month, Total Sales Per Region etc.","step2":"Build KPI Using Data Set & Formula Builder","step2Info":"Once you create your data set, you can use it within the Formula Builder to build non-accounting KPIs."},"createDataSetInfo":{"firstMonthOfData":"What is the first month for which you have this data for?","dataIncludeList":"Does your data set include data from one or more Lists?","dataIncludeListEx":"Typical examples include \\"Regions\\" or \\"Product Types\\" etc.","createList":"Let\'s Create A List","createListInfo":"Lists often contain data that can be used in other data sets. For example, a Regions list can be used in Sales By Region data set.","createVariable":"Create New Variable","createVariableInfo":"A variable is used to record data for monthly financial reports. Typical examples include: Total Employees, Total Sales etc.","createListBtn":"Create List","createVariableBtn":"Create Variable"},"variables":{"createVariable":"Create New Variable","editVariable":"Edit Variable","variableName":"Variable Name","enterVariableName":"Enter Variable Name","variableType":"Variable Type","selectVariableType":"Select Variable Type","variableProperty":"Variable Property","selectVariableProperty":"Select Variable Property","variablePropertyHelper":"Percentage variable types are non-cumulative only.","variableDesc":"Variable Description","enterVariableDesc":"Enter Variable Description","saveAndAddVariable":"Save & Add Another Variable","addVariable":"Add Variable","variableNameWarning":"Changing the variable name will remove it from any associated KPIs. Please update any KPIs with the new variable input."},"list":{"list":"list","lists":"Lists","selectList":"Select List","createAList":"Create A List","editAList":"Edit A List","viewAList":"View A List","listName":"Name Your List","yourListName":"Your List Name","listNamePlaceholder":"e.g. Regions","addListElements":"Add List Elements","listElements":"List Elements","addListElementsPlaceholder":"e.g. North","addAnotherElement":"Add Another Element","create":"Create","createList":"Create List","addList":"Add List","selectFromExisting":"Select From Existing List","noListTitle":"No Lists Created","noListInfo":"Lists allow you to build a list with values that can be used in a Data Set","noFilteredListTitle":"No Archived Data Set Lists","noFilteredListDescription":"There are no data set lists that match the selected filter. Clear the filter to see all active data set lists."},"dataSets":{"dataSets":"Data Sets","dataSetName":"Data Set: {{name}}","saveData":"Save Data","dataSetsBtn":"Add New Data Set","enterMonthlyData":"Enter Monthly Data","noMonthlyDataTitle":"No Field available","noMonthlyDataInfo":"No Field available to fill data","noDataSetsTitle":"No Data Sets Created","noDataSetsInfo":"You do not have any data sets created. Please click on the button below to get started.","confirmEmptyDataTitle":"Confirm Save","confirmEmptyDataInfo":"You have missing inputs that will not allow you to generate a new report until they are filled. Do you want to save?","noFilteredDataSetTitle":"No Archived Data Sets","noFilteredDataSetDescription":"There are no data sets that match the selected filter. Clear the filter to see all active data sets.","noAssignedVariables":"No assigned variables"},"dataSetTypes":{"period":"Period","numeric":"Numeric","currency":"Currency","text":"Text","lookup":"LookUp","percentage":"Percentage"},"kpiTypes":{"stdKPI":"Standard KPIs","stdKPIInfo":"Review HUB’s library of standard accounting KPIs","customKPI":"Custom KPIs","customKPIInfo":"Lists any financial KPIs customized for this client","nonAccKPI":"Non Accounting KPIs","nonAccKPIInfo":"Manage non-accounting KPIs\\n(e.g. No. of Employees per month)","manage":"manage","review":"review","createKPI":"Create KPI","createKPIInfo":"Create a custom KPI using the formula builder or customize a standard KPI.","isCustomizing":"Customize Standard KPI","createCustomKPI":"Create Custom KPI"},"fb":{"locked":"Locked","lockedInfo":"Standard KPI Formula is locked.","customLockedInfo":"Custom KPI Formula is locked.","trailingPeriod":"Please select the number of months to include in this KPI.","editInfo":"The Custom KPI must have at least one input changed before saving.","customizeKPI":"Customize Standard KPI","customizeEBITDA":"Customize EBITDA","formulaEditor":"Formula Editor","inputs":"Inputs","outputFormat":"Output Format","edit":"Edit","editEBITDA":"Edit Custom EBITDA","editCustomKPI":"Edit Custom KPI","revertToOriginal":"Revert"}}'),goals:JSON.parse('{"goals":"Company Goals","goal":"Company Goals","year":"Year","noGoalsTitle":"No Goals Added","noClientGoalsTitle":"No Goals available","noGoalsInfo":"No goals have been added for this period. Click on the button below to get started with the goals.","noFilteredGoalsTitle":"No Goals Matches Current Filter","noFilteredGoalsInfo":"No Goal found that matches the applied filter. To see all the goals, simply clear the applied filter.","addAGoal":"Add a Goal","reorder":"Reorder","reorderGoals":"Reorder Goals","createAGoal":"Create A Goal","editGoal":"Edit Goal - {{name}}","goalTitle":"Goal Title","goalTitlePlaceholder":"Enter Goal Title","yearPlaceholder":"Select a Year","goalTitleHelper":"For example: Increase Total Revenue to $4.5 million dollars.","goalSummary":"Goal Summary","dataSource":"Data Source","dataSourcePlaceholder":"Select a Data Source","dataSourceHelper":"Data sources available for Company Goals include all Standard and Custom KPIs, Data Set values, Margin Calculations, all Primary accounts in the BS, IS, CFS, and all Parent accounts in the BS and IS.","goalValue":"Target Goal Value","goalValueHelper":"The {{type}} value of the goal with","addInternalNote":"Add Internal Notes for this goal in the next step","internalNotes":"Internal Notes","progressNotes":"Progress Notes","viewNotes":"View Notes","viewInternalNotes":"View Internal Notes","viewProgressNotes":"View Progress Notes","viewGoalProgress":"View Goal Progress","addNote":"Add Note","saveNote":"Save Note","enterInternalNote":"Enter an Internal note","enterProgressNote":"Enter a Progress note","noInternalNotesAdded":"No Internal Notes Added","noInternalNotesAddedInfo":"No Internal Notes Added for this goal. Click on the button \\"Add Note\\" to add note.","noProgressNotesAdded":"No Progress Notes Added","noProgressNotesAddedInfo":"No Progress Notes Added for this goal. Click on the button \\"Add Note\\" to add note.","goalProgress":"Goal Progress","goalProgressTitle":"{{title}} - Progress","noteStatus":"On {{date}} by {{user}}","archiveConfirm":"Archive Goal - {{title}}","restoreConfirm":"Restore Goal - {{title}}","archiveConfirmDesc":"Are you sure you want to archive this goal?","restoreConfirmDesc":"Are you sure you want to restore this goal?","goalArchived":"Goal Archived!","goalRestored":"Goal Restored!","unLockConfirm":"Unlock Company Goal - {{title}}","lockConfirm":"Lock Company Goal - {{title}}","unLockConfirmDesc":"Are you sure you want to unlock this goal?","lockConfirmDesc":"Are you sure you want to lock this goal?","goalLock":"Company Goal locked!","goalUnlock":"Company Goal Unlocked!","modeValues":"Mode values","modeValuesPlaceholder":"Select Mode values","graphType":"Graph Type","graphTypePlaceholder":"Select a Graph Type","addGoalConfirmDesc":"Please confirm all the goal inputs are correct. Goal will be locked once created.","graphTargetValue":"Graph Target Value","graphTargetValuePlaceholder":"Enter Graph Target Value","noCompanyGoalsTitle":"No Company Goals","noCompanyGoalsDesc":"Company Goals have not been set up yet.","noTemplatesAdded":"Reporting Template have not been setup yet","noTemplatesAddedDescription":"Please set up the report template before creating your first Company Goal."}'),profitRecommendations:JSON.parse('{"profitRecommendations":"Profitability Recommendations","profitRecommendationsProgress":"Profitability Recommendations Progress","addAPR":"Add Profit Recommendation","noPRTitle":"No Profitability Recommendations Added","noPRTitleDashboard":"No Profitability Recommendations Added yet","noClientPRTitle":"No Profitability Recommendations available.","noPRInfo":"No Profitability Recommendations have been added for this period. Click on the button below to get started with the Profitability Recommendations.","noFilteredPRTitle":"No Profitability Recommendations Matches Current Filter","noFilteredPRInfo":"No Profitability Recommendations found that matches the applied filter. To see all the Profitability Recommendations, simply clear the applied filter.","editPR":"Edit Profit Recommendation","PRTitle":"Recommendation Title","PRTitleHelper":"For example: Increase Revenue by 10%","PRSummary":"Summary","PROutcome":"Outcome","dataSource":"Data Source","dataSourcePlaceholder":"Data Source Selection","dataSourceHelper":"Enter the source to get the monthly goal values from. For e.g. Profit Margin % or Revenue. Values can be Primary or Parent accounts or KPIs (Standard, Custom or Non-Accounting)","goalValue":"Goal Value","goalValueHelper":"The numeric value of the goal","dueDate":"Reporting Period","dueDateHelper":"Profitability Recommendations can be due per month, or at the end of a year.","month":"Month","year":"Year","reportDate":"Report Date","addInternalNote":"Add Internal Notes for this goal in the next step","internalNotes":"Internal Notes","viewNotes":"View Notes","addNote":"Add Note","saveNote":"Save Note","enterInternalNote":"Enter an Internal note","noInternalNotesAdded":"No Internal Notes Added","noInternalNotesAddedInfo":"No Internal Notes Added for this recommendation. Click on the button \\"Add Note\\" to add note.","noProgressNotesAdded":"No Progress Notes Added","noProgressNotesAddedInfo":"No Progress Notes Added for this recommendation. Click on the button \\"Add Note\\" to add note.","noteStatus":"On {{date}} by {{user}}","recommendation":"Recommendation","removeRecommendationDesc":"Are you sure want to delete this Recommendation permanently, and remove it from the list?","removeRecommendationTitle":"Remove Recommendation - {{title}}","recommendationRemoved":"Recommendation removed!","archiveRecommendationTitle":"Archive Recommendation","archiveRecommendationDesc":"Are you sure want to archive this Recommendation?","restoreRecommendationTitle":"Restore Recommendation","restoreRecommendationDesc":"Are you sure want to restore this Recommendation?","recommendationArchived":"Recommendation archived!","recommendationRestored":"Recommendation restored!","profitProgressTitle":"{{title}} - Progress","viewProgress":"View Progress","status":"Status","statusOptions":{"recommended":"Recommended","inProgress":"In Progress","implemented":"Implemented","notImplemented":"Not Implemented"},"prCreated":"Profit Recommendation created!","prUpdated":"Profit Recommendation updated!","prActivityAdded":"Profit Recommendation activity added for this month.","noTemplatesAdded":"Reporting Template have not been setup yet","noTemplatesAddedDescription":"Please set up the report template before creating your first Profitability Recommendation."}'),settings:JSON.parse('{"clientPortalSettings":"Client Portal Settings","noWidgetAvailableTitle":"No Client Widget Available","noWidgetAvailableDescDashboard":"No Client Widget available to add on client Dashboard.","noWidgetAvailableDescKpi":"No Client Widget available to add on client KPI.","addToDashboard":"Add to client dashboard","selectWidget":"Select the below charts and graphs you would like displayed on the client’s KPI page.","reportSettings":"Report Settings","reportSelect":"Available Report Settings","addToReport":"Add to client report","selectChartAndGraphs":"Select the below charts and graphs you would like displayed on the client\'s dashboard.","CEOProfile":"Custom Client Message","CEOProfileDetails":"Add a custom message to your client in their client portal","welcomeMessage":"Add custom message"}'),document:JSON.parse('{"title":"Documents","createFolder":"Create Folder","upload":"Upload","addDocuments":"Add Documents","editDocuments":"Edit Documents","fileUploaded":"File Uploaded","createFolderTitle":"Create a folder to start uploading your documents","blankTitle":"Create a folder to start uploading your documents","blankTitleClientUser":"No Folder has been added yet.","blankDesc":"No Folder has been added. Click on the button below to create a folder with the document.","uploadDocumentTitle":"Click on the button below to start uploading your documents.","uploadDocumentTitleClientUser":"No Documents has been added yet.","folderDeletedSuccessfully":"Folder deleted successfully","folderConfirmRemoveTitle":"Delete Folder","folderConfirmRemoveDesc":"Are you sure you want to delete folder?","folderNameUpdated":"Folder name updated!","folderCreated":"Folder created!","documentCreated":"Document created!","fileUploadedSuccessfully":"Document uploaded successfully","multiFileUploadedSuccessfully":"Documents uploaded successfully","documentDeletedSuccessfully":"Document Deleted Successfully","documentsDeletedSuccessfully":"Documents Deleted Successfully","errorUploadingFile":"Error uploading file","fileIsRequire":"File is require","displayFileNameIsRequire":"Display FileName is require","maxSize":"(max. 20MB)","deleteMultiDocumentsTitle":"Delete Documents","DocumentNameUpdated":"Document name updated!","deleteMultiDocumentsDesc":"Are you sure you want to delete the selected documents?","deleteDocumentTitle":"Delete Document","deleteDocumentDesc":"Are you sure you want to delete document?","folder":{"createFolder":"Create Folder","renameFolder":"Rename Folder","enterTheFolderName":"Enter the folder name","folderName":"Folder Name","fileUploaded":"{{number}} file uploaded","filesUploaded":"{{number}} files uploaded","rename":"Rename","folderNameValidation":"Folder Name must be less than or equal to 255 characters."},"viewPDF":"View PDF","name":"Name","type":"Type","size":"Size","uploadedOn":"Uploaded On","fileName":"File Name :","displayName":"Display Name :","fileSizeExceedsTheMaximumLimit":"File size exceeds the maximum limit.","dragDropInstruction":"or drag and drop PDF, DOC, DOCX, XLS, PPT, TXT or CSV","uploadFilesValidation":"Please upload files with extensions .pdf/.doc/.docx/.xls/.ppt/.txt/.csv only.","uploadFileValidation":"You can only upload up to 100 files."}'),agency:JSON.parse('{"title":"Agencies","addAccount":"Add Agency","noAccountTitle":"No Accounts have been added","noAccountDescription":"To add a new account, simply click the button below.","noFilteredAccountTitle":"No Deactivated Accounts","noFilteredAccountDescription":"There are no accounts that match the selected filter. Clear the filter to see all active accounts.","noActiveFilteredAccountTitle":"No Activated accounts","noActiveFilteredAccountDescription":"There are no accounts that match the selected filter. Clear the filter to see all accounts.","blankDescription":"No Account","assignGlobalUsers":"Assign Global Users","noAccountAssigned":"No Agency Assigned","noAccountAssignedDescription":"No Agency has been assigned to you yet.","addEditAgency":{"title":"Add Agency","editTitle":"Edit Agency","accountName":"Account Name","accountNameDesc":"This will be displayed on your profile.","accountNamePlaceholder":"Enter account name","accountNameError":"Please add account name.","address":"Account Address","streetAddressPlaceholder":"Street Address","city":"City","state":"State","zip":"Zip Code","phoneNumber":"Phone Number","accountLogo":"Account Logo","timezone":"Timezone","timezonePlaceholder":"Select Timezone","timezoneError":"Please select timezone.","clientLogo":"Account Logo","clientLogoDesc":"Update the account logo","clickToUpload":"Click to upload","dragDropInstruction":" or drag and drop JPG, JPEG or PNG","maxSize":"(max. 500KB)","errorAddressLine1":"Enter address line 1","errorAddressLine2":"Enter address line 2","errorCity":"Enter city","errorState":"Enter state","errorPostalCode":"Enter postal code","slug":"URL","slugPlaceholder":"Enter URL","slugValidation":"Slug cannot exceed 50 characters. Slugs cannot include special characters other than a hyphen (-).","agencyUpdatedMess":"Agency Updated Successfully!","agencyCreatedMess":"Agency Created Successfully!"},"agencyList":{"title":"Account","location":"Location","status":"Status","Actions":"Actions"},"action":{"open":"Open","edit":"Edit","assignUsers":"Assign Users"},"globalUsers":{"title":"Global Admin Users","addGlobalUser":"Add Global User","createGlobalUser":"Create Global User","noUserTitle":"No Global Admin Users have been added","noUserDescription":"To add a new global admin user, simply click the button below.","noFilteredUserTitle":"No Deactivated Global Admin Users","noFilteredUserDescription":"There are no users that match the selected filter. Clear the filter to see all active users.","noActiveFilteredUserTitle":"No Activated Global Admin Users","noActiveFilteredUserDescription":"There are no users that match the selected filter. Clear the filter to see all users.","name":"Name","email":"Email","permission":"Permission","status":"Status","actions":"Actions","assignAgencyAccount":"Assign Agency","AgentAccount":"Agent Accounts","addEditGlobalUser":{"title":"Add Global Admin","editTitle":"Edit Global Admin","accountAdministrator":"Account Administrator","firstName":"First Name","firstNamePlaceholder":"Enter First Name","lastName":"Last Name","lastNamePlaceholder":"Enter Last Name","email":"Email","emailPlaceholder":"Enter Email","permission":"Permission","assignedAccounts":"Assigned Agencies:","assignAgencyAccount":"Assign Agency","globalPermission":"Global Admin (Create/ manage standard users, create accounts, and access all accounts)","standardPermission":"Standard User (Access assigned accounts only)","selectedAssignedAccountsTitle":"Please select Agencies to be assigned to this user.","addAssignAgencyAccount":"Add Assign Agency","addAssignAgencyAccountInfo":"Select One or More Agency to assign","agencyAccountRemoved":"Agency removed!","assignAgencyAccountSuccess":"Updated Agency Successfully!","globalUserUpdatedMess":"Global User Updated Successfully!","globalUserCreatedMess":"Global User Created Successfully!","assignedGlobalUsersSuccess":"Assigned Global Users Successfully!","accountConfirmRemoveTitle":"Delete Assigned Account","accountConfirmRemoveDesc":"Are you sure you want to delete this account?"}}}'),publishingRequirements:JSON.parse('{"publishingRequirements":"Publishing Requirements","publishingRequirementsSetting":"Publishing Requirements Settings","noValidationAvailableTitle":"No Validation Available","noValidationAvailableDescDashboard":"No Validation available to add on client Reports.","adminAccess":"You do not have permissions to edit Publishing Validations, please contact your administrator for access.","requiredPublishClientReports":"Required to publish client reports","description":"Description"}'),emailTemplates:JSON.parse('{"button":{"addEmailTemplate":"Add Email Template"},"blankState":{"noEmailTemplatesAddedTitle":"No Email Templates have been added","noEmailTemplatesAddedDescription":"To add a new email template, simply click the button below."},"addEmailTemplate":{"title":"Add Email Template","editEmailTemplate":"Edit Email Template","emailTemplateType":"Email Template Type","emailTemplateDescription":"Email Template Description","notify":{"emailTemplateAdded":"Email Template Added Successfully!","emailTemplateUpdated":"Email Template Updated Successfully!"},"errors":{"emailTemplateType":"Please select type for whom this email template is for.","emailTemplateDescription":"Please enter the email template description."}},"emailTemplateCard":{"clientEmailTemplate":"Client Email Template","userEmailTemplate":"User Email Template","noEmailTemplateDetailsTitle":"Email Template Description Is Empty","noEmailTemplateDetailsDescription":"Please update email template description."}}')}};ed.ZP.use(eh.Db).init({resources:{en:ep},fallbackLng:"en"}),ei(38859),ei(71570),ei(4282),ei(27967);var ef=ei(67294),em=ei(5931),eg={initialize:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},acquireTokenPopup:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},acquireTokenByCode:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(em.W.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},addPerformanceCallback:function(){return""},removePerformanceCallback:function(){return!1},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw em.W.createStubPcaInstanceCalledError()},getLogger:function(){throw em.W.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw em.W.createStubPcaInstanceCalledError()}},ey=ei(99735),eC=ei(21362),eS=ei(60539),e_=function(){function EventMessageUtils(){}return EventMessageUtils.getInteractionStatusFromEvent=function(et,eo){switch(et.eventType){case eS.t.LOGIN_START:return ey.$H.Login;case eS.t.SSO_SILENT_START:return ey.$H.SsoSilent;case eS.t.ACQUIRE_TOKEN_START:if(et.interactionType===ey.s_.Redirect||et.interactionType===ey.s_.Popup)return ey.$H.AcquireToken;break;case eS.t.HANDLE_REDIRECT_START:return ey.$H.HandleRedirect;case eS.t.LOGOUT_START:return ey.$H.Logout;case eS.t.SSO_SILENT_SUCCESS:case eS.t.SSO_SILENT_FAILURE:if(eo&&eo!==ey.$H.SsoSilent)break;return ey.$H.None;case eS.t.LOGOUT_END:if(eo&&eo!==ey.$H.Logout)break;return ey.$H.None;case eS.t.HANDLE_REDIRECT_END:if(eo&&eo!==ey.$H.HandleRedirect)break;return ey.$H.None;case eS.t.LOGIN_SUCCESS:case eS.t.LOGIN_FAILURE:case eS.t.ACQUIRE_TOKEN_SUCCESS:case eS.t.ACQUIRE_TOKEN_FAILURE:if(et.interactionType===ey.s_.Redirect||et.interactionType===ey.s_.Popup){if(eo&&eo!==ey.$H.Login&&eo!==ey.$H.AcquireToken)break;return ey.$H.None}}return null},EventMessageUtils}();let ew={instance:eg,inProgress:ey.$H.None,accounts:[],logger:new eC.Y({})},eA=(0,ef.createContext)(ew);function accountArraysAreEqual(et,eo){if(et.length!==eo.length)return!1;let ei=[...eo];return et.every(et=>{let eo=ei.shift();return!!et&&!!eo&&et.homeAccountId===eo.homeAccountId&&et.localAccountId===eo.localAccountId&&et.username===eo.username})}eA.Consumer;let eI="@azure/msal-react",eR="1.4.7";!function(et){et.UNBLOCK_INPROGRESS="UNBLOCK_INPROGRESS",et.EVENT="EVENT"}(ea||(ea={}));let reducer=(et,eo)=>{let{type:ei,payload:eu}=eo,ed=et.inProgress;switch(ei){case ea.UNBLOCK_INPROGRESS:et.inProgress===ey.$H.Startup&&(ed=ey.$H.None,eu.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case ea.EVENT:let eh=eu.message,ep=e_.getInteractionStatusFromEvent(eh,et.inProgress);ep&&(eu.logger.info(`MsalProvider - ${eh.eventType} results in setting inProgress from ${et.inProgress} to ${ep}`),ed=ep);break;default:throw Error(`Unknown action type: ${ei}`)}let ef=eu.instance.getAllAccounts();return ed===et.inProgress||accountArraysAreEqual(ef,et.accounts)?ed!==et.inProgress?{...et,inProgress:ed}:accountArraysAreEqual(ef,et.accounts)?et:{...et,accounts:ef}:{...et,inProgress:ed,accounts:ef}};function MsalProvider(et){let{instance:eo,children:ei}=et;(0,ef.useEffect)(()=>{eo.initializeWrapperLibrary(ey.lA.React,eR)},[eo]);let eu=(0,ef.useMemo)(()=>eo.getLogger().clone(eI,eR),[eo]),[ed,eh]=(0,ef.useReducer)(reducer,void 0,()=>({inProgress:ey.$H.Startup,accounts:eo.getAllAccounts()}));(0,ef.useEffect)(()=>{let et=eo.addEventCallback(et=>{eh({payload:{instance:eo,logger:eu,message:et},type:ea.EVENT})});return eu.verbose(`MsalProvider - Registered event callback with id: ${et}`),eo.initialize().then(()=>{eo.handleRedirectPromise().catch(()=>{}).finally(()=>{eh({payload:{instance:eo,logger:eu},type:ea.UNBLOCK_INPROGRESS})})}),()=>{et&&(eu.verbose(`MsalProvider - Removing event callback ${et}`),eo.removeEventCallback(et))}},[eo,eu]);let ep={instance:eo,inProgress:ed.inProgress,accounts:ed.accounts,logger:eu};return ef.createElement(eA.Provider,{value:ep},ei)}var eT=ei(42169),eE=ei(69575),eP=ei(98573),ek=ei(87209),eO=ei(39186),eM=ei(5459),eD=ei(73696),eU=ei(33071);function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread2(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}var snippet=function(et){var eo=et.orgId,ei=et.namespace,ea=void 0===ei?"FS":ei,eu=(et.debug,et.host),ed=void 0===eu?"fullstory.com":eu,eh=et.script,ep=void 0===eh?"edge.fullstory.com/s/fs.js":eh;if(!eo)throw Error("FullStory orgId is a required parameter");window._fs_host=ed,window._fs_script=ep,window._fs_org=eo,window._fs_namespace=ea,function(et,eo,ei,ea,eu,ed,eh,ep){if(ei in et){et.console&&et.console.log&&et.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');return}(eh=et[ei]=function(et,eo,ei){eh.q?eh.q.push([et,eo,ei]):eh._api(et,eo,ei)}).q=[],(ed=eo.createElement(ea)).async=1,ed.crossOrigin="anonymous",ed.src="https://"+_fs_script,(ep=eo.getElementsByTagName(ea)[0]).parentNode.insertBefore(ed,ep),eh.identify=function(et,eo,ei){eh(eu,{uid:et},ei),eo&&eh(eu,eo,ei)},eh.setUserVars=function(et,eo){eh(eu,et,eo)},eh.event=function(et,eo,ei){eh("event",{n:et,p:eo},ei)},eh.anonymize=function(){eh.identify(!1)},eh.shutdown=function(){eh("rec",!1)},eh.restart=function(){eh("rec",!0)},eh.log=function(et,eo){eh("log",[et,eo])},eh.consent=function(et){eh("consent",!arguments.length||et)},eh.identifyAccount=function(et,eo){ed="account",(eo=eo||{}).acctId=et,eh(ed,eo)},eh.clearUserCookie=function(){},eh.setVars=function(et,eo){eh("setVars",[et,eo])},eh._w={},ep="XMLHttpRequest",eh._w[ep]=et[ep],ep="fetch",eh._w[ep]=et[ep],et[ep]&&(et[ep]=function(){return eh._w[ep].apply(this,arguments)}),eh._v="1.3.0"}(window,document,window._fs_namespace,"script","user")},fs=function(){return window[window._fs_namespace]},ensureSnippetLoaded=function(){if(!fs())throw Error("FullStory is not loaded, please ensure the init function is invoked before calling FullStory API functions")},hasFullStoryWithFunction=function(){ensureSnippetLoaded();for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];return eo.every(function(et){return fs()[et]})},guard=function(et){return function(){if(window._fs_dev_mode){var eo,ei="FullStory is in dev mode and is not recording: ".concat(et," method not executed");return console.warn(ei),ei}return hasFullStoryWithFunction(et)?(eo=fs())[et].apply(eo,arguments):(console.warn("FS.".concat(et," not ready")),null)}},eL=guard("event");guard("log"),guard("getCurrentSessionURL"),guard("identify"),guard("setUserVars"),guard("consent");var eN=guard("shutdown");guard("restart"),guard("anonymize"),guard("setVars");var eB=function(et,eo){return function(){if(window._fs_initialized){eo&&console.warn(eo);return}et.apply(void 0,arguments),window._fs_initialized=!0}}(function(et,eo){var ei=_objectSpread2({},et);if(fs()){console.warn("The FullStory snippet has already been defined elsewhere (likely in the <head> element)");return}if(ei.recordCrossDomainIFrames&&(window._fs_run_in_iframe=!0),ei.recordOnlyThisIFrame&&(window._fs_is_outer_script=!0),ei.cookieDomain&&(window._fs_cookie_domain=ei.cookieDomain),!0===ei.debug&&(ei.script?console.warn("Ignoring `debug = true` because `script` is set"):ei.script="edge.fullstory.com/s/fs-debug.js"),snippet(ei),eo&&fs()("observe",{type:"start",callback:eo}),!0===ei.devMode){var ea="FullStory was initialized in devMode and will stop recording";eL("FullStory Dev Mode",{message_str:ea}),eN(),window._fs_dev_mode=!0,console.warn(ea)}},"FullStory init has already been called once, additional invocations are ignored"),eF=ei(64487),ej=ei(16053),eG=ei(61565),eH=ei(4298),eK=ei.n(eH);let Chameleon=()=>(0,eu.jsx)(eK(),{id:"chameleon",dangerouslySetInnerHTML:{__html:'!function(d,w){var t="SxpF1PsaHZDBNaEQ3KklNEzpJdttON3WcPKWy1fiIUQ3uI-1QTtTB-EJfaVMTp06ecglNS",c="chmln",i=d.createElement("script");if(w[c]||(w[c]={}),!w[c].root){w[c].accountToken=t,w[c].location=w.location.href.toString(),w[c].now=new Date,w[c].fastUrl=\'https://fast.chameleon.io/\';var m="identify alias track clear set show on off custom help _data".split(" ");for(var s=0;s<m.length;s++){!function(){var t=w[c][m[s]+"_a"]=[];w[c][m[s]]=function(){t.push(arguments);};}();}i.src=w[c].fastUrl+"messo/"+t+"/messo.min.js",i.async=!0,d.head.appendChild(i);}}(document,window);'}});var ez=Chameleon;let Heap=()=>(0,eu.jsxs)(ef.Fragment,{children:[(0,eu.jsx)(eK(),{id:"heap-io-dev",dangerouslySetInnerHTML:{__html:'\n        window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};   \n        heap.load("3469995619"); \n        '}}),(0,eu.jsx)(eK(),{id:"heap-io-prod",dangerouslySetInnerHTML:{__html:'\n        window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};\n        heap.load("4150918325");\n        '}})]});var eW=Heap,eV=ei(19258),eJ=ei.n(eV),eY=ei(38589),e$=ei(88767),eZ=ei(22920),eQ=ei(45007);let StoreProvider=et=>(0,eu.jsx)(eQ.zt,{store:et.store,children:et.children});var eX=StoreProvider,e0=ei(35251),e4=ei(28858),e6=ei(80506),e5=ei(33334),e8=ei(87198),e7=ei(69778),e9=ei(39730),tr=ei(19967),tn=ei(67068),ti=ei(20901),ta=ei(11467),ts=ei(43396),tc=ei(77856),tu=ei(79657),td=ei(89623);let makeStore=()=>(0,e0.xC)({reducer:{[tu.lI.name]:tu.lI.reducer,[ts.uj.name]:ts.uj.reducer,[ta.q0.name]:ta.q0.reducer,[tr.zJ.name]:tr.zJ.reducer,[tn.VG.name]:tn.VG.reducer,[e9.XU.name]:e9.XU.reducer,[e6.S.name]:e6.S.reducer,[e7.sD.name]:e7.sD.reducer,[e5.nG.name]:e5.nG.reducer,[e8.BP.name]:e8.BP.reducer,[ti.jl.name]:ti.jl.reducer,[td.Pk.name]:td.Pk.reducer,[tc.P.name]:tc.P.reducer,splitio:eG.P0},devTools:!0}),tp=(0,e4.KV)(makeStore);var tf=ei(1604);let MyApp=et=>{let{Component:eo,...ei}=et,ea=new e$.QueryClient,{store:ed,props:eh}=tp.useWrappedStore(ei);return(0,ef.useEffect)(()=>{let et=ej.Z.getDecodedAccessToken();ed.dispatch((0,eG.Eo)({config:{core:{authorizationKey:tf.z.string({required_error:'Missing environment variable "NEXT_PUBLIC_SPLIT_IO_KEY"'}).parse("3ut49kopdt7k6ol64i02h50qele26vt68m41"),key:null==et?void 0:et.tggUserId}}})),eJ().init("mfaolg/hub"),(0,eY.Z)(eJ()),et&&eJ().identify(et.tggUserId,{name:"".concat(et.given_name," ").concat(et.family_name)}),eJ().getSessionURL(et=>{let eo=(0,eF.nZ)();eo.setExtra("sessionURL",et)})},[]),(0,ef.useEffect)(()=>{let et="o-1J4HH0-na1";et&&eB({orgId:et,namespace:"FS"})},[]),(0,eu.jsxs)(ef.Fragment,{children:[(0,eu.jsx)(ez,{}),(0,eu.jsx)(eW,{}),(0,eu.jsx)(eX,{store:ed,children:(0,eu.jsx)(MsalProvider,{instance:ej.d,children:(0,eu.jsx)(e$.QueryClientProvider,{client:ea,children:(0,eu.jsx)(eU.Z,{children:(0,eu.jsx)(eE.Z,{children:(0,eu.jsx)(eP.Z,{children:(0,eu.jsx)(eT.Z,{children:(0,eu.jsx)(eD.Z,{children:(0,eu.jsx)(ek.Z,{children:(0,eu.jsx)(eM.Z,{children:(0,eu.jsxs)(eO.Z,{children:[(0,eu.jsx)(eo,{...eh.pageProps}),(0,eu.jsx)(eZ.Ix,{position:"top-center",autoClose:3e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!1,rtl:!1,pauseOnFocusLoss:!0,draggable:!1,pauseOnHover:!1,theme:"light"})]})})})})})})})})})})})]})};var tm=MyApp},64022:function(et,eo,ei){"use strict";var ea=ei(32818),eu=ei(73396),ed=ei(1604);let eh=ed.z.object({status:ed.z.string(),data:ed.z.object({id:ed.z.string(),active:ed.z.boolean().optional(),completed:ed.z.boolean().optional(),completed_at:ed.z.string().optional(),source:ed.z.string().optional(),last_sync_date:ed.z.string().optional()})}).strict(),ep=ed.z.object({url:ed.z.string()}).strict(),ef=ed.z.object({status:ed.z.string(),data:ed.z.object({task_id:ed.z.string()}).optional()}).strict(),em=ed.z.object({status:ed.z.string(),data:ed.z.object({task_id:ed.z.string().optional(),import_processing:ed.z.boolean()})}).strict();ed.z.object({status:ed.z.string(),metaData:ed.z.array(ed.z.object({status:ed.z.string(),message:ed.z.string()}))}).strict();let AISProfileServices=class AISProfileServices{async fetchData(et,eo,ei){let ea=await fetch("https://aisapi.tgg-accounting.com"+et,{...ei,headers:{Authorization:(0,eu.hP)(),...null==ei?void 0:ei.headers}}),ed=await ea.json(),eh=eo.safeParse(ed);if(!eh.success){console.trace(ea.url,eh.error.errors);let et=(0,eu.sc)(ed);return et||ed}return eh.data}constructor(){this.getAISProfile=async et=>{let{queryKey:eo}=et,[ei,{clientId:ea}]=eo;if(ea){let et="/clients/".concat(ea,"/ais-profile/");return this.fetchData(et,eh)}return console.warn("clientId is not provided, AISProfileServices.getAISProfile"),null},this.getDataIngestURLs=async et=>{let{clientId:eo,reportEndDate:ei,isQBD:ea,isQBO:eu}=et;if(eo&&ei&&(ea||eu)){let et="/clients/".concat(eo,"/").concat(ea?"qbd":"qbo","/data-ingest-endpoints/").concat(ei,"/");return this.fetchData(et,ep)}return console.warn("clientId or reportEndDate is not provided, AISProfileServices.getDataIngestURLs"),null},this.getQBODataResync=async et=>{let{clientId:eo,isOverWrite:ei=!1,reportEndDate:ea,reportStartDate:eu=null}=et;if(eo&&ea){let et="/clients/".concat(eo,"/qbo/import/ais-data/"),ed=new URLSearchParams({overwrite:ei.toString(),report_end_date:ea,report_start_date:null!=eu?eu:""});return this.fetchData("".concat(et,"?").concat(ed),ef)}return console.warn("clientId or reportEndDate is not provided, AISProfileServices.getQBODataResync"),null},this.getAISDataProcessingCheck=async et=>{let{queryKey:eo}=et,[ei,{clientId:ea}]=eo;if(ea){let et="/clients/".concat(ea,"/qbo/import/ais-data/processing-check/");return this.fetchData(et,em)}return console.warn("clientId is not provided, AISProfileServices.getAISDataProcessingCheck"),null},this.disconnectQBOAccount=async et=>{let{clientId:eo}=et;return eo?ea.r_.post("/qbo/clients/".concat(eo,"/disconnect")):(console.warn("clientId is not provided, AISProfileServices.disconnectQBOAccount"),null)},this.getDisconnectQBOAccountStatus=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu}]=eo;return eu?ea.r_.get("/qbo/clients/".concat(eu,"/disconnect")):(console.warn("clientId is not provided, AISProfileServices.getDisconnectQBOAccountStatus"),null)}}};let eg=new AISProfileServices;eo.Z=eg},28214:function(et,eo,ei){"use strict";var ea=ei(32818);let AccountsServices=class AccountsServices{constructor(){this.getSubAccounts=async et=>{let{queryKey:eo}=et,[ei,{parentAccountId:eu,include:ed=""}]=eo;return eu?await ea.r_.get("/parent-accounts/".concat(eu,"/sub-accounts"),{params:{include:ed}}):(console.warn("parentAccountId not provided, AccountsServices.getSubAccounts"),null)},this.getParentAccounts=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu="",include:ed="",searchTerm:eh="",active:ep=null,reportTypeId:ef="",isNetConsolidate:em=!1,includeNetConsolidate:eg=[]}]=eo,ey={reportTypeId:ef,clientId:eu,include:ed,searchTerm:eh,active:ep,isNetConsolidate:em,includeNetConsolidate:eg};return await ea.r_.get("/parent-accounts",{params:ey})},this.activateParentAccount=async et=>et?await ea.r_.post("/parent-accounts/".concat(et,"/activate")):(console.warn("parentAccountId not provided, AccountsServices.activateParentAccount"),{value:!1}),this.deactivateParentAccount=async et=>et?await ea.r_.post("/parent-accounts/".concat(et,"/deactivate")):(console.warn("parentAccountId not provided, AccountsServices.deactivateParentAccount"),{value:!1}),this.activateSubAccount=async et=>et?await ea.r_.post("/sub-accounts/".concat(et,"/activate")):(console.warn("subAccountId not provided, AccountsServices.activateSubAccount"),{value:!1}),this.deactivateSubAccount=async et=>et?await ea.r_.post("/sub-accounts/".concat(et,"/deactivate")):(console.warn("subAccountId not provided, AccountsServices.deactivateSubAccount"),{value:!1}),this.getQBAccountDetails=async et=>{let{queryKey:eo}=et,[ei,{reportTypeId:eu,parentAccountId:ed}]=eo;return await ea.r_.get("/qb-account-details",{params:{reportTypeId:eu,parentAccountId:ed}})},this.getCashFlowStatements=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu}]=eo;return await ea.r_.get("/clients/".concat(eu,"/reports/cash-flow-mappings"))},this.getBalanceSheetAccounts=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu}]=eo;return await ea.r_.get("/client/".concat(eu,"/balancesheet-preview"))},this.getAgencyDetails=async et=>{let{queryKey:eo}=et,[ei,{slug:eu}]=eo;return eu?await ea.EF.get("/agencies/slug/".concat(eu)):null},this.getAgencySlugByEmail=async et=>{let{queryKey:eo}=et,[ei,{email:eu}]=eo;return eu?await ea.EF.get("/users/user-agency-details",{params:{email:eu}}):null},this.delay=et=>new Promise(eo=>setTimeout(eo,et))}};let eu=new AccountsServices;eo.Z=eu},23250:function(et,eo,ei){"use strict";var ea=ei(32818),eu=ei(67294);let AgencyServices=class AgencyServices extends eu.Component{constructor(...et){super(...et),this.addAgency=async et=>et?await ea.r_.post("/agencies",et):(console.warn("data not provided, AgencyServices.addAgency"),null),this.getAllAgencies=async et=>{let{queryKey:eo}=et,[ei,eu]=eo;return await ea.r_.get("/agencies",{params:{...eu}})},this.getAgencyById=async et=>{let{queryKey:eo}=et,[ei,{agencyId:eu,include:ed=[]}]=eo;if(eu){let et=new URLSearchParams;for(let eo of ed)et.append("include",eo);return ea.r_.get("/agencies/".concat(eu,"?").concat(et.toString()))}return console.warn("agencyId not provided, AgencyServices.getAgencyById"),null},this.activateAgency=async et=>et?await ea.r_.post("/agencies/".concat(et,"/activate")):(console.warn("agencyId not provided, AgenciesServices.activateAgency"),null),this.deactivateAgency=async et=>et?await ea.r_.post("/agencies/".concat(et,"/deactivate")):(console.warn("agencyId not provided, AgenciesServices.deactivateAgency"),null),this.updateAgencyLogo=async(et,eo)=>{if(et&&eo){let ei=new FormData;return ei.append("file",eo),await ea.r_.post("/agencies/".concat(et,"/logo"),ei,{headers:{"Content-Type":"multipart/form-data"}})}return console.warn("agencyId or file not provided, AgencyServices.updateAgencyLogo"),null},this.updateAgencyById=async(et,eo)=>et?await ea.r_.patch("/agencies/".concat(et),eo):(console.warn("agencyId not provided, AgenciesServices.updateAgencyById"),null)}};let ed=new AgencyServices({});eo.Z=ed},2722:function(et,eo,ei){"use strict";var ea=ei(16053),eu=ei(32818),ed=ei(47719);let ClientsServices=class ClientsServices{constructor(){this.clientsApi=new ed.ClientsApi({accessToken:()=>ea.Z.getAccessToken()||""},"https://tenant-accounting.tgg-accounting.com"),this.addClient=async et=>et?await eu.r_.post("/clients",et):(console.warn("data not provided, ClientsServices.addClient"),null),this.getAllClients=async et=>{let{queryKey:eo}=et,[ei,{agencyId:ea="",sortDir:ed="ASC",sortBy:eh="",take:ep=10,skip:ef=0,searchTerm:em="",include:eg="",active:ey=""}]=eo;return await eu.r_.get("/clients",{params:{agencyId:ea,sortDir:ed,sortBy:eh,take:ep,skip:ef,searchTerm:em,include:eg,active:ey}})},this.getClientById=async et=>{let{queryKey:eo}=et,[ei,{clientId:ea,include:ed=[]}]=eo;if(ea){let et=new URLSearchParams;for(let eo of ed)et.append("include",eo);return eu.EF.get("/clients/".concat(ea,"?").concat(et.toString()))}return console.warn("clientId not provided, ClientsServices.getClientById"),null},this.updateClientById=async(et,eo)=>et?await eu.r_.patch("/clients/".concat(et),eo):(console.warn("clientId not provided, ClientsServices.updateClientById"),null),this.updateClientLogo=async(et,eo)=>{if(et&&eo){let ei=new FormData;return ei.append("file",eo),await eu.r_.post("/clients/".concat(et,"/logo"),ei,{headers:{"Content-Type":"multipart/form-data"}})}return console.warn("clientId or file not provided, ClientsServices.updateClientLogo"),null},this.addClientFinancialProfile=async(et,eo)=>et&&eo?await eu.r_.post("/clients/".concat(et,"/financial-profile"),eo):(console.warn("clientId or data not provided, ClientsServices.addClientFinancialProfile"),null),this.activateClient=async et=>et?await eu.r_.post("/clients/".concat(et,"/activate")):(console.warn("clientId not provided, ClientsServices.activateClient"),null),this.deactivateClient=async et=>et?await eu.r_.post("/clients/".concat(et,"/deactivate")):(console.warn("clientId not provided, ClientsServices.deactivateClient"),null),this.addClientFile=async(et,eo)=>{if(et){let ei=new FormData;return ei.append("file",eo),await eu.EF.post("/clients/".concat(et,"/file"),ei,{headers:{"Content-Type":"multipart/form-data"}})}return console.warn("clientId or file not provided, ClientsServices.addClientFile"),null}}};let eh=new ClientsServices;eo.Z=eh},23322:function(et,eo,ei){"use strict";var ea=ei(32818);let DfmServices=class DfmServices{constructor(){this.getDfmTypes=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu="",reportTypeId:ed=null}]=eo,eh=await ea.r_.get("/dynamic-financial-statement-types",{params:{clientId:eu,reportTypeId:ed}});return eh}}};let eu=new DfmServices;eo.Z=eu},70767:function(et,eo,ei){"use strict";var ea=ei(32818);let KPIsServices=class KPIsServices{constructor(){this.getAllKPIs=async et=>{let{queryKey:eo}=et,[ei,{include:eu="",sortDir:ed="ASC",sortBy:eh="",take:ep=10,skip:ef=0,searchTerm:em="",categoryId:eg="",active:ey=!0,archive:eC=!1,mode:eS="",year:e_="",month:ew=""}]=eo;try{let et=await ea.r_.get("/kpis/standard-kpis",{params:{include:eu,sortDir:ed,sortBy:eh,take:ep,skip:ef,searchTerm:em,categoryId:eg,active:ey,archive:eC,mode:eS,year:e_,month:ew}});return et}catch(et){return console.warn("Client Id not provided in KPIsServices.getAllKPIs",et),null}},this.getKPIsCategory=async et=>{let{queryKey:eo}=et,[ei,{include:eu="",sortBy:ed="",sortDir:eh="ASC",take:ep=10,skip:ef=0}]=eo,em=await ea.r_.get("/kpis/standard-kpi-categories",{params:{include:eu,sortBy:ed,sortDir:eh,take:ep,skip:ef}});return em},this.getStdKPIDetailsById=async et=>{let{queryKey:eo}=et,[ei,{kpiId:eu}]=eo;if(eu){let et=await ea.r_.get("/kpis/standard-kpis/".concat(eu));return et}return console.warn("kpiId is not provided, KPIsServices.getStdKPIDetailsById"),null},this.getKPIInputData=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu="",type:ed}]=eo,eh=await ea.r_.get("/kpis/input-data",{params:{clientId:eu,type:ed}});return eh},this.createCustomKPI=async(et,eo)=>{if(et&&eo){let ei=await ea.r_.post("/clients/".concat(et,"/custom-kpi"),eo);return ei}return console.warn("Client Id or data not provided in KPIsServices.createCustomKPI"),null},this.getCustomKPIs=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,sortDir:ed="ASC",sortBy:eh="",take:ep=10,skip:ef=0,searchTerm:em="",active:eg=!0,pagination:ey=!0,mode:eC="",year:eS="",month:e_=""}]=eo;if(eu){let et=await ea.r_.get("/clients/".concat(eu,"/custom-kpi"),{params:{sortDir:ed,sortBy:eh,take:ep,skip:ef,searchTerm:em,active:eg,pagination:ey,mode:eC,year:eS,month:e_}});return et}return console.warn("Client Id not provided in KPIsServices.getCustomKPIs"),null},this.getCustomKPIDetails=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,kpiId:ed}]=eo;if(eu&&ed){let et=await ea.r_.get("/clients/".concat(eu,"/custom-kpi/").concat(ed));return et}return console.warn("Client Id or kpi Id not provided in KPIsServices.getCustomKPIDetails"),null},this.updateCustomKPIDetails=async(et,eo,ei)=>{if(et&&eo){let eu=await ea.r_.patch("/clients/".concat(et,"/custom-kpi/").concat(eo),ei);return eu}return console.warn("Client Id or kpi Id not provided in KPIsServices.updateCustomKPIDetails"),null},this.archiveKPI=async et=>{if(et){let eo=await ea.r_.post("/kpis/standard-kpis/".concat(et,"/archive"));return eo}return console.warn("kpiId not provided in KPIsServices.archiveKPI"),null},this.restoreKPI=async et=>{if(et){let eo=await ea.r_.post("/kpis/standard-kpis/".concat(et,"/restore"));return eo}return console.warn("kpiId not provided in KPIsServices.restoreKPI"),null}}};let eu=new KPIsServices;eo.Z=eu},42717:function(et,eo,ei){"use strict";var ea=ei(32818),eu=ei(95893);let ReportsServices=class ReportsServices{constructor(){this.clientSettingsAPI=new eu.ClientSettingsApi(void 0,"https://accountingapi.tgg-accounting.com",ea.r_),this.agencySettingsAPI=new eu.AgencySettingsApi(void 0,"https://accountingapi.tgg-accounting.com",ea.r_),this.getReportTemplate=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,skip:ed=0,take:eh=10}]=eo;return eu?await ea.r_.get("/clients/".concat(eu,"/report-templates"),{params:{skip:ed,take:eh}}):(console.warn("clientId not provided, ReportsServices.getReportTemplate"),null)},this.postReportTemplate=async(et,eo)=>et?await ea.r_.post("/clients/".concat(et,"/report-templates"),eo):(console.warn("clientId not provided, ReportsServices.postReportTemplate"),null),this.getFinancialPackages=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,pagination:eh,skip:ep,take:ef,status:em}]=eo;return eu?await ea.r_.get("/clients/".concat(eu,"/financial-packages"),{params:{year:ed,pagination:eh,status:em,skip:ep,take:ef}}):(console.warn("clientId not provided, ReportsServices.getFinancialPackages"),null)},this.postFinancialPackage=async(et,eo,ei,eu,ed)=>et&&eo&&ei&&eu?await ea.r_.post("/clients/".concat(et,"/report-templates/").concat(eo,"/").concat(ei,"/").concat(eu,"/financial-packages"),ed?{refreshProfitRecommendation:ed}:void 0):(console.warn("clientId, reportTemplateId, year, month not provided, ReportsServices.postFinancialPackage"),null),this.updateReportTemplate=async(et,eo,ei)=>et&&eo?await ea.r_.patch("/clients/".concat(et,"/report-templates/").concat(eo),ei):(console.warn("clientId, reportTemplateId not provided, ReportsServices.updateReportTemplate"),null),this.getReportModules=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,reportTemplateId:ed,mode:eh,year:ep,month:ef}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/report-templates/").concat(ed,"/modules"),{params:{mode:eh,year:ep,month:ef}}):(console.warn("clientId, reportTemplateId or mode is not provided, ReportsServices.getReportModules"),null)},this.addReportModule=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.post("/clients/".concat(et,"/report-templates/").concat(eo,"/modules"),ei):(console.warn("clientId or reportTemplateId not provided, ReportsServices.addReportModule"),null),this.removeReportModule=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.delete("/clients/".concat(et,"/report-templates/").concat(eo,"/modules/").concat(ei)):(console.warn("clientId or reportTemplateId or reportModuleId not provided, ReportsServices.removeReportModule"),null),this.getCoverPagePreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh}]=eo;return eu&&ed&&eh?await ea.EF.get("/clients/".concat(eu,"/years/").concat(ed,"/month/").concat(eh,"/cover-page")):(console.warn("clientId or year or month not provided, ReportsServices.getCoverPagePreview"),null)},this.getClientSnapShotPreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/years/").concat(ed,"/month/").concat(eh,"/client-snapshot")):(console.warn("clientId or year or month not provided, ReportsServices.getClientSnapShotPreview"),null)},this.getClientPreConditions=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu}]=eo;return eu?await ea.r_.get("/clients/".concat(eu,"/reports/pre-conditions")):(console.warn("clientId not provided, ReportsServices.getClientPreConditions"),null)},this.getClientPreConditionsDirect=async et=>et?await ea.r_.get("/clients/".concat(et,"/reports/pre-conditions")):(console.warn("clientId not provided, ReportsServices.getClientPreConditionsDirect"),null),this.getTripleBottomLinePreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,reportType:ep}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/tbl"),{params:{reportType:ep}}):(console.warn("clientId or year or month or reportType not provided, ReportsServices.getTripleBottomLinePreview"),null)},this.updateTripleBottomLineDescription=async(et,eo,ei,eu,ed)=>et&&eo&&ei&&eu&&ed?await ea.r_.post("/clients/".concat(et,"/reports/").concat(eo,"/").concat(ei,"/tbl-description"),ed,{params:{reportType:eu}}):(console.warn("clientId or year or month or reportType or data not provided, ReportsServices.updateTripleBottomLineDescription"),null),this.getIncomeStatementPreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/income-statement")):(console.warn("clientId or year or month not provided, ReportsServices.getIncomeStatementPreview"),null)},this.getBalanceSheetPreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/balance-sheet")):(console.warn("clientId or year or month not provided, ReportsServices.getBalanceSheetPreview"),null)},this.getCashFlowStatementPreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/cash-flow-statement")):(console.warn("clientId or year or month not provided, ReportsServices.getCashFlowStatementPreview"),null)},this.getARAPPreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,type:ep,mode:ef}]=eo;return eu&&ed&&eh&&ep&&ef?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/ar-ap"),{params:{type:ep,mode:ef}}):(console.warn("clientId or year or month or type or mode not provided, ReportsServices.getARAPPerview"),null)},this.postWidgetSelectionModule=async(et,eo,ei,eu)=>et&&eo&&ei&&eu?await ea.r_.post("/clients/".concat(et,"/report-templates/").concat(eo,"/modules/").concat(ei),eu):(console.warn("clientId or reportTemplateId or moduleId or data not provided, ReportsServices.postWidgetSelectionModule"),null),this.getWidgetSelectionModuleConfiguration=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,reportTemplateId:ed,moduleId:eh}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/report-templates/").concat(ed,"/modules/").concat(eh)):(console.warn("clientId or reportTemplateId or moduleId not provided, ReportsServices.getWidgetSelectionModuleConfiguration"),null)},this.postMonthlyReportNote=async(et,eo,ei,eu,ed)=>et&&eo&&ei&&eu&&ed?await ea.r_.post("/clients/".concat(et,"/reports/").concat(eo,"/").concat(ei,"/notes"),ed,{params:{type:eu}}):(console.warn("clientId or      year or month or type or data not provided, ReportsServices.postMonthlyReportNote"),null),this.getMonthlyReportNotes=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,type:ep}]=eo;return eu&&ed&&eh&&ep?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/notes"),{params:{type:ep}}):(console.warn("clientId or year or month or type not provided, ReportsServices.getMonthlyReportNotes"),null)},this.getAISTableOfNote=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,noteId:ep}]=eo;return eu&&ed&&eh&&ep?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/notes/").concat(ep,"/ais-table")):(console.warn("clientId or year or month or noteId not provided, ReportsServices.getAISTableOfNote"),null)},this.getAllAISTableOfNotes=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,data:ep}]=eo;return eu&&ed&&eh&&ep?await ea.r_.post("/clients/".concat(eu,"/reports/year/").concat(ed,"/month/").concat(eh,"/ais-table"),ep):(console.warn("clientId or year or month or data not provided, ReportsServices.getAllAISTableOfNotes"),null)},this.getCustomerVendorTableOfNote=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,noteId:ep}]=eo;return eu&&ed&&eh&&ep?await ea.r_.get("/clients/".concat(eu,"/reports/year/").concat(ed,"/month/").concat(eh,"/notes/").concat(ep,"/customer-vendor-table")):(console.warn("clientId or year or month or noteId not provided, ReportsServices.getCustomerVendorTableOfNote"),null)},this.getFinancialPackageDetails=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,financialPackageId:ed}]=eo;return eu&&ed?await ea.r_.get("/clients/".concat(eu,"/financial-package/").concat(ed)):(console.warn("clientId or financialPackageId not provided, ReportsServices.getFinancialPackageDetails"),null)},this.postDFMConfig=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.post("/clients/".concat(et,"/report-templates/").concat(eo,"/dfm-config"),ei):(console.warn("clientId or reportTemplateId or data not provided, ReportsServices.postDFMConfig"),null),this.getDFMConfig=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,reportTemplateId:ed}]=eo;return eu&&ed?await ea.r_.get("/clients/".concat(eu,"/report-templates/").concat(ed,"/dfm-config")):(console.warn("clientId or reportTemplateId not provided, ReportsServices.getDFMConfig"),null)},this.get13MonthReport=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,statementType:ep,mode:ef,id:em=null}]=eo;return eu&&ed&&eh&&ep&&ef?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/13-month-statements"),{params:{statementType:ep,mode:ef,id:em}}):(console.warn("clientId or year or month or statementType or mode not provided, ReportsServices.get13MonthReport"),null)},this.getCISReport=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,mode:ep,id:ef,customModuleId:em}]=eo;return eu&&ed&&eh&&ep&&ef?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/cis"),{params:{mode:ep,id:ef,customModuleId:em}}):(console.warn("clientId or year or month or mode or id not provided, ReportsServices.getCISReport"),null)},this.getCBSReport=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,mode:ep,id:ef,customModuleId:em}]=eo;return eu&&ed&&eh&&ep&&ef?await ea.r_.get("/clients/".concat(eu,"/reports/year/").concat(ed,"/month/").concat(eh,"/cbs"),{params:{mode:ep,id:ef,customModuleId:em}}):(console.warn("clientId or year or month or mode or id not provided, ReportsServices.getCBSReport"),null)},this.getCFSReport=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,mode:ep,id:ef,customModuleId:em}]=eo;return eu&&ed&&eh&&ep&&ef?await ea.r_.get("/clients/".concat(eu,"/reports/year/").concat(ed,"/month/").concat(eh,"/ccf"),{params:{mode:ep,id:ef,customModuleId:em}}):(console.warn("clientId or year or month or mode or id not provided, ReportsServices.getCFSReport"),null)},this.getComparableReport=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,type:ep,statementType:ef,mode:em,id:eg}]=eo;return eu&&ed&&eh&&ep&&ef&&em?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/comparable-Statement"),{params:{type:ep,statementType:ef,mode:em,id:eg}}):(console.warn("clientId or year or month or type or statementType or mode not provided, ReportsServices.getComparableReport"),null)},this.getCustomTrailingStatement=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,statementType:ep,trailValue:ef,type:em,mode:eg,id:ey=null}]=eo;return eu&&ed&&eh&&ep&&ef&&em&&eg?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/custom-trail/").concat(ef),{params:{statementType:ep,trailType:em,mode:eg,id:ey}}):(console.warn("clientId or year or month or statementType or trailValue or type or mode not provided, ReportsServices.getCustomTrailingStatement "),null)},this.postCustomReportTemplate=async(et,eo)=>et&&eo?await ea.r_.post("/clients/".concat(et,"/custom-report-modules"),eo):(console.warn("clientId or data not provided, ReportsServices.postCustomReportTemplate "),null),this.updateCustomReportTemplate=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.patch("/clients/".concat(et,"/custom-report-modules/").concat(eo),ei):(console.warn("clientId or customReportModuleId or data not provided, ReportsServices.updateCustomReportTemplate "),null),this.removeCustomReportModule=async(et,eo)=>et&&eo?await ea.r_.delete("/clients/".concat(et,"/custom-report-modules/").concat(eo)):(console.warn("clientId or customReportModuleId not provided, ReportsServices.removeCustomReportModule"),null),this.getMonthlyReportModulesConfiguration=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,reportModuleConfigId:ep}]=eo;return eu&&ed&&eh&&ep?await ea.r_.get("/clients/".concat(eu,"/report-module-config/").concat(ep,"/").concat(ed,"/").concat(eh)):(console.warn("clientId or year or month or reportModuleConfigId not provided, ReportsServices.getMonthlyReportModulesConfiguration"),null)},this.postMonthlyReportModulesConfiguration=async(et,eo,ei,eu,ed)=>et&&eo&&ei&&eu&&ed?await ea.r_.post("/clients/".concat(et,"/report-module-config/").concat(eu,"/year/").concat(eo,"/month/").concat(ei),ed):(console.warn("clientId or year or month or reportModuleConfigId not provided, ReportsServices.postMonthlyReportModulesConfiguration"),null),this.getKPIFinancialPreview=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,kpiId:ed,year:eh,month:ep,kpiType:ef}]=eo;return eu&&ed&&eh&&ep&&ef?await ea.r_.get("/clients/".concat(eu,"/kpi/").concat(ed,"/").concat(eh,"/").concat(ep,"/snapshots"),{params:{kpiType:ef}}):null},this.getIncomeStatementClassification=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,type:ep}]=eo;return eu&&ed&&eh&&ep?await ea.r_.get("/clients/".concat(eu,"/reports/").concat(ed,"/").concat(eh,"/is-classification"),{params:{type:ep}}):(console.warn("Client Id, Year or Month is not provided, ReportsServices.getIncomeStatementClassification"),null)},this.getTableOfContent=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,reportTemplateId:ed,year:eh,month:ep,notesNoOfPages:ef}]=eo;return eu&&ed&&eh&&ep?await ea.r_.get("/clients/".concat(eu,"/report-templates/").concat(ed,"/").concat(eh,"/").concat(ep,"/table-of-content"),{params:{notesNoOfPages:ef}}):(console.warn("Client Id, Year or Month is not provided, ReportsServices.getTableOfContent"),null)},this.deleteFinancialReport=async function(et,eo){let ei=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return et&&eo?await ea.r_.delete("/clients/".concat(et,"/financial-packages/").concat(eo),ei?{data:{archiveProfitRecommendation:ei}}:void 0):(console.warn("Client Id, Financial Package Id is not provided, ReportsServices.deleteFinancialReport"),null)},this.getReportPublish=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,month:eh,mode:ep=""}]=eo;return eu&&ed&&eh?await ea.r_.get("/clients/".concat(eu,"/year/").concat(ed,"/month/").concat(eh,"/report-publish/pre-conditions"),{params:{mode:ep}}):(console.warn("Client Id, Year or Month is not provided, ReportsServices.getReportPublish"),null)},this.postReportPublish=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.post("/clients/".concat(et,"/year/").concat(eo,"/month/").concat(ei,"/report-publish")):(console.warn("clientId or year or month not provided, ReportsServices.postReportPublish"),null),this.postReportUnpublish=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.post("/clients/".concat(et,"/year/").concat(eo,"/month/").concat(ei,"/report-unpublish")):(console.warn("clientId or year or month not provided, ReportsServices.postReportUnpublish"),null),this.getCpConfigurations=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu}]=eo;return eu?await ea.r_.get("/clients/".concat(eu,"/cp-configurations")):(console.warn("clientId not provided, ReportsServices.getCpConfigurations"),null)},this.addCustomTable=async(et,eo)=>et&&eo?await ea.r_.post("/clients/".concat(et,"/custom-tables"),eo):(console.warn("clientId or data not provided, ReportsServices.addCustomTable"),null),this.getCustomTableById=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,customTableId:ed,year:eh,month:ep}]=eo;return eu&&ed?await ea.r_.get("/clients/".concat(eu,"/custom-tables/").concat(ed),{params:{year:eh,month:ep}}):(console.warn("clientId or data not provided, ReportsServices.getCustomTableById"),null)},this.updateCustomTable=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.put("/clients/".concat(et,"/custom-tables/").concat(eo),ei):(console.warn("clientId, customTableId or data not provided, ReportsServices.updateCustomTable"),null),this.deleteCustomTable=async(et,eo)=>et&&eo?await ea.r_.delete("/clients/".concat(et,"/custom-tables/").concat(eo)):(console.warn("clientId or customTableId not provided, ReportsServices.deleteCustomTable"),null),this.postDatEntryCustomTable=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.post("/clients/".concat(et,"/custom-tables/").concat(eo,"/data"),ei):(console.warn("clientId, data or customTableId not provided, ReportsServices.postDatEntryCustomTable"),null),this.getReportPublishPreConditions=async()=>await ea.r_.get("/report-publish/pre-conditions"),this.postClientReportPublishSettings=async(et,eo)=>et&&eo?await this.clientSettingsAPI.clientSettingsControllerAddReportValidationSettings(eo,et):(console.warn("clientId or data not provided, ReportsServices.postClientReportPublishSettings"),null),this.postAgencyReportPublishSettings=async(et,eo)=>et&&eo?await this.agencySettingsAPI.agencySettingsControllerAddReportValidationSettings(eo,et):(console.warn("agencyId or data not provided, ReportsServices.postAgencyReportPublishSettings"),null),this.getSalesByCustomersById=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,widgetId:ed,year:eh,month:ep,reportModuleConfigId:ef}]=eo;return eu&&ed&&ef&&eh&&ep?await ea.r_.get("/clients/".concat(eu,"/reports/year/").concat(eh,"/month/").concat(ep,"/sales-by-customer/").concat(ed),{params:{reportModuleConfigId:ef}}):(console.warn("clientId, widgetId, reportModuleConfigId, year or month not provided, ReportsServices.getSalesByCustomersById"),null)},this.postDataTableSettings=async(et,eo)=>et&&eo?await ea.r_.post("/clients/".concat(et,"/data-tables"),eo):(console.warn("clientId or data not provided, ReportsServices.postDataTableSettings"),null),this.postChartsSettings=async(et,eo)=>et&&eo?await ea.r_.post("/clients/".concat(et,"/chart"),eo):(console.warn("clientId or data not provided, ReportsServices.postChartsSettings"),null),this.postKpiSettings=async(et,eo)=>et&&eo?await ea.r_.post("/clients/".concat(et,"/kpis"),eo):(console.warn("clientId or data not provided, ReportsServices.postKpiSettings"),null),this.getFinancialTemporaryPackages=async et=>{let{queryKey:eo}=et,[ei,{clientId:eu,year:ed,pagination:eh=!1}]=eo;return eu?await ea.r_.get("/clients/".concat(eu,"/financial-packages-stage"),{params:{year:ed,pagination:eh}}):(console.warn("clientId not provided, ReportsServices.getFinancialTemporaryPackages"),null)},this.updateFinancialTemporaryPackage=async(et,eo,ei)=>et&&eo&&ei?await ea.r_.post("/clients/".concat(et,"/financial-packages-stage/").concat(eo,"?status=").concat(ei)):(console.warn("clientId, financialPackageStageId or status not provided, ReportsServices.updateFinancialTemporaryPackage"),null)}};let ed=new ReportsServices;eo.Z=ed},31600:function(et,eo,ei){"use strict";var ea=ei(32818);let SeedDataServices=class SeedDataServices{constructor(){this.getEntityTypes=async()=>await ea.EF.get("/type-data/entity-types"),this.getStates=async()=>await ea.EF.get("/type-data/states"),this.getTimezones=async()=>await ea.EF.get("/type-data/time-zones"),this.getTaxTypes=async()=>await ea.EF.get("/type-data/tax-types"),this.getReportTypes=async()=>await ea.r_.get("/type-data/report-types"),this.getExecutiveRoleTypes=async()=>await ea.EF.get("/type-data/executive-role-types"),this.getAccountingRoleTypes=async()=>await ea.EF.get("/type-data/accounting-role-types"),this.getAdvisorRoleTypes=async()=>await ea.EF.get("/type-data/advisor-types"),this.getDataSetFieldTypes=async()=>await ea.r_.get("/type-data/dataset-field-types"),this.getTripleBottomLineTypes=async et=>{let[eo,{clientId:ei="",year:eu="",month:ed=""}]=et.queryKey;return await ea.r_.get("/type-data/tbl-chart-types",{params:{clientId:ei,year:eu,month:ed}})},this.getChartTypes=async()=>await ea.r_.get("/type-data/chart-types"),this.getRoleGroups=async()=>await ea.EF.get("/type-data/role-groups")}};let eu=new SeedDataServices;eo.Z=eu},33065:function(et,eo,ei){"use strict";var ea=ei(32818);let UsersServices=class UsersServices{constructor(){this.getAllUsers=async et=>{let{queryKey:eo}=et,[ei,{agencyId:eu="",clientId:ed="",include:eh="",jobRole:ep="",sortDir:ef="ASC",sortBy:em="",take:eg=10,skip:ey=0,searchTerm:eC="",active:eS=""}]=eo;return await ea.EF.get("/users",{params:{agencyId:eu,clientId:ed,include:eh,userRole:ep,sortDir:ef,sortBy:em,take:eg,skip:ey,searchTerm:eC,active:eS}})},this.addUser=async et=>et?await ea.EF.post("/users",et):(console.warn("data not provided, UsersServices.addUser"),null),this.validateInviteCode=async et=>et?await ea.EF.get("/invitations/validate?inviteCode=".concat(et)):(console.warn("inviteCode not provided, UsersServices.validateInviteCode"),null),this.resendInvite=async et=>et?await ea.EF.post("/users/".concat(et,"/resend-invite")):(console.warn("userId not provided, UsersServices.resendInvite"),null),this.cancelInvite=async et=>et?await ea.EF.post("/users/".concat(et,"/cancel-invite")):(console.warn("userId not provided, UsersServices.cancelInvite"),null),this.rejectInvite=async et=>et?await ea.EF.post("/users/".concat(et,"/reject")):(console.warn("code not provided, UsersServices.rejectInvite"),null),this.updateUserById=async(et,eo)=>et&&eo?await ea.EF.patch("/users/".concat(et),eo):(console.warn("userId or data not provided, UsersServices.updateUserById"),null),this.getUserById=async et=>{let{queryKey:eo}=et,[ei,{userId:eu,include:ed=""}]=eo;return eu?await ea.EF.get("/users/".concat(eu,"/details"),{params:{include:ed}}):(console.warn("userId not provided, UsersServices.getUserById"),null)},this.assignPermissions=async(et,eo)=>et&&eo?await ea.EF.post("/users/".concat(et,"/assign-permissions"),eo):(console.warn("userId or data not provided, UsersServices.assignPermissions"),null),this.assignPermissionsByPersona=async(et,eo)=>et&&eo?await ea.EF.post("/users/".concat(et,"/assign-permissions-by-persona"),eo):(console.warn("userId or data not provided, UsersServices.assignPermissionsByPersona"),null),this.activateUser=async et=>et?await ea.EF.post("/users/".concat(et,"/activate")):(console.warn("userId not provided, UsersServices.activateUser"),null),this.deactivateUser=async et=>et?await ea.EF.post("/users/".concat(et,"/deactivate")):(console.warn("userId not provided, UsersServices.deactivateUser"),null),this.lockUser=async et=>et?await ea.EF.post("/users/".concat(et,"/lock")):(console.warn("userId not provided, UsersServices.lockUser"),null),this.unlockUser=async et=>et?await ea.EF.post("/users/".concat(et,"/unlock")):(console.warn("userId not provided, UsersServices.unlockUser"),null),this.findUsers=async et=>{let{queryKey:eo}=et,[ei,{criteria:eu="",mode:ed=""}]=eo;return eu&&ed?await ea.EF.get("/users/find",{params:{criteria:eu,mode:ed}}):(console.warn("criteria or mode not provided, UsersServices.findUsers"),null)},this.confirmRegistration=async et=>et?await ea.EF.post("/users/confirm-registration",et):(console.warn("data not provided, UsersServices.confirmRegistration"),null),this.addUserProfilePic=async(et,eo)=>{if(et){let ei=new FormData;return ei.append("file",eo),await ea.EF.post("/users/".concat(et,"/profile-pic"),ei,{headers:{"Content-Type":"multipart/form-data"}})}return console.warn("userId or file not provided, UsersServices.addUserProfilePic"),null},this.assignClientUserAsExecutiveMember=async(et,eo)=>et&&eo?await ea.EF.post("/client/".concat(et,"/assign-executive-members"),eo):(console.warn("clientId or data not provided, UsersServices.assignClientUserAsExecutiveMember"),null)}};let eu=new UsersServices;eo.Z=eu},16053:function(et,eo,ei){"use strict";let ea;ei.d(eo,{Z:function(){return rY},d:function(){return rV}});var eu,ed,eh,ep,ef,em,eg,ey,eC,eS=ei(2857);!function(et){et.AcquireTokenByCode="acquireTokenByCode",et.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",et.AcquireTokenSilent="acquireTokenSilent",et.AcquireTokenSilentAsync="acquireTokenSilentAsync",et.AcquireTokenPopup="acquireTokenPopup",et.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",et.CryptoOptsSignJwt="cryptoOptsSignJwt",et.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",et.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",et.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",et.SsoSilent="ssoSilent",et.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",et.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",et.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",et.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",et.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",et.BrokerHandhshake="brokerHandshake",et.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",et.AcquireTokenByBroker="acquireTokenByBroker"}(eu||(eu={})),function(et){et[et.NotStarted=0]="NotStarted",et[et.InProgress=1]="InProgress",et[et.Completed=2]="Completed"}(ed||(ed={}));var e_=ei(77891),ew=ei(99735),eA=ei(5096),eI=ei(87342),eR={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."}},eT=function(et){function JoseHeaderError(eo,ei){var ea=et.call(this,eo,ei)||this;return ea.name="JoseHeaderError",Object.setPrototypeOf(ea,JoseHeaderError.prototype),ea}return(0,eA.ZT)(JoseHeaderError,et),JoseHeaderError.createMissingKidError=function(){return new JoseHeaderError(eR.missingKidError.code,eR.missingKidError.desc)},JoseHeaderError.createMissingAlgError=function(){return new JoseHeaderError(eR.missingAlgError.code,eR.missingAlgError.desc)},JoseHeaderError}(eI.l),eE=function(){function JoseHeader(et){this.typ=et.typ,this.alg=et.alg,this.kid=et.kid}return JoseHeader.getShrHeaderString=function(et){if(!et.kid)throw eT.createMissingKidError();if(!et.alg)throw eT.createMissingAlgError();return JSON.stringify(new JoseHeader({typ:et.typ||e_.L.Jwt,kid:et.kid,alg:et.alg}))},JoseHeader}(),eP=function(){function MathUtils(){}return MathUtils.decimalToHex=function(et){for(var eo=et.toString(16);eo.length<2;)eo="0"+eo;return eo},MathUtils}(),ek=function(){function GuidGenerator(et){this.cryptoObj=et}return GuidGenerator.prototype.generateGuid=function(){try{var et=new Uint8Array(16);return this.cryptoObj.getRandomValues(et),et[6]|=64,et[6]&=79,et[8]|=128,et[8]&=191,eP.decimalToHex(et[0])+eP.decimalToHex(et[1])+eP.decimalToHex(et[2])+eP.decimalToHex(et[3])+"-"+eP.decimalToHex(et[4])+eP.decimalToHex(et[5])+"-"+eP.decimalToHex(et[6])+eP.decimalToHex(et[7])+"-"+eP.decimalToHex(et[8])+eP.decimalToHex(et[9])+"-"+eP.decimalToHex(et[10])+eP.decimalToHex(et[11])+eP.decimalToHex(et[12])+eP.decimalToHex(et[13])+eP.decimalToHex(et[14])+eP.decimalToHex(et[15])}catch(et){for(var eo="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",ei="0123456789abcdef",ea=0,eu=e_.gT.EMPTY_STRING,ed=0;ed<36;ed++)"-"!==eo[ed]&&"4"!==eo[ed]&&(ea=16*Math.random()|0),"x"===eo[ed]?eu+=ei[ea]:"y"===eo[ed]?(ea&=3,ea|=8,eu+=ei[ea]):eu+=eo[ed];return eu}},GuidGenerator.prototype.isGuid=function(et){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(et)},GuidGenerator}(),eO=function(){function BrowserStringUtils(){}return BrowserStringUtils.stringToUtf8Arr=function(et){for(var eo,ei=0,ea=et.length,eu=0;eu<ea;eu++)ei+=(eo=et.charCodeAt(eu))<128?1:eo<2048?2:eo<65536?3:eo<2097152?4:eo<67108864?5:6;for(var ed=new Uint8Array(ei),eh=0,ep=0;eh<ei;ep++)(eo=et.charCodeAt(ep))<128?ed[eh++]=eo:(eo<2048?ed[eh++]=192+(eo>>>6):(eo<65536?ed[eh++]=224+(eo>>>12):(eo<2097152?ed[eh++]=240+(eo>>>18):(eo<67108864?ed[eh++]=248+(eo>>>24):(ed[eh++]=252+(eo>>>30),ed[eh++]=128+(eo>>>24&63)),ed[eh++]=128+(eo>>>18&63)),ed[eh++]=128+(eo>>>12&63)),ed[eh++]=128+(eo>>>6&63)),ed[eh++]=128+(63&eo));return ed},BrowserStringUtils.stringToArrayBuffer=function(et){for(var eo=new ArrayBuffer(et.length),ei=new Uint8Array(eo),ea=0;ea<et.length;ea++)ei[ea]=et.charCodeAt(ea);return eo},BrowserStringUtils.utf8ArrToString=function(et){for(var eo=e_.gT.EMPTY_STRING,ei=void 0,ea=et.length,eu=0;eu<ea;eu++)eo+=String.fromCharCode((ei=et[eu])>251&&ei<254&&eu+5<ea?(ei-252)*1073741824+(et[++eu]-128<<24)+(et[++eu]-128<<18)+(et[++eu]-128<<12)+(et[++eu]-128<<6)+et[++eu]-128:ei>247&&ei<252&&eu+4<ea?(ei-248<<24)+(et[++eu]-128<<18)+(et[++eu]-128<<12)+(et[++eu]-128<<6)+et[++eu]-128:ei>239&&ei<248&&eu+3<ea?(ei-240<<18)+(et[++eu]-128<<12)+(et[++eu]-128<<6)+et[++eu]-128:ei>223&&ei<240&&eu+2<ea?(ei-224<<12)+(et[++eu]-128<<6)+et[++eu]-128:ei>191&&ei<224&&eu+1<ea?(ei-192<<6)+et[++eu]-128:ei);return eo},BrowserStringUtils}(),eM=function(){function Base64Encode(){}return Base64Encode.prototype.urlEncode=function(et){return encodeURIComponent(this.encode(et).replace(/=/g,e_.gT.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},Base64Encode.prototype.urlEncodeArr=function(et){return this.base64EncArr(et).replace(/=/g,e_.gT.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},Base64Encode.prototype.encode=function(et){var eo=eO.stringToUtf8Arr(et);return this.base64EncArr(eo)},Base64Encode.prototype.base64EncArr=function(et){for(var eo=(3-et.length%3)%3,ei=e_.gT.EMPTY_STRING,ea=void 0,eu=et.length,ed=0,eh=0;eh<eu;eh++)ea=eh%3,ed|=et[eh]<<(16>>>ea&24),(2===ea||et.length-eh==1)&&(ei+=String.fromCharCode(this.uint6ToB64(ed>>>18&63),this.uint6ToB64(ed>>>12&63),this.uint6ToB64(ed>>>6&63),this.uint6ToB64(63&ed)),ed=0);return 0===eo?ei:ei.substring(0,ei.length-eo)+(1===eo?"=":"==")},Base64Encode.prototype.uint6ToB64=function(et){return et<26?et+65:et<52?et+71:et<62?et-4:62===et?43:63===et?47:65},Base64Encode}(),eD=function(){function Base64Decode(){}return Base64Decode.prototype.decode=function(et){var eo=et.replace(/-/g,"+").replace(/_/g,"/");switch(eo.length%4){case 0:break;case 2:eo+="==";break;case 3:eo+="=";break;default:throw Error("Invalid base64 string")}var ei=this.base64DecToArr(eo);return eO.utf8ArrToString(ei)},Base64Decode.prototype.base64DecToArr=function(et,eo){for(var ei=et.replace(/[^A-Za-z0-9\+\/]/g,e_.gT.EMPTY_STRING),ea=ei.length,eu=eo?Math.ceil((3*ea+1>>>2)/eo)*eo:3*ea+1>>>2,ed=new Uint8Array(eu),eh=void 0,ep=void 0,ef=0,em=0,eg=0;eg<ea;eg++)if(ep=3&eg,ef|=this.b64ToUint6(ei.charCodeAt(eg))<<18-6*ep,3===ep||ea-eg==1){for(eh=0;eh<3&&em<eu;eh++,em++)ed[em]=ef>>>(16>>>eh&24)&255;ef=0}return ed},Base64Decode.prototype.b64ToUint6=function(et){return et>64&&et<91?et-65:et>96&&et<123?et-71:et>47&&et<58?et+4:43===et?62:47===et?63:0},Base64Decode}(),eU=ei(61653),eL={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'."},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."},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."}},eN=function(et){function BrowserAuthError(eo,ei){var ea=et.call(this,eo,ei)||this;return Object.setPrototypeOf(ea,BrowserAuthError.prototype),ea.name="BrowserAuthError",ea}return(0,eS.ZT)(BrowserAuthError,et),BrowserAuthError.createPkceNotGeneratedError=function(et){return new BrowserAuthError(eL.pkceNotGenerated.code,eL.pkceNotGenerated.desc+" Detail:"+et)},BrowserAuthError.createCryptoNotAvailableError=function(et){return new BrowserAuthError(eL.cryptoDoesNotExist.code,eL.cryptoDoesNotExist.desc+" Detail:"+et)},BrowserAuthError.createHttpMethodNotImplementedError=function(et){return new BrowserAuthError(eL.httpMethodNotImplementedError.code,eL.httpMethodNotImplementedError.desc+" Given Method: "+et)},BrowserAuthError.createEmptyNavigationUriError=function(){return new BrowserAuthError(eL.emptyNavigateUriError.code,eL.emptyNavigateUriError.desc)},BrowserAuthError.createEmptyHashError=function(et){return new BrowserAuthError(eL.hashEmptyError.code,eL.hashEmptyError.desc+" Given Url: "+et)},BrowserAuthError.createHashDoesNotContainStateError=function(){return new BrowserAuthError(eL.hashDoesNotContainStateError.code,eL.hashDoesNotContainStateError.desc)},BrowserAuthError.createHashDoesNotContainKnownPropertiesError=function(){return new BrowserAuthError(eL.hashDoesNotContainKnownPropertiesError.code,eL.hashDoesNotContainKnownPropertiesError.desc)},BrowserAuthError.createUnableToParseStateError=function(){return new BrowserAuthError(eL.unableToParseStateError.code,eL.unableToParseStateError.desc)},BrowserAuthError.createStateInteractionTypeMismatchError=function(){return new BrowserAuthError(eL.stateInteractionTypeMismatchError.code,eL.stateInteractionTypeMismatchError.desc)},BrowserAuthError.createInteractionInProgressError=function(){return new BrowserAuthError(eL.interactionInProgress.code,eL.interactionInProgress.desc)},BrowserAuthError.createPopupWindowError=function(et){var eo=eL.popupWindowError.desc;return eo=eU.x.isEmpty(et)?eo:eo+" Details: "+et,new BrowserAuthError(eL.popupWindowError.code,eo)},BrowserAuthError.createEmptyWindowCreatedError=function(){return new BrowserAuthError(eL.emptyWindowError.code,eL.emptyWindowError.desc)},BrowserAuthError.createUserCancelledError=function(){return new BrowserAuthError(eL.userCancelledError.code,eL.userCancelledError.desc)},BrowserAuthError.createMonitorPopupTimeoutError=function(){return new BrowserAuthError(eL.monitorPopupTimeoutError.code,eL.monitorPopupTimeoutError.desc)},BrowserAuthError.createMonitorIframeTimeoutError=function(){return new BrowserAuthError(eL.monitorIframeTimeoutError.code,eL.monitorIframeTimeoutError.desc)},BrowserAuthError.createRedirectInIframeError=function(et){return new BrowserAuthError(eL.redirectInIframeError.code,eL.redirectInIframeError.desc+" (window.parent !== window) => "+et)},BrowserAuthError.createBlockReloadInHiddenIframeError=function(){return new BrowserAuthError(eL.blockTokenRequestsInHiddenIframeError.code,eL.blockTokenRequestsInHiddenIframeError.desc)},BrowserAuthError.createBlockAcquireTokenInPopupsError=function(){return new BrowserAuthError(eL.blockAcquireTokenInPopupsError.code,eL.blockAcquireTokenInPopupsError.desc)},BrowserAuthError.createIframeClosedPrematurelyError=function(){return new BrowserAuthError(eL.iframeClosedPrematurelyError.code,eL.iframeClosedPrematurelyError.desc)},BrowserAuthError.createSilentLogoutUnsupportedError=function(){return new BrowserAuthError(eL.silentLogoutUnsupportedError.code,eL.silentLogoutUnsupportedError.desc)},BrowserAuthError.createNoAccountError=function(){return new BrowserAuthError(eL.noAccountError.code,eL.noAccountError.desc)},BrowserAuthError.createSilentPromptValueError=function(et){return new BrowserAuthError(eL.silentPromptValueError.code,eL.silentPromptValueError.desc+" Given value: "+et)},BrowserAuthError.createUnableToParseTokenRequestCacheError=function(){return new BrowserAuthError(eL.unableToParseTokenRequestCacheError.code,eL.unableToParseTokenRequestCacheError.desc)},BrowserAuthError.createNoTokenRequestCacheError=function(){return new BrowserAuthError(eL.noTokenRequestCacheError.code,eL.noTokenRequestCacheError.desc)},BrowserAuthError.createAuthRequestNotSetError=function(){return new BrowserAuthError(eL.authRequestNotSet.code,eL.authRequestNotSet.desc)},BrowserAuthError.createNoCachedAuthorityError=function(){return new BrowserAuthError(eL.noCachedAuthorityError.code,eL.noCachedAuthorityError.desc)},BrowserAuthError.createInvalidCacheTypeError=function(){return new BrowserAuthError(eL.invalidCacheType.code,""+eL.invalidCacheType.desc)},BrowserAuthError.createNonBrowserEnvironmentError=function(){return new BrowserAuthError(eL.notInBrowserEnvironment.code,eL.notInBrowserEnvironment.desc)},BrowserAuthError.createDatabaseNotOpenError=function(){return new BrowserAuthError(eL.databaseNotOpen.code,eL.databaseNotOpen.desc)},BrowserAuthError.createNoNetworkConnectivityError=function(){return new BrowserAuthError(eL.noNetworkConnectivity.code,eL.noNetworkConnectivity.desc)},BrowserAuthError.createPostRequestFailedError=function(et,eo){return new BrowserAuthError(eL.postRequestFailed.code,eL.postRequestFailed.desc+" | Network client threw: "+et+" | Attempted to reach: "+eo.split("?")[0])},BrowserAuthError.createGetRequestFailedError=function(et,eo){return new BrowserAuthError(eL.getRequestFailed.code,eL.getRequestFailed.desc+" | Network client threw: "+et+" | Attempted to reach: "+eo.split("?")[0])},BrowserAuthError.createFailedToParseNetworkResponseError=function(et){return new BrowserAuthError(eL.failedToParseNetworkResponse.code,eL.failedToParseNetworkResponse.desc+" | Attempted to reach: "+et.split("?")[0])},BrowserAuthError.createUnableToLoadTokenError=function(et){return new BrowserAuthError(eL.unableToLoadTokenError.code,eL.unableToLoadTokenError.desc+" | "+et)},BrowserAuthError.createSigningKeyNotFoundInStorageError=function(et){return new BrowserAuthError(eL.signingKeyNotFoundInStorage.code,eL.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+et)},BrowserAuthError.createAuthCodeRequiredError=function(){return new BrowserAuthError(eL.authCodeRequired.code,eL.authCodeRequired.desc)},BrowserAuthError.createAuthCodeOrNativeAccountIdRequiredError=function(){return new BrowserAuthError(eL.authCodeOrNativeAccountRequired.code,eL.authCodeOrNativeAccountRequired.desc)},BrowserAuthError.createDatabaseUnavailableError=function(){return new BrowserAuthError(eL.databaseUnavailable.code,eL.databaseUnavailable.desc)},BrowserAuthError.createUnableToAcquireTokenFromNativePlatformError=function(){return new BrowserAuthError(eL.unableToAcquireTokenFromNativePlatform.code,eL.unableToAcquireTokenFromNativePlatform.desc)},BrowserAuthError.createNativeHandshakeTimeoutError=function(){return new BrowserAuthError(eL.nativeHandshakeTimeout.code,eL.nativeHandshakeTimeout.desc)},BrowserAuthError.createNativeExtensionNotInstalledError=function(){return new BrowserAuthError(eL.nativeExtensionNotInstalled.code,eL.nativeExtensionNotInstalled.desc)},BrowserAuthError.createNativeConnectionNotEstablishedError=function(){return new BrowserAuthError(eL.nativeConnectionNotEstablished.code,eL.nativeConnectionNotEstablished.desc)},BrowserAuthError.createNativeBrokerCalledBeforeInitialize=function(){return new BrowserAuthError(eL.nativeBrokerCalledBeforeInitialize.code,eL.nativeBrokerCalledBeforeInitialize.desc)},BrowserAuthError.createNativePromptParameterNotSupportedError=function(){return new BrowserAuthError(eL.nativePromptNotSupported.code,eL.nativePromptNotSupported.desc)},BrowserAuthError}(eI.l),eB=32,eF=function(){function PkceGenerator(et){this.base64Encode=new eM,this.cryptoObj=et}return PkceGenerator.prototype.generateCodes=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et,eo;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:return et=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(et)];case 1:return eo=ei.sent(),[2,{verifier:et,challenge:eo}]}})})},PkceGenerator.prototype.generateCodeVerifier=function(){try{var et=new Uint8Array(eB);return this.cryptoObj.getRandomValues(et),this.base64Encode.urlEncodeArr(et)}catch(et){throw eN.createPkceNotGeneratedError(et)}},PkceGenerator.prototype.generateCodeChallengeFromVerifier=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:return ea.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(et)];case 1:return eo=ea.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(eo))];case 2:throw ei=ea.sent(),eN.createPkceNotGeneratedError(ei);case 3:return[2]}})})},PkceGenerator}(),ej="RSASSA-PKCS1-v1_5",eG="SHA-256",eH=2048,eK=new Uint8Array([1,0,1]),ez=function(){function BrowserCrypto(et){if(this.logger=et,!this.hasCryptoAPI())throw eN.createCryptoNotAvailableError("Browser crypto or msCrypto object not available.");this._keygenAlgorithmOptions={name:ej,hash:eG,modulusLength:eH,publicExponent:eK}}return BrowserCrypto.prototype.sha256Digest=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo;return(0,eS.Jh)(this,function(ei){return eo=eO.stringToUtf8Arr(et),[2,this.hasIECrypto()?this.getMSCryptoDigest(eG,eo):this.getSubtleCryptoDigest(eG,eo)]})})},BrowserCrypto.prototype.getRandomValues=function(et){var eo=window.msCrypto||window.crypto;if(!eo.getRandomValues)throw eN.createCryptoNotAvailableError("getRandomValues does not exist.");eo.getRandomValues(et)},BrowserCrypto.prototype.generateKeyPair=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(ei){return[2,this.hasIECrypto()?this.msCryptoGenerateKey(et,eo):window.crypto.subtle.generateKey(this._keygenAlgorithmOptions,et,eo)]})})},BrowserCrypto.prototype.exportJwk=function(et){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(eo){return[2,this.hasIECrypto()?this.msCryptoExportJwk(et):window.crypto.subtle.exportKey(ew.Mm,et)]})})},BrowserCrypto.prototype.importJwk=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea,eu;return(0,eS.Jh)(this,function(ed){return ea=BrowserCrypto.getJwkString(et),eu=eO.stringToArrayBuffer(ea),[2,this.hasIECrypto()?this.msCryptoImportKey(eu,eo,ei):window.crypto.subtle.importKey(ew.Mm,et,this._keygenAlgorithmOptions,eo,ei)]})})},BrowserCrypto.prototype.sign=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(ei){return[2,this.hasIECrypto()?this.msCryptoSign(et,eo):window.crypto.subtle.sign(this._keygenAlgorithmOptions,et,eo)]})})},BrowserCrypto.prototype.hasCryptoAPI=function(){return this.hasIECrypto()||this.hasBrowserCrypto()},BrowserCrypto.prototype.hasIECrypto=function(){return"msCrypto"in window},BrowserCrypto.prototype.hasBrowserCrypto=function(){return"crypto"in window},BrowserCrypto.prototype.getSubtleCryptoDigest=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(ei){return[2,window.crypto.subtle.digest(et,eo)]})})},BrowserCrypto.prototype.getMSCryptoDigest=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(ei){return[2,new Promise(function(ei,ea){var eu=window.msCrypto.subtle.digest(et,eo.buffer);eu.addEventListener("complete",function(et){ei(et.target.result)}),eu.addEventListener("error",function(et){ea(et)})})]})})},BrowserCrypto.prototype.msCryptoGenerateKey=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei=this;return(0,eS.Jh)(this,function(ea){return[2,new Promise(function(ea,eu){var ed=window.msCrypto.subtle.generateKey(ei._keygenAlgorithmOptions,et,eo);ed.addEventListener("complete",function(et){ea(et.target.result)}),ed.addEventListener("error",function(et){eu(et)})})]})})},BrowserCrypto.prototype.msCryptoExportJwk=function(et){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(eo){return[2,new Promise(function(eo,ei){var ea=window.msCrypto.subtle.exportKey(ew.Mm,et);ea.addEventListener("complete",function(et){var ea=et.target.result,eu=eO.utf8ArrToString(new Uint8Array(ea)).replace(/\r/g,e_.gT.EMPTY_STRING).replace(/\n/g,e_.gT.EMPTY_STRING).replace(/\t/g,e_.gT.EMPTY_STRING).split(" ").join(e_.gT.EMPTY_STRING).replace("\x00",e_.gT.EMPTY_STRING);try{eo(JSON.parse(eu))}catch(et){ei(et)}}),ea.addEventListener("error",function(et){ei(et)})})]})})},BrowserCrypto.prototype.msCryptoImportKey=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea=this;return(0,eS.Jh)(this,function(eu){return[2,new Promise(function(eu,ed){var eh=window.msCrypto.subtle.importKey(ew.Mm,et,ea._keygenAlgorithmOptions,eo,ei);eh.addEventListener("complete",function(et){eu(et.target.result)}),eh.addEventListener("error",function(et){ed(et)})})]})})},BrowserCrypto.prototype.msCryptoSign=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei=this;return(0,eS.Jh)(this,function(ea){return[2,new Promise(function(ea,eu){var ed=window.msCrypto.subtle.sign(ei._keygenAlgorithmOptions,et,eo);ed.addEventListener("complete",function(et){ea(et.target.result)}),ed.addEventListener("error",function(et){eu(et)})})]})})},BrowserCrypto.getJwkString=function(et){return JSON.stringify(et,Object.keys(et).sort())},BrowserCrypto}(),eW=function(){function DatabaseStorage(){this.dbName=ew.H4,this.version=ew.kd,this.tableName=ew.Gv,this.dbOpen=!1}return DatabaseStorage.prototype.open=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et=this;return(0,eS.Jh)(this,function(eo){return[2,new Promise(function(eo,ei){var ea=window.indexedDB.open(et.dbName,et.version);ea.addEventListener("upgradeneeded",function(eo){eo.target.result.createObjectStore(et.tableName)}),ea.addEventListener("success",function(ei){var ea=ei;et.db=ea.target.result,et.dbOpen=!0,eo()}),ea.addEventListener("error",function(){return ei(eN.createDatabaseUnavailableError())})})]})})},DatabaseStorage.prototype.closeConnection=function(){var et=this.db;et&&this.dbOpen&&(et.close(),this.dbOpen=!1)},DatabaseStorage.prototype.validateDbIsOpen=function(){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(et){switch(et.label){case 0:if(this.dbOpen)return[3,2];return[4,this.open()];case 1:return[2,et.sent()];case 2:return[2]}})})},DatabaseStorage.prototype.getItem=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo=this;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:return[4,this.validateDbIsOpen()];case 1:return ei.sent(),[2,new Promise(function(ei,ea){if(!eo.db)return ea(eN.createDatabaseNotOpenError());var eu=eo.db.transaction([eo.tableName],"readonly").objectStore(eo.tableName).get(et);eu.addEventListener("success",function(et){var ea=et;eo.closeConnection(),ei(ea.target.result)}),eu.addEventListener("error",function(et){eo.closeConnection(),ea(et)})})]}})})},DatabaseStorage.prototype.setItem=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei=this;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:return[4,this.validateDbIsOpen()];case 1:return ea.sent(),[2,new Promise(function(ea,eu){if(!ei.db)return eu(eN.createDatabaseNotOpenError());var ed=ei.db.transaction([ei.tableName],"readwrite").objectStore(ei.tableName).put(eo,et);ed.addEventListener("success",function(){ei.closeConnection(),ea()}),ed.addEventListener("error",function(et){ei.closeConnection(),eu(et)})})]}})})},DatabaseStorage.prototype.removeItem=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo=this;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:return[4,this.validateDbIsOpen()];case 1:return ei.sent(),[2,new Promise(function(ei,ea){if(!eo.db)return ea(eN.createDatabaseNotOpenError());var eu=eo.db.transaction([eo.tableName],"readwrite").objectStore(eo.tableName).delete(et);eu.addEventListener("success",function(){eo.closeConnection(),ei()}),eu.addEventListener("error",function(et){eo.closeConnection(),ea(et)})})]}})})},DatabaseStorage.prototype.getKeys=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et=this;return(0,eS.Jh)(this,function(eo){switch(eo.label){case 0:return[4,this.validateDbIsOpen()];case 1:return eo.sent(),[2,new Promise(function(eo,ei){if(!et.db)return ei(eN.createDatabaseNotOpenError());var ea=et.db.transaction([et.tableName],"readonly").objectStore(et.tableName).getAllKeys();ea.addEventListener("success",function(ei){var ea=ei;et.closeConnection(),eo(ea.target.result)}),ea.addEventListener("error",function(eo){et.closeConnection(),ei(eo)})})]}})})},DatabaseStorage.prototype.containsKey=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo=this;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:return[4,this.validateDbIsOpen()];case 1:return ei.sent(),[2,new Promise(function(ei,ea){if(!eo.db)return ea(eN.createDatabaseNotOpenError());var eu=eo.db.transaction([eo.tableName],"readonly").objectStore(eo.tableName).count(et);eu.addEventListener("success",function(et){var ea=et;eo.closeConnection(),ei(1===ea.target.result)}),eu.addEventListener("error",function(et){eo.closeConnection(),ea(et)})})]}})})},DatabaseStorage.prototype.deleteDatabase=function(){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(et){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(et,eo){var ei=window.indexedDB.deleteDatabase(ew.H4);ei.addEventListener("success",function(){return et(!0)}),ei.addEventListener("blocked",function(){return et(!0)}),ei.addEventListener("error",function(){return eo(!1)})})]})})},DatabaseStorage}(),eV=function(){function MemoryStorage(){this.cache=new Map}return MemoryStorage.prototype.getItem=function(et){return this.cache.get(et)||null},MemoryStorage.prototype.setItem=function(et,eo){this.cache.set(et,eo)},MemoryStorage.prototype.removeItem=function(et){this.cache.delete(et)},MemoryStorage.prototype.getKeys=function(){var et=[];return this.cache.forEach(function(eo,ei){et.push(ei)}),et},MemoryStorage.prototype.containsKey=function(et){return this.cache.has(et)},MemoryStorage.prototype.clear=function(){this.cache.clear()},MemoryStorage}(),eJ=function(){function AsyncMemoryStorage(et,eo){this.inMemoryCache=new eV,this.indexedDBCache=new eW,this.logger=et,this.storeName=eo}return AsyncMemoryStorage.prototype.handleDatabaseAccessError=function(et){if(et instanceof eN&&et.errorCode===eL.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 et},AsyncMemoryStorage.prototype.getItem=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:if(eo=this.inMemoryCache.getItem(et))return[3,4];ea.label=1;case 1:return ea.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(et)];case 2:return[2,ea.sent()];case 3:return ei=ea.sent(),this.handleDatabaseAccessError(ei),[3,4];case 4:return[2,eo]}})})},AsyncMemoryStorage.prototype.setItem=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:this.inMemoryCache.setItem(et,eo),ea.label=1;case 1:return ea.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(et,eo)];case 2:return ea.sent(),[3,4];case 3:return ei=ea.sent(),this.handleDatabaseAccessError(ei),[3,4];case 4:return[2]}})})},AsyncMemoryStorage.prototype.removeItem=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:this.inMemoryCache.removeItem(et),ei.label=1;case 1:return ei.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(et)];case 2:return ei.sent(),[3,4];case 3:return eo=ei.sent(),this.handleDatabaseAccessError(eo),[3,4];case 4:return[2]}})})},AsyncMemoryStorage.prototype.getKeys=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et,eo;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:if(0!==(et=this.inMemoryCache.getKeys()).length)return[3,4];ei.label=1;case 1:return ei.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,ei.sent()];case 3:return eo=ei.sent(),this.handleDatabaseAccessError(eo),[3,4];case 4:return[2,et]}})})},AsyncMemoryStorage.prototype.containsKey=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:if(eo=this.inMemoryCache.containsKey(et))return[3,4];ea.label=1;case 1:return ea.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(et)];case 2:return[2,ea.sent()];case 3:return ei=ea.sent(),this.handleDatabaseAccessError(ei),[3,4];case 4:return[2,eo]}})})},AsyncMemoryStorage.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},AsyncMemoryStorage.prototype.clearPersistent=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et,eo;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:return ei.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return(et=ei.sent())&&this.logger.verbose("Persistent keystore deleted"),[2,et];case 2:return eo=ei.sent(),this.handleDatabaseAccessError(eo),[2,!1];case 3:return[2]}})})},AsyncMemoryStorage}();!function(et){et.asymmetricKeys="asymmetricKeys",et.symmetricKeys="symmetricKeys"}(eh||(eh={}));var eY=function(){function CryptoKeyStore(et){this.logger=et,this.asymmetricKeys=new eJ(this.logger,eh.asymmetricKeys),this.symmetricKeys=new eJ(this.logger,eh.symmetricKeys)}return CryptoKeyStore.prototype.clear=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et;return(0,eS.Jh)(this,function(eo){switch(eo.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),eo.label=1;case 1:return eo.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return eo.sent(),[2,!0];case 3:return(et=eo.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+et.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},CryptoKeyStore}(),e$=function(){function CryptoOps(et,eo){this.logger=et,this.browserCrypto=new ez(this.logger),this.b64Encode=new eM,this.b64Decode=new eD,this.guidGenerator=new ek(this.browserCrypto),this.pkceGenerator=new eF(this.browserCrypto),this.cache=new eY(this.logger),this.performanceClient=eo}return CryptoOps.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},CryptoOps.prototype.base64Encode=function(et){return this.b64Encode.encode(et)},CryptoOps.prototype.base64Decode=function(et){return this.b64Decode.decode(et)},CryptoOps.prototype.generatePkceCodes=function(){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(et){return[2,this.pkceGenerator.generateCodes()]})})},CryptoOps.prototype.getPublicKeyThumbprint=function(et){var eo;return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,ed,eh,ep,ef,em,eg;return(0,eS.Jh)(this,function(ey){switch(ey.label){case 0:return ei=null===(eo=this.performanceClient)||void 0===eo?void 0:eo.startMeasurement(eu.CryptoOptsGetPublicKeyThumbprint,et.correlationId),[4,this.browserCrypto.generateKeyPair(CryptoOps.EXTRACTABLE,CryptoOps.POP_KEY_USAGES)];case 1:return ea=ey.sent(),[4,this.browserCrypto.exportJwk(ea.publicKey)];case 2:return eh={e:(ed=ey.sent()).e,kty:ed.kty,n:ed.n},ep=ez.getJwkString(eh),[4,this.hashString(ep)];case 3:return ef=ey.sent(),[4,this.browserCrypto.exportJwk(ea.privateKey)];case 4:return em=ey.sent(),[4,this.browserCrypto.importJwk(em,!1,["sign"])];case 5:return eg=ey.sent(),[4,this.cache.asymmetricKeys.setItem(ef,{privateKey:eg,publicKey:ea.publicKey,requestMethod:et.resourceRequestMethod,requestUri:et.resourceRequestUri})];case 6:return ey.sent(),ei&&ei.endMeasurement({success:!0}),[2,ef]}})})},CryptoOps.prototype.removeTokenBindingKey=function(et){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(eo){switch(eo.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(et)];case 1:return eo.sent(),[4,this.cache.asymmetricKeys.containsKey(et)];case 2:return[2,!eo.sent()]}})})},CryptoOps.prototype.clearKeystore=function(){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(et){switch(et.label){case 0:return[4,this.cache.clear()];case 1:return[2,et.sent()]}})})},CryptoOps.prototype.signJwt=function(et,eo,ei){var ea;return(0,eS.mG)(this,void 0,void 0,function(){var ed,eh,ep,ef,em,eg,ey,eC,e_,ew,eA,eI;return(0,eS.Jh)(this,function(eS){switch(eS.label){case 0:return ed=null===(ea=this.performanceClient)||void 0===ea?void 0:ea.startMeasurement(eu.CryptoOptsSignJwt,ei),[4,this.cache.asymmetricKeys.getItem(eo)];case 1:if(!(eh=eS.sent()))throw eN.createSigningKeyNotFoundInStorageError(eo);return[4,this.browserCrypto.exportJwk(eh.publicKey)];case 2:return ep=eS.sent(),ef=ez.getJwkString(ep),em=this.b64Encode.urlEncode(JSON.stringify({kid:eo})),eg=eE.getShrHeaderString({kid:em,alg:ep.alg}),ey=this.b64Encode.urlEncode(eg),et.cnf={jwk:JSON.parse(ef)},eC=ey+"."+this.b64Encode.urlEncode(JSON.stringify(et)),e_=eO.stringToArrayBuffer(eC),[4,this.browserCrypto.sign(eh.privateKey,e_)];case 3:return ew=eS.sent(),eA=this.b64Encode.urlEncodeArr(new Uint8Array(ew)),eI=eC+"."+eA,ed&&ed.endMeasurement({success:!0}),[2,eI]}})})},CryptoOps.prototype.hashString=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:return[4,this.browserCrypto.sha256Digest(et)];case 1:return eo=ea.sent(),ei=new Uint8Array(eo),[2,this.b64Encode.urlEncodeArr(ei)]}})})},CryptoOps.POP_KEY_USAGES=["sign","verify"],CryptoOps.EXTRACTABLE=!0,CryptoOps}(),eZ=ei(21362),eQ=function(){function PerformanceClient(et,eo,ei,ea,eu,ed){this.authority=eo,this.libraryName=ea,this.libraryVersion=eu,this.applicationTelemetry=ed,this.clientId=et,this.logger=ei,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.measurementsById=new Map}return PerformanceClient.prototype.startMeasurement=function(et,eo){var ei,ea,eu=this,eh=eo||this.generateId();eo||this.logger.info("PerformanceClient: No correlation id provided for "+et+", generating",eh),this.logger.trace("PerformanceClient: Performance measurement started for "+et,eh);var ep=this.startPerformanceMeasuremeant(et,eh);ep.startMeasurement();var ef={eventId:this.generateId(),status:ed.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:null===(ei=this.applicationTelemetry)||void 0===ei?void 0:ei.appName,appVersion:null===(ea=this.applicationTelemetry)||void 0===ea?void 0:ea.appVersion,clientId:this.clientId,name:et,startTimeMs:Date.now(),correlationId:eh};return this.cacheEventByCorrelationId(ef),this.cacheMeasurement(ef,ep),{endMeasurement:function(et){var eo=eu.endMeasurement((0,eA.pi)((0,eA.pi)({},ef),et));return eo&&eu.cacheEventByCorrelationId(eo),eo},flushMeasurement:function(){return eu.flushMeasurements(ef.name,ef.correlationId)},discardMeasurement:function(){return eu.discardMeasurements(ef.correlationId)},measurement:ep,event:ef}},PerformanceClient.prototype.endMeasurement=function(et){var eo=this.measurementsById.get(et.eventId);if(eo){this.measurementsById.delete(et.eventId),eo.endMeasurement();var ei=eo.flushMeasurement();if(null!==ei)return this.logger.trace("PerformanceClient: Performance measurement ended for "+et.name+": "+ei+" ms",et.correlationId),(0,eA.pi)((0,eA.pi)({durationMs:Math.round(ei)},et),{status:ed.Completed});this.logger.trace("PerformanceClient: Performance measurement not taken",et.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+et.eventId,et.correlationId);return null},PerformanceClient.prototype.cacheEventByCorrelationId=function(et){var eo=this.eventsByCorrelationId.get(et.correlationId);eo?(this.logger.trace("PerformanceClient: Performance measurement for "+et.name+" added/updated",et.correlationId),eo.set(et.eventId,et)):(this.logger.trace("PerformanceClient: Performance measurement for "+et.name+" started",et.correlationId),this.eventsByCorrelationId.set(et.correlationId,new Map().set(et.eventId,et)))},PerformanceClient.prototype.cacheMeasurement=function(et,eo){this.measurementsById.set(et.eventId,eo)},PerformanceClient.prototype.flushMeasurements=function(et,eo){var ei=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+et,eo);var ea=this.eventsByCorrelationId.get(eo);if(ea){this.discardMeasurements(eo);var eu=[];ea.forEach(function(ea){if(ea.name!==et&&ea.status!==ed.Completed){ei.logger.trace("PerformanceClient: Incomplete submeasurement "+ea.name+" found for "+et,eo);var eh=ei.endMeasurement(ea);eh&&eu.push(eh)}eu.push(ea)});var eh=eu.sort(function(et,eo){return et.startTimeMs-eo.startTimeMs}),ep=eh.filter(function(eo){return eo.name===et&&eo.status===ed.Completed});if(ep.length>0){ep.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",eo);var ef=ep[0];this.logger.verbose("PerformanceClient: Measurement found for "+et,eo);var em=eh.reduce(function(ea,eu){if(eu.name!==et){ei.logger.trace("PerformanceClient: Complete submeasurement found for "+eu.name,eo);var ed=eu.name+"DurationMs";ea[ed]?ei.logger.verbose("PerformanceClient: Submeasurement for "+et+" already exists for "+eu.name+", ignoring",eo):ea[ed]=eu.durationMs,eu.accessTokenSize&&(ea.accessTokenSize=eu.accessTokenSize),eu.idTokenSize&&(ea.idTokenSize=eu.idTokenSize)}return ea},ef);this.emitEvents([em],em.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+et,eo)}else this.logger.verbose("PerformanceClient: No measurements found",eo)},PerformanceClient.prototype.discardMeasurements=function(et){this.logger.trace("PerformanceClient: Performance measurements discarded",et),this.eventsByCorrelationId.delete(et)},PerformanceClient.prototype.addPerformanceCallback=function(et){var eo=this.generateId();return this.callbacks.set(eo,et),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+eo),eo},PerformanceClient.prototype.removePerformanceCallback=function(et){var eo=this.callbacks.delete(et);return eo?this.logger.verbose("PerformanceClient: Performance callback "+et+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+et+" not removed."),eo},PerformanceClient.prototype.emitEvents=function(et,eo){var ei=this;this.logger.verbose("PerformanceClient: Emitting performance events",eo),this.callbacks.forEach(function(ea,eu){ei.logger.trace("PerformanceClient: Emitting event to callback "+eu,eo),ea.apply(null,[et])})},PerformanceClient}(),eX=function(){function StubPerformanceMeasurement(){}return StubPerformanceMeasurement.prototype.startMeasurement=function(){},StubPerformanceMeasurement.prototype.endMeasurement=function(){},StubPerformanceMeasurement.prototype.flushMeasurement=function(){return null},StubPerformanceMeasurement}(),e0=function(et){function StubPerformanceClient(){return null!==et&&et.apply(this,arguments)||this}return(0,eA.ZT)(StubPerformanceClient,et),StubPerformanceClient.prototype.generateId=function(){return"callback-id"},StubPerformanceClient.prototype.startPerformanceMeasuremeant=function(){return new eX},StubPerformanceClient}(eQ),e4={createNewGuid:function(){var et="Crypto interface - createNewGuid() has not been implemented";throw eI.l.createUnexpectedError(et)},base64Decode:function(){var et="Crypto interface - base64Decode() has not been implemented";throw eI.l.createUnexpectedError(et)},base64Encode:function(){var et="Crypto interface - base64Encode() has not been implemented";throw eI.l.createUnexpectedError(et)},generatePkceCodes:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Crypto interface - generatePkceCodes() has not been implemented",eI.l.createUnexpectedError(et)})})},getPublicKeyThumbprint:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Crypto interface - getPublicKeyThumbprint() has not been implemented",eI.l.createUnexpectedError(et)})})},removeTokenBindingKey:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Crypto interface - removeTokenBindingKey() has not been implemented",eI.l.createUnexpectedError(et)})})},clearKeystore:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Crypto interface - clearKeystore() has not been implemented",eI.l.createUnexpectedError(et)})})},signJwt:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Crypto interface - signJwt() has not been implemented",eI.l.createUnexpectedError(et)})})},hashString:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Crypto interface - hashString() has not been implemented",eI.l.createUnexpectedError(et)})})}},e6=["interaction_required","consent_required","login_required"],e5=["message_only","additional_action","basic_action","user_password_expired","consent_required"],e8={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},e7=function(et){function InteractionRequiredAuthError(eo,ei,ea){var eu=et.call(this,eo,ei,ea)||this;return eu.name="InteractionRequiredAuthError",Object.setPrototypeOf(eu,InteractionRequiredAuthError.prototype),eu}return(0,eA.ZT)(InteractionRequiredAuthError,et),InteractionRequiredAuthError.isInteractionRequiredError=function(et,eo,ei){var ea=!!et&&e6.indexOf(et)>-1,eu=!!ei&&e5.indexOf(ei)>-1,ed=!!eo&&e6.some(function(et){return eo.indexOf(et)>-1});return ea||ed||eu},InteractionRequiredAuthError.createNoTokensFoundError=function(){return new InteractionRequiredAuthError(e8.noTokensFoundError.code,e8.noTokensFoundError.desc)},InteractionRequiredAuthError.createNativeAccountUnavailableError=function(){return new InteractionRequiredAuthError(e8.native_account_unavailable.code,e8.native_account_unavailable.desc)},InteractionRequiredAuthError}(eI.l),e9=function(et){function ServerError(eo,ei,ea){var eu=et.call(this,eo,ei,ea)||this;return eu.name="ServerError",Object.setPrototypeOf(eu,ServerError.prototype),eu}return(0,eA.ZT)(ServerError,et),ServerError}(eI.l),tr=ei(60742);/*! @azure/msal-common v7.4.1 2022-09-12 */function buildClientInfo(et,eo){if(eU.x.isEmpty(et))throw tr.e.createClientInfoEmptyError();try{var ei=eo.base64Decode(et);return JSON.parse(ei)}catch(et){throw tr.e.createClientInfoDecodingError(et.message)}}function buildClientInfoFromHomeAccountId(et){if(eU.x.isEmpty(et))throw tr.e.createClientInfoDecodingError("Home account ID was empty.");var eo=et.split(e_.Bv.CLIENT_INFO_SEPARATOR,2);return{uid:eo[0],utid:eo.length<2?e_.gT.EMPTY_STRING:eo[1]}}!function(et){et[et.Default=0]="Default",et[et.Adfs=1]="Adfs"}(ep||(ep={}));/*! @azure/msal-common v7.4.1 2022-09-12 */var tn=function(){function AccountEntity(){}return AccountEntity.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(e_.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},AccountEntity.prototype.generateAccountKey=function(){return AccountEntity.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},AccountEntity.prototype.generateType=function(){switch(this.authorityType){case e_.iR.ADFS_ACCOUNT_TYPE:return e_.LL.ADFS;case e_.iR.MSAV1_ACCOUNT_TYPE:return e_.LL.MSA;case e_.iR.MSSTS_ACCOUNT_TYPE:return e_.LL.MSSTS;case e_.iR.GENERIC_ACCOUNT_TYPE:return e_.LL.GENERIC;default:throw tr.e.createUnexpectedAccountTypeError()}},AccountEntity.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},AccountEntity.generateAccountCacheKey=function(et){return[et.homeAccountId,et.environment||e_.gT.EMPTY_STRING,et.tenantId||e_.gT.EMPTY_STRING].join(e_.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},AccountEntity.createAccount=function(et,eo,ei,ea,eu,ed,eh,ep){var ef,em,eg,ey,eC,eS,ew=new AccountEntity;ew.authorityType=e_.iR.MSSTS_ACCOUNT_TYPE,ew.clientInfo=et,ew.homeAccountId=eo,ew.nativeAccountId=ep;var eA=eh||ea&&ea.getPreferredCache();if(!eA)throw tr.e.createInvalidCacheEnvironmentError();return ew.environment=eA,ew.realm=(null===(ef=null==ei?void 0:ei.claims)||void 0===ef?void 0:ef.tid)||e_.gT.EMPTY_STRING,ei&&(ew.idTokenClaims=ei.claims,ew.localAccountId=(null===(em=null==ei?void 0:ei.claims)||void 0===em?void 0:em.oid)||(null===(eg=null==ei?void 0:ei.claims)||void 0===eg?void 0:eg.sub)||e_.gT.EMPTY_STRING,ew.username=(null===(ey=null==ei?void 0:ei.claims)||void 0===ey?void 0:ey.preferred_username)||((null===(eC=null==ei?void 0:ei.claims)||void 0===eC?void 0:eC.emails)?ei.claims.emails[0]:e_.gT.EMPTY_STRING),ew.name=null===(eS=null==ei?void 0:ei.claims)||void 0===eS?void 0:eS.name),ew.cloudGraphHostName=eu,ew.msGraphHost=ed,ew},AccountEntity.createGenericAccount=function(et,eo,ei,ea,eu,ed){var eh,ef,em,eg,ey=new AccountEntity;ey.authorityType=ei&&ei.authorityType===ep.Adfs?e_.iR.ADFS_ACCOUNT_TYPE:e_.iR.GENERIC_ACCOUNT_TYPE,ey.homeAccountId=et,ey.realm=e_.gT.EMPTY_STRING;var eC=ed||ei&&ei.getPreferredCache();if(!eC)throw tr.e.createInvalidCacheEnvironmentError();return eo&&(ey.localAccountId=(null===(eh=null==eo?void 0:eo.claims)||void 0===eh?void 0:eh.oid)||(null===(ef=null==eo?void 0:eo.claims)||void 0===ef?void 0:ef.sub)||e_.gT.EMPTY_STRING,ey.username=(null===(em=null==eo?void 0:eo.claims)||void 0===em?void 0:em.upn)||e_.gT.EMPTY_STRING,ey.name=(null===(eg=null==eo?void 0:eo.claims)||void 0===eg?void 0:eg.name)||e_.gT.EMPTY_STRING,ey.idTokenClaims=null==eo?void 0:eo.claims),ey.environment=eC,ey.cloudGraphHostName=ea,ey.msGraphHost=eu,ey},AccountEntity.generateHomeAccountId=function(et,eo,ei,ea,eu){var ed,eh=(null===(ed=null==eu?void 0:eu.claims)||void 0===ed?void 0:ed.sub)?eu.claims.sub:e_.gT.EMPTY_STRING;if(eo===ep.Adfs)return eh;if(et)try{var ef=buildClientInfo(et,ea);if(!eU.x.isEmpty(ef.uid)&&!eU.x.isEmpty(ef.utid))return""+ef.uid+e_.Bv.CLIENT_INFO_SEPARATOR+ef.utid}catch(et){}return ei.verbose("No client info in response"),eh},AccountEntity.isAccountEntity=function(et){return!!et&&et.hasOwnProperty("homeAccountId")&&et.hasOwnProperty("environment")&&et.hasOwnProperty("realm")&&et.hasOwnProperty("localAccountId")&&et.hasOwnProperty("username")&&et.hasOwnProperty("authorityType")},AccountEntity.accountInfoIsEqual=function(et,eo,ei){if(!et||!eo)return!1;var ea=!0;if(ei){var eu=et.idTokenClaims||{},ed=eo.idTokenClaims||{};ea=eu.iat===ed.iat&&eu.nonce===ed.nonce}return et.homeAccountId===eo.homeAccountId&&et.localAccountId===eo.localAccountId&&et.username===eo.username&&et.tenantId===eo.tenantId&&et.environment===eo.environment&&et.nativeAccountId===eo.nativeAccountId&&ea},AccountEntity}(),ti=function(){function CredentialEntity(){}return CredentialEntity.prototype.generateAccountId=function(){return CredentialEntity.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},CredentialEntity.prototype.generateCredentialId=function(){return CredentialEntity.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},CredentialEntity.prototype.generateTarget=function(){return CredentialEntity.generateTargetForCacheKey(this.target)},CredentialEntity.prototype.generateCredentialKey=function(){return CredentialEntity.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},CredentialEntity.prototype.generateType=function(){switch(this.credentialType){case e_.d3.ID_TOKEN:return e_.LL.ID_TOKEN;case e_.d3.ACCESS_TOKEN:case e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:return e_.LL.ACCESS_TOKEN;case e_.d3.REFRESH_TOKEN:return e_.LL.REFRESH_TOKEN;default:throw tr.e.createUnexpectedCredentialTypeError()}},CredentialEntity.getCredentialType=function(et){return -1!==et.indexOf(e_.d3.ACCESS_TOKEN.toLowerCase())?-1!==et.indexOf(e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())?e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:e_.d3.ACCESS_TOKEN:-1!==et.indexOf(e_.d3.ID_TOKEN.toLowerCase())?e_.d3.ID_TOKEN:-1!==et.indexOf(e_.d3.REFRESH_TOKEN.toLowerCase())?e_.d3.REFRESH_TOKEN:e_.gT.NOT_DEFINED},CredentialEntity.generateCredentialCacheKey=function(et,eo,ei,ea,eu,ed,eh,ep,ef){return[this.generateAccountIdForCacheKey(et,eo),this.generateCredentialIdForCacheKey(ei,ea,eu,eh),this.generateTargetForCacheKey(ed),this.generateClaimsHashForCacheKey(ef),this.generateSchemeForCacheKey(ep)].join(e_.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},CredentialEntity.generateAccountIdForCacheKey=function(et,eo){return[et,eo].join(e_.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},CredentialEntity.generateCredentialIdForCacheKey=function(et,eo,ei,ea){var eu=et===e_.d3.REFRESH_TOKEN&&ea||eo;return[et,eu,ei||e_.gT.EMPTY_STRING].join(e_.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},CredentialEntity.generateTargetForCacheKey=function(et){return(et||e_.gT.EMPTY_STRING).toLowerCase()},CredentialEntity.generateClaimsHashForCacheKey=function(et){return(et||e_.gT.EMPTY_STRING).toLowerCase()},CredentialEntity.generateSchemeForCacheKey=function(et){return et&&et.toLowerCase()!==e_.hO.BEARER.toLowerCase()?et.toLowerCase():e_.gT.EMPTY_STRING},CredentialEntity}(),ta={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create' and 'none'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"}},ts=function(et){function ClientConfigurationError(eo,ei){var ea=et.call(this,eo,ei)||this;return ea.name="ClientConfigurationError",Object.setPrototypeOf(ea,ClientConfigurationError.prototype),ea}return(0,eA.ZT)(ClientConfigurationError,et),ClientConfigurationError.createRedirectUriEmptyError=function(){return new ClientConfigurationError(ta.redirectUriNotSet.code,ta.redirectUriNotSet.desc)},ClientConfigurationError.createPostLogoutRedirectUriEmptyError=function(){return new ClientConfigurationError(ta.postLogoutUriNotSet.code,ta.postLogoutUriNotSet.desc)},ClientConfigurationError.createClaimsRequestParsingError=function(et){return new ClientConfigurationError(ta.claimsRequestParsingError.code,ta.claimsRequestParsingError.desc+" Given value: "+et)},ClientConfigurationError.createInsecureAuthorityUriError=function(et){return new ClientConfigurationError(ta.authorityUriInsecure.code,ta.authorityUriInsecure.desc+" Given URI: "+et)},ClientConfigurationError.createUrlParseError=function(et){return new ClientConfigurationError(ta.urlParseError.code,ta.urlParseError.desc+" Given Error: "+et)},ClientConfigurationError.createUrlEmptyError=function(){return new ClientConfigurationError(ta.urlEmptyError.code,ta.urlEmptyError.desc)},ClientConfigurationError.createEmptyScopesArrayError=function(){return new ClientConfigurationError(ta.emptyScopesError.code,""+ta.emptyScopesError.desc)},ClientConfigurationError.createClientIdSingleScopeError=function(et){return new ClientConfigurationError(ta.clientIdSingleScopeError.code,ta.clientIdSingleScopeError.desc+" Given Scopes: "+et)},ClientConfigurationError.createInvalidPromptError=function(et){return new ClientConfigurationError(ta.invalidPrompt.code,ta.invalidPrompt.desc+" Given value: "+et)},ClientConfigurationError.createInvalidClaimsRequestError=function(){return new ClientConfigurationError(ta.invalidClaimsRequest.code,ta.invalidClaimsRequest.desc)},ClientConfigurationError.createEmptyLogoutRequestError=function(){return new ClientConfigurationError(ta.logoutRequestEmptyError.code,ta.logoutRequestEmptyError.desc)},ClientConfigurationError.createEmptyTokenRequestError=function(){return new ClientConfigurationError(ta.tokenRequestEmptyError.code,ta.tokenRequestEmptyError.desc)},ClientConfigurationError.createInvalidCodeChallengeMethodError=function(){return new ClientConfigurationError(ta.invalidCodeChallengeMethod.code,ta.invalidCodeChallengeMethod.desc)},ClientConfigurationError.createInvalidCodeChallengeParamsError=function(){return new ClientConfigurationError(ta.invalidCodeChallengeParams.code,ta.invalidCodeChallengeParams.desc)},ClientConfigurationError.createInvalidCloudDiscoveryMetadataError=function(){return new ClientConfigurationError(ta.invalidCloudDiscoveryMetadata.code,ta.invalidCloudDiscoveryMetadata.desc)},ClientConfigurationError.createInvalidAuthorityMetadataError=function(){return new ClientConfigurationError(ta.invalidAuthorityMetadata.code,ta.invalidAuthorityMetadata.desc)},ClientConfigurationError.createUntrustedAuthorityError=function(){return new ClientConfigurationError(ta.untrustedAuthority.code,ta.untrustedAuthority.desc)},ClientConfigurationError.createInvalidAzureCloudInstanceError=function(){return new ClientConfigurationError(ta.invalidAzureCloudInstance.code,ta.invalidAzureCloudInstance.desc)},ClientConfigurationError.createMissingSshJwkError=function(){return new ClientConfigurationError(ta.missingSshJwk.code,ta.missingSshJwk.desc)},ClientConfigurationError.createMissingSshKidError=function(){return new ClientConfigurationError(ta.missingSshKid.code,ta.missingSshKid.desc)},ClientConfigurationError.createMissingNonceAuthenticationHeadersError=function(){return new ClientConfigurationError(ta.missingNonceAuthenticationHeader.code,ta.missingNonceAuthenticationHeader.desc)},ClientConfigurationError.createInvalidAuthenticationHeaderError=function(et,eo){return new ClientConfigurationError(ta.invalidAuthenticationHeader.code,ta.invalidAuthenticationHeader.desc+". Invalid header: "+et+". Details: "+eo)},ClientConfigurationError}(tr.e),tc=function(){function ScopeSet(et){var eo=this,ei=et?eU.x.trimArrayEntries((0,eA.pr)(et)):[],ea=ei?eU.x.removeEmptyStringsFromArray(ei):[];this.validateInputScopes(ea),this.scopes=new Set,ea.forEach(function(et){return eo.scopes.add(et)})}return ScopeSet.fromString=function(et){var eo=(et||e_.gT.EMPTY_STRING).split(" ");return new ScopeSet(eo)},ScopeSet.prototype.validateInputScopes=function(et){if(!et||et.length<1)throw ts.createEmptyScopesArrayError()},ScopeSet.prototype.containsScope=function(et){var eo=this.printScopesLowerCase().split(" "),ei=new ScopeSet(eo);return!eU.x.isEmpty(et)&&ei.scopes.has(et.toLowerCase())},ScopeSet.prototype.containsScopeSet=function(et){var eo=this;return!!et&&!(et.scopes.size<=0)&&this.scopes.size>=et.scopes.size&&et.asArray().every(function(et){return eo.containsScope(et)})},ScopeSet.prototype.containsOnlyOIDCScopes=function(){var et=this,eo=0;return e_.$f.forEach(function(ei){et.containsScope(ei)&&(eo+=1)}),this.scopes.size===eo},ScopeSet.prototype.appendScope=function(et){eU.x.isEmpty(et)||this.scopes.add(et.trim())},ScopeSet.prototype.appendScopes=function(et){var eo=this;try{et.forEach(function(et){return eo.appendScope(et)})}catch(et){throw tr.e.createAppendScopeSetError(et)}},ScopeSet.prototype.removeScope=function(et){if(eU.x.isEmpty(et))throw tr.e.createRemoveEmptyScopeFromSetError(et);this.scopes.delete(et.trim())},ScopeSet.prototype.removeOIDCScopes=function(){var et=this;e_.$f.forEach(function(eo){et.scopes.delete(eo)})},ScopeSet.prototype.unionScopeSets=function(et){if(!et)throw tr.e.createEmptyInputScopeSetError();var eo=new Set;return et.scopes.forEach(function(et){return eo.add(et.toLowerCase())}),this.scopes.forEach(function(et){return eo.add(et.toLowerCase())}),eo},ScopeSet.prototype.intersectingScopeSets=function(et){if(!et)throw tr.e.createEmptyInputScopeSetError();et.containsOnlyOIDCScopes()||et.removeOIDCScopes();var eo=this.unionScopeSets(et),ei=et.getScopeCount(),ea=this.getScopeCount();return eo.size<ea+ei},ScopeSet.prototype.getScopeCount=function(){return this.scopes.size},ScopeSet.prototype.asArray=function(){var et=[];return this.scopes.forEach(function(eo){return et.push(eo)}),et},ScopeSet.prototype.printScopes=function(){return this.scopes?this.asArray().join(" "):e_.gT.EMPTY_STRING},ScopeSet.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},ScopeSet}(),tu=function(){function AuthToken(et,eo){if(eU.x.isEmpty(et))throw tr.e.createTokenNullOrEmptyError(et);this.rawToken=et,this.claims=AuthToken.extractTokenClaims(et,eo)}return AuthToken.extractTokenClaims=function(et,eo){var ei=eU.x.decodeAuthToken(et);try{var ea=ei.JWSPayload,eu=eo.base64Decode(ea);return JSON.parse(eu)}catch(et){throw tr.e.createTokenParsingError(et)}},AuthToken}(),td=function(){function CacheManager(et,eo){this.clientId=et,this.cryptoImpl=eo}return CacheManager.prototype.getAllAccounts=function(){var et=this,eo=this.getAccountsFilteredBy(),ei=Object.keys(eo).map(function(et){return eo[et]});return ei.length<1?[]:ei.map(function(eo){var ei=CacheManager.toObject(new tn,eo).getAccountInfo(),ea=et.readIdTokenFromCache(et.clientId,ei);return ea&&!ei.idTokenClaims&&(ei.idToken=ea.secret,ei.idTokenClaims=new tu(ea.secret,et.cryptoImpl).claims),ei})},CacheManager.prototype.saveCacheRecord=function(et){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(eo){switch(eo.label){case 0:if(!et)throw tr.e.createNullOrUndefinedCacheRecord();if(et.account&&this.setAccount(et.account),et.idToken&&this.setIdTokenCredential(et.idToken),!et.accessToken)return[3,2];return[4,this.saveAccessToken(et.accessToken)];case 1:eo.sent(),eo.label=2;case 2:return et.refreshToken&&this.setRefreshTokenCredential(et.refreshToken),et.appMetadata&&this.setAppMetadata(et.appMetadata),[2]}})})},CacheManager.prototype.saveAccessToken=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed=this;return(0,eA.Jh)(this,function(eh){switch(eh.label){case 0:if(eo=this.getCredentialsFilteredBy({clientId:et.clientId,credentialType:et.credentialType,environment:et.environment,homeAccountId:et.homeAccountId,realm:et.realm,tokenType:et.tokenType,requestedClaimsHash:et.requestedClaimsHash}),ei=tc.fromString(et.target),!(ea=Object.keys(eo.accessTokens).map(function(et){return eo.accessTokens[et]})))return[3,2];return eu=[],ea.forEach(function(et){tc.fromString(et.target).intersectingScopeSets(ei)&&eu.push(ed.removeCredential(et))}),[4,Promise.all(eu)];case 1:eh.sent(),eh.label=2;case 2:return this.setAccessTokenCredential(et),[2]}})})},CacheManager.prototype.getAccountsFilteredBy=function(et){return this.getAccountsFilteredByInternal(et?et.homeAccountId:e_.gT.EMPTY_STRING,et?et.environment:e_.gT.EMPTY_STRING,et?et.realm:e_.gT.EMPTY_STRING,et?et.nativeAccountId:e_.gT.EMPTY_STRING)},CacheManager.prototype.getAccountsFilteredByInternal=function(et,eo,ei,ea){var eu=this,ed=this.getKeys(),eh={};return ed.forEach(function(ed){var ep=eu.getAccount(ed);ep&&(!et||eu.matchHomeAccountId(ep,et))&&(!eo||eu.matchEnvironment(ep,eo))&&(!ei||eu.matchRealm(ep,ei))&&(!ea||eu.matchNativeAccountId(ep,ea))&&(eh[ed]=ep)}),eh},CacheManager.prototype.getCredentialsFilteredBy=function(et){return this.getCredentialsFilteredByInternal(et.homeAccountId,et.environment,et.credentialType,et.clientId,et.familyId,et.realm,et.target,et.userAssertionHash,et.tokenType,et.keyId,et.requestedClaimsHash)},CacheManager.prototype.getCredentialsFilteredByInternal=function(et,eo,ei,ea,eu,ed,eh,ep,ef,em,eg){var ey=this,eC=this.getKeys(),eS={idTokens:{},accessTokens:{},refreshTokens:{}};return eC.forEach(function(eC){var ew=ti.getCredentialType(eC);if(ew!==e_.gT.NOT_DEFINED){var eA=ey.getSpecificCredential(eC,ew);if(eA&&(!ep||ey.matchUserAssertionHash(eA,ep))&&(!et||ey.matchHomeAccountId(eA,et))&&(!eo||ey.matchEnvironment(eA,eo))&&(!ed||ey.matchRealm(eA,ed))&&(!ei||ey.matchCredentialType(eA,ei))&&(!ea||ey.matchClientId(eA,ea))&&(!eu||ey.matchFamilyId(eA,eu))&&(!eh||ey.matchTarget(eA,eh))&&(!eg&&!eA.requestedClaimsHash||eA.requestedClaimsHash===eg)&&(ei!==e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME||(!ef||ey.matchTokenType(eA,ef))&&(ef!==e_.hO.SSH||!em||ey.matchKeyId(eA,em)))){var eI=ey.updateCredentialCacheKey(eC,eA);switch(ew){case e_.d3.ID_TOKEN:eS.idTokens[eI]=eA;break;case e_.d3.ACCESS_TOKEN:case e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:eS.accessTokens[eI]=eA;break;case e_.d3.REFRESH_TOKEN:eS.refreshTokens[eI]=eA}}}}),eS},CacheManager.prototype.getAppMetadataFilteredBy=function(et){return this.getAppMetadataFilteredByInternal(et.environment,et.clientId)},CacheManager.prototype.getAppMetadataFilteredByInternal=function(et,eo){var ei=this,ea=this.getKeys(),eu={};return ea.forEach(function(ea){if(ei.isAppMetadata(ea)){var ed=ei.getAppMetadata(ea);ed&&(!et||ei.matchEnvironment(ed,et))&&(!eo||ei.matchClientId(ed,eo))&&(eu[ea]=ed)}}),eu},CacheManager.prototype.getAuthorityMetadataByAlias=function(et){var eo=this,ei=this.getAuthorityMetadataKeys(),ea=null;return ei.forEach(function(ei){if(eo.isAuthorityMetadata(ei)&&-1!==ei.indexOf(eo.clientId)){var eu=eo.getAuthorityMetadata(ei);eu&&-1!==eu.aliases.indexOf(et)&&(ea=eu)}}),ea},CacheManager.prototype.removeAllAccounts=function(){return(0,eA.mG)(this,void 0,void 0,function(){var et,eo,ei=this;return(0,eA.Jh)(this,function(ea){switch(ea.label){case 0:return et=this.getKeys(),eo=[],et.forEach(function(et){ei.getAccount(et)&&eo.push(ei.removeAccount(et))}),[4,Promise.all(eo)];case 1:return ea.sent(),[2,!0]}})})},CacheManager.prototype.removeAccount=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo;return(0,eA.Jh)(this,function(ei){switch(ei.label){case 0:if(!(eo=this.getAccount(et)))throw tr.e.createNoAccountFoundError();return[4,this.removeAccountContext(eo)];case 1:return[2,ei.sent()&&this.removeItem(et,e_.Xj.ACCOUNT)]}})})},CacheManager.prototype.removeAccountContext=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu=this;return(0,eA.Jh)(this,function(ed){switch(ed.label){case 0:return eo=this.getKeys(),ei=et.generateAccountId(),ea=[],eo.forEach(function(et){var eo=ti.getCredentialType(et);if(eo!==e_.gT.NOT_DEFINED){var ed=eu.getSpecificCredential(et,eo);ed&&ei===ed.generateAccountId()&&ea.push(eu.removeCredential(ed))}}),[4,Promise.all(ea)];case 1:return ed.sent(),[2,!0]}})})},CacheManager.prototype.removeCredential=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eA.Jh)(this,function(ea){switch(ea.label){case 0:if(eo=et.generateCredentialKey(),et.credentialType.toLowerCase()!==e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||et.tokenType!==e_.hO.POP||!(ei=et.keyId))return[3,4];ea.label=1;case 1:return ea.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(ei)];case 2:return ea.sent(),[3,4];case 3:throw ea.sent(),tr.e.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(eo,e_.Xj.CREDENTIAL)]}})})},CacheManager.prototype.removeAppMetadata=function(){var et=this;return this.getKeys().forEach(function(eo){et.isAppMetadata(eo)&&et.removeItem(eo,e_.Xj.APP_METADATA)}),!0},CacheManager.prototype.readCacheRecord=function(et,eo,ei,ea){var eu=this.readAccountFromCache(et),ed=this.readIdTokenFromCache(eo,et),eh=this.readAccessTokenFromCache(eo,et,ei),ep=this.readRefreshTokenFromCache(eo,et,!1),ef=this.readAppMetadataFromCache(ea,eo);return eu&&ed&&(eu.idTokenClaims=new tu(ed.secret,this.cryptoImpl).claims),{account:eu,idToken:ed,accessToken:eh,refreshToken:ep,appMetadata:ef}},CacheManager.prototype.readAccountFromCache=function(et){var eo=tn.generateAccountCacheKey(et);return this.getAccount(eo)},CacheManager.prototype.readAccountFromCacheWithNativeAccountId=function(et){var eo={nativeAccountId:et},ei=this.getAccountsFilteredBy(eo),ea=Object.keys(ei).map(function(et){return ei[et]});if(ea.length<1)return null;if(ea.length>1)throw tr.e.createMultipleMatchingAccountsInCacheError();return ei[0]},CacheManager.prototype.readIdTokenFromCache=function(et,eo){var ei={homeAccountId:eo.homeAccountId,environment:eo.environment,credentialType:e_.d3.ID_TOKEN,clientId:et,realm:eo.tenantId},ea=this.getCredentialsFilteredBy(ei),eu=Object.keys(ea.idTokens).map(function(et){return ea.idTokens[et]}),ed=eu.length;if(ed<1)return null;if(ed>1)throw tr.e.createMultipleMatchingTokensInCacheError();return eu[0]},CacheManager.prototype.readAccessTokenFromCache=function(et,eo,ei){var ea=new tc(ei.scopes||[]),eu=ei.authenticationScheme||e_.hO.BEARER,ed=eu&&eu.toLowerCase()!==e_.hO.BEARER.toLowerCase()?e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:e_.d3.ACCESS_TOKEN,eh={homeAccountId:eo.homeAccountId,environment:eo.environment,credentialType:ed,clientId:et,realm:eo.tenantId,target:ea.printScopesLowerCase(),tokenType:eu,keyId:ei.sshKid,requestedClaimsHash:ei.requestedClaimsHash},ep=this.getCredentialsFilteredBy(eh),ef=Object.keys(ep.accessTokens).map(function(et){return ep.accessTokens[et]}),em=ef.length;if(em<1)return null;if(em>1)throw tr.e.createMultipleMatchingTokensInCacheError();return ef[0]},CacheManager.prototype.readRefreshTokenFromCache=function(et,eo,ei){var ea=ei?e_.ch:void 0,eu={homeAccountId:eo.homeAccountId,environment:eo.environment,credentialType:e_.d3.REFRESH_TOKEN,clientId:et,familyId:ea},ed=this.getCredentialsFilteredBy(eu),eh=Object.keys(ed.refreshTokens).map(function(et){return ed.refreshTokens[et]});return eh.length<1?null:eh[0]},CacheManager.prototype.readAppMetadataFromCache=function(et,eo){var ei={environment:et,clientId:eo},ea=this.getAppMetadataFilteredBy(ei),eu=Object.keys(ea).map(function(et){return ea[et]}),ed=eu.length;if(ed<1)return null;if(ed>1)throw tr.e.createMultipleMatchingAppMetadataInCacheError();return eu[0]},CacheManager.prototype.isAppMetadataFOCI=function(et,eo){var ei=this.readAppMetadataFromCache(et,eo);return!!(ei&&ei.familyId===e_.ch)},CacheManager.prototype.matchHomeAccountId=function(et,eo){return!!(et.homeAccountId&&eo===et.homeAccountId)},CacheManager.prototype.matchUserAssertionHash=function(et,eo){return!!(et.userAssertionHash&&eo===et.userAssertionHash)},CacheManager.prototype.matchEnvironment=function(et,eo){var ei=this.getAuthorityMetadataByAlias(eo);return!!(ei&&ei.aliases.indexOf(et.environment)>-1)},CacheManager.prototype.matchCredentialType=function(et,eo){return et.credentialType&&eo.toLowerCase()===et.credentialType.toLowerCase()},CacheManager.prototype.matchClientId=function(et,eo){return!!(et.clientId&&eo===et.clientId)},CacheManager.prototype.matchFamilyId=function(et,eo){return!!(et.familyId&&eo===et.familyId)},CacheManager.prototype.matchRealm=function(et,eo){return!!(et.realm&&eo===et.realm)},CacheManager.prototype.matchNativeAccountId=function(et,eo){return!!(et.nativeAccountId&&eo===et.nativeAccountId)},CacheManager.prototype.matchTarget=function(et,eo){if(et.credentialType!==e_.d3.ACCESS_TOKEN&&et.credentialType!==e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME||!et.target)return!1;var ei=tc.fromString(et.target),ea=tc.fromString(eo);return ea.containsOnlyOIDCScopes()?ea.removeScope(e_.gT.OFFLINE_ACCESS_SCOPE):ea.removeOIDCScopes(),ei.containsScopeSet(ea)},CacheManager.prototype.matchTokenType=function(et,eo){return!!(et.tokenType&&et.tokenType===eo)},CacheManager.prototype.matchKeyId=function(et,eo){return!!(et.keyId&&et.keyId===eo)},CacheManager.prototype.isAppMetadata=function(et){return -1!==et.indexOf(e_.dg)},CacheManager.prototype.isAuthorityMetadata=function(et){return -1!==et.indexOf(e_.QU.CACHE_KEY)},CacheManager.prototype.generateAuthorityMetadataCacheKey=function(et){return e_.QU.CACHE_KEY+"-"+this.clientId+"-"+et},CacheManager.prototype.getSpecificCredential=function(et,eo){switch(eo){case e_.d3.ID_TOKEN:return this.getIdTokenCredential(et);case e_.d3.ACCESS_TOKEN:case e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(et);case e_.d3.REFRESH_TOKEN:return this.getRefreshTokenCredential(et);default:return null}},CacheManager.toObject=function(et,eo){for(var ei in eo)et[ei]=eo[ei];return et},CacheManager}(),tp=function(et){function DefaultStorageClass(){return null!==et&&et.apply(this,arguments)||this}return(0,eA.ZT)(DefaultStorageClass,et),DefaultStorageClass.prototype.setAccount=function(){var et="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getAccount=function(){var et="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.setIdTokenCredential=function(){var et="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getIdTokenCredential=function(){var et="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.setAccessTokenCredential=function(){var et="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getAccessTokenCredential=function(){var et="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.setRefreshTokenCredential=function(){var et="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getRefreshTokenCredential=function(){var et="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.setAppMetadata=function(){var et="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getAppMetadata=function(){var et="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.setServerTelemetry=function(){var et="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getServerTelemetry=function(){var et="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.setAuthorityMetadata=function(){var et="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getAuthorityMetadata=function(){var et="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getAuthorityMetadataKeys=function(){var et="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.setThrottlingCache=function(){var et="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getThrottlingCache=function(){var et="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.removeItem=function(){var et="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.containsKey=function(){var et="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.getKeys=function(){var et="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass.prototype.clear=function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Storage interface - clear() has not been implemented for the cacheStorage interface.",eI.l.createUnexpectedError(et)})})},DefaultStorageClass.prototype.updateCredentialCacheKey=function(){var et="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw eI.l.createUnexpectedError(et)},DefaultStorageClass}(td),tf=function(et){function IdTokenEntity(){return null!==et&&et.apply(this,arguments)||this}return(0,eA.ZT)(IdTokenEntity,et),IdTokenEntity.createIdTokenEntity=function(et,eo,ei,ea,eu){var ed=new IdTokenEntity;return ed.credentialType=e_.d3.ID_TOKEN,ed.homeAccountId=et,ed.environment=eo,ed.clientId=ea,ed.secret=ei,ed.realm=eu,ed},IdTokenEntity.isIdTokenEntity=function(et){return!!et&&et.hasOwnProperty("homeAccountId")&&et.hasOwnProperty("environment")&&et.hasOwnProperty("credentialType")&&et.hasOwnProperty("realm")&&et.hasOwnProperty("clientId")&&et.hasOwnProperty("secret")&&et.credentialType===e_.d3.ID_TOKEN},IdTokenEntity}(ti),tm=function(){function TimeUtils(){}return TimeUtils.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},TimeUtils.isTokenExpired=function(et,eo){var ei=Number(et)||0;return TimeUtils.nowSeconds()+eo>ei},TimeUtils.wasClockTurnedBack=function(et){return Number(et)>TimeUtils.nowSeconds()},TimeUtils.delay=function(et,eo){return new Promise(function(ei){return setTimeout(function(){return ei(eo)},et)})},TimeUtils}(),tg=function(et){function AccessTokenEntity(){return null!==et&&et.apply(this,arguments)||this}return(0,eA.ZT)(AccessTokenEntity,et),AccessTokenEntity.createAccessTokenEntity=function(et,eo,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC,eS,ew){var eA,eI,eR=new AccessTokenEntity;eR.homeAccountId=et,eR.credentialType=e_.d3.ACCESS_TOKEN,eR.secret=ei;var eT=tm.nowSeconds();if(eR.cachedAt=eT.toString(),eR.expiresOn=eh.toString(),eR.extendedExpiresOn=ep.toString(),em&&(eR.refreshOn=em.toString()),eR.environment=eo,eR.clientId=ea,eR.realm=eu,eR.target=ed,eR.userAssertionHash=ey,eR.tokenType=eU.x.isEmpty(eg)?e_.hO.BEARER:eg,eS&&(eR.requestedClaims=eS,eR.requestedClaimsHash=ew),(null===(eA=eR.tokenType)||void 0===eA?void 0:eA.toLowerCase())!==e_.hO.BEARER.toLowerCase())switch(eR.credentialType=e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME,eR.tokenType){case e_.hO.POP:var eE=tu.extractTokenClaims(ei,ef);if(!(null===(eI=null==eE?void 0:eE.cnf)||void 0===eI?void 0:eI.kid))throw tr.e.createTokenClaimsRequiredError();eR.keyId=eE.cnf.kid;break;case e_.hO.SSH:eR.keyId=eC}return eR},AccessTokenEntity.isAccessTokenEntity=function(et){return!!et&&et.hasOwnProperty("homeAccountId")&&et.hasOwnProperty("environment")&&et.hasOwnProperty("credentialType")&&et.hasOwnProperty("realm")&&et.hasOwnProperty("clientId")&&et.hasOwnProperty("secret")&&et.hasOwnProperty("target")&&(et.credentialType===e_.d3.ACCESS_TOKEN||et.credentialType===e_.d3.ACCESS_TOKEN_WITH_AUTH_SCHEME)},AccessTokenEntity}(ti),ty=function(et){function RefreshTokenEntity(){return null!==et&&et.apply(this,arguments)||this}return(0,eA.ZT)(RefreshTokenEntity,et),RefreshTokenEntity.createRefreshTokenEntity=function(et,eo,ei,ea,eu,ed){var eh=new RefreshTokenEntity;return eh.clientId=ea,eh.credentialType=e_.d3.REFRESH_TOKEN,eh.environment=eo,eh.homeAccountId=et,eh.secret=ei,eh.userAssertionHash=ed,eu&&(eh.familyId=eu),eh},RefreshTokenEntity.isRefreshTokenEntity=function(et){return!!et&&et.hasOwnProperty("homeAccountId")&&et.hasOwnProperty("environment")&&et.hasOwnProperty("credentialType")&&et.hasOwnProperty("clientId")&&et.hasOwnProperty("secret")&&et.credentialType===e_.d3.REFRESH_TOKEN},RefreshTokenEntity}(ti),tv=function(){function AppMetadataEntity(){}return AppMetadataEntity.prototype.generateAppMetadataKey=function(){return AppMetadataEntity.generateAppMetadataCacheKey(this.environment,this.clientId)},AppMetadataEntity.generateAppMetadataCacheKey=function(et,eo){return[e_.dg,et,eo].join(e_.Bv.CACHE_KEY_SEPARATOR).toLowerCase()},AppMetadataEntity.createAppMetadataEntity=function(et,eo,ei){var ea=new AppMetadataEntity;return ea.clientId=et,ea.environment=eo,ei&&(ea.familyId=ei),ea},AppMetadataEntity.isAppMetadataEntity=function(et,eo){return!!eo&&0===et.indexOf(e_.dg)&&eo.hasOwnProperty("clientId")&&eo.hasOwnProperty("environment")},AppMetadataEntity}(),tb=function(){function ServerTelemetryEntity(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return ServerTelemetryEntity.isServerTelemetryEntity=function(et,eo){var ei=0===et.indexOf(e_.HN.CACHE_KEY),ea=!0;return eo&&(ea=eo.hasOwnProperty("failedRequests")&&eo.hasOwnProperty("errors")&&eo.hasOwnProperty("cacheHits")),ei&&ea},ServerTelemetryEntity}(),tC=function(){function AuthorityMetadataEntity(){this.expiresAt=tm.nowSeconds()+e_.QU.REFRESH_TIME_SECONDS}return AuthorityMetadataEntity.prototype.updateCloudDiscoveryMetadata=function(et,eo){this.aliases=et.aliases,this.preferred_cache=et.preferred_cache,this.preferred_network=et.preferred_network,this.aliasesFromNetwork=eo},AuthorityMetadataEntity.prototype.updateEndpointMetadata=function(et,eo){this.authorization_endpoint=et.authorization_endpoint,this.token_endpoint=et.token_endpoint,this.end_session_endpoint=et.end_session_endpoint,this.issuer=et.issuer,this.endpointsFromNetwork=eo,this.jwks_uri=et.jwks_uri},AuthorityMetadataEntity.prototype.updateCanonicalAuthority=function(et){this.canonical_authority=et},AuthorityMetadataEntity.prototype.resetExpiresAt=function(){this.expiresAt=tm.nowSeconds()+e_.QU.REFRESH_TIME_SECONDS},AuthorityMetadataEntity.prototype.isExpired=function(){return this.expiresAt<=tm.nowSeconds()},AuthorityMetadataEntity.isAuthorityMetadataEntity=function(et,eo){return!!eo&&0===et.indexOf(e_.QU.CACHE_KEY)&&eo.hasOwnProperty("aliases")&&eo.hasOwnProperty("preferred_cache")&&eo.hasOwnProperty("preferred_network")&&eo.hasOwnProperty("canonical_authority")&&eo.hasOwnProperty("authorization_endpoint")&&eo.hasOwnProperty("token_endpoint")&&eo.hasOwnProperty("issuer")&&eo.hasOwnProperty("aliasesFromNetwork")&&eo.hasOwnProperty("endpointsFromNetwork")&&eo.hasOwnProperty("expiresAt")&&eo.hasOwnProperty("jwks_uri")},AuthorityMetadataEntity}(),tS=function(){function ThrottlingEntity(){}return ThrottlingEntity.isThrottlingEntity=function(et,eo){var ei=!1;et&&(ei=0===et.indexOf(e_.bb.THROTTLING_PREFIX));var ea=!0;return eo&&(ea=eo.hasOwnProperty("throttleTime")),ei&&ea},ThrottlingEntity}(),t_=function(){function ProtocolUtils(){}return ProtocolUtils.setRequestState=function(et,eo,ei){var ea=ProtocolUtils.generateLibraryState(et,ei);return eU.x.isEmpty(eo)?ea:""+ea+e_.gT.RESOURCE_DELIM+eo},ProtocolUtils.generateLibraryState=function(et,eo){if(!et)throw tr.e.createNoCryptoObjectError("generateLibraryState");var ei={id:et.createNewGuid()};eo&&(ei.meta=eo);var ea=JSON.stringify(ei);return et.base64Encode(ea)},ProtocolUtils.parseRequestState=function(et,eo){if(!et)throw tr.e.createNoCryptoObjectError("parseRequestState");if(eU.x.isEmpty(eo))throw tr.e.createInvalidStateError(eo,"Null, undefined or empty state");try{var ei=eo.split(e_.gT.RESOURCE_DELIM),ea=ei[0],eu=ei.length>1?ei.slice(1).join(e_.gT.RESOURCE_DELIM):e_.gT.EMPTY_STRING,ed=et.base64Decode(ea),eh=JSON.parse(ed);return{userRequestState:eU.x.isEmpty(eu)?e_.gT.EMPTY_STRING:eu,libraryState:eh}}catch(et){throw tr.e.createInvalidStateError(eo,et)}},ProtocolUtils}();!function(et){et.HOME_ACCOUNT_ID="home_account_id",et.UPN="UPN"}(ef||(ef={}));var tw=ei(5931),tA=function(){function BrowserStorage(et){this.validateWindowStorage(et),this.windowStorage=window[et]}return BrowserStorage.prototype.validateWindowStorage=function(et){if(et!==ew.Ix.LocalStorage&&et!==ew.Ix.SessionStorage||!window[et])throw tw.W.createStorageNotSupportedError(et)},BrowserStorage.prototype.getItem=function(et){return this.windowStorage.getItem(et)},BrowserStorage.prototype.setItem=function(et,eo){this.windowStorage.setItem(et,eo)},BrowserStorage.prototype.removeItem=function(et){this.windowStorage.removeItem(et)},BrowserStorage.prototype.getKeys=function(){return Object.keys(this.windowStorage)},BrowserStorage.prototype.containsKey=function(et){return this.windowStorage.hasOwnProperty(et)},BrowserStorage}(),tI=function(){function UrlString(et){if(this._urlString=et,eU.x.isEmpty(this._urlString))throw ts.createUrlEmptyError();eU.x.isEmpty(this.getHash())&&(this._urlString=UrlString.canonicalizeUri(et))}return Object.defineProperty(UrlString.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),UrlString.canonicalizeUri=function(et){if(et){var eo=et.toLowerCase();return eU.x.endsWith(eo,"?")?eo=eo.slice(0,-1):eU.x.endsWith(eo,"?/")&&(eo=eo.slice(0,-2)),eU.x.endsWith(eo,"/")||(eo+="/"),eo}return et},UrlString.prototype.validateAsUri=function(){var et;try{et=this.getUrlComponents()}catch(et){throw ts.createUrlParseError(et)}if(!et.HostNameAndPort||!et.PathSegments)throw ts.createUrlParseError("Given url string: "+this.urlString);if(!et.Protocol||"https:"!==et.Protocol.toLowerCase())throw ts.createInsecureAuthorityUriError(this.urlString)},UrlString.appendQueryString=function(et,eo){return eU.x.isEmpty(eo)?et:0>et.indexOf("?")?et+"?"+eo:et+"&"+eo},UrlString.removeHashFromUrl=function(et){return UrlString.canonicalizeUri(et.split("#")[0])},UrlString.prototype.replaceTenantPath=function(et){var eo=this.getUrlComponents(),ei=eo.PathSegments;return et&&0!==ei.length&&(ei[0]===e_.Nb.COMMON||ei[0]===e_.Nb.ORGANIZATIONS)&&(ei[0]=et),UrlString.constructAuthorityUriFromObject(eo)},UrlString.prototype.getHash=function(){return UrlString.parseHash(this.urlString)},UrlString.prototype.getUrlComponents=function(){var et=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),eo=this.urlString.match(et);if(!eo)throw ts.createUrlParseError("Given url string: "+this.urlString);var ei={Protocol:eo[1],HostNameAndPort:eo[4],AbsolutePath:eo[5],QueryString:eo[7]},ea=ei.AbsolutePath.split("/");return ea=ea.filter(function(et){return et&&et.length>0}),ei.PathSegments=ea,!eU.x.isEmpty(ei.QueryString)&&ei.QueryString.endsWith("/")&&(ei.QueryString=ei.QueryString.substring(0,ei.QueryString.length-1)),ei},UrlString.getDomainFromUrl=function(et){var eo=RegExp("^([^:/?#]+://)?([^/?#]*)"),ei=et.match(eo);if(!ei)throw ts.createUrlParseError("Given url string: "+et);return ei[2]},UrlString.getAbsoluteUrl=function(et,eo){if(et[0]===e_.gT.FORWARD_SLASH){var ei=new UrlString(eo).getUrlComponents();return ei.Protocol+"//"+ei.HostNameAndPort+et}return et},UrlString.parseHash=function(et){var eo=et.indexOf("#"),ei=et.indexOf("#/");return ei>-1?et.substring(ei+2):eo>-1?et.substring(eo+1):e_.gT.EMPTY_STRING},UrlString.parseQueryString=function(et){var eo=et.indexOf("?"),ei=et.indexOf("/?");return ei>-1?et.substring(ei+2):eo>-1?et.substring(eo+1):e_.gT.EMPTY_STRING},UrlString.constructAuthorityUriFromObject=function(et){return new UrlString(et.Protocol+"//"+et.HostNameAndPort+"/"+et.PathSegments.join("/"))},UrlString.getDeserializedHash=function(et){if(eU.x.isEmpty(et))return{};var eo=UrlString.parseHash(et),ei=eU.x.queryStringToObject(eU.x.isEmpty(eo)?et:eo);if(!ei)throw tr.e.createHashNotDeserializedError(JSON.stringify(ei));return ei},UrlString.getDeserializedQueryString=function(et){if(eU.x.isEmpty(et))return{};var eo=UrlString.parseQueryString(et),ei=eU.x.queryStringToObject(eU.x.isEmpty(eo)?et:eo);if(!ei)throw tr.e.createHashNotDeserializedError(JSON.stringify(ei));return ei},UrlString.hashContainsKnownProperties=function(et){if(eU.x.isEmpty(et)||0>et.indexOf("="))return!1;var eo=UrlString.getDeserializedHash(et);return!!(eo.code||eo.error_description||eo.error||eo.state)},UrlString}(),tR=function(){function BrowserProtocolUtils(){}return BrowserProtocolUtils.extractBrowserRequestState=function(et,eo){if(eU.x.isEmpty(eo))return null;try{return t_.parseRequestState(et,eo).libraryState.meta}catch(et){throw tr.e.createInvalidStateError(eo,et)}},BrowserProtocolUtils.parseServerResponseFromHash=function(et){if(!et)return{};var eo=new tI(et);return tI.getDeserializedHash(eo.getHash())},BrowserProtocolUtils}(),tT=function(et){function BrowserCacheManager(eo,ei,ea,eu){var ed=et.call(this,eo,ea)||this;return ed.COOKIE_LIFE_MULTIPLIER=864e5,ed.cacheConfig=ei,ed.logger=eu,ed.internalStorage=new eV,ed.browserStorage=ed.setupBrowserStorage(ed.cacheConfig.cacheLocation),ed.temporaryCacheStorage=ed.setupTemporaryCacheStorage(ed.cacheConfig.cacheLocation),ed.migrateCacheEntries(),ed}return(0,eS.ZT)(BrowserCacheManager,et),BrowserCacheManager.prototype.setupBrowserStorage=function(et){switch(et){case ew.Ix.LocalStorage:case ew.Ix.SessionStorage:try{return new tA(et)}catch(et){this.logger.verbose(et)}}return this.cacheConfig.cacheLocation=ew.Ix.MemoryStorage,new eV},BrowserCacheManager.prototype.setupTemporaryCacheStorage=function(et){switch(et){case ew.Ix.LocalStorage:case ew.Ix.SessionStorage:try{return new tA(ew.Ix.SessionStorage)}catch(et){return this.logger.verbose(et),this.internalStorage}case ew.Ix.MemoryStorage:default:return this.internalStorage}},BrowserCacheManager.prototype.migrateCacheEntries=function(){var et=this,eo=e_.gT.CACHE_PREFIX+"."+e_.Vi.ID_TOKEN,ei=e_.gT.CACHE_PREFIX+"."+e_.Vi.CLIENT_INFO,ea=e_.gT.CACHE_PREFIX+"."+e_.Vi.ERROR,eu=e_.gT.CACHE_PREFIX+"."+e_.Vi.ERROR_DESC,ed=[this.browserStorage.getItem(eo),this.browserStorage.getItem(ei),this.browserStorage.getItem(ea),this.browserStorage.getItem(eu)];[e_.Vi.ID_TOKEN,e_.Vi.CLIENT_INFO,e_.Vi.ERROR,e_.Vi.ERROR_DESC].forEach(function(eo,ei){return et.migrateCacheEntry(eo,ed[ei])})},BrowserCacheManager.prototype.migrateCacheEntry=function(et,eo){eo&&this.setTemporaryCache(et,eo,!0)},BrowserCacheManager.prototype.validateAndParseJson=function(et){try{var eo=JSON.parse(et);return eo&&"object"==typeof eo?eo:null}catch(et){return null}},BrowserCacheManager.prototype.getItem=function(et){return this.browserStorage.getItem(et)},BrowserCacheManager.prototype.setItem=function(et,eo){this.browserStorage.setItem(et,eo)},BrowserCacheManager.prototype.getAccount=function(et){var eo=this.getItem(et);if(!eo)return null;var ei=this.validateAndParseJson(eo);return ei&&tn.isAccountEntity(ei)?td.toObject(new tn,ei):null},BrowserCacheManager.prototype.setAccount=function(et){this.logger.trace("BrowserCacheManager.setAccount called");var eo=et.generateAccountKey();this.setItem(eo,JSON.stringify(et))},BrowserCacheManager.prototype.getIdTokenCredential=function(et){var eo=this.getItem(et);if(!eo)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var ei=this.validateAndParseJson(eo);return ei&&tf.isIdTokenEntity(ei)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),td.toObject(new tf,ei)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null)},BrowserCacheManager.prototype.setIdTokenCredential=function(et){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var eo=et.generateCredentialKey();this.setItem(eo,JSON.stringify(et))},BrowserCacheManager.prototype.getAccessTokenCredential=function(et){var eo=this.getItem(et);if(!eo)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var ei=this.validateAndParseJson(eo);return ei&&tg.isAccessTokenEntity(ei)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),td.toObject(new tg,ei)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null)},BrowserCacheManager.prototype.setAccessTokenCredential=function(et){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var eo=et.generateCredentialKey();this.setItem(eo,JSON.stringify(et))},BrowserCacheManager.prototype.getRefreshTokenCredential=function(et){var eo=this.getItem(et);if(!eo)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var ei=this.validateAndParseJson(eo);return ei&&ty.isRefreshTokenEntity(ei)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),td.toObject(new ty,ei)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null)},BrowserCacheManager.prototype.setRefreshTokenCredential=function(et){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var eo=et.generateCredentialKey();this.setItem(eo,JSON.stringify(et))},BrowserCacheManager.prototype.getAppMetadata=function(et){var eo=this.getItem(et);if(!eo)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var ei=this.validateAndParseJson(eo);return ei&&tv.isAppMetadataEntity(et,ei)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),td.toObject(new tv,ei)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},BrowserCacheManager.prototype.setAppMetadata=function(et){this.logger.trace("BrowserCacheManager.setAppMetadata called");var eo=et.generateAppMetadataKey();this.setItem(eo,JSON.stringify(et))},BrowserCacheManager.prototype.getServerTelemetry=function(et){var eo=this.getItem(et);if(!eo)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var ei=this.validateAndParseJson(eo);return ei&&tb.isServerTelemetryEntity(et,ei)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),td.toObject(new tb,ei)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},BrowserCacheManager.prototype.setServerTelemetry=function(et,eo){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(et,JSON.stringify(eo))},BrowserCacheManager.prototype.getAuthorityMetadata=function(et){var eo=this.internalStorage.getItem(et);if(!eo)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var ei=this.validateAndParseJson(eo);return ei&&tC.isAuthorityMetadataEntity(et,ei)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),td.toObject(new tC,ei)):null},BrowserCacheManager.prototype.getAuthorityMetadataKeys=function(){var et=this;return this.internalStorage.getKeys().filter(function(eo){return et.isAuthorityMetadata(eo)})},BrowserCacheManager.prototype.setWrapperMetadata=function(et,eo){this.internalStorage.setItem(ew.Bs.WRAPPER_SKU,et),this.internalStorage.setItem(ew.Bs.WRAPPER_VER,eo)},BrowserCacheManager.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(ew.Bs.WRAPPER_SKU)||e_.gT.EMPTY_STRING,this.internalStorage.getItem(ew.Bs.WRAPPER_VER)||e_.gT.EMPTY_STRING]},BrowserCacheManager.prototype.setAuthorityMetadata=function(et,eo){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(et,JSON.stringify(eo))},BrowserCacheManager.prototype.getActiveAccount=function(){var et=this.generateCacheKey(e_.Vi.ACTIVE_ACCOUNT_FILTERS),eo=this.getItem(et);if(!eo){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var ei=this.generateCacheKey(e_.Vi.ACTIVE_ACCOUNT),ea=this.getItem(ei);if(!ea)return this.logger.trace("No active account found"),null;var eu=this.getAccountInfoByFilter({localAccountId:ea})[0]||null;return eu?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(eu),eu):null}var ed=this.validateAndParseJson(eo);return ed?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:ed.homeAccountId,localAccountId:ed.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},BrowserCacheManager.prototype.setActiveAccount=function(et){var eo=this.generateCacheKey(e_.Vi.ACTIVE_ACCOUNT_FILTERS),ei=this.generateCacheKey(e_.Vi.ACTIVE_ACCOUNT);if(et){this.logger.verbose("setActiveAccount: Active account set");var ea={homeAccountId:et.homeAccountId,localAccountId:et.localAccountId};this.browserStorage.setItem(eo,JSON.stringify(ea)),this.browserStorage.setItem(ei,et.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(eo),this.browserStorage.removeItem(ei)},BrowserCacheManager.prototype.getAccountInfoByFilter=function(et){return this.getAllAccounts().filter(function(eo){return(!et.username||et.username.toLowerCase()===eo.username.toLowerCase())&&(!et.homeAccountId||et.homeAccountId===eo.homeAccountId)&&(!et.localAccountId||et.localAccountId===eo.localAccountId)&&(!et.tenantId||et.tenantId===eo.tenantId)&&(!et.environment||et.environment===eo.environment)})},BrowserCacheManager.prototype.getAccountInfoByHints=function(et,eo){var ei=this.getAllAccounts().filter(function(ei){return eo?eo===(ei.idTokenClaims&&ei.idTokenClaims.sid):!!et&&et===ei.username});if(1===ei.length)return ei[0];if(ei.length>1)throw tr.e.createMultipleMatchingAccountsInCacheError();return null},BrowserCacheManager.prototype.getThrottlingCache=function(et){var eo=this.getItem(et);if(!eo)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var ei=this.validateAndParseJson(eo);return ei&&tS.isThrottlingEntity(et,ei)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),td.toObject(new tS,ei)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},BrowserCacheManager.prototype.setThrottlingCache=function(et,eo){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(et,JSON.stringify(eo))},BrowserCacheManager.prototype.getTemporaryCache=function(et,eo){var ei=eo?this.generateCacheKey(et):et;if(this.cacheConfig.storeAuthStateInCookie){var ea=this.getItemCookie(ei);if(ea)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),ea}var eu=this.temporaryCacheStorage.getItem(ei);if(!eu){if(this.cacheConfig.cacheLocation===ew.Ix.LocalStorage){var ed=this.browserStorage.getItem(ei);if(ed)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),ed}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),eu},BrowserCacheManager.prototype.setTemporaryCache=function(et,eo,ei){var ea=ei?this.generateCacheKey(et):et;this.temporaryCacheStorage.setItem(ea,eo),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(ea,eo))},BrowserCacheManager.prototype.removeItem=function(et){return this.browserStorage.removeItem(et),this.temporaryCacheStorage.removeItem(et),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(et)),!0},BrowserCacheManager.prototype.containsKey=function(et){return this.browserStorage.containsKey(et)||this.temporaryCacheStorage.containsKey(et)},BrowserCacheManager.prototype.getKeys=function(){return(0,eS.fl)(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},BrowserCacheManager.prototype.clear=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et=this;return(0,eS.Jh)(this,function(eo){switch(eo.label){case 0:return[4,this.removeAllAccounts()];case 1:return eo.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(eo){(et.browserStorage.containsKey(eo)||et.temporaryCacheStorage.containsKey(eo))&&(-1!==eo.indexOf(e_.gT.CACHE_PREFIX)||-1!==eo.indexOf(et.clientId))&&et.removeItem(eo)}),this.internalStorage.clear(),[2]}})})},BrowserCacheManager.prototype.setItemCookie=function(et,eo,ei){var ea=encodeURIComponent(et)+"="+encodeURIComponent(eo)+";path=/;SameSite=Lax;";ei&&(ea+="expires="+this.getCookieExpirationTime(ei)+";"),this.cacheConfig.secureCookies&&(ea+="Secure;"),document.cookie=ea},BrowserCacheManager.prototype.getItemCookie=function(et){for(var eo=encodeURIComponent(et)+"=",ei=document.cookie.split(";"),ea=0;ea<ei.length;ea++){for(var eu=ei[ea];" "===eu.charAt(0);)eu=eu.substring(1);if(0===eu.indexOf(eo))return decodeURIComponent(eu.substring(eo.length,eu.length))}return e_.gT.EMPTY_STRING},BrowserCacheManager.prototype.clearMsalCookies=function(){var et=this,eo=e_.gT.CACHE_PREFIX+"."+this.clientId;document.cookie.split(";").forEach(function(ei){for(;" "===ei.charAt(0);)ei=ei.substring(1);if(0===ei.indexOf(eo)){var ea=ei.split("=")[0];et.clearItemCookie(ea)}})},BrowserCacheManager.prototype.clearItemCookie=function(et){this.setItemCookie(et,e_.gT.EMPTY_STRING,-1)},BrowserCacheManager.prototype.getCookieExpirationTime=function(et){var eo=new Date;return new Date(eo.getTime()+et*this.COOKIE_LIFE_MULTIPLIER).toUTCString()},BrowserCacheManager.prototype.getCache=function(){return this.browserStorage},BrowserCacheManager.prototype.setCache=function(){},BrowserCacheManager.prototype.generateCacheKey=function(et){return this.validateAndParseJson(et)?JSON.stringify(et):eU.x.startsWith(et,e_.gT.CACHE_PREFIX)||eU.x.startsWith(et,e_.Vi.ADAL_ID_TOKEN)?et:e_.gT.CACHE_PREFIX+"."+this.clientId+"."+et},BrowserCacheManager.prototype.generateAuthorityKey=function(et){var eo=t_.parseRequestState(this.cryptoImpl,et).libraryState.id;return this.generateCacheKey(ew.c4.AUTHORITY+"."+eo)},BrowserCacheManager.prototype.generateNonceKey=function(et){var eo=t_.parseRequestState(this.cryptoImpl,et).libraryState.id;return this.generateCacheKey(ew.c4.NONCE_IDTOKEN+"."+eo)},BrowserCacheManager.prototype.generateStateKey=function(et){var eo=t_.parseRequestState(this.cryptoImpl,et).libraryState.id;return this.generateCacheKey(ew.c4.REQUEST_STATE+"."+eo)},BrowserCacheManager.prototype.getCachedAuthority=function(et){var eo=this.generateStateKey(et),ei=this.getTemporaryCache(eo);if(!ei)return null;var ea=this.generateAuthorityKey(ei);return this.getTemporaryCache(ea)},BrowserCacheManager.prototype.updateCacheEntries=function(et,eo,ei,ea,eu){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var ed=this.generateStateKey(et);this.setTemporaryCache(ed,et,!1);var eh=this.generateNonceKey(et);this.setTemporaryCache(eh,eo,!1);var ep=this.generateAuthorityKey(et);if(this.setTemporaryCache(ep,ei,!1),eu){var em={credential:eu.homeAccountId,type:ef.HOME_ACCOUNT_ID};this.setTemporaryCache(ew.c4.CCS_CREDENTIAL,JSON.stringify(em),!0)}else if(!eU.x.isEmpty(ea)){var em={credential:ea,type:ef.UPN};this.setTemporaryCache(ew.c4.CCS_CREDENTIAL,JSON.stringify(em),!0)}},BrowserCacheManager.prototype.resetRequestCache=function(et){var eo=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),eU.x.isEmpty(et)||this.getKeys().forEach(function(ei){-1!==ei.indexOf(et)&&eo.removeItem(ei)}),et&&(this.removeItem(this.generateStateKey(et)),this.removeItem(this.generateNonceKey(et)),this.removeItem(this.generateAuthorityKey(et))),this.removeItem(this.generateCacheKey(ew.c4.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ew.c4.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ew.c4.URL_HASH)),this.removeItem(this.generateCacheKey(ew.c4.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ew.c4.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ew.c4.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},BrowserCacheManager.prototype.cleanRequestByState=function(et){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),et){var eo=this.generateStateKey(et),ei=this.temporaryCacheStorage.getItem(eo);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+ei),this.resetRequestCache(ei||e_.gT.EMPTY_STRING)}this.clearMsalCookies()},BrowserCacheManager.prototype.cleanRequestByInteractionType=function(et){var eo=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(ei){if(-1!==ei.indexOf(ew.c4.REQUEST_STATE)){var ea=eo.temporaryCacheStorage.getItem(ei);if(ea){var eu=tR.extractBrowserRequestState(eo.cryptoImpl,ea);eu&&eu.interactionType===et&&(eo.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+ea),eo.resetRequestCache(ea))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},BrowserCacheManager.prototype.cacheCodeRequest=function(et,eo){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var ei=eo.base64Encode(JSON.stringify(et));this.setTemporaryCache(ew.c4.REQUEST_PARAMS,ei,!0)},BrowserCacheManager.prototype.getCachedRequest=function(et,eo){this.logger.trace("BrowserCacheManager.getCachedRequest called");var ei=this.getTemporaryCache(ew.c4.REQUEST_PARAMS,!0);if(!ei)throw eN.createNoTokenRequestCacheError();var ea=this.validateAndParseJson(eo.base64Decode(ei));if(!ea)throw eN.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ew.c4.REQUEST_PARAMS)),eU.x.isEmpty(ea.authority)){var eu=this.generateAuthorityKey(et),ed=this.getTemporaryCache(eu);if(!ed)throw eN.createNoCachedAuthorityError();ea.authority=ed}return ea},BrowserCacheManager.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var et=this.getTemporaryCache(ew.c4.NATIVE_REQUEST,!0);return et?this.validateAndParseJson(et)||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null):(this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null)},BrowserCacheManager.prototype.isInteractionInProgress=function(et){var eo=this.getInteractionInProgress();return et?eo===this.clientId:!!eo},BrowserCacheManager.prototype.getInteractionInProgress=function(){var et=e_.gT.CACHE_PREFIX+"."+ew.c4.INTERACTION_STATUS_KEY;return this.getTemporaryCache(et,!1)},BrowserCacheManager.prototype.setInteractionInProgress=function(et){var eo=e_.gT.CACHE_PREFIX+"."+ew.c4.INTERACTION_STATUS_KEY;if(et){if(this.getInteractionInProgress())throw eN.createInteractionInProgressError();this.setTemporaryCache(eo,this.clientId,!1)}else et||this.getInteractionInProgress()!==this.clientId||this.removeItem(eo)},BrowserCacheManager.prototype.getLegacyLoginHint=function(){var et=this.getTemporaryCache(e_.Vi.ADAL_ID_TOKEN);et&&(this.browserStorage.removeItem(e_.Vi.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var eo=this.getTemporaryCache(e_.Vi.ID_TOKEN,!0);eo&&(this.removeItem(this.generateCacheKey(e_.Vi.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var ei=eo||et;if(ei){var ea=new tu(ei,this.cryptoImpl);if(ea.claims&&ea.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"),ea.claims.preferred_username;if(ea.claims&&ea.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),ea.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},BrowserCacheManager.prototype.updateCredentialCacheKey=function(et,eo){var ei=eo.generateCredentialKey();if(et!==ei){var ea=this.getItem(et);if(ea)return this.removeItem(et),this.setItem(ei,ea),this.logger.verbose("Updated an outdated "+eo.credentialType+" cache key"),ei;this.logger.error("Attempted to update an outdated "+eo.credentialType+" cache key but no item matching the outdated key was found in storage")}return et},BrowserCacheManager}(td),DEFAULT_BROWSER_CACHE_MANAGER=function(et,eo){var ei={cacheLocation:ew.Ix.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new tT(et,ei,e4,eo)};!function(et){et.AAD="AAD",et.OIDC="OIDC"}(em||(em={})),function(et){et[et.None=0]="None",et.AzurePublic="https://login.microsoftonline.com",et.AzurePpe="https://login.windows-ppe.net",et.AzureChina="https://login.chinacloudapi.cn",et.AzureGermany="https://login.microsoftonline.de",et.AzureUsGovernment="https://login.microsoftonline.us"}(eg||(eg={}));/*! @azure/msal-common v7.4.1 2022-09-12 */var tE="@azure/msal-common",tP="7.4.1",tk={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1,proxyUrl:e_.gT.EMPTY_STRING},tO={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:eZ.i.Info,correlationId:e_.gT.EMPTY_STRING},tx={sendGetRequestAsync:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Network interface - sendGetRequestAsync() has not been implemented",eI.l.createUnexpectedError(et)})})},sendPostRequestAsync:function(){return(0,eA.mG)(this,void 0,void 0,function(){var et;return(0,eA.Jh)(this,function(eo){throw et="Network interface - sendPostRequestAsync() has not been implemented",eI.l.createUnexpectedError(et)})})}},tM={sku:e_.gT.SKU,version:tP,cpu:e_.gT.EMPTY_STRING,os:e_.gT.EMPTY_STRING},tD={clientSecret:e_.gT.EMPTY_STRING,clientAssertion:void 0},tU={azureCloudInstance:eg.None,tenant:""+e_.gT.DEFAULT_COMMON_TENANT},tL={application:{appName:"",appVersion:""}};function buildClientConfiguration(et){var eo=et.authOptions,ei=et.systemOptions,ea=et.loggerOptions,eu=et.storageInterface,ed=et.networkInterface,eh=et.cryptoInterface,ep=et.clientCredentials,ef=et.libraryInfo,em=et.telemetry,eg=et.serverTelemetryManager,ey=et.persistencePlugin,eC=et.serializableCache,eS=(0,eA.pi)((0,eA.pi)({},tO),ea);return{authOptions:buildAuthOptions(eo),systemOptions:(0,eA.pi)((0,eA.pi)({},tk),ei),loggerOptions:eS,storageInterface:eu||new tp(eo.clientId,e4),networkInterface:ed||tx,cryptoInterface:eh||e4,clientCredentials:ep||tD,libraryInfo:(0,eA.pi)((0,eA.pi)({},tM),ef),telemetry:(0,eA.pi)((0,eA.pi)({},tL),em),serverTelemetryManager:eg||null,persistencePlugin:ey||null,serializableCache:eC||null}}function buildAuthOptions(et){return(0,eA.pi)({clientCapabilities:[],azureCloudOptions:tU,skipAuthorityMetadataCache:!1},et)}/*! @azure/msal-common v7.4.1 2022-09-12 */var tN={sendGetRequestAsync:function(){var et="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(eI.l.createUnexpectedError(et))},sendPostRequestAsync:function(){var et="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(eI.l.createUnexpectedError(et))}},tq=function(){function FetchClient(){}return FetchClient.prototype.sendGetRequestAsync=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,eu;return(0,eS.Jh)(this,function(ed){switch(ed.label){case 0:return ed.trys.push([0,2,,3]),[4,fetch(et,{method:ew.EC.GET,headers:this.getFetchHeaders(eo)})];case 1:return ei=ed.sent(),[3,3];case 2:if(ea=ed.sent(),window.navigator.onLine)throw eN.createGetRequestFailedError(ea,et);throw eN.createNoNetworkConnectivityError();case 3:return ed.trys.push([3,5,,6]),eu={headers:this.getHeaderDict(ei.headers)},[4,ei.json()];case 4:return[2,(eu.body=ed.sent(),eu.status=ei.status,eu)];case 5:throw ed.sent(),eN.createFailedToParseNetworkResponseError(et);case 6:return[2]}})})},FetchClient.prototype.sendPostRequestAsync=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,eu,ed;return(0,eS.Jh)(this,function(eh){switch(eh.label){case 0:ei=eo&&eo.body||e_.gT.EMPTY_STRING,eh.label=1;case 1:return eh.trys.push([1,3,,4]),[4,fetch(et,{method:ew.EC.POST,headers:this.getFetchHeaders(eo),body:ei})];case 2:return ea=eh.sent(),[3,4];case 3:if(eu=eh.sent(),window.navigator.onLine)throw eN.createPostRequestFailedError(eu,et);throw eN.createNoNetworkConnectivityError();case 4:return eh.trys.push([4,6,,7]),ed={headers:this.getHeaderDict(ea.headers)},[4,ea.json()];case 5:return[2,(ed.body=eh.sent(),ed.status=ea.status,ed)];case 6:throw eh.sent(),eN.createFailedToParseNetworkResponseError(et);case 7:return[2]}})})},FetchClient.prototype.getFetchHeaders=function(et){var eo=new Headers;if(!(et&&et.headers))return eo;var ei=et.headers;return Object.keys(ei).forEach(function(et){eo.append(et,ei[et])}),eo},FetchClient.prototype.getHeaderDict=function(et){var eo={};return et.forEach(function(et,ei){eo[ei]=et}),eo},FetchClient}(),tB=function(){function XhrClient(){}return XhrClient.prototype.sendGetRequestAsync=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(ei){return[2,this.sendRequestAsync(et,ew.EC.GET,eo)]})})},XhrClient.prototype.sendPostRequestAsync=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(ei){return[2,this.sendRequestAsync(et,ew.EC.POST,eo)]})})},XhrClient.prototype.sendRequestAsync=function(et,eo,ei){var ea=this;return new Promise(function(eu,ed){var eh=new XMLHttpRequest;if(eh.open(eo,et,!0),ea.setXhrHeaders(eh,ei),eh.onload=function(){(eh.status<200||eh.status>=300)&&(eo===ew.EC.POST?ed(eN.createPostRequestFailedError("Failed with status "+eh.status,et)):ed(eN.createGetRequestFailedError("Failed with status "+eh.status,et)));try{var ei=JSON.parse(eh.responseText),ep={headers:ea.getHeaderDict(eh),body:ei,status:eh.status};eu(ep)}catch(eo){ed(eN.createFailedToParseNetworkResponseError(et))}},eh.onerror=function(){window.navigator.onLine?eo===ew.EC.POST?ed(eN.createPostRequestFailedError("Failed with status "+eh.status,et)):ed(eN.createGetRequestFailedError("Failed with status "+eh.status,et)):ed(eN.createNoNetworkConnectivityError())},eo===ew.EC.POST&&ei&&ei.body)eh.send(ei.body);else if(eo===ew.EC.GET)eh.send();else throw eN.createHttpMethodNotImplementedError(eo)})},XhrClient.prototype.setXhrHeaders=function(et,eo){if(eo&&eo.headers){var ei=eo.headers;Object.keys(ei).forEach(function(eo){et.setRequestHeader(eo,ei[eo])})}},XhrClient.prototype.getHeaderDict=function(et){var eo=et.getAllResponseHeaders().trim().split(/[\r\n]+/),ei={};return eo.forEach(function(et){var eo=et.split(": "),ea=eo.shift(),eu=eo.join(": ");ea&&eu&&(ei[ea]=eu)}),ei},XhrClient}(),tF=function(){function BrowserUtils(){}return BrowserUtils.clearHash=function(et){et.location.hash=e_.gT.EMPTY_STRING,"function"==typeof et.history.replaceState&&et.history.replaceState(null,e_.gT.EMPTY_STRING,""+et.location.origin+et.location.pathname+et.location.search)},BrowserUtils.replaceHash=function(et){var eo=et.split("#");eo.shift(),window.location.hash=eo.length>0?eo.join("#"):e_.gT.EMPTY_STRING},BrowserUtils.isInIframe=function(){return window.parent!==window},BrowserUtils.isInPopup=function(){return"undefined"!=typeof window&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(ew.qx.POPUP_NAME_PREFIX+".")},BrowserUtils.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},BrowserUtils.getHomepage=function(){var et=new tI(window.location.href).getUrlComponents();return et.Protocol+"//"+et.HostNameAndPort+"/"},BrowserUtils.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new tq:new tB},BrowserUtils.blockReloadInHiddenIframes=function(){if(tI.hashContainsKnownProperties(window.location.hash)&&BrowserUtils.isInIframe())throw eN.createBlockReloadInHiddenIframeError()},BrowserUtils.blockRedirectInIframe=function(et,eo){var ei=BrowserUtils.isInIframe();if(et===ew.s_.Redirect&&ei&&!eo)throw eN.createRedirectInIframeError(ei)},BrowserUtils.blockAcquireTokenInPopups=function(){if(BrowserUtils.isInPopup())throw eN.createBlockAcquireTokenInPopupsError()},BrowserUtils.blockNonBrowserEnvironment=function(et){if(!et)throw eN.createNonBrowserEnvironmentError()},BrowserUtils.blockNativeBrokerCalledBeforeInitialized=function(et,eo){if(et&&!eo)throw eN.createNativeBrokerCalledBeforeInitialize()},BrowserUtils.detectIEOrEdge=function(){var et=window.navigator.userAgent,eo=et.indexOf("MSIE "),ei=et.indexOf("Trident/"),ea=et.indexOf("Edge/")>0;return eo>0||ei>0||ea},BrowserUtils}(),tj=function(){function NavigationClient(){}return NavigationClient.prototype.navigateInternal=function(et,eo){return NavigationClient.defaultNavigateWindow(et,eo)},NavigationClient.prototype.navigateExternal=function(et,eo){return NavigationClient.defaultNavigateWindow(et,eo)},NavigationClient.defaultNavigateWindow=function(et,eo){return eo.noHistory?window.location.replace(et):window.location.assign(et),new Promise(function(et){setTimeout(function(){et(!0)},eo.timeout)})},NavigationClient}(),tG=6e4,tH=6e3,tK=3e4,tz=2e3;function buildConfiguration(et,eo){var ei=et.auth,ea=et.cache,eu=et.system,ed=et.telemetry,eh={clientId:e_.gT.EMPTY_STRING,authority:""+e_.gT.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:e_.gT.EMPTY_STRING,authorityMetadata:e_.gT.EMPTY_STRING,redirectUri:e_.gT.EMPTY_STRING,postLogoutRedirectUri:e_.gT.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:em.AAD,azureCloudOptions:{azureCloudInstance:eg.None,tenant:e_.gT.EMPTY_STRING},skipAuthorityMetadataCache:!1},ep={cacheLocation:ew.Ix.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},ef={loggerCallback:function(){},logLevel:eZ.i.Info,piiLoggingEnabled:!1},ey=(0,eS.pi)((0,eS.pi)({},tk),{loggerOptions:ef,networkClient:eo?tF.getBrowserNetworkClient():tN,navigationClient:new tj,loadFrameTimeout:0,windowHashTimeout:(null==eu?void 0:eu.loadFrameTimeout)||tG,iframeHashTimeout:(null==eu?void 0:eu.loadFrameTimeout)||tH,navigateFrameWait:eo&&tF.detectIEOrEdge()?500:0,redirectNavigationTimeout:tK,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null==eu?void 0:eu.nativeBrokerHandshakeTimeout)||tz}),eC={application:{appName:e_.gT.EMPTY_STRING,appVersion:e_.gT.EMPTY_STRING}};return{auth:(0,eS.pi)((0,eS.pi)({},eh),ei),cache:(0,eS.pi)((0,eS.pi)({},ep),ea),system:(0,eS.pi)((0,eS.pi)({},ey),eu),telemetry:(0,eS.pi)((0,eS.pi)({},eC),ed)}}/*! @azure/msal-browser v2.28.3 2022-09-12 */var tW="@azure/msal-browser",tV="2.28.3",tJ=ei(60539),tY=function(){function EventHandler(et,eo){this.eventCallbacks=new Map,this.logger=et,this.browserCrypto=eo,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return EventHandler.prototype.addEventCallback=function(et){if("undefined"!=typeof window){var eo=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(eo,et),this.logger.verbose("Event callback registered with id: "+eo),eo}return null},EventHandler.prototype.removeEventCallback=function(et){this.eventCallbacks.delete(et),this.logger.verbose("Event callback "+et+" removed.")},EventHandler.prototype.enableAccountStorageEvents=function(){"undefined"!=typeof window&&(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)))},EventHandler.prototype.disableAccountStorageEvents=function(){"undefined"!=typeof window&&(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."))},EventHandler.prototype.emitEvent=function(et,eo,ei,ea){var eu=this;if("undefined"!=typeof window){var ed={eventType:et,interactionType:eo||null,payload:ei||null,error:ea||null,timestamp:Date.now()};this.logger.info("Emitting event: "+et),this.eventCallbacks.forEach(function(eo,ei){eu.logger.verbose("Emitting event to callback "+ei+": "+et),eo.apply(null,[ed])})}},EventHandler.prototype.handleAccountCacheChange=function(et){try{var eo=et.newValue||et.oldValue;if(!eo)return;var ei=JSON.parse(eo);if("object"!=typeof ei||!tn.isAccountEntity(ei))return;var ea=td.toObject(new tn,ei).getAccountInfo();!et.oldValue&&et.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(tJ.t.ACCOUNT_ADDED,void 0,ea)):!et.newValue&&et.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(tJ.t.ACCOUNT_REMOVED,void 0,ea))}catch(et){return}},EventHandler}(),t$=function(){function ThrottlingUtils(){}return ThrottlingUtils.generateThrottlingStorageKey=function(et){return e_.bb.THROTTLING_PREFIX+"."+JSON.stringify(et)},ThrottlingUtils.preProcess=function(et,eo){var ei,ea=ThrottlingUtils.generateThrottlingStorageKey(eo),eu=et.getThrottlingCache(ea);if(eu){if(eu.throttleTime<Date.now()){et.removeItem(ea,e_.Xj.THROTTLING);return}throw new e9((null===(ei=eu.errorCodes)||void 0===ei?void 0:ei.join(" "))||e_.gT.EMPTY_STRING,eu.errorMessage,eu.subError)}},ThrottlingUtils.postProcess=function(et,eo,ei){if(ThrottlingUtils.checkResponseStatus(ei)||ThrottlingUtils.checkResponseForRetryAfter(ei)){var ea={throttleTime:ThrottlingUtils.calculateThrottleTime(parseInt(ei.headers[e_.SZ.RETRY_AFTER])),error:ei.body.error,errorCodes:ei.body.error_codes,errorMessage:ei.body.error_description,subError:ei.body.suberror};et.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(eo),ea)}},ThrottlingUtils.checkResponseStatus=function(et){return 429===et.status||et.status>=500&&et.status<600},ThrottlingUtils.checkResponseForRetryAfter=function(et){return!!et.headers&&et.headers.hasOwnProperty(e_.SZ.RETRY_AFTER)&&(et.status<200||et.status>=300)},ThrottlingUtils.calculateThrottleTime=function(et){var eo=et<=0?0:et,ei=Date.now()/1e3;return Math.floor(1e3*Math.min(ei+(eo||e_.bb.DEFAULT_THROTTLE_TIME_SECONDS),ei+e_.bb.DEFAULT_MAX_THROTTLE_TIME_SECONDS))},ThrottlingUtils.removeThrottle=function(et,eo,ei,ea){var eu={clientId:eo,authority:ei.authority,scopes:ei.scopes,homeAccountIdentifier:ea,claims:ei.claims,authenticationScheme:ei.authenticationScheme,resourceRequestMethod:ei.resourceRequestMethod,resourceRequestUri:ei.resourceRequestUri,shrClaims:ei.shrClaims,sshKid:ei.sshKid},ed=this.generateThrottlingStorageKey(eu);return et.removeItem(ed,e_.Xj.THROTTLING)},ThrottlingUtils}(),tZ=function(){function NetworkManager(et,eo){this.networkClient=et,this.cacheManager=eo}return NetworkManager.prototype.sendPostRequest=function(et,eo,ei){return(0,eA.mG)(this,void 0,void 0,function(){var ea,eu;return(0,eA.Jh)(this,function(ed){switch(ed.label){case 0:t$.preProcess(this.cacheManager,et),ed.label=1;case 1:return ed.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(eo,ei)];case 2:return ea=ed.sent(),[3,4];case 3:if((eu=ed.sent())instanceof eI.l)throw eu;throw tr.e.createNetworkError(eo,eu);case 4:return t$.postProcess(this.cacheManager,et,ea),[2,ea]}})})},NetworkManager}(),tQ=function(){function BaseClient(et,eo){this.config=buildClientConfiguration(et),this.logger=new eZ.Y(this.config.loggerOptions,tE,tP),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new tZ(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=eo}return BaseClient.prototype.createTokenRequestHeaders=function(et){var eo={};if(eo[e_.SZ.CONTENT_TYPE]=e_.gT.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&et)switch(et.type){case ef.HOME_ACCOUNT_ID:try{var ei=buildClientInfoFromHomeAccountId(et.credential);eo[e_.SZ.CCS_HEADER]="Oid:"+ei.uid+"@"+ei.utid}catch(et){this.logger.verbose("Could not parse home account ID for CCS Header: "+et)}break;case ef.UPN:eo[e_.SZ.CCS_HEADER]="UPN: "+et.credential}return eo},BaseClient.prototype.executePostToTokenEndpoint=function(et,eo,ei,ea){return(0,eA.mG)(this,void 0,void 0,function(){var eu;return(0,eA.Jh)(this,function(ed){switch(ed.label){case 0:return[4,this.networkManager.sendPostRequest(ea,et,{body:eo,headers:ei,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return eu=ed.sent(),this.config.serverTelemetryManager&&eu.status<500&&429!==eu.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,eu]}})})},BaseClient.prototype.updateAuthority=function(et){if(!et.discoveryComplete())throw tr.e.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=et},BaseClient}(),tX=function(){function RequestValidator(){}return RequestValidator.validateRedirectUri=function(et){if(eU.x.isEmpty(et))throw ts.createRedirectUriEmptyError()},RequestValidator.validatePrompt=function(et){var eo=[];for(var ei in e_.NJ)eo.push(e_.NJ[ei]);if(0>eo.indexOf(et))throw ts.createInvalidPromptError(et)},RequestValidator.validateClaims=function(et){try{JSON.parse(et)}catch(et){throw ts.createInvalidClaimsRequestError()}},RequestValidator.validateCodeChallengeParams=function(et,eo){if(eU.x.isEmpty(et)||eU.x.isEmpty(eo))throw ts.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(eo)},RequestValidator.validateCodeChallengeMethod=function(et){if(0>[e_.VX.PLAIN,e_.VX.S256].indexOf(et))throw ts.createInvalidCodeChallengeMethodError()},RequestValidator.sanitizeEQParams=function(et,eo){return et?(eo.forEach(function(eo,ei){et[ei]&&delete et[ei]}),et):{}},RequestValidator}(),t0=function(){function RequestParameterBuilder(){this.parameters=new Map}return RequestParameterBuilder.prototype.addResponseTypeCode=function(){this.parameters.set(e_.Fo.RESPONSE_TYPE,encodeURIComponent(e_.gT.CODE_RESPONSE_TYPE))},RequestParameterBuilder.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(e_.Fo.RESPONSE_TYPE,encodeURIComponent(e_.gT.TOKEN_RESPONSE_TYPE+" "+e_.gT.ID_TOKEN_RESPONSE_TYPE))},RequestParameterBuilder.prototype.addResponseMode=function(et){this.parameters.set(e_.Fo.RESPONSE_MODE,encodeURIComponent(et||e_.vw.QUERY))},RequestParameterBuilder.prototype.addNativeBroker=function(){this.parameters.set(e_.Fo.NATIVE_BROKER,encodeURIComponent("1"))},RequestParameterBuilder.prototype.addScopes=function(et,eo){void 0===eo&&(eo=!0);var ei=eo?(0,eA.pr)(et||[],e_.f_):et||[],ea=new tc(ei);this.parameters.set(e_.Fo.SCOPE,encodeURIComponent(ea.printScopes()))},RequestParameterBuilder.prototype.addClientId=function(et){this.parameters.set(e_.Fo.CLIENT_ID,encodeURIComponent(et))},RequestParameterBuilder.prototype.addRedirectUri=function(et){tX.validateRedirectUri(et),this.parameters.set(e_.Fo.REDIRECT_URI,encodeURIComponent(et))},RequestParameterBuilder.prototype.addPostLogoutRedirectUri=function(et){tX.validateRedirectUri(et),this.parameters.set(e_.Fo.POST_LOGOUT_URI,encodeURIComponent(et))},RequestParameterBuilder.prototype.addIdTokenHint=function(et){this.parameters.set(e_.Fo.ID_TOKEN_HINT,encodeURIComponent(et))},RequestParameterBuilder.prototype.addDomainHint=function(et){this.parameters.set(e_.VO.DOMAIN_HINT,encodeURIComponent(et))},RequestParameterBuilder.prototype.addLoginHint=function(et){this.parameters.set(e_.VO.LOGIN_HINT,encodeURIComponent(et))},RequestParameterBuilder.prototype.addCcsUpn=function(et){this.parameters.set(e_.SZ.CCS_HEADER,encodeURIComponent("UPN:"+et))},RequestParameterBuilder.prototype.addCcsOid=function(et){this.parameters.set(e_.SZ.CCS_HEADER,encodeURIComponent("Oid:"+et.uid+"@"+et.utid))},RequestParameterBuilder.prototype.addSid=function(et){this.parameters.set(e_.VO.SID,encodeURIComponent(et))},RequestParameterBuilder.prototype.addClaims=function(et,eo){var ei=this.addClientCapabilitiesToClaims(et,eo);tX.validateClaims(ei),this.parameters.set(e_.Fo.CLAIMS,encodeURIComponent(ei))},RequestParameterBuilder.prototype.addCorrelationId=function(et){this.parameters.set(e_.Fo.CLIENT_REQUEST_ID,encodeURIComponent(et))},RequestParameterBuilder.prototype.addLibraryInfo=function(et){this.parameters.set(e_.Fo.X_CLIENT_SKU,et.sku),this.parameters.set(e_.Fo.X_CLIENT_VER,et.version),et.os&&this.parameters.set(e_.Fo.X_CLIENT_OS,et.os),et.cpu&&this.parameters.set(e_.Fo.X_CLIENT_CPU,et.cpu)},RequestParameterBuilder.prototype.addApplicationTelemetry=function(et){(null==et?void 0:et.appName)&&this.parameters.set(e_.Fo.X_APP_NAME,et.appName),(null==et?void 0:et.appVersion)&&this.parameters.set(e_.Fo.X_APP_VER,et.appVersion)},RequestParameterBuilder.prototype.addPrompt=function(et){tX.validatePrompt(et),this.parameters.set(""+e_.Fo.PROMPT,encodeURIComponent(et))},RequestParameterBuilder.prototype.addState=function(et){eU.x.isEmpty(et)||this.parameters.set(e_.Fo.STATE,encodeURIComponent(et))},RequestParameterBuilder.prototype.addNonce=function(et){this.parameters.set(e_.Fo.NONCE,encodeURIComponent(et))},RequestParameterBuilder.prototype.addCodeChallengeParams=function(et,eo){if(tX.validateCodeChallengeParams(et,eo),et&&eo)this.parameters.set(e_.Fo.CODE_CHALLENGE,encodeURIComponent(et)),this.parameters.set(e_.Fo.CODE_CHALLENGE_METHOD,encodeURIComponent(eo));else throw ts.createInvalidCodeChallengeParamsError()},RequestParameterBuilder.prototype.addAuthorizationCode=function(et){this.parameters.set(e_.Fo.CODE,encodeURIComponent(et))},RequestParameterBuilder.prototype.addDeviceCode=function(et){this.parameters.set(e_.Fo.DEVICE_CODE,encodeURIComponent(et))},RequestParameterBuilder.prototype.addRefreshToken=function(et){this.parameters.set(e_.Fo.REFRESH_TOKEN,encodeURIComponent(et))},RequestParameterBuilder.prototype.addCodeVerifier=function(et){this.parameters.set(e_.Fo.CODE_VERIFIER,encodeURIComponent(et))},RequestParameterBuilder.prototype.addClientSecret=function(et){this.parameters.set(e_.Fo.CLIENT_SECRET,encodeURIComponent(et))},RequestParameterBuilder.prototype.addClientAssertion=function(et){eU.x.isEmpty(et)||this.parameters.set(e_.Fo.CLIENT_ASSERTION,encodeURIComponent(et))},RequestParameterBuilder.prototype.addClientAssertionType=function(et){eU.x.isEmpty(et)||this.parameters.set(e_.Fo.CLIENT_ASSERTION_TYPE,encodeURIComponent(et))},RequestParameterBuilder.prototype.addOboAssertion=function(et){this.parameters.set(e_.Fo.OBO_ASSERTION,encodeURIComponent(et))},RequestParameterBuilder.prototype.addRequestTokenUse=function(et){this.parameters.set(e_.Fo.REQUESTED_TOKEN_USE,encodeURIComponent(et))},RequestParameterBuilder.prototype.addGrantType=function(et){this.parameters.set(e_.Fo.GRANT_TYPE,encodeURIComponent(et))},RequestParameterBuilder.prototype.addClientInfo=function(){this.parameters.set(e_.sR,"1")},RequestParameterBuilder.prototype.addExtraQueryParameters=function(et){var eo=this;tX.sanitizeEQParams(et,this.parameters),Object.keys(et).forEach(function(ei){eo.parameters.set(ei,et[ei])})},RequestParameterBuilder.prototype.addClientCapabilitiesToClaims=function(et,eo){var ei;if(et)try{ei=JSON.parse(et)}catch(et){throw ts.createInvalidClaimsRequestError()}else ei={};return eo&&eo.length>0&&(ei.hasOwnProperty(e_.As.ACCESS_TOKEN)||(ei[e_.As.ACCESS_TOKEN]={}),ei[e_.As.ACCESS_TOKEN][e_.As.XMS_CC]={values:eo}),JSON.stringify(ei)},RequestParameterBuilder.prototype.addUsername=function(et){this.parameters.set(e_.Ge.username,encodeURIComponent(et))},RequestParameterBuilder.prototype.addPassword=function(et){this.parameters.set(e_.Ge.password,encodeURIComponent(et))},RequestParameterBuilder.prototype.addPopToken=function(et){eU.x.isEmpty(et)||(this.parameters.set(e_.Fo.TOKEN_TYPE,e_.hO.POP),this.parameters.set(e_.Fo.REQ_CNF,encodeURIComponent(et)))},RequestParameterBuilder.prototype.addSshJwk=function(et){eU.x.isEmpty(et)||(this.parameters.set(e_.Fo.TOKEN_TYPE,e_.hO.SSH),this.parameters.set(e_.Fo.REQ_CNF,encodeURIComponent(et)))},RequestParameterBuilder.prototype.addServerTelemetry=function(et){this.parameters.set(e_.Fo.X_CLIENT_CURR_TELEM,et.generateCurrentRequestHeaderValue()),this.parameters.set(e_.Fo.X_CLIENT_LAST_TELEM,et.generateLastRequestHeaderValue())},RequestParameterBuilder.prototype.addThrottling=function(){this.parameters.set(e_.Fo.X_MS_LIB_CAPABILITY,e_.bb.X_MS_LIB_CAPABILITY_VALUE)},RequestParameterBuilder.prototype.addLogoutHint=function(et){this.parameters.set(e_.Fo.LOGOUT_HINT,encodeURIComponent(et))},RequestParameterBuilder.prototype.createQueryString=function(){var et=[];return this.parameters.forEach(function(eo,ei){et.push(ei+"="+eo)}),et.join("&")},RequestParameterBuilder}(),t1=function(){return function(et,eo,ei,ea,eu){this.account=et||null,this.idToken=eo||null,this.accessToken=ei||null,this.refreshToken=ea||null,this.appMetadata=eu||null}}();!function(et){et.SW="sw",et.UHW="uhw"}(ey||(ey={}));var t2=function(){function PopTokenGenerator(et){this.cryptoUtils=et}return PopTokenGenerator.prototype.generateCnf=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei,ea;return(0,eA.Jh)(this,function(eu){switch(eu.label){case 0:return[4,this.generateKid(et)];case 1:return eo=eu.sent(),ei=this.cryptoUtils.base64Encode(JSON.stringify(eo)),ea={kid:eo.kid,reqCnfString:ei},[4,this.cryptoUtils.hashString(ei)];case 2:return[2,(ea.reqCnfHash=eu.sent(),ea)]}})})},PopTokenGenerator.prototype.generateKid=function(et){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(eo){switch(eo.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(et)];case 1:return[2,{kid:eo.sent(),xms_ksl:ey.SW}]}})})},PopTokenGenerator.prototype.signPopToken=function(et,eo,ei){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(ea){return[2,this.signPayload(et,eo,ei)]})})},PopTokenGenerator.prototype.signPayload=function(et,eo,ei,ea){return(0,eA.mG)(this,void 0,void 0,function(){var eu,ed,eh,ep,ef,em;return(0,eA.Jh)(this,function(eg){switch(eg.label){case 0:return eu=ei.resourceRequestMethod,ed=ei.resourceRequestUri,eh=ei.shrClaims,ep=ei.shrNonce,em=null==(ef=ed?new tI(ed):void 0)?void 0:ef.getUrlComponents(),[4,this.cryptoUtils.signJwt((0,eA.pi)({at:et,ts:tm.nowSeconds(),m:null==eu?void 0:eu.toUpperCase(),u:null==em?void 0:em.HostNameAndPort,nonce:ep||this.cryptoUtils.createNewGuid(),p:null==em?void 0:em.AbsolutePath,q:(null==em?void 0:em.QueryString)?[[],em.QueryString]:void 0,client_claims:eh||void 0},ea),eo,ei.correlationId)];case 1:return[2,eg.sent()]}})})},PopTokenGenerator}(),t4=function(){function TokenCacheContext(et,eo){this.cache=et,this.hasChanged=eo}return Object.defineProperty(TokenCacheContext.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(TokenCacheContext.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),TokenCacheContext}(),t3=function(){function ResponseHandler(et,eo,ei,ea,eu,ed){this.clientId=et,this.cacheStorage=eo,this.cryptoObj=ei,this.logger=ea,this.serializableCache=eu,this.persistencePlugin=ed}return ResponseHandler.prototype.validateServerAuthorizationCodeResponse=function(et,eo,ei){if(!et.state||!eo)throw et.state?tr.e.createStateNotFoundError("Cached State"):tr.e.createStateNotFoundError("Server State");if(decodeURIComponent(et.state)!==decodeURIComponent(eo))throw tr.e.createStateMismatchError();if(et.error||et.error_description||et.suberror){if(e7.isInteractionRequiredError(et.error,et.error_description,et.suberror))throw new e7(et.error||e_.gT.EMPTY_STRING,et.error_description,et.suberror);throw new e9(et.error||e_.gT.EMPTY_STRING,et.error_description,et.suberror)}et.client_info&&buildClientInfo(et.client_info,ei)},ResponseHandler.prototype.validateTokenResponse=function(et){if(et.error||et.error_description||et.suberror){if(e7.isInteractionRequiredError(et.error,et.error_description,et.suberror))throw new e7(et.error,et.error_description,et.suberror);var eo=et.error_codes+" - ["+et.timestamp+"]: "+et.error_description+" - Correlation ID: "+et.correlation_id+" - Trace ID: "+et.trace_id;throw new e9(et.error,eo,et.suberror)}},ResponseHandler.prototype.handleServerTokenResponse=function(et,eo,ei,ea,eu,ed,eh,ep){return(0,eA.mG)(this,void 0,void 0,function(){var ef,em,eg,ey,eC;return(0,eA.Jh)(this,function(eS){switch(eS.label){case 0:if(et.id_token&&(ef=new tu(et.id_token||e_.gT.EMPTY_STRING,this.cryptoObj),eu&&!eU.x.isEmpty(eu.nonce)&&ef.claims.nonce!==eu.nonce))throw tr.e.createNonceMismatchError();this.homeAccountIdentifier=tn.generateHomeAccountId(et.client_info||e_.gT.EMPTY_STRING,eo.authorityType,this.logger,this.cryptoObj,ef),eu&&eu.state&&(em=t_.parseRequestState(this.cryptoObj,eu.state)),et.key_id=et.key_id||ea.sshKid||void 0,eg=this.generateCacheRecord(et,eo,ei,ea,ef,ed,eu),eS.label=1;case 1:if(eS.trys.push([1,,5,8]),!(this.persistencePlugin&&this.serializableCache))return[3,3];return this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),ey=new t4(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(ey)];case 2:eS.sent(),eS.label=3;case 3:if(eh&&!ep&&eg.account&&(eC=eg.account.generateAccountKey(),!this.cacheStorage.getAccount(eC)))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,ResponseHandler.generateAuthenticationResult(this.cryptoObj,eo,eg,!1,ea,ef,em,void 0)];return[4,this.cacheStorage.saveCacheRecord(eg)];case 4:return eS.sent(),[3,8];case 5:if(!(this.persistencePlugin&&this.serializableCache&&ey))return[3,7];return this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(ey)];case 6:eS.sent(),eS.label=7;case 7:return[7];case 8:return[2,ResponseHandler.generateAuthenticationResult(this.cryptoObj,eo,eg,!1,ea,ef,em,et.spa_code)]}})})},ResponseHandler.prototype.generateCacheRecord=function(et,eo,ei,ea,eu,ed,eh){var ep,ef,em=eo.getPreferredCache();if(eU.x.isEmpty(em))throw tr.e.createInvalidCacheEnvironmentError();!eU.x.isEmpty(et.id_token)&&eu&&(ep=tf.createIdTokenEntity(this.homeAccountIdentifier,em,et.id_token||e_.gT.EMPTY_STRING,this.clientId,eu.claims.tid||e_.gT.EMPTY_STRING),ef=this.generateAccountEntity(et,eu,eo,eh));var eg=null;if(!eU.x.isEmpty(et.access_token)){var ey=et.scope?tc.fromString(et.scope):new tc(ea.scopes||[]),eC=("string"==typeof et.expires_in?parseInt(et.expires_in,10):et.expires_in)||0,eS=("string"==typeof et.ext_expires_in?parseInt(et.ext_expires_in,10):et.ext_expires_in)||0,ew=("string"==typeof et.refresh_in?parseInt(et.refresh_in,10):et.refresh_in)||void 0,eA=ei+eC,eI=eA+eS,eR=ew&&ew>0?ei+ew:void 0;eg=tg.createAccessTokenEntity(this.homeAccountIdentifier,em,et.access_token||e_.gT.EMPTY_STRING,this.clientId,eu?eu.claims.tid||e_.gT.EMPTY_STRING:eo.tenant,ey.printScopes(),eA,eI,this.cryptoObj,eR,et.token_type,ed,et.key_id,ea.claims,ea.requestedClaimsHash)}var eT=null;eU.x.isEmpty(et.refresh_token)||(eT=ty.createRefreshTokenEntity(this.homeAccountIdentifier,em,et.refresh_token||e_.gT.EMPTY_STRING,this.clientId,et.foci,ed));var eE=null;return eU.x.isEmpty(et.foci)||(eE=tv.createAppMetadataEntity(this.clientId,em,et.foci)),new t1(ef,ep,eg,eT,eE)},ResponseHandler.prototype.generateAccountEntity=function(et,eo,ei,ea){var eu=ei.authorityType,ed=ea?ea.cloud_graph_host_name:e_.gT.EMPTY_STRING,eh=ea?ea.msgraph_host:e_.gT.EMPTY_STRING;if(eu===ep.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),tn.createGenericAccount(this.homeAccountIdentifier,eo,ei,ed,eh);if(eU.x.isEmpty(et.client_info)&&"AAD"===ei.protocolMode)throw tr.e.createClientInfoEmptyError();return et.client_info?tn.createAccount(et.client_info,this.homeAccountIdentifier,eo,ei,ed,eh):tn.createGenericAccount(this.homeAccountIdentifier,eo,ei,ed,eh)},ResponseHandler.generateAuthenticationResult=function(et,eo,ei,ea,eu,ed,eh,ep){var ef,em,eg;return(0,eA.mG)(this,void 0,void 0,function(){var ey,eC,eS,ew,eI,eR,eT,eE,eP,ek,eO;return(0,eA.Jh)(this,function(eA){switch(eA.label){case 0:if(ey=e_.gT.EMPTY_STRING,eC=[],eS=null,eI=e_.gT.EMPTY_STRING,!ei.accessToken)return[3,4];if(ei.accessToken.tokenType!==e_.hO.POP)return[3,2];if(eR=new t2(et),eE=(eT=ei.accessToken).secret,!(eP=eT.keyId))throw tr.e.createKeyIdMissingError();return[4,eR.signPopToken(eE,eP,eu)];case 1:return ey=eA.sent(),[3,3];case 2:ey=ei.accessToken.secret,eA.label=3;case 3:eC=tc.fromString(ei.accessToken.target).asArray(),eS=new Date(1e3*Number(ei.accessToken.expiresOn)),ew=new Date(1e3*Number(ei.accessToken.extendedExpiresOn)),eA.label=4;case 4:return ei.appMetadata&&(eI=ei.appMetadata.familyId===e_.ch?e_.ch:e_.gT.EMPTY_STRING),ek=(null==ed?void 0:ed.claims.oid)||(null==ed?void 0:ed.claims.sub)||e_.gT.EMPTY_STRING,eO=(null==ed?void 0:ed.claims.tid)||e_.gT.EMPTY_STRING,[2,{authority:eo.canonicalAuthority,uniqueId:ek,tenantId:eO,scopes:eC,account:ei.account?ei.account.getAccountInfo():null,idToken:ed?ed.rawToken:e_.gT.EMPTY_STRING,idTokenClaims:ed?ed.claims:{},accessToken:ey,fromCache:ea,expiresOn:eS,correlationId:eu.correlationId,extExpiresOn:ew,familyId:eI,tokenType:(null===(ef=ei.accessToken)||void 0===ef?void 0:ef.tokenType)||e_.gT.EMPTY_STRING,state:eh?eh.userRequestState:e_.gT.EMPTY_STRING,cloudGraphHostName:(null===(em=ei.account)||void 0===em?void 0:em.cloudGraphHostName)||e_.gT.EMPTY_STRING,msGraphHost:(null===(eg=ei.account)||void 0===eg?void 0:eg.msGraphHost)||e_.gT.EMPTY_STRING,code:ep,fromNativeBroker:!1}]}})})},ResponseHandler}(),t6=function(et){function AuthorizationCodeClient(eo){var ei=et.call(this,eo)||this;return ei.includeRedirectUri=!0,ei}return(0,eA.ZT)(AuthorizationCodeClient,et),AuthorizationCodeClient.prototype.getAuthCodeUrl=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo;return(0,eA.Jh)(this,function(ei){switch(ei.label){case 0:return[4,this.createAuthCodeUrlQueryString(et)];case 1:return eo=ei.sent(),[2,tI.appendQueryString(this.authority.authorizationEndpoint,eo)]}})})},AuthorizationCodeClient.prototype.acquireToken=function(et,eo){return(0,eA.mG)(this,void 0,void 0,function(){var ei,ea,eu;return(0,eA.Jh)(this,function(ed){switch(ed.label){case 0:if(this.logger.info("in acquireToken call"),!et||eU.x.isEmpty(et.code))throw tr.e.createTokenRequestCannotBeMadeError();return ei=tm.nowSeconds(),[4,this.executeTokenRequest(this.authority,et)];case 1:return ea=ed.sent(),(eu=new t3(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(ea.body),[4,eu.handleServerTokenResponse(ea.body,this.authority,ei,et,eo)];case 2:return[2,ed.sent()]}})})},AuthorizationCodeClient.prototype.handleFragmentResponse=function(et,eo){var ei=new t3(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),ea=new tI(et),eu=tI.getDeserializedHash(ea.getHash());if(ei.validateServerAuthorizationCodeResponse(eu,eo,this.cryptoUtils),!eu.code)throw tr.e.createNoAuthCodeInServerResponseError();return(0,eA.pi)((0,eA.pi)({},eu),{code:eu.code})},AuthorizationCodeClient.prototype.getLogoutUri=function(et){if(!et)throw ts.createEmptyLogoutRequestError();var eo=this.createLogoutUrlQueryString(et);return tI.appendQueryString(this.authority.endSessionEndpoint,eo)},AuthorizationCodeClient.prototype.executeTokenRequest=function(et,eo){return(0,eA.mG)(this,void 0,void 0,function(){var ei,ea,eu,ed,eh,ep,em;return(0,eA.Jh)(this,function(eg){switch(eg.label){case 0:return ei={clientId:this.config.authOptions.clientId,authority:et.canonicalAuthority,scopes:eo.scopes,claims:eo.claims,authenticationScheme:eo.authenticationScheme,resourceRequestMethod:eo.resourceRequestMethod,resourceRequestUri:eo.resourceRequestUri,shrClaims:eo.shrClaims,sshKid:eo.sshKid},[4,this.createTokenRequestBody(eo)];case 1:if(ea=eg.sent(),eu=this.createTokenQueryParameters(eo),ed=void 0,eo.clientInfo)try{eh=buildClientInfo(eo.clientInfo,this.cryptoUtils),ed={credential:""+eh.uid+e_.Bv.CLIENT_INFO_SEPARATOR+eh.utid,type:ef.HOME_ACCOUNT_ID}}catch(et){this.logger.verbose("Could not parse client info for CCS Header: "+et)}return ep=this.createTokenRequestHeaders(ed||eo.ccsCredential),em=eU.x.isEmpty(eu)?et.tokenEndpoint:et.tokenEndpoint+"?"+eu,[2,this.executePostToTokenEndpoint(em,ea,ep,ei)]}})})},AuthorizationCodeClient.prototype.createTokenQueryParameters=function(et){var eo=new t0;return et.tokenQueryParameters&&eo.addExtraQueryParameters(et.tokenQueryParameters),eo.createQueryString()},AuthorizationCodeClient.prototype.createTokenRequestBody=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh,ep;return(0,eA.Jh)(this,function(em){switch(em.label){case 0:if((eo=new t0).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?eo.addRedirectUri(et.redirectUri):tX.validateRedirectUri(et.redirectUri),eo.addScopes(et.scopes),eo.addAuthorizationCode(et.code),eo.addLibraryInfo(this.config.libraryInfo),eo.addApplicationTelemetry(this.config.telemetry.application),eo.addThrottling(),this.serverTelemetryManager&&eo.addServerTelemetry(this.serverTelemetryManager),et.codeVerifier&&eo.addCodeVerifier(et.codeVerifier),this.config.clientCredentials.clientSecret&&eo.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(ei=this.config.clientCredentials.clientAssertion,eo.addClientAssertion(ei.assertion),eo.addClientAssertionType(ei.assertionType)),eo.addGrantType(e_.qJ.AUTHORIZATION_CODE_GRANT),eo.addClientInfo(),et.authenticationScheme!==e_.hO.POP)return[3,2];return[4,new t2(this.cryptoUtils).generateCnf(et)];case 1:return ea=em.sent(),eo.addPopToken(ea.reqCnfString),[3,3];case 2:if(et.authenticationScheme===e_.hO.SSH){if(et.sshJwk)eo.addSshJwk(et.sshJwk);else throw ts.createMissingSshJwkError()}em.label=3;case 3:if(eu=et.correlationId||this.config.cryptoInterface.createNewGuid(),eo.addCorrelationId(eu),(!eU.x.isEmptyObj(et.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&eo.addClaims(et.claims,this.config.authOptions.clientCapabilities),ed=void 0,et.clientInfo)try{eh=buildClientInfo(et.clientInfo,this.cryptoUtils),ed={credential:""+eh.uid+e_.Bv.CLIENT_INFO_SEPARATOR+eh.utid,type:ef.HOME_ACCOUNT_ID}}catch(et){this.logger.verbose("Could not parse client info for CCS Header: "+et)}else ed=et.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&ed)switch(ed.type){case ef.HOME_ACCOUNT_ID:try{eh=buildClientInfoFromHomeAccountId(ed.credential),eo.addCcsOid(eh)}catch(et){this.logger.verbose("Could not parse home account ID for CCS Header: "+et)}break;case ef.UPN:eo.addCcsUpn(ed.credential)}return et.tokenBodyParameters&&eo.addExtraQueryParameters(et.tokenBodyParameters),!et.enableSpaAuthorizationCode||et.tokenBodyParameters&&et.tokenBodyParameters[e_.Fo.RETURN_SPA_CODE]||eo.addExtraQueryParameters(((ep={})[e_.Fo.RETURN_SPA_CODE]="1",ep)),[2,eo.createQueryString()]}})})},AuthorizationCodeClient.prototype.createAuthCodeUrlQueryString=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh,ep;return(0,eA.Jh)(this,function(ef){switch(ef.label){case 0:if((eo=new t0).addClientId(this.config.authOptions.clientId),ei=(0,eA.pr)(et.scopes||[],et.extraScopesToConsent||[]),eo.addScopes(ei),eo.addRedirectUri(et.redirectUri),ea=et.correlationId||this.config.cryptoInterface.createNewGuid(),eo.addCorrelationId(ea),eo.addResponseMode(et.responseMode),eo.addResponseTypeCode(),eo.addLibraryInfo(this.config.libraryInfo),eo.addApplicationTelemetry(this.config.telemetry.application),eo.addClientInfo(),et.codeChallenge&&et.codeChallengeMethod&&eo.addCodeChallengeParams(et.codeChallenge,et.codeChallengeMethod),et.prompt&&eo.addPrompt(et.prompt),et.domainHint&&eo.addDomainHint(et.domainHint),et.prompt!==e_.NJ.SELECT_ACCOUNT){if(et.sid&&et.prompt===e_.NJ.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),eo.addSid(et.sid);else if(et.account){if(eu=this.extractAccountSid(et.account),ed=this.extractLoginHint(et.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),eo.addLoginHint(ed);try{eh=buildClientInfoFromHomeAccountId(et.account.homeAccountId),eo.addCcsOid(eh)}catch(et){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(eu&&et.prompt===e_.NJ.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),eo.addSid(eu);try{eh=buildClientInfoFromHomeAccountId(et.account.homeAccountId),eo.addCcsOid(eh)}catch(et){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(et.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),eo.addLoginHint(et.loginHint),eo.addCcsUpn(et.loginHint);else if(et.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),eo.addLoginHint(et.account.username);try{eh=buildClientInfoFromHomeAccountId(et.account.homeAccountId),eo.addCcsOid(eh)}catch(et){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else et.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),eo.addLoginHint(et.loginHint),eo.addCcsUpn(et.loginHint))}else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(et.nonce&&eo.addNonce(et.nonce),et.state&&eo.addState(et.state),(!eU.x.isEmpty(et.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&eo.addClaims(et.claims,this.config.authOptions.clientCapabilities),et.extraQueryParameters&&eo.addExtraQueryParameters(et.extraQueryParameters),!et.nativeBroker||(eo.addNativeBroker(),et.authenticationScheme!==e_.hO.POP))return[3,2];return[4,new t2(this.cryptoUtils).generateCnf(et)];case 1:ep=ef.sent(),eo.addPopToken(ep.reqCnfHash),ef.label=2;case 2:return[2,eo.createQueryString()]}})})},AuthorizationCodeClient.prototype.createLogoutUrlQueryString=function(et){var eo=new t0;return et.postLogoutRedirectUri&&eo.addPostLogoutRedirectUri(et.postLogoutRedirectUri),et.correlationId&&eo.addCorrelationId(et.correlationId),et.idTokenHint&&eo.addIdTokenHint(et.idTokenHint),et.state&&eo.addState(et.state),et.logoutHint&&eo.addLogoutHint(et.logoutHint),et.extraQueryParameters&&eo.addExtraQueryParameters(et.extraQueryParameters),eo.createQueryString()},AuthorizationCodeClient.prototype.extractAccountSid=function(et){var eo;return(null===(eo=et.idTokenClaims)||void 0===eo?void 0:eo.sid)||null},AuthorizationCodeClient.prototype.extractLoginHint=function(et){var eo;return(null===(eo=et.idTokenClaims)||void 0===eo?void 0:eo.login_hint)||null},AuthorizationCodeClient}(tQ);/*! @azure/msal-common v7.4.1 2022-09-12 */function isOpenIdConfigResponse(et){return et.hasOwnProperty("authorization_endpoint")&&et.hasOwnProperty("token_endpoint")&&et.hasOwnProperty("issuer")&&et.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v7.4.1 2022-09-12 */var t5={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},t8=t5.endpointMetadata,t7=t5.instanceDiscoveryMetadata;/*! @azure/msal-common v7.4.1 2022-09-12 */function isCloudInstanceDiscoveryResponse(et){return et.hasOwnProperty("tenant_discovery_endpoint")&&et.hasOwnProperty("metadata")}/*! @azure/msal-common v7.4.1 2022-09-12 */var t9=function(){function RegionDiscovery(et){this.networkInterface=et}return RegionDiscovery.prototype.detectRegion=function(et,eo,ei){return(0,eA.mG)(this,void 0,void 0,function(){var ea,eu,ed,eh,ep;return(0,eA.Jh)(this,function(ef){switch(ef.label){case 0:if(ea=et)return[3,8];eu=RegionDiscovery.IMDS_OPTIONS,ei&&(eu.proxyUrl=ei),ef.label=1;case 1:return ef.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(e_.gT.IMDS_VERSION,eu)];case 2:if((ed=ef.sent()).status===e_.YY.httpSuccess&&(ea=ed.body,eo.region_source=e_.W.IMDS),ed.status!==e_.YY.httpBadRequest)return[3,5];return[4,this.getCurrentVersion(eu)];case 3:if(!(eh=ef.sent()))return eo.region_source=e_.W.FAILED_AUTO_DETECTION,[2,null];return[4,this.getRegionFromIMDS(eh,eu)];case 4:(ep=ef.sent()).status===e_.YY.httpSuccess&&(ea=ep.body,eo.region_source=e_.W.IMDS),ef.label=5;case 5:return[3,7];case 6:return ef.sent(),eo.region_source=e_.W.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:eo.region_source=e_.W.ENVIRONMENT_VARIABLE,ef.label=9;case 9:return ea||(eo.region_source=e_.W.FAILED_AUTO_DETECTION),[2,ea||null]}})})},RegionDiscovery.prototype.getRegionFromIMDS=function(et,eo){return(0,eA.mG)(this,void 0,void 0,function(){return(0,eA.Jh)(this,function(ei){return[2,this.networkInterface.sendGetRequestAsync(e_.gT.IMDS_ENDPOINT+"?api-version="+et+"&format=text",eo,e_.gT.IMDS_TIMEOUT)]})})},RegionDiscovery.prototype.getCurrentVersion=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo;return(0,eA.Jh)(this,function(ei){switch(ei.label){case 0:return ei.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(e_.gT.IMDS_ENDPOINT+"?format=json",et)];case 1:if((eo=ei.sent()).status===e_.YY.httpBadRequest&&eo.body&&eo.body["newest-versions"]&&eo.body["newest-versions"].length>0)return[2,eo.body["newest-versions"][0]];return[2,null];case 2:return ei.sent(),[2,null];case 3:return[2]}})})},RegionDiscovery.IMDS_OPTIONS={headers:{Metadata:"true"}},RegionDiscovery}(),rr=function(){function Authority(et,eo,ei,ea,eu){this.canonicalAuthority=et,this._canonicalAuthority.validateAsUri(),this.networkInterface=eo,this.cacheManager=ei,this.authorityOptions=ea,this.regionDiscovery=new t9(eo),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=eu||e_.gT.EMPTY_STRING}return Object.defineProperty(Authority.prototype,"authorityType",{get:function(){var et=this.canonicalAuthorityUrlComponents.PathSegments;return et.length&&et[0].toLowerCase()===e_.gT.ADFS?ep.Adfs:ep.Default},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(et){this._canonicalAuthority=new tI(et),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var et=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(et)}throw tr.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var et=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(et)}throw tr.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var et=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(et)}throw tr.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw tr.e.createLogoutNotSupportedError();var et=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(et)}throw tr.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var et=this.replacePath(this.metadata.issuer);return this.replaceTenant(et)}throw tr.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(Authority.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var et=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(et)}throw tr.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Authority.prototype.replaceTenant=function(et){return et.replace(/{tenant}|{tenantid}/g,this.tenant)},Authority.prototype.replacePath=function(et){var eo=et,ei=new tI(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(et,ea){var eu=ei[ea];et!==eu&&(eo=eo.replace("/"+eu+"/","/"+et+"/"))}),eo},Object.defineProperty(Authority.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===ep.Adfs||this.protocolMode===em.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),Authority.prototype.discoveryComplete=function(){return!!this.metadata},Authority.prototype.resolveEndpointsAsync=function(){return(0,eA.mG)(this,void 0,void 0,function(){var et,eo,ei,ea;return(0,eA.Jh)(this,function(eu){switch(eu.label){case 0:return(et=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(et=new tC).updateCanonicalAuthority(this.canonicalAuthority),[4,this.updateCloudDiscoveryMetadata(et)];case 1:return eo=eu.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,et.preferred_network),[4,this.updateEndpointMetadata(et)];case 2:return ei=eu.sent(),eo!==e_.pQ.CACHE&&ei!==e_.pQ.CACHE&&(et.resetExpiresAt(),et.updateCanonicalAuthority(this.canonicalAuthority)),ea=this.cacheManager.generateAuthorityMetadataCacheKey(et.preferred_cache),this.cacheManager.setAuthorityMetadata(ea,et),this.metadata=et,[2]}})})},Authority.prototype.updateEndpointMetadata=function(et){var eo,ei;return(0,eA.mG)(this,void 0,void 0,function(){var ea,eu;return(0,eA.Jh)(this,function(ed){switch(ed.label){case 0:if(ea=this.getEndpointMetadataFromConfig())return et.updateEndpointMetadata(ea,!1),[2,e_.pQ.CONFIG];if(this.isAuthoritySameType(et)&&et.endpointsFromNetwork&&!et.isExpired())return[2,e_.pQ.CACHE];return eu=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()];case 1:if(!(ea=ed.sent()))return[3,4];if(!(null===(eo=this.authorityOptions.azureRegionConfiguration)||void 0===eo?void 0:eo.azureRegion))return[3,3];return[4,this.updateMetadataWithRegionalInformation(ea)];case 2:ea=ed.sent(),ed.label=3;case 3:return et.updateEndpointMetadata(ea,!0),[2,e_.pQ.NETWORK];case 4:if(!(eu&&!this.authorityOptions.skipAuthorityMetadataCache))return[3,7];if(!(null===(ei=this.authorityOptions.azureRegionConfiguration)||void 0===ei?void 0:ei.azureRegion))return[3,6];return[4,this.updateMetadataWithRegionalInformation(eu)];case 5:eu=ed.sent(),ed.label=6;case 6:return et.updateEndpointMetadata(eu,!1),[2,e_.pQ.HARDCODED_VALUES];case 7:throw tr.e.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},Authority.prototype.isAuthoritySameType=function(et){return new tI(et.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},Authority.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(et){throw ts.createInvalidAuthorityMetadataError()}return null},Authority.prototype.getEndpointMetadataFromNetwork=function(){return(0,eA.mG)(this,void 0,void 0,function(){var et,eo;return(0,eA.Jh)(this,function(ei){switch(ei.label){case 0:et={},this.proxyUrl&&(et.proxyUrl=this.proxyUrl),ei.label=1;case 1:return ei.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,et)];case 2:return[2,isOpenIdConfigResponse((eo=ei.sent()).body)?eo.body:null];case 3:return ei.sent(),[2,null];case 4:return[2]}})})},Authority.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in t8?t8[this.canonicalAuthority]:null},Authority.prototype.updateMetadataWithRegionalInformation=function(et){var eo,ei,ea,eu,ed;return(0,eA.mG)(this,void 0,void 0,function(){var eh,ep;return(0,eA.Jh)(this,function(ef){switch(ef.label){case 0:return[4,this.regionDiscovery.detectRegion(null===(eo=this.authorityOptions.azureRegionConfiguration)||void 0===eo?void 0:eo.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:if(eh=ef.sent(),ep=(null===(ei=this.authorityOptions.azureRegionConfiguration)||void 0===ei?void 0:ei.azureRegion)===e_.gT.AZURE_REGION_AUTO_DISCOVER_FLAG?eh:null===(ea=this.authorityOptions.azureRegionConfiguration)||void 0===ea?void 0:ea.azureRegion,(null===(eu=this.authorityOptions.azureRegionConfiguration)||void 0===eu?void 0:eu.azureRegion)===e_.gT.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=eh?e_.ki.AUTO_DETECTION_REQUESTED_SUCCESSFUL:e_.ki.AUTO_DETECTION_REQUESTED_FAILED:eh?this.regionDiscoveryMetadata.region_outcome=(null===(ed=this.authorityOptions.azureRegionConfiguration)||void 0===ed?void 0:ed.azureRegion)===eh?e_.ki.CONFIGURED_MATCHES_DETECTED:e_.ki.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=e_.ki.CONFIGURED_NO_AUTO_DETECTION,ep)return this.regionDiscoveryMetadata.region_used=ep,[2,Authority.replaceWithRegionalInformation(et,ep)];return[2,et]}})})},Authority.prototype.updateCloudDiscoveryMetadata=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eA.Jh)(this,function(ea){switch(ea.label){case 0:if(eo=this.getCloudDiscoveryMetadataFromConfig())return et.updateCloudDiscoveryMetadata(eo,!1),[2,e_.pQ.CONFIG];if(this.isAuthoritySameType(et)&&et.aliasesFromNetwork&&!et.isExpired())return[2,e_.pQ.CACHE];return ei=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()];case 1:if(eo=ea.sent())return et.updateCloudDiscoveryMetadata(eo,!0),[2,e_.pQ.NETWORK];if(ei&&!this.options.skipAuthorityMetadataCache)return et.updateCloudDiscoveryMetadata(ei,!1),[2,e_.pQ.HARDCODED_VALUES];throw ts.createUntrustedAuthorityError()}})})},Authority.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var et=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),eo=Authority.getCloudDiscoveryMetadataFromNetworkResponse(et.metadata,this.hostnameAndPort);if(eo)return eo}catch(et){throw ts.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},Authority.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return(0,eA.mG)(this,void 0,void 0,function(){var et,eo,ei,ea,eu;return(0,eA.Jh)(this,function(ed){switch(ed.label){case 0:et=""+e_.gT.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",eo={},this.proxyUrl&&(eo.proxyUrl=this.proxyUrl),ei=null,ed.label=1;case 1:return ed.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(et,eo)];case 2:if(0===(eu=isCloudInstanceDiscoveryResponse((ea=ed.sent()).body)?ea.body.metadata:[]).length)return[2,null];return ei=Authority.getCloudDiscoveryMetadataFromNetworkResponse(eu,this.hostnameAndPort),[3,4];case 3:return ed.sent(),[2,null];case 4:return ei||(ei=Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,ei]}})})},Authority.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in t7?t7[this.canonicalAuthority]:null},Authority.prototype.isInKnownAuthorities=function(){var et=this;return this.authorityOptions.knownAuthorities.filter(function(eo){return tI.getDomainFromUrl(eo).toLowerCase()===et.hostnameAndPort}).length>0},Authority.generateAuthority=function(et,eo){var ei;if(eo&&eo.azureCloudInstance!==eg.None){var ea=eo.tenant?eo.tenant:e_.gT.DEFAULT_COMMON_TENANT;ei=eo.azureCloudInstance+"/"+ea+"/"}return ei||et},Authority.createCloudDiscoveryMetadataFromHost=function(et){return{preferred_network:et,preferred_cache:et,aliases:[et]}},Authority.getCloudDiscoveryMetadataFromNetworkResponse=function(et,eo){for(var ei=0;ei<et.length;ei++){var ea=et[ei];if(ea.aliases.indexOf(eo)>-1)return ea}return null},Authority.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw tr.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},Authority.prototype.isAlias=function(et){return this.metadata.aliases.indexOf(et)>-1},Authority.isPublicCloudAuthority=function(et){return e_.gT.KNOWN_PUBLIC_CLOUDS.indexOf(et)>=0},Authority.buildRegionalAuthorityString=function(et,eo,ei){var ea=new tI(et);ea.validateAsUri();var eu=ea.getUrlComponents(),ed=eo+"."+eu.HostNameAndPort;this.isPublicCloudAuthority(eu.HostNameAndPort)&&(ed=eo+"."+e_.gT.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var eh=tI.constructAuthorityUriFromObject((0,eA.pi)((0,eA.pi)({},ea.getUrlComponents()),{HostNameAndPort:ed})).urlString;return ei?eh+"?"+ei:eh},Authority.replaceWithRegionalInformation=function(et,eo){return et.authorization_endpoint=Authority.buildRegionalAuthorityString(et.authorization_endpoint,eo),et.token_endpoint=Authority.buildRegionalAuthorityString(et.token_endpoint,eo,"allowestsrnonmsi=true"),et.end_session_endpoint&&(et.end_session_endpoint=Authority.buildRegionalAuthorityString(et.end_session_endpoint,eo)),et},Authority}(),rn=function(){function AuthorityFactory(){}return AuthorityFactory.createDiscoveredInstance=function(et,eo,ei,ea,eu){return(0,eA.mG)(this,void 0,void 0,function(){var ed,eh;return(0,eA.Jh)(this,function(ep){switch(ep.label){case 0:ed=AuthorityFactory.createInstance(et,eo,ei,ea,eu),ep.label=1;case 1:return ep.trys.push([1,3,,4]),[4,ed.resolveEndpointsAsync()];case 2:return ep.sent(),[2,ed];case 3:throw eh=ep.sent(),tr.e.createEndpointDiscoveryIncompleteError(eh);case 4:return[2]}})})},AuthorityFactory.createInstance=function(et,eo,ei,ea,eu){if(eU.x.isEmpty(et))throw ts.createUrlEmptyError();return new rr(et,eo,ei,ea,eu)},AuthorityFactory}(),ro=function(){function ServerTelemetryManager(et,eo){this.cacheOutcome=e_.To.NO_CACHE_HIT,this.cacheManager=eo,this.apiId=et.apiId,this.correlationId=et.correlationId,this.wrapperSKU=et.wrapperSKU||e_.gT.EMPTY_STRING,this.wrapperVer=et.wrapperVer||e_.gT.EMPTY_STRING,this.telemetryCacheKey=e_.HN.CACHE_KEY+e_.Bv.CACHE_KEY_SEPARATOR+et.clientId}return ServerTelemetryManager.prototype.generateCurrentRequestHeaderValue=function(){var et=""+this.apiId+e_.HN.VALUE_SEPARATOR+this.cacheOutcome,eo=[this.wrapperSKU,this.wrapperVer].join(e_.HN.VALUE_SEPARATOR),ei=[et,this.getRegionDiscoveryFields()].join(e_.HN.VALUE_SEPARATOR);return[e_.HN.SCHEMA_VERSION,ei,eo].join(e_.HN.CATEGORY_SEPARATOR)},ServerTelemetryManager.prototype.generateLastRequestHeaderValue=function(){var et=this.getLastRequests(),eo=ServerTelemetryManager.maxErrorsToSend(et),ei=et.failedRequests.slice(0,2*eo).join(e_.HN.VALUE_SEPARATOR),ea=et.errors.slice(0,eo).join(e_.HN.VALUE_SEPARATOR),eu=et.errors.length,ed=eo<eu?e_.HN.OVERFLOW_TRUE:e_.HN.OVERFLOW_FALSE,eh=[eu,ed].join(e_.HN.VALUE_SEPARATOR);return[e_.HN.SCHEMA_VERSION,et.cacheHits,ei,ea,eh].join(e_.HN.CATEGORY_SEPARATOR)},ServerTelemetryManager.prototype.cacheFailedRequest=function(et){var eo=this.getLastRequests();eo.errors.length>=e_.HN.MAX_CACHED_ERRORS&&(eo.failedRequests.shift(),eo.failedRequests.shift(),eo.errors.shift()),eo.failedRequests.push(this.apiId,this.correlationId),eU.x.isEmpty(et.subError)?eU.x.isEmpty(et.errorCode)?et&&et.toString()?eo.errors.push(et.toString()):eo.errors.push(e_.HN.UNKNOWN_ERROR):eo.errors.push(et.errorCode):eo.errors.push(et.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,eo)},ServerTelemetryManager.prototype.incrementCacheHits=function(){var et=this.getLastRequests();return et.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,et),et.cacheHits},ServerTelemetryManager.prototype.getLastRequests=function(){var et=new tb;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||et},ServerTelemetryManager.prototype.clearTelemetryCache=function(){var et=this.getLastRequests(),eo=ServerTelemetryManager.maxErrorsToSend(et);if(eo===et.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var ei=new tb;ei.failedRequests=et.failedRequests.slice(2*eo),ei.errors=et.errors.slice(eo),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,ei)}},ServerTelemetryManager.maxErrorsToSend=function(et){var eo,ei=0,ea=0,eu=et.errors.length;for(eo=0;eo<eu;eo++){var ed=et.failedRequests[2*eo]||e_.gT.EMPTY_STRING,eh=et.failedRequests[2*eo+1]||e_.gT.EMPTY_STRING,ep=et.errors[eo]||e_.gT.EMPTY_STRING;if((ea+=ed.toString().length+eh.toString().length+ep.length+3)<e_.HN.MAX_LAST_HEADER_BYTES)ei+=1;else break}return ei},ServerTelemetryManager.prototype.getRegionDiscoveryFields=function(){var et=[];return et.push(this.regionUsed||e_.gT.EMPTY_STRING),et.push(this.regionSource||e_.gT.EMPTY_STRING),et.push(this.regionOutcome||e_.gT.EMPTY_STRING),et.join(",")},ServerTelemetryManager.prototype.updateRegionDiscoveryMetadata=function(et){this.regionUsed=et.region_used,this.regionSource=et.region_source,this.regionOutcome=et.region_outcome},ServerTelemetryManager.prototype.setCacheOutcome=function(et){this.cacheOutcome=et},ServerTelemetryManager}(),ri=function(){function BaseInteractionClient(et,eo,ei,ea,eu,ed,eh,ep,ef){this.config=et,this.browserStorage=eo,this.browserCrypto=ei,this.networkClient=this.config.system.networkClient,this.eventHandler=eu,this.navigationClient=ed,this.nativeMessageHandler=ep,this.correlationId=ef||this.browserCrypto.createNewGuid(),this.logger=ea.clone(ew.qx.MSAL_SKU,tV,this.correlationId),this.performanceClient=eh}return BaseInteractionClient.prototype.clearCacheOnLogout=function(et){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(eo){switch(eo.label){case 0:if(!et)return[3,5];tn.accountInfoIsEqual(et,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),eo.label=1;case 1:return eo.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(tn.generateAccountCacheKey(et))];case 2:return eo.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return eo.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 eo.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 eo.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return eo.sent(),[3,9];case 8:return eo.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},BaseInteractionClient.prototype.initializeBaseRequest=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu;return(0,eS.Jh)(this,function(ed){switch(ed.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),eo=et.authority||this.config.auth.authority,ei=(0,eS.fl)(et&&et.scopes||[]),(ea=(0,eS.pi)((0,eS.pi)({},et),{correlationId:this.correlationId,authority:eo,scopes:ei})).authenticationScheme){if(ea.authenticationScheme===e_.hO.SSH){if(!et.sshJwk)throw ts.createMissingSshJwkError();if(!et.sshKid)throw ts.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+ea.authenticationScheme+'" as configured in Auth request')}else ea.authenticationScheme=e_.hO.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');if(!(et.claims&&!eU.x.isEmpty(et.claims)))return[3,2];return eu=ea,[4,this.browserCrypto.hashString(et.claims)];case 1:eu.requestedClaimsHash=ed.sent(),ed.label=2;case 2:return[2,ea]}})})},BaseInteractionClient.prototype.getRedirectUri=function(et){this.logger.verbose("getRedirectUri called");var eo=et||this.config.auth.redirectUri||tF.getCurrentUri();return tI.getAbsoluteUrl(eo,tF.getCurrentUri())},BaseInteractionClient.prototype.initializeServerTelemetryManager=function(et,eo){this.logger.verbose("initializeServerTelemetryManager called");var ei={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:et,forceRefresh:eo||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new ro(ei,this.browserStorage)},BaseInteractionClient.prototype.getDiscoveredAuthority=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:if(this.logger.verbose("getDiscoveredAuthority called"),eo={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},!et)return[3,2];return this.logger.verbose("Creating discovered authority with request authority"),[4,rn.createDiscoveredInstance(et,this.config.system.networkClient,this.browserStorage,eo)];case 1:case 3:return[2,ei.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,rn.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,eo)]}})})},BaseInteractionClient}(),ra=function(et){function StandardInteractionClient(){return null!==et&&et.apply(this,arguments)||this}return(0,eS.ZT)(StandardInteractionClient,et),StandardInteractionClient.prototype.initializeAuthorizationCodeRequest=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",et.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return eo=ea.sent(),ei=(0,eS.pi)((0,eS.pi)({},et),{redirectUri:et.redirectUri,code:e_.gT.EMPTY_STRING,codeVerifier:eo.verifier}),et.codeChallenge=eo.challenge,et.codeChallengeMethod=e_.gT.S256_CODE_CHALLENGE_METHOD,[2,ei]}})})},StandardInteractionClient.prototype.initializeLogoutRequest=function(et){this.logger.verbose("initializeLogoutRequest called",null==et?void 0:et.correlationId);var eo=(0,eS.pi)({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},et);if(et){if(et.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(et.account){var ei=this.getLogoutHintFromIdTokenClaims(et.account);ei&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),eo.logoutHint=ei)}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 et&&null===et.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",eo.correlationId):et&&et.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",eo.correlationId),eo.postLogoutRedirectUri=tI.getAbsoluteUrl(et.postLogoutRedirectUri,tF.getCurrentUri())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",eo.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",eo.correlationId),eo.postLogoutRedirectUri=tI.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,tF.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",eo.correlationId),eo.postLogoutRedirectUri=tI.getAbsoluteUrl(tF.getCurrentUri(),tF.getCurrentUri())),eo},StandardInteractionClient.prototype.getLogoutHintFromIdTokenClaims=function(et){var eo=et.idTokenClaims;if(eo){if(eo.login_hint)return eo.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},StandardInteractionClient.prototype.createAuthCodeClient=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea;return(0,eS.Jh)(this,function(eu){switch(eu.label){case 0:return[4,this.getClientConfiguration(et,eo,ei)];case 1:return ea=eu.sent(),[2,new t6(ea)]}})})},StandardInteractionClient.prototype.getClientConfiguration=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea;return(0,eS.Jh)(this,function(eu){switch(eu.label){case 0:return this.logger.verbose("getClientConfiguration called",this.correlationId),[4,this.getDiscoveredAuthority(eo,ei)];case 1:return ea=eu.sent(),[2,{authOptions:{clientId:this.config.auth.clientId,authority:ea,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:this.config.system.loggerOptions.loggerCallback,piiLoggingEnabled:this.config.system.loggerOptions.piiLoggingEnabled,logLevel:this.config.system.loggerOptions.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:et,libraryInfo:{sku:ew.qx.MSAL_SKU,version:tV,cpu:e_.gT.EMPTY_STRING,os:e_.gT.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},StandardInteractionClient.prototype.validateAndExtractStateFromHash=function(et,eo,ei){if(this.logger.verbose("validateAndExtractStateFromHash called",ei),!et.state)throw eN.createHashDoesNotContainStateError();var ea=tR.extractBrowserRequestState(this.browserCrypto,et.state);if(!ea)throw eN.createUnableToParseStateError();if(ea.interactionType!==eo)throw eN.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",ei),et.state},StandardInteractionClient.prototype.getDiscoveredAuthority=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,ed,eh;return(0,eS.Jh)(this,function(ep){switch(ep.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),ei=this.performanceClient.startMeasurement(eu.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),ea={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},ed=et||this.config.auth.authority,eh=rr.generateAuthority(ed,eo||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,rn.createDiscoveredInstance(eh,this.config.system.networkClient,this.browserStorage,ea).then(function(et){return ei.endMeasurement({success:!0}),et}).catch(function(et){throw ei.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),et})];case 1:return[2,ep.sent()]}})})},StandardInteractionClient.prototype.initializeAuthorizationRequest=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,eu,ed,eh,ep,ef;return(0,eS.Jh)(this,function(em){switch(em.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),ei=this.getRedirectUri(et.redirectUri),ea={interactionType:eo},eu=t_.setRequestState(this.browserCrypto,et&&et.state||e_.gT.EMPTY_STRING,ea),eh=[{}],[4,this.initializeBaseRequest(et)];case 1:return ed=eS.pi.apply(void 0,[eS.pi.apply(void 0,eh.concat([em.sent()])),{redirectUri:ei,state:eu,nonce:et.nonce||this.browserCrypto.createNewGuid(),responseMode:e_.vw.FRAGMENT}]),(ep=et.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+ep.homeAccountId,this.correlationId),ed.account=ep),eU.x.isEmpty(ed.loginHint)&&!ep&&(ef=this.browserStorage.getLegacyLoginHint())&&(ed.loginHint=ef),[2,ed]}})})},StandardInteractionClient}(ri);!function(et){et.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",et.USER_CANCEL="USER_CANCEL",et.NO_NETWORK="NO_NETWORK",et.TRANSIENT_ERROR="TRANSIENT_ERROR",et.PERSISTENT_ERROR="PERSISTENT_ERROR",et.DISABLED="DISABLED",et.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(eC||(eC={}));var rs={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"}},rc=function(et){function NativeAuthError(eo,ei,ea){var eu=et.call(this,eo,ei)||this;return Object.setPrototypeOf(eu,NativeAuthError.prototype),eu.name="NativeAuthError",eu.ext=ea,eu}return(0,eS.ZT)(NativeAuthError,et),NativeAuthError.prototype.isFatal=function(){return!!this.ext&&!!this.ext.status&&(this.ext.status===eC.PERSISTENT_ERROR||this.ext.status===eC.DISABLED)||this.errorCode===rs.extensionError.code},NativeAuthError.createError=function(et,eo,ei){if(ei&&ei.status)switch(ei.status){case eC.ACCOUNT_UNAVAILABLE:return e7.createNativeAccountUnavailableError();case eC.USER_INTERACTION_REQUIRED:return new e7(et,eo);case eC.USER_CANCEL:return eN.createUserCancelledError();case eC.NO_NETWORK:return eN.createNoNetworkConnectivityError()}return new NativeAuthError(et,eo,ei)},NativeAuthError.createUserSwitchError=function(){return new NativeAuthError(rs.userSwitch.code,rs.userSwitch.desc)},NativeAuthError.createTokensNotFoundInCacheError=function(){return new NativeAuthError(rs.tokensNotFoundInCache.code,rs.tokensNotFoundInCache.desc)},NativeAuthError}(eI.l),ru=function(et){function RefreshTokenClient(eo,ei){return et.call(this,eo,ei)||this}return(0,eA.ZT)(RefreshTokenClient,et),RefreshTokenClient.prototype.acquireToken=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei,ea;return(0,eA.Jh)(this,function(eu){switch(eu.label){case 0:return eo=tm.nowSeconds(),[4,this.executeTokenRequest(et,this.authority)];case 1:return ei=eu.sent(),(ea=new t3(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(ei.body),[2,ea.handleServerTokenResponse(ei.body,this.authority,eo,et,void 0,void 0,!0,et.forceCache)]}})})},RefreshTokenClient.prototype.acquireTokenByRefreshToken=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo,ei;return(0,eA.Jh)(this,function(ea){if(!et)throw ts.createEmptyTokenRequestError();if(!et.account)throw tr.e.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(et.account.environment,this.config.authOptions.clientId))try{return[2,this.acquireTokenWithCachedRefreshToken(et,!0)]}catch(et){if(eo=et instanceof e7&&et.errorCode===e8.noTokensFoundError.code,ei=et instanceof e9&&et.errorCode===e_.D1.INVALID_GRANT_ERROR&&et.subError===e_.D1.CLIENT_MISMATCH_ERROR,eo||ei);else throw et}return[2,this.acquireTokenWithCachedRefreshToken(et,!1)]})})},RefreshTokenClient.prototype.acquireTokenWithCachedRefreshToken=function(et,eo){return(0,eA.mG)(this,void 0,void 0,function(){var ei,ea;return(0,eA.Jh)(this,function(eu){if(!(ei=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,et.account,eo)))throw e7.createNoTokensFoundError();return ea=(0,eA.pi)((0,eA.pi)({},et),{refreshToken:ei.secret,authenticationScheme:et.authenticationScheme||e_.hO.BEARER,ccsCredential:{credential:et.account.homeAccountId,type:ef.HOME_ACCOUNT_ID}}),[2,this.acquireToken(ea)]})})},RefreshTokenClient.prototype.executeTokenRequest=function(et,eo){var ei;return(0,eA.mG)(this,void 0,void 0,function(){var ea,ed,eh,ep,ef,em;return(0,eA.Jh)(this,function(eg){switch(eg.label){case 0:return ea=null===(ei=this.performanceClient)||void 0===ei?void 0:ei.startMeasurement(eu.RefreshTokenClientExecuteTokenRequest,et.correlationId),[4,this.createTokenRequestBody(et)];case 1:return ed=eg.sent(),eh=this.createTokenQueryParameters(et),ep=this.createTokenRequestHeaders(et.ccsCredential),ef={clientId:this.config.authOptions.clientId,authority:eo.canonicalAuthority,scopes:et.scopes,claims:et.claims,authenticationScheme:et.authenticationScheme,resourceRequestMethod:et.resourceRequestMethod,resourceRequestUri:et.resourceRequestUri,shrClaims:et.shrClaims,sshKid:et.sshKid},em=tI.appendQueryString(eo.tokenEndpoint,eh),[2,this.executePostToTokenEndpoint(em,ed,ep,ef).then(function(et){return null==ea||ea.endMeasurement({success:!0}),et}).catch(function(et){throw null==ea||ea.endMeasurement({success:!1}),et})]}})})},RefreshTokenClient.prototype.createTokenQueryParameters=function(et){var eo=new t0;return et.tokenQueryParameters&&eo.addExtraQueryParameters(et.tokenQueryParameters),eo.createQueryString()},RefreshTokenClient.prototype.createTokenRequestBody=function(et){var eo;return(0,eA.mG)(this,void 0,void 0,function(){var ei,ea,ed,eh,ep,em;return(0,eA.Jh)(this,function(eg){switch(eg.label){case 0:if(ei=et.correlationId,ea=null===(eo=this.performanceClient)||void 0===eo?void 0:eo.startMeasurement(eu.BaseClientCreateTokenRequestHeaders,ei),(ed=new t0).addClientId(this.config.authOptions.clientId),ed.addScopes(et.scopes),ed.addGrantType(e_.qJ.REFRESH_TOKEN_GRANT),ed.addClientInfo(),ed.addLibraryInfo(this.config.libraryInfo),ed.addApplicationTelemetry(this.config.telemetry.application),ed.addThrottling(),this.serverTelemetryManager&&ed.addServerTelemetry(this.serverTelemetryManager),ed.addCorrelationId(ei),ed.addRefreshToken(et.refreshToken),this.config.clientCredentials.clientSecret&&ed.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(eh=this.config.clientCredentials.clientAssertion,ed.addClientAssertion(eh.assertion),ed.addClientAssertionType(eh.assertionType)),et.authenticationScheme!==e_.hO.POP)return[3,2];return[4,new t2(this.cryptoUtils).generateCnf(et)];case 1:return ep=eg.sent(),ed.addPopToken(ep.reqCnfString),[3,3];case 2:if(et.authenticationScheme===e_.hO.SSH){if(et.sshJwk)ed.addSshJwk(et.sshJwk);else throw null==ea||ea.endMeasurement({success:!1}),ts.createMissingSshJwkError()}eg.label=3;case 3:if((!eU.x.isEmptyObj(et.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&ed.addClaims(et.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&et.ccsCredential)switch(et.ccsCredential.type){case ef.HOME_ACCOUNT_ID:try{em=buildClientInfoFromHomeAccountId(et.ccsCredential.credential),ed.addCcsOid(em)}catch(et){this.logger.verbose("Could not parse home account ID for CCS Header: "+et)}break;case ef.UPN:ed.addCcsUpn(et.ccsCredential.credential)}return null==ea||ea.endMeasurement({success:!0}),[2,ed.createQueryString()]}})})},RefreshTokenClient}(tQ),rl=function(et){function SilentFlowClient(eo,ei){return et.call(this,eo,ei)||this}return(0,eA.ZT)(SilentFlowClient,et),SilentFlowClient.prototype.acquireToken=function(et){return(0,eA.mG)(this,void 0,void 0,function(){var eo;return(0,eA.Jh)(this,function(ei){switch(ei.label){case 0:return ei.trys.push([0,2,,3]),[4,this.acquireCachedToken(et)];case 1:return[2,ei.sent()];case 2:if((eo=ei.sent())instanceof tr.e&&eo.errorCode===tr.A.tokenRefreshRequired.code)return[2,new ru(this.config,this.performanceClient).acquireTokenByRefreshToken(et)];throw eo;case 3:return[2]}})})},SilentFlowClient.prototype.acquireCachedToken=function(et){var eo,ei,ea,eu;return(0,eA.mG)(this,void 0,void 0,function(){var ed,eh;return(0,eA.Jh)(this,function(ep){switch(ep.label){case 0:if(!et)throw ts.createEmptyTokenRequestError();if(et.forceRefresh)throw null===(eo=this.serverTelemetryManager)||void 0===eo||eo.setCacheOutcome(e_.To.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),tr.e.createRefreshRequiredError();if(!et.account)throw tr.e.createNoAccountInSilentRequestError();if(ed=et.authority||this.authority.getPreferredCache(),(eh=this.cacheManager.readCacheRecord(et.account,this.config.authOptions.clientId,et,ed)).accessToken){if(tm.wasClockTurnedBack(eh.accessToken.cachedAt)||tm.isTokenExpired(eh.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(ea=this.serverTelemetryManager)||void 0===ea||ea.setCacheOutcome(e_.To.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),tr.e.createRefreshRequiredError();if(eh.accessToken.refreshOn&&tm.isTokenExpired(eh.accessToken.refreshOn,0))throw null===(eu=this.serverTelemetryManager)||void 0===eu||eu.setCacheOutcome(e_.To.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),tr.e.createRefreshRequiredError()}else throw null===(ei=this.serverTelemetryManager)||void 0===ei||ei.setCacheOutcome(e_.To.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),tr.e.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(eh,et)];case 1:return[2,ep.sent()]}})})},SilentFlowClient.prototype.generateResultFromCacheRecord=function(et,eo){return(0,eA.mG)(this,void 0,void 0,function(){var ei;return(0,eA.Jh)(this,function(ea){switch(ea.label){case 0:return et.idToken&&(ei=new tu(et.idToken.secret,this.config.cryptoInterface)),[4,t3.generateAuthenticationResult(this.cryptoUtils,this.authority,et,!0,eo,ei)];case 1:return[2,ea.sent()]}})})},SilentFlowClient}(tQ),rd=function(et){function SilentCacheClient(){return null!==et&&et.apply(this,arguments)||this}return(0,eS.ZT)(SilentCacheClient,et),SilentCacheClient.prototype.acquireToken=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,ed,eh;return(0,eS.Jh)(this,function(ep){switch(ep.label){case 0:return eo=this.performanceClient.startMeasurement(eu.SilentCacheClientAcquireToken,et.correlationId),ei=this.initializeServerTelemetryManager(ew.WN.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(ei,et.authority,et.azureCloudOptions)];case 1:ea=ep.sent(),this.logger.verbose("Silent auth client created"),ep.label=2;case 2:return ep.trys.push([2,4,,5]),[4,ea.acquireCachedToken(et)];case 3:return ed=ep.sent(),eo.endMeasurement({success:!0,fromCache:!0}),[2,ed];case 4:throw(eh=ep.sent())instanceof eN&&eh.errorCode===eL.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),eo.endMeasurement({errorCode:eh instanceof eI.l&&eh.errorCode||void 0,subErrorCode:eh instanceof eI.l&&eh.subError||void 0,success:!1}),eh;case 5:return[2]}})})},SilentCacheClient.prototype.logout=function(){return Promise.reject(eN.createSilentLogoutUnsupportedError())},SilentCacheClient.prototype.createSilentFlowClient=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea;return(0,eS.Jh)(this,function(eu){switch(eu.label){case 0:return[4,this.getClientConfiguration(et,eo,ei)];case 1:return ea=eu.sent(),[2,new rl(ea,this.performanceClient)]}})})},SilentCacheClient.prototype.initializeSilentRequest=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:return ei=[(0,eS.pi)({},et)],[4,this.initializeBaseRequest(et)];case 1:return[2,eS.pi.apply(void 0,[eS.pi.apply(void 0,ei.concat([ea.sent()])),{account:eo,forceRefresh:et.forceRefresh||!1}])]}})})},SilentCacheClient}(ra),rh=function(et){function NativeInteractionClient(eo,ei,ea,eu,ed,eh,ep,ef,em,eg,ey,eC){var eS=et.call(this,eo,ei,ea,eu,ed,eh,ef,em,eC)||this;return eS.apiId=ep,eS.accountId=eg,eS.nativeMessageHandler=em,eS.nativeStorageManager=ey,eS.silentCacheClient=new rd(eo,eS.nativeStorageManager,ea,eu,ed,eh,ef,em,eC),eS}return(0,eS.ZT)(NativeInteractionClient,et),NativeInteractionClient.prototype.acquireToken=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,ed,eh,ep,ef;return(0,eS.Jh)(this,function(em){switch(em.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),eo=this.performanceClient.startMeasurement(eu.NativeInteractionClientAcquireToken,et.correlationId),ei=tm.nowSeconds(),[4,this.initializeNativeRequest(et)];case 1:ea=em.sent(),em.label=2;case 2:return em.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,ea)];case 3:return ed=em.sent(),eo.endMeasurement({success:!0,isNativeBroker:!0,fromCache:!0}),[2,ed];case 4:return em.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return eh={method:ew.Ky.GetToken,request:ea},[4,this.nativeMessageHandler.sendMessage(eh)];case 6:return ep=em.sent(),ef=this.validateNativeResponse(ep),[2,this.handleNativeResponse(ef,ea,ei).then(function(et){return eo.endMeasurement({success:!0,isNativeBroker:!0}),et}).catch(function(et){throw eo.endMeasurement({success:!1,errorCode:et.errorCode,subErrorCode:et.subError,isNativeBroker:!0}),et})]}})})},NativeInteractionClient.prototype.createSilentCacheRequest=function(et,eo){return{authority:et.authority,correlationId:this.correlationId,scopes:tc.fromString(et.scope).asArray(),account:eo,forceRefresh:!1}},NativeInteractionClient.prototype.acquireTokensFromCache=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,eu;return(0,eS.Jh)(this,function(ed){switch(ed.label){case 0:if(!(ei=this.browserStorage.readAccountFromCacheWithNativeAccountId(et)))throw tr.e.createNoAccountFoundError();ea=ei.getAccountInfo(),ed.label=1;case 1:return ed.trys.push([1,3,,4]),eu=this.createSilentCacheRequest(eo,ea),[4,this.silentCacheClient.acquireToken(eu)];case 2:return[2,ed.sent()];case 3:throw ed.sent();case 4:return[2]}})})},NativeInteractionClient.prototype.acquireTokenRedirect=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh;return(0,eS.Jh)(this,function(ep){switch(ep.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(et)];case 1:eo=ep.sent(),ei={method:ew.Ky.GetToken,request:eo},ep.label=2;case 2:return ep.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(ei)];case 3:return ea=ep.sent(),this.validateNativeResponse(ea),[3,5];case 4:if((eu=ep.sent())instanceof rc&&eu.isFatal())throw eu;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ew.c4.NATIVE_REQUEST,JSON.stringify(eo),!0),ed={apiId:ew.WN.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},eh=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(et.redirectUri),[4,this.navigationClient.navigateExternal(eh,ed)];case 6:return ep.sent(),[2]}})})},NativeInteractionClient.prototype.handleRedirectPromise=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et,eo,ei,ea,eu,ed;return(0,eS.Jh)(this,function(eh){switch(eh.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(!(et=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ew.c4.NATIVE_REQUEST)),eo={method:ew.Ky.GetToken,request:et},ei=tm.nowSeconds(),eh.label=1;case 1:return eh.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(eo)];case 2:return ea=eh.sent(),this.validateNativeResponse(ea),eu=this.handleNativeResponse(ea,et,ei),this.browserStorage.setInteractionInProgress(!1),[2,eu];case 3:throw ed=eh.sent(),this.browserStorage.setInteractionInProgress(!1),ed;case 4:return[2]}})})},NativeInteractionClient.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},NativeInteractionClient.prototype.handleNativeResponse=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea,eu,ed,eh,ef,em,eg,ey,eC,ew,eA,eI,eR,eT,eE,eP,ek,eO,eM=this;return(0,eS.Jh)(this,function(eS){switch(eS.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),et.account.id!==eo.accountId)throw rc.createUserSwitchError();return ea=new tu(et.id_token||e_.gT.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(eo.authority)];case 1:if(ed=(eu=eS.sent()).getPreferredCache(),eh=tn.generateHomeAccountId(et.client_info||e_.gT.EMPTY_STRING,ep.Default,this.logger,this.browserCrypto,ea),ef=tn.createAccount(et.client_info,eh,ea,void 0,void 0,void 0,ed,et.account.id),this.browserStorage.setAccount(ef),em=et.scope?tc.fromString(et.scope):tc.fromString(eo.scope),ey=(eg=et.account.properties||{}).UID||ea.claims.oid||ea.claims.sub||e_.gT.EMPTY_STRING,eC=eg.TenantId||ea.claims.tid||e_.gT.EMPTY_STRING,eA=e_.hO.BEARER,eo.tokenType===e_.hO.POP)return[3,2];return[3,4];case 2:if(eA=e_.hO.POP,et.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),ew=et.shr,[3,5];if(eI=new t2(this.browserCrypto),eR={resourceRequestMethod:eo.resourceRequestMethod,resourceRequestUri:eo.resourceRequestUri,shrClaims:eo.shrClaims,shrNonce:eo.shrNonce},!eo.keyId)throw tr.e.createKeyIdMissingError();return[4,eI.signPopToken(et.access_token,eo.keyId,eR)];case 3:return ew=eS.sent(),[3,5];case 4:ew=et.access_token,eS.label=5;case 5:return eT=this.getMATSFromResponse(et),eE={authority:eu.canonicalAuthority,uniqueId:ey,tenantId:eC,scopes:em.asArray(),account:ef.getAccountInfo(),idToken:et.id_token,idTokenClaims:ea.claims,accessToken:ew,fromCache:!!eT&&this.isResponseFromCache(eT),expiresOn:new Date(1e3*Number(ei+et.expires_in)),tokenType:eA,correlationId:this.correlationId,state:et.state,fromNativeBroker:!0},eP=tf.createIdTokenEntity(eh,eo.authority,et.id_token||e_.gT.EMPTY_STRING,eo.clientId,ea.claims.tid||e_.gT.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(eP),ek=ei+(eA===e_.hO.POP?e_.gT.SHR_NONCE_VALIDITY:("string"==typeof et.expires_in?parseInt(et.expires_in,10):et.expires_in)||0),eO=tg.createAccessTokenEntity(eh,eo.authority,ew,eo.clientId,eC,em.printScopes(),ek,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(eO),this.browserStorage.removeAccountContext(ef).catch(function(et){eM.logger.error("Error occurred while removing account context from browser storage. "+et)}),[2,eE]}})})},NativeInteractionClient.prototype.validateNativeResponse=function(et){if(et.hasOwnProperty("access_token")&&et.hasOwnProperty("id_token")&&et.hasOwnProperty("client_info")&&et.hasOwnProperty("account")&&et.hasOwnProperty("scope")&&et.hasOwnProperty("expires_in"))return et;throw rc.createUnexpectedError("Response missing expected properties.")},NativeInteractionClient.prototype.getMATSFromResponse=function(et){if(et.properties.MATS)try{return JSON.parse(et.properties.MATS)}catch(et){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},NativeInteractionClient.prototype.isResponseFromCache=function(et){return void 0===et.is_cached?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!et.is_cached},NativeInteractionClient.prototype.initializeNativeRequest=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh,ep,ef,em,eg=this;return(0,eS.Jh)(this,function(ey){switch(ey.label){case 0:if(this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),eo=et.authority||this.config.auth.authority,(ei=new tI(eo)).validateAsUri(),ea=et.scopes,eu=(0,eS._T)(et,["scopes"]),(ed=new tc(ea||[])).appendScopes(e_.f_),eh=function(){switch(eg.apiId){case ew.WN.ssoSilent:case ew.WN.acquireTokenSilent_silentFlow:return eg.logger.trace("initializeNativeRequest: silent request sets prompt to none"),e_.NJ.NONE}if(!et.prompt){eg.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(et.prompt){case e_.NJ.NONE:case e_.NJ.CONSENT:case e_.NJ.LOGIN:return eg.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),et.prompt;default:throw eg.logger.trace("initializeNativeRequest: prompt = "+et.prompt+" is not compatible with native flow"),eN.createNativePromptParameterNotSupportedError()}},ep=(0,eS.pi)((0,eS.pi)({},eu),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:ei.urlString,scope:ed.printScopes(),redirectUri:this.getRedirectUri(et.redirectUri),prompt:eh(),correlationId:this.correlationId,tokenType:et.authenticationScheme,windowTitleSubstring:document.title,extraParameters:(0,eS.pi)((0,eS.pi)((0,eS.pi)({},et.extraQueryParameters),et.tokenQueryParameters),{telemetry:ew.BD.MATS_TELEMETRY}),extendedExpiryToken:!1}),et.authenticationScheme!==e_.hO.POP)return[3,2];return ef={resourceRequestUri:et.resourceRequestUri,resourceRequestMethod:et.resourceRequestMethod,shrClaims:et.shrClaims,shrNonce:et.shrNonce},[4,new t2(this.browserCrypto).generateCnf(ef)];case 1:em=ey.sent(),ep.reqCnf=em.reqCnfHash,ep.keyId=em.kid,ey.label=2;case 2:return[2,ep]}})})},NativeInteractionClient}(ri),rp=function(){function NativeMessageHandler(et,eo,ei){this.logger=et,this.handshakeTimeoutMs=eo,this.extensionId=ei,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this)}return NativeMessageHandler.prototype.sendMessage=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei=this;return(0,eS.Jh)(this,function(ea){return this.logger.trace("NativeMessageHandler - sendMessage called."),eo={channel:ew.BD.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:et},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(eo)),this.messageChannel.port1.postMessage(eo),[2,new Promise(function(et,ea){ei.resolvers.set(eo.responseId,{resolve:et,reject:ea})})]})})},NativeMessageHandler.createProvider=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea;return(0,eS.Jh)(this,function(eu){switch(eu.label){case 0:et.trace("NativeMessageHandler - createProvider called."),eu.label=1;case 1:return eu.trys.push([1,3,,5]),[4,(ei=new NativeMessageHandler(et,eo,ew.BD.PREFERRED_EXTENSION_ID)).sendHandshakeRequest()];case 2:return eu.sent(),[2,ei];case 3:return eu.sent(),[4,(ea=new NativeMessageHandler(et,eo)).sendHandshakeRequest()];case 4:return eu.sent(),[2,ea];case 5:return[2]}})})},NativeMessageHandler.prototype.sendHandshakeRequest=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et,eo=this;return(0,eS.Jh)(this,function(ei){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),et={channel:ew.BD.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:ew.Ky.HandshakeRequest}},this.messageChannel.port1.onmessage=function(et){eo.onChannelMessage(et)},window.postMessage(et,window.origin,[this.messageChannel.port2]),[2,new Promise(function(ei,ea){eo.handshakeResolvers.set(et.responseId,{resolve:ei,reject:ea}),eo.timeoutId=window.setTimeout(function(){window.removeEventListener("message",eo.windowListener,!1),eo.messageChannel.port1.close(),eo.messageChannel.port2.close(),ea(eN.createNativeHandshakeTimeoutError()),eo.handshakeResolvers.delete(et.responseId)},eo.handshakeTimeoutMs)})]})})},NativeMessageHandler.prototype.onWindowMessage=function(et){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),et.source===window){var eo=et.data;if(eo.channel&&eo.channel===ew.BD.CHANNEL_ID&&(!eo.extensionId||eo.extensionId===this.extensionId)&&eo.body.method===ew.Ky.HandshakeRequest){this.logger.verbose(eo.extensionId?"Extension with id: "+eo.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var ei=this.handshakeResolvers.get(eo.responseId);ei&&ei.reject(eN.createNativeExtensionNotInstalledError())}}},NativeMessageHandler.prototype.onChannelMessage=function(et){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var eo=et.data,ei=this.resolvers.get(eo.responseId),ea=this.handshakeResolvers.get(eo.responseId);try{var eu=eo.body.method;if(eu===ew.Ky.Response){if(!ei)return;var ed=eo.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(ed)),"Success"!==ed.status)ei.reject(rc.createError(ed.code,ed.description,ed.ext));else if(ed.result)ed.result.code&&ed.result.description?ei.reject(rc.createError(ed.result.code,ed.result.description,ed.result.ext)):ei.resolve(ed.result);else throw eI.l.createUnexpectedError("Event does not contain result.");this.resolvers.delete(eo.responseId)}else if(eu===ew.Ky.HandshakeResponse){if(!ea)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=eo.extensionId,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),ea.resolve(),this.handshakeResolvers.delete(eo.responseId)}}catch(eo){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+eo.toString()),this.logger.errorPii("Unable to parse "+et),ei?ei.reject(eo):ea&&ea.reject(eo)}},NativeMessageHandler.isNativeAvailable=function(et,eo,ei,ea){if(eo.trace("isNativeAvailable called"),!et.system.allowNativeBroker)return eo.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!ei)return eo.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(ea)switch(ea){case e_.hO.BEARER:case e_.hO.POP:eo.trace("isNativeAvailable: authenticationScheme is supported, returning true");break;default:return eo.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},NativeMessageHandler}(),rf=function(){function InteractionHandler(et,eo,ei,ea){this.authModule=et,this.browserStorage=eo,this.authCodeRequest=ei,this.logger=ea}return InteractionHandler.prototype.handleCodeResponseFromHash=function(et,eo,ei,ea){return(0,eS.mG)(this,void 0,void 0,function(){var eu,ed,eh;return(0,eS.Jh)(this,function(ep){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),eU.x.isEmpty(et))throw eN.createEmptyHashError(et);if(eu=this.browserStorage.generateStateKey(eo),!(ed=this.browserStorage.getTemporaryCache(eu)))throw tr.e.createStateNotFoundError("Cached State");try{eh=this.authModule.handleFragmentResponse(et,ed)}catch(et){if(et instanceof e9&&et.subError===eL.userCancelledError.code)throw eN.createUserCancelledError();throw et}return[2,this.handleCodeResponseFromServer(eh,eo,ei,ea)]})})},InteractionHandler.prototype.handleCodeResponseFromServer=function(et,eo,ei,ea,eu){return void 0===eu&&(eu=!0),(0,eS.mG)(this,void 0,void 0,function(){var ed,eh,ep,ef,em,eg;return(0,eS.Jh)(this,function(ey){switch(ey.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),ed=this.browserStorage.generateStateKey(eo),!(eh=this.browserStorage.getTemporaryCache(ed)))throw tr.e.createStateNotFoundError("Cached State");if(ep=this.browserStorage.generateNonceKey(eh),ef=this.browserStorage.getTemporaryCache(ep),this.authCodeRequest.code=et.code,!et.cloud_instance_host_name)return[3,2];return[4,this.updateTokenEndpointAuthority(et.cloud_instance_host_name,ei,ea)];case 1:ey.sent(),ey.label=2;case 2:return eu&&(et.nonce=ef||void 0),et.state=eh,et.client_info?this.authCodeRequest.clientInfo=et.client_info:(em=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=em),[4,this.authModule.acquireToken(this.authCodeRequest,et)];case 3:return eg=ey.sent(),this.browserStorage.cleanRequestByState(eo),[2,eg]}})})},InteractionHandler.prototype.updateTokenEndpointAuthority=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea,eu;return(0,eS.Jh)(this,function(ed){switch(ed.label){case 0:return ea="https://"+et+"/"+eo.tenant+"/",[4,rn.createDiscoveredInstance(ea,ei,this.browserStorage,eo.options)];case 1:return eu=ed.sent(),this.authModule.updateAuthority(eu),[2]}})})},InteractionHandler.prototype.checkCcsCredentials=function(){var et=this.browserStorage.getTemporaryCache(ew.c4.CCS_CREDENTIAL,!0);if(et)try{return JSON.parse(et)}catch(eo){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+et)}return null},InteractionHandler}(),rm=function(et){function PopupClient(eo,ei,ea,eu,ed,eh,ep,ef,em,eg){var ey=et.call(this,eo,ei,ea,eu,ed,eh,ep,em,eg)||this;return ey.unloadWindow=ey.unloadWindow.bind(ey),ey.nativeStorage=ef,ey}return(0,eS.ZT)(PopupClient,et),PopupClient.prototype.acquireToken=function(et){try{var eo=this.generatePopupName(et.scopes||e_.f_,et.authority||this.config.auth.authority),ei=et.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(et,eo,ei);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var ea=this.openSizedPopup("about:blank",eo,ei);return this.acquireTokenPopupAsync(et,eo,ei,ea)}catch(et){return Promise.reject(et)}},PopupClient.prototype.logout=function(et){try{this.logger.verbose("logoutPopup called");var eo=this.initializeLogoutRequest(et),ei=this.generateLogoutPopupName(eo),ea=et&&et.authority,eu=et&&et.mainWindowRedirectUri,ed=(null==et?void 0:et.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(eo,ei,ed,ea,void 0,eu);this.logger.verbose("asyncPopup set to false, opening popup");var eh=this.openSizedPopup("about:blank",ei,ed);return this.logoutPopupAsync(eo,ei,ed,ea,eh,eu)}catch(et){return Promise.reject(et)}},PopupClient.prototype.acquireTokenPopupAsync=function(et,eo,ei,ea){return(0,eS.mG)(this,void 0,void 0,function(){var ed,eh,ep,ef,em,eg,ey,eC,eA,eR,eT,eE,eP,ek,eO,eM,eD=this;return(0,eS.Jh)(this,function(eU){switch(eU.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),ed=this.initializeServerTelemetryManager(ew.WN.acquireTokenPopup),[4,this.initializeAuthorizationRequest(et,ew.s_.Popup)];case 1:eh=eU.sent(),this.browserStorage.updateCacheEntries(eh.state,eh.nonce,eh.authority,eh.loginHint||e_.gT.EMPTY_STRING,eh.account||null),eU.label=2;case 2:return eU.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(eh)];case 3:return ep=eU.sent(),[4,this.createAuthCodeClient(ed,eh.authority,eh.azureCloudOptions)];case 4:return ef=eU.sent(),this.logger.verbose("Auth code client created"),em=rp.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,et.authenticationScheme),eg=void 0,em&&(eg=this.performanceClient.startMeasurement(eu.FetchAccountIdWithNativeBroker,et.correlationId)),[4,ef.getAuthCodeUrl((0,eS.pi)((0,eS.pi)({},eh),{nativeBroker:em}))];case 5:return ey=eU.sent(),eC=new rf(ef,this.browserStorage,ep,this.logger),eA={popup:ea,popupName:eo,popupWindowAttributes:ei},eR=this.initiateAuthRequest(ey,eA),this.eventHandler.emitEvent(tJ.t.POPUP_OPENED,ew.s_.Popup,{popupWindow:eR},null),[4,this.monitorPopupForHash(eR)];case 6:if(eT=eU.sent(),eE=tI.getDeserializedHash(eT),eP=this.validateAndExtractStateFromHash(eE,ew.s_.Popup,eh.correlationId),t$.removeThrottle(this.browserStorage,this.config.auth.clientId,ep),eE.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),eg&&eg.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw eN.createNativeConnectionNotEstablishedError();return ek=new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ew.WN.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,eE.accountId,this.nativeStorage,eh.correlationId),eO=t_.parseRequestState(this.browserCrypto,eP).userRequestState,[2,ek.acquireToken((0,eS.pi)((0,eS.pi)({},eh),{state:eO,prompt:void 0})).finally(function(){eD.browserStorage.cleanRequestByState(eP)})]}return[4,eC.handleCodeResponseFromHash(eT,eP,ef.authority,this.networkClient)];case 7:return[2,eU.sent()];case 8:throw eM=eU.sent(),ea&&ea.close(),eM instanceof eI.l&&eM.setCorrelationId(this.correlationId),ed.cacheFailedRequest(eM),this.browserStorage.cleanRequestByState(eh.state),eM;case 9:return[2]}})})},PopupClient.prototype.logoutPopupAsync=function(et,eo,ei,ea,eu,ed){return(0,eS.mG)(this,void 0,void 0,function(){var eh,ep,ef,em,eg,ey,eC;return(0,eS.Jh)(this,function(eS){switch(eS.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(tJ.t.LOGOUT_START,ew.s_.Popup,et),eh=this.initializeServerTelemetryManager(ew.WN.logoutPopup),eS.label=1;case 1:return eS.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(et.account)];case 2:return eS.sent(),[4,this.createAuthCodeClient(eh,ea)];case 3:return ep=eS.sent(),this.logger.verbose("Auth code client created"),ef=ep.getLogoutUri(et),this.eventHandler.emitEvent(tJ.t.LOGOUT_SUCCESS,ew.s_.Popup,et),em=this.openPopup(ef,{popupName:eo,popupWindowAttributes:ei,popup:eu}),this.eventHandler.emitEvent(tJ.t.POPUP_OPENED,ew.s_.Popup,{popupWindow:em},null),[4,this.waitForLogoutPopup(em)];case 4:return eS.sent(),ed?(eg={apiId:ew.WN.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},ey=tI.getAbsoluteUrl(ed,tF.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+ey),this.navigationClient.navigateInternal(ey,eg)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw eC=eS.sent(),eu&&eu.close(),eC instanceof eI.l&&eC.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(tJ.t.LOGOUT_FAILURE,ew.s_.Popup,null,eC),this.eventHandler.emitEvent(tJ.t.LOGOUT_END,ew.s_.Popup),eh.cacheFailedRequest(eC),eC;case 6:return this.eventHandler.emitEvent(tJ.t.LOGOUT_END,ew.s_.Popup),[2]}})})},PopupClient.prototype.initiateAuthRequest=function(et,eo){if(!eU.x.isEmpty(et))return this.logger.infoPii("Navigate to: "+et),this.openPopup(et,eo);throw this.logger.error("Navigate url is empty"),eN.createEmptyNavigationUriError()},PopupClient.prototype.monitorPopupForHash=function(et){var eo=this;return new Promise(function(ei,ea){var eu=eo.config.system.windowHashTimeout/ew.qx.POLL_INTERVAL_MS,ed=0;eo.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var eh=setInterval(function(){if(et.closed){eo.logger.error("PopupHandler.monitorPopupForHash - window closed"),eo.cleanPopup(),clearInterval(eh),ea(eN.createUserCancelledError());return}var ep=e_.gT.EMPTY_STRING,ef=e_.gT.EMPTY_STRING;try{ep=et.location.href,ef=et.location.hash}catch(et){}!eU.x.isEmpty(ep)&&"about:blank"!==ep&&(eo.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),ed++,ef?(eo.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(eh),eo.cleanPopup(et),tI.hashContainsKnownProperties(ef)?(eo.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),ei(ef)):(eo.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."),eo.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+ef),ea(eN.createHashDoesNotContainKnownPropertiesError()))):ed>eu&&(eo.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(eh),ea(eN.createMonitorPopupTimeoutError())))},ew.qx.POLL_INTERVAL_MS)})},PopupClient.prototype.waitForLogoutPopup=function(et){var eo=this;return new Promise(function(ei){eo.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var ea=setInterval(function(){et.closed&&(eo.logger.error("PopupHandler.waitForLogoutPopup - window closed"),eo.cleanPopup(),clearInterval(ea),ei());var eu=e_.gT.EMPTY_STRING;try{eu=et.location.href}catch(et){}eU.x.isEmpty(eu)||"about:blank"===eu||(eo.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(ea),eo.cleanPopup(et),ei())},ew.qx.POLL_INTERVAL_MS)})},PopupClient.prototype.openPopup=function(et,eo){try{var ei=void 0;if(eo.popup?(ei=eo.popup,this.logger.verbosePii("Navigating popup window to: "+et),ei.location.assign(et)):void 0===eo.popup&&(this.logger.verbosePii("Opening popup window to: "+et),ei=this.openSizedPopup(et,eo.popupName,eo.popupWindowAttributes)),!ei)throw eN.createEmptyWindowCreatedError();return ei.focus&&ei.focus(),this.currentWindow=ei,window.addEventListener("beforeunload",this.unloadWindow),ei}catch(et){throw this.logger.error("error opening popup "+et.message),this.browserStorage.setInteractionInProgress(!1),eN.createPopupWindowError(et.toString())}},PopupClient.prototype.openSizedPopup=function(et,eo,ei){var ea,eu,ed,eh,ep=window.screenLeft?window.screenLeft:window.screenX,ef=window.screenTop?window.screenTop:window.screenY,em=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,eg=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ey=null===(ea=ei.popupSize)||void 0===ea?void 0:ea.width,eC=null===(eu=ei.popupSize)||void 0===eu?void 0:eu.height,eS=null===(ed=ei.popupPosition)||void 0===ed?void 0:ed.top,e_=null===(eh=ei.popupPosition)||void 0===eh?void 0:eh.left;return(!ey||ey<0||ey>em)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),ey=ew.qx.POPUP_WIDTH),(!eC||eC<0||eC>eg)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),eC=ew.qx.POPUP_HEIGHT),(!eS||eS<0||eS>eg)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),eS=Math.max(0,eg/2-ew.qx.POPUP_HEIGHT/2+ef)),(!e_||e_<0||e_>em)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),e_=Math.max(0,em/2-ew.qx.POPUP_WIDTH/2+ep)),window.open(et,eo,"width="+ey+", height="+eC+", top="+eS+", left="+e_+", scrollbars=yes")},PopupClient.prototype.unloadWindow=function(et){this.browserStorage.cleanRequestByInteractionType(ew.s_.Popup),this.currentWindow&&this.currentWindow.close(),et.preventDefault()},PopupClient.prototype.cleanPopup=function(et){et&&et.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},PopupClient.prototype.generatePopupName=function(et,eo){return ew.qx.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+et.join("-")+"."+eo+"."+this.correlationId},PopupClient.prototype.generateLogoutPopupName=function(et){var eo=et.account&&et.account.homeAccountId;return ew.qx.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+eo+"."+this.correlationId},PopupClient}(ra),rg=function(et){function RedirectHandler(eo,ei,ea,eu,ed){var eh=et.call(this,eo,ei,ea,eu)||this;return eh.browserCrypto=ed,eh}return(0,eS.ZT)(RedirectHandler,et),RedirectHandler.prototype.initiateAuthRequest=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei;return(0,eS.Jh)(this,function(ea){switch(ea.label){case 0:if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),eU.x.isEmpty(et))return[3,7];if(eo.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ew.c4.ORIGIN_URI,eo.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ew.c4.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+et),ei={apiId:ew.WN.acquireTokenRedirect,timeout:eo.redirectTimeout,noHistory:!1},"function"!=typeof eo.onRedirectNavigate)return[3,4];if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!(!1!==eo.onRedirectNavigate(et)))return[3,2];return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,eo.navigationClient.navigateExternal(et,ei)];case 1:case 5:return ea.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,eo.navigationClient.navigateExternal(et,ei)];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),eN.createEmptyNavigationUriError();case 8:return[2]}})})},RedirectHandler.prototype.handleCodeResponseFromHash=function(et,eo,ei,ea){return(0,eS.mG)(this,void 0,void 0,function(){var eu,ed,eh,ep,ef,em,eg;return(0,eS.Jh)(this,function(ey){switch(ey.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),eU.x.isEmpty(et))throw eN.createEmptyHashError(et);if(this.browserStorage.setInteractionInProgress(!1),eu=this.browserStorage.generateStateKey(eo),!(ed=this.browserStorage.getTemporaryCache(eu)))throw tr.e.createStateNotFoundError("Cached State");try{eh=this.authModule.handleFragmentResponse(et,ed)}catch(et){if(et instanceof e9&&et.subError===eL.userCancelledError.code)throw eN.createUserCancelledError();throw et}if(ep=this.browserStorage.generateNonceKey(ed),ef=this.browserStorage.getTemporaryCache(ep),this.authCodeRequest.code=eh.code,!eh.cloud_instance_host_name)return[3,2];return[4,this.updateTokenEndpointAuthority(eh.cloud_instance_host_name,ei,ea)];case 1:ey.sent(),ey.label=2;case 2:return eh.nonce=ef||void 0,eh.state=ed,eh.client_info?this.authCodeRequest.clientInfo=eh.client_info:(em=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=em),[4,this.authModule.acquireToken(this.authCodeRequest,eh)];case 3:return eg=ey.sent(),this.browserStorage.cleanRequestByState(eo),[2,eg]}})})},RedirectHandler}(rf),ry=function(et){function RedirectClient(eo,ei,ea,eu,ed,eh,ep,ef,em,eg){var ey=et.call(this,eo,ei,ea,eu,ed,eh,ep,em,eg)||this;return ey.nativeStorage=ef,ey}return(0,eS.ZT)(RedirectClient,et),RedirectClient.prototype.acquireToken=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh,ep,ef,em,eg=this;return(0,eS.Jh)(this,function(ey){switch(ey.label){case 0:return[4,this.initializeAuthorizationRequest(et,ew.s_.Redirect)];case 1:eo=ey.sent(),this.browserStorage.updateCacheEntries(eo.state,eo.nonce,eo.authority,eo.loginHint||e_.gT.EMPTY_STRING,eo.account||null),ei=this.initializeServerTelemetryManager(ew.WN.acquireTokenRedirect),ea=function(et){et.persisted&&(eg.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),eg.browserStorage.cleanRequestByState(eo.state))},ey.label=2;case 2:return ey.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(eo)];case 3:return eu=ey.sent(),[4,this.createAuthCodeClient(ei,eo.authority,eo.azureCloudOptions)];case 4:return ed=ey.sent(),this.logger.verbose("Auth code client created"),eh=new rg(ed,this.browserStorage,eu,this.logger,this.browserCrypto),[4,ed.getAuthCodeUrl((0,eS.pi)((0,eS.pi)({},eo),{nativeBroker:rp.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,et.authenticationScheme)}))];case 5:return ep=ey.sent(),ef=this.getRedirectStartPage(et.redirectStartPage),this.logger.verbosePii("Redirect start page: "+ef),window.addEventListener("pageshow",ea),[4,eh.initiateAuthRequest(ep,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:ef,onRedirectNavigate:et.onRedirectNavigate})];case 6:return[2,ey.sent()];case 7:throw(em=ey.sent())instanceof eI.l&&em.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",ea),ei.cacheFailedRequest(em),this.browserStorage.cleanRequestByState(eo.state),em;case 8:return[2]}})})},RedirectClient.prototype.handleRedirectPromise=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh,ep,ef,em,eg;return(0,eS.Jh)(this,function(ey){switch(ey.label){case 0:eo=this.initializeServerTelemetryManager(ew.WN.handleRedirectPromise),ey.label=1;case 1:if(ey.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(!(ei=this.getRedirectResponseHash(et||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(ew.s_.Redirect),[2,null];ea=void 0;try{eu=tI.getDeserializedHash(ei),ea=this.validateAndExtractStateFromHash(eu,ew.s_.Redirect),this.logger.verbose("State extracted from hash")}catch(et){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+et),this.browserStorage.cleanRequestByInteractionType(ew.s_.Redirect),[2,null]}if(ed=this.browserStorage.getTemporaryCache(ew.c4.ORIGIN_URI,!0)||e_.gT.EMPTY_STRING,!(tI.removeHashFromUrl(ed)===tI.removeHashFromUrl(window.location.href)&&this.config.auth.navigateToLoginRequestUrl))return[3,3];return this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(ei,ea,eo)];case 2:return eh=ey.sent(),ed.indexOf("#")>-1&&tF.replaceHash(ed),[2,eh];case 3:if(this.config.auth.navigateToLoginRequestUrl)return[3,4];return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(ei,ea,eo)];case 4:if(!(!tF.isInIframe()||this.config.system.allowRedirectInIframe))return[3,9];if(this.browserStorage.setTemporaryCache(ew.c4.URL_HASH,ei,!0),ep={apiId:ew.WN.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},ef=!0,!(!ed||"null"===ed))return[3,6];return em=tF.getHomepage(),this.browserStorage.setTemporaryCache(ew.c4.ORIGIN_URI,em,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(em,ep)];case 5:return ef=ey.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+ed),[4,this.navigationClient.navigateInternal(ed,ep)];case 7:ef=ey.sent(),ey.label=8;case 8:if(!ef)return[2,this.handleHash(ei,ea,eo)];ey.label=9;case 9:return[2,null];case 10:throw(eg=ey.sent())instanceof eI.l&&eg.setCorrelationId(this.correlationId),eo.cacheFailedRequest(eg),this.browserStorage.cleanRequestByInteractionType(ew.s_.Redirect),eg;case 11:return[2]}})})},RedirectClient.prototype.getRedirectResponseHash=function(et){if(this.logger.verbose("getRedirectResponseHash called"),tI.hashContainsKnownProperties(et))return tF.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),et;var eo=this.browserStorage.getTemporaryCache(ew.c4.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ew.c4.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),eo},RedirectClient.prototype.handleHash=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea,eu,ed,eh,ep,ef,em=this;return(0,eS.Jh)(this,function(eg){switch(eg.label){case 0:if(ea=this.browserStorage.getCachedRequest(eo,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(eu=tI.getDeserializedHash(et)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw eN.createNativeConnectionNotEstablishedError();return ed=new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ew.WN.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,eu.accountId,this.browserStorage,ea.correlationId),eh=t_.parseRequestState(this.browserCrypto,eo).userRequestState,[2,ed.acquireToken((0,eS.pi)((0,eS.pi)({},ea),{state:eh,prompt:void 0})).finally(function(){em.browserStorage.cleanRequestByState(eo)})]}if(!(ep=this.browserStorage.getCachedAuthority(eo)))throw eN.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(ei,ep)];case 1:return ef=eg.sent(),this.logger.verbose("Auth code client created"),t$.removeThrottle(this.browserStorage,this.config.auth.clientId,ea),[4,new rg(ef,this.browserStorage,ea,this.logger,this.browserCrypto).handleCodeResponseFromHash(et,eo,ef.authority,this.networkClient)];case 2:return[2,eg.sent()]}})})},RedirectClient.prototype.logout=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh;return(0,eS.Jh)(this,function(ep){switch(ep.label){case 0:this.logger.verbose("logoutRedirect called"),eo=this.initializeLogoutRequest(et),ei=this.initializeServerTelemetryManager(ew.WN.logout),ep.label=1;case 1:return ep.trys.push([1,10,,11]),this.eventHandler.emitEvent(tJ.t.LOGOUT_START,ew.s_.Redirect,et),[4,this.clearCacheOnLogout(eo.account)];case 2:return ep.sent(),ea={apiId:ew.WN.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(ei,et&&et.authority)];case 3:if(eu=ep.sent(),this.logger.verbose("Auth code client created"),ed=eu.getLogoutUri(eo),this.eventHandler.emitEvent(tJ.t.LOGOUT_SUCCESS,ew.s_.Redirect,eo),!(et&&"function"==typeof et.onRedirectNavigate))return[3,7];if(!(!1!==et.onRedirectNavigate(ed)))return[3,5];return this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(ed,ea)];case 4:return ep.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),ep.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(ed,ea)];case 8:return ep.sent(),[2];case 9:return[3,11];case 10:throw(eh=ep.sent())instanceof eI.l&&eh.setCorrelationId(this.correlationId),ei.cacheFailedRequest(eh),this.eventHandler.emitEvent(tJ.t.LOGOUT_FAILURE,ew.s_.Redirect,null,eh),this.eventHandler.emitEvent(tJ.t.LOGOUT_END,ew.s_.Redirect),eh;case 11:return this.eventHandler.emitEvent(tJ.t.LOGOUT_END,ew.s_.Redirect),[2]}})})},RedirectClient.prototype.getRedirectStartPage=function(et){var eo=et||window.location.href;return tI.getAbsoluteUrl(eo,tF.getCurrentUri())},RedirectClient}(ra),rv=function(et){function SilentHandler(eo,ei,ea,eu,ed){var eh=et.call(this,eo,ei,ea,eu)||this;return eh.navigateFrameWait=ed,eh}return(0,eS.ZT)(SilentHandler,et),SilentHandler.prototype.initiateAuthRequest=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:if(eU.x.isEmpty(et))throw this.logger.info("Navigate url is empty"),eN.createEmptyNavigationUriError();if(!this.navigateFrameWait)return[3,2];return[4,this.loadFrame(et)];case 1:return eo=ei.sent(),[3,3];case 2:eo=this.loadFrameSync(et),ei.label=3;case 3:return[2,eo]}})})},SilentHandler.prototype.monitorIframeForHash=function(et,eo){var ei=this;return new Promise(function(ea,eu){eo<tH&&ei.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+eo+"ms) than the default ("+tH+"ms). This may result in timeouts.");var ed=window.performance.now()+eo,eh=setInterval(function(){if(window.performance.now()>ed){ei.removeHiddenIframe(et),clearInterval(eh),eu(eN.createMonitorIframeTimeoutError());return}var eo=e_.gT.EMPTY_STRING,ep=et.contentWindow;try{eo=ep?ep.location.href:e_.gT.EMPTY_STRING}catch(et){}if(!eU.x.isEmpty(eo)){var ef=ep?ep.location.hash:e_.gT.EMPTY_STRING;if(tI.hashContainsKnownProperties(ef)){ei.removeHiddenIframe(et),clearInterval(eh),ea(ef);return}}},ew.qx.POLL_INTERVAL_MS)})},SilentHandler.prototype.loadFrame=function(et){var eo=this;return new Promise(function(ei,ea){var eu=eo.createHiddenIframe();setTimeout(function(){if(!eu){ea("Unable to load iframe");return}eu.src=et,ei(eu)},eo.navigateFrameWait)})},SilentHandler.prototype.loadFrameSync=function(et){var eo=this.createHiddenIframe();return eo.src=et,eo},SilentHandler.prototype.createHiddenIframe=function(){var et=document.createElement("iframe");return et.style.visibility="hidden",et.style.position="absolute",et.style.width=et.style.height="0",et.style.border="0",et.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(et),et},SilentHandler.prototype.removeHiddenIframe=function(et){document.body===et.parentNode&&document.body.removeChild(et)},SilentHandler}(rf),rb=function(et){function SilentIframeClient(eo,ei,ea,eu,ed,eh,ep,ef,em,eg,ey){var eC=et.call(this,eo,ei,ea,eu,ed,eh,ef,eg,ey)||this;return eC.apiId=ep,eC.nativeStorage=em,eC}return(0,eS.ZT)(SilentIframeClient,et),SilentIframeClient.prototype.acquireToken=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,ed,eh;return(0,eS.Jh)(this,function(ep){switch(ep.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),eo=this.performanceClient.startMeasurement(eu.SilentIframeClientAcquireToken,et.correlationId),eU.x.isEmpty(et.loginHint)&&eU.x.isEmpty(et.sid)&&(!et.account||eU.x.isEmpty(et.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),et.prompt&&et.prompt!==e_.NJ.NONE)throw eo.endMeasurement({success:!1}),eN.createSilentPromptValueError(et.prompt);return[4,this.initializeAuthorizationRequest((0,eS.pi)((0,eS.pi)({},et),{prompt:e_.NJ.NONE}),ew.s_.Silent)];case 1:ei=ep.sent(),this.browserStorage.updateCacheEntries(ei.state,ei.nonce,ei.authority,ei.loginHint||e_.gT.EMPTY_STRING,ei.account||null),ea=this.initializeServerTelemetryManager(this.apiId),ep.label=2;case 2:return ep.trys.push([2,5,,6]),[4,this.createAuthCodeClient(ea,ei.authority,ei.azureCloudOptions)];case 3:return ed=ep.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(ed,ei).then(function(et){return eo.endMeasurement({success:!0,fromCache:!1}),et})];case 4:return[2,ep.sent()];case 5:throw(eh=ep.sent())instanceof eI.l&&eh.setCorrelationId(this.correlationId),ea.cacheFailedRequest(eh),this.browserStorage.cleanRequestByState(ei.state),eo.endMeasurement({errorCode:eh instanceof eI.l&&eh.errorCode||void 0,subErrorCode:eh instanceof eI.l&&eh.subError||void 0,success:!1}),eh;case 6:return[2]}})})},SilentIframeClient.prototype.logout=function(){return Promise.reject(eN.createSilentLogoutUnsupportedError())},SilentIframeClient.prototype.silentTokenHelper=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,eu,ed,eh,ep,ef,em,eg,ey=this;return(0,eS.Jh)(this,function(eC){switch(eC.label){case 0:return[4,this.initializeAuthorizationCodeRequest(eo)];case 1:return ei=eC.sent(),[4,et.getAuthCodeUrl((0,eS.pi)((0,eS.pi)({},eo),{nativeBroker:rp.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,eo.authenticationScheme)}))];case 2:return ea=eC.sent(),[4,(eu=new rv(et,this.browserStorage,ei,this.logger,this.config.system.navigateFrameWait)).initiateAuthRequest(ea)];case 3:return ed=eC.sent(),[4,eu.monitorIframeForHash(ed,this.config.system.iframeHashTimeout)];case 4:if(eh=eC.sent(),ep=tI.getDeserializedHash(eh),ef=this.validateAndExtractStateFromHash(ep,ew.s_.Silent,ei.correlationId),ep.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw eN.createNativeConnectionNotEstablishedError();return em=new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,ep.accountId,this.browserStorage,this.correlationId),eg=t_.parseRequestState(this.browserCrypto,ef).userRequestState,[2,em.acquireToken((0,eS.pi)((0,eS.pi)({},eo),{state:eg,prompt:e_.NJ.NONE})).finally(function(){ey.browserStorage.cleanRequestByState(ef)})]}return[2,eu.handleCodeResponseFromHash(eh,ef,et.authority,this.networkClient)]}})})},SilentIframeClient}(ra),rC=function(et){function SilentRefreshClient(){return null!==et&&et.apply(this,arguments)||this}return(0,eS.ZT)(SilentRefreshClient,et),SilentRefreshClient.prototype.acquireToken=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,ed,eh,ep=this;return(0,eS.Jh)(this,function(ef){switch(ef.label){case 0:return ei=[(0,eS.pi)({},et)],[4,this.initializeBaseRequest(et)];case 1:return eo=eS.pi.apply(void 0,ei.concat([ef.sent()])),ea=this.performanceClient.startMeasurement(eu.SilentRefreshClientAcquireToken,eo.correlationId),ed=this.initializeServerTelemetryManager(ew.WN.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(ed,eo.authority,eo.azureCloudOptions)];case 2:return eh=ef.sent(),this.logger.verbose("Refresh token client created"),[2,eh.acquireTokenByRefreshToken(eo).then(function(et){return ea.endMeasurement({success:!0,fromCache:et.fromCache}),et}).catch(function(et){throw et instanceof eI.l&&et.setCorrelationId(ep.correlationId),ed.cacheFailedRequest(et),ea.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),et})]}})})},SilentRefreshClient.prototype.logout=function(){return Promise.reject(eN.createSilentLogoutUnsupportedError())},SilentRefreshClient.prototype.createRefreshTokenClient=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){var ea;return(0,eS.Jh)(this,function(eu){switch(eu.label){case 0:return[4,this.getClientConfiguration(et,eo,ei)];case 1:return ea=eu.sent(),[2,new ru(ea,this.performanceClient)]}})})},SilentRefreshClient}(ra),rS=function(){function TokenCache(et,eo,ei,ea){this.isBrowserEnvironment="undefined"!=typeof window,this.config=et,this.storage=eo,this.logger=ei,this.cryptoObj=ea}return TokenCache.prototype.loadExternalTokens=function(et,eo,ei){if(this.logger.info("TokenCache - loadExternalTokens called"),!eo.id_token)throw eN.createUnableToLoadTokenError("Please ensure server response includes id token.");if(et.account)this.loadIdToken(eo.id_token,et.account.homeAccountId,et.account.environment,et.account.tenantId,ei),this.loadAccessToken(et,eo,et.account.homeAccountId,et.account.environment,et.account.tenantId,ei);else if(et.authority){var ea=rr.generateAuthority(et.authority,et.azureCloudOptions),eu={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},ed=new rr(ea,this.config.system.networkClient,this.storage,eu);if(ei.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),this.loadIdToken(eo.id_token,ei.clientInfo,ed.hostnameAndPort,ed.tenant,ei),this.loadAccessToken(et,eo,ei.clientInfo,ed.hostnameAndPort,ed.tenant,ei);else if(eo.client_info)this.logger.trace("TokenCache - homeAccountId from response"),this.loadIdToken(eo.id_token,eo.client_info,ed.hostnameAndPort,ed.tenant,ei),this.loadAccessToken(et,eo,eo.client_info,ed.hostnameAndPort,ed.tenant,ei);else throw eN.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw eN.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.")},TokenCache.prototype.loadIdToken=function(et,eo,ei,ea,eu){var ed=tf.createIdTokenEntity(eo,ei,et,this.config.auth.clientId,ea),eh=new tu(et,this.cryptoObj),ep=eu.clientInfo?tn.createAccount(eu.clientInfo,eo,eh,void 0,void 0,void 0,ei):tn.createGenericAccount(eo,eh,void 0,void 0,void 0,ei);if(this.isBrowserEnvironment)this.logger.verbose("TokenCache - loading id token"),this.storage.setAccount(ep),this.storage.setIdTokenCredential(ed);else throw eN.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},TokenCache.prototype.loadAccessToken=function(et,eo,ei,ea,eu,ed){if(!eo.access_token){this.logger.verbose("TokenCache - No access token provided for caching");return}if(!eo.expires_in)throw eN.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!ed.extendedExpiresOn)throw eN.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var eh=new tc(et.scopes).printScopes(),ep=ed.expiresOn||eo.expires_in+new Date().getTime()/1e3,ef=ed.extendedExpiresOn,em=tg.createAccessTokenEntity(ei,ea,eo.access_token,this.config.auth.clientId,eu,eh,ep,ef,this.cryptoObj);if(this.isBrowserEnvironment)this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(em);else throw eN.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},TokenCache}(),r_=function(et){function HybridSpaAuthorizationCodeClient(eo){var ei=et.call(this,eo)||this;return ei.includeRedirectUri=!1,ei}return(0,eS.ZT)(HybridSpaAuthorizationCodeClient,et),HybridSpaAuthorizationCodeClient}(t6),rw=function(et){function SilentAuthCodeClient(eo,ei,ea,eu,ed,eh,ep,ef,em,eg){var ey=et.call(this,eo,ei,ea,eu,ed,eh,ef,em,eg)||this;return ey.apiId=ep,ey}return(0,eS.ZT)(SilentAuthCodeClient,et),SilentAuthCodeClient.prototype.acquireToken=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh;return(0,eS.Jh)(this,function(ep){switch(ep.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!et.code)throw eN.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(et,ew.s_.Silent)];case 1:eo=ep.sent(),this.browserStorage.updateCacheEntries(eo.state,eo.nonce,eo.authority,eo.loginHint||e_.gT.EMPTY_STRING,eo.account||null),ei=this.initializeServerTelemetryManager(this.apiId),ep.label=2;case 2:return ep.trys.push([2,4,,5]),ea=(0,eS.pi)((0,eS.pi)({},eo),{code:et.code}),[4,this.getClientConfiguration(ei,eo.authority)];case 3:return eu=ep.sent(),ed=new r_(eu),this.logger.verbose("Auth code client created"),[2,new rv(ed,this.browserStorage,ea,this.logger,this.config.system.navigateFrameWait).handleCodeResponseFromServer({code:et.code,msgraph_host:et.msGraphHost,cloud_graph_host_name:et.cloudGraphHostName,cloud_instance_host_name:et.cloudInstanceHostName},eo.state,ed.authority,this.networkClient,!1)];case 4:throw(eh=ep.sent())instanceof eI.l&&eh.setCorrelationId(this.correlationId),ei.cacheFailedRequest(eh),this.browserStorage.cleanRequestByState(eo.state),eh;case 5:return[2]}})})},SilentAuthCodeClient.prototype.logout=function(){return Promise.reject(eN.createSilentLogoutUnsupportedError())},SilentAuthCodeClient}(ra),rA=function(){function BrowserPerformanceMeasurement(et,eo){this.correlationId=eo,this.measureName="msal.measure."+et+"."+this.correlationId,this.startMark="msal.start."+et+"."+this.correlationId,this.endMark="msal.end."+et+"."+this.correlationId}return BrowserPerformanceMeasurement.supportsBrowserPerformance=function(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName},BrowserPerformanceMeasurement.prototype.startMeasurement=function(){if(BrowserPerformanceMeasurement.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(et){}},BrowserPerformanceMeasurement.prototype.endMeasurement=function(){if(BrowserPerformanceMeasurement.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(et){}},BrowserPerformanceMeasurement.prototype.flushMeasurement=function(){if(BrowserPerformanceMeasurement.supportsBrowserPerformance())try{var et=window.performance.getEntriesByName(this.measureName,"measure");if(et.length>0){var eo=et[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),eo}}catch(et){}return null},BrowserPerformanceMeasurement}(),rI=function(et){function BrowserPerformanceClient(eo,ei,ea,eu,ed,eh){var ep=et.call(this,eo,ei,ea,eu,ed,eh)||this;return ep.browserCrypto=new ez(ep.logger),ep.guidGenerator=new ek(ep.browserCrypto),ep}return(0,eS.ZT)(BrowserPerformanceClient,et),BrowserPerformanceClient.prototype.startPerformanceMeasuremeant=function(et,eo){return new rA(et,eo)},BrowserPerformanceClient.prototype.generateId=function(){return this.guidGenerator.generateGuid()},BrowserPerformanceClient.prototype.getPageVisibility=function(){var et;return(null===(et=document.visibilityState)||void 0===et?void 0:et.toString())||null},BrowserPerformanceClient.prototype.startMeasurement=function(eo,ei){var ea=this,eu=this.getPageVisibility(),ed=et.prototype.startMeasurement.call(this,eo,ei);return(0,eS.pi)((0,eS.pi)({},ed),{endMeasurement:function(et){return ed.endMeasurement((0,eS.pi)({startPageVisibility:eu,endPageVisibility:ea.getPageVisibility()},et))}})},BrowserPerformanceClient}(eQ),rR=function(et){function PublicClientApplication(eo){var ei=et.call(this,eo)||this;return ei.activeSilentTokenRequests=new Map,ei}return(0,eS.ZT)(PublicClientApplication,et),PublicClientApplication.prototype.loginRedirect=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo;return(0,eS.Jh)(this,function(ei){return eo=this.getRequestCorrelationId(et),this.logger.verbose("loginRedirect called",eo),[2,this.acquireTokenRedirect((0,eS.pi)({correlationId:eo},et||ew.yo))]})})},PublicClientApplication.prototype.loginPopup=function(et){var eo=this.getRequestCorrelationId(et);return this.logger.verbose("loginPopup called",eo),this.acquireTokenPopup((0,eS.pi)({correlationId:eo},et||ew.yo))},PublicClientApplication.prototype.acquireTokenSilent=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,ed,eh,ep,ef=this;return(0,eS.Jh)(this,function(em){if(eo=this.getRequestCorrelationId(et),ei=this.performanceClient.startMeasurement(eu.AcquireTokenSilent,eo),this.preflightBrowserEnvironmentCheck(ew.s_.Silent),this.logger.verbose("acquireTokenSilent called",eo),!(ea=et.account||this.getActiveAccount()))throw eN.createNoAccountError();return(ed=JSON.stringify({clientId:this.config.auth.clientId,authority:et.authority||e_.gT.EMPTY_STRING,scopes:et.scopes,homeAccountIdentifier:ea.homeAccountId,claims:et.claims,authenticationScheme:et.authenticationScheme,resourceRequestMethod:et.resourceRequestMethod,resourceRequestUri:et.resourceRequestUri,shrClaims:et.shrClaims,sshKid:et.sshKid}),void 0===(eh=this.activeSilentTokenRequests.get(ed)))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",eo),ep=this.acquireTokenSilentAsync((0,eS.pi)((0,eS.pi)({},et),{correlationId:eo}),ea).then(function(et){return ef.activeSilentTokenRequests.delete(ed),ei.endMeasurement({success:!0,fromCache:et.fromCache,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length,isNativeBroker:et.fromNativeBroker}),ei.flushMeasurement(),et}).catch(function(et){throw ef.activeSilentTokenRequests.delete(ed),ei.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),ei.flushMeasurement(),et}),this.activeSilentTokenRequests.set(ed,ep),[2,ep]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",eo),ei.endMeasurement({success:!0}),ei.discardMeasurement(),[2,eh])})})},PublicClientApplication.prototype.acquireTokenSilentAsync=function(et,eo){return(0,eS.mG)(this,void 0,void 0,function(){var ei,ea,ed,eh,ep,ef=this;return(0,eS.Jh)(this,function(em){switch(em.label){case 0:if(this.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_START,ew.s_.Silent,et),ei=this.performanceClient.startMeasurement(eu.AcquireTokenSilentAsync,et.correlationId),!(rp.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,et.authenticationScheme)&&eo.nativeAccountId))return[3,1];return this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),ed=(0,eS.pi)((0,eS.pi)({},et),{account:eo}),ea=this.acquireTokenNative(ed,ew.WN.acquireTokenSilent_silentFlow).catch(function(eo){return(0,eS.mG)(ef,void 0,void 0,function(){return(0,eS.Jh)(this,function(ei){if(eo instanceof rc&&eo.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(et.correlationId).acquireToken(et)];throw eo})})}),[3,3];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),[4,(eh=this.createSilentCacheClient(et.correlationId)).initializeSilentRequest(et,eo)];case 2:ep=em.sent(),ea=eh.acquireToken(ep).catch(function(){return(0,eS.mG)(ef,void 0,void 0,function(){return(0,eS.Jh)(this,function(et){return[2,this.acquireTokenByRefreshToken(ep)]})})}),em.label=3;case 3:return[2,ea.then(function(et){return ef.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_SUCCESS,ew.s_.Silent,et),ei.endMeasurement({success:!0,fromCache:et.fromCache,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length,isNativeBroker:et.fromNativeBroker}),et}).catch(function(et){throw ef.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_FAILURE,ew.s_.Silent,null,et),ei.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),et})]}})})},PublicClientApplication}(function(){function ClientApplication(et){this.isBrowserEnvironment="undefined"!=typeof window,this.config=buildConfiguration(et,this.isBrowserEnvironment),this.initialized=!1,this.logger=new eZ.Y(this.config.system.loggerOptions,tW,tV),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 rI(this.config.auth.clientId,this.config.auth.authority,this.logger,tW,tV,this.config.telemetry.application):new e0(this.config.auth.clientId,this.config.auth.authority,this.logger,tW,tV,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new e$(this.logger,this.performanceClient):e4,this.eventHandler=new tY(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new tT(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):DEFAULT_BROWSER_CACHE_MANAGER(this.config.auth.clientId,this.logger);var eo={cacheLocation:ew.Ix.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new tT(this.config.auth.clientId,eo,this.browserCrypto,this.logger),this.tokenCache=new rS(this.config,this.browserStorage,this.logger,this.browserCrypto)}return ClientApplication.prototype.initialize=function(){return(0,eS.mG)(this,void 0,void 0,function(){var et,eo;return(0,eS.Jh)(this,function(ei){switch(ei.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(tJ.t.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];ei.label=1;case 1:return ei.trys.push([1,3,,4]),et=this,[4,rp.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return et.nativeExtensionProvider=ei.sent(),[3,4];case 3:return eo=ei.sent(),this.logger.verbose(eo),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(tJ.t.INITIALIZE_END),[2]}})})},ClientApplication.prototype.handleRedirectPromise=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu,ed,eh,ep=this;return(0,eS.Jh)(this,function(ef){return(this.logger.verbose("handleRedirectPromise called"),tF.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),eo=this.getAllAccounts(),this.isBrowserEnvironment)?(ei=et||e_.gT.EMPTY_STRING,void 0===(ea=this.redirectResponse.get(ei))?(this.eventHandler.emitEvent(tJ.t.HANDLE_REDIRECT_START,ew.s_.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),eu=this.browserStorage.getCachedNativeRequest(),ed=void 0,eu&&rp.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!et?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),ed=new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ew.WN.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,eu.accountId,this.nativeInternalStorage,eu.correlationId).handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),eh=this.browserStorage.getTemporaryCache(ew.c4.CORRELATION_ID,!0)||e_.gT.EMPTY_STRING,ed=this.createRedirectClient(eh).handleRedirectPromise(et)),ea=ed.then(function(et){return et&&(eo.length<ep.getAllAccounts().length?(ep.eventHandler.emitEvent(tJ.t.LOGIN_SUCCESS,ew.s_.Redirect,et),ep.logger.verbose("handleRedirectResponse returned result, login success")):(ep.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_SUCCESS,ew.s_.Redirect,et),ep.logger.verbose("handleRedirectResponse returned result, acquire token success"))),ep.eventHandler.emitEvent(tJ.t.HANDLE_REDIRECT_END,ew.s_.Redirect),et}).catch(function(et){throw eo.length>0?ep.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_FAILURE,ew.s_.Redirect,null,et):ep.eventHandler.emitEvent(tJ.t.LOGIN_FAILURE,ew.s_.Redirect,null,et),ep.eventHandler.emitEvent(tJ.t.HANDLE_REDIRECT_END,ew.s_.Redirect),et}),this.redirectResponse.set(ei,ea)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,ea]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},ClientApplication.prototype.acquireTokenRedirect=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,eu=this;return(0,eS.Jh)(this,function(ed){return eo=this.getRequestCorrelationId(et),this.logger.verbose("acquireTokenRedirect called",eo),this.preflightBrowserEnvironmentCheck(ew.s_.Redirect),(ei=this.getAllAccounts().length>0)?this.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_START,ew.s_.Redirect,et):this.eventHandler.emitEvent(tJ.t.LOGIN_START,ew.s_.Redirect,et),[2,(ea=this.nativeExtensionProvider&&this.canUseNative(et)?new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ew.WN.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(et),this.nativeInternalStorage,et.correlationId).acquireTokenRedirect(et).catch(function(eo){if(eo instanceof rc&&eo.isFatal()){eu.nativeExtensionProvider=void 0;var ei=eu.createRedirectClient(et.correlationId);return ei.acquireToken(et)}if(eo instanceof e7){eu.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var ei=eu.createRedirectClient(et.correlationId);return ei.acquireToken(et)}throw eu.browserStorage.setInteractionInProgress(!1),eo}):this.createRedirectClient(et.correlationId).acquireToken(et)).catch(function(et){throw ei?eu.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_FAILURE,ew.s_.Redirect,null,et):eu.eventHandler.emitEvent(tJ.t.LOGIN_FAILURE,ew.s_.Redirect,null,et),et})]})})},ClientApplication.prototype.acquireTokenPopup=function(et){var eo,ei=this,ea=this.getRequestCorrelationId(et),ed=this.performanceClient.startMeasurement(eu.AcquireTokenPopup,ea);try{this.logger.verbose("acquireTokenPopup called",ea),this.preflightBrowserEnvironmentCheck(ew.s_.Popup)}catch(et){return Promise.reject(et)}var eh=this.getAllAccounts();return eh.length>0?this.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_START,ew.s_.Popup,et):this.eventHandler.emitEvent(tJ.t.LOGIN_START,ew.s_.Popup,et),(eo=this.canUseNative(et)?this.acquireTokenNative(et,ew.WN.acquireTokenPopup).then(function(et){return ei.browserStorage.setInteractionInProgress(!1),ed.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length}),ed.flushMeasurement(),et}).catch(function(eo){if(eo instanceof rc&&eo.isFatal()){ei.nativeExtensionProvider=void 0;var ea=ei.createPopupClient(et.correlationId);return ea.acquireToken(et)}if(eo instanceof e7){ei.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var ea=ei.createPopupClient(et.correlationId);return ea.acquireToken(et)}throw ei.browserStorage.setInteractionInProgress(!1),eo}):this.createPopupClient(et.correlationId).acquireToken(et)).then(function(et){return eh.length<ei.getAllAccounts().length?ei.eventHandler.emitEvent(tJ.t.LOGIN_SUCCESS,ew.s_.Popup,et):ei.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_SUCCESS,ew.s_.Popup,et),ed.endMeasurement({success:!0,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length}),ed.flushMeasurement(),et}).catch(function(et){return eh.length>0?ei.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_FAILURE,ew.s_.Popup,null,et):ei.eventHandler.emitEvent(tJ.t.LOGIN_FAILURE,ew.s_.Popup,null,et),ed.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),ed.flushMeasurement(),Promise.reject(et)})},ClientApplication.prototype.ssoSilent=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,ed,eh=this;return(0,eS.Jh)(this,function(ep){return eo=this.getRequestCorrelationId(et),ei=(0,eS.pi)((0,eS.pi)({},et),{prompt:e_.NJ.NONE,correlationId:eo}),this.preflightBrowserEnvironmentCheck(ew.s_.Silent),ea=this.performanceClient.startMeasurement(eu.SsoSilent,eo),this.logger.verbose("ssoSilent called",eo),this.eventHandler.emitEvent(tJ.t.SSO_SILENT_START,ew.s_.Silent,ei),[2,(ed=this.canUseNative(ei)?this.acquireTokenNative(ei,ew.WN.ssoSilent).catch(function(et){if(et instanceof rc&&et.isFatal())return eh.nativeExtensionProvider=void 0,eh.createSilentIframeClient(ei.correlationId).acquireToken(ei);throw et}):this.createSilentIframeClient(ei.correlationId).acquireToken(ei)).then(function(et){return eh.eventHandler.emitEvent(tJ.t.SSO_SILENT_SUCCESS,ew.s_.Silent,et),ea.endMeasurement({success:!0,isNativeBroker:et.fromNativeBroker,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length}),ea.flushMeasurement(),et}).catch(function(et){throw eh.eventHandler.emitEvent(tJ.t.SSO_SILENT_FAILURE,ew.s_.Silent,null,et),ea.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),ea.flushMeasurement(),et})]})})},ClientApplication.prototype.acquireTokenByCode=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei,ea,ed,eh=this;return(0,eS.Jh)(this,function(ep){eo=this.getRequestCorrelationId(et),this.preflightBrowserEnvironmentCheck(ew.s_.Silent),this.logger.trace("acquireTokenByCode called",eo),this.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_BY_CODE_START,ew.s_.Silent,et),ei=this.performanceClient.startMeasurement(eu.AcquireTokenByCode,et.correlationId);try{if(et.code)return ea=et.code,(ed=this.hybridAuthCodeResponses.get(ea))?(this.logger.verbose("Existing acquireTokenByCode request found",et.correlationId),ei.endMeasurement({success:!0}),ei.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",eo),ed=this.acquireTokenByCodeAsync((0,eS.pi)((0,eS.pi)({},et),{correlationId:eo})).then(function(et){return eh.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_BY_CODE_SUCCESS,ew.s_.Silent,et),eh.hybridAuthCodeResponses.delete(ea),ei.endMeasurement({success:!0,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length,isNativeBroker:et.fromNativeBroker}),ei.flushMeasurement(),et}).catch(function(et){throw eh.hybridAuthCodeResponses.delete(ea),eh.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_BY_CODE_FAILURE,ew.s_.Silent,null,et),ei.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),ei.flushMeasurement(),et}),this.hybridAuthCodeResponses.set(ea,ed)),[2,ed];if(et.nativeAccountId){if(this.canUseNative(et,et.nativeAccountId))return[2,this.acquireTokenNative(et,ew.WN.acquireTokenByCode,et.nativeAccountId).catch(function(et){throw et instanceof rc&&et.isFatal()&&(eh.nativeExtensionProvider=void 0),et})];throw eN.createUnableToAcquireTokenFromNativePlatformError()}throw eN.createAuthCodeOrNativeAccountIdRequiredError()}catch(et){throw this.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_BY_CODE_FAILURE,ew.s_.Silent,null,et),ei.endMeasurement({errorCode:et instanceof eI.l&&et.errorCode||void 0,subErrorCode:et instanceof eI.l&&et.subError||void 0,success:!1}),et}return[2]})})},ClientApplication.prototype.acquireTokenByCodeAsync=function(et){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(eo){switch(eo.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",et.correlationId),[4,this.createSilentAuthCodeClient(et.correlationId).acquireToken(et)];case 1:return[2,eo.sent()]}})})},ClientApplication.prototype.acquireTokenByRefreshToken=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo,ei=this;return(0,eS.Jh)(this,function(ea){return tF.blockReloadInHiddenIframes(),eo=this.performanceClient.startMeasurement(eu.AcquireTokenByRefreshToken,et.correlationId),this.eventHandler.emitEvent(tJ.t.ACQUIRE_TOKEN_NETWORK_START,ew.s_.Silent,et),[2,this.createSilentRefreshClient(et.correlationId).acquireToken(et).then(function(et){return eo.endMeasurement({success:!0,fromCache:et.fromCache,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length}),et}).catch(function(ea){var eu=ea instanceof e9,ed=ea instanceof e7,eh=ea.errorCode===ew.qx.INVALID_GRANT_ERROR;if(eu&&eh&&!ed)return ei.logger.verbose("Refresh token expired or invalid, attempting acquire token by iframe",et.correlationId),ei.createSilentIframeClient(et.correlationId).acquireToken(et).then(function(et){return eo.endMeasurement({success:!0,fromCache:et.fromCache,accessTokenSize:et.accessToken.length,idTokenSize:et.idToken.length}),et}).catch(function(et){throw eo.endMeasurement({errorCode:et.errorCode,subErrorCode:et.subError,success:!1}),et});throw eo.endMeasurement({success:!1}),ea})]})})},ClientApplication.prototype.logout=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo;return(0,eS.Jh)(this,function(ei){return eo=this.getRequestCorrelationId(et),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",eo),[2,this.logoutRedirect((0,eS.pi)({correlationId:eo},et))]})})},ClientApplication.prototype.logoutRedirect=function(et){return(0,eS.mG)(this,void 0,void 0,function(){var eo;return(0,eS.Jh)(this,function(ei){return eo=this.getRequestCorrelationId(et),this.preflightBrowserEnvironmentCheck(ew.s_.Redirect),[2,this.createRedirectClient(eo).logout(et)]})})},ClientApplication.prototype.logoutPopup=function(et){try{var eo=this.getRequestCorrelationId(et);return this.preflightBrowserEnvironmentCheck(ew.s_.Popup),this.createPopupClient(eo).logout(et)}catch(et){return Promise.reject(et)}},ClientApplication.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},ClientApplication.prototype.getAccountByUsername=function(et){var eo=this.getAllAccounts();return!eU.x.isEmpty(et)&&eo&&eo.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+et),eo.filter(function(eo){return eo.username.toLowerCase()===et.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},ClientApplication.prototype.getAccountByHomeId=function(et){var eo=this.getAllAccounts();return!eU.x.isEmpty(et)&&eo&&eo.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+et),eo.filter(function(eo){return eo.homeAccountId===et})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},ClientApplication.prototype.getAccountByLocalId=function(et){var eo=this.getAllAccounts();return!eU.x.isEmpty(et)&&eo&&eo.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+et),eo.filter(function(eo){return eo.localAccountId===et})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},ClientApplication.prototype.setActiveAccount=function(et){this.browserStorage.setActiveAccount(et)},ClientApplication.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},ClientApplication.prototype.preflightBrowserEnvironmentCheck=function(et,eo){if(void 0===eo&&(eo=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),tF.blockNonBrowserEnvironment(this.isBrowserEnvironment),tF.blockRedirectInIframe(et,this.config.system.allowRedirectInIframe),tF.blockReloadInHiddenIframes(),tF.blockAcquireTokenInPopups(),tF.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),et===ew.s_.Redirect&&this.config.cache.cacheLocation===ew.Ix.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw tw.W.createInMemoryRedirectUnavailableError();(et===ew.s_.Redirect||et===ew.s_.Popup)&&this.preflightInteractiveRequest(eo)},ClientApplication.prototype.preflightInteractiveRequest=function(et){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),tF.blockReloadInHiddenIframes(),et&&this.browserStorage.setInteractionInProgress(!0)},ClientApplication.prototype.acquireTokenNative=function(et,eo,ei){return(0,eS.mG)(this,void 0,void 0,function(){return(0,eS.Jh)(this,function(ea){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw eN.createNativeConnectionNotEstablishedError();return[2,new rh(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,eo,this.performanceClient,this.nativeExtensionProvider,ei||this.getNativeAccountId(et),this.nativeInternalStorage,et.correlationId).acquireToken(et)]})})},ClientApplication.prototype.canUseNative=function(et,eo){if(this.logger.trace("canUseNative called"),!rp.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,et.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(et.prompt)switch(et.prompt){case e_.NJ.NONE:case e_.NJ.CONSENT:case e_.NJ.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+et.prompt+" is not compatible with native flow, returning false"),!1}return!!(eo||this.getNativeAccountId(et))||(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1)},ClientApplication.prototype.getNativeAccountId=function(et){var eo=et.account||this.browserStorage.getAccountInfoByHints(et.loginHint,et.sid)||this.getActiveAccount();return eo&&eo.nativeAccountId||""},ClientApplication.prototype.createPopupClient=function(et){return new rm(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,et)},ClientApplication.prototype.createRedirectClient=function(et){return new ry(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,et)},ClientApplication.prototype.createSilentIframeClient=function(et){return new rb(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ew.WN.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,et)},ClientApplication.prototype.createSilentCacheClient=function(et){return new rd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,et)},ClientApplication.prototype.createSilentRefreshClient=function(et){return new rC(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,et)},ClientApplication.prototype.createSilentAuthCodeClient=function(et){return new rw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ew.WN.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,et)},ClientApplication.prototype.addEventCallback=function(et){return this.eventHandler.addEventCallback(et)},ClientApplication.prototype.removeEventCallback=function(et){this.eventHandler.removeEventCallback(et)},ClientApplication.prototype.addPerformanceCallback=function(et){return this.performanceClient.addPerformanceCallback(et)},ClientApplication.prototype.removePerformanceCallback=function(et){return this.performanceClient.removePerformanceCallback(et)},ClientApplication.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},ClientApplication.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},ClientApplication.prototype.getTokenCache=function(){return this.tokenCache},ClientApplication.prototype.getLogger=function(){return this.logger},ClientApplication.prototype.setLogger=function(et){this.logger=et},ClientApplication.prototype.initializeWrapperLibrary=function(et,eo){this.browserStorage.setWrapperMetadata(et,eo)},ClientApplication.prototype.setNavigationClient=function(et){this.navigationClient=et},ClientApplication.prototype.getConfiguration=function(){return this.config},ClientApplication.prototype.getRequestCorrelationId=function(et){return(null==et?void 0:et.correlationId)?et.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():e_.gT.EMPTY_STRING},ClientApplication}());ei(47719);var rT=ei(25704),rE=ei(53023);let rP=new TextEncoder,rk=new TextDecoder;function buffer_utils_concat(...et){let eo=et.reduce((et,{length:eo})=>et+eo,0),ei=new Uint8Array(eo),ea=0;for(let eo of et)ei.set(eo,ea),ea+=eo.length;return ei}let base64url_decodeBase64=et=>{let eo=atob(et),ei=new Uint8Array(eo.length);for(let et=0;et<eo.length;et++)ei[et]=eo.charCodeAt(et);return ei},decode=et=>{let eo=et;eo instanceof Uint8Array&&(eo=rk.decode(eo)),eo=eo.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return base64url_decodeBase64(eo)}catch{throw TypeError("The input to be decoded is not correctly encoded.")}};let JOSEError=class JOSEError extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(et){super(et),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};let errors_JWTClaimValidationFailed=class errors_JWTClaimValidationFailed extends JOSEError{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(et,eo="unspecified",ei="unspecified"){super(et),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=eo,this.reason=ei}};let JWTExpired=class JWTExpired extends JOSEError{static get code(){return"ERR_JWT_EXPIRED"}constructor(et,eo="unspecified",ei="unspecified"){super(et),this.code="ERR_JWT_EXPIRED",this.claim=eo,this.reason=ei}};let errors_JOSEAlgNotAllowed=class errors_JOSEAlgNotAllowed extends JOSEError{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}};let errors_JOSENotSupported=class errors_JOSENotSupported extends JOSEError{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}};let errors_JWSInvalid=class errors_JWSInvalid extends JOSEError{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}};let errors_JWTInvalid=class errors_JWTInvalid extends JOSEError{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}};let JWKSInvalid=class JWKSInvalid extends JOSEError{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}};let JWKSNoMatchingKey=class JWKSNoMatchingKey extends JOSEError{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}};let JWKSMultipleMatchingKeys=class JWKSMultipleMatchingKeys extends JOSEError{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}};let JWKSTimeout=class JWKSTimeout extends JOSEError{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}};let errors_JWSSignatureVerificationFailed=class errors_JWSSignatureVerificationFailed extends JOSEError{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};var rO=crypto;let webcrypto_isCryptoKey=et=>et instanceof CryptoKey;function subtleMapping(et){let eo,ei;switch(et.kty){case"RSA":switch(et.alg){case"PS256":case"PS384":case"PS512":eo={name:"RSA-PSS",hash:`SHA-${et.alg.slice(-3)}`},ei=et.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":eo={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${et.alg.slice(-3)}`},ei=et.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":eo={name:"RSA-OAEP",hash:`SHA-${parseInt(et.alg.slice(-3),10)||1}`},ei=et.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(et.alg){case"ES256":eo={name:"ECDSA",namedCurve:"P-256"},ei=et.d?["sign"]:["verify"];break;case"ES384":eo={name:"ECDSA",namedCurve:"P-384"},ei=et.d?["sign"]:["verify"];break;case"ES512":eo={name:"ECDSA",namedCurve:"P-521"},ei=et.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":eo={name:"ECDH",namedCurve:et.crv},ei=et.d?["deriveBits"]:[];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(et.alg){case"EdDSA":eo={name:et.crv},ei=et.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":eo={name:et.crv},ei=et.d?["deriveBits"]:[];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:eo,keyUsages:ei}}rO.getRandomValues.bind(rO);let parse=async et=>{if(!et.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:eo,keyUsages:ei}=subtleMapping(et),ea=[eo,et.ext??!1,et.key_ops??ei],eu={...et};return delete eu.alg,delete eu.use,rO.subtle.importKey("jwk",eu,...ea)};var rx=parse;function isObjectLike(et){return"object"==typeof et&&null!==et}function is_object_isObject(et){if(!isObjectLike(et)||"[object Object]"!==Object.prototype.toString.call(et))return!1;if(null===Object.getPrototypeOf(et))return!0;let eo=et;for(;null!==Object.getPrototypeOf(eo);)eo=Object.getPrototypeOf(eo);return Object.getPrototypeOf(et)===eo}async function import_importJWK(et,eo){if(!is_object_isObject(et))throw TypeError("JWK must be an object");switch(eo||(eo=et.alg),et.kty){case"oct":if("string"!=typeof et.k||!et.k)throw TypeError('missing "k" (Key Value) Parameter value');return decode(et.k);case"RSA":if(void 0!==et.oth)throw new errors_JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return rx({...et,alg:eo});default:throw new errors_JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}var validate_crit=function(et,eo,ei,ea,eu){let ed;if(void 0!==eu.crit&&ea?.crit===void 0)throw new et('"crit" (Critical) Header Parameter MUST be integrity protected');if(!ea||void 0===ea.crit)return new Set;if(!Array.isArray(ea.crit)||0===ea.crit.length||ea.crit.some(et=>"string"!=typeof et||0===et.length))throw new et('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let eh of(ed=void 0!==ei?new Map([...Object.entries(ei),...eo.entries()]):eo,ea.crit)){if(!ed.has(eh))throw new errors_JOSENotSupported(`Extension Header Parameter "${eh}" is not recognized`);if(void 0===eu[eh])throw new et(`Extension Header Parameter "${eh}" is missing`);if(ed.get(eh)&&void 0===ea[eh])throw new et(`Extension Header Parameter "${eh}" MUST be integrity protected`)}return new Set(ea.crit)};function subtleDsa(et,eo){let ei=`SHA-${et.slice(-3)}`;switch(et){case"HS256":case"HS384":case"HS512":return{hash:ei,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:ei,name:"RSA-PSS",saltLength:et.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:ei,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:ei,name:"ECDSA",namedCurve:eo.namedCurve};case"EdDSA":return{name:eo.name};default:throw new errors_JOSENotSupported(`alg ${et} is not supported either by JOSE or your javascript runtime`)}}Symbol();var check_key_length=(et,eo)=>{if(et.startsWith("RS")||et.startsWith("PS")){let{modulusLength:ei}=eo.algorithm;if("number"!=typeof ei||ei<2048)throw TypeError(`${et} requires key modulusLength to be 2048 bits or larger`)}};function unusable(et,eo="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${eo} must be ${et}`)}function isAlgorithm(et,eo){return et.name===eo}function getHashLength(et){return parseInt(et.name.slice(4),10)}function crypto_key_getNamedCurve(et){switch(et){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}function checkUsage(et,eo){if(eo.length&&!eo.some(eo=>et.usages.includes(eo))){let et="CryptoKey does not support this operation, its usages must include ";if(eo.length>2){let ei=eo.pop();et+=`one of ${eo.join(", ")}, or ${ei}.`}else 2===eo.length?et+=`one of ${eo[0]} or ${eo[1]}.`:et+=`${eo[0]}.`;throw TypeError(et)}}function checkSigCryptoKey(et,eo,...ei){switch(eo){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(et.algorithm,"HMAC"))throw unusable("HMAC");let ei=parseInt(eo.slice(2),10),ea=getHashLength(et.algorithm.hash);if(ea!==ei)throw unusable(`SHA-${ei}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(et.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");let ei=parseInt(eo.slice(2),10),ea=getHashLength(et.algorithm.hash);if(ea!==ei)throw unusable(`SHA-${ei}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(et.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");let ei=parseInt(eo.slice(2),10),ea=getHashLength(et.algorithm.hash);if(ea!==ei)throw unusable(`SHA-${ei}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==et.algorithm.name&&"Ed448"!==et.algorithm.name)throw unusable("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(et.algorithm,"ECDSA"))throw unusable("ECDSA");let ei=crypto_key_getNamedCurve(eo),ea=et.algorithm.namedCurve;if(ea!==ei)throw unusable(ei,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}checkUsage(et,ei)}function message(et,eo,...ei){if(ei.length>2){let eo=ei.pop();et+=`one of type ${ei.join(", ")}, or ${eo}.`}else 2===ei.length?et+=`one of type ${ei[0]} or ${ei[1]}.`:et+=`of type ${ei[0]}.`;return null==eo?et+=` Received ${eo}`:"function"==typeof eo&&eo.name?et+=` Received function ${eo.name}`:"object"==typeof eo&&null!=eo&&eo.constructor?.name&&(et+=` Received an instance of ${eo.constructor.name}`),et}var invalid_key_input=(et,...eo)=>message("Key must be ",et,...eo);function withAlg(et,eo,...ei){return message(`Key for the ${et} algorithm must be `,eo,...ei)}var is_key_like=et=>webcrypto_isCryptoKey(et);let rM=["CryptoKey"];function get_sign_verify_key_getCryptoKey(et,eo,ei){if(webcrypto_isCryptoKey(eo))return checkSigCryptoKey(eo,et,ei),eo;if(eo instanceof Uint8Array){if(!et.startsWith("HS"))throw TypeError(invalid_key_input(eo,...rM));return rO.subtle.importKey("raw",eo,{hash:`SHA-${et.slice(-3)}`,name:"HMAC"},!1,[ei])}throw TypeError(invalid_key_input(eo,...rM,"Uint8Array"))}let verify=async(et,eo,ei,ea)=>{let eu=await get_sign_verify_key_getCryptoKey(et,eo,"verify");check_key_length(et,eu);let ed=subtleDsa(et,eu.algorithm);try{return await rO.subtle.verify(ed,eu,ei,ea)}catch{return!1}};var rD=verify;let is_disjoint_isDisjoint=(...et)=>{let eo;let ei=et.filter(Boolean);if(0===ei.length||1===ei.length)return!0;for(let et of ei){let ei=Object.keys(et);if(!eo||0===eo.size){eo=new Set(ei);continue}for(let et of ei){if(eo.has(et))return!1;eo.add(et)}}return!0};var rU=is_disjoint_isDisjoint;let symmetricTypeCheck=(et,eo)=>{if(!(eo instanceof Uint8Array)){if(!is_key_like(eo))throw TypeError(withAlg(et,eo,...rM,"Uint8Array"));if("secret"!==eo.type)throw TypeError(`${rM.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},asymmetricTypeCheck=(et,eo,ei)=>{if(!is_key_like(eo))throw TypeError(withAlg(et,eo,...rM));if("secret"===eo.type)throw TypeError(`${rM.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===ei&&"public"===eo.type)throw TypeError(`${rM.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===ei&&"public"===eo.type)throw TypeError(`${rM.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(eo.algorithm&&"verify"===ei&&"private"===eo.type)throw TypeError(`${rM.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(eo.algorithm&&"encrypt"===ei&&"private"===eo.type)throw TypeError(`${rM.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},check_key_type_checkKeyType=(et,eo,ei)=>{let ea=et.startsWith("HS")||"dir"===et||et.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(et);ea?symmetricTypeCheck(et,eo):asymmetricTypeCheck(et,eo,ei)};var rL=check_key_type_checkKeyType;let validate_algorithms_validateAlgorithms=(et,eo)=>{if(void 0!==eo&&(!Array.isArray(eo)||eo.some(et=>"string"!=typeof et)))throw TypeError(`"${et}" option must be an array of strings`);if(eo)return new Set(eo)};var rN=validate_algorithms_validateAlgorithms;async function verify_flattenedVerify(et,eo,ei){let ea,eu;if(!is_object_isObject(et))throw new errors_JWSInvalid("Flattened JWS must be an object");if(void 0===et.protected&&void 0===et.header)throw new errors_JWSInvalid('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==et.protected&&"string"!=typeof et.protected)throw new errors_JWSInvalid("JWS Protected Header incorrect type");if(void 0===et.payload)throw new errors_JWSInvalid("JWS Payload missing");if("string"!=typeof et.signature)throw new errors_JWSInvalid("JWS Signature missing or incorrect type");if(void 0!==et.header&&!is_object_isObject(et.header))throw new errors_JWSInvalid("JWS Unprotected Header incorrect type");let ed={};if(et.protected)try{let eo=decode(et.protected);ed=JSON.parse(rk.decode(eo))}catch{throw new errors_JWSInvalid("JWS Protected Header is invalid")}if(!rU(ed,et.header))throw new errors_JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let eh={...ed,...et.header},ep=validate_crit(errors_JWSInvalid,new Map([["b64",!0]]),ei?.crit,ed,eh),ef=!0;if(ep.has("b64")&&"boolean"!=typeof(ef=ed.b64))throw new errors_JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:em}=eh;if("string"!=typeof em||!em)throw new errors_JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid');let eg=ei&&rN("algorithms",ei.algorithms);if(eg&&!eg.has(em))throw new errors_JOSEAlgNotAllowed('"alg" (Algorithm) Header Parameter value not allowed');if(ef){if("string"!=typeof et.payload)throw new errors_JWSInvalid("JWS Payload must be a string")}else if("string"!=typeof et.payload&&!(et.payload instanceof Uint8Array))throw new errors_JWSInvalid("JWS Payload must be a string or an Uint8Array instance");let ey=!1;"function"==typeof eo&&(eo=await eo(ed,et),ey=!0),rL(em,eo,"verify");let eC=buffer_utils_concat(rP.encode(et.protected??""),rP.encode("."),"string"==typeof et.payload?rP.encode(et.payload):et.payload);try{ea=decode(et.signature)}catch{throw new errors_JWSInvalid("Failed to base64url decode the signature")}let eS=await rD(em,eo,ea,eC);if(!eS)throw new errors_JWSSignatureVerificationFailed;if(ef)try{eu=decode(et.payload)}catch{throw new errors_JWSInvalid("Failed to base64url decode the payload")}else eu="string"==typeof et.payload?rP.encode(et.payload):et.payload;let e_={payload:eu};return(void 0!==et.protected&&(e_.protectedHeader=ed),void 0!==et.header&&(e_.unprotectedHeader=et.header),ey)?{...e_,key:eo}:e_}async function compactVerify(et,eo,ei){if(et instanceof Uint8Array&&(et=rk.decode(et)),"string"!=typeof et)throw new errors_JWSInvalid("Compact JWS must be a string or Uint8Array");let{0:ea,1:eu,2:ed,length:eh}=et.split(".");if(3!==eh)throw new errors_JWSInvalid("Invalid Compact JWS");let ep=await verify_flattenedVerify({payload:eu,protected:ea,signature:ed},eo,ei),ef={payload:ep.payload,protectedHeader:ep.protectedHeader};return"function"==typeof eo?{...ef,key:ep.key}:ef}var lib_epoch=et=>Math.floor(et.getTime()/1e3);let rq=60,rB=60*rq,rF=24*rB,rj=7*rF,rG=365.25*rF,rH=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var lib_secs=et=>{let eo;let ei=rH.exec(et);if(!ei||ei[4]&&ei[1])throw TypeError("Invalid time period format");let ea=parseFloat(ei[2]),eu=ei[3].toLowerCase();switch(eu){case"sec":case"secs":case"second":case"seconds":case"s":eo=Math.round(ea);break;case"minute":case"minutes":case"min":case"mins":case"m":eo=Math.round(ea*rq);break;case"hour":case"hours":case"hr":case"hrs":case"h":eo=Math.round(ea*rB);break;case"day":case"days":case"d":eo=Math.round(ea*rF);break;case"week":case"weeks":case"w":eo=Math.round(ea*rj);break;default:eo=Math.round(ea*rG)}return"-"===ei[1]||"ago"===ei[4]?-eo:eo};let normalizeTyp=et=>et.toLowerCase().replace(/^application\//,""),checkAudiencePresence=(et,eo)=>"string"==typeof et?eo.includes(et):!!Array.isArray(et)&&eo.some(Set.prototype.has.bind(new Set(et)));var jwt_claims_set=(et,eo,ei={})=>{let ea,eu;let{typ:ed}=ei;if(ed&&("string"!=typeof et.typ||normalizeTyp(et.typ)!==normalizeTyp(ed)))throw new errors_JWTClaimValidationFailed('unexpected "typ" JWT header value',"typ","check_failed");try{ea=JSON.parse(rk.decode(eo))}catch{}if(!is_object_isObject(ea))throw new errors_JWTInvalid("JWT Claims Set must be a top-level JSON object");let{requiredClaims:eh=[],issuer:ep,subject:ef,audience:em,maxTokenAge:eg}=ei,ey=[...eh];for(let et of(void 0!==eg&&ey.push("iat"),void 0!==em&&ey.push("aud"),void 0!==ef&&ey.push("sub"),void 0!==ep&&ey.push("iss"),new Set(ey.reverse())))if(!(et in ea))throw new errors_JWTClaimValidationFailed(`missing required "${et}" claim`,et,"missing");if(ep&&!(Array.isArray(ep)?ep:[ep]).includes(ea.iss))throw new errors_JWTClaimValidationFailed('unexpected "iss" claim value',"iss","check_failed");if(ef&&ea.sub!==ef)throw new errors_JWTClaimValidationFailed('unexpected "sub" claim value',"sub","check_failed");if(em&&!checkAudiencePresence(ea.aud,"string"==typeof em?[em]:em))throw new errors_JWTClaimValidationFailed('unexpected "aud" claim value',"aud","check_failed");switch(typeof ei.clockTolerance){case"string":eu=lib_secs(ei.clockTolerance);break;case"number":eu=ei.clockTolerance;break;case"undefined":eu=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:eC}=ei,eS=lib_epoch(eC||new Date);if((void 0!==ea.iat||eg)&&"number"!=typeof ea.iat)throw new errors_JWTClaimValidationFailed('"iat" claim must be a number',"iat","invalid");if(void 0!==ea.nbf){if("number"!=typeof ea.nbf)throw new errors_JWTClaimValidationFailed('"nbf" claim must be a number',"nbf","invalid");if(ea.nbf>eS+eu)throw new errors_JWTClaimValidationFailed('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==ea.exp){if("number"!=typeof ea.exp)throw new errors_JWTClaimValidationFailed('"exp" claim must be a number',"exp","invalid");if(ea.exp<=eS-eu)throw new JWTExpired('"exp" claim timestamp check failed',"exp","check_failed")}if(eg){let et=eS-ea.iat,eo="number"==typeof eg?eg:lib_secs(eg);if(et-eu>eo)throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(et<0-eu)throw new errors_JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return ea};async function jwtVerify(et,eo,ei){let ea=await compactVerify(et,eo,ei);if(ea.protectedHeader.crit?.includes("b64")&&!1===ea.protectedHeader.b64)throw new errors_JWTInvalid("JWTs MUST NOT use unencoded payload");let eu=jwt_claims_set(ea.protectedHeader,ea.payload,ei),ed={payload:eu,protectedHeader:ea.protectedHeader};return"function"==typeof eo?{...ed,key:ea.key}:ed}function getKtyFromAlg(et){switch("string"==typeof et&&et.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new errors_JOSENotSupported('Unsupported "alg" value for a JSON Web Key Set')}}function isJWKSLike(et){return et&&"object"==typeof et&&Array.isArray(et.keys)&&et.keys.every(isJWKLike)}function isJWKLike(et){return is_object_isObject(et)}function clone(et){return"function"==typeof structuredClone?structuredClone(et):JSON.parse(JSON.stringify(et))}let LocalJWKSet=class LocalJWKSet{constructor(et){if(this._cached=new WeakMap,!isJWKSLike(et))throw new JWKSInvalid("JSON Web Key Set malformed");this._jwks=clone(et)}async getKey(et,eo){let{alg:ei,kid:ea}={...et,...eo?.header},eu=getKtyFromAlg(ei),ed=this._jwks.keys.filter(et=>{let eo=eu===et.kty;if(eo&&"string"==typeof ea&&(eo=ea===et.kid),eo&&"string"==typeof et.alg&&(eo=ei===et.alg),eo&&"string"==typeof et.use&&(eo="sig"===et.use),eo&&Array.isArray(et.key_ops)&&(eo=et.key_ops.includes("verify")),eo&&"EdDSA"===ei&&(eo="Ed25519"===et.crv||"Ed448"===et.crv),eo)switch(ei){case"ES256":eo="P-256"===et.crv;break;case"ES256K":eo="secp256k1"===et.crv;break;case"ES384":eo="P-384"===et.crv;break;case"ES512":eo="P-521"===et.crv}return eo}),{0:eh,length:ep}=ed;if(0===ep)throw new JWKSNoMatchingKey;if(1!==ep){let et=new JWKSMultipleMatchingKeys,{_cached:eo}=this;throw et[Symbol.asyncIterator]=async function*(){for(let et of ed)try{yield await importWithAlgCache(eo,et,ei)}catch{}},et}return importWithAlgCache(this._cached,eh,ei)}};async function importWithAlgCache(et,eo,ei){let ea=et.get(eo)||et.set(eo,{}).get(eo);if(void 0===ea[ei]){let et=await import_importJWK({...eo,ext:!0},ei);if(et instanceof Uint8Array||"public"!==et.type)throw new JWKSInvalid("JSON Web Key Set members must be public keys");ea[ei]=et}return ea[ei]}let fetchJwks=async(et,eo,ei)=>{let ea,eu;let ed=!1;"function"==typeof AbortController&&(ea=new AbortController,eu=setTimeout(()=>{ed=!0,ea.abort()},eo));let eh=await fetch(et.href,{signal:ea?ea.signal:void 0,redirect:"manual",headers:ei.headers}).catch(et=>{if(ed)throw new JWKSTimeout;throw et});if(void 0!==eu&&clearTimeout(eu),200!==eh.status)throw new JOSEError("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await eh.json()}catch{throw new JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON")}};var rK=fetchJwks;function isCloudflareWorkers(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}if("undefined"==typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){let et="jose",eo="v5.2.3";ea=`${et}/${eo}`}let RemoteJWKSet=class RemoteJWKSet extends LocalJWKSet{constructor(et,eo){if(super({keys:[]}),this._jwks=void 0,!(et instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(et.href),this._options={agent:eo?.agent,headers:eo?.headers},this._timeoutDuration="number"==typeof eo?.timeoutDuration?eo?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof eo?.cooldownDuration?eo?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof eo?.cacheMaxAge?eo?.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(et,eo){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(et,eo)}catch(ei){if(ei instanceof JWKSNoMatchingKey&&!1===this.coolingDown())return await this.reload(),super.getKey(et,eo);throw ei}}async reload(){this._pendingFetch&&isCloudflareWorkers()&&(this._pendingFetch=void 0);let et=new Headers(this._options.headers);ea&&!et.has("User-Agent")&&(et.set("User-Agent",ea),this._options.headers=Object.fromEntries(et.entries())),this._pendingFetch||(this._pendingFetch=rK(this._url,this._timeoutDuration,this._options).then(et=>{if(!isJWKSLike(et))throw new JWKSInvalid("JSON Web Key Set malformed");this._jwks={keys:et.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(et=>{throw this._pendingFetch=void 0,et})),await this._pendingFetch}};function createRemoteJWKSet(et,eo){let ei=new RemoteJWKSet(et,eo);return async(et,eo)=>ei.getKey(et,eo)}function e(et){this.message=et}e.prototype=Error(),e.prototype.name="InvalidCharacterError";var rz="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(et){var eo=String(et).replace(/=+$/,"");if(eo.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var ei,ea,eu=0,ed=0,eh="";ea=eo.charAt(ed++);~ea&&(ei=eu%4?64*ei+ea:ea,eu++%4)&&(eh+=String.fromCharCode(255&ei>>(-2*eu&6))))ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ea);return eh};function t(et){var eo=et.replace(/-/g,"+").replace(/_/g,"/");switch(eo.length%4){case 0:break;case 2:eo+="==";break;case 3:eo+="=";break;default:throw"Illegal base64url string!"}try{return function(et){return decodeURIComponent(rz(et).replace(/(.)/g,function(et,eo){var ei=eo.charCodeAt(0).toString(16).toUpperCase();return ei.length<2&&(ei="0"+ei),"%"+ei}))}(eo)}catch(et){return rz(eo)}}function n(et){this.message=et}function o(et,eo){if("string"!=typeof et)throw new n("Invalid token specified");var ei=!0===(eo=eo||{}).header?0:1;try{return JSON.parse(t(et.split(".")[ei]))}catch(et){throw new n("Invalid token specified: "+et.message)}}n.prototype=Error(),n.prototype.name="InvalidTokenError";var rW=o;let rV=new rR(rE.XM);let AuthServices=class AuthServices{constructor(){var et=this;this.logInWithRedirect=async function(eo){let ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(let eo of(sessionStorage.clear(),et.setSession(null),Object.keys(localStorage))){var eu;(null===(eu=localStorage.getItem(eo))||void 0===eu?void 0:eu.includes("b2clogin.com"))&&localStorage.removeItem(eo)}return rV.loginRedirect({scopes:rE.Qb.scopes,extraQueryParameters:{tenantLogo:eo||"".concat(window.location.origin,"/assets/images/logo2.webp"),login_hint:ei,agencyId:ea}})},this.logOut=async()=>{sessionStorage.clear(),this.setSession(null),await rV.logoutRedirect()},this.registerWithInviteCode=async et=>rV.loginRedirect({scopes:rE.Qb.scopes,extraQueryParameters:{inviteCode:et,option:"signup"}}),this.handleAuthentication=()=>{let et=this.getAccessToken();return et?this.isAuthTokenValid(et)?(this.setSession(et),"Authenticated"):(this.logOut(),"notValidToken"):"noAccessToken"},this.setSession=et=>{et?(localStorage.setItem(rT.H0.tggToken,et),sessionStorage.setItem(rT.H0.refetchTggToken,"yes"),document.cookie="hub.client.jwt=".concat(et)):(localStorage.removeItem(rT.H0.tggToken),sessionStorage.removeItem(rT.H0.refetchTggToken),document.cookie="hub.client.jwt=")},this.isAuthTokenValid=et=>{if(!et)return!1;let eo=rW(et),ei=Date.now()/1e3;return!(eo.exp<ei)||(console.warn("access token expired"),!1)},this.isAboutToExpire=()=>{let et=this.getAccessToken();if(!et)return!1;let eo=rW(et),ei=Date.now()/1e3,ea=300;return eo.exp<ei+ea},this.getAccessToken=()=>{let et=localStorage.getItem(rT.H0.tggToken);return null!==et?(document.cookie="hub.client.jwt=".concat(et),et):null},this.getDecodedAccessToken=()=>{let et=this.getAccessToken(),eo=this.isAuthTokenValid(et);if(eo){let eo=rW(et);return eo}},this.serverSideValidateToken=async et=>{let eo="tggaccountingusers",ei="B2C_1A_SIGNUP_SIGNIN_SELF_HOSTED",ea="https://".concat(eo,".b2clogin.com/").concat(eo,".onmicrosoft.com/").concat(ei,"/v2.0/.well-known/openid-configuration"),eu=await fetch(ea),{issuer:ed,jwks_uri:eh}=await eu.json(),ep=createRemoteJWKSet(new URL(eh)),{payload:ef,protectedHeader:em}=await jwtVerify(et,ep,{issuer:ed});return{payload:ef,protectedHeader:em}},this.isSuperAdmin=async et=>{throw Error("AuthServices.isSuperAdmin can only be run on the server side.")}}};let rJ=new AuthServices;var rY=rJ},73396:function(et,eo,ei){"use strict";ei.d(eo,{ZP:function(){return axiosHttpClient},hP:function(){return getAccessToken},sc:function(){return errorHelperAIS}});var ea=ei(16053),eu=ei(5121),ed=ei(22920);function responseHelper(et){return(null==et?void 0:et.status)===200||(null==et?void 0:et.status)===201||(null==et?void 0:et.status)===204?et.data:null}function errorHelper(et){var eo;if(null==et?void 0:null===(eo=et.response)||void 0===eo?void 0:eo.data){let eo=et.response.data;if(null==eo?void 0:eo.code){if("ERROR_QBO_CONNECTION"===eo.code||"IMPORT_ALREADY_IN_PROCESS"===eo.code)return eo.code;ed.Am.error(eo.message)}}return null}function errorHelperAIS(et){if(null==et?void 0:et.code){if((null==et?void 0:et.code)==="No AISProfile matches the given query.")return"NOT_FOUND";if("QUICKBOOKS_INTEGRATION_ERROR"===et.code)return"QUICKBOOKS_INTEGRATION_ERROR";ed.Am.error(et.message)}return null}function getAccessToken(){let et=ea.Z.getAccessToken();return null!==et?"Bearer ".concat(et):""}function getAgencyId(){let et=window.location.href,eo=new URL(et);return eo.searchParams.get("aId")||""}function axiosHttpClient(et,eo){let ei=!(arguments.length>2)||void 0===arguments[2]||arguments[2],ea={"Content-Type":"application/json"},ed=eu.default.create({baseURL:et,headers:ea});switch(ed.interceptors.request.use(function(eo){if(eo.headers={...eo.headers,Authorization:getAccessToken()},"https://aisapi.tgg-accounting.com"!==et&&"https://tenant-accounting.tgg-accounting.com"!==et){let et=getAgencyId();et&&(eo.headers={...eo.headers})}return eo},function(et){return Promise.reject(et)}),eo){case"tgg":ed.interceptors.response.use(responseHelper,ei?errorHelper:void 0);break;case"tggAIS":ed.interceptors.response.use(responseHelper,errorHelperAIS);break;default:ed.interceptors.response.use(responseHelper,errorHelper)}return ed}},32818:function(et,eo,ei){"use strict";ei.d(eo,{EF:function(){return ef},Ew:function(){return eh},Yl:function(){return ep},r_:function(){return ed}});var ea=ei(46310),eu=ei(73396);let ed=(0,eu.ZP)("https://accountingapi.tgg-accounting.com","tgg"),eh=(0,eu.ZP)("https://accountingapi.tgg-accounting.com","tgg",!1),ep=new ea.ReportsApi({basePath:"https://pdfbuilderapi.tgg-accounting.com",apiKey:eu.hP}),ef=(0,eu.ZP)("https://tenant-accounting.tgg-accounting.com","tggTenant")},38748:function(et,eo,ei){"use strict";var ea=ei(25704);let LocalServices=class LocalServices{constructor(){this.setQBOSession=(et,eo)=>{switch(et){case"get":{let et=localStorage.getItem(ea.H0.QBOSession);if(et)return JSON.parse(window.atob(et));return null}case"set":return localStorage.setItem(ea.H0.QBOSession,window.btoa(JSON.stringify(eo)));case"remove":localStorage.removeItem(ea.H0.QBOSession)}},this.setFullReportAPICallsStarted=(et,eo)=>{switch(et){case"get":{let et=sessionStorage.getItem(ea.H0.fullReportAPICallsStarted);if(et)return JSON.parse(et);return[]}case"set":return sessionStorage.setItem(ea.H0.fullReportAPICallsStarted,JSON.stringify(eo));case"remove":sessionStorage.removeItem(ea.H0.fullReportAPICallsStarted)}},this.setFullReportAPICallsDone=(et,eo)=>{switch(et){case"get":{let et=sessionStorage.getItem(ea.H0.fullReportAPICallsDone);if(et)return JSON.parse(et);return[]}case"set":return sessionStorage.setItem(ea.H0.fullReportAPICallsDone,JSON.stringify(eo));case"remove":sessionStorage.removeItem(ea.H0.fullReportAPICallsDone)}}}};let eu=new LocalServices;eo.Z=eu},36769:function(et,eo,ei){"use strict";ei.d(eo,{C:function(){return eu},T:function(){return useAppDispatch}});var ea=ei(45007);let useAppDispatch=()=>(0,ea.I0)(),eu=ea.v9},80506:function(et,eo,ei){"use strict";ei.d(eo,{R:function(){return ep},S:function(){return eh}});var ea=ei(35251),eu=ei(84410);let ed="TGG_CLIENT_VIEW_TYPE",initialState=()=>{let et="GRID";{let eo=localStorage.getItem(ed)||"GRID";["GRID","LIST"].includes(eo)&&(et=eo)}return{agencies:[],isLoading:!0,totalPages:0,currentPageNumber:0,searchParams:{view:et,term:"",status:eu.x.ACTIVE,sort:{by:"name",direction:"ASC"},skip:0}}},eh=(0,ea.oM)({name:"agencies",initialState,reducers:{setView(et,eo){et.searchParams.view=eo.payload,localStorage.setItem(ed,eo.payload)},setSearchParams(et,eo){et.searchParams={...et.searchParams,...eo.payload,sort:{...et.searchParams.sort,...eo.payload.sort}}}}}),ep=eh.actions},89623:function(et,eo,ei){"use strict";ei.d(eo,{CJ:function(){return e_},IW:function(){return ey},Jf:function(){return eh},KJ:function(){return eC},Pk:function(){return ed},Y0:function(){return em},lm:function(){return ef},pV:function(){return eS},u$:function(){return ep},y8:function(){return eg}});var ea=ei(35251);let eu={availableReportTypes:[],activeReportType:null,aisAccounts:[],summaryData:[],showConfidenceIndicator:!1,state:{isLoading:!1,filterType:null},isCleared:!1,isChanged:!1,intelligentMappingList:[]},ed=(0,ea.oM)({name:"aisAccountMapping",initialState:eu,reducers:{setAvailableReportTypes:(et,eo)=>{et.availableReportTypes=eo.payload},setActiveReportType:(et,eo)=>{et.activeReportType=eo.payload},setAISAccounts:(et,eo)=>{et.aisAccounts=eo.payload},setSummaryData:(et,eo)=>{et.summaryData=eo.payload},setShowConfidenceIndicator:(et,eo)=>{et.showConfidenceIndicator=eo.payload},setState:(et,eo)=>{et.state={...et.state,...eo.payload}},setIsCleared:(et,eo)=>{et.isCleared=eo.payload},setIsChanged:(et,eo)=>{et.isChanged=eo.payload},setIntelligentMappingList:(et,eo)=>{et.intelligentMappingList=eo.payload}}}),{setAvailableReportTypes:eh,setActiveReportType:ep,setAISAccounts:ef,setSummaryData:em,setShowConfidenceIndicator:eg,setState:ey,setIsCleared:eC,setIsChanged:eS,setIntelligentMappingList:e_}=ed.actions;ed.reducer},39730:function(et,eo,ei){"use strict";ei.d(eo,{Dc:function(){return eh},J0:function(){return ea},XU:function(){return ef},hL:function(){return em}});var ea,eu=ei(35251),ed=ei(32818);!function(et){et.ACTIVE="ACTIVE",et.INACTIVE="INACTIVE"}(ea||(ea={}));let eh=(0,eu.hg)("clientUsers/fetchUsers",async(et,eo)=>{let ei=eo.getState(),ea=await ed.EF.get("/users",{params:{agencyId:et.agencyId,include:"invitation",userRole:"client-user",sortDir:ei.clientUsers.queryFilters.sort.direction,sortBy:ei.clientUsers.queryFilters.sort.by,take:10,skip:ei.clientUsers.queryFilters.skip,searchTerm:ei.clientUsers.queryFilters.searchTerm,clientId:"",active:"ACTIVE"===ei.clientUsers.queryFilters.status}});return ea}),ep={users:[],isLoading:!1,editingUser:null,queryFilters:{searchTerm:"",skip:0,status:"ACTIVE",sort:{direction:"ASC",by:"firstName"}},pagination:{totalPages:1,currentPageNumber:1}},ef=(0,eu.oM)({name:"clientUsers",initialState:ep,reducers:{setEditingUser:(et,eo)=>{et.editingUser=eo.payload},setQueryFilters:(et,eo)=>{et.queryFilters={...et.queryFilters,...eo.payload,sort:{...et.queryFilters.sort,...eo.payload.sort}}},setPagination:(et,eo)=>{et.pagination={...et.pagination,...eo.payload},et.queryFilters.skip=(et.pagination.currentPageNumber-1)*10}},extraReducers(et){et.addCase(eh.fulfilled,(et,eo)=>{et.users=eo.payload.items,et.pagination={totalPages:eo.payload.totalPages,currentPageNumber:eo.payload.currentPageNumber},et.isLoading=!1}),et.addCase(eh.pending,et=>{et.isLoading=!0}),et.addCase(eh.rejected,et=>{et.isLoading=!1})}}),em=ef.actions;ef.reducer},69778:function(et,eo,ei){"use strict";ei.d(eo,{Tu:function(){return ep},mT:function(){return eg},sD:function(){return em}});var ea=ei(35251),eu=ei(16053),ed=ei(47719),eh=ei(84410);let getApi=()=>{let et=eu.Z.getAccessToken();return new ed.ClientsApi({basePath:"https://tenant-accounting.tgg-accounting.com",baseOptions:{headers:{Authorization:"Bearer ".concat(et)}}},"https://tenant-accounting.tgg-accounting.com")},ep=(0,ea.hg)("clients/fetchClients",async(et,eo)=>{let ei=eo.getState(),ea=getApi(),eu=await ea.clientsControllerGetPermissions("advanced",et.agencyId,void 0,ei.clients.searchParams.sort.direction,ei.clients.searchParams.sort.by,12,ei.clients.searchParams.skip,ei.clients.searchParams.term,{[eh.x.ACTIVE]:"true",[eh.x.DEACTIVATED]:"false",[eh.x.ALL]:""}[ei.clients.searchParams.status],void 0);return eu.data}),ef="TGG_CLIENT_VIEW_TYPE",initialState=()=>{let et="GRID";{let eo=localStorage.getItem(ef)||"GRID";["GRID","LIST"].includes(eo)&&(et=eo)}return{clients:[],isLoading:!0,totalPages:0,currentPageNumber:0,searchParams:{view:et,term:"",status:eh.x.ACTIVE,sort:{by:"name",direction:"ASC"},skip:0}}},em=(0,ea.oM)({name:"clients",initialState,reducers:{setView(et,eo){et.searchParams.view=eo.payload,localStorage.setItem(ef,eo.payload)},setSearchParams(et,eo){et.searchParams={...et.searchParams,...eo.payload,sort:{...et.searchParams.sort,...eo.payload.sort}}}},extraReducers(et){et.addCase(ep.fulfilled,(et,eo)=>{et.clients=eo.payload.items,et.isLoading=!1,et.totalPages=eo.payload.totalPages,et.currentPageNumber=eo.payload.currentPageNumber}),et.addCase(ep.pending,et=>{et.isLoading=!0}),et.addCase(ep.rejected,et=>{et.isLoading=!1})}}),eg=em.actions},19967:function(et,eo,ei){"use strict";ei.d(eo,{E5:function(){return eS},F9:function(){return eP},H1:function(){return eT},Kj:function(){return eR},Mr:function(){return ey},O5:function(){return eA},Oh:function(){return eg},PQ:function(){return eu},Sv:function(){return e_},ZA:function(){return ew},xL:function(){return eI},zJ:function(){return eE},zj:function(){return ea}});var ea,eu,ed=ei(35251),eh=ei(16053),ep=ei(95893),ef=ei(5121),em=ei(22920);!function(et){et.ARCHIVED="Achieved",et.DECLINED="Declined",et.IN_PROGRESS="In Progress",et.AWAITING_REVIEW="Client Review"}(ea||(ea={})),function(et){et.LAST_MONTH="LAST_MONTH",et.LAST_3_MONTHS="LAST_3_MONTHS",et.LAST_6_MONTHS="LAST_6_MONTHS",et.LAST_YEAR="LAST_YEAR"}(eu||(eu={}));let eg={LAST_MONTH:"Last Month",LAST_3_MONTHS:"Last 3 Months",LAST_6_MONTHS:"Last 6 Months",LAST_YEAR:"Last Year"},ey={"Last Month":"LAST_MONTH","Last 3 Months":"LAST_3_MONTHS","Last 6 Months":"LAST_6_MONTHS","Last Year":"LAST_YEAR"},eC={diagnostics:[],diagnosticsTimeline:{LAST_MONTH:[],LAST_3_MONTHS:[],LAST_6_MONTHS:[],LAST_YEAR:[]},totalPages:null,totalRecords:null,isFetchingDiagnostics:!0,isRunningDiagnostics:!1,isPublishingDiagnostics:!0,isDataSynced:!0,queryParams:{search:null,status:null,year:null,month:null,period:0,skip:0,categoryId:null},summary:null,isFetchingSummary:!0,isFetchingDiagnosticsTimeline:!0,categories:{},activeTab:"LAST_MONTH",selectedCategory:null,isFetchingCategories:!0,modal:{isOpen:!1,content:null}},getApi=()=>{let et=eh.Z.getAccessToken();return new ep.DataDiagnosticsApi({basePath:"https://accountingapi.tgg-accounting.com",baseOptions:{headers:{Authorization:"Bearer ".concat(et)}}},"https://accountingapi.tgg-accounting.com")},eS=(0,ed.hg)("dataDiagnostics/delete",async(et,eo)=>{let ei=getApi(),ea=await ei.dataDiagnosticsClientControllerDeleteDiagnosticResult(et.clientId,et.diagnosticId),eu=ea.data.value;return eu?{id:et.diagnosticId}:eo.rejectWithValue(null)}),e_=(0,ed.hg)("dataDiagnostics/run",async et=>{let eo=getApi(),ei={period:void 0};await eo.dataDiagnosticsClientControllerRunDiagnostics(ei,et.clientId)}),ew=(0,ed.hg)("dataDiagnostics/get",async et=>{let eo=getApi(),ei={clientId:et.clientId,skip:et.skip,take:et.take,search:et.search||void 0,year:et.year||void 0,month:et.month||void 0,status:et.status||void 0,categoryId:et.categoryId||void 0};try{let et=await eo.dataDiagnosticsClientControllerListDiagnostics(ei.clientId,ei.month,ei.year,ei.status,ei.categoryId,ei.search,ei.take,ei.skip);return{items:et.data.items,totalPages:et.data.totalPages,totalRecords:et.data.totalRecords}}catch(et){var ea;if(ef.default.isAxiosError(et)&&(null==et?void 0:null===(ea=et.response)||void 0===ea?void 0:ea.status)===404)return{items:[],totalPages:1,totalRecords:0}}}),eA=(0,ed.hg)("dataDiagnostics/getTimeline",async et=>{let eo=getApi(),ei={};return await Promise.all(Object.values(eu).map(async()=>{for(let ea of Object.values(eu)){let eu={clientId:et.clientId,period:ea};try{let et=await eo.dataDiagnosticsClientControllerDashboardTimeline(eu.clientId,eu.period);et.data,ei[ea]=et.data}catch(et){ef.default.isAxiosError(et)&&(ei[ea]=[])}}})),ei}),eI=(0,ed.hg)("dataDiagnostics/checkAisSync",async et=>{let eo=getApi(),ei=await eo.dataDiagnosticsClientControllerCheckAisSync(et.clientId,et.year,et.month);return ei.data}),eR=(0,ed.hg)("dataDiagnostics/transition",async et=>{let eo=getApi();await eo.dataDiagnosticsClientControllerUpdateDiagnosticResultStatus({status:et.status},et.clientId,et.diagnosticId)}),eT=(0,ed.hg)("dataDiagnostics/getSummary",async et=>{let eo=getApi(),ei={};void 0!==et.month&&null!==et.month&&(ei.month=et.month),void 0!==et.year&&null!==et.year&&(ei.year=et.year),void 0!==et.diagnosticId&&null!==et.diagnosticId&&(ei.diagnosticId=et.diagnosticId),void 0!==et.categoryId&&null!==et.categoryId&&(ei.categoryId=et.categoryId);let ea=await eo.dataDiagnosticsClientControllerListSummary(et.clientId,ei.month,ei.year,ei.diagnosticId,ei.categoryId);return ea.data}),eE=(0,ed.oM)({name:"dataDiagnostics",initialState:eC,reducers:{updateQueryParams:(et,eo)=>{et.queryParams={...et.queryParams,...eo.payload}},setModalContent:(et,eo)=>{et.modal.content=eo.payload},setModalOpen:(et,eo)=>{et.modal.isOpen=eo.payload},setSelectedCategory:(et,eo)=>{et.selectedCategory=eo.payload},setActiveTab:(et,eo)=>{et.activeTab=eo.payload}},extraReducers(et){et.addCase(e_.fulfilled,et=>{et.isRunningDiagnostics=!1}),et.addCase(e_.pending,et=>{et.isRunningDiagnostics=!0}),et.addCase(e_.rejected,et=>{et.isRunningDiagnostics=!1}),et.addCase(ew.fulfilled,(et,eo)=>{var ei,ea,eu,ed,eh,ep;for(let ef of(et.diagnostics=null!==(ed=null===(ei=eo.payload)||void 0===ei?void 0:ei.items)&&void 0!==ed?ed:[],et.totalPages=null!==(eh=null===(ea=eo.payload)||void 0===ea?void 0:ea.totalPages)&&void 0!==eh?eh:1,et.totalRecords=null!==(ep=null===(eu=eo.payload)||void 0===eu?void 0:eu.totalRecords)&&void 0!==ep?ep:0,et.isFetchingDiagnostics=!1,et.categories={},et.diagnostics))ef.diagnostic.category.id in et.categories?et.categories[ef.diagnostic.category.id].diagnostics.push({id:ef.id,message:ef.message}):et.categories[ef.diagnostic.category.id]={id:ef.diagnostic.category.id,categoryName:ef.diagnostic.category.name,diagnostics:[{id:ef.id,message:ef.message}]}}),et.addCase(ew.pending,et=>{et.isFetchingDiagnostics=!0}),et.addCase(ew.rejected,et=>{et.isFetchingDiagnostics=!1}),et.addCase(eR.fulfilled,et=>{et.isPublishingDiagnostics=!1}),et.addCase(eR.pending,et=>{et.isPublishingDiagnostics=!0}),et.addCase(eR.rejected,et=>{et.isPublishingDiagnostics=!1}),et.addCase(eS.fulfilled,(et,eo)=>{et.isFetchingDiagnostics=!1,et.diagnostics=et.diagnostics.filter(et=>et.id!==eo.payload.id)}),et.addCase(eS.pending,et=>{et.isFetchingDiagnostics=!0}),et.addCase(eS.rejected,et=>{et.isFetchingDiagnostics=!1,em.Am.error("We could not delete this diagnostic. Please try again later.")}),et.addCase(eI.fulfilled,(et,eo)=>{et.isDataSynced=eo.payload.isSynced}),et.addCase(eI.pending,et=>{et.isDataSynced=!1}),et.addCase(eI.rejected,et=>{et.isDataSynced=!1}),et.addCase(eT.fulfilled,(et,eo)=>{et.summary=eo.payload,et.isFetchingSummary=!1}),et.addCase(eT.pending,et=>{et.isFetchingSummary=!0}),et.addCase(eT.rejected,et=>{et.isFetchingSummary=!1}),et.addCase(eA.fulfilled,(et,eo)=>{et.diagnosticsTimeline=eo.payload,et.isFetchingDiagnosticsTimeline=!1}),et.addCase(eA.pending,et=>{et.isFetchingDiagnosticsTimeline=!0}),et.addCase(eA.rejected,et=>{et.isFetchingDiagnosticsTimeline=!1})}}),eP=eE.actions},67068:function(et,eo,ei){"use strict";ei.d(eo,{J0:function(){return ea},VG:function(){return ef},ZI:function(){return eh},vY:function(){return em}});var ea,eu=ei(35251),ed=ei(32818);!function(et){et.ACTIVE="ACTIVE",et.INACTIVE="INACTIVE"}(ea||(ea={}));let eh=(0,eu.hg)("hubUsers/fetchUsers",async(et,eo)=>{let ei=eo.getState(),ea=await ed.EF.get("/users",{params:{agencyId:et.agencyId,include:"invitation",userRole:"tgg-user",sortDir:ei.hubUsers.queryFilters.sort.direction,sortBy:ei.hubUsers.queryFilters.sort.by,take:10,skip:ei.hubUsers.queryFilters.skip,searchTerm:ei.hubUsers.queryFilters.searchTerm,clientId:"",active:"ACTIVE"===ei.hubUsers.queryFilters.status}});return ea}),ep={users:[],isLoading:!1,queryFilters:{searchTerm:"",skip:0,status:"ACTIVE",sort:{direction:"ASC",by:"firstName"}},pagination:{totalPages:1,currentPageNumber:1}},ef=(0,eu.oM)({name:"hubUsers",initialState:ep,reducers:{setQueryFilters:(et,eo)=>{et.queryFilters={...et.queryFilters,...eo.payload,sort:{...et.queryFilters.sort,...eo.payload.sort}}},setPagination:(et,eo)=>{et.pagination={...et.pagination,...eo.payload},et.queryFilters.skip=(et.pagination.currentPageNumber-1)*10}},extraReducers(et){et.addCase(eh.fulfilled,(et,eo)=>{et.users=eo.payload.items,et.pagination={totalPages:eo.payload.totalPages,currentPageNumber:eo.payload.currentPageNumber},et.isLoading=!1}),et.addCase(eh.pending,et=>{et.isLoading=!0}),et.addCase(eh.rejected,et=>{et.isLoading=!1})}}),em=ef.actions;ef.reducer},20901:function(et,eo,ei){"use strict";ei.d(eo,{IA:function(){return eh},OV:function(){return em},Xb:function(){return ef},cv:function(){return ep},jl:function(){return ey},yi:function(){return eC}});var ea=ei(35251),eu=ei(32818),ed=ei(28858);let eh=(0,ea.hg)("insights/fetchCards",async et=>{let eo=await eu.r_.get("/clients/".concat(et.clientId,"/insights/cards/").concat(et.period));if("cards"in eo)return eo;throw Error("Error fetching cards")}),ep=(0,ea.hg)("insights/fetchSteps",async et=>{let eo=await eu.r_.get("/clients/".concat(et.clientId,"/profit-recommendations/").concat(et.recommendationId,"/steps"));return eo}),ef=(0,ea.hg)("insights/fetchProfit",async et=>{let eo=await eu.r_.get("/clients/".concat(et.clientId,"/profit-recommendations?period=").concat(et.period));return eo}),em=(0,ea.hg)("insights/updateCard",async et=>{let{clientId:eo,...ei}=et;"finalPosition"in ei&&(ei.finalPosition=calculateNewIndex({dragIndex:ei.initialPosition,dropIndex:ei.finalPosition,dropSide:"left"}),ei.finalPosition===ei.initialPosition)||await eu.r_.patch("/clients/".concat(eo,"/insights/layout"),ei)}),eg={cards:[],draggingCardId:null,resizingCardId:null,steps:[],profit:null},ey=(0,ea.oM)({name:"insights",initialState:eg,reducers:{setCards:(et,eo)=>{et.cards=eo.payload},setSteps(et,eo){et.steps=eo.payload},setProfit(et,eo){et.profit=eo.payload},moveCard:(et,eo)=>{let[ei]=et.cards.splice(eo.payload.dragIndex,1),ea=calculateNewIndex(eo.payload);et.cards.splice(ea,0,ei),et.draggingCardId=null},resizeCard:(et,eo)=>{for(let ei=0;ei<et.cards.length;ei++)if(et.cards[ei].layoutId===eo.payload.id){et.cards[ei].size=eo.payload.parentFraction;break}et.resizingCardId=null},setDraggingCard:(et,eo)=>{et.draggingCardId=eo.payload},setResizingCard:(et,eo)=>{et.resizingCardId=eo.payload},resetCards:et=>{for(let eo=0;eo<et.cards.length;eo++)et.cards[eo].size=2,et.cards[eo].position=eo}},extraReducers(et){et.addCase(ed.ju,(et,eo)=>{et.cards=eo.payload.insights.cards,et.profit=eo.payload.insights.profit}),et.addCase(eh.fulfilled,(et,eo)=>{et.cards=eo.payload.cards}),et.addCase(eh.rejected,(et,eo)=>{console.error(eo.error)}),et.addCase(ep.fulfilled,(et,eo)=>{et.steps=eo.payload.data}),et.addCase(ep.rejected,(et,eo)=>{console.error(eo.error)}),et.addCase(ef.fulfilled,(et,eo)=>{et.profit=eo.payload.data}),et.addCase(ef.rejected,(et,eo)=>{console.error(eo.error)})}}),eC=ey.actions,calculateNewIndex=et=>{let eo=et.dropIndex;return"right"===et.dropSide&&et.dragIndex>et.dropIndex&&(eo+=1),"left"===et.dropSide&&et.dragIndex<et.dropIndex&&(eo-=1),eo}},87198:function(et,eo,ei){"use strict";ei.d(eo,{BP:function(){return e_},FN:function(){return eS},I8:function(){return ey},_o:function(){return ef},eA:function(){return ew},lJ:function(){return em},sX:function(){return eC},xp:function(){return eg}});var ea=ei(57632),eu=ei(35251),ed=ei(32818);let eh={createBudget:{modalIsOpen:!1},editBudgetName:{modalIsOpen:!1,budgetId:"",budgetName:"",saving:!1,error:null},deleteBudget:{modalIsOpen:!1,budgetId:"",saving:!1},listScreen:{loading:!0,budgets:[]},viewSelectedBudgetScreen:{currentIsSaved:!0,budgetInfo:null,dataHistory:[],loading:!0,addRowModalIsOpen:!1,deleteRowModalIsOpen:!1,selectedCategory:null,selectedSubCategory:null,addBellow:!0,saving:!1}},ep=Array.from(Array(12).keys()).map(et=>({actual:0,budget:0,month:et+1})),ef=(0,eu.hg)("manualBudgets/fetchBudgets",async et=>ed.Ew.get("/clients/".concat(et.clientId,"/budgets/manual"),{params:{skip:0,take:1e3}})),em=(0,eu.hg)("manualBudgets/fetchBudget",async et=>ed.Ew.get("/clients/".concat(et.clientId,"/budgets/manual/").concat(et.budgetId))),eg=(0,eu.hg)("manualBudgets/create",async et=>ed.Ew.post("/clients/".concat(et.clientId,"/budgets/manual"),{name:et.budgetName,year:et.year})),ey=(0,eu.hg)("manualBudgets/updateName",async et=>ed.Ew.patch("/clients/".concat(et.clientId,"/budgets/manual/").concat(et.budgetId),{name:et.name})),eC=(0,eu.hg)("manualBudgets/delete",async et=>ed.Ew.delete("/clients/".concat(et.clientId,"/budgets/manual/").concat(et.budgetId))),eS=(0,eu.hg)("manualBudgets/updateBudgetDetails",async et=>{let eo=et.data.map((et,eo)=>({name:et.name,position:eo+1,subAccounts:et.subAccounts.map((et,eo)=>({name:et.name,position:eo+1,periods:et.periods}))}));return ed.Ew.post("/clients/".concat(et.clientId,"/budgets/manual/").concat(et.budgetId,"/details"),{details:eo})}),e_=(0,eu.oM)({name:"manualBudgets",initialState:eh,reducers:{openCreateBudgetModal:et=>{et.createBudget.modalIsOpen=!0},closeCreateBudgetModal:et=>{et.createBudget.modalIsOpen=!1},openDeleteRowModal:(et,eo)=>{var ei;et.viewSelectedBudgetScreen.deleteRowModalIsOpen=!0,et.viewSelectedBudgetScreen.selectedCategory=eo.payload.categoryIndex,et.viewSelectedBudgetScreen.selectedSubCategory=null!==(ei=eo.payload.subCategoryIndex)&&void 0!==ei?ei:null},closeDeleteRowModal:et=>{et.viewSelectedBudgetScreen.deleteRowModalIsOpen=!1,et.viewSelectedBudgetScreen.selectedSubCategory=null,et.viewSelectedBudgetScreen.selectedCategory=null},deleteRow:et=>{let eo=et.viewSelectedBudgetScreen.dataHistory,ei=eo[eo.length-1],ea=et.viewSelectedBudgetScreen.selectedSubCategory,eu=et.viewSelectedBudgetScreen.selectedCategory;if(null===ea&&null!==eu){let et=[...ei];et.splice(eu,1),eo.push(et)}else if(null!==eu&&null!==ea){let et=[...ei];et[eu]={...et[eu]},et[eu].subAccounts=[...et[eu].subAccounts],et[eu].subAccounts.splice(ea,1),eo.push(et)}et.viewSelectedBudgetScreen.currentIsSaved=!1},openAddRowModal:(et,eo)=>{var ei;et.viewSelectedBudgetScreen.addRowModalIsOpen=!0,et.viewSelectedBudgetScreen.selectedCategory=eo.payload.categoryIndex,et.viewSelectedBudgetScreen.selectedSubCategory=null!==(ei=eo.payload.subCategoryIndex)&&void 0!==ei?ei:null,et.viewSelectedBudgetScreen.addBellow=eo.payload.addBellow},closeAddRowModal:et=>{et.viewSelectedBudgetScreen.addRowModalIsOpen=!1},addCategory:(et,eo)=>{let ei=et.viewSelectedBudgetScreen.dataHistory,eu=ei[ei.length-1],ed=et.viewSelectedBudgetScreen.selectedCategory;if(null===ed)return;let eh=[...eu];eh.splice(ed+(et.viewSelectedBudgetScreen.addBellow?1:0),0,{id:(0,ea.Z)(),name:eo.payload,subAccounts:[]}),ei.push(eh),et.viewSelectedBudgetScreen.addRowModalIsOpen=!1,et.viewSelectedBudgetScreen.currentIsSaved=!1},addSubCategory:(et,eo)=>{let ei=et.viewSelectedBudgetScreen.dataHistory,eu=ei[ei.length-1],ed=et.viewSelectedBudgetScreen.selectedCategory||0,eh=null!==et.viewSelectedBudgetScreen.selectedSubCategory,ef=et.viewSelectedBudgetScreen.selectedSubCategory||0,em=[...eu];em[ed]={...em[ed]},em[ed].subAccounts=[...em[ed].subAccounts],em[ed].subAccounts.splice(eh?ef+(et.viewSelectedBudgetScreen.addBellow?1:0):0,0,{id:(0,ea.Z)(),name:eo.payload,periods:ep}),ei.push(em),et.viewSelectedBudgetScreen.addRowModalIsOpen=!1,et.viewSelectedBudgetScreen.currentIsSaved=!1},updateCell:(et,eo)=>{let ei=et.viewSelectedBudgetScreen.dataHistory,ea=ei[ei.length-1];ei.push(ea.map((et,ei)=>({...et,subAccounts:et.subAccounts.map((et,ea)=>({...et,periods:et.periods.map(et=>({...et,...ei===eo.payload.categoryIndex&&ea===eo.payload.subCategoryIndex&&et.month===eo.payload.month&&{[eo.payload.isBudget?"budget":"actual"]:eo.payload.value}}))}))}))),et.viewSelectedBudgetScreen.currentIsSaved=!1},updateSubCategoryName:(et,eo)=>{let ei=et.viewSelectedBudgetScreen.dataHistory,ea=ei[ei.length-1],eu=ea[eo.payload.categoryIndex],ed=eu.subAccounts[eo.payload.subCategoryIndex],eh=[...ea];eh[eo.payload.categoryIndex]={...eu},eh[eo.payload.categoryIndex].subAccounts=[...eu.subAccounts],eh[eo.payload.categoryIndex].subAccounts[eo.payload.subCategoryIndex]={...ed,name:eo.payload.name},ei.push(eh),et.viewSelectedBudgetScreen.currentIsSaved=!1},openEditBudgetNameModal:(et,eo)=>{et.editBudgetName.modalIsOpen=!0,et.editBudgetName.budgetId=eo.payload.budgetId,et.editBudgetName.budgetName=eo.payload.budgetName},closeEditBudgetNameModal:et=>{et.editBudgetName.saving||(et.editBudgetName.modalIsOpen=!1,et.editBudgetName.budgetName="",et.editBudgetName.error=null)},setEditBudgetName:(et,eo)=>{et.editBudgetName.budgetName=eo.payload},setNameEditError:(et,eo)=>{et.editBudgetName.error=eo.payload},openDeleteBudgetModal:(et,eo)=>{et.deleteBudget.modalIsOpen=!0,et.deleteBudget.budgetId=eo.payload.budgetId},closeDeleteBudgetModal:et=>{et.deleteBudget.saving||(et.deleteBudget.modalIsOpen=!1,et.deleteBudget.budgetId="")},undo:et=>{let eo=et.viewSelectedBudgetScreen.dataHistory;eo.length>1&&(eo.pop(),et.viewSelectedBudgetScreen.currentIsSaved=!1)},revert:et=>{et.viewSelectedBudgetScreen.dataHistory=[et.viewSelectedBudgetScreen.dataHistory[0]],et.viewSelectedBudgetScreen.currentIsSaved=!1},resetViewBudgetLoading:et=>{et.viewSelectedBudgetScreen.loading=!0,et.viewSelectedBudgetScreen.budgetInfo=null},resetListBudgetsLoading:et=>{et.listScreen.loading=!0}},extraReducers:et=>{et.addCase(ey.pending,et=>{et.editBudgetName.saving=!0}),et.addCase(ey.fulfilled,(et,eo)=>{let ei=et.listScreen.budgets.find(et=>et.id===eo.payload.id);ei&&(ei.name=eo.payload.name)}),et.addCase(eC.pending,et=>{et.deleteBudget.saving=!0}),et.addCase(eC.fulfilled,et=>{et.listScreen.budgets=et.listScreen.budgets.filter(eo=>eo.id!==et.deleteBudget.budgetId)}),et.addCase(ef.pending,et=>{et.listScreen.loading=!0}),et.addCase(ef.fulfilled,(et,eo)=>{et.listScreen.budgets=eo.payload.items,et.listScreen.loading=!1}),et.addCase(eg.fulfilled,(et,eo)=>{et.listScreen.budgets.push(eo.payload)}),et.addCase(em.pending,et=>{et.viewSelectedBudgetScreen.loading=!0}),et.addCase(em.fulfilled,(et,eo)=>{et.viewSelectedBudgetScreen.budgetInfo=eo.payload.budgetInfo,et.viewSelectedBudgetScreen.dataHistory=[eo.payload.budgetVsActuals.map(et=>({...et,id:(0,ea.Z)(),subAccounts:et.subAccounts.map(et=>({...et,id:(0,ea.Z)()})).sort((et,eo)=>(et.position||0)-(eo.position||0))})).sort((et,eo)=>(et.position||0)-(eo.position||0))],et.viewSelectedBudgetScreen.currentIsSaved=!0,et.viewSelectedBudgetScreen.loading=!1}),et.addCase(eS.pending,et=>{et.viewSelectedBudgetScreen.saving=!0}),et.addCase(eS.fulfilled,et=>{et.viewSelectedBudgetScreen.currentIsSaved=!0}),et.addMatcher(eS.settled,et=>{et.viewSelectedBudgetScreen.saving=!1}),et.addMatcher(ey.settled,et=>{et.editBudgetName.saving=!1,et.editBudgetName.modalIsOpen=!1}),et.addMatcher(eC.settled,et=>{et.deleteBudget.saving=!1,et.deleteBudget.modalIsOpen=!1})}}),ew=e_.actions;e_.reducer},33334:function(et,eo,ei){"use strict";ei.d(eo,{Eo:function(){return ea},sX:function(){return eN},c0:function(){return eU},eg:function(){return eM},bs:function(){return eB},ef:function(){return eD},RA:function(){return ej},nG:function(){return eF},pg:function(){return eL}});var ea,eu=ei(35251),ed=ei(32818),eh=ei(5121);let{Axios:ep,AxiosError:ef,CanceledError:em,isCancel:eg,CancelToken:ey,VERSION:eC,all:eS,Cancel:e_,isAxiosError:ew,spread:eA,toFormData:eI,AxiosHeaders:eR,HttpStatusCode:eT,formToJSON:eE,getAdapter:eP,mergeConfig:ek}=eh.default;!function(et){et[et.Loading=0]="Loading",et[et.EmptyState=1]="EmptyState",et[et.ImportingBudget=2]="ImportingBudget",et[et.SelectingBudget=3]="SelectingBudget"}(ea||(ea={}));let eO={status:0,importBudgetModal:{isOpen:!1,isFetchingBudgets:!1,availableBudgets:[],error:!1},selectBudgetScreen:{loading:!0,isRefreshingBudgets:!1,importedBudgets:[],selectedBudgets:{}},viewSelectedBudgetScreen:{data:null,isLoading:!0}},eM=(0,eu.hg)("qboBudgets/fetchQuickbooksBudgets",async(et,eo)=>{let{rejectWithValue:ei}=eo;try{let eo=await ed.Ew.get("/clients/".concat(et.clientId,"/budgets/qbo/available"));return eo}catch(et){var ea,eu;if(et instanceof ef&&(null==et?void 0:null===(ea=et.response)||void 0===ea?void 0:ea.data))return ei(null==et?void 0:null===(eu=et.response)||void 0===eu?void 0:eu.data);throw et}}),eD=(0,eu.hg)("qboBudgets/importBudget",async et=>ed.Ew.post("/clients/".concat(et.clientId,"/budgets/qbo/import"),{budgetId:et.budgetId})),eU=(0,eu.hg)("qboBudgets/fetchImportedBudgets",async et=>ed.Ew.get("/clients/".concat(et.clientId,"/budgets/qbo"),{params:{skip:0,take:1e3}})),eL=(0,eu.hg)("qboBudgets/refreshSelectedBudgets",async(et,eo)=>{let ei=eo.getState(),ea=Object.keys(ei.qboBudgets.selectBudgetScreen.selectedBudgets),eu=await Promise.all(ea.map(eo=>ed.Ew.post("/clients/".concat(et.clientId,"/budgets/qbo/").concat(eo,"/refresh"))));return eu.reduce((et,eo)=>({...et,[eo.id]:eo}),{})}),eN=(0,eu.hg)("qboBudgets/deleteBudget",async et=>ed.Ew.delete("/clients/".concat(et.clientId,"/budgets/qbo/").concat(et.budgetId))),eB=(0,eu.hg)("qboBudgets/getBudgetVsActuals",async et=>ed.Ew.get("/clients/".concat(et.clientId,"/budgets/qbo/").concat(et.budgetId))),eF=(0,eu.oM)({name:"qboBudgets",initialState:eO,reducers:{setShowBudgetSelectorModal:(et,eo)=>{et.importBudgetModal.isOpen=eo.payload},selectAllBudgets:et=>{for(let eo of et.selectBudgetScreen.importedBudgets)et.selectBudgetScreen.selectedBudgets[eo.id]=!0},clearAllSelectedBudgets:et=>{et.selectBudgetScreen.selectedBudgets={}},toggleBudgetSelection:(et,eo)=>{et.selectBudgetScreen.selectedBudgets[eo.payload]?delete et.selectBudgetScreen.selectedBudgets[eo.payload]:et.selectBudgetScreen.selectedBudgets[eo.payload]=!0}},extraReducers:et=>{et.addCase(eD.pending,et=>{et.status=2}),et.addCase(eD.fulfilled,(et,eo)=>{et.selectBudgetScreen.importedBudgets.push(eo.payload),et.status=3}),et.addCase(eM.pending,et=>{et.importBudgetModal.isFetchingBudgets=!0}),et.addCase(eM.rejected,et=>{et.importBudgetModal.isFetchingBudgets=!1}),et.addCase(eM.fulfilled,(et,eo)=>{et.importBudgetModal.availableBudgets=eo.payload.map(et=>({label:et.name,value:et.id})),et.importBudgetModal.isFetchingBudgets=!1}),et.addCase(eU.pending,et=>{et.selectBudgetScreen.loading=!0}),et.addCase(eU.fulfilled,(et,eo)=>{et.selectBudgetScreen.importedBudgets=eo.payload.items,et.selectBudgetScreen.loading=!1,0===eo.payload.items.length?et.status=1:et.status=3}),et.addCase(eL.pending,et=>{et.selectBudgetScreen.isRefreshingBudgets=!0}),et.addCase(eL.fulfilled,(et,eo)=>{et.selectBudgetScreen.selectedBudgets={};for(let ei=0;ei<et.selectBudgetScreen.importedBudgets.length;ei++){let ea=et.selectBudgetScreen.importedBudgets[ei];ea.id in eo.payload&&(et.selectBudgetScreen.importedBudgets[ei]=eo.payload[ea.id])}et.selectBudgetScreen.isRefreshingBudgets=!1}),et.addCase(eN.pending,et=>{et.selectBudgetScreen.loading=!0}),et.addCase(eN.fulfilled,(et,eo)=>{delete et.selectBudgetScreen.selectedBudgets[eo.meta.arg.budgetId],et.selectBudgetScreen.importedBudgets=et.selectBudgetScreen.importedBudgets.filter(et=>et.id!==eo.meta.arg.budgetId),0===et.selectBudgetScreen.importedBudgets.length&&(et.status=1),et.selectBudgetScreen.loading=!1}),et.addCase(eB.pending,et=>{et.viewSelectedBudgetScreen.isLoading=!0}),et.addCase(eB.fulfilled,(et,eo)=>{et.viewSelectedBudgetScreen.data=eo.payload,et.viewSelectedBudgetScreen.isLoading=!1})}}),ej=eF.actions;eF.reducer},11467:function(et,eo,ei){"use strict";ei.d(eo,{R6:function(){return ep},Re:function(){return ef},mJ:function(){return ea},q0:function(){return eh}});var ea,eu=ei(35251);!function(et){et.HUB_AI_EXECUTIVE_SUMMARY="HUB AI Executive Summary",et.REVENUE="Revenue",et.COGS="COGS",et.GROSS_PROFIT="Gross Profit",et.OPERATING_EXPENSE="Operating Expense",et.NET_OPERATING_INCOME="Net Operating Income",et.NET_INCOME="Net Income",et.TOTAL_ASSETS="Total Assets",et.TOTAL_LIABILITIES="Total Liabilities",et.TOTAL_EQUITY="Total Equity",et.CASH_FLOW="Cash Flow",et.OTHER_TOPIC="Other Topic"}(ea||(ea={}));let ed={aiCommentaryWidget:{selectedOptions:{}}},eh=(0,eu.oM)({name:"configureExecutiveSummary",initialState:ed,reducers:{toggleAiWidgetOption(et,eo){let ei=eo.payload;"HUB AI Executive Summary"===ei?et.aiCommentaryWidget.selectedOptions={"HUB AI Executive Summary":!et.aiCommentaryWidget.selectedOptions["HUB AI Executive Summary"]}:et.aiCommentaryWidget.selectedOptions[ei]?delete et.aiCommentaryWidget.selectedOptions[ei]:et.aiCommentaryWidget.selectedOptions[ei]=!0,et.aiCommentaryWidget.selectedOptions["HUB AI Executive Summary"]||delete et.aiCommentaryWidget.selectedOptions["HUB AI Executive Summary"]},preloadInitialOptions(et,eo){et.aiCommentaryWidget.selectedOptions={},eo.payload.forEach(eo=>{et.aiCommentaryWidget.selectedOptions[eo]=!0})}}}),{toggleAiWidgetOption:ep,preloadInitialOptions:ef}=eh.actions},43396:function(et,eo,ei){"use strict";ei.d(eo,{R_:function(){return em},Yn:function(){return eg},_5:function(){return ef},pn:function(){return ey},uj:function(){return ep},yd:function(){return eC}});var ea=ei(35251),eu=ei(22920);let ed={addingHubAiCommentary:!1,selectedNotes:{}},eh=(0,ea.hg)("configureNotes/applyNotesAi",async et=>{try{eu.Am.success("AI commentary applied to notes")}catch(et){throw eu.Am.error("Error applying AI commentary to notes"),et}}),ep=(0,ea.oM)({name:"configureNotes",initialState:ed,reducers:{toggleNotesAiCommentary(et){et.addingHubAiCommentary=!et.addingHubAiCommentary,et.addingHubAiCommentary||(et.selectedNotes={})},toggleNoteSelection(et,eo){et.selectedNotes[eo.payload]?delete et.selectedNotes[eo.payload]:et.selectedNotes[eo.payload]=!0},selectAllNotes(et,eo){eo.payload.forEach(eo=>{et.selectedNotes[eo]=!0})},clearAllSelectedNotes(et){et.selectedNotes={}},setSelectedNotes(et,eo){et.selectedNotes=eo.payload.reduce((et,eo)=>(et[eo]=!0,et),{})}},extraReducers(et){et.addCase(eh.fulfilled,et=>{et.addingHubAiCommentary=!1,et.selectedNotes={}})}}),{toggleNotesAiCommentary:ef,toggleNoteSelection:em,selectAllNotes:eg,clearAllSelectedNotes:ey,setSelectedNotes:eC}=ep.actions},77856:function(et,eo,ei){"use strict";ei.d(eo,{P:function(){return ed},v:function(){return eh}});var ea=ei(35251);let eu={activePackageId:""},ed=(0,ea.oM)({name:"report",initialState:eu,reducers:{setActivePackageId:(et,eo)=>{et.activePackageId=eo.payload}}}),{setActivePackageId:eh}=ed.actions},79657:function(et,eo,ei){"use strict";ei.d(eo,{AJ:function(){return ep},GB:function(){return eh},cH:function(){return ea},lI:function(){return ed},ou:function(){return ef}});var ea,eu=ei(35251);!function(et){et.admin="ADMIN",et.client="CLIENT",et.owner="OWNER",et.user="USER"}(ea||(ea={}));let ed=(0,eu.oM)({name:"sidebar",initialState:{isExpanded:!0,version:"CLIENT",expandedGroups:{}},reducers:{toggleSidebar:et=>{et.isExpanded=!et.isExpanded},toggleGroup:(et,eo)=>{et.expandedGroups[eo.payload]=!et.expandedGroups[eo.payload]},setSidebarVersion:(et,eo)=>{et.version=eo.payload}}}),{toggleSidebar:eh,toggleGroup:ep,setSidebarVersion:ef}=ed.actions},66082:function(et,eo,ei){"use strict";ei.d(eo,{AX:function(){return eh},C6:function(){return ep},O$:function(){return ef},XO:function(){return ed},g0:function(){return isKPIInputItemConstant},iT:function(){return ea}});let ea={label:"Constant",type:"constant"},eu={addition:"addition",subtraction:"subtraction",multiplication:"multiplication",division:"division"},ed={open:"open",close:"close"},eh={operator:"OPERATOR",bracket:"BRACKET",input:"INPUT"},ep=[{id:eu.addition,label:"+"},{id:eu.subtraction,label:"-"},{id:eu.multiplication,label:"*"},{id:eu.division,label:"/"}],ef=[{id:ed.open,label:"(",optionalLabel:"["},{id:ed.close,label:")",optionalLabel:"]"}];function isKPIInputItemConstant(et){var eo;return(null==et?void 0:null===(eo=et.selectedAccount)||void 0===eo?void 0:eo.dataSourceType)===ea.type}},25704:function(et,eo,ei){"use strict";ei.d(eo,{F6:function(){return eg},GN:function(){return eC},H0:function(){return ea},HB:function(){return eA},Nm:function(){return e_},Nu:function(){return eu},WK:function(){return ef},Zx:function(){return eS},cs:function(){return em},e7:function(){return ed},fJ:function(){return ew},lT:function(){return eh},te:function(){return ey}});let ea={clientView:"TGG_CLIENT_VIEW_TYPE",tggToken:"TGG_AUTH_TOKEN",refetchTggToken:"TGG_REFETCH_AUTH_TOKEN",darkMode:"TGG_DARK_MODE",sideMenu:"TGG_SIDE_MENU",QBOSession:"TGG_QBO_SESSION",reportSideMenu:"TGG_REPORT_SIDE_MENU",fullReportAPICallsStarted:"FULL_REPORT_API_CALLS_STARTED",fullReportAPICallsDone:"FULL_REPORT_API_CALLS_DONE",clientPortalView:"TGG_CLIENT_PORTAL_VIEW",qboTaskId:"TGG_QBO_TASK_ID",qboTaskIdForReportTask:"TGG_QBO_TASK_ID_FOR_REPORT_TASK"},eu={list:"LIST",grid:"GRID"},ed=[{title:"January",value:1},{title:"February",value:2},{title:"March",value:3},{title:"April",value:4},{title:"May",value:5},{title:"June",value:6},{title:"July",value:7},{title:"August",value:8},{title:"September",value:9},{title:"October",value:10},{title:"November",value:11},{title:"December",value:12}],eh={clientDetails:"CLIENT_DETAILS",organizationProfile:"ORGANIZATION_PROFILE",financialProfile:"FINANCIAL_PROFILE",teamAdvisor:"TEAM_ADVISOR"},ep={managementOwnership:"MANAGEMENT_OWNERSHIP",companyAdvisors:"COMPANY_ADVISORS",accountingTeam:"ACCOUNTING_TEAM"},ef=[{title:"client.clientDetails",id:eh.clientDetails},{title:"client.organizationProfile.title",id:eh.organizationProfile},{title:"client.financialProfile.title",id:eh.financialProfile},{title:"client.teamAdvisor",id:eh.teamAdvisor}];ep.managementOwnership,ep.companyAdvisors,ep.accountingTeam;let em={userDetails:"USER_DETAILS",permissions:"PERMISSIONS",review:"REVIEW_USER_DETAILS"},eg=[{title:"user.tgg-user.userDetails",id:em.userDetails},{title:"user.tgg-user.permissions",id:em.permissions},{title:"user.tgg-user.review",id:em.review}],ey={incomeStatement:"income-statement",balanceSheet:"balance-sheet",cashFlowStatement:"cash-flow-statement"},eC={incomeStatement:"income-statement",balanceSheet:"balance-sheet",cashFlowStatement:"cash-flow-statement"},eS={incomeStatement:"income-statement",balanceSheet:"balance-sheet",cashFlowStatement:"cash-flow-statement"},e_=[{title:"common.incomeStatement",value:ey.incomeStatement},{title:"common.balanceSheet",value:ey.balanceSheet}],ew={calendar:"calendar",specificMonth:"specific-month"},eA={ascending:"ASC",descending:"DESC"}},82884:function(et,eo,ei){"use strict";ei.d(eo,{I3:function(){return eu},bE:function(){return ed},sP:function(){return eh}});let ea={createDataSet:"CREATE_DATE_SET",configureKPI:"CONFIGURE_KPI"},eu={variable:"VARIABLE",list:"LIST"};ea.createDataSet,ea.configureKPI;let ed={cumulative:"cumulative",nonCumulative:"non-cumulative"},eh=[{title:"Additive",value:ed.cumulative},{title:"Non-Additive",value:ed.nonCumulative}]},53023:function(et,eo,ei){"use strict";ei.d(eo,{Qb:function(){return eg},XM:function(){return em}});var ea=ei(1604);let eu=ea.z.object({aadClientId:ea.z.string({required_error:'The environment variable "NEXT_PUBLIC_AAD_CLIENT_ID" is missing'}),aadName:ea.z.string({required_error:'The environment variable "NEXT_PUBLIC_AAD_NAME" is missing'}),policy:ea.z.string({required_error:'The environment variable "NEXT_PUBLIC_SIGN_IN_POLICY" is missing'})}),{aadClientId:ed,aadName:eh,policy:ep}=eu.parse({aadClientId:"85af5027-11e1-4269-84f2-0b469c6d7fdc",aadName:"tggaccountingusers",policy:"B2C_1A_SIGNUP_SIGNIN_SELF_HOSTED"});function getBaseURI(){return"".concat(window.location.origin,"/")}let ef=getBaseURI(),em={auth:{clientId:ed,authority:"https://".concat(eh,".b2clogin.com/").concat(eh,".onmicrosoft.com/").concat(ep),knownAuthorities:["".concat(eh,".b2clogin.com")],redirectUri:"".concat(ef,"oidc-response"),navigateToLoginRequestUrl:!1},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1}},eg={scopes:["openid","profile"]}},67522:function(et,eo,ei){"use strict";ei.d(eo,{IT:function(){return eu},Rg:function(){return getUserRole},br:function(){return permissionMode},nP:function(){return ea}});let ea={fromExistingUser:"FROM_EXISTING_USER",fromExistingPersona:"FROM_EXISTING_PERSONA",custom:"CUSTOM"};function permissionMode(et){switch(et){case ea.fromExistingUser:return"existing-user";case ea.fromExistingPersona:return"existing-persona";case ea.custom:default:return"specific-permission"}}let eu={superAdmin:"super-admin",tggUser:"tgg-user",clientUser:"client-user",globalUser:"global-user"};function getUserRole(et){switch(et){case eu.superAdmin:return"Super Admin";case eu.tggUser:return"HUB Analytics User";case eu.clientUser:return"Client User";default:return""}}},77179:function(et,eo,ei){"use strict";ei.d(eo,{$W:function(){return eY},D4:function(){return defaultGlTableOptions},E4:function(){return tm},E5:function(){return tf},E8:function(){return tp},Eb:function(){return tu},FF:function(){return tS},Fi:function(){return ta},G7:function(){return getYearsFilterOptions},GI:function(){return e9},Hf:function(){return defaultPage},IH:function(){return eJ},JG:function(){return eH},Lh:function(){return eu},Ln:function(){return ti},Lx:function(){return eX},ME:function(){return tn},MW:function(){return eL},Mn:function(){return tv},NI:function(){return tb},OB:function(){return ej},Pb:function(){return eW},QN:function(){return eZ},T$:function(){return t_},TX:function(){return eV},V4:function(){return getYears},Xe:function(){return tc},_q:function(){return e7},a2:function(){return ty},ay:function(){return eE},bi:function(){return getAllFiscalYearsSince2019},cI:function(){return e8},d$:function(){return e$},dX:function(){return defaultCVTableConfig},eY:function(){return tC},et:function(){return e0},fh:function(){return eU},ft:function(){return eK},gK:function(){return eG},h5:function(){return getFiscalYears},jN:function(){return getYearMonthOptions},k0:function(){return eM},k6:function(){return ez},kR:function(){return tr},nC:function(){return eF},qu:function(){return ts},rj:function(){return eQ},tw:function(){return tg},tx:function(){return eO},wH:function(){return getMonths},wp:function(){return e5},ws:function(){return e6},x_:function(){return td},zk:function(){return e4}});var ea,eu,ed=ei(59846),eh=ei(30381),ep=ei.n(eh),ef=ei(57632),em=ei(25704);let eg=29.7,ey=21,eC=4,eS=3,e_=21,ew=29.7,eA=3,eI=4,eR=.396875,eT=.2,eE={portraitPageHeight:eg,portraitPageWidth:ey,portraitPageHorizontalPadding:eC,portraitPageVerticalPadding:eS,landscapePageWidth:ew,landscapePageHeight:e_,landscapePageHorizontalPadding:eA,landscapePageVerticalPadding:eI,pageGap:eR,notesGap:eT,portraitPageContentHeight:eg-eC,landscapePageContentHeight:e_-eA};!function(et){et.H1="24",et.H2="22",et.H3="20",et.H4="18"}(ea||(ea={})),function(et){et.CUSTOM_KPI="custom-kpi",et.STANDARD_KPI="std-kpi"}(eu||(eu={}));let eP={fontSize:"24",isBold:!0,alignment:"left",includeInToc:!1},ek={fontSize:{label:12,value:"12px"},isBold:!1,isItalic:!1,isUnderline:!1,alignment:"left"},eO={alignment:"left"},eM={alignment:"left"},eD={alignment:"left"},defaultPage=()=>({id:(0,ef.Z)(),title:"",displayOrder:1,widgets:[],isLandscape:!1}),eU={type:ed.l.TITLE,name:"Title",value:"Title",properties:eP},eL={type:ed.l.TEXT,name:"Text",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris luctus risus at sapien sagittis",properties:ek},eN={type:ed.l.IMAGE,name:"Image",value:"",properties:eD},eB={type:ed.l.PDF,name:"PDF",value:"",properties:null},eF={chartType:"line",position:"Left axis",targetLine:"",targetProperties:null},ej=[{...eU,iconType:"heading"},{...eL,iconName:"text"},{...eN,iconName:"picture"},{...eB,iconName:"pdf"},{type:ed.l.KPI,name:"KPI",value:"",properties:null,iconName:"calculator"},{type:ed.l.DFM,name:"Condensed Financial Statement",value:"",properties:null,iconName:"customize"},{type:ed.l.GOAL,name:"Goal",value:"",properties:null,iconName:"goal"},{type:ed.l.PROFIT_RECOMMENDATION,name:"Profitability Recommendation",value:"",properties:null,iconName:"profit"},{type:ed.l.TBL,name:"Triple Bottom Line",value:"",properties:null,iconName:"tbl"},{type:ed.l.CHARTS,name:"Charts & Graphs",value:"",properties:null,iconName:"charts"},{type:ed.l.DATA_TABLE,name:"Data Table",value:"",properties:null,iconName:"table"},{type:ed.l.CUSTOM_TABLE,name:"Custom Table",value:"",properties:null,iconName:"tableCustom"},{type:ed.l.SALES_BY_CUSTOMER,name:"Sales by Customer Table",value:"",properties:null,iconName:"salesByCustomTable"},{type:ed.l.AI_COMMENTARY,name:"AI Commentary",value:"",properties:null,iconName:"sparkleIcon"}],eG=[{label:10,value:"10px"},{label:11,value:"11px"},{label:12,value:"12px"},{label:14,value:"14px"},{label:16,value:"16px"},{label:18,value:"18px"}],eH=[{tooltipMessage:"Bold",icon:"bold",label:"isBold",value:"isBold",isBoolean:!0},{tooltipMessage:"Italic",icon:"italic",label:"isItalic",value:"isItalic",isBoolean:!0},{tooltipMessage:"Underline",icon:"underline",label:"isUnderline",value:"isUnderline",isBoolean:!0},{tooltipMessage:"Align Left",icon:"justifyLeft",label:"alignment",value:"left",isBoolean:!1},{tooltipMessage:"Align Center",icon:"justify",label:"alignment",value:"center",isBoolean:!1},{tooltipMessage:"Align Right",icon:"justifyRight",label:"alignment",value:"right",isBoolean:!1}],eK=[{tooltipMessage:"H1",icon:"title",iconSize:"4xl",label:"fontSize",value:"24",isBoolean:!1},{tooltipMessage:"H2",icon:"title",iconSize:"xl",label:"fontSize",value:"22",isBoolean:!1},{tooltipMessage:"H3",icon:"title",iconSize:"md",label:"fontSize",value:"20",isBoolean:!1},{tooltipMessage:"H4",icon:"title",iconSize:"xxs",label:"fontSize",value:"18",isBoolean:!1},{tooltipMessage:"Align Left",icon:"justifyLeft",iconSize:"md",label:"alignment",value:"left",isBoolean:!1},{tooltipMessage:"Align Center",icon:"justify",iconSize:"md",label:"alignment",value:"center",isBoolean:!1},{tooltipMessage:"Align Right",icon:"justifyRight",iconSize:"md",label:"alignment",value:"right",isBoolean:!1}],ez=[{tooltipMessage:"Align Left",icon:"justifyLeft",iconSize:"md",label:"alignment",value:"left",isBoolean:!1},{tooltipMessage:"Align Center",icon:"justify",iconSize:"md",label:"alignment",value:"center",isBoolean:!1},{tooltipMessage:"Align Right",icon:"justifyRight",iconSize:"md",label:"alignment",value:"right",isBoolean:!1}],eW={tooltipMessage:"Move Up",icon:"arrowSmallUp"},eV={tooltipMessage:"Move Down",icon:"arrowSmallDown"},eJ={tooltipMessage:"Remove",icon:"delete"},eY={tooltipMessage:"Edit Settings",icon:"config"},e$=[{tooltipMessage:"Align Left",icon:"justifyLeft",label:"alignment",value:"left",isBoolean:!1},{tooltipMessage:"Align Center",icon:"justify",label:"alignment",value:"center",isBoolean:!1},{tooltipMessage:"Align Right",icon:"justifyRight",label:"alignment",value:"right",isBoolean:!1}],eZ={standardKpis:"standardKpis",customKpis:"customKpis",addedKpis:"addedKpis"},eQ=[{title:"report.kpi.standardKpis",id:eZ.standardKpis},{title:"report.kpi.customKpis",id:eZ.customKpis}],eX="trailingPeriod",getYears=et=>{let eo=new Date().getFullYear(),ei=eo+1,ea=[];for(let eo=ei;eo>ei-et;eo--)ea.unshift({title:eo});return ea},getMonths=et=>{let eo=new Date().getFullYear(),ei=new Date().getMonth(),ea=[];if(et<eo)ea=em.e7;else if(et===eo)for(let et=ei-1;et>=0;et--)ea.unshift({title:ep().months(et),value:et+1});return ea},getYearsFilterOptions=()=>{let et=2019,eo=new Date().getFullYear();return getYears(eo-et+1).reverse()};function getAllFiscalYearsSince2019(et){let eo=em.e7.map(et=>null==et?void 0:et.title);if(!eo.includes(et))return[];let ei=new Date,ea=ei.getFullYear()+1,eu=ei.getMonth()+1,ed=eo.indexOf(et)+1,eh=Array.from({length:ea-2019+1},(et,eo)=>2019+eo).filter(et=>et!==ea||ed<=eu),ep=eh.map(et=>({title:et})).reverse();return ep}function getFiscalYears(et){var eo,ei;let ea=new Date,eu=(null!==(ei=null===(eo=em.e7.find(eo=>eo.title===et))||void 0===eo?void 0:eo.value)&&void 0!==ei?ei:1)-1,ed=ea.getFullYear(),eh=ea.getMonth();return eh<eu||eh-eu<3?[{label:ed-1,value:ed-1},{label:ed,value:ed},{label:ed+1,value:ed+1}]:[{label:ed,value:ed},{label:ed+1,value:ed+1}]}let getYearMonthOptions=function(et){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ei=[];if(et)for(let et=0;et<13;et++){let eo=ep()().subtract(et,"M");ei.push({year:{title:eo.format("YYYY")},month:{title:eo.format("MMMM"),value:eo.format("M")}})}else getYearsFilterOptions().forEach(et=>{[...getMonths(et.title)].reverse().forEach(ea=>{eo.some(eo=>eo.month===ea.value&&eo.year===et.title)||ei.push({year:et,month:ea})})});return ei},e0={quarter:"Quarter",month:"Month",account:"Account",subAccount:"SubAccount",calculation:"Calculation",cashFlowSection:"CashFlowSection",cashFlowSubSection:"CashFlowSubSection",parentAccount:"ParentAccount",header:"Header",aisAccount:"AisAccount",period:"Period",current:"Current",total:"Total",customer:"Customer",vendor:"Vendor",aisNetAccount:"AisNetAccount"},e4={coverPage:"cover-page",clientSnapshot:"client-snapshot",tripleBottomLine:"triple-bottom-line",incomeStatement:"income-statement",balanceSheet:"balance-sheet",cashFlowStatement:"cash-flow-statement",kpis:"kpis",annualBusinessCalendar:"annual-business-calendar",auxiliaryReportsAppendices:"auxiliary-reports-appendices",arAp:"ar-ap",dfm:"dfm",clientGoals:"client-goals",profitRecommendations:"profit-recommendations"},e6={preview:"Preview",config:"Config"},e5=[{id:"ar",name:"report.arap.accountsReceivable"},{id:"ap",name:"report.arap.accountsPayable"}],e8={standard:"standard",trailing:"trailing",customer:"customer",agingScheduleAndCustomer:"agingScheduleAndCustomer",agingSchedule:"agingSchedule",agingScheduleGraph:"agingScheduleGraph"},e7=[{title:"report.note.standardGLTable",type:e8.standard},{title:"report.note.trailingGLTable",type:e8.trailing}],e9=[{id:"settings",name:"report.arap.settings"},{id:"gl",name:"report.arap.glTables"}],tr=[{id:"settings",name:"report.arap.settings"},{id:"gl",name:"report.arap.glTables"}],tn=[{title:"report.arap.agingScheduleAndCustomer",type:e8.agingScheduleAndCustomer},{title:"report.arap.agingSchedule",type:e8.agingSchedule},{title:"report.arap.customer",type:e8.customer},{title:"report.arap.agingScheduleGraph",type:e8.agingScheduleGraph}],ti=["Current Assets","Fixed Assets, Net","Intangible Assets, Net","Goodwill, Net","Right of use Assets, Net","Non-Current Assets"],ta=["Current Liabilities","Long-term Liabilities","Owner's Equity"],ts=["Fixed Assets, Net","Intangible Assets, Net","Right of Use Asset, Net","Goodwill, Net"],tc=["Intangible Assets, Net","Goodwill, Net"],tu=[{id:"55a476fb-6f9f-431b-b958-1d3d640ad339",name:"Notes Receivable, Short-Term",refAccountId:"2196514e-76a5-4dd5-94d8-e292bd5b6f00"},{id:"c1a4f15d-d84d-48a4-beb0-70e906f225ff",name:"Deposits, Short-Term",refAccountId:"45c3ba99-2d70-4d4d-a501-41c906f3a0bb"},{id:"d687577f-c6ad-42c5-aa90-4a48b24fcba5",name:"Customer Deposits, Short-Term",refAccountId:"8ef2d56b-6162-4574-88f6-46b61fddfdc7"},{id:"f4d68711-71b1-4036-94cf-e41a1c61ecf6",name:"Deferred Revenue, Short-Term",refAccountId:"66bae1de-703a-485d-b866-79b27b850768"},{id:"98851834-35d7-4e79-afc2-a02c2cfb08fb",name:"Operating Lease Liability, Short-Term",refAccountId:"59c012c4-70ff-4185-afbd-c24c6bcea8d7"},{id:"4b47c416-830e-439e-8c07-538f2cb2e5f6",name:"Long-Term Debt, Current Portion",refAccountId:"96e9943b-af38-4796-90dd-f05b6f995224"},{id:"f378ea92-52d3-49d3-9b42-b38c4b9af02c",name:"Financing Lease Liability, Short-Term",refAccountId:"2b9b3598-6c28-4ce3-9bae-858b0947ecbf"}],td=[{id:"2196514e-76a5-4dd5-94d8-e292bd5b6f00",name:"Notes Receivable, Long-Term",refAccountId:"55a476fb-6f9f-431b-b958-1d3d640ad339"},{id:"45c3ba99-2d70-4d4d-a501-41c906f3a0bb",name:"Deposits, Long-Term",refAccountId:"c1a4f15d-d84d-48a4-beb0-70e906f225ff"},{id:"8ef2d56b-6162-4574-88f6-46b61fddfdc7",name:"Customer Deposits, Long-Term",refAccountId:"d687577f-c6ad-42c5-aa90-4a48b24fcba5"},{id:"66bae1de-703a-485d-b866-79b27b850768",name:"Deferred Revenue, Long-Term",refAccountId:"f4d68711-71b1-4036-94cf-e41a1c61ecf6"},{id:"59c012c4-70ff-4185-afbd-c24c6bcea8d7",name:"Operating Lease Liability, Long-Term",refAccountId:"98851834-35d7-4e79-afc2-a02c2cfb08fb"},{id:"96e9943b-af38-4796-90dd-f05b6f995224",name:"Long-Term Debt",refAccountId:"4b47c416-830e-439e-8c07-538f2cb2e5f6"},{id:"2b9b3598-6c28-4ce3-9bae-858b0947ecbf",name:"Financing Lease Liability, Long-Term",refAccountId:"f378ea92-52d3-49d3-9b42-b38c4b9af02c"}],tp=["4540df26-74e4-420f-baa1-37a8bffcc02b","2fbd0ca2-b81c-405c-b5de-59223e3b2915","c1a4f15d-d84d-48a4-beb0-70e906f225ff","45c3ba99-2d70-4d4d-a501-41c906f3a0bb","bde522ff-5755-40e9-918d-6d5d34c1f566","f4d68711-71b1-4036-94cf-e41a1c61ecf6","66bae1de-703a-485d-b866-79b27b850768","d687577f-c6ad-42c5-aa90-4a48b24fcba5","8ef2d56b-6162-4574-88f6-46b61fddfdc7"],tf=[{value:5},{value:10},{value:15},{value:20}],tm={aboveTarget:"Above Target",withinTarget:"Within Target",belowTarget:"Below Target",trendingPositive:"Trending (Positive)",trendingNegative:"Trending (Negative)",inLine:"In Line",favorable:"Favorable",unfavorable:"Unfavorable"},tg=[{title:"Above Target",value:"Above Target"},{title:"Within Target",value:"Within Target"},{title:"Below Target",value:"Below Target"},{title:"Trending (Positive)",value:"Trending (Positive)"},{title:"Trending (Negative)",value:"Trending (Negative)"},{title:"In Line",value:"In Line"},{title:"Favorable",value:"Favorable"},{title:"Unfavorable",value:"Unfavorable"}],ty={published:"published",draft:"draft"},tv=["report.cvTable.i1","report.cvTable.i2","report.cvTable.i3"],tb=["Accrued Revenue","Deferred Revenue - ST","Deferred Revenue - LT","Customer Deposits - ST","Customer Deposits - LT"],tC=["Prepaid Expenses","Deposits - ST","Deposits - LT","Accrued Expenses"];function defaultGlTableOptions(){return{includeDescription:!1,includeTotalPercentage:!1,includeYTD:!1,includePercentageYTD:!1,addCustomTable:!1,tableConfiguration:null}}function defaultCVTableConfig(){return{addTable:!1,showTotalPercentage:!1,customValue:5}}let tS={syncInProgress:"sync-in-progress",syncFailed:"sync-failed",unmapped:"unmapped",completed:"completed"},t_={reSync:"re-sync",mappingComplete:"mapping-complete"}},85126:function(et,eo,ei){"use strict";ei.d(eo,{P:function(){return checkUserRights},n:function(){return eu}});let ea={client:{create:"clients.create",edit:"clients.edit",view:"clients.view",admin:"clients.all"},tggUser:{create:"tgg.users.create",edit:"tgg.users.edit",view:"tgg.users.view"},clientUser:{create:"client.users.create",view:"client.users.view",manage:"client.users.manage",admin:"client.users.all"},kpi:{create:"kpi.create",view:"kpi.view",archive:"kpi.archive"},dataset:{create:"dataset.create",view:"dataset.view",edit:"dataset.edit"},pr:{view:"pr.view",create:"pr.create",edit:"pr.edit",archive:"pr.archive"},cg:{create:"cg.create",lock:"cg.lock",archive:"cg.archive",view:"cg.view"},accounts:{view_coa:"accounts.coa.view",edit_coa:"accounts.coa.edit",view_ais:"account.aisprofile.view",sync_ais:"account.ais.sync",map_ais:"account.ais.map",manage:"account.isclassification.manage"},reports:{view:"reports.package.view",manage:"reports.package.manage",delete:"reports.package.delete",task_view:"reports.task.view",publish:"reports.publish"},templates:{view:"reports.templates.view",edit:"reports.templates.edit",create:"reports.templates.create"}},eu={owner:"owner",fullAccess:"full-access",standardAccess:"standard-access",readOnly:"read-only"};function checkUserRights(et,eo,ei){if(!eo)return!1;let{isSuperAdmin:eu,isActive:ed,permissions:eh}=ei;if(!ed)return!1;if(eu)return!0;let ep=Object.keys(ea).find(eo=>et.includes(eo));return!!(eh.some(et=>et.includes("".concat(ep,".admin")))||eh.includes(et))}},78066:function(et,eo,ei){"use strict";ei.d(eo,{F8:function(){return downloadAllFile},Iy:function(){return displayCurrencyFormat},Sv:function(){return downloadFile},UD:function(){return displayNumberFormatCustomTable},V4:function(){return getYears},Vq:function(){return downloadCSVFile},Wz:function(){return getQueryString},YY:function(){return handleUrlChange},gO:function(){return formatDataSize},gs:function(){return copyValue},j1:function(){return displayNumberFormat},s5:function(){return getZeroArrayOfLength},t_:function(){return getDimensions},un:function(){return formatPhoneNumber},v4:function(){return getUniqRandomInteger}}),ei(53023),ei(66725);var ea=ei(11184),eu=ei.n(ea),ed=ei(96486),eh=ei.n(ed);function getQueryString(et,eo){if(Object.keys(et).some(eo=>!!et[eo])){if(Object.keys(et).forEach(eo=>{et[eo]||delete et[eo]}),eo)return et;let ei=Object.keys(et).map(eo=>{if(et[eo])return"".concat(eo,"=").concat(et[eo])}).join("&");return ei}return""}function formatPhoneNumber(et){let eo=(""+et).replace(/\D/g,""),ei=eo.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);return ei?[ei[1]?"+1 ":"","(",ei[2],") ",ei[3],"-",ei[4]].join(""):"-"}let displayNumberFormat=function(et){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(void 0===et)return"0";if(null===et)return"";let ei=+et;return eh().isFinite(ei)?ei<0?"(".concat(eu().formatNumber(Math.abs(ei),eo),")"):eu().formatNumber(ei,eo):"0"},displayCurrencyFormat=et=>{let eo=+et;return eh().isFinite(eo)?eo<0?"($".concat(eu().formatNumber(Math.abs(eo)),")"):"$".concat(eu().formatNumber(eo)):et};function getRandomIntegerInLimit(et,eo){return Math.floor(Math.random()*(et-eo)+eo)}function getUniqRandomInteger(){let et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],eo=arguments.length>1?arguments[1]:void 0,ei=arguments.length>2?arguments[2]:void 0,ea=getRandomIntegerInLimit(eo,ei);return et.length>0&&et.includes(ea)?getUniqRandomInteger(et,eo,ei):ea}function getDimensions(et){let{height:eo}=et.getBoundingClientRect(),ei=et.offsetTop-75,ea=ei+eo;return{height:eo,offsetTop:ei,offsetBottom:ea}}function downloadAllFile(et,eo,ei){let ea=window.URL.createObjectURL(new Blob([eo],{type:'"application/'.concat(ei,'"')})),eu=document.createElement("a");eu.href=ea,eu.setAttribute("download",et),eu.style.display="none",document.body.appendChild(eu),eu.click(),document.body.removeChild(eu)}function downloadFile(et,eo){let ei=window.URL.createObjectURL(new Blob([eo],{type:"application/pdf"})),ea=document.createElement("a");ea.href=ei,ea.setAttribute("download",et),ea.style.display="none",document.body.appendChild(ea),ea.click(),document.body.removeChild(ea)}function downloadCSVFile(et,eo){let ei=window.URL.createObjectURL(new Blob([eo],{type:"application/csv"})),ea=document.createElement("a");ea.href=ei,ea.setAttribute("download",et),ea.style.display="none",document.body.appendChild(ea),ea.click(),document.body.removeChild(ea)}function getZeroArrayOfLength(et){let eo=[];for(let ei=0;ei<et;ei++)eo.push(0);return eo}let handleUrlChange=et=>{let eo=et;return eo.startsWith("http")||(eo=eo.startsWith("www.")?"https://".concat(eo):"https://www.".concat(eo)),eo},getYears=()=>{let et=new Date().getFullYear(),eo=et+1;return 3>new Date().getMonth()?[et,eo,et-1]:[et,eo]},displayNumberFormatCustomTable=et=>{if(void 0===et)return"0";if(null===et)return"";let eo=+et;return eh().isFinite(eo)?eo<0?"(".concat(eu().formatNumber(Math.abs(eo)),")"):eu().formatNumber(eo):"0"};function formatDataSize(et){let eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(1024>Math.abs(et))return et||"0 B";let ei=["KB","MB","GB","TB","PB"],ea=-1,eu=10**eo;do et/=1024,++ea;while(Math.round(Math.abs(et)*eu)/eu>=1024&&ea<ei.length-1);return et.toFixed(eo)+" "+ei[ea]}function copyValue(et){let eo=document.createElement("TEXTAREA");document.body.appendChild(eo),eo.innerHTML=et,eo.select(),document.execCommand("copy"),document.body.removeChild(eo)}},37064:function(et,eo,ei){"use strict";ei.r(eo),ei.d(eo,{csvTypeCheck:function(){return csvTypeCheck},fileSizeCheck:function(){return fileSizeCheck},fileTypeCheck:function(){return fileTypeCheck},fileUploadTypeCheck:function(){return fileUploadTypeCheck},isBothArrayEqual:function(){return isBothArrayEqual},isEmailAddress:function(){return isEmailAddress},isEmpty:function(){return isEmpty},isEmptyObject:function(){return isEmptyObject},isNotEmpty:function(){return isNotEmpty},isNumeric:function(){return isNumeric},isObjectsEqual:function(){return isObjectsEqual},isSlugValid:function(){return isSlugValid},isValidPostalCode:function(){return isValidPostalCode},isValidURL:function(){return isValidURL},isValidatePhoneNumber:function(){return isValidatePhoneNumber},pdfTypeCheck:function(){return pdfTypeCheck}});var ea=ei(96486),eu=ei.n(ea);function fileSizeCheck(et,eo){return!(et>eo)}function fileTypeCheck(et){let eo=/(\.jpg|\.jpeg|\.png)$/i;return!!eo.test(et)}function fileUploadTypeCheck(et){let eo=/(\.pdf|\.doc|\.docx|\.xls|\.xlsx|\.ppt|.pptx|\.txt|\.csv)$/i;return!!eo.test(et)}function pdfTypeCheck(et){let eo=/(\.pdf)$/i;return!!eo.test(et)}function csvTypeCheck(et){let eo=/(\.csv)$/i;return!!eo.test(et)}function isNotEmpty(et){let eo=/\S+/;return eo.test(et)}function isEmpty(et){return!isNotEmpty(et)}function isEmailAddress(et){let eo=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return eo.test(et)}function isEmptyObject(et){for(let eo in et)if(Object.prototype.hasOwnProperty.call(et,eo))return!1;return!0}let isNumeric=et=>!isNaN(parseFloat(et))&&isFinite(et),isValidURL=et=>{let eo=null;try{eo=new URL(et)}catch(et){return!1}let ei=RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return(null==eo?void 0:eo.host)?ei.test(eo.host.toLowerCase().replace("www.","")):ei.test(et)};function isObjectsEqual(et,eo){return eu().isEqual(et,eo)}let isValidPostalCode=et=>{let eo=/^[0-9]{5}(?:-[0-9]{4})?$/;return eo.test(et)};function isBothArrayEqual(et,eo){let ei=eu().differenceWith(et,eo,eu().isEqual);return eu().isEmpty(ei)}function isValidatePhoneNumber(et){let eo=/^\d{11}$/;return eo.test(et)}let isSlugValid=et=>{let eo=/^[a-z]+(-?[a-z0-9]+)*$/;return eo.test(et)}},5928:function(et,eo,ei){"use strict";ei.d(eo,{EB:function(){return clientAdvisorMemberAddEditHelper},Eo:function(){return clientExecutiveResponseHelper},NY:function(){return assignedClientResponseHelper},OM:function(){return addressHelper},ff:function(){return clientListItemResponseHelper},kG:function(){return statusFilterHelper},nt:function(){return clientItemResponseHelper},oH:function(){return clientAdvisorResponseHelper},oT:function(){return getFinancialRequestData},rX:function(){return clientExecutiveMemberAddEditHelper},sL:function(){return isFinancialDataChanged}});var ea=ei(25704),eu=ei(78066),ed=ei(37064),eh=ei(35369),ep=ei(64847),ef=ei.n(ep),em=ei(30381),eg=ei.n(em);function addressHelper(et){let eo=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ei=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(0,ed.isEmptyObject)(et)){var ea;let ei="".concat((null==et?void 0:et.city)||"",", ").concat((null==et?void 0:null===(ea=et.state)||void 0===ea?void 0:ea.name)||"");return eo?ei:"".concat((null==et?void 0:et.addressLine1)||"",",").concat((null==et?void 0:et.addressLine2)?" ".concat(null==et?void 0:et.addressLine2,","):""," ").concat(ei," ").concat((null==et?void 0:et.postalCode)||"")}return ei?null:"-"}function clientFinancialResponseHelper(et){var eo,ei,eu,eh;let ep=(null==et?void 0:et.financialYear)===ea.fJ.calendar,ef=(null==et?void 0:et.financialYear)===ea.fJ.specificMonth,em=ef?null===(eo=ea.e7.find(eo=>eo.title===(null==et?void 0:et.calendar)))||void 0===eo?void 0:eo.value:0;return{entityType:(null==et?void 0:null===(ei=et.entity)||void 0===ei?void 0:ei.name)||"-",taxBasis:(null==et?void 0:null===(eu=et.taxBasisType)||void 0===eu?void 0:eu.name)||"-",stateOfIncorporation:(null==et?void 0:null===(eh=et.state)||void 0===eh?void 0:eh.name)||"-",isCalendar:ep,isSpecificMonth:ef,specificMonth:ef?null==et?void 0:et.calendar:"",financialYear:(0,ed.isEmptyObject)(et)?"-":ef?"Fiscal (".concat(eg()("".concat(em),"M").format("MMMM")," to\n        ").concat(eg()("".concat(em),"M").add(11,"M").format("MMMM"),")"):"Calendar"}}function clientAdvisorResponseHelper(et){return et.map(et=>{var eo,ei;return{advisorTypeCode:(null==et?void 0:null===(eo=et.advisorType)||void 0===eo?void 0:eo.code)||"",advisorTypeName:(null==et?void 0:null===(ei=et.advisorType)||void 0===ei?void 0:ei.name)||"",name:"".concat(null==et?void 0:et.firstName," ").concat((null==et?void 0:et.lastName)||""," ").concat((null==et?void 0:et.institutionName)?"(".concat(null==et?void 0:et.institutionName,")"):""),institutionName:(null==et?void 0:et.institutionName)||""}})}function clientExecutiveResponseHelper(et){return et.map(et=>{var eo,ei;return{executiveCode:(null==et?void 0:null===(eo=et.executiveType)||void 0===eo?void 0:eo.code)||"",executiveName:(null==et?void 0:null===(ei=et.executiveType)||void 0===ei?void 0:ei.name)||"",name:"".concat(null==et?void 0:et.firstName," ").concat((null==et?void 0:et.lastName)||"")}})}function clientListItemResponseHelper(et){var eo,ei;return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",logoUrl:(null==et?void 0:et.logoUrl)||"",address:addressHelper(null==et?void 0:et.address),shortAddress:addressHelper(null==et?void 0:et.address,!0,!0),website:(null==et?void 0:et.website)||"-",phoneNumber:(0,eu.un)(null==et?void 0:et.phoneNumber),tagLine:(null==et?void 0:et.tagLine)||"-",businessSummary:(null==et?void 0:et.businessSummary)||"-",isActive:!!(null==et?void 0:null===(eo=et.activeInfo)||void 0===eo?void 0:eo.active),agencyId:(null==et?void 0:null===(ei=et.agency)||void 0===ei?void 0:ei.id)||""}}function assignedClientResponseHelper(et){var eo;return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",logoUrl:(null==et?void 0:et.logoUrl)||"",shortAddress:addressHelper(null==et?void 0:et.address,!0,!0),isActive:!!(null==et?void 0:null===(eo=et.activeInfo)||void 0===eo?void 0:eo.active),jobFunction:(null==et?void 0:et.jobFunction)||""}}function clientItemResponseHelper(et){var eo;let ei=clientFinancialResponseHelper(null==et?void 0:et.financialProfile);return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",logoUrl:(null==et?void 0:et.logoUrl)||"",address:addressHelper(null==et?void 0:et.address),website:(null==et?void 0:et.website)||"-",haveWebsite:!(0,ed.isEmpty)((null==et?void 0:et.website)||""),phoneNumber:(0,eu.un)(null==et?void 0:et.phoneNumber),havePhoneNumber:!(0,ed.isEmpty)((null==et?void 0:et.phoneNumber)||""),tagLine:(null==et?void 0:et.tagLine)||"",businessSummary:(null==et?void 0:et.businessSummary)||"-",...ei,isActive:!!(null==et?void 0:null===(eo=et.activeInfo)||void 0===eo?void 0:eo.active)}}function clientExecutiveMemberAddEditHelper(et,eo){var ei;let ea=eh.ZP.Map({firstName:eo.firstName,lastName:eo.lastName,emailAddress:eo.email?eo.email:null,executiveTypeId:eo.executiveRole.id}),eu=eh.ZP.Map({firstName:null==et?void 0:et.firstName,lastName:null==et?void 0:et.lastName,emailAddress:null==et?void 0:et.emailAddress,executiveTypeId:null==et?void 0:null===(ei=et.executiveType)||void 0===ei?void 0:ei.id});return ef()(eu,ea)}function clientAdvisorMemberAddEditHelper(et,eo){var ei;let ea=eh.ZP.Map({firstName:eo.firstName,lastName:eo.lastName,emailAddress:eo.email?eo.email:null,institutionName:eo.institutionName,advisorTypeId:eo.advisorRole.id}),eu=eh.ZP.Map({institutionName:(null==et?void 0:et.institutionName)||"",firstName:(null==et?void 0:et.firstName)||"",lastName:(null==et?void 0:et.lastName)||"",emailAddress:(null==et?void 0:et.emailAddress)||"",advisorTypeId:null==et?void 0:null===(ei=et.advisorType)||void 0===ei?void 0:ei.id});return ef()(eu,ea)}function getFinancialRequestData(et){var eo,ei,eu,ed;return{entityTypeId:null===(eo=et.entityType)||void 0===eo?void 0:eo.id,taxBasisTypeId:null==et?void 0:null===(ei=et.taxBasis)||void 0===ei?void 0:ei.id,stateId:null==et?void 0:null===(eu=et.state)||void 0===eu?void 0:eu.id,financialYear:null==et?void 0:et.financialYear,calendar:(null==et?void 0:et.financialYear)===ea.fJ.specificMonth?null==et?void 0:null===(ed=et.calendar)||void 0===ed?void 0:ed.title:""}}function isFinancialDataChanged(et,eo){var ei,eu,eh,ep,ef,em,eg,ey,eC,eS,e_,ew;let eA={entityType:(null==et?void 0:null===(eu=et.financialProfile)||void 0===eu?void 0:null===(ei=eu.entity)||void 0===ei?void 0:ei.id)||"",taxBasis:(null==et?void 0:null===(ep=et.financialProfile)||void 0===ep?void 0:null===(eh=ep.taxBasisType)||void 0===eh?void 0:eh.id)||"",state:(null==et?void 0:null===(em=et.financialProfile)||void 0===em?void 0:null===(ef=em.state)||void 0===ef?void 0:ef.id)||"",financialYear:(null==et?void 0:null===(eg=et.financialProfile)||void 0===eg?void 0:eg.financialYear)||ea.fJ.calendar,calendar:(null==et?void 0:null===(ey=et.financialProfile)||void 0===ey?void 0:ey.calendar)||""},eI={entityType:null===(eC=eo.entityType)||void 0===eC?void 0:eC.id,taxBasis:null==eo?void 0:null===(eS=eo.taxBasis)||void 0===eS?void 0:eS.id,state:null==eo?void 0:null===(e_=eo.state)||void 0===e_?void 0:e_.id,financialYear:null==eo?void 0:eo.financialYear,calendar:(null==eo?void 0:eo.financialYear)===ea.fJ.specificMonth?null==eo?void 0:null===(ew=eo.calendar)||void 0===ew?void 0:ew.title:""};return(0,ed.isObjectsEqual)(eA,eI)}function statusFilterHelper(et){switch(null==et?void 0:et.id){case"all":default:return;case"true":return!0;case"false":return!1}}},32057:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$_:function(){return getCalculatedFormulaValue},Bb:function(){return getFormulaInputValue},Cb:function(){return kpisItemResponseHelper},Cc:function(){return getAllValidKPIInputs},Dj:function(){return isAccountAvailableOnCOASelection},IU:function(){return dataSetDetailsResponseHelper},JA:function(){return kpisOutputFormatHelper},Lu:function(){return customKPIsListResponseHelper},Nd:function(){return isInputLabelDisabled},QZ:function(){return getFormulaInputLabel},WZ:function(){return customKPIsItemResponseHelper},Y3:function(){return isAddNewInputDisabled},Z5:function(){return getKPIFormulaErrors},_J:function(){return getAccountAvailableOnAllOptions},cB:function(){return kpisCategoryHelper},dD:function(){return calculationResponseHelper},fE:function(){return dataSetCartesianStateResponseHelper},iL:function(){return getRandomKpiBracketColor},n0:function(){return getInputRandomNumber},pQ:function(){return getMatchingBracketIndex},q9:function(){return dataSetsListItemResponseHelper},uq:function(){return kpisResponseHelper}});var _utils_constant__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(25704),_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(66082),_utils_constant_kpis__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(82884),_utils_constant_reports__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77179),_utils_functions_common__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(78066),_utils_functions_validation__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(37064),uuid__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(57632);function kpisCategoryHelper(et){return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",description:(null==et?void 0:et.description)||""}}function kpiFormulaDisplay(et){var eo;if(!et)return"";let ei=et.formula.split(""),ea=[...ei];return(null==et?void 0:null===(eo=et.variables)||void 0===eo?void 0:eo.length)>0&&ei.map((eo,ei)=>{if(et.variables.filter(et=>et.name===eo).length>0){var eu;let ed=et.variables.find(et=>et.name===eo),eh=null==ed?void 0:ed[_utils_constant_reports__WEBPACK_IMPORTED_MODULE_3__.Lx],ep=(null==ed?void 0:null===(eu=ed[null==ed?void 0:ed.type])||void 0===eu?void 0:eu.name)||"";ea[ei]=eh?"".concat(ep,"(").concat(eh.type,")"):ep}}),ea.join(" ")}function kpisResponseHelper(et){var eo;return{isItems:(null==et?void 0:null===(eo=et.items)||void 0===eo?void 0:eo.length)>0,items:(null==et?void 0:et.items)||[],totalPages:(null==et?void 0:et.totalPages)||0,currentPage:(null==et?void 0:et.currentPageNumber)||0,totalRecords:(null==et?void 0:et.totalRecords)||0}}function kpisOutputFormatHelper(et){var eo,ei;let ea={type:"",decimals:0};return(null==et?void 0:null===(eo=et.metadata)||void 0===eo?void 0:eo.outputVariable)&&("numeric"===et.metadata.outputVariable.dataType?ea.type="number":ea.type=et.metadata.outputVariable.dataType,ea.decimals=(null===(ei=et.metadata.outputVariable.formatting)||void 0===ei?void 0:ei.decimalFields)||0),ea}function isKPIBracket(et){return _utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.O$.some(eo=>eo.label===et||eo.optionalLabel===et)}function isKPIOperator(et){return _utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.C6.some(eo=>eo.label===et)}function getKPIBracket(et){return _utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.O$.find(eo=>eo.label===et||eo.optionalLabel===et)}function getKPIOperator(et){return _utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.C6.find(eo=>eo.label===et)}let kpiBracketColors=["text-[#E3342F]","text-[#E36209]","text-[#FFA200]","text-[#c9c910]","text-[#84CC16]","text-[#38C172]","text-[#4DC0B5]","text-[#3490DC]","text-[#6574CD]","text-[#9561E2]","text-[#6F42C1]","text-[#D63384]","text-[#FA7EA8]"],getRandomKpiBracketColor=()=>kpiBracketColors[Math.round(Math.random()*(kpiBracketColors.length-1))];function kpiFormulaArrayHelper(et){var eo;let ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ea=[];if(null==et?void 0:null===(eo=et.metadata)||void 0===eo?void 0:eo.formula){let eo=Array.from(et.metadata.formula),eu=[];eo.forEach(et=>{var eo,ed;if(!(0,_utils_functions_validation__WEBPACK_IMPORTED_MODULE_5__.isEmpty)(et)){if(isKPIOperator(et))ea.push({type:_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.operator,id:(null===(eo=getKPIOperator(et))||void 0===eo?void 0:eo.id)||""});else if(isKPIBracket(et)){let eo;"("===et?(eo=kpiBracketColors[eu.length%kpiBracketColors.length],eu.push(eo)):eo=eu.pop(),ea.push({color:eo,type:_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket,id:(null===(ed=getKPIBracket(et))||void 0===ed?void 0:ed.id)||""})}else if(et){let eo=ei.find(eo=>eo.formulaName===et);(null==eo?void 0:eo.id)&&ea.push({type:_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.input,id:eo.id})}}})}return ea}function isAddNewInputDisabled(et){return et.length>0&&et.some(et=>{var eo;return(0,_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.g0)(et)?!(null==et?void 0:et.value):!(null==et?void 0:null===(eo=et.trailingPeriod)||void 0===eo?void 0:eo.value)})}function getSelectedAccountId(et){if(null==et?void 0:et.type){var eo;return(null==et?void 0:et.id)||(null===(eo=et[et.type])||void 0===eo?void 0:eo.id)||""}return""}function kpiInputArrayHelper(et){var eo,ei;let ea=[];return(null==et?void 0:null===(ei=et.metadata)||void 0===ei?void 0:null===(eo=ei.variables)||void 0===eo?void 0:eo.length)>0&&et.metadata.variables.forEach(et=>{var eo,ei;let eu=getInputRandomNumber(ea),ed=et.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.iT.type;ea.push({id:ed?et.id:(0,uuid__WEBPACK_IMPORTED_MODULE_6__.Z)(),selectedAccountId:ed?_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.iT.type:getSelectedAccountId(et),aggregation:et.aggregation||"",trailingPeriod:ed?null:{value:["current-month","currentMonth"].includes(null===(eo=et.trailingPeriod)||void 0===eo?void 0:eo.type)?"currentMonth":(null===(ei=et.trailingPeriod)||void 0===ei?void 0:ei.value)||12},testValue:eu,value:ed?et.value:"",formulaName:et.name,isDisabled:!!et.disabled})}),ea}function removeFormulaNameFromInputs(){let et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],eo=[];return et.length>0&&et.forEach(et=>{delete et.formulaName,eo.push(et)}),eo}function kpisItemResponseHelper(et){var eo,ei,ea,eu,ed;let eh=kpiInputArrayHelper(et);return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",description:(null==et?void 0:et.description)||"",descriptionMonthly:(null==et?void 0:et.descriptionMonthly)||"",category:kpisCategoryHelper(null==et?void 0:et.category),outputFormat:kpisOutputFormatHelper(et),isActive:!!(null==et?void 0:null===(eo=et.activeInfo)||void 0===eo?void 0:eo.active),formulaDisplay:kpiFormulaDisplay(null==et?void 0:et.metadata),formulaArr:kpiFormulaArrayHelper(et,eh),inputsArr:removeFormulaNameFromInputs(eh),addedToReport:(null==et?void 0:et.addedToReport)||!1,variables:(null==et?void 0:null===(ei=et.metadata)||void 0===ei?void 0:ei.variables)||[],isArchived:!!(null==et?void 0:null===(ea=et.archiveInfo)||void 0===ea?void 0:ea.archived),globalPeriod:(null==et?void 0:null===(eu=et.metadata)||void 0===eu?void 0:eu.period)==="user-entered"?12:["current-month","currentMonth"].includes(null==et?void 0:null===(ed=et.metadata)||void 0===ed?void 0:ed.period)?"currentMonth":12}}function getAggregationLabel(et,eo){if("average"===et&&(null==eo?void 0:eo.value)==="currentMonth")return"";switch(et){case"sum":return"SUM ";case"average-first-last":return"AVG-F/L ";case"average":return"AVG ";default:return""}}function getTrailingPeriodLabel(et){return(null==et?void 0:et.value)==="currentMonth"?"CURRENT: ":(null==et?void 0:et.value)?"(".concat(null==et?void 0:et.value,"m): "):""}function getFormulaInputValue(){let et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],eo=arguments.length>1?arguments[1]:void 0,ei=et.find(et=>et.id===eo),ea=null;return(null==ei?void 0:ei.id)&&(ea=(0,_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.g0)(ei)?ei.value:ei.testValue),ea||"N/A"}function isInputLabelDisabled(){let et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],eo=arguments.length>1?arguments[1]:void 0,ei=et.find(et=>et.id===eo);return!!(null==ei?void 0:ei.isDisabled)}function getFormulaInputLabel(){var et;let eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],ei=arguments.length>1?arguments[1]:void 0,ea=eo.find(et=>et.id===ei);if((0,_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.g0)(ea)){let et=eo.filter(et=>(0,_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.g0)(et)).findIndex(et=>et.id===ei);return(null==ea?void 0:ea.value)||"Constant ".concat(et+1)}if(null==ea?void 0:null===(et=ea.selectedAccount)||void 0===et?void 0:et.label)return"".concat(getAggregationLabel(ea.aggregation,ea.trailingPeriod)).concat(getTrailingPeriodLabel(ea.trailingPeriod)).concat(ea.selectedAccount.label);let eu=eo.findIndex(et=>et.id===ei);return"Input ".concat(eu+1)}function calculationResponseHelper(et){var eo;return{isItems:(null==et?void 0:null===(eo=et.items)||void 0===eo?void 0:eo.length)>0,items:(null==et?void 0:et.items)||[],totalPages:(null==et?void 0:et.totalPages)||0,currentPage:(null==et?void 0:et.currentPageNumber)||0,totalRecords:(null==et?void 0:et.totalRecords)||0}}function dataSetDetailsResponseHelper(et){var eo,ei,ea;return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",description:(null==et?void 0:et.description)||"",year:null==et?void 0:et.year,month:+(null==et?void 0:et.month),monthObj:_utils_constant__WEBPACK_IMPORTED_MODULE_0__.e7.find(eo=>eo.value===+(null==et?void 0:et.month)),isArchived:!!(null==et?void 0:null===(eo=et.archiveInfo)||void 0===eo?void 0:eo.archived),lists:(null==et?void 0:null===(ei=et.lists)||void 0===ei?void 0:ei.length)>0?et.lists.map(et=>({variableType:_utils_constant_kpis__WEBPACK_IMPORTED_MODULE_2__.I3.list,data:et})):[],variable:(null==et?void 0:null===(ea=et.columns)||void 0===ea?void 0:ea.length)>0?et.columns.map(et=>{var eo,ei,ea,eu;return{variableType:_utils_constant_kpis__WEBPACK_IMPORTED_MODULE_2__.I3.variable,name:et.name||"",code:et.code||"",description:et.description||"",type:{id:(null===(eo=et.datatype)||void 0===eo?void 0:eo.id)||"",code:(null===(ei=et.datatype)||void 0===ei?void 0:ei.code)||"",name:(null===(ea=et.datatype)||void 0===ea?void 0:ea.name)||""},property:(null===(eu=et.aggregation)||void 0===eu?void 0:eu.code)?_utils_constant_kpis__WEBPACK_IMPORTED_MODULE_2__.sP.find(eo=>eo.value===et.aggregation.code):null}}):[]}}function dataSetsListItemResponseHelper(et){var eo,ei;return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",elements:(null==et?void 0:null===(eo=et.elements)||void 0===eo?void 0:eo.length)>0?et.elements.map(et=>({id:(0,uuid__WEBPACK_IMPORTED_MODULE_6__.Z)(),value:et})):[],isArchived:!!(null==et?void 0:null===(ei=et.archiveInfo)||void 0===ei?void 0:ei.archived)}}function dataSetCartesianStateResponseHelper(et){var eo,ei;let ea=[],eu=(null==et?void 0:null===(eo=et.items)||void 0===eo?void 0:eo.length)>0,ed=(null==et?void 0:null===(ei=et.columns)||void 0===ei?void 0:ei.length)>0;return{haveItems:eu,haveVariables:ed,variables:(null==et?void 0:et.columns)||[],items:(null==et?void 0:et.items)||[],itemsState:ea}}function customKPIsListResponseHelper(et){var eo;return{isItems:(null==et?void 0:null===(eo=et.items)||void 0===eo?void 0:eo.length)>0,items:(null==et?void 0:et.items)||[],totalPages:(null==et?void 0:et.totalPages)||0,currentPage:(null==et?void 0:et.currentPageNumber)||0,totalRecords:(null==et?void 0:et.totalRecords)||0}}function customKPIsItemResponseHelper(et){return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",description:(null==et?void 0:et.description)||""}}function isValidDataSourceType(et){if("string"!=typeof et)return!1;let eo=et.trim().toLowerCase(),ei=["parentaccount","subaccount","clientdataset"],ea=ei.includes(eo);return ea}function isKPIInputItemValid(et){var eo;let{selectedAccount:ei}=et;return!!ei&&!!ei.dataSourceType&&(!!((0,_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.g0)(et)&&!(0,_utils_functions_validation__WEBPACK_IMPORTED_MODULE_5__.isEmpty)(et.value)||isValidDataSourceType(ei.dataSourceType))||null!==(eo=et.trailingPeriod)&&void 0!==eo&&!!eo.value)}function getAllValidKPIInputs(){let et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return et.filter(isKPIInputItemValid)}function getMatchingBracketIndex(et,eo){let ei=eo[et].id===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.open;if(et<0||et>=eo.length)throw Error("Index out of range");let ea=ei?1:-1,eu=1,ed=eo[et].id;for(let ei=et+ea;ei>=0&&ei<eo.length;ei+=ea){let et=eo[ei].id,ea=eo[ei].type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket;if(ea){if(ed===et)eu++;else if(0==--eu)return ei}}throw Error("No matching parenthesis found")}function getKPIFormulaErrors(){var et,eo;let ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===ei.length)return"No Formula Added";let ea=(null==ei?void 0:null===(et=ei[0])||void 0===et?void 0:et.type)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&(null==ei?void 0:null===(eo=ei[0])||void 0===eo?void 0:eo.id)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.open;if(!ea)return"Minimum one bracket require in formula";let eu=ei.filter(et=>et.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.input).length>0;if(!eu)return"Minimum one input require in formula";let ed=ei.some((et,eo)=>{if(et.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket){var ea,eu,ed,eh,ep,ef;if(et.id===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.open&&(null===(ea=ei[eo+1])||void 0===ea?void 0:ea.type)&&(null===(eu=ei[eo+1])||void 0===eu?void 0:eu.type)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&(null===(ed=ei[eo+1])||void 0===ed?void 0:ed.id)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.close||et.id===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.close&&(null===(eh=ei[eo+1])||void 0===eh?void 0:eh.type)&&(null===(ep=ei[eo+1])||void 0===ep?void 0:ep.type)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&(null===(ef=ei[eo+1])||void 0===ef?void 0:ef.id)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.open)return!0}return!1});if(ed)return"Invalid formula structure";let eh=ei.some((et,eo)=>et.type!==_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&!!ei[eo+1]&&et.type===ei[eo+1].type);if(eh)return"Invalid formula structure";let ep=ei.some((et,eo)=>{if(et.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.operator){var ea,eu,ed,eh,ep,ef,em,eg;if(!(null===(ea=ei[eo-1])||void 0===ea?void 0:ea.type)||!(null===(eu=ei[eo+1])||void 0===eu?void 0:eu.type)||(null===(ed=ei[eo-1])||void 0===ed?void 0:ed.type)&&(null===(eh=ei[eo-1])||void 0===eh?void 0:eh.type)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&(null===(ep=ei[eo-1])||void 0===ep?void 0:ep.id)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.open||(null===(ef=ei[eo+1])||void 0===ef?void 0:ef.type)&&(null===(em=ei[eo+1])||void 0===em?void 0:em.type)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&(null===(eg=ei[eo+1])||void 0===eg?void 0:eg.id)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.close)return!0}return!1});if(ep)return"Invalid formula structure";let ef=ei.some((et,eo)=>{if(et.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.input){var ea,eu,ed,eh;if((null===(ea=ei[eo+1])||void 0===ea?void 0:ea.type)&&(null===(eu=ei[eo+1])||void 0===eu?void 0:eu.type)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&(null===(ed=ei[eo+1])||void 0===ed?void 0:ed.id)===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.open||(null===(eh=ei[eo-1])||void 0===eh?void 0:eh.type)&&ei[eo-1].type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket&&ei[eo-1].id===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.XO.close)return!0}return!1});return ef?"Invalid formula structure":""}function getInputRandomNumber(){let et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],eo=[];et.length>0&&et.forEach(et=>eo.push(null==et?void 0:et.testValue));let ei=10+2*et.length,ea=2,eu=(0,_utils_functions_common__WEBPACK_IMPORTED_MODULE_4__.v4)(eo,ei,ea);return eu}function getCalculatedFormulaValue(){let formula=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],inputs=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],formulaError=getKPIFormulaErrors(formula);if(formulaError)return{errorMessage:formulaError,value:NaN};let parsedFormula=[];for(let formulaItem of formula){var _bracketItems_find,_operatorItems_find;if(formulaItem.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.bracket){let label=null===(_bracketItems_find=_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.O$.find(et=>et.id===formulaItem.id))||void 0===_bracketItems_find?void 0:_bracketItems_find.label;label&&parsedFormula.push(label);continue}if(formulaItem.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.operator){let label=null===(_operatorItems_find=_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.C6.find(et=>et.id===formulaItem.id))||void 0===_operatorItems_find?void 0:_operatorItems_find.label;label&&parsedFormula.push(label);continue}if(formulaItem.type===_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.AX.input){let findInputItem=inputs.find(et=>et.id===formulaItem.id);(0,_utils_constant_formula__WEBPACK_IMPORTED_MODULE_1__.g0)(findInputItem)?parsedFormula.push(parseInt(findInputItem.value)):(null==findInputItem?void 0:findInputItem.testValue)&&parsedFormula.push(findInputItem.testValue)}}try{let value=eval(parsedFormula.join("")),precisionRoundedValue=Math.round(100*value)/100;return{value:precisionRoundedValue.toFixed(2),errorMessage:""}}catch(error){return{errorMessage:"Invalid formula structure",value:NaN}}}function isAccountAvailableOnCOASelection(et,eo){let ei=!1;return et.map(et=>et.options.map(et=>{et.value===(null==eo?void 0:eo.value)&&(ei=!0)})),ei}function getAccountAvailableOnAllOptions(et,eo){let ei=null;return et.map(et=>et.options.map(et=>{et.value===(null==eo?void 0:eo.id)&&(ei=et)})),ei}},51183:function(et,eo,ei){"use strict";ei.d(eo,{e2:function(){return ea},wr:function(){return reportComponentChildItemResponseHelper},xV:function(){return reportComponentItemResponseHelper}});let ea=[{title:"Business Overview & Executive Summary",page:"2 - 4"},{title:"Key Performance Indicators",page:"5 - 6"},{title:"Balance Sheet",page:"7"},{title:"Triple Bottom Line",page:"8"},{title:"Statement of Cash Flows",page:"10"},{title:"Notes to the Financial Statements",page:"11 - 13"},{title:"Appendix A: Gross Profit by Location – California",page:"14"},{title:"Appendix B: Gross Profit by Location – Colorado",page:"15"},{title:"Appendix C: Operating Expenses – Expanded",page:"16"},{title:"Appendix D: Income Statement - Actual vs. Budget",page:"17"}];function reportComponentItemResponseHelper(et){var eo;return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",isConfigurable:(null==et?void 0:et.configurable)||!1,description:(null==et?void 0:et.description)||"",displayOrder:null==et?void 0:et.displayOrder,isDefault:(null==et?void 0:et.isDefault)||!1,isAdded:!!(null==et?void 0:et.configuration),isPreviewDisabled:(null==et?void 0:et.isPreviewDisabled)||!1,configuration:(null==et?void 0:et.configuration)||null,haveChildren:(null==et?void 0:null===(eo=et.childs)||void 0===eo?void 0:eo.length)>0,children:(null==et?void 0:et.childs)||[]}}function reportComponentChildItemResponseHelper(et){return{id:(null==et?void 0:et.id)||"",name:(null==et?void 0:et.name)||"",code:(null==et?void 0:et.code)||""}}},89970:function(et,eo,ei){"use strict";ei.d(eo,{GG:function(){return advisorUserItemResponseHelper},HB:function(){return accountingTeamUserItemHelper},du:function(){return clientUserItemHelper},wG:function(){return userItemResponseHelper}});var ea=ei(67522),eu=ei(85126),ed=ei(78066),eh=ei(5928);function userInvitationItemRespHelper(et){var eo;return{id:(null==et?void 0:et.id)||"",invitationCode:(null==et?void 0:et.invitationCode)||"",invitationStatus:(null==et?void 0:et.invitationStatus)||"",isActive:(null==et?void 0:null===(eo=et.activeInfo)||void 0===eo?void 0:eo.active)||""}}function getParentAccountId(et,eo){var ei,ea,eu,ed,eh,ep;return(null==et?void 0:null===(ei=et.userRoles)||void 0===ei?void 0:ei[0])===eo.tggUser?(null==et?void 0:null===(ep=et.userAgency)||void 0===ep?void 0:ep.id)||"":(null==et?void 0:null===(ea=et.assignedClients)||void 0===ea?void 0:ea.length)>1?"":null==et?void 0:null===(eh=et.assignedClients)||void 0===eh?void 0:null===(ed=eh[0])||void 0===ed?void 0:null===(eu=ed.agency)||void 0===eu?void 0:eu.id}function getClientName(et,eo){var ei,ea,eu,ed,eh,ep,ef,em;return(null==et?void 0:null===(ei=et.userRoles)||void 0===ei?void 0:ei[0])===eo.tggUser&&(null==et?void 0:null===(ea=et.tggUserClients)||void 0===ea?void 0:ea.length)===1?(null==et?void 0:null===(ep=et.tggUserClients)||void 0===ep?void 0:null===(eh=ep[0])||void 0===eh?void 0:eh.name)||"":(null==et?void 0:null===(eu=et.userRoles)||void 0===eu?void 0:eu[0])===eo.clientUser&&(null==et?void 0:null===(ed=et.assignedClients)||void 0===ed?void 0:ed.length)===1&&(null==et?void 0:null===(em=et.assignedClients)||void 0===em?void 0:null===(ef=em[0])||void 0===ef?void 0:ef.name)||""}function userItemResponseHelper(et){var eo,ei,ep,ef,em,eg,ey,eC,eS,e_,ew,eA,eI,eR;return{id:(null==et?void 0:et.id)||"",firstName:(null==et?void 0:et.firstName)||"-",lastName:(null==et?void 0:et.lastName)||"-",fullName:"".concat((null==et?void 0:et.firstName)||""," ").concat((null==et?void 0:et.lastName)||""),email:(null==et?void 0:et.emailAddress)||"-",imageUrl:(null==et?void 0:et.imageUrl)||"",phoneNumber:(0,ed.un)(null==et?void 0:et.phoneNumber),phoneNumberText:(null==et?void 0:et.phoneNumber)||"",jobRole:(null==et?void 0:null===(eo=et.jobFunction)||void 0===eo?void 0:eo[0])||"",jobRoles:(null==et?void 0:et.jobFunction)||[],isSuperAdmin:(null==et?void 0:null===(ei=et.userRoles)||void 0===ei?void 0:ei[0])===ea.IT.superAdmin,isTGGUser:(null==et?void 0:null===(ep=et.userRoles)||void 0===ep?void 0:ep[0])===ea.IT.tggUser,isClientUser:(null==et?void 0:null===(ef=et.userRoles)||void 0===ef?void 0:ef[0])===ea.IT.clientUser,isGlobalUser:(null==et?void 0:null===(em=et.userRoles)||void 0===em?void 0:em[0])===ea.IT.globalUser,userRole:(null==et?void 0:null===(eg=et.userRoles)||void 0===eg?void 0:eg[0])||"",userRoles:(null==et?void 0:et.userRoles)||[],isActive:!!(null==et?void 0:null===(ey=et.activeInfo)||void 0===ey?void 0:ey.active),invitation:userInvitationItemRespHelper(null==et?void 0:et.invitation),permissions:(null==et?void 0:et.permissions)||[],client:(0,eh.nt)(null==et?void 0:et.client),isMultiClient:(null==et?void 0:null===(eC=et.assignedClients)||void 0===eC?void 0:eC.length)>1,assignedClients:null==et?void 0:et.assignedClients,assignedAgencies:null==et?void 0:et.assignedAgencies,roleGroup:null==et?void 0:et.roleGroup,roleGroupCode:null==et?void 0:null===(eS=et.roleGroup)||void 0===eS?void 0:eS.code,isOwner:(null==et?void 0:null===(e_=et.roleGroup)||void 0===e_?void 0:e_.code)===eu.n.owner,isFullAccess:(null==et?void 0:null===(ew=et.roleGroup)||void 0===ew?void 0:ew.code)===eu.n.fullAccess,isStandardAccess:(null==et?void 0:null===(eA=et.roleGroup)||void 0===eA?void 0:eA.code)===eu.n.standardAccess,isReadOnlyAccess:(null==et?void 0:null===(eI=et.roleGroup)||void 0===eI?void 0:eI.code)===eu.n.readOnly,parentAccountId:getParentAccountId(et,ea.IT),agency:null==et?void 0:et.userAgency,createdAt:null==et?void 0:null===(eR=et.auditInfo)||void 0===eR?void 0:eR.createdAt,clientName:getClientName(et,ea.IT)}}function accountingTeamUserItemHelper(et){var eo;return{id:(null==et?void 0:et.id)||"",isActive:!!(null==et?void 0:null===(eo=et.activeInfo)||void 0===eo?void 0:eo.active),userDetails:userItemResponseHelper(null==et?void 0:et.user),jobFunction:(null==et?void 0:et.jobFunction)||""}}function advisorUserItemResponseHelper(et){var eo,ei;return{id:(null==et?void 0:et.id)||"",email:(null==et?void 0:et.emailAddress)||"",firstName:(null==et?void 0:et.firstName)||"",lastName:(null==et?void 0:et.lastName)||"",fullName:"".concat((null==et?void 0:et.firstName)||""," ").concat((null==et?void 0:et.lastName)||""),institutionName:(null==et?void 0:et.institutionName)||"",advisorTypeCode:(null==et?void 0:null===(eo=et.advisorType)||void 0===eo?void 0:eo.code)||"",advisorTypeName:(null==et?void 0:null===(ei=et.advisorType)||void 0===ei?void 0:ei.name)||""}}function clientUserItemHelper(et){var eo;return{id:(null==et?void 0:et.id)||"",isActive:!!(null==et?void 0:null===(eo=et.activeInfo)||void 0===eo?void 0:eo.active),userDetails:userItemResponseHelper(et)}}},66725:function(et,eo,ei){"use strict";ei.d(eo,{Fl:function(){return eC},Q9:function(){return queryHelper},_j:function(){return ea},f5:function(){return goToDashboard},si:function(){return eS}});let ea={admin:{agency:{list:"/agency",addAgency:"/agency/add"},globalAdmin:{list:"/global-admin",add:"/global-admin/add"},client:{list:"/clients",addClient:"/clients/add",editClient:"/clients/[clientId]/edit",addProfile:"/clients/[clientId]/profile",editProfile:"/clients/[clientId]/profile",details:"/clients/[clientId]/details"},user:{list:"/hub-users",addTGGUser:"/hub-users/add",userDetail:"/hub-users/[userId]"},kpis:{list:"/kpis",kpiDetails:"/kpis/[kpiId]"},permissions:"/permissions",publishingRequirements:"/publishing-requirements",emailTemplates:"/email-templates"},client:{dashboard:"/details",clientUserDashboard:"/dashboard",landing:"/landing",details:"/details",editClient:"/edit-client",editProfile:"/edit-profile",accounts:"/accounts",documents:"/documents",folderView:"/documents/[folderId]/view",accountAIS:"/ais-accounts",aisAccountsList:"/ais-accounts/list",accountCOA:"/accounts/chart-of-accounts",qbSetup:"/qb-setup",qbSetupQBD:"/qb-setup/setup-qbd",accountMapAIS:"/ais-accounts/map-ais-accounts",isClassification:"/is-classification",reports:"/reports",financialReport:"/reports/[reportTemplateId]/financial-report/[financialPackageId]",financialReportTasks:"/reports/[reportTemplateId]/financial-report/[financialPackageId]/tasks",financialReportView:"/reports/[reportTemplateId]/financial-report/[financialPackageId]/view",financialReportPreview:"/reports/[reportTemplateId]/financial-report/[financialPackageId]/[packageComponentId]/preview",qboCallback:"/qbo/callback",goals:"/goals",goalProgress:"/goals/[goalId]/progress",profitRecommendations:"/profit-recommendations",budgetVsActual:"/budget-vs-actual",dataDiagnostics:"/data-diagnostics",reportingTemplate:"/reporting-template",templateBuilder:"/reporting-template/[reportTemplateId]/template-builder",preview:"/reporting-template/[reportTemplateId]/template-builder/[packageComponentId]/preview",configure:"/reporting-template/[reportTemplateId]/template-builder/[packageComponentId]/configure",settings:"/settings/client-portal",reportSettings:"/settings/report",publishingRequirementsSettings:"/settings/publishing-requirements",kpis:{types:"/kpis-types",stdKPIsList:"/std-kpis",stdKPIsDetails:"/std-kpis/[kpiId]",customKPIsList:"/custom-kpis",addCustomKPI:"/custom-kpis/add",customKPIDetails:"/custom-kpis/[kpiId]"},dataSets:{list:"/data-sets",addEditDataSet:"/data-sets/add",addDataSetData:"/data-sets/[dataSetId]/add-data"},arap:"/ar-ap"},invitation:{joinNow:"/join-now/[inviteCode]",reject:"/join-now/[inviteCode]/reject"},common:{base:"/",login:"/login",profile:"/profile"}},eu=Object.keys(ea.admin.client).map(et=>({path:ea.admin.client[et],role:[]})),ed=Object.keys(ea.admin.globalAdmin).map(et=>({path:ea.admin.globalAdmin[et],role:[]})),eh=Object.keys(ea.admin.agency).map(et=>({path:ea.admin.agency[et],role:[]})),ep=Object.keys(ea.admin.user).map(et=>({path:ea.admin.user[et],role:[]})),ef=Object.keys(ea.admin.kpis).map(et=>({path:ea.admin.kpis[et],role:[]})),em=Object.keys(ea.client).map(et=>({path:ea.client[et],role:[]})),eg=Object.keys(ea.client.kpis).map(et=>({path:ea.client.kpis[et],role:[]})),ey=Object.keys(ea.client.dataSets).map(et=>({path:ea.client.dataSets[et],role:[]})),eC=[...eu,...ep,...ef,...em,...eg,...ey,...eh,...ed,{path:ea.admin.emailTemplates,role:[]},{path:ea.admin.publishingRequirements,role:[]},{path:ea.admin.permissions,role:[]},{path:ea.common.profile,role:[]}];function goToDashboard(et){let eo=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return et&&eo?ea.client.landing:et?ea.client.clientUserDashboard:ea.admin.agency.list}let eS={clientId:"cId",dataSetId:"dsId",showClientUsers:"showClientUsers",isPreEditingKpi:"isPreEditingKpi",isCustomizingStdKpi:"isCustomizingStdKpi",aisAccountType:"aisType",tggUserId:"tuId",authToken:"uat",financialPackageId:"financialPackageId",reportTemplateId:"reportTemplateId",accountId:"aId"};function queryHelper(et,eo,ei){return eo?"".concat(et,"?").concat(ei):et}},84410:function(et,eo,ei){"use strict";var ea;ei.d(eo,{l:function(){return eu},x:function(){return ea}}),function(et){et.ALL="All",et.ACTIVE="Active",et.DEACTIVATED="Deactivated"}(ea||(ea={}));let eu=[{id:"all",label:"All"},{id:"true",label:"Active"},{id:"false",label:"Deactivated"}]},42474:function(et,eo,ei){var ea="/",eu=ei(48764).Buffer,ed=ei(34155);!function(){var eo={7160:function(et,eo,ei){var ea=eo;ea.bignum=ei(711),ea.define=ei(495).define,ea.base=ei(853),ea.constants=ei(7335),ea.decoders=ei(6701),ea.encoders=ei(3418)},495:function(et,eo,ei){var ea=ei(7160),eu=ei(3782);function Entity(et,eo){this.name=et,this.body=eo,this.decoders={},this.encoders={}}eo.define=function(et,eo){return new Entity(et,eo)},Entity.prototype._createNamed=function(et){var eo;try{eo=ei(6144).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(et){eo=function(et){this._initNamed(et)}}return eu(eo,et),eo.prototype._initNamed=function(eo){et.call(this,eo)},new eo(this)},Entity.prototype._getDecoder=function(et){return et=et||"der",this.decoders.hasOwnProperty(et)||(this.decoders[et]=this._createNamed(ea.decoders[et])),this.decoders[et]},Entity.prototype.decode=function(et,eo,ei){return this._getDecoder(eo).decode(et,ei)},Entity.prototype._getEncoder=function(et){return et=et||"der",this.encoders.hasOwnProperty(et)||(this.encoders[et]=this._createNamed(ea.encoders[et])),this.encoders[et]},Entity.prototype.encode=function(et,eo,ei){return this._getEncoder(eo).encode(et,ei)}},6483:function(et,eo,ei){var ea=ei(3782),eu=ei(853).Reporter,ed=ei(4300).Buffer;function DecoderBuffer(et,eo){if(eu.call(this,eo),!ed.isBuffer(et)){this.error("Input not Buffer");return}this.base=et,this.offset=0,this.length=et.length}function EncoderBuffer(et,eo){if(Array.isArray(et))this.length=0,this.value=et.map(function(et){return et instanceof EncoderBuffer||(et=new EncoderBuffer(et,eo)),this.length+=et.length,et},this);else if("number"==typeof et){if(!(0<=et&&et<=255))return eo.error("non-byte EncoderBuffer value");this.value=et,this.length=1}else if("string"==typeof et)this.value=et,this.length=ed.byteLength(et);else{if(!ed.isBuffer(et))return eo.error("Unsupported type: "+typeof et);this.value=et,this.length=et.length}}ea(DecoderBuffer,eu),eo.C=DecoderBuffer,DecoderBuffer.prototype.save=function(){return{offset:this.offset,reporter:eu.prototype.save.call(this)}},DecoderBuffer.prototype.restore=function(et){var eo=new DecoderBuffer(this.base);return eo.offset=et.offset,eo.length=this.offset,this.offset=et.offset,eu.prototype.restore.call(this,et.reporter),eo},DecoderBuffer.prototype.isEmpty=function(){return this.offset===this.length},DecoderBuffer.prototype.readUInt8=function(et){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(et||"DecoderBuffer overrun")},DecoderBuffer.prototype.skip=function(et,eo){if(!(this.offset+et<=this.length))return this.error(eo||"DecoderBuffer overrun");var ei=new DecoderBuffer(this.base);return ei._reporterState=this._reporterState,ei.offset=this.offset,ei.length=this.offset+et,this.offset+=et,ei},DecoderBuffer.prototype.raw=function(et){return this.base.slice(et?et.offset:this.offset,this.length)},eo.R=EncoderBuffer,EncoderBuffer.prototype.join=function(et,eo){return et||(et=new ed(this.length)),eo||(eo=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(ei){ei.join(et,eo),eo+=ei.length}):("number"==typeof this.value?et[eo]=this.value:"string"==typeof this.value?et.write(this.value,eo):ed.isBuffer(this.value)&&this.value.copy(et,eo),eo+=this.length)),et}},853:function(et,eo,ei){var ea=eo;ea.Reporter=ei(1293).b,ea.DecoderBuffer=ei(6483).C,ea.EncoderBuffer=ei(6483).R,ea.Node=ei(9374)},9374:function(et,eo,ei){var ea=ei(853).Reporter,eu=ei(853).EncoderBuffer,ed=ei(853).DecoderBuffer,eh=ei(3523),ep=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],ef=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(ep),em=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node(et,eo){var ei={};this._baseState=ei,ei.enc=et,ei.parent=eo||null,ei.children=null,ei.tag=null,ei.args=null,ei.reverseArgs=null,ei.choice=null,ei.optional=!1,ei.any=!1,ei.obj=!1,ei.use=null,ei.useDecoder=null,ei.key=null,ei.default=null,ei.explicit=null,ei.implicit=null,ei.contains=null,ei.parent||(ei.children=[],this._wrap())}et.exports=Node;var eg=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node.prototype.clone=function(){var et=this._baseState,eo={};eg.forEach(function(ei){eo[ei]=et[ei]});var ei=new this.constructor(eo.parent);return ei._baseState=eo,ei},Node.prototype._wrap=function(){var et=this._baseState;ef.forEach(function(eo){this[eo]=function(){var ei=new this.constructor(this);return et.children.push(ei),ei[eo].apply(ei,arguments)}},this)},Node.prototype._init=function(et){var eo=this._baseState;eh(null===eo.parent),et.call(this),eo.children=eo.children.filter(function(et){return et._baseState.parent===this},this),eh.equal(eo.children.length,1,"Root node can have only one child")},Node.prototype._useArgs=function(et){var eo=this._baseState,ei=et.filter(function(et){return et instanceof this.constructor},this);et=et.filter(function(et){return!(et instanceof this.constructor)},this),0!==ei.length&&(eh(null===eo.children),eo.children=ei,ei.forEach(function(et){et._baseState.parent=this},this)),0!==et.length&&(eh(null===eo.args),eo.args=et,eo.reverseArgs=et.map(function(et){if("object"!=typeof et||et.constructor!==Object)return et;var eo={};return Object.keys(et).forEach(function(ei){ei==(0|ei)&&(ei|=0),eo[et[ei]]=ei}),eo}))},em.forEach(function(et){Node.prototype[et]=function(){throw Error(et+" not implemented for encoding: "+this._baseState.enc)}}),ep.forEach(function(et){Node.prototype[et]=function(){var eo=this._baseState,ei=Array.prototype.slice.call(arguments);return eh(null===eo.tag),eo.tag=et,this._useArgs(ei),this}}),Node.prototype.use=function(et){eh(et);var eo=this._baseState;return eh(null===eo.use),eo.use=et,this},Node.prototype.optional=function(){return this._baseState.optional=!0,this},Node.prototype.def=function(et){var eo=this._baseState;return eh(null===eo.default),eo.default=et,eo.optional=!0,this},Node.prototype.explicit=function(et){var eo=this._baseState;return eh(null===eo.explicit&&null===eo.implicit),eo.explicit=et,this},Node.prototype.implicit=function(et){var eo=this._baseState;return eh(null===eo.explicit&&null===eo.implicit),eo.implicit=et,this},Node.prototype.obj=function(){var et=this._baseState,eo=Array.prototype.slice.call(arguments);return et.obj=!0,0!==eo.length&&this._useArgs(eo),this},Node.prototype.key=function(et){var eo=this._baseState;return eh(null===eo.key),eo.key=et,this},Node.prototype.any=function(){return this._baseState.any=!0,this},Node.prototype.choice=function(et){var eo=this._baseState;return eh(null===eo.choice),eo.choice=et,this._useArgs(Object.keys(et).map(function(eo){return et[eo]})),this},Node.prototype.contains=function(et){var eo=this._baseState;return eh(null===eo.use),eo.contains=et,this},Node.prototype._decode=function(et,eo){var ei,ea=this._baseState;if(null===ea.parent)return et.wrapResult(ea.children[0]._decode(et,eo));var eu=ea.default,eh=!0,ep=null;if(null!==ea.key&&(ep=et.enterKey(ea.key)),ea.optional){var ef=null;if(null!==ea.explicit?ef=ea.explicit:null!==ea.implicit?ef=ea.implicit:null!==ea.tag&&(ef=ea.tag),null!==ef||ea.any){if(eh=this._peekTag(et,ef,ea.any),et.isError(eh))return eh}else{var em=et.save();try{null===ea.choice?this._decodeGeneric(ea.tag,et,eo):this._decodeChoice(et,eo),eh=!0}catch(et){eh=!1}et.restore(em)}}if(ea.obj&&eh&&(ei=et.enterObject()),eh){if(null!==ea.explicit){var eg=this._decodeTag(et,ea.explicit);if(et.isError(eg))return eg;et=eg}var ey=et.offset;if(null===ea.use&&null===ea.choice){if(ea.any)var em=et.save();var eC=this._decodeTag(et,null!==ea.implicit?ea.implicit:ea.tag,ea.any);if(et.isError(eC))return eC;ea.any?eu=et.raw(em):et=eC}if(eo&&eo.track&&null!==ea.tag&&eo.track(et.path(),ey,et.length,"tagged"),eo&&eo.track&&null!==ea.tag&&eo.track(et.path(),et.offset,et.length,"content"),ea.any||(eu=null===ea.choice?this._decodeGeneric(ea.tag,et,eo):this._decodeChoice(et,eo)),et.isError(eu))return eu;if(ea.any||null!==ea.choice||null===ea.children||ea.children.forEach(function(ei){ei._decode(et,eo)}),ea.contains&&("octstr"===ea.tag||"bitstr"===ea.tag)){var eS=new ed(eu);eu=this._getUse(ea.contains,et._reporterState.obj)._decode(eS,eo)}}return ea.obj&&eh&&(eu=et.leaveObject(ei)),null!==ea.key&&(null!==eu||!0===eh)?et.leaveKey(ep,ea.key,eu):null!==ep&&et.exitKey(ep),eu},Node.prototype._decodeGeneric=function(et,eo,ei){var ea=this._baseState;if("seq"===et||"set"===et)return null;if("seqof"===et||"setof"===et)return this._decodeList(eo,et,ea.args[0],ei);if(/str$/.test(et))return this._decodeStr(eo,et,ei);if("objid"===et&&ea.args)return this._decodeObjid(eo,ea.args[0],ea.args[1],ei);if("objid"===et)return this._decodeObjid(eo,null,null,ei);if("gentime"===et||"utctime"===et)return this._decodeTime(eo,et,ei);if("null_"===et)return this._decodeNull(eo,ei);if("bool"===et)return this._decodeBool(eo,ei);else if("objDesc"===et)return this._decodeStr(eo,et,ei);else if("int"===et||"enum"===et)return this._decodeInt(eo,ea.args&&ea.args[0],ei);return null!==ea.use?this._getUse(ea.use,eo._reporterState.obj)._decode(eo,ei):eo.error("unknown tag: "+et)},Node.prototype._getUse=function(et,eo){var ei=this._baseState;return ei.useDecoder=this._use(et,eo),eh(null===ei.useDecoder._baseState.parent),ei.useDecoder=ei.useDecoder._baseState.children[0],ei.implicit!==ei.useDecoder._baseState.implicit&&(ei.useDecoder=ei.useDecoder.clone(),ei.useDecoder._baseState.implicit=ei.implicit),ei.useDecoder},Node.prototype._decodeChoice=function(et,eo){var ei=this._baseState,ea=null,eu=!1;return(Object.keys(ei.choice).some(function(ed){var eh=et.save(),ep=ei.choice[ed];try{var ef=ep._decode(et,eo);if(et.isError(ef))return!1;ea={type:ed,value:ef},eu=!0}catch(eo){return et.restore(eh),!1}return!0},this),eu)?ea:et.error("Choice not matched")},Node.prototype._createEncoderBuffer=function(et){return new eu(et,this.reporter)},Node.prototype._encode=function(et,eo,ei){var ea=this._baseState;if(null===ea.default||ea.default!==et){var eu=this._encodeValue(et,eo,ei);if(void 0!==eu&&!this._skipDefault(eu,eo,ei))return eu}},Node.prototype._encodeValue=function(et,eo,ei){var eu,ed=this._baseState;if(null===ed.parent)return ed.children[0]._encode(et,eo||new ea);var eu=null;if(this.reporter=eo,ed.optional&&void 0===et){if(null===ed.default)return;et=ed.default}var eh=null,ep=!1;if(ed.any)eu=this._createEncoderBuffer(et);else if(ed.choice)eu=this._encodeChoice(et,eo);else if(ed.contains)eh=this._getUse(ed.contains,ei)._encode(et,eo),ep=!0;else if(ed.children)eh=ed.children.map(function(ei){if("null_"===ei._baseState.tag)return ei._encode(null,eo,et);if(null===ei._baseState.key)return eo.error("Child should have a key");var ea=eo.enterKey(ei._baseState.key);if("object"!=typeof et)return eo.error("Child expected, but input is not object");var eu=ei._encode(et[ei._baseState.key],eo,et);return eo.leaveKey(ea),eu},this).filter(function(et){return et}),eh=this._createEncoderBuffer(eh);else if("seqof"===ed.tag||"setof"===ed.tag){if(!(ed.args&&1===ed.args.length))return eo.error("Too many args for : "+ed.tag);if(!Array.isArray(et))return eo.error("seqof/setof, but data is not Array");var ef=this.clone();ef._baseState.implicit=null,eh=this._createEncoderBuffer(et.map(function(ei){var ea=this._baseState;return this._getUse(ea.args[0],et)._encode(ei,eo)},ef))}else null!==ed.use?eu=this._getUse(ed.use,ei)._encode(et,eo):(eh=this._encodePrimitive(ed.tag,et),ep=!0);if(!ed.any&&null===ed.choice){var em=null!==ed.implicit?ed.implicit:ed.tag,eg=null===ed.implicit?"universal":"context";null===em?null===ed.use&&eo.error("Tag could be omitted only for .use()"):null===ed.use&&(eu=this._encodeComposite(em,ep,eg,eh))}return null!==ed.explicit&&(eu=this._encodeComposite(ed.explicit,!1,"context",eu)),eu},Node.prototype._encodeChoice=function(et,eo){var ei=this._baseState,ea=ei.choice[et.type];return ea||eh(!1,et.type+" not found in "+JSON.stringify(Object.keys(ei.choice))),ea._encode(et.value,eo)},Node.prototype._encodePrimitive=function(et,eo){var ei=this._baseState;if(/str$/.test(et))return this._encodeStr(eo,et);if("objid"===et&&ei.args)return this._encodeObjid(eo,ei.reverseArgs[0],ei.args[1]);if("objid"===et)return this._encodeObjid(eo,null,null);if("gentime"===et||"utctime"===et)return this._encodeTime(eo,et);if("null_"===et)return this._encodeNull();if("int"===et||"enum"===et)return this._encodeInt(eo,ei.args&&ei.reverseArgs[0]);if("bool"===et)return this._encodeBool(eo);else if("objDesc"===et)return this._encodeStr(eo,et);else throw Error("Unsupported tag: "+et)},Node.prototype._isNumstr=function(et){return/^[0-9 ]*$/.test(et)},Node.prototype._isPrintstr=function(et){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(et)}},1293:function(et,eo,ei){var ea=ei(3782);function Reporter(et){this._reporterState={obj:null,path:[],options:et||{},errors:[]}}function ReporterError(et,eo){this.path=et,this.rethrow(eo)}eo.b=Reporter,Reporter.prototype.isError=function(et){return et instanceof ReporterError},Reporter.prototype.save=function(){var et=this._reporterState;return{obj:et.obj,pathLen:et.path.length}},Reporter.prototype.restore=function(et){var eo=this._reporterState;eo.obj=et.obj,eo.path=eo.path.slice(0,et.pathLen)},Reporter.prototype.enterKey=function(et){return this._reporterState.path.push(et)},Reporter.prototype.exitKey=function(et){var eo=this._reporterState;eo.path=eo.path.slice(0,et-1)},Reporter.prototype.leaveKey=function(et,eo,ei){var ea=this._reporterState;this.exitKey(et),null!==ea.obj&&(ea.obj[eo]=ei)},Reporter.prototype.path=function(){return this._reporterState.path.join("/")},Reporter.prototype.enterObject=function(){var et=this._reporterState,eo=et.obj;return et.obj={},eo},Reporter.prototype.leaveObject=function(et){var eo=this._reporterState,ei=eo.obj;return eo.obj=et,ei},Reporter.prototype.error=function(et){var eo,ei=this._reporterState,ea=et instanceof ReporterError;if(eo=ea?et:new ReporterError(ei.path.map(function(et){return"["+JSON.stringify(et)+"]"}).join(""),et.message||et,et.stack),!ei.options.partial)throw eo;return ea||ei.errors.push(eo),eo},Reporter.prototype.wrapResult=function(et){var eo=this._reporterState;return eo.options.partial?{result:this.isError(et)?null:et,errors:eo.errors}:et},ea(ReporterError,Error),ReporterError.prototype.rethrow=function(et){if(this.message=et+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw Error(this.message)}catch(et){this.stack=et.stack}return this}},9791:function(et,eo,ei){var ea=ei(7335);eo.tagClass={0:"universal",1:"application",2:"context",3:"private"},eo.tagClassByName=ea._reverse(eo.tagClass),eo.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},eo.tagByName=ea._reverse(eo.tag)},7335:function(et,eo,ei){var ea=eo;ea._reverse=function(et){var eo={};return Object.keys(et).forEach(function(ei){(0|ei)==ei&&(ei|=0),eo[et[ei]]=ei}),eo},ea.der=ei(9791)},2259:function(et,eo,ei){var ea=ei(3782),eu=ei(7160),ed=eu.base,eh=eu.bignum,ep=eu.constants.der;function DERDecoder(et){this.enc="der",this.name=et.name,this.entity=et,this.tree=new DERNode,this.tree._init(et.body)}function DERNode(et){ed.Node.call(this,"der",et)}function derDecodeTag(et,eo){var ei=et.readUInt8(eo);if(et.isError(ei))return ei;var ea=ep.tagClass[ei>>6],eu=(32&ei)==0;if((31&ei)==31){var ed=ei;for(ei=0;(128&ed)==128;){if(ed=et.readUInt8(eo),et.isError(ed))return ed;ei<<=7,ei|=127&ed}}else ei&=31;var eh=ep.tag[ei];return{cls:ea,primitive:eu,tag:ei,tagStr:eh}}function derDecodeLen(et,eo,ei){var ea=et.readUInt8(ei);if(et.isError(ea))return ea;if(!eo&&128===ea)return null;if((128&ea)==0)return ea;var eu=127&ea;if(eu>4)return et.error("length octect is too long");ea=0;for(var ed=0;ed<eu;ed++){ea<<=8;var eh=et.readUInt8(ei);if(et.isError(eh))return eh;ea|=eh}return ea}et.exports=DERDecoder,DERDecoder.prototype.decode=function(et,eo){return et instanceof ed.DecoderBuffer||(et=new ed.DecoderBuffer(et,eo)),this.tree._decode(et,eo)},ea(DERNode,ed.Node),DERNode.prototype._peekTag=function(et,eo,ei){if(et.isEmpty())return!1;var ea=et.save(),eu=derDecodeTag(et,'Failed to peek tag: "'+eo+'"');return et.isError(eu)?eu:(et.restore(ea),eu.tag===eo||eu.tagStr===eo||eu.tagStr+"of"===eo||ei)},DERNode.prototype._decodeTag=function(et,eo,ei){var ea=derDecodeTag(et,'Failed to decode tag of "'+eo+'"');if(et.isError(ea))return ea;var eu=derDecodeLen(et,ea.primitive,'Failed to get length of "'+eo+'"');if(et.isError(eu))return eu;if(!ei&&ea.tag!==eo&&ea.tagStr!==eo&&ea.tagStr+"of"!==eo)return et.error('Failed to match tag: "'+eo+'"');if(ea.primitive||null!==eu)return et.skip(eu,'Failed to match body of: "'+eo+'"');var ed=et.save(),eh=this._skipUntilEnd(et,'Failed to skip indefinite length body: "'+this.tag+'"');return et.isError(eh)?eh:(eu=et.offset-ed.offset,et.restore(ed),et.skip(eu,'Failed to match body of: "'+eo+'"'))},DERNode.prototype._skipUntilEnd=function(et,eo){for(;;){var ei,ea=derDecodeTag(et,eo);if(et.isError(ea))return ea;var eu=derDecodeLen(et,ea.primitive,eo);if(et.isError(eu))return eu;if(ei=ea.primitive||null!==eu?et.skip(eu):this._skipUntilEnd(et,eo),et.isError(ei))return ei;if("end"===ea.tagStr)break}},DERNode.prototype._decodeList=function(et,eo,ei,ea){for(var eu=[];!et.isEmpty();){var ed=this._peekTag(et,"end");if(et.isError(ed))return ed;var eh=ei.decode(et,"der",ea);if(et.isError(eh)&&ed)break;eu.push(eh)}return eu},DERNode.prototype._decodeStr=function(et,eo){if("bitstr"===eo){var ei=et.readUInt8();return et.isError(ei)?ei:{unused:ei,data:et.raw()}}if("bmpstr"===eo){var ea=et.raw();if(ea.length%2==1)return et.error("Decoding of string type: bmpstr length mismatch");for(var eu="",ed=0;ed<ea.length/2;ed++)eu+=String.fromCharCode(ea.readUInt16BE(2*ed));return eu}if("numstr"===eo){var eh=et.raw().toString("ascii");return this._isNumstr(eh)?eh:et.error("Decoding of string type: numstr unsupported characters")}if("octstr"===eo)return et.raw();if("objDesc"===eo)return et.raw();if("printstr"===eo){var ep=et.raw().toString("ascii");return this._isPrintstr(ep)?ep:et.error("Decoding of string type: printstr unsupported characters")}if(/str$/.test(eo))return et.raw().toString();else return et.error("Decoding of string type: "+eo+" unsupported")},DERNode.prototype._decodeObjid=function(et,eo,ei){for(var ea,eu=[],ed=0;!et.isEmpty();){var eh=et.readUInt8();ed<<=7,ed|=127&eh,(128&eh)==0&&(eu.push(ed),ed=0)}128&eh&&eu.push(ed);var ep=eu[0]/40|0,ef=eu[0]%40;if(ea=ei?eu:[ep,ef].concat(eu.slice(1)),eo){var em=eo[ea.join(" ")];void 0===em&&(em=eo[ea.join(".")]),void 0!==em&&(ea=em)}return ea},DERNode.prototype._decodeTime=function(et,eo){var ei=et.raw().toString();if("gentime"===eo)var ea=0|ei.slice(0,4),eu=0|ei.slice(4,6),ed=0|ei.slice(6,8),eh=0|ei.slice(8,10),ep=0|ei.slice(10,12),ef=0|ei.slice(12,14);else{if("utctime"!==eo)return et.error("Decoding "+eo+" time is not supported yet");var ea=0|ei.slice(0,2),eu=0|ei.slice(2,4),ed=0|ei.slice(4,6),eh=0|ei.slice(6,8),ep=0|ei.slice(8,10),ef=0|ei.slice(10,12);ea=ea<70?2e3+ea:1900+ea}return Date.UTC(ea,eu-1,ed,eh,ep,ef,0)},DERNode.prototype._decodeNull=function(et){return null},DERNode.prototype._decodeBool=function(et){var eo=et.readUInt8();return et.isError(eo)?eo:0!==eo},DERNode.prototype._decodeInt=function(et,eo){var ei=et.raw(),ea=new eh(ei);return eo&&(ea=eo[ea.toString(10)]||ea),ea},DERNode.prototype._use=function(et,eo){return"function"==typeof et&&(et=et(eo)),et._getDecoder("der").tree}},6701:function(et,eo,ei){var ea=eo;ea.der=ei(2259),ea.pem=ei(8527)},8527:function(et,eo,ei){var ea=ei(3782),eu=ei(4300).Buffer,ed=ei(2259);function PEMDecoder(et){ed.call(this,et),this.enc="pem"}ea(PEMDecoder,ed),et.exports=PEMDecoder,PEMDecoder.prototype.decode=function(et,eo){for(var ei=et.toString().split(/[\r\n]+/g),ea=eo.label.toUpperCase(),eh=/^-----(BEGIN|END) ([^-]+)-----$/,ep=-1,ef=-1,em=0;em<ei.length;em++){var eg=ei[em].match(eh);if(null!==eg&&eg[2]===ea){if(-1===ep){if("BEGIN"!==eg[1])break;ep=em}else{if("END"!==eg[1])break;ef=em;break}}}if(-1===ep||-1===ef)throw Error("PEM section not found for: "+ea);var ey=ei.slice(ep+1,ef).join("");ey.replace(/[^a-z0-9\+\/=]+/gi,"");var eC=new eu(ey,"base64");return ed.prototype.decode.call(this,eC,eo)}},7804:function(et,eo,ei){var ea=ei(3782),eu=ei(4300).Buffer,ed=ei(7160),eh=ed.base,ep=ed.constants.der;function DEREncoder(et){this.enc="der",this.name=et.name,this.entity=et,this.tree=new DERNode,this.tree._init(et.body)}function DERNode(et){eh.Node.call(this,"der",et)}function two(et){return et<10?"0"+et:et}function encodeTag(et,eo,ei,ea){var eu;if("seqof"===et?et="seq":"setof"===et&&(et="set"),ep.tagByName.hasOwnProperty(et))eu=ep.tagByName[et];else{if("number"!=typeof et||(0|et)!==et)return ea.error("Unknown tag: "+et);eu=et}return eu>=31?ea.error("Multi-octet tag encoding unsupported"):(eo||(eu|=32),eu|=ep.tagClassByName[ei||"universal"]<<6)}et.exports=DEREncoder,DEREncoder.prototype.encode=function(et,eo){return this.tree._encode(et,eo).join()},ea(DERNode,eh.Node),DERNode.prototype._encodeComposite=function(et,eo,ei,ea){var ed=encodeTag(et,eo,ei,this.reporter);if(ea.length<128){var eh=new eu(2);return eh[0]=ed,eh[1]=ea.length,this._createEncoderBuffer([eh,ea])}for(var ep=1,ef=ea.length;ef>=256;ef>>=8)ep++;var eh=new eu(2+ep);eh[0]=ed,eh[1]=128|ep;for(var ef=1+ep,em=ea.length;em>0;ef--,em>>=8)eh[ef]=255&em;return this._createEncoderBuffer([eh,ea])},DERNode.prototype._encodeStr=function(et,eo){if("bitstr"===eo)return this._createEncoderBuffer([0|et.unused,et.data]);if("bmpstr"===eo){for(var ei=new eu(2*et.length),ea=0;ea<et.length;ea++)ei.writeUInt16BE(et.charCodeAt(ea),2*ea);return this._createEncoderBuffer(ei)}return"numstr"===eo?this._isNumstr(et)?this._createEncoderBuffer(et):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===eo?this._isPrintstr(et)?this._createEncoderBuffer(et):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(eo)?this._createEncoderBuffer(et):"objDesc"===eo?this._createEncoderBuffer(et):this.reporter.error("Encoding of string type: "+eo+" unsupported")},DERNode.prototype._encodeObjid=function(et,eo,ei){if("string"==typeof et){if(!eo)return this.reporter.error("string objid given, but no values map found");if(!eo.hasOwnProperty(et))return this.reporter.error("objid not found in values map");et=eo[et].split(/[\s\.]+/g);for(var ea=0;ea<et.length;ea++)et[ea]|=0}else if(Array.isArray(et)){et=et.slice();for(var ea=0;ea<et.length;ea++)et[ea]|=0}if(!Array.isArray(et))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(et));if(!ei){if(et[1]>=40)return this.reporter.error("Second objid identifier OOB");et.splice(0,2,40*et[0]+et[1])}for(var ed=0,ea=0;ea<et.length;ea++){var eh=et[ea];for(ed++;eh>=128;eh>>=7)ed++}for(var ep=new eu(ed),ef=ep.length-1,ea=et.length-1;ea>=0;ea--){var eh=et[ea];for(ep[ef--]=127&eh;(eh>>=7)>0;)ep[ef--]=128|127&eh}return this._createEncoderBuffer(ep)},DERNode.prototype._encodeTime=function(et,eo){var ei,ea=new Date(et);return"gentime"===eo?ei=[two(ea.getFullYear()),two(ea.getUTCMonth()+1),two(ea.getUTCDate()),two(ea.getUTCHours()),two(ea.getUTCMinutes()),two(ea.getUTCSeconds()),"Z"].join(""):"utctime"===eo?ei=[two(ea.getFullYear()%100),two(ea.getUTCMonth()+1),two(ea.getUTCDate()),two(ea.getUTCHours()),two(ea.getUTCMinutes()),two(ea.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+eo+" time is not supported yet"),this._encodeStr(ei,"octstr")},DERNode.prototype._encodeNull=function(){return this._createEncoderBuffer("")},DERNode.prototype._encodeInt=function(et,eo){if("string"==typeof et){if(!eo)return this.reporter.error("String int or enum given, but no values map");if(!eo.hasOwnProperty(et))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(et));et=eo[et]}if("number"!=typeof et&&!eu.isBuffer(et)){var ei=et.toArray();!et.sign&&128&ei[0]&&ei.unshift(0),et=new eu(ei)}if(eu.isBuffer(et)){var ea=et.length;0===et.length&&ea++;var ed=new eu(ea);return et.copy(ed),0===et.length&&(ed[0]=0),this._createEncoderBuffer(ed)}if(et<128)return this._createEncoderBuffer(et);if(et<256)return this._createEncoderBuffer([0,et]);for(var ea=1,eh=et;eh>=256;eh>>=8)ea++;for(var ed=Array(ea),eh=ed.length-1;eh>=0;eh--)ed[eh]=255&et,et>>=8;return 128&ed[0]&&ed.unshift(0),this._createEncoderBuffer(new eu(ed))},DERNode.prototype._encodeBool=function(et){return this._createEncoderBuffer(et?255:0)},DERNode.prototype._use=function(et,eo){return"function"==typeof et&&(et=et(eo)),et._getEncoder("der").tree},DERNode.prototype._skipDefault=function(et,eo,ei){var ea,eu=this._baseState;if(null===eu.default)return!1;var ed=et.join();if(void 0===eu.defaultBuffer&&(eu.defaultBuffer=this._encodeValue(eu.default,eo,ei).join()),ed.length!==eu.defaultBuffer.length)return!1;for(ea=0;ea<ed.length;ea++)if(ed[ea]!==eu.defaultBuffer[ea])return!1;return!0}},3418:function(et,eo,ei){var ea=eo;ea.der=ei(7804),ea.pem=ei(1564)},1564:function(et,eo,ei){var ea=ei(3782),eu=ei(7804);function PEMEncoder(et){eu.call(this,et),this.enc="pem"}ea(PEMEncoder,eu),et.exports=PEMEncoder,PEMEncoder.prototype.encode=function(et,eo){for(var ei=eu.prototype.encode.call(this,et).toString("base64"),ea=["-----BEGIN "+eo.label+"-----"],ed=0;ed<ei.length;ed+=64)ea.push(ei.slice(ed,ed+64));return ea.push("-----END "+eo.label+"-----"),ea.join("\n")}},711:function(et,eo,ei){!function(et,eo){"use strict";function assert(et,eo){if(!et)throw Error(eo||"Assertion failed")}function inherits(et,eo){et.super_=eo;var TempCtor=function(){};TempCtor.prototype=eo.prototype,et.prototype=new TempCtor,et.prototype.constructor=et}function BN(et,eo,ei){if(BN.isBN(et))return et;this.negative=0,this.words=null,this.length=0,this.red=null,null!==et&&(("le"===eo||"be"===eo)&&(ei=eo,eo=10),this._init(et||0,eo||10,ei||"be"))}"object"==typeof et?et.exports=BN:eo.BN=BN,BN.BN=BN,BN.wordSize=26;try{ea=ei(4300).Buffer}catch(et){}function parseHex(et,eo,ei){for(var ea=0,eu=Math.min(et.length,ei),ed=eo;ed<eu;ed++){var eh=et.charCodeAt(ed)-48;ea<<=4,eh>=49&&eh<=54?ea|=eh-49+10:eh>=17&&eh<=22?ea|=eh-17+10:ea|=15&eh}return ea}function parseBase(et,eo,ei,ea){for(var eu=0,ed=Math.min(et.length,ei),eh=eo;eh<ed;eh++){var ep=et.charCodeAt(eh)-48;eu*=ea,ep>=49?eu+=ep-49+10:ep>=17?eu+=ep-17+10:eu+=ep}return eu}BN.isBN=function(et){return et instanceof BN||null!==et&&"object"==typeof et&&et.constructor.wordSize===BN.wordSize&&Array.isArray(et.words)},BN.max=function(et,eo){return et.cmp(eo)>0?et:eo},BN.min=function(et,eo){return 0>et.cmp(eo)?et:eo},BN.prototype._init=function(et,eo,ei){if("number"==typeof et)return this._initNumber(et,eo,ei);if("object"==typeof et)return this._initArray(et,eo,ei);"hex"===eo&&(eo=16),assert(eo===(0|eo)&&eo>=2&&eo<=36);var ea=0;"-"===(et=et.toString().replace(/\s+/g,""))[0]&&ea++,16===eo?this._parseHex(et,ea):this._parseBase(et,eo,ea),"-"===et[0]&&(this.negative=1),this.strip(),"le"===ei&&this._initArray(this.toArray(),eo,ei)},BN.prototype._initNumber=function(et,eo,ei){et<0&&(this.negative=1,et=-et),et<67108864?(this.words=[67108863&et],this.length=1):et<4503599627370496?(this.words=[67108863&et,et/67108864&67108863],this.length=2):(assert(et<9007199254740992),this.words=[67108863&et,et/67108864&67108863,1],this.length=3),"le"===ei&&this._initArray(this.toArray(),eo,ei)},BN.prototype._initArray=function(et,eo,ei){if(assert("number"==typeof et.length),et.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(et.length/3),this.words=Array(this.length);for(var ea,eu,ed=0;ed<this.length;ed++)this.words[ed]=0;var eh=0;if("be"===ei)for(ed=et.length-1,ea=0;ed>=0;ed-=3)eu=et[ed]|et[ed-1]<<8|et[ed-2]<<16,this.words[ea]|=eu<<eh&67108863,this.words[ea+1]=eu>>>26-eh&67108863,(eh+=24)>=26&&(eh-=26,ea++);else if("le"===ei)for(ed=0,ea=0;ed<et.length;ed+=3)eu=et[ed]|et[ed+1]<<8|et[ed+2]<<16,this.words[ea]|=eu<<eh&67108863,this.words[ea+1]=eu>>>26-eh&67108863,(eh+=24)>=26&&(eh-=26,ea++);return this.strip()},BN.prototype._parseHex=function(et,eo){this.length=Math.ceil((et.length-eo)/6),this.words=Array(this.length);for(var ei,ea,eu=0;eu<this.length;eu++)this.words[eu]=0;var ed=0;for(eu=et.length-6,ei=0;eu>=eo;eu-=6)ea=parseHex(et,eu,eu+6),this.words[ei]|=ea<<ed&67108863,this.words[ei+1]|=ea>>>26-ed&4194303,(ed+=24)>=26&&(ed-=26,ei++);eu+6!==eo&&(ea=parseHex(et,eo,eu+6),this.words[ei]|=ea<<ed&67108863,this.words[ei+1]|=ea>>>26-ed&4194303),this.strip()},BN.prototype._parseBase=function(et,eo,ei){this.words=[0],this.length=1;for(var ea=0,eu=1;eu<=67108863;eu*=eo)ea++;ea--,eu=eu/eo|0;for(var ed=et.length-ei,eh=ed%ea,ep=Math.min(ed,ed-eh)+ei,ef=0,em=ei;em<ep;em+=ea)ef=parseBase(et,em,em+ea,eo),this.imuln(eu),this.words[0]+ef<67108864?this.words[0]+=ef:this._iaddn(ef);if(0!==eh){var eg=1;for(ef=parseBase(et,em,et.length,eo),em=0;em<eh;em++)eg*=eo;this.imuln(eg),this.words[0]+ef<67108864?this.words[0]+=ef:this._iaddn(ef)}},BN.prototype.copy=function(et){et.words=Array(this.length);for(var eo=0;eo<this.length;eo++)et.words[eo]=this.words[eo];et.length=this.length,et.negative=this.negative,et.red=this.red},BN.prototype.clone=function(){var et=new BN(null);return this.copy(et),et},BN.prototype._expand=function(et){for(;this.length<et;)this.words[this.length++]=0;return this},BN.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},BN.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var ea,eu=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ed=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],eh=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function toBitArray(et){for(var eo=Array(et.bitLength()),ei=0;ei<eo.length;ei++){var ea=ei/26|0,eu=ei%26;eo[ei]=(et.words[ea]&1<<eu)>>>eu}return eo}function smallMulTo(et,eo,ei){ei.negative=eo.negative^et.negative;var ea=et.length+eo.length|0;ei.length=ea,ea=ea-1|0;var eu=0|et.words[0],ed=0|eo.words[0],eh=eu*ed,ep=67108863&eh,ef=eh/67108864|0;ei.words[0]=ep;for(var em=1;em<ea;em++){for(var eg=ef>>>26,ey=67108863&ef,eC=Math.min(em,eo.length-1),eS=Math.max(0,em-et.length+1);eS<=eC;eS++){var e_=em-eS|0;eg+=(eh=(eu=0|et.words[e_])*(ed=0|eo.words[eS])+ey)/67108864|0,ey=67108863&eh}ei.words[em]=0|ey,ef=0|eg}return 0!==ef?ei.words[em]=0|ef:ei.length--,ei.strip()}BN.prototype.toString=function(et,eo){if(eo=0|eo||1,16===(et=et||10)||"hex"===et){ei="";for(var ei,ea=0,ep=0,ef=0;ef<this.length;ef++){var em=this.words[ef],eg=((em<<ea|ep)&16777215).toString(16);ei=0!=(ep=em>>>24-ea&16777215)||ef!==this.length-1?eu[6-eg.length]+eg+ei:eg+ei,(ea+=2)>=26&&(ea-=26,ef--)}for(0!==ep&&(ei=ep.toString(16)+ei);ei.length%eo!=0;)ei="0"+ei;return 0!==this.negative&&(ei="-"+ei),ei}if(et===(0|et)&&et>=2&&et<=36){var ey=ed[et],eC=eh[et];ei="";var eS=this.clone();for(eS.negative=0;!eS.isZero();){var e_=eS.modn(eC).toString(et);ei=(eS=eS.idivn(eC)).isZero()?e_+ei:eu[ey-e_.length]+e_+ei}for(this.isZero()&&(ei="0"+ei);ei.length%eo!=0;)ei="0"+ei;return 0!==this.negative&&(ei="-"+ei),ei}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function(){var et=this.words[0];return 2===this.length?et+=67108864*this.words[1]:3===this.length&&1===this.words[2]?et+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-et:et},BN.prototype.toJSON=function(){return this.toString(16)},BN.prototype.toBuffer=function(et,eo){return assert(void 0!==ea),this.toArrayLike(ea,et,eo)},BN.prototype.toArray=function(et,eo){return this.toArrayLike(Array,et,eo)},BN.prototype.toArrayLike=function(et,eo,ei){var ea,eu,ed=this.byteLength(),eh=ei||Math.max(1,ed);assert(ed<=eh,"byte array longer than desired length"),assert(eh>0,"Requested array length <= 0"),this.strip();var ep="le"===eo,ef=new et(eh),em=this.clone();if(ep){for(eu=0;!em.isZero();eu++)ea=em.andln(255),em.iushrn(8),ef[eu]=ea;for(;eu<eh;eu++)ef[eu]=0}else{for(eu=0;eu<eh-ed;eu++)ef[eu]=0;for(eu=0;!em.isZero();eu++)ea=em.andln(255),em.iushrn(8),ef[eh-eu-1]=ea}return ef},Math.clz32?BN.prototype._countBits=function(et){return 32-Math.clz32(et)}:BN.prototype._countBits=function(et){var eo=et,ei=0;return eo>=4096&&(ei+=13,eo>>>=13),eo>=64&&(ei+=7,eo>>>=7),eo>=8&&(ei+=4,eo>>>=4),eo>=2&&(ei+=2,eo>>>=2),ei+eo},BN.prototype._zeroBits=function(et){if(0===et)return 26;var eo=et,ei=0;return(8191&eo)==0&&(ei+=13,eo>>>=13),(127&eo)==0&&(ei+=7,eo>>>=7),(15&eo)==0&&(ei+=4,eo>>>=4),(3&eo)==0&&(ei+=2,eo>>>=2),(1&eo)==0&&ei++,ei},BN.prototype.bitLength=function(){var et=this.words[this.length-1],eo=this._countBits(et);return(this.length-1)*26+eo},BN.prototype.zeroBits=function(){if(this.isZero())return 0;for(var et=0,eo=0;eo<this.length;eo++){var ei=this._zeroBits(this.words[eo]);if(et+=ei,26!==ei)break}return et},BN.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},BN.prototype.toTwos=function(et){return 0!==this.negative?this.abs().inotn(et).iaddn(1):this.clone()},BN.prototype.fromTwos=function(et){return this.testn(et-1)?this.notn(et).iaddn(1).ineg():this.clone()},BN.prototype.isNeg=function(){return 0!==this.negative},BN.prototype.neg=function(){return this.clone().ineg()},BN.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},BN.prototype.iuor=function(et){for(;this.length<et.length;)this.words[this.length++]=0;for(var eo=0;eo<et.length;eo++)this.words[eo]=this.words[eo]|et.words[eo];return this.strip()},BN.prototype.ior=function(et){return assert((this.negative|et.negative)==0),this.iuor(et)},BN.prototype.or=function(et){return this.length>et.length?this.clone().ior(et):et.clone().ior(this)},BN.prototype.uor=function(et){return this.length>et.length?this.clone().iuor(et):et.clone().iuor(this)},BN.prototype.iuand=function(et){var eo;eo=this.length>et.length?et:this;for(var ei=0;ei<eo.length;ei++)this.words[ei]=this.words[ei]&et.words[ei];return this.length=eo.length,this.strip()},BN.prototype.iand=function(et){return assert((this.negative|et.negative)==0),this.iuand(et)},BN.prototype.and=function(et){return this.length>et.length?this.clone().iand(et):et.clone().iand(this)},BN.prototype.uand=function(et){return this.length>et.length?this.clone().iuand(et):et.clone().iuand(this)},BN.prototype.iuxor=function(et){this.length>et.length?(eo=this,ei=et):(eo=et,ei=this);for(var eo,ei,ea=0;ea<ei.length;ea++)this.words[ea]=eo.words[ea]^ei.words[ea];if(this!==eo)for(;ea<eo.length;ea++)this.words[ea]=eo.words[ea];return this.length=eo.length,this.strip()},BN.prototype.ixor=function(et){return assert((this.negative|et.negative)==0),this.iuxor(et)},BN.prototype.xor=function(et){return this.length>et.length?this.clone().ixor(et):et.clone().ixor(this)},BN.prototype.uxor=function(et){return this.length>et.length?this.clone().iuxor(et):et.clone().iuxor(this)},BN.prototype.inotn=function(et){assert("number"==typeof et&&et>=0);var eo=0|Math.ceil(et/26),ei=et%26;this._expand(eo),ei>0&&eo--;for(var ea=0;ea<eo;ea++)this.words[ea]=67108863&~this.words[ea];return ei>0&&(this.words[ea]=~this.words[ea]&67108863>>26-ei),this.strip()},BN.prototype.notn=function(et){return this.clone().inotn(et)},BN.prototype.setn=function(et,eo){assert("number"==typeof et&&et>=0);var ei=et/26|0,ea=et%26;return this._expand(ei+1),eo?this.words[ei]=this.words[ei]|1<<ea:this.words[ei]=this.words[ei]&~(1<<ea),this.strip()},BN.prototype.iadd=function(et){if(0!==this.negative&&0===et.negative)return this.negative=0,eo=this.isub(et),this.negative^=1,this._normSign();if(0===this.negative&&0!==et.negative)return et.negative=0,eo=this.isub(et),et.negative=1,eo._normSign();this.length>et.length?(ei=this,ea=et):(ei=et,ea=this);for(var eo,ei,ea,eu=0,ed=0;ed<ea.length;ed++)eo=(0|ei.words[ed])+(0|ea.words[ed])+eu,this.words[ed]=67108863&eo,eu=eo>>>26;for(;0!==eu&&ed<ei.length;ed++)eo=(0|ei.words[ed])+eu,this.words[ed]=67108863&eo,eu=eo>>>26;if(this.length=ei.length,0!==eu)this.words[this.length]=eu,this.length++;else if(ei!==this)for(;ed<ei.length;ed++)this.words[ed]=ei.words[ed];return this},BN.prototype.add=function(et){var eo;return 0!==et.negative&&0===this.negative?(et.negative=0,eo=this.sub(et),et.negative^=1,eo):0===et.negative&&0!==this.negative?(this.negative=0,eo=et.sub(this),this.negative=1,eo):this.length>et.length?this.clone().iadd(et):et.clone().iadd(this)},BN.prototype.isub=function(et){if(0!==et.negative){et.negative=0;var eo,ei,ea=this.iadd(et);return et.negative=1,ea._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(et),this.negative=1,this._normSign();var eu=this.cmp(et);if(0===eu)return this.negative=0,this.length=1,this.words[0]=0,this;eu>0?(eo=this,ei=et):(eo=et,ei=this);for(var ed=0,eh=0;eh<ei.length;eh++)ed=(ea=(0|eo.words[eh])-(0|ei.words[eh])+ed)>>26,this.words[eh]=67108863&ea;for(;0!==ed&&eh<eo.length;eh++)ed=(ea=(0|eo.words[eh])+ed)>>26,this.words[eh]=67108863&ea;if(0===ed&&eh<eo.length&&eo!==this)for(;eh<eo.length;eh++)this.words[eh]=eo.words[eh];return this.length=Math.max(this.length,eh),eo!==this&&(this.negative=1),this.strip()},BN.prototype.sub=function(et){return this.clone().isub(et)};var o=function(et,eo,ei){var ea,eu,ed,eh=et.words,ep=eo.words,ef=ei.words,em=0,eg=0|eh[0],ey=8191&eg,eC=eg>>>13,eS=0|eh[1],e_=8191&eS,ew=eS>>>13,eA=0|eh[2],eI=8191&eA,eR=eA>>>13,eT=0|eh[3],eE=8191&eT,eP=eT>>>13,ek=0|eh[4],eO=8191&ek,eM=ek>>>13,eD=0|eh[5],eU=8191&eD,eL=eD>>>13,eN=0|eh[6],eB=8191&eN,eF=eN>>>13,ej=0|eh[7],eG=8191&ej,eH=ej>>>13,eK=0|eh[8],ez=8191&eK,eW=eK>>>13,eV=0|eh[9],eJ=8191&eV,eY=eV>>>13,e$=0|ep[0],eZ=8191&e$,eQ=e$>>>13,eX=0|ep[1],e0=8191&eX,e4=eX>>>13,e6=0|ep[2],e5=8191&e6,e8=e6>>>13,e7=0|ep[3],e9=8191&e7,tr=e7>>>13,tn=0|ep[4],ti=8191&tn,ta=tn>>>13,ts=0|ep[5],tc=8191&ts,tu=ts>>>13,td=0|ep[6],tp=8191&td,tf=td>>>13,tm=0|ep[7],tg=8191&tm,ty=tm>>>13,tv=0|ep[8],tb=8191&tv,tC=tv>>>13,tS=0|ep[9],t_=8191&tS,tw=tS>>>13;ei.negative=et.negative^eo.negative,ei.length=19;var tA=(em+(ea=Math.imul(ey,eZ))|0)+((8191&(eu=(eu=Math.imul(ey,eQ))+Math.imul(eC,eZ)|0))<<13)|0;em=((ed=Math.imul(eC,eQ))+(eu>>>13)|0)+(tA>>>26)|0,tA&=67108863,ea=Math.imul(e_,eZ),eu=(eu=Math.imul(e_,eQ))+Math.imul(ew,eZ)|0,ed=Math.imul(ew,eQ);var tI=(em+(ea=ea+Math.imul(ey,e0)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,e4)|0)+Math.imul(eC,e0)|0))<<13)|0;em=((ed=ed+Math.imul(eC,e4)|0)+(eu>>>13)|0)+(tI>>>26)|0,tI&=67108863,ea=Math.imul(eI,eZ),eu=(eu=Math.imul(eI,eQ))+Math.imul(eR,eZ)|0,ed=Math.imul(eR,eQ),ea=ea+Math.imul(e_,e0)|0,eu=(eu=eu+Math.imul(e_,e4)|0)+Math.imul(ew,e0)|0,ed=ed+Math.imul(ew,e4)|0;var tR=(em+(ea=ea+Math.imul(ey,e5)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,e8)|0)+Math.imul(eC,e5)|0))<<13)|0;em=((ed=ed+Math.imul(eC,e8)|0)+(eu>>>13)|0)+(tR>>>26)|0,tR&=67108863,ea=Math.imul(eE,eZ),eu=(eu=Math.imul(eE,eQ))+Math.imul(eP,eZ)|0,ed=Math.imul(eP,eQ),ea=ea+Math.imul(eI,e0)|0,eu=(eu=eu+Math.imul(eI,e4)|0)+Math.imul(eR,e0)|0,ed=ed+Math.imul(eR,e4)|0,ea=ea+Math.imul(e_,e5)|0,eu=(eu=eu+Math.imul(e_,e8)|0)+Math.imul(ew,e5)|0,ed=ed+Math.imul(ew,e8)|0;var tT=(em+(ea=ea+Math.imul(ey,e9)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tr)|0)+Math.imul(eC,e9)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tr)|0)+(eu>>>13)|0)+(tT>>>26)|0,tT&=67108863,ea=Math.imul(eO,eZ),eu=(eu=Math.imul(eO,eQ))+Math.imul(eM,eZ)|0,ed=Math.imul(eM,eQ),ea=ea+Math.imul(eE,e0)|0,eu=(eu=eu+Math.imul(eE,e4)|0)+Math.imul(eP,e0)|0,ed=ed+Math.imul(eP,e4)|0,ea=ea+Math.imul(eI,e5)|0,eu=(eu=eu+Math.imul(eI,e8)|0)+Math.imul(eR,e5)|0,ed=ed+Math.imul(eR,e8)|0,ea=ea+Math.imul(e_,e9)|0,eu=(eu=eu+Math.imul(e_,tr)|0)+Math.imul(ew,e9)|0,ed=ed+Math.imul(ew,tr)|0;var tE=(em+(ea=ea+Math.imul(ey,ti)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,ta)|0)+Math.imul(eC,ti)|0))<<13)|0;em=((ed=ed+Math.imul(eC,ta)|0)+(eu>>>13)|0)+(tE>>>26)|0,tE&=67108863,ea=Math.imul(eU,eZ),eu=(eu=Math.imul(eU,eQ))+Math.imul(eL,eZ)|0,ed=Math.imul(eL,eQ),ea=ea+Math.imul(eO,e0)|0,eu=(eu=eu+Math.imul(eO,e4)|0)+Math.imul(eM,e0)|0,ed=ed+Math.imul(eM,e4)|0,ea=ea+Math.imul(eE,e5)|0,eu=(eu=eu+Math.imul(eE,e8)|0)+Math.imul(eP,e5)|0,ed=ed+Math.imul(eP,e8)|0,ea=ea+Math.imul(eI,e9)|0,eu=(eu=eu+Math.imul(eI,tr)|0)+Math.imul(eR,e9)|0,ed=ed+Math.imul(eR,tr)|0,ea=ea+Math.imul(e_,ti)|0,eu=(eu=eu+Math.imul(e_,ta)|0)+Math.imul(ew,ti)|0,ed=ed+Math.imul(ew,ta)|0;var tP=(em+(ea=ea+Math.imul(ey,tc)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tu)|0)+Math.imul(eC,tc)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tu)|0)+(eu>>>13)|0)+(tP>>>26)|0,tP&=67108863,ea=Math.imul(eB,eZ),eu=(eu=Math.imul(eB,eQ))+Math.imul(eF,eZ)|0,ed=Math.imul(eF,eQ),ea=ea+Math.imul(eU,e0)|0,eu=(eu=eu+Math.imul(eU,e4)|0)+Math.imul(eL,e0)|0,ed=ed+Math.imul(eL,e4)|0,ea=ea+Math.imul(eO,e5)|0,eu=(eu=eu+Math.imul(eO,e8)|0)+Math.imul(eM,e5)|0,ed=ed+Math.imul(eM,e8)|0,ea=ea+Math.imul(eE,e9)|0,eu=(eu=eu+Math.imul(eE,tr)|0)+Math.imul(eP,e9)|0,ed=ed+Math.imul(eP,tr)|0,ea=ea+Math.imul(eI,ti)|0,eu=(eu=eu+Math.imul(eI,ta)|0)+Math.imul(eR,ti)|0,ed=ed+Math.imul(eR,ta)|0,ea=ea+Math.imul(e_,tc)|0,eu=(eu=eu+Math.imul(e_,tu)|0)+Math.imul(ew,tc)|0,ed=ed+Math.imul(ew,tu)|0;var tk=(em+(ea=ea+Math.imul(ey,tp)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tf)|0)+Math.imul(eC,tp)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tf)|0)+(eu>>>13)|0)+(tk>>>26)|0,tk&=67108863,ea=Math.imul(eG,eZ),eu=(eu=Math.imul(eG,eQ))+Math.imul(eH,eZ)|0,ed=Math.imul(eH,eQ),ea=ea+Math.imul(eB,e0)|0,eu=(eu=eu+Math.imul(eB,e4)|0)+Math.imul(eF,e0)|0,ed=ed+Math.imul(eF,e4)|0,ea=ea+Math.imul(eU,e5)|0,eu=(eu=eu+Math.imul(eU,e8)|0)+Math.imul(eL,e5)|0,ed=ed+Math.imul(eL,e8)|0,ea=ea+Math.imul(eO,e9)|0,eu=(eu=eu+Math.imul(eO,tr)|0)+Math.imul(eM,e9)|0,ed=ed+Math.imul(eM,tr)|0,ea=ea+Math.imul(eE,ti)|0,eu=(eu=eu+Math.imul(eE,ta)|0)+Math.imul(eP,ti)|0,ed=ed+Math.imul(eP,ta)|0,ea=ea+Math.imul(eI,tc)|0,eu=(eu=eu+Math.imul(eI,tu)|0)+Math.imul(eR,tc)|0,ed=ed+Math.imul(eR,tu)|0,ea=ea+Math.imul(e_,tp)|0,eu=(eu=eu+Math.imul(e_,tf)|0)+Math.imul(ew,tp)|0,ed=ed+Math.imul(ew,tf)|0;var tO=(em+(ea=ea+Math.imul(ey,tg)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,ty)|0)+Math.imul(eC,tg)|0))<<13)|0;em=((ed=ed+Math.imul(eC,ty)|0)+(eu>>>13)|0)+(tO>>>26)|0,tO&=67108863,ea=Math.imul(ez,eZ),eu=(eu=Math.imul(ez,eQ))+Math.imul(eW,eZ)|0,ed=Math.imul(eW,eQ),ea=ea+Math.imul(eG,e0)|0,eu=(eu=eu+Math.imul(eG,e4)|0)+Math.imul(eH,e0)|0,ed=ed+Math.imul(eH,e4)|0,ea=ea+Math.imul(eB,e5)|0,eu=(eu=eu+Math.imul(eB,e8)|0)+Math.imul(eF,e5)|0,ed=ed+Math.imul(eF,e8)|0,ea=ea+Math.imul(eU,e9)|0,eu=(eu=eu+Math.imul(eU,tr)|0)+Math.imul(eL,e9)|0,ed=ed+Math.imul(eL,tr)|0,ea=ea+Math.imul(eO,ti)|0,eu=(eu=eu+Math.imul(eO,ta)|0)+Math.imul(eM,ti)|0,ed=ed+Math.imul(eM,ta)|0,ea=ea+Math.imul(eE,tc)|0,eu=(eu=eu+Math.imul(eE,tu)|0)+Math.imul(eP,tc)|0,ed=ed+Math.imul(eP,tu)|0,ea=ea+Math.imul(eI,tp)|0,eu=(eu=eu+Math.imul(eI,tf)|0)+Math.imul(eR,tp)|0,ed=ed+Math.imul(eR,tf)|0,ea=ea+Math.imul(e_,tg)|0,eu=(eu=eu+Math.imul(e_,ty)|0)+Math.imul(ew,tg)|0,ed=ed+Math.imul(ew,ty)|0;var tx=(em+(ea=ea+Math.imul(ey,tb)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tC)|0)+Math.imul(eC,tb)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tC)|0)+(eu>>>13)|0)+(tx>>>26)|0,tx&=67108863,ea=Math.imul(eJ,eZ),eu=(eu=Math.imul(eJ,eQ))+Math.imul(eY,eZ)|0,ed=Math.imul(eY,eQ),ea=ea+Math.imul(ez,e0)|0,eu=(eu=eu+Math.imul(ez,e4)|0)+Math.imul(eW,e0)|0,ed=ed+Math.imul(eW,e4)|0,ea=ea+Math.imul(eG,e5)|0,eu=(eu=eu+Math.imul(eG,e8)|0)+Math.imul(eH,e5)|0,ed=ed+Math.imul(eH,e8)|0,ea=ea+Math.imul(eB,e9)|0,eu=(eu=eu+Math.imul(eB,tr)|0)+Math.imul(eF,e9)|0,ed=ed+Math.imul(eF,tr)|0,ea=ea+Math.imul(eU,ti)|0,eu=(eu=eu+Math.imul(eU,ta)|0)+Math.imul(eL,ti)|0,ed=ed+Math.imul(eL,ta)|0,ea=ea+Math.imul(eO,tc)|0,eu=(eu=eu+Math.imul(eO,tu)|0)+Math.imul(eM,tc)|0,ed=ed+Math.imul(eM,tu)|0,ea=ea+Math.imul(eE,tp)|0,eu=(eu=eu+Math.imul(eE,tf)|0)+Math.imul(eP,tp)|0,ed=ed+Math.imul(eP,tf)|0,ea=ea+Math.imul(eI,tg)|0,eu=(eu=eu+Math.imul(eI,ty)|0)+Math.imul(eR,tg)|0,ed=ed+Math.imul(eR,ty)|0,ea=ea+Math.imul(e_,tb)|0,eu=(eu=eu+Math.imul(e_,tC)|0)+Math.imul(ew,tb)|0,ed=ed+Math.imul(ew,tC)|0;var tM=(em+(ea=ea+Math.imul(ey,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tw)|0)+Math.imul(eC,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tw)|0)+(eu>>>13)|0)+(tM>>>26)|0,tM&=67108863,ea=Math.imul(eJ,e0),eu=(eu=Math.imul(eJ,e4))+Math.imul(eY,e0)|0,ed=Math.imul(eY,e4),ea=ea+Math.imul(ez,e5)|0,eu=(eu=eu+Math.imul(ez,e8)|0)+Math.imul(eW,e5)|0,ed=ed+Math.imul(eW,e8)|0,ea=ea+Math.imul(eG,e9)|0,eu=(eu=eu+Math.imul(eG,tr)|0)+Math.imul(eH,e9)|0,ed=ed+Math.imul(eH,tr)|0,ea=ea+Math.imul(eB,ti)|0,eu=(eu=eu+Math.imul(eB,ta)|0)+Math.imul(eF,ti)|0,ed=ed+Math.imul(eF,ta)|0,ea=ea+Math.imul(eU,tc)|0,eu=(eu=eu+Math.imul(eU,tu)|0)+Math.imul(eL,tc)|0,ed=ed+Math.imul(eL,tu)|0,ea=ea+Math.imul(eO,tp)|0,eu=(eu=eu+Math.imul(eO,tf)|0)+Math.imul(eM,tp)|0,ed=ed+Math.imul(eM,tf)|0,ea=ea+Math.imul(eE,tg)|0,eu=(eu=eu+Math.imul(eE,ty)|0)+Math.imul(eP,tg)|0,ed=ed+Math.imul(eP,ty)|0,ea=ea+Math.imul(eI,tb)|0,eu=(eu=eu+Math.imul(eI,tC)|0)+Math.imul(eR,tb)|0,ed=ed+Math.imul(eR,tC)|0;var tD=(em+(ea=ea+Math.imul(e_,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(e_,tw)|0)+Math.imul(ew,t_)|0))<<13)|0;em=((ed=ed+Math.imul(ew,tw)|0)+(eu>>>13)|0)+(tD>>>26)|0,tD&=67108863,ea=Math.imul(eJ,e5),eu=(eu=Math.imul(eJ,e8))+Math.imul(eY,e5)|0,ed=Math.imul(eY,e8),ea=ea+Math.imul(ez,e9)|0,eu=(eu=eu+Math.imul(ez,tr)|0)+Math.imul(eW,e9)|0,ed=ed+Math.imul(eW,tr)|0,ea=ea+Math.imul(eG,ti)|0,eu=(eu=eu+Math.imul(eG,ta)|0)+Math.imul(eH,ti)|0,ed=ed+Math.imul(eH,ta)|0,ea=ea+Math.imul(eB,tc)|0,eu=(eu=eu+Math.imul(eB,tu)|0)+Math.imul(eF,tc)|0,ed=ed+Math.imul(eF,tu)|0,ea=ea+Math.imul(eU,tp)|0,eu=(eu=eu+Math.imul(eU,tf)|0)+Math.imul(eL,tp)|0,ed=ed+Math.imul(eL,tf)|0,ea=ea+Math.imul(eO,tg)|0,eu=(eu=eu+Math.imul(eO,ty)|0)+Math.imul(eM,tg)|0,ed=ed+Math.imul(eM,ty)|0,ea=ea+Math.imul(eE,tb)|0,eu=(eu=eu+Math.imul(eE,tC)|0)+Math.imul(eP,tb)|0,ed=ed+Math.imul(eP,tC)|0;var tU=(em+(ea=ea+Math.imul(eI,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eI,tw)|0)+Math.imul(eR,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eR,tw)|0)+(eu>>>13)|0)+(tU>>>26)|0,tU&=67108863,ea=Math.imul(eJ,e9),eu=(eu=Math.imul(eJ,tr))+Math.imul(eY,e9)|0,ed=Math.imul(eY,tr),ea=ea+Math.imul(ez,ti)|0,eu=(eu=eu+Math.imul(ez,ta)|0)+Math.imul(eW,ti)|0,ed=ed+Math.imul(eW,ta)|0,ea=ea+Math.imul(eG,tc)|0,eu=(eu=eu+Math.imul(eG,tu)|0)+Math.imul(eH,tc)|0,ed=ed+Math.imul(eH,tu)|0,ea=ea+Math.imul(eB,tp)|0,eu=(eu=eu+Math.imul(eB,tf)|0)+Math.imul(eF,tp)|0,ed=ed+Math.imul(eF,tf)|0,ea=ea+Math.imul(eU,tg)|0,eu=(eu=eu+Math.imul(eU,ty)|0)+Math.imul(eL,tg)|0,ed=ed+Math.imul(eL,ty)|0,ea=ea+Math.imul(eO,tb)|0,eu=(eu=eu+Math.imul(eO,tC)|0)+Math.imul(eM,tb)|0,ed=ed+Math.imul(eM,tC)|0;var tL=(em+(ea=ea+Math.imul(eE,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eE,tw)|0)+Math.imul(eP,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eP,tw)|0)+(eu>>>13)|0)+(tL>>>26)|0,tL&=67108863,ea=Math.imul(eJ,ti),eu=(eu=Math.imul(eJ,ta))+Math.imul(eY,ti)|0,ed=Math.imul(eY,ta),ea=ea+Math.imul(ez,tc)|0,eu=(eu=eu+Math.imul(ez,tu)|0)+Math.imul(eW,tc)|0,ed=ed+Math.imul(eW,tu)|0,ea=ea+Math.imul(eG,tp)|0,eu=(eu=eu+Math.imul(eG,tf)|0)+Math.imul(eH,tp)|0,ed=ed+Math.imul(eH,tf)|0,ea=ea+Math.imul(eB,tg)|0,eu=(eu=eu+Math.imul(eB,ty)|0)+Math.imul(eF,tg)|0,ed=ed+Math.imul(eF,ty)|0,ea=ea+Math.imul(eU,tb)|0,eu=(eu=eu+Math.imul(eU,tC)|0)+Math.imul(eL,tb)|0,ed=ed+Math.imul(eL,tC)|0;var tN=(em+(ea=ea+Math.imul(eO,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eO,tw)|0)+Math.imul(eM,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eM,tw)|0)+(eu>>>13)|0)+(tN>>>26)|0,tN&=67108863,ea=Math.imul(eJ,tc),eu=(eu=Math.imul(eJ,tu))+Math.imul(eY,tc)|0,ed=Math.imul(eY,tu),ea=ea+Math.imul(ez,tp)|0,eu=(eu=eu+Math.imul(ez,tf)|0)+Math.imul(eW,tp)|0,ed=ed+Math.imul(eW,tf)|0,ea=ea+Math.imul(eG,tg)|0,eu=(eu=eu+Math.imul(eG,ty)|0)+Math.imul(eH,tg)|0,ed=ed+Math.imul(eH,ty)|0,ea=ea+Math.imul(eB,tb)|0,eu=(eu=eu+Math.imul(eB,tC)|0)+Math.imul(eF,tb)|0,ed=ed+Math.imul(eF,tC)|0;var tq=(em+(ea=ea+Math.imul(eU,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eU,tw)|0)+Math.imul(eL,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eL,tw)|0)+(eu>>>13)|0)+(tq>>>26)|0,tq&=67108863,ea=Math.imul(eJ,tp),eu=(eu=Math.imul(eJ,tf))+Math.imul(eY,tp)|0,ed=Math.imul(eY,tf),ea=ea+Math.imul(ez,tg)|0,eu=(eu=eu+Math.imul(ez,ty)|0)+Math.imul(eW,tg)|0,ed=ed+Math.imul(eW,ty)|0,ea=ea+Math.imul(eG,tb)|0,eu=(eu=eu+Math.imul(eG,tC)|0)+Math.imul(eH,tb)|0,ed=ed+Math.imul(eH,tC)|0;var tB=(em+(ea=ea+Math.imul(eB,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eB,tw)|0)+Math.imul(eF,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eF,tw)|0)+(eu>>>13)|0)+(tB>>>26)|0,tB&=67108863,ea=Math.imul(eJ,tg),eu=(eu=Math.imul(eJ,ty))+Math.imul(eY,tg)|0,ed=Math.imul(eY,ty),ea=ea+Math.imul(ez,tb)|0,eu=(eu=eu+Math.imul(ez,tC)|0)+Math.imul(eW,tb)|0,ed=ed+Math.imul(eW,tC)|0;var tF=(em+(ea=ea+Math.imul(eG,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eG,tw)|0)+Math.imul(eH,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eH,tw)|0)+(eu>>>13)|0)+(tF>>>26)|0,tF&=67108863,ea=Math.imul(eJ,tb),eu=(eu=Math.imul(eJ,tC))+Math.imul(eY,tb)|0,ed=Math.imul(eY,tC);var tj=(em+(ea=ea+Math.imul(ez,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ez,tw)|0)+Math.imul(eW,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eW,tw)|0)+(eu>>>13)|0)+(tj>>>26)|0,tj&=67108863;var tG=(em+(ea=Math.imul(eJ,t_))|0)+((8191&(eu=(eu=Math.imul(eJ,tw))+Math.imul(eY,t_)|0))<<13)|0;return em=((ed=Math.imul(eY,tw))+(eu>>>13)|0)+(tG>>>26)|0,tG&=67108863,ef[0]=tA,ef[1]=tI,ef[2]=tR,ef[3]=tT,ef[4]=tE,ef[5]=tP,ef[6]=tk,ef[7]=tO,ef[8]=tx,ef[9]=tM,ef[10]=tD,ef[11]=tU,ef[12]=tL,ef[13]=tN,ef[14]=tq,ef[15]=tB,ef[16]=tF,ef[17]=tj,ef[18]=tG,0!==em&&(ef[19]=em,ei.length++),ei};function bigMulTo(et,eo,ei){ei.negative=eo.negative^et.negative,ei.length=et.length+eo.length;for(var ea=0,eu=0,ed=0;ed<ei.length-1;ed++){var eh=eu;eu=0;for(var ep=67108863&ea,ef=Math.min(ed,eo.length-1),em=Math.max(0,ed-et.length+1);em<=ef;em++){var eg=ed-em,ey=(0|et.words[eg])*(0|eo.words[em]),eC=67108863&ey;eh=eh+(ey/67108864|0)|0,ep=67108863&(eC=eC+ep|0),eu+=(eh=eh+(eC>>>26)|0)>>>26,eh&=67108863}ei.words[ed]=ep,ea=eh,eh=eu}return 0!==ea?ei.words[ed]=ea:ei.length--,ei.strip()}function jumboMulTo(et,eo,ei){return(new FFTM).mulp(et,eo,ei)}function FFTM(et,eo){this.x=et,this.y=eo}Math.imul||(o=smallMulTo),BN.prototype.mulTo=function(et,eo){var ei=this.length+et.length;return 10===this.length&&10===et.length?o(this,et,eo):ei<63?smallMulTo(this,et,eo):ei<1024?bigMulTo(this,et,eo):jumboMulTo(this,et,eo)},FFTM.prototype.makeRBT=function(et){for(var eo=Array(et),ei=BN.prototype._countBits(et)-1,ea=0;ea<et;ea++)eo[ea]=this.revBin(ea,ei,et);return eo},FFTM.prototype.revBin=function(et,eo,ei){if(0===et||et===ei-1)return et;for(var ea=0,eu=0;eu<eo;eu++)ea|=(1&et)<<eo-eu-1,et>>=1;return ea},FFTM.prototype.permute=function(et,eo,ei,ea,eu,ed){for(var eh=0;eh<ed;eh++)ea[eh]=eo[et[eh]],eu[eh]=ei[et[eh]]},FFTM.prototype.transform=function(et,eo,ei,ea,eu,ed){this.permute(ed,et,eo,ei,ea,eu);for(var eh=1;eh<eu;eh<<=1)for(var ep=eh<<1,ef=Math.cos(2*Math.PI/ep),em=Math.sin(2*Math.PI/ep),eg=0;eg<eu;eg+=ep)for(var ey=ef,eC=em,eS=0;eS<eh;eS++){var e_=ei[eg+eS],ew=ea[eg+eS],eA=ei[eg+eS+eh],eI=ea[eg+eS+eh],eR=ey*eA-eC*eI;eI=ey*eI+eC*eA,eA=eR,ei[eg+eS]=e_+eA,ea[eg+eS]=ew+eI,ei[eg+eS+eh]=e_-eA,ea[eg+eS+eh]=ew-eI,eS!==ep&&(eR=ef*ey-em*eC,eC=ef*eC+em*ey,ey=eR)}},FFTM.prototype.guessLen13b=function(et,eo){var ei=1|Math.max(eo,et),ea=1&ei,eu=0;for(ei=ei/2|0;ei;ei>>>=1)eu++;return 1<<eu+1+ea},FFTM.prototype.conjugate=function(et,eo,ei){if(!(ei<=1))for(var ea=0;ea<ei/2;ea++){var eu=et[ea];et[ea]=et[ei-ea-1],et[ei-ea-1]=eu,eu=eo[ea],eo[ea]=-eo[ei-ea-1],eo[ei-ea-1]=-eu}},FFTM.prototype.normalize13b=function(et,eo){for(var ei=0,ea=0;ea<eo/2;ea++){var eu=8192*Math.round(et[2*ea+1]/eo)+Math.round(et[2*ea]/eo)+ei;et[ea]=67108863&eu,ei=eu<67108864?0:eu/67108864|0}return et},FFTM.prototype.convert13b=function(et,eo,ei,ea){for(var eu=0,ed=0;ed<eo;ed++)eu+=0|et[ed],ei[2*ed]=8191&eu,eu>>>=13,ei[2*ed+1]=8191&eu,eu>>>=13;for(ed=2*eo;ed<ea;++ed)ei[ed]=0;assert(0===eu),assert((-8192&eu)==0)},FFTM.prototype.stub=function(et){for(var eo=Array(et),ei=0;ei<et;ei++)eo[ei]=0;return eo},FFTM.prototype.mulp=function(et,eo,ei){var ea=2*this.guessLen13b(et.length,eo.length),eu=this.makeRBT(ea),ed=this.stub(ea),eh=Array(ea),ep=Array(ea),ef=Array(ea),em=Array(ea),eg=Array(ea),ey=Array(ea),eC=ei.words;eC.length=ea,this.convert13b(et.words,et.length,eh,ea),this.convert13b(eo.words,eo.length,em,ea),this.transform(eh,ed,ep,ef,ea,eu),this.transform(em,ed,eg,ey,ea,eu);for(var eS=0;eS<ea;eS++){var e_=ep[eS]*eg[eS]-ef[eS]*ey[eS];ef[eS]=ep[eS]*ey[eS]+ef[eS]*eg[eS],ep[eS]=e_}return this.conjugate(ep,ef,ea),this.transform(ep,ef,eC,ed,ea,eu),this.conjugate(eC,ed,ea),this.normalize13b(eC,ea),ei.negative=et.negative^eo.negative,ei.length=et.length+eo.length,ei.strip()},BN.prototype.mul=function(et){var eo=new BN(null);return eo.words=Array(this.length+et.length),this.mulTo(et,eo)},BN.prototype.mulf=function(et){var eo=new BN(null);return eo.words=Array(this.length+et.length),jumboMulTo(this,et,eo)},BN.prototype.imul=function(et){return this.clone().mulTo(et,this)},BN.prototype.imuln=function(et){assert("number"==typeof et),assert(et<67108864);for(var eo=0,ei=0;ei<this.length;ei++){var ea=(0|this.words[ei])*et,eu=(67108863&ea)+(67108863&eo);eo>>=26,eo+=(ea/67108864|0)+(eu>>>26),this.words[ei]=67108863&eu}return 0!==eo&&(this.words[ei]=eo,this.length++),this},BN.prototype.muln=function(et){return this.clone().imuln(et)},BN.prototype.sqr=function(){return this.mul(this)},BN.prototype.isqr=function(){return this.imul(this.clone())},BN.prototype.pow=function(et){var eo=toBitArray(et);if(0===eo.length)return new BN(1);for(var ei=this,ea=0;ea<eo.length&&0===eo[ea];ea++,ei=ei.sqr());if(++ea<eo.length)for(var eu=ei.sqr();ea<eo.length;ea++,eu=eu.sqr())0!==eo[ea]&&(ei=ei.mul(eu));return ei},BN.prototype.iushln=function(et){assert("number"==typeof et&&et>=0);var eo,ei=et%26,ea=(et-ei)/26,eu=67108863>>>26-ei<<26-ei;if(0!==ei){var ed=0;for(eo=0;eo<this.length;eo++){var eh=this.words[eo]&eu,ep=(0|this.words[eo])-eh<<ei;this.words[eo]=ep|ed,ed=eh>>>26-ei}ed&&(this.words[eo]=ed,this.length++)}if(0!==ea){for(eo=this.length-1;eo>=0;eo--)this.words[eo+ea]=this.words[eo];for(eo=0;eo<ea;eo++)this.words[eo]=0;this.length+=ea}return this.strip()},BN.prototype.ishln=function(et){return assert(0===this.negative),this.iushln(et)},BN.prototype.iushrn=function(et,eo,ei){assert("number"==typeof et&&et>=0),ea=eo?(eo-eo%26)/26:0;var ea,eu=et%26,ed=Math.min((et-eu)/26,this.length),eh=67108863^67108863>>>eu<<eu,ep=ei;if(ea-=ed,ea=Math.max(0,ea),ep){for(var ef=0;ef<ed;ef++)ep.words[ef]=this.words[ef];ep.length=ed}if(0===ed);else if(this.length>ed)for(this.length-=ed,ef=0;ef<this.length;ef++)this.words[ef]=this.words[ef+ed];else this.words[0]=0,this.length=1;var em=0;for(ef=this.length-1;ef>=0&&(0!==em||ef>=ea);ef--){var eg=0|this.words[ef];this.words[ef]=em<<26-eu|eg>>>eu,em=eg&eh}return ep&&0!==em&&(ep.words[ep.length++]=em),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},BN.prototype.ishrn=function(et,eo,ei){return assert(0===this.negative),this.iushrn(et,eo,ei)},BN.prototype.shln=function(et){return this.clone().ishln(et)},BN.prototype.ushln=function(et){return this.clone().iushln(et)},BN.prototype.shrn=function(et){return this.clone().ishrn(et)},BN.prototype.ushrn=function(et){return this.clone().iushrn(et)},BN.prototype.testn=function(et){assert("number"==typeof et&&et>=0);var eo=et%26,ei=(et-eo)/26,ea=1<<eo;return!(this.length<=ei)&&!!(this.words[ei]&ea)},BN.prototype.imaskn=function(et){assert("number"==typeof et&&et>=0);var eo=et%26,ei=(et-eo)/26;if(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=ei)return this;if(0!==eo&&ei++,this.length=Math.min(ei,this.length),0!==eo){var ea=67108863^67108863>>>eo<<eo;this.words[this.length-1]&=ea}return this.strip()},BN.prototype.maskn=function(et){return this.clone().imaskn(et)},BN.prototype.iaddn=function(et){return(assert("number"==typeof et),assert(et<67108864),et<0)?this.isubn(-et):0!==this.negative?(1===this.length&&(0|this.words[0])<et?(this.words[0]=et-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(et),this.negative=1),this):this._iaddn(et)},BN.prototype._iaddn=function(et){this.words[0]+=et;for(var eo=0;eo<this.length&&this.words[eo]>=67108864;eo++)this.words[eo]-=67108864,eo===this.length-1?this.words[eo+1]=1:this.words[eo+1]++;return this.length=Math.max(this.length,eo+1),this},BN.prototype.isubn=function(et){if(assert("number"==typeof et),assert(et<67108864),et<0)return this.iaddn(-et);if(0!==this.negative)return this.negative=0,this.iaddn(et),this.negative=1,this;if(this.words[0]-=et,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var eo=0;eo<this.length&&this.words[eo]<0;eo++)this.words[eo]+=67108864,this.words[eo+1]-=1;return this.strip()},BN.prototype.addn=function(et){return this.clone().iaddn(et)},BN.prototype.subn=function(et){return this.clone().isubn(et)},BN.prototype.iabs=function(){return this.negative=0,this},BN.prototype.abs=function(){return this.clone().iabs()},BN.prototype._ishlnsubmul=function(et,eo,ei){var ea,eu,ed=et.length+ei;this._expand(ed);var eh=0;for(ea=0;ea<et.length;ea++){eu=(0|this.words[ea+ei])+eh;var ep=(0|et.words[ea])*eo;eu-=67108863&ep,eh=(eu>>26)-(ep/67108864|0),this.words[ea+ei]=67108863&eu}for(;ea<this.length-ei;ea++)eh=(eu=(0|this.words[ea+ei])+eh)>>26,this.words[ea+ei]=67108863&eu;if(0===eh)return this.strip();for(assert(-1===eh),eh=0,ea=0;ea<this.length;ea++)eh=(eu=-(0|this.words[ea])+eh)>>26,this.words[ea]=67108863&eu;return this.negative=1,this.strip()},BN.prototype._wordDiv=function(et,eo){var ei,ea=this.length-et.length,eu=this.clone(),ed=et,eh=0|ed.words[ed.length-1];0!=(ea=26-this._countBits(eh))&&(ed=ed.ushln(ea),eu.iushln(ea),eh=0|ed.words[ed.length-1]);var ep=eu.length-ed.length;if("mod"!==eo){(ei=new BN(null)).length=ep+1,ei.words=Array(ei.length);for(var ef=0;ef<ei.length;ef++)ei.words[ef]=0}var em=eu.clone()._ishlnsubmul(ed,1,ep);0===em.negative&&(eu=em,ei&&(ei.words[ep]=1));for(var eg=ep-1;eg>=0;eg--){var ey=(0|eu.words[ed.length+eg])*67108864+(0|eu.words[ed.length+eg-1]);for(ey=Math.min(ey/eh|0,67108863),eu._ishlnsubmul(ed,ey,eg);0!==eu.negative;)ey--,eu.negative=0,eu._ishlnsubmul(ed,1,eg),eu.isZero()||(eu.negative^=1);ei&&(ei.words[eg]=ey)}return ei&&ei.strip(),eu.strip(),"div"!==eo&&0!==ea&&eu.iushrn(ea),{div:ei||null,mod:eu}},BN.prototype.divmod=function(et,eo,ei){var ea,eu,ed;return(assert(!et.isZero()),this.isZero())?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===et.negative?(ed=this.neg().divmod(et,eo),"mod"!==eo&&(ea=ed.div.neg()),"div"!==eo&&(eu=ed.mod.neg(),ei&&0!==eu.negative&&eu.iadd(et)),{div:ea,mod:eu}):0===this.negative&&0!==et.negative?(ed=this.divmod(et.neg(),eo),"mod"!==eo&&(ea=ed.div.neg()),{div:ea,mod:ed.mod}):(this.negative&et.negative)!=0?(ed=this.neg().divmod(et.neg(),eo),"div"!==eo&&(eu=ed.mod.neg(),ei&&0!==eu.negative&&eu.isub(et)),{div:ed.div,mod:eu}):et.length>this.length||0>this.cmp(et)?{div:new BN(0),mod:this}:1===et.length?"div"===eo?{div:this.divn(et.words[0]),mod:null}:"mod"===eo?{div:null,mod:new BN(this.modn(et.words[0]))}:{div:this.divn(et.words[0]),mod:new BN(this.modn(et.words[0]))}:this._wordDiv(et,eo)},BN.prototype.div=function(et){return this.divmod(et,"div",!1).div},BN.prototype.mod=function(et){return this.divmod(et,"mod",!1).mod},BN.prototype.umod=function(et){return this.divmod(et,"mod",!0).mod},BN.prototype.divRound=function(et){var eo=this.divmod(et);if(eo.mod.isZero())return eo.div;var ei=0!==eo.div.negative?eo.mod.isub(et):eo.mod,ea=et.ushrn(1),eu=et.andln(1),ed=ei.cmp(ea);return ed<0||1===eu&&0===ed?eo.div:0!==eo.div.negative?eo.div.isubn(1):eo.div.iaddn(1)},BN.prototype.modn=function(et){assert(et<=67108863);for(var eo=67108864%et,ei=0,ea=this.length-1;ea>=0;ea--)ei=(eo*ei+(0|this.words[ea]))%et;return ei},BN.prototype.idivn=function(et){assert(et<=67108863);for(var eo=0,ei=this.length-1;ei>=0;ei--){var ea=(0|this.words[ei])+67108864*eo;this.words[ei]=ea/et|0,eo=ea%et}return this.strip()},BN.prototype.divn=function(et){return this.clone().idivn(et)},BN.prototype.egcd=function(et){assert(0===et.negative),assert(!et.isZero());var eo=this,ei=et.clone();eo=0!==eo.negative?eo.umod(et):eo.clone();for(var ea=new BN(1),eu=new BN(0),ed=new BN(0),eh=new BN(1),ep=0;eo.isEven()&&ei.isEven();)eo.iushrn(1),ei.iushrn(1),++ep;for(var ef=ei.clone(),em=eo.clone();!eo.isZero();){for(var eg=0,ey=1;(eo.words[0]&ey)==0&&eg<26;++eg,ey<<=1);if(eg>0)for(eo.iushrn(eg);eg-- >0;)(ea.isOdd()||eu.isOdd())&&(ea.iadd(ef),eu.isub(em)),ea.iushrn(1),eu.iushrn(1);for(var eC=0,eS=1;(ei.words[0]&eS)==0&&eC<26;++eC,eS<<=1);if(eC>0)for(ei.iushrn(eC);eC-- >0;)(ed.isOdd()||eh.isOdd())&&(ed.iadd(ef),eh.isub(em)),ed.iushrn(1),eh.iushrn(1);eo.cmp(ei)>=0?(eo.isub(ei),ea.isub(ed),eu.isub(eh)):(ei.isub(eo),ed.isub(ea),eh.isub(eu))}return{a:ed,b:eh,gcd:ei.iushln(ep)}},BN.prototype._invmp=function(et){assert(0===et.negative),assert(!et.isZero());var eo,ei=this,ea=et.clone();ei=0!==ei.negative?ei.umod(et):ei.clone();for(var eu=new BN(1),ed=new BN(0),eh=ea.clone();ei.cmpn(1)>0&&ea.cmpn(1)>0;){for(var ep=0,ef=1;(ei.words[0]&ef)==0&&ep<26;++ep,ef<<=1);if(ep>0)for(ei.iushrn(ep);ep-- >0;)eu.isOdd()&&eu.iadd(eh),eu.iushrn(1);for(var em=0,eg=1;(ea.words[0]&eg)==0&&em<26;++em,eg<<=1);if(em>0)for(ea.iushrn(em);em-- >0;)ed.isOdd()&&ed.iadd(eh),ed.iushrn(1);ei.cmp(ea)>=0?(ei.isub(ea),eu.isub(ed)):(ea.isub(ei),ed.isub(eu))}return 0>(eo=0===ei.cmpn(1)?eu:ed).cmpn(0)&&eo.iadd(et),eo},BN.prototype.gcd=function(et){if(this.isZero())return et.abs();if(et.isZero())return this.abs();var eo=this.clone(),ei=et.clone();eo.negative=0,ei.negative=0;for(var ea=0;eo.isEven()&&ei.isEven();ea++)eo.iushrn(1),ei.iushrn(1);for(;;){for(;eo.isEven();)eo.iushrn(1);for(;ei.isEven();)ei.iushrn(1);var eu=eo.cmp(ei);if(eu<0){var ed=eo;eo=ei,ei=ed}else if(0===eu||0===ei.cmpn(1))break;eo.isub(ei)}return ei.iushln(ea)},BN.prototype.invm=function(et){return this.egcd(et).a.umod(et)},BN.prototype.isEven=function(){return(1&this.words[0])==0},BN.prototype.isOdd=function(){return(1&this.words[0])==1},BN.prototype.andln=function(et){return this.words[0]&et},BN.prototype.bincn=function(et){assert("number"==typeof et);var eo=et%26,ei=(et-eo)/26,ea=1<<eo;if(this.length<=ei)return this._expand(ei+1),this.words[ei]|=ea,this;for(var eu=ea,ed=ei;0!==eu&&ed<this.length;ed++){var eh=0|this.words[ed];eh+=eu,eu=eh>>>26,eh&=67108863,this.words[ed]=eh}return 0!==eu&&(this.words[ed]=eu,this.length++),this},BN.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function(et){var eo,ei=et<0;if(0!==this.negative&&!ei)return -1;if(0===this.negative&&ei)return 1;if(this.strip(),this.length>1)eo=1;else{ei&&(et=-et),assert(et<=67108863,"Number is too big");var ea=0|this.words[0];eo=ea===et?0:ea<et?-1:1}return 0!==this.negative?0|-eo:eo},BN.prototype.cmp=function(et){if(0!==this.negative&&0===et.negative)return -1;if(0===this.negative&&0!==et.negative)return 1;var eo=this.ucmp(et);return 0!==this.negative?0|-eo:eo},BN.prototype.ucmp=function(et){if(this.length>et.length)return 1;if(this.length<et.length)return -1;for(var eo=0,ei=this.length-1;ei>=0;ei--){var ea=0|this.words[ei],eu=0|et.words[ei];if(ea!==eu){ea<eu?eo=-1:ea>eu&&(eo=1);break}}return eo},BN.prototype.gtn=function(et){return 1===this.cmpn(et)},BN.prototype.gt=function(et){return 1===this.cmp(et)},BN.prototype.gten=function(et){return this.cmpn(et)>=0},BN.prototype.gte=function(et){return this.cmp(et)>=0},BN.prototype.ltn=function(et){return -1===this.cmpn(et)},BN.prototype.lt=function(et){return -1===this.cmp(et)},BN.prototype.lten=function(et){return 0>=this.cmpn(et)},BN.prototype.lte=function(et){return 0>=this.cmp(et)},BN.prototype.eqn=function(et){return 0===this.cmpn(et)},BN.prototype.eq=function(et){return 0===this.cmp(et)},BN.red=function(et){return new Red(et)},BN.prototype.toRed=function(et){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),et.convertTo(this)._forceRed(et)},BN.prototype.fromRed=function(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function(et){return this.red=et,this},BN.prototype.forceRed=function(et){return assert(!this.red,"Already a number in reduction context"),this._forceRed(et)},BN.prototype.redAdd=function(et){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,et)},BN.prototype.redIAdd=function(et){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,et)},BN.prototype.redSub=function(et){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,et)},BN.prototype.redISub=function(et){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,et)},BN.prototype.redShl=function(et){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,et)},BN.prototype.redMul=function(et){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,et),this.red.mul(this,et)},BN.prototype.redIMul=function(et){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,et),this.red.imul(this,et)},BN.prototype.redSqr=function(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function(et){return assert(this.red&&!et.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,et)};var ep={k256:null,p224:null,p192:null,p25519:null};function MPrime(et,eo){this.name=et,this.p=new BN(eo,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(et){if("string"==typeof et){var eo=BN._prime(et);this.m=eo.p,this.prime=eo}else assert(et.gtn(1),"modulus must be greater than 1"),this.m=et,this.prime=null}function Mont(et){Red.call(this,et),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}MPrime.prototype._tmp=function(){var et=new BN(null);return et.words=Array(Math.ceil(this.n/13)),et},MPrime.prototype.ireduce=function(et){var eo,ei=et;do this.split(ei,this.tmp),eo=(ei=(ei=this.imulK(ei)).iadd(this.tmp)).bitLength();while(eo>this.n);var ea=eo<this.n?-1:ei.ucmp(this.p);return 0===ea?(ei.words[0]=0,ei.length=1):ea>0?ei.isub(this.p):void 0!==ei.strip?ei.strip():ei._strip(),ei},MPrime.prototype.split=function(et,eo){et.iushrn(this.n,0,eo)},MPrime.prototype.imulK=function(et){return et.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function(et,eo){for(var ei=4194303,ea=Math.min(et.length,9),eu=0;eu<ea;eu++)eo.words[eu]=et.words[eu];if(eo.length=ea,et.length<=9){et.words[0]=0,et.length=1;return}var ed=et.words[9];for(eu=10,eo.words[eo.length++]=ed&ei;eu<et.length;eu++){var eh=0|et.words[eu];et.words[eu-10]=(eh&ei)<<4|ed>>>22,ed=eh}ed>>>=22,et.words[eu-10]=ed,0===ed&&et.length>10?et.length-=10:et.length-=9},K256.prototype.imulK=function(et){et.words[et.length]=0,et.words[et.length+1]=0,et.length+=2;for(var eo=0,ei=0;ei<et.length;ei++){var ea=0|et.words[ei];eo+=977*ea,et.words[ei]=67108863&eo,eo=64*ea+(eo/67108864|0)}return 0===et.words[et.length-1]&&(et.length--,0===et.words[et.length-1]&&et.length--),et},inherits(P224,MPrime),inherits(P192,MPrime),inherits(P25519,MPrime),P25519.prototype.imulK=function(et){for(var eo=0,ei=0;ei<et.length;ei++){var ea=(0|et.words[ei])*19+eo,eu=67108863&ea;ea>>>=26,et.words[ei]=eu,eo=ea}return 0!==eo&&(et.words[et.length++]=eo),et},BN._prime=function(et){var eo;if(ep[et])return ep[et];if("k256"===et)eo=new K256;else if("p224"===et)eo=new P224;else if("p192"===et)eo=new P192;else if("p25519"===et)eo=new P25519;else throw Error("Unknown prime "+et);return ep[et]=eo,eo},Red.prototype._verify1=function(et){assert(0===et.negative,"red works only with positives"),assert(et.red,"red works only with red numbers")},Red.prototype._verify2=function(et,eo){assert((et.negative|eo.negative)==0,"red works only with positives"),assert(et.red&&et.red===eo.red,"red works only with red numbers")},Red.prototype.imod=function(et){return this.prime?this.prime.ireduce(et)._forceRed(this):et.umod(this.m)._forceRed(this)},Red.prototype.neg=function(et){return et.isZero()?et.clone():this.m.sub(et)._forceRed(this)},Red.prototype.add=function(et,eo){this._verify2(et,eo);var ei=et.add(eo);return ei.cmp(this.m)>=0&&ei.isub(this.m),ei._forceRed(this)},Red.prototype.iadd=function(et,eo){this._verify2(et,eo);var ei=et.iadd(eo);return ei.cmp(this.m)>=0&&ei.isub(this.m),ei},Red.prototype.sub=function(et,eo){this._verify2(et,eo);var ei=et.sub(eo);return 0>ei.cmpn(0)&&ei.iadd(this.m),ei._forceRed(this)},Red.prototype.isub=function(et,eo){this._verify2(et,eo);var ei=et.isub(eo);return 0>ei.cmpn(0)&&ei.iadd(this.m),ei},Red.prototype.shl=function(et,eo){return this._verify1(et),this.imod(et.ushln(eo))},Red.prototype.imul=function(et,eo){return this._verify2(et,eo),this.imod(et.imul(eo))},Red.prototype.mul=function(et,eo){return this._verify2(et,eo),this.imod(et.mul(eo))},Red.prototype.isqr=function(et){return this.imul(et,et.clone())},Red.prototype.sqr=function(et){return this.mul(et,et)},Red.prototype.sqrt=function(et){if(et.isZero())return et.clone();var eo=this.m.andln(3);if(assert(eo%2==1),3===eo){var ei=this.m.add(new BN(1)).iushrn(2);return this.pow(et,ei)}for(var ea=this.m.subn(1),eu=0;!ea.isZero()&&0===ea.andln(1);)eu++,ea.iushrn(1);assert(!ea.isZero());var ed=new BN(1).toRed(this),eh=ed.redNeg(),ep=this.m.subn(1).iushrn(1),ef=this.m.bitLength();for(ef=new BN(2*ef*ef).toRed(this);0!==this.pow(ef,ep).cmp(eh);)ef.redIAdd(eh);for(var em=this.pow(ef,ea),eg=this.pow(et,ea.addn(1).iushrn(1)),ey=this.pow(et,ea),eC=eu;0!==ey.cmp(ed);){for(var eS=ey,e_=0;0!==eS.cmp(ed);e_++)eS=eS.redSqr();assert(e_<eC);var ew=this.pow(em,new BN(1).iushln(eC-e_-1));eg=eg.redMul(ew),em=ew.redSqr(),ey=ey.redMul(em),eC=e_}return eg},Red.prototype.invm=function(et){var eo=et._invmp(this.m);return 0!==eo.negative?(eo.negative=0,this.imod(eo).redNeg()):this.imod(eo)},Red.prototype.pow=function(et,eo){if(eo.isZero())return new BN(1).toRed(this);if(0===eo.cmpn(1))return et.clone();var ei=4,ea=Array(16);ea[0]=new BN(1).toRed(this),ea[1]=et;for(var eu=2;eu<ea.length;eu++)ea[eu]=this.mul(ea[eu-1],et);var ed=ea[0],eh=0,ep=0,ef=eo.bitLength()%26;for(0===ef&&(ef=26),eu=eo.length-1;eu>=0;eu--){for(var em=eo.words[eu],eg=ef-1;eg>=0;eg--){var ey=em>>eg&1;if(ed!==ea[0]&&(ed=this.sqr(ed)),0===ey&&0===eh){ep=0;continue}eh<<=1,eh|=ey,(++ep===ei||0===eu&&0===eg)&&(ed=this.mul(ed,ea[eh]),ep=0,eh=0)}ef=26}return ed},Red.prototype.convertTo=function(et){var eo=et.umod(this.m);return eo===et?eo.clone():eo},Red.prototype.convertFrom=function(et){var eo=et.clone();return eo.red=null,eo},BN.mont=function(et){return new Mont(et)},inherits(Mont,Red),Mont.prototype.convertTo=function(et){return this.imod(et.ushln(this.shift))},Mont.prototype.convertFrom=function(et){var eo=this.imod(et.mul(this.rinv));return eo.red=null,eo},Mont.prototype.imul=function(et,eo){if(et.isZero()||eo.isZero())return et.words[0]=0,et.length=1,et;var ei=et.imul(eo),ea=ei.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),eu=ei.isub(ea).iushrn(this.shift),ed=eu;return eu.cmp(this.m)>=0?ed=eu.isub(this.m):0>eu.cmpn(0)&&(ed=eu.iadd(this.m)),ed._forceRed(this)},Mont.prototype.mul=function(et,eo){if(et.isZero()||eo.isZero())return new BN(0)._forceRed(this);var ei=et.mul(eo),ea=ei.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),eu=ei.isub(ea).iushrn(this.shift),ed=eu;return eu.cmp(this.m)>=0?ed=eu.isub(this.m):0>eu.cmpn(0)&&(ed=eu.iadd(this.m)),ed._forceRed(this)},Mont.prototype.invm=function(et){return this.imod(et._invmp(this.m).mul(this.r2))._forceRed(this)}}(et=ei.nmd(et),this)},1670:function(et,eo,ei){!function(et,eo){"use strict";function assert(et,eo){if(!et)throw Error(eo||"Assertion failed")}function inherits(et,eo){et.super_=eo;var TempCtor=function(){};TempCtor.prototype=eo.prototype,et.prototype=new TempCtor,et.prototype.constructor=et}function BN(et,eo,ei){if(BN.isBN(et))return et;this.negative=0,this.words=null,this.length=0,this.red=null,null!==et&&(("le"===eo||"be"===eo)&&(ei=eo,eo=10),this._init(et||0,eo||10,ei||"be"))}"object"==typeof et?et.exports=BN:eo.BN=BN,BN.BN=BN,BN.wordSize=26;try{ea=ei(4300).Buffer}catch(et){}function parseHex(et,eo,ei){for(var ea=0,eu=Math.min(et.length,ei),ed=0,eh=eo;eh<eu;eh++){var ep,ef=et.charCodeAt(eh)-48;ea<<=4,ea|=ep=ef>=49&&ef<=54?ef-49+10:ef>=17&&ef<=22?ef-17+10:ef,ed|=ep}return assert(!(240&ed),"Invalid character in "+et),ea}function parseBase(et,eo,ei,ea){for(var eu=0,ed=0,eh=Math.min(et.length,ei),ep=eo;ep<eh;ep++){var ef=et.charCodeAt(ep)-48;eu*=ea,ed=ef>=49?ef-49+10:ef>=17?ef-17+10:ef,assert(ef>=0&&ed<ea,"Invalid character"),eu+=ed}return eu}function move(et,eo){et.words=eo.words,et.length=eo.length,et.negative=eo.negative,et.red=eo.red}function inspect(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}BN.isBN=function(et){return et instanceof BN||null!==et&&"object"==typeof et&&et.constructor.wordSize===BN.wordSize&&Array.isArray(et.words)},BN.max=function(et,eo){return et.cmp(eo)>0?et:eo},BN.min=function(et,eo){return 0>et.cmp(eo)?et:eo},BN.prototype._init=function(et,eo,ei){if("number"==typeof et)return this._initNumber(et,eo,ei);if("object"==typeof et)return this._initArray(et,eo,ei);"hex"===eo&&(eo=16),assert(eo===(0|eo)&&eo>=2&&eo<=36);var ea=0;"-"===(et=et.toString().replace(/\s+/g,""))[0]&&ea++,16===eo?this._parseHex(et,ea):this._parseBase(et,eo,ea),"-"===et[0]&&(this.negative=1),this._strip(),"le"===ei&&this._initArray(this.toArray(),eo,ei)},BN.prototype._initNumber=function(et,eo,ei){et<0&&(this.negative=1,et=-et),et<67108864?(this.words=[67108863&et],this.length=1):et<4503599627370496?(this.words=[67108863&et,et/67108864&67108863],this.length=2):(assert(et<9007199254740992),this.words=[67108863&et,et/67108864&67108863,1],this.length=3),"le"===ei&&this._initArray(this.toArray(),eo,ei)},BN.prototype._initArray=function(et,eo,ei){if(assert("number"==typeof et.length),et.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(et.length/3),this.words=Array(this.length);for(var ea,eu,ed=0;ed<this.length;ed++)this.words[ed]=0;var eh=0;if("be"===ei)for(ed=et.length-1,ea=0;ed>=0;ed-=3)eu=et[ed]|et[ed-1]<<8|et[ed-2]<<16,this.words[ea]|=eu<<eh&67108863,this.words[ea+1]=eu>>>26-eh&67108863,(eh+=24)>=26&&(eh-=26,ea++);else if("le"===ei)for(ed=0,ea=0;ed<et.length;ed+=3)eu=et[ed]|et[ed+1]<<8|et[ed+2]<<16,this.words[ea]|=eu<<eh&67108863,this.words[ea+1]=eu>>>26-eh&67108863,(eh+=24)>=26&&(eh-=26,ea++);return this._strip()},BN.prototype._parseHex=function(et,eo){this.length=Math.ceil((et.length-eo)/6),this.words=Array(this.length);for(var ei,ea,eu=0;eu<this.length;eu++)this.words[eu]=0;var ed=0;for(eu=et.length-6,ei=0;eu>=eo;eu-=6)ea=parseHex(et,eu,eu+6),this.words[ei]|=ea<<ed&67108863,this.words[ei+1]|=ea>>>26-ed&4194303,(ed+=24)>=26&&(ed-=26,ei++);eu+6!==eo&&(ea=parseHex(et,eo,eu+6),this.words[ei]|=ea<<ed&67108863,this.words[ei+1]|=ea>>>26-ed&4194303),this._strip()},BN.prototype._parseBase=function(et,eo,ei){this.words=[0],this.length=1;for(var ea=0,eu=1;eu<=67108863;eu*=eo)ea++;ea--,eu=eu/eo|0;for(var ed=et.length-ei,eh=ed%ea,ep=Math.min(ed,ed-eh)+ei,ef=0,em=ei;em<ep;em+=ea)ef=parseBase(et,em,em+ea,eo),this.imuln(eu),this.words[0]+ef<67108864?this.words[0]+=ef:this._iaddn(ef);if(0!==eh){var eg=1;for(ef=parseBase(et,em,et.length,eo),em=0;em<eh;em++)eg*=eo;this.imuln(eg),this.words[0]+ef<67108864?this.words[0]+=ef:this._iaddn(ef)}},BN.prototype.copy=function(et){et.words=Array(this.length);for(var eo=0;eo<this.length;eo++)et.words[eo]=this.words[eo];et.length=this.length,et.negative=this.negative,et.red=this.red},BN.prototype._move=function(et){move(et,this)},BN.prototype.clone=function(){var et=new BN(null);return this.copy(et),et},BN.prototype._expand=function(et){for(;this.length<et;)this.words[this.length++]=0;return this},BN.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect:BN.prototype.inspect=inspect;var ea,eu=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ed=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],eh=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function(et,eo){if(eo=0|eo||1,16===(et=et||10)||"hex"===et){ei="";for(var ei,ea=0,ep=0,ef=0;ef<this.length;ef++){var em=this.words[ef],eg=((em<<ea|ep)&16777215).toString(16);ei=0!=(ep=em>>>24-ea&16777215)||ef!==this.length-1?eu[6-eg.length]+eg+ei:eg+ei,(ea+=2)>=26&&(ea-=26,ef--)}for(0!==ep&&(ei=ep.toString(16)+ei);ei.length%eo!=0;)ei="0"+ei;return 0!==this.negative&&(ei="-"+ei),ei}if(et===(0|et)&&et>=2&&et<=36){var ey=ed[et],eC=eh[et];ei="";var eS=this.clone();for(eS.negative=0;!eS.isZero();){var e_=eS.modrn(eC).toString(et);ei=(eS=eS.idivn(eC)).isZero()?e_+ei:eu[ey-e_.length]+e_+ei}for(this.isZero()&&(ei="0"+ei);ei.length%eo!=0;)ei="0"+ei;return 0!==this.negative&&(ei="-"+ei),ei}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function(){var et=this.words[0];return 2===this.length?et+=67108864*this.words[1]:3===this.length&&1===this.words[2]?et+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-et:et},BN.prototype.toJSON=function(){return this.toString(16,2)},ea&&(BN.prototype.toBuffer=function(et,eo){return this.toArrayLike(ea,et,eo)}),BN.prototype.toArray=function(et,eo){return this.toArrayLike(Array,et,eo)};var o=function(et,eo){return et.allocUnsafe?et.allocUnsafe(eo):new et(eo)};function toBitArray(et){for(var eo=Array(et.bitLength()),ei=0;ei<eo.length;ei++){var ea=ei/26|0,eu=ei%26;eo[ei]=et.words[ea]>>>eu&1}return eo}function smallMulTo(et,eo,ei){ei.negative=eo.negative^et.negative;var ea=et.length+eo.length|0;ei.length=ea,ea=ea-1|0;var eu=0|et.words[0],ed=0|eo.words[0],eh=eu*ed,ep=67108863&eh,ef=eh/67108864|0;ei.words[0]=ep;for(var em=1;em<ea;em++){for(var eg=ef>>>26,ey=67108863&ef,eC=Math.min(em,eo.length-1),eS=Math.max(0,em-et.length+1);eS<=eC;eS++){var e_=em-eS|0;eg+=(eh=(eu=0|et.words[e_])*(ed=0|eo.words[eS])+ey)/67108864|0,ey=67108863&eh}ei.words[em]=0|ey,ef=0|eg}return 0!==ef?ei.words[em]=0|ef:ei.length--,ei._strip()}BN.prototype.toArrayLike=function(et,eo,ei){this._strip();var ea=this.byteLength(),eu=ei||Math.max(1,ea);assert(ea<=eu,"byte array longer than desired length"),assert(eu>0,"Requested array length <= 0");var ed=o(et,eu);return this["_toArrayLike"+("le"===eo?"LE":"BE")](ed,ea),ed},BN.prototype._toArrayLikeLE=function(et,eo){for(var ei=0,ea=0,eu=0,ed=0;eu<this.length;eu++){var eh=this.words[eu]<<ed|ea;et[ei++]=255&eh,ei<et.length&&(et[ei++]=eh>>8&255),ei<et.length&&(et[ei++]=eh>>16&255),6===ed?(ei<et.length&&(et[ei++]=eh>>24&255),ea=0,ed=0):(ea=eh>>>24,ed+=2)}if(ei<et.length)for(et[ei++]=ea;ei<et.length;)et[ei++]=0},BN.prototype._toArrayLikeBE=function(et,eo){for(var ei=et.length-1,ea=0,eu=0,ed=0;eu<this.length;eu++){var eh=this.words[eu]<<ed|ea;et[ei--]=255&eh,ei>=0&&(et[ei--]=eh>>8&255),ei>=0&&(et[ei--]=eh>>16&255),6===ed?(ei>=0&&(et[ei--]=eh>>24&255),ea=0,ed=0):(ea=eh>>>24,ed+=2)}if(ei>=0)for(et[ei--]=ea;ei>=0;)et[ei--]=0},Math.clz32?BN.prototype._countBits=function(et){return 32-Math.clz32(et)}:BN.prototype._countBits=function(et){var eo=et,ei=0;return eo>=4096&&(ei+=13,eo>>>=13),eo>=64&&(ei+=7,eo>>>=7),eo>=8&&(ei+=4,eo>>>=4),eo>=2&&(ei+=2,eo>>>=2),ei+eo},BN.prototype._zeroBits=function(et){if(0===et)return 26;var eo=et,ei=0;return(8191&eo)==0&&(ei+=13,eo>>>=13),(127&eo)==0&&(ei+=7,eo>>>=7),(15&eo)==0&&(ei+=4,eo>>>=4),(3&eo)==0&&(ei+=2,eo>>>=2),(1&eo)==0&&ei++,ei},BN.prototype.bitLength=function(){var et=this.words[this.length-1],eo=this._countBits(et);return(this.length-1)*26+eo},BN.prototype.zeroBits=function(){if(this.isZero())return 0;for(var et=0,eo=0;eo<this.length;eo++){var ei=this._zeroBits(this.words[eo]);if(et+=ei,26!==ei)break}return et},BN.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},BN.prototype.toTwos=function(et){return 0!==this.negative?this.abs().inotn(et).iaddn(1):this.clone()},BN.prototype.fromTwos=function(et){return this.testn(et-1)?this.notn(et).iaddn(1).ineg():this.clone()},BN.prototype.isNeg=function(){return 0!==this.negative},BN.prototype.neg=function(){return this.clone().ineg()},BN.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},BN.prototype.iuor=function(et){for(;this.length<et.length;)this.words[this.length++]=0;for(var eo=0;eo<et.length;eo++)this.words[eo]=this.words[eo]|et.words[eo];return this._strip()},BN.prototype.ior=function(et){return assert((this.negative|et.negative)==0),this.iuor(et)},BN.prototype.or=function(et){return this.length>et.length?this.clone().ior(et):et.clone().ior(this)},BN.prototype.uor=function(et){return this.length>et.length?this.clone().iuor(et):et.clone().iuor(this)},BN.prototype.iuand=function(et){var eo;eo=this.length>et.length?et:this;for(var ei=0;ei<eo.length;ei++)this.words[ei]=this.words[ei]&et.words[ei];return this.length=eo.length,this._strip()},BN.prototype.iand=function(et){return assert((this.negative|et.negative)==0),this.iuand(et)},BN.prototype.and=function(et){return this.length>et.length?this.clone().iand(et):et.clone().iand(this)},BN.prototype.uand=function(et){return this.length>et.length?this.clone().iuand(et):et.clone().iuand(this)},BN.prototype.iuxor=function(et){this.length>et.length?(eo=this,ei=et):(eo=et,ei=this);for(var eo,ei,ea=0;ea<ei.length;ea++)this.words[ea]=eo.words[ea]^ei.words[ea];if(this!==eo)for(;ea<eo.length;ea++)this.words[ea]=eo.words[ea];return this.length=eo.length,this._strip()},BN.prototype.ixor=function(et){return assert((this.negative|et.negative)==0),this.iuxor(et)},BN.prototype.xor=function(et){return this.length>et.length?this.clone().ixor(et):et.clone().ixor(this)},BN.prototype.uxor=function(et){return this.length>et.length?this.clone().iuxor(et):et.clone().iuxor(this)},BN.prototype.inotn=function(et){assert("number"==typeof et&&et>=0);var eo=0|Math.ceil(et/26),ei=et%26;this._expand(eo),ei>0&&eo--;for(var ea=0;ea<eo;ea++)this.words[ea]=67108863&~this.words[ea];return ei>0&&(this.words[ea]=~this.words[ea]&67108863>>26-ei),this._strip()},BN.prototype.notn=function(et){return this.clone().inotn(et)},BN.prototype.setn=function(et,eo){assert("number"==typeof et&&et>=0);var ei=et/26|0,ea=et%26;return this._expand(ei+1),eo?this.words[ei]=this.words[ei]|1<<ea:this.words[ei]=this.words[ei]&~(1<<ea),this._strip()},BN.prototype.iadd=function(et){if(0!==this.negative&&0===et.negative)return this.negative=0,eo=this.isub(et),this.negative^=1,this._normSign();if(0===this.negative&&0!==et.negative)return et.negative=0,eo=this.isub(et),et.negative=1,eo._normSign();this.length>et.length?(ei=this,ea=et):(ei=et,ea=this);for(var eo,ei,ea,eu=0,ed=0;ed<ea.length;ed++)eo=(0|ei.words[ed])+(0|ea.words[ed])+eu,this.words[ed]=67108863&eo,eu=eo>>>26;for(;0!==eu&&ed<ei.length;ed++)eo=(0|ei.words[ed])+eu,this.words[ed]=67108863&eo,eu=eo>>>26;if(this.length=ei.length,0!==eu)this.words[this.length]=eu,this.length++;else if(ei!==this)for(;ed<ei.length;ed++)this.words[ed]=ei.words[ed];return this},BN.prototype.add=function(et){var eo;return 0!==et.negative&&0===this.negative?(et.negative=0,eo=this.sub(et),et.negative^=1,eo):0===et.negative&&0!==this.negative?(this.negative=0,eo=et.sub(this),this.negative=1,eo):this.length>et.length?this.clone().iadd(et):et.clone().iadd(this)},BN.prototype.isub=function(et){if(0!==et.negative){et.negative=0;var eo,ei,ea=this.iadd(et);return et.negative=1,ea._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(et),this.negative=1,this._normSign();var eu=this.cmp(et);if(0===eu)return this.negative=0,this.length=1,this.words[0]=0,this;eu>0?(eo=this,ei=et):(eo=et,ei=this);for(var ed=0,eh=0;eh<ei.length;eh++)ed=(ea=(0|eo.words[eh])-(0|ei.words[eh])+ed)>>26,this.words[eh]=67108863&ea;for(;0!==ed&&eh<eo.length;eh++)ed=(ea=(0|eo.words[eh])+ed)>>26,this.words[eh]=67108863&ea;if(0===ed&&eh<eo.length&&eo!==this)for(;eh<eo.length;eh++)this.words[eh]=eo.words[eh];return this.length=Math.max(this.length,eh),eo!==this&&(this.negative=1),this._strip()},BN.prototype.sub=function(et){return this.clone().isub(et)};var h=function(et,eo,ei){var ea,eu,ed,eh=et.words,ep=eo.words,ef=ei.words,em=0,eg=0|eh[0],ey=8191&eg,eC=eg>>>13,eS=0|eh[1],e_=8191&eS,ew=eS>>>13,eA=0|eh[2],eI=8191&eA,eR=eA>>>13,eT=0|eh[3],eE=8191&eT,eP=eT>>>13,ek=0|eh[4],eO=8191&ek,eM=ek>>>13,eD=0|eh[5],eU=8191&eD,eL=eD>>>13,eN=0|eh[6],eB=8191&eN,eF=eN>>>13,ej=0|eh[7],eG=8191&ej,eH=ej>>>13,eK=0|eh[8],ez=8191&eK,eW=eK>>>13,eV=0|eh[9],eJ=8191&eV,eY=eV>>>13,e$=0|ep[0],eZ=8191&e$,eQ=e$>>>13,eX=0|ep[1],e0=8191&eX,e4=eX>>>13,e6=0|ep[2],e5=8191&e6,e8=e6>>>13,e7=0|ep[3],e9=8191&e7,tr=e7>>>13,tn=0|ep[4],ti=8191&tn,ta=tn>>>13,ts=0|ep[5],tc=8191&ts,tu=ts>>>13,td=0|ep[6],tp=8191&td,tf=td>>>13,tm=0|ep[7],tg=8191&tm,ty=tm>>>13,tv=0|ep[8],tb=8191&tv,tC=tv>>>13,tS=0|ep[9],t_=8191&tS,tw=tS>>>13;ei.negative=et.negative^eo.negative,ei.length=19;var tA=(em+(ea=Math.imul(ey,eZ))|0)+((8191&(eu=(eu=Math.imul(ey,eQ))+Math.imul(eC,eZ)|0))<<13)|0;em=((ed=Math.imul(eC,eQ))+(eu>>>13)|0)+(tA>>>26)|0,tA&=67108863,ea=Math.imul(e_,eZ),eu=(eu=Math.imul(e_,eQ))+Math.imul(ew,eZ)|0,ed=Math.imul(ew,eQ);var tI=(em+(ea=ea+Math.imul(ey,e0)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,e4)|0)+Math.imul(eC,e0)|0))<<13)|0;em=((ed=ed+Math.imul(eC,e4)|0)+(eu>>>13)|0)+(tI>>>26)|0,tI&=67108863,ea=Math.imul(eI,eZ),eu=(eu=Math.imul(eI,eQ))+Math.imul(eR,eZ)|0,ed=Math.imul(eR,eQ),ea=ea+Math.imul(e_,e0)|0,eu=(eu=eu+Math.imul(e_,e4)|0)+Math.imul(ew,e0)|0,ed=ed+Math.imul(ew,e4)|0;var tR=(em+(ea=ea+Math.imul(ey,e5)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,e8)|0)+Math.imul(eC,e5)|0))<<13)|0;em=((ed=ed+Math.imul(eC,e8)|0)+(eu>>>13)|0)+(tR>>>26)|0,tR&=67108863,ea=Math.imul(eE,eZ),eu=(eu=Math.imul(eE,eQ))+Math.imul(eP,eZ)|0,ed=Math.imul(eP,eQ),ea=ea+Math.imul(eI,e0)|0,eu=(eu=eu+Math.imul(eI,e4)|0)+Math.imul(eR,e0)|0,ed=ed+Math.imul(eR,e4)|0,ea=ea+Math.imul(e_,e5)|0,eu=(eu=eu+Math.imul(e_,e8)|0)+Math.imul(ew,e5)|0,ed=ed+Math.imul(ew,e8)|0;var tT=(em+(ea=ea+Math.imul(ey,e9)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tr)|0)+Math.imul(eC,e9)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tr)|0)+(eu>>>13)|0)+(tT>>>26)|0,tT&=67108863,ea=Math.imul(eO,eZ),eu=(eu=Math.imul(eO,eQ))+Math.imul(eM,eZ)|0,ed=Math.imul(eM,eQ),ea=ea+Math.imul(eE,e0)|0,eu=(eu=eu+Math.imul(eE,e4)|0)+Math.imul(eP,e0)|0,ed=ed+Math.imul(eP,e4)|0,ea=ea+Math.imul(eI,e5)|0,eu=(eu=eu+Math.imul(eI,e8)|0)+Math.imul(eR,e5)|0,ed=ed+Math.imul(eR,e8)|0,ea=ea+Math.imul(e_,e9)|0,eu=(eu=eu+Math.imul(e_,tr)|0)+Math.imul(ew,e9)|0,ed=ed+Math.imul(ew,tr)|0;var tE=(em+(ea=ea+Math.imul(ey,ti)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,ta)|0)+Math.imul(eC,ti)|0))<<13)|0;em=((ed=ed+Math.imul(eC,ta)|0)+(eu>>>13)|0)+(tE>>>26)|0,tE&=67108863,ea=Math.imul(eU,eZ),eu=(eu=Math.imul(eU,eQ))+Math.imul(eL,eZ)|0,ed=Math.imul(eL,eQ),ea=ea+Math.imul(eO,e0)|0,eu=(eu=eu+Math.imul(eO,e4)|0)+Math.imul(eM,e0)|0,ed=ed+Math.imul(eM,e4)|0,ea=ea+Math.imul(eE,e5)|0,eu=(eu=eu+Math.imul(eE,e8)|0)+Math.imul(eP,e5)|0,ed=ed+Math.imul(eP,e8)|0,ea=ea+Math.imul(eI,e9)|0,eu=(eu=eu+Math.imul(eI,tr)|0)+Math.imul(eR,e9)|0,ed=ed+Math.imul(eR,tr)|0,ea=ea+Math.imul(e_,ti)|0,eu=(eu=eu+Math.imul(e_,ta)|0)+Math.imul(ew,ti)|0,ed=ed+Math.imul(ew,ta)|0;var tP=(em+(ea=ea+Math.imul(ey,tc)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tu)|0)+Math.imul(eC,tc)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tu)|0)+(eu>>>13)|0)+(tP>>>26)|0,tP&=67108863,ea=Math.imul(eB,eZ),eu=(eu=Math.imul(eB,eQ))+Math.imul(eF,eZ)|0,ed=Math.imul(eF,eQ),ea=ea+Math.imul(eU,e0)|0,eu=(eu=eu+Math.imul(eU,e4)|0)+Math.imul(eL,e0)|0,ed=ed+Math.imul(eL,e4)|0,ea=ea+Math.imul(eO,e5)|0,eu=(eu=eu+Math.imul(eO,e8)|0)+Math.imul(eM,e5)|0,ed=ed+Math.imul(eM,e8)|0,ea=ea+Math.imul(eE,e9)|0,eu=(eu=eu+Math.imul(eE,tr)|0)+Math.imul(eP,e9)|0,ed=ed+Math.imul(eP,tr)|0,ea=ea+Math.imul(eI,ti)|0,eu=(eu=eu+Math.imul(eI,ta)|0)+Math.imul(eR,ti)|0,ed=ed+Math.imul(eR,ta)|0,ea=ea+Math.imul(e_,tc)|0,eu=(eu=eu+Math.imul(e_,tu)|0)+Math.imul(ew,tc)|0,ed=ed+Math.imul(ew,tu)|0;var tk=(em+(ea=ea+Math.imul(ey,tp)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tf)|0)+Math.imul(eC,tp)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tf)|0)+(eu>>>13)|0)+(tk>>>26)|0,tk&=67108863,ea=Math.imul(eG,eZ),eu=(eu=Math.imul(eG,eQ))+Math.imul(eH,eZ)|0,ed=Math.imul(eH,eQ),ea=ea+Math.imul(eB,e0)|0,eu=(eu=eu+Math.imul(eB,e4)|0)+Math.imul(eF,e0)|0,ed=ed+Math.imul(eF,e4)|0,ea=ea+Math.imul(eU,e5)|0,eu=(eu=eu+Math.imul(eU,e8)|0)+Math.imul(eL,e5)|0,ed=ed+Math.imul(eL,e8)|0,ea=ea+Math.imul(eO,e9)|0,eu=(eu=eu+Math.imul(eO,tr)|0)+Math.imul(eM,e9)|0,ed=ed+Math.imul(eM,tr)|0,ea=ea+Math.imul(eE,ti)|0,eu=(eu=eu+Math.imul(eE,ta)|0)+Math.imul(eP,ti)|0,ed=ed+Math.imul(eP,ta)|0,ea=ea+Math.imul(eI,tc)|0,eu=(eu=eu+Math.imul(eI,tu)|0)+Math.imul(eR,tc)|0,ed=ed+Math.imul(eR,tu)|0,ea=ea+Math.imul(e_,tp)|0,eu=(eu=eu+Math.imul(e_,tf)|0)+Math.imul(ew,tp)|0,ed=ed+Math.imul(ew,tf)|0;var tO=(em+(ea=ea+Math.imul(ey,tg)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,ty)|0)+Math.imul(eC,tg)|0))<<13)|0;em=((ed=ed+Math.imul(eC,ty)|0)+(eu>>>13)|0)+(tO>>>26)|0,tO&=67108863,ea=Math.imul(ez,eZ),eu=(eu=Math.imul(ez,eQ))+Math.imul(eW,eZ)|0,ed=Math.imul(eW,eQ),ea=ea+Math.imul(eG,e0)|0,eu=(eu=eu+Math.imul(eG,e4)|0)+Math.imul(eH,e0)|0,ed=ed+Math.imul(eH,e4)|0,ea=ea+Math.imul(eB,e5)|0,eu=(eu=eu+Math.imul(eB,e8)|0)+Math.imul(eF,e5)|0,ed=ed+Math.imul(eF,e8)|0,ea=ea+Math.imul(eU,e9)|0,eu=(eu=eu+Math.imul(eU,tr)|0)+Math.imul(eL,e9)|0,ed=ed+Math.imul(eL,tr)|0,ea=ea+Math.imul(eO,ti)|0,eu=(eu=eu+Math.imul(eO,ta)|0)+Math.imul(eM,ti)|0,ed=ed+Math.imul(eM,ta)|0,ea=ea+Math.imul(eE,tc)|0,eu=(eu=eu+Math.imul(eE,tu)|0)+Math.imul(eP,tc)|0,ed=ed+Math.imul(eP,tu)|0,ea=ea+Math.imul(eI,tp)|0,eu=(eu=eu+Math.imul(eI,tf)|0)+Math.imul(eR,tp)|0,ed=ed+Math.imul(eR,tf)|0,ea=ea+Math.imul(e_,tg)|0,eu=(eu=eu+Math.imul(e_,ty)|0)+Math.imul(ew,tg)|0,ed=ed+Math.imul(ew,ty)|0;var tx=(em+(ea=ea+Math.imul(ey,tb)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tC)|0)+Math.imul(eC,tb)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tC)|0)+(eu>>>13)|0)+(tx>>>26)|0,tx&=67108863,ea=Math.imul(eJ,eZ),eu=(eu=Math.imul(eJ,eQ))+Math.imul(eY,eZ)|0,ed=Math.imul(eY,eQ),ea=ea+Math.imul(ez,e0)|0,eu=(eu=eu+Math.imul(ez,e4)|0)+Math.imul(eW,e0)|0,ed=ed+Math.imul(eW,e4)|0,ea=ea+Math.imul(eG,e5)|0,eu=(eu=eu+Math.imul(eG,e8)|0)+Math.imul(eH,e5)|0,ed=ed+Math.imul(eH,e8)|0,ea=ea+Math.imul(eB,e9)|0,eu=(eu=eu+Math.imul(eB,tr)|0)+Math.imul(eF,e9)|0,ed=ed+Math.imul(eF,tr)|0,ea=ea+Math.imul(eU,ti)|0,eu=(eu=eu+Math.imul(eU,ta)|0)+Math.imul(eL,ti)|0,ed=ed+Math.imul(eL,ta)|0,ea=ea+Math.imul(eO,tc)|0,eu=(eu=eu+Math.imul(eO,tu)|0)+Math.imul(eM,tc)|0,ed=ed+Math.imul(eM,tu)|0,ea=ea+Math.imul(eE,tp)|0,eu=(eu=eu+Math.imul(eE,tf)|0)+Math.imul(eP,tp)|0,ed=ed+Math.imul(eP,tf)|0,ea=ea+Math.imul(eI,tg)|0,eu=(eu=eu+Math.imul(eI,ty)|0)+Math.imul(eR,tg)|0,ed=ed+Math.imul(eR,ty)|0,ea=ea+Math.imul(e_,tb)|0,eu=(eu=eu+Math.imul(e_,tC)|0)+Math.imul(ew,tb)|0,ed=ed+Math.imul(ew,tC)|0;var tM=(em+(ea=ea+Math.imul(ey,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ey,tw)|0)+Math.imul(eC,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eC,tw)|0)+(eu>>>13)|0)+(tM>>>26)|0,tM&=67108863,ea=Math.imul(eJ,e0),eu=(eu=Math.imul(eJ,e4))+Math.imul(eY,e0)|0,ed=Math.imul(eY,e4),ea=ea+Math.imul(ez,e5)|0,eu=(eu=eu+Math.imul(ez,e8)|0)+Math.imul(eW,e5)|0,ed=ed+Math.imul(eW,e8)|0,ea=ea+Math.imul(eG,e9)|0,eu=(eu=eu+Math.imul(eG,tr)|0)+Math.imul(eH,e9)|0,ed=ed+Math.imul(eH,tr)|0,ea=ea+Math.imul(eB,ti)|0,eu=(eu=eu+Math.imul(eB,ta)|0)+Math.imul(eF,ti)|0,ed=ed+Math.imul(eF,ta)|0,ea=ea+Math.imul(eU,tc)|0,eu=(eu=eu+Math.imul(eU,tu)|0)+Math.imul(eL,tc)|0,ed=ed+Math.imul(eL,tu)|0,ea=ea+Math.imul(eO,tp)|0,eu=(eu=eu+Math.imul(eO,tf)|0)+Math.imul(eM,tp)|0,ed=ed+Math.imul(eM,tf)|0,ea=ea+Math.imul(eE,tg)|0,eu=(eu=eu+Math.imul(eE,ty)|0)+Math.imul(eP,tg)|0,ed=ed+Math.imul(eP,ty)|0,ea=ea+Math.imul(eI,tb)|0,eu=(eu=eu+Math.imul(eI,tC)|0)+Math.imul(eR,tb)|0,ed=ed+Math.imul(eR,tC)|0;var tD=(em+(ea=ea+Math.imul(e_,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(e_,tw)|0)+Math.imul(ew,t_)|0))<<13)|0;em=((ed=ed+Math.imul(ew,tw)|0)+(eu>>>13)|0)+(tD>>>26)|0,tD&=67108863,ea=Math.imul(eJ,e5),eu=(eu=Math.imul(eJ,e8))+Math.imul(eY,e5)|0,ed=Math.imul(eY,e8),ea=ea+Math.imul(ez,e9)|0,eu=(eu=eu+Math.imul(ez,tr)|0)+Math.imul(eW,e9)|0,ed=ed+Math.imul(eW,tr)|0,ea=ea+Math.imul(eG,ti)|0,eu=(eu=eu+Math.imul(eG,ta)|0)+Math.imul(eH,ti)|0,ed=ed+Math.imul(eH,ta)|0,ea=ea+Math.imul(eB,tc)|0,eu=(eu=eu+Math.imul(eB,tu)|0)+Math.imul(eF,tc)|0,ed=ed+Math.imul(eF,tu)|0,ea=ea+Math.imul(eU,tp)|0,eu=(eu=eu+Math.imul(eU,tf)|0)+Math.imul(eL,tp)|0,ed=ed+Math.imul(eL,tf)|0,ea=ea+Math.imul(eO,tg)|0,eu=(eu=eu+Math.imul(eO,ty)|0)+Math.imul(eM,tg)|0,ed=ed+Math.imul(eM,ty)|0,ea=ea+Math.imul(eE,tb)|0,eu=(eu=eu+Math.imul(eE,tC)|0)+Math.imul(eP,tb)|0,ed=ed+Math.imul(eP,tC)|0;var tU=(em+(ea=ea+Math.imul(eI,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eI,tw)|0)+Math.imul(eR,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eR,tw)|0)+(eu>>>13)|0)+(tU>>>26)|0,tU&=67108863,ea=Math.imul(eJ,e9),eu=(eu=Math.imul(eJ,tr))+Math.imul(eY,e9)|0,ed=Math.imul(eY,tr),ea=ea+Math.imul(ez,ti)|0,eu=(eu=eu+Math.imul(ez,ta)|0)+Math.imul(eW,ti)|0,ed=ed+Math.imul(eW,ta)|0,ea=ea+Math.imul(eG,tc)|0,eu=(eu=eu+Math.imul(eG,tu)|0)+Math.imul(eH,tc)|0,ed=ed+Math.imul(eH,tu)|0,ea=ea+Math.imul(eB,tp)|0,eu=(eu=eu+Math.imul(eB,tf)|0)+Math.imul(eF,tp)|0,ed=ed+Math.imul(eF,tf)|0,ea=ea+Math.imul(eU,tg)|0,eu=(eu=eu+Math.imul(eU,ty)|0)+Math.imul(eL,tg)|0,ed=ed+Math.imul(eL,ty)|0,ea=ea+Math.imul(eO,tb)|0,eu=(eu=eu+Math.imul(eO,tC)|0)+Math.imul(eM,tb)|0,ed=ed+Math.imul(eM,tC)|0;var tL=(em+(ea=ea+Math.imul(eE,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eE,tw)|0)+Math.imul(eP,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eP,tw)|0)+(eu>>>13)|0)+(tL>>>26)|0,tL&=67108863,ea=Math.imul(eJ,ti),eu=(eu=Math.imul(eJ,ta))+Math.imul(eY,ti)|0,ed=Math.imul(eY,ta),ea=ea+Math.imul(ez,tc)|0,eu=(eu=eu+Math.imul(ez,tu)|0)+Math.imul(eW,tc)|0,ed=ed+Math.imul(eW,tu)|0,ea=ea+Math.imul(eG,tp)|0,eu=(eu=eu+Math.imul(eG,tf)|0)+Math.imul(eH,tp)|0,ed=ed+Math.imul(eH,tf)|0,ea=ea+Math.imul(eB,tg)|0,eu=(eu=eu+Math.imul(eB,ty)|0)+Math.imul(eF,tg)|0,ed=ed+Math.imul(eF,ty)|0,ea=ea+Math.imul(eU,tb)|0,eu=(eu=eu+Math.imul(eU,tC)|0)+Math.imul(eL,tb)|0,ed=ed+Math.imul(eL,tC)|0;var tN=(em+(ea=ea+Math.imul(eO,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eO,tw)|0)+Math.imul(eM,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eM,tw)|0)+(eu>>>13)|0)+(tN>>>26)|0,tN&=67108863,ea=Math.imul(eJ,tc),eu=(eu=Math.imul(eJ,tu))+Math.imul(eY,tc)|0,ed=Math.imul(eY,tu),ea=ea+Math.imul(ez,tp)|0,eu=(eu=eu+Math.imul(ez,tf)|0)+Math.imul(eW,tp)|0,ed=ed+Math.imul(eW,tf)|0,ea=ea+Math.imul(eG,tg)|0,eu=(eu=eu+Math.imul(eG,ty)|0)+Math.imul(eH,tg)|0,ed=ed+Math.imul(eH,ty)|0,ea=ea+Math.imul(eB,tb)|0,eu=(eu=eu+Math.imul(eB,tC)|0)+Math.imul(eF,tb)|0,ed=ed+Math.imul(eF,tC)|0;var tq=(em+(ea=ea+Math.imul(eU,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eU,tw)|0)+Math.imul(eL,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eL,tw)|0)+(eu>>>13)|0)+(tq>>>26)|0,tq&=67108863,ea=Math.imul(eJ,tp),eu=(eu=Math.imul(eJ,tf))+Math.imul(eY,tp)|0,ed=Math.imul(eY,tf),ea=ea+Math.imul(ez,tg)|0,eu=(eu=eu+Math.imul(ez,ty)|0)+Math.imul(eW,tg)|0,ed=ed+Math.imul(eW,ty)|0,ea=ea+Math.imul(eG,tb)|0,eu=(eu=eu+Math.imul(eG,tC)|0)+Math.imul(eH,tb)|0,ed=ed+Math.imul(eH,tC)|0;var tB=(em+(ea=ea+Math.imul(eB,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eB,tw)|0)+Math.imul(eF,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eF,tw)|0)+(eu>>>13)|0)+(tB>>>26)|0,tB&=67108863,ea=Math.imul(eJ,tg),eu=(eu=Math.imul(eJ,ty))+Math.imul(eY,tg)|0,ed=Math.imul(eY,ty),ea=ea+Math.imul(ez,tb)|0,eu=(eu=eu+Math.imul(ez,tC)|0)+Math.imul(eW,tb)|0,ed=ed+Math.imul(eW,tC)|0;var tF=(em+(ea=ea+Math.imul(eG,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(eG,tw)|0)+Math.imul(eH,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eH,tw)|0)+(eu>>>13)|0)+(tF>>>26)|0,tF&=67108863,ea=Math.imul(eJ,tb),eu=(eu=Math.imul(eJ,tC))+Math.imul(eY,tb)|0,ed=Math.imul(eY,tC);var tj=(em+(ea=ea+Math.imul(ez,t_)|0)|0)+((8191&(eu=(eu=eu+Math.imul(ez,tw)|0)+Math.imul(eW,t_)|0))<<13)|0;em=((ed=ed+Math.imul(eW,tw)|0)+(eu>>>13)|0)+(tj>>>26)|0,tj&=67108863;var tG=(em+(ea=Math.imul(eJ,t_))|0)+((8191&(eu=(eu=Math.imul(eJ,tw))+Math.imul(eY,t_)|0))<<13)|0;return em=((ed=Math.imul(eY,tw))+(eu>>>13)|0)+(tG>>>26)|0,tG&=67108863,ef[0]=tA,ef[1]=tI,ef[2]=tR,ef[3]=tT,ef[4]=tE,ef[5]=tP,ef[6]=tk,ef[7]=tO,ef[8]=tx,ef[9]=tM,ef[10]=tD,ef[11]=tU,ef[12]=tL,ef[13]=tN,ef[14]=tq,ef[15]=tB,ef[16]=tF,ef[17]=tj,ef[18]=tG,0!==em&&(ef[19]=em,ei.length++),ei};function bigMulTo(et,eo,ei){ei.negative=eo.negative^et.negative,ei.length=et.length+eo.length;for(var ea=0,eu=0,ed=0;ed<ei.length-1;ed++){var eh=eu;eu=0;for(var ep=67108863&ea,ef=Math.min(ed,eo.length-1),em=Math.max(0,ed-et.length+1);em<=ef;em++){var eg=ed-em,ey=(0|et.words[eg])*(0|eo.words[em]),eC=67108863&ey;eh=eh+(ey/67108864|0)|0,ep=67108863&(eC=eC+ep|0),eu+=(eh=eh+(eC>>>26)|0)>>>26,eh&=67108863}ei.words[ed]=ep,ea=eh,eh=eu}return 0!==ea?ei.words[ed]=ea:ei.length--,ei._strip()}function jumboMulTo(et,eo,ei){return bigMulTo(et,eo,ei)}function FFTM(et,eo){this.x=et,this.y=eo}Math.imul||(h=smallMulTo),BN.prototype.mulTo=function(et,eo){var ei=this.length+et.length;return 10===this.length&&10===et.length?h(this,et,eo):ei<63?smallMulTo(this,et,eo):ei<1024?bigMulTo(this,et,eo):jumboMulTo(this,et,eo)},FFTM.prototype.makeRBT=function(et){for(var eo=Array(et),ei=BN.prototype._countBits(et)-1,ea=0;ea<et;ea++)eo[ea]=this.revBin(ea,ei,et);return eo},FFTM.prototype.revBin=function(et,eo,ei){if(0===et||et===ei-1)return et;for(var ea=0,eu=0;eu<eo;eu++)ea|=(1&et)<<eo-eu-1,et>>=1;return ea},FFTM.prototype.permute=function(et,eo,ei,ea,eu,ed){for(var eh=0;eh<ed;eh++)ea[eh]=eo[et[eh]],eu[eh]=ei[et[eh]]},FFTM.prototype.transform=function(et,eo,ei,ea,eu,ed){this.permute(ed,et,eo,ei,ea,eu);for(var eh=1;eh<eu;eh<<=1)for(var ep=eh<<1,ef=Math.cos(2*Math.PI/ep),em=Math.sin(2*Math.PI/ep),eg=0;eg<eu;eg+=ep)for(var ey=ef,eC=em,eS=0;eS<eh;eS++){var e_=ei[eg+eS],ew=ea[eg+eS],eA=ei[eg+eS+eh],eI=ea[eg+eS+eh],eR=ey*eA-eC*eI;eI=ey*eI+eC*eA,eA=eR,ei[eg+eS]=e_+eA,ea[eg+eS]=ew+eI,ei[eg+eS+eh]=e_-eA,ea[eg+eS+eh]=ew-eI,eS!==ep&&(eR=ef*ey-em*eC,eC=ef*eC+em*ey,ey=eR)}},FFTM.prototype.guessLen13b=function(et,eo){var ei=1|Math.max(eo,et),ea=1&ei,eu=0;for(ei=ei/2|0;ei;ei>>>=1)eu++;return 1<<eu+1+ea},FFTM.prototype.conjugate=function(et,eo,ei){if(!(ei<=1))for(var ea=0;ea<ei/2;ea++){var eu=et[ea];et[ea]=et[ei-ea-1],et[ei-ea-1]=eu,eu=eo[ea],eo[ea]=-eo[ei-ea-1],eo[ei-ea-1]=-eu}},FFTM.prototype.normalize13b=function(et,eo){for(var ei=0,ea=0;ea<eo/2;ea++){var eu=8192*Math.round(et[2*ea+1]/eo)+Math.round(et[2*ea]/eo)+ei;et[ea]=67108863&eu,ei=eu<67108864?0:eu/67108864|0}return et},FFTM.prototype.convert13b=function(et,eo,ei,ea){for(var eu=0,ed=0;ed<eo;ed++)eu+=0|et[ed],ei[2*ed]=8191&eu,eu>>>=13,ei[2*ed+1]=8191&eu,eu>>>=13;for(ed=2*eo;ed<ea;++ed)ei[ed]=0;assert(0===eu),assert((-8192&eu)==0)},FFTM.prototype.stub=function(et){for(var eo=Array(et),ei=0;ei<et;ei++)eo[ei]=0;return eo},FFTM.prototype.mulp=function(et,eo,ei){var ea=2*this.guessLen13b(et.length,eo.length),eu=this.makeRBT(ea),ed=this.stub(ea),eh=Array(ea),ep=Array(ea),ef=Array(ea),em=Array(ea),eg=Array(ea),ey=Array(ea),eC=ei.words;eC.length=ea,this.convert13b(et.words,et.length,eh,ea),this.convert13b(eo.words,eo.length,em,ea),this.transform(eh,ed,ep,ef,ea,eu),this.transform(em,ed,eg,ey,ea,eu);for(var eS=0;eS<ea;eS++){var e_=ep[eS]*eg[eS]-ef[eS]*ey[eS];ef[eS]=ep[eS]*ey[eS]+ef[eS]*eg[eS],ep[eS]=e_}return this.conjugate(ep,ef,ea),this.transform(ep,ef,eC,ed,ea,eu),this.conjugate(eC,ed,ea),this.normalize13b(eC,ea),ei.negative=et.negative^eo.negative,ei.length=et.length+eo.length,ei._strip()},BN.prototype.mul=function(et){var eo=new BN(null);return eo.words=Array(this.length+et.length),this.mulTo(et,eo)},BN.prototype.mulf=function(et){var eo=new BN(null);return eo.words=Array(this.length+et.length),jumboMulTo(this,et,eo)},BN.prototype.imul=function(et){return this.clone().mulTo(et,this)},BN.prototype.imuln=function(et){var eo=et<0;eo&&(et=-et),assert("number"==typeof et),assert(et<67108864);for(var ei=0,ea=0;ea<this.length;ea++){var eu=(0|this.words[ea])*et,ed=(67108863&eu)+(67108863&ei);ei>>=26,ei+=(eu/67108864|0)+(ed>>>26),this.words[ea]=67108863&ed}return 0!==ei&&(this.words[ea]=ei,this.length++),eo?this.ineg():this},BN.prototype.muln=function(et){return this.clone().imuln(et)},BN.prototype.sqr=function(){return this.mul(this)},BN.prototype.isqr=function(){return this.imul(this.clone())},BN.prototype.pow=function(et){var eo=toBitArray(et);if(0===eo.length)return new BN(1);for(var ei=this,ea=0;ea<eo.length&&0===eo[ea];ea++,ei=ei.sqr());if(++ea<eo.length)for(var eu=ei.sqr();ea<eo.length;ea++,eu=eu.sqr())0!==eo[ea]&&(ei=ei.mul(eu));return ei},BN.prototype.iushln=function(et){assert("number"==typeof et&&et>=0);var eo,ei=et%26,ea=(et-ei)/26,eu=67108863>>>26-ei<<26-ei;if(0!==ei){var ed=0;for(eo=0;eo<this.length;eo++){var eh=this.words[eo]&eu,ep=(0|this.words[eo])-eh<<ei;this.words[eo]=ep|ed,ed=eh>>>26-ei}ed&&(this.words[eo]=ed,this.length++)}if(0!==ea){for(eo=this.length-1;eo>=0;eo--)this.words[eo+ea]=this.words[eo];for(eo=0;eo<ea;eo++)this.words[eo]=0;this.length+=ea}return this._strip()},BN.prototype.ishln=function(et){return assert(0===this.negative),this.iushln(et)},BN.prototype.iushrn=function(et,eo,ei){assert("number"==typeof et&&et>=0),ea=eo?(eo-eo%26)/26:0;var ea,eu=et%26,ed=Math.min((et-eu)/26,this.length),eh=67108863^67108863>>>eu<<eu,ep=ei;if(ea-=ed,ea=Math.max(0,ea),ep){for(var ef=0;ef<ed;ef++)ep.words[ef]=this.words[ef];ep.length=ed}if(0===ed);else if(this.length>ed)for(this.length-=ed,ef=0;ef<this.length;ef++)this.words[ef]=this.words[ef+ed];else this.words[0]=0,this.length=1;var em=0;for(ef=this.length-1;ef>=0&&(0!==em||ef>=ea);ef--){var eg=0|this.words[ef];this.words[ef]=em<<26-eu|eg>>>eu,em=eg&eh}return ep&&0!==em&&(ep.words[ep.length++]=em),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},BN.prototype.ishrn=function(et,eo,ei){return assert(0===this.negative),this.iushrn(et,eo,ei)},BN.prototype.shln=function(et){return this.clone().ishln(et)},BN.prototype.ushln=function(et){return this.clone().iushln(et)},BN.prototype.shrn=function(et){return this.clone().ishrn(et)},BN.prototype.ushrn=function(et){return this.clone().iushrn(et)},BN.prototype.testn=function(et){assert("number"==typeof et&&et>=0);var eo=et%26,ei=(et-eo)/26,ea=1<<eo;return!(this.length<=ei)&&!!(this.words[ei]&ea)},BN.prototype.imaskn=function(et){assert("number"==typeof et&&et>=0);var eo=et%26,ei=(et-eo)/26;if(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=ei)return this;if(0!==eo&&ei++,this.length=Math.min(ei,this.length),0!==eo){var ea=67108863^67108863>>>eo<<eo;this.words[this.length-1]&=ea}return this._strip()},BN.prototype.maskn=function(et){return this.clone().imaskn(et)},BN.prototype.iaddn=function(et){return(assert("number"==typeof et),assert(et<67108864),et<0)?this.isubn(-et):0!==this.negative?(1===this.length&&(0|this.words[0])<=et?(this.words[0]=et-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(et),this.negative=1),this):this._iaddn(et)},BN.prototype._iaddn=function(et){this.words[0]+=et;for(var eo=0;eo<this.length&&this.words[eo]>=67108864;eo++)this.words[eo]-=67108864,eo===this.length-1?this.words[eo+1]=1:this.words[eo+1]++;return this.length=Math.max(this.length,eo+1),this},BN.prototype.isubn=function(et){if(assert("number"==typeof et),assert(et<67108864),et<0)return this.iaddn(-et);if(0!==this.negative)return this.negative=0,this.iaddn(et),this.negative=1,this;if(this.words[0]-=et,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var eo=0;eo<this.length&&this.words[eo]<0;eo++)this.words[eo]+=67108864,this.words[eo+1]-=1;return this._strip()},BN.prototype.addn=function(et){return this.clone().iaddn(et)},BN.prototype.subn=function(et){return this.clone().isubn(et)},BN.prototype.iabs=function(){return this.negative=0,this},BN.prototype.abs=function(){return this.clone().iabs()},BN.prototype._ishlnsubmul=function(et,eo,ei){var ea,eu,ed=et.length+ei;this._expand(ed);var eh=0;for(ea=0;ea<et.length;ea++){eu=(0|this.words[ea+ei])+eh;var ep=(0|et.words[ea])*eo;eu-=67108863&ep,eh=(eu>>26)-(ep/67108864|0),this.words[ea+ei]=67108863&eu}for(;ea<this.length-ei;ea++)eh=(eu=(0|this.words[ea+ei])+eh)>>26,this.words[ea+ei]=67108863&eu;if(0===eh)return this._strip();for(assert(-1===eh),eh=0,ea=0;ea<this.length;ea++)eh=(eu=-(0|this.words[ea])+eh)>>26,this.words[ea]=67108863&eu;return this.negative=1,this._strip()},BN.prototype._wordDiv=function(et,eo){var ei,ea=this.length-et.length,eu=this.clone(),ed=et,eh=0|ed.words[ed.length-1];0!=(ea=26-this._countBits(eh))&&(ed=ed.ushln(ea),eu.iushln(ea),eh=0|ed.words[ed.length-1]);var ep=eu.length-ed.length;if("mod"!==eo){(ei=new BN(null)).length=ep+1,ei.words=Array(ei.length);for(var ef=0;ef<ei.length;ef++)ei.words[ef]=0}var em=eu.clone()._ishlnsubmul(ed,1,ep);0===em.negative&&(eu=em,ei&&(ei.words[ep]=1));for(var eg=ep-1;eg>=0;eg--){var ey=(0|eu.words[ed.length+eg])*67108864+(0|eu.words[ed.length+eg-1]);for(ey=Math.min(ey/eh|0,67108863),eu._ishlnsubmul(ed,ey,eg);0!==eu.negative;)ey--,eu.negative=0,eu._ishlnsubmul(ed,1,eg),eu.isZero()||(eu.negative^=1);ei&&(ei.words[eg]=ey)}return ei&&ei._strip(),eu._strip(),"div"!==eo&&0!==ea&&eu.iushrn(ea),{div:ei||null,mod:eu}},BN.prototype.divmod=function(et,eo,ei){var ea,eu,ed;return(assert(!et.isZero()),this.isZero())?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===et.negative?(ed=this.neg().divmod(et,eo),"mod"!==eo&&(ea=ed.div.neg()),"div"!==eo&&(eu=ed.mod.neg(),ei&&0!==eu.negative&&eu.iadd(et)),{div:ea,mod:eu}):0===this.negative&&0!==et.negative?(ed=this.divmod(et.neg(),eo),"mod"!==eo&&(ea=ed.div.neg()),{div:ea,mod:ed.mod}):(this.negative&et.negative)!=0?(ed=this.neg().divmod(et.neg(),eo),"div"!==eo&&(eu=ed.mod.neg(),ei&&0!==eu.negative&&eu.isub(et)),{div:ed.div,mod:eu}):et.length>this.length||0>this.cmp(et)?{div:new BN(0),mod:this}:1===et.length?"div"===eo?{div:this.divn(et.words[0]),mod:null}:"mod"===eo?{div:null,mod:new BN(this.modrn(et.words[0]))}:{div:this.divn(et.words[0]),mod:new BN(this.modrn(et.words[0]))}:this._wordDiv(et,eo)},BN.prototype.div=function(et){return this.divmod(et,"div",!1).div},BN.prototype.mod=function(et){return this.divmod(et,"mod",!1).mod},BN.prototype.umod=function(et){return this.divmod(et,"mod",!0).mod},BN.prototype.divRound=function(et){var eo=this.divmod(et);if(eo.mod.isZero())return eo.div;var ei=0!==eo.div.negative?eo.mod.isub(et):eo.mod,ea=et.ushrn(1),eu=et.andln(1),ed=ei.cmp(ea);return ed<0||1===eu&&0===ed?eo.div:0!==eo.div.negative?eo.div.isubn(1):eo.div.iaddn(1)},BN.prototype.modrn=function(et){var eo=et<0;eo&&(et=-et),assert(et<=67108863);for(var ei=67108864%et,ea=0,eu=this.length-1;eu>=0;eu--)ea=(ei*ea+(0|this.words[eu]))%et;return eo?-ea:ea},BN.prototype.modn=function(et){return this.modrn(et)},BN.prototype.idivn=function(et){var eo=et<0;eo&&(et=-et),assert(et<=67108863);for(var ei=0,ea=this.length-1;ea>=0;ea--){var eu=(0|this.words[ea])+67108864*ei;this.words[ea]=eu/et|0,ei=eu%et}return this._strip(),eo?this.ineg():this},BN.prototype.divn=function(et){return this.clone().idivn(et)},BN.prototype.egcd=function(et){assert(0===et.negative),assert(!et.isZero());var eo=this,ei=et.clone();eo=0!==eo.negative?eo.umod(et):eo.clone();for(var ea=new BN(1),eu=new BN(0),ed=new BN(0),eh=new BN(1),ep=0;eo.isEven()&&ei.isEven();)eo.iushrn(1),ei.iushrn(1),++ep;for(var ef=ei.clone(),em=eo.clone();!eo.isZero();){for(var eg=0,ey=1;(eo.words[0]&ey)==0&&eg<26;++eg,ey<<=1);if(eg>0)for(eo.iushrn(eg);eg-- >0;)(ea.isOdd()||eu.isOdd())&&(ea.iadd(ef),eu.isub(em)),ea.iushrn(1),eu.iushrn(1);for(var eC=0,eS=1;(ei.words[0]&eS)==0&&eC<26;++eC,eS<<=1);if(eC>0)for(ei.iushrn(eC);eC-- >0;)(ed.isOdd()||eh.isOdd())&&(ed.iadd(ef),eh.isub(em)),ed.iushrn(1),eh.iushrn(1);eo.cmp(ei)>=0?(eo.isub(ei),ea.isub(ed),eu.isub(eh)):(ei.isub(eo),ed.isub(ea),eh.isub(eu))}return{a:ed,b:eh,gcd:ei.iushln(ep)}},BN.prototype._invmp=function(et){assert(0===et.negative),assert(!et.isZero());var eo,ei=this,ea=et.clone();ei=0!==ei.negative?ei.umod(et):ei.clone();for(var eu=new BN(1),ed=new BN(0),eh=ea.clone();ei.cmpn(1)>0&&ea.cmpn(1)>0;){for(var ep=0,ef=1;(ei.words[0]&ef)==0&&ep<26;++ep,ef<<=1);if(ep>0)for(ei.iushrn(ep);ep-- >0;)eu.isOdd()&&eu.iadd(eh),eu.iushrn(1);for(var em=0,eg=1;(ea.words[0]&eg)==0&&em<26;++em,eg<<=1);if(em>0)for(ea.iushrn(em);em-- >0;)ed.isOdd()&&ed.iadd(eh),ed.iushrn(1);ei.cmp(ea)>=0?(ei.isub(ea),eu.isub(ed)):(ea.isub(ei),ed.isub(eu))}return 0>(eo=0===ei.cmpn(1)?eu:ed).cmpn(0)&&eo.iadd(et),eo},BN.prototype.gcd=function(et){if(this.isZero())return et.abs();if(et.isZero())return this.abs();var eo=this.clone(),ei=et.clone();eo.negative=0,ei.negative=0;for(var ea=0;eo.isEven()&&ei.isEven();ea++)eo.iushrn(1),ei.iushrn(1);for(;;){for(;eo.isEven();)eo.iushrn(1);for(;ei.isEven();)ei.iushrn(1);var eu=eo.cmp(ei);if(eu<0){var ed=eo;eo=ei,ei=ed}else if(0===eu||0===ei.cmpn(1))break;eo.isub(ei)}return ei.iushln(ea)},BN.prototype.invm=function(et){return this.egcd(et).a.umod(et)},BN.prototype.isEven=function(){return(1&this.words[0])==0},BN.prototype.isOdd=function(){return(1&this.words[0])==1},BN.prototype.andln=function(et){return this.words[0]&et},BN.prototype.bincn=function(et){assert("number"==typeof et);var eo=et%26,ei=(et-eo)/26,ea=1<<eo;if(this.length<=ei)return this._expand(ei+1),this.words[ei]|=ea,this;for(var eu=ea,ed=ei;0!==eu&&ed<this.length;ed++){var eh=0|this.words[ed];eh+=eu,eu=eh>>>26,eh&=67108863,this.words[ed]=eh}return 0!==eu&&(this.words[ed]=eu,this.length++),this},BN.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function(et){var eo,ei=et<0;if(0!==this.negative&&!ei)return -1;if(0===this.negative&&ei)return 1;if(this._strip(),this.length>1)eo=1;else{ei&&(et=-et),assert(et<=67108863,"Number is too big");var ea=0|this.words[0];eo=ea===et?0:ea<et?-1:1}return 0!==this.negative?0|-eo:eo},BN.prototype.cmp=function(et){if(0!==this.negative&&0===et.negative)return -1;if(0===this.negative&&0!==et.negative)return 1;var eo=this.ucmp(et);return 0!==this.negative?0|-eo:eo},BN.prototype.ucmp=function(et){if(this.length>et.length)return 1;if(this.length<et.length)return -1;for(var eo=0,ei=this.length-1;ei>=0;ei--){var ea=0|this.words[ei],eu=0|et.words[ei];if(ea!==eu){ea<eu?eo=-1:ea>eu&&(eo=1);break}}return eo},BN.prototype.gtn=function(et){return 1===this.cmpn(et)},BN.prototype.gt=function(et){return 1===this.cmp(et)},BN.prototype.gten=function(et){return this.cmpn(et)>=0},BN.prototype.gte=function(et){return this.cmp(et)>=0},BN.prototype.ltn=function(et){return -1===this.cmpn(et)},BN.prototype.lt=function(et){return -1===this.cmp(et)},BN.prototype.lten=function(et){return 0>=this.cmpn(et)},BN.prototype.lte=function(et){return 0>=this.cmp(et)},BN.prototype.eqn=function(et){return 0===this.cmpn(et)},BN.prototype.eq=function(et){return 0===this.cmp(et)},BN.red=function(et){return new Red(et)},BN.prototype.toRed=function(et){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),et.convertTo(this)._forceRed(et)},BN.prototype.fromRed=function(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function(et){return this.red=et,this},BN.prototype.forceRed=function(et){return assert(!this.red,"Already a number in reduction context"),this._forceRed(et)},BN.prototype.redAdd=function(et){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,et)},BN.prototype.redIAdd=function(et){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,et)},BN.prototype.redSub=function(et){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,et)},BN.prototype.redISub=function(et){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,et)},BN.prototype.redShl=function(et){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,et)},BN.prototype.redMul=function(et){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,et),this.red.mul(this,et)},BN.prototype.redIMul=function(et){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,et),this.red.imul(this,et)},BN.prototype.redSqr=function(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function(et){return assert(this.red&&!et.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,et)};var ep={k256:null,p224:null,p192:null,p25519:null};function MPrime(et,eo){this.name=et,this.p=new BN(eo,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(et){if("string"==typeof et){var eo=BN._prime(et);this.m=eo.p,this.prime=eo}else assert(et.gtn(1),"modulus must be greater than 1"),this.m=et,this.prime=null}function Mont(et){Red.call(this,et),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}MPrime.prototype._tmp=function(){var et=new BN(null);return et.words=Array(Math.ceil(this.n/13)),et},MPrime.prototype.ireduce=function(et){var eo,ei=et;do this.split(ei,this.tmp),eo=(ei=(ei=this.imulK(ei)).iadd(this.tmp)).bitLength();while(eo>this.n);var ea=eo<this.n?-1:ei.ucmp(this.p);return 0===ea?(ei.words[0]=0,ei.length=1):ea>0?ei.isub(this.p):void 0!==ei.strip?ei.strip():ei._strip(),ei},MPrime.prototype.split=function(et,eo){et.iushrn(this.n,0,eo)},MPrime.prototype.imulK=function(et){return et.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function(et,eo){for(var ei=4194303,ea=Math.min(et.length,9),eu=0;eu<ea;eu++)eo.words[eu]=et.words[eu];if(eo.length=ea,et.length<=9){et.words[0]=0,et.length=1;return}var ed=et.words[9];for(eu=10,eo.words[eo.length++]=ed&ei;eu<et.length;eu++){var eh=0|et.words[eu];et.words[eu-10]=(eh&ei)<<4|ed>>>22,ed=eh}ed>>>=22,et.words[eu-10]=ed,0===ed&&et.length>10?et.length-=10:et.length-=9},K256.prototype.imulK=function(et){et.words[et.length]=0,et.words[et.length+1]=0,et.length+=2;for(var eo=0,ei=0;ei<et.length;ei++){var ea=0|et.words[ei];eo+=977*ea,et.words[ei]=67108863&eo,eo=64*ea+(eo/67108864|0)}return 0===et.words[et.length-1]&&(et.length--,0===et.words[et.length-1]&&et.length--),et},inherits(P224,MPrime),inherits(P192,MPrime),inherits(P25519,MPrime),P25519.prototype.imulK=function(et){for(var eo=0,ei=0;ei<et.length;ei++){var ea=(0|et.words[ei])*19+eo,eu=67108863&ea;ea>>>=26,et.words[ei]=eu,eo=ea}return 0!==eo&&(et.words[et.length++]=eo),et},BN._prime=function(et){var eo;if(ep[et])return ep[et];if("k256"===et)eo=new K256;else if("p224"===et)eo=new P224;else if("p192"===et)eo=new P192;else if("p25519"===et)eo=new P25519;else throw Error("Unknown prime "+et);return ep[et]=eo,eo},Red.prototype._verify1=function(et){assert(0===et.negative,"red works only with positives"),assert(et.red,"red works only with red numbers")},Red.prototype._verify2=function(et,eo){assert((et.negative|eo.negative)==0,"red works only with positives"),assert(et.red&&et.red===eo.red,"red works only with red numbers")},Red.prototype.imod=function(et){return this.prime?this.prime.ireduce(et)._forceRed(this):(move(et,et.umod(this.m)._forceRed(this)),et)},Red.prototype.neg=function(et){return et.isZero()?et.clone():this.m.sub(et)._forceRed(this)},Red.prototype.add=function(et,eo){this._verify2(et,eo);var ei=et.add(eo);return ei.cmp(this.m)>=0&&ei.isub(this.m),ei._forceRed(this)},Red.prototype.iadd=function(et,eo){this._verify2(et,eo);var ei=et.iadd(eo);return ei.cmp(this.m)>=0&&ei.isub(this.m),ei},Red.prototype.sub=function(et,eo){this._verify2(et,eo);var ei=et.sub(eo);return 0>ei.cmpn(0)&&ei.iadd(this.m),ei._forceRed(this)},Red.prototype.isub=function(et,eo){this._verify2(et,eo);var ei=et.isub(eo);return 0>ei.cmpn(0)&&ei.iadd(this.m),ei},Red.prototype.shl=function(et,eo){return this._verify1(et),this.imod(et.ushln(eo))},Red.prototype.imul=function(et,eo){return this._verify2(et,eo),this.imod(et.imul(eo))},Red.prototype.mul=function(et,eo){return this._verify2(et,eo),this.imod(et.mul(eo))},Red.prototype.isqr=function(et){return this.imul(et,et.clone())},Red.prototype.sqr=function(et){return this.mul(et,et)},Red.prototype.sqrt=function(et){if(et.isZero())return et.clone();var eo=this.m.andln(3);if(assert(eo%2==1),3===eo){var ei=this.m.add(new BN(1)).iushrn(2);return this.pow(et,ei)}for(var ea=this.m.subn(1),eu=0;!ea.isZero()&&0===ea.andln(1);)eu++,ea.iushrn(1);assert(!ea.isZero());var ed=new BN(1).toRed(this),eh=ed.redNeg(),ep=this.m.subn(1).iushrn(1),ef=this.m.bitLength();for(ef=new BN(2*ef*ef).toRed(this);0!==this.pow(ef,ep).cmp(eh);)ef.redIAdd(eh);for(var em=this.pow(ef,ea),eg=this.pow(et,ea.addn(1).iushrn(1)),ey=this.pow(et,ea),eC=eu;0!==ey.cmp(ed);){for(var eS=ey,e_=0;0!==eS.cmp(ed);e_++)eS=eS.redSqr();assert(e_<eC);var ew=this.pow(em,new BN(1).iushln(eC-e_-1));eg=eg.redMul(ew),em=ew.redSqr(),ey=ey.redMul(em),eC=e_}return eg},Red.prototype.invm=function(et){var eo=et._invmp(this.m);return 0!==eo.negative?(eo.negative=0,this.imod(eo).redNeg()):this.imod(eo)},Red.prototype.pow=function(et,eo){if(eo.isZero())return new BN(1).toRed(this);if(0===eo.cmpn(1))return et.clone();var ei=4,ea=Array(16);ea[0]=new BN(1).toRed(this),ea[1]=et;for(var eu=2;eu<ea.length;eu++)ea[eu]=this.mul(ea[eu-1],et);var ed=ea[0],eh=0,ep=0,ef=eo.bitLength()%26;for(0===ef&&(ef=26),eu=eo.length-1;eu>=0;eu--){for(var em=eo.words[eu],eg=ef-1;eg>=0;eg--){var ey=em>>eg&1;if(ed!==ea[0]&&(ed=this.sqr(ed)),0===ey&&0===eh){ep=0;continue}eh<<=1,eh|=ey,(++ep===ei||0===eu&&0===eg)&&(ed=this.mul(ed,ea[eh]),ep=0,eh=0)}ef=26}return ed},Red.prototype.convertTo=function(et){var eo=et.umod(this.m);return eo===et?eo.clone():eo},Red.prototype.convertFrom=function(et){var eo=et.clone();return eo.red=null,eo},BN.mont=function(et){return new Mont(et)},inherits(Mont,Red),Mont.prototype.convertTo=function(et){return this.imod(et.ushln(this.shift))},Mont.prototype.convertFrom=function(et){var eo=this.imod(et.mul(this.rinv));return eo.red=null,eo},Mont.prototype.imul=function(et,eo){if(et.isZero()||eo.isZero())return et.words[0]=0,et.length=1,et;var ei=et.imul(eo),ea=ei.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),eu=ei.isub(ea).iushrn(this.shift),ed=eu;return eu.cmp(this.m)>=0?ed=eu.isub(this.m):0>eu.cmpn(0)&&(ed=eu.iadd(this.m)),ed._forceRed(this)},Mont.prototype.mul=function(et,eo){if(et.isZero()||eo.isZero())return new BN(0)._forceRed(this);var ei=et.mul(eo),ea=ei.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),eu=ei.isub(ea).iushrn(this.shift),ed=eu;return eu.cmp(this.m)>=0?ed=eu.isub(this.m):0>eu.cmpn(0)&&(ed=eu.iadd(this.m)),ed._forceRed(this)},Mont.prototype.invm=function(et){return this.imod(et._invmp(this.m).mul(this.r2))._forceRed(this)}}(et=ei.nmd(et),this)},3500:function(et,eo,ei){var ea;function Rand(et){this.rand=et}if(et.exports=function(et){return ea||(ea=new Rand(null)),ea.generate(et)},et.exports.Rand=Rand,Rand.prototype.generate=function(et){return this._rand(et)},Rand.prototype._rand=function(et){if(this.rand.getBytes)return this.rand.getBytes(et);for(var eo=new Uint8Array(et),ei=0;ei<eo.length;ei++)eo[ei]=this.rand.getByte();return eo},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?Rand.prototype._rand=function(et){var eo=new Uint8Array(et);return self.crypto.getRandomValues(eo),eo}:self.msCrypto&&self.msCrypto.getRandomValues?Rand.prototype._rand=function(et){var eo=new Uint8Array(et);return self.msCrypto.getRandomValues(eo),eo}:"object"==typeof window&&(Rand.prototype._rand=function(){throw Error("Not implemented yet")});else try{var eu=ei(6113);if("function"!=typeof eu.randomBytes)throw Error("Not supported");Rand.prototype._rand=function(et){return eu.randomBytes(et)}}catch(et){}},1387:function(et,eo,ei){var ea=ei(6911).Buffer;function asUInt32Array(et){ea.isBuffer(et)||(et=ea.from(et));for(var eo=et.length/4|0,ei=Array(eo),eu=0;eu<eo;eu++)ei[eu]=et.readUInt32BE(4*eu);return ei}function scrubVec(et){for(var eo=0;eo<et.length;et++)et[eo]=0}function cryptBlock(et,eo,ei,ea,eu){for(var ed,eh,ep,ef,em=ei[0],eg=ei[1],ey=ei[2],eC=ei[3],eS=et[0]^eo[0],e_=et[1]^eo[1],ew=et[2]^eo[2],eA=et[3]^eo[3],eI=4,eR=1;eR<eu;eR++)ed=em[eS>>>24]^eg[e_>>>16&255]^ey[ew>>>8&255]^eC[255&eA]^eo[eI++],eh=em[e_>>>24]^eg[ew>>>16&255]^ey[eA>>>8&255]^eC[255&eS]^eo[eI++],ep=em[ew>>>24]^eg[eA>>>16&255]^ey[eS>>>8&255]^eC[255&e_]^eo[eI++],ef=em[eA>>>24]^eg[eS>>>16&255]^ey[e_>>>8&255]^eC[255&ew]^eo[eI++],eS=ed,e_=eh,ew=ep,eA=ef;return ed=(ea[eS>>>24]<<24|ea[e_>>>16&255]<<16|ea[ew>>>8&255]<<8|ea[255&eA])^eo[eI++],eh=(ea[e_>>>24]<<24|ea[ew>>>16&255]<<16|ea[eA>>>8&255]<<8|ea[255&eS])^eo[eI++],[ed>>>=0,eh>>>=0,ep=((ea[ew>>>24]<<24|ea[eA>>>16&255]<<16|ea[eS>>>8&255]<<8|ea[255&e_])^eo[eI++])>>>0,ef=((ea[eA>>>24]<<24|ea[eS>>>16&255]<<16|ea[e_>>>8&255]<<8|ea[255&ew])^eo[eI++])>>>0]}var eu=[0,1,2,4,8,16,32,64,128,27,54],ed=function(){for(var et=Array(256),eo=0;eo<256;eo++)eo<128?et[eo]=eo<<1:et[eo]=eo<<1^283;for(var ei=[],ea=[],eu=[[],[],[],[]],ed=[[],[],[],[]],eh=0,ep=0,ef=0;ef<256;++ef){var em=ep^ep<<1^ep<<2^ep<<3^ep<<4;em=em>>>8^255&em^99,ei[eh]=em,ea[em]=eh;var eg=et[eh],ey=et[eg],eC=et[ey],eS=257*et[em]^16843008*em;eu[0][eh]=eS<<24|eS>>>8,eu[1][eh]=eS<<16|eS>>>16,eu[2][eh]=eS<<8|eS>>>24,eu[3][eh]=eS,eS=16843009*eC^65537*ey^257*eg^16843008*eh,ed[0][em]=eS<<24|eS>>>8,ed[1][em]=eS<<16|eS>>>16,ed[2][em]=eS<<8|eS>>>24,ed[3][em]=eS,0===eh?eh=ep=1:(eh=eg^et[et[et[eC^eg]]],ep^=et[et[ep]])}return{SBOX:ei,INV_SBOX:ea,SUB_MIX:eu,INV_SUB_MIX:ed}}();function AES(et){this._key=asUInt32Array(et),this._reset()}AES.blockSize=16,AES.keySize=32,AES.prototype.blockSize=AES.blockSize,AES.prototype.keySize=AES.keySize,AES.prototype._reset=function(){for(var et=this._key,eo=et.length,ei=eo+6,ea=(ei+1)*4,eh=[],ep=0;ep<eo;ep++)eh[ep]=et[ep];for(ep=eo;ep<ea;ep++){var ef=eh[ep-1];ep%eo==0?(ef=ef<<8|ef>>>24,ef=(ed.SBOX[ef>>>24]<<24|ed.SBOX[ef>>>16&255]<<16|ed.SBOX[ef>>>8&255]<<8|ed.SBOX[255&ef])^eu[ep/eo|0]<<24):eo>6&&ep%eo==4&&(ef=ed.SBOX[ef>>>24]<<24|ed.SBOX[ef>>>16&255]<<16|ed.SBOX[ef>>>8&255]<<8|ed.SBOX[255&ef]),eh[ep]=eh[ep-eo]^ef}for(var em=[],eg=0;eg<ea;eg++){var ey=ea-eg,eC=eh[ey-(eg%4?0:4)];eg<4||ey<=4?em[eg]=eC:em[eg]=ed.INV_SUB_MIX[0][ed.SBOX[eC>>>24]]^ed.INV_SUB_MIX[1][ed.SBOX[eC>>>16&255]]^ed.INV_SUB_MIX[2][ed.SBOX[eC>>>8&255]]^ed.INV_SUB_MIX[3][ed.SBOX[255&eC]]}this._nRounds=ei,this._keySchedule=eh,this._invKeySchedule=em},AES.prototype.encryptBlockRaw=function(et){return cryptBlock(et=asUInt32Array(et),this._keySchedule,ed.SUB_MIX,ed.SBOX,this._nRounds)},AES.prototype.encryptBlock=function(et){var eo=this.encryptBlockRaw(et),ei=ea.allocUnsafe(16);return ei.writeUInt32BE(eo[0],0),ei.writeUInt32BE(eo[1],4),ei.writeUInt32BE(eo[2],8),ei.writeUInt32BE(eo[3],12),ei},AES.prototype.decryptBlock=function(et){var eo=(et=asUInt32Array(et))[1];et[1]=et[3],et[3]=eo;var ei=cryptBlock(et,this._invKeySchedule,ed.INV_SUB_MIX,ed.INV_SBOX,this._nRounds),eu=ea.allocUnsafe(16);return eu.writeUInt32BE(ei[0],0),eu.writeUInt32BE(ei[3],4),eu.writeUInt32BE(ei[2],8),eu.writeUInt32BE(ei[1],12),eu},AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)},et.exports.AES=AES},6624:function(et,eo,ei){var ea=ei(1387),eu=ei(6911).Buffer,ed=ei(1043),eh=ei(3782),ep=ei(7225),ef=ei(4734),em=ei(598);function xorTest(et,eo){var ei=0;et.length!==eo.length&&ei++;for(var ea=Math.min(et.length,eo.length),eu=0;eu<ea;++eu)ei+=et[eu]^eo[eu];return ei}function calcIv(et,eo,ei){if(12===eo.length)return et._finID=eu.concat([eo,eu.from([0,0,0,1])]),eu.concat([eo,eu.from([0,0,0,2])]);var ea=new ep(ei),ed=eo.length,eh=ed%16;ea.update(eo),eh&&(eh=16-eh,ea.update(eu.alloc(eh,0))),ea.update(eu.alloc(8,0));var ef=8*ed,eg=eu.alloc(8);eg.writeUIntBE(ef,0,8),ea.update(eg),et._finID=ea.state;var ey=eu.from(et._finID);return em(ey),ey}function StreamCipher(et,eo,ei,eh){ed.call(this);var ef=eu.alloc(4,0);this._cipher=new ea.AES(eo);var em=this._cipher.encryptBlock(ef);this._ghash=new ep(em),ei=calcIv(this,ei,em),this._prev=eu.from(ei),this._cache=eu.allocUnsafe(0),this._secCache=eu.allocUnsafe(0),this._decrypt=eh,this._alen=0,this._len=0,this._mode=et,this._authTag=null,this._called=!1}eh(StreamCipher,ed),StreamCipher.prototype._update=function(et){if(!this._called&&this._alen){var eo=16-this._alen%16;eo<16&&(eo=eu.alloc(eo,0),this._ghash.update(eo))}this._called=!0;var ei=this._mode.encrypt(this,et);return this._decrypt?this._ghash.update(et):this._ghash.update(ei),this._len+=et.length,ei},StreamCipher.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var et=ef(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&xorTest(et,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=et,this._cipher.scrub()},StreamCipher.prototype.getAuthTag=function(){if(this._decrypt||!eu.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},StreamCipher.prototype.setAuthTag=function(et){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=et},StreamCipher.prototype.setAAD=function(et){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(et),this._alen+=et.length},et.exports=StreamCipher},6594:function(et,eo,ei){var ea=ei(2),eu=ei(2598),ed=ei(5866);function getCiphers(){return Object.keys(ed)}eo.createCipher=eo.Cipher=ea.createCipher,eo.createCipheriv=eo.Cipheriv=ea.createCipheriv,eo.createDecipher=eo.Decipher=eu.createDecipher,eo.createDecipheriv=eo.Decipheriv=eu.createDecipheriv,eo.listCiphers=eo.getCiphers=getCiphers},2598:function(et,eo,ei){var ea=ei(6624),eu=ei(6911).Buffer,ed=ei(6370),eh=ei(126),ep=ei(1043),ef=ei(1387),em=ei(8368);function Decipher(et,eo,ei){ep.call(this),this._cache=new Splitter,this._last=void 0,this._cipher=new ef.AES(eo),this._prev=eu.from(ei),this._mode=et,this._autopadding=!0}function Splitter(){this.cache=eu.allocUnsafe(0)}function unpad(et){var eo=et[15];if(eo<1||eo>16)throw Error("unable to decrypt data");for(var ei=-1;++ei<eo;)if(et[ei+(16-eo)]!==eo)throw Error("unable to decrypt data");if(16!==eo)return et.slice(0,16-eo)}function createDecipheriv(et,eo,ei){var ep=ed[et.toLowerCase()];if(!ep)throw TypeError("invalid suite type");if("string"==typeof ei&&(ei=eu.from(ei)),"GCM"!==ep.mode&&ei.length!==ep.iv)throw TypeError("invalid iv length "+ei.length);if("string"==typeof eo&&(eo=eu.from(eo)),eo.length!==ep.key/8)throw TypeError("invalid key length "+eo.length);return"stream"===ep.type?new eh(ep.module,eo,ei,!0):"auth"===ep.type?new ea(ep.module,eo,ei,!0):new Decipher(ep.module,eo,ei)}function createDecipher(et,eo){var ei=ed[et.toLowerCase()];if(!ei)throw TypeError("invalid suite type");var ea=em(eo,!1,ei.key,ei.iv);return createDecipheriv(et,ea.key,ea.iv)}ei(3782)(Decipher,ep),Decipher.prototype._update=function(et){this._cache.add(et);for(var eo,ei,ea=[];eo=this._cache.get(this._autopadding);)ei=this._mode.decrypt(this,eo),ea.push(ei);return eu.concat(ea)},Decipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return unpad(this._mode.decrypt(this,et));if(et)throw Error("data not multiple of block length")},Decipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this},Splitter.prototype.add=function(et){this.cache=eu.concat([this.cache,et])},Splitter.prototype.get=function(et){var eo;if(et){if(this.cache.length>16)return eo=this.cache.slice(0,16),this.cache=this.cache.slice(16),eo}else if(this.cache.length>=16)return eo=this.cache.slice(0,16),this.cache=this.cache.slice(16),eo;return null},Splitter.prototype.flush=function(){if(this.cache.length)return this.cache},eo.createDecipher=createDecipher,eo.createDecipheriv=createDecipheriv},2:function(et,eo,ei){var ea=ei(6370),eu=ei(6624),ed=ei(6911).Buffer,eh=ei(126),ep=ei(1043),ef=ei(1387),em=ei(8368);function Cipher(et,eo,ei){ep.call(this),this._cache=new Splitter,this._cipher=new ef.AES(eo),this._prev=ed.from(ei),this._mode=et,this._autopadding=!0}ei(3782)(Cipher,ep),Cipher.prototype._update=function(et){this._cache.add(et);for(var eo,ei,ea=[];eo=this._cache.get();)ei=this._mode.encrypt(this,eo),ea.push(ei);return ed.concat(ea)};var eg=ed.alloc(16,16);function Splitter(){this.cache=ed.allocUnsafe(0)}function createCipheriv(et,eo,ei){var ep=ea[et.toLowerCase()];if(!ep)throw TypeError("invalid suite type");if("string"==typeof eo&&(eo=ed.from(eo)),eo.length!==ep.key/8)throw TypeError("invalid key length "+eo.length);if("string"==typeof ei&&(ei=ed.from(ei)),"GCM"!==ep.mode&&ei.length!==ep.iv)throw TypeError("invalid iv length "+ei.length);return"stream"===ep.type?new eh(ep.module,eo,ei):"auth"===ep.type?new eu(ep.module,eo,ei):new Cipher(ep.module,eo,ei)}function createCipher(et,eo){var ei=ea[et.toLowerCase()];if(!ei)throw TypeError("invalid suite type");var eu=em(eo,!1,ei.key,ei.iv);return createCipheriv(et,eu.key,eu.iv)}Cipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return et=this._mode.encrypt(this,et),this._cipher.scrub(),et;if(!et.equals(eg))throw this._cipher.scrub(),Error("data not multiple of block length")},Cipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this},Splitter.prototype.add=function(et){this.cache=ed.concat([this.cache,et])},Splitter.prototype.get=function(){if(this.cache.length>15){var et=this.cache.slice(0,16);return this.cache=this.cache.slice(16),et}return null},Splitter.prototype.flush=function(){for(var et=16-this.cache.length,eo=ed.allocUnsafe(et),ei=-1;++ei<et;)eo.writeUInt8(et,ei);return ed.concat([this.cache,eo])},eo.createCipheriv=createCipheriv,eo.createCipher=createCipher},7225:function(et,eo,ei){var ea=ei(6911).Buffer,eu=ea.alloc(16,0);function toArray(et){return[et.readUInt32BE(0),et.readUInt32BE(4),et.readUInt32BE(8),et.readUInt32BE(12)]}function fromArray(et){var eo=ea.allocUnsafe(16);return eo.writeUInt32BE(et[0]>>>0,0),eo.writeUInt32BE(et[1]>>>0,4),eo.writeUInt32BE(et[2]>>>0,8),eo.writeUInt32BE(et[3]>>>0,12),eo}function GHASH(et){this.h=et,this.state=ea.alloc(16,0),this.cache=ea.allocUnsafe(0)}GHASH.prototype.ghash=function(et){for(var eo=-1;++eo<et.length;)this.state[eo]^=et[eo];this._multiply()},GHASH.prototype._multiply=function(){for(var et,eo,ei=toArray(this.h),ea=[0,0,0,0],eu=-1;++eu<128;){for((this.state[~~(eu/8)]&1<<7-eu%8)!=0&&(ea[0]^=ei[0],ea[1]^=ei[1],ea[2]^=ei[2],ea[3]^=ei[3]),eo=(1&ei[3])!=0,et=3;et>0;et--)ei[et]=ei[et]>>>1|(1&ei[et-1])<<31;ei[0]=ei[0]>>>1,eo&&(ei[0]=-520093696^ei[0])}this.state=fromArray(ea)},GHASH.prototype.update=function(et){var eo;for(this.cache=ea.concat([this.cache,et]);this.cache.length>=16;)eo=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(eo)},GHASH.prototype.final=function(et,eo){return this.cache.length&&this.ghash(ea.concat([this.cache,eu],16)),this.ghash(fromArray([0,et,0,eo])),this.state},et.exports=GHASH},598:function(et){function incr32(et){for(var eo,ei=et.length;ei--;)if(255===(eo=et.readUInt8(ei)))et.writeUInt8(0,ei);else{eo++,et.writeUInt8(eo,ei);break}}et.exports=incr32},9825:function(et,eo,ei){var ea=ei(4734);eo.encrypt=function(et,eo){var ei=ea(eo,et._prev);return et._prev=et._cipher.encryptBlock(ei),et._prev},eo.decrypt=function(et,eo){var ei=et._prev;return et._prev=eo,ea(et._cipher.decryptBlock(eo),ei)}},321:function(et,eo,ei){var ea=ei(6911).Buffer,eu=ei(4734);function encryptStart(et,eo,ei){var ed=eo.length,eh=eu(eo,et._cache);return et._cache=et._cache.slice(ed),et._prev=ea.concat([et._prev,ei?eo:eh]),eh}eo.encrypt=function(et,eo,ei){for(var eu,ed=ea.allocUnsafe(0);eo.length;)if(0===et._cache.length&&(et._cache=et._cipher.encryptBlock(et._prev),et._prev=ea.allocUnsafe(0)),et._cache.length<=eo.length)eu=et._cache.length,ed=ea.concat([ed,encryptStart(et,eo.slice(0,eu),ei)]),eo=eo.slice(eu);else{ed=ea.concat([ed,encryptStart(et,eo,ei)]);break}return ed}},3147:function(et,eo,ei){var ea=ei(6911).Buffer;function encryptByte(et,eo,ei){for(var ea,eu,ed,eh=-1,ep=8,ef=0;++eh<ep;)ea=et._cipher.encryptBlock(et._prev),eu=eo&1<<7-eh?128:0,ef+=(128&(ed=ea[0]^eu))>>eh%8,et._prev=shiftIn(et._prev,ei?eu:ed);return ef}function shiftIn(et,eo){var ei=et.length,eu=-1,ed=ea.allocUnsafe(et.length);for(et=ea.concat([et,ea.from([eo])]);++eu<ei;)ed[eu]=et[eu]<<1|et[eu+1]>>7;return ed}eo.encrypt=function(et,eo,ei){for(var eu=eo.length,ed=ea.allocUnsafe(eu),eh=-1;++eh<eu;)ed[eh]=encryptByte(et,eo[eh],ei);return ed}},2430:function(et,eo,ei){var ea=ei(6911).Buffer;function encryptByte(et,eo,ei){var eu=et._cipher.encryptBlock(et._prev)[0]^eo;return et._prev=ea.concat([et._prev.slice(1),ea.from([ei?eo:eu])]),eu}eo.encrypt=function(et,eo,ei){for(var eu=eo.length,ed=ea.allocUnsafe(eu),eh=-1;++eh<eu;)ed[eh]=encryptByte(et,eo[eh],ei);return ed}},3361:function(et,eo,ei){var ea=ei(4734),eu=ei(6911).Buffer,ed=ei(598);function getBlock(et){var eo=et._cipher.encryptBlockRaw(et._prev);return ed(et._prev),eo}var eh=16;eo.encrypt=function(et,eo){var ei=Math.ceil(eo.length/eh),ed=et._cache.length;et._cache=eu.concat([et._cache,eu.allocUnsafe(ei*eh)]);for(var ep=0;ep<ei;ep++){var ef=getBlock(et),em=ed+ep*eh;et._cache.writeUInt32BE(ef[0],em+0),et._cache.writeUInt32BE(ef[1],em+4),et._cache.writeUInt32BE(ef[2],em+8),et._cache.writeUInt32BE(ef[3],em+12)}var eg=et._cache.slice(0,eo.length);return et._cache=et._cache.slice(eo.length),ea(eo,eg)}},1590:function(et,eo){eo.encrypt=function(et,eo){return et._cipher.encryptBlock(eo)},eo.decrypt=function(et,eo){return et._cipher.decryptBlock(eo)}},6370:function(et,eo,ei){var ea={ECB:ei(1590),CBC:ei(9825),CFB:ei(321),CFB8:ei(2430),CFB1:ei(3147),OFB:ei(3412),CTR:ei(3361),GCM:ei(3361)},eu=ei(5866);for(var ed in eu)eu[ed].module=ea[eu[ed].mode];et.exports=eu},3412:function(et,eo,ei){var ea=ei(4734);function getBlock(et){return et._prev=et._cipher.encryptBlock(et._prev),et._prev}eo.encrypt=function(et,eo){for(;et._cache.length<eo.length;)et._cache=eu.concat([et._cache,getBlock(et)]);var ei=et._cache.slice(0,eo.length);return et._cache=et._cache.slice(eo.length),ea(eo,ei)}},126:function(et,eo,ei){var ea=ei(1387),eu=ei(6911).Buffer,ed=ei(1043);function StreamCipher(et,eo,ei,eh){ed.call(this),this._cipher=new ea.AES(eo),this._prev=eu.from(ei),this._cache=eu.allocUnsafe(0),this._secCache=eu.allocUnsafe(0),this._decrypt=eh,this._mode=et}ei(3782)(StreamCipher,ed),StreamCipher.prototype._update=function(et){return this._mode.encrypt(this,et,this._decrypt)},StreamCipher.prototype._final=function(){this._cipher.scrub()},et.exports=StreamCipher},8996:function(et,eo,ei){var ea=ei(5238),eu=ei(6594),ed=ei(6370),eh=ei(6280),ep=ei(8368);function createCipher(et,eo){if(ed[et=et.toLowerCase()])ei=ed[et].key,ea=ed[et].iv;else if(eh[et])ei=8*eh[et].key,ea=eh[et].iv;else throw TypeError("invalid suite type");var ei,ea,eu=ep(eo,!1,ei,ea);return createCipheriv(et,eu.key,eu.iv)}function createDecipher(et,eo){if(ed[et=et.toLowerCase()])ei=ed[et].key,ea=ed[et].iv;else if(eh[et])ei=8*eh[et].key,ea=eh[et].iv;else throw TypeError("invalid suite type");var ei,ea,eu=ep(eo,!1,ei,ea);return createDecipheriv(et,eu.key,eu.iv)}function createCipheriv(et,eo,ei){if(ed[et=et.toLowerCase()])return eu.createCipheriv(et,eo,ei);if(eh[et])return new ea({key:eo,iv:ei,mode:et});throw TypeError("invalid suite type")}function createDecipheriv(et,eo,ei){if(ed[et=et.toLowerCase()])return eu.createDecipheriv(et,eo,ei);if(eh[et])return new ea({key:eo,iv:ei,mode:et,decrypt:!0});throw TypeError("invalid suite type")}function getCiphers(){return Object.keys(eh).concat(eu.getCiphers())}eo.createCipher=eo.Cipher=createCipher,eo.createCipheriv=eo.Cipheriv=createCipheriv,eo.createDecipher=eo.Decipher=createDecipher,eo.createDecipheriv=eo.Decipheriv=createDecipheriv,eo.listCiphers=eo.getCiphers=getCiphers},5238:function(et,eo,ei){var ea=ei(1043),eu=ei(9536),ed=ei(3782),eh=ei(6911).Buffer,ep={"des-ede3-cbc":eu.CBC.instantiate(eu.EDE),"des-ede3":eu.EDE,"des-ede-cbc":eu.CBC.instantiate(eu.EDE),"des-ede":eu.EDE,"des-cbc":eu.CBC.instantiate(eu.DES),"des-ecb":eu.DES};function DES(et){ea.call(this);var eo,ei=et.mode.toLowerCase(),eu=ep[ei];eo=et.decrypt?"decrypt":"encrypt";var ed=et.key;eh.isBuffer(ed)||(ed=eh.from(ed)),("des-ede"===ei||"des-ede-cbc"===ei)&&(ed=eh.concat([ed,ed.slice(0,8)]));var ef=et.iv;eh.isBuffer(ef)||(ef=eh.from(ef)),this._des=eu.create({key:ed,iv:ef,type:eo})}ep.des=ep["des-cbc"],ep.des3=ep["des-ede3-cbc"],et.exports=DES,ed(DES,ea),DES.prototype._update=function(et){return eh.from(this._des.update(et))},DES.prototype._final=function(){return eh.from(this._des.final())}},6280:function(et,eo){eo["des-ecb"]={key:8,iv:0},eo["des-cbc"]=eo.des={key:8,iv:8},eo["des-ede3-cbc"]=eo.des3={key:24,iv:8},eo["des-ede3"]={key:24,iv:0},eo["des-ede-cbc"]={key:16,iv:8},eo["des-ede"]={key:16,iv:0}},7166:function(et,eo,ei){var ea=ei(711),ed=ei(7223);function blind(et){var eo=getr(et);return{blinder:eo.toRed(ea.mont(et.modulus)).redPow(new ea(et.publicExponent)).fromRed(),unblinder:eo.invm(et.modulus)}}function crt(et,eo){var ei=blind(eo),ed=eo.modulus.byteLength();ea.mont(eo.modulus);var eh=new ea(et).mul(ei.blinder).umod(eo.modulus),ep=eh.toRed(ea.mont(eo.prime1)),ef=eh.toRed(ea.mont(eo.prime2)),em=eo.coefficient,eg=eo.prime1,ey=eo.prime2,eC=ep.redPow(eo.exponent1),eS=ef.redPow(eo.exponent2);eC=eC.fromRed(),eS=eS.fromRed();var e_=eC.isub(eS).imul(em).umod(eg);return e_.imul(ey),eS.iadd(e_),new eu(eS.imul(ei.unblinder).umod(eo.modulus).toArray(!1,ed))}function getr(et){for(var eo=et.modulus.byteLength(),ei=new ea(ed(eo));ei.cmp(et.modulus)>=0||!ei.umod(et.prime1)||!ei.umod(et.prime2);)ei=new ea(ed(eo));return ei}et.exports=crt,crt.getr=getr},9276:function(et,eo,ei){et.exports=ei(2908)},4078:function(et,eo,ei){var ea=ei(6911).Buffer,eu=ei(9739),ed=ei(3726),eh=ei(3782),ep=ei(9807),ef=ei(4013),em=ei(2908);function Sign(et){ed.Writable.call(this);var eo=em[et];if(!eo)throw Error("Unknown message digest");this._hashType=eo.hash,this._hash=eu(eo.hash),this._tag=eo.id,this._signType=eo.sign}function Verify(et){ed.Writable.call(this);var eo=em[et];if(!eo)throw Error("Unknown message digest");this._hash=eu(eo.hash),this._tag=eo.id,this._signType=eo.sign}function createSign(et){return new Sign(et)}function createVerify(et){return new Verify(et)}Object.keys(em).forEach(function(et){em[et].id=ea.from(em[et].id,"hex"),em[et.toLowerCase()]=em[et]}),eh(Sign,ed.Writable),Sign.prototype._write=function(et,eo,ei){this._hash.update(et),ei()},Sign.prototype.update=function(et,eo){return"string"==typeof et&&(et=ea.from(et,eo)),this._hash.update(et),this},Sign.prototype.sign=function(et,eo){this.end();var ei=ep(this._hash.digest(),et,this._hashType,this._signType,this._tag);return eo?ei.toString(eo):ei},eh(Verify,ed.Writable),Verify.prototype._write=function(et,eo,ei){this._hash.update(et),ei()},Verify.prototype.update=function(et,eo){return"string"==typeof et&&(et=ea.from(et,eo)),this._hash.update(et),this},Verify.prototype.verify=function(et,eo,ei){return"string"==typeof eo&&(eo=ea.from(eo,ei)),this.end(),ef(eo,this._hash.digest(),et,this._signType,this._tag)},et.exports={Sign:createSign,Verify:createVerify,createSign:createSign,createVerify:createVerify}},9807:function(et,eo,ei){var ea=ei(6911).Buffer,eu=ei(4873),ed=ei(7166),eh=ei(949).ec,ep=ei(1670),ef=ei(9902),em=ei(9267);function sign(et,eo,ei,eu,eh){var ep=ef(eo);if(ep.curve){if("ecdsa"!==eu&&"ecdsa/rsa"!==eu)throw Error("wrong private key type");return ecSign(et,ep)}if("dsa"===ep.type){if("dsa"!==eu)throw Error("wrong private key type");return dsaSign(et,ep,ei)}if("rsa"!==eu&&"ecdsa/rsa"!==eu)throw Error("wrong private key type");et=ea.concat([eh,et]);for(var em=ep.modulus.byteLength(),eg=[0,1];et.length+eg.length+1<em;)eg.push(255);eg.push(0);for(var ey=-1;++ey<et.length;)eg.push(et[ey]);return ed(eg,ep)}function ecSign(et,eo){var ei=em[eo.curve.join(".")];if(!ei)throw Error("unknown curve "+eo.curve.join("."));var eu=new eh(ei).keyFromPrivate(eo.privateKey).sign(et);return ea.from(eu.toDER())}function dsaSign(et,eo,ei){for(var ea,eu=eo.params.priv_key,ed=eo.params.p,eh=eo.params.q,ef=eo.params.g,em=new ep(0),eg=bits2int(et,eh).mod(eh),ey=!1,eC=getKey(eu,eh,et,ei);!1===ey;)em=makeR(ef,ea=makeKey(eh,eC,ei),ed,eh),0===(ey=ea.invm(eh).imul(eg.add(eu.mul(em))).mod(eh)).cmpn(0)&&(ey=!1,em=new ep(0));return toDER(em,ey)}function toDER(et,eo){et=et.toArray(),eo=eo.toArray(),128&et[0]&&(et=[0].concat(et)),128&eo[0]&&(eo=[0].concat(eo));var ei=[48,et.length+eo.length+4,2,et.length];return ei=ei.concat(et,[2,eo.length],eo),ea.from(ei)}function getKey(et,eo,ei,ed){if((et=ea.from(et.toArray())).length<eo.byteLength()){var eh=ea.alloc(eo.byteLength()-et.length);et=ea.concat([eh,et])}var ep=ei.length,ef=bits2octets(ei,eo),em=ea.alloc(ep);em.fill(1);var eg=ea.alloc(ep);return eg=eu(ed,eg).update(em).update(ea.from([0])).update(et).update(ef).digest(),em=eu(ed,eg).update(em).digest(),eg=eu(ed,eg).update(em).update(ea.from([1])).update(et).update(ef).digest(),em=eu(ed,eg).update(em).digest(),{k:eg,v:em}}function bits2int(et,eo){var ei=new ep(et),ea=(et.length<<3)-eo.bitLength();return ea>0&&ei.ishrn(ea),ei}function bits2octets(et,eo){et=(et=bits2int(et,eo)).mod(eo);var ei=ea.from(et.toArray());if(ei.length<eo.byteLength()){var eu=ea.alloc(eo.byteLength()-ei.length);ei=ea.concat([eu,ei])}return ei}function makeKey(et,eo,ei){var ed,eh;do{for(ed=ea.alloc(0);8*ed.length<et.bitLength();)eo.v=eu(ei,eo.k).update(eo.v).digest(),ed=ea.concat([ed,eo.v]);eh=bits2int(ed,et),eo.k=eu(ei,eo.k).update(eo.v).update(ea.from([0])).digest(),eo.v=eu(ei,eo.k).update(eo.v).digest()}while(-1!==eh.cmp(et));return eh}function makeR(et,eo,ei,ea){return et.toRed(ep.mont(ei)).redPow(eo).fromRed().mod(ea)}et.exports=sign,et.exports.getKey=getKey,et.exports.makeKey=makeKey},4013:function(et,eo,ei){var ea=ei(6911).Buffer,eu=ei(1670),ed=ei(949).ec,eh=ei(9902),ep=ei(9267);function verify(et,eo,ei,ed,ep){var ef=eh(ei);if("ec"===ef.type){if("ecdsa"!==ed&&"ecdsa/rsa"!==ed)throw Error("wrong public key type");return ecVerify(et,eo,ef)}if("dsa"===ef.type){if("dsa"!==ed)throw Error("wrong public key type");return dsaVerify(et,eo,ef)}if("rsa"!==ed&&"ecdsa/rsa"!==ed)throw Error("wrong public key type");eo=ea.concat([ep,eo]);for(var em=ef.modulus.byteLength(),eg=[1],ey=0;eo.length+eg.length+2<em;)eg.push(255),ey++;eg.push(0);for(var eC=-1;++eC<eo.length;)eg.push(eo[eC]);eg=ea.from(eg);var eS=eu.mont(ef.modulus);et=(et=new eu(et).toRed(eS)).redPow(new eu(ef.publicExponent));var e_=ey<8?1:0;for(em=Math.min((et=ea.from(et.fromRed().toArray())).length,eg.length),et.length!==eg.length&&(e_=1),eC=-1;++eC<em;)e_|=et[eC]^eg[eC];return 0===e_}function ecVerify(et,eo,ei){var ea=ep[ei.data.algorithm.curve.join(".")];if(!ea)throw Error("unknown curve "+ei.data.algorithm.curve.join("."));var eu=new ed(ea),eh=ei.data.subjectPrivateKey.data;return eu.verify(eo,et,eh)}function dsaVerify(et,eo,ei){var ea=ei.data.p,ed=ei.data.q,ep=ei.data.g,ef=ei.data.pub_key,em=eh.signature.decode(et,"der"),eg=em.s,ey=em.r;checkValue(eg,ed),checkValue(ey,ed);var eC=eu.mont(ea),eS=eg.invm(ed);return 0===ep.toRed(eC).redPow(new eu(eo).mul(eS).mod(ed)).fromRed().mul(ef.toRed(eC).redPow(ey.mul(eS).mod(ed)).fromRed()).mod(ea).mod(ed).cmp(ey)}function checkValue(et,eo){if(0>=et.cmpn(0)||et.cmp(eo)>=eo)throw Error("invalid sig")}et.exports=verify},4734:function(et){et.exports=function(et,eo){for(var ei=Math.min(et.length,eo.length),ea=new eu(ei),ed=0;ed<ei;++ed)ea[ed]=et[ed]^eo[ed];return ea}},1043:function(et,eo,ei){var ea=ei(6911).Buffer,eu=ei(2781).Transform,ed=ei(1576).StringDecoder;function CipherBase(et){eu.call(this),this.hashMode="string"==typeof et,this.hashMode?this[et]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}ei(3782)(CipherBase,eu),CipherBase.prototype.update=function(et,eo,ei){"string"==typeof et&&(et=ea.from(et,eo));var eu=this._update(et);return this.hashMode?this:(ei&&(eu=this._toString(eu,ei)),eu)},CipherBase.prototype.setAutoPadding=function(){},CipherBase.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},CipherBase.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},CipherBase.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},CipherBase.prototype._transform=function(et,eo,ei){var ea;try{this.hashMode?this._update(et):this.push(this._update(et))}catch(et){ea=et}finally{ei(ea)}},CipherBase.prototype._flush=function(et){var eo;try{this.push(this.__final())}catch(et){eo=et}et(eo)},CipherBase.prototype._finalOrDigest=function(et){var eo=this.__final()||ea.alloc(0);return et&&(eo=this._toString(eo,et,!0)),eo},CipherBase.prototype._toString=function(et,eo,ei){if(this._decoder||(this._decoder=new ed(eo),this._encoding=eo),this._encoding!==eo)throw Error("can't switch encodings");var ea=this._decoder.write(et);return ei&&(ea+=this._decoder.end()),ea},et.exports=CipherBase},9942:function(et,eo,ei){var ea=ei(949),ed=ei(711);et.exports=function(et){return new ECDH(et)};var eh={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function ECDH(et){this.curveType=eh[et],this.curveType||(this.curveType={name:et}),this.curve=new ea.ec(this.curveType.name),this.keys=void 0}function formatReturnValue(et,eo,ei){Array.isArray(et)||(et=et.toArray());var ea=new eu(et);if(ei&&ea.length<ei){var ed=new eu(ei-ea.length);ed.fill(0),ea=eu.concat([ed,ea])}return eo?ea.toString(eo):ea}eh.p224=eh.secp224r1,eh.p256=eh.secp256r1=eh.prime256v1,eh.p192=eh.secp192r1=eh.prime192v1,eh.p384=eh.secp384r1,eh.p521=eh.secp521r1,ECDH.prototype.generateKeys=function(et,eo){return this.keys=this.curve.genKeyPair(),this.getPublicKey(et,eo)},ECDH.prototype.computeSecret=function(et,eo,ei){return eo=eo||"utf8",eu.isBuffer(et)||(et=new eu(et,eo)),formatReturnValue(this.curve.keyFromPublic(et).getPublic().mul(this.keys.getPrivate()).getX(),ei,this.curveType.byteLength)},ECDH.prototype.getPublicKey=function(et,eo){var ei=this.keys.getPublic("compressed"===eo,!0);return"hybrid"===eo&&(ei[ei.length-1]%2?ei[0]=7:ei[0]=6),formatReturnValue(ei,et)},ECDH.prototype.getPrivateKey=function(et){return formatReturnValue(this.keys.getPrivate(),et)},ECDH.prototype.setPublicKey=function(et,eo){return eo=eo||"utf8",eu.isBuffer(et)||(et=new eu(et,eo)),this.keys._importPublic(et),this},ECDH.prototype.setPrivateKey=function(et,eo){eo=eo||"utf8",eu.isBuffer(et)||(et=new eu(et,eo));var ei=new ed(et);return ei=ei.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ei),this}},9739:function(et,eo,ei){"use strict";var ea=ei(3782),eu=ei(3533),ed=ei(3225),eh=ei(4371),ep=ei(1043);function Hash(et){ep.call(this,"digest"),this._hash=et}ea(Hash,ep),Hash.prototype._update=function(et){this._hash.update(et)},Hash.prototype._final=function(){return this._hash.digest()},et.exports=function(et){return"md5"===(et=et.toLowerCase())?new eu:"rmd160"===et||"ripemd160"===et?new ed:new Hash(eh(et))}},450:function(et,eo,ei){var ea=ei(3533);et.exports=function(et){return(new ea).update(et).digest()}},4873:function(et,eo,ei){"use strict";var ea=ei(3782),eu=ei(8119),ed=ei(1043),eh=ei(6911).Buffer,ep=ei(450),ef=ei(3225),em=ei(4371),eg=eh.alloc(128);function Hmac(et,eo){ed.call(this,"digest"),"string"==typeof eo&&(eo=eh.from(eo));var ei="sha512"===et||"sha384"===et?128:64;this._alg=et,this._key=eo,eo.length>ei?eo=("rmd160"===et?new ef:em(et)).update(eo).digest():eo.length<ei&&(eo=eh.concat([eo,eg],ei));for(var ea=this._ipad=eh.allocUnsafe(ei),eu=this._opad=eh.allocUnsafe(ei),ep=0;ep<ei;ep++)ea[ep]=54^eo[ep],eu[ep]=92^eo[ep];this._hash="rmd160"===et?new ef:em(et),this._hash.update(ea)}ea(Hmac,ed),Hmac.prototype._update=function(et){this._hash.update(et)},Hmac.prototype._final=function(){var et=this._hash.digest();return("rmd160"===this._alg?new ef:em(this._alg)).update(this._opad).update(et).digest()},et.exports=function(et,eo){return"rmd160"===(et=et.toLowerCase())||"ripemd160"===et?new Hmac("rmd160",eo):"md5"===et?new eu(ep,eo):new Hmac(et,eo)}},8119:function(et,eo,ei){"use strict";var ea=ei(3782),eu=ei(6911).Buffer,ed=ei(1043),eh=eu.alloc(128),ep=64;function Hmac(et,eo){ed.call(this,"digest"),"string"==typeof eo&&(eo=eu.from(eo)),this._alg=et,this._key=eo,eo.length>ep?eo=et(eo):eo.length<ep&&(eo=eu.concat([eo,eh],ep));for(var ei=this._ipad=eu.allocUnsafe(ep),ea=this._opad=eu.allocUnsafe(ep),ef=0;ef<ep;ef++)ei[ef]=54^eo[ef],ea[ef]=92^eo[ef];this._hash=[ei]}ea(Hmac,ed),Hmac.prototype._update=function(et){this._hash.push(et)},Hmac.prototype._final=function(){var et=this._alg(eu.concat(this._hash));return this._alg(eu.concat([this._opad,et]))},et.exports=Hmac},9536:function(et,eo,ei){"use strict";eo.utils=ei(5334),eo.Cipher=ei(9876),eo.DES=ei(1016),eo.CBC=ei(8641),eo.EDE=ei(6159)},8641:function(et,eo,ei){"use strict";var ea=ei(3523),eu=ei(3782),ed={};function CBCState(et){ea.equal(et.length,8,"Invalid IV length"),this.iv=Array(8);for(var eo=0;eo<this.iv.length;eo++)this.iv[eo]=et[eo]}function instantiate(et){function CBC(eo){et.call(this,eo),this._cbcInit()}eu(CBC,et);for(var eo=Object.keys(ed),ei=0;ei<eo.length;ei++){var ea=eo[ei];CBC.prototype[ea]=ed[ea]}return CBC.create=function(et){return new CBC(et)},CBC}eo.instantiate=instantiate,ed._cbcInit=function(){var et=new CBCState(this.options.iv);this._cbcState=et},ed._update=function(et,eo,ei,ea){var eu=this._cbcState,ed=this.constructor.super_.prototype,eh=eu.iv;if("encrypt"===this.type){for(var ep=0;ep<this.blockSize;ep++)eh[ep]^=et[eo+ep];ed._update.call(this,eh,0,ei,ea);for(var ep=0;ep<this.blockSize;ep++)eh[ep]=ei[ea+ep]}else{ed._update.call(this,et,eo,ei,ea);for(var ep=0;ep<this.blockSize;ep++)ei[ea+ep]^=eh[ep];for(var ep=0;ep<this.blockSize;ep++)eh[ep]=et[eo+ep]}}},9876:function(et,eo,ei){"use strict";var ea=ei(3523);function Cipher(et){this.options=et,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}et.exports=Cipher,Cipher.prototype._init=function(){},Cipher.prototype.update=function(et){return 0===et.length?[]:"decrypt"===this.type?this._updateDecrypt(et):this._updateEncrypt(et)},Cipher.prototype._buffer=function(et,eo){for(var ei=Math.min(this.buffer.length-this.bufferOff,et.length-eo),ea=0;ea<ei;ea++)this.buffer[this.bufferOff+ea]=et[eo+ea];return this.bufferOff+=ei,ei},Cipher.prototype._flushBuffer=function(et,eo){return this._update(this.buffer,0,et,eo),this.bufferOff=0,this.blockSize},Cipher.prototype._updateEncrypt=function(et){var eo=0,ei=0,ea=Array(((this.bufferOff+et.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(eo+=this._buffer(et,eo),this.bufferOff===this.buffer.length&&(ei+=this._flushBuffer(ea,ei)));for(var eu=et.length-(et.length-eo)%this.blockSize;eo<eu;eo+=this.blockSize)this._update(et,eo,ea,ei),ei+=this.blockSize;for(;eo<et.length;eo++,this.bufferOff++)this.buffer[this.bufferOff]=et[eo];return ea},Cipher.prototype._updateDecrypt=function(et){for(var eo=0,ei=0,ea=Math.ceil((this.bufferOff+et.length)/this.blockSize)-1,eu=Array(ea*this.blockSize);ea>0;ea--)eo+=this._buffer(et,eo),ei+=this._flushBuffer(eu,ei);return eo+=this._buffer(et,eo),eu},Cipher.prototype.final=function(et){var eo,ei;return(et&&(eo=this.update(et)),ei="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),eo)?eo.concat(ei):ei},Cipher.prototype._pad=function(et,eo){if(0===eo)return!1;for(;eo<et.length;)et[eo++]=0;return!0},Cipher.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var et=Array(this.blockSize);return this._update(this.buffer,0,et,0),et},Cipher.prototype._unpad=function(et){return et},Cipher.prototype._finalDecrypt=function(){ea.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var et=Array(this.blockSize);return this._flushBuffer(et,0),this._unpad(et)}},1016:function(et,eo,ei){"use strict";var ea=ei(3523),eu=ei(3782),ed=ei(5334),eh=ei(9876);function DESState(){this.tmp=[,,],this.keys=null}function DES(et){eh.call(this,et);var eo=new DESState;this._desState=eo,this.deriveKeys(eo,et.key)}eu(DES,eh),et.exports=DES,DES.create=function(et){return new DES(et)};var ep=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];DES.prototype.deriveKeys=function(et,eo){et.keys=Array(32),ea.equal(eo.length,this.blockSize,"Invalid key length");var ei=ed.readUInt32BE(eo,0),eu=ed.readUInt32BE(eo,4);ed.pc1(ei,eu,et.tmp,0),ei=et.tmp[0],eu=et.tmp[1];for(var eh=0;eh<et.keys.length;eh+=2){var ef=ep[eh>>>1];ei=ed.r28shl(ei,ef),eu=ed.r28shl(eu,ef),ed.pc2(ei,eu,et.keys,eh)}},DES.prototype._update=function(et,eo,ei,ea){var eu=this._desState,eh=ed.readUInt32BE(et,eo),ep=ed.readUInt32BE(et,eo+4);ed.ip(eh,ep,eu.tmp,0),eh=eu.tmp[0],ep=eu.tmp[1],"encrypt"===this.type?this._encrypt(eu,eh,ep,eu.tmp,0):this._decrypt(eu,eh,ep,eu.tmp,0),eh=eu.tmp[0],ep=eu.tmp[1],ed.writeUInt32BE(ei,eh,ea),ed.writeUInt32BE(ei,ep,ea+4)},DES.prototype._pad=function(et,eo){for(var ei=et.length-eo,ea=eo;ea<et.length;ea++)et[ea]=ei;return!0},DES.prototype._unpad=function(et){for(var eo=et[et.length-1],ei=et.length-eo;ei<et.length;ei++)ea.equal(et[ei],eo);return et.slice(0,et.length-eo)},DES.prototype._encrypt=function(et,eo,ei,ea,eu){for(var eh=eo,ep=ei,ef=0;ef<et.keys.length;ef+=2){var em=et.keys[ef],eg=et.keys[ef+1];ed.expand(ep,et.tmp,0),em^=et.tmp[0],eg^=et.tmp[1];var ey=ed.substitute(em,eg),eC=ed.permute(ey),eS=ep;ep=(eh^eC)>>>0,eh=eS}ed.rip(ep,eh,ea,eu)},DES.prototype._decrypt=function(et,eo,ei,ea,eu){for(var eh=ei,ep=eo,ef=et.keys.length-2;ef>=0;ef-=2){var em=et.keys[ef],eg=et.keys[ef+1];ed.expand(eh,et.tmp,0),em^=et.tmp[0],eg^=et.tmp[1];var ey=ed.substitute(em,eg),eC=ed.permute(ey),eS=eh;eh=(ep^eC)>>>0,ep=eS}ed.rip(eh,ep,ea,eu)}},6159:function(et,eo,ei){"use strict";var ea=ei(3523),eu=ei(3782),ed=ei(9876),eh=ei(1016);function EDEState(et,eo){ea.equal(eo.length,24,"Invalid key length");var ei=eo.slice(0,8),eu=eo.slice(8,16),ed=eo.slice(16,24);"encrypt"===et?this.ciphers=[eh.create({type:"encrypt",key:ei}),eh.create({type:"decrypt",key:eu}),eh.create({type:"encrypt",key:ed})]:this.ciphers=[eh.create({type:"decrypt",key:ed}),eh.create({type:"encrypt",key:eu}),eh.create({type:"decrypt",key:ei})]}function EDE(et){ed.call(this,et);var eo=new EDEState(this.type,this.options.key);this._edeState=eo}eu(EDE,ed),et.exports=EDE,EDE.create=function(et){return new EDE(et)},EDE.prototype._update=function(et,eo,ei,ea){var eu=this._edeState;eu.ciphers[0]._update(et,eo,ei,ea),eu.ciphers[1]._update(ei,ea,ei,ea),eu.ciphers[2]._update(ei,ea,ei,ea)},EDE.prototype._pad=eh.prototype._pad,EDE.prototype._unpad=eh.prototype._unpad},5334:function(et,eo){"use strict";eo.readUInt32BE=function(et,eo){return(et[0+eo]<<24|et[1+eo]<<16|et[2+eo]<<8|et[3+eo])>>>0},eo.writeUInt32BE=function(et,eo,ei){et[0+ei]=eo>>>24,et[1+ei]=eo>>>16&255,et[2+ei]=eo>>>8&255,et[3+ei]=255&eo},eo.ip=function(et,eo,ei,ea){for(var eu=0,ed=0,eh=6;eh>=0;eh-=2){for(var ep=0;ep<=24;ep+=8)eu<<=1,eu|=eo>>>ep+eh&1;for(var ep=0;ep<=24;ep+=8)eu<<=1,eu|=et>>>ep+eh&1}for(var eh=6;eh>=0;eh-=2){for(var ep=1;ep<=25;ep+=8)ed<<=1,ed|=eo>>>ep+eh&1;for(var ep=1;ep<=25;ep+=8)ed<<=1,ed|=et>>>ep+eh&1}ei[ea+0]=eu>>>0,ei[ea+1]=ed>>>0},eo.rip=function(et,eo,ei,ea){for(var eu=0,ed=0,eh=0;eh<4;eh++)for(var ep=24;ep>=0;ep-=8)eu<<=1,eu|=eo>>>ep+eh&1,eu<<=1,eu|=et>>>ep+eh&1;for(var eh=4;eh<8;eh++)for(var ep=24;ep>=0;ep-=8)ed<<=1,ed|=eo>>>ep+eh&1,ed<<=1,ed|=et>>>ep+eh&1;ei[ea+0]=eu>>>0,ei[ea+1]=ed>>>0},eo.pc1=function(et,eo,ei,ea){for(var eu=0,ed=0,eh=7;eh>=5;eh--){for(var ep=0;ep<=24;ep+=8)eu<<=1,eu|=eo>>ep+eh&1;for(var ep=0;ep<=24;ep+=8)eu<<=1,eu|=et>>ep+eh&1}for(var ep=0;ep<=24;ep+=8)eu<<=1,eu|=eo>>ep+eh&1;for(var eh=1;eh<=3;eh++){for(var ep=0;ep<=24;ep+=8)ed<<=1,ed|=eo>>ep+eh&1;for(var ep=0;ep<=24;ep+=8)ed<<=1,ed|=et>>ep+eh&1}for(var ep=0;ep<=24;ep+=8)ed<<=1,ed|=et>>ep+eh&1;ei[ea+0]=eu>>>0,ei[ea+1]=ed>>>0},eo.r28shl=function(et,eo){return et<<eo&268435455|et>>>28-eo};var ei=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];eo.pc2=function(et,eo,ea,eu){for(var ed=0,eh=0,ep=ei.length>>>1,ef=0;ef<ep;ef++)ed<<=1,ed|=et>>>ei[ef]&1;for(var ef=ep;ef<ei.length;ef++)eh<<=1,eh|=eo>>>ei[ef]&1;ea[eu+0]=ed>>>0,ea[eu+1]=eh>>>0},eo.expand=function(et,eo,ei){var ea=0,eu=0;ea=(1&et)<<5|et>>>27;for(var ed=23;ed>=15;ed-=4)ea<<=6,ea|=et>>>ed&63;for(var ed=11;ed>=3;ed-=4)eu|=et>>>ed&63,eu<<=6;eu|=(31&et)<<1|et>>>31,eo[ei+0]=ea>>>0,eo[ei+1]=eu>>>0};var ea=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];eo.substitute=function(et,eo){for(var ei=0,eu=0;eu<4;eu++){var ed=et>>>18-6*eu&63,eh=ea[64*eu+ed];ei<<=4,ei|=eh}for(var eu=0;eu<4;eu++){var ed=eo>>>18-6*eu&63,eh=ea[256+64*eu+ed];ei<<=4,ei|=eh}return ei>>>0};var eu=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];eo.permute=function(et){for(var eo=0,ei=0;ei<eu.length;ei++)eo<<=1,eo|=et>>>eu[ei]&1;return eo>>>0},eo.padSplit=function(et,eo,ei){for(var ea=et.toString(2);ea.length<eo;)ea="0"+ea;for(var eu=[],ed=0;ed<eo;ed+=ei)eu.push(ea.slice(ed,ed+ei));return eu.join(" ")}},6587:function(et,eo,ei){var ea=ei(296),ed=ei(7992),eh=ei(373);function getDiffieHellman(et){var eo=new eu(ed[et].prime,"hex"),ei=new eu(ed[et].gen,"hex");return new eh(eo,ei)}var ep={binary:!0,hex:!0,base64:!0};function createDiffieHellman(et,eo,ei,ed){return eu.isBuffer(eo)||void 0===ep[eo]?createDiffieHellman(et,"binary",eo,ei):(eo=eo||"binary",ed=ed||"binary",ei=ei||new eu([2]),eu.isBuffer(ei)||(ei=new eu(ei,ed)),"number"==typeof et)?new eh(ea(et,ei),ei,!0):(eu.isBuffer(et)||(et=new eu(et,eo)),new eh(et,ei,!0))}eo.DiffieHellmanGroup=eo.createDiffieHellmanGroup=eo.getDiffieHellman=getDiffieHellman,eo.createDiffieHellman=eo.DiffieHellman=createDiffieHellman},373:function(et,eo,ei){var ea=ei(711),ed=new(ei(1354)),eh=new ea(24),ep=new ea(11),ef=new ea(10),em=new ea(3),eg=new ea(7),ey=ei(296),eC=ei(7223);function setPublicKey(et,eo){return eo=eo||"utf8",eu.isBuffer(et)||(et=new eu(et,eo)),this._pub=new ea(et),this}function setPrivateKey(et,eo){return eo=eo||"utf8",eu.isBuffer(et)||(et=new eu(et,eo)),this._priv=new ea(et),this}et.exports=DH;var eS={};function checkPrime(et,eo){var ei,ea=eo.toString("hex"),eu=[ea,et.toString(16)].join("_");if(eu in eS)return eS[eu];var eC=0;if(et.isEven()||!ey.simpleSieve||!ey.fermatTest(et)||!ed.test(et))return eC+=1,"02"===ea||"05"===ea?eC+=8:eC+=4,eS[eu]=eC,eC;switch(ed.test(et.shrn(1))||(eC+=2),ea){case"02":et.mod(eh).cmp(ep)&&(eC+=8);break;case"05":(ei=et.mod(ef)).cmp(em)&&ei.cmp(eg)&&(eC+=8);break;default:eC+=4}return eS[eu]=eC,eC}function DH(et,eo,ei){this.setGenerator(eo),this.__prime=new ea(et),this._prime=ea.mont(this.__prime),this._primeLen=et.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ei?(this.setPublicKey=setPublicKey,this.setPrivateKey=setPrivateKey):this._primeCode=8}function formatReturnValue(et,eo){var ei=new eu(et.toArray());return eo?ei.toString(eo):ei}Object.defineProperty(DH.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=checkPrime(this.__prime,this.__gen)),this._primeCode}}),DH.prototype.generateKeys=function(){return this._priv||(this._priv=new ea(eC(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},DH.prototype.computeSecret=function(et){var eo=(et=(et=new ea(et)).toRed(this._prime)).redPow(this._priv).fromRed(),ei=new eu(eo.toArray()),ed=this.getPrime();if(ei.length<ed.length){var eh=new eu(ed.length-ei.length);eh.fill(0),ei=eu.concat([eh,ei])}return ei},DH.prototype.getPublicKey=function(et){return formatReturnValue(this._pub,et)},DH.prototype.getPrivateKey=function(et){return formatReturnValue(this._priv,et)},DH.prototype.getPrime=function(et){return formatReturnValue(this.__prime,et)},DH.prototype.getGenerator=function(et){return formatReturnValue(this._gen,et)},DH.prototype.setGenerator=function(et,eo){return eo=eo||"utf8",eu.isBuffer(et)||(et=new eu(et,eo)),this.__gen=et,this._gen=new ea(et),this}},296:function(et,eo,ei){var ea=ei(7223);et.exports=findPrime,findPrime.simpleSieve=simpleSieve,findPrime.fermatTest=fermatTest;var eu=ei(711),ed=new eu(24),eh=new(ei(1354)),ep=new eu(1),ef=new eu(2),em=new eu(5);new eu(16),new eu(8);var eg=new eu(10),ey=new eu(3);new eu(7);var eC=new eu(11),eS=new eu(4);new eu(12);var e_=null;function _getPrimes(){if(null!==e_)return e_;var et=1048576,eo=[];eo[0]=2;for(var ei=1,ea=3;ea<et;ea+=2){for(var eu=Math.ceil(Math.sqrt(ea)),ed=0;ed<ei&&eo[ed]<=eu&&ea%eo[ed]!=0;ed++);ei!==ed&&eo[ed]<=eu||(eo[ei++]=ea)}return e_=eo,eo}function simpleSieve(et){for(var eo=_getPrimes(),ei=0;ei<eo.length;ei++)if(0===et.modn(eo[ei])){if(0!==et.cmpn(eo[ei]))return!1;break}return!0}function fermatTest(et){var eo=eu.mont(et);return 0===ef.toRed(eo).redPow(et.subn(1)).fromRed().cmpn(1)}function findPrime(et,eo){var ei,e_;if(et<16)return new eu(2===eo||5===eo?[140,123]:[140,39]);for(eo=new eu(eo);;){for(ei=new eu(ea(Math.ceil(et/8)));ei.bitLength()>et;)ei.ishrn(1);if(ei.isEven()&&ei.iadd(ep),ei.testn(1)||ei.iadd(ef),eo.cmp(ef)){if(!eo.cmp(em))for(;ei.mod(eg).cmp(ey);)ei.iadd(eS)}else for(;ei.mod(ed).cmp(eC);)ei.iadd(eS);if(simpleSieve(e_=ei.shrn(1))&&simpleSieve(ei)&&fermatTest(e_)&&fermatTest(ei)&&eh.test(e_)&&eh.test(ei))return ei}}},949:function(et,eo,ei){"use strict";var ea=eo;ea.version=ei(2531).i8,ea.utils=ei(4401),ea.rand=ei(3500),ea.curve=ei(9359),ea.curves=ei(6226),ea.ec=ei(4088),ea.eddsa=ei(8511)},2727:function(et,eo,ei){"use strict";var ea=ei(711),eu=ei(4401),ed=eu.getNAF,eh=eu.getJSF,ep=eu.assert;function BaseCurve(et,eo){this.type=et,this.p=new ea(eo.p,16),this.red=eo.prime?ea.red(eo.prime):ea.mont(this.p),this.zero=new ea(0).toRed(this.red),this.one=new ea(1).toRed(this.red),this.two=new ea(2).toRed(this.red),this.n=eo.n&&new ea(eo.n,16),this.g=eo.g&&this.pointFromJSON(eo.g,eo.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var ei=this.n&&this.p.div(this.n);!ei||ei.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function BasePoint(et,eo){this.curve=et,this.type=eo,this.precomputed=null}et.exports=BaseCurve,BaseCurve.prototype.point=function(){throw Error("Not implemented")},BaseCurve.prototype.validate=function(){throw Error("Not implemented")},BaseCurve.prototype._fixedNafMul=function(et,eo){ep(et.precomputed);var ei=et._getDoubles(),ea=ed(eo,1,this._bitLength),eu=(1<<ei.step+1)-(ei.step%2==0?2:1);eu/=3;for(var eh=[],ef=0;ef<ea.length;ef+=ei.step){for(var em=0,eo=ef+ei.step-1;eo>=ef;eo--)em=(em<<1)+ea[eo];eh.push(em)}for(var eg=this.jpoint(null,null,null),ey=this.jpoint(null,null,null),eC=eu;eC>0;eC--){for(var ef=0;ef<eh.length;ef++){var em=eh[ef];em===eC?ey=ey.mixedAdd(ei.points[ef]):em===-eC&&(ey=ey.mixedAdd(ei.points[ef].neg()))}eg=eg.add(ey)}return eg.toP()},BaseCurve.prototype._wnafMul=function(et,eo){var ei=4,ea=et._getNAFPoints(ei);ei=ea.wnd;for(var eu=ea.points,eh=ed(eo,ei,this._bitLength),ef=this.jpoint(null,null,null),em=eh.length-1;em>=0;em--){for(var eo=0;em>=0&&0===eh[em];em--)eo++;if(em>=0&&eo++,ef=ef.dblp(eo),em<0)break;var eg=eh[em];ep(0!==eg),ef="affine"===et.type?eg>0?ef.mixedAdd(eu[eg-1>>1]):ef.mixedAdd(eu[-eg-1>>1].neg()):eg>0?ef.add(eu[eg-1>>1]):ef.add(eu[-eg-1>>1].neg())}return"affine"===et.type?ef.toP():ef},BaseCurve.prototype._wnafMulAdd=function(et,eo,ei,ea,eu){for(var ep=this._wnafT1,ef=this._wnafT2,em=this._wnafT3,eg=0,ey=0;ey<ea;ey++){var eC=eo[ey],eS=eC._getNAFPoints(et);ep[ey]=eS.wnd,ef[ey]=eS.points}for(var ey=ea-1;ey>=1;ey-=2){var e_=ey-1,ew=ey;if(1!==ep[e_]||1!==ep[ew]){em[e_]=ed(ei[e_],ep[e_],this._bitLength),em[ew]=ed(ei[ew],ep[ew],this._bitLength),eg=Math.max(em[e_].length,eg),eg=Math.max(em[ew].length,eg);continue}var eA=[eo[e_],null,null,eo[ew]];0===eo[e_].y.cmp(eo[ew].y)?(eA[1]=eo[e_].add(eo[ew]),eA[2]=eo[e_].toJ().mixedAdd(eo[ew].neg())):0===eo[e_].y.cmp(eo[ew].y.redNeg())?(eA[1]=eo[e_].toJ().mixedAdd(eo[ew]),eA[2]=eo[e_].add(eo[ew].neg())):(eA[1]=eo[e_].toJ().mixedAdd(eo[ew]),eA[2]=eo[e_].toJ().mixedAdd(eo[ew].neg()));var eI=[-3,-1,-5,-7,0,7,5,1,3],eR=eh(ei[e_],ei[ew]);eg=Math.max(eR[0].length,eg),em[e_]=Array(eg),em[ew]=Array(eg);for(var eT=0;eT<eg;eT++){var eE=0|eR[0][eT],eP=0|eR[1][eT];em[e_][eT]=eI[(eE+1)*3+(eP+1)],em[ew][eT]=0,ef[e_]=eA}}for(var ek=this.jpoint(null,null,null),eO=this._wnafT4,ey=eg;ey>=0;ey--){for(var eM=0;ey>=0;){for(var eD=!0,eT=0;eT<ea;eT++)eO[eT]=0|em[eT][ey],0!==eO[eT]&&(eD=!1);if(!eD)break;eM++,ey--}if(ey>=0&&eM++,ek=ek.dblp(eM),ey<0)break;for(var eT=0;eT<ea;eT++){var eC,eU=eO[eT];0!==eU&&(eU>0?eC=ef[eT][eU-1>>1]:eU<0&&(eC=ef[eT][-eU-1>>1].neg()),ek="affine"===eC.type?ek.mixedAdd(eC):ek.add(eC))}}for(var ey=0;ey<ea;ey++)ef[ey]=null;return eu?ek:ek.toP()},BaseCurve.BasePoint=BasePoint,BasePoint.prototype.eq=function(){throw Error("Not implemented")},BasePoint.prototype.validate=function(){return this.curve.validate(this)},BaseCurve.prototype.decodePoint=function(et,eo){et=eu.toArray(et,eo);var ei=this.p.byteLength();if((4===et[0]||6===et[0]||7===et[0])&&et.length-1==2*ei)return 6===et[0]?ep(et[et.length-1]%2==0):7===et[0]&&ep(et[et.length-1]%2==1),this.point(et.slice(1,1+ei),et.slice(1+ei,1+2*ei));if((2===et[0]||3===et[0])&&et.length-1===ei)return this.pointFromX(et.slice(1,1+ei),3===et[0]);throw Error("Unknown point format")},BasePoint.prototype.encodeCompressed=function(et){return this.encode(et,!0)},BasePoint.prototype._encode=function(et){var eo=this.curve.p.byteLength(),ei=this.getX().toArray("be",eo);return et?[this.getY().isEven()?2:3].concat(ei):[4].concat(ei,this.getY().toArray("be",eo))},BasePoint.prototype.encode=function(et,eo){return eu.encode(this._encode(eo),et)},BasePoint.prototype.precompute=function(et){if(this.precomputed)return this;var eo={doubles:null,naf:null,beta:null};return eo.naf=this._getNAFPoints(8),eo.doubles=this._getDoubles(4,et),eo.beta=this._getBeta(),this.precomputed=eo,this},BasePoint.prototype._hasDoubles=function(et){if(!this.precomputed)return!1;var eo=this.precomputed.doubles;return!!eo&&eo.points.length>=Math.ceil((et.bitLength()+1)/eo.step)},BasePoint.prototype._getDoubles=function(et,eo){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var ei=[this],ea=this,eu=0;eu<eo;eu+=et){for(var ed=0;ed<et;ed++)ea=ea.dbl();ei.push(ea)}return{step:et,points:ei}},BasePoint.prototype._getNAFPoints=function(et){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var eo=[this],ei=(1<<et)-1,ea=1===ei?null:this.dbl(),eu=1;eu<ei;eu++)eo[eu]=eo[eu-1].add(ea);return{wnd:et,points:eo}},BasePoint.prototype._getBeta=function(){return null},BasePoint.prototype.dblp=function(et){for(var eo=this,ei=0;ei<et;ei++)eo=eo.dbl();return eo}},2705:function(et,eo,ei){"use strict";var ea=ei(4401),eu=ei(711),ed=ei(3782),eh=ei(2727),ep=ea.assert;function EdwardsCurve(et){this.twisted=(0|et.a)!=1,this.mOneA=this.twisted&&(0|et.a)==-1,this.extended=this.mOneA,eh.call(this,"edwards",et),this.a=new eu(et.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new eu(et.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new eu(et.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),ep(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|et.c)==1}function Point(et,eo,ei,ea,ed){eh.BasePoint.call(this,et,"projective"),null===eo&&null===ei&&null===ea?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new eu(eo,16),this.y=new eu(ei,16),this.z=ea?new eu(ea,16):this.curve.one,this.t=ed&&new eu(ed,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}ed(EdwardsCurve,eh),et.exports=EdwardsCurve,EdwardsCurve.prototype._mulA=function(et){return this.mOneA?et.redNeg():this.a.redMul(et)},EdwardsCurve.prototype._mulC=function(et){return this.oneC?et:this.c.redMul(et)},EdwardsCurve.prototype.jpoint=function(et,eo,ei,ea){return this.point(et,eo,ei,ea)},EdwardsCurve.prototype.pointFromX=function(et,eo){(et=new eu(et,16)).red||(et=et.toRed(this.red));var ei=et.redSqr(),ea=this.c2.redSub(this.a.redMul(ei)),ed=this.one.redSub(this.c2.redMul(this.d).redMul(ei)),eh=ea.redMul(ed.redInvm()),ep=eh.redSqrt();if(0!==ep.redSqr().redSub(eh).cmp(this.zero))throw Error("invalid point");var ef=ep.fromRed().isOdd();return(eo&&!ef||!eo&&ef)&&(ep=ep.redNeg()),this.point(et,ep)},EdwardsCurve.prototype.pointFromY=function(et,eo){(et=new eu(et,16)).red||(et=et.toRed(this.red));var ei=et.redSqr(),ea=ei.redSub(this.c2),ed=ei.redMul(this.d).redMul(this.c2).redSub(this.a),eh=ea.redMul(ed.redInvm());if(0===eh.cmp(this.zero)){if(!eo)return this.point(this.zero,et);throw Error("invalid point")}var ep=eh.redSqrt();if(0!==ep.redSqr().redSub(eh).cmp(this.zero))throw Error("invalid point");return ep.fromRed().isOdd()!==eo&&(ep=ep.redNeg()),this.point(ep,et)},EdwardsCurve.prototype.validate=function(et){if(et.isInfinity())return!0;et.normalize();var eo=et.x.redSqr(),ei=et.y.redSqr(),ea=eo.redMul(this.a).redAdd(ei),eu=this.c2.redMul(this.one.redAdd(this.d.redMul(eo).redMul(ei)));return 0===ea.cmp(eu)},ed(Point,eh.BasePoint),EdwardsCurve.prototype.pointFromJSON=function(et){return Point.fromJSON(this,et)},EdwardsCurve.prototype.point=function(et,eo,ei,ea){return new Point(this,et,eo,ei,ea)},Point.fromJSON=function(et,eo){return new Point(et,eo[0],eo[1],eo[2])},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Point.prototype._extDbl=function(){var et=this.x.redSqr(),eo=this.y.redSqr(),ei=this.z.redSqr();ei=ei.redIAdd(ei);var ea=this.curve._mulA(et),eu=this.x.redAdd(this.y).redSqr().redISub(et).redISub(eo),ed=ea.redAdd(eo),eh=ed.redSub(ei),ep=ea.redSub(eo),ef=eu.redMul(eh),em=ed.redMul(ep),eg=eu.redMul(ep),ey=eh.redMul(ed);return this.curve.point(ef,em,ey,eg)},Point.prototype._projDbl=function(){var et,eo,ei,ea=this.x.redAdd(this.y).redSqr(),eu=this.x.redSqr(),ed=this.y.redSqr();if(this.curve.twisted){var eh=this.curve._mulA(eu),ep=eh.redAdd(ed);if(this.zOne)et=ea.redSub(eu).redSub(ed).redMul(ep.redSub(this.curve.two)),eo=ep.redMul(eh.redSub(ed)),ei=ep.redSqr().redSub(ep).redSub(ep);else{var ef=this.z.redSqr(),em=ep.redSub(ef).redISub(ef);et=ea.redSub(eu).redISub(ed).redMul(em),eo=ep.redMul(eh.redSub(ed)),ei=ep.redMul(em)}}else{var eh=eu.redAdd(ed),ef=this.curve._mulC(this.z).redSqr(),em=eh.redSub(ef).redSub(ef);et=this.curve._mulC(ea.redISub(eh)).redMul(em),eo=this.curve._mulC(eh).redMul(eu.redISub(ed)),ei=eh.redMul(em)}return this.curve.point(et,eo,ei)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(et){var eo=this.y.redSub(this.x).redMul(et.y.redSub(et.x)),ei=this.y.redAdd(this.x).redMul(et.y.redAdd(et.x)),ea=this.t.redMul(this.curve.dd).redMul(et.t),eu=this.z.redMul(et.z.redAdd(et.z)),ed=ei.redSub(eo),eh=eu.redSub(ea),ep=eu.redAdd(ea),ef=ei.redAdd(eo),em=ed.redMul(eh),eg=ep.redMul(ef),ey=ed.redMul(ef),eC=eh.redMul(ep);return this.curve.point(em,eg,eC,ey)},Point.prototype._projAdd=function(et){var eo,ei,ea=this.z.redMul(et.z),eu=ea.redSqr(),ed=this.x.redMul(et.x),eh=this.y.redMul(et.y),ep=this.curve.d.redMul(ed).redMul(eh),ef=eu.redSub(ep),em=eu.redAdd(ep),eg=this.x.redAdd(this.y).redMul(et.x.redAdd(et.y)).redISub(ed).redISub(eh),ey=ea.redMul(ef).redMul(eg);return this.curve.twisted?(eo=ea.redMul(em).redMul(eh.redSub(this.curve._mulA(ed))),ei=ef.redMul(em)):(eo=ea.redMul(em).redMul(eh.redSub(ed)),ei=this.curve._mulC(ef).redMul(em)),this.curve.point(ey,eo,ei)},Point.prototype.add=function(et){return this.isInfinity()?et:et.isInfinity()?this:this.curve.extended?this._extAdd(et):this._projAdd(et)},Point.prototype.mul=function(et){return this._hasDoubles(et)?this.curve._fixedNafMul(this,et):this.curve._wnafMul(this,et)},Point.prototype.mulAdd=function(et,eo,ei){return this.curve._wnafMulAdd(1,[this,eo],[et,ei],2,!1)},Point.prototype.jmulAdd=function(et,eo,ei){return this.curve._wnafMulAdd(1,[this,eo],[et,ei],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var et=this.z.redInvm();return this.x=this.x.redMul(et),this.y=this.y.redMul(et),this.t&&(this.t=this.t.redMul(et)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(et){return this===et||0===this.getX().cmp(et.getX())&&0===this.getY().cmp(et.getY())},Point.prototype.eqXToP=function(et){var eo=et.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(eo))return!0;for(var ei=et.clone(),ea=this.curve.redN.redMul(this.z);;){if(ei.iadd(this.curve.n),ei.cmp(this.curve.p)>=0)return!1;if(eo.redIAdd(ea),0===this.x.cmp(eo))return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add},9359:function(et,eo,ei){"use strict";var ea=eo;ea.base=ei(2727),ea.short=ei(4720),ea.mont=ei(6653),ea.edwards=ei(2705)},6653:function(et,eo,ei){"use strict";var ea=ei(711),eu=ei(3782),ed=ei(2727),eh=ei(4401);function MontCurve(et){ed.call(this,"mont",et),this.a=new ea(et.a,16).toRed(this.red),this.b=new ea(et.b,16).toRed(this.red),this.i4=new ea(4).toRed(this.red).redInvm(),this.two=new ea(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function Point(et,eo,ei){ed.BasePoint.call(this,et,"projective"),null===eo&&null===ei?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ea(eo,16),this.z=new ea(ei,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}eu(MontCurve,ed),et.exports=MontCurve,MontCurve.prototype.validate=function(et){var eo=et.normalize().x,ei=eo.redSqr(),ea=ei.redMul(eo).redAdd(ei.redMul(this.a)).redAdd(eo);return 0===ea.redSqrt().redSqr().cmp(ea)},eu(Point,ed.BasePoint),MontCurve.prototype.decodePoint=function(et,eo){return this.point(eh.toArray(et,eo),1)},MontCurve.prototype.point=function(et,eo){return new Point(this,et,eo)},MontCurve.prototype.pointFromJSON=function(et){return Point.fromJSON(this,et)},Point.prototype.precompute=function(){},Point.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point.fromJSON=function(et,eo){return new Point(et,eo[0],eo[1]||et.one)},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Point.prototype.dbl=function(){var et=this.x.redAdd(this.z).redSqr(),eo=this.x.redSub(this.z).redSqr(),ei=et.redSub(eo),ea=et.redMul(eo),eu=ei.redMul(eo.redAdd(this.curve.a24.redMul(ei)));return this.curve.point(ea,eu)},Point.prototype.add=function(){throw Error("Not supported on Montgomery curve")},Point.prototype.diffAdd=function(et,eo){var ei=this.x.redAdd(this.z),ea=this.x.redSub(this.z),eu=et.x.redAdd(et.z),ed=et.x.redSub(et.z).redMul(ei),eh=eu.redMul(ea),ep=eo.z.redMul(ed.redAdd(eh).redSqr()),ef=eo.x.redMul(ed.redISub(eh).redSqr());return this.curve.point(ep,ef)},Point.prototype.mul=function(et){for(var eo=et.clone(),ei=this,ea=this.curve.point(null,null),eu=this,ed=[];0!==eo.cmpn(0);eo.iushrn(1))ed.push(eo.andln(1));for(var eh=ed.length-1;eh>=0;eh--)0===ed[eh]?(ei=ei.diffAdd(ea,eu),ea=ea.dbl()):(ea=ei.diffAdd(ea,eu),ei=ei.dbl());return ea},Point.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},Point.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},Point.prototype.eq=function(et){return 0===this.getX().cmp(et.getX())},Point.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(et,eo,ei){"use strict";var ea=ei(4401),eu=ei(711),ed=ei(3782),eh=ei(2727),ep=ea.assert;function ShortCurve(et){eh.call(this,"short",et),this.a=new eu(et.a,16).toRed(this.red),this.b=new eu(et.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(et),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function Point(et,eo,ei,ea){eh.BasePoint.call(this,et,"affine"),null===eo&&null===ei?(this.x=null,this.y=null,this.inf=!0):(this.x=new eu(eo,16),this.y=new eu(ei,16),ea&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function JPoint(et,eo,ei,ea){eh.BasePoint.call(this,et,"jacobian"),null===eo&&null===ei&&null===ea?(this.x=this.curve.one,this.y=this.curve.one,this.z=new eu(0)):(this.x=new eu(eo,16),this.y=new eu(ei,16),this.z=new eu(ea,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}ed(ShortCurve,eh),et.exports=ShortCurve,ShortCurve.prototype._getEndomorphism=function(et){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(et.beta)eo=new eu(et.beta,16).toRed(this.red);else{var eo,ei,ea,ed=this._getEndoRoots(this.p);eo=(eo=0>ed[0].cmp(ed[1])?ed[0]:ed[1]).toRed(this.red)}if(et.lambda)ei=new eu(et.lambda,16);else{var eh=this._getEndoRoots(this.n);0===this.g.mul(eh[0]).x.cmp(this.g.x.redMul(eo))?ei=eh[0]:(ei=eh[1],ep(0===this.g.mul(ei).x.cmp(this.g.x.redMul(eo))))}return ea=et.basis?et.basis.map(function(et){return{a:new eu(et.a,16),b:new eu(et.b,16)}}):this._getEndoBasis(ei),{beta:eo,lambda:ei,basis:ea}}},ShortCurve.prototype._getEndoRoots=function(et){var eo=et===this.p?this.red:eu.mont(et),ei=new eu(2).toRed(eo).redInvm(),ea=ei.redNeg(),ed=new eu(3).toRed(eo).redNeg().redSqrt().redMul(ei);return[ea.redAdd(ed).fromRed(),ea.redSub(ed).fromRed()]},ShortCurve.prototype._getEndoBasis=function(et){for(var eo,ei,ea,ed,eh,ep,ef,em,eg,ey=this.n.ushrn(Math.floor(this.n.bitLength()/2)),eC=et,eS=this.n.clone(),e_=new eu(1),ew=new eu(0),eA=new eu(0),eI=new eu(1),eR=0;0!==eC.cmpn(0);){var eT=eS.div(eC);em=eS.sub(eT.mul(eC)),eg=eA.sub(eT.mul(e_));var eE=eI.sub(eT.mul(ew));if(!ea&&0>em.cmp(ey))eo=ef.neg(),ei=e_,ea=em.neg(),ed=eg;else if(ea&&2==++eR)break;ef=em,eS=eC,eC=em,eA=e_,e_=eg,eI=ew,ew=eE}eh=em.neg(),ep=eg;var eP=ea.sqr().add(ed.sqr());return eh.sqr().add(ep.sqr()).cmp(eP)>=0&&(eh=eo,ep=ei),ea.negative&&(ea=ea.neg(),ed=ed.neg()),eh.negative&&(eh=eh.neg(),ep=ep.neg()),[{a:ea,b:ed},{a:eh,b:ep}]},ShortCurve.prototype._endoSplit=function(et){var eo=this.endo.basis,ei=eo[0],ea=eo[1],eu=ea.b.mul(et).divRound(this.n),ed=ei.b.neg().mul(et).divRound(this.n),eh=eu.mul(ei.a),ep=ed.mul(ea.a),ef=eu.mul(ei.b),em=ed.mul(ea.b);return{k1:et.sub(eh).sub(ep),k2:ef.add(em).neg()}},ShortCurve.prototype.pointFromX=function(et,eo){(et=new eu(et,16)).red||(et=et.toRed(this.red));var ei=et.redSqr().redMul(et).redIAdd(et.redMul(this.a)).redIAdd(this.b),ea=ei.redSqrt();if(0!==ea.redSqr().redSub(ei).cmp(this.zero))throw Error("invalid point");var ed=ea.fromRed().isOdd();return(eo&&!ed||!eo&&ed)&&(ea=ea.redNeg()),this.point(et,ea)},ShortCurve.prototype.validate=function(et){if(et.inf)return!0;var eo=et.x,ei=et.y,ea=this.a.redMul(eo),eu=eo.redSqr().redMul(eo).redIAdd(ea).redIAdd(this.b);return 0===ei.redSqr().redISub(eu).cmpn(0)},ShortCurve.prototype._endoWnafMulAdd=function(et,eo,ei){for(var ea=this._endoWnafT1,eu=this._endoWnafT2,ed=0;ed<et.length;ed++){var eh=this._endoSplit(eo[ed]),ep=et[ed],ef=ep._getBeta();eh.k1.negative&&(eh.k1.ineg(),ep=ep.neg(!0)),eh.k2.negative&&(eh.k2.ineg(),ef=ef.neg(!0)),ea[2*ed]=ep,ea[2*ed+1]=ef,eu[2*ed]=eh.k1,eu[2*ed+1]=eh.k2}for(var em=this._wnafMulAdd(1,ea,eu,2*ed,ei),eg=0;eg<2*ed;eg++)ea[eg]=null,eu[eg]=null;return em},ed(Point,eh.BasePoint),ShortCurve.prototype.point=function(et,eo,ei){return new Point(this,et,eo,ei)},ShortCurve.prototype.pointFromJSON=function(et,eo){return Point.fromJSON(this,et,eo)},Point.prototype._getBeta=function(){if(this.curve.endo){var et=this.precomputed;if(et&&et.beta)return et.beta;var eo=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(et){var ei=this.curve,endoMul=function(et){return ei.point(et.x.redMul(ei.endo.beta),et.y)};et.beta=eo,eo.precomputed={beta:null,naf:et.naf&&{wnd:et.naf.wnd,points:et.naf.points.map(endoMul)},doubles:et.doubles&&{step:et.doubles.step,points:et.doubles.points.map(endoMul)}}}return eo}},Point.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point.fromJSON=function(et,eo,ei){"string"==typeof eo&&(eo=JSON.parse(eo));var ea=et.point(eo[0],eo[1],ei);if(!eo[2])return ea;function obj2point(eo){return et.point(eo[0],eo[1],ei)}var eu=eo[2];return ea.precomputed={beta:null,doubles:eu.doubles&&{step:eu.doubles.step,points:[ea].concat(eu.doubles.points.map(obj2point))},naf:eu.naf&&{wnd:eu.naf.wnd,points:[ea].concat(eu.naf.points.map(obj2point))}},ea},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return this.inf},Point.prototype.add=function(et){if(this.inf)return et;if(et.inf)return this;if(this.eq(et))return this.dbl();if(this.neg().eq(et)||0===this.x.cmp(et.x))return this.curve.point(null,null);var eo=this.y.redSub(et.y);0!==eo.cmpn(0)&&(eo=eo.redMul(this.x.redSub(et.x).redInvm()));var ei=eo.redSqr().redISub(this.x).redISub(et.x),ea=eo.redMul(this.x.redSub(ei)).redISub(this.y);return this.curve.point(ei,ea)},Point.prototype.dbl=function(){if(this.inf)return this;var et=this.y.redAdd(this.y);if(0===et.cmpn(0))return this.curve.point(null,null);var eo=this.curve.a,ei=this.x.redSqr(),ea=et.redInvm(),eu=ei.redAdd(ei).redIAdd(ei).redIAdd(eo).redMul(ea),ed=eu.redSqr().redISub(this.x.redAdd(this.x)),eh=eu.redMul(this.x.redSub(ed)).redISub(this.y);return this.curve.point(ed,eh)},Point.prototype.getX=function(){return this.x.fromRed()},Point.prototype.getY=function(){return this.y.fromRed()},Point.prototype.mul=function(et){return(et=new eu(et,16),this.isInfinity())?this:this._hasDoubles(et)?this.curve._fixedNafMul(this,et):this.curve.endo?this.curve._endoWnafMulAdd([this],[et]):this.curve._wnafMul(this,et)},Point.prototype.mulAdd=function(et,eo,ei){var ea=[this,eo],eu=[et,ei];return this.curve.endo?this.curve._endoWnafMulAdd(ea,eu):this.curve._wnafMulAdd(1,ea,eu,2)},Point.prototype.jmulAdd=function(et,eo,ei){var ea=[this,eo],eu=[et,ei];return this.curve.endo?this.curve._endoWnafMulAdd(ea,eu,!0):this.curve._wnafMulAdd(1,ea,eu,2,!0)},Point.prototype.eq=function(et){return this===et||this.inf===et.inf&&(this.inf||0===this.x.cmp(et.x)&&0===this.y.cmp(et.y))},Point.prototype.neg=function(et){if(this.inf)return this;var eo=this.curve.point(this.x,this.y.redNeg());if(et&&this.precomputed){var ei=this.precomputed,negate=function(et){return et.neg()};eo.precomputed={naf:ei.naf&&{wnd:ei.naf.wnd,points:ei.naf.points.map(negate)},doubles:ei.doubles&&{step:ei.doubles.step,points:ei.doubles.points.map(negate)}}}return eo},Point.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},ed(JPoint,eh.BasePoint),ShortCurve.prototype.jpoint=function(et,eo,ei){return new JPoint(this,et,eo,ei)},JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var et=this.z.redInvm(),eo=et.redSqr(),ei=this.x.redMul(eo),ea=this.y.redMul(eo).redMul(et);return this.curve.point(ei,ea)},JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JPoint.prototype.add=function(et){if(this.isInfinity())return et;if(et.isInfinity())return this;var eo=et.z.redSqr(),ei=this.z.redSqr(),ea=this.x.redMul(eo),eu=et.x.redMul(ei),ed=this.y.redMul(eo.redMul(et.z)),eh=et.y.redMul(ei.redMul(this.z)),ep=ea.redSub(eu),ef=ed.redSub(eh);if(0===ep.cmpn(0))return 0!==ef.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var em=ep.redSqr(),eg=em.redMul(ep),ey=ea.redMul(em),eC=ef.redSqr().redIAdd(eg).redISub(ey).redISub(ey),eS=ef.redMul(ey.redISub(eC)).redISub(ed.redMul(eg)),e_=this.z.redMul(et.z).redMul(ep);return this.curve.jpoint(eC,eS,e_)},JPoint.prototype.mixedAdd=function(et){if(this.isInfinity())return et.toJ();if(et.isInfinity())return this;var eo=this.z.redSqr(),ei=this.x,ea=et.x.redMul(eo),eu=this.y,ed=et.y.redMul(eo).redMul(this.z),eh=ei.redSub(ea),ep=eu.redSub(ed);if(0===eh.cmpn(0))return 0!==ep.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ef=eh.redSqr(),em=ef.redMul(eh),eg=ei.redMul(ef),ey=ep.redSqr().redIAdd(em).redISub(eg).redISub(eg),eC=ep.redMul(eg.redISub(ey)).redISub(eu.redMul(em)),eS=this.z.redMul(eh);return this.curve.jpoint(ey,eC,eS)},JPoint.prototype.dblp=function(et){if(0===et||this.isInfinity())return this;if(!et)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var eo=this,ei=0;ei<et;ei++)eo=eo.dbl();return eo}for(var ea=this.curve.a,eu=this.curve.tinv,ed=this.x,eh=this.y,ep=this.z,ef=ep.redSqr().redSqr(),em=eh.redAdd(eh),ei=0;ei<et;ei++){var eg=ed.redSqr(),ey=em.redSqr(),eC=ey.redSqr(),eS=eg.redAdd(eg).redIAdd(eg).redIAdd(ea.redMul(ef)),e_=ed.redMul(ey),ew=eS.redSqr().redISub(e_.redAdd(e_)),eA=e_.redISub(ew),eI=eS.redMul(eA);eI=eI.redIAdd(eI).redISub(eC);var eR=em.redMul(ep);ei+1<et&&(ef=ef.redMul(eC)),ed=ew,ep=eR,em=eI}return this.curve.jpoint(ed,em.redMul(eu),ep)},JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},JPoint.prototype._zeroDbl=function(){if(this.zOne){var et,eo,ei,ea=this.x.redSqr(),eu=this.y.redSqr(),ed=eu.redSqr(),eh=this.x.redAdd(eu).redSqr().redISub(ea).redISub(ed);eh=eh.redIAdd(eh);var ep=ea.redAdd(ea).redIAdd(ea),ef=ep.redSqr().redISub(eh).redISub(eh),em=ed.redIAdd(ed);em=(em=em.redIAdd(em)).redIAdd(em),et=ef,eo=ep.redMul(eh.redISub(ef)).redISub(em),ei=this.y.redAdd(this.y)}else{var eg=this.x.redSqr(),ey=this.y.redSqr(),eC=ey.redSqr(),eS=this.x.redAdd(ey).redSqr().redISub(eg).redISub(eC);eS=eS.redIAdd(eS);var e_=eg.redAdd(eg).redIAdd(eg),ew=e_.redSqr(),eA=eC.redIAdd(eC);eA=(eA=eA.redIAdd(eA)).redIAdd(eA),et=ew.redISub(eS).redISub(eS),eo=e_.redMul(eS.redISub(et)).redISub(eA),ei=(ei=this.y.redMul(this.z)).redIAdd(ei)}return this.curve.jpoint(et,eo,ei)},JPoint.prototype._threeDbl=function(){if(this.zOne){var et,eo,ei,ea=this.x.redSqr(),eu=this.y.redSqr(),ed=eu.redSqr(),eh=this.x.redAdd(eu).redSqr().redISub(ea).redISub(ed);eh=eh.redIAdd(eh);var ep=ea.redAdd(ea).redIAdd(ea).redIAdd(this.curve.a),ef=ep.redSqr().redISub(eh).redISub(eh);et=ef;var em=ed.redIAdd(ed);em=(em=em.redIAdd(em)).redIAdd(em),eo=ep.redMul(eh.redISub(ef)).redISub(em),ei=this.y.redAdd(this.y)}else{var eg=this.z.redSqr(),ey=this.y.redSqr(),eC=this.x.redMul(ey),eS=this.x.redSub(eg).redMul(this.x.redAdd(eg));eS=eS.redAdd(eS).redIAdd(eS);var e_=eC.redIAdd(eC),ew=(e_=e_.redIAdd(e_)).redAdd(e_);et=eS.redSqr().redISub(ew),ei=this.y.redAdd(this.z).redSqr().redISub(ey).redISub(eg);var eA=ey.redSqr();eA=(eA=(eA=eA.redIAdd(eA)).redIAdd(eA)).redIAdd(eA),eo=eS.redMul(e_.redISub(et)).redISub(eA)}return this.curve.jpoint(et,eo,ei)},JPoint.prototype._dbl=function(){var et=this.curve.a,eo=this.x,ei=this.y,ea=this.z,eu=ea.redSqr().redSqr(),ed=eo.redSqr(),eh=ei.redSqr(),ep=ed.redAdd(ed).redIAdd(ed).redIAdd(et.redMul(eu)),ef=eo.redAdd(eo),em=(ef=ef.redIAdd(ef)).redMul(eh),eg=ep.redSqr().redISub(em.redAdd(em)),ey=em.redISub(eg),eC=eh.redSqr();eC=(eC=(eC=eC.redIAdd(eC)).redIAdd(eC)).redIAdd(eC);var eS=ep.redMul(ey).redISub(eC),e_=ei.redAdd(ei).redMul(ea);return this.curve.jpoint(eg,eS,e_)},JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var et=this.x.redSqr(),eo=this.y.redSqr(),ei=this.z.redSqr(),ea=eo.redSqr(),eu=et.redAdd(et).redIAdd(et),ed=eu.redSqr(),eh=this.x.redAdd(eo).redSqr().redISub(et).redISub(ea),ep=(eh=(eh=(eh=eh.redIAdd(eh)).redAdd(eh).redIAdd(eh)).redISub(ed)).redSqr(),ef=ea.redIAdd(ea);ef=(ef=(ef=ef.redIAdd(ef)).redIAdd(ef)).redIAdd(ef);var em=eu.redIAdd(eh).redSqr().redISub(ed).redISub(ep).redISub(ef),eg=eo.redMul(em);eg=(eg=eg.redIAdd(eg)).redIAdd(eg);var ey=this.x.redMul(ep).redISub(eg);ey=(ey=ey.redIAdd(ey)).redIAdd(ey);var eC=this.y.redMul(em.redMul(ef.redISub(em)).redISub(eh.redMul(ep)));eC=(eC=(eC=eC.redIAdd(eC)).redIAdd(eC)).redIAdd(eC);var eS=this.z.redAdd(eh).redSqr().redISub(ei).redISub(ep);return this.curve.jpoint(ey,eC,eS)},JPoint.prototype.mul=function(et,eo){return et=new eu(et,eo),this.curve._wnafMul(this,et)},JPoint.prototype.eq=function(et){if("affine"===et.type)return this.eq(et.toJ());if(this===et)return!0;var eo=this.z.redSqr(),ei=et.z.redSqr();if(0!==this.x.redMul(ei).redISub(et.x.redMul(eo)).cmpn(0))return!1;var ea=eo.redMul(this.z),eu=ei.redMul(et.z);return 0===this.y.redMul(eu).redISub(et.y.redMul(ea)).cmpn(0)},JPoint.prototype.eqXToP=function(et){var eo=this.z.redSqr(),ei=et.toRed(this.curve.red).redMul(eo);if(0===this.x.cmp(ei))return!0;for(var ea=et.clone(),eu=this.curve.redN.redMul(eo);;){if(ea.iadd(this.curve.n),ea.cmp(this.curve.p)>=0)return!1;if(ei.redIAdd(eu),0===this.x.cmp(ei))return!0}},JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},JPoint.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(et,eo,ei){"use strict";var ea,eu=eo,ed=ei(7028),eh=ei(9359),ep=ei(4401).assert;function PresetCurve(et){"short"===et.type?this.curve=new eh.short(et):"edwards"===et.type?this.curve=new eh.edwards(et):this.curve=new eh.mont(et),this.g=this.curve.g,this.n=this.curve.n,this.hash=et.hash,ep(this.g.validate(),"Invalid curve"),ep(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function defineCurve(et,eo){Object.defineProperty(eu,et,{configurable:!0,enumerable:!0,get:function(){var ei=new PresetCurve(eo);return Object.defineProperty(eu,et,{configurable:!0,enumerable:!0,value:ei}),ei}})}eu.PresetCurve=PresetCurve,defineCurve("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:ed.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),defineCurve("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:ed.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),defineCurve("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:ed.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),defineCurve("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:ed.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),defineCurve("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:ed.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ed.sha256,gRed:!1,g:["9"]}),defineCurve("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ed.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{ea=ei(9702)}catch(et){ea=void 0}defineCurve("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:ed.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",ea]})},4088:function(et,eo,ei){"use strict";var ea=ei(711),eu=ei(4910),ed=ei(4401),eh=ei(6226),ep=ei(3500),ef=ed.assert,em=ei(4724),eg=ei(7526);function EC(et){if(!(this instanceof EC))return new EC(et);"string"==typeof et&&(ef(eh.hasOwnProperty(et),"Unknown curve "+et),et=eh[et]),et instanceof eh.PresetCurve&&(et={curve:et}),this.curve=et.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=et.curve.g,this.g.precompute(et.curve.n.bitLength()+1),this.hash=et.hash||et.curve.hash}et.exports=EC,EC.prototype.keyPair=function(et){return new em(this,et)},EC.prototype.keyFromPrivate=function(et,eo){return em.fromPrivate(this,et,eo)},EC.prototype.keyFromPublic=function(et,eo){return em.fromPublic(this,et,eo)},EC.prototype.genKeyPair=function(et){et||(et={});for(var eo=new eu({hash:this.hash,pers:et.pers,persEnc:et.persEnc||"utf8",entropy:et.entropy||ep(this.hash.hmacStrength),entropyEnc:et.entropy&&et.entropyEnc||"utf8",nonce:this.n.toArray()}),ei=this.n.byteLength(),ed=this.n.sub(new ea(2));;){var eh=new ea(eo.generate(ei));if(!(eh.cmp(ed)>0))return eh.iaddn(1),this.keyFromPrivate(eh)}},EC.prototype._truncateToN=function(et,eo){var ei=8*et.byteLength()-this.n.bitLength();return(ei>0&&(et=et.ushrn(ei)),!eo&&et.cmp(this.n)>=0)?et.sub(this.n):et},EC.prototype.sign=function(et,eo,ei,ed){"object"==typeof ei&&(ed=ei,ei=null),ed||(ed={}),eo=this.keyFromPrivate(eo,ei),et=this._truncateToN(new ea(et,16));for(var eh=this.n.byteLength(),ep=eo.getPrivate().toArray("be",eh),ef=et.toArray("be",eh),em=new eu({hash:this.hash,entropy:ep,nonce:ef,pers:ed.pers,persEnc:ed.persEnc||"utf8"}),ey=this.n.sub(new ea(1)),eC=0;;eC++){var eS=ed.k?ed.k(eC):new ea(em.generate(this.n.byteLength()));if(!(0>=(eS=this._truncateToN(eS,!0)).cmpn(1)||eS.cmp(ey)>=0)){var e_=this.g.mul(eS);if(!e_.isInfinity()){var ew=e_.getX(),eA=ew.umod(this.n);if(0!==eA.cmpn(0)){var eI=eS.invm(this.n).mul(eA.mul(eo.getPrivate()).iadd(et));if(0!==(eI=eI.umod(this.n)).cmpn(0)){var eR=(e_.getY().isOdd()?1:0)|(0!==ew.cmp(eA)?2:0);return ed.canonical&&eI.cmp(this.nh)>0&&(eI=this.n.sub(eI),eR^=1),new eg({r:eA,s:eI,recoveryParam:eR})}}}}}},EC.prototype.verify=function(et,eo,ei,eu){et=this._truncateToN(new ea(et,16)),ei=this.keyFromPublic(ei,eu);var ed=(eo=new eg(eo,"hex")).r,eh=eo.s;if(0>ed.cmpn(1)||ed.cmp(this.n)>=0||0>eh.cmpn(1)||eh.cmp(this.n)>=0)return!1;var ep=eh.invm(this.n),ef=ep.mul(et).umod(this.n),em=ep.mul(ed).umod(this.n);if(!this.curve._maxwellTrick){var ey=this.g.mulAdd(ef,ei.getPublic(),em);return!ey.isInfinity()&&0===ey.getX().umod(this.n).cmp(ed)}var ey=this.g.jmulAdd(ef,ei.getPublic(),em);return!ey.isInfinity()&&ey.eqXToP(ed)},EC.prototype.recoverPubKey=function(et,eo,ei,eu){ef((3&ei)===ei,"The recovery param is more than two bits"),eo=new eg(eo,eu);var ed=this.n,eh=new ea(et),ep=eo.r,em=eo.s,ey=1&ei,eC=ei>>1;if(ep.cmp(this.curve.p.umod(this.curve.n))>=0&&eC)throw Error("Unable to find sencond key candinate");ep=eC?this.curve.pointFromX(ep.add(this.curve.n),ey):this.curve.pointFromX(ep,ey);var eS=eo.r.invm(ed),e_=ed.sub(eh).mul(eS).umod(ed),ew=em.mul(eS).umod(ed);return this.g.mulAdd(e_,ep,ew)},EC.prototype.getKeyRecoveryParam=function(et,eo,ei,ea){if(null!==(eo=new eg(eo,ea)).recoveryParam)return eo.recoveryParam;for(var eu,ed=0;ed<4;ed++){try{eu=this.recoverPubKey(et,eo,ed)}catch(et){continue}if(eu.eq(ei))return ed}throw Error("Unable to find valid recovery factor")}},4724:function(et,eo,ei){"use strict";var ea=ei(711),eu=ei(4401).assert;function KeyPair(et,eo){this.ec=et,this.priv=null,this.pub=null,eo.priv&&this._importPrivate(eo.priv,eo.privEnc),eo.pub&&this._importPublic(eo.pub,eo.pubEnc)}et.exports=KeyPair,KeyPair.fromPublic=function(et,eo,ei){return eo instanceof KeyPair?eo:new KeyPair(et,{pub:eo,pubEnc:ei})},KeyPair.fromPrivate=function(et,eo,ei){return eo instanceof KeyPair?eo:new KeyPair(et,{priv:eo,privEnc:ei})},KeyPair.prototype.validate=function(){var et=this.getPublic();return et.isInfinity()?{result:!1,reason:"Invalid public key"}:et.validate()?et.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},KeyPair.prototype.getPublic=function(et,eo){return("string"==typeof et&&(eo=et,et=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),eo)?this.pub.encode(eo,et):this.pub},KeyPair.prototype.getPrivate=function(et){return"hex"===et?this.priv.toString(16,2):this.priv},KeyPair.prototype._importPrivate=function(et,eo){this.priv=new ea(et,eo||16),this.priv=this.priv.umod(this.ec.curve.n)},KeyPair.prototype._importPublic=function(et,eo){if(et.x||et.y){"mont"===this.ec.curve.type?eu(et.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&eu(et.x&&et.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(et.x,et.y);return}this.pub=this.ec.curve.decodePoint(et,eo)},KeyPair.prototype.derive=function(et){return et.mul(this.priv).getX()},KeyPair.prototype.sign=function(et,eo,ei){return this.ec.sign(et,this,eo,ei)},KeyPair.prototype.verify=function(et,eo){return this.ec.verify(et,eo,this)},KeyPair.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(et,eo,ei){"use strict";var ea=ei(711),eu=ei(4401),ed=eu.assert;function Signature(et,eo){if(et instanceof Signature)return et;this._importDER(et,eo)||(ed(et.r&&et.s,"Signature without r or s"),this.r=new ea(et.r,16),this.s=new ea(et.s,16),void 0===et.recoveryParam?this.recoveryParam=null:this.recoveryParam=et.recoveryParam)}function Position(){this.place=0}function getLength(et,eo){var ei=et[eo.place++];if(!(128&ei))return ei;var ea=15&ei;if(0===ea||ea>4)return!1;for(var eu=0,ed=0,eh=eo.place;ed<ea;ed++,eh++)eu<<=8,eu|=et[eh],eu>>>=0;return!(eu<=127)&&(eo.place=eh,eu)}function rmPadding(et){for(var eo=0,ei=et.length-1;!et[eo]&&!(128&et[eo+1])&&eo<ei;)eo++;return 0===eo?et:et.slice(eo)}function constructLength(et,eo){if(eo<128){et.push(eo);return}var ei=1+(Math.log(eo)/Math.LN2>>>3);for(et.push(128|ei);--ei;)et.push(eo>>>(ei<<3)&255);et.push(eo)}et.exports=Signature,Signature.prototype._importDER=function(et,eo){et=eu.toArray(et,eo);var ei=new Position;if(48!==et[ei.place++])return!1;var ed=getLength(et,ei);if(!1===ed||ed+ei.place!==et.length||2!==et[ei.place++])return!1;var eh=getLength(et,ei);if(!1===eh)return!1;var ep=et.slice(ei.place,eh+ei.place);if(ei.place+=eh,2!==et[ei.place++])return!1;var ef=getLength(et,ei);if(!1===ef||et.length!==ef+ei.place)return!1;var em=et.slice(ei.place,ef+ei.place);if(0===ep[0]){if(!(128&ep[1]))return!1;ep=ep.slice(1)}if(0===em[0]){if(!(128&em[1]))return!1;em=em.slice(1)}return this.r=new ea(ep),this.s=new ea(em),this.recoveryParam=null,!0},Signature.prototype.toDER=function(et){var eo=this.r.toArray(),ei=this.s.toArray();for(128&eo[0]&&(eo=[0].concat(eo)),128&ei[0]&&(ei=[0].concat(ei)),eo=rmPadding(eo),ei=rmPadding(ei);!ei[0]&&!(128&ei[1]);)ei=ei.slice(1);var ea=[2];constructLength(ea,eo.length),(ea=ea.concat(eo)).push(2),constructLength(ea,ei.length);var ed=ea.concat(ei),eh=[48];return constructLength(eh,ed.length),eh=eh.concat(ed),eu.encode(eh,et)}},8511:function(et,eo,ei){"use strict";var ea=ei(7028),eu=ei(6226),ed=ei(4401),eh=ed.assert,ep=ed.parseBytes,ef=ei(9917),em=ei(9314);function EDDSA(et){if(eh("ed25519"===et,"only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(et);var et=eu[et].curve;this.curve=et,this.g=et.g,this.g.precompute(et.n.bitLength()+1),this.pointClass=et.point().constructor,this.encodingLength=Math.ceil(et.n.bitLength()/8),this.hash=ea.sha512}et.exports=EDDSA,EDDSA.prototype.sign=function(et,eo){et=ep(et);var ei=this.keyFromSecret(eo),ea=this.hashInt(ei.messagePrefix(),et),eu=this.g.mul(ea),ed=this.encodePoint(eu),eh=this.hashInt(ed,ei.pubBytes(),et).mul(ei.priv()),ef=ea.add(eh).umod(this.curve.n);return this.makeSignature({R:eu,S:ef,Rencoded:ed})},EDDSA.prototype.verify=function(et,eo,ei){et=ep(et),eo=this.makeSignature(eo);var ea=this.keyFromPublic(ei),eu=this.hashInt(eo.Rencoded(),ea.pubBytes(),et),ed=this.g.mul(eo.S());return eo.R().add(ea.pub().mul(eu)).eq(ed)},EDDSA.prototype.hashInt=function(){for(var et=this.hash(),eo=0;eo<arguments.length;eo++)et.update(arguments[eo]);return ed.intFromLE(et.digest()).umod(this.curve.n)},EDDSA.prototype.keyFromPublic=function(et){return ef.fromPublic(this,et)},EDDSA.prototype.keyFromSecret=function(et){return ef.fromSecret(this,et)},EDDSA.prototype.makeSignature=function(et){return et instanceof em?et:new em(this,et)},EDDSA.prototype.encodePoint=function(et){var eo=et.getY().toArray("le",this.encodingLength);return eo[this.encodingLength-1]|=et.getX().isOdd()?128:0,eo},EDDSA.prototype.decodePoint=function(et){var eo=(et=ed.parseBytes(et)).length-1,ei=et.slice(0,eo).concat(-129&et[eo]),ea=(128&et[eo])!=0,eu=ed.intFromLE(ei);return this.curve.pointFromY(eu,ea)},EDDSA.prototype.encodeInt=function(et){return et.toArray("le",this.encodingLength)},EDDSA.prototype.decodeInt=function(et){return ed.intFromLE(et)},EDDSA.prototype.isPoint=function(et){return et instanceof this.pointClass}},9917:function(et,eo,ei){"use strict";var ea=ei(4401),eu=ea.assert,ed=ea.parseBytes,eh=ea.cachedProperty;function KeyPair(et,eo){this.eddsa=et,this._secret=ed(eo.secret),et.isPoint(eo.pub)?this._pub=eo.pub:this._pubBytes=ed(eo.pub)}KeyPair.fromPublic=function(et,eo){return eo instanceof KeyPair?eo:new KeyPair(et,{pub:eo})},KeyPair.fromSecret=function(et,eo){return eo instanceof KeyPair?eo:new KeyPair(et,{secret:eo})},KeyPair.prototype.secret=function(){return this._secret},eh(KeyPair,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),eh(KeyPair,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),eh(KeyPair,"privBytes",function(){var et=this.eddsa,eo=this.hash(),ei=et.encodingLength-1,ea=eo.slice(0,et.encodingLength);return ea[0]&=248,ea[ei]&=127,ea[ei]|=64,ea}),eh(KeyPair,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),eh(KeyPair,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),eh(KeyPair,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),KeyPair.prototype.sign=function(et){return eu(this._secret,"KeyPair can only verify"),this.eddsa.sign(et,this)},KeyPair.prototype.verify=function(et,eo){return this.eddsa.verify(et,eo,this)},KeyPair.prototype.getSecret=function(et){return eu(this._secret,"KeyPair is public only"),ea.encode(this.secret(),et)},KeyPair.prototype.getPublic=function(et){return ea.encode(this.pubBytes(),et)},et.exports=KeyPair},9314:function(et,eo,ei){"use strict";var ea=ei(711),eu=ei(4401),ed=eu.assert,eh=eu.cachedProperty,ep=eu.parseBytes;function Signature(et,eo){this.eddsa=et,"object"!=typeof eo&&(eo=ep(eo)),Array.isArray(eo)&&(eo={R:eo.slice(0,et.encodingLength),S:eo.slice(et.encodingLength)}),ed(eo.R&&eo.S,"Signature without R or S"),et.isPoint(eo.R)&&(this._R=eo.R),eo.S instanceof ea&&(this._S=eo.S),this._Rencoded=Array.isArray(eo.R)?eo.R:eo.Rencoded,this._Sencoded=Array.isArray(eo.S)?eo.S:eo.Sencoded}eh(Signature,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),eh(Signature,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),eh(Signature,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),eh(Signature,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Signature.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Signature.prototype.toHex=function(){return eu.encode(this.toBytes(),"hex").toUpperCase()},et.exports=Signature},9702:function(et){et.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},4401:function(et,eo,ei){"use strict";var ea=eo,eu=ei(711),ed=ei(3523),eh=ei(6545);function getNAF(et,eo,ei){var ea=Array(Math.max(et.bitLength(),ei)+1);ea.fill(0);for(var eu=1<<eo+1,ed=et.clone(),eh=0;eh<ea.length;eh++){var ep,ef=ed.andln(eu-1);ed.isOdd()?(ep=ef>(eu>>1)-1?(eu>>1)-ef:ef,ed.isubn(ep)):ep=0,ea[eh]=ep,ed.iushrn(1)}return ea}function getJSF(et,eo){var ei=[[],[]];et=et.clone(),eo=eo.clone();for(var ea=0,eu=0;et.cmpn(-ea)>0||eo.cmpn(-eu)>0;){var ed,eh,ep=et.andln(3)+ea&3,ef=eo.andln(3)+eu&3;if(3===ep&&(ep=-1),3===ef&&(ef=-1),(1&ep)==0)ed=0;else{var em=et.andln(7)+ea&7;ed=(3===em||5===em)&&2===ef?-ep:ep}if(ei[0].push(ed),(1&ef)==0)eh=0;else{var em=eo.andln(7)+eu&7;eh=(3===em||5===em)&&2===ep?-ef:ef}ei[1].push(eh),2*ea===ed+1&&(ea=1-ea),2*eu===eh+1&&(eu=1-eu),et.iushrn(1),eo.iushrn(1)}return ei}function cachedProperty(et,eo,ei){var ea="_"+eo;et.prototype[eo]=function(){return void 0!==this[ea]?this[ea]:this[ea]=ei.call(this)}}function parseBytes(et){return"string"==typeof et?ea.toArray(et,"hex"):et}function intFromLE(et){return new eu(et,"hex","le")}ea.assert=ed,ea.toArray=eh.toArray,ea.zero2=eh.zero2,ea.toHex=eh.toHex,ea.encode=eh.encode,ea.getNAF=getNAF,ea.getJSF=getJSF,ea.cachedProperty=cachedProperty,ea.parseBytes=parseBytes,ea.intFromLE=intFromLE},8368:function(et,eo,ei){var ea=ei(6911).Buffer,eu=ei(3533);function EVP_BytesToKey(et,eo,ei,ed){if(ea.isBuffer(et)||(et=ea.from(et,"binary")),eo&&(ea.isBuffer(eo)||(eo=ea.from(eo,"binary")),8!==eo.length))throw RangeError("salt should be Buffer with 8 byte length");for(var eh=ei/8,ep=ea.alloc(eh),ef=ea.alloc(ed||0),em=ea.alloc(0);eh>0||ed>0;){var eg=new eu;eg.update(em),eg.update(et),eo&&eg.update(eo),em=eg.digest();var ey=0;if(eh>0){var eC=ep.length-eh;ey=Math.min(eh,em.length),em.copy(ep,eC,0,ey),eh-=ey}if(ey<em.length&&ed>0){var eS=ef.length-ed,e_=Math.min(ed,em.length-ey);em.copy(ef,eS,ey,ey+e_),ed-=e_}}return em.fill(0),{key:ep,iv:ef}}et.exports=EVP_BytesToKey},9029:function(et,eo,ei){"use strict";var ea=ei(6911).Buffer,eu=ei(3726).Transform;function throwIfNotStringOrBuffer(et,eo){if(!ea.isBuffer(et)&&"string"!=typeof et)throw TypeError(eo+" must be a string or a buffer")}function HashBase(et){eu.call(this),this._block=ea.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ei(3782)(HashBase,eu),HashBase.prototype._transform=function(et,eo,ei){var ea=null;try{this.update(et,eo)}catch(et){ea=et}ei(ea)},HashBase.prototype._flush=function(et){var eo=null;try{this.push(this.digest())}catch(et){eo=et}et(eo)},HashBase.prototype.update=function(et,eo){if(throwIfNotStringOrBuffer(et,"Data"),this._finalized)throw Error("Digest already called");ea.isBuffer(et)||(et=ea.from(et,eo));for(var ei=this._block,eu=0;this._blockOffset+et.length-eu>=this._blockSize;){for(var ed=this._blockOffset;ed<this._blockSize;)ei[ed++]=et[eu++];this._update(),this._blockOffset=0}for(;eu<et.length;)ei[this._blockOffset++]=et[eu++];for(var eh=0,ep=8*et.length;ep>0;++eh)this._length[eh]+=ep,(ep=this._length[eh]/4294967296|0)>0&&(this._length[eh]-=4294967296*ep);return this},HashBase.prototype._update=function(){throw Error("_update is not implemented")},HashBase.prototype.digest=function(et){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var eo=this._digest();void 0!==et&&(eo=eo.toString(et)),this._block.fill(0),this._blockOffset=0;for(var ei=0;ei<4;++ei)this._length[ei]=0;return eo},HashBase.prototype._digest=function(){throw Error("_digest is not implemented")},et.exports=HashBase},7028:function(et,eo,ei){var ea=eo;ea.utils=ei(263),ea.common=ei(1330),ea.sha=ei(301),ea.ripemd=ei(3079),ea.hmac=ei(3092),ea.sha1=ea.sha.sha1,ea.sha256=ea.sha.sha256,ea.sha224=ea.sha.sha224,ea.sha384=ea.sha.sha384,ea.sha512=ea.sha.sha512,ea.ripemd160=ea.ripemd.ripemd160},1330:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(3523);function BlockHash(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}eo.BlockHash=BlockHash,BlockHash.prototype.update=function(et,eo){if(et=ea.toArray(et,eo),this.pending?this.pending=this.pending.concat(et):this.pending=et,this.pendingTotal+=et.length,this.pending.length>=this._delta8){var ei=(et=this.pending).length%this._delta8;this.pending=et.slice(et.length-ei,et.length),0===this.pending.length&&(this.pending=null),et=ea.join32(et,0,et.length-ei,this.endian);for(var eu=0;eu<et.length;eu+=this._delta32)this._update(et,eu,eu+this._delta32)}return this},BlockHash.prototype.digest=function(et){return this.update(this._pad()),eu(null===this.pending),this._digest(et)},BlockHash.prototype._pad=function(){var et=this.pendingTotal,eo=this._delta8,ei=eo-(et+this.padLength)%eo,ea=Array(ei+this.padLength);ea[0]=128;for(var eu=1;eu<ei;eu++)ea[eu]=0;if(et<<=3,"big"===this.endian){for(var ed=8;ed<this.padLength;ed++)ea[eu++]=0;ea[eu++]=0,ea[eu++]=0,ea[eu++]=0,ea[eu++]=0,ea[eu++]=et>>>24&255,ea[eu++]=et>>>16&255,ea[eu++]=et>>>8&255,ea[eu++]=255&et}else for(ed=8,ea[eu++]=255&et,ea[eu++]=et>>>8&255,ea[eu++]=et>>>16&255,ea[eu++]=et>>>24&255,ea[eu++]=0,ea[eu++]=0,ea[eu++]=0,ea[eu++]=0;ed<this.padLength;ed++)ea[eu++]=0;return ea}},3092:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(3523);function Hmac(et,eo,ei){if(!(this instanceof Hmac))return new Hmac(et,eo,ei);this.Hash=et,this.blockSize=et.blockSize/8,this.outSize=et.outSize/8,this.inner=null,this.outer=null,this._init(ea.toArray(eo,ei))}et.exports=Hmac,Hmac.prototype._init=function(et){et.length>this.blockSize&&(et=(new this.Hash).update(et).digest()),eu(et.length<=this.blockSize);for(var eo=et.length;eo<this.blockSize;eo++)et.push(0);for(eo=0;eo<et.length;eo++)et[eo]^=54;for(eo=0,this.inner=(new this.Hash).update(et);eo<et.length;eo++)et[eo]^=106;this.outer=(new this.Hash).update(et)},Hmac.prototype.update=function(et,eo){return this.inner.update(et,eo),this},Hmac.prototype.digest=function(et){return this.outer.update(this.inner.digest()),this.outer.digest(et)}},3079:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(1330),ed=ea.rotl32,eh=ea.sum32,ep=ea.sum32_3,ef=ea.sum32_4,em=eu.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;em.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(et,eo,ei,ea){return et<=15?eo^ei^ea:et<=31?eo&ei|~eo&ea:et<=47?(eo|~ei)^ea:et<=63?eo&ea|ei&~ea:eo^(ei|~ea)}function K(et){return et<=15?0:et<=31?1518500249:et<=47?1859775393:et<=63?2400959708:2840853838}function Kh(et){return et<=15?1352829926:et<=31?1548603684:et<=47?1836072691:et<=63?2053994217:0}ea.inherits(RIPEMD160,em),eo.ripemd160=RIPEMD160,RIPEMD160.blockSize=512,RIPEMD160.outSize=160,RIPEMD160.hmacStrength=192,RIPEMD160.padLength=64,RIPEMD160.prototype._update=function(et,eo){for(var ei=this.h[0],ea=this.h[1],eu=this.h[2],em=this.h[3],e_=this.h[4],ew=ei,eA=ea,eI=eu,eR=em,eT=e_,eE=0;eE<80;eE++){var eP=eh(ed(ef(ei,f(eE,ea,eu,em),et[eg[eE]+eo],K(eE)),eC[eE]),e_);ei=e_,e_=em,em=ed(eu,10),eu=ea,ea=eP,eP=eh(ed(ef(ew,f(79-eE,eA,eI,eR),et[ey[eE]+eo],Kh(eE)),eS[eE]),eT),ew=eT,eT=eR,eR=ed(eI,10),eI=eA,eA=eP}eP=ep(this.h[1],eu,eR),this.h[1]=ep(this.h[2],em,eT),this.h[2]=ep(this.h[3],e_,ew),this.h[3]=ep(this.h[4],ei,eA),this.h[4]=ep(this.h[0],ea,eI),this.h[0]=eP},RIPEMD160.prototype._digest=function(et){return"hex"===et?ea.toHex32(this.h,"little"):ea.split32(this.h,"little")};var eg=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ey=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],eC=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],eS=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},301:function(et,eo,ei){"use strict";eo.sha1=ei(2742),eo.sha224=ei(7105),eo.sha256=ei(1525),eo.sha384=ei(9948),eo.sha512=ei(1319)},2742:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(1330),ed=ei(2975),eh=ea.rotl32,ep=ea.sum32,ef=ea.sum32_5,em=ed.ft_1,eg=eu.BlockHash,ey=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;eg.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}ea.inherits(SHA1,eg),et.exports=SHA1,SHA1.blockSize=512,SHA1.outSize=160,SHA1.hmacStrength=80,SHA1.padLength=64,SHA1.prototype._update=function(et,eo){for(var ei=this.W,ea=0;ea<16;ea++)ei[ea]=et[eo+ea];for(;ea<ei.length;ea++)ei[ea]=eh(ei[ea-3]^ei[ea-8]^ei[ea-14]^ei[ea-16],1);var eu=this.h[0],ed=this.h[1],eg=this.h[2],eC=this.h[3],eS=this.h[4];for(ea=0;ea<ei.length;ea++){var e_=~~(ea/20),ew=ef(eh(eu,5),em(e_,ed,eg,eC),eS,ei[ea],ey[e_]);eS=eC,eC=eg,eg=eh(ed,30),ed=eu,eu=ew}this.h[0]=ep(this.h[0],eu),this.h[1]=ep(this.h[1],ed),this.h[2]=ep(this.h[2],eg),this.h[3]=ep(this.h[3],eC),this.h[4]=ep(this.h[4],eS)},SHA1.prototype._digest=function(et){return"hex"===et?ea.toHex32(this.h,"big"):ea.split32(this.h,"big")}},7105:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(1525);function SHA224(){if(!(this instanceof SHA224))return new SHA224;eu.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ea.inherits(SHA224,eu),et.exports=SHA224,SHA224.blockSize=512,SHA224.outSize=224,SHA224.hmacStrength=192,SHA224.padLength=64,SHA224.prototype._digest=function(et){return"hex"===et?ea.toHex32(this.h.slice(0,7),"big"):ea.split32(this.h.slice(0,7),"big")}},1525:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(1330),ed=ei(2975),eh=ei(3523),ep=ea.sum32,ef=ea.sum32_4,em=ea.sum32_5,eg=ed.ch32,ey=ed.maj32,eC=ed.s0_256,eS=ed.s1_256,e_=ed.g0_256,ew=ed.g1_256,eA=eu.BlockHash,eI=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function SHA256(){if(!(this instanceof SHA256))return new SHA256;eA.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=eI,this.W=Array(64)}ea.inherits(SHA256,eA),et.exports=SHA256,SHA256.blockSize=512,SHA256.outSize=256,SHA256.hmacStrength=192,SHA256.padLength=64,SHA256.prototype._update=function(et,eo){for(var ei=this.W,ea=0;ea<16;ea++)ei[ea]=et[eo+ea];for(;ea<ei.length;ea++)ei[ea]=ef(ew(ei[ea-2]),ei[ea-7],e_(ei[ea-15]),ei[ea-16]);var eu=this.h[0],ed=this.h[1],eA=this.h[2],eI=this.h[3],eR=this.h[4],eT=this.h[5],eE=this.h[6],eP=this.h[7];for(eh(this.k.length===ei.length),ea=0;ea<ei.length;ea++){var ek=em(eP,eS(eR),eg(eR,eT,eE),this.k[ea],ei[ea]),eO=ep(eC(eu),ey(eu,ed,eA));eP=eE,eE=eT,eT=eR,eR=ep(eI,ek),eI=eA,eA=ed,ed=eu,eu=ep(ek,eO)}this.h[0]=ep(this.h[0],eu),this.h[1]=ep(this.h[1],ed),this.h[2]=ep(this.h[2],eA),this.h[3]=ep(this.h[3],eI),this.h[4]=ep(this.h[4],eR),this.h[5]=ep(this.h[5],eT),this.h[6]=ep(this.h[6],eE),this.h[7]=ep(this.h[7],eP)},SHA256.prototype._digest=function(et){return"hex"===et?ea.toHex32(this.h,"big"):ea.split32(this.h,"big")}},9948:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(1319);function SHA384(){if(!(this instanceof SHA384))return new SHA384;eu.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ea.inherits(SHA384,eu),et.exports=SHA384,SHA384.blockSize=1024,SHA384.outSize=384,SHA384.hmacStrength=192,SHA384.padLength=128,SHA384.prototype._digest=function(et){return"hex"===et?ea.toHex32(this.h.slice(0,12),"big"):ea.split32(this.h.slice(0,12),"big")}},1319:function(et,eo,ei){"use strict";var ea=ei(263),eu=ei(1330),ed=ei(3523),eh=ea.rotr64_hi,ep=ea.rotr64_lo,ef=ea.shr64_hi,em=ea.shr64_lo,eg=ea.sum64,ey=ea.sum64_hi,eC=ea.sum64_lo,eS=ea.sum64_4_hi,e_=ea.sum64_4_lo,ew=ea.sum64_5_hi,eA=ea.sum64_5_lo,eI=eu.BlockHash,eR=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function SHA512(){if(!(this instanceof SHA512))return new SHA512;eI.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=eR,this.W=Array(160)}function ch64_hi(et,eo,ei,ea,eu){var ed=et&ei^~et&eu;return ed<0&&(ed+=4294967296),ed}function ch64_lo(et,eo,ei,ea,eu,ed){var eh=eo&ea^~eo&ed;return eh<0&&(eh+=4294967296),eh}function maj64_hi(et,eo,ei,ea,eu){var ed=et&ei^et&eu^ei&eu;return ed<0&&(ed+=4294967296),ed}function maj64_lo(et,eo,ei,ea,eu,ed){var eh=eo&ea^eo&ed^ea&ed;return eh<0&&(eh+=4294967296),eh}function s0_512_hi(et,eo){var ei=eh(et,eo,28)^eh(eo,et,2)^eh(eo,et,7);return ei<0&&(ei+=4294967296),ei}function s0_512_lo(et,eo){var ei=ep(et,eo,28)^ep(eo,et,2)^ep(eo,et,7);return ei<0&&(ei+=4294967296),ei}function s1_512_hi(et,eo){var ei=eh(et,eo,14)^eh(et,eo,18)^eh(eo,et,9);return ei<0&&(ei+=4294967296),ei}function s1_512_lo(et,eo){var ei=ep(et,eo,14)^ep(et,eo,18)^ep(eo,et,9);return ei<0&&(ei+=4294967296),ei}function g0_512_hi(et,eo){var ei=eh(et,eo,1)^eh(et,eo,8)^ef(et,eo,7);return ei<0&&(ei+=4294967296),ei}function g0_512_lo(et,eo){var ei=ep(et,eo,1)^ep(et,eo,8)^em(et,eo,7);return ei<0&&(ei+=4294967296),ei}function g1_512_hi(et,eo){var ei=eh(et,eo,19)^eh(eo,et,29)^ef(et,eo,6);return ei<0&&(ei+=4294967296),ei}function g1_512_lo(et,eo){var ei=ep(et,eo,19)^ep(eo,et,29)^em(et,eo,6);return ei<0&&(ei+=4294967296),ei}ea.inherits(SHA512,eI),et.exports=SHA512,SHA512.blockSize=1024,SHA512.outSize=512,SHA512.hmacStrength=192,SHA512.padLength=128,SHA512.prototype._prepareBlock=function(et,eo){for(var ei=this.W,ea=0;ea<32;ea++)ei[ea]=et[eo+ea];for(;ea<ei.length;ea+=2){var eu=g1_512_hi(ei[ea-4],ei[ea-3]),ed=g1_512_lo(ei[ea-4],ei[ea-3]),eh=ei[ea-14],ep=ei[ea-13],ef=g0_512_hi(ei[ea-30],ei[ea-29]),em=g0_512_lo(ei[ea-30],ei[ea-29]),eg=ei[ea-32],ey=ei[ea-31];ei[ea]=eS(eu,ed,eh,ep,ef,em,eg,ey),ei[ea+1]=e_(eu,ed,eh,ep,ef,em,eg,ey)}},SHA512.prototype._update=function(et,eo){this._prepareBlock(et,eo);var ei=this.W,ea=this.h[0],eu=this.h[1],eh=this.h[2],ep=this.h[3],ef=this.h[4],em=this.h[5],eS=this.h[6],e_=this.h[7],eI=this.h[8],eR=this.h[9],eT=this.h[10],eE=this.h[11],eP=this.h[12],ek=this.h[13],eO=this.h[14],eM=this.h[15];ed(this.k.length===ei.length);for(var eD=0;eD<ei.length;eD+=2){var eU=eO,eL=eM,eN=s1_512_hi(eI,eR),eB=s1_512_lo(eI,eR),eF=ch64_hi(eI,eR,eT,eE,eP,ek),ej=ch64_lo(eI,eR,eT,eE,eP,ek),eG=this.k[eD],eH=this.k[eD+1],eK=ei[eD],ez=ei[eD+1],eW=ew(eU,eL,eN,eB,eF,ej,eG,eH,eK,ez),eV=eA(eU,eL,eN,eB,eF,ej,eG,eH,eK,ez);eU=s0_512_hi(ea,eu);var eJ=ey(eU,eL=s0_512_lo(ea,eu),eN=maj64_hi(ea,eu,eh,ep,ef,em),eB=maj64_lo(ea,eu,eh,ep,ef,em)),eY=eC(eU,eL,eN,eB);eO=eP,eM=ek,eP=eT,ek=eE,eT=eI,eE=eR,eI=ey(eS,e_,eW,eV),eR=eC(e_,e_,eW,eV),eS=ef,e_=em,ef=eh,em=ep,eh=ea,ep=eu,ea=ey(eW,eV,eJ,eY),eu=eC(eW,eV,eJ,eY)}eg(this.h,0,ea,eu),eg(this.h,2,eh,ep),eg(this.h,4,ef,em),eg(this.h,6,eS,e_),eg(this.h,8,eI,eR),eg(this.h,10,eT,eE),eg(this.h,12,eP,ek),eg(this.h,14,eO,eM)},SHA512.prototype._digest=function(et){return"hex"===et?ea.toHex32(this.h,"big"):ea.split32(this.h,"big")}},2975:function(et,eo,ei){"use strict";var ea=ei(263).rotr32;function ft_1(et,eo,ei,ea){return 0===et?ch32(eo,ei,ea):1===et||3===et?p32(eo,ei,ea):2===et?maj32(eo,ei,ea):void 0}function ch32(et,eo,ei){return et&eo^~et&ei}function maj32(et,eo,ei){return et&eo^et&ei^eo&ei}function p32(et,eo,ei){return et^eo^ei}function s0_256(et){return ea(et,2)^ea(et,13)^ea(et,22)}function s1_256(et){return ea(et,6)^ea(et,11)^ea(et,25)}function g0_256(et){return ea(et,7)^ea(et,18)^et>>>3}function g1_256(et){return ea(et,17)^ea(et,19)^et>>>10}eo.ft_1=ft_1,eo.ch32=ch32,eo.maj32=maj32,eo.p32=p32,eo.s0_256=s0_256,eo.s1_256=s1_256,eo.g0_256=g0_256,eo.g1_256=g1_256},263:function(et,eo,ei){"use strict";var ea=ei(3523),eu=ei(3782);function isSurrogatePair(et,eo){return(64512&et.charCodeAt(eo))==55296&&!(eo<0)&&!(eo+1>=et.length)&&(64512&et.charCodeAt(eo+1))==56320}function toArray(et,eo){if(Array.isArray(et))return et.slice();if(!et)return[];var ei=[];if("string"==typeof et){if(eo){if("hex"===eo)for((et=et.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(et="0"+et),eu=0;eu<et.length;eu+=2)ei.push(parseInt(et[eu]+et[eu+1],16))}else for(var ea=0,eu=0;eu<et.length;eu++){var ed=et.charCodeAt(eu);ed<128?ei[ea++]=ed:(ed<2048?ei[ea++]=ed>>6|192:(isSurrogatePair(et,eu)?(ed=65536+((1023&ed)<<10)+(1023&et.charCodeAt(++eu)),ei[ea++]=ed>>18|240,ei[ea++]=ed>>12&63|128):ei[ea++]=ed>>12|224,ei[ea++]=ed>>6&63|128),ei[ea++]=63&ed|128)}}else for(eu=0;eu<et.length;eu++)ei[eu]=0|et[eu];return ei}function toHex(et){for(var eo="",ei=0;ei<et.length;ei++)eo+=zero2(et[ei].toString(16));return eo}function htonl(et){return(et>>>24|et>>>8&65280|et<<8&16711680|(255&et)<<24)>>>0}function toHex32(et,eo){for(var ei="",ea=0;ea<et.length;ea++){var eu=et[ea];"little"===eo&&(eu=htonl(eu)),ei+=zero8(eu.toString(16))}return ei}function zero2(et){return 1===et.length?"0"+et:et}function zero8(et){if(7===et.length)return"0"+et;if(6===et.length)return"00"+et;if(5===et.length)return"000"+et;if(4===et.length)return"0000"+et;if(3===et.length)return"00000"+et;if(2===et.length)return"000000"+et;if(1===et.length)return"0000000"+et;else return et}function join32(et,eo,ei,eu){var ed,eh=ei-eo;ea(eh%4==0);for(var ep=Array(eh/4),ef=0,em=eo;ef<ep.length;ef++,em+=4)ed="big"===eu?et[em]<<24|et[em+1]<<16|et[em+2]<<8|et[em+3]:et[em+3]<<24|et[em+2]<<16|et[em+1]<<8|et[em],ep[ef]=ed>>>0;return ep}function split32(et,eo){for(var ei=Array(4*et.length),ea=0,eu=0;ea<et.length;ea++,eu+=4){var ed=et[ea];"big"===eo?(ei[eu]=ed>>>24,ei[eu+1]=ed>>>16&255,ei[eu+2]=ed>>>8&255,ei[eu+3]=255&ed):(ei[eu+3]=ed>>>24,ei[eu+2]=ed>>>16&255,ei[eu+1]=ed>>>8&255,ei[eu]=255&ed)}return ei}function rotr32(et,eo){return et>>>eo|et<<32-eo}function rotl32(et,eo){return et<<eo|et>>>32-eo}function sum32(et,eo){return et+eo>>>0}function sum32_3(et,eo,ei){return et+eo+ei>>>0}function sum32_4(et,eo,ei,ea){return et+eo+ei+ea>>>0}function sum32_5(et,eo,ei,ea,eu){return et+eo+ei+ea+eu>>>0}function sum64(et,eo,ei,ea){var eu=et[eo],ed=ea+et[eo+1]>>>0,eh=(ed<ea?1:0)+ei+eu;et[eo]=eh>>>0,et[eo+1]=ed}function sum64_hi(et,eo,ei,ea){return(eo+ea>>>0<eo?1:0)+et+ei>>>0}function sum64_lo(et,eo,ei,ea){return eo+ea>>>0}function sum64_4_hi(et,eo,ei,ea,eu,ed,eh,ep){var ef,em=eo;return et+ei+eu+eh+(ef=0+((em=em+ea>>>0)<eo?1:0)+((em=em+ed>>>0)<ed?1:0)+((em=em+ep>>>0)<ep?1:0))>>>0}function sum64_4_lo(et,eo,ei,ea,eu,ed,eh,ep){return eo+ea+ed+ep>>>0}function sum64_5_hi(et,eo,ei,ea,eu,ed,eh,ep,ef,em){var eg,ey=eo;return et+ei+eu+eh+ef+(eg=0+((ey=ey+ea>>>0)<eo?1:0)+((ey=ey+ed>>>0)<ed?1:0)+((ey=ey+ep>>>0)<ep?1:0)+((ey=ey+em>>>0)<em?1:0))>>>0}function sum64_5_lo(et,eo,ei,ea,eu,ed,eh,ep,ef,em){return eo+ea+ed+ep+em>>>0}function rotr64_hi(et,eo,ei){return(eo<<32-ei|et>>>ei)>>>0}function rotr64_lo(et,eo,ei){return(et<<32-ei|eo>>>ei)>>>0}function shr64_hi(et,eo,ei){return et>>>ei}function shr64_lo(et,eo,ei){return(et<<32-ei|eo>>>ei)>>>0}eo.inherits=eu,eo.toArray=toArray,eo.toHex=toHex,eo.htonl=htonl,eo.toHex32=toHex32,eo.zero2=zero2,eo.zero8=zero8,eo.join32=join32,eo.split32=split32,eo.rotr32=rotr32,eo.rotl32=rotl32,eo.sum32=sum32,eo.sum32_3=sum32_3,eo.sum32_4=sum32_4,eo.sum32_5=sum32_5,eo.sum64=sum64,eo.sum64_hi=sum64_hi,eo.sum64_lo=sum64_lo,eo.sum64_4_hi=sum64_4_hi,eo.sum64_4_lo=sum64_4_lo,eo.sum64_5_hi=sum64_5_hi,eo.sum64_5_lo=sum64_5_lo,eo.rotr64_hi=rotr64_hi,eo.rotr64_lo=rotr64_lo,eo.shr64_hi=shr64_hi,eo.shr64_lo=shr64_lo},4910:function(et,eo,ei){"use strict";var ea=ei(7028),eu=ei(6545),ed=ei(3523);function HmacDRBG(et){if(!(this instanceof HmacDRBG))return new HmacDRBG(et);this.hash=et.hash,this.predResist=!!et.predResist,this.outLen=this.hash.outSize,this.minEntropy=et.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var eo=eu.toArray(et.entropy,et.entropyEnc||"hex"),ei=eu.toArray(et.nonce,et.nonceEnc||"hex"),ea=eu.toArray(et.pers,et.persEnc||"hex");ed(eo.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(eo,ei,ea)}et.exports=HmacDRBG,HmacDRBG.prototype._init=function(et,eo,ei){var ea=et.concat(eo).concat(ei);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var eu=0;eu<this.V.length;eu++)this.K[eu]=0,this.V[eu]=1;this._update(ea),this._reseed=1,this.reseedInterval=281474976710656},HmacDRBG.prototype._hmac=function(){return new ea.hmac(this.hash,this.K)},HmacDRBG.prototype._update=function(et){var eo=this._hmac().update(this.V).update([0]);et&&(eo=eo.update(et)),this.K=eo.digest(),this.V=this._hmac().update(this.V).digest(),et&&(this.K=this._hmac().update(this.V).update([1]).update(et).digest(),this.V=this._hmac().update(this.V).digest())},HmacDRBG.prototype.reseed=function(et,eo,ei,ea){"string"!=typeof eo&&(ea=ei,ei=eo,eo=null),et=eu.toArray(et,eo),ei=eu.toArray(ei,ea),ed(et.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(et.concat(ei||[])),this._reseed=1},HmacDRBG.prototype.generate=function(et,eo,ei,ea){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof eo&&(ea=ei,ei=eo,eo=null),ei&&(ei=eu.toArray(ei,ea||"hex"),this._update(ei));for(var ed=[];ed.length<et;)this.V=this._hmac().update(this.V).digest(),ed=ed.concat(this.V);var eh=ed.slice(0,et);return this._update(ei),this._reseed++,eu.encode(eh,eo)}},3782:function(et){"function"==typeof Object.create?et.exports=function(et,eo){eo&&(et.super_=eo,et.prototype=Object.create(eo.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}))}:et.exports=function(et,eo){if(eo){et.super_=eo;var TempCtor=function(){};TempCtor.prototype=eo.prototype,et.prototype=new TempCtor,et.prototype.constructor=et}}},3533:function(et,eo,ei){"use strict";var ea=ei(3782),eu=ei(9029),ed=ei(6911).Buffer,eh=Array(16);function MD5(){eu.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function rotl(et,eo){return et<<eo|et>>>32-eo}function fnF(et,eo,ei,ea,eu,ed,eh){return rotl(et+(eo&ei|~eo&ea)+eu+ed|0,eh)+eo|0}function fnG(et,eo,ei,ea,eu,ed,eh){return rotl(et+(eo&ea|ei&~ea)+eu+ed|0,eh)+eo|0}function fnH(et,eo,ei,ea,eu,ed,eh){return rotl(et+(eo^ei^ea)+eu+ed|0,eh)+eo|0}function fnI(et,eo,ei,ea,eu,ed,eh){return rotl(et+(ei^(eo|~ea))+eu+ed|0,eh)+eo|0}ea(MD5,eu),MD5.prototype._update=function(){for(var et=eh,eo=0;eo<16;++eo)et[eo]=this._block.readInt32LE(4*eo);var ei=this._a,ea=this._b,eu=this._c,ed=this._d;ei=fnF(ei,ea,eu,ed,et[0],3614090360,7),ed=fnF(ed,ei,ea,eu,et[1],3905402710,12),eu=fnF(eu,ed,ei,ea,et[2],606105819,17),ea=fnF(ea,eu,ed,ei,et[3],3250441966,22),ei=fnF(ei,ea,eu,ed,et[4],4118548399,7),ed=fnF(ed,ei,ea,eu,et[5],1200080426,12),eu=fnF(eu,ed,ei,ea,et[6],2821735955,17),ea=fnF(ea,eu,ed,ei,et[7],4249261313,22),ei=fnF(ei,ea,eu,ed,et[8],1770035416,7),ed=fnF(ed,ei,ea,eu,et[9],2336552879,12),eu=fnF(eu,ed,ei,ea,et[10],4294925233,17),ea=fnF(ea,eu,ed,ei,et[11],2304563134,22),ei=fnF(ei,ea,eu,ed,et[12],1804603682,7),ed=fnF(ed,ei,ea,eu,et[13],4254626195,12),eu=fnF(eu,ed,ei,ea,et[14],2792965006,17),ea=fnF(ea,eu,ed,ei,et[15],1236535329,22),ei=fnG(ei,ea,eu,ed,et[1],4129170786,5),ed=fnG(ed,ei,ea,eu,et[6],3225465664,9),eu=fnG(eu,ed,ei,ea,et[11],643717713,14),ea=fnG(ea,eu,ed,ei,et[0],3921069994,20),ei=fnG(ei,ea,eu,ed,et[5],3593408605,5),ed=fnG(ed,ei,ea,eu,et[10],38016083,9),eu=fnG(eu,ed,ei,ea,et[15],3634488961,14),ea=fnG(ea,eu,ed,ei,et[4],3889429448,20),ei=fnG(ei,ea,eu,ed,et[9],568446438,5),ed=fnG(ed,ei,ea,eu,et[14],3275163606,9),eu=fnG(eu,ed,ei,ea,et[3],4107603335,14),ea=fnG(ea,eu,ed,ei,et[8],1163531501,20),ei=fnG(ei,ea,eu,ed,et[13],2850285829,5),ed=fnG(ed,ei,ea,eu,et[2],4243563512,9),eu=fnG(eu,ed,ei,ea,et[7],1735328473,14),ea=fnG(ea,eu,ed,ei,et[12],2368359562,20),ei=fnH(ei,ea,eu,ed,et[5],4294588738,4),ed=fnH(ed,ei,ea,eu,et[8],2272392833,11),eu=fnH(eu,ed,ei,ea,et[11],1839030562,16),ea=fnH(ea,eu,ed,ei,et[14],4259657740,23),ei=fnH(ei,ea,eu,ed,et[1],2763975236,4),ed=fnH(ed,ei,ea,eu,et[4],1272893353,11),eu=fnH(eu,ed,ei,ea,et[7],4139469664,16),ea=fnH(ea,eu,ed,ei,et[10],3200236656,23),ei=fnH(ei,ea,eu,ed,et[13],681279174,4),ed=fnH(ed,ei,ea,eu,et[0],3936430074,11),eu=fnH(eu,ed,ei,ea,et[3],3572445317,16),ea=fnH(ea,eu,ed,ei,et[6],76029189,23),ei=fnH(ei,ea,eu,ed,et[9],3654602809,4),ed=fnH(ed,ei,ea,eu,et[12],3873151461,11),eu=fnH(eu,ed,ei,ea,et[15],530742520,16),ea=fnH(ea,eu,ed,ei,et[2],3299628645,23),ei=fnI(ei,ea,eu,ed,et[0],4096336452,6),ed=fnI(ed,ei,ea,eu,et[7],1126891415,10),eu=fnI(eu,ed,ei,ea,et[14],2878612391,15),ea=fnI(ea,eu,ed,ei,et[5],4237533241,21),ei=fnI(ei,ea,eu,ed,et[12],1700485571,6),ed=fnI(ed,ei,ea,eu,et[3],2399980690,10),eu=fnI(eu,ed,ei,ea,et[10],4293915773,15),ea=fnI(ea,eu,ed,ei,et[1],2240044497,21),ei=fnI(ei,ea,eu,ed,et[8],1873313359,6),ed=fnI(ed,ei,ea,eu,et[15],4264355552,10),eu=fnI(eu,ed,ei,ea,et[6],2734768916,15),ea=fnI(ea,eu,ed,ei,et[13],1309151649,21),ei=fnI(ei,ea,eu,ed,et[4],4149444226,6),ed=fnI(ed,ei,ea,eu,et[11],3174756917,10),eu=fnI(eu,ed,ei,ea,et[2],718787259,15),ea=fnI(ea,eu,ed,ei,et[9],3951481745,21),this._a=this._a+ei|0,this._b=this._b+ea|0,this._c=this._c+eu|0,this._d=this._d+ed|0},MD5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=ed.allocUnsafe(16);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et},et.exports=MD5},1354:function(et,eo,ei){var ea=ei(711),eu=ei(3500);function MillerRabin(et){this.rand=et||new eu.Rand}et.exports=MillerRabin,MillerRabin.create=function(et){return new MillerRabin(et)},MillerRabin.prototype._randbelow=function(et){var eo=Math.ceil(et.bitLength()/8);do var ei=new ea(this.rand.generate(eo));while(ei.cmp(et)>=0);return ei},MillerRabin.prototype._randrange=function(et,eo){var ei=eo.sub(et);return et.add(this._randbelow(ei))},MillerRabin.prototype.test=function(et,eo,ei){var eu=et.bitLength(),ed=ea.mont(et),eh=new ea(1).toRed(ed);eo||(eo=Math.max(1,eu/48|0));for(var ep=et.subn(1),ef=0;!ep.testn(ef);ef++);for(var em=et.shrn(ef),eg=ep.toRed(ed),ey=!0;eo>0;eo--){var eC=this._randrange(new ea(2),ep);ei&&ei(eC);var eS=eC.toRed(ed).redPow(em);if(0!==eS.cmp(eh)&&0!==eS.cmp(eg)){for(var e_=1;e_<ef;e_++){if(0===(eS=eS.redSqr()).cmp(eh))return!1;if(0===eS.cmp(eg))break}if(e_===ef)return!1}}return ey},MillerRabin.prototype.getDivisor=function(et,eo){var ei=et.bitLength(),eu=ea.mont(et),ed=new ea(1).toRed(eu);eo||(eo=Math.max(1,ei/48|0));for(var eh=et.subn(1),ep=0;!eh.testn(ep);ep++);for(var ef=et.shrn(ep),em=eh.toRed(eu);eo>0;eo--){var eg=this._randrange(new ea(2),eh),ey=et.gcd(eg);if(0!==ey.cmpn(1))return ey;var eC=eg.toRed(eu).redPow(ef);if(0!==eC.cmp(ed)&&0!==eC.cmp(em)){for(var eS=1;eS<ep;eS++){if(0===(eC=eC.redSqr()).cmp(ed))return eC.fromRed().subn(1).gcd(et);if(0===eC.cmp(em))break}if(eS===ep)return(eC=eC.redSqr()).fromRed().subn(1).gcd(et)}}return!1}},3523:function(et){function assert(et,eo){if(!et)throw Error(eo||"Assertion failed")}et.exports=assert,assert.equal=function(et,eo,ei){if(et!=eo)throw Error(ei||"Assertion failed: "+et+" != "+eo)}},6545:function(et,eo){"use strict";var ei=eo;function toArray(et,eo){if(Array.isArray(et))return et.slice();if(!et)return[];var ei=[];if("string"!=typeof et){for(var ea=0;ea<et.length;ea++)ei[ea]=0|et[ea];return ei}if("hex"===eo){(et=et.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(et="0"+et);for(var ea=0;ea<et.length;ea+=2)ei.push(parseInt(et[ea]+et[ea+1],16))}else for(var ea=0;ea<et.length;ea++){var eu=et.charCodeAt(ea),ed=eu>>8,eh=255&eu;ed?ei.push(ed,eh):ei.push(eh)}return ei}function zero2(et){return 1===et.length?"0"+et:et}function toHex(et){for(var eo="",ei=0;ei<et.length;ei++)eo+=zero2(et[ei].toString(16));return eo}ei.toArray=toArray,ei.zero2=zero2,ei.toHex=toHex,ei.encode=function(et,eo){return"hex"===eo?toHex(et):et}},8687:function(et,eo,ei){"use strict";var ea=ei(7160);eo.certificate=ei(8782);var eu=ea.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});eo.RSAPrivateKey=eu;var ed=ea.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});eo.RSAPublicKey=ed;var eh=ea.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(ep),this.key("subjectPublicKey").bitstr())});eo.PublicKey=eh;var ep=ea.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),ef=ea.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(ep),this.key("subjectPrivateKey").octstr())});eo.PrivateKey=ef;var em=ea.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});eo.EncryptedPrivateKey=em;var eg=ea.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});eo.DSAPrivateKey=eg,eo.DSAparam=ea.define("DSAparam",function(){this.int()});var ey=ea.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(eC),this.key("publicKey").optional().explicit(1).bitstr())});eo.ECPrivateKey=ey;var eC=ea.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});eo.signature=ea.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(et,eo,ei){"use strict";var ea=ei(7160),eu=ea.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),ed=ea.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),eh=ea.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),ep=ea.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(eh),this.key("subjectPublicKey").bitstr())}),ef=ea.define("RelativeDistinguishedName",function(){this.setof(ed)}),em=ea.define("RDNSequence",function(){this.seqof(ef)}),eg=ea.define("Name",function(){this.choice({rdnSequence:this.use(em)})}),ey=ea.define("Validity",function(){this.seq().obj(this.key("notBefore").use(eu),this.key("notAfter").use(eu))}),eC=ea.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),eS=ea.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(eh),this.key("issuer").use(eg),this.key("validity").use(ey),this.key("subject").use(eg),this.key("subjectPublicKeyInfo").use(ep),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(eC).optional())}),e_=ea.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(eS),this.key("signatureAlgorithm").use(eh),this.key("signatureValue").bitstr())});et.exports=e_},6501:function(et,eo,ei){var ea=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,eu=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,ed=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,eh=ei(8368),ep=ei(6594),ef=ei(6911).Buffer;et.exports=function(et,eo){var ei,em=et.toString(),eg=em.match(ea);if(eg){var ey="aes"+eg[1],eC=ef.from(eg[2],"hex"),eS=ef.from(eg[3].replace(/[\r\n]/g,""),"base64"),e_=eh(eo,eC.slice(0,8),parseInt(eg[1],10)).key,ew=[],eA=ep.createDecipheriv(ey,e_,eC);ew.push(eA.update(eS)),ew.push(eA.final()),ei=ef.concat(ew)}else{var eI=em.match(ed);ei=new ef(eI[2].replace(/[\r\n]/g,""),"base64")}return{tag:em.match(eu)[1],data:ei}}},9902:function(et,eo,ei){var ea=ei(8687),eu=ei(2510),ed=ei(6501),eh=ei(6594),ep=ei(4978),ef=ei(6911).Buffer;function parseKeys(et){"object"!=typeof et||ef.isBuffer(et)||(eo=et.passphrase,et=et.key),"string"==typeof et&&(et=ef.from(et));var eo,ei,eu,eh=ed(et,eo),ep=eh.tag,em=eh.data;switch(ep){case"CERTIFICATE":eu=ea.certificate.decode(em,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(eu||(eu=ea.PublicKey.decode(em,"der")),ei=eu.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return ea.RSAPublicKey.decode(eu.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return eu.subjectPrivateKey=eu.subjectPublicKey,{type:"ec",data:eu};case"1.2.840.10040.4.1":return eu.algorithm.params.pub_key=ea.DSAparam.decode(eu.subjectPublicKey.data,"der"),{type:"dsa",data:eu.algorithm.params};default:throw Error("unknown key id "+ei)}throw Error("unknown key type "+ep);case"ENCRYPTED PRIVATE KEY":em=decrypt(em=ea.EncryptedPrivateKey.decode(em,"der"),eo);case"PRIVATE KEY":switch(ei=(eu=ea.PrivateKey.decode(em,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return ea.RSAPrivateKey.decode(eu.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:eu.algorithm.curve,privateKey:ea.ECPrivateKey.decode(eu.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return eu.algorithm.params.priv_key=ea.DSAparam.decode(eu.subjectPrivateKey,"der"),{type:"dsa",params:eu.algorithm.params};default:throw Error("unknown key id "+ei)}throw Error("unknown key type "+ep);case"RSA PUBLIC KEY":return ea.RSAPublicKey.decode(em,"der");case"RSA PRIVATE KEY":return ea.RSAPrivateKey.decode(em,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:ea.DSAPrivateKey.decode(em,"der")};case"EC PRIVATE KEY":return{curve:(em=ea.ECPrivateKey.decode(em,"der")).parameters.value,privateKey:em.privateKey};default:throw Error("unknown key type "+ep)}}function decrypt(et,eo){var ei=et.algorithm.decrypt.kde.kdeparams.salt,ea=parseInt(et.algorithm.decrypt.kde.kdeparams.iters.toString(),10),ed=eu[et.algorithm.decrypt.cipher.algo.join(".")],em=et.algorithm.decrypt.cipher.iv,eg=et.subjectPrivateKey,ey=parseInt(ed.split("-")[1],10)/8,eC=ep.pbkdf2Sync(eo,ei,ea,ey,"sha1"),eS=eh.createDecipheriv(ed,eC,em),e_=[];return e_.push(eS.update(eg)),e_.push(eS.final()),ef.concat(e_)}et.exports=parseKeys,parseKeys.signature=ea.signature},4978:function(et,eo,ei){var ea=ei(6113),eu=ei(5349),ed=ei(7007),eh=ei(5407);function nativePBKDF2(et,eo,ei,ep,ef,em){if(eu(ei,ep),et=eh(et,ed,"Password"),eo=eh(eo,ed,"Salt"),"function"==typeof ef&&(em=ef,ef="sha1"),"function"!=typeof em)throw Error("No callback provided to pbkdf2");return ea.pbkdf2(et,eo,ei,ep,ef,em)}function nativePBKDF2Sync(et,eo,ei,ep,ef){return eu(ei,ep),et=eh(et,ed,"Password"),eo=eh(eo,ed,"Salt"),ef=ef||"sha1",ea.pbkdf2Sync(et,eo,ei,ep,ef)}ea.pbkdf2Sync&&-1!==ea.pbkdf2Sync.toString().indexOf("keylen, digest")?(eo.pbkdf2Sync=nativePBKDF2Sync,eo.pbkdf2=nativePBKDF2):(eo.pbkdf2Sync=ei(2127),eo.pbkdf2=ei(9601))},9601:function(et,eo,ea){var eu,eh=ea(6911).Buffer,ep=ea(5349),ef=ea(7007),em=ea(2127),eg=ea(5407),ey=ei.g.crypto&&ei.g.crypto.subtle,eC={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},eS=[];function checkNative(et){if(ei.g.process&&!ei.g.process.browser||!ey||!ey.importKey||!ey.deriveBits)return Promise.resolve(!1);if(void 0!==eS[et])return eS[et];var eo=browserPbkdf2(eu=eu||eh.alloc(8),eu,10,128,et).then(function(){return!0}).catch(function(){return!1});return eS[et]=eo,eo}function browserPbkdf2(et,eo,ei,ea,eu){return ey.importKey("raw",et,{name:"PBKDF2"},!1,["deriveBits"]).then(function(et){return ey.deriveBits({name:"PBKDF2",salt:eo,iterations:ei,hash:{name:eu}},et,ea<<3)}).then(function(et){return eh.from(et)})}function resolvePromise(et,eo){et.then(function(et){ed.nextTick(function(){eo(null,et)})},function(et){ed.nextTick(function(){eo(et)})})}et.exports=function(et,eo,ea,eu,eh,ey){"function"==typeof eh&&(ey=eh,eh=void 0);var eS=eC[(eh=eh||"sha1").toLowerCase()];if(!eS||"function"!=typeof ei.g.Promise)return ed.nextTick(function(){var ei;try{ei=em(et,eo,ea,eu,eh)}catch(et){return ey(et)}ey(null,ei)});if(ep(ea,eu),et=eg(et,ef,"Password"),eo=eg(eo,ef,"Salt"),"function"!=typeof ey)throw Error("No callback provided to pbkdf2");resolvePromise(checkNative(eS).then(function(ei){return ei?browserPbkdf2(et,eo,ea,eu,eS):em(et,eo,ea,eu,eh)}),ey)}},7007:function(et){var eo;eo="utf-8",et.exports=eo},5349:function(et){var eo=1073741823;et.exports=function(et,ei){if("number"!=typeof et)throw TypeError("Iterations not a number");if(et<0)throw TypeError("Bad iterations");if("number"!=typeof ei)throw TypeError("Key length not a number");if(ei<0||ei>eo||ei!=ei)throw TypeError("Bad key length")}},2127:function(et,eo,ei){var ea={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},eu=ei(4873),ed=ei(6911).Buffer,eh=ei(5349),ep=ei(7007),ef=ei(5407);function pbkdf2(et,eo,ei,em,eg){eh(ei,em),et=ef(et,ep,"Password"),eo=ef(eo,ep,"Salt"),eg=eg||"sha1";var ey=ed.allocUnsafe(em),eC=ed.allocUnsafe(eo.length+4);eo.copy(eC,0,0,eo.length);for(var eS=0,e_=ea[eg],ew=Math.ceil(em/e_),eA=1;eA<=ew;eA++){eC.writeUInt32BE(eA,eo.length);for(var eI=eu(eg,et).update(eC).digest(),eR=eI,eT=1;eT<ei;eT++){eR=eu(eg,et).update(eR).digest();for(var eE=0;eE<e_;eE++)eI[eE]^=eR[eE]}eI.copy(ey,eS),eS+=e_}return ey}et.exports=pbkdf2},5407:function(et,eo,ei){var ea=ei(6911).Buffer;et.exports=function(et,eo,ei){if(ea.isBuffer(et))return et;if("string"==typeof et)return ea.from(et,eo);if(ArrayBuffer.isView(et))return ea.from(et.buffer);throw TypeError(ei+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(et,eo,ei){eo.publicEncrypt=ei(3995),eo.privateDecrypt=ei(4366),eo.privateEncrypt=function(et,ei){return eo.publicEncrypt(et,ei,!0)},eo.publicDecrypt=function(et,ei){return eo.privateDecrypt(et,ei,!0)}},5520:function(et,eo,ei){var ea=ei(9739),eu=ei(6911).Buffer;function i2ops(et){var eo=eu.allocUnsafe(4);return eo.writeUInt32BE(et,0),eo}et.exports=function(et,eo){for(var ei,ed=eu.alloc(0),eh=0;ed.length<eo;)ei=i2ops(eh++),ed=eu.concat([ed,ea("sha1").update(et).update(ei).digest()]);return ed.slice(0,eo)}},4366:function(et,eo,ei){var ea=ei(9902),eu=ei(5520),ed=ei(6386),eh=ei(711),ep=ei(7166),ef=ei(9739),em=ei(1607),eg=ei(6911).Buffer;function oaep(et,eo){var ei=et.modulus.byteLength(),ea=ef("sha1").update(eg.alloc(0)).digest(),eh=ea.length;if(0!==eo[0])throw Error("decryption error");var ep=eo.slice(1,eh+1),em=eo.slice(eh+1),ey=ed(ep,eu(em,eh)),eC=ed(em,eu(ey,ei-eh-1));if(compare(ea,eC.slice(0,eh)))throw Error("decryption error");for(var eS=eh;0===eC[eS];)eS++;if(1!==eC[eS++])throw Error("decryption error");return eC.slice(eS)}function pkcs1(et,eo,ei){for(var ea=eo.slice(0,2),eu=2,ed=0;0!==eo[eu++];)if(eu>=eo.length){ed++;break}var eh=eo.slice(2,eu-1);if(("0002"!==ea.toString("hex")&&!ei||"0001"!==ea.toString("hex")&&ei)&&ed++,eh.length<8&&ed++,ed)throw Error("decryption error");return eo.slice(eu)}function compare(et,eo){et=eg.from(et),eo=eg.from(eo);var ei=0,ea=et.length;et.length!==eo.length&&(ei++,ea=Math.min(et.length,eo.length));for(var eu=-1;++eu<ea;)ei+=et[eu]^eo[eu];return ei}et.exports=function(et,eo,ei){eu=et.padding?et.padding:ei?1:4;var eu,ed,ef=ea(et),ey=ef.modulus.byteLength();if(eo.length>ey||new eh(eo).cmp(ef.modulus)>=0)throw Error("decryption error");ed=ei?em(new eh(eo),ef):ep(eo,ef);var eC=eg.alloc(ey-ed.length);if(ed=eg.concat([eC,ed],ey),4===eu)return oaep(ef,ed);if(1===eu)return pkcs1(ef,ed,ei);if(3===eu)return ed;throw Error("unknown padding")}},3995:function(et,eo,ei){var ea=ei(9902),eu=ei(7223),ed=ei(9739),eh=ei(5520),ep=ei(6386),ef=ei(711),em=ei(1607),eg=ei(7166),ey=ei(6911).Buffer;function oaep(et,eo){var ei=et.modulus.byteLength(),ea=eo.length,em=ed("sha1").update(ey.alloc(0)).digest(),eg=em.length,eC=2*eg;if(ea>ei-eC-2)throw Error("message too long");var eS=ey.alloc(ei-ea-eC-2),e_=ei-eg-1,ew=eu(eg),eA=ep(ey.concat([em,eS,ey.alloc(1,1),eo],e_),eh(ew,e_)),eI=ep(ew,eh(eA,eg));return new ef(ey.concat([ey.alloc(1),eI,eA],ei))}function pkcs1(et,eo,ei){var ea,eu=eo.length,ed=et.modulus.byteLength();if(eu>ed-11)throw Error("message too long");return ea=ei?ey.alloc(ed-eu-3,255):nonZero(ed-eu-3),new ef(ey.concat([ey.from([0,ei?1:2]),ea,ey.alloc(1),eo],ed))}function nonZero(et){for(var eo,ei=ey.allocUnsafe(et),ea=0,ed=eu(2*et),eh=0;ea<et;)eh===ed.length&&(ed=eu(2*et),eh=0),(eo=ed[eh++])&&(ei[ea++]=eo);return ei}et.exports=function(et,eo,ei){eu=et.padding?et.padding:ei?1:4;var eu,ed,eh=ea(et);if(4===eu)ed=oaep(eh,eo);else if(1===eu)ed=pkcs1(eh,eo,ei);else if(3===eu){if((ed=new ef(eo)).cmp(eh.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return ei?eg(ed,eh):em(ed,eh)}},1607:function(et,eo,ei){var ea=ei(711),eu=ei(6911).Buffer;function withPublic(et,eo){return eu.from(et.toRed(ea.mont(eo.modulus)).redPow(new ea(eo.publicExponent)).fromRed().toArray())}et.exports=withPublic},6386:function(et){et.exports=function(et,eo){for(var ei=et.length,ea=-1;++ea<ei;)et[ea]^=eo[ea];return et}},7223:function(et,eo,ea){"use strict";var eu=65536,eh=4294967295;function oldBrowser(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var ep=ea(6911).Buffer,ef=ei.g.crypto||ei.g.msCrypto;function randomBytes(et,eo){if(et>eh)throw RangeError("requested too many random bytes");var ei=ep.allocUnsafe(et);if(et>0){if(et>eu)for(var ea=0;ea<et;ea+=eu)ef.getRandomValues(ei.slice(ea,ea+eu));else ef.getRandomValues(ei)}return"function"==typeof eo?ed.nextTick(function(){eo(null,ei)}):ei}ef&&ef.getRandomValues?et.exports=randomBytes:et.exports=oldBrowser},6445:function(et,eo,ea){"use strict";function oldBrowser(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var eu=ea(6911);ea(7223);var eh=eu.Buffer,ep=eu.kMaxLength,ef=ei.g.crypto||ei.g.msCrypto,em=4294967295;function assertOffset(et,eo){if("number"!=typeof et||et!=et)throw TypeError("offset must be a number");if(et>em||et<0)throw TypeError("offset must be a uint32");if(et>ep||et>eo)throw RangeError("offset out of range")}function assertSize(et,eo,ei){if("number"!=typeof et||et!=et)throw TypeError("size must be a number");if(et>em||et<0)throw TypeError("size must be a uint32");if(et+eo>ei||et>ep)throw RangeError("buffer too small")}function randomFill(et,eo,ea,eu){if(!eh.isBuffer(et)&&!(et instanceof ei.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof eo)eu=eo,eo=0,ea=et.length;else if("function"==typeof ea)eu=ea,ea=et.length-eo;else if("function"!=typeof eu)throw TypeError('"cb" argument must be a function');return assertOffset(eo,et.length),assertSize(ea,eo,et.length),actualFill(et,eo,ea,eu)}function actualFill(et,eo,ei,ea){var eu=et.buffer,eh=new Uint8Array(eu,eo,ei);if(ef.getRandomValues(eh),ea){ed.nextTick(function(){ea(null,et)});return}return et}function randomFillSync(et,eo,ea){if(void 0===eo&&(eo=0),!eh.isBuffer(et)&&!(et instanceof ei.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(eo,et.length),void 0===ea&&(ea=et.length-eo),assertSize(ea,eo,et.length),actualFill(et,eo,ea)}ef&&ef.getRandomValues?(eo.randomFill=randomFill,eo.randomFillSync=randomFillSync):(eo.randomFill=oldBrowser,eo.randomFillSync=oldBrowser)},4646:function(et){"use strict";let eo={};function createErrorType(et,ei,ea){function getMessage(et,eo,ea){return"string"==typeof ei?ei:ei(et,eo,ea)}ea||(ea=Error);let NodeError=class NodeError extends ea{constructor(et,eo,ei){super(getMessage(et,eo,ei))}};NodeError.prototype.name=ea.name,NodeError.prototype.code=et,eo[et]=NodeError}function oneOf(et,eo){if(!Array.isArray(et))return`of ${eo} ${String(et)}`;{let ei=et.length;return(et=et.map(et=>String(et)),ei>2)?`one of ${eo} ${et.slice(0,ei-1).join(", ")}, or `+et[ei-1]:2===ei?`one of ${eo} ${et[0]} or ${et[1]}`:`of ${eo} ${et[0]}`}}function startsWith(et,eo,ei){return et.substr(!ei||ei<0?0:+ei,eo.length)===eo}function endsWith(et,eo,ei){return(void 0===ei||ei>et.length)&&(ei=et.length),et.substring(ei-eo.length,ei)===eo}function includes(et,eo,ei){return"number"!=typeof ei&&(ei=0),!(ei+eo.length>et.length)&&-1!==et.indexOf(eo,ei)}createErrorType("ERR_INVALID_OPT_VALUE",function(et,eo){return'The value "'+eo+'" is invalid for option "'+et+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(et,eo,ei){let ea,eu;if("string"==typeof eo&&startsWith(eo,"not ")?(ea="must not be",eo=eo.replace(/^not /,"")):ea="must be",endsWith(et," argument"))eu=`The ${et} ${ea} ${oneOf(eo,"type")}`;else{let ei=includes(et,".")?"property":"argument";eu=`The "${et}" ${ei} ${ea} ${oneOf(eo,"type")}`}return eu+`. Received type ${typeof ei}`},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),et.exports.q=eo},2403:function(et,eo,ei){"use strict";var ea=Object.keys||function(et){var eo=[];for(var ei in et)eo.push(ei);return eo};et.exports=Duplex;var eu=ei(1709),eh=ei(7337);ei(3782)(Duplex,eu);for(var ep=ea(eh.prototype),ef=0;ef<ep.length;ef++){var em=ep[ef];Duplex.prototype[em]||(Duplex.prototype[em]=eh.prototype[em])}function Duplex(et){if(!(this instanceof Duplex))return new Duplex(et);eu.call(this,et),eh.call(this,et),this.allowHalfOpen=!0,et&&(!1===et.readable&&(this.readable=!1),!1===et.writable&&(this.writable=!1),!1===et.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",onend)))}function onend(){this._writableState.ended||ed.nextTick(onEndNT,this)}function onEndNT(et){et.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(et){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=et,this._writableState.destroyed=et)}})},7889:function(et,eo,ei){"use strict";et.exports=PassThrough;var ea=ei(1170);function PassThrough(et){if(!(this instanceof PassThrough))return new PassThrough(et);ea.call(this,et)}ei(3782)(PassThrough,ea),PassThrough.prototype._transform=function(et,eo,ei){ei(null,et)}},1709:function(et,eo,ea){"use strict";et.exports=Readable,Readable.ReadableState=ReadableState,ea(2361).EventEmitter;var eu,eh,ep,ef,em,a=function(et,eo){return et.listeners(eo).length},eg=ea(4678),ey=ea(4300).Buffer,eC=ei.g.Uint8Array||function(){};function _uint8ArrayToBuffer(et){return ey.from(et)}function _isUint8Array(et){return ey.isBuffer(et)||et instanceof eC}var eS=ea(3837);eh=eS&&eS.debuglog?eS.debuglog("stream"):function(){};var e_=ea(4379),ew=ea(7025),eA=ea(6776).getHighWaterMark,eI=ea(4646).q,eR=eI.ERR_INVALID_ARG_TYPE,eT=eI.ERR_STREAM_PUSH_AFTER_EOF,eE=eI.ERR_METHOD_NOT_IMPLEMENTED,eP=eI.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ea(3782)(Readable,eg);var ek=ew.errorOrDestroy,eO=["error","close","destroy","pause","resume"];function prependListener(et,eo,ei){if("function"==typeof et.prependListener)return et.prependListener(eo,ei);et._events&&et._events[eo]?Array.isArray(et._events[eo])?et._events[eo].unshift(ei):et._events[eo]=[ei,et._events[eo]]:et.on(eo,ei)}function ReadableState(et,eo,ei){eu=eu||ea(2403),et=et||{},"boolean"!=typeof ei&&(ei=eo instanceof eu),this.objectMode=!!et.objectMode,ei&&(this.objectMode=this.objectMode||!!et.readableObjectMode),this.highWaterMark=eA(this,et,"readableHighWaterMark",ei),this.buffer=new e_,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==et.emitClose,this.autoDestroy=!!et.autoDestroy,this.destroyed=!1,this.defaultEncoding=et.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,et.encoding&&(ep||(ep=ea(3704).s),this.decoder=new ep(et.encoding),this.encoding=et.encoding)}function Readable(et){if(eu=eu||ea(2403),!(this instanceof Readable))return new Readable(et);var eo=this instanceof eu;this._readableState=new ReadableState(et,this,eo),this.readable=!0,et&&("function"==typeof et.read&&(this._read=et.read),"function"==typeof et.destroy&&(this._destroy=et.destroy)),eg.call(this)}function readableAddChunk(et,eo,ei,ea,eu){eh("readableAddChunk",eo);var ed,ep=et._readableState;if(null===eo)ep.reading=!1,onEofChunk(et,ep);else if(eu||(ed=chunkInvalid(ep,eo)),ed)ek(et,ed);else if(ep.objectMode||eo&&eo.length>0){if("string"==typeof eo||ep.objectMode||Object.getPrototypeOf(eo)===ey.prototype||(eo=_uint8ArrayToBuffer(eo)),ea)ep.endEmitted?ek(et,new eP):addChunk(et,ep,eo,!0);else if(ep.ended)ek(et,new eT);else{if(ep.destroyed)return!1;ep.reading=!1,ep.decoder&&!ei?(eo=ep.decoder.write(eo),ep.objectMode||0!==eo.length?addChunk(et,ep,eo,!1):maybeReadMore(et,ep)):addChunk(et,ep,eo,!1)}}else ea||(ep.reading=!1,maybeReadMore(et,ep));return!ep.ended&&(ep.length<ep.highWaterMark||0===ep.length)}function addChunk(et,eo,ei,ea){eo.flowing&&0===eo.length&&!eo.sync?(eo.awaitDrain=0,et.emit("data",ei)):(eo.length+=eo.objectMode?1:ei.length,ea?eo.buffer.unshift(ei):eo.buffer.push(ei),eo.needReadable&&emitReadable(et)),maybeReadMore(et,eo)}function chunkInvalid(et,eo){var ei;return _isUint8Array(eo)||"string"==typeof eo||void 0===eo||et.objectMode||(ei=new eR("chunk",["string","Buffer","Uint8Array"],eo)),ei}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(et){this._readableState&&(this._readableState.destroyed=et)}}),Readable.prototype.destroy=ew.destroy,Readable.prototype._undestroy=ew.undestroy,Readable.prototype._destroy=function(et,eo){eo(et)},Readable.prototype.push=function(et,eo){var ei,ea=this._readableState;return ea.objectMode?ei=!0:"string"==typeof et&&((eo=eo||ea.defaultEncoding)!==ea.encoding&&(et=ey.from(et,eo),eo=""),ei=!0),readableAddChunk(this,et,eo,!1,ei)},Readable.prototype.unshift=function(et){return readableAddChunk(this,et,null,!0,!1)},Readable.prototype.isPaused=function(){return!1===this._readableState.flowing},Readable.prototype.setEncoding=function(et){ep||(ep=ea(3704).s);var eo=new ep(et);this._readableState.decoder=eo,this._readableState.encoding=this._readableState.decoder.encoding;for(var ei=this._readableState.buffer.head,eu="";null!==ei;)eu+=eo.write(ei.data),ei=ei.next;return this._readableState.buffer.clear(),""!==eu&&this._readableState.buffer.push(eu),this._readableState.length=eu.length,this};var eM=1073741824;function computeNewHighWaterMark(et){return et>=eM?et=eM:(et--,et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et++),et}function howMuchToRead(et,eo){return et<=0||0===eo.length&&eo.ended?0:eo.objectMode?1:et!=et?eo.flowing&&eo.length?eo.buffer.head.data.length:eo.length:(et>eo.highWaterMark&&(eo.highWaterMark=computeNewHighWaterMark(et)),et<=eo.length)?et:eo.ended?eo.length:(eo.needReadable=!0,0)}function onEofChunk(et,eo){if(eh("onEofChunk"),!eo.ended){if(eo.decoder){var ei=eo.decoder.end();ei&&ei.length&&(eo.buffer.push(ei),eo.length+=eo.objectMode?1:ei.length)}eo.ended=!0,eo.sync?emitReadable(et):(eo.needReadable=!1,eo.emittedReadable||(eo.emittedReadable=!0,emitReadable_(et)))}}function emitReadable(et){var eo=et._readableState;eh("emitReadable",eo.needReadable,eo.emittedReadable),eo.needReadable=!1,eo.emittedReadable||(eh("emitReadable",eo.flowing),eo.emittedReadable=!0,ed.nextTick(emitReadable_,et))}function emitReadable_(et){var eo=et._readableState;eh("emitReadable_",eo.destroyed,eo.length,eo.ended),!eo.destroyed&&(eo.length||eo.ended)&&(et.emit("readable"),eo.emittedReadable=!1),eo.needReadable=!eo.flowing&&!eo.ended&&eo.length<=eo.highWaterMark,flow(et)}function maybeReadMore(et,eo){eo.readingMore||(eo.readingMore=!0,ed.nextTick(maybeReadMore_,et,eo))}function maybeReadMore_(et,eo){for(;!eo.reading&&!eo.ended&&(eo.length<eo.highWaterMark||eo.flowing&&0===eo.length);){var ei=eo.length;if(eh("maybeReadMore read 0"),et.read(0),ei===eo.length)break}eo.readingMore=!1}function pipeOnDrain(et){return function(){var eo=et._readableState;eh("pipeOnDrain",eo.awaitDrain),eo.awaitDrain&&eo.awaitDrain--,0===eo.awaitDrain&&a(et,"data")&&(eo.flowing=!0,flow(et))}}function updateReadableListening(et){var eo=et._readableState;eo.readableListening=et.listenerCount("readable")>0,eo.resumeScheduled&&!eo.paused?eo.flowing=!0:et.listenerCount("data")>0&&et.resume()}function nReadingNextTick(et){eh("readable nexttick read 0"),et.read(0)}function resume(et,eo){eo.resumeScheduled||(eo.resumeScheduled=!0,ed.nextTick(resume_,et,eo))}function resume_(et,eo){eh("resume",eo.reading),eo.reading||et.read(0),eo.resumeScheduled=!1,et.emit("resume"),flow(et),eo.flowing&&!eo.reading&&et.read(0)}function flow(et){var eo=et._readableState;for(eh("flow",eo.flowing);eo.flowing&&null!==et.read(););}function fromList(et,eo){var ei;return 0===eo.length?null:(eo.objectMode?ei=eo.buffer.shift():!et||et>=eo.length?(ei=eo.decoder?eo.buffer.join(""):1===eo.buffer.length?eo.buffer.first():eo.buffer.concat(eo.length),eo.buffer.clear()):ei=eo.buffer.consume(et,eo.decoder),ei)}function endReadable(et){var eo=et._readableState;eh("endReadable",eo.endEmitted),eo.endEmitted||(eo.ended=!0,ed.nextTick(endReadableNT,eo,et))}function endReadableNT(et,eo){if(eh("endReadableNT",et.endEmitted,et.length),!et.endEmitted&&0===et.length&&(et.endEmitted=!0,eo.readable=!1,eo.emit("end"),et.autoDestroy)){var ei=eo._writableState;(!ei||ei.autoDestroy&&ei.finished)&&eo.destroy()}}function indexOf(et,eo){for(var ei=0,ea=et.length;ei<ea;ei++)if(et[ei]===eo)return ei;return -1}Readable.prototype.read=function(et){eh("read",et),et=parseInt(et,10);var eo,ei=this._readableState,ea=et;if(0!==et&&(ei.emittedReadable=!1),0===et&&ei.needReadable&&((0!==ei.highWaterMark?ei.length>=ei.highWaterMark:ei.length>0)||ei.ended))return eh("read: emitReadable",ei.length,ei.ended),0===ei.length&&ei.ended?endReadable(this):emitReadable(this),null;if(0===(et=howMuchToRead(et,ei))&&ei.ended)return 0===ei.length&&endReadable(this),null;var eu=ei.needReadable;return eh("need readable",eu),(0===ei.length||ei.length-et<ei.highWaterMark)&&eh("length less than watermark",eu=!0),ei.ended||ei.reading?eh("reading or ended",eu=!1):eu&&(eh("do read"),ei.reading=!0,ei.sync=!0,0===ei.length&&(ei.needReadable=!0),this._read(ei.highWaterMark),ei.sync=!1,ei.reading||(et=howMuchToRead(ea,ei))),null===(eo=et>0?fromList(et,ei):null)?(ei.needReadable=ei.length<=ei.highWaterMark,et=0):(ei.length-=et,ei.awaitDrain=0),0===ei.length&&(ei.ended||(ei.needReadable=!0),ea!==et&&ei.ended&&endReadable(this)),null!==eo&&this.emit("data",eo),eo},Readable.prototype._read=function(et){ek(this,new eE("_read()"))},Readable.prototype.pipe=function(et,eo){var ei=this,ea=this._readableState;switch(ea.pipesCount){case 0:ea.pipes=et;break;case 1:ea.pipes=[ea.pipes,et];break;default:ea.pipes.push(et)}ea.pipesCount+=1,eh("pipe count=%d opts=%j",ea.pipesCount,eo);var eu=eo&&!1===eo.end||et===ed.stdout||et===ed.stderr?unpipe:onend;function onunpipe(et,eo){eh("onunpipe"),et===ei&&eo&&!1===eo.hasUnpiped&&(eo.hasUnpiped=!0,cleanup())}function onend(){eh("onend"),et.end()}ea.endEmitted?ed.nextTick(eu):ei.once("end",eu),et.on("unpipe",onunpipe);var ep=pipeOnDrain(ei);et.on("drain",ep);var ef=!1;function cleanup(){eh("cleanup"),et.removeListener("close",onclose),et.removeListener("finish",onfinish),et.removeListener("drain",ep),et.removeListener("error",onerror),et.removeListener("unpipe",onunpipe),ei.removeListener("end",onend),ei.removeListener("end",unpipe),ei.removeListener("data",ondata),ef=!0,ea.awaitDrain&&(!et._writableState||et._writableState.needDrain)&&ep()}function ondata(eo){eh("ondata");var eu=et.write(eo);eh("dest.write",eu),!1===eu&&((1===ea.pipesCount&&ea.pipes===et||ea.pipesCount>1&&-1!==indexOf(ea.pipes,et))&&!ef&&(eh("false write response, pause",ea.awaitDrain),ea.awaitDrain++),ei.pause())}function onerror(eo){eh("onerror",eo),unpipe(),et.removeListener("error",onerror),0===a(et,"error")&&ek(et,eo)}function onclose(){et.removeListener("finish",onfinish),unpipe()}function onfinish(){eh("onfinish"),et.removeListener("close",onclose),unpipe()}function unpipe(){eh("unpipe"),ei.unpipe(et)}return ei.on("data",ondata),prependListener(et,"error",onerror),et.once("close",onclose),et.once("finish",onfinish),et.emit("pipe",ei),ea.flowing||(eh("pipe resume"),ei.resume()),et},Readable.prototype.unpipe=function(et){var eo=this._readableState,ei={hasUnpiped:!1};if(0===eo.pipesCount)return this;if(1===eo.pipesCount)return et&&et!==eo.pipes||(et||(et=eo.pipes),eo.pipes=null,eo.pipesCount=0,eo.flowing=!1,et&&et.emit("unpipe",this,ei)),this;if(!et){var ea=eo.pipes,eu=eo.pipesCount;eo.pipes=null,eo.pipesCount=0,eo.flowing=!1;for(var ed=0;ed<eu;ed++)ea[ed].emit("unpipe",this,{hasUnpiped:!1});return this}var eh=indexOf(eo.pipes,et);return -1===eh||(eo.pipes.splice(eh,1),eo.pipesCount-=1,1===eo.pipesCount&&(eo.pipes=eo.pipes[0]),et.emit("unpipe",this,ei)),this},Readable.prototype.on=function(et,eo){var ei=eg.prototype.on.call(this,et,eo),ea=this._readableState;return"data"===et?(ea.readableListening=this.listenerCount("readable")>0,!1!==ea.flowing&&this.resume()):"readable"!==et||ea.endEmitted||ea.readableListening||(ea.readableListening=ea.needReadable=!0,ea.flowing=!1,ea.emittedReadable=!1,eh("on readable",ea.length,ea.reading),ea.length?emitReadable(this):ea.reading||ed.nextTick(nReadingNextTick,this)),ei},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(et,eo){var ei=eg.prototype.removeListener.call(this,et,eo);return"readable"===et&&ed.nextTick(updateReadableListening,this),ei},Readable.prototype.removeAllListeners=function(et){var eo=eg.prototype.removeAllListeners.apply(this,arguments);return("readable"===et||void 0===et)&&ed.nextTick(updateReadableListening,this),eo},Readable.prototype.resume=function(){var et=this._readableState;return et.flowing||(eh("resume"),et.flowing=!et.readableListening,resume(this,et)),et.paused=!1,this},Readable.prototype.pause=function(){return eh("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(eh("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(et){var eo=this,ei=this._readableState,ea=!1;for(var eu in et.on("end",function(){if(eh("wrapped end"),ei.decoder&&!ei.ended){var et=ei.decoder.end();et&&et.length&&eo.push(et)}eo.push(null)}),et.on("data",function(eu){eh("wrapped data"),ei.decoder&&(eu=ei.decoder.write(eu)),(!ei.objectMode||null!=eu)&&(ei.objectMode||eu&&eu.length)&&(eo.push(eu)||(ea=!0,et.pause()))}),et)void 0===this[eu]&&"function"==typeof et[eu]&&(this[eu]=function(eo){return function(){return et[eo].apply(et,arguments)}}(eu));for(var ed=0;ed<eO.length;ed++)et.on(eO[ed],this.emit.bind(this,eO[ed]));return this._read=function(eo){eh("wrapped _read",eo),ea&&(ea=!1,et.resume())},this},"function"==typeof Symbol&&(Readable.prototype[Symbol.asyncIterator]=function(){return void 0===ef&&(ef=ea(6871)),ef(this)}),Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(et){this._readableState&&(this._readableState.flowing=et)}}),Readable._fromList=fromList,Object.defineProperty(Readable.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(Readable.from=function(et,eo){return void 0===em&&(em=ea(9727)),em(Readable,et,eo)})},1170:function(et,eo,ei){"use strict";et.exports=Transform;var ea=ei(4646).q,eu=ea.ERR_METHOD_NOT_IMPLEMENTED,ed=ea.ERR_MULTIPLE_CALLBACK,eh=ea.ERR_TRANSFORM_ALREADY_TRANSFORMING,ep=ea.ERR_TRANSFORM_WITH_LENGTH_0,ef=ei(2403);function afterTransform(et,eo){var ei=this._transformState;ei.transforming=!1;var ea=ei.writecb;if(null===ea)return this.emit("error",new ed);ei.writechunk=null,ei.writecb=null,null!=eo&&this.push(eo),ea(et);var eu=this._readableState;eu.reading=!1,(eu.needReadable||eu.length<eu.highWaterMark)&&this._read(eu.highWaterMark)}function Transform(et){if(!(this instanceof Transform))return new Transform(et);ef.call(this,et),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,et&&("function"==typeof et.transform&&(this._transform=et.transform),"function"==typeof et.flush&&(this._flush=et.flush)),this.on("prefinish",prefinish)}function prefinish(){var et=this;"function"!=typeof this._flush||this._readableState.destroyed?done(this,null,null):this._flush(function(eo,ei){done(et,eo,ei)})}function done(et,eo,ei){if(eo)return et.emit("error",eo);if(null!=ei&&et.push(ei),et._writableState.length)throw new ep;if(et._transformState.transforming)throw new eh;return et.push(null)}ei(3782)(Transform,ef),Transform.prototype.push=function(et,eo){return this._transformState.needTransform=!1,ef.prototype.push.call(this,et,eo)},Transform.prototype._transform=function(et,eo,ei){ei(new eu("_transform()"))},Transform.prototype._write=function(et,eo,ei){var ea=this._transformState;if(ea.writecb=ei,ea.writechunk=et,ea.writeencoding=eo,!ea.transforming){var eu=this._readableState;(ea.needTransform||eu.needReadable||eu.length<eu.highWaterMark)&&this._read(eu.highWaterMark)}},Transform.prototype._read=function(et){var eo=this._transformState;null===eo.writechunk||eo.transforming?eo.needTransform=!0:(eo.transforming=!0,this._transform(eo.writechunk,eo.writeencoding,eo.afterTransform))},Transform.prototype._destroy=function(et,eo){ef.prototype._destroy.call(this,et,function(et){eo(et)})}},7337:function(et,eo,ea){"use strict";function CorkedRequest(et){var eo=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(eo,et)}}et.exports=Writable,Writable.WritableState=WritableState;var eu,eh,ep={deprecate:ea(6769)},ef=ea(4678),em=ea(4300).Buffer,eg=ei.g.Uint8Array||function(){};function _uint8ArrayToBuffer(et){return em.from(et)}function _isUint8Array(et){return em.isBuffer(et)||et instanceof eg}var ey=ea(7025),eC=ea(6776).getHighWaterMark,eS=ea(4646).q,e_=eS.ERR_INVALID_ARG_TYPE,ew=eS.ERR_METHOD_NOT_IMPLEMENTED,eA=eS.ERR_MULTIPLE_CALLBACK,eI=eS.ERR_STREAM_CANNOT_PIPE,eR=eS.ERR_STREAM_DESTROYED,eT=eS.ERR_STREAM_NULL_VALUES,eE=eS.ERR_STREAM_WRITE_AFTER_END,eP=eS.ERR_UNKNOWN_ENCODING,ek=ey.errorOrDestroy;function nop(){}function WritableState(et,eo,ei){eu=eu||ea(2403),et=et||{},"boolean"!=typeof ei&&(ei=eo instanceof eu),this.objectMode=!!et.objectMode,ei&&(this.objectMode=this.objectMode||!!et.writableObjectMode),this.highWaterMark=eC(this,et,"writableHighWaterMark",ei),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ed=!1===et.decodeStrings;this.decodeStrings=!ed,this.defaultEncoding=et.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(et){onwrite(eo,et)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==et.emitClose,this.autoDestroy=!!et.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(et){var eo=this instanceof(eu=eu||ea(2403));if(!eo&&!eh.call(Writable,this))return new Writable(et);this._writableState=new WritableState(et,this,eo),this.writable=!0,et&&("function"==typeof et.write&&(this._write=et.write),"function"==typeof et.writev&&(this._writev=et.writev),"function"==typeof et.destroy&&(this._destroy=et.destroy),"function"==typeof et.final&&(this._final=et.final)),ef.call(this)}function writeAfterEnd(et,eo){var ei=new eE;ek(et,ei),ed.nextTick(eo,ei)}function validChunk(et,eo,ei,ea){var eu;return null===ei?eu=new eT:"string"==typeof ei||eo.objectMode||(eu=new e_("chunk",["string","Buffer"],ei)),!eu||(ek(et,eu),ed.nextTick(ea,eu),!1)}function decodeChunk(et,eo,ei){return et.objectMode||!1===et.decodeStrings||"string"!=typeof eo||(eo=em.from(eo,ei)),eo}function writeOrBuffer(et,eo,ei,ea,eu,ed){if(!ei){var eh=decodeChunk(eo,ea,eu);ea!==eh&&(ei=!0,eu="buffer",ea=eh)}var ep=eo.objectMode?1:ea.length;eo.length+=ep;var ef=eo.length<eo.highWaterMark;if(ef||(eo.needDrain=!0),eo.writing||eo.corked){var em=eo.lastBufferedRequest;eo.lastBufferedRequest={chunk:ea,encoding:eu,isBuf:ei,callback:ed,next:null},em?em.next=eo.lastBufferedRequest:eo.bufferedRequest=eo.lastBufferedRequest,eo.bufferedRequestCount+=1}else doWrite(et,eo,!1,ep,ea,eu,ed);return ef}function doWrite(et,eo,ei,ea,eu,ed,eh){eo.writelen=ea,eo.writecb=eh,eo.writing=!0,eo.sync=!0,eo.destroyed?eo.onwrite(new eR("write")):ei?et._writev(eu,eo.onwrite):et._write(eu,ed,eo.onwrite),eo.sync=!1}function onwriteError(et,eo,ei,ea,eu){--eo.pendingcb,ei?(ed.nextTick(eu,ea),ed.nextTick(finishMaybe,et,eo),et._writableState.errorEmitted=!0,ek(et,ea)):(eu(ea),et._writableState.errorEmitted=!0,ek(et,ea),finishMaybe(et,eo))}function onwriteStateUpdate(et){et.writing=!1,et.writecb=null,et.length-=et.writelen,et.writelen=0}function onwrite(et,eo){var ei=et._writableState,ea=ei.sync,eu=ei.writecb;if("function"!=typeof eu)throw new eA;if(onwriteStateUpdate(ei),eo)onwriteError(et,ei,ea,eo,eu);else{var eh=needFinish(ei)||et.destroyed;eh||ei.corked||ei.bufferProcessing||!ei.bufferedRequest||clearBuffer(et,ei),ea?ed.nextTick(afterWrite,et,ei,eh,eu):afterWrite(et,ei,eh,eu)}}function afterWrite(et,eo,ei,ea){ei||onwriteDrain(et,eo),eo.pendingcb--,ea(),finishMaybe(et,eo)}function onwriteDrain(et,eo){0===eo.length&&eo.needDrain&&(eo.needDrain=!1,et.emit("drain"))}function clearBuffer(et,eo){eo.bufferProcessing=!0;var ei=eo.bufferedRequest;if(et._writev&&ei&&ei.next){var ea=Array(eo.bufferedRequestCount),eu=eo.corkedRequestsFree;eu.entry=ei;for(var ed=0,eh=!0;ei;)ea[ed]=ei,ei.isBuf||(eh=!1),ei=ei.next,ed+=1;ea.allBuffers=eh,doWrite(et,eo,!0,eo.length,ea,"",eu.finish),eo.pendingcb++,eo.lastBufferedRequest=null,eu.next?(eo.corkedRequestsFree=eu.next,eu.next=null):eo.corkedRequestsFree=new CorkedRequest(eo),eo.bufferedRequestCount=0}else{for(;ei;){var ep=ei.chunk,ef=ei.encoding,em=ei.callback,eg=eo.objectMode?1:ep.length;if(doWrite(et,eo,!1,eg,ep,ef,em),ei=ei.next,eo.bufferedRequestCount--,eo.writing)break}null===ei&&(eo.lastBufferedRequest=null)}eo.bufferedRequest=ei,eo.bufferProcessing=!1}function needFinish(et){return et.ending&&0===et.length&&null===et.bufferedRequest&&!et.finished&&!et.writing}function callFinal(et,eo){et._final(function(ei){eo.pendingcb--,ei&&ek(et,ei),eo.prefinished=!0,et.emit("prefinish"),finishMaybe(et,eo)})}function prefinish(et,eo){eo.prefinished||eo.finalCalled||("function"!=typeof et._final||eo.destroyed?(eo.prefinished=!0,et.emit("prefinish")):(eo.pendingcb++,eo.finalCalled=!0,ed.nextTick(callFinal,et,eo)))}function finishMaybe(et,eo){var ei=needFinish(eo);if(ei&&(prefinish(et,eo),0===eo.pendingcb&&(eo.finished=!0,et.emit("finish"),eo.autoDestroy))){var ea=et._readableState;(!ea||ea.autoDestroy&&ea.endEmitted)&&et.destroy()}return ei}function endWritable(et,eo,ei){eo.ending=!0,finishMaybe(et,eo),ei&&(eo.finished?ed.nextTick(ei):et.once("finish",ei)),eo.ended=!0,et.writable=!1}function onCorkedFinish(et,eo,ei){var ea=et.entry;for(et.entry=null;ea;){var eu=ea.callback;eo.pendingcb--,eu(ei),ea=ea.next}eo.corkedRequestsFree.next=et}ea(3782)(Writable,ef),WritableState.prototype.getBuffer=function(){for(var et=this.bufferedRequest,eo=[];et;)eo.push(et),et=et.next;return eo},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:ep.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(et){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(eh=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(et){return!!eh.call(this,et)||this===Writable&&et&&et._writableState instanceof WritableState}})):eh=function(et){return et instanceof this},Writable.prototype.pipe=function(){ek(this,new eI)},Writable.prototype.write=function(et,eo,ei){var ea=this._writableState,eu=!1,ed=!ea.objectMode&&_isUint8Array(et);return ed&&!em.isBuffer(et)&&(et=_uint8ArrayToBuffer(et)),"function"==typeof eo&&(ei=eo,eo=null),ed?eo="buffer":eo||(eo=ea.defaultEncoding),"function"!=typeof ei&&(ei=nop),ea.ending?writeAfterEnd(this,ei):(ed||validChunk(this,ea,et,ei))&&(ea.pendingcb++,eu=writeOrBuffer(this,ea,ed,et,eo,ei)),eu},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){var et=this._writableState;!et.corked||(et.corked--,et.writing||et.corked||et.bufferProcessing||!et.bufferedRequest||clearBuffer(this,et))},Writable.prototype.setDefaultEncoding=function(et){if("string"==typeof et&&(et=et.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((et+"").toLowerCase())>-1))throw new eP(et);return this._writableState.defaultEncoding=et,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(et,eo,ei){ei(new ew("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(et,eo,ei){var ea=this._writableState;return"function"==typeof et?(ei=et,et=null,eo=null):"function"==typeof eo&&(ei=eo,eo=null),null!=et&&this.write(et,eo),ea.corked&&(ea.corked=1,this.uncork()),ea.ending||endWritable(this,ea,ei),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(et){this._writableState&&(this._writableState.destroyed=et)}}),Writable.prototype.destroy=ey.destroy,Writable.prototype._undestroy=ey.undestroy,Writable.prototype._destroy=function(et,eo){eo(et)}},6871:function(et,eo,ei){"use strict";function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}var ea,eu=ei(9698),eh=Symbol("lastResolve"),ep=Symbol("lastReject"),ef=Symbol("error"),em=Symbol("ended"),eg=Symbol("lastPromise"),ey=Symbol("handlePromise"),eC=Symbol("stream");function createIterResult(et,eo){return{value:et,done:eo}}function readAndResolve(et){var eo=et[eh];if(null!==eo){var ei=et[eC].read();null!==ei&&(et[eg]=null,et[eh]=null,et[ep]=null,eo(createIterResult(ei,!1)))}}function onReadable(et){ed.nextTick(readAndResolve,et)}function wrapForNext(et,eo){return function(ei,ea){et.then(function(){if(eo[em]){ei(createIterResult(void 0,!0));return}eo[ey](ei,ea)},ea)}}var eS=Object.getPrototypeOf(function(){}),e_=Object.setPrototypeOf((_defineProperty(ea={get stream(){return this[eC]},next:function(){var et,eo=this,ei=this[ef];if(null!==ei)return Promise.reject(ei);if(this[em])return Promise.resolve(createIterResult(void 0,!0));if(this[eC].destroyed)return new Promise(function(et,ei){ed.nextTick(function(){eo[ef]?ei(eo[ef]):et(createIterResult(void 0,!0))})});var ea=this[eg];if(ea)et=new Promise(wrapForNext(ea,this));else{var eu=this[eC].read();if(null!==eu)return Promise.resolve(createIterResult(eu,!1));et=new Promise(this[ey])}return this[eg]=et,et}},Symbol.asyncIterator,function(){return this}),_defineProperty(ea,"return",function(){var et=this;return new Promise(function(eo,ei){et[eC].destroy(null,function(et){if(et){ei(et);return}eo(createIterResult(void 0,!0))})})}),ea),eS),v=function(et){var eo,ei=Object.create(e_,(_defineProperty(eo={},eC,{value:et,writable:!0}),_defineProperty(eo,eh,{value:null,writable:!0}),_defineProperty(eo,ep,{value:null,writable:!0}),_defineProperty(eo,ef,{value:null,writable:!0}),_defineProperty(eo,em,{value:et._readableState.endEmitted,writable:!0}),_defineProperty(eo,ey,{value:function(et,eo){var ea=ei[eC].read();ea?(ei[eg]=null,ei[eh]=null,ei[ep]=null,et(createIterResult(ea,!1))):(ei[eh]=et,ei[ep]=eo)},writable:!0}),eo));return ei[eg]=null,eu(et,function(et){if(et&&"ERR_STREAM_PREMATURE_CLOSE"!==et.code){var eo=ei[ep];null!==eo&&(ei[eg]=null,ei[eh]=null,ei[ep]=null,eo(et)),ei[ef]=et;return}var ea=ei[eh];null!==ea&&(ei[eg]=null,ei[eh]=null,ei[ep]=null,ea(createIterResult(void 0,!0))),ei[em]=!0}),et.on("readable",onReadable.bind(null,ei)),ei};et.exports=v},4379:function(et,eo,ei){"use strict";function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}function _classCallCheck(et,eo){if(!(et instanceof eo))throw TypeError("Cannot call a class as a function")}function _defineProperties(et,eo){for(var ei=0;ei<eo.length;ei++){var ea=eo[ei];ea.enumerable=ea.enumerable||!1,ea.configurable=!0,"value"in ea&&(ea.writable=!0),Object.defineProperty(et,ea.key,ea)}}function _createClass(et,eo,ei){return eo&&_defineProperties(et.prototype,eo),ei&&_defineProperties(et,ei),et}var ea=ei(4300).Buffer,eu=ei(3837).inspect,ed=eu&&eu.custom||"inspect";function copyBuffer(et,eo,ei){ea.prototype.copy.call(et,eo,ei)}et.exports=function(){function BufferList(){_classCallCheck(this,BufferList),this.head=null,this.tail=null,this.length=0}return _createClass(BufferList,[{key:"push",value:function(et){var eo={data:et,next:null};this.length>0?this.tail.next=eo:this.head=eo,this.tail=eo,++this.length}},{key:"unshift",value:function(et){var eo={data:et,next:this.head};0===this.length&&(this.tail=eo),this.head=eo,++this.length}},{key:"shift",value:function(){if(0!==this.length){var et=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,et}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(et){if(0===this.length)return"";for(var eo=this.head,ei=""+eo.data;eo=eo.next;)ei+=et+eo.data;return ei}},{key:"concat",value:function(et){if(0===this.length)return ea.alloc(0);for(var eo=ea.allocUnsafe(et>>>0),ei=this.head,eu=0;ei;)copyBuffer(ei.data,eo,eu),eu+=ei.data.length,ei=ei.next;return eo}},{key:"consume",value:function(et,eo){var ei;return et<this.head.data.length?(ei=this.head.data.slice(0,et),this.head.data=this.head.data.slice(et)):ei=et===this.head.data.length?this.shift():eo?this._getString(et):this._getBuffer(et),ei}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(et){var eo=this.head,ei=1,ea=eo.data;for(et-=ea.length;eo=eo.next;){var eu=eo.data,ed=et>eu.length?eu.length:et;if(ed===eu.length?ea+=eu:ea+=eu.slice(0,et),0==(et-=ed)){ed===eu.length?(++ei,eo.next?this.head=eo.next:this.head=this.tail=null):(this.head=eo,eo.data=eu.slice(ed));break}++ei}return this.length-=ei,ea}},{key:"_getBuffer",value:function(et){var eo=ea.allocUnsafe(et),ei=this.head,eu=1;for(ei.data.copy(eo),et-=ei.data.length;ei=ei.next;){var ed=ei.data,eh=et>ed.length?ed.length:et;if(ed.copy(eo,eo.length-et,0,eh),0==(et-=eh)){eh===ed.length?(++eu,ei.next?this.head=ei.next:this.head=this.tail=null):(this.head=ei,ei.data=ed.slice(eh));break}++eu}return this.length-=eu,eo}},{key:ed,value:function(et,eo){return eu(this,_objectSpread({},eo,{depth:0,customInspect:!1}))}}]),BufferList}()},7025:function(et){"use strict";function destroy(et,eo){var ei=this,ea=this._readableState&&this._readableState.destroyed,eu=this._writableState&&this._writableState.destroyed;return ea||eu?eo?eo(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ed.nextTick(emitErrorNT,this,et)):ed.nextTick(emitErrorNT,this,et)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(et){!eo&&et?ei._writableState?ei._writableState.errorEmitted?ed.nextTick(emitCloseNT,ei):(ei._writableState.errorEmitted=!0,ed.nextTick(emitErrorAndCloseNT,ei,et)):ed.nextTick(emitErrorAndCloseNT,ei,et):eo?(ed.nextTick(emitCloseNT,ei),eo(et)):ed.nextTick(emitCloseNT,ei)})),this}function emitErrorAndCloseNT(et,eo){emitErrorNT(et,eo),emitCloseNT(et)}function emitCloseNT(et){(!et._writableState||et._writableState.emitClose)&&(!et._readableState||et._readableState.emitClose)&&et.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,eo){et.emit("error",eo)}function errorOrDestroy(et,eo){var ei=et._readableState,ea=et._writableState;ei&&ei.autoDestroy||ea&&ea.autoDestroy?et.destroy(eo):et.emit("error",eo)}et.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},9698:function(et,eo,ei){"use strict";var ea=ei(4646).q.ERR_STREAM_PREMATURE_CLOSE;function once(et){var eo=!1;return function(){if(!eo){eo=!0;for(var ei=arguments.length,ea=Array(ei),eu=0;eu<ei;eu++)ea[eu]=arguments[eu];et.apply(this,ea)}}}function noop(){}function isRequest(et){return et.setHeader&&"function"==typeof et.abort}function eos(et,eo,ei){if("function"==typeof eo)return eos(et,null,eo);eo||(eo={}),ei=once(ei||noop);var eu=eo.readable||!1!==eo.readable&&et.readable,ed=eo.writable||!1!==eo.writable&&et.writable,s=function(){et.writable||h()},eh=et._writableState&&et._writableState.finished,h=function(){ed=!1,eh=!0,eu||ei.call(et)},ep=et._readableState&&et._readableState.endEmitted,d=function(){eu=!1,ep=!0,ed||ei.call(et)},c=function(eo){ei.call(et,eo)},l=function(){var eo;return eu&&!ep?(et._readableState&&et._readableState.ended||(eo=new ea),ei.call(et,eo)):ed&&!eh?(et._writableState&&et._writableState.ended||(eo=new ea),ei.call(et,eo)):void 0},p=function(){et.req.on("finish",h)};return isRequest(et)?(et.on("complete",h),et.on("abort",l),et.req?p():et.on("request",p)):ed&&!et._writableState&&(et.on("end",s),et.on("close",s)),et.on("end",d),et.on("finish",h),!1!==eo.error&&et.on("error",c),et.on("close",l),function(){et.removeListener("complete",h),et.removeListener("abort",l),et.removeListener("request",p),et.req&&et.req.removeListener("finish",h),et.removeListener("end",s),et.removeListener("close",s),et.removeListener("finish",h),et.removeListener("end",d),et.removeListener("error",c),et.removeListener("close",l)}}et.exports=eos},9727:function(et,eo,ei){"use strict";function asyncGeneratorStep(et,eo,ei,ea,eu,ed,eh){try{var ep=et[ed](eh),ef=ep.value}catch(et){ei(et);return}ep.done?eo(ef):Promise.resolve(ef).then(ea,eu)}function _asyncToGenerator(et){return function(){var eo=this,ei=arguments;return new Promise(function(ea,eu){var ed=et.apply(eo,ei);function _next(et){asyncGeneratorStep(ed,ea,eu,_next,_throw,"next",et)}function _throw(et){asyncGeneratorStep(ed,ea,eu,_next,_throw,"throw",et)}_next(void 0)})}}function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}var ea=ei(4646).q.ERR_INVALID_ARG_TYPE;function from(et,eo,ei){if(eo&&"function"==typeof eo.next)eu=eo;else if(eo&&eo[Symbol.asyncIterator])eu=eo[Symbol.asyncIterator]();else if(eo&&eo[Symbol.iterator])eu=eo[Symbol.iterator]();else throw new ea("iterable",["Iterable"],eo);var eu,ed=new et(_objectSpread({objectMode:!0},ei)),eh=!1;function next(){return _next2.apply(this,arguments)}function _next2(){return(_next2=_asyncToGenerator(function*(){try{var et=yield eu.next(),eo=et.value;et.done?ed.push(null):ed.push((yield eo))?next():eh=!1}catch(et){ed.destroy(et)}})).apply(this,arguments)}return ed._read=function(){eh||(eh=!0,next())},ed}et.exports=from},8442:function(et,eo,ei){"use strict";function once(et){var eo=!1;return function(){eo||(eo=!0,et.apply(void 0,arguments))}}var ea,eu=ei(4646).q,ed=eu.ERR_MISSING_ARGS,eh=eu.ERR_STREAM_DESTROYED;function noop(et){if(et)throw et}function isRequest(et){return et.setHeader&&"function"==typeof et.abort}function destroyer(et,eo,eu,ed){ed=once(ed);var ep=!1;et.on("close",function(){ep=!0}),void 0===ea&&(ea=ei(9698)),ea(et,{readable:eo,writable:eu},function(et){if(et)return ed(et);ep=!0,ed()});var ef=!1;return function(eo){if(!ep&&!ef){if(ef=!0,isRequest(et))return et.abort();if("function"==typeof et.destroy)return et.destroy();ed(eo||new eh("pipe"))}}}function call(et){et()}function pipe(et,eo){return et.pipe(eo)}function popCallback(et){return et.length&&"function"==typeof et[et.length-1]?et.pop():noop}function pipeline(){for(var et,eo=arguments.length,ei=Array(eo),ea=0;ea<eo;ea++)ei[ea]=arguments[ea];var eu=popCallback(ei);if(Array.isArray(ei[0])&&(ei=ei[0]),ei.length<2)throw new ed("streams");var eh=ei.map(function(eo,ea){var ed=ea<ei.length-1;return destroyer(eo,ed,ea>0,function(eo){et||(et=eo),eo&&eh.forEach(call),ed||(eh.forEach(call),eu(et))})});return ei.reduce(pipe)}et.exports=pipeline},6776:function(et,eo,ei){"use strict";var ea=ei(4646).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,eo,ei){return null!=et.highWaterMark?et.highWaterMark:eo?et[ei]:null}function getHighWaterMark(et,eo,ei,eu){var ed=highWaterMarkFrom(eo,eu,ei);if(null!=ed){if(!(isFinite(ed)&&Math.floor(ed)===ed)||ed<0){var eh=eu?ei:"highWaterMark";throw new ea(eh,ed)}return Math.floor(ed)}return et.objectMode?16:16384}et.exports={getHighWaterMark:getHighWaterMark}},4678:function(et,eo,ei){et.exports=ei(2781)},3726:function(et,eo,ei){var ea=ei(2781);"disable"===ed.env.READABLE_STREAM&&ea?(et.exports=ea.Readable,Object.assign(et.exports,ea),et.exports.Stream=ea):((eo=et.exports=ei(1709)).Stream=ea||eo,eo.Readable=eo,eo.Writable=ei(7337),eo.Duplex=ei(2403),eo.Transform=ei(1170),eo.PassThrough=ei(7889),eo.finished=ei(9698),eo.pipeline=ei(8442))},3225:function(et,eo,ei){"use strict";var ea=ei(4300).Buffer,eu=ei(3782),ed=ei(9029),eh=Array(16),ep=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ef=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],em=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],eg=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],ey=[0,1518500249,1859775393,2400959708,2840853838],eC=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160(){ed.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function rotl(et,eo){return et<<eo|et>>>32-eo}function fn1(et,eo,ei,ea,eu,ed,eh,ep){return rotl(et+(eo^ei^ea)+ed+eh|0,ep)+eu|0}function fn2(et,eo,ei,ea,eu,ed,eh,ep){return rotl(et+(eo&ei|~eo&ea)+ed+eh|0,ep)+eu|0}function fn3(et,eo,ei,ea,eu,ed,eh,ep){return rotl(et+((eo|~ei)^ea)+ed+eh|0,ep)+eu|0}function fn4(et,eo,ei,ea,eu,ed,eh,ep){return rotl(et+(eo&ea|ei&~ea)+ed+eh|0,ep)+eu|0}function fn5(et,eo,ei,ea,eu,ed,eh,ep){return rotl(et+(eo^(ei|~ea))+ed+eh|0,ep)+eu|0}eu(RIPEMD160,ed),RIPEMD160.prototype._update=function(){for(var et,eo,ei=eh,ea=0;ea<16;++ea)ei[ea]=this._block.readInt32LE(4*ea);for(var eu=0|this._a,ed=0|this._b,eS=0|this._c,e_=0|this._d,ew=0|this._e,eA=0|this._a,eI=0|this._b,eR=0|this._c,eT=0|this._d,eE=0|this._e,eP=0;eP<80;eP+=1)eP<16?(et=fn1(eu,ed,eS,e_,ew,ei[ep[eP]],ey[0],em[eP]),eo=fn5(eA,eI,eR,eT,eE,ei[ef[eP]],eC[0],eg[eP])):eP<32?(et=fn2(eu,ed,eS,e_,ew,ei[ep[eP]],ey[1],em[eP]),eo=fn4(eA,eI,eR,eT,eE,ei[ef[eP]],eC[1],eg[eP])):eP<48?(et=fn3(eu,ed,eS,e_,ew,ei[ep[eP]],ey[2],em[eP]),eo=fn3(eA,eI,eR,eT,eE,ei[ef[eP]],eC[2],eg[eP])):eP<64?(et=fn4(eu,ed,eS,e_,ew,ei[ep[eP]],ey[3],em[eP]),eo=fn2(eA,eI,eR,eT,eE,ei[ef[eP]],eC[3],eg[eP])):(et=fn5(eu,ed,eS,e_,ew,ei[ep[eP]],ey[4],em[eP]),eo=fn1(eA,eI,eR,eT,eE,ei[ef[eP]],eC[4],eg[eP])),eu=ew,ew=e_,e_=rotl(eS,10),eS=ed,ed=et,eA=eE,eE=eT,eT=rotl(eR,10),eR=eI,eI=eo;var ek=this._b+eS+eT|0;this._b=this._c+e_+eE|0,this._c=this._d+ew+eA|0,this._d=this._e+eu+eI|0,this._e=this._a+ed+eR|0,this._a=ek},RIPEMD160.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=ea.alloc?ea.alloc(20):new ea(20);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et.writeInt32LE(this._e,16),et},et.exports=RIPEMD160},5055:function(et,eo,ei){var ea=ei(4300),eu=ea.Buffer;function copyProps(et,eo){for(var ei in et)eo[ei]=et[ei]}function SafeBuffer(et,eo,ei){return eu(et,eo,ei)}eu.from&&eu.alloc&&eu.allocUnsafe&&eu.allocUnsafeSlow?et.exports=ea:(copyProps(ea,eo),eo.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(eu.prototype),copyProps(eu,SafeBuffer),SafeBuffer.from=function(et,eo,ei){if("number"==typeof et)throw TypeError("Argument must not be a number");return eu(et,eo,ei)},SafeBuffer.alloc=function(et,eo,ei){if("number"!=typeof et)throw TypeError("Argument must be a number");var ea=eu(et);return void 0!==eo?"string"==typeof ei?ea.fill(eo,ei):ea.fill(eo):ea.fill(0),ea},SafeBuffer.allocUnsafe=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return eu(et)},SafeBuffer.allocUnsafeSlow=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return ea.SlowBuffer(et)}},6911:function(et,eo,ei){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ea=ei(4300),eu=ea.Buffer;function copyProps(et,eo){for(var ei in et)eo[ei]=et[ei]}function SafeBuffer(et,eo,ei){return eu(et,eo,ei)}eu.from&&eu.alloc&&eu.allocUnsafe&&eu.allocUnsafeSlow?et.exports=ea:(copyProps(ea,eo),eo.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(eu.prototype),copyProps(eu,SafeBuffer),SafeBuffer.from=function(et,eo,ei){if("number"==typeof et)throw TypeError("Argument must not be a number");return eu(et,eo,ei)},SafeBuffer.alloc=function(et,eo,ei){if("number"!=typeof et)throw TypeError("Argument must be a number");var ea=eu(et);return void 0!==eo?"string"==typeof ei?ea.fill(eo,ei):ea.fill(eo):ea.fill(0),ea},SafeBuffer.allocUnsafe=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return eu(et)},SafeBuffer.allocUnsafeSlow=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return ea.SlowBuffer(et)}},2858:function(et,eo,ei){var ea=ei(6911).Buffer;function Hash(et,eo){this._block=ea.alloc(et),this._finalSize=eo,this._blockSize=et,this._len=0}Hash.prototype.update=function(et,eo){"string"==typeof et&&(eo=eo||"utf8",et=ea.from(et,eo));for(var ei=this._block,eu=this._blockSize,ed=et.length,eh=this._len,ep=0;ep<ed;){for(var ef=eh%eu,em=Math.min(ed-ep,eu-ef),eg=0;eg<em;eg++)ei[ef+eg]=et[ep+eg];eh+=em,ep+=em,eh%eu==0&&this._update(ei)}return this._len+=ed,this},Hash.prototype.digest=function(et){var eo=this._len%this._blockSize;this._block[eo]=128,this._block.fill(0,eo+1),eo>=this._finalSize&&(this._update(this._block),this._block.fill(0));var ei=8*this._len;if(ei<=4294967295)this._block.writeUInt32BE(ei,this._blockSize-4);else{var ea=(4294967295&ei)>>>0,eu=(ei-ea)/4294967296;this._block.writeUInt32BE(eu,this._blockSize-8),this._block.writeUInt32BE(ea,this._blockSize-4)}this._update(this._block);var ed=this._hash();return et?ed.toString(et):ed},Hash.prototype._update=function(){throw Error("_update must be implemented by subclass")},et.exports=Hash},4371:function(et,eo,ei){var ea=et.exports=function(et){var eo=ea[et=et.toLowerCase()];if(!eo)throw Error(et+" is not supported (we accept pull requests)");return new eo};ea.sha=ei(4018),ea.sha1=ei(4179),ea.sha224=ei(532),ea.sha256=ei(1843),ea.sha384=ei(7455),ea.sha512=ei(9934)},4018:function(et,eo,ei){var ea=ei(3782),eu=ei(2858),ed=ei(6911).Buffer,eh=[1518500249,1859775393,-1894007588,-899497514],ep=Array(80);function Sha(){this.init(),this._w=ep,eu.call(this,64,56)}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,eo,ei,ea){return 0===et?eo&ei|~eo&ea:2===et?eo&ei|eo&ea|ei&ea:eo^ei^ea}ea(Sha,eu),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(et){for(var eo=this._w,ei=0|this._a,ea=0|this._b,eu=0|this._c,ed=0|this._d,ep=0|this._e,ef=0;ef<16;++ef)eo[ef]=et.readInt32BE(4*ef);for(;ef<80;++ef)eo[ef]=eo[ef-3]^eo[ef-8]^eo[ef-14]^eo[ef-16];for(var em=0;em<80;++em){var eg=~~(em/20),ey=rotl5(ei)+ft(eg,ea,eu,ed)+ep+eo[em]+eh[eg]|0;ep=ed,ed=eu,eu=rotl30(ea),ea=ei,ei=ey}this._a=ei+this._a|0,this._b=ea+this._b|0,this._c=eu+this._c|0,this._d=ed+this._d|0,this._e=ep+this._e|0},Sha.prototype._hash=function(){var et=ed.allocUnsafe(20);return et.writeInt32BE(0|this._a,0),et.writeInt32BE(0|this._b,4),et.writeInt32BE(0|this._c,8),et.writeInt32BE(0|this._d,12),et.writeInt32BE(0|this._e,16),et},et.exports=Sha},4179:function(et,eo,ei){var ea=ei(3782),eu=ei(2858),ed=ei(6911).Buffer,eh=[1518500249,1859775393,-1894007588,-899497514],ep=Array(80);function Sha1(){this.init(),this._w=ep,eu.call(this,64,56)}function rotl1(et){return et<<1|et>>>31}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,eo,ei,ea){return 0===et?eo&ei|~eo&ea:2===et?eo&ei|eo&ea|ei&ea:eo^ei^ea}ea(Sha1,eu),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(et){for(var eo=this._w,ei=0|this._a,ea=0|this._b,eu=0|this._c,ed=0|this._d,ep=0|this._e,ef=0;ef<16;++ef)eo[ef]=et.readInt32BE(4*ef);for(;ef<80;++ef)eo[ef]=rotl1(eo[ef-3]^eo[ef-8]^eo[ef-14]^eo[ef-16]);for(var em=0;em<80;++em){var eg=~~(em/20),ey=rotl5(ei)+ft(eg,ea,eu,ed)+ep+eo[em]+eh[eg]|0;ep=ed,ed=eu,eu=rotl30(ea),ea=ei,ei=ey}this._a=ei+this._a|0,this._b=ea+this._b|0,this._c=eu+this._c|0,this._d=ed+this._d|0,this._e=ep+this._e|0},Sha1.prototype._hash=function(){var et=ed.allocUnsafe(20);return et.writeInt32BE(0|this._a,0),et.writeInt32BE(0|this._b,4),et.writeInt32BE(0|this._c,8),et.writeInt32BE(0|this._d,12),et.writeInt32BE(0|this._e,16),et},et.exports=Sha1},532:function(et,eo,ei){var ea=ei(3782),eu=ei(1843),ed=ei(2858),eh=ei(6911).Buffer,ep=Array(64);function Sha224(){this.init(),this._w=ep,ed.call(this,64,56)}ea(Sha224,eu),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var et=eh.allocUnsafe(28);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et},et.exports=Sha224},1843:function(et,eo,ei){var ea=ei(3782),eu=ei(2858),ed=ei(6911).Buffer,eh=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ep=Array(64);function Sha256(){this.init(),this._w=ep,eu.call(this,64,56)}function ch(et,eo,ei){return ei^et&(eo^ei)}function maj(et,eo,ei){return et&eo|ei&(et|eo)}function sigma0(et){return(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10)}function sigma1(et){return(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7)}function gamma0(et){return(et>>>7|et<<25)^(et>>>18|et<<14)^et>>>3}function gamma1(et){return(et>>>17|et<<15)^(et>>>19|et<<13)^et>>>10}ea(Sha256,eu),Sha256.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Sha256.prototype._update=function(et){for(var eo=this._w,ei=0|this._a,ea=0|this._b,eu=0|this._c,ed=0|this._d,ep=0|this._e,ef=0|this._f,em=0|this._g,eg=0|this._h,ey=0;ey<16;++ey)eo[ey]=et.readInt32BE(4*ey);for(;ey<64;++ey)eo[ey]=gamma1(eo[ey-2])+eo[ey-7]+gamma0(eo[ey-15])+eo[ey-16]|0;for(var eC=0;eC<64;++eC){var eS=eg+sigma1(ep)+ch(ep,ef,em)+eh[eC]+eo[eC]|0,e_=sigma0(ei)+maj(ei,ea,eu)|0;eg=em,em=ef,ef=ep,ep=ed+eS|0,ed=eu,eu=ea,ea=ei,ei=eS+e_|0}this._a=ei+this._a|0,this._b=ea+this._b|0,this._c=eu+this._c|0,this._d=ed+this._d|0,this._e=ep+this._e|0,this._f=ef+this._f|0,this._g=em+this._g|0,this._h=eg+this._h|0},Sha256.prototype._hash=function(){var et=ed.allocUnsafe(32);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et.writeInt32BE(this._h,28),et},et.exports=Sha256},7455:function(et,eo,ei){var ea=ei(3782),eu=ei(9934),ed=ei(2858),eh=ei(6911).Buffer,ep=Array(160);function Sha384(){this.init(),this._w=ep,ed.call(this,128,112)}ea(Sha384,eu),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){var et=eh.allocUnsafe(48);function writeInt64BE(eo,ei,ea){et.writeInt32BE(eo,ea),et.writeInt32BE(ei,ea+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),et},et.exports=Sha384},9934:function(et,eo,ei){var ea=ei(3782),eu=ei(2858),ed=ei(6911).Buffer,eh=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],ep=Array(160);function Sha512(){this.init(),this._w=ep,eu.call(this,128,112)}function Ch(et,eo,ei){return ei^et&(eo^ei)}function maj(et,eo,ei){return et&eo|ei&(et|eo)}function sigma0(et,eo){return(et>>>28|eo<<4)^(eo>>>2|et<<30)^(eo>>>7|et<<25)}function sigma1(et,eo){return(et>>>14|eo<<18)^(et>>>18|eo<<14)^(eo>>>9|et<<23)}function Gamma0(et,eo){return(et>>>1|eo<<31)^(et>>>8|eo<<24)^et>>>7}function Gamma0l(et,eo){return(et>>>1|eo<<31)^(et>>>8|eo<<24)^(et>>>7|eo<<25)}function Gamma1(et,eo){return(et>>>19|eo<<13)^(eo>>>29|et<<3)^et>>>6}function Gamma1l(et,eo){return(et>>>19|eo<<13)^(eo>>>29|et<<3)^(et>>>6|eo<<26)}function getCarry(et,eo){return et>>>0<eo>>>0?1:0}ea(Sha512,eu),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Sha512.prototype._update=function(et){for(var eo=this._w,ei=0|this._ah,ea=0|this._bh,eu=0|this._ch,ed=0|this._dh,ep=0|this._eh,ef=0|this._fh,em=0|this._gh,eg=0|this._hh,ey=0|this._al,eC=0|this._bl,eS=0|this._cl,e_=0|this._dl,ew=0|this._el,eA=0|this._fl,eI=0|this._gl,eR=0|this._hl,eT=0;eT<32;eT+=2)eo[eT]=et.readInt32BE(4*eT),eo[eT+1]=et.readInt32BE(4*eT+4);for(;eT<160;eT+=2){var eE=eo[eT-30],eP=eo[eT-30+1],ek=Gamma0(eE,eP),eO=Gamma0l(eP,eE),eM=Gamma1(eE=eo[eT-4],eP=eo[eT-4+1]),eD=Gamma1l(eP,eE),eU=eo[eT-14],eL=eo[eT-14+1],eN=eo[eT-32],eB=eo[eT-32+1],eF=eO+eL|0,ej=ek+eU+getCarry(eF,eO)|0;ej=(ej=ej+eM+getCarry(eF=eF+eD|0,eD)|0)+eN+getCarry(eF=eF+eB|0,eB)|0,eo[eT]=ej,eo[eT+1]=eF}for(var eG=0;eG<160;eG+=2){ej=eo[eG],eF=eo[eG+1];var eH=maj(ei,ea,eu),eK=maj(ey,eC,eS),ez=sigma0(ei,ey),eW=sigma0(ey,ei),eV=sigma1(ep,ew),eJ=sigma1(ew,ep),eY=eh[eG],e$=eh[eG+1],eZ=Ch(ep,ef,em),eQ=Ch(ew,eA,eI),eX=eR+eJ|0,e0=eg+eV+getCarry(eX,eR)|0;e0=(e0=(e0=e0+eZ+getCarry(eX=eX+eQ|0,eQ)|0)+eY+getCarry(eX=eX+e$|0,e$)|0)+ej+getCarry(eX=eX+eF|0,eF)|0;var e4=eW+eK|0,e6=ez+eH+getCarry(e4,eW)|0;eg=em,eR=eI,em=ef,eI=eA,ef=ep,eA=ew,ep=ed+e0+getCarry(ew=e_+eX|0,e_)|0,ed=eu,e_=eS,eu=ea,eS=eC,ea=ei,eC=ey,ei=e0+e6+getCarry(ey=eX+e4|0,eX)|0}this._al=this._al+ey|0,this._bl=this._bl+eC|0,this._cl=this._cl+eS|0,this._dl=this._dl+e_|0,this._el=this._el+ew|0,this._fl=this._fl+eA|0,this._gl=this._gl+eI|0,this._hl=this._hl+eR|0,this._ah=this._ah+ei+getCarry(this._al,ey)|0,this._bh=this._bh+ea+getCarry(this._bl,eC)|0,this._ch=this._ch+eu+getCarry(this._cl,eS)|0,this._dh=this._dh+ed+getCarry(this._dl,e_)|0,this._eh=this._eh+ep+getCarry(this._el,ew)|0,this._fh=this._fh+ef+getCarry(this._fl,eA)|0,this._gh=this._gh+em+getCarry(this._gl,eI)|0,this._hh=this._hh+eg+getCarry(this._hl,eR)|0},Sha512.prototype._hash=function(){var et=ed.allocUnsafe(64);function writeInt64BE(eo,ei,ea){et.writeInt32BE(eo,ea),et.writeInt32BE(ei,ea+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),writeInt64BE(this._gh,this._gl,48),writeInt64BE(this._hh,this._hl,56),et},et.exports=Sha512},3704:function(et,eo,ei){"use strict";var ea=ei(5055).Buffer,eu=ea.isEncoding||function(et){switch((et=""+et)&&et.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(et){var eo;if(!et)return"utf8";for(;;)switch(et){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return et;default:if(eo)return;et=(""+et).toLowerCase(),eo=!0}}function normalizeEncoding(et){var eo=_normalizeEncoding(et);if("string"!=typeof eo&&(ea.isEncoding===eu||!eu(et)))throw Error("Unknown encoding: "+et);return eo||et}function StringDecoder(et){var eo;switch(this.encoding=normalizeEncoding(et),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,eo=4;break;case"utf8":this.fillLast=utf8FillLast,eo=4;break;case"base64":this.text=base64Text,this.end=base64End,eo=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ea.allocUnsafe(eo)}function utf8CheckByte(et){return et<=127?0:et>>5==6?2:et>>4==14?3:et>>3==30?4:et>>6==2?-1:-2}function utf8CheckIncomplete(et,eo,ei){var ea=eo.length-1;if(ea<ei)return 0;var eu=utf8CheckByte(eo[ea]);return eu>=0?(eu>0&&(et.lastNeed=eu-1),eu):--ea<ei||-2===eu?0:(eu=utf8CheckByte(eo[ea]))>=0?(eu>0&&(et.lastNeed=eu-2),eu):--ea<ei||-2===eu?0:(eu=utf8CheckByte(eo[ea]))>=0?(eu>0&&(2===eu?eu=0:et.lastNeed=eu-3),eu):0}function utf8CheckExtraBytes(et,eo,ei){if((192&eo[0])!=128)return et.lastNeed=0,"�";if(et.lastNeed>1&&eo.length>1){if((192&eo[1])!=128)return et.lastNeed=1,"�";if(et.lastNeed>2&&eo.length>2&&(192&eo[2])!=128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var eo=this.lastTotal-this.lastNeed,ei=utf8CheckExtraBytes(this,et,eo);return void 0!==ei?ei:this.lastNeed<=et.length?(et.copy(this.lastChar,eo,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(et.copy(this.lastChar,eo,0,et.length),this.lastNeed-=et.length)}function utf8Text(et,eo){var ei=utf8CheckIncomplete(this,et,eo);if(!this.lastNeed)return et.toString("utf8",eo);this.lastTotal=ei;var ea=et.length-(ei-this.lastNeed);return et.copy(this.lastChar,0,ea),et.toString("utf8",eo,ea)}function utf8End(et){var eo=et&&et.length?this.write(et):"";return this.lastNeed?eo+"�":eo}function utf16Text(et,eo){if((et.length-eo)%2==0){var ei=et.toString("utf16le",eo);if(ei){var ea=ei.charCodeAt(ei.length-1);if(ea>=55296&&ea<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],ei.slice(0,-1)}return ei}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",eo,et.length-1)}function utf16End(et){var eo=et&&et.length?this.write(et):"";if(this.lastNeed){var ei=this.lastTotal-this.lastNeed;return eo+this.lastChar.toString("utf16le",0,ei)}return eo}function base64Text(et,eo){var ei=(et.length-eo)%3;return 0===ei?et.toString("base64",eo):(this.lastNeed=3-ei,this.lastTotal=3,1===ei?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",eo,et.length-ei))}function base64End(et){var eo=et&&et.length?this.write(et):"";return this.lastNeed?eo+this.lastChar.toString("base64",0,3-this.lastNeed):eo}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}eo.s=StringDecoder,StringDecoder.prototype.write=function(et){var eo,ei;if(0===et.length)return"";if(this.lastNeed){if(void 0===(eo=this.fillLast(et)))return"";ei=this.lastNeed,this.lastNeed=0}else ei=0;return ei<et.length?eo?eo+this.text(et,ei):this.text(et,ei):eo||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(et){if(this.lastNeed<=et.length)return et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,et.length),this.lastNeed-=et.length}},6769:function(et){function deprecate(et,eo){if(config("noDeprecation"))return et;var ei=!1;return function(){if(!ei){if(config("throwDeprecation"))throw Error(eo);config("traceDeprecation")?console.trace(eo):console.warn(eo),ei=!0}return et.apply(this,arguments)}}function config(et){try{if(!ei.g.localStorage)return!1}catch(et){return!1}var eo=ei.g.localStorage[et];return null!=eo&&"true"===String(eo).toLowerCase()}et.exports=deprecate},4300:function(et){"use strict";et.exports=ei(48764)},6113:function(et){"use strict";et.exports=ei(42474)},2361:function(et){"use strict";et.exports=ei(17187)},2781:function(et){"use strict";et.exports=ei(79681)},1576:function(et){"use strict";et.exports=ei(32553)},3837:function(et){"use strict";et.exports=ei(79720)},6144:function(et){"use strict";et.exports=ei(51951)},5866:function(et){"use strict";et.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(et){"use strict";et.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(et){"use strict";et.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(et){"use strict";et.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(et){"use strict";et.exports={i8:"6.5.3"}},2510:function(et){"use strict";et.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},eh={};function __nccwpck_require__(et){var ei=eh[et];if(void 0!==ei)return ei.exports;var ea=eh[et]={id:et,loaded:!1,exports:{}},eu=!0;try{eo[et].call(ea.exports,ea,ea.exports,__nccwpck_require__),eu=!1}finally{eu&&delete eh[et]}return ea.loaded=!0,ea.exports}!function(){__nccwpck_require__.nmd=function(et){return et.paths=[],et.children||(et.children=[]),et}}(),__nccwpck_require__.ab=ea+"/";var ep={};!function(){"use strict";var et=ep;et.randomBytes=et.rng=et.pseudoRandomBytes=et.prng=__nccwpck_require__(7223),et.createHash=et.Hash=__nccwpck_require__(9739),et.createHmac=et.Hmac=__nccwpck_require__(4873);var eo=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(__nccwpck_require__(9276)));et.getHashes=function(){return eo};var ei=__nccwpck_require__(4978);et.pbkdf2=ei.pbkdf2,et.pbkdf2Sync=ei.pbkdf2Sync;var ea=__nccwpck_require__(8996);et.Cipher=ea.Cipher,et.createCipher=ea.createCipher,et.Cipheriv=ea.Cipheriv,et.createCipheriv=ea.createCipheriv,et.Decipher=ea.Decipher,et.createDecipher=ea.createDecipher,et.Decipheriv=ea.Decipheriv,et.createDecipheriv=ea.createDecipheriv,et.getCiphers=ea.getCiphers,et.listCiphers=ea.listCiphers;var eu=__nccwpck_require__(6587);et.DiffieHellmanGroup=eu.DiffieHellmanGroup,et.createDiffieHellmanGroup=eu.createDiffieHellmanGroup,et.getDiffieHellman=eu.getDiffieHellman,et.createDiffieHellman=eu.createDiffieHellman,et.DiffieHellman=eu.DiffieHellman;var ed=__nccwpck_require__(4078);et.createSign=ed.createSign,et.Sign=ed.Sign,et.createVerify=ed.createVerify,et.Verify=ed.Verify,et.createECDH=__nccwpck_require__(9942);var eh=__nccwpck_require__(9783);et.publicEncrypt=eh.publicEncrypt,et.privateEncrypt=eh.privateEncrypt,et.publicDecrypt=eh.publicDecrypt,et.privateDecrypt=eh.privateDecrypt;var ef=__nccwpck_require__(6445);et.randomFill=ef.randomFill,et.randomFillSync=ef.randomFillSync,et.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},et.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),et.exports=ep}()},71570:function(){},4282:function(){},27967:function(){},38859:function(){},79681:function(et,eo,ei){var ea="/",eu=ei(34155);!function(){var eo={782:function(et){"function"==typeof Object.create?et.exports=function(et,eo){eo&&(et.super_=eo,et.prototype=Object.create(eo.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}))}:et.exports=function(et,eo){if(eo){et.super_=eo;var TempCtor=function(){};TempCtor.prototype=eo.prototype,et.prototype=new TempCtor,et.prototype.constructor=et}}},646:function(et){"use strict";let eo={};function createErrorType(et,ei,ea){function getMessage(et,eo,ea){return"string"==typeof ei?ei:ei(et,eo,ea)}ea||(ea=Error);let NodeError=class NodeError extends ea{constructor(et,eo,ei){super(getMessage(et,eo,ei))}};NodeError.prototype.name=ea.name,NodeError.prototype.code=et,eo[et]=NodeError}function oneOf(et,eo){if(!Array.isArray(et))return`of ${eo} ${String(et)}`;{let ei=et.length;return(et=et.map(et=>String(et)),ei>2)?`one of ${eo} ${et.slice(0,ei-1).join(", ")}, or `+et[ei-1]:2===ei?`one of ${eo} ${et[0]} or ${et[1]}`:`of ${eo} ${et[0]}`}}function startsWith(et,eo,ei){return et.substr(!ei||ei<0?0:+ei,eo.length)===eo}function endsWith(et,eo,ei){return(void 0===ei||ei>et.length)&&(ei=et.length),et.substring(ei-eo.length,ei)===eo}function includes(et,eo,ei){return"number"!=typeof ei&&(ei=0),!(ei+eo.length>et.length)&&-1!==et.indexOf(eo,ei)}createErrorType("ERR_INVALID_OPT_VALUE",function(et,eo){return'The value "'+eo+'" is invalid for option "'+et+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(et,eo,ei){let ea,eu;if("string"==typeof eo&&startsWith(eo,"not ")?(ea="must not be",eo=eo.replace(/^not /,"")):ea="must be",endsWith(et," argument"))eu=`The ${et} ${ea} ${oneOf(eo,"type")}`;else{let ei=includes(et,".")?"property":"argument";eu=`The "${et}" ${ei} ${ea} ${oneOf(eo,"type")}`}return eu+`. Received type ${typeof ei}`},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),et.exports.q=eo},403:function(et,eo,ei){"use strict";var ea=Object.keys||function(et){var eo=[];for(var ei in et)eo.push(ei);return eo};et.exports=Duplex;var ed=ei(709),eh=ei(337);ei(782)(Duplex,ed);for(var ep=ea(eh.prototype),ef=0;ef<ep.length;ef++){var em=ep[ef];Duplex.prototype[em]||(Duplex.prototype[em]=eh.prototype[em])}function Duplex(et){if(!(this instanceof Duplex))return new Duplex(et);ed.call(this,et),eh.call(this,et),this.allowHalfOpen=!0,et&&(!1===et.readable&&(this.readable=!1),!1===et.writable&&(this.writable=!1),!1===et.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",onend)))}function onend(){this._writableState.ended||eu.nextTick(onEndNT,this)}function onEndNT(et){et.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(et){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=et,this._writableState.destroyed=et)}})},889:function(et,eo,ei){"use strict";et.exports=PassThrough;var ea=ei(170);function PassThrough(et){if(!(this instanceof PassThrough))return new PassThrough(et);ea.call(this,et)}ei(782)(PassThrough,ea),PassThrough.prototype._transform=function(et,eo,ei){ei(null,et)}},709:function(et,eo,ea){"use strict";et.exports=Readable,Readable.ReadableState=ReadableState,ea(361).EventEmitter;var ed,eh,ep,ef,em,a=function(et,eo){return et.listeners(eo).length},eg=ea(678),ey=ea(300).Buffer,eC=ei.g.Uint8Array||function(){};function _uint8ArrayToBuffer(et){return ey.from(et)}function _isUint8Array(et){return ey.isBuffer(et)||et instanceof eC}var eS=ea(837);eh=eS&&eS.debuglog?eS.debuglog("stream"):function(){};var e_=ea(379),ew=ea(25),eA=ea(776).getHighWaterMark,eI=ea(646).q,eR=eI.ERR_INVALID_ARG_TYPE,eT=eI.ERR_STREAM_PUSH_AFTER_EOF,eE=eI.ERR_METHOD_NOT_IMPLEMENTED,eP=eI.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ea(782)(Readable,eg);var ek=ew.errorOrDestroy,eO=["error","close","destroy","pause","resume"];function prependListener(et,eo,ei){if("function"==typeof et.prependListener)return et.prependListener(eo,ei);et._events&&et._events[eo]?Array.isArray(et._events[eo])?et._events[eo].unshift(ei):et._events[eo]=[ei,et._events[eo]]:et.on(eo,ei)}function ReadableState(et,eo,ei){ed=ed||ea(403),et=et||{},"boolean"!=typeof ei&&(ei=eo instanceof ed),this.objectMode=!!et.objectMode,ei&&(this.objectMode=this.objectMode||!!et.readableObjectMode),this.highWaterMark=eA(this,et,"readableHighWaterMark",ei),this.buffer=new e_,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==et.emitClose,this.autoDestroy=!!et.autoDestroy,this.destroyed=!1,this.defaultEncoding=et.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,et.encoding&&(ep||(ep=ea(704).s),this.decoder=new ep(et.encoding),this.encoding=et.encoding)}function Readable(et){if(ed=ed||ea(403),!(this instanceof Readable))return new Readable(et);var eo=this instanceof ed;this._readableState=new ReadableState(et,this,eo),this.readable=!0,et&&("function"==typeof et.read&&(this._read=et.read),"function"==typeof et.destroy&&(this._destroy=et.destroy)),eg.call(this)}function readableAddChunk(et,eo,ei,ea,eu){eh("readableAddChunk",eo);var ed,ep=et._readableState;if(null===eo)ep.reading=!1,onEofChunk(et,ep);else if(eu||(ed=chunkInvalid(ep,eo)),ed)ek(et,ed);else if(ep.objectMode||eo&&eo.length>0){if("string"==typeof eo||ep.objectMode||Object.getPrototypeOf(eo)===ey.prototype||(eo=_uint8ArrayToBuffer(eo)),ea)ep.endEmitted?ek(et,new eP):addChunk(et,ep,eo,!0);else if(ep.ended)ek(et,new eT);else{if(ep.destroyed)return!1;ep.reading=!1,ep.decoder&&!ei?(eo=ep.decoder.write(eo),ep.objectMode||0!==eo.length?addChunk(et,ep,eo,!1):maybeReadMore(et,ep)):addChunk(et,ep,eo,!1)}}else ea||(ep.reading=!1,maybeReadMore(et,ep));return!ep.ended&&(ep.length<ep.highWaterMark||0===ep.length)}function addChunk(et,eo,ei,ea){eo.flowing&&0===eo.length&&!eo.sync?(eo.awaitDrain=0,et.emit("data",ei)):(eo.length+=eo.objectMode?1:ei.length,ea?eo.buffer.unshift(ei):eo.buffer.push(ei),eo.needReadable&&emitReadable(et)),maybeReadMore(et,eo)}function chunkInvalid(et,eo){var ei;return _isUint8Array(eo)||"string"==typeof eo||void 0===eo||et.objectMode||(ei=new eR("chunk",["string","Buffer","Uint8Array"],eo)),ei}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(et){this._readableState&&(this._readableState.destroyed=et)}}),Readable.prototype.destroy=ew.destroy,Readable.prototype._undestroy=ew.undestroy,Readable.prototype._destroy=function(et,eo){eo(et)},Readable.prototype.push=function(et,eo){var ei,ea=this._readableState;return ea.objectMode?ei=!0:"string"==typeof et&&((eo=eo||ea.defaultEncoding)!==ea.encoding&&(et=ey.from(et,eo),eo=""),ei=!0),readableAddChunk(this,et,eo,!1,ei)},Readable.prototype.unshift=function(et){return readableAddChunk(this,et,null,!0,!1)},Readable.prototype.isPaused=function(){return!1===this._readableState.flowing},Readable.prototype.setEncoding=function(et){ep||(ep=ea(704).s);var eo=new ep(et);this._readableState.decoder=eo,this._readableState.encoding=this._readableState.decoder.encoding;for(var ei=this._readableState.buffer.head,eu="";null!==ei;)eu+=eo.write(ei.data),ei=ei.next;return this._readableState.buffer.clear(),""!==eu&&this._readableState.buffer.push(eu),this._readableState.length=eu.length,this};var eM=1073741824;function computeNewHighWaterMark(et){return et>=eM?et=eM:(et--,et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et++),et}function howMuchToRead(et,eo){return et<=0||0===eo.length&&eo.ended?0:eo.objectMode?1:et!=et?eo.flowing&&eo.length?eo.buffer.head.data.length:eo.length:(et>eo.highWaterMark&&(eo.highWaterMark=computeNewHighWaterMark(et)),et<=eo.length)?et:eo.ended?eo.length:(eo.needReadable=!0,0)}function onEofChunk(et,eo){if(eh("onEofChunk"),!eo.ended){if(eo.decoder){var ei=eo.decoder.end();ei&&ei.length&&(eo.buffer.push(ei),eo.length+=eo.objectMode?1:ei.length)}eo.ended=!0,eo.sync?emitReadable(et):(eo.needReadable=!1,eo.emittedReadable||(eo.emittedReadable=!0,emitReadable_(et)))}}function emitReadable(et){var eo=et._readableState;eh("emitReadable",eo.needReadable,eo.emittedReadable),eo.needReadable=!1,eo.emittedReadable||(eh("emitReadable",eo.flowing),eo.emittedReadable=!0,eu.nextTick(emitReadable_,et))}function emitReadable_(et){var eo=et._readableState;eh("emitReadable_",eo.destroyed,eo.length,eo.ended),!eo.destroyed&&(eo.length||eo.ended)&&(et.emit("readable"),eo.emittedReadable=!1),eo.needReadable=!eo.flowing&&!eo.ended&&eo.length<=eo.highWaterMark,flow(et)}function maybeReadMore(et,eo){eo.readingMore||(eo.readingMore=!0,eu.nextTick(maybeReadMore_,et,eo))}function maybeReadMore_(et,eo){for(;!eo.reading&&!eo.ended&&(eo.length<eo.highWaterMark||eo.flowing&&0===eo.length);){var ei=eo.length;if(eh("maybeReadMore read 0"),et.read(0),ei===eo.length)break}eo.readingMore=!1}function pipeOnDrain(et){return function(){var eo=et._readableState;eh("pipeOnDrain",eo.awaitDrain),eo.awaitDrain&&eo.awaitDrain--,0===eo.awaitDrain&&a(et,"data")&&(eo.flowing=!0,flow(et))}}function updateReadableListening(et){var eo=et._readableState;eo.readableListening=et.listenerCount("readable")>0,eo.resumeScheduled&&!eo.paused?eo.flowing=!0:et.listenerCount("data")>0&&et.resume()}function nReadingNextTick(et){eh("readable nexttick read 0"),et.read(0)}function resume(et,eo){eo.resumeScheduled||(eo.resumeScheduled=!0,eu.nextTick(resume_,et,eo))}function resume_(et,eo){eh("resume",eo.reading),eo.reading||et.read(0),eo.resumeScheduled=!1,et.emit("resume"),flow(et),eo.flowing&&!eo.reading&&et.read(0)}function flow(et){var eo=et._readableState;for(eh("flow",eo.flowing);eo.flowing&&null!==et.read(););}function fromList(et,eo){var ei;return 0===eo.length?null:(eo.objectMode?ei=eo.buffer.shift():!et||et>=eo.length?(ei=eo.decoder?eo.buffer.join(""):1===eo.buffer.length?eo.buffer.first():eo.buffer.concat(eo.length),eo.buffer.clear()):ei=eo.buffer.consume(et,eo.decoder),ei)}function endReadable(et){var eo=et._readableState;eh("endReadable",eo.endEmitted),eo.endEmitted||(eo.ended=!0,eu.nextTick(endReadableNT,eo,et))}function endReadableNT(et,eo){if(eh("endReadableNT",et.endEmitted,et.length),!et.endEmitted&&0===et.length&&(et.endEmitted=!0,eo.readable=!1,eo.emit("end"),et.autoDestroy)){var ei=eo._writableState;(!ei||ei.autoDestroy&&ei.finished)&&eo.destroy()}}function indexOf(et,eo){for(var ei=0,ea=et.length;ei<ea;ei++)if(et[ei]===eo)return ei;return -1}Readable.prototype.read=function(et){eh("read",et),et=parseInt(et,10);var eo,ei=this._readableState,ea=et;if(0!==et&&(ei.emittedReadable=!1),0===et&&ei.needReadable&&((0!==ei.highWaterMark?ei.length>=ei.highWaterMark:ei.length>0)||ei.ended))return eh("read: emitReadable",ei.length,ei.ended),0===ei.length&&ei.ended?endReadable(this):emitReadable(this),null;if(0===(et=howMuchToRead(et,ei))&&ei.ended)return 0===ei.length&&endReadable(this),null;var eu=ei.needReadable;return eh("need readable",eu),(0===ei.length||ei.length-et<ei.highWaterMark)&&eh("length less than watermark",eu=!0),ei.ended||ei.reading?eh("reading or ended",eu=!1):eu&&(eh("do read"),ei.reading=!0,ei.sync=!0,0===ei.length&&(ei.needReadable=!0),this._read(ei.highWaterMark),ei.sync=!1,ei.reading||(et=howMuchToRead(ea,ei))),null===(eo=et>0?fromList(et,ei):null)?(ei.needReadable=ei.length<=ei.highWaterMark,et=0):(ei.length-=et,ei.awaitDrain=0),0===ei.length&&(ei.ended||(ei.needReadable=!0),ea!==et&&ei.ended&&endReadable(this)),null!==eo&&this.emit("data",eo),eo},Readable.prototype._read=function(et){ek(this,new eE("_read()"))},Readable.prototype.pipe=function(et,eo){var ei=this,ea=this._readableState;switch(ea.pipesCount){case 0:ea.pipes=et;break;case 1:ea.pipes=[ea.pipes,et];break;default:ea.pipes.push(et)}ea.pipesCount+=1,eh("pipe count=%d opts=%j",ea.pipesCount,eo);var ed=eo&&!1===eo.end||et===eu.stdout||et===eu.stderr?unpipe:onend;function onunpipe(et,eo){eh("onunpipe"),et===ei&&eo&&!1===eo.hasUnpiped&&(eo.hasUnpiped=!0,cleanup())}function onend(){eh("onend"),et.end()}ea.endEmitted?eu.nextTick(ed):ei.once("end",ed),et.on("unpipe",onunpipe);var ep=pipeOnDrain(ei);et.on("drain",ep);var ef=!1;function cleanup(){eh("cleanup"),et.removeListener("close",onclose),et.removeListener("finish",onfinish),et.removeListener("drain",ep),et.removeListener("error",onerror),et.removeListener("unpipe",onunpipe),ei.removeListener("end",onend),ei.removeListener("end",unpipe),ei.removeListener("data",ondata),ef=!0,ea.awaitDrain&&(!et._writableState||et._writableState.needDrain)&&ep()}function ondata(eo){eh("ondata");var eu=et.write(eo);eh("dest.write",eu),!1===eu&&((1===ea.pipesCount&&ea.pipes===et||ea.pipesCount>1&&-1!==indexOf(ea.pipes,et))&&!ef&&(eh("false write response, pause",ea.awaitDrain),ea.awaitDrain++),ei.pause())}function onerror(eo){eh("onerror",eo),unpipe(),et.removeListener("error",onerror),0===a(et,"error")&&ek(et,eo)}function onclose(){et.removeListener("finish",onfinish),unpipe()}function onfinish(){eh("onfinish"),et.removeListener("close",onclose),unpipe()}function unpipe(){eh("unpipe"),ei.unpipe(et)}return ei.on("data",ondata),prependListener(et,"error",onerror),et.once("close",onclose),et.once("finish",onfinish),et.emit("pipe",ei),ea.flowing||(eh("pipe resume"),ei.resume()),et},Readable.prototype.unpipe=function(et){var eo=this._readableState,ei={hasUnpiped:!1};if(0===eo.pipesCount)return this;if(1===eo.pipesCount)return et&&et!==eo.pipes||(et||(et=eo.pipes),eo.pipes=null,eo.pipesCount=0,eo.flowing=!1,et&&et.emit("unpipe",this,ei)),this;if(!et){var ea=eo.pipes,eu=eo.pipesCount;eo.pipes=null,eo.pipesCount=0,eo.flowing=!1;for(var ed=0;ed<eu;ed++)ea[ed].emit("unpipe",this,{hasUnpiped:!1});return this}var eh=indexOf(eo.pipes,et);return -1===eh||(eo.pipes.splice(eh,1),eo.pipesCount-=1,1===eo.pipesCount&&(eo.pipes=eo.pipes[0]),et.emit("unpipe",this,ei)),this},Readable.prototype.on=function(et,eo){var ei=eg.prototype.on.call(this,et,eo),ea=this._readableState;return"data"===et?(ea.readableListening=this.listenerCount("readable")>0,!1!==ea.flowing&&this.resume()):"readable"!==et||ea.endEmitted||ea.readableListening||(ea.readableListening=ea.needReadable=!0,ea.flowing=!1,ea.emittedReadable=!1,eh("on readable",ea.length,ea.reading),ea.length?emitReadable(this):ea.reading||eu.nextTick(nReadingNextTick,this)),ei},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(et,eo){var ei=eg.prototype.removeListener.call(this,et,eo);return"readable"===et&&eu.nextTick(updateReadableListening,this),ei},Readable.prototype.removeAllListeners=function(et){var eo=eg.prototype.removeAllListeners.apply(this,arguments);return("readable"===et||void 0===et)&&eu.nextTick(updateReadableListening,this),eo},Readable.prototype.resume=function(){var et=this._readableState;return et.flowing||(eh("resume"),et.flowing=!et.readableListening,resume(this,et)),et.paused=!1,this},Readable.prototype.pause=function(){return eh("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(eh("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(et){var eo=this,ei=this._readableState,ea=!1;for(var eu in et.on("end",function(){if(eh("wrapped end"),ei.decoder&&!ei.ended){var et=ei.decoder.end();et&&et.length&&eo.push(et)}eo.push(null)}),et.on("data",function(eu){eh("wrapped data"),ei.decoder&&(eu=ei.decoder.write(eu)),(!ei.objectMode||null!=eu)&&(ei.objectMode||eu&&eu.length)&&(eo.push(eu)||(ea=!0,et.pause()))}),et)void 0===this[eu]&&"function"==typeof et[eu]&&(this[eu]=function(eo){return function(){return et[eo].apply(et,arguments)}}(eu));for(var ed=0;ed<eO.length;ed++)et.on(eO[ed],this.emit.bind(this,eO[ed]));return this._read=function(eo){eh("wrapped _read",eo),ea&&(ea=!1,et.resume())},this},"function"==typeof Symbol&&(Readable.prototype[Symbol.asyncIterator]=function(){return void 0===ef&&(ef=ea(871)),ef(this)}),Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(et){this._readableState&&(this._readableState.flowing=et)}}),Readable._fromList=fromList,Object.defineProperty(Readable.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(Readable.from=function(et,eo){return void 0===em&&(em=ea(727)),em(Readable,et,eo)})},170:function(et,eo,ei){"use strict";et.exports=Transform;var ea=ei(646).q,eu=ea.ERR_METHOD_NOT_IMPLEMENTED,ed=ea.ERR_MULTIPLE_CALLBACK,eh=ea.ERR_TRANSFORM_ALREADY_TRANSFORMING,ep=ea.ERR_TRANSFORM_WITH_LENGTH_0,ef=ei(403);function afterTransform(et,eo){var ei=this._transformState;ei.transforming=!1;var ea=ei.writecb;if(null===ea)return this.emit("error",new ed);ei.writechunk=null,ei.writecb=null,null!=eo&&this.push(eo),ea(et);var eu=this._readableState;eu.reading=!1,(eu.needReadable||eu.length<eu.highWaterMark)&&this._read(eu.highWaterMark)}function Transform(et){if(!(this instanceof Transform))return new Transform(et);ef.call(this,et),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,et&&("function"==typeof et.transform&&(this._transform=et.transform),"function"==typeof et.flush&&(this._flush=et.flush)),this.on("prefinish",prefinish)}function prefinish(){var et=this;"function"!=typeof this._flush||this._readableState.destroyed?done(this,null,null):this._flush(function(eo,ei){done(et,eo,ei)})}function done(et,eo,ei){if(eo)return et.emit("error",eo);if(null!=ei&&et.push(ei),et._writableState.length)throw new ep;if(et._transformState.transforming)throw new eh;return et.push(null)}ei(782)(Transform,ef),Transform.prototype.push=function(et,eo){return this._transformState.needTransform=!1,ef.prototype.push.call(this,et,eo)},Transform.prototype._transform=function(et,eo,ei){ei(new eu("_transform()"))},Transform.prototype._write=function(et,eo,ei){var ea=this._transformState;if(ea.writecb=ei,ea.writechunk=et,ea.writeencoding=eo,!ea.transforming){var eu=this._readableState;(ea.needTransform||eu.needReadable||eu.length<eu.highWaterMark)&&this._read(eu.highWaterMark)}},Transform.prototype._read=function(et){var eo=this._transformState;null===eo.writechunk||eo.transforming?eo.needTransform=!0:(eo.transforming=!0,this._transform(eo.writechunk,eo.writeencoding,eo.afterTransform))},Transform.prototype._destroy=function(et,eo){ef.prototype._destroy.call(this,et,function(et){eo(et)})}},337:function(et,eo,ea){"use strict";function CorkedRequest(et){var eo=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(eo,et)}}et.exports=Writable,Writable.WritableState=WritableState;var ed,eh,ep={deprecate:ea(769)},ef=ea(678),em=ea(300).Buffer,eg=ei.g.Uint8Array||function(){};function _uint8ArrayToBuffer(et){return em.from(et)}function _isUint8Array(et){return em.isBuffer(et)||et instanceof eg}var ey=ea(25),eC=ea(776).getHighWaterMark,eS=ea(646).q,e_=eS.ERR_INVALID_ARG_TYPE,ew=eS.ERR_METHOD_NOT_IMPLEMENTED,eA=eS.ERR_MULTIPLE_CALLBACK,eI=eS.ERR_STREAM_CANNOT_PIPE,eR=eS.ERR_STREAM_DESTROYED,eT=eS.ERR_STREAM_NULL_VALUES,eE=eS.ERR_STREAM_WRITE_AFTER_END,eP=eS.ERR_UNKNOWN_ENCODING,ek=ey.errorOrDestroy;function nop(){}function WritableState(et,eo,ei){ed=ed||ea(403),et=et||{},"boolean"!=typeof ei&&(ei=eo instanceof ed),this.objectMode=!!et.objectMode,ei&&(this.objectMode=this.objectMode||!!et.writableObjectMode),this.highWaterMark=eC(this,et,"writableHighWaterMark",ei),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var eu=!1===et.decodeStrings;this.decodeStrings=!eu,this.defaultEncoding=et.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(et){onwrite(eo,et)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==et.emitClose,this.autoDestroy=!!et.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(et){var eo=this instanceof(ed=ed||ea(403));if(!eo&&!eh.call(Writable,this))return new Writable(et);this._writableState=new WritableState(et,this,eo),this.writable=!0,et&&("function"==typeof et.write&&(this._write=et.write),"function"==typeof et.writev&&(this._writev=et.writev),"function"==typeof et.destroy&&(this._destroy=et.destroy),"function"==typeof et.final&&(this._final=et.final)),ef.call(this)}function writeAfterEnd(et,eo){var ei=new eE;ek(et,ei),eu.nextTick(eo,ei)}function validChunk(et,eo,ei,ea){var ed;return null===ei?ed=new eT:"string"==typeof ei||eo.objectMode||(ed=new e_("chunk",["string","Buffer"],ei)),!ed||(ek(et,ed),eu.nextTick(ea,ed),!1)}function decodeChunk(et,eo,ei){return et.objectMode||!1===et.decodeStrings||"string"!=typeof eo||(eo=em.from(eo,ei)),eo}function writeOrBuffer(et,eo,ei,ea,eu,ed){if(!ei){var eh=decodeChunk(eo,ea,eu);ea!==eh&&(ei=!0,eu="buffer",ea=eh)}var ep=eo.objectMode?1:ea.length;eo.length+=ep;var ef=eo.length<eo.highWaterMark;if(ef||(eo.needDrain=!0),eo.writing||eo.corked){var em=eo.lastBufferedRequest;eo.lastBufferedRequest={chunk:ea,encoding:eu,isBuf:ei,callback:ed,next:null},em?em.next=eo.lastBufferedRequest:eo.bufferedRequest=eo.lastBufferedRequest,eo.bufferedRequestCount+=1}else doWrite(et,eo,!1,ep,ea,eu,ed);return ef}function doWrite(et,eo,ei,ea,eu,ed,eh){eo.writelen=ea,eo.writecb=eh,eo.writing=!0,eo.sync=!0,eo.destroyed?eo.onwrite(new eR("write")):ei?et._writev(eu,eo.onwrite):et._write(eu,ed,eo.onwrite),eo.sync=!1}function onwriteError(et,eo,ei,ea,ed){--eo.pendingcb,ei?(eu.nextTick(ed,ea),eu.nextTick(finishMaybe,et,eo),et._writableState.errorEmitted=!0,ek(et,ea)):(ed(ea),et._writableState.errorEmitted=!0,ek(et,ea),finishMaybe(et,eo))}function onwriteStateUpdate(et){et.writing=!1,et.writecb=null,et.length-=et.writelen,et.writelen=0}function onwrite(et,eo){var ei=et._writableState,ea=ei.sync,ed=ei.writecb;if("function"!=typeof ed)throw new eA;if(onwriteStateUpdate(ei),eo)onwriteError(et,ei,ea,eo,ed);else{var eh=needFinish(ei)||et.destroyed;eh||ei.corked||ei.bufferProcessing||!ei.bufferedRequest||clearBuffer(et,ei),ea?eu.nextTick(afterWrite,et,ei,eh,ed):afterWrite(et,ei,eh,ed)}}function afterWrite(et,eo,ei,ea){ei||onwriteDrain(et,eo),eo.pendingcb--,ea(),finishMaybe(et,eo)}function onwriteDrain(et,eo){0===eo.length&&eo.needDrain&&(eo.needDrain=!1,et.emit("drain"))}function clearBuffer(et,eo){eo.bufferProcessing=!0;var ei=eo.bufferedRequest;if(et._writev&&ei&&ei.next){var ea=Array(eo.bufferedRequestCount),eu=eo.corkedRequestsFree;eu.entry=ei;for(var ed=0,eh=!0;ei;)ea[ed]=ei,ei.isBuf||(eh=!1),ei=ei.next,ed+=1;ea.allBuffers=eh,doWrite(et,eo,!0,eo.length,ea,"",eu.finish),eo.pendingcb++,eo.lastBufferedRequest=null,eu.next?(eo.corkedRequestsFree=eu.next,eu.next=null):eo.corkedRequestsFree=new CorkedRequest(eo),eo.bufferedRequestCount=0}else{for(;ei;){var ep=ei.chunk,ef=ei.encoding,em=ei.callback,eg=eo.objectMode?1:ep.length;if(doWrite(et,eo,!1,eg,ep,ef,em),ei=ei.next,eo.bufferedRequestCount--,eo.writing)break}null===ei&&(eo.lastBufferedRequest=null)}eo.bufferedRequest=ei,eo.bufferProcessing=!1}function needFinish(et){return et.ending&&0===et.length&&null===et.bufferedRequest&&!et.finished&&!et.writing}function callFinal(et,eo){et._final(function(ei){eo.pendingcb--,ei&&ek(et,ei),eo.prefinished=!0,et.emit("prefinish"),finishMaybe(et,eo)})}function prefinish(et,eo){eo.prefinished||eo.finalCalled||("function"!=typeof et._final||eo.destroyed?(eo.prefinished=!0,et.emit("prefinish")):(eo.pendingcb++,eo.finalCalled=!0,eu.nextTick(callFinal,et,eo)))}function finishMaybe(et,eo){var ei=needFinish(eo);if(ei&&(prefinish(et,eo),0===eo.pendingcb&&(eo.finished=!0,et.emit("finish"),eo.autoDestroy))){var ea=et._readableState;(!ea||ea.autoDestroy&&ea.endEmitted)&&et.destroy()}return ei}function endWritable(et,eo,ei){eo.ending=!0,finishMaybe(et,eo),ei&&(eo.finished?eu.nextTick(ei):et.once("finish",ei)),eo.ended=!0,et.writable=!1}function onCorkedFinish(et,eo,ei){var ea=et.entry;for(et.entry=null;ea;){var eu=ea.callback;eo.pendingcb--,eu(ei),ea=ea.next}eo.corkedRequestsFree.next=et}ea(782)(Writable,ef),WritableState.prototype.getBuffer=function(){for(var et=this.bufferedRequest,eo=[];et;)eo.push(et),et=et.next;return eo},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:ep.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(et){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(eh=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(et){return!!eh.call(this,et)||this===Writable&&et&&et._writableState instanceof WritableState}})):eh=function(et){return et instanceof this},Writable.prototype.pipe=function(){ek(this,new eI)},Writable.prototype.write=function(et,eo,ei){var ea=this._writableState,eu=!1,ed=!ea.objectMode&&_isUint8Array(et);return ed&&!em.isBuffer(et)&&(et=_uint8ArrayToBuffer(et)),"function"==typeof eo&&(ei=eo,eo=null),ed?eo="buffer":eo||(eo=ea.defaultEncoding),"function"!=typeof ei&&(ei=nop),ea.ending?writeAfterEnd(this,ei):(ed||validChunk(this,ea,et,ei))&&(ea.pendingcb++,eu=writeOrBuffer(this,ea,ed,et,eo,ei)),eu},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){var et=this._writableState;!et.corked||(et.corked--,et.writing||et.corked||et.bufferProcessing||!et.bufferedRequest||clearBuffer(this,et))},Writable.prototype.setDefaultEncoding=function(et){if("string"==typeof et&&(et=et.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((et+"").toLowerCase())>-1))throw new eP(et);return this._writableState.defaultEncoding=et,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(et,eo,ei){ei(new ew("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(et,eo,ei){var ea=this._writableState;return"function"==typeof et?(ei=et,et=null,eo=null):"function"==typeof eo&&(ei=eo,eo=null),null!=et&&this.write(et,eo),ea.corked&&(ea.corked=1,this.uncork()),ea.ending||endWritable(this,ea,ei),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(et){this._writableState&&(this._writableState.destroyed=et)}}),Writable.prototype.destroy=ey.destroy,Writable.prototype._undestroy=ey.undestroy,Writable.prototype._destroy=function(et,eo){eo(et)}},871:function(et,eo,ei){"use strict";function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}var ea,ed=ei(698),eh=Symbol("lastResolve"),ep=Symbol("lastReject"),ef=Symbol("error"),em=Symbol("ended"),eg=Symbol("lastPromise"),ey=Symbol("handlePromise"),eC=Symbol("stream");function createIterResult(et,eo){return{value:et,done:eo}}function readAndResolve(et){var eo=et[eh];if(null!==eo){var ei=et[eC].read();null!==ei&&(et[eg]=null,et[eh]=null,et[ep]=null,eo(createIterResult(ei,!1)))}}function onReadable(et){eu.nextTick(readAndResolve,et)}function wrapForNext(et,eo){return function(ei,ea){et.then(function(){if(eo[em]){ei(createIterResult(void 0,!0));return}eo[ey](ei,ea)},ea)}}var eS=Object.getPrototypeOf(function(){}),e_=Object.setPrototypeOf((_defineProperty(ea={get stream(){return this[eC]},next:function(){var et,eo=this,ei=this[ef];if(null!==ei)return Promise.reject(ei);if(this[em])return Promise.resolve(createIterResult(void 0,!0));if(this[eC].destroyed)return new Promise(function(et,ei){eu.nextTick(function(){eo[ef]?ei(eo[ef]):et(createIterResult(void 0,!0))})});var ea=this[eg];if(ea)et=new Promise(wrapForNext(ea,this));else{var ed=this[eC].read();if(null!==ed)return Promise.resolve(createIterResult(ed,!1));et=new Promise(this[ey])}return this[eg]=et,et}},Symbol.asyncIterator,function(){return this}),_defineProperty(ea,"return",function(){var et=this;return new Promise(function(eo,ei){et[eC].destroy(null,function(et){if(et){ei(et);return}eo(createIterResult(void 0,!0))})})}),ea),eS),p=function(et){var eo,ei=Object.create(e_,(_defineProperty(eo={},eC,{value:et,writable:!0}),_defineProperty(eo,eh,{value:null,writable:!0}),_defineProperty(eo,ep,{value:null,writable:!0}),_defineProperty(eo,ef,{value:null,writable:!0}),_defineProperty(eo,em,{value:et._readableState.endEmitted,writable:!0}),_defineProperty(eo,ey,{value:function(et,eo){var ea=ei[eC].read();ea?(ei[eg]=null,ei[eh]=null,ei[ep]=null,et(createIterResult(ea,!1))):(ei[eh]=et,ei[ep]=eo)},writable:!0}),eo));return ei[eg]=null,ed(et,function(et){if(et&&"ERR_STREAM_PREMATURE_CLOSE"!==et.code){var eo=ei[ep];null!==eo&&(ei[eg]=null,ei[eh]=null,ei[ep]=null,eo(et)),ei[ef]=et;return}var ea=ei[eh];null!==ea&&(ei[eg]=null,ei[eh]=null,ei[ep]=null,ea(createIterResult(void 0,!0))),ei[em]=!0}),et.on("readable",onReadable.bind(null,ei)),ei};et.exports=p},379:function(et,eo,ei){"use strict";function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}function _classCallCheck(et,eo){if(!(et instanceof eo))throw TypeError("Cannot call a class as a function")}function _defineProperties(et,eo){for(var ei=0;ei<eo.length;ei++){var ea=eo[ei];ea.enumerable=ea.enumerable||!1,ea.configurable=!0,"value"in ea&&(ea.writable=!0),Object.defineProperty(et,ea.key,ea)}}function _createClass(et,eo,ei){return eo&&_defineProperties(et.prototype,eo),ei&&_defineProperties(et,ei),et}var ea=ei(300).Buffer,eu=ei(837).inspect,ed=eu&&eu.custom||"inspect";function copyBuffer(et,eo,ei){ea.prototype.copy.call(et,eo,ei)}et.exports=function(){function BufferList(){_classCallCheck(this,BufferList),this.head=null,this.tail=null,this.length=0}return _createClass(BufferList,[{key:"push",value:function(et){var eo={data:et,next:null};this.length>0?this.tail.next=eo:this.head=eo,this.tail=eo,++this.length}},{key:"unshift",value:function(et){var eo={data:et,next:this.head};0===this.length&&(this.tail=eo),this.head=eo,++this.length}},{key:"shift",value:function(){if(0!==this.length){var et=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,et}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(et){if(0===this.length)return"";for(var eo=this.head,ei=""+eo.data;eo=eo.next;)ei+=et+eo.data;return ei}},{key:"concat",value:function(et){if(0===this.length)return ea.alloc(0);for(var eo=ea.allocUnsafe(et>>>0),ei=this.head,eu=0;ei;)copyBuffer(ei.data,eo,eu),eu+=ei.data.length,ei=ei.next;return eo}},{key:"consume",value:function(et,eo){var ei;return et<this.head.data.length?(ei=this.head.data.slice(0,et),this.head.data=this.head.data.slice(et)):ei=et===this.head.data.length?this.shift():eo?this._getString(et):this._getBuffer(et),ei}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(et){var eo=this.head,ei=1,ea=eo.data;for(et-=ea.length;eo=eo.next;){var eu=eo.data,ed=et>eu.length?eu.length:et;if(ed===eu.length?ea+=eu:ea+=eu.slice(0,et),0==(et-=ed)){ed===eu.length?(++ei,eo.next?this.head=eo.next:this.head=this.tail=null):(this.head=eo,eo.data=eu.slice(ed));break}++ei}return this.length-=ei,ea}},{key:"_getBuffer",value:function(et){var eo=ea.allocUnsafe(et),ei=this.head,eu=1;for(ei.data.copy(eo),et-=ei.data.length;ei=ei.next;){var ed=ei.data,eh=et>ed.length?ed.length:et;if(ed.copy(eo,eo.length-et,0,eh),0==(et-=eh)){eh===ed.length?(++eu,ei.next?this.head=ei.next:this.head=this.tail=null):(this.head=ei,ei.data=ed.slice(eh));break}++eu}return this.length-=eu,eo}},{key:ed,value:function(et,eo){return eu(this,_objectSpread({},eo,{depth:0,customInspect:!1}))}}]),BufferList}()},25:function(et){"use strict";function destroy(et,eo){var ei=this,ea=this._readableState&&this._readableState.destroyed,ed=this._writableState&&this._writableState.destroyed;return ea||ed?eo?eo(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,eu.nextTick(emitErrorNT,this,et)):eu.nextTick(emitErrorNT,this,et)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(et){!eo&&et?ei._writableState?ei._writableState.errorEmitted?eu.nextTick(emitCloseNT,ei):(ei._writableState.errorEmitted=!0,eu.nextTick(emitErrorAndCloseNT,ei,et)):eu.nextTick(emitErrorAndCloseNT,ei,et):eo?(eu.nextTick(emitCloseNT,ei),eo(et)):eu.nextTick(emitCloseNT,ei)})),this}function emitErrorAndCloseNT(et,eo){emitErrorNT(et,eo),emitCloseNT(et)}function emitCloseNT(et){(!et._writableState||et._writableState.emitClose)&&(!et._readableState||et._readableState.emitClose)&&et.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,eo){et.emit("error",eo)}function errorOrDestroy(et,eo){var ei=et._readableState,ea=et._writableState;ei&&ei.autoDestroy||ea&&ea.autoDestroy?et.destroy(eo):et.emit("error",eo)}et.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},698:function(et,eo,ei){"use strict";var ea=ei(646).q.ERR_STREAM_PREMATURE_CLOSE;function once(et){var eo=!1;return function(){if(!eo){eo=!0;for(var ei=arguments.length,ea=Array(ei),eu=0;eu<ei;eu++)ea[eu]=arguments[eu];et.apply(this,ea)}}}function noop(){}function isRequest(et){return et.setHeader&&"function"==typeof et.abort}function eos(et,eo,ei){if("function"==typeof eo)return eos(et,null,eo);eo||(eo={}),ei=once(ei||noop);var eu=eo.readable||!1!==eo.readable&&et.readable,ed=eo.writable||!1!==eo.writable&&et.writable,o=function(){et.writable||f()},eh=et._writableState&&et._writableState.finished,f=function(){ed=!1,eh=!0,eu||ei.call(et)},ep=et._readableState&&et._readableState.endEmitted,u=function(){eu=!1,ep=!0,ed||ei.call(et)},d=function(eo){ei.call(et,eo)},c=function(){var eo;return eu&&!ep?(et._readableState&&et._readableState.ended||(eo=new ea),ei.call(et,eo)):ed&&!eh?(et._writableState&&et._writableState.ended||(eo=new ea),ei.call(et,eo)):void 0},h=function(){et.req.on("finish",f)};return isRequest(et)?(et.on("complete",f),et.on("abort",c),et.req?h():et.on("request",h)):ed&&!et._writableState&&(et.on("end",o),et.on("close",o)),et.on("end",u),et.on("finish",f),!1!==eo.error&&et.on("error",d),et.on("close",c),function(){et.removeListener("complete",f),et.removeListener("abort",c),et.removeListener("request",h),et.req&&et.req.removeListener("finish",f),et.removeListener("end",o),et.removeListener("close",o),et.removeListener("finish",f),et.removeListener("end",u),et.removeListener("error",d),et.removeListener("close",c)}}et.exports=eos},727:function(et,eo,ei){"use strict";function asyncGeneratorStep(et,eo,ei,ea,eu,ed,eh){try{var ep=et[ed](eh),ef=ep.value}catch(et){ei(et);return}ep.done?eo(ef):Promise.resolve(ef).then(ea,eu)}function _asyncToGenerator(et){return function(){var eo=this,ei=arguments;return new Promise(function(ea,eu){var ed=et.apply(eo,ei);function _next(et){asyncGeneratorStep(ed,ea,eu,_next,_throw,"next",et)}function _throw(et){asyncGeneratorStep(ed,ea,eu,_next,_throw,"throw",et)}_next(void 0)})}}function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}var ea=ei(646).q.ERR_INVALID_ARG_TYPE;function from(et,eo,ei){if(eo&&"function"==typeof eo.next)eu=eo;else if(eo&&eo[Symbol.asyncIterator])eu=eo[Symbol.asyncIterator]();else if(eo&&eo[Symbol.iterator])eu=eo[Symbol.iterator]();else throw new ea("iterable",["Iterable"],eo);var eu,ed=new et(_objectSpread({objectMode:!0},ei)),eh=!1;function next(){return _next2.apply(this,arguments)}function _next2(){return(_next2=_asyncToGenerator(function*(){try{var et=yield eu.next(),eo=et.value;et.done?ed.push(null):ed.push((yield eo))?next():eh=!1}catch(et){ed.destroy(et)}})).apply(this,arguments)}return ed._read=function(){eh||(eh=!0,next())},ed}et.exports=from},442:function(et,eo,ei){"use strict";function once(et){var eo=!1;return function(){eo||(eo=!0,et.apply(void 0,arguments))}}var ea,eu=ei(646).q,ed=eu.ERR_MISSING_ARGS,eh=eu.ERR_STREAM_DESTROYED;function noop(et){if(et)throw et}function isRequest(et){return et.setHeader&&"function"==typeof et.abort}function destroyer(et,eo,eu,ed){ed=once(ed);var ep=!1;et.on("close",function(){ep=!0}),void 0===ea&&(ea=ei(698)),ea(et,{readable:eo,writable:eu},function(et){if(et)return ed(et);ep=!0,ed()});var ef=!1;return function(eo){if(!ep&&!ef){if(ef=!0,isRequest(et))return et.abort();if("function"==typeof et.destroy)return et.destroy();ed(eo||new eh("pipe"))}}}function call(et){et()}function pipe(et,eo){return et.pipe(eo)}function popCallback(et){return et.length&&"function"==typeof et[et.length-1]?et.pop():noop}function pipeline(){for(var et,eo=arguments.length,ei=Array(eo),ea=0;ea<eo;ea++)ei[ea]=arguments[ea];var eu=popCallback(ei);if(Array.isArray(ei[0])&&(ei=ei[0]),ei.length<2)throw new ed("streams");var eh=ei.map(function(eo,ea){var ed=ea<ei.length-1;return destroyer(eo,ed,ea>0,function(eo){et||(et=eo),eo&&eh.forEach(call),ed||(eh.forEach(call),eu(et))})});return ei.reduce(pipe)}et.exports=pipeline},776:function(et,eo,ei){"use strict";var ea=ei(646).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,eo,ei){return null!=et.highWaterMark?et.highWaterMark:eo?et[ei]:null}function getHighWaterMark(et,eo,ei,eu){var ed=highWaterMarkFrom(eo,eu,ei);if(null!=ed){if(!(isFinite(ed)&&Math.floor(ed)===ed)||ed<0){var eh=eu?ei:"highWaterMark";throw new ea(eh,ed)}return Math.floor(ed)}return et.objectMode?16:16384}et.exports={getHighWaterMark:getHighWaterMark}},678:function(et,eo,ei){et.exports=ei(781)},55:function(et,eo,ei){var ea=ei(300),eu=ea.Buffer;function copyProps(et,eo){for(var ei in et)eo[ei]=et[ei]}function SafeBuffer(et,eo,ei){return eu(et,eo,ei)}eu.from&&eu.alloc&&eu.allocUnsafe&&eu.allocUnsafeSlow?et.exports=ea:(copyProps(ea,eo),eo.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(eu.prototype),copyProps(eu,SafeBuffer),SafeBuffer.from=function(et,eo,ei){if("number"==typeof et)throw TypeError("Argument must not be a number");return eu(et,eo,ei)},SafeBuffer.alloc=function(et,eo,ei){if("number"!=typeof et)throw TypeError("Argument must be a number");var ea=eu(et);return void 0!==eo?"string"==typeof ei?ea.fill(eo,ei):ea.fill(eo):ea.fill(0),ea},SafeBuffer.allocUnsafe=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return eu(et)},SafeBuffer.allocUnsafeSlow=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return ea.SlowBuffer(et)}},173:function(et,eo,ei){et.exports=Stream;var ea=ei(361).EventEmitter;function Stream(){ea.call(this)}ei(782)(Stream,ea),Stream.Readable=ei(709),Stream.Writable=ei(337),Stream.Duplex=ei(403),Stream.Transform=ei(170),Stream.PassThrough=ei(889),Stream.finished=ei(698),Stream.pipeline=ei(442),Stream.Stream=Stream,Stream.prototype.pipe=function(et,eo){var ei=this;function ondata(eo){et.writable&&!1===et.write(eo)&&ei.pause&&ei.pause()}function ondrain(){ei.readable&&ei.resume&&ei.resume()}ei.on("data",ondata),et.on("drain",ondrain),et._isStdio||eo&&!1===eo.end||(ei.on("end",onend),ei.on("close",onclose));var eu=!1;function onend(){eu||(eu=!0,et.end())}function onclose(){eu||(eu=!0,"function"==typeof et.destroy&&et.destroy())}function onerror(et){if(cleanup(),0===ea.listenerCount(this,"error"))throw et}function cleanup(){ei.removeListener("data",ondata),et.removeListener("drain",ondrain),ei.removeListener("end",onend),ei.removeListener("close",onclose),ei.removeListener("error",onerror),et.removeListener("error",onerror),ei.removeListener("end",cleanup),ei.removeListener("close",cleanup),et.removeListener("close",cleanup)}return ei.on("error",onerror),et.on("error",onerror),ei.on("end",cleanup),ei.on("close",cleanup),et.on("close",cleanup),et.emit("pipe",ei),et}},704:function(et,eo,ei){"use strict";var ea=ei(55).Buffer,eu=ea.isEncoding||function(et){switch((et=""+et)&&et.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(et){var eo;if(!et)return"utf8";for(;;)switch(et){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return et;default:if(eo)return;et=(""+et).toLowerCase(),eo=!0}}function normalizeEncoding(et){var eo=_normalizeEncoding(et);if("string"!=typeof eo&&(ea.isEncoding===eu||!eu(et)))throw Error("Unknown encoding: "+et);return eo||et}function StringDecoder(et){var eo;switch(this.encoding=normalizeEncoding(et),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,eo=4;break;case"utf8":this.fillLast=utf8FillLast,eo=4;break;case"base64":this.text=base64Text,this.end=base64End,eo=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ea.allocUnsafe(eo)}function utf8CheckByte(et){return et<=127?0:et>>5==6?2:et>>4==14?3:et>>3==30?4:et>>6==2?-1:-2}function utf8CheckIncomplete(et,eo,ei){var ea=eo.length-1;if(ea<ei)return 0;var eu=utf8CheckByte(eo[ea]);return eu>=0?(eu>0&&(et.lastNeed=eu-1),eu):--ea<ei||-2===eu?0:(eu=utf8CheckByte(eo[ea]))>=0?(eu>0&&(et.lastNeed=eu-2),eu):--ea<ei||-2===eu?0:(eu=utf8CheckByte(eo[ea]))>=0?(eu>0&&(2===eu?eu=0:et.lastNeed=eu-3),eu):0}function utf8CheckExtraBytes(et,eo,ei){if((192&eo[0])!=128)return et.lastNeed=0,"�";if(et.lastNeed>1&&eo.length>1){if((192&eo[1])!=128)return et.lastNeed=1,"�";if(et.lastNeed>2&&eo.length>2&&(192&eo[2])!=128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var eo=this.lastTotal-this.lastNeed,ei=utf8CheckExtraBytes(this,et,eo);return void 0!==ei?ei:this.lastNeed<=et.length?(et.copy(this.lastChar,eo,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(et.copy(this.lastChar,eo,0,et.length),this.lastNeed-=et.length)}function utf8Text(et,eo){var ei=utf8CheckIncomplete(this,et,eo);if(!this.lastNeed)return et.toString("utf8",eo);this.lastTotal=ei;var ea=et.length-(ei-this.lastNeed);return et.copy(this.lastChar,0,ea),et.toString("utf8",eo,ea)}function utf8End(et){var eo=et&&et.length?this.write(et):"";return this.lastNeed?eo+"�":eo}function utf16Text(et,eo){if((et.length-eo)%2==0){var ei=et.toString("utf16le",eo);if(ei){var ea=ei.charCodeAt(ei.length-1);if(ea>=55296&&ea<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],ei.slice(0,-1)}return ei}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",eo,et.length-1)}function utf16End(et){var eo=et&&et.length?this.write(et):"";if(this.lastNeed){var ei=this.lastTotal-this.lastNeed;return eo+this.lastChar.toString("utf16le",0,ei)}return eo}function base64Text(et,eo){var ei=(et.length-eo)%3;return 0===ei?et.toString("base64",eo):(this.lastNeed=3-ei,this.lastTotal=3,1===ei?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",eo,et.length-ei))}function base64End(et){var eo=et&&et.length?this.write(et):"";return this.lastNeed?eo+this.lastChar.toString("base64",0,3-this.lastNeed):eo}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}eo.s=StringDecoder,StringDecoder.prototype.write=function(et){var eo,ei;if(0===et.length)return"";if(this.lastNeed){if(void 0===(eo=this.fillLast(et)))return"";ei=this.lastNeed,this.lastNeed=0}else ei=0;return ei<et.length?eo?eo+this.text(et,ei):this.text(et,ei):eo||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(et){if(this.lastNeed<=et.length)return et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,et.length),this.lastNeed-=et.length}},769:function(et){function deprecate(et,eo){if(config("noDeprecation"))return et;var ei=!1;return function(){if(!ei){if(config("throwDeprecation"))throw Error(eo);config("traceDeprecation")?console.trace(eo):console.warn(eo),ei=!0}return et.apply(this,arguments)}}function config(et){try{if(!ei.g.localStorage)return!1}catch(et){return!1}var eo=ei.g.localStorage[et];return null!=eo&&"true"===String(eo).toLowerCase()}et.exports=deprecate},300:function(et){"use strict";et.exports=ei(48764)},361:function(et){"use strict";et.exports=ei(17187)},781:function(et){"use strict";et.exports=ei(17187).EventEmitter},837:function(et){"use strict";et.exports=ei(79720)}},ed={};function __nccwpck_require__(et){var ei=ed[et];if(void 0!==ei)return ei.exports;var ea=ed[et]={exports:{}},eu=!0;try{eo[et](ea,ea.exports,__nccwpck_require__),eu=!1}finally{eu&&delete ed[et]}return ea.exports}__nccwpck_require__.ab=ea+"/";var eh=__nccwpck_require__(173);et.exports=eh}()},79720:function(et,eo,ei){var ea="/",eu=ei(48764).Buffer,ed=ei(34155);!function(){var eo={992:function(et){et.exports=function(et,ei,ea){if(et.filter)return et.filter(ei,ea);if(null==et||"function"!=typeof ei)throw TypeError();for(var eu=[],ed=0;ed<et.length;ed++)if(eo.call(et,ed)){var eh=et[ed];ei.call(ea,eh,ed,et)&&eu.push(eh)}return eu};var eo=Object.prototype.hasOwnProperty},256:function(et,eo,ei){"use strict";var ea=ei(925),eu=ei(139),ed=eu(ea("String.prototype.indexOf"));et.exports=function(et,eo){var ei=ea(et,!!eo);return"function"==typeof ei&&ed(et,".prototype.")>-1?eu(ei):ei}},139:function(et,eo,ei){"use strict";var ea=ei(174),eu=ei(925),ed=eu("%Function.prototype.apply%"),eh=eu("%Function.prototype.call%"),ep=eu("%Reflect.apply%",!0)||ea.call(eh,ed),ef=eu("%Object.getOwnPropertyDescriptor%",!0),em=eu("%Object.defineProperty%",!0),eg=eu("%Math.max%");if(em)try{em({},"a",{value:1})}catch(et){em=null}et.exports=function(et){var eo=ep(ea,eh,arguments);return ef&&em&&ef(eo,"length").configurable&&em(eo,"length",{value:1+eg(0,et.length-(arguments.length-1))}),eo};var s=function(){return ep(ea,ed,arguments)};em?em(et.exports,"apply",{value:s}):et.exports.apply=s},144:function(et){var eo=Object.prototype.hasOwnProperty,ei=Object.prototype.toString;et.exports=function(et,ea,eu){if("[object Function]"!==ei.call(ea))throw TypeError("iterator must be a function");var ed=et.length;if(ed===+ed)for(var eh=0;eh<ed;eh++)ea.call(eu,et[eh],eh,et);else for(var ep in et)eo.call(et,ep)&&ea.call(eu,et[ep],ep,et)}},426:function(et){"use strict";var eo="Function.prototype.bind called on incompatible ",ei=Array.prototype.slice,ea=Object.prototype.toString,eu="[object Function]";et.exports=function(et){var ed,eh=this;if("function"!=typeof eh||ea.call(eh)!==eu)throw TypeError(eo+eh);for(var ep=ei.call(arguments,1),binder=function(){if(!(this instanceof ed))return eh.apply(et,ep.concat(ei.call(arguments)));var eo=eh.apply(this,ep.concat(ei.call(arguments)));return Object(eo)===eo?eo:this},ef=Math.max(0,eh.length-ep.length),em=[],eg=0;eg<ef;eg++)em.push("$"+eg);if(ed=Function("binder","return function ("+em.join(",")+"){ return binder.apply(this,arguments); }")(binder),eh.prototype){var s=function(){};s.prototype=eh.prototype,ed.prototype=new s,s.prototype=null}return ed}},174:function(et,eo,ei){"use strict";var ea=ei(426);et.exports=Function.prototype.bind||ea},500:function(et,eo,ei){"use strict";var ea,eu=SyntaxError,ed=Function,eh=TypeError,getEvalledConstructor=function(et){try{return ed('"use strict"; return ('+et+").constructor;")()}catch(et){}},ep=Object.getOwnPropertyDescriptor;if(ep)try{ep({},"")}catch(et){ep=null}var throwTypeError=function(){throw new eh},ef=ep?function(){try{return arguments.callee,throwTypeError}catch(et){try{return ep(arguments,"callee").get}catch(et){return throwTypeError}}}():throwTypeError,em=ei(115)(),eg=Object.getPrototypeOf||function(et){return et.__proto__},ey={},eC="undefined"==typeof Uint8Array?ea:eg(Uint8Array),eS={"%AggregateError%":"undefined"==typeof AggregateError?ea:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ea:ArrayBuffer,"%ArrayIteratorPrototype%":em?eg([][Symbol.iterator]()):ea,"%AsyncFromSyncIteratorPrototype%":ea,"%AsyncFunction%":ey,"%AsyncGenerator%":ey,"%AsyncGeneratorFunction%":ey,"%AsyncIteratorPrototype%":ey,"%Atomics%":"undefined"==typeof Atomics?ea:Atomics,"%BigInt%":"undefined"==typeof BigInt?ea:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ea:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ea:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ea:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ea:FinalizationRegistry,"%Function%":ed,"%GeneratorFunction%":ey,"%Int8Array%":"undefined"==typeof Int8Array?ea:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ea:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ea:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":em?eg(eg([][Symbol.iterator]())):ea,"%JSON%":"object"==typeof JSON?JSON:ea,"%Map%":"undefined"==typeof Map?ea:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&em?eg((new Map)[Symbol.iterator]()):ea,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ea:Promise,"%Proxy%":"undefined"==typeof Proxy?ea:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ea:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ea:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&em?eg((new Set)[Symbol.iterator]()):ea,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ea:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":em?eg(""[Symbol.iterator]()):ea,"%Symbol%":em?Symbol:ea,"%SyntaxError%":eu,"%ThrowTypeError%":ef,"%TypedArray%":eC,"%TypeError%":eh,"%Uint8Array%":"undefined"==typeof Uint8Array?ea:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ea:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ea:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ea:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ea:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ea:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ea:WeakSet},d=function doEval(et){var eo;if("%AsyncFunction%"===et)eo=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===et)eo=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===et)eo=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===et){var ei=doEval("%AsyncGeneratorFunction%");ei&&(eo=ei.prototype)}else if("%AsyncIteratorPrototype%"===et){var ea=doEval("%AsyncGenerator%");ea&&(eo=eg(ea.prototype))}return eS[et]=eo,eo},e_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ew=ei(174),eA=ei(101),eI=ew.call(Function.call,Array.prototype.concat),eR=ew.call(Function.apply,Array.prototype.splice),eT=ew.call(Function.call,String.prototype.replace),eE=ew.call(Function.call,String.prototype.slice),eP=ew.call(Function.call,RegExp.prototype.exec),ek=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eO=/\\(\\)?/g,j=function(et){var eo=eE(et,0,1),ei=eE(et,-1);if("%"===eo&&"%"!==ei)throw new eu("invalid intrinsic syntax, expected closing `%`");if("%"===ei&&"%"!==eo)throw new eu("invalid intrinsic syntax, expected opening `%`");var ea=[];return eT(et,ek,function(et,eo,ei,eu){ea[ea.length]=ei?eT(eu,eO,"$1"):eo||et}),ea},E=function(et,eo){var ei,ea=et;if(eA(e_,ea)&&(ea="%"+(ei=e_[ea])[0]+"%"),eA(eS,ea)){var ed=eS[ea];if(ed===ey&&(ed=d(ea)),void 0===ed&&!eo)throw new eh("intrinsic "+et+" exists, but is not available. Please file an issue!");return{alias:ei,name:ea,value:ed}}throw new eu("intrinsic "+et+" does not exist!")};et.exports=function(et,eo){if("string"!=typeof et||0===et.length)throw new eh("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof eo)throw new eh('"allowMissing" argument must be a boolean');if(null===eP(/^%?[^%]*%?$/g,et))throw new eu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ei=j(et),ea=ei.length>0?ei[0]:"",ed=E("%"+ea+"%",eo),ef=ed.name,em=ed.value,eg=!1,ey=ed.alias;ey&&(ea=ey[0],eR(ei,eI([0,1],ey)));for(var eC=1,e_=!0;eC<ei.length;eC+=1){var ew=ei[eC],eT=eE(ew,0,1),ek=eE(ew,-1);if(('"'===eT||"'"===eT||"`"===eT||'"'===ek||"'"===ek||"`"===ek)&&eT!==ek)throw new eu("property names with quotes must have matching quotes");if("constructor"!==ew&&e_||(eg=!0),ea+="."+ew,eA(eS,ef="%"+ea+"%"))em=eS[ef];else if(null!=em){if(!(ew in em)){if(!eo)throw new eh("base intrinsic for "+et+" exists, but the property is not available.");return}if(ep&&eC+1>=ei.length){var eO=ep(em,ew);em=(e_=!!eO)&&"get"in eO&&!("originalValue"in eO.get)?eO.get:em[ew]}else e_=eA(em,ew),em=em[ew];e_&&!eg&&(eS[ef]=em)}}return em}},925:function(et,eo,ei){"use strict";var ea,eu=SyntaxError,ed=Function,eh=TypeError,getEvalledConstructor=function(et){try{return ed('"use strict"; return ('+et+").constructor;")()}catch(et){}},ep=Object.getOwnPropertyDescriptor;if(ep)try{ep({},"")}catch(et){ep=null}var throwTypeError=function(){throw new eh},ef=ep?function(){try{return arguments.callee,throwTypeError}catch(et){try{return ep(arguments,"callee").get}catch(et){return throwTypeError}}}():throwTypeError,em=ei(115)(),eg=ei(504)(),ey=Object.getPrototypeOf||(eg?function(et){return et.__proto__}:null),eC={},eS="undefined"!=typeof Uint8Array&&ey?ey(Uint8Array):ea,e_={"%AggregateError%":"undefined"==typeof AggregateError?ea:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ea:ArrayBuffer,"%ArrayIteratorPrototype%":em&&ey?ey([][Symbol.iterator]()):ea,"%AsyncFromSyncIteratorPrototype%":ea,"%AsyncFunction%":eC,"%AsyncGenerator%":eC,"%AsyncGeneratorFunction%":eC,"%AsyncIteratorPrototype%":eC,"%Atomics%":"undefined"==typeof Atomics?ea:Atomics,"%BigInt%":"undefined"==typeof BigInt?ea:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ea:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ea:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ea:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ea:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ea:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ea:FinalizationRegistry,"%Function%":ed,"%GeneratorFunction%":eC,"%Int8Array%":"undefined"==typeof Int8Array?ea:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ea:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ea:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":em&&ey?ey(ey([][Symbol.iterator]())):ea,"%JSON%":"object"==typeof JSON?JSON:ea,"%Map%":"undefined"==typeof Map?ea:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&em&&ey?ey((new Map)[Symbol.iterator]()):ea,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ea:Promise,"%Proxy%":"undefined"==typeof Proxy?ea:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ea:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ea:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&em&&ey?ey((new Set)[Symbol.iterator]()):ea,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ea:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":em&&ey?ey(""[Symbol.iterator]()):ea,"%Symbol%":em?Symbol:ea,"%SyntaxError%":eu,"%ThrowTypeError%":ef,"%TypedArray%":eS,"%TypeError%":eh,"%Uint8Array%":"undefined"==typeof Uint8Array?ea:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ea:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ea:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ea:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ea:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ea:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ea:WeakSet};if(ey)try{null.error}catch(et){var ew=ey(ey(et));e_["%Error.prototype%"]=ew}var v=function doEval(et){var eo;if("%AsyncFunction%"===et)eo=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===et)eo=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===et)eo=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===et){var ei=doEval("%AsyncGeneratorFunction%");ei&&(eo=ei.prototype)}else if("%AsyncIteratorPrototype%"===et){var ea=doEval("%AsyncGenerator%");ea&&ey&&(eo=ey(ea.prototype))}return e_[et]=eo,eo},eA={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},eI=ei(174),eR=ei(101),eT=eI.call(Function.call,Array.prototype.concat),eE=eI.call(Function.apply,Array.prototype.splice),eP=eI.call(Function.call,String.prototype.replace),ek=eI.call(Function.call,String.prototype.slice),eO=eI.call(Function.call,RegExp.prototype.exec),eM=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eD=/\\(\\)?/g,I=function(et){var eo=ek(et,0,1),ei=ek(et,-1);if("%"===eo&&"%"!==ei)throw new eu("invalid intrinsic syntax, expected closing `%`");if("%"===ei&&"%"!==eo)throw new eu("invalid intrinsic syntax, expected opening `%`");var ea=[];return eP(et,eM,function(et,eo,ei,eu){ea[ea.length]=ei?eP(eu,eD,"$1"):eo||et}),ea},B=function(et,eo){var ei,ea=et;if(eR(eA,ea)&&(ea="%"+(ei=eA[ea])[0]+"%"),eR(e_,ea)){var ed=e_[ea];if(ed===eC&&(ed=v(ea)),void 0===ed&&!eo)throw new eh("intrinsic "+et+" exists, but is not available. Please file an issue!");return{alias:ei,name:ea,value:ed}}throw new eu("intrinsic "+et+" does not exist!")};et.exports=function(et,eo){if("string"!=typeof et||0===et.length)throw new eh("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof eo)throw new eh('"allowMissing" argument must be a boolean');if(null===eO(/^%?[^%]*%?$/,et))throw new eu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ei=I(et),ea=ei.length>0?ei[0]:"",ed=B("%"+ea+"%",eo),ef=ed.name,em=ed.value,eg=!1,ey=ed.alias;ey&&(ea=ey[0],eE(ei,eT([0,1],ey)));for(var eC=1,eS=!0;eC<ei.length;eC+=1){var ew=ei[eC],eA=ek(ew,0,1),eI=ek(ew,-1);if(('"'===eA||"'"===eA||"`"===eA||'"'===eI||"'"===eI||"`"===eI)&&eA!==eI)throw new eu("property names with quotes must have matching quotes");if("constructor"!==ew&&eS||(eg=!0),ea+="."+ew,eR(e_,ef="%"+ea+"%"))em=e_[ef];else if(null!=em){if(!(ew in em)){if(!eo)throw new eh("base intrinsic for "+et+" exists, but the property is not available.");return}if(ep&&eC+1>=ei.length){var eP=ep(em,ew);em=(eS=!!eP)&&"get"in eP&&!("originalValue"in eP.get)?eP.get:em[ew]}else eS=eR(em,ew),em=em[ew];eS&&!eg&&(e_[ef]=em)}}return em}},504:function(et){"use strict";var eo={foo:{}},ei=Object;et.exports=function(){return({__proto__:eo}).foo===eo.foo&&!(({__proto__:null})instanceof ei)}},942:function(et,eo,ei){"use strict";var ea="undefined"!=typeof Symbol&&Symbol,eu=ei(773);et.exports=function(){return"function"==typeof ea&&"function"==typeof Symbol&&"symbol"==typeof ea("foo")&&"symbol"==typeof Symbol("bar")&&eu()}},773:function(et){"use strict";et.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var et={},eo=Symbol("test"),ei=Object(eo);if("string"==typeof eo||"[object Symbol]"!==Object.prototype.toString.call(eo)||"[object Symbol]"!==Object.prototype.toString.call(ei))return!1;var ea=42;for(eo in et[eo]=ea,et)return!1;if("function"==typeof Object.keys&&0!==Object.keys(et).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(et).length)return!1;var eu=Object.getOwnPropertySymbols(et);if(1!==eu.length||eu[0]!==eo||!Object.prototype.propertyIsEnumerable.call(et,eo))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ed=Object.getOwnPropertyDescriptor(et,eo);if(ed.value!==ea||!0!==ed.enumerable)return!1}return!0}},115:function(et,eo,ei){"use strict";var ea="undefined"!=typeof Symbol&&Symbol,eu=ei(832);et.exports=function(){return"function"==typeof ea&&"function"==typeof Symbol&&"symbol"==typeof ea("foo")&&"symbol"==typeof Symbol("bar")&&eu()}},832:function(et){"use strict";et.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var et={},eo=Symbol("test"),ei=Object(eo);if("string"==typeof eo||"[object Symbol]"!==Object.prototype.toString.call(eo)||"[object Symbol]"!==Object.prototype.toString.call(ei))return!1;var ea=42;for(eo in et[eo]=ea,et)return!1;if("function"==typeof Object.keys&&0!==Object.keys(et).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(et).length)return!1;var eu=Object.getOwnPropertySymbols(et);if(1!==eu.length||eu[0]!==eo||!Object.prototype.propertyIsEnumerable.call(et,eo))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ed=Object.getOwnPropertyDescriptor(et,eo);if(ed.value!==ea||!0!==ed.enumerable)return!1}return!0}},101:function(et,eo,ei){"use strict";var ea=ei(174);et.exports=ea.call(Function.call,Object.prototype.hasOwnProperty)},782:function(et){"function"==typeof Object.create?et.exports=function(et,eo){eo&&(et.super_=eo,et.prototype=Object.create(eo.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}))}:et.exports=function(et,eo){if(eo){et.super_=eo;var TempCtor=function(){};TempCtor.prototype=eo.prototype,et.prototype=new TempCtor,et.prototype.constructor=et}}},157:function(et){"use strict";var eo="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ei=Object.prototype.toString,o=function(et){return(!eo||!et||"object"!=typeof et||!(Symbol.toStringTag in et))&&"[object Arguments]"===ei.call(et)},n=function(et){return!!o(et)||null!==et&&"object"==typeof et&&"number"==typeof et.length&&et.length>=0&&"[object Array]"!==ei.call(et)&&"[object Function]"===ei.call(et.callee)},ea=function(){return o(arguments)}();o.isLegacyArguments=n,et.exports=ea?o:n},391:function(et){"use strict";var eo=Object.prototype.toString,ei=Function.prototype.toString,ea=/^\s*(?:function)?\*/,eu="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ed=Object.getPrototypeOf,eh=function(){if(!eu)return!1;try{return Function("return function*() {}")()}catch(et){}}(),ep=eh?ed(eh):{};et.exports=function(et){return"function"==typeof et&&(!!ea.test(ei.call(et))||(eu?ed(et)===ep:"[object GeneratorFunction]"===eo.call(et)))}},994:function(et,eo,ea){"use strict";var eu=ea(144),ed=ea(349),eh=ea(256),ep=eh("Object.prototype.toString"),ef=ea(942)()&&"symbol"==typeof Symbol.toStringTag,em=ed(),eg=eh("Array.prototype.indexOf",!0)||function(et,eo){for(var ei=0;ei<et.length;ei+=1)if(et[ei]===eo)return ei;return -1},ey=eh("String.prototype.slice"),eC={},eS=ea(24),e_=Object.getPrototypeOf;ef&&eS&&e_&&eu(em,function(et){var eo=new ei.g[et];if(!(Symbol.toStringTag in eo))throw EvalError("this engine has support for Symbol.toStringTag, but "+et+" does not have the property! Please report this.");var ea=e_(eo),eu=eS(ea,Symbol.toStringTag);eu||(eu=eS(e_(ea),Symbol.toStringTag)),eC[et]=eu.get});var g=function(et){var eo=!1;return eu(eC,function(ei,ea){if(!eo)try{eo=ei.call(et)===ea}catch(et){}}),eo};et.exports=function(et){return!!et&&"object"==typeof et&&(ef?!!eS&&g(et):eg(em,ey(ep(et),8,-1))>-1)}},369:function(et){et.exports=function(et){return et instanceof eu}},584:function(et,eo,ei){"use strict";var ea=ei(157),eu=ei(391),ed=ei(490),eh=ei(994);function uncurryThis(et){return et.call.bind(et)}var ep="undefined"!=typeof BigInt,ef="undefined"!=typeof Symbol,em=uncurryThis(Object.prototype.toString),eg=uncurryThis(Number.prototype.valueOf),ey=uncurryThis(String.prototype.valueOf),eC=uncurryThis(Boolean.prototype.valueOf);if(ep)var eS=uncurryThis(BigInt.prototype.valueOf);if(ef)var e_=uncurryThis(Symbol.prototype.valueOf);function checkBoxedPrimitive(et,eo){if("object"!=typeof et)return!1;try{return eo(et),!0}catch(et){return!1}}function isPromise(et){return"undefined"!=typeof Promise&&et instanceof Promise||null!==et&&"object"==typeof et&&"function"==typeof et.then&&"function"==typeof et.catch}function isArrayBufferView(et){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(et):eh(et)||isDataView(et)}function isUint8Array(et){return"Uint8Array"===ed(et)}function isUint8ClampedArray(et){return"Uint8ClampedArray"===ed(et)}function isUint16Array(et){return"Uint16Array"===ed(et)}function isUint32Array(et){return"Uint32Array"===ed(et)}function isInt8Array(et){return"Int8Array"===ed(et)}function isInt16Array(et){return"Int16Array"===ed(et)}function isInt32Array(et){return"Int32Array"===ed(et)}function isFloat32Array(et){return"Float32Array"===ed(et)}function isFloat64Array(et){return"Float64Array"===ed(et)}function isBigInt64Array(et){return"BigInt64Array"===ed(et)}function isBigUint64Array(et){return"BigUint64Array"===ed(et)}function isMapToString(et){return"[object Map]"===em(et)}function isMap(et){return"undefined"!=typeof Map&&(isMapToString.working?isMapToString(et):et instanceof Map)}function isSetToString(et){return"[object Set]"===em(et)}function isSet(et){return"undefined"!=typeof Set&&(isSetToString.working?isSetToString(et):et instanceof Set)}function isWeakMapToString(et){return"[object WeakMap]"===em(et)}function isWeakMap(et){return"undefined"!=typeof WeakMap&&(isWeakMapToString.working?isWeakMapToString(et):et instanceof WeakMap)}function isWeakSetToString(et){return"[object WeakSet]"===em(et)}function isWeakSet(et){return isWeakSetToString(et)}function isArrayBufferToString(et){return"[object ArrayBuffer]"===em(et)}function isArrayBuffer(et){return"undefined"!=typeof ArrayBuffer&&(isArrayBufferToString.working?isArrayBufferToString(et):et instanceof ArrayBuffer)}function isDataViewToString(et){return"[object DataView]"===em(et)}function isDataView(et){return"undefined"!=typeof DataView&&(isDataViewToString.working?isDataViewToString(et):et instanceof DataView)}eo.isArgumentsObject=ea,eo.isGeneratorFunction=eu,eo.isTypedArray=eh,eo.isPromise=isPromise,eo.isArrayBufferView=isArrayBufferView,eo.isUint8Array=isUint8Array,eo.isUint8ClampedArray=isUint8ClampedArray,eo.isUint16Array=isUint16Array,eo.isUint32Array=isUint32Array,eo.isInt8Array=isInt8Array,eo.isInt16Array=isInt16Array,eo.isInt32Array=isInt32Array,eo.isFloat32Array=isFloat32Array,eo.isFloat64Array=isFloat64Array,eo.isBigInt64Array=isBigInt64Array,eo.isBigUint64Array=isBigUint64Array,isMapToString.working="undefined"!=typeof Map&&isMapToString(new Map),eo.isMap=isMap,isSetToString.working="undefined"!=typeof Set&&isSetToString(new Set),eo.isSet=isSet,isWeakMapToString.working="undefined"!=typeof WeakMap&&isWeakMapToString(new WeakMap),eo.isWeakMap=isWeakMap,isWeakSetToString.working="undefined"!=typeof WeakSet&&isWeakSetToString(new WeakSet),eo.isWeakSet=isWeakSet,isArrayBufferToString.working="undefined"!=typeof ArrayBuffer&&isArrayBufferToString(new ArrayBuffer),eo.isArrayBuffer=isArrayBuffer,isDataViewToString.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&isDataViewToString(new DataView(new ArrayBuffer(1),0,1)),eo.isDataView=isDataView;var ew="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function isSharedArrayBufferToString(et){return"[object SharedArrayBuffer]"===em(et)}function isSharedArrayBuffer(et){return void 0!==ew&&(void 0===isSharedArrayBufferToString.working&&(isSharedArrayBufferToString.working=isSharedArrayBufferToString(new ew)),isSharedArrayBufferToString.working?isSharedArrayBufferToString(et):et instanceof ew)}function isAsyncFunction(et){return"[object AsyncFunction]"===em(et)}function isMapIterator(et){return"[object Map Iterator]"===em(et)}function isSetIterator(et){return"[object Set Iterator]"===em(et)}function isGeneratorObject(et){return"[object Generator]"===em(et)}function isWebAssemblyCompiledModule(et){return"[object WebAssembly.Module]"===em(et)}function isNumberObject(et){return checkBoxedPrimitive(et,eg)}function isStringObject(et){return checkBoxedPrimitive(et,ey)}function isBooleanObject(et){return checkBoxedPrimitive(et,eC)}function isBigIntObject(et){return ep&&checkBoxedPrimitive(et,eS)}function isSymbolObject(et){return ef&&checkBoxedPrimitive(et,e_)}function isBoxedPrimitive(et){return isNumberObject(et)||isStringObject(et)||isBooleanObject(et)||isBigIntObject(et)||isSymbolObject(et)}function isAnyArrayBuffer(et){return"undefined"!=typeof Uint8Array&&(isArrayBuffer(et)||isSharedArrayBuffer(et))}eo.isSharedArrayBuffer=isSharedArrayBuffer,eo.isAsyncFunction=isAsyncFunction,eo.isMapIterator=isMapIterator,eo.isSetIterator=isSetIterator,eo.isGeneratorObject=isGeneratorObject,eo.isWebAssemblyCompiledModule=isWebAssemblyCompiledModule,eo.isNumberObject=isNumberObject,eo.isStringObject=isStringObject,eo.isBooleanObject=isBooleanObject,eo.isBigIntObject=isBigIntObject,eo.isSymbolObject=isSymbolObject,eo.isBoxedPrimitive=isBoxedPrimitive,eo.isAnyArrayBuffer=isAnyArrayBuffer,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(et){Object.defineProperty(eo,et,{enumerable:!1,value:function(){throw Error(et+" is not supported in userland")}})})},177:function(et,eo,ei){var ea=Object.getOwnPropertyDescriptors||function(et){for(var eo=Object.keys(et),ei={},ea=0;ea<eo.length;ea++)ei[eo[ea]]=Object.getOwnPropertyDescriptor(et,eo[ea]);return ei},eu=/%[sdj%]/g;eo.format=function(et){if(!isString(et)){for(var eo=[],ei=0;ei<arguments.length;ei++)eo.push(inspect(arguments[ei]));return eo.join(" ")}for(var ei=1,ea=arguments,ed=ea.length,eh=String(et).replace(eu,function(et){if("%%"===et)return"%";if(ei>=ed)return et;switch(et){case"%s":return String(ea[ei++]);case"%d":return Number(ea[ei++]);case"%j":try{return JSON.stringify(ea[ei++])}catch(et){return"[Circular]"}default:return et}}),ep=ea[ei];ei<ed;ep=ea[++ei])isNull(ep)||!isObject(ep)?eh+=" "+ep:eh+=" "+inspect(ep);return eh},eo.deprecate=function(et,ei){if(void 0!==ed&&!0===ed.noDeprecation)return et;if(void 0===ed)return function(){return eo.deprecate(et,ei).apply(this,arguments)};var ea=!1;return function(){if(!ea){if(ed.throwDeprecation)throw Error(ei);ed.traceDeprecation?console.trace(ei):console.error(ei),ea=!0}return et.apply(this,arguments)}};var eh={},ep=/^$/;if(ed.env.NODE_DEBUG){var ef=ed.env.NODE_DEBUG;ep=RegExp("^"+(ef=ef.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function inspect(et,ei){var ea={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ea.depth=arguments[2]),arguments.length>=4&&(ea.colors=arguments[3]),isBoolean(ei)?ea.showHidden=ei:ei&&eo._extend(ea,ei),isUndefined(ea.showHidden)&&(ea.showHidden=!1),isUndefined(ea.depth)&&(ea.depth=2),isUndefined(ea.colors)&&(ea.colors=!1),isUndefined(ea.customInspect)&&(ea.customInspect=!0),ea.colors&&(ea.stylize=stylizeWithColor),formatValue(ea,et,ea.depth)}function stylizeWithColor(et,eo){var ei=inspect.styles[eo];return ei?"\x1b["+inspect.colors[ei][0]+"m"+et+"\x1b["+inspect.colors[ei][1]+"m":et}function stylizeNoColor(et,eo){return et}function arrayToHash(et){var eo={};return et.forEach(function(et,ei){eo[et]=!0}),eo}function formatValue(et,ei,ea){if(et.customInspect&&ei&&isFunction(ei.inspect)&&ei.inspect!==eo.inspect&&!(ei.constructor&&ei.constructor.prototype===ei)){var eu,ed=ei.inspect(ea,et);return isString(ed)||(ed=formatValue(et,ed,ea)),ed}var eh=formatPrimitive(et,ei);if(eh)return eh;var ep=Object.keys(ei),ef=arrayToHash(ep);if(et.showHidden&&(ep=Object.getOwnPropertyNames(ei)),isError(ei)&&(ep.indexOf("message")>=0||ep.indexOf("description")>=0))return formatError(ei);if(0===ep.length){if(isFunction(ei)){var em=ei.name?": "+ei.name:"";return et.stylize("[Function"+em+"]","special")}if(isRegExp(ei))return et.stylize(RegExp.prototype.toString.call(ei),"regexp");if(isDate(ei))return et.stylize(Date.prototype.toString.call(ei),"date");if(isError(ei))return formatError(ei)}var eg="",ey=!1,eC=["{","}"];return(isArray(ei)&&(ey=!0,eC=["[","]"]),isFunction(ei)&&(eg=" [Function"+(ei.name?": "+ei.name:"")+"]"),isRegExp(ei)&&(eg=" "+RegExp.prototype.toString.call(ei)),isDate(ei)&&(eg=" "+Date.prototype.toUTCString.call(ei)),isError(ei)&&(eg=" "+formatError(ei)),0!==ep.length||ey&&0!=ei.length)?ea<0?isRegExp(ei)?et.stylize(RegExp.prototype.toString.call(ei),"regexp"):et.stylize("[Object]","special"):(et.seen.push(ei),eu=ey?formatArray(et,ei,ea,ef,ep):ep.map(function(eo){return formatProperty(et,ei,ea,ef,eo,ey)}),et.seen.pop(),reduceToSingleString(eu,eg,eC)):eC[0]+eg+eC[1]}function formatPrimitive(et,eo){if(isUndefined(eo))return et.stylize("undefined","undefined");if(isString(eo)){var ei="'"+JSON.stringify(eo).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return et.stylize(ei,"string")}return isNumber(eo)?et.stylize(""+eo,"number"):isBoolean(eo)?et.stylize(""+eo,"boolean"):isNull(eo)?et.stylize("null","null"):void 0}function formatError(et){return"["+Error.prototype.toString.call(et)+"]"}function formatArray(et,eo,ei,ea,eu){for(var ed=[],eh=0,ep=eo.length;eh<ep;++eh)hasOwnProperty(eo,String(eh))?ed.push(formatProperty(et,eo,ei,ea,String(eh),!0)):ed.push("");return eu.forEach(function(eu){eu.match(/^\d+$/)||ed.push(formatProperty(et,eo,ei,ea,eu,!0))}),ed}function formatProperty(et,eo,ei,ea,eu,ed){var eh,ep,ef;if((ef=Object.getOwnPropertyDescriptor(eo,eu)||{value:eo[eu]}).get?ep=ef.set?et.stylize("[Getter/Setter]","special"):et.stylize("[Getter]","special"):ef.set&&(ep=et.stylize("[Setter]","special")),hasOwnProperty(ea,eu)||(eh="["+eu+"]"),!ep&&(0>et.seen.indexOf(ef.value)?(ep=isNull(ei)?formatValue(et,ef.value,null):formatValue(et,ef.value,ei-1)).indexOf("\n")>-1&&(ep=ed?ep.split("\n").map(function(et){return"  "+et}).join("\n").substr(2):"\n"+ep.split("\n").map(function(et){return"   "+et}).join("\n")):ep=et.stylize("[Circular]","special")),isUndefined(eh)){if(ed&&eu.match(/^\d+$/))return ep;(eh=JSON.stringify(""+eu)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(eh=eh.substr(1,eh.length-2),eh=et.stylize(eh,"name")):(eh=eh.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),eh=et.stylize(eh,"string"))}return eh+": "+ep}function reduceToSingleString(et,eo,ei){var ea=0;return et.reduce(function(et,eo){return ea++,eo.indexOf("\n")>=0&&ea++,et+eo.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ei[0]+(""===eo?"":eo+"\n ")+" "+et.join(",\n  ")+" "+ei[1]:ei[0]+eo+" "+et.join(", ")+" "+ei[1]}function isArray(et){return Array.isArray(et)}function isBoolean(et){return"boolean"==typeof et}function isNull(et){return null===et}function isNullOrUndefined(et){return null==et}function isNumber(et){return"number"==typeof et}function isString(et){return"string"==typeof et}function isSymbol(et){return"symbol"==typeof et}function isUndefined(et){return void 0===et}function isRegExp(et){return isObject(et)&&"[object RegExp]"===objectToString(et)}function isObject(et){return"object"==typeof et&&null!==et}function isDate(et){return isObject(et)&&"[object Date]"===objectToString(et)}function isError(et){return isObject(et)&&("[object Error]"===objectToString(et)||et instanceof Error)}function isFunction(et){return"function"==typeof et}function isPrimitive(et){return null===et||"boolean"==typeof et||"number"==typeof et||"string"==typeof et||"symbol"==typeof et||void 0===et}function objectToString(et){return Object.prototype.toString.call(et)}function pad(et){return et<10?"0"+et.toString(10):et.toString(10)}eo.debuglog=function(et){if(!eh[et=et.toUpperCase()]){if(ep.test(et)){var ei=ed.pid;eh[et]=function(){var ea=eo.format.apply(eo,arguments);console.error("%s %d: %s",et,ei,ea)}}else eh[et]=function(){}}return eh[et]},eo.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},eo.types=ei(584),eo.isArray=isArray,eo.isBoolean=isBoolean,eo.isNull=isNull,eo.isNullOrUndefined=isNullOrUndefined,eo.isNumber=isNumber,eo.isString=isString,eo.isSymbol=isSymbol,eo.isUndefined=isUndefined,eo.isRegExp=isRegExp,eo.types.isRegExp=isRegExp,eo.isObject=isObject,eo.isDate=isDate,eo.types.isDate=isDate,eo.isError=isError,eo.types.isNativeError=isError,eo.isFunction=isFunction,eo.isPrimitive=isPrimitive,eo.isBuffer=ei(369);var em=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var et=new Date,eo=[pad(et.getHours()),pad(et.getMinutes()),pad(et.getSeconds())].join(":");return[et.getDate(),em[et.getMonth()],eo].join(" ")}function hasOwnProperty(et,eo){return Object.prototype.hasOwnProperty.call(et,eo)}eo.log=function(){console.log("%s - %s",timestamp(),eo.format.apply(eo,arguments))},eo.inherits=ei(782),eo._extend=function(et,eo){if(!eo||!isObject(eo))return et;for(var ei=Object.keys(eo),ea=ei.length;ea--;)et[ei[ea]]=eo[ei[ea]];return et};var eg="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(et,eo){if(!et){var ei=Error("Promise was rejected with a falsy value");ei.reason=et,et=ei}return eo(et)}function callbackify(et){if("function"!=typeof et)throw TypeError('The "original" argument must be of type Function');function callbackified(){for(var eo=[],ei=0;ei<arguments.length;ei++)eo.push(arguments[ei]);var ea=eo.pop();if("function"!=typeof ea)throw TypeError("The last argument must be of type Function");var eu=this,cb=function(){return ea.apply(eu,arguments)};et.apply(this,eo).then(function(et){ed.nextTick(cb.bind(null,null,et))},function(et){ed.nextTick(callbackifyOnRejected.bind(null,et,cb))})}return Object.setPrototypeOf(callbackified,Object.getPrototypeOf(et)),Object.defineProperties(callbackified,ea(et)),callbackified}eo.promisify=function(et){if("function"!=typeof et)throw TypeError('The "original" argument must be of type Function');if(eg&&et[eg]){var e=et[eg];if("function"!=typeof e)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,eg,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var eo,ei,ea=new Promise(function(et,ea){eo=et,ei=ea}),eu=[],ed=0;ed<arguments.length;ed++)eu.push(arguments[ed]);eu.push(function(et,ea){et?ei(et):eo(ea)});try{et.apply(this,eu)}catch(et){ei(et)}return ea}return Object.setPrototypeOf(e,Object.getPrototypeOf(et)),eg&&Object.defineProperty(e,eg,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,ea(et))},eo.promisify.custom=eg,eo.callbackify=callbackify},490:function(et,eo,ea){"use strict";var eu=ea(144),ed=ea(349),eh=ea(256),ep=eh("Object.prototype.toString"),ef=ea(942)()&&"symbol"==typeof Symbol.toStringTag,em=ed(),eg=eh("String.prototype.slice"),ey={},eC=ea(24),eS=Object.getPrototypeOf;ef&&eC&&eS&&eu(em,function(et){if("function"==typeof ei.g[et]){var eo=new ei.g[et];if(!(Symbol.toStringTag in eo))throw EvalError("this engine has support for Symbol.toStringTag, but "+et+" does not have the property! Please report this.");var ea=eS(eo),eu=eC(ea,Symbol.toStringTag);eu||(eu=eC(eS(ea),Symbol.toStringTag)),ey[et]=eu.get}});var d=function(et){var eo=!1;return eu(ey,function(ei,ea){if(!eo)try{var eu=ei.call(et);eu===ea&&(eo=eu)}catch(et){}}),eo},e_=ea(994);et.exports=function(et){return!!e_(et)&&(ef?d(et):eg(ep(et),8,-1))}},349:function(et,eo,ea){"use strict";var eu=ea(992);et.exports=function(){return eu(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(et){return"function"==typeof ei.g[et]})}},24:function(et,eo,ei){"use strict";var ea=ei(500)("%Object.getOwnPropertyDescriptor%",!0);if(ea)try{ea([],"length")}catch(et){ea=null}et.exports=ea}},eh={};function __nccwpck_require__(et){var ei=eh[et];if(void 0!==ei)return ei.exports;var ea=eh[et]={exports:{}},eu=!0;try{eo[et](ea,ea.exports,__nccwpck_require__),eu=!1}finally{eu&&delete eh[et]}return ea.exports}__nccwpck_require__.ab=ea+"/";var ep=__nccwpck_require__(177);et.exports=ep}()},51951:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(et,eo){if(et.indexOf)return et.indexOf(eo);for(var ei=0;ei<et.length;ei++)if(et[ei]===eo)return ei;return -1},Object_keys=function(et){if(Object.keys)return Object.keys(et);var eo=[];for(var ei in et)eo.push(ei);return eo},forEach=function(et,eo){if(et.forEach)return et.forEach(eo);for(var ei=0;ei<et.length;ei++)eo(et[ei],ei,et)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(et,eo,ei){Object.defineProperty(et,eo,{writable:!0,enumerable:!1,configurable:!0,value:ei})}}catch(et){return function(et,eo,ei){et[eo]=ei}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(et){if(!(this instanceof Script))return new Script(et);this.code=et};Script.prototype.runInContext=function(et){if(!(et instanceof Context))throw TypeError("needs a 'context' argument.");var eo=document.createElement("iframe");eo.style||(eo.style={}),eo.style.display="none",document.body.appendChild(eo);var ei=eo.contentWindow,ea=ei.eval,eu=ei.execScript;!ea&&eu&&(eu.call(ei,"null"),ea=ei.eval),forEach(Object_keys(et),function(eo){ei[eo]=et[eo]}),forEach(globals,function(eo){et[eo]&&(ei[eo]=et[eo])});var ed=Object_keys(ei),eh=ea.call(ei,this.code);return forEach(Object_keys(ei),function(eo){(eo in et||-1===indexOf(ed,eo))&&(et[eo]=ei[eo])}),forEach(globals,function(eo){eo in et||defineProp(et,eo,ei[eo])}),document.body.removeChild(eo),eh},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(et){var eo=Script.createContext(et),ei=this.runInContext(eo);return et&&forEach(Object_keys(eo),function(ei){et[ei]=eo[ei]}),ei},forEach(Object_keys(Script.prototype),function(et){exports[et]=Script[et]=function(eo){var ei=Script(eo);return ei[et].apply(ei,[].slice.call(arguments,1))}}),exports.isContext=function(et){return et instanceof Context},exports.createScript=function(et){return exports.Script(et)},exports.createContext=Script.createContext=function(et){var eo=new Context;return"object"==typeof et&&forEach(Object_keys(et),function(ei){eo[ei]=et[ei]}),eo}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},11163:function(et,eo,ei){et.exports=ei(59974)},4298:function(et,eo,ei){et.exports=ei(85354)},34155:function(et){var eo,ei,ea,eu=et.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(et){if(eo===setTimeout)return setTimeout(et,0);if((eo===defaultSetTimout||!eo)&&setTimeout)return eo=setTimeout,setTimeout(et,0);try{return eo(et,0)}catch(ei){try{return eo.call(null,et,0)}catch(ei){return eo.call(this,et,0)}}}function runClearTimeout(et){if(ei===clearTimeout)return clearTimeout(et);if((ei===defaultClearTimeout||!ei)&&clearTimeout)return ei=clearTimeout,clearTimeout(et);try{return ei(et)}catch(eo){try{return ei.call(null,et)}catch(eo){return ei.call(this,et)}}}!function(){try{eo="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(et){eo=defaultSetTimout}try{ei="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(et){ei=defaultClearTimeout}}();var ed=[],eh=!1,ep=-1;function cleanUpNextTick(){eh&&ea&&(eh=!1,ea.length?ed=ea.concat(ed):ep=-1,ed.length&&drainQueue())}function drainQueue(){if(!eh){var et=runTimeout(cleanUpNextTick);eh=!0;for(var eo=ed.length;eo;){for(ea=ed,ed=[];++ep<eo;)ea&&ea[ep].run();ep=-1,eo=ed.length}ea=null,eh=!1,runClearTimeout(et)}}function Item(et,eo){this.fun=et,this.array=eo}function noop(){}eu.nextTick=function(et){var eo=Array(arguments.length-1);if(arguments.length>1)for(var ei=1;ei<arguments.length;ei++)eo[ei-1]=arguments[ei];ed.push(new Item(et,eo)),1!==ed.length||eh||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},eu.title="browser",eu.browser=!0,eu.env={},eu.argv=[],eu.version="",eu.versions={},eu.on=noop,eu.addListener=noop,eu.once=noop,eu.off=noop,eu.removeListener=noop,eu.removeAllListeners=noop,eu.emit=noop,eu.prependListener=noop,eu.prependOnceListener=noop,eu.listeners=function(et){return[]},eu.binding=function(et){throw Error("process.binding is not supported")},eu.cwd=function(){return"/"},eu.chdir=function(et){throw Error("process.chdir is not supported")},eu.umask=function(){return 0}},92703:function(et,eo,ei){"use strict";var ea=ei(50414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,et.exports=function(){function shim(et,eo,ei,eu,ed,eh){if(eh!==ea){var ep=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw ep.name="Invariant Violation",ep}}function getShim(){return shim}shim.isRequired=shim;var et={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return et.PropTypes=et,et}},45697:function(et,eo,ei){et.exports=ei(92703)()},50414:function(et){"use strict";var eo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";et.exports=eo},41819:function(et,eo,ei){"use strict";function _classCallCheck(et,eo){if(!(et instanceof eo))throw TypeError("Cannot call a class as a function")}function _defineProperties(et,eo){for(var ei=0;ei<eo.length;ei++){var ea=eo[ei];ea.enumerable=ea.enumerable||!1,ea.configurable=!0,"value"in ea&&(ea.writable=!0),Object.defineProperty(et,ea.key,ea)}}function _createClass(et,eo,ei){return eo&&_defineProperties(et.prototype,eo),ei&&_defineProperties(et,ei),Object.defineProperty(et,"prototype",{writable:!1}),et}ei.d(eo,{OO:function(){return ep},zv:function(){return ef},JP:function(){return getDefaults},nI:function(){return getI18n},Db:function(){return em}});var ea,eu=ei(72344),ed=ei(67294);function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,eu.Z)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}var eh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},ep=ed.createContext();function setDefaults(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eh=_objectSpread(_objectSpread({},eh),et)}function getDefaults(){return eh}var ef=function(){function ReportNamespaces(){_classCallCheck(this,ReportNamespaces),this.usedNamespaces={}}return _createClass(ReportNamespaces,[{key:"addUsedNamespaces",value:function(et){var eo=this;et.forEach(function(et){eo.usedNamespaces[et]||(eo.usedNamespaces[et]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),ReportNamespaces}();function setI18n(et){ea=et}function getI18n(){return ea}var em={type:"3rdParty",init:function(et){setDefaults(et.options.react),setI18n(et)}}},26524:function(et,eo,ei){"use strict";function _arrayWithHoles(et){if(Array.isArray(et))return et}function _iterableToArrayLimit(et,eo){var ei,ea,eu=null==et?null:"undefined"!=typeof Symbol&&et[Symbol.iterator]||et["@@iterator"];if(null!=eu){var ed=[],eh=!0,ep=!1;try{for(eu=eu.call(et);!(eh=(ei=eu.next()).done)&&(ed.push(ei.value),!eo||ed.length!==eo);eh=!0);}catch(et){ep=!0,ea=et}finally{try{eh||null==eu.return||eu.return()}finally{if(ep)throw ea}}return ed}}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(et,eo){return _arrayWithHoles(et)||_iterableToArrayLimit(et,eo)||_unsupportedIterableToArray(et,eo)||_nonIterableRest()}ei.d(eo,{$:function(){return useTranslation}});var ea=ei(72344),eu=ei(67294),ed=ei(41819);function warn(){if(console&&console.warn){for(var et,eo=arguments.length,ei=Array(eo),ea=0;ea<eo;ea++)ei[ea]=arguments[ea];"string"==typeof ei[0]&&(ei[0]="react-i18next:: ".concat(ei[0])),(et=console).warn.apply(et,ei)}}var eh={};function warnOnce(){for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];"string"==typeof eo[0]&&eh[eo[0]]||("string"==typeof eo[0]&&(eh[eo[0]]=new Date),warn.apply(void 0,eo))}function loadNamespaces(et,eo,ei){et.loadNamespaces(eo,function(){if(et.isInitialized)ei();else{var initialized=function initialized(){setTimeout(function(){et.off("initialized",initialized)},0),ei()};et.on("initialized",initialized)}})}function oldI18nextHasLoadedNamespace(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ea=eo.languages[0],eu=!!eo.options&&eo.options.fallbackLng,ed=eo.languages[eo.languages.length-1];if("cimode"===ea.toLowerCase())return!0;var loadNotPending=function(et,ei){var ea=eo.services.backendConnector.state["".concat(et,"|").concat(ei)];return -1===ea||2===ea};return(!(ei.bindI18n&&ei.bindI18n.indexOf("languageChanging")>-1)||!eo.services.backendConnector.backend||!eo.isLanguageChangingTo||!!loadNotPending(eo.isLanguageChangingTo,et))&&!!(eo.hasResourceBundle(ea,et)||!eo.services.backendConnector.backend||eo.options.resources&&!eo.options.partialBundledLanguages||loadNotPending(ea,et)&&(!eu||loadNotPending(ed,et)))}function hasLoadedNamespace(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return eo.languages&&eo.languages.length?void 0!==eo.options.ignoreJSONStructure?eo.hasLoadedNamespace(et,{precheck:function(eo,ea){if(ei.bindI18n&&ei.bindI18n.indexOf("languageChanging")>-1&&eo.services.backendConnector.backend&&eo.isLanguageChangingTo&&!ea(eo.isLanguageChangingTo,et))return!1}}):oldI18nextHasLoadedNamespace(et,eo,ei):(warnOnce("i18n.languages were undefined or empty",eo.languages),!0)}function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){(0,ea.Z)(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function useTranslation(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ei=eo.i18n,ea=(0,eu.useContext)(ed.OO)||{},eh=ea.i18n,ep=ea.defaultNS,ef=ei||eh||(0,ed.nI)();if(ef&&!ef.reportNamespaces&&(ef.reportNamespaces=new ed.zv),!ef){warnOnce("You will need to pass in an i18next instance by using initReactI18next");var notReadyT=function(et){return Array.isArray(et)?et[et.length-1]:et},em=[notReadyT,{},!1];return em.t=notReadyT,em.i18n={},em.ready=!1,em}ef.options.react&&void 0!==ef.options.react.wait&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var eg=_objectSpread(_objectSpread(_objectSpread({},(0,ed.JP)()),ef.options.react),eo),ey=eg.useSuspense,eC=eg.keyPrefix,eS=et||ep||ef.options&&ef.options.defaultNS;eS="string"==typeof eS?[eS]:eS||["translation"],ef.reportNamespaces.addUsedNamespaces&&ef.reportNamespaces.addUsedNamespaces(eS);var e_=(ef.isInitialized||ef.initializedStoreOnce)&&eS.every(function(et){return hasLoadedNamespace(et,ef,eg)});function getT(){return ef.getFixedT(null,"fallback"===eg.nsMode?eS:eS[0],eC)}var ew=_slicedToArray((0,eu.useState)(getT),2),eA=ew[0],eI=ew[1],eR=(0,eu.useRef)(!0);(0,eu.useEffect)(function(){var et=eg.bindI18n,eo=eg.bindI18nStore;function boundReset(){eR.current&&eI(getT)}return eR.current=!0,e_||ey||loadNamespaces(ef,eS,function(){eR.current&&eI(getT)}),et&&ef&&ef.on(et,boundReset),eo&&ef&&ef.store.on(eo,boundReset),function(){eR.current=!1,et&&ef&&et.split(" ").forEach(function(et){return ef.off(et,boundReset)}),eo&&ef&&eo.split(" ").forEach(function(et){return ef.store.off(et,boundReset)})}},[ef,eS.join()]);var eT=(0,eu.useRef)(!0);(0,eu.useEffect)(function(){eR.current&&!eT.current&&eI(getT),eT.current=!1},[ef]);var eE=[eA,ef,e_];if(eE.t=eA,eE.i18n=ef,eE.ready=e_,e_||!e_&&!ey)return eE;throw new Promise(function(et){loadNamespaces(ef,eS,function(){et()})})}},59852:function(et,eo,ei){"use strict";ei.d(eo,{j:function(){return eh}});var ea=ei(72784),eu=ei(52943),ed=ei(52288),eh=new(function(et){function FocusManager(){var eo;return(eo=et.call(this)||this).setup=function(et){var eo;if(!ed.sk&&(null==(eo=window)?void 0:eo.addEventListener)){var listener=function(){return et()};return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),function(){window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}},eo}(0,ea.Z)(FocusManager,et);var eo=FocusManager.prototype;return eo.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},eo.onUnsubscribe=function(){if(!this.hasListeners()){var et;null==(et=this.cleanup)||et.call(this),this.cleanup=void 0}},eo.setEventListener=function(et){var eo,ei=this;this.setup=et,null==(eo=this.cleanup)||eo.call(this),this.cleanup=et(function(et){"boolean"==typeof et?ei.setFocused(et):ei.onFocus()})},eo.setFocused=function(et){this.focused=et,et&&this.onFocus()},eo.onFocus=function(){this.listeners.forEach(function(et){et()})},eo.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},FocusManager}(eu.l))},46747:function(et,eo,ei){"use strict";ei.d(eo,{QueryClient:function(){return ea.S}});var ea=ei(89043),eu=ei(86755);ei.o(eu,"QueryClientProvider")&&ei.d(eo,{QueryClientProvider:function(){return eu.QueryClientProvider}}),ei.o(eu,"useMutation")&&ei.d(eo,{useMutation:function(){return eu.useMutation}}),ei.o(eu,"useQuery")&&ei.d(eo,{useQuery:function(){return eu.useQuery}}),ei.o(eu,"useQueryClient")&&ei.d(eo,{useQueryClient:function(){return eu.useQueryClient}})},41909:function(et,eo,ei){"use strict";ei.d(eo,{E:function(){return setLogger},j:function(){return getLogger}});var ea=console;function getLogger(){return ea}function setLogger(et){ea=et}},81262:function(et,eo,ei){"use strict";ei.d(eo,{R:function(){return getDefaultState},m:function(){return ef}});var ea=ei(64312),eu=ei(41909),ed=ei(101),eh=ei(21216),ep=ei(52288),ef=function(){function Mutation(et){this.options=(0,ea.Z)({},et.defaultOptions,et.options),this.mutationId=et.mutationId,this.mutationCache=et.mutationCache,this.observers=[],this.state=et.state||getDefaultState(),this.meta=et.meta}var et=Mutation.prototype;return et.setState=function(et){this.dispatch({type:"setState",state:et})},et.addObserver=function(et){-1===this.observers.indexOf(et)&&this.observers.push(et)},et.removeObserver=function(et){this.observers=this.observers.filter(function(eo){return eo!==et})},et.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(ep.ZT).catch(ep.ZT)):Promise.resolve()},et.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},et.execute=function(){var et,eo=this,ei="loading"===this.state.status,ea=Promise.resolve();return ei||(this.dispatch({type:"loading",variables:this.options.variables}),ea=ea.then(function(){null==eo.mutationCache.config.onMutate||eo.mutationCache.config.onMutate(eo.state.variables,eo)}).then(function(){return null==eo.options.onMutate?void 0:eo.options.onMutate(eo.state.variables)}).then(function(et){et!==eo.state.context&&eo.dispatch({type:"loading",context:et,variables:eo.state.variables})})),ea.then(function(){return eo.executeMutation()}).then(function(ei){et=ei,null==eo.mutationCache.config.onSuccess||eo.mutationCache.config.onSuccess(et,eo.state.variables,eo.state.context,eo)}).then(function(){return null==eo.options.onSuccess?void 0:eo.options.onSuccess(et,eo.state.variables,eo.state.context)}).then(function(){return null==eo.options.onSettled?void 0:eo.options.onSettled(et,null,eo.state.variables,eo.state.context)}).then(function(){return eo.dispatch({type:"success",data:et}),et}).catch(function(et){return null==eo.mutationCache.config.onError||eo.mutationCache.config.onError(et,eo.state.variables,eo.state.context,eo),(0,eu.j)().error(et),Promise.resolve().then(function(){return null==eo.options.onError?void 0:eo.options.onError(et,eo.state.variables,eo.state.context)}).then(function(){return null==eo.options.onSettled?void 0:eo.options.onSettled(void 0,et,eo.state.variables,eo.state.context)}).then(function(){throw eo.dispatch({type:"error",error:et}),et})})},et.executeMutation=function(){var et,eo=this;return this.retryer=new eh.m4({fn:function(){return eo.options.mutationFn?eo.options.mutationFn(eo.state.variables):Promise.reject("No mutationFn found")},onFail:function(){eo.dispatch({type:"failed"})},onPause:function(){eo.dispatch({type:"pause"})},onContinue:function(){eo.dispatch({type:"continue"})},retry:null!=(et=this.options.retry)?et:0,retryDelay:this.options.retryDelay}),this.retryer.promise},et.dispatch=function(et){var eo=this;this.state=reducer(this.state,et),ed.V.batch(function(){eo.observers.forEach(function(eo){eo.onMutationUpdate(et)}),eo.mutationCache.notify(eo)})},Mutation}();function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function reducer(et,eo){switch(eo.type){case"failed":return(0,ea.Z)({},et,{failureCount:et.failureCount+1});case"pause":return(0,ea.Z)({},et,{isPaused:!0});case"continue":return(0,ea.Z)({},et,{isPaused:!1});case"loading":return(0,ea.Z)({},et,{context:eo.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:eo.variables});case"success":return(0,ea.Z)({},et,{data:eo.data,error:null,status:"success",isPaused:!1});case"error":return(0,ea.Z)({},et,{data:void 0,error:eo.error,failureCount:et.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,ea.Z)({},et,eo.state);default:return et}}},101:function(et,eo,ei){"use strict";ei.d(eo,{V:function(){return eu}});var ea=ei(52288),eu=new(function(){function NotifyManager(){this.queue=[],this.transactions=0,this.notifyFn=function(et){et()},this.batchNotifyFn=function(et){et()}}var et=NotifyManager.prototype;return et.batch=function(et){var eo;this.transactions++;try{eo=et()}finally{this.transactions--,this.transactions||this.flush()}return eo},et.schedule=function(et){var eo=this;this.transactions?this.queue.push(et):(0,ea.A4)(function(){eo.notifyFn(et)})},et.batchCalls=function(et){var eo=this;return function(){for(var ei=arguments.length,ea=Array(ei),eu=0;eu<ei;eu++)ea[eu]=arguments[eu];eo.schedule(function(){et.apply(void 0,ea)})}},et.flush=function(){var et=this,eo=this.queue;this.queue=[],eo.length&&(0,ea.A4)(function(){et.batchNotifyFn(function(){eo.forEach(function(eo){et.notifyFn(eo)})})})},et.setNotifyFunction=function(et){this.notifyFn=et},et.setBatchNotifyFunction=function(et){this.batchNotifyFn=et},NotifyManager}())},40068:function(et,eo,ei){"use strict";ei.d(eo,{N:function(){return eh}});var ea=ei(72784),eu=ei(52943),ed=ei(52288),eh=new(function(et){function OnlineManager(){var eo;return(eo=et.call(this)||this).setup=function(et){var eo;if(!ed.sk&&(null==(eo=window)?void 0:eo.addEventListener)){var listener=function(){return et()};return window.addEventListener("online",listener,!1),window.addEventListener("offline",listener,!1),function(){window.removeEventListener("online",listener),window.removeEventListener("offline",listener)}}},eo}(0,ea.Z)(OnlineManager,et);var eo=OnlineManager.prototype;return eo.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},eo.onUnsubscribe=function(){if(!this.hasListeners()){var et;null==(et=this.cleanup)||et.call(this),this.cleanup=void 0}},eo.setEventListener=function(et){var eo,ei=this;this.setup=et,null==(eo=this.cleanup)||eo.call(this),this.cleanup=et(function(et){"boolean"==typeof et?ei.setOnline(et):ei.onOnline()})},eo.setOnline=function(et){this.online=et,et&&this.onOnline()},eo.onOnline=function(){this.listeners.forEach(function(et){et()})},eo.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},OnlineManager}(eu.l))},89043:function(et,eo,ei){"use strict";ei.d(eo,{S:function(){return eA}});var ea=ei(64312),eu=ei(52288),ed=ei(72784),eh=ei(101),ep=ei(41909),ef=ei(21216),em=function(){function Query(et){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=et.defaultOptions,this.setOptions(et.options),this.observers=[],this.cache=et.cache,this.queryKey=et.queryKey,this.queryHash=et.queryHash,this.initialState=et.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=et.meta,this.scheduleGc()}var et=Query.prototype;return et.setOptions=function(et){var eo;this.options=(0,ea.Z)({},this.defaultOptions,et),this.meta=null==et?void 0:et.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(eo=this.options.cacheTime)?eo:3e5)},et.setDefaultOptions=function(et){this.defaultOptions=et},et.scheduleGc=function(){var et=this;this.clearGcTimeout(),(0,eu.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){et.optionalRemove()},this.cacheTime))},et.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},et.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},et.setData=function(et,eo){var ei,ea,ed=this.state.data,eh=(0,eu.SE)(et,ed);return(null==(ei=(ea=this.options).isDataEqual)?void 0:ei.call(ea,ed,eh))?eh=ed:!1!==this.options.structuralSharing&&(eh=(0,eu.Q$)(ed,eh)),this.dispatch({data:eh,type:"success",dataUpdatedAt:null==eo?void 0:eo.updatedAt}),eh},et.setState=function(et,eo){this.dispatch({type:"setState",state:et,setStateOptions:eo})},et.cancel=function(et){var eo,ei=this.promise;return null==(eo=this.retryer)||eo.cancel(et),ei?ei.then(eu.ZT).catch(eu.ZT):Promise.resolve()},et.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},et.reset=function(){this.destroy(),this.setState(this.initialState)},et.isActive=function(){return this.observers.some(function(et){return!1!==et.options.enabled})},et.isFetching=function(){return this.state.isFetching},et.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(et){return et.getCurrentResult().isStale})},et.isStaleByTime=function(et){return void 0===et&&(et=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,eu.Kp)(this.state.dataUpdatedAt,et)},et.onFocus=function(){var et,eo=this.observers.find(function(et){return et.shouldFetchOnWindowFocus()});eo&&eo.refetch(),null==(et=this.retryer)||et.continue()},et.onOnline=function(){var et,eo=this.observers.find(function(et){return et.shouldFetchOnReconnect()});eo&&eo.refetch(),null==(et=this.retryer)||et.continue()},et.addObserver=function(et){-1===this.observers.indexOf(et)&&(this.observers.push(et),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:et}))},et.removeObserver=function(et){-1!==this.observers.indexOf(et)&&(this.observers=this.observers.filter(function(eo){return eo!==et}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:et}))},et.getObserversCount=function(){return this.observers.length},et.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},et.fetch=function(et,eo){var ei,ea,ed,eh,em,eg,ey=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==eo?void 0:eo.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(ei=this.retryer)||ei.continueRetry(),this.promise}if(et&&this.setOptions(et),!this.options.queryFn){var eC=this.observers.find(function(et){return et.options.queryFn});eC&&this.setOptions(eC.options)}var eS=(0,eu.mc)(this.queryKey),e_=(0,eu.G9)(),ew={queryKey:eS,pageParam:void 0,meta:this.meta};Object.defineProperty(ew,"signal",{enumerable:!0,get:function(){if(e_)return ey.abortSignalConsumed=!0,e_.signal}});var fetchFn=function(){return ey.options.queryFn?(ey.abortSignalConsumed=!1,ey.options.queryFn(ew)):Promise.reject("Missing queryFn")},eA={fetchOptions:eo,options:this.options,queryKey:eS,state:this.state,fetchFn:fetchFn,meta:this.meta};return(null==(eh=this.options.behavior)?void 0:eh.onFetch)&&(null==(ea=this.options.behavior)||ea.onFetch(eA)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(em=eA.fetchOptions)?void 0:em.meta)||this.dispatch({type:"fetch",meta:null==(ed=eA.fetchOptions)?void 0:ed.meta}),this.retryer=new ef.m4({fn:eA.fetchFn,abort:null==e_?void 0:null==(eg=e_.abort)?void 0:eg.bind(e_),onSuccess:function(et){ey.setData(et),null==ey.cache.config.onSuccess||ey.cache.config.onSuccess(et,ey),0===ey.cacheTime&&ey.optionalRemove()},onError:function(et){(0,ef.DV)(et)&&et.silent||ey.dispatch({type:"error",error:et}),(0,ef.DV)(et)||(null==ey.cache.config.onError||ey.cache.config.onError(et,ey),(0,ep.j)().error(et)),0===ey.cacheTime&&ey.optionalRemove()},onFail:function(){ey.dispatch({type:"failed"})},onPause:function(){ey.dispatch({type:"pause"})},onContinue:function(){ey.dispatch({type:"continue"})},retry:eA.options.retry,retryDelay:eA.options.retryDelay}),this.promise=this.retryer.promise,this.promise},et.dispatch=function(et){var eo=this;this.state=this.reducer(this.state,et),eh.V.batch(function(){eo.observers.forEach(function(eo){eo.onQueryUpdate(et)}),eo.cache.notify({query:eo,type:"queryUpdated",action:et})})},et.getDefaultState=function(et){var eo="function"==typeof et.initialData?et.initialData():et.initialData,ei=void 0!==et.initialData?"function"==typeof et.initialDataUpdatedAt?et.initialDataUpdatedAt():et.initialDataUpdatedAt:0,ea=void 0!==eo;return{data:eo,dataUpdateCount:0,dataUpdatedAt:ea?null!=ei?ei:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:ea?"success":"idle"}},et.reducer=function(et,eo){var ei,eu;switch(eo.type){case"failed":return(0,ea.Z)({},et,{fetchFailureCount:et.fetchFailureCount+1});case"pause":return(0,ea.Z)({},et,{isPaused:!0});case"continue":return(0,ea.Z)({},et,{isPaused:!1});case"fetch":return(0,ea.Z)({},et,{fetchFailureCount:0,fetchMeta:null!=(ei=eo.meta)?ei:null,isFetching:!0,isPaused:!1},!et.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,ea.Z)({},et,{data:eo.data,dataUpdateCount:et.dataUpdateCount+1,dataUpdatedAt:null!=(eu=eo.dataUpdatedAt)?eu:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var ed=eo.error;if((0,ef.DV)(ed)&&ed.revert&&this.revertState)return(0,ea.Z)({},this.revertState);return(0,ea.Z)({},et,{error:ed,errorUpdateCount:et.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:et.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,ea.Z)({},et,{isInvalidated:!0});case"setState":return(0,ea.Z)({},et,eo.state);default:return et}},Query}(),eg=ei(52943),ey=function(et){function QueryCache(eo){var ei;return(ei=et.call(this)||this).config=eo||{},ei.queries=[],ei.queriesMap={},ei}(0,ed.Z)(QueryCache,et);var eo=QueryCache.prototype;return eo.build=function(et,eo,ei){var ea,ed=eo.queryKey,eh=null!=(ea=eo.queryHash)?ea:(0,eu.Rm)(ed,eo),ep=this.get(eh);return ep||(ep=new em({cache:this,queryKey:ed,queryHash:eh,options:et.defaultQueryOptions(eo),state:ei,defaultOptions:et.getQueryDefaults(ed),meta:eo.meta}),this.add(ep)),ep},eo.add=function(et){this.queriesMap[et.queryHash]||(this.queriesMap[et.queryHash]=et,this.queries.push(et),this.notify({type:"queryAdded",query:et}))},eo.remove=function(et){var eo=this.queriesMap[et.queryHash];eo&&(et.destroy(),this.queries=this.queries.filter(function(eo){return eo!==et}),eo===et&&delete this.queriesMap[et.queryHash],this.notify({type:"queryRemoved",query:et}))},eo.clear=function(){var et=this;eh.V.batch(function(){et.queries.forEach(function(eo){et.remove(eo)})})},eo.get=function(et){return this.queriesMap[et]},eo.getAll=function(){return this.queries},eo.find=function(et,eo){var ei=(0,eu.I6)(et,eo)[0];return void 0===ei.exact&&(ei.exact=!0),this.queries.find(function(et){return(0,eu._x)(ei,et)})},eo.findAll=function(et,eo){var ei=(0,eu.I6)(et,eo)[0];return Object.keys(ei).length>0?this.queries.filter(function(et){return(0,eu._x)(ei,et)}):this.queries},eo.notify=function(et){var eo=this;eh.V.batch(function(){eo.listeners.forEach(function(eo){eo(et)})})},eo.onFocus=function(){var et=this;eh.V.batch(function(){et.queries.forEach(function(et){et.onFocus()})})},eo.onOnline=function(){var et=this;eh.V.batch(function(){et.queries.forEach(function(et){et.onOnline()})})},QueryCache}(eg.l),eC=ei(81262),eS=function(et){function MutationCache(eo){var ei;return(ei=et.call(this)||this).config=eo||{},ei.mutations=[],ei.mutationId=0,ei}(0,ed.Z)(MutationCache,et);var eo=MutationCache.prototype;return eo.build=function(et,eo,ei){var ea=new eC.m({mutationCache:this,mutationId:++this.mutationId,options:et.defaultMutationOptions(eo),state:ei,defaultOptions:eo.mutationKey?et.getMutationDefaults(eo.mutationKey):void 0,meta:eo.meta});return this.add(ea),ea},eo.add=function(et){this.mutations.push(et),this.notify(et)},eo.remove=function(et){this.mutations=this.mutations.filter(function(eo){return eo!==et}),et.cancel(),this.notify(et)},eo.clear=function(){var et=this;eh.V.batch(function(){et.mutations.forEach(function(eo){et.remove(eo)})})},eo.getAll=function(){return this.mutations},eo.find=function(et){return void 0===et.exact&&(et.exact=!0),this.mutations.find(function(eo){return(0,eu.X7)(et,eo)})},eo.findAll=function(et){return this.mutations.filter(function(eo){return(0,eu.X7)(et,eo)})},eo.notify=function(et){var eo=this;eh.V.batch(function(){eo.listeners.forEach(function(eo){eo(et)})})},eo.onFocus=function(){this.resumePausedMutations()},eo.onOnline=function(){this.resumePausedMutations()},eo.resumePausedMutations=function(){var et=this.mutations.filter(function(et){return et.state.isPaused});return eh.V.batch(function(){return et.reduce(function(et,eo){return et.then(function(){return eo.continue().catch(eu.ZT)})},Promise.resolve())})},MutationCache}(eg.l),e_=ei(59852),ew=ei(40068);function infiniteQueryBehavior(){return{onFetch:function(et){et.fetchFn=function(){var eo,ei,ea,ed,eh,ep,em,eg=null==(eo=et.fetchOptions)?void 0:null==(ei=eo.meta)?void 0:ei.refetchPage,ey=null==(ea=et.fetchOptions)?void 0:null==(ed=ea.meta)?void 0:ed.fetchMore,eC=null==ey?void 0:ey.pageParam,eS=(null==ey?void 0:ey.direction)==="forward",e_=(null==ey?void 0:ey.direction)==="backward",ew=(null==(eh=et.state.data)?void 0:eh.pages)||[],eA=(null==(ep=et.state.data)?void 0:ep.pageParams)||[],eI=(0,eu.G9)(),eR=null==eI?void 0:eI.signal,eT=eA,eE=!1,eP=et.options.queryFn||function(){return Promise.reject("Missing queryFn")},buildNewPages=function(et,eo,ei,ea){return eT=ea?[eo].concat(eT):[].concat(eT,[eo]),ea?[ei].concat(et):[].concat(et,[ei])},fetchPage=function(eo,ei,ea,eu){if(eE)return Promise.reject("Cancelled");if(void 0===ea&&!ei&&eo.length)return Promise.resolve(eo);var ed=eP({queryKey:et.queryKey,signal:eR,pageParam:ea,meta:et.meta}),eh=Promise.resolve(ed).then(function(et){return buildNewPages(eo,ea,et,eu)});return(0,ef.LE)(ed)&&(eh.cancel=ed.cancel),eh};if(ew.length){if(eS){var ek=void 0!==eC,eO=ek?eC:getNextPageParam(et.options,ew);em=fetchPage(ew,ek,eO)}else if(e_){var eM=void 0!==eC,eD=eM?eC:getPreviousPageParam(et.options,ew);em=fetchPage(ew,eM,eD,!0)}else!function(){eT=[];var eo=void 0===et.options.getNextPageParam;em=!eg||!ew[0]||eg(ew[0],0,ew)?fetchPage([],eo,eA[0]):Promise.resolve(buildNewPages([],eA[0],ew[0]));for(var _loop=function(ei){em=em.then(function(ea){if(!eg||!ew[ei]||eg(ew[ei],ei,ew)){var eu=eo?eA[ei]:getNextPageParam(et.options,ea);return fetchPage(ea,eo,eu)}return Promise.resolve(buildNewPages(ea,eA[ei],ew[ei]))})},ei=1;ei<ew.length;ei++)_loop(ei)}()}else em=fetchPage([]);var eU=em.then(function(et){return{pages:et,pageParams:eT}});return eU.cancel=function(){eE=!0,null==eI||eI.abort(),(0,ef.LE)(em)&&em.cancel()},eU}}}}function getNextPageParam(et,eo){return null==et.getNextPageParam?void 0:et.getNextPageParam(eo[eo.length-1],eo)}function getPreviousPageParam(et,eo){return null==et.getPreviousPageParam?void 0:et.getPreviousPageParam(eo[0],eo)}var eA=function(){function QueryClient(et){void 0===et&&(et={}),this.queryCache=et.queryCache||new ey,this.mutationCache=et.mutationCache||new eS,this.defaultOptions=et.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var et=QueryClient.prototype;return et.mount=function(){var et=this;this.unsubscribeFocus=e_.j.subscribe(function(){e_.j.isFocused()&&ew.N.isOnline()&&(et.mutationCache.onFocus(),et.queryCache.onFocus())}),this.unsubscribeOnline=ew.N.subscribe(function(){e_.j.isFocused()&&ew.N.isOnline()&&(et.mutationCache.onOnline(),et.queryCache.onOnline())})},et.unmount=function(){var et,eo;null==(et=this.unsubscribeFocus)||et.call(this),null==(eo=this.unsubscribeOnline)||eo.call(this)},et.isFetching=function(et,eo){var ei=(0,eu.I6)(et,eo)[0];return ei.fetching=!0,this.queryCache.findAll(ei).length},et.isMutating=function(et){return this.mutationCache.findAll((0,ea.Z)({},et,{fetching:!0})).length},et.getQueryData=function(et,eo){var ei;return null==(ei=this.queryCache.find(et,eo))?void 0:ei.state.data},et.getQueriesData=function(et){return this.getQueryCache().findAll(et).map(function(et){return[et.queryKey,et.state.data]})},et.setQueryData=function(et,eo,ei){var ea=(0,eu._v)(et),ed=this.defaultQueryOptions(ea);return this.queryCache.build(this,ed).setData(eo,ei)},et.setQueriesData=function(et,eo,ei){var ea=this;return eh.V.batch(function(){return ea.getQueryCache().findAll(et).map(function(et){var eu=et.queryKey;return[eu,ea.setQueryData(eu,eo,ei)]})})},et.getQueryState=function(et,eo){var ei;return null==(ei=this.queryCache.find(et,eo))?void 0:ei.state},et.removeQueries=function(et,eo){var ei=(0,eu.I6)(et,eo)[0],ea=this.queryCache;eh.V.batch(function(){ea.findAll(ei).forEach(function(et){ea.remove(et)})})},et.resetQueries=function(et,eo,ei){var ed=this,ep=(0,eu.I6)(et,eo,ei),ef=ep[0],em=ep[1],eg=this.queryCache,ey=(0,ea.Z)({},ef,{active:!0});return eh.V.batch(function(){return eg.findAll(ef).forEach(function(et){et.reset()}),ed.refetchQueries(ey,em)})},et.cancelQueries=function(et,eo,ei){var ea=this,ed=(0,eu.I6)(et,eo,ei),ep=ed[0],ef=ed[1],em=void 0===ef?{}:ef;return void 0===em.revert&&(em.revert=!0),Promise.all(eh.V.batch(function(){return ea.queryCache.findAll(ep).map(function(et){return et.cancel(em)})})).then(eu.ZT).catch(eu.ZT)},et.invalidateQueries=function(et,eo,ei){var ed,ep,ef,em=this,eg=(0,eu.I6)(et,eo,ei),ey=eg[0],eC=eg[1],eS=(0,ea.Z)({},ey,{active:null==(ed=null!=(ep=ey.refetchActive)?ep:ey.active)||ed,inactive:null!=(ef=ey.refetchInactive)&&ef});return eh.V.batch(function(){return em.queryCache.findAll(ey).forEach(function(et){et.invalidate()}),em.refetchQueries(eS,eC)})},et.refetchQueries=function(et,eo,ei){var ed=this,ep=(0,eu.I6)(et,eo,ei),ef=ep[0],em=ep[1],eg=Promise.all(eh.V.batch(function(){return ed.queryCache.findAll(ef).map(function(et){return et.fetch(void 0,(0,ea.Z)({},em,{meta:{refetchPage:null==ef?void 0:ef.refetchPage}}))})})).then(eu.ZT);return(null==em?void 0:em.throwOnError)||(eg=eg.catch(eu.ZT)),eg},et.fetchQuery=function(et,eo,ei){var ea=(0,eu._v)(et,eo,ei),ed=this.defaultQueryOptions(ea);void 0===ed.retry&&(ed.retry=!1);var eh=this.queryCache.build(this,ed);return eh.isStaleByTime(ed.staleTime)?eh.fetch(ed):Promise.resolve(eh.state.data)},et.prefetchQuery=function(et,eo,ei){return this.fetchQuery(et,eo,ei).then(eu.ZT).catch(eu.ZT)},et.fetchInfiniteQuery=function(et,eo,ei){var ea=(0,eu._v)(et,eo,ei);return ea.behavior=infiniteQueryBehavior(),this.fetchQuery(ea)},et.prefetchInfiniteQuery=function(et,eo,ei){return this.fetchInfiniteQuery(et,eo,ei).then(eu.ZT).catch(eu.ZT)},et.cancelMutations=function(){var et=this;return Promise.all(eh.V.batch(function(){return et.mutationCache.getAll().map(function(et){return et.cancel()})})).then(eu.ZT).catch(eu.ZT)},et.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},et.executeMutation=function(et){return this.mutationCache.build(this,et).execute()},et.getQueryCache=function(){return this.queryCache},et.getMutationCache=function(){return this.mutationCache},et.getDefaultOptions=function(){return this.defaultOptions},et.setDefaultOptions=function(et){this.defaultOptions=et},et.setQueryDefaults=function(et,eo){var ei=this.queryDefaults.find(function(eo){return(0,eu.yF)(et)===(0,eu.yF)(eo.queryKey)});ei?ei.defaultOptions=eo:this.queryDefaults.push({queryKey:et,defaultOptions:eo})},et.getQueryDefaults=function(et){var eo;return et?null==(eo=this.queryDefaults.find(function(eo){return(0,eu.to)(et,eo.queryKey)}))?void 0:eo.defaultOptions:void 0},et.setMutationDefaults=function(et,eo){var ei=this.mutationDefaults.find(function(eo){return(0,eu.yF)(et)===(0,eu.yF)(eo.mutationKey)});ei?ei.defaultOptions=eo:this.mutationDefaults.push({mutationKey:et,defaultOptions:eo})},et.getMutationDefaults=function(et){var eo;return et?null==(eo=this.mutationDefaults.find(function(eo){return(0,eu.to)(et,eo.mutationKey)}))?void 0:eo.defaultOptions:void 0},et.defaultQueryOptions=function(et){if(null==et?void 0:et._defaulted)return et;var eo=(0,ea.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==et?void 0:et.queryKey),et,{_defaulted:!0});return!eo.queryHash&&eo.queryKey&&(eo.queryHash=(0,eu.Rm)(eo.queryKey,eo)),eo},et.defaultQueryObserverOptions=function(et){return this.defaultQueryOptions(et)},et.defaultMutationOptions=function(et){return(null==et?void 0:et._defaulted)?et:(0,ea.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==et?void 0:et.mutationKey),et,{_defaulted:!0})},et.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},QueryClient}()},21216:function(et,eo,ei){"use strict";ei.d(eo,{DV:function(){return isCancelledError},LE:function(){return isCancelable},m4:function(){return Retryer}});var ea=ei(59852),eu=ei(40068),ed=ei(52288);function defaultRetryDelay(et){return Math.min(1e3*Math.pow(2,et),3e4)}function isCancelable(et){return"function"==typeof(null==et?void 0:et.cancel)}var CancelledError=function(et){this.revert=null==et?void 0:et.revert,this.silent=null==et?void 0:et.silent};function isCancelledError(et){return et instanceof CancelledError}var Retryer=function(et){var eo,ei,eh,ep,ef=this,em=!1;this.abort=et.abort,this.cancel=function(et){return null==eo?void 0:eo(et)},this.cancelRetry=function(){em=!0},this.continueRetry=function(){em=!1},this.continue=function(){return null==ei?void 0:ei()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(et,eo){eh=et,ep=eo});var resolve=function(eo){ef.isResolved||(ef.isResolved=!0,null==et.onSuccess||et.onSuccess(eo),null==ei||ei(),eh(eo))},reject=function(eo){ef.isResolved||(ef.isResolved=!0,null==et.onError||et.onError(eo),null==ei||ei(),ep(eo))},pause=function(){return new Promise(function(eo){ei=eo,ef.isPaused=!0,null==et.onPause||et.onPause()}).then(function(){ei=void 0,ef.isPaused=!1,null==et.onContinue||et.onContinue()})};!function run(){var ei;if(!ef.isResolved){try{ei=et.fn()}catch(et){ei=Promise.reject(et)}eo=function(et){if(!ef.isResolved&&(reject(new CancelledError(et)),null==ef.abort||ef.abort(),isCancelable(ei)))try{ei.cancel()}catch(et){}},ef.isTransportCancelable=isCancelable(ei),Promise.resolve(ei).then(resolve).catch(function(eo){if(!ef.isResolved){var ei,eh,ep=null!=(ei=et.retry)?ei:3,eg=null!=(eh=et.retryDelay)?eh:defaultRetryDelay,ey="function"==typeof eg?eg(ef.failureCount,eo):eg,eC=!0===ep||"number"==typeof ep&&ef.failureCount<ep||"function"==typeof ep&&ep(ef.failureCount,eo);if(em||!eC){reject(eo);return}ef.failureCount++,null==et.onFail||et.onFail(ef.failureCount,eo),(0,ed.Gh)(ey).then(function(){if(!ea.j.isFocused()||!eu.N.isOnline())return pause()}).then(function(){em?reject(eo):run()})}})}}()}},52943:function(et,eo,ei){"use strict";ei.d(eo,{l:function(){return ea}});var ea=function(){function Subscribable(){this.listeners=[]}var et=Subscribable.prototype;return et.subscribe=function(et){var eo=this,ei=et||function(){};return this.listeners.push(ei),this.onSubscribe(),function(){eo.listeners=eo.listeners.filter(function(et){return et!==ei}),eo.onUnsubscribe()}},et.hasListeners=function(){return this.listeners.length>0},et.onSubscribe=function(){},et.onUnsubscribe=function(){},Subscribable}()},86755:function(){},52288:function(et,eo,ei){"use strict";ei.d(eo,{A4:function(){return scheduleMicrotask},G9:function(){return getAbortController},Gh:function(){return sleep},I6:function(){return parseFilterArgs},Kp:function(){return timeUntilStale},PN:function(){return isValidTimeout},Q$:function(){return replaceEqualDeep},Rm:function(){return hashQueryKeyByOptions},SE:function(){return functionalUpdate},VS:function(){return shallowEqualObjects},X7:function(){return matchMutation},ZT:function(){return noop},_v:function(){return parseQueryArgs},_x:function(){return matchQuery},lV:function(){return parseMutationArgs},mc:function(){return ensureQueryKeyArray},sk:function(){return eu},to:function(){return partialMatchKey},yF:function(){return hashQueryKey}});var ea=ei(64312),eu="undefined"==typeof window;function noop(){}function functionalUpdate(et,eo){return"function"==typeof et?et(eo):et}function isValidTimeout(et){return"number"==typeof et&&et>=0&&et!==1/0}function ensureQueryKeyArray(et){return Array.isArray(et)?et:[et]}function timeUntilStale(et,eo){return Math.max(et+(eo||0)-Date.now(),0)}function parseQueryArgs(et,eo,ei){return isQueryKey(et)?"function"==typeof eo?(0,ea.Z)({},ei,{queryKey:et,queryFn:eo}):(0,ea.Z)({},eo,{queryKey:et}):et}function parseMutationArgs(et,eo,ei){return isQueryKey(et)?"function"==typeof eo?(0,ea.Z)({},ei,{mutationKey:et,mutationFn:eo}):(0,ea.Z)({},eo,{mutationKey:et}):"function"==typeof et?(0,ea.Z)({},eo,{mutationFn:et}):(0,ea.Z)({},et)}function parseFilterArgs(et,eo,ei){return isQueryKey(et)?[(0,ea.Z)({},eo,{queryKey:et}),ei]:[et||{},eo]}function mapQueryStatusFilter(et,eo){return!0===et&&!0===eo||null==et&&null==eo?"all":!1===et&&!1===eo?"none":(null!=et?et:!eo)?"active":"inactive"}function matchQuery(et,eo){var ei=et.active,ea=et.exact,eu=et.fetching,ed=et.inactive,eh=et.predicate,ep=et.queryKey,ef=et.stale;if(isQueryKey(ep)){if(ea){if(eo.queryHash!==hashQueryKeyByOptions(ep,eo.options))return!1}else if(!partialMatchKey(eo.queryKey,ep))return!1}var em=mapQueryStatusFilter(ei,ed);if("none"===em)return!1;if("all"!==em){var eg=eo.isActive();if("active"===em&&!eg||"inactive"===em&&eg)return!1}return("boolean"!=typeof ef||eo.isStale()===ef)&&("boolean"!=typeof eu||eo.isFetching()===eu)&&(!eh||!!eh(eo))}function matchMutation(et,eo){var ei=et.exact,ea=et.fetching,eu=et.predicate,ed=et.mutationKey;if(isQueryKey(ed)){if(!eo.options.mutationKey)return!1;if(ei){if(hashQueryKey(eo.options.mutationKey)!==hashQueryKey(ed))return!1}else if(!partialMatchKey(eo.options.mutationKey,ed))return!1}return("boolean"!=typeof ea||"loading"===eo.state.status===ea)&&(!eu||!!eu(eo))}function hashQueryKeyByOptions(et,eo){return((null==eo?void 0:eo.queryKeyHashFn)||hashQueryKey)(et)}function hashQueryKey(et){return stableValueHash(ensureQueryKeyArray(et))}function stableValueHash(et){return JSON.stringify(et,function(et,eo){return isPlainObject(eo)?Object.keys(eo).sort().reduce(function(et,ei){return et[ei]=eo[ei],et},{}):eo})}function partialMatchKey(et,eo){return partialDeepEqual(ensureQueryKeyArray(et),ensureQueryKeyArray(eo))}function partialDeepEqual(et,eo){return et===eo||typeof et==typeof eo&&!!et&&!!eo&&"object"==typeof et&&"object"==typeof eo&&!Object.keys(eo).some(function(ei){return!partialDeepEqual(et[ei],eo[ei])})}function replaceEqualDeep(et,eo){if(et===eo)return et;var ei=Array.isArray(et)&&Array.isArray(eo);if(ei||isPlainObject(et)&&isPlainObject(eo)){for(var ea=ei?et.length:Object.keys(et).length,eu=ei?eo:Object.keys(eo),ed=eu.length,eh=ei?[]:{},ep=0,ef=0;ef<ed;ef++){var em=ei?ef:eu[ef];eh[em]=replaceEqualDeep(et[em],eo[em]),eh[em]===et[em]&&ep++}return ea===ed&&ep===ea?et:eh}return eo}function shallowEqualObjects(et,eo){if(et&&!eo||eo&&!et)return!1;for(var ei in et)if(et[ei]!==eo[ei])return!1;return!0}function isPlainObject(et){if(!hasObjectPrototype(et))return!1;var eo=et.constructor;if(void 0===eo)return!0;var ei=eo.prototype;return!!(hasObjectPrototype(ei)&&ei.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(et){return"[object Object]"===Object.prototype.toString.call(et)}function isQueryKey(et){return"string"==typeof et||Array.isArray(et)}function sleep(et){return new Promise(function(eo){setTimeout(eo,et)})}function scheduleMicrotask(et){Promise.resolve().then(et).catch(function(et){return setTimeout(function(){throw et})})}function getAbortController(){if("function"==typeof AbortController)return new AbortController}},88767:function(et,eo,ei){"use strict";ei.d(eo,{QueryClient:function(){return ea.QueryClient},QueryClientProvider:function(){return eu.QueryClientProvider},useMutation:function(){return eu.useMutation},useQuery:function(){return eu.useQuery},useQueryClient:function(){return eu.useQueryClient}});var ea=ei(46747);ei.o(ea,"QueryClientProvider")&&ei.d(eo,{QueryClientProvider:function(){return ea.QueryClientProvider}}),ei.o(ea,"useMutation")&&ei.d(eo,{useMutation:function(){return ea.useMutation}}),ei.o(ea,"useQuery")&&ei.d(eo,{useQuery:function(){return ea.useQuery}}),ei.o(ea,"useQueryClient")&&ei.d(eo,{useQueryClient:function(){return ea.useQueryClient}});var eu=ei(48073)},48073:function(et,eo,ei){"use strict";ei.d(eo,{QueryClientProvider:function(){return QueryClientProvider},useMutation:function(){return useMutation},useQuery:function(){return useQuery},useQueryClient:function(){return useQueryClient}});var ea=ei(101),eu=ei(73935).unstable_batchedUpdates;ea.V.setBatchNotifyFunction(eu);var ed=ei(41909),eh=console;(0,ed.E)(eh);var ep=ei(67294),ef=ep.createContext(void 0),em=ep.createContext(!1);function getQueryClientContext(et){return et&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ef),window.ReactQueryClientContext):ef}var useQueryClient=function(){var et=ep.useContext(getQueryClientContext(ep.useContext(em)));if(!et)throw Error("No QueryClient set, use QueryClientProvider to set one");return et},QueryClientProvider=function(et){var eo=et.client,ei=et.contextSharing,ea=void 0!==ei&&ei,eu=et.children;ep.useEffect(function(){return eo.mount(),function(){eo.unmount()}},[eo]);var ed=getQueryClientContext(ea);return ep.createElement(em.Provider,{value:ea},ep.createElement(ed.Provider,{value:eo},eu))},eg=ei(64312),ey=ei(52288),eC=ei(72784),eS=ei(81262),e_=ei(52943),ew=function(et){function MutationObserver(eo,ei){var ea;return(ea=et.call(this)||this).client=eo,ea.setOptions(ei),ea.bindMethods(),ea.updateResult(),ea}(0,eC.Z)(MutationObserver,et);var eo=MutationObserver.prototype;return eo.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},eo.setOptions=function(et){this.options=this.client.defaultMutationOptions(et)},eo.onUnsubscribe=function(){if(!this.listeners.length){var et;null==(et=this.currentMutation)||et.removeObserver(this)}},eo.onMutationUpdate=function(et){this.updateResult();var eo={listeners:!0};"success"===et.type?eo.onSuccess=!0:"error"===et.type&&(eo.onError=!0),this.notify(eo)},eo.getCurrentResult=function(){return this.currentResult},eo.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},eo.mutate=function(et,eo){return this.mutateOptions=eo,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,eg.Z)({},this.options,{variables:void 0!==et?et:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},eo.updateResult=function(){var et=this.currentMutation?this.currentMutation.state:(0,eS.R)(),eo=(0,eg.Z)({},et,{isLoading:"loading"===et.status,isSuccess:"success"===et.status,isError:"error"===et.status,isIdle:"idle"===et.status,mutate:this.mutate,reset:this.reset});this.currentResult=eo},eo.notify=function(et){var eo=this;ea.V.batch(function(){eo.mutateOptions&&(et.onSuccess?(null==eo.mutateOptions.onSuccess||eo.mutateOptions.onSuccess(eo.currentResult.data,eo.currentResult.variables,eo.currentResult.context),null==eo.mutateOptions.onSettled||eo.mutateOptions.onSettled(eo.currentResult.data,null,eo.currentResult.variables,eo.currentResult.context)):et.onError&&(null==eo.mutateOptions.onError||eo.mutateOptions.onError(eo.currentResult.error,eo.currentResult.variables,eo.currentResult.context),null==eo.mutateOptions.onSettled||eo.mutateOptions.onSettled(void 0,eo.currentResult.error,eo.currentResult.variables,eo.currentResult.context))),et.listeners&&eo.listeners.forEach(function(et){et(eo.currentResult)})})},MutationObserver}(e_.l);function shouldThrowError(et,eo,ei){return"function"==typeof eo?eo.apply(void 0,ei):"boolean"==typeof eo?eo:!!et}function useMutation(et,eo,ei){var eu=ep.useRef(!1),ed=ep.useState(0)[1],eh=(0,ey.lV)(et,eo,ei),ef=useQueryClient(),em=ep.useRef();em.current?em.current.setOptions(eh):em.current=new ew(ef,eh);var eC=em.current.getCurrentResult();ep.useEffect(function(){eu.current=!0;var et=em.current.subscribe(ea.V.batchCalls(function(){eu.current&&ed(function(et){return et+1})}));return function(){eu.current=!1,et()}},[]);var eS=ep.useCallback(function(et,eo){em.current.mutate(et,eo).catch(ey.ZT)},[]);if(eC.error&&shouldThrowError(void 0,em.current.options.useErrorBoundary,[eC.error]))throw eC.error;return(0,eg.Z)({},eC,{mutate:eS,mutateAsync:eC.mutate})}var eA=ei(59852),eI=ei(21216),eR=function(et){function QueryObserver(eo,ei){var ea;return(ea=et.call(this)||this).client=eo,ea.options=ei,ea.trackedProps=[],ea.selectError=null,ea.bindMethods(),ea.setOptions(ei),ea}(0,eC.Z)(QueryObserver,et);var eo=QueryObserver.prototype;return eo.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},eo.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},eo.onUnsubscribe=function(){this.listeners.length||this.destroy()},eo.shouldFetchOnReconnect=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)},eo.shouldFetchOnWindowFocus=function(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},eo.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},eo.setOptions=function(et,eo){var ei=this.options,ea=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(et),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=ei.queryKey),this.updateQuery();var eu=this.hasListeners();eu&&shouldFetchOptionally(this.currentQuery,ea,this.options,ei)&&this.executeFetch(),this.updateResult(eo),eu&&(this.currentQuery!==ea||this.options.enabled!==ei.enabled||this.options.staleTime!==ei.staleTime)&&this.updateStaleTimeout();var ed=this.computeRefetchInterval();eu&&(this.currentQuery!==ea||this.options.enabled!==ei.enabled||ed!==this.currentRefetchInterval)&&this.updateRefetchInterval(ed)},eo.getOptimisticResult=function(et){var eo=this.client.defaultQueryObserverOptions(et),ei=this.client.getQueryCache().build(this.client,eo);return this.createResult(ei,eo)},eo.getCurrentResult=function(){return this.currentResult},eo.trackResult=function(et,eo){var ei=this,ea={},trackProp=function(et){ei.trackedProps.includes(et)||ei.trackedProps.push(et)};return Object.keys(et).forEach(function(eo){Object.defineProperty(ea,eo,{configurable:!1,enumerable:!0,get:function(){return trackProp(eo),et[eo]}})}),(eo.useErrorBoundary||eo.suspense)&&trackProp("error"),ea},eo.getNextResult=function(et){var eo=this;return new Promise(function(ei,ea){var eu=eo.subscribe(function(eo){eo.isFetching||(eu(),eo.isError&&(null==et?void 0:et.throwOnError)?ea(eo.error):ei(eo))})})},eo.getCurrentQuery=function(){return this.currentQuery},eo.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},eo.refetch=function(et){return this.fetch((0,eg.Z)({},et,{meta:{refetchPage:null==et?void 0:et.refetchPage}}))},eo.fetchOptimistic=function(et){var eo=this,ei=this.client.defaultQueryObserverOptions(et),ea=this.client.getQueryCache().build(this.client,ei);return ea.fetch().then(function(){return eo.createResult(ea,ei)})},eo.fetch=function(et){var eo=this;return this.executeFetch(et).then(function(){return eo.updateResult(),eo.currentResult})},eo.executeFetch=function(et){this.updateQuery();var eo=this.currentQuery.fetch(this.options,et);return(null==et?void 0:et.throwOnError)||(eo=eo.catch(ey.ZT)),eo},eo.updateStaleTimeout=function(){var et=this;if(this.clearStaleTimeout(),!ey.sk&&!this.currentResult.isStale&&(0,ey.PN)(this.options.staleTime)){var eo=(0,ey.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(function(){et.currentResult.isStale||et.updateResult()},eo)}},eo.computeRefetchInterval=function(){var et;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(et=this.options.refetchInterval)&&et},eo.updateRefetchInterval=function(et){var eo=this;this.clearRefetchInterval(),this.currentRefetchInterval=et,!ey.sk&&!1!==this.options.enabled&&(0,ey.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(eo.options.refetchIntervalInBackground||eA.j.isFocused())&&eo.executeFetch()},this.currentRefetchInterval))},eo.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},eo.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},eo.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},eo.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},eo.createResult=function(et,eo){var ei,ea,eu=this.currentQuery,eh=this.options,ep=this.currentResult,ef=this.currentResultState,em=this.currentResultOptions,eg=et!==eu,eC=eg?et.state:this.currentQueryInitialState,eS=eg?this.currentResult:this.previousQueryResult,e_=et.state,ew=e_.dataUpdatedAt,eA=e_.error,eI=e_.errorUpdatedAt,eR=e_.isFetching,eT=e_.status,eE=!1,eP=!1;if(eo.optimisticResults){var ek=this.hasListeners(),eO=!ek&&shouldFetchOnMount(et,eo),eM=ek&&shouldFetchOptionally(et,eu,eo,eh);(eO||eM)&&(eR=!0,ew||(eT="loading"))}if(eo.keepPreviousData&&!e_.dataUpdateCount&&(null==eS?void 0:eS.isSuccess)&&"error"!==eT)ei=eS.data,ew=eS.dataUpdatedAt,eT=eS.status,eE=!0;else if(eo.select&&void 0!==e_.data){if(ep&&e_.data===(null==ef?void 0:ef.data)&&eo.select===this.selectFn)ei=this.selectResult;else try{this.selectFn=eo.select,ei=eo.select(e_.data),!1!==eo.structuralSharing&&(ei=(0,ey.Q$)(null==ep?void 0:ep.data,ei)),this.selectResult=ei,this.selectError=null}catch(et){(0,ed.j)().error(et),this.selectError=et}}else ei=e_.data;if(void 0!==eo.placeholderData&&void 0===ei&&("loading"===eT||"idle"===eT)){if((null==ep?void 0:ep.isPlaceholderData)&&eo.placeholderData===(null==em?void 0:em.placeholderData))ea=ep.data;else if(ea="function"==typeof eo.placeholderData?eo.placeholderData():eo.placeholderData,eo.select&&void 0!==ea)try{ea=eo.select(ea),!1!==eo.structuralSharing&&(ea=(0,ey.Q$)(null==ep?void 0:ep.data,ea)),this.selectError=null}catch(et){(0,ed.j)().error(et),this.selectError=et}void 0!==ea&&(eT="success",ei=ea,eP=!0)}return this.selectError&&(eA=this.selectError,ei=this.selectResult,eI=Date.now(),eT="error"),{status:eT,isLoading:"loading"===eT,isSuccess:"success"===eT,isError:"error"===eT,isIdle:"idle"===eT,data:ei,dataUpdatedAt:ew,error:eA,errorUpdatedAt:eI,failureCount:e_.fetchFailureCount,errorUpdateCount:e_.errorUpdateCount,isFetched:e_.dataUpdateCount>0||e_.errorUpdateCount>0,isFetchedAfterMount:e_.dataUpdateCount>eC.dataUpdateCount||e_.errorUpdateCount>eC.errorUpdateCount,isFetching:eR,isRefetching:eR&&"loading"!==eT,isLoadingError:"error"===eT&&0===e_.dataUpdatedAt,isPlaceholderData:eP,isPreviousData:eE,isRefetchError:"error"===eT&&0!==e_.dataUpdatedAt,isStale:isStale(et,eo),refetch:this.refetch,remove:this.remove}},eo.shouldNotifyListeners=function(et,eo){if(!eo)return!0;var ei=this.options,ea=ei.notifyOnChangeProps,eu=ei.notifyOnChangePropsExclusions;if(!ea&&!eu||"tracked"===ea&&!this.trackedProps.length)return!0;var ed="tracked"===ea?this.trackedProps:ea;return Object.keys(et).some(function(ei){var ea=ei,eh=et[ea]!==eo[ea],ep=null==ed?void 0:ed.some(function(et){return et===ei}),ef=null==eu?void 0:eu.some(function(et){return et===ei});return eh&&!ef&&(!ed||ep)})},eo.updateResult=function(et){var eo=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,ey.VS)(this.currentResult,eo)){var ei={cache:!0};(null==et?void 0:et.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,eo)&&(ei.listeners=!0),this.notify((0,eg.Z)({},ei,et))}},eo.updateQuery=function(){var et=this.client.getQueryCache().build(this.client,this.options);if(et!==this.currentQuery){var eo=this.currentQuery;this.currentQuery=et,this.currentQueryInitialState=et.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==eo||eo.removeObserver(this),et.addObserver(this))}},eo.onQueryUpdate=function(et){var eo={};"success"===et.type?eo.onSuccess=!0:"error"!==et.type||(0,eI.DV)(et.error)||(eo.onError=!0),this.updateResult(eo),this.hasListeners()&&this.updateTimers()},eo.notify=function(et){var eo=this;ea.V.batch(function(){et.onSuccess?(null==eo.options.onSuccess||eo.options.onSuccess(eo.currentResult.data),null==eo.options.onSettled||eo.options.onSettled(eo.currentResult.data,null)):et.onError&&(null==eo.options.onError||eo.options.onError(eo.currentResult.error),null==eo.options.onSettled||eo.options.onSettled(void 0,eo.currentResult.error)),et.listeners&&eo.listeners.forEach(function(et){et(eo.currentResult)}),et.cache&&eo.client.getQueryCache().notify({query:eo.currentQuery,type:"observerResultsUpdated"})})},QueryObserver}(e_.l);function shouldLoadOnMount(et,eo){return!1!==eo.enabled&&!et.state.dataUpdatedAt&&!("error"===et.state.status&&!1===eo.retryOnMount)}function shouldFetchOnMount(et,eo){return shouldLoadOnMount(et,eo)||et.state.dataUpdatedAt>0&&shouldFetchOn(et,eo,eo.refetchOnMount)}function shouldFetchOn(et,eo,ei){if(!1!==eo.enabled){var ea="function"==typeof ei?ei(et):ei;return"always"===ea||!1!==ea&&isStale(et,eo)}return!1}function shouldFetchOptionally(et,eo,ei,ea){return!1!==ei.enabled&&(et!==eo||!1===ea.enabled)&&(!ei.suspense||"error"!==et.state.status)&&isStale(et,ei)}function isStale(et,eo){return et.isStaleByTime(eo.staleTime)}function createValue(){var et=!1;return{clearReset:function(){et=!1},reset:function(){et=!0},isReset:function(){return et}}}var eT=ep.createContext(createValue()),useQueryErrorResetBoundary=function(){return ep.useContext(eT)};function useBaseQuery(et,eo){var ei=ep.useRef(!1),eu=ep.useState(0)[1],ed=useQueryClient(),eh=useQueryErrorResetBoundary(),ef=ed.defaultQueryObserverOptions(et);ef.optimisticResults=!0,ef.onError&&(ef.onError=ea.V.batchCalls(ef.onError)),ef.onSuccess&&(ef.onSuccess=ea.V.batchCalls(ef.onSuccess)),ef.onSettled&&(ef.onSettled=ea.V.batchCalls(ef.onSettled)),ef.suspense&&("number"!=typeof ef.staleTime&&(ef.staleTime=1e3),0===ef.cacheTime&&(ef.cacheTime=1)),(ef.suspense||ef.useErrorBoundary)&&!eh.isReset()&&(ef.retryOnMount=!1);var em=ep.useState(function(){return new eo(ed,ef)})[0],eg=em.getOptimisticResult(ef);if(ep.useEffect(function(){ei.current=!0,eh.clearReset();var et=em.subscribe(ea.V.batchCalls(function(){ei.current&&eu(function(et){return et+1})}));return em.updateResult(),function(){ei.current=!1,et()}},[eh,em]),ep.useEffect(function(){em.setOptions(ef,{listeners:!1})},[ef,em]),ef.suspense&&eg.isLoading)throw em.fetchOptimistic(ef).then(function(et){var eo=et.data;null==ef.onSuccess||ef.onSuccess(eo),null==ef.onSettled||ef.onSettled(eo,null)}).catch(function(et){eh.clearReset(),null==ef.onError||ef.onError(et),null==ef.onSettled||ef.onSettled(void 0,et)});if(eg.isError&&!eh.isReset()&&!eg.isFetching&&shouldThrowError(ef.suspense,ef.useErrorBoundary,[eg.error,em.getCurrentQuery()]))throw eg.error;return"tracked"===ef.notifyOnChangeProps&&(eg=em.trackResult(eg,ef)),eg}function useQuery(et,eo,ei){return useBaseQuery((0,ey._v)(et,eo,ei),eR)}},89509:function(et,eo,ei){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ea=ei(48764),eu=ea.Buffer;function copyProps(et,eo){for(var ei in et)eo[ei]=et[ei]}function SafeBuffer(et,eo,ei){return eu(et,eo,ei)}eu.from&&eu.alloc&&eu.allocUnsafe&&eu.allocUnsafeSlow?et.exports=ea:(copyProps(ea,eo),eo.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(eu.prototype),copyProps(eu,SafeBuffer),SafeBuffer.from=function(et,eo,ei){if("number"==typeof et)throw TypeError("Argument must not be a number");return eu(et,eo,ei)},SafeBuffer.alloc=function(et,eo,ei){if("number"!=typeof et)throw TypeError("Argument must be a number");var ea=eu(et);return void 0!==eo?"string"==typeof ei?ea.fill(eo,ei):ea.fill(eo):ea.fill(0),ea},SafeBuffer.allocUnsafe=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return eu(et)},SafeBuffer.allocUnsafeSlow=function(et){if("number"!=typeof et)throw TypeError("Argument must be a number");return ea.SlowBuffer(et)}},32553:function(et,eo,ei){"use strict";var ea=ei(89509).Buffer,eu=ea.isEncoding||function(et){switch((et=""+et)&&et.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(et){var eo;if(!et)return"utf8";for(;;)switch(et){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return et;default:if(eo)return;et=(""+et).toLowerCase(),eo=!0}}function normalizeEncoding(et){var eo=_normalizeEncoding(et);if("string"!=typeof eo&&(ea.isEncoding===eu||!eu(et)))throw Error("Unknown encoding: "+et);return eo||et}function StringDecoder(et){var eo;switch(this.encoding=normalizeEncoding(et),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,eo=4;break;case"utf8":this.fillLast=utf8FillLast,eo=4;break;case"base64":this.text=base64Text,this.end=base64End,eo=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ea.allocUnsafe(eo)}function utf8CheckByte(et){return et<=127?0:et>>5==6?2:et>>4==14?3:et>>3==30?4:et>>6==2?-1:-2}function utf8CheckIncomplete(et,eo,ei){var ea=eo.length-1;if(ea<ei)return 0;var eu=utf8CheckByte(eo[ea]);return eu>=0?(eu>0&&(et.lastNeed=eu-1),eu):--ea<ei||-2===eu?0:(eu=utf8CheckByte(eo[ea]))>=0?(eu>0&&(et.lastNeed=eu-2),eu):--ea<ei||-2===eu?0:(eu=utf8CheckByte(eo[ea]))>=0?(eu>0&&(2===eu?eu=0:et.lastNeed=eu-3),eu):0}function utf8CheckExtraBytes(et,eo,ei){if((192&eo[0])!=128)return et.lastNeed=0,"�";if(et.lastNeed>1&&eo.length>1){if((192&eo[1])!=128)return et.lastNeed=1,"�";if(et.lastNeed>2&&eo.length>2&&(192&eo[2])!=128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var eo=this.lastTotal-this.lastNeed,ei=utf8CheckExtraBytes(this,et,eo);return void 0!==ei?ei:this.lastNeed<=et.length?(et.copy(this.lastChar,eo,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(et.copy(this.lastChar,eo,0,et.length),this.lastNeed-=et.length)}function utf8Text(et,eo){var ei=utf8CheckIncomplete(this,et,eo);if(!this.lastNeed)return et.toString("utf8",eo);this.lastTotal=ei;var ea=et.length-(ei-this.lastNeed);return et.copy(this.lastChar,0,ea),et.toString("utf8",eo,ea)}function utf8End(et){var eo=et&&et.length?this.write(et):"";return this.lastNeed?eo+"�":eo}function utf16Text(et,eo){if((et.length-eo)%2==0){var ei=et.toString("utf16le",eo);if(ei){var ea=ei.charCodeAt(ei.length-1);if(ea>=55296&&ea<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],ei.slice(0,-1)}return ei}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",eo,et.length-1)}function utf16End(et){var eo=et&&et.length?this.write(et):"";if(this.lastNeed){var ei=this.lastTotal-this.lastNeed;return eo+this.lastChar.toString("utf16le",0,ei)}return eo}function base64Text(et,eo){var ei=(et.length-eo)%3;return 0===ei?et.toString("base64",eo):(this.lastNeed=3-ei,this.lastTotal=3,1===ei?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",eo,et.length-ei))}function base64End(et){var eo=et&&et.length?this.write(et):"";return this.lastNeed?eo+this.lastChar.toString("base64",0,3-this.lastNeed):eo}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}eo.StringDecoder=StringDecoder,StringDecoder.prototype.write=function(et){var eo,ei;if(0===et.length)return"";if(this.lastNeed){if(void 0===(eo=this.fillLast(et)))return"";ei=this.lastNeed,this.lastNeed=0}else ei=0;return ei<et.length?eo?eo+this.text(et,ei):this.text(et,ei):eo||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(et){if(this.lastNeed<=et.length)return et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,et.length),this.lastNeed-=et.length}},53771:function(et,eo,ei){"use strict";/**
 * @license React
 * use-sync-external-store-with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ea=ei(67294);function n(et,eo){return et===eo&&(0!==et||1/et==1/eo)||et!=et&&eo!=eo}var eu="function"==typeof Object.is?Object.is:n,ed=ea.useSyncExternalStore,eh=ea.useRef,ep=ea.useEffect,ef=ea.useMemo,em=ea.useDebugValue;eo.useSyncExternalStoreWithSelector=function(et,eo,ei,ea,eg){var ey=eh(null);if(null===ey.current){var eC={hasValue:!1,value:null};ey.current=eC}else eC=ey.current;var eS=ed(et,(ey=ef(function(){function a(eo){if(!eh){if(eh=!0,et=eo,eo=ea(eo),void 0!==eg&&eC.hasValue){var ei=eC.value;if(eg(ei,eo))return ed=ei}return ed=eo}if(ei=ed,eu(et,eo))return ei;var ep=ea(eo);return void 0!==eg&&eg(ei,ep)?ei:(et=eo,ed=ep)}var et,ed,eh=!1,ep=void 0===ei?null:ei;return[function(){return a(eo())},null===ep?void 0:function(){return a(ep())}]},[eo,ei,ea,eg]))[0],ey[1]);return ep(function(){eC.hasValue=!0,eC.value=eS},[eS]),em(eS),eS}},31103:function(et,eo,ei){"use strict";et.exports=ei(53771)},57632:function(et,eo,ei){"use strict";let ea;ei.d(eo,{Z:function(){return esm_browser_v4}});let eu="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var ed={randomUUID:eu};let eh=new Uint8Array(16);function rng(){if(!ea&&!(ea="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ea(eh)}let ep=[];for(let et=0;et<256;++et)ep.push((et+256).toString(16).slice(1));function unsafeStringify(et,eo=0){return(ep[et[eo+0]]+ep[et[eo+1]]+ep[et[eo+2]]+ep[et[eo+3]]+"-"+ep[et[eo+4]]+ep[et[eo+5]]+"-"+ep[et[eo+6]]+ep[et[eo+7]]+"-"+ep[et[eo+8]]+ep[et[eo+9]]+"-"+ep[et[eo+10]]+ep[et[eo+11]]+ep[et[eo+12]]+ep[et[eo+13]]+ep[et[eo+14]]+ep[et[eo+15]]).toLowerCase()}var esm_browser_v4=function(et,eo,ei){if(ed.randomUUID&&!eo&&!et)return ed.randomUUID();et=et||{};let ea=et.random||(et.rng||rng)();if(ea[6]=15&ea[6]|64,ea[8]=63&ea[8]|128,eo){ei=ei||0;for(let et=0;et<16;++et)eo[ei+et]=ea[et];return eo}return unsafeStringify(ea)}},97218:function(et,eo,ei){"use strict";var ea,eu,ed,eh=ei(48764).Buffer;function bind(et,eo){return function(){return et.apply(eo,arguments)}}let{toString:ep}=Object.prototype,{getPrototypeOf:ef}=Object,em=(ea=Object.create(null),et=>{let eo=ep.call(et);return ea[eo]||(ea[eo]=eo.slice(8,-1).toLowerCase())}),kindOfTest=et=>(et=et.toLowerCase(),eo=>em(eo)===et),typeOfTest=et=>eo=>typeof eo===et,{isArray:eg}=Array,ey=typeOfTest("undefined");function isBuffer(et){return null!==et&&!ey(et)&&null!==et.constructor&&!ey(et.constructor)&&e_(et.constructor.isBuffer)&&et.constructor.isBuffer(et)}let eC=kindOfTest("ArrayBuffer");function isArrayBufferView(et){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(et):et&&et.buffer&&eC(et.buffer)}let eS=typeOfTest("string"),e_=typeOfTest("function"),ew=typeOfTest("number"),isObject=et=>null!==et&&"object"==typeof et,isBoolean=et=>!0===et||!1===et,isPlainObject=et=>{if("object"!==em(et))return!1;let eo=ef(et);return(null===eo||eo===Object.prototype||null===Object.getPrototypeOf(eo))&&!(Symbol.toStringTag in et)&&!(Symbol.iterator in et)},eA=kindOfTest("Date"),eI=kindOfTest("File"),eR=kindOfTest("Blob"),eT=kindOfTest("FileList"),isStream=et=>isObject(et)&&e_(et.pipe),isFormData=et=>{let eo;return et&&("function"==typeof FormData&&et instanceof FormData||e_(et.append)&&("formdata"===(eo=em(et))||"object"===eo&&e_(et.toString)&&"[object FormData]"===et.toString()))},eE=kindOfTest("URLSearchParams"),trim=et=>et.trim?et.trim():et.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(et,eo,{allOwnKeys:ei=!1}={}){let ea,eu;if(null!=et){if("object"!=typeof et&&(et=[et]),eg(et))for(ea=0,eu=et.length;ea<eu;ea++)eo.call(null,et[ea],ea,et);else{let eu;let ed=ei?Object.getOwnPropertyNames(et):Object.keys(et),eh=ed.length;for(ea=0;ea<eh;ea++)eu=ed[ea],eo.call(null,et[eu],eu,et)}}}function findKey(et,eo){let ei;eo=eo.toLowerCase();let ea=Object.keys(et),eu=ea.length;for(;eu-- >0;)if(eo===(ei=ea[eu]).toLowerCase())return ei;return null}let eP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:ei.g,isContextDefined=et=>!ey(et)&&et!==eP;function merge(){let{caseless:et}=isContextDefined(this)&&this||{},eo={},assignValue=(ei,ea)=>{let eu=et&&findKey(eo,ea)||ea;isPlainObject(eo[eu])&&isPlainObject(ei)?eo[eu]=merge(eo[eu],ei):isPlainObject(ei)?eo[eu]=merge({},ei):eg(ei)?eo[eu]=ei.slice():eo[eu]=ei};for(let et=0,eo=arguments.length;et<eo;et++)arguments[et]&&forEach(arguments[et],assignValue);return eo}let extend=(et,eo,ei,{allOwnKeys:ea}={})=>(forEach(eo,(eo,ea)=>{ei&&e_(eo)?et[ea]=bind(eo,ei):et[ea]=eo},{allOwnKeys:ea}),et),stripBOM=et=>(65279===et.charCodeAt(0)&&(et=et.slice(1)),et),inherits=(et,eo,ei,ea)=>{et.prototype=Object.create(eo.prototype,ea),et.prototype.constructor=et,Object.defineProperty(et,"super",{value:eo.prototype}),ei&&Object.assign(et.prototype,ei)},toFlatObject=(et,eo,ei,ea)=>{let eu,ed,eh;let ep={};if(eo=eo||{},null==et)return eo;do{for(ed=(eu=Object.getOwnPropertyNames(et)).length;ed-- >0;)eh=eu[ed],(!ea||ea(eh,et,eo))&&!ep[eh]&&(eo[eh]=et[eh],ep[eh]=!0);et=!1!==ei&&ef(et)}while(et&&(!ei||ei(et,eo))&&et!==Object.prototype);return eo},endsWith=(et,eo,ei)=>{et=String(et),(void 0===ei||ei>et.length)&&(ei=et.length),ei-=eo.length;let ea=et.indexOf(eo,ei);return -1!==ea&&ea===ei},toArray=et=>{if(!et)return null;if(eg(et))return et;let eo=et.length;if(!ew(eo))return null;let ei=Array(eo);for(;eo-- >0;)ei[eo]=et[eo];return ei},ek=(eu="undefined"!=typeof Uint8Array&&ef(Uint8Array),et=>eu&&et instanceof eu),forEachEntry=(et,eo)=>{let ei;let ea=et&&et[Symbol.iterator],eu=ea.call(et);for(;(ei=eu.next())&&!ei.done;){let ea=ei.value;eo.call(et,ea[0],ea[1])}},matchAll=(et,eo)=>{let ei;let ea=[];for(;null!==(ei=et.exec(eo));)ea.push(ei);return ea},eO=kindOfTest("HTMLFormElement"),toCamelCase=et=>et.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(et,eo,ei){return eo.toUpperCase()+ei}),eM=(({hasOwnProperty:et})=>(eo,ei)=>et.call(eo,ei))(Object.prototype),eD=kindOfTest("RegExp"),reduceDescriptors=(et,eo)=>{let ei=Object.getOwnPropertyDescriptors(et),ea={};forEach(ei,(ei,eu)=>{let ed;!1!==(ed=eo(ei,eu,et))&&(ea[eu]=ed||ei)}),Object.defineProperties(et,ea)},freezeMethods=et=>{reduceDescriptors(et,(eo,ei)=>{if(e_(et)&&-1!==["arguments","caller","callee"].indexOf(ei))return!1;let ea=et[ei];if(e_(ea)){if(eo.enumerable=!1,"writable"in eo){eo.writable=!1;return}eo.set||(eo.set=()=>{throw Error("Can not rewrite read-only method '"+ei+"'")})}})},toObjectSet=(et,eo)=>{let ei={},define=et=>{et.forEach(et=>{ei[et]=!0})};return define(eg(et)?et:String(et).split(eo)),ei},noop=()=>{},toFiniteNumber=(et,eo)=>Number.isFinite(et=+et)?et:eo,eU="abcdefghijklmnopqrstuvwxyz",eL="0123456789",eN={DIGIT:eL,ALPHA:eU,ALPHA_DIGIT:eU+eU.toUpperCase()+eL},generateString=(et=16,eo=eN.ALPHA_DIGIT)=>{let ei="",{length:ea}=eo;for(;et--;)ei+=eo[Math.random()*ea|0];return ei};function isSpecCompliantForm(et){return!!(et&&e_(et.append)&&"FormData"===et[Symbol.toStringTag]&&et[Symbol.iterator])}let toJSONObject=et=>{let eo=Array(10),visit=(et,ei)=>{if(isObject(et)){if(eo.indexOf(et)>=0)return;if(!("toJSON"in et)){eo[ei]=et;let ea=eg(et)?[]:{};return forEach(et,(et,eo)=>{let eu=visit(et,ei+1);ey(eu)||(ea[eo]=eu)}),eo[ei]=void 0,ea}}return et};return visit(et,0)},eB=kindOfTest("AsyncFunction"),isThenable=et=>et&&(isObject(et)||e_(et))&&e_(et.then)&&e_(et.catch);var eF={isArray:eg,isArrayBuffer:eC,isBuffer,isFormData,isArrayBufferView,isString:eS,isNumber:ew,isBoolean,isObject,isPlainObject,isUndefined:ey,isDate:eA,isFile:eI,isBlob:eR,isRegExp:eD,isFunction:e_,isStream,isURLSearchParams:eE,isTypedArray:ek,isFileList:eT,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf:em,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm:eO,hasOwnProperty:eM,hasOwnProp:eM,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:eP,isContextDefined,ALPHABET:eN,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn:eB,isThenable};function AxiosError(et,eo,ei,ea,eu){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=et,this.name="AxiosError",eo&&(this.code=eo),ei&&(this.config=ei),ea&&(this.request=ea),eu&&(this.response=eu)}eF.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eF.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let ej=AxiosError.prototype,eG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(et=>{eG[et]={value:et}}),Object.defineProperties(AxiosError,eG),Object.defineProperty(ej,"isAxiosError",{value:!0}),AxiosError.from=(et,eo,ei,ea,eu,ed)=>{let eh=Object.create(ej);return eF.toFlatObject(et,eh,function(et){return et!==Error.prototype},et=>"isAxiosError"!==et),AxiosError.call(eh,et.message,eo,ei,ea,eu),eh.cause=et,eh.name=et.name,ed&&Object.assign(eh,ed),eh};var eH=null;function isVisitable(et){return eF.isPlainObject(et)||eF.isArray(et)}function removeBrackets(et){return eF.endsWith(et,"[]")?et.slice(0,-2):et}function renderKey(et,eo,ei){return et?et.concat(eo).map(function(et,eo){return et=removeBrackets(et),!ei&&eo?"["+et+"]":et}).join(ei?".":""):eo}function isFlatArray(et){return eF.isArray(et)&&!et.some(isVisitable)}let eK=eF.toFlatObject(eF,{},null,function(et){return/^is[A-Z]/.test(et)});function toFormData(et,eo,ei){if(!eF.isObject(et))throw TypeError("target must be an object");eo=eo||new FormData,ei=eF.toFlatObject(ei,{metaTokens:!0,dots:!1,indexes:!1},!1,function(et,eo){return!eF.isUndefined(eo[et])});let ea=ei.metaTokens,eu=ei.visitor||defaultVisitor,ed=ei.dots,ep=ei.indexes,ef=ei.Blob||"undefined"!=typeof Blob&&Blob,em=ef&&eF.isSpecCompliantForm(eo);if(!eF.isFunction(eu))throw TypeError("visitor must be a function");function convertValue(et){if(null===et)return"";if(eF.isDate(et))return et.toISOString();if(!em&&eF.isBlob(et))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return eF.isArrayBuffer(et)||eF.isTypedArray(et)?em&&"function"==typeof Blob?new Blob([et]):eh.from(et):et}function defaultVisitor(et,ei,eu){let eh=et;if(et&&!eu&&"object"==typeof et){if(eF.endsWith(ei,"{}"))ei=ea?ei:ei.slice(0,-2),et=JSON.stringify(et);else if(eF.isArray(et)&&isFlatArray(et)||(eF.isFileList(et)||eF.endsWith(ei,"[]"))&&(eh=eF.toArray(et)))return ei=removeBrackets(ei),eh.forEach(function(et,ea){eF.isUndefined(et)||null===et||eo.append(!0===ep?renderKey([ei],ea,ed):null===ep?ei:ei+"[]",convertValue(et))}),!1}return!!isVisitable(et)||(eo.append(renderKey(eu,ei,ed),convertValue(et)),!1)}let eg=[],ey=Object.assign(eK,{defaultVisitor,convertValue,isVisitable});function build(et,ei){if(!eF.isUndefined(et)){if(-1!==eg.indexOf(et))throw Error("Circular reference detected in "+ei.join("."));eg.push(et),eF.forEach(et,function(et,ea){let ed=!(eF.isUndefined(et)||null===et)&&eu.call(eo,et,eF.isString(ea)?ea.trim():ea,ei,ey);!0===ed&&build(et,ei?ei.concat(ea):[ea])}),eg.pop()}}if(!eF.isObject(et))throw TypeError("data must be an object");return build(et),eo}function encode$1(et){let eo={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(et).replace(/[!'()~]|%20|%00/g,function(et){return eo[et]})}function AxiosURLSearchParams(et,eo){this._pairs=[],et&&toFormData(et,this,eo)}let ez=AxiosURLSearchParams.prototype;function encode(et){return encodeURIComponent(et).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(et,eo,ei){let ea;if(!eo)return et;let eu=ei&&ei.encode||encode,ed=ei&&ei.serialize;if(ea=ed?ed(eo,ei):eF.isURLSearchParams(eo)?eo.toString():new AxiosURLSearchParams(eo,ei).toString(eu)){let eo=et.indexOf("#");-1!==eo&&(et=et.slice(0,eo)),et+=(-1===et.indexOf("?")?"?":"&")+ea}return et}ez.append=function(et,eo){this._pairs.push([et,eo])},ez.toString=function(et){let eo=et?function(eo){return et.call(this,eo,encode$1)}:encode$1;return this._pairs.map(function(et){return eo(et[0])+"="+eo(et[1])},"").join("&")};let InterceptorManager=class InterceptorManager{constructor(){this.handlers=[]}use(et,eo,ei){return this.handlers.push({fulfilled:et,rejected:eo,synchronous:!!ei&&ei.synchronous,runWhen:ei?ei.runWhen:null}),this.handlers.length-1}eject(et){this.handlers[et]&&(this.handlers[et]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(et){eF.forEach(this.handlers,function(eo){null!==eo&&et(eo)})}};var eW=InterceptorManager,eV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eJ={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let eY="undefined"!=typeof window&&"undefined"!=typeof document,e$=(ed="undefined"!=typeof navigator&&navigator.product,eY&&0>["ReactNative","NativeScript","NS"].indexOf(ed)),eZ="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var eQ={...Object.freeze({__proto__:null,hasBrowserEnv:eY,hasStandardBrowserWebWorkerEnv:eZ,hasStandardBrowserEnv:e$}),...eJ};function toURLEncodedForm(et,eo){return toFormData(et,new eQ.classes.URLSearchParams,Object.assign({visitor:function(et,eo,ei,ea){return eQ.isNode&&eF.isBuffer(et)?(this.append(eo,et.toString("base64")),!1):ea.defaultVisitor.apply(this,arguments)}},eo))}function parsePropPath(et){return eF.matchAll(/\w+|\[(\w*)]/g,et).map(et=>"[]"===et[0]?"":et[1]||et[0])}function arrayToObject(et){let eo,ei;let ea={},eu=Object.keys(et),ed=eu.length;for(eo=0;eo<ed;eo++)ea[ei=eu[eo]]=et[ei];return ea}function formDataToJSON(et){function buildPath(et,eo,ei,ea){let eu=et[ea++];if("__proto__"===eu)return!0;let ed=Number.isFinite(+eu),eh=ea>=et.length;if(eu=!eu&&eF.isArray(ei)?ei.length:eu,eh)return eF.hasOwnProp(ei,eu)?ei[eu]=[ei[eu],eo]:ei[eu]=eo,!ed;ei[eu]&&eF.isObject(ei[eu])||(ei[eu]=[]);let ep=buildPath(et,eo,ei[eu],ea);return ep&&eF.isArray(ei[eu])&&(ei[eu]=arrayToObject(ei[eu])),!ed}if(eF.isFormData(et)&&eF.isFunction(et.entries)){let eo={};return eF.forEachEntry(et,(et,ei)=>{buildPath(parsePropPath(et),ei,eo,0)}),eo}return null}function stringifySafely(et,eo,ei){if(eF.isString(et))try{return(eo||JSON.parse)(et),eF.trim(et)}catch(et){if("SyntaxError"!==et.name)throw et}return(ei||JSON.stringify)(et)}let eX={transitional:eV,adapter:["xhr","http"],transformRequest:[function(et,eo){let ei;let ea=eo.getContentType()||"",eu=ea.indexOf("application/json")>-1,ed=eF.isObject(et);ed&&eF.isHTMLForm(et)&&(et=new FormData(et));let eh=eF.isFormData(et);if(eh)return eu?JSON.stringify(formDataToJSON(et)):et;if(eF.isArrayBuffer(et)||eF.isBuffer(et)||eF.isStream(et)||eF.isFile(et)||eF.isBlob(et))return et;if(eF.isArrayBufferView(et))return et.buffer;if(eF.isURLSearchParams(et))return eo.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),et.toString();if(ed){if(ea.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(et,this.formSerializer).toString();if((ei=eF.isFileList(et))||ea.indexOf("multipart/form-data")>-1){let eo=this.env&&this.env.FormData;return toFormData(ei?{"files[]":et}:et,eo&&new eo,this.formSerializer)}}return ed||eu?(eo.setContentType("application/json",!1),stringifySafely(et)):et}],transformResponse:[function(et){let eo=this.transitional||eX.transitional,ei=eo&&eo.forcedJSONParsing,ea="json"===this.responseType;if(et&&eF.isString(et)&&(ei&&!this.responseType||ea)){let ei=eo&&eo.silentJSONParsing,eu=!ei&&ea;try{return JSON.parse(et)}catch(et){if(eu){if("SyntaxError"===et.name)throw AxiosError.from(et,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw et}}}return et}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eQ.classes.FormData,Blob:eQ.classes.Blob},validateStatus:function(et){return et>=200&&et<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eF.forEach(["delete","get","head","post","put","patch"],et=>{eX.headers[et]={}});var e0=eX;let e4=eF.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=et=>{let eo,ei,ea;let eu={};return et&&et.split("\n").forEach(function(et){ea=et.indexOf(":"),eo=et.substring(0,ea).trim().toLowerCase(),ei=et.substring(ea+1).trim(),!eo||eu[eo]&&e4[eo]||("set-cookie"===eo?eu[eo]?eu[eo].push(ei):eu[eo]=[ei]:eu[eo]=eu[eo]?eu[eo]+", "+ei:ei)}),eu};let e6=Symbol("internals");function normalizeHeader(et){return et&&String(et).trim().toLowerCase()}function normalizeValue(et){return!1===et||null==et?et:eF.isArray(et)?et.map(normalizeValue):String(et)}function parseTokens(et){let eo;let ei=Object.create(null),ea=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;eo=ea.exec(et);)ei[eo[1]]=eo[2];return ei}let isValidHeaderName=et=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(et.trim());function matchHeaderValue(et,eo,ei,ea,eu){if(eF.isFunction(ea))return ea.call(this,eo,ei);if(eu&&(eo=ei),eF.isString(eo)){if(eF.isString(ea))return -1!==eo.indexOf(ea);if(eF.isRegExp(ea))return ea.test(eo)}}function formatHeader(et){return et.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(et,eo,ei)=>eo.toUpperCase()+ei)}function buildAccessors(et,eo){let ei=eF.toCamelCase(" "+eo);["get","set","has"].forEach(ea=>{Object.defineProperty(et,ea+ei,{value:function(et,ei,eu){return this[ea].call(this,eo,et,ei,eu)},configurable:!0})})}let AxiosHeaders=class AxiosHeaders{constructor(et){et&&this.set(et)}set(et,eo,ei){let ea=this;function setHeader(et,eo,ei){let eu=normalizeHeader(eo);if(!eu)throw Error("header name must be a non-empty string");let ed=eF.findKey(ea,eu);ed&&void 0!==ea[ed]&&!0!==ei&&(void 0!==ei||!1===ea[ed])||(ea[ed||eo]=normalizeValue(et))}let setHeaders=(et,eo)=>eF.forEach(et,(et,ei)=>setHeader(et,ei,eo));return eF.isPlainObject(et)||et instanceof this.constructor?setHeaders(et,eo):eF.isString(et)&&(et=et.trim())&&!isValidHeaderName(et)?setHeaders(parseHeaders(et),eo):null!=et&&setHeader(eo,et,ei),this}get(et,eo){if(et=normalizeHeader(et)){let ei=eF.findKey(this,et);if(ei){let et=this[ei];if(!eo)return et;if(!0===eo)return parseTokens(et);if(eF.isFunction(eo))return eo.call(this,et,ei);if(eF.isRegExp(eo))return eo.exec(et);throw TypeError("parser must be boolean|regexp|function")}}}has(et,eo){if(et=normalizeHeader(et)){let ei=eF.findKey(this,et);return!!(ei&&void 0!==this[ei]&&(!eo||matchHeaderValue(this,this[ei],ei,eo)))}return!1}delete(et,eo){let ei=this,ea=!1;function deleteHeader(et){if(et=normalizeHeader(et)){let eu=eF.findKey(ei,et);eu&&(!eo||matchHeaderValue(ei,ei[eu],eu,eo))&&(delete ei[eu],ea=!0)}}return eF.isArray(et)?et.forEach(deleteHeader):deleteHeader(et),ea}clear(et){let eo=Object.keys(this),ei=eo.length,ea=!1;for(;ei--;){let eu=eo[ei];(!et||matchHeaderValue(this,this[eu],eu,et,!0))&&(delete this[eu],ea=!0)}return ea}normalize(et){let eo=this,ei={};return eF.forEach(this,(ea,eu)=>{let ed=eF.findKey(ei,eu);if(ed){eo[ed]=normalizeValue(ea),delete eo[eu];return}let eh=et?formatHeader(eu):String(eu).trim();eh!==eu&&delete eo[eu],eo[eh]=normalizeValue(ea),ei[eh]=!0}),this}concat(...et){return this.constructor.concat(this,...et)}toJSON(et){let eo=Object.create(null);return eF.forEach(this,(ei,ea)=>{null!=ei&&!1!==ei&&(eo[ea]=et&&eF.isArray(ei)?ei.join(", "):ei)}),eo}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([et,eo])=>et+": "+eo).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(et){return et instanceof this?et:new this(et)}static concat(et,...eo){let ei=new this(et);return eo.forEach(et=>ei.set(et)),ei}static accessor(et){let eo=this[e6]=this[e6]={accessors:{}},ei=eo.accessors,ea=this.prototype;function defineAccessor(et){let eo=normalizeHeader(et);ei[eo]||(buildAccessors(ea,et),ei[eo]=!0)}return eF.isArray(et)?et.forEach(defineAccessor):defineAccessor(et),this}};AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eF.reduceDescriptors(AxiosHeaders.prototype,({value:et},eo)=>{let ei=eo[0].toUpperCase()+eo.slice(1);return{get:()=>et,set(et){this[ei]=et}}}),eF.freezeMethods(AxiosHeaders);var e5=AxiosHeaders;function transformData(et,eo){let ei=this||e0,ea=eo||ei,eu=e5.from(ea.headers),ed=ea.data;return eF.forEach(et,function(et){ed=et.call(ei,ed,eu.normalize(),eo?eo.status:void 0)}),eu.normalize(),ed}function isCancel(et){return!!(et&&et.__CANCEL__)}function CanceledError(et,eo,ei){AxiosError.call(this,null==et?"canceled":et,AxiosError.ERR_CANCELED,eo,ei),this.name="CanceledError"}function settle(et,eo,ei){let ea=ei.config.validateStatus;!ei.status||!ea||ea(ei.status)?et(ei):eo(new AxiosError("Request failed with status code "+ei.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(ei.status/100)-4],ei.config,ei.request,ei))}eF.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var e8=eQ.hasStandardBrowserEnv?{write(et,eo,ei,ea,eu,ed){let eh=[et+"="+encodeURIComponent(eo)];eF.isNumber(ei)&&eh.push("expires="+new Date(ei).toGMTString()),eF.isString(ea)&&eh.push("path="+ea),eF.isString(eu)&&eh.push("domain="+eu),!0===ed&&eh.push("secure"),document.cookie=eh.join("; ")},read(et){let eo=document.cookie.match(RegExp("(^|;\\s*)("+et+")=([^;]*)"));return eo?decodeURIComponent(eo[3]):null},remove(et){this.write(et,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(et){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(et)}function combineURLs(et,eo){return eo?et.replace(/\/?\/$/,"")+"/"+eo.replace(/^\/+/,""):et}function buildFullPath(et,eo){return et&&!isAbsoluteURL(eo)?combineURLs(et,eo):eo}var e7=eQ.hasStandardBrowserEnv?function(){let et;let eo=/(msie|trident)/i.test(navigator.userAgent),ei=document.createElement("a");function resolveURL(et){let ea=et;return eo&&(ei.setAttribute("href",ea),ea=ei.href),ei.setAttribute("href",ea),{href:ei.href,protocol:ei.protocol?ei.protocol.replace(/:$/,""):"",host:ei.host,search:ei.search?ei.search.replace(/^\?/,""):"",hash:ei.hash?ei.hash.replace(/^#/,""):"",hostname:ei.hostname,port:ei.port,pathname:"/"===ei.pathname.charAt(0)?ei.pathname:"/"+ei.pathname}}return et=resolveURL(window.location.href),function(eo){let ei=eF.isString(eo)?resolveURL(eo):eo;return ei.protocol===et.protocol&&ei.host===et.host}}():function(){return function(){return!0}}();function parseProtocol(et){let eo=/^([-+\w]{1,25})(:?\/\/|:)/.exec(et);return eo&&eo[1]||""}function speedometer(et,eo){let ei;et=et||10;let ea=Array(et),eu=Array(et),ed=0,eh=0;return eo=void 0!==eo?eo:1e3,function(ep){let ef=Date.now(),em=eu[eh];ei||(ei=ef),ea[ed]=ep,eu[ed]=ef;let eg=eh,ey=0;for(;eg!==ed;)ey+=ea[eg++],eg%=et;if((ed=(ed+1)%et)===eh&&(eh=(eh+1)%et),ef-ei<eo)return;let eC=em&&ef-em;return eC?Math.round(1e3*ey/eC):void 0}}function progressEventReducer(et,eo){let ei=0,ea=speedometer(50,250);return eu=>{let ed=eu.loaded,eh=eu.lengthComputable?eu.total:void 0,ep=ed-ei,ef=ea(ep),em=ed<=eh;ei=ed;let eg={loaded:ed,total:eh,progress:eh?ed/eh:void 0,bytes:ep,rate:ef||void 0,estimated:ef&&eh&&em?(eh-ed)/ef:void 0,event:eu};eg[eo?"download":"upload"]=!0,et(eg)}}let e9="undefined"!=typeof XMLHttpRequest;var tr=e9&&function(et){return new Promise(function(eo,ei){let ea,eu,ed=et.data,eh=e5.from(et.headers).normalize(),{responseType:ep,withXSRFToken:ef}=et;function done(){et.cancelToken&&et.cancelToken.unsubscribe(ea),et.signal&&et.signal.removeEventListener("abort",ea)}if(eF.isFormData(ed)){if(eQ.hasStandardBrowserEnv||eQ.hasStandardBrowserWebWorkerEnv)eh.setContentType(!1);else if(!1!==(eu=eh.getContentType())){let[et,...eo]=eu?eu.split(";").map(et=>et.trim()).filter(Boolean):[];eh.setContentType([et||"multipart/form-data",...eo].join("; "))}}let em=new XMLHttpRequest;if(et.auth){let eo=et.auth.username||"",ei=et.auth.password?unescape(encodeURIComponent(et.auth.password)):"";eh.set("Authorization","Basic "+btoa(eo+":"+ei))}let eg=buildFullPath(et.baseURL,et.url);function onloadend(){if(!em)return;let ea=e5.from("getAllResponseHeaders"in em&&em.getAllResponseHeaders()),eu=ep&&"text"!==ep&&"json"!==ep?em.response:em.responseText,ed={data:eu,status:em.status,statusText:em.statusText,headers:ea,config:et,request:em};settle(function(et){eo(et),done()},function(et){ei(et),done()},ed),em=null}if(em.open(et.method.toUpperCase(),buildURL(eg,et.params,et.paramsSerializer),!0),em.timeout=et.timeout,"onloadend"in em?em.onloadend=onloadend:em.onreadystatechange=function(){em&&4===em.readyState&&(0!==em.status||em.responseURL&&0===em.responseURL.indexOf("file:"))&&setTimeout(onloadend)},em.onabort=function(){em&&(ei(new AxiosError("Request aborted",AxiosError.ECONNABORTED,et,em)),em=null)},em.onerror=function(){ei(new AxiosError("Network Error",AxiosError.ERR_NETWORK,et,em)),em=null},em.ontimeout=function(){let eo=et.timeout?"timeout of "+et.timeout+"ms exceeded":"timeout exceeded",ea=et.transitional||eV;et.timeoutErrorMessage&&(eo=et.timeoutErrorMessage),ei(new AxiosError(eo,ea.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,et,em)),em=null},eQ.hasStandardBrowserEnv&&(ef&&eF.isFunction(ef)&&(ef=ef(et)),ef||!1!==ef&&e7(eg))){let eo=et.xsrfHeaderName&&et.xsrfCookieName&&e8.read(et.xsrfCookieName);eo&&eh.set(et.xsrfHeaderName,eo)}void 0===ed&&eh.setContentType(null),"setRequestHeader"in em&&eF.forEach(eh.toJSON(),function(et,eo){em.setRequestHeader(eo,et)}),eF.isUndefined(et.withCredentials)||(em.withCredentials=!!et.withCredentials),ep&&"json"!==ep&&(em.responseType=et.responseType),"function"==typeof et.onDownloadProgress&&em.addEventListener("progress",progressEventReducer(et.onDownloadProgress,!0)),"function"==typeof et.onUploadProgress&&em.upload&&em.upload.addEventListener("progress",progressEventReducer(et.onUploadProgress)),(et.cancelToken||et.signal)&&(ea=eo=>{em&&(ei(!eo||eo.type?new CanceledError(null,et,em):eo),em.abort(),em=null)},et.cancelToken&&et.cancelToken.subscribe(ea),et.signal&&(et.signal.aborted?ea():et.signal.addEventListener("abort",ea)));let ey=parseProtocol(eg);if(ey&&-1===eQ.protocols.indexOf(ey)){ei(new AxiosError("Unsupported protocol "+ey+":",AxiosError.ERR_BAD_REQUEST,et));return}em.send(ed||null)})};let tn={http:eH,xhr:tr};eF.forEach(tn,(et,eo)=>{if(et){try{Object.defineProperty(et,"name",{value:eo})}catch(et){}Object.defineProperty(et,"adapterName",{value:eo})}});let renderReason=et=>`- ${et}`,isResolvedHandle=et=>eF.isFunction(et)||null===et||!1===et;var ti={getAdapter:et=>{let eo,ei;et=eF.isArray(et)?et:[et];let{length:ea}=et,eu={};for(let ed=0;ed<ea;ed++){let ea;if(ei=eo=et[ed],!isResolvedHandle(eo)&&void 0===(ei=tn[(ea=String(eo)).toLowerCase()]))throw new AxiosError(`Unknown adapter '${ea}'`);if(ei)break;eu[ea||"#"+ed]=ei}if(!ei){let et=Object.entries(eu).map(([et,eo])=>`adapter ${et} `+(!1===eo?"is not supported by the environment":"is not available in the build")),eo=ea?et.length>1?"since :\n"+et.map(renderReason).join("\n"):" "+renderReason(et[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+eo,"ERR_NOT_SUPPORT")}return ei},adapters:tn};function throwIfCancellationRequested(et){if(et.cancelToken&&et.cancelToken.throwIfRequested(),et.signal&&et.signal.aborted)throw new CanceledError(null,et)}function dispatchRequest(et){throwIfCancellationRequested(et),et.headers=e5.from(et.headers),et.data=transformData.call(et,et.transformRequest),-1!==["post","put","patch"].indexOf(et.method)&&et.headers.setContentType("application/x-www-form-urlencoded",!1);let eo=ti.getAdapter(et.adapter||e0.adapter);return eo(et).then(function(eo){return throwIfCancellationRequested(et),eo.data=transformData.call(et,et.transformResponse,eo),eo.headers=e5.from(eo.headers),eo},function(eo){return!isCancel(eo)&&(throwIfCancellationRequested(et),eo&&eo.response&&(eo.response.data=transformData.call(et,et.transformResponse,eo.response),eo.response.headers=e5.from(eo.response.headers))),Promise.reject(eo)})}let headersToObject=et=>et instanceof e5?{...et}:et;function mergeConfig(et,eo){eo=eo||{};let ei={};function getMergedValue(et,eo,ei){return eF.isPlainObject(et)&&eF.isPlainObject(eo)?eF.merge.call({caseless:ei},et,eo):eF.isPlainObject(eo)?eF.merge({},eo):eF.isArray(eo)?eo.slice():eo}function mergeDeepProperties(et,eo,ei){return eF.isUndefined(eo)?eF.isUndefined(et)?void 0:getMergedValue(void 0,et,ei):getMergedValue(et,eo,ei)}function valueFromConfig2(et,eo){if(!eF.isUndefined(eo))return getMergedValue(void 0,eo)}function defaultToConfig2(et,eo){return eF.isUndefined(eo)?eF.isUndefined(et)?void 0:getMergedValue(void 0,et):getMergedValue(void 0,eo)}function mergeDirectKeys(ei,ea,eu){return eu in eo?getMergedValue(ei,ea):eu in et?getMergedValue(void 0,ei):void 0}let ea={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(et,eo)=>mergeDeepProperties(headersToObject(et),headersToObject(eo),!0)};return eF.forEach(Object.keys(Object.assign({},et,eo)),function(eu){let ed=ea[eu]||mergeDeepProperties,eh=ed(et[eu],eo[eu],eu);eF.isUndefined(eh)&&ed!==mergeDirectKeys||(ei[eu]=eh)}),ei}let ta="1.6.8",ts={};["object","boolean","number","function","string","symbol"].forEach((et,eo)=>{ts[et]=function(ei){return typeof ei===et||"a"+(eo<1?"n ":" ")+et}});let tc={};ts.transitional=function(et,eo,ei){function formatMessage(et,eo){return"[Axios v"+ta+"] Transitional option '"+et+"'"+eo+(ei?". "+ei:"")}return(ei,ea,eu)=>{if(!1===et)throw new AxiosError(formatMessage(ea," has been removed"+(eo?" in "+eo:"")),AxiosError.ERR_DEPRECATED);return eo&&!tc[ea]&&(tc[ea]=!0,console.warn(formatMessage(ea," has been deprecated since v"+eo+" and will be removed in the near future"))),!et||et(ei,ea,eu)}};var tu={assertOptions:function(et,eo,ei){if("object"!=typeof et)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let ea=Object.keys(et),eu=ea.length;for(;eu-- >0;){let ed=ea[eu],eh=eo[ed];if(eh){let eo=et[ed],ei=void 0===eo||eh(eo,ed,et);if(!0!==ei)throw new AxiosError("option "+ed+" must be "+ei,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==ei)throw new AxiosError("Unknown option "+ed,AxiosError.ERR_BAD_OPTION)}},validators:ts};let td=tu.validators;let Axios=class Axios{constructor(et){this.defaults=et,this.interceptors={request:new eW,response:new eW}}async request(et,eo){try{return await this._request(et,eo)}catch(et){if(et instanceof Error){let eo;Error.captureStackTrace?Error.captureStackTrace(eo={}):eo=Error();let ei=eo.stack?eo.stack.replace(/^.+\n/,""):"";et.stack?ei&&!String(et.stack).endsWith(ei.replace(/^.+\n.+\n/,""))&&(et.stack+="\n"+ei):et.stack=ei}throw et}}_request(et,eo){let ei,ea;"string"==typeof et?(eo=eo||{}).url=et:eo=et||{},eo=mergeConfig(this.defaults,eo);let{transitional:eu,paramsSerializer:ed,headers:eh}=eo;void 0!==eu&&tu.assertOptions(eu,{silentJSONParsing:td.transitional(td.boolean),forcedJSONParsing:td.transitional(td.boolean),clarifyTimeoutError:td.transitional(td.boolean)},!1),null!=ed&&(eF.isFunction(ed)?eo.paramsSerializer={serialize:ed}:tu.assertOptions(ed,{encode:td.function,serialize:td.function},!0)),eo.method=(eo.method||this.defaults.method||"get").toLowerCase();let ep=eh&&eF.merge(eh.common,eh[eo.method]);eh&&eF.forEach(["delete","get","head","post","put","patch","common"],et=>{delete eh[et]}),eo.headers=e5.concat(ep,eh);let ef=[],em=!0;this.interceptors.request.forEach(function(et){("function"!=typeof et.runWhen||!1!==et.runWhen(eo))&&(em=em&&et.synchronous,ef.unshift(et.fulfilled,et.rejected))});let eg=[];this.interceptors.response.forEach(function(et){eg.push(et.fulfilled,et.rejected)});let ey=0;if(!em){let et=[dispatchRequest.bind(this),void 0];for(et.unshift.apply(et,ef),et.push.apply(et,eg),ea=et.length,ei=Promise.resolve(eo);ey<ea;)ei=ei.then(et[ey++],et[ey++]);return ei}ea=ef.length;let eC=eo;for(ey=0;ey<ea;){let et=ef[ey++],eo=ef[ey++];try{eC=et(eC)}catch(et){eo.call(this,et);break}}try{ei=dispatchRequest.call(this,eC)}catch(et){return Promise.reject(et)}for(ey=0,ea=eg.length;ey<ea;)ei=ei.then(eg[ey++],eg[ey++]);return ei}getUri(et){et=mergeConfig(this.defaults,et);let eo=buildFullPath(et.baseURL,et.url);return buildURL(eo,et.params,et.paramsSerializer)}};eF.forEach(["delete","get","head","options"],function(et){Axios.prototype[et]=function(eo,ei){return this.request(mergeConfig(ei||{},{method:et,url:eo,data:(ei||{}).data}))}}),eF.forEach(["post","put","patch"],function(et){function generateHTTPMethod(eo){return function(ei,ea,eu){return this.request(mergeConfig(eu||{},{method:et,headers:eo?{"Content-Type":"multipart/form-data"}:{},url:ei,data:ea}))}}Axios.prototype[et]=generateHTTPMethod(),Axios.prototype[et+"Form"]=generateHTTPMethod(!0)});var tp=Axios;let CancelToken=class CancelToken{constructor(et){let eo;if("function"!=typeof et)throw TypeError("executor must be a function.");this.promise=new Promise(function(et){eo=et});let ei=this;this.promise.then(et=>{if(!ei._listeners)return;let eo=ei._listeners.length;for(;eo-- >0;)ei._listeners[eo](et);ei._listeners=null}),this.promise.then=et=>{let eo;let ea=new Promise(et=>{ei.subscribe(et),eo=et}).then(et);return ea.cancel=function(){ei.unsubscribe(eo)},ea},et(function(et,ea,eu){ei.reason||(ei.reason=new CanceledError(et,ea,eu),eo(ei.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(et){if(this.reason){et(this.reason);return}this._listeners?this._listeners.push(et):this._listeners=[et]}unsubscribe(et){if(!this._listeners)return;let eo=this._listeners.indexOf(et);-1!==eo&&this._listeners.splice(eo,1)}static source(){let et;let eo=new CancelToken(function(eo){et=eo});return{token:eo,cancel:et}}};var tf=CancelToken;function spread(et){return function(eo){return et.apply(null,eo)}}function isAxiosError(et){return eF.isObject(et)&&!0===et.isAxiosError}let tm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tm).forEach(([et,eo])=>{tm[eo]=et});var tg=tm;function createInstance(et){let eo=new tp(et),ei=bind(tp.prototype.request,eo);return eF.extend(ei,tp.prototype,eo,{allOwnKeys:!0}),eF.extend(ei,eo,null,{allOwnKeys:!0}),ei.create=function(eo){return createInstance(mergeConfig(et,eo))},ei}let ty=createInstance(e0);ty.Axios=tp,ty.CanceledError=CanceledError,ty.CancelToken=tf,ty.isCancel=isCancel,ty.VERSION=ta,ty.toFormData=toFormData,ty.AxiosError=AxiosError,ty.Cancel=ty.CanceledError,ty.all=function(et){return Promise.all(et)},ty.spread=spread,ty.isAxiosError=isAxiosError,ty.mergeConfig=mergeConfig,ty.AxiosHeaders=e5,ty.formToJSON=et=>formDataToJSON(eF.isHTMLForm(et)?new FormData(et):et),ty.getAdapter=ti.getAdapter,ty.HttpStatusCode=tg,ty.default=ty,et.exports=ty},35251:function(et,eo,ei){"use strict";ei.d(eo,{xC:function(){return configureStore},hg:function(){return eX},oM:function(){return e6}});var ea,eu,ed=Symbol.for("immer-nothing"),eh=Symbol.for("immer-draftable"),ep=Symbol.for("immer-state");function die(et,...eo){throw Error(`[Immer] minified error nr: ${et}. Full error at: https://bit.ly/3cXEKWf`)}var ef=Object.getPrototypeOf;function isDraft(et){return!!et&&!!et[ep]}function isDraftable(et){return!!et&&(immer_isPlainObject(et)||Array.isArray(et)||!!et[eh]||!!et.constructor?.[eh]||isMap(et)||isSet(et))}var em=Object.prototype.constructor.toString();function immer_isPlainObject(et){if(!et||"object"!=typeof et)return!1;let eo=ef(et);if(null===eo)return!0;let ei=Object.hasOwnProperty.call(eo,"constructor")&&eo.constructor;return ei===Object||"function"==typeof ei&&Function.toString.call(ei)===em}function each(et,eo){0===getArchtype(et)?Object.entries(et).forEach(([ei,ea])=>{eo(ei,ea,et)}):et.forEach((ei,ea)=>eo(ea,ei,et))}function getArchtype(et){let eo=et[ep];return eo?eo.type_:Array.isArray(et)?1:isMap(et)?2:isSet(et)?3:0}function has(et,eo){return 2===getArchtype(et)?et.has(eo):Object.prototype.hasOwnProperty.call(et,eo)}function set(et,eo,ei){let ea=getArchtype(et);2===ea?et.set(eo,ei):3===ea?et.add(ei):et[eo]=ei}function is(et,eo){return et===eo?0!==et||1/et==1/eo:et!=et&&eo!=eo}function isMap(et){return et instanceof Map}function isSet(et){return et instanceof Set}function latest(et){return et.copy_||et.base_}function shallowCopy(et,eo){if(isMap(et))return new Map(et);if(isSet(et))return new Set(et);if(Array.isArray(et))return Array.prototype.slice.call(et);if(!eo&&immer_isPlainObject(et)){if(!ef(et)){let eo=Object.create(null);return Object.assign(eo,et)}return{...et}}let ei=Object.getOwnPropertyDescriptors(et);delete ei[ep];let ea=Reflect.ownKeys(ei);for(let eo=0;eo<ea.length;eo++){let eu=ea[eo],ed=ei[eu];!1===ed.writable&&(ed.writable=!0,ed.configurable=!0),(ed.get||ed.set)&&(ei[eu]={configurable:!0,writable:!0,enumerable:ed.enumerable,value:et[eu]})}return Object.create(ef(et),ei)}function freeze(et,eo=!1){return isFrozen(et)||isDraft(et)||!isDraftable(et)||(getArchtype(et)>1&&(et.set=et.add=et.clear=et.delete=dontMutateFrozenCollections),Object.freeze(et),eo&&each(et,(et,eo)=>freeze(eo,!0),!0)),et}function dontMutateFrozenCollections(){die(2)}function isFrozen(et){return Object.isFrozen(et)}var eg={};function getPlugin(et){let eo=eg[et];return eo||die(0,et),eo}function getCurrentScope(){return eu}function createScope(et,eo){return{drafts_:[],parent_:et,immer_:eo,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(et,eo){eo&&(getPlugin("Patches"),et.patches_=[],et.inversePatches_=[],et.patchListener_=eo)}function revokeScope(et){leaveScope(et),et.drafts_.forEach(revokeDraft),et.drafts_=null}function leaveScope(et){et===eu&&(eu=et.parent_)}function enterScope(et){return eu=createScope(eu,et)}function revokeDraft(et){let eo=et[ep];0===eo.type_||1===eo.type_?eo.revoke_():eo.revoked_=!0}function processResult(et,eo){eo.unfinalizedDrafts_=eo.drafts_.length;let ei=eo.drafts_[0],ea=void 0!==et&&et!==ei;return ea?(ei[ep].modified_&&(revokeScope(eo),die(4)),isDraftable(et)&&(et=finalize(eo,et),eo.parent_||maybeFreeze(eo,et)),eo.patches_&&getPlugin("Patches").generateReplacementPatches_(ei[ep].base_,et,eo.patches_,eo.inversePatches_)):et=finalize(eo,ei,[]),revokeScope(eo),eo.patches_&&eo.patchListener_(eo.patches_,eo.inversePatches_),et!==ed?et:void 0}function finalize(et,eo,ei){if(isFrozen(eo))return eo;let ea=eo[ep];if(!ea)return each(eo,(eu,ed)=>finalizeProperty(et,ea,eo,eu,ed,ei),!0),eo;if(ea.scope_!==et)return eo;if(!ea.modified_)return maybeFreeze(et,ea.base_,!0),ea.base_;if(!ea.finalized_){ea.finalized_=!0,ea.scope_.unfinalizedDrafts_--;let eo=ea.copy_,eu=eo,ed=!1;3===ea.type_&&(eu=new Set(eo),eo.clear(),ed=!0),each(eu,(eu,eh)=>finalizeProperty(et,ea,eo,eu,eh,ei,ed)),maybeFreeze(et,eo,!1),ei&&et.patches_&&getPlugin("Patches").generatePatches_(ea,ei,et.patches_,et.inversePatches_)}return ea.copy_}function finalizeProperty(et,eo,ei,ea,eu,ed,eh){if(isDraft(eu)){let eh=ed&&eo&&3!==eo.type_&&!has(eo.assigned_,ea)?ed.concat(ea):void 0,ep=finalize(et,eu,eh);if(set(ei,ea,ep),!isDraft(ep))return;et.canAutoFreeze_=!1}else eh&&ei.add(eu);if(isDraftable(eu)&&!isFrozen(eu)){if(!et.immer_.autoFreeze_&&et.unfinalizedDrafts_<1)return;finalize(et,eu),eo&&eo.scope_.parent_||maybeFreeze(et,eu)}}function maybeFreeze(et,eo,ei=!1){!et.parent_&&et.immer_.autoFreeze_&&et.canAutoFreeze_&&freeze(eo,ei)}function createProxyProxy(et,eo){let ei=Array.isArray(et),ea={type_:ei?1:0,scope_:eo?eo.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:eo,base_:et,draft_:null,copy_:null,revoke_:null,isManual_:!1},eu=ea,ed=ey;ei&&(eu=[ea],ed=eC);let{revoke:eh,proxy:ep}=Proxy.revocable(eu,ed);return ea.draft_=ep,ea.revoke_=eh,ep}var ey={get(et,eo){if(eo===ep)return et;let ei=latest(et);if(!has(ei,eo))return readPropFromProto(et,ei,eo);let ea=ei[eo];return et.finalized_||!isDraftable(ea)?ea:ea===peek(et.base_,eo)?(prepareCopy(et),et.copy_[eo]=createProxy(ea,et)):ea},has:(et,eo)=>eo in latest(et),ownKeys:et=>Reflect.ownKeys(latest(et)),set(et,eo,ei){let ea=getDescriptorFromProto(latest(et),eo);if(ea?.set)return ea.set.call(et.draft_,ei),!0;if(!et.modified_){let ea=peek(latest(et),eo),eu=ea?.[ep];if(eu&&eu.base_===ei)return et.copy_[eo]=ei,et.assigned_[eo]=!1,!0;if(is(ei,ea)&&(void 0!==ei||has(et.base_,eo)))return!0;prepareCopy(et),markChanged(et)}return!!(et.copy_[eo]===ei&&(void 0!==ei||eo in et.copy_)||Number.isNaN(ei)&&Number.isNaN(et.copy_[eo]))||(et.copy_[eo]=ei,et.assigned_[eo]=!0,!0)},deleteProperty:(et,eo)=>(void 0!==peek(et.base_,eo)||eo in et.base_?(et.assigned_[eo]=!1,prepareCopy(et),markChanged(et)):delete et.assigned_[eo],et.copy_&&delete et.copy_[eo],!0),getOwnPropertyDescriptor(et,eo){let ei=latest(et),ea=Reflect.getOwnPropertyDescriptor(ei,eo);return ea?{writable:!0,configurable:1!==et.type_||"length"!==eo,enumerable:ea.enumerable,value:ei[eo]}:ea},defineProperty(){die(11)},getPrototypeOf:et=>ef(et.base_),setPrototypeOf(){die(12)}},eC={};function peek(et,eo){let ei=et[ep],ea=ei?latest(ei):et;return ea[eo]}function readPropFromProto(et,eo,ei){let ea=getDescriptorFromProto(eo,ei);return ea?"value"in ea?ea.value:ea.get?.call(et.draft_):void 0}function getDescriptorFromProto(et,eo){if(!(eo in et))return;let ei=ef(et);for(;ei;){let et=Object.getOwnPropertyDescriptor(ei,eo);if(et)return et;ei=ef(ei)}}function markChanged(et){!et.modified_&&(et.modified_=!0,et.parent_&&markChanged(et.parent_))}function prepareCopy(et){et.copy_||(et.copy_=shallowCopy(et.base_,et.scope_.immer_.useStrictShallowCopy_))}function createProxy(et,eo){let ei=isMap(et)?getPlugin("MapSet").proxyMap_(et,eo):isSet(et)?getPlugin("MapSet").proxySet_(et,eo):createProxyProxy(et,eo),ea=eo?eo.scope_:getCurrentScope();return ea.drafts_.push(ei),ei}function current(et){return isDraft(et)||die(10,et),currentImpl(et)}function currentImpl(et){let eo;if(!isDraftable(et)||isFrozen(et))return et;let ei=et[ep];if(ei){if(!ei.modified_)return ei.base_;ei.finalized_=!0,eo=shallowCopy(et,ei.scope_.immer_.useStrictShallowCopy_)}else eo=shallowCopy(et,!0);return each(eo,(et,ei)=>{set(eo,et,currentImpl(ei))}),ei&&(ei.finalized_=!1),eo}each(ey,(et,eo)=>{eC[et]=function(){return arguments[0]=arguments[0][0],eo.apply(this,arguments)}}),eC.deleteProperty=function(et,eo){return eC.set.call(this,et,eo,void 0)},eC.set=function(et,eo,ei){return ey.set.call(this,et[0],eo,ei,et[0])};var eS=new class{constructor(et){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(et,eo,ei)=>{let ea;if("function"==typeof et&&"function"!=typeof eo){let ei=eo;eo=et;let ea=this;return function(et=ei,...eu){return ea.produce(et,et=>eo.call(this,et,...eu))}}if("function"!=typeof eo&&die(6),void 0!==ei&&"function"!=typeof ei&&die(7),isDraftable(et)){let eu=enterScope(this),ed=createProxy(et,void 0),eh=!0;try{ea=eo(ed),eh=!1}finally{eh?revokeScope(eu):leaveScope(eu)}return usePatchesInScope(eu,ei),processResult(ea,eu)}if(et&&"object"==typeof et)die(1,et);else{if(void 0===(ea=eo(et))&&(ea=et),ea===ed&&(ea=void 0),this.autoFreeze_&&freeze(ea,!0),ei){let eo=[],eu=[];getPlugin("Patches").generateReplacementPatches_(et,ea,eo,eu),ei(eo,eu)}return ea}},this.produceWithPatches=(et,eo)=>{let ei,ea;if("function"==typeof et)return(eo,...ei)=>this.produceWithPatches(eo,eo=>et(eo,...ei));let eu=this.produce(et,eo,(et,eo)=>{ei=et,ea=eo});return[eu,ei,ea]},"boolean"==typeof et?.autoFreeze&&this.setAutoFreeze(et.autoFreeze),"boolean"==typeof et?.useStrictShallowCopy&&this.setUseStrictShallowCopy(et.useStrictShallowCopy)}createDraft(et){isDraftable(et)||die(8),isDraft(et)&&(et=current(et));let eo=enterScope(this),ei=createProxy(et,void 0);return ei[ep].isManual_=!0,leaveScope(eo),ei}finishDraft(et,eo){let ei=et&&et[ep];ei&&ei.isManual_||die(9);let{scope_:ea}=ei;return usePatchesInScope(ea,eo),processResult(void 0,ea)}setAutoFreeze(et){this.autoFreeze_=et}setUseStrictShallowCopy(et){this.useStrictShallowCopy_=et}applyPatches(et,eo){let ei;for(ei=eo.length-1;ei>=0;ei--){let ea=eo[ei];if(0===ea.path.length&&"replace"===ea.op){et=ea.value;break}}ei>-1&&(eo=eo.slice(ei+1));let ea=getPlugin("Patches").applyPatches_;return isDraft(et)?ea(et,eo):this.produce(et,et=>ea(et,eo))}},e_=eS.produce;function assertIsFunction(et,eo=`expected a function, instead received ${typeof et}`){if("function"!=typeof et)throw TypeError(eo)}function assertIsObject(et,eo=`expected an object, instead received ${typeof et}`){if("object"!=typeof et)throw TypeError(eo)}function assertIsArrayOfFunctions(et,eo="expected all items to be functions, instead received the following types: "){if(!et.every(et=>"function"==typeof et)){let ei=et.map(et=>"function"==typeof et?`function ${et.name||"unnamed"}()`:typeof et).join(", ");throw TypeError(`${eo}[${ei}]`)}}eS.produceWithPatches.bind(eS),eS.setAutoFreeze.bind(eS),eS.setUseStrictShallowCopy.bind(eS),eS.applyPatches.bind(eS),eS.createDraft.bind(eS),eS.finishDraft.bind(eS);var ensureIsArray=et=>Array.isArray(et)?et:[et];function getDependencies(et){let eo=Array.isArray(et[0])?et[0]:et;return assertIsArrayOfFunctions(eo,"createSelector expects all input-selectors to be functions, but received the following types: "),eo}function collectInputSelectorResults(et,eo){let ei=[],{length:ea}=et;for(let eu=0;eu<ea;eu++)ei.push(et[eu].apply(null,eo));return ei}var ew=0,eA=null,eI=class{revision=ew;_value;_lastValue;_isEqual=tripleEq;constructor(et,eo=tripleEq){this._value=this._lastValue=et,this._isEqual=eo}get value(){return eA?.add(this),this._value}set value(et){this.value!==et&&(this._value=et,this.revision=++ew)}};function tripleEq(et,eo){return et===eo}function getValue(et){return et instanceof eI||console.warn("Not a valid cell! ",et),et.value}function createCell(et,eo=tripleEq){return new eI(et,eo)}var neverEq=(et,eo)=>!1;function createTag(){return createCell(null,neverEq)}var consumeCollection=et=>{let eo=et.collectionTag;null===eo&&(eo=et.collectionTag=createTag()),getValue(eo)};Symbol();var eR=0,eT=Object.getPrototypeOf({}),eE=class{constructor(et){this.value=et,this.value=et,this.tag.value=et}proxy=new Proxy(this,eP);tag=createTag();tags={};children={};collectionTag=null;id=eR++},eP={get(et,eo){function calculateResult(){let{value:ei}=et,ea=Reflect.get(ei,eo);if("symbol"==typeof eo||eo in eT)return ea;if("object"==typeof ea&&null!==ea){let ei=et.children[eo];return void 0===ei&&(ei=et.children[eo]=createNode(ea)),ei.tag&&getValue(ei.tag),ei.proxy}{let ei=et.tags[eo];return void 0===ei&&((ei=et.tags[eo]=createTag()).value=ea),getValue(ei),ea}}let ei=calculateResult();return ei},ownKeys:et=>(consumeCollection(et),Reflect.ownKeys(et.value)),getOwnPropertyDescriptor:(et,eo)=>Reflect.getOwnPropertyDescriptor(et.value,eo),has:(et,eo)=>Reflect.has(et.value,eo)},ek=class{constructor(et){this.value=et,this.value=et,this.tag.value=et}proxy=new Proxy([this],eO);tag=createTag();tags={};children={};collectionTag=null;id=eR++},eO={get:([et],eo)=>("length"===eo&&consumeCollection(et),eP.get(et,eo)),ownKeys:([et])=>eP.ownKeys(et),getOwnPropertyDescriptor:([et],eo)=>eP.getOwnPropertyDescriptor(et,eo),has:([et],eo)=>eP.has(et,eo)};function createNode(et){return Array.isArray(et)?new ek(et):new eE(et)}var eM=class{constructor(et){this.value=et}deref(){return this.value}},eD="undefined"!=typeof WeakRef?WeakRef:eM,eU=0,eL=1;function createCacheNode(){return{s:eU,v:void 0,o:null,p:null}}function weakMapMemoize(et,eo={}){let ei,ea=createCacheNode(),{resultEqualityCheck:eu}=eo,ed=0;function memoized(){let eo,eh=ea,{length:ep}=arguments;for(let et=0,eo=ep;et<eo;et++){let eo=arguments[et];if("function"==typeof eo||"object"==typeof eo&&null!==eo){let et=eh.o;null===et&&(eh.o=et=new WeakMap);let ei=et.get(eo);void 0===ei?(eh=createCacheNode(),et.set(eo,eh)):eh=ei}else{let et=eh.p;null===et&&(eh.p=et=new Map);let ei=et.get(eo);void 0===ei?(eh=createCacheNode(),et.set(eo,eh)):eh=ei}}let ef=eh;if(eh.s===eL?eo=eh.v:(eo=et.apply(null,arguments),ed++),ef.s=eL,eu){let et=ei?.deref?.()??ei;null!=et&&eu(et,eo)&&(eo=et,0!==ed&&ed--);let ea="object"==typeof eo&&null!==eo||"function"==typeof eo;ei=ea?new eD(eo):eo}return ef.v=eo,eo}return memoized.clearCache=()=>{ea=createCacheNode(),memoized.resetResultsCount()},memoized.resultsCount=()=>ed,memoized.resetResultsCount=()=>{ed=0},memoized}function createSelectorCreator(et,...eo){let ei="function"==typeof et?{memoize:et,memoizeOptions:eo}:et,createSelector2=(...et)=>{let eo,ea=0,eu=0,ed={},eh=et.pop();"object"==typeof eh&&(ed=eh,eh=et.pop()),assertIsFunction(eh,`createSelector expects an output function after the inputs, but received: [${typeof eh}]`);let ep={...ei,...ed},{memoize:ef,memoizeOptions:em=[],argsMemoize:eg=weakMapMemoize,argsMemoizeOptions:ey=[],devModeChecks:eC={}}=ep,eS=ensureIsArray(em),e_=ensureIsArray(ey),ew=getDependencies(et),eA=ef(function(){return ea++,eh.apply(null,arguments)},...eS),eI=eg(function(){eu++;let et=collectInputSelectorResults(ew,arguments);return eo=eA.apply(null,et)},...e_);return Object.assign(eI,{resultFunc:eh,memoizedResultFunc:eA,dependencies:ew,dependencyRecomputations:()=>eu,resetDependencyRecomputations:()=>{eu=0},lastResult:()=>eo,recomputations:()=>ea,resetRecomputations:()=>{ea=0},memoize:ef,argsMemoize:eg})};return Object.assign(createSelector2,{withTypes:()=>createSelector2}),createSelector2}var eN=createSelectorCreator(weakMapMemoize),eB=Object.assign((et,eo=eN)=>{assertIsObject(et,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof et}`);let ei=Object.keys(et),ea=ei.map(eo=>et[eo]),eu=eo(ea,(...et)=>et.reduce((et,eo,ea)=>(et[ei[ea]]=eo,et),{}));return eu},{withTypes:()=>eB});function formatProdErrorMessage(et){return`Minified Redux error #${et}; visit https://redux.js.org/Errors?code=${et} for the full message or use the non-minified dev environment for full errors. `}var eF="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=()=>Math.random().toString(36).substring(7).split("").join("."),ej={INIT:`@@redux/INIT${randomString()}`,REPLACE:`@@redux/REPLACE${randomString()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString()}`};function redux_isPlainObject(et){if("object"!=typeof et||null===et)return!1;let eo=et;for(;null!==Object.getPrototypeOf(eo);)eo=Object.getPrototypeOf(eo);return Object.getPrototypeOf(et)===eo||null===Object.getPrototypeOf(et)}function createStore(et,eo,ei){if("function"!=typeof et)throw Error(formatProdErrorMessage(2));if("function"==typeof eo&&"function"==typeof ei||"function"==typeof ei&&"function"==typeof arguments[3])throw Error(formatProdErrorMessage(0));if("function"==typeof eo&&void 0===ei&&(ei=eo,eo=void 0),void 0!==ei){if("function"!=typeof ei)throw Error(formatProdErrorMessage(1));return ei(createStore)(et,eo)}let ea=et,eu=eo,ed=new Map,eh=ed,ep=0,ef=!1;function ensureCanMutateNextListeners(){eh===ed&&(eh=new Map,ed.forEach((et,eo)=>{eh.set(eo,et)}))}function getState(){if(ef)throw Error(formatProdErrorMessage(3));return eu}function subscribe(et){if("function"!=typeof et)throw Error(formatProdErrorMessage(4));if(ef)throw Error(formatProdErrorMessage(5));let eo=!0;ensureCanMutateNextListeners();let ei=ep++;return eh.set(ei,et),function(){if(eo){if(ef)throw Error(formatProdErrorMessage(6));eo=!1,ensureCanMutateNextListeners(),eh.delete(ei),ed=null}}}function dispatch(et){if(!redux_isPlainObject(et))throw Error(formatProdErrorMessage(7));if(void 0===et.type)throw Error(formatProdErrorMessage(8));if("string"!=typeof et.type)throw Error(formatProdErrorMessage(17));if(ef)throw Error(formatProdErrorMessage(9));try{ef=!0,eu=ea(eu,et)}finally{ef=!1}let eo=ed=eh;return eo.forEach(et=>{et()}),et}function replaceReducer(et){if("function"!=typeof et)throw Error(formatProdErrorMessage(10));ea=et,dispatch({type:ej.REPLACE})}function observable(){let et=subscribe;return{subscribe(eo){if("object"!=typeof eo||null===eo)throw Error(formatProdErrorMessage(11));function observeState(){let et=eo;et.next&&et.next(getState())}observeState();let ei=et(observeState);return{unsubscribe:ei}},[eF](){return this}}}dispatch({type:ej.INIT});let em={dispatch,subscribe,getState,replaceReducer,[eF]:observable};return em}function assertReducerShape(et){Object.keys(et).forEach(eo=>{let ei=et[eo],ea=ei(void 0,{type:ej.INIT});if(void 0===ea)throw Error(formatProdErrorMessage(12));if(void 0===ei(void 0,{type:ej.PROBE_UNKNOWN_ACTION()}))throw Error(formatProdErrorMessage(13))})}function combineReducers(et){let eo;let ei=Object.keys(et),ea={};for(let eo=0;eo<ei.length;eo++){let eu=ei[eo];"function"==typeof et[eu]&&(ea[eu]=et[eu])}let eu=Object.keys(ea);try{assertReducerShape(ea)}catch(et){eo=et}return function(et={},ei){if(eo)throw eo;let ed=!1,eh={};for(let eo=0;eo<eu.length;eo++){let ep=eu[eo],ef=ea[ep],em=et[ep],eg=ef(em,ei);if(void 0===eg)throw ei&&ei.type,Error(formatProdErrorMessage(14));eh[ep]=eg,ed=ed||eg!==em}return(ed=ed||eu.length!==Object.keys(et).length)?eh:et}}function compose(...et){return 0===et.length?et=>et:1===et.length?et[0]:et.reduce((et,eo)=>(...ei)=>et(eo(...ei)))}function applyMiddleware(...et){return eo=>(ei,ea)=>{let eu=eo(ei,ea),dispatch=()=>{throw Error(formatProdErrorMessage(15))},ed={getState:eu.getState,dispatch:(et,...eo)=>dispatch(et,...eo)},eh=et.map(et=>et(ed));return dispatch=compose(...eh)(eu.dispatch),{...eu,dispatch}}}function redux_isAction(et){return redux_isPlainObject(et)&&"type"in et&&"string"==typeof et.type}function createThunkMiddleware(et){let middleware=({dispatch:eo,getState:ei})=>ea=>eu=>"function"==typeof eu?eu(eo,ei,et):ea(eu);return middleware}var eG=createThunkMiddleware(),eH=createThunkMiddleware;ei(34155),((...et)=>{let eo=createSelectorCreator(...et);return(...et)=>{let ei=eo(...et),wrappedSelector=(et,...eo)=>ei(isDraft(et)?current(et):et,...eo);return Object.assign(wrappedSelector,ei),wrappedSelector}})(weakMapMemoize);var eK="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?compose:compose.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var hasMatchFunction=et=>et&&"function"==typeof et.match;function createAction(et,eo){function actionCreator(...ei){if(eo){let ea=eo(...ei);if(!ea)throw Error(redux_toolkit_modern_formatProdErrorMessage(0));return{type:et,payload:ea.payload,..."meta"in ea&&{meta:ea.meta},..."error"in ea&&{error:ea.error}}}return{type:et,payload:ei[0]}}return actionCreator.toString=()=>`${et}`,actionCreator.type=et,actionCreator.match=eo=>redux_isAction(eo)&&eo.type===et,actionCreator}var ez=class _Tuple extends Array{constructor(...et){super(...et),Object.setPrototypeOf(this,_Tuple.prototype)}static get[Symbol.species](){return _Tuple}concat(...et){return super.concat.apply(this,et)}prepend(...et){return 1===et.length&&Array.isArray(et[0])?new _Tuple(...et[0].concat(this)):new _Tuple(...et.concat(this))}};function freezeDraftable(et){return isDraftable(et)?e_(et,()=>{}):et}function emplace(et,eo,ei){if(et.has(eo)){let ea=et.get(eo);return ei.update&&(ea=ei.update(ea,eo,et),et.set(eo,ea)),ea}if(!ei.insert)throw Error(redux_toolkit_modern_formatProdErrorMessage(10));let ea=ei.insert(eo,et);return et.set(eo,ea),ea}function isBoolean(et){return"boolean"==typeof et}var buildGetDefaultMiddleware=()=>function(et){let{thunk:eo=!0,immutableCheck:ei=!0,serializableCheck:ea=!0,actionCreatorCheck:eu=!0}=et??{},ed=new ez;return eo&&(isBoolean(eo)?ed.push(eG):ed.push(eH(eo.extraArgument))),ed},eW="RTK_autoBatch",createQueueWithTimer=et=>eo=>{setTimeout(eo,et)},eV="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=(et={type:"raf"})=>eo=>(...ei)=>{let ea=eo(...ei),eu=!0,ed=!1,eh=!1,ep=new Set,ef="tick"===et.type?queueMicrotask:"raf"===et.type?eV:"callback"===et.type?et.queueNotification:createQueueWithTimer(et.timeout),notifyListeners=()=>{eh=!1,ed&&(ed=!1,ep.forEach(et=>et()))};return Object.assign({},ea,{subscribe(et){let wrappedListener=()=>eu&&et(),eo=ea.subscribe(wrappedListener);return ep.add(et),()=>{eo(),ep.delete(et)}},dispatch(et){try{return(ed=!(eu=!et?.meta?.[eW]))&&!eh&&(eh=!0,ef(notifyListeners)),ea.dispatch(et)}finally{eu=!0}}})},buildGetDefaultEnhancers=et=>function(eo){let{autoBatch:ei=!0}=eo??{},ea=new ez(et);return ei&&ea.push(autoBatchEnhancer("object"==typeof ei?ei:void 0)),ea},eJ=!0;function configureStore(et){let eo,ei;let ea=buildGetDefaultMiddleware(),{reducer:eu,middleware:ed,devTools:eh=!0,preloadedState:ep,enhancers:ef}=et||{};if("function"==typeof eu)eo=eu;else if(redux_isPlainObject(eu))eo=combineReducers(eu);else throw Error(redux_toolkit_modern_formatProdErrorMessage(1));if(!eJ&&ed&&"function"!=typeof ed)throw Error(redux_toolkit_modern_formatProdErrorMessage(2));if("function"==typeof ed){if(ei=ed(ea),!eJ&&!Array.isArray(ei))throw Error(redux_toolkit_modern_formatProdErrorMessage(3))}else ei=ea();if(!eJ&&ei.some(et=>"function"!=typeof et))throw Error(redux_toolkit_modern_formatProdErrorMessage(4));let em=compose;eh&&(em=eK({trace:!eJ,..."object"==typeof eh&&eh}));let eg=applyMiddleware(...ei),ey=buildGetDefaultEnhancers(eg);if(!eJ&&ef&&"function"!=typeof ef)throw Error(redux_toolkit_modern_formatProdErrorMessage(5));let eC="function"==typeof ef?ef(ey):ey();if(!eJ&&!Array.isArray(eC))throw Error(redux_toolkit_modern_formatProdErrorMessage(6));if(!eJ&&eC.some(et=>"function"!=typeof et))throw Error(redux_toolkit_modern_formatProdErrorMessage(7));eJ||!ei.length||eC.includes(eg)||console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");let eS=em(...eC);return createStore(eo,ep,eS)}function executeReducerBuilderCallback(et){let eo;let ei={},ea=[],eu={addCase(et,eo){let ea="string"==typeof et?et:et.type;if(!ea)throw Error(redux_toolkit_modern_formatProdErrorMessage(28));if(ea in ei)throw Error(redux_toolkit_modern_formatProdErrorMessage(29));return ei[ea]=eo,eu},addMatcher:(et,eo)=>(ea.push({matcher:et,reducer:eo}),eu),addDefaultCase:et=>(eo=et,eu)};return et(eu),[ei,ea,eo]}function isStateFunction(et){return"function"==typeof et}function createReducer(et,eo){let ei;let[ea,eu,ed]=executeReducerBuilderCallback(eo);if(isStateFunction(et))ei=()=>freezeDraftable(et());else{let eo=freezeDraftable(et);ei=()=>eo}function reducer(et=ei(),eo){let eh=[ea[eo.type],...eu.filter(({matcher:et})=>et(eo)).map(({reducer:et})=>et)];return 0===eh.filter(et=>!!et).length&&(eh=[ed]),eh.reduce((et,ei)=>{if(ei){if(isDraft(et)){let ea=et,eu=ei(ea,eo);return void 0===eu?et:eu}if(isDraftable(et))return e_(et,et=>ei(et,eo));{let ea=ei(et,eo);if(void 0===ea){if(null===et)return et;throw Error(redux_toolkit_modern_formatProdErrorMessage(9))}return ea}}return et},et)}return reducer.getInitialState=ei,reducer}var eY="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=(et=21)=>{let eo="",ei=et;for(;ei--;)eo+=eY[64*Math.random()|0];return eo},matches=(et,eo)=>hasMatchFunction(et)?et.match(eo):et(eo);function isAnyOf(...et){return eo=>et.some(et=>matches(et,eo))}var e$=["name","message","stack","code"],eZ=class{constructor(et,eo){this.payload=et,this.meta=eo}_type},eQ=class{constructor(et,eo){this.payload=et,this.meta=eo}_type},miniSerializeError=et=>{if("object"==typeof et&&null!==et){let eo={};for(let ei of e$)"string"==typeof et[ei]&&(eo[ei]=et[ei]);return eo}return{message:String(et)}},eX=(()=>{function createAsyncThunk2(et,eo,ei){let ea=createAction(et+"/fulfilled",(et,eo,ei,ea)=>({payload:et,meta:{...ea||{},arg:ei,requestId:eo,requestStatus:"fulfilled"}})),eu=createAction(et+"/pending",(et,eo,ei)=>({payload:void 0,meta:{...ei||{},arg:eo,requestId:et,requestStatus:"pending"}})),ed=createAction(et+"/rejected",(et,eo,ea,eu,ed)=>({payload:eu,error:(ei&&ei.serializeError||miniSerializeError)(et||"Rejected"),meta:{...ed||{},arg:ea,requestId:eo,rejectedWithValue:!!eu,requestStatus:"rejected",aborted:et?.name==="AbortError",condition:et?.name==="ConditionError"}}));return Object.assign(function(et){return(eh,ep,ef)=>{let em;let eg=ei?.idGenerator?ei.idGenerator(et):nanoid(),ey=new AbortController;function abort(et){em=et,ey.abort()}let eC=async function(){let eC;try{let ed=ei?.condition?.(et,{getState:ep,extra:ef});if(isThenable(ed)&&(ed=await ed),!1===ed||ey.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let eS=new Promise((et,eo)=>ey.signal.addEventListener("abort",()=>eo({name:"AbortError",message:em||"Aborted"})));eh(eu(eg,et,ei?.getPendingMeta?.({requestId:eg,arg:et},{getState:ep,extra:ef}))),eC=await Promise.race([eS,Promise.resolve(eo(et,{dispatch:eh,getState:ep,extra:ef,requestId:eg,signal:ey.signal,abort,rejectWithValue:(et,eo)=>new eZ(et,eo),fulfillWithValue:(et,eo)=>new eQ(et,eo)})).then(eo=>{if(eo instanceof eZ)throw eo;return eo instanceof eQ?ea(eo.payload,eg,et,eo.meta):ea(eo,eg,et)})])}catch(eo){eC=eo instanceof eZ?ed(null,eg,et,eo.payload,eo.meta):ed(eo,eg,et)}let eS=ei&&!ei.dispatchConditionRejection&&ed.match(eC)&&eC.meta.condition;return eS||eh(eC),eC}();return Object.assign(eC,{abort,requestId:eg,arg:et,unwrap:()=>eC.then(unwrapResult)})}},{pending:eu,rejected:ed,fulfilled:ea,settled:isAnyOf(ed,ea),typePrefix:et})}return createAsyncThunk2.withTypes=()=>createAsyncThunk2,createAsyncThunk2})();function unwrapResult(et){if(et.meta&&et.meta.rejectedWithValue)throw et.payload;if(et.error)throw et.error;return et.payload}function isThenable(et){return null!==et&&"object"==typeof et&&"function"==typeof et.then}var e0=Symbol.for("rtk-slice-createasyncthunk"),e4=((ea=e4||{}).reducer="reducer",ea.reducerWithPrepare="reducerWithPrepare",ea.asyncThunk="asyncThunk",ea);function getType(et,eo){return`${et}/${eo}`}function wrapSelector(et,eo,ei,ea){function wrapper(eu,...ed){let eh=ei.call(et,eu);return void 0===eh&&ea&&(eh=et.getInitialState()),eo(eh,...ed)}return wrapper.unwrapped=eo,wrapper}var e6=function({creators:et}={}){let eo=et?.asyncThunk?.[e0];return function(et){let ei;let{name:ea,reducerPath:eu=ea}=et;if(!ea)throw Error(redux_toolkit_modern_formatProdErrorMessage(11));let ed=("function"==typeof et.reducers?et.reducers(buildReducerCreators()):et.reducers)||{},eh=Object.keys(ed),ep={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},ef={addCase(et,eo){let ei="string"==typeof et?et:et.type;if(!ei)throw Error(redux_toolkit_modern_formatProdErrorMessage(12));if(ei in ep.sliceCaseReducersByType)throw Error(redux_toolkit_modern_formatProdErrorMessage(13));return ep.sliceCaseReducersByType[ei]=eo,ef},addMatcher:(et,eo)=>(ep.sliceMatchers.push({matcher:et,reducer:eo}),ef),exposeAction:(et,eo)=>(ep.actionCreators[et]=eo,ef),exposeCaseReducer:(et,eo)=>(ep.sliceCaseReducersByName[et]=eo,ef)};function buildReducer(){let[eo={},ei=[],ea]="function"==typeof et.extraReducers?executeReducerBuilderCallback(et.extraReducers):[et.extraReducers],eu={...eo,...ep.sliceCaseReducersByType};return createReducer(et.initialState,et=>{for(let eo in eu)et.addCase(eo,eu[eo]);for(let eo of ep.sliceMatchers)et.addMatcher(eo.matcher,eo.reducer);for(let eo of ei)et.addMatcher(eo.matcher,eo.reducer);ea&&et.addDefaultCase(ea)})}eh.forEach(ei=>{let eu=ed[ei],eh={reducerName:ei,type:getType(ea,ei),createNotation:"function"==typeof et.reducers};isAsyncThunkSliceReducerDefinition(eu)?handleThunkCaseReducerDefinition(eh,eu,ef,eo):handleNormalReducerDefinition(eh,eu,ef)});let selectSelf=et=>et,em=new WeakMap,eg={name:ea,reducerPath:eu,reducer:(et,eo)=>(ei||(ei=buildReducer()),ei(et,eo)),actions:ep.actionCreators,caseReducers:ep.sliceCaseReducersByName,getInitialState:()=>(ei||(ei=buildReducer()),ei.getInitialState()),getSelectors(eo=selectSelf){let ei=emplace(em,this,{insert:()=>new WeakMap});return emplace(ei,eo,{insert:()=>{let ei={};for(let[ea,eu]of Object.entries(et.selectors??{}))ei[ea]=wrapSelector(this,eu,eo,this!==eg);return ei}})},selectSlice(et){let eo=et[this.reducerPath];return void 0===eo&&this!==eg&&(eo=this.getInitialState()),eo},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(et,{reducerPath:eo,...ei}={}){let ea=eo??this.reducerPath;return et.inject({reducerPath:ea,reducer:this.reducer},ei),{...this,reducerPath:ea}}};return eg}}();function buildReducerCreators(){function asyncThunk(et,eo){return{_reducerDefinitionType:"asyncThunk",payloadCreator:et,...eo}}return asyncThunk.withTypes=()=>asyncThunk,{reducer:et=>Object.assign({[et.name]:(...eo)=>et(...eo)}[et.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(et,eo)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:et,reducer:eo}),asyncThunk}}function handleNormalReducerDefinition({type:et,reducerName:eo,createNotation:ei},ea,eu){let ed,eh;if("reducer"in ea){if(ei&&!isCaseReducerWithPrepareDefinition(ea))throw Error(redux_toolkit_modern_formatProdErrorMessage(17));ed=ea.reducer,eh=ea.prepare}else ed=ea;eu.addCase(et,ed).exposeCaseReducer(eo,ed).exposeAction(eo,eh?createAction(et,eh):createAction(et))}function isAsyncThunkSliceReducerDefinition(et){return"asyncThunk"===et._reducerDefinitionType}function isCaseReducerWithPrepareDefinition(et){return"reducerWithPrepare"===et._reducerDefinitionType}function handleThunkCaseReducerDefinition({type:et,reducerName:eo},ei,ea,eu){if(!eu)throw Error(redux_toolkit_modern_formatProdErrorMessage(18));let{payloadCreator:ed,fulfilled:eh,pending:ep,rejected:ef,settled:em,options:eg}=ei,ey=eu(et,ed,eg);ea.exposeAction(eo,ey),eh&&ea.addCase(ey.fulfilled,eh),ep&&ea.addCase(ey.pending,ep),ef&&ea.addCase(ey.rejected,ef),em&&ea.addMatcher(ey.settled,em),ea.exposeCaseReducer(eo,{fulfilled:eh||noop,pending:ep||noop,rejected:ef||noop,settled:em||noop})}function noop(){}var{assign:e5}=Object,e8="listenerMiddleware";function redux_toolkit_modern_formatProdErrorMessage(et){return`Minified Redux Toolkit error #${et}; visit https://redux-toolkit.js.org/Errors?code=${et} for the full message or use the non-minified dev environment for full errors. `}createAction(`${e8}/add`),createAction(`${e8}/removeAll`),createAction(`${e8}/remove`),Symbol.for("rtk-state-proxy-original")},5121:function(et,eo,ei){"use strict";ei.d(eo,{default:function(){return t_}});var ea,eu,ed,eh={};function bind(et,eo){return function(){return et.apply(eo,arguments)}}ei.r(eh),ei.d(eh,{hasBrowserEnv:function(){return eQ},hasStandardBrowserEnv:function(){return eX},hasStandardBrowserWebWorkerEnv:function(){return e0}});let{toString:ep}=Object.prototype,{getPrototypeOf:ef}=Object,em=(ea=Object.create(null),et=>{let eo=ep.call(et);return ea[eo]||(ea[eo]=eo.slice(8,-1).toLowerCase())}),kindOfTest=et=>(et=et.toLowerCase(),eo=>em(eo)===et),typeOfTest=et=>eo=>typeof eo===et,{isArray:eg}=Array,ey=typeOfTest("undefined");function isBuffer(et){return null!==et&&!ey(et)&&null!==et.constructor&&!ey(et.constructor)&&e_(et.constructor.isBuffer)&&et.constructor.isBuffer(et)}let eC=kindOfTest("ArrayBuffer");function isArrayBufferView(et){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(et):et&&et.buffer&&eC(et.buffer)}let eS=typeOfTest("string"),e_=typeOfTest("function"),ew=typeOfTest("number"),isObject=et=>null!==et&&"object"==typeof et,isBoolean=et=>!0===et||!1===et,isPlainObject=et=>{if("object"!==em(et))return!1;let eo=ef(et);return(null===eo||eo===Object.prototype||null===Object.getPrototypeOf(eo))&&!(Symbol.toStringTag in et)&&!(Symbol.iterator in et)},eA=kindOfTest("Date"),eI=kindOfTest("File"),eR=kindOfTest("Blob"),eT=kindOfTest("FileList"),isStream=et=>isObject(et)&&e_(et.pipe),isFormData=et=>{let eo;return et&&("function"==typeof FormData&&et instanceof FormData||e_(et.append)&&("formdata"===(eo=em(et))||"object"===eo&&e_(et.toString)&&"[object FormData]"===et.toString()))},eE=kindOfTest("URLSearchParams"),trim=et=>et.trim?et.trim():et.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(et,eo,{allOwnKeys:ei=!1}={}){let ea,eu;if(null!=et){if("object"!=typeof et&&(et=[et]),eg(et))for(ea=0,eu=et.length;ea<eu;ea++)eo.call(null,et[ea],ea,et);else{let eu;let ed=ei?Object.getOwnPropertyNames(et):Object.keys(et),eh=ed.length;for(ea=0;ea<eh;ea++)eu=ed[ea],eo.call(null,et[eu],eu,et)}}}function findKey(et,eo){let ei;eo=eo.toLowerCase();let ea=Object.keys(et),eu=ea.length;for(;eu-- >0;)if(eo===(ei=ea[eu]).toLowerCase())return ei;return null}let eP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=et=>!ey(et)&&et!==eP;function merge(){let{caseless:et}=isContextDefined(this)&&this||{},eo={},assignValue=(ei,ea)=>{let eu=et&&findKey(eo,ea)||ea;isPlainObject(eo[eu])&&isPlainObject(ei)?eo[eu]=merge(eo[eu],ei):isPlainObject(ei)?eo[eu]=merge({},ei):eg(ei)?eo[eu]=ei.slice():eo[eu]=ei};for(let et=0,eo=arguments.length;et<eo;et++)arguments[et]&&forEach(arguments[et],assignValue);return eo}let extend=(et,eo,ei,{allOwnKeys:ea}={})=>(forEach(eo,(eo,ea)=>{ei&&e_(eo)?et[ea]=bind(eo,ei):et[ea]=eo},{allOwnKeys:ea}),et),stripBOM=et=>(65279===et.charCodeAt(0)&&(et=et.slice(1)),et),inherits=(et,eo,ei,ea)=>{et.prototype=Object.create(eo.prototype,ea),et.prototype.constructor=et,Object.defineProperty(et,"super",{value:eo.prototype}),ei&&Object.assign(et.prototype,ei)},toFlatObject=(et,eo,ei,ea)=>{let eu,ed,eh;let ep={};if(eo=eo||{},null==et)return eo;do{for(ed=(eu=Object.getOwnPropertyNames(et)).length;ed-- >0;)eh=eu[ed],(!ea||ea(eh,et,eo))&&!ep[eh]&&(eo[eh]=et[eh],ep[eh]=!0);et=!1!==ei&&ef(et)}while(et&&(!ei||ei(et,eo))&&et!==Object.prototype);return eo},endsWith=(et,eo,ei)=>{et=String(et),(void 0===ei||ei>et.length)&&(ei=et.length),ei-=eo.length;let ea=et.indexOf(eo,ei);return -1!==ea&&ea===ei},toArray=et=>{if(!et)return null;if(eg(et))return et;let eo=et.length;if(!ew(eo))return null;let ei=Array(eo);for(;eo-- >0;)ei[eo]=et[eo];return ei},ek=(eu="undefined"!=typeof Uint8Array&&ef(Uint8Array),et=>eu&&et instanceof eu),forEachEntry=(et,eo)=>{let ei;let ea=et&&et[Symbol.iterator],eu=ea.call(et);for(;(ei=eu.next())&&!ei.done;){let ea=ei.value;eo.call(et,ea[0],ea[1])}},matchAll=(et,eo)=>{let ei;let ea=[];for(;null!==(ei=et.exec(eo));)ea.push(ei);return ea},eO=kindOfTest("HTMLFormElement"),toCamelCase=et=>et.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(et,eo,ei){return eo.toUpperCase()+ei}),eM=(({hasOwnProperty:et})=>(eo,ei)=>et.call(eo,ei))(Object.prototype),eD=kindOfTest("RegExp"),reduceDescriptors=(et,eo)=>{let ei=Object.getOwnPropertyDescriptors(et),ea={};forEach(ei,(ei,eu)=>{let ed;!1!==(ed=eo(ei,eu,et))&&(ea[eu]=ed||ei)}),Object.defineProperties(et,ea)},freezeMethods=et=>{reduceDescriptors(et,(eo,ei)=>{if(e_(et)&&-1!==["arguments","caller","callee"].indexOf(ei))return!1;let ea=et[ei];if(e_(ea)){if(eo.enumerable=!1,"writable"in eo){eo.writable=!1;return}eo.set||(eo.set=()=>{throw Error("Can not rewrite read-only method '"+ei+"'")})}})},toObjectSet=(et,eo)=>{let ei={},define=et=>{et.forEach(et=>{ei[et]=!0})};return define(eg(et)?et:String(et).split(eo)),ei},noop=()=>{},toFiniteNumber=(et,eo)=>Number.isFinite(et=+et)?et:eo,eU="abcdefghijklmnopqrstuvwxyz",eL="0123456789",eN={DIGIT:eL,ALPHA:eU,ALPHA_DIGIT:eU+eU.toUpperCase()+eL},generateString=(et=16,eo=eN.ALPHA_DIGIT)=>{let ei="",{length:ea}=eo;for(;et--;)ei+=eo[Math.random()*ea|0];return ei};function isSpecCompliantForm(et){return!!(et&&e_(et.append)&&"FormData"===et[Symbol.toStringTag]&&et[Symbol.iterator])}let toJSONObject=et=>{let eo=Array(10),visit=(et,ei)=>{if(isObject(et)){if(eo.indexOf(et)>=0)return;if(!("toJSON"in et)){eo[ei]=et;let ea=eg(et)?[]:{};return forEach(et,(et,eo)=>{let eu=visit(et,ei+1);ey(eu)||(ea[eo]=eu)}),eo[ei]=void 0,ea}}return et};return visit(et,0)},eB=kindOfTest("AsyncFunction"),isThenable=et=>et&&(isObject(et)||e_(et))&&e_(et.then)&&e_(et.catch);var eF={isArray:eg,isArrayBuffer:eC,isBuffer,isFormData,isArrayBufferView,isString:eS,isNumber:ew,isBoolean,isObject,isPlainObject,isUndefined:ey,isDate:eA,isFile:eI,isBlob:eR,isRegExp:eD,isFunction:e_,isStream,isURLSearchParams:eE,isTypedArray:ek,isFileList:eT,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf:em,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm:eO,hasOwnProperty:eM,hasOwnProp:eM,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:eP,isContextDefined,ALPHABET:eN,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn:eB,isThenable};function AxiosError(et,eo,ei,ea,eu){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=et,this.name="AxiosError",eo&&(this.code=eo),ei&&(this.config=ei),ea&&(this.request=ea),eu&&(this.response=eu)}eF.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eF.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let ej=AxiosError.prototype,eG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(et=>{eG[et]={value:et}}),Object.defineProperties(AxiosError,eG),Object.defineProperty(ej,"isAxiosError",{value:!0}),AxiosError.from=(et,eo,ei,ea,eu,ed)=>{let eh=Object.create(ej);return eF.toFlatObject(et,eh,function(et){return et!==Error.prototype},et=>"isAxiosError"!==et),AxiosError.call(eh,et.message,eo,ei,ea,eu),eh.cause=et,eh.name=et.name,ed&&Object.assign(eh,ed),eh};var eH=AxiosError,eK=null,ez=ei(48764).Buffer;function isVisitable(et){return eF.isPlainObject(et)||eF.isArray(et)}function removeBrackets(et){return eF.endsWith(et,"[]")?et.slice(0,-2):et}function renderKey(et,eo,ei){return et?et.concat(eo).map(function(et,eo){return et=removeBrackets(et),!ei&&eo?"["+et+"]":et}).join(ei?".":""):eo}function isFlatArray(et){return eF.isArray(et)&&!et.some(isVisitable)}let eW=eF.toFlatObject(eF,{},null,function(et){return/^is[A-Z]/.test(et)});var helpers_toFormData=function(et,eo,ei){if(!eF.isObject(et))throw TypeError("target must be an object");eo=eo||new(eK||FormData),ei=eF.toFlatObject(ei,{metaTokens:!0,dots:!1,indexes:!1},!1,function(et,eo){return!eF.isUndefined(eo[et])});let ea=ei.metaTokens,eu=ei.visitor||defaultVisitor,ed=ei.dots,eh=ei.indexes,ep=ei.Blob||"undefined"!=typeof Blob&&Blob,ef=ep&&eF.isSpecCompliantForm(eo);if(!eF.isFunction(eu))throw TypeError("visitor must be a function");function convertValue(et){if(null===et)return"";if(eF.isDate(et))return et.toISOString();if(!ef&&eF.isBlob(et))throw new eH("Blob is not supported. Use a Buffer instead.");return eF.isArrayBuffer(et)||eF.isTypedArray(et)?ef&&"function"==typeof Blob?new Blob([et]):ez.from(et):et}function defaultVisitor(et,ei,eu){let ep=et;if(et&&!eu&&"object"==typeof et){if(eF.endsWith(ei,"{}"))ei=ea?ei:ei.slice(0,-2),et=JSON.stringify(et);else if(eF.isArray(et)&&isFlatArray(et)||(eF.isFileList(et)||eF.endsWith(ei,"[]"))&&(ep=eF.toArray(et)))return ei=removeBrackets(ei),ep.forEach(function(et,ea){eF.isUndefined(et)||null===et||eo.append(!0===eh?renderKey([ei],ea,ed):null===eh?ei:ei+"[]",convertValue(et))}),!1}return!!isVisitable(et)||(eo.append(renderKey(eu,ei,ed),convertValue(et)),!1)}let em=[],eg=Object.assign(eW,{defaultVisitor,convertValue,isVisitable});function build(et,ei){if(!eF.isUndefined(et)){if(-1!==em.indexOf(et))throw Error("Circular reference detected in "+ei.join("."));em.push(et),eF.forEach(et,function(et,ea){let ed=!(eF.isUndefined(et)||null===et)&&eu.call(eo,et,eF.isString(ea)?ea.trim():ea,ei,eg);!0===ed&&build(et,ei?ei.concat(ea):[ea])}),em.pop()}}if(!eF.isObject(et))throw TypeError("data must be an object");return build(et),eo};function encode(et){let eo={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(et).replace(/[!'()~]|%20|%00/g,function(et){return eo[et]})}function AxiosURLSearchParams(et,eo){this._pairs=[],et&&helpers_toFormData(et,this,eo)}let eV=AxiosURLSearchParams.prototype;eV.append=function(et,eo){this._pairs.push([et,eo])},eV.toString=function(et){let eo=et?function(eo){return et.call(this,eo,encode)}:encode;return this._pairs.map(function(et){return eo(et[0])+"="+eo(et[1])},"").join("&")};var eJ=AxiosURLSearchParams;function buildURL_encode(et){return encodeURIComponent(et).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(et,eo,ei){let ea;if(!eo)return et;let eu=ei&&ei.encode||buildURL_encode,ed=ei&&ei.serialize;if(ea=ed?ed(eo,ei):eF.isURLSearchParams(eo)?eo.toString():new eJ(eo,ei).toString(eu)){let eo=et.indexOf("#");-1!==eo&&(et=et.slice(0,eo)),et+=(-1===et.indexOf("?")?"?":"&")+ea}return et}let InterceptorManager=class InterceptorManager{constructor(){this.handlers=[]}use(et,eo,ei){return this.handlers.push({fulfilled:et,rejected:eo,synchronous:!!ei&&ei.synchronous,runWhen:ei?ei.runWhen:null}),this.handlers.length-1}eject(et){this.handlers[et]&&(this.handlers[et]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(et){eF.forEach(this.handlers,function(eo){null!==eo&&et(eo)})}};var eY=InterceptorManager,e$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eZ={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:eJ,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let eQ="undefined"!=typeof window&&"undefined"!=typeof document,eX=(ed="undefined"!=typeof navigator&&navigator.product,eQ&&0>["ReactNative","NativeScript","NS"].indexOf(ed)),e0="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var e4={...eh,...eZ};function toURLEncodedForm(et,eo){return helpers_toFormData(et,new e4.classes.URLSearchParams,Object.assign({visitor:function(et,eo,ei,ea){return e4.isNode&&eF.isBuffer(et)?(this.append(eo,et.toString("base64")),!1):ea.defaultVisitor.apply(this,arguments)}},eo))}function parsePropPath(et){return eF.matchAll(/\w+|\[(\w*)]/g,et).map(et=>"[]"===et[0]?"":et[1]||et[0])}function arrayToObject(et){let eo,ei;let ea={},eu=Object.keys(et),ed=eu.length;for(eo=0;eo<ed;eo++)ea[ei=eu[eo]]=et[ei];return ea}var helpers_formDataToJSON=function(et){function buildPath(et,eo,ei,ea){let eu=et[ea++];if("__proto__"===eu)return!0;let ed=Number.isFinite(+eu),eh=ea>=et.length;if(eu=!eu&&eF.isArray(ei)?ei.length:eu,eh)return eF.hasOwnProp(ei,eu)?ei[eu]=[ei[eu],eo]:ei[eu]=eo,!ed;ei[eu]&&eF.isObject(ei[eu])||(ei[eu]=[]);let ep=buildPath(et,eo,ei[eu],ea);return ep&&eF.isArray(ei[eu])&&(ei[eu]=arrayToObject(ei[eu])),!ed}if(eF.isFormData(et)&&eF.isFunction(et.entries)){let eo={};return eF.forEachEntry(et,(et,ei)=>{buildPath(parsePropPath(et),ei,eo,0)}),eo}return null};function stringifySafely(et,eo,ei){if(eF.isString(et))try{return(eo||JSON.parse)(et),eF.trim(et)}catch(et){if("SyntaxError"!==et.name)throw et}return(ei||JSON.stringify)(et)}let e6={transitional:e$,adapter:["xhr","http"],transformRequest:[function(et,eo){let ei;let ea=eo.getContentType()||"",eu=ea.indexOf("application/json")>-1,ed=eF.isObject(et);ed&&eF.isHTMLForm(et)&&(et=new FormData(et));let eh=eF.isFormData(et);if(eh)return eu?JSON.stringify(helpers_formDataToJSON(et)):et;if(eF.isArrayBuffer(et)||eF.isBuffer(et)||eF.isStream(et)||eF.isFile(et)||eF.isBlob(et))return et;if(eF.isArrayBufferView(et))return et.buffer;if(eF.isURLSearchParams(et))return eo.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),et.toString();if(ed){if(ea.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(et,this.formSerializer).toString();if((ei=eF.isFileList(et))||ea.indexOf("multipart/form-data")>-1){let eo=this.env&&this.env.FormData;return helpers_toFormData(ei?{"files[]":et}:et,eo&&new eo,this.formSerializer)}}return ed||eu?(eo.setContentType("application/json",!1),stringifySafely(et)):et}],transformResponse:[function(et){let eo=this.transitional||e6.transitional,ei=eo&&eo.forcedJSONParsing,ea="json"===this.responseType;if(et&&eF.isString(et)&&(ei&&!this.responseType||ea)){let ei=eo&&eo.silentJSONParsing,eu=!ei&&ea;try{return JSON.parse(et)}catch(et){if(eu){if("SyntaxError"===et.name)throw eH.from(et,eH.ERR_BAD_RESPONSE,this,null,this.response);throw et}}}return et}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e4.classes.FormData,Blob:e4.classes.Blob},validateStatus:function(et){return et>=200&&et<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eF.forEach(["delete","get","head","post","put","patch"],et=>{e6.headers[et]={}});var e5=e6;let e8=eF.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=et=>{let eo,ei,ea;let eu={};return et&&et.split("\n").forEach(function(et){ea=et.indexOf(":"),eo=et.substring(0,ea).trim().toLowerCase(),ei=et.substring(ea+1).trim(),!eo||eu[eo]&&e8[eo]||("set-cookie"===eo?eu[eo]?eu[eo].push(ei):eu[eo]=[ei]:eu[eo]=eu[eo]?eu[eo]+", "+ei:ei)}),eu};let e7=Symbol("internals");function normalizeHeader(et){return et&&String(et).trim().toLowerCase()}function normalizeValue(et){return!1===et||null==et?et:eF.isArray(et)?et.map(normalizeValue):String(et)}function parseTokens(et){let eo;let ei=Object.create(null),ea=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;eo=ea.exec(et);)ei[eo[1]]=eo[2];return ei}let isValidHeaderName=et=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(et.trim());function matchHeaderValue(et,eo,ei,ea,eu){if(eF.isFunction(ea))return ea.call(this,eo,ei);if(eu&&(eo=ei),eF.isString(eo)){if(eF.isString(ea))return -1!==eo.indexOf(ea);if(eF.isRegExp(ea))return ea.test(eo)}}function formatHeader(et){return et.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(et,eo,ei)=>eo.toUpperCase()+ei)}function buildAccessors(et,eo){let ei=eF.toCamelCase(" "+eo);["get","set","has"].forEach(ea=>{Object.defineProperty(et,ea+ei,{value:function(et,ei,eu){return this[ea].call(this,eo,et,ei,eu)},configurable:!0})})}let AxiosHeaders=class AxiosHeaders{constructor(et){et&&this.set(et)}set(et,eo,ei){let ea=this;function setHeader(et,eo,ei){let eu=normalizeHeader(eo);if(!eu)throw Error("header name must be a non-empty string");let ed=eF.findKey(ea,eu);ed&&void 0!==ea[ed]&&!0!==ei&&(void 0!==ei||!1===ea[ed])||(ea[ed||eo]=normalizeValue(et))}let setHeaders=(et,eo)=>eF.forEach(et,(et,ei)=>setHeader(et,ei,eo));return eF.isPlainObject(et)||et instanceof this.constructor?setHeaders(et,eo):eF.isString(et)&&(et=et.trim())&&!isValidHeaderName(et)?setHeaders(parseHeaders(et),eo):null!=et&&setHeader(eo,et,ei),this}get(et,eo){if(et=normalizeHeader(et)){let ei=eF.findKey(this,et);if(ei){let et=this[ei];if(!eo)return et;if(!0===eo)return parseTokens(et);if(eF.isFunction(eo))return eo.call(this,et,ei);if(eF.isRegExp(eo))return eo.exec(et);throw TypeError("parser must be boolean|regexp|function")}}}has(et,eo){if(et=normalizeHeader(et)){let ei=eF.findKey(this,et);return!!(ei&&void 0!==this[ei]&&(!eo||matchHeaderValue(this,this[ei],ei,eo)))}return!1}delete(et,eo){let ei=this,ea=!1;function deleteHeader(et){if(et=normalizeHeader(et)){let eu=eF.findKey(ei,et);eu&&(!eo||matchHeaderValue(ei,ei[eu],eu,eo))&&(delete ei[eu],ea=!0)}}return eF.isArray(et)?et.forEach(deleteHeader):deleteHeader(et),ea}clear(et){let eo=Object.keys(this),ei=eo.length,ea=!1;for(;ei--;){let eu=eo[ei];(!et||matchHeaderValue(this,this[eu],eu,et,!0))&&(delete this[eu],ea=!0)}return ea}normalize(et){let eo=this,ei={};return eF.forEach(this,(ea,eu)=>{let ed=eF.findKey(ei,eu);if(ed){eo[ed]=normalizeValue(ea),delete eo[eu];return}let eh=et?formatHeader(eu):String(eu).trim();eh!==eu&&delete eo[eu],eo[eh]=normalizeValue(ea),ei[eh]=!0}),this}concat(...et){return this.constructor.concat(this,...et)}toJSON(et){let eo=Object.create(null);return eF.forEach(this,(ei,ea)=>{null!=ei&&!1!==ei&&(eo[ea]=et&&eF.isArray(ei)?ei.join(", "):ei)}),eo}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([et,eo])=>et+": "+eo).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(et){return et instanceof this?et:new this(et)}static concat(et,...eo){let ei=new this(et);return eo.forEach(et=>ei.set(et)),ei}static accessor(et){let eo=this[e7]=this[e7]={accessors:{}},ei=eo.accessors,ea=this.prototype;function defineAccessor(et){let eo=normalizeHeader(et);ei[eo]||(buildAccessors(ea,et),ei[eo]=!0)}return eF.isArray(et)?et.forEach(defineAccessor):defineAccessor(et),this}};AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eF.reduceDescriptors(AxiosHeaders.prototype,({value:et},eo)=>{let ei=eo[0].toUpperCase()+eo.slice(1);return{get:()=>et,set(et){this[ei]=et}}}),eF.freezeMethods(AxiosHeaders);var e9=AxiosHeaders;function transformData(et,eo){let ei=this||e5,ea=eo||ei,eu=e9.from(ea.headers),ed=ea.data;return eF.forEach(et,function(et){ed=et.call(ei,ed,eu.normalize(),eo?eo.status:void 0)}),eu.normalize(),ed}function isCancel(et){return!!(et&&et.__CANCEL__)}function CanceledError(et,eo,ei){eH.call(this,null==et?"canceled":et,eH.ERR_CANCELED,eo,ei),this.name="CanceledError"}eF.inherits(CanceledError,eH,{__CANCEL__:!0});var tr=CanceledError;function settle(et,eo,ei){let ea=ei.config.validateStatus;!ei.status||!ea||ea(ei.status)?et(ei):eo(new eH("Request failed with status code "+ei.status,[eH.ERR_BAD_REQUEST,eH.ERR_BAD_RESPONSE][Math.floor(ei.status/100)-4],ei.config,ei.request,ei))}var tn=e4.hasStandardBrowserEnv?{write(et,eo,ei,ea,eu,ed){let eh=[et+"="+encodeURIComponent(eo)];eF.isNumber(ei)&&eh.push("expires="+new Date(ei).toGMTString()),eF.isString(ea)&&eh.push("path="+ea),eF.isString(eu)&&eh.push("domain="+eu),!0===ed&&eh.push("secure"),document.cookie=eh.join("; ")},read(et){let eo=document.cookie.match(RegExp("(^|;\\s*)("+et+")=([^;]*)"));return eo?decodeURIComponent(eo[3]):null},remove(et){this.write(et,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(et){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(et)}function combineURLs(et,eo){return eo?et.replace(/\/?\/$/,"")+"/"+eo.replace(/^\/+/,""):et}function buildFullPath(et,eo){return et&&!isAbsoluteURL(eo)?combineURLs(et,eo):eo}var ti=e4.hasStandardBrowserEnv?function(){let et;let eo=/(msie|trident)/i.test(navigator.userAgent),ei=document.createElement("a");function resolveURL(et){let ea=et;return eo&&(ei.setAttribute("href",ea),ea=ei.href),ei.setAttribute("href",ea),{href:ei.href,protocol:ei.protocol?ei.protocol.replace(/:$/,""):"",host:ei.host,search:ei.search?ei.search.replace(/^\?/,""):"",hash:ei.hash?ei.hash.replace(/^#/,""):"",hostname:ei.hostname,port:ei.port,pathname:"/"===ei.pathname.charAt(0)?ei.pathname:"/"+ei.pathname}}return et=resolveURL(window.location.href),function(eo){let ei=eF.isString(eo)?resolveURL(eo):eo;return ei.protocol===et.protocol&&ei.host===et.host}}():function(){return function(){return!0}}();function parseProtocol(et){let eo=/^([-+\w]{1,25})(:?\/\/|:)/.exec(et);return eo&&eo[1]||""}var helpers_speedometer=function(et,eo){let ei;et=et||10;let ea=Array(et),eu=Array(et),ed=0,eh=0;return eo=void 0!==eo?eo:1e3,function(ep){let ef=Date.now(),em=eu[eh];ei||(ei=ef),ea[ed]=ep,eu[ed]=ef;let eg=eh,ey=0;for(;eg!==ed;)ey+=ea[eg++],eg%=et;if((ed=(ed+1)%et)===eh&&(eh=(eh+1)%et),ef-ei<eo)return;let eC=em&&ef-em;return eC?Math.round(1e3*ey/eC):void 0}};function progressEventReducer(et,eo){let ei=0,ea=helpers_speedometer(50,250);return eu=>{let ed=eu.loaded,eh=eu.lengthComputable?eu.total:void 0,ep=ed-ei,ef=ea(ep),em=ed<=eh;ei=ed;let eg={loaded:ed,total:eh,progress:eh?ed/eh:void 0,bytes:ep,rate:ef||void 0,estimated:ef&&eh&&em?(eh-ed)/ef:void 0,event:eu};eg[eo?"download":"upload"]=!0,et(eg)}}let ta="undefined"!=typeof XMLHttpRequest;var ts=ta&&function(et){return new Promise(function(eo,ei){let ea,eu,ed=et.data,eh=e9.from(et.headers).normalize(),{responseType:ep,withXSRFToken:ef}=et;function done(){et.cancelToken&&et.cancelToken.unsubscribe(ea),et.signal&&et.signal.removeEventListener("abort",ea)}if(eF.isFormData(ed)){if(e4.hasStandardBrowserEnv||e4.hasStandardBrowserWebWorkerEnv)eh.setContentType(!1);else if(!1!==(eu=eh.getContentType())){let[et,...eo]=eu?eu.split(";").map(et=>et.trim()).filter(Boolean):[];eh.setContentType([et||"multipart/form-data",...eo].join("; "))}}let em=new XMLHttpRequest;if(et.auth){let eo=et.auth.username||"",ei=et.auth.password?unescape(encodeURIComponent(et.auth.password)):"";eh.set("Authorization","Basic "+btoa(eo+":"+ei))}let eg=buildFullPath(et.baseURL,et.url);function onloadend(){if(!em)return;let ea=e9.from("getAllResponseHeaders"in em&&em.getAllResponseHeaders()),eu=ep&&"text"!==ep&&"json"!==ep?em.response:em.responseText,ed={data:eu,status:em.status,statusText:em.statusText,headers:ea,config:et,request:em};settle(function(et){eo(et),done()},function(et){ei(et),done()},ed),em=null}if(em.open(et.method.toUpperCase(),buildURL(eg,et.params,et.paramsSerializer),!0),em.timeout=et.timeout,"onloadend"in em?em.onloadend=onloadend:em.onreadystatechange=function(){em&&4===em.readyState&&(0!==em.status||em.responseURL&&0===em.responseURL.indexOf("file:"))&&setTimeout(onloadend)},em.onabort=function(){em&&(ei(new eH("Request aborted",eH.ECONNABORTED,et,em)),em=null)},em.onerror=function(){ei(new eH("Network Error",eH.ERR_NETWORK,et,em)),em=null},em.ontimeout=function(){let eo=et.timeout?"timeout of "+et.timeout+"ms exceeded":"timeout exceeded",ea=et.transitional||e$;et.timeoutErrorMessage&&(eo=et.timeoutErrorMessage),ei(new eH(eo,ea.clarifyTimeoutError?eH.ETIMEDOUT:eH.ECONNABORTED,et,em)),em=null},e4.hasStandardBrowserEnv&&(ef&&eF.isFunction(ef)&&(ef=ef(et)),ef||!1!==ef&&ti(eg))){let eo=et.xsrfHeaderName&&et.xsrfCookieName&&tn.read(et.xsrfCookieName);eo&&eh.set(et.xsrfHeaderName,eo)}void 0===ed&&eh.setContentType(null),"setRequestHeader"in em&&eF.forEach(eh.toJSON(),function(et,eo){em.setRequestHeader(eo,et)}),eF.isUndefined(et.withCredentials)||(em.withCredentials=!!et.withCredentials),ep&&"json"!==ep&&(em.responseType=et.responseType),"function"==typeof et.onDownloadProgress&&em.addEventListener("progress",progressEventReducer(et.onDownloadProgress,!0)),"function"==typeof et.onUploadProgress&&em.upload&&em.upload.addEventListener("progress",progressEventReducer(et.onUploadProgress)),(et.cancelToken||et.signal)&&(ea=eo=>{em&&(ei(!eo||eo.type?new tr(null,et,em):eo),em.abort(),em=null)},et.cancelToken&&et.cancelToken.subscribe(ea),et.signal&&(et.signal.aborted?ea():et.signal.addEventListener("abort",ea)));let ey=parseProtocol(eg);if(ey&&-1===e4.protocols.indexOf(ey)){ei(new eH("Unsupported protocol "+ey+":",eH.ERR_BAD_REQUEST,et));return}em.send(ed||null)})};let tc={http:eK,xhr:ts};eF.forEach(tc,(et,eo)=>{if(et){try{Object.defineProperty(et,"name",{value:eo})}catch(et){}Object.defineProperty(et,"adapterName",{value:eo})}});let renderReason=et=>`- ${et}`,isResolvedHandle=et=>eF.isFunction(et)||null===et||!1===et;var tu={getAdapter:et=>{let eo,ei;et=eF.isArray(et)?et:[et];let{length:ea}=et,eu={};for(let ed=0;ed<ea;ed++){let ea;if(ei=eo=et[ed],!isResolvedHandle(eo)&&void 0===(ei=tc[(ea=String(eo)).toLowerCase()]))throw new eH(`Unknown adapter '${ea}'`);if(ei)break;eu[ea||"#"+ed]=ei}if(!ei){let et=Object.entries(eu).map(([et,eo])=>`adapter ${et} `+(!1===eo?"is not supported by the environment":"is not available in the build")),eo=ea?et.length>1?"since :\n"+et.map(renderReason).join("\n"):" "+renderReason(et[0]):"as no adapter specified";throw new eH("There is no suitable adapter to dispatch the request "+eo,"ERR_NOT_SUPPORT")}return ei},adapters:tc};function throwIfCancellationRequested(et){if(et.cancelToken&&et.cancelToken.throwIfRequested(),et.signal&&et.signal.aborted)throw new tr(null,et)}function dispatchRequest(et){throwIfCancellationRequested(et),et.headers=e9.from(et.headers),et.data=transformData.call(et,et.transformRequest),-1!==["post","put","patch"].indexOf(et.method)&&et.headers.setContentType("application/x-www-form-urlencoded",!1);let eo=tu.getAdapter(et.adapter||e5.adapter);return eo(et).then(function(eo){return throwIfCancellationRequested(et),eo.data=transformData.call(et,et.transformResponse,eo),eo.headers=e9.from(eo.headers),eo},function(eo){return!isCancel(eo)&&(throwIfCancellationRequested(et),eo&&eo.response&&(eo.response.data=transformData.call(et,et.transformResponse,eo.response),eo.response.headers=e9.from(eo.response.headers))),Promise.reject(eo)})}let headersToObject=et=>et instanceof e9?{...et}:et;function mergeConfig(et,eo){eo=eo||{};let ei={};function getMergedValue(et,eo,ei){return eF.isPlainObject(et)&&eF.isPlainObject(eo)?eF.merge.call({caseless:ei},et,eo):eF.isPlainObject(eo)?eF.merge({},eo):eF.isArray(eo)?eo.slice():eo}function mergeDeepProperties(et,eo,ei){return eF.isUndefined(eo)?eF.isUndefined(et)?void 0:getMergedValue(void 0,et,ei):getMergedValue(et,eo,ei)}function valueFromConfig2(et,eo){if(!eF.isUndefined(eo))return getMergedValue(void 0,eo)}function defaultToConfig2(et,eo){return eF.isUndefined(eo)?eF.isUndefined(et)?void 0:getMergedValue(void 0,et):getMergedValue(void 0,eo)}function mergeDirectKeys(ei,ea,eu){return eu in eo?getMergedValue(ei,ea):eu in et?getMergedValue(void 0,ei):void 0}let ea={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(et,eo)=>mergeDeepProperties(headersToObject(et),headersToObject(eo),!0)};return eF.forEach(Object.keys(Object.assign({},et,eo)),function(eu){let ed=ea[eu]||mergeDeepProperties,eh=ed(et[eu],eo[eu],eu);eF.isUndefined(eh)&&ed!==mergeDirectKeys||(ei[eu]=eh)}),ei}let td="1.6.8",tp={};["object","boolean","number","function","string","symbol"].forEach((et,eo)=>{tp[et]=function(ei){return typeof ei===et||"a"+(eo<1?"n ":" ")+et}});let tf={};tp.transitional=function(et,eo,ei){function formatMessage(et,eo){return"[Axios v"+td+"] Transitional option '"+et+"'"+eo+(ei?". "+ei:"")}return(ei,ea,eu)=>{if(!1===et)throw new eH(formatMessage(ea," has been removed"+(eo?" in "+eo:"")),eH.ERR_DEPRECATED);return eo&&!tf[ea]&&(tf[ea]=!0,console.warn(formatMessage(ea," has been deprecated since v"+eo+" and will be removed in the near future"))),!et||et(ei,ea,eu)}};var tm={assertOptions:function(et,eo,ei){if("object"!=typeof et)throw new eH("options must be an object",eH.ERR_BAD_OPTION_VALUE);let ea=Object.keys(et),eu=ea.length;for(;eu-- >0;){let ed=ea[eu],eh=eo[ed];if(eh){let eo=et[ed],ei=void 0===eo||eh(eo,ed,et);if(!0!==ei)throw new eH("option "+ed+" must be "+ei,eH.ERR_BAD_OPTION_VALUE);continue}if(!0!==ei)throw new eH("Unknown option "+ed,eH.ERR_BAD_OPTION)}},validators:tp};let tg=tm.validators;let Axios=class Axios{constructor(et){this.defaults=et,this.interceptors={request:new eY,response:new eY}}async request(et,eo){try{return await this._request(et,eo)}catch(et){if(et instanceof Error){let eo;Error.captureStackTrace?Error.captureStackTrace(eo={}):eo=Error();let ei=eo.stack?eo.stack.replace(/^.+\n/,""):"";et.stack?ei&&!String(et.stack).endsWith(ei.replace(/^.+\n.+\n/,""))&&(et.stack+="\n"+ei):et.stack=ei}throw et}}_request(et,eo){let ei,ea;"string"==typeof et?(eo=eo||{}).url=et:eo=et||{},eo=mergeConfig(this.defaults,eo);let{transitional:eu,paramsSerializer:ed,headers:eh}=eo;void 0!==eu&&tm.assertOptions(eu,{silentJSONParsing:tg.transitional(tg.boolean),forcedJSONParsing:tg.transitional(tg.boolean),clarifyTimeoutError:tg.transitional(tg.boolean)},!1),null!=ed&&(eF.isFunction(ed)?eo.paramsSerializer={serialize:ed}:tm.assertOptions(ed,{encode:tg.function,serialize:tg.function},!0)),eo.method=(eo.method||this.defaults.method||"get").toLowerCase();let ep=eh&&eF.merge(eh.common,eh[eo.method]);eh&&eF.forEach(["delete","get","head","post","put","patch","common"],et=>{delete eh[et]}),eo.headers=e9.concat(ep,eh);let ef=[],em=!0;this.interceptors.request.forEach(function(et){("function"!=typeof et.runWhen||!1!==et.runWhen(eo))&&(em=em&&et.synchronous,ef.unshift(et.fulfilled,et.rejected))});let eg=[];this.interceptors.response.forEach(function(et){eg.push(et.fulfilled,et.rejected)});let ey=0;if(!em){let et=[dispatchRequest.bind(this),void 0];for(et.unshift.apply(et,ef),et.push.apply(et,eg),ea=et.length,ei=Promise.resolve(eo);ey<ea;)ei=ei.then(et[ey++],et[ey++]);return ei}ea=ef.length;let eC=eo;for(ey=0;ey<ea;){let et=ef[ey++],eo=ef[ey++];try{eC=et(eC)}catch(et){eo.call(this,et);break}}try{ei=dispatchRequest.call(this,eC)}catch(et){return Promise.reject(et)}for(ey=0,ea=eg.length;ey<ea;)ei=ei.then(eg[ey++],eg[ey++]);return ei}getUri(et){et=mergeConfig(this.defaults,et);let eo=buildFullPath(et.baseURL,et.url);return buildURL(eo,et.params,et.paramsSerializer)}};eF.forEach(["delete","get","head","options"],function(et){Axios.prototype[et]=function(eo,ei){return this.request(mergeConfig(ei||{},{method:et,url:eo,data:(ei||{}).data}))}}),eF.forEach(["post","put","patch"],function(et){function generateHTTPMethod(eo){return function(ei,ea,eu){return this.request(mergeConfig(eu||{},{method:et,headers:eo?{"Content-Type":"multipart/form-data"}:{},url:ei,data:ea}))}}Axios.prototype[et]=generateHTTPMethod(),Axios.prototype[et+"Form"]=generateHTTPMethod(!0)});var ty=Axios;let CancelToken=class CancelToken{constructor(et){let eo;if("function"!=typeof et)throw TypeError("executor must be a function.");this.promise=new Promise(function(et){eo=et});let ei=this;this.promise.then(et=>{if(!ei._listeners)return;let eo=ei._listeners.length;for(;eo-- >0;)ei._listeners[eo](et);ei._listeners=null}),this.promise.then=et=>{let eo;let ea=new Promise(et=>{ei.subscribe(et),eo=et}).then(et);return ea.cancel=function(){ei.unsubscribe(eo)},ea},et(function(et,ea,eu){ei.reason||(ei.reason=new tr(et,ea,eu),eo(ei.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(et){if(this.reason){et(this.reason);return}this._listeners?this._listeners.push(et):this._listeners=[et]}unsubscribe(et){if(!this._listeners)return;let eo=this._listeners.indexOf(et);-1!==eo&&this._listeners.splice(eo,1)}static source(){let et;let eo=new CancelToken(function(eo){et=eo});return{token:eo,cancel:et}}};var tv=CancelToken;function spread(et){return function(eo){return et.apply(null,eo)}}function isAxiosError(et){return eF.isObject(et)&&!0===et.isAxiosError}let tb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tb).forEach(([et,eo])=>{tb[eo]=et});var tC=tb;function createInstance(et){let eo=new ty(et),ei=bind(ty.prototype.request,eo);return eF.extend(ei,ty.prototype,eo,{allOwnKeys:!0}),eF.extend(ei,eo,null,{allOwnKeys:!0}),ei.create=function(eo){return createInstance(mergeConfig(et,eo))},ei}let tS=createInstance(e5);tS.Axios=ty,tS.CanceledError=tr,tS.CancelToken=tv,tS.isCancel=isCancel,tS.VERSION=td,tS.toFormData=helpers_toFormData,tS.AxiosError=eH,tS.Cancel=tS.CanceledError,tS.all=function(et){return Promise.all(et)},tS.spread=spread,tS.isAxiosError=isAxiosError,tS.mergeConfig=mergeConfig,tS.AxiosHeaders=e9,tS.formToJSON=et=>helpers_formDataToJSON(eF.isHTMLForm(et)?new FormData(et):et),tS.getAdapter=tu.getAdapter,tS.HttpStatusCode=tC,tS.default=tS;var t_=tS},22839:function(et,eo,ei){"use strict";function _typeof(et){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(et){return typeof et}:function(et){return et&&"function"==typeof Symbol&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et})(et)}function _classCallCheck(et,eo){if(!(et instanceof eo))throw TypeError("Cannot call a class as a function")}function toPrimitive(et,eo){if("object"!=_typeof(et)||!et)return et;var ei=et[Symbol.toPrimitive];if(void 0!==ei){var ea=ei.call(et,eo||"default");if("object"!=_typeof(ea))return ea;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===eo?String:Number)(et)}function toPropertyKey(et){var eo=toPrimitive(et,"string");return"symbol"==_typeof(eo)?eo:String(eo)}function _defineProperties(et,eo){for(var ei=0;ei<eo.length;ei++){var ea=eo[ei];ea.enumerable=ea.enumerable||!1,ea.configurable=!0,"value"in ea&&(ea.writable=!0),Object.defineProperty(et,toPropertyKey(ea.key),ea)}}function _createClass(et,eo,ei){return eo&&_defineProperties(et.prototype,eo),ei&&_defineProperties(et,ei),Object.defineProperty(et,"prototype",{writable:!1}),et}function _assertThisInitialized(et){if(void 0===et)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function _setPrototypeOf(et,eo){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(et,eo){return et.__proto__=eo,et})(et,eo)}function _inherits(et,eo){if("function"!=typeof eo&&null!==eo)throw TypeError("Super expression must either be null or a function");et.prototype=Object.create(eo&&eo.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),eo&&_setPrototypeOf(et,eo)}function _possibleConstructorReturn(et,eo){if(eo&&("object"===_typeof(eo)||"function"==typeof eo))return eo;if(void 0!==eo)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(et)}function _getPrototypeOf(et){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)})(et)}function _defineProperty(et,eo,ei){return(eo=toPropertyKey(eo))in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}function _arrayWithHoles(et){if(Array.isArray(et))return et}function _iterableToArray(et){if("undefined"!=typeof Symbol&&null!=et[Symbol.iterator]||null!=et["@@iterator"])return Array.from(et)}function _arrayLikeToArray(et,eo){(null==eo||eo>et.length)&&(eo=et.length);for(var ei=0,ea=Array(eo);ei<eo;ei++)ea[ei]=et[ei];return ea}function _unsupportedIterableToArray(et,eo){if(et){if("string"==typeof et)return _arrayLikeToArray(et,eo);var ei=Object.prototype.toString.call(et).slice(8,-1);if("Object"===ei&&et.constructor&&(ei=et.constructor.name),"Map"===ei||"Set"===ei)return Array.from(et);if("Arguments"===ei||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ei))return _arrayLikeToArray(et,eo)}}function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toArray(et){return _arrayWithHoles(et)||_iterableToArray(et)||_unsupportedIterableToArray(et)||_nonIterableRest()}function ownKeys(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}ei.d(eo,{ZP:function(){return eD},t:function(){return eM}});var ea={type:"logger",log:function(et){this.output("log",et)},warn:function(et){this.output("warn",et)},error:function(et){this.output("error",et)},output:function(et,eo){console&&console[et]&&console[et].apply(console,eo)}},eu=new(function(){function Logger(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,Logger),this.init(et,eo)}return _createClass(Logger,[{key:"init",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=eo.prefix||"i18next:",this.logger=et||ea,this.options=eo,this.debug=eo.debug}},{key:"setDebug",value:function(et){this.debug=et}},{key:"log",value:function(){for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];return this.forward(eo,"log","",!0)}},{key:"warn",value:function(){for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];return this.forward(eo,"warn","",!0)}},{key:"error",value:function(){for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];return this.forward(eo,"error","")}},{key:"deprecate",value:function(){for(var et=arguments.length,eo=Array(et),ei=0;ei<et;ei++)eo[ei]=arguments[ei];return this.forward(eo,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(et,eo,ei,ea){return ea&&!this.debug?null:("string"==typeof et[0]&&(et[0]="".concat(ei).concat(this.prefix," ").concat(et[0])),this.logger[eo](et))}},{key:"create",value:function(et){return new Logger(this.logger,_objectSpread(_objectSpread({},{prefix:"".concat(this.prefix,":").concat(et,":")}),this.options))}}]),Logger}()),ed=function(){function EventEmitter(){_classCallCheck(this,EventEmitter),this.observers={}}return _createClass(EventEmitter,[{key:"on",value:function(et,eo){var ei=this;return et.split(" ").forEach(function(et){ei.observers[et]=ei.observers[et]||[],ei.observers[et].push(eo)}),this}},{key:"off",value:function(et,eo){if(this.observers[et]){if(!eo){delete this.observers[et];return}this.observers[et]=this.observers[et].filter(function(et){return et!==eo})}}},{key:"emit",value:function(et){for(var eo=arguments.length,ei=Array(eo>1?eo-1:0),ea=1;ea<eo;ea++)ei[ea-1]=arguments[ea];this.observers[et]&&[].concat(this.observers[et]).forEach(function(et){et.apply(void 0,ei)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(eo){eo.apply(eo,[et].concat(ei))})}}]),EventEmitter}();function defer(){var et,eo,ei=new Promise(function(ei,ea){et=ei,eo=ea});return ei.resolve=et,ei.reject=eo,ei}function makeString(et){return null==et?"":""+et}function copy(et,eo,ei){et.forEach(function(et){eo[et]&&(ei[et]=eo[et])})}function getLastOfPath(et,eo,ei){function cleanKey(et){return et&&et.indexOf("###")>-1?et.replace(/###/g,"."):et}function canNotTraverseDeeper(){return!et||"string"==typeof et}for(var ea="string"!=typeof eo?[].concat(eo):eo.split(".");ea.length>1;){if(canNotTraverseDeeper())return{};var eu=cleanKey(ea.shift());!et[eu]&&ei&&(et[eu]=new ei),et=Object.prototype.hasOwnProperty.call(et,eu)?et[eu]:{}}return canNotTraverseDeeper()?{}:{obj:et,k:cleanKey(ea.shift())}}function setPath(et,eo,ei){var ea=getLastOfPath(et,eo,Object);ea.obj[ea.k]=ei}function pushPath(et,eo,ei,ea){var eu=getLastOfPath(et,eo,Object),ed=eu.obj,eh=eu.k;ed[eh]=ed[eh]||[],ea&&(ed[eh]=ed[eh].concat(ei)),ea||ed[eh].push(ei)}function getPath(et,eo){var ei=getLastOfPath(et,eo),ea=ei.obj,eu=ei.k;if(ea)return ea[eu]}function getPathWithDefaults(et,eo,ei){var ea=getPath(et,ei);return void 0!==ea?ea:getPath(eo,ei)}function deepExtend(et,eo,ei){for(var ea in eo)"__proto__"!==ea&&"constructor"!==ea&&(ea in et?"string"==typeof et[ea]||et[ea]instanceof String||"string"==typeof eo[ea]||eo[ea]instanceof String?ei&&(et[ea]=eo[ea]):deepExtend(et[ea],eo[ea],ei):et[ea]=eo[ea]);return et}function regexEscape(et){return et.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var eh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function i18next_escape(et){return"string"==typeof et?et.replace(/[&<>"'\/]/g,function(et){return eh[et]}):et}var ep="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ef=[" ",",","?","!",";"];function looksLikeObjectPath(et,eo,ei){eo=eo||"",ei=ei||"";var ea=ef.filter(function(et){return 0>eo.indexOf(et)&&0>ei.indexOf(et)});if(0===ea.length)return!0;var eu=new RegExp("(".concat(ea.map(function(et){return"?"===et?"\\?":et}).join("|"),")")),ed=!eu.test(et);if(!ed){var eh=et.indexOf(ei);eh>0&&!eu.test(et.substring(0,eh))&&(ed=!0)}return ed}function ownKeys$1(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread$1(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys$1(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys$1(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _createSuper(et){var eo=_isNativeReflectConstruct();return function(){var ei,ea=_getPrototypeOf(et);if(eo){var eu=_getPrototypeOf(this).constructor;ei=Reflect.construct(ea,arguments,eu)}else ei=ea.apply(this,arguments);return _possibleConstructorReturn(this,ei)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(et){return!1}}function deepFind(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(et){if(et[eo])return et[eo];for(var ea=eo.split(ei),eu=et,ed=0;ed<ea.length;++ed){if(!eu||"string"==typeof eu[ea[ed]]&&ed+1<ea.length)return;if(void 0===eu[ea[ed]]){for(var eh=2,ep=ea.slice(ed,ed+eh).join(ei),ef=eu[ep];void 0===ef&&ea.length>ed+eh;)eh++,ef=eu[ep=ea.slice(ed,ed+eh).join(ei)];if(void 0===ef)return;if(eo.endsWith(ep)){if("string"==typeof ef)return ef;if(ep&&"string"==typeof ef[ep])return ef[ep]}var em=ea.slice(ed+eh).join(ei);if(em)return deepFind(ef,em,ei);return}eu=eu[ea[ed]]}return eu}}var em=function(et){_inherits(ResourceStore,et);var eo=_createSuper(ResourceStore);function ResourceStore(et){var ei,ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _classCallCheck(this,ResourceStore),ei=eo.call(this),ep&&ed.call(_assertThisInitialized(ei)),ei.data=et||{},ei.options=ea,void 0===ei.options.keySeparator&&(ei.options.keySeparator="."),void 0===ei.options.ignoreJSONStructure&&(ei.options.ignoreJSONStructure=!0),ei}return _createClass(ResourceStore,[{key:"addNamespaces",value:function(et){0>this.options.ns.indexOf(et)&&this.options.ns.push(et)}},{key:"removeNamespaces",value:function(et){var eo=this.options.ns.indexOf(et);eo>-1&&this.options.ns.splice(eo,1)}},{key:"getResource",value:function(et,eo,ei){var ea=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},eu=void 0!==ea.keySeparator?ea.keySeparator:this.options.keySeparator,ed=void 0!==ea.ignoreJSONStructure?ea.ignoreJSONStructure:this.options.ignoreJSONStructure,eh=[et,eo];ei&&"string"!=typeof ei&&(eh=eh.concat(ei)),ei&&"string"==typeof ei&&(eh=eh.concat(eu?ei.split(eu):ei)),et.indexOf(".")>-1&&(eh=et.split("."));var ep=getPath(this.data,eh);return ep||!ed||"string"!=typeof ei?ep:deepFind(this.data&&this.data[et]&&this.data[et][eo],ei,eu)}},{key:"addResource",value:function(et,eo,ei,ea){var eu=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},ed=this.options.keySeparator;void 0===ed&&(ed=".");var eh=[et,eo];ei&&(eh=eh.concat(ed?ei.split(ed):ei)),et.indexOf(".")>-1&&(eh=et.split("."),ea=eo,eo=eh[1]),this.addNamespaces(eo),setPath(this.data,eh,ea),eu.silent||this.emit("added",et,eo,ei,ea)}},{key:"addResources",value:function(et,eo,ei){var ea=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var eu in ei)("string"==typeof ei[eu]||"[object Array]"===Object.prototype.toString.apply(ei[eu]))&&this.addResource(et,eo,eu,ei[eu],{silent:!0});ea.silent||this.emit("added",et,eo,ei)}},{key:"addResourceBundle",value:function(et,eo,ei,ea,eu){var ed=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},eh=[et,eo];et.indexOf(".")>-1&&(eh=et.split("."),ea=ei,ei=eo,eo=eh[1]),this.addNamespaces(eo);var ep=getPath(this.data,eh)||{};ea?deepExtend(ep,ei,eu):ep=_objectSpread$1(_objectSpread$1({},ep),ei),setPath(this.data,eh,ep),ed.silent||this.emit("added",et,eo,ei)}},{key:"removeResourceBundle",value:function(et,eo){this.hasResourceBundle(et,eo)&&delete this.data[et][eo],this.removeNamespaces(eo),this.emit("removed",et,eo)}},{key:"hasResourceBundle",value:function(et,eo){return void 0!==this.getResource(et,eo)}},{key:"getResourceBundle",value:function(et,eo){return(eo||(eo=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?_objectSpread$1(_objectSpread$1({},{}),this.getResource(et,eo)):this.getResource(et,eo)}},{key:"getDataByLanguage",value:function(et){return this.data[et]}},{key:"hasLanguageSomeTranslations",value:function(et){var eo=this.getDataByLanguage(et);return!!(eo&&Object.keys(eo)||[]).find(function(et){return eo[et]&&Object.keys(eo[et]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),ResourceStore}(ed),eg={processors:{},addPostProcessor:function(et){this.processors[et.name]=et},handle:function(et,eo,ei,ea,eu){var ed=this;return et.forEach(function(et){ed.processors[et]&&(eo=ed.processors[et].process(eo,ei,ea,eu))}),eo}};function ownKeys$2(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread$2(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys$2(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys$2(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _createSuper$1(et){var eo=_isNativeReflectConstruct$1();return function(){var ei,ea=_getPrototypeOf(et);if(eo){var eu=_getPrototypeOf(this).constructor;ei=Reflect.construct(ea,arguments,eu)}else ei=ea.apply(this,arguments);return _possibleConstructorReturn(this,ei)}}function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(et){return!1}}var ey={},eC=function(et){_inherits(Translator,et);var eo=_createSuper$1(Translator);function Translator(et){var ei,ea=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _classCallCheck(this,Translator),ei=eo.call(this),ep&&ed.call(_assertThisInitialized(ei)),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],et,_assertThisInitialized(ei)),ei.options=ea,void 0===ei.options.keySeparator&&(ei.options.keySeparator="."),ei.logger=eu.create("translator"),ei}return _createClass(Translator,[{key:"changeLanguage",value:function(et){et&&(this.language=et)}},{key:"exists",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==et)return!1;var ei=this.resolve(et,eo);return ei&&void 0!==ei.res}},{key:"extractFromKey",value:function(et,eo){var ei=void 0!==eo.nsSeparator?eo.nsSeparator:this.options.nsSeparator;void 0===ei&&(ei=":");var ea=void 0!==eo.keySeparator?eo.keySeparator:this.options.keySeparator,eu=eo.ns||this.options.defaultNS||[],ed=ei&&et.indexOf(ei)>-1,eh=!this.options.userDefinedKeySeparator&&!eo.keySeparator&&!this.options.userDefinedNsSeparator&&!eo.nsSeparator&&!looksLikeObjectPath(et,ei,ea);if(ed&&!eh){var ep=et.match(this.interpolator.nestingRegexp);if(ep&&ep.length>0)return{key:et,namespaces:eu};var ef=et.split(ei);(ei!==ea||ei===ea&&this.options.ns.indexOf(ef[0])>-1)&&(eu=ef.shift()),et=ef.join(ea)}return"string"==typeof eu&&(eu=[eu]),{key:et,namespaces:eu}}},{key:"translate",value:function(et,eo,ei){var ea=this;if("object"!==_typeof(eo)&&this.options.overloadTranslationOptionHandler&&(eo=this.options.overloadTranslationOptionHandler(arguments)),eo||(eo={}),null==et)return"";Array.isArray(et)||(et=[String(et)]);var eu=void 0!==eo.returnDetails?eo.returnDetails:this.options.returnDetails,ed=void 0!==eo.keySeparator?eo.keySeparator:this.options.keySeparator,eh=this.extractFromKey(et[et.length-1],eo),ep=eh.key,ef=eh.namespaces,em=ef[ef.length-1],eg=eo.lng||this.language,ey=eo.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(eg&&"cimode"===eg.toLowerCase()){if(ey){var eC=eo.nsSeparator||this.options.nsSeparator;return eu?(eS.res="".concat(em).concat(eC).concat(ep),eS):"".concat(em).concat(eC).concat(ep)}return eu?(eS.res=ep,eS):ep}var eS=this.resolve(et,eo),e_=eS&&eS.res,ew=eS&&eS.usedKey||ep,eA=eS&&eS.exactUsedKey||ep,eI=Object.prototype.toString.apply(e_),eR=["[object Number]","[object Function]","[object RegExp]"],eT=void 0!==eo.joinArrays?eo.joinArrays:this.options.joinArrays,eE=!this.i18nFormat||this.i18nFormat.handleAsObject,eP="string"!=typeof e_&&"boolean"!=typeof e_&&"number"!=typeof e_;if(eE&&e_&&eP&&0>eR.indexOf(eI)&&!("string"==typeof eT&&"[object Array]"===eI)){if(!eo.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ek=this.options.returnedObjectHandler?this.options.returnedObjectHandler(ew,e_,_objectSpread$2(_objectSpread$2({},eo),{},{ns:ef})):"key '".concat(ep," (").concat(this.language,")' returned an object instead of string.");return eu?(eS.res=ek,eS):ek}if(ed){var eO="[object Array]"===eI,eM=eO?[]:{},eD=eO?eA:ew;for(var eU in e_)if(Object.prototype.hasOwnProperty.call(e_,eU)){var eL="".concat(eD).concat(ed).concat(eU);eM[eU]=this.translate(eL,_objectSpread$2(_objectSpread$2({},eo),{joinArrays:!1,ns:ef})),eM[eU]===eL&&(eM[eU]=e_[eU])}e_=eM}}else if(eE&&"string"==typeof eT&&"[object Array]"===eI)(e_=e_.join(eT))&&(e_=this.extendTranslation(e_,et,eo,ei));else{var eN=!1,eB=!1,eF=void 0!==eo.count&&"string"!=typeof eo.count,ej=Translator.hasDefaultValue(eo),eG=eF?this.pluralResolver.getSuffix(eg,eo.count,eo):"",eH=eo["defaultValue".concat(eG)]||eo.defaultValue;!this.isValidLookup(e_)&&ej&&(eN=!0,e_=eH),this.isValidLookup(e_)||(eB=!0,e_=ep);var eK=(eo.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&eB?void 0:e_,ez=ej&&eH!==e_&&this.options.updateMissing;if(eB||eN||ez){if(this.logger.log(ez?"updateKey":"missingKey",eg,em,ep,ez?eH:e_),ed){var eW=this.resolve(ep,_objectSpread$2(_objectSpread$2({},eo),{},{keySeparator:!1}));eW&&eW.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var eV=[],eJ=this.languageUtils.getFallbackCodes(this.options.fallbackLng,eo.lng||this.language);if("fallback"===this.options.saveMissingTo&&eJ&&eJ[0])for(var eY=0;eY<eJ.length;eY++)eV.push(eJ[eY]);else"all"===this.options.saveMissingTo?eV=this.languageUtils.toResolveHierarchy(eo.lng||this.language):eV.push(eo.lng||this.language);var send=function(et,ei,eu){var ed=ej&&eu!==e_?eu:eK;ea.options.missingKeyHandler?ea.options.missingKeyHandler(et,em,ei,ed,ez,eo):ea.backendConnector&&ea.backendConnector.saveMissing&&ea.backendConnector.saveMissing(et,em,ei,ed,ez,eo),ea.emit("missingKey",et,em,ei,e_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&eF?eV.forEach(function(et){ea.pluralResolver.getSuffixes(et,eo).forEach(function(ei){send([et],ep+ei,eo["defaultValue".concat(ei)]||eH)})}):send(eV,ep,eH))}e_=this.extendTranslation(e_,et,eo,eS,ei),eB&&e_===ep&&this.options.appendNamespaceToMissingKey&&(e_="".concat(em,":").concat(ep)),(eB||eN)&&this.options.parseMissingKeyHandler&&(e_="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(ep,eN?e_:void 0):this.options.parseMissingKeyHandler(e_))}return eu?(eS.res=e_,eS):e_}},{key:"extendTranslation",value:function(et,eo,ei,ea,eu){var ed=this;if(this.i18nFormat&&this.i18nFormat.parse)et=this.i18nFormat.parse(et,_objectSpread$2(_objectSpread$2({},this.options.interpolation.defaultVariables),ei),ea.usedLng,ea.usedNS,ea.usedKey,{resolved:ea});else if(!ei.skipInterpolation){ei.interpolation&&this.interpolator.init(_objectSpread$2(_objectSpread$2({},ei),{interpolation:_objectSpread$2(_objectSpread$2({},this.options.interpolation),ei.interpolation)}));var eh,ep="string"==typeof et&&(ei&&ei.interpolation&&void 0!==ei.interpolation.skipOnVariables?ei.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(ep){var ef=et.match(this.interpolator.nestingRegexp);eh=ef&&ef.length}var em=ei.replace&&"string"!=typeof ei.replace?ei.replace:ei;if(this.options.interpolation.defaultVariables&&(em=_objectSpread$2(_objectSpread$2({},this.options.interpolation.defaultVariables),em)),et=this.interpolator.interpolate(et,em,ei.lng||this.language,ei),ep){var ey=et.match(this.interpolator.nestingRegexp);eh<(ey&&ey.length)&&(ei.nest=!1)}!1!==ei.nest&&(et=this.interpolator.nest(et,function(){for(var et=arguments.length,ea=Array(et),eh=0;eh<et;eh++)ea[eh]=arguments[eh];return eu&&eu[0]===ea[0]&&!ei.context?(ed.logger.warn("It seems you are nesting recursively key: ".concat(ea[0]," in key: ").concat(eo[0])),null):ed.translate.apply(ed,ea.concat([eo]))},ei)),ei.interpolation&&this.interpolator.reset()}var eC=ei.postProcess||this.options.postProcess,eS="string"==typeof eC?[eC]:eC;return null!=et&&eS&&eS.length&&!1!==ei.applyPostProcessor&&(et=eg.handle(eS,et,eo,this.options&&this.options.postProcessPassResolved?_objectSpread$2({i18nResolved:ea},ei):ei,this)),et}},{key:"resolve",value:function(et){var eo,ei,ea,eu,ed,eh=this,ep=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof et&&(et=[et]),et.forEach(function(et){if(!eh.isValidLookup(eo)){var ef=eh.extractFromKey(et,ep),em=ef.key;ei=em;var eg=ef.namespaces;eh.options.fallbackNS&&(eg=eg.concat(eh.options.fallbackNS));var eC=void 0!==ep.count&&"string"!=typeof ep.count,eS=eC&&!ep.ordinal&&0===ep.count&&eh.pluralResolver.shouldUseIntlApi(),e_=void 0!==ep.context&&("string"==typeof ep.context||"number"==typeof ep.context)&&""!==ep.context,ew=ep.lngs?ep.lngs:eh.languageUtils.toResolveHierarchy(ep.lng||eh.language,ep.fallbackLng);eg.forEach(function(et){eh.isValidLookup(eo)||(ed=et,!ey["".concat(ew[0],"-").concat(et)]&&eh.utils&&eh.utils.hasLoadedNamespace&&!eh.utils.hasLoadedNamespace(ed)&&(ey["".concat(ew[0],"-").concat(et)]=!0,eh.logger.warn('key "'.concat(ei,'" for languages "').concat(ew.join(", "),'" won\'t get resolved as namespace "').concat(ed,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ew.forEach(function(ei){if(!eh.isValidLookup(eo)){eu=ei;var ed,ef=[em];if(eh.i18nFormat&&eh.i18nFormat.addLookupKeys)eh.i18nFormat.addLookupKeys(ef,em,ei,et,ep);else{eC&&(eg=eh.pluralResolver.getSuffix(ei,ep.count,ep));var eg,ey="_zero";if(eC&&(ef.push(em+eg),eS&&ef.push(em+ey)),e_){var ew="".concat(em).concat(eh.options.contextSeparator).concat(ep.context);ef.push(ew),eC&&(ef.push(ew+eg),eS&&ef.push(ew+ey))}}for(;ed=ef.pop();)eh.isValidLookup(eo)||(ea=ed,eo=eh.getResource(ei,et,ed,ep))}}))})}}),{res:eo,usedKey:ei,exactUsedKey:ea,usedLng:eu,usedNS:ed}}},{key:"isValidLookup",value:function(et){return void 0!==et&&!(!this.options.returnNull&&null===et)&&!(!this.options.returnEmptyString&&""===et)}},{key:"getResource",value:function(et,eo,ei){var ea=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(et,eo,ei,ea):this.resourceStore.getResource(et,eo,ei,ea)}}],[{key:"hasDefaultValue",value:function(et){var eo="defaultValue";for(var ei in et)if(Object.prototype.hasOwnProperty.call(et,ei)&&eo===ei.substring(0,eo.length)&&void 0!==et[ei])return!0;return!1}}]),Translator}(ed);function capitalize(et){return et.charAt(0).toUpperCase()+et.slice(1)}var eS=function(){function LanguageUtil(et){_classCallCheck(this,LanguageUtil),this.options=et,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eu.create("languageUtils")}return _createClass(LanguageUtil,[{key:"getScriptPartFromCode",value:function(et){if(!et||0>et.indexOf("-"))return null;var eo=et.split("-");return 2===eo.length?null:(eo.pop(),"x"===eo[eo.length-1].toLowerCase())?null:this.formatLanguageCode(eo.join("-"))}},{key:"getLanguagePartFromCode",value:function(et){if(!et||0>et.indexOf("-"))return et;var eo=et.split("-");return this.formatLanguageCode(eo[0])}},{key:"formatLanguageCode",value:function(et){if("string"==typeof et&&et.indexOf("-")>-1){var eo=["hans","hant","latn","cyrl","cans","mong","arab"],ei=et.split("-");return this.options.lowerCaseLng?ei=ei.map(function(et){return et.toLowerCase()}):2===ei.length?(ei[0]=ei[0].toLowerCase(),ei[1]=ei[1].toUpperCase(),eo.indexOf(ei[1].toLowerCase())>-1&&(ei[1]=capitalize(ei[1].toLowerCase()))):3===ei.length&&(ei[0]=ei[0].toLowerCase(),2===ei[1].length&&(ei[1]=ei[1].toUpperCase()),"sgn"!==ei[0]&&2===ei[2].length&&(ei[2]=ei[2].toUpperCase()),eo.indexOf(ei[1].toLowerCase())>-1&&(ei[1]=capitalize(ei[1].toLowerCase())),eo.indexOf(ei[2].toLowerCase())>-1&&(ei[2]=capitalize(ei[2].toLowerCase()))),ei.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?et.toLowerCase():et}},{key:"isSupportedCode",value:function(et){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(et=this.getLanguagePartFromCode(et)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(et)>-1}},{key:"getBestMatchFromCodes",value:function(et){var eo,ei=this;return et?(et.forEach(function(et){if(!eo){var ea=ei.formatLanguageCode(et);(!ei.options.supportedLngs||ei.isSupportedCode(ea))&&(eo=ea)}}),!eo&&this.options.supportedLngs&&et.forEach(function(et){if(!eo){var ea=ei.getLanguagePartFromCode(et);if(ei.isSupportedCode(ea))return eo=ea;eo=ei.options.supportedLngs.find(function(et){if(0===et.indexOf(ea))return et})}}),eo||(eo=this.getFallbackCodes(this.options.fallbackLng)[0]),eo):null}},{key:"getFallbackCodes",value:function(et,eo){if(!et)return[];if("function"==typeof et&&(et=et(eo)),"string"==typeof et&&(et=[et]),"[object Array]"===Object.prototype.toString.apply(et))return et;if(!eo)return et.default||[];var ei=et[eo];return ei||(ei=et[this.getScriptPartFromCode(eo)]),ei||(ei=et[this.formatLanguageCode(eo)]),ei||(ei=et[this.getLanguagePartFromCode(eo)]),ei||(ei=et.default),ei||[]}},{key:"toResolveHierarchy",value:function(et,eo){var ei=this,ea=this.getFallbackCodes(eo||this.options.fallbackLng||[],et),eu=[],addCode=function(et){et&&(ei.isSupportedCode(et)?eu.push(et):ei.logger.warn("rejecting language code not found in supportedLngs: ".concat(et)))};return"string"==typeof et&&et.indexOf("-")>-1?("languageOnly"!==this.options.load&&addCode(this.formatLanguageCode(et)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&addCode(this.getScriptPartFromCode(et)),"currentOnly"!==this.options.load&&addCode(this.getLanguagePartFromCode(et))):"string"==typeof et&&addCode(this.formatLanguageCode(et)),ea.forEach(function(et){0>eu.indexOf(et)&&addCode(ei.formatLanguageCode(et))}),eu}}]),LanguageUtil}(),e_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ew={1:function(et){return Number(et>1)},2:function(et){return Number(1!=et)},3:function(et){return 0},4:function(et){return Number(et%10==1&&et%100!=11?0:et%10>=2&&et%10<=4&&(et%100<10||et%100>=20)?1:2)},5:function(et){return Number(0==et?0:1==et?1:2==et?2:et%100>=3&&et%100<=10?3:et%100>=11?4:5)},6:function(et){return Number(1==et?0:et>=2&&et<=4?1:2)},7:function(et){return Number(1==et?0:et%10>=2&&et%10<=4&&(et%100<10||et%100>=20)?1:2)},8:function(et){return Number(1==et?0:2==et?1:8!=et&&11!=et?2:3)},9:function(et){return Number(et>=2)},10:function(et){return Number(1==et?0:2==et?1:et<7?2:et<11?3:4)},11:function(et){return Number(1==et||11==et?0:2==et||12==et?1:et>2&&et<20?2:3)},12:function(et){return Number(et%10!=1||et%100==11)},13:function(et){return Number(0!==et)},14:function(et){return Number(1==et?0:2==et?1:3==et?2:3)},15:function(et){return Number(et%10==1&&et%100!=11?0:et%10>=2&&(et%100<10||et%100>=20)?1:2)},16:function(et){return Number(et%10==1&&et%100!=11?0:0!==et?1:2)},17:function(et){return Number(1==et||et%10==1&&et%100!=11?0:1)},18:function(et){return Number(0==et?0:1==et?1:2)},19:function(et){return Number(1==et?0:0==et||et%100>1&&et%100<11?1:et%100>10&&et%100<20?2:3)},20:function(et){return Number(1==et?0:0==et||et%100>0&&et%100<20?1:2)},21:function(et){return Number(et%100==1?1:et%100==2?2:et%100==3||et%100==4?3:0)},22:function(et){return Number(1==et?0:2==et?1:(et<0||et>10)&&et%10==0?2:3)}},eA=["v1","v2","v3"],eI={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){var et={};return e_.forEach(function(eo){eo.lngs.forEach(function(ei){et[ei]={numbers:eo.nr,plurals:ew[eo.fc]}})}),et}var eR=function(){function PluralResolver(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,PluralResolver),this.languageUtils=et,this.options=eo,this.logger=eu.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}return _createClass(PluralResolver,[{key:"addRule",value:function(et,eo){this.rules[et]=eo}},{key:"getRule",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(et,{type:eo.ordinal?"ordinal":"cardinal"})}catch(et){return}return this.rules[et]||this.rules[this.languageUtils.getLanguagePartFromCode(et)]}},{key:"needsPlural",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ei=this.getRule(et,eo);return this.shouldUseIntlApi()?ei&&ei.resolvedOptions().pluralCategories.length>1:ei&&ei.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(et,ei).map(function(et){return"".concat(eo).concat(et)})}},{key:"getSuffixes",value:function(et){var eo=this,ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ea=this.getRule(et,ei);return ea?this.shouldUseIntlApi()?ea.resolvedOptions().pluralCategories.sort(function(et,eo){return eI[et]-eI[eo]}).map(function(et){return"".concat(eo.options.prepend).concat(et)}):ea.numbers.map(function(ea){return eo.getSuffix(et,ea,ei)}):[]}},{key:"getSuffix",value:function(et,eo){var ei=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ea=this.getRule(et,ei);return ea?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(ea.select(eo)):this.getSuffixRetroCompatible(ea,eo):(this.logger.warn("no plural rule found for: ".concat(et)),"")}},{key:"getSuffixRetroCompatible",value:function(et,eo){var ei=this,ea=et.noAbs?et.plurals(eo):et.plurals(Math.abs(eo)),eu=et.numbers[ea];this.options.simplifyPluralSuffix&&2===et.numbers.length&&1===et.numbers[0]&&(2===eu?eu="plural":1===eu&&(eu=""));var returnSuffix=function(){return ei.options.prepend&&eu.toString()?ei.options.prepend+eu.toString():eu.toString()};return"v1"===this.options.compatibilityJSON?1===eu?"":"number"==typeof eu?"_plural_".concat(eu.toString()):returnSuffix():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===et.numbers.length&&1===et.numbers[0]?returnSuffix():this.options.prepend&&ea.toString()?this.options.prepend+ea.toString():ea.toString()}},{key:"shouldUseIntlApi",value:function(){return!eA.includes(this.options.compatibilityJSON)}}]),PluralResolver}();function ownKeys$3(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread$3(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys$3(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys$3(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}var eT=function(){function Interpolator(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,Interpolator),this.logger=eu.create("interpolator"),this.options=et,this.format=et.interpolation&&et.interpolation.format||function(et){return et},this.init(et)}return _createClass(Interpolator,[{key:"init",value:function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};et.interpolation||(et.interpolation={escapeValue:!0});var eo=et.interpolation;this.escape=void 0!==eo.escape?eo.escape:i18next_escape,this.escapeValue=void 0===eo.escapeValue||eo.escapeValue,this.useRawValueToEscape=void 0!==eo.useRawValueToEscape&&eo.useRawValueToEscape,this.prefix=eo.prefix?regexEscape(eo.prefix):eo.prefixEscaped||"{{",this.suffix=eo.suffix?regexEscape(eo.suffix):eo.suffixEscaped||"}}",this.formatSeparator=eo.formatSeparator?eo.formatSeparator:eo.formatSeparator||",",this.unescapePrefix=eo.unescapeSuffix?"":eo.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":eo.unescapeSuffix||"",this.nestingPrefix=eo.nestingPrefix?regexEscape(eo.nestingPrefix):eo.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=eo.nestingSuffix?regexEscape(eo.nestingSuffix):eo.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=eo.nestingOptionsSeparator?eo.nestingOptionsSeparator:eo.nestingOptionsSeparator||",",this.maxReplaces=eo.maxReplaces?eo.maxReplaces:1e3,this.alwaysFormat=void 0!==eo.alwaysFormat&&eo.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var et="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(et,"g");var eo="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(eo,"g");var ei="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(ei,"g")}},{key:"interpolate",value:function(et,eo,ei,ea){var eu,ed,eh,ep=this,ef=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function regexSafe(et){return et.replace(/\$/g,"$$$$")}var handleFormat=function(et){if(0>et.indexOf(ep.formatSeparator)){var eu=getPathWithDefaults(eo,ef,et);return ep.alwaysFormat?ep.format(eu,void 0,ei,_objectSpread$3(_objectSpread$3(_objectSpread$3({},ea),eo),{},{interpolationkey:et})):eu}var ed=et.split(ep.formatSeparator),eh=ed.shift().trim(),em=ed.join(ep.formatSeparator).trim();return ep.format(getPathWithDefaults(eo,ef,eh),em,ei,_objectSpread$3(_objectSpread$3(_objectSpread$3({},ea),eo),{},{interpolationkey:eh}))};this.resetRegExp();var em=ea&&ea.missingInterpolationHandler||this.options.missingInterpolationHandler,eg=ea&&ea.interpolation&&void 0!==ea.interpolation.skipOnVariables?ea.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(et){return regexSafe(et)}},{regex:this.regexp,safeValue:function(et){return ep.escapeValue?regexSafe(ep.escape(et)):regexSafe(et)}}].forEach(function(eo){for(eh=0;eu=eo.regex.exec(et);){var ei=eu[1].trim();if(void 0===(ed=handleFormat(ei))){if("function"==typeof em){var ef=em(et,eu,ea);ed="string"==typeof ef?ef:""}else if(ea&&ea.hasOwnProperty(ei))ed="";else if(eg){ed=eu[0];continue}else ep.logger.warn("missed to pass in variable ".concat(ei," for interpolating ").concat(et)),ed=""}else"string"==typeof ed||ep.useRawValueToEscape||(ed=makeString(ed));var ey=eo.safeValue(ed);if(et=et.replace(eu[0],ey),eg?(eo.regex.lastIndex+=ey.length,eo.regex.lastIndex-=eu[0].length):eo.regex.lastIndex=0,++eh>=ep.maxReplaces)break}}),et}},{key:"nest",value:function(et,eo){var ei,ea,eu=this,ed=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},eh=_objectSpread$3({},ed);function handleHasOptions(et,eo){var ei=this.nestingOptionsSeparator;if(0>et.indexOf(ei))return et;var ea=et.split(new RegExp("".concat(ei,"[ ]*{"))),eu="{".concat(ea[1]);et=ea[0],eu=(eu=this.interpolate(eu,eh)).replace(/'/g,'"');try{eh=JSON.parse(eu),eo&&(eh=_objectSpread$3(_objectSpread$3({},eo),eh))}catch(eo){return this.logger.warn("failed parsing options string in nesting for key ".concat(et),eo),"".concat(et).concat(ei).concat(eu)}return delete eh.defaultValue,et}for(eh.applyPostProcessor=!1,delete eh.defaultValue;ei=this.nestingRegexp.exec(et);){var ep=[],ef=!1;if(-1!==ei[0].indexOf(this.formatSeparator)&&!/{.*}/.test(ei[1])){var em=ei[1].split(this.formatSeparator).map(function(et){return et.trim()});ei[1]=em.shift(),ep=em,ef=!0}if((ea=eo(handleHasOptions.call(this,ei[1].trim(),eh),eh))&&ei[0]===et&&"string"!=typeof ea)return ea;"string"!=typeof ea&&(ea=makeString(ea)),ea||(this.logger.warn("missed to resolve ".concat(ei[1]," for nesting ").concat(et)),ea=""),ef&&(ea=ep.reduce(function(et,eo){return eu.format(et,eo,ed.lng,_objectSpread$3(_objectSpread$3({},ed),{},{interpolationkey:ei[1].trim()}))},ea.trim())),et=et.replace(ei[0],ea),this.regexp.lastIndex=0}return et}}]),Interpolator}();function ownKeys$4(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread$4(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys$4(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys$4(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function parseFormatStr(et){var eo=et.toLowerCase().trim(),ei={};if(et.indexOf("(")>-1){var ea=et.split("(");eo=ea[0].toLowerCase().trim();var eu=ea[1].substring(0,ea[1].length-1);"currency"===eo&&0>eu.indexOf(":")?ei.currency||(ei.currency=eu.trim()):"relativetime"===eo&&0>eu.indexOf(":")?ei.range||(ei.range=eu.trim()):eu.split(";").forEach(function(et){if(et){var eo=et.split(":"),ea=_toArray(eo),eu=ea[0],ed=ea.slice(1),eh=ed.join(":");ei[eu.trim()]||(ei[eu.trim()]=eh.trim()),"false"===eh.trim()&&(ei[eu.trim()]=!1),"true"===eh.trim()&&(ei[eu.trim()]=!0),isNaN(eh.trim())||(ei[eu.trim()]=parseInt(eh.trim(),10))}})}return{formatName:eo,formatOptions:ei}}var eE=function(){function Formatter(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,Formatter),this.logger=eu.create("formatter"),this.options=et,this.formats={number:function(et,eo,ei){return new Intl.NumberFormat(eo,ei).format(et)},currency:function(et,eo,ei){return new Intl.NumberFormat(eo,_objectSpread$4(_objectSpread$4({},ei),{},{style:"currency"})).format(et)},datetime:function(et,eo,ei){return new Intl.DateTimeFormat(eo,_objectSpread$4({},ei)).format(et)},relativetime:function(et,eo,ei){return new Intl.RelativeTimeFormat(eo,_objectSpread$4({},ei)).format(et,ei.range||"day")},list:function(et,eo,ei){return new Intl.ListFormat(eo,_objectSpread$4({},ei)).format(et)}},this.init(et)}return _createClass(Formatter,[{key:"init",value:function(et){var eo=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},ei=eo.interpolation;this.formatSeparator=ei.formatSeparator?ei.formatSeparator:ei.formatSeparator||","}},{key:"add",value:function(et,eo){this.formats[et.toLowerCase().trim()]=eo}},{key:"format",value:function(et,eo,ei,ea){var eu=this;return eo.split(this.formatSeparator).reduce(function(et,eo){var ed=parseFormatStr(eo),eh=ed.formatName,ep=ed.formatOptions;if(eu.formats[eh]){var ef=et;try{var em=ea&&ea.formatParams&&ea.formatParams[ea.interpolationkey]||{},eg=em.locale||em.lng||ea.locale||ea.lng||ei;ef=eu.formats[eh](et,eg,_objectSpread$4(_objectSpread$4(_objectSpread$4({},ep),ea),em))}catch(et){eu.logger.warn(et)}return ef}return eu.logger.warn("there was no format function for ".concat(eh)),et},et)}}]),Formatter}();function ownKeys$5(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread$5(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys$5(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys$5(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _createSuper$2(et){var eo=_isNativeReflectConstruct$2();return function(){var ei,ea=_getPrototypeOf(et);if(eo){var eu=_getPrototypeOf(this).constructor;ei=Reflect.construct(ea,arguments,eu)}else ei=ea.apply(this,arguments);return _possibleConstructorReturn(this,ei)}}function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(et){return!1}}function removePending(et,eo){delete et.pending[eo],et.pendingCount--}var eP=function(et){_inherits(Connector,et);var eo=_createSuper$2(Connector);function Connector(et,ei,ea){var eh,ef=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _classCallCheck(this,Connector),eh=eo.call(this),ep&&ed.call(_assertThisInitialized(eh)),eh.backend=et,eh.store=ei,eh.services=ea,eh.languageUtils=ea.languageUtils,eh.options=ef,eh.logger=eu.create("backendConnector"),eh.waitingReads=[],eh.maxParallelReads=ef.maxParallelReads||10,eh.readingCalls=0,eh.state={},eh.queue=[],eh.backend&&eh.backend.init&&eh.backend.init(ea,ef.backend,ef),eh}return _createClass(Connector,[{key:"queueLoad",value:function(et,eo,ei,ea){var eu=this,ed={},eh={},ep={},ef={};return et.forEach(function(et){var ea=!0;eo.forEach(function(eo){var ep="".concat(et,"|").concat(eo);!ei.reload&&eu.store.hasResourceBundle(et,eo)?eu.state[ep]=2:eu.state[ep]<0||(1===eu.state[ep]?void 0===eh[ep]&&(eh[ep]=!0):(eu.state[ep]=1,ea=!1,void 0===eh[ep]&&(eh[ep]=!0),void 0===ed[ep]&&(ed[ep]=!0),void 0===ef[eo]&&(ef[eo]=!0)))}),ea||(ep[et]=!0)}),(Object.keys(ed).length||Object.keys(eh).length)&&this.queue.push({pending:eh,pendingCount:Object.keys(eh).length,loaded:{},errors:[],callback:ea}),{toLoad:Object.keys(ed),pending:Object.keys(eh),toLoadLanguages:Object.keys(ep),toLoadNamespaces:Object.keys(ef)}}},{key:"loaded",value:function(et,eo,ei){var ea=et.split("|"),eu=ea[0],ed=ea[1];eo&&this.emit("failedLoading",eu,ed,eo),ei&&this.store.addResourceBundle(eu,ed,ei),this.state[et]=eo?-1:2;var eh={};this.queue.forEach(function(ei){pushPath(ei.loaded,[eu],ed),removePending(ei,et),eo&&ei.errors.push(eo),0!==ei.pendingCount||ei.done||(Object.keys(ei.loaded).forEach(function(et){eh[et]||(eh[et]={});var eo=Object.keys(eh[et]);eo.length&&eo.forEach(function(ei){void 0!==eo[ei]&&(eh[et][ei]=!0)})}),ei.done=!0,ei.errors.length?ei.callback(ei.errors):ei.callback())}),this.emit("loaded",eh),this.queue=this.queue.filter(function(et){return!et.done})}},{key:"read",value:function(et,eo,ei){var ea=this,eu=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,ed=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,eh=arguments.length>5?arguments[5]:void 0;if(!et.length)return eh(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:et,ns:eo,fcName:ei,tried:eu,wait:ed,callback:eh});return}return this.readingCalls++,this.backend[ei](et,eo,function(ep,ef){if(ep&&ef&&eu<5){setTimeout(function(){ea.read.call(ea,et,eo,ei,eu+1,2*ed,eh)},ed);return}if(ea.readingCalls--,ea.waitingReads.length>0){var em=ea.waitingReads.shift();ea.read(em.lng,em.ns,em.fcName,em.tried,em.wait,em.callback)}eh(ep,ef)})}},{key:"prepareLoading",value:function(et,eo){var ei=this,ea=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},eu=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),eu&&eu();"string"==typeof et&&(et=this.languageUtils.toResolveHierarchy(et)),"string"==typeof eo&&(eo=[eo]);var ed=this.queueLoad(et,eo,ea,eu);if(!ed.toLoad.length)return ed.pending.length||eu(),null;ed.toLoad.forEach(function(et){ei.loadOne(et)})}},{key:"load",value:function(et,eo,ei){this.prepareLoading(et,eo,{},ei)}},{key:"reload",value:function(et,eo,ei){this.prepareLoading(et,eo,{reload:!0},ei)}},{key:"loadOne",value:function(et){var eo=this,ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",ea=et.split("|"),eu=ea[0],ed=ea[1];this.read(eu,ed,"read",void 0,void 0,function(ea,eh){ea&&eo.logger.warn("".concat(ei,"loading namespace ").concat(ed," for language ").concat(eu," failed"),ea),!ea&&eh&&eo.logger.log("".concat(ei,"loaded namespace ").concat(ed," for language ").concat(eu),eh),eo.loaded(et,ea,eh)})}},{key:"saveMissing",value:function(et,eo,ei,ea,eu){var ed=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(eo)){this.logger.warn('did not save key "'.concat(ei,'" as the namespace "').concat(eo,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}null!=ei&&""!==ei&&(this.backend&&this.backend.create&&this.backend.create(et,eo,ei,ea,null,_objectSpread$5(_objectSpread$5({},ed),{},{isUpdate:eu})),et&&et[0]&&this.store.addResource(et[0],eo,ei,ea))}}]),Connector}(ed);function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(et){var eo={};if("object"===_typeof(et[1])&&(eo=et[1]),"string"==typeof et[1]&&(eo.defaultValue=et[1]),"string"==typeof et[2]&&(eo.tDescription=et[2]),"object"===_typeof(et[2])||"object"===_typeof(et[3])){var ei=et[3]||et[2];Object.keys(ei).forEach(function(et){eo[et]=ei[et]})}return eo},interpolation:{escapeValue:!0,format:function(et,eo,ei,ea){return et},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(et){return"string"==typeof et.ns&&(et.ns=[et.ns]),"string"==typeof et.fallbackLng&&(et.fallbackLng=[et.fallbackLng]),"string"==typeof et.fallbackNS&&(et.fallbackNS=[et.fallbackNS]),et.supportedLngs&&0>et.supportedLngs.indexOf("cimode")&&(et.supportedLngs=et.supportedLngs.concat(["cimode"])),et}function ownKeys$6(et,eo){var ei=Object.keys(et);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(et);eo&&(ea=ea.filter(function(eo){return Object.getOwnPropertyDescriptor(et,eo).enumerable})),ei.push.apply(ei,ea)}return ei}function _objectSpread$6(et){for(var eo=1;eo<arguments.length;eo++){var ei=null!=arguments[eo]?arguments[eo]:{};eo%2?ownKeys$6(Object(ei),!0).forEach(function(eo){_defineProperty(et,eo,ei[eo])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(ei)):ownKeys$6(Object(ei)).forEach(function(eo){Object.defineProperty(et,eo,Object.getOwnPropertyDescriptor(ei,eo))})}return et}function _createSuper$3(et){var eo=_isNativeReflectConstruct$3();return function(){var ei,ea=_getPrototypeOf(et);if(eo){var eu=_getPrototypeOf(this).constructor;ei=Reflect.construct(ea,arguments,eu)}else ei=ea.apply(this,arguments);return _possibleConstructorReturn(this,ei)}}function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(et){return!1}}function noop(){}function bindMemberFunctions(et){Object.getOwnPropertyNames(Object.getPrototypeOf(et)).forEach(function(eo){"function"==typeof et[eo]&&(et[eo]=et[eo].bind(et))})}var ek=function(et){_inherits(I18n,et);var eo=_createSuper$3(I18n);function I18n(){var et,ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ea=arguments.length>1?arguments[1]:void 0;if(_classCallCheck(this,I18n),et=eo.call(this),ep&&ed.call(_assertThisInitialized(et)),et.options=transformOptions(ei),et.services={},et.logger=eu,et.modules={external:[]},bindMemberFunctions(_assertThisInitialized(et)),ea&&!et.isInitialized&&!ei.isClone){if(!et.options.initImmediate)return et.init(ei,ea),_possibleConstructorReturn(et,_assertThisInitialized(et));setTimeout(function(){et.init(ei,ea)},0)}return et}return _createClass(I18n,[{key:"init",value:function(){var et=this,eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ei=arguments.length>1?arguments[1]:void 0;"function"==typeof eo&&(ei=eo,eo={}),!eo.defaultNS&&eo.ns&&("string"==typeof eo.ns?eo.defaultNS=eo.ns:0>eo.ns.indexOf("translation")&&(eo.defaultNS=eo.ns[0]));var ea=get();function createClassOnDemand(et){return et?"function"==typeof et?new et:et:null}if(this.options=_objectSpread$6(_objectSpread$6(_objectSpread$6({},ea),this.options),transformOptions(eo)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=_objectSpread$6(_objectSpread$6({},ea.interpolation),this.options.interpolation)),void 0!==eo.keySeparator&&(this.options.userDefinedKeySeparator=eo.keySeparator),void 0!==eo.nsSeparator&&(this.options.userDefinedNsSeparator=eo.nsSeparator),!this.options.isClone){this.modules.logger?eu.init(createClassOnDemand(this.modules.logger),this.options):eu.init(null,this.options),this.modules.formatter?ed=this.modules.formatter:"undefined"!=typeof Intl&&(ed=eE);var ed,eh=new eS(this.options);this.store=new em(this.options.resources,this.options);var ep=this.services;ep.logger=eu,ep.resourceStore=this.store,ep.languageUtils=eh,ep.pluralResolver=new eR(eh,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ed&&(!this.options.interpolation.format||this.options.interpolation.format===ea.interpolation.format)&&(ep.formatter=createClassOnDemand(ed),ep.formatter.init(ep,this.options),this.options.interpolation.format=ep.formatter.format.bind(ep.formatter)),ep.interpolator=new eT(this.options),ep.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},ep.backendConnector=new eP(createClassOnDemand(this.modules.backend),ep.resourceStore,ep,this.options),ep.backendConnector.on("*",function(eo){for(var ei=arguments.length,ea=Array(ei>1?ei-1:0),eu=1;eu<ei;eu++)ea[eu-1]=arguments[eu];et.emit.apply(et,[eo].concat(ea))}),this.modules.languageDetector&&(ep.languageDetector=createClassOnDemand(this.modules.languageDetector),ep.languageDetector.init(ep,this.options.detection,this.options)),this.modules.i18nFormat&&(ep.i18nFormat=createClassOnDemand(this.modules.i18nFormat),ep.i18nFormat.init&&ep.i18nFormat.init(this)),this.translator=new eC(this.services,this.options),this.translator.on("*",function(eo){for(var ei=arguments.length,ea=Array(ei>1?ei-1:0),eu=1;eu<ei;eu++)ea[eu-1]=arguments[eu];et.emit.apply(et,[eo].concat(ea))}),this.modules.external.forEach(function(eo){eo.init&&eo.init(et)})}if(this.format=this.options.interpolation.format,ei||(ei=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var ef=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);ef.length>0&&"dev"!==ef[0]&&(this.options.lng=ef[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(eo){et[eo]=function(){var ei;return(ei=et.store)[eo].apply(ei,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(eo){et[eo]=function(){var ei;return(ei=et.store)[eo].apply(ei,arguments),et}});var eg=defer(),load=function(){var finish=function(eo,ea){et.isInitialized&&!et.initializedStoreOnce&&et.logger.warn("init: i18next is already initialized. You should call init just once!"),et.isInitialized=!0,et.options.isClone||et.logger.log("initialized",et.options),et.emit("initialized",et.options),eg.resolve(ea),ei(eo,ea)};if(et.languages&&"v1"!==et.options.compatibilityAPI&&!et.isInitialized)return finish(null,et.t.bind(et));et.changeLanguage(et.options.lng,finish)};return this.options.resources||!this.options.initImmediate?load():setTimeout(load,0),eg}},{key:"loadResources",value:function(et){var eo=this,ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,ea=ei,eu="string"==typeof et?et:this.language;if("function"==typeof et&&(ea=et),!this.options.resources||this.options.partialBundledLanguages){if(eu&&"cimode"===eu.toLowerCase())return ea();var ed=[],append=function(et){if(et){var ei=eo.services.languageUtils.toResolveHierarchy(et);ei.forEach(function(et){0>ed.indexOf(et)&&ed.push(et)})}};eu?append(eu):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(et){return append(et)}),this.options.preload&&this.options.preload.forEach(function(et){return append(et)}),this.services.backendConnector.load(ed,this.options.ns,function(et){et||eo.resolvedLanguage||!eo.language||eo.setResolvedLanguage(eo.language),ea(et)})}else ea(null)}},{key:"reloadResources",value:function(et,eo,ei){var ea=defer();return et||(et=this.languages),eo||(eo=this.options.ns),ei||(ei=noop),this.services.backendConnector.reload(et,eo,function(et){ea.resolve(),ei(et)}),ea}},{key:"use",value:function(et){if(!et)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!et.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===et.type&&(this.modules.backend=et),("logger"===et.type||et.log&&et.warn&&et.error)&&(this.modules.logger=et),"languageDetector"===et.type&&(this.modules.languageDetector=et),"i18nFormat"===et.type&&(this.modules.i18nFormat=et),"postProcessor"===et.type&&eg.addPostProcessor(et),"formatter"===et.type&&(this.modules.formatter=et),"3rdParty"===et.type&&this.modules.external.push(et),this}},{key:"setResolvedLanguage",value:function(et){if(et&&this.languages&&!(["cimode","dev"].indexOf(et)>-1))for(var eo=0;eo<this.languages.length;eo++){var ei=this.languages[eo];if(!(["cimode","dev"].indexOf(ei)>-1)&&this.store.hasLanguageSomeTranslations(ei)){this.resolvedLanguage=ei;break}}}},{key:"changeLanguage",value:function(et,eo){var ei=this;this.isLanguageChangingTo=et;var ea=defer();this.emit("languageChanging",et);var setLngProps=function(et){ei.language=et,ei.languages=ei.services.languageUtils.toResolveHierarchy(et),ei.resolvedLanguage=void 0,ei.setResolvedLanguage(et)},done=function(et,eu){eu?(setLngProps(eu),ei.translator.changeLanguage(eu),ei.isLanguageChangingTo=void 0,ei.emit("languageChanged",eu),ei.logger.log("languageChanged",eu)):ei.isLanguageChangingTo=void 0,ea.resolve(function(){return ei.t.apply(ei,arguments)}),eo&&eo(et,function(){return ei.t.apply(ei,arguments)})},setLng=function(eo){et||eo||!ei.services.languageDetector||(eo=[]);var ea="string"==typeof eo?eo:ei.services.languageUtils.getBestMatchFromCodes(eo);ea&&(ei.language||setLngProps(ea),ei.translator.language||ei.translator.changeLanguage(ea),ei.services.languageDetector&&ei.services.languageDetector.cacheUserLanguage(ea)),ei.loadResources(ea,function(et){done(et,ea)})};return et||!this.services.languageDetector||this.services.languageDetector.async?!et&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(setLng):setLng(et):setLng(this.services.languageDetector.detect()),ea}},{key:"getFixedT",value:function(et,eo,ei){var ea=this,fixedT=function fixedT(et,eo){if("object"!==_typeof(eo)){for(var eu,ed=arguments.length,eh=Array(ed>2?ed-2:0),ep=2;ep<ed;ep++)eh[ep-2]=arguments[ep];eu=ea.options.overloadTranslationOptionHandler([et,eo].concat(eh))}else eu=_objectSpread$6({},eo);eu.lng=eu.lng||fixedT.lng,eu.lngs=eu.lngs||fixedT.lngs,eu.ns=eu.ns||fixedT.ns;var ef=ea.options.keySeparator||".",em=ei?"".concat(ei).concat(ef).concat(et):et;return ea.t(em,eu)};return"string"==typeof et?fixedT.lng=et:fixedT.lngs=et,fixedT.ns=eo,fixedT.keyPrefix=ei,fixedT}},{key:"t",value:function(){var et;return this.translator&&(et=this.translator).translate.apply(et,arguments)}},{key:"exists",value:function(){var et;return this.translator&&(et=this.translator).exists.apply(et,arguments)}},{key:"setDefaultNamespace",value:function(et){this.options.defaultNS=et}},{key:"hasLoadedNamespace",value:function(et){var eo=this,ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var ea=this.resolvedLanguage||this.languages[0],eu=!!this.options&&this.options.fallbackLng,ed=this.languages[this.languages.length-1];if("cimode"===ea.toLowerCase())return!0;var loadNotPending=function(et,ei){var ea=eo.services.backendConnector.state["".concat(et,"|").concat(ei)];return -1===ea||2===ea};if(ei.precheck){var eh=ei.precheck(this,loadNotPending);if(void 0!==eh)return eh}return!!(this.hasResourceBundle(ea,et)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||loadNotPending(ea,et)&&(!eu||loadNotPending(ed,et)))}},{key:"loadNamespaces",value:function(et,eo){var ei=this,ea=defer();return this.options.ns?("string"==typeof et&&(et=[et]),et.forEach(function(et){0>ei.options.ns.indexOf(et)&&ei.options.ns.push(et)}),this.loadResources(function(et){ea.resolve(),eo&&eo(et)}),ea):(eo&&eo(),Promise.resolve())}},{key:"loadLanguages",value:function(et,eo){var ei=defer();"string"==typeof et&&(et=[et]);var ea=this.options.preload||[],eu=et.filter(function(et){return 0>ea.indexOf(et)});return eu.length?(this.options.preload=ea.concat(eu),this.loadResources(function(et){ei.resolve(),eo&&eo(et)}),ei):(eo&&eo(),Promise.resolve())}},{key:"dir",value:function(et){return(et||(et=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),et)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(et))>-1||et.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var et=this,eo=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:noop,ea=_objectSpread$6(_objectSpread$6(_objectSpread$6({},this.options),eo),{isClone:!0}),eu=new I18n(ea);return["store","services","language"].forEach(function(eo){eu[eo]=et[eo]}),eu.services=_objectSpread$6({},this.services),eu.services.utils={hasLoadedNamespace:eu.hasLoadedNamespace.bind(eu)},eu.translator=new eC(eu.services,eu.options),eu.translator.on("*",function(et){for(var eo=arguments.length,ei=Array(eo>1?eo-1:0),ea=1;ea<eo;ea++)ei[ea-1]=arguments[ea];eu.emit.apply(eu,[et].concat(ei))}),eu.init(ea,ei),eu.translator.options=eu.options,eu.translator.backendConnector.services.utils={hasLoadedNamespace:eu.hasLoadedNamespace.bind(eu)},eu}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),I18n}(ed);_defineProperty(ek,"createInstance",function(){var et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=arguments.length>1?arguments[1]:void 0;return new ek(et,eo)});var eO=ek.createInstance();eO.createInstance=ek.createInstance,eO.createInstance,eO.init,eO.loadResources,eO.reloadResources,eO.use,eO.changeLanguage,eO.getFixedT;var eM=eO.t;eO.exists,eO.setDefaultNamespace,eO.hasLoadedNamespace,eO.loadNamespaces,eO.loadLanguages;var eD=eO},72344:function(et,eo,ei){"use strict";function _defineProperty(et,eo,ei){return eo in et?Object.defineProperty(et,eo,{value:ei,enumerable:!0,configurable:!0,writable:!0}):et[eo]=ei,et}ei.d(eo,{Z:function(){return _defineProperty}})},64312:function(et,eo,ei){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(et){for(var eo=1;eo<arguments.length;eo++){var ei=arguments[eo];for(var ea in ei)Object.prototype.hasOwnProperty.call(ei,ea)&&(et[ea]=ei[ea])}return et}).apply(this,arguments)}ei.d(eo,{Z:function(){return _extends}})},72784:function(et,eo,ei){"use strict";function _setPrototypeOf(et,eo){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(et,eo){return et.__proto__=eo,et})(et,eo)}function _inheritsLoose(et,eo){et.prototype=Object.create(eo.prototype),et.prototype.constructor=et,_setPrototypeOf(et,eo)}ei.d(eo,{Z:function(){return _inheritsLoose}})},45007:function(et,eo,ei){"use strict";ei.d(eo,{I0:function(){return eA},v9:function(){return ey},zt:function(){return Provider_default}});var ea=ei(67294),eu=ei(31103),ed=ea,eh=Symbol.for("react-redux-context"),ep="undefined"!=typeof globalThis?globalThis:{},ef=function(){if(!ed.createContext)return{};let et=ep[eh]??(ep[eh]=new Map),eo=et.get(ed.createContext);return eo||(eo=ed.createContext(null),et.set(ed.createContext,eo)),eo}(),notInitialized=()=>{throw Error("uSES not initialized!")};function createReduxContextHook(et=ef){return function(){let eo=ed.useContext(et);return eo}}var em=createReduxContextHook(),eg=notInitialized,initializeUseSelector=et=>{eg=et},refEquality=(et,eo)=>et===eo,ey=function(et=ef){let eo=et===ef?em:createReduxContextHook(et),useSelector2=(et,ei={})=>{let{equalityFn:ea=refEquality,devModeChecks:eu={}}="function"==typeof ei?{equalityFn:ei}:ei,{store:eh,subscription:ep,getServerState:ef,stabilityCheck:em,identityFunctionCheck:ey}=eo();ed.useRef(!0);let eC=ed.useCallback({[et.name](eo){let ei=et(eo);return ei}}[et.name],[et,em,eu.stabilityCheck]),eS=eg(ep.addNestedSub,eh.getState,ef||eh.getState,eC,ea);return ed.useDebugValue(eS),eS};return Object.assign(useSelector2,{withTypes:()=>useSelector2}),useSelector2}();function defaultNoopBatch(et){et()}function createListenerCollection(){let et=null,eo=null;return{clear(){et=null,eo=null},notify(){defaultNoopBatch(()=>{let eo=et;for(;eo;)eo.callback(),eo=eo.next})},get(){let eo=[],ei=et;for(;ei;)eo.push(ei),ei=ei.next;return eo},subscribe(ei){let ea=!0,eu=eo={callback:ei,next:null,prev:eo};return eu.prev?eu.prev.next=eu:et=eu,function(){ea&&null!==et&&(ea=!1,eu.next?eu.next.prev=eu.prev:eo=eu.prev,eu.prev?eu.prev.next=eu.next:et=eu.next)}}}}Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var eC={notify(){},get:()=>[]};function createSubscription(et,eo){let ei;let ea=eC,eu=0,ed=!1;function addNestedSub(et){trySubscribe();let eo=ea.subscribe(et),ei=!1;return()=>{ei||(ei=!0,eo(),tryUnsubscribe())}}function notifyNestedSubs(){ea.notify()}function handleChangeWrapper(){eh.onStateChange&&eh.onStateChange()}function isSubscribed(){return ed}function trySubscribe(){eu++,ei||(ei=eo?eo.addNestedSub(handleChangeWrapper):et.subscribe(handleChangeWrapper),ea=createListenerCollection())}function tryUnsubscribe(){eu--,ei&&0===eu&&(ei(),ei=void 0,ea.clear(),ea=eC)}function trySubscribeSelf(){ed||(ed=!0,trySubscribe())}function tryUnsubscribeSelf(){ed&&(ed=!1,tryUnsubscribe())}let eh={addNestedSub,notifyNestedSubs,handleChangeWrapper,isSubscribed,trySubscribe:trySubscribeSelf,tryUnsubscribe:tryUnsubscribeSelf,getListeners:()=>ea};return eh}var eS="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?ed.useLayoutEffect:ed.useEffect,e_=null,initializeConnect=et=>{e_=et},Provider_default=function({store:et,context:eo,children:ei,serverState:ea,stabilityCheck:eu="once",identityFunctionCheck:eh="once"}){let ep=ed.useMemo(()=>{let eo=createSubscription(et);return{store:et,subscription:eo,getServerState:ea?()=>ea:void 0,stabilityCheck:eu,identityFunctionCheck:eh}},[et,ea,eu,eh]),em=ed.useMemo(()=>et.getState(),[et]);eS(()=>{let{subscription:eo}=ep;return eo.onStateChange=eo.notifyNestedSubs,eo.trySubscribe(),em!==et.getState()&&eo.notifyNestedSubs(),()=>{eo.tryUnsubscribe(),eo.onStateChange=void 0}},[ep,em]);let eg=eo||ef;return ed.createElement(eg.Provider,{value:ep},ei)};function createStoreHook(et=ef){let eo=et===ef?em:createReduxContextHook(et),useStore2=()=>{let{store:et}=eo();return et};return Object.assign(useStore2,{withTypes:()=>useStore2}),useStore2}var ew=createStoreHook(),eA=function(et=ef){let eo=et===ef?ew:createStoreHook(et),useDispatch2=()=>{let et=eo();return et.dispatch};return Object.assign(useDispatch2,{withTypes:()=>useDispatch2}),useDispatch2}();initializeUseSelector(eu.useSyncExternalStoreWithSelector),initializeConnect(ea.useSyncExternalStore)},22920:function(et,eo,ei){"use strict";ei.d(eo,{Ix:function(){return ep},Am:function(){return Q}});var ea=ei(67294);function r(et){var eo,ei,ea="";if("string"==typeof et||"number"==typeof et)ea+=et;else if("object"==typeof et){if(Array.isArray(et))for(eo=0;eo<et.length;eo++)et[eo]&&(ei=r(et[eo]))&&(ea&&(ea+=" "),ea+=ei);else for(eo in et)et[eo]&&(ea&&(ea+=" "),ea+=eo)}return ea}var clsx_m=function(){for(var et,eo,ei=0,ea="";ei<arguments.length;)(et=arguments[ei++])&&(eo=r(et))&&(ea&&(ea+=" "),ea+=eo);return ea};let u=et=>"number"==typeof et&&!isNaN(et),d=et=>"string"==typeof et,p=et=>"function"==typeof et,m=et=>d(et)||p(et)?et:null,f=et=>(0,ea.isValidElement)(et)||d(et)||p(et)||u(et);function g(et,eo,ei){void 0===ei&&(ei=300);let{scrollHeight:ea,style:eu}=et;requestAnimationFrame(()=>{eu.minHeight="initial",eu.height=ea+"px",eu.transition=`all ${ei}ms`,requestAnimationFrame(()=>{eu.height="0",eu.padding="0",eu.margin="0",setTimeout(eo,ei)})})}function h(et){let{enter:eo,exit:ei,appendPosition:eu=!1,collapse:ed=!0,collapseDuration:eh=300}=et;return function(et){let{children:ep,position:ef,preventExitTransition:em,done:eg,nodeRef:ey,isIn:eC}=et,eS=eu?`${eo}--${ef}`:eo,e_=eu?`${ei}--${ef}`:ei,ew=(0,ea.useRef)(0);return(0,ea.useLayoutEffect)(()=>{let et=ey.current,eo=eS.split(" "),n=ei=>{ei.target===ey.current&&(et.dispatchEvent(new Event("d")),et.removeEventListener("animationend",n),et.removeEventListener("animationcancel",n),0===ew.current&&"animationcancel"!==ei.type&&et.classList.remove(...eo))};et.classList.add(...eo),et.addEventListener("animationend",n),et.addEventListener("animationcancel",n)},[]),(0,ea.useEffect)(()=>{let et=ey.current,e=()=>{et.removeEventListener("animationend",e),ed?g(et,eg,eh):eg()};eC||(em?e():(ew.current=1,et.className+=` ${e_}`,et.addEventListener("animationend",e)))},[eC]),ea.createElement(ea.Fragment,null,ep)}}function y(et,eo){return null!=et?{content:et.content,containerId:et.props.containerId,id:et.props.toastId,theme:et.props.theme,type:et.props.type,data:et.props.data||{},isLoading:et.props.isLoading,icon:et.props.icon,status:eo}:{}}let eu={list:new Map,emitQueue:new Map,on(et,eo){return this.list.has(et)||this.list.set(et,[]),this.list.get(et).push(eo),this},off(et,eo){if(eo){let ei=this.list.get(et).filter(et=>et!==eo);return this.list.set(et,ei),this}return this.list.delete(et),this},cancelEmit(et){let eo=this.emitQueue.get(et);return eo&&(eo.forEach(clearTimeout),this.emitQueue.delete(et)),this},emit(et){this.list.has(et)&&this.list.get(et).forEach(eo=>{let ei=setTimeout(()=>{eo(...[].slice.call(arguments,1))},0);this.emitQueue.has(et)||this.emitQueue.set(et,[]),this.emitQueue.get(et).push(ei)})}},T=et=>{let{theme:eo,type:ei,...eu}=et;return ea.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===eo?"currentColor":`var(--toastify-icon-color-${ei})`,...eu})},ed={info:function(et){return ea.createElement(T,{...et},ea.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(et){return ea.createElement(T,{...et},ea.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(et){return ea.createElement(T,{...et},ea.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(et){return ea.createElement(T,{...et},ea.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ea.createElement("div",{className:"Toastify__spinner"})}};function C(et){let[,eo]=(0,ea.useReducer)(et=>et+1,0),[ei,eh]=(0,ea.useState)([]),ep=(0,ea.useRef)(null),ef=(0,ea.useRef)(new Map).current,T=et=>-1!==ei.indexOf(et),em=(0,ea.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:et,containerId:null,isToastActive:T,getToast:et=>ef.get(et)}).current;function b(et){let{containerId:eo}=et,{limit:ei}=em.props;!ei||eo&&em.containerId!==eo||(em.count-=em.queue.length,em.queue=[])}function I(et){eh(eo=>null==et?[]:eo.filter(eo=>eo!==et))}function _(){let{toastContent:et,toastProps:eo,staleId:ei}=em.queue.shift();O(et,eo,ei)}function L(et,ei){var eh,eg;let{delay:ey,staleId:eC,...eS}=ei;if(!f(et)||function(et){return!ep.current||em.props.enableMultiContainer&&et.containerId!==em.props.containerId||ef.has(et.toastId)&&null==et.updateId}(eS))return;let{toastId:e_,updateId:ew,data:eA}=eS,{props:eI}=em,L=()=>I(e_),eR=null==ew;eR&&em.count++;let eT={...eI,style:eI.toastStyle,key:em.toastKey++,...Object.fromEntries(Object.entries(eS).filter(et=>{let[eo,ei]=et;return null!=ei})),toastId:e_,updateId:ew,data:eA,closeToast:L,isIn:!1,className:m(eS.className||eI.toastClassName),bodyClassName:m(eS.bodyClassName||eI.bodyClassName),progressClassName:m(eS.progressClassName||eI.progressClassName),autoClose:!eS.isLoading&&(eh=eS.autoClose,eg=eI.autoClose,!1===eh||u(eh)&&eh>0?eh:eg),deleteToast(){let et=y(ef.get(e_),"removed");ef.delete(e_),eu.emit(4,et);let ei=em.queue.length;if(em.count=null==e_?em.count-em.displayedToast:em.count-1,em.count<0&&(em.count=0),ei>0){let et=null==e_?em.props.limit:1;if(1===ei||1===et)em.displayedToast++,_();else{let eo=et>ei?ei:et;em.displayedToast=eo;for(let et=0;et<eo;et++)_()}}else eo()}};eT.iconOut=function(et){let{theme:eo,type:ei,isLoading:eu,icon:eh}=et,ep=null,ef={theme:eo,type:ei};return!1===eh||(p(eh)?ep=eh(ef):(0,ea.isValidElement)(eh)?ep=(0,ea.cloneElement)(eh,ef):d(eh)||u(eh)?ep=eh:eu?ep=ed.spinner():ei in ed&&(ep=ed[ei](ef))),ep}(eT),p(eS.onOpen)&&(eT.onOpen=eS.onOpen),p(eS.onClose)&&(eT.onClose=eS.onClose),eT.closeButton=eI.closeButton,!1===eS.closeButton||f(eS.closeButton)?eT.closeButton=eS.closeButton:!0===eS.closeButton&&(eT.closeButton=!f(eI.closeButton)||eI.closeButton);let eE=et;(0,ea.isValidElement)(et)&&!d(et.type)?eE=(0,ea.cloneElement)(et,{closeToast:L,toastProps:eT,data:eA}):p(et)&&(eE=et({closeToast:L,toastProps:eT,data:eA})),eI.limit&&eI.limit>0&&em.count>eI.limit&&eR?em.queue.push({toastContent:eE,toastProps:eT,staleId:eC}):u(ey)?setTimeout(()=>{O(eE,eT,eC)},ey):O(eE,eT,eC)}function O(et,eo,ei){let{toastId:ea}=eo;ei&&ef.delete(ei);let ed={content:et,props:eo};ef.set(ea,ed),eh(et=>[...et,ea].filter(et=>et!==ei)),eu.emit(4,y(ed,null==ed.props.updateId?"added":"updated"))}return(0,ea.useEffect)(()=>(em.containerId=et.containerId,eu.cancelEmit(3).on(0,L).on(1,et=>ep.current&&I(et)).on(5,b).emit(2,em),()=>{ef.clear(),eu.emit(3,em)}),[]),(0,ea.useEffect)(()=>{em.props=et,em.isToastActive=T,em.displayedToast=ei.length}),{getToastToRender:function(eo){let ei=new Map,ea=Array.from(ef.values());return et.newestOnTop&&ea.reverse(),ea.forEach(et=>{let{position:eo}=et.props;ei.has(eo)||ei.set(eo,[]),ei.get(eo).push(et)}),Array.from(ei,et=>eo(et[0],et[1]))},containerRef:ep,isToastActive:T}}function b(et){return et.targetTouches&&et.targetTouches.length>=1?et.targetTouches[0].clientX:et.clientX}function I(et){return et.targetTouches&&et.targetTouches.length>=1?et.targetTouches[0].clientY:et.clientY}function _(et){let[eo,ei]=(0,ea.useState)(!1),[eu,ed]=(0,ea.useState)(!1),eh=(0,ea.useRef)(null),ep=(0,ea.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,ef=(0,ea.useRef)(et),{autoClose:em,pauseOnHover:eg,closeToast:ey,onClick:eC,closeOnClick:eS}=et;function v(eo){if(et.draggable){"touchstart"===eo.nativeEvent.type&&eo.nativeEvent.preventDefault(),ep.didMove=!1,document.addEventListener("mousemove",_),document.addEventListener("mouseup",L),document.addEventListener("touchmove",_),document.addEventListener("touchend",L);let ei=eh.current;ep.canCloseOnClick=!0,ep.canDrag=!0,ep.boundingRect=ei.getBoundingClientRect(),ei.style.transition="",ep.x=b(eo.nativeEvent),ep.y=I(eo.nativeEvent),"x"===et.draggableDirection?(ep.start=ep.x,ep.removalDistance=ei.offsetWidth*(et.draggablePercent/100)):(ep.start=ep.y,ep.removalDistance=ei.offsetHeight*(80===et.draggablePercent?1.5*et.draggablePercent:et.draggablePercent/100))}}function T(eo){if(ep.boundingRect){let{top:ei,bottom:ea,left:eu,right:ed}=ep.boundingRect;"touchend"!==eo.nativeEvent.type&&et.pauseOnHover&&ep.x>=eu&&ep.x<=ed&&ep.y>=ei&&ep.y<=ea?C():E()}}function E(){ei(!0)}function C(){ei(!1)}function _(ei){let ea=eh.current;ep.canDrag&&ea&&(ep.didMove=!0,eo&&C(),ep.x=b(ei),ep.y=I(ei),ep.delta="x"===et.draggableDirection?ep.x-ep.start:ep.y-ep.start,ep.start!==ep.x&&(ep.canCloseOnClick=!1),ea.style.transform=`translate${et.draggableDirection}(${ep.delta}px)`,ea.style.opacity=""+(1-Math.abs(ep.delta/ep.removalDistance)))}function L(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",_),document.removeEventListener("touchend",L);let eo=eh.current;if(ep.canDrag&&ep.didMove&&eo){if(ep.canDrag=!1,Math.abs(ep.delta)>ep.removalDistance)return ed(!0),void et.closeToast();eo.style.transition="transform 0.2s, opacity 0.2s",eo.style.transform=`translate${et.draggableDirection}(0)`,eo.style.opacity="1"}}(0,ea.useEffect)(()=>{ef.current=et}),(0,ea.useEffect)(()=>(eh.current&&eh.current.addEventListener("d",E,{once:!0}),p(et.onOpen)&&et.onOpen((0,ea.isValidElement)(et.children)&&et.children.props),()=>{let et=ef.current;p(et.onClose)&&et.onClose((0,ea.isValidElement)(et.children)&&et.children.props)}),[]),(0,ea.useEffect)(()=>(et.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",E),window.addEventListener("blur",C)),()=>{et.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",C))}),[et.pauseOnFocusLoss]);let e_={onMouseDown:v,onTouchStart:v,onMouseUp:T,onTouchEnd:T};return em&&eg&&(e_.onMouseEnter=C,e_.onMouseLeave=E),eS&&(e_.onClick=et=>{eC&&eC(et),ep.canCloseOnClick&&ey()}),{playToast:E,pauseToast:C,isRunning:eo,preventExitTransition:eu,toastRef:eh,eventHandlers:e_}}function L(et){let{closeToast:eo,theme:ei,ariaLabel:eu="close"}=et;return ea.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ei}`,type:"button",onClick:et=>{et.stopPropagation(),eo(et)},"aria-label":eu},ea.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ea.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function O(et){let{delay:eo,isRunning:ei,closeToast:eu,type:ed="default",hide:eh,className:ep,style:ef,controlledProgress:em,progress:eg,rtl:ey,isIn:eC,theme:eS}=et,e_=eh||em&&0===eg,ew={...ef,animationDuration:`${eo}ms`,animationPlayState:ei?"running":"paused",opacity:e_?0:1};em&&(ew.transform=`scaleX(${eg})`);let eA=clsx_m("Toastify__progress-bar",em?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${eS}`,`Toastify__progress-bar--${ed}`,{"Toastify__progress-bar--rtl":ey}),eI=p(ep)?ep({rtl:ey,type:ed,defaultClassName:eA}):clsx_m(eA,ep);return ea.createElement("div",{role:"progressbar","aria-hidden":e_?"true":"false","aria-label":"notification timer",className:eI,style:ew,[em&&eg>=1?"onTransitionEnd":"onAnimationEnd"]:em&&eg<1?null:()=>{eC&&eu()}})}let N=et=>{let{isRunning:eo,preventExitTransition:ei,toastRef:eu,eventHandlers:ed}=_(et),{closeButton:eh,children:ep,autoClose:ef,onClick:em,type:eg,hideProgressBar:ey,closeToast:eC,transition:eS,position:e_,className:ew,style:eA,bodyClassName:eI,bodyStyle:eR,progressClassName:eT,progressStyle:eE,updateId:eP,role:ek,progress:eO,rtl:eM,toastId:eD,deleteToast:eU,isIn:eL,isLoading:eN,iconOut:eB,closeOnClick:eF,theme:ej}=et,eG=clsx_m("Toastify__toast",`Toastify__toast-theme--${ej}`,`Toastify__toast--${eg}`,{"Toastify__toast--rtl":eM},{"Toastify__toast--close-on-click":eF}),eH=p(ew)?ew({rtl:eM,position:e_,type:eg,defaultClassName:eG}):clsx_m(eG,ew),eK=!!eO||!ef,ez={closeToast:eC,type:eg,theme:ej},eW=null;return!1===eh||(eW=p(eh)?eh(ez):(0,ea.isValidElement)(eh)?(0,ea.cloneElement)(eh,ez):L(ez)),ea.createElement(eS,{isIn:eL,done:eU,position:e_,preventExitTransition:ei,nodeRef:eu},ea.createElement("div",{id:eD,onClick:em,className:eH,...ed,style:eA,ref:eu},ea.createElement("div",{...eL&&{role:ek},className:p(eI)?eI({type:eg}):clsx_m("Toastify__toast-body",eI),style:eR},null!=eB&&ea.createElement("div",{className:clsx_m("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!eN})},eB),ea.createElement("div",null,ep)),eW,ea.createElement(O,{...eP&&!eK?{key:`pb-${eP}`}:{},rtl:eM,theme:ej,delay:ef,isRunning:eo,isIn:eL,closeToast:eC,hide:ey,type:eg,style:eE,className:eT,controlledProgress:eK,progress:eO||0})))},M=function(et,eo){return void 0===eo&&(eo=!1),{enter:`Toastify--animate Toastify__${et}-enter`,exit:`Toastify--animate Toastify__${et}-exit`,appendPosition:eo}},eh=h(M("bounce",!0)),ep=(h(M("slide",!0)),h(M("zoom")),h(M("flip")),(0,ea.forwardRef)((et,eo)=>{let{getToastToRender:ei,containerRef:eu,isToastActive:ed}=C(et),{className:eh,style:ep,rtl:ef,containerId:em}=et;function f(et){let eo=clsx_m("Toastify__toast-container",`Toastify__toast-container--${et}`,{"Toastify__toast-container--rtl":ef});return p(eh)?eh({position:et,rtl:ef,defaultClassName:eo}):clsx_m(eo,m(eh))}return(0,ea.useEffect)(()=>{eo&&(eo.current=eu.current)},[]),ea.createElement("div",{ref:eu,className:"Toastify",id:em},ei((et,eo)=>{let ei=eo.length?{...ep}:{...ep,pointerEvents:"none"};return ea.createElement("div",{className:f(et),style:ei,key:`container-${et}`},eo.map((et,ei)=>{let{content:eu,props:eh}=et;return ea.createElement(N,{...eh,isIn:ed(eh.toastId),style:{...eh.style,"--nth":ei+1,"--len":eo.length},key:`toast-${eh.key}`},eu)}))}))}));ep.displayName="ToastContainer",ep.defaultProps={position:"top-right",transition:eh,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let ef,em=new Map,eg=[],ey=1;function z(){return""+ey++}function F(et){return et&&(d(et.toastId)||u(et.toastId))?et.toastId:z()}function H(et,eo){return em.size>0?eu.emit(0,et,eo):eg.push({content:et,options:eo}),eo.toastId}function S(et,eo){return{...eo,type:eo&&eo.type||et,toastId:F(eo)}}function q(et){return(eo,ei)=>H(eo,S(et,ei))}function Q(et,eo){return H(et,S("default",eo))}Q.loading=(et,eo)=>H(et,S("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...eo})),Q.promise=function(et,eo,ei){let ea,{pending:eu,error:ed,success:eh}=eo;eu&&(ea=d(eu)?Q.loading(eu,ei):Q.loading(eu.render,{...ei,...eu}));let ep={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(et,eo,eu)=>{if(null==eo)return void Q.dismiss(ea);let ed={type:et,...ep,...ei,data:eu},eh=d(eo)?{render:eo}:eo;return ea?Q.update(ea,{...ed,...eh}):Q(eh.render,{...ed,...eh}),eu},ef=p(et)?et():et;return ef.then(et=>l("success",eh,et)).catch(et=>l("error",ed,et)),ef},Q.success=q("success"),Q.info=q("info"),Q.error=q("error"),Q.warning=q("warning"),Q.warn=Q.warning,Q.dark=(et,eo)=>H(et,S("default",{theme:"dark",...eo})),Q.dismiss=et=>{em.size>0?eu.emit(1,et):eg=eg.filter(eo=>null!=et&&eo.options.toastId!==et)},Q.clearWaitingQueue=function(et){return void 0===et&&(et={}),eu.emit(5,et)},Q.isActive=et=>{let eo=!1;return em.forEach(ei=>{ei.isToastActive&&ei.isToastActive(et)&&(eo=!0)}),eo},Q.update=function(et,eo){void 0===eo&&(eo={}),setTimeout(()=>{let ei=function(et,eo){let{containerId:ei}=eo,ea=em.get(ei||ef);return ea&&ea.getToast(et)}(et,eo);if(ei){let{props:ea,content:eu}=ei,ed={delay:100,...ea,...eo,toastId:eo.toastId||et,updateId:z()};ed.toastId!==et&&(ed.staleId=et);let eh=ed.render||eu;delete ed.render,H(eh,ed)}},0)},Q.done=et=>{Q.update(et,{progress:1})},Q.onChange=et=>(eu.on(4,et),()=>{eu.off(4,et)}),Q.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Q.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},eu.on(2,et=>{ef=et.containerId||et,em.set(ef,et),eg.forEach(et=>{eu.emit(0,et.content,et.options)}),eg=[]}).on(3,et=>{em.delete(et.containerId||et),0===em.size&&eu.off(0).off(1).off(5)})},1604:function(et,eo,ei){"use strict";let ea;ei.d(eo,{z:function(){return tp}}),function(et){function assertIs(et){}function assertNever(et){throw Error()}function joinValues(et,eo=" | "){return et.map(et=>"string"==typeof et?`'${et}'`:et).join(eo)}et.assertEqual=et=>et,et.assertIs=assertIs,et.assertNever=assertNever,et.arrayToEnum=et=>{let eo={};for(let ei of et)eo[ei]=ei;return eo},et.getValidEnumValues=eo=>{let ei=et.objectKeys(eo).filter(et=>"number"!=typeof eo[eo[et]]),ea={};for(let et of ei)ea[et]=eo[et];return et.objectValues(ea)},et.objectValues=eo=>et.objectKeys(eo).map(function(et){return eo[et]}),et.objectKeys="function"==typeof Object.keys?et=>Object.keys(et):et=>{let eo=[];for(let ei in et)Object.prototype.hasOwnProperty.call(et,ei)&&eo.push(ei);return eo},et.find=(et,eo)=>{for(let ei of et)if(eo(ei))return ei},et.isInteger="function"==typeof Number.isInteger?et=>Number.isInteger(et):et=>"number"==typeof et&&isFinite(et)&&Math.floor(et)===et,et.joinValues=joinValues,et.jsonStringifyReplacer=(et,eo)=>"bigint"==typeof eo?eo.toString():eo}(ts||(ts={})),function(et){et.mergeShapes=(et,eo)=>({...et,...eo})}(tc||(tc={}));let eu=ts.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=et=>{let eo=typeof et;switch(eo){case"undefined":return eu.undefined;case"string":return eu.string;case"number":return isNaN(et)?eu.nan:eu.number;case"boolean":return eu.boolean;case"function":return eu.function;case"bigint":return eu.bigint;case"symbol":return eu.symbol;case"object":if(Array.isArray(et))return eu.array;if(null===et)return eu.null;if(et.then&&"function"==typeof et.then&&et.catch&&"function"==typeof et.catch)return eu.promise;if("undefined"!=typeof Map&&et instanceof Map)return eu.map;if("undefined"!=typeof Set&&et instanceof Set)return eu.set;if("undefined"!=typeof Date&&et instanceof Date)return eu.date;return eu.object;default:return eu.unknown}},ed=ts.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),quotelessJson=et=>{let eo=JSON.stringify(et,null,2);return eo.replace(/"([^"]+)":/g,"$1:")};let ZodError=class ZodError extends Error{constructor(et){super(),this.issues=[],this.addIssue=et=>{this.issues=[...this.issues,et]},this.addIssues=(et=[])=>{this.issues=[...this.issues,...et]};let eo=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,eo):this.__proto__=eo,this.name="ZodError",this.issues=et}get errors(){return this.issues}format(et){let eo=et||function(et){return et.message},ei={_errors:[]},processError=et=>{for(let ea of et.issues)if("invalid_union"===ea.code)ea.unionErrors.map(processError);else if("invalid_return_type"===ea.code)processError(ea.returnTypeError);else if("invalid_arguments"===ea.code)processError(ea.argumentsError);else if(0===ea.path.length)ei._errors.push(eo(ea));else{let et=ei,eu=0;for(;eu<ea.path.length;){let ei=ea.path[eu],ed=eu===ea.path.length-1;ed?(et[ei]=et[ei]||{_errors:[]},et[ei]._errors.push(eo(ea))):et[ei]=et[ei]||{_errors:[]},et=et[ei],eu++}}};return processError(this),ei}toString(){return this.message}get message(){return JSON.stringify(this.issues,ts.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(et=et=>et.message){let eo={},ei=[];for(let ea of this.issues)ea.path.length>0?(eo[ea.path[0]]=eo[ea.path[0]]||[],eo[ea.path[0]].push(et(ea))):ei.push(et(ea));return{formErrors:ei,fieldErrors:eo}}get formErrors(){return this.flatten()}};ZodError.create=et=>{let eo=new ZodError(et);return eo};let errorMap=(et,eo)=>{let ei;switch(et.code){case ed.invalid_type:ei=et.received===eu.undefined?"Required":`Expected ${et.expected}, received ${et.received}`;break;case ed.invalid_literal:ei=`Invalid literal value, expected ${JSON.stringify(et.expected,ts.jsonStringifyReplacer)}`;break;case ed.unrecognized_keys:ei=`Unrecognized key(s) in object: ${ts.joinValues(et.keys,", ")}`;break;case ed.invalid_union:ei="Invalid input";break;case ed.invalid_union_discriminator:ei=`Invalid discriminator value. Expected ${ts.joinValues(et.options)}`;break;case ed.invalid_enum_value:ei=`Invalid enum value. Expected ${ts.joinValues(et.options)}, received '${et.received}'`;break;case ed.invalid_arguments:ei="Invalid function arguments";break;case ed.invalid_return_type:ei="Invalid function return type";break;case ed.invalid_date:ei="Invalid date";break;case ed.invalid_string:"object"==typeof et.validation?"includes"in et.validation?(ei=`Invalid input: must include "${et.validation.includes}"`,"number"==typeof et.validation.position&&(ei=`${ei} at one or more positions greater than or equal to ${et.validation.position}`)):"startsWith"in et.validation?ei=`Invalid input: must start with "${et.validation.startsWith}"`:"endsWith"in et.validation?ei=`Invalid input: must end with "${et.validation.endsWith}"`:ts.assertNever(et.validation):ei="regex"!==et.validation?`Invalid ${et.validation}`:"Invalid";break;case ed.too_small:ei="array"===et.type?`Array must contain ${et.exact?"exactly":et.inclusive?"at least":"more than"} ${et.minimum} element(s)`:"string"===et.type?`String must contain ${et.exact?"exactly":et.inclusive?"at least":"over"} ${et.minimum} character(s)`:"number"===et.type?`Number must be ${et.exact?"exactly equal to ":et.inclusive?"greater than or equal to ":"greater than "}${et.minimum}`:"date"===et.type?`Date must be ${et.exact?"exactly equal to ":et.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(et.minimum))}`:"Invalid input";break;case ed.too_big:ei="array"===et.type?`Array must contain ${et.exact?"exactly":et.inclusive?"at most":"less than"} ${et.maximum} element(s)`:"string"===et.type?`String must contain ${et.exact?"exactly":et.inclusive?"at most":"under"} ${et.maximum} character(s)`:"number"===et.type?`Number must be ${et.exact?"exactly":et.inclusive?"less than or equal to":"less than"} ${et.maximum}`:"bigint"===et.type?`BigInt must be ${et.exact?"exactly":et.inclusive?"less than or equal to":"less than"} ${et.maximum}`:"date"===et.type?`Date must be ${et.exact?"exactly":et.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(et.maximum))}`:"Invalid input";break;case ed.custom:ei="Invalid input";break;case ed.invalid_intersection_types:ei="Intersection results could not be merged";break;case ed.not_multiple_of:ei=`Number must be a multiple of ${et.multipleOf}`;break;case ed.not_finite:ei="Number must be finite";break;default:ei=eo.defaultError,ts.assertNever(et)}return{message:ei}},eh=errorMap;function setErrorMap(et){eh=et}function getErrorMap(){return eh}let makeIssue=et=>{let{data:eo,path:ei,errorMaps:ea,issueData:eu}=et,ed=[...ei,...eu.path||[]],eh={...eu,path:ed},ep="",ef=ea.filter(et=>!!et).slice().reverse();for(let et of ef)ep=et(eh,{data:eo,defaultError:ep}).message;return{...eu,path:ed,message:eu.message||ep}},ep=[];function addIssueToContext(et,eo){let ei=makeIssue({issueData:eo,data:et.data,path:et.path,errorMaps:[et.common.contextualErrorMap,et.schemaErrorMap,getErrorMap(),errorMap].filter(et=>!!et)});et.common.issues.push(ei)}let ParseStatus=class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(et,eo){let ei=[];for(let ea of eo){if("aborted"===ea.status)return ef;"dirty"===ea.status&&et.dirty(),ei.push(ea.value)}return{status:et.value,value:ei}}static async mergeObjectAsync(et,eo){let ei=[];for(let et of eo)ei.push({key:await et.key,value:await et.value});return ParseStatus.mergeObjectSync(et,ei)}static mergeObjectSync(et,eo){let ei={};for(let ea of eo){let{key:eo,value:eu}=ea;if("aborted"===eo.status||"aborted"===eu.status)return ef;"dirty"===eo.status&&et.dirty(),"dirty"===eu.status&&et.dirty(),"__proto__"!==eo.value&&(void 0!==eu.value||ea.alwaysSet)&&(ei[eo.value]=eu.value)}return{status:et.value,value:ei}}};let ef=Object.freeze({status:"aborted"}),DIRTY=et=>({status:"dirty",value:et}),OK=et=>({status:"valid",value:et}),isAborted=et=>"aborted"===et.status,isDirty=et=>"dirty"===et.status,isValid=et=>"valid"===et.status,isAsync=et=>"undefined"!=typeof Promise&&et instanceof Promise;!function(et){et.errToObj=et=>"string"==typeof et?{message:et}:et||{},et.toString=et=>"string"==typeof et?et:null==et?void 0:et.message}(tu||(tu={}));let ParseInputLazyPath=class ParseInputLazyPath{constructor(et,eo,ei,ea){this._cachedPath=[],this.parent=et,this.data=eo,this._path=ei,this._key=ea}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};let handleResult=(et,eo)=>{if(isValid(eo))return{success:!0,data:eo.value};if(!et.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let eo=new ZodError(et.common.issues);return this._error=eo,this._error}}};function processCreateParams(et){if(!et)return{};let{errorMap:eo,invalid_type_error:ei,required_error:ea,description:eu}=et;if(eo&&(ei||ea))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(eo)return{errorMap:eo,description:eu};let customMap=(et,eo)=>"invalid_type"!==et.code?{message:eo.defaultError}:void 0===eo.data?{message:null!=ea?ea:eo.defaultError}:{message:null!=ei?ei:eo.defaultError};return{errorMap:customMap,description:eu}}let ZodType=class ZodType{constructor(et){this.spa=this.safeParseAsync,this._def=et,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(et){return getParsedType(et.data)}_getOrReturnCtx(et,eo){return eo||{common:et.parent.common,data:et.data,parsedType:getParsedType(et.data),schemaErrorMap:this._def.errorMap,path:et.path,parent:et.parent}}_processInputParams(et){return{status:new ParseStatus,ctx:{common:et.parent.common,data:et.data,parsedType:getParsedType(et.data),schemaErrorMap:this._def.errorMap,path:et.path,parent:et.parent}}}_parseSync(et){let eo=this._parse(et);if(isAsync(eo))throw Error("Synchronous parse encountered promise.");return eo}_parseAsync(et){let eo=this._parse(et);return Promise.resolve(eo)}parse(et,eo){let ei=this.safeParse(et,eo);if(ei.success)return ei.data;throw ei.error}safeParse(et,eo){var ei;let ea={common:{issues:[],async:null!==(ei=null==eo?void 0:eo.async)&&void 0!==ei&&ei,contextualErrorMap:null==eo?void 0:eo.errorMap},path:(null==eo?void 0:eo.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:et,parsedType:getParsedType(et)},eu=this._parseSync({data:et,path:ea.path,parent:ea});return handleResult(ea,eu)}async parseAsync(et,eo){let ei=await this.safeParseAsync(et,eo);if(ei.success)return ei.data;throw ei.error}async safeParseAsync(et,eo){let ei={common:{issues:[],contextualErrorMap:null==eo?void 0:eo.errorMap,async:!0},path:(null==eo?void 0:eo.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:et,parsedType:getParsedType(et)},ea=this._parse({data:et,path:ei.path,parent:ei}),eu=await (isAsync(ea)?ea:Promise.resolve(ea));return handleResult(ei,eu)}refine(et,eo){let getIssueProperties=et=>"string"==typeof eo||void 0===eo?{message:eo}:"function"==typeof eo?eo(et):eo;return this._refinement((eo,ei)=>{let ea=et(eo),setError=()=>ei.addIssue({code:ed.custom,...getIssueProperties(eo)});return"undefined"!=typeof Promise&&ea instanceof Promise?ea.then(et=>!!et||(setError(),!1)):!!ea||(setError(),!1)})}refinement(et,eo){return this._refinement((ei,ea)=>!!et(ei)||(ea.addIssue("function"==typeof eo?eo(ei,ea):eo),!1))}_refinement(et){return new ZodEffects({schema:this,typeName:td.ZodEffects,effect:{type:"refinement",refinement:et}})}superRefine(et){return this._refinement(et)}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this,this._def)}promise(){return ZodPromise.create(this,this._def)}or(et){return ZodUnion.create([this,et],this._def)}and(et){return ZodIntersection.create(this,et,this._def)}transform(et){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:td.ZodEffects,effect:{type:"transform",transform:et}})}default(et){let eo="function"==typeof et?et:()=>et;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:eo,typeName:td.ZodDefault})}brand(){return new ZodBranded({typeName:td.ZodBranded,type:this,...processCreateParams(this._def)})}catch(et){let eo="function"==typeof et?et:()=>et;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:eo,typeName:td.ZodCatch})}describe(et){let eo=this.constructor;return new eo({...this._def,description:et})}pipe(et){return ZodPipeline.create(this,et)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};let em=/^c[^\s-]{8,}$/i,eg=/^[a-z][a-z0-9]*$/,ey=/^[0-9A-HJKMNP-TV-Z]{26}$/,eC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eS=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,e_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",ew=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,eA=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,datetimeRegex=et=>et.precision?et.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${et.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${et.precision}}Z$`):0===et.precision?et.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):et.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function isValidIP(et,eo){return!!(("v4"===eo||!eo)&&ew.test(et)||("v6"===eo||!eo)&&eA.test(et))}let ZodString=class ZodString extends ZodType{_parse(et){let eo;this._def.coerce&&(et.data=String(et.data));let ei=this._getType(et);if(ei!==eu.string){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.string,received:eo.parsedType}),ef}let eh=new ParseStatus;for(let ei of this._def.checks)if("min"===ei.kind)et.data.length<ei.value&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_small,minimum:ei.value,type:"string",inclusive:!0,exact:!1,message:ei.message}),eh.dirty());else if("max"===ei.kind)et.data.length>ei.value&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_big,maximum:ei.value,type:"string",inclusive:!0,exact:!1,message:ei.message}),eh.dirty());else if("length"===ei.kind){let ea=et.data.length>ei.value,eu=et.data.length<ei.value;(ea||eu)&&(eo=this._getOrReturnCtx(et,eo),ea?addIssueToContext(eo,{code:ed.too_big,maximum:ei.value,type:"string",inclusive:!0,exact:!0,message:ei.message}):eu&&addIssueToContext(eo,{code:ed.too_small,minimum:ei.value,type:"string",inclusive:!0,exact:!0,message:ei.message}),eh.dirty())}else if("email"===ei.kind)eS.test(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"email",code:ed.invalid_string,message:ei.message}),eh.dirty());else if("emoji"===ei.kind)ea||(ea=RegExp(e_,"u")),ea.test(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"emoji",code:ed.invalid_string,message:ei.message}),eh.dirty());else if("uuid"===ei.kind)eC.test(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"uuid",code:ed.invalid_string,message:ei.message}),eh.dirty());else if("cuid"===ei.kind)em.test(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"cuid",code:ed.invalid_string,message:ei.message}),eh.dirty());else if("cuid2"===ei.kind)eg.test(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"cuid2",code:ed.invalid_string,message:ei.message}),eh.dirty());else if("ulid"===ei.kind)ey.test(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"ulid",code:ed.invalid_string,message:ei.message}),eh.dirty());else if("url"===ei.kind)try{new URL(et.data)}catch(ea){addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"url",code:ed.invalid_string,message:ei.message}),eh.dirty()}else if("regex"===ei.kind){ei.regex.lastIndex=0;let ea=ei.regex.test(et.data);ea||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"regex",code:ed.invalid_string,message:ei.message}),eh.dirty())}else if("trim"===ei.kind)et.data=et.data.trim();else if("includes"===ei.kind)et.data.includes(ei.value,ei.position)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.invalid_string,validation:{includes:ei.value,position:ei.position},message:ei.message}),eh.dirty());else if("toLowerCase"===ei.kind)et.data=et.data.toLowerCase();else if("toUpperCase"===ei.kind)et.data=et.data.toUpperCase();else if("startsWith"===ei.kind)et.data.startsWith(ei.value)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.invalid_string,validation:{startsWith:ei.value},message:ei.message}),eh.dirty());else if("endsWith"===ei.kind)et.data.endsWith(ei.value)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.invalid_string,validation:{endsWith:ei.value},message:ei.message}),eh.dirty());else if("datetime"===ei.kind){let ea=datetimeRegex(ei);ea.test(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.invalid_string,validation:"datetime",message:ei.message}),eh.dirty())}else"ip"===ei.kind?isValidIP(et.data,ei.version)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{validation:"ip",code:ed.invalid_string,message:ei.message}),eh.dirty()):ts.assertNever(ei);return{status:eh.value,value:et.data}}_regex(et,eo,ei){return this.refinement(eo=>et.test(eo),{validation:eo,code:ed.invalid_string,...tu.errToObj(ei)})}_addCheck(et){return new ZodString({...this._def,checks:[...this._def.checks,et]})}email(et){return this._addCheck({kind:"email",...tu.errToObj(et)})}url(et){return this._addCheck({kind:"url",...tu.errToObj(et)})}emoji(et){return this._addCheck({kind:"emoji",...tu.errToObj(et)})}uuid(et){return this._addCheck({kind:"uuid",...tu.errToObj(et)})}cuid(et){return this._addCheck({kind:"cuid",...tu.errToObj(et)})}cuid2(et){return this._addCheck({kind:"cuid2",...tu.errToObj(et)})}ulid(et){return this._addCheck({kind:"ulid",...tu.errToObj(et)})}ip(et){return this._addCheck({kind:"ip",...tu.errToObj(et)})}datetime(et){var eo;return"string"==typeof et?this._addCheck({kind:"datetime",precision:null,offset:!1,message:et}):this._addCheck({kind:"datetime",precision:void 0===(null==et?void 0:et.precision)?null:null==et?void 0:et.precision,offset:null!==(eo=null==et?void 0:et.offset)&&void 0!==eo&&eo,...tu.errToObj(null==et?void 0:et.message)})}regex(et,eo){return this._addCheck({kind:"regex",regex:et,...tu.errToObj(eo)})}includes(et,eo){return this._addCheck({kind:"includes",value:et,position:null==eo?void 0:eo.position,...tu.errToObj(null==eo?void 0:eo.message)})}startsWith(et,eo){return this._addCheck({kind:"startsWith",value:et,...tu.errToObj(eo)})}endsWith(et,eo){return this._addCheck({kind:"endsWith",value:et,...tu.errToObj(eo)})}min(et,eo){return this._addCheck({kind:"min",value:et,...tu.errToObj(eo)})}max(et,eo){return this._addCheck({kind:"max",value:et,...tu.errToObj(eo)})}length(et,eo){return this._addCheck({kind:"length",value:et,...tu.errToObj(eo)})}nonempty(et){return this.min(1,tu.errToObj(et))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(et=>"datetime"===et.kind)}get isEmail(){return!!this._def.checks.find(et=>"email"===et.kind)}get isURL(){return!!this._def.checks.find(et=>"url"===et.kind)}get isEmoji(){return!!this._def.checks.find(et=>"emoji"===et.kind)}get isUUID(){return!!this._def.checks.find(et=>"uuid"===et.kind)}get isCUID(){return!!this._def.checks.find(et=>"cuid"===et.kind)}get isCUID2(){return!!this._def.checks.find(et=>"cuid2"===et.kind)}get isULID(){return!!this._def.checks.find(et=>"ulid"===et.kind)}get isIP(){return!!this._def.checks.find(et=>"ip"===et.kind)}get minLength(){let et=null;for(let eo of this._def.checks)"min"===eo.kind&&(null===et||eo.value>et)&&(et=eo.value);return et}get maxLength(){let et=null;for(let eo of this._def.checks)"max"===eo.kind&&(null===et||eo.value<et)&&(et=eo.value);return et}};function floatSafeRemainder(et,eo){let ei=(et.toString().split(".")[1]||"").length,ea=(eo.toString().split(".")[1]||"").length,eu=ei>ea?ei:ea,ed=parseInt(et.toFixed(eu).replace(".","")),eh=parseInt(eo.toFixed(eu).replace(".",""));return ed%eh/Math.pow(10,eu)}ZodString.create=et=>{var eo;return new ZodString({checks:[],typeName:td.ZodString,coerce:null!==(eo=null==et?void 0:et.coerce)&&void 0!==eo&&eo,...processCreateParams(et)})};let ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(et){let eo;this._def.coerce&&(et.data=Number(et.data));let ei=this._getType(et);if(ei!==eu.number){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.number,received:eo.parsedType}),ef}let ea=new ParseStatus;for(let ei of this._def.checks)if("int"===ei.kind)ts.isInteger(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.invalid_type,expected:"integer",received:"float",message:ei.message}),ea.dirty());else if("min"===ei.kind){let eu=ei.inclusive?et.data<ei.value:et.data<=ei.value;eu&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_small,minimum:ei.value,type:"number",inclusive:ei.inclusive,exact:!1,message:ei.message}),ea.dirty())}else if("max"===ei.kind){let eu=ei.inclusive?et.data>ei.value:et.data>=ei.value;eu&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_big,maximum:ei.value,type:"number",inclusive:ei.inclusive,exact:!1,message:ei.message}),ea.dirty())}else"multipleOf"===ei.kind?0!==floatSafeRemainder(et.data,ei.value)&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.not_multiple_of,multipleOf:ei.value,message:ei.message}),ea.dirty()):"finite"===ei.kind?Number.isFinite(et.data)||(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.not_finite,message:ei.message}),ea.dirty()):ts.assertNever(ei);return{status:ea.value,value:et.data}}gte(et,eo){return this.setLimit("min",et,!0,tu.toString(eo))}gt(et,eo){return this.setLimit("min",et,!1,tu.toString(eo))}lte(et,eo){return this.setLimit("max",et,!0,tu.toString(eo))}lt(et,eo){return this.setLimit("max",et,!1,tu.toString(eo))}setLimit(et,eo,ei,ea){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:et,value:eo,inclusive:ei,message:tu.toString(ea)}]})}_addCheck(et){return new ZodNumber({...this._def,checks:[...this._def.checks,et]})}int(et){return this._addCheck({kind:"int",message:tu.toString(et)})}positive(et){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tu.toString(et)})}negative(et){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tu.toString(et)})}nonpositive(et){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tu.toString(et)})}nonnegative(et){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tu.toString(et)})}multipleOf(et,eo){return this._addCheck({kind:"multipleOf",value:et,message:tu.toString(eo)})}finite(et){return this._addCheck({kind:"finite",message:tu.toString(et)})}safe(et){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tu.toString(et)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tu.toString(et)})}get minValue(){let et=null;for(let eo of this._def.checks)"min"===eo.kind&&(null===et||eo.value>et)&&(et=eo.value);return et}get maxValue(){let et=null;for(let eo of this._def.checks)"max"===eo.kind&&(null===et||eo.value<et)&&(et=eo.value);return et}get isInt(){return!!this._def.checks.find(et=>"int"===et.kind||"multipleOf"===et.kind&&ts.isInteger(et.value))}get isFinite(){let et=null,eo=null;for(let ei of this._def.checks){if("finite"===ei.kind||"int"===ei.kind||"multipleOf"===ei.kind)return!0;"min"===ei.kind?(null===eo||ei.value>eo)&&(eo=ei.value):"max"===ei.kind&&(null===et||ei.value<et)&&(et=ei.value)}return Number.isFinite(eo)&&Number.isFinite(et)}};ZodNumber.create=et=>new ZodNumber({checks:[],typeName:td.ZodNumber,coerce:(null==et?void 0:et.coerce)||!1,...processCreateParams(et)});let ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(et){let eo;this._def.coerce&&(et.data=BigInt(et.data));let ei=this._getType(et);if(ei!==eu.bigint){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.bigint,received:eo.parsedType}),ef}let ea=new ParseStatus;for(let ei of this._def.checks)if("min"===ei.kind){let eu=ei.inclusive?et.data<ei.value:et.data<=ei.value;eu&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_small,type:"bigint",minimum:ei.value,inclusive:ei.inclusive,message:ei.message}),ea.dirty())}else if("max"===ei.kind){let eu=ei.inclusive?et.data>ei.value:et.data>=ei.value;eu&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_big,type:"bigint",maximum:ei.value,inclusive:ei.inclusive,message:ei.message}),ea.dirty())}else"multipleOf"===ei.kind?et.data%ei.value!==BigInt(0)&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.not_multiple_of,multipleOf:ei.value,message:ei.message}),ea.dirty()):ts.assertNever(ei);return{status:ea.value,value:et.data}}gte(et,eo){return this.setLimit("min",et,!0,tu.toString(eo))}gt(et,eo){return this.setLimit("min",et,!1,tu.toString(eo))}lte(et,eo){return this.setLimit("max",et,!0,tu.toString(eo))}lt(et,eo){return this.setLimit("max",et,!1,tu.toString(eo))}setLimit(et,eo,ei,ea){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:et,value:eo,inclusive:ei,message:tu.toString(ea)}]})}_addCheck(et){return new ZodBigInt({...this._def,checks:[...this._def.checks,et]})}positive(et){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tu.toString(et)})}negative(et){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tu.toString(et)})}nonpositive(et){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tu.toString(et)})}nonnegative(et){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tu.toString(et)})}multipleOf(et,eo){return this._addCheck({kind:"multipleOf",value:et,message:tu.toString(eo)})}get minValue(){let et=null;for(let eo of this._def.checks)"min"===eo.kind&&(null===et||eo.value>et)&&(et=eo.value);return et}get maxValue(){let et=null;for(let eo of this._def.checks)"max"===eo.kind&&(null===et||eo.value<et)&&(et=eo.value);return et}};ZodBigInt.create=et=>{var eo;return new ZodBigInt({checks:[],typeName:td.ZodBigInt,coerce:null!==(eo=null==et?void 0:et.coerce)&&void 0!==eo&&eo,...processCreateParams(et)})};let ZodBoolean=class ZodBoolean extends ZodType{_parse(et){this._def.coerce&&(et.data=!!et.data);let eo=this._getType(et);if(eo!==eu.boolean){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.boolean,received:eo.parsedType}),ef}return OK(et.data)}};ZodBoolean.create=et=>new ZodBoolean({typeName:td.ZodBoolean,coerce:(null==et?void 0:et.coerce)||!1,...processCreateParams(et)});let ZodDate=class ZodDate extends ZodType{_parse(et){let eo;this._def.coerce&&(et.data=new Date(et.data));let ei=this._getType(et);if(ei!==eu.date){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.date,received:eo.parsedType}),ef}if(isNaN(et.data.getTime())){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_date}),ef}let ea=new ParseStatus;for(let ei of this._def.checks)"min"===ei.kind?et.data.getTime()<ei.value&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_small,message:ei.message,inclusive:!0,exact:!1,minimum:ei.value,type:"date"}),ea.dirty()):"max"===ei.kind?et.data.getTime()>ei.value&&(addIssueToContext(eo=this._getOrReturnCtx(et,eo),{code:ed.too_big,message:ei.message,inclusive:!0,exact:!1,maximum:ei.value,type:"date"}),ea.dirty()):ts.assertNever(ei);return{status:ea.value,value:new Date(et.data.getTime())}}_addCheck(et){return new ZodDate({...this._def,checks:[...this._def.checks,et]})}min(et,eo){return this._addCheck({kind:"min",value:et.getTime(),message:tu.toString(eo)})}max(et,eo){return this._addCheck({kind:"max",value:et.getTime(),message:tu.toString(eo)})}get minDate(){let et=null;for(let eo of this._def.checks)"min"===eo.kind&&(null===et||eo.value>et)&&(et=eo.value);return null!=et?new Date(et):null}get maxDate(){let et=null;for(let eo of this._def.checks)"max"===eo.kind&&(null===et||eo.value<et)&&(et=eo.value);return null!=et?new Date(et):null}};ZodDate.create=et=>new ZodDate({checks:[],coerce:(null==et?void 0:et.coerce)||!1,typeName:td.ZodDate,...processCreateParams(et)});let ZodSymbol=class ZodSymbol extends ZodType{_parse(et){let eo=this._getType(et);if(eo!==eu.symbol){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.symbol,received:eo.parsedType}),ef}return OK(et.data)}};ZodSymbol.create=et=>new ZodSymbol({typeName:td.ZodSymbol,...processCreateParams(et)});let ZodUndefined=class ZodUndefined extends ZodType{_parse(et){let eo=this._getType(et);if(eo!==eu.undefined){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.undefined,received:eo.parsedType}),ef}return OK(et.data)}};ZodUndefined.create=et=>new ZodUndefined({typeName:td.ZodUndefined,...processCreateParams(et)});let ZodNull=class ZodNull extends ZodType{_parse(et){let eo=this._getType(et);if(eo!==eu.null){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.null,received:eo.parsedType}),ef}return OK(et.data)}};ZodNull.create=et=>new ZodNull({typeName:td.ZodNull,...processCreateParams(et)});let ZodAny=class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(et){return OK(et.data)}};ZodAny.create=et=>new ZodAny({typeName:td.ZodAny,...processCreateParams(et)});let ZodUnknown=class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(et){return OK(et.data)}};ZodUnknown.create=et=>new ZodUnknown({typeName:td.ZodUnknown,...processCreateParams(et)});let ZodNever=class ZodNever extends ZodType{_parse(et){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.never,received:eo.parsedType}),ef}};ZodNever.create=et=>new ZodNever({typeName:td.ZodNever,...processCreateParams(et)});let ZodVoid=class ZodVoid extends ZodType{_parse(et){let eo=this._getType(et);if(eo!==eu.undefined){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.void,received:eo.parsedType}),ef}return OK(et.data)}};ZodVoid.create=et=>new ZodVoid({typeName:td.ZodVoid,...processCreateParams(et)});let ZodArray=class ZodArray extends ZodType{_parse(et){let{ctx:eo,status:ei}=this._processInputParams(et),ea=this._def;if(eo.parsedType!==eu.array)return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.array,received:eo.parsedType}),ef;if(null!==ea.exactLength){let et=eo.data.length>ea.exactLength.value,eu=eo.data.length<ea.exactLength.value;(et||eu)&&(addIssueToContext(eo,{code:et?ed.too_big:ed.too_small,minimum:eu?ea.exactLength.value:void 0,maximum:et?ea.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:ea.exactLength.message}),ei.dirty())}if(null!==ea.minLength&&eo.data.length<ea.minLength.value&&(addIssueToContext(eo,{code:ed.too_small,minimum:ea.minLength.value,type:"array",inclusive:!0,exact:!1,message:ea.minLength.message}),ei.dirty()),null!==ea.maxLength&&eo.data.length>ea.maxLength.value&&(addIssueToContext(eo,{code:ed.too_big,maximum:ea.maxLength.value,type:"array",inclusive:!0,exact:!1,message:ea.maxLength.message}),ei.dirty()),eo.common.async)return Promise.all([...eo.data].map((et,ei)=>ea.type._parseAsync(new ParseInputLazyPath(eo,et,eo.path,ei)))).then(et=>ParseStatus.mergeArray(ei,et));let eh=[...eo.data].map((et,ei)=>ea.type._parseSync(new ParseInputLazyPath(eo,et,eo.path,ei)));return ParseStatus.mergeArray(ei,eh)}get element(){return this._def.type}min(et,eo){return new ZodArray({...this._def,minLength:{value:et,message:tu.toString(eo)}})}max(et,eo){return new ZodArray({...this._def,maxLength:{value:et,message:tu.toString(eo)}})}length(et,eo){return new ZodArray({...this._def,exactLength:{value:et,message:tu.toString(eo)}})}nonempty(et){return this.min(1,et)}};function deepPartialify(et){if(et instanceof ZodObject){let eo={};for(let ei in et.shape){let ea=et.shape[ei];eo[ei]=ZodOptional.create(deepPartialify(ea))}return new ZodObject({...et._def,shape:()=>eo})}return et instanceof ZodArray?new ZodArray({...et._def,type:deepPartialify(et.element)}):et instanceof ZodOptional?ZodOptional.create(deepPartialify(et.unwrap())):et instanceof ZodNullable?ZodNullable.create(deepPartialify(et.unwrap())):et instanceof ZodTuple?ZodTuple.create(et.items.map(et=>deepPartialify(et))):et}ZodArray.create=(et,eo)=>new ZodArray({type:et,minLength:null,maxLength:null,exactLength:null,typeName:td.ZodArray,...processCreateParams(eo)});let ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let et=this._def.shape(),eo=ts.objectKeys(et);return this._cached={shape:et,keys:eo}}_parse(et){let eo=this._getType(et);if(eo!==eu.object){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.object,received:eo.parsedType}),ef}let{status:ei,ctx:ea}=this._processInputParams(et),{shape:eh,keys:ep}=this._getCached(),em=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(let et in ea.data)ep.includes(et)||em.push(et);let eg=[];for(let et of ep){let eo=eh[et],ei=ea.data[et];eg.push({key:{status:"valid",value:et},value:eo._parse(new ParseInputLazyPath(ea,ei,ea.path,et)),alwaysSet:et in ea.data})}if(this._def.catchall instanceof ZodNever){let et=this._def.unknownKeys;if("passthrough"===et)for(let et of em)eg.push({key:{status:"valid",value:et},value:{status:"valid",value:ea.data[et]}});else if("strict"===et)em.length>0&&(addIssueToContext(ea,{code:ed.unrecognized_keys,keys:em}),ei.dirty());else if("strip"===et);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let et=this._def.catchall;for(let eo of em){let ei=ea.data[eo];eg.push({key:{status:"valid",value:eo},value:et._parse(new ParseInputLazyPath(ea,ei,ea.path,eo)),alwaysSet:eo in ea.data})}}return ea.common.async?Promise.resolve().then(async()=>{let et=[];for(let eo of eg){let ei=await eo.key;et.push({key:ei,value:await eo.value,alwaysSet:eo.alwaysSet})}return et}).then(et=>ParseStatus.mergeObjectSync(ei,et)):ParseStatus.mergeObjectSync(ei,eg)}get shape(){return this._def.shape()}strict(et){return tu.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==et?{errorMap:(eo,ei)=>{var ea,eu,ed,eh;let ep=null!==(ed=null===(eu=(ea=this._def).errorMap)||void 0===eu?void 0:eu.call(ea,eo,ei).message)&&void 0!==ed?ed:ei.defaultError;return"unrecognized_keys"===eo.code?{message:null!==(eh=tu.errToObj(et).message)&&void 0!==eh?eh:ep}:{message:ep}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(et){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...et})})}merge(et){let eo=new ZodObject({unknownKeys:et._def.unknownKeys,catchall:et._def.catchall,shape:()=>({...this._def.shape(),...et._def.shape()}),typeName:td.ZodObject});return eo}setKey(et,eo){return this.augment({[et]:eo})}catchall(et){return new ZodObject({...this._def,catchall:et})}pick(et){let eo={};return ts.objectKeys(et).forEach(ei=>{et[ei]&&this.shape[ei]&&(eo[ei]=this.shape[ei])}),new ZodObject({...this._def,shape:()=>eo})}omit(et){let eo={};return ts.objectKeys(this.shape).forEach(ei=>{et[ei]||(eo[ei]=this.shape[ei])}),new ZodObject({...this._def,shape:()=>eo})}deepPartial(){return deepPartialify(this)}partial(et){let eo={};return ts.objectKeys(this.shape).forEach(ei=>{let ea=this.shape[ei];et&&!et[ei]?eo[ei]=ea:eo[ei]=ea.optional()}),new ZodObject({...this._def,shape:()=>eo})}required(et){let eo={};return ts.objectKeys(this.shape).forEach(ei=>{if(et&&!et[ei])eo[ei]=this.shape[ei];else{let et=this.shape[ei],ea=et;for(;ea instanceof ZodOptional;)ea=ea._def.innerType;eo[ei]=ea}}),new ZodObject({...this._def,shape:()=>eo})}keyof(){return createZodEnum(ts.objectKeys(this.shape))}};ZodObject.create=(et,eo)=>new ZodObject({shape:()=>et,unknownKeys:"strip",catchall:ZodNever.create(),typeName:td.ZodObject,...processCreateParams(eo)}),ZodObject.strictCreate=(et,eo)=>new ZodObject({shape:()=>et,unknownKeys:"strict",catchall:ZodNever.create(),typeName:td.ZodObject,...processCreateParams(eo)}),ZodObject.lazycreate=(et,eo)=>new ZodObject({shape:et,unknownKeys:"strip",catchall:ZodNever.create(),typeName:td.ZodObject,...processCreateParams(eo)});let ZodUnion=class ZodUnion extends ZodType{_parse(et){let{ctx:eo}=this._processInputParams(et),ei=this._def.options;function handleResults(et){for(let eo of et)if("valid"===eo.result.status)return eo.result;for(let ei of et)if("dirty"===ei.result.status)return eo.common.issues.push(...ei.ctx.common.issues),ei.result;let ei=et.map(et=>new ZodError(et.ctx.common.issues));return addIssueToContext(eo,{code:ed.invalid_union,unionErrors:ei}),ef}if(eo.common.async)return Promise.all(ei.map(async et=>{let ei={...eo,common:{...eo.common,issues:[]},parent:null};return{result:await et._parseAsync({data:eo.data,path:eo.path,parent:ei}),ctx:ei}})).then(handleResults);{let et;let ea=[];for(let eu of ei){let ei={...eo,common:{...eo.common,issues:[]},parent:null},ed=eu._parseSync({data:eo.data,path:eo.path,parent:ei});if("valid"===ed.status)return ed;"dirty"!==ed.status||et||(et={result:ed,ctx:ei}),ei.common.issues.length&&ea.push(ei.common.issues)}if(et)return eo.common.issues.push(...et.ctx.common.issues),et.result;let eu=ea.map(et=>new ZodError(et));return addIssueToContext(eo,{code:ed.invalid_union,unionErrors:eu}),ef}}get options(){return this._def.options}};ZodUnion.create=(et,eo)=>new ZodUnion({options:et,typeName:td.ZodUnion,...processCreateParams(eo)});let getDiscriminator=et=>{if(et instanceof ZodLazy)return getDiscriminator(et.schema);if(et instanceof ZodEffects)return getDiscriminator(et.innerType());if(et instanceof ZodLiteral)return[et.value];if(et instanceof ZodEnum)return et.options;if(et instanceof ZodNativeEnum)return Object.keys(et.enum);if(et instanceof ZodDefault)return getDiscriminator(et._def.innerType);if(et instanceof ZodUndefined)return[void 0];else if(et instanceof ZodNull)return[null];else return null};let ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(et){let{ctx:eo}=this._processInputParams(et);if(eo.parsedType!==eu.object)return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.object,received:eo.parsedType}),ef;let ei=this.discriminator,ea=eo.data[ei],eh=this.optionsMap.get(ea);return eh?eo.common.async?eh._parseAsync({data:eo.data,path:eo.path,parent:eo}):eh._parseSync({data:eo.data,path:eo.path,parent:eo}):(addIssueToContext(eo,{code:ed.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[ei]}),ef)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(et,eo,ei){let ea=new Map;for(let ei of eo){let eo=getDiscriminator(ei.shape[et]);if(!eo)throw Error(`A discriminator value for key \`${et}\` could not be extracted from all schema options`);for(let eu of eo){if(ea.has(eu))throw Error(`Discriminator property ${String(et)} has duplicate value ${String(eu)}`);ea.set(eu,ei)}}return new ZodDiscriminatedUnion({typeName:td.ZodDiscriminatedUnion,discriminator:et,options:eo,optionsMap:ea,...processCreateParams(ei)})}};function mergeValues(et,eo){let ei=getParsedType(et),ea=getParsedType(eo);if(et===eo)return{valid:!0,data:et};if(ei===eu.object&&ea===eu.object){let ei=ts.objectKeys(eo),ea=ts.objectKeys(et).filter(et=>-1!==ei.indexOf(et)),eu={...et,...eo};for(let ei of ea){let ea=mergeValues(et[ei],eo[ei]);if(!ea.valid)return{valid:!1};eu[ei]=ea.data}return{valid:!0,data:eu}}if(ei===eu.array&&ea===eu.array){if(et.length!==eo.length)return{valid:!1};let ei=[];for(let ea=0;ea<et.length;ea++){let eu=et[ea],ed=eo[ea],eh=mergeValues(eu,ed);if(!eh.valid)return{valid:!1};ei.push(eh.data)}return{valid:!0,data:ei}}return ei===eu.date&&ea===eu.date&&+et==+eo?{valid:!0,data:et}:{valid:!1}}let ZodIntersection=class ZodIntersection extends ZodType{_parse(et){let{status:eo,ctx:ei}=this._processInputParams(et),handleParsed=(et,ea)=>{if(isAborted(et)||isAborted(ea))return ef;let eu=mergeValues(et.value,ea.value);return eu.valid?((isDirty(et)||isDirty(ea))&&eo.dirty(),{status:eo.value,value:eu.data}):(addIssueToContext(ei,{code:ed.invalid_intersection_types}),ef)};return ei.common.async?Promise.all([this._def.left._parseAsync({data:ei.data,path:ei.path,parent:ei}),this._def.right._parseAsync({data:ei.data,path:ei.path,parent:ei})]).then(([et,eo])=>handleParsed(et,eo)):handleParsed(this._def.left._parseSync({data:ei.data,path:ei.path,parent:ei}),this._def.right._parseSync({data:ei.data,path:ei.path,parent:ei}))}};ZodIntersection.create=(et,eo,ei)=>new ZodIntersection({left:et,right:eo,typeName:td.ZodIntersection,...processCreateParams(ei)});let ZodTuple=class ZodTuple extends ZodType{_parse(et){let{status:eo,ctx:ei}=this._processInputParams(et);if(ei.parsedType!==eu.array)return addIssueToContext(ei,{code:ed.invalid_type,expected:eu.array,received:ei.parsedType}),ef;if(ei.data.length<this._def.items.length)return addIssueToContext(ei,{code:ed.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ef;let ea=this._def.rest;!ea&&ei.data.length>this._def.items.length&&(addIssueToContext(ei,{code:ed.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),eo.dirty());let eh=[...ei.data].map((et,eo)=>{let ea=this._def.items[eo]||this._def.rest;return ea?ea._parse(new ParseInputLazyPath(ei,et,ei.path,eo)):null}).filter(et=>!!et);return ei.common.async?Promise.all(eh).then(et=>ParseStatus.mergeArray(eo,et)):ParseStatus.mergeArray(eo,eh)}get items(){return this._def.items}rest(et){return new ZodTuple({...this._def,rest:et})}};ZodTuple.create=(et,eo)=>{if(!Array.isArray(et))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:et,typeName:td.ZodTuple,rest:null,...processCreateParams(eo)})};let ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(et){let{status:eo,ctx:ei}=this._processInputParams(et);if(ei.parsedType!==eu.object)return addIssueToContext(ei,{code:ed.invalid_type,expected:eu.object,received:ei.parsedType}),ef;let ea=[],eh=this._def.keyType,ep=this._def.valueType;for(let et in ei.data)ea.push({key:eh._parse(new ParseInputLazyPath(ei,et,ei.path,et)),value:ep._parse(new ParseInputLazyPath(ei,ei.data[et],ei.path,et))});return ei.common.async?ParseStatus.mergeObjectAsync(eo,ea):ParseStatus.mergeObjectSync(eo,ea)}get element(){return this._def.valueType}static create(et,eo,ei){return new ZodRecord(eo instanceof ZodType?{keyType:et,valueType:eo,typeName:td.ZodRecord,...processCreateParams(ei)}:{keyType:ZodString.create(),valueType:et,typeName:td.ZodRecord,...processCreateParams(eo)})}};let ZodMap=class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(et){let{status:eo,ctx:ei}=this._processInputParams(et);if(ei.parsedType!==eu.map)return addIssueToContext(ei,{code:ed.invalid_type,expected:eu.map,received:ei.parsedType}),ef;let ea=this._def.keyType,eh=this._def.valueType,ep=[...ei.data.entries()].map(([et,eo],eu)=>({key:ea._parse(new ParseInputLazyPath(ei,et,ei.path,[eu,"key"])),value:eh._parse(new ParseInputLazyPath(ei,eo,ei.path,[eu,"value"]))}));if(ei.common.async){let et=new Map;return Promise.resolve().then(async()=>{for(let ei of ep){let ea=await ei.key,eu=await ei.value;if("aborted"===ea.status||"aborted"===eu.status)return ef;("dirty"===ea.status||"dirty"===eu.status)&&eo.dirty(),et.set(ea.value,eu.value)}return{status:eo.value,value:et}})}{let et=new Map;for(let ei of ep){let ea=ei.key,eu=ei.value;if("aborted"===ea.status||"aborted"===eu.status)return ef;("dirty"===ea.status||"dirty"===eu.status)&&eo.dirty(),et.set(ea.value,eu.value)}return{status:eo.value,value:et}}}};ZodMap.create=(et,eo,ei)=>new ZodMap({valueType:eo,keyType:et,typeName:td.ZodMap,...processCreateParams(ei)});let ZodSet=class ZodSet extends ZodType{_parse(et){let{status:eo,ctx:ei}=this._processInputParams(et);if(ei.parsedType!==eu.set)return addIssueToContext(ei,{code:ed.invalid_type,expected:eu.set,received:ei.parsedType}),ef;let ea=this._def;null!==ea.minSize&&ei.data.size<ea.minSize.value&&(addIssueToContext(ei,{code:ed.too_small,minimum:ea.minSize.value,type:"set",inclusive:!0,exact:!1,message:ea.minSize.message}),eo.dirty()),null!==ea.maxSize&&ei.data.size>ea.maxSize.value&&(addIssueToContext(ei,{code:ed.too_big,maximum:ea.maxSize.value,type:"set",inclusive:!0,exact:!1,message:ea.maxSize.message}),eo.dirty());let eh=this._def.valueType;function finalizeSet(et){let ei=new Set;for(let ea of et){if("aborted"===ea.status)return ef;"dirty"===ea.status&&eo.dirty(),ei.add(ea.value)}return{status:eo.value,value:ei}}let ep=[...ei.data.values()].map((et,eo)=>eh._parse(new ParseInputLazyPath(ei,et,ei.path,eo)));return ei.common.async?Promise.all(ep).then(et=>finalizeSet(et)):finalizeSet(ep)}min(et,eo){return new ZodSet({...this._def,minSize:{value:et,message:tu.toString(eo)}})}max(et,eo){return new ZodSet({...this._def,maxSize:{value:et,message:tu.toString(eo)}})}size(et,eo){return this.min(et,eo).max(et,eo)}nonempty(et){return this.min(1,et)}};ZodSet.create=(et,eo)=>new ZodSet({valueType:et,minSize:null,maxSize:null,typeName:td.ZodSet,...processCreateParams(eo)});let ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(et){let{ctx:eo}=this._processInputParams(et);if(eo.parsedType!==eu.function)return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.function,received:eo.parsedType}),ef;function makeArgsIssue(et,ei){return makeIssue({data:et,path:eo.path,errorMaps:[eo.common.contextualErrorMap,eo.schemaErrorMap,getErrorMap(),errorMap].filter(et=>!!et),issueData:{code:ed.invalid_arguments,argumentsError:ei}})}function makeReturnsIssue(et,ei){return makeIssue({data:et,path:eo.path,errorMaps:[eo.common.contextualErrorMap,eo.schemaErrorMap,getErrorMap(),errorMap].filter(et=>!!et),issueData:{code:ed.invalid_return_type,returnTypeError:ei}})}let ei={errorMap:eo.common.contextualErrorMap},ea=eo.data;if(this._def.returns instanceof ZodPromise){let et=this;return OK(async function(...eo){let eu=new ZodError([]),ed=await et._def.args.parseAsync(eo,ei).catch(et=>{throw eu.addIssue(makeArgsIssue(eo,et)),eu}),eh=await Reflect.apply(ea,this,ed),ep=await et._def.returns._def.type.parseAsync(eh,ei).catch(et=>{throw eu.addIssue(makeReturnsIssue(eh,et)),eu});return ep})}{let et=this;return OK(function(...eo){let eu=et._def.args.safeParse(eo,ei);if(!eu.success)throw new ZodError([makeArgsIssue(eo,eu.error)]);let ed=Reflect.apply(ea,this,eu.data),eh=et._def.returns.safeParse(ed,ei);if(!eh.success)throw new ZodError([makeReturnsIssue(ed,eh.error)]);return eh.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...et){return new ZodFunction({...this._def,args:ZodTuple.create(et).rest(ZodUnknown.create())})}returns(et){return new ZodFunction({...this._def,returns:et})}implement(et){let eo=this.parse(et);return eo}strictImplement(et){let eo=this.parse(et);return eo}static create(et,eo,ei){return new ZodFunction({args:et||ZodTuple.create([]).rest(ZodUnknown.create()),returns:eo||ZodUnknown.create(),typeName:td.ZodFunction,...processCreateParams(ei)})}};let ZodLazy=class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(et){let{ctx:eo}=this._processInputParams(et),ei=this._def.getter();return ei._parse({data:eo.data,path:eo.path,parent:eo})}};ZodLazy.create=(et,eo)=>new ZodLazy({getter:et,typeName:td.ZodLazy,...processCreateParams(eo)});let ZodLiteral=class ZodLiteral extends ZodType{_parse(et){if(et.data!==this._def.value){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{received:eo.data,code:ed.invalid_literal,expected:this._def.value}),ef}return{status:"valid",value:et.data}}get value(){return this._def.value}};function createZodEnum(et,eo){return new ZodEnum({values:et,typeName:td.ZodEnum,...processCreateParams(eo)})}ZodLiteral.create=(et,eo)=>new ZodLiteral({value:et,typeName:td.ZodLiteral,...processCreateParams(eo)});let ZodEnum=class ZodEnum extends ZodType{_parse(et){if("string"!=typeof et.data){let eo=this._getOrReturnCtx(et),ei=this._def.values;return addIssueToContext(eo,{expected:ts.joinValues(ei),received:eo.parsedType,code:ed.invalid_type}),ef}if(-1===this._def.values.indexOf(et.data)){let eo=this._getOrReturnCtx(et),ei=this._def.values;return addIssueToContext(eo,{received:eo.data,code:ed.invalid_enum_value,options:ei}),ef}return OK(et.data)}get options(){return this._def.values}get enum(){let et={};for(let eo of this._def.values)et[eo]=eo;return et}get Values(){let et={};for(let eo of this._def.values)et[eo]=eo;return et}get Enum(){let et={};for(let eo of this._def.values)et[eo]=eo;return et}extract(et){return ZodEnum.create(et)}exclude(et){return ZodEnum.create(this.options.filter(eo=>!et.includes(eo)))}};ZodEnum.create=createZodEnum;let ZodNativeEnum=class ZodNativeEnum extends ZodType{_parse(et){let eo=ts.getValidEnumValues(this._def.values),ei=this._getOrReturnCtx(et);if(ei.parsedType!==eu.string&&ei.parsedType!==eu.number){let et=ts.objectValues(eo);return addIssueToContext(ei,{expected:ts.joinValues(et),received:ei.parsedType,code:ed.invalid_type}),ef}if(-1===eo.indexOf(et.data)){let et=ts.objectValues(eo);return addIssueToContext(ei,{received:ei.data,code:ed.invalid_enum_value,options:et}),ef}return OK(et.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(et,eo)=>new ZodNativeEnum({values:et,typeName:td.ZodNativeEnum,...processCreateParams(eo)});let ZodPromise=class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(et){let{ctx:eo}=this._processInputParams(et);if(eo.parsedType!==eu.promise&&!1===eo.common.async)return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.promise,received:eo.parsedType}),ef;let ei=eo.parsedType===eu.promise?eo.data:Promise.resolve(eo.data);return OK(ei.then(et=>this._def.type.parseAsync(et,{path:eo.path,errorMap:eo.common.contextualErrorMap})))}};ZodPromise.create=(et,eo)=>new ZodPromise({type:et,typeName:td.ZodPromise,...processCreateParams(eo)});let ZodEffects=class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===td.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(et){let{status:eo,ctx:ei}=this._processInputParams(et),ea=this._def.effect||null,eu={addIssue:et=>{addIssueToContext(ei,et),et.fatal?eo.abort():eo.dirty()},get path(){return ei.path}};if(eu.addIssue=eu.addIssue.bind(eu),"preprocess"===ea.type){let et=ea.transform(ei.data,eu);return ei.common.issues.length?{status:"dirty",value:ei.data}:ei.common.async?Promise.resolve(et).then(et=>this._def.schema._parseAsync({data:et,path:ei.path,parent:ei})):this._def.schema._parseSync({data:et,path:ei.path,parent:ei})}if("refinement"===ea.type){let executeRefinement=et=>{let eo=ea.refinement(et,eu);if(ei.common.async)return Promise.resolve(eo);if(eo instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return et};if(!1!==ei.common.async)return this._def.schema._parseAsync({data:ei.data,path:ei.path,parent:ei}).then(et=>"aborted"===et.status?ef:("dirty"===et.status&&eo.dirty(),executeRefinement(et.value).then(()=>({status:eo.value,value:et.value}))));{let et=this._def.schema._parseSync({data:ei.data,path:ei.path,parent:ei});return"aborted"===et.status?ef:("dirty"===et.status&&eo.dirty(),executeRefinement(et.value),{status:eo.value,value:et.value})}}if("transform"===ea.type){if(!1!==ei.common.async)return this._def.schema._parseAsync({data:ei.data,path:ei.path,parent:ei}).then(et=>isValid(et)?Promise.resolve(ea.transform(et.value,eu)).then(et=>({status:eo.value,value:et})):et);{let et=this._def.schema._parseSync({data:ei.data,path:ei.path,parent:ei});if(!isValid(et))return et;let ed=ea.transform(et.value,eu);if(ed instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:eo.value,value:ed}}}ts.assertNever(ea)}};ZodEffects.create=(et,eo,ei)=>new ZodEffects({schema:et,typeName:td.ZodEffects,effect:eo,...processCreateParams(ei)}),ZodEffects.createWithPreprocess=(et,eo,ei)=>new ZodEffects({schema:eo,effect:{type:"preprocess",transform:et},typeName:td.ZodEffects,...processCreateParams(ei)});let ZodOptional=class ZodOptional extends ZodType{_parse(et){let eo=this._getType(et);return eo===eu.undefined?OK(void 0):this._def.innerType._parse(et)}unwrap(){return this._def.innerType}};ZodOptional.create=(et,eo)=>new ZodOptional({innerType:et,typeName:td.ZodOptional,...processCreateParams(eo)});let ZodNullable=class ZodNullable extends ZodType{_parse(et){let eo=this._getType(et);return eo===eu.null?OK(null):this._def.innerType._parse(et)}unwrap(){return this._def.innerType}};ZodNullable.create=(et,eo)=>new ZodNullable({innerType:et,typeName:td.ZodNullable,...processCreateParams(eo)});let ZodDefault=class ZodDefault extends ZodType{_parse(et){let{ctx:eo}=this._processInputParams(et),ei=eo.data;return eo.parsedType===eu.undefined&&(ei=this._def.defaultValue()),this._def.innerType._parse({data:ei,path:eo.path,parent:eo})}removeDefault(){return this._def.innerType}};ZodDefault.create=(et,eo)=>new ZodDefault({innerType:et,typeName:td.ZodDefault,defaultValue:"function"==typeof eo.default?eo.default:()=>eo.default,...processCreateParams(eo)});let ZodCatch=class ZodCatch extends ZodType{_parse(et){let{ctx:eo}=this._processInputParams(et),ei={...eo,common:{...eo.common,issues:[]}},ea=this._def.innerType._parse({data:ei.data,path:ei.path,parent:{...ei}});return isAsync(ea)?ea.then(et=>({status:"valid",value:"valid"===et.status?et.value:this._def.catchValue({get error(){return new ZodError(ei.common.issues)},input:ei.data})})):{status:"valid",value:"valid"===ea.status?ea.value:this._def.catchValue({get error(){return new ZodError(ei.common.issues)},input:ei.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(et,eo)=>new ZodCatch({innerType:et,typeName:td.ZodCatch,catchValue:"function"==typeof eo.catch?eo.catch:()=>eo.catch,...processCreateParams(eo)});let ZodNaN=class ZodNaN extends ZodType{_parse(et){let eo=this._getType(et);if(eo!==eu.nan){let eo=this._getOrReturnCtx(et);return addIssueToContext(eo,{code:ed.invalid_type,expected:eu.nan,received:eo.parsedType}),ef}return{status:"valid",value:et.data}}};ZodNaN.create=et=>new ZodNaN({typeName:td.ZodNaN,...processCreateParams(et)});let eI=Symbol("zod_brand");let ZodBranded=class ZodBranded extends ZodType{_parse(et){let{ctx:eo}=this._processInputParams(et),ei=eo.data;return this._def.type._parse({data:ei,path:eo.path,parent:eo})}unwrap(){return this._def.type}};let ZodPipeline=class ZodPipeline extends ZodType{_parse(et){let{status:eo,ctx:ei}=this._processInputParams(et);if(ei.common.async){let handleAsync=async()=>{let et=await this._def.in._parseAsync({data:ei.data,path:ei.path,parent:ei});return"aborted"===et.status?ef:"dirty"===et.status?(eo.dirty(),DIRTY(et.value)):this._def.out._parseAsync({data:et.value,path:ei.path,parent:ei})};return handleAsync()}{let et=this._def.in._parseSync({data:ei.data,path:ei.path,parent:ei});return"aborted"===et.status?ef:"dirty"===et.status?(eo.dirty(),{status:"dirty",value:et.value}):this._def.out._parseSync({data:et.value,path:ei.path,parent:ei})}}static create(et,eo){return new ZodPipeline({in:et,out:eo,typeName:td.ZodPipeline})}};let ZodReadonly=class ZodReadonly extends ZodType{_parse(et){let eo=this._def.innerType._parse(et);return isValid(eo)&&(eo.value=Object.freeze(eo.value)),eo}};ZodReadonly.create=(et,eo)=>new ZodReadonly({innerType:et,typeName:td.ZodReadonly,...processCreateParams(eo)});let custom=(et,eo={},ei)=>et?ZodAny.create().superRefine((ea,eu)=>{var ed,eh;if(!et(ea)){let et="function"==typeof eo?eo(ea):"string"==typeof eo?{message:eo}:eo,ep=null===(eh=null!==(ed=et.fatal)&&void 0!==ed?ed:ei)||void 0===eh||eh,ef="string"==typeof et?{message:et}:et;eu.addIssue({code:"custom",...ef,fatal:ep})}}):ZodAny.create(),eR={object:ZodObject.lazycreate};!function(et){et.ZodString="ZodString",et.ZodNumber="ZodNumber",et.ZodNaN="ZodNaN",et.ZodBigInt="ZodBigInt",et.ZodBoolean="ZodBoolean",et.ZodDate="ZodDate",et.ZodSymbol="ZodSymbol",et.ZodUndefined="ZodUndefined",et.ZodNull="ZodNull",et.ZodAny="ZodAny",et.ZodUnknown="ZodUnknown",et.ZodNever="ZodNever",et.ZodVoid="ZodVoid",et.ZodArray="ZodArray",et.ZodObject="ZodObject",et.ZodUnion="ZodUnion",et.ZodDiscriminatedUnion="ZodDiscriminatedUnion",et.ZodIntersection="ZodIntersection",et.ZodTuple="ZodTuple",et.ZodRecord="ZodRecord",et.ZodMap="ZodMap",et.ZodSet="ZodSet",et.ZodFunction="ZodFunction",et.ZodLazy="ZodLazy",et.ZodLiteral="ZodLiteral",et.ZodEnum="ZodEnum",et.ZodEffects="ZodEffects",et.ZodNativeEnum="ZodNativeEnum",et.ZodOptional="ZodOptional",et.ZodNullable="ZodNullable",et.ZodDefault="ZodDefault",et.ZodCatch="ZodCatch",et.ZodPromise="ZodPromise",et.ZodBranded="ZodBranded",et.ZodPipeline="ZodPipeline",et.ZodReadonly="ZodReadonly"}(td||(td={}));let instanceOfType=(et,eo={message:`Input not instance of ${et.name}`})=>custom(eo=>eo instanceof et,eo),eT=ZodString.create,eE=ZodNumber.create,eP=ZodNaN.create,ek=ZodBigInt.create,eO=ZodBoolean.create,eM=ZodDate.create,eD=ZodSymbol.create,eU=ZodUndefined.create,eL=ZodNull.create,eN=ZodAny.create,eB=ZodUnknown.create,eF=ZodNever.create,ej=ZodVoid.create,eG=ZodArray.create,eH=ZodObject.create,eK=ZodObject.strictCreate,ez=ZodUnion.create,eW=ZodDiscriminatedUnion.create,eV=ZodIntersection.create,eJ=ZodTuple.create,eY=ZodRecord.create,e$=ZodMap.create,eZ=ZodSet.create,eQ=ZodFunction.create,eX=ZodLazy.create,e0=ZodLiteral.create,e4=ZodEnum.create,e6=ZodNativeEnum.create,e5=ZodPromise.create,e8=ZodEffects.create,e7=ZodOptional.create,e9=ZodNullable.create,tr=ZodEffects.createWithPreprocess,tn=ZodPipeline.create,ostring=()=>eT().optional(),onumber=()=>eE().optional(),oboolean=()=>eO().optional(),ti={string:et=>ZodString.create({...et,coerce:!0}),number:et=>ZodNumber.create({...et,coerce:!0}),boolean:et=>ZodBoolean.create({...et,coerce:!0}),bigint:et=>ZodBigInt.create({...et,coerce:!0}),date:et=>ZodDate.create({...et,coerce:!0})},ta=ef;var ts,tc,tu,td,tp=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:ep,addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:ef,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return ts},get objectUtil(){return tc},ZodParsedType:eu,getParsedType:getParsedType,ZodType:ZodType,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:eI,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:eR,get ZodFirstPartyTypeKind(){return td},coerce:ti,any:eN,array:eG,bigint:ek,boolean:eO,date:eM,discriminatedUnion:eW,effect:e8,enum:e4,function:eQ,instanceof:instanceOfType,intersection:eV,lazy:eX,literal:e0,map:e$,nan:eP,nativeEnum:e6,never:eF,null:eL,nullable:e9,number:eE,object:eH,oboolean:oboolean,onumber:onumber,optional:e7,ostring:ostring,pipeline:tn,preprocess:tr,promise:e5,record:eY,set:eZ,strictObject:eK,string:eT,symbol:eD,transformer:e8,tuple:eJ,undefined:eU,union:ez,unknown:eB,void:ej,NEVER:ta,ZodIssueCode:ed,quotelessJson:quotelessJson,ZodError:ZodError})}},function(et){var __webpack_exec__=function(eo){return et(et.s=eo)};et.O(0,[9774,179],function(){return __webpack_exec__(71966),__webpack_exec__(6840),__webpack_exec__(59974)}),_N_E=et.O()}]);
//# sourceMappingURL=_app-e1b9fbaff7593955.js.map