@authress/component-library
Version:
Authress component library - Provides full featured web components to provide easy and direct integration with Authress.
7 lines • 317 kB
JavaScript
/*! Authress Component Library 1.1.56 | Author - Authress Developers | License information can be found in components.min.js.LICENSE.txt */
(()=>{var t,r,e={717:t=>{function r(t){return String.fromCharCode(parseInt(t.slice(1),16))}function e(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}t.exports.decode=function(t){return function(t){return decodeURIComponent(Array.from(atob(t),e).join(""))}(t.replace(/-/g,"+").replace(/_/g,"/"))},t.exports.encode=function(t){return t&&"object"==typeof t?btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,""):function(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,r))}(t).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}},287:(t,r,e)=>{const o=e(561),{sanitizeUrl:a}=e(821),i=e(58),n="ExtensionRequestNonce";let s=null;t.exports=class{constructor(t,r){if(this.extensionId=r,!t)throw Error('Missing required property "authressCustomDomain" in ExtensionClient constructor. The Custom Authress Domain Host is required.');if(!r)throw Error('Missing required property "extensionId" in ExtensionClient constructor. The extension is required for selecting the correct login method.');this.authressCustomDomain=a(t),this.accessToken=null,i.onLoad((async()=>{await this.requestToken({silent:!0})}))}async getUserIdentity(){const t=this.accessToken&&await o.decode(this.accessToken);return t?1e3*t.exp<Date.now()?(this.accessToken=null,null):t:null}async getTokenResponse(){return await this.getUserIdentity()?{accessToken:this.accessToken}:null}requestToken(t={code:null,silent:!1}){if(s)return s=s.catch((()=>{})).then((()=>this.requestTokenContinuation(t)));const r=this.requestTokenContinuation(t);return r.catch((()=>{})),s=r}async requestTokenContinuation(t={code:null,silent:!1}){const r=t&&t.code||new URLSearchParams(i.getCurrentLocation().search).get("code");if(!r){if(!t||!t.silent){const t=Error("OAuth Authorization code is required");throw t.code="InvalidAuthorizationCode",t}return this.getTokenResponse()}const e=new URL(this.authressCustomDomain);e.pathname="/api/authentication/oauth/tokens";const{codeVerifier:o,redirectUrl:a}=JSON.parse(localStorage.getItem(n)||"{}"),s=await fetch(e.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code_verifier:o,code:r,grant_type:"authorization_code",client_id:this.extensionId,redirect_uri:a})}),l=await s.json();this.accessToken=l.access_token;const d=new URL(i.getCurrentLocation());return d.searchParams.delete("code"),d.searchParams.delete("iss"),d.searchParams.delete("nonce"),d.searchParams.delete("expires_in"),d.searchParams.delete("access_token"),d.searchParams.delete("id_token"),history.replaceState({},void 0,d.toString()),this.getTokenResponse()}async login(t){const r=await this.getTokenResponse();if(r)return r;const e=await this.requestToken({silent:!0});if(e)return e;const a=new URL(this.authressCustomDomain),{codeVerifier:s,codeChallenge:l}=o.getAuthCodes(),d=t||i.getCurrentLocation().href;return localStorage.setItem(n,JSON.stringify({codeVerifier:s,redirectUrl:d})),a.searchParams.set("client_id",this.extensionId),a.searchParams.set("code_challenge",l),a.searchParams.set("code_challenge_method","S256"),a.searchParams.set("redirect_uri",d),i.assign(a.toString()),await new Promise((t=>setTimeout(t,5e3))),null}}},958:(t,r,e)=>{const{sanitizeUrl:o}=e(821),a=e(58),i={"Content-Type":"application/json"},n=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","<HTML DOCUMENT></HTML>"]);function s(t){return t&&t.message&&n.has(t.message)}async function l(t){let r=null;for(let e=0;e<5;e++)try{return await t()}catch(t){if(t.retryCount=e,r=t,s(t)||"Network Error"===t.message||"ERR_NETWORK"===t.code||!t.status||t.status>=500){r.isNetworkError=!0,await new Promise((t=>setTimeout(t,10*2**e)));continue}throw t}throw r}t.exports=class{constructor(t,r){if(!t)throw Error("Custom Authress Domain Host is required");const e=r||{debug(){},warn(){},critical(){}};this.logger=e;const a=new URL(o(t));this.loginUrl=`${a.origin}/api`}get(t,r,e,o){return l((()=>this.fetchWrapper("GET",t,null,e,r,o)))}delete(t,r,e,o){return l((()=>this.fetchWrapper("DELETE",t,null,e,r,o)))}post(t,r,e,o,a){return l((()=>this.fetchWrapper("POST",t,e,o,r,a)))}put(t,r,e,o,a){return l((()=>this.fetchWrapper("PUT",t,e,o,r,a)))}patch(t,r,e,o,a){return l((()=>this.fetchWrapper("PATCH",t,e,o,r,a)))}async fetchWrapper(t,r,e,o,n,s){const l=`${this.loginUrl}${r.toString()}`,d=t.toUpperCase(),c=Object.assign({},i,o);try{this.logger&&this.logger.debug&&this.logger.debug({title:"HttpClient Request",method:d,url:l});const t={method:d,headers:c};e&&(t.body=JSON.stringify(e)),!a.isLocalHost()&&n&&(t.credentials="include");const r=await fetch(l,t);if(!r.ok)throw r;let o={};try{o=await r.text(),o=JSON.parse(o)}catch(t){}return{url:l,headers:r.headers,status:r.status,data:o}}catch(t){let r=t;try{r=await t.text(),r=JSON.parse(r)}catch(t){}const o=r.stack&&r.stack.match(/chrome-extension:[/][/](\w+)[/]/);if(o){this.logger&&this.logger.debug&&this.logger.debug({title:`Fetch failed due to a browser extension - ${d} - ${l}`,method:d,url:l,data:e,headers:c,error:t,resolvedError:r,extensionErrorId:o});const a=new Error(`Extension Error ID: ${o}`);throw a.code="BROWSER_EXTENSION_ERROR",a}const a=t.status;let i="warn",n="HttpClient Response Error";t?401===a?(n="HttpClient Response Error due to invalid token",i="debug"):404===a?(n="HttpClient Response: Not Found",i="debug"):a<500&&s&&(i="debug"):n="HttpClient Response Error - Unknown error occurred",this.logger&&this.logger[i]&&this.logger[i]({title:n,online:"undefined"==typeof navigator||navigator.onLine,method:d,url:l,status:a,data:e,headers:c,error:t,resolvedError:r});throw{url:l,status:a,data:r,headers:t.headers}}}}},509:(t,r,e)=>{const o=e(427),a=e(321),i=e(58),n=e(958),s=e(561),{sanitizeUrl:l}=e(821),d=e(723);let c,p=new Promise((t=>c=t)),m=null;const b="AuthenticationRequestNonce";const g=e(287);t.exports={LoginClient:class{constructor(t,r){const e=Object.assign({applicationId:"app_default"},t);this.logger=r||console;const o=e.authressApiUrl||e.authressLoginHostUrl||e.authenticationServiceUrl||"";if(!o)throw Error('Missing required property "authressApiUrl" in LoginClient constructor. Custom Authress Domain Host is required.');this.applicationId=e.applicationId,this.hostUrl=l(o),this.httpClient=new n(this.hostUrl,r),this.lastSessionCheck=0,this.enableCredentials=this.getMatchingDomainInfo(this.hostUrl),e.skipBackgroundCredentialsCheck||i.onLoad((async()=>{await this.userSessionExists(!0)}))}getMatchingDomainInfo(t){const r=new URL(t);if(i.isLocalHost())return!1;const e=i.getCurrentLocation();if("https:"!==e.protocol)return!1;const o=r.host.toLowerCase().split(".").reverse(),n=e.host.toLowerCase().split(".").reverse();let s=[];for(let t of o){const r=a(n,s.length+1).join(".");if(s.concat(t).join(".")!==r)break;s.push(t)}return s.length===o.length&&s.length===n.length||s.length>1}getUserIdentity(){const t=d.getUserCookie(),r=s.decodeOrParse(t);if(r){const e=r.exp?new Date(1e3*r.exp):new Date(Date.now()+864e5);return d.set(t,e),r.userId=r.sub,r}const e=d.get(),o=s.decodeOrParse(e);if(!o)return null;const a=new URL(o.iss).hostname,i=new URL(this.hostUrl).hostname;return a.endsWith(i)||i.endsWith(a)?(o.userId=o.sub,o):(this.logger&&this.logger.error&&this.logger.error({title:"Token saved in browser is for a different issuer, discarding",issuerOrigin:a,hostUrlOrigin:i,savedUserData:o}),d.clear(),null)}async getConnectionCredentials(){await this.waitForUserSession();try{const t=await this.ensureToken();return(await this.httpClient.get("/session/credentials",this.enableCredentials,{Authorization:t&&`Bearer ${t}`})).data}catch(t){return null}}async getDevices(){try{const t=await this.ensureToken();return(await this.httpClient.get("/session/devices",this.enableCredentials,{Authorization:t&&`Bearer ${t}`})).data.devices}catch(t){return[]}}async deleteDevice(t){try{const r=await this.ensureToken();await this.httpClient.delete(`/session/devices/${encodeURIComponent(t)}`,this.enableCredentials,{Authorization:r&&`Bearer ${r}`})}catch(t){throw this.logger&&this.logger.log({title:"Failed to delete device",error:t}),t}}async openUserConfigurationScreen(t={redirectUrl:null,startPage:"Profile"}){if(!await this.userSessionExists()){const t=Error("User must be logged to configure user profile data.");throw t.code="NotLoggedIn",t}const r=new URL("/settings",this.hostUrl);r.searchParams.set("client_id",this.applicationId),r.searchParams.set("start_page",t&&t.startPage||"Profile"),r.searchParams.set("redirect_uri",t&&t.redirectUrl||i.getCurrentLocation().href),i.assign(r.toString()),await Promise.resolve()}async registerDevice(t={name:"",type:"",totp:{}}){const r=await this.getUserIdentity();if(!r){const t=Error("User must be logged to configure user profile data.");throw t.code="NotLoggedIn",t}if(!t){const t=Error("Register Device missing required parameter: 'Options'");throw t.code="InvalidInput",t}let e;if(t.type&&"WebAuthN"!==t.type)"TOTP"===t.type&&(e={name:t.name,code:t.totp.verificationCode,totpData:t.totp,type:"TOTP"});else{const o=r.sub,a={challenge:Uint8Array.from(o,(t=>t.charCodeAt(0))),rp:{id:this.hostUrl.split(".").slice(1).join("."),name:"WebAuthN Login"},user:{id:Uint8Array.from(o,(t=>t.charCodeAt(0))),name:o,displayName:`Generated User ID: ${o}`},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{residentKey:"discouraged",requireResidentKey:!1,userVerification:"discouraged"},timeout:6e4,attestation:"direct"},i=await navigator.credentials.create({publicKey:a}),n={authenticatorAttachment:i.authenticatorAttachment,credentialId:i.id,type:i.type,userId:o,attestation:btoa(String.fromCharCode(...new Uint8Array(i.response.attestationObject))),client:btoa(String.fromCharCode(...new Uint8Array(i.response.clientDataJSON)))};e={name:t&&t.name,code:n,type:"WebAuthN"}}try{const t=await this.ensureToken();return(await this.httpClient.post("/session/devices",this.enableCredentials,e,{Authorization:t&&`Bearer ${t}`})).data}catch(t){throw this.logger&&this.logger.log({title:"Failed to register new device",error:t,request:e}),t}}async waitForUserSession(){try{return await p,!0}catch(t){return!1}}userSessionExists(t){return m?Date.now()-this.lastSessionCheck<50?m:(this.lastSessionCheck=Date.now(),m=m.catch((()=>{})).then((()=>this.userSessionContinuation(t)))):(this.lastSessionCheck=Date.now(),m=this.userSessionContinuation(t))}async userSessionContinuation(t){const r=new URLSearchParams(i.getCurrentLocation().search),e=new URL(i.getCurrentLocation());let a={};if("undefined"!=typeof localStorage)try{a=JSON.parse(localStorage.getItem(b)||"{}"),localStorage.removeItem(b),Object.hasOwnProperty.call(a,"enableCredentials")&&(this.enableCredentials=a.enableCredentials)}catch(t){this.logger&&this.logger.debug&&this.logger.debug({title:"LocalStorage failed in Browser",error:t})}if(r.get("state")&&"oauthLogin"===r.get("flow"))return!1;if(a.nonce&&r.get("code")&&(e.searchParams.delete("nonce"),e.searchParams.delete("iss"),e.searchParams.delete("code"),history.replaceState({},void 0,e.toString()),a.nonce===r.get("nonce"))){const t="cookie"===r.get("code")?o.parse(document.cookie)["auth-code"]:r.get("code"),e={grant_type:"authorization_code",redirect_uri:a.redirectUrl,client_id:this.applicationId,code:t,code_verifier:a.codeVerifier};try{const t=await this.httpClient.post(`/authentication/${a.nonce}/tokens`,this.enableCredentials,e),r=s.decode(t.data.id_token),i=r.exp&&new Date(1e3*r.exp)||t.data.expires_in&&new Date(Date.now()+1e3*t.data.expires_in);return document.cookie=o.serialize("authorization",t.data.access_token||"",{expires:i,path:"/",sameSite:"strict"}),d.set(t.data.id_token,i),c(),!0}catch(t){if(this.logger&&this.logger.log({title:"Failed exchange authentication response for a token.",error:t}),t.data&&"invalid_request"===t.data.error)return!1;throw t.data||t}}if(i.isLocalHost()&&r.get("nonce")&&r.get("access_token")&&(e.searchParams.delete("iss"),e.searchParams.delete("nonce"),e.searchParams.delete("expires_in"),e.searchParams.delete("access_token"),e.searchParams.delete("id_token"),history.replaceState({},void 0,e.toString()),!a.nonce||a.nonce===r.get("nonce"))){const t=s.decode(r.get("id_token")),e=t.exp&&new Date(1e3*t.exp)||Number(r.get("expires_in"))&&new Date(Date.now()+1e3*Number(r.get("expires_in")));return document.cookie=o.serialize("authorization",r.get("access_token")||"",{expires:e,path:"/",sameSite:"strict"}),d.set(r.get("id_token"),e),c(),!0}if(this.getUserIdentity())return c(),!0;if(!i.isLocalHost()&&!t){try{const t=await this.httpClient.patch("/session",this.enableCredentials,{},null,!0);if(t.data.access_token){const r=s.decode(t.data.id_token),e=r.exp&&new Date(1e3*r.exp)||t.data.expires_in&&new Date(Date.now()+1e3*t.data.expires_in);document.cookie=o.serialize("authorization",t.data.access_token||"",{expires:e,path:"/",sameSite:"strict"}),d.set(t.data.id_token,e)}}catch(t){400!==t.status&&404!==t.status&&409!==t.status?this.logger&&this.logger.log&&this.logger.log({title:"User does not have an existing authentication session",error:t}):this.logger&&this.logger.log&&this.logger.log({title:"Failed attempting to check if the user has an existing authentication session",error:t})}if(this.getUserIdentity())return c(),!0}return!1}async updateExtensionAuthenticationRequest({state:t,connectionId:r,tenantLookupIdentifier:e,connectionProperties:o}){if(!r&&!e){const t=Error("connectionId or tenantLookupIdentifier must be specified");throw t.code="InvalidConnection",t}const a=new URLSearchParams(i.getCurrentLocation().search),n=t||a.get("state");if(!n){const t=Error("The `state` parameters must be specified to update this authentication request");throw t.code="InvalidAuthenticationRequest",t}try{const t=await this.httpClient.patch(`/authentication/${n}`,!0,{connectionId:r,tenantLookupIdentifier:e,connectionProperties:o});i.assign(t.data.authenticationUrl)}catch(t){if(this.logger&&this.logger.log&&this.logger.log({title:"Failed to update extension authentication request",error:t}),t.status&&t.status>=400&&t.status<500){const r=Error(t.data&&(t.data.title||t.data.errorCode)||t.data||"Unknown Error");throw r.code=t.data&&t.data.errorCode,r}throw t.data||t}await new Promise((t=>setTimeout(t,5e3)))}async unlinkIdentity(t){if(!t){const t=Error("connectionId must be specified");throw t.code="InvalidConnection",t}if(!this.getUserIdentity()){const t=Error("User must be logged in to unlink an account.");throw t.code="NotLoggedIn",t}let r;try{r=await this.ensureToken({timeoutInMillis:100})}catch(t){if("TokenTimeout"===t.code){const t=Error("User must be logged into an existing account before linking a second account.");throw t.code="NotLoggedIn",t}}const e=this.enableCredentials&&!i.isLocalHost()?{}:{Authorization:`Bearer ${r}`};try{await this.httpClient.delete(`/identities/${encodeURIComponent(t)}`,this.enableCredentials,e)}catch(t){if(this.logger&&this.logger.log&&this.logger.log({title:"Failed to unlink user identity",error:t}),t.status&&t.status>=400&&t.status<500){const r=Error(t.data&&(t.data.title||t.data.errorCode)||t.data||"Unknown Error");throw r.code=t.data&&t.data.errorCode,r}throw t.data||t}}async linkIdentity({connectionId:t,tenantLookupIdentifier:r,redirectUrl:e,connectionProperties:o}){if(!t&&!r){const t=Error("connectionId or tenantLookupIdentifier must be specified");throw t.code="InvalidConnection",t}if(!this.getUserIdentity()){const t=Error("User must be logged into an existing account before linking a second account.");throw t.code="NotLoggedIn",t}let a;try{a=await this.ensureToken({timeoutInMillis:100})}catch(t){if("TokenTimeout"===t.code){const t=Error("User must be logged into an existing account before linking a second account.");throw t.code="NotLoggedIn",t}}const{codeChallenge:n}=await s.getAuthCodes();try{const s=e&&new URL(e).toString()||i.getCurrentLocation().href,l=this.enableCredentials&&!i.isLocalHost()?{}:{Authorization:`Bearer ${a}`},d=await this.httpClient.post("/authentication",this.enableCredentials,{linkIdentity:!0,redirectUrl:s,codeChallengeMethod:"S256",codeChallenge:n,connectionId:t,tenantLookupIdentifier:r,connectionProperties:o,applicationId:this.applicationId},l);i.assign(d.data.authenticationUrl)}catch(t){if(this.logger&&this.logger.log&&this.logger.log({title:"Failed to start user identity link",error:t}),t.status&&t.status>=400&&t.status<500){const r=Error(t.data&&(t.data.title||t.data.errorCode)||t.data||"Unknown Error");throw r.code=t.data&&t.data.errorCode,r}throw t}await new Promise((t=>setTimeout(t,5e3)))}async authenticate(t={}){const{connectionId:r,tenantLookupIdentifier:e,inviteId:o,redirectUrl:a,force:n,responseLocation:l,flowType:c,connectionProperties:p,openType:m,multiAccount:g,clearUserDataBeforeLogin:f}=t||{};if(l&&"cookie"!==l&&"query"!==l&&"none"!==l){const t=Error("Authentication response location is not valid");throw t.code="InvalidResponseLocation",t}if(!n&&!g&&await this.userSessionExists())return!0;const{codeVerifier:h,codeChallenge:u}=await s.getAuthCodes();try{const t=a&&new URL(a).toString()||i.getCurrentLocation().href;!1!==f&&d.clear();const n=await this.httpClient.post("/authentication",!1,{redirectUrl:t,codeChallengeMethod:"S256",codeChallenge:u,connectionId:r,tenantLookupIdentifier:e,inviteId:o,connectionProperties:p,applicationId:this.applicationId,responseLocation:l,flowType:c,multiAccount:g});if(localStorage.setItem(b,JSON.stringify({nonce:n.data.authenticationRequestId,codeVerifier:h,lastConnectionId:r,tenantLookupIdentifier:e,redirectUrl:t,enableCredentials:n.data.enableCredentials,multiAccount:g})),"tab"===m){const t=i.open(n.data.authenticationUrl,"_blank");t&&!t.closed&&void 0!==t.closed||i.assign(n.data.authenticationUrl)}else i.assign(n.data.authenticationUrl)}catch(t){if(this.logger&&this.logger.log&&this.logger.log({title:"Failed to start authentication for user",error:t}),t.status&&t.status>=400&&t.status<500){const r=Error(t.data&&(t.data.title||t.data.errorCode)||t.data||"Unknown Error");throw r.code=t.data&&t.data.errorCode,r}throw t.data||t}return await new Promise((t=>setTimeout(t,5e3))),!1}async ensureToken(t){await this.userSessionExists();const r=Object.assign({timeoutInMillis:5e3},t||{}),e=this.waitForUserSession(),a=new Promise(((t,e)=>setTimeout(e,r.timeoutInMillis||0)));try{await Promise.race([e,a])}catch(t){const r=Error("No token retrieved after timeout");throw r.code="TokenTimeout",r}const i=o.parse(document.cookie);return"undefined"!==i.authorization&&i.authorization}async logout(t){if(d.clear(),p=new Promise((t=>c=t)),this.enableCredentials)try{return await this.httpClient.delete("/session",this.enableCredentials),void(t&&t!==i.getCurrentLocation().href&&i.assign(t))}catch(t){}const r=new URL("/logout",this.hostUrl);r.searchParams.set("redirect_uri",t||i.getCurrentLocation().href),r.searchParams.set("client_id",this.applicationId),i.assign(r.toString())}},ExtensionClient:g,UserConfigurationScreen:{Profile:"Profile",MFA:"MFA"}}},561:(t,r,e)=>{const o=e(717);t.exports=new class{decode(t){if(!t)return null;try{const r=JSON.parse(o.decode(t.split(".")[1]));return r.exp&&(r.exp=r.exp-10),r}catch(t){return null}}decodeOrParse(t){if(!t)return null;if("object"==typeof t)return t;try{return JSON.parse(t)}catch(r){return this.decode(t)}}decodeFull(t){if(!t)return null;try{const r=JSON.parse(o.decode(t.split(".")[0])),e=JSON.parse(o.decode(t.split(".")[1]));return e.exp&&(e.exp=e.exp-10),{header:r,payload:e}}catch(t){return null}}async getAuthCodes(){const t=o.encode((window.crypto||window.msCrypto).getRandomValues(new Uint32Array(16)).toString()),r=await(window.crypto||window.msCrypto).subtle.digest("SHA-256",(new TextEncoder).encode(t));return{codeVerifier:t,codeChallenge:o.encode(r)}}}},723:(t,r,e)=>{const o=e(427),a="AuthenticationCredentialsStorage";t.exports=new class{getUserCookie(){if("undefined"==typeof window||"undefined"==typeof document)return null;return document.cookie.split(";").filter((t=>"user"===t.split("=")[0].trim())).map((t=>t.replace(/^user=/,""))).find((t=>t&&t.trim()))||null}set(t,r){if("undefined"!=typeof window&&"undefined"!=typeof document)try{const e=o.parse(document.cookie);localStorage.setItem(a,JSON.stringify({idToken:t,expiry:r&&r.getTime(),jsCookies:!!e.authorization})),this.clearCookies("user")}catch(t){console.debug("LocalStorage failed in Browser",t)}}get(){if("undefined"==typeof window||"undefined"==typeof document)return null;let t={};try{t=o.parse(document.cookie)}catch(t){console.debug("CookieManagement failed in Browser",t)}try{const{idToken:r,expiry:e,jsCookies:o}=JSON.parse(localStorage.getItem(a)||"{}");return r?e<Date.now()||o&&!t.authorization?null:r:this.getUserCookie()}catch(t){return console.debug("LocalStorage failed in Browser",t),this.getUserCookie()}}delete(){try{localStorage.removeItem(a)}catch(t){console.debug("LocalStorage failed in Browser",t)}try{this.clearCookies("user")}catch(t){console.debug("CookieManagement failed in Browser",t)}}clear(){this.clearCookies(),this.delete()}clearCookies(t){if("undefined"==typeof window||"undefined"==typeof document)return;const r=document.cookie.split("; ");for(const e of r){if(!["user","authorization","auth-code"].includes(e.split("=")[0])||t&&e.split("=")[0]!==t)continue;const r=window.location.hostname.split("."),o=[...Array(r.length-1)].map(((t,e)=>r.reverse().slice(0,e+2).reverse().join("."))).map((t=>[t,`.${t}`])).flat(1).concat(null);"localhost"===window.location.hostname&&o.push("localhost");for(const t of o){const r=t?`domain=${t};`:"",o=`${encodeURIComponent(e.split(";")[0].split("=")[0])}=; expires=Thu, 01-Jan-1970 00:00:01 GMT; ${r} SameSite=Strict; path=`;document.cookie=`${o}/`;const a=location.pathname.split("/");for(;a.length>0;)document.cookie=o+a.join("/"),a.pop()}}}}},821:t=>{t.exports.sanitizeUrl=function(t){let r=t;r.startsWith("http")||(r=`https://${r}`);const e=new URL(r),o=e.host.match(/^([a-z0-9-]+)[.][a-z0-9-]+[.]authress[.]io$/);return o&&(e.host=`${o[1]}.login.authress.io`,r=e.toString()),r.replace(/[/]+$/,"")}},58:t=>{t.exports=new class{onLoad(t){"undefined"!=typeof window&&(window.onload=t)}isLocalHost(){return"undefined"!=typeof window&&window.location&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)}getCurrentLocation(){return"undefined"!=typeof window&&new URL(window.location)||new URL("http://localhost:8080")}assign(t){return"undefined"==typeof window?null:window.location.assign(t.toString())}open(t){return"undefined"==typeof window?null:window.open(t.toString())}}},603:(t,r,e)=>{"use strict";const o=window,a=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class s{constructor(t,r,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(a&&void 0===t){const e=void 0!==r&&1===r.length;e&&(t=n.get(r)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n.set(r,t))}return t}toString(){return this.cssText}}const l=(t,...r)=>{const e=1===t.length?t[0]:r.reduce(((r,e,o)=>r+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new s(e,t,i)},d=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let r="";for(const e of t.cssRules)r+=e.cssText;return(t=>new s("string"==typeof t?t:t+"",void 0,i))(r)})(t):t;var c;const p=window,m=p.trustedTypes,b=m?m.emptyScript:"",g=p.reactiveElementPolyfillSupport,f={toAttribute(t,r){switch(r){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,r){let e=t;switch(r){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},h=(t,r)=>r!==t&&(r==r||t==t),u={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:h},v="finalized";class x extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),(null!==(r=this.h)&&void 0!==r?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((r,e)=>{const o=this._$Ep(e,r);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,r=u){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,r);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,e){return{get(){return this[r]},set(o){const a=this[t];this[r]=o,this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||u}static finalize(){if(this.hasOwnProperty(v))return!1;this[v]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of r)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)r.unshift(d(t))}else void 0!==t&&r.push(d(t));return r}static _$Ep(t,r){const e=r.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var r,e;(null!==(r=this._$ES)&&void 0!==r?r:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var r;null===(r=this._$ES)||void 0===r||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])}))}createRenderRoot(){var t;const r=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{a?t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):r.forEach((r=>{const e=document.createElement("style"),a=o.litNonce;void 0!==a&&e.setAttribute("nonce",a),e.textContent=r.cssText,t.appendChild(e)}))})(r,this.constructor.elementStyles),r}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var r;return null===(r=t.hostConnected)||void 0===r?void 0:r.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var r;return null===(r=t.hostDisconnected)||void 0===r?void 0:r.call(t)}))}attributeChangedCallback(t,r,e){this._$AK(t,e)}_$EO(t,r,e=u){var o;const a=this.constructor._$Ep(t,e);if(void 0!==a&&!0===e.reflect){const i=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:f).toAttribute(r,e.type);this._$El=t,null==i?this.removeAttribute(a):this.setAttribute(a,i),this._$El=null}}_$AK(t,r){var e;const o=this.constructor,a=o._$Ev.get(t);if(void 0!==a&&this._$El!==a){const t=o.getPropertyOptions(a),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:f;this._$El=a,this[a]=i.fromAttribute(r,t.type),this._$El=null}}requestUpdate(t,r,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||h)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,r)=>this[r]=t)),this._$Ei=void 0);let r=!1;const e=this._$AL;try{r=this.shouldUpdate(e),r?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var r;return null===(r=t.hostUpdate)||void 0===r?void 0:r.call(t)})),this.update(e)):this._$Ek()}catch(t){throw r=!1,this._$Ek(),t}r&&this._$AE(e)}willUpdate(t){}_$AE(t){var r;null===(r=this._$ES)||void 0===r||r.forEach((t=>{var r;return null===(r=t.hostUpdated)||void 0===r?void 0:r.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,r)=>this._$EO(r,this[r],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var w;x[v]=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:x}),(null!==(c=p.reactiveElementVersions)&&void 0!==c?c:p.reactiveElementVersions=[]).push("1.6.3");const y=window,k=y.trustedTypes,C=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,E="?"+A,S=`<${E}>`,L=document,M=()=>L.createComment(""),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,I=t=>$(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),j="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,D=/>/g,N=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),P=/'/g,R=/"/g,B=/^(?:script|style|textarea|title)$/i,O=t=>(r,...e)=>({_$litType$:t,strings:r,values:e}),H=O(1),F=(O(2),Symbol.for("lit-noChange")),q=Symbol.for("lit-nothing"),V=new WeakMap,Y=L.createTreeWalker(L,129,null,!1);function W(t,r){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(r):r}const J=(t,r)=>{const e=t.length-1,o=[];let a,i=2===r?"<svg>":"",n=_;for(let r=0;r<e;r++){const e=t[r];let s,l,d=-1,c=0;for(;c<e.length&&(n.lastIndex=c,l=n.exec(e),null!==l);)c=n.lastIndex,n===_?"!--"===l[1]?n=U:void 0!==l[1]?n=D:void 0!==l[2]?(B.test(l[2])&&(a=RegExp("</"+l[2],"g")),n=N):void 0!==l[3]&&(n=N):n===N?">"===l[0]?(n=null!=a?a:_,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?N:'"'===l[3]?R:P):n===R||n===P?n=N:n===U||n===D?n=_:(n=N,a=void 0);const p=n===N&&t[r+1].startsWith("/>")?" ":"";i+=n===_?e+S:d>=0?(o.push(s),e.slice(0,d)+z+e.slice(d)+A+p):e+A+(-2===d?(o.push(void 0),r):p)}return[W(t,i+(t[e]||"<?>")+(2===r?"</svg>":"")),o]};class G{constructor({strings:t,_$litType$:r},e){let o;this.parts=[];let a=0,i=0;const n=t.length-1,s=this.parts,[l,d]=J(t,r);if(this.el=G.createElement(l,e),Y.currentNode=this.el.content,2===r){const t=this.el.content,r=t.firstChild;r.remove(),t.append(...r.childNodes)}for(;null!==(o=Y.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const r of o.getAttributeNames())if(r.endsWith(z)||r.startsWith(A)){const e=d[i++];if(t.push(r),void 0!==e){const t=o.getAttribute(e.toLowerCase()+z).split(A),r=/([.?@])?(.*)/.exec(e);s.push({type:1,index:a,name:r[2],strings:t,ctor:"."===r[1]?tt:"?"===r[1]?et:"@"===r[1]?ot:X})}else s.push({type:6,index:a})}for(const r of t)o.removeAttribute(r)}if(B.test(o.tagName)){const t=o.textContent.split(A),r=t.length-1;if(r>0){o.textContent=k?k.emptyScript:"";for(let e=0;e<r;e++)o.append(t[e],M()),Y.nextNode(),s.push({type:2,index:++a});o.append(t[r],M())}}}else if(8===o.nodeType)if(o.data===E)s.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(A,t+1));)s.push({type:7,index:a}),t+=A.length-1}a++}}static createElement(t,r){const e=L.createElement("template");return e.innerHTML=t,e}}function Z(t,r,e=t,o){var a,i,n,s;if(r===F)return r;let l=void 0!==o?null===(a=e._$Co)||void 0===a?void 0:a[o]:e._$Cl;const d=T(r)?void 0:r._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,e,o)),void 0!==o?(null!==(n=(s=e)._$Co)&&void 0!==n?n:s._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(r=Z(t,l._$AS(t,r.values),l,o)),r}class K{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;const{el:{content:e},parts:o}=this._$AD,a=(null!==(r=null==t?void 0:t.creationScope)&&void 0!==r?r:L).importNode(e,!0);Y.currentNode=a;let i=Y.nextNode(),n=0,s=0,l=o[0];for(;void 0!==l;){if(n===l.index){let r;2===l.type?r=new Q(i,i.nextSibling,this,t):1===l.type?r=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(r=new at(i,this,t)),this._$AV.push(r),l=o[++s]}n!==(null==l?void 0:l.index)&&(i=Y.nextNode(),n++)}return Y.currentNode=L,a}v(t){let r=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,r),r+=e.strings.length-2):e._$AI(t[r])),r++}}class Q{constructor(t,r,e,o){var a;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=e,this.options=o,this._$Cp=null===(a=null==o?void 0:o.isConnected)||void 0===a||a}get _$AU(){var t,r;return null!==(r=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==r?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return void 0!==r&&11===(null==t?void 0:t.nodeType)&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Z(this,t,r),T(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):I(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&T(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var r;const{values:e,_$litType$:o}=t,a="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(W(o.h,o.h[0]),this.options)),o);if((null===(r=this._$AH)||void 0===r?void 0:r._$AD)===a)this._$AH.v(e);else{const t=new K(a,this),r=t.u(this.options);t.v(e),this.$(r),this._$AH=t}}_$AC(t){let r=V.get(t.strings);return void 0===r&&V.set(t.strings,r=new G(t)),r}T(t){$(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let e,o=0;for(const a of t)o===r.length?r.push(e=new Q(this.k(M()),this.k(M()),this,this.options)):e=r[o],e._$AI(a),o++;o<r.length&&(this._$AR(e&&e._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,r);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var r;void 0===this._$AM&&(this._$Cp=t,null===(r=this._$AP)||void 0===r||r.call(this,t))}}class X{constructor(t,r,e,o,a){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=a,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,e,o){const a=this.strings;let i=!1;if(void 0===a)t=Z(this,t,r,0),i=!T(t)||t!==this._$AH&&t!==F,i&&(this._$AH=t);else{const o=t;let n,s;for(t=a[0],n=0;n<a.length-1;n++)s=Z(this,o[e+n],r,n),s===F&&(s=this._$AH[n]),i||(i=!T(s)||s!==this._$AH[n]),s===q?t=q:t!==q&&(t+=(null!=s?s:"")+a[n+1]),this._$AH[n]=s}i&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=k?k.emptyScript:"";class et extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class ot extends X{constructor(t,r,e,o,a){super(t,r,e,o,a),this.type=5}_$AI(t,r=this){var e;if((t=null!==(e=Z(this,t,r,0))&&void 0!==e?e:q)===F)return;const o=this._$AH,a=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==q&&(o===q||a);a&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(r=this.options)||void 0===r?void 0:r.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,r,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const it=y.litHtmlPolyfillSupport;null==it||it(G,Q),(null!==(w=y.litHtmlVersions)&&void 0!==w?w:y.litHtmlVersions=[]).push("2.8.0");var nt,st;class lt extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return null!==(t=(r=this.renderOptions).renderBefore)&&void 0!==t||(r.renderBefore=e.firstChild),e}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,r,e)=>{var o,a;const i=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:r;let n=i._$litPart$;if(void 0===n){const t=null!==(a=null==e?void 0:e.renderBefore)&&void 0!==a?a:null;i._$litPart$=n=new Q(r.insertBefore(M(),t),t,void 0,null!=e?e:{})}return n._$AI(t),n})(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return F}}lt.finalized=!0,lt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:lt});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:lt});(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.3.3");const ct=l`@charset "UTF-8";/*!
* Bootstrap v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors
* Copyright 2011-2022 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/:host{--bs-blue:var(--primary);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--primary);--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-body-color-rgb:33,37,41;--bs-body-bg-rgb:255,255,255;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-2xl:2rem;--bs-border-radius-pill:50rem;--bs-link-color:var(--primary);--bs-link-hover-color:#0c1419;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.