@flarehr/apollo-customer-workplace-link 1.3.33920 → 1.3.34040
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/check-b48de75e.svg +3 -0
- package/build/assets/left-arrow-38f55b24.svg +1 -0
- package/build/bundle.esm.js +1649 -94
- package/package.json +29 -60
- package/build/bundle.esm.js.map +0 -1
- package/build/bundle.js +0 -2
- package/build/bundle.js.map +0 -1
- package/build/index.html +0 -1
- package/build/polyfills.esm.js +0 -2
- package/build/polyfills.esm.js.map +0 -1
- package/build/polyfills.js +0 -2
- package/build/polyfills.js.map +0 -1
- package/build/push-manifest.json +0 -1
- /package/build/assets/{apple-store-badge.svg → apple-store-badge-a26fc5b3.svg} +0 -0
- /package/build/assets/{cross-icon.svg → cross-icon-bd6b1cff.svg} +0 -0
- /package/build/assets/{fireworks.png → fireworks-ab74a101.png} +0 -0
- /package/build/assets/{google-play-badge.png → google-play-badge-215e4644.png} +0 -0
package/build/bundle.esm.js
CHANGED
|
@@ -1,37 +1,10 @@
|
|
|
1
|
-
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="mdyV")}({"/KrD":function(e,t,n){"use strict";(function(e,r){var i=n("QRet"),o=n("rOe0"),s=n("C6iT"),a=n("cWc2"),u=n("ue2Z"),c=n("zARr");const l=["+","Backspace","Delete",...[...Array(10).keys()].map(String)],h=e=>e.startsWith("+"),d=e=>"0"===e||"04"===e.substring(0,2);t.a=()=>{const{authState:t,sendOtp:n}=Object(a.a)(),[f,A]=Object(i.k)(""),[p,g]=Object(i.k)(""),m=Object(i.h)((()=>h(f)||d(f)),[f]),M=Object(i.a)((e=>{l.find((t=>t===e.key))||e.preventDefault()}),[]),v=Object(i.a)((e=>{const t=(e=>e.replace(/ /g,""))(e.currentTarget.value),n=d(t)?Object(c.a)("#### ### ### ### ### ### ###",t):t;A(n)}),[A]),y=Object(i.a)((async()=>{const e=h(f)?f:`+61${f}`;await n(e)}),[n,f]);return Object(i.d)((()=>{g("error"===t.state&&"sending"===t.occuredWhen?t.error:"")}),[t]),Object(i.d)((()=>{g(f&&!m?u.a.INVALID_PHONE_NUMBER:"")}),[f,m]),e(r,null,e(o.g,null,"Enter your mobile number"),e(o.f,null,"Connect your workplace to Flare using your personal mobile number"),e(o.c,null,"Mobile number"),e(o.b,{type:"tel",autoFocus:!0,placeholder:"0400 000 000","aria-label":"Mobile number",value:f,onInput:v,onKeyDown:M}),e(o.a,null,p),e(s.a,{onClick:y,disabled:!m},e(r,null,"Continue")))}}).call(this,n("hosL").h,n("hosL").Fragment)},"/hs+":function(e,t,n){"use strict";function r(){return(r=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}).apply(this,arguments)}function i(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,["context","children"]);return Object(h.cloneElement)(t,n)}function o(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Object(h.h)(i,r({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],i={},o=0,a=t.attributes,u=t.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[s(a[o].name)]=a[o].value);for(o=u.length;o--;){var l=e(u[o],null),d=u[o].slot;d?i[d]=Object(h.h)(c,{name:d},l):r[o]=l}var f=n?Object(h.h)(c,null,r):r;return Object(h.h)(n||t.nodeName.toLowerCase(),i,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?h.hydrate:h.render)(this._vdom,this._root)}function s(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function a(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[s(e)]=n,this._vdom=Object(h.cloneElement)(this._vdom,r),Object(h.render)(this._vdom,this._root)}}function u(){Object(h.render)(this._vdom=null,this._root)}function c(e,t){var n=this;return Object(h.h)("slot",r({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}n.r(t);var l=n("98EO"),h=n("hosL");!function(e,t,n,r){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=o,i.prototype.attributeChangedCallback=a,i.prototype.disconnectedCallback=u,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach((function(e){Object.defineProperty(i.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,i)}(l.a,"workplace-link",["backend-url","access-token"],{shadow:!1})},"1PO9":function(e,t,n){"use strict";function r(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 i(){return i=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},i.apply(this,arguments)}function o(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}function s(e,...t){ze.logLevel<=Se.a.ERROR&&ze.error(`Auth (${Oe.a}): ${e}`,...t)}function a(e,...t){throw l(e,...t)}function u(e,...t){return l(e,...t)}function c(e,t,n){const r=i(i({},ke()),{[t]:n});return new be.b("auth","Firebase",r).create(t,{appName:e.name})}function l(e,...t){if("string"!=typeof e){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return _e.create(e,...t)}function h(e,t,...n){if(!e)throw l(t,...n)}function d(e){const t="INTERNAL ASSERTION FAILED: "+e;throw s(t),new Error(t)}function f(e,t){e||d(t)}function A(e){f(e instanceof Function,"Expected a class definition");let t=Re.get(e);return t?(f(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Re.set(e,t),t)}function p(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function g(){return"http:"===m()||"https:"===m()}function m(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}function M(e,t){f(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}function v(e,t){return e.tenantId&&!t.tenantId?i(i({},t),{tenantId:e.tenantId}):t}async function y(e,t,n,r,o={}){return I(e,o,(async()=>{let o={},s={};r&&("GET"===t?s=r:o={body:JSON.stringify(r)});const a=Object(be.t)(i({key:e.config.apiKey},s)).slice(1),u=await e._getAdditionalHeaders();return u["Content-Type"]="application/json",e.languageCode&&(u["X-Firebase-Locale"]=e.languageCode),Ue.fetch()(E(e,e.config.apiHost,n,a),i({method:t,headers:u,referrerPolicy:"no-referrer"},o))}))}async function I(e,t,n){e._canInitEmulator=!1;const r=i(i({},Be),t);try{const t=new Ye(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw D(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const t=i.ok?o.errorMessage:o.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw D(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===n)throw D(e,"email-already-in-use",o);if("USER_DISABLED"===n)throw D(e,"user-disabled",o);const u=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw c(e,u,s);a(e,u)}}catch(t){if(t instanceof be.c)throw t;a(e,"network-request-failed")}}async function w(e,t,n,r,i={}){const o=await y(e,t,n,r,i);return"mfaPendingCredential"in o&&a(e,"multi-factor-auth-required",{_serverResponse:o}),o}function E(e,t,n,r){const i=`${t}${n}?${r}`;return e.config.emulator?M(e.config,i):`${e.config.apiScheme}://${i}`}function D(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=u(e,t,r);return i.customData._tokenResponse=n,i}function N(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}function T(e){return 1e3*Number(e)}function L(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return s("JWT malformed, contained fewer than 3 sections"),null;try{const e=Object(be.d)(n);return e?JSON.parse(e):(s("Failed to decode base64 JWT payload"),null)}catch(e){return s("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}async function C(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof be.c&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}async function b(e){var t;const n=e.auth,o=await e.getIdToken(),s=await C(e,async function(e,t){return y(e,"POST","/v1/accounts:lookup",t)}(n,{idToken:o}));h(null==s?void 0:s.users.length,n,"internal-error");const a=s.users[0];e._notifyReloadListener(a);const u=(null===(t=a.providerUserInfo)||void 0===t?void 0:t.length)?a.providerUserInfo.map((e=>{var{providerId:t}=e,n=r(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})):[];const c=(l=u,[...e.providerData.filter((e=>!l.some((t=>t.providerId===e.providerId)))),...l]);var l;const d=!!e.isAnonymous&&!(e.email&&a.passwordHash||(null==c?void 0:c.length));i(e,{uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:c,metadata:new Je(a.createdAt,a.lastLoginAt),isAnonymous:d})}function O(e,t){h("string"==typeof e||void 0===e,"internal-error",{appName:t})}function S(e,t,n){return`firebase:${e}:${t}:${n}`}function j(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(z(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(k(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(P(t))return"Blackberry";if(U(t))return"Webos";if(_(t))return"Safari";if((t.includes("chrome/")||x(t))&&!t.includes("edge/"))return"Chrome";if(R(t))return"Android";{const t=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==t?void 0:t.length))return t[1]}return"Other"}function k(e=Object(be.m)()){return/firefox\//i.test(e)}function _(e=Object(be.m)()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function x(e=Object(be.m)()){return/crios\//i.test(e)}function z(e=Object(be.m)()){return/iemobile/i.test(e)}function R(e=Object(be.m)()){return/android/i.test(e)}function P(e=Object(be.m)()){return/blackberry/i.test(e)}function U(e=Object(be.m)()){return/webos/i.test(e)}function B(e=Object(be.m)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Q(e=Object(be.m)()){return B(e)||R(e)||U(e)||P(e)||/windows phone/i.test(e)||z(e)}function Y(e,t=[]){let n;switch(e){case"Browser":n=j(Object(be.m)());break;case"Worker":n=`${j(Object(be.m)())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Oe.a}/${r}`}function F(e){return Object(be.l)(e)}function J(e,t,n){const r=F(e);h(r._canInitEmulator,r,"emulator-config-failed"),h(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null==n?void 0:n.disableWarnings),o=H(t),{host:s,port:a}=function(e){const t=H(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:V(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:V(t)}}}(t);r.config.emulator={url:`${o}//${s}${null===a?"":`:${a}`}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.");"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function H(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function V(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}async function W(e,t){return y(e,"POST","/v1/accounts:update",t)}async function G(e,t){return w(e,"POST","/v1/accounts:signInWithIdp",v(e,t))}function K(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}function X(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if("auth/multi-factor-auth-required"===n.code)throw ft._fromErrorAndOperation(e,n,t,r);throw n}))}async function q(e,t,n=!1){const r=await C(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return dt._forOperation(e,"link",r)}async function Z(e,t,n=!1){const{auth:r}=e,i="reauthenticate";try{const o=await C(e,X(r,i,t,e),n);h(o.idToken,r,"internal-error");const s=L(o.idToken);h(s,r,"internal-error");const{sub:a}=s;return h(e.uid===a,r,"user-mismatch"),dt._forOperation(e,i,o)}catch(e){throw"auth/user-not-found"===(null==e?void 0:e.code)&&a(r,"user-mismatch"),e}}async function $(e,t,n=!1){const r="signIn",i=await X(e,r,t),o=await dt._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}async function ee(e,t){return $(F(e),t)}function te(e="",t=10){let n="";for(let e=0;e<t;e++)n+=Math.floor(10*Math.random());return e+n}function ne(){return window}function re(){return void 0!==ne().WorkerGlobalScope&&"function"==typeof ne().importScripts}function ie(e,t){return e.transaction([Et],t?"readwrite":"readonly").objectStore(Et)}function oe(){const e=indexedDB.open(wt,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(Et,{keyPath:Dt})}catch(e){n(e)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(Et)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(wt);return new Nt(e).toPromise()}(),t(await oe()))}))}))}async function se(e,t,n){const r=ie(e,!0).put({[Dt]:t,value:n});return new Nt(r).toPromise()}function ae(e,t){const n=ie(e,!0).delete(t);return new Nt(n).toPromise()}function ue(e){return new Promise(((t,n)=>{const r=document.createElement("script");var i,o;r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=u("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",(null!==(o=null===(i=document.getElementsByTagName("head"))||void 0===i?void 0:i[0])&&void 0!==o?o:document).appendChild(r)}))}function ce(e){return`__${e}${Math.floor(1e6*Math.random())}`}async function le(e,t,n){var r;const i=await n.verify();try{let o;if(h("string"==typeof i,e,"argument-error"),h(n.type===xt,e,"argument-error"),o="string"==typeof t?{phoneNumber:t}:t,"session"in o){const t=o.session;if("phoneNumber"in o){h("enroll"===t.type,e,"internal-error");const n=await function(e,t){return y(e,"POST","/v2/accounts/mfaEnrollment:start",v(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{h("signin"===t.type,e,"internal-error");const n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;h(n,e,"missing-multi-factor-info");const s=await function(e,t){return y(e,"POST","/v2/accounts/mfaSignIn:start",v(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return s.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return y(e,"POST","/v1/accounts:sendVerificationCode",v(e,t))}(e,{phoneNumber:o.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}function he(e,t){return t?A(t):(h(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}function de(e){return $(e.auth,new Ut(e),e.bypassAuthState)}function fe(e){const{auth:t,user:n}=e;return h(n,t,"internal-error"),Z(n,new Ut(e),e.bypassAuthState)}async function Ae(e){const{auth:t,user:n}=e;return h(n,t,"internal-error"),q(n,new Ut(e),e.bypassAuthState)}function pe(e,t){Ft.set(e._key(),t)}function ge(e){return A(e._redirectPersistence)}function me(e){return S("pendingRedirect",e.config.apiKey,e.name)}async function Me(e,t,n=!1){const r=F(e),i=he(r,t),o=new Jt(r,i,n),s=await o.execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}function ve(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function ye({type:e,error:t}){return"unknown"===e&&"auth/no-auth-event"===(null==t?void 0:t.code)}async function Ie(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e,t={}){return y(e,"GET","/v1/projects",t)}(e);for(const e of t)try{if(we(e))return}catch(e){}a(e,"unauthorized-domain")}function we(e){const t=p(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!Wt.test(n))return!1;if(Vt.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}function Ee(){const e=ne().___jsl;if(null==e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}function De(e){return Kt=Kt||function(e){return new Promise(((t,n)=>{function r(){Ee(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{Ee(),n(u(e,"network-request-failed"))},timeout:Gt.get()})}var i,o,s;if(null===(o=null===(i=ne().gapi)||void 0===i?void 0:i.iframes)||void 0===o?void 0:o.Iframe)t(gapi.iframes.getContext());else{if(!(null===(s=ne().gapi)||void 0===s?void 0:s.load)){const t=ce("iframefcb");return ne()[t]=()=>{gapi.load?r():n(u(e,"network-request-failed"))},ue(`https://apis.google.com/js/api.js?onload=${t}`).catch((e=>n(e)))}r()}})).catch((e=>{throw Kt=null,e}))}(e),Kt}function Ne(e){const t=e.config;h(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?M(t,"emulator/auth/iframe"):`https://${e.config.authDomain}/__/auth/iframe`,r={apiKey:t.apiKey,appName:e.name,v:Oe.a},i=Zt.get(e.config.apiHost);i&&(r.eid=i);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${Object(be.t)(r).slice(1)}`}function Te(e,t,n,r=500,o=600){const s=Math.max((window.screen.availHeight-o)/2,0).toString(),a=Math.max((window.screen.availWidth-r)/2,0).toString();let u="";const c=i(i({},$t),{width:r.toString(),height:o.toString(),top:s,left:a}),l=Object(be.m)().toLowerCase();n&&(u=x(l)?"_blank":n),k(l)&&(t=t||"http://localhost",c.scrollbars="yes");const d=Object.entries(c).reduce(((e,[t,n])=>`${e}${t}=${n},`),"");if(function(e=Object(be.m)()){var t;return B(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(l)&&"_self"!==u)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",u),new en(null);const f=window.open(t||"",u,d);h(f,e,"popup-blocked");try{f.focus()}catch(e){}return new en(f)}function Le(e,t,n,r,i,o){h(e.config.authDomain,e,"auth-domain-config-required"),h(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Oe.a,eventId:i};if(t instanceof st){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",Object(be.o)(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(o||{}))s[e]=t}if(t instanceof at){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(s.scopes=e.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const e of Object.keys(a))void 0===a[e]&&delete a[e];return`${function({config:e}){if(!e.emulator)return`https://${e.authDomain}/${tn}`;return M(e,nn)}(e)}?${Object(be.t)(a).slice(1)}`}function Ce(e=Object(Oe.d)()){const t=Object(Oe.b)(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=Object(Oe.b)(e,"auth");if(n.isInitialized()){const e=n.getImmediate(),r=n.getOptions();if(Object(be.g)(r,null!=t?t:{}))return e;a(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:on,persistence:[Lt,mt,vt]}),r=Object(be.k)("authTokenSyncURL");if(r){const e=(i=r,async e=>{const t=e&&await e.getIdTokenResult(),n=t&&((new Date).getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>cn)return;const r=null==t?void 0:t.token;ln!==r&&(ln=r,await fetch(i,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))});!function(e,t,n){Object(be.l)(e).beforeAuthStateChanged(t,n)}(n,e,(()=>e(n.currentUser))),function(e,t,n,r){Object(be.l)(e).onIdTokenChanged(t,n,r)}(n,(t=>e(t)))}var i;const o=Object(be.j)("auth");return o&&J(n,`http://${o}`),n}n.d(t,"a",(function(){return xe})),n.d(t,"b",(function(){return Pt})),n.d(t,"c",(function(){return Rt})),n.d(t,"d",(function(){return Ce})),n.d(t,"e",(function(){return Ge})),n.d(t,"f",(function(){return ee}));var be=n("8HXZ"),Oe=n("xsHj"),Se=n("li6C"),je=n("SgqZ");const ke=o,_e=new be.b("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),xe={ADMIN_ONLY_OPERATION:"auth/admin-restricted-operation",ARGUMENT_ERROR:"auth/argument-error",APP_NOT_AUTHORIZED:"auth/app-not-authorized",APP_NOT_INSTALLED:"auth/app-not-installed",CAPTCHA_CHECK_FAILED:"auth/captcha-check-failed",CODE_EXPIRED:"auth/code-expired",CORDOVA_NOT_READY:"auth/cordova-not-ready",CORS_UNSUPPORTED:"auth/cors-unsupported",CREDENTIAL_ALREADY_IN_USE:"auth/credential-already-in-use",CREDENTIAL_MISMATCH:"auth/custom-token-mismatch",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"auth/requires-recent-login",DEPENDENT_SDK_INIT_BEFORE_AUTH:"auth/dependent-sdk-initialized-before-auth",DYNAMIC_LINK_NOT_ACTIVATED:"auth/dynamic-link-not-activated",EMAIL_CHANGE_NEEDS_VERIFICATION:"auth/email-change-needs-verification",EMAIL_EXISTS:"auth/email-already-in-use",EMULATOR_CONFIG_FAILED:"auth/emulator-config-failed",EXPIRED_OOB_CODE:"auth/expired-action-code",EXPIRED_POPUP_REQUEST:"auth/cancelled-popup-request",INTERNAL_ERROR:"auth/internal-error",INVALID_API_KEY:"auth/invalid-api-key",INVALID_APP_CREDENTIAL:"auth/invalid-app-credential",INVALID_APP_ID:"auth/invalid-app-id",INVALID_AUTH:"auth/invalid-user-token",INVALID_AUTH_EVENT:"auth/invalid-auth-event",INVALID_CERT_HASH:"auth/invalid-cert-hash",INVALID_CODE:"auth/invalid-verification-code",INVALID_CONTINUE_URI:"auth/invalid-continue-uri",INVALID_CORDOVA_CONFIGURATION:"auth/invalid-cordova-configuration",INVALID_CUSTOM_TOKEN:"auth/invalid-custom-token",INVALID_DYNAMIC_LINK_DOMAIN:"auth/invalid-dynamic-link-domain",INVALID_EMAIL:"auth/invalid-email",INVALID_EMULATOR_SCHEME:"auth/invalid-emulator-scheme",INVALID_IDP_RESPONSE:"auth/invalid-credential",INVALID_MESSAGE_PAYLOAD:"auth/invalid-message-payload",INVALID_MFA_SESSION:"auth/invalid-multi-factor-session",INVALID_OAUTH_CLIENT_ID:"auth/invalid-oauth-client-id",INVALID_OAUTH_PROVIDER:"auth/invalid-oauth-provider",INVALID_OOB_CODE:"auth/invalid-action-code",INVALID_ORIGIN:"auth/unauthorized-domain",INVALID_PASSWORD:"auth/wrong-password",INVALID_PERSISTENCE:"auth/invalid-persistence-type",INVALID_PHONE_NUMBER:"auth/invalid-phone-number",INVALID_PROVIDER_ID:"auth/invalid-provider-id",INVALID_RECIPIENT_EMAIL:"auth/invalid-recipient-email",INVALID_SENDER:"auth/invalid-sender",INVALID_SESSION_INFO:"auth/invalid-verification-id",INVALID_TENANT_ID:"auth/invalid-tenant-id",MFA_INFO_NOT_FOUND:"auth/multi-factor-info-not-found",MFA_REQUIRED:"auth/multi-factor-auth-required",MISSING_ANDROID_PACKAGE_NAME:"auth/missing-android-pkg-name",MISSING_APP_CREDENTIAL:"auth/missing-app-credential",MISSING_AUTH_DOMAIN:"auth/auth-domain-config-required",MISSING_CODE:"auth/missing-verification-code",MISSING_CONTINUE_URI:"auth/missing-continue-uri",MISSING_IFRAME_START:"auth/missing-iframe-start",MISSING_IOS_BUNDLE_ID:"auth/missing-ios-bundle-id",MISSING_OR_INVALID_NONCE:"auth/missing-or-invalid-nonce",MISSING_MFA_INFO:"auth/missing-multi-factor-info",MISSING_MFA_SESSION:"auth/missing-multi-factor-session",MISSING_PHONE_NUMBER:"auth/missing-phone-number",MISSING_SESSION_INFO:"auth/missing-verification-id",MODULE_DESTROYED:"auth/app-deleted",NEED_CONFIRMATION:"auth/account-exists-with-different-credential",NETWORK_REQUEST_FAILED:"auth/network-request-failed",NULL_USER:"auth/null-user",NO_AUTH_EVENT:"auth/no-auth-event",NO_SUCH_PROVIDER:"auth/no-such-provider",OPERATION_NOT_ALLOWED:"auth/operation-not-allowed",OPERATION_NOT_SUPPORTED:"auth/operation-not-supported-in-this-environment",POPUP_BLOCKED:"auth/popup-blocked",POPUP_CLOSED_BY_USER:"auth/popup-closed-by-user",PROVIDER_ALREADY_LINKED:"auth/provider-already-linked",QUOTA_EXCEEDED:"auth/quota-exceeded",REDIRECT_CANCELLED_BY_USER:"auth/redirect-cancelled-by-user",REDIRECT_OPERATION_PENDING:"auth/redirect-operation-pending",REJECTED_CREDENTIAL:"auth/rejected-credential",SECOND_FACTOR_ALREADY_ENROLLED:"auth/second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"auth/maximum-second-factor-count-exceeded",TENANT_ID_MISMATCH:"auth/tenant-id-mismatch",TIMEOUT:"auth/timeout",TOKEN_EXPIRED:"auth/user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"auth/too-many-requests",UNAUTHORIZED_DOMAIN:"auth/unauthorized-continue-uri",UNSUPPORTED_FIRST_FACTOR:"auth/unsupported-first-factor",UNSUPPORTED_PERSISTENCE:"auth/unsupported-persistence-type",UNSUPPORTED_TENANT_OPERATION:"auth/unsupported-tenant-operation",UNVERIFIED_EMAIL:"auth/unverified-email",USER_CANCELLED:"auth/user-cancelled",USER_DELETED:"auth/user-not-found",USER_DISABLED:"auth/user-disabled",USER_MISMATCH:"auth/user-mismatch",USER_SIGNED_OUT:"auth/user-signed-out",WEAK_PASSWORD:"auth/weak-password",WEB_STORAGE_UNSUPPORTED:"auth/web-storage-unsupported",ALREADY_INITIALIZED:"auth/already-initialized"},ze=new Se.b("@firebase/auth"),Re=new Map;class Pe{constructor(e,t){this.shortDelay=e,this.longDelay=t,f(t>e,"Short delay should be less than long delay!"),this.isMobile=Object(be.r)()||Object(be.s)()}get(){return"undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(g()||Object(be.n)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}class Ue{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:void d("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:void d("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:void d("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Be={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error"},Qe=new Pe(3e4,6e4);class Ye{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(u(this.auth,"network-request-failed"))),Qe.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}class Fe{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){var t=this;if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout((async function(){await t.iteration()}),n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void("auth/network-request-failed"===(null==e?void 0:e.code)&&this.schedule(!0))}this.schedule()}}class Je{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=N(this.lastLoginAt),this.creationTime=N(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}class He{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){h(e.idToken,"internal-error"),h(void 0!==e.idToken,"internal-error"),h(void 0!==e.refreshToken,"internal-error");const t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):function(e){const t=L(e);return h(t,"internal-error"),h(void 0!==t.exp,"internal-error"),h(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e,t=!1){return h(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired?this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await I(e,{},(async()=>{const n=Object(be.t)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,o=E(e,r,"/v1/token",`key=${i}`),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/x-www-form-urlencoded",Ue.fetch()(o,{method:"POST",headers:s,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,o=new He;return n&&(h("string"==typeof n,"internal-error",{appName:e}),o.refreshToken=n),r&&(h("string"==typeof r,"internal-error",{appName:e}),o.accessToken=r),i&&(h("number"==typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return i(new He,this.toJSON())}_performRefresh(){return d("not implemented")}}class Ve{constructor(e){var{uid:t,auth:n,stsTokenManager:i}=e,o=r(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Fe(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new Je(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(e){const t=await C(this,this.stsTokenManager.getToken(this.auth,e));return h(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e,t=!1){const n=Object(be.l)(e),r=await n.getIdToken(t),i=L(r);h(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o="object"==typeof i.firebase?i.firebase:void 0,s=null==o?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:N(T(i.auth_time)),issuedAtTime:N(T(i.iat)),expirationTime:N(T(i.exp)),signInProvider:s||null,signInSecondFactor:(null==o?void 0:o.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=Object(be.l)(e);await b(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(h(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>i({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){return new Ve(i(i({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}))}_onReload(e){h(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await b(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await C(this,async function(e,t){return y(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return i(i({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>i({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,o,s,a,u,c,l;const d=null!==(n=t.displayName)&&void 0!==n?n:void 0,f=null!==(r=t.email)&&void 0!==r?r:void 0,A=null!==(o=t.phoneNumber)&&void 0!==o?o:void 0,p=null!==(s=t.photoURL)&&void 0!==s?s:void 0,g=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(u=t._redirectEventId)&&void 0!==u?u:void 0,M=null!==(c=t.createdAt)&&void 0!==c?c:void 0,v=null!==(l=t.lastLoginAt)&&void 0!==l?l:void 0,{uid:y,emailVerified:I,isAnonymous:w,providerData:E,stsTokenManager:D}=t;h(y&&D,e,"internal-error");const N=He.fromJSON(this.name,D);h("string"==typeof y,e,"internal-error"),O(d,e.name),O(f,e.name),h("boolean"==typeof I,e,"internal-error"),h("boolean"==typeof w,e,"internal-error"),O(A,e.name),O(p,e.name),O(g,e.name),O(m,e.name),O(M,e.name),O(v,e.name);const T=new Ve({uid:y,auth:e,email:f,emailVerified:I,displayName:d,isAnonymous:w,photoURL:p,phoneNumber:A,tenantId:g,stsTokenManager:N,createdAt:M,lastLoginAt:v});return E&&Array.isArray(E)&&(T.providerData=E.map((e=>i({},e)))),m&&(T._redirectEventId=m),T}static async _fromIdTokenResponse(e,t,n=!1){const r=new He;r.updateFromServerResponse(t);const i=new Ve({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await b(i),i}}class We{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}We.type="NONE";const Ge=We;class Ke{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=S(this.userKey,r.apiKey,i),this.fullPersistenceKey=S("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?Ve._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new Ke(A(Ge),e,n);const r=(await Promise.all(t.map((async function(e){if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||A(Ge);const o=S(n,e.config.apiKey,e.name);let s=null;for(const n of t)try{const t=await n._get(o);if(t){const r=Ve._fromJSON(e,t);n!==i&&(s=r),i=n;break}}catch(e){}const a=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&a.length?(i=a[0],s&&await i._set(o,s.toJSON()),await Promise.all(t.map((async function(e){if(e!==i)try{await e._remove(o)}catch(e){}}))),new Ke(i,e,n)):new Ke(i,e,n)}}class Xe{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(e){r(e)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){t.reverse();for(const e of t)try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}class qe{constructor(e,t,n){this.app=e,this.heartbeatServiceProvider=t,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ze(this),this.idTokenSubscription=new Ze(this),this.beforeStateQueue=new Xe(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=_e,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,t){var n=this;return t&&(this._popupRedirectResolver=A(t)),this._initializationPromise=this.queue((async function(){var r,i;if(!n._deleted&&(n.persistenceManager=await Ke.create(n,e),!n._deleted)){if(null===(r=n._popupRedirectResolver)||void 0===r?void 0:r._shouldInitProactively)try{await n._popupRedirectResolver._initialize(n)}catch(e){}await n.initializeCurrentUser(t),n.lastNotifiedUid=(null===(i=n.currentUser)||void 0===i?void 0:i.uid)||null,n._deleted||(n._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUser(e){var t;const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,o=null==r?void 0:r._redirectEventId,s=await this.tryRedirectSignIn(e);n&&n!==o||!(null==s?void 0:s.user)||(r=s.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(e){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(e)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return h(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await b(e)}catch(e){if("auth/network-request-failed"!==(null==e?void 0:e.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const t=e?Object(be.l)(e):null;return t&&h(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){var n=this;if(!this._deleted)return e&&h(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async function(){await n.directlySetCurrentUser(e),n.notifyAuthListeners()}))}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){var t=this;return this.queue((async function(){await t.assertedPersistence.setPersistence(A(e))}))}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new be.b("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&A(e)||this._popupRedirectResolver;h(t,this,"argument-error"),this.redirectPersistenceManager=await Ke.create(this,[A(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async function(){})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){var t=this;if(e===this.currentUser)return this.queue((async function(){return t.directlySetCurrentUser(e)}))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"==typeof t?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return h(o,this,"internal-error"),o.then((()=>i(this.currentUser))),"function"==typeof t?e.addObserver(t,n,r):e.addObserver(t)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return h(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Y(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());return n&&(t["X-Firebase-Client"]=n),t}}class Ze{constructor(e){this.auth=e,this.observer=null,this.addObserver=Object(be.f)((e=>this.observer=e))}get next(){return h(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}class $e{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return d("not implemented")}_getIdTokenResponse(e){return d("not implemented")}_linkToIdToken(e,t){return d("not implemented")}_getReauthenticationResolver(e){return d("not implemented")}}class et extends $e{constructor(e,t,n,r=null){super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new et(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new et(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return async function(e,t){return w(e,"POST","/v1/accounts:signInWithPassword",v(e,t))}(e,{returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return async function(e,t){return w(e,"POST","/v1/accounts:signInWithEmailLink",v(e,t))}(e,{email:this._email,oobCode:this._password});default:a(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return W(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return async function(e,t){return w(e,"POST","/v1/accounts:signInWithEmailLink",v(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:a(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}class tt extends $e{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new tt(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):a("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:i}=t,o=r(t,["providerId","signInMethod"]);if(!n||!i)return null;const s=new tt(n,i);return s.idToken=o.idToken||void 0,s.accessToken=o.accessToken||void 0,s.secret=o.secret,s.nonce=o.nonce,s.pendingToken=o.pendingToken||null,s}_getIdTokenResponse(e){return G(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,G(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,G(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=Object(be.t)(t)}return e}}const nt={USER_NOT_FOUND:"user-not-found"};class rt extends $e{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new rt({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new rt({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return w(e,"POST","/v1/accounts:signInWithPhoneNumber",v(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await w(e,"POST","/v1/accounts:signInWithPhoneNumber",v(e,t));if(n.temporaryProof)throw D(e,"account-exists-with-different-credential",n);return n}(e,i({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return w(e,"POST","/v1/accounts:signInWithPhoneNumber",v(e,i(i({},t),{operation:"REAUTH"})),nt)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new rt({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class it{constructor(e){var t,n,r,i,o,s;const a=Object(be.u)(Object(be.h)(e)),u=null!==(t=a.apiKey)&&void 0!==t?t:null,c=null!==(n=a.oobCode)&&void 0!==n?n:null,l=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=a.mode)&&void 0!==r?r:null);h(u&&c&&l,"argument-error"),this.apiKey=u,this.operation=l,this.code=c,this.continueUrl=null!==(i=a.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(o=a.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(s=a.tenantId)&&void 0!==s?s:null}static parseLink(e){const t=function(e){const t=Object(be.u)(Object(be.h)(e)).link,n=t?Object(be.u)(Object(be.h)(t)).deep_link_id:null,r=Object(be.u)(Object(be.h)(e)).deep_link_id;return(r?Object(be.u)(Object(be.h)(r)).link:null)||r||n||t||e}(e);try{return new it(t)}catch(e){return null}}}class ot{constructor(){this.providerId=ot.PROVIDER_ID}static credential(e,t){return et._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=it.parseLink(t);return h(n,"argument-error"),et._fromEmailAndCode(e,n.code,n.tenantId)}}ot.PROVIDER_ID="password",ot.EMAIL_PASSWORD_SIGN_IN_METHOD="password",ot.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class st{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class at extends st{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class ut extends at{constructor(){super("facebook.com")}static credential(e){return tt._fromParams({providerId:ut.PROVIDER_ID,signInMethod:ut.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return ut.credentialFromTaggedObject(e)}static credentialFromError(e){return ut.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return ut.credential(e.oauthAccessToken)}catch(e){return null}}}ut.FACEBOOK_SIGN_IN_METHOD="facebook.com",ut.PROVIDER_ID="facebook.com";class ct extends at{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return tt._fromParams({providerId:ct.PROVIDER_ID,signInMethod:ct.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return ct.credentialFromTaggedObject(e)}static credentialFromError(e){return ct.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return ct.credential(t,n)}catch(e){return null}}}ct.GOOGLE_SIGN_IN_METHOD="google.com",ct.PROVIDER_ID="google.com";class lt extends at{constructor(){super("github.com")}static credential(e){return tt._fromParams({providerId:lt.PROVIDER_ID,signInMethod:lt.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return lt.credentialFromTaggedObject(e)}static credentialFromError(e){return lt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return lt.credential(e.oauthAccessToken)}catch(e){return null}}}lt.GITHUB_SIGN_IN_METHOD="github.com",lt.PROVIDER_ID="github.com";class ht extends at{constructor(){super("twitter.com")}static credential(e,t){return tt._fromParams({providerId:ht.PROVIDER_ID,signInMethod:ht.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return ht.credentialFromTaggedObject(e)}static credentialFromError(e){return ht.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return ht.credential(t,n)}catch(e){return null}}}ht.TWITTER_SIGN_IN_METHOD="twitter.com",ht.PROVIDER_ID="twitter.com";class dt{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){const i=await Ve._fromIdTokenResponse(e,n,r),o=K(n);return new dt({user:i,providerId:o,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=K(n);return new dt({user:e,providerId:r,_tokenResponse:n,operationType:t})}}class ft extends be.c{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,ft.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new ft(e,t,n,r)}}new WeakMap;const At="__sak";class pt{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(At,"1"),this.storage.removeItem(At),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class gt extends pt{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=Object(be.m)();return _(e)||B(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=Q(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);Object(be.p)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}gt.type="LOCAL";const mt=gt;class Mt extends pt{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}Mt.type="SESSION";const vt=Mt;class yt{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new yt(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,o=this.handlersMap[r];if(!(null==o?void 0:o.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const s=Array.from(o).map((async function(e){return e(t.origin,i)})),a=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(e){return{fulfilled:!1,reason:e}}})))}(s);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}yt.receivers=[];class It{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const r="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise(((s,a)=>{const u=te("",20);r.port1.start();const c=setTimeout((()=>{a(new Error("unsupported_event"))}),n);o={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===u)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout((()=>{a(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),s(t.data.response);break;default:clearTimeout(c),clearTimeout(i),a(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:u,data:t},[r.port2])})).finally((()=>{o&&this.removeMessageHandler(o)}))}}const wt="firebaseLocalStorageDb",Et="firebaseLocalStorage",Dt="fbase_key";class Nt{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}class Tt{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await oe()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return re()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){var e=this;this.receiver=yt._getInstance(re()?self:null),this.receiver._subscribe("keyChanged",(async function(t,n){return{keyProcessed:(await e._poll()).includes(n.key)}})),this.receiver._subscribe("ping",(async function(){return["keyChanged"]}))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new It(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null===(t=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await oe();return await se(e,At,"1"),await ae(e,At),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){var n=this;return this._withPendingWrite((async function(){return await n._withRetries((n=>se(n,e,t))),n.localCache[e]=t,n.notifyServiceWorker(e)}))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=ie(e,!1).get(t),r=await new Nt(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){var t=this;return this._withPendingWrite((async function(){return await t._withRetries((t=>ae(t,e))),delete t.localCache[e],t.notifyServiceWorker(e)}))}async _poll(){const e=await this._withRetries((e=>{const t=ie(e,!1).getAll();return new Nt(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const e of Object.keys(this.localCache))this.localCache[e]&&!n.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t)}startPolling(){var e=this;this.stopPolling(),this.pollTimer=setInterval((async function(){return e._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Tt.type="LOCAL";const Lt=Tt,Ct=1e12;class bt{constructor(e){this.auth=e,this.counter=Ct,this._widgets=new Map}render(e,t){const n=this.counter;return this._widgets.set(n,new Ot(e,this.auth.name,t||{})),this.counter++,n}reset(e){var t;const n=e||Ct;null===(t=this._widgets.get(n))||void 0===t||t.delete(),this._widgets.delete(n)}getResponse(e){var t;return(null===(t=this._widgets.get(e||Ct))||void 0===t?void 0:t.getResponse())||""}async execute(e){var t;return null===(t=this._widgets.get(e||Ct))||void 0===t||t.execute(),""}}class Ot{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const r="string"==typeof e?document.getElementById(e):e;h(r,"argument-error",{appName:t}),this.container=r,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout((()=>{this.responseToken=function(e){const t=[],n="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let r=0;r<e;r++)t.push(n.charAt(Math.floor(Math.random()*n.length)));return t.join("")}(50);const{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(e){}this.timerId=window.setTimeout((()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(e){}this.isVisible&&this.execute()}),6e4)}),500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const St=ce("rcb"),jt=new Pe(3e4,6e4);class kt{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(e=ne().grecaptcha)||void 0===e?void 0:e.render)}load(e,t=""){return h(function(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}(t),e,"argument-error"),this.shouldResolveImmediately(t)?Promise.resolve(ne().grecaptcha):new Promise(((n,r)=>{const i=ne().setTimeout((()=>{r(u(e,"network-request-failed"))}),jt.get());ne()[St]=()=>{ne().clearTimeout(i),delete ne()[St];const o=ne().grecaptcha;if(!o)return void r(u(e,"internal-error"));const s=o.render;o.render=(e,t)=>{const n=s(e,t);return this.counter++,n},this.hostLanguage=t,n(o)};ue(`https://www.google.com/recaptcha/api.js??${Object(be.t)({onload:St,render:"explicit",hl:t})}`).catch((()=>{clearTimeout(i),r(u(e,"internal-error"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=ne().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class _t{async load(e){return new bt(e)}clearedOneInstance(){}}const xt="recaptcha",zt={theme:"light",type:"image"};class Rt{constructor(e,t=i({},zt),n){this.parameters=t,this.type=xt,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=F(n),this.isInvisible="invisible"===this.parameters.size,h("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment");const r="string"==typeof e?document.getElementById(e):e;h(r,this.auth,"argument-error"),this.container=r,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new _t:new kt,this.validateStartingState()}async verify(){this.assertNotDestroyed();const e=await this.render(),t=this.getAssertedRecaptcha(),n=t.getResponse(e);return n||new Promise((n=>{const r=e=>{e&&(this.tokenChangeListeners.delete(r),n(e))};this.tokenChangeListeners.add(r),this.isInvisible&&t.execute(e)}))}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch((e=>{throw this.renderPromise=null,e}))),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach((e=>{this.container.removeChild(e)}))}validateStartingState(){h(!this.parameters.sitekey,this.auth,"argument-error"),h(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),h("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach((e=>e(t))),"function"==typeof e)e(t);else if("string"==typeof e){const n=ne()[e];"function"==typeof n&&n(t)}}}assertNotDestroyed(){h(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){const t=document.createElement("div");e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){h(g()&&!re(),this.auth,"internal-error"),await function(){let e=null;return new Promise((t=>{"complete"!==document.readyState?(e=()=>t(),window.addEventListener("load",e)):t()})).catch((t=>{throw e&&window.removeEventListener("load",e),t}))}(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await async function(e){return(await y(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}(this.auth);h(e,this.auth,"internal-error"),this.parameters.sitekey=e}getAssertedRecaptcha(){return h(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class Pt{constructor(e){this.providerId=Pt.PROVIDER_ID,this.auth=F(e)}verifyPhoneNumber(e,t){return le(this.auth,e,Object(be.l)(t))}static credential(e,t){return rt._fromVerification(e,t)}static credentialFromResult(e){return Pt.credentialFromTaggedObject(e)}static credentialFromError(e){return Pt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{phoneNumber:t,temporaryProof:n}=e;return t&&n?rt._fromTokenResponse(t,n):null}}Pt.PROVIDER_ID="phone",Pt.PHONE_SIGN_IN_METHOD="phone";class Ut extends $e{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return G(e,this._buildIdpRequest())}_linkToIdToken(e,t){return G(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return G(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}class Bt{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){var e=this;return new Promise((async function(t,n){e.pendingPromise={resolve:t,reject:n};try{e.eventManager=await e.resolver._initialize(e.auth),await e.onExecution(),e.eventManager.registerConsumer(e)}catch(t){e.reject(t)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:o,type:s}=e;if(o)return void this.reject(o);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return de;case"linkViaPopup":case"linkViaRedirect":return Ae;case"reauthViaPopup":case"reauthViaRedirect":return fe;default:a(this.auth,"internal-error")}}resolve(e){f(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){f(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const Qt=new Pe(2e3,1e4);class Yt extends Bt{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,Yt.currentPopupAction&&Yt.currentPopupAction.cancel(),Yt.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return h(e,this.auth,"internal-error"),e}async onExecution(){f(1===this.filter.length,"Popup operations only handle one event");const e=te();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(u(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(u(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Yt.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;this.pollId=(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?window.setTimeout((()=>{this.pollId=null,this.reject(u(this.auth,"popup-closed-by-user"))}),2e3):window.setTimeout(e,Qt.get())};e()}}Yt.currentPopupAction=null;const Ft=new Map;class Jt extends Bt{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=Ft.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=me(t),r=ge(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}Ft.set(this.auth._key(),e)}return this.bypassAuthState||Ft.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}class Ht{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return ye(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!ye(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(u(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(ve(e))}saveEventToCache(e){this.cachedEventUids.add(ve(e)),this.lastProcessedEventTime=Date.now()}}const Vt=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Wt=/^https?/,Gt=new Pe(3e4,6e4);let Kt=null;const Xt=new Pe(5e3,15e3),qt={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Zt=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]),$t={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class en{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}const tn="__/auth/handler",nn="emulator/auth/handler",rn="webStorageSupport";const on=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=vt,this._completeRedirectFn=Me,this._overrideRedirectResult=pe}async _openPopup(e,t,n,r){var i;f(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return Te(e,Le(e,t,n,p(),r),te())}async _openRedirect(e,t,n,r){var i;return await this._originValidation(e),i=Le(e,t,n,p(),r),ne().location.href=i,new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(f(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await async function(e){const t=await De(e),n=ne().gapi;return h(n,e,"internal-error"),t.open({where:document.body,url:Ne(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:qt,dontclear:!0},(t=>new Promise((async(n,r)=>{function i(){ne().clearTimeout(s),n(t)}await t.restyle({setHideOnLeave:!1});const o=u(e,"network-request-failed"),s=ne().setTimeout((()=>{r(o)}),Xt.get());t.ping(i).then(i,(()=>{r(o)}))}))))}(e),n=new Ht(e);return t.register("authEvent",(t=>{h(null==t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(rn,{type:rn},(n=>{var r;const i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.webStorageSupport;void 0!==i&&t(!!i),a(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=Ie(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Q()||_()||B()}};var sn="@firebase/auth",an="0.21.1";class un{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){h(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const cn=Object(be.k)("authIdTokenMaxAge")||300;let ln=null;var hn;hn="Browser",Object(Oe.c)(new je.a("auth",((e,{options:t})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),{apiKey:i,authDomain:o}=n.options;return((e,n)=>{h(i&&!i.includes(":"),"invalid-api-key",{appName:e.name}),h(!(null==o?void 0:o.includes(":")),"argument-error",{appName:e.name});const r={apiKey:i,authDomain:o,clientPlatform:hn,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Y(hn)},s=new qe(e,n,r);return function(e,t){const n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(A);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(s,t),s})(n,r)}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e=>{e.getProvider("auth-internal").initialize()}))),Object(Oe.c)(new je.a("auth-internal",(e=>(e=>new un(e))(F(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),Object(Oe.f)(sn,an,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(hn)),Object(Oe.f)(sn,an,"esm2017")},"1kmk":function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return d}));var r=n("czhI"),i=n.n(r);const o=({request:e})=>console.error("[API] Request error:",e),s=({response:e})=>{if(e){const{status:t,request:n,data:r}=e;console.error("[API] Response error:",t,n.responseURL,JSON.stringify(r))}};let a;const u=async e=>{if(a)return a;const t=e.replace(/\/?$/,"");return a=i.a.create({baseURL:`${t}`}),((e,{onRequest:t,onRequestError:n,onResponse:r,onResponseError:i})=>{e.interceptors.request.use((async e=>(t&&await t(e),e)),(async e=>{throw n&&await n(e),e})),e.interceptors.response.use((async e=>(r&&await r(e),e)),(async e=>{throw i&&await i(e),e}))})(a,{onRequestError:o,onResponseError:s}),a},c=(e,t)=>({headers:{Authorization:`Bearer ${e}`},cancelToken:t.token}),l=async(e,t)=>{if(!a)throw new Error("Api has not been initialized");return a.get("customer-profile/backend/v1.0/workplace-link/config",c(e,t)).then((e=>e.data))},h=async(e,t)=>{if(!a)throw new Error("Api has not been initialized");return a.post("customer-profile/backend/v1.0/workplace-link",{},c(e,t)).then((e=>204==e.status?{isEstablished:!0}:{isEstablished:!1,linkRequest:null==e?void 0:e.data}))},d=(e,t,n,r)=>{if(!a)throw new Error("Api has not been initialized");return a.post("customer-profile/customer-backend/v1.0/workplace-link",{linkRequestId:t,profileId:n},c(e,r))}},"2KG9":function(e,t,n){"use strict";var r=n("OmE2");e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},"2Qw/":function(e,t,n){"use strict";(function(e){var r=n("QRet"),i=n("rOe0");const o=/\D/g,s=({onChangeText:t})=>{const n=Object(r.a)((e=>{var t;(null==(t=e.key)?void 0:t.replace(o,""))||e.preventDefault()}),[]);return e(i.i,{type:"text",maxLength:1,onKeyDown:n,onChange:e=>t(e.currentTarget.value),onCopy:e=>e.preventDefault(),onPaste:e=>e.preventDefault(),onDrag:e=>e.preventDefault(),onDrop:e=>e.preventDefault(),onFocus:e=>e.currentTarget.select()})};t.a=({onChangeText:t})=>{const n=Object(r.j)(""),o=Object(r.j)(Array(6).fill(null));Object(r.d)((()=>{var e;const t=null===(e=o.current[0])||void 0===e?void 0:e.base;null==t||t.focus()}),[]);const a=Object(r.a)(((e,r)=>{e&&(e=>{var t;const n=null===(t=o.current[e+1])||void 0===t?void 0:t.base;if(n)n.focus();else{var r;const t=null===(r=o.current[e])||void 0===r?void 0:r.base;null==t||t.blur()}})(r);const i=n.current,s=i.substring(0,r)+e+i.substring(r+1);n.current=s,t(s)}),[t]);return e(i.h,null,Array(6).fill("").map(((t,n)=>e(s,{key:n,ref:e=>o.current[n]=e,onChangeText:e=>{a(e,n)}}))))}}).call(this,n("hosL").h)},"2bma":function(e){e.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyBpZD0ibGl2ZXR5cGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjExOS42NjQwNyIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDExOS42NjQwNyA0MCI+CiAgPHRpdGxlPkRvd25sb2FkX29uX3RoZV9BcHBfU3RvcmVfQmFkZ2VfVVMtVUtfUkdCX2Jsa180U1ZHXzA5MjkxNzwvdGl0bGU+CiAgPGc+CiAgICA8Zz4KICAgICAgPGc+CiAgICAgICAgPHBhdGggZD0iTTExMC4xMzQ3NywwSDkuNTM0NjhjLS4zNjY3LDAtLjcyOSwwLTEuMDk0NzMuMDAyLS4zMDYxNS4wMDItLjYwOTg2LjAwNzgxLS45MTg5NS4wMTI3QTEzLjIxND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MCwwLDEuMTk5MjIsMS4yOSwxLjA3OTM0LDEuMDc5MzQsMCwwLDAsMS4wNzEyOS0uNTQ1OVptLTMuMTI2LTEuNDUxMTdoMi4yNzQ0MWExLjA4NjQ3LDEuMDg2NDcsMCwwLDAtMS4xMDg0LTEuMTY2NUExLjE1MTYyLDEuMTUxNjIsMCwwLDAsMTAxLjYzNTI3LDEyLjAzMDc2WiIgc3R5bGU9ImZpbGw6ICNmZmYiLz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KPC9zdmc+Cg=="},"4OlW":function(e,t,n){"use strict";var r=n("ovh1"),i=n("bRtl");e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},"4jJt":function(e){e.exports={version:"0.24.0"}},"5QbJ":function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"5hdk":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationRequestHandler=t.BUILT_IN_PARAMETERS=t.AuthorizationNotifier=void 0;var r=n("wZHQ"),i=function(){function e(){this.listener=null}return e.prototype.setAuthorizationListener=function(e){this.listener=e},e.prototype.onAuthorizationComplete=function(e,t,n){this.listener&&this.listener(e,t,n)},e}();t.AuthorizationNotifier=i,t.BUILT_IN_PARAMETERS=["redirect_uri","client_id","response_type","state","scope"];var o=function(){function e(e,t){this.utils=e,this.crypto=t,this.notifier=null}return e.prototype.buildRequestUrl=function(e,n){var r={redirect_uri:n.redirectUri,client_id:n.clientId,response_type:n.responseType,state:n.state,scope:n.scope};if(n.extras)for(var i in n.extras)n.extras.hasOwnProperty(i)&&t.BUILT_IN_PARAMETERS.indexOf(i)<0&&(r[i]=n.extras[i]);var o=this.utils.stringify(r);return e.authorizationEndpoint+"?"+o},e.prototype.completeAuthorizationRequestIfPossible=function(){var e=this;return r.log("Checking to see if there is an authorization response to be delivered."),this.notifier||r.log("Notifier is not present on AuthorizationRequest handler.\n No delivery of result will be possible"),this.completeAuthorizationRequest().then((function(t){t||r.log("No result is available yet."),t&&e.notifier&&e.notifier.onAuthorizationComplete(t.request,t.response,t.error)}))},e.prototype.setAuthorizationNotifier=function(e){return this.notifier=e,this},e}();t.AuthorizationRequestHandler=o},"5wDt":function(e){function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},"61Rr":function(e,t,n){function r(e){this.mode=i.MODE_8BIT_BYTE,this.data=e}var i=n("oLW/");r.prototype={getLength:function(){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=r},"6jaY":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_PROFILE=t.IS_LOG=void 0,t.IS_LOG=!0,t.IS_PROFILE=!1},"6s8r":function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"71kK":function(e,t,n){"use strict";var r=n("ovh1");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},"7V6f":function(e,t,n){"use strict";(function(e,r){var i=n("QRet"),o=n("xZFF"),s=n("rOe0"),a=n("C6iT"),u=n("cWc2"),c=n("2Qw/");t.a=()=>{const{authState:t,resendOtp:n,verifyOtp:l}=Object(u.a)(),[h,d]=Object(i.k)(""),f=Object(i.h)((()=>"error"!==t.state||"verifying"!==t.occuredWhen&&"resending"!==t.occuredWhen?void 0:t.error),[t]),A=n,p=Object(i.a)((async()=>{await l(h)}),[l,h]);return e(r,null,e(s.g,null,"Verify your mobile number"),e(s.f,null,"Enter your 6 digit verification code"),e(s.f,null,"Didn't receive a code?"," ",e(o.a,{onClick:A},e(r,null,"Resend"))),e(c.a,{onChangeText:d}),e(s.a,null,f),e(a.a,{disabled:!h,onClick:p},e(r,null,"Verify")))}}).call(this,n("hosL").h,n("hosL").Fragment)},"8HXZ":function(e,t,n){"use strict";(function(e){function r(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function i(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(r())}function o(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function s(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function a(){const e=r();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function u(){try{return"object"==typeof indexedDB}catch(e){return!1}}function c(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}function l(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function h(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(d(n)&&d(o)){if(!h(n,o))return!1}else if(n!==o)return!1}for(const e of r)if(!n.includes(e))return!1;return!0}function d(e){return null!==e&&"object"==typeof e}function f(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function A(e){const t={};return e.replace(/^\?/,"").split("&").forEach((e=>{if(e){const[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function p(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function g(e,t){const n=new j(e,t);return n.subscribe.bind(n)}function m(){}function M(e){return e&&e._delegate?e._delegate:e}n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return I})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return T})),n.d(t,"j",(function(){return N})),n.d(t,"k",(function(){return L})),n.d(t,"l",(function(){return M})),n.d(t,"m",(function(){return r})),n.d(t,"n",(function(){return o})),n.d(t,"o",(function(){return l})),n.d(t,"p",(function(){return a})),n.d(t,"q",(function(){return u})),n.d(t,"r",(function(){return i})),n.d(t,"s",(function(){return s})),n.d(t,"t",(function(){return f})),n.d(t,"u",(function(){return A})),n.d(t,"v",(function(){return c}));const v=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},y={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,u=a?e[t+2]:0;let c=(15&s)<<2|u>>6,l=63&u;a||(l=64,o||(c=64)),r.push(n[i>>2],n[(3&i)<<4|s>>4],n[c],n[l])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(v(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){const i=n[e.charAt(t++)],o=t<e.length?n[e.charAt(t)]:0;++t;const s=t<e.length?n[e.charAt(t)]:64;++t;const a=t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==o||null==s||null==a)throw Error();if(r.push(i<<2|o>>4),64!==s){if(r.push(o<<4&240|s>>2),64!==a){r.push(s<<6&192|a)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},I=function(e){return function(e){const t=v(e);return y.encodeByteArray(t,!0)}(e).replace(/\./g,"")},w=function(e){try{return y.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},E=()=>function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,D=()=>{try{return E()||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&w(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},N=e=>{var t,n;return null===(n=null===(t=D())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},T=()=>{var e;return null===(e=D())||void 0===e?void 0:e.config},L=e=>{var t;return null===(t=D())||void 0===t?void 0:t[`_${e}`]};class C{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}class b extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,b.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,O.prototype.create)}}class O{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],o=i?function(e,t){return e.replace(S,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(i,n):"Error";return new b(r,`${this.serviceName}: ${o} (${r}).`,n)}}const S=/\{\$([^}]+)}/g;class j{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!=typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=m),void 0===r.error&&(r.error=m),void 0===r.complete&&(r.complete=m);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}})),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then((()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}}).call(this,n("pCvA"))},"8NER":function(e,t,n){"use strict";var r=n("hosL"),i=n("xK1t"),o=n.n(i),s=n("paZ/");let a,u,c=e=>e;const l=Object(s.c)("img")(a||(a=c`
|
|
2
|
-
|
|
3
|
-
`),(()=>({height:"7rem",marginBottom:"2.5rem"}))),h=Object(s.c)("div")(u||(u=c`
|
|
4
|
-
${0}
|
|
5
|
-
|
|
6
|
-
h1 {
|
|
7
|
-
${0}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
p {
|
|
11
|
-
${0}
|
|
12
|
-
}
|
|
13
|
-
`),(()=>({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",marginTop:"6rem",marginBottom:"6rem",width:"100%"})),(()=>({fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600",marginBottom:"0.5rem"})),(()=>({fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400",marginTop:"0px",marginBottom:"0px"})));t.a=()=>Object(r.h)(h,null,Object(r.h)(l,{src:o.a}),Object(r.h)("h1",null,"Something went wrong!"),Object(r.h)("p",null,"We’re having some difficulties."),Object(r.h)("p",null,"Please try again shortly."))},"98EO":function(e,t,n){"use strict";(function(e){var r=n("paZ/"),i=n("hosL"),o=n("QRet"),s=n("gjG8"),a=n("FIkf"),u=n("1kmk"),c=n("vBmG"),l=n("qtd4"),h=n("fWrg"),d=n("aWKI"),f=n("UfLo"),A=n("8NER");Object(r.b)(i.h);t.a=t=>{const n={backendUrl:t["backend-url"],apolloAccessToken:t["access-token"]},r=Object(o.j)(!1),[p,g]=Object(o.k)("Initializing");return Object(a.a)((async e=>{if(n.backendUrl)try{const t=await(async(e,t)=>{await Object(u.c)(e.backendUrl);const{googleCloud:n,googleIdentityEnabled:r}=await Object(u.b)(e.apolloAccessToken,t);return Object(d.b)(n),{googleIdentityEnabled:r}})(n,e);r.current=t.googleIdentityEnabled,g("Initialized")}catch(e){g("Error")}}),[n.backendUrl]),Object(i.h)(e,null,"Initializing"===p&&Object(i.h)(f.a,{isActive:!0}),"Error"===p&&Object(i.h)(A.a,null),"Initialized"===p&&Object(i.h)("div",{id:"preact_root"},Object(i.h)(c.b,null),Object(i.h)(h.a,null,r.current?Object(i.h)(l.a,n):Object(i.h)(s.a,n))))}}).call(this,n("hosL").Fragment)},"98Op":function(e){for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)t.EXP_TABLE[n]=t.EXP_TABLE[n-4]^t.EXP_TABLE[n-5]^t.EXP_TABLE[n-6]^t.EXP_TABLE[n-8];for(n=0;n<255;n++)t.LOG_TABLE[t.EXP_TABLE[n]]=n;e.exports=t},"B0/y":function(e,t,n){"use strict";var r,i=this&&this.__extends||(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(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectRequestHandler=void 0;var o=n("WrvZ"),s=n("5hdk"),a=n("fxKM"),u=n("sS3n"),c=n("wZHQ"),l=n("LOV3"),h=n("Sh+/"),d=function(e){return e+"_appauth_authorization_request"},f=function(e){return e+"_appauth_authorization_service_configuration"},A="appauth_current_authorization_request",p=function(e){function t(t,n,r,i){void 0===t&&(t=new h.LocalStorageBackend),void 0===n&&(n=new l.BasicQueryStringUtils),void 0===r&&(r=window.location),void 0===i&&(i=new u.DefaultCrypto);var o=e.call(this,n,i)||this;return o.storageBackend=t,o.locationLike=r,o}return i(t,e),t.prototype.performAuthorizationRequest=function(e,t){var n=this,r=this.crypto.generateRandom(10);Promise.all([this.storageBackend.setItem(A,r),t.toJson().then((function(e){return n.storageBackend.setItem(d(r),JSON.stringify(e))})),this.storageBackend.setItem(f(r),JSON.stringify(e.toJson()))]).then((function(){var r=n.buildRequestUrl(e,t);c.log("Making a request to ",t,r),n.locationLike.assign(r)}))},t.prototype.completeAuthorizationRequest=function(){var e=this;return this.storageBackend.getItem(A).then((function(t){return t?e.storageBackend.getItem(d(t)).then((function(e){return JSON.parse(e)})).then((function(e){return new o.AuthorizationRequest(e)})).then((function(n){var r=""+e.locationLike.origin+e.locationLike.pathname,i=e.utils.parse(e.locationLike,!0),o=i.state,s=i.code,u=i.error;c.log("Potential authorization request ",r,i,o,s,u);var l=null,h=null;if(o===n.state){if(u)h=new a.AuthorizationError({error:u,error_description:i.error_description,error_uri:i.error_uri,state:o});else l=new a.AuthorizationResponse({code:s,state:o});return Promise.all([e.storageBackend.removeItem(A),e.storageBackend.removeItem(d(t)),e.storageBackend.removeItem(f(t))]).then((function(){return c.log("Delivering authorization response"),{request:n,response:l,error:h}}))}return c.log("Mismatched request (state and request_uri) dont match."),Promise.resolve(null)})):null}))},t}(s.AuthorizationRequestHandler);t.RedirectRequestHandler=p},C6iT:function(e,t,n){"use strict";(function(e){var r=n("l8WD"),i=n("VB+g"),o=n("Fx85");t.a=({onClick:t,disabled:n,children:s})=>{const a=Object(r.useRef)(!0),[u,c]=Object(r.useState)(!1);return Object(r.useEffect)((()=>()=>{a.current=!1}),[]),e(o.a,{onClick:()=>{c(!0),t().finally((()=>{a.current&&c(!1)}))},disabled:n,"data-loading":u},u&&e(i.b,null),s)}}).call(this,n("hosL").h)},FIkf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("czhI"),i=n.n(r),o=n("QRet");const s=(e,t,n)=>{Object(o.d)((()=>{const t=i.a.CancelToken.source();return e(t),()=>{n&&n(),t.cancel()}}),t)}},Fx85:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n("paZ/");let i,o,s=e=>e;const a=Object(r.c)("button")(i||(i=s`
|
|
14
|
-
${0}
|
|
15
|
-
|
|
16
|
-
& > .span {
|
|
17
|
-
${0}
|
|
18
|
-
}
|
|
19
|
-
`),(()=>({height:"1rem",display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"1rem",borderWidth:"0px","--tw-text-opacity":"1",color:"rgba(15, 77, 196, var(--tw-text-opacity))",fontWeight:"600",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem","&:focus":{outline:"2px solid transparent",outlineOffset:"2px"}})),(()=>({height:"1rem",width:"1rem"}))),u=Object(r.c)("button")(o||(o=s`
|
|
20
|
-
${0}
|
|
21
|
-
|
|
22
|
-
height: 48px;
|
|
23
|
-
pointer-events: all !important;
|
|
24
|
-
|
|
25
|
-
&:disabled {
|
|
26
|
-
${0}
|
|
27
|
-
cursor: not-allowed;
|
|
28
|
-
}
|
|
1
|
+
let e,t,n,r={data:""},i=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||r,o=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,s=/\/\*[^]*?\*\/| +/g,a=/\n+/g,c=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+s+";":r+="f"==o[1]?c(s,o):o+"{"+c(s,"k"==o[1]?"":t)+"}":"object"==typeof s?r+=c(s,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=c.p?c.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},l={},u=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+u(e[n]);return t}return e},d=(e,t,n,r,i)=>{let d=u(e),h=l[d]||(l[d]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(d));if(!l[h]){let t=d!==e?e:(e=>{let t,n,r=[{}];for(;t=o.exec(e.replace(s,""));)t[4]?r.shift():t[3]?(n=t[3].replace(a," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(a," ").trim();return r[0]})(e);l[h]=c(i?{["@keyframes "+h]:t}:t,n?"":"."+h)}let p=n&&l.g?l.g:null;return n&&(l.g=l[h]),f=l[h],m=t,g=r,(_=p)?m.data=m.data.replace(_,f):-1===m.data.indexOf(f)&&(m.data=g?f+m.data:m.data+f),h;var f,m,g,_},h=(e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");function p(e){let t=this||{},n=e.call?e(t.p):e;return d(n.unshift?n.raw?h(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,i(t.target),t.g,t.o,t.k)}function f(r,i){let o=this||{};return function(){let s=arguments;function a(c,l){let u=Object.assign({},c),d=u.className||a.className;o.p=Object.assign({theme:t&&t()},u),o.o=/ *go\d+/.test(d),u.className=p.apply(o,s)+(d?" "+d:""),i&&(u.ref=l);let h=r;return r[0]&&(h=u.as||r,delete u.as),n&&h[0]&&n(u),e(h,u)}return i?i(a):a}}p.bind({g:1}),p.bind({k:1});var m,g,_,v,y,w,b,E,k={},I=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(e,t){for(var n in t)e[n]=t[n];return e}function R(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?m.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return A(e,s,r,i,null)}function A(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++_:i};return null==i&&null!=g.vnode&&g.vnode(o),o}function P(){return{current:null}}function N(e){return e.children}function x(e,t){this.props=e,this.context=t}function L(e,t){if(null==t)return e.__?L(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__d||n.__e;return"function"==typeof e.type?L(e):null}function D(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return D(e)}}function M(e){(!e.__d&&(e.__d=!0)&&v.push(e)&&!U.__r++||y!==g.debounceRendering)&&((y=g.debounceRendering)||w)(U)}function U(){var e,t,n,r,i,o,s,a,c;for(v.sort(b);e=v.shift();)e.__d&&(t=v.length,r=void 0,i=void 0,o=void 0,a=(s=(n=e).__v).__e,(c=n.__P)&&(r=[],i=[],(o=S({},s)).__v=s.__v+1,G(c,s,o,n.__n,void 0!==c.ownerSVGElement,null!=s.__h?[a]:null,r,null==a?L(s):a,s.__h,i),J(r,s,i),s.__e!=a&&D(s)),v.length>t&&v.sort(b));U.__r=0}function j(e,t,n,r,i,o,s,a,c,l,u){var d,h,p,f,m,g,_,v,y,w=0,b=r&&r.__k||I,E=b.length,T=E,S=t.length;for(n.__k=[],d=0;d<S;d++)null!=(f=n.__k[d]=null==(f=t[d])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?A(null,f,null,null,f):C(f)?A(N,{children:f},null,null,null):f.__b>0?A(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(v=H(f,b,_=d+w,T))?p=k:(p=b[v]||k,b[v]=void 0,T--),G(e,f,p,i,o,s,a,c,l,u),m=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Y(p.ref,null,f),u.push(h,f.__c||m,f)),null!=m&&(null==g&&(g=m),(y=p===k||null===p.__v)?-1==v&&w--:v!==_&&(v===_+1?w++:v>_?T>S-_?w+=v-_:w--:w=v<_&&v==_-1?v-_:0),_=d+w,"function"!=typeof f.type||v===_&&p.__k!==f.__k?"function"==typeof f.type||v===_&&!y?void 0!==f.__d?(c=f.__d,f.__d=void 0):c=m.nextSibling:c=z(e,m,c):c=F(f,c,e),"function"==typeof n.type&&(n.__d=c))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==c&&(p.__=r,c=L(p)),Q(p,p,!1),b[d]=null);for(n.__e=g,d=E;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),Q(b[d],b[d]))}function F(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?F(r,t,n):z(n,r.__e,t));return t}function B(e,t){return t=t||[],null==e||"boolean"==typeof e||(C(e)?e.some((function(e){B(e,t)})):t.push(e)),t}function z(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function H(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,c=t[n];if(null===c||c&&i==c.key&&o===c.type)return n;if(r>(null!=c?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&i==c.key&&o===c.type)return s;s--}if(a<t.length){if((c=t[a])&&i==c.key&&o===c.type)return a;a++}}return-1}function V(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||T.test(t)?n:n+"px"}function q(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||V(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||V(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?K:W,o)):e.removeEventListener(t,o?K:W,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(s){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function W(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(g.event?g.event(e):e)}function K(e){return this.l[e.type+!0](g.event?g.event(e):e)}function G(e,t,n,r,i,o,s,a,c,l){var u,d,h,p,f,_,v,y,w,b,E,I,T,O,A,P=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(u=g.__b)&&u(t);e:if("function"==typeof P)try{if(y=t.props,w=(u=P.contextType)&&r[u.__c],b=u?w?w.props.value:u.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in P&&P.prototype.render?t.__c=d=new P(y,b):(t.__c=d=new x(y,b),d.constructor=P,d.render=X),w&&w.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,P.getDerivedStateFromProps(y,d.__s))),p=d.props,f=d.state,d.__v=t,h)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&y!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,f,_)}))}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,I=g.__r,T=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,I&&I(t),u=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do{d.__d=!1,I&&I(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(r=S(S({},r),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(_=d.getSnapshotBeforeUpdate(p,f)),j(e,C(A=null!=u&&u.type===N&&null==u.key?u.props.children:u)?A:[A],t,n,r,i,o,s,a,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),v&&(d.__E=d.__=null)}catch(D){t.__v=null,(c||null!=o)&&(t.__e=a,t.__h=!!c,o[o.indexOf(a)]=null),g.__e(D,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,s,a,c){var l,u,d,h=n.props,p=t.props,f=t.type,g=0;if("svg"===f&&(i=!0),null!=o)for(;g<o.length;g++)if((l=o[g])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,o[g]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),o=null,a=!1}if(null===f)h===p||a&&e.data===p||(e.data=p);else{if(o=o&&m.call(e.childNodes),u=(h=n.props||k).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!a){if(null!=o)for(h={},g=0;g<e.attributes.length;g++)h[e.attributes[g].name]=e.attributes[g].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||q(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||q(e,o,t[o],n[o],r)}(e,p,h,i,a),d)t.__k=[];else if(j(e,C(g=t.props.children)?g:[g],t,n,r,i&&"foreignObject"!==f,o,s,o?o[0]:n.__k&&L(n,0),a,c),null!=o)for(g=o.length;g--;)null!=o[g]&&R(o[g]);a||("value"in p&&void 0!==(g=p.value)&&(g!==e.value||"progress"===f&&!g||"option"===f&&g!==h.value)&&q(e,"value",g,h.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&q(e,"checked",g,h.checked,!1))}return e}(n.__e,t,n,r,i,o,s,c,l);(u=g.diffed)&&u(t)}function J(e,t,n){for(var r=0;r<n.length;r++)Y(n[r],n[++r],n[++r]);g.__c&&g.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){g.__e(n,t.__v)}}))}function Y(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){g.__e(r,n)}}function Q(e,t,n){var r,i;if(g.unmount&&g.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Y(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){g.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Q(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||R(e.__e),e.__=e.__e=e.__d=void 0}function X(e,t,n){return this.constructor(e,n)}function Z(e,t,n){var r,i,o,s;g.__&&g.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],s=[],G(t,e=(!r&&n||t).__k=O(N,null,[e]),i||k,k,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?m.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),J(o,e,s)}function ee(e,t){Z(e,t,ee)}function te(e,t,n){var r,i,o,s,a=S({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=void 0===t[o]&&void 0!==s?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?m.call(arguments,2):n),A(e.type,a,r||e.key,i||e.ref,null)}function ne(e,t){var n={__c:t="__cC"+E++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,M(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}m=I.slice,g={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},_=0,x.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state),"function"==typeof e&&(e=e(S({},n),this.props)),e&&S(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},x.prototype.render=N,v=[],w="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b=function(e,t){return e.__v.__b-t.__v.__b},U.__r=0,E=0;var re,ie,oe,se,ae=0,ce=[],le=[],ue=g.__b,de=g.__r,he=g.diffed,pe=g.__c,fe=g.unmount;function me(e,t){g.__h&&g.__h(ie,e,ae||t),ae=0;var n=ie.__H||(ie.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:le}),n.__[e]}function ge(e){return ae=1,_e(xe,e)}function _e(e,t,n){var r=me(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):xe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ie,!ie.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var s=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};ie.u=!0;var o=ie.shouldComponentUpdate,s=ie.componentWillUpdate;ie.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}s&&s.call(this,e,t,n)},ie.shouldComponentUpdate=i}return r.__N||r.__}function ve(e,t){var n=me(re++,3);!g.__s&&Ne(n.__H,t)&&(n.__=e,n.i=t,ie.__H.__h.push(n))}function ye(e,t){var n=me(re++,4);!g.__s&&Ne(n.__H,t)&&(n.__=e,n.i=t,ie.__h.push(n))}function we(e){return ae=5,Ee((function(){return{current:e}}),[])}function be(e,t,n){ae=6,ye((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Ee(e,t){var n=me(re++,7);return Ne(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return ae=8,Ee((function(){return e}),t)}function Ie(e){var t=ie.context[e.__c],n=me(re++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(ie)),t.props.value):e.__}function Te(e,t){g.useDebugValue&&g.useDebugValue(t?t(e):e)}function Ce(){var e=me(re++,11);if(!e.__){for(var t=ie.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Se(){for(var e;e=ce.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ae),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(Yd){e.__H.__h=[],g.__e(Yd,e.__v)}}g.__b=function(e){ie=null,ue&&ue(e)},g.__r=function(e){de&&de(e),re=0;var t=(ie=e.__c).__H;t&&(oe===ie?(t.__h=[],ie.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=le,e.__N=e.i=void 0}))):(t.__h.forEach(Ae),t.__h.forEach(Pe),t.__h=[],re=0)),oe=ie},g.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ce.push(t)&&se===g.requestAnimationFrame||((se=g.requestAnimationFrame)||Oe)(Se)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==le&&(e.__=e.__V),e.i=void 0,e.__V=le}))),oe=ie=null},g.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ae),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],g.__e(n,e.__v)}})),pe&&pe(e,t)},g.unmount=function(e){fe&&fe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ae(e)}catch(n){t=n}})),n.__H=void 0,t&&g.__e(t,n.__v))};var Re="function"==typeof requestAnimationFrame;function Oe(e){var t,n=function(){clearTimeout(r),Re&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Re&&(t=requestAnimationFrame(n))}function Ae(e){var t=ie,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ie=t}function Pe(e){var t=ie;e.__c=e.__(),ie=t}function Ne(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function xe(e,t){return"function"==typeof t?t(e):t}class Le extends Error{}function De(e){let 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("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}function Me(e,t){if("string"!=typeof e)throw new Le("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Le(`Invalid token specified: missing part #${n+1}`);let i;try{i=De(r)}catch(Ad){throw new Le(`Invalid token specified: invalid base64 for part #${n+1} (${Ad.message})`)}try{return JSON.parse(i)}catch(Ad){throw new Le(`Invalid token specified: invalid json for part #${n+1} (${Ad.message})`)}}function Ue(e,t){return function(){return e.apply(t,arguments)}}Le.prototype.name="InvalidTokenError";const{toString:je}=Object.prototype,{getPrototypeOf:Fe}=Object,Be=(ze=Object.create(null),e=>{const t=je.call(e);return ze[t]||(ze[t]=t.slice(8,-1).toLowerCase())});var ze;const He=e=>(e=e.toLowerCase(),t=>Be(t)===e),Ve=e=>t=>typeof t===e,{isArray:$e}=Array,qe=Ve("undefined");const We=He("ArrayBuffer");const Ke=Ve("string"),Ge=Ve("function"),Je=Ve("number"),Ye=e=>null!==e&&"object"==typeof e,Qe=e=>{if("object"!==Be(e))return!1;const t=Fe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Xe=He("Date"),Ze=He("File"),et=He("Blob"),tt=He("FileList"),nt=He("URLSearchParams");function rt(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),$e(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function it(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,st=e=>!qe(e)&&e!==ot;const at=(ct="undefined"!=typeof Uint8Array&&Fe(Uint8Array),e=>ct&&e instanceof ct);var ct;const lt=He("HTMLFormElement"),ut=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dt=He("RegExp"),ht=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};rt(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},pt="abcdefghijklmnopqrstuvwxyz",ft="0123456789",mt={DIGIT:ft,ALPHA:pt,ALPHA_DIGIT:pt+pt.toUpperCase()+ft};const gt=He("AsyncFunction"),_t={isArray:$e,isArrayBuffer:We,isBuffer:function(e){return null!==e&&!qe(e)&&null!==e.constructor&&!qe(e.constructor)&&Ge(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Ge(e.append)&&("formdata"===(t=Be(e))||"object"===t&&Ge(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&We(e.buffer),t},isString:Ke,isNumber:Je,isBoolean:e=>!0===e||!1===e,isObject:Ye,isPlainObject:Qe,isUndefined:qe,isDate:Xe,isFile:Ze,isBlob:et,isRegExp:dt,isFunction:Ge,isStream:e=>Ye(e)&&Ge(e.pipe),isURLSearchParams:nt,isTypedArray:at,isFileList:tt,forEach:rt,merge:function e(){const{caseless:t}=st(this)&&this||{},n={},r=(r,i)=>{const o=t&&it(n,i)||i;Qe(n[o])&&Qe(r)?n[o]=e(n[o],r):Qe(r)?n[o]=e({},r):$e(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&rt(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(rt(t,((t,r)=>{n&&Ge(t)?e[r]=Ue(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&Fe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Be,kindOfTest:He,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if($e(e))return e;let t=e.length;if(!Je(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:lt,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:ht,freezeMethods:e=>{ht(e,((t,n)=>{if(Ge(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Ge(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return $e(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:it,global:ot,isContextDefined:st,ALPHABET:mt,generateString:(e=16,t=mt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Ge(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Ye(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=$e(e)?[]:{};return rt(e,((e,t)=>{const o=n(e,r+1);!qe(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:gt,isThenable:e=>e&&(Ye(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch)};function vt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}_t.inherits(vt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_t.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const yt=vt.prototype,wt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{wt[e]={value:e}})),Object.defineProperties(vt,wt),Object.defineProperty(yt,"isAxiosError",{value:!0}),vt.from=(e,t,n,r,i,o)=>{const s=Object.create(yt);return _t.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),vt.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};function bt(e){return _t.isPlainObject(e)||_t.isArray(e)}function Et(e){return _t.endsWith(e,"[]")?e.slice(0,-2):e}function kt(e,t,n){return e?e.concat(t).map((function(e,t){return e=Et(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const It=_t.toFlatObject(_t,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Tt(e,t,n){if(!_t.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=_t.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_t.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&_t.isSpecCompliantForm(t);if(!_t.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(_t.isDate(e))return e.toISOString();if(!a&&_t.isBlob(e))throw new vt("Blob is not supported. Use a Buffer instead.");return _t.isArrayBuffer(e)||_t.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if(_t.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(_t.isArray(e)&&function(e){return _t.isArray(e)&&!e.some(bt)}(e)||(_t.isFileList(e)||_t.endsWith(n,"[]"))&&(a=_t.toArray(e)))return n=Et(n),a.forEach((function(e,r){!_t.isUndefined(e)&&null!==e&&t.append(!0===s?kt([n],r,o):null===s?n:n+"[]",c(e))})),!1;return!!bt(e)||(t.append(kt(i,n,o),c(e)),!1)}const u=[],d=Object.assign(It,{defaultVisitor:l,convertValue:c,isVisitable:bt});if(!_t.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!_t.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),_t.forEach(n,(function(n,o){!0===(!(_t.isUndefined(n)||null===n)&&i.call(t,n,_t.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t}function Ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function St(e,t){this._pairs=[],e&&Tt(e,this,t)}const Rt=St.prototype;function Ot(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function At(e,t,n){if(!t)return e;const r=n&&n.encode||Ot,i=n&&n.serialize;let o;if(o=i?i(t,n):_t.isURLSearchParams(t)?t.toString():new St(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Rt.append=function(e,t){this._pairs.push([e,t])},Rt.toString=function(e){const t=e?function(t){return e.call(this,t,Ct)}:Ct;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Pt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_t.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:St,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Lt(e){function t(e,n,r,i){let o=e[i++];const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&_t.isArray(r)?r.length:o,a)return _t.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s;r[o]&&_t.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&_t.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!s}if(_t.isFormData(e)&&_t.isFunction(e.entries)){const n={};return _t.forEachEntry(e,((e,r)=>{t(function(e){return _t.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Dt={transitional:Nt,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=_t.isObject(e);i&&_t.isHTMLForm(e)&&(e=new FormData(e));if(_t.isFormData(e))return r&&r?JSON.stringify(Lt(e)):e;if(_t.isArrayBuffer(e)||_t.isBuffer(e)||_t.isStream(e)||_t.isFile(e)||_t.isBlob(e))return e;if(_t.isArrayBufferView(e))return e.buffer;if(_t.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tt(e,new xt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return xt.isNode&&_t.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=_t.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tt(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(_t.isString(e))try{return(t||JSON.parse)(e),_t.trim(e)}catch(Ad){if("SyntaxError"!==Ad.name)throw Ad}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Dt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&_t.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Ad){if(n){if("SyntaxError"===Ad.name)throw vt.from(Ad,vt.ERR_BAD_RESPONSE,this,null,this.response);throw Ad}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_t.forEach(["delete","get","head","post","put","patch"],(e=>{Dt.headers[e]={}}));const Mt=Dt,Ut=_t.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jt=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return!1===e||null==e?e:_t.isArray(e)?e.map(Bt):String(e)}function zt(e,t,n,r,i){return _t.isFunction(r)?r.call(this,t,n):(i&&(t=n),_t.isString(t)?_t.isString(r)?-1!==t.indexOf(r):_t.isRegExp(r)?r.test(t):void 0:void 0)}class Ht{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Ft(t);if(!i)throw new Error("header name must be a non-empty string");const o=_t.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Bt(e))}const o=(e,t)=>_t.forEach(e,((e,n)=>i(e,n,t)));return _t.isPlainObject(e)||e instanceof this.constructor?o(e,t):_t.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Ut[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=Ft(e)){const n=_t.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(_t.isFunction(t))return t.call(this,e,n);if(_t.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ft(e)){const n=_t.findKey(this,e);return!(!n||void 0===this[n]||t&&!zt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Ft(e)){const i=_t.findKey(n,e);!i||t&&!zt(0,n[i],i,t)||(delete n[i],r=!0)}}return _t.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!zt(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return _t.forEach(this,((r,i)=>{const o=_t.findKey(n,i);if(o)return t[o]=Bt(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();s!==i&&delete t[i],t[s]=Bt(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _t.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&_t.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[jt]=this[jt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ft(e);t[r]||(!function(e,t){const n=_t.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return _t.isArray(e)?e.forEach(r):r(e),this}}Ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_t.reduceDescriptors(Ht.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),_t.freezeMethods(Ht);const Vt=Ht;function $t(e,t){const n=this||Mt,r=t||n,i=Vt.from(r.headers);let o=r.data;return _t.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function qt(e){return!(!e||!e.__CANCEL__)}function Wt(e,t,n){vt.call(this,null==e?"canceled":e,vt.ERR_CANCELED,t,n),this.name="CanceledError"}_t.inherits(Wt,vt,{__CANCEL__:!0});const Kt=xt.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),_t.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),_t.isString(r)&&s.push("path="+r),_t.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Gt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Jt=xt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=_t.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Yt(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];i||(i=c),n[o]=a,r[o]=c;let u=s,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}}(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,c=r(a);n=o;const l={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const Qt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=Vt.from(e.headers).normalize(),o=e.responseType;let s,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}_t.isFormData(r)&&(xt.isStandardBrowserEnv||xt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?_t.isString(a=i.getContentType())&&i.setContentType(a.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const u=Gt(e.baseURL,e.url);function d(){if(!l)return;const r=Vt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new vt("Request failed with status code "+n.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),At(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new vt("Request aborted",vt.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new vt("Network Error",vt.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Nt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new vt(t,r.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,e,l)),l=null},xt.isStandardBrowserEnv){const t=Jt(u)&&e.xsrfCookieName&&Kt.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in l&&_t.forEach(i.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),_t.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&"json"!==o&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Yt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Yt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new Wt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);h&&-1===xt.protocols.indexOf(h)?n(new vt("Unsupported protocol "+h+":",vt.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};_t.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ad){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xt=e=>`- ${e}`,Zt=e=>_t.isFunction(e)||null===e||!1===e,en=e=>{e=_t.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!Zt(n)&&(r=Qt[(t=String(n)).toLowerCase()],void 0===r))throw new vt(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new vt("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xt).join("\n"):" "+Xt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wt(null,e)}function nn(e){tn(e),e.headers=Vt.from(e.headers),e.data=$t.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return en(e.adapter||Mt.adapter)(e).then((function(t){return tn(e),t.data=$t.call(e,e.transformResponse,t),t.headers=Vt.from(t.headers),t}),(function(t){return qt(t)||(tn(e),t&&t.response&&(t.response.data=$t.call(e,e.transformResponse,t.response),t.response.headers=Vt.from(t.response.headers))),Promise.reject(t)}))}const rn=e=>e instanceof Vt?e.toJSON():e;function on(e,t){t=t||{};const n={};function r(e,t,n){return _t.isPlainObject(e)&&_t.isPlainObject(t)?_t.merge.call({caseless:n},e,t):_t.isPlainObject(t)?_t.merge({},t):_t.isArray(t)?t.slice():t}function i(e,t,n){return _t.isUndefined(t)?_t.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!_t.isUndefined(t))return r(void 0,t)}function s(e,t){return _t.isUndefined(t)?_t.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>i(rn(e),rn(t),!0)};return _t.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=c[r]||i,s=o(e[r],t[r],r);_t.isUndefined(s)&&o!==a||(n[r]=s)})),n}const sn="1.6.0",an={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{an[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const cn={};an.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new vt(r(i," has been removed"+(t?" in "+t:"")),vt.ERR_DEPRECATED);return t&&!cn[i]&&(cn[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const ln={assertOptions:function(e,t,n){if("object"!=typeof e)throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new vt("option "+o+" must be "+n,vt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new vt("Unknown option "+o,vt.ERR_BAD_OPTION)}},validators:an},un=ln.validators;class dn{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=on(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&ln.assertOptions(n,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),null!=r&&(_t.isFunction(r)?t.paramsSerializer={serialize:r}:ln.assertOptions(r,{encode:un.function,serialize:un.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&_t.merge(i.common,i[t.method]);i&&_t.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Vt.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[nn.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=s.length;let h=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{l=nn.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return At(Gt((e=on(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}_t.forEach(["delete","get","head","options"],(function(e){dn.prototype[e]=function(t,n){return this.request(on(n||{},{method:e,url:t,data:(n||{}).data}))}})),_t.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(on(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}dn.prototype[e]=t(),dn.prototype[e+"Form"]=t(!0)}));const hn=dn;class pn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Wt(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new pn((function(t){e=t})),cancel:e}}}const fn=pn;const mn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mn).forEach((([e,t])=>{mn[t]=e}));const gn=mn;const _n=function e(t){const n=new hn(t),r=Ue(hn.prototype.request,n);return _t.extend(r,hn.prototype,n,{allOwnKeys:!0}),_t.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(on(t,n))},r}(Mt);_n.Axios=hn,_n.CanceledError=Wt,_n.CancelToken=fn,_n.isCancel=qt,_n.VERSION=sn,_n.toFormData=Tt,_n.AxiosError=vt,_n.Cancel=_n.CanceledError,_n.all=function(e){return Promise.all(e)},_n.spread=function(e){return function(t){return e.apply(null,t)}},_n.isAxiosError=function(e){return _t.isObject(e)&&!0===e.isAxiosError},_n.mergeConfig=on,_n.AxiosHeaders=Vt,_n.formToJSON=e=>Lt(_t.isHTMLForm(e)?new FormData(e):e),_n.getAdapter=en,_n.HttpStatusCode=gn,_n.default=_n;const vn=_n,yn=(e,t,n)=>{ve((()=>{const t=vn.CancelToken.source();return e(t),()=>{n&&n(),t.cancel()}}),t)},wn=({request:e})=>console.error("[API] Request error:",e),bn=({response:e})=>{if(e){const{status:t,request:n,data:r}=e;console.error("[API] Response error:",t,n.responseURL,JSON.stringify(r))}};let En;const kn=(e,t)=>({headers:{Authorization:`Bearer ${e}`},cancelToken:t.token}),In=async(e,t)=>{if(!En)throw new Error("Api has not been initialized");return En.post("customer-profile/backend/v1.0/workplace-link",{},kn(e,t)).then((e=>204==e.status?{isEstablished:!0}:{isEstablished:!1,linkRequest:null==e?void 0:e.data}))},Tn=(e,t,n,r)=>{if(!En)throw new Error("Api has not been initialized");const i={linkRequestId:t,profileId:n};return En.post("customer-profile/customer-backend/v1.0/workplace-link",i,kn(e,r))};for(var Cn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Sn={},Rn={},On={byteLength:function(e){var t=Dn(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=Dn(e),i=r[0],o=r[1],s=new Nn(function(e,t,n){return 3*(t+n)/4-n}(0,i,o)),a=0,c=o>0?i-4:i;for(n=0;n<c;n+=4)t=Pn[e.charCodeAt(n)]<<18|Pn[e.charCodeAt(n+1)]<<12|Pn[e.charCodeAt(n+2)]<<6|Pn[e.charCodeAt(n+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===o&&(t=Pn[e.charCodeAt(n)]<<2|Pn[e.charCodeAt(n+1)]>>4,s[a++]=255&t);1===o&&(t=Pn[e.charCodeAt(n)]<<10|Pn[e.charCodeAt(n+1)]<<4|Pn[e.charCodeAt(n+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(Mn(e,s,s+o>a?a:s+o));1===r?(t=e[n-1],i.push(An[t>>2]+An[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(An[t>>10]+An[t>>4&63]+An[t<<2&63]+"="));return i.join("")}},An=[],Pn=[],Nn="undefined"!=typeof Uint8Array?Uint8Array:Array,xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ln=0;Ln<64;++Ln)An[Ln]=xn[Ln],Pn[xn.charCodeAt(Ln)]=Ln;function Dn(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("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function Mn(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(An[(i=r)>>18&63]+An[i>>12&63]+An[i>>6&63]+An[63&i]);return o.join("")}Pn["-".charCodeAt(0)]=62,Pn["_".charCodeAt(0)]=63;var Un={};Object.defineProperty(Un,"__esModule",{value:!0}),Un.AppAuthError=void 0;var jn=function(e,t){this.message=e,this.extras=t};Un.AppAuthError=jn,Object.defineProperty(Rn,"__esModule",{value:!0});var Fn=Rn.DefaultCrypto=Rn.textEncodeLite=Rn.urlSafe=Rn.bufferToString=void 0,Bn=On,zn=Un,Hn="undefined"!=typeof window&&!!window.crypto,Vn=Hn&&!!window.crypto.subtle,$n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function qn(e){for(var t=[],n=0;n<e.byteLength;n+=1){var r=e[n]%62;t.push($n[r])}return t.join("")}function Wn(e){return Bn.fromByteArray(new Uint8Array(e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Kn(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}Rn.bufferToString=qn,Rn.urlSafe=Wn,Rn.textEncodeLite=Kn;var Gn=function(){function e(){}return e.prototype.generateRandom=function(e){var t=new Uint8Array(e);if(Hn)window.crypto.getRandomValues(t);else for(var n=0;n<e;n+=1)t[n]=62*Math.random()|0;return qn(t)},e.prototype.deriveChallenge=function(e){return e.length<43||e.length>128?Promise.reject(new zn.AppAuthError("Invalid code length.")):Vn?new Promise((function(t,n){crypto.subtle.digest("SHA-256",Kn(e)).then((function(e){return t(Wn(new Uint8Array(e)))}),(function(e){return n(e)}))})):Promise.reject(new zn.AppAuthError("window.crypto.subtle is unavailable."))},e}();Fn=Rn.DefaultCrypto=Gn;var Jn={},Yn={};Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.IS_PROFILE=Yn.IS_LOG=void 0,Yn.IS_LOG=!0,Yn.IS_PROFILE=!1;var Qn=Cn&&Cn.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.profile=Jn.log=void 0;var Xn=Yn;function Zn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Xn.IS_LOG&&((t?t.length:0)>0?console.log.apply(console,Qn([e],t)):console.log(e))}Jn.log=Zn;var er="undefined"!=typeof window&&!!window.performance&&!!console.profile;Jn.profile=function(e,t,n){return Xn.IS_PROFILE?function(e,t,n){var r=n.value,i=r.name;i||(i="anonymous function");n.value=er?function(e){console.profile(i);var t=window.performance.now(),n=r.call.apply(r,Qn([this||window],e)),o=window.performance.now()-t;return console.log(i+" took "+o+" ms"),console.profileEnd(),n}:function(e){Zn("Profile start "+i);var t=Date.now(),n=r.call.apply(r,Qn([this||window],e)),o=Date.now()-t;return Zn("Profile end "+i+" took "+o+" ms."),n};return n}(0,0,n):n},Object.defineProperty(Sn,"__esModule",{value:!0});var tr=Sn.AuthorizationRequest=void 0,nr=Rn,rr=Jn,ir=function(){function e(t,n,r){void 0===n&&(n=new nr.DefaultCrypto),void 0===r&&(r=!0),this.crypto=n,this.usePkce=r,this.clientId=t.client_id,this.redirectUri=t.redirect_uri,this.scope=t.scope,this.responseType=t.response_type||e.RESPONSE_TYPE_CODE,this.state=t.state||function(e){return e.generateRandom(10)}(n),this.extras=t.extras,this.internal=t.internal}return e.prototype.setupCodeVerifier=function(){var e=this;if(this.usePkce){var t=this.crypto.generateRandom(128);return this.crypto.deriveChallenge(t).catch((function(e){rr.log("Unable to generate PKCE challenge. Not using PKCE",e)})).then((function(n){n&&(e.internal=e.internal||{},e.internal.code_verifier=t,e.extras=e.extras||{},e.extras.code_challenge=n,e.extras.code_challenge_method="S256")}))}return Promise.resolve()},e.prototype.toJson=function(){var e=this;return this.setupCodeVerifier().then((function(){return{response_type:e.responseType,client_id:e.clientId,redirect_uri:e.redirectUri,scope:e.scope,state:e.state,extras:e.extras,internal:e.internal}}))},e.RESPONSE_TYPE_TOKEN="token",e.RESPONSE_TYPE_CODE="code",e}();tr=Sn.AuthorizationRequest=ir;var or={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthorizationRequestHandler=e.BUILT_IN_PARAMETERS=e.AuthorizationNotifier=void 0;var t=Jn,n=function(){function e(){this.listener=null}return e.prototype.setAuthorizationListener=function(e){this.listener=e},e.prototype.onAuthorizationComplete=function(e,t,n){this.listener&&this.listener(e,t,n)},e}();e.AuthorizationNotifier=n,e.BUILT_IN_PARAMETERS=["redirect_uri","client_id","response_type","state","scope"];var r=function(){function n(e,t){this.utils=e,this.crypto=t,this.notifier=null}return n.prototype.buildRequestUrl=function(t,n){var r={redirect_uri:n.redirectUri,client_id:n.clientId,response_type:n.responseType,state:n.state,scope:n.scope};if(n.extras)for(var i in n.extras)n.extras.hasOwnProperty(i)&&e.BUILT_IN_PARAMETERS.indexOf(i)<0&&(r[i]=n.extras[i]);var o=this.utils.stringify(r);return t.authorizationEndpoint+"?"+o},n.prototype.completeAuthorizationRequestIfPossible=function(){var e=this;return t.log("Checking to see if there is an authorization response to be delivered."),this.notifier||t.log("Notifier is not present on AuthorizationRequest handler.\n No delivery of result will be possible"),this.completeAuthorizationRequest().then((function(n){n||t.log("No result is available yet."),n&&e.notifier&&e.notifier.onAuthorizationComplete(n.request,n.response,n.error)}))},n.prototype.setAuthorizationNotifier=function(e){return this.notifier=e,this},n}();e.AuthorizationRequestHandler=r}(or);var sr={},ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.AuthorizationError=ar.AuthorizationResponse=void 0;var cr=function(){function e(e){this.code=e.code,this.state=e.state}return e.prototype.toJson=function(){return{code:this.code,state:this.state}},e}();ar.AuthorizationResponse=cr;var lr=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri,this.state=e.state}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri,state:this.state}},e}();ar.AuthorizationError=lr;var ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.BasicQueryStringUtils=void 0;var dr=function(){function e(){}return e.prototype.parse=function(e,t){return t?this.parseQueryString(e.hash):this.parseQueryString(e.search)},e.prototype.parseQueryString=function(e){for(var t={},n=(e=e.trim().replace(/^(\?|#|&)/,"")).split("&"),r=0;r<n.length;r+=1){var i=n[r].split("=");if(i.length>=2){var o=decodeURIComponent(i.shift()),s=i.length>0?i.join("="):null;s&&(t[o]=decodeURIComponent(s))}}return t},e.prototype.stringify=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&e[n]&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")},e}();ur.BasicQueryStringUtils=dr;var hr,pr={},fr=Cn&&Cn.__extends||(hr=function(e,t){return(hr=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(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}hr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(pr,"__esModule",{value:!0}),pr.LocalStorageBackend=pr.StorageBackend=void 0;var mr=function(){};pr.StorageBackend=mr;var gr=function(e){function t(t){var n=e.call(this)||this;return n.storage=t||window.localStorage,n}return fr(t,e),t.prototype.getItem=function(e){var t=this;return new Promise((function(n,r){var i=t.storage.getItem(e);n(i||null)}))},t.prototype.removeItem=function(e){var t=this;return new Promise((function(n,r){t.storage.removeItem(e),n()}))},t.prototype.clear=function(){var e=this;return new Promise((function(t,n){e.storage.clear(),t()}))},t.prototype.setItem=function(e,t){var n=this;return new Promise((function(r,i){n.storage.setItem(e,t),r()}))},t}(mr);pr.LocalStorageBackend=gr;var _r=Cn&&Cn.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(sr,"__esModule",{value:!0});var vr=sr.RedirectRequestHandler=void 0,yr=Sn,wr=ar,br=Rn,Er=Jn,kr=ur,Ir=pr,Tr=function(e){return e+"_appauth_authorization_request"},Cr=function(e){return e+"_appauth_authorization_service_configuration"},Sr="appauth_current_authorization_request",Rr=function(e){function t(t,n,r,i){void 0===t&&(t=new Ir.LocalStorageBackend),void 0===n&&(n=new kr.BasicQueryStringUtils),void 0===r&&(r=window.location),void 0===i&&(i=new br.DefaultCrypto);var o=e.call(this,n,i)||this;return o.storageBackend=t,o.locationLike=r,o}return _r(t,e),t.prototype.performAuthorizationRequest=function(e,t){var n=this,r=this.crypto.generateRandom(10);Promise.all([this.storageBackend.setItem(Sr,r),t.toJson().then((function(e){return n.storageBackend.setItem(Tr(r),JSON.stringify(e))})),this.storageBackend.setItem(Cr(r),JSON.stringify(e.toJson()))]).then((function(){var r=n.buildRequestUrl(e,t);Er.log("Making a request to ",t,r),n.locationLike.assign(r)}))},t.prototype.completeAuthorizationRequest=function(){var e=this;return this.storageBackend.getItem(Sr).then((function(t){return t?e.storageBackend.getItem(Tr(t)).then((function(e){return JSON.parse(e)})).then((function(e){return new yr.AuthorizationRequest(e)})).then((function(n){var r=""+e.locationLike.origin+e.locationLike.pathname,i=e.utils.parse(e.locationLike,!0),o=i.state,s=i.code,a=i.error;Er.log("Potential authorization request ",r,i,o,s,a);var c=o===n.state,l=null,u=null;if(c){if(a){var d=i.error_uri,h=i.error_description;u=new wr.AuthorizationError({error:a,error_description:h,error_uri:d,state:o})}else l=new wr.AuthorizationResponse({code:s,state:o});return Promise.all([e.storageBackend.removeItem(Sr),e.storageBackend.removeItem(Tr(t)),e.storageBackend.removeItem(Cr(t))]).then((function(){return Er.log("Delivering authorization response"),{request:n,response:l,error:u}}))}return Er.log("Mismatched request (state and request_uri) dont match."),Promise.resolve(null)})):null}))},t}(or.AuthorizationRequestHandler);vr=sr.RedirectRequestHandler=Rr;var Or={},Ar={},Pr=Cn&&Cn.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.TestRequestor=Mr=Ar.FetchRequestor=Ar.JQueryRequestor=Ar.Requestor=void 0;var Nr=Un,xr=function(){};Ar.Requestor=xr;var Lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pr(t,e),t.prototype.xhr=function(e){var t=$.ajax(e);return new Promise((function(e,n){t.then((function(t,n,r){e(t)}),(function(e,t,r){n(new Nr.AppAuthError(r))}))}))},t}(xr);Ar.JQueryRequestor=Lr;var Dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pr(t,e),t.prototype.xhr=function(e){if(!e.url)return Promise.reject(new Nr.AppAuthError("A URL must be provided."));var t=new URL(e.url),n={};(n.method=e.method,n.mode="cors",e.data)&&(e.method&&"POST"===e.method.toUpperCase()?n.body=e.data:new URLSearchParams(e.data).forEach((function(e,n){t.searchParams.append(n,e)})));if(n.headers={},e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(n.headers[r]=e.headers[r]);var i=e.dataType&&"json"===e.dataType.toLowerCase();return i&&(n.headers.Accept="application/json, text/javascript, */*; q=0.01"),fetch(t.toString(),n).then((function(e){if(e.status>=200&&e.status<300){var t=e.headers.get("content-type");return i||t&&-1!==t.indexOf("application/json")?e.json():e.text()}return Promise.reject(new Nr.AppAuthError(e.status.toString(),e.statusText))}))},t}(xr),Mr=Ar.FetchRequestor=Dr,Ur=function(e){function t(t){var n=e.call(this)||this;return n.promise=t,n}return Pr(t,e),t.prototype.xhr=function(e){return this.promise},t}(xr);Ar.TestRequestor=Ur,Object.defineProperty(Or,"__esModule",{value:!0});var jr=Or.AuthorizationServiceConfiguration=void 0,Fr=Ar,Br=function(){function e(e){this.authorizationEndpoint=e.authorization_endpoint,this.tokenEndpoint=e.token_endpoint,this.revocationEndpoint=e.revocation_endpoint,this.userInfoEndpoint=e.userinfo_endpoint,this.endSessionEndpoint=e.end_session_endpoint}return e.prototype.toJson=function(){return{authorization_endpoint:this.authorizationEndpoint,token_endpoint:this.tokenEndpoint,revocation_endpoint:this.revocationEndpoint,end_session_endpoint:this.endSessionEndpoint,userinfo_endpoint:this.userInfoEndpoint}},e.fetchFromIssuer=function(t,n){var r=t+"/.well-known/openid-configuration";return(n||new Fr.JQueryRequestor).xhr({url:r,dataType:"json",method:"GET"}).then((function(t){return new e(t)}))},e}();jr=Or.AuthorizationServiceConfiguration=Br;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});var Hr=zr.TokenRequest=zr.GRANT_TYPE_REFRESH_TOKEN=zr.GRANT_TYPE_AUTHORIZATION_CODE=void 0,Vr=zr.GRANT_TYPE_AUTHORIZATION_CODE="authorization_code";zr.GRANT_TYPE_REFRESH_TOKEN="refresh_token";var $r=function(){function e(e){this.clientId=e.client_id,this.redirectUri=e.redirect_uri,this.grantType=e.grant_type,this.code=e.code,this.refreshToken=e.refresh_token,this.extras=e.extras}return e.prototype.toJson=function(){return{grant_type:this.grantType,code:this.code,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,client_id:this.clientId,extras:this.extras}},e.prototype.toStringMap=function(){var e={grant_type:this.grantType,client_id:this.clientId,redirect_uri:this.redirectUri};if(this.code&&(e.code=this.code),this.refreshToken&&(e.refresh_token=this.refreshToken),this.extras)for(var t in this.extras)this.extras.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=this.extras[t]);return e},e}();Hr=zr.TokenRequest=$r;var qr={},Wr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TokenError=e.TokenResponse=e.nowInSeconds=void 0;e.nowInSeconds=function(){return Math.round((new Date).getTime()/1e3)};var t=function(){function t(t){this.accessToken=t.access_token,this.tokenType=t.token_type||"bearer",t.expires_in&&(this.expiresIn=parseInt(t.expires_in,10)),this.refreshToken=t.refresh_token,this.scope=t.scope,this.idToken=t.id_token,this.issuedAt=t.issued_at||e.nowInSeconds()}return t.prototype.toJson=function(){var e;return{access_token:this.accessToken,id_token:this.idToken,refresh_token:this.refreshToken,scope:this.scope,token_type:this.tokenType,issued_at:this.issuedAt,expires_in:null===(e=this.expiresIn)||void 0===e?void 0:e.toString()}},t.prototype.isValid=function(t){return void 0===t&&(t=-600),!this.expiresIn||e.nowInSeconds()<this.issuedAt+this.expiresIn+t},t}();e.TokenResponse=t;var n=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri}},e}();e.TokenError=n}(Wr),Object.defineProperty(qr,"__esModule",{value:!0});var Kr=qr.BaseTokenRequestHandler=void 0,Gr=Un,Jr=ur,Yr=Wr,Qr=Ar,Xr=function(){function e(e,t){void 0===e&&(e=new Qr.JQueryRequestor),void 0===t&&(t=new Jr.BasicQueryStringUtils),this.requestor=e,this.utils=t}return e.prototype.isTokenResponse=function(e){return void 0===e.error},e.prototype.performRevokeTokenRequest=function(e,t){return this.requestor.xhr({url:e.revocationEndpoint,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(e){return!0}))},e.prototype.performTokenRequest=function(e,t){var n=this;return this.requestor.xhr({url:e.tokenEndpoint,method:"POST",dataType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(e){return n.isTokenResponse(e)?new Yr.TokenResponse(e):Promise.reject(new Gr.AppAuthError(e.error,new Yr.TokenError(e)))}))},e}();Kr=qr.BaseTokenRequestHandler=Xr;let Zr;const ei=async(e,t)=>{const n=await jr.fetchFromIssuer(e,t);return Zr=n,n},ti=async(e,t,n,r,i)=>{const o={};t&&(o.code_verifier=t);const s=new Hr({client_id:r.clientId,redirect_uri:r.redirectUri,grant_type:Vr,code:e,refresh_token:void 0,extras:o});return await n.performTokenRequest(i,s)},ni=e=>{if(e&&e.isValid())return e.accessToken},ri=async e=>{try{const t=await e.storageBackend.getItem("appauth_current_authorization_request"),n=t&&await e.storageBackend.getItem((e=>`${e}_appauth_authorization_service_configuration`)(t));if(n){const e=JSON.parse(n);Zr=new jr(e)}return!0}catch{return!1}};p.bind({g:1});const ii=f("span")([{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}]),oi=(function(){const e=f.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}})`
|
|
2
|
+
@import url('//fonts.googleapis.com/css?family=Poppins');
|
|
29
3
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
cursor: not-allowed;
|
|
4
|
+
workplace-link {
|
|
5
|
+
font-family: 'Poppins', sans-serif;
|
|
33
6
|
}
|
|
34
|
-
`),(()=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"1rem",borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgba(46, 102, 247, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))",fontWeight:"500",paddingLeft:"0.5rem",paddingRight:"0.5rem",borderRadius:"0.375rem","&:focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(225, 241, 255, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(25, 44, 84, var(--tw-text-opacity))"}})),(()=>({"--tw-bg-opacity":"1",backgroundColor:"rgba(240, 242, 245, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(166, 172, 177, var(--tw-text-opacity))"})),(()=>({borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgba(46, 102, 247, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))"})))},GGjp:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("QRet"),i=n("aWKI");const o=()=>{const[e,t]=Object(r.k)(""),n=Object(i.a)().beforeAuthStateChanged((async e=>{var n;t(null!==(n=await(null==e?void 0:e.getIdToken()))&&void 0!==n?n:"")}));return Object(r.d)((()=>n),[n]),{idToken:e}}},ISih:function(e,t,n){function r(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}var i=n("98Op");r.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var o=0;o<e.getLength();o++)t[n+o]^=i.gexp(i.glog(this.get(n))+i.glog(e.get(o)));return new r(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=i.glog(this.get(0))-i.glog(e.get(0)),n=new Array(this.getLength()),o=0;o<this.getLength();o++)n[o]=this.get(o);for(o=0;o<e.getLength();o++)n[o]^=i.gexp(i.glog(e.get(o))+t);return new r(n,0).mod(e)}},e.exports=r},JPIm:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRequest=t.GRANT_TYPE_REFRESH_TOKEN=t.GRANT_TYPE_AUTHORIZATION_CODE=void 0,t.GRANT_TYPE_AUTHORIZATION_CODE="authorization_code",t.GRANT_TYPE_REFRESH_TOKEN="refresh_token";var n=function(){function e(e){this.clientId=e.client_id,this.redirectUri=e.redirect_uri,this.grantType=e.grant_type,this.code=e.code,this.refreshToken=e.refresh_token,this.extras=e.extras}return e.prototype.toJson=function(){return{grant_type:this.grantType,code:this.code,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,client_id:this.clientId,extras:this.extras}},e.prototype.toStringMap=function(){var e={grant_type:this.grantType,client_id:this.clientId,redirect_uri:this.redirectUri};if(this.code&&(e.code=this.code),this.refreshToken&&(e.refresh_token=this.refreshToken),this.extras)for(var t in this.extras)this.extras.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=this.extras[t]);return e},e}();t.TokenRequest=n},KlUR:function(e,t){"use strict";function n(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("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function r(e,t,n){for(var r,o=[],s=t;s<n;s+=3)o.push(i[(r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return o.join("")}t.byteLength=function(e){var t=n(e),r=t[1];return 3*(t[0]+r)/4-r},t.toByteArray=function(e){var t,r,i=n(e),a=i[0],u=i[1],c=new s(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),l=0,h=u>0?a-4:a;for(r=0;r<h;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===u&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===u&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,s=[],a=16383,u=0,c=n-o;u<c;u+=a)s.push(r(e,u,u+a>c?c:u+a));return 1===o?s.push(i[(t=e[n-1])>>2]+i[t<<4&63]+"=="):2===o&&s.push(i[(t=(e[n-2]<<8)+e[n-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),s.join("")};for(var i=[],o=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)i[u]=a[u],o[a.charCodeAt(u)]=u;o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},LOV3:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicQueryStringUtils=void 0;var n=function(){function e(){}return e.prototype.parse=function(e,t){return this.parseQueryString(t?e.hash:e.search)},e.prototype.parseQueryString=function(e){for(var t={},n=(e=e.trim().replace(/^(\?|#|&)/,"")).split("&"),r=0;r<n.length;r+=1){var i=n[r].split("=");if(i.length>=2){var o=decodeURIComponent(i.shift()),s=i.length>0?i.join("="):null;s&&(t[o]=decodeURIComponent(s))}}return t},e.prototype.stringify=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&e[n]&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")},e}();t.BasicQueryStringUtils=n},LmYF:function(e,t,n){var r=n("oLW/"),i=n("ISih"),o=n("98Op"),s=0,a=1,u=2,c=3,l=4,h=5,d=6,f=7,A={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;A.getBCHDigit(t)-A.getBCHDigit(A.G15)>=0;)t^=A.G15<<A.getBCHDigit(t)-A.getBCHDigit(A.G15);return(e<<10|t)^A.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;A.getBCHDigit(t)-A.getBCHDigit(A.G18)>=0;)t^=A.G18<<A.getBCHDigit(t)-A.getBCHDigit(A.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return A.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case s:return(t+n)%2==0;case a:return t%2==0;case u:return n%3==0;case c:return(t+n)%3==0;case l:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case h:return t*n%2+t*n%3==0;case d:return(t*n%2+t*n%3)%2==0;case f:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n<e;n++)t=t.multiply(new i([1,o.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var o=0,s=e.isDark(r,i),a=-1;a<=1;a++)if(!(r+a<0||t<=r+a))for(var u=-1;u<=1;u++)i+u<0||t<=i+u||0==a&&0==u||s==e.isDark(r+a,i+u)&&o++;o>5&&(n+=3+o-5)}for(r=0;r<t-1;r++)for(i=0;i<t-1;i++){var c=0;e.isDark(r,i)&&c++,e.isDark(r+1,i)&&c++,e.isDark(r,i+1)&&c++,e.isDark(r+1,i+1)&&c++,0!=c&&4!=c||(n+=3)}for(r=0;r<t;r++)for(i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i++)for(r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var l=0;for(i=0;i<t;i++)for(r=0;r<t;r++)e.isDark(r,i)&&l++;return n+=10*(Math.abs(100*l/t/t-50)/5)}};e.exports=A},"Mz/W":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)}function i(){return i=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},i.apply(this,arguments)}function o(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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 c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?d(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(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&&A(e,t)}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r<2048?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(o,s){if(!o&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(s-i,"v1H").concat(i+t,"z")),void(i=null);if(s!==e.length-1)o&&null===i&&(i=s);else{if(!o)return;n.push(null===i?"M".concat(s+t,",").concat(r+t," h1v1H").concat(s+t,"z"):"M".concat(i+t,",").concat(r+t," h").concat(s+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}function M(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}function v(e,t){var n=e.imageSettings,r=e.size;if(null==n)return null;var i=t.length+2*(e.includeMargin?4:0),o=Math.floor(.1*r),s=i/r,a=(n.width||o)*s,u=(n.height||o)*s,c=null==n.x?t.length/2-a/2:n.x*s,l=null==n.y?t.length/2-u/2:n.y*s,h=null;if(n.excavate){var d=Math.floor(c),f=Math.floor(l);h={x:d,y:f,w:Math.ceil(a+c-d),h:Math.ceil(u+l-f)}}return{x:c,y:l,h:u,w:a,excavation:h}}var y=n("l8WD"),I=n("lVTs"),w=n("PILG"),E={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},D=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),N=function(e){function t(){for(var e,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return p(d(n=l(this,(e=h(t)).call.apply(e,[this].concat(i)))),"_canvas",void 0),p(d(n),"_image",void 0),p(d(n),"state",{imgLoaded:!1}),p(d(n),"handleImageLoad",(function(){n.setState({imgLoaded:!0})})),n}return f(t,e),c(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(e){var t,n;(null===(t=this.props.imageSettings)||void 0===t?void 0:t.src)!==(null===(n=e.imageSettings)||void 0===n?void 0:n.src)&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,n=e.size,r=e.bgColor,i=e.fgColor,o=e.includeMargin,s=e.imageSettings,a=new I(-1,w[e.level]);if(a.addData(g(t)),a.make(),null!=this._canvas){var u=this._canvas,c=u.getContext("2d");if(!c)return;var l=a.modules;if(null===l)return;var h=o?4:0,d=l.length+2*h,f=v(this.props,l);null!=s&&null!=f&&null!=f.excavation&&(l=M(l,f.excavation));var A=window.devicePixelRatio||1;u.height=u.width=n*A;var p=n/d*A;c.scale(p,p),c.fillStyle=r,c.fillRect(0,0,d,d),c.fillStyle=i,D?c.fill(new Path2D(m(l,h))):l.forEach((function(e,t){e.forEach((function(e,n){e&&c.fillRect(n+h,t+h,1,1)}))})),this.state.imgLoaded&&this._image&&null!=f&&c.drawImage(this._image,f.x+h,f.y+h,f.w,f.h)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.size,r=t.style,o=t.imageSettings,u=a(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),c=s({height:n,width:n},r),l=null,h=o&&o.src;return null!=o&&null!=h&&(l=y.createElement("img",{src:h,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),y.createElement(y.Fragment,null,y.createElement("canvas",i({style:c,height:n,width:n,ref:function(t){return e._canvas=t}},u)),l)}}]),t}(y.PureComponent);p(N,"defaultProps",E);var T=function(e){function t(){return l(this,h(t).apply(this,arguments))}return f(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,o=e.bgColor,s=e.fgColor,u=e.includeMargin,c=e.imageSettings,l=a(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),h=new I(-1,w[r]);h.addData(g(t)),h.make();var d=h.modules;if(null===d)return null;var f=u?4:0,A=d.length+2*f,p=v(this.props,d),E=null;null!=c&&null!=p&&(null!=p.excavation&&(d=M(d,p.excavation)),E=y.createElement("image",{xlinkHref:c.src,height:p.h,width:p.w,x:p.x+f,y:p.y+f,preserveAspectRatio:"none"}));var D=m(d,f);return y.createElement("svg",i({shapeRendering:"crispEdges",height:n,width:n,viewBox:"0 0 ".concat(A," ").concat(A)},l),y.createElement("path",{fill:o,d:"M0,0 h".concat(A,"v").concat(A,"H0z")}),y.createElement("path",{fill:s,d:D}),E)}}]),t}(y.PureComponent);p(T,"defaultProps",E);var L=function(e){var t=e.renderAs,n=a(e,["renderAs"]);return y.createElement("svg"===t?T:N,n)};L.defaultProps=s({renderAs:"canvas"},E),e.exports=L},OBDY:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},OEJh:function(e,t,n){"use strict";var r,i=this&&this.__extends||(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(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TestRequestor=t.FetchRequestor=t.JQueryRequestor=t.Requestor=void 0;var o=n("lA+w"),s=function(){};t.Requestor=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.xhr=function(e){var t=$.ajax(e);return new Promise((function(e,n){t.then((function(t){e(t)}),(function(e,t,r){n(new o.AppAuthError(r))}))}))},t}(s);t.JQueryRequestor=a;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.xhr=function(e){if(!e.url)return Promise.reject(new o.AppAuthError("A URL must be provided."));var t=new URL(e.url),n={};(n.method=e.method,n.mode="cors",e.data)&&(e.method&&"POST"===e.method.toUpperCase()?n.body=e.data:new URLSearchParams(e.data).forEach((function(e,n){t.searchParams.append(n,e)})));if(n.headers={},e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(n.headers[r]=e.headers[r]);var i=e.dataType&&"json"===e.dataType.toLowerCase();return i&&(n.headers.Accept="application/json, text/javascript, */*; q=0.01"),fetch(t.toString(),n).then((function(e){if(e.status>=200&&e.status<300){var t=e.headers.get("content-type");return i||t&&-1!==t.indexOf("application/json")?e.json():e.text()}return Promise.reject(new o.AppAuthError(e.status.toString(),e.statusText))}))},t}(s);t.FetchRequestor=u;var c=function(e){function t(t){var n=e.call(this)||this;return n.promise=t,n}return i(t,e),t.prototype.xhr=function(){return this.promise},t}(s);t.TestRequestor=c},OHXD:function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}var i=n("tImM");r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},OmE2:function(e){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},PILG:function(e){e.exports={L:1,M:0,Q:3,H:2}},QRet:function(e,t,n){"use strict";function r(e,t){E.options.__h&&E.options.__h(I,e,D||t),D=0;var n=I.__H||(I.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function i(e){return D=1,o(v,e)}function o(e,t,n){var i=r(y++,2);return i.t=e,i.__c||(i.__=[n?n(t):v(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=I),i.__}function s(e,t){var n=r(y++,3);!E.options.__s&&M(n.__H,t)&&(n.__=e,n.__H=t,I.__H.__h.push(n))}function a(e,t){var n=r(y++,4);!E.options.__s&&M(n.__H,t)&&(n.__=e,n.__H=t,I.__h.push(n))}function u(e){return D=5,l((function(){return{current:e}}),[])}function c(e,t,n){D=6,a((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function l(e,t){var n=r(y++,7);return M(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function h(e,t){return D=8,l((function(){return e}),t)}function d(e){var t=I.context[e.__c],n=r(y++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(I)),t.props.value):e.__}function f(e,t){E.options.useDebugValue&&E.options.useDebugValue(t?t(e):e)}function A(e){var t=r(y++,10),n=i();return t.__=e,I.componentDidCatch||(I.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function p(){N.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(g),e.__H.__h.forEach(m),e.__H.__h=[]}catch(t){e.__H.__h=[],E.options.__e(t,e.__v)}})),N=[]}function g(e){var t=I;"function"==typeof e.__c&&e.__c(),I=t}function m(e){var t=I;e.__c=e.__(),I=t}function M(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function v(e,t){return"function"==typeof t?t(e):t}n.d(t,"k",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"j",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return A}));var y,I,w,E=n("hosL"),D=0,N=[],T=E.options.__b,L=E.options.__r,C=E.options.diffed,b=E.options.__c,O=E.options.unmount;E.options.__b=function(e){I=null,T&&T(e)},E.options.__r=function(e){L&&L(e),y=0;var t=(I=e.__c).__H;t&&(t.__h.forEach(g),t.__h.forEach(m),t.__h=[])},E.options.diffed=function(e){C&&C(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==N.push(t)&&w===E.options.requestAnimationFrame||((w=E.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),S&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);S&&(t=requestAnimationFrame(n))})(p)),I=null},E.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(g),e.__h=e.__h.filter((function(e){return!e.__||m(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],E.options.__e(n,e.__v)}})),b&&b(e,t)},E.options.unmount=function(e){O&&O(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(g)}catch(e){E.options.__e(e,t.__v)}};var S="function"==typeof requestAnimationFrame},QWY8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationServiceConfiguration=void 0;var r=n("OEJh"),i=function(){function e(e){this.authorizationEndpoint=e.authorization_endpoint,this.tokenEndpoint=e.token_endpoint,this.revocationEndpoint=e.revocation_endpoint,this.userInfoEndpoint=e.userinfo_endpoint,this.endSessionEndpoint=e.end_session_endpoint}return e.prototype.toJson=function(){return{authorization_endpoint:this.authorizationEndpoint,token_endpoint:this.tokenEndpoint,revocation_endpoint:this.revocationEndpoint,end_session_endpoint:this.endSessionEndpoint,userinfo_endpoint:this.userInfoEndpoint}},e.fetchFromIssuer=function(t,n){var i=t+"/.well-known/openid-configuration";return(n||new r.JQueryRequestor).xhr({url:i,dataType:"json",method:"GET"}).then((function(t){return new e(t)}))},e}();t.AuthorizationServiceConfiguration=i},Rzld:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},SgqZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("8HXZ");class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const o="[DEFAULT]";class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new r.a;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:o})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e="[DEFAULT]"){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e="[DEFAULT]"){return this.instances.has(e)}getOptions(e="[DEFAULT]"){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[e,t]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(e)&&t.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===o?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}var r;return n||null}normalizeInstanceIdentifier(e="[DEFAULT]"){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},"Sh+/":function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=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])},n(e,t)},function(e,t){function r(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageBackend=t.StorageBackend=void 0;var i=function(){};t.StorageBackend=i;var o=function(e){function t(t){var n=e.call(this)||this;return n.storage=t||window.localStorage,n}return r(t,e),t.prototype.getItem=function(e){var t=this;return new Promise((function(n){var r=t.storage.getItem(e);n(r||null)}))},t.prototype.removeItem=function(e){var t=this;return new Promise((function(n){t.storage.removeItem(e),n()}))},t.prototype.clear=function(){var e=this;return new Promise((function(t){e.storage.clear(),t()}))},t.prototype.setItem=function(e,t){var n=this;return new Promise((function(r){n.storage.setItem(e,t),r()}))},t}(i);t.LocalStorageBackend=o},TDIH:function(e,t,n){"use strict";var r=n("ovh1"),i=n("5QbJ"),o=n("uahg"),s=n("Zrjs"),a=function e(t){var n=new o(t),a=i(o.prototype.request,n);return r.extend(a,o.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n("bRtl"));a.Axios=o,a.Cancel=n("tImM"),a.CancelToken=n("OHXD"),a.isCancel=n("e5jZ"),a.VERSION=n("4jJt").version,a.all=function(e){return Promise.all(e)},a.spread=n("6s8r"),a.isAxiosError=n("OBDY"),e.exports=a,e.exports.default=a},UNwp:function(e,t){"use strict";function n(e){this.message=e}function r(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(o(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 o(t)}}function i(e){this.message=e}(n.prototype=new Error).name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,s=0,a="";i=t.charAt(s++);~i&&(r=o%4?64*r+i:i,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};(i.prototype=new Error).name="InvalidTokenError",t.a=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}}},UfLo:function(e,t,n){"use strict";var r=n("hosL"),i=n("vBmG"),o=n("paZ/");let s;const a=Object(o.c)("div")([{width:"12rem",height:"0.5rem",position:"relative"}]),u=Object(o.c)("div")(s||(s=(e=>e)`
|
|
7
|
+
`,si=f("div")([{marginLeft:"1rem",marginRight:"1rem",display:"flex",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:"0.25rem","@media (min-width: 768px)":{margin:"auto"}},{minHeight:"25rem"}]),ai=f("div")([{position:"relative",height:"0.5rem",width:"12rem"}]),ci=f("div")`
|
|
35
8
|
box-sizing: border-box;
|
|
36
9
|
overflow: hidden;
|
|
37
10
|
position: absolute;
|
|
@@ -84,79 +57,1661 @@
|
|
|
84
57
|
left: calc(50% - -6rem);
|
|
85
58
|
}
|
|
86
59
|
}
|
|
87
|
-
|
|
88
|
-
${
|
|
89
|
-
`),(()=>({width:"1.5rem",height:"1.5rem",borderWidth:"2px",animation:"spin 1s linear infinite",borderRadius:"9999px",borderColor:"currentColor",borderTopColor:"rgba(0, 0, 0, 0)",borderLeftColor:"rgba(0, 0, 0, 0)"})));t.b=o},WAZ4:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n("1PO9"),i=n("hosL"),o=n("QRet"),s=n("ue2Z"),a=n("aWKI");const u=e=>{switch(e.code){case r.a.CAPTCHA_CHECK_FAILED:return s.a.INVALID_RECAPTCHA;case r.a.INVALID_PHONE_NUMBER:case r.a.MISSING_PHONE_NUMBER:return s.a.INVALID_PHONE_NUMBER;case r.a.USER_DISABLED:return s.a.INVALID_ACCOUNT;case r.a.INVALID_IDP_RESPONSE:case r.a.INVALID_CODE:case r.a.INVALID_SESSION_INFO:return s.a.INVALID_OTP;default:throw e.message}},c=Object(i.createContext)({authState:{state:"idle"},init:()=>{},sendOtp:async()=>!0,resendOtp:async()=>!0,verifyOtp:async()=>!0}),l=({children:t})=>{const n=(()=>{const[e,t]=Object(o.k)({state:"idle"}),n=Object(o.j)(null),i=Object(o.j)(""),s=Object(o.j)("");return{authState:e,init:e=>{n.current||(n.current=new r.c(e,{size:"invisible"},Object(a.a)()))},sendOtp:async e=>{if(!n.current)throw Error("[Sign in]: RecaptchaVerifier has not been initialized yet, please call init()");s.current=e,t({state:"sending"});try{const o=new r.b(Object(a.a)()),s=await o.verifyPhoneNumber(e,n.current);return i.current=s,t({state:"sent",phoneNumber:e}),!0}catch(e){return t({state:"error",occuredWhen:"sending",error:u(e)}),!1}},verifyOtp:async e=>{if(!i.current)throw Error("[Sign in]: Please verify phone number first and then verify OTP.");t({state:"verifying"});try{const n=r.b.credential(i.current,e);return await Object(r.f)(Object(a.a)(),n),t({state:"verified"}),!0}catch(e){return t({state:"error",occuredWhen:"verifying",error:u(e)}),!1}},resendOtp:async()=>{if(!s.current||!n.current)throw Error("[Sign in]: Please verify phone number first and then resend OTP.");t({state:"resending"});try{const e=new r.b(Object(a.a)()),o=await e.verifyPhoneNumber(s.current,n.current);return i.current=o,t({state:"sent",phoneNumber:s.current}),!0}catch(e){return t({state:"error",occuredWhen:"resending",error:u(e)}),!1}}}})();return e(c.Provider,{value:n},t)};t.b=c}).call(this,n("hosL").h)},WMFz:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenError=t.TokenResponse=t.nowInSeconds=void 0;t.nowInSeconds=function(){return Math.round((new Date).getTime()/1e3)};var n=function(){function e(e){this.accessToken=e.access_token,this.tokenType=e.token_type||"bearer",e.expires_in&&(this.expiresIn=parseInt(e.expires_in,10)),this.refreshToken=e.refresh_token,this.scope=e.scope,this.idToken=e.id_token,this.issuedAt=e.issued_at||t.nowInSeconds()}return e.prototype.toJson=function(){var e;return{access_token:this.accessToken,id_token:this.idToken,refresh_token:this.refreshToken,scope:this.scope,token_type:this.tokenType,issued_at:this.issuedAt,expires_in:null===(e=this.expiresIn)||void 0===e?void 0:e.toString()}},e.prototype.isValid=function(e){return void 0===e&&(e=-600),!this.expiresIn||t.nowInSeconds()<this.issuedAt+this.expiresIn+e},e}();t.TokenResponse=n;var r=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri}},e}();t.TokenError=r},WrvZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationRequest=void 0;var r=n("sS3n"),i=n("wZHQ"),o=function(){function e(t,n,i){void 0===n&&(n=new r.DefaultCrypto),void 0===i&&(i=!0),this.crypto=n,this.usePkce=i,this.clientId=t.client_id,this.redirectUri=t.redirect_uri,this.scope=t.scope,this.responseType=t.response_type||e.RESPONSE_TYPE_CODE,this.state=t.state||function(e){return e.generateRandom(10)}(n),this.extras=t.extras,this.internal=t.internal}return e.prototype.setupCodeVerifier=function(){var e=this;if(this.usePkce){var t=this.crypto.generateRandom(128);return this.crypto.deriveChallenge(t).catch((function(e){i.log("Unable to generate PKCE challenge. Not using PKCE",e)})).then((function(n){n&&(e.internal=e.internal||{},e.internal.code_verifier=t,e.extras=e.extras||{},e.extras.code_challenge=n,e.extras.code_challenge_method="S256")}))}return Promise.resolve()},e.prototype.toJson=function(){var e=this;return this.setupCodeVerifier().then((function(){return{response_type:e.responseType,client_id:e.clientId,redirect_uri:e.redirectUri,scope:e.scope,state:e.state,extras:e.extras,internal:e.internal}}))},e.RESPONSE_TYPE_TOKEN="token",e.RESPONSE_TYPE_CODE="code",e}();t.AuthorizationRequest=o},XbQM:function(e,t,n){"use strict";(function(e,r){var i=n("QRet"),o=n("WAZ4"),s=n("cWc2"),a=n("7V6f"),u=n("/KrD"),c=n("hZXd"),l=n("rOe0");const h="INVISIBLE_RECAPTCHA_VERIFIER_ID";var d;!function(e){e[e.PhoneNumber=0]="PhoneNumber",e[e.OTP=1]="OTP",e[e.Verifying=2]="Verifying"}(d||(d={}));const f=()=>{const{authState:t,init:n}=Object(s.a)(),[o,f]=Object(i.k)(d.PhoneNumber);return Object(i.d)((()=>{n(h)}),[n]),Object(i.d)((()=>{"sent"===t.state?f(d.OTP):"verifying"===t.state?f(d.Verifying):"error"===t.state&&"verifying"===t.occuredWhen&&f(d.OTP)}),[t,f]),e(r,null,e(l.d,{src:"https://www.flarehr.com/wp-content/uploads/2022/03/flare-logo.svg",alt:"Flare Logo"}),o===d.PhoneNumber&&e(u.a,null),o===d.OTP&&e(a.a,null),o===d.Verifying&&e(c.a,null),e("div",{id:h}))};t.a=()=>e(o.a,null,e(f,null))}).call(this,n("hosL").h,n("hosL").Fragment)},Zrjs:function(e,t,n){"use strict";var r=n("ovh1");e.exports=function(e,t){function n(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(i){return r.isUndefined(t[i])?r.isUndefined(e[i])?void 0:n(void 0,e[i]):n(e[i],t[i])}function o(e){if(!r.isUndefined(t[e]))return n(void 0,t[e])}function s(i){return r.isUndefined(t[i])?r.isUndefined(e[i])?void 0:n(void 0,e[i]):n(void 0,t[i])}function a(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}t=t||{};var u={},c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);r.isUndefined(n)&&t!==a||(u[e]=n)})),u}},aECo:function(e,t,n){"use strict";var r=n("2KG9");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},aWKI:function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n("xsHj");Object(r.f)("firebase","9.16.0","app");var i=n("1PO9");let o=null,s=null;const a=e=>{s=e};t.a=()=>{if(!o){if(!s)throw"App hasn't been initialized yet. Avoid use getAuth() when not inizialized.";const e=Object(r.e)(s);o=Object(i.d)(e),o.setPersistence(i.e)}return o}},bRtl:function(e,t,n){"use strict";function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i,o=n("ovh1"),s=n("71kK"),a=n("OmE2"),u={"Content-Type":"application/x-www-form-urlencoded"},c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(i=n("zf4f")),i),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(r(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=!(t&&t.silentJSONParsing)&&"json"===this.responseType;if(n||t&&t.forcedJSONParsing&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){c.headers[e]=o.merge(u)})),e.exports=c},cON5:function(e,t,n){"use strict";var r=n("ovh1");e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return t=e(window.location.href),function(n){var i=r.isString(n)?e(n):n;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0}},cWc2:function(e,t,n){"use strict";var r=n("QRet"),i=n("WAZ4");t.a=()=>Object(r.b)(i.b)},czhI:function(e,t,n){e.exports=n("TDIH")},e5jZ:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},fWrg:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("paZ/");const i=Object(r.c)("div")([{display:"flex",alignItems:"center",justifyContent:"center"}])},"fwl+":function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n("ovh1");e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},fxKM:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationError=t.AuthorizationResponse=void 0;var n=function(){function e(e){this.code=e.code,this.state=e.state}return e.prototype.toJson=function(){return{code:this.code,state:this.state}},e}();t.AuthorizationResponse=n;var r=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri,this.state=e.state}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri,state:this.state}},e}();t.AuthorizationError=r},gjG8:function(e,t,n){"use strict";var r=n("hosL"),i=n("QRet"),o=n("UNwp"),s=n("FIkf"),a=n("1kmk"),u=n("WrvZ"),c=n("5hdk"),l=n("B0/y"),h=n("QWY8"),d=n("sS3n"),f=n("OEJh"),A=n("JPIm"),p=n("uFtE");let g;const m=async(e,t)=>{const n=await h.AuthorizationServiceConfiguration.fetchFromIssuer(e,t);return g=n,n},M=async(e,t,n,r,i)=>{const o={};t&&(o.code_verifier=t);const s=new A.TokenRequest({client_id:r.clientId,redirect_uri:r.redirectUri,grant_type:A.GRANT_TYPE_AUTHORIZATION_CODE,code:e,refresh_token:void 0,extras:o});return await n.performTokenRequest(i,s)},v=e=>{if(e&&e.isValid())return e.accessToken},y=async e=>{try{const t=await e.storageBackend.getItem("appauth_current_authorization_request"),n=t&&await e.storageBackend.getItem((e=>`${e}_appauth_authorization_service_configuration`)(t));if(n){const e=JSON.parse(n);g=new h.AuthorizationServiceConfiguration(e)}return!0}catch(e){return!1}};var I=n("UfLo"),w=n("yKF6"),E=n("8NER"),D=n("vHwa");let N;!function(e){e[e.Loading=0]="Loading",e[e.Redirecting=1]="Redirecting",e[e.Returning=2]="Returning",e[e.Error=3]="Error",e[e.Complete=4]="Complete"}(N||(N={}));t.a=({apolloAccessToken:e})=>{const[t,n]=Object(i.k)(N.Loading),[h,A]=Object(i.k)(!1),[T,L]=Object(i.k)(),C=e=>{console.error(`[Link Workplace]: ${e}`)};Object(s.a)((async t=>{const r=e=>{C(e),n(N.Error)},i=await(async(e,t,n)=>{const r=new c.AuthorizationNotifier,i=new l.RedirectRequestHandler,o=new f.FetchRequestor,s=new p.BaseTokenRequestHandler(o);return i.setAuthorizationNotifier(r),r.setAuthorizationListener((async(r,i,o)=>{if(e(),await new Promise((e=>setTimeout(e,1e3))),o)return n(`[AuthListener]: Auth response error received: ${o.errorDescription}`);if(!i)return await t();let a;if(r.internal&&r.internal.code_verifier&&(a=r.internal.code_verifier),!g)return n("[AuthListener]: OIDC configuration not found");try{const e=await M(i.code,a,s,r,g),o=v(e);return o&&i.state?await t(o,i.state):n("[AuthListener]: Could not resolve access token or state")}catch(e){return n(`[AuthListener]: Token code exchange failed: ${e}`)}})),{authorizationHandler:i,tokenHandler:s,requestor:o}})((()=>n(N.Returning)),(async(i,s)=>{if(!i||!s)return n(N.Redirecting);try{const r=Object(o.a)(e);await Object(a.a)(i,s,r.sub,t),n(N.Complete)}catch(e){r(`Error when trying to establish workplace link: ${e}`)}}),r);L(i)}),[]),Object(s.a)((async()=>{T&&(await(async e=>{await y(e),await e.completeAuthorizationRequestIfPossible()})(T.authorizationHandler),await new Promise((e=>setTimeout(e,1e3))),A(!0))}),[T]),Object(i.d)((()=>{T&&t===N.Loading&&h&&n(N.Redirecting)}),[T,t,h]),Object(s.a)((async r=>{if(T&&t===N.Redirecting)try{const t=await Object(a.d)(e,r);if(t.isEstablished)return n(N.Complete);if(t.linkRequest){const e={openIdConnectUrl:t.linkRequest.openIdConnectUrl,clientId:t.linkRequest.clientId,redirectUri:Object(D.b)(),scope:`${t.linkRequest.clientId} openid`,state:t.linkRequest.linkRequestId};await(async(e,t,n)=>{const r=await m(n.openIdConnectUrl,e),i=new u.AuthorizationRequest({client_id:n.clientId,redirect_uri:n.redirectUri,scope:n.scope,response_type:u.AuthorizationRequest.RESPONSE_TYPE_CODE,state:n.state,extras:{response_mode:"fragment",prompt:"login",option:"signup"}},new d.DefaultCrypto,!0);t.performAuthorizationRequest(r,i)})(T.requestor,null==T?void 0:T.authorizationHandler,e)}else C("Invalid response when requesting a workplace link"),n(N.Error)}catch(e){C(`Could not redirect to OIDC provider: ${e}`),n(N.Error)}}),[T,t]),Object(i.d)((()=>{t===N.Complete&&Object(D.a)()}),[t]);const b=t==N.Loading||t==N.Redirecting||t==N.Returning;return Object(r.h)(r.Fragment,null,b&&Object(r.h)(I.a,{isActive:b}),t==N.Error&&Object(r.h)(E.a,null),t==N.Complete&&Object(r.h)(w.a,null))}},guUT:function(e,t,n){"use strict";function r(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new u("canceled")}var i=n("ovh1"),o=n("4OlW"),s=n("e5jZ"),a=n("bRtl"),u=n("tImM");e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return r(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return s(t)||(r(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},h1Um:function(e,t,n){"use strict";var r=n("Rzld"),i=n("hUM7");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},hUM7:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},hZXd:function(e,t,n){"use strict";(function(e){var r=n("VB+g"),i=n("rOe0");t.a=()=>e(i.e,null,e(r.b,{className:"spin"}),e(i.f,null,"Please wait while we process your information."))}).call(this,n("hosL").h)},hosL:function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){var t=e.parentNode;t&&t.removeChild(e)}function o(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?j.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return s(e,a,r,i,null)}function s(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++_:i};return null==i&&null!=k.vnode&&k.vnode(o),o}function a(){return{current:null}}function u(e){return e.children}function c(e,t){this.props=e,this.context=t}function l(e,t){if(null==t)return e.__?l(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?l(e):null}function h(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return h(e)}}function d(e){(!e.__d&&(e.__d=!0)&&z.push(e)&&!f.__r++||P!==k.debounceRendering)&&((P=k.debounceRendering)||R)(f)}function f(){for(var e;f.__r=z.length;)e=z.sort((function(e,t){return e.__v.__b-t.__v.__b})),z=[],e.some((function(e){var t,n,i,o,s,a;e.__d&&(s=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=r({},o)).__v=o.__v+1,w(a,o,i,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[s]:null,n,null==s?l(o):s,o.__h),E(n,o),o.__e!=s&&h(o)))}))}function A(e,t,n,r,i,o,a,c,h,d){var f,A,g,M,v,y,I,E=r&&r.__k||Q,D=E.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(M=n.__k[f]=null==(M=t[f])||"boolean"==typeof M?null:"string"==typeof M||"number"==typeof M||"bigint"==typeof M?s(null,M,null,null,M):Array.isArray(M)?s(u,{children:M},null,null,null):M.__b>0?s(M.type,M.props,M.key,null,M.__v):M)){if(M.__=n,M.__b=n.__b+1,null===(g=E[f])||g&&M.key==g.key&&M.type===g.type)E[f]=void 0;else for(A=0;A<D;A++){if((g=E[A])&&M.key==g.key&&M.type===g.type){E[A]=void 0;break}g=null}w(e,M,g=g||B,i,o,a,c,h,d),v=M.__e,(A=M.ref)&&g.ref!=A&&(I||(I=[]),g.ref&&I.push(g.ref,null,M),I.push(A,M.__c||v,M)),null!=v?(null==y&&(y=v),"function"==typeof M.type&&M.__k===g.__k?M.__d=h=p(M,h,e):h=m(e,M,g,E,v,h),"function"==typeof n.type&&(n.__d=h)):h&&g.__e==h&&h.parentNode!=e&&(h=l(g))}for(n.__e=y,f=D;f--;)null!=E[f]&&("function"==typeof n.type&&null!=E[f].__e&&E[f].__e==n.__d&&(n.__d=l(r,f+1)),T(E[f],E[f]));if(I)for(f=0;f<I.length;f++)N(I[f],I[++f],I[++f])}function p(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?p(r,t,n):m(n,r,r,i,r.__e,t));return t}function g(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){g(e,t)})):t.push(e)),t}function m(e,t,n,r,i,o){var s,a,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),s=null;else{for(a=o,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==i)break e;e.insertBefore(i,o),s=o}return void 0!==s?s:i.nextSibling}function M(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Y.test(t)?n:n+"px"}function v(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||M(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||M(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?I:y,o):e.removeEventListener(t,o?I:y,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function y(e){this.l[e.type+!1](k.event?k.event(e):e)}function I(e){this.l[e.type+!0](k.event?k.event(e):e)}function w(e,t,n,i,o,s,a,l,h){var d,f,p,g,m,M,v,y,I,w,E,N=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(h=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(d=k.__b)&&d(t);try{e:if("function"==typeof N){if(y=t.props,I=(d=N.contextType)&&i[d.__c],w=d?I?I.props.value:d.__:i,n.__c?v=(f=t.__c=n.__c).__=f.__E:("prototype"in N&&N.prototype.render?t.__c=f=new N(y,w):(t.__c=f=new c(y,w),f.constructor=N,f.render=L),I&&I.sub(f),f.props=y,f.state||(f.state={}),f.context=w,f.__n=i,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=N.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=r({},f.__s)),r(f.__s,N.getDerivedStateFromProps(y,f.__s))),g=f.props,m=f.state,p)null==N.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==N.getDerivedStateFromProps&&y!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,w),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,w)||t.__v===n.__v){f.props=y,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,w),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,m,M)}))}f.context=w,f.props=y,f.state=f.__s,(d=k.__r)&&d(t),f.__d=!1,f.__v=t,f.__P=e,d=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(i=r(r({},i),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(M=f.getSnapshotBeforeUpdate(g,m)),E=null!=d&&d.type===u&&null==d.key?d.props.children:d,A(e,Array.isArray(E)?E:[E],t,n,i,o,s,a,l,h),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),v&&(f.__E=f.__=null),f.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=D(n.__e,t,n,i,o,s,a,h);(d=k.diffed)&&d(t)}catch(e){t.__v=null,(h||null!=s)&&(t.__e=l,t.__h=!!h,s[s.indexOf(l)]=null),k.__e(e,t,n)}}function E(e,t){k.__c&&k.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){k.__e(e,t.__v)}}))}function D(e,t,n,r,o,s,a,u){var c,h,d,f=n.props,p=t.props,g=t.type,m=0;if("svg"===g&&(o=!0),null!=s)for(;m<s.length;m++)if((c=s[m])&&(c===e||(g?c.localName==g:3==c.nodeType))){e=c,s[m]=null;break}if(null==e){if(null===g)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),s=null,u=!1}if(null===g)f===p||u&&e.data===p||(e.data=p);else{if(s=s&&j.call(e.childNodes),h=(f=n.props||B).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!u){if(null!=s)for(f={},m=0;m<e.attributes.length;m++)f[e.attributes[m].name]=e.attributes[m].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||v(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||v(e,o,t[o],n[o],r)}(e,p,f,o,u),d)t.__k=[];else if(m=t.props.children,A(e,Array.isArray(m)?m:[m],t,n,r,o&&"foreignObject"!==g,s,a,s?s[0]:n.__k&&l(n,0),u),null!=s)for(m=s.length;m--;)null!=s[m]&&i(s[m]);u||("value"in p&&void 0!==(m=p.value)&&(m!==e.value||"progress"===g&&!m)&&v(e,"value",m,f.value,!1),"checked"in p&&void 0!==(m=p.checked)&&m!==e.checked&&v(e,"checked",m,f.checked,!1))}return e}function N(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){k.__e(e,n)}}function T(e,t,n){var r,o;if(k.unmount&&k.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||N(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){k.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&T(r[o],t,"function"!=typeof e.type);n||null==e.__e||i(e.__e),e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function C(e,t,n){var r,i,s;k.__&&k.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],w(t,e=(!r&&n||t).__k=o(u,null,[e]),i||B,B,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?j.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r),E(s,e)}function b(e,t){C(e,t,b)}function O(e,t,n){var i,o,a,u=r({},e.props);for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?j.call(arguments,2):n),s(e.type,u,i||e.key,o||e.ref,null)}function S(e,t){var n={__c:t="__cC"+U++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(d)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.r(t),n.d(t,"render",(function(){return C})),n.d(t,"hydrate",(function(){return b})),n.d(t,"createElement",(function(){return o})),n.d(t,"h",(function(){return o})),n.d(t,"Fragment",(function(){return u})),n.d(t,"createRef",(function(){return a})),n.d(t,"isValidElement",(function(){return x})),n.d(t,"Component",(function(){return c})),n.d(t,"cloneElement",(function(){return O})),n.d(t,"createContext",(function(){return S})),n.d(t,"toChildArray",(function(){return g})),n.d(t,"options",(function(){return k}));var j,k,_,x,z,R,P,U,B={},Q=[],Y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;j=Q.slice,k={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},_=0,x=function(e){return null!=e&&void 0===e.constructor},c.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),d(this))},c.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),d(this))},c.prototype.render=u,z=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f.__r=0,U=0},i0F7:function(e,t,n){"use strict";function r(){this.handlers=[]}var i=n("ovh1");r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},keIi:function(e,t,n){"use strict";var r=n("4jJt").version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],u=void 0===a||s(a,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},l8WD:function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function o(e){this.props=e}function s(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Object(T.createElement)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function a(e){function t(t,n){var i=r({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=C,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function u(){this.__u=0,this.t=null,this.__b=null}function c(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function l(e){function t(t){if(n||(n=e()).then((function(e){r=e.default||e}),(function(e){i=e})),i)throw i;if(!r)throw n;return Object(T.createElement)(r,t)}var n,r,i;return t.displayName="Lazy",t.__f=!0,t}function h(){this.u=null,this.o=null}function d(e){return this.getChildContext=function(){return e.context},e.children}function f(e){var t=this,n=e.i;t.componentWillUnmount=function(){Object(T.render)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Object(T.render)(Object(T.createElement)(d,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function A(e,t){return Object(T.createElement)(f,{__v:e,i:t})}function p(e,t,n){return null==t.__k&&(t.textContent=""),Object(T.render)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(e,t,n){return Object(T.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(){}function M(){return this.cancelBubble}function v(){return this.defaultPrevented}function y(e){return T.createElement.bind(null,e)}function I(e){return!!e&&e.$$typeof===_}function w(e){return I(e)?T.cloneElement.apply(null,arguments):e}function E(e){return!!e.__k&&(Object(T.render)(null,e),!0)}function D(e){return e&&(e.base||1===e.nodeType&&e)||null}n.r(t),n.d(t,"version",(function(){return J})),n.d(t,"Children",(function(){return O})),n.d(t,"render",(function(){return p})),n.d(t,"hydrate",(function(){return g})),n.d(t,"unmountComponentAtNode",(function(){return E})),n.d(t,"createPortal",(function(){return A})),n.d(t,"createFactory",(function(){return y})),n.d(t,"cloneElement",(function(){return w})),n.d(t,"isValidElement",(function(){return I})),n.d(t,"findDOMNode",(function(){return D})),n.d(t,"PureComponent",(function(){return o})),n.d(t,"memo",(function(){return s})),n.d(t,"forwardRef",(function(){return a})),n.d(t,"flushSync",(function(){return V})),n.d(t,"unstable_batchedUpdates",(function(){return H})),n.d(t,"StrictMode",(function(){return W})),n.d(t,"Suspense",(function(){return u})),n.d(t,"SuspenseList",(function(){return h})),n.d(t,"lazy",(function(){return l})),n.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return F}));var N=n("QRet");n.d(t,"useState",(function(){return N.k})),n.d(t,"useReducer",(function(){return N.i})),n.d(t,"useEffect",(function(){return N.d})),n.d(t,"useLayoutEffect",(function(){return N.g})),n.d(t,"useRef",(function(){return N.j})),n.d(t,"useImperativeHandle",(function(){return N.f})),n.d(t,"useMemo",(function(){return N.h})),n.d(t,"useCallback",(function(){return N.a})),n.d(t,"useContext",(function(){return N.b})),n.d(t,"useDebugValue",(function(){return N.c})),n.d(t,"useErrorBoundary",(function(){return N.e}));var T=n("hosL");n.d(t,"createElement",(function(){return T.createElement})),n.d(t,"createContext",(function(){return T.createContext})),n.d(t,"createRef",(function(){return T.createRef})),n.d(t,"Fragment",(function(){return T.Fragment})),n.d(t,"Component",(function(){return T.Component})),(o.prototype=new T.Component).isPureReactComponent=!0,o.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var L=T.options.__b;T.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),L&&L(e)};var C="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,b=function(e,t){return null==e?null:Object(T.toChildArray)(Object(T.toChildArray)(e).map(t))},O={map:b,forEach:b,count:function(e){return e?Object(T.toChildArray)(e).length:0},only:function(e){var t=Object(T.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:T.toChildArray},S=T.options.__e;T.options.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);S(e,t,n)};var j=T.options.unmount;T.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),j&&j(e)},(u.prototype=new T.Component).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=c(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},u.prototype.componentWillUnmount=function(){this.t=[]},u.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=r({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var o=t.__e&&Object(T.createElement)(T.Fragment,null,e.fallback);return o&&(o.__h=null),[Object(T.createElement)(T.Fragment,null,t.__e?null:e.children),o]};var k=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(h.prototype=new T.Component).__e=function(e){var t=this,n=c(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),k(t,e,r)):i()};n?n(o):o()}},h.prototype.render=function(e){this.u=null,this.o=new Map;var t=Object(T.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},h.prototype.componentDidUpdate=h.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){k(e,n,t)}))};var _="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,x=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,z="undefined"!=typeof document,R=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};T.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(T.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var P=T.options.event;T.options.event=function(e){return P&&(e=P(e)),e.persist=m,e.isPropagationStopped=M,e.isDefaultPrevented=v,e.nativeEvent=e};var U,B={configurable:!0,get:function(){return this.class}},Q=T.options.vnode;T.options.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var o in r={},n){var s=n[o];z&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==s||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!R(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():i&&x.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[o]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(T.toChildArray)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Object(T.toChildArray)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(B.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",B)),e.$$typeof=_,Q&&Q(e)};var Y=T.options.__r;T.options.__r=function(e){Y&&Y(e),U=e.__c};var F={ReactCurrentDispatcher:{current:{readContext:function(e){return U.__n[e.__c].props.value}}}},J="17.0.2",H=function(e,t){return e(t)},V=function(e,t){return e(t)},W=T.Fragment;t.default={useState:N.k,useReducer:N.i,useEffect:N.d,useLayoutEffect:N.g,useRef:N.j,useImperativeHandle:N.f,useMemo:N.h,useCallback:N.a,useContext:N.b,useDebugValue:N.c,version:"17.0.2",Children:O,render:p,hydrate:g,unmountComponentAtNode:E,createPortal:A,createElement:T.createElement,createContext:T.createContext,createFactory:y,cloneElement:w,createRef:T.createRef,Fragment:T.Fragment,isValidElement:I,findDOMNode:D,Component:T.Component,PureComponent:o,memo:s,forwardRef:a,flushSync:V,unstable_batchedUpdates:H,StrictMode:T.Fragment,Suspense:u,SuspenseList:h,lazy:l,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:F}},"lA+w":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppAuthError=void 0,t.AppAuthError=function(e,t){this.message=e,this.extras=t}},lVTs:function(e,t,n){function r(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var i=n("61Rr"),o=n("s+BS"),s=n("5wDt"),a=n("LmYF"),u=n("ISih"),c=r.prototype;c.addData=function(e){var t=new i(e);this.dataList.push(t),this.dataCache=null},c.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new s,r=0,i=0;i<t.length;i++)r+=t[i].dataCount;for(i=0;i<this.dataList.length;i++){var u=this.dataList[i];n.put(u.mode,4),n.put(u.getLength(),a.getLengthInBits(u.mode,e)),u.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},c.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},c.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},c.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,s=0;s<this.modules[i].length;s++){var a=1*s;this.modules[i][s]&&(r.beginFill(0,100),r.moveTo(a,o),r.lineTo(a+1,o),r.lineTo(a+1,o+1),r.lineTo(a,o+1),r.endFill())}return r},c.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},c.setupPositionAdjustPattern=function(){for(var e=a.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],i=e[n];if(null==this.modules[r][i])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[r+o][i+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},c.setupTypeNumber=function(e){for(var t=a.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},c.setupTypeInfo=function(e,t){for(var n=a.getBCHTypeInfo(this.errorCorrectLevel<<3|t),r=0;r<15;r++){var i=!e&&1==(n>>r&1);r<6?this.modules[r][8]=i:r<8?this.modules[r+1][8]=i:this.modules[this.moduleCount-15+r][8]=i}for(r=0;r<15;r++){i=!e&&1==(n>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=i:r<9?this.modules[8][15-r-1+1]=i:this.modules[8][15-r-1]=i}this.modules[this.moduleCount-8][8]=!e},c.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[r][s-u]){var c=!1;o<e.length&&(c=1==(e[o]>>>i&1)),a.getMask(t,r,s-u)&&(c=!c),this.modules[r][s-u]=c,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},r.PAD0=236,r.PAD1=17,r.createData=function(e,t,n){for(var i=o.getRSBlocks(e,t),u=new s,c=0;c<n.length;c++){var l=n[c];u.put(l.mode,4),u.put(l.getLength(),a.getLengthInBits(l.mode,e)),l.write(u)}var h=0;for(c=0;c<i.length;c++)h+=i[c].dataCount;if(u.getLengthInBits()>8*h)throw new Error("code length overflow. ("+u.getLengthInBits()+">"+8*h+")");for(u.getLengthInBits()+4<=8*h&&u.put(0,4);u.getLengthInBits()%8!=0;)u.putBit(!1);for(;!(u.getLengthInBits()>=8*h||(u.put(r.PAD0,8),u.getLengthInBits()>=8*h));)u.put(r.PAD1,8);return r.createBytes(u,i)},r.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),s=new Array(t.length),c=0;c<t.length;c++){var l=t[c].dataCount,h=t[c].totalCount-l;r=Math.max(r,l),i=Math.max(i,h),o[c]=new Array(l);for(var d=0;d<o[c].length;d++)o[c][d]=255&e.buffer[d+n];n+=l;var f=a.getErrorCorrectPolynomial(h),A=new u(o[c],f.getLength()-1).mod(f);s[c]=new Array(f.getLength()-1);for(d=0;d<s[c].length;d++){var p=d+A.getLength()-s[c].length;s[c][d]=p>=0?A.get(p):0}}var g=0;for(d=0;d<t.length;d++)g+=t[d].totalCount;var m=new Array(g),M=0;for(d=0;d<r;d++)for(c=0;c<t.length;c++)d<o[c].length&&(m[M++]=o[c][d]);for(d=0;d<i;d++)for(c=0;c<t.length;c++)d<s[c].length&&(m[M++]=s[c][d]);return m},e.exports=r},li6C:function(e,t,n){"use strict";function r(e){o.forEach((t=>{t.setLogLevel(e)}))}function i(e,t){for(const n of o){let r=null;t&&t.level&&(r=a[t.level]),n.userLogHandler=null===e?null:(t,n,...i)=>{const o=i.map((e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((e=>e)).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:s[n].toLowerCase(),message:o,args:i,type:t.name})}}}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i}));const o=[];var s;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(s||(s={}));const a={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},u=s.INFO,c={[s.DEBUG]:"log",[s.VERBOSE]:"log",[s.INFO]:"info",[s.WARN]:"warn",[s.ERROR]:"error"},l=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=c[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}] ${e.name}:`,...n)};class h{constructor(e){this.name=e,this._logLevel=u,this._logHandler=l,this._userLogHandler=null,o.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in s))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?a[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,s.DEBUG,...e),this._logHandler(this,s.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,s.VERBOSE,...e),this._logHandler(this,s.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,s.INFO,...e),this._logHandler(this,s.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,s.WARN,...e),this._logHandler(this,s.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,s.ERROR,...e),this._logHandler(this,s.ERROR,...e)}}},mdyV:function(e,t,n){"use strict";n.r(t);var r=n("hosL");const{h:i,render:o,hydrate:s}=r,a=e=>e&&e.default?e.default:e;if("function"==typeof a(n("/hs+"))){let e=document.getElementById("preact_root")||document.body.firstElementChild,t=()=>{let t=a(n("/hs+")),r={};const s=document.querySelector('[type="__PREACT_CLI_DATA__"]');s&&(r=JSON.parse(decodeURI(s.innerHTML)).preRenderData||r);r.url&&(u=r.url);var u;e=o(i(t,{CLI_DATA:{preRenderData:r}}),document.body,e)};0,t()}},"oLW/":function(e){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},ovh1:function(e,t,n){"use strict";function r(e){return"[object Array]"===l.call(e)}function i(e){return void 0===e}function o(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==l.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function a(e){return"[object Function]"===l.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var c=n("5QbJ"),l=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===l.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isPlainObject:s,isUndefined:i,isDate:function(e){return"[object Date]"===l.call(e)},isFile:function(e){return"[object File]"===l.call(e)},isBlob:function(e){return"[object Blob]"===l.call(e)},isFunction:a,isStream:function(e){return o(e)&&a(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){function t(t,i){n[i]=s(n[i])&&s(t)?e(n[i],t):s(t)?e({},t):r(t)?t.slice():t}for(var n={},i=0,o=arguments.length;i<o;i++)u(arguments[i],t);return n},extend:function(e,t,n){return u(t,(function(t,r){e[r]=n&&"function"==typeof t?c(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},pCvA:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t},"paZ/":function(e,t,n){"use strict";function r(){return r=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},r.apply(this,arguments)}function i(e){let t=this||{},n=e.call?e(t.p):e;return m(n.unshift?n.raw?M(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>n?r(e,n.call?n(t.p):n):e),{}):n,h(t.target),t.g,t.o,t.k)}function o(e,t,n,r){A.p=t,a=e,u=n,c=r}function s(e,t){let n=this||{};return function(){function o(l,h){let d=r({},l),f=d.className||o.className;n.p=r({theme:u&&u()},d),n.o=/ *go\d+/.test(f),d.className=i.apply(n,s)+(f?" "+f:""),t&&(d.ref=h);let A=d.as||e;return delete d.as,c&&A[0]&&c(d),a(A,d)}let s=arguments;return t?t(o):o}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));let a,u,c,l={data:""},h=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||r((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||l,d=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,f=/\/\*[^]*?\*\/|\s\s+|\n/g,A=(e,t)=>{let n,r="",i="",o="";for(let s in e){let a=e[s];"object"==typeof a?(n=t?t.replace(/([^,])+/g,(e=>s.replace(/([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):s,i+="@"==s[0]?"f"==s[1]?A(a,s):s+"{"+A(a,"k"==s[1]?"":t)+"}":A(a,n)):"@"==s[0]&&"i"==s[1]?r=s+" "+a+";":(s=s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=A.p?A.p(s,a):s+":"+a+";")}return o[0]?(n=t?t+"{"+o+"}":o,r+n+i):r+i},p={},g=e=>{let t="";for(let n in e)t+=n+("object"==typeof e[n]?g(e[n]):e[n]);return t},m=(e,t,n,r,i)=>{let o="object"==typeof e?g(e):e,s=p[o]||(p[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(o));if(!p[s]){let t="object"==typeof e?e:(e=>{let t,n=[{}];for(;t=d.exec(e.replace(f,""));)t[4]&&n.shift(),t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):t[4]||(n[0][t[1]]=t[2]);return n[0]})(e);p[s]=A(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return((e,t,n)=>{-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(p[s],t,r),s},M=(e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":A(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");i.bind({g:1}),i.bind({k:1})},qtd4:function(e,t,n){"use strict";(function(e){var r,i=n("UNwp"),o=n("QRet"),s=n("FIkf"),a=n("1kmk"),u=n("vHwa"),c=n("yKF6"),l=n("8NER"),h=n("XbQM"),d=n("UfLo"),f=n("tJLs"),A=n("GGjp");!function(e){e[e.Requesting=0]="Requesting",e[e.Authenticating=1]="Authenticating",e[e.Authenticated=2]="Authenticated",e[e.Establishing=3]="Establishing",e[e.Error=4]="Error",e[e.Complete=5]="Complete"}(r||(r={}));t.a=t=>{const{idToken:n}=Object(A.a)(),[p,g]=Object(o.k)(r.Requesting),{apolloAccessToken:m}=t,[M,v]=Object(o.k)("");Object(s.a)((async e=>{try{switch(p){case r.Requesting:await(async e=>{try{var t,n;const r=await Object(a.d)(m,e);return v(null!==(t=null===(n=r.linkRequest)||void 0===n?void 0:n.linkRequestId)&&void 0!==t?t:""),{isEstablished:r.isEstablished}}catch(e){throw`[Link Workplace]: Error when requesting a workplace link: ${e}`}})(e).then((e=>{g(e.isEstablished?r.Complete:r.Authenticating)}));break;case r.Authenticating:n&&g(r.Authenticated);break;case r.Authenticated:g(r.Establishing);break;case r.Establishing:await(async(e,t)=>{const{sub:r}=Object(i.a)(m);try{return await Object(a.a)(n,e,r,t)}catch(e){throw`[Link Workplace]: Error when trying to establish workplace link: ${e}`}})(M,e),g(r.Complete);break;case r.Complete:Object(u.a)()}}catch(e){console.log(e),g(r.Error)}}),[p,n]);const y=void 0===p||p==r.Requesting||p==r.Establishing;return e(f.a,null,y&&e(d.a,{isActive:y}),p===r.Authenticating&&e(h.a,null),p===r.Error&&e(l.a,null),p===r.Complete&&e(c.a,null))}}).call(this,n("hosL").h)},rOe0:function(e,t,n){"use strict";n.d(t,"d",(function(){return A})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return M})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return y})),n.d(t,"a",(function(){return I})),n.d(t,"e",(function(){return w}));var r=n("paZ/");let i,o,s,a,u,c,l,h,d,f=e=>e;const A=Object(r.c)("img")(i||(i=f`
|
|
90
|
-
${0}
|
|
91
|
-
min-width: 150px;
|
|
92
|
-
max-width: 200px;
|
|
93
|
-
`),(()=>({marginBottom:"3rem",alignSelf:"center"}))),p=Object(r.c)("div")(o||(o=f`
|
|
94
|
-
${0}
|
|
95
|
-
`),(()=>({fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600",marginBottom:"0.75rem"}))),g=Object(r.c)("div")(s||(s=f`
|
|
96
|
-
${0}
|
|
97
|
-
`),(()=>({marginBottom:"1rem"}))),m=Object(r.c)("input")(a||(a=f`
|
|
98
|
-
${0}
|
|
99
|
-
height: 48px;
|
|
100
|
-
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s !important;
|
|
101
|
-
`),(()=>({borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgba(248, 249, 250, var(--tw-bg-opacity))",borderRadius:"0.375rem",paddingLeft:"1rem",paddingRight:"1rem",maxHeight:"3.5rem"}))),M=Object(r.c)("div")(u||(u=f`
|
|
102
|
-
${0}
|
|
103
|
-
`),(()=>({fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600",marginBottom:"0.75rem"}))),v=Object(r.c)("div")(c||(c=f`
|
|
104
|
-
${0}
|
|
105
|
-
`),(()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),y=Object(r.c)("input")(l||(l=f`
|
|
106
|
-
${0}
|
|
107
|
-
|
|
108
|
-
width: 48px;
|
|
109
|
-
height: 48px;
|
|
110
|
-
line-height: 48px;
|
|
111
|
-
text-align: center;
|
|
112
|
-
`),(()=>({borderWidth:"0px",fontWeight:"600",caretColor:"transparent","&::selection":{backgroundColor:"rgba(0, 0, 0, 0)"},"--tw-bg-opacity":"1",backgroundColor:"rgba(248, 249, 250, var(--tw-bg-opacity))",borderRadius:"0.375rem",marginLeft:"0px",marginRight:"0px",marginTop:"0px",marginBottom:"0px"}))),I=Object(r.c)("p")(h||(h=f`
|
|
113
|
-
${0}
|
|
114
|
-
`),(()=>({height:"2rem","--tw-text-opacity":"1",color:"rgba(213, 39, 18, var(--tw-text-opacity))"}))),w=Object(r.c)("div")(d||(d=f`
|
|
115
|
-
${0}
|
|
116
|
-
|
|
117
|
-
& > .spin {
|
|
118
|
-
${0}
|
|
119
|
-
}
|
|
120
|
-
`),(()=>({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",gap:"3rem"})),(()=>({height:"5rem",width:"5rem",borderWidth:"4px","--tw-text-opacity":"1",color:"rgba(46, 102, 247, var(--tw-text-opacity))"})))},"s+BS":function(e,t,n){function r(e,t){this.totalCount=e,this.dataCount=t}var i=n("PILG");r.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r.getRSBlocks=function(e,t){var n=r.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=n.length/3,o=new Array,s=0;s<i;s++)for(var a=n[3*s+0],u=n[3*s+1],c=n[3*s+2],l=0;l<a;l++)o.push(new r(u,c));return o},r.getRsBlockTable=function(e,t){switch(t){case i.L:return r.RS_BLOCK_TABLE[4*(e-1)+0];case i.M:return r.RS_BLOCK_TABLE[4*(e-1)+1];case i.Q:return r.RS_BLOCK_TABLE[4*(e-1)+2];case i.H:return r.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=r},sS3n:function(e,t,n){"use strict";function r(e){for(var t=[],n=0;n<e.byteLength;n+=1){t.push(l[e[n]%l.length])}return t.join("")}function i(e){return s.fromByteArray(new Uint8Array(e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function o(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCrypto=t.textEncodeLite=t.urlSafe=t.bufferToString=void 0;var s=n("KlUR"),a=n("lA+w"),u="undefined"!=typeof window&&!!window.crypto,c=u&&!!window.crypto.subtle,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";t.bufferToString=r,t.urlSafe=i,t.textEncodeLite=o;var h=function(){function e(){}return e.prototype.generateRandom=function(e){var t=new Uint8Array(e);if(u)window.crypto.getRandomValues(t);else for(var n=0;n<e;n+=1)t[n]=Math.random()*l.length|0;return r(t)},e.prototype.deriveChallenge=function(e){return e.length<43||e.length>128?Promise.reject(new a.AppAuthError("Invalid code length.")):c?new Promise((function(t,n){crypto.subtle.digest("SHA-256",o(e)).then((function(e){return t(i(new Uint8Array(e)))}),(function(e){return n(e)}))})):Promise.reject(new a.AppAuthError("window.crypto.subtle is unavailable."))},e}();t.DefaultCrypto=h},tImM:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},tJLs:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("paZ/");let i;const o=Object(r.c)("div")(i||(i=(e=>e)`
|
|
121
|
-
${0}
|
|
122
|
-
width: 500px;
|
|
123
|
-
height: 500px;
|
|
124
|
-
`),(()=>({display:"flex",justifyContent:"center",flexDirection:"column",paddingLeft:"3rem",paddingRight:"3rem",paddingTop:"3rem",paddingBottom:"3rem","--tw-text-opacity":"1",color:"rgba(25, 44, 84, var(--tw-text-opacity))"})))},tpbC:function(e){e.exports="data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAoYAAAD6CAYAAAA89Y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nMIzzzxztXf4WFI4ZcqUxBxCAAAAgKhR9PDGG29sN/9Qchi/rXspvp+SXPlEiSZIIQAAABQa5THIQeQiLv369et20003LUMM84BK0nizj5FCAAAAKCRykAcffLDdbcOGDRt6+eWXX48YRoiGkFWn0Hub5hQihQAAAFBIli5das8880y724477rhJiGGEaEUTb7KJso9JNAEAAIBiQGKo2skuGuEstahhSYmhlrnzXle0EAAAAKBYSB5SLrWoYcmI4RVXXPEf3oQTRQqpUwgAAADFhLvSmouihpdeeukZiGHI9O3b95ve6wwhAwAAQDHy+9//vt313r17/wtiGDL9+/dPlBd31z4GAAAAKDaUiOKlT58+pyKGIaJsZO8wMlIIAAAAxYpK6XmHkwcMGHAEYhgi3bp1G+29TnkaAAAAKGb+8pe/eD2mQkEuxDAkunbtehJiCAAAAKVCQ0NDu+vJQS7EMAfiO/MYDjEAAAAoFbwRw1LiAJoOAAAAABBDAAAAAEAMAQAAAAAxBAAAAADEEAAAAAAQQwAAAABADAEAAAAAMQQAAACAgHRhFwDkn6FDh9qECRPsnHPOsd69e1tjY2Pivm7dutm7775rc+bMseeee87q6uoCPefll19uAwcOzGp7Fi1a5FzE2Wef7Vxyxfuc2Wz/rbfemvi7UNvUEdqW8ePH22mnnWaf+9znbPv27Tm3X6p9oP+dNm1a1v8/a9YsW7duHR84AAhOLBYr+st111236Kmnnoq5l8GDB8e06cV86THoiNiJE8fETn/+B7HTf/uD2BfuHBc76vKzYwf27lH0284luktcKGIrV66MbdmyJeZHXBZjNTU1senTp8d69erl+9xr1qyJZcsTTzyReB79HQZxscto33i3f+fOne3uK9Q2JV9GjRoVq62tdS5B2m/Tpk2x22+/PVD7pWrDbdu2OcdMNvtQr53J/3LhwiXci1zF6y7xk8nrS8G5GEqOgBOnXmNnvDLR7Fsn26bjDrJNxx5kjecfbX0nftXOev3f7PifjLEDD+vBjupExMXAZs6cac8++6wdd9xxTpTJj4MPPtj69u1rV155pX344YdOlLGz0NLSUnTtp0ij2vDwww93LkHar1+/fjqxdSKI2bSfosnxDsV5/UzxRqEBAILCUHLI9L/mVuv21b+zpY0LLFaxPyqr3/FLbXODfeYzB9j/ufyL9qVLT7O1D82ztff8np3WCaSwsrLSjjzySOvevXu7+3bs2GG7d+9OdOQahuzSpYv16NEj8Vj91mXevHmOJGp4EvLbfhK7/v37f+q+jz/+2Gk/tZm3/bziL0HU/6r9NHVg+fLlGcvhD3/4Q+cCAIAYltLO7NXHen37X+ytbT3jHftO69p1aUIKY/svLdZmVS3b7aMuB9ig6//BBl52lr1z85P28bw/swPLWAqPPvrodrdrTtqSJUtsxowZnxI9/c+oUaPslltusSOOOMIOPfRQ5/ZDDjnELrrookBiqOe/9957A2+nd97d448/7kQoUzF69Gg7+eSTE9dfffXVDufshTGXr9Db1JEU7tq1y15++WWbMmXKp0RPc/wuvfRS+973vudIncRQKMr44osv2nnnnZeRHOr/r776avvlL3+ZsVQCACCGBeTIS75nqyt6OiLY0DDW+X3QwUsTUmie382xmK1q3mJdD+1ix8+60lre22zv/r9Z1rimhh1ZRjz55JNOpNDLxo0b7fzzz++wk1fCgZIGdPnRj35kN998sxMxlIhIOILiTd7IhHQJGhJcr4Tpcdm+TilskyRccufS0NBgtbW1TvJJR0kduv2nP/2pPfDAA3bPPffYmDFjHKkXGlpesGCBs81+SSlbtmxxphK4gjp79mwbMmQIHyoAiBTmGIZp2V84zZpi+69IDneNtT17hn9KCmP6sf96k7XY282bbOPgrjbi9Yl2wvRxzD8sExT1O+OMMxJDwpKKVatW2Re+8IXAkR8Jxg033OBIoWQS8tt+EjEN67vtt3TpUmeuYJBMX4mfMs8V+a2vr0/cLtHUCYMfra2t7eRxwIABzokCAABiWCLUHdg9IYXu7931Y21v0/CUUuj9XRdrtMV71lvLhcfb31dOsYE3n8sOLXEeffTRdkkDGt4dMWJERuVLhCKHSGHh20+RQslipu13//33O9HDpqamxG2nn366b2khDSErYunOQdWUgptuuimrRBQAAMSwAPQceno7KXR/N+4ca82Sww6k0Blq3v/YjW077K0Da6z7TWfZ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Zfa414cNG8aQMgAAABQFY8aMcfIgXBQtnDVr1jTEMCKUnbx48eLHvbcpakj5GgAAACgkSjiRGHoptWhhyYmheOihh66UgbvXlRL+4x//GDkEAACAgiAHSR5CrqysXF5q0cKSFEPx9ttvD/UmoiCHAAAAUAiUbCIHkYu4VFdXN06dOvWUUnw/JSmGGlJ+8803v+2db+jKIXMOAQAAIB9o6HjixImfksLFixefWKrvqSIWi5Vsg4wbN27syJEj53Tr1q3Ce3tlZaU98cQTtnXrVo5aAAAACBVFCeMO8qmRSo1mKnD15JNPPo0YFlAOTz311J8fdthhXZLve+2115zLihUrOIoBAAAgJ5RgouLV3nWQXdxIYamsiVy2YijGjh07YMiQIcsHDRrUK9X9tbW1jhxWVVU5F6FoIhFFAAAASEaRwB49eiT+VoRQMugdMvaiRJMNGzaMKnUpLBsxdLn66qsfHTFixHeSh5YBAAAAwkZDx0uWLLm5FLOPO4UYCkUP+/XrN/vYY489PdXwMgAAAECuQvjOO+/MVgm9cntvZSeGXq644or/6Nu37zf79+8/AEkEAACAbNEcwk2bNq2sqam5vZSTSzq1GHpRJLFbt26ju3btelL89zEc4gAAAJCO+vr6P7a2ttY0NjbOLYf5g4ghAAAAAATmAHYBAAAAACCGAAAAAIAYAgAAAABiCAAAAACIIQAAAAAghgAAAACAGAIAAAAAYggAAAAAiCEAAAAAIIYAAAAAgBgCAAAAAGIIAAAAAIghAAAAACCGAAAAAIAYAgAAAABiCAAAAACIIQAAAAAghgAAAACAGAIAAAAAYggAAAAAiCEAAAAAIIYAAAAAgBgCAAAAAGIIAAAAAIghAAAAACCGAAAAAIAYAgAAAABiCAAAAACIIQAAAAAghgAAAACAGAIAAAAAYggAAAAAiCEAAAAAIIYAAAAAgBgCAAAAAGIIAAAAAIghAAAAACCGAAAAAIAYAgAAAABiCAAAAABlwv8KMADLbPZ1PyQJdgAAAABJRU5ErkJggg=="},uFtE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTokenRequestHandler=void 0;var r=n("lA+w"),i=n("LOV3"),o=n("WMFz"),s=n("OEJh"),a=function(){function e(e,t){void 0===e&&(e=new s.JQueryRequestor),void 0===t&&(t=new i.BasicQueryStringUtils),this.requestor=e,this.utils=t}return e.prototype.isTokenResponse=function(e){return void 0===e.error},e.prototype.performRevokeTokenRequest=function(e,t){return this.requestor.xhr({url:e.revocationEndpoint,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(){return!0}))},e.prototype.performTokenRequest=function(e,t){var n=this;return this.requestor.xhr({url:e.tokenEndpoint,method:"POST",dataType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then((function(e){return n.isTokenResponse(e)?new o.TokenResponse(e):Promise.reject(new r.AppAuthError(e.error,new o.TokenError(e)))}))},e}();t.BaseTokenRequestHandler=a},uahg:function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var i=n("ovh1"),o=n("fwl+"),s=n("i0F7"),a=n("guUT"),u=n("Zrjs"),c=n("keIi"),l=c.validators;r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=u(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var s=[a,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),i=Promise.resolve(e);s.length;)i=i.then(s.shift(),s.shift());return i}for(var h=e;n.length;){var d=n.shift(),f=n.shift();try{h=d(h)}catch(e){f(e);break}}try{i=a(h)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},r.prototype.getUri=function(e){return e=u(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){r.prototype[e]=function(t,n){return this.request(u(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){r.prototype[e]=function(t,n,r){return this.request(u(r||{},{method:e,url:t,data:n}))}})),e.exports=r},ue2Z:function(e,t,n){"use strict";let r;n.d(t,"a",(function(){return r})),function(e){e.INVALID_PHONE_NUMBER="Mobile number is not a valid Australian mobile number",e.INVALID_RECAPTCHA="reCAPTCHA check failed",e.INVALID_ACCOUNT="User account does not exist",e.INVALID_OTP="Verification failed. Please try again."}(r||(r={}))},v3DC:function(e){e.exports="data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIBCAYAAAA/JAdfAAAgAElEQVR4AeydCXgdZbnHv7IvIggoKCqIKNzSnDm1iiJ6rXrhCvRMWjRsOWnPTEoUsNJkUhC8akC9CkpPwJXrwhXZMmER8QJtJlRpWhZDzpycBhAVREFAkLWU7v/7TBaaplnOmflmziz/Pk+fJOfMfO/7/r5v5v3PN98iBP+RAAlUlQBO1g+HmmuBqv0aGa0XqvYMVG09VO0JqNoqqNr1ULUFmDf/gKo6SuMkQAIkQAIkQALeCaBW+xxUzYaqocz/m6Fqy5HJfci7dZZAAiRAAiQQGwJ1F3TtW29YC7KGdW3WsH7aYHR/u6HVOr2uztw5NkHGIBDMXTALqt5TZtIfTxxshar9EiflDo4BDoYQQgILS+0HNZbyrXp/Pq+X8tfopaVX5IpLP96Gtp1C6C5dIoHkEmhq6t01a1g/zBrWhqxhYZz/j9a3WNnkEgpP5MjkGqBqGzwk/9GC4ClHTIQnOnoSdQJNf/zegU6y10v5dXopjx3+9+efalyzNBP1OOk/CcSCgPPUnzW6rXGS/g5CoL61e3Esg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AgAABMtn7giKgV8Cd0C7ZZus3WcMikb9pMzuPEnJa5U6U1iaJCwD90irdoTgIgAAIgAAIyBEgkz0hKAB8e3Ata1iXiCT/rGG9n8mY28kRcrY3naUfKSwAFG2yMy8oBQIgAAIgAAIuESCT3SQkAIrMcCmEimayM6wvCwqAv1Q07mIBUvlKIRFQN/UgF8OAKRAAARAAARCoTIAKTBEQAH3UzlKVrbtTIjPjT3tnDevdqkVAk+Xr0DqpfK6AAFjmDiVYAQEQAAEQAIEqCZDJfleVCCiwG6t0IV08a1iNVQmAZusZrWXBGGnHVRigND+EVP5OFSJgA9Xpp1ThAkVBAARAAARAwD0CdDfbj0z2ukMRsJzuYLu65925pWyz9UeHIuCjKTM6T3Ju2b2SpOiaYwGQ1q9xzzMsgQAIgAAIgIAAAZrLDiCT3V9BBNxGd7G9BMy7skumxdwx22xdnjWsdSMKgSZrydRmq8YVh4JGKM3PJJX/cxQhsIpUTRc0j91AAARAAARAwH0CVGTnkMnmkMmeJpO9SyZ7nArsRiqyM9z3JmZxysx5tVnDujZnWPOzhrUya1jPDbwq2Di+ZcH2Ylbd3YtUfXdSeDOpvEhp/g9S+Ruk8AdJ1VvonOkHu+sN1kAguQT+H0uO2LlVIOU3AAAAAElFTkSuQmCC"},vBmG:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var r=n("paZ/");let i;r.a.bind({g:1});const o=Object(r.c)("span")([{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}]),s=function(){const e=r.c.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}(i||(i=(e=>e)`
|
|
125
|
-
@import url('//fonts.googleapis.com/css?family=Poppins');
|
|
126
|
-
|
|
127
|
-
workplace-link {
|
|
128
|
-
font-family: 'Poppins', sans-serif;
|
|
129
|
-
}
|
|
130
|
-
`)),a=Object(r.c)("div")([{marginLeft:"1rem",marginRight:"1rem",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:"0.25rem","@media (min-width: 768px)":{margin:"auto"}},{minHeight:"25rem"}])},vHwa:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));const r=()=>`${window.location.protocol}//${window.location.host}${window.location.pathname}`,i=()=>{const e=(()=>{const e=document.getElementsByTagName("workplace-link");return e.length>0?e[0]:void 0})();e&&e.dispatchEvent(new CustomEvent("step-completion",{detail:"app-workplace-linking",bubbles:!0}))}},vMO2:function(e,t,n){"use strict";var r=n("ovh1");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},wZHQ:function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(o.IS_LOG){var r=t?t.length:0;r>0?console.log.apply(console,i([e],t)):console.log(e)}}var i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.profile=t.log=void 0;var o=n("6jaY");t.log=r;var s="undefined"!=typeof window&&!!window.performance&&!!console.profile;t.profile=function(e,t,n){return o.IS_PROFILE?function(e,t,n){var o=n.value,a=o.name;a||(a="anonymous function");n.value=s?function(e){console.profile(a);var t=window.performance.now(),n=o.call.apply(o,i([this||window],e)),r=window.performance.now()-t;return console.log(a+" took "+r+" ms"),console.profileEnd(),n}:function(e){r("Profile start "+a);var t=Date.now(),n=o.call.apply(o,i([this||window],e)),s=Date.now()-t;return r("Profile end "+a+" took "+s+" ms."),n};return n}(0,0,n):n}},xK1t:function(e){e.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjUiIGhlaWdodD0iMTI1IiBmaWxsPSJub25lIiB4bWxuczp2PSJodHRwczovL3ZlY3RhLmlvL25hbm8iPjxnIGNsaXAtcGF0aD0idXJsKCNBKSI+PHBhdGggZD0iTTYyLjQ5OSAxMTkuOTMyYzMxLjcxOSAwIDU3LjQzMi0yNS43MTMgNTcuNDMyLTU3LjQzMlM5NC4yMTggNS4wNjggNjIuNDk5IDUuMDY4IDUuMDY2IDMwLjc4MSA1LjA2NiA2Mi41czI1LjcxMyA1Ny40MzIgNTcuNDMyIDU3LjQzMnoiIGZpbGw9IiNlZWVmZWUiLz48cGF0aCBkPSJNNzMuMTQyIDYuMDY4YTU3LjQzIDU3LjQzIDAgMCAxIDMyLjgwNiAyNi43OTNjNy4xMjIgMTIuNzg1IDkuMDk1IDI3LjgwNiA1LjUxNiA0MS45OTZzLTEyLjQ0IDI2LjQ3OS0yNC43NzQgMzQuMzU3LTI3LjIwOSAxMC43NDktNDEuNTg5IDguMDI5YzcuNDY2IDIuMzY5IDE1LjMzOCAzLjE4NSAyMy4xMzEgMi4zOTlhNTcuNDMgNTcuNDMgMCAwIDAgMjIuMTg2LTYuOTcgNTcuNDQgNTcuNDQgMCAwIDAgMTcuNjA0LTE1LjE5NmM0Ljc3LTYuMjEzIDguMjE5LTEzLjMzNiAxMC4xMzQtMjAuOTNzMi4yNTgtMTUuNTAyIDEuMDA1LTIzLjIzMy00LjA3NS0xNS4xMjYtOC4yOTEtMjEuNzI3LTkuNzM4LTEyLjI3LTE2LjIyNi0xNi42NThhNTcuNDMgNTcuNDMgMCAwIDAtMjEuNTAyLTguODU5eiIgZm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LTE1LjAwMy01Ljk4NS0yOS4zODYtMTYuNTkzLTM5Ljk5NUE1Ni42NSA1Ni42NSAwIDAgMCA2Mi41IDUuOTEyeiIvPjwvZz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJBIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDEyNXYxMjVIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4="},xSFS:function(e,t,n){"use strict";var r=n("ovh1"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},xZFF:function(e,t,n){"use strict";(function(e){var r=n("l8WD"),i=n("VB+g"),o=n("Fx85");t.a=({onClick:t,children:n})=>{const[s,a]=Object(r.useState)(!1);return e(o.b,{onClick:async()=>{a(!0),await t().finally((()=>{a(!1)}))}},s&&e(i.a,{className:"span"}),n)}}).call(this,n("hosL").h)},xsHj:function(e,t,n){"use strict";function r(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(T||(T=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(k(this),t),o(L.get(this))}:function(...t){return o(e.apply(k(this),t))}:function(t,...n){const r=e.call(k(this),t,...n);return b.set(r,t.sort?t.sort():[t]),o(r)}}function i(e){return"function"==typeof e?r(e):(e instanceof IDBTransaction&&function(e){if(C.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));C.set(e,t)}(e),t=e,(N||(N=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,j):e);var t}function o(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(o(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&L.set(t,e)})).catch((()=>{})),S.set(t,e),t}(e);if(O.has(e))return O.get(e);const t=i(e);return t!==e&&(O.set(e,t),S.set(t,e)),t}function s(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(z.get(t))return z.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=x.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!_.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let s=o.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return z.set(t,o),o}function l(){return l=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},l.apply(this,arguments)}function h(e,t){try{e.container.addComponent(t)}catch(n){B.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function d(e){const t=e.name;if(J.has(t))return B.debug(`There were multiple attempts to register component ${t}.`),!1;J.set(t,e);for(const t of F.values())h(t,e);return!0}function f(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function A(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r=l({name:Q,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw H.create("bad-app-name",{appName:String(i)});if(n||(n=Object(D.i)()),!n)throw H.create("no-options");const o=F.get(i);if(o){if(Object(D.g)(n,o.options)&&Object(D.g)(r,o.config))return o;throw H.create("duplicate-app",{appName:i})}const s=new w.b(i);for(const e of J.values())s.addComponent(e);const a=new V(n,r,s);return F.set(i,a),a}function p(e="[DEFAULT]"){const t=F.get(e);if(!t&&e===Q)return A();if(!t)throw H.create("no-app",{appName:e});return t}function g(e,t,n){var r;let i=null!==(r=Y[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const e=[`Unable to register library "${i}" with version "${t}":`];return o&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void B.warn(e.join(" "))}d(new w.a(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}function m(){return K||(K=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const a=indexedDB.open(e,t),u=o(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(o(a.result),e.oldVersion,e.newVersion,o(a.transaction))})),n&&a.addEventListener("blocked",(()=>n())),u.then((e=>{s&&e.addEventListener("close",(()=>s())),i&&e.addEventListener("versionchange",(()=>i()))})).catch((()=>{})),u}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(G)}}).catch((e=>{throw H.create("idb-open",{originalErrorMessage:e.message})}))),K}async function M(e,t){try{const n=(await m()).transaction(G,"readwrite"),r=n.objectStore(G);return await r.put(t,v(e)),n.done}catch(e){if(e instanceof D.c)B.warn(e.message);else{const t=H.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});B.warn(t.message)}}}function v(e){return`${e.name}!${e.options.appId}`}function y(){return(new Date).toISOString().substring(0,10)}function I(e){return Object(D.e)(JSON.stringify({version:2,heartbeats:e})).length}n.d(t,"a",(function(){return W})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return g}));var w=n("SgqZ"),E=n("li6C"),D=n("8HXZ");let N,T;const L=new WeakMap,C=new WeakMap,b=new WeakMap,O=new WeakMap,S=new WeakMap;let j={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return C.get(e);if("objectStoreNames"===t)return e.objectStoreNames||b.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return o(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};const k=e=>S.get(e),_=["get","getKey","getAll","getAllKeys","count"],x=["put","add","delete","clear"],z=new Map;j=(e=>a(a({},e),{},{get:(t,n,r)=>c(t,n)||e.get(t,n,r),has:(t,n)=>!!c(t,n)||e.has(t,n)}))(j);class R{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const P="@firebase/app",U="0.9.1",B=new E.b("@firebase/app"),Q="[DEFAULT]",Y={[P]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},F=new Map,J=new Map,H=new D.b("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class V{constructor(e,t,n){this._isDeleted=!1,this._options=l({},e),this._config=l({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new w.a("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw H.create("app-deleted",{appName:this._name})}}const W="9.16.0",G="firebase-heartbeat-store";let K=null;class X{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new q(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=y();if(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==t&&!this._heartbeatsCache.heartbeats.some((e=>e.date===t)))return this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";const e=y(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),I(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),I(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=Object(D.e)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}class q{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!Object(D.q)()&&Object(D.v)().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(e){try{return(await m()).transaction(G).objectStore(G).get(v(e))}catch(e){if(e instanceof D.c)B.warn(e.message);else{const t=H.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});B.warn(t.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return M(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return M(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}var Z;Z="",d(new w.a("platform-logger",(e=>new R(e)),"PRIVATE")),d(new w.a("heartbeat",(e=>new X(e)),"PRIVATE")),g(P,U,Z),g(P,U,"esm2017"),g("fire-js","")},yKF6:function(e,t,n){"use strict";var r=n("hosL"),i=n("paZ/");let o,s,a,u,c,l,h,d=e=>e;const f=Object(i.c)("div")(o||(o=d`
|
|
131
|
-
${0}
|
|
60
|
+
`;var li=0;function ui(e,t,n,r,i,o){var s,a,c={};for(a in t)"ref"==a?s=t[a]:c[a]=t[a];var l={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--li,__source:i,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===c[a]&&(c[a]=s[a]);return g.vnode&&g.vnode(l),l}const di=({isActive:e,className:t})=>ui(si,{children:ui(ai,{className:t,children:[e&&ui(ii,{role:"alert",children:"Loading..."}),ui(ci,{className:e?"is-active":"","aria-hidden":!0})]})}),hi=f("div")`
|
|
61
|
+
${()=>({margin:"2rem",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"})}
|
|
132
62
|
|
|
133
63
|
font-family: 'Poppins', sans-serif;
|
|
134
64
|
color: #052d39;
|
|
135
65
|
|
|
136
66
|
h1 {
|
|
137
|
-
${0}
|
|
67
|
+
${()=>({marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"1.5rem",lineHeight:"2rem",fontWeight:"600"})}
|
|
138
68
|
}
|
|
139
69
|
|
|
140
70
|
h2 {
|
|
141
|
-
${
|
|
71
|
+
${()=>({marginTop:"0px",marginBottom:"0px",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"})}
|
|
142
72
|
}
|
|
143
73
|
|
|
144
74
|
h3 {
|
|
145
|
-
${0}
|
|
75
|
+
${()=>({marginTop:"0px",marginBottom:"0px",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600"})}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
p {
|
|
79
|
+
${()=>({marginTop:"0px",marginBottom:"0px",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400"})}
|
|
80
|
+
}
|
|
81
|
+
`,pi=f("div")`
|
|
82
|
+
${()=>({marginTop:"2.5rem",marginBottom:"2.5rem"})}
|
|
83
|
+
`,fi=f("div")`
|
|
84
|
+
${()=>({gridTemplateColumns:"repeat(2, minmax(0, 1fr))"})}
|
|
85
|
+
`,mi=f("img")`
|
|
86
|
+
${()=>({margin:"0.5rem",display:"inline-block",height:"2rem"})}
|
|
87
|
+
`,gi=f("img")`
|
|
88
|
+
${()=>({margin:"0.5rem",display:"inline-block",height:"3rem"})}
|
|
89
|
+
`,_i=f("a")``,vi=f("img")`
|
|
90
|
+
${()=>({marginTop:"0.5rem",marginBottom:"0.5rem",height:"6rem"})}
|
|
91
|
+
`;function yi(e,t){for(var n in t)e[n]=t[n];return e}function wi(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function bi(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function Ei(e){this.props=e}function ki(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:wi(this.props,e)}function r(t){return this.shouldComponentUpdate=n,O(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ei.prototype=new x).isPureReactComponent=!0,Ei.prototype.shouldComponentUpdate=function(e,t){return wi(this.props,e)||wi(this.state,t)};var Ii=g.__b;g.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ii&&Ii(e)};var Ti="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ci(e){function t(t){var n=yi({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ti,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Si=function(e,t){return null==e?null:B(B(e).map(t))},Ri={map:Si,forEach:Si,count:function(e){return e?B(e).length:0},only:function(e){var t=B(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:B},Oi=g.__e;g.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Oi(e,t,n,r)};var Ai=g.unmount;function Pi(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=yi({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Pi(e,t,n)}))),e}function Ni(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ni(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function xi(){this.__u=0,this.t=null,this.__b=null}function Li(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Di(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return O(n,i)}return i.displayName="Lazy",i.__f=!0,i}function Mi(){this.u=null,this.o=null}g.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Ai&&Ai(e)},(xi.prototype=new x).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=Li(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ni(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},xi.prototype.componentWillUnmount=function(){this.t=[]},xi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Pi(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&O(N,null,e.fallback);return i&&(i.__h=null),[O(N,null,t.__a?null:e.children),i]};var Ui=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ji(e){return this.getChildContext=function(){return e.context},e.children}function Fi(e){var t=this,n=e.i;t.componentWillUnmount=function(){Z(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Z(O(ji,{context:t.context},e.__v),t.l)}function Bi(e,t){var n=O(Fi,{__v:e,i:t});return n.containerInfo=t,n}(Mi.prototype=new x).__a=function(e){var t=this,n=Li(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ui(t,e,r)):i()};n?n(o):o()}},Mi.prototype.render=function(e){this.u=null,this.o=new Map;var t=B(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Mi.prototype.componentDidUpdate=Mi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ui(e,n,t)}))};var zi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Vi=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$i=/[A-Z0-9]/g,qi="undefined"!=typeof document,Wi=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ki(e,t,n){return null==t.__k&&(t.textContent=""),Z(e,t),"function"==typeof n&&n(),e?e.__c:null}function Gi(e,t,n){return ee(e,t),"function"==typeof n&&n(),e?e.__c:null}x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(x.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ji=g.event;function Yi(){}function Qi(){return this.cancelBubble}function Xi(){return this.defaultPrevented}g.event=function(e){return Ji&&(e=Ji(e)),e.persist=Yi,e.isPropagationStopped=Qi,e.isDefaultPrevented=Xi,e.nativeEvent=e};var Zi,eo={enumerable:!1,configurable:!0,get:function(){return this.class}},to=g.vnode;g.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var i in t){var o=t[i];if(!("value"===i&&"defaultValue"in t&&null==o||qi&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===o?o="":"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Wi(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":Vi.test(i)?i=s:-1===n.indexOf("-")&&Hi.test(i)?i=i.replace($i,"-$&").toLowerCase():null===o&&(o=void 0):s=i="oninput","oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=B(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=B(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",eo)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=zi,to&&to(e)};var no=g.__r;g.__r=function(e){no&&no(e),Zi=e.__c};var ro=g.diffed;g.diffed=function(e){ro&&ro(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Zi=null};var io={ReactCurrentDispatcher:{current:{readContext:function(e){return Zi.__n[e.__c].props.value}}}};function oo(e){return O.bind(null,e)}function so(e){return!!e&&e.$$typeof===zi}function ao(e){return so(e)&&e.type===N}function co(e){return so(e)?te.apply(null,arguments):e}function lo(e){return!!e.__k&&(Z(null,e),!0)}function uo(e){return e&&(e.base||1===e.nodeType&&e)||null}var ho=function(e,t){return e(t)},po=function(e,t){return e(t)},fo=N;function mo(e){e()}function go(e){return e}function _o(){return[!1,mo]}var vo=ye,yo=so;function wo(e,t){var n=t(),r=ge({h:{__:n,v:t}}),i=r[0].h,o=r[1];return ye((function(){i.__=n,i.v=t,bi(i.__,t())||o({h:i})}),[e,n,t]),ve((function(){return bi(i.__,i.v())||o({h:i}),e((function(){bi(i.__,i.v())||o({h:i})}))}),[e]),n}var bo={useState:ge,useId:Ce,useReducer:_e,useEffect:ve,useLayoutEffect:ye,useInsertionEffect:vo,useTransition:_o,useDeferredValue:go,useSyncExternalStore:wo,startTransition:mo,useRef:we,useImperativeHandle:be,useMemo:Ee,useCallback:ke,useContext:Ie,useDebugValue:Te,version:"17.0.2",Children:Ri,render:Ki,hydrate:Gi,unmountComponentAtNode:lo,createPortal:Bi,createElement:O,createContext:ne,createFactory:oo,cloneElement:co,createRef:P,Fragment:N,isValidElement:so,isElement:yo,isFragment:ao,findDOMNode:uo,Component:x,PureComponent:Ei,memo:ki,forwardRef:Ci,flushSync:po,unstable_batchedUpdates:ho,StrictMode:fo,Suspense:xi,SuspenseList:Mi,lazy:Di,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:io};const Eo=Object.freeze(Object.defineProperty({__proto__:null,Children:Ri,Component:x,Fragment:N,PureComponent:Ei,StrictMode:fo,Suspense:xi,SuspenseList:Mi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:io,cloneElement:co,createContext:ne,createElement:O,createFactory:oo,createPortal:Bi,createRef:P,default:bo,findDOMNode:uo,flushSync:po,forwardRef:Ci,hydrate:Gi,isElement:yo,isFragment:ao,isValidElement:so,lazy:Di,memo:ki,render:Ki,startTransition:mo,unmountComponentAtNode:lo,unstable_batchedUpdates:ho,useCallback:ke,useContext:Ie,useDebugValue:Te,useDeferredValue:go,useEffect:ve,useErrorBoundary:function(e){var t=me(re++,10),n=ge();return t.__=e,ie.componentDidCatch||(ie.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ce,useImperativeHandle:be,useInsertionEffect:vo,useLayoutEffect:ye,useMemo:Ee,useReducer:_e,useRef:we,useState:ge,useSyncExternalStore:wo,useTransition:_o,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var ko,Io,To=Object.defineProperty,Co=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Oo=(e,t,n)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ao=(e,t)=>{for(var n in t||(t={}))So.call(t,n)&&Oo(e,n,t[n]);if(Co)for(var n of Co(t))Ro.call(t,n)&&Oo(e,n,t[n]);return e},Po=(e,t)=>{var n={};for(var r in e)So.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Co)for(var r of Co(e))t.indexOf(r)<0&&Ro.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let t=0;t<this.size;t++)s.push(!1);for(let t=0;t<this.size;t++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(r);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){const i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,n,i=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const r=8*t.getNumDataCodewords(u,n),i=a.getTotalBits(e,u);if(i<=r){d=i;break}if(u>=s)throw new RangeError("Data too long")}for(const r of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,r)&&(n=r);let h=[];for(const t of e){r(t.mode.modeBits,4,h),r(t.numChars,t.mode.numCharCountBits(u),h);for(const e of t.getData())h.push(e)}o(h.length==d);const p=8*t.getNumDataCodewords(u,n);o(h.length<=p),r(0,Math.min(4,p-h.length),h),r(0,(8-h.length%8)%8,h),o(h.length%8==0);for(let t=236;h.length<p;t^=253)r(t,8,h);let f=[];for(;8*f.length<h.length;)f.push(0);return h.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(u,n,f,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let i=0;i<10;i++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);o(r>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,i(r,o));this.setFunctionModule(8,7,i(r,6)),this.setFunctionModule(8,8,i(r,7)),this.setFunctionModule(7,8,i(r,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,i(r,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,i(r,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,i(r,o));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let n=0;n<18;n++){const e=i(t,n),r=this.size-11+n%3,o=Math.floor(n/3);this.setFunctionModule(r,o,e),this.setFunctionModule(o,r,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,s=t+n;0<=o&&o<this.size&&0<=s&&s<this.size&&this.setFunctionModule(o,s,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],s=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],a=Math.floor(t.getNumRawDataModules(n)/8),c=i-a%i,l=Math.floor(a/i);let u=[];const d=t.reedSolomonComputeDivisor(s);for(let o=0,p=0;o<i;o++){let n=e.slice(p,p+l-s+(o<c?0:1));p+=n.length;const r=t.reedSolomonComputeRemainder(n,d);o<c&&n.push(0),u.push(n.concat(r))}let h=[];for(let t=0;t<u[0].length;t++)u.forEach(((e,n)=>{(t!=l-s||n>=c)&&h.push(e[t])}));return o(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let o=0;o<2;o++){const s=t-o,a=0==(t+1&2)?this.size-1-r:r;!this.isFunction[a][s]&&n<8*e.length&&(this.modules[a][s]=i(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let o=0;o<this.size;o++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[o][s]==n?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[o][s],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*t.PENALTY_N3}for(let o=0;o<this.size;o++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][o]==n?(r++,5==r?e+=t.PENALTY_N1:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[s][o],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*t.PENALTY_N3}for(let o=0;o<this.size-1;o++)for(let n=0;n<this.size-1;n++){const r=this.modules[o][n];r==this.modules[o][n+1]&&r==this.modules[o+1][n]&&r==this.modules[o+1][n+1]&&(e+=t.PENALTY_N2)}let n=0;for(const t of this.modules)n=t.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const i of e){const e=i^r.shift();r.push(0),n.forEach(((n,i)=>r[i]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function i(e,t){return 0!=(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const s=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new s(s.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!s.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const i=Math.min(e.length-n,3);r(parseInt(e.substr(n,i),10),3*i+1,t),n+=i}return new s(s.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!s.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let i=45*s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));i+=s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(i,11,n)}return t<e.length&&r(s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new s(s.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:s.isNumeric(e)?[s.makeNumeric(e)]:s.isAlphanumeric(e)?[s.makeAlphanumeric(e)]:[s.makeBytes(s.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new s(s.Mode.ECI,0,t)}static isNumeric(e){return s.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return s.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let a=s;a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a})(ko||(ko={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})((Io=ko||(ko={})).QrCode||(Io.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(e.QrSegment||(e.QrSegment={}))})(ko||(ko={}));var No=ko,xo={L:No.QrCode.Ecc.LOW,M:No.QrCode.Ecc.MEDIUM,Q:No.QrCode.Ecc.QUARTILE,H:No.QrCode.Ecc.HIGH},Lo=128,Do="L",Mo="#FFFFFF",Uo="#000000",jo=!1,Fo=4,Bo=.1;
|
|
92
|
+
/**
|
|
93
|
+
* @license qrcode.react
|
|
94
|
+
* Copyright (c) Paul O'Shannessy
|
|
95
|
+
* SPDX-License-Identifier: ISC
|
|
96
|
+
*/function zo(e,t=0){const n=[];return e.forEach((function(e,r){let i=null;e.forEach((function(o,s){if(!o&&null!==i)return n.push(`M${i+t} ${r+t}h${s-i}v1H${i+t}z`),void(i=null);if(s!==e.length-1)o&&null===i&&(i=s);else{if(!o)return;null===i?n.push(`M${s+t},${r+t} h1v1H${s+t}z`):n.push(`M${i+t},${r+t} h${s+1-i}v1H${i+t}z`)}}))})),n.join("")}function Ho(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function Vo(e,t,n,r){if(null==r)return null;const i=n?Fo:0,o=e.length+2*i,s=Math.floor(t*Bo),a=o/t,c=(r.width||s)*a,l=(r.height||s)*a,u=null==r.x?e.length/2-c/2:r.x*a,d=null==r.y?e.length/2-l/2:r.y*a;let h=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:h}}var $o=function(){try{(new Path2D).addPath(new Path2D)}catch(Ad){return!1}return!0}();function qo(e){const t=e,{value:n,size:r=Lo,level:i=Do,bgColor:o=Mo,fgColor:s=Uo,includeMargin:a=jo,style:c,imageSettings:l}=t,u=Po(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),d=null==l?void 0:l.src,h=we(null),p=we(null),[f,m]=ge(!1);ve((()=>{if(null!=h.current){const e=h.current,t=e.getContext("2d");if(!t)return;let c=No.QrCode.encodeText(n,xo[i]).getModules();const u=a?Fo:0,d=c.length+2*u,f=Vo(c,r,a,l),m=p.current,g=null!=f&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=f.excavation&&(c=Ho(c,f.excavation));const _=window.devicePixelRatio||1;e.height=e.width=r*_;const v=r/d*_;t.scale(v,v),t.fillStyle=o,t.fillRect(0,0,d,d),t.fillStyle=s,$o?t.fill(new Path2D(zo(c,u))):c.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+u,n+u,1,1)}))})),g&&t.drawImage(m,f.x+u,f.y+u,f.w,f.h)}})),ve((()=>{m(!1)}),[d]);const g=Ao({height:r,width:r},c);let _=null;return null!=d&&(_=bo.createElement("img",{src:d,key:d,style:{display:"none"},onLoad:()=>{m(!0)},ref:p})),bo.createElement(bo.Fragment,null,bo.createElement("canvas",Ao({style:g,height:r,width:r,ref:h},u)),_)}function Wo(e){const t=e,{value:n,size:r=Lo,level:i=Do,bgColor:o=Mo,fgColor:s=Uo,includeMargin:a=jo,imageSettings:c}=t,l=Po(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=No.QrCode.encodeText(n,xo[i]).getModules();const d=a?Fo:0,h=u.length+2*d,p=Vo(u,r,a,c);let f=null;null!=c&&null!=p&&(null!=p.excavation&&(u=Ho(u,p.excavation)),f=bo.createElement("image",{xlinkHref:c.src,height:p.h,width:p.w,x:p.x+d,y:p.y+d,preserveAspectRatio:"none"}));const m=zo(u,d);return bo.createElement("svg",Ao({height:r,width:r,viewBox:`0 0 ${h} ${h}`},l),bo.createElement("path",{fill:o,d:`M0,0 h${h}v${h}H0z`,shapeRendering:"crispEdges"}),bo.createElement("path",{fill:s,d:m,shapeRendering:"crispEdges"}),f)}var Ko=e=>{const t=e,{renderAs:n}=t,r=Po(t,["renderAs"]);return"svg"===n?bo.createElement(Wo,Ao({},r)):bo.createElement(qo,Ao({},r))};const Go=()=>ui(si,{children:ui(hi,{children:[ui(vi,{src:"/assets/fireworks-ab74a101.png"}),ui("h1",{children:"You’re registered!"}),ui("h2",{children:"To start accessing your benefits, download the Flare app and sign in!"}),ui(pi,{children:ui(Ko,{value:"https://esjpe.app.link"})}),ui("h3",{children:"Download the Flare App"}),ui("p",{children:"Available on iOS and Android"}),ui(fi,{children:[ui(_i,{href:"https://apps.apple.com/us/app/flare/id1587276031",children:ui(mi,{src:"/assets/apple-store-badge-a26fc5b3.svg"})}),ui(_i,{href:"https://play.google.com/store/apps/details?id=com.flarehr.payandbenefits",children:ui(gi,{src:"/assets/google-play-badge-215e4644.png"})})]})]})}),Jo=f("img")`
|
|
97
|
+
${()=>({marginBottom:"2.5rem",height:"7rem"})}
|
|
98
|
+
`,Yo=f("div")`
|
|
99
|
+
${()=>({marginTop:"6rem",marginBottom:"6rem",display:"flex",width:"100%",flexDirection:"column",alignItems:"center",textAlign:"center"})}
|
|
100
|
+
|
|
101
|
+
h1 {
|
|
102
|
+
${()=>({marginBottom:"0.5rem",fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600"})}
|
|
146
103
|
}
|
|
147
104
|
|
|
148
105
|
p {
|
|
149
|
-
${
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
106
|
+
${()=>({marginTop:"0px",marginBottom:"0px",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"})}
|
|
107
|
+
}
|
|
108
|
+
`,Qo=()=>ui(Yo,{children:[ui(Jo,{src:"/assets/cross-icon-bd6b1cff.svg"}),ui("h1",{children:"Something went wrong!"}),ui("p",{children:"We’re having some difficulties."}),ui("p",{children:"Please try again shortly."})]}),Xo=()=>{const e=(()=>{const e=document.getElementsByTagName("workplace-link");return e.length>0?e[0]:void 0})();e&&e.dispatchEvent(new CustomEvent("step-completion",{detail:"app-workplace-linking",bubbles:!0}))},Zo=({apolloAccessToken:e})=>{const[t,n]=ge(0),[r,i]=ge(!1),[o,s]=ge(),a=e=>{console.error(`[Link Workplace]: ${e}`)};yn((async t=>{const r=e=>{a(e),n(3)},i=await(async(e,t,n)=>{const r=new or.AuthorizationNotifier,i=new vr,o=new Mr,s=new Kr(o);return i.setAuthorizationNotifier(r),r.setAuthorizationListener((async(r,i,o)=>{if(e(),await new Promise((e=>setTimeout(e,1e3))),o)return n(`[AuthListener]: Auth response error received: ${o.errorDescription}`);if(!i)return await t();let a;if(r.internal&&r.internal.code_verifier&&(a=r.internal.code_verifier),!Zr)return n("[AuthListener]: OIDC configuration not found");try{const e=await ti(i.code,a,s,r,Zr),o=ni(e);return o&&i.state?await t(o,i.state):n("[AuthListener]: Could not resolve access token or state")}catch(Ad){return n(`[AuthListener]: Token code exchange failed: ${Ad}`)}})),{authorizationHandler:i,tokenHandler:s,requestor:o}})((()=>n(2)),(async(i,o)=>{if(!i||!o)return n(1);try{const r=Me(e);await Tn(i,o,r.sub,t),n(4)}catch(Ad){r(`Error when trying to establish workplace link: ${Ad}`)}}),r);s(i)}),[]),yn((async()=>{o&&(await(async e=>{await ri(e),await e.completeAuthorizationRequestIfPossible()})(o.authorizationHandler),await new Promise((e=>setTimeout(e,1e3))),i(!0))}),[o]),ve((()=>{o&&0===t&&r&&n(1)}),[o,t,r]),yn((async r=>{if(o&&1===t)try{const t=await In(e,r);if(t.isEstablished)return n(4);if(t.linkRequest){const e={openIdConnectUrl:t.linkRequest.openIdConnectUrl,clientId:t.linkRequest.clientId,redirectUri:`${window.location.protocol}//${window.location.host}${window.location.pathname}`,scope:`${t.linkRequest.clientId} openid`,state:t.linkRequest.linkRequestId};await(async(e,t,n)=>{const r=await ei(n.openIdConnectUrl,e),i=new tr({client_id:n.clientId,redirect_uri:n.redirectUri,scope:n.scope,response_type:tr.RESPONSE_TYPE_CODE,state:n.state,extras:{response_mode:"fragment",prompt:"login",option:"signup"}},new Fn,!0);t.performAuthorizationRequest(r,i)})(o.requestor,null==o?void 0:o.authorizationHandler,e)}else a("Invalid response when requesting a workplace link"),n(3)}catch(Ad){a(`Could not redirect to OIDC provider: ${Ad}`),n(3)}}),[o,t]),ve((()=>{4===t&&Xo()}),[t]);const c=0==t||1==t||2==t;return ui(N,{children:[c&&ui(di,{isActive:c}),3==t&&ui(Qo,{}),4==t&&ui(Go,{})]})},es=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},ts={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],o=i+1<e.length,s=o?e[i+1]:0,a=i+2<e.length,c=a?e[i+2]:0,l=t>>2,u=(3&t)<<4|s>>4;let d=(15&s)<<2|c>>6,h=63&c;a||(h=64,o||(d=64)),r.push(n[l],n[u],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(es(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0;++i;const s=i<e.length?n[e.charAt(i)]:64;++i;const a=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==o||null==s||null==a)throw new ns;const c=t<<2|o>>4;if(r.push(c),64!==s){const e=o<<4&240|s>>2;if(r.push(e),64!==a){const e=s<<6&192|a;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class ns extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const rs=function(e){return function(e){const t=es(e);return ts.encodeByteArray(t,!0)}(e).replace(/\./g,"")},is=function(e){try{return ts.decodeString(e,!0)}catch(Ad){console.error("base64Decode failed: ",Ad)}return null};
|
|
109
|
+
/**
|
|
110
|
+
* @license
|
|
111
|
+
* Copyright 2022 Google LLC
|
|
112
|
+
*
|
|
113
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
114
|
+
* you may not use this file except in compliance with the License.
|
|
115
|
+
* You may obtain a copy of the License at
|
|
116
|
+
*
|
|
117
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
118
|
+
*
|
|
119
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
120
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
121
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
122
|
+
* See the License for the specific language governing permissions and
|
|
123
|
+
* limitations under the License.
|
|
124
|
+
*/
|
|
125
|
+
const os=()=>
|
|
126
|
+
/**
|
|
127
|
+
* @license
|
|
128
|
+
* Copyright 2022 Google LLC
|
|
129
|
+
*
|
|
130
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
131
|
+
* you may not use this file except in compliance with the License.
|
|
132
|
+
* You may obtain a copy of the License at
|
|
133
|
+
*
|
|
134
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
135
|
+
*
|
|
136
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
137
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
138
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
139
|
+
* See the License for the specific language governing permissions and
|
|
140
|
+
* limitations under the License.
|
|
141
|
+
*/
|
|
142
|
+
function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,ss=()=>{try{return os()||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e={}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(Ad){return}const t=e&&is(e[1]);return t&&JSON.parse(t)})()}catch(Ad){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${Ad}`)}},as=()=>{var e;return null===(e=ss())||void 0===e?void 0:e.config},cs=e=>{var t;return null===(t=ss())||void 0===t?void 0:t[`_${e}`]};
|
|
143
|
+
/**
|
|
144
|
+
* @license
|
|
145
|
+
* Copyright 2017 Google LLC
|
|
146
|
+
*
|
|
147
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
148
|
+
* you may not use this file except in compliance with the License.
|
|
149
|
+
* You may obtain a copy of the License at
|
|
150
|
+
*
|
|
151
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
152
|
+
*
|
|
153
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
154
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
155
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
156
|
+
* See the License for the specific language governing permissions and
|
|
157
|
+
* limitations under the License.
|
|
158
|
+
*/
|
|
159
|
+
class ls{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}
|
|
160
|
+
/**
|
|
161
|
+
* @license
|
|
162
|
+
* Copyright 2017 Google LLC
|
|
163
|
+
*
|
|
164
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
165
|
+
* you may not use this file except in compliance with the License.
|
|
166
|
+
* You may obtain a copy of the License at
|
|
167
|
+
*
|
|
168
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
169
|
+
*
|
|
170
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
171
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
172
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
173
|
+
* See the License for the specific language governing permissions and
|
|
174
|
+
* limitations under the License.
|
|
175
|
+
*/function us(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}class ds extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,ds.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,hs.prototype.create)}}class hs{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],o=i?function(e,t){return e.replace(ps,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(i,n):"Error",s=`${this.serviceName}: ${o} (${r}).`;return new ds(r,s,n)}}const ps=/\{\$([^}]+)}/g;function fs(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(ms(n)&&ms(o)){if(!fs(n,o))return!1}else if(n!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function ms(e){return null!==e&&"object"==typeof e}
|
|
176
|
+
/**
|
|
177
|
+
* @license
|
|
178
|
+
* Copyright 2017 Google LLC
|
|
179
|
+
*
|
|
180
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
* you may not use this file except in compliance with the License.
|
|
182
|
+
* You may obtain a copy of the License at
|
|
183
|
+
*
|
|
184
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
*
|
|
186
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
* See the License for the specific language governing permissions and
|
|
190
|
+
* limitations under the License.
|
|
191
|
+
*/function gs(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}class _s{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!=typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=vs),void 0===r.error&&(r.error=vs),void 0===r.complete&&(r.complete=vs);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(Ad){}})),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then((()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(Ad){"undefined"!=typeof console&&console.error&&console.error(Ad)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function vs(){}
|
|
192
|
+
/**
|
|
193
|
+
* @license
|
|
194
|
+
* Copyright 2021 Google LLC
|
|
195
|
+
*
|
|
196
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
+
* you may not use this file except in compliance with the License.
|
|
198
|
+
* You may obtain a copy of the License at
|
|
199
|
+
*
|
|
200
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
201
|
+
*
|
|
202
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
203
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
+
* See the License for the specific language governing permissions and
|
|
206
|
+
* limitations under the License.
|
|
207
|
+
*/function ys(e){return e&&e._delegate?e._delegate:e}class ws{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}
|
|
208
|
+
/**
|
|
209
|
+
* @license
|
|
210
|
+
* Copyright 2019 Google LLC
|
|
211
|
+
*
|
|
212
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
213
|
+
* you may not use this file except in compliance with the License.
|
|
214
|
+
* You may obtain a copy of the License at
|
|
215
|
+
*
|
|
216
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
217
|
+
*
|
|
218
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
219
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
220
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
221
|
+
* See the License for the specific language governing permissions and
|
|
222
|
+
* limitations under the License.
|
|
223
|
+
*/const bs="[DEFAULT]";
|
|
224
|
+
/**
|
|
225
|
+
* @license
|
|
226
|
+
* Copyright 2019 Google LLC
|
|
227
|
+
*
|
|
228
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
229
|
+
* you may not use this file except in compliance with the License.
|
|
230
|
+
* You may obtain a copy of the License at
|
|
231
|
+
*
|
|
232
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
233
|
+
*
|
|
234
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
235
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
236
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
237
|
+
* See the License for the specific language governing permissions and
|
|
238
|
+
* limitations under the License.
|
|
239
|
+
*/class Es{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new ls;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(Ad){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(Ad){if(r)return null;throw Ad}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}
|
|
240
|
+
/**
|
|
241
|
+
* @license
|
|
242
|
+
* Copyright 2019 Google LLC
|
|
243
|
+
*
|
|
244
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
245
|
+
* you may not use this file except in compliance with the License.
|
|
246
|
+
* You may obtain a copy of the License at
|
|
247
|
+
*
|
|
248
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
249
|
+
*
|
|
250
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
251
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
252
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
253
|
+
* See the License for the specific language governing permissions and
|
|
254
|
+
* limitations under the License.
|
|
255
|
+
*/(e))try{this.getOrInitializeService({instanceIdentifier:bs})}catch(Ad){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(Ad){}}}}clearInstance(e=bs){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=bs){return this.instances.has(e)}getOptions(e=bs){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,o]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&o.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch(r){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===bs?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(i){}var r;return n||null}normalizeInstanceIdentifier(e=bs){return this.component?this.component.multipleInstances?e:bs:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ks{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new Es(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}
|
|
256
|
+
/**
|
|
257
|
+
* @license
|
|
258
|
+
* Copyright 2017 Google LLC
|
|
259
|
+
*
|
|
260
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
261
|
+
* you may not use this file except in compliance with the License.
|
|
262
|
+
* You may obtain a copy of the License at
|
|
263
|
+
*
|
|
264
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
265
|
+
*
|
|
266
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
267
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
268
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
269
|
+
* See the License for the specific language governing permissions and
|
|
270
|
+
* limitations under the License.
|
|
271
|
+
*/var Is,Ts;(Ts=Is||(Is={}))[Ts.DEBUG=0]="DEBUG",Ts[Ts.VERBOSE=1]="VERBOSE",Ts[Ts.INFO=2]="INFO",Ts[Ts.WARN=3]="WARN",Ts[Ts.ERROR=4]="ERROR",Ts[Ts.SILENT=5]="SILENT";const Cs={debug:Is.DEBUG,verbose:Is.VERBOSE,info:Is.INFO,warn:Is.WARN,error:Is.ERROR,silent:Is.SILENT},Ss=Is.INFO,Rs={[Is.DEBUG]:"log",[Is.VERBOSE]:"log",[Is.INFO]:"info",[Is.WARN]:"warn",[Is.ERROR]:"error"},Os=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=Rs[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}] ${e.name}:`,...n)};class As{constructor(e){this.name=e,this._logLevel=Ss,this._logHandler=Os,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Is))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?Cs[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Is.DEBUG,...e),this._logHandler(this,Is.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Is.VERBOSE,...e),this._logHandler(this,Is.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Is.INFO,...e),this._logHandler(this,Is.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Is.WARN,...e),this._logHandler(this,Is.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Is.ERROR,...e),this._logHandler(this,Is.ERROR,...e)}}const Ps=(e,t)=>t.some((t=>e instanceof t));let Ns,xs;const Ls=new WeakMap,Ds=new WeakMap,Ms=new WeakMap,Us=new WeakMap,js=new WeakMap;let Fs={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Ds.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Ms.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Hs(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Bs(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(xs||(xs=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Vs(this),t),Hs(Ls.get(this))}:function(...t){return Hs(e.apply(Vs(this),t))}:function(t,...n){const r=e.call(Vs(this),t,...n);return Ms.set(r,t.sort?t.sort():[t]),Hs(r)}}function zs(e){return"function"==typeof e?Bs(e):(e instanceof IDBTransaction&&function(e){if(Ds.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));Ds.set(e,t)}(e),Ps(e,Ns||(Ns=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Fs):e)}function Hs(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(Hs(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&Ls.set(t,e)})).catch((()=>{})),js.set(t,e),t}(e);if(Us.has(e))return Us.get(e);const t=zs(e);return t!==e&&(Us.set(e,t),js.set(t,e)),t}const Vs=e=>js.get(e);const $s=["get","getKey","getAll","getAllKeys","count"],qs=["put","add","delete","clear"],Ws=new Map;function Ks(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Ws.get(t))return Ws.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=qs.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!$s.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let s=o.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return Ws.set(t,o),o}Fs=(e=>({...e,get:(t,n,r)=>Ks(t,n)||e.get(t,n,r),has:(t,n)=>!!Ks(t,n)||e.has(t,n)}))(Fs);
|
|
272
|
+
/**
|
|
273
|
+
* @license
|
|
274
|
+
* Copyright 2019 Google LLC
|
|
275
|
+
*
|
|
276
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
277
|
+
* you may not use this file except in compliance with the License.
|
|
278
|
+
* You may obtain a copy of the License at
|
|
279
|
+
*
|
|
280
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
281
|
+
*
|
|
282
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
283
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
284
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
285
|
+
* See the License for the specific language governing permissions and
|
|
286
|
+
* limitations under the License.
|
|
287
|
+
*/
|
|
288
|
+
class Gs{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const Js="@firebase/app",Ys="0.9.22",Qs=new As("@firebase/app"),Xs="[DEFAULT]",Zs={[Js]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},ea=new Map,ta=new Map;function na(e,t){try{e.container.addComponent(t)}catch(Ad){Qs.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,Ad)}}function ra(e){const t=e.name;if(ta.has(t))return Qs.debug(`There were multiple attempts to register component ${t}.`),!1;ta.set(t,e);for(const n of ea.values())na(n,e);return!0}function ia(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}
|
|
289
|
+
/**
|
|
290
|
+
* @license
|
|
291
|
+
* Copyright 2019 Google LLC
|
|
292
|
+
*
|
|
293
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
294
|
+
* you may not use this file except in compliance with the License.
|
|
295
|
+
* You may obtain a copy of the License at
|
|
296
|
+
*
|
|
297
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
298
|
+
*
|
|
299
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
300
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
301
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
302
|
+
* See the License for the specific language governing permissions and
|
|
303
|
+
* limitations under the License.
|
|
304
|
+
*/const oa=new hs("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});
|
|
305
|
+
/**
|
|
306
|
+
* @license
|
|
307
|
+
* Copyright 2019 Google LLC
|
|
308
|
+
*
|
|
309
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
310
|
+
* you may not use this file except in compliance with the License.
|
|
311
|
+
* You may obtain a copy of the License at
|
|
312
|
+
*
|
|
313
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
314
|
+
*
|
|
315
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
316
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
317
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
318
|
+
* See the License for the specific language governing permissions and
|
|
319
|
+
* limitations under the License.
|
|
320
|
+
*/
|
|
321
|
+
class sa{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new ws("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw oa.create("app-deleted",{appName:this._name})}}
|
|
322
|
+
/**
|
|
323
|
+
* @license
|
|
324
|
+
* Copyright 2019 Google LLC
|
|
325
|
+
*
|
|
326
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
327
|
+
* you may not use this file except in compliance with the License.
|
|
328
|
+
* You may obtain a copy of the License at
|
|
329
|
+
*
|
|
330
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
331
|
+
*
|
|
332
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
333
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
334
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
335
|
+
* See the License for the specific language governing permissions and
|
|
336
|
+
* limitations under the License.
|
|
337
|
+
*/const aa="10.5.2";function ca(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r=Object.assign({name:Xs,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw oa.create("bad-app-name",{appName:String(i)});if(n||(n=as()),!n)throw oa.create("no-options");const o=ea.get(i);if(o){if(fs(n,o.options)&&fs(r,o.config))return o;throw oa.create("duplicate-app",{appName:i})}const s=new ks(i);for(const c of ta.values())s.addComponent(c);const a=new sa(n,r,s);return ea.set(i,a),a}function la(e,t,n){var r;let i=null!==(r=Zs[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const e=[`Unable to register library "${i}" with version "${t}":`];return o&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void Qs.warn(e.join(" "))}ra(new ws(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}
|
|
338
|
+
/**
|
|
339
|
+
* @license
|
|
340
|
+
* Copyright 2021 Google LLC
|
|
341
|
+
*
|
|
342
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
343
|
+
* you may not use this file except in compliance with the License.
|
|
344
|
+
* You may obtain a copy of the License at
|
|
345
|
+
*
|
|
346
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
347
|
+
*
|
|
348
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
349
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
350
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
351
|
+
* See the License for the specific language governing permissions and
|
|
352
|
+
* limitations under the License.
|
|
353
|
+
*/const ua="firebase-heartbeat-database",da=1,ha="firebase-heartbeat-store";let pa=null;function fa(){return pa||(pa=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=Hs(s);return r&&s.addEventListener("upgradeneeded",(e=>{r(Hs(s.result),e.oldVersion,e.newVersion,Hs(s.transaction),e)})),n&&s.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),a.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),a}(ua,da,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(ha)}}).catch((e=>{throw oa.create("idb-open",{originalErrorMessage:e.message})}))),pa}async function ma(e,t){try{const n=(await fa()).transaction(ha,"readwrite"),r=n.objectStore(ha);await r.put(t,ga(e)),await n.done}catch(Ad){if(Ad instanceof ds)Qs.warn(Ad.message);else{const t=oa.create("idb-set",{originalErrorMessage:null==Ad?void 0:Ad.message});Qs.warn(t.message)}}}function ga(e){return`${e.name}!${e.options.appId}`}
|
|
354
|
+
/**
|
|
355
|
+
* @license
|
|
356
|
+
* Copyright 2021 Google LLC
|
|
357
|
+
*
|
|
358
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
359
|
+
* you may not use this file except in compliance with the License.
|
|
360
|
+
* You may obtain a copy of the License at
|
|
361
|
+
*
|
|
362
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
363
|
+
*
|
|
364
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
365
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
366
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
367
|
+
* See the License for the specific language governing permissions and
|
|
368
|
+
* limitations under the License.
|
|
369
|
+
*/class _a{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new ya(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=va();if(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==t&&!this._heartbeatsCache.heartbeats.some((e=>e.date===t)))return this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";const e=va(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),wa(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),wa(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=rs(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function va(){return(new Date).toISOString().substring(0,10)}class ya{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"==typeof indexedDB}catch(Ad){return!1}}()&&new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}})).then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(e){try{const t=await fa();return await t.transaction(ha).objectStore(ha).get(ga(e))}catch(Ad){if(Ad instanceof ds)Qs.warn(Ad.message);else{const t=oa.create("idb-get",{originalErrorMessage:null==Ad?void 0:Ad.message});Qs.warn(t.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ma(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ma(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function wa(e){return rs(JSON.stringify({version:2,heartbeats:e})).length}
|
|
370
|
+
/**
|
|
371
|
+
* @license
|
|
372
|
+
* Copyright 2019 Google LLC
|
|
373
|
+
*
|
|
374
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
375
|
+
* you may not use this file except in compliance with the License.
|
|
376
|
+
* You may obtain a copy of the License at
|
|
377
|
+
*
|
|
378
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
379
|
+
*
|
|
380
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
381
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
382
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
383
|
+
* See the License for the specific language governing permissions and
|
|
384
|
+
* limitations under the License.
|
|
385
|
+
*/var ba;function Ea(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 ka(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}ba="",ra(new ws("platform-logger",(e=>new Gs(e)),"PRIVATE")),ra(new ws("heartbeat",(e=>new _a(e)),"PRIVATE")),la(Js,Ys,ba),la(Js,Ys,"esm2017"),la("fire-js",""),"function"==typeof SuppressedError&&SuppressedError;const Ia=ka,Ta=new hs("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Ca="auth/captcha-check-failed",Sa="auth/invalid-verification-code",Ra="auth/invalid-credential",Oa="auth/invalid-phone-number",Aa="auth/invalid-verification-id",Pa="auth/missing-phone-number",Na="auth/user-disabled",xa=new As("@firebase/auth");function La(e,...t){xa.logLevel<=Is.ERROR&&xa.error(`Auth (${aa}): ${e}`,...t)}
|
|
386
|
+
/**
|
|
387
|
+
* @license
|
|
388
|
+
* Copyright 2020 Google LLC
|
|
389
|
+
*
|
|
390
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
391
|
+
* you may not use this file except in compliance with the License.
|
|
392
|
+
* You may obtain a copy of the License at
|
|
393
|
+
*
|
|
394
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
395
|
+
*
|
|
396
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
397
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
398
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
399
|
+
* See the License for the specific language governing permissions and
|
|
400
|
+
* limitations under the License.
|
|
401
|
+
*/function Da(e,...t){throw Ua(e,...t)}function Ma(e,...t){return Ua(e,...t)}function Ua(e,...t){if("string"!=typeof e){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return Ta.create(e,...t)}function ja(e,t,...n){if(!e)throw Ua(t,...n)}function Fa(e){const t="INTERNAL ASSERTION FAILED: "+e;throw La(t),new Error(t)}function Ba(e,t){e||Fa(t)}
|
|
402
|
+
/**
|
|
403
|
+
* @license
|
|
404
|
+
* Copyright 2020 Google LLC
|
|
405
|
+
*
|
|
406
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
407
|
+
* you may not use this file except in compliance with the License.
|
|
408
|
+
* You may obtain a copy of the License at
|
|
409
|
+
*
|
|
410
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
411
|
+
*
|
|
412
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
413
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
414
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
415
|
+
* See the License for the specific language governing permissions and
|
|
416
|
+
* limitations under the License.
|
|
417
|
+
*/function za(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function Ha(){return"http:"===Va()||"https:"===Va()}function Va(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}
|
|
418
|
+
/**
|
|
419
|
+
* @license
|
|
420
|
+
* Copyright 2020 Google LLC
|
|
421
|
+
*
|
|
422
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
423
|
+
* you may not use this file except in compliance with the License.
|
|
424
|
+
* You may obtain a copy of the License at
|
|
425
|
+
*
|
|
426
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
427
|
+
*
|
|
428
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
429
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
430
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
431
|
+
* See the License for the specific language governing permissions and
|
|
432
|
+
* limitations under the License.
|
|
433
|
+
*/function $a(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(Ha()||function(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine}
|
|
434
|
+
/**
|
|
435
|
+
* @license
|
|
436
|
+
* Copyright 2020 Google LLC
|
|
437
|
+
*
|
|
438
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
439
|
+
* you may not use this file except in compliance with the License.
|
|
440
|
+
* You may obtain a copy of the License at
|
|
441
|
+
*
|
|
442
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
443
|
+
*
|
|
444
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
445
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
446
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
447
|
+
* See the License for the specific language governing permissions and
|
|
448
|
+
* limitations under the License.
|
|
449
|
+
*/
|
|
450
|
+
class qa{constructor(e,t){this.shortDelay=e,this.longDelay=t,Ba(t>e,"Short delay should be less than long delay!"),this.isMobile="undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(us())||"object"==typeof navigator&&"ReactNative"===navigator.product}get(){return $a()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}
|
|
451
|
+
/**
|
|
452
|
+
* @license
|
|
453
|
+
* Copyright 2020 Google LLC
|
|
454
|
+
*
|
|
455
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
456
|
+
* you may not use this file except in compliance with the License.
|
|
457
|
+
* You may obtain a copy of the License at
|
|
458
|
+
*
|
|
459
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
460
|
+
*
|
|
461
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
462
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
463
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
464
|
+
* See the License for the specific language governing permissions and
|
|
465
|
+
* limitations under the License.
|
|
466
|
+
*/function Wa(e,t){Ba(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}
|
|
467
|
+
/**
|
|
468
|
+
* @license
|
|
469
|
+
* Copyright 2020 Google LLC
|
|
470
|
+
*
|
|
471
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
472
|
+
* you may not use this file except in compliance with the License.
|
|
473
|
+
* You may obtain a copy of the License at
|
|
474
|
+
*
|
|
475
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
476
|
+
*
|
|
477
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
478
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
479
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
480
|
+
* See the License for the specific language governing permissions and
|
|
481
|
+
* limitations under the License.
|
|
482
|
+
*/class Ka{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void Fa("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void Fa("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void Fa("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}
|
|
483
|
+
/**
|
|
484
|
+
* @license
|
|
485
|
+
* Copyright 2020 Google LLC
|
|
486
|
+
*
|
|
487
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
488
|
+
* you may not use this file except in compliance with the License.
|
|
489
|
+
* You may obtain a copy of the License at
|
|
490
|
+
*
|
|
491
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
492
|
+
*
|
|
493
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
494
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
495
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
496
|
+
* See the License for the specific language governing permissions and
|
|
497
|
+
* limitations under the License.
|
|
498
|
+
*/const Ga={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Ja=new qa(3e4,6e4);
|
|
499
|
+
/**
|
|
500
|
+
* @license
|
|
501
|
+
* Copyright 2020 Google LLC
|
|
502
|
+
*
|
|
503
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
504
|
+
* you may not use this file except in compliance with the License.
|
|
505
|
+
* You may obtain a copy of the License at
|
|
506
|
+
*
|
|
507
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
508
|
+
*
|
|
509
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
510
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
511
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
512
|
+
* See the License for the specific language governing permissions and
|
|
513
|
+
* limitations under the License.
|
|
514
|
+
*/function Ya(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function Qa(e,t,n,r,i={}){return Xa(e,i,(async()=>{let i={},o={};r&&("GET"===t?o=r:i={body:JSON.stringify(r)});const s=gs(Object.assign({key:e.config.apiKey},o)).slice(1),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/json",e.languageCode&&(a["X-Firebase-Locale"]=e.languageCode),Ka.fetch()(ec(e,e.config.apiHost,n,s),Object.assign({method:t,headers:a,referrerPolicy:"no-referrer"},i))}))}async function Xa(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},Ga),t);try{const t=new tc(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw nc(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const t=i.ok?o.errorMessage:o.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw nc(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===n)throw nc(e,"email-already-in-use",o);if("USER_DISABLED"===n)throw nc(e,"user-disabled",o);const a=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw function(e,t,n){const r=Object.assign(Object.assign({},Ia()),{[t]:n});return new hs("auth","Firebase",r).create(t,{appName:e.name})}(e,a,s);Da(e,a)}}catch(Ad){if(Ad instanceof ds)throw Ad;Da(e,"network-request-failed",{message:String(Ad)})}}async function Za(e,t,n,r,i={}){const o=await Qa(e,t,n,r,i);return"mfaPendingCredential"in o&&Da(e,"multi-factor-auth-required",{_serverResponse:o}),o}function ec(e,t,n,r){const i=`${t}${n}?${r}`;return e.config.emulator?Wa(e.config,i):`${e.config.apiScheme}://${i}`}class tc{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(Ma(this.auth,"network-request-failed"))),Ja.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function nc(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=Ma(e,t,r);return i.customData._tokenResponse=n,i}
|
|
515
|
+
/**
|
|
516
|
+
* @license
|
|
517
|
+
* Copyright 2020 Google LLC
|
|
518
|
+
*
|
|
519
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
520
|
+
* you may not use this file except in compliance with the License.
|
|
521
|
+
* You may obtain a copy of the License at
|
|
522
|
+
*
|
|
523
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
524
|
+
*
|
|
525
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
526
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
527
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
528
|
+
* See the License for the specific language governing permissions and
|
|
529
|
+
* limitations under the License.
|
|
530
|
+
*/function rc(e){return void 0!==e&&void 0!==e.getResponse}
|
|
531
|
+
/**
|
|
532
|
+
* @license
|
|
533
|
+
* Copyright 2020 Google LLC
|
|
534
|
+
*
|
|
535
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
536
|
+
* you may not use this file except in compliance with the License.
|
|
537
|
+
* You may obtain a copy of the License at
|
|
538
|
+
*
|
|
539
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
540
|
+
*
|
|
541
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
542
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
543
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
544
|
+
* See the License for the specific language governing permissions and
|
|
545
|
+
* limitations under the License.
|
|
546
|
+
*/
|
|
547
|
+
/**
|
|
548
|
+
* @license
|
|
549
|
+
* Copyright 2020 Google LLC
|
|
550
|
+
*
|
|
551
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
552
|
+
* you may not use this file except in compliance with the License.
|
|
553
|
+
* You may obtain a copy of the License at
|
|
554
|
+
*
|
|
555
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
556
|
+
*
|
|
557
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
558
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
559
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
560
|
+
* See the License for the specific language governing permissions and
|
|
561
|
+
* limitations under the License.
|
|
562
|
+
*/
|
|
563
|
+
function ic(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(Ad){}}function oc(e){return 1e3*Number(e)}function sc(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return La("JWT malformed, contained fewer than 3 sections"),null;try{const e=is(n);return e?JSON.parse(e):(La("Failed to decode base64 JWT payload"),null)}catch(Ad){return La("Caught error parsing JWT payload as JSON",null==Ad?void 0:Ad.toString()),null}}
|
|
564
|
+
/**
|
|
565
|
+
* @license
|
|
566
|
+
* Copyright 2020 Google LLC
|
|
567
|
+
*
|
|
568
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
569
|
+
* you may not use this file except in compliance with the License.
|
|
570
|
+
* You may obtain a copy of the License at
|
|
571
|
+
*
|
|
572
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
573
|
+
*
|
|
574
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
575
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
576
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
577
|
+
* See the License for the specific language governing permissions and
|
|
578
|
+
* limitations under the License.
|
|
579
|
+
*/
|
|
580
|
+
async function ac(e,t,n=!1){if(n)return t;try{return await t}catch(Ad){throw Ad instanceof ds&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}
|
|
581
|
+
/**
|
|
582
|
+
* @license
|
|
583
|
+
* Copyright 2020 Google LLC
|
|
584
|
+
*
|
|
585
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
586
|
+
* you may not use this file except in compliance with the License.
|
|
587
|
+
* You may obtain a copy of the License at
|
|
588
|
+
*
|
|
589
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
590
|
+
*
|
|
591
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
592
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
593
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
594
|
+
* See the License for the specific language governing permissions and
|
|
595
|
+
* limitations under the License.
|
|
596
|
+
*/(Ad)&&e.auth.currentUser===e&&await e.auth.signOut(),Ad}}class cc{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(Ad){return void("auth/network-request-failed"===(null==Ad?void 0:Ad.code)&&this.schedule(!0))}this.schedule()}}
|
|
597
|
+
/**
|
|
598
|
+
* @license
|
|
599
|
+
* Copyright 2020 Google LLC
|
|
600
|
+
*
|
|
601
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
602
|
+
* you may not use this file except in compliance with the License.
|
|
603
|
+
* You may obtain a copy of the License at
|
|
604
|
+
*
|
|
605
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
606
|
+
*
|
|
607
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
608
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
609
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
610
|
+
* See the License for the specific language governing permissions and
|
|
611
|
+
* limitations under the License.
|
|
612
|
+
*/class lc{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=ic(this.lastLoginAt),this.creationTime=ic(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}
|
|
613
|
+
/**
|
|
614
|
+
* @license
|
|
615
|
+
* Copyright 2019 Google LLC
|
|
616
|
+
*
|
|
617
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
618
|
+
* you may not use this file except in compliance with the License.
|
|
619
|
+
* You may obtain a copy of the License at
|
|
620
|
+
*
|
|
621
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
622
|
+
*
|
|
623
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
624
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
625
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
626
|
+
* See the License for the specific language governing permissions and
|
|
627
|
+
* limitations under the License.
|
|
628
|
+
*/async function uc(e){var t;const n=e.auth,r=await e.getIdToken(),i=await ac(e,async function(e,t){return Qa(e,"POST","/v1/accounts:lookup",t)}(n,{idToken:r}));ja(null==i?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const s=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?o.providerUserInfo.map((e=>{var{providerId:t}=e,n=Ea(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})):[];const a=(c=e.providerData,l=s,[...c.filter((e=>!l.some((t=>t.providerId===e.providerId)))),...l]);var c,l;const u=e.isAnonymous,d=!(e.email&&o.passwordHash||(null==a?void 0:a.length)),h=!!u&&d,p={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new lc(o.createdAt,o.lastLoginAt),isAnonymous:h};Object.assign(e,p)}
|
|
629
|
+
/**
|
|
630
|
+
* @license
|
|
631
|
+
* Copyright 2020 Google LLC
|
|
632
|
+
*
|
|
633
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
634
|
+
* you may not use this file except in compliance with the License.
|
|
635
|
+
* You may obtain a copy of the License at
|
|
636
|
+
*
|
|
637
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
638
|
+
*
|
|
639
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
640
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
641
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
642
|
+
* See the License for the specific language governing permissions and
|
|
643
|
+
* limitations under the License.
|
|
644
|
+
*/
|
|
645
|
+
class dc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){ja(e.idToken,"internal-error"),ja(void 0!==e.idToken,"internal-error"),ja(void 0!==e.refreshToken,"internal-error");const t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):function(e){const t=sc(e);return ja(t,"internal-error"),ja(void 0!==t.exp,"internal-error"),ja(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e,t=!1){return ja(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired?this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=
|
|
646
|
+
/**
|
|
647
|
+
* @license
|
|
648
|
+
* Copyright 2020 Google LLC
|
|
649
|
+
*
|
|
650
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
651
|
+
* you may not use this file except in compliance with the License.
|
|
652
|
+
* You may obtain a copy of the License at
|
|
653
|
+
*
|
|
654
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
655
|
+
*
|
|
656
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
657
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
658
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
659
|
+
* See the License for the specific language governing permissions and
|
|
660
|
+
* limitations under the License.
|
|
661
|
+
*/await async function(e,t){const n=await Xa(e,{},(async()=>{const n=gs({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,o=ec(e,r,"/v1/token",`key=${i}`),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/x-www-form-urlencoded",Ka.fetch()(o,{method:"POST",headers:s,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,o=new dc;return n&&(ja("string"==typeof n,"internal-error",{appName:e}),o.refreshToken=n),r&&(ja("string"==typeof r,"internal-error",{appName:e}),o.accessToken=r),i&&(ja("number"==typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new dc,this.toJSON())}_performRefresh(){return Fa("not implemented")}}
|
|
662
|
+
/**
|
|
663
|
+
* @license
|
|
664
|
+
* Copyright 2020 Google LLC
|
|
665
|
+
*
|
|
666
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
667
|
+
* you may not use this file except in compliance with the License.
|
|
668
|
+
* You may obtain a copy of the License at
|
|
669
|
+
*
|
|
670
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
671
|
+
*
|
|
672
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
673
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
674
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
675
|
+
* See the License for the specific language governing permissions and
|
|
676
|
+
* limitations under the License.
|
|
677
|
+
*/function hc(e,t){ja("string"==typeof e||void 0===e,"internal-error",{appName:t})}class pc{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=Ea(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new cc(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new lc(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await ac(this,this.stsTokenManager.getToken(this.auth,e));return ja(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e,t=!1){const n=ys(e),r=await n.getIdToken(t),i=sc(r);ja(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o="object"==typeof i.firebase?i.firebase:void 0,s=null==o?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:ic(oc(i.auth_time)),issuedAtTime:ic(oc(i.iat)),expirationTime:ic(oc(i.exp)),signInProvider:s||null,signInSecondFactor:(null==o?void 0:o.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=ys(e);await uc(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(ja(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new pc(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){ja(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await uc(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await ac(this,
|
|
678
|
+
/**
|
|
679
|
+
* @license
|
|
680
|
+
* Copyright 2020 Google LLC
|
|
681
|
+
*
|
|
682
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
683
|
+
* you may not use this file except in compliance with the License.
|
|
684
|
+
* You may obtain a copy of the License at
|
|
685
|
+
*
|
|
686
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
687
|
+
*
|
|
688
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
689
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
690
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
691
|
+
* See the License for the specific language governing permissions and
|
|
692
|
+
* limitations under the License.
|
|
693
|
+
*/
|
|
694
|
+
async function(e,t){return Qa(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,o,s,a,c,l;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,h=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,p=null!==(o=t.photoURL)&&void 0!==o?o:void 0,f=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(c=t.createdAt)&&void 0!==c?c:void 0,_=null!==(l=t.lastLoginAt)&&void 0!==l?l:void 0,{uid:v,emailVerified:y,isAnonymous:w,providerData:b,stsTokenManager:E}=t;ja(v&&E,e,"internal-error");const k=dc.fromJSON(this.name,E);ja("string"==typeof v,e,"internal-error"),hc(u,e.name),hc(d,e.name),ja("boolean"==typeof y,e,"internal-error"),ja("boolean"==typeof w,e,"internal-error"),hc(h,e.name),hc(p,e.name),hc(f,e.name),hc(m,e.name),hc(g,e.name),hc(_,e.name);const I=new pc({uid:v,auth:e,email:d,emailVerified:y,displayName:u,isAnonymous:w,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:k,createdAt:g,lastLoginAt:_});return b&&Array.isArray(b)&&(I.providerData=b.map((e=>Object.assign({},e)))),m&&(I._redirectEventId=m),I}static async _fromIdTokenResponse(e,t,n=!1){const r=new dc;r.updateFromServerResponse(t);const i=new pc({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await uc(i),i}}
|
|
695
|
+
/**
|
|
696
|
+
* @license
|
|
697
|
+
* Copyright 2020 Google LLC
|
|
698
|
+
*
|
|
699
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
700
|
+
* you may not use this file except in compliance with the License.
|
|
701
|
+
* You may obtain a copy of the License at
|
|
702
|
+
*
|
|
703
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
704
|
+
*
|
|
705
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
706
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
707
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
708
|
+
* See the License for the specific language governing permissions and
|
|
709
|
+
* limitations under the License.
|
|
710
|
+
*/const fc=new Map;function mc(e){Ba(e instanceof Function,"Expected a class definition");let t=fc.get(e);return t?(Ba(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,fc.set(e,t),t)}
|
|
711
|
+
/**
|
|
712
|
+
* @license
|
|
713
|
+
* Copyright 2019 Google LLC
|
|
714
|
+
*
|
|
715
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
716
|
+
* you may not use this file except in compliance with the License.
|
|
717
|
+
* You may obtain a copy of the License at
|
|
718
|
+
*
|
|
719
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
720
|
+
*
|
|
721
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
722
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
723
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
724
|
+
* See the License for the specific language governing permissions and
|
|
725
|
+
* limitations under the License.
|
|
726
|
+
*/class gc{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}gc.type="NONE";const _c=gc;
|
|
727
|
+
/**
|
|
728
|
+
* @license
|
|
729
|
+
* Copyright 2019 Google LLC
|
|
730
|
+
*
|
|
731
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
732
|
+
* you may not use this file except in compliance with the License.
|
|
733
|
+
* You may obtain a copy of the License at
|
|
734
|
+
*
|
|
735
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
736
|
+
*
|
|
737
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
738
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
739
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
740
|
+
* See the License for the specific language governing permissions and
|
|
741
|
+
* limitations under the License.
|
|
742
|
+
*/function vc(e,t,n){return`firebase:${e}:${t}:${n}`}class yc{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=vc(this.userKey,r.apiKey,i),this.fullPersistenceKey=vc("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?pc._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new yc(mc(_c),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||mc(_c);const o=vc(n,e.config.apiKey,e.name);let s=null;for(const l of t)try{const t=await l._get(o);if(t){const n=pc._fromJSON(e,t);l!==i&&(s=n),i=l;break}}catch(c){}const a=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&a.length?(i=a[0],s&&await i._set(o,s.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(o)}catch(c){}}))),new yc(i,e,n)):new yc(i,e,n)}}
|
|
743
|
+
/**
|
|
744
|
+
* @license
|
|
745
|
+
* Copyright 2020 Google LLC
|
|
746
|
+
*
|
|
747
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
748
|
+
* you may not use this file except in compliance with the License.
|
|
749
|
+
* You may obtain a copy of the License at
|
|
750
|
+
*
|
|
751
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
752
|
+
*
|
|
753
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
754
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
755
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
756
|
+
* See the License for the specific language governing permissions and
|
|
757
|
+
* limitations under the License.
|
|
758
|
+
*/function wc(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(Ic(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(bc(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(Cc(t))return"Blackberry";if(Sc(t))return"Webos";if(Ec(t))return"Safari";if((t.includes("chrome/")||kc(t))&&!t.includes("edge/"))return"Chrome";if(Tc(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null==n?void 0:n.length))return n[1]}return"Other"}function bc(e=us()){return/firefox\//i.test(e)}function Ec(e=us()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function kc(e=us()){return/crios\//i.test(e)}function Ic(e=us()){return/iemobile/i.test(e)}function Tc(e=us()){return/android/i.test(e)}function Cc(e=us()){return/blackberry/i.test(e)}function Sc(e=us()){return/webos/i.test(e)}function Rc(e=us()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Oc(){return function(){const e=us();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function Ac(e=us()){return Rc(e)||Tc(e)||Sc(e)||Cc(e)||/windows phone/i.test(e)||Ic(e)}
|
|
759
|
+
/**
|
|
760
|
+
* @license
|
|
761
|
+
* Copyright 2020 Google LLC
|
|
762
|
+
*
|
|
763
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
764
|
+
* you may not use this file except in compliance with the License.
|
|
765
|
+
* You may obtain a copy of the License at
|
|
766
|
+
*
|
|
767
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
768
|
+
*
|
|
769
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
770
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
771
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
772
|
+
* See the License for the specific language governing permissions and
|
|
773
|
+
* limitations under the License.
|
|
774
|
+
*/
|
|
775
|
+
function Pc(e,t=[]){let n;switch(e){case"Browser":n=wc(us());break;case"Worker":n=`${wc(us())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${aa}/${r}`}
|
|
776
|
+
/**
|
|
777
|
+
* @license
|
|
778
|
+
* Copyright 2022 Google LLC
|
|
779
|
+
*
|
|
780
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
781
|
+
* you may not use this file except in compliance with the License.
|
|
782
|
+
* You may obtain a copy of the License at
|
|
783
|
+
*
|
|
784
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
785
|
+
*
|
|
786
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
787
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
788
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
789
|
+
* See the License for the specific language governing permissions and
|
|
790
|
+
* limitations under the License.
|
|
791
|
+
*/class Nc{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(Ad){r(Ad)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(Ad){t.reverse();for(const r of t)try{r()}catch(n){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==Ad?void 0:Ad.message})}}}
|
|
792
|
+
/**
|
|
793
|
+
* @license
|
|
794
|
+
* Copyright 2023 Google LLC
|
|
795
|
+
*
|
|
796
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
797
|
+
* you may not use this file except in compliance with the License.
|
|
798
|
+
* You may obtain a copy of the License at
|
|
799
|
+
*
|
|
800
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
801
|
+
*
|
|
802
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
803
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
804
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
805
|
+
* See the License for the specific language governing permissions and
|
|
806
|
+
* limitations under the License.
|
|
807
|
+
*/class xc{constructor(e){var t,n,r,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,o,s;const a={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,a),this.validatePasswordCharacterOptions(e,a),a.isValid&&(a.isValid=null===(t=a.meetsMinPasswordLength)||void 0===t||t),a.isValid&&(a.isValid=null===(n=a.meetsMaxPasswordLength)||void 0===n||n),a.isValid&&(a.isValid=null===(r=a.containsLowercaseLetter)||void 0===r||r),a.isValid&&(a.isValid=null===(i=a.containsUppercaseLetter)||void 0===i||i),a.isValid&&(a.isValid=null===(o=a.containsNumericCharacter)||void 0===o||o),a.isValid&&(a.isValid=null===(s=a.containsNonAlphanumericCharacter)||void 0===s||s),a}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}
|
|
808
|
+
/**
|
|
809
|
+
* @license
|
|
810
|
+
* Copyright 2020 Google LLC
|
|
811
|
+
*
|
|
812
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
813
|
+
* you may not use this file except in compliance with the License.
|
|
814
|
+
* You may obtain a copy of the License at
|
|
815
|
+
*
|
|
816
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
817
|
+
*
|
|
818
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
819
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
820
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
821
|
+
* See the License for the specific language governing permissions and
|
|
822
|
+
* limitations under the License.
|
|
823
|
+
*/class Lc{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Mc(this),this.idTokenSubscription=new Mc(this),this.beforeStateQueue=new Nc(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Ta,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=mc(t)),this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await yc.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(Ad){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void(await this.currentUser.getIdToken())):void(await this._updateCurrentUser(e,!0)):void 0}async initializeCurrentUser(e){var t;const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,o=null==r?void 0:r._redirectEventId,s=await this.tryRedirectSignIn(e);n&&n!==o||!(null==s?void 0:s.user)||(r=s.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(Ad){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(Ad)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return ja(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(Ad){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await uc(e)}catch(Ad){if("auth/network-request-failed"!==(null==Ad?void 0:Ad.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const t=e?ys(e):null;return t&&ja(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&ja(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue((async()=>{await this.assertedPersistence.setPersistence(mc(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e,t={}){return Qa(e,"GET","/v2/passwordPolicy",Ya(e,t))}
|
|
824
|
+
/**
|
|
825
|
+
* @license
|
|
826
|
+
* Copyright 2023 Google LLC
|
|
827
|
+
*
|
|
828
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
829
|
+
* you may not use this file except in compliance with the License.
|
|
830
|
+
* You may obtain a copy of the License at
|
|
831
|
+
*
|
|
832
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
833
|
+
*
|
|
834
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
835
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
836
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
837
|
+
* See the License for the specific language governing permissions and
|
|
838
|
+
* limitations under the License.
|
|
839
|
+
*/(this),t=new xc(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new hs("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&mc(e)||this._popupRedirectResolver;ja(t,this,"argument-error"),this.redirectPersistenceManager=await yc.create(this,[mc(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async()=>{})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"==typeof t?t:t.next.bind(t);let o=!1;const s=this._isInitialized?Promise.resolve():this._initializationPromise;if(ja(s,this,"internal-error"),s.then((()=>{o||i(this.currentUser)})),"function"==typeof t){const i=e.addObserver(t,n,r);return()=>{o=!0,i()}}{const n=e.addObserver(t);return()=>{o=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return ja(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Pc(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){xa.logLevel<=Is.WARN&&xa.warn(`Auth (${aa}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function Dc(e){return ys(e)}class Mc{constructor(e){this.auth=e,this.observer=null,this.addObserver=function(e,t){const n=new _s(e,t);return n.subscribe.bind(n)}((e=>this.observer=e))}get next(){return ja(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}
|
|
840
|
+
/**
|
|
841
|
+
* @license
|
|
842
|
+
* Copyright 2020 Google LLC
|
|
843
|
+
*
|
|
844
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
845
|
+
* you may not use this file except in compliance with the License.
|
|
846
|
+
* You may obtain a copy of the License at
|
|
847
|
+
*
|
|
848
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
849
|
+
*
|
|
850
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
851
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
852
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
853
|
+
* See the License for the specific language governing permissions and
|
|
854
|
+
* limitations under the License.
|
|
855
|
+
*/function Uc(e){return new Promise(((t,n)=>{const r=document.createElement("script");var i,o;r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=Ma("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",(null!==(o=null===(i=document.getElementsByTagName("head"))||void 0===i?void 0:i[0])&&void 0!==o?o:document).appendChild(r)}))}function jc(e){return`__${e}${Math.floor(1e6*Math.random())}`}
|
|
856
|
+
/**
|
|
857
|
+
* @license
|
|
858
|
+
* Copyright 2020 Google LLC
|
|
859
|
+
*
|
|
860
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
861
|
+
* you may not use this file except in compliance with the License.
|
|
862
|
+
* You may obtain a copy of the License at
|
|
863
|
+
*
|
|
864
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
865
|
+
*
|
|
866
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
867
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
868
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
869
|
+
* See the License for the specific language governing permissions and
|
|
870
|
+
* limitations under the License.
|
|
871
|
+
*/function Fc(e,t,n){const r=Dc(e);ja(r._canInitEmulator,r,"emulator-config-failed"),ja(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null==n?void 0:n.disableWarnings),o=Bc(t),{host:s,port:a}=function(e){const t=Bc(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:zc(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:zc(t)}}}(t),c=null===a?"":`:${a}`;r.config.emulator={url:`${o}//${s}${c}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.");"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}
|
|
872
|
+
/**
|
|
873
|
+
* @license
|
|
874
|
+
* Copyright 2020 Google LLC
|
|
875
|
+
*
|
|
876
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
877
|
+
* you may not use this file except in compliance with the License.
|
|
878
|
+
* You may obtain a copy of the License at
|
|
879
|
+
*
|
|
880
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
881
|
+
*
|
|
882
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
883
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
884
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
885
|
+
* See the License for the specific language governing permissions and
|
|
886
|
+
* limitations under the License.
|
|
887
|
+
*/()}function Bc(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function zc(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class Hc{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return Fa("not implemented")}_getIdTokenResponse(e){return Fa("not implemented")}_linkToIdToken(e,t){return Fa("not implemented")}_getReauthenticationResolver(e){return Fa("not implemented")}}
|
|
888
|
+
/**
|
|
889
|
+
* @license
|
|
890
|
+
* Copyright 2020 Google LLC
|
|
891
|
+
*
|
|
892
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
893
|
+
* you may not use this file except in compliance with the License.
|
|
894
|
+
* You may obtain a copy of the License at
|
|
895
|
+
*
|
|
896
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
897
|
+
*
|
|
898
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
899
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
900
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
901
|
+
* See the License for the specific language governing permissions and
|
|
902
|
+
* limitations under the License.
|
|
903
|
+
*/async function Vc(e,t){return Za(e,"POST","/v1/accounts:signInWithIdp",Ya(e,t))}
|
|
904
|
+
/**
|
|
905
|
+
* @license
|
|
906
|
+
* Copyright 2020 Google LLC
|
|
907
|
+
*
|
|
908
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
909
|
+
* you may not use this file except in compliance with the License.
|
|
910
|
+
* You may obtain a copy of the License at
|
|
911
|
+
*
|
|
912
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
913
|
+
*
|
|
914
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
915
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
916
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
917
|
+
* See the License for the specific language governing permissions and
|
|
918
|
+
* limitations under the License.
|
|
919
|
+
*/class $c extends Hc{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new $c(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Da("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=Ea(t,["providerId","signInMethod"]);if(!n||!r)return null;const o=new $c(n,r);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return Vc(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Vc(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Vc(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=gs(t)}return e}}
|
|
920
|
+
/**
|
|
921
|
+
* @license
|
|
922
|
+
* Copyright 2020 Google LLC
|
|
923
|
+
*
|
|
924
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
925
|
+
* you may not use this file except in compliance with the License.
|
|
926
|
+
* You may obtain a copy of the License at
|
|
927
|
+
*
|
|
928
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
929
|
+
*
|
|
930
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
931
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
932
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
933
|
+
* See the License for the specific language governing permissions and
|
|
934
|
+
* limitations under the License.
|
|
935
|
+
*/const qc={USER_NOT_FOUND:"user-not-found"};
|
|
936
|
+
/**
|
|
937
|
+
* @license
|
|
938
|
+
* Copyright 2020 Google LLC
|
|
939
|
+
*
|
|
940
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
941
|
+
* you may not use this file except in compliance with the License.
|
|
942
|
+
* You may obtain a copy of the License at
|
|
943
|
+
*
|
|
944
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
945
|
+
*
|
|
946
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
947
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
948
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
949
|
+
* See the License for the specific language governing permissions and
|
|
950
|
+
* limitations under the License.
|
|
951
|
+
*/
|
|
952
|
+
class Wc extends Hc{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Wc({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Wc({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return Za(e,"POST","/v1/accounts:signInWithPhoneNumber",Ya(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await Za(e,"POST","/v1/accounts:signInWithPhoneNumber",Ya(e,t));if(n.temporaryProof)throw nc(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return Za(e,"POST","/v1/accounts:signInWithPhoneNumber",Ya(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),qc)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new Wc({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}
|
|
953
|
+
/**
|
|
954
|
+
* @license
|
|
955
|
+
* Copyright 2020 Google LLC
|
|
956
|
+
*
|
|
957
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
958
|
+
* you may not use this file except in compliance with the License.
|
|
959
|
+
* You may obtain a copy of the License at
|
|
960
|
+
*
|
|
961
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
962
|
+
*
|
|
963
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
964
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
965
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
966
|
+
* See the License for the specific language governing permissions and
|
|
967
|
+
* limitations under the License.
|
|
968
|
+
*/class Kc{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}
|
|
969
|
+
/**
|
|
970
|
+
* @license
|
|
971
|
+
* Copyright 2019 Google LLC
|
|
972
|
+
*
|
|
973
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
974
|
+
* you may not use this file except in compliance with the License.
|
|
975
|
+
* You may obtain a copy of the License at
|
|
976
|
+
*
|
|
977
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
978
|
+
*
|
|
979
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
980
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
981
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
982
|
+
* See the License for the specific language governing permissions and
|
|
983
|
+
* limitations under the License.
|
|
984
|
+
*/class Gc extends Kc{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}
|
|
985
|
+
/**
|
|
986
|
+
* @license
|
|
987
|
+
* Copyright 2020 Google LLC
|
|
988
|
+
*
|
|
989
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
990
|
+
* you may not use this file except in compliance with the License.
|
|
991
|
+
* You may obtain a copy of the License at
|
|
992
|
+
*
|
|
993
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
994
|
+
*
|
|
995
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
996
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
997
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
998
|
+
* See the License for the specific language governing permissions and
|
|
999
|
+
* limitations under the License.
|
|
1000
|
+
*/class Jc extends Gc{constructor(){super("facebook.com")}static credential(e){return $c._fromParams({providerId:Jc.PROVIDER_ID,signInMethod:Jc.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Jc.credentialFromTaggedObject(e)}static credentialFromError(e){return Jc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return Jc.credential(e.oauthAccessToken)}catch(t){return null}}}Jc.FACEBOOK_SIGN_IN_METHOD="facebook.com",Jc.PROVIDER_ID="facebook.com";
|
|
1001
|
+
/**
|
|
1002
|
+
* @license
|
|
1003
|
+
* Copyright 2020 Google LLC
|
|
1004
|
+
*
|
|
1005
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1006
|
+
* you may not use this file except in compliance with the License.
|
|
1007
|
+
* You may obtain a copy of the License at
|
|
1008
|
+
*
|
|
1009
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1010
|
+
*
|
|
1011
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1012
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1013
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1014
|
+
* See the License for the specific language governing permissions and
|
|
1015
|
+
* limitations under the License.
|
|
1016
|
+
*/
|
|
1017
|
+
class Yc extends Gc{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return $c._fromParams({providerId:Yc.PROVIDER_ID,signInMethod:Yc.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Yc.credentialFromTaggedObject(e)}static credentialFromError(e){return Yc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return Yc.credential(t,n)}catch(r){return null}}}Yc.GOOGLE_SIGN_IN_METHOD="google.com",Yc.PROVIDER_ID="google.com";
|
|
1018
|
+
/**
|
|
1019
|
+
* @license
|
|
1020
|
+
* Copyright 2020 Google LLC
|
|
1021
|
+
*
|
|
1022
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1023
|
+
* you may not use this file except in compliance with the License.
|
|
1024
|
+
* You may obtain a copy of the License at
|
|
1025
|
+
*
|
|
1026
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1027
|
+
*
|
|
1028
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1029
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1030
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1031
|
+
* See the License for the specific language governing permissions and
|
|
1032
|
+
* limitations under the License.
|
|
1033
|
+
*/
|
|
1034
|
+
class Qc extends Gc{constructor(){super("github.com")}static credential(e){return $c._fromParams({providerId:Qc.PROVIDER_ID,signInMethod:Qc.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Qc.credentialFromTaggedObject(e)}static credentialFromError(e){return Qc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return Qc.credential(e.oauthAccessToken)}catch(t){return null}}}Qc.GITHUB_SIGN_IN_METHOD="github.com",Qc.PROVIDER_ID="github.com";
|
|
1035
|
+
/**
|
|
1036
|
+
* @license
|
|
1037
|
+
* Copyright 2020 Google LLC
|
|
1038
|
+
*
|
|
1039
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1040
|
+
* you may not use this file except in compliance with the License.
|
|
1041
|
+
* You may obtain a copy of the License at
|
|
1042
|
+
*
|
|
1043
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1044
|
+
*
|
|
1045
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1046
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1047
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1048
|
+
* See the License for the specific language governing permissions and
|
|
1049
|
+
* limitations under the License.
|
|
1050
|
+
*/
|
|
1051
|
+
class Xc extends Gc{constructor(){super("twitter.com")}static credential(e,t){return $c._fromParams({providerId:Xc.PROVIDER_ID,signInMethod:Xc.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return Xc.credentialFromTaggedObject(e)}static credentialFromError(e){return Xc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return Xc.credential(t,n)}catch(r){return null}}}Xc.TWITTER_SIGN_IN_METHOD="twitter.com",Xc.PROVIDER_ID="twitter.com";
|
|
1052
|
+
/**
|
|
1053
|
+
* @license
|
|
1054
|
+
* Copyright 2020 Google LLC
|
|
1055
|
+
*
|
|
1056
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1057
|
+
* you may not use this file except in compliance with the License.
|
|
1058
|
+
* You may obtain a copy of the License at
|
|
1059
|
+
*
|
|
1060
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1061
|
+
*
|
|
1062
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1063
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1064
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1065
|
+
* See the License for the specific language governing permissions and
|
|
1066
|
+
* limitations under the License.
|
|
1067
|
+
*/
|
|
1068
|
+
class Zc{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){const i=await pc._fromIdTokenResponse(e,n,r),o=el(n);return new Zc({user:i,providerId:o,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=el(n);return new Zc({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function el(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}
|
|
1069
|
+
/**
|
|
1070
|
+
* @license
|
|
1071
|
+
* Copyright 2020 Google LLC
|
|
1072
|
+
*
|
|
1073
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1074
|
+
* you may not use this file except in compliance with the License.
|
|
1075
|
+
* You may obtain a copy of the License at
|
|
1076
|
+
*
|
|
1077
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1078
|
+
*
|
|
1079
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1080
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1081
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1082
|
+
* See the License for the specific language governing permissions and
|
|
1083
|
+
* limitations under the License.
|
|
1084
|
+
*/class tl extends ds{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,tl.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new tl(e,t,n,r)}}function nl(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if("auth/multi-factor-auth-required"===n.code)throw tl._fromErrorAndOperation(e,n,t,r);throw n}))}
|
|
1085
|
+
/**
|
|
1086
|
+
* @license
|
|
1087
|
+
* Copyright 2020 Google LLC
|
|
1088
|
+
*
|
|
1089
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1090
|
+
* you may not use this file except in compliance with the License.
|
|
1091
|
+
* You may obtain a copy of the License at
|
|
1092
|
+
*
|
|
1093
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1094
|
+
*
|
|
1095
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1096
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1097
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1098
|
+
* See the License for the specific language governing permissions and
|
|
1099
|
+
* limitations under the License.
|
|
1100
|
+
*/
|
|
1101
|
+
async function rl(e,t,n=!1){const r="signIn",i=await nl(e,r,t),o=await Zc._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}const il="__sak";
|
|
1102
|
+
/**
|
|
1103
|
+
* @license
|
|
1104
|
+
* Copyright 2019 Google LLC
|
|
1105
|
+
*
|
|
1106
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1107
|
+
* you may not use this file except in compliance with the License.
|
|
1108
|
+
* You may obtain a copy of the License at
|
|
1109
|
+
*
|
|
1110
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1111
|
+
*
|
|
1112
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1113
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1114
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1115
|
+
* See the License for the specific language governing permissions and
|
|
1116
|
+
* limitations under the License.
|
|
1117
|
+
*/class ol{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(il,"1"),this.storage.removeItem(il),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}
|
|
1118
|
+
/**
|
|
1119
|
+
* @license
|
|
1120
|
+
* Copyright 2020 Google LLC
|
|
1121
|
+
*
|
|
1122
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1123
|
+
* you may not use this file except in compliance with the License.
|
|
1124
|
+
* You may obtain a copy of the License at
|
|
1125
|
+
*
|
|
1126
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1127
|
+
*
|
|
1128
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1129
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1130
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1131
|
+
* See the License for the specific language governing permissions and
|
|
1132
|
+
* limitations under the License.
|
|
1133
|
+
*/class sl extends ol{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=us();return Ec(e)||Rc(e)}()&&function(){try{return!(!window||window===window.top)}catch(Ad){return!1}}(),this.fallbackToPolling=Ac(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);Oc()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}sl.type="LOCAL";const al=sl;
|
|
1134
|
+
/**
|
|
1135
|
+
* @license
|
|
1136
|
+
* Copyright 2020 Google LLC
|
|
1137
|
+
*
|
|
1138
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1139
|
+
* you may not use this file except in compliance with the License.
|
|
1140
|
+
* You may obtain a copy of the License at
|
|
1141
|
+
*
|
|
1142
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1143
|
+
*
|
|
1144
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1145
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1146
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1147
|
+
* See the License for the specific language governing permissions and
|
|
1148
|
+
* limitations under the License.
|
|
1149
|
+
*/class cl extends ol{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}cl.type="SESSION";const ll=cl;
|
|
1150
|
+
/**
|
|
1151
|
+
* @license
|
|
1152
|
+
* Copyright 2019 Google LLC
|
|
1153
|
+
*
|
|
1154
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1155
|
+
* you may not use this file except in compliance with the License.
|
|
1156
|
+
* You may obtain a copy of the License at
|
|
1157
|
+
*
|
|
1158
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1159
|
+
*
|
|
1160
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1161
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1162
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1163
|
+
* See the License for the specific language governing permissions and
|
|
1164
|
+
* limitations under the License.
|
|
1165
|
+
*/
|
|
1166
|
+
/**
|
|
1167
|
+
* @license
|
|
1168
|
+
* Copyright 2019 Google LLC
|
|
1169
|
+
*
|
|
1170
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1171
|
+
* you may not use this file except in compliance with the License.
|
|
1172
|
+
* You may obtain a copy of the License at
|
|
1173
|
+
*
|
|
1174
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1175
|
+
*
|
|
1176
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1177
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1178
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1179
|
+
* See the License for the specific language governing permissions and
|
|
1180
|
+
* limitations under the License.
|
|
1181
|
+
*/
|
|
1182
|
+
class ul{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new ul(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,o=this.handlersMap[r];if(!(null==o?void 0:o.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const s=Array.from(o).map((async e=>e(t.origin,i))),a=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}})))}(s);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}
|
|
1183
|
+
/**
|
|
1184
|
+
* @license
|
|
1185
|
+
* Copyright 2020 Google LLC
|
|
1186
|
+
*
|
|
1187
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1188
|
+
* you may not use this file except in compliance with the License.
|
|
1189
|
+
* You may obtain a copy of the License at
|
|
1190
|
+
*
|
|
1191
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1192
|
+
*
|
|
1193
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1194
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1195
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1196
|
+
* See the License for the specific language governing permissions and
|
|
1197
|
+
* limitations under the License.
|
|
1198
|
+
*/
|
|
1199
|
+
function dl(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}
|
|
1200
|
+
/**
|
|
1201
|
+
* @license
|
|
1202
|
+
* Copyright 2019 Google LLC
|
|
1203
|
+
*
|
|
1204
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1205
|
+
* you may not use this file except in compliance with the License.
|
|
1206
|
+
* You may obtain a copy of the License at
|
|
1207
|
+
*
|
|
1208
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1209
|
+
*
|
|
1210
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1211
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1212
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1213
|
+
* See the License for the specific language governing permissions and
|
|
1214
|
+
* limitations under the License.
|
|
1215
|
+
*/ul.receivers=[];class hl{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const r="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise(((s,a)=>{const c=dl("",20);r.port1.start();const l=setTimeout((()=>{a(new Error("unsupported_event"))}),n);o={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===c)switch(t.data.status){case"ack":clearTimeout(l),i=setTimeout((()=>{a(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),s(t.data.response);break;default:clearTimeout(l),clearTimeout(i),a(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[r.port2])})).finally((()=>{o&&this.removeMessageHandler(o)}))}}
|
|
1216
|
+
/**
|
|
1217
|
+
* @license
|
|
1218
|
+
* Copyright 2020 Google LLC
|
|
1219
|
+
*
|
|
1220
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1221
|
+
* you may not use this file except in compliance with the License.
|
|
1222
|
+
* You may obtain a copy of the License at
|
|
1223
|
+
*
|
|
1224
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1225
|
+
*
|
|
1226
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1227
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1228
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1229
|
+
* See the License for the specific language governing permissions and
|
|
1230
|
+
* limitations under the License.
|
|
1231
|
+
*/function pl(){return window}
|
|
1232
|
+
/**
|
|
1233
|
+
* @license
|
|
1234
|
+
* Copyright 2020 Google LLC.
|
|
1235
|
+
*
|
|
1236
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1237
|
+
* you may not use this file except in compliance with the License.
|
|
1238
|
+
* You may obtain a copy of the License at
|
|
1239
|
+
*
|
|
1240
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1241
|
+
*
|
|
1242
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1243
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1244
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1245
|
+
* See the License for the specific language governing permissions and
|
|
1246
|
+
* limitations under the License.
|
|
1247
|
+
*/
|
|
1248
|
+
function fl(){return void 0!==pl().WorkerGlobalScope&&"function"==typeof pl().importScripts}
|
|
1249
|
+
/**
|
|
1250
|
+
* @license
|
|
1251
|
+
* Copyright 2019 Google LLC
|
|
1252
|
+
*
|
|
1253
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1254
|
+
* you may not use this file except in compliance with the License.
|
|
1255
|
+
* You may obtain a copy of the License at
|
|
1256
|
+
*
|
|
1257
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1258
|
+
*
|
|
1259
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1260
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1261
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1262
|
+
* See the License for the specific language governing permissions and
|
|
1263
|
+
* limitations under the License.
|
|
1264
|
+
*/
|
|
1265
|
+
const ml="firebaseLocalStorageDb",gl="firebaseLocalStorage",_l="fbase_key";class vl{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function yl(e,t){return e.transaction([gl],t?"readwrite":"readonly").objectStore(gl)}function wl(){const e=indexedDB.open(ml,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(gl,{keyPath:_l})}catch(Ad){n(Ad)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(gl)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(ml);return new vl(e).toPromise()}(),t(await wl()))}))}))}async function bl(e,t,n){const r=yl(e,!0).put({[_l]:t,value:n});return new vl(r).toPromise()}function El(e,t){const n=yl(e,!0).delete(t);return new vl(n).toPromise()}class kl{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await wl()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(Ad){if(t++>3)throw Ad;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return fl()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=ul._getInstance(fl()?self:null),this.receiver._subscribe("keyChanged",(async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)}))),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new hl(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null===(t=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await wl();return await bl(e,il,"1"),await El(e,il),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>bl(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=yl(e,!1).get(t),r=await new vl(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>El(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=yl(e,!1).getAll();return new vl(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}kl.type="LOCAL";const Il=kl;
|
|
1266
|
+
/**
|
|
1267
|
+
* @license
|
|
1268
|
+
* Copyright 2020 Google LLC
|
|
1269
|
+
*
|
|
1270
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1271
|
+
* you may not use this file except in compliance with the License.
|
|
1272
|
+
* You may obtain a copy of the License at
|
|
1273
|
+
*
|
|
1274
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1275
|
+
*
|
|
1276
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1277
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1278
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1279
|
+
* See the License for the specific language governing permissions and
|
|
1280
|
+
* limitations under the License.
|
|
1281
|
+
*/
|
|
1282
|
+
/**
|
|
1283
|
+
* @license
|
|
1284
|
+
* Copyright 2020 Google LLC
|
|
1285
|
+
*
|
|
1286
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1287
|
+
* you may not use this file except in compliance with the License.
|
|
1288
|
+
* You may obtain a copy of the License at
|
|
1289
|
+
*
|
|
1290
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1291
|
+
*
|
|
1292
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1293
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1294
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1295
|
+
* See the License for the specific language governing permissions and
|
|
1296
|
+
* limitations under the License.
|
|
1297
|
+
*/
|
|
1298
|
+
const Tl=1e12;class Cl{constructor(e){this.auth=e,this.counter=Tl,this._widgets=new Map}render(e,t){const n=this.counter;return this._widgets.set(n,new Sl(e,this.auth.name,t||{})),this.counter++,n}reset(e){var t;const n=e||Tl;null===(t=this._widgets.get(n))||void 0===t||t.delete(),this._widgets.delete(n)}getResponse(e){var t;const n=e||Tl;return(null===(t=this._widgets.get(n))||void 0===t?void 0:t.getResponse())||""}async execute(e){var t;const n=e||Tl;return null===(t=this._widgets.get(n))||void 0===t||t.execute(),""}}class Sl{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const r="string"==typeof e?document.getElementById(e):e;ja(r,"argument-error",{appName:t}),this.container=r,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout((()=>{this.responseToken=function(e){const t=[],n="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let r=0;r<e;r++)t.push(n.charAt(Math.floor(Math.random()*n.length)));return t.join("")}
|
|
1299
|
+
/**
|
|
1300
|
+
* @license
|
|
1301
|
+
* Copyright 2020 Google LLC
|
|
1302
|
+
*
|
|
1303
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1304
|
+
* you may not use this file except in compliance with the License.
|
|
1305
|
+
* You may obtain a copy of the License at
|
|
1306
|
+
*
|
|
1307
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1308
|
+
*
|
|
1309
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1310
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1311
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1312
|
+
* See the License for the specific language governing permissions and
|
|
1313
|
+
* limitations under the License.
|
|
1314
|
+
*/(50);const{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(Ad){}this.timerId=window.setTimeout((()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(Ad){}this.isVisible&&this.execute()}),6e4)}),500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Rl=jc("rcb"),Ol=new qa(3e4,6e4);class Al{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(e=pl().grecaptcha)||void 0===e?void 0:e.render)}load(e,t=""){return ja(function(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}(t),e,"argument-error"),this.shouldResolveImmediately(t)&&rc(pl().grecaptcha)?Promise.resolve(pl().grecaptcha):new Promise(((n,r)=>{const i=pl().setTimeout((()=>{r(Ma(e,"network-request-failed"))}),Ol.get());pl()[Rl]=()=>{pl().clearTimeout(i),delete pl()[Rl];const o=pl().grecaptcha;if(!o||!rc(o))return void r(Ma(e,"internal-error"));const s=o.render;o.render=(e,t)=>{const n=s(e,t);return this.counter++,n},this.hostLanguage=t,n(o)};Uc(`https://www.google.com/recaptcha/api.js??${gs({onload:Rl,render:"explicit",hl:t})}`).catch((()=>{clearTimeout(i),r(Ma(e,"internal-error"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=pl().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Pl{async load(e){return new Cl(e)}clearedOneInstance(){}}
|
|
1315
|
+
/**
|
|
1316
|
+
* @license
|
|
1317
|
+
* Copyright 2020 Google LLC
|
|
1318
|
+
*
|
|
1319
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1320
|
+
* you may not use this file except in compliance with the License.
|
|
1321
|
+
* You may obtain a copy of the License at
|
|
1322
|
+
*
|
|
1323
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1324
|
+
*
|
|
1325
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1326
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1327
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1328
|
+
* See the License for the specific language governing permissions and
|
|
1329
|
+
* limitations under the License.
|
|
1330
|
+
*/const Nl="recaptcha",xl={theme:"light",type:"image"};class Ll{constructor(e,t,n=Object.assign({},xl)){this.parameters=n,this.type=Nl,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Dc(e),this.isInvisible="invisible"===this.parameters.size,ja("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment");const r="string"==typeof t?document.getElementById(t):t;ja(r,this.auth,"argument-error"),this.container=r,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new Pl:new Al,this.validateStartingState()}async verify(){this.assertNotDestroyed();const e=await this.render(),t=this.getAssertedRecaptcha(),n=t.getResponse(e);return n||new Promise((n=>{const r=e=>{e&&(this.tokenChangeListeners.delete(r),n(e))};this.tokenChangeListeners.add(r),this.isInvisible&&t.execute(e)}))}render(){try{this.assertNotDestroyed()}catch(Ad){return Promise.reject(Ad)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch((e=>{throw this.renderPromise=null,e}))),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach((e=>{this.container.removeChild(e)}))}validateStartingState(){ja(!this.parameters.sitekey,this.auth,"argument-error"),ja(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),ja("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach((e=>e(t))),"function"==typeof e)e(t);else if("string"==typeof e){const n=pl()[e];"function"==typeof n&&n(t)}}}assertNotDestroyed(){ja(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){const t=document.createElement("div");e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){ja(Ha()&&!fl(),this.auth,"internal-error"),await function(){let e=null;return new Promise((t=>{"complete"!==document.readyState?(e=()=>t(),window.addEventListener("load",e)):t()})).catch((t=>{throw e&&window.removeEventListener("load",e),t}))}(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await async function(e){return(await Qa(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}(this.auth);ja(e,this.auth,"internal-error"),this.parameters.sitekey=e}getAssertedRecaptcha(){return ja(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}async function Dl(e,t,n){var r;const i=await n.verify();try{let o;if(ja("string"==typeof i,e,"argument-error"),ja(n.type===Nl,e,"argument-error"),o="string"==typeof t?{phoneNumber:t}:t,"session"in o){const t=o.session;if("phoneNumber"in o){ja("enroll"===t.type,e,"internal-error");const n=
|
|
1331
|
+
/**
|
|
1332
|
+
* @license
|
|
1333
|
+
* Copyright 2020 Google LLC
|
|
1334
|
+
*
|
|
1335
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1336
|
+
* you may not use this file except in compliance with the License.
|
|
1337
|
+
* You may obtain a copy of the License at
|
|
1338
|
+
*
|
|
1339
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1340
|
+
*
|
|
1341
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1342
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1343
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1344
|
+
* See the License for the specific language governing permissions and
|
|
1345
|
+
* limitations under the License.
|
|
1346
|
+
*/await function(e,t){return Qa(e,"POST","/v2/accounts/mfaEnrollment:start",Ya(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{ja("signin"===t.type,e,"internal-error");const n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;ja(n,e,"missing-multi-factor-info");const s=await function(e,t){return Qa(e,"POST","/v2/accounts/mfaSignIn:start",Ya(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return s.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return Qa(e,"POST","/v1/accounts:sendVerificationCode",Ya(e,t))}(e,{phoneNumber:o.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}
|
|
1347
|
+
/**
|
|
1348
|
+
* @license
|
|
1349
|
+
* Copyright 2020 Google LLC
|
|
1350
|
+
*
|
|
1351
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1352
|
+
* you may not use this file except in compliance with the License.
|
|
1353
|
+
* You may obtain a copy of the License at
|
|
1354
|
+
*
|
|
1355
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1356
|
+
*
|
|
1357
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1358
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1359
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1360
|
+
* See the License for the specific language governing permissions and
|
|
1361
|
+
* limitations under the License.
|
|
1362
|
+
*/class Ml{constructor(e){this.providerId=Ml.PROVIDER_ID,this.auth=Dc(e)}verifyPhoneNumber(e,t){return Dl(this.auth,e,ys(t))}static credential(e,t){return Wc._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Ml.credentialFromTaggedObject(t)}static credentialFromError(e){return Ml.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{phoneNumber:t,temporaryProof:n}=e;return t&&n?Wc._fromTokenResponse(t,n):null}}Ml.PROVIDER_ID="phone",Ml.PHONE_SIGN_IN_METHOD="phone";
|
|
1363
|
+
/**
|
|
1364
|
+
* @license
|
|
1365
|
+
* Copyright 2019 Google LLC
|
|
1366
|
+
*
|
|
1367
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1368
|
+
* you may not use this file except in compliance with the License.
|
|
1369
|
+
* You may obtain a copy of the License at
|
|
1370
|
+
*
|
|
1371
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1372
|
+
*
|
|
1373
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1374
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1375
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1376
|
+
* See the License for the specific language governing permissions and
|
|
1377
|
+
* limitations under the License.
|
|
1378
|
+
*/
|
|
1379
|
+
class Ul extends Hc{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Vc(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Vc(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Vc(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function jl(e){return rl(e.auth,new Ul(e),e.bypassAuthState)}function Fl(e){const{auth:t,user:n}=e;return ja(n,t,"internal-error"),
|
|
1380
|
+
/**
|
|
1381
|
+
* @license
|
|
1382
|
+
* Copyright 2019 Google LLC
|
|
1383
|
+
*
|
|
1384
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1385
|
+
* you may not use this file except in compliance with the License.
|
|
1386
|
+
* You may obtain a copy of the License at
|
|
1387
|
+
*
|
|
1388
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1389
|
+
*
|
|
1390
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1391
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1392
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1393
|
+
* See the License for the specific language governing permissions and
|
|
1394
|
+
* limitations under the License.
|
|
1395
|
+
*/
|
|
1396
|
+
async function(e,t,n=!1){const{auth:r}=e,i="reauthenticate";try{const o=await ac(e,nl(r,i,t,e),n);ja(o.idToken,r,"internal-error");const s=sc(o.idToken);ja(s,r,"internal-error");const{sub:a}=s;return ja(e.uid===a,r,"user-mismatch"),Zc._forOperation(e,i,o)}catch(Ad){throw"auth/user-not-found"===(null==Ad?void 0:Ad.code)&&Da(r,"user-mismatch"),Ad}}(n,new Ul(e),e.bypassAuthState)}async function Bl(e){const{auth:t,user:n}=e;return ja(n,t,"internal-error"),async function(e,t,n=!1){const r=await ac(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Zc._forOperation(e,"link",r)}(n,new Ul(e),e.bypassAuthState)}
|
|
1397
|
+
/**
|
|
1398
|
+
* @license
|
|
1399
|
+
* Copyright 2020 Google LLC
|
|
1400
|
+
*
|
|
1401
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1402
|
+
* you may not use this file except in compliance with the License.
|
|
1403
|
+
* You may obtain a copy of the License at
|
|
1404
|
+
*
|
|
1405
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1406
|
+
*
|
|
1407
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1408
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1409
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1410
|
+
* See the License for the specific language governing permissions and
|
|
1411
|
+
* limitations under the License.
|
|
1412
|
+
*/class zl{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(Ad){this.reject(Ad)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:o,type:s}=e;if(o)return void this.reject(o);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(Ad){this.reject(Ad)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return jl;case"linkViaPopup":case"linkViaRedirect":return Bl;case"reauthViaPopup":case"reauthViaRedirect":return Fl;default:Da(this.auth,"internal-error")}}resolve(e){Ba(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Ba(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}
|
|
1413
|
+
/**
|
|
1414
|
+
* @license
|
|
1415
|
+
* Copyright 2020 Google LLC
|
|
1416
|
+
*
|
|
1417
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1418
|
+
* you may not use this file except in compliance with the License.
|
|
1419
|
+
* You may obtain a copy of the License at
|
|
1420
|
+
*
|
|
1421
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1422
|
+
*
|
|
1423
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1424
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1425
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1426
|
+
* See the License for the specific language governing permissions and
|
|
1427
|
+
* limitations under the License.
|
|
1428
|
+
*/const Hl=new qa(2e3,1e4);class Vl extends zl{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,Vl.currentPopupAction&&Vl.currentPopupAction.cancel(),Vl.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return ja(e,this.auth,"internal-error"),e}async onExecution(){Ba(1===this.filter.length,"Popup operations only handle one event");const e=dl();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(Ma(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(Ma(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Vl.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(Ma(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,Hl.get())};e()}}Vl.currentPopupAction=null;
|
|
1429
|
+
/**
|
|
1430
|
+
* @license
|
|
1431
|
+
* Copyright 2020 Google LLC
|
|
1432
|
+
*
|
|
1433
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1434
|
+
* you may not use this file except in compliance with the License.
|
|
1435
|
+
* You may obtain a copy of the License at
|
|
1436
|
+
*
|
|
1437
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1438
|
+
*
|
|
1439
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1440
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1441
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1442
|
+
* See the License for the specific language governing permissions and
|
|
1443
|
+
* limitations under the License.
|
|
1444
|
+
*/
|
|
1445
|
+
const $l="pendingRedirect",ql=new Map;class Wl extends zl{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=ql.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=function(e){return vc($l,e.config.apiKey,e.name)}(t),r=function(e){return mc(e._redirectPersistence)}(e);if(!(await r._isAvailable()))return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(Ad){e=()=>Promise.reject(Ad)}ql.set(this.auth._key(),e)}return this.bypassAuthState||ql.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function Kl(e,t){ql.set(e._key(),t)}async function Gl(e,t,n=!1){const r=Dc(e),i=
|
|
1446
|
+
/**
|
|
1447
|
+
* @license
|
|
1448
|
+
* Copyright 2021 Google LLC
|
|
1449
|
+
*
|
|
1450
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1451
|
+
* you may not use this file except in compliance with the License.
|
|
1452
|
+
* You may obtain a copy of the License at
|
|
1453
|
+
*
|
|
1454
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1455
|
+
*
|
|
1456
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1457
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1458
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1459
|
+
* See the License for the specific language governing permissions and
|
|
1460
|
+
* limitations under the License.
|
|
1461
|
+
*/
|
|
1462
|
+
function(e,t){return t?mc(t):(ja(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}(r,t),o=new Wl(r,i,n),s=await o.execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}
|
|
1463
|
+
/**
|
|
1464
|
+
* @license
|
|
1465
|
+
* Copyright 2020 Google LLC
|
|
1466
|
+
*
|
|
1467
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1468
|
+
* you may not use this file except in compliance with the License.
|
|
1469
|
+
* You may obtain a copy of the License at
|
|
1470
|
+
*
|
|
1471
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1472
|
+
*
|
|
1473
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1474
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1475
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1476
|
+
* See the License for the specific language governing permissions and
|
|
1477
|
+
* limitations under the License.
|
|
1478
|
+
*/class Jl{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ql(e);default:return!1}}
|
|
1479
|
+
/**
|
|
1480
|
+
* @license
|
|
1481
|
+
* Copyright 2020 Google LLC
|
|
1482
|
+
*
|
|
1483
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1484
|
+
* you may not use this file except in compliance with the License.
|
|
1485
|
+
* You may obtain a copy of the License at
|
|
1486
|
+
*
|
|
1487
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1488
|
+
*
|
|
1489
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1490
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1491
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1492
|
+
* See the License for the specific language governing permissions and
|
|
1493
|
+
* limitations under the License.
|
|
1494
|
+
*/(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!Ql(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(Ma(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Yl(e))}saveEventToCache(e){this.cachedEventUids.add(Yl(e)),this.lastProcessedEventTime=Date.now()}}function Yl(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function Ql({type:e,error:t}){return"unknown"===e&&"auth/no-auth-event"===(null==t?void 0:t.code)}
|
|
1495
|
+
/**
|
|
1496
|
+
* @license
|
|
1497
|
+
* Copyright 2020 Google LLC
|
|
1498
|
+
*
|
|
1499
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1500
|
+
* you may not use this file except in compliance with the License.
|
|
1501
|
+
* You may obtain a copy of the License at
|
|
1502
|
+
*
|
|
1503
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1504
|
+
*
|
|
1505
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1506
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1507
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1508
|
+
* See the License for the specific language governing permissions and
|
|
1509
|
+
* limitations under the License.
|
|
1510
|
+
*/
|
|
1511
|
+
const Xl=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Zl=/^https?/;async function eu(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e,t={}){return Qa(e,"GET","/v1/projects",t)}(e);for(const r of t)try{if(tu(r))return}catch(n){}Da(e,"unauthorized-domain")}function tu(e){const t=za(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!Zl.test(n))return!1;if(Xl.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}
|
|
1512
|
+
/**
|
|
1513
|
+
* @license
|
|
1514
|
+
* Copyright 2020 Google LLC.
|
|
1515
|
+
*
|
|
1516
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1517
|
+
* you may not use this file except in compliance with the License.
|
|
1518
|
+
* You may obtain a copy of the License at
|
|
1519
|
+
*
|
|
1520
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1521
|
+
*
|
|
1522
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1523
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1524
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1525
|
+
* See the License for the specific language governing permissions and
|
|
1526
|
+
* limitations under the License.
|
|
1527
|
+
*/const nu=new qa(3e4,6e4);function ru(){const e=pl().___jsl;if(null==e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}let iu=null;function ou(e){return iu=iu||function(e){return new Promise(((t,n)=>{var r,i,o;function s(){ru(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{ru(),n(Ma(e,"network-request-failed"))},timeout:nu.get()})}if(null===(i=null===(r=pl().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=pl().gapi)||void 0===o?void 0:o.load)){const t=jc("iframefcb");return pl()[t]=()=>{gapi.load?s():n(Ma(e,"network-request-failed"))},Uc(`https://apis.google.com/js/api.js?onload=${t}`).catch((e=>n(e)))}s()}})).catch((e=>{throw iu=null,e}))}(e),iu}
|
|
1528
|
+
/**
|
|
1529
|
+
* @license
|
|
1530
|
+
* Copyright 2020 Google LLC.
|
|
1531
|
+
*
|
|
1532
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1533
|
+
* you may not use this file except in compliance with the License.
|
|
1534
|
+
* You may obtain a copy of the License at
|
|
1535
|
+
*
|
|
1536
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1537
|
+
*
|
|
1538
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1539
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1540
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1541
|
+
* See the License for the specific language governing permissions and
|
|
1542
|
+
* limitations under the License.
|
|
1543
|
+
*/const su=new qa(5e3,15e3),au="__/auth/iframe",cu="emulator/auth/iframe",lu={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},uu=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function du(e){const t=e.config;ja(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?Wa(t,cu):`https://${e.config.authDomain}/${au}`,r={apiKey:t.apiKey,appName:e.name,v:aa},i=uu.get(e.config.apiHost);i&&(r.eid=i);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${gs(r).slice(1)}`}
|
|
1544
|
+
/**
|
|
1545
|
+
* @license
|
|
1546
|
+
* Copyright 2020 Google LLC.
|
|
1547
|
+
*
|
|
1548
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1549
|
+
* you may not use this file except in compliance with the License.
|
|
1550
|
+
* You may obtain a copy of the License at
|
|
1551
|
+
*
|
|
1552
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1553
|
+
*
|
|
1554
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1555
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1556
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1557
|
+
* See the License for the specific language governing permissions and
|
|
1558
|
+
* limitations under the License.
|
|
1559
|
+
*/
|
|
1560
|
+
const hu={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class pu{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(Ad){}}}function fu(e,t,n,r=500,i=600){const o=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const c=Object.assign(Object.assign({},hu),{width:r.toString(),height:i.toString(),top:o,left:s}),l=us().toLowerCase();n&&(a=kc(l)?"_blank":n),bc(l)&&(t=t||"http://localhost",c.scrollbars="yes");const u=Object.entries(c).reduce(((e,[t,n])=>`${e}${t}=${n},`),"");if(function(e=us()){var t;return Rc(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(l)&&"_self"!==a)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}
|
|
1561
|
+
/**
|
|
1562
|
+
* @license
|
|
1563
|
+
* Copyright 2021 Google LLC
|
|
1564
|
+
*
|
|
1565
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1566
|
+
* you may not use this file except in compliance with the License.
|
|
1567
|
+
* You may obtain a copy of the License at
|
|
1568
|
+
*
|
|
1569
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1570
|
+
*
|
|
1571
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1572
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1573
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1574
|
+
* See the License for the specific language governing permissions and
|
|
1575
|
+
* limitations under the License.
|
|
1576
|
+
*/(t||"",a),new pu(null);const d=window.open(t||"",a,u);ja(d,e,"popup-blocked");try{d.focus()}catch(Ad){}return new pu(d)}const mu="__/auth/handler",gu="emulator/auth/handler",_u=encodeURIComponent("fac");async function vu(e,t,n,r,i,o){ja(e.config.authDomain,e,"auth-domain-config-required"),ja(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:aa,eventId:i};if(t instanceof Kc){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(o||{}))s[e]=t}if(t instanceof Gc){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(s.scopes=e.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const u of Object.keys(a))void 0===a[u]&&delete a[u];const c=await e._getAppCheckToken(),l=c?`#${_u}=${encodeURIComponent(c)}`:"";return`${function({config:e}){if(!e.emulator)return`https://${e.authDomain}/${mu}`;return Wa(e,gu)}
|
|
1577
|
+
/**
|
|
1578
|
+
* @license
|
|
1579
|
+
* Copyright 2020 Google LLC
|
|
1580
|
+
*
|
|
1581
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1582
|
+
* you may not use this file except in compliance with the License.
|
|
1583
|
+
* You may obtain a copy of the License at
|
|
1584
|
+
*
|
|
1585
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1586
|
+
*
|
|
1587
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1588
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1589
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1590
|
+
* See the License for the specific language governing permissions and
|
|
1591
|
+
* limitations under the License.
|
|
1592
|
+
*/(e)}?${gs(a).slice(1)}${l}`}const yu="webStorageSupport";const wu=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=ll,this._completeRedirectFn=Gl,this._overrideRedirectResult=Kl}async _openPopup(e,t,n,r){var i;Ba(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return fu(e,await vu(e,t,n,za(),r),dl())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){pl().location.href=e}(await vu(e,t,n,za(),r)),new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(Ba(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await async function(e){const t=await ou(e),n=pl().gapi;return ja(n,e,"internal-error"),t.open({where:document.body,url:du(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:lu,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=Ma(e,"network-request-failed"),o=pl().setTimeout((()=>{r(i)}),su.get());function s(){pl().clearTimeout(o),n(t)}t.ping(s).then(s,(()=>{r(i)}))}))))}(e),n=new Jl(e);return t.register("authEvent",(t=>{ja(null==t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(yu,{type:yu},(n=>{var r;const i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r[yu];void 0!==i&&t(!!i),Da(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=eu(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Ac()||Ec()||Rc()}};var bu="@firebase/auth",Eu="1.3.2";
|
|
1593
|
+
/**
|
|
1594
|
+
* @license
|
|
1595
|
+
* Copyright 2020 Google LLC
|
|
1596
|
+
*
|
|
1597
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1598
|
+
* you may not use this file except in compliance with the License.
|
|
1599
|
+
* You may obtain a copy of the License at
|
|
1600
|
+
*
|
|
1601
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1602
|
+
*
|
|
1603
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1604
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1605
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1606
|
+
* See the License for the specific language governing permissions and
|
|
1607
|
+
* limitations under the License.
|
|
1608
|
+
*/
|
|
1609
|
+
class ku{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){ja(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
|
|
1610
|
+
/**
|
|
1611
|
+
* @license
|
|
1612
|
+
* Copyright 2020 Google LLC
|
|
1613
|
+
*
|
|
1614
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1615
|
+
* you may not use this file except in compliance with the License.
|
|
1616
|
+
* You may obtain a copy of the License at
|
|
1617
|
+
*
|
|
1618
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1619
|
+
*
|
|
1620
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1621
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1622
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1623
|
+
* See the License for the specific language governing permissions and
|
|
1624
|
+
* limitations under the License.
|
|
1625
|
+
*/
|
|
1626
|
+
/**
|
|
1627
|
+
* @license
|
|
1628
|
+
* Copyright 2021 Google LLC
|
|
1629
|
+
*
|
|
1630
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1631
|
+
* you may not use this file except in compliance with the License.
|
|
1632
|
+
* You may obtain a copy of the License at
|
|
1633
|
+
*
|
|
1634
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1635
|
+
*
|
|
1636
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1637
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1638
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1639
|
+
* See the License for the specific language governing permissions and
|
|
1640
|
+
* limitations under the License.
|
|
1641
|
+
*/
|
|
1642
|
+
const Iu=cs("authIdTokenMaxAge")||300;let Tu=null;function Cu(e=function(e=Xs){const t=ea.get(e);if(!t&&e===Xs&&as())return ca();if(!t)throw oa.create("no-app",{appName:e});return t}()){const t=ia(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=ia(e,"auth");if(n.isInitialized()){const e=n.getImmediate();if(fs(n.getOptions(),null!=t?t:{}))return e;Da(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:wu,persistence:[Il,al,ll]}),r=cs("authTokenSyncURL");if(r){const e=(i=r,async e=>{const t=e&&await e.getIdTokenResult(),n=t&&((new Date).getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>Iu)return;const r=null==t?void 0:t.token;Tu!==r&&(Tu=r,await fetch(i,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))});!function(e,t,n){ys(e).beforeAuthStateChanged(t,n)}(n,e,(()=>e(n.currentUser))),function(e,t,n,r){ys(e).onIdTokenChanged(t,n,r)}(n,(t=>e(t)))}var i;const o=(s="auth",null===(c=null===(a=ss())||void 0===a?void 0:a.emulatorHosts)||void 0===c?void 0:c[s]);var s,a,c;return o&&Fc(n,`http://${o}`),n}var Su;Su="Browser",ra(new ws("auth",((e,{options:t})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:s}=n.options;ja(o&&!o.includes(":"),"invalid-api-key",{appName:n.name});const a={apiKey:o,authDomain:s,clientPlatform:Su,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Pc(Su)},c=new Lc(n,r,i,a);return function(e,t){const n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(mc);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(c,t),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{e.getProvider("auth-internal").initialize()}))),ra(new ws("auth-internal",(e=>{const t=Dc(e.getProvider("auth").getImmediate());return new ku(t)}),"PRIVATE").setInstantiationMode("EXPLICIT")),la(bu,Eu,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(Su)),la(bu,Eu,"esm2017");var Ru=(e=>(e.INVALID_PHONE_NUMBER="Mobile number is not a valid Australian mobile number",e.INVALID_RECAPTCHA="reCAPTCHA check failed",e.INVALID_ACCOUNT="User account does not exist",e.INVALID_OTP="Verification failed. Please try again.",e))(Ru||{});
|
|
1643
|
+
/**
|
|
1644
|
+
* @license
|
|
1645
|
+
* Copyright 2020 Google LLC
|
|
1646
|
+
*
|
|
1647
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1648
|
+
* you may not use this file except in compliance with the License.
|
|
1649
|
+
* You may obtain a copy of the License at
|
|
1650
|
+
*
|
|
1651
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1652
|
+
*
|
|
1653
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1654
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1655
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1656
|
+
* See the License for the specific language governing permissions and
|
|
1657
|
+
* limitations under the License.
|
|
1658
|
+
*/
|
|
1659
|
+
la("firebase","10.5.2","app");let Ou=null,Au=null;const Pu=()=>{if(!Ou){if(!Au)throw"App hasn't been initialized yet. Avoid use getAuth() when not inizialized.";const e=ca(Au);Ou=Cu(e),Ou.setPersistence(_c)}return Ou},Nu=e=>{switch(e.code){case Ca:return Ru.INVALID_RECAPTCHA;case Oa:case Pa:return Ru.INVALID_PHONE_NUMBER;case Na:return Ru.INVALID_ACCOUNT;case Ra:case Sa:case Aa:return Ru.INVALID_OTP;default:throw e.message}},xu=()=>{const[e,t]=ge({state:"idle"}),n=we(null),r=we(""),i=we("");return{authState:e,init:e=>{n.current||(n.current=new Ll(Pu(),e,{size:"invisible"}))},sendOtp:async e=>{if(!n.current)throw Error("[Sign in]: RecaptchaVerifier has not been initialized yet, please call init()");i.current=e,t({state:"sending"});try{const i=new Ml(Pu()),o=await i.verifyPhoneNumber(e,n.current);return r.current=o,t({state:"sent",phoneNumber:e}),!0}catch(Ad){return t({state:"error",occuredWhen:"sending",error:Nu(Ad)}),!1}},verifyOtp:async e=>{if(!r.current)throw Error("[Sign in]: Please verify phone number first and then verify OTP.");t({state:"verifying"});try{const n=Ml.credential(r.current,e);return await async function(e,t){return rl(Dc(e),t)}(Pu(),n),t({state:"verified"}),!0}catch(Ad){return t({state:"error",occuredWhen:"verifying",error:Nu(Ad)}),!1}},resendOtp:async()=>{if(!i.current||!n.current)throw Error("[Sign in]: Please verify phone number first and then resend OTP.");t({state:"resending"});try{const e=new Ml(Pu()),o=await e.verifyPhoneNumber(i.current,n.current);return r.current=o,t({state:"sent",phoneNumber:i.current}),!0}catch(Ad){return t({state:"error",occuredWhen:"resending",error:Nu(Ad)}),!1}}}},Lu=ne({authState:{state:"idle"},init:()=>{},sendOtp:async()=>!0,resendOtp:async()=>!0,verifyOtp:async()=>!0}),Du=({children:e})=>{const t=xu();return ui(Lu.Provider,{value:t,children:e})},Mu=()=>Ie(Lu),Uu=f("div")`
|
|
1660
|
+
${()=>({height:"1.5rem",width:"1.5rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"currentColor",borderLeftColor:"transparent",borderTopColor:"transparent"})}
|
|
1661
|
+
`,ju=f("button")`
|
|
1662
|
+
${()=>({display:"inline-flex",height:"1rem",alignItems:"center",justifyContent:"center",gap:"1rem",borderRadius:"0.375rem",borderWidth:"0px",paddingLeft:"0.5rem",paddingRight:"0.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(15 77 196 / var(--tw-text-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"}})}
|
|
1663
|
+
|
|
1664
|
+
& > .span {
|
|
1665
|
+
${()=>({height:"1rem",width:"1rem"})}
|
|
1666
|
+
}
|
|
1667
|
+
`,Fu=f("button")`
|
|
1668
|
+
${()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"1rem",borderRadius:"0.375rem",borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgb(46 102 247 / var(--tw-bg-opacity))",paddingLeft:"0.5rem",paddingRight:"0.5rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(225 241 255 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(25 44 84 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px"}})}
|
|
1669
|
+
|
|
1670
|
+
height: 48px;
|
|
1671
|
+
pointer-events: all !important;
|
|
1672
|
+
|
|
1673
|
+
&:disabled {
|
|
1674
|
+
${()=>({"--tw-bg-opacity":"1",backgroundColor:"rgb(240 242 245 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(166 172 177 / var(--tw-text-opacity))"})}
|
|
1675
|
+
cursor: not-allowed;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
&[data-loading='true'] {
|
|
1679
|
+
${()=>({borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgb(46 102 247 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"})}
|
|
1680
|
+
cursor: not-allowed;
|
|
1681
|
+
}
|
|
1682
|
+
`,Bu=({onClick:e,children:t})=>{const[n,r]=ge(!1);return ui(ju,{onClick:async()=>{r(!0),await e().finally((()=>{r(!1)}))},children:[n&&ui(Uu,{className:"span"}),t]})},zu=f("img")`
|
|
1683
|
+
${()=>({marginBottom:"3rem",alignSelf:"center"})}
|
|
1684
|
+
min-width: 150px;
|
|
1685
|
+
max-width: 200px;
|
|
1686
|
+
`,Hu=f("div")`
|
|
1687
|
+
${()=>({marginBottom:"0.75rem",fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600"})}
|
|
1688
|
+
`,Vu=f("div")`
|
|
1689
|
+
${()=>({marginBottom:"1rem"})}
|
|
1690
|
+
`,$u=f("input")`
|
|
1691
|
+
${()=>({maxHeight:"3.5rem",borderRadius:"0.375rem",borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgb(248 249 250 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem"})}
|
|
1692
|
+
height: 48px;
|
|
1693
|
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s !important;
|
|
1694
|
+
`,qu=f("div")`
|
|
1695
|
+
${()=>({marginBottom:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600"})}
|
|
1696
|
+
`,Wu=f("div")`
|
|
1697
|
+
${()=>({display:"flex",alignItems:"center",justifyContent:"space-between"})}
|
|
1698
|
+
`,Ku=f("input")`
|
|
1699
|
+
${()=>({marginLeft:"0px",marginRight:"0px",marginTop:"0px",marginBottom:"0px",borderRadius:"0.375rem",borderWidth:"0px","--tw-bg-opacity":"1",backgroundColor:"rgb(248 249 250 / var(--tw-bg-opacity))",fontWeight:"600",caretColor:"transparent","& *::selection":{backgroundColor:"transparent"},"::selection":{backgroundColor:"transparent"}})}
|
|
1700
|
+
|
|
1701
|
+
width: 48px;
|
|
1702
|
+
height: 48px;
|
|
1703
|
+
line-height: 48px;
|
|
1704
|
+
text-align: center;
|
|
1705
|
+
`,Gu=f("p")`
|
|
1706
|
+
${()=>({height:"2rem","--tw-text-opacity":"1",color:"rgb(213 39 18 / var(--tw-text-opacity))"})}
|
|
1707
|
+
`,Ju=f("div")`
|
|
1708
|
+
${()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"3rem"})}
|
|
1709
|
+
|
|
1710
|
+
& > .spin {
|
|
1711
|
+
${()=>({height:"5rem",width:"5rem",borderWidth:"4px","--tw-text-opacity":"1",color:"rgb(46 102 247 / var(--tw-text-opacity))"})}
|
|
1712
|
+
}
|
|
1713
|
+
`,Yu=({onClick:e,disabled:t,children:n})=>{const r=we(!0),[i,o]=ge(!1);return ve((()=>()=>{r.current=!1}),[]),ui(Fu,{onClick:()=>{o(!0),e().finally((()=>{r.current&&o(!1)}))},disabled:t,"data-loading":i,children:[i&&ui(Uu,{}),n]})},Qu=/\D/g,Xu=({onChangeText:e})=>{const t=ke((e=>{var t;(null==(t=e.key)?void 0:t.replace(Qu,""))||e.preventDefault()}),[]);return ui(Ku,{type:"text",maxLength:1,onKeyDown:t,onChange:t=>e(t.currentTarget.value),onCopy:e=>e.preventDefault(),onPaste:e=>e.preventDefault(),onDrag:e=>e.preventDefault(),onDrop:e=>e.preventDefault(),onFocus:e=>e.currentTarget&&e.currentTarget.select()})},Zu=({onChangeText:e})=>{const t=we(""),n=we(Array(6).fill(null));ve((()=>{var e;const t=null==(e=n.current[0])?void 0:e.base;null==t||t.focus()}),[]);const r=ke(((r,i)=>{r&&(e=>{var t,r;const i=null==(t=n.current[e+1])?void 0:t.base;if(i)i.focus();else{const t=null==(r=n.current[e])?void 0:r.base;null==t||t.blur()}})(i);const o=t.current,s=o.substring(0,i)+r+o.substring(i+1);t.current=s,e(s)}),[e]);return ui(Wu,{children:Array(6).fill("").map(((e,t)=>ui(Xu,{ref:e=>n.current[t]=e,onChangeText:e=>{r(e,t)}},t)))})},ed=()=>{const{authState:e,resendOtp:t,verifyOtp:n}=Mu(),[r,i]=ge(""),o=Ee((()=>"error"!==e.state||"verifying"!==e.occuredWhen&&"resending"!==e.occuredWhen?void 0:e.error),[e]),s=t,a=ke((async()=>{await n(r)}),[n,r]);return ui(N,{children:[ui(Hu,{children:"Verify your mobile number"}),ui(Vu,{children:"Enter your 6 digit verification code"}),ui(Vu,{children:["Didn't receive a code?"," ",ui(Bu,{onClick:s,children:ui(N,{children:"Resend"})})]}),ui(Zu,{onChangeText:i}),ui(Gu,{children:o}),ui(Yu,{disabled:!r,onClick:a,children:ui(N,{children:"Verify"})})]})},td=["+","Backspace","Delete",...[...Array(10).keys()].map(String)],nd=e=>e.startsWith("+"),rd=e=>"0"===e||"04"===e.substring(0,2),id=()=>{const{authState:e,sendOtp:t}=Mu(),[n,r]=ge(""),[i,o]=ge(""),s=Ee((()=>nd(n)||rd(n)),[n]),a=ke((e=>{td.find((t=>t===e.key))||e.preventDefault()}),[]),c=ke((e=>{const t=(e=>e.replace(/ /g,""))(e.currentTarget.value),n=rd(t)?((e,t)=>{let n=0;return e.replace(/#/g,(()=>t[n++]??"")).trim()})("#### ### ### ### ### ### ###",t):t;r(n)}),[r]),l=ke((async()=>{const e=nd(n)?n:`+61${n}`;await t(e)}),[t,n]);return ve((()=>{"error"===e.state&&"sending"===e.occuredWhen?o(e.error):o("")}),[e]),ve((()=>{o(n&&!s?Ru.INVALID_PHONE_NUMBER:"")}),[n,s]),ui(N,{children:[ui(Hu,{children:"Enter your mobile number"}),ui(Vu,{children:"Connect your workplace to Flare using your personal mobile number"}),ui(qu,{children:"Mobile number"}),ui($u,{type:"tel",autoFocus:!0,placeholder:"0400 000 000","aria-label":"Mobile number",value:n,onInput:c,onKeyDown:a}),ui(Gu,{children:i}),ui(Yu,{onClick:l,disabled:!s,children:ui(N,{children:"Continue"})})]})},od=()=>ui(Ju,{children:[ui(Uu,{className:"spin"}),ui(Vu,{children:"Please wait while we process your information."})]}),sd="INVISIBLE_RECAPTCHA_VERIFIER_ID",ad=()=>{const{authState:e,init:t}=Mu(),[n,r]=ge(0);return ve((()=>{t(sd)}),[t]),ve((()=>{"sent"===e.state?r(1):"verifying"===e.state?r(2):"error"===e.state&&"verifying"===e.occuredWhen&&r(1)}),[e,r]),ui(N,{children:[ui(zu,{src:"https://www.flarehr.com/wp-content/uploads/2022/03/flare-logo.svg",alt:"Flare Logo"}),0===n&&ui(id,{}),1===n&&ui(ed,{}),2===n&&ui(od,{}),ui("div",{id:sd})]})},cd=()=>ui(Du,{children:ui(ad,{})}),ld=f("div")`
|
|
1714
|
+
${()=>({display:"flex",flexDirection:"column",justifyContent:"center",paddingLeft:"3rem",paddingRight:"3rem",paddingTop:"3rem",paddingBottom:"3rem","--tw-text-opacity":"1",color:"rgb(25 44 84 / var(--tw-text-opacity))"})}
|
|
1715
|
+
width: 500px;
|
|
1716
|
+
height: 500px;
|
|
1717
|
+
`,ud=e=>{const{idToken:t}=(()=>{const[e,t]=ge(""),n=Pu().beforeAuthStateChanged((async e=>{t(await(null==e?void 0:e.getIdToken())??"")}));return ve((()=>n),[n]),{idToken:e}})(),[n,r]=ge(0),{apolloAccessToken:i}=e,[o,s]=ge("");yn((async e=>{try{switch(n){case 0:await(async e=>{var t;try{const n=await In(i,e);return s((null==(t=n.linkRequest)?void 0:t.linkRequestId)??""),{isEstablished:n.isEstablished}}catch(Ad){throw`[Link Workplace]: Error when requesting a workplace link: ${Ad}`}})(e).then((e=>{e.isEstablished?r(5):r(1)}));break;case 1:t&&r(2);break;case 2:r(3);break;case 3:await(async(e,n)=>{const{sub:r}=Me(i);try{return await Tn(t,e,r,n)}catch(Ad){throw`[Link Workplace]: Error when trying to establish workplace link: ${Ad}`}})(o,e),r(5);break;case 5:Xo()}}catch(Ad){console.log(Ad),r(4)}}),[n,t]);const a=void 0===n||0==n||3==n;return ui(ld,{children:[a&&ui(di,{isActive:a}),1===n&&ui(cd,{}),4===n&&ui(Qo,{}),5===n&&ui(Go,{})]})},dd=e=>ui("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[ui("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",className:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),ui("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",className:"light"===e.theme?"fill-white":"fill-primary-base"})]}),hd=e=>{const[t,n]=ge(!1);return ui("button",{type:"button",className:`inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto ${e.class} `,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){n(!0);try{await e.onClickPromise()}catch(r){}n(!1)}},children:[ui("div",{className:"relative "+(t?"invisible":""),children:e.children}),t&&ui("div",{className:"absolute animate-spin",children:ui(dd,{theme:"light"})})]})},pd=({className:e,label:t,allowedKeyPattern:n,onChange:r,value:i,...o})=>{const s=ke((e=>{n.test(e.key)||e.preventDefault()}),[n]);return ui(N,{children:[ui("label",{className:"font-medium text-sm text-gray-900 text-left",children:ui("span",{children:t})}),ui("input",{type:"text",className:`p-2 border-0 ring-2 ring-gray-200 focus:outline-none focus-visible:ring-gray-500 text-base font-medium rounded-md shadow-sm w-full ${e}`,value:i,onKeyPress:s,onChange:e=>r(e.currentTarget.value),...o})]})},fd=({className:e,children:t})=>ui("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),md=({className:e,children:t})=>ui("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),gd=e=>{switch(e){case"sign-up-viewed":case"sign-up-completed":case"sign-up-declined":return new Promise((()=>{}))}};var _d=Object.defineProperty,vd=(e,t,n)=>(((e,t,n)=>{t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let yd=new class{constructor(){vd(this,"current",this.detect()),vd(this,"handoffState","pending"),vd(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},wd=(e,t)=>{yd.isServer?ve(e,t):ye(e,t)};function bd(e){let t=we(e);return wd((()=>{t.current=e}),[e]),t}function Ed(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Ed();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function kd(){let[e]=ge(Ed);return ve((()=>()=>e.dispose()),[e]),e}let Id=function(e){let t=bd(e);return bo.useCallback(((...e)=>t.current(...e)),[t])};function Td(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Eo&&Eo.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=ge(yd.isHandoffComplete);return t&&!1===yd.isHandoffComplete&&n(!1),ve((()=>{!0!==t&&n(!0)}),[t]),ve((()=>yd.handoff()),[]),!e&&t}function Cd(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cd),r}let Sd=Symbol();function Rd(...e){let t=we(e);ve((()=>{t.current=e}),[e]);let n=Id((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Sd])))?void 0:n}function Od(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Ad,Pd,Nd=((Pd=Nd||{})[Pd.None=0]="None",Pd[Pd.RenderStrategy=1]="RenderStrategy",Pd[Pd.Static=2]="Static",Pd),xd=((Ad=xd||{})[Ad.Unmount=0]="Unmount",Ad[Ad.Hidden=1]="Hidden",Ad);function Ld({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s}){let a=Md(t,e);if(o)return Dd(a,n,r,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=a;if(e)return Dd(t,n,r,s)}if(1&c){let{unmount:e=!0,...t}=a;return Cd(e?0:1,{0:()=>null,1:()=>Dd({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return Dd(a,n,r,s)}function Dd(e,t={},n,r){let{as:i=n,children:o,refName:s="ref",...a}=Fd(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof o?o(t):o;"className"in a&&a.className&&"function"==typeof a.className&&(a.className=a.className(t));let u={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(u["data-headlessui-state"]=n.join(" "))}if(i===N&&Object.keys(jd(a)).length>0){if(!so(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=l.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Od(null==e?void 0:e.className(...t),a.className):Od(null==e?void 0:e.className,a.className),n=t?{className:t}:{};return co(l,Object.assign({},Md(l.props,jd(Fd(a,["ref"]))),u,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(l.ref,c.ref),n))}return O(i,Object.assign({},Fd(a,["ref"]),i!==N&&c,i!==N&&u),l)}function Md(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Ud(e){var t;return Object.assign(Ci(e),{displayName:null!=(t=e.displayName)?t:e.name})}function jd(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Fd(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Bd=ne(null);Bd.displayName="OpenClosedContext";var zd=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(zd||{});function Hd(){return Ie(Bd)}function Vd({value:e,children:t}){return bo.createElement(Bd.Provider,{value:e},t)}function $d(){let e=we(!1);return wd((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function qd(e,...t){e&&t.length>0&&e.classList.add(...t)}function Wd(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Kd(e,t,n,r){let i=n?"enter":"leave",o=Ed(),s=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");let a=Cd(i,{enter:()=>t.enter,leave:()=>t.leave}),c=Cd(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=Cd(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Wd(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),qd(e,...t.base,...a,...l),o.nextFrame((()=>{Wd(e,...t.base,...a,...l),qd(e,...t.base,...a,...c),function(e,t){let n=Ed();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[o,s]=[r,i].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),a=o+s;if(0!==a){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),a),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(Wd(e,...t.base,...a),qd(e,...t.base,...t.entered),s())))})),o.dispose}function Gd(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Jd=ne(null);Jd.displayName="TransitionContext";var Yd,Qd=((Yd=Qd||{}).Visible="visible",Yd.Hidden="hidden",Yd);let Xd=ne(null);function Zd(e){return"children"in e?Zd(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function eh(e,t){let n=bd(e),r=we([]),i=$d(),o=kd(),s=Id(((e,t=xd.Hidden)=>{let s=r.current.findIndex((({el:t})=>t===e));-1!==s&&(Cd(t,{[xd.Unmount](){r.current.splice(s,1)},[xd.Hidden](){r.current[s].state="hidden"}}),o.microTask((()=>{var e;!Zd(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),a=Id((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,xd.Unmount)})),c=we([]),l=we(Promise.resolve()),u=we({enter:[],leave:[],idle:[]}),d=Id(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?l.current=l.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),h=Id(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return Ee((()=>({children:r,register:a,unregister:s,onStart:d,onStop:h,wait:l,chains:u})),[a,s,r,d,h,u,l])}function th(){}Xd.displayName="NestingContext";let nh=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function rh(e){var t;let n={};for(let r of nh)n[r]=null!=(t=e[r])?t:th;return n}let ih=Nd.RenderStrategy;let oh=Ud((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=we(null),a=Rd(s,t);Td();let c=Hd();if(void 0===n&&null!==c&&(n=(c&zd.Open)===zd.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,u]=ge(n?"visible":"hidden"),d=eh((()=>{u("hidden")})),[h,p]=ge(!0),f=we([n]);wd((()=>{!1!==h&&f.current[f.current.length-1]!==n&&(f.current.push(n),p(!1))}),[f,n]);let m=Ee((()=>({show:n,appear:r,initial:h})),[n,r,h]);ve((()=>{if(n)u("visible");else if(Zd(d)){let e=s.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:i},_=Id((()=>{var t;h&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),v=Id((()=>{var t;h&&p(!1),null==(t=e.beforeLeave)||t.call(e)}));return bo.createElement(Xd.Provider,{value:d},bo.createElement(Jd.Provider,{value:m},Ld({ourProps:{...g,as:N,children:bo.createElement(sh,{ref:a,...g,...o,beforeEnter:_,beforeLeave:v})},theirProps:{},defaultTag:N,features:ih,visible:"visible"===l,name:"Transition"})))})),sh=Ud((function(e,t){var n,r;let{beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a,enter:c,enterFrom:l,enterTo:u,entered:d,leave:h,leaveFrom:p,leaveTo:f,...m}=e,g=we(null),_=Rd(g,t),v=null==(n=m.unmount)||n?xd.Unmount:xd.Hidden,{show:y,appear:w,initial:b}=function(){let e=Ie(Jd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[E,k]=ge(y?"visible":"hidden"),I=function(){let e=Ie(Xd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:T,unregister:C}=I;ve((()=>T(g)),[T,g]),ve((()=>{if(v===xd.Hidden&&g.current)return y&&"visible"!==E?void k("visible"):Cd(E,{hidden:()=>C(g),visible:()=>T(g)})}),[E,g,T,C,y,v]);let S=bd({base:Gd(m.className),enter:Gd(c),enterFrom:Gd(l),enterTo:Gd(u),entered:Gd(d),leave:Gd(h),leaveFrom:Gd(p),leaveTo:Gd(f)}),R=function(e){let t=we(rh(e));return ve((()=>{t.current=rh(e)}),[e]),t}({beforeEnter:i,afterEnter:o,beforeLeave:s,afterLeave:a}),O=Td();ve((()=>{if(O&&"visible"===E&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,E,O]);let A=w&&y&&b,P=!O||b&&!w?"idle":y?"enter":"leave",N=function(e=0){let[t,n]=ge(e),r=$d(),i=ke((e=>{r.current&&n((t=>t|e))}),[t,r]),o=ke((e=>Boolean(t&e)),[t]),s=ke((e=>{r.current&&n((t=>t&~e))}),[n,r]),a=ke((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}(0),x=Id((e=>Cd(e,{enter:()=>{N.addFlag(zd.Opening),R.current.beforeEnter()},leave:()=>{N.addFlag(zd.Closing),R.current.beforeLeave()},idle:()=>{}}))),L=Id((e=>Cd(e,{enter:()=>{N.removeFlag(zd.Opening),R.current.afterEnter()},leave:()=>{N.removeFlag(zd.Closing),R.current.afterLeave()},idle:()=>{}}))),D=eh((()=>{k("hidden"),C(g)}),I);!function({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:o}){let s=$d(),a=kd(),c=bd(n);wd((()=>{e&&(c.current="enter")}),[e]),wd((()=>{let e=Ed();a.add(e.dispose);let n=t.current;if(n&&"idle"!==c.current&&s.current)return e.dispose(),i.current(c.current),e.add(Kd(n,r.current,"enter"===c.current,(()=>{e.dispose(),o.current(c.current)}))),e.dispose}),[n])}({immediate:A,container:g,classes:S,direction:P,onStart:bd((e=>{D.onStart(g,e,x)})),onStop:bd((e=>{D.onStop(g,e,L),"leave"===e&&!Zd(D)&&(k("hidden"),C(g))}))});let M=m,U={ref:_};return A?M={...M,className:Od(m.className,...S.current.enter,...S.current.enterFrom)}:(M.className=Od(m.className,null==(r=g.current)?void 0:r.className),""===M.className&&delete M.className),bo.createElement(Xd.Provider,{value:D},bo.createElement(Vd,{value:Cd(E,{visible:zd.Open,hidden:zd.Closed})|N.flags},Ld({ourProps:U,theirProps:M,defaultTag:"div",features:ih,visible:"visible"===E,name:"Transition.Child"})))})),ah=Ud((function(e,t){let n=null!==Ie(Jd),r=null!==Hd();return bo.createElement(bo.Fragment,null,!n&&r?bo.createElement(oh,{ref:t,...e}):bo.createElement(sh,{ref:t,...e}))})),ch=Object.assign(oh,{Child:ah,Root:oh});const lh=({children:e})=>{const t=bo.Children.toArray(e),n=t.find((e=>e.type===uh)),r=t.find((e=>e.type===dh));return ui(ch,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",class:"opacity-0",children:ui("div",{className:"my-20 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[ui(ch,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",class:"-translate-y-6",children:n&&ui("div",{className:"flex items-center h-full",children:n})}),ui(ch,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",class:"opacity-0 -translate-y-6",children:r&&ui("div",{className:"flex items-center h-full",children:r})})]})})},uh=({children:e})=>ui(N,{children:e}),dh=({children:e})=>ui(N,{children:e});lh.Top=uh,lh.Bottom=dh;const hh=/^04\d{1,14}/,ph=/^\+[1-9]\d{1,14}/,fh=e=>ph.test(e),mh=()=>{const[e,t]=ge(""),n=Ee((()=>e.replace(/ /g,"")),[e]);return{setPhoneNumber:t,phoneNumber:{valid:Ee((()=>{return fh(n)||(e=n,hh.test(e));var e}),[n]),formatted:Ee((()=>fh(n)?n:`+61${n.replace(/^0+/,"")}`),[n]),masked:Ee((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(n)),[n])}}},gh=({onSubmit:e,onDecline:t})=>{const{trace:n}={trace:gd},[r,i]=ge(""),{setPhoneNumber:o,phoneNumber:s}=mh();ve((()=>{n("sign-up-viewed")}),[n]);const a=ke((()=>(i(""),e(s).then((()=>n("sign-up-completed"))).catch(i))),[s,e,n]),c=ke((()=>n("sign-up-declined").then(t)),[t,n]);return ui(lh,{children:[ui(lh.Top,{children:ui("div",{className:"flex flex-col gap-5",children:[ui(fd,{children:"Create your Flare Benefits account"}),ui(md,{children:"Confirm your mobile number below to create your Flare Benefits account"})]})}),ui(lh.Bottom,{children:ui("div",{className:"mt-5 md:w-[300px] text-left",children:[ui(pd,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full",label:"Australian Mobile Number",value:s.masked,onChange:o}),r&&ui("span",{className:"text-xs text-rose-500",children:r}),ui("div",{className:"mt-5 font-medium text-sm text-gray-900",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",ui("a",{className:"text-primary-base",href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",ui("a",{className:"text-primary-base",href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]}),ui(hd,{class:"mt-5 md:w-full text-white",disabled:!s.valid,onClickPromise:a,children:"Create account"}),ui(hd,{class:"mt-5 md:w-full bg-white hover:bg-gray-100 focus:ring-gray-200 border-0 shadow-none text-gray-700 border-gray-300",onClickPromise:c,children:"No thanks"})]})})]})},_h=({onContinue:e})=>ui(lh,{children:[ui(lh.Top,{children:ui("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:ui("/assets/check-b48de75e.svg",{className:"h-7 w-7"})})}),ui(lh.Bottom,{children:ui("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[ui(fd,{children:"You now have access to Flare Benefits"}),ui(md,{children:"With your benefits account, you now have access to a range of exclusive benefits through your workplace."}),ui(hd,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),vh=({className:e,onClick:t,...n})=>{const[r,i]=ge(!1);return ui("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:ke((()=>{if(!r)return i(!0),t().finally((()=>{i(!1)}))}),[r,t]),...n,children:[ui("div",{className:"relative "+(r?"invisible":""),children:n.children}),r&&ui("div",{className:"absolute animate-spin",children:ui(dd,{theme:"primary"})})]})},yh=({children:e,...t})=>ui("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),wh=({open:e})=>ui(yh,{open:e,children:ui("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[ui("span",{className:"animate-spin",children:ui(dd,{size:"lg"})}),ui(fd,{children:"Creating your account"}),ui("div",{children:[ui(md,{children:"This can take up to 30 seconds."}),ui(md,{children:"Please don't navigate away or refresh your browser."})]})]})}),bh=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:i,setOtp:o}=(()=>{const[e,t]=ge("");return{otp:{valid:Ee((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[s,a]=ge(!1),[c,l]=ge(""),{countdown:u,restart:d}=(e=>{const[t,n]=ge(e),r=we(),i=ke((()=>{clearInterval(r.current)}),[]);return ve((()=>i),[i]),{countdown:t,restart:ke((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);ve(d,[d]);const h=ke((()=>(a(!0),l(""),t(i.code).catch(l).finally((()=>{a(!1)})))),[t,i.code]),p=ke((()=>(l(""),n().then(d).catch(l))),[n,d]);return ui(N,{children:[ui(wh,{open:s}),ui(lh,{children:[ui(lh.Top,{children:ui("div",{className:"flex flex-col gap-5",children:[ui(fd,{children:"Verify your mobile number"}),ui(md,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),ui(lh.Bottom,{children:ui("div",{className:"mt-5 md:w-[300px] text-left",children:[ui(pd,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full",label:"Enter your verification code",onChange:o}),c&&ui("span",{className:"text-xs text-rose-500",children:c}),ui("p",{className:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",ui(vh,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:p,children:"Resend SMS"}),0!==u&&ui(N,{children:["in ",u," secs"]})]}),ui(hd,{class:"mt-5 md:w-full text-white",disabled:!i.valid,onClickPromise:h,children:"Continue"}),ui(hd,{class:"mt-5 md:w-full bg-white hover:bg-gray-100 focus:ring-gray-200 border-0 shadow-none text-gray-700 border-gray-300",onClickPromise:async()=>{r()},children:ui("span",{className:"flex gap-3",children:[ui("img",{src:"/assets/left-arrow-38f55b24.svg"}),"Back"]})})]})})]})]})},Eh=({onSignUp:e,onVerify:t,onResendOtp:n,onSuccess:r,onDecline:i})=>{const[o,s]=ge(""),{step:a,goBack:c,goNext:l}=(e=>{const[t,n]=ge(1),r=ke((()=>{const e=t-1;e>=1&&n(e)}),[t]),i=ke((()=>{const r=t+1;r<=e&&n(r)}),[t,e]);return{step:t,goBack:r,goNext:i}})(3),u=ke((t=>e(t.formatted).then((()=>{s(t.masked),l()}))),[l,e]),d=ke((e=>t(e).then((()=>{r()}))),[t,r]);return ui(N,{children:[1===a&&ui(gh,{onSubmit:u,onDecline:i}),2===a&&ui(bh,{phoneNumber:o,onVerify:d,onResendOtp:n,onGoBack:c}),3===a&&ui(_h,{onContinue:r})]})},kh=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.error)&&window.location.reload(),e};let Ih;const Th=()=>Ih;var Ch=(e=>(e.Auth_AccountDisabled="Sorry, your account has been deactivated. Please contact Flare if there are any issues.",e.Auth_AccountLocked="Sorry, your account is currently locked due to too many attempts. Please try again later.",e.Auth_Unregistered="Sorry, we are currently experiencing some issues. Please try again later.",e.Auth_InvalidVerificationCode="Your one time passcode doesn't look right. Please try again with a new one time passcode.",e.Auth_SessionExpired="Sorry, looks like your session has expired. Please try again.",e.Validation_InvalidPhoneNumber="Please enter a valid Australian mobile number beginning with 04.",e))(Ch||{});const Sh=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Ch[null==n?void 0:n.error]??"Sorry, we are currently experiencing some issues. Please try again later."},Rh=({apolloAccessToken:e})=>{const[t,n]=ge("Loading"),{signUp:r,verifyOtp:i,resendOtp:o}={signUp:async e=>{await Th().post("auth/signUp",{mobileNumber:e}).catch(Sh)},verifyOtp:async e=>{await Th().post("auth/verify",{otp:e}).catch(Sh)},resendOtp:async()=>{await Th().post("auth/resend").catch(Sh)}},s=()=>{n("Linked"),Xo()};return yn((async t=>{n("Loading");try{const r=await In(e,t);n(r.isEstablished?"Linked":"Unlinked")}catch(Ad){n("Error")}}),[]),ui(N,{children:["Loading"===t&&ui(di,{isActive:!0}),"Linked"===t&&ui(Go,{}),"Unlinked"===t&&ui("div",{className:"font-inter",children:[ui("style",{children:".pointer-events-none{pointer-events:none!important}.invisible{visibility:hidden!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.right-0{right:0!important}.top-0{top:0!important}.z-50{z-index:50!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-20{margin-top:5rem!important;margin-bottom:5rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mb-1{margin-bottom:.25rem!important}.ml-3{margin-left:.75rem!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-20{margin-top:5rem!important}.mt-5{margin-top:1.25rem!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.h-10{height:2.5rem!important}.h-16{height:4rem!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-7{height:1.75rem!important}.h-\\[1\\.25rem\\]{height:1.25rem!important}.h-\\[1\\.5rem\\]{height:1.5rem!important}.h-full{height:100%!important}.w-10{width:2.5rem!important}.w-16{width:4rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-7{width:1.75rem!important}.w-\\[1\\.25rem\\]{width:1.25rem!important}.w-\\[2\\.75rem\\]{width:2.75rem!important}.w-full{width:100%!important}.max-w-\\[40rem\\]{max-width:40rem!important}.max-w-\\[59\\.5rem\\]{max-width:59.5rem!important}.shrink-0{flex-shrink:0!important}.-translate-y-6{--tw-translate-y: -1.5rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-x-0{--tw-translate-x: 0px !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-x-\\[1\\.25rem\\]{--tw-translate-x: 1.25rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-y-0{--tw-translate-y: 0px !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-3{gap:.75rem!important}.gap-5{gap:1.25rem!important}.rounded-full{border-radius:9999px!important}.rounded-md{border-radius:.375rem!important}.border{border-width:1px!important}.border-0{border-width:0px!important}.border-2{border-width:2px!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity))!important}.border-transparent{border-color:transparent!important}.bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity))!important}.bg-transparent{background-color:transparent!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.fill-gray-200{fill:#e5e7eb!important}.fill-white{fill:#fff!important}.p-2{padding:.5rem!important}.px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-bold{font-weight:700!important}.font-medium{font-weight:500!important}.leading-5{line-height:1.25rem!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity))!important}.text-rose-500{--tw-text-opacity: 1 !important;color:rgb(244 63 94 / var(--tw-text-opacity))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-gray-200{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity)) !important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.delay-300{transition-delay:.3s!important}.duration-200{transition-duration:.2s!important}.duration-700{transition-duration:.7s!important}.duration-\\[600ms\\]{transition-duration:.6s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity)) !important}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px !important}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity)) !important}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity)) !important}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75 !important}.disabled\\:cursor-text:disabled{cursor:text!important}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity))!important}.disabled\\:px-0:disabled{padding-left:0!important;padding-right:0!important}.disabled\\:text-gray-300:disabled{--tw-text-opacity: 1 !important;color:rgb(209 213 219 / var(--tw-text-opacity))!important}.disabled\\:text-gray-600:disabled{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity))!important}.disabled\\:opacity-75:disabled{opacity:.75!important}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent!important}@media (min-width: 768px){.md\\:grid{display:grid!important}.md\\:w-\\[240px\\]{width:240px!important}.md\\:w-\\[300px\\]{width:300px!important}.md\\:w-auto{width:auto!important}.md\\:w-full{width:100%!important}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.md\\:text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.md\\:transition-none{transition-property:none!important}}\n".toString()}),ui(Eh,{onSignUp:r,onVerify:i,onResendOtp:o,onSuccess:s,onDecline:s})]}),"Error"===t&&ui(Qo,{})]})},Oh=f("div")([{display:"flex",alignItems:"center",justifyContent:"center"}]),Ah=async(e,t)=>{await(async e=>{if(En)return En;const t=e.replace(/\/?$/,"");return En=vn.create({baseURL:`${t}`}),((e,{onRequest:t,onRequestError:n,onResponse:r,onResponseError:i})=>{e.interceptors.request.use((async e=>(t&&await t(e),e)),(async e=>{throw n&&await n(e),e})),e.interceptors.response.use((async e=>(r&&await r(e),e)),(async e=>{throw i&&await i(e),e}))})(En,{onRequestError:wn,onResponseError:bn}),En})(e.backendUrl);const{googleCloud:n,identityProvider:r}=await(async(e,t)=>{if(!En)throw new Error("Api has not been initialized");return En.get("customer-profile/backend/v1.0/workplace-link/config",kn(e,t)).then((e=>e.data))})(e.apolloAccessToken,t);Au=n;const i=e.backendUrl;var o,s;return o=i,s=e.apolloAccessToken,o=o.replace(/\/?$/,""),Ih=vn.create({baseURL:`${o}/benefits-onboarding/backend`,headers:{Authorization:`Bearer ${s}`}}),Ih.interceptors.response.use((e=>e),kh),{identityProvider:r}};!function(r,i,o,s){c.p=i,e=r,t=o,n=s}(O);function Ph(){return(Ph=Object.assign?Object.assign.bind():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}).apply(this,arguments)}var Nh=["context","children"];function xh(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,Nh);return te(t,n)}function Lh(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=O(xh,Ph({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],i={},o=0,s=t.attributes,a=t.childNodes;for(o=s.length;o--;)"slot"!==s[o].name&&(i[s[o].name]=s[o].value,i[Dh(s[o].name)]=s[o].value);for(o=a.length;o--;){var c=e(a[o],null),l=a[o].slot;l?i[l]=O(jh,{name:l},c):r[o]=c}var u=n?O(jh,null,r):r;return O(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ee:Z)(this._vdom,this._root)}function Dh(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Mh(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Dh(e)]=n,this._vdom=te(this._vdom,r),Z(this._vdom,this._root)}}function Uh(){Z(this._vdom=null,this._root)}function jh(e,t){var n=this;return O("slot",Ph({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}!function(e,t,n,r){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Lh,i.prototype.attributeChangedCallback=Mh,i.prototype.disconnectedCallback=Uh,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach((function(e){Object.defineProperty(i.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,i)}((e=>{const t={backendUrl:e["backend-url"],apolloAccessToken:e["access-token"]},n=we(""),[r,i]=ge("Initializing");return yn((async e=>{if(t.backendUrl)try{const r=await Ah(t,e);n.current=r.identityProvider,i("Initialized")}catch{i("Error")}}),[t.backendUrl]),ui(N,{children:["Initializing"===r&&ui(di,{isActive:!0}),"Error"===r&&ui(Qo,{}),"Initialized"===r&&ui("div",{id:"preact_root",children:[ui(oi,{}),ui(Oh,{children:["google"===n.current&&ui(ud,{...t}),"adb2c"===n.current&&ui(Zo,{...t}),"flare-app-identity"===n.current&&ui(Rh,{...t})]})]})]})}),"workplace-link",["backend-url","access-token"],{shadow:!1});
|