(self["webpackChunkcenapiclient"]=self["webpackChunkcenapiclient"]||[]).push([[4998],{62812:function(e,t,n){"use strict";n.d(t,{L:function(){return Zn}});
/*! @azure/msal-browser v2.38.2 2023-08-24 */
/*! *****************************************************************************
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 r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o,a,s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function d(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}(function(e){e["AcquireTokenByCode"]="acquireTokenByCode",e["AcquireTokenByRefreshToken"]="acquireTokenByRefreshToken",e["AcquireTokenSilent"]="acquireTokenSilent",e["AcquireTokenSilentAsync"]="acquireTokenSilentAsync",e["AcquireTokenPopup"]="acquireTokenPopup",e["CryptoOptsGetPublicKeyThumbprint"]="cryptoOptsGetPublicKeyThumbprint",e["CryptoOptsSignJwt"]="cryptoOptsSignJwt",e["SilentCacheClientAcquireToken"]="silentCacheClientAcquireToken",e["SilentIframeClientAcquireToken"]="silentIframeClientAcquireToken",e["SilentRefreshClientAcquireToken"]="silentRefreshClientAcquireToken",e["SsoSilent"]="ssoSilent",e["StandardInteractionClientGetDiscoveredAuthority"]="standardInteractionClientGetDiscoveredAuthority",e["FetchAccountIdWithNativeBroker"]="fetchAccountIdWithNativeBroker",e["NativeInteractionClientAcquireToken"]="nativeInteractionClientAcquireToken",e["BaseClientCreateTokenRequestHeaders"]="baseClientCreateTokenRequestHeaders",e["BrokerHandhshake"]="brokerHandshake",e["AcquireTokenByRefreshTokenInBroker"]="acquireTokenByRefreshTokenInBroker",e["AcquireTokenByBroker"]="acquireTokenByBroker",e["RefreshTokenClientExecuteTokenRequest"]="refreshTokenClientExecuteTokenRequest",e["RefreshTokenClientAcquireToken"]="refreshTokenClientAcquireToken",e["RefreshTokenClientAcquireTokenWithCachedRefreshToken"]="refreshTokenClientAcquireTokenWithCachedRefreshToken",e["RefreshTokenClientAcquireTokenByRefreshToken"]="refreshTokenClientAcquireTokenByRefreshToken",e["RefreshTokenClientCreateTokenRequestBody"]="refreshTokenClientCreateTokenRequestBody",e["AcquireTokenFromCache"]="acquireTokenFromCache",e["AcquireTokenBySilentIframe"]="acquireTokenBySilentIframe",e["InitializeBaseRequest"]="initializeBaseRequest",e["InitializeSilentRequest"]="initializeSilentRequest",e["InitializeClientApplication"]="initializeClientApplication",e["SilentIframeClientTokenHelper"]="silentIframeClientTokenHelper",e["SilentHandlerInitiateAuthRequest"]="silentHandlerInitiateAuthRequest",e["SilentHandlerMonitorIframeForHash"]="silentHandlerMonitorIframeForHash",e["SilentHandlerLoadFrame"]="silentHandlerLoadFrame",e["StandardInteractionClientCreateAuthCodeClient"]="standardInteractionClientCreateAuthCodeClient",e["StandardInteractionClientGetClientConfiguration"]="standardInteractionClientGetClientConfiguration",e["StandardInteractionClientInitializeAuthorizationRequest"]="standardInteractionClientInitializeAuthorizationRequest",e["StandardInteractionClientInitializeAuthorizationCodeRequest"]="standardInteractionClientInitializeAuthorizationCodeRequest",e["GetAuthCodeUrl"]="getAuthCodeUrl",e["HandleCodeResponseFromServer"]="handleCodeResponseFromServer",e["HandleCodeResponseFromHash"]="handleCodeResponseFromHash",e["UpdateTokenEndpointAuthority"]="updateTokenEndpointAuthority",e["AuthClientAcquireToken"]="authClientAcquireToken",e["AuthClientExecuteTokenRequest"]="authClientExecuteTokenRequest",e["AuthClientCreateTokenRequestBody"]="authClientCreateTokenRequestBody",e["AuthClientCreateQueryString"]="authClientCreateQueryString",e["PopTokenGenerateCnf"]="popTokenGenerateCnf",e["PopTokenGenerateKid"]="popTokenGenerateKid",e["HandleServerTokenResponse"]="handleServerTokenResponse",e["AuthorityFactoryCreateDiscoveredInstance"]="authorityFactoryCreateDiscoveredInstance",e["AuthorityResolveEndpointsAsync"]="authorityResolveEndpointsAsync",e["AuthorityGetCloudDiscoveryMetadataFromNetwork"]="authorityGetCloudDiscoveryMetadataFromNetwork",e["AuthorityUpdateCloudDiscoveryMetadata"]="authorityUpdateCloudDiscoveryMetadata",e["AuthorityGetEndpointMetadataFromNetwork"]="authorityGetEndpointMetadataFromNetwork",e["AuthorityUpdateEndpointMetadata"]="authorityUpdateEndpointMetadata",e["AuthorityUpdateMetadataWithRegionalInformation"]="authorityUpdateMetadataWithRegionalInformation",e["RegionDiscoveryDetectRegion"]="regionDiscoveryDetectRegion",e["RegionDiscoveryGetRegionFromIMDS"]="regionDiscoveryGetRegionFromIMDS",e["RegionDiscoveryGetCurrentVersion"]="regionDiscoveryGetCurrentVersion",e["AcquireTokenByCodeAsync"]="acquireTokenByCodeAsync",e["GetEndpointMetadataFromNetwork"]="getEndpointMetadataFromNetwork",e["GetCloudDiscoveryMetadataFromNetworkMeasurement"]="getCloudDiscoveryMetadataFromNetworkMeasurement",e["HandleRedirectPromiseMeasurement"]="handleRedirectPromiseMeasurement",e["UpdateCloudDiscoveryMetadataMeasurement"]="updateCloudDiscoveryMetadataMeasurement",e["UsernamePasswordClientAcquireToken"]="usernamePasswordClientAcquireToken",e["NativeMessageHandlerHandshake"]="nativeMessageHandlerHandshake",e["ClearTokensAndKeysWithClaims"]="clearTokensAndKeysWithClaims"})(o||(o={})),function(e){e[e["NotStarted"]=0]="NotStarted",e[e["InProgress"]=1]="InProgress",e[e["Completed"]=2]="Completed"}(a||(a={}));var f=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]),p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},p(e,t)};function m(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g.apply(this,arguments)};function v(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function y(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}
/*! @azure/msal-common v13.3.0 2023-08-24 */
var _,E,w,T,I,S={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},C=[S.OPENID_SCOPE,S.PROFILE_SCOPE,S.OFFLINE_ACCESS_SCOPE],A=b(C,[S.EMAIL_SCOPE]);(function(e){e["CONTENT_TYPE"]="Content-Type",e["RETRY_AFTER"]="Retry-After",e["CCS_HEADER"]="X-AnchorMailbox",e["WWWAuthenticate"]="WWW-Authenticate",e["AuthenticationInfo"]="Authentication-Info",e["X_MS_REQUEST_ID"]="x-ms-request-id",e["X_MS_HTTP_VERSION"]="x-ms-httpver"})(_||(_={})),function(e){e["ID_TOKEN"]="idtoken",e["CLIENT_INFO"]="client.info",e["ADAL_ID_TOKEN"]="adal.idtoken",e["ERROR"]="error",e["ERROR_DESC"]="error.description",e["ACTIVE_ACCOUNT"]="active-account",e["ACTIVE_ACCOUNT_FILTERS"]="active-account-filters"}(E||(E={})),function(e){e["COMMON"]="common",e["ORGANIZATIONS"]="organizations",e["CONSUMERS"]="consumers"}(w||(w={})),function(e){e["CLIENT_ID"]="client_id",e["REDIRECT_URI"]="redirect_uri",e["RESPONSE_TYPE"]="response_type",e["RESPONSE_MODE"]="response_mode",e["GRANT_TYPE"]="grant_type",e["CLAIMS"]="claims",e["SCOPE"]="scope",e["ERROR"]="error",e["ERROR_DESCRIPTION"]="error_description",e["ACCESS_TOKEN"]="access_token",e["ID_TOKEN"]="id_token",e["REFRESH_TOKEN"]="refresh_token",e["EXPIRES_IN"]="expires_in",e["STATE"]="state",e["NONCE"]="nonce",e["PROMPT"]="prompt",e["SESSION_STATE"]="session_state",e["CLIENT_INFO"]="client_info",e["CODE"]="code",e["CODE_CHALLENGE"]="code_challenge",e["CODE_CHALLENGE_METHOD"]="code_challenge_method",e["CODE_VERIFIER"]="code_verifier",e["CLIENT_REQUEST_ID"]="client-request-id",e["X_CLIENT_SKU"]="x-client-SKU",e["X_CLIENT_VER"]="x-client-VER",e["X_CLIENT_OS"]="x-client-OS",e["X_CLIENT_CPU"]="x-client-CPU",e["X_CLIENT_CURR_TELEM"]="x-client-current-telemetry",e["X_CLIENT_LAST_TELEM"]="x-client-last-telemetry",e["X_MS_LIB_CAPABILITY"]="x-ms-lib-capability",e["X_APP_NAME"]="x-app-name",e["X_APP_VER"]="x-app-ver",e["POST_LOGOUT_URI"]="post_logout_redirect_uri",e["ID_TOKEN_HINT"]="id_token_hint",e["DEVICE_CODE"]="device_code",e["CLIENT_SECRET"]="client_secret",e["CLIENT_ASSERTION"]="client_assertion",e["CLIENT_ASSERTION_TYPE"]="client_assertion_type",e["TOKEN_TYPE"]="token_type",e["REQ_CNF"]="req_cnf",e["OBO_ASSERTION"]="assertion",e["REQUESTED_TOKEN_USE"]="requested_token_use",e["ON_BEHALF_OF"]="on_behalf_of",e["FOCI"]="foci",e["CCS_HEADER"]="X-AnchorMailbox",e["RETURN_SPA_CODE"]="return_spa_code",e["NATIVE_BROKER"]="nativebroker",e["LOGOUT_HINT"]="logout_hint"}(T||(T={})),function(e){e["ACCESS_TOKEN"]="access_token",e["XMS_CC"]="xms_cc"}(I||(I={}));var O,R={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"};(function(e){e["ACCOUNT"]="account",e["SID"]="sid",e["LOGIN_HINT"]="login_hint",e["ID_TOKEN"]="id_token",e["DOMAIN_HINT"]="domain_hint",e["ORGANIZATIONS"]="organizations",e["CONSUMERS"]="consumers",e["ACCOUNT_ID"]="accountIdentifier",e["HOMEACCOUNT_ID"]="homeAccountIdentifier"})(O||(O={}));var k,x,M,N,P,D,L={PLAIN:"plain",S256:"S256"};(function(e){e["QUERY"]="query",e["FRAGMENT"]="fragment",e["FORM_POST"]="form_post"})(k||(k={})),function(e){e["IMPLICIT_GRANT"]="implicit",e["AUTHORIZATION_CODE_GRANT"]="authorization_code",e["CLIENT_CREDENTIALS_GRANT"]="client_credentials",e["RESOURCE_OWNER_PASSWORD_GRANT"]="password",e["REFRESH_TOKEN_GRANT"]="refresh_token",e["DEVICE_CODE_GRANT"]="device_code",e["JWT_BEARER"]="urn:ietf:params:oauth:grant-type:jwt-bearer"}(x||(x={})),function(e){e["MSSTS_ACCOUNT_TYPE"]="MSSTS",e["ADFS_ACCOUNT_TYPE"]="ADFS",e["MSAV1_ACCOUNT_TYPE"]="MSA",e["GENERIC_ACCOUNT_TYPE"]="Generic"}(M||(M={})),function(e){e["CACHE_KEY_SEPARATOR"]="-",e["CLIENT_INFO_SEPARATOR"]="."}(N||(N={})),function(e){e["ID_TOKEN"]="IdToken",e["ACCESS_TOKEN"]="AccessToken",e["ACCESS_TOKEN_WITH_AUTH_SCHEME"]="AccessToken_With_AuthScheme",e["REFRESH_TOKEN"]="RefreshToken"}(P||(P={})),function(e){e[e["ADFS"]=1001]="ADFS",e[e["MSA"]=1002]="MSA",e[e["MSSTS"]=1003]="MSSTS",e[e["GENERIC"]=1004]="GENERIC",e[e["ACCESS_TOKEN"]=2001]="ACCESS_TOKEN",e[e["REFRESH_TOKEN"]=2002]="REFRESH_TOKEN",e[e["ID_TOKEN"]=2003]="ID_TOKEN",e[e["APP_METADATA"]=3001]="APP_METADATA",e[e["UNDEFINED"]=9999]="UNDEFINED"}(D||(D={}));var U,F="appmetadata",q="client_info",B="1",H={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400};(function(e){e["CONFIG"]="config",e["CACHE"]="cache",e["NETWORK"]="network",e["HARDCODED_VALUES"]="hardcoded_values"})(U||(U={}));var j,V={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(e){e["BEARER"]="Bearer",e["POP"]="pop",e["SSH"]="ssh-cert"})(j||(j={}));var G,z,$,Y,K,W,X={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Q={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"};(function(e){e["username"]="username",e["password"]="password"})(G||(G={})),function(e){e[e["httpSuccess"]=200]="httpSuccess",e[e["httpBadRequest"]=400]="httpBadRequest"}(z||(z={})),function(e){e["FAILED_AUTO_DETECTION"]="1",e["INTERNAL_CACHE"]="2",e["ENVIRONMENT_VARIABLE"]="3",e["IMDS"]="4"}($||($={})),function(e){e["CONFIGURED_MATCHES_DETECTED"]="1",e["CONFIGURED_NO_AUTO_DETECTION"]="2",e["CONFIGURED_NOT_DETECTED"]="3",e["AUTO_DETECTION_REQUESTED_SUCCESSFUL"]="4",e["AUTO_DETECTION_REQUESTED_FAILED"]="5"}(Y||(Y={})),function(e){e["NO_CACHE_HIT"]="0",e["FORCE_REFRESH"]="1",e["NO_CACHED_ACCESS_TOKEN"]="2",e["CACHED_ACCESS_TOKEN_EXPIRED"]="3",e["REFRESH_CACHED_ACCESS_TOKEN"]="4",e["CLAIMS_REQUESTED_CACHE_SKIPPED"]="5"}(K||(K={})),function(e){e["Jwt"]="JWT",e["Jwk"]="JWK",e["Pop"]="pop"}(W||(W={}));var Z,J,ee,te,ne,re,ie,oe,ae,se={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."}},ce=function(e){function t(n,r,i){var o=this,a=r?n+": "+r:n;return o=e.call(this,a)||this,Object.setPrototypeOf(o,t.prototype),o.errorCode=n||S.EMPTY_STRING,o.errorMessage=r||S.EMPTY_STRING,o.subError=i||S.EMPTY_STRING,o.name="AuthError",o}return m(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(se.unexpectedError.code,se.unexpectedError.desc+": "+e)},t.createPostRequestFailed=function(e){return new t(se.postRequestFailed.code,se.postRequestFailed.desc+": "+e)},t}(Error),ue=function(e){function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return m(t,e),t}(ce),le=["interaction_required","consent_required","login_required"],de=["message_only","additional_action","basic_action","user_password_expired","consent_required"],he={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."}},fe=function(e){function t(n,r,i,o,a,s,c){var u=e.call(this,n,r,i)||this;return Object.setPrototypeOf(u,t.prototype),u.timestamp=o||S.EMPTY_STRING,u.traceId=a||S.EMPTY_STRING,u.correlationId=s||S.EMPTY_STRING,u.claims=c||S.EMPTY_STRING,u.name="InteractionRequiredAuthError",u}return m(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&le.indexOf(e)>-1,i=!!n&&de.indexOf(n)>-1,o=!!t&&le.some((function(e){return t.indexOf(e)>-1}));return r||o||i},t.createNoTokensFoundError=function(){return new t(he.noTokensFoundError.code,he.noTokensFoundError.desc)},t.createNativeAccountUnavailableError=function(){return new t(he.native_account_unavailable.code,he.native_account_unavailable.desc)},t}(ce),pe={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},me={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"};(function(e){e["HandshakeRequest"]="Handshake",e["HandshakeResponse"]="HandshakeResponse",e["GetToken"]="GetToken",e["Response"]="Response"})(Z||(Z={})),function(e){e["LocalStorage"]="localStorage",e["SessionStorage"]="sessionStorage",e["MemoryStorage"]="memoryStorage"}(J||(J={})),function(e){e["GET"]="GET",e["POST"]="POST"}(ee||(ee={})),function(e){e["AUTHORITY"]="authority",e["ACQUIRE_TOKEN_ACCOUNT"]="acquireToken.account",e["SESSION_STATE"]="session.state",e["REQUEST_STATE"]="request.state",e["NONCE_IDTOKEN"]="nonce.id_token",e["ORIGIN_URI"]="request.origin",e["RENEW_STATUS"]="token.renew.status",e["URL_HASH"]="urlHash",e["REQUEST_PARAMS"]="request.params",e["SCOPES"]="scopes",e["INTERACTION_STATUS_KEY"]="interaction.status",e["CCS_CREDENTIAL"]="ccs.credential",e["CORRELATION_ID"]="request.correlationId",e["NATIVE_REQUEST"]="request.native",e["REDIRECT_CONTEXT"]="request.redirect.context"}(te||(te={})),function(e){e["ACCOUNT_KEYS"]="msal.account.keys",e["TOKEN_KEYS"]="msal.token.keys"}(ne||(ne={})),function(e){e["WRAPPER_SKU"]="wrapper.sku",e["WRAPPER_VER"]="wrapper.version"}(re||(re={})),function(e){e[e["acquireTokenRedirect"]=861]="acquireTokenRedirect",e[e["acquireTokenPopup"]=862]="acquireTokenPopup",e[e["ssoSilent"]=863]="ssoSilent",e[e["acquireTokenSilent_authCode"]=864]="acquireTokenSilent_authCode",e[e["handleRedirectPromise"]=865]="handleRedirectPromise",e[e["acquireTokenByCode"]=866]="acquireTokenByCode",e[e["acquireTokenSilent_silentFlow"]=61]="acquireTokenSilent_silentFlow",e[e["logout"]=961]="logout",e[e["logoutPopup"]=962]="logoutPopup"}(ie||(ie={})),function(e){e["Redirect"]="redirect",e["Popup"]="popup",e["Silent"]="silent",e["None"]="none"}(oe||(oe={})),function(e){e["Startup"]="startup",e["Login"]="login",e["Logout"]="logout",e["AcquireToken"]="acquireToken",e["SsoSilent"]="ssoSilent",e["HandleRedirect"]="handleRedirect",e["None"]="none"}(ae||(ae={}));var ge,ve={scopes:C},ye="jwk";(function(e){e["React"]="@azure/msal-react",e["Angular"]="@azure/msal-angular"})(ge||(ge={}));var be,_e="msal.db",Ee=1,we=_e+".keys";(function(e){e[e["Default"]=0]="Default",e[e["AccessToken"]=1]="AccessToken",e[e["AccessTokenAndRefreshToken"]=2]="AccessTokenAndRefreshToken",e[e["RefreshToken"]=3]="RefreshToken",e[e["RefreshTokenAndNetwork"]=4]="RefreshTokenAndNetwork",e[e["Skip"]=5]="Skip"})(be||(be={}));
/*! @azure/msal-common v13.3.0 2023-08-24 */
var Te,Ie={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."}},Se=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name="JoseHeaderError",Object.setPrototypeOf(i,t.prototype),i}return m(t,e),t.createMissingKidError=function(){return new t(Ie.missingKidError.code,Ie.missingKidError.desc)},t.createMissingAlgError=function(){return new t(Ie.missingAlgError.code,Ie.missingAlgError.desc)},t}(ce),Ce=function(){function e(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw Se.createMissingKidError();if(!t.alg)throw Se.createMissingAlgError();var n=new e({typ:t.typ||W.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e}(),Ae=function(){function e(){}return e.decimalToHex=function(e){var t=e.toString(16);while(t.length<2)t="0"+t;return t},e}(),Oe=function(){function e(e){this.cryptoObj=e}return e.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Ae.decimalToHex(e[0])+Ae.decimalToHex(e[1])+Ae.decimalToHex(e[2])+Ae.decimalToHex(e[3])+"-"+Ae.decimalToHex(e[4])+Ae.decimalToHex(e[5])+"-"+Ae.decimalToHex(e[6])+Ae.decimalToHex(e[7])+"-"+Ae.decimalToHex(e[8])+Ae.decimalToHex(e[9])+"-"+Ae.decimalToHex(e[10])+Ae.decimalToHex(e[11])+Ae.decimalToHex(e[12])+Ae.decimalToHex(e[13])+Ae.decimalToHex(e[14])+Ae.decimalToHex(e[15])}catch(a){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,i=S.EMPTY_STRING,o=0;o<36;o++)"-"!==t[o]&&"4"!==t[o]&&(r=16*Math.random()|0),"x"===t[o]?i+=n[r]:"y"===t[o]?(r&=3,r|=8,i+=n[r]):i+=t[o];return i}},e.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},e}(),Re=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,n=0,r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),n+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var o=new Uint8Array(n),a=0,s=0;a<n;s++)t=e.charCodeAt(s),t<128?o[a++]=t:t<2048?(o[a++]=192+(t>>>6),o[a++]=128+(63&t)):t<65536?(o[a++]=224+(t>>>12),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):t<2097152?(o[a++]=240+(t>>>18),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):t<67108864?(o[a++]=248+(t>>>24),o[a++]=128+(t>>>18&63),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):(o[a++]=252+(t>>>30),o[a++]=128+(t>>>24&63),o[a++]=128+(t>>>18&63),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t));return o},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return t},e.utf8ArrToString=function(e){for(var t=S.EMPTY_STRING,n=void 0,r=e.length,i=0;i<r;i++)n=e[i],t+=String.fromCharCode(n>251&&n<254&&i+5<r?1073741824*(n-252)+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>247&&n<252&&i+4<r?(n-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>239&&n<248&&i+3<r?(n-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>223&&n<240&&i+2<r?(n-224<<12)+(e[++i]-128<<6)+e[++i]-128:n>191&&n<224&&i+1<r?(n-192<<6)+e[++i]-128:n);return t},e.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},e}(),ke=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,S.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,S.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=Re.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=S.EMPTY_STRING,r=void 0,i=e.length,o=0,a=0;a<i;a++)r=a%3,o|=e[a]<<(16>>>r&24),2!==r&&e.length-a!==1||(n+=String.fromCharCode(this.uint6ToB64(o>>>18&63),this.uint6ToB64(o>>>12&63),this.uint6ToB64(o>>>6&63),this.uint6ToB64(63&o)),o=0);return 0===t?n:n.substring(0,n.length-t)+(1===t?"=":"==")},e.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65},e}(),xe=function(){function e(){}return e.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return Re.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,S.EMPTY_STRING),r=n.length,i=t?Math.ceil((3*r+1>>>2)/t)*t:3*r+1>>>2,o=new Uint8Array(i),a=void 0,s=void 0,c=0,u=0,l=0;l<r;l++)if(s=3&l,c|=this.b64ToUint6(n.charCodeAt(l))<<18-6*s,3===s||r-l===1){for(a=0;a<3&&u<i;a++,u++)o[u]=c>>>(16>>>a&24)&255;c=0}return o},e.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0},e}(),Me={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},Ne=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name="ClientAuthError",Object.setPrototypeOf(i,t.prototype),i}return m(t,e),t.createClientInfoDecodingError=function(e){return new t(Me.clientInfoDecodingError.code,Me.clientInfoDecodingError.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(Me.clientInfoEmptyError.code,""+Me.clientInfoEmptyError.desc)},t.createTokenParsingError=function(e){return new t(Me.tokenParsingError.code,Me.tokenParsingError.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(Me.nullOrEmptyToken.code,Me.nullOrEmptyToken.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(Me.endpointResolutionError.code,Me.endpointResolutionError.desc+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(Me.networkError.code,Me.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(Me.unableToGetOpenidConfigError.code,Me.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(Me.hashNotDeserialized.code,Me.hashNotDeserialized.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(Me.invalidStateError.code,Me.invalidStateError.desc+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(Me.stateMismatchError.code,Me.stateMismatchError.desc)},t.createStateNotFoundError=function(e){return new t(Me.stateNotFoundError.code,Me.stateNotFoundError.desc+":  "+e)},t.createNonceMismatchError=function(){return new t(Me.nonceMismatchError.code,Me.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(Me.authTimeNotFoundError.code,Me.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(Me.maxAgeTranspiredError.code,Me.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(e){return new t(Me.nonceNotFoundError.code,Me.nonceNotFoundError.desc+":  "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(Me.multipleMatchingTokens.code,Me.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(Me.multipleMatchingAccounts.code,Me.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(Me.multipleMatchingAppMetadata.code,Me.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(Me.tokenRequestCannotBeMade.code,Me.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(Me.appendEmptyScopeError.code,Me.appendEmptyScopeError.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(Me.removeEmptyScopeError.code,Me.removeEmptyScopeError.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(Me.appendScopeSetError.code,Me.appendScopeSetError.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(Me.emptyInputScopeSetError.code,""+Me.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(Me.DeviceCodePollingCancelled.code,""+Me.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(Me.DeviceCodeExpired.code,""+Me.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(Me.DeviceCodeUnknownError.code,""+Me.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(Me.NoAccountInSilentRequest.code,""+Me.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(Me.invalidCacheRecord.code,Me.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(Me.invalidCacheEnvironment.code,Me.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(Me.noAccountFound.code,Me.noAccountFound.desc)},t.createCachePluginError=function(){return new t(Me.CachePluginError.code,""+Me.CachePluginError.desc)},t.createNoCryptoObjectError=function(e){return new t(Me.noCryptoObj.code,""+Me.noCryptoObj.desc+e)},t.createInvalidCacheTypeError=function(){return new t(Me.invalidCacheType.code,""+Me.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(Me.unexpectedAccountType.code,""+Me.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(Me.unexpectedCredentialType.code,""+Me.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(Me.invalidAssertion.code,""+Me.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(Me.invalidClientCredential.code,""+Me.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(Me.tokenRefreshRequired.code,Me.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(Me.userTimeoutReached.code,Me.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(Me.tokenClaimsRequired.code,Me.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(Me.noAuthorizationCodeFromServer.code,Me.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(Me.bindingKeyNotRemovedError.code,Me.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(Me.logoutNotSupported.code,Me.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(Me.keyIdMissing.code,Me.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(Me.noNetworkConnectivity.code,Me.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(Me.userCanceledError.code,Me.userCanceledError.desc)},t}(ce),Pe=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw Ne.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=n.exec(t);if(!r||r.length<4)throw Ne.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));var i={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return i},e.isEmpty=function(e){return"undefined"===typeof e||!e||0===e.length},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var n=JSON.parse(t);return 0===Object.keys(n).length}catch(r){}return!0},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},e.queryStringToObject=function(e){var t={},n=e.split("&"),r=function(e){return decodeURIComponent(e.replace(/\+/g," "))};return n.forEach((function(e){if(e.trim()){var n=e.split(/=(.+)/g,2),i=n[0],o=n[1];i&&o&&(t[r(i)]=r(o))}})),t},e.trimArrayEntries=function(e){return e.map((function(e){return e.trim()}))},e.removeEmptyStringsFromArray=function(t){return t.filter((function(t){return!e.isEmpty(t)}))},e.jsonParseHelper=function(e){try{return JSON.parse(e)}catch(t){return null}},e.matchPattern=function(e,t){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(t)},e}(),De={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.  For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},Le=function(e){function t(n,r){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="BrowserAuthError",i}return i(t,e),t.createPkceNotGeneratedError=function(e){return new t(De.pkceNotGenerated.code,De.pkceNotGenerated.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(De.cryptoDoesNotExist.code,De.cryptoDoesNotExist.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(De.httpMethodNotImplementedError.code,De.httpMethodNotImplementedError.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(De.emptyNavigateUriError.code,De.emptyNavigateUriError.desc)},t.createEmptyHashError=function(e){return new t(De.hashEmptyError.code,De.hashEmptyError.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(De.hashDoesNotContainStateError.code,De.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(De.hashDoesNotContainKnownPropertiesError.code,De.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(De.unableToParseStateError.code,De.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(De.stateInteractionTypeMismatchError.code,De.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(De.interactionInProgress.code,De.interactionInProgress.desc)},t.createPopupWindowError=function(e){var n=De.popupWindowError.desc;return n=Pe.isEmpty(e)?n:n+" Details: "+e,new t(De.popupWindowError.code,n)},t.createEmptyWindowCreatedError=function(){return new t(De.emptyWindowError.code,De.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(De.userCancelledError.code,De.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(De.monitorPopupTimeoutError.code,De.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(De.monitorIframeTimeoutError.code,De.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(e){return new t(De.redirectInIframeError.code,De.redirectInIframeError.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(De.blockTokenRequestsInHiddenIframeError.code,De.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(De.blockAcquireTokenInPopupsError.code,De.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(De.iframeClosedPrematurelyError.code,De.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(De.silentLogoutUnsupportedError.code,De.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(De.noAccountError.code,De.noAccountError.desc)},t.createSilentPromptValueError=function(e){return new t(De.silentPromptValueError.code,De.silentPromptValueError.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(De.unableToParseTokenRequestCacheError.code,De.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(De.noTokenRequestCacheError.code,De.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(De.authRequestNotSet.code,De.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(De.noCachedAuthorityError.code,De.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(De.invalidCacheType.code,""+De.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(De.notInBrowserEnvironment.code,De.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(De.databaseNotOpen.code,De.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(De.noNetworkConnectivity.code,De.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(e,n){return new t(De.postRequestFailed.code,De.postRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(De.getRequestFailed.code,De.getRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(De.failedToParseNetworkResponse.code,De.failedToParseNetworkResponse.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(De.unableToLoadTokenError.code,De.unableToLoadTokenError.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(De.signingKeyNotFoundInStorage.code,De.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(De.authCodeRequired.code,De.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(De.authCodeOrNativeAccountRequired.code,De.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(De.spaCodeAndNativeAccountPresent.code,De.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(De.databaseUnavailable.code,De.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(De.unableToAcquireTokenFromNativePlatform.code,De.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(De.nativeHandshakeTimeout.code,De.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(De.nativeExtensionNotInstalled.code,De.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(De.nativeConnectionNotEstablished.code,De.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(De.nativeBrokerCalledBeforeInitialize.code,De.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(De.nativePromptNotSupported.code,De.nativePromptNotSupported.desc)},t}(ce),Ue=32,Fe=function(){function e(e){this.base64Encode=new ke,this.cryptoObj=e}return e.prototype.generateCodes=function(){return u(this,void 0,void 0,(function(){var e,t;return l(this,(function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}}))}))},e.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(Ue);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(n){throw Le.createPkceNotGeneratedError(n)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=r.sent(),Le.createPkceNotGeneratedError(n);case 3:return[2]}}))}))},e}(),qe=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,window.crypto.subtle.exportKey(ye,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return u(this,void 0,void 0,(function(){return l(this,(function(i){return[2,window.crypto.subtle.importKey(ye,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.crypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,window.crypto.subtle.digest(e,t)]}))}))},e}(),Be=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng(h(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,window.msrCrypto.subtle.exportKey(ye,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return u(this,void 0,void 0,(function(){return l(this,(function(i){return[2,window.msrCrypto.subtle.importKey(ye,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,window.msrCrypto.subtle.digest(e,t)]}))}))},e}(),He=function(){function e(){}return e.prototype.getRandomValues=function(e){return window["msCrypto"].getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,new Promise((function(r,i){var o=window["msCrypto"].subtle.generateKey(e,t,n);o.addEventListener("complete",(function(e){r(e.target.result)})),o.addEventListener("error",(function(e){i(e)}))}))]}))}))},e.prototype.exportKey=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,new Promise((function(t,n){var r=window["msCrypto"].subtle.exportKey(ye,e);r.addEventListener("complete",(function(e){var r=e.target.result,i=Re.utf8ArrToString(new Uint8Array(r)).replace(/\r/g,S.EMPTY_STRING).replace(/\n/g,S.EMPTY_STRING).replace(/\t/g,S.EMPTY_STRING).split(" ").join(S.EMPTY_STRING).replace("\0",S.EMPTY_STRING);try{t(JSON.parse(i))}catch(e){n(e)}})),r.addEventListener("error",(function(e){n(e)}))}))]}))}))},e.prototype.importKey=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,o;return l(this,(function(a){return i=Re.getSortedObjectString(e),o=Re.stringToArrayBuffer(i),[2,new Promise((function(e,i){var a=window["msCrypto"].subtle.importKey(ye,o,t,n,r);a.addEventListener("complete",(function(t){e(t.target.result)})),a.addEventListener("error",(function(e){i(e)}))}))]}))}))},e.prototype.sign=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,new Promise((function(r,i){var o=window["msCrypto"].subtle.sign(e,t,n);o.addEventListener("complete",(function(e){r(e.target.result)})),o.addEventListener("error",(function(e){i(e)}))}))]}))}))},e.prototype.digest=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,new Promise((function(n,r){var i=window["msCrypto"].subtle.digest(e,t.buffer);i.addEventListener("complete",(function(e){n(e.target.result)})),i.addEventListener("error",(function(e){r(e)}))}))]}))}))},e}(),je={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},Ve=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name="BrowserConfigurationAuthError",Object.setPrototypeOf(i,t.prototype),i}return i(t,e),t.createRedirectUriEmptyError=function(){return new t(je.redirectUriNotSet.code,je.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(je.postLogoutUriNotSet.code,je.postLogoutUriNotSet.desc)},t.createStorageNotSupportedError=function(e){return new t(je.storageNotSupportedError.code,je.storageNotSupportedError.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(je.noRedirectCallbacksSet.code,je.noRedirectCallbacksSet.desc)},t.createStubPcaInstanceCalledError=function(){return new t(je.stubPcaInstanceCalled.code,je.stubPcaInstanceCalled.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(je.inMemRedirectUnavailable.code,je.inMemRedirectUnavailable.desc)},t.createEntropyNotProvided=function(){return new t(je.entropyNotProvided.code,je.entropyNotProvided.desc)},t}(ce),Ge="RSASSA-PKCS1-v1_5",ze="SHA-256",$e=2048,Ye=new Uint8Array([1,0,1]),Ke=function(){function e(e,t){var n,r;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new qe;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new He;else{if(!this.hasMsrCrypto()||!(null===(n=this.cryptoOptions)||void 0===n?void 0:n.useMsrCrypto))throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),Le.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Be}if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(null===(r=this.cryptoOptions)||void 0===r?void 0:r.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Ve.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:Ge,hash:ze,modulusLength:$e,publicExponent:Ye}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return t=Re.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:ze},t)]}))}))},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]}))}))},e.prototype.exportJwk=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,this.subtleCrypto.exportKey(e)]}))}))},e.prototype.importJwk=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]}))}))},e.prototype.sign=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]}))}))},e}(),We=function(){function e(){this.dbName=_e,this.version=Ee,this.tableName=we,this.dbOpen=!1}return e.prototype.open=function(){return u(this,void 0,void 0,(function(){var e=this;return l(this,(function(t){return[2,new Promise((function(t,n){var r=window.indexedDB.open(e.dbName,e.version);r.addEventListener("upgradeneeded",(function(t){var n=t;n.target.result.createObjectStore(e.tableName)})),r.addEventListener("success",(function(n){var r=n;e.db=r.target.result,e.dbOpen=!0,t()})),r.addEventListener("error",(function(){return n(Le.createDatabaseUnavailableError())}))}))]}))}))},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}}))}))},e.prototype.getItem=function(e){return u(this,void 0,void 0,(function(){var t=this;return l(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(Le.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly"),o=i.objectStore(t.tableName),a=o.get(e);a.addEventListener("success",(function(e){var r=e;t.closeConnection(),n(r.target.result)})),a.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.setItem=function(e,t){return u(this,void 0,void 0,(function(){var n=this;return l(this,(function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise((function(r,i){if(!n.db)return i(Le.createDatabaseNotOpenError());var o=n.db.transaction([n.tableName],"readwrite"),a=o.objectStore(n.tableName),s=a.put(t,e);s.addEventListener("success",(function(){n.closeConnection(),r()})),s.addEventListener("error",(function(e){n.closeConnection(),i(e)}))}))]}}))}))},e.prototype.removeItem=function(e){return u(this,void 0,void 0,(function(){var t=this;return l(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(Le.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readwrite"),o=i.objectStore(t.tableName),a=o.delete(e);a.addEventListener("success",(function(){t.closeConnection(),n()})),a.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.getKeys=function(){return u(this,void 0,void 0,(function(){var e=this;return l(this,(function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise((function(t,n){if(!e.db)return n(Le.createDatabaseNotOpenError());var r=e.db.transaction([e.tableName],"readonly"),i=r.objectStore(e.tableName),o=i.getAllKeys();o.addEventListener("success",(function(n){var r=n;e.closeConnection(),t(r.target.result)})),o.addEventListener("error",(function(t){e.closeConnection(),n(t)}))}))]}}))}))},e.prototype.containsKey=function(e){return u(this,void 0,void 0,(function(){var t=this;return l(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(Le.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly"),o=i.objectStore(t.tableName),a=o.count(e);a.addEventListener("success",(function(e){var r=e;t.closeConnection(),n(1===r.target.result)})),a.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.deleteDatabase=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise((function(e,t){var n=window.indexedDB.deleteDatabase(_e);n.addEventListener("success",(function(){return e(!0)})),n.addEventListener("blocked",(function(){return e(!0)})),n.addEventListener("error",(function(){return t(!1)}))}))]}))}))},e}(),Xe=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(e){return this.cache.get(e)||null},e.prototype.setItem=function(e,t){this.cache.set(e,t)},e.prototype.removeItem=function(e){this.cache.delete(e)},e.prototype.getKeys=function(){var e=[];return this.cache.forEach((function(t,n){e.push(n)})),e},e.prototype.containsKey=function(e){return this.cache.has(e)},e.prototype.clear=function(){this.cache.clear()},e}(),Qe=function(){function e(e,t){this.inMemoryCache=new Xe,this.indexedDBCache=new We,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof Le&&e.errorCode===De.databaseUnavailable.code))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},e.prototype.getItem=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}}))}))},e.prototype.setItem=function(e,t){return u(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(r.label){case 0:this.inMemoryCache.setItem(e,t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}}))}))},e.prototype.removeItem=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}}))}))},e.prototype.getKeys=function(){return u(this,void 0,void 0,(function(){var e,t;return l(this,(function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),0!==e.length)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}}))}))},e.prototype.containsKey=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}}))}))},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return u(this,void 0,void 0,(function(){var e,t;return l(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}}))}))},e}();(function(e){e["asymmetricKeys"]="asymmetricKeys",e["symmetricKeys"]="symmetricKeys"})(Te||(Te={}));var Ze,Je=function(){function e(e){this.logger=e,this.asymmetricKeys=new Qe(this.logger,Te.asymmetricKeys),this.symmetricKeys=new Qe(this.logger,Te.symmetricKeys)}return e.prototype.clear=function(){return u(this,void 0,void 0,(function(){var e;return l(this,(function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}}))}))},e}(),et=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new Ke(this.logger,n),this.b64Encode=new ke,this.b64Decode=new xe,this.guidGenerator=new Oe(this.browserCrypto),this.pkceGenerator=new Fe(this.browserCrypto),this.cache=new Je(this.logger),this.performanceClient=t}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},e.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},e.prototype.generatePkceCodes=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.pkceGenerator.generateCodes()]}))}))},e.prototype.getPublicKeyThumbprint=function(t){var n;return u(this,void 0,void 0,(function(){var r,i,a,s,c,u,d,h;return l(this,(function(l){switch(l.label){case 0:return r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(o.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return i=l.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return a=l.sent(),s={e:a.e,kty:a.kty,n:a.n},c=Re.getSortedObjectString(s),[4,this.hashString(c)];case 3:return u=l.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return d=l.sent(),[4,this.browserCrypto.importJwk(d,!1,["sign"])];case 5:return h=l.sent(),[4,this.cache.asymmetricKeys.setItem(u,{privateKey:h,publicKey:i.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return l.sent(),r&&r.endMeasurement({success:!0}),[2,u]}}))}))},e.prototype.removeTokenBindingKey=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=n.sent(),[2,!t]}}))}))},e.prototype.clearKeystore=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}}))}))},e.prototype.signJwt=function(e,t,n){var r;return u(this,void 0,void 0,(function(){var i,a,s,c,u,d,h,f,p,m,g,v,y;return l(this,(function(l){switch(l.label){case 0:return i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(o.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=l.sent(),!a)throw Le.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=l.sent(),c=Re.getSortedObjectString(s),u=this.b64Encode.urlEncode(JSON.stringify({kid:t})),d=Ce.getShrHeaderString({kid:u,alg:s.alg}),h=this.b64Encode.urlEncode(d),e.cnf={jwk:JSON.parse(c)},f=this.b64Encode.urlEncode(JSON.stringify(e)),p=h+"."+f,m=Re.stringToArrayBuffer(p),[4,this.browserCrypto.sign(a.privateKey,m)];case 3:return g=l.sent(),v=this.b64Encode.urlEncodeArr(new Uint8Array(g)),y=p+"."+v,i&&i.endMeasurement({success:!0}),[2,y]}}))}))},e.prototype.hashString=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=r.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}}))}))},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}();(function(e){e[e["Error"]=0]="Error",e[e["Warning"]=1]="Warning",e[e["Info"]=2]="Info",e[e["Verbose"]=3]="Verbose",e[e["Trace"]=4]="Trace"})(Ze||(Ze={}));var tt,nt=function(){function e(t,n,r){this.level=Ze.Info;var i=function(){},o=t||e.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||i,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level="number"===typeof o.logLevel?o.logLevel:Ze.Info,this.correlationId=o.correlationId||S.EMPTY_STRING,this.packageName=n||S.EMPTY_STRING,this.packageVersion=r||S.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Ze.Info}},e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n,r=(new Date).toUTCString();n=Pe.isEmpty(t.correlationId)?Pe.isEmpty(this.correlationId)?"["+r+"]":"["+r+"] : ["+this.correlationId+"]":"["+r+"] : ["+t.correlationId+"]";var i=n+" : "+this.packageName+"@"+this.packageVersion+" : "+Ze[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},e.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},e.prototype.error=function(e,t){this.logMessage(e,{logLevel:Ze.Error,containsPii:!1,correlationId:t||S.EMPTY_STRING})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:Ze.Error,containsPii:!0,correlationId:t||S.EMPTY_STRING})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:Ze.Warning,containsPii:!1,correlationId:t||S.EMPTY_STRING})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:Ze.Warning,containsPii:!0,correlationId:t||S.EMPTY_STRING})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:Ze.Info,containsPii:!1,correlationId:t||S.EMPTY_STRING})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:Ze.Info,containsPii:!0,correlationId:t||S.EMPTY_STRING})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:Ze.Verbose,containsPii:!1,correlationId:t||S.EMPTY_STRING})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:Ze.Verbose,containsPii:!0,correlationId:t||S.EMPTY_STRING})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:Ze.Trace,containsPii:!1,correlationId:t||S.EMPTY_STRING})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:Ze.Trace,containsPii:!0,correlationId:t||S.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}(),rt=function(){function e(e,t,n,r,i,o){this.authority=t,this.libraryName=r,this.libraryVersion=i,this.applicationTelemetry=o,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(e,t){return{}},e.prototype.startPerformanceMeasuremeant=function(e,t){return{}},e.prototype.getIntFields=function(){return f},e.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name===e)return n.time;this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement")}else this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement")},e.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},e.prototype.addQueueMeasurement=function(e,t,n,r){if(t){if(0===n)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n)return void this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);var i={eventName:e,queueTime:n,manuallyCompleted:r},o=this.queueMeasurements.get(t);if(o)o.push(i),this.queueMeasurements.set(t,o);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var a=[i];this.queueMeasurements.set(t,a)}this.preQueueTimeByCorrelationId.delete(t)}else this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement")},e.prototype.startMeasurement=function(e,t){var n,r,i=this,o=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",o),this.logger.trace("PerformanceClient: Performance measurement started for "+e,o);var s=this.startPerformanceMeasuremeant(e,o);s.startMeasurement();var c={eventId:this.generateId(),status:a.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:o,appName:null===(n=this.applicationTelemetry)||void 0===n?void 0:n.appName,appVersion:null===(r=this.applicationTelemetry)||void 0===r?void 0:r.appVersion};return this.cacheEventByCorrelationId(c),{endMeasurement:function(e){return i.endMeasurement(g(g({},c),e),s)},discardMeasurement:function(){return i.discardMeasurements(c.correlationId)},addStaticFields:function(e){return i.addStaticFields(e,c.correlationId)},increment:function(e){return i.increment(e,c.correlationId)},measurement:s,event:c}},e.prototype.endMeasurement=function(e,t){var n,r,i=this,o=this.eventsByCorrelationId.get(e.correlationId);if(!o)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var s=e.eventId===o.eventId,c={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(c=this.getQueueInfo(e.correlationId),this.discardCache(o.correlationId)):null===(n=o.incompleteSubMeasurements)||void 0===n||n.delete(e.eventId),null===t||void 0===t||t.endMeasurement();var u=null===t||void 0===t?void 0:t.flushMeasurement();if(!u)return this.logger.trace("PerformanceClient: Performance measurement not taken",o.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+u+" ms",e.correlationId),!s)return o[e.name+"DurationMs"]=Math.floor(u),g({},o);var l=g(g({},o),e),d=0;return null===(r=l.incompleteSubMeasurements)||void 0===r||r.forEach((function(t){i.logger.trace("PerformanceClient: Incomplete submeasurement "+t.name+" found for "+e.name,l.correlationId),d++})),l.incompleteSubMeasurements=void 0,l=g(g({},l),{durationMs:Math.round(u),queuedTimeMs:c.totalQueueTime,queuedCount:c.totalQueueCount,queuedManuallyCompletedCount:c.manuallyCompletedCount,status:a.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(l,this.getIntFields()),this.emitEvents([l],e.correlationId),l},e.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,g(g({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var r in e)n.hasOwnProperty(r)||(n[r]=0),n[r]+=e[r];else this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,g({},e)))},e.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,r=0,i=0;return null===t||void 0===t||t.forEach((function(e){n+=e.queueTime,r++,i+=e.manuallyCompleted?1:0})),{totalQueueTime:n,totalQueueCount:r,manuallyCompletedCount:i}},e.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},e.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},e.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},e.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},e.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach((function(r,i){n.logger.trace("PerformanceClient: Emitting event to callback "+i,t),r.apply(null,[e])}))},e.prototype.truncateIntegralFields=function(e,t){t.forEach((function(t){t in e&&"number"===typeof e[t]&&(e[t]=Math.floor(e[t]))}))},e}(),it=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new it},t.prototype.startPerformanceMeasurement=function(){return new it},t.prototype.calculateQueuedTime=function(e,t){return 0},t.prototype.addQueueMeasurement=function(e,t,n){},t.prototype.setPreQueueTime=function(e,t){},t}(rt),at={createNewGuid:function(){var e="Crypto interface - createNewGuid() has not been implemented";throw ce.createUnexpectedError(e)},base64Decode:function(){var e="Crypto interface - base64Decode() has not been implemented";throw ce.createUnexpectedError(e)},base64Encode:function(){var e="Crypto interface - base64Encode() has not been implemented";throw ce.createUnexpectedError(e)},generatePkceCodes:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Crypto interface - generatePkceCodes() has not been implemented",ce.createUnexpectedError(e)}))}))},getPublicKeyThumbprint:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Crypto interface - getPublicKeyThumbprint() has not been implemented",ce.createUnexpectedError(e)}))}))},removeTokenBindingKey:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Crypto interface - removeTokenBindingKey() has not been implemented",ce.createUnexpectedError(e)}))}))},clearKeystore:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Crypto interface - clearKeystore() has not been implemented",ce.createUnexpectedError(e)}))}))},signJwt:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Crypto interface - signJwt() has not been implemented",ce.createUnexpectedError(e)}))}))},hashString:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Crypto interface - hashString() has not been implemented",ce.createUnexpectedError(e)}))}))}},st=function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case P.ID_TOKEN:return D.ID_TOKEN;case P.ACCESS_TOKEN:case P.ACCESS_TOKEN_WITH_AUTH_SCHEME:return D.ACCESS_TOKEN;case P.REFRESH_TOKEN:return D.REFRESH_TOKEN;default:throw Ne.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(e,t,n,r,i,o,a,s,c){var u=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,r,i,a),this.generateTargetForCacheKey(o),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(s)];return u.join(N.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){var n=[e,t];return n.join(N.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,r){var i=e===P.REFRESH_TOKEN&&r||t,o=[e,i,n||S.EMPTY_STRING];return o.join(N.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||S.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(e){return(e||S.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==j.BEARER.toLowerCase()?e.toLowerCase():S.EMPTY_STRING},e}(),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.createIdTokenEntity=function(e,n,r,i,o){var a=new t;return a.credentialType=P.ID_TOKEN,a.homeAccountId=e,a.environment=n,a.clientId=i,a.secret=r,a.realm=o,a},t.isIdTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e["credentialType"]===P.ID_TOKEN)},t}(st),ut={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},lt=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name="ClientConfigurationError",Object.setPrototypeOf(i,t.prototype),i}return m(t,e),t.createRedirectUriEmptyError=function(){return new t(ut.redirectUriNotSet.code,ut.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(ut.postLogoutUriNotSet.code,ut.postLogoutUriNotSet.desc)},t.createClaimsRequestParsingError=function(e){return new t(ut.claimsRequestParsingError.code,ut.claimsRequestParsingError.desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(ut.authorityUriInsecure.code,ut.authorityUriInsecure.desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(ut.urlParseError.code,ut.urlParseError.desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(ut.urlEmptyError.code,ut.urlEmptyError.desc)},t.createEmptyScopesArrayError=function(){return new t(ut.emptyScopesError.code,""+ut.emptyScopesError.desc)},t.createClientIdSingleScopeError=function(e){return new t(ut.clientIdSingleScopeError.code,ut.clientIdSingleScopeError.desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(ut.invalidPrompt.code,ut.invalidPrompt.desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(ut.invalidClaimsRequest.code,ut.invalidClaimsRequest.desc)},t.createEmptyLogoutRequestError=function(){return new t(ut.logoutRequestEmptyError.code,ut.logoutRequestEmptyError.desc)},t.createEmptyTokenRequestError=function(){return new t(ut.tokenRequestEmptyError.code,ut.tokenRequestEmptyError.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(ut.invalidCodeChallengeMethod.code,ut.invalidCodeChallengeMethod.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(ut.invalidCodeChallengeParams.code,ut.invalidCodeChallengeParams.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(ut.invalidCloudDiscoveryMetadata.code,ut.invalidCloudDiscoveryMetadata.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(ut.invalidAuthorityMetadata.code,ut.invalidAuthorityMetadata.desc)},t.createUntrustedAuthorityError=function(){return new t(ut.untrustedAuthority.code,ut.untrustedAuthority.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(ut.invalidAzureCloudInstance.code,ut.invalidAzureCloudInstance.desc)},t.createMissingSshJwkError=function(){return new t(ut.missingSshJwk.code,ut.missingSshJwk.desc)},t.createMissingSshKidError=function(){return new t(ut.missingSshKid.code,ut.missingSshKid.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(ut.missingNonceAuthenticationHeader.code,ut.missingNonceAuthenticationHeader.desc)},t.createInvalidAuthenticationHeaderError=function(e,n){return new t(ut.invalidAuthenticationHeader.code,ut.invalidAuthenticationHeader.desc+". Invalid header: "+e+". Details: "+n)},t.createAuthorityMismatchError=function(){return new t(ut.authorityMismatch.code,ut.authorityMismatch.desc)},t}(Ne),dt=function(){function e(e){var t=this,n=e?Pe.trimArrayEntries(b(e)):[],r=n?Pe.removeEmptyStringsFromArray(n):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach((function(e){return t.scopes.add(e)}))}return e.fromString=function(t){var n=t||S.EMPTY_STRING,r=n.split(" ");return new e(r)},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(S.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw lt.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=this.printScopesLowerCase().split(" "),r=new e(n);return!Pe.isEmpty(t)&&r.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&(this.scopes.size>=e.scopes.size&&e.asArray().every((function(e){return t.containsScope(e)})))},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return A.forEach((function(n){e.containsScope(n)&&(t+=1)})),this.scopes.size===t},e.prototype.appendScope=function(e){Pe.isEmpty(e)||this.scopes.add(e.trim())},e.prototype.appendScopes=function(e){var t=this;try{e.forEach((function(e){return t.appendScope(e)}))}catch(n){throw Ne.createAppendScopeSetError(n)}},e.prototype.removeScope=function(e){if(Pe.isEmpty(e))throw Ne.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;A.forEach((function(t){e.scopes.delete(t)}))},e.prototype.unionScopeSets=function(e){if(!e)throw Ne.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach((function(e){return t.add(e.toLowerCase())})),this.scopes.forEach((function(e){return t.add(e.toLowerCase())})),t},e.prototype.intersectingScopeSets=function(e){if(!e)throw Ne.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount(),i=t.size;return i<r+n},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var e=[];return this.scopes.forEach((function(t){return e.push(t)})),e},e.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return S.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}();
/*! @azure/msal-common v13.3.0 2023-08-24 */
function ht(e,t){if(Pe.isEmpty(e))throw Ne.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(r){throw Ne.createClientInfoDecodingError(r.message)}}function ft(e){if(Pe.isEmpty(e))throw Ne.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(N.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?S.EMPTY_STRING:t[1]}}(function(e){e[e["Default"]=0]="Default",e[e["Adfs"]=1]="Adfs",e[e["Dsts"]=2]="Dsts",e[e["Ciam"]=3]="Ciam"})(tt||(tt={}));
/*! @azure/msal-common v13.3.0 2023-08-24 */
var pt,mt=function(){function e(){}return e.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(N.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.generateType=function(){switch(this.authorityType){case M.ADFS_ACCOUNT_TYPE:return D.ADFS;case M.MSAV1_ACCOUNT_TYPE:return D.MSA;case M.MSSTS_ACCOUNT_TYPE:return D.MSSTS;case M.GENERIC_ACCOUNT_TYPE:return D.GENERIC;default:throw Ne.createUnexpectedAccountTypeError()}},e.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}},e.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||S.EMPTY_STRING,e.tenantId||S.EMPTY_STRING];return t.join(N.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n,r,i,o,a,s,c){var u,l,d,h,f,p,m=new e;m.authorityType=M.MSSTS_ACCOUNT_TYPE,m.clientInfo=t,m.homeAccountId=n,m.nativeAccountId=c;var g=s||i&&i.getPreferredCache();if(!g)throw Ne.createInvalidCacheEnvironmentError();if(m.environment=g,m.realm=(null===(u=null===r||void 0===r?void 0:r.claims)||void 0===u?void 0:u.tid)||S.EMPTY_STRING,r){m.idTokenClaims=r.claims,m.localAccountId=(null===(l=null===r||void 0===r?void 0:r.claims)||void 0===l?void 0:l.oid)||(null===(d=null===r||void 0===r?void 0:r.claims)||void 0===d?void 0:d.sub)||S.EMPTY_STRING;var v=null===(h=null===r||void 0===r?void 0:r.claims)||void 0===h?void 0:h.preferred_username,y=(null===(f=null===r||void 0===r?void 0:r.claims)||void 0===f?void 0:f.emails)?r.claims.emails[0]:null;m.username=v||y||S.EMPTY_STRING,m.name=null===(p=null===r||void 0===r?void 0:r.claims)||void 0===p?void 0:p.name}return m.cloudGraphHostName=o,m.msGraphHost=a,m},e.createGenericAccount=function(t,n,r,i,o,a){var s,c,u,l,d=new e;d.authorityType=r&&r.authorityType===tt.Adfs?M.ADFS_ACCOUNT_TYPE:M.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=S.EMPTY_STRING;var h=a||r&&r.getPreferredCache();if(!h)throw Ne.createInvalidCacheEnvironmentError();return n&&(d.localAccountId=(null===(s=null===n||void 0===n?void 0:n.claims)||void 0===s?void 0:s.oid)||(null===(c=null===n||void 0===n?void 0:n.claims)||void 0===c?void 0:c.sub)||S.EMPTY_STRING,d.username=(null===(u=null===n||void 0===n?void 0:n.claims)||void 0===u?void 0:u.upn)||S.EMPTY_STRING,d.name=(null===(l=null===n||void 0===n?void 0:n.claims)||void 0===l?void 0:l.name)||S.EMPTY_STRING,d.idTokenClaims=null===n||void 0===n?void 0:n.claims),d.environment=h,d.cloudGraphHostName=i,d.msGraphHost=o,d},e.generateHomeAccountId=function(e,t,n,r,i){var o,a=(null===(o=null===i||void 0===i?void 0:i.claims)||void 0===o?void 0:o.sub)?i.claims.sub:S.EMPTY_STRING;if(t===tt.Adfs||t===tt.Dsts)return a;if(e)try{var s=ht(e,r);if(!Pe.isEmpty(s.uid)&&!Pe.isEmpty(s.utid))return""+s.uid+N.CLIENT_INFO_SEPARATOR+s.utid}catch(c){}return n.verbose("No client info in response"),a},e.isAccountEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"))},e.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var r=!0;if(n){var i=e.idTokenClaims||{},o=t.idTokenClaims||{};r=i.iat===o.iat&&i.nonce===o.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r},e}(),gt=function(){function e(t,n){if(Pe.isEmpty(t))throw Ne.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(e,t){var n=Pe.decodeAuthToken(e);try{var r=n.JWSPayload,i=t.base64Decode(r);return JSON.parse(i)}catch(o){throw Ne.createTokenParsingError(o)}},e.checkMaxAge=function(e,t){var n=3e5;if(0===t||Date.now()-n>e+t)throw Ne.createMaxAgeTranspiredError()},e}(),vt="@azure/msal-common",yt="13.3.0",bt=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(vt,yt)}return e.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce((function(t,n){var r=e.getAccount(n);return r?(t.push(r),t):t}),[]);if(n.length<1)return[];var r=n.map((function(t){return e.getAccountInfoFromEntity(t)}));return r},e.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},e.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new gt(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return v(this,void 0,void 0,(function(){return y(this,(function(t){switch(t.label){case 0:if(!e)throw Ne.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}}))}))},e.prototype.saveAccessToken=function(e){return v(this,void 0,void 0,(function(){var t,n,r,i,o=this;return y(this,(function(a){switch(a.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),r=dt.fromString(e.target),i=[],n.accessToken.forEach((function(e){if(o.accessTokenKeyMatchesFilter(e,t,!1)){var n=o.getAccessTokenCredential(e);if(n&&o.credentialMatchesFilter(n,t)){var a=dt.fromString(n.target);a.intersectingScopeSets(r)&&i.push(o.removeAccessToken(e))}}})),[4,Promise.all(i)];case 1:return a.sent(),this.setAccessTokenCredential(e),[2]}}))}))},e.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),r=[];return n.forEach((function(n){if(t.isAccountKey(n,e.homeAccountId,e.realm)){var i=t.getAccount(n);i&&(e.homeAccountId&&!t.matchHomeAccountId(i,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(i,e.localAccountId)||e.username&&!t.matchUsername(i,e.username)||e.environment&&!t.matchEnvironment(i,e.environment)||e.realm&&!t.matchRealm(i,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(i,e.nativeAccountId)||r.push(i))}})),r},e.prototype.isAccountKey=function(e,t,n){return!(e.split(N.CACHE_KEY_SEPARATOR).length<3)&&(!(t&&!e.toLowerCase().includes(t.toLowerCase()))&&!(n&&!e.toLowerCase().includes(n.toLowerCase())))},e.prototype.isCredentialKey=function(e){if(e.split(N.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(P.ID_TOKEN.toLowerCase())&&-1===t.indexOf(P.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(P.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(P.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(P.REFRESH_TOKEN.toLowerCase())>-1){var n=""+P.REFRESH_TOKEN+N.CACHE_KEY_SEPARATOR+this.clientId+N.CACHE_KEY_SEPARATOR,r=""+P.REFRESH_TOKEN+N.CACHE_KEY_SEPARATOR+B+N.CACHE_KEY_SEPARATOR;if(-1===t.indexOf(n.toLowerCase())&&-1===t.indexOf(r.toLowerCase()))return!1}else if(-1===t.indexOf(this.clientId.toLowerCase()))return!1;return!0},e.prototype.credentialMatchesFilter=function(e,t){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"===typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target))return!1;if((t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash)return!1;if(e.credentialType===P.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===j.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}return!0},e.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,r=this.getKeys(),i={};return r.forEach((function(r){if(n.isAppMetadata(r)){var o=n.getAppMetadata(r);o&&(e&&!n.matchEnvironment(o,e)||t&&!n.matchClientId(o,t)||(i[r]=o))}})),i},e.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),r=null;return n.forEach((function(n){if(t.isAuthorityMetadata(n)&&-1!==n.indexOf(t.clientId)){var i=t.getAuthorityMetadata(n);i&&-1!==i.aliases.indexOf(e)&&(r=i)}})),r},e.prototype.removeAllAccounts=function(){return v(this,void 0,void 0,(function(){var e,t,n=this;return y(this,(function(r){switch(r.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach((function(e){t.push(n.removeAccount(e))})),[4,Promise.all(t)];case 1:return r.sent(),[2]}}))}))},e.prototype.removeAccount=function(e){return v(this,void 0,void 0,(function(){var t;return y(this,(function(n){switch(n.label){case 0:if(t=this.getAccount(e),!t)throw Ne.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}}))}))},e.prototype.removeAccountContext=function(e){return v(this,void 0,void 0,(function(){var t,n,r,i=this;return y(this,(function(o){switch(o.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),r=[],t.idToken.forEach((function(e){0===e.indexOf(n)&&i.removeIdToken(e)})),t.accessToken.forEach((function(e){0===e.indexOf(n)&&r.push(i.removeAccessToken(e))})),t.refreshToken.forEach((function(e){0===e.indexOf(n)&&i.removeRefreshToken(e)})),[4,Promise.all(r)];case 1:return o.sent(),[2]}}))}))},e.prototype.removeAccessToken=function(e){return v(this,void 0,void 0,(function(){var t,n,r;return y(this,(function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==P.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==j.POP)return[3,4];if(n=t,r=n.keyId,!r)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(r)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),Ne.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}}))}))},e.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach((function(t){e.isAppMetadata(t)&&e.removeItem(t)})),!0},e.prototype.readCacheRecord=function(e,t,n){var r=this.getTokenKeys(),i=this.readAccountFromCache(e),o=this.getIdToken(e,r),a=this.getAccessToken(e,t,r),s=this.getRefreshToken(e,!1,r),c=this.readAppMetadataFromCache(n);return i&&o&&(i.idTokenClaims=new gt(o.secret,this.cryptoImpl).claims),{account:i,idToken:o,accessToken:a,refreshToken:s,appMetadata:c}},e.prototype.readAccountFromCache=function(e){var t=mt.generateAccountCacheKey(e);return this.getAccount(t)},e.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var n={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:P.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},r=this.getIdTokensByFilter(n,t),i=r.length;if(i<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(i>1)throw Ne.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),r[0]},e.prototype.getIdTokensByFilter=function(e,t){var n=this,r=t&&t.idToken||this.getTokenKeys().idToken,i=[];return r.forEach((function(t){if(n.idTokenKeyMatchesFilter(t,g({clientId:n.clientId},e))){var r=n.getIdTokenCredential(t);r&&n.credentialMatchesFilter(r,e)&&i.push(r)}})),i},e.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return(!t.clientId||-1!==n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase()))},e.prototype.removeIdToken=function(e){this.removeItem(e)},e.prototype.removeRefreshToken=function(e){this.removeItem(e)},e.prototype.getAccessToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=dt.createSearchScopes(t.scopes),o=t.authenticationScheme||j.BEARER,a=o&&o.toLowerCase()!==j.BEARER.toLowerCase()?P.ACCESS_TOKEN_WITH_AUTH_SCHEME:P.ACCESS_TOKEN,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:a,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:o,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},c=n&&n.accessToken||this.getTokenKeys().accessToken,u=[];c.forEach((function(e){if(r.accessTokenKeyMatchesFilter(e,s,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,s)&&u.push(t)}}));var l=u.length;if(l<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(l>1)throw Ne.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0]},e.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var r=e.toLowerCase();if(t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===r.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===r.indexOf(t.realm.toLowerCase()))return!1;if(t.requestedClaimsHash&&-1===r.indexOf(t.requestedClaimsHash.toLowerCase()))return!1;if(t.target)for(var i=t.target.asArray(),o=0;o<i.length;o++){if(n&&!r.includes(i[o].toLowerCase()))return!1;if(!n&&r.includes(i[o].toLowerCase()))return!0}return!0},e.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),r=[];return n.accessToken.forEach((function(n){if(t.accessTokenKeyMatchesFilter(n,e,!0)){var i=t.getAccessTokenCredential(n);i&&t.credentialMatchesFilter(i,e)&&r.push(i)}})),r},e.prototype.getRefreshToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=t?B:void 0,o={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:P.REFRESH_TOKEN,clientId:this.clientId,familyId:i},a=n&&n.refreshToken||this.getTokenKeys().refreshToken,s=[];a.forEach((function(e){if(r.refreshTokenKeyMatchesFilter(e,o)){var t=r.getRefreshTokenCredential(e);t&&r.credentialMatchesFilter(t,o)&&s.push(t)}}));var c=s.length;return c<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),s[0])},e.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return(!t.familyId||-1!==n.indexOf(t.familyId.toLowerCase()))&&(!(!t.familyId&&t.clientId&&-1===n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase())))},e.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),r=Object.keys(n).map((function(e){return n[e]})),i=r.length;if(i<1)return null;if(i>1)throw Ne.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==B)},e.prototype.matchHomeAccountId=function(e,t){return!("string"!==typeof e.homeAccountId||t!==e.homeAccountId)},e.prototype.matchLocalAccountId=function(e,t){return!("string"!==typeof e.localAccountId||t!==e.localAccountId)},e.prototype.matchUsername=function(e,t){return!("string"!==typeof e.username||t.toLowerCase()!==e.username.toLowerCase())},e.prototype.matchUserAssertionHash=function(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)},e.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},e.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},e.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},e.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},e.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},e.prototype.matchNativeAccountId=function(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)},e.prototype.matchTarget=function(e,t){var n=e.credentialType!==P.ACCESS_TOKEN&&e.credentialType!==P.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var r=dt.fromString(e.target);return r.containsScopeSet(t)},e.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},e.prototype.matchKeyId=function(e,t){return!(!e.keyId||e.keyId!==t)},e.prototype.isAppMetadata=function(e){return-1!==e.indexOf(F)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(H.CACHE_KEY)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return H.CACHE_KEY+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),_t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.setAccount=function(){var e="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAccount=function(){var e="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setIdTokenCredential=function(){var e="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getIdTokenCredential=function(){var e="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setAccessTokenCredential=function(){var e="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAccessTokenCredential=function(){var e="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setRefreshTokenCredential=function(){var e="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getRefreshTokenCredential=function(){var e="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setAppMetadata=function(){var e="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAppMetadata=function(){var e="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setServerTelemetry=function(){var e="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getServerTelemetry=function(){var e="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setAuthorityMetadata=function(){var e="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAuthorityMetadata=function(){var e="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAuthorityMetadataKeys=function(){var e="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setThrottlingCache=function(){var e="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getThrottlingCache=function(){var e="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.removeItem=function(){var e="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.containsKey=function(){var e="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getKeys=function(){var e="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAccountKeys=function(){var e="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getTokenKeys=function(){var e="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.clear=function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Storage interface - clear() has not been implemented for the cacheStorage interface.",ce.createUnexpectedError(e)}))}))},t.prototype.updateCredentialCacheKey=function(){var e="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t}(bt),Et=function(){function e(){}return e.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0,i=e.nowSeconds()+n;return i>r},e.wasClockTurnedBack=function(t){var n=Number(t);return n>e.nowSeconds()},e.delay=function(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))},e}(),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.createAccessTokenEntity=function(e,n,r,i,o,a,s,c,u,l,d,h,f,p,m){var g,v,y=new t;y.homeAccountId=e,y.credentialType=P.ACCESS_TOKEN,y.secret=r;var b=Et.nowSeconds();if(y.cachedAt=b.toString(),y.expiresOn=s.toString(),y.extendedExpiresOn=c.toString(),l&&(y.refreshOn=l.toString()),y.environment=n,y.clientId=i,y.realm=o,y.target=a,y.userAssertionHash=h,y.tokenType=Pe.isEmpty(d)?j.BEARER:d,p&&(y.requestedClaims=p,y.requestedClaimsHash=m),(null===(g=y.tokenType)||void 0===g?void 0:g.toLowerCase())!==j.BEARER.toLowerCase())switch(y.credentialType=P.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case j.POP:var _=gt.extractTokenClaims(r,u);if(!(null===(v=null===_||void 0===_?void 0:_.cnf)||void 0===v?void 0:v.kid))throw Ne.createTokenClaimsRequiredError();y.keyId=_.cnf.kid;break;case j.SSH:y.keyId=f}return y},t.isAccessTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e["credentialType"]===P.ACCESS_TOKEN||e["credentialType"]===P.ACCESS_TOKEN_WITH_AUTH_SCHEME))},t}(st),Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.createRefreshTokenEntity=function(e,n,r,i,o,a){var s=new t;return s.clientId=i,s.credentialType=P.REFRESH_TOKEN,s.environment=n,s.homeAccountId=e,s.secret=r,s.userAssertionHash=a,o&&(s.familyId=o),s},t.isRefreshTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e["credentialType"]===P.REFRESH_TOKEN)},t}(st),It=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){var n=[F,e,t];return n.join(N.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var i=new e;return i.clientId=t,i.environment=n,r&&(i.familyId=r),i},e.isAppMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(F)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"))},e}(),St=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(V.CACHE_KEY),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),Ct=function(){function e(){this.expiresAt=Et.nowSeconds()+H.REFRESH_TIME_SECONDS}return e.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},e.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},e.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},e.prototype.resetExpiresAt=function(){this.expiresAt=Et.nowSeconds()+H.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=Et.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(H.CACHE_KEY)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"))},e}(),At=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(X.THROTTLING_PREFIX));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),Ot=function(){function e(){}return e.setRequestState=function(t,n,r){var i=e.generateLibraryState(t,r);return Pe.isEmpty(n)?i:""+i+S.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw Ne.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var r=JSON.stringify(n);return e.base64Encode(r)},e.parseRequestState=function(e,t){if(!e)throw Ne.createNoCryptoObjectError("parseRequestState");if(Pe.isEmpty(t))throw Ne.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(S.RESOURCE_DELIM),r=n[0],i=n.length>1?n.slice(1).join(S.RESOURCE_DELIM):S.EMPTY_STRING,o=e.base64Decode(r),a=JSON.parse(o);return{userRequestState:Pe.isEmpty(i)?S.EMPTY_STRING:i,libraryState:a}}catch(s){throw Ne.createInvalidStateError(t,s)}},e}();(function(e){e["HOME_ACCOUNT_ID"]="home_account_id",e["UPN"]="UPN"})(pt||(pt={}));
/*! @azure/msal-browser v2.38.2 2023-08-24 */
var Rt,kt,xt=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==J.LocalStorage&&e!==J.SessionStorage)throw Ve.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw Ve.createStorageNotSupportedError(e)},e.prototype.getItem=function(e){return this.windowStorage.getItem(e)},e.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},e.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},e}(),Mt=function(){function e(t){if(this._urlString=t,Pe.isEmpty(this._urlString))throw lt.createUrlEmptyError();Pe.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return Pe.endsWith(t,"?")?t=t.slice(0,-1):Pe.endsWith(t,"?/")&&(t=t.slice(0,-2)),Pe.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw lt.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw lt.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw lt.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return Pe.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return!t||0===r.length||r[0]!==w.COMMON&&r[0]!==w.ORGANIZATIONS||(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw lt.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},r=n.AbsolutePath.split("/");return r=r.filter((function(e){return e&&e.length>0})),n.PathSegments=r,!Pe.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},e.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw lt.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===S.FORWARD_SLASH){var r=new e(n),i=r.getUrlComponents();return i.Protocol+"//"+i.HostNameAndPort+t}return t},e.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):S.EMPTY_STRING},e.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):S.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(Pe.isEmpty(t))return{};var n=e.parseHash(t),r=Pe.queryStringToObject(Pe.isEmpty(n)?t:n);if(!r)throw Ne.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(Pe.isEmpty(t))return{};var n=e.parseQueryString(t),r=Pe.queryStringToObject(Pe.isEmpty(n)?t:n);if(!r)throw Ne.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(Pe.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}(),Nt=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(Pe.isEmpty(t))return null;try{var n=Ot.parseRequestState(e,t);return n.libraryState.meta}catch(r){throw Ne.createInvalidStateError(t,r)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new Mt(e);return Mt.getDeserializedHash(t.getHash())},e}(),Pt=function(e){function t(t,n,r,i){var o=e.call(this,t,r,i)||this;return o.COOKIE_LIFE_MULTIPLIER=864e5,o.cacheConfig=n,o.logger=i,o.internalStorage=new Xe,o.browserStorage=o.setupBrowserStorage(o.cacheConfig.cacheLocation),o.temporaryCacheStorage=o.setupTemporaryCacheStorage(o.cacheConfig.temporaryCacheLocation,o.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(o.migrateCacheEntries(),o.createKeyMaps()),o}return i(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case J.LocalStorage:case J.SessionStorage:try{return new xt(e)}catch(t){this.logger.verbose(t);break}}return this.cacheConfig.cacheLocation=J.MemoryStorage,new Xe},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case J.LocalStorage:case J.SessionStorage:try{return new xt(e||J.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case J.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=S.CACHE_PREFIX+"."+E.ID_TOKEN,n=S.CACHE_PREFIX+"."+E.CLIENT_INFO,r=S.CACHE_PREFIX+"."+E.ERROR,i=S.CACHE_PREFIX+"."+E.ERROR_DESC,o=this.browserStorage.getItem(t),a=this.browserStorage.getItem(n),s=this.browserStorage.getItem(r),c=this.browserStorage.getItem(i),u=[o,a,s,c],l=[E.ID_TOKEN,E.CLIENT_INFO,E.ERROR,E.ERROR_DESC];l.forEach((function(t,n){return e.migrateCacheEntry(t,u[n])}))},t.prototype.migrateCacheEntry=function(e,t){t&&this.setTemporaryCache(e,t,!0)},t.prototype.createKeyMaps=function(){var e=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var t=this.getItem(ne.ACCOUNT_KEYS),n=this.getItem(ne.TOKEN_KEYS+"."+this.clientId);if(t&&n)this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");else{var r=this.browserStorage.getKeys();r.forEach((function(t){if(e.isCredentialKey(t)){var n=e.getItem(t);if(n){var r=e.validateAndParseJson(n);if(r&&r.hasOwnProperty("credentialType"))switch(r["credentialType"]){case P.ID_TOKEN:if(ct.isIdTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+t+" found, saving key to token key map");var i=bt.toObject(new ct,r),o=e.updateCredentialCacheKey(t,i);return void e.addTokenKey(o,P.ID_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+t);break;case P.ACCESS_TOKEN:case P.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(wt.isAccessTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+t+" found, saving key to token key map");var a=bt.toObject(new wt,r);o=e.updateCredentialCacheKey(t,a);return void e.addTokenKey(o,P.ACCESS_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+t);break;case P.REFRESH_TOKEN:if(Tt.isRefreshTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+t+" found, saving key to token key map");var s=bt.toObject(new Tt,r);o=e.updateCredentialCacheKey(t,s);return void e.addTokenKey(o,P.REFRESH_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+t);break}}}if(e.isAccountKey(t)){n=e.getItem(t);if(n){var c=e.validateAndParseJson(n);c&&mt.isAccountEntity(c)&&(e.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+t+" found, saving key to account key map"),e.addAccountKeyToMap(t))}}}))}},t.prototype.validateAndParseJson=function(e){try{var t=JSON.parse(e);return t&&"object"===typeof t?t:null}catch(n){return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,t){this.browserStorage.setItem(e,t)},t.prototype.getAccount=function(e){this.logger.trace("BrowserCacheManager.getAccount called");var t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;var n=this.validateAndParseJson(t);return n&&mt.isAccountEntity(n)?bt.toObject(new mt,n):(this.removeAccountKeyFromMap(e),null)},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var e=this.getItem(ne.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+e);var t=this.getAccountKeys();-1===t.indexOf(e)?(t.push(e),this.setItem(ne.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+e);var t=this.getAccountKeys(),n=t.indexOf(e);n>-1?(t.splice(n,1),this.setItem(ne.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return e.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]}))}))},t.prototype.removeIdToken=function(t){e.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,P.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,P.ACCESS_TOKEN),[2]}))}))},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,P.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(ne.TOKEN_KEYS+"."+this.clientId);if(e){var t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");var n=this.getTokenKeys();switch(t){case P.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case P.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case P.REFRESH_TOKEN:-1===n.refreshToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),n.refreshToken.push(e));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+t),Ne.createUnexpectedCredentialTypeError()}this.setItem(ne.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.removeTokenKey=function(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");var n=this.getTokenKeys();switch(t){case P.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+e+" from map");var r=n.idToken.indexOf(e);r>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),n.idToken.splice(r,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case P.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+e+" from map");var i=n.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),n.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case P.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+e+" from map");var o=n.refreshToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),n.refreshToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+t),Ne.createUnexpectedCredentialTypeError()}this.setItem(ne.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.getIdTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,P.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&ct.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),bt.toObject(new ct,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,P.ID_TOKEN),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,P.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,P.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&wt.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),bt.toObject(new wt,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,P.ACCESS_TOKEN),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,P.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,P.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Tt.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),bt.toObject(new Tt,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,P.REFRESH_TOKEN),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,P.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&It.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),bt.toObject(new It,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var t=e.generateAppMetadataKey();this.setItem(t,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&St.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),bt.toObject(new St,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))},t.prototype.getAuthorityMetadata=function(e){var t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Ct.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),bt.toObject(new Ct,n)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this,t=this.internalStorage.getKeys();return t.filter((function(t){return e.isAuthorityMetadata(t)}))},t.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(re.WRAPPER_SKU,e),this.internalStorage.setItem(re.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){var e=this.internalStorage.getItem(re.WRAPPER_SKU)||S.EMPTY_STRING,t=this.internalStorage.getItem(re.WRAPPER_VER)||S.EMPTY_STRING;return[e,t]},t.prototype.setAuthorityMetadata=function(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(E.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var n=this.generateCacheKey(E.ACTIVE_ACCOUNT),r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var i=this.getAccountInfoByFilter({localAccountId:r})[0]||null;return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(i),i):null}var o=this.validateAndParseJson(t);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(E.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(E.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");var r={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId};this.browserStorage.setItem(t,JSON.stringify(r)),this.browserStorage.setItem(n,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(n)},t.prototype.getAccountInfoByFilter=function(e){var t=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+t.length+" accounts found"),t.filter((function(t){return(!e.username||e.username.toLowerCase()===t.username.toLowerCase())&&((!e.homeAccountId||e.homeAccountId===t.homeAccountId)&&((!e.localAccountId||e.localAccountId===t.localAccountId)&&((!e.tenantId||e.tenantId===t.tenantId)&&(!e.environment||e.environment===t.environment))))}))},t.prototype.getAccountInfoByHints=function(e,t){var n=this.getAllAccounts().filter((function(n){if(t){var r=n.idTokenClaims&&n.idTokenClaims["sid"];return t===r}return!!e&&e===n.username}));if(1===n.length)return n[0];if(n.length>1)throw Ne.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&At.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),bt.toObject(new At,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))},t.prototype.getTemporaryCache=function(e,t){var n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var r=this.getItemCookie(n);if(r)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),r}var i=this.temporaryCacheStorage.getItem(n);if(!i){if(this.cacheConfig.cacheLocation===J.LocalStorage){var o=this.browserStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),i},t.prototype.setTemporaryCache=function(e,t,n){var r=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,t))},t.prototype.removeItem=function(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return h(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return u(this,void 0,void 0,(function(){var e=this;return l(this,(function(t){switch(t.label){case 0:return[4,this.removeAllAccounts()];case 1:return t.sent(),this.removeAppMetadata(),this.getKeys().forEach((function(t){!e.browserStorage.containsKey(t)&&!e.temporaryCacheStorage.containsKey(t)||-1===t.indexOf(S.CACHE_PREFIX)&&-1===t.indexOf(e.clientId)||e.removeItem(t)})),this.internalStorage.clear(),[2]}}))}))},t.prototype.clearTokensAndKeysWithClaims=function(){return u(this,void 0,void 0,(function(){var e,t,n=this;return l(this,(function(r){switch(r.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),e=this.getTokenKeys(),t=[],e.accessToken.forEach((function(e){var r=n.getAccessTokenCredential(e);(null===r||void 0===r?void 0:r.requestedClaimsHash)&&e.includes(r.requestedClaimsHash.toLowerCase())&&t.push(n.removeAccessToken(e))})),[4,Promise.all(t)];case 1:return r.sent(),t.length>0&&this.logger.warning(t.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}}))}))},t.prototype.setItemCookie=function(e,t,n){var r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;SameSite=Lax;";if(n){var i=this.getCookieExpirationTime(n);r+="expires="+i+";"}this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r},t.prototype.getItemCookie=function(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){var i=n[r];while(" "===i.charAt(0))i=i.substring(1);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return S.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var e=this,t=S.CACHE_PREFIX+"."+this.clientId,n=document.cookie.split(";");n.forEach((function(n){while(" "===n.charAt(0))n=n.substring(1);if(0===n.indexOf(t)){var r=n.split("=")[0];e.clearItemCookie(r)}}))},t.prototype.clearItemCookie=function(e){this.setItemCookie(e,S.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(e){var t=new Date,n=new Date(t.getTime()+e*this.COOKIE_LIFE_MULTIPLIER);return n.toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(e){var t=this.validateAndParseJson(e);return t?JSON.stringify(e):Pe.startsWith(e,S.CACHE_PREFIX)||Pe.startsWith(e,E.ADAL_ID_TOKEN)?e:S.CACHE_PREFIX+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var t=Ot.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(te.AUTHORITY+"."+t)},t.prototype.generateNonceKey=function(e){var t=Ot.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(te.NONCE_IDTOKEN+"."+t)},t.prototype.generateStateKey=function(e){var t=Ot.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(te.REQUEST_STATE+"."+t)},t.prototype.getCachedAuthority=function(e){var t=this.generateStateKey(e),n=this.getTemporaryCache(t);if(!n)return null;var r=this.generateAuthorityKey(n);return this.getTemporaryCache(r)},t.prototype.updateCacheEntries=function(e,t,n,r,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var o=this.generateStateKey(e);this.setTemporaryCache(o,e,!1);var a=this.generateNonceKey(e);this.setTemporaryCache(a,t,!1);var s=this.generateAuthorityKey(e);if(this.setTemporaryCache(s,n,!1),i){var c={credential:i.homeAccountId,type:pt.HOME_ACCOUNT_ID};this.setTemporaryCache(te.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(!Pe.isEmpty(r)){c={credential:r,type:pt.UPN};this.setTemporaryCache(te.CCS_CREDENTIAL,JSON.stringify(c),!0)}},t.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),Pe.isEmpty(e)||this.getKeys().forEach((function(n){-1!==n.indexOf(e)&&t.removeItem(n)})),e&&(this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(te.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(te.ORIGIN_URI)),this.removeItem(this.generateCacheKey(te.URL_HASH)),this.removeItem(this.generateCacheKey(te.CORRELATION_ID)),this.removeItem(this.generateCacheKey(te.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(te.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){var t=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(t);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+n),this.resetRequestCache(n||S.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(e){var t=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach((function(n){if(-1!==n.indexOf(te.REQUEST_STATE)){var r=t.temporaryCacheStorage.getItem(n);if(r){var i=Nt.extractBrowserRequestState(t.cryptoImpl,r);i&&i.interactionType===e&&(t.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+r),t.resetRequestCache(r))}}})),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(e,t){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var n=t.base64Encode(JSON.stringify(e));this.setTemporaryCache(te.REQUEST_PARAMS,n,!0)},t.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(te.REQUEST_PARAMS,!0);if(!n)throw Le.createNoTokenRequestCacheError();var r=this.validateAndParseJson(t.base64Decode(n));if(!r)throw Le.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(te.REQUEST_PARAMS)),Pe.isEmpty(r.authority)){var i=this.generateAuthorityKey(e),o=this.getTemporaryCache(i);if(!o)throw Le.createNoCachedAuthorityError();r.authority=o}return r},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(te.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},t.prototype.isInteractionInProgress=function(e){var t=this.getInteractionInProgress();return e?t===this.clientId:!!t},t.prototype.getInteractionInProgress=function(){var e=S.CACHE_PREFIX+"."+te.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},t.prototype.setInteractionInProgress=function(e){var t=S.CACHE_PREFIX+"."+te.INTERACTION_STATUS_KEY;if(e){if(this.getInteractionInProgress())throw Le.createInteractionInProgressError();this.setTemporaryCache(t,this.clientId,!1)}else e||this.getInteractionInProgress()!==this.clientId||this.removeItem(t)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(E.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(E.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(E.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(E.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=t||e;if(n){var r=new gt(n,this.cryptoImpl);if(r.claims&&r.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"),r.claims.preferred_username;if(r.claims&&r.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),r.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},t.prototype.updateCredentialCacheKey=function(e,t){var n=t.generateCredentialKey();if(e!==n){var r=this.getItem(e);if(r)return this.removeItem(e),this.setItem(n,r),this.logger.verbose("Updated an outdated "+t.credentialType+" cache key"),n;this.logger.error("Attempted to update an outdated "+t.credentialType+" cache key but no item matching the outdated key was found in storage")}return e},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(te.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(te.REDIRECT_CONTEXT,e,!0)},t}(bt),Dt=function(e,t){var n={cacheLocation:J.MemoryStorage,temporaryCacheLocation:J.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new Pt(e,n,at,t)};(function(e){e["AAD"]="AAD",e["OIDC"]="OIDC"})(Rt||(Rt={})),function(e){e[e["None"]=0]="None",e["AzurePublic"]="https://login.microsoftonline.com",e["AzurePpe"]="https://login.windows-ppe.net",e["AzureChina"]="https://login.chinacloudapi.cn",e["AzureGermany"]="https://login.microsoftonline.de",e["AzureUsGovernment"]="https://login.microsoftonline.us"}(kt||(kt={}));
/*! @azure/msal-common v13.3.0 2023-08-24 */
var Lt=300,Ut={tokenRenewalOffsetSeconds:Lt,preventCorsPreflight:!1},Ft={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Ze.Info,correlationId:S.EMPTY_STRING},qt={claimsBasedCachingEnabled:!0},Bt={sendGetRequestAsync:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Network interface - sendGetRequestAsync() has not been implemented",ce.createUnexpectedError(e)}))}))},sendPostRequestAsync:function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){throw e="Network interface - sendPostRequestAsync() has not been implemented",ce.createUnexpectedError(e)}))}))}},Ht={sku:S.SKU,version:yt,cpu:S.EMPTY_STRING,os:S.EMPTY_STRING},jt={clientSecret:S.EMPTY_STRING,clientAssertion:void 0},Vt={azureCloudInstance:kt.None,tenant:""+S.DEFAULT_COMMON_TENANT},Gt={application:{appName:"",appVersion:""}};function zt(e){var t=e.authOptions,n=e.systemOptions,r=e.loggerOptions,i=e.cacheOptions,o=e.storageInterface,a=e.networkInterface,s=e.cryptoInterface,c=e.clientCredentials,u=e.libraryInfo,l=e.telemetry,d=e.serverTelemetryManager,h=e.persistencePlugin,f=e.serializableCache,p=g(g({},Ft),r);return{authOptions:$t(t),systemOptions:g(g({},Ut),n),loggerOptions:p,cacheOptions:g(g({},qt),i),storageInterface:o||new _t(t.clientId,at,new nt(p)),networkInterface:a||Bt,cryptoInterface:s||at,clientCredentials:c||jt,libraryInfo:g(g({},Ht),u),telemetry:g(g({},Gt),l),serverTelemetryManager:d||null,persistencePlugin:h||null,serializableCache:f||null}}function $t(e){return g({clientCapabilities:[],azureCloudOptions:Vt,skipAuthorityMetadataCache:!1},e)}
/*! @azure/msal-common v13.3.0 2023-08-24 */
var Yt={sendGetRequestAsync:function(){var e="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(ce.createUnexpectedError(e))},sendPostRequestAsync:function(){var e="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(ce.createUnexpectedError(e))}},Kt=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i;return l(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,fetch(e,{method:ee.GET,headers:this.getFetchHeaders(t)})];case 1:return n=o.sent(),[3,3];case 2:throw r=o.sent(),window.navigator.onLine?Le.createGetRequestFailedError(r,e):Le.createNoNetworkConnectivityError();case 3:return o.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=o.sent(),i.status=n.status,i)];case 5:throw o.sent(),Le.createFailedToParseNetworkResponseError(e);case 6:return[2]}}))}))},e.prototype.sendPostRequestAsync=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i,o;return l(this,(function(a){switch(a.label){case 0:n=t&&t.body||S.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(e,{method:ee.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return r=a.sent(),[3,4];case 3:throw i=a.sent(),window.navigator.onLine?Le.createPostRequestFailedError(i,e):Le.createNoNetworkConnectivityError();case 4:return a.trys.push([4,6,,7]),o={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(o.body=a.sent(),o.status=r.status,o)];case 6:throw a.sent(),Le.createFailedToParseNetworkResponseError(e);case 7:return[2]}}))}))},e.prototype.getFetchHeaders=function(e){var t=new Headers;if(!e||!e.headers)return t;var n=e.headers;return Object.keys(n).forEach((function(e){t.append(e,n[e])})),t},e.prototype.getHeaderDict=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t},e}(),Wt=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,this.sendRequestAsync(e,ee.GET,t)]}))}))},e.prototype.sendPostRequestAsync=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,this.sendRequestAsync(e,ee.POST,t)]}))}))},e.prototype.sendRequestAsync=function(e,t,n){var r=this;return new Promise((function(i,o){var a=new XMLHttpRequest;if(a.open(t,e,!0),r.setXhrHeaders(a,n),a.onload=function(){(a.status<200||a.status>=300)&&(t===ee.POST?o(Le.createPostRequestFailedError("Failed with status "+a.status,e)):o(Le.createGetRequestFailedError("Failed with status "+a.status,e)));try{var n=JSON.parse(a.responseText),s={headers:r.getHeaderDict(a),body:n,status:a.status};i(s)}catch(c){o(Le.createFailedToParseNetworkResponseError(e))}},a.onerror=function(){window.navigator.onLine?t===ee.POST?o(Le.createPostRequestFailedError("Failed with status "+a.status,e)):o(Le.createGetRequestFailedError("Failed with status "+a.status,e)):o(Le.createNoNetworkConnectivityError())},t===ee.POST&&n&&n.body)a.send(n.body);else{if(t!==ee.GET)throw Le.createHttpMethodNotImplementedError(t);a.send()}}))},e.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach((function(t){e.setRequestHeader(t,n[t])}))}},e.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),n=t.trim().split(/[\r\n]+/),r={};return n.forEach((function(e){var t=e.split(": "),n=t.shift(),i=t.join(": ");n&&i&&(r[n]=i)})),r},e}(),Xt=function(){function e(){}return e.clearHash=function(e){e.location.hash=S.EMPTY_STRING,"function"===typeof e.history.replaceState&&e.history.replaceState(null,S.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},e.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):S.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return"undefined"!==typeof window&&!!window.opener&&window.opener!==window&&"string"===typeof window.name&&0===window.name.indexOf(pe.POPUP_NAME_PREFIX+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new Mt(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Kt:new Wt},e.blockReloadInHiddenIframes=function(){var t=Mt.hashContainsKnownProperties(window.location.hash);if(t&&e.isInIframe())throw Le.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===oe.Redirect&&r&&!n)throw Le.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw Le.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw Le.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw Le.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/"),i=t>0||n>0,o=r>0;return i||o},e}(),Qt=function(){function e(){}return e.prototype.navigateInternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.prototype.navigateExternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise((function(e){setTimeout((function(){e(!0)}),t.timeout)}))},e}(),Zt=6e4,Jt=6e3,en=3e4,tn=2e3;function nn(e,t){var n=e.auth,r=e.cache,i=e.system,o=e.telemetry,a={clientId:S.EMPTY_STRING,authority:""+S.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:S.EMPTY_STRING,authorityMetadata:S.EMPTY_STRING,redirectUri:S.EMPTY_STRING,postLogoutRedirectUri:S.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Rt.AAD,azureCloudOptions:{azureCloudInstance:kt.None,tenant:S.EMPTY_STRING},skipAuthorityMetadataCache:!1},c={cacheLocation:J.SessionStorage,temporaryCacheLocation:J.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!r||r.cacheLocation!==J.LocalStorage),claimsBasedCachingEnabled:!0},u={loggerCallback:function(){},logLevel:Ze.Info,piiLoggingEnabled:!1},l=s(s({},Ut),{loggerOptions:u,networkClient:t?Xt.getBrowserNetworkClient():Yt,navigationClient:new Qt,loadFrameTimeout:0,windowHashTimeout:(null===i||void 0===i?void 0:i.loadFrameTimeout)||Zt,iframeHashTimeout:(null===i||void 0===i?void 0:i.loadFrameTimeout)||Jt,navigateFrameWait:t&&Xt.detectIEOrEdge()?500:0,redirectNavigationTimeout:en,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null===i||void 0===i?void 0:i.nativeBrokerHandshakeTimeout)||tn,pollIntervalMilliseconds:pe.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),d=s(s({},i),{loggerOptions:(null===i||void 0===i?void 0:i.loggerOptions)||u}),h={application:{appName:S.EMPTY_STRING,appVersion:S.EMPTY_STRING}},f={auth:s(s({},a),n),cache:s(s({},c),r),system:s(s({},l),d),telemetry:s(s({},h),o)};return f}
/*! @azure/msal-browser v2.38.2 2023-08-24 */
var rn,on="@azure/msal-browser",an="2.38.2";(function(e){e["INITIALIZE_START"]="msal:initializeStart",e["INITIALIZE_END"]="msal:initializeEnd",e["ACCOUNT_ADDED"]="msal:accountAdded",e["ACCOUNT_REMOVED"]="msal:accountRemoved",e["LOGIN_START"]="msal:loginStart",e["LOGIN_SUCCESS"]="msal:loginSuccess",e["LOGIN_FAILURE"]="msal:loginFailure",e["ACQUIRE_TOKEN_START"]="msal:acquireTokenStart",e["ACQUIRE_TOKEN_SUCCESS"]="msal:acquireTokenSuccess",e["ACQUIRE_TOKEN_FAILURE"]="msal:acquireTokenFailure",e["ACQUIRE_TOKEN_NETWORK_START"]="msal:acquireTokenFromNetworkStart",e["SSO_SILENT_START"]="msal:ssoSilentStart",e["SSO_SILENT_SUCCESS"]="msal:ssoSilentSuccess",e["SSO_SILENT_FAILURE"]="msal:ssoSilentFailure",e["ACQUIRE_TOKEN_BY_CODE_START"]="msal:acquireTokenByCodeStart",e["ACQUIRE_TOKEN_BY_CODE_SUCCESS"]="msal:acquireTokenByCodeSuccess",e["ACQUIRE_TOKEN_BY_CODE_FAILURE"]="msal:acquireTokenByCodeFailure",e["HANDLE_REDIRECT_START"]="msal:handleRedirectStart",e["HANDLE_REDIRECT_END"]="msal:handleRedirectEnd",e["POPUP_OPENED"]="msal:popupOpened",e["LOGOUT_START"]="msal:logoutStart",e["LOGOUT_SUCCESS"]="msal:logoutSuccess",e["LOGOUT_FAILURE"]="msal:logoutFailure",e["LOGOUT_END"]="msal:logoutEnd",e["RESTORE_FROM_BFCACHE"]="msal:restoreFromBFCache"})(rn||(rn={}));
/*! @azure/msal-browser v2.38.2 2023-08-24 */
var sn,cn=function(){function e(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(e){if("undefined"!==typeof window){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},e.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},e.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)))},e.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."))},e.prototype.emitEvent=function(e,t,n,r){var i=this;if("undefined"!==typeof window){var o={eventType:e,interactionType:t||null,payload:n||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach((function(t,n){i.logger.verbose("Emitting event to callback "+n+": "+e),t.apply(null,[o])}))}},e.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if("object"!==typeof n||!mt.isAccountEntity(n))return;var r=bt.toObject(new mt,n),i=r.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(rn.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(rn.ACCOUNT_REMOVED,void 0,i))}catch(e){return}},e}(),un=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return X.THROTTLING_PREFIX+"."+JSON.stringify(e)},e.preProcess=function(t,n){var r,i=e.generateThrottlingStorageKey(n),o=t.getThrottlingCache(i);if(o){if(o.throttleTime<Date.now())return void t.removeItem(i);throw new ue((null===(r=o.errorCodes)||void 0===r?void 0:r.join(" "))||S.EMPTY_STRING,o.errorMessage,o.subError)}},e.postProcess=function(t,n,r){if(e.checkResponseStatus(r)||e.checkResponseForRetryAfter(r)){var i={throttleTime:e.calculateThrottleTime(parseInt(r.headers[_.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(n),i)}},e.checkResponseStatus=function(e){return 429===e.status||e.status>=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&(e.headers.hasOwnProperty(_.RETRY_AFTER)&&(e.status<200||e.status>=300))},e.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||X.DEFAULT_THROTTLE_TIME_SECONDS),n+X.DEFAULT_MAX_THROTTLE_TIME_SECONDS))},e.removeThrottle=function(e,t,n,r){var i={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},o=this.generateThrottlingStorageKey(i);e.removeItem(o)},e}(),ln=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return v(this,void 0,void 0,(function(){var r,i;return y(this,(function(o){switch(o.label){case 0:un.preProcess(this.cacheManager,e),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return r=o.sent(),[3,4];case 3:throw i=o.sent(),i instanceof ce?i:Ne.createNetworkError(t,i);case 4:return un.postProcess(this.cacheManager,e,r),[2,r]}}))}))},e}(),dn=function(){function e(){}return e.validateRedirectUri=function(e){if(Pe.isEmpty(e))throw lt.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in R)t.push(R[n]);if(t.indexOf(e)<0)throw lt.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(t){throw lt.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(Pe.isEmpty(e)||Pe.isEmpty(t))throw lt.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([L.PLAIN,L.S256].indexOf(e)<0)throw lt.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach((function(t,n){e[n]&&delete e[n]})),Object.fromEntries(Object.entries(e).filter((function(e){var t=e[1];return""!==t})))):{}},e}(),hn=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(T.RESPONSE_TYPE,encodeURIComponent(S.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(T.RESPONSE_TYPE,encodeURIComponent(S.TOKEN_RESPONSE_TYPE+" "+S.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(T.RESPONSE_MODE,encodeURIComponent(e||k.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(T.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?b(e||[],C):e||[],r=new dt(n);this.parameters.set(T.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(T.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){dn.validateRedirectUri(e),this.parameters.set(T.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){dn.validateRedirectUri(e),this.parameters.set(T.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(T.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(O.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(O.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(_.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(_.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(O.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);dn.validateClaims(n),this.parameters.set(T.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(T.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(T.X_CLIENT_SKU,e.sku),this.parameters.set(T.X_CLIENT_VER,e.version),e.os&&this.parameters.set(T.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(T.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null===e||void 0===e?void 0:e.appName)&&this.parameters.set(T.X_APP_NAME,e.appName),(null===e||void 0===e?void 0:e.appVersion)&&this.parameters.set(T.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){dn.validatePrompt(e),this.parameters.set(""+T.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){Pe.isEmpty(e)||this.parameters.set(T.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(T.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(dn.validateCodeChallengeParams(e,t),!e||!t)throw lt.createInvalidCodeChallengeParamsError();this.parameters.set(T.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(T.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(T.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(T.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(T.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(T.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(T.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){Pe.isEmpty(e)||this.parameters.set(T.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){Pe.isEmpty(e)||this.parameters.set(T.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(T.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(T.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(T.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set(q,"1")},e.prototype.addExtraQueryParameters=function(e){var t=this,n=dn.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach((function(n){t.parameters.set(n,e[n])}))},e.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch(r){throw lt.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(I.ACCESS_TOKEN)||(n[I.ACCESS_TOKEN]={}),n[I.ACCESS_TOKEN][I.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(G.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(G.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){Pe.isEmpty(e)||(this.parameters.set(T.TOKEN_TYPE,j.POP),this.parameters.set(T.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){Pe.isEmpty(e)||(this.parameters.set(T.TOKEN_TYPE,j.SSH),this.parameters.set(T.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(T.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(T.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(T.X_MS_LIB_CAPABILITY,X.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(e){this.parameters.set(T.LOGOUT_HINT,encodeURIComponent(e))},e.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach((function(t,n){e.push(n+"="+t)})),e.join("&")},e}(),fn=function(){function e(e,t){this.config=zt(e),this.logger=new nt(this.config.loggerOptions,vt,yt),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new ln(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return e.prototype.createTokenRequestHeaders=function(e){var t={};if(t[_.CONTENT_TYPE]=S.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case pt.HOME_ACCOUNT_ID:try{var n=ft(e.credential);t[_.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case pt.UPN:t[_.CCS_HEADER]="UPN: "+e.credential;break}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return v(this,void 0,void 0,(function(){var i;return y(this,(function(o){switch(o.label){case 0:return[4,this.networkManager.sendPostRequest(r,e,{body:t,headers:n})];case 1:return i=o.sent(),this.config.serverTelemetryManager&&i.status<500&&429!==i.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}}))}))},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw Ne.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new hn;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}(),pn=function(){function e(e,t,n,r,i){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=i||null}return e}();(function(e){e["SW"]="sw",e["UHW"]="uhw"})(sn||(sn={}));var mn=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return v(this,void 0,void 0,(function(){var r,i,a;return y(this,(function(s){switch(s.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.PopTokenGenerateCnf,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(r)),a={kid:r.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}}))}))},e.prototype.generateKid=function(e){var t;return v(this,void 0,void 0,(function(){var n;return y(this,(function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return n=r.sent(),[2,{kid:n,xms_ksl:sn.SW}]}}))}))},e.prototype.signPopToken=function(e,t,n){return v(this,void 0,void 0,(function(){return y(this,(function(r){return[2,this.signPayload(e,t,n)]}))}))},e.prototype.signPayload=function(e,t,n,r){return v(this,void 0,void 0,(function(){var i,o,a,s,c,u;return y(this,(function(l){switch(l.label){case 0:return i=n.resourceRequestMethod,o=n.resourceRequestUri,a=n.shrClaims,s=n.shrNonce,c=o?new Mt(o):void 0,u=null===c||void 0===c?void 0:c.getUrlComponents(),[4,this.cryptoUtils.signJwt(g({at:e,ts:Et.nowSeconds(),m:null===i||void 0===i?void 0:i.toUpperCase(),u:null===u||void 0===u?void 0:u.HostNameAndPort,nonce:s||this.cryptoUtils.createNewGuid(),p:null===u||void 0===u?void 0:u.AbsolutePath,q:(null===u||void 0===u?void 0:u.QueryString)?[[],u.QueryString]:void 0,client_claims:a||void 0},r),t,n.correlationId)];case 1:return[2,l.sent()]}}))}))},e}(),gn=function(){function e(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}(),vn=function(){function e(e,t,n,r,i,o,a){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=i,this.persistencePlugin=o,this.performanceClient=a}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?Ne.createStateNotFoundError("Cached State"):Ne.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw Ne.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(fe.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new fe(e.error||S.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||S.EMPTY_STRING,e.trace_id||S.EMPTY_STRING,e.correlation_id||S.EMPTY_STRING,e.claims||S.EMPTY_STRING);throw new ue(e.error||S.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&ht(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(fe.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new fe(e.error,e.error_description,e.suberror,e.timestamp||S.EMPTY_STRING,e.trace_id||S.EMPTY_STRING,e.correlation_id||S.EMPTY_STRING,e.claims||S.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new ue(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,i,a,s,c,u,l){var d;return v(this,void 0,void 0,(function(){var h,f,p,m,g,v,b;return y(this,(function(y){switch(y.label){case 0:if(null===(d=this.performanceClient)||void 0===d||d.addQueueMeasurement(o.HandleServerTokenResponse,t.correlation_id),t.id_token){if(h=new gt(t.id_token||S.EMPTY_STRING,this.cryptoObj),a&&!Pe.isEmpty(a.nonce)&&h.claims.nonce!==a.nonce)throw Ne.createNonceMismatchError();if(i.maxAge||0===i.maxAge){if(f=h.claims.auth_time,!f)throw Ne.createAuthTimeNotFoundError();gt.checkMaxAge(f,i.maxAge)}}this.homeAccountIdentifier=mt.generateHomeAccountId(t.client_info||S.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,h),a&&a.state&&(p=Ot.parseRequestState(this.cryptoObj,a.state)),t.key_id=t.key_id||i.sshKid||void 0,m=this.generateCacheRecord(t,n,r,i,h,s,a),y.label=1;case 1:return y.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),g=new gn(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(g)]):[3,3];case 2:y.sent(),y.label=3;case 3:return c&&!u&&m.account&&(v=m.account.generateAccountKey(),b=this.cacheStorage.getAccount(v),!b)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,m,!1,i,h,p,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(m)];case 4:return y.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&g?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(g)]):[3,7];case 6:y.sent(),y.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,m,!1,i,h,p,t,l)]}}))}))},e.prototype.generateCacheRecord=function(e,t,n,r,i,o,a){var s,c,u=t.getPreferredCache();if(Pe.isEmpty(u))throw Ne.createInvalidCacheEnvironmentError();!Pe.isEmpty(e.id_token)&&i&&(s=ct.createIdTokenEntity(this.homeAccountIdentifier,u,e.id_token||S.EMPTY_STRING,this.clientId,i.claims.tid||S.EMPTY_STRING),c=this.generateAccountEntity(e,i,t,a));var l=null;if(!Pe.isEmpty(e.access_token)){var d=e.scope?dt.fromString(e.scope):new dt(r.scopes||[]),h=("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,f=("string"===typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,p=("string"===typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,m=n+h,g=m+f,v=p&&p>0?n+p:void 0;l=wt.createAccessTokenEntity(this.homeAccountIdentifier,u,e.access_token||S.EMPTY_STRING,this.clientId,i?i.claims.tid||S.EMPTY_STRING:t.tenant,d.printScopes(),m,g,this.cryptoObj,v,e.token_type,o,e.key_id,r.claims,r.requestedClaimsHash)}var y=null;Pe.isEmpty(e.refresh_token)||(y=Tt.createRefreshTokenEntity(this.homeAccountIdentifier,u,e.refresh_token||S.EMPTY_STRING,this.clientId,e.foci,o));var b=null;return Pe.isEmpty(e.foci)||(b=It.createAppMetadataEntity(this.clientId,u,e.foci)),new pn(c,s,l,y,b)},e.prototype.generateAccountEntity=function(e,t,n,r){var i=n.authorityType,o=r?r.cloud_graph_host_name:S.EMPTY_STRING,a=r?r.msgraph_host:S.EMPTY_STRING;if(i===tt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),mt.createGenericAccount(this.homeAccountIdentifier,t,n,o,a);if(Pe.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw Ne.createClientInfoEmptyError();return e.client_info?mt.createAccount(e.client_info,this.homeAccountIdentifier,t,n,o,a):mt.createGenericAccount(this.homeAccountIdentifier,t,n,o,a)},e.generateAuthenticationResult=function(e,t,n,r,i,o,a,s,c){var u,l,d;return v(this,void 0,void 0,(function(){var h,f,p,m,g,v,b,_,E,w,T;return y(this,(function(y){switch(y.label){case 0:if(h=S.EMPTY_STRING,f=[],p=null,g=S.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==j.POP)return[3,2];if(v=new mn(e),b=n.accessToken,_=b.secret,E=b.keyId,!E)throw Ne.createKeyIdMissingError();return[4,v.signPopToken(_,E,i)];case 1:return h=y.sent(),[3,3];case 2:h=n.accessToken.secret,y.label=3;case 3:f=dt.fromString(n.accessToken.target).asArray(),p=new Date(1e3*Number(n.accessToken.expiresOn)),m=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),y.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===B?B:S.EMPTY_STRING),w=(null===o||void 0===o?void 0:o.claims.oid)||(null===o||void 0===o?void 0:o.claims.sub)||S.EMPTY_STRING,T=(null===o||void 0===o?void 0:o.claims.tid)||S.EMPTY_STRING,(null===s||void 0===s?void 0:s.spa_accountid)&&n.account&&(n.account.nativeAccountId=null===s||void 0===s?void 0:s.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:w,tenantId:T,scopes:f,account:n.account?n.account.getAccountInfo():null,idToken:o?o.rawToken:S.EMPTY_STRING,idTokenClaims:o?o.claims:{},accessToken:h,fromCache:r,expiresOn:p,correlationId:i.correlationId,requestId:c||S.EMPTY_STRING,extExpiresOn:m,familyId:g,tokenType:(null===(u=n.accessToken)||void 0===u?void 0:u.tokenType)||S.EMPTY_STRING,state:a?a.userRequestState:S.EMPTY_STRING,cloudGraphHostName:(null===(l=n.account)||void 0===l?void 0:l.cloudGraphHostName)||S.EMPTY_STRING,msGraphHost:(null===(d=n.account)||void 0===d?void 0:d.msGraphHost)||S.EMPTY_STRING,code:null===s||void 0===s?void 0:s.spa_code,fromNativeBroker:!1}]}}))}))},e}(),yn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return m(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return v(this,void 0,void 0,(function(){var r;return y(this,(function(i){switch(i.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.GetAuthCodeUrl,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return r=i.sent(),[2,Mt.appendQueryString(this.authority.authorizationEndpoint,r)]}}))}))},t.prototype.acquireToken=function(e,t){var n,r,i,a,s,c;return v(this,void 0,void 0,(function(){var u,l,d,h,f,p,m=this;return y(this,(function(g){switch(g.label){case 0:if(!e||!e.code)throw Ne.createTokenRequestCannotBeMadeError();return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.AuthClientAcquireToken,e.correlationId),u=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),l=Et.nowSeconds(),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return d=g.sent(),h=null===(a=d.headers)||void 0===a?void 0:a[_.X_MS_REQUEST_ID],f=null===(s=d.headers)||void 0===s?void 0:s[_.X_MS_HTTP_VERSION],f&&(null===u||void 0===u||u.addStaticFields({httpVerAuthority:f})),p=new vn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),p.validateTokenResponse(d.body),null===(c=this.performanceClient)||void 0===c||c.setPreQueueTime(o.HandleServerTokenResponse,e.correlationId),[2,p.handleServerTokenResponse(d.body,this.authority,l,e,t,void 0,void 0,void 0,h).then((function(e){return null===u||void 0===u||u.endMeasurement({success:!0}),e})).catch((function(t){throw m.logger.verbose("Error in fetching token in ACC",e.correlationId),null===u||void 0===u||u.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.handleFragmentResponse=function(e,t){var n=new vn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new Mt(e),i=Mt.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(i,t,this.cryptoUtils),!i.code)throw Ne.createNoAuthCodeInServerResponseError();return g(g({},i),{code:i.code})},t.prototype.getLogoutUri=function(e){if(!e)throw lt.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return Mt.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,r;return v(this,void 0,void 0,(function(){var i,a,s,c,u,l,d;return y(this,(function(h){switch(h.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.AuthClientExecuteTokenRequest,t.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(o.AuthClientCreateTokenRequestBody,t.correlationId),i=this.createTokenQueryParameters(t),a=Mt.appendQueryString(e.tokenEndpoint,i),[4,this.createTokenRequestBody(t)];case 1:if(s=h.sent(),c=void 0,t.clientInfo)try{u=ht(t.clientInfo,this.cryptoUtils),c={credential:""+u.uid+N.CLIENT_INFO_SEPARATOR+u.utid,type:pt.HOME_ACCOUNT_ID}}catch(f){this.logger.verbose("Could not parse client info for CCS Header: "+f)}return l=this.createTokenRequestHeaders(c||t.ccsCredential),d={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(a,s,l,d)]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n;return v(this,void 0,void 0,(function(){var r,i,a,s,c,u,l,d;return y(this,(function(h){switch(h.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthClientCreateTokenRequestBody,e.correlationId),r=new hn,r.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):dn.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(i=this.config.clientCredentials.clientAssertion,r.addClientAssertion(i.assertion),r.addClientAssertionType(i.assertionType)),r.addGrantType(x.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme!==j.POP?[3,2]:(a=new mn(this.cryptoUtils,this.performanceClient),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.PopTokenGenerateCnf,e.correlationId),[4,a.generateCnf(e)]);case 1:return s=h.sent(),r.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===j.SSH){if(!e.sshJwk)throw lt.createMissingSshJwkError();r.addSshJwk(e.sshJwk)}h.label=3;case 3:if(c=e.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(c),(!Pe.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),u=void 0,e.clientInfo)try{l=ht(e.clientInfo,this.cryptoUtils),u={credential:""+l.uid+N.CLIENT_INFO_SEPARATOR+l.utid,type:pt.HOME_ACCOUNT_ID}}catch(f){this.logger.verbose("Could not parse client info for CCS Header: "+f)}else u=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case pt.HOME_ACCOUNT_ID:try{l=ft(u.credential),r.addCcsOid(l)}catch(f){this.logger.verbose("Could not parse home account ID for CCS Header: "+f)}break;case pt.UPN:r.addCcsUpn(u.credential);break}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[T.RETURN_SPA_CODE]||r.addExtraQueryParameters((d={},d[T.RETURN_SPA_CODE]="1",d)),[2,r.createQueryString()]}}))}))},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return v(this,void 0,void 0,(function(){var n,r,i,a,s,c,u,l;return y(this,(function(d){switch(d.label){case 0:if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthClientCreateQueryString,e.correlationId),n=new hn,n.addClientId(this.config.authOptions.clientId),r=b(e.scopes||[],e.extraScopesToConsent||[]),n.addScopes(r),n.addRedirectUri(e.redirectUri),i=e.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(i),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==R.SELECT_ACCOUNT)if(e.sid&&e.prompt===R.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){if(a=this.extractAccountSid(e.account),s=this.extractLoginHint(e.account),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(s);try{c=ft(e.account.homeAccountId),n.addCcsOid(c)}catch(h){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&e.prompt===R.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=ft(e.account.homeAccountId),n.addCcsOid(c)}catch(h){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{c=ft(e.account.homeAccountId),n.addCcsOid(c)}catch(h){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(!Pe.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&n.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(n.addNativeBroker(),e.authenticationScheme!==j.POP?[3,2]:(u=new mn(this.cryptoUtils),[4,u.generateCnf(e)])):[3,2];case 1:l=d.sent(),n.addPopToken(l.reqCnfString),d.label=2;case 2:return[2,n.createQueryString()]}}))}))},t.prototype.createLogoutUrlQueryString=function(e){var t=new hn;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.extractAccountSid=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.sid)||null},t.prototype.extractLoginHint=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.login_hint)||null},t}(fn);
/*! @azure/msal-common v13.3.0 2023-08-24 */
function bn(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}
/*! @azure/msal-common v13.3.0 2023-08-24 */
var _n={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},En=_n.endpointMetadata,wn=_n.instanceDiscoveryMetadata;
/*! @azure/msal-common v13.3.0 2023-08-24 */
function Tn(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}
/*! @azure/msal-common v13.3.0 2023-08-24 */
function In(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}
/*! @azure/msal-common v13.3.0 2023-08-24 */
var Sn,Cn=function(){function e(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return e.prototype.detectRegion=function(t,n){var r,i,a,s;return v(this,void 0,void 0,(function(){var c,u,l,d,h;return y(this,(function(f){switch(f.label){case 0:if(null===(r=this.performanceClient)||void 0===r||r.addQueueMeasurement(o.RegionDiscoveryDetectRegion,this.correlationId),c=t,c)return[3,8];u=e.IMDS_OPTIONS,f.label=1;case 1:return f.trys.push([1,6,,7]),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(S.IMDS_VERSION,u)];case 2:return l=f.sent(),l.status===z.httpSuccess&&(c=l.body,n.region_source=$.IMDS),l.status!==z.httpBadRequest?[3,5]:(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(o.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(u)]);case 3:return d=f.sent(),d?(null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(o.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(d,u)]):(n.region_source=$.FAILED_AUTO_DETECTION,[2,null]);case 4:h=f.sent(),h.status===z.httpSuccess&&(c=h.body,n.region_source=$.IMDS),f.label=5;case 5:return[3,7];case 6:return f.sent(),n.region_source=$.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=$.ENVIRONMENT_VARIABLE,f.label=9;case 9:return c||(n.region_source=$.FAILED_AUTO_DETECTION),[2,c||null]}}))}))},e.prototype.getRegionFromIMDS=function(e,t){var n;return v(this,void 0,void 0,(function(){return y(this,(function(r){return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(S.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,S.IMDS_TIMEOUT)]}))}))},e.prototype.getCurrentVersion=function(e){var t;return v(this,void 0,void 0,(function(){var n;return y(this,(function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(S.IMDS_ENDPOINT+"?format=json",e)];case 2:return n=r.sent(),n.status===z.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}}))}))},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}(),An=function(){function e(e,t,n,r,i,o,a){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=o,this.correlationId=a,this.regionDiscovery=new Cn(t,this.performanceClient,this.correlationId)}return e.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(S.CIAM_AUTH_URL))return tt.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case S.ADFS:return tt.Adfs;case S.DSTS:return tt.Dsts}return tt.Default},Object.defineProperty(e.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new Mt(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Ne.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}throw Ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.canReplaceTenant=function(t){return 1===t.PathSegments.length&&!e.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===tt.Default&&this.protocolMode===Rt.AAD},e.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(e){var t=this,n=e,r=new Mt(this.metadata.canonical_authority),i=r.getUrlComponents(),o=i.PathSegments,a=this.canonicalAuthorityUrlComponents.PathSegments;return a.forEach((function(e,r){var a=o[r];if(0===r&&t.canReplaceTenant(i)){var s=new Mt(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];a!==s&&(t.logger.verbose("Replacing tenant domain name "+a+" with id "+s),a=s)}e!==a&&(n=n.replace("/"+a+"/","/"+e+"/"))})),this.replaceTenant(n)},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===tt.Adfs||this.authorityType===tt.Dsts||this.protocolMode===Rt.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var e,t,n;return v(this,void 0,void 0,(function(){var r,i,a,s;return y(this,(function(c){switch(c.label){case 0:return null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(o.AuthorityResolveEndpointsAsync,this.correlationId),r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),r||(r=new Ct,r.updateCanonicalAuthority(this.canonicalAuthority)),null===(t=this.performanceClient)||void 0===t||t.setPreQueueTime(o.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(r)];case 1:return i=c.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,r.preferred_network),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return a=c.sent(),i!==U.CACHE&&a!==U.CACHE&&(r.resetExpiresAt(),r.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(r.preferred_cache),this.cacheManager.setAuthorityMetadata(s,r),this.metadata=r,[2]}}))}))},e.prototype.updateEndpointMetadata=function(e){var t,n,r,i,a,s;return v(this,void 0,void 0,(function(){var c,u;return y(this,(function(l){switch(l.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthorityUpdateEndpointMetadata,this.correlationId),c=this.getEndpointMetadataFromConfig(),c?(e.updateEndpointMetadata(c,!1),[2,U.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,U.CACHE]:(null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return c=l.sent(),c?(null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion)?(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,3]:[3,4];case 2:c=l.sent(),l.label=3;case 3:return e.updateEndpointMetadata(c,!0),[2,U.NETWORK];case 4:return u=this.getEndpointMetadataFromHardcodedValues(),!u||this.authorityOptions.skipAuthorityMetadataCache?[3,7]:(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion)?(null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(o.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(u)]):[3,6];case 5:u=l.sent(),l.label=6;case 6:return e.updateEndpointMetadata(u,!1),[2,U.HARDCODED_VALUES];case 7:throw Ne.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}}))}))},e.prototype.isAuthoritySameType=function(e){var t=new Mt(e.canonical_authority),n=t.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw lt.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return v(this,void 0,void 0,(function(){var t,n;return y(this,(function(r){switch(r.label){case 0:null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(o.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return n=r.sent(),[2,bn(n.body)?n.body:null];case 3:return r.sent(),[2,null];case 4:return[2]}}))}))},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in En?En[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,i,a;return v(this,void 0,void 0,(function(){var s,c;return y(this,(function(u){switch(u.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),s=null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion,s?s!==S.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=Y.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=s,[2,e.replaceWithRegionalInformation(t,s)]):(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(c=u.sent(),c)return this.regionDiscoveryMetadata.region_outcome=Y.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,[2,e.replaceWithRegionalInformation(t,c)];this.regionDiscoveryMetadata.region_outcome=Y.AUTO_DETECTION_REQUESTED_FAILED,u.label=2;case 2:return[2,t]}}))}))},e.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return v(this,void 0,void 0,(function(){var r,i,a;return y(this,(function(s){switch(s.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||S.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||S.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||S.NOT_APPLICABLE)),r=this.getCloudDiscoveryMetadataFromConfig(),r?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,U.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,U.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(r=s.sent(),r)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(r,!0),[2,U.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,U.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),lt.createUntrustedAuthorityError()}}))}))},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===tt.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch(r){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),lt.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return v(this,void 0,void 0,(function(){var n,r,i,a,s,c,u,l;return y(this,(function(d){switch(d.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+S.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},i=null,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(a=d.sent(),s=void 0,c=void 0,Tn(a.body))s=a.body,c=s.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+s.tenant_discovery_endpoint);else{if(!In(a.body))return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+a.status),s=a.body,s.error===S.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+s.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+s.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),c=[]}return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=e.getCloudDiscoveryMetadataFromNetworkResponse(c,this.hostnameAndPort),[3,4];case 3:return u=d.sent(),u instanceof ce?this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+u.errorCode+"\nError Description: "+u.errorMessage):(l=u,this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+l.name+"\nError Description: "+l.message)),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}}))}))},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in wn?wn[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter((function(t){return Mt.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort}));return t.length>0},e.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==kt.None){var r=t.tenant?t.tenant:S.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+r+"/"}return n||e},e.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.aliases.indexOf(t)>-1)return r}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw Ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return S.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new Mt(e);r.validateAsUri();var i=r.getUrlComponents(),o=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(o=t+"."+S.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=Mt.constructAuthorityUriFromObject(g(g({},r.getUrlComponents()),{HostNameAndPort:o})).urlString;return n?a+"?"+n:a},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,S.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(e){var t=e.endsWith(S.FORWARD_SLASH)?e:""+e+S.FORWARD_SLASH,n=new Mt(e),r=n.getUrlComponents();if(0===r.PathSegments.length&&r.HostNameAndPort.endsWith(S.CIAM_AUTH_URL)){var i=r.HostNameAndPort.split(".")[0];t=""+t+i+S.AAD_TENANT_DOMAIN_SUFFIX}return t},e.reservedTenantDomains=new Set(["{tenant}","{tenantid}",w.COMMON,w.CONSUMERS,w.ORGANIZATIONS]),e}(),On=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,i,a,s,c){return v(this,void 0,void 0,(function(){var u,l,d;return y(this,(function(h){switch(h.label){case 0:null===s||void 0===s||s.addQueueMeasurement(o.AuthorityFactoryCreateDiscoveredInstance,c),u=An.transformCIAMAuthority(t),l=e.createInstance(u,n,r,i,a,s,c),h.label=1;case 1:return h.trys.push([1,3,,4]),null===s||void 0===s||s.setPreQueueTime(o.AuthorityResolveEndpointsAsync,c),[4,l.resolveEndpointsAsync()];case 2:return h.sent(),[2,l];case 3:throw d=h.sent(),Ne.createEndpointDiscoveryIncompleteError(d);case 4:return[2]}}))}))},e.createInstance=function(e,t,n,r,i,o,a){if(Pe.isEmpty(e))throw lt.createUrlEmptyError();return new An(e,t,n,r,i,o,a)},e}(),Rn=function(){function e(e,t){this.cacheOutcome=K.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||S.EMPTY_STRING,this.wrapperVer=e.wrapperVer||S.EMPTY_STRING,this.telemetryCacheKey=V.CACHE_KEY+N.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+V.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(V.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),r=[e,n].join(V.VALUE_SEPARATOR);return[V.SCHEMA_VERSION,r,t].join(V.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(V.VALUE_SEPARATOR),i=t.errors.slice(0,n).join(V.VALUE_SEPARATOR),o=t.errors.length,a=n<o?V.OVERFLOW_TRUE:V.OVERFLOW_FALSE,s=[o,a].join(V.VALUE_SEPARATOR);return[V.SCHEMA_VERSION,t.cacheHits,r,i,s].join(V.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=V.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),Pe.isEmpty(e.subError)?Pe.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(V.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},e.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},e.prototype.getLastRequests=function(){var e=new St,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.errors.length;if(n===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var i=new St;i.failedRequests=t.failedRequests.slice(2*n),i.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}},e.maxErrorsToSend=function(e){var t,n=0,r=0,i=e.errors.length;for(t=0;t<i;t++){var o=e.failedRequests[2*t]||S.EMPTY_STRING,a=e.failedRequests[2*t+1]||S.EMPTY_STRING,s=e.errors[t]||S.EMPTY_STRING;if(r+=o.toString().length+a.toString().length+s.length+3,!(r<V.MAX_LAST_HEADER_BYTES))break;n+=1}return n},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||S.EMPTY_STRING),e.push(this.regionSource||S.EMPTY_STRING),e.push(this.regionOutcome||S.EMPTY_STRING),e.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},e.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},e}(),kn=function(){function e(e,t,n,r,i,o,a,s,c){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=o,this.nativeMessageHandler=s,this.correlationId=c||this.browserCrypto.createNewGuid(),this.logger=r.clone(pe.MSAL_SKU,an,this.correlationId),this.performanceClient=a}return e.prototype.clearCacheOnLogout=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:if(!e)return[3,5];mt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(mt.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}}))}))},e.prototype.initializeBaseRequest=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i,a;return l(this,(function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(o.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:c.sent(),c.label=2;case 2:if(r=h(e&&e.scopes||[]),i=s(s({},e),{correlationId:this.correlationId,authority:n,scopes:r}),i.authenticationScheme){if(i.authenticationScheme===j.SSH){if(!e.sshJwk)throw lt.createMissingSshJwkError();if(!e.sshKid)throw lt.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}else i.authenticationScheme=j.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!Pe.isEmptyObj(e.claims)?(a=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:a.requestedClaimsHash=c.sent(),c.label=4;case 4:return[2,i]}}))}))},e.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||Xt.getCurrentUri();return Mt.getAbsoluteUrl(t,Xt.getCurrentUri())},e.prototype.validateRequestAuthority=function(e,t){return u(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(r.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n=r.sent(),!n.isAlias(t.environment))throw lt.createAuthorityMismatchError();return[2]}}))}))},e.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Rn(n,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,On.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,On.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}}))}))},e}(),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(o.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=r.sent(),n=s(s({},e),{redirectUri:e.redirectUri,code:S.EMPTY_STRING,codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=S.S256_CODE_CHALLENGE_METHOD,[2,n]}}))}))},t.prototype.initializeLogoutRequest=function(e){this.logger.verbose("initializeLogoutRequest called",null===e||void 0===e?void 0:e.correlationId);var t=s({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},e);if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){var n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=n)}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 e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=Mt.getAbsoluteUrl(e.postLogoutRedirectUri,Xt.getCurrentUri())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=Mt.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Xt.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=Mt.getAbsoluteUrl(Xt.getCurrentUri(),Xt.getCurrentUri())),t},t.prototype.getLogoutHintFromIdTokenClaims=function(e){var t=e.idTokenClaims;if(t){if(t.login_hint)return t.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},t.prototype.createAuthCodeClient=function(e,t,n){return u(this,void 0,void 0,(function(){var r;return l(this,(function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(o.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=i.sent(),[2,new yn(r,this.performanceClient)]}}))}))},t.prototype.getClientConfiguration=function(e,t,n){return u(this,void 0,void 0,(function(){var r,i;return l(this,(function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(o.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(t,n)];case 1:return r=a.sent(),i=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:r,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:i.loggerCallback,piiLoggingEnabled:i.piiLoggingEnabled,logLevel:i.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:pe.MSAL_SKU,version:an,cpu:S.EMPTY_STRING,os:S.EMPTY_STRING},telemetry:this.config.telemetry}]}}))}))},t.prototype.validateAndExtractStateFromHash=function(e,t,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!e.state)throw Le.createHashDoesNotContainStateError();var r=Nt.extractBrowserRequestState(this.browserCrypto,e.state);if(!r)throw Le.createUnableToParseStateError();if(r.interactionType!==t)throw Le.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),e.state},t.prototype.getDiscoveredAuthority=function(e,t){var n;return u(this,void 0,void 0,(function(){var r,i,a,s;return l(this,(function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(o.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(o.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),i={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},a=e||this.config.auth.authority,s=An.generateAuthority(a,t||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(o.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,On.createDiscoveredInstance(s,this.config.system.networkClient,this.browserStorage,i,this.logger,this.performanceClient,this.correlationId).then((function(e){return r.endMeasurement({success:!0}),e})).catch((function(e){throw r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}))];case 1:return[2,c.sent()]}}))}))},t.prototype.initializeAuthorizationRequest=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i,a,c,u,d;return l(this,(function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(o.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(e.redirectUri),r={interactionType:t},i=Ot.setRequestState(this.browserCrypto,e&&e.state||S.EMPTY_STRING,r),this.performanceClient.setPreQueueTime(o.InitializeBaseRequest,this.correlationId),c=[{}],[4,this.initializeBaseRequest(e)];case 1:return a=s.apply(void 0,[s.apply(void 0,c.concat([l.sent()])),{redirectUri:n,state:i,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:k.FRAGMENT}]),u=e.account||this.browserStorage.getActiveAccount(),u&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+u.homeAccountId,this.correlationId),a.account=u),Pe.isEmpty(a.loginHint)&&!u&&(d=this.browserStorage.getLegacyLoginHint(),d&&(a.loginHint=d)),[2,a]}}))}))},t}(kn);(function(e){e["USER_INTERACTION_REQUIRED"]="USER_INTERACTION_REQUIRED",e["USER_CANCEL"]="USER_CANCEL",e["NO_NETWORK"]="NO_NETWORK",e["TRANSIENT_ERROR"]="TRANSIENT_ERROR",e["PERSISTENT_ERROR"]="PERSISTENT_ERROR",e["DISABLED"]="DISABLED",e["ACCOUNT_UNAVAILABLE"]="ACCOUNT_UNAVAILABLE"})(Sn||(Sn={}));var Mn={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"}},Nn=function(e){function t(n,r,i){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=i,o}return i(t,e),t.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===Sn.PERSISTENT_ERROR||this.ext.status===Sn.DISABLED))return!0;switch(this.errorCode){case Mn.extensionError.code:return!0;default:return!1}},t.createError=function(e,n,r){if(r&&r.status)switch(r.status){case Sn.ACCOUNT_UNAVAILABLE:return fe.createNativeAccountUnavailableError();case Sn.USER_INTERACTION_REQUIRED:return new fe(e,n);case Sn.USER_CANCEL:return Le.createUserCancelledError();case Sn.NO_NETWORK:return Le.createNoNetworkConnectivityError()}return new t(e,n,r)},t.createUserSwitchError=function(){return new t(Mn.userSwitch.code,Mn.userSwitch.desc)},t.createTokensNotFoundInCacheError=function(){return new t(Mn.tokensNotFoundInCache.code,Mn.tokensNotFoundInCache.desc)},t}(ce),Pn=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),t.prototype.acquireToken=function(e){var t,n,r,i,a,s,c;return v(this,void 0,void 0,(function(){var u,l,d,h,f,p,m=this;return y(this,(function(g){switch(g.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.RefreshTokenClientAcquireToken,e.correlationId),u=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(o.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),l=Et.nowSeconds(),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(o.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return d=g.sent(),h=null===(i=d.headers)||void 0===i?void 0:i[_.X_MS_HTTP_VERSION],null===u||void 0===u||u.addStaticFields({refreshTokenSize:(null===(a=d.body.refresh_token)||void 0===a?void 0:a.length)||0}),h&&(null===u||void 0===u||u.addStaticFields({httpVerToken:h})),f=null===(s=d.headers)||void 0===s?void 0:s[_.X_MS_REQUEST_ID],p=new vn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),p.validateTokenResponse(d.body),null===(c=this.performanceClient)||void 0===c||c.setPreQueueTime(o.HandleServerTokenResponse,e.correlationId),[2,p.handleServerTokenResponse(d.body,this.authority,l,e,void 0,void 0,!0,e.forceCache,f).then((function(e){return null===u||void 0===u||u.endMeasurement({success:!0}),e})).catch((function(t){throw m.logger.verbose("Error in fetching refresh token",e.correlationId),null===u||void 0===u||u.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.acquireTokenByRefreshToken=function(e){var t,n,r,i;return v(this,void 0,void 0,(function(){var a,s,c;return y(this,(function(u){if(!e)throw lt.createEmptyTokenRequestError();if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Ne.createNoAccountInSilentRequestError();if(a=this.cacheManager.isAppMetadataFOCI(e.account.environment),a)try{return null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(l){if(s=l instanceof fe&&l.errorCode===he.noTokensFoundError.code,c=l instanceof ue&&l.errorCode===Q.INVALID_GRANT_ERROR&&l.subError===Q.CLIENT_MISMATCH_ERROR,s||c)return null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(o.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw l}return null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]}))}))},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){var n,r,i;return v(this,void 0,void 0,(function(){var a,s,c;return y(this,(function(u){if(null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),a=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(o.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",e.correlationId),s=this.cacheManager.getRefreshToken(e.account,t),!s)throw null===a||void 0===a||a.discardMeasurement(),fe.createNoTokensFoundError();return null===a||void 0===a||a.endMeasurement({success:!0}),c=g(g({},e),{refreshToken:s.secret,authenticationScheme:e.authenticationScheme||j.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:pt.HOME_ACCOUNT_ID}}),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(c)]}))}))},t.prototype.executeTokenRequest=function(e,t){var n,r,i;return v(this,void 0,void 0,(function(){var a,s,c,u,l,d;return y(this,(function(h){switch(h.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.RefreshTokenClientExecuteTokenRequest,e.correlationId),a=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(o.RefreshTokenClientExecuteTokenRequest,e.correlationId),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.RefreshTokenClientCreateTokenRequestBody,e.correlationId),s=this.createTokenQueryParameters(e),c=Mt.appendQueryString(t.tokenEndpoint,s),[4,this.createTokenRequestBody(e)];case 1:return u=h.sent(),l=this.createTokenRequestHeaders(e.ccsCredential),d={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},[2,this.executePostToTokenEndpoint(c,u,l,d).then((function(e){return null===a||void 0===a||a.endMeasurement({success:!0}),e})).catch((function(e){throw null===a||void 0===a||a.endMeasurement({success:!1}),e}))]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n,r;return v(this,void 0,void 0,(function(){var i,a,s,c,u,l,d;return y(this,(function(h){switch(h.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.RefreshTokenClientCreateTokenRequestBody,e.correlationId),i=e.correlationId,a=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(o.BaseClientCreateTokenRequestHeaders,i),s=new hn,s.addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(x.REFRESH_TOKEN_GRANT),s.addClientInfo(),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),s.addCorrelationId(i),s.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(c=this.config.clientCredentials.clientAssertion,s.addClientAssertion(c.assertion),s.addClientAssertionType(c.assertionType)),e.authenticationScheme!==j.POP?[3,2]:(u=new mn(this.cryptoUtils,this.performanceClient),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(o.PopTokenGenerateCnf,e.correlationId),[4,u.generateCnf(e)]);case 1:return l=h.sent(),s.addPopToken(l.reqCnfString),[3,3];case 2:if(e.authenticationScheme===j.SSH){if(!e.sshJwk)throw null===a||void 0===a||a.endMeasurement({success:!1}),lt.createMissingSshJwkError();s.addSshJwk(e.sshJwk)}h.label=3;case 3:if((!Pe.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case pt.HOME_ACCOUNT_ID:try{d=ft(e.ccsCredential.credential),s.addCcsOid(d)}catch(f){this.logger.verbose("Could not parse home account ID for CCS Header: "+f)}break;case pt.UPN:s.addCcsUpn(e.ccsCredential.credential);break}return null===a||void 0===a||a.endMeasurement({success:!0}),[2,s.createQueryString()]}}))}))},t}(fn),Dn=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),t.prototype.acquireToken=function(e){return v(this,void 0,void 0,(function(){var t,n;return y(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,r.sent()];case 2:if(t=r.sent(),t instanceof Ne&&t.errorCode===Me.tokenRefreshRequired.code)return n=new Pn(this.config,this.performanceClient),[2,n.acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}}))}))},t.prototype.acquireCachedToken=function(e){var t,n,r,i,o;return v(this,void 0,void 0,(function(){var a,s;return y(this,(function(c){switch(c.label){case 0:if(!e)throw lt.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(K.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),Ne.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!Pe.isEmptyObj(e.claims))throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(K.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),Ne.createRefreshRequiredError();if(!e.account)throw Ne.createNoAccountInSilentRequestError();if(a=e.authority||this.authority.getPreferredCache(),s=this.cacheManager.readCacheRecord(e.account,e,a),!s.accessToken)throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(K.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),Ne.createRefreshRequiredError();if(Et.wasClockTurnedBack(s.accessToken.cachedAt)||Et.isTokenExpired(s.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(K.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),Ne.createRefreshRequiredError();if(s.accessToken.refreshOn&&Et.isTokenExpired(s.accessToken.refreshOn,0))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(K.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),Ne.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(s,e)];case 1:return[2,c.sent()]}}))}))},t.prototype.generateResultFromCacheRecord=function(e,t){return v(this,void 0,void 0,(function(){var n,r;return y(this,(function(i){switch(i.label){case 0:if(e.idToken&&(n=new gt(e.idToken.secret,this.config.cryptoInterface)),t.maxAge||0===t.maxAge){if(r=null===n||void 0===n?void 0:n.claims.auth_time,!r)throw Ne.createAuthTimeNotFoundError();gt.checkMaxAge(r,t.maxAge)}return[4,vn.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,i.sent()]}}))}))},t}(fn),Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a;return l(this,(function(s){switch(s.label){case 0:return t=this.performanceClient.startMeasurement(o.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(ie.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,e.authority,e.azureCloudOptions)];case 1:r=s.sent(),this.logger.verbose("Silent auth client created"),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,r.acquireCachedToken(e)];case 3:return i=s.sent(),t.endMeasurement({success:!0,fromCache:!0}),[2,i];case 4:throw a=s.sent(),a instanceof Le&&a.errorCode===De.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),t.endMeasurement({errorCode:a instanceof ce&&a.errorCode||void 0,subErrorCode:a instanceof ce&&a.subError||void 0,success:!1}),a;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Le.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return u(this,void 0,void 0,(function(){var r;return l(this,(function(i){switch(i.label){case 0:return this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=i.sent(),[2,new Dn(r,this.performanceClient)]}}))}))},t.prototype.initializeSilentRequest=function(e,t){return u(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(o.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(o.InitializeBaseRequest,this.correlationId),n=[s({},e)],[4,this.initializeBaseRequest(e,t)];case 1:return[2,s.apply(void 0,[s.apply(void 0,n.concat([r.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}}))}))},t}(xn),Un=function(e){function t(t,n,r,i,o,a,s,c,u,l,d,h){var f=e.call(this,t,n,r,i,o,a,c,u,h)||this;return f.apiId=s,f.accountId=l,f.nativeMessageHandler=u,f.nativeStorageManager=d,f.silentCacheClient=new Ln(t,f.nativeStorageManager,r,i,o,a,c,u,h),f}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,s,c;return l(this,(function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(o.NativeInteractionClientAcquireToken,e.correlationId),n=Et.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,r)];case 3:return i=u.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,i];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return a={method:Z.GetToken,request:r},[4,this.nativeMessageHandler.sendMessage(a)];case 6:return s=u.sent(),c=this.validateNativeResponse(s),[2,this.handleNativeResponse(c,r,n).then((function(e){return t.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e})).catch((function(e){throw t.endMeasurement({success:!1,errorCode:e.errorCode,subErrorCode:e.subError,isNativeBroker:!0}),e}))]}}))}))},t.prototype.createSilentCacheRequest=function(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:dt.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i,o;return l(this,(function(a){switch(a.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Ne.createNoAccountFoundError();if(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e}),!n)throw Ne.createNoAccountFoundError();a.label=1;case 1:return a.trys.push([1,3,,4]),r=this.createSilentCacheRequest(t,n),[4,this.silentCacheClient.acquireToken(r)];case 2:return i=a.sent(),[2,i];case 3:throw o=a.sent(),o;case 4:return[2]}}))}))},t.prototype.acquireTokenRedirect=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a;return l(this,(function(s){switch(s.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:t=s.sent(),n={method:Z.GetToken,request:t},s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return r=s.sent(),this.validateNativeResponse(r),[3,5];case 4:if(i=s.sent(),i instanceof Nn&&i.isFatal())throw i;return[3,5];case 5:return this.browserStorage.setTemporaryCache(te.NATIVE_REQUEST,JSON.stringify(t),!0),o={apiId:ie.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(a,o)];case 6:return s.sent(),[2]}}))}))},t.prototype.handleRedirectPromise=function(){return u(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s;return l(this,(function(u){switch(u.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(e=this.browserStorage.getCachedNativeRequest(),!e)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];t=e.prompt,n=c(e,["prompt"]),t&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(te.NATIVE_REQUEST)),r={method:Z.GetToken,request:n},i=Et.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(r)];case 2:return o=u.sent(),this.validateNativeResponse(o),a=this.handleNativeResponse(o,n,i),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=u.sent(),this.browserStorage.setInteractionInProgress(!1),s;case 4:return[2]}}))}))},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,t,n){return u(this,void 0,void 0,(function(){var r,i,o,a,s,c;return l(this,(function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw Nn.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return r=u.sent(),i=r.getPreferredCache(),o=this.createIdTokenObj(e),a=this.createHomeAccountIdentifier(e,o),s=this.createAccountEntity(e,a,o,i),[4,this.generateAuthenticationResult(e,t,o,s,r.canonicalAuthority,n)];case 2:return c=u.sent(),this.cacheAccount(s),this.cacheNativeTokens(e,t,a,s,o,c.accessToken,c.tenantId,n),[2,c]}}))}))},t.prototype.createIdTokenObj=function(e){return new gt(e.id_token||S.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){var n=mt.generateHomeAccountId(e.client_info||S.EMPTY_STRING,tt.Default,this.logger,this.browserCrypto,t);return n},t.prototype.createAccountEntity=function(e,t,n,r){return mt.createAccount(e.client_info,t,n,void 0,void 0,void 0,r,e.account.id)},t.prototype.generateScopes=function(e,t){return e.scope?dt.fromString(e.scope):dt.fromString(t.scope)},t.prototype.generatePopAccessToken=function(e,t){return u(this,void 0,void 0,(function(){var n,r;return l(this,(function(i){switch(i.label){case 0:if(t.tokenType!==j.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(n=new mn(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw Ne.createKeyIdMissingError();return[4,n.signPopToken(e.access_token,t.keyId,r)];case 1:return[2,i.sent()];case 2:return[2,e.access_token]}}))}))},t.prototype.generateAuthenticationResult=function(e,t,n,r,i,o){return u(this,void 0,void 0,(function(){var a,s,c,u,d,h,f,p;return l(this,(function(l){switch(l.label){case 0:return a=this.addTelemetryFromNativeResponse(e),s=e.scope?dt.fromString(e.scope):dt.fromString(t.scope),c=e.account.properties||{},u=c["UID"]||n.claims.oid||n.claims.sub||S.EMPTY_STRING,d=c["TenantId"]||n.claims.tid||S.EMPTY_STRING,[4,this.generatePopAccessToken(e,t)];case 1:return h=l.sent(),f=t.tokenType===j.POP?j.POP:j.BEARER,p={authority:i,uniqueId:u,tenantId:d,scopes:s.asArray(),account:r.getAccountInfo(),idToken:e.id_token,idTokenClaims:n.claims,accessToken:h,fromCache:!!a&&this.isResponseFromCache(a),expiresOn:new Date(1e3*Number(o+e.expires_in)),tokenType:f,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},[2,p]}}))}))},t.prototype.cacheAccount=function(e){var t=this;this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch((function(e){t.logger.error("Error occurred while removing account context from browser storage. "+e)}))},t.prototype.cacheNativeTokens=function(e,t,n,r,i,o,a,s){var c=ct.createIdTokenEntity(n,t.authority,e.id_token||S.EMPTY_STRING,t.clientId,i.claims.tid||S.EMPTY_STRING),u=t.tokenType===j.POP?S.SHR_NONCE_VALIDITY:("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,l=s+u,d=this.generateScopes(e,t),h=wt.createAccessTokenEntity(n,t.authority,o,t.clientId,i?i.claims.tid||S.EMPTY_STRING:a,d.printScopes(),l,0,this.browserCrypto),f=new pn(r,c,h);this.nativeStorageManager.saveCacheRecord(f)},t.prototype.addTelemetryFromNativeResponse=function(e){var t=this.getMATSFromResponse(e);return t?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Nn.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(t){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return"undefined"===typeof e.is_cached?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a,u,d,h,f,p=this;return l(this,(function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),t=e.authority||this.config.auth.authority,e.account?[4,this.validateRequestAuthority(t,e.account)]:[3,2];case 1:l.sent(),l.label=2;case 2:return n=new Mt(t),n.validateAsUri(),r=e.scopes,i=c(e,["scopes"]),o=new dt(r||[]),o.appendScopes(C),a=function(){switch(p.apiId){case ie.ssoSilent:case ie.acquireTokenSilent_silentFlow:return p.logger.trace("initializeNativeRequest: silent request sets prompt to none"),R.NONE}if(e.prompt)switch(e.prompt){case R.NONE:case R.CONSENT:case R.LOGIN:return p.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw p.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),Le.createNativePromptParameterNotSupportedError()}else p.logger.trace("initializeNativeRequest: prompt was not provided")},u=s(s({},i),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:o.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:a(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:s(s(s({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:me.MATS_TELEMETRY}),extendedExpiryToken:!1}),e.authenticationScheme!==j.POP?[3,4]:(d={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},h=new mn(this.browserCrypto),[4,h.generateCnf(d)]);case 3:f=l.sent(),u.reqCnf=f.reqCnfString,u.keyId=f.kid,l.label=4;case 4:return[2,u]}}))}))},t}(kn),Fn=function(){function e(e,t,n,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(o.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return u(this,void 0,void 0,(function(){var t,n=this;return l(this,(function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:me.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise((function(e,r){n.resolvers.set(t.responseId,{resolve:e,reject:r})}))]}))}))},e.createProvider=function(t,n,r){return u(this,void 0,void 0,(function(){var i,o;return l(this,(function(a){switch(a.label){case 0:t.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),i=new e(t,n,r,me.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),o=new e(t,n,r),[4,o.sendHandshakeRequest()];case 4:return a.sent(),[2,o];case 5:return[2]}}))}))},e.prototype.sendHandshakeRequest=function(){return u(this,void 0,void 0,(function(){var e,t=this;return l(this,(function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:me.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Z.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(e){t.onChannelMessage(e)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise((function(n,r){t.handshakeResolvers.set(e.responseId,{resolve:n,reject:r}),t.timeoutId=window.setTimeout((function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),r(Le.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)}),t.handshakeTimeoutMs)}))]}))}))},e.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(t.channel&&t.channel===me.CHANNEL_ID&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===Z.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(Le.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===Z.Response){if(!n)return;var o=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(o)),"Success"!==o.status)n.reject(Nn.createError(o.code,o.description,o.ext));else{if(!o.result)throw ce.createUnexpectedError("Event does not contain result.");o.result["code"]&&o.result["description"]?n.reject(Nn.createError(o.result["code"],o.result["description"],o.result["ext"])):n.resolve(o.result)}this.resolvers.delete(t.responseId)}else if(i===Z.HandshakeResponse){if(!r)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(a){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+a.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(a):r&&r.reject(a)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(e,t,n,r){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(r)switch(r){case j.BEARER:case j.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e}(),qn=function(){function e(e,t,n,r,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=i}return e.prototype.handleCodeResponseFromHash=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,a,s;return l(this,(function(c){if(this.performanceClient.addQueueMeasurement(o.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),Pe.isEmpty(e))throw Le.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(i),!a)throw Ne.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(u){throw u instanceof ue&&u.subError===De.userCancelledError.code?Le.createUserCancelledError():u}return this.performanceClient.setPreQueueTime(o.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,r)]}))}))},e.prototype.handleCodeResponseFromServer=function(e,t,n,r,i){return void 0===i&&(i=!0),u(this,void 0,void 0,(function(){var a,s,c,u,d,h;return l(this,(function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(o.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(a),!s)throw Ne.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(o.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,r)]):[3,2];case 1:l.sent(),l.label=2;case 2:return i&&(e.nonce=u||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),this.performanceClient.setPreQueueTime(o.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return h=l.sent(),this.browserStorage.cleanRequestByState(t),[2,h]}}))}))},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return u(this,void 0,void 0,(function(){var r,i;return l(this,(function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(o.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),r="https://"+e+"/"+t.tenant+"/",[4,On.createDiscoveredInstance(r,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}}))}))},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(te.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),Bn=function(e){function t(t,n,r,i,o,a,s,c,u,l){var d=e.call(this,t,n,r,i,o,a,s,u,l)||this;return d.unloadWindow=d.unloadWindow.bind(d),d.nativeStorage=c,d}return i(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||C,e.authority||this.config.auth.authority),n=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,t,n);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var r=this.openSizedPopup("about:blank",t,n);return this.acquireTokenPopupAsync(e,t,n,r)}catch(i){return Promise.reject(i)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),n=this.generateLogoutPopupName(t),r=e&&e.authority,i=e&&e.mainWindowRedirectUri,o=(null===e||void 0===e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,o,r,void 0,i);this.logger.verbose("asyncPopup set to false, opening popup");var a=this.openSizedPopup("about:blank",n,o);return this.logoutPopupAsync(t,n,o,r,a,i)}catch(s){return Promise.reject(s)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,a,c,u,d,h,f,p,m,g,v,y,b,_,E,w,T,I=this;return l(this,(function(l){switch(l.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),i=this.initializeServerTelemetryManager(ie.acquireTokenPopup),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,oe.Popup)];case 1:a=l.sent(),this.browserStorage.updateCacheEntries(a.state,a.nonce,a.authority,a.loginHint||S.EMPTY_STRING,a.account||null),l.label=2;case 2:return l.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(a)];case 3:return c=l.sent(),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(i,a.authority,a.azureCloudOptions)];case 4:return u=l.sent(),this.logger.verbose("Auth code client created"),d=Fn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),h=void 0,d&&(h=this.performanceClient.startMeasurement(o.FetchAccountIdWithNativeBroker,e.correlationId)),[4,u.getAuthCodeUrl(s(s({},a),{nativeBroker:d}))];case 5:return f=l.sent(),p=new qn(u,this.browserStorage,c,this.logger,this.performanceClient),m={popup:r,popupName:t,popupWindowAttributes:n},g=this.initiateAuthRequest(f,m),this.eventHandler.emitEvent(rn.POPUP_OPENED,oe.Popup,{popupWindow:g},null),[4,this.monitorPopupForHash(g)];case 6:if(v=l.sent(),y=Mt.getDeserializedHash(v),b=this.validateAndExtractStateFromHash(y,oe.Popup,a.correlationId),un.removeThrottle(this.browserStorage,this.config.auth.clientId,c),y.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),h&&h.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Le.createNativeConnectionNotEstablishedError();return _=new Un(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,y.accountId,this.nativeStorage,a.correlationId),E=Ot.parseRequestState(this.browserCrypto,b).userRequestState,[2,_.acquireToken(s(s({},a),{state:E,prompt:void 0})).finally((function(){I.browserStorage.cleanRequestByState(b)}))]}return[4,p.handleCodeResponseFromHash(v,b,u.authority,this.networkClient)];case 7:return w=l.sent(),[2,w];case 8:throw T=l.sent(),r&&r.close(),T instanceof ce&&T.setCorrelationId(this.correlationId),i.cacheFailedRequest(T),this.browserStorage.cleanRequestByState(a.state),T;case 9:return[2]}}))}))},t.prototype.logoutPopupAsync=function(e,t,n,r,i,a){return u(this,void 0,void 0,(function(){var s,c,u,d,h,f,p;return l(this,(function(l){switch(l.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(rn.LOGOUT_START,oe.Popup,e),s=this.initializeServerTelemetryManager(ie.logoutPopup),l.label=1;case 1:return l.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return l.sent(),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(s,r)];case 3:return c=l.sent(),this.logger.verbose("Auth code client created"),u=c.getLogoutUri(e),this.eventHandler.emitEvent(rn.LOGOUT_SUCCESS,oe.Popup,e),d=this.openPopup(u,{popupName:t,popupWindowAttributes:n,popup:i}),this.eventHandler.emitEvent(rn.POPUP_OPENED,oe.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return l.sent(),a?(h={apiId:ie.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Mt.getAbsoluteUrl(a,Xt.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw p=l.sent(),i&&i.close(),p instanceof ce&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(rn.LOGOUT_FAILURE,oe.Popup,null,p),this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Popup),s.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Popup),[2]}}))}))},t.prototype.initiateAuthRequest=function(e,t){if(Pe.isEmpty(e))throw this.logger.error("Navigate url is empty"),Le.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+e),this.openPopup(e,t)},t.prototype.monitorPopupForHash=function(e){var t=this;return new Promise((function(n,r){var i=t.config.system.windowHashTimeout/t.config.system.pollIntervalMilliseconds,o=0;t.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var a=setInterval((function(){if(e.closed)return t.logger.error("PopupHandler.monitorPopupForHash - window closed"),t.cleanPopup(),clearInterval(a),void r(Le.createUserCancelledError());var s=S.EMPTY_STRING,c=S.EMPTY_STRING;try{s=e.location.href,c=e.location.hash}catch(u){}Pe.isEmpty(s)||"about:blank"===s||(t.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),o++,c?(t.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(a),t.cleanPopup(e),Mt.hashContainsKnownProperties(c)?(t.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(c)):(t.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."),t.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+c),r(Le.createHashDoesNotContainKnownPropertiesError()))):o>i&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(a),r(Le.createMonitorPopupTimeoutError())))}),t.config.system.pollIntervalMilliseconds)}))},t.prototype.waitForLogoutPopup=function(e){var t=this;return new Promise((function(n){t.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var r=setInterval((function(){e.closed&&(t.logger.error("PopupHandler.waitForLogoutPopup - window closed"),t.cleanPopup(),clearInterval(r),n());var i=S.EMPTY_STRING;try{i=e.location.href}catch(o){}Pe.isEmpty(i)||"about:blank"===i||(t.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(r),t.cleanPopup(e),n())}),t.config.system.pollIntervalMilliseconds)}))},t.prototype.openPopup=function(e,t){try{var n=void 0;if(t.popup?(n=t.popup,this.logger.verbosePii("Navigating popup window to: "+e),n.location.assign(e)):"undefined"===typeof t.popup&&(this.logger.verbosePii("Opening popup window to: "+e),n=this.openSizedPopup(e,t.popupName,t.popupWindowAttributes)),!n)throw Le.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),Le.createPopupWindowError(r.toString())}},t.prototype.openSizedPopup=function(e,t,n){var r,i,o,a,s=window.screenLeft?window.screenLeft:window.screenX,c=window.screenTop?window.screenTop:window.screenY,u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,d=null===(r=n.popupSize)||void 0===r?void 0:r.width,h=null===(i=n.popupSize)||void 0===i?void 0:i.height,f=null===(o=n.popupPosition)||void 0===o?void 0:o.top,p=null===(a=n.popupPosition)||void 0===a?void 0:a.left;return(!d||d<0||d>u)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),d=pe.POPUP_WIDTH),(!h||h<0||h>l)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),h=pe.POPUP_HEIGHT),(!f||f<0||f>l)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),f=Math.max(0,l/2-pe.POPUP_HEIGHT/2+c)),(!p||p<0||p>u)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),p=Math.max(0,u/2-pe.POPUP_WIDTH/2+s)),window.open(e,t,"width="+d+", height="+h+", top="+f+", left="+p+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(oe.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,t){return pe.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var t=e.account&&e.account.homeAccountId;return pe.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},t}(xn),Hn=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,i,a)||this;return s.browserCrypto=o,s}return i(t,e),t.prototype.initiateAuthRequest=function(e,t){return u(this,void 0,void 0,(function(){var n,r;return l(this,(function(i){switch(i.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),Pe.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(te.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(te.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:ie.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1},"function"!==typeof t.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),r=t.onRedirectNavigate(e),!1===r?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,t.navigationClient.navigateExternal(e,n)])));case 1:return i.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,t.navigationClient.navigateExternal(e,n)];case 5:return i.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Le.createEmptyNavigationUriError();case 8:return[2]}}))}))},t.prototype.handleCodeResponseFromHash=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,o,a,s,c,u,d;return l(this,(function(l){switch(l.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),Pe.isEmpty(e))throw Le.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),i=this.browserStorage.generateStateKey(t),o=this.browserStorage.getTemporaryCache(i),!o)throw Ne.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,o)}catch(h){throw h instanceof ue&&h.subError===De.userCancelledError.code?Le.createUserCancelledError():h}return s=this.browserStorage.generateNonceKey(o),c=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=a.code,a.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(a.cloud_instance_host_name,n,r)]:[3,2];case 1:l.sent(),l.label=2;case 2:return a.nonce=c||void 0,a.state=o,a.client_info?this.authCodeRequest.clientInfo=a.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),[4,this.authModule.acquireToken(this.authCodeRequest,a)];case 3:return d=l.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}}))}))},t}(qn),jn=function(e){function t(t,n,r,i,o,a,s,c,u,l){var d=e.call(this,t,n,r,i,o,a,s,u,l)||this;return d.nativeStorage=c,d}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c,u,d,h,f=this;return l(this,(function(l){switch(l.label){case 0:return this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,oe.Redirect)];case 1:t=l.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||S.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(ie.acquireTokenRedirect),r=function(e){e.persisted&&(f.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),f.browserStorage.cleanRequestByState(t.state),f.eventHandler.emitEvent(rn.RESTORE_FROM_BFCACHE,oe.Redirect))},l.label=2;case 2:return l.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 3:return i=l.sent(),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(n,t.authority,t.azureCloudOptions)];case 4:return a=l.sent(),this.logger.verbose("Auth code client created"),c=new Hn(a,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,a.getAuthCodeUrl(s(s({},t),{nativeBroker:Fn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return u=l.sent(),d=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+d),window.addEventListener("pageshow",r),[4,c.initiateAuthRequest(u,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:d,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,l.sent()];case 7:throw h=l.sent(),h instanceof ce&&h.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),n.cacheFailedRequest(h),this.browserStorage.cleanRequestByState(t.state),h;case 8:return[2]}}))}))},t.prototype.handleRedirectPromise=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,d,h,f;return l(this,(function(l){switch(l.label){case 0:t=this.initializeServerTelemetryManager(ie.handleRedirectPromise),l.label=1;case 1:if(l.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(n=this.getRedirectResponseHash(e||window.location.hash),!n)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),[2,null];r=void 0;try{i=Mt.getDeserializedHash(n),r=this.validateAndExtractStateFromHash(i,oe.Redirect),this.logger.verbose("State extracted from hash")}catch(p){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+p),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),[2,null]}return o=this.browserStorage.getTemporaryCache(te.ORIGIN_URI,!0)||S.EMPTY_STRING,a=Mt.removeHashFromUrl(o),s=Mt.removeHashFromUrl(window.location.href),a===s&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,t)]):[3,3];case 2:return c=l.sent(),o.indexOf("#")>-1&&Xt.replaceHash(o),[2,c];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,r,t)]);case 4:return Xt.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(te.URL_HASH,n,!0),u={apiId:ie.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},d=!0,o&&"null"!==o?[3,6]:(h=Xt.getHomepage(),this.browserStorage.setTemporaryCache(te.ORIGIN_URI,h,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(h,u)]));case 5:return d=l.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+o),[4,this.navigationClient.navigateInternal(o,u)];case 7:d=l.sent(),l.label=8;case 8:if(!d)return[2,this.handleHash(n,r,t)];l.label=9;case 9:return[2,null];case 10:throw f=l.sent(),f instanceof ce&&f.setCorrelationId(this.correlationId),t.cacheFailedRequest(f),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),f;case 11:return[2]}}))}))},t.prototype.getRedirectResponseHash=function(e){this.logger.verbose("getRedirectResponseHash called");var t=Mt.hashContainsKnownProperties(e);if(t)return Xt.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var n=this.browserStorage.getTemporaryCache(te.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(te.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),n},t.prototype.handleHash=function(e,t,n){return u(this,void 0,void 0,(function(){var r,i,a,c,u,d,h,f=this;return l(this,(function(l){switch(l.label){case 0:if(r=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),i=Mt.getDeserializedHash(e),i.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Le.createNativeConnectionNotEstablishedError();return a=new Un(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,i.accountId,this.nativeStorage,r.correlationId),c=Ot.parseRequestState(this.browserCrypto,t).userRequestState,[2,a.acquireToken(s(s({},r),{state:c,prompt:void 0})).finally((function(){f.browserStorage.cleanRequestByState(t)}))]}if(u=this.browserStorage.getCachedAuthority(t),!u)throw Le.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(n,u)];case 1:return d=l.sent(),this.logger.verbose("Auth code client created"),un.removeThrottle(this.browserStorage,this.config.auth.clientId,r),h=new Hn(d,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient),[4,h.handleCodeResponseFromHash(e,t,d.authority,this.networkClient)];case 2:return[2,l.sent()]}}))}))},t.prototype.logout=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,s,c;return l(this,(function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(ie.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(rn.LOGOUT_START,oe.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return u.sent(),r={apiId:ie.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:return i=u.sent(),this.logger.verbose("Auth code client created"),a=i.getLogoutUri(t),this.eventHandler.emitEvent(rn.LOGOUT_SUCCESS,oe.Redirect,t),e&&"function"===typeof e.onRedirectNavigate?(s=e.onRedirectNavigate(a),!1===s?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,r)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,r)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw c=u.sent(),c instanceof ce&&c.setCorrelationId(this.correlationId),n.cacheFailedRequest(c),this.eventHandler.emitEvent(rn.LOGOUT_FAILURE,oe.Redirect,null,c),this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Redirect),c;case 11:return this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Redirect),[2]}}))}))},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return Mt.getAbsoluteUrl(t,Xt.getCurrentUri())},t}(xn),Vn=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,i,a)||this;return s.navigateFrameWait=o.navigateFrameWait,s.pollIntervalMilliseconds=o.pollIntervalMilliseconds,s}return i(t,e),t.prototype.initiateAuthRequest=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(o.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),Pe.isEmpty(e))throw this.logger.info("Navigate url is empty"),Le.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(o.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(e)]):[3,2];case 1:return[2,t.sent()];case 2:return[2,this.loadFrameSync(e)]}}))}))},t.prototype.monitorIframeForHash=function(e,t){var n=this;return this.performanceClient.addQueueMeasurement(o.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise((function(r,i){t<Jt&&n.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+t+"ms) than the default ("+Jt+"ms). This may result in timeouts.");var o=window.performance.now(),a=o+t,s=setInterval((function(){if(window.performance.now()>a)return n.removeHiddenIframe(e),clearInterval(s),void i(Le.createMonitorIframeTimeoutError());var t=S.EMPTY_STRING,o=e.contentWindow;try{t=o?o.location.href:S.EMPTY_STRING}catch(u){}if(!Pe.isEmpty(t)){var c=o?o.location.hash:S.EMPTY_STRING;return Mt.hashContainsKnownProperties(c)?(n.removeHiddenIframe(e),clearInterval(s),void r(c)):void 0}}),n.pollIntervalMilliseconds)}))},t.prototype.loadFrame=function(e){var t=this;return this.performanceClient.addQueueMeasurement(o.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise((function(n,r){var i=t.createHiddenIframe();setTimeout((function(){i?(i.src=e,n(i)):r("Unable to load iframe")}),t.navigateFrameWait)}))},t.prototype.loadFrameSync=function(e){var t=this.createHiddenIframe();return t.src=e,t},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(qn),Gn=function(e){function t(t,n,r,i,o,a,s,c,u,l,d){var h=e.call(this,t,n,r,i,o,a,c,l,d)||this;return h.apiId=s,h.nativeStorage=u,h}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a;return l(this,(function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(o.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(o.SilentIframeClientAcquireToken,e.correlationId),Pe.isEmpty(e.loginHint)&&Pe.isEmpty(e.sid)&&(!e.account||Pe.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==R.NONE&&e.prompt!==R.NO_SESSION)throw t.endMeasurement({success:!1}),Le.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(s(s({},e),{prompt:e.prompt||R.NONE}),oe.Silent)];case 1:n=c.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||S.EMPTY_STRING,n.account||null),r=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(r,n.authority,n.azureCloudOptions)];case 3:return i=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(o.SilentIframeClientTokenHelper,e.correlationId),[4,this.silentTokenHelper(i,n).then((function(e){return t.endMeasurement({success:!0,fromCache:!1,requestId:e.requestId}),e}))];case 4:return[2,c.sent()];case 5:throw a=c.sent(),a instanceof ce&&a.setCorrelationId(this.correlationId),r.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:a instanceof ce&&a.errorCode||void 0,subErrorCode:a instanceof ce&&a.subError||void 0,success:!1}),a;case 6:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Le.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i,a,c,u,d,h,f,p=this;return l(this,(function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(o.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 1:return n=l.sent(),this.performanceClient.setPreQueueTime(o.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl(s(s({},t),{nativeBroker:Fn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return r=l.sent(),i=new Vn(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(o.SilentHandlerInitiateAuthRequest,t.correlationId),[4,i.initiateAuthRequest(r)];case 3:return a=l.sent(),this.performanceClient.setPreQueueTime(o.SilentHandlerMonitorIframeForHash,t.correlationId),[4,i.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(c=l.sent(),u=Mt.getDeserializedHash(c),d=this.validateAndExtractStateFromHash(u,oe.Silent,n.correlationId),u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Le.createNativeConnectionNotEstablishedError();return h=new Un(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,this.correlationId),f=Ot.parseRequestState(this.browserCrypto,d).userRequestState,[2,h.acquireToken(s(s({},t),{state:f,prompt:t.prompt||R.NONE})).finally((function(){p.browserStorage.cleanRequestByState(d)}))]}return this.performanceClient.setPreQueueTime(o.HandleCodeResponseFromHash,t.correlationId),[2,i.handleCodeResponseFromHash(c,d,e.authority,this.networkClient)]}}))}))},t}(xn),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c=this;return l(this,(function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(o.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(o.InitializeBaseRequest,e.correlationId),n=[s({},e)],[4,this.initializeBaseRequest(e,e.account)];case 1:return t=s.apply(void 0,n.concat([u.sent()])),r=this.performanceClient.startMeasurement(o.SilentRefreshClientAcquireToken,t.correlationId),i=this.initializeServerTelemetryManager(ie.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(i,t.authority,t.azureCloudOptions)];case 2:return a=u.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(o.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),[2,a.acquireTokenByRefreshToken(t).then((function(e){return r.endMeasurement({success:!0,fromCache:e.fromCache,requestId:e.requestId}),e})).catch((function(e){throw e instanceof ce&&e.setCorrelationId(c.correlationId),i.cacheFailedRequest(e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}))]}}))}))},t.prototype.logout=function(){return Promise.reject(Le.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return u(this,void 0,void 0,(function(){var r;return l(this,(function(i){switch(i.label){case 0:return this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=i.sent(),[2,new Pn(r,this.performanceClient)]}}))}))},t}(xn),$n=function(){function e(e,t,n,r){this.isBrowserEnvironment="undefined"!==typeof window,this.config=e,this.storage=t,this.logger=n,this.cryptoObj=r}return e.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw Le.createUnableToLoadTokenError("Please ensure server response includes id token.");var r,i,o=new gt(t.id_token,this.cryptoObj);if(e.account){var a=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);r=new pn(a,this.loadIdToken(o,a.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,a.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,a.homeAccountId,e.account.environment))}else{if(!e.authority)throw Le.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var s=An.generateAuthority(e.authority,e.azureCloudOptions),c={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(i=new An(s,this.config.system.networkClient,this.storage,c,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");a=this.loadAccount(o,i.hostnameAndPort,n.clientInfo,i.authorityType);r=new pn(a,this.loadIdToken(o,a.homeAccountId,i.hostnameAndPort,i.tenant),this.loadAccessToken(e,t,a.homeAccountId,i.hostnameAndPort,i.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,i.hostnameAndPort))}else{if(!t.client_info)throw Le.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response");a=this.loadAccount(o,i.hostnameAndPort,t.client_info,i.authorityType);r=new pn(a,this.loadIdToken(o,a.homeAccountId,i.hostnameAndPort,i.tenant),this.loadAccessToken(e,t,a.homeAccountId,i.hostnameAndPort,i.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,i.hostnameAndPort))}}return this.generateAuthenticationResult(e,o,r,i)},e.prototype.loadAccount=function(e,t,n,r,i){var o;if(i?o=i:void 0!==r&&n&&(o=mt.generateHomeAccountId(n,r,this.logger,this.cryptoObj,e)),!o)throw Le.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=n?mt.createAccount(n,o,e,void 0,void 0,void 0,t):mt.createGenericAccount(o,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(a),a;throw Le.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,r){var i=ct.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw Le.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(e,t,n,r,i,o){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw Le.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!o.extendedExpiresOn)throw Le.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new dt(e.scopes).printScopes(),s=o.expiresOn||t.expires_in+(new Date).getTime()/1e3,c=o.extendedExpiresOn,u=wt.createAccessTokenEntity(n,r,t.access_token,this.config.auth.clientId,i,a,s,c,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw Le.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(e,t,n,r){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=Tt.createRefreshTokenEntity(n,r,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw Le.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,r){var i,o,a,s,c=S.EMPTY_STRING,u=[],l=null;(null===n||void 0===n?void 0:n.accessToken)&&(c=n.accessToken.secret,u=dt.fromString(n.accessToken.target).asArray(),l=new Date(1e3*Number(n.accessToken.expiresOn)),s=new Date(1e3*Number(n.accessToken.extendedExpiresOn)));var d=(null===t||void 0===t?void 0:t.claims.oid)||(null===t||void 0===t?void 0:t.claims.sub)||S.EMPTY_STRING,h=(null===t||void 0===t?void 0:t.claims.tid)||S.EMPTY_STRING;return{authority:r?r.canonicalAuthority:S.EMPTY_STRING,uniqueId:d,tenantId:h,scopes:u,account:(null===n||void 0===n?void 0:n.account)?n.account.getAccountInfo():null,idToken:t?t.rawToken:S.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:l,correlationId:e.correlationId||S.EMPTY_STRING,requestId:S.EMPTY_STRING,extExpiresOn:s,familyId:S.EMPTY_STRING,tokenType:(null===(i=null===n||void 0===n?void 0:n.accessToken)||void 0===i?void 0:i.tokenType)||S.EMPTY_STRING,state:S.EMPTY_STRING,cloudGraphHostName:(null===(o=null===n||void 0===n?void 0:n.account)||void 0===o?void 0:o.cloudGraphHostName)||S.EMPTY_STRING,msGraphHost:(null===(a=null===n||void 0===n?void 0:n.account)||void 0===a?void 0:a.msGraphHost)||S.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}(),Yn=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return i(t,e),t}(yn),Kn=function(e){function t(t,n,r,i,o,a,s,c,u,l){var d=e.call(this,t,n,r,i,o,a,c,u,l)||this;return d.apiId=s,d}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c,u;return l(this,(function(l){switch(l.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw Le.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,oe.Silent)];case 1:t=l.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||S.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,4,,5]),r=s(s({},t),{code:e.code}),this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return i=l.sent(),a=new Yn(i),this.logger.verbose("Auth code client created"),c=new Vn(a,this.browserStorage,r,this.logger,this.config.system,this.performanceClient),[2,c.handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t.state,a.authority,this.networkClient,!1)];case 4:throw u=l.sent(),u instanceof ce&&u.setCorrelationId(this.correlationId),n.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(t.state),u;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Le.createSilentLogoutUnsupportedError())},t}(xn),Wn=function(){function e(t,n){this.correlationId=n,this.measureName=e.makeMeasureName(t,n),this.startMark=e.makeStartMark(t,n),this.endMark=e.makeEndMark(t,n)}return e.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},e.makeStartMark=function(e,t){return"msal.start."+e+"."+t},e.makeEndMark=function(e,t){return"msal.end."+e+"."+t},e.supportsBrowserPerformance=function(){return"undefined"!==typeof window&&"undefined"!==typeof 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},e.flushMeasurements=function(t,n){if(e.supportsBrowserPerformance())try{n.forEach((function(n){var r=e.makeMeasureName(n.name,t),i=window.performance.getEntriesByName(r,"measure");i.length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(e.makeStartMark(r,t)),window.performance.clearMarks(e.makeEndMark(r,t)))}))}catch(r){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(t){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(t){}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var n=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),n}}catch(r){}return null},e}(),Xn=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this,t,n,r,i,o,a)||this;return c.browserCrypto=new Ke(c.logger,s),c.guidGenerator=new Oe(c.browserCrypto),c}return i(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new Wn(e,t)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(e){var t=this.eventsByCorrelationId.get(e.event.correlationId),n=t&&t.eventId===e.event.eventId,r=[];n&&(null===t||void 0===t?void 0:t.incompleteSubMeasurements)&&t.incompleteSubMeasurements.forEach((function(e){r.push(s({},e))})),r.length>0&&Wn.flushMeasurements(e.event.correlationId,r)},t.prototype.supportsBrowserPerformanceNow=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.performance&&"function"===typeof window.performance.now},t.prototype.startMeasurement=function(t,n){var r=this,i=this.getPageVisibility(),o=e.prototype.startMeasurement.call(this,t,n);return s(s({},o),{endMeasurement:function(e){var t=o.endMeasurement(s({startPageVisibility:i,endPageVisibility:r.getPageVisibility()},e));return r.deleteIncompleteSubMeasurements(o),t},discardMeasurement:function(){o.discardMeasurement(),r.deleteIncompleteSubMeasurements(o),o.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(e,t){if(this.supportsBrowserPerformanceNow())if(t){var n=this.preQueueTimeByCorrelationId.get(t);n&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+n.name+" found",t),this.addQueueMeasurement(n.name,t,void 0,!0)),this.preQueueTimeByCorrelationId.set(t,{name:e,time:window.performance.now()})}else this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to set telemetry queue time");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+e)},t.prototype.addQueueMeasurement=function(t,n,r,i){if(this.supportsBrowserPerformanceNow())if(n){var o=e.prototype.getPreQueueTime.call(this,t,n);if(o){var a=window.performance.now(),s=r||e.prototype.calculateQueuedTime.call(this,o,a);return e.prototype.addQueueMeasurement.call(this,t,n,s,i)}}else this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t)},t}(rt),Qn=function(){function e(e){this.isBrowserEnvironment="undefined"!==typeof window,this.config=nn(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new nt(this.config.system.loggerOptions,on,an),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 Xn(this.config.auth.clientId,this.config.auth.authority,this.logger,on,an,this.config.telemetry.application,this.config.system.cryptoOptions):new ot(this.config.auth.clientId,this.config.auth.authority,this.logger,on,an,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new et(this.logger,this.performanceClient,this.config.system.cryptoOptions):at,this.eventHandler=new cn(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Pt(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Dt(this.config.auth.clientId,this.logger);var t={cacheLocation:J.MemoryStorage,temporaryCacheLocation:J.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new Pt(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new $n(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return u(this,void 0,void 0,(function(){var e,t,n,r,i;return l(this,(function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(o.InitializeClientApplication),this.eventHandler.emitEvent(rn.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,Fn.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return r=a.sent(),this.logger.verbose(r),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(o.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),i.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(rn.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}}))}))},e.prototype.handleRedirectPromise=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u=this;return l(this,(function(l){return this.logger.verbose("handleRedirectPromise called"),Xt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||S.EMPTY_STRING,r=this.redirectResponse.get(n),"undefined"===typeof r?(this.eventHandler.emitEvent(rn.HANDLE_REDIRECT_START,oe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),o=void 0,i&&Fn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Un(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),o=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),s=this.browserStorage.getTemporaryCache(te.CORRELATION_ID,!0)||S.EMPTY_STRING,c=this.createRedirectClient(s),o=c.handleRedirectPromise(e)),r=o.then((function(e){if(e){var n=t.length<u.getAllAccounts().length;n?(u.eventHandler.emitEvent(rn.LOGIN_SUCCESS,oe.Redirect,e),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_SUCCESS,oe.Redirect,e),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(rn.HANDLE_REDIRECT_END,oe.Redirect),e})).catch((function(e){throw t.length>0?u.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,e):u.eventHandler.emitEvent(rn.LOGIN_FAILURE,oe.Redirect,null,e),u.eventHandler.emitEvent(rn.HANDLE_REDIRECT_END,oe.Redirect),e})),this.redirectResponse.set(n,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])}))}))},e.prototype.acquireTokenRedirect=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a=this;return l(this,(function(s){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(oe.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_START,oe.Redirect,e):this.eventHandler.emitEvent(rn.LOGIN_START,oe.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new Un(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),r=i.acquireTokenRedirect(e).catch((function(t){if(t instanceof Nn&&t.isFatal()){a.nativeExtensionProvider=void 0;var n=a.createRedirectClient(e.correlationId);return n.acquireToken(e)}if(t instanceof fe){a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");n=a.createRedirectClient(e.correlationId);return n.acquireToken(e)}throw a.browserStorage.setInteractionInProgress(!1),t}))):(o=this.createRedirectClient(e.correlationId),r=o.acquireToken(e)),[2,r.catch((function(e){throw n?a.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,e):a.eventHandler.emitEvent(rn.LOGIN_FAILURE,oe.Redirect,null,e),e}))]}))}))},e.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(o.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(oe.Popup)}catch(c){return Promise.reject(c)}var i,a=this.getAllAccounts();if(a.length>0?this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_START,oe.Popup,e):this.eventHandler.emitEvent(rn.LOGIN_START,oe.Popup,e),this.canUseNative(e))i=this.acquireTokenNative(e,ie.acquireTokenPopup).then((function(e){return t.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e})).catch((function(n){if(n instanceof Nn&&n.isFatal()){t.nativeExtensionProvider=void 0;var r=t.createPopupClient(e.correlationId);return r.acquireToken(e)}if(n instanceof fe){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");r=t.createPopupClient(e.correlationId);return r.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),n}));else{var s=this.createPopupClient(e.correlationId);i=s.acquireToken(e)}return i.then((function(e){var n=a.length<t.getAllAccounts().length;return n?t.eventHandler.emitEvent(rn.LOGIN_SUCCESS,oe.Popup,e):t.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_SUCCESS,oe.Popup,e),r.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),r.endMeasurement({success:!0,requestId:e.requestId}),e})).catch((function(e){return a.length>0?t.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Popup,null,e):t.eventHandler.emitEvent(rn.LOGIN_FAILURE,oe.Popup,null,e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),Promise.reject(e)}))},e.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(e){var t;return u(this,void 0,void 0,(function(){var n,r,i,a,c=this;return l(this,(function(u){return n=this.getRequestCorrelationId(e),r=s(s({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(o.SsoSilent,n),null===(t=this.ssoSilentMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(rn.SSO_SILENT_START,oe.Silent,r),this.canUseNative(r)?i=this.acquireTokenNative(r,ie.ssoSilent).catch((function(e){if(e instanceof Nn&&e.isFatal()){c.nativeExtensionProvider=void 0;var t=c.createSilentIframeClient(r.correlationId);return t.acquireToken(r)}throw e})):(a=this.createSilentIframeClient(r.correlationId),i=a.acquireToken(r)),[2,i.then((function(e){var t,n;return c.eventHandler.emitEvent(rn.SSO_SILENT_SUCCESS,oe.Silent,e),null===(t=c.ssoSilentMeasurement)||void 0===t||t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),null===(n=c.ssoSilentMeasurement)||void 0===n||n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw c.eventHandler.emitEvent(rn.SSO_SILENT_FAILURE,oe.Silent,null,e),null===(t=c.ssoSilentMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",c.trackPageVisibilityWithMeasurement)}))]}))}))},e.prototype.acquireTokenByCode=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a=this;return l(this,(function(c){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_START,oe.Silent,e),n=this.performanceClient.startMeasurement(o.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw Le.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return r=e.code,i=this.hybridAuthCodeResponses.get(r),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync(s(s({},e),{correlationId:t})).then((function(e){return a.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_SUCCESS,oe.Silent,e),a.hybridAuthCodeResponses.delete(r),n.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){throw a.hybridAuthCodeResponses.delete(r),a.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,e),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})),this.hybridAuthCodeResponses.set(r,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ie.acquireTokenByCode,e.nativeAccountId).catch((function(e){throw e instanceof Nn&&e.isFatal()&&(a.nativeExtensionProvider=void 0),e}))];throw Le.createUnableToAcquireTokenFromNativePlatformError()}throw Le.createAuthCodeOrNativeAccountIdRequiredError()}catch(u){throw this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,u),n.endMeasurement({errorCode:u instanceof ce&&u.errorCode||void 0,subErrorCode:u instanceof ce&&u.subError||void 0,success:!1}),u}return[2]}))}))},e.prototype.acquireTokenByCodeAsync=function(e){var t;return u(this,void 0,void 0,(function(){var n,r,i=this;return l(this,(function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(o.AcquireTokenByCodeAsync,e.correlationId),null===(t=this.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then((function(e){var t;return null===(t=i.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw null===(t=i.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)}))];case 1:return r=a.sent(),[2,r]}}))}))},e.prototype.acquireTokenFromCache=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){switch(this.performanceClient.addQueueMeasurement(o.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case be.Default:case be.AccessToken:case be.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw Ne.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenByRefreshToken=function(e,t){return u(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(this.performanceClient.addQueueMeasurement(o.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case be.Default:case be.AccessTokenAndRefreshToken:case be.RefreshToken:case be.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(o.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw Ne.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenBySilentIframe=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return this.performanceClient.addQueueMeasurement(o.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(o.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]}))}))},e.prototype.logout=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(s({correlationId:t},e))]}))}))},e.prototype.logoutRedirect=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(oe.Redirect),n=this.createRedirectClient(t),[2,n.logout(e)]}))}))},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(oe.Popup);var n=this.createPopupClient(t);return n.logout(e)}catch(r){return Promise.reject(r)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(void 0===t&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Xt.blockNonBrowserEnvironment(this.isBrowserEnvironment),Xt.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Xt.blockReloadInHiddenIframes(),Xt.blockAcquireTokenInPopups(),Xt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===oe.Redirect&&this.config.cache.cacheLocation===J.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Ve.createInMemoryRedirectUnavailableError();e!==oe.Redirect&&e!==oe.Popup||this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Xt.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return u(this,void 0,void 0,(function(){var r;return l(this,(function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Le.createNativeConnectionNotEstablishedError();return r=new Un(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,r.acquireToken(e)]}))}))},e.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Fn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case R.NONE:case R.CONSENT:case R.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!(!t&&!this.getNativeAccountId(e))||(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1)},e.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},e.prototype.createPopupClient=function(e){return new Bn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createRedirectClient=function(e){return new jn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentIframeClient=function(e){return new Gn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new Ln(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new zn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new Kn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},e.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},e.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},e.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(e){this.logger=e},e.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},e.prototype.setNavigationClient=function(e){this.navigationClient=e},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(e){return(null===e||void 0===e?void 0:e.correlationId)?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():S.EMPTY_STRING},e}(),Zn=function(e){function t(t){var n=e.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return i(t,e),t.prototype.loginRedirect=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect(s({correlationId:t},e||ve))]}))}))},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup(s({correlationId:t},e||ve))},t.prototype.acquireTokenSilent=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c,u,d=this;return l(this,(function(l){if(t=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(o.AcquireTokenSilent,t),n.addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.verbose("acquireTokenSilent called",t),r=e.account||this.getActiveAccount(),!r)throw Le.createNoAccountError();return i={clientId:this.config.auth.clientId,authority:e.authority||S.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:r.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},a=JSON.stringify(i),c=this.activeSilentTokenRequests.get(a),"undefined"===typeof c?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t),this.performanceClient.setPreQueueTime(o.AcquireTokenSilentAsync,t),u=this.acquireTokenSilentAsync(s(s({},e),{correlationId:t}),r).then((function(t){return d.activeSilentTokenRequests.delete(a),n.addStaticFields({accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length}),n.endMeasurement({success:!0,fromCache:t.fromCache,isNativeBroker:t.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:t.requestId}),t})).catch((function(e){throw d.activeSilentTokenRequests.delete(a),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})),this.activeSilentTokenRequests.set(a,u),[2,u]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discardMeasurement(),[2,c])}))}))},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(e,t){var n;return u(this,void 0,void 0,(function(){var r,i,a,c,d,h=this;return l(this,(function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(o.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_START,oe.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(o.AcquireTokenSilentAsync,e.correlationId),null===(n=this.astsAsyncMeasurement)||void 0===n||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Fn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),i=s(s({},e),{account:t}),r=this.acquireTokenNative(i,ie.acquireTokenSilent_silentFlow).catch((function(t){return u(h,void 0,void 0,(function(){var n;return l(this,(function(r){if(t instanceof Nn&&t.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,n=this.createSilentIframeClient(e.correlationId),[2,n.acquireToken(e)];throw t}))}))})),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),a=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(o.InitializeSilentRequest,e.correlationId),[4,a.initializeSilentRequest(e,t)];case 2:c=f.sent(),d=s(s({},e),{cacheLookupPolicy:e.cacheLookupPolicy||be.Default}),this.performanceClient.setPreQueueTime(o.AcquireTokenFromCache,c.correlationId),r=this.acquireTokenFromCache(a,c,d).catch((function(t){if(d.cacheLookupPolicy===be.AccessToken)throw t;return Xt.blockReloadInHiddenIframes(),h.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_NETWORK_START,oe.Silent,c),h.performanceClient.setPreQueueTime(o.AcquireTokenByRefreshToken,c.correlationId),h.acquireTokenByRefreshToken(c,d).catch((function(t){var n=t instanceof ue,r=t instanceof fe,i=t.errorCode===he.noTokensFoundError.code,a=t.errorCode===pe.INVALID_GRANT_ERROR;if((!n||!a||r||d.cacheLookupPolicy===be.AccessTokenAndRefreshToken||d.cacheLookupPolicy===be.RefreshToken)&&d.cacheLookupPolicy!==be.Skip&&!i)throw t;return h.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),h.performanceClient.setPreQueueTime(o.AcquireTokenBySilentIframe,c.correlationId),h.acquireTokenBySilentIframe(c)}))})),f.label=3;case 3:return[2,r.then((function(e){var t;return h.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_SUCCESS,oe.Silent,e),null===(t=h.astsAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw h.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Silent,null,e),null===(t=h.astsAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",h.trackPageVisibility)}))]}}))}))},t}(Qn)},18426:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var r=n(54098),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},s=function(){function e(e){this.data={},this.data=e}return e.prototype.id=function(){return this.data.id},e.prototype.ref=function(){return this.data.ref},e.prototype.label=function(){return this.data.label},e}(),c=function(){function e(e){this.data={},this.data=e,this.variations=(e.variations||[]).map((function(e){return new s(e)}))}return e.prototype.id=function(){return this.data.id},e.prototype.googleId=function(){return this.data.googleId},e.prototype.name=function(){return this.data.name},e}(),u=function(){function e(e){e&&(this.drafts=(e.drafts||[]).map((function(e){return new c(e)})),this.running=(e.running||[]).map((function(e){return new c(e)})))}return e.prototype.current=function(){return this.running.length>0?this.running[0]:null},e.prototype.refFromCookie=function(e){if(!e||""===e.trim())return null;var t=e.trim().split(" ");if(t.length<2)return null;var n=t[0],r=parseInt(t[1],10),i=this.running.filter((function(e){return e.googleId()===n&&e.variations.length>r}))[0];return i?i.variations[r].ref():null},e}(),l=function(){function e(e,t){for(var n in this.httpClient=t,this.form=e,this.data={},e.fields)e.fields[n]["default"]&&(this.data[n]=[e.fields[n]["default"]])}return e.prototype.set=function(e,t){var n=this.form.fields[e];if(!n)throw new Error("Unknown field "+e);var r=""===t||void 0===t?null:t,i=this.data[e]||[];i=n.multiple?r?i.concat([r]):i:r?[r]:i,this.data[e]=i},e.prototype.url=function(){var e=this.form.action;if(this.data){var t=e.indexOf("?")>-1?"&":"?";for(var n in this.data)if(Object.prototype.hasOwnProperty.call(this.data,n)){var r=this.data[n];if(r)for(var i=0;i<r.length;i++)e+=t+n+"="+encodeURIComponent(r[i]),t="&"}}return e},e.prototype.submit=function(e){return this.httpClient.cachedRequest(this.url()).then((function(t){return e&&e(null,t),t})).catch((function(t){throw e&&e(t),t}))},e}(),d=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.set=function(t,n){return e.prototype.set.call(this,t,n),this},t.prototype.ref=function(e){return this.set("ref",e)},t.prototype.query=function(e){if("string"===typeof e)return this.query([e]);if(Array.isArray(e))return this.set("q","["+e.join("")+"]");throw new Error("Invalid query : "+e)},t.prototype.pageSize=function(e){return this.set("pageSize",e)},t.prototype.graphQuery=function(e){return this.set("graphQuery",e)},t.prototype.lang=function(e){return this.set("lang",e)},t.prototype.page=function(e){return this.set("page",e)},t.prototype.after=function(e){return this.set("after",e)},t.prototype.orderings=function(e){return e?this.set("orderings","["+e.join(",")+"]"):this},t}(l),h=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(l),f={at:"at",not:"not",missing:"missing",has:"has",any:"any",in:"in",fulltext:"fulltext",similar:"similar",numberGt:"number.gt",numberLt:"number.lt",numberInRange:"number.inRange",dateBefore:"date.before",dateAfter:"date.after",dateBetween:"date.between",dateDayOfMonth:"date.day-of-month",dateDayOfMonthAfter:"date.day-of-month-after",dateDayOfMonthBefore:"date.day-of-month-before",dateDayOfWeek:"date.day-of-week",dateDayOfWeekAfter:"date.day-of-week-after",dateDayOfWeekBefore:"date.day-of-week-before",dateMonth:"date.month",dateMonthBefore:"date.month-before",dateMonthAfter:"date.month-after",dateYear:"date.year",dateHour:"date.hour",dateHourBefore:"date.hour-before",dateHourAfter:"date.hour-after",GeopointNear:"geopoint.near"};function p(e){if("string"===typeof e)return'"'+e+'"';if("number"===typeof e)return e.toString();if(e instanceof Date)return e.getTime().toString();if(Array.isArray(e))return"["+e.map((function(e){return p(e)})).join(",")+"]";if("boolean"===typeof e)return e.toString();throw new Error("Unable to encode "+e+" of type "+typeof e)}var m={near:function(e,t,n,r){return"["+f.GeopointNear+"("+e+", "+t+", "+n+", "+r+")]"}},g={before:function(e,t){return"["+f.dateBefore+"("+e+", "+p(t)+")]"},after:function(e,t){return"["+f.dateAfter+"("+e+", "+p(t)+")]"},between:function(e,t,n){return"["+f.dateBetween+"("+e+", "+p(t)+", "+p(n)+")]"},dayOfMonth:function(e,t){return"["+f.dateDayOfMonth+"("+e+", "+t+")]"},dayOfMonthAfter:function(e,t){return"["+f.dateDayOfMonthAfter+"("+e+", "+t+")]"},dayOfMonthBefore:function(e,t){return"["+f.dateDayOfMonthBefore+"("+e+", "+t+")]"},dayOfWeek:function(e,t){return"["+f.dateDayOfWeek+"("+e+", "+p(t)+")]"},dayOfWeekAfter:function(e,t){return"["+f.dateDayOfWeekAfter+"("+e+", "+p(t)+")]"},dayOfWeekBefore:function(e,t){return"["+f.dateDayOfWeekBefore+"("+e+", "+p(t)+")]"},month:function(e,t){return"["+f.dateMonth+"("+e+", "+p(t)+")]"},monthBefore:function(e,t){return"["+f.dateMonthBefore+"("+e+", "+p(t)+")]"},monthAfter:function(e,t){return"["+f.dateMonthAfter+"("+e+", "+p(t)+")]"},year:function(e,t){return"["+f.dateYear+"("+e+", "+t+")]"},hour:function(e,t){return"["+f.dateHour+"("+e+", "+t+")]"},hourBefore:function(e,t){return"["+f.dateHourBefore+"("+e+", "+t+")]"},hourAfter:function(e,t){return"["+f.dateHourAfter+"("+e+", "+t+")]"}},v={gt:function(e,t){return"["+f.numberGt+"("+e+", "+t+")]"},lt:function(e,t){return"["+f.numberLt+"("+e+", "+t+")]"},inRange:function(e,t,n){return"["+f.numberInRange+"("+e+", "+t+", "+n+")]"}},y={at:function(e,t){return"["+f.at+"("+e+", "+p(t)+")]"},not:function(e,t){return"["+f.not+"("+e+", "+p(t)+")]"},missing:function(e){return"["+f.missing+"("+e+")]"},has:function(e){return"["+f.has+"("+e+")]"},any:function(e,t){return"["+f.any+"("+e+", "+p(t)+")]"},in:function(e,t){return"["+f.in+"("+e+", "+p(t)+")]"},fulltext:function(e,t){return"["+f.fulltext+"("+e+", "+p(t)+")]"},similar:function(e,t){return"["+f.similar+'("'+e+'", '+t+")]"},date:g,dateBefore:g.before,dateAfter:g.after,dateBetween:g.between,dayOfMonth:g.dayOfMonth,dayOfMonthAfter:g.dayOfMonthAfter,dayOfMonthBefore:g.dayOfMonthBefore,dayOfWeek:g.dayOfWeek,dayOfWeekAfter:g.dayOfWeekAfter,dayOfWeekBefore:g.dayOfWeekBefore,month:g.month,monthBefore:g.monthBefore,monthAfter:g.monthAfter,year:g.year,hour:g.hour,hourBefore:g.hourBefore,hourAfter:g.hourAfter,number:v,gt:v.gt,lt:v.lt,inRange:v.inRange,near:m.near,geopoint:m},b=decodeURIComponent;function _(e,t){try{return t(e)}catch(n){return e}}function E(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");var n={},r=t||{},i=e.split(/; */),o=r.decode||b;return i.forEach((function(e){var t=e.indexOf("=");if(!(t<0)){var r=e.substr(0,t).trim(),i=e.substr(++t,e.length).trim();'"'==i[0]&&(i=i.slice(1,-1)),void 0==n[r]&&(n[r]=_(i,o))}})),n}var w={parse:E};function T(e,t,n){var r=function(r,i,o){return t&&n?n(t,{ref:e}).then((function(e){if(e){var t=r&&r(e)||e.url||i;return o&&o(null,t),t}return o&&o(null,i),i})):Promise.resolve(i)};return{token:e,documentId:t,resolve:r}}var I="io.prismic.preview",S="io.prismic.experiment",C=function(){function e(e,t,n){this.data=e,this.masterRef=e.refs.filter((function(e){return e.isMasterRef}))[0],this.experiments=new u(e.experiments),this.bookmarks=e.bookmarks,this.httpClient=t,this.options=n,this.refs=e.refs,this.tags=e.tags,this.types=e.types,this.languages=e.languages}return e.prototype.form=function(e){var t=this.data.forms[e];return t?"tags"===e?new h(t,this.httpClient):new d(t,this.httpClient):null},e.prototype.searchForm=function(e){var t=this.form(e);return t instanceof d?t:null},e.prototype.tagsForm=function(){var e=this.form("tags");if(!e)throw new Error("Missing tags form");if(e instanceof h)return e;throw new Error("Unexpected error: tags form is not TagsForm")},e.prototype.everything=function(){var e=this.searchForm("everything");if(!e)throw new Error("Missing everything form");return e},e.prototype.master=function(){return this.masterRef.ref},e.prototype.ref=function(e){var t=this.data.refs.filter((function(t){return t.label===e}))[0];return t?t.ref:null},e.prototype.currentExperiment=function(){return this.experiments.current()},e.prototype.query=function(e,t,n){void 0===n&&(n=function(){});var r="function"===typeof t?{options:{},callback:t}:{options:t||{},callback:n},i=r.options,o=r.callback,a=this.everything();for(var s in i)a=a.set(s,i[s]);if(!i.ref){var c="";this.options.req?c=this.options.req.headers["cookie"]||"":"undefined"!==typeof window&&window.document&&(c=window.document.cookie||"");var u=w.parse(c),l=u[I],d=this.experiments.refFromCookie(u[S]);a=a.ref(l||d||this.masterRef.ref)}return e&&a.query(e),a.submit(o)},e.prototype.queryFirst=function(e,t,n){var r="function"===typeof t?{options:{},callback:t}:{options:t||{},callback:n||function(){}},i=r.options,o=r.callback;return i.page=1,i.pageSize=1,this.query(e,i).then((function(e){var t=e&&e.results&&e.results[0];return o(null,t),t})).catch((function(e){throw o(e),e}))},e.prototype.getByID=function(e,t,n){var r=t?a({},t):{};return r.lang||(r.lang="*"),this.queryFirst(y.at("document.id",e),r,n)},e.prototype.getByIDs=function(e,t,n){var r=t?a({},t):{};return r.lang||(r.lang="*"),this.query(y.in("document.id",e),r,n)},e.prototype.getByUID=function(e,t,n,r){var i=n?a({},n):{};if("*"===i.lang)throw new Error("FORBIDDEN. You can't use getByUID with *, use the predicates instead.");return i.page||(i.page=1),this.queryFirst(y.at("my."+e+".uid",t),i,r)},e.prototype.getSingle=function(e,t,n){var r=t?a({},t):{};return this.queryFirst(y.at("document.type",e),r,n)},e.prototype.getBookmark=function(e,t,n){var r=this.data.bookmarks[e];return r?this.getByID(r,t,n):Promise.reject("Error retrieving bookmarked id")},e.prototype.getTags=function(e){return this.tagsForm().submit(e)},e.prototype.getPreviewResolver=function(e,t){return T(e,t,this.getByID.bind(this))},e}();function A(e){return new O(e)}function O(e){this.size=0,this.limit=e,this._keymap={}}O.prototype.put=function(e,t){var n={key:e,value:t};if(this._keymap[e]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit)return this.shift();this.size++},O.prototype.shift=function(){var e=this.head;return e&&(this.head.newer?(this.head=this.head.newer,this.head.older=void 0):this.head=void 0,e.newer=e.older=void 0,delete this._keymap[e.key]),console.log("purging ",e.key),e},O.prototype.get=function(e,t){var n=this._keymap[e];if(void 0!==n)return n===this.tail||(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=void 0,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n),t?n:n.value},O.prototype.find=function(e){return this._keymap[e]},O.prototype.set=function(e,t){var n,r=this.get(e,!0);return r?(n=r.value,r.value=t):(n=this.put(e,t),n&&(n=n.value)),n},O.prototype.remove=function(e){var t=this._keymap[e];if(t)return delete this._keymap[t.key],t.newer&&t.older?(t.older.newer=t.newer,t.newer.older=t.older):t.newer?(t.newer.older=void 0,this.head=t.newer):t.older?(t.older.newer=void 0,this.tail=t.older):this.head=this.tail=void 0,this.size--,t.value},O.prototype.removeAll=function(){this.head=this.tail=void 0,this.size=0,this._keymap={}},"function"===typeof Object.keys?O.prototype.keys=function(){return Object.keys(this._keymap)}:O.prototype.keys=function(){var e=[];for(var t in this._keymap)e.push(t);return e},O.prototype.forEach=function(e,t,n){var r;if(!0===t?(n=!0,t=void 0):"object"!==typeof t&&(t=this),n){r=this.tail;while(r)e.call(t,r.key,r.value,this),r=r.older}else{r=this.head;while(r)e.call(t,r.key,r.value,this),r=r.newer}},O.prototype.toString=function(){var e="",t=this.head;while(t)e+=String(t.key)+":"+t.value,t=t.newer,t&&(e+=" < ");return e};var R=function(){function e(e){void 0===e&&(e=1e3),this.lru=A(e)}return e.prototype.isExpired=function(e){var t=this.lru.get(e,!1);return!!t&&(0!==t.expiredIn&&t.expiredIn<Date.now())},e.prototype.get=function(e,t){var n=this.lru.get(e,!1);n&&!this.isExpired(e)?t(null,n.data):t&&t(null)},e.prototype.set=function(e,t,n,r){this.lru.remove(e),this.lru.put(e,{data:t,expiredIn:n?Date.now()+1e3*n:0}),r&&r(null)},e.prototype.remove=function(e,t){this.lru.remove(e),t&&t(null)},e.prototype.clear=function(e){this.lru.removeAll(),e&&e(null)},e}(),k=1e3;function x(e,t,n){var i,o={headers:{Accept:"application/json"}};t&&t.proxyAgent&&(o.agent=t.proxyAgent);var a=r(e,o),s=t.timeoutInMs?Promise.race([a,new Promise((function(n,r){i=setTimeout((function(){return r(new Error(e+" response timeout"))}),t.timeoutInMs)}))]):a;s.then((function(r){if(clearTimeout(i),429===r.status){var o=Number(r.headers.get("retry-after")),a=Number.isNaN(o)?k:o;return new Promise((function(r){setTimeout((function(){x(e,t,n),r()}),a)}))}return~~(r.status/100!==2)?r.text().then((function(){var t=new Error("Unexpected status code ["+r.status+"] on URL "+e);throw t.status=r.status,t})):r.json().then((function(e){var t=r.headers.get("cache-control"),i=t?/max-age=(\d+)/.exec(t):null,o=i?parseInt(i[1],10):void 0;n(null,e,r,o)}))})).catch((function(e){clearTimeout(i),n(e)}))}var M=function(){function e(e){this.options=e||{}}return e.prototype.request=function(e,t){x(e,this.options,t)},e}(),N=function(){function e(e,t,n,r){this.requestHandler=e||new M({proxyAgent:n,timeoutInMs:r}),this.cache=t||new R}return e.prototype.request=function(e,t){this.requestHandler.request(e,(function(e,n,r,i){e?t&&t(e,null,r,i):n&&t&&t(null,n,r,i)}))},e.prototype.cachedRequest=function(e,t){var n=this,r=t||{},i=function(t){var i=r.cacheKey||e;n.cache.get(i,(function(o,a){o||a?t(o,a):n.request(e,(function(e,o,a,s){if(e)t(e,null);else{var c=s||r.ttl;c&&n.cache.set(i,o,c,t),t(null,o)}}))}))};return new Promise((function(e,t){i((function(n,r){n&&t(n),r&&e(r)}))}))},e}();function P(e){return e.indexOf("?")>-1?"&":"?"}var D=function(){function e(e,t){this.options=t||{},this.url=e;var n=[this.options.accessToken&&"access_token="+this.options.accessToken,this.options.routes&&"routes="+encodeURIComponent(JSON.stringify(this.options.routes))].filter(Boolean);n.length>0&&(this.url+=P(e)+n.join("&")),this.apiDataTTL=this.options.apiDataTTL||5,this.httpClient=new N(this.options.requestHandler,this.options.apiCache,this.options.proxyAgent,this.options.timeoutInMs)}return e.prototype.get=function(e){var t=this;return this.httpClient.cachedRequest(this.url,{ttl:this.apiDataTTL}).then((function(n){var r=new C(n,t.httpClient,t.options);return e&&e(null,r),r})).catch((function(t){throw e&&e(t),t}))},e}(),L=function(){function e(e,t){this.id=e,this.api=t,this.fields={}}return e.prototype.set=function(e,t){return this.fields[e]=t,this},e.prototype.ref=function(e){return this.set("ref",e)},e.prototype.query=function(e){return this.set("q",e)},e.prototype.pageSize=function(e){return this.set("pageSize",e)},e.prototype.graphQuery=function(e){return this.set("graphQuery",e)},e.prototype.lang=function(e){return this.set("lang",e)},e.prototype.page=function(e){return this.set("page",e)},e.prototype.after=function(e){return this.set("after",e)},e.prototype.orderings=function(e){return this.set("orderings",e)},e.prototype.url=function(){var t=this;return this.api.get().then((function(n){return e.toSearchForm(t,n).url()}))},e.prototype.submit=function(t){var n=this;return this.api.get().then((function(r){return e.toSearchForm(n,r).submit(t)}))},e.toSearchForm=function(e,t){var n=t.searchForm(e.id);if(n)return Object.keys(e.fields).reduce((function(t,n){var r=e.fields[n];return"q"===n?t.query(r):"pageSize"===n?t.pageSize(r):"graphQuery"===n?t.graphQuery(r):"lang"===n?t.lang(r):"page"===n?t.page(r):"after"===n?t.after(r):"orderings"===n?t.orderings(r):t.set(n,r)}),n);throw new Error("Unable to access to form "+e.id)},e}(),U=function(){function e(e,t){this.api=new D(e,t)}return e.prototype.getApi=function(){return this.api.get()},e.prototype.everything=function(){return this.form("everything")},e.prototype.form=function(e){return new L(e,this.api)},e.prototype.query=function(e,t,n){return this.getApi().then((function(r){return r.query(e,t,n)}))},e.prototype.queryFirst=function(e,t,n){return this.getApi().then((function(r){return r.queryFirst(e,t,n)}))},e.prototype.getByID=function(e,t,n){return this.getApi().then((function(r){return r.getByID(e,t,n)}))},e.prototype.getByIDs=function(e,t,n){return this.getApi().then((function(r){return r.getByIDs(e,t,n)}))},e.prototype.getByUID=function(e,t,n,r){return this.getApi().then((function(i){return i.getByUID(e,t,n,r)}))},e.prototype.getSingle=function(e,t,n){return this.getApi().then((function(r){return r.getSingle(e,t,n)}))},e.prototype.getBookmark=function(e,t,n){return this.getApi().then((function(r){return r.getBookmark(e,t,n)}))},e.prototype.getTags=function(){return this.getApi().then((function(e){return e.getTags()}))},e.prototype.getPreviewResolver=function(e,t){var n=this,r=function(e,t){return n.getApi().then((function(n){return n.getByID(e,t)}))};return T(e,t,r)},e.getApi=function(e,t){var n=new D(e,t);return n.get()},e}(),F={experimentCookie:S,previewCookie:I,Predicates:y,predicates:y,Experiments:u,Api:D,client:q,getApi:B,api:H};function q(e,t){return new U(e,t)}function B(e,t){return U.getApi(e,t)}function H(e,t){return B(e,t)}var j=F,V=n(27447),G=n.n(V);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){return W(e)||X(e,t)||Q(e,t)||J()}function W(e){if(Array.isArray(e))return e}function X(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){s=!0,i=c}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function Q(e,t){if(e){if("string"===typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ee={name:"PrismicEmbed",functional:!0,props:{field:{type:Object,required:!0},wrapper:{type:[String,Object,Function],required:!1,default:"div"}},render:function(e,t){var n=t.props,r=t.data,i=n.field,o=n.wrapper;if(!i||!i.html)return null;var a=i.embed_url,s=i.type,c=i.provider_name,u=$($($($({},r.attrs),a&&{"data-oembed":a}),s&&{"data-oembed-type":s}),c&&{"data-oembed-provider":c});return e(o,$($({},Object.assign(r,{attrs:u})),{},{domProps:{innerHTML:i.html}}))}},te={name:"PrismicImage",functional:!0,props:{field:{type:Object,required:!0}},render:function(e,t){var n=t.props,r=t.data,i=n.field;if(!i)return null;var o=i.url,a=i.alt,s=i.copyright;return e("img",Object.assign(r,{attrs:$($({},r.attrs),{},{src:o,alt:a||"",copyright:s})}))}},ne=function(e){var t=/^\/(?!\/)/.test(e),n=!t&&!/^https?:\/\//i.test(e);return t&&!n},re=function(e){var t=e.component,n=void 0===t?"a":t;return{name:"PrismicLink",functional:!0,props:{field:{type:Object,required:!0},linkResolver:{type:Function,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},blankTargetRelAttribute:{type:String,default:"noopener noreferrer",required:!1}},render:function(e,t){var r=t.props,i=t.data,o=t.children,a=t.parent,s=r.field,c=r.linkResolver;if(!s)return null;var u=a.$prismic?a.$prismic.asLink(s,c):G().Link.url(s,c||function(){return null});return ne(u)&&!r.target?(i.props=i.props||{},i.props.to=u,e(n,i,o)):(i.attrs=$($({},i.attrs),{},{href:u}),"undefined"!==typeof r.target?i.attrs.target=r.target:s.target&&(i.attrs.target=s.target),"undefined"!==typeof r.rel?i.attrs.rel=r.rel:"_blank"===i.attrs.target&&(i.attrs.rel=r.blankTargetRelAttribute),e("a",i,o))}}},ie={name:"PrismicRichText",functional:!0,props:{field:{type:Array,required:!0},linkResolver:{type:Function,required:!1},htmlSerializer:{type:Function,required:!1},wrapper:{type:[String,Object,Function],required:!1,default:"div"}},render:function(e,t){var n=t.props,r=t.data,i=t.parent,o=n.field,a=n.linkResolver,s=n.htmlSerializer,c=n.wrapper;if(!o)return null;var u=V.RichText.asHtml(o,a||(i.$prismic?i.$prismic.linkResolver:void 0),s||(i.$prismic?i.$prismic.htmlSerializer:void 0));return e(c,$($({},r),{},{domProps:{innerHTML:u}}))}},oe={name:"PrismicText",functional:!0,props:{field:{type:Array,required:!0},separator:{type:String,default:void 0,required:!1},wrapper:{type:[String,Object,Function],required:!1,default:"div"}},render:function(e,t){var n=t.props,r=t.data;t.children,t.parent;var i=n.field,o=n.separator,a=n.wrapper;if(!i)return null;var s=V.RichText.asText(i,o);return e(a,$($({},r),{},{domProps:{innerHTML:s}}))}};"undefined"===typeof process&&(globalThis.process={env:{}});var ae=!0,se=function(e){return{slice:{type:Object,required:!0},index:{type:Number,required:!0},slices:{type:Array,required:!0},context:{type:null,required:!0}}},ce=ae?null:{name:"TODOSliceComponent",functional:!0,props:se(),render:function(e,t){var n=t.props,r=t.data;return console.warn('[SliceZone] Could not find a component for Slice type "'.concat(n.slice.slice_type,'"'),n.slice),e("section",$($({},r),{},{attrs:$($({},r.attrs),{},{"data-slice-zone-todo-component":"","data-slice-type":n.slice.slice_type})}),['Could not find a component for Slice type "'.concat(n.slice.slice_type,'"')])}},ue={name:"SliceZone",props:{slices:{type:Array,required:!0},components:{type:Object,default:void 0,required:!1},resolver:{type:Function,default:void 0,required:!1},context:{type:null,default:void 0,required:!1},defaultComponent:{type:Object,default:void 0,required:!1},wrapper:{type:[String,Object,Function],default:"div",required:!1}},computed:{renderedSlices:function(){var e=this;return this.slices?this.slices.map((function(t,n){var r=e.components&&t.slice_type in e.components?e.components[t.slice_type]:e.defaultComponent||ce;if(e.resolver){var i=e.resolver({slice:t,sliceName:t.slice_type,i:n});i&&(r=i)}var o="id"in t&&t.id?t.id:"".concat(n,"-").concat(JSON.stringify(t)),a={key:o,props:{slice:t,index:n,context:e.context,slices:e.slices}};return{component:r,p:a}})):null}},render:function(e){return this.slices?e(this.wrapper,this.renderedSlices.map((function(t){var n=t.component,r=t.p;return e(n,r)}))):null}},le=re({component:"nuxt-link"}),de=re({component:"router-link"}),he={common:{Embed:ee,Image:te,RichText:ie,Text:oe,SliceZone:ue},nuxt:{Link:le},vueRouter:{Link:de}};function fe(e,t,n){if(e)return G().RichText.asHtml(e,t,n)}function pe(e,t){return e?G().RichText.asText(e,t):""}function me(e,t){if(e)return G().Link.url(e,t)}function ge(e){if(e)return G().Date(e)}var ve=j.client;function ye(e,t){e.prototype.$prismic.asHtml=function(e,n,r){return fe(e,n||t.linkResolver,r||t.htmlSerializer)},e.prototype.$prismic.asHTML=e.prototype.$prismic.asHtml,e.prototype.$prismic.asText=pe,e.prototype.$prismic.richTextAsPlain=pe,e.prototype.$prismic.asDate=ge,e.prototype.$prismic.asLink=function(e,n){return me(e,n||t.linkResolver)}}var be={install:function(e,t){var n=t.linkType,r=void 0===n?"vueRouter":n;e.prototype.$prismic=j,e.prototype.$prismic.predicate=j.Predicates,e.prototype.$prismic.cookie={preview:j.previewCookie},e.prototype.$prismic.endpoint=t.endpoint,e.prototype.$prismic.linkResolver=t.linkResolver,e.prototype.$prismic.htmlSerializer=t.htmlSerializer,e.prototype.$prismic.client=ve(t.endpoint,t.apiOptions),ye(e,t);var i=$($({},he.common),he[r]);Object.entries(i).forEach((function(t){var n=K(t,2);n[0];var r=n[1];e.component(r.name,r)}))}}},10136:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(77859),i=function(){var e=this,t=e._self._c;return t("div",[t(r.Z,e._b({ref:"ref",attrs:{label:e.label,maxlength:e.options.inputMask.length},on:{keypress:e.keyPress,blur:function(t){return e.$emit("blur")},change:function(t){return e.$emit("change")},click:function(t){return e.$emit("click")},focus:function(t){return e.$emit("focus")},keydown:function(t){return e.$emit("keydown")},mousedown:function(t){return e.$emit("mousedown")},mouseup:function(t){return e.$emit("mouseup")}},model:{value:e.cmpValue,callback:function(t){e.cmpValue=t},expression:"cmpValue"}},"v-text-field",e.properties,!1))],1)},o=[],a={model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:"0"},label:{type:String,default:""},properties:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{inputMask:"#########",outputMask:"#########",empty:"",applyAfter:!1}}}},data:()=>({}),computed:{cmpValue:{get:function(){return this.humanFormat(String(this.value))},set:function(e){this.$emit("input",this.machineFormat(e))}}},watch:{},methods:{humanFormat:function(e){return e=e?this.formatValue(e,this.options.inputMask):this.options.empty,e},machineFormat(e){return e?(e=this.formatValue(e,this.options.outputMask),""===e&&(e=this.options.empty),this.options.applyAfter&&(e.length!==this.options.outputMask.length?e=this.options.empty:this.$emit("masked"))):e=this.options.empty,e},formatValue:function(e,t){return this.formatDefault(e,t)},formatDefault:function(e,t){e=this.clearValue(e);let n="",r=0;if(e){let o=e.toString().split(""),a=t.toString().split("");for(var i=0;i<a.length;i++)i<o.length+r&&("#"===a[i]?n+=o[i-r]:(n+=a[i],r++))}return n},keyPress(e){let t=e.keyCode?e.keyCode:e.which;(t<48||t>57)&&e.preventDefault()},clearValue:function(e){let t="";if(e){let r=e.toString().split("");for(var n=0;n<r.length;n++)this.isInteger(r[n])&&(t+=r[n])}return t},isInteger(e){let t=!1;return Number.isInteger(parseInt(e))&&(t=!0),t},focus(){setTimeout((()=>{this.$refs.ref.focus()}),500)}}},s=a,c=n(1001),u=(0,c.Z)(s,i,o,!1,null,null,null),l=u.exports},1001:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,{Z:function(){return r}})},79742:function(e,t){"use strict";t.byteLength=u,t.toByteArray=d,t.fromByteArray=p;for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function l(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,o=c(e),a=o[0],s=o[1],u=new i(l(e,a,s)),d=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[d++]=t>>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[d++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function p(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(f(e,s,s+a>c?c:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:function(e,t,n){"use strict";var r=n(79742),i=n(80645),o="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */t.lW=u,t.h2=50;var a=2147483647;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}function c(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return p(e,t);if(ArrayBuffer.isView(e))return g(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return v(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return v(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=y(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,t,n){return d(e),e<=0?c(e):void 0!==t?"string"===typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}function f(e){return d(e),c(e<0?0:0|b(e))}function p(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|E(e,t),r=c(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function m(e){for(var t=e.length<0?0:0|b(e.length),n=c(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function g(e){if(Q(e,Uint8Array)){var t=new Uint8Array(e);return v(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function v(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function y(e){if(u.isBuffer(e)){var t=0|b(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||Z(e.length)?c(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function b(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),u.alloc(+e)}function E(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return r?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return U(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function T(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function I(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Z(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,h=0;h<c;h++)if(u(e,o+h)!==u(t,h)){d=!1;break}if(d)return o}return-1}function C(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(Z(s))return a;e[n+a]=s}return a}function A(e,t,n,r){return X($(t,e.length-n),e,n,r)}function O(e,t,n,r){return X(Y(t),e,n,r)}function R(e,t,n,r){return X(W(t),e,n,r)}function k(e,t,n,r){return X(K(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return P(r)}u.TYPED_ARRAY_SUPPORT=s(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return h(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(Q(o,Uint8Array))i+o.length>r.length?u.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else{if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i)}i+=o.length}return r},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)T(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):w.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;d<s;++d)if(c[d]!==l[d]){o=c[d],a=l[d];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return I(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return I(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":case"latin1":case"binary":return O(this,e,t,n);case"base64":return R(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function P(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=N));return n}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function U(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=J[e[o]];return i}function F(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function q(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function H(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return t=+t,n>>>=0,o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||q(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||q(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||q(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||q(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||q(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||q(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||q(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||q(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||q(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||q(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||q(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||q(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||q(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||q(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||q(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||q(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||q(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||q(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:u.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var G=/[^+/0-9A-Za-z-_]/g;function z(e){if(e=e.split("=")[0],e=e.trim().replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function $(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function K(e,t){for(var n,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function W(e){return r.toByteArray(z(e))}function X(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}var J=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},81653:function(e){
/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */
!function(t,n){e.exports=n()}(0,(function(){return t={686:function(e,t,n){"use strict";n.d(t,{default:function(){return y}});t=n(279);var r=n.n(t),i=(t=n(370),n.n(t)),o=(t=n(817),n.n(t));function a(e){try{return document.execCommand(e)}catch(e){return}}var s=function(e){return e=o()(e),a("cut"),e};function c(e,t){var n,r;n=e,r="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[r?"right":"left"]="-9999px",r=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(r,"px"),e.setAttribute("readonly",""),e.value=n;return t.container.appendChild(e),t=o()(e),a("copy"),e.remove(),t}var u=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=c(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=c(e.value,t):(n=o()(e),a("copy")),n};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container;t=e.target,e=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==t){if(!t||"object"!==l(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return e?u(e,{container:r}):t?"cut"===n?s(t):u(t,{container:r}):void 0};function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,r=g(t);return e=n?(e=g(this).constructor,Reflect.construct(r,arguments,e)):r.apply(this,arguments),r=this,!e||"object"!==h(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):e}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var y=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,r());var e,t,n,o=m(a);function a(e,t){var n;return function(e){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return e=a,n=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return u(e,t)}},{key:"cut",value:function(e){return s(e)}},{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=(e="string"==typeof e?[e]:e,!!document.queryCommandSupported);return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy";e=d({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(e?"success":"error",{action:n,text:e,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return v("action",e)}},{key:"defaultTarget",value:function(e){if(e=v("target",e),e)return document.querySelector(e)}},{key:"defaultText",value:function(e){return v("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&f(e.prototype,t),n&&f(e,n),a}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,i,o){var a=function(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return u=t,l=n,(c=e).addEventListener(u,l),{destroy:function(){c.removeEventListener(u,l)}};if(r.nodeList(e))return o=e,a=t,s=n,Array.prototype.forEach.call(o,(function(e){e.addEventListener(a,s)})),{destroy:function(){Array.prototype.forEach.call(o,(function(e){e.removeEventListener(a,s)}))}};if(r.string(e))return i(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,a,s,c,u,l}},817:function(e){e.exports=function(e){var t,n="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t),n.toString());return n}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(686).default;function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}var t,n}))},54098:function(e,t){var n="undefined"!==typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){(function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!==typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function f(e){var t=new FileReader,n=d(t);return t.readAsText(e),n}function p(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&r(e)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(p(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=a(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype["delete"]=function(e){delete this.map[a(e)]},u.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},u.prototype.set=function(e,t){this.map[a(e)]=s(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},u.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},u.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}function b(e,t){t=t||{};var n=t.body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=y(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e){var t=new u,n=e.replace(/\r?\n[\t ]+/g," ");return n.split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];w.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(S){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(e,r){return new Promise((function(i,o){var a=new b(e,r);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:E(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;i(new w(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}I.polyfill=!0,e.fetch||(e.fetch=I,e.Headers=u,e.Request=b,e.Response=w),t.Headers=u,t.Request=b,t.Response=w,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t["default"]=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},27856:function(e){
/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */
(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,i,o){return r=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=Function.bind.apply(e,i),a=new o;return r&&t(a,r.prototype),a},r.apply(null,arguments)}function i(e){return o(e)||a(e)||s(e)||u()}function o(e){if(Array.isArray(e))return c(e)}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,d=Object.setPrototypeOf,h=Object.isFrozen,f=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!==typeof Reflect&&Reflect,b=y.apply,_=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),_||(_=function(e,t){return r(e,i(t))});var E=M(Array.prototype.forEach),w=M(Array.prototype.pop),T=M(Array.prototype.push),I=M(String.prototype.toLowerCase),S=M(String.prototype.toString),C=M(String.prototype.match),A=M(String.prototype.replace),O=M(String.prototype.indexOf),R=M(String.prototype.trim),k=M(RegExp.prototype.test),x=N(TypeError);function M(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return b(e,t,r)}}function N(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _(e,n)}}function P(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:I,d&&d(e,null);var i=t.length;while(i--){var o=t[i];if("string"===typeof o){var a=n(o);a!==o&&(h(t)||(t[i]=a),o=a)}e[o]=!0}return e}function D(e){var t,n=v(null);for(t in e)!0===b(l,e,[t])&&(n[t]=e[t]);return n}function L(e,t){while(null!==e){var n=p(e,t);if(n){if(n.get)return M(n.get);if("function"===typeof n.value)return M(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var U=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),j=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=m(["#text"]),G=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=g(/<%[\w\W]*|[\w\W]*%>/gm),X=g(/\${[\w\W]*}/gm),Q=g(/^data-[\-\w.\u00B7-\uFFFF]/),Z=g(/^aria-[\-\w]+$/),J=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),re=function(){return"undefined"===typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return oe(e)};if(n.version="2.4.7",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,c=t.Node,u=t.Element,l=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,p=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=L(v,"cloneNode"),b=L(v,"nextSibling"),_=L(v,"childNodes"),M=L(v,"parentNode");if("function"===typeof s){var N=o.createElement("template");N.content&&N.content.ownerDocument&&(o=N.content.ownerDocument)}var ae=ie(g,r),se=ae?ae.createHTML(""):"",ce=o,ue=ce.implementation,le=ce.createNodeIterator,de=ce.createDocumentFragment,he=ce.getElementsByTagName,fe=r.importNode,pe={};try{pe=D(o).documentMode?o.documentMode:{}}catch(Nt){}var me={};n.isSupported="function"===typeof M&&ue&&void 0!==ue.createHTMLDocument&&9!==pe;var ge,ve,ye=K,be=W,_e=X,Ee=Q,we=Z,Te=ee,Ie=te,Se=J,Ce=null,Ae=P({},[].concat(i(U),i(F),i(q),i(H),i(V))),Oe=null,Re=P({},[].concat(i(G),i(z),i($),i(Y))),ke=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Me=null,Ne=!0,Pe=!0,De=!1,Le=!0,Ue=!1,Fe=!1,qe=!1,Be=!1,He=!1,je=!1,Ve=!1,Ge=!0,ze=!1,$e="user-content-",Ye=!0,Ke=!1,We={},Xe=null,Qe=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Je=P({},["audio","video","img","source","image","track"]),et=null,tt=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",ot=it,at=!1,st=null,ct=P({},[nt,rt,it],S),ut=["application/xhtml+xml","text/html"],lt="text/html",dt=null,ht=o.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=D(t),ge=ge=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?lt:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?S:I,Ce="ALLOWED_TAGS"in t?P({},t.ALLOWED_TAGS,ve):Ae,Oe="ALLOWED_ATTR"in t?P({},t.ALLOWED_ATTR,ve):Re,st="ALLOWED_NAMESPACES"in t?P({},t.ALLOWED_NAMESPACES,S):ct,et="ADD_URI_SAFE_ATTR"in t?P(D(tt),t.ADD_URI_SAFE_ATTR,ve):tt,Ze="ADD_DATA_URI_TAGS"in t?P(D(Je),t.ADD_DATA_URI_TAGS,ve):Je,Xe="FORBID_CONTENTS"in t?P({},t.FORBID_CONTENTS,ve):Qe,xe="FORBID_TAGS"in t?P({},t.FORBID_TAGS,ve):{},Me="FORBID_ATTR"in t?P({},t.FORBID_ATTR,ve):{},We="USE_PROFILES"in t&&t.USE_PROFILES,Ne=!1!==t.ALLOW_ARIA_ATTR,Pe=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ue=t.SAFE_FOR_TEMPLATES||!1,Fe=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,Ve=t.RETURN_TRUSTED_TYPE||!1,Be=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,ze=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,ot=t.NAMESPACE||it,ke=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(Pe=!1),je&&(He=!0),We&&(Ce=P({},i(V)),Oe=[],!0===We.html&&(P(Ce,U),P(Oe,G)),!0===We.svg&&(P(Ce,F),P(Oe,z),P(Oe,Y)),!0===We.svgFilters&&(P(Ce,q),P(Oe,z),P(Oe,Y)),!0===We.mathMl&&(P(Ce,H),P(Oe,$),P(Oe,Y))),t.ADD_TAGS&&(Ce===Ae&&(Ce=D(Ce)),P(Ce,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Oe===Re&&(Oe=D(Oe)),P(Oe,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&P(et,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Xe===Qe&&(Xe=D(Xe)),P(Xe,t.FORBID_CONTENTS,ve)),Ye&&(Ce["#text"]=!0),Fe&&P(Ce,["html","head","body"]),Ce.table&&(P(Ce,["tbody"]),delete xe.tbody),m&&m(t),dt=t)},mt=P({},["mi","mo","mn","ms","mtext"]),gt=P({},["foreignobject","desc","title","annotation-xml"]),vt=P({},["title","style","font","a","script"]),yt=P({},F);P(yt,q),P(yt,B);var bt=P({},H);P(bt,j);var _t=function(e){var t=M(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=I(e.tagName),r=I(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===it?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(yt[n]):e.namespaceURI===nt?t.namespaceURI===it?"math"===n:t.namespaceURI===rt?"math"===n&&gt[r]:Boolean(bt[n]):e.namespaceURI===it?!(t.namespaceURI===rt&&!gt[r])&&(!(t.namespaceURI===nt&&!mt[r])&&(!bt[n]&&(vt[n]||!yt[n]))):!("application/xhtml+xml"!==ge||!st[e.namespaceURI]))},Et=function(e){T(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Nt){try{e.outerHTML=se}catch(Nt){e.remove()}}},wt=function(e,t){try{T(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Nt){T(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(He||je)try{Et(t)}catch(Nt){}else try{t.setAttribute(e,"")}catch(Nt){}},Tt=function(e){var t,n;if(Be)e="<remove></remove>"+e;else{var r=C(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&ot===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ae?ae.createHTML(e):e;if(ot===it)try{t=(new p).parseFromString(i,ge)}catch(Nt){}if(!t||!t.documentElement){t=ue.createDocument(ot,"template",null);try{t.documentElement.innerHTML=at?se:i}catch(Nt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ot===it?he.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:a},It=function(e){return le.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},St=function(e){return e instanceof f&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof h)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Ct=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},At=function(e,t,r){me[e]&&E(me[e],(function(e){e.call(n,t,r,dt)}))},Ot=function(e){var t;if(At("beforeSanitizeElements",e,null),St(e))return Et(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return Et(e),!0;var r=ve(e.nodeName);if(At("uponSanitizeElement",e,{tagName:r,allowedTags:Ce}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return Et(e),!0;if("select"===r&&k(/<template/i,e.innerHTML))return Et(e),!0;if(!Ce[r]||xe[r]){if(!xe[r]&&kt(r)){if(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,r))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(r))return!1}if(Ye&&!Xe[r]){var i=M(e)||e.parentNode,o=_(e)||e.childNodes;if(o&&i)for(var a=o.length,s=a-1;s>=0;--s)i.insertBefore(y(o[s],!0),b(e))}return Et(e),!0}return e instanceof u&&!_t(e)?(Et(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ue&&3===e.nodeType&&(t=e.textContent,t=A(t,ye," "),t=A(t,be," "),t=A(t,_e," "),e.textContent!==t&&(T(n.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(Et(e),!0)},Rt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in o||n in ht))return!1;if(Pe&&!Me[t]&&k(Ee,t));else if(Ne&&k(we,t));else if(!Oe[t]||Me[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&k(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(et[t]);else if(k(Se,A(n,Ie,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Ze[e]){if(De&&!k(Te,A(n,Ie,"")));else if(n)return!1}else;return!0},kt=function(e){return e.indexOf("-")>0},xt=function(t){var r,i,o,a;At("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};a=s.length;while(a--){r=s[a];var u=r,l=u.name,d=u.namespaceURI;if(i="value"===l?r.value:R(r.value),o=ve(l),c.attrName=o,c.attrValue=i,c.keepAttr=!0,c.forceKeepAttr=void 0,At("uponSanitizeAttribute",t,c),i=c.attrValue,!c.forceKeepAttr&&(wt(l,t),c.keepAttr))if(Le||!k(/\/>/i,i)){Ue&&(i=A(i,ye," "),i=A(i,be," "),i=A(i,_e," "));var h=ve(t.nodeName);if(Rt(h,o,i)){if(!ze||"id"!==o&&"name"!==o||(wt(l,t),i=$e+i),ae&&"object"===e(g)&&"function"===typeof g.getAttributeType)if(d);else switch(g.getAttributeType(h,o)){case"TrustedHTML":i=ae.createHTML(i);break;case"TrustedScriptURL":i=ae.createScriptURL(i);break}try{d?t.setAttributeNS(d,l,i):t.setAttribute(l,i),w(n.removed)}catch(Nt){}}}else wt(l,t)}At("afterSanitizeAttributes",t,null)}},Mt=function e(t){var n,r=It(t);At("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())At("uponSanitizeShadowNode",n,null),Ot(n)||(n.content instanceof a&&e(n.content),xt(n));At("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(i){var o,s,u,l,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(at=!i,at&&(i="\x3c!--\x3e"),"string"!==typeof i&&!Ct(i)){if("function"!==typeof i.toString)throw x("toString is not a function");if(i=i.toString(),"string"!==typeof i)throw x("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof i)return t.toStaticHTML(i);if(Ct(i))return t.toStaticHTML(i.outerHTML)}return i}if(qe||pt(h),n.removed=[],"string"===typeof i&&(Ke=!1),Ke){if(i.nodeName){var f=ve(i.nodeName);if(!Ce[f]||xe[f])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof c)o=Tt("\x3c!----\x3e"),s=o.ownerDocument.importNode(i,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!He&&!Ue&&!Fe&&-1===i.indexOf("<"))return ae&&Ve?ae.createHTML(i):i;if(o=Tt(i),!o)return He?null:Ve?se:""}o&&Be&&Et(o.firstChild);var p=It(Ke?i:o);while(u=p.nextNode())3===u.nodeType&&u===l||Ot(u)||(u.content instanceof a&&Mt(u.content),xt(u),l=u);if(l=null,Ke)return i;if(He){if(je){d=de.call(o.ownerDocument);while(o.firstChild)d.appendChild(o.firstChild)}else d=o;return(Oe.shadowroot||Oe.shadowrootmod)&&(d=fe.call(r,d,!0)),d}var m=Fe?o.outerHTML:o.innerHTML;return Fe&&Ce["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&k(ne,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),Ue&&(m=A(m,ye," "),m=A(m,be," "),m=A(m,_e," ")),ae&&Ve?ae.createHTML(m):m},n.setConfig=function(e){pt(e),qe=!0},n.clearConfig=function(){dt=null,qe=!1},n.isValidAttribute=function(e,t,n){dt||pt({});var r=ve(e),i=ve(t);return Rt(r,i,n)},n.addHook=function(e,t){"function"===typeof t&&(me[e]=me[e]||[],T(me[e],t))},n.removeHook=function(e){if(me[e])return w(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}var ae=oe();return ae}))},79180:function(e,t,n){var r,i,o;(function(a,s){"use strict";i=[n(59829)],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})(0,(function(e){"use strict";var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if("undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return[n[1],n[2]||void 0,n[3]||void 0]},parseV8OrIE:function(t){var r=t.stack.split("\n").filter((function(e){return!!e.match(n)}),this);return r.map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;var i=this.extractLocation(r?r[1]:n),o=r&&n||void 0,a=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:o,fileName:a,lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseFFOrSafari:function(t){var n=t.stack.split("\n").filter((function(e){return!e.match(r)}),this);return n.map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,o=this.extractLocation(t.replace(n,""));return new e({functionName:i,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],o=2,a=r.length;o<a;o+=2){var s=n.exec(r[o]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[o]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),i=[],o=0,a=r.length;o<a;o+=2){var s=n.exec(r[o]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[o]}))}return i},parseOpera11:function(n){var r=n.stack.split("\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this);return r.map((function(t){var n,r=t.split("@"),i=this.extractLocation(r.pop()),o=r.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;o.match(/\(([^)]*)\)/)&&(n=o.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})}),this)}}}))},29480:function(e){
/*!
 * FilePondPluginFileValidateSize 2.2.8
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,r=n.Type,i=n.replaceInString,o=n.toNaturalFileSize;return t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var r=n("GET_MAX_FILE_SIZE");if(null!==r&&e.size>r)return!1;var i=n("GET_MIN_FILE_SIZE");return!(null!==i&&e.size<i)})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,r){if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return t(e);var a=n("GET_FILE_VALIDATE_SIZE_FILTER");if(a&&!a(e))return t(e);var s=n("GET_MAX_FILE_SIZE");if(null!==s&&e.size>s)r({status:{main:n("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_FILE_SIZE"),{filesize:o(s,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var c=n("GET_MIN_FILE_SIZE");if(null!==c&&e.size<c)r({status:{main:n("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MIN_FILE_SIZE"),{filesize:o(c,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var u=n("GET_MAX_TOTAL_FILE_SIZE");if(null!==u){var l=n("GET_ACTIVE_ITEMS").reduce((function(e,t){return e+t.fileSize}),0);if(l>u)return void r({status:{main:n("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:o(u,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}})}t(e)}}}))})),{options:{allowFileSizeValidation:[!0,r.BOOLEAN],maxFileSize:[null,r.INT],minFileSize:[null,r.INT],maxTotalFileSize:[null,r.INT],fileValidateSizeFilter:[null,r.FUNCTION],labelMinFileSizeExceeded:["File is too small",r.STRING],labelMinFileSize:["Minimum file size is {filesize}",r.STRING],labelMaxFileSizeExceeded:["File is too large",r.STRING],labelMaxFileSize:["Maximum file size is {filesize}",r.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",r.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",r.STRING]}}},t="undefined"!==typeof window&&"undefined"!==typeof window.document;return t&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}))},90521:function(e){
/*!
 * FilePondPluginFileValidateType 1.2.8
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,r=n.Type,i=n.isString,o=n.replaceInString,a=n.guesstimateMimeType,s=n.getExtensionFromFilename,c=n.getFilenameFromURL,u=function(e,t){var n=(/^[^/]+/.exec(e)||[]).pop(),r=t.slice(0,-2);return n===r},l=function(e,t){return e.some((function(e){return/\*$/.test(e)?u(t,e):e===t}))},d=function(e){var t="";if(i(e)){var n=c(e),r=s(n);r&&(t=a(r))}else t=e.type;return t},h=function(e,t,n){if(0===t.length)return!0;var r=d(e);return n?new Promise((function(i,o){n(e,r).then((function(e){l(t,e)?i():o()})).catch(o)})):l(t,r)},f=function(e){return function(t){return null!==e[t]&&(e[t]||t)}};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||h(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,r){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var i=n("GET_ACCEPTED_FILE_TYPES"),a=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),s=h(e,i,a),c=function(){var e=i.map(f(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter((function(e){return!1!==e})),t=e.filter((function(t,n){return e.indexOf(t)===n}));r({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:o(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:t.join(", "),allButLastType:t.slice(0,-1).join(", "),lastType:t[e.length-1]})}})};if("boolean"===typeof s)return s?t(e):c();s.then((function(){t(e)})).catch(c)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,r.BOOLEAN],acceptedFileTypes:[[],r.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",r.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",r.STRING],fileValidateTypeLabelExpectedTypesMap:[{},r.OBJECT],fileValidateTypeDetectType:[null,r.FUNCTION]}}},t="undefined"!==typeof window&&"undefined"!==typeof window.document;return t&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}))},72965:function(e){
/*!
 * FilePondPluginImagePreview 4.6.11
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){return/^image/.test(e.type)};function t(e){this.wrapped=e}function n(e){var n,r;function i(e,t){return new Promise((function(i,a){var s={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=s:(n=r=s,o(e,t))}))}function o(n,r){try{var i=e[n](r),s=i.value,c=s instanceof t;Promise.resolve(c?s.wrapped:s).then((function(e){c?o("next",e):a(i.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(u){a("throw",u)}}function a(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1});break}n=n.next,n?o(n.key,n.arg):r=null}this._invoke=i,"function"!==typeof e.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(n.prototype[Symbol.asyncIterator]=function(){return this}),n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)};function r(e,t){return i(e)||o(e,t)||a()}function i(e){if(Array.isArray(e))return e}function o(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var s=function(e,t){return d(e.x*t,e.y*t)},c=function(e,t){return d(e.x+t.x,e.y+t.y)},u=function(e){var t=Math.sqrt(e.x*e.x+e.y*e.y);return 0===t?{x:0,y:0}:d(e.x/t,e.y/t)},l=function(e,t,n){var r=Math.cos(t),i=Math.sin(t),o=d(e.x-n.x,e.y-n.y);return d(n.x+r*o.x-i*o.y,n.y+i*o.x+r*o.y)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{x:e,y:t}},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0;return"string"===typeof e?parseFloat(e)*n:"number"===typeof e?e*(r?t[r]:Math.min(t.width,t.height)):void 0},f=function(e,t,n){var r=e.borderStyle||e.lineStyle||"solid",i=e.backgroundColor||e.fontColor||"transparent",o=e.borderColor||e.lineColor||"transparent",a=h(e.borderWidth||e.lineWidth,t,n),s=e.lineCap||"round",c=e.lineJoin||"round",u="string"===typeof r?"":r.map((function(e){return h(e,t,n)})).join(","),l=e.opacity||1;return{"stroke-linecap":s,"stroke-linejoin":c,"stroke-width":a||0,"stroke-dasharray":u,stroke:o,fill:i,opacity:l}},p=function(e){return null!=e},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=h(e.x,t,n,"width")||h(e.left,t,n,"width"),i=h(e.y,t,n,"height")||h(e.top,t,n,"height"),o=h(e.width,t,n,"width"),a=h(e.height,t,n,"height"),s=h(e.right,t,n,"width"),c=h(e.bottom,t,n,"height");return p(i)||(i=p(a)&&p(c)?t.height-a-c:c),p(r)||(r=p(o)&&p(s)?t.width-o-s:s),p(o)||(o=p(r)&&p(s)?t.width-r-s:0),p(a)||(a=p(i)&&p(c)?t.height-i-c:0),{x:r||0,y:i||0,width:o||0,height:a||0}},g=function(e){return e.map((function(e,t){return"".concat(0===t?"M":"L"," ").concat(e.x," ").concat(e.y)})).join(" ")},v=function(e,t){return Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},y="http://www.w3.org/2000/svg",b=function(e,t){var n=document.createElementNS(y,e);return t&&v(n,t),n},_=function(e){return v(e,Object.assign({},e.rect,e.styles))},E=function(e){var t=e.rect.x+.5*e.rect.width,n=e.rect.y+.5*e.rect.height,r=.5*e.rect.width,i=.5*e.rect.height;return v(e,Object.assign({cx:t,cy:n,rx:r,ry:i},e.styles))},w={contain:"xMidYMid meet",cover:"xMidYMid slice"},T=function(e,t){v(e,Object.assign({},e.rect,e.styles,{preserveAspectRatio:w[t.fit]||"none"}))},I={left:"start",center:"middle",right:"end"},S=function(e,t,n,r){var i=h(t.fontSize,n,r),o=t.fontFamily||"sans-serif",a=t.fontWeight||"normal",s=I[t.textAlign]||"start";v(e,Object.assign({},e.rect,e.styles,{"stroke-width":0,"font-weight":a,"font-size":i,"font-family":o,"text-anchor":s})),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},C=function(e,t,n,r){v(e,Object.assign({},e.rect,e.styles,{fill:"none"}));var i=e.childNodes[0],o=e.childNodes[1],a=e.childNodes[2],d=e.rect,f={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(v(i,{x1:d.x,y1:d.y,x2:f.x,y2:f.y}),t.lineDecoration){o.style.display="none",a.style.display="none";var p=u({x:f.x-d.x,y:f.y-d.y}),m=h(.05,n,r);if(-1!==t.lineDecoration.indexOf("arrow-begin")){var g=s(p,m),y=c(d,g),b=l(d,2,y),_=l(d,-2,y);v(o,{style:"display:block;",d:"M".concat(b.x,",").concat(b.y," L").concat(d.x,",").concat(d.y," L").concat(_.x,",").concat(_.y)})}if(-1!==t.lineDecoration.indexOf("arrow-end")){var E=s(p,-m),w=c(f,E),T=l(f,2,w),I=l(f,-2,w);v(a,{style:"display:block;",d:"M".concat(T.x,",").concat(T.y," L").concat(f.x,",").concat(f.y," L").concat(I.x,",").concat(I.y)})}}},A=function(e,t,n,r){v(e,Object.assign({},e.styles,{fill:"none",d:g(t.points.map((function(e){return{x:h(e.x,n,r,"width"),y:h(e.y,n,r,"height")}})))}))},O=function(e){return function(t){return b(e,{id:t.id})}},R=function(e){var t=b("image",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return t.onload=function(){t.setAttribute("opacity",e.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.src),t},k=function(e){var t=b("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=b("line");t.appendChild(n);var r=b("path");t.appendChild(r);var i=b("path");return t.appendChild(i),t},x={image:R,rect:O("rect"),ellipse:O("ellipse"),text:O("text"),path:O("path"),line:k},M={rect:_,ellipse:E,image:T,text:S,path:A,line:C},N=function(e,t){return x[e](t)},P=function(e,t,n,r,i){"path"!==t&&(e.rect=m(n,r,i)),e.styles=f(n,r,i),M[t](e,n,r,i)},D=["x","y","left","top","right","bottom","width","height"],L=function(e){return"string"===typeof e&&/%/.test(e)?parseFloat(e)/100:e},U=function(e){var t=r(e,2),n=t[0],i=t[1],o=i.points?{}:D.reduce((function(e,t){return e[t]=L(i[t]),e}),{});return[n,Object.assign({zIndex:0},i,o)]},F=function(e,t){return e[1].zIndex>t[1].zIndex?1:e[1].zIndex<t[1].zIndex?-1:0},q=function(e){return e.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:function(e){var t=e.root,n=e.props;if(n.dirty){var i=n.crop,o=n.resize,a=n.markup,s=n.width,c=n.height,u=i.width,l=i.height;if(o){var d=o.size,h=d&&d.width,f=d&&d.height,p=o.mode,m=o.upscale;h&&!f&&(f=h),f&&!h&&(h=f);var g=u<h&&l<f;if(!g||g&&m){var v,y=h/u,b=f/l;if("force"===p)u=h,l=f;else"cover"===p?v=Math.max(y,b):"contain"===p&&(v=Math.min(y,b)),u*=v,l*=v}}var _={width:s,height:c};t.element.setAttribute("width",_.width),t.element.setAttribute("height",_.height);var E=Math.min(s/u,c/l);t.element.innerHTML="";var w=t.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");a.filter(w).map(U).sort(F).forEach((function(e){var n=r(e,2),i=n[0],o=n[1],a=N(i,o);P(a,i,o,_,E),t.element.appendChild(a)}))}}})},B=function(e,t){return{x:e,y:t}},H=function(e,t){return e.x*t.x+e.y*t.y},j=function(e,t){return B(e.x-t.x,e.y-t.y)},V=function(e,t){return H(j(e,t),j(e,t))},G=function(e,t){return Math.sqrt(V(e,t))},z=function(e,t){var n=e,r=1.5707963267948966,i=t,o=1.5707963267948966-t,a=Math.sin(r),s=Math.sin(i),c=Math.sin(o),u=Math.cos(o),l=n/a,d=l*s,h=l*c;return B(u*d,u*h)},$=function(e,t){var n=e.width,r=e.height,i=z(n,t),o=z(r,t),a=B(e.x+Math.abs(i.x),e.y-Math.abs(i.y)),s=B(e.x+e.width+Math.abs(o.y),e.y+Math.abs(o.x)),c=B(e.x-Math.abs(o.y),e.y+e.height-Math.abs(o.x));return{width:G(a,s),height:G(a,c)}},Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.height/e.width,i=1,o=t,a=1,s=r;s>o&&(s=o,a=s/r);var c=Math.max(i/a,o/s),u=e.width/(n*c*a),l=u*t;return{width:u,height:l}},K=function(e,t,n,r){var i=r.x>.5?1-r.x:r.x,o=r.y>.5?1-r.y:r.y,a=2*i*e.width,s=2*o*e.height,c=$(t,n);return Math.max(c.width/a,c.height/s)},W=function(e,t){var n=e.width,r=n*t;r>e.height&&(r=e.height,n=r/t);var i=.5*(e.width-n),o=.5*(e.height-r);return{x:i,y:o,width:n,height:r}},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.zoom,r=t.rotation,i=t.center,o=t.aspectRatio;o||(o=e.height/e.width);var a=Y(e,o,n),s={x:.5*a.width,y:.5*a.height},c={x:0,y:0,width:a.width,height:a.height,center:s},u="undefined"===typeof t.scaleToFit||t.scaleToFit,l=K(e,W(c,o),r,u?i:{x:.5,y:.5}),d=n*l;return{widthFloat:a.width/d,heightFloat:a.height/d,width:Math.round(a.width/d),height:Math.round(a.height/d)}},Q={type:"spring",stiffness:.5,damping:.45,mass:10},Z=function(e){return e.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:function(e){var t=e.root,n=e.props;t.appendChild(n.image)}})},J=function(e){return e.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:Q,originY:Q,scaleX:Q,scaleY:Q,translateX:Q,translateY:Q,rotateZ:Q}},create:function(t){var n=t.root,r=t.props;r.width=r.image.width,r.height=r.image.height,n.ref.bitmap=n.appendChildView(n.createChildView(Z(e),{image:r.image}))},write:function(e){var t=e.root,n=e.props,r=n.crop.flip,i=t.ref.bitmap;i.scaleX=r.horizontal?-1:1,i.scaleY=r.vertical?-1:1}})},ee=function(e){return e.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function(e){var t=e.root,n=e.props;n.background&&(t.element.style.backgroundColor=n.background)},create:function(t){var n=t.root,r=t.props;n.ref.image=n.appendChildView(n.createChildView(J(e),Object.assign({},r))),n.ref.createMarkup=function(){n.ref.markup||(n.ref.markup=n.appendChildView(n.createChildView(q(e),Object.assign({},r))))},n.ref.destroyMarkup=function(){n.ref.markup&&(n.removeChildView(n.ref.markup),n.ref.markup=null)};var i=n.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");null!==i&&(n.element.dataset.transparencyIndicator="grid"===i?i:"color")},write:function(e){var t=e.root,n=e.props,r=e.shouldOptimize,i=n.crop,o=n.markup,a=n.resize,s=n.dirty,c=n.width,u=n.height;t.ref.image.crop=i;var l={x:0,y:0,width:c,height:u,center:{x:.5*c,y:.5*u}},d={width:t.ref.image.width,height:t.ref.image.height},h={x:i.center.x*d.width,y:i.center.y*d.height},f={x:l.center.x-d.width*i.center.x,y:l.center.y-d.height*i.center.y},p=2*Math.PI+i.rotation%(2*Math.PI),m=i.aspectRatio||d.height/d.width,g="undefined"===typeof i.scaleToFit||i.scaleToFit,v=K(d,W(l,m),p,g?i.center:{x:.5,y:.5}),y=i.zoom*v;o&&o.length?(t.ref.createMarkup(),t.ref.markup.width=c,t.ref.markup.height=u,t.ref.markup.resize=a,t.ref.markup.dirty=s,t.ref.markup.markup=o,t.ref.markup.crop=X(d,i)):t.ref.markup&&t.ref.destroyMarkup();var b=t.ref.image;if(r)return b.originX=null,b.originY=null,b.translateX=null,b.translateY=null,b.rotateZ=null,b.scaleX=null,void(b.scaleY=null);b.originX=h.x,b.originY=h.y,b.translateX=f.x,b.translateY=f.y,b.rotateZ=p,b.scaleX=y,b.scaleY=y}})},te=function(e){return e.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:Q,scaleY:Q,translateY:Q,opacity:{type:"tween",duration:400}}},create:function(t){var n=t.root,r=t.props;n.ref.clip=n.appendChildView(n.createChildView(ee(e),{id:r.id,image:r.image,crop:r.crop,markup:r.markup,resize:r.resize,dirty:r.dirty,background:r.background}))},write:function(e){var t=e.root,n=e.props,r=e.shouldOptimize,i=t.ref.clip,o=n.image,a=n.crop,s=n.markup,c=n.resize,u=n.dirty;if(i.crop=a,i.markup=s,i.resize=c,i.dirty=u,i.opacity=r?0:1,!r&&!t.rect.element.hidden){var l=o.height/o.width,d=a.aspectRatio||l,h=t.rect.inner.width,f=t.rect.inner.height,p=t.query("GET_IMAGE_PREVIEW_HEIGHT"),m=t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),g=t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),v=t.query("GET_PANEL_ASPECT_RATIO"),y=t.query("GET_ALLOW_MULTIPLE");v&&!y&&(p=h*v,d=v);var b=null!==p?p:Math.max(m,Math.min(h*d,g)),_=b/d;_>h&&(_=h,b=_*d),b>f&&(b=f,_=f/d),i.width=_,i.height=b}}})},ne='<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">\n    <defs>\n        <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">\n            <stop offset=\'50%\' stop-color=\'#000000\'/>\n            <stop offset=\'56%\' stop-color=\'#0a0a0a\'/>\n            <stop offset=\'63%\' stop-color=\'#262626\'/>\n            <stop offset=\'69%\' stop-color=\'#4f4f4f\'/>\n            <stop offset=\'75%\' stop-color=\'#808080\'/>\n            <stop offset=\'81%\' stop-color=\'#b1b1b1\'/>\n            <stop offset=\'88%\' stop-color=\'#dadada\'/>\n            <stop offset=\'94%\' stop-color=\'#f6f6f6\'/>\n            <stop offset=\'100%\' stop-color=\'#ffffff\'/>\n        </radialGradient>\n        <mask id="mask-__UID__">\n            <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect>\n        </mask>\n    </defs>\n    <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>\n</svg>',re=0,ie=function(e){return e.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:function(e){var t=e.root,n=e.props,r=ne;if(document.querySelector("base")){var i=new URL(window.location.href.replace(window.location.hash,"")).href;r=r.replace(/url\(\#/g,"url("+i+"#")}re++,t.element.classList.add("filepond--image-preview-overlay-".concat(n.status)),t.element.innerHTML=r.replace(/__UID__/g,re)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}})},oe=function(){self.onmessage=function(e){createImageBitmap(e.data.message.file).then((function(t){self.postMessage({id:e.data.id,message:t},[t])}))}},ae=function(){self.onmessage=function(e){for(var t=e.data.message.imageData,n=e.data.message.colorMatrix,r=t.data,i=r.length,o=n[0],a=n[1],s=n[2],c=n[3],u=n[4],l=n[5],d=n[6],h=n[7],f=n[8],p=n[9],m=n[10],g=n[11],v=n[12],y=n[13],b=n[14],_=n[15],E=n[16],w=n[17],T=n[18],I=n[19],S=0,C=0,A=0,O=0,R=0;S<i;S+=4)C=r[S]/255,A=r[S+1]/255,O=r[S+2]/255,R=r[S+3]/255,r[S]=Math.max(0,Math.min(255*(C*o+A*a+O*s+R*c+u),255)),r[S+1]=Math.max(0,Math.min(255*(C*l+A*d+O*h+R*f+p),255)),r[S+2]=Math.max(0,Math.min(255*(C*m+A*g+O*v+R*y+b),255)),r[S+3]=Math.max(0,Math.min(255*(C*_+A*E+O*w+R*T+I),255));self.postMessage({id:e.data.id,message:t},[t.data.buffer])}},se=function(e,t){var n=new Image;n.onload=function(){var e=n.naturalWidth,r=n.naturalHeight;n=null,t(e,r)},n.src=e},ce={1:function(){return[1,0,0,1,0,0]},2:function(e){return[-1,0,0,1,e,0]},3:function(e,t){return[-1,0,0,-1,e,t]},4:function(e,t){return[1,0,0,-1,0,t]},5:function(){return[0,1,1,0,0,0]},6:function(e,t){return[0,1,-1,0,t,0]},7:function(e,t){return[0,-1,-1,0,t,e]},8:function(e){return[0,-1,1,0,0,e]}},ue=function(e,t,n,r){-1!==r&&e.transform.apply(e,ce[r](t,n))},le=function(e,t,n,r){t=Math.round(t),n=Math.round(n);var i=document.createElement("canvas");i.width=t,i.height=n;var o=i.getContext("2d");if(r>=5&&r<=8){var a=[n,t];t=a[0],n=a[1]}return ue(o,t,n,r),o.drawImage(e,0,0,t,n),i},de=function(e){return/^image/.test(e.type)&&!/svg/.test(e.type)},he=10,fe=10,pe=function(e){var t=Math.min(he/e.width,fe/e.height),n=document.createElement("canvas"),r=n.getContext("2d"),i=n.width=Math.ceil(e.width*t),o=n.height=Math.ceil(e.height*t);r.drawImage(e,0,0,i,o);var a=null;try{a=r.getImageData(0,0,i,o).data}catch(h){return null}for(var s=a.length,c=0,u=0,l=0,d=0;d<s;d+=4)c+=a[d]*a[d],u+=a[d+1]*a[d+1],l+=a[d+2]*a[d+2];return c=me(c,s),u=me(u,s),l=me(l,s),{r:c,g:u,b:l}},me=function(e,t){return Math.floor(Math.sqrt(e/(t/4)))},ge=function(e,t){t=t||document.createElement("canvas"),t.width=e.width,t.height=e.height;var n=t.getContext("2d");return n.drawImage(e,0,0),t},ve=function(e){var t;try{t=new ImageData(e.width,e.height)}catch(i){var n=document.createElement("canvas"),r=n.getContext("2d");t=r.createImageData(e.width,e.height)}return t.data.set(new Uint8ClampedArray(e.data)),t},ye=function(e){return new Promise((function(t,n){var r=new Image;r.crossOrigin="Anonymous",r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},be=function(e){var t=ie(e),n=te(e),r=e.utils.createWorker,i=function(e,t,n){return new Promise((function(i){e.ref.imageData||(e.ref.imageData=n.getContext("2d").getImageData(0,0,n.width,n.height));var o=ve(e.ref.imageData);if(!t||20!==t.length)return n.getContext("2d").putImageData(o,0,0),i();var a=r(ae);a.post({imageData:o,colorMatrix:t},(function(e){n.getContext("2d").putImageData(e,0,0),a.terminate(),i()}),[o.data.buffer])}))},o=function(e,t){e.removeChildView(t),t.image.width=1,t.image.height=1,t._destroy()},a=function(e){var t=e.root,n=t.ref.images.shift();return n.opacity=0,n.translateY=-15,t.ref.imageViewBin.push(n),n},s=function(e){var t=e.root,r=e.props,i=e.image,o=r.id,a=t.query("GET_ITEM",{id:o});if(a){var s,c,u=a.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},l=t.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),d=!1;t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(s=a.getMetadata("markup")||[],c=a.getMetadata("resize"),d=!0);var h=t.appendChildView(t.createChildView(n,{id:o,image:i,crop:u,resize:c,markup:s,dirty:d,background:l,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),t.childViews.length);t.ref.images.push(h),h.opacity=1,h.scaleX=1,h.scaleY=1,h.translateY=0,setTimeout((function(){t.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:o})}),250)}},c=function(e){var t=e.root,n=e.props,r=t.query("GET_ITEM",{id:n.id});if(r){var i=t.ref.images[t.ref.images.length-1];i.crop=r.getMetadata("crop"),i.background=t.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(i.dirty=!0,i.resize=r.getMetadata("resize"),i.markup=r.getMetadata("markup"))}},u=function(e){var t=e.root,n=e.props,r=e.action;if(/crop|filter|markup|resize/.test(r.change.key)&&t.ref.images.length){var o=t.query("GET_ITEM",{id:n.id});if(o)if(/filter/.test(r.change.key)){var u=t.ref.images[t.ref.images.length-1];i(t,r.change.value,u.image)}else if(/crop|markup|resize/.test(r.change.key)){var l=o.getMetadata("crop"),d=t.ref.images[t.ref.images.length-1];if(l&&l.aspectRatio&&d.crop&&d.crop.aspectRatio&&Math.abs(l.aspectRatio-d.crop.aspectRatio)>1e-5){var h=a({root:t});s({root:t,props:n,image:ge(h.image)})}else c({root:t,props:n})}}},l=function(e){var t=window.navigator.userAgent,n=t.match(/Firefox\/([0-9]+)\./),r=n?parseInt(n[1]):null;return!(r<=58)&&("createImageBitmap"in window&&de(e))},d=function(e){var t=e.root,n=e.props,r=n.id,i=t.query("GET_ITEM",r);if(i){var o=URL.createObjectURL(i.file);se(o,(function(e,n){t.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:r,width:e,height:n})}))}},h=function(e){var t=e.root,n=e.props,o=n.id,a=t.query("GET_ITEM",o);if(a){var c=URL.createObjectURL(a.file),u=function(){ye(c).then(d)},d=function(e){URL.revokeObjectURL(c);var r=a.getMetadata("exif")||{},o=r.orientation||-1,u=e.width,l=e.height;if(u&&l){if(o>=5&&o<=8){var d=[l,u];u=d[0],l=d[1]}var h=Math.max(1,.75*window.devicePixelRatio),f=t.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR"),p=f*h,m=l/u,g=t.rect.element.width,v=t.rect.element.height,y=g,b=y*m;m>1?(y=Math.min(u,g*p),b=y*m):(b=Math.min(l,v*p),y=b/m);var _=le(e,y,b,o),E=function(){var r=t.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?pe(data):null;a.setMetadata("color",r,!0),"close"in e&&e.close(),t.ref.overlayShadow.opacity=1,s({root:t,props:n,image:_})},w=a.getMetadata("filter");w?i(t,w,_).then(E):E()}};if(l(a.file)){var h=r(oe);h.post({file:a.file},(function(e){h.terminate(),e?d(e):u()}))}else u()}},f=function(e){var t=e.root,n=t.ref.images[t.ref.images.length-1];n.translateY=0,n.scaleX=1,n.scaleY=1,n.opacity=1},p=function(e){var t=e.root;t.ref.overlayShadow.opacity=1,t.ref.overlayError.opacity=0,t.ref.overlaySuccess.opacity=0},m=function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlayError.opacity=1},g=function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlaySuccess.opacity=1},v=function(e){var n=e.root;n.ref.images=[],n.ref.imageData=null,n.ref.imageViewBin=[],n.ref.overlayShadow=n.appendChildView(n.createChildView(t,{opacity:0,status:"idle"})),n.ref.overlaySuccess=n.appendChildView(n.createChildView(t,{opacity:0,status:"success"})),n.ref.overlayError=n.appendChildView(n.createChildView(t,{opacity:0,status:"failure"}))};return e.utils.createView({name:"image-preview-wrapper",create:v,styles:["height"],apis:["height"],destroy:function(e){var t=e.root;t.ref.images.forEach((function(e){e.image.width=1,e.image.height=1}))},didWriteView:function(e){var t=e.root;t.ref.images.forEach((function(e){e.dirty=!1}))},write:e.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:f,DID_IMAGE_PREVIEW_CONTAINER_CREATE:d,DID_FINISH_CALCULATE_PREVIEWSIZE:h,DID_UPDATE_ITEM_METADATA:u,DID_THROW_ITEM_LOAD_ERROR:m,DID_THROW_ITEM_PROCESSING_ERROR:m,DID_THROW_ITEM_INVALID:m,DID_COMPLETE_ITEM_PROCESSING:g,DID_START_ITEM_PROCESSING:p,DID_REVERT_ITEM_PROCESSING:p},(function(e){var t=e.root,n=t.ref.imageViewBin.filter((function(e){return 0===e.opacity}));t.ref.imageViewBin=t.ref.imageViewBin.filter((function(e){return e.opacity>0})),n.forEach((function(e){return o(t,e)})),n.length=0}))})},_e=function(t){var n=t.addFilter,r=t.utils,i=r.Type,o=r.createRoute,a=r.isFile,s=be(t);return n("CREATE_VIEW",(function(t){var n=t.is,r=t.view,i=t.query;if(n("file")&&i("GET_ALLOW_IMAGE_PREVIEW")){var c=function(t){var n=t.root,o=t.props,c=o.id,u=i("GET_ITEM",c);if(u&&a(u.file)&&!u.archived){var l=u.file;if(e(l)&&i("GET_IMAGE_PREVIEW_FILTER_ITEM")(u)){var d="createImageBitmap"in(window||{}),h=i("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!(!d&&h&&l.size>h)){n.ref.imagePreview=r.appendChildView(r.createChildView(s,{id:c}));var f=n.query("GET_IMAGE_PREVIEW_HEIGHT");f&&n.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:u.id,height:f});var p=!d&&l.size>i("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");n.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:c},p)}}}},u=function(e,t){if(e.ref.imagePreview){var n=t.id,r=e.query("GET_ITEM",{id:n});if(r){var i=e.query("GET_PANEL_ASPECT_RATIO"),o=e.query("GET_ITEM_PANEL_ASPECT_RATIO"),a=e.query("GET_IMAGE_PREVIEW_HEIGHT");if(!(i||o||a)){var s=e.ref,c=s.imageWidth,u=s.imageHeight;if(c&&u){var l=e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),d=e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),h=r.getMetadata("exif")||{},f=h.orientation||-1;if(f>=5&&f<=8){var p=[u,c];c=p[0],u=p[1]}if(!de(r.file)||e.query("GET_IMAGE_PREVIEW_UPSCALE")){var m=2048/c;c*=m,u*=m}var g=u/c,v=(r.getMetadata("crop")||{}).aspectRatio||g,y=Math.max(l,Math.min(u,d)),b=e.rect.element.width,_=Math.min(b*v,y);e.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:r.id,height:_})}}}}},l=function(e){var t=e.root;t.ref.shouldRescale=!0},d=function(e){var t=e.root,n=e.action;"crop"===n.change.key&&(t.ref.shouldRescale=!0)},h=function(e){var t=e.root,n=e.action;t.ref.imageWidth=n.width,t.ref.imageHeight=n.height,t.ref.shouldRescale=!0,t.ref.shouldDrawPreview=!0,t.dispatch("KICK")};r.registerWriter(o({DID_RESIZE_ROOT:l,DID_STOP_RESIZE:l,DID_LOAD_ITEM:c,DID_IMAGE_PREVIEW_CALCULATE_SIZE:h,DID_UPDATE_ITEM_METADATA:d},(function(e){var t=e.root,n=e.props;t.ref.imagePreview&&(t.rect.element.hidden||(t.ref.shouldRescale&&(u(t,n),t.ref.shouldRescale=!1),t.ref.shouldDrawPreview&&(requestAnimationFrame((function(){requestAnimationFrame((function(){t.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:n.id})}))})),t.ref.shouldDrawPreview=!1)))})))}})),{options:{allowImagePreview:[!0,i.BOOLEAN],imagePreviewFilterItem:[function(){return!0},i.FUNCTION],imagePreviewHeight:[null,i.INT],imagePreviewMinHeight:[44,i.INT],imagePreviewMaxHeight:[256,i.INT],imagePreviewMaxFileSize:[null,i.INT],imagePreviewZoomFactor:[2,i.INT],imagePreviewUpscale:[!1,i.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,i.INT],imagePreviewTransparencyIndicator:[null,i.STRING],imagePreviewCalculateAverageImageColor:[!1,i.BOOLEAN],imagePreviewMarkupShow:[!0,i.BOOLEAN],imagePreviewMarkupFilter:[function(){return!0},i.FUNCTION]}}},Ee="undefined"!==typeof window&&"undefined"!==typeof window.document;return Ee&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:_e})),_e}))},66136:function(e,t){
/*!
 * FilePond 4.30.4
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(e,n){n(t)})(0,(function(e){"use strict";var t=function(e){return e instanceof HTMLElement},n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),i=[],o=[],a=function(){return Object.assign({},r)},s=function(){var e=[].concat(i);return i.length=0,e},c=function(){var e=[].concat(o);o.length=0,e.forEach((function(e){var t=e.type,n=e.data;u(t,n)}))},u=function(e,t,n){!n||document.hidden?(f[e]&&f[e](t),i.push({type:e,data:t})):o.push({type:e,data:t})},l=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return h[e]?(t=h)[e].apply(t,r):null},d={getState:a,processActionQueue:s,processDispatchQueue:c,dispatch:u,query:l},h={};t.forEach((function(e){h=Object.assign({},e(r),{},h)}));var f={};return n.forEach((function(e){f=Object.assign({},e(u,l,r),{},f)})),d},r=function(e,t,n){"function"!==typeof n?Object.defineProperty(e,t,Object.assign({},n)):e[t]=n},i=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},o=function(e){var t={};return i(e,(function(n){r(t,n,e[n])})),t},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},s="http://www.w3.org/2000/svg",c=["svg","path"],u=function(e){return c.includes(e)},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===typeof t&&(n=t,t=null);var r=u(e)?document.createElementNS(s,e):document.createElement(e);return t&&(u(e)?a(r,"class",t):r.className=t),i(n,(function(e,t){a(r,e,t)})),r},d=function(e){return function(t,n){"undefined"!==typeof n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},h=function(e,t){return function(e,n){return"undefined"!==typeof n?t.splice(n,0,e):t.push(e),e}},f=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},p=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document}(),m=function(){return p},g=m()?l("svg"):{},v="children"in g?function(e){return e.children.length}:function(e){return e.childNodes.length},y=function(e,t,n,r){var i=n[0]||e.left,o=n[1]||e.top,a=i+e.width,s=o+e.height*(r[1]||1),c={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:o,right:a,bottom:s}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){b(c.inner,Object.assign({},e.inner)),b(c.outer,Object.assign({},e.outer))})),_(c.inner),c.outer.bottom+=c.element.marginBottom,c.outer.right+=c.element.marginRight,_(c.outer),c},b=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},_=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},E=function(e){return"number"===typeof e},w=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<r&&Math.abs(n)<r},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,i=void 0===r?.75:r,a=e.mass,s=void 0===a?10:a,c=null,u=null,l=0,d=!1,h=function(e,t){if(!d){if(!E(c)||!E(u))return d=!0,void(l=0);var r=-(u-c)*n;l+=r/s,u+=l,l*=i,w(u,c,l)||t?(u=c,l=0,d=!0,p.onupdate(u),p.oncomplete(u)):p.onupdate(u)}},f=function(e){if(E(e)&&!E(u)&&(u=e),null===c&&(c=e,u=e),c=e,u===c||"undefined"===typeof c)return d=!0,l=0,p.onupdate(u),void p.oncomplete(u);d=!1},p=o({interpolate:h,target:{set:f,get:function(){return c}},resting:{get:function(){return d}},onupdate:function(e){},oncomplete:function(e){}});return p},I=function(e){return e<.5?2*e*e:(4-2*e)*e-1},S=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,i=void 0===r?500:r,a=n.easing,s=void 0===a?I:a,c=n.delay,u=void 0===c?0:c,l=null,d=!0,h=!1,f=null,p=function(n,r){d||null===f||(null===l&&(l=n),n-l<u||(e=n-l-u,e>=i||r?(e=1,t=h?0:1,m.onupdate(t*f),m.oncomplete(t*f),d=!0):(t=e/i,m.onupdate((e>=0?s(h?1-t:t):0)*f))))},m=o({interpolate:p,target:{get:function(){return h?0:f},set:function(e){if(null===f)return f=e,m.onupdate(e),void m.oncomplete(e);e<f?(f=1,h=!0):(h=!1,f=e),d=!1,l=null}},resting:{get:function(){return d}},onupdate:function(e){},oncomplete:function(e){}});return m},C={spring:T,tween:S},A=function(e,t,n){var r=e[t]&&"object"===typeof e[t][n]?e[t][n]:e[t]||e,i="string"===typeof r?r:r.type,o="object"===typeof r?Object.assign({},r):{};return C[i]?C[i](o):null},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t=Array.isArray(t)?t:[t],t.forEach((function(t){e.forEach((function(e){var i=e,o=function(){return n[e]},a=function(t){return n[e]=t};"object"===typeof e&&(i=e.key,o=e.getter||o,a=e.setter||a),t[i]&&!r||(t[i]={get:o,set:a})}))}))},R=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,a=Object.assign({},n),s=[];return i(t,(function(e,t){var i=A(t);if(i){i.onupdate=function(t){n[e]=t},i.target=a[e];var c={key:e,setter:function(e){i.target!==e&&(i.target=e)},getter:function(){return n[e]}};O([c],[r,o],n,!0),s.push(i)}})),{write:function(e){var t=document.hidden,n=!0;return s.forEach((function(r){r.resting||(n=!1),r.interpolate(e,t)})),n},destroy:function(){}}},k=function(e){return function(t,n){e.addEventListener(t,n)}},x=function(e){return function(t,n){e.removeEventListener(t,n)}},M=function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,n=(e.viewState,e.view),r=[],i=k(n.element),o=x(n.element);return t.on=function(e,t){r.push({type:e,fn:t}),i(e,t)},t.off=function(e,t){r.splice(r.findIndex((function(n){return n.type===e&&n.fn===t})),1),o(e,t)},{write:function(){return!0},destroy:function(){r.forEach((function(e){o(e.type,e.fn)}))}}},N=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;O(t,r,n)},P=function(e){return null!=e},D={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},L=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,i=e.viewExternalAPI,o=e.view,a=Object.assign({},n),s={};O(t,[r,i],n);var c=function(){return[n["translateX"]||0,n["translateY"]||0]},u=function(){return[n["scaleX"]||0,n["scaleY"]||0]},l=function(){return o.rect?y(o.rect,o.childViews,c(),u()):null};return r.rect={get:l},i.rect={get:l},t.forEach((function(e){n[e]="undefined"===typeof a[e]?D[e]:a[e]})),{write:function(){if(U(s,n))return F(o.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},U=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},F=function(e,t){var n=t.opacity,r=t.perspective,i=t.translateX,o=t.translateY,a=t.scaleX,s=t.scaleY,c=t.rotateX,u=t.rotateY,l=t.rotateZ,d=t.originX,h=t.originY,f=t.width,p=t.height,m="",g="";(P(d)||P(h))&&(g+="transform-origin: "+(d||0)+"px "+(h||0)+"px;"),P(r)&&(m+="perspective("+r+"px) "),(P(i)||P(o))&&(m+="translate3d("+(i||0)+"px, "+(o||0)+"px, 0) "),(P(a)||P(s))&&(m+="scale3d("+(P(a)?a:1)+", "+(P(s)?s:1)+", 1) "),P(l)&&(m+="rotateZ("+l+"rad) "),P(c)&&(m+="rotateX("+c+"rad) "),P(u)&&(m+="rotateY("+u+"rad) "),m.length&&(g+="transform:"+m+";"),P(n)&&(g+="opacity:"+n+";",0===n&&(g+="visibility:hidden;"),n<1&&(g+="pointer-events:none;")),P(p)&&(g+="height:"+p+"px;"),P(f)&&(g+="width:"+f+"px;");var v=e.elementCurrentStyle||"";g.length===v.length&&g===v||(e.style.cssText=g,e.elementCurrentStyle=g)},q={styles:L,listeners:M,animations:R,apis:N},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,i=void 0===r?null:r,a=e.attributes,s=void 0===a?{}:a,c=e.read,u=void 0===c?function(){}:c,p=e.write,m=void 0===p?function(){}:p,g=e.create,b=void 0===g?function(){}:g,_=e.destroy,E=void 0===_?function(){}:_,w=e.filterFrameActionsForChild,T=void 0===w?function(e,t){return t}:w,I=e.didCreateView,S=void 0===I?function(){}:I,C=e.didWriteView,A=void 0===C?function(){}:C,O=e.ignoreRect,R=void 0!==O&&O,k=e.ignoreRectUpdate,x=void 0!==k&&k,M=e.mixins,N=void 0===M?[]:M;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=l(n,"filepond--"+i,s),a=window.getComputedStyle(r,null),c=B(),p=null,g=!1,_=[],w=[],I={},C={},O=[m],k=[u],M=[E],P=function(){return r},D=function(){return _.concat()},L=function(){return I},U=function(e){return function(t,n){return t(e,n)}},F=function(){return p||(p=y(c,_,[0,0],[1,1]),p)},H=function(){return a},j=function(){p=null,_.forEach((function(e){return e._read()}));var e=!(x&&c.width&&c.height);e&&B(c,r,a);var n={root:W,props:t,rect:c};k.forEach((function(e){return e(n)}))},V=function(e,n,r){var i=0===n.length;return O.forEach((function(o){var a=o({props:t,root:W,actions:n,timestamp:e,shouldOptimize:r});!1===a&&(i=!1)})),w.forEach((function(t){var n=t.write(e);!1===n&&(i=!1)})),_.filter((function(e){return!!e.element.parentNode})).forEach((function(t){var o=t._write(e,T(t,n),r);o||(i=!1)})),_.forEach((function(t,o){t.element.parentNode||(W.appendChild(t.element,o),t._read(),t._write(e,T(t,n),r),i=!1)})),g=i,A({props:t,root:W,actions:n,timestamp:e}),i},G=function(){w.forEach((function(e){return e.destroy()})),M.forEach((function(e){e({root:W,props:t})})),_.forEach((function(e){return e._destroy()}))},z={element:{get:P},style:{get:H},childViews:{get:D}},$=Object.assign({},z,{rect:{get:F},ref:{get:L},is:function(e){return i===e},appendChild:d(r),createChildView:U(e),linkView:function(e){return _.push(e),e},unlinkView:function(e){_.splice(_.indexOf(e),1)},appendChildView:h(r,_),removeChildView:f(r,_),registerWriter:function(e){return O.push(e)},registerReader:function(e){return k.push(e)},registerDestroyer:function(e){return M.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),Y={element:{get:P},childViews:{get:D},rect:{get:F},resting:{get:function(){return g}},isRectIgnored:function(){return R},_read:j,_write:V,_destroy:G},K=Object.assign({},z,{rect:{get:function(){return c}}});Object.keys(N).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=q[e]({mixinConfig:N[e],viewProps:t,viewState:C,viewInternalAPI:$,viewExternalAPI:Y,view:o(K)});n&&w.push(n)}));var W=o($);b({root:W,props:t});var X=v(r);return _.forEach((function(e,t){W.appendChild(e.element,X+t)})),S(W),o(Y)}},j=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r])return window[r].readers.push(e),void window[r].writers.push(t);window[r]={readers:[e],writers:[t]};var i=window[r],o=1e3/n,a=null,s=null,c=null,u=null,l=function(){document.hidden?(c=function(){return window.setTimeout((function(){return d(performance.now())}),o)},u=function(){return window.clearTimeout(s)}):(c=function(){return window.requestAnimationFrame(d)},u=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",(function(){u&&u(),l(),d(performance.now())}));var d=function e(t){s=c(e),a||(a=t);var n=t-a;n<=o||(a=t-n%o,i.readers.forEach((function(e){return e()})),i.writers.forEach((function(e){return e(t)})))};return l(),d(performance.now()),{pause:function(){u(s)}}},V=function(e,t){return function(n){var r=n.root,i=n.props,o=n.actions,a=void 0===o?[]:o,s=n.timestamp,c=n.shouldOptimize;a.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:r,props:i,action:t.data,timestamp:s,shouldOptimize:c})})),t&&t({root:r,props:i,actions:a,timestamp:s,shouldOptimize:c})}},G=function(e,t){return t.parentNode.insertBefore(e,t)},z=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},$=function(e){return Array.isArray(e)},Y=function(e){return null==e},K=function(e){return e.trim()},W=function(e){return""+e},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return Y(e)?[]:$(e)?e:W(e).split(t).map(K).filter((function(e){return e.length}))},Q=function(e){return"boolean"===typeof e},Z=function(e){return Q(e)?e:"true"===e},J=function(e){return"string"===typeof e},ee=function(e){return E(e)?e:J(e)?W(e).replace(/[a-z]+/gi,""):0},te=function(e){return parseInt(ee(e),10)},ne=function(e){return parseFloat(ee(e))},re=function(e){return E(e)&&isFinite(e)&&Math.floor(e)===e},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(re(e))return e;var n=W(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),te(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),te(n)*t):te(n)},oe=function(e){return"function"===typeof e},ae=function(e){var t=self,n=e.split("."),r=null;while(r=n.shift())if(t=t[r],!t)return null;return t},se={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ce=function(e){var t={};return t.url=J(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},i(se,(function(n){t[n]=ue(n,e[n],se[n],t.timeout,t.headers)})),t.process=e.process||J(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},ue=function(e,t,n,r,i){if(null===t)return null;if("function"===typeof t)return t;var o={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(J(t))return o.url=t,o;if(Object.assign(o,t),J(o.headers)){var a=o.headers.split(/:(.+)/);o.headers={header:a[0],value:a[1]}}return o.withCredentials=Z(o.withCredentials),o},le=function(e){return ce(e)},de=function(e){return null===e},he=function(e){return"object"===typeof e&&null!==e},fe=function(e){return he(e)&&J(e.url)&&he(e.process)&&he(e.revert)&&he(e.restore)&&he(e.fetch)},pe=function(e){return $(e)?"array":de(e)?"null":re(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":fe(e)?"api":typeof e},me=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},ge={array:X,boolean:Z,int:function(e){return"bytes"===pe(e)?ie(e):te(e)},number:ne,float:ne,bytes:ie,string:function(e){return oe(e)?e:W(e)},function:function(e){return ae(e)},serverapi:le,object:function(e){try{return JSON.parse(me(e))}catch(t){return null}}},ve=function(e,t){return ge[t](e)},ye=function(e,t,n){if(e===t)return e;var r=pe(e);if(r!==n){var i=ve(e,n);if(r=pe(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},be=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=ye(r,e,t)}}},_e=function(e){var t={};return i(e,(function(n){var r=e[n];t[n]=be(r[0],r[1])})),o(t)},Ee=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:_e(e)}},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join(t)},Te=function(e,t){var n={};return i(t,(function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+we(t,"_").toUpperCase(),{value:n})}}})),n},Ie=function(e){return function(t,n,r){var o={};return i(e,(function(e){var n=we(e,"_").toUpperCase();o["SET_"+n]=function(i){try{r.options[e]=i.value}catch(o){}t("DID_SET_"+n,{value:r.options[e]})}})),o}},Se=function(e){return function(t){var n={};return i(e,(function(e){n["GET_"+we(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},Ce={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Ae=function(){return Math.random().toString(36).substring(2,11)};function Oe(e){this.wrapped=e}function Re(e){var t,n;function r(e,r){return new Promise((function(o,a){var s={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))}function i(t,n){try{var r=e[t](n),a=r.value,s=a instanceof Oe;Promise.resolve(s?a.wrapped:a).then((function(e){s?i("next",e):o(r.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(c){o("throw",c)}}function o(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1});break}t=t.next,t?i(t.key,t.arg):n=null}this._invoke=r,"function"!==typeof e.return&&(this.return=void 0)}function ke(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function xe(e,t){if(null==e)return{};var n,r,i=ke(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}"function"===typeof Symbol&&Symbol.asyncIterator&&(Re.prototype[Symbol.asyncIterator]=function(){return this}),Re.prototype.next=function(e){return this._invoke("next",e)},Re.prototype.throw=function(e){return this._invoke("throw",e)},Re.prototype.return=function(e){return this._invoke("return",e)};function Me(e){return Ne(e)||Pe(e)||De()}function Ne(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Pe(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function De(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Le=function(e,t){return e.splice(t,1)},Ue=function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},Fe=function(){var e=[],t=function(t,n){Le(e,e.findIndex((function(e){return e.event===t&&(e.cb===n||!n)})))},n=function(t,n,r){e.filter((function(e){return e.event===t})).map((function(e){return e.cb})).forEach((function(e){return Ue((function(){return e.apply(void 0,Me(n))}),r)}))};return{fireSync:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,r,!0)},fire:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,r,!1)},on:function(t,n){e.push({event:t,cb:n})},onOnce:function(n,r){e.push({event:n,cb:function(){t(n,r),r.apply(void 0,arguments)}})},off:t}},qe=function(e,t,n){Object.getOwnPropertyNames(e).filter((function(e){return!n.includes(e)})).forEach((function(n){return Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))},Be=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],He=function(e){var t={};return qe(e,t,Be),t},je=function(e){e.forEach((function(t,n){t.released&&Le(e,n)}))},Ve={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Ge={INPUT:1,LIMBO:2,LOCAL:3},ze=function(e){return/[^0-9]+/.exec(e)},$e=function(){return ze(1.1.toLocaleString())[0]},Ye=function(){var e=$e(),t=1e3.toLocaleString(),n=1e3.toString();return t!==n?ze(t)[0]:"."===e?",":"."},Ke={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},We=[],Xe=function(e,t,n){return new Promise((function(r,i){var o=We.filter((function(t){return t.key===e})).map((function(e){return e.cb}));if(0!==o.length){var a=o.shift();o.reduce((function(e,t){return e.then((function(e){return t(e,n)}))}),a(t,n)).then((function(e){return r(e)})).catch((function(e){return i(e)}))}else r(t)}))},Qe=function(e,t,n){return We.filter((function(t){return t.key===e})).map((function(e){return e.cb(t,n)}))},Ze=function(e,t){return We.push({key:e,cb:t})},Je=function(e){return Object.assign(nt,e)},et=function(){return Object.assign({},nt)},tt=function(e){i(e,(function(e,t){nt[e]&&(nt[e][0]=ye(t,nt[e][0],nt[e][1]))}))},nt={id:[null,Ke.STRING],name:["filepond",Ke.STRING],disabled:[!1,Ke.BOOLEAN],className:[null,Ke.STRING],required:[!1,Ke.BOOLEAN],captureMethod:[null,Ke.STRING],allowSyncAcceptAttribute:[!0,Ke.BOOLEAN],allowDrop:[!0,Ke.BOOLEAN],allowBrowse:[!0,Ke.BOOLEAN],allowPaste:[!0,Ke.BOOLEAN],allowMultiple:[!1,Ke.BOOLEAN],allowReplace:[!0,Ke.BOOLEAN],allowRevert:[!0,Ke.BOOLEAN],allowRemove:[!0,Ke.BOOLEAN],allowProcess:[!0,Ke.BOOLEAN],allowReorder:[!1,Ke.BOOLEAN],allowDirectoriesOnly:[!1,Ke.BOOLEAN],storeAsFile:[!1,Ke.BOOLEAN],forceRevert:[!1,Ke.BOOLEAN],maxFiles:[null,Ke.INT],checkValidity:[!1,Ke.BOOLEAN],itemInsertLocationFreedom:[!0,Ke.BOOLEAN],itemInsertLocation:["before",Ke.STRING],itemInsertInterval:[75,Ke.INT],dropOnPage:[!1,Ke.BOOLEAN],dropOnElement:[!0,Ke.BOOLEAN],dropValidation:[!1,Ke.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],Ke.ARRAY],instantUpload:[!0,Ke.BOOLEAN],maxParallelUploads:[2,Ke.INT],allowMinimumUploadDuration:[!0,Ke.BOOLEAN],chunkUploads:[!1,Ke.BOOLEAN],chunkForce:[!1,Ke.BOOLEAN],chunkSize:[5e6,Ke.INT],chunkRetryDelays:[[500,1e3,3e3],Ke.ARRAY],server:[null,Ke.SERVER_API],fileSizeBase:[1e3,Ke.INT],labelFileSizeBytes:["bytes",Ke.STRING],labelFileSizeKilobytes:["KB",Ke.STRING],labelFileSizeMegabytes:["MB",Ke.STRING],labelFileSizeGigabytes:["GB",Ke.STRING],labelDecimalSeparator:[$e(),Ke.STRING],labelThousandsSeparator:[Ye(),Ke.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',Ke.STRING],labelInvalidField:["Field contains invalid files",Ke.STRING],labelFileWaitingForSize:["Waiting for size",Ke.STRING],labelFileSizeNotAvailable:["Size not available",Ke.STRING],labelFileCountSingular:["file in list",Ke.STRING],labelFileCountPlural:["files in list",Ke.STRING],labelFileLoading:["Loading",Ke.STRING],labelFileAdded:["Added",Ke.STRING],labelFileLoadError:["Error during load",Ke.STRING],labelFileRemoved:["Removed",Ke.STRING],labelFileRemoveError:["Error during remove",Ke.STRING],labelFileProcessing:["Uploading",Ke.STRING],labelFileProcessingComplete:["Upload complete",Ke.STRING],labelFileProcessingAborted:["Upload cancelled",Ke.STRING],labelFileProcessingError:["Error during upload",Ke.STRING],labelFileProcessingRevertError:["Error during revert",Ke.STRING],labelTapToCancel:["tap to cancel",Ke.STRING],labelTapToRetry:["tap to retry",Ke.STRING],labelTapToUndo:["tap to undo",Ke.STRING],labelButtonRemoveItem:["Remove",Ke.STRING],labelButtonAbortItemLoad:["Abort",Ke.STRING],labelButtonRetryItemLoad:["Retry",Ke.STRING],labelButtonAbortItemProcessing:["Cancel",Ke.STRING],labelButtonUndoItemProcessing:["Undo",Ke.STRING],labelButtonRetryItemProcessing:["Retry",Ke.STRING],labelButtonProcessItem:["Upload",Ke.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',Ke.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',Ke.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',Ke.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',Ke.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',Ke.STRING],oninit:[null,Ke.FUNCTION],onwarning:[null,Ke.FUNCTION],onerror:[null,Ke.FUNCTION],onactivatefile:[null,Ke.FUNCTION],oninitfile:[null,Ke.FUNCTION],onaddfilestart:[null,Ke.FUNCTION],onaddfileprogress:[null,Ke.FUNCTION],onaddfile:[null,Ke.FUNCTION],onprocessfilestart:[null,Ke.FUNCTION],onprocessfileprogress:[null,Ke.FUNCTION],onprocessfileabort:[null,Ke.FUNCTION],onprocessfilerevert:[null,Ke.FUNCTION],onprocessfile:[null,Ke.FUNCTION],onprocessfiles:[null,Ke.FUNCTION],onremovefile:[null,Ke.FUNCTION],onpreparefile:[null,Ke.FUNCTION],onupdatefiles:[null,Ke.FUNCTION],onreorderfiles:[null,Ke.FUNCTION],beforeDropFile:[null,Ke.FUNCTION],beforeAddFile:[null,Ke.FUNCTION],beforeRemoveFile:[null,Ke.FUNCTION],beforePrepareFile:[null,Ke.FUNCTION],stylePanelLayout:[null,Ke.STRING],stylePanelAspectRatio:[null,Ke.STRING],styleItemPanelAspectRatio:[null,Ke.STRING],styleButtonRemoveItemPosition:["left",Ke.STRING],styleButtonProcessItemPosition:["right",Ke.STRING],styleLoadIndicatorPosition:["right",Ke.STRING],styleProgressIndicatorPosition:["right",Ke.STRING],styleButtonRemoveItemAlign:[!1,Ke.BOOLEAN],files:[[],Ke.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],Ke.ARRAY]},rt=function(e,t){return Y(t)?e[0]||null:re(t)?e[t]||null:("object"===typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},it=function(e){if(Y(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},ot=function(e){return e.filter((function(e){return!e.archived}))},at={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},st=null,ct=function(){if(null===st)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,st=1===t.files.length}catch(n){st=!1}return st},ut=[Ve.LOAD_ERROR,Ve.PROCESSING_ERROR,Ve.PROCESSING_REVERT_ERROR],lt=[Ve.LOADING,Ve.PROCESSING,Ve.PROCESSING_QUEUED,Ve.INIT],dt=[Ve.PROCESSING_COMPLETE],ht=function(e){return ut.includes(e.status)},ft=function(e){return lt.includes(e.status)},pt=function(e){return dt.includes(e.status)},mt=function(e){return he(e.options.server)&&(he(e.options.server.process)||oe(e.options.server.process))},gt=function(e){return{GET_STATUS:function(){var t=ot(e.items),n=at.EMPTY,r=at.ERROR,i=at.BUSY,o=at.IDLE,a=at.READY;return 0===t.length?n:t.some(ht)?r:t.some(ft)?i:t.some(pt)?a:o},GET_ITEM:function(t){return rt(e.items,t)},GET_ACTIVE_ITEM:function(t){return rt(ot(e.items),t)},GET_ACTIVE_ITEMS:function(){return ot(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=rt(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=rt(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){var t=/circle/.test(e.options.stylePanelLayout),n=t?1:it(e.options.stylePanelAspectRatio);return n},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return ot(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return ot(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&ct()&&!mt(e)},IS_ASYNC:function(){return mt(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},vt=function(e){var t=ot(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n},yt=function(e,t,n){return Math.max(Math.min(n,e),t)},bt=function(e,t,n){return e.splice(t,0,n)},_t=function(e,t,n){return Y(t)?null:"undefined"===typeof n?(e.push(t),t):(n=yt(n,0,e.length),bt(e,n,t),t)},Et=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},wt=function(e){return e.split("/").pop().split("?").shift()},Tt=function(e){return e.split(".").pop()},It=function(e){if("string"!==typeof e)return"";var t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""},St=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+St(e.getMonth()+1,"00")+"-"+St(e.getDate(),"00")+"_"+St(e.getHours(),"00")+"-"+St(e.getMinutes(),"00")+"-"+St(e.getSeconds(),"00")},At=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="string"===typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),J(t)||(t=Ct()),t&&null===r&&Tt(t)?i.name=t:(r=r||It(i.type),i.name=t+(r?"."+r:"")),i},Ot=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},Rt=function(e,t){var n=Ot();if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},kt=function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return Rt(n,t)},xt=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},Mt=function(e){var t=e.split(",")[1];return t.replace(/\s/g,"")},Nt=function(e){return atob(Mt(e))},Pt=function(e){var t=xt(e),n=Nt(e);return kt(n,t)},Dt=function(e,t,n){return At(Pt(e),t,null,n)},Lt=function(e){if(!/^content-disposition:/i.test(e))return null;var t=e.split(/filename=|filename\*=.+''/).splice(1).map((function(e){return e.trim().replace(/^["']|[;"']{0,2}$/g,"")})).filter((function(e){return e.length}));return t.length?decodeURI(t[t.length-1]):null},Ut=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Ft=function(e){if(/x-content-transfer-id:/i.test(e)){var t=(e.split(":")[1]||"").trim();return t||null}return null},qt=function(e){var t={source:null,name:null,size:null},n=e.split("\n"),r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value,u=Lt(c);if(u)t.name=u;else{var l=Ut(c);if(l)t.size=l;else{var d=Ft(c);d&&(t.source=d)}}}}catch(h){i=!0,o=h}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t},Bt=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=function(){return t.progress},r=function(){t.request&&t.request.abort&&t.request.abort()},i=function(){var e=t.source;a.fire("init",e),e instanceof File?a.fire("load",e):e instanceof Blob?a.fire("load",At(e,e.name)):Et(e)?a.fire("load",Dt(e)):o(e)},o=function(n){e?(t.timestamp=Date.now(),t.request=e(n,(function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&&(e=At(e,e.name||wt(n))),a.fire("load",e instanceof Blob?e:e?e.body:null)}),(function(e){a.fire("error","string"===typeof e?{type:"error",code:0,body:e}:e)}),(function(e,n,r){r&&(t.size=r),t.duration=Date.now()-t.timestamp,e?(t.progress=n/r,a.fire("progress",t.progress)):t.progress=null}),(function(){a.fire("abort")}),(function(e){var n=qt("string"===typeof e?e:e.headers);a.fire("meta",{size:t.size||n.size,filename:n.name,source:n.source})}))):a.fire("error",{type:"error",body:"Can't load URL",code:400})},a=Object.assign({},Fe(),{setSource:function(e){return t.source=e},getProgress:n,abort:r,load:i});return a},Ht=function(e){return/GET|HEAD/.test(e)},jt=function(e,t,n){var r={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){i=!0,a.abort()}},i=!1,o=!1;n=Object.assign({method:"POST",headers:{},withCredentials:!1},n),t=encodeURI(t),Ht(n.method)&&e&&(t=""+t+encodeURIComponent("string"===typeof e?e:JSON.stringify(e)));var a=new XMLHttpRequest,s=Ht(n.method)?a:a.upload;return s.onprogress=function(e){i||r.onprogress(e.lengthComputable,e.loaded,e.total)},a.onreadystatechange=function(){a.readyState<2||4===a.readyState&&0===a.status||o||(o=!0,r.onheaders(a))},a.onload=function(){a.status>=200&&a.status<300?r.onload(a):r.onerror(a)},a.onerror=function(){return r.onerror(a)},a.onabort=function(){i=!0,r.onabort()},a.ontimeout=function(){return r.ontimeout(a)},a.open(n.method,t,!0),re(n.timeout)&&(a.timeout=n.timeout),Object.keys(n.headers).forEach((function(e){var t=unescape(encodeURIComponent(n.headers[e]));a.setRequestHeader(e,t)})),n.responseType&&(a.responseType=n.responseType),n.withCredentials&&(a.withCredentials=!0),a.send(e),r},Vt=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},Gt=function(e){return function(t){e(Vt("error",0,"Timeout",t.getAllResponseHeaders()))}},zt=function(e){return/\?/.test(e)},$t=function(){for(var e="",t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e+=zt(e)&&zt(t)?t.replace(/\?/,"&"):t})),e},Yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"===typeof t)return t;if(!t||!J(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a,s,c,u){var l=jt(i,$t(e,t.url),Object.assign({},t,{responseType:"blob"}));return l.onload=function(e){var r=e.getAllResponseHeaders(),a=qt(r).name||wt(i);o(Vt("load",e.status,"HEAD"===t.method?null:At(n(e.response),a),r))},l.onerror=function(e){a(Vt("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},l.onheaders=function(e){u(Vt("headers",e.status,null,e.getAllResponseHeaders()))},l.ontimeout=Gt(a),l.onprogress=s,l.onabort=c,l}},Kt={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Wt=function(e,t,n,r,i,o,a,s,c,u,l){for(var d=[],h=l.chunkTransferId,f=l.chunkServer,p=l.chunkSize,m=l.chunkRetryDelays,g={serverId:h,aborted:!1},v=t.ondata||function(e){return e},y=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},b=t.onerror||function(e){return null},_=function(o){var s=new FormData;he(i)&&s.append(n,JSON.stringify(i));var c="function"===typeof t.headers?t.headers(r,i):Object.assign({},t.headers,{"Upload-Length":r.size}),u=Object.assign({},t,{headers:c}),l=jt(v(s),$t(e,t.url),u);l.onload=function(e){return o(y(e,u.method))},l.onerror=function(e){return a(Vt("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},l.ontimeout=Gt(a)},E=function(n){var r=$t(e,f.url,g.serverId),i="function"===typeof t.headers?t.headers(g.serverId):Object.assign({},t.headers),o={headers:i,method:"HEAD"},s=jt(null,r,o);s.onload=function(e){return n(y(e,o.method))},s.onerror=function(e){return a(Vt("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=Gt(a)},w=Math.floor(r.size/p),T=0;T<=w;T++){var I=T*p,S=r.slice(I,I+p,"application/offset+octet-stream");d[T]={index:T,size:S.size,offset:I,data:S,file:r,progress:0,retries:Me(m),status:Kt.QUEUED,error:null,request:null,timeout:null}}var C=function(){return o(g.serverId)},A=function(e){return e.status===Kt.QUEUED||e.status===Kt.ERROR},O=function(t){if(!g.aborted)if(t=t||d.find(A),t){t.status=Kt.PROCESSING,t.progress=null;var n=f.ondata||function(e){return e},i=f.onerror||function(e){return null},o=$t(e,f.url,g.serverId),s="function"===typeof f.headers?f.headers(t):Object.assign({},f.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),u=t.request=jt(n(t.data),o,Object.assign({},f,{headers:s}));u.onload=function(){t.status=Kt.COMPLETE,t.request=null,x()},u.onprogress=function(e,n,r){t.progress=e?n:null,k()},u.onerror=function(e){t.status=Kt.ERROR,t.request=null,t.error=i(e.response)||e.statusText,R(t)||a(Vt("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=function(e){t.status=Kt.ERROR,t.request=null,R(t)||Gt(a)(e)},u.onabort=function(){t.status=Kt.QUEUED,t.request=null,c()}}else d.every((function(e){return e.status===Kt.COMPLETE}))&&C()},R=function(e){return 0!==e.retries.length&&(e.status=Kt.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){O(e)}),e.retries.shift()),!0)},k=function(){var e=d.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return s(!1,0,0);var t=d.reduce((function(e,t){return e+t.size}),0);s(!0,e,t)},x=function(){var e=d.filter((function(e){return e.status===Kt.PROCESSING})).length;e>=1||O()},M=function(){d.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return g.serverId?E((function(e){g.aborted||(d.filter((function(t){return t.offset<e})).forEach((function(e){e.status=Kt.COMPLETE,e.progress=e.size})),x())})):_((function(e){g.aborted||(u(e),g.serverId=e,x())})),{abort:function(){g.aborted=!0,M()}}},Xt=function(e,t,n,r){return function(i,o,a,s,c,u,l){if(i){var d=r.chunkUploads,h=d&&i.size>r.chunkSize,f=d&&(h||r.chunkForce);if(i instanceof Blob&&f)return Wt(e,t,n,i,o,a,s,c,u,l,r);var p=t.ondata||function(e){return e},m=t.onload||function(e){return e},g=t.onerror||function(e){return null},v="function"===typeof t.headers?t.headers(i,o)||{}:Object.assign({},t.headers),y=Object.assign({},t,{headers:v}),b=new FormData;he(o)&&b.append(n,JSON.stringify(o)),(i instanceof Blob?[{name:null,file:i}]:i).forEach((function(e){b.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var _=jt(p(b),$t(e,t.url),y);return _.onload=function(e){a(Vt("load",e.status,m(e.response),e.getAllResponseHeaders()))},_.onerror=function(e){s(Vt("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},_.ontimeout=Gt(s),_.onprogress=c,_.onabort=u,_}}},Qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return"function"===typeof t?function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return t.apply(void 0,[n].concat(i,[r]))}:t&&J(t.url)?Xt(e,t,n,r):null},Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"===typeof t)return t;if(!t||!J(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a){var s=jt(i,e+t.url,t);return s.onload=function(e){o(Vt("load",e.status,n(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){a(Vt("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=Gt(a),s}},Jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},en=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=null,o=Date.now(),a=function a(){var s=Date.now()-o,c=Jt(n,r);s+c>t&&(c=s+c-t);var u=s/t;u>=1||document.hidden?e(1):(e(u),i=setTimeout(a,c))};return t>0&&a(),{clear:function(){clearTimeout(i)}}},tn=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=t.allowMinimumUploadDuration,i=function(t,i){var o=function(){0!==n.duration&&null!==n.progress&&u.fire("progress",u.getProgress())},a=function(){n.complete=!0,u.fire("load-perceived",n.response.body)};u.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=en((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,o(),n.response&&1===n.perceivedProgress&&!n.complete&&a()}),r?Jt(750,1500):0),n.request=e(t,i,(function(e){n.response=he(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,u.fire("load",n.response.body),(!r||r&&1===n.perceivedProgress)&&a()}),(function(e){n.perceivedPerformanceUpdater.clear(),u.fire("error",he(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,o()}),(function(){n.perceivedPerformanceUpdater.clear(),u.fire("abort",n.response?n.response.body:null)}),(function(e){u.fire("transfer",e)}))},o=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},a=function(){o(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},s=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},c=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},u=Object.assign({},Fe(),{process:i,abort:o,getProgress:s,getDuration:c,reset:a});return u},nn=function(e){return e.substring(0,e.lastIndexOf("."))||e},rn=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||Et(e)?t[0]=e.name||Ct():Et(e)?(t[1]=e.length,t[2]=xt(e)):J(e)&&(t[0]=wt(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},on=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},an=function e(t){if(!he(t))return t;var n=$(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n[r]=i&&he(i)?e(i):i}return n},sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Ae(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Ve.PROCESSING_COMPLETE:Ve.INIT,activeLoader:null,activeProcessor:null},a=null,s={},c=function(e){return i.status=e},u=function(e){if(!i.released&&!i.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];T.fire.apply(T,[e].concat(n))}},l=function(){return Tt(i.file.name)},d=function(){return i.file.type},h=function(){return i.file.size},f=function(){return i.file},p=function(t,n,r){i.source=t,T.fireSync("init"),i.file?T.fireSync("load-skip"):(i.file=rn(t),n.on("init",(function(){u("load-init")})),n.on("meta",(function(t){i.file.size=t.size,i.file.filename=t.filename,t.source&&(e=Ge.LIMBO,i.serverFileReference=t.source,i.status=Ve.PROCESSING_COMPLETE),u("load-meta")})),n.on("progress",(function(e){c(Ve.LOADING),u("load-progress",e)})),n.on("error",(function(e){c(Ve.LOAD_ERROR),u("load-request-error",e)})),n.on("abort",(function(){c(Ve.INIT),u("load-abort")})),n.on("load",(function(t){i.activeLoader=null;var n=function(t){i.file=on(t)?t:i.file,e===Ge.LIMBO&&i.serverFileReference?c(Ve.PROCESSING_COMPLETE):c(Ve.IDLE),u("load")},o=function(e){i.file=t,u("load-meta"),c(Ve.LOAD_ERROR),u("load-file-error",e)};i.serverFileReference?n(t):r(t,n,o)})),n.setSource(t),i.activeLoader=n,n.load())},m=function(){i.activeLoader&&i.activeLoader.load()},g=function(){i.activeLoader?i.activeLoader.abort():(c(Ve.INIT),u("load-abort"))},v=function e(t,n){if(i.processingAborted)i.processingAborted=!1;else if(c(Ve.PROCESSING),a=null,i.file instanceof Blob){t.on("load",(function(e){i.transferId=null,i.serverFileReference=e})),t.on("transfer",(function(e){i.transferId=e})),t.on("load-perceived",(function(e){i.activeProcessor=null,i.transferId=null,i.serverFileReference=e,c(Ve.PROCESSING_COMPLETE),u("process-complete",e)})),t.on("start",(function(){u("process-start")})),t.on("error",(function(e){i.activeProcessor=null,c(Ve.PROCESSING_ERROR),u("process-error",e)})),t.on("abort",(function(e){i.activeProcessor=null,i.serverFileReference=e,c(Ve.IDLE),u("process-abort"),a&&a()})),t.on("progress",(function(e){u("process-progress",e)}));var r=function(e){i.archived||t.process(e,Object.assign({},s))},o=console.error;n(i.file,r,o),i.activeProcessor=t}else T.on("load",(function(){e(t,n)}))},y=function(){i.processingAborted=!1,c(Ve.PROCESSING_QUEUED)},b=function(){return new Promise((function(e){if(!i.activeProcessor)return i.processingAborted=!0,c(Ve.IDLE),u("process-abort"),void e();a=function(){e()},i.activeProcessor.abort()}))},_=function(e,t){return new Promise((function(n,r){var o=null!==i.serverFileReference?i.serverFileReference:i.transferId;null!==o?(e(o,(function(){i.serverFileReference=null,i.transferId=null,n()}),(function(e){t?(c(Ve.PROCESSING_REVERT_ERROR),u("process-revert-error"),r(e)):n()})),c(Ve.IDLE),u("process-revert")):n()}))},E=function(e,t,n){var r=e.split("."),i=r[0],o=r.pop(),a=s;r.forEach((function(e){return a=a[e]})),JSON.stringify(a[o])!==JSON.stringify(t)&&(a[o]=t,u("metadata-update",{key:i,value:s[i],silent:n}))},w=function(e){return an(e?s[e]:s)},T=Object.assign({id:{get:function(){return r}},origin:{get:function(){return e},set:function(t){return e=t}},serverId:{get:function(){return i.serverFileReference}},transferId:{get:function(){return i.transferId}},status:{get:function(){return i.status}},filename:{get:function(){return i.file.name}},filenameWithoutExtension:{get:function(){return nn(i.file.name)}},fileExtension:{get:l},fileType:{get:d},fileSize:{get:h},file:{get:f},relativePath:{get:function(){return i.file._relativePath}},source:{get:function(){return i.source}},getMetadata:w,setMetadata:function(e,t,n){if(he(e)){var r=e;return Object.keys(r).forEach((function(e){E(e,r[e],t)})),e}return E(e,t,n),t},extend:function(e,t){return I[e]=t},abortLoad:g,retryLoad:m,requestProcessing:y,abortProcessing:b,load:p,process:v,revert:_},Fe(),{freeze:function(){return i.frozen=!0},release:function(){return i.released=!0},released:{get:function(){return i.released}},archive:function(){return i.archived=!0},archived:{get:function(){return i.archived}}}),I=o(T);return I},cn=function(e,t){return Y(t)?0:J(t)?e.findIndex((function(e){return e.id===t})):-1},un=function(e,t){var n=cn(e,t);if(!(n<0))return e[n]||null},ln=function(e,t,n,r,i,o){var a=jt(null,e,{method:"GET",responseType:"blob"});return a.onload=function(n){var r=n.getAllResponseHeaders(),i=qt(r).name||wt(e);t(Vt("load",n.status,At(n.response,i),r))},a.onerror=function(e){n(Vt("error",e.status,e.statusText,e.getAllResponseHeaders()))},a.onheaders=function(e){o(Vt("headers",e.status,null,e.getAllResponseHeaders()))},a.ontimeout=Gt(n),a.onprogress=r,a.onabort=i,a},dn=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},hn=function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&dn(location.href)!==dn(e)},fn=function(e){return function(){return oe(e)?e.apply(void 0,arguments):e}},pn=function(e){return!on(e.file)},mn=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:ot(t.items)})}),0)},gn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise((function(t){if(!e)return t(!0);var r=e.apply(void 0,n);return null==r?t(!0):"boolean"===typeof r?t(r):void("function"===typeof r.then&&r.then(t))}))},vn=function(e,t){e.items.sort((function(e,n){return t(He(e),He(n))}))},yn=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,i=n.success,o=void 0===i?function(){}:i,a=n.failure,s=void 0===a?function(){}:a,c=xe(n,["query","success","failure"]),u=rt(e.items,r);u?t(u,o,s,c||{}):s({error:Vt("error",0,"Item not found"),file:null})}},bn=function(e,t,n){return{ABORT_ALL:function(){ot(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var r=t.value,i=void 0===r?[]:r,o=i.map((function(e){return{source:e.source?e.source:e,options:e.options}})),a=ot(n.items);a.forEach((function(t){o.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),a=ot(n.items),o.forEach((function(t,n){a.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:Ce.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(r){var i=r.id,o=r.action,a=r.change;a.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var r=un(n.items,i);if(t("IS_ASYNC")){r.origin===Ge.LOCAL&&e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.source});var s=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:i})}),32)},c=function(e){r.revert(Zt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?s:function(){}).catch((function(){}))},u=function(e){r.abortProcessing().then(e?s:function(){})};return r.status===Ve.PROCESSING_COMPLETE?c(n.options.instantUpload):r.status===Ve.PROCESSING?u(n.options.instantUpload):void(n.options.instantUpload&&s())}Xe("SHOULD_PREPARE_OUTPUT",!1,{item:r,query:t,action:o,change:a}).then((function(n){var o=t("GET_BEFORE_PREPARE_FILE");o&&(n=o(r,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:i,item:r,success:function(t){e("DID_PREPARE_OUTPUT",{id:i,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,r=e.index,i=rt(n.items,t);if(i){var o=n.items.indexOf(i);r=yt(r,0,n.items.length-1),o!==r&&n.items.splice(r,0,n.items.splice(o,1)[0])}},SORT:function(r){var i=r.compare;vn(n,i),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,i=n.index,o=n.interactionMethod,a=n.success,s=void 0===a?function(){}:a,c=n.failure,u=void 0===c?function(){}:c,l=i;if(-1===i||"undefined"===typeof i){var d=t("GET_ITEM_INSERT_LOCATION"),h=t("GET_TOTAL_ITEMS");l="before"===d?0:h}var f=t("GET_IGNORED_FILES"),p=function(e){return on(e)?!f.includes(e.name.toLowerCase()):!Y(e)},m=r.filter(p),g=m.map((function(t){return new Promise((function(n,r){e("ADD_ITEM",{interactionMethod:o,source:t.source||t,success:n,failure:r,index:l++,options:t.options||{}})}))}));Promise.all(g).then(s).catch(u)},ADD_ITEM:function(r){var i=r.source,o=r.index,a=void 0===o?-1:o,s=r.interactionMethod,c=r.success,u=void 0===c?function(){}:c,l=r.failure,d=void 0===l?function(){}:l,h=r.options,f=void 0===h?{}:h;if(Y(i))d({error:Vt("error",0,"No source"),file:null});else if(!on(i)||!n.options.ignoredFiles.includes(i.name.toLowerCase())){if(!vt(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var p=Vt("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:i,error:p}),void d({error:p,file:null})}var m=ot(n.items)[0];if(m.status===Ve.PROCESSING_COMPLETE||m.status===Ve.PROCESSING_REVERT_ERROR){var g=t("GET_FORCE_REVERT");if(m.revert(Zt(n.options.server.url,n.options.server.revert),g).then((function(){g&&e("ADD_ITEM",{source:i,index:a,interactionMethod:s,success:u,failure:d,options:f})})).catch((function(){})),g)return}e("REMOVE_ITEM",{query:m.id})}var v="local"===f.type?Ge.LOCAL:"limbo"===f.type?Ge.LIMBO:Ge.INPUT,y=sn(v,v===Ge.INPUT?null:i,f.file);Object.keys(f.metadata||{}).forEach((function(e){y.setMetadata(e,f.metadata[e])})),Qe("DID_CREATE_ITEM",y,{query:t,dispatch:e});var b=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===b?-1:n.items.length),_t(n.items,y,a),oe(b)&&i&&vn(n,b);var _=y.id;y.on("init",(function(){e("DID_INIT_ITEM",{id:_})})),y.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:_})})),y.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:_})})),y.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:_,progress:t})})),y.on("load-request-error",(function(t){var r=fn(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:_,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),void d({error:t,file:He(y)});e("DID_THROW_ITEM_LOAD_ERROR",{id:_,error:t,status:{main:r,sub:n.options.labelTapToRetry}})})),y.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:_,error:t.status,status:t.status}),d({error:t.status,file:He(y)})})),y.on("load-abort",(function(){e("REMOVE_ITEM",{query:_})})),y.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:_,item:y,data:{source:i,success:u}})})),y.on("load",(function(){var r=function(r){r?(y.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:_,change:t})})),Xe("SHOULD_PREPARE_OUTPUT",!1,{item:y,query:t}).then((function(r){var o=t("GET_BEFORE_PREPARE_FILE");o&&(r=o(y,r));var a=function(){e("COMPLETE_LOAD_ITEM",{query:_,item:y,data:{source:i,success:u}}),mn(e,n)};r?e("REQUEST_PREPARE_OUTPUT",{query:_,item:y,success:function(t){e("DID_PREPARE_OUTPUT",{id:_,file:t}),a()}},!0):a()}))):e("REMOVE_ITEM",{query:_})};Xe("DID_LOAD_ITEM",y,{query:t,dispatch:e}).then((function(){gn(t("GET_BEFORE_ADD_FILE"),He(y)).then(r)})).catch((function(t){if(!t||!t.error||!t.status)return r(!1);e("DID_THROW_ITEM_INVALID",{id:_,error:t.error,status:t.status})}))})),y.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:_})})),y.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:_,progress:t})})),y.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:_,error:t,status:{main:fn(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),y.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:_,error:t,status:{main:fn(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),y.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:_,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:_,value:t})})),y.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:_})})),y.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:_}),e("DID_DEFINE_VALUE",{id:_,value:null})})),e("DID_ADD_ITEM",{id:_,index:a,interactionMethod:s}),mn(e,n);var E=n.options.server||{},w=E.url,T=E.load,I=E.restore,S=E.fetch;y.load(i,Bt(v===Ge.INPUT?J(i)&&hn(i)&&S?Yt(w,S):ln:v===Ge.LIMBO?Yt(w,I):Yt(w,T)),(function(e,n,r){Xe("LOAD_FILE",e,{query:t}).then(n).catch(r)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,i=e.failure,o=void 0===i?function(){}:i,a={error:Vt("error",0,"Item not found"),file:null};if(n.archived)return o(a);Xe("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){Xe("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return o(a);r(e)}))}))},COMPLETE_LOAD_ITEM:function(r){var i=r.item,o=r.data,a=o.success,s=o.source,c=t("GET_ITEM_INSERT_LOCATION");if(oe(c)&&s&&vn(n,c),e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.origin===Ge.INPUT?null:s}),a(He(i)),i.origin!==Ge.LOCAL)return i.origin===Ge.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:i.id,error:null,serverFileReference:s}),void e("DID_DEFINE_VALUE",{id:i.id,value:i.serverId||s})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:i.id}));e("DID_LOAD_LOCAL_ITEM",{id:i.id})},RETRY_ITEM_LOAD:yn(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:yn(n,(function(t,n,r){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(r){e("DID_PREPARE_OUTPUT",{id:t.id,file:r}),n({file:t,output:r})},failure:r},!0)})),REQUEST_ITEM_PROCESSING:yn(n,(function(r,i,o){var a=r.status===Ve.IDLE||r.status===Ve.PROCESSING_ERROR;if(a)r.status!==Ve.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:o},!0));else{var s=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:o})},c=function(){return document.hidden?s():setTimeout(s,32)};r.status===Ve.PROCESSING_COMPLETE||r.status===Ve.PROCESSING_REVERT_ERROR?r.revert(Zt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(c).catch((function(){})):r.status===Ve.PROCESSING&&r.abortProcessing().then(c)}})),PROCESS_ITEM:yn(n,(function(r,i,o){var a=t("GET_MAX_PARALLEL_UPLOADS"),s=t("GET_ITEMS_BY_STATUS",Ve.PROCESSING).length;if(s!==a){if(r.status!==Ve.PROCESSING){var c=function t(){var r=n.processingQueue.shift();if(r){var i=r.id,o=r.success,a=r.failure,s=rt(n.items,i);s&&!s.archived?e("PROCESS_ITEM",{query:i,success:o,failure:a},!0):t()}};r.onOnce("process-complete",(function(){i(He(r)),c();var o=n.options.server,a=n.options.instantUpload;if(a&&r.origin===Ge.LOCAL&&oe(o.remove)){var s=function(){};r.origin=Ge.LIMBO,n.options.server.remove(r.source,s,s)}var u=t("GET_ITEMS_BY_STATUS",Ve.PROCESSING_COMPLETE).length===n.items.length;u&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),r.onOnce("process-error",(function(e){o({error:e,file:He(r)}),c()}));var u=n.options;r.process(tn(Qt(u.server.url,u.server.process,u.name,{chunkTransferId:r.transferId,chunkServer:u.server.patch,chunkUploads:u.chunkUploads,chunkForce:u.chunkForce,chunkSize:u.chunkSize,chunkRetryDelays:u.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,i,o){Xe("PREPARE_OUTPUT",n,{query:t,item:r}).then((function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),i(t)})).catch(o)}))}}else n.processingQueue.push({id:r.id,success:i,failure:o})})),RETRY_ITEM_PROCESSING:yn(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:yn(n,(function(n){gn(t("GET_BEFORE_REMOVE_FILE"),He(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:yn(n,(function(e){e.release()})),REMOVE_ITEM:yn(n,(function(r,i,o,a){var s=function(){var t=r.id;un(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),mn(e,n),i(He(r))},c=n.options.server;r.origin===Ge.LOCAL&&c&&oe(c.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),c.remove(r.source,(function(){return s()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:Vt("error",0,t,null),status:{main:fn(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((a.revert&&r.origin!==Ge.LOCAL&&null!==r.serverId||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Zt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),s())})),ABORT_ITEM_LOAD:yn(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:yn(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){var r=n.options.instantUpload;r&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:yn(n,(function(r){if(n.options.instantUpload){var i=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},o=t("GET_BEFORE_REMOVE_FILE");if(!o)return i(!0);var a=o(He(r));return null==a?i(!0):"boolean"===typeof a?i(a):void("function"===typeof a.then&&a.then(i))}e("REVERT_ITEM_PROCESSING",{query:r})})),REVERT_ITEM_PROCESSING:yn(n,(function(r){r.revert(Zt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){var t=n.options.instantUpload||pn(r);t&&e("REMOVE_ITEM",{query:r.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,r=Object.keys(n),i=_n.filter((function(e){return r.includes(e)})),o=[].concat(Me(i),Me(Object.keys(n).filter((function(e){return!i.includes(e)}))));o.forEach((function(t){e("SET_"+we(t,"_").toUpperCase(),{value:n[t]})}))}}},_n=["server"],En=function(e){return e},wn=function(e){return document.createElement(e)},Tn=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},In=function(e,t,n,r){var i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},Sn=function(e,t,n,r,i,o){var a=In(e,t,n,i),s=In(e,t,n,r);return["M",a.x,a.y,"A",n,n,0,o,0,s.x,s.y].join(" ")},Cn=function(e,t,n,r,i){var o=1;return i>r&&i-r<=.5&&(o=0),r>i&&r-i>=.5&&(o=0),Sn(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,i),o)},An=function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=l("svg");t.ref.path=l("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},On=function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(a(t.ref.path,"stroke-width"),10),i=.5*t.rect.element.width,o=0,s=0;n.spin?(o=0,s=.5):(o=0,s=n.progress);var c=Cn(i,i,i-r,o,s);a(t.ref.path,"d",c),a(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},Rn=H({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:An,write:On,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),kn=function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+"<span>"+n.label+"</span>",n.isDisabled=!1},xn=function(e){var t=e.root,n=e.props,r=n.isDisabled,i=t.query("GET_DISABLED")||0===n.opacity;i&&!r?(n.isDisabled=!0,a(t.element,"disabled","disabled")):!i&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))},Mn=H({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:kn,write:xn}),Nn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.labelBytes,o=void 0===i?"bytes":i,a=r.labelKilobytes,s=void 0===a?"KB":a,c=r.labelMegabytes,u=void 0===c?"MB":c,l=r.labelGigabytes,d=void 0===l?"GB":l;e=Math.round(Math.abs(e));var h=n,f=n*n,p=n*n*n;return e<h?e+" "+o:e<f?Math.floor(e/h)+" "+s:e<p?Pn(e/f,1,t)+" "+u:Pn(e/p,2,t)+" "+d},Pn=function(e,t,n){return e.toFixed(t).split(".").filter((function(e){return"0"!==e})).join(n)},Dn=function(e){var t=e.root,n=e.props,r=wn("span");r.className="filepond--file-info-main",a(r,"aria-hidden","true"),t.appendChild(r),t.ref.fileName=r;var i=wn("span");i.className="filepond--file-info-sub",t.appendChild(i),t.ref.fileSize=i,Tn(i,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),Tn(r,En(t.query("GET_ITEM_NAME",n.id)))},Ln=function(e){var t=e.root,n=e.props;Tn(t.ref.fileSize,Nn(t.query("GET_ITEM_SIZE",n.id),".",t.query("GET_FILE_SIZE_BASE"),t.query("GET_FILE_SIZE_LABELS",t.query))),Tn(t.ref.fileName,En(t.query("GET_ITEM_NAME",n.id)))},Un=function(e){var t=e.root,n=e.props;re(t.query("GET_ITEM_SIZE",n.id))?Ln({root:t,props:n}):Tn(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Fn=H({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:V({DID_LOAD_ITEM:Ln,DID_UPDATE_ITEM_META:Ln,DID_THROW_ITEM_LOAD_ERROR:Un,DID_THROW_ITEM_INVALID:Un}),didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:Dn,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),qn=function(e){return Math.round(100*e)},Bn=function(e){var t=e.root,n=wn("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var r=wn("span");r.className="filepond--file-status-sub",t.appendChild(r),t.ref.sub=r,Hn({root:t,action:{progress:null}})},Hn=function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_LOADING"):t.query("GET_LABEL_FILE_LOADING")+" "+qn(n.progress)+"%";Tn(t.ref.main,r),Tn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},jn=function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_PROCESSING"):t.query("GET_LABEL_FILE_PROCESSING")+" "+qn(n.progress)+"%";Tn(t.ref.main,r),Tn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Vn=function(e){var t=e.root;Tn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),Tn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Gn=function(e){var t=e.root;Tn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),Tn(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},zn=function(e){var t=e.root;Tn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),Tn(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},$n=function(e){var t=e.root;Tn(t.ref.main,""),Tn(t.ref.sub,"")},Yn=function(e){var t=e.root,n=e.action;Tn(t.ref.main,n.status.main),Tn(t.ref.sub,n.status.sub)},Kn=H({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:V({DID_LOAD_ITEM:$n,DID_REVERT_ITEM_PROCESSING:$n,DID_REQUEST_ITEM_PROCESSING:Vn,DID_ABORT_ITEM_PROCESSING:Gn,DID_COMPLETE_ITEM_PROCESSING:zn,DID_UPDATE_ITEM_PROCESS_PROGRESS:jn,DID_UPDATE_ITEM_LOAD_PROGRESS:Hn,DID_THROW_ITEM_LOAD_ERROR:Yn,DID_THROW_ITEM_INVALID:Yn,DID_THROW_ITEM_PROCESSING_ERROR:Yn,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Yn,DID_THROW_ITEM_REMOVE_ERROR:Yn}),didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:Bn,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),Wn={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Xn=[];i(Wn,(function(e){Xn.push(e)}));var Qn=function(e){if("right"===rr(e))return 0;var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},Zn=function(e){var t=e.ref.buttonAbortItemLoad.rect.element;return t.width},Jn=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},er=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},tr=function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")},nr=function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")},rr=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},ir={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:tr},processProgressIndicator:{opacity:0,align:nr},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},or={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Qn},status:{translateX:Qn}},ar={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},sr={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Qn},status:{translateX:Qn,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Qn},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:rr},info:{translateX:Qn},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:rr},buttonRemoveItem:{opacity:1},info:{translateX:Qn},status:{opacity:1,translateX:Qn}},DID_LOAD_ITEM:or,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Qn},status:{translateX:Qn}},DID_START_ITEM_PROCESSING:ar,DID_REQUEST_ITEM_PROCESSING:ar,DID_UPDATE_ITEM_PROCESS_PROGRESS:ar,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Qn}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Qn},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:or},cr=H({create:function(e){var t=e.root;t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),ur=function(e){var t,n=e.root,r=e.props,o=Object.keys(Wn).reduce((function(e,t){return e[t]=Object.assign({},Wn[t]),e}),{}),a=r.id,s=n.query("GET_ALLOW_REVERT"),c=n.query("GET_ALLOW_REMOVE"),u=n.query("GET_ALLOW_PROCESS"),l=n.query("GET_INSTANT_UPLOAD"),d=n.query("IS_ASYNC"),h=n.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");d?u&&!s?t=function(e){return!/RevertItemProcessing/.test(e)}:!u&&s?t=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:u||s||(t=function(e){return!/Process/.test(e)}):t=function(e){return!/Process/.test(e)};var f=t?Xn.filter(t):Xn.concat();if(l&&s&&(o["RevertItemProcessing"].label="GET_LABEL_BUTTON_REMOVE_ITEM",o["RevertItemProcessing"].icon="GET_ICON_REMOVE"),d&&!s){var p=sr["DID_COMPLETE_ITEM_PROCESSING"];p.info.translateX=er,p.info.translateY=Jn,p.status.translateY=Jn,p.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(d&&!u&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach((function(e){sr[e].status.translateY=Jn})),sr["DID_THROW_ITEM_PROCESSING_ERROR"].status.translateX=Zn),h&&s){o["RevertItemProcessing"].align="BUTTON_REMOVE_ITEM_POSITION";var m=sr["DID_COMPLETE_ITEM_PROCESSING"];m.info.translateX=Qn,m.status.translateY=Jn,m.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}c||(o["RemoveItem"].disabled=!0),i(o,(function(e,t){var r=n.createChildView(Mn,{label:n.query(t.label),icon:n.query(t.icon),opacity:0});f.includes(e)&&n.appendChildView(r),t.disabled&&(r.element.setAttribute("disabled","disabled"),r.element.setAttribute("hidden","hidden")),r.element.dataset.align=n.query("GET_STYLE_"+t.align),r.element.classList.add(t.className),r.on("click",(function(e){e.stopPropagation(),t.disabled||n.dispatch(t.action,{query:a})})),n.ref["button"+e]=r})),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(cr)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView(Fn,{id:a})),n.ref.status=n.appendChildView(n.createChildView(Kn,{id:a}));var g=n.appendChildView(n.createChildView(Rn,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));g.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=g;var v=n.appendChildView(n.createChildView(Rn,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));v.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=v,n.ref.activeStyles=[]},lr=function(e){var t=e.root,n=e.actions,r=e.props;dr({root:t,actions:n,props:r});var o=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return sr[e.type]}));if(o){t.ref.activeStyles=[];var a=sr[o.type];i(ir,(function(e,n){var r=t.ref[e];i(n,(function(n,i){var o=a[e]&&"undefined"!==typeof a[e][n]?a[e][n]:i;t.ref.activeStyles.push({control:r,key:n,value:o})}))}))}t.ref.activeStyles.forEach((function(e){var n=e.control,r=e.key,i=e.value;n[r]="function"===typeof i?i(t):i}))},dr=V({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemProcessing.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemLoad.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemRemoval.label=n.value},DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(e){var t=e.root;t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=n.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=n.progress}}),hr=H({create:ur,write:lr,didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),fr=function(e){var t=e.root,n=e.props;t.ref.fileName=wn("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(hr,{id:n.id})),t.ref.data=!1},pr=function(e){var t=e.root,n=e.props;Tn(t.ref.fileName,En(t.query("GET_ITEM_NAME",n.id)))},mr=H({create:fr,ignoreRect:!0,write:V({DID_LOAD_ITEM:pr}),didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),gr={type:"spring",damping:.6,mass:7},vr=function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:gr},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:gr},styles:["translateY"]}}].forEach((function(e){yr(t,e,n.name)})),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},yr=function(e,t,n){var r=H({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),i=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(i)},br=function(e){var t=e.root,n=e.props;if(null!==t.ref.scalable&&n.scalable===t.ref.scalable||(t.ref.scalable=!Q(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var r=t.ref.top.rect.element,i=t.ref.bottom.rect.element,o=Math.max(r.height+i.height,n.height);t.ref.center.translateY=r.height,t.ref.center.scaleY=(o-r.height-i.height)/100,t.ref.bottom.translateY=o-i.height}},_r=H({name:"panel",read:function(e){var t=e.root,n=e.props;return n.heightCurrent=t.ref.bottom.translateY},write:br,create:vr,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),Er=function(e){var t=e.map((function(e){return e.id})),n=void 0;return{setIndex:function(e){n=e},getIndex:function(){return n},getItemIndex:function(e){return t.indexOf(e.id)}}},wr={type:"spring",stiffness:.75,damping:.45,mass:10},Tr="spring",Ir={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},Sr=function(e){var t=e.root,n=e.props;if(t.ref.handleClick=function(e){return t.dispatch("DID_ACTIVATE_ITEM",{id:n.id})},t.element.id="filepond--item-"+n.id,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(mr,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(_r,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")){t.element.dataset.dragState="idle";var r=function(e){if(e.isPrimary){var r=!1,i={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var o=Er(t.query("GET_ACTIVE_ITEMS"));t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:o});var a=function(e){if(e.isPrimary){e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-i.x,y:e.pageY-i.y};var a=n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y;a>16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:o})}},s=function e(s){s.isPrimary&&(document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",e),n.dragOffset={x:s.pageX-i.x,y:s.pageY-i.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:o}),r&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))};document.addEventListener("pointermove",a),document.addEventListener("pointerup",s)}};t.element.addEventListener("pointerdown",r)}},Cr=V({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),Ar=V({DID_GRAB_ITEM:function(e){var t=e.root,n=e.props;n.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){var t=e.root;t.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},(function(e){var t=e.root,n=e.actions,r=e.props,i=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var o=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return Ir[e.type]}));o&&o.type!==r.currentState&&(r.currentState=o.type,t.element.dataset.filepondItemState=Ir[r.currentState]||"");var a=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");a?i||(t.height=t.rect.element.width*a):(Cr({root:t,actions:n,props:r}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),i&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),Or=H({create:Sr,write:Ar,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:Tr,scaleY:Tr,translateX:wr,translateY:wr,opacity:{type:"tween",duration:150}}}}),Rr=function(e,t){return Math.max(1,Math.floor((e+1)/t))},kr=function(e,t,n){if(n){var r=e.rect.element.width,i=t.length,o=null;if(0===i||n.top<t[0].rect.element.top)return-1;var a=t[0],s=a.rect.element,c=s.marginLeft+s.marginRight,u=s.width+c,l=Rr(r,u);if(1===l){for(var d=0;d<i;d++){var h=t[d],f=h.rect.outer.top+.5*h.rect.element.height;if(n.top<f)return d}return i}for(var p=s.marginTop+s.marginBottom,m=s.height+p,g=0;g<i;g++){var v=g%l,y=Math.floor(g/l),b=v*u,_=y*m,E=_-s.marginTop,w=b+u,T=_+m+s.marginBottom;if(n.top<T&&n.top>E){if(n.left<w)return g;o=g!==i-1?g:null}}return null!==o?o:i}},xr={height:0,width:0,get getHeight(){return this.height},set setHeight(e){0!==this.height&&0!==e||(this.height=e)},get getWidth(){return this.width},set setWidth(e){0!==this.width&&0!==e||(this.width=e)},setDimensions:function(e,t){0!==this.height&&0!==e||(this.height=e),0!==this.width&&0!==t||(this.width=t)}},Mr=function(e){var t=e.root;a(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},Nr=function(e){var t=e.root,n=e.action,r=n.id,i=n.index,o=n.interactionMethod;t.ref.addIndex=i;var a=Date.now(),s=a,c=1;if(o!==Ce.NONE){c=0;var u=t.query("GET_ITEM_INSERT_INTERVAL"),l=a-t.ref.lastItemSpanwDate;s=l<u?a+(u-l):a}t.ref.lastItemSpanwDate=s,t.appendChildView(t.createChildView(Or,{spawnDate:s,id:r,opacity:c,interactionMethod:o}),i)},Pr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&Dr(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},Dr=function(e,t,n,r,i){e.interactionMethod===Ce.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Ce.DROP?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*i,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Ce.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Ce.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Lr=function(e){var t=e.root,n=e.action,r=n.id,i=t.childViews.find((function(e){return e.id===r}));i&&(i.scaleX=.9,i.scaleY=.9,i.opacity=0,i.markedForRemoval=!0)},Ur=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},Fr=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},qr=function(e){var t=e.root,n=e.action,r=n.id,i=n.dragState,o=t.query("GET_ITEM",{id:r}),a=t.childViews.find((function(e){return e.id===r})),s=t.childViews.length,c=i.getItemIndex(o);if(a){var u={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},l=Ur(a),d=Fr(a),h=Math.floor(t.rect.outer.width/d);h>s&&(h=s);var f=Math.floor(s/h+1);xr.setHeight=l*f,xr.setWidth=d*h;var p={y:Math.floor(u.y/l),x:Math.floor(u.x/d),getGridIndex:function(){return u.y>xr.getHeight||u.y<0||u.x>xr.getWidth||u.x<0?c:this.y*h+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),n=t.childViews.filter((function(e){return e.rect.element.height})),r=e.map((function(e){return n.find((function(t){return t.id===e.id}))})),i=r.findIndex((function(e){return e===a})),o=Ur(a),s=r.length,c=s,l=0,d=0,h=0,f=0;f<s;f++)if(l=Ur(r[f]),h=d,d=h+l,u.y<d){if(i>f){if(u.y<h+o){c=f;break}continue}c=f;break}return c}},m=h>1?p.getGridIndex():p.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:m});var g=i.getIndex();if(void 0===g||g!==m){if(i.setIndex(m),void 0===g)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:c,target:m})}}},Br=V({DID_ADD_ITEM:Nr,DID_REMOVE_ITEM:Lr,DID_DRAG_ITEM:qr}),Hr=function(e){var t=e.root,n=e.props,r=e.actions,i=e.shouldOptimize;Br({root:t,props:n,actions:r});var o=n.dragCoordinates,a=t.rect.element.width,s=t.childViews.filter((function(e){return e.rect.element.height})),c=t.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),u=o?kr(t,c,o):null,l=t.ref.addIndex||null;t.ref.addIndex=null;var d=0,h=0,f=0;if(0!==c.length){var p=c[0].rect.element,m=p.marginTop+p.marginBottom,g=p.marginLeft+p.marginRight,v=p.width+g,y=p.height+m,b=Rr(a,v);if(1===b){var _=0,E=0;c.forEach((function(e,t){if(u){var n=t-u;E=-2===n?.25*-m:-1===n?.75*-m:0===n?.75*m:1===n?.25*m:0}i&&(e.translateX=null,e.translateY=null),e.markedForRemoval||Pr(e,0,_+E);var r=e.rect.element.height+m,o=r*(e.markedForRemoval?e.opacity:1);_+=o}))}else{var w=0,T=0;c.forEach((function(e,t){t===u&&(d=1),t===l&&(f+=1),e.markedForRemoval&&e.opacity<.5&&(h-=1);var n=t+f+d+h,r=n%b,o=Math.floor(n/b),a=r*v,s=o*y,c=Math.sign(a-w),p=Math.sign(s-T);w=a,T=s,e.markedForRemoval||(i&&(e.translateX=null,e.translateY=null),Pr(e,a,s,c,p))}))}}},jr=function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},Vr=H({create:Mr,write:Hr,tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:jr,mixins:{apis:["dragCoordinates"]}}),Gr=function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Vr)),n.dragCoordinates=null,n.overflowing=!1},zr=function(e){var t=e.root,n=e.props,r=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:r.position.scopeLeft-t.ref.list.rect.element.left,top:r.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},$r=function(e){var t=e.props;t.dragCoordinates=null},Yr=V({DID_DRAG:zr,DID_END_DRAG:$r}),Kr=function(e){var t=e.root,n=e.props,r=e.actions;if(Yr({root:t,props:n,actions:r}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var i=Math.round(n.overflow);i!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=i)}},Wr=H({create:Gr,write:Kr,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Xr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";n?a(e,t,r):e.removeAttribute(t)},Qr=function(e){if(e&&""!==e.value){try{e.value=""}catch(i){}if(e.value){var t=wn("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},Zr=function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,a(t.element,"name",t.query("GET_NAME")),a(t.element,"aria-controls","filepond--assistant-"+n.id),a(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Jr({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),ei({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),ti({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ni({root:t}),ri({root:t,action:{value:t.query("GET_REQUIRED")}}),ii({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var r=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){n.onload(r),Qr(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},Jr=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Xr(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},ei=function(e){var t=e.root,n=e.action;Xr(t.element,"multiple",n.value)},ti=function(e){var t=e.root,n=e.action;Xr(t.element,"webkitdirectory",n.value)},ni=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),i=n||!r;Xr(t.element,"disabled",i)},ri=function(e){var t=e.root,n=e.action;n.value?0===t.query("GET_TOTAL_ITEMS")&&Xr(t.element,"required",!0):Xr(t.element,"required",!1)},ii=function(e){var t=e.root,n=e.action;Xr(t.element,"capture",!!n.value,!0===n.value?"":n.value)},oi=function(e){var t=e.root,n=t.element;if(t.query("GET_TOTAL_ITEMS")>0)Xr(n,"required",!1),Xr(n,"name",!1);else{Xr(n,"name",!0,t.query("GET_NAME"));var r=t.query("GET_CHECK_VALIDITY");r&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&Xr(n,"required",!0)}},ai=function(e){var t=e.root,n=t.query("GET_CHECK_VALIDITY");n&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},si=H({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Zr,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:V({DID_LOAD_ITEM:oi,DID_REMOVE_ITEM:oi,DID_THROW_ITEM_INVALID:ai,DID_SET_DISABLED:ni,DID_SET_ALLOW_BROWSE:ni,DID_SET_ALLOW_DIRECTORIES_ONLY:ti,DID_SET_ALLOW_MULTIPLE:ei,DID_SET_ACCEPTED_FILE_TYPES:Jr,DID_SET_CAPTURE_METHOD:ii,DID_SET_REQUIRED:ri})}),ci={ENTER:13,SPACE:32},ui=function(e){var t=e.root,n=e.props,r=wn("label");a(r,"for","filepond--browser-"+n.id),a(r,"id","filepond--drop-label-"+n.id),a(r,"aria-hidden","true"),t.ref.handleKeyDown=function(e){var n=e.keyCode===ci.ENTER||e.keyCode===ci.SPACE;n&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){var n=e.target===r||r.contains(e.target);n||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),li(r,n.caption),t.appendChild(r),t.ref.label=r},li=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&a(n,"tabindex","0"),t},di=H({name:"drop-label",ignoreRect:!0,create:ui,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:V({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;li(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),hi=H({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),fi=function(e){var t=e.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(hi,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},pi=function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):fi({root:t})},mi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)},gi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},vi=function(e){var t=e.root,n=e.props,r=e.actions;yi({root:t,props:n,actions:r});var i=t.ref.blob;0===r.length&&i&&0===i.opacity&&(t.removeChildView(i),t.ref.blob=null)},yi=V({DID_DRAG:pi,DID_DROP:gi,DID_END_DRAG:mi}),bi=H({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:vi}),_i=function(e,t){try{var n=new DataTransfer;t.forEach((function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))})),e.files=n.files}catch(r){return!1}return!0},Ei=function(e){var t=e.root;return t.ref.fields={}},wi=function(e,t){return e.ref.fields[t]},Ti=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Ii=function(e){var t=e.root;return Ti(t)},Si=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.origin===Ge.LOCAL,o=!i&&t.query("SHOULD_UPDATE_FILE_INPUT"),a=wn("input");a.type=o?"file":"hidden",a.name=t.query("GET_NAME"),a.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=a,Ti(t)},Ci=function(e){var t=e.root,n=e.action,r=wi(t,n.id);if(r&&(null!==n.serverFileReference&&(r.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var i=t.query("GET_ITEM",n.id);_i(r,[i.file])}},Ai=function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=wi(t,n.id);e&&_i(e,[n.file])}),0)},Oi=function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},Ri=function(e){var t=e.root,n=e.action,r=wi(t,n.id);r&&(r.parentNode&&r.parentNode.removeChild(r),delete t.ref.fields[n.id])},ki=function(e){var t=e.root,n=e.action,r=wi(t,n.id);r&&(null===n.value?r.removeAttribute("value"):r.value=n.value,Ti(t))},xi=V({DID_SET_DISABLED:Oi,DID_ADD_ITEM:Si,DID_LOAD_ITEM:Ci,DID_REMOVE_ITEM:Ri,DID_DEFINE_VALUE:ki,DID_PREPARE_OUTPUT:Ai,DID_REORDER_ITEMS:Ii,DID_SORT_ITEMS:Ii}),Mi=H({tag:"fieldset",name:"data",create:Ei,write:xi,ignoreRect:!0}),Ni=function(e){return"getRootNode"in e?e.getRootNode():document},Pi=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Di=["css","csv","html","txt"],Li={zip:"zip|compressed",epub:"application/epub+zip"},Ui=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Pi.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Di.includes(e)?"text/"+e:Li[e]||""},Fi=function(e){return new Promise((function(t,n){var r=Ki(e);if(r.length&&!qi(e))return t(r);Bi(e).then(t)}))},qi=function(e){return!!e.files&&e.files.length>0},Bi=function(e){return new Promise((function(t,n){var r=(e.items?Array.from(e.items):[]).filter((function(e){return Hi(e)})).map((function(e){return ji(e)}));r.length?Promise.all(r).then((function(e){var n=[];e.forEach((function(e){n.push.apply(n,e)})),t(n.filter((function(e){return e})).map((function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e})))})).catch(console.error):t(e.files?Array.from(e.files):[])}))},Hi=function(e){if($i(e)){var t=Yi(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},ji=function(e){return new Promise((function(t,n){zi(e)?Vi(Yi(e)).then(t).catch(n):t([e.getAsFile()])}))},Vi=function(e){return new Promise((function(t,n){var r=[],i=0,o=0,a=function(){0===o&&0===i&&t(r)},s=function e(t){i++;var s=t.createReader(),c=function t(){s.readEntries((function(n){if(0===n.length)return i--,void a();n.forEach((function(t){t.isDirectory?e(t):(o++,t.file((function(e){var n=Gi(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),o--,a()})))})),t()}),n)};c()};s(e)}))},Gi=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=Ui(Tt(e.name));return r.length?(e=e.slice(0,e.size,r),e.name=n,e.lastModifiedDate=t,e):e},zi=function(e){return $i(e)&&(Yi(e)||{}).isDirectory},$i=function(e){return"webkitGetAsEntry"in e},Yi=function(e){return e.webkitGetAsEntry()},Ki=function(e){var t=[];try{if(t=Xi(e),t.length)return t;t=Wi(e)}catch(n){}return t},Wi=function(e){var t=e.getData("url");return"string"===typeof t&&t.length?[t]:[]},Xi=function(e){var t=e.getData("text/html");if("string"===typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Qi=[],Zi=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Ji=function(e,t,n){var r=eo(t),i={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return i.destroy=r.addListener(i),i},eo=function(e){var t=Qi.find((function(t){return t.element===e}));if(t)return t;var n=to(e);return Qi.push(n),n},to=function(e){var t=[],n={dragenter:ao,dragover:so,dragleave:uo,drop:co},r={};i(n,(function(n,i){r[n]=i(e,t),e.addEventListener(n,r[n],!1)}));var o={element:e,addListener:function(a){return t.push(a),function(){t.splice(t.indexOf(a),1),0===t.length&&(Qi.splice(Qi.indexOf(o),1),i(n,(function(t){e.removeEventListener(t,r[t],!1)})))}}};return o},no=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},ro=function(e,t){var n=Ni(t),r=no(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},io=null,oo=function(e,t){try{e.dropEffect=t}catch(n){}},ao=function(e,t){return function(e){e.preventDefault(),io=e.target,t.forEach((function(t){var n=t.element,r=t.onenter;ro(e,n)&&(t.state="enter",r(Zi(e)))}))}},so=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Fi(n).then((function(r){var i=!1;t.some((function(t){var o=t.filterElement,a=t.element,s=t.onenter,c=t.onexit,u=t.ondrag,l=t.allowdrop;oo(n,"copy");var d=l(r);if(d)if(ro(e,a)){if(i=!0,null===t.state)return t.state="enter",void s(Zi(e));if(t.state="over",o&&!d)return void oo(n,"none");u(Zi(e))}else o&&!i&&oo(n,"none"),t.state&&(t.state=null,c(Zi(e)));else oo(n,"none")}))}))}},co=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Fi(n).then((function(n){t.forEach((function(t){var r=t.filterElement,i=t.element,o=t.ondrop,a=t.onexit,s=t.allowdrop;if(t.state=null,!r||ro(e,i))return s(n)?void o(Zi(e),n):a(Zi(e))}))}))}},uo=function(e,t){return function(e){io===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(Zi(e))}))}},lo=function(e,t,n){e.classList.add("filepond--hopper");var r=n.catchesDropsOnPage,i=n.requiresDropOnElement,o=n.filterItems,a=void 0===o?function(e){return e}:o,s=Ji(e,r?document.documentElement:e,i),c="",u="";s.allowdrop=function(e){return t(a(e))},s.ondrop=function(e,n){var r=a(n);t(r)?(u="drag-drop",l.onload(r,e)):l.ondragend(e)},s.ondrag=function(e){l.ondrag(e)},s.onenter=function(e){u="drag-over",l.ondragstart(e)},s.onexit=function(e){u="drag-exit",l.ondragend(e)};var l={updateHopperState:function(){c!==u&&(e.dataset.hopperState=u,c=u)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return l},ho=!1,fo=[],po=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){var n=!1,r=t;while(r!==document.body){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}Fi(e.clipboardData).then((function(e){e.length&&fo.forEach((function(t){return t(e)}))}))},mo=function(e){fo.includes(e)||(fo.push(e),ho||(ho=!0,document.addEventListener("paste",po)))},go=function(e){Le(fo,fo.indexOf(e)),0===fo.length&&(document.removeEventListener("paste",po),ho=!1)},vo=function(){var e=function(e){t.onload(e)},t={destroy:function(){go(e)},onload:function(){}};return mo(e),t},yo=function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,a(t.element,"role","status"),a(t.element,"aria-live","polite"),a(t.element,"aria-relevant","additions")},bo=null,_o=null,Eo=[],wo=function(e,t){e.element.textContent=t},To=function(e){e.element.textContent=""},Io=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");wo(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(_o),_o=setTimeout((function(){To(e)}),1500)},So=function(e){return e.element.parentNode.contains(document.activeElement)},Co=function(e){var t=e.root,n=e.action;if(So(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);Eo.push(r.filename),clearTimeout(bo),bo=setTimeout((function(){Io(t,Eo.join(", "),t.query("GET_LABEL_FILE_ADDED")),Eo.length=0}),750)}},Ao=function(e){var t=e.root,n=e.action;if(So(t)){var r=n.item;Io(t,r.filename,t.query("GET_LABEL_FILE_REMOVED"))}},Oo=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");wo(t,i+" "+o)},Ro=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");wo(t,i+" "+o)},ko=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename;wo(t,n.status.main+" "+i+" "+n.status.sub)},xo=H({create:yo,ignoreRect:!0,ignoreRectUpdate:!0,write:V({DID_LOAD_ITEM:Co,DID_REMOVE_ITEM:Ao,DID_COMPLETE_ITEM_PROCESSING:Oo,DID_ABORT_ITEM_PROCESSING:Ro,DID_REVERT_ITEM_PROCESSING:Ro,DID_THROW_ITEM_REMOVE_ERROR:ko,DID_THROW_ITEM_LOAD_ERROR:ko,DID_THROW_ITEM_INVALID:ko,DID_THROW_ITEM_PROCESSING_ERROR:ko}),tag:"span",name:"assistant"}),Mo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},No=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Date.now(),i=null;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];clearTimeout(i);var c=Date.now()-r,u=function(){r=Date.now(),e.apply(void 0,a)};c<t?n||(i=setTimeout(u,t-c)):u()}},Po=1e6,Do=function(e){return e.preventDefault()},Lo=function(e){var t=e.root,n=e.props,r=t.query("GET_ID");r&&(t.element.id=r);var i=t.query("GET_CLASS_NAME");i&&i.split(" ").filter((function(e){return e.length})).forEach((function(e){t.element.classList.add(e)})),t.ref.label=t.appendChildView(t.createChildView(di,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(Wr,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(_r,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(xo,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(Mi,Object.assign({},n))),t.ref.measure=wn("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter((function(e){return!Y(e.value)})).map((function(e){var n=e.name,r=e.value;t.element.dataset[n]=r})),t.ref.widthPrevious=null,t.ref.widthUpdated=No((function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")}),250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var o=window.matchMedia("(pointer: fine) and (hover: hover)").matches,a="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&a&&!o&&(t.element.addEventListener("touchmove",Do,{passive:!1}),t.element.addEventListener("gesturestart",Do));var s=t.query("GET_CREDITS"),c=2===s.length;if(c){var u=document.createElement("a");u.className="filepond--credits",u.setAttribute("aria-hidden","true"),u.href=s[0],u.tabindex=-1,u.target="_blank",u.rel="noopener noreferrer",u.textContent=s[1],t.element.appendChild(u),t.ref.credits=u}},Uo=function(e){var t=e.root,n=e.props,r=e.actions;if($o({root:t,props:n,actions:r}),r.filter((function(e){return/^DID_SET_STYLE_/.test(e.type)})).filter((function(e){return!Y(e.data.value)})).map((function(e){var n=e.type,r=e.data,i=Mo(n.substring(8).toLowerCase(),"_");t.element.dataset[i]=r.value,t.invalidateLayout()})),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var i=t.ref.bounds;i||(i=t.ref.bounds=Bo(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var o=t.ref,a=o.hopper,s=o.label,c=o.list,u=o.panel;a&&a.updateHopperState();var l=t.query("GET_PANEL_ASPECT_RATIO"),d=t.query("GET_ALLOW_MULTIPLE"),h=t.query("GET_TOTAL_ITEMS"),f=d?t.query("GET_MAX_FILES")||Po:1,p=h===f,m=r.find((function(e){return"DID_ADD_ITEM"===e.type}));if(p&&m){var g=m.data.interactionMethod;s.opacity=0,d?s.translateY=-40:g===Ce.API?s.translateX=40:g===Ce.BROWSE?s.translateY=40:s.translateY=30}else p||(s.opacity=1,s.translateX=0,s.translateY=0);var v=Fo(t),y=qo(t),b=s.rect.element.height,_=!d||p?0:b,E=p?c.rect.element.marginTop:0,w=0===h?0:c.rect.element.marginBottom,T=_+E+y.visual+w,I=_+E+y.bounds+w;if(c.translateY=Math.max(0,_-c.rect.element.marginTop)-v.top,l){var S=t.rect.element.width,C=S*l;l!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=l,t.ref.updateHistory=[]);var A=t.ref.updateHistory;A.push(S);var O=2;if(A.length>2*O)for(var R=A.length,k=R-10,x=0,M=R;M>=k;M--)if(A[M]===A[M-2]&&x++,x>=O)return;u.scalable=!1,u.height=C;var N=C-_-(w-v.bottom)-(p?E:0);y.visual>N?c.overflow=N:c.overflow=null,t.height=C}else if(i.fixedHeight){u.scalable=!1;var P=i.fixedHeight-_-(w-v.bottom)-(p?E:0);y.visual>P?c.overflow=P:c.overflow=null}else if(i.cappedHeight){var D=T>=i.cappedHeight,L=Math.min(i.cappedHeight,T);u.scalable=!0,u.height=D?L:L-v.top-v.bottom;var U=L-_-(w-v.bottom)-(p?E:0);T>i.cappedHeight&&y.visual>U?c.overflow=U:c.overflow=null,t.height=Math.min(i.cappedHeight,I-v.top-v.bottom)}else{var F=h>0?v.top+v.bottom:0;u.scalable=!0,u.height=Math.max(b,T-F),t.height=Math.max(b,I-F)}t.ref.credits&&u.heightCurrent&&(t.ref.credits.style.transform="translateY("+u.heightCurrent+"px)")}},Fo=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},qo=function(e){var t=0,n=0,r=e.ref.list,i=r.childViews[0],o=i.childViews.filter((function(e){return e.rect.element.height})),a=e.query("GET_ACTIVE_ITEMS").map((function(e){return o.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===a.length)return{visual:t,bounds:n};var s=i.rect.element.width,c=kr(i,a,r.dragCoordinates),u=a[0].rect.element,l=u.marginTop+u.marginBottom,d=u.marginLeft+u.marginRight,h=u.width+d,f=u.height+l,p="undefined"!==typeof c&&c>=0?1:0,m=a.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,g=a.length+p+m,v=Rr(s,h);return 1===v?a.forEach((function(e){var r=e.rect.element.height+l;n+=r,t+=r*e.opacity})):(n=Math.ceil(g/v)*f,t=n),{visual:t,bounds:n}},Bo=function(e){var t=e.ref.measureHeight||null,n=parseInt(e.style.maxHeight,10)||null,r=0===t?null:t;return{cappedHeight:n,fixedHeight:r}},Ho=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS"),o=e.query("GET_MAX_FILES"),a=t.length;if(!r&&a>1)return e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Vt("warning",0,"Max files")}),!0;if(o=r?o:1,!r&&n)return!1;var s=re(o);return!!(s&&i+a>o)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Vt("warning",0,"Max files")}),!0)},jo=function(e,t,n){var r=e.childViews[0];return kr(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Vo=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var i=lo(e.element,(function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0},r=e.query("GET_DROP_VALIDATION");return!r||t.every((function(t){return Qe("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&n(t)}))}),{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!on(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=function(t,n){var r=e.ref.list.childViews[0],i=r.childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return i.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));Xe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Ho(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:jo(e.ref.list,o,n),interactionMethod:Ce.DROP})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},i.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},i.ondrag=No((function(t){e.dispatch("DID_DRAG",{position:t})})),i.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(bi))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Go=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(si,Object.assign({},t,{onload:function(t){Xe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Ho(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Ce.BROWSE})}))}})),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},zo=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=vo(),e.ref.paster.onload=function(t){Xe("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Ho(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:Ce.PASTE})}))}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},$o=V({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;Go(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;Vo(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;zo(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;Vo(t),zo(t),Go(t,n);var r=t.query("GET_DISABLED");r?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),Yo=H({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Lo,write:Uo,destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Do),t.element.removeEventListener("gesturestart",Do)},mixins:{styles:["height"]}}),Ko=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,r=et(),i=n(Ee(r),[gt,Se(r)],[bn,Ie(r)]);i.dispatch("SET_OPTIONS",{options:e});var a=function(){document.hidden||i.dispatch("KICK")};document.addEventListener("visibilitychange",a);var s=null,c=!1,u=!1,l=null,d=null,h=function(){c||(c=!0),clearTimeout(s),s=setTimeout((function(){c=!1,l=null,d=null,u&&(u=!1,i.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",h);var f=Yo(i,{id:Ae()}),p=!1,m=!1,g={_read:function(){c&&(d=window.innerWidth,l||(l=d),u||d===l||(i.dispatch("DID_START_RESIZE"),u=!0)),m&&p&&(p=null===f.element.offsetParent),p||(f._read(),m=f.rect.element.hidden)},_write:function(e){var t=i.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));p&&!t.length||(_(t),p=f._write(e,t,u),je(i.query("GET_ITEMS")),p&&i.processDispatchQueue())}},v=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var r=t.item?t.item:i.query("GET_ITEM",t.id);n.file=r?He(r):null}return t.items&&(n.items=t.items.map(He)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},y={DID_DESTROY:v("destroy"),DID_INIT:v("init"),DID_THROW_MAX_FILES:v("warning"),DID_INIT_ITEM:v("initfile"),DID_START_ITEM_LOAD:v("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:v("addfileprogress"),DID_LOAD_ITEM:v("addfile"),DID_THROW_ITEM_INVALID:[v("error"),v("addfile")],DID_THROW_ITEM_LOAD_ERROR:[v("error"),v("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[v("error"),v("removefile")],DID_PREPARE_OUTPUT:v("preparefile"),DID_START_ITEM_PROCESSING:v("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:v("processfileprogress"),DID_ABORT_ITEM_PROCESSING:v("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:v("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:v("processfiles"),DID_REVERT_ITEM_PROCESSING:v("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[v("error"),v("processfile")],DID_REMOVE_ITEM:v("removefile"),DID_UPDATE_ITEMS:v("updatefiles"),DID_ACTIVATE_ITEM:v("activatefile"),DID_REORDER_ITEMS:v("reorderfiles")},b=function(e){var t=Object.assign({pond:P},e);delete t.type,f.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var r=["type","error","file"];Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(t){return n.push(e[t])})),P.fire.apply(P,[e.type].concat(n));var o=i.query("GET_ON"+e.type.toUpperCase());o&&o.apply(void 0,n)},_=function(e){e.length&&e.filter((function(e){return y[e.type]})).forEach((function(e){var t=y[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?b(t(e.data)):setTimeout((function(){b(t(e.data))}),0)}))}))},w=function(e){return i.dispatch("SET_OPTIONS",{options:e})},T=function(e){return i.query("GET_ACTIVE_ITEM",e)},I=function(e){return new Promise((function(t,n){i.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){O([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(r)}))},C=function(e){return e.file&&e.id},A=function(e,t){return"object"!==typeof e||C(e)||t||(t=e,e=void 0),i.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===i.query("GET_ACTIVE_ITEM",e)},O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){var r=[],o={};if($(t[0]))r.push.apply(r,t[0]),Object.assign(o,t[1]||{});else{var a=t[t.length-1];"object"!==typeof a||a instanceof Blob||Object.assign(o,t.pop()),r.push.apply(r,t)}i.dispatch("ADD_ITEMS",{items:r,index:o.index,interactionMethod:Ce.API,success:e,failure:n})}))},R=function(){return i.query("GET_ACTIVE_ITEMS")},k=function(e){return new Promise((function(t,n){i.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t,i=r.length?r:R();return Promise.all(i.map(I))},M=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t;if(!r.length){var i=R().filter((function(e){return!(e.status===Ve.IDLE&&e.origin===Ge.LOCAL)&&e.status!==Ve.PROCESSING&&e.status!==Ve.PROCESSING_COMPLETE&&e.status!==Ve.PROCESSING_REVERT_ERROR}));return Promise.all(i.map(k))}return Promise.all(r.map(k))},N=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Array.isArray(t[0])?t[0]:t;"object"===typeof i[i.length-1]?r=i.pop():Array.isArray(t[0])&&(r=t[1]);var o=R();if(!i.length)return Promise.all(o.map((function(e){return A(e,r)})));var a=i.map((function(e){return E(e)?o[e]?o[e].id:null:e})).filter((function(e){return e}));return a.map((function(e){return A(e,r)}))},P=Object.assign({},Fe(),{},g,{},Te(i,r),{setOptions:w,addFile:S,addFiles:O,getFile:T,processFile:k,prepareFile:I,removeFile:A,moveFile:function(e,t){return i.dispatch("MOVE_ITEM",{query:e,index:t})},getFiles:R,processFiles:M,removeFiles:N,prepareFiles:x,sort:function(e){return i.dispatch("SORT",{compare:e})},browse:function(){var e=f.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){P.fire("destroy",f.element),i.dispatch("ABORT_ALL"),f._destroy(),window.removeEventListener("resize",h),document.removeEventListener("visibilitychange",a),i.dispatch("DID_DESTROY")},insertBefore:function(e){return G(f.element,e)},insertAfter:function(e){return z(f.element,e)},appendTo:function(e){return e.appendChild(f.element)},replaceElement:function(e){G(f.element,e),e.parentNode.removeChild(e),t=e},restoreElement:function(){t&&(z(t,f.element),f.element.parentNode.removeChild(f.element),t=null)},isAttachedTo:function(e){return f.element===e||t===e},element:{get:function(){return f.element}},status:{get:function(){return i.query("GET_STATUS")}}});return i.dispatch("DID_INIT"),o(P)},Wo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};i(et(),(function(e,n){t[e]=n[0]}));var n=Ko(Object.assign({},t,{},e));return n},Xo=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},Qo=function(e){return Mo(e.replace(/^data-/,""))},Zo=function e(t,n){i(n,(function(n,r){i(t,(function(e,i){var o=new RegExp(n),a=o.test(e);if(a&&(delete t[e],!1!==r))if(J(r))t[r]=i;else{var s=r.group;he(r)&&!t[s]&&(t[s]={}),t[s][Xo(e.replace(o,""))]=i}})),r.mapping&&e(t[r.group],r.mapping)}))},Jo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];i(e.attributes,(function(t){n.push(e.attributes[t])}));var r=n.filter((function(e){return e.name})).reduce((function(t,n){var r=a(e,n.name);return t[Qo(n.name)]=r===n.name||r,t}),{});return Zo(r,t),r},ea=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Qe("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),i=Jo("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach((function(e){he(i[e])?(he(r[e])||(r[e]={}),Object.assign(r[e],i[e])):r[e]=i[e]})),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var o=Wo(r);return e.files&&Array.from(e.files).forEach((function(e){o.addFile(e)})),o.replaceElement(e),o},ta=function(){return t(arguments.length<=0?void 0:arguments[0])?ea.apply(void 0,arguments):Wo.apply(void 0,arguments)},na=["fire","_read","_write"],ra=function(e){var t={};return qe(e,t,na),t},ia=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},oa=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var i=Ae();r.onmessage=function(e){e.data.id===i&&t(e.data.message)},r.postMessage({id:i,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},aa=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},sa=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},ca=function(e){return sa(e,e.name)},ua=[],la=function(e){if(!ua.includes(e)){ua.push(e);var t=e({addFilter:Ze,utils:{Type:Ke,forin:i,isString:J,isFile:on,toNaturalFileSize:Nn,replaceInString:ia,getExtensionFromFilename:Tt,getFilenameWithoutExtension:nn,guesstimateMimeType:Ui,getFileFromBlob:At,getFilenameFromURL:wt,createRoute:V,createWorker:oa,createView:H,createItemAPI:He,loadImage:aa,copyFile:ca,renameFile:sa,createBlob:Rt,applyFilterChain:Xe,text:Tn,getNumericAspectRatioFromString:it},views:{fileActionButton:Mn}});Je(t.options)}},da=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},ha=function(){return"Promise"in window},fa=function(){return"slice"in Blob.prototype},pa=function(){return"URL"in window&&"createObjectURL"in window.URL},ma=function(){return"visibilityState"in document},ga=function(){return"performance"in window},va=function(){return"supports"in(window.CSS||{})},ya=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},ba=function(){var e=m()&&!da()&&ma()&&ha()&&fa()&&pa()&&ga()&&(va()||ya());return function(){return e}}(),_a={apps:[]},Ea="filepond",wa=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=wa,e.destroy=wa,e.parse=wa,e.find=wa,e.registerPlugin=wa,e.getOptions=wa,e.setOptions=wa,ba()){j((function(){_a.apps.forEach((function(e){return e._read()}))}),(function(e){_a.apps.forEach((function(t){return t._write(e)}))}));var Ta=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:ba,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout((function(){return Ta()}),0):document.addEventListener("DOMContentLoaded",Ta);var Ia=function(){return i(et(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},at),e.FileOrigin=Object.assign({},Ge),e.FileStatus=Object.assign({},Ve),e.OptionTypes={},Ia(),e.create=function(){var t=ta.apply(void 0,arguments);return t.on("destroy",e.destroy),_a.apps.push(t),ra(t)},e.destroy=function(e){var t=_a.apps.findIndex((function(t){return t.isAttachedTo(e)}));if(t>=0){var n=_a.apps.splice(t,1)[0];return n.restoreElement(),!0}return!1},e.parse=function(t){var n=Array.from(t.querySelectorAll("."+Ea)),r=n.filter((function(e){return!_a.apps.find((function(t){return t.isAttachedTo(e)}))}));return r.map((function(t){return e.create(t)}))},e.find=function(e){var t=_a.apps.find((function(t){return t.isAttachedTo(e)}));return t?ra(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(la),Ia()},e.getOptions=function(){var e={};return i(et(),(function(t,n){e[t]=n[0]})),e},e.setOptions=function(t){return he(t)&&(_a.apps.forEach((function(e){e.setOptions(t)})),tt(t)),e.getOptions()}}e.supported=ba,Object.defineProperty(e,"__esModule",{value:!0})}))},80645:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+d>=1?h/c:h*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+f]=255&a,f+=p,a/=256,u-=8);e[n+f-p]|=128*m}},96245:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}function a(e){this.message=e}function s(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}a.prototype=new Error,a.prototype.name="InvalidTokenError",t.Z=s},75:function(e){(function(){var t,n,r,i,o,a;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},n=process.hrtime,t=function(){var e;return e=n(),1e9*e[0]+e[1]},i=t(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},27447:function(e){!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var r=n(2),i=n(3);e.exports={Link:r,Date:i}},function(e,t,n){e.exports={url:function(e,t){var n=e&&e.value?e.value.document:e;if(e&&[e.type,e.link_type,e._linkType,e.linkType].some((function(e){return e&&["Document","Link.Document","Link.document"].includes(e)}))&&t&&"function"==typeof t){var r=t(n);if(r)return r}return n&&n.url?n.url:""}}},function(e,t){e.exports=function(e){if(!e)return null;var t=24==e.length?"".concat(e.substring(0,22),":").concat(e.substring(22,24)):e;return new Date(t)}}])},function(e,t,n){e.exports=n(2)},function(e,t,n){var r=n(0),i=n(3),o=r.Date,a=r.Link;e.exports={Date:o,Link:a,RichText:i}},function(e,t,n){var r=n(4),i=n(0).Link,o=n(5),a=r.Elements;function s(e,t,n,r,s){switch(t){case a.heading1:return u("h1",n,s);case a.heading2:return u("h2",n,s);case a.heading3:return u("h3",n,s);case a.heading4:return u("h4",n,s);case a.heading5:return u("h5",n,s);case a.heading6:return u("h6",n,s);case a.paragraph:return u("p",n,s);case a.preformatted:return function(e){return"<pre".concat(c(e),">").concat(o(e.text),"</pre>")}(n);case a.strong:return u("strong",n,s);case a.em:return u("em",n,s);case a.listItem:case a.oListItem:return u("li",n,s);case a.list:return u("ul",n,s);case a.oList:return u("ol",n,s);case a.image:return function(e,t){var n=t.linkTo?i.url(t.linkTo,e):null,r=t.linkTo&&t.linkTo.target?'target="'.concat(t.linkTo.target,'" rel="noopener"'):"",a=[t.label||"","block-img"],s='<img src="'.concat(t.url,'" alt="').concat(t.alt?o(t.alt):"",'" copyright="').concat(t.copyright?o(t.copyright):"",'" />');return'\n    <p class="'.concat(a.join(" "),'">\n      ').concat(n?"<a ".concat(r,' href="').concat(n,'">').concat(s,"</a>"):s,"\n    </p>\n  ")}(e,n);case a.embed:return function(e){return'\n    <div data-oembed="'.concat(e.oembed.embed_url,'"\n      data-oembed-type="').concat(e.oembed.type,'"\n      data-oembed-provider="').concat(e.oembed.provider_name,'"\n      ').concat(c(e),">\n\n      ").concat(e.oembed.html,"\n    </div>\n  ")}(n);case a.hyperlink:return function(e,t,n){var r=t.data.target?'target="'.concat(t.data.target,'" rel="noopener"'):"",a=o(i.url(t.data,e));return"<a ".concat(r,' href="').concat(a,'">').concat(n.join(""),"</a>")}(e,n,s);case a.label:return function(e,t){return"<span ".concat(c(e.data),">").concat(t.join(""),"</span>")}(n,s);case a.span:return function(e){return e?o(e).replace(/\n/g,"<br />"):""}(r);default:return""}}function c(e){return e.label?' class="'.concat(e.label,'"'):""}function u(e,t,n){return"<".concat(e).concat(c(t),">").concat(n.join(""),"</").concat(e,">")}e.exports={asText:function(e,t){return r.asText(e,t)},asHtml:function(e,t,n){return r.serialize(e,s.bind(null,t),n).join("")},Elements:a}},function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.PRIORITIES=t.NODE_TYPES=void 0;var o={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",preformatted:"preformatted",strong:"strong",em:"em",listItem:"list-item",oListItem:"o-list-item",list:"group-list-item",oList:"group-o-list-item",image:"image",embed:"embed",hyperlink:"hyperlink",label:"label",span:"span"};t.NODE_TYPES=o;var a=(i(r={},o.heading1,4),i(r,o.heading2,4),i(r,o.heading3,4),i(r,o.heading4,4),i(r,o.heading5,4),i(r,o.heading6,4),i(r,o.paragraph,3),i(r,o.preformatted,5),i(r,o.strong,6),i(r,o.em,6),i(r,o.oList,1),i(r,o.list,1),i(r,o.listItem,1),i(r,o.oListItem,1),i(r,o.image,1),i(r,o.embed,1),i(r,o.hyperlink,3),i(r,o.label,4),i(r,o.span,7),r);t.PRIORITIES=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(7),o=n(2),a=n(8),s=n(0),c=(r=n(3))&&r.__esModule?r:{default:r};function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){if(0===e.length)throw new Error("Unable to elect node on empty list");var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e.sort((function(e,t){if(e.isParentOf(t))return-1;if(t.isParentOf(e))return 1;var n=s.PRIORITIES[e.type]-s.PRIORITIES[t.type];return 0===n?e.text.length-t.text.length:n})));return{elected:t[0],others:t.slice(1)}}function d(e,t,n){if(t.length>0)return function(e,t,n){return t.reduce((function(r,i,a){var s=[],c=0===a&&i.start>n.lower,u=a===t.length-1&&n.upper>i.end;if(c){var l=new o.TextNode(n.lower,i.start,e.slice(n.lower,i.start));s=s.concat(l)}else{var d=t[a-1];if(d&&i.start>d.end){var h=e.slice(d.end,i.start),f=new o.TextNode(d.end,i.start,h);s=s.concat(f)}}if(s=s.concat(i),u){var p=new o.TextNode(i.end,n.upper,e.slice(i.end,n.upper));s=s.concat(p)}return r.concat(s)}),[])}(e,h(e,t),n);var r=e.slice(n.lower,n.upper);return[new o.TextNode(n.lower,n.upper,r)]}function h(e,t){var n=function(e){return function(e,t){return t.reduce((function(e,t){var n=(0,i.last)(e);if(n){if(n.some((function(e){return e.isParentOf(t)})))return(0,i.init)(e).concat([n.concat(t)]);var r=(0,i.last)(n);return r&&function(e,t){return e.end>=t.start}(r,t)?(0,i.init)(e).concat([n.concat(t)]):e.concat([[t]])}return[[t]]}),[])}(0,(0,i.sort)(e,(function(e,t){return n=t,e.start-n.start||function(e,t){return e.end-t.end}(e,t);var n})))}((0,i.sort)(t,(function(e,t){return e.start-t.start}))).map(l),r=(0,i.flatten)(n.map((function(t){return function(e,t){var n=t.others.reduce((function(n,r){var i=n.inner,a=n.outer,s=function(e,t,n){return n.start<t.start?{inner:o.SpanNode.slice(n,t.start,n.end,e),outer:o.SpanNode.slice(n,n.start,t.start,e)}:n.end>t.end?{inner:o.SpanNode.slice(n,n.start,t.end,e),outer:o.SpanNode.slice(n,t.end,n.end,e)}:{inner:n}}(e,t.elected,r);return{inner:i.concat(s.inner),outer:s.outer?a.concat(s.outer):a}}),{inner:[],outer:[]}),r=n.inner,i=n.outer;return[t.elected.setChildren(d(e,r,t.elected.boundaries()))].concat(h(e,i))}(e,t)})));return(0,i.sort)(r,(function(e,t){return e.start-t.start}))}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"fromRichText",value:function(e){return{key:(0,c.default)(),children:e.reduce((function(e,t,n){if(a.RichTextBlock.isEmbedBlock(t.type)||a.RichTextBlock.isImageBlock(t.type))return e.concat(new o.BlockNode(t.type,t));var r=function(e){var t=(e.spans||[]).map((function(t){var n=e.text.slice(t.start,t.end);return new o.SpanNode(t.start,t.end,t.type,n,[],t)})),n={lower:0,upper:e.text.length};return d(e.text,t,n)}(t),s=e[e.length-1];if(a.RichTextBlock.isListItem(t.type)&&s&&s instanceof o.ListBlockNode){var c=new o.ListItemBlockNode(t,r),u=s.addChild(c);return(0,i.init)(e).concat(u)}if(a.RichTextBlock.isOrderedListItem(t.type)&&s&&s instanceof o.OrderedListBlockNode){var l=new o.OrderedListItemBlockNode(t,r),h=s.addChild(l);return(0,i.init)(e).concat(h)}if(a.RichTextBlock.isListItem(t.type)){var f=new o.ListItemBlockNode(t,r),p=new o.ListBlockNode(a.RichTextBlock.emptyList(),[f]);return e.concat(p)}if(a.RichTextBlock.isOrderedListItem(t.type)){var m=new o.OrderedListItemBlockNode(t,r),g=new o.OrderedListBlockNode(a.RichTextBlock.emptyOrderedList(),[m]);return e.concat(g)}return e.concat(new o.BlockNode(t.type,t,r))}),[])}}}])&&u(t,n),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListBlockNode=t.OrderedListBlockNode=t.OrderedListItemBlockNode=t.ListItemBlockNode=t.BlockNode=t.TextNode=t.SpanNode=t.Node=void 0;var r,i=(r=n(3))&&r.__esModule?r:{default:r},o=n(0);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function l(e){return function(){var t,n=d(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,t)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=function e(t,n,r){h(this,e),this.key=(0,i.default)(),this.type=t,this.element=n,this.children=r};t.Node=f;var p=function(e){u(n,f);var t=l(n);function n(e,r,i,o,a,s){var c;return h(this,n),(c=t.call(this,i,s,a)).start=e,c.end=r,c.text=o,c.children=a,c}return c(n,[{key:"boundaries",value:function(){return{lower:this.start,upper:this.end}}},{key:"isParentOf",value:function(e){return this.start<=e.start&&this.end>=e.end}},{key:"setChildren",value:function(e){return new n(this.start,this.end,this.type,this.text,e,this.element)}}],[{key:"slice",value:function(e,t,r,i){return new n(t,r,e.type,i.slice(t,r),e.children,e.element)}}]),n}();t.SpanNode=p;var m=function(e){u(n,p);var t=l(n);function n(e,r,i){h(this,n);var a={type:o.NODE_TYPES.span,start:e,end:r,text:i};return t.call(this,e,r,o.NODE_TYPES.span,i,[],a)}return n}();t.TextNode=m;var g=function(e){u(n,f);var t=l(n);function n(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return h(this,n),t.call(this,e,r,i)}return n}();t.BlockNode=g;var v=function(e){u(n,g);var t=l(n);function n(e,r){return h(this,n),t.call(this,o.NODE_TYPES.listItem,e,r)}return n}();t.ListItemBlockNode=v;var y=function(e){u(n,g);var t=l(n);function n(e,r){return h(this,n),t.call(this,o.NODE_TYPES.oListItem,e,r)}return n}();t.OrderedListItemBlockNode=y;var b=function(e){u(n,g);var t=l(n);function n(e,r){return h(this,n),t.call(this,o.NODE_TYPES.oList,e,r)}return c(n,[{key:"addChild",value:function(e){var t=this.children.concat(e);return new n(this.element,t)}}]),n}();t.OrderedListBlockNode=b;var _=function(e){u(n,g);var t=l(n);function n(e,r){return h(this,n),t.call(this,o.NODE_TYPES.list,e,r)}return c(n,[{key:"addChild",value:function(e){var t=this.children.concat(e);return new n(this.element,t)}}]),n}();t.ListBlockNode=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))}},function(e,t,n){e.exports=n(5)},function(e,t,n){"use strict";var r=s(n(6)),i=s(n(1)),o=s(n(9)),a=n(0);function s(e){return e&&e.__esModule?e:{default:e}}e.exports={asText:r.default,asTree:i.default.fromRichText,serialize:o.default,Elements:a.NODE_TYPES}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){var n="string"==typeof t?t:" ";return e.map((function(e){return e.text})).join(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e){return e.slice(0,-1)},t.last=function(e){return e[e.length-1]},t.flatten=function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;Array.isArray(s)?t.push.apply(t,s):t.push(s)}}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t},t.sort=function(e,t){return function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(e).sort(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextBlock=void 0;var r=n(0);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.text=n,this.spans=r}var t,n;return t=e,(n=[{key:"isEmbedBlock",value:function(e){return e===r.NODE_TYPES.embed}},{key:"isImageBlock",value:function(e){return e===r.NODE_TYPES.image}},{key:"isList",value:function(e){return e===r.NODE_TYPES.list}},{key:"isOrderedList",value:function(e){return e===r.NODE_TYPES.oList}},{key:"isListItem",value:function(e){return e===r.NODE_TYPES.listItem}},{key:"isOrderedListItem",value:function(e){return e===r.NODE_TYPES.oListItem}},{key:"emptyList",value:function(){return{type:r.NODE_TYPES.list,spans:[],text:""}}},{key:"emptyOrderedList",value:function(){return{type:r.NODE_TYPES.oList,spans:[],text:""}}}])&&i(t,n),e}();t.RichTextBlock=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(1))&&r.__esModule?r:{default:r},o=n(2);t.default=function(e,t,n){return i.default.fromRichText(e).children.map((function(e,r){return function(e,t,n,r){return function e(n,i){var a=n instanceof o.SpanNode?n.text:null,s=n.children.reduce((function(t,n,r){return t.concat([e(n,r)])}),[]);return r&&r(n.type,n.element,a,s,i)||t(n.type,n.element,a,s,i)}(e,n)}(e,t,r,n)}))}}])},function(e,t,n){"use strict";
/*!
 * escape-html
 * Copyright(c) 2012-2013 TJ Holowaychuk
 * Copyright(c) 2015 Andreas Lubbe
 * Copyright(c) 2015 Tiancheng "Timothy" Gu
 * MIT Licensed
 */var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var o="",a=0,s=0;for(a=i.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}s!==a&&(o+=n.substring(s,a)),s=a+1,o+=t}return s!==a?o+n.substring(s,a):o}}])}))},54087:function(e,t,n){for(var r=n(75),i="undefined"===typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u<o.length;u++)s=i[o[u]+"Request"+a],c=i[o[u]+"Cancel"+a]||i[o[u]+"CancelRequest"+a];if(!s||!c){var l=0,d=0,h=[],f=1e3/60;s=function(e){if(0===h.length){var t=r(),n=Math.max(0,f-(t-l));l=n+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return h.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}},26131:function(e){e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,a=i.exec(e);if(a){var s=o(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n},this.getHelpXML=function(){for(var e=new Array,r=0;r<n.length;r++)for(var i=n[r].example,o=0;o<i.length;o++)e[e.length]=i[o];for(var a in t)e[e.length]=a;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var c=document.createElement("li"),u=new RGBColor(e[r]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var d=document.createTextNode(" "+e[r]+" -> "+u.toRGB()+" -> "+u.toHex());c.appendChild(l),c.appendChild(d),s.appendChild(c)}catch(h){}return s}}},51474:function(e,t,n){"use strict";
/**!
 * Sortable 1.10.2
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function c(e,t){if(null==e)return{};var n,r,i=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e){return l(e)||d(e)||h()}function l(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function d(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,{MultiDrag:function(){return Ft},Sortable:function(){return Ze},Swap:function(){return Ct}});var f="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var m=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),g=p(/Edge/i),v=p(/firefox/i),y=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),_=p(/chrome/i)&&p(/android/i),E={capture:!1,passive:!1};function w(e,t,n){e.addEventListener(t,n,!m&&E)}function T(e,t,n){e.removeEventListener(t,n,!m&&E)}function I(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function S(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function C(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&I(e,t):I(e,t))||r&&e===n)return e;if(e===n)break}while(e=S(e))}return null}var A,O=/\s+/g;function R(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(O," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(O," ")}}function k(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function x(e,t){var n="";if("string"===typeof e)n=e;else do{var r=k(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function M(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function N(){var e=document.scrollingElement;return e||document.documentElement}function P(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,c,u,l,d;if(e!==window&&e!==N()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,c=o.bottom,u=o.right,l=o.height,d=o.width):(a=0,s=0,c=window.innerHeight,u=window.innerWidth,l=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!m))do{if(i&&i.getBoundingClientRect&&("none"!==k(i,"transform")||n&&"static"!==k(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(k(i,"border-top-width")),s-=h.left+parseInt(k(i,"border-left-width")),c=a+o.height,u=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var f=x(i||e),p=f&&f.a,g=f&&f.d;f&&(a/=g,s/=p,d/=p,l/=g,c=a+l,u=s+d)}return{top:a,left:s,bottom:c,right:u,width:d,height:l}}}function D(e,t,n){var r=H(e,!0),i=P(e)[t];while(r){var o=P(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===N())break;r=H(r,!1)}return!1}function L(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==Ze.ghost&&o[i]!==Ze.dragged&&C(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function U(e,t){var n=e.lastElementChild;while(n&&(n===Ze.ghost||"none"===k(n,"display")||t&&!I(n,t)))n=n.previousElementSibling;return n||null}function F(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ze.clone||t&&!I(e,t)||n++;return n}function q(e){var t=0,n=0,r=N();if(e)do{var i=x(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function B(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function H(e,t){if(!e||!e.getBoundingClientRect)return N();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(r||t)return n;r=!0}}}while(n=n.parentNode);return N()}function j(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function V(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function G(e,t){return function(){if(!A){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),A=setTimeout((function(){A=void 0}),t)}}}function z(){clearTimeout(A),A=void 0}function $(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Y(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function K(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function W(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}var X="Sortable"+(new Date).getTime();function Q(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==k(e,"display")&&e!==Ze.ghost){t.push({target:e,rect:P(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=x(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(B(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=P(n),c=n.prevFromRect,u=n.prevToRect,l=e.rect,d=x(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&V(c,s)&&!V(a,s)&&(l.top-s.top)/(l.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=J(l,c,u,r.options)),V(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,l,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){k(e,"transition",""),k(e,"transform","");var i=x(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),c=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!c,k(e,"transform","translate3d("+s+"px,"+c+"px,0)"),Z(e),k(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function Z(e){return e.offsetWidth}function J(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ee.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](a({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ee.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(r){"function"===typeof r.eventProperties&&o(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ee.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function re(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,c=e.fromEl,u=e.oldIndex,l=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[X],t){var y,b=t.options,_="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||m||g?(y=document.createEvent("Event"),y.initEvent(r,!0,!0)):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=c||n,y.item=i||n,y.clone=o,y.oldIndex=u,y.newIndex=l,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=f,y.pullMode=p?p.lastPutMode:void 0;var E=a({},v,ne.getEventProperties(r,t));for(var w in E)y[w]=E[w];n&&n.dispatchEvent(y),b[_]&&b[_].call(t,y)}}var ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=c(n,["evt"]);ne.pluginEvent.bind(Ze)(e,t,a({dragEl:ae,parentEl:se,ghostEl:ce,rootEl:ue,nextEl:le,lastDownEl:de,cloneEl:he,cloneHidden:fe,dragStarted:Ce,putSortable:be,activeSortable:Ze.active,originalEvent:r,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve,hideGhostForTarget:Ke,unhideGhostForTarget:We,cloneNowHidden:function(){fe=!0},cloneNowShown:function(){fe=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(a({putSortable:be,cloneEl:he,targetEl:ae,rootEl:ue,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve},e))}var ae,se,ce,ue,le,de,he,fe,pe,me,ge,ve,ye,be,_e,Ee,we,Te,Ie,Se,Ce,Ae,Oe,Re,ke,xe=!1,Me=!1,Ne=[],Pe=!1,De=!1,Le=[],Ue=!1,Fe=[],qe="undefined"!==typeof document,Be=b,He=g||m?"cssFloat":"float",je=qe&&!_&&!b&&"draggable"in document.createElement("div"),Ve=function(){if(qe){if(m)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ge=function(e,t){var n=k(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=L(e,0,t),o=L(e,1,t),a=i&&k(i),s=o&&k(o),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+P(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var l="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==l?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=r&&"none"===n[He]||o&&"none"===n[He]&&c+u>r)?"vertical":"horizontal"},ze=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===a||i===s||r+o/2===a+c/2},$e=function(e,t){var n;return Ne.some((function(r){if(!U(r)){var i=P(r),o=r[X].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},Ye=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var c=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ke=function(){!Ve&&ce&&k(ce,"display","none")},We=function(){!Ve&&ce&&k(ce,"display","")};qe&&document.addEventListener("click",(function(e){if(Me)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Me=!1,!1}),!0);var Xe=function(e){if(ae){e=e.touches?e.touches[0]:e;var t=$e(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[X]._onDragOver(n)}}},Qe=function(e){ae&&ae.parentNode[X]._isOutsideThisEl(e.target)};function Ze(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[X]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ge(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ze.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ye(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&je,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(e,"pointerdown",this._onTapStart):(w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Ne.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,Q())}function Je(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,r,i,o,a,s){var c,u,l=e[X],d=l.options.onMove;return!window.CustomEvent||m||g?(c=document.createEvent("Event"),c.initEvent("move",!0,!0)):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=o||P(t),c.willInsertAfter=s,c.originalEvent=a,e.dispatchEvent(c),d&&(u=d.call(l,c,a)),u}function tt(e){e.draggable=!1}function nt(){Ue=!1}function rt(e,t,n){var r=P(U(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,o,a,s){var c=r?e.clientY:e.clientX,u=r?n.height:n.width,l=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!a)if(s&&Re<u*i){if(!Pe&&(1===Oe?c>l+u*o/2:c<d-u*o/2)&&(Pe=!0),Pe)h=!0;else if(1===Oe?c<l+Re:c>d-Re)return-Oe}else if(c>l+u*(1-i)/2&&c<d-u*(1-i)/2)return ot(t);return h=h||a,h&&(c<l+u*o/2||c>d-u*o/2)?c>l+u/2?1:-1:0}function ot(e){return F(ae)<F(e)?1:-1}function at(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function st(e){Fe.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Fe.push(r)}}function ct(e){return setTimeout(e,0)}function ut(e){return clearTimeout(e)}Ze.prototype={constructor:Ze,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ae=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(st(n),!ae&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(s=C(s,r.draggable,n,!1),(!s||!s.animated)&&de!==s)){if(pe=F(s),ge=F(s,r.draggable),"function"===typeof u){if(u.call(this,e,s,this))return oe({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),ie("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=C(c,r.trim(),n,!1),r)return oe({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ie("filter",t,{evt:e}),!0})),u))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!C(c,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!ae&&n.parentNode===o){var c=P(n);if(ue=o,ae=n,se=ae.parentNode,le=ae.nextSibling,de=n,ye=a.group,Ze.dragged=ae,_e={target:ae,clientX:(t||e).clientX,clientY:(t||e).clientY},Ie=_e.clientX-c.left,Se=_e.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ae.style["will-change"]="all",r=function(){ie("delayEnded",i,{evt:e}),Ze.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!v&&i.nativeDraggable&&(ae.draggable=!0),i._triggerDragStart(e,t),oe({sortable:i,name:"choose",originalEvent:e}),R(ae,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){M(ae,e.trim(),tt)})),w(s,"dragover",Xe),w(s,"mousemove",Xe),w(s,"touchmove",Xe),w(s,"mouseup",i._onDrop),w(s,"touchend",i._onDrop),w(s,"touchcancel",i._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ae.draggable=!0),ie("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(g||m))r();else{if(Ze.eventCanceled)return void this._onDrop();w(s,"mouseup",i._disableDelayedDrag),w(s,"touchend",i._disableDelayedDrag),w(s,"touchcancel",i._disableDelayedDrag),w(s,"mousemove",i._delayedDragTouchMoveHandler),w(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&w(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ae&&tt(ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;T(e,"mouseup",this._disableDelayedDrag),T(e,"touchend",this._disableDelayedDrag),T(e,"touchcancel",this._disableDelayedDrag),T(e,"mousemove",this._delayedDragTouchMoveHandler),T(e,"touchmove",this._delayedDragTouchMoveHandler),T(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,t?"touchmove":"mousemove",this._onTouchMove):(w(ae,"dragend",this),w(ue,"dragstart",this._onDragStart));try{document.selection?ct((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(xe=!1,ue&&ae){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&w(document,"dragover",Qe);var n=this.options;!e&&R(ae,n.dragClass,!1),R(ae,n.ghostClass,!0),Ze.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ee){this._lastX=Ee.clientX,this._lastY=Ee.clientY,Ke();var e=document.elementFromPoint(Ee.clientX,Ee.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Ee.clientX,Ee.clientY),e===t)break;t=e}if(ae.parentNode[X]._isOutsideThisEl(e),t)do{if(t[X]){var n=void 0;if(n=t[X]._onDragOver({clientX:Ee.clientX,clientY:Ee.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);We()}},_onTouchMove:function(e){if(_e){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ce&&x(ce,!0),a=ce&&o&&o.a,s=ce&&o&&o.d,c=Be&&ke&&q(ke),u=(i.clientX-_e.clientX+r.x)/(a||1)+(c?c[0]-Le[0]:0)/(a||1),l=(i.clientY-_e.clientY+r.y)/(s||1)+(c?c[1]-Le[1]:0)/(s||1);if(!Ze.active&&!xe){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ce){o?(o.e+=u-(we||0),o.f+=l-(Te||0)):o={a:1,b:0,c:0,d:1,e:u,f:l};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");k(ce,"webkitTransform",d),k(ce,"mozTransform",d),k(ce,"msTransform",d),k(ce,"transform",d),we=u,Te=l,Ee=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ce){var e=this.options.fallbackOnBody?document.body:ue,t=P(ae,!0,Be,!0,e),n=this.options;if(Be){ke=e;while("static"===k(ke,"position")&&"none"===k(ke,"transform")&&ke!==document)ke=ke.parentNode;ke!==document.body&&ke!==document.documentElement?(ke===document&&(ke=N()),t.top+=ke.scrollTop,t.left+=ke.scrollLeft):ke=N(),Le=q(ke)}ce=ae.cloneNode(!0),R(ce,n.ghostClass,!1),R(ce,n.fallbackClass,!0),R(ce,n.dragClass,!0),k(ce,"transition",""),k(ce,"transform",""),k(ce,"box-sizing","border-box"),k(ce,"margin",0),k(ce,"top",t.top),k(ce,"left",t.left),k(ce,"width",t.width),k(ce,"height",t.height),k(ce,"opacity","0.8"),k(ce,"position",Be?"absolute":"fixed"),k(ce,"zIndex","100000"),k(ce,"pointerEvents","none"),Ze.ghost=ce,e.appendChild(ce),k(ce,"transform-origin",Ie/parseInt(ce.style.width)*100+"% "+Se/parseInt(ce.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ie("dragStart",this,{evt:e}),Ze.eventCanceled?this._onDrop():(ie("setupClone",this),Ze.eventCanceled||(he=Y(ae),he.draggable=!1,he.style["will-change"]="",this._hideClone(),R(he,this.options.chosenClass,!1),Ze.clone=he),n.cloneId=ct((function(){ie("clone",n),Ze.eventCanceled||(n.options.removeCloneOnHide||ue.insertBefore(he,ae),n._hideClone(),oe({sortable:n,name:"clone"}))})),!t&&R(ae,i.dragClass,!0),t?(Me=!0,n._loopId=setInterval(n._emulateDragOver,50)):(T(document,"mouseup",n._onDrop),T(document,"touchend",n._onDrop),T(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,ae)),w(document,"drop",n),k(ae,"transform","translateZ(0)")),xe=!0,n._dragStartId=ct(n._dragStarted.bind(n,t,e)),w(document,"selectstart",n),Ce=!0,y&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,c=this.options,u=c.group,l=Ze.active,d=ye===u,h=c.sort,f=be||l,p=this,m=!1;if(!Ue){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=C(s,c.draggable,o,!0),M("dragOver"),Ze.eventCanceled)return m;if(ae.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return L(!1);if(Me=!1,l&&!c.disabled&&(d?h||(r=!ue.contains(ae)):be===this||(this.lastPutMode=ye.checkPull(this,l,ae,e))&&u.checkPut(this,l,ae,e))){if(i="vertical"===this._getDirection(e,s),t=P(ae),M("dragOverValid"),Ze.eventCanceled)return m;if(r)return se=ue,N(),this._hideClone(),M("revert"),Ze.eventCanceled||(le?ue.insertBefore(ae,le):ue.appendChild(ae)),L(!0);var g=U(o,c.draggable);if(!g||rt(e,i,this)&&!g.animated){if(g===ae)return L(!1);if(g&&o===e.target&&(s=g),s&&(n=P(s)),!1!==et(ue,o,ae,t,s,n,e,!!s))return N(),o.appendChild(ae),se=o,q(),L(!0)}else if(s.parentNode===o){n=P(s);var v,y,b=0,_=ae.parentNode!==o,E=!ze(ae.animated&&ae.toRect||t,s.animated&&s.toRect||n,i),w=i?"top":"left",T=D(s,"top","top")||D(ae,"top","top"),I=T?T.scrollTop:void 0;if(Ae!==s&&(v=n[w],Pe=!1,De=!E&&c.invertSwap||_),b=it(e,s,n,i,E?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,De,Ae===s),0!==b){var S=F(ae);do{S-=b,y=se.children[S]}while(y&&("none"===k(y,"display")||y===ce))}if(0===b||y===s)return L(!1);Ae=s,Oe=b;var A=s.nextElementSibling,O=!1;O=1===b;var x=et(ue,o,ae,t,s,n,e,O);if(!1!==x)return 1!==x&&-1!==x||(O=1===x),Ue=!0,setTimeout(nt,30),N(),O&&!A?o.appendChild(ae):s.parentNode.insertBefore(ae,O?A:s),T&&$(T,0,I-T.scrollTop),se=ae.parentNode,void 0===v||De||(Re=Math.abs(v-P(s)[w])),q(),L(!0)}if(o.contains(ae))return L(!1)}return!1}function M(c,u){ie(c,p,a({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:s,completed:L,onMove:function(n,r){return et(ue,o,ae,t,n,P(n),e,r)},changed:q},u))}function N(){M("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function L(t){return M("dragOverCompleted",{insertion:t}),t&&(d?l._hideClone():l._showClone(p),p!==f&&(R(ae,be?be.options.ghostClass:l.options.ghostClass,!1),R(ae,c.ghostClass,!0)),be!==p&&p!==Ze.active?be=p:p===Ze.active&&be&&(be=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){M("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===ae&&!ae.animated||s===o&&!s.animated)&&(Ae=null),c.dragoverBubble||e.rootEl||s===document||(ae.parentNode[X]._isOutsideThisEl(e.target),!t&&Xe(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function q(){me=F(ae),ve=F(ae,c.draggable),oe({sortable:p,name:"change",toEl:o,newIndex:me,newDraggableIndex:ve,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){T(document,"mousemove",this._onTouchMove),T(document,"touchmove",this._onTouchMove),T(document,"pointermove",this._onTouchMove),T(document,"dragover",Xe),T(document,"mousemove",Xe),T(document,"touchmove",Xe)},_offUpEvents:function(){var e=this.el.ownerDocument;T(e,"mouseup",this._onDrop),T(e,"touchend",this._onDrop),T(e,"pointerup",this._onDrop),T(e,"touchcancel",this._onDrop),T(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;me=F(ae),ve=F(ae,n.draggable),ie("drop",this,{evt:e}),se=ae&&ae.parentNode,me=F(ae),ve=F(ae,n.draggable),Ze.eventCanceled||(xe=!1,De=!1,Pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ut(this.cloneId),ut(this._dragStartId),this.nativeDraggable&&(T(document,"drop",this),T(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&k(document.body,"user-select",""),k(ae,"transform",""),e&&(Ce&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ce&&ce.parentNode&&ce.parentNode.removeChild(ce),(ue===se||be&&"clone"!==be.lastPutMode)&&he&&he.parentNode&&he.parentNode.removeChild(he),ae&&(this.nativeDraggable&&T(ae,"dragend",this),tt(ae),ae.style["will-change"]="",Ce&&!xe&&R(ae,be?be.options.ghostClass:this.options.ghostClass,!1),R(ae,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),ue!==se?(me>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),be&&be.save()):me!==pe&&me>=0&&(oe({sortable:this,name:"update",toEl:se,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),Ze.active&&(null!=me&&-1!==me||(me=pe,ve=ge),oe({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ie("nulling",this),ue=ae=se=ce=le=he=de=fe=_e=Ee=Ce=me=ve=pe=ge=Ae=Oe=be=ye=Ze.dragged=Ze.ghost=Ze.clone=Ze.active=null,Fe.forEach((function(e){e.checked=!0})),Fe.length=we=Te=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ae&&(this._onDragOver(e),Je(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],C(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||at(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];C(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return C(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Ye(n)},destroy:function(){ie("destroy",this);var e=this.el;e[X]=null,T(e,"mousedown",this._onTapStart),T(e,"touchstart",this._onTapStart),T(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(T(e,"dragover",this),T(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!fe){if(ie("hideClone",this),Ze.eventCanceled)return;k(he,"display","none"),this.options.removeCloneOnHide&&he.parentNode&&he.parentNode.removeChild(he),fe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(fe){if(ie("showClone",this),Ze.eventCanceled)return;ue.contains(ae)&&!this.options.group.revertClone?ue.insertBefore(he,ae):le?ue.insertBefore(he,le):ue.appendChild(he),this.options.group.revertClone&&this.animate(ae,he),k(he,"display",""),fe=!1}}else this._hideClone()}},qe&&w(document,"touchmove",(function(e){(Ze.active||xe)&&e.cancelable&&e.preventDefault()})),Ze.utils={on:w,off:T,css:k,find:M,is:function(e,t){return!!C(e,t,e,!1)},extend:j,throttle:G,closest:C,toggleClass:R,clone:Y,index:F,nextTick:ct,cancelNextTick:ut,detectDirection:Ge,getChild:L},Ze.get=function(e){return e[X]},Ze.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ze.utils=a({},Ze.utils,e.utils)),ne.mount(e)}))},Ze.create=function(e,t){return new Ze(e,t)},Ze.version=f;var lt,dt,ht,ft,pt,mt,gt=[],vt=!1;function yt(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):t.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):(T(document,"pointermove",this._handleFallbackAutoScroll),T(document,"touchmove",this._handleFallbackAutoScroll),T(document,"mousemove",this._handleFallbackAutoScroll)),_t(),bt(),z()},nulling:function(){pt=dt=lt=vt=mt=ht=ft=null,gt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(pt=e,t||g||m||y){wt(e,this.options,o,t);var a=H(o,!0);!vt||mt&&r===ht&&i===ft||(mt&&_t(),mt=setInterval((function(){var o=H(document.elementFromPoint(r,i),!0);o!==a&&(a=o,bt()),wt(e,n.options,o,t)}),10),ht=r,ft=i)}else{if(!this.options.bubbleScroll||H(o,!0)===N())return void bt();wt(e,this.options,H(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}function bt(){gt.forEach((function(e){clearInterval(e.pid)})),gt=[]}function _t(){clearInterval(mt)}var Et,wt=G((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,c=t.scrollSpeed,u=N(),l=!1;dt!==n&&(dt=n,bt(),lt=t.scroll,i=t.scrollFn,!0===lt&&(lt=H(n,!0)));var d=0,h=lt;do{var f=h,p=P(f),m=p.top,g=p.bottom,v=p.left,y=p.right,b=p.width,_=p.height,E=void 0,w=void 0,T=f.scrollWidth,I=f.scrollHeight,S=k(f),C=f.scrollLeft,A=f.scrollTop;f===u?(E=b<T&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),w=_<I&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(E=b<T&&("auto"===S.overflowX||"scroll"===S.overflowX),w=_<I&&("auto"===S.overflowY||"scroll"===S.overflowY));var O=E&&(Math.abs(y-o)<=s&&C+b<T)-(Math.abs(v-o)<=s&&!!C),R=w&&(Math.abs(g-a)<=s&&A+_<I)-(Math.abs(m-a)<=s&&!!A);if(!gt[d])for(var x=0;x<=d;x++)gt[x]||(gt[x]={});gt[d].vx==O&&gt[d].vy==R&&gt[d].el===f||(gt[d].el=f,gt[d].vx=O,gt[d].vy=R,clearInterval(gt[d].pid),0==O&&0==R||(l=!0,gt[d].pid=setInterval(function(){r&&0===this.layer&&Ze.active._onTouchMove(pt);var t=gt[this.layer].vy?gt[this.layer].vy*c:0,n=gt[this.layer].vx?gt[this.layer].vx*c:0;"function"===typeof i&&"continue"!==i.call(Ze.dragged.parentNode[X],n,t,e,pt,gt[this.layer].el)||$(gt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==u&&(h=H(h,!1)));vt=l}}),30),Tt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,l=document.elementFromPoint(u.clientX,u.clientY);s(),c&&!c.el.contains(l)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function It(){}function St(){}function Ct(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;Et=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var u=Et;!1!==r(n)?(R(n,c.swapClass,!0),Et=n):Et=null,u&&u!==Et&&R(u,c.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;Et&&R(Et,o.swapClass,!1),Et&&(o.swap||n&&n.options.swap)&&r!==Et&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),At(r,Et),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){Et=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Et}}})}function At(e,t){var n,r,i=e.parentNode,o=t.parentNode;i&&o&&!i.isEqualNode(t)&&!o.isEqualNode(e)&&(n=F(e),r=F(t),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r]))}It.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=L(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Tt},o(It,{pluginName:"revertOnSpill"}),St.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Tt},o(St,{pluginName:"removeOnSpill"});var Ot,Rt,kt,xt,Mt,Nt=[],Pt=[],Dt=!1,Lt=!1,Ut=!1;function Ft(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?w(document,"pointerup",this._deselectMultiDrag):(w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag)),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";Nt.length&&Rt===e?Nt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;kt=t},delayEnded:function(){this.isMultiDrag=~Nt.indexOf(kt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Nt.length;r++)Pt.push(Y(Nt[r])),Pt[r].sortableIndex=Nt[r].sortableIndex,Pt[r].draggable=!1,Pt[r].style["will-change"]="",R(Pt[r],this.options.selectedClass,!1),Nt[r]===kt&&R(Pt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Nt.length&&Rt===t&&(Bt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Bt(!1,n),Pt.forEach((function(e){k(e,"display","")})),t(),Mt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(Pt.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Mt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Rt&&Rt.multiDrag._deselectMultiDrag(),Nt.forEach((function(e){e.sortableIndex=F(e)})),Nt=Nt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Ut=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Nt.forEach((function(e){e!==kt&&k(e,"position","absolute")}));var r=P(kt,!1,!0,!0);Nt.forEach((function(e){e!==kt&&K(e,r)})),Lt=!0,Dt=!0}n.animateAll((function(){Lt=!1,Dt=!1,t.options.animation&&Nt.forEach((function(e){W(e)})),t.options.sort&&Ht()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Lt&&~Nt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Nt.length>1&&(Nt.forEach((function(e){r.addAnimationState({target:e,rect:Lt?P(e):i}),W(e),e.fromRect=i,t.removeAnimationState(e)})),Lt=!1,qt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Dt=!1,s.animation&&Nt.length>1&&(Lt||!n&&!i.options.sort&&!a)){var c=P(kt,!1,!0,!0);Nt.forEach((function(e){e!==kt&&(K(e,c),o.appendChild(e))})),Lt=!0}if(!n)if(Lt||Ht(),Nt.length>1){var u=Mt;i._showClone(t),i.options.animation&&!Mt&&u&&Pt.forEach((function(e){i.addAnimationState({target:e,rect:xt}),e.fromRect=xt,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Nt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){xt=o({},t);var i=x(kt,!0);xt.top-=i.f,xt.left-=i.e}},dragOverAnimationComplete:function(){Lt&&(Lt=!1,Ht())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var u=this.options,l=r.children;if(!Ut)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),R(kt,u.selectedClass,!~Nt.indexOf(kt)),~Nt.indexOf(kt))Nt.splice(Nt.indexOf(kt),1),Ot=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:kt,originalEvt:t});else{if(Nt.push(kt),re({sortable:i,rootEl:n,name:"select",targetEl:kt,originalEvt:t}),t.shiftKey&&Ot&&i.el.contains(Ot)){var d,h,f=F(Ot),p=F(kt);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~Nt.indexOf(l[h])||(R(l[h],u.selectedClass,!0),Nt.push(l[h]),re({sortable:i,rootEl:n,name:"select",targetEl:l[h],originalEvt:t}))}else Ot=kt;Rt=c}if(Ut&&this.isMultiDrag){if((r[X].options.sort||r!==n)&&Nt.length>1){var m=P(kt),g=F(kt,":not(."+this.options.selectedClass+")");if(!Dt&&u.animation&&(kt.thisAnimationDuration=null),c.captureAnimationState(),!Dt&&(u.animation&&(kt.fromRect=m,Nt.forEach((function(e){if(e.thisAnimationDuration=null,e!==kt){var t=Lt?P(e):m;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),Ht(),Nt.forEach((function(e){l[g]?r.insertBefore(e,l[g]):r.appendChild(e),g++})),a===F(kt))){var v=!1;Nt.forEach((function(e){e.sortableIndex===F(e)||(v=!0)})),v&&o("update")}Nt.forEach((function(e){W(e)})),c.animateAll()}Rt=c}(n===r||s&&"clone"!==s.lastPutMode)&&Pt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Ut=!1,Pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),T(document,"pointerup",this._deselectMultiDrag),T(document,"mouseup",this._deselectMultiDrag),T(document,"touchend",this._deselectMultiDrag),T(document,"keydown",this._checkKeyDown),T(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Ut||!Ut)&&Rt===this.sortable&&(!e||!C(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Nt.length){var t=Nt[0];R(t,this.options.selectedClass,!1),Nt.shift(),re({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[X];t&&t.options.multiDrag&&!~Nt.indexOf(e)&&(Rt&&Rt!==t&&(Rt.multiDrag._deselectMultiDrag(),Rt=t),R(e,t.options.selectedClass,!0),Nt.push(e))},deselect:function(e){var t=e.parentNode[X],n=Nt.indexOf(e);t&&t.options.multiDrag&&~n&&(R(e,t.options.selectedClass,!1),Nt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Nt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=Lt&&r!==kt?-1:Lt?F(r,":not(."+e.options.selectedClass+")"):F(r),n.push({multiDragElement:r,index:i})})),{items:u(Nt),clones:[].concat(Pt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function qt(e,t){Nt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Bt(e,t){Pt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Ht(){Nt.forEach((function(e){e!==kt&&e.parentNode&&e.parentNode.removeChild(e)}))}Ze.mount(new yt),Ze.mount(St,It),t["default"]=Ze},59829:function(e,t){var n,r,i;(function(o,a){"use strict";r=[],n=a,i="function"===typeof n?n.apply(t,r):n,void 0===i||(e.exports=i)})(0,(function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],o=["fileName","functionName","source"],a=["args"],s=["evalOrigin"],c=r.concat(i,o,a,s);function u(e){if(e)for(var n=0;n<c.length;n++)void 0!==e[c[n]]&&this["set"+t(c[n])](e[c[n]])}u.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof u)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new u(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},u.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),i=e.substring(t+1,n).split(","),o=e.substring(n+1);if(0===o.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(o,""),s=a[1],c=a[2],l=a[3];return new u({functionName:r,args:i||void 0,fileName:s,lineNumber:c||void 0,columnNumber:l||void 0})};for(var l=0;l<r.length;l++)u.prototype["get"+t(r[l])]=n(r[l]),u.prototype["set"+t(r[l])]=function(e){return function(t){this[e]=Boolean(t)}}(r[l]);for(var d=0;d<i.length;d++)u.prototype["get"+t(i[d])]=n(i[d]),u.prototype["set"+t(i[d])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(i[d]);for(var h=0;h<o.length;h++)u.prototype["get"+t(o[h])]=n(o[h]),u.prototype["set"+t(o[h])]=function(e){return function(t){this[e]=String(t)}}(o[h]);return u}))},34479:function(e,t,n){"use strict";n.d(t,{C1:function(){return D},Do:function(){return p},Fp:function(){return E},GU:function(){return c},Sz:function(){return x},VV:function(){return I},_L:function(){return y},nz:function(){return d},uR:function(){return O},vX:function(){return o}});
/**
  * vee-validate v3.4.15
  * (c) 2023 Abdelrahman Awad
  * @license MIT
  */
var r=function(e,t){var n=void 0===t?{}:t,i=n.min,o=n.max;return Array.isArray(e)?e.every((function(e){return!!r(e,{min:i,max:o})})):Number(i)<=e&&Number(o)>=e},i=[{name:"min"},{name:"max"}],o={validate:r,params:i},a=function(e,t){var n=t.target;return String(e)===String(n)},s=[{name:"target",isTarget:!0}],c={validate:a,params:s},u=function(e,t){var n=t.length;if(Array.isArray(e))return e.every((function(e){return u(e,{length:n})}));var r=String(e);return/^[0-9]*$/.test(r)&&r.length===n},l=[{name:"length",cast:function(e){return Number(e)}}],d={validate:u,params:l},h=function(e,t){var n=(void 0===t?{}:t).multiple,r=/^(([^<>()\[\]\\.,;:\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 n&&!Array.isArray(e)&&(e=String(e).split(",").map((function(e){return e.trim()}))),Array.isArray(e)?e.every((function(e){return r.test(String(e))})):r.test(String(e))},f=[{name:"multiple",default:!1}],p={validate:h,params:f};function m(e){return null===e||void 0===e}function g(e){return Array.isArray(e)&&0===e.length}var v=function(e){return Array.isArray(e)?e.every((function(e){return/^-?[0-9]+$/.test(String(e))})):/^-?[0-9]+$/.test(String(e))},y={validate:v},b=function(e,t){var n=t.length;return m(e)?n>=0:Array.isArray(e)?e.every((function(e){return b(e,{length:n})})):String(e).length<=n},_=[{name:"length",cast:function(e){return Number(e)}}],E={validate:b,params:_},w=function(e,t){var n=t.length;return!m(e)&&(Array.isArray(e)?e.every((function(e){return w(e,{length:n})})):String(e).length>=n)},T=[{name:"length",cast:function(e){return Number(e)}}],I={validate:w,params:T},S=/^[٠١٢٣٤٥٦٧٨٩]+$/,C=/^[0-9]+$/,A=function(e){var t=function(e){var t=String(e);return C.test(t)||S.test(t)};return Array.isArray(e)?e.every(t):t(e)},O={validate:A},R=function(e,t){var n=t.regex;return Array.isArray(e)?e.every((function(e){return R(e,{regex:n})})):n.test(String(e))},k=[{name:"regex",cast:function(e){return"string"===typeof e?new RegExp(e):e}}],x={validate:R,params:k},M=function(e,t){var n=(void 0===t?{allowFalse:!0}:t).allowFalse,r={valid:!1,required:!0};return m(e)||g(e)?r:!1!==e||n?(r.valid=!!String(e).trim().length,r):r},N=!0,P=[{name:"allowFalse",default:!0}],D={validate:M,params:P,computesRequired:N}},12954:function(e,t,n){"use strict";n.d(t,{_j:function(){return He},d_:function(){return ke},jQ:function(){return L},l7:function(){return k}});var r=n(20144),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};
/**
  * vee-validate v3.4.15
  * (c) 2023 Abdelrahman Awad
  * @license MIT
  */
/*! *****************************************************************************
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.
***************************************************************************** */function o(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function s(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function c(e){return e!==e}function u(e){return null===e||void 0===e}function l(e){return Array.isArray(e)&&0===e.length}var d=function(e){return null!==e&&e&&"object"===typeof e&&!Array.isArray(e)};function h(e,t){return!(!c(e)||!c(t))||e===t}function f(e){return""!==e&&!u(e)}function p(e){return"function"===typeof e}function m(e){return p(e)&&!!e.__locatorRef}function g(e,t){var n=Array.isArray(e)?e:b(e);if(p(n.findIndex))return n.findIndex(t);for(var r=0;r<n.length;r++)if(t(n[r],r))return r;return-1}function v(e,t){var n=Array.isArray(e)?e:b(e),r=g(n,t);return-1===r?void 0:n[r]}function y(e,t){return-1!==e.indexOf(t)}function b(e){return p(Array.from)?Array.from(e):_(e)}function _(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}function E(e){return p(Object.values)?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function w(e,t){return Object.keys(t).forEach((function(n){if(d(t[n]))return e[n]||(e[n]={}),void w(e[n],t[n]);e[n]=t[n]})),e}function T(){return{untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:!1,invalid:!1,validated:!1,pending:!1,required:!1,changed:!1,passed:!1,failed:!1}}function I(e,t,n){return void 0===t&&(t=0),void 0===n&&(n={cancelled:!1}),0===t?e:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=function(){r=void 0,n.cancelled||e.apply(void 0,i)};clearTimeout(r),r=setTimeout(a,t)};var r}function S(e){console.warn("[vee-validate] "+e)}function C(e,t){return e.replace(/{([^}]+)}/g,(function(e,n){return n in t?t[n]:"{"+n+"}"}))}var A={};function O(e){var t;return(null===(t=e.params)||void 0===t?void 0:t.length)&&(e.params=e.params.map((function(e){return"string"===typeof e?{name:e}:e}))),e}var R=function(){function e(){}return e.extend=function(e,t){var n=O(t);A[e]?A[e]=w(A[e],t):A[e]=i({lazy:!1,computesRequired:!1},n)},e.isLazy=function(e){var t;return!!(null===(t=A[e])||void 0===t?void 0:t.lazy)},e.isRequireRule=function(e){var t;return!!(null===(t=A[e])||void 0===t?void 0:t.computesRequired)},e.getRuleDefinition=function(e){return A[e]},e}();function k(e,t){x(e,t),"object"!==typeof t?R.extend(e,{validate:t}):R.extend(e,t)}function x(e,t){if(!p(t)&&!p(t.validate)&&!R.getRuleDefinition(e))throw new Error("Extension Error: The validator '"+e+"' must be a function or have a 'validate' method.")}var M={defaultMessage:"{_field_} is not valid.",skipOptional:!0,classes:{touched:"touched",untouched:"untouched",valid:"valid",invalid:"invalid",pristine:"pristine",dirty:"dirty"},bails:!0,mode:"aggressive",useConstraintAttrs:!0},N=i({},M),P=function(){return N},D=function(e){N=i(i({},N),e)},L=function(e){D(e)};function U(e){var t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?d(e)&&e._$$isNormalized?e:d(e)?Object.keys(e).reduce((function(t,n){var r=[];return r=!0===e[n]?[]:Array.isArray(e[n])||d(e[n])?e[n]:[e[n]],!1!==e[n]&&(t[n]=F(n,r)),t}),t):"string"!==typeof e?(S("rules must be either a string or an object."),t):e.split("|").reduce((function(e,t){var n=q(t);return n.name?(e[n.name]=F(n.name,n.params),e):e}),t):t}function F(e,t){var n=R.getRuleDefinition(e);if(!n)return t;var r,i,o={};if(!n.params&&!Array.isArray(t))throw new Error("You provided an object params to a rule that has no defined schema.");if(Array.isArray(t)&&!n.params)return t;!n.params||n.params.length<t.length&&Array.isArray(t)?r=t.map((function(e,t){var r,o=null===(r=n.params)||void 0===r?void 0:r[t];return i=o||i,o||(o=i),o})):r=n.params;for(var a=0;a<r.length;a++){var s=r[a],c=s.default;Array.isArray(t)?a in t&&(c=t[a]):s.name in t?c=t[s.name]:1===r.length&&(c=t),s.isTarget&&(c=B(c,s.cast)),"string"===typeof c&&"@"===c[0]&&(c=B(c.slice(1),s.cast)),!m(c)&&s.cast&&(c=s.cast(c)),o[s.name]?(o[s.name]=Array.isArray(o[s.name])?o[s.name]:[o[s.name]],o[s.name].push(c)):o[s.name]=c}return o}var q=function(e){var t=[],n=e.split(":")[0];return y(e,":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:n,params:t}};function B(e,t){var n=function(n){var r=n[e];return t?t(r):r};return n.__locatorRef=e,n}function H(e){return Array.isArray(e)?e.filter((function(e){return m(e)||"string"===typeof e&&"@"===e[0]})):Object.keys(e).filter((function(t){return m(e[t])})).map((function(t){return e[t]}))}function j(e,t,n){return void 0===n&&(n={}),o(this,void 0,void 0,(function(){var r,i,o,s,c,u,l;return a(this,(function(a){switch(a.label){case 0:return r=null===n||void 0===n?void 0:n.bails,i=null===n||void 0===n?void 0:n.skipIfEmpty,o={name:(null===n||void 0===n?void 0:n.name)||"{field}",rules:U(t),bails:null===r||void 0===r||r,skipIfEmpty:null===i||void 0===i||i,forceRequired:!1,crossTable:(null===n||void 0===n?void 0:n.values)||{},names:(null===n||void 0===n?void 0:n.names)||{},customMessages:(null===n||void 0===n?void 0:n.customMessages)||{}},[4,V(o,e,n)];case 1:return s=a.sent(),c=[],u={},l={},s.errors.forEach((function(e){var t=e.msg();c.push(t),u[e.rule]=t,l[e.rule]=e.msg})),[2,{valid:s.valid,required:s.required,errors:c,failedRules:u,regenerateMap:l}]}}))}))}function V(e,t,n){var r=(void 0===n?{}:n).isInitial,i=void 0!==r&&r;return o(this,void 0,void 0,(function(){var n,r,o,s,c,u,l,d,h;return a(this,(function(a){switch(a.label){case 0:return[4,G(e,t)];case 1:if(n=a.sent(),r=n.shouldSkip,o=n.required,s=n.errors,r)return[2,{valid:!s.length,required:o,errors:s}];c=Object.keys(e.rules).filter((function(e){return!R.isRequireRule(e)})),u=c.length,l=0,a.label=2;case 2:return l<u?i&&R.isLazy(c[l])?[3,4]:(d=c[l],[4,z(e,t,{name:d,params:e.rules[d]})]):[3,5];case 3:if(h=a.sent(),!h.valid&&h.error&&(s.push(h.error),e.bails))return[2,{valid:!1,required:o,errors:s}];a.label=4;case 4:return l++,[3,2];case 5:return[2,{valid:!s.length,required:o,errors:s}]}}))}))}function G(e,t){return o(this,void 0,void 0,(function(){var n,r,i,o,s,c,h,f,p;return a(this,(function(a){switch(a.label){case 0:n=Object.keys(e.rules).filter(R.isRequireRule),r=n.length,i=[],o=u(t)||""===t||l(t),s=o&&e.skipIfEmpty,h=0,a.label=1;case 1:return h<r?(f=n[h],[4,z(e,t,{name:f,params:e.rules[f]})]):[3,4];case 2:if(p=a.sent(),!d(p))throw new Error("Require rules has to return an object (see docs)");if(void 0!==p.required&&(c=p.required),!p.valid&&p.error&&(i.push(p.error),e.bails))return[2,{shouldSkip:!0,required:p.required,errors:i}];a.label=3;case 3:return h++,[3,1];case 4:return(!o||c||e.skipIfEmpty)&&(e.bails||s)?[2,{shouldSkip:!c&&o,required:c,errors:i}]:[2,{shouldSkip:!1,required:c,errors:i}]}}))}))}function z(e,t,n){return o(this,void 0,void 0,(function(){var r,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:if(r=R.getRuleDefinition(n.name),!r||!r.validate)throw new Error("No such validator '"+n.name+"' exists.");return o=r.castValue?r.castValue(t):t,s=X(n.params,e.crossTable),[4,r.validate(o,s)];case 1:return c=a.sent(),"string"===typeof c?(u=i(i({},s||{}),{_field_:e.name,_value_:t,_rule_:n.name}),[2,{valid:!1,error:{rule:n.name,msg:function(){return C(c,u)}}}]):(d(c)||(c={valid:c}),[2,{valid:c.valid,required:c.required,error:c.valid?void 0:$(e,t,r,n.name,s)}])}}))}))}function $(e,t,n,r,o){var a,s=null!==(a=e.customMessages[r])&&void 0!==a?a:n.message,c=Y(e,n,r),u=K(e,n,r,s),l=u.userTargets,d=u.userMessage,h=i(i(i(i({},o||{}),{_field_:e.name,_value_:t,_rule_:r}),c),l);return{msg:function(){return W(d||P().defaultMessage,e.name,h)},rule:r}}function Y(e,t,n){var r=t.params;if(!r)return{};var i=r.filter((function(e){return e.isTarget})).length;if(i<=0)return{};var o={},a=e.rules[n];!Array.isArray(a)&&d(a)&&(a=r.map((function(e){return a[e.name]})));for(var s=0;s<r.length;s++){var c=r[s],u=a[s];if(m(u)){u=u.__locatorRef;var l=e.names[u]||u;o[c.name]=l,o["_"+c.name+"_"]=e.crossTable[u]}}return o}function K(e,t,n,r){var i={},o=e.rules[n],a=t.params||[];return o?(Object.keys(o).forEach((function(t,n){var r=o[t];if(!m(r))return{};var s=a[n];if(!s)return{};var c=r.__locatorRef;i[s.name]=e.names[c]||c,i["_"+s.name+"_"]=e.crossTable[c]})),{userTargets:i,userMessage:r}):{}}function W(e,t,n){return"function"===typeof e?e(t,n):C(e,i(i({},n),{_field_:t}))}function X(e,t){if(Array.isArray(e))return e.map((function(e){var n="string"===typeof e&&"@"===e[0]?e.slice(1):e;return n in t?t[n]:e}));var n={},r=function(e){return m(e)?e(t):e};return Object.keys(e).forEach((function(t){n[t]=r(e[t])})),n}var Q=function(){return{on:["input","blur"]}},Z=function(){return{on:["change","blur"]}},J=function(e){var t=e.errors;return t.length?{on:["input","change"]}:{on:["change","blur"]}},ee=function(){return{on:[]}},te={aggressive:Q,eager:J,passive:ee,lazy:Z},ne=new r["default"];(function(){function e(e,t){this.container={},this.locale=e,this.merge(t)}e.prototype.resolve=function(e,t,n){return this.format(this.locale,e,t,n)},e.prototype.format=function(e,t,n,r){var o,a,s,c,u,l,d,h,f,m=null===(s=null===(a=null===(o=this.container[e])||void 0===o?void 0:o.fields)||void 0===a?void 0:a[t])||void 0===s?void 0:s[n],g=null===(u=null===(c=this.container[e])||void 0===c?void 0:c.messages)||void 0===u?void 0:u[n];return f=m||g||"",f||(f="{_field_} is not valid"),t=null!==(h=null===(d=null===(l=this.container[e])||void 0===l?void 0:l.names)||void 0===d?void 0:d[t])&&void 0!==h?h:t,p(f)?f(t,r):C(f,i(i({},r),{_field_:t}))},e.prototype.merge=function(e){w(this.container,e)},e.prototype.hasRule=function(e){var t,n;return!!(null===(n=null===(t=this.container[this.locale])||void 0===t?void 0:t.messages)||void 0===n?void 0:n[e])}})();var re=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n},ie=function(e){return!!e&&(!!("undefined"!==typeof Event&&p(Event)&&e instanceof Event)||!(!e||!e.srcElement))};function oe(e){var t,n;if(!ie(e))return e;var r=e.target;if("file"===r.type&&r.files)return b(r.files);if(null===(t=r._vModifiers)||void 0===t?void 0:t.number){var i=parseFloat(r.value);return c(i)?r.value:i}if(null===(n=r._vModifiers)||void 0===n?void 0:n.trim){var o="string"===typeof r.value?r.value.trim():r.value;return o}return r.value}var ae=function(e){var t,n=(null===(t=e.data)||void 0===t?void 0:t.attrs)||e.elm;return!("input"!==e.tag||n&&n.type)||("textarea"===e.tag||y(["text","password","search","email","tel","url","number"],null===n||void 0===n?void 0:n.type))};function se(e){if(e.data){var t=e.data;if("model"in t)return t.model;if(e.data.directives)return v(e.data.directives,(function(e){return"model"===e.name}))}}function ce(e){var t,n,r=se(e);if(r)return{value:r.value};var i=de(e),o=(null===i||void 0===i?void 0:i.prop)||"value";if((null===(t=e.componentOptions)||void 0===t?void 0:t.propsData)&&o in e.componentOptions.propsData){var a=e.componentOptions.propsData;return{value:a[o]}}return(null===(n=e.data)||void 0===n?void 0:n.domProps)&&"value"in e.data.domProps?{value:e.data.domProps.value}:void 0}function ue(e){return Array.isArray(e)?e:Array.isArray(e.children)?e.children:e.componentOptions&&Array.isArray(e.componentOptions.children)?e.componentOptions.children:[]}function le(e){if(!Array.isArray(e)&&void 0!==ce(e))return[e];var t=ue(e);return t.reduce((function(e,t){var n=le(t);return n.length&&e.push.apply(e,n),e}),[])}function de(e){return e.componentOptions?e.componentOptions.Ctor.options.model:null}function he(e,t,n){if(u(e[t]))e[t]=[n];else{if(p(e[t])&&e[t].fns){var r=e[t];return r.fns=Array.isArray(r.fns)?r.fns:[r.fns],void(y(r.fns,n)||r.fns.push(n))}if(p(e[t])){var i=e[t];e[t]=[i]}Array.isArray(e[t])&&!y(e[t],n)&&e[t].push(n)}}function fe(e,t,n){e.data||(e.data={}),u(e.data.on)&&(e.data.on={}),he(e.data.on,t,n)}function pe(e,t,n){e.componentOptions&&(e.componentOptions.listeners||(e.componentOptions.listeners={}),he(e.componentOptions.listeners,t,n))}function me(e,t,n){e.componentOptions?pe(e,t,n):fe(e,t,n)}function ge(e,t){var n;if(e.componentOptions){var r=(de(e)||{event:"input"}).event;return r||"input"}return(null===(n=null===t||void 0===t?void 0:t.modifiers)||void 0===n?void 0:n.lazy)?"change":ae(e)?"input":"change"}function ve(e){return y(["input","select","textarea"],e.tag)}function ye(e){var t,n=null===(t=e.data)||void 0===t?void 0:t.attrs,r={};return n?("email"===n.type&&R.getRuleDefinition("email")&&(r.email=["multiple"in n]),n.pattern&&R.getRuleDefinition("regex")&&(r.regex=n.pattern),n.maxlength>=0&&R.getRuleDefinition("max")&&(r.max=n.maxlength),n.minlength>=0&&R.getRuleDefinition("min")&&(r.min=n.minlength),"number"===n.type&&(f(n.min)&&R.getRuleDefinition("min_value")&&(r.min_value=Number(n.min)),f(n.max)&&R.getRuleDefinition("max_value")&&(r.max_value=Number(n.max))),r):r}function be(e){var t,n=["input","select","textarea"],r=null===(t=e.data)||void 0===t?void 0:t.attrs;if(!y(n,e.tag)||!r)return{};var o={};return"required"in r&&!1!==r.required&&R.getRuleDefinition("required")&&(o.required="checkbox"!==r.type||[!0]),ae(e)?U(i(i({},o),ye(e))):U(o)}function _e(e,t){return e.$scopedSlots.default?e.$scopedSlots.default(t)||[]:e.$slots.default||[]}function Ee(e,t){return!(e._ignoreImmediate||!e.immediate)||(!(h(e.value,t)||!e.normalizedEvents.length)||(!!e._needsValidation||!e.initialized&&void 0===t))}function we(e){return i(i({},e.flags),{errors:e.errors,classes:e.classes,failedRules:e.failedRules,reset:function(){return e.reset()},validate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.validate.apply(e,t)},ariaInput:{"aria-invalid":e.flags.invalid?"true":"false","aria-required":e.isRequired?"true":"false","aria-errormessage":"vee_"+e.id},ariaMsg:{id:"vee_"+e.id,"aria-live":e.errors.length?"assertive":"off"}})}function Te(e,t){e.initialized||(e.initialValue=t);var n=Ee(e,t);if(e._needsValidation=!1,e.value=t,e._ignoreImmediate=!0,n){var r=function(){if(e.immediate||e.flags.validated)return Se(e);e.validateSilent()};e.initialized?r():e.$once("hook:mounted",(function(){return r()}))}}function Ie(e){var t=p(e.mode)?e.mode:te[e.mode];return t(e)}function Se(e){var t=e.validateSilent();return e._pendingValidation=t,t.then((function(n){return t===e._pendingValidation&&(e.applyResult(n),e._pendingValidation=void 0),n}))}function Ce(e){e.$veeOnInput||(e.$veeOnInput=function(t){e.syncValue(t),e.setFlags({dirty:!0,pristine:!1})});var t=e.$veeOnInput;e.$veeOnBlur||(e.$veeOnBlur=function(){e.setFlags({touched:!0,untouched:!1})});var n=e.$veeOnBlur,r=e.$veeHandler,i=Ie(e);return r&&e.$veeDebounce===e.debounce||(r=I((function(){e.$nextTick((function(){e._pendingReset||Se(e),e._pendingReset=!1}))}),i.debounce||e.debounce),e.$veeHandler=r,e.$veeDebounce=e.debounce),{onInput:t,onBlur:n,onValidate:r}}function Ae(e,t){var n=ce(t);e._inputEventName=e._inputEventName||ge(t,se(t)),Te(e,null===n||void 0===n?void 0:n.value);var r=Ce(e),i=r.onInput,o=r.onBlur,a=r.onValidate;me(t,e._inputEventName,i),me(t,"blur",o),e.normalizedEvents.forEach((function(e){me(t,e,a)})),e.initialized=!0}var Oe=0;function Re(){var e=[],t="",n={errors:e,value:void 0,initialized:!1,initialValue:void 0,flags:T(),failedRules:{},isActive:!0,fieldName:t,id:""};return n}var ke=r["default"].extend({name:"ValidationProvider",inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver||(this.$vnode.context.$_veeObserver=De()),this.$vnode.context.$_veeObserver}}},props:{vid:{type:String,default:""},name:{type:String,default:null},mode:{type:[String,Function],default:function(){return P().mode}},rules:{type:[Object,String],default:null},immediate:{type:Boolean,default:!1},bails:{type:Boolean,default:function(){return P().bails}},skipIfEmpty:{type:Boolean,default:function(){return P().skipOptional}},debounce:{type:Number,default:0},tag:{type:String,default:"span"},slim:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},customMessages:{type:Object,default:function(){return{}}},detectInput:{type:Boolean,default:!0}},watch:{rules:{deep:!0,handler:function(e,t){this._needsValidation=!re(e,t)}}},data:Re,computed:{fieldDeps:function(){var e=this;return Object.keys(this.normalizedRules).reduce((function(t,n){var r=H(e.normalizedRules[n]).map((function(e){return m(e)?e.__locatorRef:e.slice(1)}));return t.push.apply(t,r),r.forEach((function(t){Le(e,t)})),t}),[])},normalizedEvents:function(){var e=this,t=Ie(this).on;return(t||[]).map((function(t){return"input"===t?e._inputEventName:t}))},isRequired:function(){var e=i(i({},this._resolvedRules),this.normalizedRules),t=Object.keys(e).some(R.isRequireRule);return this.flags.required=!!t,t},classes:function(){var e=P().classes;return xe(e,this.flags)},normalizedRules:function(){return U(this.rules)}},mounted:function(){var e=this,t=function(){if(e.flags.validated){var t=e._regenerateMap;if(t){var n=[],r={};return Object.keys(t).forEach((function(e){var i=t[e]();n.push(i),r[e]=i})),void e.applyResult({errors:n,failedRules:r,regenerateMap:t})}e.validate()}};ne.$on("change:locale",t),this.$on("hook:beforeDestroy",(function(){ne.$off("change:locale",t)}))},render:function(e){var t=this;this.registerField();var n=we(this),r=_e(this,n);if(this.detectInput){var i=le(r);i.length&&i.forEach((function(e,n){var r,i,o,a,s,c;if(y(["checkbox","radio"],null===(i=null===(r=e.data)||void 0===r?void 0:r.attrs)||void 0===i?void 0:i.type)||!(n>0)){var u=P().useConstraintAttrs?be(e):{};re(t._resolvedRules,u)||(t._needsValidation=!0),ve(e)&&(t.fieldName=(null===(a=null===(o=e.data)||void 0===o?void 0:o.attrs)||void 0===a?void 0:a.name)||(null===(c=null===(s=e.data)||void 0===s?void 0:s.attrs)||void 0===c?void 0:c.id)),t._resolvedRules=u,Ae(t,e)}}))}return this.slim&&r.length<=1?r[0]:e(this.tag,r)},beforeDestroy:function(){this.$_veeObserver.unobserve(this.id)},activated:function(){this.isActive=!0},deactivated:function(){this.isActive=!1},methods:{setFlags:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags[n]=e[n]}))},syncValue:function(e){var t=oe(e);this.value=t,this.flags.changed=!re(this.initialValue,t)},reset:function(){var e=this;this.errors=[],this.initialValue=this.value;var t=T();t.required=this.isRequired,this.setFlags(t),this.failedRules={},this.validateSilent(),this._pendingValidation=void 0,this._pendingReset=!0,setTimeout((function(){e._pendingReset=!1}),this.debounce)},validate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(this,void 0,void 0,(function(){return a(this,(function(t){return e.length>0&&this.syncValue(e[0]),[2,Se(this)]}))}))},validateSilent:function(){return o(this,void 0,void 0,(function(){var e,t;return a(this,(function(n){switch(n.label){case 0:return this.setFlags({pending:!0}),e=i(i({},this._resolvedRules),this.normalizedRules),Object.defineProperty(e,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),[4,j(this.value,e,i(i({name:this.name||this.fieldName},Me(this)),{bails:this.bails,skipIfEmpty:this.skipIfEmpty,isInitial:!this.initialized,customMessages:this.customMessages}))];case 1:return t=n.sent(),this.setFlags({pending:!1,valid:t.valid,invalid:!t.valid}),void 0!==t.required&&this.setFlags({required:t.required}),[2,t]}}))}))},setErrors:function(e){this.applyResult({errors:e,failedRules:{}})},applyResult:function(e){var t=e.errors,n=e.failedRules,r=e.regenerateMap;this.errors=t,this._regenerateMap=r,this.failedRules=i({},n||{}),this.setFlags({valid:!t.length,passed:!t.length,invalid:!!t.length,failed:!!t.length,validated:!0,changed:!re(this.value,this.initialValue)})},registerField:function(){Pe(this)},checkComputesRequiredState:function(){var e=i(i({},this._resolvedRules),this.normalizedRules),t=Object.keys(e).some(R.isRequireRule);return t}}});function xe(e,t){for(var n={},r=Object.keys(t),i=r.length,o=function(i){var o=r[i],a=e&&e[o]||o,s=t[o];return u(s)?"continue":"valid"!==o&&"invalid"!==o||t.validated?void("string"===typeof a?n[a]=s:Array.isArray(a)&&a.forEach((function(e){n[e]=s}))):"continue"},a=0;a<i;a++)o(a);return n}function Me(e){var t=e.$_veeObserver.refs,n={names:{},values:{}};return e.fieldDeps.reduce((function(e,n){return t[n]?(e.values[n]=t[n].value,e.names[n]=t[n].name,e):e}),n)}function Ne(e){return e.vid?e.vid:e.name?e.name:e.id?e.id:e.fieldName?e.fieldName:(Oe++,"_vee_"+Oe)}function Pe(e){var t=Ne(e),n=e.id;!e.isActive||n===t&&e.$_veeObserver.refs[n]||(n!==t&&e.$_veeObserver.refs[n]===e&&e.$_veeObserver.unobserve(n),e.id=t,e.$_veeObserver.observe(e))}function De(){return{refs:{},observe:function(e){this.refs[e.id]=e},unobserve:function(e){delete this.refs[e]}}}function Le(e,t,n){void 0===n&&(n=!0);var r=e.$_veeObserver.refs;if(e._veeWatchers||(e._veeWatchers={}),!r[t]&&n)return e.$once("hook:mounted",(function(){Le(e,t,!1)}));!p(e._veeWatchers[t])&&r[t]&&(e._veeWatchers[t]=r[t].$watch("value",(function(){var t=e.checkComputesRequiredState();e.flags.validated&&(e._needsValidation=!0,e.validate()),t&&!e.flags.validated&&e.validateSilent()})))}var Ue=[["pristine","every"],["dirty","some"],["touched","some"],["untouched","every"],["valid","every"],["invalid","some"],["pending","some"],["validated","every"],["changed","some"],["passed","every"],["failed","some"]],Fe=0;function qe(){var e={},t={},n=ze(),r={},i=[];return{id:"",refs:e,observers:i,errors:t,flags:n,fields:r}}function Be(){return{$_veeObserver:this}}var He=r["default"].extend({name:"ValidationObserver",provide:Be,inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver?this.$vnode.context.$_veeObserver:null}}},props:{tag:{type:String,default:"span"},vid:{type:String,default:function(){return"obs_"+Fe++}},slim:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:qe,created:function(){var e=this;this.id=this.vid,Ve(this);var t=I((function(t){var n=t.errors,r=t.flags,i=t.fields;e.errors=n,e.flags=r,e.fields=i}),16);this.$watch($e,t)},activated:function(){Ve(this)},deactivated:function(){je(this)},beforeDestroy:function(){je(this)},render:function(e){var t=_e(this,Ge(this));return this.slim&&t.length<=1?t[0]:e(this.tag,{on:this.$listeners},t)},methods:{observe:function(e,t){var n;void 0===t&&(t="provider"),"observer"!==t?this.refs=i(i({},this.refs),(n={},n[e.id]=e,n)):this.observers.push(e)},unobserve:function(e,t){if(void 0===t&&(t="provider"),"provider"!==t){var n=g(this.observers,(function(t){return t.id===e}));-1!==n&&this.observers.splice(n,1)}else{var r=this.refs[e];if(!r)return;this.$delete(this.refs,e)}},validateWithInfo:function(e){var t=(void 0===e?{}:e).silent,n=void 0!==t&&t;return o(this,void 0,void 0,(function(){var e,t,r,i,o,c;return a(this,(function(a){switch(a.label){case 0:return[4,Promise.all(s(E(this.refs).filter((function(e){return!e.disabled})).map((function(e){return e[n?"validateSilent":"validate"]().then((function(e){return e.valid}))})),this.observers.filter((function(e){return!e.disabled})).map((function(e){return e.validate({silent:n})}))))];case 1:return e=a.sent(),t=e.every((function(e){return e})),r=$e.call(this),i=r.errors,o=r.flags,c=r.fields,this.errors=i,this.flags=o,this.fields=c,[2,{errors:i,flags:o,fields:c,isValid:t}]}}))}))},validate:function(e){var t=(void 0===e?{}:e).silent,n=void 0!==t&&t;return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,this.validateWithInfo({silent:n})];case 1:return e=t.sent().isValid,[2,e]}}))}))},handleSubmit:function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return[4,this.validate()];case 1:return t=n.sent(),t&&e?[2,e()]:[2]}}))}))},reset:function(){return s(E(this.refs),this.observers).forEach((function(e){return e.reset()}))},setErrors:function(e){var t=this;Object.keys(e).forEach((function(n){var r=t.refs[n];if(r){var i=e[n]||[];i="string"===typeof i?[i]:i,r.setErrors(i)}})),this.observers.forEach((function(t){t.setErrors(e)}))}}});function je(e){e.$_veeObserver&&e.$_veeObserver.unobserve(e.id,"observer")}function Ve(e){e.$_veeObserver&&e.$_veeObserver.observe(e,"observer")}function Ge(e){return i(i({},e.flags),{errors:e.errors,fields:e.fields,validate:e.validate,validateWithInfo:e.validateWithInfo,passes:e.handleSubmit,handleSubmit:e.handleSubmit,reset:e.reset})}function ze(){return i(i({},T()),{valid:!0,invalid:!1})}function $e(){for(var e=s(E(this.refs),this.observers.filter((function(e){return!e.disabled}))),t={},n=ze(),r={},o=e.length,a=0;a<o;a++){var c=e[a];Array.isArray(c.errors)?(t[c.id]=c.errors,r[c.id]=i({id:c.id,name:c.name,failedRules:c.failedRules},c.flags)):(t=i(i({},t),c.errors),r=i(i({},r),c.fields))}return Ue.forEach((function(t){var r=t[0],i=t[1];n[r]=e[i]((function(e){return e.flags[r]}))})),{errors:t,flags:n,fields:r}}},54705:function(e,t,n){var r=n(81653),i={autoSetContainer:!1,appendToBody:!0},o={install:function(e){var t="3."===e.version.slice(0,2)?e.config.globalProperties:e.prototype;t.$clipboardConfig=i,t.$copyText=function(e,t){return new Promise((function(n,o){var a=document.createElement("button"),s=new r(a,{text:function(){return e},action:function(){return"copy"},container:"object"===typeof t?t:document.body});s.on("success",(function(e){s.destroy(),n(e)})),s.on("error",(function(e){s.destroy(),o(e)})),i.appendToBody&&document.body.appendChild(a),a.click(),i.appendToBody&&document.body.removeChild(a)}))},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var o=new r(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:i.autoSetContainer?e:void 0});o.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),o.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=o}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard))}})},config:i};e.exports=o},75124:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}n.d(t,{Z:function(){return B}});var i=!1;if("undefined"!==typeof window){var o={get passive(){i=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var a="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),s=[],c=!1,u=-1,l=void 0,d=void 0,h=function(e){return s.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},f=function(e){var t=e||window.event;return!!h(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},p=function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(d=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")},m=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)},g=function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight},v=function(e,t){var n=e.targetTouches[0].clientY-u;return!h(e.target)&&(t&&0===t.scrollTop&&n>0||g(t)&&n<0?f(e):(e.stopPropagation(),!0))},y=function(e,t){if(e){if(!s.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};s=[].concat(r(s),[n]),a?(e.ontouchstart=function(e){1===e.targetTouches.length&&(u=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&v(t,e)},c||(document.addEventListener("touchmove",f,i?{passive:!1}:void 0),c=!0)):p(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},b=function(e){e?(s=s.filter((function(t){return t.targetElement!==e})),a?(e.ontouchstart=null,e.ontouchmove=null,c&&0===s.length&&(document.removeEventListener("touchmove",f,i?{passive:!1}:void 0),c=!1)):s.length||m()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},_=["media","srcset","sizes","src"],E={inserted:function(e){function t(){var t=I(e,"img"),n=I(e,"picture");if(t)T(t),w(t);else if(n){var r=I(n,"img"),i=Array.from(n.children).filter((function(e){return"SOURCE"===e.nodeName}));r&&(T(r),i.length&&i.forEach((function(e){w(e)})),w(r))}}function n(n,r){n.forEach((function(n){n.isIntersecting&&(t(),r.unobserve(e))}))}function r(){var t={root:null,threshold:"0"},r=new IntersectionObserver(n,t);r.observe(e)}window["IntersectionObserver"]?r():t()}};function w(e){_.forEach((function(t){var n=e.dataset[t];n&&(e[t]=n,e.removeAttribute("data-"+t))}))}function T(e){e.addEventListener("load",(function(){setTimeout((function(){return e.classList.add("loaded")}),100)})),e.addEventListener("error",(function(){return console.log("error")}))}function I(e,t){return Array.from(e.children).find((function(e){return e.nodeName===t.toUpperCase()}))}var S={inserted:function(e){function t(e){var t=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/,n=!!e.match(t)&&RegExp.$1;return!!n}function n(){var n=e.tagName,r=e.dataset.autoplay;if(r){if("VIDEO"===n)return e.muted=!0,void(e.autoplay=!0);if("IFRAME"===n){var i=new URL(e.src),o="muted";t(e.src)&&(o="mute"),i.searchParams.append(o,1),i.searchParams.append("autoplay",1),e.src=i.href}}}function r(t,r){t.forEach((function(t){t.isIntersecting&&(n(),r.unobserve(e))}))}function i(){var t={root:null,threshold:"0"},n=new IntersectionObserver(r,t);n.observe(e)}window["IntersectionObserver"]?i():loadImage()}},C={directives:{lazyload:E,autoplayObserver:S},data:function(){return{initialMouseX:0,initialMouseY:0,endMouseX:0,endMouseY:0,swipeType:null,IsSwipping:!1,isDraggingSwipe:!1,prevTime:0,xSwipeWrapper:0,ySwipeWrapper:0,swipeAnimation:null,swipeInterval:null,lightboxInnerWidth:null,imgIndex:this.index,isVisible:!1,paddingBottom:!1,imageLoading:!1,showThumbs:!1,isFullScreenMode:!1,aspectRatioVideo:{width:"auto",height:"auto"},buttonsVisible:!0,scale:1,top:0,left:0,lastX:0,lastY:0,isDraging:!1,canZoom:!0,isZooming:!1,transition:"all .3s ease",zoomBar:0,isPlayingSlideShow:!1,intervalProgress:null,loopData:!1,stylesInterval:{display:"block"}}},props:{index:{required:!0},effect:{type:String,default:"swipe"},items:{type:Array,required:!0},loop:{type:Boolean,default:!0},slideshow:{type:Boolean,default:!0},slideshowColorBar:{type:String,default:"#fa4242"},slideshowDuration:{type:Number,default:3e3},useZoomBar:{type:Boolean,default:!1},closeOnClickOutsideMobile:{type:Boolean,default:!1},srcName:{type:String,default:"src"},srcSetName:{type:String,default:"srcset"},srcThumb:{type:String,default:"thumb"},srcMediaType:{type:String,default:"mediaType"},overlayColor:{type:String,default:"rgba(30, 30, 30, .9)"},zIndex:{type:Number,default:9999},gallery:{type:Boolean,default:!0},fullScreen:{type:Boolean,default:!1},thumbsPosition:{type:String,default:"right"},youtubeCookies:{type:Boolean,default:!0},enableWheelEvent:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},disableZoom:{type:Boolean,default:!1},dir:{type:String,default:"ltr"},enableScrollLock:{type:Boolean,default:!0},translations:{type:Object,default:function(){return{previous:"Previous",next:"Next",showThumbNails:"Show thumbnails",playSlideShow:"Play slideshow",fullScreen:"Fullscreen",close:"Close"}}}},watch:{zoomBar:function(e,t){var n;if(this.isZooming){n="swipe"==this.effect?this.$refs.items[this.imgIndex].childNodes[0]:this.$refs.items.childNodes[0];var r=1.6+e/10;n.style.transform="translate3d(calc(-50% + "+this.left+"px), calc(-50% + "+this.top+"px), 0px) scale3d("+r+", "+r+", "+r+")"}},showThumbs:function(e,t){var n=212,r="all .3s ease";window.innerWidth<767&&(n=102,r=null),"bottom"===this.thumbsPosition&&(n=0);var i=this;this.swipeAnimation=r,e?"rtl"===this.dir?this.xSwipeWrapper=this.imgIndex*(window.innerWidth-n)+30*this.imgIndex:this.xSwipeWrapper=-this.imgIndex*(window.innerWidth-n)-30*this.imgIndex:"rtl"===this.dir?this.xSwipeWrapper=this.imgIndex*window.innerWidth+30*this.imgIndex:this.xSwipeWrapper=-this.imgIndex*window.innerWidth-30*this.imgIndex,setTimeout((function(){i.swipeAnimation=null}),300)},index:function(e,t){var n=this;document.querySelector("body");null!==e?(this.swipeType=null,this.initialMouseY=0,this.ySwipeWrapper=0,this.loopData=this.loop,"swipe"===this.effect&&(this.loopData=!1,window.addEventListener("resize",this.xPositionOnResize)),this.imgIndex=e,this.isVisible=!0,window.addEventListener("keydown",this.eventListener),this.enableWheelEvent&&window.addEventListener("wheel",this.wheelEvent),setTimeout((function(){window.addEventListener("click",n.showButtons)}),200),this.enableScrollLock&&setTimeout((function(){n.setCompensateForScrollbar(),y(n.$refs.coolLightbox)}),50)):(this.isVisible=!1,this.stopSlideShow(),this.startsX=0,this.initialMouseY=0,this.swipeType=null,clearInterval(this.swipeInterval),this.swipeAnimation=null,this.isDraggingSwipe=!1,this.isZooming=!0,window.removeEventListener("keydown",this.eventListener),this.enableScrollLock&&(n.removeCompensateForScrollbar(),b(n.$refs.coolLightbox)),window.removeEventListener("click",this.showButtons),window.removeEventListener("resize",this.xPositionOnResize),this.enableWheelEvent&&window.removeEventListener("wheel",this.wheelEvent))},imgIndex:function(e,t){var n=this;this.$nextTick((function(){"swipe"===n.effect&&(n.setLightboxInnerWidth(),n.setXPosition(e)),null!==e&null===t&&n.$emit("on-open",e),null!==e&&(e!==t&&(n.getYoutubeUrl(n.getItemSrc(e))||n.getVimeoUrl(n.getItemSrc(e))||n.stopVideos()),n.getVideoUrl(n.getItemSrc(e))||n.is_cached(n.getItemSrc(e))||(n.imageLoading=!0),n.addCaptionPadding(),("swipe"===n.effect||n.getVideoUrl(n.getItemSrc(e)))&&n.setAspectRatioVideo()),n.resetZoom(),n.swipeType=null,n.ySwipeWrapper=0}))}},beforeDestroy:function(){this.enableScrollLock&&(this.removeCompensateForScrollbar(),this.$refs.coolLightbox&&b(this.$refs.coolLightbox))},methods:{getExtFromItem:function(e){if(null===e)return!1;if(this.checkIfIsObject(e)){var t=this.items[e];return t["ext"]?t["ext"]:"mp4"}},stopVideos:function(){var e=document.getElementsByClassName("cool-lightbox-video"),t=function(e){return!!(e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2)};e.length>0&&Array.prototype.forEach.call(e,(function(e){var n=e.tagName;if("IFRAME"===n){var r=e.src;return e.src=r}if(t(e))return e.pause()}))},removeCompensateForScrollbar:function(){document.body.classList.remove("compensate-for-scrollbar");var e=document.getElementById("coollightbox-style-noscroll");null!==e&&document.getElementById("coollightbox-style-noscroll").remove()},setCompensateForScrollbar:function(){var e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);!e&&document.body.scrollHeight>window.innerHeight&&(document.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",'<style id="coollightbox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(window.innerWidth-document.documentElement.clientWidth)+"px;}</style>"),document.body.classList.add("compensate-for-scrollbar"))},setAutoplay:function(e){return!!(this.checkIfIsObject(e)&&this.items[e].hasOwnProperty("autoplay")&&this.items[e].autoplay)},toggleFullScreenMode:function(){this.isFullScreenMode?this.closeFullscreen():this.fullScreenMode(),this.isFullScreenMode=!this.isFullScreenMode},closeFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},fullScreenMode:function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},checkIfIsButton:function(e){var t=".cool-lightbox__iframe *, .cool-lightbox-button, .cool-lightbox-button *, .cool-lightbox-toolbar__btn, .cool-lightbox-toolbar__btn *, .cool-lightbox-caption h6, .cool-lightbox-caption p, .cool-lightbox-caption a";return!!e.target.matches(t)},startSwipe:function(e){return!this.isZooming&&(!this.checkIfIsButton(e)&&(clearInterval(this.swipeInterval),this.swipeAnimation=null,this.isDraggingSwipe=!0,this.initialMouseX=this.getMouseXPosFromEvent(e),void(this.initialMouseY=this.getMouseYPosFromEvent(e))))},continueSwipe:function(e){if(this.isDraggingSwipe){this.IsSwipping=!0;var t=this.getMouseXPosFromEvent(e),n=this.getMouseYPosFromEvent(e),r=this.lightboxInnerWidth,i=Math.abs(t-this.initialMouseX),o=Math.abs(n-this.initialMouseY);null==this.swipeType&&(o>5||i>5)&&(this.swipeType=o>i?"v":"h"),"h"==this.swipeType?"rtl"===this.dir?this.xSwipeWrapper=r*this.imgIndex+t-this.initialMouseX+30*this.imgIndex:this.xSwipeWrapper=-r*this.imgIndex+t-this.initialMouseX-30*this.imgIndex:this.ySwipeWrapper=n-this.initialMouseY,"touchmove"===e.type&&(this.endMouseX=this.getMouseXPosFromEvent(e),this.endMouseY=this.getMouseYPosFromEvent(e))}},endSwipe:function(e){if(this.checkIfIsButton(e)&&0===this.initialMouseX)return!1;var t=this,n=this.swipeType;if(this.isDraggingSwipe=!1,0===this.initialMouseX&&"h"==n)return!1;if("touchend"!==e.type)this.endMouseX=this.getMouseXPosFromEvent(e),this.endMouseY=this.getMouseYPosFromEvent(e);else if(0===this.endMouseX)return;if(!(this.endMouseX-this.initialMouseX===0&&"h"==n||this.isZooming||this.endMouseY-this.initialMouseY===0&&"v"==n)){if(this.setSwipeAnimation(),setTimeout((function(){t.IsSwipping=!1,t.initialMouseX=0,t.endMouseX=0}),10),"h"===this.swipeType){if(this.endMouseX-this.initialMouseX<-40)return"rtl"===this.dir?this.swipeToLeft():this.swipeToRight();if(this.endMouseX-this.initialMouseX>40)return"rtl"===this.dir?this.swipeToRight():this.swipeToLeft()}if("v"===this.swipeType){var r=Math.abs(this.endMouseY-this.initialMouseY);r>=90?this.close():this.ySwipeWrapper=0}this.swipeType=null;var i=this.lightboxInnerWidth;"rtl"!==this.dir?this.xSwipeWrapper=-this.imgIndex*i-30*this.imgIndex:this.xSwipeWrapper=this.imgIndex*i+30*this.imgIndex}},swipeToLeft:function(){if(!this.hasPrevious&&"swipe"===this.effect)return"rtl"===this.dir?this.xSwipeWrapper=this.imgIndex*this.lightboxInnerWidth+30*this.imgIndex:this.xSwipeWrapper=-this.imgIndex*this.lightboxInnerWidth-30*this.imgIndex;this.changeIndexToPrev()},swipeToRight:function(){if(!this.hasNext&&"swipe"===this.effect)return"rtl"===this.dir?this.xSwipeWrapper=this.imgIndex*this.lightboxInnerWidth+30*this.imgIndex:this.xSwipeWrapper=-this.imgIndex*this.lightboxInnerWidth-30*this.imgIndex;this.changeIndexToNext()},getMouseXPosFromEvent:function(e){return-1!==e.type.indexOf("mouse")?e.clientX:e.touches[0].clientX},getMouseYPosFromEvent:function(e){return-1!==e.type.indexOf("mouse")?e.clientY:e.touches[0].clientY},is_cached:function(e){var t=new Image;return t.src=e,t.complete},imageLoaded:function(){this.imageLoading=!1},itemThumb:function(e,t){var n=this.getItemThumb(t);if(n)return n;var r=this.getYoutubeID(e);if(r)return"https://img.youtube.com/vi/"+r+"/mqdefault.jpg";var i=this.getVimeoID(e);return!i&&e},isItemPicture:function(e){if(null===e)return!1;var t=this.items[e];return!!this.checkIfIsObject(e)&&t.picture},getPictureSources:function(e){if(null===e)return!1;var t=this.items[e].picture;return t.sources?t.sources:[]},getItemSrc:function(e){if(null===e)return!1;var t=this.items[e];return this.checkIfIsObject(e)?t[this.srcName]:t},getItemSrcSet:function(e){if(null===e)return!1;var t=this.items[e];return this.checkIfIsObject(e)?t[this.srcSetName]:null},getItemSizes:function(e){if(null===e)return!1;var t=this.items[e];return this.checkIfIsObject(e)?t.sizes:null},getItemAlt:function(e){if(null===e)return!1;var t=this.items[e];return this.checkIfIsObject(e)?t.alt:null},getItemThumb:function(e){if(null===e)return!1;var t=this.items[e];return this.checkIfIsObject(e)?t[this.srcThumb]:!this.getVideoUrl(t)&&t},getMediaType:function(e){if(null===e)return!1;if(this.checkIfIsObject(e)){var t=this.items[e];if(t[this.srcMediaType])return t[this.srcMediaType]}return this.getVideoUrl(this.getItemSrc(e))?"video":this.getPDFurl(this.getItemSrc(e))?"iframe":"image"},togglePlaySlideshow:function(){return!!this.slideshow&&(!(!this.hasNext&&!this.loopData)&&(this.isPlayingSlideShow=!this.isPlayingSlideShow,void(this.isPlayingSlideShow?this.move():this.stopSlideShow())))},stopSlideShow:function(){this.isPlayingSlideShow=!1,clearInterval(this.intervalProgress),this.stylesInterval={transform:"scaleX(0)",transition:"none"}},move:function(){var e=this;function t(){e.stylesInterval={transform:"scaleX(0)",transition:"none"},"rtl"===e.dir?e.onPrevClick(!0):e.onNextClick(!0),e.hasNext||e.loopData?setTimeout((function(){e.stylesInterval={transform:"scaleX(1)",background:e.slideshowColorBar,"transition-duration":e.slideshowDuration+"ms"}}),50):e.stopSlideShow()}this.progressWidth=100,this.intervalProgress=setInterval(t,this.slideshowDuration+90),e.stylesInterval={transform:"scaleX(1)",background:this.slideshowColorBar,"transition-duration":this.slideshowDuration+"ms"}},showButtons:function(e){if(this.disableZoom&&!this.checkIfIsButton(e)){var t=this;setTimeout((function(){t.buttonsVisible=!t.buttonsVisible}),100)}},checkMouseEventPropButton:function(e){return!!this.isZooming&&0===e},handleMouseDown:function(e){("touchstart"===e.type&&this.isZooming||"mousedown"===e.type&&this.checkMouseEventPropButton(e.button))&&(this.lastX=("touchstart"===e.type?e.touches[0]:e).clientX,this.lastY=("touchstart"===e.type?e.touches[0]:e).clientY,this.isZooming&&(this.isDraging=!0),e.stopPropagation())},handleMouseUp:function(e){if("touchend"===e.type&&this.isZooming||"mouseup"===e.type&&this.checkMouseEventPropButton(e.button)){this.isDraging=!1,this.lastX=this.lastY=0;var t=this;setTimeout((function(){t.canZoom=!0}),100)}},handleMouseLeave:function(e){if("mouseleave"===e.type&&this.isZooming){this.isDraging=!1,this.lastX=this.lastY=0;var t=this;setTimeout((function(){t.canZoom=!0}),100)}},handleMouseMove:function(e){if("touchmove"===e.type&&this.isZooming||"mousemove"===e.type&&this.checkMouseEventPropButton(e.button)){if(this.isDraging){var t=("touchmove"===e.type?e.touches[0]:e).clientX,n=("touchmove"===e.type?e.touches[0]:e).clientY;this.top=this.top-this.lastY+n,this.left=this.left-this.lastX+t,this.lastX=t,this.lastY=n,this.canZoom=!1;var r="PICTURE"===e.target.parentNode.nodeName?e.target.parentNode.parentNode:e.target.parentNode,i=1.6+this.zoomBar/10;r.style.transform="translate3d(calc(-50% + "+this.left+"px), calc(-50% + "+this.top+"px), 0px) scale3d("+i+", "+i+", "+i+")"}e.stopPropagation()}},zoomImage:function(e){if(this.disableZoom)return!1;if(!this.canZoom)return!1;if(this.IsSwipping)return!1;var t;t="swipe"==this.effect?this.$refs.items[this.imgIndex].childNodes[0]:this.$refs.items.childNodes[0];var n=this.isZooming,r=this;n?this.isDraging||(this.isZooming=!1,this.zoomBar=0):this.isZooming=!0,this.isZooming?(this.stopSlideShow(),t.style.transform="translate3d(calc(-50%), calc(-50%), 0px) scale3d(1.6, 1.6, 1.6)",this.buttonsVisible=!1,setTimeout((function(){r.transition="all .0s ease"}),100)):(this.buttonsVisible=!0,this.resetZoom())},resetZoom:function(){var e;(this.scale=1,this.left=0,this.top=0,this.zoomBar=0,this.isZooming=!1,this.swipeType=null,this.transition="all .3s ease",null!=this.imgIndex)&&(e="swipe"==this.effect?this.$refs.items[this.imgIndex].childNodes[0]:this.$refs.items.childNodes[0],this.disableZoom?e.style.transform="translate3d(calc(-50% + "+this.left+"px), calc(-50% + "+this.top+"px), 0px)":e.style.transform="translate3d(calc(-50% + "+this.left+"px), calc(-50% + "+this.top+"px), 0px) scale3d(1, 1, 1)",this.initialMouseX=0,window.innerWidth>=700&&(this.buttonsVisible=!0))},setAspectRatioVideo:function(){var e=this,t=document.getElementsByClassName("cool-lightbox__inner");t=t[0];var n=getComputedStyle(t);if(window.innerWidth<1440){var r=t.clientWidth,i=Math.round(r/16*9);this.aspectRatioVideo.height=i+"px",this.aspectRatioVideo.width=r+"px"}else setTimeout((function(){var r=t.clientHeight;r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);var i=r/9*16;e.aspectRatioVideo.height=r+"px",e.aspectRatioVideo.width=i+"px"}),150)},close:function(){this.stopSlideShow(),this.swipeType=null,this.$emit("close",this.imgIndex),this.showThumbs=!1,this.imgIndex=null},wheelEvent:function(e){var t=350,n=(new Date).getTime(),r=e.deltaY>0?"top":"down";if(!(n-this.prevTime<t))switch(this.prevTime=n,r){case"top":return this.changeIndexToPrev();case"down":return this.changeIndexToNext()}},closeModal:function(e){if(!this.closeOnClickOutsideMobile&&window.innerWidth<700)return!1;if(this.IsSwipping)return!1;var t=".cool-lightbox__iframe, .cool-lightbox__iframe *, .cool-lightbox-zoom, .cool-lightbox-zoom *, .cool-lightbox-thumbs, svg, path, rect, .cool-lightbox-thumbs *, .cool-lightbox-button, .cool-lightbox-toolbar__btn, .cool-lightbox-toolbar__btn *, .cool-lightbox-button *, .cool-lightbox__slide__img *, .cool-lightbox-video, .cool-lightbox-caption h6, .cool-lightbox-caption p, .cool-lightbox-caption a";e.target.matches(t)||this.close()},setSwipeAnimation:function(){var e=this;function t(){e.swipeAnimation=null}clearInterval(this.swipeInterval),this.swipeAnimation=null,this.swipeAnimation="all .3s ease",this.swipeInterval=setInterval(t,330)},onNextClick:function(e){return void 0===e&&(e=!1),!this.isZooming&&(e||this.stopSlideShow(),this.setSwipeAnimation(),"rtl"===this.dir?this.changeIndexToPrev():void this.changeIndexToNext())},onPrevClick:function(e){return void 0===e&&(e=!1),!this.isZooming&&(e||this.stopSlideShow(),this.setSwipeAnimation(),"rtl"===this.dir?this.changeIndexToNext():void this.changeIndexToPrev())},changeIndexToNext:function(){this.hasNext?this.onIndexChange(this.imgIndex+1):this.loopData&&this.onIndexChange(0)},changeIndexToPrev:function(){this.hasPrevious?this.onIndexChange(this.imgIndex-1):this.loopData&&this.onIndexChange(this.items.length-1)},setLightboxInnerWidth:function(){var e=document.getElementsByClassName("cool-lightbox__inner"),t=e[0].clientWidth;this.lightboxInnerWidth=t},xPositionOnResize:function(){this.setLightboxInnerWidth();var e=this.imgIndex;"rtl"!==this.dir?this.xSwipeWrapper=-e*this.lightboxInnerWidth-30*e:this.xSwipeWrapper=e*this.lightboxInnerWidth+30*e},setXPosition:function(e){"rtl"!==this.dir?this.xSwipeWrapper=-e*this.lightboxInnerWidth-30*e:this.xSwipeWrapper=e*this.lightboxInnerWidth+30*e},onIndexChange:function(e){var t=this;this.imgIndex=e,this.$emit("on-change",e),setTimeout((function(){t.$emit("on-change-end",e)}),400)},addCaptionPadding:function(){if(this.checkIfIsObject(this.imgIndex)&&(this.items[this.imgIndex].title||this.items[this.imgIndex].descripcion)){var e=document.getElementsByClassName("cool-lightbox-caption");e.length>0&&(this.paddingBottom=e[0].offsetHeight)}else this.paddingBottom=60},getPDFurl:function(e){if(null===this.imgIndex)return!1;var t=new String(e);return!!t.endsWith(".pdf")&&e},getVideoUrl:function(e){var t=this.getYoutubeUrl(e),n=this.getVimeoUrl(e),r=this.checkIsMp4(e);return t||(n||(r||!1))},getYoutubeID:function(e){var t=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/,n=!!e.match(t)&&RegExp.$1;return n||!1},getYoutubeUrl:function(e){var t=this.getYoutubeID(e);return!!t&&(this.youtubeCookies?"https://www.youtube.com/embed/"+t:"https://www.youtube-nocookie.com/embed/"+t)},getVimeoID:function(e){var t=e.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i);return null!==t&&t[1]},getVimeoUrl:function(e){var t=e.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i);return null!==t&&"//player.vimeo.com/video/"+t[1]+"?hd=1&show_title=1&show_byline=1&show_portrait=0&fullscreen=1"},checkIsMp4:function(e){if(null===this.imgIndex)return!1;var t=new String(e),n=[".mp4",".mov",".webm",".ogg",".avi"],r=n.filter((function(e){return-1!==t.indexOf(e)||-1!==t.indexOf(e.toUpperCase())})).length>0;return!!r&&e},getVideoExt:function(e){if(null===this.imgIndex)return!1;var t=new String(e);return-1!==t.indexOf(".mp4")||-1!==t.indexOf(".mov")?"mp4":-1!==t.indexOf(".webm")?"webm":-1!==t.indexOf(".ogg")?"ogg":-1!==t.indexOf(".avi")&&"avi"},checkIfIsObject:function(e){var t=this.items[e];return"object"===typeof t&&null!==t},eventListener:function(e){switch(e.keyCode){case 39:return this.onNextClick();case 37:return this.onPrevClick();case 38:case 40:case" ":return e.preventDefault();case 27:return this.close()}}},computed:{imgWrapperStyle:function(){return{top:"50%",left:"50%",transition:this.transition}},lightboxStyles:function(){return{"z-index":this.zIndex,"background-color":this.overlayColor}},innerStyles:function(){return{"padding-bottom":this.paddingBottom+"px"}},itemSrc:function(){if(null===this.imgIndex)return!1;var e=this.items[this.imgIndex];return this.checkIfIsObject(this.imgIndex)?e[this.srcName]:e},lightboxClasses:function(){var e=[{"cool-lightbox--can-zoom":this.canZoom&&!this.disableZoom},{"cool-lightbox--zoom-disabled":this.disableZoom},{"cool-lightbox--is-zooming":this.isZooming},{"cool-lightbox--show-thumbs":this.showThumbs},{"cool-lightbox--is-swipping":this.isDraggingSwipe}],t="cool-lightbox--thumbs-"+this.thumbsPosition;return e.push(t),e},buttonsClasses:function(){return{hidden:!this.buttonsVisible}},hasNextButton:function(){return"rtl"===this.dir?this.imgIndex-1>=0:this.imgIndex+1<this.items.length},hasPreviousButton:function(){return"rtl"===this.dir?this.imgIndex+1<this.items.length:this.imgIndex-1>=0},hasNext:function(){return this.imgIndex+1<this.items.length},hasPrevious:function(){return this.imgIndex-1>=0}}};function A(e,t,n,r,i,o,a,s,c,u){"boolean"!==typeof a&&(c=s,s=a,a=!1);var l,d="function"===typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=l):t&&(l=a?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),l)if(d.functional){var h=d.render;d.render=function(e,t){return l.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,l):[l]}return n}var O=A,R=C,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"cool-lightbox-modal"}},[e.isVisible?n("div",{ref:"coolLightbox",staticClass:"cool-lightbox",class:e.lightboxClasses,style:e.lightboxStyles,on:{click:e.closeModal}},[e.gallery?n("div",{staticClass:"cool-lightbox-thumbs"},[n("div",{staticClass:"cool-lightbox-thumbs__list"},e._l(e.items,(function(t,r){return n("button",{key:r,staticClass:"cool-lightbox__thumb",class:{active:r===e.imgIndex,"is-video":"video"===e.getMediaType(r)},attrs:{type:"button"},on:{click:function(t){e.imgIndex=r}}},["video"===e.getMediaType(r)?n("svg",{staticClass:"cool-lightbox__thumb__icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M6.5 5.4v13.2l11-6.6z"}})]):e._e(),e._v(" "),n("img",{attrs:{src:e.itemThumb(e.getItemSrc(r),r),alt:""}})])})),0)]):e._e(),e._v(" "),n("div",{staticClass:"cool-lightbox__inner",style:e.innerStyles,on:{mousedown:e.startSwipe,mousemove:e.continueSwipe,mouseup:e.endSwipe,touchstart:e.startSwipe,touchmove:e.continueSwipe,touchend:e.endSwipe}},[n("div",{staticClass:"cool-lightbox__progressbar",style:e.stylesInterval}),e._v(" "),n("div",{staticClass:"cool-lightbox__navigation"},[n("button",{directives:[{name:"show",rawName:"v-show",value:(e.hasPreviousButton||e.loopData)&&e.items.length>1,expression:"(hasPreviousButton || loopData) && items.length > 1"}],staticClass:"cool-lightbox-button cool-lightbox-button--prev",class:e.buttonsClasses,attrs:{type:"button",title:e.translations.previous},on:{click:e.onPrevClick}},[e._t("icon-previous",(function(){return[n("div",{staticClass:"cool-lightbox-button__icon"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"}})])])]}))],2),e._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:(e.hasNextButton||e.loopData)&&e.items.length>1,expression:"(hasNextButton || loopData) && items.length > 1"}],staticClass:"cool-lightbox-button cool-lightbox-button--next",class:e.buttonsClasses,attrs:{type:"button",title:e.translations.next},on:{click:function(t){return e.onNextClick(!1)}}},[e._t("icon-next",(function(){return[n("div",{staticClass:"cool-lightbox-button__icon"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"}})])])]}))],2)]),e._v(" "),"swipe"===e.effect?n("div",{staticClass:"cool-lightbox__wrapper cool-lightbox__wrapper--swipe",style:{transform:"translate3d("+e.xSwipeWrapper+"px, "+e.ySwipeWrapper+"px, 0)",transition:e.swipeAnimation}},e._l(e.items,(function(t,r){return n("div",{key:r,ref:"items",refInFor:!0,staticClass:"cool-lightbox__slide",class:{"cool-lightbox__slide--current":r===e.imgIndex}},["image"===e.getMediaType(r)?n("div",{directives:[{name:"lazyload",rawName:"v-lazyload"}],key:"image",staticClass:"cool-lightbox__slide__img",style:e.imgWrapperStyle},[e.isItemPicture(r)?n("picture",{key:r},[e._l(e.getPictureSources(r),(function(t,r){return n("source",{key:"source-"+e.imgIndex+"-"+r,attrs:{"data-srcset":t.srcset,"data-media":t.media,type:t.type,"data-sizes":t.sizes||e.getItemSizes(e.imgIndex)}})})),e._v(" "),n("img",{attrs:{"data-src":e.getItemSrc(r),"data-srcset":e.getItemSrcSet(r),"data-sizes":e.getItemSizes(r),draggable:"false",alt:e.getItemAlt(r)},on:{load:e.imageLoaded,click:function(t){return e.zoomImage(r)},mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mouseleave:function(t){return e.handleMouseLeave(t)},mousemove:function(t){return e.handleMouseMove(t)},touchstart:function(t){return e.handleMouseDown(t)},touchmove:function(t){return e.handleMouseMove(t)},touchend:function(t){return e.handleMouseUp(t)}}})],2):n("img",{key:r,attrs:{"data-src":e.getItemSrc(r),"data-srcset":e.getItemSrcSet(r),"data-sizes":e.getItemSizes(r),draggable:"false",alt:e.getItemAlt(r)},on:{load:e.imageLoaded,click:function(t){return e.zoomImage(r)},mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mouseleave:function(t){return e.handleMouseLeave(t)},mousemove:function(t){return e.handleMouseMove(t)},touchstart:function(t){return e.handleMouseDown(t)},touchmove:function(t){return e.handleMouseMove(t)},touchend:function(t){return e.handleMouseUp(t)}}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.imageLoading,expression:"imageLoading"}],staticClass:"cool-lightbox-loading-wrapper"},[e._t("loading",(function(){return[n("div",{staticClass:"cool-lightbox-loading"})]}))],2)]):n("div",{key:"video",staticClass:"cool-lightbox__iframe"},[e.checkIsMp4(e.getItemSrc(r))||"video"!==e.getMediaType(r)?e._e():n("iframe",{directives:[{name:"autoplayObserver",rawName:"v-autoplayObserver"}],key:r,staticClass:"cool-lightbox-video",style:e.aspectRatioVideo,attrs:{"data-autoplay":e.setAutoplay(r),src:e.getVideoUrl(e.getItemSrc(r)),frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}),e._v(" "),"iframe"===e.getMediaType(r)||e.getPDFurl(e.getItemSrc(r))?n("iframe",{key:r,staticClass:"cool-lightbox-pdf",attrs:{src:e.getItemSrc(r),frameborder:"0",allowfullscreen:""}}):e._e(),e._v(" "),e.checkIsMp4(e.getItemSrc(r))||"webVideo"===e.getMediaType(r)?n("video",{directives:[{name:"autoplayObserver",rawName:"v-autoplayObserver"}],key:e.checkIsMp4(e.getItemSrc(r)),staticClass:"cool-lightbox-video",style:e.aspectRatioVideo,attrs:{"data-autoplay":e.setAutoplay(r),controls:"",controlslist:"nodownload",l:"",poster:""}},[n("source",{attrs:{src:e.checkIsMp4(e.getItemSrc(r)),type:"video/"+(e.getVideoExt(e.getItemSrc(r))?e.getVideoExt(e.getItemSrc(r)):e.getExtFromItem(r))}}),e._v("\n              Sorry, your browser doesn't support embedded videos\n            ")]):e._e()])])})),0):e._e(),e._v(" "),"fade"===e.effect?n("div",{staticClass:"cool-lightbox__wrapper"},[n("div",{ref:"items",staticClass:"cool-lightbox__slide cool-lightbox__slide--current"},[n("transition",{attrs:{name:"cool-lightbox-slide-change",mode:"out-in"}},["image"===e.getMediaType(e.imgIndex)?n("div",{key:"image",staticClass:"cool-lightbox__slide__img",style:e.imgWrapperStyle},[e.isItemPicture(e.imgIndex)?n("transition",{attrs:{name:"cool-lightbox-slide-change",mode:"out-in"}},[n("picture",{key:e.imgIndex},[e._l(e.getPictureSources(e.imgIndex),(function(t,r){return n("source",{key:"source-"+e.imgIndex+"-"+r,attrs:{srcset:t.srcset,type:t.type,media:t.media,sizes:t.sizes||e.getItemSizes(e.imgIndex)}})})),e._v(" "),n("img",{attrs:{src:e.getItemSrc(e.imgIndex),srcset:e.getItemSrcSet(e.imgIndex),sizes:e.getItemSizes(e.imgIndex),draggable:"false",alt:e.getItemAlt(e.imgIndex)},on:{load:e.imageLoaded,click:function(t){return e.zoomImage(e.imgIndex)},mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mouseleave:function(t){return e.handleMouseLeave(t)},mousemove:function(t){return e.handleMouseMove(t)}}})],2)]):n("transition",{attrs:{name:"cool-lightbox-slide-change",mode:"out-in"}},[n("img",{key:e.imgIndex,attrs:{src:e.getItemSrc(e.imgIndex),srcset:e.getItemSrcSet(e.imgIndex),sizes:e.getItemSizes(e.imgIndex),draggable:"false",alt:e.getItemAlt(e.imgIndex)},on:{load:e.imageLoaded,click:e.zoomImage,mousedown:function(t){return e.handleMouseDown(t)},mouseup:function(t){return e.handleMouseUp(t)},mouseleave:function(t){return e.handleMouseLeave(t)},mousemove:function(t){return e.handleMouseMove(t)}}})]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.imageLoading,expression:"imageLoading"}],staticClass:"cool-lightbox-loading-wrapper"},[e._t("loading",(function(){return[n("div",{staticClass:"cool-lightbox-loading"})]}))],2)],1):n("div",{key:"video",staticClass:"cool-lightbox__iframe"},[n("transition",{attrs:{name:"cool-lightbox-slide-change",mode:"out-in"}},[e.checkIsMp4(e.getItemSrc(e.imgIndex))||"video"!==e.getMediaType(e.imgIndex)?e._e():n("iframe",{directives:[{name:"autoplayObserver",rawName:"v-autoplayObserver"}],key:e.getVideoUrl(e.getItemSrc(e.imgIndex)),staticClass:"cool-lightbox-video",style:e.aspectRatioVideo,attrs:{"data-autoplay":e.setAutoplay(e.imgIndex),src:e.getVideoUrl(e.getItemSrc(e.imgIndex)),frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}),e._v(" "),"iframe"===e.getMediaType(e.imgIndex)||e.getPDFurl(e.getItemSrc(e.imgIndex))?n("iframe",{key:e.imgIndex,staticClass:"cool-lightbox-pdf",attrs:{src:e.getItemSrc(e.imgIndex),frameborder:"0",allowfullscreen:""}}):e._e(),e._v(" "),e.checkIsMp4(e.getItemSrc(e.imgIndex))||"webVideo"===e.getMediaType(e.imgIndex)?n("video",{directives:[{name:"autoplayObserver",rawName:"v-autoplayObserver"}],key:e.checkIsMp4(e.getItemSrc(e.imgIndex)),staticClass:"cool-lightbox-video",style:e.aspectRatioVideo,attrs:{"data-autoplay":e.setAutoplay(e.imgIndex),controls:"",controlslist:"nodownload",poster:""}},[n("source",{attrs:{src:e.checkIsMp4(e.getItemSrc(e.imgIndex)),type:"video/"+(e.getVideoExt(e.getItemSrc(e.imgIndex))?e.getVideoExt(e.getItemSrc(e.imgIndex)):e.getExtFromItem(e.imgIndex))}}),e._v("\n                  Sorry, your browser doesn't support embedded videos\n                ")]):e._e()])],1)])],1)]):e._e(),e._v(" "),n("transition",{attrs:{name:"cool-lightbox-modal"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.checkIfIsObject(e.imgIndex)&&(e.items[e.imgIndex].title||e.items[e.imgIndex].description),expression:"checkIfIsObject(imgIndex) && (items[imgIndex].title || items[imgIndex].description)"}],key:"caption-block",staticClass:"cool-lightbox-caption"},[n("transition",{attrs:{name:"cool-lightbox-slide-change",mode:"out-in"}},[e.checkIfIsObject(e.imgIndex)&&e.items[e.imgIndex].title?n("h6",{key:"title",domProps:{innerHTML:e._s(e.items[e.imgIndex].title)}}):e._e()]),e._v(" "),n("transition",{attrs:{name:"cool-lightbox-slide-change",mode:"out-in"}},[e.checkIfIsObject(e.imgIndex)&&e.items[e.imgIndex].description?n("p",{key:"description",domProps:{innerHTML:e._s(e.items[e.imgIndex].description)}}):e._e()])],1)]),e._v(" "),n("div",{staticClass:"cool-lightbox-toolbar",class:e.buttonsClasses},[this.slideshow&&e.items.length>1?n("button",{staticClass:"cool-lightbox-toolbar__btn",attrs:{type:"button",title:e.translations.playSlideShow},on:{click:e.togglePlaySlideshow}},[e.isPlayingSlideShow?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[n("g",[n("rect",{attrs:{id:"svg_4",height:"11.97529",width:"11.728392",y:"6.030873",x:"6.259265","stroke-width":"1.5",stroke:"#000",fill:"#000000"}})])]):n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M6.5 5.4v13.2l11-6.6z"}})])]):e._e(),e._v(" "),e.items.length>1&&e.gallery?n("button",{staticClass:"cool-lightbox-toolbar__btn",attrs:{type:"button",title:e.translations.showThumbNails},on:{click:function(t){e.showThumbs=!e.showThumbs}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47\n            0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47\n            0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47\n            0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"}})])]):e._e(),e._v(" "),e.fullScreen?n("button",{staticClass:"cool-lightbox-toolbar__btn",attrs:{type:"button",title:e.translations.fullScreen},on:{click:e.toggleFullScreenMode}},[n("svg",{attrs:{width:"20px",height:"20px",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z"}})])]):e._e(),e._v(" "),e.showCloseButton?n("button",{staticClass:"cool-lightbox-toolbar__btn",attrs:{type:"button",title:e.translations.close},on:{click:e.close}},[e._t("close",(function(){return[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"}})])]}))],2):e._e()])],1),e._v(" "),n("transition",{attrs:{name:"cool-lightbox-modal"}},[e.isZooming&&e.useZoomBar?n("div",{staticClass:"cool-lightbox-zoom"},[n("svg",{staticClass:"cool-lightbox-zoom__icon",attrs:{height:"469pt",viewBox:"0 -192 469.33333 469",width:"469pt",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m437.332031.167969h-405.332031c-17.664062\n          0-32 14.335937-32 32v21.332031c0 17.664062 14.335938 32 32 32h405.332031c17.664063 0 32-14.335938\n          32-32v-21.332031c0-17.664063-14.335937-32-32-32zm0 0"}})]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.zoomBar,expression:"zoomBar"}],attrs:{type:"range",name:"points",min:"0",max:"50"},domProps:{value:e.zoomBar},on:{__r:function(t){e.zoomBar=t.target.value}}}),e._v(" "),n("svg",{staticClass:"cool-lightbox-zoom__icon",attrs:{height:"426.66667pt",viewBox:"0 0 426.66667 426.66667",width:"426.66667pt",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m405.332031 192h-170.664062v-170.667969c0-11.773437-9.558594-21.332031-21.335938-21.332031-11.773437 0-21.332031\n          9.558594-21.332031 21.332031v170.667969h-170.667969c-11.773437 0-21.332031 9.558594-21.332031 21.332031 0\n          11.777344 9.558594 21.335938 21.332031 21.335938h170.667969v170.664062c0 11.777344 9.558594 21.335938 21.332031\n          21.335938 11.777344 0 21.335938-9.558594 21.335938-21.335938v-170.664062h170.664062c11.777344 0 21.335938-9.558594\n          21.335938-21.335938 0-11.773437-9.558594-21.332031-21.335938-21.332031zm0 0"}})])]):e._e()])],1):e._e()])},x=[],M=void 0,N=void 0,P=void 0,D=!1,L=O({render:k,staticRenderFns:x},M,R,N,D,P,void 0,void 0);function U(e){U.installed||(U.installed=!0,e.component("CoolLightBox",L))}var F={install:U},q=null;"undefined"!==typeof window?q=window.Vue:"undefined"!==typeof n.g&&(q=n.g.vue),q&&q.use(F),L.install=U;var B=L},61658:function(e,t,n){var r,i,o;
/*!
 * vue-filepond v6.0.3
 * A handy FilePond adapter component for Vue
 * 
 * Copyright (c) 2020 PQINA
 * https://pqina.nl/filepond
 * 
 * Licensed under the MIT license.
 */(function(a,s){i=[t,n(20144),n(66136)],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.setOptions=void 0,t=r(t);var i=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],o=(0,n.supported)(),a=function(e){return{string:String,boolean:Boolean,array:Array,function:Function,int:Number,serverapi:Object,object:Object}[e]},s={},c=[],u={},l=[],d={},h=function(e){d=Object.assign(d,e),l.forEach((function(e){e.setOptions(d)}))};e.setOptions=h;var f=function(){n.registerPlugin.apply(void 0,arguments),c.length=0;var e=function(e){if(/^on/.test(e))return c.push(e),"continue";s[e]=[String,a(n.OptionTypes[e])],u[e]=function(t){this._pond[e]=t}};for(var r in n.OptionTypes)e(r);return t.default.component("FilePond",{name:"FilePond",props:s,watch:u,render:function(e){return e("div",{class:{"filepond--wrapper":!0}},[e("input",{attrs:{id:this.id,name:this.name,type:"file",class:this.className,required:this.required,multiple:this.allowMultiple,accept:this.acceptedFileTypes,capture:this.captureMethod}})])},mounted:function(){var e=this;if(o){this._element=this.$el.querySelector("input");var t=c.reduce((function(t,n){return t[n]=function(){e.$emit("input",e._pond?e._pond.getFiles():[]);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.$emit.apply(e,[n.substr(2)].concat(r))},t}),{}),r=Object.assign({},this.$attrs);this._pond=(0,n.create)(this._element,Object.assign({},d,t,r,this.$options.propsData)),Object.keys(this._pond).filter((function(e){return!i.includes(e)})).forEach((function(t){e[t]=e._pond[t]})),l.push(this._pond)}},destroyed:function(){var e=this,t=this.$options.detached;if(this.$el.offsetParent){var n=function(n,r){var i=(n[0]||{}).removedNodes||[],o=i[0];o&&o.contains(e.$el)&&(r.disconnect(),t.call(e))},r=new MutationObserver(n);r.observe(document.documentElement,{childList:!0,subtree:!0})}else t.call(this)},detached:function(){if(this._pond){this._pond.destroy();var e=l.indexOf(this._pond);e>=0&&l.splice(e,1),this._pond=null}}})};e.default=f}))},17152:function(e,t){"use strict";
/*!
 * vue-i18n v8.28.2 
 * (c) 2022 kazuya kawaguchi
 * Released under the MIT License.
 */var n=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],r=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function i(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function o(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}var a=Array.isArray;function s(e){return null!==e&&"object"===typeof e}function c(e){return"boolean"===typeof e}function u(e){return"string"===typeof e}var l=Object.prototype.toString,d="[object Object]";function h(e){return l.call(e)===d}function f(e){return null===e||void 0===e}function p(e){return"function"===typeof e}function m(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,r=null;return 1===e.length?s(e[0])||a(e[0])?r=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(s(e[1])||a(e[1]))&&(r=e[1])),{locale:n,params:r}}function g(e){return JSON.parse(JSON.stringify(e))}function v(e,t){if(e.delete(t))return e}function y(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function b(e,t){return!!~e.indexOf(t)}var _=Object.prototype.hasOwnProperty;function E(e,t){return _.call(e,t)}function w(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var i=t[r];if(void 0!==i&&null!==i){var o=void 0;for(o in i)E(i,o)&&(s(i[o])?n[o]=w(n[o],i[o]):n[o]=i[o])}}return n}function T(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=a(e),o=a(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return T(e,t[n])}));if(i||o)return!1;var c=Object.keys(e),u=Object.keys(t);return c.length===u.length&&c.every((function(n){return T(e[n],t[n])}))}catch(l){return!1}}function I(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function S(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=I(e[t]))})),e}function C(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}function A(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n)if(e.i18n instanceof Se){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{},n=e.__i18nBridge||e.__i18n;n.forEach((function(e){t=w(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(c){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(h(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Se?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var i=e.i18n&&e.i18n.messages?e.i18n.messages:{},o=e.__i18nBridge||e.__i18n;o.forEach((function(e){i=w(i,JSON.parse(e))})),e.i18n.messages=i}catch(c){0}var a=e.i18n,s=a.sharedMessages;s&&h(s)&&(e.i18n.messages=w(e.i18n.messages,s)),this._i18n=new Se(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Se?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Se&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof Se||h(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Se||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Se)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}var O={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,i=t.props,o=t.slots,a=r.$i18n;if(a){var s=i.path,c=i.locale,u=i.places,l=o(),d=a.i(s,c,R(l)||u?k(l.default,u):l),h=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return h?e(h,n,d):d}}};function R(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}function k(e,t){var n=t?x(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(P);return e.reduce(r?M:N,n)}function x(e){return Array.isArray(e)?e.reduce(N,{}):Object.assign({},e)}function M(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function N(e,t,n){return e[n]=t,e}function P(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var D,L={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var r=t.props,i=t.parent,o=t.data,a=i.$i18n;if(!a)return null;var c=null,l=null;u(r.format)?c=r.format:s(r.format)&&(r.format.key&&(c=r.format.key),l=Object.keys(r.format).reduce((function(e,t){var i;return b(n,t)?Object.assign({},e,(i={},i[t]=r.format[t],i)):e}),null));var d=r.locale||a.locale,h=a._ntp(r.value,d,c,l),f=h.map((function(e,t){var n,r=o.scopedSlots&&o.scopedSlots[e.type];return r?r((n={},n[e.type]=e.value,n.index=t,n.parts=h,n)):e.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?e(p,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},f):f}};function U(e,t,n){B(e,n)&&j(e,t,n)}function F(e,t,n,r){if(B(e,n)){var i=n.context.$i18n;H(e,n)&&T(t.value,t.oldValue)&&T(e._localeMessage,i.getLocaleMessage(i.locale))||j(e,t,n)}}function q(e,t,n,r){var o=n.context;if(o){var a=n.context.$i18n||{};t.modifiers.preserve||a.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else i("Vue instance does not exists in VNode context")}function B(e,t){var n=t.context;return n?!!n.$i18n||(i("VueI18n instance does not exists in Vue instance"),!1):(i("Vue instance does not exists in VNode context"),!1)}function H(e,t){var n=t.context;return e._locale===n.$i18n.locale}function j(e,t,n){var r,o,a=t.value,s=V(a),c=s.path,u=s.locale,l=s.args,d=s.choice;if(c||u||l)if(c){var h=n.context;e._vt=e.textContent=null!=d?(r=h.$i18n).tc.apply(r,[c,d].concat(G(u,l))):(o=h.$i18n).t.apply(o,[c].concat(G(u,l))),e._locale=h.$i18n.locale,e._localeMessage=h.$i18n.getLocaleMessage(h.$i18n.locale)}else i("`path` is required in v-t directive");else i("value type not supported")}function V(e){var t,n,r,i;return u(e)?t=e:h(e)&&(t=e.path,n=e.locale,r=e.args,i=e.choice),{path:t,locale:n,args:r,choice:i}}function G(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||h(t))&&n.push(t),n}function z(e,t){void 0===t&&(t={bridge:!1}),z.installed=!0,D=e;D.version&&Number(D.version.split(".")[0]);C(D),D.mixin(A(t.bridge)),D.directive("t",{bind:U,update:F,unbind:q}),D.component(O.name,O),D.component(L.name,L);var n=D.config.optionMergeStrategies;n.i18n=function(e,t){return void 0===t?e:t}}var $=function(){this._caches=Object.create(null)};$.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=W(e),this._caches[e]=n),X(n,t)};var Y=/^(?:\d)+/,K=/^(?:\w)+/;function W(e){var t=[],n=0,r="";while(n<e.length){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var o="";i=e[n++];while(void 0!==i&&"}"!==i)o+=i,i=e[n++];var a="}"===i,s=Y.test(o)?"list":a&&K.test(o)?"named":"unknown";t.push({value:o,type:s})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}function X(e,t){var n=[],r=0,i=Array.isArray(t)?"list":s(t)?"named":"unknown";if("unknown"===i)return n;while(r<e.length){var o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&n.push(t[o.value]);break;case"unknown":0;break}r++}return n}var Q=0,Z=1,J=2,ee=3,te=0,ne=1,re=2,ie=3,oe=4,ae=5,se=6,ce=7,ue=8,le=[];le[te]={ws:[te],ident:[ie,Q],"[":[oe],eof:[ce]},le[ne]={ws:[ne],".":[re],"[":[oe],eof:[ce]},le[re]={ws:[re],ident:[ie,Q],0:[ie,Q],number:[ie,Q]},le[ie]={ident:[ie,Q],0:[ie,Q],number:[ie,Q],ws:[ne,Z],".":[re,Z],"[":[oe,Z],eof:[ce,Z]},le[oe]={"'":[ae,Q],'"':[se,Q],"[":[oe,J],"]":[ne,ee],eof:ue,else:[oe,Q]},le[ae]={"'":[oe,Q],eof:ue,else:[ae,Q]},le[se]={'"':[oe,Q],eof:ue,else:[se,Q]};var de=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function he(e){return de.test(e)}function fe(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function pe(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function me(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(he(t)?fe(t):"*"+t)}function ge(e){var t,n,r,i,o,a,s,c=[],u=-1,l=te,d=0,h=[];function f(){var t=e[u+1];if(l===ae&&"'"===t||l===se&&'"'===t)return u++,r="\\"+t,h[Q](),!0}h[Z]=function(){void 0!==n&&(c.push(n),n=void 0)},h[Q]=function(){void 0===n?n=r:n+=r},h[J]=function(){h[Q](),d++},h[ee]=function(){if(d>0)d--,l=oe,h[Q]();else{if(d=0,void 0===n)return!1;if(n=me(n),!1===n)return!1;h[Z]()}};while(null!==l)if(u++,t=e[u],"\\"!==t||!f()){if(i=pe(t),s=le[l],o=s[i]||s["else"]||ue,o===ue)return;if(l=o[0],a=h[o[1]],a&&(r=o[2],r=void 0===r?t:r,!1===a()))return;if(l===ce)return c}}var ve=function(){this._cache=Object.create(null)};ve.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=ge(e),t&&(this._cache[e]=t)),t||[]},ve.prototype.getPathValue=function(e,t){if(!s(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var r=n.length,i=e,o=0;while(o<r){var a=i[n[o]];if(void 0===a||null===a)return null;i=a,o++}return i};var ye,be=/<\/?[\w\s="/.':;#-\/]+>/,_e=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,Ee=/^@(?:\.([a-zA-Z]+))?:/,we=/[()]/g,Te={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Ie=new $,Se=function(e){var t=this;void 0===e&&(e={}),!D&&"undefined"!==typeof window&&window.Vue&&z(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Ie,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new ve,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex){var i=r.getChoiceIndex;return i.call(t,e,n)}var o=function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):o(e,n)},this._exist=function(e,n){return!(!e||!n)&&(!f(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:a})},Ce={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};Se.prototype._checkLocaleMessage=function(e,t,n){var r=[],s=function(e,t,n,r){if(h(n))Object.keys(n).forEach((function(i){var o=n[i];h(o)?(r.push(i),r.push("."),s(e,t,o,r),r.pop(),r.pop()):(r.push(i),s(e,t,o,r),r.pop())}));else if(a(n))n.forEach((function(n,i){h(n)?(r.push("["+i+"]"),r.push("."),s(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(e,t,n,r),r.pop())}));else if(u(n)){var c=be.test(n);if(c){var l="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?i(l):"error"===e&&o(l)}}};s(t,e,n,r)},Se.prototype._initVM=function(e){var t=D.config.silent;D.config.silent=!0,this._vm=new D({data:e,__VUE18N__INSTANCE__:!0}),D.config.silent=t},Se.prototype.destroyVM=function(){this._vm.$destroy()},Se.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},Se.prototype.unsubscribeDataChanging=function(e){v(this._dataListeners,e)},Se.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=y(e._dataListeners),n=t.length;while(n--)D.nextTick((function(){t[n]&&t[n].$forceUpdate()}))}),{deep:!0})},Se.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},Se.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Ce.vm.get=function(){return this._vm},Ce.messages.get=function(){return g(this._getMessages())},Ce.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},Ce.numberFormats.get=function(){return g(this._getNumberFormats())},Ce.availableLocales.get=function(){return Object.keys(this.messages).sort()},Ce.locale.get=function(){return this._vm.locale},Ce.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Ce.fallbackLocale.get=function(){return this._vm.fallbackLocale},Ce.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Ce.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Ce.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Ce.missing.get=function(){return this._missing},Ce.missing.set=function(e){this._missing=e},Ce.formatter.get=function(){return this._formatter},Ce.formatter.set=function(e){this._formatter=e},Ce.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Ce.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Ce.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Ce.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Ce.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Ce.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Ce.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Ce.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},Ce.postTranslation.get=function(){return this._postTranslation},Ce.postTranslation.set=function(e){this._postTranslation=e},Ce.sync.get=function(){return this._sync},Ce.sync.set=function(e){this._sync=e},Se.prototype._getMessages=function(){return this._vm.messages},Se.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Se.prototype._getNumberFormats=function(){return this._vm.numberFormats},Se.prototype._warnDefault=function(e,t,n,r,i,o){if(!f(n))return n;if(this._missing){var a=this._missing.apply(null,[e,t,r,i]);if(u(a))return a}else 0;if(this._formatFallbackMessages){var s=m.apply(void 0,i);return this._render(t,o,s.params,t)}return t},Se.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:f(e))&&!f(this._root)&&this._fallbackRoot},Se.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},Se.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},Se.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},Se.prototype._interpolate=function(e,t,n,r,i,o,s){if(!t)return null;var c,l=this._path.getPathValue(t,n);if(a(l)||h(l))return l;if(f(l)){if(!h(t))return null;if(c=t[n],!u(c)&&!p(c))return null}else{if(!u(l)&&!p(l))return null;c=l}return u(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(e,t,c,r,"raw",o,s)),this._render(c,i,o,n)},Se.prototype._link=function(e,t,n,r,i,o,s){var c=n,u=c.match(_e);for(var l in u)if(u.hasOwnProperty(l)){var d=u[l],h=d.match(Ee),f=h[0],p=h[1],m=d.replace(f,"").replace(we,"");if(b(s,m))return c;s.push(m);var g=this._interpolate(e,t,m,r,"raw"===i?"string":i,"raw"===i?void 0:o,s);if(this._isFallbackRoot(g)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;g=v._translate(v._getMessages(),v.locale,v.fallbackLocale,m,r,i,o)}g=this._warnDefault(e,m,g,r,a(o)?o:[o],i),this._modifiers.hasOwnProperty(p)?g=this._modifiers[p](g):Te.hasOwnProperty(p)&&(g=Te[p](g)),s.pop(),c=g?c.replace(d,g):c}return c},Se.prototype._createMessageContext=function(e,t,n,r){var i=this,o=a(e)?e:[],c=s(e)?e:{},u=function(e){return o[e]},l=function(e){return c[e]},d=this._getMessages(),h=this.locale;return{list:u,named:l,values:e,formatter:t,path:n,messages:d,locale:h,linked:function(e){return i._interpolate(h,d[h]||{},e,null,r,void 0,[e])}}},Se.prototype._render=function(e,t,n,r){if(p(e))return e(this._createMessageContext(n,this._formatter||Ie,r,t));var i=this._formatter.interpolate(e,n,r);return i||(i=Ie.interpolate(e,n,r)),"string"!==t||u(i)?i:i.join("")},Se.prototype._appendItemToChain=function(e,t,n){var r=!1;return b(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},Se.prototype._appendLocaleToChain=function(e,t,n){var r,i=t.split("-");do{var o=i.join("-");r=this._appendItemToChain(e,o,n),i.splice(-1,1)}while(i.length&&!0===r);return r},Se.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&c(r);i++){var o=t[i];u(o)&&(r=this._appendLocaleToChain(e,o,n))}return r},Se.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];var r,i=[e];while(a(i))i=this._appendBlockToChain(n,i,t);r=a(t)?t:s(t)?t["default"]?t["default"]:null:t,i=u(r)?[r]:r,i&&this._appendBlockToChain(n,i,null),this._localeChainCache[e]=n}return n},Se.prototype._translate=function(e,t,n,r,i,o,a){for(var s,c=this._getLocaleChain(t,n),u=0;u<c.length;u++){var l=c[u];if(s=this._interpolate(l,e[l],r,i,o,a,[r]),!f(s))return s}return null},Se.prototype._t=function(e,t,n,r){var i,o=[],a=arguments.length-4;while(a-- >0)o[a]=arguments[a+4];if(!e)return"";var s=m.apply(void 0,o);this._escapeParameterHtml&&(s.params=S(s.params));var c=s.locale||t,u=this._translate(n,c,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(o))}return u=this._warnDefault(c,e,u,r,o,"string"),this._postTranslation&&null!==u&&void 0!==u&&(u=this._postTranslation(u,e)),u},Se.prototype.t=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},Se.prototype._i=function(e,t,n,r,i){var o=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,o,r,[i],"raw")},Se.prototype.i=function(e,t,n){return e?(u(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},Se.prototype._tc=function(e,t,n,r,i){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},u=m.apply(void 0,a);return u.params=Object.assign(c,u.params),a=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[e,t,n,r].concat(a)),i)},Se.prototype.fetchChoice=function(e,t){if(!e||!u(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},Se.prototype.tc=function(e,t){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},Se.prototype._te=function(e,t,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var o=m.apply(void 0,r).locale||t;return this._exist(n[o],e)},Se.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},Se.prototype.getLocaleMessage=function(e){return g(this._vm.messages[e]||{})},Se.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},Se.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,w("undefined"!==typeof this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},Se.prototype.getDateTimeFormat=function(e){return g(this._vm.dateTimeFormats[e]||{})},Se.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},Se.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,w(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},Se.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Se.prototype._localizeDateTime=function(e,t,n,r,i,o){for(var a=t,s=r[a],c=this._getLocaleChain(t,n),u=0;u<c.length;u++){var l=c[u];if(s=r[l],a=l,!f(s)&&!f(s[i]))break}if(f(s)||f(s[i]))return null;var d,h=s[i];if(o)d=new Intl.DateTimeFormat(a,Object.assign({},h,o));else{var p=a+"__"+i;d=this._dateTimeFormatters[p],d||(d=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(a,h))}return d.format(e)},Se.prototype._d=function(e,t,n,r){if(!n){var i=r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t);return i.format(e)}var o=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return o||""},Se.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.locale,o=null,a=null;return 1===t.length?(u(t[0])?o=t[0]:s(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(o=t[0].key)),a=Object.keys(t[0]).reduce((function(e,n){var i;return b(r,n)?Object.assign({},e,(i={},i[n]=t[0][n],i)):e}),null)):2===t.length&&(u(t[0])&&(o=t[0]),u(t[1])&&(i=t[1])),this._d(e,i,o,a)},Se.prototype.getNumberFormat=function(e){return g(this._vm.numberFormats[e]||{})},Se.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},Se.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,w(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},Se.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Se.prototype._getNumberFormatter=function(e,t,n,r,i,o){for(var a=t,s=r[a],c=this._getLocaleChain(t,n),u=0;u<c.length;u++){var l=c[u];if(s=r[l],a=l,!f(s)&&!f(s[i]))break}if(f(s)||f(s[i]))return null;var d,h=s[i];if(o)d=new Intl.NumberFormat(a,Object.assign({},h,o));else{var p=a+"__"+i;d=this._numberFormatters[p],d||(d=this._numberFormatters[p]=new Intl.NumberFormat(a,h))}return d},Se.prototype._n=function(e,t,n,r){if(!Se.availabilities.numberFormat)return"";if(!n){var i=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return i.format(e)}var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.format(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return a||""},Se.prototype.n=function(e){var t=[],r=arguments.length-1;while(r-- >0)t[r]=arguments[r+1];var i=this.locale,o=null,a=null;return 1===t.length?u(t[0])?o=t[0]:s(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(o=t[0].key),a=Object.keys(t[0]).reduce((function(e,r){var i;return b(n,r)?Object.assign({},e,(i={},i[r]=t[0][r],i)):e}),null)):2===t.length&&(u(t[0])&&(o=t[0]),u(t[1])&&(i=t[1])),this._n(e,i,o,a)},Se.prototype._ntp=function(e,t,n,r){if(!Se.availabilities.numberFormat)return[];if(!n){var i=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return i.formatToParts(e)}var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.formatToParts(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return a||[]},Object.defineProperties(Se.prototype,Ce),Object.defineProperty(Se,"availabilities",{get:function(){if(!ye){var e="undefined"!==typeof Intl;ye={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return ye}}),Se.install=z,Se.version="8.28.2",t.Z=Se},30306:function(e){
/*!
 * vue-infinite-loading v2.4.5
 * (c) 2016-2020 PeachScript
 * MIT License
 */
!function(t,n){e.exports=n()}(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){var r=n(6);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(3).default)("6223ff68",r,!0,{})},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(3).default)("27f0e51f",r,!0,{})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[r].concat(a).concat([o]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return f}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,i){u=n,d=i||{};var a=r(e,t);return p(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i];(c=o[s.id]).refs--,n.push(c)}for(t?p(a=r(e,t)):a=[],i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(g(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(g(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function g(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(h){var i=c++;r=s||(s=m()),t=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=m(),t=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var v,y=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function b(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function _(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""])},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""])},function(e,t,n){"use strict";n.r(t);var r={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},i=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e={passive:!0},!0}});window.addEventListener("testpassive",t,t),window.remove("testpassive",t,t)}catch(e){}return e}(),o={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n  ajax('https://www.example.com/api/news')\n    .then((res) => {\n      if (res.data.length) {\n        $state.loaded();\n      } else {\n        $state.complete();\n      }\n    });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},a={INFINITE_LOOP:["executed the callback function more than ".concat(r.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n  ...\n  \x3c!-- set force-use-infinite-wrapper --\x3e\n  <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n  ...\n  \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n  <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n    ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},c={color:"#666",fontSize:"14px",padding:"10px 0"},u={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:r,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:o,ERRORS:a,STATUS:s},l=n(4),d=n.n(l),h={BUBBLES:{render:function(e){return e("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return e("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(e){return e("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return e("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(e){return e("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(e){return e("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(e){return e("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return e("span",{attrs:{class:"wave-item"}})})))}}};function f(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}var p=f({name:"Spinner",computed:{spinnerView:function(){return h[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return u.slots.spinner&&"string"==typeof u.slots.spinner?{render:function(){return this._v(u.slots.spinner)}}:"object"===d()(u.slots.spinner)?u.slots.spinner:h[u.props.spinner.toUpperCase()]||h.DEFAULT}}},(function(){var e=this.$createElement;return(this._self._c||e)(this.spinnerView,{tag:"component"})}),[],!1,(function(e){var t=n(5);t.__inject__&&t.__inject__(e)}),"46b20d22",null).exports;function m(e){"production"!==u.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(e))}function g(e){console.error("[Vue-infinite-loading error]: ".concat(e))}var v={timers:[],caches:[],throttle:function(e){var t=this;-1===this.caches.indexOf(e)&&(this.caches.push(e),this.timers.push(setTimeout((function(){e(),t.caches.splice(t.caches.indexOf(e),1),t.timers.shift()}),u.system.throttleLimit)))},reset:function(){this.timers.forEach((function(e){clearTimeout(e)})),this.timers.length=0,this.caches=[]}},y={isChecked:!1,timer:null,times:0,track:function(){var e=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){e.isChecked=!0}),u.system.loopCheckTimeout),this.times>u.system.loopCheckMaxCalls&&(g(a.INFINITE_LOOP),this.isChecked=!0)}},b={key:"_infiniteScrollHeight",getScrollElm:function(e){return e===window?document.documentElement:e},save:function(e){var t=this.getScrollElm(e);t[this.key]=t.scrollHeight},restore:function(e){var t=this.getScrollElm(e);"number"==typeof t[this.key]&&(t.scrollTop=t.scrollHeight-t[this.key]+t.scrollTop),this.remove(t)},remove:function(e){void 0!==e[this.key]&&delete e[this.key]}};function _(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}function E(e){return e.offsetWidth+e.offsetHeight>0}var w=f({name:"InfiniteLoading",data:function(){return{scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:u.slots}},components:{Spinner:p},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var e=this,t={};return Object.keys(u.slots).forEach((function(n){var r=_(n);(!e.$slots[r]&&!u.slots[n].render||e.$slots[r]&&!e.$slots[r][0].tag)&&(t[n]=c)})),t}},props:{distance:{type:Number,default:u.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:u.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset()}},mounted:function(){var e=this;this.$watch("forceUseInfiniteWrapper",(function(){e.scrollParent=e.getScrollParent()}),{immediate:!0}),this.scrollHandler=function(t){e.status===s.READY&&(t&&t.constructor===Event&&E(e.$el)?v.throttle(e.attemptLoad):e.attemptLoad())},setTimeout((function(){e.scrollHandler(),e.scrollParent.addEventListener("scroll",e.scrollHandler,i)}),1),this.$on("$InfiniteLoading:loaded",(function(t){e.isFirstLoad=!1,"top"===e.direction&&e.$nextTick((function(){b.restore(e.scrollParent)})),e.status===s.LOADING&&e.$nextTick(e.attemptLoad.bind(null,!0)),t&&t.target===e||m(o.STATE_CHANGER)})),this.$on("$InfiniteLoading:complete",(function(t){e.status=s.COMPLETE,e.$nextTick((function(){e.$forceUpdate()})),e.scrollParent.removeEventListener("scroll",e.scrollHandler,i),t&&t.target===e||m(o.STATE_CHANGER)})),this.$on("$InfiniteLoading:reset",(function(t){e.status=s.READY,e.isFirstLoad=!0,b.remove(e.scrollParent),e.scrollParent.addEventListener("scroll",e.scrollHandler,i),setTimeout((function(){v.reset(),e.scrollHandler()}),1),t&&t.target===e||m(o.IDENTIFIER)})),this.stateChanger={loaded:function(){e.$emit("$InfiniteLoading:loaded",{target:e})},complete:function(){e.$emit("$InfiniteLoading:complete",{target:e})},reset:function(){e.$emit("$InfiniteLoading:reset",{target:e})},error:function(){e.status=s.ERROR,v.reset()}},this.onInfinite&&m(o.INFINITE_EVENT)},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,i)},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,i)},methods:{attemptLoad:function(e){var t=this;this.status!==s.COMPLETE&&E(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){b.save(t.scrollParent)})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!e||this.forceUseInfiniteWrapper||y.isChecked||y.track()):this.status===s.LOADING&&(this.status=s.READY)},getCurrentDistance:function(){var e;return e="top"===this.direction?"number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom),e},getScrollParent:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return"string"==typeof this.forceUseInfiniteWrapper&&(e=document.querySelector(this.forceUseInfiniteWrapper)),e||("BODY"===t.tagName?e=window:(!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(t).overflowY)>-1||t.hasAttribute("infinite-wrapper")||t.hasAttribute("data-infinite-wrapper"))&&(e=t)),e||this.getScrollParent(t.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(v.reset(),b.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,i))}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:e.slotStyles.spinner},[e._t("spinner",[n("spinner",{attrs:{spinner:e.spinner}})])],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:e.slotStyles.noResults},[e._t("no-results",[e.slots.noResults.render?n(e.slots.noResults,{tag:"component"}):[e._v(e._s(e.slots.noResults))]])],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:e.slotStyles.noMore},[e._t("no-more",[e.slots.noMore.render?n(e.slots.noMore,{tag:"component"}):[e._v(e._s(e.slots.noMore))]])],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:e.slotStyles.error},[e._t("error",[e.slots.error.render?n(e.slots.error,{tag:"component",attrs:{trigger:e.attemptLoad}}):[e._v("\n        "+e._s(e.slots.error)+"\n        "),n("br"),e._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:e._s(e.slots.errorBtnText)},on:{click:e.attemptLoad}})]],{trigger:e.attemptLoad})],2)])}),[],!1,(function(e){var t=n(7);t.__inject__&&t.__inject__(e)}),"644ea9c9",null).exports;function T(e){u.mode=e.config.productionTip?"development":"production"}Object.defineProperty(w,"install",{configurable:!1,enumerable:!1,value:function(e,t){Object.assign(u.props,t&&t.props),Object.assign(u.slots,t&&t.slots),Object.assign(u.system,t&&t.system),e.component("infinite-loading",w),T(e)}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",w),T(window.Vue)),t.default=w}])}))},64512:function(e){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(){return window.Piwik.getAsyncTracker()}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return new Promise((function(n,r){var i=document.createElement("script");i.async=!0,i.defer=!0,i.src=e,t&&["anonymous","use-credentials"].includes(t)&&(i.crossOrigin=t),(document.head||document.getElementsByTagName("head")[0]).appendChild(i),i.onload=n,i.onerror=r}))}function o(e,t){return e.resolve(t).href}n.r(t),n.d(t,"matomoKey",(function(){return s})),n.d(t,"default",(function(){return d}));var a={debug:!1,disableCookies:!1,requireCookieConsent:!1,enableHeartBeatTimer:!1,enableLinkTracking:!0,heartBeatTimerInterval:15,requireConsent:!1,trackInitialView:!0,trackSiteSearch:!1,trackerFileName:"matomo",trackerUrl:void 0,trackerScriptUrl:void 0,userId:void 0,cookieDomain:void 0,domains:void 0,preInitActions:[],crossOrigin:void 0},s="Matomo";function c(e,t,n){if("function"==typeof e.trackSiteSearch){var i=e.trackSiteSearch(t);if(i)return void function(e,t){var n=t.keyword,i=t.category,o=t.resultsCount,a=r();e.debug&&console.debug("[vue-matomo] Site Search "+n),a.trackSiteSearch(n,i,o)}(e,i)}!function(e,t,n){var i,a,s,c=r();if(e.router){if(a=o(e.router,t.fullPath),s=n&&n.fullPath?o(e.router,n.fullPath):void 0,t.meta.analyticsIgnore)return void(e.debug&&console.debug("[vue-matomo] Ignoring "+a));e.debug&&console.debug("[vue-matomo] Tracking "+a),i=t.meta.title||a}s&&c.setReferrerUrl(window.location.origin+s),a&&c.setCustomUrl(window.location.origin+a),c.trackPageView(i)}(e,t,n)}function u(e,t){var n=r();if(Number(e.version.split(".")[0])>2?(e.config.globalProperties.$piwik=n,e.config.globalProperties.$matomo=n,e.provide(s,n)):(e.prototype.$piwik=n,e.prototype.$matomo=n),t.trackInitialView&&t.router){var i=t.router.currentRoute.value?t.router.currentRoute.value:t.router.currentRoute;c(t,i)}t.router&&t.router.afterEach((function(e,r){c(t,e,r),t.enableLinkTracking&&n.enableLinkTracking()}))}function l(){return new Promise((function(e,t){var n=Date.now(),r=setInterval((function(){if(window.Piwik)return clearInterval(r),e();if(Date.now()>=n+3e3)throw clearInterval(r),new Error("[vue-matomo]: window.Piwik undefined after waiting for ".concat(3e3,"ms"))}),50)}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},a,t),r=n.host,o=n.siteId,s=n.trackerFileName,c=n.trackerUrl,d=n.trackerScriptUrl,h=d||"".concat(r,"/").concat(s,".js"),f=c||"".concat(r,"/").concat(s,".php");window._paq=window._paq||[],window._paq.push(["setTrackerUrl",f]),window._paq.push(["setSiteId",o]),n.requireConsent&&window._paq.push(["requireConsent"]),n.userId&&window._paq.push(["setUserId",n.userId]),n.enableLinkTracking&&window._paq.push(["enableLinkTracking"]),n.disableCookies&&window._paq.push(["disableCookies"]),n.requireCookieConsent&&window._paq.push(["requireCookieConsent"]),n.enableHeartBeatTimer&&window._paq.push(["enableHeartBeatTimer",n.heartBeatTimerInterval]),n.cookieDomain&&window._paq.push(["setCookieDomain",n.cookieDomain]),n.domains&&window._paq.push(["setDomains",n.domains]),n.preInitActions.forEach((function(e){return window._paq.push(e)})),i(h,n.crossOrigin).then((function(){return l()})).then((function(){return u(e,n)})).catch((function(e){if(e.target)return console.error("[vue-matomo] An error occurred trying to load ".concat(e.target.src,". ")+"If the file exists you may have an ad- or trackingblocker enabled.");console.error(e)}))}}])}))},78345:function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}n.d(t,{ZP:function(){return wt}});var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,o).replace(a,",")};function c(e){try{return decodeURIComponent(e)}catch(t){0}return e}function u(e,t,n){void 0===t&&(t={});var r,i=n||d;try{r=i(e||"")}catch(s){r={}}for(var o in t){var a=t[o];r[o]=Array.isArray(a)?a.map(l):l(a)}return r}var l=function(e){return null==e||"object"===typeof e?e:String(e)};function d(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(s(t)):r.push(s(t)+"="+s(e)))})),r.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function p(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:y(t,i),matched:e?v(e):[]};return n&&(a.redirectedFrom=y(n,i)),Object.freeze(a)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var g=p(null,{path:"/"});function v(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function y(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||h;return(n||"/")+o(r)+i}function b(e,t,n){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(n||e.hash===t.hash&&_(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&_(e.query,t.query)&&_(e.params,t.params))))}function _(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var o=e[n],a=r[i];if(a!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?_(o,s):String(o)===String(s)}))}function E(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!t.hash||e.hash===t.hash)&&w(e.query,t.query)}function w(e,t){for(var n in t)if(!(n in e))return!1;return!0}function T(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var I={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,o=t.parent,a=t.data;a.routerView=!0;var s=o.$createElement,c=n.name,u=o.$route,l=o._routerViewCache||(o._routerViewCache={}),d=0,h=!1;while(o&&o._routerRoot!==o){var f=o.$vnode?o.$vnode.data:{};f.routerView&&d++,f.keepAlive&&o._directInactive&&o._inactive&&(h=!0),o=o.$parent}if(a.routerViewDepth=d,h){var p=l[c],m=p&&p.component;return m?(p.configProps&&S(m,a,p.route,p.configProps),s(m,a,i)):s()}var g=u.matched[d],v=g&&g.components[c];if(!g||!v)return l[c]=null,s();l[c]={component:v},a.registerRouteInstance=function(e,t){var n=g.instances[c];(t&&n!==e||!t&&n===e)&&(g.instances[c]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){g.instances[c]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[c]&&(g.instances[c]=e.componentInstance),T(u)};var y=g.props&&g.props[c];return y&&(r(l[c],{route:u,configProps:y}),S(v,a,u,y)),s(v,a,i)}};function S(e,t,n,i){var o=t.props=C(n,i);if(o){o=t.props=r({},o);var a=t.attrs=t.attrs||{};for(var s in o)e.props&&s in e.props||(a[s]=o[s],delete o[s])}}function C(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function A(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function O(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function R(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var k=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},x=X,M=U,N=F,P=H,D=W,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=L.exec(e))){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(o,l),o=l+c.length,u)a+=u[1];else{var d=e[o],h=n[2],f=n[3],p=n[4],m=n[5],g=n[6],v=n[7];a&&(r.push(a),a="");var y=null!=h&&null!=d&&d!==h,b="+"===g||"*"===g,_="?"===g||"*"===g,E=n[2]||s,w=p||m;r.push({name:f||i++,prefix:h||"",delimiter:E,optional:_,repeat:b,partial:y,asterisk:!!v,pattern:w?V(w):v?".*":"[^"+j(E)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&r.push(a),r}function F(e,t){return H(U(e,t),t)}function q(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function B(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function H(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",z(t)));return function(t,r){for(var i="",o=t||{},a=r||{},s=a.pretty?q:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var l,d=o[u.name];if(null==d){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(k(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(l=s(d[h]),!n[c].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?B(d):s(d),!n[c].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');i+=u.prefix+l}}else i+=u}return i}}function j(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function V(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function G(e,t){return e.keys=t,e}function z(e){return e&&e.sensitive?"":"i"}function $(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return G(e,t)}function Y(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(X(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",z(n));return G(o,t)}function K(e,t,n){return W(U(e,n),t,n)}function W(e,t,n){k(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)o+=j(s);else{var c=j(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+c+u+")*"),u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",o+=u}}var l=j(n.delimiter||"/"),d=o.slice(-l.length)===l;return r||(o=(d?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&d?"":"(?="+l+"|$)",G(new RegExp("^"+o,z(n)),t)}function X(e,t,n){return k(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?$(e,t):k(e)?Y(e,t,n):K(e,t,n)}x.parse=M,x.compile=N,x.tokensToFunction=P,x.tokensToRegExp=D;var Q=Object.create(null);function Z(e,t,n){t=t||{};try{var r=Q[e]||(Q[e]=x.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function J(e,t,n,i){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=r({},e);var a=o.params;return a&&"object"===typeof a&&(o.params=r({},a)),o}if(!o.path&&o.params&&t){o=r({},o),o._normalized=!0;var s=r(r({},t.params),o.params);if(t.name)o.name=t.name,o.params=s;else if(t.matched.length){var c=t.matched[t.matched.length-1].path;o.path=Z(c,s,"path "+t.path)}else 0;return o}var l=O(o.path||""),d=t&&t.path||"/",h=l.path?A(l.path,d,n||o.append):d,f=u(l.query,o.query,i&&i.options.parseQuery),p=o.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:h,query:f,hash:p}}var ee,te=[String,Object],ne=[String,Array],re=function(){},ie={name:"RouterLink",props:{to:{type:te,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ne,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,c=o.href,u={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,f=null==d?"router-link-exact-active":d,m=null==this.activeClass?h:this.activeClass,g=null==this.exactActiveClass?f:this.exactActiveClass,v=s.redirectedFrom?p(null,J(s.redirectedFrom),null,n):s;u[g]=b(i,v,this.exactPath),u[m]=this.exact||this.exactPath?u[g]:E(i,v);var y=u[g]?this.ariaCurrentValue:null,_=function(e){oe(e)&&(t.replace?n.replace(a,re):n.push(a,re))},w={click:oe};Array.isArray(this.event)?this.event.forEach((function(e){w[e]=_})):w[this.event]=_;var T={class:u},I=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:_,isActive:u[m],isExactActive:u[g]});if(I){if(1===I.length)return I[0];if(I.length>1||!I.length)return 0===I.length?e():e("span",{},I)}if("a"===this.tag)T.on=w,T.attrs={href:c,"aria-current":y};else{var S=ae(this.$slots.default);if(S){S.isStatic=!1;var C=S.data=r({},S.data);for(var A in C.on=C.on||{},C.on){var O=C.on[A];A in w&&(C.on[A]=Array.isArray(O)?O:[O])}for(var R in w)R in C.on?C.on[R].push(w[R]):C.on[R]=_;var k=S.data.attrs=r({},S.data.attrs);k.href=c,k["aria-current"]=y}else T.on=w}return e(this.tag,T,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=ae(t.children)))return t}}function se(e){if(!se.installed||ee!==e){se.installed=!0,ee=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",I),e.component("RouterLink",ie);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ce="undefined"!==typeof window;function ue(e,t,n,r,i){var o=t||[],a=n||Object.create(null),s=r||Object.create(null);e.forEach((function(e){le(o,a,s,e,i)}));for(var c=0,u=o.length;c<u;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),u--,c--);return{pathList:o,pathMap:a,nameMap:s}}function le(e,t,n,r,i,o){var a=r.path,s=r.name;var c=r.pathToRegexpOptions||{},u=he(a,i,c.strict);"boolean"===typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var l={path:u,regex:de(u,c),components:r.components||{default:r.component},alias:r.alias?"string"===typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?R(o+"/"+r.path):void 0;le(e,t,n,r,l,i)})),t[l.path]||(e.push(l.path),t[l.path]=l),void 0!==r.alias)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],h=0;h<d.length;++h){var f=d[h];0;var p={path:f,children:r.children};le(e,t,n,p,i,l.path||"/")}s&&(n[s]||(n[s]=l))}function de(e,t){var n=x(e,[],t);return n}function he(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:R(t.path+"/"+e)}function fe(e,t){var n=ue(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(e){ue(e,r,i,o)}function s(e,t){var n="object"!==typeof e?o[e]:void 0;ue([t||e],r,i,o,n),n&&n.alias.length&&ue(n.alias.map((function(e){return{path:e,children:[t]}})),r,i,o,n)}function c(){return r.map((function(e){return i[e]}))}function u(e,n,a){var s=J(e,n,!1,t),c=s.name;if(c){var u=o[c];if(!u)return h(null,s);var l=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in s.params)&&l.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=Z(u.path,s.params,'named route "'+c+'"'),h(u,s,a)}if(s.path){s.params={};for(var f=0;f<r.length;f++){var p=r[f],m=i[p];if(pe(m.regex,s.path,s.params))return h(m,s,a)}}return h(null,s)}function l(e,n){var r=e.redirect,i="function"===typeof r?r(p(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return h(null,n);var a=i,s=a.name,c=a.path,l=n.query,d=n.hash,f=n.params;if(l=a.hasOwnProperty("query")?a.query:l,d=a.hasOwnProperty("hash")?a.hash:d,f=a.hasOwnProperty("params")?a.params:f,s){o[s];return u({_normalized:!0,name:s,query:l,hash:d,params:f},void 0,n)}if(c){var m=me(c,e),g=Z(m,f,'redirect route with path "'+m+'"');return u({_normalized:!0,path:g,query:l,hash:d},void 0,n)}return h(null,n)}function d(e,t,n){var r=Z(n,t.params,'aliased route with path "'+n+'"'),i=u({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return t.params=i.params,h(a,t)}return h(null,t)}function h(e,n,r){return e&&e.redirect?l(e,r||n):e&&e.matchAs?d(e,n,e.matchAs):p(e,n,r,t)}return{match:u,addRoute:s,getRoutes:c,addRoutes:a}}function pe(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=e.keys[i-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[i]?c(r[i]):r[i])}return!0}function me(e,t){return A(e,t.parent?t.parent.path:"/",!0)}var ge=ce&&window.performance&&window.performance.now?window.performance:Date;function ve(){return ge.now().toFixed(3)}var ye=ve();function be(){return ye}function _e(e){return ye=e}var Ee=Object.create(null);function we(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=be(),window.history.replaceState(n,"",t),window.addEventListener("popstate",Se),function(){window.removeEventListener("popstate",Se)}}function Te(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick((function(){var o=Ce(),a=i.call(e,t,n,r?o:null);a&&("function"===typeof a.then?a.then((function(e){Ne(e,o)})).catch((function(e){0})):Ne(a,o))}))}}function Ie(){var e=be();e&&(Ee[e]={x:window.pageXOffset,y:window.pageYOffset})}function Se(e){Ie(),e.state&&e.state.key&&_e(e.state.key)}function Ce(){var e=be();if(e)return Ee[e]}function Ae(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function Oe(e){return xe(e.x)||xe(e.y)}function Re(e){return{x:xe(e.x)?e.x:window.pageXOffset,y:xe(e.y)?e.y:window.pageYOffset}}function ke(e){return{x:xe(e.x)?e.x:0,y:xe(e.y)?e.y:0}}function xe(e){return"number"===typeof e}var Me=/^#\d/;function Ne(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=Me.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var i=e.offset&&"object"===typeof e.offset?e.offset:{};i=ke(i),t=Ae(r,i)}else Oe(e)&&(t=Re(e))}else n&&Oe(e)&&(t=Re(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Pe=ce&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function De(e,t){Ie();var n=window.history;try{if(t){var i=r({},n.state);i.key=be(),n.replaceState(i,"",e)}else n.pushState({key:_e(ve())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function Le(e){De(e,!0)}var Ue={redirected:2,aborted:4,cancelled:8,duplicated:16};function Fe(e,t){return je(e,t,Ue.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Ge(t)+'" via a navigation guard.')}function qe(e,t){var n=je(e,t,Ue.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function Be(e,t){return je(e,t,Ue.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function He(e,t){return je(e,t,Ue.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function je(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var Ve=["params","query","hash"];function Ge(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return Ve.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function ze(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function $e(e,t){return ze(e)&&e._isRouter&&(null==t||e.type===t)}function Ye(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ke(e){return function(t,n,r){var i=!1,o=0,a=null;We(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var c,u=Je((function(t){Ze(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,o--,o<=0&&r()})),l=Je((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=ze(e)?e:new Error(t),r(a))}));try{c=e(u,l)}catch(h){l(h)}if(c)if("function"===typeof c.then)c.then(u,l);else{var d=c.component;d&&"function"===typeof d.then&&d.then(u,l)}}})),i||r()}}function We(e,t){return Xe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Xe(e){return Array.prototype.concat.apply([],e)}var Qe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ze(e){return e.__esModule||Qe&&"Module"===e[Symbol.toStringTag]}function Je(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(ce){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function rt(e,t,n,r){var i=We(e,(function(e,r,i,o){var a=it(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return Xe(r?i.reverse():i)}function it(e,t){return"function"!==typeof e&&(e=ee.extend(e)),e.options[t]}function ot(e){return rt(e,"beforeRouteLeave",st,!0)}function at(e){return rt(e,"beforeRouteUpdate",st)}function st(e,t){if(t)return function(){return e.apply(t,arguments)}}function ct(e){return rt(e,"beforeRouteEnter",(function(e,t,n,r){return ut(e,n,r)}))}function ut(e,t,n){return function(r,i,o){return e(r,i,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}et.prototype.listen=function(e){this.cb=e},et.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},et.prototype.onError=function(e){this.errorCbs.push(e)},et.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach((function(e){e(a)})),a}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&($e(e,Ue.redirected)&&o===g||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},et.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current;this.pending=e;var o=function(e){!$e(e)&&ze(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},a=e.matched.length-1,s=i.matched.length-1;if(b(e,i)&&a===s&&e.matched[a]===i.matched[s])return this.ensureURL(),e.hash&&Te(this.router,i,e,!1),o(qe(i,e));var c=nt(this.current.matched,e.matched),u=c.updated,l=c.deactivated,d=c.activated,h=[].concat(ot(l),this.router.beforeHooks,at(u),d.map((function(e){return e.beforeEnter})),Ke(d)),f=function(t,n){if(r.pending!==e)return o(Be(i,e));try{t(e,i,(function(t){!1===t?(r.ensureURL(!0),o(He(i,e))):ze(t)?(r.ensureURL(!0),o(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(o(Fe(i,e)),"object"===typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(a){o(a)}};Ye(h,f,(function(){var n=ct(d),a=n.concat(r.router.resolveHooks);Ye(a,f,(function(){if(r.pending!==e)return o(Be(i,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){T(e)}))}))}))},et.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},et.prototype.setupListeners=function(){},et.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=g,this.pending=null};var lt=function(e){function t(t,n){e.call(this,t,n),this._startLocation=dt(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Pe&&n;r&&this.listeners.push(we());var i=function(){var n=e.current,i=dt(e.base);e.current===g&&i===e._startLocation||e.transitionTo(i,(function(e){r&&Te(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){De(R(r.base+e.fullPath)),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Le(R(r.base+e.fullPath)),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(dt(this.base)!==this.current.fullPath){var t=R(this.base+this.current.fullPath);e?De(t):Le(t)}},t.prototype.getCurrentLocation=function(){return dt(this.base)},t}(et);function dt(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(R(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ht=function(e){function t(t,n,r){e.call(this,t,n),r&&ft(this.base)||pt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Pe&&n;r&&this.listeners.push(we());var i=function(){var t=e.current;pt()&&e.transitionTo(mt(),(function(n){r&&Te(e.router,n,t,!0),Pe||yt(n.fullPath)}))},o=Pe?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){vt(e.fullPath),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){yt(e.fullPath),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;mt()!==t&&(e?vt(t):yt(t))},t.prototype.getCurrentLocation=function(){return mt()},t}(et);function ft(e){var t=dt(e);if(!/^\/#/.test(t))return window.location.replace(R(e+"/#"+t)),!0}function pt(){var e=mt();return"/"===e.charAt(0)||(yt("/"+e),!1)}function mt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function gt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function vt(e){Pe?De(gt(e)):window.location.hash=e}function yt(e){Pe?Le(gt(e)):window.location.replace(gt(e))}var bt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){$e(e,Ue.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),_t=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Pe&&!1!==e.fallback,this.fallback&&(t="hash"),ce||(t="abstract"),this.mode=t,t){case"history":this.history=new lt(this,e.base);break;case"hash":this.history=new ht(this,e.base,this.fallback);break;case"abstract":this.history=new bt(this,e.base);break;default:0}},Et={currentRoute:{configurable:!0}};_t.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Et.currentRoute.get=function(){return this.history&&this.history.current},_t.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof lt||n instanceof ht){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Pe&&i;o&&"fullPath"in e&&Te(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},_t.prototype.beforeEach=function(e){return Tt(this.beforeHooks,e)},_t.prototype.beforeResolve=function(e){return Tt(this.resolveHooks,e)},_t.prototype.afterEach=function(e){return Tt(this.afterHooks,e)},_t.prototype.onReady=function(e,t){this.history.onReady(e,t)},_t.prototype.onError=function(e){this.history.onError(e)},_t.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},_t.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},_t.prototype.go=function(e){this.history.go(e)},_t.prototype.back=function(){this.go(-1)},_t.prototype.forward=function(){this.go(1)},_t.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},_t.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=J(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=It(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},_t.prototype.getRoutes=function(){return this.matcher.getRoutes()},_t.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},_t.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(_t.prototype,Et);var wt=_t;function Tt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function It(e,t,n){var r="hash"===n?"#"+t:t;return e?R(e+"/"+r):r}_t.install=se,_t.version="3.6.5",_t.isNavigationFailure=$e,_t.NavigationFailureType=Ue,_t.START_LOCATION=g,ce&&window.Vue&&window.Vue.use(_t)},27694:function(e,t,n){!function(t,r){e.exports=r(n(53787))}(0,(function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={name:"VueShowdown",props:{markdown:{type:String,required:!1,default:null},tag:{type:String,required:!1,default:"div"},flavor:{type:String,required:!1,default:null,validator:function(e){return[null,"original","vanilla","github"].includes(e)}},options:{type:Object,required:!1,default:function(){return{}}},extensions:{type:[Object,Array],required:!1,default:null},vueTemplate:{type:Boolean,required:!1,default:!1}},computed:{converter:function(){var t=new e.Converter({extensions:this.extensions||void 0});for(var n in null!==this.flavor&&t.setFlavor(this.flavor),this.options)t.setOption(n,this.options[n]);return t},inputMarkdown:function(){return null===this.markdown?this.$slots.default[0].text:this.markdown},outputHtml:function(){return this.converter?this.converter.makeHtml(this.inputMarkdown):""}},render:function(e){return this.vueTemplate?e({template:"<".concat(this.tag,">").concat(this.outputHtml,"</").concat(this.tag,">")}):e(this.tag,{domProps:{innerHTML:this.outputHtml}})}},n={install:function(n){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=r.flavor,o=void 0===i?null:i,a=r.options,s=void 0===a?{}:a;for(var c in null!==o&&e.setFlavor(o),s)e.setOption(c,s[c]);n.component("VueShowdown",t)},VueShowdown:t,showdown:e};return"undefined"!=typeof window&&window.Vue&&window.Vue.use(n),n}))},20144:function(e,t,n){"use strict";n.r(t),n.d(t,{EffectScope:function(){return ir},computed:function(){return dr},customRef:function(){return We},default:function(){return Qi},defineComponent:function(){return ei},del:function(){return di},effectScope:function(){return or},getCurrentInstance:function(){return ge},getCurrentScope:function(){return sr},h:function(){return wr},inject:function(){return yt},isProxy:function(){return Ue},isReactive:function(){return Pe},isReadonly:function(){return Le},isRef:function(){return He},isShallow:function(){return De},markRaw:function(){return qe},mergeDefaults:function(){return vn},nextTick:function(){return Lr},onActivated:function(){return Kr},onBeforeMount:function(){return Hr},onBeforeUnmount:function(){return zr},onBeforeUpdate:function(){return Vr},onDeactivated:function(){return Wr},onErrorCaptured:function(){return Yr},onMounted:function(){return jr},onRenderTracked:function(){return Qr},onRenderTriggered:function(){return Zr},onScopeDispose:function(){return cr},onServerPrefetch:function(){return Xr},onUnmounted:function(){return $r},onUpdated:function(){return Gr},provide:function(){return vt},proxyRefs:function(){return Ye},reactive:function(){return xe},readonly:function(){return et},ref:function(){return je},set:function(){return li},shallowReactive:function(){return Me},shallowReadonly:function(){return rt},shallowRef:function(){return Ve},toRaw:function(){return Fe},toRef:function(){return Qe},toRefs:function(){return Xe},triggerRef:function(){return ze},unref:function(){return $e},useAttrs:function(){return mn},useCssModule:function(){return Ur},useCssVars:function(){return Fr},useSlots:function(){return pn},version:function(){return Jr},watch:function(){return _r},watchEffect:function(){return gr},watchPostEffect:function(){return vr},watchSyncEffect:function(){return yr}});
/*!
 * Vue.js v2.7.2
 * (c) 2014-2022 Evan You
 * Released under the MIT License.
 */
var r=Object.freeze({}),i=Array.isArray;function o(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function s(e){return!0===e}function c(e){return!1===e}function u(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return"function"===typeof e}function d(e){return null!==e&&"object"===typeof e}var h=Object.prototype.toString;function f(e){return"[object Object]"===h.call(e)}function p(e){return"[object RegExp]"===h.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===h?JSON.stringify(e,null,2):String(e)}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function b(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}b("slot,component",!0);var _=b("key,ref,slot,slot-scope,is");function E(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function T(e,t){return w.call(e,t)}function I(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var S=/-(\w)/g,C=I((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),A=I((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),O=/\B([A-Z])/g,R=I((function(e){return e.replace(O,"-$1").toLowerCase()}));function k(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function x(e,t){return e.bind(t)}var M=Function.prototype.bind?x:k;function N(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function L(e,t,n){}var U=function(e,t,n){return!1},F=function(e){return e};function q(e,t){if(e===t)return!0;var n=d(e),r=d(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return q(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return q(e[n],t[n])}))}catch(c){return!1}}function B(e,t){for(var n=0;n<e.length;n++)if(q(e[n],t))return n;return-1}function H(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function j(e,t){return e===t?0===e&&1/e!==1/t:e===e||t===t}var V="data-server-rendered",G=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:U,isReservedAttr:U,isUnknownElement:U,getTagNamespace:L,parsePlatformTagName:F,mustUseProp:U,async:!0,_lifecycleHooks:z},Y=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function W(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var X=new RegExp("[^".concat(Y.source,".$_\\d]"));function Q(e){if(!X.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Z="__proto__"in{},J="undefined"!==typeof window,ee=J&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=ee&&ee.indexOf("msie 9.0")>0,re=ee&&ee.indexOf("edge/")>0;ee&&ee.indexOf("android");var ie=ee&&/iphone|ipad|ipod|ios/.test(ee);ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee);var oe,ae=ee&&ee.match(/firefox\/(\d+)/),se={}.watch,ce=!1;if(J)try{var ue={};Object.defineProperty(ue,"passive",{get:function(){ce=!0}}),window.addEventListener("test-passive",null,ue)}catch(Zs){}var le=function(){return void 0===oe&&(oe=!J&&"undefined"!==typeof n.g&&(n.g["process"]&&"server"===n.g["process"].env.VUE_ENV)),oe},de=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,pe="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);fe="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var me=null;function ge(){return me&&{proxy:me}}function ve(e){void 0===e&&(e=null),e||me&&me._scope.off(),me=e,e&&e._scope.on()}var ye=L,be=0,_e=function(){function e(){this.id=be++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){E(this.subs,e)},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.slice();for(var n=0,r=t.length;n<r;n++){t[n].update()}},e}();_e.target=null;var Ee=[];function we(e){Ee.push(e),_e.target=e}function Te(){Ee.pop(),_e.target=Ee[Ee.length-1]}var Ie=function(){function e(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),Se=function(e){void 0===e&&(e="");var t=new Ie;return t.text=e,t.isComment=!0,t};function Ce(e){return new Ie(void 0,void 0,void 0,String(e))}function Ae(e){var t=new Ie(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Oe=Array.prototype,Re=Object.create(Oe),ke=["push","pop","shift","unshift","splice","sort","reverse"];function xe(e){return Ne(e,!1),e}function Me(e){return Ne(e,!0),W(e,"__v_isShallow",!0),e}function Ne(e,t){if(!Le(e)){ci(e,t);0}}function Pe(e){return Le(e)?Pe(e["__v_raw"]):!(!e||!e.__ob__)}function De(e){return!(!e||!e.__v_isShallow)}function Le(e){return!(!e||!e.__v_isReadonly)}function Ue(e){return Pe(e)||Le(e)}function Fe(e){var t=e&&e["__v_raw"];return t?Fe(t):e}function qe(e){return W(e,"__v_skip",!0),e}ke.forEach((function(e){var t=Oe[e];W(Re,e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Be="__v_isRef";function He(e){return!(!e||!0!==e.__v_isRef)}function je(e){return Ge(e,!1)}function Ve(e){return Ge(e,!0)}function Ge(e,t){if(He(e))return e;var n={};return W(n,Be,!0),W(n,"__v_isShallow",!0),n.dep=ui(n,"value",e,null,t),n}function ze(e){e.dep&&e.dep.notify()}function $e(e){return He(e)?e.value:e}function Ye(e){if(Pe(e))return e;for(var t={},n=Object.keys(e),r=0;r<n.length;r++)Ke(t,e,n[r]);return t}function Ke(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){return $e(t[n])},set:function(e){var r=t[n];He(r)&&!He(e)?r.value=e:t[n]=e}})}function We(e){var t=new _e,n=e((function(){t.depend()}),(function(){t.notify()})),r=n.get,i=n.set,o={get value(){return r()},set value(e){i(e)}};return W(o,Be,!0),o}function Xe(e){var t=i(e)?new Array(e.length):{};for(var n in e)t[n]=Qe(e,n);return t}function Qe(e,t,n){var r=e[t];if(He(r))return r;var i={get value(){var r=e[t];return void 0===r?n:r},set value(n){e[t]=n}};return W(i,Be,!0),i}var Ze="__v_rawToReadonly",Je="__v_rawToShallowReadonly";function et(e){return tt(e,!1)}function tt(e,t){if(!f(e))return e;if(Le(e))return e;var n=t?Je:Ze,r=e[n];if(r)return r;var i=Object.create(Object.getPrototypeOf(e));W(e,n,i),W(i,"__v_isReadonly",!0),W(i,"__v_raw",e),He(e)&&W(i,Be,!0),(t||De(e))&&W(i,"__v_isShallow",!0);for(var o=Object.keys(e),a=0;a<o.length;a++)nt(i,e,o[a],t);return i}function nt(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return r||!f(e)?e:et(e)},set:function(){}})}function rt(e){return tt(e,!0)}var it=new fe;function ot(e){return at(e,it),it.clear(),e}function at(e,t){var n,r,o=i(e);if(!(!o&&!d(e)||Object.isFrozen(e)||e instanceof Ie)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o){n=e.length;while(n--)at(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)at(e[r[n]],t)}}}var st=I((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function ct(e,t){function n(){var e=n.fns;if(!i(e))return Ir(e,null,arguments,t,"v-on handler");for(var r=e.slice(),o=0;o<r.length;o++)Ir(r[o],null,arguments,t,"v-on handler")}return n.fns=e,n}function ut(e,t,n,r,i,a){var c,u,l,d;for(c in e)u=e[c],l=t[c],d=st(c),o(u)||(o(l)?(o(u.fns)&&(u=e[c]=ct(u,a)),s(d.once)&&(u=e[c]=i(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)o(e[c])&&(d=st(c),r(d.name,t[c],d.capture))}function lt(e,t,n){var r;e instanceof Ie&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function c(){n.apply(this,arguments),E(r.fns,c)}o(i)?r=ct([c]):a(i.fns)&&s(i.merged)?(r=i,r.fns.push(c)):r=ct([i,c]),r.merged=!0,e[t]=r}function dt(e,t,n){var r=t.options.props;if(!o(r)){var i={},s=e.attrs,c=e.props;if(a(s)||a(c))for(var u in r){var l=R(u);ht(i,c,u,l,!0)||ht(i,s,u,l,!1)}return i}}function ht(e,t,n,r,i){if(a(t)){if(T(t,n))return e[n]=t[n],i||delete t[n],!0;if(T(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function ft(e){for(var t=0;t<e.length;t++)if(i(e[t]))return Array.prototype.concat.apply([],e);return e}function pt(e){return u(e)?[Ce(e)]:i(e)?gt(e):void 0}function mt(e){return a(e)&&a(e.text)&&c(e.isComment)}function gt(e,t){var n,r,c,l,d=[];for(n=0;n<e.length;n++)r=e[n],o(r)||"boolean"===typeof r||(c=d.length-1,l=d[c],i(r)?r.length>0&&(r=gt(r,"".concat(t||"","_").concat(n)),mt(r[0])&&mt(l)&&(d[c]=Ce(l.text+r[0].text),r.shift()),d.push.apply(d,r)):u(r)?mt(l)?d[c]=Ce(l.text+r):""!==r&&d.push(Ce(r)):mt(r)&&mt(l)?d[c]=Ce(l.text+r.text):(s(e._isVList)&&a(r.tag)&&o(r.key)&&a(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),d.push(r)));return d}function vt(e,t){if(me){var n=me._provided,r=me.$parent&&me.$parent._provided;r===n&&(n=me._provided=Object.create(r)),n[e]=t}else 0}function yt(e,t,n){void 0===n&&(n=!1);var r=me;if(r){var i=r.$parent&&r.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&l(t)?t.call(r):t}else 0}function bt(e){var t=e.$options.provide;if(t){var n=l(t)?t.call(e):t;if(!d(n))return;var r=pe?Reflect.ownKeys(n):Object.keys(n);ve(e);for(var i=0;i<r.length;i++)vt(r[i],n[r[i]]);ve()}}function _t(e){var t=Et(e.$options.inject,e);t&&(ii(!1),Object.keys(t).forEach((function(n){ui(e,n,t[n])})),ii(!0))}function Et(e,t){if(e){for(var n=Object.create(null),r=pe?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from;if(a in t._provided)n[o]=t._provided[a];else if("default"in e[o]){var s=e[o].default;n[o]=l(s)?s.call(t):s}else 0}}return n}}function wt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(Tt)&&delete n[u];return n}function Tt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function It(e){return e.isComment&&e.asyncFactory}function St(e,t,n,i){var o,a=Object.keys(n).length>0,s=t?!!t.$stable:!a,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==r&&c===i.$key&&!a&&!i.$hasNormal)return i;for(var u in o={},t)t[u]&&"$"!==u[0]&&(o[u]=Ct(e,n,u,t[u]))}else o={};for(var l in n)l in o||(o[l]=At(n,l));return t&&Object.isExtensible(t)&&(t._normalized=o),W(o,"$stable",s),W(o,"$key",c),W(o,"$hasNormal",a),o}function Ct(e,t,n,r){var o=function(){var t=me;ve(e);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!i(n)?[n]:pt(n);var o=n&&n[0];return ve(t),n&&(!o||1===n.length&&o.isComment&&!It(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function At(e,t){return function(){return e[t]}}function Ot(e,t){var n,r,o,s,c=null;if(i(e)||"string"===typeof e)for(c=new Array(e.length),n=0,r=e.length;n<r;n++)c[n]=t(e[n],n);else if("number"===typeof e)for(c=new Array(e),n=0;n<e;n++)c[n]=t(n+1,n);else if(d(e))if(pe&&e[Symbol.iterator]){c=[];var u=e[Symbol.iterator](),l=u.next();while(!l.done)c.push(t(l.value,c.length)),l=u.next()}else for(o=Object.keys(e),c=new Array(o.length),n=0,r=o.length;n<r;n++)s=o[n],c[n]=t(e[s],s,n);return a(c)||(c=[]),c._isVList=!0,c}function Rt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n)||(l(t)?t():t)):i=this.$slots[e]||(l(t)?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function kt(e){return Ii(this.$options,"filters",e,!0)||F}function xt(e,t){return i(e)?-1===e.indexOf(t):e!==t}function Mt(e,t,n,r,i){var o=$.keyCodes[t]||n;return i&&r&&!$.keyCodes[t]?xt(i,r):o?xt(o,e):r?R(r)!==t:void 0===e}function Nt(e,t,n,r,o){if(n)if(d(n)){i(n)&&(n=D(n));var a=void 0,s=function(i){if("class"===i||"style"===i||_(i))a=e;else{var s=e.attrs&&e.attrs.type;a=r||$.mustUseProp(t,s,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=C(i),u=R(i);if(!(c in a)&&!(u in a)&&(a[i]=n[i],o)){var l=e.on||(e.on={});l["update:".concat(i)]=function(e){n[i]=e}}};for(var c in n)s(c)}else;return e}function Pt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Lt(r,"__static__".concat(e),!1)),r}function Dt(e,t,n){return Lt(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function Lt(e,t,n){if(i(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Ut(e[r],"".concat(t,"_").concat(r),n);else Ut(e,t,n)}function Ut(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Ft(e,t){if(t)if(f(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function qt(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var a=e[o];i(a)?qt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function Bt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Ht(e,t){return"string"===typeof e?t+e:e}function jt(e){e._o=Dt,e._n=y,e._s=v,e._l=Ot,e._t=Rt,e._q=q,e._i=B,e._m=Pt,e._f=kt,e._k=Mt,e._b=Nt,e._v=Ce,e._e=Se,e._u=qt,e._g=Ft,e._d=Bt,e._p=Ht}function Vt(e,t,n,o,a){var c,u=this,l=a.options;T(o,"_uid")?(c=Object.create(o),c._original=o):(c=o,o=o._original);var d=s(l._compiled),h=!d;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||r,this.injections=Et(l.inject,o),this.slots=function(){return u.$slots||St(o,e.scopedSlots,u.$slots=wt(n,o)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return St(o,e.scopedSlots,this.slots())}}),d&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=St(o,e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var a=nn(c,e,t,n,r,h);return a&&!i(a)&&(a.fnScopeId=l._scopeId,a.fnContext=o),a}:this._c=function(e,t,n,r){return nn(c,e,t,n,r,h)}}function Gt(e,t,n,o,s){var c=e.options,u={},l=c.props;if(a(l))for(var d in l)u[d]=Si(d,l,t||r);else a(n.attrs)&&$t(u,n.attrs),a(n.props)&&$t(u,n.props);var h=new Vt(n,u,s,o,e),f=c.render.call(null,h._c,h);if(f instanceof Ie)return zt(f,n,h.parent,c,h);if(i(f)){for(var p=pt(f)||[],m=new Array(p.length),g=0;g<p.length;g++)m[g]=zt(p[g],n,h.parent,c,h);return m}}function zt(e,t,n,r,i){var o=Ae(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function $t(e,t){for(var n in t)e[C(n)]=t[n]}jt(Vt.prototype);var Yt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Yt.prepatch(n,n)}else{var r=e.componentInstance=Xt(e,Mn);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Un(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Hn(n,"mounted")),e.data.keepAlive&&(t._isMounted?tr(n):qn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Bn(t,!0):t.$destroy())}},Kt=Object.keys(Yt);function Wt(e,t,n,r,i){if(!o(e)){var c=n.$options._base;if(d(e)&&(e=c.extend(e)),"function"===typeof e){var u;if(o(e.cid)&&(u=e,e=In(u,c),void 0===e))return Tn(u,t,n,r,i);t=t||{},Wi(e),a(t.model)&&Jt(e.options,t);var l=dt(t,e,i);if(s(e.options.functional))return Gt(e,l,t,n,r);var h=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}Qt(t);var p=e.options.name||i,m=new Ie("vue-component-".concat(e.cid).concat(p?"-".concat(p):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:l,listeners:h,tag:i,children:r},u);return m}}}function Xt(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function Qt(e){for(var t=e.hook||(e.hook={}),n=0;n<Kt.length;n++){var r=Kt[n],i=t[r],o=Yt[r];i===o||i&&i._merged||(t[r]=i?Zt(o,i):o)}}function Zt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Jt(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[r],c=t.model.callback;a(s)?(i(s)?-1===s.indexOf(c):s!==c)&&(o[r]=[c].concat(s)):o[r]=c}var en=1,tn=2;function nn(e,t,n,r,o,a){return(i(n)||u(n))&&(o=r,r=n,n=void 0),s(a)&&(o=tn),rn(e,t,n,r,o)}function rn(e,t,n,r,o){if(a(n)&&a(n.__ob__))return Se();if(a(n)&&a(n.is)&&(t=n.is),!t)return Se();var s,c;if(i(r)&&l(r[0])&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===tn?r=pt(r):o===en&&(r=ft(r)),"string"===typeof t){var u=void 0;c=e.$vnode&&e.$vnode.ns||$.getTagNamespace(t),s=$.isReservedTag(t)?new Ie($.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(u=Ii(e.$options,"components",t))?new Ie(t,n,r,void 0,void 0,e):Wt(u,n,e,r,t)}else s=Wt(t,n,e,r);return i(s)?s:a(s)?(a(c)&&on(s,c),a(n)&&an(n),s):Se()}function on(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(var r=0,i=e.children.length;r<i;r++){var c=e.children[r];a(c.tag)&&(o(c.ns)||s(n)&&"svg"!==c.tag)&&on(c,t,n)}}function an(e){d(e.style)&&ot(e.style),d(e.class)&&ot(e.class)}function sn(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=cn(e);ve(e),we();var i=Ir(n,null,[e._props||Me({}),r],e,"setup");if(Te(),ve(),l(i))t.render=i;else if(d(i))if(e._setupState=i,i.__sfc){var o=e._setupProxy={};for(var a in i)"__sfc"!==a&&Ke(o,i,a)}else for(var a in i)K(a)||Ke(e,i,a);else 0}}function cn(e){return{get attrs(){return un(e)},get slots(){return hn(e)},emit:M(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Ke(e,t,n)}))}}}function un(e){if(!e._attrsProxy){var t=e._attrsProxy={};W(t,"_v_attr_proxy",!0),ln(t,e.$attrs,r,e)}return e._attrsProxy}function ln(e,t,n,r){var i=!1;for(var o in t)o in e?t[o]!==n[o]&&(i=!0):(i=!0,dn(e,o,r));for(var o in e)o in t||(i=!0,delete e[o]);return i}function dn(e,t,n){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n.$attrs[t]}})}function hn(e){return e._slotsProxy||fn(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function fn(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function pn(){return gn().slots}function mn(){return gn().attrs}function gn(){var e=me;return e._setupContext||(e._setupContext=cn(e))}function vn(e,t){var n=i(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in t){var o=n[r];o?i(o)||l(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(n[r]={default:t[r]})}return n}function yn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=wt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return nn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return nn(e,t,n,r,i,!0)};var o=n&&n.data;ui(e,"$attrs",o&&o.attrs||r,null,!0),ui(e,"$listeners",t._parentListeners||r,null,!0)}var bn,_n=null;function En(e){jt(e.prototype),e.prototype.$nextTick=function(e){return Lr(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,o=n._parentVnode;o&&(t.$scopedSlots=St(t.$parent,o.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&fn(t._slotsProxy,t.$scopedSlots)),t.$vnode=o;try{ve(t),_n=t,e=r.call(t._renderProxy,t.$createElement)}catch(Zs){Tr(Zs,t,"render"),e=t._vnode}finally{_n=null,ve()}return i(e)&&1===e.length&&(e=e[0]),e instanceof Ie||(e=Se()),e.parent=o,e}}function wn(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),d(e)?t.extend(e):e}function Tn(e,t,n,r,i){var o=Se();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function In(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=_n;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],i=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return E(r,n)}));var l=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},h=H((function(n){e.resolved=wn(n,t),i?r.length=0:l(!0)})),f=H((function(t){a(e.errorComp)&&(e.error=!0,l(!0))})),p=e(h,f);return d(p)&&(g(p)?o(e.resolved)&&p.then(h,f):g(p.component)&&(p.component.then(h,f),a(p.error)&&(e.errorComp=wn(p.error,t)),a(p.loading)&&(e.loadingComp=wn(p.loading,t),0===p.delay?e.loading=!0:c=setTimeout((function(){c=null,o(e.resolved)&&o(e.error)&&(e.loading=!0,l(!1))}),p.delay||200)),a(p.timeout)&&(u=setTimeout((function(){u=null,o(e.resolved)&&f(null)}),p.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}function Sn(e){if(i(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||It(n)))return n}}function Cn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&kn(e,t)}function An(e,t){bn.$on(e,t)}function On(e,t){bn.$off(e,t)}function Rn(e,t){var n=bn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function kn(e,t,n){bn=e,ut(t,n||{},An,On,Rn,e),bn=void 0}function xn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(i(e))for(var o=0,a=e.length;o<a;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(i(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var a,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var c=s.length;while(c--)if(a=s[c],a===t||a.fn===t){s.splice(c,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?N(n):n;for(var r=N(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;o<a;o++)Ir(n[o],t,r,t,i)}return t}}var Mn=null;function Nn(e){var t=Mn;return Mn=e,function(){Mn=t}}function Pn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Dn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Nn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Hn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||E(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Hn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Ln(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=Se),Hn(e,"beforeMount"),r=function(){e._update(e._render(),n)};var i={before:function(){e._isMounted&&!e._isDestroyed&&Hn(e,"beforeUpdate")}};new lr(e,r,L,i,!0),n=!1;var o=e._preWatchers;if(o)for(var a=0;a<o.length;a++)o[a].run();return null==e.$vnode&&(e._isMounted=!0,Hn(e,"mounted")),e}function Un(e,t,n,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),u=!!(o||e.$options._renderChildren||c),l=e.$vnode;e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o;var d=i.data.attrs||r;if(e._attrsProxy&&ln(e._attrsProxy,d,l.data&&l.data.attrs||r,e)&&(u=!0),e.$attrs=d,e.$listeners=n||r,t&&e.$options.props){ii(!1);for(var h=e._props,f=e.$options._propKeys||[],p=0;p<f.length;p++){var m=f[p],g=e.$options.props;h[m]=Si(m,g,t,e)}ii(!0),e.$options.propsData=t}n=n||r;var v=e.$options._parentListeners;e.$options._parentListeners=n,kn(e,n,v),u&&(e.$slots=wt(o,i.context),e.$forceUpdate())}function Fn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function qn(e,t){if(t){if(e._directInactive=!1,Fn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)qn(e.$children[n]);Hn(e,"activated")}}function Bn(e,t){if((!t||(e._directInactive=!0,!Fn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Bn(e.$children[n]);Hn(e,"deactivated")}}function Hn(e,t,n){we();var r=me;ve(e);var i=e.$options[t],o="".concat(t," hook");if(i)for(var a=0,s=i.length;a<s;a++)Ir(i[a],e,n||null,e,o);e._hasHookEvent&&e.$emit("hook:"+t),ve(r),Te()}var jn=[],Vn=[],Gn={},zn=!1,$n=!1,Yn=0;function Kn(){Yn=jn.length=Vn.length=0,Gn={},zn=$n=!1}var Wn,Xn=0,Qn=Date.now;if(J&&!te){var Zn=window.performance;Zn&&"function"===typeof Zn.now&&Qn()>document.createEvent("Event").timeStamp&&(Qn=function(){return Zn.now()})}function Jn(){var e,t;for(Xn=Qn(),$n=!0,jn.sort((function(e,t){return e.id-t.id})),Yn=0;Yn<jn.length;Yn++)e=jn[Yn],e.before&&e.before(),t=e.id,Gn[t]=null,e.run();var n=Vn.slice(),r=jn.slice();Kn(),nr(n),er(r),de&&$.devtools&&de.emit("flush")}function er(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Hn(r,"updated")}}function tr(e){e._inactive=!1,Vn.push(e)}function nr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,qn(e[t],!0)}function rr(e){var t=e.id;if(null==Gn[t]&&(e!==_e.target||!e.noRecurse)){if(Gn[t]=!0,$n){var n=jn.length-1;while(n>Yn&&jn[n].id>e.id)n--;jn.splice(n+1,0,e)}else jn.push(e);zn||(zn=!0,Lr(Jn))}}var ir=function(){function e(e){void 0===e&&(e=!1),this.active=!0,this.effects=[],this.cleanups=[],!e&&Wn&&(this.parent=Wn,this.index=(Wn.scopes||(Wn.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=Wn;try{return Wn=this,e()}finally{Wn=t}}else 0},e.prototype.on=function(){Wn=this},e.prototype.off=function(){Wn=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}},e}();function or(e){return new ir(e)}function ar(e,t){void 0===t&&(t=Wn),t&&t.active&&t.effects.push(e)}function sr(){return Wn}function cr(e){Wn&&Wn.cleanups.push(e)}var ur=0,lr=function(){function e(e,t,n,r,i){ar(this,Wn||(e?e._scope:void 0)),(this.vm=e)&&i&&(e._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ur,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="",l(t)?this.getter=t:(this.getter=Q(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;we(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Zs){if(!this.user)throw Zs;Tr(Zs,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&ot(e),Te(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():rr(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||d(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');Ir(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&E(this.vm._scope.effects,this),this.active){var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}();function dr(e,t){var n,r,i=l(e);i?(n=e,r=L):(n=e.get,r=e.set);var o=le()?null:new lr(me,n,L,{lazy:!0});var a={effect:o,get value(){return o?(o.dirty&&o.evaluate(),_e.target&&o.depend(),o.value):n()},set value(e){r(e)}};return W(a,Be,!0),W(a,"__v_isReadonly",i),a}var hr="watcher",fr="".concat(hr," callback"),pr="".concat(hr," getter"),mr="".concat(hr," cleanup");function gr(e,t){return Er(e,null,t)}function vr(e,t){return Er(e,null,{flush:"post"})}function yr(e,t){return Er(e,null,{flush:"sync"})}var br={};function _r(e,t,n){return Er(e,t,n)}function Er(e,t,n){var o=void 0===n?r:n,a=o.immediate,s=o.deep,c=o.flush,u=void 0===c?"pre":c;o.onTrack,o.onTrigger;var d,h,f=me,p=function(e,t,n){return void 0===n&&(n=null),Ir(e,null,n,f,t)},m=!1,g=!1;if(He(e)?(d=function(){return e.value},m=De(e)):Pe(e)?(d=i(e)?function(){return e.__ob__.dep.depend(),e}:function(){return e},s=!0):i(e)?(g=!0,m=e.some((function(e){return Pe(e)||De(e)})),d=function(){return e.map((function(e){return He(e)?e.value:Pe(e)?ot(e):l(e)?p(e,pr):void 0}))}):d=l(e)?t?function(){return p(e,pr)}:function(){if(!f||!f._isDestroyed)return h&&h(),p(e,hr,[y])}:L,t&&s){var v=d;d=function(){return ot(v())}}var y=function(e){h=b.onStop=function(){p(e,mr)}};if(le())return y=L,t?a&&p(t,fr,[d(),g?[]:void 0,y]):d(),L;var b=new lr(me,d,L,{lazy:!0});b.noRecurse=!t;var _=g?[]:br;return b.run=function(){if(b.active||"pre"===u&&f&&f._isBeingDestroyed)if(t){var e=b.get();(s||m||(g?e.some((function(e,t){return j(e,_[t])})):j(e,_)))&&(h&&h(),p(t,fr,[e,_===br?void 0:_,y]),_=e)}else b.get()},"sync"===u?b.update=b.run:"post"===u?(b.id=1/0,b.update=function(){return rr(b)}):b.update=function(){if(f&&f===me){var e=f._preWatchers||(f._preWatchers=[]);e.indexOf(b)<0&&e.push(b)}else rr(b)},t?a?b.run():_=b.get():"post"===u&&f?f.$once("hook:mounted",(function(){return b.get()})):b.get(),function(){b.teardown()}}function wr(e,t,n){return nn(me,e,t,n,2,!0)}function Tr(e,t,n){we();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(Zs){Sr(Zs,r,"errorCaptured hook")}}}Sr(e,t,n)}finally{Te()}}function Ir(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&g(o)&&!o._handled&&(o.catch((function(e){return Tr(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(Zs){Tr(Zs,r,i)}return o}function Sr(e,t,n){if($.errorHandler)try{return $.errorHandler.call(null,e,t,n)}catch(Zs){Zs!==e&&Cr(Zs,null,"config.errorHandler")}Cr(e,t,n)}function Cr(e,t,n){if(!J||"undefined"===typeof console)throw e;console.error(e)}var Ar,Or=!1,Rr=[],kr=!1;function xr(){kr=!1;var e=Rr.slice(0);Rr.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&he(Promise)){var Mr=Promise.resolve();Ar=function(){Mr.then(xr),ie&&setTimeout(L)},Or=!0}else if(te||"undefined"===typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ar="undefined"!==typeof setImmediate&&he(setImmediate)?function(){setImmediate(xr)}:function(){setTimeout(xr,0)};else{var Nr=1,Pr=new MutationObserver(xr),Dr=document.createTextNode(String(Nr));Pr.observe(Dr,{characterData:!0}),Ar=function(){Nr=(Nr+1)%2,Dr.data=String(Nr)},Or=!0}function Lr(e,t){var n;if(Rr.push((function(){if(e)try{e.call(t)}catch(Zs){Tr(Zs,t,"nextTick")}else n&&n(t)})),kr||(kr=!0,Ar()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}function Ur(e){if(void 0===e&&(e="$style"),!me)return r;var t=me[e];return t||r}function Fr(e){if(J){var t=me;t&&vr((function(){var n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){var i=n.style;for(var o in r)i.setProperty("--".concat(o),r[o])}}))}}function qr(e){return function(t,n){if(void 0===n&&(n=me),n)return Br(n,e,t)}}function Br(e,t,n){var r=e.$options;r[t]=gi(r[t],n)}var Hr=qr("beforeMount"),jr=qr("mounted"),Vr=qr("beforeUpdate"),Gr=qr("updated"),zr=qr("beforeDestroy"),$r=qr("destroyed"),Yr=qr("errorCaptured"),Kr=qr("activated"),Wr=qr("deactivated"),Xr=qr("serverPrefetch"),Qr=qr("renderTracked"),Zr=qr("renderTriggered"),Jr="2.7.2";function ei(e){return e}var ti=Object.getOwnPropertyNames(Re),ni={},ri=!0;function ii(e){ri=e}var oi=function(){function e(e,t){void 0===t&&(t=!1),this.value=e,this.shallow=t,this.dep=new _e,this.vmCount=0,W(e,"__ob__",this),i(e)?(Z?ai(e,Re):si(e,Re,ti),t||this.observeArray(e)):this.walk(e,t)}return e.prototype.walk=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];ui(e,i,ni,void 0,t)}},e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)ci(e[t])},e}();function ai(e,t){e.__proto__=t}function si(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];W(e,o,t[o])}}function ci(e,t){var n;if(!(!d(e)||He(e)||e instanceof Ie))return T(e,"__ob__")&&e.__ob__ instanceof oi?n=e.__ob__:ri&&!le()&&(i(e)||f(e))&&Object.isExtensible(e)&&!e.__v_skip&&(n=new oi(e,t)),n}function ui(e,t,n,r,o){var a=new _e,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var c=s&&s.get,u=s&&s.set;c&&!u||n!==ni&&2!==arguments.length||(n=e[t]);var l=!o&&ci(n);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=c?c.call(e):n;return _e.target&&(a.depend(),l&&(l.dep.depend(),i(t)&&hi(t))),He(t)&&!o?t.value:t},set:function(t){var r=c?c.call(e):n;if(j(r,t)){if(u)u.call(e,t);else{if(c)return;if(He(r)&&!He(t))return void(r.value=t);n=t}l=!o&&ci(t),a.notify()}}}),a}}function li(e,t,n){if(!Le(e)){if(i(e)&&m(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(ui(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}}function di(e,t){if(i(e)&&m(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Le(e)||T(e,t)&&(delete e[t],n&&n.dep.notify())}}function hi(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),i(t)&&hi(t)}var fi=$.optionMergeStrategies;function pi(e,t){if(!t)return e;for(var n,r,i,o=pe?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],T(e,n)?r!==i&&f(r)&&f(i)&&pi(r,i):li(e,n,i));return e}function mi(e,t,n){return n?function(){var r=l(t)?t.call(n,n):t,i=l(e)?e.call(n,n):e;return r?pi(r,i):i}:t?e?function(){return pi(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}function gi(e,t){var n=t?e?e.concat(t):i(t)?t:[t]:e;return n?vi(n):n}function vi(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function yi(e,t,n,r){var i=Object.create(e||null);return t?P(i,t):i}fi.data=function(e,t,n){return n?mi(e,t,n):t&&"function"!==typeof t?e:mi(e,t)},z.forEach((function(e){fi[e]=gi})),G.forEach((function(e){fi[e+"s"]=yi})),fi.watch=function(e,t,n,r){if(e===se&&(e=void 0),t===se&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var a in P(o,e),t){var s=o[a],c=t[a];s&&!i(s)&&(s=[s]),o[a]=s?s.concat(c):i(c)?c:[c]}return o},fi.props=fi.methods=fi.inject=fi.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},fi.provide=mi;var bi=function(e,t){return void 0===t?e:t};function _i(e,t){var n=e.props;if(n){var r,o,a,s={};if(i(n)){r=n.length;while(r--)o=n[r],"string"===typeof o&&(a=C(o),s[a]={type:null})}else if(f(n))for(var c in n)o=n[c],a=C(c),s[a]=f(o)?o:{type:o};else 0;e.props=s}}function Ei(e,t){var n=e.inject;if(n){var r=e.inject={};if(i(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(f(n))for(var a in n){var s=n[a];r[a]=f(s)?P({from:a},s):{from:s}}else 0}}function wi(e){var t=e.directives;if(t)for(var n in t){var r=t[n];l(r)&&(t[n]={bind:r,update:r})}}function Ti(e,t,n){if(l(t)&&(t=t.options),_i(t,n),Ei(t,n),wi(t),!t._base&&(t.extends&&(e=Ti(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ti(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)T(e,o)||s(o);function s(r){var i=fi[r]||bi;a[r]=i(e[r],t[r],n,r)}return a}function Ii(e,t,n,r){if("string"===typeof n){var i=e[t];if(T(i,n))return i[n];var o=C(n);if(T(i,o))return i[o];var a=A(o);if(T(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Si(e,t,n,r){var i=t[e],o=!T(n,e),a=n[e],s=ki(Boolean,i.type);if(s>-1)if(o&&!T(i,"default"))a=!1;else if(""===a||a===R(e)){var c=ki(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Ci(r,i,e);var u=ri;ii(!0),ci(a),ii(u)}return a}function Ci(e,t,n){if(T(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:l(r)&&"Function"!==Oi(t.type)?r.call(e):r}}var Ai=/^\s*function (\w+)/;function Oi(e){var t=e&&e.toString().match(Ai);return t?t[1]:""}function Ri(e,t){return Oi(e)===Oi(t)}function ki(e,t){if(!i(t))return Ri(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Ri(t[n],e))return n;return-1}var xi={enumerable:!0,configurable:!0,get:L,set:L};function Mi(e,t,n){xi.get=function(){return this[t][n]},xi.set=function(e){this[t][n]=e},Object.defineProperty(e,n,xi)}function Ni(e){var t=e.$options;if(t.props&&Pi(e,t.props),sn(e),t.methods&&ji(e,t.methods),t.data)Di(e);else{var n=ci(e._data={});n&&n.vmCount++}t.computed&&Fi(e,t.computed),t.watch&&t.watch!==se&&Vi(e,t.watch)}function Pi(e,t){var n=e.$options.propsData||{},r=e._props=Me({}),i=e.$options._propKeys=[],o=!e.$parent;o||ii(!1);var a=function(o){i.push(o);var a=Si(o,t,n,e);ui(r,o,a),o in e||Mi(e,"_props",o)};for(var s in t)a(s);ii(!0)}function Di(e){var t=e.$options.data;t=e._data=l(t)?Li(t,e):t||{},f(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&T(r,o)||K(o)||Mi(e,"_data",o)}var a=ci(t);a&&a.vmCount++}function Li(e,t){we();try{return e.call(t,t)}catch(Zs){return Tr(Zs,t,"data()"),{}}finally{Te()}}var Ui={lazy:!0};function Fi(e,t){var n=e._computedWatchers=Object.create(null),r=le();for(var i in t){var o=t[i],a=l(o)?o:o.get;0,r||(n[i]=new lr(e,a||L,L,Ui)),i in e||qi(e,i,o)}}function qi(e,t,n){var r=!le();l(n)?(xi.get=r?Bi(t):Hi(n),xi.set=L):(xi.get=n.get?r&&!1!==n.cache?Bi(t):Hi(n.get):L,xi.set=n.set||L),Object.defineProperty(e,t,xi)}function Bi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),_e.target&&t.depend(),t.value}}function Hi(e){return function(){return e.call(this,this)}}function ji(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?L:M(t[n],e)}function Vi(e,t){for(var n in t){var r=t[n];if(i(r))for(var o=0;o<r.length;o++)Gi(e,n,r[o]);else Gi(e,n,r)}}function Gi(e,t,n,r){return f(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function zi(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=li,e.prototype.$delete=di,e.prototype.$watch=function(e,t,n){var r=this;if(f(t))return Gi(r,e,t,n);n=n||{},n.user=!0;var i=new lr(r,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(i.expression,'"');we(),Ir(t,r,[i.value],r,o),Te()}return function(){i.teardown()}}}var $i=0;function Yi(e){e.prototype._init=function(e){var t=this;t._uid=$i++,t._isVue=!0,t.__v_skip=!0,t._scope=new ir(!0),e&&e._isComponent?Ki(t,e):t.$options=Ti(Wi(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Pn(t),Cn(t),yn(t),Hn(t,"beforeCreate"),_t(t),Ni(t),bt(t),Hn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Ki(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Wi(e){var t=e.options;if(e.super){var n=Wi(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Xi(e);i&&P(e.extendOptions,i),t=e.options=Ti(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Xi(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Qi(e){this._init(e)}function Zi(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=N(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}function Ji(e){e.mixin=function(e){return this.options=Ti(this.options,e),this}}function eo(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ti(n.options,e),a["super"]=n,a.options.props&&to(a),a.options.computed&&no(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,G.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=P({},a.options),i[r]=a,a}}function to(e){var t=e.options.props;for(var n in t)Mi(e.prototype,"_props",n)}function no(e){var t=e.options.computed;for(var n in t)qi(e.prototype,n,t[n])}function ro(e){G.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function io(e){return e&&(e.Ctor.options.name||e.tag)}function oo(e,t){return i(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function ao(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&so(n,o,r,i)}}}function so(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,E(n,t)}Yi(Qi),zi(Qi),xn(Qi),Dn(Qi),En(Qi);var co=[String,RegExp,Array],uo={name:"keep-alive",abstract:!0,props:{include:co,exclude:co,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:io(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&so(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)so(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){ao(e,(function(e){return oo(t,e)}))})),this.$watch("exclude",(function(t){ao(e,(function(e){return!oo(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Sn(e),n=t&&t.componentOptions;if(n){var r=io(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!oo(o,r))||a&&r&&oo(a,r))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,E(u,l),u.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}},lo={KeepAlive:uo};function ho(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:ye,extend:P,mergeOptions:Ti,defineReactive:ui},e.set=li,e.delete=di,e.nextTick=Lr,e.observable=function(e){return ci(e),e},e.options=Object.create(null),G.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,lo),Zi(e),Ji(e),eo(e),ro(e)}ho(Qi),Object.defineProperty(Qi.prototype,"$isServer",{get:le}),Object.defineProperty(Qi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Qi,"FunctionalRenderContext",{value:Vt}),Qi.version=Jr;var fo=b("style,class"),po=b("input,textarea,option,select,progress"),mo=function(e,t,n){return"value"===n&&po(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},go=b("contenteditable,draggable,spellcheck"),vo=b("events,caret,typing,plaintext-only"),yo=function(e,t){return To(t)||"false"===t?"false":"contenteditable"===e&&vo(t)?t:"true"},bo=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),_o="http://www.w3.org/1999/xlink",Eo=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},wo=function(e){return Eo(e)?e.slice(6,e.length):""},To=function(e){return null==e||!1===e};function Io(e){var t=e.data,n=e,r=e;while(a(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=So(r.data,t));while(a(n=n.parent))n&&n.data&&(t=So(t,n.data));return Co(t.staticClass,t.class)}function So(e,t){return{staticClass:Ao(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Co(e,t){return a(e)||a(t)?Ao(e,Oo(t)):""}function Ao(e,t){return e?t?e+" "+t:e:t||""}function Oo(e){return Array.isArray(e)?Ro(e):d(e)?ko(e):"string"===typeof e?e:""}function Ro(e){for(var t,n="",r=0,i=e.length;r<i;r++)a(t=Oo(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ko(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var xo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Mo=b("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),No=b("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Po=function(e){return Mo(e)||No(e)};function Do(e){return No(e)?"svg":"math"===e?"math":void 0}var Lo=Object.create(null);function Uo(e){if(!J)return!0;if(Po(e))return!1;if(e=e.toLowerCase(),null!=Lo[e])return Lo[e];var t=document.createElement(e);return e.indexOf("-")>-1?Lo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Lo[e]=/HTMLUnknownElement/.test(t.toString())}var Fo=b("text,number,password,search,email,tel,url");function qo(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Bo(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Ho(e,t){return document.createElementNS(xo[e],t)}function jo(e){return document.createTextNode(e)}function Vo(e){return document.createComment(e)}function Go(e,t,n){e.insertBefore(t,n)}function zo(e,t){e.removeChild(t)}function $o(e,t){e.appendChild(t)}function Yo(e){return e.parentNode}function Ko(e){return e.nextSibling}function Wo(e){return e.tagName}function Xo(e,t){e.textContent=t}function Qo(e,t){e.setAttribute(t,"")}var Zo=Object.freeze({__proto__:null,createElement:Bo,createElementNS:Ho,createTextNode:jo,createComment:Vo,insertBefore:Go,removeChild:zo,appendChild:$o,parentNode:Yo,nextSibling:Ko,tagName:Wo,setTextContent:Xo,setStyleScope:Qo}),Jo={create:function(e,t){ea(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ea(e,!0),ea(t))},destroy:function(e){ea(e,!0)}};function ea(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,s=t?null:o,c=t?void 0:o;if(l(n))Ir(n,r,[s],r,"template ref function");else{var u=e.data.refInFor,d="string"===typeof n||"number"===typeof n,h=He(n),f=r.$refs;if(d||h)if(u){var p=d?f[n]:n.value;t?i(p)&&E(p,o):i(p)?p.includes(o)||p.push(o):d?(f[n]=[o],ta(r,n,f[n])):n.value=[o]}else if(d){if(t&&f[n]!==o)return;f[n]=c,ta(r,n,s)}else if(h){if(t&&n.value!==o)return;n.value=s}else 0}}}function ta(e,t,n){var r=e._setupState;r&&T(r,t)&&(He(r[t])?r[t].value=n:r[t]=n)}var na=new Ie("",{},[]),ra=["create","activate","update","remove","destroy"];function ia(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&oa(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function oa(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||Fo(r)&&Fo(i)}function aa(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,a(i)&&(o[i]=r);return o}function sa(e){var t,n,r={},c=e.modules,l=e.nodeOps;for(t=0;t<ra.length;++t)for(r[ra[t]]=[],n=0;n<c.length;++n)a(c[n][ra[t]])&&r[ra[t]].push(c[n][ra[t]]);function d(e){return new Ie(l.tagName(e).toLowerCase(),{},[],void 0,e)}function h(e,t){function n(){0===--n.listeners&&f(e)}return n.listeners=t,n}function f(e){var t=l.parentNode(e);a(t)&&l.removeChild(t,e)}function p(e,t,n,r,i,o,c){if(a(e.elm)&&a(o)&&(e=o[c]=Ae(e)),e.isRootInsert=!i,!m(e,t,n,r)){var u=e.data,d=e.children,h=e.tag;a(h)?(e.elm=e.ns?l.createElementNS(e.ns,h):l.createElement(h,e),T(e),_(e,d,t),a(u)&&w(e,t),y(n,e.elm,r)):s(e.isComment)?(e.elm=l.createComment(e.text),y(n,e.elm,r)):(e.elm=l.createTextNode(e.text),y(n,e.elm,r))}}function m(e,t,n,r){var i=e.data;if(a(i)){var o=a(e.componentInstance)&&i.keepAlive;if(a(i=i.hook)&&a(i=i.init)&&i(e,!1),a(e.componentInstance))return g(e,t),y(n,e.elm,r),s(o)&&v(e,t,n,r),!0}}function g(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,E(e)?(w(e,t),T(e)):(ea(e),t.push(e))}function v(e,t,n,i){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](na,s);t.push(s);break}y(n,e.elm,i)}function y(e,t,n){a(e)&&(a(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function _(e,t,n){if(i(t)){0;for(var r=0;r<t.length;++r)p(t[r],n,e.elm,null,!0,t,r)}else u(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function E(e){while(e.componentInstance)e=e.componentInstance._vnode;return a(e.tag)}function w(e,n){for(var i=0;i<r.create.length;++i)r.create[i](na,e);t=e.data.hook,a(t)&&(a(t.create)&&t.create(na,e),a(t.insert)&&n.push(e))}function T(e){var t;if(a(t=e.fnScopeId))l.setStyleScope(e.elm,t);else{var n=e;while(n)a(t=n.context)&&a(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent}a(t=Mn)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function I(e,t,n,r,i,o){for(;r<=i;++r)p(n[r],o,e,t,!1,n,r)}function S(e){var t,n,i=e.data;if(a(i))for(a(t=i.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function C(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(A(r),S(r)):f(r.elm))}}function A(e,t){if(a(t)||a(e.data)){var n,i=r.remove.length+1;for(a(t)?t.listeners+=i:t=h(e.elm,i),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&A(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else f(e.elm)}function O(e,t,n,r,i){var s,c,u,d,h=0,f=0,m=t.length-1,g=t[0],v=t[m],y=n.length-1,b=n[0],_=n[y],E=!i;while(h<=m&&f<=y)o(g)?g=t[++h]:o(v)?v=t[--m]:ia(g,b)?(k(g,b,r,n,f),g=t[++h],b=n[++f]):ia(v,_)?(k(v,_,r,n,y),v=t[--m],_=n[--y]):ia(g,_)?(k(g,_,r,n,y),E&&l.insertBefore(e,g.elm,l.nextSibling(v.elm)),g=t[++h],_=n[--y]):ia(v,b)?(k(v,b,r,n,f),E&&l.insertBefore(e,v.elm,g.elm),v=t[--m],b=n[++f]):(o(s)&&(s=aa(t,h,m)),c=a(b.key)?s[b.key]:R(b,t,h,m),o(c)?p(b,r,e,g.elm,!1,n,f):(u=t[c],ia(u,b)?(k(u,b,r,n,f),t[c]=void 0,E&&l.insertBefore(e,u.elm,g.elm)):p(b,r,e,g.elm,!1,n,f)),b=n[++f]);h>m?(d=o(n[y+1])?null:n[y+1].elm,I(e,d,n,f,y,r)):f>y&&C(t,h,m)}function R(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(a(o)&&ia(e,o))return i}}function k(e,t,n,i,c,u){if(e!==t){a(t.elm)&&a(i)&&(t=i[c]=Ae(t));var d=t.elm=e.elm;if(s(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?N(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;a(f)&&a(h=f.hook)&&a(h=h.prepatch)&&h(e,t);var p=e.children,m=t.children;if(a(f)&&E(t)){for(h=0;h<r.update.length;++h)r.update[h](e,t);a(h=f.hook)&&a(h=h.update)&&h(e,t)}o(t.text)?a(p)&&a(m)?p!==m&&O(d,p,m,n,u):a(m)?(a(e.text)&&l.setTextContent(d,""),I(d,null,m,0,m.length-1,n)):a(p)?C(p,0,p.length-1):a(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),a(f)&&a(h=f.hook)&&a(h=h.postpatch)&&h(e,t)}}}function x(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var M=b("attrs,class,staticClass,staticStyle,key");function N(e,t,n,r){var i,o=t.tag,c=t.data,u=t.children;if(r=r||c&&c.pre,t.elm=e,s(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(c)&&(a(i=c.hook)&&a(i=i.init)&&i(t,!0),a(i=t.componentInstance)))return g(t,n),!0;if(a(o)){if(a(u))if(e.hasChildNodes())if(a(i=c)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var l=!0,d=e.firstChild,h=0;h<u.length;h++){if(!d||!N(d,u[h],n,r)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else _(t,u,n);if(a(c)){var f=!1;for(var p in c)if(!M(p)){f=!0,w(t,n);break}!f&&c["class"]&&ot(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!o(t)){var c=!1,u=[];if(o(e))c=!0,p(t,u);else{var h=a(e.nodeType);if(!h&&ia(e,t))k(e,t,u,null,null,i);else{if(h){if(1===e.nodeType&&e.hasAttribute(V)&&(e.removeAttribute(V),n=!0),s(n)&&N(e,t,u))return x(t,u,!0),e;e=d(e)}var f=e.elm,m=l.parentNode(f);if(p(t,u,f._leaveCb?null:m,l.nextSibling(f)),a(t.parent)){var g=t.parent,v=E(t);while(g){for(var y=0;y<r.destroy.length;++y)r.destroy[y](g);if(g.elm=t.elm,v){for(var b=0;b<r.create.length;++b)r.create[b](na,g);var _=g.data.hook.insert;if(_.merged)for(var w=1;w<_.fns.length;w++)_.fns[w]()}else ea(g);g=g.parent}}a(m)?C([e],0,0):a(e.tag)&&S(e)}}return x(t,u,c),t.elm}a(e)&&S(e)}}var ca={create:ua,update:ua,destroy:function(e){ua(e,na)}};function ua(e,t){(e.data.directives||t.data.directives)&&la(e,t)}function la(e,t){var n,r,i,o=e===na,a=t===na,s=ha(e.data.directives,e.context),c=ha(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,pa(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(pa(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var n=0;n<u.length;n++)pa(u[n],"inserted",t,e)};o?lt(t,"insert",d):d()}if(l.length&&lt(t,"postpatch",(function(){for(var n=0;n<l.length;n++)pa(l[n],"componentUpdated",t,e)})),!o)for(n in s)c[n]||pa(s[n],"unbind",e,e,a)}var da=Object.create(null);function ha(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=da),i[fa(r)]=r,t._setupState&&t._setupState.__sfc&&(r.def=r.def||Ii(t,"_setupState","v-"+r.name)),r.def=r.def||Ii(t.$options,"directives",r.name,!0);return i}function fa(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function pa(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Zs){Tr(Zs,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var ma=[Jo,ca];function ga(e,t){var n=t.componentOptions;if((!a(n)||!1!==n.Ctor.options.inheritAttrs)&&(!o(e.data.attrs)||!o(t.data.attrs))){var r,i,c,u=t.elm,l=e.data.attrs||{},d=t.data.attrs||{};for(r in(a(d.__ob__)||s(d._v_attr_proxy))&&(d=t.data.attrs=P({},d)),d)i=d[r],c=l[r],c!==i&&va(u,r,i,t.data.pre);for(r in(te||re)&&d.value!==l.value&&va(u,"value",d.value),l)o(d[r])&&(Eo(r)?u.removeAttributeNS(_o,wo(r)):go(r)||u.removeAttribute(r))}}function va(e,t,n,r){r||e.tagName.indexOf("-")>-1?ya(e,t,n):bo(t)?To(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):go(t)?e.setAttribute(t,yo(t,n)):Eo(t)?To(n)?e.removeAttributeNS(_o,wo(t)):e.setAttributeNS(_o,t,n):ya(e,t,n)}function ya(e,t,n){if(To(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var ba={create:ga,update:ga};function _a(e,t){var n=t.elm,r=t.data,i=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Io(t),c=n._transitionClasses;a(c)&&(s=Ao(s,Oo(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Ea,wa={create:_a,update:_a},Ta="__r",Ia="__c";function Sa(e){if(a(e[Ta])){var t=te?"change":"input";e[t]=[].concat(e[Ta],e[t]||[]),delete e[Ta]}a(e[Ia])&&(e.change=[].concat(e[Ia],e.change||[]),delete e[Ia])}function Ca(e,t,n){var r=Ea;return function i(){var o=t.apply(null,arguments);null!==o&&Ra(e,i,n,r)}}var Aa=Or&&!(ae&&Number(ae[1])<=53);function Oa(e,t,n,r){if(Aa){var i=Xn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ea.addEventListener(e,t,ce?{capture:n,passive:r}:n)}function Ra(e,t,n,r){(r||Ea).removeEventListener(e,t._wrapper||t,n)}function ka(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ea=t.elm||e.elm,Sa(n),ut(n,r,Oa,Ra,Ca,t.context),Ea=void 0}}var xa,Ma={create:ka,update:ka,destroy:function(e){return ka(e,na)}};function Na(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i=t.elm,c=e.data.domProps||{},u=t.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.domProps=P({},u)),c)n in u||(i[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===c[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var l=o(r)?"":String(r);Pa(i,l)&&(i.value=l)}else if("innerHTML"===n&&No(i.tagName)&&o(i.innerHTML)){xa=xa||document.createElement("div"),xa.innerHTML="<svg>".concat(r,"</svg>");var d=xa.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(d.firstChild)i.appendChild(d.firstChild)}else if(r!==c[n])try{i[n]=r}catch(Zs){}}}}function Pa(e,t){return!e.composing&&("OPTION"===e.tagName||Da(e,t)||La(e,t))}function Da(e,t){var n=!0;try{n=document.activeElement!==e}catch(Zs){}return n&&e.value!==t}function La(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return y(n)!==y(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Ua={create:Na,update:Na},Fa=I((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function qa(e){var t=Ba(e.style);return e.staticStyle?P(e.staticStyle,t):t}function Ba(e){return Array.isArray(e)?D(e):"string"===typeof e?Fa(e):e}function Ha(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=qa(i.data))&&P(r,n)}(n=qa(e.data))&&P(r,n);var o=e;while(o=o.parent)o.data&&(n=qa(o.data))&&P(r,n);return r}var ja,Va=/^--/,Ga=/\s*!important$/,za=function(e,t,n){if(Va.test(t))e.style.setProperty(t,n);else if(Ga.test(n))e.style.setProperty(R(t),n.replace(Ga,""),"important");else{var r=Ya(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},$a=["Webkit","Moz","ms"],Ya=I((function(e){if(ja=ja||document.createElement("div").style,e=C(e),"filter"!==e&&e in ja)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<$a.length;n++){var r=$a[n]+t;if(r in ja)return r}}));function Ka(e,t){var n=t.data,r=e.data;if(!(o(n.staticStyle)&&o(n.style)&&o(r.staticStyle)&&o(r.style))){var i,s,c=t.elm,u=r.staticStyle,l=r.normalizedStyle||r.style||{},d=u||l,h=Ba(t.data.style)||{};t.data.normalizedStyle=a(h.__ob__)?P({},h):h;var f=Ha(t,!0);for(s in d)o(f[s])&&za(c,s,"");for(s in f)i=f[s],i!==d[s]&&za(c,s,null==i?"":i)}}var Wa={create:Ka,update:Ka},Xa=/\s+/;function Qa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xa).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Za(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xa).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ja(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&P(t,es(e.name||"v")),P(t,e),t}return"string"===typeof e?es(e):void 0}}var es=I((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),ts=J&&!ne,ns="transition",rs="animation",is="transition",os="transitionend",as="animation",ss="animationend";ts&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(is="WebkitTransition",os="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(as="WebkitAnimation",ss="webkitAnimationEnd"));var cs=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function us(e){cs((function(){cs(e)}))}function ls(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Qa(e,t))}function ds(e,t){e._transitionClasses&&E(e._transitionClasses,t),Za(e,t)}function hs(e,t,n){var r=ps(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ns?os:ss,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),o+1),e.addEventListener(s,l)}var fs=/\b(transform|all)(,|$)/;function ps(e,t){var n,r=window.getComputedStyle(e),i=(r[is+"Delay"]||"").split(", "),o=(r[is+"Duration"]||"").split(", "),a=ms(i,o),s=(r[as+"Delay"]||"").split(", "),c=(r[as+"Duration"]||"").split(", "),u=ms(s,c),l=0,d=0;t===ns?a>0&&(n=ns,l=a,d=o.length):t===rs?u>0&&(n=rs,l=u,d=c.length):(l=Math.max(a,u),n=l>0?a>u?ns:rs:null,d=n?n===ns?o.length:c.length:0);var h=n===ns&&fs.test(r[is+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:h}}function ms(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return gs(t)+gs(e[n])})))}function gs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function vs(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Ja(e.data.transition);if(!o(r)&&!a(n._enterCb)&&1===n.nodeType){var i=r.css,s=r.type,c=r.enterClass,u=r.enterToClass,h=r.enterActiveClass,f=r.appearClass,p=r.appearToClass,m=r.appearActiveClass,g=r.beforeEnter,v=r.enter,b=r.afterEnter,_=r.enterCancelled,E=r.beforeAppear,w=r.appear,T=r.afterAppear,I=r.appearCancelled,S=r.duration,C=Mn,A=Mn.$vnode;while(A&&A.parent)C=A.context,A=A.parent;var O=!C._isMounted||!e.isRootInsert;if(!O||w||""===w){var R=O&&f?f:c,k=O&&m?m:h,x=O&&p?p:u,M=O&&E||g,N=O&&l(w)?w:v,P=O&&T||b,D=O&&I||_,L=y(d(S)?S.enter:S);0;var U=!1!==i&&!ne,F=_s(N),q=n._enterCb=H((function(){U&&(ds(n,x),ds(n,k)),q.cancelled?(U&&ds(n,R),D&&D(n)):P&&P(n),n._enterCb=null}));e.data.show||lt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),N&&N(n,q)})),M&&M(n),U&&(ls(n,R),ls(n,k),us((function(){ds(n,R),q.cancelled||(ls(n,x),F||(bs(L)?setTimeout(q,L):hs(n,s,q)))}))),e.data.show&&(t&&t(),N&&N(n,q)),U||F||q()}}}function ys(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Ja(e.data.transition);if(o(r)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var i=r.css,s=r.type,c=r.leaveClass,u=r.leaveToClass,l=r.leaveActiveClass,h=r.beforeLeave,f=r.leave,p=r.afterLeave,m=r.leaveCancelled,g=r.delayLeave,v=r.duration,b=!1!==i&&!ne,_=_s(f),E=y(d(v)?v.leave:v);0;var w=n._leaveCb=H((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(ds(n,u),ds(n,l)),w.cancelled?(b&&ds(n,c),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));g?g(T):T()}function T(){w.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&(ls(n,c),ls(n,l),us((function(){ds(n,c),w.cancelled||(ls(n,u),_||(bs(E)?setTimeout(w,E):hs(n,s,w)))}))),f&&f(n,w),b||_||w())}}function bs(e){return"number"===typeof e&&!isNaN(e)}function _s(e){if(o(e))return!1;var t=e.fns;return a(t)?_s(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Es(e,t){!0!==t.data.show&&vs(t)}var ws=J?{create:Es,activate:Es,remove:function(e,t){!0!==e.data.show?ys(e,t):t()}}:{},Ts=[ba,wa,Ma,Ua,Wa,ws],Is=Ts.concat(ma),Ss=sa({nodeOps:Zo,modules:Is});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ns(e,"input")}));var Cs={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?lt(n,"postpatch",(function(){Cs.componentUpdated(e,t,n)})):As(e,t,n.context),e._vOptions=[].map.call(e.options,ks)):("textarea"===n.tag||Fo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",xs),e.addEventListener("compositionend",Ms),e.addEventListener("change",Ms),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){As(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ks);if(i.some((function(e,t){return!q(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return Rs(e,i)})):t.value!==t.oldValue&&Rs(t.value,i);o&&Ns(e,"change")}}}};function As(e,t,n){Os(e,t,n),(te||re)&&setTimeout((function(){Os(e,t,n)}),0)}function Os(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=B(r,ks(a))>-1,a.selected!==o&&(a.selected=o);else if(q(ks(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Rs(e,t){return t.every((function(t){return!q(t,e)}))}function ks(e){return"_value"in e?e._value:e.value}function xs(e){e.target.composing=!0}function Ms(e){e.target.composing&&(e.target.composing=!1,Ns(e.target,"input"))}function Ns(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ps(e){return!e.componentInstance||e.data&&e.data.transition?e:Ps(e.componentInstance._vnode)}var Ds={bind:function(e,t,n){var r=t.value;n=Ps(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,vs(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=Ps(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?vs(n,(function(){e.style.display=e.__vOriginalDisplay})):ys(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Ls={model:Cs,show:Ds},Us={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Fs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Fs(Sn(t.children)):e}function qs(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[C(r)]=i[r];return t}function Bs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Hs(e){while(e=e.parent)if(e.data.transition)return!0}function js(e,t){return t.key===e.key&&t.tag===e.tag}var Vs=function(e){return e.tag||It(e)},Gs=function(e){return"show"===e.name},zs={name:"transition",props:Us,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Vs),n.length)){0;var r=this.mode;0;var i=n[0];if(Hs(this.$vnode))return i;var o=Fs(i);if(!o)return i;if(this._leaving)return Bs(e,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:u(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=qs(this),c=this._vnode,l=Fs(c);if(o.data.directives&&o.data.directives.some(Gs)&&(o.data.show=!0),l&&l.data&&!js(o,l)&&!It(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=P({},s);if("out-in"===r)return this._leaving=!0,lt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Bs(e,i);if("in-out"===r){if(It(o))return c;var h,f=function(){h()};lt(s,"afterEnter",f),lt(s,"enterCancelled",f),lt(d,"delayLeave",(function(e){h=e}))}}return i}}},$s=P({tag:String,moveClass:String},Us);delete $s.mode;var Ys={props:$s,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Nn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=qs(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){var u=[],l=[];for(s=0;s<r.length;s++){c=r[s];c.data.transition=a,c.data.pos=c.elm.getBoundingClientRect(),n[c.key]?u.push(c):l.push(c)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ks),e.forEach(Ws),e.forEach(Xs),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;ls(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(os,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(os,e),n._moveCb=null,ds(n,t))})}})))},methods:{hasMove:function(e,t){if(!ts)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Za(n,e)})),Qa(n,t),n.style.display="none",this.$el.appendChild(n);var r=ps(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Ks(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ws(e){e.data.newPos=e.elm.getBoundingClientRect()}function Xs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}var Qs={Transition:zs,TransitionGroup:Ys};Qi.config.mustUseProp=mo,Qi.config.isReservedTag=Po,Qi.config.isReservedAttr=fo,Qi.config.getTagNamespace=Do,Qi.config.isUnknownElement=Uo,P(Qi.options.directives,Ls),P(Qi.options.components,Qs),Qi.prototype.__patch__=J?Ss:L,Qi.prototype.$mount=function(e,t){return e=e&&J?qo(e):void 0,Ln(this,e,t)},J&&setTimeout((function(){$.devtools&&de&&de.emit("init",Qi)}),0)},9980:function(e,t,n){(function(t,r){e.exports=r(n(51474))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,_){c(n,t,v);var E,w,T,I=function(e){if(!h&&e in O)return O[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",C=y==m,A=!1,O=e.prototype,R=O[d]||O[f]||y&&O[y],k=R||I(y),x=y?C?I("entries"):k:void 0,M="Array"==t&&O.entries||R;if(M&&(T=l(M.call(new e)),T!==Object.prototype&&T.next&&(u(T,S,!0),r||"function"==typeof T[d]||a(T,d,g))),C&&R&&R.name!==m&&(A=!0,k=function(){return R.call(this)}),r&&!_||!h&&!A&&O[d]||a(O,d,k),s[t]=k,s[S]=g,y)if(E={values:C?k:I(m),keys:b?k:I(p),entries:x},_)for(w in E)w in O||o(O,w,E[w]);else i(i.P+i.F*(h||A),t,E);return E}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),c=n("520a"),u=s("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!l||"split"===e&&!d){var m=/./[h],g=n(a,h,""[e],(function(e,t,n,r,i){return t.exec===c?f&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),c="toString",u=(""+s).split(c);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(a=function(e){var t,n,a,l,d=this;return u&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),c&&(t=d[s]),a=i.call(d,e),c&&a&&(d[s]=d.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a}),e.exports=a},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,d,h,f,p=e&u.F,m=e&u.G,g=e&u.S,v=e&u.P,y=e&u.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[c],_=m?i:i[t]||(i[t]={}),E=_[c]||(_[c]={});for(l in m&&(n=t),n)d=!p&&b&&void 0!==b[l],h=(d?b:n)[l],f=y&&d?s(h,r):v&&"function"==typeof h?s(Function.call,h):h,b&&a(b,l,h,e&u.U),_[l]!=h&&o(_,l,f),v&&E[l]!=h&&(E[l]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;e.exports=!c||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){var n=a(e),c=arguments.length,u=1,l=i.f,d=o.f;while(c>u){var h,f=s(arguments[u++]),p=l?r(f).concat(l(f)):r(f),m=p.length,g=0;while(m>g)d.call(f,h=p[g++])&&(n[h]=f[h])}return n}:c},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),h=String(this),f="function"===typeof t;f||(t=String(t));var v=d.global;if(v){var y=d.unicode;d.lastIndex=0}var b=[];while(1){var _=c(d,h);if(null===_)break;if(b.push(_),!v)break;var E=String(_[0]);""===E&&(d.lastIndex=s(h,o(d.lastIndex),y))}for(var w="",T=0,I=0;I<b.length;I++){_=b[I];for(var S=String(_[0]),C=u(l(a(_.index),h.length),0),A=[],O=1;O<_.length;O++)A.push(p(_[O]));var R=_.groups;if(f){var k=[S].concat(A,C,h);void 0!==R&&k.push(R);var x=String(t.apply(void 0,k))}else x=g(S,h,C,A,R,t);C>=T&&(w+=h.slice(T,C)+x,T=C+S.length)}return w+h.slice(T)}];function g(e,t,r,o,a,s){var c=r+e.length,u=o.length,l=f;return void 0!==a&&(a=i(a),l=h),n.call(s,l,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var h=d(l/10);return 0===h?n:h<=u?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),d=u("toStringTag"),h=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),m=0;m<p.length;m++){var g,v=p[m],y=f[v],b=a[v],_=b&&b.prototype;if(_&&(_[l]||s(_,l,h),_[d]||s(_,d,v),c[v]=h,y))for(g in r)_[g]||o(_,g,r[g],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return c}));n("a481");function r(){return"undefined"!==typeof window?window.console:e.console}var i=r();function o(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var a=/-(\w)/g,s=o((function(e){return e.replace(a,(function(e,t){return t?t.toUpperCase():""}))}));function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function i(e){if(Array.isArray(e))return e}function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){return i(e)||o(e,t)||s(e,t)||c()}n("6762"),n("2fdb");function l(e){if(Array.isArray(e))return a(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return l(e)||d(e)||s(e)||h()}var p=n("a352"),m=n.n(p),g=n("c649");function v(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function y(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function b(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=f(t).map((function(e,t){return t>=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function _(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function E(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),_.call(t,e,n)}}function w(e){return["transition-group","TransitionGroup"].includes(e)}function T(e){if(!e||1!==e.length)return!1;var t=u(e,1),n=t[0].componentOptions;return!!n&&w(n.tag)}function I(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function S(e,t,n){var r=0,i=0,o=I(t,n,"header");o&&(r=o.length,e=e?[].concat(f(o),f(e)):f(o));var a=I(t,n,"footer");return a&&(i=a.length,e=e?[].concat(f(e),f(a)):f(a)),{children:e,headerOffset:r,footerOffset:i}}function C(e,t){var n=null,r=function(e,t){n=v(n,e,t)},i=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var o=t.on,a=t.props,s=t.attrs;return r("on",o),r("props",a),Object.assign(n.attrs,s),n}var A=["Start","Add","Remove","Update","End"],O=["Choose","Unchoose","Sort","Filter","Clone"],R=["Move"].concat(A,O).map((function(e){return"on"+e})),k=null,x={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},M={name:"draggable",inheritAttrs:!1,props:x,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=T(t);var n=S(t,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=C(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};A.forEach((function(n){t["on"+n]=E.call(e,n)})),O.forEach((function(n){t["on"+n]=_.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(g["a"])(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new m.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(g["a"])(t);-1===R.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=b(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=y(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&w(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),k=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(g["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(g["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(g["d"])(e.clone)},onDragUpdate:function(e){Object(g["d"])(e.item),Object(g["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(k);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(r,e);Object.assign(i,{futureIndex:o});var a=Object.assign({},e,{relatedContext:r,draggedContext:i});return n(a,t)},onDragEnd:function(){this.computeIndexes(),k=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",M);var N=M;t["default"]=N}})["default"]}))},87737:function(e,t,n){"use strict";
/*!
 * vuex v3.6.2
 * (c) 2021 Evan You
 * @license MIT
 */
function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,{gU:function(){return z},ZP:function(){return Y}});var i="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function u(e){return e&&"function"===typeof e.then}function l(e,t){return function(){return e(t)}}var d=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(e,t){this._children[e]=t},d.prototype.removeChild=function(e){delete this._children[e]},d.prototype.getChild=function(e){return this._children[e]},d.prototype.hasChild=function(e){return e in this._children},d.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},d.prototype.forEachChild=function(e){s(this._children,e)},d.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},d.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},d.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(d.prototype,h);var f=function(e){this.register([],e,!1)};function p(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;p(e.concat(r),t.getChild(r),n.modules[r])}}f.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},f.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},f.prototype.update=function(e){p([],this.root,e)},f.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new d(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&s(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},f.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},f.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var m;var g=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&k(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,c=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;E(this,u,[],this._modules.root),_(this,u),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:m.config.devtools;l&&a(this)},v={state:{configurable:!0}};function y(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function b(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;E(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};s(i,(function(t,n){o[n]=l(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:o}),m.config.silent=a,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function E(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=O(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){m.set(s,c,r.state)}))}var u=r.context=w(e,a,n);r.forEachMutation((function(t,n){var r=a+n;I(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;S(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;C(e,r,t,u)})),r.forEachChild((function(r,o){E(e,t,n.concat(o),r,i)}))}function w(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=R(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=R(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return T(e,t)}},state:{get:function(){return O(e.state,n)}}}),i}function T(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function I(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function S(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return u(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function C(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function O(e,t){return t.reduce((function(e,t){return e[t]}),e)}function R(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function k(e){m&&e===m||(m=e,r(m))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){0},g.prototype.commit=function(e,t,n){var r=this,i=R(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},g.prototype.dispatch=function(e,t){var n=this,r=R(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},g.prototype.subscribe=function(e,t){return y(e,this._subscribers,t)},g.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return y(n,this._actionSubscribers,t)},g.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},g.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},g.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),E(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},g.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=O(t.state,e.slice(0,-1));m.delete(n,e[e.length-1])})),b(this)},g.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},g.prototype.hotUpdate=function(e){this._modules.update(e),b(this,!0)},g.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(g.prototype,v);var x=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=q(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),M=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=q(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),N=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||q(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),P=F((function(e,t){var n={};return L(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=q(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),D=function(e){return{mapState:x.bind(null,e),mapGetters:N.bind(null,e),mapMutations:M.bind(null,e),mapActions:P.bind(null,e)}};function L(e){return U(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function U(e){return Array.isArray(e)||c(e)}function F(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function q(e,t,n){var r=e._modulesNamespaceMap[n];return r}function B(e){return function(t,n){return e(t instanceof $?t.getFullPath():t,n)}}const H=B(x),j=B(N),V=B(M),G=B(P);function z(){return{mapState:H,mapActions:G,mapGetters:j,mapMutations:V}}class ${constructor(e=null,t=""){this.parent=e,this.section=t}get(){if(!this.parent)return this.section;const e=this.parent.get();return e?e+"/"+this.section:this.section}}var Y={Store:g,install:k,mapState:H,mapMutations:V,mapGetters:j,mapActions:G,createHelpers:z,createNamespacedHelpers:D}},10509:function(e,t,n){"use strict";var r=n(69985),i=n(23691),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},52655:function(e,t,n){"use strict";var r=n(19429),i=n(23691),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},23550:function(e,t,n){"use strict";var r=n(69985),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},87370:function(e,t,n){"use strict";var r=n(44201),i=n(25391),o=n(72560).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},71514:function(e,t,n){"use strict";var r=n(10730).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},767:function(e,t,n){"use strict";var r=n(23622),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},85027:function(e,t,n){"use strict";var r=n(48999),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},84328:function(e,t,n){"use strict";var r=n(65290),i=n(27578),o=n(6310),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c),l=i(a,u);if(e&&n!==n){while(u>l)if(s=c[l++],s!==s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},16834:function(e,t,n){"use strict";var r=n(3689);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},88820:function(e,t,n){"use strict";var r=n(10509),i=n(90690),o=n(94413),a=n(6310),s=TypeError,c=function(e){return function(t,n,c,u){r(n);var l=i(t),d=o(l),h=a(l),f=e?h-1:0,p=e?-1:1;if(c<2)while(1){if(f in d){u=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw new s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(u=n(u,d[f],f,l));return u}};e.exports={left:c(!1),right:c(!0)}},5649:function(e,t,n){"use strict";var r=n(67697),i=n(92297),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9015:function(e,t,n){"use strict";var r=n(27578),i=n(6310),o=n(76522),a=Array,s=Math.max;e.exports=function(e,t,n){for(var c=i(e),u=r(t,c),l=r(void 0===n?c:n,c),d=a(s(l-u,0)),h=0;u<l;u++,h++)o(d,h,e[u]);return d.length=h,d}},96004:function(e,t,n){"use strict";var r=n(68844);e.exports=r([].slice)},86431:function(e,t,n){"use strict";var r=n(44201),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(c){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},6648:function(e,t,n){"use strict";var r=n(68844),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},50926:function(e,t,n){"use strict";var r=n(23043),i=n(69985),o=n(6648),a=n(44201),s=a("toStringTag"),c=Object,u="Arguments"===o(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=c(e),s))?n:u?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},8758:function(e,t,n){"use strict";var r=n(36812),i=n(19152),o=n(82474),a=n(72560);e.exports=function(e,t,n){for(var s=i(t),c=a.f,u=o.f,l=0;l<s.length;l++){var d=s[l];r(e,d)||n&&r(n,d)||c(e,d,u(t,d))}}},27413:function(e,t,n){"use strict";var r=n(44201),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},81748:function(e,t,n){"use strict";var r=n(3689);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},27807:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},75773:function(e,t,n){"use strict";var r=n(67697),i=n(72560),o=n(75684);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},75684:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},76522:function(e,t,n){"use strict";var r=n(18360),i=n(72560),o=n(75684);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},11880:function(e,t,n){"use strict";var r=n(69985),i=n(72560),o=n(98702),a=n(95014);e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)c?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},95014:function(e,t,n){"use strict";var r=n(19037),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},98494:function(e,t,n){"use strict";var r=n(23691),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},67697:function(e,t,n){"use strict";var r=n(3689);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},22659:function(e){"use strict";var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},36420:function(e,t,n){"use strict";var r=n(19037),i=n(48999),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},55565:function(e){"use strict";var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},37136:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},66338:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},33265:function(e,t,n){"use strict";var r=n(36420),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},72532:function(e,t,n){"use strict";var r=n(88563),i=n(50806);e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},88563:function(e){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},63221:function(e,t,n){"use strict";var r=n(30071);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},30214:function(e,t,n){"use strict";var r=n(30071);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},50806:function(e,t,n){"use strict";var r=n(19037),i=n(6648);e.exports="process"===i(r.process)},27486:function(e,t,n){"use strict";var r=n(30071);e.exports=/web0s(?!.*chrome)/i.test(r)},30071:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:function(e,t,n){"use strict";var r,i,o=n(19037),a=n(30071),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},72739:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},56610:function(e,t,n){"use strict";var r=n(68844),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},79989:function(e,t,n){"use strict";var r=n(19037),i=n(82474).f,o=n(75773),a=n(11880),s=n(95014),c=n(8758),u=n(35266);e.exports=function(e,t){var n,l,d,h,f,p,m=e.target,g=e.global,v=e.stat;if(l=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,l)for(d in t){if(f=t[d],e.dontCallGetSet?(p=i(l,d),h=p&&p.value):h=l[d],n=u(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(l,d,f,e)}}},3689:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},65773:function(e,t,n){"use strict";n(64043);var r=n(46576),i=n(11880),o=n(56308),a=n(3689),s=n(44201),c=n(75773),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),p=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var m=r(/./[h]),g=t(h,""[e],(function(e,t,n,i,a){var s=r(e),c=t.exec;return c===o||c===l.exec?f&&!a?{done:!0,value:m(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(l,h,g[1])}d&&c(l[h],"sham",!0)}},61735:function(e,t,n){"use strict";var r=n(97215),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},54071:function(e,t,n){"use strict";var r=n(46576),i=n(10509),o=n(97215),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},97215:function(e,t,n){"use strict";var r=n(3689);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},22615:function(e,t,n){"use strict";var r=n(97215),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},41236:function(e,t,n){"use strict";var r=n(67697),i=n(36812),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},52743:function(e,t,n){"use strict";var r=n(68844),i=n(10509);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},46576:function(e,t,n){"use strict";var r=n(6648),i=n(68844);e.exports=function(e){if("Function"===r(e))return i(e)}},68844:function(e,t,n){"use strict";var r=n(97215),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},76058:function(e,t,n){"use strict";var r=n(19037),i=n(69985),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},91664:function(e,t,n){"use strict";var r=n(50926),i=n(54849),o=n(981),a=n(9478),s=n(44201),c=s("iterator");e.exports=function(e){if(!o(e))return i(e,c)||i(e,"@@iterator")||a[r(e)]}},5185:function(e,t,n){"use strict";var r=n(22615),i=n(10509),o=n(85027),a=n(23691),s=n(91664),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new c(a(e)+" is not iterable")}},54849:function(e,t,n){"use strict";var r=n(10509),i=n(981);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},27017:function(e,t,n){"use strict";var r=n(68844),i=n(90690),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,m=l;return void 0!==d&&(d=i(d),m=u),s(h,m,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,f);case"<":u=d[c(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}u=r[l-1]}return void 0===u?"":u}))}},19037:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},36812:function(e,t,n){"use strict";var r=n(68844),i=n(90690),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},57248:function(e){"use strict";e.exports={}},20920:function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},2688:function(e,t,n){"use strict";var r=n(76058);e.exports=r("document","documentElement")},68506:function(e,t,n){"use strict";var r=n(67697),i=n(3689),o=n(36420);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},94413:function(e,t,n){"use strict";var r=n(68844),i=n(3689),o=n(6648),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},33457:function(e,t,n){"use strict";var r=n(69985),i=n(48999),o=n(49385);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},6738:function(e,t,n){"use strict";var r=n(68844),i=n(69985),o=n(84091),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},618:function(e,t,n){"use strict";var r,i,o,a=n(59834),s=n(19037),c=n(48999),u=n(75773),l=n(36812),d=n(84091),h=n(2713),f=n(57248),p="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(e){return o(e)?i(e):r(e,{})},y=function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var b=d.state||(d.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new m(p);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var _=h("state");f[_]=!0,r=function(e,t){if(l(e,_))throw new m(p);return t.facade=e,u(e,_,t),t},i=function(e){return l(e,_)?e[_]:{}},o=function(e){return l(e,_)}}e.exports={set:r,get:i,has:o,enforce:v,getterFor:y}},93292:function(e,t,n){"use strict";var r=n(44201),i=n(9478),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},92297:function(e,t,n){"use strict";var r=n(6648);e.exports=Array.isArray||function(e){return"Array"===r(e)}},69985:function(e,t,n){"use strict";var r=n(22659),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},19429:function(e,t,n){"use strict";var r=n(68844),i=n(3689),o=n(69985),a=n(50926),s=n(76058),c=n(6738),u=function(){},l=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),p=!h.test(u),m=function(e){if(!o(e))return!1;try{return d(u,l,e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},35266:function(e,t,n){"use strict";var r=n(3689),i=n(69985),o=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n===l||n!==u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},981:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},48999:function(e,t,n){"use strict";var r=n(69985),i=n(22659),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},53931:function(e){"use strict";e.exports=!1},91245:function(e,t,n){"use strict";var r=n(48999),i=n(6648),o=n(44201),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},30734:function(e,t,n){"use strict";var r=n(76058),i=n(69985),o=n(23622),a=n(39525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},18734:function(e,t,n){"use strict";var r=n(54071),i=n(22615),o=n(85027),a=n(23691),s=n(93292),c=n(6310),u=n(23622),l=n(5185),d=n(91664),h=n(72125),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var g,v,y,b,_,E,w,T=n&&n.that,I=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),O=r(t,T),R=function(e){return g&&h(g,"normal",e),new p(!0,e)},k=function(e){return I?(o(e),A?O(e[0],e[1],R):O(e[0],e[1])):A?O(e,R):O(e)};if(S)g=e.iterator;else if(C)g=e;else{if(v=d(e),!v)throw new f(a(e)+" is not iterable");if(s(v)){for(y=0,b=c(e);b>y;y++)if(_=k(e[y]),_&&u(m,_))return _;return new p(!1)}g=l(e,v)}E=S?e.next:g.next;while(!(w=i(E,g)).done){try{_=k(w.value)}catch(x){h(g,"throw",x)}if("object"==typeof _&&_&&u(m,_))return _}return new p(!1)}},72125:function(e,t,n){"use strict";var r=n(22615),i=n(85027),o=n(54849);e.exports=function(e,t,n){var a,s;i(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=r(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw n;if(s)throw a;return i(a),n}},30974:function(e,t,n){"use strict";var r=n(12013).IteratorPrototype,i=n(25391),o=n(75684),a=n(55997),s=n(9478),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,l,!1,!0),s[l]=c,e}},91934:function(e,t,n){"use strict";var r=n(79989),i=n(22615),o=n(53931),a=n(41236),s=n(69985),c=n(30974),u=n(61868),l=n(49385),d=n(55997),h=n(75773),f=n(11880),p=n(44201),m=n(9478),g=n(12013),v=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,E=p("iterator"),w="keys",T="values",I="entries",S=function(){return this};e.exports=function(e,t,n,a,p,g,C){c(n,t,a);var A,O,R,k=function(e){if(e===p&&D)return D;if(!_&&e&&e in N)return N[e];switch(e){case w:return function(){return new n(this,e)};case T:return function(){return new n(this,e)};case I:return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",M=!1,N=e.prototype,P=N[E]||N["@@iterator"]||p&&N[p],D=!_&&P||k(p),L="Array"===t&&N.entries||P;if(L&&(A=u(L.call(new e)),A!==Object.prototype&&A.next&&(o||u(A)===b||(l?l(A,b):s(A[E])||f(A,E,S)),d(A,x,!0,!0),o&&(m[x]=S))),v&&p===T&&P&&P.name!==T&&(!o&&y?h(N,"name",T):(M=!0,D=function(){return i(P,this)})),p)if(O={values:k(T),keys:g?D:k(w),entries:k(I)},C)for(R in O)(_||M||!(R in N))&&f(N,R,O[R]);else r({target:t,proto:!0,forced:_||M},O);return o&&!C||N[E]===D||f(N,E,D,{name:p}),m[t]=D,O}},12013:function(e,t,n){"use strict";var r,i,o,a=n(3689),s=n(69985),c=n(48999),u=n(25391),l=n(61868),d=n(11880),h=n(44201),f=n(53931),p=h("iterator"),m=!1;[].keys&&(o=[].keys(),"next"in o?(i=l(l(o)),i!==Object.prototype&&(r=i)):m=!0);var g=!c(r)||a((function(){var e={};return r[p].call(e)!==e}));g?r={}:f&&(r=u(r)),s(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},9478:function(e){"use strict";e.exports={}},6310:function(e,t,n){"use strict";var r=n(43126);e.exports=function(e){return r(e.length)}},98702:function(e,t,n){"use strict";var r=n(68844),i=n(3689),o=n(69985),a=n(36812),s=n(67697),c=n(41236).CONFIGURABLE,u=n(6738),l=n(618),d=l.enforce,h=l.get,f=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&h(this).source||u(this)}),"toString")},58828:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},80231:function(e,t,n){"use strict";var r,i,o,a,s,c=n(19037),u=n(54071),l=n(82474).f,d=n(99886).set,h=n(34410),f=n(30214),p=n(63221),m=n(27486),g=n(50806),v=c.MutationObserver||c.WebKitMutationObserver,y=c.document,b=c.process,_=c.Promise,E=l(c,"queueMicrotask"),w=E&&E.value;if(!w){var T=new h,I=function(){var e,t;g&&(e=b.domain)&&e.exit();while(t=T.get())try{t()}catch(n){throw T.head&&r(),n}e&&e.enter()};f||g||m||!v||!y?!p&&_&&_.resolve?(a=_.resolve(void 0),a.constructor=_,s=u(a.then,a),r=function(){s(I)}):g?r=function(){b.nextTick(I)}:(d=u(d,c),r=function(){d(I)}):(i=!0,o=y.createTextNode(""),new v(I).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){T.head||r(),T.add(e)}}e.exports=w},48742:function(e,t,n){"use strict";var r=n(10509),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},13841:function(e,t,n){"use strict";var r=n(34327);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},42124:function(e,t,n){"use strict";var r=n(91245),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},25391:function(e,t,n){"use strict";var r,i=n(85027),o=n(98920),a=n(72739),s=n(57248),c=n(2688),u=n(36420),l=n(2713),d=">",h="<",f="prototype",p="script",m=l("IE_PROTO"),g=function(){},v=function(e){return h+p+d+e+h+"/"+p+d},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=a.length;while(e--)delete _[f][a[e]];return _()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[f]=i(e),n=new g,g[f]=null,n[m]=e):n=_(),void 0===t?n:o.f(n,t)}},98920:function(e,t,n){"use strict";var r=n(67697),i=n(15648),o=n(72560),a=n(85027),s=n(65290),c=n(20300);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);var n,r=s(t),i=c(t),u=i.length,l=0;while(u>l)o.f(e,n=i[l++],r[n]);return e}},72560:function(e,t,n){"use strict";var r=n(67697),i=n(68506),o=n(15648),a=n(85027),s=n(18360),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},82474:function(e,t,n){"use strict";var r=n(67697),i=n(22615),o=n(49556),a=n(75684),s=n(65290),c=n(18360),u=n(36812),l=n(68506),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(n){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},72741:function(e,t,n){"use strict";var r=n(54948),i=n(72739),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},7518:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},61868:function(e,t,n){"use strict";var r=n(36812),i=n(69985),o=n(90690),a=n(2713),s=n(81748),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},23622:function(e,t,n){"use strict";var r=n(68844);e.exports=r({}.isPrototypeOf)},54948:function(e,t,n){"use strict";var r=n(68844),i=n(36812),o=n(65290),a=n(84328).indexOf,s=n(57248),c=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);while(t.length>u)i(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},20300:function(e,t,n){"use strict";var r=n(54948),i=n(72739);e.exports=Object.keys||function(e){return r(e,i)}},49556:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},49385:function(e,t,n){"use strict";var r=n(52743),i=n(85027),o=n(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},35899:function(e,t,n){"use strict";var r=n(22615),i=n(69985),o=n(48999),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},19152:function(e,t,n){"use strict";var r=n(76058),i=n(68844),o=n(72741),a=n(7518),s=n(85027),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?c(t,n(e)):t}},9302:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},87073:function(e,t,n){"use strict";var r=n(19037),i=n(17919),o=n(69985),a=n(35266),s=n(6738),c=n(44201),u=n(72532),l=n(88563),d=n(53931),h=n(3615),f=i&&i.prototype,p=c("species"),m=!1,g=o(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(d&&(!f["catch"]||!f["finally"]))return!0;if(!h||h<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[p]=r,m=n.then((function(){}))instanceof r,!m)return!0}return!t&&(u||l)&&!g}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},17919:function(e,t,n){"use strict";var r=n(19037);e.exports=r.Promise},72945:function(e,t,n){"use strict";var r=n(85027),i=n(48999),o=n(48742);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},562:function(e,t,n){"use strict";var r=n(17919),i=n(86431),o=n(87073).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},34410:function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=t},66100:function(e,t,n){"use strict";var r=n(22615),i=n(85027),o=n(69985),a=n(6648),s=n(56308),c=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return r(s,e,t);throw new c("RegExp#exec called on incompatible receiver")}},56308:function(e,t,n){"use strict";var r=n(22615),i=n(68844),o=n(34327),a=n(69633),s=n(87901),c=n(83430),u=n(25391),l=n(618).get,d=n(62100),h=n(26738),f=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,g=i("".charAt),v=i("".indexOf),y=i("".replace),b=i("".slice),_=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),E=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],T=_||w||E||d||h;T&&(m=function(e){var t,n,i,s,c,d,h,T=this,I=l(T),S=o(e),C=I.raw;if(C)return C.lastIndex=T.lastIndex,t=r(m,C,S),T.lastIndex=C.lastIndex,t;var A=I.groups,O=E&&T.sticky,R=r(a,T),k=T.source,x=0,M=S;if(O&&(R=y(R,"y",""),-1===v(R,"g")&&(R+="g"),M=b(S,T.lastIndex),T.lastIndex>0&&(!T.multiline||T.multiline&&"\n"!==g(S,T.lastIndex-1))&&(k="(?: "+k+")",M=" "+M,x++),n=new RegExp("^(?:"+k+")",R)),w&&(n=new RegExp("^"+k+"$(?!\\s)",R)),_&&(i=T.lastIndex),s=r(p,O?n:T,M),O?s?(s.input=b(s.input,x),s[0]=b(s[0],x),s.index=T.lastIndex,T.lastIndex+=s[0].length):T.lastIndex=0:_&&s&&(T.lastIndex=T.global?s.index+s[0].length:i),w&&s&&s.length>1&&r(f,s[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)})),s&&A)for(s.groups=d=u(null),c=0;c<A.length;c++)h=A[c],d[h[0]]=s[h[1]];return s}),e.exports=m},69633:function(e,t,n){"use strict";var r=n(85027);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},63477:function(e,t,n){"use strict";var r=n(22615),i=n(36812),o=n(23622),a=n(69633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},87901:function(e,t,n){"use strict";var r=n(3689),i=n(19037),o=i.RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),c=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:c,MISSED_STICKY:s,UNSUPPORTED_Y:a}},62100:function(e,t,n){"use strict";var r=n(3689),i=n(19037),o=i.RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},26738:function(e,t,n){"use strict";var r=n(3689),i=n(19037),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},74684:function(e,t,n){"use strict";var r=n(981),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},14241:function(e,t,n){"use strict";var r=n(76058),i=n(62148),o=n(44201),a=n(67697),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},55997:function(e,t,n){"use strict";var r=n(72560).f,i=n(36812),o=n(44201),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},2713:function(e,t,n){"use strict";var r=n(83430),i=n(14630),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},84091:function(e,t,n){"use strict";var r=n(19037),i=n(95014),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},83430:function(e,t,n){"use strict";var r=n(53931),i=n(84091);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE",source:"https://github.com/zloirock/core-js"})},76373:function(e,t,n){"use strict";var r=n(85027),i=n(52655),o=n(981),a=n(44201),s=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},10730:function(e,t,n){"use strict";var r=n(68844),i=n(68700),o=n(34327),a=n(74684),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,d=o(a(t)),h=i(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=c(d,h),r<55296||r>56319||h+1===f||(l=c(d,h+1))<56320||l>57343?e?s(d,h):r:e?u(d,h,h+2):l-56320+(r-55296<<10)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},75984:function(e,t,n){"use strict";var r=n(41236).PROPER,i=n(3689),o=n(86350),a="​᠎";e.exports=function(e){return i((function(){return!!o[e]()||a[e]()!==a||r&&o[e].name!==e}))}},61435:function(e,t,n){"use strict";var r=n(68844),i=n(74684),o=n(34327),a=n(86350),s=r("".replace),c=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},50146:function(e,t,n){"use strict";var r=n(3615),i=n(3689),o=n(19037),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},99886:function(e,t,n){"use strict";var r,i,o,a,s=n(19037),c=n(61735),u=n(54071),l=n(69985),d=n(36812),h=n(3689),f=n(2688),p=n(96004),m=n(36420),g=n(21500),v=n(30214),y=n(50806),b=s.setImmediate,_=s.clearImmediate,E=s.process,w=s.Dispatch,T=s.Function,I=s.MessageChannel,S=s.String,C=0,A={},O="onreadystatechange";h((function(){r=s.location}));var R=function(e){if(d(A,e)){var t=A[e];delete A[e],t()}},k=function(e){return function(){R(e)}},x=function(e){R(e.data)},M=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){g(arguments.length,1);var t=l(e)?e:T(e),n=p(arguments,1);return A[++C]=function(){c(t,void 0,n)},i(C),C},_=function(e){delete A[e]},y?i=function(e){E.nextTick(k(e))}:w&&w.now?i=function(e){w.now(k(e))}:I&&!v?(o=new I,a=o.port2,o.port1.onmessage=x,i=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(M)?(i=M,s.addEventListener("message",x,!1)):i=O in m("script")?function(e){f.appendChild(m("script"))[O]=function(){f.removeChild(this),R(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:b,clear:_}},27578:function(e,t,n){"use strict";var r=n(68700),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},65290:function(e,t,n){"use strict";var r=n(94413),i=n(74684);e.exports=function(e){return r(i(e))}},68700:function(e,t,n){"use strict";var r=n(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},43126:function(e,t,n){"use strict";var r=n(68700),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},90690:function(e,t,n){"use strict";var r=n(74684),i=Object;e.exports=function(e){return i(r(e))}},88732:function(e,t,n){"use strict";var r=n(22615),i=n(48999),o=n(30734),a=n(54849),s=n(35899),c=n(44201),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,c=a(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},18360:function(e,t,n){"use strict";var r=n(88732),i=n(30734);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},23043:function(e,t,n){"use strict";var r=n(44201),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},34327:function(e,t,n){"use strict";var r=n(50926),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},23691:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},14630:function(e,t,n){"use strict";var r=n(68844),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},39525:function(e,t,n){"use strict";var r=n(50146);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:function(e,t,n){"use strict";var r=n(67697),i=n(3689);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},59834:function(e,t,n){"use strict";var r=n(19037),i=n(69985),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},44201:function(e,t,n){"use strict";var r=n(19037),i=n(83430),o=n(36812),a=n(14630),s=n(50146),c=n(39525),u=r.Symbol,l=i("wks"),d=c?u["for"]||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),l[e]}},86350:function(e){"use strict";e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},97195:function(e,t,n){"use strict";var r=n(79989),i=n(46576),o=n(84328).indexOf,a=n(16834),s=i([].indexOf),c=!!s&&1/s([1],1,-0)<0,u=c||!a("indexOf");r({target:"Array",proto:!0,forced:u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:o(this,e,t)}})},752:function(e,t,n){"use strict";var r=n(65290),i=n(87370),o=n(9478),a=n(618),s=n(72560).f,c=n(91934),u=n(27807),l=n(53931),d=n(67697),h="Array Iterator",f=a.set,p=a.getterFor(h);e.exports=c(Array,"Array",(function(e,t){f(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(g){}},70560:function(e,t,n){"use strict";var r=n(79989),i=n(90690),o=n(6310),a=n(5649),s=n(55565),c=n(3689),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=u||!l();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return a(t,n),n}})},278:function(e,t,n){"use strict";var r=n(79989),i=n(88820).left,o=n(16834),a=n(3615),s=n(50806),c=!s&&a>79&&a<83,u=c||!o("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},93374:function(e,t,n){"use strict";var r=n(79989),i=n(68844),o=n(92297),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},91719:function(e,t,n){"use strict";var r=n(79989),i=n(90690),o=n(6310),a=n(5649),s=n(98494),c=n(55565),u=1!==[].unshift(0),l=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}},d=u||!l();r({target:"Array",proto:!0,arity:1,forced:d},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){c(n+r);var u=n;while(u--){var l=u+r;u in t?t[l]=t[u]:s(t,l)}for(var d=0;d<r;d++)t[d]=arguments[d]}return a(t,n+r)}})},81692:function(e,t,n){"use strict";var r=n(79989),i=n(22615),o=n(10509),a=n(48742),s=n(9302),c=n(18734),u=n(562);r({target:"Promise",stat:!0,forced:u},{all:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,l=1;c(e,(function(e){var o=s++,c=!1;l++,i(n,t,e).then((function(e){c||(c=!0,a[o]=e,--l||r(a))}),u)})),--l||r(a)}));return l.error&&u(l.value),n.promise}})},75089:function(e,t,n){"use strict";var r=n(79989),i=n(53931),o=n(87073).CONSTRUCTOR,a=n(17919),s=n(76058),c=n(69985),u=n(11880),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(a)){var d=s("Promise").prototype["catch"];l["catch"]!==d&&u(l,"catch",d,{unsafe:!0})}},56697:function(e,t,n){"use strict";var r,i,o,a,s=n(79989),c=n(53931),u=n(50806),l=n(19037),d=n(22615),h=n(11880),f=n(49385),p=n(55997),m=n(14241),g=n(10509),v=n(69985),y=n(48999),b=n(767),_=n(76373),E=n(99886).set,w=n(80231),T=n(20920),I=n(9302),S=n(34410),C=n(618),A=n(17919),O=n(87073),R=n(48742),k="Promise",x=O.CONSTRUCTOR,M=O.REJECTION_EVENT,N=O.SUBCLASSING,P=C.getterFor(k),D=C.set,L=A&&A.prototype,U=A,F=L,q=l.TypeError,B=l.document,H=l.process,j=R.f,V=j,G=!!(B&&B.createEvent&&l.dispatchEvent),z="unhandledrejection",$="rejectionhandled",Y=0,K=1,W=2,X=1,Q=2,Z=function(e){var t;return!(!y(e)||!v(t=e.then))&&t},J=function(e,t){var n,r,i,o=t.value,a=t.state===K,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(a||(t.rejection===Q&&ie(t),t.rejection=X),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===e.promise?u(new q("Promise-chain cycle")):(r=Z(n))?d(r,n,c,u):c(n)):u(o)}catch(h){l&&!i&&l.exit(),u(h)}},ee=function(e,t){e.notified||(e.notified=!0,w((function(){var n,r=e.reactions;while(n=r.get())J(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,i;G?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!M&&(i=l["on"+e])?i(r):e===z&&T("Unhandled promise rejection",n)},ne=function(e){d(E,l,(function(){var t,n=e.facade,r=e.value,i=re(e);if(i&&(t=I((function(){u?H.emit("unhandledRejection",r,n):te(z,n,r)})),e.rejection=u||re(e)?Q:X,t.error))throw t.value}))},re=function(e){return e.rejection!==X&&!e.parent},ie=function(e){d(E,l,(function(){var t=e.facade;u?H.emit("rejectionHandled",t):te($,t,e.value)}))},oe=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=W,ee(e,!0))},se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new q("Promise can't be resolved itself");var r=Z(t);r?w((function(){var n={done:!1};try{d(r,t,oe(se,n,e),oe(ae,n,e))}catch(i){ae(n,i,e)}})):(e.value=t,e.state=K,ee(e,!1))}catch(i){ae({done:!1},i,e)}}};if(x&&(U=function(e){b(this,F),g(e),d(r,this);var t=P(this);try{e(oe(se,t),oe(ae,t))}catch(n){ae(t,n)}},F=U.prototype,r=function(e){D(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:Y,value:void 0})},r.prototype=h(F,"then",(function(e,t){var n=P(this),r=j(_(this,U));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=u?H.domain:void 0,n.state===Y?n.reactions.add(r):w((function(){J(r,n)})),r.promise})),i=function(){var e=new r,t=P(e);this.promise=e,this.resolve=oe(se,t),this.reject=oe(ae,t)},R.f=j=function(e){return e===U||e===o?new i(e):V(e)},!c&&v(A)&&L!==Object.prototype)){a=L.then,N||h(L,"then",(function(e,t){var n=this;return new U((function(e,t){d(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(ce){}f&&f(L,F)}s({global:!0,constructor:!0,wrap:!0,forced:x},{Promise:U}),p(U,k,!1,!0),m(k)},73964:function(e,t,n){"use strict";n(56697),n(81692),n(75089),n(58829),n(42092),n(57905)},58829:function(e,t,n){"use strict";var r=n(79989),i=n(22615),o=n(10509),a=n(48742),s=n(9302),c=n(18734),u=n(562);r({target:"Promise",stat:!0,forced:u},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=s((function(){var a=o(t.resolve);c(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},42092:function(e,t,n){"use strict";var r=n(79989),i=n(22615),o=n(48742),a=n(87073).CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},57905:function(e,t,n){"use strict";var r=n(79989),i=n(76058),o=n(53931),a=n(17919),s=n(87073).CONSTRUCTOR,c=n(72945),u=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},64043:function(e,t,n){"use strict";var r=n(79989),i=n(56308);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},25847:function(e,t,n){"use strict";var r=n(19037),i=n(67697),o=n(62148),a=n(69633),s=n(3689),c=r.RegExp,u=c.prototype,l=i&&s((function(){var e=!0;try{c(".","d")}catch(l){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(t);return s!==r||n!==r}));l&&o(u,"flags",{configurable:!0,get:a})},12826:function(e,t,n){"use strict";var r=n(41236).PROPER,i=n(11880),o=n(85027),a=n(34327),s=n(3689),c=n(63477),u="toString",l=RegExp.prototype,d=l[u],h=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=r&&d.name!==u;(h||f)&&i(RegExp.prototype,u,(function(){var e=o(this),t=a(e.source),n=a(c(e));return"/"+t+"/"+n}),{unsafe:!0})},2918:function(e,t,n){"use strict";var r=n(79989),i=n(46576),o=n(82474).f,a=n(43126),s=n(34327),c=n(42124),u=n(74684),l=n(27413),d=n(53931),h=i("".endsWith),f=i("".slice),p=Math.min,m=l("endsWith"),g=!d&&!m&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!g&&!m},{endsWith:function(e){var t=s(u(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:p(a(n),r),o=s(e);return h?h(t,o,i):f(t,i-o.length,i)===o}})},43843:function(e,t,n){"use strict";var r=n(79989),i=n(68844),o=n(42124),a=n(74684),s=n(34327),c=n(27413),u=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},22462:function(e,t,n){"use strict";var r=n(22615),i=n(65773),o=n(85027),a=n(981),s=n(43126),c=n(34327),u=n(74684),l=n(54849),d=n(71514),h=n(66100);i("match",(function(e,t,n){return[function(t){var n=u(this),i=a(t)?void 0:l(t,e);return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;var l,f=[],p=0;while(null!==(l=h(r,i))){var m=c(l[0]);f[p]=m,""===m&&(r.lastIndex=d(i,s(r.lastIndex),u)),p++}return 0===p?null:f}]}))},57267:function(e,t,n){"use strict";var r=n(61735),i=n(22615),o=n(68844),a=n(65773),s=n(3689),c=n(85027),u=n(69985),l=n(981),d=n(68700),h=n(43126),f=n(34327),p=n(74684),m=n(71514),g=n(54849),v=n(27017),y=n(66100),b=n(44201),_=b("replace"),E=Math.max,w=Math.min,T=o([].concat),I=o([].push),S=o("".indexOf),C=o("".slice),A=function(e){return void 0===e?e:String(e)},O=function(){return"$0"==="a".replace(/./,"$0")}(),R=function(){return!!/./[_]&&""===/./[_]("a","$0")}(),k=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));a("replace",(function(e,t,n){var o=R?"$":"$0";return[function(e,n){var r=p(this),o=l(e)?void 0:g(e,_);return o?i(o,e,r,n):i(t,f(r),e,n)},function(e,i){var a=c(this),s=f(e);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var l=n(t,a,s,i);if(l.done)return l.value}var p=u(i);p||(i=f(i));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);var _,O=[];while(1){if(_=y(a,s),null===_)break;if(I(O,_),!b)break;var R=f(_[0]);""===R&&(a.lastIndex=m(s,h(a.lastIndex),g))}for(var k="",x=0,M=0;M<O.length;M++){_=O[M];for(var N,P=f(_[0]),D=E(w(d(_.index),s.length),0),L=[],U=1;U<_.length;U++)I(L,A(_[U]));var F=_.groups;if(p){var q=T([P],L,D,s);void 0!==F&&I(q,F),N=f(r(i,void 0,q))}else N=v(P,s,D,L,F,i);D>=x&&(k+=C(s,x,D)+N,x=D+P.length)}return k+C(s,x)}]}),!k||!O||R)},9873:function(e,t,n){"use strict";var r=n(61735),i=n(22615),o=n(68844),a=n(65773),s=n(85027),c=n(981),u=n(91245),l=n(74684),d=n(76373),h=n(71514),f=n(43126),p=n(34327),m=n(54849),g=n(9015),v=n(66100),y=n(56308),b=n(87901),_=n(3689),E=b.UNSUPPORTED_Y,w=4294967295,T=Math.min,I=[].push,S=o(/./.exec),C=o(I),A=o("".slice),O=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(e,t,n){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=p(l(this)),a=void 0===n?w:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!u(e))return i(t,o,e,a);var s,c,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,f+"g");while(s=i(y,v,o)){if(c=v.lastIndex,c>m&&(C(h,A(o,m,s.index)),s.length>1&&s.index<o.length&&r(I,h,g(s,1)),d=s[0].length,m=c,h.length>=a))break;v.lastIndex===s.index&&v.lastIndex++}return m===o.length?!d&&S(v,"")||C(h,""):C(h,A(o,m)),h.length>a?g(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=l(this),a=c(t)?void 0:m(t,e);return a?i(a,t,r,n):i(o,p(r),t,n)},function(e,r){var i=s(this),a=p(e),c=n(o,i,a,r,o!==t);if(c.done)return c.value;var u=d(i,RegExp),l=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(E?"g":"y"),g=new u(E?"^(?:"+i.source+")":i,m),y=void 0===r?w:r>>>0;if(0===y)return[];if(0===a.length)return null===v(g,a)?[a]:[];var b=0,_=0,I=[];while(_<a.length){g.lastIndex=E?0:_;var S,O=v(g,E?A(a,_):a);if(null===O||(S=T(f(g.lastIndex+(E?_:0)),a.length))===b)_=h(a,_,l);else{if(C(I,A(a,b,_)),I.length===y)return I;for(var R=1;R<=O.length-1;R++)if(C(I,O[R]),I.length===y)return I;_=b=S}}return C(I,A(a,b)),I}]}),!O,E)},268:function(e,t,n){"use strict";var r=n(79989),i=n(46576),o=n(82474).f,a=n(43126),s=n(34327),c=n(42124),u=n(74684),l=n(27413),d=n(53931),h=i("".startsWith),f=i("".slice),p=Math.min,m=l("startsWith"),g=!d&&!m&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!g&&!m},{startsWith:function(e){var t=s(u(this));c(e);var n=a(p(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return h?h(t,r,n):f(t,n,n+r.length)===r}})},28436:function(e,t,n){"use strict";var r=n(79989),i=n(61435).trim,o=n(75984);r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},76265:function(e,t,n){"use strict";var r=n(19037),i=n(66338),o=n(33265),a=n(752),s=n(75773),c=n(44201),u=c("iterator"),l=c("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(r){e[u]=d}if(e[l]||s(e,l,t),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var f in i)h(r[f]&&r[f].prototype,f);h(o,"DOMTokenList")},13429:function(e,t,n){"use strict";var r=n(79989),i=n(19037),o=n(76058),a=n(75684),s=n(72560).f,c=n(36812),u=n(767),l=n(33457),d=n(13841),h=n(37136),f=n(56610),p=n(67697),m=n(53931),g="DOMException",v=o("Error"),y=o(g),b=function(){u(this,_);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new y(t,n),i=new v(t);return i.name=g,s(r,"stack",a(1,f(i.stack,1))),l(r,this,b),r},_=b.prototype=y.prototype,E="stack"in new v(g),w="stack"in new y(1,2),T=y&&p&&Object.getOwnPropertyDescriptor(i,g),I=!!T&&!(T.writable&&T.configurable),S=E&&!I&&!w;r({global:!0,constructor:!0,forced:m||S},{DOMException:S?b:y});var C=o(g),A=C.prototype;if(A.constructor!==C)for(var O in m||s(A,"constructor",a(1,C)),h)if(c(h,O)){var R=h[O],k=R.s;c(C,k)||s(C,k,a(6,R.c))}},72895:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(94941);const i={};["DEL","UNDEF","TRUE","FALSE","NUMBER","BIGINT","FUNCTION","STRING","SYMBOL","NULL","OBJECT","ARRAY"].forEach(((e,t)=>i[e]=String.fromCharCode(t+57344)));var o=i;class a{constructor(e,t=1/0){this._hash=e,this._slen=t,this._refmap=new Map,this._refset=new Set}_ref_str(e){if(e.length<this._slen&&-1===e.indexOf(o.DEL))return e;let t=this._refmap.get(e);return void 0===t&&(t=this._hash(e),this._refmap.set(e,t)),t}_encode_prim(e){switch(typeof e){case"undefined":return o.UNDEF;case"boolean":return e?o.TRUE:o.FALSE;case"number":return o.NUMBER+e.toString();case"bigint":return o.BIGINT+e.toString();case"function":return o.FUNCTION;case"string":return o.STRING+this._ref_str(e);case"symbol":return o.SYMBOL+this._ref_str(e.toString().slice(7,-1))}if(null===e)return o.NULL}_encode_obj(e,t=this._refmap.get(e)){return(Array.isArray(e)?o.ARRAY:o.OBJECT)+t}_encode_term(e){return this._encode_prim(e)||this._encode_obj(e)}_encode_deep(e,t){const n=this._encode_prim(e);if(void 0!==n)return n;const r=this._refmap.get(e);switch(typeof r){case"number":return(t-r).toString();case"string":return this._encode_obj(e,r)}this._refmap.set(e,t);const i=this._hash((Array.isArray(e)?e.map((e=>this._encode_deep(e,t+1))):Object.keys(e).sort().map((n=>this._ref_str(n)+o.DEL+this._encode_deep(e[n],t+1)))).join(o.DEL));return this._refmap.set(e,i),this._encode_obj(e,i)}encode(e){return this._encode_deep(e,0)}commit(){const e={};return this._refmap.forEach(((t,n)=>{this._refset.has(t)||(this._refset.add(t),"string"!==typeof n&&(n=(Array.isArray(n)?n.map((e=>this._encode_term(e))):Object.keys(n).map((e=>this._ref_str(e)+o.DEL+this._encode_term(n[e])))).join(o.DEL)),e[t]=n)})),this._refmap.clear(),e}clear(){this._refmap.clear(),this._refset.clear()}}function s(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n=Array(80),r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=-1009589776,h=0;h<e.length;h+=16){for(var f=r,p=i,m=o,g=a,v=s,y=0;y<80;y++){n[y]=y<16?e[h+y]:d(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var b=l(l(d(r,5),c(y,i,o,a)),l(l(s,n[y]),u(y)));s=a,a=o,o=d(i,30),i=r,r=b}r=l(r,f),i=l(i,p),o=l(o,m),a=l(a,g),s=l(s,v)}return Array(r,i,o,a,s)}function c(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function u(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function l(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function d(e,t){return e<<t|e>>>32-t}function h(e){for(var t=Array(),n=65535,r=0;r<16*e.length;r+=16)t[r>>5]|=(e.charCodeAt(r/16)&n)<<16-r%32;return t}function f(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0;r<4*e.length;r+=3)for(var i=(e[r>>2]>>8*(3-r%4)&255)<<16|(e[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|e[r+2>>2]>>8*(3-(r+2)%4)&255,o=0;o<4;o++)8*r+6*o<=32*e.length&&(n+=t.charAt(i>>6*(3-o)&63));return n}function p(e){return f(s(h(e),16*e.length))}function m(e={}){const t=Object.assign({filter:()=>!0,transformer:e=>e,mutationTransformer:e=>e},e);return e=>{if(null===e)return Function.prototype;const n=new a(p,50);return i=>{i.subscribe(((i,o)=>{if(t.filter(i,o))try{const{type:a}=i;"string"===typeof a&&a&&e.send(r.Vm.StateAction(a));const s=n.encode(t.mutationTransformer(i)),c=n.encode(t.transformer(o)),u=n.commit();for(let t in u)e.send(r.Vm.OTable(t,u[t]));e.send(r.Vm.Vuex(s,c))}catch(a){n.clear()}}))}}}},94941:function(e,t,n){"use strict";n.d(t,{Vm:function(){return sn},ZP:function(){return ln}});var r={};function i(){return Math.round(performance.now())+performance.timing.navigationStart}n.r(r),n.d(r,{BatchMeta:function(){return b},CSSDeleteRule:function(){return be},CSSInsertRule:function(){return ve},CSSInsertRuleURLBased:function(){return ot},ConnectionInformation:function(){return Ve},ConsoleLog:function(){return te},CreateDocument:function(){return R},CreateElementNode:function(){return x},CreateIFrameDocument:function(){return ut},CreateTextNode:function(){return N},CustomIssue:function(){return tt},Fetch:function(){return Ee},GraphQL:function(){return Ue},JSException:function(){return se},LongTask:function(){return Ye},Metadata:function(){return me},MobX:function(){return Ne},MouseClick:function(){return st},MouseMove:function(){return J},MoveNode:function(){return D},NgRx:function(){return De},OTable:function(){return Se},PageClose:function(){return rt},PageLoadTiming:function(){return re},PageRenderTiming:function(){return oe},PerformanceTrack:function(){return qe},Profiler:function(){return Te},RawCustomEvent:function(){return ue},Redux:function(){return Re},RemoveNode:function(){return U},RemoveNodeAttribute:function(){return H},ResourceTiming:function(){return He},SetCSSDataURLBased:function(){return Qe},SetInputChecked:function(){return Q},SetInputTarget:function(){return Y},SetInputValue:function(){return W},SetNodeAttribute:function(){return q},SetNodeAttributeURLBased:function(){return We},SetNodeData:function(){return V},SetNodeScroll:function(){return z},SetPageLocation:function(){return T},SetPageVisibility:function(){return ze},SetViewportScroll:function(){return A},SetViewportSize:function(){return S},StateAction:function(){return Ae},TechnicalInfo:function(){return Je},Timestamp:function(){return E},UserAnonymousID:function(){return fe},UserID:function(){return de},Vuex:function(){return xe},classes:function(){return v}});const o="repeat"in String.prototype?e=>"*".repeat(e.length):e=>e.replace(/./g,"*");function a(e){return e.trim().replace(/\s+/g," ")}function s(e){return"https://"===e.substr(0,8)||"http://"===e.substr(0,7)}const c=!("undefined"===typeof window),u=console.log,l=console.warn,d="https://docs.openreplay.com",h={};function f(e,t,n="/"){h[e]||(l(`OpenReplay: ${e} is deprecated. ${t?`Please, use ${t} instead.`:""} Visit ${d}${n} for more information.`),h[e]=!0)}function p(e){let t=e.getAttribute("data-openreplay-label");return null!==t||(t=e.getAttribute("data-asayer-label"),null!==t&&f('"data-asayer-label" attribute','"data-openreplay-label" attribute',"/")),t}function m(e,t){const n=`data-openreplay-${t}`;if(e.hasAttribute(n))return!0;const r=`data-asayer-${t}`;return!!e.hasAttribute(r)&&(f(`"${r}" attribute`,`"${n}" attribute`,"/installation/sanitize-data"),!0)}function g(e){function t(...t){return new e(...t)}return t.prototype=e.prototype,t}const v=new Map;class y{constructor(e,t,n){this.pageNo=e,this.firstIndex=t,this.timestamp=n,this._id=80}encode(e){return e.uint(80)&&e.uint(this.pageNo)&&e.uint(this.firstIndex)&&e.int(this.timestamp)}}const b=g(y);v.set(80,b);class _{constructor(e){this.timestamp=e,this._id=0}encode(e){return e.uint(0)&&e.uint(this.timestamp)}}const E=g(_);v.set(0,E);class w{constructor(e,t,n){this.url=e,this.referrer=t,this.navigationStart=n,this._id=4}encode(e){return e.uint(4)&&e.string(this.url)&&e.string(this.referrer)&&e.uint(this.navigationStart)}}const T=g(w);v.set(4,T);class I{constructor(e,t){this.width=e,this.height=t,this._id=5}encode(e){return e.uint(5)&&e.uint(this.width)&&e.uint(this.height)}}const S=g(I);v.set(5,S);class C{constructor(e,t){this.x=e,this.y=t,this._id=6}encode(e){return e.uint(6)&&e.int(this.x)&&e.int(this.y)}}const A=g(C);v.set(6,A);class O{constructor(){this._id=7}encode(e){return e.uint(7)}}const R=g(O);v.set(7,R);class k{constructor(e,t,n,r,i){this.id=e,this.parentID=t,this.index=n,this.tag=r,this.svg=i,this._id=8}encode(e){return e.uint(8)&&e.uint(this.id)&&e.uint(this.parentID)&&e.uint(this.index)&&e.string(this.tag)&&e.boolean(this.svg)}}const x=g(k);v.set(8,x);class M{constructor(e,t,n){this.id=e,this.parentID=t,this.index=n,this._id=9}encode(e){return e.uint(9)&&e.uint(this.id)&&e.uint(this.parentID)&&e.uint(this.index)}}const N=g(M);v.set(9,N);class P{constructor(e,t,n){this.id=e,this.parentID=t,this.index=n,this._id=10}encode(e){return e.uint(10)&&e.uint(this.id)&&e.uint(this.parentID)&&e.uint(this.index)}}const D=g(P);v.set(10,D);class L{constructor(e){this.id=e,this._id=11}encode(e){return e.uint(11)&&e.uint(this.id)}}const U=g(L);v.set(11,U);class F{constructor(e,t,n){this.id=e,this.name=t,this.value=n,this._id=12}encode(e){return e.uint(12)&&e.uint(this.id)&&e.string(this.name)&&e.string(this.value)}}const q=g(F);v.set(12,q);class B{constructor(e,t){this.id=e,this.name=t,this._id=13}encode(e){return e.uint(13)&&e.uint(this.id)&&e.string(this.name)}}const H=g(B);v.set(13,H);class j{constructor(e,t){this.id=e,this.data=t,this._id=14}encode(e){return e.uint(14)&&e.uint(this.id)&&e.string(this.data)}}const V=g(j);v.set(14,V);class G{constructor(e,t,n){this.id=e,this.x=t,this.y=n,this._id=16}encode(e){return e.uint(16)&&e.uint(this.id)&&e.int(this.x)&&e.int(this.y)}}const z=g(G);v.set(16,z);class ${constructor(e,t){this.id=e,this.label=t,this._id=17}encode(e){return e.uint(17)&&e.uint(this.id)&&e.string(this.label)}}const Y=g($);v.set(17,Y);class K{constructor(e,t,n){this.id=e,this.value=t,this.mask=n,this._id=18}encode(e){return e.uint(18)&&e.uint(this.id)&&e.string(this.value)&&e.int(this.mask)}}const W=g(K);v.set(18,W);class X{constructor(e,t){this.id=e,this.checked=t,this._id=19}encode(e){return e.uint(19)&&e.uint(this.id)&&e.boolean(this.checked)}}const Q=g(X);v.set(19,Q);class Z{constructor(e,t){this.x=e,this.y=t,this._id=20}encode(e){return e.uint(20)&&e.uint(this.x)&&e.uint(this.y)}}const J=g(Z);v.set(20,J);class ee{constructor(e,t){this.level=e,this.value=t,this._id=22}encode(e){return e.uint(22)&&e.string(this.level)&&e.string(this.value)}}const te=g(ee);v.set(22,te);class ne{constructor(e,t,n,r,i,o,a,s,c){this.requestStart=e,this.responseStart=t,this.responseEnd=n,this.domContentLoadedEventStart=r,this.domContentLoadedEventEnd=i,this.loadEventStart=o,this.loadEventEnd=a,this.firstPaint=s,this.firstContentfulPaint=c,this._id=23}encode(e){return e.uint(23)&&e.uint(this.requestStart)&&e.uint(this.responseStart)&&e.uint(this.responseEnd)&&e.uint(this.domContentLoadedEventStart)&&e.uint(this.domContentLoadedEventEnd)&&e.uint(this.loadEventStart)&&e.uint(this.loadEventEnd)&&e.uint(this.firstPaint)&&e.uint(this.firstContentfulPaint)}}const re=g(ne);v.set(23,re);class ie{constructor(e,t,n){this.speedIndex=e,this.visuallyComplete=t,this.timeToInteractive=n,this._id=24}encode(e){return e.uint(24)&&e.uint(this.speedIndex)&&e.uint(this.visuallyComplete)&&e.uint(this.timeToInteractive)}}const oe=g(ie);v.set(24,oe);class ae{constructor(e,t,n){this.name=e,this.message=t,this.payload=n,this._id=25}encode(e){return e.uint(25)&&e.string(this.name)&&e.string(this.message)&&e.string(this.payload)}}const se=g(ae);v.set(25,se);class ce{constructor(e,t){this.name=e,this.payload=t,this._id=27}encode(e){return e.uint(27)&&e.string(this.name)&&e.string(this.payload)}}const ue=g(ce);v.set(27,ue);class le{constructor(e){this.id=e,this._id=28}encode(e){return e.uint(28)&&e.string(this.id)}}const de=g(le);v.set(28,de);class he{constructor(e){this.id=e,this._id=29}encode(e){return e.uint(29)&&e.string(this.id)}}const fe=g(he);v.set(29,fe);class pe{constructor(e,t){this.key=e,this.value=t,this._id=30}encode(e){return e.uint(30)&&e.string(this.key)&&e.string(this.value)}}const me=g(pe);v.set(30,me);class ge{constructor(e,t,n){this.id=e,this.rule=t,this.index=n,this._id=37}encode(e){return e.uint(37)&&e.uint(this.id)&&e.string(this.rule)&&e.uint(this.index)}}const ve=g(ge);v.set(37,ve);class ye{constructor(e,t){this.id=e,this.index=t,this._id=38}encode(e){return e.uint(38)&&e.uint(this.id)&&e.uint(this.index)}}const be=g(ye);v.set(38,be);class _e{constructor(e,t,n,r,i,o,a){this.method=e,this.url=t,this.request=n,this.response=r,this.status=i,this.timestamp=o,this.duration=a,this._id=39}encode(e){return e.uint(39)&&e.string(this.method)&&e.string(this.url)&&e.string(this.request)&&e.string(this.response)&&e.uint(this.status)&&e.uint(this.timestamp)&&e.uint(this.duration)}}const Ee=g(_e);v.set(39,Ee);class we{constructor(e,t,n,r){this.name=e,this.duration=t,this.args=n,this.result=r,this._id=40}encode(e){return e.uint(40)&&e.string(this.name)&&e.uint(this.duration)&&e.string(this.args)&&e.string(this.result)}}const Te=g(we);v.set(40,Te);class Ie{constructor(e,t){this.key=e,this.value=t,this._id=41}encode(e){return e.uint(41)&&e.string(this.key)&&e.string(this.value)}}const Se=g(Ie);v.set(41,Se);class Ce{constructor(e){this.type=e,this._id=42}encode(e){return e.uint(42)&&e.string(this.type)}}const Ae=g(Ce);v.set(42,Ae);class Oe{constructor(e,t,n){this.action=e,this.state=t,this.duration=n,this._id=44}encode(e){return e.uint(44)&&e.string(this.action)&&e.string(this.state)&&e.uint(this.duration)}}const Re=g(Oe);v.set(44,Re);class ke{constructor(e,t){this.mutation=e,this.state=t,this._id=45}encode(e){return e.uint(45)&&e.string(this.mutation)&&e.string(this.state)}}const xe=g(ke);v.set(45,xe);class Me{constructor(e,t){this.type=e,this.payload=t,this._id=46}encode(e){return e.uint(46)&&e.string(this.type)&&e.string(this.payload)}}const Ne=g(Me);v.set(46,Ne);class Pe{constructor(e,t,n){this.action=e,this.state=t,this.duration=n,this._id=47}encode(e){return e.uint(47)&&e.string(this.action)&&e.string(this.state)&&e.uint(this.duration)}}const De=g(Pe);v.set(47,De);class Le{constructor(e,t,n,r){this.operationKind=e,this.operationName=t,this.variables=n,this.response=r,this._id=48}encode(e){return e.uint(48)&&e.string(this.operationKind)&&e.string(this.operationName)&&e.string(this.variables)&&e.string(this.response)}}const Ue=g(Le);v.set(48,Ue);class Fe{constructor(e,t,n,r){this.frames=e,this.ticks=t,this.totalJSHeapSize=n,this.usedJSHeapSize=r,this._id=49}encode(e){return e.uint(49)&&e.int(this.frames)&&e.int(this.ticks)&&e.uint(this.totalJSHeapSize)&&e.uint(this.usedJSHeapSize)}}const qe=g(Fe);v.set(49,qe);class Be{constructor(e,t,n,r,i,o,a,s){this.timestamp=e,this.duration=t,this.ttfb=n,this.headerSize=r,this.encodedBodySize=i,this.decodedBodySize=o,this.url=a,this.initiator=s,this._id=53}encode(e){return e.uint(53)&&e.uint(this.timestamp)&&e.uint(this.duration)&&e.uint(this.ttfb)&&e.uint(this.headerSize)&&e.uint(this.encodedBodySize)&&e.uint(this.decodedBodySize)&&e.string(this.url)&&e.string(this.initiator)}}const He=g(Be);v.set(53,He);class je{constructor(e,t){this.downlink=e,this.type=t,this._id=54}encode(e){return e.uint(54)&&e.uint(this.downlink)&&e.string(this.type)}}const Ve=g(je);v.set(54,Ve);class Ge{constructor(e){this.hidden=e,this._id=55}encode(e){return e.uint(55)&&e.boolean(this.hidden)}}const ze=g(Ge);v.set(55,ze);class $e{constructor(e,t,n,r,i,o,a){this.timestamp=e,this.duration=t,this.context=n,this.containerType=r,this.containerSrc=i,this.containerId=o,this.containerName=a,this._id=59}encode(e){return e.uint(59)&&e.uint(this.timestamp)&&e.uint(this.duration)&&e.uint(this.context)&&e.uint(this.containerType)&&e.string(this.containerSrc)&&e.string(this.containerId)&&e.string(this.containerName)}}const Ye=g($e);v.set(59,Ye);class Ke{constructor(e,t,n,r){this.id=e,this.name=t,this.value=n,this.baseURL=r,this._id=60}encode(e){return e.uint(60)&&e.uint(this.id)&&e.string(this.name)&&e.string(this.value)&&e.string(this.baseURL)}}const We=g(Ke);v.set(60,We);class Xe{constructor(e,t,n){this.id=e,this.data=t,this.baseURL=n,this._id=61}encode(e){return e.uint(61)&&e.uint(this.id)&&e.string(this.data)&&e.string(this.baseURL)}}const Qe=g(Xe);v.set(61,Qe);class Ze{constructor(e,t){this.type=e,this.value=t,this._id=63}encode(e){return e.uint(63)&&e.string(this.type)&&e.string(this.value)}}const Je=g(Ze);v.set(63,Je);class et{constructor(e,t){this.name=e,this.payload=t,this._id=64}encode(e){return e.uint(64)&&e.string(this.name)&&e.string(this.payload)}}const tt=g(et);v.set(64,tt);class nt{constructor(){this._id=65}encode(e){return e.uint(65)}}const rt=g(nt);v.set(65,rt);class it{constructor(e,t,n,r){this.id=e,this.rule=t,this.index=n,this.baseURL=r,this._id=67}encode(e){return e.uint(67)&&e.uint(this.id)&&e.string(this.rule)&&e.uint(this.index)&&e.string(this.baseURL)}}const ot=g(it);v.set(67,ot);class at{constructor(e,t,n,r){this.id=e,this.hesitationTime=t,this.label=n,this.selector=r,this._id=69}encode(e){return e.uint(69)&&e.uint(this.id)&&e.uint(this.hesitationTime)&&e.string(this.label)&&e.string(this.selector)}}const st=g(at);v.set(69,st);class ct{constructor(e,t){this.frameID=e,this.id=t,this._id=70}encode(e){return e.uint(70)&&e.uint(this.frameID)&&e.uint(this.id)}}const ut=g(ct);v.set(70,ut);class lt{constructor(e){this.node_id=e,this.nodes=[],this.nodeCallbacks=[],this.elementListeners=new Map}attachNodeCallback(e){this.nodeCallbacks.push(e)}attachElementListener(e,t,n){const r=this.getID(t);if(void 0===r)return;t.addEventListener(e,n);let i=this.elementListeners.get(r);if(void 0===i)return i=[],void this.elementListeners.set(r,i);i.push([e,n])}registerNode(e){let t=e[this.node_id];const n=void 0===t;return n&&(t=this.nodes.length,this.nodes[t]=e,e[this.node_id]=t),[t,n]}unregisterNode(e){const t=e[this.node_id];if(void 0!==t){delete e[this.node_id],this.nodes[t]=void 0;const n=this.elementListeners.get(t);void 0!==n&&(this.elementListeners.delete(t),n.forEach((t=>e.removeEventListener(t[0],t[1]))))}return t}callNodeCallbacks(e){this.nodeCallbacks.forEach((t=>t(e)))}getID(e){return e[this.node_id]}getNode(e){return this.nodes[e]}clear(){for(let e=0;e<this.nodes.length;e++){const t=this.nodes[e];void 0!==t&&this.unregisterNode(t)}this.nodes.length=0}}function dt(e){return"http://www.w3.org/2000/svg"===e.namespaceURI}function ht(e,t){const n=e.ownerDocument;if(!n)return"Document"===t.name;let r=n.parentWindow||n.defaultView;while(r.parent&&r.parent!==r){if(e instanceof r[t.name])return!0;r=r.parent}return e instanceof r[t.name]}function ft(e){if(ht(e,Text))return!1;if(!ht(e,Element))return!0;const t=e.tagName.toUpperCase();if("LINK"===t){const t=e.getAttribute("rel"),n=e.getAttribute("as");return!((null===t||void 0===t?void 0:t.includes("stylesheet"))||"style"===n||"font"===n)}return"SCRIPT"===t||"NOSCRIPT"===t||"META"===t||"TITLE"===t||"BASE"===t}function pt(e){return ht(e,Document)||ht(e,ShadowRoot)}function mt(e){return!!pt(e)||!ft(e)}class gt{constructor(e,t,n=window){this.app=e,this.context=n,this.commited=[],this.recents=[],this.myNodes=[],this.indexes=[],this.attributesList=[],this.textSet=new Set,this.textMasked=new Set,this.options=Object.assign({obscureTextEmails:!0,obscureTextNumbers:!1},t),this.inUpperContext=n.parent===n,this.observer=new MutationObserver(this.app.safe((e=>{for(const t of e){const e=t.target,r=t.type;if(!mt(e)||!n.document.contains(e))continue;if("childList"===r){for(let e=0;e<t.removedNodes.length;e++)this.bindTree(t.removedNodes[e]);for(let e=0;e<t.addedNodes.length;e++)this.bindTree(t.addedNodes[e]);continue}const i=this.app.nodes.getID(e);if(void 0!==i)if(i>=this.recents.length&&(this.recents[i]=void 0),"attributes"!==r)"characterData"!==r||this.textSet.add(i);else{const e=t.attributeName;if(null===e)continue;let n=this.attributesList[i];void 0===n&&(this.attributesList[i]=n=new Set),n.add(e)}}this.commitNodes()})))}clear(){this.commited.length=0,this.recents.length=0,this.indexes.length=1,this.attributesList.length=0,this.textSet.clear()}sendNodeAttribute(e,t,n,r){if(dt(t))return"xlink:"===n.substr(0,6)&&(n=n.substr(6)),void(null===r?this.app.send(new H(e,n)):"href"===n?(r.length>1e5&&(r=""),this.app.send(new We(e,n,r,this.app.getBaseHref()))):this.app.send(new q(e,n,r)));"src"!==n&&"srcset"!==n&&"integrity"!==n&&"crossorigin"!==n&&"autocomplete"!==n&&"on"!==n.substr(0,2)&&("value"===n&&ht(t,HTMLInputElement)&&"button"!==t.type&&"reset"!==t.type&&"submit"!==t.type||(null!==r?"style"===n||"href"===n&&ht(t,HTMLLinkElement)?this.app.send(new We(e,n,r,this.app.getBaseHref())):(("href"===n||r.length>1e5)&&(r=""),this.app.send(new q(e,n,r))):this.app.send(new H(e,n))))}getInnerTextSecure(e){const t=this.app.nodes.getID(e);return t?this.checkObscure(t,e.innerText):""}checkObscure(e,t){return this.textMasked.has(e)?t.replace(/[^\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/g,"█"):(this.options.obscureTextNumbers&&(t=t.replace(/\d/g,"0")),this.options.obscureTextEmails&&(t=t.replace(/([^\s]+)@([^\s]+)\.([^\s]+)/g,((...e)=>o(e[1])+"@"+o(e[2])+"."+o(e[3])))),t)}sendNodeData(e,t,n){ht(t,HTMLStyleElement)||ht(t,SVGStyleElement)?this.app.send(new Qe(e,n,this.app.getBaseHref())):(n=this.checkObscure(e,n),this.app.send(new V(e,n)))}bindNode(e){const t=this.app.nodes.registerNode(e),n=t[0];this.recents[n]=t[1]||this.recents[n]||!1,this.myNodes[n]=!0}bindTree(e){if(!mt(e))return;this.bindNode(e);const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_TEXT,{acceptNode:e=>ft(e)||void 0!==this.app.nodes.getID(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},!1);while(t.nextNode())this.bindNode(t.currentNode)}unbindNode(e){const t=this.app.nodes.unregisterNode(e);void 0!==t&&!1===this.recents[t]&&this.app.send(new U(t))}_commitNode(e,t){if(pt(t))return!0;const n=t.parentNode;let r;if(!ht(t,HTMLHtmlElement)||!this.inUpperContext){if(null===n)return this.unbindNode(t),!1;if(r=this.app.nodes.getID(n),void 0===r)return this.unbindNode(t),!1;if(!this.commitNode(r))return this.unbindNode(t),!1;(this.textMasked.has(r)||ht(t,Element)&&m(t,"masked"))&&this.textMasked.add(e)}let i=t.previousSibling;while(null!==i){const t=this.app.nodes.getID(i);if(void 0!==t){this.commitNode(t),this.indexes[e]=this.indexes[t]+1;break}i=i.previousSibling}null===i&&(this.indexes[e]=0);const o=this.recents[e],a=this.indexes[e];if(void 0===a)throw"commitNode: missing node index";if(!0===o){if(ht(t,Element)){void 0!==r&&this.app.send(new x(e,r,a,t.tagName,dt(t)));for(let n=0;n<t.attributes.length;n++){const r=t.attributes[n];this.sendNodeAttribute(e,t,r.nodeName,r.value)}}else ht(t,Text)&&(this.app.send(new N(e,r,a)),this.sendNodeData(e,n,t.data));return!0}!1===o&&void 0!==r&&this.app.send(new D(e,r,a));const s=this.attributesList[e];if(void 0!==s){if(!ht(t,Element))throw"commitNode: node is not an element";for(const n of s)this.sendNodeAttribute(e,t,n,t.getAttribute(n))}if(this.textSet.has(e)){if(!ht(t,Text))throw"commitNode: node is not a text";this.sendNodeData(e,n,t.data)}return!0}commitNode(e){const t=this.app.nodes.getNode(e);if(void 0===t)return!1;const n=this.commited[e];return void 0!==n?n:this.commited[e]=this._commitNode(e,t)}commitNodes(){let e;for(let t=0;t<this.recents.length;t++)this.myNodes[t]&&(this.commitNode(t),!0===this.recents[t]&&(e=this.app.nodes.getNode(t))&&this.app.nodes.callNodeCallbacks(e));this.clear()}observeRoot(e,t,n=e){this.observer.observe(e,{childList:!0,attributes:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1}),this.bindTree(n),t(this.app.nodes.getID(e)),this.commitNodes()}disconnect(){this.observer.disconnect(),this.clear(),this.textMasked.clear(),this.myNodes.length=0}}class vt extends gt{observe(e){const t=e.contentDocument,n=this.app.nodes.getID(e);t&&void 0!==n&&this.observeRoot(t,(e=>{void 0!==e?this.app.send(ut(n,e)):console.log("OpenReplay: Iframe document not bound")}))}}class yt extends gt{observe(e){const t=e.shadowRoot,n=this.app.nodes.getID(e);t&&void 0!==n&&this.observeRoot(t,(e=>{void 0!==e?this.app.send(ut(n,e)):console.log("OpenReplay: Shadow Root was not bound")}))}}const bt=Element.prototype.attachShadow;class _t extends gt{constructor(e,t){super(e,Object.assign({captureIFrames:!1},t)),this.iframeObservers=[],this.shadowRootObservers=[],this.app.nodes.attachNodeCallback((e=>{ht(e,HTMLIFrameElement)&&(this.options.captureIFrames||e.getAttribute("data-openreplay-capture"))&&this.handleIframe(e)})),this.app.nodes.attachNodeCallback((e=>{ht(e,Element)&&null!==e.shadowRoot&&this.handleShadowRoot(e.shadowRoot)}))}handleIframe(e){let t=null;const n=this.app.safe((()=>{const n=this.app.nodes.getID(e);if(void 0===n)return;if(e.contentWindow===t)return;if(t=e.contentWindow,!t)return;const r=new vt(this.app,this.options,t);this.iframeObservers.push(r),r.observe(e)}));this.app.attachEventListener(e,"load",n),n()}handleShadowRoot(e){const t=new yt(this.app,this.options,this.context);this.shadowRootObservers.push(t),t.observe(e.host)}observe(){const e=this;Element.prototype.attachShadow=function(){const t=bt.apply(this,arguments);return e.handleShadowRoot(t),t},this.observeRoot(this.context.document,(()=>{this.app.send(new R)}),this.context.document.documentElement)}disconnect(){Element.prototype.attachShadow=bt,this.iframeObservers.forEach((e=>e.disconnect())),this.iframeObservers=[],this.shadowRootObservers.forEach((e=>e.disconnect())),this.shadowRootObservers=[],super.disconnect()}}function Et(e,t){let n=0;return()=>{n++>=t&&(n=0,e())}}class wt{constructor(e){this.app=e,this.timer=null,this.callbacks=[]}attach(e,t=0,n=!0,r){r&&(e=e.bind(r)),n&&(e=this.app.safe(e)),this.callbacks.unshift(t?Et(e,t):e)}start(){null===this.timer&&(this.timer=setInterval((()=>this.callbacks.forEach((e=>{e&&e()}))),30))}stop(){null!==this.timer&&(clearInterval(this.timer),this.timer=null)}}const Tt=c&&"performance"in window&&"memory"in performance?performance:{memory:{}},It=c?1024*(navigator.deviceMemory||0):0,St=Tt.memory.jsHeapSizeLimit||0;function Ct(e,t){const n=Object.assign({capturePerformance:!0},t);if(!n.capturePerformance)return;let r,i;const o=()=>{void 0!==r&&-1!==r&&(r++,requestAnimationFrame(o))};e.ticker.attach((()=>{void 0!==i&&-1!==i&&i++}),0,!1);const a=()=>{void 0!==r&&void 0!==i&&(e.send(new qe(r,i,Tt.memory.totalJSHeapSize||0,Tt.memory.usedJSHeapSize||0)),i=r=document.hidden?-1:0)};e.attachStartCallback((()=>{i=r=-1,a(),o()})),e.attachStopCallback((()=>{i=r=void 0})),e.ticker.attach(a,40,!1),void 0!==document.hidden&&e.attachEventListener(document,"visibilitychange",a,!1,!1)}const At="https://api.openreplay.com/ingest";class Ot{constructor(e,t,n){this.messages=[],this.startCallbacks=[],this.stopCallbacks=[],this.commitCallbacks=[],this._sessionID=null,this.isActive=!1,this.version="3.4.16",this.projectKey=e,this.options=Object.assign({revID:"",node_id:"__openreplay_id",session_token_key:"__openreplay_token",session_pageno_key:"__openreplay_pageno",local_uuid_key:"__openreplay_uuid",ingestPoint:At,resourceBaseHref:null,__is_snippet:!1,__debug_report_edp:null,__debug_log:!1,obscureTextEmails:!0,obscureTextNumbers:!1,captureIFrames:!1},n),null!=t&&sessionStorage.setItem(this.options.session_token_key,t),this.revID=this.options.revID,this.nodes=new lt(this.options.node_id),this.observer=new _t(this,this.options),this.ticker=new wt(this),this.ticker.attach((()=>this.commit()));try{this.worker=new Worker(URL.createObjectURL(new Blob(['"use strict";function t(t){function s(...s){return new t(...s)}return s.prototype=t.prototype,s}const s=new Map;const i=t(class{constructor(t,s,i){this.pageNo=t,this.firstIndex=s,this.timestamp=i,this._id=80}encode(t){return t.uint(80)&&t.uint(this.pageNo)&&t.uint(this.firstIndex)&&t.int(this.timestamp)}});s.set(80,i);const n=t(class{constructor(t){this.timestamp=t,this._id=0}encode(t){return t.uint(0)&&t.uint(this.timestamp)}});s.set(0,n);const e=t(class{constructor(t,s,i){this.url=t,this.referrer=s,this.navigationStart=i,this._id=4}encode(t){return t.uint(4)&&t.string(this.url)&&t.string(this.referrer)&&t.uint(this.navigationStart)}});s.set(4,e);const r=t(class{constructor(t,s){this.width=t,this.height=s,this._id=5}encode(t){return t.uint(5)&&t.uint(this.width)&&t.uint(this.height)}});s.set(5,r);const o=t(class{constructor(t,s){this.x=t,this.y=s,this._id=6}encode(t){return t.uint(6)&&t.int(this.x)&&t.int(this.y)}});s.set(6,o);const h=t(class{constructor(){this._id=7}encode(t){return t.uint(7)}});s.set(7,h);const c=t(class{constructor(t,s,i,n,e){this.id=t,this.parentID=s,this.index=i,this.tag=n,this.svg=e,this._id=8}encode(t){return t.uint(8)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)&&t.string(this.tag)&&t.boolean(this.svg)}});s.set(8,c);const u=t(class{constructor(t,s,i){this.id=t,this.parentID=s,this.index=i,this._id=9}encode(t){return t.uint(9)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)}});s.set(9,u);const a=t(class{constructor(t,s,i){this.id=t,this.parentID=s,this.index=i,this._id=10}encode(t){return t.uint(10)&&t.uint(this.id)&&t.uint(this.parentID)&&t.uint(this.index)}});s.set(10,a);const d=t(class{constructor(t){this.id=t,this._id=11}encode(t){return t.uint(11)&&t.uint(this.id)}});s.set(11,d);const l=t(class{constructor(t,s,i){this.id=t,this.name=s,this.value=i,this._id=12}encode(t){return t.uint(12)&&t.uint(this.id)&&t.string(this.name)&&t.string(this.value)}});s.set(12,l);const g=t(class{constructor(t,s){this.id=t,this.name=s,this._id=13}encode(t){return t.uint(13)&&t.uint(this.id)&&t.string(this.name)}});s.set(13,g);const f=t(class{constructor(t,s){this.id=t,this.data=s,this._id=14}encode(t){return t.uint(14)&&t.uint(this.id)&&t.string(this.data)}});s.set(14,f);const p=t(class{constructor(t,s,i){this.id=t,this.x=s,this.y=i,this._id=16}encode(t){return t.uint(16)&&t.uint(this.id)&&t.int(this.x)&&t.int(this.y)}});s.set(16,p);const m=t(class{constructor(t,s){this.id=t,this.label=s,this._id=17}encode(t){return t.uint(17)&&t.uint(this.id)&&t.string(this.label)}});s.set(17,m);const _=t(class{constructor(t,s,i){this.id=t,this.value=s,this.mask=i,this._id=18}encode(t){return t.uint(18)&&t.uint(this.id)&&t.string(this.value)&&t.int(this.mask)}});s.set(18,_);const y=t(class{constructor(t,s){this.id=t,this.checked=s,this._id=19}encode(t){return t.uint(19)&&t.uint(this.id)&&t.boolean(this.checked)}});s.set(19,y);const v=t(class{constructor(t,s){this.x=t,this.y=s,this._id=20}encode(t){return t.uint(20)&&t.uint(this.x)&&t.uint(this.y)}});s.set(20,v);const S=t(class{constructor(t,s){this.level=t,this.value=s,this._id=22}encode(t){return t.uint(22)&&t.string(this.level)&&t.string(this.value)}});s.set(22,S);const b=t(class{constructor(t,s,i,n,e,r,o,h,c){this.requestStart=t,this.responseStart=s,this.responseEnd=i,this.domContentLoadedEventStart=n,this.domContentLoadedEventEnd=e,this.loadEventStart=r,this.loadEventEnd=o,this.firstPaint=h,this.firstContentfulPaint=c,this._id=23}encode(t){return t.uint(23)&&t.uint(this.requestStart)&&t.uint(this.responseStart)&&t.uint(this.responseEnd)&&t.uint(this.domContentLoadedEventStart)&&t.uint(this.domContentLoadedEventEnd)&&t.uint(this.loadEventStart)&&t.uint(this.loadEventEnd)&&t.uint(this.firstPaint)&&t.uint(this.firstContentfulPaint)}});s.set(23,b);const x=t(class{constructor(t,s,i){this.speedIndex=t,this.visuallyComplete=s,this.timeToInteractive=i,this._id=24}encode(t){return t.uint(24)&&t.uint(this.speedIndex)&&t.uint(this.visuallyComplete)&&t.uint(this.timeToInteractive)}});s.set(24,x);const E=t(class{constructor(t,s,i){this.name=t,this.message=s,this.payload=i,this._id=25}encode(t){return t.uint(25)&&t.string(this.name)&&t.string(this.message)&&t.string(this.payload)}});s.set(25,E);const k=t(class{constructor(t,s){this.name=t,this.payload=s,this._id=27}encode(t){return t.uint(27)&&t.string(this.name)&&t.string(this.payload)}});s.set(27,k);const I=t(class{constructor(t){this.id=t,this._id=28}encode(t){return t.uint(28)&&t.string(this.id)}});s.set(28,I);const z=t(class{constructor(t){this.id=t,this._id=29}encode(t){return t.uint(29)&&t.string(this.id)}});s.set(29,z);const w=t(class{constructor(t,s){this.key=t,this.value=s,this._id=30}encode(t){return t.uint(30)&&t.string(this.key)&&t.string(this.value)}});s.set(30,w);const T=t(class{constructor(t,s,i){this.id=t,this.rule=s,this.index=i,this._id=37}encode(t){return t.uint(37)&&t.uint(this.id)&&t.string(this.rule)&&t.uint(this.index)}});s.set(37,T);const L=t(class{constructor(t,s){this.id=t,this.index=s,this._id=38}encode(t){return t.uint(38)&&t.uint(this.id)&&t.uint(this.index)}});s.set(38,L);const A=t(class{constructor(t,s,i,n,e,r,o){this.method=t,this.url=s,this.request=i,this.response=n,this.status=e,this.timestamp=r,this.duration=o,this._id=39}encode(t){return t.uint(39)&&t.string(this.method)&&t.string(this.url)&&t.string(this.request)&&t.string(this.response)&&t.uint(this.status)&&t.uint(this.timestamp)&&t.uint(this.duration)}});s.set(39,A);const C=t(class{constructor(t,s,i,n){this.name=t,this.duration=s,this.args=i,this.result=n,this._id=40}encode(t){return t.uint(40)&&t.string(this.name)&&t.uint(this.duration)&&t.string(this.args)&&t.string(this.result)}});s.set(40,C);const M=t(class{constructor(t,s){this.key=t,this.value=s,this._id=41}encode(t){return t.uint(41)&&t.string(this.key)&&t.string(this.value)}});s.set(41,M);const R=t(class{constructor(t){this.type=t,this._id=42}encode(t){return t.uint(42)&&t.string(this.type)}});s.set(42,R);const N=t(class{constructor(t,s,i){this.action=t,this.state=s,this.duration=i,this._id=44}encode(t){return t.uint(44)&&t.string(this.action)&&t.string(this.state)&&t.uint(this.duration)}});s.set(44,N);const D=t(class{constructor(t,s){this.mutation=t,this.state=s,this._id=45}encode(t){return t.uint(45)&&t.string(this.mutation)&&t.string(this.state)}});s.set(45,D);const U=t(class{constructor(t,s){this.type=t,this.payload=s,this._id=46}encode(t){return t.uint(46)&&t.string(this.type)&&t.string(this.payload)}});s.set(46,U);const O=t(class{constructor(t,s,i){this.action=t,this.state=s,this.duration=i,this._id=47}encode(t){return t.uint(47)&&t.string(this.action)&&t.string(this.state)&&t.uint(this.duration)}});s.set(47,O);const q=t(class{constructor(t,s,i,n){this.operationKind=t,this.operationName=s,this.variables=i,this.response=n,this._id=48}encode(t){return t.uint(48)&&t.string(this.operationKind)&&t.string(this.operationName)&&t.string(this.variables)&&t.string(this.response)}});s.set(48,q);const H=t(class{constructor(t,s,i,n){this.frames=t,this.ticks=s,this.totalJSHeapSize=i,this.usedJSHeapSize=n,this._id=49}encode(t){return t.uint(49)&&t.int(this.frames)&&t.int(this.ticks)&&t.uint(this.totalJSHeapSize)&&t.uint(this.usedJSHeapSize)}});s.set(49,H);const P=t(class{constructor(t,s,i,n,e,r,o,h){this.timestamp=t,this.duration=s,this.ttfb=i,this.headerSize=n,this.encodedBodySize=e,this.decodedBodySize=r,this.url=o,this.initiator=h,this._id=53}encode(t){return t.uint(53)&&t.uint(this.timestamp)&&t.uint(this.duration)&&t.uint(this.ttfb)&&t.uint(this.headerSize)&&t.uint(this.encodedBodySize)&&t.uint(this.decodedBodySize)&&t.string(this.url)&&t.string(this.initiator)}});s.set(53,P);const B=t(class{constructor(t,s){this.downlink=t,this.type=s,this._id=54}encode(t){return t.uint(54)&&t.uint(this.downlink)&&t.string(this.type)}});s.set(54,B);const J=t(class{constructor(t){this.hidden=t,this._id=55}encode(t){return t.uint(55)&&t.boolean(this.hidden)}});s.set(55,J);const j=t(class{constructor(t,s,i,n,e,r,o){this.timestamp=t,this.duration=s,this.context=i,this.containerType=n,this.containerSrc=e,this.containerId=r,this.containerName=o,this._id=59}encode(t){return t.uint(59)&&t.uint(this.timestamp)&&t.uint(this.duration)&&t.uint(this.context)&&t.uint(this.containerType)&&t.string(this.containerSrc)&&t.string(this.containerId)&&t.string(this.containerName)}});s.set(59,j);const G=t(class{constructor(t,s,i,n){this.id=t,this.name=s,this.value=i,this.baseURL=n,this._id=60}encode(t){return t.uint(60)&&t.uint(this.id)&&t.string(this.name)&&t.string(this.value)&&t.string(this.baseURL)}});s.set(60,G);const K=t(class{constructor(t,s,i){this.id=t,this.data=s,this.baseURL=i,this._id=61}encode(t){return t.uint(61)&&t.uint(this.id)&&t.string(this.data)&&t.string(this.baseURL)}});s.set(61,K);const X=t(class{constructor(t,s){this.type=t,this.value=s,this._id=63}encode(t){return t.uint(63)&&t.string(this.type)&&t.string(this.value)}});s.set(63,X);const F=t(class{constructor(t,s){this.name=t,this.payload=s,this._id=64}encode(t){return t.uint(64)&&t.string(this.name)&&t.string(this.payload)}});s.set(64,F);const Q=t(class{constructor(){this._id=65}encode(t){return t.uint(65)}});s.set(65,Q);const V=t(class{constructor(t,s,i,n){this.id=t,this.rule=s,this.index=i,this.baseURL=n,this._id=67}encode(t){return t.uint(67)&&t.uint(this.id)&&t.string(this.rule)&&t.uint(this.index)&&t.string(this.baseURL)}});s.set(67,V);const W=t(class{constructor(t,s,i,n){this.id=t,this.hesitationTime=s,this.label=i,this.selector=n,this._id=69}encode(t){return t.uint(69)&&t.uint(this.id)&&t.uint(this.hesitationTime)&&t.string(this.label)&&t.string(this.selector)}});s.set(69,W);const Y=t(class{constructor(t,s){this.frameID=t,this.id=s,this._id=70}encode(t){return t.uint(70)&&t.uint(this.frameID)&&t.uint(this.id)}});s.set(70,Y);const Z="function"==typeof TextEncoder?new TextEncoder:{encode(t){const s=t.length,i=new Uint8Array(3*s);let n=-1;for(var e=0,r=0,o=0;o!==s;){if(e=t.charCodeAt(o),o+=1,e>=55296&&e<=56319){if(o===s){i[n+=1]=239,i[n+=1]=191,i[n+=1]=189;break}if(!((r=t.charCodeAt(o))>=56320&&r<=57343)){i[n+=1]=239,i[n+=1]=191,i[n+=1]=189;continue}if(o+=1,(e=1024*(e-55296)+r-56320+65536)>65535){i[n+=1]=240|e>>>18,i[n+=1]=128|e>>>12&63,i[n+=1]=128|e>>>6&63,i[n+=1]=128|63&e;continue}}e<=127?i[n+=1]=0|e:e<=2047?(i[n+=1]=192|e>>>6,i[n+=1]=128|63&e):(i[n+=1]=224|e>>>12,i[n+=1]=128|e>>>6&63,i[n+=1]=128|63&e)}return i.subarray(0,n+1)}};class tt{constructor(t){this.size=t,this.offset=0,this.checkpointOffset=0,this.data=new Uint8Array(t)}checkpoint(){this.checkpointOffset=this.offset}isEmpty(){return 0===this.offset}boolean(t){return this.data[this.offset++]=+t,this.offset<=this.size}uint(t){for((t<0||t>Number.MAX_SAFE_INTEGER)&&(t=0);t>=128;)this.data[this.offset++]=t%256|128,t=Math.floor(t/128);return this.data[this.offset++]=t,this.offset<=this.size}int(t){return t=Math.round(t),this.uint(t>=0?2*t:-2*t-1)}string(t){const s=Z.encode(t),i=s.byteLength;return!(!this.uint(i)||this.offset+i>this.size)&&(this.data.set(s,this.offset),this.offset+=i,!0)}reset(){this.offset=0,this.checkpointOffset=0}flush(){const t=this.data.slice(0,this.checkpointOffset);return this.reset(),t}}let st=1e6,it=2e5,nt=new tt(it),et="",rt="",ot=0,ht=0,ct=0,ut=0,at=!0;function dt(){return new i(ot,ut,ht).encode(nt)}let lt=null;const gt=[];let ft,pt=!1,mt=0,_t=8e3,yt=10;function vt(){if(at||""===rt||""===et)return;const t=nt.flush();pt?gt.push(t):(pt=!0,function t(s){const i=new XMLHttpRequest;i.open("POST",et+"/v1/web/i",!1),i.setRequestHeader("Authorization","Bearer "+rt),i.onreadystatechange=function(){if(4===this.readyState){if(0==this.status)return;if(this.status>=400)return St(),gt.length=0,401===this.status?void self.postMessage("restart"):void self.postMessage(null);const s=gt.shift();s?t(s):pt=!1}},i.onerror=function(i){if(mt>=yt)return St(),void self.postMessage(null);mt++,setTimeout(()=>t(s),_t)},i.send(s.buffer)}(t)),at=!0,dt()}function St(){et="",rt="",null!==lt&&(clearInterval(lt),lt=null),nt.reset()}self.onmessage=({data:t})=>{if(null!==t)return"stop"===t?(vt(),void St()):Array.isArray(t)?void t.forEach(t=>{const i=new(s.get(t._id));if(Object.assign(i,t),i instanceof n?ht=i.timestamp:i instanceof J&&(i.hidden?ft=setTimeout(()=>self.postMessage("restart"),18e5):clearTimeout(ft)),nt.checkpoint(),!i.encode(nt)&&(vt(),!i.encode(nt)))for(;!i.encode(nt);){if(it===st)return console.warn("OpenReplay: beacon size overflow."),nt.reset(),void dt();it=Math.min(2*it,st),nt=new tt(it),dt()}ut++,at=!1}):(et=t.ingestPoint||et,rt=t.token||rt,ot=t.pageNo||ot,ht=t.startTimestamp||ht,ct=t.timeAdjustment||ct,yt=t.connAttemptCount||yt,_t=t.connAttemptGap||_t,st=t.beaconSizeLimit||st,it=Math.min(st,t.beaconSize||it),nt.isEmpty()&&dt(),void(null===lt&&(lt=setInterval(vt,1e4))));vt()};\n'],{type:"text/javascript"}))),this.worker.onerror=e=>{this._debug("webworker_error",e)};i();this.worker.onmessage=({data:e})=>{null===e?this.stop():"restart"===e&&(this.stop(),this.start(!0))};const e=()=>{this.worker&&this.worker.postMessage(null)};this.attachEventListener(window,"beforeunload",e,!1),this.attachEventListener(document,"mouseleave",e,!1,!1),this.attachEventListener(document,"visibilitychange",e,!1)}catch(r){this._debug("worker_start",r)}}_debug(e,t){null!==this.options.__debug_report_edp&&fetch(this.options.__debug_report_edp,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({context:e,error:`${t}`})}),this.options.__debug_log&&l("OpenReplay error: ",e,t)}send(e,t=!1){this.isActive&&(this.messages.push(e),t&&this.commit())}commit(){this.worker&&this.messages.length&&(this.messages.unshift(new E(i())),this.worker.postMessage(this.messages),this.commitCallbacks.forEach((e=>e(this.messages))),this.messages.length=0)}attachCommitCallback(e){this.commitCallbacks.push(e)}addCommitCallback(e){this.attachCommitCallback(e)}safe(e){const t=this;return function(...n){try{e.apply(this,n)}catch(r){t._debug("safe_fn_call",r)}}}attachStartCallback(e){this.startCallbacks.push(e)}attachStopCallback(e){this.stopCallbacks.push(e)}attachEventListener(e,t,n,r=!0,i=!0){r&&(n=this.safe(n)),this.attachStartCallback((()=>e.addEventListener(t,n,i))),this.attachStopCallback((()=>e.removeEventListener(t,n,i)))}getSessionToken(){const e=sessionStorage.getItem(this.options.session_token_key);if(null!==e)return e}getSessionID(){return this._sessionID||void 0}getHost(){return new URL(this.options.ingestPoint).hostname}getProjectKey(){return this.projectKey}getBaseHref(){var e,t;return"string"===typeof this.options.resourceBaseHref?this.options.resourceBaseHref:(this.options.resourceBaseHref,document.baseURI?document.baseURI:(null===(t=null===(e=document.head)||void 0===e?void 0:e.getElementsByTagName("base")[0])||void 0===t?void 0:t.getAttribute("href"))||location.origin+location.pathname)}resolveResourceURL(e){const t=new URL(this.getBaseHref());return t.pathname+="/"+new URL(e).pathname,t.pathname.replace(/\/+/g,"/"),t.toString()}isServiceURL(e){return e.startsWith(this.options.ingestPoint)}active(){return this.isActive}_start(e){if(!this.isActive){if(!this.worker)return Promise.reject("No worker found: perhaps, CSP is not set.");this.isActive=!0;let t=0;const n=sessionStorage.getItem(this.options.session_pageno_key);null!=n&&(t=parseInt(n),t++),sessionStorage.setItem(this.options.session_pageno_key,t.toString());const r=i(),o={ingestPoint:this.options.ingestPoint,pageNo:t,startTimestamp:r,connAttemptCount:this.options.connAttemptCount,connAttemptGap:this.options.connAttemptGap};return this.worker.postMessage(o),window.fetch(this.options.ingestPoint+"/v1/web/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:sessionStorage.getItem(this.options.session_token_key),userUUID:localStorage.getItem(this.options.local_uuid_key),projectKey:this.projectKey,revID:this.revID,timestamp:r,trackerVersion:this.version,isSnippet:this.options.__is_snippet,deviceMemory:It,jsHeapSizeLimit:St,reset:e})}).then((e=>200===e.status?e.json():e.text().then((t=>{throw new Error(`Server error: ${e.status}. ${t}`)})))).then((e=>{const{token:t,userUUID:n,sessionID:r,beaconSizeLimit:i}=e;if("string"!==typeof t||"string"!==typeof n||"number"!==typeof i&&"undefined"!==typeof i)throw new Error(`Incorrect server response: ${JSON.stringify(e)}`);if(sessionStorage.setItem(this.options.session_token_key,t),localStorage.setItem(this.options.local_uuid_key,n),"string"===typeof r&&(this._sessionID=r),!this.worker)throw new Error("no worker found after start request (this might not happen)");this.worker.postMessage({token:t,beaconSizeLimit:i}),this.startCallbacks.forEach((e=>e())),this.observer.observe(),this.ticker.start(),u("OpenReplay tracking started.");const o={sessionToken:t,userUUID:n,sessionID:r};return"function"===typeof this.options.onStart&&this.options.onStart(o),o})).catch((e=>{throw sessionStorage.removeItem(this.options.session_token_key),this.stop(),l("OpenReplay was unable to start. ",e),this._debug("session_start",e),e}))}return Promise.reject("Player is already active")}start(e=!1){return document.hidden?new Promise((t=>{const n=()=>{document.hidden||(document.removeEventListener("visibilitychange",n),t(this._start(e)))};document.addEventListener("visibilitychange",n)})):this._start(e)}stop(){if(this.isActive)try{this.worker&&this.worker.postMessage("stop"),this.observer.disconnect(),this.nodes.clear(),this.ticker.stop(),this.stopCallbacks.forEach((e=>e())),u("OpenReplay tracking stopped.")}finally{this.isActive=!1}}}function Rt(e){const t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(void 0===t)return;const n=()=>e.send(new Ve(Math.round(1e3*t.downlink),t.type||"unknown"));n(),t.addEventListener("change",n)}const kt=c&&"InstallTrigger"in window?e=>e.message+"\n"+e.stack:e=>e.stack||e.message;function xt(e){return void 0===e?"undefined":null===e?"null":e instanceof Error?kt(e):Array.isArray(e)?`Array(${e.length})`:e.toString()}function Mt(e){return"number"!==typeof e?"NaN":e.toString()}function Nt(e){return"number"!==typeof e?"NaN":Math.floor(e).toString()}function Pt(e){if(void 0===e)return"undefined";if(null===e)return"null";if(e instanceof Error)return kt(e);if(Array.isArray(e)){const t=e.length,n=e.slice(0,10).map(xt).join(", ");return`Array(${t})[${n}]`}if("object"===typeof e){const t=[];let n=0;for(const r in e){if(10===++n)break;const i=e[r];t.push(r+": "+xt(i))}return"{"+t.join(", ")+"}"}return e.toString()}function Dt(e){return"string"===typeof e[0]&&e.unshift(e.shift().replace(/%(o|s|f|d|i)/g,((t,n)=>{const r=e.shift();if(void 0===r)return t;switch(n){case"o":return Pt(r);case"s":return xt(r);case"f":return Mt(r);case"d":case"i":return Nt(r);default:return t}}))),e.map(Pt).join(" ")}const Lt=["log","info","warn","error","debug","assert"];function Ut(e,t){const n=Object.assign({consoleMethods:Lt,consoleThrottling:30},t);if(!Array.isArray(n.consoleMethods)||0===n.consoleMethods.length)return;const r=e.safe(((t,n)=>e.send(new te(t,Dt(n)))));let i;const o=()=>{i=0};e.attachStartCallback(o),e.ticker.attach(o,33,!1);const a=e=>n.consoleMethods.forEach((t=>{if(-1===Lt.indexOf(t))return void e.error(`OpenReplay: unsupported console method "${t}"`);const o=e[t];e[t]=function(...e){o.apply(this,e),i++>n.consoleThrottling||r(t,e)}}));a(window.console),e.nodes.attachNodeCallback(e.safe((t=>{if(t instanceof HTMLIFrameElement){let n=t.contentWindow;n&&a(n.console),e.attachEventListener(t,"load",(()=>{t.contentWindow!==n&&(n=t.contentWindow,a(n.console))}))}})))}var Ft=n(79180);function qt(e){return[{columnNumber:e.colno,lineNumber:e.lineno,fileName:e.filename,functionName:"",source:""}]}function Bt(e,t){let n=t;try{n=Ft.parse(e)}catch(r){}return new se(e.name,e.message,JSON.stringify(n))}function Ht(e){if(e instanceof ErrorEvent){if(e.error instanceof Error)return Bt(e.error,qt(e));{let[t,n]=e.message.split(":");return n||(t="Error",n=e.message),new se(t,n,JSON.stringify(qt(e)))}}if("PromiseRejectionEvent"in window&&e instanceof PromiseRejectionEvent){if(e.reason instanceof Error)return Bt(e.reason,[]);{let n;try{n=JSON.stringify(e.reason)}catch(t){n=String(e.reason)}return new se("Unhandled Promise Rejection",n,"[]")}}return null}function jt(e,t){const n=Object.assign({captureExceptions:!0},t);if(n.captureExceptions){const t=t=>{const n=Ht(t);null!=n&&e.send(n)};e.attachEventListener(window,"unhandledrejection",(e=>t(e))),e.attachEventListener(window,"error",(e=>t(e)))}}function Vt(e){const t=e.safe((function(){const t=e.nodes.getID(this);if(void 0===t)return;const{src:n,complete:r,naturalWidth:o,naturalHeight:a}=this;r&&(0===o&&0===a?null!=n&&s(n)&&e.send(new He(i(),0,0,0,0,0,n,"img")):n.length<1e5&&e.send(new We(t,"src",n,e.getBaseHref())))})),n=new MutationObserver((t=>{for(const n of t)if("attributes"===n.type&&"src"===n.attributeName){const t=n.target,r=e.nodes.getID(t);if(void 0===r)return;const i=t.src;e.send(new We(r,"src",i,e.getBaseHref()))}}));e.nodes.attachNodeCallback((r=>{r instanceof HTMLImageElement&&(e.nodes.attachElementListener("error",r,t),e.nodes.attachElementListener("load",r,t),t.call(r),n.observe(r,{attributes:!0}))}))}function Gt(e){if(!(e instanceof HTMLInputElement))return!1;const t=e.type;return"text"===t||"password"===t||"email"===t||"search"===t||"number"===t||"range"===t}function zt(e){if(!(e instanceof HTMLInputElement))return!1;const t=e.type;return"checkbox"===t||"radio"===t}const $t=c&&"labels"in HTMLInputElement.prototype?e=>{let t=e;while(null!==(t=t.parentNode))if("LABEL"===t.nodeName)return t;const n=e.labels;if(null!==n&&1===n.length)return n[0]}:e=>{let t=e;while(null!==(t=t.parentNode))if("LABEL"===t.nodeName)return t;const n=e.id;if(n){const e=document.querySelectorAll('label[for="'+n+'"]');if(null!==e&&1===e.length)return e[0]}};function Yt(e){let t=p(e);if(null===t){const n=$t(e);t=void 0===n?e.placeholder||e.name:n.innerText}return a(t).slice(0,100)}function Kt(e,t){const n=Object.assign({obscureInputNumbers:!0,obscureInputEmails:!0,defaultInputMode:0},t);function r(t,n){const r=Yt(n);""!==r&&e.send(new Y(t,r))}function i(t,r){let i=r.value,o=n.defaultInputMode;"password"===r.type||m(r,"hidden")?o=2:(m(r,"obscured")||0===o&&(n.obscureInputNumbers&&/\d\d\d\d/.test(i)||n.obscureInputEmails&&("email"===r.type||~i.indexOf("@"))))&&(o=1);let a=0;switch(o){case 2:a=-1,i="";break;case 1:a=i.length,i="";break}e.send(new W(t,i,a))}const o=new Map,a=new Map,s=new Set;e.attachStopCallback((()=>{o.clear(),a.clear(),s.clear()})),e.ticker.attach((()=>{o.forEach(((t,n)=>{const a=e.nodes.getNode(n);Gt(a)?t!==a.value&&(o.set(n,a.value),s.has(n)||(s.add(n),r(n,a)),i(n,a)):o.delete(n)})),a.forEach(((t,n)=>{const r=e.nodes.getNode(n);zt(r)?t!==r.checked&&(a.set(n,r.checked),e.send(new Q(n,r.checked))):a.delete(n)}))})),e.ticker.attach(Set.prototype.clear,100,!1,s),e.nodes.attachNodeCallback(e.safe((t=>{const n=e.nodes.getID(t);if(void 0!==n)return Gt(t)?(o.set(n,t.value),void i(n,t)):zt(t)?(a.set(n,t.checked),void e.send(new Q(n,t.checked))):void 0})))}function Wt(e){let t=e,n=null;do{if(t.id)return`#${t.id}`+(n?` > ${n}`:"");if(n=t.className.split(" ").map((e=>e.trim())).filter((e=>""!==e)).reduce(((e,t)=>`${e}.${t}`),t.tagName.toLowerCase())+(n?` > ${n}`:""),t===document.body)return n;t=t.parentElement}while(t!==document.body&&null!==t);return n}function Xt(e){return e instanceof Element?Qt(e):null}function Qt(e){let t=e;while(null!==t&&t!==document.documentElement){if(m(t,"masked"))return null;t=t.parentElement}if(e instanceof SVGElement){let t=e.ownerSVGElement;while(null!==t)e=t,t=t.ownerSVGElement}t=e;while(null!==t&&t!==document.documentElement){const e=t.tagName.toUpperCase();if("LABEL"===e)return null;if("INPUT"===e)return t;if("BUTTON"===e||"A"===e||"LI"===e||null!=t.onclick||"button"===t.getAttribute("role")||null!==p(t))return t;t=t.parentElement}return e===document.documentElement?null:e}function Zt(e){function t(t){const n=p(t);if(null!==n)return n;const r=t.tagName.toUpperCase();if("INPUT"===r)return Yt(t);if("BUTTON"===r||"A"===r||"LI"===r||null!=t.onclick||"button"===t.getAttribute("role")){const n=e.observer.getInnerTextSecure(t);return a(n).slice(0,100)}return""}let n=-1,r=-1,i=!1,o=null,s=0;e.attachStopCallback((()=>{n=-1,r=-1,i=!1,o=null}));const c=()=>{i&&(e.send(new J(n,r)),i=!1)},u={};function l(e,t){return u[e]=u[e]||Wt(t)}e.attachEventListener(document.documentElement,"mouseover",(e=>{const t=Xt(e.target);t!==o&&(o=t,s=performance.now())})),e.attachEventListener(document,"mousemove",(e=>{n=e.clientX,r=e.clientY,i=!0}),!1),e.attachEventListener(document,"click",(n=>{const r=Xt(n.target);if(!n.clientX&&!n.clientY||null===r)return;const i=e.nodes.getID(r);void 0!==i&&(c(),e.send(new st(i,o===r?Math.round(performance.now()-s):0,t(r),l(i,r)),!0)),o=null})),e.ticker.attach(c,10)}function Jt(e){const t=[],n=document.getElementsByTagName("*"),r=/url\(("[^"]*"|'[^']*'|[^)]*)\)/i;for(let i=0;i<n.length;i++){const o=n[i];let a="";if(o instanceof HTMLImageElement&&(a=o.currentSrc||o.src),!a){const e=getComputedStyle(o).getPropertyValue("background-image");if(e){const t=r.exec(e);null!==t&&(a=t[1],(a.startsWith('"')||a.startsWith("'"))&&(a=a.substr(1,a.length-2)))}}if(!a)continue;const s="data:image"===a.substr(0,10)?0:e[a];if(void 0===s)continue;const c=o.getBoundingClientRect(),u=Math.max(c.top,0),l=Math.max(c.left,0),d=Math.min(c.bottom,window.innerHeight||document.documentElement&&document.documentElement.clientHeight||0),h=Math.min(c.right,window.innerWidth||document.documentElement&&document.documentElement.clientWidth||0);if(d<=u||h<=l)continue;const f=(d-u)*(h-l);t.push({time:s,area:f})}return t}function en(e,t){let n=Math.max(document.documentElement&&document.documentElement.clientWidth||0,window.innerWidth||0)*Math.max(document.documentElement&&document.documentElement.clientHeight||0,window.innerHeight||0)/10,r=n*e;for(let i=0;i<t.length;i++){const{time:o,area:a}=t[i];n+=a,r+=a*(o>e?o:e)}return 0===n?0:r/n}function tn(e,t){const n=Object.assign({captureResourceTimings:!0,capturePageLoadTimings:!0,capturePageRenderTimings:!0},t);if("PerformanceObserver"in window||(n.captureResourceTimings=!1),!n.captureResourceTimings)return;const r=[];function i(t){e.active()?e.send(t):r.push(t)}e.attachStartCallback((function(){r.forEach((t=>e.send(t)))}));let o={};function a(t){t.duration<0||!s(t.name)||e.isServiceURL(t.name)||(null!==o&&(o[t.name]=t.startTime+t.duration),i(new He(t.startTime+performance.timing.navigationStart,t.duration,t.responseStart&&t.startTime?t.responseStart-t.startTime:0,t.transferSize>t.encodedBodySize?t.transferSize-t.encodedBodySize:0,t.encodedBodySize||0,t.decodedBodySize||0,t.name,t.initiatorType)))}const c=new PerformanceObserver((e=>e.getEntries().forEach(a)));performance.getEntriesByType("resource").forEach(a),c.observe({entryTypes:["resource"]});let u=0,l=0;if(n.capturePageLoadTimings){let t=!1;e.ticker.attach((()=>{if(!t&&(0!==u&&0!==l||performance.getEntriesByType("paint").forEach((e=>{const{name:t,startTime:n}=e;switch(t){case"first-paint":u=n;break;case"first-contentful-paint":l=n;break}})),performance.timing.loadEventEnd||performance.now()>3e4)){t=!0;const{navigationStart:n,requestStart:r,responseStart:i,responseEnd:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:s,loadEventStart:c,loadEventEnd:d}=performance.timing;e.send(new re(r-n||0,i-n||0,o-n||0,a-n||0,s-n||0,c-n||0,d-n||0,u,l))}}),30)}if(n.capturePageRenderTimings){let t=0,n=0,r=0,i=null,a=!1;e.ticker.attach((()=>{if(a)return;const s=performance.now();if(null!==o&&(t=Math.max.apply(null,Object.keys(o).map((e=>o[e]))),s-t>1e3&&(i=Jt(o),o=null)),null!==r&&(s-r>50&&(n=s),r=s-n>5e3?null:s),null!==i&&null===r||s>3e4){a=!0,o=null;const s=null===i?0:en(l||u,i),c=null===r?Math.max(n,l,performance.timing.domContentLoadedEventEnd-performance.timing.navigationStart||0):0;e.send(new oe(s,l>t?l:t,c))}}))}}function nn(e){let t=!1;const n=new Map,r=e.safe((()=>e.send(new A(window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body&&document.body.scrollLeft||0,window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body&&document.body.scrollTop||0)))),i=e.safe(((t,n)=>{const r=e.nodes.getID(n);void 0!==r&&e.send(new z(r,t[0],t[1]))}));e.attachStartCallback(r),e.attachStopCallback((()=>{t=!1,n.clear()})),e.attachEventListener(window,"scroll",(e=>{const r=e.target;r!==document?r instanceof Element&&n.set(r,[r.scrollLeft,r.scrollTop]):t=!0})),e.ticker.attach((()=>{t&&(r(),t=!1),n.forEach(i),n.clear()}),5,!1)}function rn(e){let t,n,r,i=performance.timing.navigationStart;const o=e.safe((()=>{const{URL:n}=document;n!==t&&(t=n,e.send(new T(t,document.referrer,i)),i=0)})),a=e.safe((()=>{const{innerWidth:t,innerHeight:i}=window;t===n&&i===r||(n=t,r=i,e.send(new S(n,r)))})),s=void 0===document.hidden?Function.prototype:e.safe((()=>e.send(new ze(document.hidden))));e.attachStartCallback((()=>{t="",n=r=-1,o(),a(),s()})),void 0!==document.hidden&&e.attachEventListener(document,"visibilitychange",s,!1,!1),e.ticker.attach(o,1,!1),e.ticker.attach(a,5,!1)}function on(e){if(!("PerformanceObserver"in window)||!("PerformanceLongTaskTiming"in window))return;const t=["unknown","self","same-origin-ancestor","same-origin-descendant","same-origin","cross-origin-ancestor","cross-origin-descendant","cross-origin-unreachable","multiple-contexts"],n=["window","iframe","embed","object"];function r(r){let i="",o="",a="",s="";const c=r.attribution[0];null!=c&&(i=c.containerType,s=c.containerName,a=c.containerId,o=c.containerSrc),e.send(new Ye(r.startTime+performance.timing.navigationStart,r.duration,Math.max(t.indexOf(r.name),0),Math.max(n.indexOf(i),0),s,a,o))}const i=new PerformanceObserver((e=>e.getEntries().forEach(r)));i.observe({entryTypes:["longtask"]})}function an(e){if(null===e)return;if(!window.CSSStyleSheet)return void e.send(new Je("no_stylesheet_prototype_in_window",""));const t=e.safe(((t,n,r)=>{const i="string"===typeof r?t=>e.send(new ot(t,r,n,e.getBaseHref())):t=>e.send(new be(t,n));if(null==t.ownerNode)throw new Error("Owner Node not found");const o=e.nodes.getID(t.ownerNode);void 0!==o&&i(o)})),{insertRule:n,deleteRule:r}=CSSStyleSheet.prototype;CSSStyleSheet.prototype.insertRule=function(e,r=0){return t(this,r,e),n.call(this,e,r)},CSSStyleSheet.prototype.deleteRule=function(e){return t(this,e),r.call(this,e)},e.nodes.attachNodeCallback((e=>{if(!(e instanceof HTMLStyleElement))return;if(!(e.sheet instanceof CSSStyleSheet))return;if(null!==e.textContent&&e.textContent.trim().length>0)return;const n=e.sheet.cssRules;for(let r=0;r<n.length;r++)t(e.sheet,r,n[r].cssText)}))}const sn=r,cn="/installation/setup-or";function un(e){if(null==e)return console.error(`OpenReplay: invalid options argument type. Please, check documentation on ${d}${cn}`),!1;if("string"!==typeof e.projectKey)if("number"!==typeof e.projectKey){if("number"!==typeof e.projectID)return console.error(`OpenReplay: projectKey is missing or wrong type (string is expected). Please, check ${d}${cn} for more information.`),!1;e.projectKey=e.projectID.toString(),f("`projectID` option","`projectKey` option",cn)}else console.warn("OpenReplay: projectKey is expected to have a string type."),e.projectKey=e.projectKey.toString();return"string"!==typeof e.sessionToken&&null!=e.sessionToken&&console.warn(`OpenReplay: invalid options argument type. Please, check documentation on ${d}${cn}`),!0}class ln{constructor(e){if(this.options=e,this.app=null,this.handleError=e=>{if(null!==this.app)if(e instanceof Error)this.app.send(Bt(e,[]));else if(e instanceof ErrorEvent||"PromiseRejectionEvent"in window&&e instanceof PromiseRejectionEvent){const t=Ht(e);null!=t&&this.app.send(t)}},!c||!un(e))return;if(window.__OPENREPLAY__)return void console.error("OpenReplay: one tracker instance has been initialised already");if(!e.__DISABLE_SECURE_MODE&&"https:"!==location.protocol)return void console.error("OpenReplay: Your website must be publicly accessible and running on SSL in order for OpenReplay to properly capture and replay the user session. You can disable this check by setting `__DISABLE_SECURE_MODE` option to `true` if you are testing in localhost. Keep in mind, that asset files on a local machine are not available to the outside world. This might affect tracking if you use css files.");const t=e.respectDoNotTrack&&("1"==navigator.doNotTrack||"1"==window.doNotTrack);if(this.app=!t&&"Map"in window&&"Set"in window&&"MutationObserver"in window&&"performance"in window&&"timing"in performance&&"startsWith"in String.prototype&&"Blob"in window&&"Worker"in window?new Ot(e.projectKey,e.sessionToken,e):null,null!==this.app)rn(this.app),an(this.app),Rt(this.app),Ut(this.app,e),jt(this.app,e),Vt(this.app),Kt(this.app,e),Zt(this.app),tn(this.app,e),Ct(this.app,e),nn(this.app),on(this.app),window.__OPENREPLAY__=this;else{console.log("OpenReplay: browser doesn't support API required for tracking or doNotTrack is set to 1.");const n=new XMLHttpRequest,r=e.ingestPoint||At;n.open("POST",r+"/v1/web/not-started"),n.send(JSON.stringify({trackerVersion:"3.4.16",projectKey:e.projectKey,doNotTrack:t}))}}use(e){return e(this.app,this.options)}isActive(){return null!==this.app&&this.app.active()}active(){return f("'active' method","'isActive' method","/"),this.isActive()}start(){return c?null===this.app?Promise.reject("Browser doesn't support required api, or doNotTrack is active."):this.app.start():(console.error(`OpenReplay: you are trying to start Tracker on a node.js environment. If you want to use OpenReplay with SSR, please, use componentDidMount or useEffect API for placing the \`tracker.start()\` line. Check documentation on ${d}${cn}`),Promise.reject("Trying to start not in browser."))}stop(){null!==this.app&&this.app.stop()}getSessionToken(){return null===this.app?null:this.app.getSessionToken()}getSessionID(){return null===this.app?null:this.app.getSessionID()}sessionID(){return f("'sessionID' method","'getSessionID' method","/"),this.getSessionID()}setUserID(e){"string"===typeof e&&null!==this.app&&this.app.send(new de(e))}userID(e){f("'userID' method","'setUserID' method","/"),this.setUserID(e)}setUserAnonymousID(e){"string"===typeof e&&null!==this.app&&this.app.send(new fe(e))}userAnonymousID(e){f("'userAnonymousID' method","'setUserAnonymousID' method","/"),this.setUserAnonymousID(e)}setMetadata(e,t){"string"===typeof e&&"string"===typeof t&&null!==this.app&&this.app.send(new me(e,t))}metadata(e,t){f("'metadata' method","'setMetadata' method","/"),this.setMetadata(e,t)}event(e,t,n=!1){if("string"===typeof e&&null!==this.app){if(n)return this.issue(e,t);try{t=JSON.stringify(t)}catch(r){return}this.app.send(new ue(e,t))}}issue(e,t){if("string"===typeof e&&null!==this.app){try{t=JSON.stringify(t)}catch(n){return}this.app.send(new tt(e,t))}}}},29643:function(e,t,n){"use strict";n.d(t,{WU:function(){return a}});var r=function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class i{constructor(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}acquire(){const e=this.isLocked(),t=new Promise((e=>this._queue.push(e)));return e||this._dispatch(),t}runExclusive(e){return r(this,void 0,void 0,(function*(){const[t,n]=yield this.acquire();try{return yield e(t)}finally{n()}}))}isLocked(){return this._value<=0}release(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){const e=this._currentReleaser;this._currentReleaser=void 0,e()}}_dispatch(){const e=this._queue.shift();if(!e)return;let t=!1;this._currentReleaser=()=>{t||(t=!0,this._value++,this._dispatch())},e([this._value--,this._currentReleaser])}}var o=function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class a{constructor(){this._semaphore=new i(1)}acquire(){return o(this,void 0,void 0,(function*(){const[,e]=yield this._semaphore.acquire();return e}))}runExclusive(e){return this._semaphore.runExclusive((()=>e()))}isLocked(){return this._semaphore.isLocked()}release(){this._semaphore.release()}}},92938:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2434);function i(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},2434:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},76763:function(e,t,n){"use strict";n.r(t),n.d(t,{AElement:function(){return vt},AnimateColorElement:function(){return dt},AnimateElement:function(){return lt},AnimateTransformElement:function(){return ht},BoundingBox:function(){return He},CB1:function(){return se},CB2:function(){return ce},CB3:function(){return ue},CB4:function(){return le},Canvg:function(){return Qt},CircleElement:function(){return Qe},ClipPathElement:function(){return Pt},DefsElement:function(){return it},DescElement:function(){return Ht},Document:function(){return Kt},Element:function(){return Pe},EllipseElement:function(){return Ze},FeColorMatrixElement:function(){return xt},FeCompositeElement:function(){return Ft},FeDropShadowElement:function(){return Lt},FeGaussianBlurElement:function(){return qt},FeMorphologyElement:function(){return Ut},FilterElement:function(){return Dt},Font:function(){return Be},FontElement:function(){return ft},FontFaceElement:function(){return pt},GElement:function(){return ot},GlyphElement:function(){return ze},GradientElement:function(){return at},ImageElement:function(){return wt},LineElement:function(){return Je},LinearGradientElement:function(){return st},MarkerElement:function(){return rt},MaskElement:function(){return Mt},Matrix:function(){return Ae},MissingGlyphElement:function(){return mt},Mouse:function(){return ve},PSEUDO_ZERO:function(){return re},Parser:function(){return Te},PathElement:function(){return Ge},PathParser:function(){return je},PatternElement:function(){return nt},Point:function(){return ge},PolygonElement:function(){return tt},PolylineElement:function(){return et},Property:function(){return pe},QB1:function(){return de},QB2:function(){return he},QB3:function(){return fe},RadialGradientElement:function(){return ct},RectElement:function(){return Xe},RenderedElement:function(){return Ve},Rotate:function(){return Se},SVGElement:function(){return We},SVGFontLoader:function(){return It},Scale:function(){return Ce},Screen:function(){return _e},Skew:function(){return Oe},SkewX:function(){return Re},SkewY:function(){return ke},StopElement:function(){return ut},StyleElement:function(){return St},SymbolElement:function(){return Tt},TRefElement:function(){return gt},TSpanElement:function(){return Ye},TextElement:function(){return $e},TextPathElement:function(){return _t},TitleElement:function(){return Bt},Transform:function(){return Ne},Translate:function(){return Ie},UnknownElement:function(){return De},UseElement:function(){return Ct},ViewPort:function(){return me},compressSpaces:function(){return B},default:function(){return Qt},getSelectorSpecificity:function(){return ne},normalizeAttributeName:function(){return z},normalizeColor:function(){return Y},parseExternalUrl:function(){return $},presets:function(){return q},toNumbers:function(){return V},trimLeft:function(){return H},trimRight:function(){return j},vectorMagnitude:function(){return ie},vectorsAngle:function(){return ae},vectorsRatio:function(){return oe}});n(73964);function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n(22462),n(57267),n(268),n(752),n(76265);var o=n(92938),a=(n(278),n(2918),n(9873),n(54087)),s=(n(28436),n(26131)),c=(n(97195),n(43843),n(93374),function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)});function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function l(e){var t="";Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===A.CLOSE_PATH)t+="z";else if(r.type===A.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===A.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===A.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===A.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===A.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===A.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===A.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===A.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==A.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function d(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if("number"!=typeof e[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof e[n]+" == typeof "+e[n]);return!0}var f=Math.PI;function p(e,t,n){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var r=e.rX,i=e.rY,o=e.x,a=e.y;r=Math.abs(e.rX),i=Math.abs(e.rY);var s=d([(t-o)/2,(n-a)/2],-e.xRot/180*f),c=s[0],u=s[1],l=Math.pow(c,2)/Math.pow(r,2)+Math.pow(u,2)/Math.pow(i,2);1<l&&(r*=Math.sqrt(l),i*=Math.sqrt(l)),e.rX=r,e.rY=i;var h=Math.pow(r,2)*Math.pow(u,2)+Math.pow(i,2)*Math.pow(c,2),p=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-h)/h)),m=r*u/i*p,g=-i*c/r*p,v=d([m,g],e.xRot/180*f);e.cX=v[0]+(t+o)/2,e.cY=v[1]+(n+a)/2,e.phi1=Math.atan2((u-g)/i,(c-m)/r),e.phi2=Math.atan2((-u-g)/i,(-c-m)/r),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*f),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*f),e.phi1*=180/f,e.phi2*=180/f}function m(e,t,n){h(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(0===r)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var g,v=Math.PI/180;function y(e,t,n){return(1-n)*e+n*t}function b(e,t,n,r){return e+Math.cos(r/180*f)*t+Math.sin(r/180*f)*n}function _(e,t,n,r){var i=1e-6,o=t-e,a=n-t,s=3*o+3*(r-n)-6*a,c=6*(a-o),u=3*o;return Math.abs(s)<i?[-u/c]:function(e,t,n){void 0===n&&(n=1e-6);var r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];var i=Math.sqrt(r);return[-e/2-i,-e/2+i]}(c/s,u/s,i)}function E(e,t,n,r,i){var o=1-i;return e*(o*o*o)+t*(3*o*o*i)+n*(3*o*i*i)+r*(i*i*i)}!function(e){function t(){return i((function(e,t,n){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=n),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=n),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=n),e.relative=!1),e}))}function n(){var e=NaN,t=NaN,n=NaN,r=NaN;return i((function(i,o,a){return i.type&A.SMOOTH_CURVE_TO&&(i.type=A.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?a:t,i.x1=i.relative?o-e:2*o-e,i.y1=i.relative?a-t:2*a-t),i.type&A.CURVE_TO?(e=i.relative?o+i.x2:i.x2,t=i.relative?a+i.y2:i.y2):(e=NaN,t=NaN),i.type&A.SMOOTH_QUAD_TO&&(i.type=A.QUAD_TO,n=isNaN(n)?o:n,r=isNaN(r)?a:r,i.x1=i.relative?o-n:2*o-n,i.y1=i.relative?a-r:2*a-r),i.type&A.QUAD_TO?(n=i.relative?o+i.x1:i.x1,r=i.relative?a+i.y1:i.y1):(n=NaN,r=NaN),i}))}function r(){var e=NaN,t=NaN;return i((function(n,r,i){if(n.type&A.SMOOTH_QUAD_TO&&(n.type=A.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type&A.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;var o=n.x1,a=n.y1;n.type=A.CURVE_TO,n.x1=((n.relative?0:r)+2*o)/3,n.y1=((n.relative?0:i)+2*a)/3,n.x2=(n.x+2*o)/3,n.y2=(n.y+2*a)/3}else e=NaN,t=NaN;return n}))}function i(e){var t=0,n=0,r=NaN,i=NaN;return function(o){if(isNaN(r)&&!(o.type&A.MOVE_TO))throw new Error("path must start with moveto");var a=e(o,t,n,r,i);return o.type&A.CLOSE_PATH&&(t=r,n=i),void 0!==o.x&&(t=o.relative?t+o.x:o.x),void 0!==o.y&&(n=o.relative?n+o.y:o.y),o.type&A.MOVE_TO&&(r=t,i=n),a}}function o(e,t,n,r,o,a){return h(e,t,n,r,o,a),i((function(i,s,c,u){var l=i.x1,d=i.x2,h=i.relative&&!isNaN(u),f=void 0!==i.x?i.x:h?0:s,p=void 0!==i.y?i.y:h?0:c;function m(e){return e*e}i.type&A.HORIZ_LINE_TO&&0!==t&&(i.type=A.LINE_TO,i.y=i.relative?0:c),i.type&A.VERT_LINE_TO&&0!==n&&(i.type=A.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*e+p*n+(h?0:o)),void 0!==i.y&&(i.y=f*t+i.y*r+(h?0:a)),void 0!==i.x1&&(i.x1=i.x1*e+i.y1*n+(h?0:o)),void 0!==i.y1&&(i.y1=l*t+i.y1*r+(h?0:a)),void 0!==i.x2&&(i.x2=i.x2*e+i.y2*n+(h?0:o)),void 0!==i.y2&&(i.y2=d*t+i.y2*r+(h?0:a));var g=e*r-t*n;if(void 0!==i.xRot&&(1!==e||0!==t||0!==n||1!==r))if(0===g)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=A.LINE_TO;else{var v=i.xRot*Math.PI/180,y=Math.sin(v),b=Math.cos(v),_=1/m(i.rX),E=1/m(i.rY),w=m(b)*_+m(y)*E,T=2*y*b*(_-E),I=m(y)*_+m(b)*E,S=w*r*r-T*t*r+I*t*t,C=T*(e*r+t*n)-2*(w*n*r+I*e*t),O=w*n*n-T*e*n+I*e*e,R=(Math.atan2(C,S-O)+Math.PI)%Math.PI/2,k=Math.sin(R),x=Math.cos(R);i.rX=Math.abs(g)/Math.sqrt(S*m(x)+C*k*x+O*m(k)),i.rY=Math.abs(g)/Math.sqrt(S*m(k)-C*k*x+O*m(x)),i.xRot=180*R/Math.PI}return void 0!==i.sweepFlag&&0>g&&(i.sweepFlag=+!i.sweepFlag),i}))}function a(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),h(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i((function(e,t,n){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=n),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=n),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=n),e.relative=!0),e}))},e.NORMALIZE_HVZ=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),i((function(r,i,o,a,s){if(isNaN(a)&&!(r.type&A.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type&A.HORIZ_LINE_TO&&(r.type=A.LINE_TO,r.y=r.relative?0:o),n&&r.type&A.VERT_LINE_TO&&(r.type=A.LINE_TO,r.x=r.relative?0:i),e&&r.type&A.CLOSE_PATH&&(r.type=A.LINE_TO,r.x=r.relative?a-i:a,r.y=r.relative?s-o:s),r.type&A.ARC&&(0===r.rX||0===r.rY)&&(r.type=A.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=i,e.SANITIZE=function(e){void 0===e&&(e=0),h(e);var t=NaN,n=NaN,r=NaN,o=NaN;return i((function(i,a,s,c,u){var l=Math.abs,d=!1,h=0,f=0;if(i.type&A.SMOOTH_CURVE_TO&&(h=isNaN(t)?0:a-t,f=isNaN(n)?0:s-n),i.type&(A.CURVE_TO|A.SMOOTH_CURVE_TO)?(t=i.relative?a+i.x2:i.x2,n=i.relative?s+i.y2:i.y2):(t=NaN,n=NaN),i.type&A.SMOOTH_QUAD_TO?(r=isNaN(r)?a:2*a-r,o=isNaN(o)?s:2*s-o):i.type&A.QUAD_TO?(r=i.relative?a+i.x1:i.x1,o=i.relative?s+i.y1:i.y2):(r=NaN,o=NaN),i.type&A.LINE_COMMANDS||i.type&A.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&A.CURVE_TO||i.type&A.SMOOTH_CURVE_TO||i.type&A.QUAD_TO||i.type&A.SMOOTH_QUAD_TO){var p=void 0===i.x?0:i.relative?i.x:i.x-a,m=void 0===i.y?0:i.relative?i.y:i.y-s;h=isNaN(r)?void 0===i.x1?h:i.relative?i.x:i.x1-a:r-a,f=isNaN(o)?void 0===i.y1?f:i.relative?i.y:i.y1-s:o-s;var g=void 0===i.x2?0:i.relative?i.x:i.x2-a,v=void 0===i.y2?0:i.relative?i.y:i.y2-s;l(p)<=e&&l(m)<=e&&l(h)<=e&&l(f)<=e&&l(g)<=e&&l(v)<=e&&(d=!0)}return i.type&A.CLOSE_PATH&&l(a-c)<=e&&l(s-u)<=e&&(d=!0),d?[]:i}))},e.MATRIX=o,e.ROTATE=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),h(e,t,n);var r=Math.sin(e),i=Math.cos(e);return o(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),h(e,t),o(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),h(e,t),o(e,0,0,t,0,0)},e.SKEW_X=function(e){return h(e),o(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return h(e),o(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),h(e),o(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),h(e),o(1,0,0,-1,0,e)},e.A_TO_C=function(){return i((function(e,t,n){return A.ARC===e.type?function(e,t,n){var r,i,o,a;e.cX||p(e,t,n);for(var s=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-s,u=Math.ceil(c/90),l=new Array(u),h=t,f=n,m=0;m<u;m++){var g=y(e.phi1,e.phi2,m/u),b=y(e.phi1,e.phi2,(m+1)/u),_=b-g,E=4/3*Math.tan(_*v/4),w=[Math.cos(g*v)-E*Math.sin(g*v),Math.sin(g*v)+E*Math.cos(g*v)],T=w[0],I=w[1],S=[Math.cos(b*v),Math.sin(b*v)],C=S[0],O=S[1],R=[C+E*Math.sin(b*v),O-E*Math.cos(b*v)],k=R[0],x=R[1];l[m]={relative:e.relative,type:A.CURVE_TO};var M=function(t,n){var r=d([t*e.rX,n*e.rY],e.xRot),i=r[0],o=r[1];return[e.cX+i,e.cY+o]};r=M(T,I),l[m].x1=r[0],l[m].y1=r[1],i=M(k,x),l[m].x2=i[0],l[m].y2=i[1],o=M(C,O),l[m].x=o[0],l[m].y=o[1],e.relative&&(l[m].x1-=h,l[m].y1-=f,l[m].x2-=h,l[m].y2-=f,l[m].x-=h,l[m].y-=f),h=(a=[l[m].x,l[m].y])[0],f=a[1]}return l}(e,e.relative?0:t,e.relative?0:n):e}))},e.ANNOTATE_ARCS=function(){return i((function(e,t,n){return e.relative&&(t=0,n=0),A.ARC===e.type&&p(e,t,n),e}))},e.CLONE=a,e.CALCULATE_BOUNDS=function(){var e=function(e){var t={};for(var n in e)t[n]=e[n];return t},o=t(),a=r(),s=n(),c=i((function(t,n,r){var i=s(a(o(e(t))));function u(e){e>c.maxX&&(c.maxX=e),e<c.minX&&(c.minX=e)}function l(e){e>c.maxY&&(c.maxY=e),e<c.minY&&(c.minY=e)}if(i.type&A.DRAWING_COMMANDS&&(u(n),l(r)),i.type&A.HORIZ_LINE_TO&&u(i.x),i.type&A.VERT_LINE_TO&&l(i.y),i.type&A.LINE_TO&&(u(i.x),l(i.y)),i.type&A.CURVE_TO){u(i.x),l(i.y);for(var d=0,h=_(n,i.x1,i.x2,i.x);d<h.length;d++)0<(P=h[d])&&1>P&&u(E(n,i.x1,i.x2,i.x,P));for(var f=0,g=_(r,i.y1,i.y2,i.y);f<g.length;f++)0<(P=g[f])&&1>P&&l(E(r,i.y1,i.y2,i.y,P))}if(i.type&A.ARC){u(i.x),l(i.y),p(i,n,r);for(var v=i.xRot/180*Math.PI,y=Math.cos(v)*i.rX,w=Math.sin(v)*i.rX,T=-Math.sin(v)*i.rY,I=Math.cos(v)*i.rY,S=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],C=S[0],O=S[1],R=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return r<C?r+360:r},k=0,x=m(T,-y,0).map(R);k<x.length;k++)(P=x[k])>C&&P<O&&u(b(i.cX,y,T,P));for(var M=0,N=m(I,-w,0).map(R);M<N.length;M++){var P;(P=N[M])>C&&P<O&&l(b(i.cY,w,I,P))}}return t}));return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}}(g||(g={}));var w,T=function(){function e(){}return e.prototype.round=function(e){return this.transform(g.ROUND(e))},e.prototype.toAbs=function(){return this.transform(g.TO_ABS())},e.prototype.toRel=function(){return this.transform(g.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(g.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(g.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(g.QT_TO_C())},e.prototype.aToC=function(){return this.transform(g.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(g.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(g.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(g.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(g.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,r,i,o){return this.transform(g.MATRIX(e,t,n,r,i,o))},e.prototype.skewX=function(e){return this.transform(g.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(g.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(g.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(g.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(g.ANNOTATE_ARCS())},e}(),I=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},S=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},C=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return u(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var n=this;void 0===t&&(t=[]);for(var r=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<e.length;i++){var o=e[i],a=!(this.curCommandType!==A.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=S(o)&&("0"===this.curNumber&&"0"===o||a);if(!S(o)||s)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===A.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>c)throw new SyntaxError('Expected positive number, got "'+c+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(c),this.curArgs.length===O[this.curCommandType]&&(A.HORIZ_LINE_TO===this.curCommandType?r({type:A.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):A.VERT_LINE_TO===this.curCommandType?r({type:A.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===A.MOVE_TO||this.curCommandType===A.LINE_TO||this.curCommandType===A.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),A.MOVE_TO===this.curCommandType&&(this.curCommandType=A.LINE_TO)):this.curCommandType===A.CURVE_TO?r({type:A.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===A.SMOOTH_CURVE_TO?r({type:A.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===A.QUAD_TO?r({type:A.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===A.ARC&&r({type:A.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!I(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(s)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=A.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=A.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=A.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=A.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=A.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=A.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=A.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=A.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=A.ARC,this.curCommandRelative="a"===o}else t.push({type:A.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){void 0===n&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r<i.length;r++){var o=i[r],a=e(o);Array.isArray(a)?n.push.apply(n,a):n.push(a)}return n}}})},t}(T),A=function(e){function t(n){var r=e.call(this)||this;return r.commands="string"==typeof n?t.parse(n):n,r}return u(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=g.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],n=0,r=this.commands;n<r.length;n++){var i=e(r[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},t.encode=function(e){return l(e)},t.parse=function(e){var t=new C,n=[];return t.parse(e,n),t.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(T),O=((w={})[A.MOVE_TO]=2,w[A.LINE_TO]=2,w[A.HORIZ_LINE_TO]=1,w[A.VERT_LINE_TO]=1,w[A.CLOSE_PATH]=0,w[A.QUAD_TO]=4,w[A.SMOOTH_QUAD_TO]=2,w[A.CURVE_TO]=6,w[A.SMOOTH_CURVE_TO]=4,w[A.ARC]=7,w);n(12826);function R(e){return R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var x=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],M=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function N(e,t,n,r,i){if("string"===typeof e&&(e=document.getElementById(e)),!e||"object"!==R(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext("2d");try{return o.getImageData(t,n,r,i)}catch(l){throw new Error("unable to access image data: "+l)}}function P(e,t,n,r,i,o){if(!(isNaN(o)||o<1)){o|=0;var a=N(e,t,n,r,i);a=D(a,t,n,r,i,o),e.getContext("2d").putImageData(a,t,n)}}function D(e,t,n,r,i,o){for(var a,s=e.data,c=2*o+1,u=r-1,l=i-1,d=o+1,h=d*(d+1)/2,f=new L,p=f,m=1;m<c;m++)p=p.next=new L,m===d&&(a=p);p.next=f;for(var g=null,v=null,y=0,b=0,_=x[o],E=M[o],w=0;w<i;w++){p=f;for(var T=s[b],I=s[b+1],S=s[b+2],C=s[b+3],A=0;A<d;A++)p.r=T,p.g=I,p.b=S,p.a=C,p=p.next;for(var O=0,R=0,k=0,N=0,P=d*T,D=d*I,U=d*S,F=d*C,q=h*T,B=h*I,H=h*S,j=h*C,V=1;V<d;V++){var G=b+((u<V?u:V)<<2),z=s[G],$=s[G+1],Y=s[G+2],K=s[G+3],W=d-V;q+=(p.r=z)*W,B+=(p.g=$)*W,H+=(p.b=Y)*W,j+=(p.a=K)*W,O+=z,R+=$,k+=Y,N+=K,p=p.next}g=f,v=a;for(var X=0;X<r;X++){var Q=j*_>>E;if(s[b+3]=Q,0!==Q){var Z=255/Q;s[b]=(q*_>>E)*Z,s[b+1]=(B*_>>E)*Z,s[b+2]=(H*_>>E)*Z}else s[b]=s[b+1]=s[b+2]=0;q-=P,B-=D,H-=U,j-=F,P-=g.r,D-=g.g,U-=g.b,F-=g.a;var J=X+o+1;J=y+(J<u?J:u)<<2,O+=g.r=s[J],R+=g.g=s[J+1],k+=g.b=s[J+2],N+=g.a=s[J+3],q+=O,B+=R,H+=k,j+=N,g=g.next;var ee=v,te=ee.r,ne=ee.g,re=ee.b,ie=ee.a;P+=te,D+=ne,U+=re,F+=ie,O-=te,R-=ne,k-=re,N-=ie,v=v.next,b+=4}y+=r}for(var oe=0;oe<r;oe++){b=oe<<2;var ae=s[b],se=s[b+1],ce=s[b+2],ue=s[b+3],le=d*ae,de=d*se,he=d*ce,fe=d*ue,pe=h*ae,me=h*se,ge=h*ce,ve=h*ue;p=f;for(var ye=0;ye<d;ye++)p.r=ae,p.g=se,p.b=ce,p.a=ue,p=p.next;for(var be=r,_e=0,Ee=0,we=0,Te=0,Ie=1;Ie<=o;Ie++){b=be+oe<<2;var Se=d-Ie;pe+=(p.r=ae=s[b])*Se,me+=(p.g=se=s[b+1])*Se,ge+=(p.b=ce=s[b+2])*Se,ve+=(p.a=ue=s[b+3])*Se,Te+=ae,_e+=se,Ee+=ce,we+=ue,p=p.next,Ie<l&&(be+=r)}b=oe,g=f,v=a;for(var Ce=0;Ce<i;Ce++){var Ae=b<<2;s[Ae+3]=ue=ve*_>>E,ue>0?(ue=255/ue,s[Ae]=(pe*_>>E)*ue,s[Ae+1]=(me*_>>E)*ue,s[Ae+2]=(ge*_>>E)*ue):s[Ae]=s[Ae+1]=s[Ae+2]=0,pe-=le,me-=de,ge-=he,ve-=fe,le-=g.r,de-=g.g,he-=g.b,fe-=g.a,Ae=oe+((Ae=Ce+d)<l?Ae:l)*r<<2,pe+=Te+=g.r=s[Ae],me+=_e+=g.g=s[Ae+1],ge+=Ee+=g.b=s[Ae+2],ve+=we+=g.a=s[Ae+3],g=g.next,le+=ae=v.r,de+=se=v.g,he+=ce=v.b,fe+=ue=v.a,Te-=ae,_e-=se,Ee-=ce,we-=ue,v=v.next,b+=r}}return e}var L=function e(){k(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function U(){var{DOMParser:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return i((function*(){var t=yield fetch(e),n=yield t.blob(),r=yield createImageBitmap(n);return r}))()}};return"undefined"===typeof DOMParser&&"undefined"!==typeof e||Reflect.deleteProperty(t,"DOMParser"),t}function F(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}var q=Object.freeze({__proto__:null,offscreen:U,node:F});function B(e){return e.replace(/(?!\u3000)\s+/gm," ")}function H(e){return e.replace(/^[\n \t]+/,"")}function j(e){return e.replace(/[\n \t]+$/,"")}function V(e){var t=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var G=/^[A-Z-]+$/;function z(e){return G.test(e)?e.toLowerCase():e}function $(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function Y(e){if(!e.startsWith("rgb"))return e;var t=3,n=e.replace(/\d+(\.\d+)?/g,((e,n)=>t--&&n?String(Math.round(parseFloat(e))):e));return n}var K=/(\[[^\]]+\])/g,W=/(#[^\s+>~.[:]+)/g,X=/(\.[^\s+>~.[:]+)/g,Q=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Z=/(:[\w-]+\([^)]*\))/gi,J=/(:[^\s+>~.[:]+)/g,ee=/([^\s+>~.[:]+)/g;function te(e,t){var n=t.exec(e);return n?[e.replace(t," "),n.length]:[e,0]}function ne(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0;return[n,r]=te(n,K),t[1]+=r,[n,r]=te(n,W),t[0]+=r,[n,r]=te(n,X),t[1]+=r,[n,r]=te(n,Q),t[2]+=r,[n,r]=te(n,Z),t[1]+=r,[n,r]=te(n,J),t[1]+=r,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[n,r]=te(n,ee),t[2]+=r,t.join("")}var re=1e-8;function ie(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function oe(e,t){return(e[0]*t[0]+e[1]*t[1])/(ie(e)*ie(t))}function ae(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(oe(e,t))}function se(e){return e*e*e}function ce(e){return 3*e*e*(1-e)}function ue(e){return 3*e*(1-e)*(1-e)}function le(e){return(1-e)*(1-e)*(1-e)}function de(e){return e*e}function he(e){return 2*e*(1-e)}function fe(e){return(1-e)*(1-e)}class pe{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new pe(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:t,name:n}=this;return B(this.getString()).trim().split(e).map((e=>new pe(t,n,e)))}hasValue(e){var{value:t}=this;return null!==t&&""!==t&&(e||0!==t)&&"undefined"!==typeof t}isString(e){var{value:t}=this,n="string"===typeof t;return n&&e?e.test(t):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return"undefined"===typeof e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return"undefined"===typeof e?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return"undefined"===typeof e||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Y(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,r]="boolean"===typeof e?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:var o=this.getNumber();return t&&o<1?o*i.computeSize(n):o}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if("function"===typeof n.createGradient)return n.createGradient(this.document.ctx,e,t);if("function"===typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?pe.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,r=0,i=0;i<n;i++)if(","===t[i]&&r++,3===r)break;if(e.hasValue()&&this.isString()&&3!==r){var o=new s(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new pe(this.document,this.name,t)}}pe.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class me{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return"number"===typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class ge{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[n=t,r=t]=V(e);return new ge(n,r)}static parseScale(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[n=t,r=n]=V(e);return new ge(n,r)}static parsePath(e){for(var t=V(e),n=t.length,r=[],i=0;i<n;i+=2)r.push(new ge(t[i],t[i+1]));return r}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,r=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=r,this.y=i}}class ve{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=""),t.forEach(((e,t)=>{var{run:r}=e,i=n[t];while(i)r(i),i=i.parent})),this.events=[],this.eventElements=[]}}checkPath(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach(((n,i)=>{var{x:o,y:a}=n;!r[i]&&t.isPointInPath&&t.isPointInPath(o,a)&&(r[i]=e)}))}}checkBoundingBox(e,t){if(this.working&&t){var{events:n,eventElements:r}=this;n.forEach(((n,i)=>{var{x:o,y:a}=n;!r[i]&&t.isPointInBox(o,a)&&(r[i]=e)}))}}mapXY(e,t){var{window:n,ctx:r}=this.screen,i=new ge(e,t),o=r.canvas;while(o)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:n,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:n,run(e){e.onMouseMove&&e.onMouseMove()}})}}var ye="undefined"!==typeof window?window:null,be="undefined"!==typeof fetch?fetch.bind(void 0):null;class _e{constructor(e){var{fetch:t=be,window:n=ye}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new me,this.mouse=new ve(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every((e=>e()));return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:r,width:i,desiredWidth:o,height:a,desiredHeight:s,minX:c=0,minY:u=0,refX:l,refY:d,clip:h=!1,clipX:f=0,clipY:p=0}=e,m=B(r).replace(/^defer\s/,""),[g,v]=m.split(" "),y=g||"xMidYMid",b=v||"meet",_=i/o,E=a/s,w=Math.min(_,E),T=Math.max(_,E),I=o,S=s;"meet"===b&&(I*=w,S*=w),"slice"===b&&(I*=T,S*=T);var C=new pe(t,"refX",l),A=new pe(t,"refY",d),O=C.hasValue()&&A.hasValue();if(O&&n.translate(-w*C.getPixels("x"),-w*A.getPixels("y")),h){var R=w*f,k=w*p;n.beginPath(),n.moveTo(R,k),n.lineTo(i,k),n.lineTo(i,a),n.lineTo(R,a),n.closePath(),n.clip()}if(!O){var x="meet"===b&&w===E,M="slice"===b&&T===E,N="meet"===b&&w===_,P="slice"===b&&T===_;y.startsWith("xMid")&&(x||M)&&n.translate(i/2-I/2,0),y.endsWith("YMid")&&(N||P)&&n.translate(0,a/2-S/2),y.startsWith("xMax")&&(x||M)&&n.translate(i-I,0),y.endsWith("YMax")&&(N||P)&&n.translate(0,a-S)}switch(!0){case"none"===y:n.scale(_,E);break;case"meet"===b:n.scale(w,w);break;case"slice"===b:n.scale(T,T);break}n.translate(-c,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:i=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:c,scaleHeight:u,offsetX:l,offsetY:d}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:h,mouse:f}=this,p=1e3/h;if(this.frameDuration=p,this.readyPromise=new Promise((e=>{this.resolveReady=e})),this.isReady()&&this.render(e,i,o,c,u,l,d),t){var m=Date.now(),g=m,v=0,y=()=>{m=Date.now(),v=m-g,v>=p&&(g=m-v%p,this.shouldUpdate(r,s)&&(this.render(e,i,o,c,u,l,d),f.runEvents())),this.intervalId=a(y)};n||f.start(),this.intervalId=a(y)}}stop(){this.intervalId&&(a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this,r=this.animations.reduce(((e,t)=>t.update(n)||e),!1);if(r)return!0}return!("function"!==typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(e,t,n,r,i,o,a){var{CLIENT_WIDTH:s,CLIENT_HEIGHT:c,viewPort:u,ctx:l,isFirstRender:d}=this,h=l.canvas;u.clear(),h.width&&h.height?u.setCurrent(h.width,h.height):u.setCurrent(s,c);var f=e.getStyle("width"),p=e.getStyle("height");!t&&(d||"number"!==typeof r&&"number"!==typeof i)&&(f.hasValue()&&(h.width=f.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),p.hasValue()&&(h.height=p.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var m=h.clientWidth||h.width,g=h.clientHeight||h.height;if(t&&f.hasValue()&&p.hasValue()&&(m=f.getPixels("x"),g=p.getPixels("y")),u.setCurrent(m,g),"number"===typeof o&&e.getAttribute("x",!0).setValue(o),"number"===typeof a&&e.getAttribute("y",!0).setValue(a),"number"===typeof r||"number"===typeof i){var v=V(e.getAttribute("viewBox").getString()),y=0,b=0;if("number"===typeof r){var _=e.getStyle("width");_.hasValue()?y=_.getPixels("x")/r:isNaN(v[2])||(y=v[2]/r)}if("number"===typeof i){var E=e.getStyle("height");E.hasValue()?b=E.getPixels("y")/i:isNaN(v[3])||(b=v[3]/i)}y||(y=b),b||(b=y),e.getAttribute("width",!0).setValue(r),e.getAttribute("height",!0).setValue(i);var w=e.getStyle("transform",!0,!0);w.setValue("".concat(w.getString()," scale(").concat(1/y,", ").concat(1/b,")"))}n||l.clearRect(0,0,m,g),e.render(l),d&&(this.isFirstRender=!1)}}_e.defaultWindow=ye,_e.defaultFetch=be;var{defaultFetch:Ee}=_e,we="undefined"!==typeof DOMParser?DOMParser:null;class Te{constructor(){var{fetch:e=Ee,DOMParser:t=we}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return i((function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)}))()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(n){return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return i((function*(){var n=yield t.fetch(e),r=yield n.text();return t.parseFromString(r)}))()}}class Ie{constructor(e,t){this.type="translate",this.point=null,this.point=ge.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class Se{constructor(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=V(t);this.angle=new pe(e,"angle",r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:n,originX:r,originY:i,angle:o}=this,a=t+r.getPixels("x"),s=n+i.getPixels("y");e.translate(a,s),e.rotate(o.getRadians()),e.translate(-a,-s)}unapply(e){var{cx:t,cy:n,originX:r,originY:i,angle:o}=this,a=t+r.getPixels("x"),s=n+i.getPixels("y");e.translate(a,s),e.rotate(-1*o.getRadians()),e.translate(-a,-s)}applyToPoint(e){var{cx:t,cy:n,angle:r}=this,i=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class Ce{constructor(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=ge.parseScale(t);0!==r.x&&0!==r.y||(r.x=re,r.y=re),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),a=i.getPixels("y");e.translate(o,a),e.scale(t,n||t),e.translate(-o,-a)}unapply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,o=r.getPixels("x"),a=i.getPixels("y");e.translate(o,a),e.scale(1/t,1/n||t),e.translate(-o,-a)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class Ae{constructor(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=V(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:r}=this,i=t.getPixels("x"),o=n.getPixels("y");e.translate(i,o),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-i,-o)}unapply(e){var{originX:t,originY:n,matrix:r}=this,i=r[0],o=r[2],a=r[4],s=r[1],c=r[3],u=r[5],l=0,d=0,h=1,f=1/(i*(c*h-u*d)-o*(s*h-u*l)+a*(s*d-c*l)),p=t.getPixels("x"),m=n.getPixels("y");e.translate(p,m),e.transform(f*(c*h-u*d),f*(u*l-s*h),f*(a*d-o*h),f*(i*h-a*l),f*(o*u-a*c),f*(a*s-i*u)),e.translate(-p,-m)}applyToPoint(e){e.applyTransform(this.matrix)}}class Oe extends Ae{constructor(e,t,n){super(e,t,n),this.type="skew",this.angle=null,this.angle=new pe(e,"angle",t)}}class Re extends Oe{constructor(e,t,n){super(e,t,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class ke extends Oe{constructor(e,t,n){super(e,t,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function xe(e){return B(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Me(e){var[t,n]=e.split("(");return[t.trim(),n.trim().replace(")","")]}class Ne{constructor(e,t,n){this.document=e,this.transforms=[];var r=xe(t);r.forEach((e=>{if("none"!==e){var[t,r]=Me(e),i=Ne.transformTypes[t];"undefined"!==typeof i&&this.transforms.push(new i(this.document,r,n))}}))}static fromElement(e,t){var n=t.getStyle("transform",!1,!0),[r,i=r]=t.getStyle("transform-origin",!1,!0).split(),o=[r,i];return n.hasValue()?new Ne(e,n.getString(),o):null}apply(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length,r=n-1;r>=0;r--)t[r].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].applyToPoint(e)}}Ne.transformTypes={translate:Ie,rotate:Se,scale:Ce,matrix:Ae,skewX:Re,skewY:ke};class Pe{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){if(Array.from(t.attributes).forEach((t=>{var n=z(t.nodeName);this.attributes[n]=new pe(e,n,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var r=this.getAttribute("style").getString().split(";").map((e=>e.trim()));r.forEach((t=>{if(t){var[n,r]=t.split(":").map((e=>e.trim()));this.styles[n]=new pe(e,n,r)}}))}var{definitions:i}=e,o=this.getAttribute("id");o.hasValue()&&(i[o.getString()]||(i[o.getString()]=this)),Array.from(t.childNodes).forEach((t=>{if(1===t.nodeType)this.addChild(t);else if(n&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}}))}}getAttribute(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[e];if(!n&&t){var r=new pe(this.document,e,"");return this.attributes[e]=r,r}return n||pe.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return pe.empty(this.document)}getStyle(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[e];if(r)return r;var i=this.getAttribute(e);if(null!==i&&void 0!==i&&i.hasValue())return this.styles[e]=i,i;if(!n){var{parent:o}=this;if(o){var a=o.getStyle(e);if(null!==a&&void 0!==a&&a.hasValue())return a}}if(t){var s=new pe(this.document,e,"");return this.styles[e]=s,s}return r||pe.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=Ne.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach((t=>{t.render(e)}))}addChild(e){var t=e instanceof Pe?e:this.document.createElement(e);t.parent=this,Pe.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:n}=this;if("function"===typeof n.matches)return n.matches(e);var r=null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"class");return!(!r||""===r)&&r.split(" ").some((t=>".".concat(t)===e))}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var r=e[n],i=t[n];if(r)for(var o in r){var a=this.stylesSpecificity[o];"undefined"===typeof a&&(a="000"),i>=a&&(this.styles[o]=r[o],this.stylesSpecificity[o]=i)}}}removeStyles(e,t){var n=t.reduce(((t,n)=>{var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(""),[...t,[n,i]]}),[]);return n}restoreStyles(e,t){t.forEach((t=>{var[n,r]=t;e.getStyle(n,!0).setValue(r)}))}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}Pe.ignoreChildTypes=["title"];class De extends Pe{constructor(e,t,n){super(e,t,n)}}function Le(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Ue(e){return"undefined"===typeof process?e:e.trim().split(",").map(Le).join(",")}function Fe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function qe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class Be{constructor(e,t,n,r,i,o){var a=o?"string"===typeof o?Be.parse(o):o:{};this.fontFamily=i||a.fontFamily,this.fontSize=r||a.fontSize,this.fontStyle=e||a.fontStyle,this.fontWeight=n||a.fontWeight,this.fontVariant=t||a.fontVariant}static parse(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n="",r="",i="",o="",a="",s=B(e).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach((e=>{switch(!0){case!c.fontStyle&&Be.styles.includes(e):"inherit"!==e&&(n=e),c.fontStyle=!0;break;case!c.fontVariant&&Be.variants.includes(e):"inherit"!==e&&(r=e),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&Be.weights.includes(e):"inherit"!==e&&(i=e),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:"inherit"!==e&&([o]=e.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==e&&(a+=e)}})),new Be(n,r,i,o,a,t)}toString(){return[Fe(this.fontStyle),this.fontVariant,qe(this.fontWeight),this.fontSize,Ue(this.fontFamily)].join(" ").trim()}}Be.styles="normal|italic|oblique|inherit",Be.variants="normal|small-caps|inherit",Be.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class He{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.addPoint(e,t),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){"undefined"!==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"undefined"!==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:r,y2:i}=e;this.addPoint(t,n),this.addPoint(r,i)}}sumCubic(e,t,n,r,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*r+Math.pow(e,3)*i}bezierCurveAdd(e,t,n,r,i){var o=6*t-12*n+6*r,a=-3*t+9*n-9*r+3*i,s=3*n-3*t;if(0!==a){var c=Math.pow(o,2)-4*s*a;if(!(c<0)){var u=(-o+Math.sqrt(c))/(2*a);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,i)):this.addY(this.sumCubic(u,t,n,r,i)));var l=(-o-Math.sqrt(c))/(2*a);0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,n,r,i)):this.addY(this.sumCubic(l,t,n,r,i)))}}else{if(0===o)return;var d=-s/o;0<d&&d<1&&(e?this.addX(this.sumCubic(d,t,n,r,i)):this.addY(this.sumCubic(d,t,n,r,i)))}}addBezierCurve(e,t,n,r,i,o,a,s){this.addPoint(e,t),this.addPoint(a,s),this.bezierCurveAdd(!0,e,n,i,a),this.bezierCurveAdd(!1,t,r,o,s)}addQuadraticCurve(e,t,n,r,i,o){var a=e+2/3*(n-e),s=t+2/3*(r-t),c=a+1/3*(i-e),u=s+1/3*(o-t);this.addBezierCurve(e,t,a,c,s,u,i,o)}isPointInBox(e,t){var{x1:n,y1:r,x2:i,y2:o}=this;return n<=e&&e<=i&&r<=t&&t<=o}}class je extends A{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new ge(0,0),this.control=new ge(0,0),this.current=new ge(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=new ge(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==A.CURVE_TO&&e!==A.SMOOTH_CURVE_TO&&e!==A.QUAD_TO&&e!==A.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:r,y:i}}=this,o=new ge(2*t-r,2*n-i);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:r,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n])for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}return e}}class Ve extends Pe{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){var e=1,t=this;while(t){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this.getStyle("fill"),r=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var a=n.getFillStyleDefinition(this,r);a&&(e.fillStyle=a)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var s=n.getColor();"inherit"!==s&&(e.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(r.hasValue()){var c=new pe(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=c}if(i.isUrlDefinition()){var u=i.getFillStyleDefinition(this,o);u&&(e.strokeStyle=u)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(e.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(o.hasValue()){var d=new pe(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=d}var h=this.getStyle("stroke-width");if(h.hasValue()){var f=h.getPixels();e.lineWidth=f||re}var p=this.getStyle("stroke-linecap"),m=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),v=this.getStyle("stroke-dasharray"),y=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),m.hasValue()&&(e.lineJoin=m.getString()),g.hasValue()&&(e.miterLimit=g.getNumber()),v.hasValue()&&"none"!==v.getString()){var b=V(v.getString());"undefined"!==typeof e.setLineDash?e.setLineDash(b):"undefined"!==typeof e.webkitLineDash?e.webkitLineDash=b:"undefined"===typeof e.mozDash||1===b.length&&0===b[0]||(e.mozDash=b);var _=y.getPixels();"undefined"!==typeof e.lineDashOffset?e.lineDashOffset=_:"undefined"!==typeof e.webkitLineDashOffset?e.webkitLineDashOffset=_:"undefined"!==typeof e.mozDashOffset&&(e.mozDashOffset=_)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof e.font){var E=this.getStyle("font"),w=this.getStyle("font-style"),T=this.getStyle("font-variant"),I=this.getStyle("font-weight"),S=this.getStyle("font-size"),C=this.getStyle("font-family"),A=new Be(w.getString(),T.getString(),I.getString(),S.hasValue()?"".concat(S.getPixels(!0),"px"):"",C.getString(),Be.parse(E.getString(),e.font));w.setValue(A.fontStyle),T.setValue(A.fontVariant),I.setValue(A.fontWeight),S.setValue(A.fontSize),C.setValue(A.fontFamily),e.font=A.toString(),S.isPixels()&&(this.document.emSize=S.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Ge extends Ve{constructor(e,t,n){super(e,t,n),this.type="path",this.pathParser=null,this.pathParser=new je(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,n=new He;t.reset(),e&&e.beginPath();while(!t.isEnd())switch(t.next().type){case je.MOVE_TO:this.pathM(e,n);break;case je.LINE_TO:this.pathL(e,n);break;case je.HORIZ_LINE_TO:this.pathH(e,n);break;case je.VERT_LINE_TO:this.pathV(e,n);break;case je.CURVE_TO:this.pathC(e,n);break;case je.SMOOTH_CURVE_TO:this.pathS(e,n);break;case je.QUAD_TO:this.pathQ(e,n);break;case je.SMOOTH_QUAD_TO:this.pathT(e,n);break;case je.ARC:this.pathA(e,n);break;case je.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles(),r=t.map(((e,t)=>[e,n[t]]));return r}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var s=i.getDefinition(),[c,u]=n[0];s.render(e,c,u)}if(o.isUrlDefinition())for(var l=o.getDefinition(),d=1;d<r;d++){var[h,f]=n[d];l.render(e,h,f)}if(a.isUrlDefinition()){var p=a.getDefinition(),[m,g]=n[r];p.render(e,m,g)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:r}=Ge.pathM(n),{x:i,y:o}=r;n.addMarker(r),t.addPoint(i,o),e&&e.moveTo(i,o)}static pathL(e){var{current:t}=e,n=e.getAsCurrentPoint();return{current:t,point:n}}pathL(e,t){var{pathParser:n}=this,{current:r,point:i}=Ge.pathL(n),{x:o,y:a}=i;n.addMarker(i,r),t.addPoint(o,a),e&&e.lineTo(o,a)}static pathH(e){var{current:t,command:n}=e,r=new ge((n.relative?t.x:0)+n.x,t.y);return e.current=r,{current:t,point:r}}pathH(e,t){var{pathParser:n}=this,{current:r,point:i}=Ge.pathH(n),{x:o,y:a}=i;n.addMarker(i,r),t.addPoint(o,a),e&&e.lineTo(o,a)}static pathV(e){var{current:t,command:n}=e,r=new ge(t.x,(n.relative?t.y:0)+n.y);return e.current=r,{current:t,point:r}}pathV(e,t){var{pathParser:n}=this,{current:r,point:i}=Ge.pathV(n),{x:o,y:a}=i;n.addMarker(i,r),t.addPoint(o,a),e&&e.lineTo(o,a)}static pathC(e){var{current:t}=e,n=e.getPoint("x1","y1"),r=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:r,currentPoint:i}}pathC(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:o,currentPoint:a}=Ge.pathC(n);n.addMarker(a,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}static pathS(e){var{current:t}=e,n=e.getReflectedControlPoint(),r=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:r,currentPoint:i}}pathS(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:o,currentPoint:a}=Ge.pathS(n);n.addMarker(a,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}static pathQ(e){var{current:t}=e,n=e.getAsControlPoint("x1","y1"),r=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:r}}pathQ(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:o}=Ge.pathQ(n);n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();e.control=n;var r=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:r}}pathT(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:o}=Ge.pathT(n);n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathA(e){var{current:t,command:n}=e,{rX:r,rY:i,xRot:o,lArcFlag:a,sweepFlag:s}=n,c=o*(Math.PI/180),u=e.getAsCurrentPoint(),l=new ge(Math.cos(c)*(t.x-u.x)/2+Math.sin(c)*(t.y-u.y)/2,-Math.sin(c)*(t.x-u.x)/2+Math.cos(c)*(t.y-u.y)/2),d=Math.pow(l.x,2)/Math.pow(r,2)+Math.pow(l.y,2)/Math.pow(i,2);d>1&&(r*=Math.sqrt(d),i*=Math.sqrt(d));var h=(a===s?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(i,2)-Math.pow(r,2)*Math.pow(l.y,2)-Math.pow(i,2)*Math.pow(l.x,2))/(Math.pow(r,2)*Math.pow(l.y,2)+Math.pow(i,2)*Math.pow(l.x,2)));isNaN(h)&&(h=0);var f=new ge(h*r*l.y/i,h*-i*l.x/r),p=new ge((t.x+u.x)/2+Math.cos(c)*f.x-Math.sin(c)*f.y,(t.y+u.y)/2+Math.sin(c)*f.x+Math.cos(c)*f.y),m=ae([1,0],[(l.x-f.x)/r,(l.y-f.y)/i]),g=[(l.x-f.x)/r,(l.y-f.y)/i],v=[(-l.x-f.x)/r,(-l.y-f.y)/i],y=ae(g,v);return oe(g,v)<=-1&&(y=Math.PI),oe(g,v)>=1&&(y=0),{currentPoint:u,rX:r,rY:i,sweepFlag:s,xAxisRotation:c,centp:p,a1:m,ad:y}}pathA(e,t){var{pathParser:n}=this,{currentPoint:r,rX:i,rY:o,sweepFlag:a,xAxisRotation:s,centp:c,a1:u,ad:l}=Ge.pathA(n),d=1-a?1:-1,h=u+d*(l/2),f=new ge(c.x+i*Math.cos(h),c.y+o*Math.sin(h));if(n.addMarkerAngle(f,h-d*Math.PI/2),n.addMarkerAngle(r,h-d*Math.PI),t.addPoint(r.x,r.y),e&&!isNaN(u)&&!isNaN(l)){var p=i>o?i:o,m=i>o?1:i/o,g=i>o?o/i:1;e.translate(c.x,c.y),e.rotate(s),e.scale(m,g),e.arc(0,0,p,u,u+l,Boolean(1-a)),e.scale(1/m,1/g),e.rotate(-s),e.translate(-c.x,-c.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){Ge.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class ze extends Ge{constructor(e,t,n){super(e,t,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class $e extends Ve{constructor(e,t,n){super(e,t,new.target===$e||n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(e,t);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach(((n,r)=>{var i=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(i):t=i})),t}getFontSize(){var{document:e,parent:t}=this,n=Be.parse(e.ctx.font).fontSize,r=t.getStyle("font-size").getNumber(n);return r}getTElementBoundingBox(e){var t=this.getFontSize();return new He(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var r=t[n],i=null;if(e.isArabic){var o=t.length,a=t[n-1],s=t[n+1],c="isolated";if((0===n||" "===a)&&n<o-1&&" "!==s&&(c="terminal"),n>0&&" "!==a&&n<o-1&&" "!==s&&(c="medial"),n>0&&" "!==a&&(n===o-1||" "===s)&&(c="initial"),"undefined"!==typeof e.glyphs[r]){var u=e.glyphs[r];i=u instanceof ze?u:u[c]}}else i=e.glyphs[r];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,o=B(t.textContent||"");return 0===r&&(o=H(o)),r===i&&(o=j(o)),o}renderChildren(e){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach(((t,n)=>{this.renderChild(e,this,this,n)}));var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}renderTElementChildren(e){var{document:t,parent:n}=this,r=this.getText(),i=n.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}=i.fontFace,a=Be.parse(t.ctx.font),s=n.getStyle("font-size").getNumber(a.fontSize),c=n.getStyle("font-style").getString(a.fontStyle),u=s/o,l=i.isRTL?r.split("").reverse().join(""):r,d=V(n.getAttribute("dx").getString()),h=l.length,f=0;f<h;f++){var p=this.getGlyph(i,l,f);e.translate(this.x,this.y),e.scale(u,-u);var m=e.lineWidth;e.lineWidth=e.lineWidth*o/s,"italic"===c&&e.transform(1,0,.4,1,0,0),p.render(e),"italic"===c&&e.transform(1,0,-.4,1,0,0),e.lineWidth=m,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=s*(p.horizAdvX||i.horizAdvX)/o,"undefined"===typeof d[f]||isNaN(d[f])||(this.x+=d[f])}else{var{x:g,y:v}=this;e.fillStyle&&e.fillText(r,g,v),e.strokeStyle&&e.strokeText(r,g,v)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),n=!1,r=0;r="start"===t&&!n||"end"===t&&n?e.x-this.minX:"end"===t&&!n||"start"===t&&n?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=r;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach(((t,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,r){var i=n.children[r];i.children.length>0?i.children.forEach(((n,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,r)})):this.adjustChildCoordinates(e,t,n,r)}adjustChildCoordinates(e,t,n,r){var i=n.children[r];if("function"!==typeof i.measureText)return i;e.save(),i.setContext(e,!0);var o=i.getAttribute("x"),a=i.getAttribute("y"),s=i.getAttribute("dx"),c=i.getAttribute("dy"),u=i.getStyle("font-family").getDefinition(),l=Boolean(u)&&u.isRTL;0===r&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),a.hasValue()||a.setValue(i.getInheritedAttribute("y")),s.hasValue()||s.setValue(i.getInheritedAttribute("dx")),c.hasValue()||c.setValue(i.getInheritedAttribute("dy")));var d=i.measureText(e);return l&&(t.x-=d),o.hasValue()?(t.applyAnchoring(),i.x=o.getPixels("x"),s.hasValue()&&(i.x+=s.getPixels("x"))):(s.hasValue()&&(t.x+=s.getPixels("x")),i.x=t.x),t.x=i.x,l||(t.x+=d),a.hasValue()?(i.y=a.getPixels("y"),c.hasValue()&&(i.y+=c.getPixels("y"))):(c.hasValue()&&(t.y+=c.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+d),t.maxX=Math.max(t.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,n,r){var i=n.children[r];if("function"!==typeof i.getBoundingBox)return null;var o=i.getBoundingBox(e);return o?(i.children.forEach(((n,r)=>{var a=t.getChildBoundingBox(e,t,i,r);o.addBoundingBox(a)})),o):null}renderChild(e,t,n,r){var i=n.children[r];i.render(e),i.children.forEach(((n,r)=>{t.renderChild(e,t,i,r)}))}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,r=n.getStyle("font-family").getDefinition();if(r){for(var i=this.getFontSize(),o=r.isRTL?t.split("").reverse().join(""):t,a=V(n.getAttribute("dx").getString()),s=o.length,c=0,u=0;u<s;u++){var l=this.getGlyph(r,o,u);c+=(l.horizAdvX||r.horizAdvX)*i/r.fontFace.unitsPerEm,"undefined"===typeof a[u]||isNaN(a[u])||(c+=a[u])}return c}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var{width:d}=e.measureText(t);return this.clearContext(e),e.restore(),d}getInheritedAttribute(e){var t=this;while(t instanceof $e&&t.isFirstChild()){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");t=t.parent}return null}}class Ye extends $e{constructor(e,t,n){super(e,t,new.target===Ye||n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Ke extends Ye{constructor(){super(...arguments),this.type="textNode"}}class We extends Ve{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:n}=this,{screen:r,window:i}=n,o=e.canvas;if(r.setDefaults(e),o.style&&"undefined"!==typeof e.font&&i&&"undefined"!==typeof i.getComputedStyle){e.font=i.getComputedStyle(o).getPropertyValue("font");var a=new pe(n,"fontSize",Be.parse(e.font).fontSize);a.hasValue()&&(n.rootEmSize=a.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:s,height:c}=r.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),l=this.getAttribute("refY"),d=this.getAttribute("viewBox"),h=d.hasValue()?V(d.getString()):null,f=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,m=0,g=0,v=0;h&&(p=h[0],m=h[1]),this.root||(s=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=p,v=m,p=0,m=0)),r.viewPort.setCurrent(s,c),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(s=h[2],c=h[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:s,height:r.viewPort.height,desiredHeight:c,minX:p,minY:m,refX:u.getValue(),refY:l.getValue(),clip:f,clipX:g,clipY:v}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(s,c))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),s=r.getNumber(0),c=i.getNumber(0);if(n)if("string"===typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(e),i.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(s||e," ").concat(c||t)),a.hasValue()){var l=this.getStyle("width"),d=this.getStyle("height");l.hasValue()&&l.setValue("".concat(e,"px")),d.hasValue()&&d.setValue("".concat(t,"px"))}}}class Xe extends Ge{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),s=o.getPixels("x"),c=a.getPixels("y");if(o.hasValue()&&!a.hasValue()&&(c=s),a.hasValue()&&!o.hasValue()&&(s=c),s=Math.min(s,r/2),c=Math.min(c,i/2),e){var u=(Math.sqrt(2)-1)/3*4;e.beginPath(),i>0&&r>0&&(e.moveTo(t+s,n),e.lineTo(t+r-s,n),e.bezierCurveTo(t+r-s+u*s,n,t+r,n+c-u*c,t+r,n+c),e.lineTo(t+r,n+i-c),e.bezierCurveTo(t+r,n+i-c+u*c,t+r-s+u*s,n+i,t+r-s,n+i),e.lineTo(t+s,n+i),e.bezierCurveTo(t+s-u*s,n+i,t,n+i-c+u*c,t,n+i-c),e.lineTo(t,n+c),e.bezierCurveTo(t,n+c-u*c,t+s-u*s,n,t+s,n),e.closePath())}return new He(t,n,t+r,n+i)}getMarkers(){return null}}class Qe extends Ge{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,2*Math.PI,!1),e.closePath()),new He(t-r,n-r,t+r,n+r)}getMarkers(){return null}}class Ze extends Ge{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,o),e.bezierCurveTo(i+n,o+t*r,i+t*n,o+r,i,o+r),e.bezierCurveTo(i-t*n,o+r,i-n,o+t*r,i-n,o),e.bezierCurveTo(i-n,o-t*r,i-t*n,o-r,i,o-r),e.bezierCurveTo(i+t*n,o-r,i+n,o-t*r,i+n,o),e.closePath()),new He(i-n,o-r,i+n,o+r)}getMarkers(){return null}}class Je extends Ge{constructor(){super(...arguments),this.type="line"}getPoints(){return[new ge(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new ge(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:n},{x:r,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(r,i)),new He(t,n,r,i)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class et extends Ge{constructor(e,t,n){super(e,t,n),this.type="polyline",this.points=[],this.points=ge.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:n,y:r}]=t,i=new He(n,r);return e&&(e.beginPath(),e.moveTo(n,r)),t.forEach((t=>{var{x:n,y:r}=t;i.addPoint(n,r),e&&e.lineTo(n,r)})),i}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach(((r,i)=>{i!==t&&n.push([r,r.angleTo(e[i+1])])})),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class tt extends et{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:n,y:r}]=this.points;return e&&(e.lineTo(n,r),e.closePath()),t}}class nt extends Pe{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,n){var r=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new We(this.document,null);o.attributes.viewBox=new pe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new pe(this.document,"width","".concat(r,"px")),o.attributes.height=new pe(this.document,"height","".concat(i,"px")),o.attributes.transform=new pe(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(r,i),s=a.getContext("2d"),c=this.getAttribute("x"),u=this.getAttribute("y");c.hasValue()&&u.hasValue()&&s.translate(c.getPixels("x",!0),u.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var d=-1;d<=1;d++)s.save(),o.attributes.x=new pe(this.document,"x",l*a.width),o.attributes.y=new pe(this.document,"y",d*a.height),o.render(s),s.restore();var h=e.createPattern(a,"repeat");return h}}class rt extends Pe{constructor(){super(...arguments),this.type="marker"}render(e,t,n){if(t){var{x:r,y:i}=t,o=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(r,i),"auto"===o&&e.rotate(n),"strokeWidth"===a&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new We(this.document,null);s.type=this.type,s.attributes.viewBox=new pe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new pe(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new pe(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new pe(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new pe(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new pe(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new pe(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new pe(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(e),e.restore(),"strokeWidth"===a&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===o&&e.rotate(-n),e.translate(-r,-i)}}}class it extends Pe{constructor(){super(...arguments),this.type="defs"}render(){}}class ot extends Ve{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new He;return this.children.forEach((n=>{t.addBoundingBox(n.getBoundingBox(e))})),t}}class at extends Pe{constructor(e,t,n){super(e,t,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:i}=this;i.forEach((e=>{"stop"===e.type&&r.push(e)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:i}=r,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach((e=>{o.addColorStop(e.offset,this.addParentOpacity(n,e.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:s,viewPort:c}=a.screen,[u]=c.viewPorts,l=new Xe(a,null);l.attributes.x=new pe(a,"x",-s/3),l.attributes.y=new pe(a,"y",-s/3),l.attributes.width=new pe(a,"width",s),l.attributes.height=new pe(a,"height",s);var d=new ot(a,null);d.attributes.transform=new pe(a,"transform",this.getAttribute("gradientTransform").getValue()),d.children=[l];var h=new We(a,null);h.attributes.x=new pe(a,"x",0),h.attributes.y=new pe(a,"y",0),h.attributes.width=new pe(a,"width",u.width),h.attributes.height=new pe(a,"height",u.height),h.children=[d];var f=a.createCanvas(u.width,u.height),p=f.getContext("2d");return p.fillStyle=o,h.render(p),p.createPattern(f,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach((t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())}))}addParentOpacity(e,t){if(e.hasValue()){var n=new pe(this.document,"color",t);return n.addOpacity(e).getColor()}return t}}class st extends at{constructor(e,t,n){super(e,t,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=n?t.getBoundingBox(e):null;if(n&&!r)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=n?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=n?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=n?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=n?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&o===s?null:e.createLinearGradient(i,o,a,s)}}class ct extends at{constructor(e,t,n){super(e,t,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=n?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,s=o;this.getAttribute("fx").hasValue()&&(a=n?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=n?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var c=n?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(a,s,u,i,o,c)}}class ut extends Pe{constructor(e,t,n){super(e,t,n),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=r,this.color=o.getColor()}}class lt extends Pe{constructor(e,t,n){super(e,t,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new pe(e,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:r}=this.getProgress(),i=n.getNumber()+(r.getNumber()-n.getNumber())*t;return"%"===e&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var o=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var s=a.getString();o="".concat(s,"(").concat(o,")")}n.setValue(o),i=!0}return i}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=n.progress*(t.getValue().length-1),i=Math.floor(r),o=Math.ceil(r);n.from=new pe(e,"from",parseFloat(t.getValue()[i])),n.to=new pe(e,"to",parseFloat(t.getValue()[o])),n.progress=(r-i)/(o-i)}else n.from=this.from,n.to=this.to;return n}}class dt extends lt{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=new s(t.getColor()),i=new s(n.getColor());if(r.ok&&i.ok){var o=r.r+(i.r-r.r)*e,a=r.g+(i.g-r.g)*e,c=r.b+(i.b-r.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(a),", ").concat(Math.floor(c),")")}return this.getAttribute("from").getColor()}}class ht extends lt{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=V(t.getString()),i=V(n.getString()),o=r.map(((t,n)=>{var r=i[n];return t+(r-t)*e})).join(" ");return o}}class ft extends Pe{constructor(e,t,n){super(e,t,n),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=e,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var a=o.getStyle("font-family");a.hasValue()&&(r[a.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var s=o;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,"undefined"===typeof this.glyphs[s.unicode]&&(this.glyphs[s.unicode]={}),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s;break}}render(){}}class pt extends Pe{constructor(e,t,n){super(e,t,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class mt extends Ge{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class gt extends $e{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class vt extends $e{constructor(e,t,n){super(e,t,n),this.type="a";var{childNodes:r}=t,i=r[0],o=r.length>0&&Array.from(r).every((e=>3===e.nodeType));this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:r}=this,{mouse:i}=t.screen,o=new pe(t,"fontSize",Be.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new He(n,r-o.getPixels("y"),n+this.measureText(e),r))}else if(this.children.length>0){var a=new ot(this.document,null);a.children=this.children,a.parent=this,a.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class _t extends $e{constructor(e,t,n){super(e,t,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach((t=>{var{type:n,points:r}=t;switch(n){case je.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case je.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case je.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case je.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case je.ARC:var[i,o,a,s,c,u,l,d]=r,h=a>s?a:s,f=a>s?1:a/s,p=a>s?s/a:1;e&&(e.translate(i,o),e.rotate(l),e.scale(f,p),e.arc(0,0,h,c,c+u,Boolean(1-d)),e.scale(1/f,1/p),e.rotate(-l),e.translate(-i,-o));break;case je.CLOSE_PATH:e&&e.closePath();break}}))}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:r}=this,i=e.fillStyle;"underline"===t&&e.beginPath(),r.forEach(((r,i)=>{var{p0:o,p1:a,rotation:s,text:c}=r;e.save(),e.translate(o.x,o.y),e.rotate(s),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),"underline"===t&&(0===i&&e.moveTo(o.x,o.y+n/8),e.lineTo(a.x,a.y+n/5))})),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,r,i,o,a,s,c){var u=o,l=this.measureText(e,s);" "===s&&"justify"===t&&n<r&&(l+=(r-n)/i),c>-1&&(u+=this.getLetterSpacingAt(c));var d=this.textHeight/20,h=this.getEquidistantPointOnPath(u,d,0),f=this.getEquidistantPointOnPath(u+l,d,0),p={p0:h,p1:f},m=h&&f?Math.atan2(f.y-h.y,f.x-h.x):0;if(a){var g=Math.cos(Math.PI/2+m)*a,v=Math.cos(-m)*a;p.p0=bt(bt({},h),{},{x:h.x+g,y:h.y+v}),p.p1=bt(bt({},f),{},{x:f.x+g,y:f.y+v})}return u+=l,{offset:u,segment:p,rotation:m}}measureText(e,t){var{measuresCache:n}=this,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(""),r=t.split(" ").length-1,i=this.parent.getAttribute("dx").split().map((e=>e.getPixels("x"))),o=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),u=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(u=s.getPixels()):u=c.getPixels();var l=[],d=t.length;this.letterSpacingCache=l;for(var h=0;h<d;h++)l.push("undefined"!==typeof i[h]?i[h]:u);var f=l.reduce(((e,t,n)=>0===n?0:e+t||0),0),p=this.measureText(e),m=Math.max(p+f,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*g,y=0;"middle"!==a&&"center"!==a||(y=-m/2),"end"!==a&&"right"!==a||(y=-m),y+=v,n.forEach(((t,i)=>{var{offset:s,segment:c,rotation:u}=this.findSegmentToFitChar(e,a,m,g,r,y,o,t,i);y=s,c.p0&&c.p1&&this.glyphInfo.push({text:n[i],p0:c.p0,p1:c.p1,rotation:u})}))}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;n.reset();while(!n.isEnd()){var{current:r}=n,i=r?r.x:0,o=r?r.y:0,a=n.next(),s=a.type,c=[];switch(a.type){case je.MOVE_TO:this.pathM(n,c);break;case je.LINE_TO:s=this.pathL(n,c);break;case je.HORIZ_LINE_TO:s=this.pathH(n,c);break;case je.VERT_LINE_TO:s=this.pathV(n,c);break;case je.CURVE_TO:this.pathC(n,c);break;case je.SMOOTH_CURVE_TO:s=this.pathS(n,c);break;case je.QUAD_TO:this.pathQ(n,c);break;case je.SMOOTH_QUAD_TO:s=this.pathT(n,c);break;case je.ARC:c=this.pathA(n);break;case je.CLOSE_PATH:Ge.pathZ(n);break}a.type!==je.CLOSE_PATH?t.push({type:s,points:c,start:{x:i,y:o},pathLength:this.calcLength(i,o,s,c)}):t.push({type:je.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:n,y:r}=Ge.pathM(e).point;t.push(n,r)}pathL(e,t){var{x:n,y:r}=Ge.pathL(e).point;return t.push(n,r),je.LINE_TO}pathH(e,t){var{x:n,y:r}=Ge.pathH(e).point;return t.push(n,r),je.LINE_TO}pathV(e,t){var{x:n,y:r}=Ge.pathV(e).point;return t.push(n,r),je.LINE_TO}pathC(e,t){var{point:n,controlPoint:r,currentPoint:i}=Ge.pathC(e);t.push(n.x,n.y,r.x,r.y,i.x,i.y)}pathS(e,t){var{point:n,controlPoint:r,currentPoint:i}=Ge.pathS(e);return t.push(n.x,n.y,r.x,r.y,i.x,i.y),je.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:r}=Ge.pathQ(e);t.push(n.x,n.y,r.x,r.y)}pathT(e,t){var{controlPoint:n,currentPoint:r}=Ge.pathT(e);return t.push(n.x,n.y,r.x,r.y),je.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:r,xAxisRotation:i,centp:o,a1:a,ad:s}=Ge.pathA(e);return 0===r&&s>0&&(s-=2*Math.PI),1===r&&s<0&&(s+=2*Math.PI),[o.x,o.y,t,n,a,s,i,r]}calcLength(e,t,n,r){var i=0,o=null,a=null,s=0;switch(n){case je.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case je.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)a=this.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case je.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)a=this.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case je.ARC:i=0;var c=r[4],u=r[5],l=r[4]+u,d=Math.PI/180;if(Math.abs(c-l)<d&&(d=Math.abs(c-l)),o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),u<0)for(s=c-d;s>l;s-=d)a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=c+d;s<l;s+=d)a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),i}return 0}getPointOnLine(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,s=(i-n)/(r-t+re),c=Math.sqrt(e*e/(1+s*s));r<t&&(c*=-1);var u=s*c,l=null;if(r===t)l={x:o,y:a+u};else if((a-n)/(o-t+re)===s)l={x:o+c,y:a+u};else{var d=0,h=0,f=this.getLineLength(t,n,r,i);if(f<re)return null;var p=(o-t)*(r-t)+(a-n)*(i-n);p/=f*f,d=t+p*(r-t),h=n+p*(i-n);var m=this.getLineLength(o,a,d,h),g=Math.sqrt(e*e-m*m);c=Math.sqrt(g*g/(1+s*s)),r<t&&(c*=-1),u=s*c,l={x:d+c,y:h+u}}return l}getPointOnPath(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||n+o.pathLength+5e-5<e)){var a=e-n,s=0;switch(o.type){case je.LINE_TO:r=this.getPointOnLine(a,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case je.ARC:var c=o.points[4],u=o.points[5],l=o.points[4]+u;if(s=c+a/o.pathLength*u,u<0&&s<l||u>=0&&s>l)break;r=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],s,o.points[6]);break;case je.CURVE_TO:s=a/o.pathLength,s>1&&(s=1),r=this.getPointOnCubicBezier(s,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case je.QUAD_TO:s=a/o.pathLength,s>1&&(s=1),r=this.getPointOnQuadraticBezier(s,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(r)return r;break}n+=o.pathLength}return null}getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((e,t)=>t.pathLength>0?e+t.pathLength:e),0)),this.pathLength}getPointOnCubicBezier(e,t,n,r,i,o,a,s,c){var u=s*se(e)+o*ce(e)+r*ue(e)+t*le(e),l=c*se(e)+a*ce(e)+i*ue(e)+n*le(e);return{x:u,y:l}}getPointOnQuadraticBezier(e,t,n,r,i,o,a){var s=o*de(e)+r*he(e)+t*fe(e),c=a*de(e)+i*he(e)+n*fe(e);return{x:s,y:c}}getPointOnEllipticalArc(e,t,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(c.x*a-c.y*s),y:t+(c.x*s+c.y*a)}}buildEquidistantCache(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var o=0,a=0;a<=n;a+=r){var s=this.getPointOnPath(a),c=this.getPointOnPath(a+r);s&&c&&(o+=this.getLineLength(s.x,s.y,c.x,c.y),o>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:a}),o-=i))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var Et=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class wt extends Ve{constructor(e,t,n){super(e,t,n),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var i=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),i?this.loadSvg(r):this.loadImage(r),this.isSvg=i}}loadImage(e){var t=this;return i((function*(){try{var n=yield t.document.createImage(e);t.image=n}catch(r){console.error('Error while loading image "'.concat(e,'":'),r)}t.loaded=!0}))()}loadSvg(e){var t=this;return i((function*(){var n=Et.exec(e);if(n){var r=n[5];"base64"===n[4]?t.image=atob(r):t.image=decodeURIComponent(r)}else try{var i=yield t.document.fetch(e),o=yield i.text();t.image=o}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}t.loaded=!0}))()}renderChildren(e){var{document:t,image:n,loaded:r}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(r&&n&&a&&s){if(e.save(),e.translate(i,o),this.isSvg){var c=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:s});c.document.documentElement.parent=this,c.render()}else{var u=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:u.width,height:s,desiredHeight:u.height}),this.loaded&&("undefined"===typeof u.complete||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new He(e,t,e+n,t+r)}}class Tt extends Ve{constructor(){super(...arguments),this.type="symbol"}render(e){}}class It{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return i((function*(){try{var{document:r}=n,i=yield r.canvg.parser.load(t),o=i.getElementsByTagName("font");Array.from(o).forEach((t=>{var n=r.createElement(t);r.definitions[e]=n}))}catch(a){console.error('Error while loading font "'.concat(t,'":'),a)}n.loaded=!0}))()}}class St extends Pe{constructor(e,t,n){super(e,t,n),this.type="style";var r=B(Array.from(t.childNodes).map((e=>e.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=r.split("}");i.forEach((t=>{var n=t.trim();if(n){var r=n.split("{"),i=r[0].split(","),o=r[1].split(";");i.forEach((t=>{var n=t.trim();if(n){var r=e.styles[n]||{};if(o.forEach((t=>{var n=t.indexOf(":"),i=t.substr(0,n).trim(),o=t.substr(n+1,t.length-n).trim();i&&o&&(r[i]=new pe(e,i,o))})),e.styles[n]=r,e.stylesSpecificity[n]=ne(n),"@font-face"===n){var i=r["font-family"].getString().replace(/"|'/g,""),a=r.src.getString().split(",");a.forEach((t=>{if(t.indexOf('format("svg")')>0){var n=$(t);n&&new It(e).load(i,n)}}))}}}))}}))}}St.parseExternalUrl=$;class Ct extends Ve{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),n=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var r=n;if("symbol"===n.type&&(r=new We(t,null),r.attributes.viewBox=new pe(t,"viewBox",n.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new pe(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new pe(t,"overflow",n.getAttribute("overflow").getString()),r.children=n.children,n.styles.opacity=new pe(t,"opacity",this.calculateOpacity())),"svg"===r.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(r.attributes.width=new pe(t,"width",i.getString())),o.hasValue()&&(r.attributes.height=new pe(t,"height",o.getString()))}var a=r.parent;r.parent=this,r.render(e),r.parent=a}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return Ne.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function At(e,t,n,r,i,o){return e[n*r*4+4*t+o]}function Ot(e,t,n,r,i,o,a){e[n*r*4+4*t+o]=a}function Rt(e,t,n){var r=e[t];return r*n}function kt(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}class xt extends Pe{constructor(e,t,n){super(e,t,n),this.type="feColorMatrix";var r=V(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=r[0];r=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=r[0]*Math.PI/180;r=[kt(o,.213,.787,-.213),kt(o,.715,-.715,-.715),kt(o,.072,-.072,.928),0,0,kt(o,.213,-.213,.143),kt(o,.715,.285,.14),kt(o,.072,-.072,-.283),0,0,kt(o,.213,-.213,-.787),kt(o,.715,-.715,.715),kt(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,n,r,i){for(var{includeOpacity:o,matrix:a}=this,s=e.getImageData(0,0,r,i),c=0;c<i;c++)for(var u=0;u<r;u++){var l=At(s.data,u,c,r,i,0),d=At(s.data,u,c,r,i,1),h=At(s.data,u,c,r,i,2),f=At(s.data,u,c,r,i,3),p=Rt(a,0,l)+Rt(a,1,d)+Rt(a,2,h)+Rt(a,3,f)+Rt(a,4,1),m=Rt(a,5,l)+Rt(a,6,d)+Rt(a,7,h)+Rt(a,8,f)+Rt(a,9,1),g=Rt(a,10,l)+Rt(a,11,d)+Rt(a,12,h)+Rt(a,13,f)+Rt(a,14,1),v=Rt(a,15,l)+Rt(a,16,d)+Rt(a,17,h)+Rt(a,18,f)+Rt(a,19,1);o&&(p=0,m=0,g=0,v*=f/255),Ot(s.data,u,c,r,i,0,p),Ot(s.data,u,c,r,i,1,m),Ot(s.data,u,c,r,i,2,g),Ot(s.data,u,c,r,i,3,v)}e.clearRect(0,0,r,i),e.putImageData(s,0,0)}}class Mt extends Pe{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:n}=this,r=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!o&&!a){var s=new He;this.children.forEach((t=>{s.addBoundingBox(t.getBoundingBox(e))})),r=Math.floor(s.x1),i=Math.floor(s.y1),o=Math.floor(s.width),a=Math.floor(s.height)}var c=this.removeStyles(t,Mt.ignoreStyles),u=n.createCanvas(r+o,i+a),l=u.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new xt(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,r+o,i+a);var d=n.createCanvas(r+o,i+a),h=d.getContext("2d");n.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=l.createPattern(u,"no-repeat"),h.fillRect(0,0,r+o,i+a),e.fillStyle=h.createPattern(d,"no-repeat"),e.fillRect(0,0,r+o,i+a),this.restoreStyles(t,c)}render(e){}}Mt.ignoreStyles=["mask","transform","clip-path"];var Nt=()=>{};class Pt extends Pe{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:r,closePath:i}=e;n&&(n.beginPath=Nt,n.closePath=Nt),Reflect.apply(r,e,[]),this.children.forEach((r=>{if("undefined"!==typeof r.path){var o="undefined"!==typeof r.elementTransform?r.elementTransform():null;o||(o=Ne.fromElement(t,r)),o&&o.apply(e),r.path(e),n&&(n.closePath=i),o&&o.unapply(e)}})),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}render(e){}}class Dt extends Pe{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:n,children:r}=this,i=t.getBoundingBox(e);if(i){var o=0,a=0;r.forEach((e=>{var t=e.extraFilterDistance||0;o=Math.max(o,t),a=Math.max(a,t)}));var s=Math.floor(i.width),c=Math.floor(i.height),u=s+2*o,l=c+2*a;if(!(u<1||l<1)){var d=Math.floor(i.x),h=Math.floor(i.y),f=this.removeStyles(t,Dt.ignoreStyles),p=n.createCanvas(u,l),m=p.getContext("2d");n.screen.setDefaults(m),m.translate(-d+o,-h+a),t.render(m),r.forEach((e=>{"function"===typeof e.apply&&e.apply(m,0,0,u,l)})),e.drawImage(p,0,0,u,l,d-o,h-a,u,l),this.restoreStyles(t,f)}}}render(e){}}Dt.ignoreStyles=["filter","transform","clip-path"];class Lt extends Pe{constructor(e,t,n){super(e,t,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,n,r,i){}}class Ut extends Pe{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,n,r,i){}}class Ft extends Pe{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,n,r,i){}}class qt extends Pe{constructor(e,t,n){super(e,t,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,r,i){var{document:o,blurRadius:a}=this,s=o.window?o.window.document.body:null,c=e.canvas;c.id=o.getUniqueId(),s&&(c.style.display="none",s.appendChild(c)),P(c,t,n,r,i,a),s&&s.removeChild(c)}}class Bt extends Pe{constructor(){super(...arguments),this.type="title"}}class Ht extends Pe{constructor(){super(...arguments),this.type="desc"}}var jt={svg:We,rect:Xe,circle:Qe,ellipse:Ze,line:Je,polyline:et,polygon:tt,path:Ge,pattern:nt,marker:rt,defs:it,linearGradient:st,radialGradient:ct,stop:ut,animate:lt,animateColor:dt,animateTransform:ht,font:ft,"font-face":pt,"missing-glyph":mt,glyph:ze,text:$e,tspan:Ye,tref:gt,a:vt,textPath:_t,image:wt,g:ot,symbol:Tt,style:St,use:Ct,mask:Mt,clipPath:Pt,filter:Dt,feDropShadow:Lt,feMorphology:Ut,feComposite:Ft,feColorMatrix:xt,feGaussianBlur:qt,title:Bt,desc:Ht};function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function $t(e){return Yt.apply(this,arguments)}function Yt(){return Yt=i((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("img");return t&&(n.crossOrigin="Anonymous"),new Promise(((t,r)=>{n.onload=()=>{t(n)},n.onerror=(e,t,n,i,o)=>{r(o)},n.src=e}))})),Yt.apply(this,arguments)}class Kt{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:r=Kt.createCanvas,createImage:i=Kt.createImage,anonymousCrossOrigin:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=r,this.createImage=this.bindCreateImage(i,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return"boolean"===typeof t?(n,r)=>e(n,"boolean"===typeof r?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((e=>e.loaded))}isFontsLoaded(){return this.fonts.every((e=>e.loaded))}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),n=Kt.elementTypes[t];return"undefined"!==typeof n?new n(this,e):new De(this,e)}createTextNode(e){return new Ke(this,e)}setViewBox(e){this.screen.setViewBox(Gt({document:this},e))}}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Kt.createCanvas=zt,Kt.createImage=$t,Kt.elementTypes=jt;class Qt{constructor(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Te(n),this.screen=new _e(e,n),this.options=n;var r=new Kt(this,n),i=r.createDocumentElement(t);this.document=r,this.documentElement=i}static from(e,t){var n=arguments;return i((function*(){var r=n.length>2&&void 0!==n[2]?n[2]:{},i=new Te(r),o=yield i.parse(t);return new Qt(e,o,r)}))()}static fromString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Te(n),i=r.parseFromString(t);return new Qt(e,i,n)}fork(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Qt.from(e,t,Xt(Xt({},this.options),n))}forkString(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Qt.fromString(e,t,Xt(Xt({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return i((function*(){var n=e.length>0&&void 0!==e[0]?e[0]:{};t.start(Xt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()}))()}start(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:n,options:r}=this;n.start(t,Xt(Xt({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,n)}}},30120:function(e,t,n){"use strict";n.d(t,{ou:function(){return ei},nL:function(){return Pn}});class r extends Error{}class i extends r{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class o extends r{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class a extends r{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class s extends r{}class c extends r{constructor(e){super(`Invalid unit ${e}`)}}class u extends r{}class l extends r{constructor(){super("Zone is an abstract class")}}const d="numeric",h="short",f="long",p={year:d,month:d,day:d},m={year:d,month:h,day:d},g={year:d,month:h,day:d,weekday:h},v={year:d,month:f,day:d},y={year:d,month:f,day:d,weekday:f},b={hour:d,minute:d},_={hour:d,minute:d,second:d},E={hour:d,minute:d,second:d,timeZoneName:h},w={hour:d,minute:d,second:d,timeZoneName:f},T={hour:d,minute:d,hourCycle:"h23"},I={hour:d,minute:d,second:d,hourCycle:"h23"},S={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:h},C={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:f},A={year:d,month:d,day:d,hour:d,minute:d},O={year:d,month:d,day:d,hour:d,minute:d,second:d},R={year:d,month:h,day:d,hour:d,minute:d},k={year:d,month:h,day:d,hour:d,minute:d,second:d},x={year:d,month:h,day:d,weekday:h,hour:d,minute:d},M={year:d,month:f,day:d,hour:d,minute:d,timeZoneName:h},N={year:d,month:f,day:d,hour:d,minute:d,second:d,timeZoneName:h},P={year:d,month:f,day:d,weekday:f,hour:d,minute:d,timeZoneName:f},D={year:d,month:f,day:d,weekday:f,hour:d,minute:d,second:d,timeZoneName:f};class L{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(e,t){throw new l}formatOffset(e,t){throw new l}offset(e){throw new l}equals(e){throw new l}get isValid(){throw new l}}let U=null;class F extends L{static get instance(){return null===U&&(U=new F),U}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n)}formatOffset(e,t){return Qe(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let q={};function B(e){return q[e]||(q[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),q[e]}const H={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function j(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,a,s,c,u,l]=r;return[a,i,o,s,c,u,l]}function V(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:e,value:t}=n[i],o=H[e];"era"===e?r[o]=t:Ie(o)||(r[o]=parseInt(t,10))}return r}let G={};class z extends L{static create(e){return G[e]||(G[e]=new z(e)),G[e]}static resetCache(){G={},q={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(t){return!1}}constructor(e){super(),this.zoneName=e,this.valid=z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n,this.name)}formatOffset(e,t){return Qe(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=B(this.name);let[r,i,o,a,s,c,u]=n.formatToParts?V(n,t):j(n,t);"BC"===a&&(r=1-Math.abs(r));const l=24===s?0:s,d=Ge({year:r,month:i,day:o,hour:l,minute:c,second:u,millisecond:0});let h=+t;const f=h%1e3;return h-=f>=0?f:1e3+f,(d-h)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let $={};function Y(e,t={}){const n=JSON.stringify([e,t]);let r=$[n];return r||(r=new Intl.ListFormat(e,t),$[n]=r),r}let K={};function W(e,t={}){const n=JSON.stringify([e,t]);let r=K[n];return r||(r=new Intl.DateTimeFormat(e,t),K[n]=r),r}let X={};function Q(e,t={}){const n=JSON.stringify([e,t]);let r=X[n];return r||(r=new Intl.NumberFormat(e,t),X[n]=r),r}let Z={};function J(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=Z[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Z[i]=o),o}let ee=null;function te(){return ee||(ee=(new Intl.DateTimeFormat).resolvedOptions().locale,ee)}function ne(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=W(e).resolvedOptions(),i=e}catch(r){const o=e.substring(0,n);t=W(o).resolvedOptions(),i=o}const{numberingSystem:o,calendar:a}=t;return[i,o,a]}}function re(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}function ie(e){const t=[];for(let n=1;n<=12;n++){const r=ei.utc(2009,n,1);t.push(e(r))}return t}function oe(e){const t=[];for(let n=1;n<=7;n++){const r=ei.utc(2016,11,13+n);t.push(e(r))}return t}function ae(e,t,n,r){const i=e.listingMode();return"error"===i?null:"en"===i?n(t):r(t)}function se(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}class ce{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:i,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=Q(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}{const t=this.floor?Math.floor(e):Be(e,3);return Le(t,this.padTo)}}}class ue{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&z.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=W(t,i)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class le{constructor(e,t,n){this.opts={style:"long",...n},!t&&Re()&&(this.rtf=J(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):gt(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class de{static fromOpts(e){return de.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){const i=e||Te.defaultLocale,o=i||(r?"en-US":te()),a=t||Te.defaultNumberingSystem,s=n||Te.defaultOutputCalendar;return new de(o,a,s,i)}static resetCache(){ee=null,K={},X={},Z={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return de.create(e,t,n)}constructor(e,t,n,r){const[i,o,a]=ne(e);this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.intl=re(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=se(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?de.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ae(this,e,nt,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=ie((e=>this.extract(e,n,"month")))),this.monthsCache[r][e]}))}weekdays(e,t=!1){return ae(this,e,at,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=oe((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(){return ae(this,void 0,(()=>st),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ei.utc(2016,11,13,9),ei.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return ae(this,e,dt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ei.utc(-40,1,1),ei.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t),i=r.formatToParts(),o=i.find((e=>e.type.toLowerCase()===n));return o?o.value:null}numberFormatter(e={}){return new ce(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new ue(e,this.intl,t)}relFormatter(e={}){return new le(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Y(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let he=null;class fe extends L{static get utcInstance(){return null===he&&(he=new fe(0)),he}static instance(e){return 0===e?fe.utcInstance:new fe(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new fe(Ke(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Qe(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Qe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Qe(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class pe extends L{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function me(e,t){if(Ie(e)||null===e)return t;if(e instanceof L)return e;if(Ae(e)){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?F.instance:"utc"===n||"gmt"===n?fe.utcInstance:fe.parseSpecifier(n)||z.create(e)}return Se(e)?fe.instance(e):"object"===typeof e&&"offset"in e&&"function"===typeof e.offset?e:new pe(e)}let ge,ve=()=>Date.now(),ye="system",be=null,_e=null,Ee=null,we=60;class Te{static get now(){return ve}static set now(e){ve=e}static set defaultZone(e){ye=e}static get defaultZone(){return me(ye,F.instance)}static get defaultLocale(){return be}static set defaultLocale(e){be=e}static get defaultNumberingSystem(){return _e}static set defaultNumberingSystem(e){_e=e}static get defaultOutputCalendar(){return Ee}static set defaultOutputCalendar(e){Ee=e}static get twoDigitCutoffYear(){return we}static set twoDigitCutoffYear(e){we=e%100}static get throwOnInvalid(){return ge}static set throwOnInvalid(e){ge=e}static resetCaches(){de.resetCache(),z.resetCache()}}function Ie(e){return"undefined"===typeof e}function Se(e){return"number"===typeof e}function Ce(e){return"number"===typeof e&&e%1===0}function Ae(e){return"string"===typeof e}function Oe(e){return"[object Date]"===Object.prototype.toString.call(e)}function Re(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ke(e){return Array.isArray(e)?e:[e]}function xe(e,t,n){if(0!==e.length)return e.reduce(((e,r)=>{const i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function Me(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}function Ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pe(e,t,n){return Ce(e)&&e>=t&&e<=n}function De(e,t){return e-t*Math.floor(e/t)}function Le(e,t=2){const n=e<0;let r;return r=n?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function Ue(e){return Ie(e)||null===e||""===e?void 0:parseInt(e,10)}function Fe(e){return Ie(e)||null===e||""===e?void 0:parseFloat(e)}function qe(e){if(!Ie(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Be(e,t,n=!1){const r=10**t,i=n?Math.trunc:Math.round;return i(e*r)/r}function He(e){return e%4===0&&(e%100!==0||e%400===0)}function je(e){return He(e)?366:365}function Ve(e,t){const n=De(t-1,12)+1,r=e+(t-n)/12;return 2===n?He(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ge(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function ze(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function $e(e){return e>99?e:e>Te.twoDigitCutoffYear?1900+e:2e3+e}function Ye(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function Ke(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return 60*n+i}function We(e){const t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function Xe(e,t){const n={};for(const r in e)if(Ne(e,r)){const i=e[r];if(void 0===i||null===i)continue;n[t(r)]=We(i)}return n}function Qe(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Le(n,2)}:${Le(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${Le(n,2)}${Le(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Ze(e){return Me(e,["hour","minute","second","millisecond"])}const Je=["January","February","March","April","May","June","July","August","September","October","November","December"],et=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tt=["J","F","M","A","M","J","J","A","S","O","N","D"];function nt(e){switch(e){case"narrow":return[...tt];case"short":return[...et];case"long":return[...Je];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const rt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],it=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ot=["M","T","W","T","F","S","S"];function at(e){switch(e){case"narrow":return[...ot];case"short":return[...it];case"long":return[...rt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const st=["AM","PM"],ct=["Before Christ","Anno Domini"],ut=["BC","AD"],lt=["B","A"];function dt(e){switch(e){case"narrow":return[...lt];case"short":return[...ut];case"long":return[...ct];default:return null}}function ht(e){return st[e.hour<12?0:1]}function ft(e,t){return at(t)[e.weekday-1]}function pt(e,t){return nt(t)[e.month-1]}function mt(e,t){return dt(t)[e.year<0?0:1]}function gt(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`;default:}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),c=1===s,u=i[e],l=r?c?u[1]:u[2]||u[1]:c?i[e][0]:e;return a?`${s} ${l} ago`:`in ${s} ${l}`}function vt(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const yt={D:p,DD:m,DDD:v,DDDD:y,t:b,tt:_,ttt:E,tttt:w,T:T,TT:I,TTT:S,TTTT:C,f:A,ff:R,fff:M,ffff:P,F:O,FF:k,FFF:N,FFFF:D};class bt{static create(e,t={}){return new bt(e,t)}static parseFormat(e){let t=null,n="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);"'"===a?(n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return yt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());const n=this.systemLoc.dtFormatter(e,{...this.opts,...t});return n.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const n=this.dtFormatter(e.start,t);return n.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Le(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>n?ht(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,r)=>n?pt(e,t):i(r?{month:t}:{month:t,day:"numeric"},"month"),c=(t,r)=>n?ft(e,t):i(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{const n=bt.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},l=t=>n?mt(e,t):i({era:t},"era"),d=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}};return vt(bt.parseFormat(t),d)}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t},i=bt.parseFormat(t),o=i.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]),a=e.shiftTo(...o.map(n).filter((e=>e)));return vt(i,r(a))}}class _t{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Et=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wt(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Tt(...e){return t=>e.reduce((([e,n,r],i)=>{const[o,a,s]=i(t,r);return[{...e,...o},a||n,s]}),[{},null,1]).slice(0,2)}function It(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function St(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=Ue(t[n+i]);return[r,null,n+i]}}const Ct=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,At=`(?:${Ct.source}?(?:\\[(${Et.source})\\])?)?`,Ot=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Rt=RegExp(`${Ot.source}${At}`),kt=RegExp(`(?:T${Rt.source})?`),xt=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Mt=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Nt=/(\d{4})-?(\d{3})/,Pt=St("weekYear","weekNumber","weekDay"),Dt=St("year","ordinal"),Lt=/(\d{4})-(\d\d)-(\d\d)/,Ut=RegExp(`${Ot.source} ?(?:${Ct.source}|(${Et.source}))?`),Ft=RegExp(`(?: ${Ut.source})?`);function qt(e,t,n){const r=e[t];return Ie(r)?n:Ue(r)}function Bt(e,t){const n={year:qt(e,t),month:qt(e,t+1,1),day:qt(e,t+2,1)};return[n,null,t+3]}function Ht(e,t){const n={hours:qt(e,t,0),minutes:qt(e,t+1,0),seconds:qt(e,t+2,0),milliseconds:qe(e[t+3])};return[n,null,t+4]}function jt(e,t){const n=!e[t]&&!e[t+1],r=Ke(e[t+1],e[t+2]),i=n?null:fe.instance(r);return[{},i,t+3]}function Vt(e,t){const n=e[t]?z.create(e[t]):null;return[{},n,t+1]}const Gt=RegExp(`^T?${Ot.source}$`),zt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function $t(e){const[t,n,r,i,o,a,s,c,u]=e,l="-"===t[0],d=c&&"-"===c[0],h=(e,t=!1)=>void 0!==e&&(t||e&&l)?-e:e;return[{years:h(Fe(n)),months:h(Fe(r)),weeks:h(Fe(i)),days:h(Fe(o)),hours:h(Fe(a)),minutes:h(Fe(s)),seconds:h(Fe(c),"-0"===c),milliseconds:h(qe(u),d)}]}const Yt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Kt(e,t,n,r,i,o,a){const s={year:2===t.length?$e(Ue(t)):Ue(t),month:et.indexOf(n)+1,day:Ue(r),hour:Ue(i),minute:Ue(o)};return a&&(s.second=Ue(a)),e&&(s.weekday=e.length>3?rt.indexOf(e)+1:it.indexOf(e)+1),s}const Wt=/^(?:(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\d)(\d\d)))$/;function Xt(e){const[,t,n,r,i,o,a,s,c,u,l,d]=e,h=Kt(t,i,r,n,o,a,s);let f;return f=c?Yt[c]:u?0:Ke(l,d),[h,new fe(f)]}function Qt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Zt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Jt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,en=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function tn(e){const[,t,n,r,i,o,a,s]=e,c=Kt(t,i,r,n,o,a,s);return[c,fe.utcInstance]}function nn(e){const[,t,n,r,i,o,a,s]=e,c=Kt(t,s,n,r,i,o,a);return[c,fe.utcInstance]}const rn=wt(xt,kt),on=wt(Mt,kt),an=wt(Nt,kt),sn=wt(Rt),cn=Tt(Bt,Ht,jt,Vt),un=Tt(Pt,Ht,jt,Vt),ln=Tt(Dt,Ht,jt,Vt),dn=Tt(Ht,jt,Vt);function hn(e){return It(e,[rn,cn],[on,un],[an,ln],[sn,dn])}function fn(e){return It(Qt(e),[Wt,Xt])}function pn(e){return It(e,[Zt,tn],[Jt,tn],[en,nn])}function mn(e){return It(e,[zt,$t])}const gn=Tt(Ht);function vn(e){return It(e,[Gt,gn])}const yn=wt(Lt,Ft),bn=wt(Ut),_n=Tt(Ht,jt,Vt);function En(e){return It(e,[yn,cn],[bn,_n])}const wn="Invalid Duration",Tn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},In={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Tn},Sn=365.2425,Cn=30.436875,An={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:24*Sn,minutes:24*Sn*60,seconds:24*Sn*60*60,milliseconds:24*Sn*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:24*Sn/4,minutes:24*Sn*60/4,seconds:24*Sn*60*60/4,milliseconds:24*Sn*60*60*1e3/4},months:{weeks:Cn/7,days:Cn,hours:24*Cn,minutes:24*Cn*60,seconds:24*Cn*60*60,milliseconds:24*Cn*60*60*1e3},...Tn},On=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Rn=On.slice(0).reverse();function kn(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Pn(r)}function xn(e,t){let n=t.milliseconds??0;for(const r of Rn.slice(1))t[r]&&(n+=t[r]*e[r]["milliseconds"]);return n}function Mn(e,t){const n=xn(e,t)<0?-1:1;On.reduceRight(((r,i)=>{if(Ie(t[i]))return r;if(r){const o=t[r]*n,a=e[i][r],s=Math.floor(o/a);t[i]+=s*n,t[r]-=s*a*n}return i}),null),On.reduce(((n,r)=>{if(Ie(t[r]))return n;if(n){const i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r}),null)}function Nn(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}class Pn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?An:In;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||de.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Pn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!==typeof e)throw new u("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Pn({values:Xe(e,Pn.normalizeUnit),loc:de.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Se(e))return Pn.fromMillis(e);if(Pn.isDuration(e))return e;if("object"===typeof e)return Pn.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=mn(e);return n?Pn.fromObject(n,t):Pn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=vn(e);return n?Pn.fromObject(n,t):Pn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");const n=e instanceof _t?e:new _t(e,t);if(Te.throwOnInvalid)throw new a(n);return new Pn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new c(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?bt.create(this.loc,n).formatDurationFromString(this,e):wn}toHuman(e={}){if(!this.isValid)return wn;const t=On.map((t=>{const n=this.values[t];return Ie(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Be(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};const n=ei.fromMillis(t,{zone:"UTC"});return n.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?xn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Pn.fromDurationLike(e),n={};for(const r of On)(Ne(t.values,r)||Ne(this.values,r))&&(n[r]=t.get(r)+this.get(r));return kn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Pn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=We(e(this.values[n],n));return kn(this,{values:t},!0)}get(e){return this[Pn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...Xe(e,Pn.normalizeUnit)};return kn(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){const i=this.loc.clone({locale:e,numberingSystem:t}),o={loc:i,matrix:r,conversionAccuracy:n};return kn(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Mn(this.matrix,e),kn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Nn(this.normalize().shiftToAll().toObject());return kn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Pn.normalizeUnit(e)));const t={},n={},r=this.toObject();let i;for(const o of On)if(e.indexOf(o)>=0){i=o;let e=0;for(const t in n)e+=this.matrix[t][o]*n[t],n[t]=0;Se(r[o])&&(e+=r[o]);const a=Math.trunc(e);t[o]=a,n[o]=(1e3*e-1e3*a)/1e3}else Se(r[o])&&(n[o]=r[o]);for(const o in n)0!==n[o]&&(t[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return Mn(this.matrix,t),kn(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return kn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of On)if(!t(this.values[n],e.values[n]))return!1;return!0}}const Dn="Invalid Interval";function Ln(e,t){return e&&e.isValid?t&&t.isValid?t<e?Un.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Un.invalid("missing or invalid end"):Un.invalid("missing or invalid start")}class Un{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");const n=e instanceof _t?e:new _t(e,t);if(Te.throwOnInvalid)throw new o(n);return new Un({invalid:n})}static fromDateTimes(e,t){const n=ti(e),r=ti(t),i=Ln(n,r);return null==i?new Un({start:n,end:r}):i}static after(e,t){const n=Pn.fromDurationLike(t),r=ti(e);return Un.fromDateTimes(r,r.plus(n))}static before(e,t){const n=Pn.fromDurationLike(t),r=ti(e);return Un.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,i,o,a;try{e=ei.fromISO(n,t),i=e.isValid}catch(r){i=!1}try{o=ei.fromISO(r,t),a=o.isValid}catch(r){a=!1}if(i&&a)return Un.fromDateTimes(e,o);if(i){const n=Pn.fromISO(r,t);if(n.isValid)return Un.after(e,n)}else if(a){const e=Pn.fromISO(n,t);if(e.isValid)return Un.before(o,e)}}return Un.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Un.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(ti).filter((e=>this.contains(e))).sort(),n=[];let{s:r}=this,i=0;while(r<this.e){const e=t[i]||this.e,o=+e>+this.e?this.e:e;n.push(Un.fromDateTimes(r,o)),r=o,i+=1}return n}splitBy(e){const t=Pn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,i=1;const o=[];while(r<this.e){const e=this.start.plus(t.mapUnits((e=>e*i)));n=+e>+this.e?this.e:e,o.push(Un.fromDateTimes(r,n)),r=n,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Un.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Un.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...i),a=o.sort(((e,t)=>e.time-t.time));for(const s of a)n+="s"===s.type?1:-1,1===n?t=s.time:(t&&+t!==+s.time&&r.push(Un.fromDateTimes(t,s.time)),t=null);return Un.merge(r)}difference(...e){return Un.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Dn}toLocaleString(e=p,t={}){return this.isValid?bt.create(this.s.loc.clone(t),e).formatInterval(this):Dn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Dn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Dn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Dn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Dn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Pn.invalid(this.invalidReason)}mapEndpoints(e){return Un.fromDateTimes(e(this.s),e(this.e))}}class Fn{static hasDST(e=Te.defaultZone){const t=ei.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return z.isValidZone(e)}static normalizeZone(e){return me(e,Te.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||de.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||de.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||de.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||de.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return de.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return de.create(t,null,"gregory").eras(e)}static features(){return{relative:Re()}}}function qn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Pn.fromMillis(r).as("days"))}function Bn(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=qn(e,t);return(n-n%7)/7}],["days",qn]],i={},o=e;let a,s;for(const[c,u]of r)n.indexOf(c)>=0&&(a=c,i[c]=u(e,t),s=o.plus(i),s>t?(i[c]--,e=o.plus(i),e>t&&(s=e,i[c]--,e=o.plus(i))):e=s);return[e,i,s,a]}function Hn(e,t,n,r){let[i,o,a,s]=Bn(e,t,n);const c=t-i,u=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===u.length&&(a<t&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+c/(a-i)));const l=Pn.fromObject(o,r);return u.length>0?Pn.fromMillis(c,r).shiftTo(...u).plus(l):l}const jn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Vn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Gn=jn.hanidec.replace(/[\[|\]]/g,"").split("");function zn(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(jn.hanidec))t+=Gn.indexOf(e[n]);else for(const e in Vn){const[n,i]=Vn[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}return t}function $n({numberingSystem:e},t=""){return new RegExp(`${jn[e||"latn"]}${t}`)}const Yn="missing Intl.DateTimeFormat.formatToParts support";function Kn(e,t=(e=>e)){return{regex:e,deser:([e])=>t(zn(e))}}const Wn=String.fromCharCode(160),Xn=`[ ${Wn}]`,Qn=new RegExp(Xn,"g");function Zn(e){return e.replace(/\./g,"\\.?").replace(Qn,Xn)}function Jn(e){return e.replace(/\./g,"").replace(Qn," ").toLowerCase()}function er(e,t){return null===e?null:{regex:RegExp(e.map(Zn).join("|")),deser:([n])=>e.findIndex((e=>Jn(n)===Jn(e)))+t}}function tr(e,t){return{regex:e,deser:([,e,t])=>Ke(e,t),groups:t}}function nr(e){return{regex:e,deser:([e])=>e}}function rr(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ir(e,t){const n=$n(t),r=$n(t,"{2}"),i=$n(t,"{3}"),o=$n(t,"{4}"),a=$n(t,"{6}"),s=$n(t,"{1,2}"),c=$n(t,"{1,3}"),u=$n(t,"{1,6}"),l=$n(t,"{1,9}"),d=$n(t,"{2,4}"),h=$n(t,"{4,6}"),f=e=>({regex:RegExp(rr(e.val)),deser:([e])=>e,literal:!0}),p=p=>{if(e.literal)return f(p);switch(p.val){case"G":return er(t.eras("short"),0);case"GG":return er(t.eras("long"),0);case"y":return Kn(u);case"yy":return Kn(d,$e);case"yyyy":return Kn(o);case"yyyyy":return Kn(h);case"yyyyyy":return Kn(a);case"M":return Kn(s);case"MM":return Kn(r);case"MMM":return er(t.months("short",!0),1);case"MMMM":return er(t.months("long",!0),1);case"L":return Kn(s);case"LL":return Kn(r);case"LLL":return er(t.months("short",!1),1);case"LLLL":return er(t.months("long",!1),1);case"d":return Kn(s);case"dd":return Kn(r);case"o":return Kn(c);case"ooo":return Kn(i);case"HH":return Kn(r);case"H":return Kn(s);case"hh":return Kn(r);case"h":return Kn(s);case"mm":return Kn(r);case"m":return Kn(s);case"q":return Kn(s);case"qq":return Kn(r);case"s":return Kn(s);case"ss":return Kn(r);case"S":return Kn(c);case"SSS":return Kn(i);case"u":return nr(l);case"uu":return nr(s);case"uuu":return Kn(n);case"a":return er(t.meridiems(),0);case"kkkk":return Kn(o);case"kk":return Kn(d,$e);case"W":return Kn(s);case"WW":return Kn(r);case"E":case"c":return Kn(n);case"EEE":return er(t.weekdays("short",!1),1);case"EEEE":return er(t.weekdays("long",!1),1);case"ccc":return er(t.weekdays("short",!0),1);case"cccc":return er(t.weekdays("long",!0),1);case"Z":case"ZZ":return tr(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return tr(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return nr(/[a-z_+-/]{1,256}?/i);case" ":return nr(/[^\S\n\r]/);default:return f(p)}},m=p(e)||{invalidReason:Yn};return m.token=e,m}const or={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ar(e,t,n){const{type:r,value:i}=e;if("literal"===r){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const o=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=or[a];if("object"===typeof s&&(s=s[o]),s)return{literal:!1,val:s}}function sr(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function cr(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const i in n)if(Ne(n,i)){const o=n[i],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}function ur(e){const t=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n,r=null;Ie(e.z)||(r=z.create(e.z)),Ie(e.Z)||(r||(r=new fe(e.Z)),n=e.Z),Ie(e.q)||(e.M=3*(e.q-1)+1),Ie(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Ie(e.u)||(e.S=qe(e.u));const i=Object.keys(e).reduce(((n,r)=>{const i=t(r);return i&&(n[i]=e[r]),n}),{});return[i,r,n]}let lr=null;function dr(){return lr||(lr=ei.fromMillis(1555555555555)),lr}function hr(e,t){if(e.literal)return e;const n=bt.macroTokenToFormatOpts(e.val),r=gr(n,t);return null==r||r.includes(void 0)?e:r}function fr(e,t){return Array.prototype.concat(...e.map((e=>hr(e,t))))}function pr(e,t,n){const r=fr(bt.parseFormat(n),e),i=r.map((t=>ir(t,e))),o=i.find((e=>e.invalidReason));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[e,n]=sr(i),o=RegExp(e,"i"),[a,c]=cr(t,o,n),[u,l,d]=c?ur(c):[null,null,void 0];if(Ne(c,"a")&&Ne(c,"H"))throw new s("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:o,rawMatches:a,matches:c,result:u,zone:l,specificOffset:d}}}function mr(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:a}=pr(e,t,n);return[r,i,o,a]}function gr(e,t){if(!e)return null;const n=bt.create(t,e),r=n.dtFormatter(dr()),i=r.formatToParts(),o=r.resolvedOptions();return i.map((t=>ar(t,e,o)))}const vr=[0,31,59,90,120,151,181,212,243,273,304,334],yr=[0,31,60,91,121,152,182,213,244,274,305,335];function br(e,t){return new _t("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function _r(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return 0===i?7:i}function Er(e,t,n){return n+(He(e)?yr:vr)[t-1]}function wr(e,t){const n=He(e)?yr:vr,r=n.findIndex((e=>e<t)),i=t-n[r];return{month:r+1,day:i}}function Tr(e){const{year:t,month:n,day:r}=e,i=Er(t,n,r),o=_r(t,n,r);let a,s=Math.floor((i-o+10)/7);return s<1?(a=t-1,s=ze(a)):s>ze(t)?(a=t+1,s=1):a=t,{weekYear:a,weekNumber:s,weekday:o,...Ze(e)}}function Ir(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=_r(t,1,4),o=je(t);let a,s=7*n+r-i-3;s<1?(a=t-1,s+=je(a)):s>o?(a=t+1,s-=je(t)):a=t;const{month:c,day:u}=wr(a,s);return{year:a,month:c,day:u,...Ze(e)}}function Sr(e){const{year:t,month:n,day:r}=e,i=Er(t,n,r);return{year:t,ordinal:i,...Ze(e)}}function Cr(e){const{year:t,ordinal:n}=e,{month:r,day:i}=wr(t,n);return{year:t,month:r,day:i,...Ze(e)}}function Ar(e){const t=Ce(e.weekYear),n=Pe(e.weekNumber,1,ze(e.weekYear)),r=Pe(e.weekday,1,7);return t?n?!r&&br("weekday",e.weekday):br("week",e.week):br("weekYear",e.weekYear)}function Or(e){const t=Ce(e.year),n=Pe(e.ordinal,1,je(e.year));return t?!n&&br("ordinal",e.ordinal):br("year",e.year)}function Rr(e){const t=Ce(e.year),n=Pe(e.month,1,12),r=Pe(e.day,1,Ve(e.year,e.month));return t?n?!r&&br("day",e.day):br("month",e.month):br("year",e.year)}function kr(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=Pe(t,0,23)||24===t&&0===n&&0===r&&0===i,a=Pe(n,0,59),s=Pe(r,0,59),c=Pe(i,0,999);return o?a?s?!c&&br("millisecond",i):br("second",r):br("minute",n):br("hour",t)}const xr="Invalid DateTime",Mr=864e13;function Nr(e){return new _t("unsupported zone",`the zone "${e.name}" is not supported`)}function Pr(e){return null===e.weekData&&(e.weekData=Tr(e.c)),e.weekData}function Dr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ei({...n,...t,old:n})}function Lr(e,t,n){let r=e-60*t*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;const o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Ur(e,t){e+=60*t*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Fr(e,t,n){return Lr(Ge(e),t,n)}function qr(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:i,day:Math.min(e.c.day,Ve(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=Pn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Ge(o);let[c,u]=Lr(s,n,e.zone);return 0!==a&&(c+=a,u=e.zone.offset(c)),{ts:c,o:u}}function Br(e,t,n,r,i,o){const{setZone:a,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,i=ei.fromObject(e,{...n,zone:r,specificOffset:o});return a?i:i.setZone(s)}return ei.invalid(new _t("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Hr(e,t,n=!0){return e.isValid?bt.create(de.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function jr(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=Le(e.c.year,n?6:4),t?(r+="-",r+=Le(e.c.month),r+="-",r+=Le(e.c.day)):(r+=Le(e.c.month),r+=Le(e.c.day)),r}function Vr(e,t,n,r,i,o){let a=Le(e.c.hour);return t?(a+=":",a+=Le(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=Le(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=Le(e.c.second),0===e.c.millisecond&&r||(a+=".",a+=Le(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!o?a+="Z":e.o<0?(a+="-",a+=Le(Math.trunc(-e.o/60)),a+=":",a+=Le(Math.trunc(-e.o%60))):(a+="+",a+=Le(Math.trunc(e.o/60)),a+=":",a+=Le(Math.trunc(e.o%60)))),o&&(a+="["+e.zone.ianaName+"]"),a}const Gr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},$r={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Yr=["year","month","day","hour","minute","second","millisecond"],Kr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Wr=["year","ordinal","hour","minute","second","millisecond"];function Xr(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new c(e);return t}function Qr(e,t){const n=me(t.zone,Te.defaultZone),r=de.fromObject(t),i=Te.now();let o,a;if(Ie(e.year))o=i;else{for(const n of Yr)Ie(e[n])&&(e[n]=Gr[n]);const t=Rr(e)||kr(e);if(t)return ei.invalid(t);const r=n.offset(i);[o,a]=Fr(e,r,n)}return new ei({ts:o,zone:n,loc:r,o:a})}function Zr(e,t,n){const r=!!Ie(n.round)||n.round,i=(e,i)=>{e=Be(e,r||n.calendary?0:2,!0);const o=t.loc.clone(n).relFormatter(n);return o.format(e,i)},o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(o(n.unit),n.unit);for(const a of n.units){const e=o(a);if(Math.abs(e)>=1)return i(e,a)}return i(e>t?-0:0,n.units[n.units.length-1])}function Jr(e){let t,n={};return e.length>0&&"object"===typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class ei{constructor(e){const t=e.zone||Te.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new _t("invalid input"):null)||(t.isValid?null:Nr(t));this.ts=Ie(e.ts)?Te.now():e.ts;let r=null,i=null;if(!n){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o)[r,i]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=Ur(this.ts,e),n=Number.isNaN(r.year)?new _t("invalid input"):null,r=n?null:r,i=n?null:e}}this._zone=t,this.loc=e.loc||de.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new ei({})}static local(){const[e,t]=Jr(arguments),[n,r,i,o,a,s,c]=t;return Qr({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:c},e)}static utc(){const[e,t]=Jr(arguments),[n,r,i,o,a,s,c]=t;return e.zone=fe.utcInstance,Qr({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:c},e)}static fromJSDate(e,t={}){const n=Oe(e)?e.valueOf():NaN;if(Number.isNaN(n))return ei.invalid("invalid input");const r=me(t.zone,Te.defaultZone);return r.isValid?new ei({ts:n,zone:r,loc:de.fromObject(t)}):ei.invalid(Nr(r))}static fromMillis(e,t={}){if(Se(e))return e<-Mr||e>Mr?ei.invalid("Timestamp out of range"):new ei({ts:e,zone:me(t.zone,Te.defaultZone),loc:de.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Se(e))return new ei({ts:1e3*e,zone:me(t.zone,Te.defaultZone),loc:de.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=me(t.zone,Te.defaultZone);if(!n.isValid)return ei.invalid(Nr(n));const r=Te.now(),i=Ie(t.specificOffset)?n.offset(r):t.specificOffset,o=Xe(e,Xr),a=!Ie(o.ordinal),c=!Ie(o.year),u=!Ie(o.month)||!Ie(o.day),l=c||u,d=o.weekYear||o.weekNumber,h=de.fromObject(t);if((l||a)&&d)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new s("Can't mix ordinal dates with month/day");const f=d||o.weekday&&!l;let p,m,g=Ur(r,i);f?(p=Kr,m=zr,g=Tr(g)):a?(p=Wr,m=$r,g=Sr(g)):(p=Yr,m=Gr);let v=!1;for(const s of p){const e=o[s];Ie(e)?o[s]=v?m[s]:g[s]:v=!0}const y=f?Ar(o):a?Or(o):Rr(o),b=y||kr(o);if(b)return ei.invalid(b);const _=f?Ir(o):a?Cr(o):o,[E,w]=Fr(_,i,n),T=new ei({ts:E,zone:n,o:w,loc:h});return o.weekday&&l&&e.weekday!==T.weekday?ei.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${T.toISO()}`):T}static fromISO(e,t={}){const[n,r]=hn(e);return Br(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=fn(e);return Br(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=pn(e);return Br(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(Ie(e)||Ie(t))throw new u("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=n,o=de.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,s,c,l]=mr(o,e,t);return l?ei.invalid(l):Br(a,s,n,`format ${t}`,e,c)}static fromString(e,t,n={}){return ei.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=En(e);return Br(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");const n=e instanceof _t?e:new _t(e,t);if(Te.throwOnInvalid)throw new i(n);return new ei({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=gr(e,de.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){const n=fr(bt.parseFormat(e),de.fromObject(t));return n.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Pr(this).weekYear:NaN}get weekNumber(){return this.isValid?Pr(this).weekNumber:NaN}get weekday(){return this.isValid?Pr(this).weekday:NaN}get ordinal(){return this.isValid?Sr(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Ge(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),o=this.zone.offset(n-r*t),a=this.zone.offset(n-i*t);if(o===a)return[this];const s=n-o*t,c=n-a*t,u=Ur(s,o),l=Ur(c,a);return u.hour===l.hour&&u.minute===l.minute&&u.second===l.second&&u.millisecond===l.millisecond?[Dr(this,{ts:s}),Dr(this,{ts:c})]:[this]}get isInLeapYear(){return He(this.year)}get daysInMonth(){return Ve(this.year,this.month)}get daysInYear(){return this.isValid?je(this.year):NaN}get weeksInWeekYear(){return this.isValid?ze(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=bt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(fe.instance(e),t)}toLocal(){return this.setZone(Te.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=me(e,Te.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=Fr(n,t,e)}return Dr(this,{ts:r,zone:e})}return ei.invalid(Nr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){const r=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return Dr(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Xe(e,Xr),n=!Ie(t.weekYear)||!Ie(t.weekNumber)||!Ie(t.weekday),r=!Ie(t.ordinal),i=!Ie(t.year),o=!Ie(t.month)||!Ie(t.day),a=i||o,c=t.weekYear||t.weekNumber;if((a||r)&&c)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new s("Can't mix ordinal dates with month/day");let u;n?u=Ir({...Tr(this.c),...t}):Ie(t.ordinal)?(u={...this.toObject(),...t},Ie(t.day)&&(u.day=Math.min(Ve(u.year,u.month),u.day))):u=Cr({...Sr(this.c),...t});const[l,d]=Fr(u,this.o,this.zone);return Dr(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Pn.fromDurationLike(e);return Dr(this,qr(this,t))}minus(e){if(!this.isValid)return this;const t=Pn.fromDurationLike(e).negate();return Dr(this,qr(this,t))}startOf(e){if(!this.isValid)return this;const t={},n=Pn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break;case"milliseconds":break}if("weeks"===n&&(t.weekday=1),"quarters"===n){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?bt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):xr}toLocaleString(e=p,t={}){return this.isValid?bt.create(this.loc.clone(t),e).formatDateTime(this):xr}toLocaleParts(e={}){return this.isValid?bt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o="extended"===e;let a=jr(this,o);return a+="T",a+=Vr(this,o,t,n,r,i),a}toISODate({format:e="extended"}={}){return this.isValid?jr(this,"extended"===e):null}toISOWeekDate(){return Hr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){if(!this.isValid)return null;let a=r?"T":"";return a+Vr(this,"extended"===o,t,e,n,i)}toRFC2822(){return Hr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Hr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?jr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Hr(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():xr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Pn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=ke(t).map(Pn.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,s=o?e:this,c=Hn(a,s,i,r);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(ei.now(),e,t)}until(e){return this.isValid?Un.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||ei.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),Zr(t,this.plus(n),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?Zr(e.base||ei.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(ei.isDateTime))throw new u("min requires all arguments be DateTimes");return xe(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(ei.isDateTime))throw new u("max requires all arguments be DateTimes");return xe(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:i=null}=n,o=de.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return pr(o,e,t)}static fromStringExplain(e,t,n={}){return ei.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return p}static get DATE_MED(){return m}static get DATE_MED_WITH_WEEKDAY(){return g}static get DATE_FULL(){return v}static get DATE_HUGE(){return y}static get TIME_SIMPLE(){return b}static get TIME_WITH_SECONDS(){return _}static get TIME_WITH_SHORT_OFFSET(){return E}static get TIME_WITH_LONG_OFFSET(){return w}static get TIME_24_SIMPLE(){return T}static get TIME_24_WITH_SECONDS(){return I}static get TIME_24_WITH_SHORT_OFFSET(){return S}static get TIME_24_WITH_LONG_OFFSET(){return C}static get DATETIME_SHORT(){return A}static get DATETIME_SHORT_WITH_SECONDS(){return O}static get DATETIME_MED(){return R}static get DATETIME_MED_WITH_SECONDS(){return k}static get DATETIME_MED_WITH_WEEKDAY(){return x}static get DATETIME_FULL(){return M}static get DATETIME_FULL_WITH_SECONDS(){return N}static get DATETIME_HUGE(){return P}static get DATETIME_HUGE_WITH_SECONDS(){return D}}function ti(e){if(ei.isDateTime(e))return e;if(e&&e.valueOf&&Se(e.valueOf()))return ei.fromJSDate(e);if(e&&"object"===typeof e)return ei.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}},25505:function(e){"use strict";e.exports=JSON.parse('{"code":"en","messages":{"alpha":"The {_field_} field may only contain alphabetic characters","alpha_num":"The {_field_} field may only contain alpha-numeric characters","alpha_dash":"The {_field_} field may contain alpha-numeric characters as well as dashes and underscores","alpha_spaces":"The {_field_} field may only contain alphabetic characters as well as spaces","between":"The {_field_} field must be between {min} and {max}","confirmed":"The {_field_} field confirmation does not match","digits":"The {_field_} field must be numeric and exactly contain {length} digits","dimensions":"The {_field_} field must be {width} pixels by {height} pixels","email":"The {_field_} field must be a valid email","excluded":"The {_field_} field is not a valid value","ext":"The {_field_} field is not a valid file","image":"The {_field_} field must be an image","integer":"The {_field_} field must be an integer","length":"The {_field_} field must be {length} long","max_value":"The {_field_} field must be {max} or less","max":"The {_field_} field may not be greater than {length} characters","mimes":"The {_field_} field must have a valid file type","min_value":"The {_field_} field must be {min} or more","min":"The {_field_} field must be at least {length} characters","numeric":"The {_field_} field may only contain numeric characters","oneOf":"The {_field_} field is not a valid value","regex":"The {_field_} field format is invalid","required_if":"The {_field_} field is required","required":"The {_field_} field is required","size":"The {_field_} field size must be less than {size}KB","double":"The {_field_} field must be a valid decimal"}}')}}]);
//# sourceMappingURL=chunk-vendors.08ae178.js.map