PageSourceSearch

https://whirlpool-master.firebaseapp.com/159.0a30739e70ca72f4.js

js whirlpool-master.firebaseapp.com collected 2026-10-03 14:08:13 UTC 124,699 bytes, 1 lines download raw bytes

1(self.webpackChunkaiii_ng_quickstart=self.webpackChunkaiii_ng_quickstart||[]).push([[159],{66651:function(me,Q,k){"use strict";var F=k(58367),M=k(70655),j=k(12461),ee={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},B=function(h){function l(v,w,S){var O=h.call(this,w)||this;return Object.setPrototypeOf(O,l.prototype),O.code=v,O.details=S,O}return(0,M.ZT)(l,h),l}(Error),$=function(){function h(l,v){var w=this;this.auth=null,this.messaging=null,this.auth=l.getImmediate({optional:!0}),this.messaging=v.getImmediate({optional:!0}),this.auth||l.get().then(function(S){return w.auth=S},function(){}),this.messaging||v.get().then(function(S){return w.messaging=S},function(){})}return h.prototype.getAuthToken=function(){return(0,M.mG)(this,void 0,void 0,function(){var l;return(0,M.Jh)(this,function(w){switch(w.label){case 0:if(!this.auth)return[2,void 0];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(l=w.sent())?[2,l.accessToken]:[2,void 0];case 3:return w.sent(),[2,void 0];case 4:return[2]}})})},h.prototype.getInstanceIdToken=function(){return(0,M.mG)(this,void 0,void 0,function(){return(0,M.Jh)(this,function(l){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(v){return[2,void 0]}return[2]})})},h.prototype.getContext=function(){return(0,M.mG)(this,void 0,void 0,function(){var l,v;return(0,M.Jh)(this,function(w){switch(w.label){case 0:return[4,this.getAuthToken()];case 1:return l=w.sent(),[4,this.getInstanceIdToken()];case 2:return v=w.sent(),[2,{authToken:l,instanceIdToken:v}]}})})},h}();function P(h,l){var v={};for(var w in h)h.hasOwnProperty(w)&&(v[w]=l(h[w]));return v}var s=function(){function h(){}return h.prototype.encode=function(l){var v=this;if(null==l)return null;if(l instanceof Number&&(l=l.valueOf()),"number"==typeof l&&isFinite(l)||!0===l||!1===l||"[object String]"===Object.prototype.toString.call(l))return l;if(Array.isArray(l))return l.map(function(w){return v.encode(w)});if("function"==typeof l||"object"==typeof l)return P(l,function(w){return v.encode(w)});throw new Error("Data cannot be encoded in JSON: "+l)},h.prototype.decode=function(l){var v=this;if(null==l)return l;if(l["@type"])switch(l["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var w=Number(l.value);if(isNaN(w))throw new Error("Data cannot be decoded from JSON: "+l);return w;default:throw new Error("Data cannot be decoded from JSON: "+l)}return Array.isArray(l)?l.map(function(S){return v.decode(S)}):"function"==typeof l||"object"==typeof l?P(l,function(S){return v.decode(S)}):l},h}(),L=function(){function h(l,v,w,S,O){var N=this;void 0===S&&(S="us-central1"),this.app_=l,this.fetchImpl=O,this.serializer=new s,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return Promise.resolve(N.deleteService())}},this.contextProvider=new $(v,w),this.cancelAllRequests=new Promise(function(K){N.deleteService=function(){return K()}});try{var W=new URL(S);this.customDomain=W.origin,this.region="us-central1"}catch(K){this.customDomain=null,this.region=S}}return Object.defineProperty(h.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),h.prototype._url=function(l){var v=this.app_.options.projectId;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+v+"/"+this.region+"/"+l:null!==this.customDomain?this.customDomain+"/"+l:"https://"+this.region+"-"+v+".cloudfunctions.net/"+l},h.prototype.useEmulator=function(l,v){this.emulatorOrigin="http://"+l+":"+v},h.prototype.useFunctionsEmulator=function(l){this.emulatorOrigin=l},h.prototype.httpsCallable=function(l,v){var w=this;return function(S){return w.call(l,S,v||{})}},h.prototype.postJSON=function(l,v,w){return(0,M.mG)(this,void 0,void 0,function(){var S,N;return(0,M.Jh)(this,function(K){switch(K.label){case 0:w["Content-Type"]="application/json",K.label=1;case 1:return K.trys.push([1,3,,4]),[4,this.fetchImpl(l,{method:"POST",body:JSON.stringify(v),headers:w})];case 2:return S=K.sent(),[3,4];case 3:return K.sent(),[2,{status:0,json:null}];case 4:N=null,K.label=5;case 5:return K.trys.push([5,7,,8]),[4,S.json()];case 6:return N=K.sent(),[3,8];case 7:return K.sent(),[3,8];case 8:return[2,{status:S.status,json:N}]}})})},h.prototype.call=function(l,v,w){return(0,M.mG)(this,void 0,void 0,function(){var S,O,N,W,re,he,ae,te,ve,ge;return(0,M.Jh)(this,function(Ee){switch(Ee.label){case 0:return S=this._url(l),v=this.serializer.encode(v),O={data:v},N={},[4,this.contextProvider.getContext()];case 1:return(W=Ee.sent()).authToken&&(N.Authorization="Bearer "+W.authToken),W.instanceIdToken&&(N["Firebase-Instance-ID-Token"]=W.instanceIdToken),re=function x(h){var l,v=new Promise(function(w,S){l=setTimeout(function(){S(new B("deadline-exceeded","deadline-exceeded"))},h)});return{timer:l,promise:v}}(w.timeout||7e4),he=re.timer,ae=re.promise,[4,Promise.race([D(he,this.postJSON(S,O,N)),ae,D(he,this.cancelAllRequests)])];case 2:if(!(te=Ee.sent()))throw new B("cancelled","Firebase Functions instance was deleted.");
1if(ve=function X(h,l,v){var w=function R(h){if(h>=200&&h<300)return"ok";switch(h){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(h),S=w,O=void 0;try{var N=l&&l.error;if(N){var W=N.status;if("string"==typeof W){if(!ee[W])return new B("internal","internal");w=ee[W],S=W}var K=N.message;"string"==typeof K&&(S=K),void 0!==(O=N.details)&&(O=v.decode(O))}}catch(re){}return"ok"===w?null:new B(w,S,O)}(te.status,te.json,this.serializer),ve)throw ve;if(!te.json)throw new B("internal","Response is not valid JSON object.");if(void 0===(ge=te.json.data)&&(ge=te.json.result),void 0===ge)throw new B("internal","Response is missing data field.");return[2,{data:this.serializer.decode(ge)}]}})})},h}();function D(h,l){return(0,M.mG)(this,void 0,void 0,function(){var v;return(0,M.Jh)(this,function(w){switch(w.label){case 0:return[4,l];case 1:return v=w.sent(),clearTimeout(h),[2,v]}})})}(function d(h,l){var v={Functions:L};h.INTERNAL.registerComponent(new j.wA("functions",function w(S,O){var N=S.getProvider("app").getImmediate(),W=S.getProvider("auth-internal"),K=S.getProvider("messaging");return new L(N,W,K,O,l)},"PUBLIC").setServiceProps(v).setMultipleInstances(!0))})(F.Z,fetch.bind(self)),F.Z.registerVersion("@firebase/functions","0.6.1")},4016:function(me,Q,k){"use strict";k.d(Q,{e:function(){return x}});var F=k(15671),M=k(43144),j=k(15867),ee=k(10839),B=k(65542),R=k(71744),X=k(3821),$=k(59516);function G(){G=function(){return L};var L={},D=Object.prototype,I=D.hasOwnProperty,d=Object.defineProperty||function(c,u,p){c[u]=p.value},m="function"==typeof Symbol?Symbol:{},T=m.iterator||"@@iterator",h=m.asyncIterator||"@@asyncIterator",l=m.toStringTag||"@@toStringTag";function v(c,u,p){return Object.defineProperty(c,u,{value:p,enumerable:!0,configurable:!0,writable:!0}),c[u]}try{v({},"")}catch(c){v=function(p,b,E){return p[b]=E}}function w(c,u,p,b){var C=Object.create((u&&u.prototype instanceof N?u:N).prototype),V=new Te(b||[]);return d(C,"_invoke",{value:Ce(c,p,V)}),C}function S(c,u,p){try{return{type:"normal",arg:c.call(u,p)}}catch(b){return{type:"throw",arg:b}}}L.wrap=w;var O={};function N(){}function W(){}function K(){}var re={};v(re,T,function(){return this});var he=Object.getPrototypeOf,ae=he&&he(he(Le([])));ae&&ae!==D&&I.call(ae,T)&&(re=ae);var te=K.prototype=N.prototype=Object.create(re);function ve(c){["next","throw","return"].forEach(function(u){v(c,u,function(p){return this._invoke(u,p)})})}function ge(c,u){function p(E,C,V,J){var Z=S(c[E],c,C);if("throw"!==Z.type){var ne=Z.arg,se=ne.value;return se&&"object"==typeof se&&I.call(se,"__await")?u.resolve(se.__await).then(function(Oe){p("next",Oe,V,J)},function(Oe){p("throw",Oe,V,J)}):u.resolve(se).then(function(Oe){ne.value=Oe,V(ne)},function(Oe){return p("throw",Oe,V,J)})}J(Z.arg)}var b;d(this,"_invoke",{value:function(C,V){function J(){return new u(function(Z,ne){p(C,V,Z,ne)})}return b=b?b.then(J,J):J()}})}function Ce(c,u,p){var b="suspendedStart";return function(E,C){if("executing"===b)throw new Error("Generator is already running");if("completed"===b){if("throw"===E)throw C;return{value:void 0,done:!0}}for(p.method=E,p.arg=C;;){var V=p.delegate;if(V){var J=Ee(V,p);if(J){if(J===O)continue;return J}}if("next"===p.method)p.sent=p._sent=p.arg;else if("throw"===p.method){if("suspendedStart"===b)throw b="completed",p.arg;p.dispatchException(p.arg)}else"return"===p.method&&p.abrupt("return",p.arg);b="executing";var Z=S(c,u,p);if("normal"===Z.type){if(b=p.done?"completed":"suspendedYield",Z.arg===O)continue;return{value:Z.arg,done:p.done}}"throw"===Z.type&&(b="completed",p.method="throw",p.arg=Z.arg)}}}function Ee(c,u){var p=u.method,b=c.iterator[p];if(void 0===b)return u.delegate=null,"throw"===p&&c.iterator.return&&(u.method="return",u.arg=void 0,Ee(c,u),"throw"===u.method)||"return"!==p&&(u.method="throw",u.arg=new TypeError("The iterator does not provide a '"+p+"' method")),O;var E=S(b,c.iterator,u.arg);
1if("throw"===E.type)return u.method="throw",u.arg=E.arg,u.delegate=null,O;var C=E.arg;return C?C.done?(u[c.resultName]=C.value,u.next=c.nextLoc,"return"!==u.method&&(u.method="next",u.arg=void 0),u.delegate=null,O):C:(u.method="throw",u.arg=new TypeError("iterator result is not an object"),u.delegate=null,O)}function Ue(c){var u={tryLoc:c[0]};1 in c&&(u.catchLoc=c[1]),2 in c&&(u.finallyLoc=c[2],u.afterLoc=c[3]),this.tryEntries.push(u)}function ke(c){var u=c.completion||{};u.type="normal",delete u.arg,c.completion=u}function Te(c){this.tryEntries=[{tryLoc:"root"}],c.forEach(Ue,this),this.reset(!0)}function Le(c){if(c){var u=c[T];if(u)return u.call(c);if("function"==typeof c.next)return c;if(!isNaN(c.length)){var p=-1,b=function E(){for(;++p<c.length;)if(I.call(c,p))return E.value=c[p],E.done=!1,E;return E.value=void 0,E.done=!0,E};return b.next=b}}return{next:A}}function A(){return{value:void 0,done:!0}}return W.prototype=K,d(te,"constructor",{value:K,configurable:!0}),d(K,"constructor",{value:W,configurable:!0}),W.displayName=v(K,l,"GeneratorFunction"),L.isGeneratorFunction=function(c){var u="function"==typeof c&&c.constructor;return!!u&&(u===W||"GeneratorFunction"===(u.displayName||u.name))},L.mark=function(c){return Object.setPrototypeOf?Object.setPrototypeOf(c,K):(c.__proto__=K,v(c,l,"GeneratorFunction")),c.prototype=Object.create(te),c},L.awrap=function(c){return{__await:c}},ve(ge.prototype),v(ge.prototype,h,function(){return this}),L.AsyncIterator=ge,L.async=function(c,u,p,b,E){void 0===E&&(E=Promise);var C=new ge(w(c,u,p,b),E);return L.isGeneratorFunction(u)?C:C.next().then(function(V){return V.done?V.value:C.next()})},ve(te),v(te,l,"Generator"),v(te,T,function(){return this}),v(te,"toString",function(){return"[object Generator]"}),L.keys=function(c){var u=Object(c),p=[];for(var b in u)p.push(b);return p.reverse(),function E(){for(;p.length;){var C=p.pop();if(C in u)return E.value=C,E.done=!1,E}return E.done=!0,E}},L.values=Le,Te.prototype={constructor:Te,reset:function(u){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(ke),!u)for(var p in this)"t"===p.charAt(0)&&I.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=void 0)},stop:function(){this.done=!0;var u=this.tryEntries[0].completion;if("throw"===u.type)throw u.arg;return this.rval},dispatchException:function(u){if(this.done)throw u;var p=this;function b(ne,se){return V.type="throw",V.arg=u,p.next=ne,se&&(p.method="next",p.arg=void 0),!!se}for(var E=this.tryEntries.length-1;E>=0;--E){var C=this.tryEntries[E],V=C.completion;if("root"===C.tryLoc)return b("end");if(C.tryLoc<=this.prev){var J=I.call(C,"catchLoc"),Z=I.call(C,"finallyLoc");if(J&&Z){if(this.prev<C.catchLoc)return b(C.catchLoc,!0);if(this.prev<C.finallyLoc)return b(C.finallyLoc)}else if(J){if(this.prev<C.catchLoc)return b(C.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<C.finallyLoc)return b(C.finallyLoc)}}}},abrupt:function(u,p){for(var b=this.tryEntries.length-1;b>=0;--b){var E=this.tryEntries[b];if(E.tryLoc<=this.prev&&I.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var C=E;break}}C&&("break"===u||"continue"===u)&&C.tryLoc<=p&&p<=C.finallyLoc&&(C=null);var V=C?C.completion:{};return V.type=u,V.arg=p,C?(this.method="next",this.next=C.finallyLoc,O):this.complete(V)},complete:function(u,p){if("throw"===u.type)throw u.arg;return"break"===u.type||"continue"===u.type?this.next=u.arg:"return"===u.type?(this.rval=this.arg=u.arg,this.method="return",this.next="end"):"normal"===u.type&&p&&(this.next=p),O},finish:function(u){for(var p=this.tryEntries.length-1;p>=0;--p){var b=this.tryEntries[p];if(b.finallyLoc===u)return this.complete(b.completion,b.afterLoc),ke(b),O}},catch:function(u){for(var p=this.tryEntries.length-1;p>=0;--p){var b=this.tryEntries[p];if(b.tryLoc===u){var E=b.completion;if("throw"===E.type){var C=E.arg;ke(b)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(u,p,b){return this.delegate={iterator:Le(u),resultName:p,nextLoc:b},"next"===this.method&&(this.arg=void 0),O}},L}var Y=function(L,D,I,d){return new(I||(I=Promise))(function(T,h){function l(S){try{w(d.next(S))}catch(O){h(O)}}function v(S){try{w(d.throw(S))}catch(O){h(O)}}function w(S){S.done?T(S.value):function m(T){return T instanceof I?T:new I(function(h){h(T)})}(S.value).then(l,v)}w((d=d.apply(L,D||[])).next())})},P=function(){return(L=P||(P={})).Admin="administrators",L.users="users",L.sites="sites",L.bots="bots",P;var L}(),s=function(){return(L=s||(s={})).AddUser="addUser",L.DeleteUser="deleteUserOncall",L.UpdateUser="updateUserOncall",L.SetCustomClaims="setCustomClaimsOncall",L.verifyToken="verifyTokenOncall",s;var L}(),x=function(){var L=function(){function D(I,d,m){var T=this;(0,F.Z)(this,D),this.afAuth=I,this.afs=d,this.router=m,this.user=I.user,this.user.subscribe(function(h){return Y(T,void 0,void 0,G().mark(function l(){var v,w,S;return G().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(!h){N.next=12;break}return N.next=3,this.afs.doc("".concat(P.Admin,"/").concat(h.uid)).ref.get();case 3:v=N.sent,this.uid=h.uid,this.email=h.email||v.get("email"),this.displayName=h.displayName||v.get("displayName"),w=v.get("
1customClaims.accessLevel")||0,this.is_M_ProductsAndMembers=w===ee.u.maintainProductsAndMembers,this.is_M_Order=w===ee.u.maintainOrder,this.is_M_Admin=w===ee.u.maintainAdmin,0!==h.providerData.length?(S=h.providerData.map(function(W){return Object.assign({},W)}),this.afs.doc("".concat(P.Admin,"/").concat(this.uid)).set({loginAt:new Date,providerData:S},{merge:!0})):this.afs.doc("".concat(P.Admin,"/").concat(this.uid)).set({loginAt:new Date},{merge:!0});case 12:case"end":return N.stop()}},l,this)}))})}return(0,M.Z)(D,[{key:"updateUserData",value:function(d){var m=d.uid,T=d.email,h=d.displayName,l=d.photoURL,v=d.providerData;return Y(this,void 0,void 0,G().mark(function w(){var S,O,N;return G().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return S=this.afs.doc("".concat(P.Admin,"/").concat(m)),console.log("uid=>",m,"email=>",T,"displayName =>",h,"photoURL =>",l,"providerData =>",v),O={displayName:h,photoURL:l,email:T,providerData:v.map(function(re){return Object.assign({},re)}),loginAt:new Date,uid:m},N=this.afs.doc("".concat(P.Admin,"/test")),console.log("testRef =>",N),K.next=7,S.ref.get().then(function(re){re.data()||(O.createdAt=new Date)});case 7:return console.log("uid=>",m,"data =>",O),K.abrupt("return",S.set(Object.assign({},O),{merge:!0}));case 9:case"end":return K.stop()}},w,this)}))}},{key:"loginPassword",value:function(d,m){return this.afAuth.signInWithEmailAndPassword(d,m)}},{key:"sendPasswordResetEmail",value:function(d){return this.afAuth.sendPasswordResetEmail(d)}},{key:"logout",value:function(){var d=this;return this.afs.doc("".concat(P.Admin,"/").concat(this.uid)).set({logoutAt:new Date},{merge:!0}).then(function(){return d.afAuth.signOut()}).then(function(){return d.router.navigate(["/maintain/login"])})}},{key:"log",value:function(d){return d.timestamp=new Date,this.afs.doc("".concat(P.Admin,"/").concat(this.uid,"/events/").concat(d.timestamp.getTime())).set(d)}},{key:"loginGoogle",value:function(){var d=this,m=new j.Z.auth.GoogleAuthProvider;return m.addScope("https://www.googleapis.com/auth/userinfo.email"),m.addScope("https://www.googleapis.com/auth/userinfo.profile"),this.afAuth.signInWithPopup(m).then(function(T){return console.log("google login success:",T),console.log("google login success&:update",T.user),d.updateUserData(T.user)})}},{key:"linkGoogle",value:function(){return Y(this,void 0,void 0,G().mark(function d(){var m;return G().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return(m=new j.Z.auth.GoogleAuthProvider).addScope("https://www.googleapis.com/auth/contacts.readonly"),h.next=4,this.afAuth.currentUser;case 4:return h.abrupt("return",h.sent.linkWithPopup(m).then(function(l){console.log("link to google success:",l)}));case 5:case"end":return h.stop()}},d,this)}))}},{key:"loginFacebook",value:function(){var d=this,m=new j.Z.auth.FacebookAuthProvider;return m.addScope("public_profile"),m.addScope("email"),this.afAuth.signInWithPopup(m).then(function(T){return console.log("facebook login success:",T),d.updateUserData(T.user)})}},{key:"linkFacebook",value:function(){return Y(this,void 0,void 0,G().mark(function d(){var m;return G().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return(m=new j.Z.auth.FacebookAuthProvider).addScope("public_profile"),m.addScope("email"),h.next=5,this.afAuth.currentUser;case 5:return h.abrupt("return",h.sent.linkWithPopup(m).then(function(l){console.log("link to facebook success:",l)}));case 6:case"end":return h.stop()}},d,this)}))}},{key:"loginLine",value:function(d,m){var T=this;return j.Z.functions().httpsCallable(s.verifyToken)({code:d,redirect_uri:m}).then(function(l){var v=l.data;return console.log("custom token ==>",v),T.afAuth.signInWithCustomToken(v).then(function(w){console.log("line login success:",w)})})}},{key:"setCustomClaims",value:function(d,m){return Y(this,void 0,void 0,G().mark(function T(){return G().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return console.log("customClaims.role=>",m.role,"user.uid=>",d.uid,"user.email=>",d.displayName),v.next=3,this.afs.doc("".concat(P.Admin,"/").concat(d.uid)).ref.get();case 3:return console.log("userData=>",v.sent.data(),"user.uid=>",d.uid),v.abrupt("return",this.afs.doc("".concat(P.Admin,"/").concat(d.uid)).set({customClaims:m},{merge:!0}));case 6:case"end":return v.stop()}},T,this)}))}},{key:"getIsMProductsAndMembers",value:function(){return this.is_M_ProductsAndMembers||this.is_M_Admin}},{key:"getIsMOrder",value:function(){return this.is_M_Order||this.is_M_Admin}},{key:"getIsMAdmin",value:function(){return this.is_M_Admin}}]),D}();return L.\u0275fac=function(I){return new(I||L)(B.LFG(R.zQ),B.LFG(X.ST),B.LFG($.F0))},L.\u0275prov=B.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L}()},37669:function(me,Q,k){"use strict";k.d(Q,{h:function(){return B}});var F=k(15671),M=k(43144),j=k(65542),ee=k(59516),B=function(){var R=function(){function X($){var G;(0,F.Z)(this,X),this.router=$,this.menuList=[{title:"\u7ba1\u7406\u8005\u7ba1\u7406",routerLink:"admin"}],this.menuList_MProductsAndMembers=[{title:"\u6703\u54e1\u7ba1\u7406",routerLink:"member"},{title:"\u9996\u9801\u7ba1\u7406",routerLink:"banner"},{title:"SEO\u7ba1\u7406",routerLink:"seo"},{title:"\u7522\u54c1\u7ba1\u7406",routerLink:"products"},{title:"\u8cfc\u7269\u91d1\u7ba1\u7406",routerLink:"voucher"},{title:"\u512a\u60e0\u7ba1\u7406",routerLink:"sales"},{title:"\u6700\u65b0\u6d88\u606f",routerLink:"news"},{title:"\u64da\u9ede\u7ba1\u7406",routerLink:"stores"}],this.menuList_MOrder=[{title:"\u6703\u54e1\u7ba1\u7406",routerLink:"member"},{title:"\u7522\u54c1\u8a3b\u518a",routerLink:"registeredProduct"},{title:"\u8a02\u55ae\u7ba1\u7406",routerLink:"orders"}],this.menuList_MAdmin=[{title:"\u7ba1\u7406\u8005\u7ba1\u7406",routerLink:"admin"},{title:"\u6703\u54e1\u7ba1\u7406",routerLink:"member"},{title:"\u9996\u9801\u7ba1\u7406",routerLink:"banner"},{title:"SEO\u7ba1\u7406",routerLink:"seo"},{title:"\u7522\u54c1\u7ba1\u7406",routerLink:"products"},{title:"\u8cfc\u7269\u91d1\u7ba1\u7406",routerLink:"voucher"},{title:"\u512a\u60e0\u7ba1\u7406",routerLink:"sales"},{title:"\u7522\u54c1\u8a3b\u518a",routerLink:"registeredProduct"},{title:"\u8a02\u55ae\u7ba1\u7406",routerLink:"orders"},{title:"\u6700\u65b0\u6d88\u606f",routerLink:"news"},{title:"\u64da\u9ede\u7ba1\u7406",routerLink:"stores"},{title:"\u95dc\u65bc\u6211\u5011",routerLink:"about"},{title:"\u96b1\u79c1\u53ca\u7248\u6b0a",routerLink:"privacy"}];var Y=(null===(G=this.menuList_MAdmin.filter(function(P){return $.url.indexOf(P.routerLink)>=0}
1)[0])||void 0===G?void 0:G.title)||"";this.setCurrentTitle(Y)}return(0,M.Z)(X,[{key:"setCurrentTitle",value:function(G){this.currentTitle=G}}]),X}();return R.\u0275fac=function($){return new($||R)(j.LFG(ee.F0))},R.\u0275prov=j.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R}()},10839:function(me,Q,k){"use strict";k.d(Q,{p:function(){return M},u:function(){return F}});var F=function(){return(j=F||(F={}))[j.noPermission=0]="noPermission",j[j.maintainProductsAndMembers=1]="maintainProductsAndMembers",j[j.maintainOrder=2]="maintainOrder",j[j.maintainAdmin=3]="maintainAdmin",F;var j}(),M=function(){return(j=M||(M={})).noPermission="\u7121\u6b0a\u9650",j.maintainProductsAndMembers="\u7522\u54c1\u53ca\u6703\u54e1\u7ba1\u7406\u8005",j.maintainOrder="\u8a02\u55ae\u7ba1\u7406\u8005",j.maintainAdmin="\u6700\u9ad8\u7ba1\u7406\u8005",M;var j}()},96357:function(me,Q,k){"use strict";k.d(Q,{r:function(){return F}});var F=function(){return(M=F||(F={})).AddUser="addUser",M.UpdateUser="updateUser",M.DeleteUser="deleteUser",M.AddAdministrtor="addAdministrtor",M.updateAdministrator="updateAdministrator",M.deleteAdministrator="deleteAdministrator",M.setAuthUserEmailVerifiedOnCall="setAuthUserEmailVerifiedOnCall",M.checkEmailVerifiedOnCall="checkEmailVerifiedOnCall",F;var M}()},99742:function(me,Q,k){"use strict";k.d(Q,{M:function(){return F}});var F=function(){return(M=F||(F={})).Admins="administrators",M.UserLogs="userLogs",M.Users="users",M.Orders="tw/orders/list",M.DateDetect="tw/orders",M.SalesEvents="tw/salesEvents/list",M.Vouchers="tw/vouchers/list",F;var M}()},32764:function(me,Q,k){"use strict";k.d(Q,{FO:function(){return F},Uq:function(){return j},gK:function(){return M},mE:function(){return ee}});var F=["\u6d17\u8863\u6a5f","\u4e7e\u8863\u6a5f","\u7a7a\u8abf","\u51b0\u7bb1\u51b0\u6ac3","\u5eda\u623f\u5c0f\u5bb6\u96fb","\u751f\u6d3b\u5c0f\u5bb6\u96fb"],M={"\u6d17\u8863\u6a5f":["\u6efe\u7b52\u6d17\u8863\u6a5f","\u76f4\u7acb\u6d17\u8863\u6a5f","\u5546\u7528\u6295\u5e63\u6d17\u8863\u6a5f","\u5176\u5b83\u914d\u4ef6"],"\u4e7e\u8863\u6a5f":["\u6efe\u7b52\u4e7e\u8863\u6a5f","\u76f4\u7acb\u4e7e\u8863\u6a5f","\u5546\u7528\u6295\u5e63\u4e7e\u8863\u6a5f","\u5176\u5b83\u914d\u4ef6"],"\u7a7a\u8abf":["\u8b8a\u983b\u4e00\u5c0d\u4e00","\u5b9a\u983b\u4e00\u5c0d\u4e00","\u5b9a\u983b\u4e00\u5c0d\u4e8c"],"\u51b0\u7bb1\u51b0\u6ac3":["\u5c0d\u958b\u9580\u51b0\u7bb1","\u4e0a\u4e0b\u9580\u51b0\u7bb1","\u6cd5\u5f0f\u591a\u9580\u51b0\u7bb1","\u51b0\u6ac3","\u5176\u5b83\u914d\u4ef6"],"\u5eda\u623f\u5c0f\u5bb6\u96fb":["\u84b8\u70e4\u7210","\u70e4\u7bb1","\u5fae\u6ce2\u7210","\u5176\u5b83\u914d\u4ef6"],"\u751f\u6d3b\u5c0f\u5bb6\u96fb":["\u9664\u6fd5\u6a5f","\u96fb\u6247","\u96fb\u6696\u5668","\u5438\u5875\u5668","\u5176\u5b83\u914d\u4ef6"],sale:[],employee:[]},j={_ZHtoEN:{"\u6d17\u8863\u6a5f":"washers","\u4e7e\u8863\u6a5f":"dryers","\u51b0\u7bb1\u51b0\u6ac3":"refrigerators","\u7a7a\u8abf":"air-conditioners","\u751f\u6d3b\u5c0f\u5bb6\u96fb":"small-appliances","\u5eda\u623f\u5c0f\u5bb6\u96fb":"kitchen-appliances",sale:"sale",employee:"employee"},_ENtoZH:{washers:"\u6d17\u8863\u6a5f",dryers:"\u4e7e\u8863\u6a5f",refrigerators:"\u51b0\u7bb1\u51b0\u6ac3","air-conditioners":"\u7a7a\u8abf","small-appliances":"\u751f\u6d3b\u5c0f\u5bb6\u96fb","kitchen-appliances":"\u5eda\u623f\u5c0f\u5bb6\u96fb",sale:"\u7279\u8ce3\u5c08\u5340",employee:"\u54e1\u8cfc\u8ce3\u5834"}},ee={_ZHtoEN:{"\u6efe\u7b52\u6d17\u8863\u6a5f":"front-load-washers","\u76f4\u7acb\u6d17\u8863\u6a5f":"top-load-washers","\u5546\u7528\u6295\u5e63\u6d17\u8863\u6a5f":"commercial-washers","\u
16efe\u7b52\u4e7e\u8863\u6a5f":"front-load-dryers","\u76f4\u7acb\u4e7e\u8863\u6a5f":"top-load-dryers","\u5546\u7528\u6295\u5e63\u4e7e\u8863\u6a5f":"commercial-dryers","\u5b89\u88dd\u8aaa\u660e":"installation","\u8b8a\u983b\u4e00\u5c0d\u4e00":"inverter-single-split","\u5b9a\u983b\u4e00\u5c0d\u4e00":"non-inverter-single-split","\u5b9a\u983b\u4e00\u5c0d\u4e8c":"non-inverter-multi-split","\u5c0d\u958b\u9580\u51b0\u7bb1":"sbs","\u4e0a\u4e0b\u9580\u51b0\u7bb1":"tm","\u6cd5\u5f0f\u591a\u9580\u51b0\u7bb1":"fdbm","\u51b0\u6ac3":"freezers","\u9664\u6fd5\u6a5f":"dehumidifiers","\u96fb\u6247":"electric-fans","\u96fb\u6696\u5668":"electric-heaters","\u5438\u5875\u5668":"vacuums","\u84b8\u70e4\u7210":"steam-ovens","\u70e4\u7bb1":"toaster-ovens","\u5fae\u6ce2\u7210":"microwave-ovens","\u611f\u61c9\u7210":"induction-furnace","\u5176\u5b83\u914d\u4ef6":"accessories",sale:"sale",employee:"employee"},_ENtoZH:{"front-load-washers":"\u6efe\u7b52\u6d17\u8863\u6a5f","top-load-washers":"\u76f4\u7acb\u6d17\u8863\u6a5f","commercial-washers":"\u5546\u7528\u6295\u5e63\u6d17\u8863\u6a5f","front-load-dryers":"\u6efe\u7b52\u4e7e\u8863\u6a5f","top-load-dryers":"\u76f4\u7acb\u4e7e\u8863\u6a5f","commercial-dryers":"\u5546\u7528\u6295\u5e63\u4e7e\u8863\u6a5f",installation:"\u5b89\u88dd\u8aaa\u660e","inverter-single-split":"\u8b8a\u983b\u4e00\u5c0d\u4e00","non-inverter-single-split":"\u5b9a\u983b\u4e00\u5c0d\u4e00","non-inverter-multi-split":"\u5b9a\u983b\u4e00\u5c0d\u4e8c",sbs:"\u5c0d\u958b\u9580\u51b0\u7bb1",tm:"\u4e0a\u4e0b\u9580\u51b0\u7bb1",fdbm:"\u6cd5\u5f0f\u591a\u9580\u51b0\u7bb1",freezers:"\u51b0\u6ac3",dehumidifiers:"\u9664\u6fd5\u6a5f","electric-fans":"\u96fb\u6247","electric-heaters":"\u96fb\u6696\u5668",vacuums:"\u5438\u5875\u5668","steam-ovens":"\u84b8\u70e4\u7210","toaster-ovens":"\u70e4\u7bb1","microwave-ovens":"\u5fae\u6ce2\u7210","induction-furnace":"\u611f\u61c9\u7210",accessories:"\u5176\u5b83\u914d\u4ef6",sale:"\u7279\u8ce3\u5c08\u5340",employee:"\u54e1\u8cfc\u8ce3\u5834"}}},52732:function(me,Q,k){"use strict";k.d(Q,{Q:function(){return B}});var F=k(15671),M=k(43144),j=k(65542),ee=k(22313),B=function(){var R=function(){function X($){(0,F.Z)(this,X),this.sanitized=$}return(0,M.Z)(X,[{key:"transform",value:function(G,Y){return this.sanitized.bypassSecurityTrustResourceUrl(G)}}]),X}();return R.\u0275fac=function($){return new($||R)(j.Y36(ee.H7,16))},R.\u0275pipe=j.Yjl({name:"SafeUrl",type:R,pure:!0}),R}()},82298:function(me,Q,k){"use strict";k.d(Q,{q:function(){return ee}});var F=k(15671),M=k(43144),j=k(65542),ee=function(){var B=function(){function R(){(0,F.Z)(this,R)}return(0,M.Z)(R,[{key:"transform",value:function($,G){if("\u6298\u6263"!==G)return"\u6298\u62b5"+$+"\u5143";var Y=$+"",P=Y.split("");return"0"===P[1]?P[0]+"\u6298":"0"!==P[1]?Y+"\u6298":void 0}}]),R}();return B.\u0275fac=function(X){return new(X||B)},B.\u0275pipe=j.Yjl({name:"VoucherContent",type:B,pure:!0}),B}()},53109:function(me,Q,k){"use strict";k.d(Q,{m:function(){return s}});var F=k(15671),M=k(43144),j=k(65542),ee=k(24850),B=k(17489),X=k(77420),$=k(3821);function G(){G=function(){return x};var x={},L=Object.prototype,D=L.hasOwnProperty,I=Object.defineProperty||function(A,c,u){A[c]=u.value},d="function"==typeof Symbol?Symbol:{},m=d.iterator||"@@iterator",T=d.asyncIterator||"@@asyncIterator",h=d.toStringTag||"@@toStringTag";function l(A,c,u){return Object.defineProperty(A,c,{value:u,enumerable:!0,configurable:!0,writable:!0}),A[c]}try{l({},"")}catch(A){l=function(u,p,b){return u[p]=b}}function v(A,c,u,p){var E=Object.create((c&&c.prototype instanceof O?c:O).prototype),C=new ke(p||[]);return I(E,"_invoke",{value:ge(A,u,C)}),E}function w(A,c,u){try{return{type:"normal",arg:A.call(c,u)}}catch(p){return{type:"throw",arg:p}}}x.wrap=v;var S={};function O(){}function N(){}function W(){}var K={};l(K,m,function(){return this});var re=Object.getPrototypeOf,he=re&&re(re(Te([])));he&&he!==L&&D.call(he,m)&&(K=he);var ae=W.prototype=O.prototype=Object.create(K);function te(A){["next","throw","return"].forEach(function(c){l(A,c,function(u){return this._invoke(c,u)})})}function ve(A,c){function u(b,E,C,V){var J=w(A[b],A,E);if("throw"!==J.type){var Z=J.arg,ne=Z.value;return ne&&"object"==typeof ne&&D.call(ne,"__await")?c.resolve(ne.__await).then(function(se){u("next",se,C,V)},function(se){u("throw",se,C,V)}):c.resolve(ne).then(function(se){Z.value=se,C(Z)},function(se){return u("throw",se,C,V)})}V(J.arg)}var p;I(this,"_invoke",{value:function(E,C){function V(){return new c(function(J,Z){u(E,C,J,Z)})}return p=p?p.then(V,V):V()}})}function ge(A,c,u){var p="suspendedStart";return function(b,E){if("executing"===p)throw new Error("Generator is already running");if("completed"===p){if("throw"===b)throw E;return{value:void 0,done:!0}}for(u.method=b,u.arg=E;;){var C=u.delegate;if(C){var V=Ce(C,u);
vendor: 3,406 bytes, line 1
1if(V){if(V===S)continue;return V}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===p)throw p="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);p="executing";var J=w(A,c,u);if("normal"===J.type){if(p=u.done?"completed":"suspendedYield",J.arg===S)continue;return{value:J.arg,done:u.done}}"throw"===J.type&&(p="completed",u.method="throw",u.arg=J.arg)}}}function Ce(A,c){var u=c.method,p=A.iterator[u];if(void 0===p)return c.delegate=null,"throw"===u&&A.iterator.return&&(c.method="return",c.arg=void 0,Ce(A,c),"throw"===c.method)||"return"!==u&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+u+"' method")),S;var b=w(p,A.iterator,c.arg);if("throw"===b.type)return c.method="throw",c.arg=b.arg,c.delegate=null,S;var E=b.arg;return E?E.done?(c[A.resultName]=E.value,c.next=A.nextLoc,"return"!==c.method&&(c.method="next",c.arg=void 0),c.delegate=null,S):E:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,S)}function Ee(A){var c={tryLoc:A[0]};1 in A&&(c.catchLoc=A[1]),2 in A&&(c.finallyLoc=A[2],c.afterLoc=A[3]),this.tryEntries.push(c)}function Ue(A){var c=A.completion||{};c.type="normal",delete c.arg,A.completion=c}function ke(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(Ee,this),this.reset(!0)}function Te(A){if(A){var c=A[m];if(c)return c.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var u=-1,p=function b(){for(;++u<A.length;)if(D.call(A,u))return b.value=A[u],b.done=!1,b;return b.value=void 0,b.done=!0,b};return p.next=p}}return{next:Le}}function Le(){return{value:void 0,done:!0}}return N.prototype=W,I(ae,"constructor",{value:W,configurable:!0}),I(W,"constructor",{value:N,configurable:!0}),N.displayName=l(W,h,"GeneratorFunction"),x.isGeneratorFunction=function(A){var c="function"==typeof A&&A.constructor;return!!c&&(c===N||"GeneratorFunction"===(c.displayName||c.name))},x.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,W):(A.__proto__=W,l(A,h,"GeneratorFunction")),A.prototype=Object.create(ae),A},x.awrap=function(A){return{__await:A}},te(ve.prototype),l(ve.prototype,T,function(){return this}),x.AsyncIterator=ve,x.async=function(A,c,u,p,b){void 0===b&&(b=Promise);var E=new ve(v(A,c,u,p),b);return x.isGeneratorFunction(c)?E:E.next().then(function(C){return C.done?C.value:E.next()})},te(ae),l(ae,h,"Generator"),l(ae,m,function(){return this}),l(ae,"toString",function(){return"[object Generator]"}),x.keys=function(A){var c=Object(A),u=[];for(var p in c)u.push(p);return u.reverse(),function b(){for(;u.length;){var E=u.pop();if(E in c)return b.value=E,b.done=!1,b}return b.done=!0,b}},x.values=Te,ke.prototype={constructor:ke,reset:function(c){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Ue),!c)for(var u in this)"t"===u.charAt(0)&&D.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=void 0)},stop:function(){this.done=!0;var c=this.tryEntries[0].completion;if("throw"===c.type)throw c.arg;return this.rval},dispatchException:function(c){if(this.done)throw c;var u=this;function p(Z,ne){return C.type="throw",C.arg=c,u.next=Z,ne&&(u.method="next",u.arg=void 0),!!ne}for(var b=this.tryEntries.length-1;b>=0;--b){var E=this.tryEntries[b],C=E.completion;if("root"===E.tryLoc)return p("end");
1if(E.tryLoc<=this.prev){var V=D.call(E,"catchLoc"),J=D.call(E,"finallyLoc");if(V&&J){if(this.prev<E.catchLoc)return p(E.catchLoc,!0);if(this.prev<E.finallyLoc)return p(E.finallyLoc)}else if(V){if(this.prev<E.catchLoc)return p(E.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<E.finallyLoc)return p(E.finallyLoc)}}}},abrupt:function(c,u){for(var p=this.tryEntries.length-1;p>=0;--p){var b=this.tryEntries[p];if(b.tryLoc<=this.prev&&D.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var E=b;break}}E&&("break"===c||"continue"===c)&&E.tryLoc<=u&&u<=E.finallyLoc&&(E=null);var C=E?E.completion:{};return C.type=c,C.arg=u,E?(this.method="next",this.next=E.finallyLoc,S):this.complete(C)},complete:function(c,u){if("throw"===c.type)throw c.arg;return"break"===c.type||"continue"===c.type?this.next=c.arg:"return"===c.type?(this.rval=this.arg=c.arg,this.method="return",this.next="end"):"normal"===c.type&&u&&(this.next=u),S},finish:function(c){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.finallyLoc===c)return this.complete(p.completion,p.afterLoc),Ue(p),S}},catch:function(c){for(var u=this.tryEntries.length-1;u>=0;--u){var p=this.tryEntries[u];if(p.tryLoc===c){var b=p.completion;if("throw"===b.type){var E=b.arg;Ue(p)}return E}}throw new Error("illegal catch attempt")},delegateYield:function(c,u,p){return this.delegate={iterator:Te(c),resultName:u,nextLoc:p},"next"===this.method&&(this.arg=void 0),S}},x}var Y=function(x,L,D,I){return new(D||(D=Promise))(function(m,T){function h(w){try{v(I.next(w))}catch(S){T(S)}}function l(w){try{v(I.throw(w))}catch(S){T(S)}}function v(w){w.done?m(w.value):function d(m){return m instanceof D?m:new D(function(T){T(m)})}(w.value).then(h,l)}v((I=I.apply(x,L||[])).next())})},P=function(){return(x=P||(P={})).share="tw/products/share",x.list="tw/products/list",x.option="/tw/products/option/sale",x.optionemployee="/tw/products/option/employee",P;var x}(),s=function(){var x=function(){function L(D,I){(0,F.Z)(this,L),this.ssvc=D,this.afs=I,this.change=new j.vpe,this.prodList=[],this.oProdList=[],this.oProdListLoading=!0}return(0,M.Z)(L,[{key:"getOriginalDataSource",get:function(){return this.originalDataSource}},{key:"getProdData",value:function(){var I=this;return new Promise(function(d,m){I.prodList.length>0?d(I.prodList):I.afs.collection("".concat(P.list)).snapshotChanges().pipe((0,ee.U)(function(T){return T.map(function(l,v){return Object.assign(Object.assign({_key:l.payload.doc.id,_index:v,copyToSale:!1},l.payload.doc.data()),{feature:B.orderBy(l.payload.doc.data().feature,["sort"],["asc"])})})})).subscribe(function(T){I.prodList=T,d(I.prodList)})})}},{key:"getProdDataMaintain",value:function(){return this.afs.collection("".concat(P.list)).snapshotChanges().pipe((0,ee.U)(function(I){return I.map(function(d,m){return Object.assign({_key:d.payload.doc.id,_index:m,copyToSale:!1},d.payload.doc.data())})}))}},{key:"getList",value:function(){var I=this;this.originalDataSource=this.afs.collection("".concat(P.list)).snapshotChanges().pipe((0,ee.U)(function(d){var m=d.map(function(T,h){return Object.assign({_key:T.payload.doc.id,_index:h,copyToSale:!1},T.payload.doc.data())});return I.prodList=I.prodList.length?I.prodList:m,m}))}},{key:"getProdCollectionSubscribe",value:function(){var I=this;this.oProdListLoading=!0,this.getCollection().subscribe(function(d){return Y(I,void 0,void 0,G().mark(function m(){return G().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:this.oProdList=d,console.log("getProdCollectionSubscribe() =>this.oProdList =>",this.oProdList),this.oProdListLoading=!1;case 3:case"end":return h.stop()}},m,this)}))})}},{key:"getCollection",value:function(){return this.afs.collection("".concat(P.list)).snapshotChanges().pipe((0,ee.U)(function(I){return I.map(function(d,m){return Object.assign({_key:d.payload.doc.id,_index:m},d.payload.doc.data())})}))}},{key:"getShareDoc",value:function(I){return this.afs.doc("".concat(P.share,"/").concat(I)).valueChanges()}},{key:"getOption",value:function(){return this.afs.doc(P.option).valueChanges()}},{key:"getOptionEmployee",value:function(){return this.afs.doc(P.optionemployee).valueChanges()}},{key:"getListDoc",value:function(I){return this.afs.doc("".concat(P.list,"/").concat(I
1)).valueChanges()}},{key:"changeFieldValue",value:function(I){var d=this,m=I.list.filter(function(h){return h[I.field]===I.oValue});if(m.length<=0)return!1;B.chunk(m,400).forEach(function(h){var l=d.afs.firestore.batch();h.forEach(function(v){var w=d.afs.doc("".concat(I.path,"/").concat(v._key)).ref,S={};S[I.field]=I.newValue,l.update(w,S)}),l.commit()})}},{key:"changeTypeValue",value:function(I,d,m){return Y(this,void 0,void 0,G().mark(function T(){var v,w,h=this;return G().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,this.afs.firestore.collection(d).get();case 2:v=O.sent.docs.map(function(N){return Object.assign(Object.assign({},N.data()),{_key:N.id})}),w=[],I.forEach(function(N){m.forEach(function(W){w.push({list:v,path:d,field:W,oValue:N.oName,newValue:N.newName})})}),w.forEach(function(N){h.changeFieldValue(N)});case 7:case"end":return O.stop()}},T,this)}))}},{key:"defineChangeTypeValue",value:function(I){var d=this,m=I,T=[];T.push({path:"/tw/products/list",fieldArray:["type","oType"]},{path:"/tw/registeredProduct/list",fieldArray:["productCategory"]},{path:"/tw/article/FAQ",fieldArray:["type"]}),T.forEach(function(h){d.changeTypeValue(m,h.path,h.fieldArray)})}},{key:"copyProdShare",value:function(I,d){return Y(this,void 0,void 0,G().mark(function m(){var h;return G().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,this.afs.firestore.doc("/tw/products/share/".concat(I)).get();case 2:h=v.sent.data(),console.log("docData",h),this.afs.firestore.doc("/tw/products/share/".concat(d)).set(Object.assign({},h),{merge:!0}),console.log("finish".concat(d,"_share"));case 7:case"end":return v.stop()}},m,this)}))}},{key:"clickToChangeAllTypeData",value:function(){return Y(this,void 0,void 0,G().mark(function I(){var m,d=this;return G().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:m=[{oName:"\u5eda\u623f\u5c0f\u5bb6\u96fb",newName:"\u5eda\u623f\u5c0f\u5bb6\u96fb"},{oName:"\u751f\u6d3b\u5c0f\u5bb6\u96fb",newName:"\u751f\u6d3b\u5c0f\u5bb6\u96fb"}];try{this.defineChangeTypeValue(m),m.forEach(function(l){d.copyProdShare(l.oName,l.newName)}),console.log("\u5b8c\u6210\u66f4\u65b0")}catch(l){console.log("\u66f4\u65b0\u5931\u6557")}case 2:case"end":return h.stop()}},I,this)}))}}]),L}();return x.\u0275fac=function(D){return new(D||x)(j.LFG(X.F),j.LFG($.ST))},x.\u0275prov=j.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x}()},40364:function(me,Q,k){"use strict";k.d(Q,{Z:function(){return F.Z}});var F=k(58367),B=(k(25880),k(66089),k(69719),k(64003)),R=k(80492),$=(k(70670),k(20483));!function G(e){e.prototype.loadBundle=$.b,e.prototype.namedQuery=$.u}($.Q),k(66651);var w,P=k(12461),s=k(70655),x=k(32940),D="0.4.19",d="w:"+D,m="FIS_v2",S=((w={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',w["not-registered"]="Firebase Installation is not registered.",w["installation-not-found"]="Firebase Installation not found.",w["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',w["app-offline"]="Could not process request. Application offline.",w["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",w),O=new R.LL("installations","Installations",S);function N(e){return e instanceof R.ZR&&e.code.includes("request-failed")}function W(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function K(e){return{token:e.token,requestStatus:2,expiresIn:ve(e.expiresIn),creationTime:Date.now()}}function re(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,t.json()];case 1:return r=i.sent(),[2,O.create("request-failed",{requestName:e,serverCode:(n=r.error).code,serverMessage:n.message,serverStatus:n.status})]}})})}function he(e){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey})}function ae(e,t){var r=t.refreshToken,n=he(e);return n.append("Authorization",function ge(e){return m+" "+e}(r)),n}function te(e){return(0,s.mG)(this,void 0,void 0,function(){var t;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return[4,e()];case 1:return(t=r.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}})})}function ve(e){return Number(e.replace("s","000"))}function Ce(e,t){var r=t.fid;return(0,s.mG)(this,void 0,void 0,function(){var n,i,a,f,g;return(0,s.Jh)(this,function(_){switch(_.label){case 0:return n=W(e),i=he(e),a={method:"POST",headers:i,body:JSON.stringify({fid:r,authVersion:m,appId:e.appId,sdkVersion:d})},[4,te(function(){return fetch(n,a)})];case 1:return(f=_.sent()).ok?[4,f.json()]:[3,3];case 2:return[2,{fid:(g=_.sent()).fid||r,registrationStatus:2,refreshToken:g.refreshToken,authToken:K(g.authToken)}];case 3:return[4,re("Create Installation",f)];case 4:throw _.sent()}})})}function Ee(e){return new Promise(function(t){setTimeout(t,e)})}var ke=/^[cdef][\w-]{21}$/;function Le(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var r=function A(e){return function Ue(e){return btoa(String.fromCharCode.apply(String,(0,s.fl)(e))).replace(/\+/g,"-").replace(/\//g,"_")}(e).substr(0,22)}(e);return ke.test(r)?r:""}catch(n){return""}}function c(e){return e.appName+"!"+e.appId}var u=new Map;function p(e,t){var r=c(e);C(r,t),function V(e,t){var r=Z();r&&r.postMessage({key:e,fid:t}),ne()}(r,t)}function C(e,t){var r,n,i=u.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(g){r={error:g}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}var J=null;function Z(){return!J&&"BroadcastChannel"in self&&((J=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){C(e.data.key,e.data.fid)}),J}function ne(){0===u.size&&J&&(J.close(),J=null)}var Fe="firebase-installations-store",ot=null;function st(){return ot||(ot=(0,x.openDb)("firebase-installations-database",1,function(e){0===e.oldVersion&&e.createObjectStore(Fe)})),ot}function qe(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i,o,a;return(0,s.Jh)(this,function(f){switch(f.label){case 0:return r=c(e),[4,st()];case 1:return n=f.sent(),i=n.transaction(Fe,"readwrite"),[4,(o=i.objectStore(Fe)).get(r)];case 2:return a=f.sent(),[4,o.put(t,r)];case 3:return f.sent(),[4,i.complete];case 4:return f.sent(),(!a||a.fid!==t.fid)&&p(e,t.fid),[2,t]}})})}function at(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return t=c(e),[4,st()];case 1:return r=i.sent(),[4,(n=r.transaction(Fe,"readwrite")).objectStore(Fe).delete(t)];case 2:return i.sent(),[4,n.complete];case 3:return i.sent(),[2]}})})}function We(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i,o,a,f;return(0,s.Jh)(this,function(g){switch(g.label){case 0:return r=c(e),[4,st()];case 1:return n=g.sent(),i=n.transaction(Fe,"readwrite"),[4,(o=i.objectStore(Fe)).get(r)];case 2:return a=g.sent(),void 0!==(f=t(a))?[3,4]:[4,o.delete(r)];case 3:return g.sent(),[3,6];case 4:return[4,o.put(f,r)];case 5:g.sent(),g.label=6;case 6:return[4,i.complete];
1case 7:return g.sent(),f&&(!a||a.fid!==f.fid)&&p(e,f.fid),[2,f]}})})}function ut(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,We(e,function(o){var a=function Ar(e){return Lt(e||{fid:Le(),registrationStatus:0})}(o),f=function Sr(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(O.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function Cr(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,Ce(e,t)];case 1:return r=i.sent(),[2,qe(e,r)];case 2:return N(n=i.sent())&&409===n.customData.serverCode?[4,at(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,qe(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw n;case 7:return[2]}})})}(e,n);return{installationEntry:n,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:kr(e)}:{installationEntry:t}}(e,a);return t=f.registrationPromise,f.installationEntry})];case 1:return""!==(r=i.sent()).fid?[3,3]:(n={},[4,t]);case 2:return[2,(n.installationEntry=i.sent(),n)];case 3:return[2,{installationEntry:r,registrationPromise:t}]}})})}function kr(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n,i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return[4,Pt(e)];case 1:t=o.sent(),o.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,Ee(100)];case 3:return o.sent(),[4,Pt(e)];case 4:return t=o.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,ut(e)];case 6:return r=o.sent(),n=r.installationEntry,(i=r.registrationPromise)?[2,i]:[2,n];case 7:return[2,t]}})})}function Pt(e){return We(e,function(t){if(!t)throw O.create("installation-not-found");return Lt(t)})}function Lt(e){return function Or(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()}(e)?{fid:e.fid,registrationStatus:0}:e}function Mr(e,t){var r=e.appConfig,n=e.platformLoggerProvider;return(0,s.mG)(this,void 0,void 0,function(){var i,o,a,g,y;return(0,s.Jh)(this,function(H){switch(H.label){case 0:return i=function Pr(e,t){var r=t.fid;return W(e)+"/"+r+"/authTokens:generate"}(r,t),o=ae(r,t),(a=n.getImmediate({optional:!0}))&&o.append("x-firebase-client",a.getPlatformInfoString()),g={method:"POST",headers:o,body:JSON.stringify({installation:{sdkVersion:d}})},[4,te(function(){return fetch(i,g)})];case 1:return(y=H.sent()).ok?[4,y.json()]:[3,3];case 2:return[2,K(H.sent())];case 3:return[4,re("Generate Auth Token",y)];case 4:throw H.sent()}})})}function ct(e,t){return void 0===t&&(t=!1),(0,s.mG)(this,void 0,void 0,function(){var r,n,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return[4,We(e.appConfig,function(f){if(!Dt(f))throw O.create("not-registered");var g=f.authToken;if(!t&&function Dr(e){return 2===e.requestStatus&&!function Nr(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(g))return f;if(1===g.requestStatus)return r=function Lr(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,Rt(e.appConfig)];case 1:r=i.sent(),i.label=2;case 2:return 1!==r.authToken.requestStatus?[3,5]:[4,Ee(100)];case 3:return i.sent(),[4,Rt(e.appConfig)];case 4:return r=i.sent(),[3,2];case 5:return 0===(n=r.authToken).requestStatus?[2,ct(e,t)]:[2,n]}})})}(e,t),f;if(!navigator.onLine)throw O.create("app-offline");var y=function Ur(e){var t={requestStatus:1,requestTime:Date.now()};return(0,s.pi)((0,s.pi)({},e),{authToken:t})}(f);return r=function Rr(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,Mr(e,t)];case 1:return r=o.sent(),i=(0,s.pi)((0,s.pi)({},t),{authToken:r}),[4,qe(e.appConfig,i)];case 2:return o.sent(),[2,r];case 3:return!N(n=o.sent())||401!==n.customData.serverCode&&404!==n.customData.serverCode?[3,5]:[4,at(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=(0,s.pi)((0,s.pi)({},t),{authToken:{requestStatus:0}}),[4,qe(e.appConfig,i)];case 6:o.sent(),o.label=7;case 7:throw n;case 8:return[2]}})})}(e,y),y})];case 1:return n=a.sent(),r?[4,r]:[3,3];case 2:return o=a.sent(),[3,4];case 3:o=n.authToken,a.label=4;case 4:return[2,o]}})})}function Rt(e){return We(e,function(t){if(!Dt(t))throw O.create("not-registered");return function Fr(e){return 1===e.requestStatus&&e.requestTime+1e4<Date.now()}(t.authToken)?(0,s.pi)((0,s.pi)({},t),{authToken:{requestStatus:0}}):t})}function Dt(e){return void 0!==e&&2===e.registrationStatus}function Kr(e){return(0,s.mG)(this,void 0,void 0,function(){var t;return(0,s.Jh)(this,function(r){switch(r.label){case 0:return[4,ut(e)];case 1:return(t=r.sent().registrationPromise)?[4,t]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}})})}function Br(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return r=function xr(e,t){var r=t.fid;return W(e)+"/"+r}(e,t),n=ae(e,t),i={method:"DELETE",headers:n},[4,te(function(){return fetch(r,i)})];case 1:return(o=a.sent()).ok?[3,3]:[4,re("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}})})}function lt(e){return O.create("missing-app-config-values",{valueName:e})}!function Hr(e){e.INTERNAL.registerComponent(new P.wA("installations",function(r){var n=r.getProvider("app").getImmediate(),i=function Jr(e){var t,r;if(!e||!e.options)throw lt("App Configuration");if(!e.name)throw lt("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 lt(a)}}catch(f){t={error:f}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}
1return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(n),a={appConfig:i,platformLoggerProvider:r.getProvider("platform-logger")},f={app:n,getId:function(){return function Gr(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,ut(e.appConfig)];case 1:return t=i.sent(),r=t.installationEntry,(n=t.registrationPromise)?n.catch(console.error):ct(e).catch(console.error),[2,r.fid]}})})}(a)},getToken:function(y){return function jr(e,t){return void 0===t&&(t=!1),(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,Kr(e.appConfig)];case 1:return n.sent(),[4,ct(e,t)];case 2:return[2,n.sent().token]}})})}(a,y)},delete:function(){return function Vr(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,We(t=e.appConfig,function(i){if(!i||0!==i.registrationStatus)return i})];case 1:if(!(r=n.sent()))return[3,6];if(1!==r.registrationStatus)return[3,2];throw O.create("delete-pending-registration");case 2:if(2!==r.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw O.create("app-offline");case 3:return[4,Br(t,r)];case 4:return n.sent(),[4,at(t)];case 5:n.sent(),n.label=6;case 6:return[2]}})})}(a)},onIdChange:function(y){return function Wr(e,t){var r=e.appConfig;return function b(e,t){Z();var r=c(e),n=u.get(r);n||u.set(r,n=new Set),n.add(t)}(r,t),function(){!function E(e,t){var r=c(e),n=u.get(r);!n||(n.delete(t),0===n.size&&u.delete(r),ne())}(r,t)}}(a,y)}};return f},"PUBLIC")),e.registerVersion("@firebase/installations",D)}(F.Z);var ie,zr=((ie={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',ie["only-available-in-window"]="This method is available in a Window context.",ie["only-available-in-sw"]="This method is available in a service worker context.",ie["permission-default"]="The notification permission was not granted and dismissed instead.",ie["permission-blocked"]="The notification permission was not granted and blocked instead.",ie["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",ie["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",ie["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",ie["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",ie["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",ie["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",ie["token-update-no-token"]="FCM returned no token when updating the user to push.",ie["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.",ie["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",ie["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",ie["invalid-vapid-key"]="The public VAPID key must be a string.",ie["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.",ie),z=new R.LL("messaging","Messaging",zr),Ye="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Nt="FCM_MSG",Ut="google.c.a.c_id",Re=function(){return(e=Re||(Re={})).PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked",Re;var e}();function Me(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,(0,s.fl)(t))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function nn(e){for(var r=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(r),i=new Uint8Array(n.length),o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}var ft="fcm_token_details_db",Ft="fcm_token_object_Store";function sn(e){return(0,s.mG)(this,void 0,void 0,function(){var n,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(f){return f.name}).includes(ft))return[2,null];a.label=2;case 2:return n=null,[4,(0,x.openDb)(ft,5,function(f){return(0,s.mG)(o,void 0,void 0,function(){var g,y,_,U;return(0,s.Jh)(this,function(H){switch(H.label){case 0:return f.oldVersion<2?[2]:f.objectStoreNames.contains(Ft)?[4,(g=f.transaction.objectStore(Ft)).index("fcmSenderId").get(e)]:[2];case 1:return y=H.sent(),[4,g.clear()];case 2:if(H.sent(),!y)return[2];if(2===f.oldVersion){if(!(_=y).auth||!_.p256dh||!_.endpoint)return[2];n={token:_.fcmToken,createTime:null!==(U=_.createTime)&&void 0!==U?U:Date.now(),subscriptionOptions:{auth:_.auth,p256dh:_.p256dh,endpoint:_.endpoint,swScope:_.swScope,vapidKey:"string"==typeof _.vapidKey?_.vapidKey:Me(_.vapidKey)}}}else(3===f.oldVersion||4===f.oldVersion)&&(n={token:(_=y).fcmToken,createTime:_.createTime,subscriptionOptions:{auth:Me(_.auth),p256dh:Me(_.p256dh),endpoint:_.endpoint,swScope:_.swScope,vapidKey:Me(_.vapidKey)}});return[2]}})})})];case 3:return a.sent().close(),[4,(0,x.deleteDb)(ft)];case 4:return a.sent(),[4,(0,x.deleteDb)("fcm_vapid_details_db")];case 5:return a.sent(),[4,(0,x.deleteDb)("undefined")];case 6:return a.sent(),[2,an(n)?n:null]}})})}function an(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 Ge="firebase-messaging-store",dt=null;function ht(){return dt||(dt=(0,x.openDb)("firebase-messaging-database",1,function(e){0===e.oldVersion&&e.createObjectStore(Ge)})),dt}function Ze(e){return(0,s.mG)(this,void 0,void 0,function(){var t,n,i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return t=gt(e),[4,ht()];case 1:return[4,o.sent().transaction(Ge).objectStore(Ge).get(t)];case 2:return(n=o.sent())?[2,n]:[3,3];case 3:return[4,sn(e.appConfig.senderId)];case 4:return(i=o.sent())?[4,pt(e,i)]:[3,6];case 5:return o.sent(),[2,i];case 6:return[2]}})})}function pt(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return r=gt(e),[4,ht()];case 1:return n=o.sent(),[4,(i=n.transaction(Ge,"readwrite")).objectStore(Ge).put(t,r)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,t]}})})}function ln(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return t=gt(e),[4,ht()];case 1:return r=i.sent(),[4,(n=r.transaction(Ge,"readwrite")).objectStore(Ge).delete(t)];case 2:return i.sent(),[4,n.complete];case 3:return i.sent(),[2]}})})}function gt(e){return e.appConfig.appId}function fn(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i,o,f;return(0,s.Jh)(this,function(y){switch(y.label){case 0:return[4,mt(e)];case 1:r=y.sent(),n=jt(t),i={method:"POST",headers:r,body:JSON.stringify(n)},y.label=2;case 2:return y.trys.push([2,5,,6]),[4,fetch(vt(e.appConfig),i)];case 3:return[4,y.sent().json()];case 4:return o=y.sent(),[3,6];case 5:throw f=y.sent(),z.create("token-subscribe-failed",{errorInfo:f});case 6:if(o.error)throw z.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw z.create("token-subscribe-no-token");return[2,o.token]}})})}function dn(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i,o,f;return(0,s.Jh)(this,function(y){switch(y.label){case 0:return[4,mt(e)];case 1:r=y.sent(),n=jt(t.subscriptionOptions),i={method:"PATCH",headers:r,body:JSON.stringify(n)},y.label=2;case 2:return y.trys.push([2,5,,6]),[4,fetch(vt(e.appConfig)+"/"+t.token,i)];case 3:return[4,y.sent().json()];case 4:return o=y.sent(),[3,6];case 5:throw f=y.sent(),z.create("token-update-failed",{errorInfo:f});case 6:if(o.error)throw z.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw z.create("token-update-no-token");return[2,o.token]}})})}function Gt(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,o,f;return(0,s.Jh)(this,function(g){switch(g.label){case 0:return[4,mt(e)];case 1:r=g.sent(),n={method:"DELETE",headers:r},g.label=2;case 2:return g.trys.push([2,5,,6]),[4,fetch(vt(e.appConfig)+"/"+t,n)];case 3:return[4,g.sent().json()];case 4:if((o=g.sent()).error)throw z.create("token-unsubscribe-failed",{errorInfo:o.error.message});return[3,6];case 5:throw f=g.sent(),z.create("token-unsubscribe-failed",{errorInfo:f});case 6:return[2]}})})}function vt(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function mt(e){var t=e.appConfig,r=e.installations;return(0,s.mG)(this,void 0,void 0,function(){var n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,r.getToken()];case 1:return n=i.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+n})]}})})}function jt(e){var i=e.vapidKey,o={web:{endpoint:e.endpoint,auth:e.auth,p256dh:e.p256dh}};return i!==Ye&&(o.web.applicationPubKey=i),o}function yt(e,t,r){return(0,s.mG)(this,void 0,void 0,function(){var n,i,o,a;return(0,s.Jh)(this,function(f){switch(f.label){case 0:if("granted"!==Notification.permission)throw z.create("permission-blocked");return[4,gn(t,r)];case 1:return n=f.sent(),[4,Ze(e)];case 2:return i=f.sent(),o={vapidKey:r,swScope:t.scope,endpoint:n.endpoint,auth:Me(n.getKey("auth")),p256dh:Me(n.getKey("p256dh"))},i?[3,3]:[2,Kt(e,o)];case 3:if(function vn(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];f.label=4;case 4:return f.trys.push([4,6,,7]),[4,Gt(e,i.token)];case 5:return f.sent(),[3,7];case 6:return a=f.sent(),console.warn(a),[3,7];case 7:return[2,Kt(e,o)];case 8:return Date.now()>=i.createTime+6048e5?[2,pn({token:i.token,createTime:Date.now(),subscriptionOptions:o},e,t)]:[2,i.token];case 9:return[2]}})})}function Je(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,Ze(e)];case 1:return(r=i.sent())?[4,Gt(e,r.token)]:[3,4];case 2:return i.sent(),[4,ln(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(n=i.sent())?[2,n.unsubscribe()]:[2,!0]}})})}function pn(e,t,r){return(0,s.mG)(this,void 0,void 0,function(){var n,i,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,dn(t,e)];case 1:return n=a.sent(),i=(0,s.pi)((0,s.pi)({},e),{token:n,createTime:Date.now()}),[4,pt(t,i)];case 2:return a.sent(),[2,n];case 3:return o=a.sent(),[4,Je(t,r)];case 4:throw a.sent(),o;case 5:return[2]}})})}function Kt(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,fn(e,t)];case 1:return r=i.sent(),n={token:r,createTime:Date.now(),subscriptionOptions:t},[4,pt(e,n)];case 2:return i.sent(),[2,n.token]}})})}function gn(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return(r=n.sent())?[2,r]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:nn(t)})]}})})}function Bt(e){return"object"==typeof e&&!!e&&Ut in e}function xt(e){return new Promise(function(t){setTimeout(t,e)})}var bn=function(){function e(t){var r=this;
1this.firebaseDependencies=t,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(n){n.waitUntil(r.onPush(n))}),self.addEventListener("pushsubscriptionchange",function(n){n.waitUntil(r.onSubChange(n))}),self.addEventListener("notificationclick",function(n){n.waitUntil(r.onNotificationClick(n))})}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 z.create("invalid-bg-handler");this.bgMessageHandler=t},e.prototype.onBackgroundMessage=function(t){var r=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=t,function(){r.bgMessageHandler=null}},e.prototype.getToken=function(){var t,r;return(0,s.mG)(this,void 0,void 0,function(){var n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return this.vapidKey?[3,2]:[4,Ze(this.firebaseDependencies)];case 1:n=i.sent(),this.vapidKey=null!==(r=null===(t=null==n?void 0:n.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==r?r:Ye,i.label=2;case 2:return[2,yt(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},e.prototype.deleteToken=function(){return Je(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw z.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw z.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw z.create("invalid-vapid-key");this.vapidKey=t},e.prototype.useServiceWorker=function(){throw z.create("only-available-in-window")},e.prototype.onMessage=function(){throw z.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw z.create("only-available-in-window")},e.prototype.onPush=function(t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i,o;return(0,s.Jh)(this,function(a){switch(a.label){case 0:return r=function Tn(e){var t=e.data;if(!t)return null;try{return t.json()}catch(r){return null}}(t),r?[4,Vt()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function An(e){return e.some(function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")})}(n=a.sent())?[2,Sn(n,r)]:(i=!1,r.notification?[4,Cn(En(r))]:[3,3]);case 2:a.sent(),i=!0,a.label=3;case 3:return!0===i&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(o=function mn(e){var t={from:e.from,collapseKey:e.collapse_key};return function yn(e,t){if(t.notification){e.notification={};var r=t.notification.title;r&&(e.notification.title=r);var n=t.notification.body;n&&(e.notification.body=n);var i=t.notification.image;i&&(e.notification.image=i)}}(t,e),function _n(e,t){!t.data||(e.data=t.data)}(t,e),function wn(e,t){if(t.fcmOptions){e.fcmOptions={};var r=t.fcmOptions.link;r&&(e.fcmOptions.link=r);var n=t.fcmOptions.analytics_label;n&&(e.fcmOptions.analyticsLabel=n)}}(t,e),t}(r),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(o):this.bgMessageHandler.next(o)),[4,xt(1e3)]);case 4:return a.sent(),[2]}})})},e.prototype.onSubChange=function(t){var r,n;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,Je(this.firebaseDependencies,self.registration)];case 1:case 5:return a.sent(),[2];case 2:return[4,Ze(this.firebaseDependencies)];case 3:return o=a.sent(),[4,Je(this.firebaseDependencies,self.registration)];case 4:return a.sent(),[4,yt(this.firebaseDependencies,self.registration,null!==(n=null===(r=null==o?void 0:o.subscriptionOptions)||void 0===r?void 0:r.vapidKey)&&void 0!==n?n:Ye)]}})})},e.prototype.onNotificationClick=function(t){var r,n;return(0,s.mG)(this,void 0,void 0,function(){var i,o,a,f,g;return(0,s.Jh)(this,function(y){switch(y.label){case 0:return(i=null===(n=null===(r=t.notification)||void 0===r?void 0:r.data)||void 0===n?void 0:n[Nt])?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),o=function kn(e){var t,r,n;return(null!==(r=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==r?r:null===(n=e.notification)||void 0===n?void 0:n.click_action)||(Bt(e.data)?self.location.origin:null)}(i),o?(a=new URL(o,self.location.href),f=new URL(self.location.origin),a.host!==f.host?[2]:[4,In(a)]):[2]):[2];case 1:return(g=y.sent())?[3,4]:[4,self.clients.openWindow(o)];case 2:return g=y.sent(),[4,xt(3e3)];case 3:return y.sent(),[3,6];case 4:return[4,g.focus()];case 5:g=y.sent(),y.label=6;case 6:return g?(i.messageType=Re.NOTIFICATION_CLICKED,i.isFirebaseMessaging=!0,[2,g.postMessage(i)]):[2]}})})},e}();function En(e){var t,r=(0,s.pi)({},e.notification);return r.data=((t={})[Nt]=e,t),r}function In(e){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n,i,o,a,f;return(0,s.Jh)(this,function(g){switch(g.label){case 0:return[4,Vt()];case 1:t=g.sent();try{for(r=(0,s.XA)(t),n=r.next();!n.done;n=r.next())if(i=n.value,o=new URL(i.url,self.location.href),e.host===o.host)return[2,i]}catch(y){a={error:y}}finally{try{n&&!n.done&&(f=r.return)&&f.call(r)}finally{if(a)throw a.error}}return[2,null]}})})}function Sn(e,t){var r,n;t.isFirebaseMessaging=!0,t.messageType=Re.PUSH_RECEIVED;try{for(var i=(0,s.XA)(e),o=i.next();!o.done;o=i.next())o.value.postMessage(t)}catch(f){r={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function Vt(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Cn(e){var t,r=e.actions,n=Notification.maxActions;return r&&n&&r.length>n&&console.warn("This browser only supports "+n+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(t=e.title)&&void 0!==t?t:"",e)}var On=function(){function e(t){var r=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(n){return r.messageEventListener(n)})}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 r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return(r=t.data).isFirebaseMessaging?(this.onMessageCallback&&r.messageType===Re.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(function Pn(e){return delete e.messageType,delete e.isFirebaseMessaging,e}(Object.assign({},r))):this.onMessageCallback.next(Object.assign({},r))),Bt(n=r.data)&&"1"===n["google.c.a.e"]?[4,this.logEvent(r.messageType,n)]:[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(r){switch(r.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:r.sent(),r.label=2;case 2:if("granted"!==Notification.permission)throw z.create("permission-blocked");return[4,this.updateVapidKey(null==t?void 0:t.vapidKey)];case 3:return r.sent(),[4,this.updateSwReg(null==t?void 0:t.serviceWorkerRegistration)];case 4:return r.sent(),[2,yt(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(r){return t?this.vapidKey=t:this.vapidKey||(this.vapidKey=Ye),[2]})})},e.prototype.updateSwReg=function(t){return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(r){switch(r.label){case 0:return t||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:r.sent(),r.label=2;case 2:if(!t&&this.swRegistration)return[2];if(!(t instanceof ServiceWorkerRegistration))throw z.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,r;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return n.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=n.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw r=n.sent(),z.create("failed-service-worker-registration",{browserErrorMessage:r.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,Je(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(r){switch(r.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=r.sent()))return[2];throw z.create("denied"===t?"permission-blocked":"permission-default")}})})},e.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw z.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw z.create("invalid-vapid-key");this.vapidKey=t},e.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw z.create("invalid-sw-registration");if(this.swRegistration)throw z.create("use-sw-after-get-token");this.swRegistration=t},e.prototype.onMessage=function(t){var r=this;return this.onMessageCallback=t,function(){r.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw z.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw z.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(t,r){return(0,s.mG)(this,void 0,void 0,function(){var n;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return n=function Mn(e){switch(e){case Re.NOTIFICATION_CLICKED:return"notification_open";case Re.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return o.sent().logEvent(n,{message_id:r[Ut],message_name:r["google.c.a.c_l"],message_time:r["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},e}();function _t(e){return z.create("missing-app-config-values",{valueName:e})}var Nn={isSupported:Wt};function Wt(){return self&&"ServiceWorkerGlobalScope"in self?function Fn(){return"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSub
1scription.prototype.hasOwnProperty("getKey")}():function Un(){return"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")}()}F.Z.INTERNAL.registerComponent(new P.wA("messaging",function Dn(e){var t=e.getProvider("app").getImmediate(),r=function Ln(e){var t,r;if(!e||!e.options)throw _t("App Configuration Object");if(!e.name)throw _t("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 f=a.value;if(!i[f])throw _t(f)}}catch(g){t={error:g}}finally{try{a&&!a.done&&(r=o.return)&&r.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:r,installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!Wt())throw z.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new bn(o):new On(o)},"PUBLIC").setServiceProps(Nn)),k(15416);var ue,wt="FB-PERF-TRACE-MEASURE",Zt="@firebase/performance/config",Xt="@firebase/performance/configexpire",Qt="Performance",xn=((ue={})["trace started"]="Trace {$traceName} was started before.",ue["trace stopped"]="Trace {$traceName} is not running.",ue["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",ue["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",ue["no window"]="Window is not available.",ue["no app id"]="App id is not available.",ue["no project id"]="Project id is not available.",ue["no api key"]="Api key is not available.",ue["invalid cc log"]="Attempted to queue invalid cc event",ue["FB not default"]="Performance can only start when Firebase app instance is the default one.",ue["RC response not ok"]="RC response is not ok",ue["invali
1d attribute name"]="Attribute name {$attributeName} is invalid.",ue["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",ue["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",ue["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",ue),fe=new R.LL("performance",Qt,xn),Pe=new B.Yd(Qt);Pe.logLevel=B.in.INFO;var bt,er,de=function(){function e(t){if(this.window=t,!t)throw fe.create("no window");this.performance=t.performance,this.PerformanceObserver=t.PerformanceObserver,this.windowLocation=t.location,this.navigator=t.navigator,this.document=t.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=t.localStorage),t.perfMetrics&&t.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=t.perfMetrics.onFirstInputDelay)}return e.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},e.prototype.mark=function(t){!this.performance||!this.performance.mark||this.performance.mark(t)},e.prototype.measure=function(t,r,n){!this.performance||!this.performance.measure||this.performance.measure(t,r,n)},e.prototype.getEntriesByType=function(t){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(t):[]},e.prototype.getEntriesByName=function(t){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(t):[]},e.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},e.prototype.requiredApisAvailable=function(){return fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled?!!(0,R.hl)()||(Pe.info("IndexedDB is not supported by current browswer"),!1):(Pe.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)},e.prototype.setupObserver=function(t,r){this.PerformanceObserver&&new this.PerformanceObserver(function(i){for(var o=0,a=i.getEntries();o<a.length;o++)r(a[o])}).observe({entryTypes:[t]})},e.getInstance=function(){return void 0===bt&&(bt=new e(er)),bt},e}();function tr(e,t){var r=e.length-t.length;if(r<0||r>1)throw fe.create("invalid String merger input");for(var n=[],i=0;i<e.length;i++)n.push(e.charAt(i)),t.length>i&&n.push(t.charAt(i));return n.join("")}var Et,rr,oe=function(){function e(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=tr("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=tr("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return e.prototype.getAppId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!t)throw fe.create("no app id");return t},e.prototype.getProjectId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!t)throw fe.create("no project id");return t},e.prototype.getApiKey=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!t)throw fe.create("no api key");return t},e.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},e.getInstance=function(){return void 0===Et&&(Et=new e),Et},e}();function Tt(){return rr}var je=function(){return(e=je||(je={}))[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN",je;var e}(),Hn=["firebase_","google_","ga_"],zn=new RegExp("^[a-zA-Z]\\w*$");function nr(){switch(de.getInstance().document.visibilityState){case"visible":return je.VISIBLE;case"hidden":return je.HIDDEN;default:return je.UNKNOWN}}function Zn(){var t=de.getInstance().navigator.connection;switch(t&&t.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var si="Could not fetch config, will use default configs";function ir(e){if(!e)return e;var t=oe.getInstance(),r=e.entries||{};return t.loggingEnabled=void 0===r.fpr_enabled||"true"===String(r.fpr_enabled),r.fpr_log_source&&(t.logSource=Number(r.fpr_log_source)),r.fpr_log_endpoint_url&&(t.logEndPointUrl=r.fpr_log_endpoint_url),r.fpr_log_transport_key&&(t.transportKey=r.fpr_log_transport_key),void 0!==r.fpr_vc_network_request_sampling_rate&&(t.networkRequestsSamplingRate=Number(r.fpr_vc_network_request_sampling_rate)),void 0!==r.fpr_vc_trace_sampling_rate&&(t.tracesSampl
1ingRate=Number(r.fpr_vc_trace_sampling_rate)),t.logTraceAfterSampling=or(t.tracesSamplingRate),t.logNetworkAfterSampling=or(t.networkRequestsSamplingRate),e}function or(e){return Math.random()<=e}var At,It=1;function sr(){return It=2,At=At||function li(){return function fi(){var e=de.getInstance().document;return new Promise(function(t){if(e&&"complete"!==e.readyState){e.addEventListener("readystatechange",function n(){"complete"===e.readyState&&(e.removeEventListener("readystatechange",n),t())})}else t()})}().then(function(){return function Wn(){var e=oe.getInstance().installationsService.getId();return e.then(function(t){rr=t}),e}()}).then(function(e){return function ni(e){var t=function ii(){var e=de.getInstance().localStorage;if(e){var t=e.getItem(Xt);if(t&&function ui(e){return Number(e)>Date.now()}(t)){var r=e.getItem(Zt);if(r)try{return JSON.parse(r)}catch(i){return}}}}();return t?(ir(t),Promise.resolve()):function ai(e){return function Jn(){var e=oe.getInstance().installationsService.getToken();return e.then(function(t){}),e}().then(function(t){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+oe.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+oe.getInstance().getApiKey(),i=new Request(n,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+t},body:JSON.stringify({app_instance_id:e,app_instance_id_token:t,app_id:oe.getInstance().getAppId(),app_version:"0.4.5",sdk_version:"0.0.1"})});return fetch(i).then(function(o){if(o.ok)return o.json();throw fe.create("RC response not ok")})}).catch(function(){Pe.info(si)})}(e).then(ir).then(function(r){return function oi(e){var t=de.getInstance().localStorage;!e||!t||(t.setItem(Zt,JSON.stringify(e)),t.setItem(Xt,String(Date.now()+60*oe.getInstance().configTimeToLive*60*1e3)))}(r)},function(){})}(e)}).then(function(){return ar()},function(){return ar()})}()}function ar(){It=3}var Ct,Xe=3,De=[],cr=!1;function Qe(e){setTimeout(function(){if(0!==Xe){if(!De.length)return Qe(1e4);!function gi(){var e=De.splice(0,1e3),t=e.map(function(n){return{source_extension_json_proto3:n.message,event_time_ms:String(n.eventTime)}});(function vi(e,t){return function mi(e){var t=oe.getInstance().getFlTransportFullUrl();return fetch(t,{method:"POST",body:JSON.stringify(e)})}(e).then(function(r){return r.ok||Pe.info("Call to Firebase backend failed."),r.json()}).then(function(r){var n=Number(r.nextRequestWaitMillis),i=1e4;isNaN(n)||(i=Math.max(n,i));var o=r.logResponseDetails;Array.isArray(o)&&o.length>0&&"RETRY_REQUEST_LATER"===o[0].responseAction&&(De=(0,s.pr)(t,De),Pe.info("Retry transport request later.")),Xe=3,Qe(i)})})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:oe.getInstance().logSource,log_event:t},e).catch(function(){De=(0,s.pr)(e,De),Xe--,Pe.info("Tries left: "+Xe+"."),Qe(1e4)})}()}},e)}function yi(e){if(!e.eventTime||!e.message)throw fe.create("invalid cc log");De=(0,s.pr)(De,[e])}function lr(e,t){Ct||(Ct=function _i(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];yi({message:e.apply(void 0,t),eventTime:Date.now()})}}(bi)),Ct(e,t)}function et(e){var t=oe.getInstance();!t.instrumentationEnabled&&e.isAuto||!t.dataCollectionEnabled&&!e.isAuto||!de.getInstance().requiredApisAvailable()||e.isAuto&&nr()!==je.VISIBLE||(function ci(){return 3===It}()?kt(e):sr().then(function(){return kt(e)},function(){return kt(e)}))}function kt(e){if(Tt()){var t=oe.getInstance();!t.loggingEnabled||!t.logTraceAfterSampling||setTimeout(function(){return lr(e,1)},0)}}function bi(e,t){return 0===t?function Ei(e){var t={url:e.url,http_method:e.httpMethod||0,http_response_code:200,response_payload_bytes:e.responsePayloadBytes,client_start_time_us:e.startTimeUs,time_to_response_initiated_us:e.timeToResponseInitiatedUs,time_to_response_completed_us:e.timeToResponseCompletedUs},r={application_info:fr(),network_request_metric:t};return JSON.stringify(r)}(e):function Ti(e){var t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};0!==Object.keys(e.counters).length&&(t.counters=e.counters);var r=e.getAttributes();0!==Object.keys(r).length&&(t.custom_attributes=r);var n={application_info:fr(),trace_metric:t};return JSON.stringify(n)}(e)}function fr(){return{google_app_id:oe.getInstance().getAppId(),app_instance_id:Tt(),web_app_info:{sdk_version:"0.4.5",page_url:de.getInstance().getUrl(),service_worker_status:(e=
1de.getInstance().navigator,"serviceWorker"in e?e.serviceWorker.controller?2:3:1),visibility_state:nr(),effective_connection_type:Zn()},application_process_state:0};var e}var Si=["_fp","_fcp","_fid"],He=function(){function e(t,r,n){void 0===r&&(r=!1),this.name=t,this.isAuto=r,this.state=1,this.customAttributes={},this.counters={},this.api=de.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=n||wt+"-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return e.prototype.start=function(){if(1!==this.state)throw fe.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},e.prototype.stop=function(){if(2!==this.state)throw fe.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),et(this)},e.prototype.record=function(t,r,n){if(t<=0)throw fe.create("nonpositive trace startTime",{traceName:this.name});if(r<=0)throw fe.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*r),this.startTimeUs=Math.floor(1e3*t),n&&n.attributes&&(this.customAttributes=(0,s.pi)({},n.attributes)),n&&n.metrics)for(var i=0,o=Object.keys(n.metrics);i<o.length;i++){var a=o[i];isNaN(Number(n.metrics[a]))||(this.counters[a]=Number(Math.floor(n.metrics[a])))}et(this)},e.prototype.incrementMetric=function(t,r){void 0===r&&(r=1),this.putMetric(t,void 0===this.counters[t]?r:this.counters[t]+r)},e.prototype.putMetric=function(t,r){if(!function Ci(e,t){return!(0===e.length||e.length>100)&&(t&&t.startsWith("_wt_")&&Si.indexOf(e)>-1||!e.startsWith("_"))}(t,this.name))throw fe.create("invalid custom metric name",{customMetricName:t});this.counters[t]=function ki(e){var t=Math.floor(e);return t<e&&Pe.info("Metric value should be an Integer, setting the value as : "+t+"."),t}(r)},e.prototype.getMetric=function(t){return this.counters[t]||0},e.prototype.putAttribute=function(t,r){var n=function Xn(e){return!(0===e.length||e.length>40||Hn.some(function(r){return e.startsWith(r)})||!e.match(zn))}(t),i=function Qn(e){return 0!==e.length&&e.length<=100}(r);if(n&&i)this.customAttributes[t]=r;else{if(!n)throw fe.create("invalid attribute name",{attributeName:t});if(!i)throw fe.create("invalid attribute value",{attributeValue:r})}},e.prototype.getAttribute=function(t){return this.customAttributes[t]},e.prototype.removeAttribute=function(t){void 0!==this.customAttributes[t]&&delete this.customAttributes[t]},e.prototype.getAttributes=function(){return(0,s.pi)({},this.customAttributes)},e.prototype.setStartTime=function(t){this.startTimeUs=t},e.prototype.setDuration=function(t){this.durationUs=t},e.prototype.calculateTraceMetrics=function(){var t=this.api.getEntriesByName(this.traceMeasure),r=t&&t[0];r&&(this.durationUs=Math.floor(1e3*r.duration),this.startTimeUs=Math.floor(1e3*(r.startTime+this.api.getTimeOrigin())))},e.createOobTrace=function(t,r,n){var i=de.getInstance().getUrl();if(i){var o=new e("_wt_"+i,!0),a=Math.floor(1e3*de.getInstance().getTimeOrigin());if(o.setStartTime(a),t&&t[0]&&(o.setDuration(Math.floor(1e3*t[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd))),r){var y=r.find(function(U){return"first-paint"===U.name});y&&y.startTime&&o.putMetric("_fp",Math.floor(1e3*y.startTime));var _=r.find(function(U){return"first-contentful-paint"===U.name});_&&_.startTime&&o.putMetric("_fcp",Math.floor(1e3*_.startTime)),n&&o.putMetric("_fid",Math.floor(1e3*n))}et(o)}},e.createUserTimingTrace=function(t){et(new e(t,!1,t))},e}();function dr(e){var t=e;if(t&&void 0!==t.responseStart){var r=de.getInstance().getTimeOrigin(),n=Math.floor(1e3*(t.startTime+r)),i=t.responseStart?Math.floor(1e3*(t.responseStart-t.startTime)):void 0,o=Math.floor(1e3*(t.responseEnd-t.startTime));!function wi(e){var t=oe.getInstance();if(t.instrumentationEnabled){var r=e.url,n=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];r===n||r===i||!t.loggingEnabled||!t.logNetworkAfterSampling||setTimeout(function(){return lr(e,0)}
1,0)}}({url:t.name&&t.name.split("?")[0],responsePayloadBytes:t.transferSize,startTimeUs:n,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:o})}}function hr(){!Tt()||(setTimeout(function(){return function Pi(){var e=de.getInstance(),t=e.getEntriesByType("navigation"),r=e.getEntriesByType("paint");if(e.onFirstInputDelay){var n=setTimeout(function(){He.createOobTrace(t,r),n=void 0},5e3);e.onFirstInputDelay(function(i){n&&(clearTimeout(n),He.createOobTrace(t,r,i))})}else He.createOobTrace(t,r)}()},0),setTimeout(function(){return function Mi(){for(var e=de.getInstance(),r=0,n=e.getEntriesByType("resource");r<n.length;r++)dr(n[r]);e.setupObserver("resource",dr)}()},0),setTimeout(function(){return function Li(){for(var e=de.getInstance(),r=0,n=e.getEntriesByType("measure");r<n.length;r++)pr(n[r]);e.setupObserver("measure",pr)}()},0))}function pr(e){var t=e.name;t.substring(0,wt.length)!==wt&&He.createUserTimingTrace(t)}var Ri=function(){function e(t){this.app=t,de.getInstance().requiredApisAvailable()&&(0,R.eu)().then(function(r){r&&(function pi(){cr||(Qe(5500),cr=!0)}(),sr().then(hr,hr))}).catch(function(r){Pe.info("Environment doesn't support IndexedDB: "+r)})}return e.prototype.trace=function(t){return new He(t)},Object.defineProperty(e.prototype,"instrumentationEnabled",{get:function(){return oe.getInstance().instrumentationEnabled},set:function(r){oe.getInstance().instrumentationEnabled=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataCollectionEnabled",{get:function(){return oe.getInstance().dataCollectionEnabled},set:function(r){oe.getInstance().dataCollectionEnabled=r},enumerable:!1,configurable:!0}),e}();!function Ni(e){e.INTERNAL.registerComponent(new P.wA("performance",function(r){return function(n,i){if("[DEFAULT]"!==n.name)throw fe.create("FB not default");if("undefined"==typeof window)throw fe.create("no window");return function Vn(e){er=e}(window),oe.getInstance().firebaseAppInstance=n,oe.getInstance().installationsService=i,new Ri(n)}(r.getProvider("app").getImmediate(),r.getProvider("installations").getImmediate())},"PUBLIC")),e.registerVersion("@firebase/performance","0.4.5")}(F.Z);var gr="https://www.googletagmanager.com/gtag/js",ce=function(){return(e=ce||(ce={})).EVENT="event",e.SET="set",e.CONFIG="config",ce;var e}(),tt=function(){return(e=tt||(tt={})).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",tt;var e}(),le=new B.Yd("@firebase/analytics");function zi(e,t,r,n,i,o){return(0,s.mG)(this,void 0,void 0,function(){var a,f,g,y;return(0,s.Jh)(this,function(_){switch(_.label){case 0:a=n[i],_.label=1;case 1:return _.trys.push([1,7,,8]),a?[4,t[a]]:[3,3];case 2:return _.sent(),[3,6];case 3:return[4,Promise.all(r)];case 4:return f=_.sent(),(g=f.find(function(U){return U.measurementId===i}))?[4,t[g.appId]]:[3,6];case 5:_.sent(),_.label=6;case 6:return[3,8];case 7:return y=_.sent(),le.error(y),[3,8];case 8:return e(ce.CONFIG,i,o),[2]}})})}function $i(e,t,r,n,i){return(0,s.mG)(this,void 0,void 0,function(){var o,a,f,g,y,_,q;return(0,s.Jh)(this,function(we){switch(we.label){case 0:return we.trys.push([0,4,,5]),o=[],i&&i.send_to?(a=i.send_to,Array.isArray(a)||(a=[a]),[4,Promise.all(r)]):[3,2];case 1:for(f=we.sent(),g=function(Be){var xe=f.find(function(Ve){return Ve.measurementId===Be}),Ne=xe&&t[xe.appId];if(!Ne)return o=[],"break";o.push(Ne)},y=0,_=a;y<_.length&&"break"!==g(_[y]);y++);we.label=2;case 2:return 0===o.length&&(o=Object.values(t)),[4,Promise.all(o)];case 3:return we.sent(),e(ce.EVENT,n,i||{}),[3,5];case 4:return q=we.sent(),le.error(q),[3,5];case 5:return[2]}})})}var Ie,Xi=((Ie={})["already-exists"]="A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.",Ie["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",Ie["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}
1",Ie["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}",Ie["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Ie["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",Ie["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",Ie["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',Ie["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',Ie),ye=new R.LL("analytics","Analytics",Xi),vr=new(function(){function e(t,r){void 0===t&&(t={}),void 0===r&&(r=1e3),this.throttleMetadata=t,this.intervalMillis=r}return e.prototype.getThrottleMetadata=function(t){return this.throttleMetadata[t]},e.prototype.setThrottleMetadata=function(t,r){this.throttleMetadata[t]=r},e.prototype.deleteThrottleMetadata=function(t){delete this.throttleMetadata[t]},e}());function ro(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function no(e){var t;return(0,s.mG)(this,void 0,void 0,function(){var r,i,o,a,f,g;return(0,s.Jh)(this,function(_){switch(_.label){case 0:return r=e.appId,i={method:"GET",headers:ro(e.apiKey)},o="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",r),[4,fetch(o,i)];case 1:if(200===(a=_.sent()).status||304===a.status)return[3,6];f="",_.label=2;case 2:return _.trys.push([2,4,,5]),[4,a.json()];case 3:return g=_.sent(),(null===(t=g.error)||void 0===t?void 0:t.message)&&(f=g.error.message),[3,5];case 4:return _.sent(),[3,5];case 5:throw ye.create("config-fetch-failed",{httpStatus:a.status,responseMessage:f});case 6:return[2,a.json()]}})})}function mr(e,t,r,n){var i=t.throttleEndTimeMillis,o=t.backoffCount;return void 0===n&&(n=vr),(0,s.mG)(this,void 0,void 0,function(){var a,f,g,y,_,U,H;return(0,s.Jh)(this,function(q){switch(q.label){case 0:a=e.appId,f=e.measurementId,q.label=1;case 1:return q.trys.push([1,3,,4]),[4,oo(r,i)];case 2:return q.sent(),[3,4];case 3:if(g=q.sent(),f)return le.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+f+' provided in the "measurementId" field in the local Firebase config. ['+g.message+"]"),[2,{appId:a,measurementId:f}];throw g;case 4:return q.trys.push([4,6,,7]),[4,no(e)];case 5:return y=q.sent(),n.deleteThrottleMetadata(a),[2,y];case 6:if(!function so(e){if(!(e instanceof R.ZR&&e.customData))return!1;var t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(_=q.sent())){if(n.deleteThrottleMetadata(a),f)return le.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+f+' provided in the "measurementId" field in the local Firebase config. ['+_.message+"]"),[2,{appId:a,measurementId:f}];throw _}return U=503===Number(_.customData.httpStatus)?(0,R.$s)(o,n.intervalMillis,30):(0,R.$s)(o,n.intervalMillis),H={throttleEndTimeMillis:Date.now()+U,backoffCount:o+1},n.setThrottleMetadata(a,H),le.debug("Calling attemptFetch again in "+U+" millis"),[2,mr(e,H,r,n)];case 7:return[2]}})})}function oo(e,t){return new Promise(function(r,n){var i=Math.max(t-Date.now(),0),o=setTimeout(r,i);e.addEventListener(function(){clearTimeout(o),n(ye.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}var ao=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(t){this.listeners.push(t)},e.prototype.abort=function(){this.listeners.forEach(function(t){return t()})},e}();var _r,$e,Ae={},rt=[],yr={},ze="dataLayer",Ot="gtag",nt=!1;function lo(e){if(nt)throw ye.create("already-initialized");e.dataLayerName&&(ze=e.dataLayerName),e.gtagName&&(Ot=e.gtagName)}function ho(e,t){!function fo(){var e=[];
1if((0,R.ru)()&&e.push("This is a browser extension environment."),(0,R.zI)()||e.push("Cookies are not available."),e.length>0){var t=e.map(function(n,i){return"("+(i+1)+") "+n}).join(" "),r=ye.create("invalid-analytics-context",{errorInfo:t});le.warn(r.message)}}();var r=e.options.appId;if(!r)throw ye.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw ye.create("no-api-key");le.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!=Ae[r])throw ye.create("already-exists",{id:r});if(!nt){(function Zi(){for(var e=window.document.getElementsByTagName("script"),t=0,r=Object.values(e);t<r.length;t++){var n=r[t];if(n.src&&n.src.includes(gr))return n}return null})()||function Ji(e){var t=document.createElement("script");t.src=gr+"?l="+e,t.async=!0,document.head.appendChild(t)}(ze),function Hi(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(ze);var n=function Yi(e,t,r,n,i){var o=function(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];window[n].push(arguments)};return window[i]&&"function"==typeof window[i]&&(o=window[i]),window[i]=function qi(e,t,r,n){return function i(o,a,f){return(0,s.mG)(this,void 0,void 0,function(){var g;return(0,s.Jh)(this,function(y){switch(y.label){case 0:return y.trys.push([0,6,,7]),o!==ce.EVENT?[3,2]:[4,$i(e,t,r,a,f)];case 1:return y.sent(),[3,5];case 2:return o!==ce.CONFIG?[3,4]:[4,zi(e,t,r,n,a,f)];case 3:return y.sent(),[3,5];case 4:e(ce.SET,a),y.label=5;case 5:return[3,7];case 6:return g=y.sent(),le.error(g),[3,7];case 7:return[2]}})})}}(o,e,t,r),{gtagCore:o,wrappedGtag:window[i]}}(Ae,rt,yr,ze,Ot);$e=n.wrappedGtag,_r=n.gtagCore,nt=!0}Ae[r]=function co(e,t,r,n,i){return(0,s.mG)(this,void 0,void 0,function(){var o,a,f,g,y,_,U;return(0,s.Jh)(this,function(H){switch(H.label){case 0:return o=function io(e,t,r){return void 0===t&&(t=vr),(0,s.mG)(this,void 0,void 0,function(){var n,i,o,a,f,g,y=this;return(0,s.Jh)(this,function(_){if(o=(n=e.options).apiKey,a=n.measurementId,!(i=n.appId))throw ye.create("no-app-id");if(!o){if(a)return[2,{measurementId:a,appId:i}];throw ye.create("no-api-key")}return f=t.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},g=new ao,setTimeout(function(){return(0,s.mG)(y,void 0,void 0,function(){return(0,s.Jh)(this,function(U){return g.abort(),[2]})})},void 0!==r?r:6e4),[2,mr({appId:i,apiKey:o,measurementId:a},f,g,t)]})})}(e),o.then(function(q){r[q.measurementId]=q.appId,e.options.measurementId&&q.measurementId!==e.options.measurementId&&le.warn("The measurement ID in the local Firebase config ("+e.options.measurementId+") does not match the measurement ID fetched from the server ("+q.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(q){return le.error(q)}),t.push(o),a=function uo(){return(0,s.mG)(this,void 0,void 0,function(){var e;return(0,s.Jh)(this,function(t){switch(t.label){case 0:return(0,R.hl)()?[3,1]:(le.warn(ye.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,R.eu)()];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),le.warn(ye.create("indexeddb-unavailable",{errorInfo:e}).message),[2,!1];case 4:return[2,!0]}})})}().then(function(q){if(q)return n.getId()}),[4,Promise.all([o,a])];case 1:return f=H.sent(),g=f[0],y=f[1],i("js",new Date),(U={}).origin="firebase",U.update=!0,_=U,null!=y&&(_.firebase_id=y),i(ce.CONFIG,g.measurementId,_),[2,g.measurementId]}})})}(e,rt,yr,t,_r);var a={app:e,logEvent:function(g,y,_){(function Ki(e,t,r,n,i){return(0,s.mG)(this,void 0,void 0,function(){var o,a;return(0,s.Jh)(this,function(f){switch(f.label){case 0:return i&&i.global?(e(ce.EVENT,r,n),[2]):[3,1];case 1:return[4,t];case 2:o=f.sent(),a=(0,s.pi)((0,s.pi)({},n),{send_to:o}),e(ce.EVENT,r,a),f.label=3;case 3:return[2]}})})})($e,Ae[r],g,y,_).catch(function(U){return le.error(U)})},setCurrentScreen:function(g,y){(function Bi(e,t,r,n){return(0,s.mG)(this,void 0,void 0,function(){var i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return n&&n.global?(e(ce.SET,{screen_name:r}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=o.sent(),e(ce.CONFIG,i,{update:!0,screen_name:r}),o.label=3;case 3:return[2]}})})})($e,Ae[r],g,y).catch(function(_){return le.error(_)})},setUserId:function(g,y){(function xi(e,t,r,n){return(0,s.mG)(this,void 0,void 0,function(){var i;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return n&&n.global?(e(ce.SET,{user_id:r}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=o.sent(),e(ce.CONFIG,i,{update:!0,user_id:r}),o.label=3;case 3:return[2]}})})})($e,Ae[r],g,y).catch(function(_){return le.error(_)})},setUserProperties:function(g,y){(function Vi(e,t,r,n){return(0,s.mG)(this,void 0,void 0,function(){var i,o,a,f,g;return(0,s.Jh)(this,function(y){switch(y.label){case 0:if(!n||!n.global)return[3,1];for(i={},o=0,a=Object.keys(r);o<a.length;o++)i["user_properties."+(f=a[o])]=r[f];return e(ce.SET,i),[2,Promise.resolve()];case 1:return[4,t];case 2:g=y.sent(),e(ce.CONFIG,g,{update:!0,user_properties:r}),y.label=3;case 3:return[2]}})})})($e,Ae[r],g,y).catch(function(_){return le.error(_)})},setAnalyticsCollectionEnabled:function(g){(function Wi(e,t){return(0,s.mG)(this,void 0,void 0,function(){var r;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,e];case 1:return r=n.sent(),window["ga-disable-"+r]=!t,[2]}
1})})})(Ae[r],g).catch(function(y){return le.error(y)})},INTERNAL:{delete:function(){return delete Ae[r],Promise.resolve()}}};return a}var wr="analytics";function mo(){return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(r){switch(r.label){case 0:if((0,R.ru)())return[2,!1];if(!(0,R.zI)())return[2,!1];if(!(0,R.hl)())return[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,R.eu)()];case 2:return[2,r.sent()];case 3:return r.sent(),[2,!1];case 4:return[2]}})})}!function vo(e){e.INTERNAL.registerComponent(new P.wA(wr,function(r){return ho(r.getProvider("app").getImmediate(),r.getProvider("installations").getImmediate())},"PUBLIC").setServiceProps({settings:lo,EventName:tt,isSupported:mo})),e.INTERNAL.registerComponent(new P.wA("analytics-internal",function t(r){try{return{logEvent:r.getProvider(wr).getImmediate().logEvent}}catch(i){throw ye.create("interop-component-reg-failed",{reason:i})}},"PRIVATE")),e.registerVersion("@firebase/analytics","0.6.2")}(F.Z);var pe,yo=function(){function e(t,r,n,i){this.client=t,this.storage=r,this.storageCache=n,this.logger=i}return e.prototype.isCachedDataFresh=function(t,r){if(!r)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-r,i=n<=t;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+t+". Is cache hit: "+i+"."),i},e.prototype.fetch=function(t){return(0,s.mG)(this,void 0,void 0,function(){var r,n,i,o,a;return(0,s.Jh)(this,function(f){switch(f.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return r=f.sent(),n=r[0],(i=r[1])&&this.isCachedDataFresh(t.cacheMaxAgeMillis,n)?[2,i]:(t.eTag=i&&i.eTag,[4,this.client.fetch(t)]);case 2:return o=f.sent(),a=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===o.status&&a.push(this.storage.setLastSuccessfulFetchResponse(o)),[4,Promise.all(a)];case 3:return f.sent(),[2,o]}})})},e}(),_o=((pe={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",pe["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",pe["registration-api-key"]="Undefined API key. Check Firebase app initialization.",pe["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",pe["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",pe["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",pe["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",pe["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",pe["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",pe["fetch-timeout"]='The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',pe["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',pe["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",pe["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",pe),_e=new R.LL("remoteconfig","Remote Config",_o);function bo(e){return void 0===e&&(e=navigator),e.languages&&e.languages[0]||e.language}var Eo=function(){function e(t,r,n,i,o,a){this.firebaseInstallations=t,this.sdkVersion=r,this.namespace=n,this.projectId=i,this.apiKey=o,this.appId=a}return e.prototype.fetch=function(t){return(0,s.mG)(this,void 0,void 0,function(){var r,o,a,f,g,y,_,U,H,q,we,Se,Be,xe,Ne,Ve,Tr;return(0,s.Jh)(this,function(be){switch(be.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:r=be.sent(),o=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",a=o+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?ke
1y="+this.apiKey,f={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":t.eTag||"*"},g={sdk_version:this.sdkVersion,app_instance_id:r[0],app_instance_id_token:r[1],app_id:this.appId,language_code:bo()},y={method:"POST",headers:f,body:JSON.stringify(g)},_=fetch(a,y),U=new Promise(function(qo,Jo){t.signal.addEventListener(function(){var Ir=new Error("The operation was aborted.");Ir.name="AbortError",Jo(Ir)})}),be.label=2;case 2:return be.trys.push([2,5,,6]),[4,Promise.race([_,U])];case 3:return be.sent(),[4,_];case 4:return H=be.sent(),[3,6];case 5:throw q=be.sent(),we="fetch-client-network","AbortError"===q.name&&(we="fetch-timeout"),_e.create(we,{originalErrorMessage:q.message});case 6:if(Se=H.status,Be=H.headers.get("ETag")||void 0,200!==H.status)return[3,11];Ve=void 0,be.label=7;case 7:return be.trys.push([7,9,,10]),[4,H.json()];case 8:return Ve=be.sent(),[3,10];case 9:throw Tr=be.sent(),_e.create("fetch-client-parse",{originalErrorMessage:Tr.message});case 10:xe=Ve.entries,Ne=Ve.state,be.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===Ne?Se=500:"NO_CHANGE"===Ne?Se=304:("NO_TEMPLATE"===Ne||"EMPTY_CONFIG"===Ne)&&(xe={}),304!==Se&&200!==Se)throw _e.create("fetch-status",{httpStatus:Se});return[2,{status:Se,eTag:Be,config:xe}]}})})},e}(),To=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(t){this.listeners.push(t)},e.prototype.abort=function(){this.listeners.forEach(function(t){return t()})},e}(),So=["1","true","t","yes","y","on"],Mt=function(){function e(t,r){void 0===r&&(r=""),this._source=t,this._value=r}return e.prototype.asString=function(){return this._value},e.prototype.asBoolean=function(){return"static"!==this._source&&So.indexOf(this._value.toLowerCase())>=0},e.prototype.asNumber=function(){if("static"===this._source)return 0;var t=Number(this._value);return isNaN(t)&&(t=0),t},e.prototype.getSource=function(){return this._source},e}(),Oo=function(){function e(t,r,n,i,o){this.app=t,this._client=r,this._storageCache=n,this._storage=i,this._logger=o,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return e.prototype.setLogLevel=function(t){switch(t){case"debug":this._logger.logLevel=B.in.DEBUG;break;case"silent":this._logger.logLevel=B.in.SILENT;break;default:this._logger.logLevel=B.in.ERROR}},Object.defineProperty(e.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!1,configurable:!0}),e.prototype.activate=function(){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return t=i.sent(),n=t[1],(r=t[0])&&r.config&&r.eTag&&r.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(r.config),this._storage.setActiveConfigEtag(r.eTag)])]:[2,!1];case 2:return i.sent(),[2,!0]}})})},e.prototype.ensureInitialized=function(){var t=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then(function(){t._isInitializationComplete=!0})),this._initializePromise},e.prototype.fetch=function(){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n,i=this;return(0,s.Jh)(this,function(o){switch(o.label){case 0:t=new To,setTimeout(function(){return(0,s.mG)(i,void 0,void 0,function(){return(0,s.Jh)(this,function(a){return t.abort(),[2]})})},this.settings.fetchTimeoutMillis),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:t})];case 2:return o.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return o.sent(),[3,6];case 4:return r=o.sent(),n=function wo(e,t){return e instanceof R.ZR&&-1!==e.code.indexOf(t)}(r,"fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw o.sent(),r;case 6:return[2]}})})},e.prototype.fetchAndActivate=function(){return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(t){switch(t.label){case 0:return[4,this.fetch()];case 1:return t.sent(),[2,this.activate()]}})})},e.prototype.getAll=function(){var t=this;return function Mo(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Object.keys((0,s.pi)((0,s.pi)({},e),t))}(this._storageCache.getActiveConfig(),this.defaultConfig).reduce(function(r,n){return r[n]=t.getValue(n),r},{})},e.prototype.getBoolean=function(t){return this.getValue(t).asBoolean()},e.prototype.getNumber=function(t){return this.getValue(t).asNumber()},e.prototype.getString=function(t){return this.getValue(t).asString()},e.prototype.getValue=function(t){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+t+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var r=this._storageCache.getActiveConfig();return r&&void 0!==r[t]?new Mt("remote",r[t]):this.defaultConfig&&void 0!==this.defaultConfig[t]?new Mt("default",String(this.defaultConfig[t])):(this._logger.debug('Returning static value for key "'+t+'". Define a default or remote value if this is unintentional.'),new Mt("static"))},e}();function it(e,t){var r=e.target.error||void 0;return _e.create(t,{originalErrorMessage:r&&r.message})}var Ke="app_namespace_store",Do=function(){function e(t,r,n,i){void 0===i&&(i=function Ro(){return new Promise(function(e,t){var r=indexedDB.open("firebase_remote_config",1);r.onerror=function(n){t(it(n,"storage-open"))},r.onsuccess=function(n){e(n.target.result)},r.onupgradeneeded=function(n){0===n.oldVersion&&n.target.result.createObjectStore(Ke,{keyPath:"compositeKey"})}})}()),this.appId=t,this.appName=r,this.namespace=n,this.openDbPromise=i}return e.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},e.prototype.setLastFetchStatus=function(t){return this.set("last_fetch_status",t)},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},e.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.set("last_successful_fetch_timestamp_millis",t)},e.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},e.prototype.setLastSuccessfulFetchResponse=function(t){return this.set("last_successful_fetch_response",t)},e.prototype.getActiveConfig=function(){return this.get("active_config")},e.prototype.setActiveConfig=function(t){return this.set("active_config",t)},e.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},e.prototype.setActiveConfigEtag=function(t){return this.set("active_config_etag",t)},e.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},e.prototype.setThrottleMetadata=function(t){return this.set("throttle_metadata",t)},e.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},e.prototype.get=function(t){return(0,s.mG)(this,void 0,void 0,function(){var r,n=this;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return r=i.sent(),[2,new Promise(function(o,a){var g=r.transaction([Ke],"readonly").objectStore(Ke),y=n.createCompositeKey(t);try{var _=g.get(y);_.onerror=function(U){a(it(U,"storage-get"))},_.onsuccess=function(U){var H=U.target.result;o(H?H.value:void 0)}}catch(U){a(_e.create("storage-get",{originalErrorMessage:U&&U.message}))}})]}})})},e.prototype.set=function(t,r){return(0,s.mG)(this,void 0,void 0,function(){var n,i=this;return(0,s.Jh)(this,function(o){switch(o.label){case 0:return[4,this.openDbPromise];case 1:return n=o.sent(),[2,new Promise(function(a,f){var y=n.transaction([Ke],"readwrite").objectStore(Ke),_=i.createCompositeKey(t);try{var U=y.put({compositeKey:_,value:r});U.onerror=function(H){f(it(H,"storage-set"))},U.onsuccess=function(){a()}}catch(H){f(_e.create("storage-set",{originalErrorMessage:H&&H.message}))}})]}})})},e.prototype.delete=function(t){return(0,s.mG)(this,void 0,void 0,function(){var r,n=this;return(0,s.Jh)(this,function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return r=i.sent(),[2,new Promise(function(o,a){var g=r.transaction([Ke],"readwrite").objectStore(Ke),y=n.createCompositeKey(t);try{var _=g.delete(y);_.onerror=function(U){a(it(U,"storage-delete"))},_.onsuccess=function(){o()}}catch(U){a(_e.create("storage-delete",{originalErrorMessage:U&&U.message}))}})]}})})},e.prototype.createCompositeKey=function(t){return[this.appId,this.appName,this.namespace,t].join()},e}(),No=function(){function e(t){this.storage=t}return e.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},e.prototype.getActiveConfig=function(){return this.activeConfig},e.prototype.loadFromStorage=function(){return(0,s.mG)(this,void 0,void 0,function(){var t,r,n,i,o,a;return(0,s.Jh)(this,function(f){switch(f.label){case 0:return t=this.storage.getLastFetchStatus(),r=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,t];case 1:return(i=f.sent())&&(this.lastFetchStatus=i),[4,r];case 2:return(o=f.sent())&&(this.lastSuccessfulFetchTimestampMillis=o),[4,n];case 3:return(a=f.sent())&&(this.activeConfig=a),[2]}})})},e.prototype.setLastFetchStatus=function(t){return this.lastFetchStatus=t,this.storage.setLastFetchStatus(t)},e.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.lastSuccessfulFetchTimestampMillis=t,this.storage.setLastSuccessfulFetchTimestampMillis(t)},e.prototype.setActiveConfig=function(t){return this.activeConfig=t,this.storage.setActiveConfig(t)},e}();function Uo(e,t){return new Promise(function(r,n){var i=Math.max(t-Date.now(),0),o=setTimeout(r,i);e.addEventListener(function(){clearTimeout(o),n(_e.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}var Go=function(){function e(t,r){this.client=t,this.storage=r}return e.prototype.fetch=function(t){return(0,s.mG)(this,void 0,void 0,function(){var r;return(0,s.Jh)(this,function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return r=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(t,r)]}})})},e.prototype.attemptFetch=function(t,r){var n=r.throttleEndTimeMillis,i=r.backoffCount;return(0,s.mG)(this,void 0,void 0,function(){var o,a,f;return(0,s.Jh)(this,function(g){switch(g.label){case 0:return[4,Uo(t.signal,n)];case 1:g.sent(),g.label=2;case 2:return g.trys.push([2,5,,7]),[4,this.client.fetch(t)];case 3:return o=g.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return g.sent(),[2,o];case 5:if(!function Fo(e){if(!(e instanceof R.ZR&&e.customData))return!1;var t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(a=g.sent()))throw a;return f={throttleEndTimeMillis:Date.now()+(0,R.$s)(i),backoffCount:i+1},[4,this.storage.setThrottleMetadata(f)];case 6:return g.sent(),[2,this.attemptFetch(t,f)];case 7:return[2]}})})},e}(),Er="@firebase/remote-config";!function Ko(e){e.INTERNAL.registerComponent(new P.wA("remoteConfig",function t(r,n){var i=r.getProvider("app").getImmediate(),o=r.getProvider("installations").getImmediate();if("undefined"==typeof window)throw _e.create("registration-window");var a=i.options,f=a.projectId,g=a.apiKey,y=a.appId;if(!f)throw _e.create("registration-project-id");if(!g)throw _e.create("registration-api-key");if(!y)throw _e.create("registration-app-id");var _=new Do(y,i.name,n=n||"firebase"),U=new No(_),H=new B.Yd(Er);H.logLevel=B.in.ERROR;
1var q=new Eo(o,e.SDK_VERSION,n,f,g,y),we=new Go(q,_),Se=new yo(we,_,U,H),Be=new Oo(i,Se,U,_,H);return Be.ensureInitialized(),Be},"PUBLIC").setMultipleInstances(!0)),e.registerVersion(Er,"0.1.30")}(F.Z),F.Z.registerVersion("firebase","8.2.7","app"),console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),F.Z.registerVersion("firebase","8.2.7")},64855:function(me,Q,k){"use strict";k(66651)},32940:function(me,Q){!function(k){"use strict";function F(d){return Array.prototype.slice.call(d)}function M(d){return new Promise(function(m,T){d.onsuccess=function(){m(d.result)},d.onerror=function(){T(d.error)}})}function j(d,m,T){var h,l=new Promise(function(v,w){M(h=d[m].apply(d,T)).then(v,w)});return l.request=h,l}function ee(d,m,T){var h=j(d,m,T);return h.then(function(l){if(l)return new Y(l,h.request)})}function B(d,m,T){T.forEach(function(h){Object.defineProperty(d.prototype,h,{get:function(){return this[m][h]},set:function(v){this[m][h]=v}})})}function R(d,m,T,h){h.forEach(function(l){l in T.prototype&&(d.prototype[l]=function(){return j(this[m],l,arguments)})})}function X(d,m,T,h){h.forEach(function(l){l in T.prototype&&(d.prototype[l]=function(){return this[m][l].apply(this[m],arguments)})})}function $(d,m,T,h){h.forEach(function(l){l in T.prototype&&(d.prototype[l]=function(){return ee(this[m],l,arguments)})})}function G(d){this._index=d}function Y(d,m){this._cursor=d,this._request=m}function P(d){this._store=d}function s(d){this._tx=d,this.complete=new Promise(function(m,T){d.oncomplete=function(){m()},d.onerror=function(){T(d.error)},d.onabort=function(){T(d.error)}})}function x(d,m,T){this._db=d,this.oldVersion=m,this.transaction=new s(T)}function L(d){this._db=d}B(G,"_index",["name","keyPath","multiEntry","unique"]),R(G,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),$(G,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),B(Y,"_cursor",["direction","key","primaryKey","value"]),R(Y,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(d){d in IDBCursor.prototype&&(Y.prototype[d]=function(){var m=this,T=arguments;return Promise.resolve().then(function(){return m._cursor[d].apply(m._cursor,T),M(m._request).then(function(h){if(h)return new Y(h,m._request)})})})}),P.prototype.createIndex=function(){return new G(this._store.createIndex.apply(this._store,arguments))},P.prototype.index=function(){return new G(this._store.index.apply(this._store,arguments))},B(P,"_store",["name","keyPath","indexNames","autoIncrement"]),R(P,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),$(P,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),X(P,"_store",IDBObjectStore,["deleteIndex"]),s.prototype.objectStore=function(){return new P(this._tx.objectStore.apply(this._tx,arguments))},B(s,"_tx",["objectStoreNames","mode"]),X(s,"_tx",IDBTransaction,["abort"]),x.prototype.createObjectStore=function(){return new P(this._db.createObjectStore.apply(this._db,arguments))},B(x,"_db",["name","version","objectStoreNames"]),X(x,"_db",IDBDatabase,["deleteObjectStore","close"]),L.prototype.transaction=function(){return new s(this._db.transaction.apply(this._db,arguments))},B(L,"_db",["name","version","objectStoreNames"]),X(L,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach(function(d){[P,G].forEach(function(m){d in m.prototype&&(m.prototype[d.replace("open","iterate")]=function(){var T=F(arguments),h=T[T.length-1],l=this._store||this._index,v=l[d].apply(l,T.slice(0,-1));v.onsuccess=function(){h(v.result)}})})}),[G,P].forEach(function(d){d.prototype.getAll||(d.prototype.getAll=function(m,T){var h=this,l=[];return new Promise(function(v){h.iterateCursor(m,function(w){w?(l.push(w.value),void 0===T||l.length!=T?w.continue():v(l)):v(l)})})})}),k.openDb=function D(d,m,T){var h=j(indexedDB,"open",[d,m]),l=h.request;return l&&(l.onupgradeneeded=function(v){T&&T(new x(l.result,v.oldVersion,l.transaction))}),h.then(function(v){return new L(v)})},k.deleteDb=function I(d){return j(indexedDB,"deleteDatabase",[d])},Object.defineProperty(k,"__esModule",{value:!0})}(Q)}}]);

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.