1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3950],{3950(Xn,ht,y){y.d(ht,{FirebaseMessagingWeb:()=>Yn});var s=y(467),mt=y(5083),f=y(8742),E=y(1362),g=y(6858),A=y(6749);const je="@firebase/installations",C="0.6.18",Le=`w:${C}`,h=new g.FA("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Ue(e){return e instanceof g.g&&e.code.includes("request-failed")}function O({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function Ve(e){return{token:e.token,requestStatus:2,expiresIn:wt(e.expiresIn),creationTime:Date.now()}}function R(e,t){return D.apply(this,arguments)}function D(){return(D=(0,s.A)(function*(e,t){const i=(yield t.json()).error;return h.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})})).apply(this,arguments)}function He({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function P(e){return M.apply(this,arguments)}function M(){return(M=(0,s.A)(function*(e){const t=yield e();return t.status>=500&&t.status<600?e():t})).apply(this,arguments)}function wt(e){return Number(e.replace("s","000"))}function K(){return(K=(0,s.A)(function*({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const i=O(e),r=He(e),o=t.getImmediate({optional:!0});if(o){const p=yield o.getHeartbeatsHeader();p&&r.append("x-firebase-client",p)}const c={method:"POST",headers:r,body:JSON.stringify({fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:Le})},l=yield P(()=>fetch(i,c));if(l.ok){const p=yield l.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:Ve(p.authToken)}}throw yield R("Create Installation",l)})).apply(this,arguments)}function Be(e){return new Promise(t=>{setTimeout(t,e)})}const xt=/^[cdef][\w-]{21}$/;function Nt(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=function Ct(e){return function Et(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}(e).substr(0,22)}(e);return xt.test(n)?n:""}catch{return""}}function T(e){return`${e.appName}!${e.appId}`}const k=new Map;function Ge(e,t){const n=T(e);Je(n,t),function Dt(e,t){const n=function ze(){return!_&&"BroadcastChannel"in self&&(_=new BroadcastChannel("[Firebase] FID Change"),_.onmessage=e=>{Je(e.data.key,e.data.fid)}),_}();n&&n.postMessage({key:e,fid:t}),function Ye(){0===k.size&&_&&(_.close(),_=null)}()}(n,t)}function Je(e,t){const n=k.get(e);if(n)for(const i of n)i(t)}let _=null;const b="firebase-installations-store";let j=null;function q(){return j||(j=(0,A.P2)("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(b)}})),j}function x(e,t){return L.apply(this,arguments)}function L(){return(L=(0,s.A)(function*(e,t){const n=T(e),r=(yield q()).transaction(b,"readwrite"),o=r.objectStore(b),a=yield o.get(n);return yield o.put(t,n),yield r.done,(!a||a.fid!==t.fid)&&Ge(e,t.fid),t})).apply(this,arguments)}function $(e){return U.apply(this,arguments)}function U(){return(U=(0,s.A)(function*(e){const t=T(e),i=(yield q()).transaction(b,"readwrite");yield i.objectStore(b).delete(t),yield i.done})).apply(this,arguments)}function I(e,t){return V.apply(this,arguments)}function V(){return(V=(0,s.A)(function*(e,t){const n=T(e),r=(yield q()).transaction(b,"readwrite"),o=r.objectStore(b),a=yield o.get(n),c=t(a);return void 0===c?yield o.delete(n):yield o.put(c,n),yield r.done,c&&(!a||a.fid!==c.fid)&&Ge(e,c.fid),c})).apply(this,arguments)}function H(e){return W.apply(this,arguments)}function W(){return W=(0,s.A)(function*(e){let t;const n=yield I(e.appConfig,i=>{const r=function Kt(e){return Qe(e||{fid:Nt(),registrationStatus:0})}(i),o=function Ft(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(h.create("app-offline"))};const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function jt(e,t){return B.apply(this,arguments)}
1(e,n);return{installationEntry:n,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:qt(e)}:{installationEntry:t}}(e,r);return t=o.registrationPromise,o.installationEntry});return""===n.fid?{installationEntry:yield t}:{installationEntry:n,registrationPromise:t}}),W.apply(this,arguments)}function B(){return B=(0,s.A)(function*(e,t){try{const n=yield function St(e,t){return K.apply(this,arguments)}(e,t);return x(e.appConfig,n)}catch(n){throw Ue(n)&&409===n.customData.serverCode?yield $(e.appConfig):yield x(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}),B.apply(this,arguments)}function qt(e){return G.apply(this,arguments)}function G(){return(G=(0,s.A)(function*(e){let t=yield Xe(e.appConfig);for(;1===t.registrationStatus;)yield Be(100),t=yield Xe(e.appConfig);if(0===t.registrationStatus){const{installationEntry:n,registrationPromise:i}=yield H(e);return i||n}return t})).apply(this,arguments)}function Xe(e){return I(e,t=>{if(!t)throw h.create("installation-not-found");return Qe(t)})}function Qe(e){return function Lt(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()}(e)?{fid:e.fid,registrationStatus:0}:e}function J(){return(J=(0,s.A)(function*({appConfig:e,heartbeatServiceProvider:t},n){const i=function Ut(e,{fid:t}){return`${O(e)}/${t}/authTokens:generate`}(e,n),r=function We(e,{refreshToken:t}){const n=He(e);return n.append("Authorization",function It(e){return`FIS_v2 ${e}`}(t)),n}(e,n),o=t.getImmediate({optional:!0});if(o){const p=yield o.getHeartbeatsHeader();p&&r.append("x-firebase-client",p)}const c={method:"POST",headers:r,body:JSON.stringify({installation:{sdkVersion:Le,appId:e.appId}})},l=yield P(()=>fetch(i,c));if(l.ok)return Ve(yield l.json());throw yield R("Generate Auth Token",l)})).apply(this,arguments)}function z(e){return Y.apply(this,arguments)}function Y(){return Y=(0,s.A)(function*(e,t=!1){let n;const i=yield I(e.appConfig,o=>{if(!et(o))throw h.create("not-registered");const a=o.authToken;if(!t&&function Wt(e){return 2===e.requestStatus&&!function Bt(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(a))return o;if(1===a.requestStatus)return n=function Vt(e,t){return X.apply(this,arguments)}(e,t),o;{if(!navigator.onLine)throw h.create("app-offline");const c=function Gt(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(o);return n=function Ht(e,t){return Q.apply(this,arguments)}(e,c),c}});return n?yield n:i.authToken}),Y.apply(this,arguments)}function X(){return(X=(0,s.A)(function*(e,t){let n=yield Ze(e.appConfig);for(;1===n.authToken.requestStatus;)yield Be(100),n=yield Ze(e.appConfig);const i=n.authToken;return 0===i.requestStatus?z(e,t):i})).apply(this,arguments)}function Ze(e){return I(e,t=>{if(!et(t))throw h.create("not-registered");return function Jt(e){return 1===e.requestStatus&&e.requestTime+1e4<Date.now()}(t.authToken)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}function Q(){return Q=(0,s.A)(function*(e,t){try{const n=yield function $t(e,t){return J.apply(this,arguments)}(e,t),i=Object.assign(Object.assign({},t),{authToken:n});return yield x(e.appConfig,i),n}catch(n){if(!Ue(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const i=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});yield x(e.appConfig,i)}else yield $(e.appConfig);throw n}}),Q.apply(this,arguments)}function et(e){return void 0!==e&&2===e.registrationStatus}function Z(){return(Z=(0,s.A)(function*(e){const t=e,{installationEntry:n,registrationPromise:i}=yield H(t);return i?i.catch(console.error):z(t).catch(console.error),n.fid})).apply(this,arguments)}function ee(){return ee=(0,s.A)(function*(e,t=!1){const n=e;return yield function Xt(e){return te.apply(this,arguments)}(n),(yield z(n,t)).token}),ee.apply(this,arguments)}function te(){return(te=(0,s.A)(function*(e){const{registrationPromise:t}=yield H(e);t&&(yield t)})).apply(this,arguments)}function re(e){return h.create("missing-app-config-values",{valueName:e})}const tt="installations",nn=e=>{const t=e.getProvider("app").getImmediate(),n=function en(e){if(!e||!e.options)throw re("App Configuration");if(!e.name)throw re("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw re(n);
1return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:(0,f.j6)(t,"heartbeat"),_delete:()=>Promise.resolve()}},rn=e=>{const t=e.getProvider("app").getImmediate(),n=(0,f.j6)(t,tt).getImmediate();return{getId:()=>function zt(e){return Z.apply(this,arguments)}(n),getToken:r=>function Yt(e){return ee.apply(this,arguments)}(n,r)}};(function on(){(0,f.om)(new E.uA(tt,nn,"PUBLIC")),(0,f.om)(new E.uA("installations-internal",rn,"PRIVATE"))})(),(0,f.KO)(je,C),(0,f.KO)(je,C,"esm2017");const nt="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",it="google.c.a.c_id";var N=function(e){return e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked",e}(N||{});function m(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function fn(e){const n=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(n),r=new Uint8Array(i.length);for(let o=0;o<i.length;++o)r[o]=i.charCodeAt(o);return r}const oe="fcm_token_details_db",ot="fcm_token_object_Store";function se(){return se=(0,s.A)(function*(e){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(o=>o.name).includes(oe))return null;let t=null;return(yield(0,A.P2)(oe,5,{upgrade:(i=(0,s.A)(function*(r,o,a,c){var l;if(o<2||!r.objectStoreNames.contains(ot))return;const p=c.objectStore(ot),w=yield p.index("fcmSenderId").get(e);if(yield p.clear(),w)if(2===o){const u=w;if(!u.auth||!u.p256dh||!u.endpoint)return;t={token:u.fcmToken,createTime:null!==(l=u.createTime)&&void 0!==l?l:Date.now(),subscriptionOptions:{auth:u.auth,p256dh:u.p256dh,endpoint:u.endpoint,swScope:u.swScope,vapidKey:"string"==typeof u.vapidKey?u.vapidKey:m(u.vapidKey)}}}else if(3===o){const u=w;t={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:m(u.auth),p256dh:m(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:m(u.vapidKey)}}}else if(4===o){const u=w;t={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:m(u.auth),p256dh:m(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:m(u.vapidKey)}}}}),function(o,a,c,l){return i.apply(this,arguments)})})).close(),yield(0,A.MR)(oe),yield(0,A.MR)("fcm_vapid_details_db"),yield(0,A.MR)("undefined"),function mn(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?t:null;var i}),se.apply(this,arguments)}const v="firebase-messaging-store";let ae=null;function ue(){return ae||(ae=(0,A.P2)("firebase-messaging-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(v)}})),ae}function st(e){return ce.apply(this,arguments)}function ce(){return ce=(0,s.A)(function*(e){const t=fe(e),i=yield(yield ue()).transaction(v).objectStore(v).get(t);if(i)return i;{const r=yield function hn(e){return se.apply(this,arguments)}(e.appConfig.senderId);if(r)return yield de(e,r),r}}),ce.apply(this,arguments)}function de(e,t){return le.apply(this,arguments)}function le(){return(le=(0,s.A)(function*(e,t){const n=fe(e),r=(yield ue()).transaction(v,"readwrite");return yield r.objectStore(v).put(t,n),yield r.done,t})).apply(this,arguments)}function pe(){return(pe=(0,s.A)(function*(e){const t=fe(e),i=(yield ue()).transaction(v,"readwrite");yield i.objectStore(v).delete(t),yield i.done})).apply(this,arguments)}function fe({appConfig:e}){return e.appId}const d=new g.FA("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invali
1d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function An(e,t){return ge.apply(this,arguments)}function ge(){return(ge=(0,s.A)(function*(e,t){const n=yield _e(e),i=ut(t),r={method:"POST",headers:n,body:JSON.stringify(i)};let o;try{o=yield(yield fetch(ye(e.appConfig),r)).json()}catch(a){throw d.create("token-subscribe-failed",{errorInfo:a?.toString()})}if(o.error)throw d.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw d.create("token-subscribe-no-token");return o.token})).apply(this,arguments)}function he(){return(he=(0,s.A)(function*(e,t){const n=yield _e(e),i=ut(t.subscriptionOptions),r={method:"PATCH",headers:n,body:JSON.stringify(i)};let o;try{o=yield(yield fetch(`${ye(e.appConfig)}/${t.token}`,r)).json()}catch(a){throw d.create("token-update-failed",{errorInfo:a?.toString()})}if(o.error)throw d.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw d.create("token-update-no-token");return o.token})).apply(this,arguments)}function at(e,t){return me.apply(this,arguments)}function me(){return(me=(0,s.A)(function*(e,t){const i={method:"DELETE",headers:yield _e(e)};try{const o=yield(yield fetch(`${ye(e.appConfig)}/${t}`,i)).json();if(o.error)throw d.create("token-unsubscribe-failed",{errorInfo:o.error.message})}catch(r){throw d.create("token-unsubscribe-failed",{errorInfo:r?.toString()})}})).apply(this,arguments)}function ye({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}function _e(e){return be.apply(this,arguments)}function be(){return(be=(0,s.A)(function*({appConfig:e,installations:t}){const n=yield t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})})).apply(this,arguments)}function ut({p256dh:e,auth:t,endpoint:n,vapidKey:i}){const r={web:{endpoint:n,auth:t,p256dh:e}};return i!==nt&&(r.web.applicationPubKey=i),r}function ve(){return ve=(0,s.A)(function*(e){const t=yield function En(e,t){return we.apply(this,arguments)}(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:m(t.getKey("auth")),p256dh:m(t.getKey("p256dh"))},i=yield st(e.firebaseDependencies);if(i){if(function xn(e,t){return t.vapidKey===e.vapidKey&&t.endpoint===e.endpoint&&t.auth===e.auth&&t.p256dh===e.p256dh}(i.subscriptionOptions,n))return Date.now()>=i.createTime+6048e5?function Sn(e,t){return Te.apply(this,arguments)}(e,{token:i.token,createTime:Date.now(),subscriptionOptions:n}):i.token;try{yield at(e.firebaseDependencies,i.token)}catch(r){console.warn(r)}return ct(e.firebaseDependencies,n)}return ct(e.firebaseDependencies,n)}),ve.apply(this,arguments)}function Ae(){return Ae=(0,s.A)(function*(e){const t=yield st(e.firebaseDependencies);t&&(yield at(e.firebaseDependencies,t.token),yield function bn(e){return pe.apply(this,arguments)}(e.firebaseDependencies));const n=yield e.swRegistration.pushManager.getSubscription();return!n||n.unsubscribe()}),Ae.apply(this,arguments)}function Te(){return Te=(0,s.A)(function*(e,t){try{const n=yield function Tn(e,t){return he.apply(this,arguments)}(e.firebaseDependencies,t),i=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return yield de(e.firebaseDependencies,i),n}catch(n){throw n}}),Te.apply(this,arguments)}function ct(e,t){return ke.apply(this,arguments)}function ke(){return(ke=(0,s.A)(function*(e,t){const i={token:yield An(e,t),createTime:Date.now(),subscriptionOptions:t};return yield de(e,i),i.token})).apply(this,arguments)}function we(){return(we=(0,s.A)(function*(e,t){return(yield e.pushManager.getSubscription())||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:fn(t)})}
1)).apply(this,arguments)}function dt(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function Nn(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const i=t.notification.body;i&&(e.notification.body=i);const r=t.notification.image;r&&(e.notification.image=r);const o=t.notification.icon;o&&(e.notification.icon=o)}(t,e),function Cn(e,t){t.data&&(e.data=t.data)}(t,e),function On(e,t){var n,i,r,o,a;if(!(t.fcmOptions||null!==(n=t.notification)&&void 0!==n&&n.click_action))return;e.fcmOptions={};const c=null!==(r=null===(i=t.fcmOptions)||void 0===i?void 0:i.link)&&void 0!==r?r:null===(o=t.notification)||void 0===o?void 0:o.click_action;c&&(e.fcmOptions.link=c);const l=null===(a=t.fcmOptions)||void 0===a?void 0:a.analytics_label;l&&(e.fcmOptions.analyticsLabel=l)}(t,e),t}function Ie(e){return d.create("missing-app-config-values",{valueName:e})}!function Dn(e,t){const n=[];for(let i=0;i<e.length;i++)n.push(e.charAt(i)),i<t.length&&n.push(t.charAt(i));n.join("")}("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Mn{constructor(t,n,i){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const r=function Pn(e){if(!e||!e.options)throw Ie("App Configuration Object");if(!e.name)throw Ie("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const i of t)if(!n[i])throw Ie(i);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}(t);this.firebaseDependencies={app:t,appConfig:r,installations:n,analyticsProvider:i}}_delete(){return Promise.resolve()}}function lt(e){return Se.apply(this,arguments)}function Se(){return Se=(0,s.A)(function*(e){try{e.swRegistration=yield navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{}),yield function Kn(e){return Ee.apply(this,arguments)}(e.swRegistration)}catch(t){throw d.create("failed-service-worker-registration",{browserErrorMessage:t?.message})}}),Se.apply(this,arguments)}function Ee(){return(Ee=(0,s.A)(function*(e){return new Promise((t,n)=>{const i=setTimeout(()=>n(new Error("Service worker not registered after 10000 ms")),1e4),r=e.installing||e.waiting;e.active?(clearTimeout(i),t()):r?r.onstatechange=o=>{var a;"activated"===(null===(a=o.target)||void 0===a?void 0:a.state)&&(r.onstatechange=null,clearTimeout(i),t())}:(clearTimeout(i),n(new Error("No incoming service worker found.")))})})).apply(this,arguments)}function xe(){return(xe=(0,s.A)(function*(e,t){if(!t&&!e.swRegistration&&(yield lt(e)),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw d.create("invalid-sw-registration");e.swRegistration=t}})).apply(this,arguments)}function Ne(){return(Ne=(0,s.A)(function*(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=nt)})).apply(this,arguments)}function pt(e,t){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,s.A)(function*(e,t){if(!navigator)throw d.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw d.create("permission-blocked");return yield function jn(e,t){return Ne.apply(this,arguments)}(e,t?.vapidKey),yield function Fn(e,t){return xe.apply(this,arguments)}(e,t?.serviceWorkerRegistration),function wn(e){return ve.apply(this,arguments)}(e)}),Ce.apply(this,arguments)}function Oe(){return(Oe=(0,s.A)(function*(e,t,n){const i=function Ln(e){switch(e){case N.NOTIFICATION_CLICKED:return"notification_open";case N.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t);(yield e.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:n[it],message_name:n["google.c.a.c_l"],message_time:n["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function Re(){return Re=(0,s.A)(function*(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===N.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(dt(n)):e.onMessageHandler.next(dt(n)));const i=n.data;(function Rn(e){return"object"==typeof e&&!!e&&it in e}
1)(i)&&"1"===i["google.c.a.e"]&&(yield function qn(e,t,n){return Oe.apply(this,arguments)}(e,n.messageType,i))}),Re.apply(this,arguments)}const ft="@firebase/messaging",gt="0.12.22",Un=e=>{const t=new Mn(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>function $n(e,t){return Re.apply(this,arguments)}(t,n)),t},Vn=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:i=>pt(t,i)}};function S(){return De.apply(this,arguments)}function De(){return(De=(0,s.A)(function*(){try{yield(0,g.eX)()}catch{return!1}return typeof window<"u"&&(0,g.zW)()&&(0,g.dM)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}function Pe(){return Pe=(0,s.A)(function*(e){if(!navigator)throw d.create("only-available-in-window");return e.swRegistration||(yield lt(e)),function In(e){return Ae.apply(this,arguments)}(e)}),Pe.apply(this,arguments)}function Me(e=(0,f.Sx)()){return S().then(t=>{if(!t)throw d.create("unsupported-browser")},t=>{throw d.create("indexed-db-unsupported")}),(0,f.j6)((0,g.Ku)(e),"messaging").getImmediate()}function Gn(e,t){return Ke.apply(this,arguments)}function Ke(){return(Ke=(0,s.A)(function*(e,t){return pt(e=(0,g.Ku)(e),t)})).apply(this,arguments)}!function Hn(){(0,f.om)(new E.uA("messaging",Un,"PUBLIC")),(0,f.om)(new E.uA("messaging-internal",Vn,"PRIVATE")),(0,f.KO)(ft,gt),(0,f.KO)(ft,gt,"esm2017")}();let Yn=(()=>{class e extends mt.E_{constructor(){super(),S().then(n=>{n&&function zn(e,t){return function Bn(e,t){if(!navigator)throw d.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}(e=(0,g.Ku)(e),t)}(Me(),r=>this.handleNotificationReceived(r))})}checkPermissions(){var n=this;return(0,s.A)(function*(){return(yield S())?{receive:n.convertNotificationPermissionToPermissionState(Notification.permission)}:{receive:"denied"}})()}requestPermissions(){var n=this;return(0,s.A)(function*(){if(!(yield S()))return{receive:"denied"};const r=yield Notification.requestPermission();return{receive:n.convertNotificationPermissionToPermissionState(r)}})()}isSupported(){return(0,s.A)(function*(){return{isSupported:yield S()}})()}getToken(n){return(0,s.A)(function*(){const i=Me();return{token:yield Gn(i,{vapidKey:n.vapidKey,serviceWorkerRegistration:n.serviceWorkerRegistration})}})()}deleteToken(){return(0,s.A)(function*(){const n=Me();yield function Jn(e){return function Wn(e){return Pe.apply(this,arguments)}(e=(0,g.Ku)(e))}(n)})()}getDeliveredNotifications(){var n=this;return(0,s.A)(function*(){n.throwUnimplementedError()})()}removeDeliveredNotifications(n){var i=this;return(0,s.A)(function*(){i.throwUnimplementedError()})()}removeAllDeliveredNotifications(){var n=this;return(0,s.A)(function*(){n.throwUnimplementedError()})()}subscribeToTopic(n){var i=this;return(0,s.A)(function*(){i.throwUnimplementedError()})()}unsubscribeFromTopic(n){var i=this;return(0,s.A)(function*(){i.throwUnimplementedError()})()}createChannel(n){var i=this;return(0,s.A)(function*(){i.throwUnimplementedError()})()}deleteChannel(n){var i=this;return(0,s.A)(function*(){i.throwUnimplementedError()})()}listChannels(){var n=this;return(0,s.A)(function*(){n.throwUnimplementedError()})()}handleNotificationReceived(n){const r={notification:this.createNotificationResult(n)};this.notifyListeners(e.notificationReceivedEvent,r)}createNotificationResult(n){var i,r,o;return{body:null===(i=n.notification)||void 0===i?void 0:i.body,data:n.data,id:n.messageId,image:null===(r=n.notification)||void 0===r?void 0:r.image,title:null===(o=n.notification)||void 0===o?void 0:o.title}}convertNotificationPermissionToPermissionState(n){let i="prompt";switch(n){case"granted":i="granted";break;case"denied":i="denied"}return i}throwUnimplementedError(){throw this.unimplemented("Not implemented on web.")}}return e.notificationReceivedEvent="notificationReceived",e})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.