!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).firebase=t()}(this,function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function i(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function o(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=o(e[n],t[n]));return e}var a=(s.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,r))}},s);function s(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}var c,u=(function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(l,c=Error),l);function l(e,t,n){return(t=c.call(this,t)||this).code=e,t.customData=n,t.name="FirebaseError",Object.setPrototypeOf(t,l.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,f.prototype.create),t}var f=(p.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=t[0]||{},o=this.service+"/"+e;e=(e=this.errors[e])?(r=i,e.replace(d,function(e,t){var n=r[t];return null!=n?String(n):"<"+t+"?>"})):"Error",e=this.serviceName+": "+e+" ("+o+").";return new u(o,e,i)},p);function p(e,t,n){this.service=e,this.serviceName=t,this.errors=n}var d=/\{\$([^}]+)}/g;function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return(t=new m(e,t)).subscribe.bind(t)}var m=(g.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},g.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},g.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},g.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");return void 0===(r=function(e){if("object"!=typeof e||null===e)return!1;for(var t=0,n=["next","error","complete"];t<n.length;t++){var r=n[t];if(r in e&&"function"==typeof e[r])return!0}return!1}(e)?e:{next:e,error:t,complete:n}).next&&(r.next=y),void 0===r.error&&(r.error=y),void 0===r.complete&&(r.complete=y),n=this.unsubscribeOne.bind(this,this.observers.length),this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}}),this.observers.push(r),n},g.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],--this.observerCount,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},g.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},g.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})},g.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},g);function g(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}function y(){}var b=(w.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},w.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},w.prototype.setServiceProps=function(e){return this.serviceProps=e,this},w.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},w);function w(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}var I="[DEFAULT]",E=(_.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)&&(e=new a,this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize()))try{var n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}return this.instancesDeferred.get(t).promise},_.prototype.getImmediate=function(e){var t=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier);e=null!==(e=null==e?void 0:e.optional)&&void 0!==e&&e;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(e)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(t){if(e)return null;throw t}},_.prototype.getComponent=function(){return this.component},_.prototype.setComponent=function(e){var t,i;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:I})}catch(e){}try{for(var o=n(this.instancesDeferred.entries()),a=o.next();!a.done;a=o.next()){var s=r(a.value,2),c=s[0],u=s[1],l=this.normalizeInstanceIdentifier(c);try{var f=this.getOrInitializeService({instanceIdentifier:l});u.resolve(f)}catch(e){}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}}},_.prototype.clearInstance=function(e){this.instancesDeferred.delete(e=void 0===e?I:e),this.instancesOptions.delete(e),this.instances.delete(e)},_.prototype.delete=function(){return function(e,t,n,r){return new(n=n||Promise)(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function(){var e;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(i(i([],r(e.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))),r(e.filter(function(e){return"_delete"in e}).map(function(e){return e._delete()}))))];case 1:return t.sent(),[2]}})})},_.prototype.isComponentSet=function(){return null!=this.component},_.prototype.isInitialized=function(e){return this.instances.has(e=void 0===e?I:e)},_.prototype.getOptions=function(e){return this.instancesOptions.get(e=void 0===e?I:e)||{}},_.prototype.initialize=function(e){var t,i,o=void 0===(o=(e=void 0===e?{}:e).options)?{}:o,a=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(a))throw Error(this.name+"("+a+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var s=this.getOrInitializeService({instanceIdentifier:a,options:o});try{for(var c=n(this.instancesDeferred.entries()),u=c.next();!u.done;u=c.next()){var l=r(u.value,2),f=l[0],p=l[1];a===this.normalizeInstanceIdentifier(f)&&p.resolve(s)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(t)throw t.error}}return s},_.prototype.onInit=function(e,t){var n=this.normalizeInstanceIdentifier(t),r=null!==(t=this.onInitCallbacks.get(n))&&void 0!==t?t:new Set;return r.add(e),this.onInitCallbacks.set(n,r),(t=this.instances.get(n))&&e(t,n),function(){r.delete(e)}},_.prototype.invokeOnInitCallbacks=function(e,t){var r,i,o=this.onInitCallbacks.get(t);if(o)try{for(var a=n(o),s=a.next();!s.done;s=a.next()){var c=s.value;try{c(e,t)}catch(e){}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},_.prototype.getOrInitializeService=function(e){var t=e.instanceIdentifier,n=e.options,r=void 0===n?{}:n;if(!(e=this.instances.get(t))&&this.component&&(e=this.component.instanceFactory(this.container,{instanceIdentifier:(n=t)===I?void 0:n,options:r}),this.instances.set(t,e),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(e,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,e)}catch(e){}return e||null},_.prototype.normalizeInstanceIdentifier=function(e){return void 0===e&&(e=I),!this.component||this.component.multipleInstances?e:I},_.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},_);function _(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}var C=(S.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},S.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},S.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new E(e,this);return this.providers.set(e,t),t},S.prototype.getProviders=function(){return Array.from(this.providers.values())},S);function S(e){this.name=e,this.providers=new Map}var O,N=[];function T(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var o=(new Date).toISOString(),a=D[t];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[a].apply(console,i(["["+o+"]  "+e.name+":"],n))}}(L=O=O||{})[L.DEBUG=0]="DEBUG",L[L.VERBOSE=1]="VERBOSE",L[L.INFO=2]="INFO",L[L.WARN=3]="WARN",L[L.ERROR=4]="ERROR",L[L.SILENT=5]="SILENT";var P={debug:O.DEBUG,verbose:O.VERBOSE,info:O.INFO,warn:O.WARN,error:O.ERROR,silent:O.SILENT},A=O.INFO,D=((x={})[O.DEBUG]="log",x[O.VERBOSE]="log",x[O.INFO]="info",x[O.WARN]="warn",x[O.ERROR]="error",x),L=(Object.defineProperty(k.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in O))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),k.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?P[e]:e},Object.defineProperty(k.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),k.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,i([this,O.DEBUG],e)),this._logHandler.apply(this,i([this,O.DEBUG],e))},k.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,i([this,O.VERBOSE],e)),this._logHandler.apply(this,i([this,O.VERBOSE],e))},k.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,i([this,O.INFO],e)),this._logHandler.apply(this,i([this,O.INFO],e))},k.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,i([this,O.WARN],e)),this._logHandler.apply(this,i([this,O.WARN],e))},k.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,i([this,O.ERROR],e)),this._logHandler.apply(this,i([this,O.ERROR],e))},k);function k(e){this.name=e,this._logLevel=A,this._logHandler=T,this._userLogHandler=null,N.push(this)}function R(e){N.forEach(function(t){t.setLogLevel(e)})}var x=((x={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",x["bad-app-name"]="Illegal App name: '{$appName}",x["duplicate-app"]="Firebase App named '{$appName}' already exists",x["app-deleted"]="Firebase App named '{$appName}' already deleted",x["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",x["invalid-log-argument"]="First argument to `onLog` must be null or a function.",x),j=new f("app","Firebase",x),F="@firebase/app",M="[DEFAULT]",B=((x={})[F]="fire-core",x["@firebase/analytics"]="fire-analytics",x["@firebase/app-check"]="fire-app-check",x["@firebase/auth"]="fire-auth",x["@firebase/database"]="fire-rtdb",x["@firebase/functions"]="fire-fn",x["@firebase/installations"]="fire-iid",x["@firebase/messaging"]="fire-fcm",x["@firebase/performance"]="fire-perf",x["@firebase/remote-config"]="fire-rc",x["@firebase/storage"]="fire-gcs",x["@firebase/firestore"]="fire-fst",x["fire-js"]="fire-js",x["firebase-wrapper"]="fire-js-all",x),H=new L("@firebase/app"),U=(Object.defineProperty(V.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),V.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map(function(e){return e.delete()}))}).then(function(){e.isDeleted_=!0})},V.prototype._getService=function(e,t){void 0===t&&(t=M),this.checkDestroyed_();var n=this.container.getProvider(e);return n.isInitialized()||"EXPLICIT"!==(null===(e=n.getComponent())||void 0===e?void 0:e.instantiationMode)||n.initialize(),n.getImmediate({identifier:t})},V.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=M),this.container.getProvider(e).clearInstance(t)},V.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){H.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},V.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},V.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},V.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw j.create("app-deleted",{appName:this.name_})},V);function V(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=o(void 0,e),this.container=new C(t.name),this._addComponent(new b("app",function(){return r},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(e){return r._addComponent(e)})}U.prototype.name&&U.prototype.options||U.prototype.delete||console.log("dc");function z(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"==typeof i&&null!==i||(i={name:i});var o=i;if(void 0===o.name&&(o.name=M),"string"!=typeof(i=o.name)||!i)throw j.create("bad-app-name",{appName:String(i)});if(h(t,i))throw j.create("duplicate-app",{appName:i});return o=new e(n,o,r),t[i]=o},app:i,registerVersion:function(e,t,n){var r=null!==(i=B[e])&&void 0!==i?i:e;n&&(r+="-"+n);var i=r.match(/\s|\//);e=t.match(/\s|\//);i||e?(n=['Unable to register library "'+r+'" with version "'+t+'":'],i&&n.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),i&&e&&n.push("and"),e&&n.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),H.warn(n.join(" "))):a(new b(r+"-version",function(){return{library:r,version:t}},"VERSION"))},setLogLevel:R,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw j.create("invalid-log-argument");!function(e,t){for(var n=0,r=N;n<r.length;n++)!function(n){var r=null;t&&t.level&&(r=P[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var a=i.map(function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(function(e){return e}).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:O[n].toLowerCase(),message:a,args:i,type:t.name})}}(r[n])}(e,t)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:a,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){return"serverAuth"!==t?t:null}}};function i(e){if(!h(t,e=e||M))throw j.create("no-app",{appName:e});return t[e]}function a(a){var s,c=a.name;if(n.has(c))return H.debug("There were multiple attempts to register component "+c+"."),"PUBLIC"===a.type?r[c]:null;n.set(c,a),"PUBLIC"===a.type&&(s=function(e){if("function"!=typeof(e=void 0===e?i():e)[c])throw j.create("invalid-app-argument",{appName:c});return e[c]()},void 0!==a.serviceProps&&o(s,a.serviceProps),r[c]=s,e.prototype[c]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,c).apply(this,a.multipleInstances?e:[])});for(var u=0,l=Object.keys(t);u<l.length;u++){var f=l[u];t[f]._addComponent(a)}return"PUBLIC"===a.type?r[c]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map(function(e){return t[e]})}}),i.App=e,r}x=function e(){var n=z(U);return n.INTERNAL=t(t({},n.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){o(n,e)},createSubscribe:v,ErrorFactory:f,deepExtend:o}),n}();var G=($.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){return function(e){return"VERSION"===(null==(e=e.getComponent())?void 0:e.type)}(e)?(e=e.getImmediate()).library+"/"+e.version:null}).filter(function(e){return e}).join(" ")},$);function $(e){this.container=e}"object"==typeof self&&self.self===self&&void 0!==self.firebase&&(H.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  "),(L=self.firebase.SDK_VERSION)&&0<=L.indexOf("LITE")&&H.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    "));var q=x.initializeApp;x.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return}}()&&H.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),q.apply(void 0,e)};var W,K=x;return(W=K).INTERNAL.registerComponent(new b("platform-logger",function(e){return new G(e)},"PRIVATE")),W.registerVersion(F,"0.6.30",void 0),W.registerVersion("fire-js",""),K.registerVersion("firebase","8.10.0","app"),K.SDK_VERSION="8.10.0",K}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).firebase)}(this,function(e){"use strict";try{(function(){var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t,n,r){return new(n=n||Promise)(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function c(){var e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function u(){return"indexedDB"in self&&null!=indexedDB}function l(){return new Promise(function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})}function f(){return!(!navigator||!navigator.cookieEnabled)}var p,d=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(h,p=Error),h);function h(e,t,n){return(t=p.call(this,t)||this).code=e,t.customData=n,t.name="FirebaseError",Object.setPrototypeOf(t,h.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,v.prototype.create),t}var v=(m.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=t[0]||{},o=this.service+"/"+e;e=(e=this.errors[e])?(r=i,e.replace(g,function(e,t){var n=r[t];return null!=n?String(n):"<"+t+"?>"})):"Error",e=this.serviceName+": "+e+" ("+o+").";return new d(o,e,i)},m);function m(e,t,n){this.service=e,this.serviceName=t,this.errors=n}var g=/\{\$([^}]+)}/g;function y(e,t,n){return void 0===n&&(n=2),n=(t=void 0===t?1e3:t)*Math.pow(n,e),e=Math.round(.5*n*(Math.random()-.5)*2),Math.min(144e5,n+e)}var b=(w.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},w.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},w.prototype.setServiceProps=function(e){return this.serviceProps=e,this},w.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},w);function w(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}function I(e){return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function E(e,t,n){var r,i=new Promise(function(i,o){I(r=e[t].apply(e,n)).then(i,o)});return i.request=r,i}function _(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 C(e,t,n,r){r.forEach(function(r){r in n.prototype&&(e.prototype[r]=function(){return E(this[t],r,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 O(e,t,n,r){r.forEach(function(r){r in n.prototype&&(e.prototype[r]=function(){return e=this[t],(n=E(e,r,arguments)).then(function(e){if(e)return new T(e,n.request)});var e,n})})}function N(e){this._index=e}function T(e,t){this._cursor=e,this._request=t}function P(e){this._store=e}function A(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 D(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new A(n)}function L(e){this._db=e}_(N,"_index",["name","keyPath","multiEntry","unique"]),C(N,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),O(N,"_index",IDBIndex,["openCursor","openKeyCursor"]),_(T,"_cursor",["direction","key","primaryKey","value"]),C(T,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(e){e in IDBCursor.prototype&&(T.prototype[e]=function(){var t=this,n=arguments;return Promise.resolve().then(function(){return t._cursor[e].apply(t._cursor,n),I(t._request).then(function(e){if(e)return new T(e,t._request)})})})}),P.prototype.createIndex=function(){return new N(this._store.createIndex.apply(this._store,arguments))},P.prototype.index=function(){return new N(this._store.index.apply(this._store,arguments))},_(P,"_store",["name","keyPath","indexNames","autoIncrement"]),C(P,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),O(P,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),S(P,"_store",IDBObjectStore,["deleteIndex"]),A.prototype.objectStore=function(){return new P(this._tx.objectStore.apply(this._tx,arguments))},_(A,"_tx",["objectStoreNames","mode"]),S(A,"_tx",IDBTransaction,["abort"]),D.prototype.createObjectStore=function(){return new P(this._db.createObjectStore.apply(this._db,arguments))},_(D,"_db",["name","version","objectStoreNames"]),S(D,"_db",IDBDatabase,["deleteObjectStore","close"]),L.prototype.transaction=function(){return new A(this._db.transaction.apply(this._db,arguments))},_(L,"_db",["name","version","objectStoreNames"]),S(L,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach(function(e){[P,N].forEach(function(t){e in t.prototype&&(t.prototype[e.replace("open","iterate")]=function(){var t=(r=arguments,Array.prototype.slice.call(r)),n=t[t.length-1],r=this._store||this._index,i=r[e].apply(r,t.slice(0,-1));i.onsuccess=function(){n(i.result)}})})}),[N,P].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)})})})});var k="0.4.32",R="w:"+k,x="FIS_v2",j=((Ee={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',Ee["not-registered"]="Firebase Installation is not registered.",Ee["installation-not-found"]="Firebase Installation not found.",Ee["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',Ee["app-offline"]="Could not process request. Application offline.",Ee["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",Ee),F=new v("installations","Installations",j);function M(e){return e instanceof d&&e.code.includes("request-failed")}function B(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+(e=e.projectId)+"/installations"}function H(e){return{token:e.token,requestStatus:2,expiresIn:(e=e.expiresIn,Number(e.replace("s","000"))),creationTime:Date.now()}}function U(e,t){return i(this,void 0,void 0,function(){var n;return o(this,function(r){switch(r.label){case 0:return[4,t.json()];case 1:return n=(n=r.sent()).error,[2,F.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})]}})})}function V(e){return e=e.apiKey,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function z(e,t){return t=t.refreshToken,(e=V(e)).append("Authorization",x+" "+t),e}function G(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return 500<=(t=n.sent()).status&&t.status<600?[2,e()]:[2,t]}})})}function $(e){return new Promise(function(t){setTimeout(t,e)})}var q=/^[cdef][\w-]{21}$/;function W(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return btoa(String.fromCharCode.apply(String,s([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(e)))).replace(/\+/g,"-").replace(/\//g,"_")}(e).substr(0,22);return q.test(t)?t:""}catch(e){return""}}function K(e){return e.appName+"!"+e.appId}var J=new Map;function Y(e,t){X(e=K(e),t),function(e,t){var n=Q();n&&n.postMessage({key:e,fid:t}),ee()}(e,t)}function X(e,t){var n,r;if(e=J.get(e))try{for(var i=a(e),o=i.next();!o.done;o=i.next())(0,o.value)(t)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}var Z=null;function Q(){return!Z&&"BroadcastChannel"in self&&((Z=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){X(e.data.key,e.data.fid)}),Z}function ee(){0===J.size&&Z&&(Z.close(),Z=null)}var te,ne,re="firebase-installations-store",ie=null;function oe(){var e,t,n;return ie||(e=1,t=function(e){0===e.oldVersion&&e.createObjectStore(re)},(n=(e=E(indexedDB,"open",["firebase-installations-database",1])).request)&&(n.onupgradeneeded=function(e){t&&t(new D(n.result,e.oldVersion,n.transaction))}),ie=e.then(function(e){return new L(e)})),ie}function ae(e,t){return i(this,void 0,void 0,function(){var n,r,i,a;return o(this,function(o){switch(o.label){case 0:return n=K(e),[4,oe()];case 1:return i=o.sent(),r=i.transaction(re,"readwrite"),[4,(i=r.objectStore(re)).get(n)];case 2:return a=o.sent(),[4,i.put(t,n)];case 3:return o.sent(),[4,r.complete];case 4:return o.sent(),a&&a.fid===t.fid||Y(e,t.fid),[2,t]}})})}function se(e){return i(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return t=K(e),[4,oe()];case 1:return[4,(n=(n=r.sent()).transaction(re,"readwrite")).objectStore(re).delete(t)];case 2:return r.sent(),[4,n.complete];case 3:return r.sent(),[2]}})})}function ce(e,t){return i(this,void 0,void 0,function(){var n,r,i,a,s;return o(this,function(o){switch(o.label){case 0:return n=K(e),[4,oe()];case 1:return i=o.sent(),r=i.transaction(re,"readwrite"),[4,(i=r.objectStore(re)).get(n)];case 2:return a=o.sent(),void 0!==(s=t(a))?[3,4]:[4,i.delete(n)];case 3:return o.sent(),[3,6];case 4:return[4,i.put(s,n)];case 5:o.sent(),o.label=6;case 6:return[4,r.complete];case 7:return o.sent(),!s||a&&a.fid===s.fid||Y(e,s.fid),[2,s]}})})}function ue(e){return i(this,void 0,void 0,function(){var t,n,r;return o(this,function(a){switch(a.label){case 0:return[4,ce(e,function(n){return n=fe(n||{fid:W(),registrationStatus:0}),n=function(e,t){return 0!==t.registrationStatus?1===t.registrationStatus?{installationEntry:t,registrationPromise:function(e){return i(this,void 0,void 0,function(){var t,n,r;return o(this,function(i){switch(i.label){case 0:return[4,le(e)];case 1:t=i.sent(),i.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,$(100)];case 3:return i.sent(),[4,le(e)];case 4:return t=i.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,ue(e)];case 6:return r=i.sent(),n=r.installationEntry,(r=r.registrationPromise)?[2,r]:[2,n];case 7:return[2,t]}})})}(e)}:{installationEntry:t}:navigator.onLine?(e=function(e,t){return i(this,void 0,void 0,function(){var n,r;return o(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,7]),[4,function(e,t){var n=t.fid;return i(this,void 0,void 0,function(){var t,r,i,a,s;return o(this,function(o){switch(o.label){case 0:return t=B(e),r=V(e),s={fid:n,authVersion:x,appId:e.appId,sdkVersion:R},i={method:"POST",headers:r,body:JSON.stringify(s)},[4,G(function(){return fetch(t,i)})];case 1:return(a=o.sent()).ok?[4,a.json()]:[3,3];case 2:return[2,{fid:(s=o.sent()).fid||n,registrationStatus:2,refreshToken:s.refreshToken,authToken:H(s.authToken)}];case 3:return[4,U("Create Installation",a)];case 4:throw o.sent()}})})}(e,t)];case 1:return n=a.sent(),[2,ae(e,n)];case 2:return M(r=a.sent())&&409===r.customData.serverCode?[4,se(e)]:[3,4];case 3:return a.sent(),[3,6];case 4:return[4,ae(e,{fid:t.fid,registrationStatus:0})];case 5:a.sent(),a.label=6;case 6:throw r;case 7:return[2]}})})}(e,t={fid:t.fid,registrationStatus:1,registrationTime:Date.now()}),{installationEntry:t,registrationPromise:e}):{installationEntry:t,registrationPromise:Promise.reject(F.create("app-offline"))}}(e,n),t=n.registrationPromise,n.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 le(e){return ce(e,function(e){if(!e)throw F.create("installation-not-found");return fe(e)})}function fe(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function pe(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return i(this,void 0,void 0,function(){var e,i,a,s,c;return o(this,function(o){switch(o.label){case 0:return e=function(e,t){return t=t.fid,B(e)+"/"+t+"/authTokens:generate"}(n,t),i=z(n,t),(c=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",c.getPlatformInfoString()),c={installation:{sdkVersion:R}},a={method:"POST",headers:i,body:JSON.stringify(c)},[4,G(function(){return fetch(e,a)})];case 1:return(s=o.sent()).ok?[4,s.json()]:[3,3];case 2:return[2,H(c=o.sent())];case 3:return[4,U("Generate Auth Token",s)];case 4:throw o.sent()}})})}function de(e,t){return void 0===t&&(t=!1),i(this,void 0,void 0,function(){var n,a,s;return o(this,function(c){switch(c.label){case 0:return[4,ce(e.appConfig,function(a){if(!ve(a))throw F.create("not-registered");var s,c=a.authToken;if(t||2!==(s=c).requestStatus||function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(s)){if(1===c.requestStatus)return n=function(e,t){return i(this,void 0,void 0,function(){var n;return o(this,function(r){switch(r.label){case 0:return[4,he(e.appConfig)];case 1:n=r.sent(),r.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,$(100)];case 3:return r.sent(),[4,he(e.appConfig)];case 4:return n=r.sent(),[3,2];case 5:return 0===(n=n.authToken).requestStatus?[2,de(e,t)]:[2,n]}})})}(e,t),a;if(!navigator.onLine)throw F.create("app-offline");return s=a,c={requestStatus:1,requestTime:Date.now()},c=r(r({},s),{authToken:c}),n=function(e,t){return i(this,void 0,void 0,function(){var n,i,a;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,pe(e,t)];case 1:return n=o.sent(),a=r(r({},t),{authToken:n}),[4,ae(e.appConfig,a)];case 2:return o.sent(),[2,n];case 3:return!M(i=o.sent())||401!==i.customData.serverCode&&404!==i.customData.serverCode?[3,5]:[4,se(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return a=r(r({},t),{authToken:{requestStatus:0}}),[4,ae(e.appConfig,a)];case 6:o.sent(),o.label=7;case 7:throw i;case 8:return[2]}})})}(e,c),c}return a})];case 1:return a=c.sent(),n?[4,n]:[3,3];case 2:return s=c.sent(),[3,4];case 3:s=a.authToken,c.label=4;case 4:return[2,s]}})})}function he(e){return ce(e,function(e){if(!ve(e))throw F.create("not-registered");var t=e.authToken;return 1===t.requestStatus&&t.requestTime+1e4<Date.now()?r(r({},e),{authToken:{requestStatus:0}}):e})}function ve(e){return void 0!==e&&2===e.registrationStatus}function me(e,t){return i(this,void 0,void 0,function(){var n,r,i;return o(this,function(o){switch(o.label){case 0:return n=function(e,t){return t=t.fid,B(e)+"/"+t}(e,t),i=z(e,t),r={method:"DELETE",headers:i},[4,G(function(){return fetch(n,r)})];case 1:return(i=o.sent()).ok?[3,3]:[4,U("Delete Installation",i)];case 2:throw o.sent();case 3:return[2]}})})}function ge(e){return F.create("missing-app-config-values",{valueName:e})}function ye(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var i=(new Date).toISOString(),o=Ie[t];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[o].apply(console,s(["["+i+"]  "+e.name+":"],n))}}(te=t.default).INTERNAL.registerComponent(new b("installations",function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw ge("App Configuration");if(!e.name)throw ge("App Name");try{for(var r=a(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!e.options[o])throw ge(o)}}catch(e){t={error:e}}finally{try{i&&!i.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),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(e){return i(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return[4,ue(e.appConfig)];case 1:return t=r.sent(),n=t.installationEntry,(t.registrationPromise||de(e)).catch(console.error),[2,n.fid]}})})}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),i(this,void 0,void 0,function(){return o(this,function(n){switch(n.label){case 0:return[4,function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,ue(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})}(e.appConfig)];case 1:return n.sent(),[4,de(e,t)];case 2:return[2,n.sent().token]}})})}(n,e)},delete:function(){return function(e){return i(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return[4,ce(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 F.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw F.create("app-offline");case 3:return[4,me(t,n)];case 4:return r.sent(),[4,se(t)];case 5:r.sent(),r.label=6;case 6:return[2]}})})}(n)},onIdChange:function(e){return function(e,t){var n=e.appConfig;return function(e,t){Q();var n=K(e);(e=J.get(n))||(e=new Set,J.set(n,e)),e.add(t)}(n,t),function(){var e,r,i;r=t,i=K(e=n),(e=J.get(i))&&(e.delete(r),0===e.size&&J.delete(i),ee())}}(n,e)}}},"PUBLIC")),te.registerVersion("@firebase/installations",k),(Ee=ne=ne||{})[Ee.DEBUG=0]="DEBUG",Ee[Ee.VERBOSE=1]="VERBOSE",Ee[Ee.INFO=2]="INFO",Ee[Ee.WARN=3]="WARN",Ee[Ee.ERROR=4]="ERROR",Ee[Ee.SILENT=5]="SILENT";var be={debug:ne.DEBUG,verbose:ne.VERBOSE,info:ne.INFO,warn:ne.WARN,error:ne.ERROR,silent:ne.SILENT},we=ne.INFO,Ie=((j={})[ne.DEBUG]="log",j[ne.VERBOSE]="log",j[ne.INFO]="info",j[ne.WARN]="warn",j[ne.ERROR]="error",j),Ee=(Object.defineProperty(_e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in ne))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),_e.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?be[e]:e},Object.defineProperty(_e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),_e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,ne.DEBUG],e)),this._logHandler.apply(this,s([this,ne.DEBUG],e))},_e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,ne.VERBOSE],e)),this._logHandler.apply(this,s([this,ne.VERBOSE],e))},_e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,ne.INFO],e)),this._logHandler.apply(this,s([this,ne.INFO],e))},_e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,ne.WARN],e)),this._logHandler.apply(this,s([this,ne.WARN],e))},_e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,s([this,ne.ERROR],e)),this._logHandler.apply(this,s([this,ne.ERROR],e))},_e);function _e(e){this.name=e,this._logLevel=we,this._logHandler=ye,this._userLogHandler=null}var Ce,Se,Oe="https://www.googletagmanager.com/gtag/js";(j=Ce=Ce||{}).EVENT="event",j.SET="set",j.CONFIG="config",(j=Se=Se||{}).ADD_SHIPPING_INFO="add_shipping_info",j.ADD_PAYMENT_INFO="add_payment_info",j.ADD_TO_CART="add_to_cart",j.ADD_TO_WISHLIST="add_to_wishlist",j.BEGIN_CHECKOUT="begin_checkout",j.CHECKOUT_PROGRESS="checkout_progress",j.EXCEPTION="exception",j.GENERATE_LEAD="generate_lead",j.LOGIN="login",j.PAGE_VIEW="page_view",j.PURCHASE="purchase",j.REFUND="refund",j.REMOVE_FROM_CART="remove_from_cart",j.SCREEN_VIEW="screen_view",j.SEARCH="search",j.SELECT_CONTENT="select_content",j.SELECT_ITEM="select_item",j.SELECT_PROMOTION="select_promotion",j.SET_CHECKOUT_OPTION="set_checkout_option",j.SHARE="share",j.SIGN_UP="sign_up",j.TIMING_COMPLETE="timing_complete",j.VIEW_CART="view_cart",j.VIEW_ITEM="view_item",j.VIEW_ITEM_LIST="view_item_list",j.VIEW_PROMOTION="view_promotion",j.VIEW_SEARCH_RESULTS="view_search_results";var Ne=new Ee("@firebase/analytics");(Ee={})["already-exists"]="A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.",Ee["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",Ee["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",Ee["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}",Ee["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Ee["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",Ee["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",Ee["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',Ee["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.';var Te=new v("analytics","Analytics",Ee);function Pe(e,t){void 0===t&&(t=1e3),this.throttleMetadata=e=void 0===e?{}:e,this.intervalMillis=t}var Ae=new(Pe.prototype.getThrottleMetadata=function(e){return this.throttleMetadata[e]},Pe.prototype.setThrottleMetadata=function(e,t){this.throttleMetadata[e]=t},Pe.prototype.deleteThrottleMetadata=function(e){delete this.throttleMetadata[e]},Pe);function De(e){var t;return i(this,void 0,void 0,function(){var n,r,i,a;return o(this,function(o){switch(o.label){case 0:return n=e.appId,a=e.apiKey,a={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":a})},n="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),[4,fetch(n,a)];case 1:if(200===(r=o.sent()).status||304===r.status)return[3,6];i="",o.label=2;case 2:return o.trys.push([2,4,,5]),[4,r.json()];case 3:return a=o.sent(),null!==(t=a.error)&&void 0!==t&&t.message&&(i=a.error.message),[3,5];case 4:return o.sent(),[3,5];case 5:throw Te.create("config-fetch-failed",{httpStatus:r.status,responseMessage:i});case 6:return[2,r.json()]}})})}function Le(e,t){return new Promise(function(n,r){var i=Math.max(t-Date.now(),0),o=setTimeout(n,i);e.addEventListener(function(){clearTimeout(o),r(Te.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function ke(e){if(e instanceof d&&e.customData)return 429===(e=Number(e.customData.httpStatus))||500===e||503===e||504===e}var Re=(xe.prototype.addEventListener=function(e){this.listeners.push(e)},xe.prototype.abort=function(){this.listeners.forEach(function(e){return e()})},xe);function xe(){this.listeners=[]}function je(e,t,n,r,a,s){return i(this,void 0,void 0,function(){var c,f,p;return o(this,function(d){switch(d.label){case 0:return(c=function(e,t,n){return void 0===t&&(t=Ae),i(this,void 0,void 0,function(){var r,a,s,c,u,l=this;return o(this,function(f){if(c=e.options,r=c.appId,a=c.apiKey,s=c.measurementId,!r)throw Te.create("no-app-id");if(a)return c=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},u=new Re,setTimeout(function(){return i(l,void 0,void 0,function(){return o(this,function(e){return u.abort(),[2]})})},void 0!==n?n:6e4),[2,function e(t,n,r,a){var s=n.throttleEndTimeMillis,c=n.backoffCount;return void 0===a&&(a=Ae),i(this,void 0,void 0,function(){var n,i,u,l,f;return o(this,function(o){switch(o.label){case 0:n=t.appId,i=t.measurementId,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,Le(r,s)];case 2:return o.sent(),[3,4];case 3:if(l=o.sent(),i)return Ne.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+i+' provided in the "measurementId" field in the local Firebase config. ['+l.message+"]"),[2,{appId:n,measurementId:i}];throw l;case 4:return o.trys.push([4,6,,7]),[4,De(t)];case 5:return f=o.sent(),a.deleteThrottleMetadata(n),[2,f];case 6:if(ke(u=o.sent()))return l=503===Number(u.customData.httpStatus)?y(c,a.intervalMillis,30):y(c,a.intervalMillis),f={throttleEndTimeMillis:Date.now()+l,backoffCount:c+1},a.setThrottleMetadata(n,f),Ne.debug("Calling attemptFetch again in "+l+" millis"),[2,e(t,f,r,a)];if(a.deleteThrottleMetadata(n),i)return Ne.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+i+' provided in the "measurementId" field in the local Firebase config. ['+u.message+"]"),[2,{appId:n,measurementId:i}];throw u;case 7:return[2]}})})}({appId:r,apiKey:a,measurementId:s},c,u,t)];if(s)return[2,{measurementId:s,appId:r}];throw Te.create("no-api-key")})})}(e)).then(function(t){n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&Ne.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 Ne.error(e)}),t.push(c),f=function(){return i(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return u()?[3,1]:(Ne.warn(Te.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return t.trys.push([1,3,,4]),[4,l()];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),Ne.warn(Te.create("indexeddb-unavailable",{errorInfo:e}).message),[2,!1];case 4:return[2,!0]}})})}().then(function(e){if(e)return r.getId()}),[4,Promise.all([c,f])];case 1:return p=d.sent(),c=p[0],f=p[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(Oe))return r}}()||(h=s,v=c.measurementId,(m=document.createElement("script")).src=Oe+"?l="+h+"&id="+v,m.async=!0,document.head.appendChild(m)),a("js",new Date),(p={}).origin="firebase",p.update=!0,null!=f&&(p.firebase_id=f),a(Ce.CONFIG,c.measurementId,p),[2,c.measurementId]}var h,v,m})})}var Fe,Me,Be={},He=[],Ue={},Ve="dataLayer",ze="gtag",Ge=!1;function $e(e,t){s=[],c()&&s.push("This is a browser extension environment."),f()||s.push("Cookies are not available."),0<s.length&&(s=s.map(function(e,t){return"("+(t+1)+") "+e}).join(" "),s=Te.create("invalid-analytics-context",{errorInfo:s}),Ne.warn(s.message));var n,a,s,u=e.options.appId;if(!u)throw Te.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw Te.create("no-api-key");Ne.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!=Be[u])throw Te.create("already-exists",{id:u});return Ge||(a=Ve,s=[],Array.isArray(window[a])?s=window[a]:window[a]=s,n=Ve,a=ze,s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window[n].push(arguments)},window[a]&&"function"==typeof window[a]&&(s=window[a]),window[a]=function(e,t,n,r){return function(a,s,c){return i(this,void 0,void 0,function(){var u;return o(this,function(l){switch(l.label){case 0:return l.trys.push([0,6,,7]),a!==Ce.EVENT?[3,2]:[4,function(e,t,n,r,a){return i(this,void 0,void 0,function(){var i,s,c,u,l,f,p;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),i=[],a&&a.send_to?(p=a.send_to,Array.isArray(p)||(p=[p]),[4,Promise.all(n)]):[3,2];case 1:for(s=o.sent(),c=function(e){var n;if(!(n=(n=s.find(function(t){return t.measurementId===e}))&&t[n.appId]))return i=[],"break";i.push(n)},u=0,l=p;u<l.length&&(f=l[u],"break"!==c(f));u++);o.label=2;case 2:return 0===i.length&&(i=Object.values(t)),[4,Promise.all(i)];case 3:return o.sent(),e(Ce.EVENT,r,a||{}),[3,5];case 4:return p=o.sent(),Ne.error(p),[3,5];case 5:return[2]}})})}(e,t,n,s,c)];case 1:return l.sent(),[3,5];case 2:return a!==Ce.CONFIG?[3,4]:[4,function(e,t,n,r,a,s){return i(this,void 0,void 0,function(){var i,c;return o(this,function(o){switch(o.label){case 0:i=r[a],o.label=1;case 1:return o.trys.push([1,7,,8]),i?[4,t[i]]:[3,3];case 2:return o.sent(),[3,6];case 3:return[4,Promise.all(n)];case 4:return(c=(c=o.sent()).find(function(e){return e.measurementId===a}))?[4,t[c.appId]]:[3,6];case 5:o.sent(),o.label=6;case 6:return[3,8];case 7:return c=o.sent(),Ne.error(c),[3,8];case 8:return e(Ce.CONFIG,a,s),[2]}})})}(e,t,n,r,s,c)];case 3:return l.sent(),[3,5];case 4:e(Ce.SET,s),l.label=5;case 5:return[3,7];case 6:return u=l.sent(),Ne.error(u),[3,7];case 7:return[2]}})})}}(s,Be,He,Ue),a={gtagCore:s,wrappedGtag:window[a]},Me=a.wrappedGtag,Fe=a.gtagCore,Ge=!0),Be[u]=je(e,He,Ue,t,Fe,Ve),{app:e,logEvent:function(e,t,n){(function(e,t,n,a,s){return i(this,void 0,void 0,function(){var i;return o(this,function(o){switch(o.label){case 0:return s&&s.global?(e(Ce.EVENT,n,a),[2]):[3,1];case 1:return[4,t];case 2:i=o.sent(),i=r(r({},a),{send_to:i}),e(Ce.EVENT,n,i),o.label=3;case 3:return[2]}})})})(Me,Be[u],e,t,n).catch(function(e){return Ne.error(e)})},setCurrentScreen:function(e,t){(function(e,t,n,r){return i(this,void 0,void 0,function(){var i;return o(this,function(o){switch(o.label){case 0:return r&&r.global?(e(Ce.SET,{screen_name:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=o.sent(),e(Ce.CONFIG,i,{update:!0,screen_name:n}),o.label=3;case 3:return[2]}})})})(Me,Be[u],e,t).catch(function(e){return Ne.error(e)})},setUserId:function(e,t){(function(e,t,n,r){return i(this,void 0,void 0,function(){var i;return o(this,function(o){switch(o.label){case 0:return r&&r.global?(e(Ce.SET,{user_id:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=o.sent(),e(Ce.CONFIG,i,{update:!0,user_id:n}),o.label=3;case 3:return[2]}})})})(Me,Be[u],e,t).catch(function(e){return Ne.error(e)})},setUserProperties:function(e,t){(function(e,t,n,r){return i(this,void 0,void 0,function(){var i,a,s,c,u;return o(this,function(o){switch(o.label){case 0:if(!r||!r.global)return[3,1];for(i={},a=0,s=Object.keys(n);a<s.length;a++)c=s[a],i["user_properties."+c]=n[c];return e(Ce.SET,i),[2,Promise.resolve()];case 1:return[4,t];case 2:u=o.sent(),e(Ce.CONFIG,u,{update:!0,user_properties:n}),o.label=3;case 3:return[2]}})})})(Me,Be[u],e,t).catch(function(e){return Ne.error(e)})},setAnalyticsCollectionEnabled:function(e){(function(e,t){return i(this,void 0,void 0,function(){var n;return o(this,function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),window["ga-disable-"+n]=!t,[2]}})})})(Be[u],e).catch(function(e){return Ne.error(e)})},INTERNAL:{delete:function(){return delete Be[u],Promise.resolve()}}}}var qe,We="analytics";(qe=t.default).INTERNAL.registerComponent(new b(We,function(e){return $e(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())},"PUBLIC").setServiceProps({settings:function(e){if(Ge)throw Te.create("already-initialized");e.dataLayerName&&(Ve=e.dataLayerName),e.gtagName&&(ze=e.gtagName)},EventName:Se,isSupported:function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:if(c())return[2,!1];if(!f())return[2,!1];if(!u())return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,l()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,!1];case 4:return[2]}})})}})),qe.INTERNAL.registerComponent(new b("analytics-internal",function(e){try{return{logEvent:e.getProvider(We).getImmediate().logEvent}}catch(e){throw Te.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),qe.registerVersion("@firebase/analytics","0.6.18")}).apply(this,arguments)}catch(e){throw console.error(e),new Error("Cannot instantiate firebase-analytics.js - be sure to load firebase-app.js first.")}}),function(){firebase.initializeApp(FirebaseConfigScript);const e=firebase.analytics();_vgLogEvent={ApiURLEnumFirebaseSaveDataRequest:{SaveTrackingInformation:"firebase/savetrackinginformation"},model:{CountryNames:["United States","United States","United Kingdom","Canada","Australia"],ProximityCookieName:"proximitystate_v3",EventDurationRemain:0,buttonText:""},LogData:function(e){"undefined"==typeof UserID||""==UserID?(UserID=0,$("#hdnToken3").val(uencrypt(UserID))):$("#hdnToken3").val(uencrypt(UserID));var t="Website",n=!1,r=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();isAndroid=!(!r.match(/Android/i)&&!r.toLowerCase().match(/kf/i)),iPadAndroid=r.match(/ipad/i)||r.match(/iphone/i)||r.match(/itouch/i)||r.match(/android/i)||!1,isAndroidMobile=null!=r.match(/Android/i)&&null!=r.match(/Mobile/i)&&null==r.match(/Windows/i)&&$("#mobile-check").is(":visible"),isiPhone=(null!=r.match(/ipad/i)||null!=r.match(/iphone/i))&&$("#mobile-check").is(":visible"),isiPhone4=(null!=r.match(/ipad/i)||null!=r.match(/iphone/i))&&$("#tinymobile-check").is(":visible"),iOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,isiOSPRO=r.match(/com.vagaro.iospro/i),isWebKit=r.match(/webkit/i)||!1,iMacSafari=r.match(/safari/i)&&r.match(/mac/i)||!1,isEdge=r.match(/edge/i)||!1,isAndroid?r.indexOf("customerandroid")>-1?(t="Android",n=!0):t="Android Broswer":isiPhone|isiPhone4?r.indexOf("customerios")>-1?(t="iPhone",n=!0):t="iPhone Broswer":iOS&&(r.indexOf("customerios")>-1?(t="iPad",n=!0):t="iPad Broswer"),e.Device=t;var i=getCookie(_vgLogEvent.model.ProximityCookieName);e.Country=_vgLogEvent.model.CountryNames[parseInt(i.countryid)],e.State=i.state,e.City=i.city,e.AppVersion=1==n?_vgLogEvent.GetAppVersion():"",e.UserName=""==$("#hdnUserId").val()?"":$("#hdnFullUserName").val(),e.UserID=parseInt(""==$("#hdnUserId").val()?"0":$("#hdnUserId").val());var o=new Date;e.InsertedDate=o.toUTCString();JSON.stringify(e)},LogEventData:function(t){var n="Website",r=!1,i=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();isAndroid=!(!i.match(/Android/i)&&!i.toLowerCase().match(/kf/i)),iPadAndroid=i.match(/ipad/i)||i.match(/iphone/i)||i.match(/itouch/i)||i.match(/android/i)||!1,isAndroidMobile=null!=i.match(/Android/i)&&null!=i.match(/Mobile/i)&&null==i.match(/Windows/i)&&$("#mobile-check").is(":visible"),isiPhone=(null!=i.match(/ipad/i)||null!=i.match(/iphone/i))&&$("#mobile-check").is(":visible"),isiPhone4=(null!=i.match(/ipad/i)||null!=i.match(/iphone/i))&&$("#tinymobile-check").is(":visible"),iOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,isiOSPRO=i.match(/com.vagaro.iospro/i),isWebKit=i.match(/webkit/i)||!1,iMacSafari=i.match(/safari/i)&&i.match(/mac/i)||!1,isEdge=i.match(/edge/i)||!1,isAndroid?i.indexOf("customerandroid")>-1?(n="Android",r=!0):n="Android Broswer":isiPhone|isiPhone4?i.indexOf("customerios")>-1?(n="iPhone",r=!0):n="iPhone Broswer":iOS&&(i.indexOf("customerios")>-1?(n="iPad",r=!0):n="iPad Broswer"),t.Device=n;try{var o=getCookie(_vgLogEvent.model.ProximityCookieName);t.Country=_vgLogEvent.model.CountryNames[parseInt(o.countryid)],t.State=o.state.toUpperCase(),t.City=o.city,t.AppVersion=1==r?_vgLogEvent.GetAppVersion():"",t.UserName=""==$("#hdnUserId").val()?"":$("#hdnFullUserName").val(),t.UserID=parseInt(""==$("#hdnUserId").val()?"0":$("#hdnUserId").val());var a=new Date;t.InsertedDate=a.toUTCString(),null!=t.ClassBy&&void 0!==t.ClassBy&&(t.ClassBy=unescape(t.ClassBy.replace(/\+/g,"%20"))),null!=t.BusinessName&&void 0!==t.BusinessName&&(t.BusinessName=unescape(t.BusinessName.replace(/\+/g,"%20"))),null!=t.ClassName&&void 0!==t.ClassName&&(t.ClassName=unescape(t.ClassName.replace(/\+/g,"%20"))),null!=t.DealName&&void 0!==t.DealName&&(t.DealName=unescape(t.DealName.replace(/\+/g,"%20")));JSON.stringify(t),e.logEvent(t.Category,t)}catch(e){}},SuccessUpdateRequest:function(e){e.CustomCode==vagaro.VagaroCoreApiResponseCode.Success?console.log("Data saved Successfully"):console.log("Data saved not Successfully")},CallFailed:function(e){console.log("Core API Not Call")},GetAppVersion:function(){var e=null,t=navigator.userAgent.split("(VagaroApp");if(t.length>0){var n=t[1].split(")")[0];if(null!=n&&void 0!==n&&n.length>0){var r=n.replace(")","").replace(" ","");e=(r.split(".").length,r)}}return e},AjaxPostCall:function(e,t,n,r,i,o){var a=new vagaro.ajax;void 0!==o&&null!=o&&0==o?(a.datamodel.Token=e,a.datamodel.IsNewVagaroAPI=o):null!=CoreAPIURL?(a.datamodel.Token=CoreAPIURL+e,a.datamodel.IsNewVagaroAPI=!0):(a.datamodel.Token=VagaroCoreApiUrl+e,a.datamodel.IsNewVagaroAPI=!0),a.datamodel.data=t,void 0!==i&&null!=i&&(a.datamodel.async=i),a.datamodel.Error=r,a.datamodel.callback=n,a.Post()}}}();