-
Notifications
You must be signed in to change notification settings - Fork 0
/
207-1c068906b152e702e80b.js
3 lines (3 loc) · 29 KB
/
207-1c068906b152e702e80b.js
1
2
3
/*! For license information please see 207-1c068906b152e702e80b.js.LICENSE.txt */
(self.webpackChunklubycon_home=self.webpackChunklubycon_home||[]).push([[207],{4207:function(e,t,n){"use strict";n.r(t);var r,i=n(9900),a=n(1129),o=n(6214),s=n(8691),u=n(5399),c="0.4.32",l=1e4,f="w:0.4.32",d="FIS_v2",h=36e5,p=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),m=new s.LL("installations","Installations",p);function v(e){return e instanceof s.ZR&&e.code.includes("request-failed")}function g(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function b(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function w(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n,r;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,m.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function y(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function I(e,t){var n=t.refreshToken,r=y(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}(n)),r}function _(e){return(0,i.mG)(this,void 0,void 0,(function(){var t;return(0,i.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 E(e,t){var n=t.fid;return(0,i.mG)(this,void 0,void 0,(function(){var t,r,a,o,s,u;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return t=g(e),r=y(e),a={fid:n,authVersion:d,appId:e.appId,sdkVersion:f},o={method:"POST",headers:r,body:JSON.stringify(a)},[4,_((function(){return fetch(t,o)}))];case 1:return(s=i.sent()).ok?[4,s.json()]:[3,3];case 2:return u=i.sent(),[2,{fid:u.fid||n,registrationStatus:2,refreshToken:u.refreshToken,authToken:b(u.authToken)}];case 3:return[4,w("Create Installation",s)];case 4:throw i.sent()}}))}))}function T(e){return new Promise((function(t){setTimeout(t,e)}))}var C=/^[cdef][\w-]{21}$/;function S(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return(t=e,btoa(String.fromCharCode.apply(String,(0,i.ev)([],(0,i.CR)(t)))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return C.test(t)?t:""}catch(r){return""}}function D(e){return e.appName+"!"+e.appId}var N=new Map;function A(e,t){var n=D(e);P(n,t),function(e,t){var n=G();n&&n.postMessage({key:e,fid:t});O()}(n,t)}function P(e,t){var n,r,a=N.get(e);if(a)try{for(var o=(0,i.XA)(a),s=o.next();!s.done;s=o.next()){(0,s.value)(t)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var k=null;function G(){return!k&&"BroadcastChannel"in self&&((k=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){P(e.data.key,e.data.fid)}),k}function O(){0===N.size&&k&&(k.close(),k=null)}var x,F="firebase-installations-store",j=null;function M(){return j||(j=(0,u.openDb)("firebase-installations-database",1,(function(e){if(0===e.oldVersion)e.createObjectStore(F)}))),j}function J(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n,r,a,o,s;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return n=D(e),[4,M()];case 1:return r=i.sent(),a=r.transaction(F,"readwrite"),[4,(o=a.objectStore(F)).get(n)];case 2:return s=i.sent(),[4,o.put(t,n)];case 3:return i.sent(),[4,a.complete];case 4:return i.sent(),s&&s.fid===t.fid||A(e,t.fid),[2,t]}}))}))}function q(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,n,r;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return t=D(e),[4,M()];case 1:return n=i.sent(),[4,(r=n.transaction(F,"readwrite")).objectStore(F).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function L(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n,r,a,o,s,u;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return n=D(e),[4,M()];case 1:return r=i.sent(),a=r.transaction(F,"readwrite"),[4,(o=a.objectStore(F)).get(n)];case 2:return s=i.sent(),void 0!==(u=t(s))?[3,4]:[4,o.delete(n)];case 3:return i.sent(),[3,6];case 4:return[4,o.put(u,n)];case 5:i.sent(),i.label=6;case 6:return[4,a.complete];case 7:return i.sent(),!u||s&&s.fid===u.fid||A(e,u.fid),[2,u]}}))}))}function R(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,n,r;return(0,i.Jh)(this,(function(a){switch(a.label){case 0:return[4,L(e,(function(n){var r=function(e){return B(e||{fid:S(),registrationStatus:0})}(n),a=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(m.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n,r;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,E(e,t)];case 1:return n=i.sent(),[2,J(e,n)];case 2:return v(r=i.sent())&&409===r.customData.serverCode?[4,q(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,J(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}))}))}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:V(e)}:{installationEntry:t}}(e,r);return t=a.registrationPromise,a.installationEntry}))];case 1:return""!==(n=a.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=a.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function V(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,n,r,a;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,K(e)];case 1:t=i.sent(),i.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,T(100)];case 3:return i.sent(),[4,K(e)];case 4:return t=i.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,R(e)];case 6:return n=i.sent(),r=n.installationEntry,(a=n.registrationPromise)?[2,a]:[2,r];case 7:return[2,t]}}))}))}function K(e){return L(e,(function(e){if(!e)throw m.create("installation-not-found");return B(e)}))}function B(e){return 1===(t=e).registrationStatus&&t.registrationTime+l<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function $(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return(0,i.mG)(this,void 0,void 0,(function(){var e,a,o,s,u,c,l;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return e=function(e,t){var n=t.fid;return g(e)+"/"+n+"/authTokens:generate"}(n,t),a=I(n,t),(o=r.getImmediate({optional:!0}))&&a.append("x-firebase-client",o.getPlatformInfoString()),s={installation:{sdkVersion:f}},u={method:"POST",headers:a,body:JSON.stringify(s)},[4,_((function(){return fetch(e,u)}))];case 1:return(c=i.sent()).ok?[4,c.json()]:[3,3];case 2:return l=i.sent(),[2,b(l)];case 3:return[4,w("Generate Auth Token",c)];case 4:throw i.sent()}}))}))}function z(e,t){return void 0===t&&(t=!1),(0,i.mG)(this,void 0,void 0,(function(){var n,r,a;return(0,i.Jh)(this,(function(o){switch(o.label){case 0:return[4,L(e.appConfig,(function(r){if(!H(r))throw m.create("not-registered");var a=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+h}(e)}(a))return r;if(1===a.requestStatus)return n=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n,r;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,U(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,T(100)];case 3:return i.sent(),[4,U(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,z(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw m.create("app-offline");var o=function(e){var t={requestStatus:1,requestTime:Date.now()};return(0,i.pi)((0,i.pi)({},e),{authToken:t})}(r);return n=function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n,r,a;return(0,i.Jh)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,$(e,t)];case 1:return n=o.sent(),a=(0,i.pi)((0,i.pi)({},t),{authToken:n}),[4,J(e.appConfig,a)];case 2:return o.sent(),[2,n];case 3:return!v(r=o.sent())||401!==r.customData.serverCode&&404!==r.customData.serverCode?[3,5]:[4,q(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return a=(0,i.pi)((0,i.pi)({},t),{authToken:{requestStatus:0}}),[4,J(e.appConfig,a)];case 6:o.sent(),o.label=7;case 7:throw r;case 8:return[2]}}))}))}(e,o),o}))];case 1:return r=o.sent(),n?[4,n]:[3,3];case 2:return a=o.sent(),[3,4];case 3:a=r.authToken,o.label=4;case 4:return[2,a]}}))}))}function U(e){return L(e,(function(e){if(!H(e))throw m.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+l<Date.now()?(0,i.pi)((0,i.pi)({},e),{authToken:{requestStatus:0}}):e}))}function H(e){return void 0!==e&&2===e.registrationStatus}function W(e){return(0,i.mG)(this,void 0,void 0,(function(){var t;return(0,i.Jh)(this,(function(n){switch(n.label){case 0:return[4,R(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function Z(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n,r,a,o;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return n=function(e,t){var n=t.fid;return g(e)+"/"+n}(e,t),r=I(e,t),a={method:"DELETE",headers:r},[4,_((function(){return fetch(n,a)}))];case 1:return(o=i.sent()).ok?[3,3]:[4,w("Delete Installation",o)];case 2:throw i.sent();case 3:return[2]}}))}))}function X(e,t){var n=e.appConfig;return function(e,t){G();var n=D(e),r=N.get(n);r||(r=new Set,N.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=D(e),r=N.get(n);r&&(r.delete(t),0===r.size&&N.delete(n),O())}(n,t)}}function Y(e){return m.create("missing-app-config-values",{valueName:e})}(x=a.Z).INTERNAL.registerComponent(new o.wA("installations",(function(e){var t=e.getProvider("app").getImmediate(),n=function(e){var t,n;if(!e||!e.options)throw Y("App Configuration");if(!e.name)throw Y("App Name");try{for(var r=(0,i.XA)(["projectId","apiKey","appId"]),a=r.next();!a.done;a=r.next()){var o=a.value;if(!e.options[o])throw Y(o)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r={appConfig:n,platformLoggerProvider:e.getProvider("platform-logger")},a={app:t,getId:function(){return function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,n,r;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,R(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):z(e).catch(console.error),[2,n.fid]}}))}))}(r)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(n){switch(n.label){case 0:return[4,W(e.appConfig)];case 1:return n.sent(),[4,z(e,t)];case 2:return[2,n.sent().token]}}))}))}(r,e)},delete:function(){return function(e){return(0,i.mG)(this,void 0,void 0,(function(){var t,n;return(0,i.Jh)(this,(function(r){switch(r.label){case 0:return[4,L(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw m.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw m.create("app-offline");case 3:return[4,Z(t,n)];case 4:return r.sent(),[4,q(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}))}))}(r)},onIdChange:function(e){return X(r,e)}};return a}),"PUBLIC")),x.registerVersion("@firebase/installations",c);var Q,ee,te=n(5190),ne="https://www.googletagmanager.com/gtag/js";!function(e){e.EVENT="event",e.SET="set",e.CONFIG="config"}(Q||(Q={})),function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(ee||(ee={}));var re,ie=new te.Yd("@firebase/analytics");function ae(e,t,n,r,a,o){return(0,i.mG)(this,void 0,void 0,(function(){var s,u,c,l;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:s=r[a],i.label=1;case 1:return i.trys.push([1,7,,8]),s?[4,t[s]]:[3,3];case 2:return i.sent(),[3,6];case 3:return[4,Promise.all(n)];case 4:return u=i.sent(),(c=u.find((function(e){return e.measurementId===a})))?[4,t[c.appId]]:[3,6];case 5:i.sent(),i.label=6;case 6:return[3,8];case 7:return l=i.sent(),ie.error(l),[3,8];case 8:return e(Q.CONFIG,a,o),[2]}}))}))}function oe(e,t,n,r,a){return(0,i.mG)(this,void 0,void 0,(function(){var o,s,u,c,l,f,d,h;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),o=[],a&&a.send_to?(s=a.send_to,Array.isArray(s)||(s=[s]),[4,Promise.all(n)]):[3,2];case 1:for(u=i.sent(),c=function(e){var n=u.find((function(t){return t.measurementId===e})),r=n&&t[n.appId];if(!r)return o=[],"break";o.push(r)},l=0,f=s;l<f.length&&(d=f[l],"break"!==c(d));l++);i.label=2;case 2:return 0===o.length&&(o=Object.values(t)),[4,Promise.all(o)];case 3:return i.sent(),e(Q.EVENT,r,a||{}),[3,5];case 4:return h=i.sent(),ie.error(h),[3,5];case 5:return[2]}}))}))}function se(e,t,n,r,a){var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window[r].push(arguments)};return window[a]&&"function"==typeof window[a]&&(o=window[a]),window[a]=function(e,t,n,r){return function(a,o,s){return(0,i.mG)(this,void 0,void 0,(function(){var u;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),a!==Q.EVENT?[3,2]:[4,oe(e,t,n,o,s)];case 1:return i.sent(),[3,5];case 2:return a!==Q.CONFIG?[3,4]:[4,ae(e,t,n,r,o,s)];case 3:return i.sent(),[3,5];case 4:e(Q.SET,o),i.label=5;case 5:return[3,7];case 6:return u=i.sent(),ie.error(u),[3,7];case 7:return[2]}}))}))}}(o,e,t,n),{gtagCore:o,wrappedGtag:window[a]}}var ue=((re={})["already-exists"]="A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.",re["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",re["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",re["invalid-analytics-context"]="Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",re["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",re["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",re["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",re["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',re["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',re),ce=new s.LL("analytics","Analytics",ue),le=new(function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=1e3),this.throttleMetadata=e,this.intervalMillis=t}return e.prototype.getThrottleMetadata=function(e){return this.throttleMetadata[e]},e.prototype.setThrottleMetadata=function(e,t){this.throttleMetadata[e]=t},e.prototype.deleteThrottleMetadata=function(e){delete this.throttleMetadata[e]},e}());function fe(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function de(e){var t;return(0,i.mG)(this,void 0,void 0,(function(){var n,r,a,o,s,u,c;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return n=e.appId,r=e.apiKey,a={method:"GET",headers:fe(r)},o="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),[4,fetch(o,a)];case 1:if(200===(s=i.sent()).status||304===s.status)return[3,6];u="",i.label=2;case 2:return i.trys.push([2,4,,5]),[4,s.json()];case 3:return c=i.sent(),(null===(t=c.error)||void 0===t?void 0:t.message)&&(u=c.error.message),[3,5];case 4:return i.sent(),[3,5];case 5:throw ce.create("config-fetch-failed",{httpStatus:s.status,responseMessage:u});case 6:return[2,s.json()]}}))}))}function he(e,t,n,r){var a=t.throttleEndTimeMillis,o=t.backoffCount;return void 0===r&&(r=le),(0,i.mG)(this,void 0,void 0,(function(){var t,u,c,l,f,d,h;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:t=e.appId,u=e.measurementId,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,pe(n,a)];case 2:return i.sent(),[3,4];case 3:if(c=i.sent(),u)return ie.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+u+' provided in the "measurementId" field in the local Firebase config. ['+c.message+"]"),[2,{appId:t,measurementId:u}];throw c;case 4:return i.trys.push([4,6,,7]),[4,de(e)];case 5:return l=i.sent(),r.deleteThrottleMetadata(t),[2,l];case 6:if(!function(e){if(!(e instanceof s.ZR&&e.customData))return!1;var t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(f=i.sent())){if(r.deleteThrottleMetadata(t),u)return ie.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+u+' provided in the "measurementId" field in the local Firebase config. ['+f.message+"]"),[2,{appId:t,measurementId:u}];throw f}return d=503===Number(f.customData.httpStatus)?(0,s.$s)(o,r.intervalMillis,30):(0,s.$s)(o,r.intervalMillis),h={throttleEndTimeMillis:Date.now()+d,backoffCount:o+1},r.setThrottleMetadata(t,h),ie.debug("Calling attemptFetch again in "+d+" millis"),[2,he(e,h,n,r)];case 7:return[2]}}))}))}function pe(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener((function(){clearTimeout(a),r(ce.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var me=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)},e.prototype.abort=function(){this.listeners.forEach((function(e){return e()}))},e}();function ve(e,t,n,r,a,o){return(0,i.mG)(this,void 0,void 0,(function(){var u,c,l,f,d,h,p;return(0,i.Jh)(this,(function(m){switch(m.label){case 0:return u=function(e,t,n){return void 0===t&&(t=le),(0,i.mG)(this,void 0,void 0,(function(){var r,a,o,s,u,c,l=this;return(0,i.Jh)(this,(function(f){if(r=e.options,a=r.appId,o=r.apiKey,s=r.measurementId,!a)throw ce.create("no-app-id");if(!o){if(s)return[2,{measurementId:s,appId:a}];throw ce.create("no-api-key")}return u=t.getThrottleMetadata(a)||{backoffCount:0,throttleEndTimeMillis:Date.now()},c=new me,setTimeout((function(){return(0,i.mG)(l,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){return c.abort(),[2]}))}))}),void 0!==n?n:6e4),[2,he({appId:a,apiKey:o,measurementId:s},u,c,t)]}))}))}(e),u.then((function(t){n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&ie.warn("The measurement ID in the local Firebase config ("+e.options.measurementId+") does not match the measurement ID fetched from the server ("+t.measurementId+"). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.")})).catch((function(e){return ie.error(e)})),t.push(u),c=function(){return(0,i.mG)(this,void 0,void 0,(function(){var e;return(0,i.Jh)(this,(function(t){switch(t.label){case 0:return(0,s.hl)()?[3,1]:(ie.warn(ce.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return t.trys.push([1,3,,4]),[4,(0,s.eu)()];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),ie.warn(ce.create("indexeddb-unavailable",{errorInfo:e}).message),[2,!1];case 4:return[2,!0]}}))}))}().then((function(e){return e?r.getId():void 0})),[4,Promise.all([u,c])];case 1:return l=m.sent(),f=l[0],d=l[1],function(){for(var e=window.document.getElementsByTagName("script"),t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(r.src&&r.src.includes(ne))return r}return null}()||function(e,t){var n=document.createElement("script");n.src=ne+"?l="+e+"&id="+t,n.async=!0,document.head.appendChild(n)}(o,f.measurementId),a("js",new Date),(p={}).origin="firebase",p.update=!0,h=p,null!=d&&(h.firebase_id=d),a(Q.CONFIG,f.measurementId,h),[2,f.measurementId]}}))}))}var ge,be,we={},ye=[],Ie={},_e="dataLayer",Ee="gtag",Te=!1;function Ce(e){if(Te)throw ce.create("already-initialized");e.dataLayerName&&(_e=e.dataLayerName),e.gtagName&&(Ee=e.gtagName)}function Se(e,t){!function(){var e=[];if((0,s.ru)()&&e.push("This is a browser extension environment."),(0,s.zI)()||e.push("Cookies are not available."),e.length>0){var t=e.map((function(e,t){return"("+(t+1)+") "+e})).join(" "),n=ce.create("invalid-analytics-context",{errorInfo:t});ie.warn(n.message)}}();var n=e.options.appId;if(!n)throw ce.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw ce.create("no-api-key");ie.warn('The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID '+e.options.measurementId+' provided in the "measurementId" field in the local Firebase config.')}if(null!=we[n])throw ce.create("already-exists",{id:n});if(!Te){!function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(_e);var r=se(we,ye,Ie,_e,Ee),a=r.wrappedGtag,o=r.gtagCore;be=a,ge=o,Te=!0}we[n]=ve(e,ye,Ie,t,ge,_e);var u={app:e,logEvent:function(e,t,r){(function(e,t,n,r,a){return(0,i.mG)(this,void 0,void 0,(function(){var o,s;return(0,i.Jh)(this,(function(u){switch(u.label){case 0:return a&&a.global?(e(Q.EVENT,n,r),[2]):[3,1];case 1:return[4,t];case 2:o=u.sent(),s=(0,i.pi)((0,i.pi)({},r),{send_to:o}),e(Q.EVENT,n,s),u.label=3;case 3:return[2]}}))}))})(be,we[n],e,t,r).catch((function(e){return ie.error(e)}))},setCurrentScreen:function(e,t){(function(e,t,n,r){return(0,i.mG)(this,void 0,void 0,(function(){var a;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return r&&r.global?(e(Q.SET,{screen_name:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:a=i.sent(),e(Q.CONFIG,a,{update:!0,screen_name:n}),i.label=3;case 3:return[2]}}))}))})(be,we[n],e,t).catch((function(e){return ie.error(e)}))},setUserId:function(e,t){(function(e,t,n,r){return(0,i.mG)(this,void 0,void 0,(function(){var a;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return r&&r.global?(e(Q.SET,{user_id:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:a=i.sent(),e(Q.CONFIG,a,{update:!0,user_id:n}),i.label=3;case 3:return[2]}}))}))})(be,we[n],e,t).catch((function(e){return ie.error(e)}))},setUserProperties:function(e,t){(function(e,t,n,r){return(0,i.mG)(this,void 0,void 0,(function(){var a,o,s,u,c;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:if(!r||!r.global)return[3,1];for(a={},o=0,s=Object.keys(n);o<s.length;o++)u=s[o],a["user_properties."+u]=n[u];return e(Q.SET,a),[2,Promise.resolve()];case 1:return[4,t];case 2:c=i.sent(),e(Q.CONFIG,c,{update:!0,user_properties:n}),i.label=3;case 3:return[2]}}))}))})(be,we[n],e,t).catch((function(e){return ie.error(e)}))},setAnalyticsCollectionEnabled:function(e){(function(e,t){return(0,i.mG)(this,void 0,void 0,(function(){var n;return(0,i.Jh)(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),window["ga-disable-"+n]=!t,[2]}}))}))})(we[n],e).catch((function(e){return ie.error(e)}))},INTERNAL:{delete:function(){return delete we[n],Promise.resolve()}}};return u}var De="analytics";function Ne(){return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){switch(e.label){case 0:if((0,s.ru)())return[2,!1];if(!(0,s.zI)())return[2,!1];if(!(0,s.hl)())return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,(0,s.eu)()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,!1];case 4:return[2]}}))}))}!function(e){e.INTERNAL.registerComponent(new o.wA(De,(function(e){return Se(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:Ce,EventName:ee,isSupported:Ne})),e.INTERNAL.registerComponent(new o.wA("analytics-internal",(function(e){try{return{logEvent:e.getProvider(De).getImmediate().logEvent}}catch(t){throw ce.create("interop-component-reg-failed",{reason:t})}}),"PRIVATE")),e.registerVersion("@firebase/analytics","0.6.18")}(a.Z)},5399:function(e,t){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var i,a=new Promise((function(a,o){n(i=e[t].apply(e,r)).then(a,o)}));return a.request=i,a}function i(e,t,n){var i=r(e,t,n);return i.then((function(e){if(e)return new l(e,i.request)}))}function a(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function o(e,t,n,i){i.forEach((function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function u(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return i(this[t],r,arguments)})}))}function c(e){this._index=e}function l(e,t){this._cursor=e,this._request=t}function f(e){this._store=e}function d(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function h(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new d(n)}function p(e){this._db=e}function m(e,t,n){var i=r(indexedDB,"open",[e,t]),a=i.request;return a&&(a.onupgradeneeded=function(e){n&&n(new h(a.result,e.oldVersion,a.transaction))}),i.then((function(e){return new p(e)}))}function v(e){return r(indexedDB,"deleteDatabase",[e])}a(c,"_index",["name","keyPath","multiEntry","unique"]),o(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),u(c,"_index",IDBIndex,["openCursor","openKeyCursor"]),a(l,"_cursor",["direction","key","primaryKey","value"]),o(l,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(l.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new l(e,t._request)}))}))})})),f.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},f.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},a(f,"_store",["name","keyPath","indexNames","autoIncrement"]),o(f,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),u(f,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(f,"_store",IDBObjectStore,["deleteIndex"]),d.prototype.objectStore=function(){return new f(this._tx.objectStore.apply(this._tx,arguments))},a(d,"_tx",["objectStoreNames","mode"]),s(d,"_tx",IDBTransaction,["abort"]),h.prototype.createObjectStore=function(){return new f(this._db.createObjectStore.apply(this._db,arguments))},a(h,"_db",["name","version","objectStoreNames"]),s(h,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new d(this._db.transaction.apply(this._db,arguments))},a(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(e){[f,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],i=this._store||this._index,a=i[e].apply(i,n.slice(0,-1));a.onsuccess=function(){r(a.result)}})}))})),[c,f].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(i){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)}))}))})})),e.openDb=m,e.deleteDb=v,Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]);
//# sourceMappingURL=207-1c068906b152e702e80b.js.map