1(self.webpackChunkmisbar=self.webpackChunkmisbar||[]).push([["node_modules_firebase_messaging_dist_index_esm_js"],{9353:(Re,z,S)=>{"use strict";S.r(z);var I,G=S(7068),B=S(6034),s=S(7582),V=S(4685),y=S(6676),M="0.4.32",T="w:"+M,A="FIS_v2",Y=((I={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',I["not-registered"]="Firebase Installation is not registered.",I["installation-not-found"]="Firebase Installation not found.",I["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',I["app-offline"]="Could not process request. Application offline.",I["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",I),c=new V.LL("installations","Installations",Y);function p(e){return e instanceof V.ZR&&e.code.includes("request-failed")}function v(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function g(e){return{token:e.token,requestStatus:2,expiresIn:Ge(e.expiresIn),creationTime:Date.now()}}function h(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),[2,c.create("request-failed",{requestName:e,serverCode:(r=n.error).code,serverMessage:r.message,serverStatus:r.status})]}})})}function w(e){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey})}function E(e,t){var n=t.refreshToken,r=w(e);return r.append("Authorization",function(e){return A+" "+e}(n)),r}function Z(e){return(0,s.mG)(this,void 0,void 0,function(){var t;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}})})}function Ge(e){return Number(e.replace("s","000"))}function Ke(e,t){var n=t.fid;return(0,s.mG)(this,void 0,void 0,function(){var r,i,a,u,l;return(0,s.Jh)(this,function(d){switch(d.label){case 0:return r=v(e),i=w(e),a={method:"POST",headers:i,body:JSON.stringify({fid:n,authVersion:A,appId:e.appId,sdkVersion:T})},[4,Z(function(){return fetch(r,a)})];case 1:return(u=d.sent()).ok?[4,u.json()]:[3,3];case 2:return[2,{fid:(l=d.sent()).fid||n,registrationStatus:2,refreshToken:l.refreshToken,authToken:g(l.authToken)}];case 3:return[4,h("Create Installation",u)];case 4:throw d.sent()}})})}function ve(e){return new Promise(function(t){setTimeout(t,e)})}var qe=/^[cdef][\w-]{21}$/;function Le(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var n=function(e){return function(e){return btoa(String.fromCharCode.apply(String,(0,s.ev)([],(0,s.CR)(e)))).replace(/\+/g,"-").replace(/\//g,"_")}(e).substr(0,22)}(e);return qe.test(n)?n:""}catch(r){return""}}function J(e){return e.appName+"!"+e.appId}var q=new Map;function ge(e,t){var n=J(e);me(n,t),function(e,t){var n=be();n&&n.postMessage({key:e,fid:t}),we()}(n,t)}function me(e,t){var n,r,i=q.get(e);if(i)try{for(var o=(0,s.XA)(i),a=o.next();!a.done;a=o.next())(0,a.value)(t)}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var N=null;function be(){return!N&&"BroadcastChannel"in self&&((N=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){me(e.data.key,e.data.fid)}),N}function we(){0===q.size&&N&&(N.close(),N=null)}var e,x="firebase-installations-store",ee=null;function te(){return ee||(ee=(0,y.openDb)("firebase-installations-database",1,function(e){0===e.oldVersion&&e.createObjectStore(x)})),ee}function _(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,i,o,a;return(0,s.Jh)(this,function(u){switch(u.label){case 0:return n=J(e),[4,te()];case 1:return r=u.sent(),i=r.transaction(x,"readwrite"),[4,(o=i.objectStore(x)).get(n)];case 2:return a=u.sent(),[4,o.put(t,n)];case 3:return u.sent(),[4,i.complete];case 4:return u.sent(),(!a||a.fid!==t.fid)&&ge(e,t.fid),[2,t]}})})}function ne(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return t=J(e),[4,te()];case 1:return n=i.sent(),[4,(r=n.transaction(x,"readwrite")).objectStore(x).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function W(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,i,o,a,u;return(0,s.Jh)(this,function(l){switch(l.label){case 0:return n=J(e),[4,te()];case 1:return r=l.sent(),i=r.transaction(x,"readwrite"),[4,(o=i.objectStore(x)).get(n)];case 2:return a=l.sent(),void 0!==(u=t(a))?[3,4]:[4,o.delete(n)];case 3:return l.sent(),[3,6];case 4:return[4,o.put(u,n)];case 5:l.sent(),l.label=6;case 6:return[4,i.complete];
1case 7:return l.sent(),u&&(!a||a.fid!==u.fid)&&ge(e,u.fid),[2,u]}})})}function re(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,W(e,function(o){var a=function(e){return ke(e||{fid:Le(),registrationStatus:0})}(o),u=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(c.create("app-offline"))};var r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,Ke(e,t)];case 1:return n=i.sent(),[2,_(e,n)];case 2:return p(r=i.sent())&&409===r.customData.serverCode?[4,ne(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,_(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}})})}(e,r);return{installationEntry:r,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:ze(e)}:{installationEntry:t}}(e,a);return t=u.registrationPromise,u.installationEntry})];case 1:return""!==(n=i.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}})})}function ze(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n,r,i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return[4,ye(e)];case 1:t=o.sent(),o.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,ve(100)];case 3:return o.sent(),[4,ye(e)];case 4:return t=o.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,re(e)];case 6:return n=o.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}})})}function ye(e){return W(e,function(t){if(!t)throw c.create("installation-not-found");return ke(t)})}function ke(e){return function(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()}(e)?{fid:e.fid,registrationStatus:0}:e}function Ze(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return(0,s.mG)(this,void 0,void 0,function(){var i,o,a,l,f;return(0,s.Jh)(this,function(O){switch(O.label){case 0:return i=function(e,t){var n=t.fid;return v(e)+"/"+n+"/authTokens:generate"}(n,t),o=E(n,t),(a=r.getImmediate({optional:!0}))&&o.append("x-firebase-client",a.getPlatformInfoString()),l={method:"POST",headers:o,body:JSON.stringify({installation:{sdkVersion:T}})},[4,Z(function(){return fetch(i,l)})];case 1:return(f=O.sent()).ok?[4,f.json()]:[3,3];case 2:return[2,g(O.sent())];case 3:return[4,h("Generate Auth Token",f)];case 4:throw O.sent()}})})}function ie(e,t){return void 0===t&&(t=!1),(0,s.mG)(this,void 0,void 0,function(){var n,r,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return[4,W(e.appConfig,function(u){if(!Te(u))throw c.create("not-registered");var l=u.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(l))return u;if(1===l.requestStatus)return n=function(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,Se(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,ve(100)];case 3:return i.sent(),[4,Se(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,ie(e,t)]:[2,r]}})})}(e,t),u;if(!navigator.onLine)throw c.create("app-offline");var f=function(e){var t={requestStatus:1,requestTime:Date.now()};return(0,s.pi)((0,s.pi)({},e),{authToken:t})}(u);return n=function(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,i,r;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,Ze(e,t)];case 1:return n=o.sent(),r=(0,s.pi)((0,s.pi)({},t),{authToken:n}),[4,_(e.appConfig,r)];case 2:return o.sent(),[2,n];case 3:return!p(i=o.sent())||401!==i.customData.serverCode&&404!==i.customData.serverCode?[3,5]:[4,ne(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return r=(0,s.pi)((0,s.pi)({},t),{authToken:{requestStatus:0}}),[4,_(e.appConfig,r)];case 6:o.sent(),o.label=7;case 7:throw i;case 8:return[2]}})})}(e,f),f})];case 1:return r=a.sent(),n?[4,n]:[3,3];case 2:return o=a.sent(),[3,4];case 3:o=r.authToken,a.label=4;case 4:return[2,o]}})})}function Se(e){return W(e,function(t){if(!Te(t))throw c.create("not-registered");return function(e){return 1===e.requestStatus&&e.requestTime+1e4<Date.now()}(t.authToken)?(0,s.pi)((0,s.pi)({},t),{authToken:{requestStatus:0}}):t})}function Te(e){return void 0!==e&&2===e.registrationStatus}function ut(e){return(0,s.mG)(this,void 0,void 0,function(){var t;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,re(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})}function ct(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return n=function(e,t){var n=t.fid;return v(e)+"/"+n}(e,t),r=E(e,t),i={method:"DELETE",headers:r},[4,Z(function(){return fetch(n,i)})];case 1:return(o=a.sent()).ok?[3,3]:[4,h("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}})})}function oe(e){return c.create("missing-app-config-values",{valueName:e})}(e=G.Z).INTERNAL.registerComponent(new B.wA("installations",function(n){var r=n.getProvider("app").getImmediate(),i=function(e){var t,n;if(!e||!e.options)throw oe("App Configuration");if(!e.name)throw oe("App Name");try{for(var i=(0,s.XA)(["projectId","apiKey","appId"]),o=i.next();!o.done;o=i.next()){var a=o.value;if(!e.options[a])throw oe(a)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}
1return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(r),a={appConfig:i,platformLoggerProvider:n.getProvider("platform-logger")},u={app:r,getId:function(){return function(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,re(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):ie(e).catch(console.error),[2,n.fid]}})})}(a)},getToken:function(l){return function(e,t){return void 0===t&&(t=!1),(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(r){switch(r.label){case 0:return[4,ut(e.appConfig)];case 1:return r.sent(),[4,ie(e,t)];case 2:return[2,r.sent().token]}})})}(a,l)},delete:function(){return function(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return[4,W(t=e.appConfig,function(i){if(!i||0!==i.registrationStatus)return i})];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw c.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw c.create("app-offline");case 3:return[4,ct(t,n)];case 4:return r.sent(),[4,ne(t)];case 5:r.sent(),r.label=6;case 6:return[2]}})})}(a)},onIdChange:function(l){return function(e,t){var n=e.appConfig;return function(e,t){be();var n=J(e),r=q.get(n);r||(r=new Set,q.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=J(e),r=q.get(n);!r||(r.delete(t),0===r.size&&q.delete(n),we())}(n,t)}}(a,l)}};return u},"PUBLIC")),e.registerVersion("@firebase/installations",M);var b,vt=((b={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',b["only-available-in-window"]="This method is available in a Window context.",b["only-available-in-sw"]="This method is available in a service worker context.",b["permission-default"]="The notification permission was not granted and dismissed instead.",b["permission-blocked"]="The notification permission was not granted and blocked instead.",b["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",b["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",b["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",b["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",b["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",b["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",b["token-update-no-token"]="FCM returned no token when updating the user to push.",b["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.",b["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",b["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",b["invalid-vapid-key"]="The public VAPID key must be a string.",b["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.",b),m=new V.LL("messaging","Messaging",vt),$="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Ie="FCM_MSG",Ce="google.c.a.c_id",D=(()=>(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(D||(D={})),D))();function C(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,(0,s.ev)([],(0,s.CR)(t)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ct(e){for(var n=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length),o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}var se="fcm_token_details_db",Ae="fcm_token_object_Store";function Et(e){return(0,s.mG)(this,void 0,void 0,function(){var r,o=this;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(!a.sent().map(function(u){return u.name}).includes(se))return[2,null];a.label=2;case 2:return r=null,[4,(0,y.openDb)(se,5,function(u){return(0,s.mG)(o,void 0,void 0,function(){var l,f,d,L;return(0,s.Jh)(this,function(O){switch(O.label){case 0:return u.oldVersion<2?[2]:u.objectStoreNames.contains(Ae)?[4,(l=u.transaction.objectStore(Ae)).index("fcmSenderId").get(e)]:[2];case 1:return f=O.sent(),[4,l.clear()];case 2:if(O.sent(),!f)return[2];if(2===u.oldVersion){if(!(d=f).auth||!d.p256dh||!d.endpoint)return[2];r={token:d.fcmToken,createTime:null!==(L=d.createTime)&&void 0!==L?L:Date.now(),subscriptionOptions:{auth:d.auth,p256dh:d.p256dh,endpoint:d.endpoint,swScope:d.swScope,vapidKey:"string"==typeof d.vapidKey?d.vapidKey:C(d.vapidKey)}}}else(3===u.oldVersion||4===u.oldVersion)&&(r={token:(d=f).fcmToken,createTime:d.createTime,subscriptionOptions:{auth:C(d.auth),p256dh:C(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:C(d.vapidKey)}});return[2]}})})})];case 3:return a.sent().close(),[4,(0,y.deleteDb)(se)];case 4:return a.sent(),[4,(0,y.deleteDb)("fcm_vapid_details_db")];case 5:return a.sent(),[4,(0,y.deleteDb)("undefined")];case 6:return a.sent(),[2,Dt(r)?r:null]}})})}function Dt(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;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}var R="firebase-messaging-store",ae=null;function ue(){return ae||(ae=(0,y.openDb)("firebase-messaging-database",1,function(e){0===e.oldVersion&&e.createObjectStore(R)}
1)),ae}function X(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r,i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return t=le(e),[4,ue()];case 1:return[4,o.sent().transaction(R).objectStore(R).get(t)];case 2:return(r=o.sent())?[2,r]:[3,3];case 3:return[4,Et(e.appConfig.senderId)];case 4:return(i=o.sent())?[4,ce(e,i)]:[3,6];case 5:return o.sent(),[2,i];case 6:return[2]}})})}function ce(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return n=le(e),[4,ue()];case 1:return r=o.sent(),[4,(i=r.transaction(R,"readwrite")).objectStore(R).put(t,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,t]}})})}function Pt(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return t=le(e),[4,ue()];case 1:return n=i.sent(),[4,(r=n.transaction(R,"readwrite")).objectStore(R).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function le(e){return e.appConfig.appId}function Nt(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,i,o,u;return(0,s.Jh)(this,function(f){switch(f.label){case 0:return[4,de(e)];case 1:n=f.sent(),r=De(t),i={method:"POST",headers:n,body:JSON.stringify(r)},f.label=2;case 2:return f.trys.push([2,5,,6]),[4,fetch(fe(e.appConfig),i)];case 3:return[4,f.sent().json()];case 4:return o=f.sent(),[3,6];case 5:throw u=f.sent(),m.create("token-subscribe-failed",{errorInfo:u});case 6:if(o.error)throw m.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw m.create("token-subscribe-no-token");return[2,o.token]}})})}function xt(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,i,o,u;return(0,s.Jh)(this,function(f){switch(f.label){case 0:return[4,de(e)];case 1:n=f.sent(),r=De(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},f.label=2;case 2:return f.trys.push([2,5,,6]),[4,fetch(fe(e.appConfig)+"/"+t.token,i)];case 3:return[4,f.sent().json()];case 4:return o=f.sent(),[3,6];case 5:throw u=f.sent(),m.create("token-update-failed",{errorInfo:u});case 6:if(o.error)throw m.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw m.create("token-update-no-token");return[2,o.token]}})})}function Ee(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,o,u;return(0,s.Jh)(this,function(l){switch(l.label){case 0:return[4,de(e)];case 1:n=l.sent(),r={method:"DELETE",headers:n},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(fe(e.appConfig)+"/"+t,r)];case 3:return[4,l.sent().json()];case 4:if((o=l.sent()).error)throw m.create("token-unsubscribe-failed",{errorInfo:o.error.message});return[3,6];case 5:throw u=l.sent(),m.create("token-unsubscribe-failed",{errorInfo:u});case 6:return[2]}})})}function fe(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function de(e){var t=e.appConfig,n=e.installations;return(0,s.mG)(this,void 0,void 0,function(){var r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,n.getToken()];case 1:return r=i.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+r})]}})})}function De(e){var i=e.vapidKey,o={web:{endpoint:e.endpoint,auth:e.auth,p256dh:e.p256dh}};return i!==$&&(o.web.applicationPubKey=i),o}function pe(e,t,n){return(0,s.mG)(this,void 0,void 0,function(){var r,i,o,a;return(0,s.Jh)(this,function(u){switch(u.label){case 0:if("granted"!==Notification.permission)throw m.create("permission-blocked");return[4,jt(t,n)];case 1:return r=u.sent(),[4,X(e)];case 2:return i=u.sent(),o={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:C(r.getKey("auth")),p256dh:C(r.getKey("p256dh"))},i?[3,3]:[2,Oe(e,o)];case 3:if(function(e,t){return t.vapidKey===e.vapidKey&&t.endpoint===e.endpoint&&t.auth===e.auth&&t.p256dh===e.p256dh}(i.subscriptionOptions,o))return[3,8];u.label=4;case 4:return u.trys.push([4,6,,7]),[4,Ee(e,i.token)];case 5:return u.sent(),[3,7];case 6:return a=u.sent(),console.warn(a),[3,7];case 7:return[2,Oe(e,o)];case 8:return Date.now()>=i.createTime+6048e5?[2,Gt({token:i.token,createTime:Date.now(),subscriptionOptions:o},e,t)]:[2,i.token];case 9:return[2]}})})}function H(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,X(e)];case 1:return(n=i.sent())?[4,Ee(e,n.token)]:[3,4];case 2:return i.sent(),[4,Pt(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(r=i.sent())?[2,r.unsubscribe()]:[2,!0]}})})}function Gt(e,t,n){return(0,s.mG)(this,void 0,void 0,function(){var r,i,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,xt(t,e)];case 1:return r=a.sent(),i=(0,s.pi)((0,s.pi)({},e),{token:r,createTime:Date.now()}),[4,ce(t,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,H(t,n)];case 4:throw a.sent(),o;case 5:return[2]}})})}function Oe(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,Nt(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,ce(e,r)];case 2:return i.sent(),[2,r.token]}})})}function jt(e,t){return(0,s.mG)(this,void 0,void 0,function(){var n;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];
1case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Ct(t)})]}})})}function Me(e){return"object"==typeof e&&!!e&&Ce in e}function Pe(e){return new Promise(function(t){setTimeout(t,e)})}var Vt=function(){function e(t){var n=this;this.firebaseDependencies=t,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(r){r.waitUntil(n.onPush(r))}),self.addEventListener("pushsubscriptionchange",function(r){r.waitUntil(n.onSubChange(r))}),self.addEventListener("notificationclick",function(r){r.waitUntil(n.onNotificationClick(r))})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(t){if(this.isOnBackgroundMessageUsed=!1,!t||"function"!=typeof t)throw m.create("invalid-bg-handler");this.bgMessageHandler=t},e.prototype.onBackgroundMessage=function(t){var n=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=t,function(){n.bgMessageHandler=null}},e.prototype.getToken=function(){var t,n;return(0,s.mG)(this,void 0,void 0,function(){var r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return this.vapidKey?[3,2]:[4,X(this.firebaseDependencies)];case 1:r=i.sent(),this.vapidKey=null!==(n=null===(t=null==r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:$,i.label=2;case 2:return[2,pe(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},e.prototype.deleteToken=function(){return H(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw m.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw m.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw m.create("invalid-vapid-key");this.vapidKey=t},e.prototype.useServiceWorker=function(){throw m.create("only-available-in-window")},e.prototype.onMessage=function(){throw m.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw m.create("only-available-in-window")},e.prototype.onPush=function(t){return(0,s.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return n=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(n){return null}}(t),n?[4,Ne()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function(e){return e.some(function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")})}(r=a.sent())?[2,_t(r,n)]:(i=!1,n.notification?[4,$t(Ft(n))]:[3,3]);case 2:a.sent(),i=!0,a.label=3;case 3:return!0===i&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(o=function(e){var t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcm_message_id};return function(e,t){if(t.notification){e.notification={};var n=t.notification.title;n&&(e.notification.title=n);var r=t.notification.body;r&&(e.notification.body=r);var i=t.notification.image;i&&(e.notification.image=i)}}(t,e),function(e,t){!t.data||(e.data=t.data)}(t,e),function(e,t){if(t.fcmOptions){e.fcmOptions={};var n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);var r=t.fcmOptions.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}}(t,e),t}(n),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(o):this.bgMessageHandler.next(o)),[4,Pe(1e3)]);case 4:return a.sent(),[2]}})})},e.prototype.onSubChange=function(t){var n,r;return(0,s.mG)(this,void 0,void 0,function(){var o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return t.newSubscription?[3,2]:[4,H(this.firebaseDependencies,self.registration)];case 1:case 5:return a.sent(),[2];case 2:return[4,X(this.firebaseDependencies)];case 3:return o=a.sent(),[4,H(this.firebaseDependencies,self.registration)];case 4:return a.sent(),[4,pe(this.firebaseDependencies,self.registration,null!==(r=null===(n=null==o?void 0:o.subscriptionOptions)||void 0===n?void 0:n.vapidKey)&&void 0!==r?r:$)]}})})},e.prototype.onNotificationClick=function(t){var n,r;return(0,s.mG)(this,void 0,void 0,function(){var i,o,a,u,l;return(0,s.Jh)(this,function(f){switch(f.label){case 0:return(i=null===(r=null===(n=t.notification)||void 0===n?void 0:n.data)||void 0===r?void 0:r[Ie])?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),o=function(e){var t,n,r;return(null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action)||(Me(e.data)?self.location.origin:null)}(i),o?(a=new URL(o,self.location.href),u=new URL(self.location.origin),a.host!==u.host?[2]:[4,Wt(a)]):[2]):[2];case 1:return(l=f.sent())?[3,4]:[4,self.clients.openWindow(o)];case 2:return l=f.sent(),[4,Pe(3e3)];case 3:return f.sent(),[3,6];case 4:return[4,l.focus()];case 5:l=f.sent(),f.label=6;case 6:return l?(i.messageType=D.NOTIFICATION_CLICKED,i.isFirebaseMessaging=!0,[2,l.postMessage(i)]):[2]}})})},e}();function Ft(e){var t,n=(0,s.pi)({},e.notification);return n.data=((t={})[Ie]=e,t),n}function Wt(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,u;return(0,s.Jh)(this,function(l){switch(l.label){case 0:return[4,Ne()];case 1:t=l.sent();try{for(n=(0,s.XA)(t),r=n.next();!r.done;r=n.next())if(i=r.value,o=new URL(i.url,self.location.href),e.host===o.host)return[2,i]}catch(f){a={error:f}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}}return[2,null]}})})}function _t(e,t){var n,r;t.isFirebaseMessaging=!0,t.messageType=D.PUSH_RECEIVED;try{for(var i=(0,s.XA)(e),o=i.next();!o.done;o=i.next())o.value.postMessage(t)}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Ne(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function $t(e){var t,n=e.actions,r=Notification.maxActions;return n&&r&&n.length>r&&console.warn("This browser only supports "+r+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(t=e.title)&&void 0!==t?t:"",e)}var zt=function(){function e(t){var n=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(r){return n.messageEventListener(r)})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app}
1,enumerable:!1,configurable:!0}),e.prototype.messageEventListener=function(t){return(0,s.mG)(this,void 0,void 0,function(){var n,r;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return(n=t.data).isFirebaseMessaging?(this.onMessageCallback&&n.messageType===D.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(function(e){return delete e.messageType,delete e.isFirebaseMessaging,e}(Object.assign({},n))):this.onMessageCallback.next(Object.assign({},n))),Me(r=n.data)&&"1"===r["google.c.a.e"]?[4,this.logEvent(n.messageType,r)]:[3,2]):[2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.getVapidKey=function(){return this.vapidKey},e.prototype.getSwReg=function(){return this.swRegistration},e.prototype.getToken=function(t){return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(n){switch(n.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:n.sent(),n.label=2;case 2:if("granted"!==Notification.permission)throw m.create("permission-blocked");return[4,this.updateVapidKey(null==t?void 0:t.vapidKey)];case 3:return n.sent(),[4,this.updateSwReg(null==t?void 0:t.serviceWorkerRegistration)];case 4:return n.sent(),[2,pe(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},e.prototype.updateVapidKey=function(t){return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(n){return t?this.vapidKey=t:this.vapidKey||(this.vapidKey=$),[2]})})},e.prototype.updateSwReg=function(t){return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(n){switch(n.label){case 0:return t||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:n.sent(),n.label=2;case 2:if(!t&&this.swRegistration)return[2];if(!(t instanceof ServiceWorkerRegistration))throw m.create("invalid-sw-registration");return this.swRegistration=t,[2]}})})},e.prototype.registerDefaultSw=function(){return(0,s.mG)(this,void 0,void 0,function(){var t,n;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return t.swRegistration=r.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw n=r.sent(),m.create("failed-service-worker-registration",{browserErrorMessage:n.message});case 3:return[2]}})})},e.prototype.deleteToken=function(){return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(t){switch(t.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:return[2,H(this.firebaseDependencies,this.swRegistration)]}})})},e.prototype.requestPermission=function(){return(0,s.mG)(this,void 0,void 0,function(){var t;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=n.sent()))return[2];throw m.create("denied"===t?"permission-blocked":"permission-default")}})})},e.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw m.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw m.create("invalid-vapid-key");this.vapidKey=t},e.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw m.create("invalid-sw-registration");if(this.swRegistration)throw m.create("use-sw-after-get-token");this.swRegistration=t},e.prototype.onMessage=function(t){var n=this;return this.onMessageCallback=t,function(){n.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw m.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw m.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(t,n){return(0,s.mG)(this,void 0,void 0,function(){var r;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return r=function(e){switch(e){case D.NOTIFICATION_CLICKED:return"notification_open";case D.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return o.sent().logEvent(r,{message_id:n[Ce],message_name:n["google.c.a.c_l"],message_time:n["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},e}();function he(e){return m.create("missing-app-config-values",{valueName:e})}var nn={isSupported:xe};function xe(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSub
1scription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}G.Z.INTERNAL.registerComponent(new B.wA("messaging",function(e){var t=e.getProvider("app").getImmediate(),n=function(e){var t,n;if(!e||!e.options)throw he("App Configuration Object");if(!e.name)throw he("App Name");var i=e.options;try{for(var o=(0,s.XA)(["projectId","apiKey","appId","messagingSenderId"]),a=o.next();!a.done;a=o.next()){var u=a.value;if(!i[u])throw he(u)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return{appName:e.name,projectId:i.projectId,apiKey:i.apiKey,appId:i.appId,senderId:i.messagingSenderId}}(t),o={app:t,appConfig:n,installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!xe())throw m.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new Vt(o):new zt(o)},"PUBLIC").setServiceProps(nn))},6676:function(Re,z){!function(S){"use strict";function G(c){return Array.prototype.slice.call(c)}function B(c){return new Promise(function(p,v){c.onsuccess=function(){p(c.result)},c.onerror=function(){v(c.error)}})}function s(c,p,v){var g,h=new Promise(function(w,E){B(g=c[p].apply(c,v)).then(w,E)});return h.request=g,h}function V(c,p,v){var g=s(c,p,v);return g.then(function(h){if(h)return new A(h,g.request)})}function y(c,p,v){v.forEach(function(g){Object.defineProperty(c.prototype,g,{get:function(){return this[p][g]},set:function(h){this[p][g]=h}})})}function F(c,p,v,g){g.forEach(function(h){h in v.prototype&&(c.prototype[h]=function(){return s(this[p],h,arguments)})})}function M(c,p,v,g){g.forEach(function(h){h in v.prototype&&(c.prototype[h]=function(){return this[p][h].apply(this[p],arguments)})})}function U(c,p,v,g){g.forEach(function(h){h in v.prototype&&(c.prototype[h]=function(){return V(this[p],h,arguments)})})}function T(c){this._index=c}function A(c,p){this._cursor=c,this._request=p}function k(c){this._store=c}function P(c){this._tx=c,this.complete=new Promise(function(p,v){c.oncomplete=function(){p()},c.onerror=function(){v(c.error)},c.onabort=function(){v(c.error)}})}function j(c,p,v){this._db=c,this.oldVersion=p,this.transaction=new P(v)}function K(c){this._db=c}y(T,"_index",["name","keyPath","multiEntry","unique"]),F(T,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),U(T,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),y(A,"_cursor",["direction","key","primaryKey","value"]),F(A,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(c){c in IDBCursor.prototype&&(A.prototype[c]=function(){var p=this,v=arguments;return Promise.resolve().then(function(){return p._cursor[c].apply(p._cursor,v),B(p._request).then(function(g){if(g)return new A(g,p._request)})})})}),k.prototype.createIndex=function(){return new T(this._store.createIndex.apply(this._store,arguments))},k.prototype.index=function(){return new T(this._store.index.apply(this._store,arguments))},y(k,"_store",["name","keyPath","indexNames","autoIncrement"]),F(k,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),U(k,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),M(k,"_store",IDBObjectStore,["deleteIndex"]),P.prototype.objectStore=function(){return new k(this._tx.objectStore.apply(this._tx,arguments))},y(P,"_tx",["objectStoreNames","mode"]),M(P,"_tx",IDBTransaction,["abort"]),j.prototype.createObjectStore=function(){return new k(this._db.createObjectStore.apply(this._db,arguments))},y(j,"_db",["name","version","objectStoreNames"]),M(j,"_db",IDBDatabase,["deleteObjectStore","close"]),K.prototype.transaction=function(){return new P(this._db.transaction.apply(this._db,arguments))},y(K,"_db",["name","version","objectStoreNames"]),M(K,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach(function(c){[k,T].forEach(function(p){c in p.prototype&&(p.prototype[c.replace("open","iterate")]=function(){var v=G(arguments),g=v[v.length-1],h=this._store||this._index,w=h[c].apply(h,v.slice(0,-1));w.onsuccess=function(){g(w.result)}})})}),[T,k].forEach(function(c){c.prototype.getAll||(c.prototype.getAll=function(p,v){var g=this,h=[];return new Promise(function(w){g.iterateCursor(p,function(E){E?(h.push(E.value),void 0===v||h.length!=v?E.continue():w(h)):w(h)})})})}),S.openDb=function(c,p,v){var g=s(indexedDB,"open",[c,p]),h=g.request;return h&&(h.onupgradeneeded=function(w){v&&v(new j(h.result,w.oldVersion,h.transaction))}),g.then(function(w){return new K(w)})},S.deleteDb=function(c){return s(indexedDB,"deleteDatabase",[c])},Object.defineProperty(S,"__esModule",{value:!0})}(z)}}]);
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.