PageSourceSearch

https://gigodhet.web.app/js/chunk-vendors.e3dff1e1.js

js gigodhet.web.app collected 2026-10-03 12:24:20 UTC 1,461,277 bytes, 3,060 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"001a":function(t,e,n){"use strict";var r=n("c23d"),i=n("9ab4"),o=n("4be4");function a(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var s=a(r),u={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"},c=function(t){function e(n,r,i){var o=t.call(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o.code=n,o.details=i,o}return i.__extends(e,t),e}(Error);
2/**
3 * @license
4 * Copyright 2017 Google LLC
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */function l(t){if(t>=200&&t<300)return"ok";switch(t){case 0: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 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function h(t,e,n){var r=l(t),i=r,o=void 0;try{var a=e&&e.error;if(a){var s=a.status;if("string"===typeof s){if(!u[s])return new c("internal","internal");r=u[s],i=s}var h=a.message;"string"===typeof h&&(i=h),o=a.details,void 0!==o&&(o=n.decode(o))}}catch(f){}return"ok"===r?null:new c(r,i,o)}var f=function(){function t(t,e){var n=this;this.auth=null,this.messaging=null,this.auth=t.getImmediate({optional:!0}),this.messaging=e.getImmediate({optional:!0}),this.auth||t.get().then(function(t){return n.auth=t},function(){}),this.messaging||e.get().then(function(t){return n.messaging=t},function(){})}return t.prototype.getAuthToken=function(){return i.__awaiter(this,void 0,void 0,function(){var t;return i.__generator(this,function(e){switch(e.label){case 0:if(!this.auth)return[2,void 0];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return t=e.sent(),t?[2,t.accessToken]:[2,void 0];case 3:return e.sent(),[2,void 0];case 4:return[2]}})})},t.prototype.getInstanceIdToken=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(e){return[2,void 0]}return[2]})})},t.prototype.getContext=function(){return i.__awaiter(this,void 0,void 0,function(){var t,e;return i.__generator(this,function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return t=n.sent(),[4,this.getInstanceIdToken()];case 2:return e=n.sent(),[2,{authToken:t,instanceIdToken:e}]}})})},t}(),p="type.googleapis.com/google.protobuf.Int64Value",d="type.googleapis.com/google.protobuf.UInt64Value";
18/**
19 * @license
20 * Copyright 2017 Google LLC
21 *
22 * Licensed under the Apache License, Version 2.0 (the "License");
23 * you may not use this file except in compliance with the License.
24 * You may obtain a copy of the License at
25 *
26 *   http://www.apache.org/licenses/LICENSE-2.0
27 *
28 * Unless required by applicable law or agreed to in writing, software
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
33 */function v(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}var g=function(){function t(){}return t.prototype.encode=function(t){var e=this;if(null==t)return null;if(t instanceof Number&&(t=t.valueOf()),"number"===typeof t&&isFinite(t))return t;if(!0===t||!1===t)return t;if("[object String]"===Object.prototype.toString.call(t))return t;if(Array.isArray(t))return t.map(function(t){return e.encode(t)});if("function"===typeof t||"object"===typeof t)return v(t,function(t){return e.encode(t)});throw new Error("Data cannot be encoded in JSON: "+t)},t.prototype.decode=function(t){var e=this;if(null==t)return t;if(t["@type"])switch(t["@type"]){case p:case d:var n=Number(t["value"]);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+t);return n;default:throw new Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map(function(t){return e.decode(t)}):"function"===typeof t||"object"===typeof t?v(t,function(t){return e.decode(t)}):t},t}();
34/**
35 * @license
36 * Copyright 2017 Google LLC
37 *
38 * Licensed under the Apache License, Version 2.0 (the "License");
39 * you may not use this file except in compliance with the License.
40 * You may obtain a copy of the License at
41 *
42 *   http://www.apache.org/licenses/LICENSE-2.0
43 *
44 * Unless required by applicable law or agreed to in writing, software
45 * distributed under the License is distributed on an "AS IS" BASIS,
46 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47 * See the License for the specific language governing permissions and
48 * limitations under the License.
49 */function m(t){var e,n=new Promise(function(n,r){e=setTimeout(function(){r(new c("deadline-exceeded","deadline-exceeded"))},t)});return{timer:e,promise:n}}var y=function(){function t(t,e,n,r,i){var o=this;void 0===r&&(r="us-central1"),this.app_=t,this.fetchImpl=i,this.serializer=new g,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return Promise.resolve(o.deleteService())}},this.contextProvider=new f(e,n),this.cancelAllRequests=new Promise(function(t){o.deleteService=function(){return t()}});try{var a=new URL(r);this.customDomain=a.origin,this.region="us-central1"}catch(s){this.customDomain=null,this.region=r}}return Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),t.prototype._url=function(t){var e=this.app_.options.projectId;if(null!==this.emulatorOrigin){var n=this.emulatorOrigin;return n+"/"+e+"/"+this.region+"/"+t}return null!==this.customDomain?this.customDomain+"/"+t:"https://"+this.region+"-"+e+".cloudfunctions.net/"+t},t.prototype.useFunctionsEmulator=function(t){this.emulatorOrigin=t},t.prototype.httpsCallable=function(t,e){var n=this;return function(r){return n.call(t,r,e||{})}},t.prototype.postJSON=function(t,e,n){return i.__awaiter(this,void 0,void 0,function(){var r,o;return i.__generator(this,function(i){switch(i.label){case 0:n["Content-Type"]="application/json",i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchImpl(t,{method:"POST",body:JSON.stringify(e),headers:n})];case 2:return r=i.sent(),[3,4];case 3:return i.sent(),[2,{status:0,json:null}];case 4:o=null,i.label=5;case 5:return i.trys.push([5,7,,8]),[4,r.json()];case 6:return o=i.sent(),[3,8];case 7:return i.sent(),[3,8];case 8:return[2,{status:r.status,json:o}]}})})},t.prototype.call=function(t,e,n){return i.__awaiter(this,void 0,void 0,function(){var r,o,a,s,u,l,f,p,d,v,g,y;return i.__generator(this,function(i){switch(i.label){case 0:return r=this._url(t),e=this.serializer.encode(e),o={data:e},a={},[4,this.contextProvider.getContext()];case 1:return s=i.sent(),s.authToken&&(a["Authorization"]="Bearer "+s.authToken),s.instanceIdToken&&(a["Firebase-Instance-ID-Token"]=s.instanceIdToken),u=n.timeout||7e4,l=m(u),f=l.timer,p=l.promise,[4,Promise.race([b(f,this.postJSON(r,o,a)),p,b(f,this.cancelAllRequests)])];case 2:if(d=i.sent(),!d)throw new c("cancelled","Firebase Functions instance was deleted.");if(v=h(d.status,d.json,this.serializer),v)throw v;if(!d.json)throw new c("internal","Response is not valid JSON object.");if(g=d.json.data,"undefined"===typeof g&&(g=d.json.result),"undefined"===typeof g)throw new c("internal","Response is missing data field.");return y=this.serializer.decode(g),[2,{data:y}]}})})},t}();function b(t,e){return i.__awaiter(this,void 0,void 0,function(){var n;return i.__generator(this,function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),clearTimeout(t),[2,n]}})})}
50/**
51 * @license
52 * Copyright 2019 Google LLC
53 *
54 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
56 * You may obtain a copy of the License at
57 *
58 *   http://www.apache.org/licenses/LICENSE-2.0
59 *
60 * Unless required by applicable law or agreed to in writing, software
61 * distributed under the License is distributed on an "AS IS" BASIS,
62 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63 * See the License for the specific language governing permissions and
64 * limitations under the License.
65 */var _="functions";function w(t,e){var n={Functions:y};function r(t,n){var r=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),o=t.getProvider("messaging");return new y(r,i,o,n,e)}t.INTERNAL.registerComponent(new o.Component(_,r,"PUBLIC").setServiceProps(n).setMultipleInstances(!0))}var E="@firebase/functions",I="0.5.1";
66/**
67 * @license
68 * Copyright 2017 Google LLC
69 *
70 * Licensed under the Apache License, Version 2.0 (the "License");
71 * you may not use this file except in compliance with the License.
72 * You may obtain a copy of the License at
73 *
74 *   http://www.apache.org/licenses/LICENSE-2.0
75 *
76 * Unless required by applicable law or agreed to in writing, software
77 * distributed under the License is distributed on an "AS IS" BASIS,
78 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
79 * See the License for the specific language governing permissions and
80 * limitations under the License.
81 */
82w(s["default"],fetch.bind(self)),s["default"].registerVersion(E,I)},"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),h=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",v="values",g=function(){return this};t.exports=function(t,e,n,m,y,b,_){u(n,e,m);var w,E,I,T=function(t){if(!f&&t in N)return N[t];switch(t){case d:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",C=y==v,A=!1,N=t.prototype,k=N[h]||N[p]||y&&N[y],O=k||T(y),x=y?C?T("entries"):O:void 0,D="Array"==e&&N.entries||k;if(D&&(I=l(D.call(new t)),I!==Object.prototype&&I.next&&(c(I,S,!0),r||"function"==typeof I[h]||a(I,h,g))),C&&k&&k.name!==v&&(A=!0,O=function(){return k.call(this)}),r&&!_||!f&&!A&&N[h]||a(N,h,O),s[e]=O,s[S]=g,y)if(w={values:C?O:T(v),keys:b?O:T(d),entries:x},_)for(E in w)E in N||o(N,E,w[E]);else i(i.P+i.F*(f||A),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"07d6":function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),a=n("ebd6"),s=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"0ff2":function(t,e,n){"use strict";
83/*!
84  * vuefire v2.2.1
85  * (c) 2019 Eduardo San Martin Morote
86  * @license MIT
87  */
88function r(t,e){return e.split(".").reduce(function(t,e){return t[e]},t)}function i(t,e,n){var r=(""+e).split("."),i=r.pop(),o=r.reduce(function(t,e){return t[e]},t);return Array.isArray(o)?o.splice(Number(i),1,n):o[i]=n}function o(t){return t&&"object"===typeof t}function a(t){return t.toDate}function s(t){return t&&t.onSnapshot}function u(t,e){var n=!1;return function(){if(!n)return n=!0,t(e())}}function c(t){var e=t.val(),n=o(e)?e:Object.defineProperty({},".value",{value:e});return Object.defineProperty(n,".key",{value:t.key}),n}n.d(e,"a",function(){return I});var l={reset:!0,serialize:c,wait:!1};function h(t){return Object.defineProperty(t.data()||{},"id",{value:t.id})}function f(t,e,n){var r=[{},{}],i=Object.keys(n).reduce(function(t,e){var r=n[e];return t[r.path]=r.data(),t},{});function u(t,e,n,r){e=e||{};var c=r[0],l=r[1];for(var h in Object.getOwnPropertyNames(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);n&&!n.enumerable&&Object.defineProperty(c,e,n)}),t){var f=t[h];if(null==f||f instanceof Date||a(f)||f.longitude&&f.latitude)c[h]=f;else if(s(f))c[h]="object"===typeof e&&h in e?e[h]:f.path,l[n+h]=f;else if(Array.isArray(f)){c[h]=Array(f.length);for(var p=0;p<f.length;p++){var d=f[p];
88d.path in i&&(c[h][p]=i[d.path])}u(f,c[h],n+h+".",[c[h],l])}else o(f)?(c[h]={},u(f,e[h],n+h+".",[c[h],l])):c[h]=f}}return u(t,e,"",r),r}var p={maxRefDepth:2,reset:!0,serialize:h,wait:!1};function d(t){for(var e in t)t[e].unsub()}function v(t,e,n,i,o,a,s,u){var c=f(t.serialize(i),r(e,n),o),l=c[0],h=c[1];a.set(e,n,l),m(t,e,n,o,h,a,s,u)}function g(t,e){var n=t.ref,r=t.target,i=t.path,o=t.depth,a=t.resolve,s=t.ops,u=Object.create(null),c=n.onSnapshot(function(t){t.exists?v(e,r,i,t,u,s,o,a):(s.set(r,i,null),a())});return function(){c(),d(u)}}function m(t,e,n,i,o,a,s,u){var c=Object.keys(o),l=Object.keys(i).filter(function(t){return c.indexOf(t)<0});if(l.forEach(function(t){i[t].unsub(),delete i[t]}),!c.length||++s>t.maxRefDepth)return u(n);var h=0,f=c.length,p=Object.create(null);function d(t){t in p&&++h>=f&&u(n)}c.forEach(function(u){var c=i[u],l=o[u],h=n+"."+u;if(p[h]=!0,c){if(c.path===l.path)return;c.unsub()}i[u]={data:function(){return r(e,h)},unsub:g({ref:l,target:e,path:h,depth:s,ops:a,resolve:d.bind(null,h)},t),path:l.path}})}function y(t,e){var n=t.vm,r=t.key,i=t.collection,o=t.ops,a=t.resolve,s=t.reject;void 0===e&&(e=p);var u,c=Object.assign({},p,e),l=c.wait?[]:o.set(n,r,[]),h=a,v=[],g={added:function(t){var e=t.newIndex,n=t.doc;v.splice(e,0,Object.create(null));var r=v[e],i=f(c.serialize(n),void 0,r),s=i[0],u=i[1];o.add(l,e,s),m(c,l,e,r,u,o,0,a.bind(null,n))},modified:function(t){var e=t.oldIndex,n=t.newIndex,r=t.doc,i=v[e],s=l[e],u=f(c.serialize(r),s,i),h=u[0],p=u[1];v.splice(n,0,i),o.remove(l,e),o.add(l,n,h),m(c,l,n,i,p,o,0,a)},removed:function(t){var e=t.oldIndex;o.remove(l,e),d(v.splice(e,1)[0])}},y=i.onSnapshot(function(t){var e="function"===typeof t.docChanges?t.docChanges():t.docChanges;if(!u&&e.length){u=!0;for(var i=0,s=e.length,f=Object.create(null),p=0;p<s;p++)f[e[p].doc.id]=!0;a=function(t){var e=t.id;e in f&&++i>=s&&(c.wait&&o.set(n,r,l),h(n[r]),a=function(){})}}e.forEach(function(t){g[t.type](t)}),e.length||(c.wait&&o.set(n,r,l),a(l))},s);return function(t){if(y(),!1!==t){var e="function"===typeof t?t():[];o.set(n,r,e)}v.forEach(d)}}function b(t,e){var n=t.vm,i=t.key,o=t.document,a=t.resolve,s=t.reject,c=t.ops;void 0===e&&(e=p);var l=Object.assign({},p,e),h=Object.create(null);a=u(a,function(){return r(n,i)});var f=o.onSnapshot(function(t){t.exists?v(l,n,i,t,h,c,0,a):(c.set(n,i,null),a(null))},s);return function(t){if(f(),!1!==t){var e="function"===typeof t?t():null;c.set(n,i,e)}d(h)}}l.serialize,l.reset,l.wait;var _={set:function(t,e,n){return i(t,e,n)},add:function(t,e,n){return t.splice(e,0,n)},remove:function(t,e){return t.splice(e,1)}};function w(t,e,n,r,i){return new Promise(function(o,a){var s;s="where"in n?y({vm:t,key:e,ops:r,collection:n,resolve:o,reject:a},i):b({vm:t,key:e,ops:r,document:n,resolve:o,reject:a},i),t._firestoreUnbinds[e]=s})}var E={bindName:"$bind",unbindName:"$unbind",serialize:p.serialize,reset:p.reset,wait:p.wait},I=function(t,e){void 0===e&&(e=E);var n=t.config.optionMergeStrategies;n.firestore=n.provide;var r=Object.assign({},E,e),i=r.bindName,o=r.unbindName;t.prototype[o]=function(t,e){this._firestoreUnbinds[t](e),delete this._firestoreUnbinds[t],delete this.$firestoreRefs[t]},t.prototype[i]=function(t,e,n){var i=Object.assign({},r,n);this._firestoreUnbinds[t]&&this[o](t,i.wait?"function"===typeof i.reset&&i.reset:i.reset);var a=w(this,t,e,_,i);return this.$firestoreRefs[t]=e,a},t.mixin({beforeCreate:function(){this._firestoreUnbinds=Object.create(null),this.$firestoreRefs=Object.create(null)},created:function(){var t=this.$options.firestore,e="function"===typeof t?t.call(this):t;if(e)for(var n in e)this[i](n,e[n],r)},beforeDestroy:function(){for(var t in this._firestoreUnbinds)this._firestoreUnbinds[t]();this._firestoreUnbinds=null,this.$firestoreRefs=null}})}},1157:function(t,e,n){var r,i;
89/*!
90 * jQuery JavaScript Library v3.5.0
91 * https://jquery.com/
92 *
93 * Includes Sizzle.js
94 * https://sizzlejs.com/
95 *
96 * Copyright JS Foundation and other contributors
97 * Released under the MIT license
98 * https://jquery.org/license
99 *
100 * Date: 2020-04-10T15:07Z
101 */(function(e,n){"use strict";"object"===typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)})("undefined"!==typeof window?window:this,function(n,o){"use strict";var a=[],s=Object.getPrototypeOf,u=a.slice,c=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},l=a.push,h=a.indexOf,f={},p=f.toString,d=f.hasOwnProperty,v=d.toString,g=v.call(Object),m={},y=function(t){return"function"===typeof t&&"number"!==typeof t.nodeType},b=function(t){return null!=t&&t===t.window},_=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function E(t,e,n){n=n||_;var r,i,o=n.createElement("script");
vendor: 27,573 bytes, lines 101-112
101if(o.text=t,e)for(r in w)i=e[r]||e.getAttribute&&e.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function I(t){return null==t?t+"":"object"===typeof t||"function"===typeof t?f[p.call(t)]||"object":typeof t}var T="3.5.0",S=function(t,e){return new S.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,n=I(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"===typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:T,constructor:S,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:a.sort,splice:a.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"===typeof a&&(c=a,a=arguments[s]||{},s++),"object"===typeof a||y(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(c&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[e],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[e]=S.extend(c,o,r)):void 0!==r&&(a[e]=r));return a},S.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==p.call(t))&&(e=s(t),!e||(n=d.call(e,"constructor")&&e.constructor,"function"===typeof n&&v.call(n)===g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){E(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(C(t)){for(n=t.length;r<n;r++)if(!1===e.call(t[r],r,t[r]))break}else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?S.merge(n,"string"===typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:h.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,s=!n;o<a;o++)r=!e(t[o],o),r!==s&&i.push(t[o]);return i},map:function(t,e,n){var r,i,o=0,a=[];if(C(t))for(r=t.length;o<r;o++)i=e(t[o],o,n),null!=i&&a.push(i);else for(o in t)i=e(t[o],o,n),null!=i&&a.push(i);return c(a)},guid:1,support:m}),"function"===typeof Symbol&&(S.fn[Symbol.iterator]=a[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){f["[object "+e+"]"]=e.toLowerCase()});var A=
102/*!
103 * Sizzle CSS Selector Engine v2.3.5
104 * https://sizzlejs.com/
105 *
106 * Copyright JS Foundation and other contributors
107 * Released under the MIT license
108 * https://js.foundation/
109 *
110 * Date: 2020-03-14
111 */
112function(t){var e,n,r,i,o,a,s,u,c,l,h,f,p,d,v,g,m,y,b,_="sizzle"+1*new Date,w=t.document,E=0,I=0,T=ut(),S=ut(),C=ut(),A=ut(),N=function(t,e){return t===e&&(h=!0),0},k={}.hasOwnProperty,O=[],x=O.pop,D=O.push,R=O.push,P=O.slice,L=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+j+"*("+F+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+j+"*\\]",V=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",B=new RegExp(j+"+","g"),q=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),H=new RegExp("^"+j+"*,"+j+"*"),W=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),G=new RegExp(j+"|>"),K=new RegExp(V),z=new RegExp("^"+F+"$"),$={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){f()},at=_t(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{R.apply(O=P.call(w.childNodes),w.childNodes),O[w.childNodes.length].nodeType}catch(At){R={apply:O.length?function(t,e){D.apply(t,P.call(e))}:function(t,e){var n=t.length,r=0;while(t[n++]=e[r++]);t.length=n-1}}}function st(t,e,r,i){var o,s,c,l,h,d,m,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!==typeof t||!t||1!==w&&9!==w&&11!==w)return r;if(!i&&(f(e),e=e||p,v)){if(11!==w&&(h=Z.exec(t)))if(o=h[1]){if(9===w){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&b(e,c)&&c.id===o)return r.push(c),r}else{if(h[2])return R.apply(r,e.getElementsByTagName(t)),r;if((o=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return R.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!A[t+" "]&&(!g||!g.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(m=t,y=e,1===w&&(G.test(t)||W.test(t))){y=tt.test(t)&&mt(e.parentNode)||e,y===e&&n.scope||((l=e.getAttribute("id"))?l=l.replace(rt,it):e.setAttribute("id",l=_)),d=a(t),s=d.length;while(s--)d[s]=(l?"#"+l:":scope")+" "+bt(d[s]);m=d.join(",")}try{return R.apply(r,y.querySelectorAll(m)),r}catch(E){A(t,!0)}finally{l===_&&e.removeAttribute("id")}}}return u(t.replace(q,"$1"),e,r,i)}function ut(){var t=[];function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}return e}function ct(t){return t[_]=!0,t}function lt(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(At){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){var n=t.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=e}function ft(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function vt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ct(function(e){return e=+e,ct(function(n,r){var i,o=t([],n.length,e),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function mt(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!Q.test(e||n&&n.nodeName||"HTML")},f=st.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:w;return a!=p&&9===a.nodeType&&a.documentElement?(p=a,d=p.documentElement,v=!o(p),w!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=lt(function(t){return d.appendChild(t).appendChild(p.createElement("div")),"undefined"!==typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=lt(function(t){return d.appendChild(t).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter["ID"]=function(t){var e=t.replace(et,nt);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&v){var n,r,i,o=e.getElementById(t);if(o){if(n=o.getAttributeNode("id"),n&&n.value===t)return[o];i=e.getElementsByName(t),r=0;while(o=i[r++])if(n=o.getAttributeNode("id"),n&&n.value===t)return[o]}return[]}}),r.find["TAG"]=n.getElementsByTagName?function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find["CLASS"]=n.getElementsByClassName&&function(t,e){if("undefined"!==typeof e.getElementsByClassName&&v)return e.getElementsByClassName(t)},m=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(lt(function(t){var e;d.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e=p.createElement("input"),e.setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&lt(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),m.push("!=",V)}),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),e=J.test(d.compareDocumentPosition),b=e||J.test(d.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},N=e?function(t,e){if(t===e)return h=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==p||t.ownerDocument==w&&b(w,t)?-1:e==p||e.ownerDocument==w&&b(w,e)?1:l?L(l,t)-L(l,e):0:4&r?-1:1)}:function(t,e){if(t===e)return h=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t==p?-1:e==p?1:i?-1:o?1:l?L(l,t)-L(l,e):0;if(i===o)return ft(t,e);n=t;while(n=n.parentNode)a.unshift(n);n=e;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?ft(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},p):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(f(t),n.matchesSelector&&v&&!A[e+" "]&&(!m||!m.test(e))&&(!g||!g.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(At){A(e,!0)}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=p&&f(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=p&&f(t);var i=r.attrHandle[e.toLowerCase()],o=i&&k.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(rt,it)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,o=0;if(h=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(N),h){while(e=t[o++])e===t[o]&&(i=r.push(o));while(i--)t.splice(r[i],1)}return l=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else while(e=t[r++])n+=i(e);return n},r=st.selectors={cacheLength:50,createPseudo:ct,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return $["CHILD"].test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&K.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&T(t,function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,h,f,p,d,v=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(o){while(v){f=e;while(f=f[v])if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;d=v="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&y){f=g,h=f[_]||(f[_]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),c=l[t]||[],p=c[0]===E&&c[1],b=p&&c[2],f=p&&g.childNodes[p];while(f=++p&&f&&f[v]||(b=p=0)||d.pop())if(1===f.nodeType&&++b&&f===e){l[t]=[E,p,b];break}}else if(y&&(f=e,h=f[_]||(f[_]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),c=l[t]||[],p=c[0]===E&&c[1],b=p),!1===b)while(f=++p&&f&&f[v]||(b=p=0)||d.pop())if((s?f.nodeName.toLowerCase()===m:1===f.nodeType)&&++b&&(y&&(h=f[_]||(f[_]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),l[t]=[E,b]),f===e))break;return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,n){var r,o=i(t,e),a=o.length;while(a--)r=L(t,o[a]),t[r]=!(n[r]=o[a])}):function(t){return i(t,0,n)}):i}},pseudos:{not:ct(function(t){var e=[],n=[],r=s(t.replace(q,"$1"));return r[_]?ct(function(t,e,n,i){var o,a=r(t,null,i,[]),s=t.length;while(s--)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:ct(function(t){return function(e){return st(t,e).length>0}}),contains:ct(function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}}),lang:ct(function(t){return z.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:vt(!1),disabled:vt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos["empty"](t)},header:function(t){return X.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt(function(){return[0]}),last:gt(function(t,e){return[e-1]}),eq:gt(function(t,e,n){return[n<0?n+e:n]}),even:gt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:gt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:gt(function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:gt(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},r.pseudos["nth"]=r.pseudos["eq"],{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=dt(e);function yt(){}function bt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function _t(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=I++;return e.first?function(e,n,i){while(e=e[r])if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,u){var c,l,h,f=[E,s];if(u){while(e=e[r])if((1===e.nodeType||a)&&t(e,n,u))return!0}else while(e=e[r])if(1===e.nodeType||a)if(h=e[_]||(e[_]={}),l=h[e.uniqueID]||(h[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=l[o])&&c[0]===E&&c[1]===s)return f[2]=c[2];if(l[o]=f,f[2]=t(e,n,u))return!0}return!1}}function wt(t){return t.length>1?function(e,n,r){var i=t.length;while(i--)if(!t[i](e,n,r))return!1;return!0}:t[0]}function Et(t,e,n){for(var r=0,i=e.length;r<i;r++)st(t,e[r],n);return n}function It(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(s)));return a}function Tt(t,e,n,r,i,o){return r&&!r[_]&&(r=Tt(r)),i&&!i[_]&&(i=Tt(i,o)),ct(function(o,a,s,u){var c,l,h,f=[],p=[],d=a.length,v=o||Et(e||"*",s.nodeType?[s]:s,[]),g=!t||!o&&e?v:It(v,f,t,s,u),m=n?i||(o?t:d||r)?[]:a:g;if(n&&n(g,m,s,u),r){c=It(m,p),r(c,[],s,u),l=c.length;while(l--)(h=c[l])&&(m[p[l]]=!(g[p[l]]=h))}if(o){if(i||t){if(i){c=[],l=m.length;while(l--)(h=m[l])&&c.push(g[l]=h);i(null,m=[],c,u)}l=m.length;while(l--)(h=m[l])&&(c=i?L(o,h):f[l])>-1&&(o[c]=!(a[c]=h))}}else m=It(m===a?m.splice(d,m.length):m),i?i(null,a,m,u):R.apply(a,m)})}function St(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,l=_t(function(t){return t===e},s,!0),h=_t(function(t){return L(e,t)>-1},s,!0),f=[function(t,n,r){var i=!a&&(r||n!==c)||((e=n).nodeType?l(t,n,r):h(t,n,r));return e=null,i}];u<o;u++)if(n=r.relative[t[u].type])f=[_t(wt(f),n)];else{if(n=r.filter[t[u].type].apply(null,t[u].matches),n[_]){for(i=++u;i<o;i++)if(r.relative[t[i].type])break;return Tt(u>1&&wt(f),u>1&&bt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(q,"$1"),n,u<i&&St(t.slice(u,i)),i<o&&St(t=t.slice(i)),i<o&&bt(t))}f.push(n)}return wt(f)}function Ct(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,l){var h,d,g,m=0,y="0",b=o&&[],_=[],w=c,I=o||i&&r.find["TAG"]("*",l),T=E+=null==w?1:Math.random()||.1,S=I.length;for(l&&(c=a==p||a||l);y!==S&&null!=(h=I[y]);y++){if(i&&h){d=0,a||h.ownerDocument==p||(f(h),s=!v);while(g=t[d++])if(g(h,a||p,s)){u.push(h);break}l&&(E=T)}n&&((h=!g&&h)&&m--,o&&b.push(h))}if(m+=y,n&&y!==m){d=0;while(g=e[d++])g(b,_,a,s);if(o){if(m>0)while(y--)b[y]||_[y]||(_[y]=x.call(u));_=It(_)}R.apply(u,_),l&&!o&&_.length>0&&m+e.length>1&&st.uniqueSort(u)}return l&&(E=T,c=w),b};return n?ct(o):o}return yt.prototype=r.filters=r.pseudos,r.setFilters=new yt,a=st.tokenize=function(t,e){var n,i,o,a,s,u,c,l=S[t+" "];if(l)return e?0:l.slice(0);s=t,u=[],c=r.preFilter;while(s){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=W.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(i=$[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):S(t,u).slice(0)},s=st.compile=function(t,e){var n,r=[],i=[],o=C[t+" "];if(!o){e||(e=a(t)),n=e.length;while(n--)o=St(e[n]),o[_]?r.push(o):i.push(o);o=C(t,Ct(i,r)),o.selector=t}return o},u=st.select=function(t,e,n,i){var o,u,c,l,h,f="function"===typeof t&&t,p=!i&&a(t=f.selector||t);if(n=n||[],1===p.length){if(u=p[0]=p[0].slice(0),u.length>2&&"ID"===(c=u[0]).type&&9===e.nodeType&&v&&r.relative[u[1].type]){if(e=(r.find["ID"](c.matches[0].replace(et,nt),e)||[])[0],!e)return n;f&&(e=e.parentNode),t=t.slice(u.shift().value.length)}o=$["needsContext"].test(t)?0:u.length;while(o--){if(c=u[o],r.relative[l=c.type])break;if((h=r.find[l])&&(i=h(c.matches[0].replace(et,nt),tt.test(u[0].type)&&mt(e.parentNode)||e))){if(u.splice(o,1),t=i.length&&bt(u),!t)return R.apply(n,i),n;break}}}return(f||s(t,p))(i,e,!v,n,!e||tt.test(t)&&mt(e.parentNode)||e),n},n.sortStable=_.split("").sort(N).join("")===_,n.detectDuplicates=!!h,f(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ht(M,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),st}(n);S.find=A,S.expr=A.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=A.uniqueSort,S.text=A.getText,S.isXMLDoc=A.isXML,S.contains=A.contains,S.escapeSelector=A.escape;var N=function(t,e,n){var r=[],i=void 0!==n;while((t=t[e])&&9!==t.nodeType)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},O=S.expr.match.needsContext;function x(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(t,e,n){return y(e)?S.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?S.grep(t,function(t){return t===e!==n}):"string"!==typeof e?S.grep(t,function(t){return h.call(e,t)>-1!==n}):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,function(t){return 1===t.nodeType}))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!==typeof t)return this.pushStack(S(t).filter(function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(R(this,t||[],!1))},not:function(t){return this.pushStack(R(this,t||[],!0))},is:function(t){return!!R(this,"string"===typeof t&&O.test(t)?S(t):t||[],!1).length}});var P,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,M=S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||P,"string"===typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:L.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),D.test(r[1])&&S.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=_.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)};M.prototype=S.fn,P=S(_);var j=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){while((t=t[e])&&1!==t.nodeType);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!==typeof t&&S(t);if(!O.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"===typeof t?h.call(S(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return N(t,"parentNode")},parentsUntil:function(t,e,n){return N(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return N(t,"nextSibling")},prevAll:function(t){return N(t,"previousSibling")},nextUntil:function(t,e,n){return N(t,"nextSibling",n)},prevUntil:function(t,e,n){return N(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(x(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=S.filter(r,i)),this.length>1&&(F[t]||S.uniqueSort(i),j.test(t)&&i.reverse()),this.pushStack(i)}});var V=/[^\x20\t\r\n\f]+/g;function B(t){var e={};return S.each(t.match(V)||[],function(t,n){e[n]=!0}),e}function q(t){return t}function H(t){throw t}function W(t,e,n,r){var i;
vendor: 4,315 bytes, line 112
112try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"===typeof t?B(t):S.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1){n=a.shift();while(++s<o.length)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1)}t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){S.each(n,function(n,r){y(r)?t.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==I(r)&&e(r)})}(arguments),n&&!e&&u()),this},remove:function(){return S.each(arguments,function(t,e){var n;while((n=S.inArray(e,o,n))>-1)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return S.Deferred(function(n){S.each(e,function(e,r){var i=y(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,u=arguments,c=function(){var n,c;if(!(t<o)){if(n=r.apply(s,u),n===e.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"===typeof n||"function"===typeof n)&&n.then,y(c)?i?c.call(n,a(o,e,q,i),a(o,e,H,i)):(o++,c.call(n,a(o,e,q,i),a(o,e,H,i),a(o,e,q,e.notifyWith))):(r!==q&&(s=void 0,u=[n]),(i||e.resolveWith)(s,u))}},l=i?c:function(){try{c()}catch(n){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(n,l.stackTrace),t+1>=o&&(r!==H&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?l():(S.Deferred.getStackHook&&(l.stackTrace=S.Deferred.getStackHook()),n.setTimeout(l))}}return S.Deferred(function(n){e[0][3].add(a(0,n,y(i)?i:q,n.notifyWith)),e[1][3].add(a(0,n,y(t)?t:q)),e[2][3].add(a(0,n,y(r)?r:H))}).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},o={};return S.each(e,function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=u.call(arguments),o=S.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?u.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(W(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();while(n--)W(i[n],a(n),o.reject);return o.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&G.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){n.setTimeout(function(){throw t})};var K=S.Deferred();function z(){_.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z),S.ready()}S.fn.ready=function(t){return K.then(t).catch(function(t){S.readyException(t)}),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||K.resolveWith(_,[S]))}}),S.ready.then=K.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?n.setTimeout(S.ready):(_.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z));var $=function(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;
vendor: 46,912 bytes, line 112
112if("object"===I(n))for(s in i=!0,n)$(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(S(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:c?e.call(t):u?e(t[0],n):o},Q=/^-ms-/,Y=/-([a-z])/g;function X(t,e){return e.toUpperCase()}function J(t){return t.replace(Q,"ms-").replace(Y,X)}var Z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function tt(){this.expando=S.expando+tt.uid++}tt.uid=1,tt.prototype={cache:function(t){var e=t[this.expando];return e||(e=Object.create(null),Z(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"===typeof e)i[J(e)]=n;else for(r in e)i[J(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][J(e)]},access:function(t,e,n){return void 0===e||e&&"string"===typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){Array.isArray(e)?e=e.map(J):(e=J(e),e=e in r?[e]:e.match(V)||[]),n=e.length;while(n--)delete r[e[n]]}(void 0===e||S.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var et=new tt,nt=new tt,rt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,it=/[A-Z]/g;function ot(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:rt.test(t)?JSON.parse(t):t)}function at(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(it,"-$&").toLowerCase(),n=t.getAttribute(r),"string"===typeof n){try{n=ot(n)}catch(i){}nt.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return nt.hasData(t)||et.hasData(t)},data:function(t,e,n){return nt.access(t,e,n)},removeData:function(t,e){nt.remove(t,e)},_data:function(t,e,n){return et.access(t,e,n)},_removeData:function(t,e){et.remove(t,e)}}),S.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=nt.get(o),1===o.nodeType&&!et.get(o,"hasDataAttrs"))){n=a.length;while(n--)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=J(r.slice(5)),at(o,r,i[r])));et.set(o,"hasDataAttrs",!0)}return i}return"object"===typeof t?this.each(function(){nt.set(this,t)}):$(this,function(e){var n;if(o&&void 0===e)return n=nt.get(o,t),void 0!==n?n:(n=at(o,t),void 0!==n?n:void 0);this.each(function(){nt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){nt.remove(this,t)})}}),S.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=et.get(t,e),n&&(!r||Array.isArray(n)?r=et.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),o=S._queueHooks(t,e),a=function(){S.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return et.get(t,n)||et.access(t,n,{empty:S.Callbacks("once memory").add(function(){et.remove(t,[e+"queue",n])})})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!==typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each(function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)})},dequeue:function(t){return this.each(function(){S.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!==typeof t&&(e=t,t=void 0),t=t||"fx";while(a--)n=et.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ut=new RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),ct=["Top","Right","Bottom","Left"],lt=_.documentElement,ht=function(t){return S.contains(t.ownerDocument,t)},ft={composed:!0};lt.getRootNode&&(ht=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(ft)===t.ownerDocument});var pt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&ht(t)&&"none"===S.css(t,"display")};function dt(t,e,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(t,e,"")},u=s(),c=n&&n[3]||(S.cssNumber[e]?"":"px"),l=t.nodeType&&(S.cssNumber[e]||"px"!==c&&+u)&&ut.exec(S.css(t,e));if(l&&l[3]!==c){u/=2,c=c||l[3],l=+u||1;while(a--)S.style(t,e,l+c),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),l/=o;l*=2,S.style(t,e,l+c),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}var vt={};function gt(t){var e,n=t.ownerDocument,r=t.nodeName,i=vt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),vt[r]=i,i)}function mt(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)r=t[o],r.style&&(n=r.style.display,e?("none"===n&&(i[o]=et.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&pt(r)&&(i[o]=gt(r))):"none"!==n&&(i[o]="none",et.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}S.fn.extend({show:function(){return mt(this,!0)},hide:function(){return mt(this)},toggle:function(t){return"boolean"===typeof t?t?this.show():this.hide():this.each(function(){pt(this)?S(this).show():S(this).hide()})}});var yt=/^(?:checkbox|radio)$/i,bt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;(function(){var t=_.createDocumentFragment(),e=t.appendChild(_.createElement("div")),n=_.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),m.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",m.option=!!e.lastChild})();var wt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Et(t,e){var n;return n="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&x(t,e)?S.merge([t],n):n}function It(t,e){for(var n=0,r=t.length;n<r;n++)et.set(t[n],"globalEval",!e||et.get(e[n],"globalEval"))}wt.tbody=wt.tfoot=wt.colgroup=wt.caption=wt.thead,wt.th=wt.td,m.option||(wt.optgroup=wt.option=[1,"<select multiple='multiple'>","</select>"]);var Tt=/<|&#?\w+;/;function St(t,e,n,r,i){for(var o,a,s,u,c,l,h=e.createDocumentFragment(),f=[],p=0,d=t.length;p<d;p++)if(o=t[p],o||0===o)if("object"===I(o))S.merge(f,o.nodeType?[o]:o);else if(Tt.test(o)){a=a||h.appendChild(e.createElement("div")),s=(bt.exec(o)||["",""])[1].toLowerCase(),u=wt[s]||wt._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],l=u[0];while(l--)a=a.lastChild;S.merge(f,a.childNodes),a=h.firstChild,a.textContent=""}else f.push(e.createTextNode(o));h.textContent="",p=0;while(o=f[p++])if(r&&S.inArray(o,r)>-1)i&&i.push(o);else if(c=ht(o),a=Et(h.appendChild(o),"script"),c&&It(a),n){l=0;while(o=a[l++])_t.test(o.type||"")&&n.push(o)}return h}var Ct=/^key/,At=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Nt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Ot(){return!1}function xt(t,e){return t===Dt()===("focus"===e)}function Dt(){try{return _.activeElement}catch(t){}}function Rt(t,e,n,r,i,o){var a,s;if("object"===typeof e){for(s in"string"!==typeof n&&(r=r||n,n=void 0),e)Rt(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ot;else if(!i)return t;return 1===o&&(a=i,i=function(t){return S().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=S.guid++)),t.each(function(){S.event.add(this,e,i,r,n)})}function Pt(t,e,n){n?(et.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=et.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),et.set(this,e,o),r=n(this,e),this[e](),i=et.get(this,e),o!==i||r?et.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else o.length&&(et.set(this,e,{value:S.event.trigger(S.extend(o[0],S.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===et.get(t,e)&&S.event.add(t,e,kt)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,c,l,h,f,p,d,v,g=et.get(t);if(Z(t)){n.handler&&(o=n,n=o.handler,i=o.selector),i&&S.find.matchesSelector(lt,i),n.guid||(n.guid=S.guid++),(u=g.events)||(u=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return"undefined"!==typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(V)||[""],c=e.length;while(c--)s=Nt.exec(e[c])||[],p=v=s[1],d=(s[2]||"").split(".").sort(),p&&(h=S.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,h=S.event.special[p]||{},l=S.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:d.join(".")},o),(f=u[p])||(f=u[p]=[],f.delegateCount=0,h.setup&&!1!==h.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(p,a)),h.add&&(h.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),S.event.global[p]=!0)}},remove:function(t,e,n,r,i){var o,a,s,u,c,l,h,f,p,d,v,g=et.hasData(t)&&et.get(t);if(g&&(u=g.events)){e=(e||"").match(V)||[""],c=e.length;while(c--)if(s=Nt.exec(e[c])||[],p=v=s[1],d=(s[2]||"").split(".").sort(),p){h=S.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,f=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;while(o--)l=f[o],!i&&v!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(o,1),l.selector&&f.delegateCount--,h.remove&&h.remove.call(t,l));a&&!f.length&&(h.teardown&&!1!==h.teardown.call(t,d,g.handle)||S.removeEvent(t,p,g.handle),delete u[p])}else for(p in u)S.event.remove(t,p+e[c],n,r,!0);S.isEmptyObject(u)&&et.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(t),c=(et.get(this,"events")||Object.create(null))[u.type]||[],l=S.event.special[u.type]||{};for(s[0]=u,e=1;e<arguments.length;e++)s[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,c),e=0;while((i=a[e++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,o,a,s=[],u=e.delegateCount,c=t.target;if(u&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<u;n++)r=e[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?S(i,this).index(c)>-1:S.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,u<e.length&&s.push({elem:c,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return yt.test(e.type)&&e.click&&x(e,"input")&&Pt(e,"click",kt),!1},trigger:function(t){var e=this||t;return yt.test(e.type)&&e.click&&x(e,"input")&&Pt(e,"click"),!0},_default:function(t){var e=t.target;return yt.test(e.type)&&e.click&&x(e,"input")&&et.get(e,"click")||x(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:Ot,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ot,isPropagationStopped:Ot,isImmediatePropagationStopped:Ot,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Ct.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&At.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(t,e){S.event.special[t]={setup:function(){return Pt(this,t,xt),!1},trigger:function(){return Pt(this,t),!0},delegateType:e}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||S.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),S.fn.extend({on:function(t,e,n,r){return Rt(this,t,e,n,r)},one:function(t,e,n,r){return Rt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!==typeof e||(n=e,e=void 0),!1===n&&(n=Ot),this.each(function(){S.event.remove(this,t,n,e)})}});var Lt=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ft(t,e){return x(t,"table")&&x(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Ut(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Vt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Bt(t,e){var n,r,i,o,a,s,u;if(1===e.nodeType){if(et.hasData(t)&&(o=et.get(t),u=o.events,u))for(i in et.remove(e,"handle events"),u)for(n=0,r=u[i].length;n<r;n++)S.event.add(e,i,u[i][n]);nt.hasData(t)&&(a=nt.access(t),s=S.extend({},a),nt.set(e,s))}}function qt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&yt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ht(t,e,n,r){e=c(e);var i,o,a,s,u,l,h=0,f=t.length,p=f-1,d=e[0],v=y(d);if(v||f>1&&"string"===typeof d&&!m.checkClone&&Mt.test(d))return t.each(function(i){var o=t.eq(i);v&&(e[0]=d.call(this,i,o.html())),Ht(o,e,n,r)});if(f&&(i=St(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=S.map(Et(i,"script"),Ut),s=a.length;h<f;h++)u=i,h!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,Et(u,"script"))),n.call(t[h],u,h);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,Vt),h=0;h<s;h++)u=a[h],_t.test(u.type||"")&&!et.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):E(u.textContent.replace(jt,""),u,l))}return t}function Wt(t,e,n){for(var r,i=e?S.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(Et(r)),r.parentNode&&(n&&ht(r)&&It(Et(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=ht(t);if(!m.noCloneChecked&&(1===t.nodeType||11===t.nodeType)&&!S.isXMLDoc(t))for(a=Et(s),o=Et(t),r=0,i=o.length;r<i;r++)qt(o[r],a[r]);if(e)if(n)for(o=o||Et(t),a=a||Et(s),r=0,i=o.length;r<i;r++)Bt(o[r],a[r]);else Bt(t,s);return a=Et(s,"script"),a.length>0&&It(a,!u&&Et(t,"script")),s},cleanData:function(t){for(var e,n,r,i=S.event.special,o=0;void 0!==(n=t[o]);o++)if(Z(n)){if(e=n[et.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[et.expando]=void 0}n[nt.expando]&&(n[nt.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Wt(this,t,!0)},remove:function(t){return Wt(this,t)},text:function(t){return $(this,function(t){return void 0===t?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ht(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.appendChild(t)}})},prepend:function(){return Ht(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return S.clone(this,t,e)})},html:function(t){return $(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"===typeof t&&!Lt.test(t)&&!wt[(bt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(S.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Ht(this,arguments,function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Et(this)),n&&n.replaceChild(e,this))},t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),S(i[a])[e](n),l.apply(r,n.get());return this.pushStack(r)}});var Gt=new RegExp("^("+st+")(?!px)[a-z%]+$","i"),Kt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},zt=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},$t=new RegExp(ct.join("|"),"i");function Qt(t,e,n){var r,i,o,a,s=t.style;return n=n||Kt(t),n&&(a=n.getPropertyValue(e)||n[e],""!==a||ht(t)||(a=S.style(t,e)),!m.pixelBoxStyles()&&Gt.test(a)&&$t.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Yt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}(function(){function t(){if(l){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",lt.appendChild(c).appendChild(l);var t=n.getComputedStyle(l);r="1%"!==t.top,u=12===e(t.marginLeft),l.style.right="60%",a=36===e(t.right),i=36===e(t.width),l.style.position="absolute",o=12===e(l.offsetWidth/3),lt.removeChild(c),l=null}}function e(t){return Math.round(parseFloat(t))}var r,i,o,a,s,u,c=_.createElement("div"),l=_.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(m,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,r,i;return null==s&&(t=_.createElement("table"),e=_.createElement("tr"),r=_.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",r.style.height="9px",lt.appendChild(t).appendChild(e).appendChild(r),i=n.getComputedStyle(e),s=parseInt(i.height)>3,lt.removeChild(t)),s}}))})();var Xt=["Webkit","Moz","ms"],Jt=_.createElement("div").style,Zt={};function te(t){var e=t[0].toUpperCase()+t.slice(1),n=Xt.length;while(n--)if(t=Xt[n]+e,t in Jt)return t}function ee(t){var e=S.cssProps[t]||Zt[t];return e||(t in Jt?t:Zt[t]=te(t)||t)}var ne=/^(none|table(?!-c[ea]).+)/,re=/^--/,ie={position:"absolute",visibility:"hidden",display:"block"},oe={letterSpacing:"0",fontWeight:"400"};function ae(t,e,n){var r=ut.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function se(t,e,n,r,i,o){var a="width"===e?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(t,n+ct[a],!0,i)),r?("content"===n&&(u-=S.css(t,"padding"+ct[a],!0,i)),"margin"!==n&&(u-=S.css(t,"border"+ct[a]+"Width",!0,i))):(u+=S.css(t,"padding"+ct[a],!0,i),"padding"!==n?u+=S.css(t,"border"+ct[a]+"Width",!0,i):s+=S.css(t,"border"+ct[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u}function ue(t,e,n){var r=Kt(t),i=!m.boxSizingReliable()||n,o=i&&"border-box"===S.css(t,"boxSizing",!1,r),a=o,s=Qt(t,e,r),u="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&x(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===S.css(t,"boxSizing",!1,r),a=u in t,a&&(s=t[u])),s=parseFloat(s)||0,s+se(t,e,n||(o?"border":"content"),a,r,s)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=J(e),u=re.test(e),c=t.style;if(u||(e=ee(s)),a=S.cssHooks[e]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:c[e];o=typeof n,"string"===o&&(i=ut.exec(n))&&i[1]&&(n=dt(t,e,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,a,s=J(e),u=re.test(e);return u||(e=ee(s)),a=S.cssHooks[e]||S.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Qt(t,e,r)),"normal"===i&&e in oe&&(i=oe[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!ne.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,r):zt(t,ie,function(){return ue(t,e,r)})},set:function(t,n,r){var i,o=Kt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===S.css(t,"boxSizing",!1,o),c=r?se(t,e,r,u,o):0;return u&&a&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-se(t,e,"border",!1,o)-.5)),c&&(i=ut.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),ae(t,n,c)}}}),S.cssHooks.marginLeft=Yt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[t+ct[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=ae)}),S.fn.extend({css:function(t,e){return $(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Kt(t),i=e.length;a<i;a++)o[e[a]]=S.css(t,e[a],!1,r);return o}return void 0!==n?S.style(t,e,n):S.css(t,e)},t,e,arguments.length>1)}}),S.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ee(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ce.prototype.init,S.fx.step={};var le,he,fe=/^(?:toggle|show|hide)$/,pe=/queueHooks$/;function de(){he&&(!1===_.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(de):n.setTimeout(de,S.fx.interval),S.fx.tick())}function ve(){return n.setTimeout(function(){le=void 0}),le=Date.now()}function ge(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=ct[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function me(t,e,n){for(var r,i=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function ye(t,e,n){var r,i,o,a,s,u,c,l,h="width"in e||"height"in e,f=this,p={},d=t.style,v=t.nodeType&&pt(t),g=et.get(t,"fxshow");for(r in n.queue||(a=S._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,S.queue(t,"fx").length||a.empty.fire()})})),e)if(i=e[r],fe.test(i)){if(delete e[r],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;v=!0}p[r]=g&&g[r]||S.style(t,r)}if(u=!S.isEmptyObject(e),u||!S.isEmptyObject(p))for(r in h&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],c=g&&g.display,null==c&&(c=et.get(t,"display")),l=S.css(t,"display"),"none"===l&&(c?l=c:(mt([t],!0),c=t.style.display||c,l=S.css(t,"display"),mt([t]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===S.css(t,"float")&&(u||(f.done(function(){d.display=c}),null==c&&(l=d.display,c="none"===l?"":l)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),u=!1,p)u||(g?"hidden"in g&&(v=g.hidden):g=et.access(t,"fxshow",{display:c}),o&&(g.hidden=!v),v&&mt([t],!0),f.done(function(){for(r in v||mt([t]),et.remove(t,"fxshow"),p)S.style(t,r,p[r])})),u=me(v?g[r]:0,r,f),r in g||(g[r]=u.start,v&&(u.end=u.start,u.start=0))}function be(t,e){var n,r,i,o,a;for(n in t)if(r=J(n),i=e[r],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=S.cssHooks[r],a&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}function _e(t,e,n){var r,i,o=0,a=_e.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=le||ve(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,a=0,u=c.tweens.length;a<u;a++)c.tweens[a].run(o);return s.notifyWith(t,[c,o,n]),o<1&&u?n:(u||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:le||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),l=c.props;for(be(l,c.opts.specialEasing);o<a;o++)if(r=_e.prefilters[o].call(c,t,l,c.opts),r)return y(r.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,me,c),y(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(_e,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return dt(n.elem,t,ut.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(V);for(var n,r=0,i=t.length;r<i;r++)n=t[r],_e.tweeners[n]=_e.tweeners[n]||[],_e.tweeners[n].unshift(e)},prefilters:[ye],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"===typeof t?S.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return S.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(t,e,n,r){return this.filter(pt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=_e(this,S.extend({},t),o);(i||et.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!==typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=S.timers,a=et.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&pe.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||S.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=et.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=S.timers,a=r?r.length:0;for(n.finish=!0,S.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),S.each(["toggle","show","hide"],function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"===typeof t?n.apply(this,arguments):this.animate(ge(e,!0),t,r,i)}}),S.each({slideDown:ge("show"),slideUp:ge("hide"),slideToggle:ge("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(le=Date.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),le=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){he||(he=!0,de())},S.fx.stop=function(){he=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}})},function(){var t=_.createElement("input"),e=_.createElement("select"),n=e.appendChild(_.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=n.selected,t=_.createElement("input"),t.value="t",t.type="radio",m.radioValue="t"===t.value}();var we,Ee=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return $(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){S.removeAttr(this,t)})}}),S.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof t.getAttribute?S.prop(t,e,n):(1===o&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=S.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&x(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(V);if(i&&1===t.nodeType)while(n=i[r++])t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ee[e]||S.find.attr;Ee[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=Ee[a],Ee[a]=i,i=null!=n(t,e,r)?a:null,Ee[a]=o),i}});var Ie=/^(?:input|select|textarea|button)$/i,Te=/^(?:a|area)$/i;function Se(t){var e=t.match(V)||[];return e.join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function Ae(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(V)||[]}S.fn.extend({prop:function(t,e){return $(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[S.propFix[t]||t]})}}),S.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):Ie.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(y(t))return this.each(function(e){S(this).addClass(t.call(this,e,Ce(this)))});if(e=Ae(t),e.length)while(n=this[u++])if(i=Ce(n),r=1===n.nodeType&&" "+Se(i)+" ",r){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=Se(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(y(t))return this.each(function(e){S(this).removeClass(t.call(this,e,Ce(this)))});if(!arguments.length)return this.attr("class","");if(e=Ae(t),e.length)while(n=this[u++])if(i=Ce(n),r=1===n.nodeType&&" "+Se(i)+" ",r){a=0;while(o=e[a++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");s=Se(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"===typeof e&&r?e?this.addClass(t):this.removeClass(t):y(t)?this.each(function(n){S(this).toggleClass(t.call(this,n,Ce(this),e),e)}):this.each(function(){var e,i,o,a;if(r){i=0,o=S(this),a=Ae(t);while(e=a[i++])o.hasClass(e)?o.removeClass(e):o.addClass(e)}else void 0!==t&&"boolean"!==n||(e=Ce(this),e&&et.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":et.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;e=" "+t+" ";while(n=this[r++])if(1===n.nodeType&&(" "+Se(Ce(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ne=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,S(this).val()):t,null==i?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(t){return null==t?"":t+""})),e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"===typeof n?n.replace(Ne,""):null==n?"":n)):void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(n=i[r],(n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!x(n.parentNode,"optgroup"))){if(e=S(n).val(),a)return e;s.push(e)}return s},set:function(t,e){var n,r,i=t.options,o=S.makeArray(e),a=i.length;while(a--)r=i[a],(r.selected=S.inArray(S.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},m.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.focusin="onfocusin"in n;var ke=/^(?:focusinfocus|focusoutblur)$/,Oe=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,r,i){var o,a,s,u,c,l,h,f,p=[r||_],v=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(a=f=s=r=r||_,3!==r.nodeType&&8!==r.nodeType&&!ke.test(v+S.event.triggered)&&(v.indexOf(".")>-1&&(g=v.split("."),v=g.shift(),g.sort()),c=v.indexOf(":")<0&&"on"+v,t=t[S.expando]?t:new S.Event(v,"object"===typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:S.makeArray(e,[t]),h=S.event.special[v]||{},i||!h.trigger||!1!==h.trigger.apply(r,e))){if(!i&&!h.noBubble&&!b(r)){for(u=h.delegateType||v,ke.test(u+v)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||_)&&p.push(s.defaultView||s.parentWindow||n)}o=0;while((a=p[o++])&&!t.isPropagationStopped())f=a,t.type=o>1?u:h.bindType||v,l=(et.get(a,"events")||Object.create(null))[t.type]&&et.get(a,"handle"),l&&l.apply(a,e),l=c&&a[c],l&&l.apply&&Z(a)&&(t.result=l.apply(a,e),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),e)||!Z(r)||c&&y(r[v])&&!b(r)&&(s=r[c],s&&(r[c]=null),S.event.triggered=v,t.isPropagationStopped()&&f.addEventListener(v,Oe),r[v](),t.isPropagationStopped()&&f.removeEventListener(v,Oe),S.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each(function(){S.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}}),m.focusin||S.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e);i||r.addEventListener(t,n,!0),et.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=et.access(r,e)-1;i?et.access(r,e,i):(r.removeEventListener(t,n,!0),et.remove(r,e))}}});var xe=n.location,De={guid:Date.now()},Re=/\?/;S.parseXML=function(t){var e;if(!t||"string"!==typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(r){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+t),e};var Pe=/\[\]$/,Le=/\r?\n/g,Me=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,n,r){var i;if(Array.isArray(e))S.each(e,function(e,i){n||Pe.test(t)?r(t,i):Fe(t+"["+("object"===typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==I(e))r(t,e);else for(i in e)Fe(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,function(){i(this.name,this.value)});else for(n in t)Fe(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&je.test(this.nodeName)&&!Me.test(t)&&(this.checked||!yt.test(t))}).map(function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(t){return{name:e.name,value:t.replace(Le,"\r\n")}}):{name:e.name,value:n.replace(Le,"\r\n")}}).get()}});var Ue=/%20/g,Ve=/#.*$/,Be=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,We=/^(?:GET|HEAD)$/,Ge=/^\/\//,Ke={},ze={},$e="*/".concat("*"),Qe=_.createElement("a");function Ye(t){return function(e,n){"string"!==typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(V)||[];if(y(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Xe(t,e,n,r){var i={},o=t===ze;function a(s){var u;return i[s]=!0,S.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!==typeof c||o||i[c]?o?!(u=c):void 0:(e.dataTypes.unshift(c),a(c),!1)}),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Je(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}function Ze(t,e,n){var r,i,o,a,s=t.contents,u=t.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function tn(t,e,n,r){var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];o=l.shift();while(o)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift(),o)if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=c[u+" "+o]||c["* "+o],!a)for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]],a)){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(h){return{state:"parsererror",error:a?h:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}Qe.href=xe.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:He.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$e,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,S.ajaxSettings),e):Je(S.ajaxSettings,t)},ajaxPrefilter:Ye(Ke),ajaxTransport:Ye(ze),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,h,f,p=S.ajaxSetup({},e),d=p.context||p,v=p.context&&(d.nodeType||d.jquery)?S(d):S.event,g=S.Deferred(),m=S.Callbacks("once memory"),y=p.statusCode||{},b={},w={},E="canceled",I={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a){a={};while(e=qe.exec(o))a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2])}e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)I.always(t[I.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||E;return r&&r.abort(e),T(0,e),this}};if(g.promise(I),p.url=((t||p.url||xe.href)+"").replace(Ge,xe.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(V)||[""],null==p.crossDomain){u=_.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Qe.protocol+"//"+Qe.host!==u.protocol+"//"+u.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!==typeof p.data&&(p.data=S.param(p.data,p.traditional)),Xe(Ke,p,e,I),c)return I;for(h in l=S.event&&p.global,l&&0===S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),i=p.url.replace(Ve,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ue,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"===typeof p.data)&&(i+=(Re.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Be,"$1"),f=(Re.test(i)?"&":"?")+"_="+De.guid+++f),p.url=i+f),p.ifModified&&(S.lastModified[i]&&I.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&I.setRequestHeader("If-None-Match",S.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&I.setRequestHeader("Content-Type",p.contentType),I.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+$e+"; q=0.01":""):p.accepts["*"]),p.headers)I.setRequestHeader(h,p.headers[h]);
vendor: 4,362 bytes, line 112
112if(p.beforeSend&&(!1===p.beforeSend.call(d,I,p)||c))return I.abort();if(E="abort",m.add(p.complete),I.done(p.success),I.fail(p.error),r=Xe(ze,p,e,I),r){if(I.readyState=1,l&&v.trigger("ajaxSend",[I,p]),c)return I;p.async&&p.timeout>0&&(s=n.setTimeout(function(){I.abort("timeout")},p.timeout));try{c=!1,r.send(b,T)}catch(C){if(c)throw C;T(-1,C)}}else T(-1,"No Transport");function T(t,e,a,u){var h,f,b,_,w,E=e;c||(c=!0,s&&n.clearTimeout(s),r=void 0,o=u||"",I.readyState=t>0?4:0,h=t>=200&&t<300||304===t,a&&(_=Ze(p,I,a)),!h&&S.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),_=tn(p,_,I,h),h?(p.ifModified&&(w=I.getResponseHeader("Last-Modified"),w&&(S.lastModified[i]=w),w=I.getResponseHeader("etag"),w&&(S.etag[i]=w)),204===t||"HEAD"===p.type?E="nocontent":304===t?E="notmodified":(E=_.state,f=_.data,b=_.error,h=!b)):(b=E,!t&&E||(E="error",t<0&&(t=0))),I.status=t,I.statusText=(e||E)+"",h?g.resolveWith(d,[f,E,I]):g.rejectWith(d,[I,E,b]),I.statusCode(y),y=void 0,l&&v.trigger(h?"ajaxSuccess":"ajaxError",[I,p,h?f:b]),m.fireWith(d,[I,E]),l&&(v.trigger("ajaxComplete",[I,p]),--S.active||S.event.trigger("ajaxStop")))}return I},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],function(t,e){S[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}}),S.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){var t=this;while(t.firstElementChild)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){S(this).wrapInner(t.call(this,e))}):this.each(function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){S(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var en={0:200,1223:204},nn=S.ajaxSettings.xhr();m.cors=!!nn&&"withCredentials"in nn,m.ajax=nn=!!nn,S.ajaxTransport(function(t){var e,r;if(m.cors||nn&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(en[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(e)throw u}},abort:function(){e&&e()}}}),S.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),S.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("<script>").attr(t.scriptAttrs||{}
vendor: 6,779 bytes, lines 112-117
112).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),_.head.appendChild(e[0])},abort:function(){n&&n()}}});var rn=[],on=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=rn.pop()||S.expando+"_"+De.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(on.test(t.url)?"url":"string"===typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(on,"$1"+i):!1!==t.jsonp&&(t.url+=(Re.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||S.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?S(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,rn.push(i)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),m.createHTMLDocument=function(){var t=_.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),S.parseHTML=function(t,e,n){return"string"!==typeof t?[]:("boolean"===typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?(e=_.implementation.createHTMLDocument(""),r=e.createElement("base"),r.href=_.location.href,e.head.appendChild(r)):e=_),i=D.exec(t),o=!n&&[],i?[e.createElement(i[1])]:(i=St([t],e,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(t,e,n){var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=Se(t.slice(s)),t=t.slice(0,s)),y(e)?(n=e,e=void 0):e&&"object"===typeof e&&(i="POST"),a.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,c,l=S.css(t,"position"),h=S(t),f={};"static"===l&&(t.style.position="relative"),s=h.offset(),o=S.css(t,"top"),u=S.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=h.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,S.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):("number"===typeof f.top&&(f.top+="px"),"number"===typeof f.left&&(f.left+="px"),h.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))e=r.getBoundingClientRect();else{e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;while(t&&(t===n.body||t===n.documentElement)&&"static"===S.css(t,"position"))t=t.parentNode;t&&t!==r&&1===t.nodeType&&(i=S(t).offset(),i.top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var t=this.offsetParent;while(t&&"static"===S.css(t,"position"))t=t.offsetParent;return t||lt})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;S.fn[t]=function(r){return $(this,function(t,r,i){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i},t,r,arguments.length)}}),S.each(["top","left"],function(t,e){S.cssHooks[e]=Yt(m.pixelPosition,function(t,n){if(n)return n=Qt(t,e),Gt.test(n)?S(t).position()[e]+"px":n})}),S.each({Height:"height",Width:"width"},function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){S.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!==typeof i),s=n||(!0===i||!0===o?"margin":"border");return $(this,function(e,n,i){var o;return b(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?S.css(e,n,s):S.style(e,n,i,s)},e,a?i:void 0,a)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){S.fn[e]=function(t){return this.on(e,t)}}),S.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){S.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var an=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var n,r,i;if("string"===typeof e&&(n=t[e],e=t,t=n),y(t))return r=u.call(arguments,2),i=function(){return t.apply(e||this,r.concat(u.call(arguments)))},i.guid=t.guid=t.guid||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=x,S.isFunction=y,S.isWindow=b,S.camelCase=J,S.type=I,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(an,"")},r=[],i=function(){return S}.apply(e,r),void 0===i||(t.exports=i);var sn=n.jQuery,un=n.$;return S.noConflict=function(t){return n.$===S&&(n.$=un),t&&n.jQuery===S&&(n.jQuery=sn),S},"undefined"===typeof o&&(n.jQuery=n.$=S),S})},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),u=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},"17f3":function(t,e){
113/**
114 * @license
115 * Copyright 2015 Google Inc. All Rights Reserved.
116 *
117 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 4,270 bytes, lines 118-129
118 * you may not use this file except in compliance with the License.
119 * You may obtain a copy of the License at
120 *
121 *      http://www.apache.org/licenses/LICENSE-2.0
122 *
123 * Unless required by applicable law or agreed to in writing, software
124 * distributed under the License is distributed on an "AS IS" BASIS,
125 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
126 * See the License for the specific language governing permissions and
127 * limitations under the License.
128 */
129(function(){"use strict";var t=function(t){this.element_=t,this.init()};window["MaterialProgress"]=t,t.prototype.Constant_={},t.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},t.prototype.setProgress=function(t){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=t+"%")},t.prototype["setProgress"]=t.prototype.setProgress,t.prototype.setBuffer=function(t){this.bufferbar_.style.width=t+"%",this.auxbar_.style.width=100-t+"%"},t.prototype["setBuffer"]=t.prototype.setBuffer,t.prototype.init=function(){if(this.element_){var t=document.createElement("div");t.className="progressbar bar bar1",this.element_.appendChild(t),this.progressbar_=t,t=document.createElement("div"),t.className="bufferbar bar bar2",this.element_.appendChild(t),this.bufferbar_=t,t=document.createElement("div"),t.className="auxbar bar bar3",this.element_.appendChild(t),this.auxbar_=t,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:t,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0})})()},1991:function(t,e,n){var r,i,o,a=n("9b43"),s=n("31f4"),u=n("fab2"),c=n("230e"),l=n("7726"),h=l.process,f=l.setImmediate,p=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,g=0,m={},y="onreadystatechange",b=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){b.call(t.data)};f&&p||(f=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return m[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},p=function(t){delete m[t]},"process"==n("2d95")(h)?r=function(t){h.nextTick(a(b,t,1))}:v&&v.now?r=function(t){v.now(a(b,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r=y in c("script")?function(t){u.appendChild(c("script"))[y]=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:f,clear:p}},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"1fa8":function(t,e,n){var r=n("cb7c");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),u=n("520a"),c=s("species"),l=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!o(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),d=p?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e}):void 0;if(!p||!d||"replace"===t&&!l||"split"===t&&!h){var v=/./[f],g=n(a,f,""[t],function(t,e,n,r,i){return e.exec===u?p&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),m=g[0],y=g[1];r(String.prototype,t,m),i(RegExp.prototype,f,2==e?function(t,e){return y.c
129all(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2398:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return a});var r=n("59ca"),i=(n("ea7b"),n("c970")),o=n.n(i);n("4e57"),n("bff8"),n("17f3"),n("5c15"),n("f8ec");(function(){(function(){var e,n,i="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};if("function"==typeof Object.setPrototypeOf)n=Object.setPrototypeOf;else{var o;t:{var a={zb:!0},s={};try{s.__proto__=a,o=s.zb;break t}catch(ud){}o=!1}n=o?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var u=n;function c(t,e){if(t.prototype=i(e.prototype),t.prototype.constructor=t,u)u(t,e);else for(var n in e)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(t,n,r)}else t[n]=e[n];t.K=e.prototype}var l="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},h="undefined"!=typeof window&&window===this?this:"undefined"!=typeof t&&null!=t?t:this;function f(t,e){if(e){var n=h;t=t.split(".");for(var r=0;r<t.length-1;r++){var i=t[r];i in n||(n[i]={}),n=n[i]}t=t[t.length-1],r=n[t],e=e(r),e!=r&&null!=e&&l(n,t,{configurable:!0,writable:!0,value:e})}}function p(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function d(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:p(t)}}f("Object.is",function(t){return t||function(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}}),f("Array.prototype.includes",function(t){return t||function(t,e){var n=this;n instanceof String&&(n=String(n));var r=n.length;for(e=e||0,0>e&&(e=Math.max(e+r,0));e<r;e++){var i=n[e];if(i===t||Object.is(i,t))return!0}return!1}}),f("Promise",function(t){function e(t){this.f=0,this.h=void 0,this.a=[];var e=this.j();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function n(){this.a=null}function r(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;n.prototype.f=function(t){if(null==this.a){this.a=[];var e=this;this.h(function(){e.m()})}this.a.push(t)};var i=h.setTimeout;n.prototype.h=function(t){i(t,0)},n.prototype.m=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(r){this.j(r)}}}this.a=null},n.prototype.j=function(t){this.h(function(){throw t})},e.prototype.j=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1;return{resolve:t(this.J),reject:t(this.m)}},e.prototype.J=function(t){if(t===this)this.m(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.M(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.H(t):this.i(t)}},e.prototype.H=function(t){var e=void 0;try{e=t.then}catch(n){return void this.m(n)}"function"==typeof e?this.N(e,t):this.i(t)},e.prototype.m=function(t){this.w(2,t)},e.prototype.i=function(t){this.w(1,t)},e.prototype.w=function(t,e){if(0!=this.f)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.f);this.f=t,this.h=e,this.C()},e.prototype.C=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)o.f(this.a[t]);this.a=null}};var o=new n;return e.prototype.M=function(t){var e=this.j();t.Ia(e.resolve,e.reject)},e.prototype.N=function(t,e){var n=this.j();try{t.call(e,n.resolve,n.reject)}catch(r){n.reject(r)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(n){o(n)}}:e}var i,o,a=new e(function(t,e){i=t,o=e});return this.Ia(r(t,i),r(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Ia=function(t,e){function n(){switch(r.f){case 1:t(r.h);break;case 2:e(r.h);break;default:throw Error("Unexpected state: "+r.f)}}var r=this;null==this.a?o.f(n):this.a.push(n)}
129,e.resolve=r,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var i=d(t),o=i.next();!o.done;o=i.next())r(o.value).Ia(e,n)})},e.all=function(t){var n=d(t),i=n.next();return i.done?r([]):new e(function(t,e){function o(e){return function(n){a[e]=n,s--,0==s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Ia(o(a.length-1),e),i=n.next()}while(!i.done)})},e});var v=this;function g(t){return void 0!==t}function m(t){return"string"==typeof t}var y=/^[\w+/_-]+[=]{0,2}$/,b=null;function _(){}function w(t){t.V=void 0,t.Ya=function(){return t.V?t.V:t.V=new t}}function E(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&"undefined"!=typeof t.splice&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof t.call&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&"undefined"==typeof t.call)return"object";return e}function I(t){return"array"==E(t)}function T(t){var e=E(t);return"array"==e||"object"==e&&"number"==typeof t.length}function S(t){return"function"==E(t)}function C(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var A="closure_uid_"+(1e9*Math.random()>>>0),N=0;function k(t,e,n){return t.call.apply(t.bind,arguments)}function O(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function x(t,e,n){return x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?k:O,x.apply(null,arguments)}function D(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function R(t,e){for(var n in e)t[n]=e[n]}var P,L=Date.now||function(){return+new Date};function M(t,e){t=t.split(".");var n,r=v;t[0]in r||"undefined"==typeof r.execScript||r.execScript("var "+t[0]);for(;t.length&&(n=t.shift());)!t.length&&g(e)?r[n]=e:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}}function j(t,e){function n(){}n.prototype=e.prototype,t.K=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.uc=function(t,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return e.prototype[n].apply(t,i)}}function F(t){if(Error.captureStackTrace)Error.captureStackTrace(this,F);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function U(t,e){t=t.split("%s");for(var n="",r=t.length-1,i=0;i<r;i++)n+=t[i]+(i<e.length?e[i]:"%s");F.call(this,n+t[r])}function V(t,e){throw new U("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}j(F,Error),F.prototype.name="CustomError",j(U,F),U.prototype.name="AssertionError";var B=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(m(t))return m(e)&&1==e.length?t.indexOf(e,0):-1;for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},q=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i=m(t)?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function H(t,e){for(var n=m(t)?t.split(""):t,r=t.length-1;0<=r;--r)r in n&&e.call(void 0,n[r],r,t)}var W=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=[],i=0,o=m(t)?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(r[i++]=s)}return r},G=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=Array(n),i=m(t)?t.split(""):t,o=0;o<n;o++)o in i&&(r[o]=e.call(void 0,i[o],o,t));return r},K=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=m(t)?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t))return!0;return!1};function z(t,e,n){for(var r=t.length,i=m(t)?t.split(""):t,o=0;o<r;o++)if(o in i&&e.call(n,i[o],o,t))return o;return-1}function $(t,e){return 0<=B(t,e)}function Q(t,e){var n;return e=B(t,e),(n=0<=e)&&Y(t,e),n}function Y(t,e){return 1==Array.prototype.splice.call(t,e,1).length}function X(t,e){e=z(t,e,void 0),0<=e&&Y(t,e)}function J(t,e){H(t,function(n,r){e.call(void 0,n,r,t)&&Y(t,r)&&0})}function Z(t){return Array.prototype.concat.apply([],arguments)}function tt(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function et(t,e,n,r){return Array.prototype.splice.apply(t,nt(arguments,1
129))}function nt(t,e,n){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,n)}var rt=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},it=/&/g,ot=/</g,at=/>/g,st=/"/g,ut=/'/g,ct=/\x00/g,lt=/[\x00&<>"']/;function ht(t,e){return t<e?-1:t>e?1:0}function ft(t){return lt.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(it,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(ot,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(at,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(st,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(ut,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(ct,"&#0;"))),t}function pt(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function dt(t){var e,n={};for(e in t)n[e]=t[e];return n}var vt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function gt(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i],r)t[n]=r[n];for(var o=0;o<vt.length;o++)n=vt[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}var mt="StopIteration"in v?v.StopIteration:{message:"StopIteration",stack:""};function yt(){}function bt(t){if(t instanceof yt)return t;if("function"==typeof t.ha)return t.ha(!1);if(T(t)){var e=0,n=new yt;return n.next=function(){for(;;){if(e>=t.length)throw mt;if(e in t)return t[e++];e++}},n}throw Error("Not implemented")}function _t(t,e){if(T(t))try{q(t,e,void 0)}catch(n){if(n!==mt)throw n}else{t=bt(t);try{for(;;)e.call(void 0,t.next(),void 0,t)}catch(r){if(r!==mt)throw r}}}function wt(t){if(T(t))return tt(t);t=bt(t);var e=[];return _t(t,function(t){e.push(t)}),e}function Et(t,e){this.f={},this.a=[],this.j=this.h=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Et)for(n=t.ja(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function It(t){if(t.h!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Tt(t.f,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.h!=t.a.length){var i={};for(n=e=0;e<t.a.length;)r=t.a[e],Tt(i,r)||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Tt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}yt.prototype.next=function(){throw mt},yt.prototype.ha=function(){return this},e=Et.prototype,e.la=function(){It(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.f[this.a[e]]);return t},e.ja=function(){return It(this),this.a.concat()},e.clear=function(){this.f={},this.j=this.h=this.a.length=0},e.get=function(t,e){return Tt(this.f,t)?this.f[t]:e},e.set=function(t,e){Tt(this.f,t)||(this.h++,this.a.push(t),this.j++),this.f[t]=e},e.forEach=function(t,e){for(var n=this.ja(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}},e.ha=function(t){It(this);var e=0,n=this.j,r=this,i=new yt;return i.next=function(){if(n!=r.j)throw Error("The map has changed since the iterator was created");if(e>=r.a.length)throw mt;var i=r.a[e++];return t?i:r.f[i]},i};var St=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ct(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function At(t,e,n,r){for(var i=n.length;0<=(e=t.indexOf(n,e))&&e<r;){var o=t.charCodeAt(e-1);if((38==o||63==o)&&(o=t.charCodeAt(e+i),!o||61==o||38==o||35==o))return e;e+=i+1}return-1}var Nt=/#|$/;function kt(t,e){var n=t.search(Nt),r=At(t,0,e,n);if(0>r)return null;var i=t.indexOf("&",r);return(0>i||i>n)&&(i=n),r+=e.length+1,decodeURIComponent(t.substr(r,i-r).replace(/\+/g," "))}var Ot=/[?&]($|#)/;function xt(t,e){var n;this.h=this.w=this.j="",this.C=null,this.m=this.f="",this.i=!1,t instanceof xt?(this.i=g(e)?e:t.i,Dt(this,t.j),this.w=t.w,this.h=t.h,Rt(this,t.C),this.f=t.f,Pt(this,Qt(t.a)),this.m=t.m):t&&(n=String(t).match(St))?(this.i=!!e,Dt(this,n[1]||"",!0),this.w=jt(n[2]||""),this.h=jt(n[3]||"",!0),Rt(this,n[4]),this.f=jt(n[5]||"",!0),Pt(this,n[6]||"",!0),this.m=jt(n[7]||"")):(this.i=!!e,this.a=new Gt(null,this.i))}function Dt(t,e,n){t.j=n?jt(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function Rt(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.C=e}else t.C=null}function Pt(t,e,n){e instanceof Gt?(t.a=e,Xt(t.a,t.i)):(n||(e=Ft(e,Ht)),t.a=new Gt(e,t.i))}function Lt(t){return t instanceof xt?new xt(t):new xt(t,void 0)}function Mt(t,e){return t instanceof xt||(t=Lt(t)),e instanceof xt||(e=Lt(e)),t.resolve(e)}function jt(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Ft(t,e,n){return m(t)?(t=encodeURI(t).replace(e,Ut),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Ut(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}xt.prototype.toString=function(){var t=[],e=this.j;e&&t.push(Ft(e,Vt,!0),":");var n=this.h;
129return(n||"file"==e)&&(t.push("//"),(e=this.w)&&t.push(Ft(e,Vt,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.C,null!=n&&t.push(":",String(n))),(n=this.f)&&(this.h&&"/"!=n.charAt(0)&&t.push("/"),t.push(Ft(n,"/"==n.charAt(0)?qt:Bt,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.m)&&t.push("#",Ft(n,Wt)),t.join("")},xt.prototype.resolve=function(t){var e=new xt(this),n=!!t.j;n?Dt(e,t.j):n=!!t.w,n?e.w=t.w:n=!!t.h,n?e.h=t.h:n=null!=t.C;var r=t.f;if(n)Rt(e,t.C);else if(n=!!t.f){if("/"!=r.charAt(0))if(this.h&&!this.f)r="/"+r;else{var i=e.f.lastIndexOf("/");-1!=i&&(r=e.f.substr(0,i+1)+r)}if(i=r,".."==i||"."==i)r="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?e.f=r:n=""!==t.a.toString(),n?Pt(e,Qt(t.a)):n=!!t.m,n&&(e.m=t.m),e};var Vt=/[#\/\?@]/g,Bt=/[#\?:]/g,qt=/[#\?]/g,Ht=/[#\?@]/g,Wt=/#/g;function Gt(t,e){this.f=this.a=null,this.h=t||null,this.j=!!e}function Kt(t){t.a||(t.a=new Et,t.f=0,t.h&&Ct(t.h,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function zt(t,e){Kt(t),e=Yt(t,e),Tt(t.a.f,e)&&(t.h=null,t.f-=t.a.get(e).length,t=t.a,Tt(t.f,e)&&(delete t.f[e],t.h--,t.j++,t.a.length>2*t.h&&It(t)))}function $t(t,e){return Kt(t),e=Yt(t,e),Tt(t.a.f,e)}function Qt(t){var e=new Gt;return e.h=t.h,t.a&&(e.a=new Et(t.a),e.f=t.f),e}function Yt(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}function Xt(t,e){e&&!t.j&&(Kt(t),t.h=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(zt(this,e),zt(this,n),0<t.length&&(this.h=null,this.a.set(Yt(this,n),tt(t)),this.f+=t.length))},t)),t.j=e}function Jt(t){this.a=Lt(t)}function Zt(t,e){e?t.a.a.set(ie.Ta,e):zt(t.a.a,ie.Ta)}function te(t,e){null!==e?t.a.a.set(ie.Ra,e?"1":"0"):zt(t.a.a,ie.Ra)}function ee(t){return t.a.a.get(ie.Qa)||null}function ne(t,e){e?t.a.a.set(ie.PROVIDER_ID,e):zt(t.a.a,ie.PROVIDER_ID)}e=Gt.prototype,e.add=function(t,e){Kt(this),this.h=null,t=Yt(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.f+=1,this},e.clear=function(){this.a=this.h=null,this.f=0},e.forEach=function(t,e){Kt(this),this.a.forEach(function(n,r){q(n,function(n){t.call(e,n,r,this)},this)},this)},e.ja=function(){Kt(this);for(var t=this.a.la(),e=this.a.ja(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},e.la=function(t){Kt(this);var e=[];if(m(t))$t(this,t)&&(e=Z(e,this.a.get(Yt(this,t))));else{t=this.a.la();for(var n=0;n<t.length;n++)e=Z(e,t[n])}return e},e.set=function(t,e){return Kt(this),this.h=null,t=Yt(this,t),$t(this,t)&&(this.f-=this.a.get(t).length),this.a.set(t,[e]),this.f+=1,this},e.get=function(t,e){return t?(t=this.la(t),0<t.length?String(t[0]):e):e},e.toString=function(){if(this.h)return this.h;if(!this.a)return"";for(var t=[],e=this.a.ja(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.la(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.h=t.join("&")},Jt.prototype.toString=function(){return this.a.toString()};var re,ie={Qa:"ui_auid",kc:"apiKey",Ra:"ui_sd",wb:"mode",ab:"oobCode",PROVIDER_ID:"ui_pid",Ta:"ui_sid",xb:"tenantId"};t:{var oe=v.navigator;if(oe){var ae=oe.userAgent;if(ae){re=ae;break t}}re=""}function se(t){return-1!=re.indexOf(t)}function ue(){return(se("Chrome")||se("CriOS"))&&!se("Edge")}function ce(t){return ce[" "](t),t}function le(t,e){var n=Se;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}ce[" "]=_;var he,fe=se("Opera"),pe=se("Trident")||se("MSIE"),de=se("Edge"),ve=de||pe,ge=se("Gecko")&&!(-1!=re.toLowerCase().indexOf("webkit")&&!se("Edge"))&&!(se("Trident")||se("MSIE"))&&!se("Edge"),me=-1!=re.toLowerCase().indexOf("webkit")&&!se("Edge"),ye=me&&se("Mobile"),be=se("Macintosh");function _e(){var t=v.document;return t?t.documentMode:void 0}t:{var we="",Ee=function(){var t=re;return ge?/rv:([^\);]+)(\)|;)/.exec(t):de?/Edge\/([\d\.]+)/.exec(t):pe?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):me?/WebKit\/(\S+)/.exec(t):fe?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(Ee&&(we=Ee?Ee[1]:""),pe){var Ie=_e();if(null!=Ie&&Ie>
129parseFloat(we)){he=String(Ie);break t}}he=we}var Te,Se={};function Ce(t){return le(t,function(){for(var e=0,n=rt(String(he)).split("."),r=rt(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=ht(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ht(0==a[2].length,0==s[2].length)||ht(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}var Ae=v.document;function Ne(t,e){this.a=t===xe&&e||"",this.f=Oe}function ke(t){return t instanceof Ne&&t.constructor===Ne&&t.f===Oe?t.a:(V("expected object of type Const, got '"+t+"'"),"type_error:Const")}Te=Ae&&pe?_e()||("CSS1Compat"==Ae.compatMode?parseInt(he,10):5):void 0,Ne.prototype.ma=!0,Ne.prototype.ka=function(){return this.a},Ne.prototype.toString=function(){return"Const{"+this.a+"}"};var Oe={},xe={};function De(){this.a="",this.h=Pe}function Re(t){return t instanceof De&&t.constructor===De&&t.h===Pe?t.a:(V("expected object of type TrustedResourceUrl, got '"+t+"' of type "+E(t)),"type_error:TrustedResourceUrl")}De.prototype.ma=!0,De.prototype.ka=function(){return this.a.toString()},De.prototype.f=function(){return 1},De.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Pe={};function Le(t){var e=new De;return e.a=t,e}function Me(){this.a="",this.h=Be}function je(t){return Fe(t).toString()}function Fe(t){return t instanceof Me&&t.constructor===Me&&t.h===Be?t.a:(V("expected object of type SafeUrl, got '"+t+"' of type "+E(t)),"type_error:SafeUrl")}Me.prototype.ma=!0,Me.prototype.ka=function(){return this.a.toString()},Me.prototype.f=function(){return 1},Me.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Ue=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ve(t){return t instanceof Me?t:(t="object"==typeof t&&t.ma?t.ka():String(t),Ue.test(t)||(t="about:invalid#zClosurez"),qe(t))}var Be={};function qe(t){var e=new Me;return e.a=t,e}function He(){this.a="",this.f=We}qe("about:blank"),He.prototype.ma=!0;var We={};function Ge(){this.a="",this.j=ze,this.h=null}function Ke(t){return t instanceof Ge&&t.constructor===Ge&&t.j===ze?t.a:(V("expected object of type SafeHtml, got '"+t+"' of type "+E(t)),"type_error:SafeHtml")}He.prototype.ka=function(){return this.a},He.prototype.toString=function(){return"SafeStyle{"+this.a+"}"},Ge.prototype.f=function(){return this.h},Ge.prototype.ma=!0,Ge.prototype.ka=function(){return this.a.toString()},Ge.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var ze={};function $e(t,e){var n=new Ge;return n.a=t,n.h=e,n}$e("<!DOCTYPE html>",0);var Qe=$e("",0);$e("<br>",0);var Ye=function(t){var e,n=!1;return function(){return n||(e=t(),n=!0),e}}(function(){if("undefined"===typeof document)return!1;var t=document.createElement("div"),e=document.createElement("div");return e.appendChild(document.createElement("div")),t.appendChild(e),!!t.firstChild&&(e=t.firstChild.firstChild,t.innerHTML=Ke(Qe),!e.parentElement)});function Xe(t,e){t.src=Re(e),null===b&&(e=v.document,b=(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&y.test(e)?e:""),e=b,e&&t.setAttribute("nonce",e)}function Je(t,e){this.a=g(t)?t:0,this.f=g(e)?e:0}function Ze(t,e){this.width=t,this.height=e}function tn(t){return t?new pn(cn(t)):P||(P=new pn)}function en(t,e){var n=e||document;return n.querySelectorAll&&n.querySelector?n.querySelectorAll("."+t):rn(document,t,e)}function nn(t,e){var n=e||document;if(n.getElementsByClassName)t=n.getElementsByClassName(t)[0];else{n=document;var r=e||n;t=r.querySelectorAll&&r.querySelector&&t?r.querySelector(t?"."+t:""):rn(n,t,e)[0]||null}return t||null}function rn(t,e,n){var r;if(t=n||t,t.querySelectorAll&&t.querySelector&&e)return t.querySelectorAll(e?"."+e:"");if(e&&t.getElementsByClassName){var i=t.getElementsByClassName(e);return i}if(i=t.getElementsByTagName("*"),e){var o={};for(n=r=0;t=i[n];n++){var a=t.className;"function"==typeof a.split&&$(a.split(/\s+/),e)&&(o[r++]=t)}return o.length=r,o}return i}function on(t,e){pt(e,function(e,n){e&&"object"==typeof e&&e.ma&&(e=e.ka()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:an.hasOwnProperty(n)?t.setAttribute(an[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}Je.prototype.toString=function(){return"("+this.a+", "+this.f+")"},Je.prototype.ceil=function(){return this.a=Math.ceil(this.a),this.f=Math.ceil(this.f),this},Je.prototype.floor=function(){return this.a=Math.floor(this.a),this.f=Math.floor(this.f),this},Je.prototype.round=function(){return this.a=Math.round(this.a),this.f=Math.round(this.f),this},e=Ze.prototype,e.toString=function(){return"("+this.width+" x "+this.height+")"},e.aspectRatio=function(){return this.width/this.height},e.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},e.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},e.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this};var an={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
129nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function sn(t){return t.scrollingElement?t.scrollingElement:(me||"CSS1Compat"!=t.compatMode)&&t.body||t.documentElement}function un(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function cn(t){return 9==t.nodeType?t:t.ownerDocument||t.document}function ln(t,e){if("textContent"in t)t.textContent=e;else if(3==t.nodeType)t.data=String(e);else if(t.firstChild&&3==t.firstChild.nodeType){for(;t.lastChild!=t.firstChild;)t.removeChild(t.lastChild);t.firstChild.data=String(e)}else{for(var n;n=t.firstChild;)t.removeChild(n);t.appendChild(cn(t).createTextNode(String(e)))}}function hn(t,e){return e?fn(t,function(t){return!e||m(t.className)&&$(t.className.split(/\s+/),e)}):null}function fn(t,e){for(;t;){if(e(t))return t;t=t.parentNode,0}return null}function pn(t){this.a=t||v.document||document}pn.prototype.P=function(){return m(void 0)?this.a.getElementById(void 0):void 0};var dn={Ec:!0},vn={Gc:!0},gn={Dc:!0},mn={Fc:!0};function yn(){throw Error("Do not instantiate directly")}function bn(t,e,n,r){if(t=t(e||En,void 0,n),r=(r||tn()).a.createElement("DIV"),t=_n(t),t.match(wn),t=$e(t,null),Ye())for(;r.lastChild;)r.removeChild(r.lastChild);return r.innerHTML=Ke(t),1==r.childNodes.length&&(t=r.firstChild,1==t.nodeType&&(r=t)),r}function _n(t){if(!C(t))return ft(String(t));if(t instanceof yn){if(t.fa===dn)return t.content;if(t.fa===mn)return ft(t.content)}return V("Soy template output is unsafe for use as HTML: "+t),"zSoyz"}yn.prototype.va=null,yn.prototype.toString=function(){return this.content};var wn=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,En={};function In(t){if(null!=t)switch(t.va){case 1:return 1;case-1:return-1;case 0:return 0}return null}function Tn(){yn.call(this)}function Sn(t){return null!=t&&t.fa===dn?t:t instanceof Ge?kn(Ke(t).toString(),t.f()):kn(ft(String(String(t))),In(t))}function Cn(){yn.call(this)}function An(t,e){this.content=String(t),this.va=null!=e?e:null}function Nn(t){return new An(t,void 0)}j(Tn,yn),Tn.prototype.fa=dn,j(Cn,yn),Cn.prototype.fa=vn,Cn.prototype.va=1,j(An,yn),An.prototype.fa=mn;var kn=function(t){function e(t){this.content=t}return e.prototype=t.prototype,function(t,n){return t=new e(String(t)),void 0!==n&&(t.va=n),t}}(Tn),On=function(t){function e(t){this.content=t}return e.prototype=t.prototype,function(t){return new e(String(t))}}(Cn);function xn(t){function e(){}var n={label:Dn("New password")};for(var r in e.prototype=t,t=new e,n)t[r]=n[r];return t}function Dn(t){return(t=String(t))?new An(t,void 0):""}var Rn=function(t){function e(t){this.content=t}return e.prototype=t.prototype,function(t,n){return t=String(t),t?(t=new e(t),void 0!==n&&(t.va=n),t):""}}(Tn);function Pn(t){return null!=t&&t.fa===dn?String(String(t.content).replace(Gn,"").replace(Kn,"&lt;")).replace(Bn,Fn):ft(String(t))}function Ln(t){return null!=t&&t.fa===vn?t=String(t).replace(qn,Vn):t instanceof Me?t=String(je(t)).replace(qn,Vn):(t=String(t),Wn.test(t)?t=t.replace(qn,Vn):(V("Bad value `%s` for |filterNormalizeUri",[t]),t="#zSoyz")),t}function Mn(t){return null!=t&&t.fa===gn?t=t.content:null==t?t="":t instanceof He?t instanceof He&&t.constructor===He&&t.f===We?t=t.a:(V("expected object of type SafeStyle, got '"+t+"' of type "+E(t)),t="type_error:SafeStyle"):(t=String(t),Hn.test(t)||(V("Bad value `%s` for |filterCssValue",[t]),t="zSoyz")),t}var jn={"\0":"&#0;","\t":"&#9;","\n":"&#10;","\v":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","…":"&#133;"," ":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function Fn(t){return jn[t]}var Un={"\0":"%00","�":"%01","�":"%02","�":"%03","�":"%04","�":"%05","�":"%06","�":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","�":"%0E","�":"%0F","�":"%10","�":"%11","�":"%12","�":"%13","�":"%14","�":"%15","�":"%16","�":"%17","�":"%18","�":"%19","�":"%1A","�":"%1B","�":"%1C","�":"%1D","�":"%1E","�":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","�":"%7F","…":"%C2%85"," ":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","!":"%EF%BC%81","#":"%EF%BC%83","$":"%EF%BC%84","&":"%E
129F%BC%86","'":"%EF%BC%87","(":"%EF%BC%88",")":"%EF%BC%89","*":"%EF%BC%8A","+":"%EF%BC%8B",",":"%EF%BC%8C","/":"%EF%BC%8F",":":"%EF%BC%9A",";":"%EF%BC%9B","=":"%EF%BC%9D","?":"%EF%BC%9F","@":"%EF%BC%A0","[":"%EF%BC%BB","]":"%EF%BC%BD"};function Vn(t){return Un[t]}var Bn=/[\x00\x22\x27\x3c\x3e]/g,qn=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,Hn=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,Wn=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Gn=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Kn=/</g;function zn(){return Nn("Enter a valid phone number")}function $n(){return Nn("Something went wrong. Please try again.")}function Qn(){return Nn("This email already exists without any means of sign-in. Please reset the password to recover.")}function Yn(t){t=t||{};var e="";switch(t.code){case"invalid-argument":e+="Client specified an invalid argument.";break;case"invalid-configuration":e+="Client specified an invalid project configuration.";break;case"failed-precondition":e+="Request can not be executed in the current system state.";break;case"out-of-range":e+="Client specified an invalid range.";break;case"unauthenticated":e+="Request not authenticated due to missing, invalid, or expired OAuth token.";break;case"permission-denied":e+="Client does not have sufficient permission.";break;case"not-found":e+="Specified resource is not found.";break;case"aborted":e+="Concurrency conflict, such as read-modify-write conflict.";break;case"already-exists":e+="The resource that a client tried to create already exists.";break;case"resource-exhausted":e+="Either out of resource quota or reaching rate limiting.";break;case"cancelled":e+="Request cancelled by the client.";break;case"data-loss":e+="Unrecoverable data loss or data corruption.";break;case"unknown":e+="Unknown server error.";break;case"internal":e+="Internal server error.";break;case"not-implemented":e+="API method not implemented by the server.";break;case"unavailable":e+="Service unavailable.";break;case"deadline-exceeded":e+="Request deadline exceeded.";break;case"auth/user-disabled":e+="The user account has been disabled by an administrator.";break;case"auth/timeout":e+="The operation has timed out.";break;case"auth/too-many-requests":e+="We have blocked all requests from this device due to unusual activity. Try again later.";break;case"auth/quota-exceeded":e+="The quota for this operation has been exceeded. Try again later.";break;case"auth/network-request-failed":e+="A network error has occurred. Try again later.";break;case"restart-process":e+="An issue was encountered when authenticating your request. Please visit the URL that redirected you to this page again to restart the authentication process.";break;case"no-matching-tenant-for-email":e+="No sign-in provider is available for the given email, please try with a different email."}return Nn(e)}function Xn(){return Nn("Please login again to perform this operation")}function Jn(t,e,n){var r=Error.call(this);if(this.message=r.message,"stack"in r&&(this.stack=r.stack),this.code=Zn+t,!(t=e)){switch(t="",this.code){case"firebaseui/merge-conflict":t+="The current anonymous user failed to upgrade. The non-anonymous credential is already associated with a different user account.";break;default:t+=$n()}t=Nn(t).toString()}this.message=t||"",this.credential=n||null}c(Jn,Error),Jn.prototype.aa=function(){return{code:this.code,message:this.message}},Jn.prototype.toJSON=function(){return this.aa()};var Zn="firebaseui/";function tr(){0!=er&&(nr[this[A]||(this[A]=++N)]=this),this.N=this.N,this.C=this.C}var er=0,nr={};function rr(t,e){t.N?g(void 0)?e.call(void 0):e():(t.C||(t.C=[]),t.C.push(g(void 0)?x(e,void 0):e))}function ir(t){t&&"function"==typeof t.o&&t.o()}tr.prototype.N=!1,tr.prototype.o=function(){if(!this.N&&(this.N=!0,this.s(),0!=er)){var t=this[A]||(this[A]=++N);
129if(0!=er&&this.C&&0<this.C.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete nr[t]}},tr.prototype.s=function(){if(this.C)for(;this.C.length;)this.C.shift()()};var or=Object.freeze||function(t){return t},ar=!pe||9<=Number(Te),sr=pe&&!Ce("9"),ur=function(){if(!v.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{v.addEventListener("test",_,e),v.removeEventListener("test",_,e)}catch(n){}return t}();function cr(t,e){this.type=t,this.f=this.target=e,this.h=!1,this.sb=!0}function lr(t,e){if(cr.call(this,t?t.type:""),this.relatedTarget=this.f=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.j=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.f=e,e=t.relatedTarget){if(ge){t:{try{ce(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.keyCode=t.keyCode||0,this.key=t.key||"",this.j=t.charCode||("keypress"==n?t.keyCode:0),this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=m(t.pointerType)?t.pointerType:hr[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}cr.prototype.stopPropagation=function(){this.h=!0},cr.prototype.preventDefault=function(){this.sb=!1},j(lr,cr);var hr=or({2:"touch",3:"pen",4:"mouse"});lr.prototype.stopPropagation=function(){lr.K.stopPropagation.call(this),this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0},lr.prototype.preventDefault=function(){lr.K.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,sr)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var fr="closure_listenable_"+(1e6*Math.random()|0),pr=0;function dr(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.La=i,this.key=++pr,this.sa=this.Ha=!1}function vr(t){t.sa=!0,t.listener=null,t.proxy=null,t.src=null,t.La=null}function gr(t){this.src=t,this.a={},this.f=0}function mr(t,e){var n=e.type;n in t.a&&Q(t.a[n],e)&&(vr(e),0==t.a[n].length&&(delete t.a[n],t.f--))}function yr(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.sa&&o.listener==e&&o.capture==!!n&&o.La==r)return i}return-1}gr.prototype.add=function(t,e,n,r,i){var o=t.toString();t=this.a[o],t||(t=this.a[o]=[],this.f++);var a=yr(t,e,r,i);return-1<a?(e=t[a],n||(e.Ha=!1)):(e=new dr(e,this.src,o,!!r,i),e.Ha=n,t.push(e)),e};var br="closure_lm_"+(1e6*Math.random()|0),_r={};function wr(t,e,n,r,i){if(r&&r.once)return Tr(t,e,n,r,i);if(I(e)){for(var o=0;o<e.length;o++)wr(t,e[o],n,r,i);return null}return n=Rr(n),t&&t[fr]?t.H.add(String(e),n,!1,C(r)?!!r.capture:!!r,i):Er(t,e,n,!1,r,i)}function Er(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=C(i)?!!i.capture:!!i,s=xr(t);if(s||(t[br]=s=new gr(t)),n=s.add(e,n,r,a,o),n.proxy)return n;if(r=Ir(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)ur||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(Ar(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return 0,n}function Ir(){var t=Or,e=ar?function(n){return t.call(e.src,e.listener,n)}:function(n){if(n=t.call(e.src,e.listener,n),!n)return n};return e}function Tr(t,e,n,r,i){if(I(e)){for(var o=0;o<e.length;o++)Tr(t,e[o],n,r,i);return null}return n=Rr(n),t&&t[fr]?t.H.add(String(e),n,!0,C(r)?!!r.capture:!!r,i):Er(t,e,n,!0,r,i)}function Sr(t,e,n,r,i){if(I(e))for(var o=0;o<e.length;o++)Sr(t,e[o],n,r,i);else r=C(r)?!!r.capture:!!r,n=Rr(n),t&&t[fr]?(t=t.H,e=String(e).toString(),e in t.a&&(o=t.a[e],n=yr(o,n,r,i),-1<n&&(vr(o[n]),Y(o,n),0==o.length&&(delete t.a[e],t.f--)))):t&&(t=xr(t))&&(e=t.a[e.toString()],t=-1,e&&(t=yr(e,n,r,i)),(n=-1<t?e[t]:null)&&Cr(n))}function Cr(t){if("number"!=typeof t&&t&&!t.sa){var e=t.src;if(e&&e[fr])mr(e.H,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(Ar(n),r):e.addListener&&e.removeListener&&e.removeListener(r),0,(n=xr(e))?(mr(n,t),0==n.f&&(n.src=null,e[br]=null)):vr(t)}}}function Ar(t){return t in _r?_r[t]:_r[t]="on"+t}function Nr(t,e,n,r){var i=!0;if((t=xr(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.sa&&(o=kr(o,r),i=i&&!1!==o)}return i}function kr(t,e){var n=t.listener,r=t.La||t.src;return t.Ha&&Cr(t),n.call(r,e)}function Or(t,e){if(t.sa)return!0;
129if(!ar){if(!e)t:{e=["window","event"];for(var n=v,r=0;r<e.length;r++)if(n=n[e[r]],null==n){e=null;break t}e=n}if(r=e,e=new lr(r,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(a){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.f;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;!e.h&&0<=i;i--){e.f=r[i];var o=Nr(r[i],t,!0,e);n=n&&o}for(i=0;!e.h&&i<r.length;i++)e.f=r[i],o=Nr(r[i],t,!1,e),n=n&&o}return n}return kr(t,new lr(e,this))}function xr(t){return t=t[br],t instanceof gr?t:null}var Dr="__closure_events_fn_"+(1e9*Math.random()>>>0);function Rr(t){return S(t)?t:(t[Dr]||(t[Dr]=function(e){return t.handleEvent(e)}),t[Dr])}function Pr(){tr.call(this),this.H=new gr(this),this.yb=this,this.Fa=null}function Lr(t,e){var n,r=t.Fa;if(r)for(n=[];r;r=r.Fa)n.push(r);if(t=t.yb,r=e.type||e,m(e))e=new cr(e,t);else if(e instanceof cr)e.target=e.target||t;else{var i=e;e=new cr(r,t),gt(e,i)}if(i=!0,n)for(var o=n.length-1;!e.h&&0<=o;o--){var a=e.f=n[o];i=Mr(a,r,!0,e)&&i}if(e.h||(a=e.f=t,i=Mr(a,r,!0,e)&&i,e.h||(i=Mr(a,r,!1,e)&&i)),n)for(o=0;!e.h&&o<n.length;o++)a=e.f=n[o],i=Mr(a,r,!1,e)&&i;return i}function Mr(t,e,n,r){if(e=t.H.a[String(e)],!e)return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.sa&&a.capture==n){var s=a.listener,u=a.La||a.src;a.Ha&&mr(t.H,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.sb}j(Pr,tr),Pr.prototype[fr]=!0,Pr.prototype.$a=function(t){this.Fa=t},Pr.prototype.removeEventListener=function(t,e,n,r){Sr(this,t,e,n,r)},Pr.prototype.s=function(){if(Pr.K.s.call(this),this.H){var t,e=this.H;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)0,vr(n[r]);delete e.a[t],e.f--}}this.Fa=null};var jr={},Fr=0;function Ur(t,e){if(!t)throw Error("Event target element must be provided!");if(t=Br(t),jr[t]&&jr[t].length)for(var n=0;n<jr[t].length;n++)Lr(jr[t][n],e)}function Vr(t){var e=Br(t.P());jr[e]&&jr[e].length&&(X(jr[e],function(e){return e==t}),jr[e].length||delete jr[e])}function Br(t){return"undefined"===typeof t.a&&(t.a=Fr,Fr++),t.a}function qr(t){if(!t)throw Error("Event target element must be provided!");Pr.call(this),this.a=t}function Hr(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(e){return!1}}function Wr(t,e){this.h=t,this.j=e,this.f=0,this.a=null}function Gr(t,e){t.j(e),100>t.f&&(t.f++,e.next=t.a,t.a=e)}function Kr(){this.f=this.a=null}c(qr,Pr),qr.prototype.P=function(){return this.a},qr.prototype.register=function(){var t=Br(this.P());jr[t]?$(jr[t],this)||jr[t].push(this):jr[t]=[this]},Wr.prototype.get=function(){if(0<this.f){this.f--;var t=this.a;this.a=t.next,t.next=null}else t=this.h();return t};var zr,$r,Qr=new Wr(function(){return new Xr},function(t){t.reset()});function Yr(){var t=ri,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.f=null),e.next=null),e}function Xr(){this.next=this.f=this.a=null}function Jr(t){v.setTimeout(function(){throw t},0)}function Zr(){var t=v.MessageChannel;if("undefined"===typeof t&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!se("Presto")&&(t=function(){var t=document.createElement("IFRAME");t.style.display="none",t.src="",document.documentElement.appendChild(t);var e=t.contentWindow;t=e.document,t.open(),t.write(""),t.close();var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=x(function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),"undefined"!==typeof t&&!se("Trident")&&!se("MSIE")){var e=new t,n={},r=n;return e.port1.onmessage=function(){if(g(n.next)){n=n.next;var t=n.hb;n.hb=null,t()}},function(t){r.next={hb:t},r=r.next,e.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(t){var e=document.createElement("SCRIPT");e.onreadystatechange=function(){e.onreadystatechange=null,e.parentNode.removeChild(e),e=null,t(),t=null},document.documentElement.appendChild(e)}:function(t){v.setTimeout(t,0)}}function ti(t,e){$r||ei(),ni||($r(),ni=!0),ri.add(t,e)}function ei(){if(v.Promise&&v.Promise.resolve){var t=v.Promise.resolve(void 0);$r=function(){t.then(ii)}}else $r=function(){var t=ii;!S(v.setImmediate)||v.Window&&v.Window.prototype&&!se("Edge")&&v.Window.prototype.setImmediate==v.setImmediate?(zr||(zr=Zr()),zr(t)):v.setImmediate(t)}}Kr.prototype.add=function(t,e){var n=Qr.get();n.set(t,e),this.f?this.f.next=n:this.a=n,this.f=n},Xr.prototype.set=function(t,e){this.a=t,this.f=e,this.next=null},Xr.prototype.reset=function(){this.next=this.f=this.a=null};var ni=!1,ri=new Kr;function ii(){for(var t;t=Yr();
129){try{t.a.call(t.f)}catch(e){Jr(e)}Gr(Qr,t)}ni=!1}function oi(t){if(this.a=ai,this.w=void 0,this.j=this.f=this.h=null,this.m=this.i=!1,t!=_)try{var e=this;t.call(void 0,function(t){mi(e,si,t)},function(t){if(!(t instanceof Si))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(n){}mi(e,ui,t)})}catch(n){mi(this,ui,n)}}var ai=0,si=2,ui=3;function ci(){this.next=this.context=this.f=this.j=this.a=null,this.h=!1}ci.prototype.reset=function(){this.context=this.f=this.j=this.a=null,this.h=!1};var li=new Wr(function(){return new ci},function(t){t.reset()});function hi(t,e,n){var r=li.get();return r.j=t,r.f=e,r.context=n,r}function fi(t){if(t instanceof oi)return t;var e=new oi(_);return mi(e,si,t),e}function pi(t){return new oi(function(e,n){n(t)})}function di(t,e){if(t.a==ai)if(t.h){var n=t.h;if(n.f){for(var r=0,i=null,o=null,a=n.f;a&&(a.h||(r++,a.a==t&&(i=a),!(i&&1<r)));a=a.next)i||(o=a);i&&(n.a==ai&&1==r?di(n,e):(o?(r=o,r.next==n.j&&(n.j=r),r.next=r.next.next):_i(n),wi(n,i,ui,e)))}t.h=null}else mi(t,ui,e)}function vi(t,e){t.f||t.a!=si&&t.a!=ui||bi(t),t.j?t.j.next=e:t.f=e,t.j=e}function gi(t,e,n,r){var i=hi(null,null,null);return i.a=new oi(function(t,o){i.j=e?function(n){try{var i=e.call(r,n);t(i)}catch(a){o(a)}}:t,i.f=n?function(e){try{var i=n.call(r,e);!g(i)&&e instanceof Si?o(e):t(i)}catch(a){o(a)}}:o}),i.a.h=t,vi(t,i),i.a}function mi(t,e,n){if(t.a==ai){t===n&&(e=ui,n=new TypeError("Promise cannot resolve to itself")),t.a=1;t:{var r=n,i=t.gc,o=t.hc;if(r instanceof oi){vi(r,hi(i||_,o||null,t));var a=!0}else if(Hr(r))r.then(i,o,t),a=!0;else{if(C(r))try{var s=r.then;if(S(s)){yi(r,s,i,o,t),a=!0;break t}}catch(u){o.call(t,u),a=!0;break t}a=!1}}a||(t.w=n,t.a=e,t.h=null,bi(t),e!=ui||n instanceof Si||Ii(t,n))}}function yi(t,e,n,r,i){function o(t){s||(s=!0,r.call(i,t))}function a(t){s||(s=!0,n.call(i,t))}var s=!1;try{e.call(t,a,o)}catch(u){o(u)}}function bi(t){t.i||(t.i=!0,ti(t.Gb,t))}function _i(t){var e=null;return t.f&&(e=t.f,t.f=e.next,e.next=null),t.f||(t.j=null),e}function wi(t,e,n,r){if(n==ui&&e.f&&!e.h)for(;t&&t.m;t=t.h)t.m=!1;if(e.a)e.a.h=null,Ei(e,n,r);else try{e.h?e.j.call(e.context):Ei(e,n,r)}catch(i){Ti.call(null,i)}Gr(li,e)}function Ei(t,e,n){e==si?t.j.call(t.context,n):t.f&&t.f.call(t.context,n)}function Ii(t,e){t.m=!0,ti(function(){t.m&&Ti.call(null,e)})}oi.prototype.then=function(t,e,n){return gi(this,S(t)?t:null,S(e)?e:null,n)},oi.prototype.$goog_Thenable=!0,e=oi.prototype,e.ec=function(t,e){return t=hi(t,t,e),t.h=!0,vi(this,t),this},e.ta=function(t,e){return gi(this,null,t,e)},e.cancel=function(t){this.a==ai&&ti(function(){var e=new Si(t);di(this,e)},this)},e.gc=function(t){this.a=ai,mi(this,si,t)},e.hc=function(t){this.a=ai,mi(this,ui,t)},e.Gb=function(){for(var t;t=_i(this);)wi(this,t,this.a,this.w);this.i=!1};var Ti=Jr;function Si(t){F.call(this,t)}function Ci(t,e,n){e||(e={}),n=n||window;var r=t instanceof Me?t:Ve("undefined"!=typeof t.href?t.href:String(t));t=e.target||t.target;var i=[];for(o in e)switch(o){case"width":case"height":case"top":case"left":i.push(o+"="+e[o]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(o+"="+(e[o]?1:0))}var o=i.join(",");return(se("iPhone")&&!se("iPod")&&!se("iPad")||se("iPad")||se("iPod"))&&n.navigator&&n.navigator.standalone&&t&&"_self"!=t?(o=n.document.createElement("A"),r instanceof Me||r instanceof Me||(r="object"==typeof r&&r.ma?r.ka():String(r),Ue.test(r)||(r="about:invalid#zClosurez"),r=qe(r)),o.href=Fe(r),o.setAttribute("target",t),e.noreferrer&&o.setAttribute("rel","noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,n,1),o.dispatchEvent(e),n={}):e.noreferrer?(n=n.open("",t,o),e=je(r),n&&(ve&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),n.opener=null,e=$e('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ft(e)+'">',null),n.document.write(Ke(e)),n.document.close())):(n=n.open(je(r),t,o))&&e.noopener&&(n.opener=null),n}function Ai(t){window.location.assign(je(Ve(t)))}function Ni(){try{return!!(window.opener&&window.opener.location&&window.opener.location.assign&&window.opener.location.hostname===window.location.hostname&&window.opener.location.protocol===window.location.protocol)}catch(t){}return!1}function ki(t){Ci(t,{target:window.cordova&&window.cordova.InAppBrowser?"_system":"_blank"},void 0)}function Oi(t,e){if(t=C(t)&&1==t.nodeType?t:document.querySelector(String(t)),null==t)throw Error(e||"Cannot find element.");return t}function xi(){return window.location.href}function Di(){var t=null;return new oi(function(e){"complete"==v.document.readyState?e():(t=function(){e()},Tr(window,"load",t))}).ta(function(e){throw Sr(window,"load",t),e})}function Ri(){for(var t=32,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}function Pi(t,e,n){return n=void 0===n?{}:n,Object.keys(t).filter(function(t){return e.includes(t)}).reduce(function(e,n){return e[n]=t[n],e},n)}function Li(t){var e=zi;this.m=[],this.N=e,this.M=t||null,this.j=this.a=!1,this.h=void 0,this.H=this.l=this.w=!1,this.i=0,this.f=null,this.C=0}function Mi(t,e,n){t.a=!0,t.h=n,t.j=!e,Vi(t)}function ji(t){if(t.a){if(!t.H)throw new Bi(t);t.H=!1}}function Fi(t,e,n){t.m.push([e,n,void 0]),t.a&&Vi(t)}function Ui(t){return K(t.m,function(t){return S(t[1])})}function Vi(t){if(t.i&&t.a&&Ui(t)){var e=t.i,n=Wi[e];
129n&&(v.clearTimeout(n.a),delete Wi[e]),t.i=0}t.f&&(t.f.C--,delete t.f),e=t.h;for(var r=n=!1;t.m.length&&!t.w;){var i=t.m.shift(),o=i[0],a=i[1];if(i=i[2],o=t.j?a:o)try{var s=o.call(i||t.M,e);g(s)&&(t.j=t.j&&(s==e||s instanceof Error),t.h=e=s),(Hr(e)||"function"===typeof v.Promise&&e instanceof v.Promise)&&(r=!0,t.w=!0)}catch(u){e=u,t.j=!0,Ui(t)||(n=!0)}}t.h=e,r&&(s=x(t.J,t,!0),r=x(t.J,t,!1),e instanceof Li?(Fi(e,s,r),e.l=!0):e.then(s,r)),n&&(e=new Hi(e),Wi[e.a]=e,t.i=e.a)}function Bi(){F.call(this)}function qi(){F.call(this)}function Hi(t){this.a=v.setTimeout(x(this.h,this),0),this.f=t}j(Si,F),Si.prototype.name="cancel",Li.prototype.cancel=function(t){if(this.a)this.h instanceof Li&&this.h.cancel();else{if(this.f){var e=this.f;delete this.f,t?e.cancel(t):(e.C--,0>=e.C&&e.cancel())}this.N?this.N.call(this.M,this):this.H=!0,this.a||(t=new qi(this),ji(this),Mi(this,!1,t))}},Li.prototype.J=function(t,e){this.w=!1,Mi(this,t,e)},Li.prototype.then=function(t,e,n){var r,i,o=new oi(function(t,e){r=t,i=e});return Fi(this,r,function(t){t instanceof qi?o.cancel():i(t)}),o.then(t,e,n)},Li.prototype.$goog_Thenable=!0,j(Bi,F),Bi.prototype.message="Deferred has already fired",Bi.prototype.name="AlreadyCalledError",j(qi,F),qi.prototype.message="Deferred was canceled",qi.prototype.name="CanceledError",Hi.prototype.h=function(){throw delete Wi[this.a],this.f};var Wi={};function Gi(t){var e={},n=e.document||document,r=Re(t).toString(),i=document.createElement("SCRIPT"),o={tb:i,ub:void 0},a=new Li(o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0<u&&(s=window.setTimeout(function(){$i(i,!0);var t=new Xi(Yi,"Timeout reached for loading script "+r);ji(a),Mi(a,!1,t)},u),o.ub=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||($i(i,e.wc||!1,s),ji(a),Mi(a,!0,null))},i.onerror=function(){$i(i,!0,s);var t=new Xi(Qi,"Error while loading script "+r);ji(a),Mi(a,!1,t)},o=e.attributes||{},gt(o,{type:"text/javascript",charset:"UTF-8"}),on(i,o),Xe(i,t),Ki(n).appendChild(i),a}function Ki(t){var e=(t||document).getElementsByTagName("HEAD");return e&&0!=e.length?e[0]:t.documentElement}function zi(){if(this&&this.tb){var t=this.tb;t&&"SCRIPT"==t.tagName&&$i(t,!0,this.ub)}}function $i(t,e,n){null!=n&&v.clearTimeout(n),t.onload=_,t.onerror=_,t.onreadystatechange=_,e&&window.setTimeout(function(){un(t)},0)}var Qi=0,Yi=1;function Xi(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),F.call(this,n),this.code=t}function Ji(t){this.a=t||v.googleyolo,this.f=null,this.h=!1}function Zi(t,e,n){if(t.a&&e){var r=function(){t.h=!0;var r=Promise.resolve(null);return n||(r=t.a.retrieve(e).catch(function(t){if(t.type===no||t.type===eo)throw t;return null})),r.then(function(n){return n||t.a.hint(e)}).catch(function(r){if(r.type===no)t.f=Promise.resolve();else if(r.type===eo)return t.cancel(),Zi(t,e,n);return null})};return t.f?t.f.then(r):r()}if(e)return r=ro.Ya().load().then(function(){return t.a=v.googleyolo,Zi(t,e,n)}).ta(function(){return null}),Promise.resolve(r);if("undefined"!==typeof Promise)return Promise.resolve(null);throw Error("One-Tap sign in not supported in the current browser!")}j(Xi,F),Ji.prototype.cancel=function(){this.a&&this.h&&(this.f=this.a.cancelLastOperation().catch(function(){}))},w(Ji);var to=new Ne(xe,"https://smartlock.google.com/client"),eo="illegalConcurrentRequest",no="userCanceled";function ro(){this.a=null}function io(t,e){this.a=t,this.f=e||function(t){throw t}}function oo(t,e,n){this.reset(t,e,n,void 0,void 0)}ro.prototype.load=function(){var t=this;if(this.a)return this.a;var e=Le(ke(to));return v.googleyolo?fi():this.a=Di().then(function(){if(!v.googleyolo)return new oi(function(n,r){var i=setTimeout(function(){t.a=null,r(Error("Network error!"))},1e4);v.onGoogleYoloLoad=function(){clearTimeout(i),n()},fi(Gi(e)).ta(function(e){clearTimeout(i),t.a=null,r(e)})})})},w(ro),io.prototype.confirm=function(t){return fi(this.a.confirm(t)).ta(this.f)},oo.prototype.a=null;function ao(t){this.m=t,this.a=this.h=this.j=this.f=null}function so(t,e){this.name=t,this.value=e}oo.prototype.reset=function(t,e,n,r,i){"number"==typeof i||0,this.h=r||L(),this.j=t,this.m=e,this.f=n,delete this.a},so.prototype.toString=function(){return this.name};var uo=new so("SEVERE",1e3),co=new so("WARNING",900),lo=new so("CONFIG",700);function ho(t){return t.j?t.j:t.f?ho(t.f):(V("Root logger has no level set."),null)}ao.prototype.log=function(t,e,n){if(t.value>=ho(this).value)for(S(e)&&(e=e()),t=new oo(t,String(e),this.m),n&&(t.a=n),n=this;n;){var r=n,i=t;if(r.a)for(var o=0;e=r.a[o];o++)e(i);n=n.f}};var fo={},po=null;function vo(){po||(po=new ao(""),fo[""]=po,po.j=lo)}function go(t){var e;if(vo(),!(e=fo[t])){e=new ao(t);var n=t.lastIndexOf("."),r=t.substr(n+1);n=go(t.substr(0,n)),n.h||(n.h={}),n.h[r]=e,e.f=n,fo[t]=e}return e}function mo(){this.a=L()}var yo=null;function bo(t){this.j=t||"",yo||(yo=new mo),this.m=yo}function _o(t){return 10>t?"0"+t:String(t)}function wo(t,e){t=(t.h-e)/1e3,e=t.toFixed(3);var n=0;if(1>t)n=2;else for(;100>t;)n++,t*=10;for(;0<n--;)e=" "+e;return e}function Eo(t){bo.call(this,t)}function Io(t,e){var n=[];if(n.push(t.j," "),t.f){var r=new Date(e.h);n.push("[",_o(r.getFullYear()-2e3)+_o(r.getMonth()+1)+_o(r.getDate())+" "+_o(r.getHours())+":"+_o(r.getMinutes())+":"+_o(r.getSeconds())+"."+_o(Math.floor(r.getMilliseconds()/10)),"] ")}return n.push("[",wo(e,t.m.get()),"s] "),n.push("[",e.f,"] "),n.push(e.m),t.h&&(e=e.a)&&n.push("\n",e instanceof Error?e.message:e.toString()),t.a&&n.push("\n"),n.join("")}function To(){this.m=x(this.h,this),this.a=new Eo,this.a.f=!1,this.a.h=!1,this.f=this.a.a=!1,this.j={}}mo.prototype.set=function(t){this.a=t},mo.prototype.reset=function(){this.set(L())},mo.prototype.get=function(){return this.a},bo.prototype.a=!0,bo.prototype.f=!0,bo.prototype.h=!1,j(Eo,bo),To.prototype.h=function(t){function e(t){if(t){if(t.value>=uo.value)return"error";if(t.value>=co.value)return"warn";if(t.value>=lo.value)return"log"}return"debug"}if(!this.j[t.f]){var n=Io(this.a,t),r=Co;if(r){var i=e(t.j);Ao(r,i,n,t.a)}}};var So,Co=v.console;function Ao(t,e,n,r){t[e]?t[e](n,r||""):t.log(n,r||"")}function No(t,e){var n=So;n&&n.log(uo,t,e)}So=go("firebaseui");var ko=new To;if(1!=ko.f){var Oo;vo(),Oo=po;var xo=ko.m;Oo.a||(Oo.a=[]),Oo.a.push(xo),ko.f=!0}function Do(t){var e=So;e&&e.log(co,t,void 0)}function Ro(t,e,n,r){this.a=t,this.h=e||null,this.j=n||null,this.f=r||null}function Po(t){return t.email?new Ro(t.email,t.displayName,t.photoUrl,t.providerId):null}
129function Lo(){this.a=("undefined"==typeof document?null:document)||{cookie:""}}function Mo(t){t=(t.a.cookie||"").split(";");for(var e,n,r=[],i=[],o=0;o<t.length;o++)n=rt(t[o]),e=n.indexOf("="),-1==e?(r.push(""),i.push(n)):(r.push(n.substring(0,e)),i.push(n.substring(e+1)));return{keys:r,values:i}}Ro.prototype.aa=function(){return{email:this.a,displayName:this.h,photoUrl:this.j,providerId:this.f}},e=Lo.prototype,e.set=function(t,e,n,r,i,o){if(/[;=\s]/.test(t))throw Error('Invalid cookie name "'+t+'"');if(/[;\r\n]/.test(e))throw Error('Invalid cookie value "'+e+'"');g(n)||(n=-1),i=i?";domain="+i:"",r=r?";path="+r:"",o=o?";secure":"",n=0>n?"":0==n?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(L()+1e3*n).toUTCString(),this.a.cookie=t+"="+e+i+r+n+o},e.get=function(t,e){for(var n,r=t+"=",i=(this.a.cookie||"").split(";"),o=0;o<i.length;o++){if(n=rt(i[o]),0==n.lastIndexOf(r,0))return n.substr(r.length);if(n==t)return""}return e},e.ja=function(){return Mo(this).keys},e.la=function(){return Mo(this).values},e.clear=function(){for(var t=Mo(this).keys,e=t.length-1;0<=e;e--){var n=t[e];this.get(n),this.set(n,"",0,void 0,void 0)}};var jo=new Lo;function Fo(){}function Uo(t,e,n,r){this.h="undefined"!==typeof t&&null!==t?t:-1,this.f=e||null,this.a=n||null,this.j=!!r}function Vo(t,e){this.f=t,this.a=e||null}function Bo(t){if(t&&t.email){var e=t.credential&&r["auth"].AuthCredential.fromJSON(t.credential);return new Vo(t.email,e)}return null}function qo(t){this.a=t||null}function Ho(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);255<i&&(e[n++]=255&i,i>>=8),e[n++]=i}return e}function Wo(t){return G(t,function(t){return t=t.toString(16),1<t.length?t:"0"+t}).join("")}function Go(t){for(this.i=t,this.f=this.i.length/4,this.j=this.f+6,this.h=[[],[],[],[]],this.m=[[],[],[],[]],this.a=Array(Ko*(this.j+1)),t=0;t<this.f;t++)this.a[t]=[this.i[4*t],this.i[4*t+1],this.i[4*t+2],this.i[4*t+3]];var e=Array(4);for(t=this.f;t<Ko*(this.j+1);t++){if(e[0]=this.a[t-1][0],e[1]=this.a[t-1][1],e[2]=this.a[t-1][2],e[3]=this.a[t-1][3],0==t%this.f){var n=e,r=n[0];n[0]=n[1],n[1]=n[2],n[2]=n[3],n[3]=r,Zo(e),e[0]^=na[t/this.f][0],e[1]^=na[t/this.f][1],e[2]^=na[t/this.f][2],e[3]^=na[t/this.f][3]}else 6<this.f&&4==t%this.f&&Zo(e);this.a[t]=Array(4),this.a[t][0]=this.a[t-this.f][0]^e[0],this.a[t][1]=this.a[t-this.f][1]^e[1],this.a[t][2]=this.a[t-this.f][2]^e[2],this.a[t][3]=this.a[t-this.f][3]^e[3]}}c(Uo,Fo),Uo.prototype.set=function(t,e){jo.set(t,e,this.h,this.f,this.a,this.j)},Uo.prototype.get=function(t){return jo.get(t)||null},Uo.prototype.ra=function(t){var e=this.f,n=this.a;jo.get(t),jo.set(t,"",0,e,n)},Vo.prototype.aa=function(){return{email:this.f,credential:this.a&&this.a.toJSON()}},qo.prototype.aa=function(){return{tenantId:this.a}},Go.prototype.w=16;var Ko=Go.prototype.w/4;function zo(t,e){for(var n,r=0;r<Ko;r++)for(var i=0;4>i;i++)n=4*i+r,n=e[n],t.h[r][i]=n}function $o(t){for(var e=[],n=0;n<Ko;n++)for(var r=0;4>r;r++)e[4*r+n]=t.h[n][r];return e}function Qo(t,e){for(var n=0;4>n;n++)for(var r=0;4>r;r++)t.h[n][r]^=t.a[4*e+r][n]}function Yo(t,e){for(var n=0;4>n;n++)for(var r=0;4>r;r++)t.h[n][r]=e[t.h[n][r]]}function Xo(t){for(var e=1;4>e;e++)for(var n=0;4>n;n++)t.m[e][n]=t.h[e][n];for(e=1;4>e;e++)for(n=0;4>n;n++)t.h[e][n]=t.m[e][(n+e)%Ko]}function Jo(t){for(var e=1;4>e;e++)for(var n=0;4>n;n++)t.m[e][(n+e)%Ko]=t.h[e][n];for(e=1;4>e;e++)for(n=0;4>n;n++)t.h[e][n]=t.m[e][n]}function Zo(t){t[0]=ta[t[0]],t[1]=ta[t[1]],t[2]=ta[t[2]],t[3]=ta[t[3]]}var ta=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,23
1291,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],ea=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],na=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],ra=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],ia=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],oa=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],aa=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],sa=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,163,128,141,154,151],ua=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,
129181,159,145,131,141];function ca(t,e){t=new Go(ha(t)),e=Ho(e);for(var n,r=et(e,0,16),i="";r.length;){n=16-r.length;for(var o=0;o<n;o++)r.push(0);for(n=t,zo(n,r),Qo(n,0),r=1;r<n.j;++r){Yo(n,ta),Xo(n),o=n.h;for(var a=n.m[0],s=0;4>s;s++)a[0]=o[0][s],a[1]=o[1][s],a[2]=o[2][s],a[3]=o[3][s],o[0][s]=ra[a[0]]^ia[a[1]]^a[2]^a[3],o[1][s]=a[0]^ra[a[1]]^ia[a[2]]^a[3],o[2][s]=a[0]^a[1]^ra[a[2]]^ia[a[3]],o[3][s]=ia[a[0]]^a[1]^a[2]^ra[a[3]];Qo(n,r)}Yo(n,ta),Xo(n),Qo(n,n.j),i+=Wo($o(n)),r=et(e,0,16)}return i}function la(t,e){t=new Go(ha(t));for(var n=[],r=0;r<e.length;r+=2)n.push(parseInt(e.substring(r,r+2),16));var i=et(n,0,16);for(e="";i.length;){for(r=t,zo(r,i),Qo(r,r.j),i=1;i<r.j;++i){Jo(r),Yo(r,ea),Qo(r,r.j-i);for(var o=r.h,a=r.m[0],s=0;4>s;s++)a[0]=o[0][s],a[1]=o[1][s],a[2]=o[2][s],a[3]=o[3][s],o[0][s]=ua[a[0]]^aa[a[1]]^sa[a[2]]^oa[a[3]],o[1][s]=oa[a[0]]^ua[a[1]]^aa[a[2]]^sa[a[3]],o[2][s]=sa[a[0]]^oa[a[1]]^ua[a[2]]^aa[a[3]],o[3][s]=aa[a[0]]^sa[a[1]]^oa[a[2]]^ua[a[3]]}if(Jo(r),Yo(r,ea),Qo(r,0),r=$o(r),8192>=r.length)r=String.fromCharCode.apply(null,r);else{for(i="",o=0;o<r.length;o+=8192)i+=String.fromCharCode.apply(null,nt(r,o,o+8192));r=i}e+=r,i=et(n,0,16)}return e.replace(/(\x00)+$/,"")}function ha(t){t=Ho(t.substring(0,32));for(var e=32-t.length,n=0;n<e;n++)t.push(0);return t}function fa(t){var e=[];return da(new pa,t,e),e.join("")}function pa(){}function da(t,e,n){if(null==e)n.push("null");else{if("object"==typeof e){if(I(e)){var r=e;e=r.length,n.push("[");for(var i="",o=0;o<e;o++)n.push(i),da(t,r[o],n),i=",";return void n.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(r in n.push("{"),i="",e)Object.prototype.hasOwnProperty.call(e,r)&&(o=e[r],"function"!=typeof o&&(n.push(i),ma(r,n),n.push(":"),da(t,o,n),i=","));return void n.push("}")}e=e.valueOf()}switch(typeof e){case"string":ma(e,n);break;case"number":n.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":n.push(String(e));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}var va={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ga=/\uffff/.test("ï¿¿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ma(t,e){e.push('"',t.replace(ga,function(t){var e=va[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),va[t]=e),e}),'"')}function ya(t){this.a=t}function ba(){}function _a(t){this.a=t}function wa(t){if(!t.a)return!1;try{return t.a.setItem("__sak","1"),t.a.removeItem("__sak"),!0}catch(e){return!1}}function Ea(){var t=null;try{t=window.localStorage||null}catch(e){}this.a=t}function Ia(){var t=null;try{t=window.sessionStorage||null}catch(e){}this.a=t}function Ta(t,e){this.f=t,this.a=e+"::"}ya.prototype.set=function(t,e){g(e)?this.a.set(t,fa(e)):this.a.ra(t)},ya.prototype.get=function(t){try{var e=this.a.get(t)}catch(n){return}if(null!==e)try{return JSON.parse(e)}catch(r){throw"Storage: Invalid value was encountered"}},j(ba,Fo),ba.prototype.clear=function(){var t=wt(this.ha(!0)),e=this;q(t,function(t){e.ra(t)})},j(_a,ba),e=_a.prototype,e.set=function(t,e){try{this.a.setItem(t,e)}catch(n){if(0==this.a.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded"}},e.get=function(t){if(t=this.a.getItem(t),!m(t)&&null!==t)throw"Storage mechanism: Invalid value was encountered";return t},e.ra=function(t){this.a.removeItem(t)},e.ha=function(t){var e=0,n=this.a,r=new yt;return r.next=function(){if(e>=n.length)throw mt;var r=n.key(e++);if(t)return r;if(r=n.getItem(r),!m(r))throw"Storage mechanism: Invalid value was encountered";return r},r},e.clear=function(){this.a.clear()},e.key=function(t){return this.a.key(t)},j(Ea,_a),j(Ia,_a),j(Ta,ba),Ta.prototype.set=function(t,e){this.f.set(this.a+t,e)},Ta.prototype.get=function(t){return this.f.get(this.a+t)},Ta.prototype.ra=function(t){this.f.ra(this.a+t)},Ta.prototype.ha=function(t){var e=this.f.ha(!0),n=this,r=new yt;return r.next=function(){for(var r=e.next();r.substr(0,n.a.length)!=n.a;)r=e.next();return t?r.substr(n.a.length):n.f.get(r)},r};var Sa,Ca=new Ea;Sa=wa(Ca)?new Ta(Ca,"firebaseui"):null;var Aa,Na=new ya(Sa),ka=new Ia;Aa=wa(ka)?new Ta(ka,"firebaseui"):null;var Oa=new ya(Aa),xa={name:"pendingEmailCredential",storage:Oa},Da={name:"redirectStatus",storage:Oa},Ra={name:"redirectUrl",storage:Oa},Pa={name:"rememberAccount",storage:Oa},La={name:"rememberedAccounts",storage:Na},Ma={name:"emailForSignIn",storage:new ya(new Uo(3600,"/"))},ja={name:"pendingEncryptedCredential",storage:new ya(new Uo(3600,"/"))};function Fa(t,e){return t.storage.get(e?t.name+":"+e:t.name)}function Ua(t,e){t.storage.a.ra(e?t.name+":"+e:t.name)}function Va(t,e,n){t.storage.set(n?t.name+":"+n:t.name,e)}function Ba(t){return Fa(Ra,t)||null}function qa(t,e){Va(Ra,t,e)}
129function Ha(t,e){Va(Pa,t,e)}function Wa(t){return t=Fa(La,t)||[],t=G(t,function(t){return Po(t)}),W(t,function(t){return null!=t})}function Ga(t,e){var n=Wa(e),r=z(n,function(e){return e.a==t.a&&(e.f||null)==(t.f||null)});-1<r&&Y(n,r),n.unshift(t),Va(La,G(n,function(t){return t.aa()}),e)}function Ka(t){return t=Fa(xa,t)||null,Bo(t)}function za(t){Ua(xa,t)}function $a(t,e){Va(xa,t.aa(),e)}function Qa(t){return(t=Fa(Da,t)||null)&&"undefined"!==typeof t.tenantId?new qo(t.tenantId):null}function Ya(t,e){Va(Da,t.aa(),e)}function Xa(t,e){e=Fa(Ma,e);var n=null;if(e)try{var r=la(t,e),i=JSON.parse(r);n=i&&i.email||null}catch(o){}return n}function Ja(t,e){e=Fa(ja,e);var n=null;if(e)try{var r=la(t,e);n=JSON.parse(r)}catch(i){}return Bo(n||null)}function Za(t,e,n){Va(ja,ca(t,JSON.stringify(e.aa())),n)}function ts(){this.V={}}function es(t,e,n){if(e.toLowerCase()in t.V)throw Error("Configuration "+e+" has already been defined.");t.V[e.toLowerCase()]=n}function ns(t,e,n){if(!(e.toLowerCase()in t.V))throw Error("Configuration "+e+" is not defined.");t.V[e.toLowerCase()]=n}function rs(t,e){if(t=t.get(e),!t)throw Error("Configuration "+e+" is required.");return t}function is(){this.f=void 0,this.a={}}function os(t,e,n,r){for(var i=0;i<e.length;i++){var o=e.charAt(i);t.a[o]||(t.a[o]=new is),t=t.a[o]}if(r&&void 0!==t.f)throw Error('The collection already contains the key "'+e+'"');t.f=n}function as(t,e){for(var n in void 0!==t.f&&e.push(t.f),t.a)as(t.a[n],e)}function ss(t,e,n){for(var r in void 0!==t.f&&n.push(e),t.a)ss(t.a[r],e+r,n)}function us(t){for(this.a=t,this.f=new is,t=0;t<this.a.length;t++){var e=this.f.get("+"+this.a[t].b);e?e.push(this.a[t]):this.f.add("+"+this.a[t].b,[this.a[t]])}}function cs(t,e){t=t.f;var n={},r=0;for(void 0!==t.f&&(n[r]=t.f);r<e.length;r++){var i=e.charAt(r);if(!(i in t.a))break;t=t.a[i],void 0!==t.f&&(n[r]=t.f)}for(var o in n)if(n.hasOwnProperty(o))return n[o];return[]}function ls(t){for(var e=0;e<ds.length;e++)if(ds[e].c===t)return ds[e];return null}function hs(t){t=t.toUpperCase();for(var e=[],n=0;n<ds.length;n++)ds[n].g===t&&e.push(ds[n]);return e}function fs(t){if(0<t.length&&"+"==t.charAt(0)){t=t.substring(1);for(var e=[],n=0;n<ds.length;n++)ds[n].b==t&&e.push(ds[n]);t=e}else t=hs(t);return t}function ps(t){t.sort(function(t,e){return t.name.localeCompare(e.name,"en")})}ts.prototype.get=function(t){if(!(t.toLowerCase()in this.V))throw Error("Configuration "+t+" is not defined.");return this.V[t.toLowerCase()]},e=is.prototype,e.set=function(t,e){os(this,t,e,!1)},e.add=function(t,e){os(this,t,e,!0)},e.get=function(t){t:{for(var e=this,n=0;n<t.length;n++)if(e=e.a[t.charAt(n)],!e){t=void 0;break t}t=e}return t?t.f:void 0},e.la=function(){var t=[];return as(this,t),t},e.ja=function(){var t=[];return ss(this,"",t),t},e.clear=function(){this.a={},this.f=void 0};var ds=[{name:"Afghanistan",c:"93-AF-0",b:"93",g:"AF"},{name:"Åland Islands",c:"358-AX-0",b:"358",g:"AX"},{name:"Albania",c:"355-AL-0",b:"355",g:"AL"},{name:"Algeria",c:"213-DZ-0",b:"213",g:"DZ"},{name:"American Samoa",c:"1-AS-0",b:"1",g:"AS"},{name:"Andorra",c:"376-AD-0",b:"376",g:"AD"},{name:"Angola",c:"244-AO-0",b:"244",g:"AO"},{name:"Anguilla",c:"1-AI-0",b:"1",g:"AI"},{name:"Antigua and Barbuda",c:"1-AG-0",b:"1",g:"AG"},{name:"Argentina",c:"54-AR-0",b:"54",g:"AR"},{name:"Armenia",c:"374-AM-0",b:"374",g:"AM"},{name:"Aruba",c:"297-AW-0",b:"297",g:"AW"},{name:"Ascension Island",c:"247-AC-0",b:"247",g:"AC"},{name:"Australia",c:"61-AU-0",b:"61",g:"AU"},{name:"Austria",c:"43-AT-0",b:"43",g:"AT"},{name:"Azerbaijan",c:"994-AZ-0",b:"994",g:"AZ"},{name:"Bahamas",c:"1-BS-0",b:"1",g:"BS"},{name:"Bahrain",c:"973-BH-0",b:"973",g:"BH"},{name:"Bangladesh",c:"880-BD-0",b:"880",g:"BD"},{name:"Barbados",c:"1-BB-0",b:"1",g:"BB"},{name:"Belarus",c:"375-BY-0",b:"375",g:"BY"},{name:"Belgium",c:"32-BE-0",b:"32",g:"BE"},{name:"Belize",c:"501-BZ-0",b:"501",g:"BZ"},{name:"Benin",c:"229-BJ-0",b:"229",g:"BJ"},{name:"Bermuda",c:"1-BM-0",b:"1",g:"BM"},{name:"Bhutan",c:"975-BT-0",b:"975",g:"BT"},{name:"Bolivia",c:"591-BO-0",b:"591",g:"BO"},{name:"Bosnia and Herzegovina",c:"387-BA-0",b:"387",g:"BA"}
129,{name:"Botswana",c:"267-BW-0",b:"267",g:"BW"},{name:"Brazil",c:"55-BR-0",b:"55",g:"BR"},{name:"British Indian Ocean Territory",c:"246-IO-0",b:"246",g:"IO"},{name:"British Virgin Islands",c:"1-VG-0",b:"1",g:"VG"},{name:"Brunei",c:"673-BN-0",b:"673",g:"BN"},{name:"Bulgaria",c:"359-BG-0",b:"359",g:"BG"},{name:"Burkina Faso",c:"226-BF-0",b:"226",g:"BF"},{name:"Burundi",c:"257-BI-0",b:"257",g:"BI"},{name:"Cambodia",c:"855-KH-0",b:"855",g:"KH"},{name:"Cameroon",c:"237-CM-0",b:"237",g:"CM"},{name:"Canada",c:"1-CA-0",b:"1",g:"CA"},{name:"Cape Verde",c:"238-CV-0",b:"238",g:"CV"},{name:"Caribbean Netherlands",c:"599-BQ-0",b:"599",g:"BQ"},{name:"Cayman Islands",c:"1-KY-0",b:"1",g:"KY"},{name:"Central African Republic",c:"236-CF-0",b:"236",g:"CF"},{name:"Chad",c:"235-TD-0",b:"235",g:"TD"},{name:"Chile",c:"56-CL-0",b:"56",g:"CL"},{name:"China",c:"86-CN-0",b:"86",g:"CN"},{name:"Christmas Island",c:"61-CX-0",b:"61",g:"CX"},{name:"Cocos [Keeling] Islands",c:"61-CC-0",b:"61",g:"CC"},{name:"Colombia",c:"57-CO-0",b:"57",g:"CO"},{name:"Comoros",c:"269-KM-0",b:"269",g:"KM"},{name:"Democratic Republic Congo",c:"243-CD-0",b:"243",g:"CD"},{name:"Republic of Congo",c:"242-CG-0",b:"242",g:"CG"},{name:"Cook Islands",c:"682-CK-0",b:"682",g:"CK"},{name:"Costa Rica",c:"506-CR-0",b:"506",g:"CR"},{name:"Côte d'Ivoire",c:"225-CI-0",b:"225",g:"CI"},{name:"Croatia",c:"385-HR-0",b:"385",g:"HR"},{name:"Cuba",c:"53-CU-0",b:"53",g:"CU"},{name:"Curaçao",c:"599-CW-0",b:"599",g:"CW"},{name:"Cyprus",c:"357-CY-0",b:"357",g:"CY"},{name:"Czech Republic",c:"420-CZ-0",b:"420",g:"CZ"},{name:"Denmark",c:"45-DK-0",b:"45",g:"DK"},{name:"Djibouti",c:"253-DJ-0",b:"253",g:"DJ"},{name:"Dominica",c:"1-DM-0",b:"1",g:"DM"},{name:"Dominican Republic",c:"1-DO-0",b:"1",g:"DO"},{name:"East Timor",c:"670-TL-0",b:"670",g:"TL"},{name:"Ecuador",c:"593-EC-0",b:"593",g:"EC"},{name:"Egypt",c:"20-EG-0",b:"20",g:"EG"},{name:"El Salvador",c:"503-SV-0",b:"503",g:"SV"},{name:"Equatorial Guinea",c:"240-GQ-0",b:"240",g:"GQ"},{name:"Eritrea",c:"291-ER-0",b:"291",g:"ER"},{name:"Estonia",c:"372-EE-0",b:"372",g:"EE"},{name:"Ethiopia",c:"251-ET-0",b:"251",g:"ET"},{name:"Falkland Islands [Islas Malvinas]",c:"500-FK-0",b:"500",g:"FK"},{name:"Faroe Islands",c:"298-FO-0",b:"298",g:"FO"},{name:"Fiji",c:"679-FJ-0",b:"679",g:"FJ"},{name:"Finland",c:"358-FI-0",b:"358",g:"FI"},{name:"France",c:"33-FR-0",b:"33",g:"FR"},{name:"French Guiana",c:"594-GF-0",b:"594",g:"GF"},{name:"French Polynesia",c:"689-PF-0",b:"689",g:"PF"},{name:"Gabon",c:"241-GA-0",b:"241",g:"GA"},{name:"Gambia",c:"220-GM-0",b:"220",g:"GM"},{name:"Georgia",c:"995-GE-0",b:"995",g:"GE"},{name:"Germany",c:"49-DE-0",b:"49",g:"DE"},{name:"Ghana",c:"233-GH-0",b:"233",g:"GH"},{name:"Gibraltar",c:"350-GI-0",b:"350",g:"GI"},{name:"Greece",c:"30-GR-0",b:"30",g:"GR"},{name:"Greenland",c:"299-GL-0",b:"299",g:"GL"},{name:"Grenada",c:"1-GD-0",b:"1",g:"GD"},{name:"Guadeloupe",c:"590-GP-0",b:"590",g:"GP"},{name:"Guam",c:"1-GU-0",b:"1",g:"GU"},{name:"Guatemala",c:"502-GT-0",b:"502",g:"GT"},{name:"Guernsey",c:"44-GG-0",b:"44",g:"GG"},{name:"Guinea Conakry",c:"224-GN-0",b:"224",g:"GN"},{name:"Guinea-Bissau",c:"245-GW-0",b:"245",g:"GW"},{name:"Guyana",c:"592-GY-0",b:"592",g:"GY"},{name:"Haiti",c:"509-HT-0",b:"509",g:"HT"},{name:"Heard Island and McDonald Islands",c:"672-HM-0",b:"672",g:"HM"},{name:"Honduras",c:"504-HN-0",b:"504",g:"HN"},{name:"Hong Kong",c:"852-HK-0",b:"852",g:"HK"},{name:"Hungary",c:"36-HU-0",b:"36",g:"HU"},{name:"Iceland",c:"354-IS-0",b:"354",g:"IS"},{name:"India",c:"91-IN-0",b:"91",g:"IN"},{name:"Indonesia",c:"62-ID-0",b:"62",g:"ID"},{name:"Iran",c:"98-IR-0",b:"98",g:"IR"},{name:"Iraq",c:"964-IQ-0",b:"964",g:"IQ"},{name:"Ireland",c:"353-IE-0",b:"353",g:"IE"},{name:"Isle of Man",c:"44-IM-0",b:"44",g:"IM"},{name:"Israel",c:"972-IL-0",b:"972",g:"IL"},{name:"Italy",c:"39-IT-0",b:"39",g:"IT"},{name:"Jamaica",c:"1-JM-0",b:"1",g:"JM"},{name:"Japan",c:"81-JP-0",b:"81",g:"JP"},{name:"Jersey",c:"44-JE-0",b:"44",g:"JE"},{name:"Jordan",c:"962-JO-0",b:"962",g:"JO"},{name:"Kazakhstan",c:"7-KZ-0",b:"7",g:"KZ"},{name:"Kenya",c:"254-KE-0",b:"254",g:"KE"},{name:"Kiribati",c:"686-KI-0",b:"686",g:"KI"},{name:"Kosovo",c:"377-XK-0",b:"377",g:"XK"},{name:"Kosovo",c:"381-XK-0",b:"381",g:"XK"},{name:"Kosovo",c:"386-XK-0",b:"386",g:"XK"},{name:"Kuwait",c:"965-KW-0",b:"965",g:"KW"},{name:"Kyrgyzstan",c:"996-KG-0",b:"996",g:"KG"},{name:"Laos",c:"856-LA-0",b:"856",g:"LA"},{name:"Latvia",c:"371-LV-0",b:"371",g:"LV"},{name:"Lebanon",c:"961-LB-0",b:"961",g:"LB"},{name:"Lesotho",c:"266-LS-0",b:"266",g:"LS"},{name:"Liberia",c:"231-LR-0",b:"231",g:"LR"},{name:"Libya",c:"218-LY-0",b:"218",g:"LY"},{name:"Liechtenstein",c:"423-LI-0",b:"423",g:"LI"},{name:"Lithuania",c:"370-LT-0",b:"370",g:"LT"},{name:"Luxembourg",c:"352-LU-0",b:"352",g:"LU"},{name:"Macau",c:"853-MO-0",b:"853",g:"MO"},{name:"Macedonia",c:"389-MK-0",b:"389",g:"MK"},{name:"Madagascar",c:"261-MG-0",b:"261",g:"MG"}
129,{name:"Malawi",c:"265-MW-0",b:"265",g:"MW"},{name:"Malaysia",c:"60-MY-0",b:"60",g:"MY"},{name:"Maldives",c:"960-MV-0",b:"960",g:"MV"},{name:"Mali",c:"223-ML-0",b:"223",g:"ML"},{name:"Malta",c:"356-MT-0",b:"356",g:"MT"},{name:"Marshall Islands",c:"692-MH-0",b:"692",g:"MH"},{name:"Martinique",c:"596-MQ-0",b:"596",g:"MQ"},{name:"Mauritania",c:"222-MR-0",b:"222",g:"MR"},{name:"Mauritius",c:"230-MU-0",b:"230",g:"MU"},{name:"Mayotte",c:"262-YT-0",b:"262",g:"YT"},{name:"Mexico",c:"52-MX-0",b:"52",g:"MX"},{name:"Micronesia",c:"691-FM-0",b:"691",g:"FM"},{name:"Moldova",c:"373-MD-0",b:"373",g:"MD"},{name:"Monaco",c:"377-MC-0",b:"377",g:"MC"},{name:"Mongolia",c:"976-MN-0",b:"976",g:"MN"},{name:"Montenegro",c:"382-ME-0",b:"382",g:"ME"},{name:"Montserrat",c:"1-MS-0",b:"1",g:"MS"},{name:"Morocco",c:"212-MA-0",b:"212",g:"MA"},{name:"Mozambique",c:"258-MZ-0",b:"258",g:"MZ"},{name:"Myanmar [Burma]",c:"95-MM-0",b:"95",g:"MM"},{name:"Namibia",c:"264-NA-0",b:"264",g:"NA"},{name:"Nauru",c:"674-NR-0",b:"674",g:"NR"},{name:"Nepal",c:"977-NP-0",b:"977",g:"NP"},{name:"Netherlands",c:"31-NL-0",b:"31",g:"NL"},{name:"New Caledonia",c:"687-NC-0",b:"687",g:"NC"},{name:"New Zealand",c:"64-NZ-0",b:"64",g:"NZ"},{name:"Nicaragua",c:"505-NI-0",b:"505",g:"NI"},{name:"Niger",c:"227-NE-0",b:"227",g:"NE"},{name:"Nigeria",c:"234-NG-0",b:"234",g:"NG"},{name:"Niue",c:"683-NU-0",b:"683",g:"NU"},{name:"Norfolk Island",c:"672-NF-0",b:"672",g:"NF"},{name:"North Korea",c:"850-KP-0",b:"850",g:"KP"},{name:"Northern Mariana Islands",c:"1-MP-0",b:"1",g:"MP"},{name:"Norway",c:"47-NO-0",b:"47",g:"NO"},{name:"Oman",c:"968-OM-0",b:"968",g:"OM"},{name:"Pakistan",c:"92-PK-0",b:"92",g:"PK"},{name:"Palau",c:"680-PW-0",b:"680",g:"PW"},{name:"Palestinian Territories",c:"970-PS-0",b:"970",g:"PS"},{name:"Panama",c:"507-PA-0",b:"507",g:"PA"},{name:"Papua New Guinea",c:"675-PG-0",b:"675",g:"PG"},{name:"Paraguay",c:"595-PY-0",b:"595",g:"PY"},{name:"Peru",c:"51-PE-0",b:"51",g:"PE"},{name:"Philippines",c:"63-PH-0",b:"63",g:"PH"},{name:"Poland",c:"48-PL-0",b:"48",g:"PL"},{name:"Portugal",c:"351-PT-0",b:"351",g:"PT"},{name:"Puerto Rico",c:"1-PR-0",b:"1",g:"PR"},{name:"Qatar",c:"974-QA-0",b:"974",g:"QA"},{name:"Réunion",c:"262-RE-0",b:"262",g:"RE"},{name:"Romania",c:"40-RO-0",b:"40",g:"RO"},{name:"Russia",c:"7-RU-0",b:"7",g:"RU"},{name:"Rwanda",c:"250-RW-0",b:"250",g:"RW"},{name:"Saint Barthélemy",c:"590-BL-0",b:"590",g:"BL"},{name:"Saint Helena",c:"290-SH-0",b:"290",g:"SH"},{name:"St. Kitts",c:"1-KN-0",b:"1",g:"KN"},{name:"St. Lucia",c:"1-LC-0",b:"1",g:"LC"},{name:"Saint Martin",c:"590-MF-0",b:"590",g:"MF"},{name:"Saint Pierre and Miquelon",c:"508-PM-0",b:"508",g:"PM"},{name:"St. Vincent",c:"1-VC-0",b:"1",g:"VC"},{name:"Samoa",c:"685-WS-0",b:"685",g:"WS"},{name:"San Marino",c:"378-SM-0",b:"378",g:"SM"},{name:"São Tomé and Príncipe",c:"239-ST-0",b:"239",g:"ST"},{name:"Saudi Arabia",c:"966-SA-0",b:"966",g:"SA"},{name:"Senegal",c:"221-SN-0",b:"221",g:"SN"},{name:"Serbia",c:"381-RS-0",b:"381",g:"RS"},{name:"Seychelles",c:"248-SC-0",b:"248",g:"SC"},{name:"Sierra Leone",c:"232-SL-0",b:"232",g:"SL"},{name:"Singapore",c:"65-SG-0",b:"65",g:"SG"},{name:"Sint Maarten",c:"1-SX-0",b:"1",g:"SX"},{name:"Slovakia",c:"421-SK-0",b:"421",g:"SK"},{name:"Slovenia",c:"386-SI-0",b:"386",g:"SI"},{name:"Solomon Islands",c:"677-SB-0",b:"677",g:"SB"},{name:"Somalia",c:"252-SO-0",b:"252",g:"SO"},{name:"South Africa",c:"27-ZA-0",b:"27",g:"ZA"},{name:"South Georgia and the South Sandwich Islands",c:"500-GS-0",b:"500",g:"GS"},{name:"South Korea",c:"82-KR-0",b:"82",g:"KR"},{name:"South Sudan",c:"211-SS-0",b:"211",g:"SS"},{name:"Spain",c:"34-ES-0",b:"34",g:"ES"},{name:"Sri Lanka",c:"94-LK-0",b:"94",g:"LK"},{name:"Sudan",c:"249-SD-0",b:"249",g:"SD"},{name:"Suriname",c:"597-SR-0",b:"597",g:"SR"},{name:"Svalbard and Jan Mayen",c:"47-SJ-0",b:"47",g:"SJ"},{name:"Swaziland",c:"268-SZ-0",b:"268",g:"SZ"},{name:"Sweden",c:"46-SE-0",b:"46",g:"SE"},{name:"Switzerland",c:"41-CH-0",b:"41",g:"CH"},{name:"Syria",c:"963-SY-0",b:"963",g:"SY"},{name:"Taiwan",c:"886-TW-0",b:"886",g:"TW"},{name:"Tajikistan",c:"992-TJ-0",b:"992",g:"TJ"},{name:"Tanzania",c:"255-TZ-0",b:"255",g:"TZ"},{name:"Thailand",c:"66-TH-0",b:"66",g:"TH"},{name:"Togo",c:"228-TG-0",b:"228",g:"TG"},{name:"Tokelau",c:"690-TK-0",b:"690",g:"TK"},{name:"Tonga",c:"676-TO-0",b:"676",g:"TO"}
129,{name:"Trinidad/Tobago",c:"1-TT-0",b:"1",g:"TT"},{name:"Tunisia",c:"216-TN-0",b:"216",g:"TN"},{name:"Turkey",c:"90-TR-0",b:"90",g:"TR"},{name:"Turkmenistan",c:"993-TM-0",b:"993",g:"TM"},{name:"Turks and Caicos Islands",c:"1-TC-0",b:"1",g:"TC"},{name:"Tuvalu",c:"688-TV-0",b:"688",g:"TV"},{name:"U.S. Virgin Islands",c:"1-VI-0",b:"1",g:"VI"},{name:"Uganda",c:"256-UG-0",b:"256",g:"UG"},{name:"Ukraine",c:"380-UA-0",b:"380",g:"UA"},{name:"United Arab Emirates",c:"971-AE-0",b:"971",g:"AE"},{name:"United Kingdom",c:"44-GB-0",b:"44",g:"GB"},{name:"United States",c:"1-US-0",b:"1",g:"US"},{name:"Uruguay",c:"598-UY-0",b:"598",g:"UY"},{name:"Uzbekistan",c:"998-UZ-0",b:"998",g:"UZ"},{name:"Vanuatu",c:"678-VU-0",b:"678",g:"VU"},{name:"Vatican City",c:"379-VA-0",b:"379",g:"VA"},{name:"Venezuela",c:"58-VE-0",b:"58",g:"VE"},{name:"Vietnam",c:"84-VN-0",b:"84",g:"VN"},{name:"Wallis and Futuna",c:"681-WF-0",b:"681",g:"WF"},{name:"Western Sahara",c:"212-EH-0",b:"212",g:"EH"},{name:"Yemen",c:"967-YE-0",b:"967",g:"YE"},{name:"Zambia",c:"260-ZM-0",b:"260",g:"ZM"}
129,{name:"Zimbabwe",c:"263-ZW-0",b:"263",g:"ZW"}];ps(ds);var vs=new us(ds);function gs(t,e){this.a=t,this.za=e}function ms(t){t=rt(t);var e=cs(vs,t);return 0<e.length?new gs("1"==e[0].b?"1-US-0":e[0].c,rt(t.substr(e[0].b.length+1))):null}function ys(t){var e=ls(t.a);if(!e)throw Error("Country ID "+t.a+" not found.");return"+"+e.b+t.za}function bs(t,e){for(var n=0;n<t.length;n++)if(!$(_s,t[n])&&(null!==ws&&t[n]in ws||$(e,t[n])))return t[n];return null}var _s=["emailLink","password","phone"],ws={"facebook.com":"FacebookAuthProvider","github.com":"GithubAuthProvider","google.com":"GoogleAuthProvider",password:"EmailAuthProvider","twitter.com":"TwitterAuthProvider",phone:"PhoneAuthProvider"};function Es(){this.a=new ts,es(this.a,"acUiConfig"),es(this.a,"autoUpgradeAnonymousUsers"),es(this.a,"callbacks"),es(this.a,"credentialHelper",ou),es(this.a,"immediateFederatedRedirect",!1),es(this.a,"popupMode",!1),es(this.a,"privacyPolicyUrl"),es(this.a,"queryParameterForSignInSuccessUrl","signInSuccessUrl"),es(this.a,"queryParameterForWidgetMode","mode"),es(this.a,"signInFlow"),es(this.a,"signInOptions"),es(this.a,"signInSuccessUrl"),es(this.a,"siteName"),es(this.a,"tosUrl"),es(this.a,"widgetUrl")}function Is(t){return t.a.get("acUiConfig")||null}function Ts(t){var e=t.a.get("widgetUrl")||xi();return Ss(t,e)}function Ss(t,e){t=Vs(t);for(var n,r=e.search(Nt),i=0,o=[];0<=(n=At(e,i,t,r));)o.push(e.substring(i,n)),i=Math.min(e.indexOf("&",n)+1||r,r);return o.push(e.substr(i)),e=o.join("").replace(Ot,"$1"),r="="+encodeURIComponent("select"),(t+=r)?(r=e.indexOf("#"),0>r&&(r=e.length),i=e.indexOf("?"),0>i||i>r?(i=r,n=""):n=e.substring(i+1,r),e=[e.substr(0,i),n,e.substr(r)],r=e[1],e[1]=t?r?r+"&"+t:t:r,t=e[0]+(e[1]?"?"+e[1]:"")+e[2]):t=e,t}function Cs(t){var e=!!t.a.get("autoUpgradeAnonymousUsers");return e&&!Js(t)&&No('Missing "signInFailure" callback: "signInFailure" callback needs to be provided when "autoUpgradeAnonymousUsers" is set to true.',void 0),e}function As(t){t=t.a.get("signInOptions")||[];for(var e=[],n=0;n<t.length;n++){var r=t[n];r=C(r)?r:{provider:r},r.provider&&e.push(r)}return e}function Ns(t,e){t=As(t);for(var n=0;n<t.length;n++)if(t[n].provider===e)return t[n];return null}function ks(t){return G(As(t),function(t){return t.provider})}function Os(t,e){t=xs(t);for(var n=0;n<t.length;n++)if(t[n].providerId===e)return t[n];return null}function xs(t){return G(As(t),function(t){return ws[t.provider]||$(fu,t.provider)?{providerId:t.provider}:{providerId:t.provider,rb:t.providerName||null,Ga:t.buttonColor||null,Na:t.iconUrl?je(Ve(t.iconUrl)):null,Nb:t.loginHintKey||null}})}function Ds(t){var e=[],n=[];q(As(t),function(t){t.authMethod&&(e.push(t.authMethod),t.clientId&&n.push({uri:t.authMethod,clientId:t.clientId}))});var r=null;return tu(t)===au&&e.length&&(r={supportedIdTokenProviders:n,supportedAuthMethods:e}),r}function Rs(t,e){var n=null;return q(As(t),function(t){t.authMethod===e&&(n=t.provider)}),n}function Ps(t){var e=null;if(q(As(t),function(t){t.provider==r["auth"].PhoneAuthProvider.PROVIDER_ID&&C(t.recaptchaParameters)&&!I(t.recaptchaParameters)&&(e=dt(t.recaptchaParameters))}),e){var n=[];q(pu,function(t){"undefined"!==typeof e[t]&&(n.push(t),delete e[t])}),n.length&&Do('The following provided "recaptchaParameters" keys are not allowed: '+n.join(", "))}return e}function Ls(t,e){return t=(t=Ns(t,e))&&t.scopes,I(t)?t:[]}function Ms(t,e){return t=(t=Ns(t,e))&&t.customParameters,C(t)?(t=dt(t),e===r["auth"].GoogleAuthProvider.PROVIDER_ID&&delete t.login_hint,e===r["auth"].GithubAuthProvider.PROVIDER_ID&&delete t.login,t):null}function js(t){t=Ns(t,r["auth"].PhoneAuthProvider.PROVIDER_ID);var e=null;return t&&"string"===typeof t.loginHint&&(e=ms(t.loginHint)),t&&t.defaultNationalNumber||e&&e.za||null}function Fs(t){var e=(t=Ns(t,r["auth"].PhoneAuthProvider.PROVIDER_ID))&&t.defaultCountry||null;e=e&&hs(e);var n=null;return t&&"string"===typeof t.loginHint&&(n=ms(t.loginHint)),e&&e[0]||n&&ls(n.a)||null}function Us(t){if(t=Ns(t,r["auth"].PhoneAuthProvider.PROVIDER_ID),!t)return null;var e=t.whitelistedCountries,n=t.blacklistedCountries;if("undefined"!==typeof e&&(!I(e)||0==e.length))throw Error("WhitelistedCountries must be a non-empty array.");if("undefined"!==typeof n&&!I(n))throw Error("BlacklistedCountries must be an array.");if(e&&n)throw Error("Both whitelistedCountries and blacklistedCountries are provided.");if(!e&&!n)return ds;if(t=[],e){n={};for(var i=0;i<e.length;i++)for(var o=fs(e[i]),a=0;a<o.length;a++)n[o[a].c]=o[a];for(var s in n)n.hasOwnProperty(s)&&t.push(n[s])}else{for(s={},e=0;e<n.length;e++)for(o=fs(n[e]),i=0;i<o.length;i++)s[o[i].c]=o[i];for(o=0;o<ds.length;
129o++)null!==s&&ds[o].c in s||t.push(ds[o])}return t}function Vs(t){return rs(t.a,"queryParameterForWidgetMode")}function Bs(t){var e=t.a.get("tosUrl")||null;if(t=t.a.get("privacyPolicyUrl")||null,e&&!t&&Do("Privacy Policy URL is missing, the link will not be displayed."),e&&t){if(S(e))return e;if("string"===typeof e)return function(){ki(e)}}return null}function qs(t){var e=t.a.get("tosUrl")||null,n=t.a.get("privacyPolicyUrl")||null;if(n&&!e&&Do("Term of Service URL is missing, the link will not be displayed."),e&&n){if(S(n))return n;if("string"===typeof n)return function(){ki(n)}}return null}function Hs(t){return!(t=Ns(t,r["auth"].EmailAuthProvider.PROVIDER_ID))||"undefined"===typeof t.requireDisplayName||!!t.requireDisplayName}function Ws(t){return t=Ns(t,r["auth"].EmailAuthProvider.PROVIDER_ID),!(!t||t.signInMethod!==r["auth"].EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD)}function Gs(t){return t=Ns(t,r["auth"].EmailAuthProvider.PROVIDER_ID),!(!t||!t.forceSameDevice)}function Ks(t){if(Ws(t)){var e={url:xi(),handleCodeInApp:!0};return(t=Ns(t,r["auth"].EmailAuthProvider.PROVIDER_ID))&&"function"===typeof t.emailLinkSignIn&&gt(e,t.emailLinkSignIn()),e.url=Mt(xi(),e.url).toString(),e}return null}function zs(t){var e=!!t.a.get("immediateFederatedRedirect"),n=ks(t);return t=$s(t),e&&1==n.length&&!$(_s,n[0])&&t==cu}function $s(t){for(var e in t=t.a.get("signInFlow"),lu)if(lu[e]==t)return lu[e];return cu}function Qs(t){return Zs(t).uiShown||null}function Ys(t){return Zs(t).signInSuccess||null}function Xs(t){return Zs(t).signInSuccessWithAuthResult||null}function Js(t){return Zs(t).signInFailure||null}function Zs(t){return t.a.get("callbacks")||{}}function tu(t){if("http:"!==(window.location&&window.location.protocol)&&"https:"!==(window.location&&window.location.protocol))return su;for(var e in t=t.a.get("credentialHelper"),uu)if(uu[e]==t)return uu[e];return ou}var eu,nu,ru,iu,ou="accountchooser.com",au="googleyolo",su="none",uu={jc:ou,mc:au,NONE:su},cu="redirect",lu={pc:"popup",qc:cu},hu={lc:"callback",RECOVER_EMAIL:"recoverEmail",rc:"resetPassword",sc:"select",tc:"signIn",VERIFY_EMAIL:"verifyEmail"},fu=["anonymous"],pu=["sitekey","tabindex","callback","expired-callback"],du={};function vu(t,e,n,r){du[t].apply(null,Array.prototype.slice.call(arguments,1))}var gu=null;function mu(t){return!(!t||-32e3!=t.code||"Service unavailable"!=t.message)}function yu(t,e,n,r){gu||(t={callbacks:{empty:t,select:function(t,r){t&&t.account&&e?e(Po(t.account)):n&&n(!mu(r))},store:t,update:t},language:"en",providers:void 0,ui:r},"undefined"!=typeof accountchooser&&accountchooser.Api&&accountchooser.Api.init?gu=accountchooser.Api.init(t):(gu=new _u(t),wu()))}function bu(t,e,n){function r(){var t=Mt(window.location.href,n).toString();gu.select(G(e||[],function(t){return t.aa()}),{clientCallbackUrl:t})}e&&e.length?r():gu.checkEmpty(function(e,n){e||n?t(!mu(n)):r()})}function _u(t){this.a=t,this.a.callbacks=this.a.callbacks||{}}function wu(){var t=gu;S(t.a.callbacks.empty)&&t.a.callbacks.empty()}e=_u.prototype,e.store=function(){S(this.a.callbacks.store)&&this.a.callbacks.store(void 0,Eu)},e.select=function(){S(this.a.callbacks.select)&&this.a.callbacks.select(void 0,Eu)},e.update=function(){S(this.a.callbacks.update)&&this.a.callbacks.update(void 0,Eu)},e.checkDisabled=function(t){t(!0)},e.checkEmpty=function(t){t(void 0,Eu)},e.checkAccountExist=function(t,e){e(void 0,Eu)},e.checkShouldUpdate=function(t,e){e(void 0,Eu)};var Eu={code:-32e3,message:"Service unavailable",data:"Service is unavailable."},Iu=/MSIE ([\d.]+).*Windows NT ([\d.]+)/,Tu=/Firefox\/([\d.]+)/,Su=/Opera[ \/]([\d.]+)(.*Version\/([\d.]+))?/,Cu=/Chrome\/([\d.]+)/,Au=/((Windows NT ([\d.]+))|(Mac OS X ([\d_]+))).*Version\/([\d.]+).*Safari/,Nu=/Mac OS X;.*(?!(Version)).*Safari/,ku=/Android ([\d.]+).*Safari/,Ou=/OS ([\d_]+) like Mac OS X.*Mobile.*Safari/,xu=/Konqueror\/([\d.]+)/,Du=/MSIE ([\d.]+).*Windows Phone OS ([\d.]+)/;function Ru(t,e){for(t=t.split(e||"."),this.a=[],e=0;e<t.length;e++)this.a.push(parseInt(t[e],10))}function Pu(t,e){e instanceof Ru||(e=new Ru(String(e)));for(var n=Math.max(t.a.length,e.a.length),r=0;r<n;r++){var i=t.a[r],o=e.a[r];if(void 0!==i&&void 0!==o&&i!==o)return i-o;if(void 0===i)return-1;if(void 0===o)return 1}return 0}function Lu(t,e){return 0<=Pu(t,e)}function Mu(){var t=window.navigator&&window.navigator.userAgent;if(t){var e;if(e=t.match(Su)){var n=new Ru(e[3]||e[1]);return!(0<=t.indexOf("Opera Mini"))&&(0<=t.indexOf("Opera Mobi")?0<=t.indexOf("Android")&&Lu(n,"10.
1291"):Lu(n,"8.0"))}if(e=t.match(Tu))return Lu(new Ru(e[1]),"2.0");if(e=t.match(Cu))return Lu(new Ru(e[1]),"6.0");if(e=t.match(Au))return n=new Ru(e[6]),t=e[3]&&new Ru(e[3]),e=e[5]&&new Ru(e[5],"_"),(!(!t||!Lu(t,"6.0"))||!(!e||!Lu(e,"10.5.6")))&&Lu(n,"3.0");if(e=t.match(ku))return Lu(new Ru(e[1]),"3.0");if(e=t.match(Ou))return Lu(new Ru(e[1],"_"),"4.0");if(e=t.match(xu))return Lu(new Ru(e[1]),"4.7");if(e=t.match(Du))return n=new Ru(e[1]),t=new Ru(e[2]),Lu(n,"7.0")&&Lu(t,"7.0");if(e=t.match(Iu))return n=new Ru(e[1]),t=new Ru(e[2]),Lu(n,"7.0")&&Lu(t,"6.0");if(t.match(Nu))return!1}return!0}function ju(t){return t.classList?t.classList:(t=t.className,m(t)&&t.match(/\S+/g)||[])}function Fu(t,e){return t.classList?t.classList.contains(e):$(ju(t),e)}function Uu(t,e){t.classList?t.classList.add(e):Fu(t,e)||(t.className+=0<t.className.length?" "+e:e)}function Vu(t,e){t.classList?t.classList.remove(e):Fu(t,e)&&(t.className=W(ju(t),function(t){return t!=e}).join(" "))}function Bu(t){var e=t.type;switch(m(e)&&e.toLowerCase()){case"checkbox":case"radio":return t.checked?t.value:null;case"select-one":return e=t.selectedIndex,0<=e?t.options[e].value:null;case"select-multiple":e=[];for(var n,r=0;n=t.options[r];r++)n.selected&&e.push(n.value);return e.length?e:null;default:return null!=t.value?t.value:null}}function qu(t,e){var n=t.type;switch(m(n)&&n.toLowerCase()){case"checkbox":case"radio":t.checked=e;break;case"select-one":if(t.selectedIndex=-1,m(e))for(var r=0;n=t.options[r];r++)if(n.value==e){n.selected=!0;break}break;case"select-multiple":for(m(e)&&(e=[e]),r=0;n=t.options[r];r++)if(n.selected=!1,e)for(var i,o=0;i=e[o];o++)n.value==i&&(n.selected=!0);break;default:t.value=null!=e?e:""}}function Hu(t){if(t.altKey&&!t.ctrlKey||t.metaKey||112<=t.keyCode&&123>=t.keyCode)return!1;if(Gu(t.keyCode))return!0;switch(t.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!ge;default:return 166>t.keyCode||183<t.keyCode}}function Wu(t,e,n,r,i,o){if(me&&!Ce("525"))return!0;if(be&&i)return Gu(t);if(i&&!r)return!1;if(!ge){"number"==typeof e&&(e=Ku(e));var a=17==e||18==e||be&&91==e;if((!n||be)&&a||be&&16==e&&(r||o))return!1}if((me||de)&&r&&n)switch(t){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(pe&&r&&e==t)return!1;switch(t){case 13:return!ge||!o&&!i&&!(n&&r);case 27:return!(me||de||ge)}return(!ge||!(r||i||o))&&Gu(t)}function Gu(t){if(48<=t&&57>=t||96<=t&&106>=t||65<=t&&90>=t||(me||de)&&0==t)return!0;switch(t){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:return!0;case 173:return ge;default:return!1}}function Ku(t){if(ge)t=zu(t);else if(be&&me)switch(t){case 93:t=91}return t}function zu(t){switch(t){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return t}}function $u(t){Pr.call(this),this.a=t,wr(t,"keydown",this.f,!1,this),wr(t,"click",this.h,!1,this)}function Qu(t,e){var n=new Xu(e);if(Lr(t,n)){n=new Yu(e);try{Lr(t,n)}finally{e.stopPropagation()}}}function Yu(t){lr.call(this,t.a),this.type="action"}function Xu(t){lr.call(this,t.a),this.type="beforeaction"}function Ju(t){Pr.call(this),this.a=t,t=pe?"focusout":"blur",this.f=wr(this.a,pe?"focusin":"focus",this,!pe),this.h=wr(this.a,t,this,!pe)}function Zu(t,e){Pr.call(this),this.f=t||1,this.a=e||v,this.h=x(this.fc,this),this.j=L()}function tc(t){t.Ka=!1,t.$&&(t.a.clearTimeout(t.$),t.$=null)}function ec(t,e){if(S(t))e&&(t=x(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=x(t.handleEvent,t)}return 2147483647<Number(0)?-1:v.setTimeout(t,0)}function nc(t){tr.call(this),this.f=t,this.a={}}j($u,Pr),$u.prototype.f=function(t){(13==t.keyCode||me&&3==t.keyCode)&&Qu(this,t)},$u.prototype.h=function(t){Qu(this,t)},$u.prototype.s=function(){$u.K.s.call(this),Sr(this.a,"keydown",this.f,!1,this),Sr(this.a,"click",this.h,!1,this),delete this.a},j(Yu,lr),j(Xu,lr),j(Ju,Pr),Ju.prototype.handleEvent=function(t){var e=new lr(t.a);
129e.type="focusin"==t.type||"focus"==t.type?"focusin":"focusout",Lr(this,e)},Ju.prototype.s=function(){Ju.K.s.call(this),Cr(this.f),Cr(this.h),delete this.a},j(Zu,Pr),e=Zu.prototype,e.Ka=!1,e.$=null,e.fc=function(){if(this.Ka){var t=L()-this.j;0<t&&t<.8*this.f?this.$=this.a.setTimeout(this.h,this.f-t):(this.$&&(this.a.clearTimeout(this.$),this.$=null),Lr(this,"tick"),this.Ka&&(tc(this),this.start()))}},e.start=function(){this.Ka=!0,this.$||(this.$=this.a.setTimeout(this.h,this.f),this.j=L())},e.s=function(){Zu.K.s.call(this),tc(this),delete this.a},j(nc,tr);var rc=[];function ic(t,e,n,r){I(n)||(n&&(rc[0]=n.toString()),n=rc);for(var i=0;i<n.length;i++){var o=wr(e,n[i],r||t.handleEvent,!1,t.f||t);if(!o)break;t.a[o.key]=o}}function oc(t){pt(t.a,function(t,e){this.a.hasOwnProperty(e)&&Cr(t)},t),t.a={}}function ac(t){Pr.call(this),this.a=null,this.f=t,t=pe||de||me&&!Ce("531")&&"TEXTAREA"==t.tagName,this.h=new nc(this),ic(this.h,this.f,t?["keydown","paste","cut","drop","input"]:"input",this)}function sc(t){null!=t.a&&(v.clearTimeout(t.a),t.a=null)}function uc(t){return t=new lr(t.a),t.type="input",t}function cc(t,e){Pr.call(this),t&&(this.Pa&&dc(this),this.qa=t,this.Oa=wr(this.qa,"keypress",this,e),this.Za=wr(this.qa,"keydown",this.Ib,e,this),this.Pa=wr(this.qa,"keyup",this.Jb,e,this))}nc.prototype.s=function(){nc.K.s.call(this),oc(this)},nc.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},j(ac,Pr),ac.prototype.handleEvent=function(t){if("input"==t.type)pe&&Ce(10)&&0==t.keyCode&&0==t.j||(sc(this),Lr(this,uc(t)));else if("keydown"!=t.type||Hu(t)){var e="keydown"==t.type?this.f.value:null;pe&&229==t.keyCode&&(e=null);var n=uc(t);sc(this),this.a=ec(function(){this.a=null,this.f.value!=e&&Lr(this,n)},this)}},ac.prototype.s=function(){ac.K.s.call(this),this.h.o(),sc(this),delete this.f},j(cc,Pr),e=cc.prototype,e.qa=null,e.Oa=null,e.Za=null,e.Pa=null,e.S=-1,e.W=-1,e.Va=!1;var lc={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},hc={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},fc=!me||Ce("525"),pc=be&&ge;function dc(t){t.Oa&&(Cr(t.Oa),Cr(t.Za),Cr(t.Pa),t.Oa=null,t.Za=null,t.Pa=null),t.qa=null,t.S=-1,t.W=-1}function vc(t,e,n,r){lr.call(this,r),this.type="key",this.keyCode=t,this.j=e,this.repeat=n}function gc(t,e,n,r){this.top=t,this.right=e,this.bottom=n,this.left=r}function mc(t,e){var n=cn(t);return n.defaultView&&n.defaultView.getComputedStyle&&(t=n.defaultView.getComputedStyle(t,null))&&(t[e]||t.getPropertyValue(e))||""}function yc(t){try{var e=t.getBoundingClientRect()}catch(n){return{left:0,top:0,right:0,bottom:0}}return pe&&t.ownerDocument.body&&(t=t.ownerDocument,e.left-=t.documentElement.clientLeft+t.body.clientLeft,e.top-=t.documentElement.clientTop+t.body.clientTop),e}function bc(t,e){e=e||sn(document);var n=e||sn(document),r=_c(t),i=_c(n);if(!pe||9<=Number(Te)){a=mc(n,"borderLeftWidth");var o=mc(n,"borderRightWidth");s=mc(n,"borderTopWidth"),u=mc(n,"borderBottomWidth"),o=new gc(parseFloat(s),parseFloat(o),parseFloat(u),parseFloat(a))}else{var a=Ec(n,"borderLeft");o=Ec(n,"borderRight");var s=Ec(n,"borderTop"),u=Ec(n,"borderBottom");o=new gc(s,o,u,a)}n==sn(document)?(a=r.a-n.scrollLeft,r=r.f-n.scrollTop,!pe||10<=Number(Te)||(a+=o.left,r+=o.top)):(a=r.a-i.a-o.left,r=r.f-i.f-o.top),i=t.offsetWidth,o=t.offsetHeight,s=me&&!i&&!o,g(i)&&!s||!t.getBoundingClientRect?t=new Ze(i,o):(t=yc(t),t=new Ze(t.right-t.left,t.bottom-t.top)),i=n.clientHeight-t.height,o=n.scrollLeft,s=n.scrollTop,o+=Math.min(a,Math.max(a-(n.clientWidth-t.width),0)),s+=Math.min(r,Math.max(r-i,0)),n=new Je(o,s),e.scrollLeft=n.a,e.scrollTop=n.f}function _c(t){var e=cn(t),n=new Je(0,0),r=e?cn(e):document;return r=!pe||9<=Number(Te)||"CSS1Compat"==tn(r).a.compatMode?r.documentElement:r.body,t==r?n:(t=yc(t),r=tn(e).a,e=sn(r),r=r.parentWindow||r.defaultView,e=pe&&Ce("10")&&r.pageYOffset!=e.scrollTop?new Je(e.scrollLeft,e.scrollTop):new Je(r.pageXOffset||e.scrollLeft,r.pageYOffset||e.scrollTop),n.a=t.left+e.a,n.f=t.top+e.f,n)}e=cc.prototype,e.Ib=function(t){(me||de)&&(17==this.S&&!t.ctrlKey||18==this.S&&!t.altKey||be&&91==this.S&&!t.metaKey)&&(this.W=this.S=-1),-1==this.S&&(t.ctrlKey&&17!=t.keyCode?this.S=17:t.altKey&&18!=t.keyCode?this.S=18:t.metaKey&&9
1291!=t.keyCode&&(this.S=91)),fc&&!Wu(t.keyCode,this.S,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey)?this.handleEvent(t):(this.W=Ku(t.keyCode),pc&&(this.Va=t.altKey))},e.Jb=function(t){this.W=this.S=-1,this.Va=t.altKey},e.handleEvent=function(t){var e=t.a,n=e.altKey;if(pe&&"keypress"==t.type)var r=this.W,i=13!=r&&27!=r?e.keyCode:0;else(me||de)&&"keypress"==t.type?(r=this.W,i=0<=e.charCode&&63232>e.charCode&&Gu(r)?e.charCode:0):fe&&!me?(r=this.W,i=Gu(r)?e.keyCode:0):("keypress"==t.type?(pc&&(n=this.Va),e.keyCode==e.charCode?32>e.keyCode?(r=e.keyCode,i=0):(r=this.W,i=e.charCode):(r=e.keyCode||this.W,i=e.charCode||0)):(r=e.keyCode||this.W,i=e.charCode||0),be&&63==i&&224==r&&(r=191));var o=r=Ku(r);r?63232<=r&&r in lc?o=lc[r]:25==r&&t.shiftKey&&(o=9):e.keyIdentifier&&e.keyIdentifier in hc&&(o=hc[e.keyIdentifier]),ge&&fc&&"keypress"==t.type&&!Wu(o,this.S,t.shiftKey,t.ctrlKey,n,t.metaKey)||(t=o==this.S,this.S=o,e=new vc(o,i,t,e),e.altKey=n,Lr(this,e))},e.P=function(){return this.qa},e.s=function(){cc.K.s.call(this),dc(this)},j(vc,lr),gc.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"},gc.prototype.ceil=function(){return this.top=Math.ceil(this.top),this.right=Math.ceil(this.right),this.bottom=Math.ceil(this.bottom),this.left=Math.ceil(this.left),this},gc.prototype.floor=function(){return this.top=Math.floor(this.top),this.right=Math.floor(this.right),this.bottom=Math.floor(this.bottom),this.left=Math.floor(this.left),this},gc.prototype.round=function(){return this.top=Math.round(this.top),this.right=Math.round(this.right),this.bottom=Math.round(this.bottom),this.left=Math.round(this.left),this};var wc={thin:2,medium:4,thick:6};function Ec(t,e){if("none"==(t.currentStyle?t.currentStyle[e+"Style"]:null))return 0;var n=t.currentStyle?t.currentStyle[e+"Width"]:null;if(n in wc)t=wc[n];else if(/^\d+px?$/.test(n))t=parseInt(n,10);else{e=t.style.left;var r=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left,t.style.left=n,n=t.style.pixelLeft,t.style.left=e,t.runtimeStyle.left=r,t=+n}return t}function Ic(){}function Tc(t){Pr.call(this),this.m=t||tn(),this.eb=null,this.na=!1,this.f=null,this.J=void 0,this.oa=this.Ca=this.X=null}function Sc(t,e){return t.f?nn(e,t.f||t.m.a):null}function Cc(t){return t.J||(t.J=new nc(t)),t.J}function Ac(t,e){t.Ca&&q(t.Ca,e,void 0)}function Nc(t,e){var n=hn(t,"firebaseui-textfield");e?(Vu(t,"firebaseui-input-invalid"),Uu(t,"firebaseui-input"),n&&Vu(n,"firebaseui-textfield-invalid")):(Vu(t,"firebaseui-input"),Uu(t,"firebaseui-input-invalid"),n&&Uu(n,"firebaseui-textfield-invalid"))}function kc(t,e,n){e=new ac(e),rr(t,D(ir,e)),ic(Cc(t),e,"input",n)}function Oc(t,e,n){e=new cc(e),rr(t,D(ir,e)),ic(Cc(t),e,"key",function(t){13==t.keyCode&&(t.stopPropagation(),t.preventDefault(),n(t))})}function xc(t,e,n){e=new Ju(e),rr(t,D(ir,e)),ic(Cc(t),e,"focusin",n)}function Dc(t,e,n){e=new Ju(e),rr(t,D(ir,e)),ic(Cc(t),e,"focusout",n)}function Rc(t,e,n){e=new $u(e),rr(t,D(ir,e)),ic(Cc(t),e,"action",function(t){t.stopPropagation(),t.preventDefault(),n(t)})}function Pc(t){Uu(t,"firebaseui-hidden")}function Lc(t,e){e&&ln(t,e),Vu(t,"firebaseui-hidden")}function Mc(t){return!Fu(t,"firebaseui-hidden")&&"none"!=t.style.display}function jc(t){t=t||{};var e=t.email,n=t.disabled,r='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-email-input">';return r=t.vc?r+"Enter new email address":r+"Email",r+='</label><input type="email" name="email" id="ui-sign-in-email-input" autocomplete="username" class="mdl-textfield__input firebaseui-input firebaseui-id-email" value="'+Pn(null!=e?e:"")+'"'+(n?"disabled":"")+'></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-email-error"></p></div>',kn(r)}function Fc(t){t=t||{},t=t.label;var e='<button type="submit" class="firebaseui-id-submit firebaseui-button mdl-button mdl-js-button mdl-button--raised mdl-button--colored">';return e=t?e+Sn(t):e+"Next",kn(e+"</button>")}function Uc(){var t=""+Fc({label:Dn("Sign In")});return kn(t)}function Vc(){var t=""+Fc({label:Dn("Save")});return kn(t)}function Bc(){var t=""+Fc({label:Dn("Continue")});return kn(t)}function qc(t){t=t||{},t=t.label;var e='<div class="firebaseui-new-password-component"><div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-new-password-input">';return e=t?e+Sn(t):e+"Choose password",kn(e+'</label><input type="password" name="newPassword" id="ui-sign-in-new-password-input" autocomplete="new-password" class="mdl-textfield__input firebaseui-input firebaseui-id-new-password"></div><a href="javascript:void(0)" class="firebaseui-input-floating-button firebaseui-id-password-toggle firebaseui-input-toggle-on firebaseui-input-toggle-blur"></a><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-new-password-error"></p></div></div>')}function Hc(){var t={},e='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-password-input">';return e=t.current?e+"Current password":e+"Password",kn(e+'</label><input type="password" name="password" id="ui-sign-in-password-input" autocomplete="current-password" class="mdl-textfield__input firebaseui-input firebaseui-id-password"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-password-error"></p></div>')}function Wc(){return kn('<a class="firebaseui-link firebaseui-id-secondary-link" href="javascript:void(0)">Trouble signing in?</a>')}function Gc(t){t=t||{},t=t.label;var e='<button class="firebaseui-id-secondary-link firebaseui-button mdl-button mdl-js-button mdl-button--primary">';return e=t?e+Sn(t):e+"Cancel",kn(e+"</button>")}function Kc(t){var e="";return t.G&&t.F&&(e+='<ul class="firebaseui-tos-list firebaseui-tos"><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a></li><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a></li></ul>'),kn(e)}function zc(t){var e="";return t.G&&t.F&&(e+='<p class="firebaseui-tos firebaseui-tospp-full-message">By continuing, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>.</p>'),kn(e)}function $c(t){return t='<div class="firebaseui-info-bar firebaseui-id-info-bar"><p class="firebaseui-info-bar-message">'+Sn(t.message)+'&nbsp;&nbsp;<a href="javascript:void(0)" class="firebaseui-link firebaseui-id-dismiss-info-bar">Dismiss</a></p></div>',kn(t)}function Qc(t){var e=t.content;return t=t.Bb,kn('<dialog class="mdl-dialog firebaseui-dialog firebaseui-id-dialog'+(t?" "+Pn(t):"")+'">'+Sn(e)+"</dialog>")}function Yc(t){var e=t.message;return kn(Qc({content:Rn('<div class="firebaseui-dialog-icon-wrapper"><div class="'+Pn(t.Ma)+' firebaseui-dialog-icon"></div></div><div class="firebaseui-progress-dialog-message">'+Sn(e)+"</div>")}))}function Xc(t){var e='<div class="firebaseui-list-box-actions">';t=t.items;for(var n=t.length,r=0;r<n;r++){var i=t[r];e+='<button type="button" data-listboxid="'+Pn(i.id)+'" class="mdl-button firebaseui-id-list-box-dialog-button firebaseui-list-box-dialog-button">'+(i.Ma?'<div class="firebaseui-list-box-icon-wrapper"><div class="firebaseui-list-box-icon '+Pn(i.Ma)+'"></div></div>':"")+'<div class="firebaseui-list-box-label-wrapper">'+Sn(i.label)+"</div></button>"}return e=""+Qc({Bb:Dn("firebaseui-list-box-dialog"),content:Rn(e+"</div>")}),kn(e)}
129function Jc(t){return t=t||{},kn(t.vb?'<div class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>':'<div class="mdl-progress mdl-js-progress mdl-progress__indeterminate firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>')}function Zc(t,e){return t=t||{},t=t.ga,Nn(t.rb?t.rb:e.ib[t.providerId]?""+e.ib[t.providerId]:0==(""+t.providerId).indexOf("saml.")?(""+t.providerId).substring(5):0==(""+t.providerId).indexOf("oidc.")?(""+t.providerId).substring(5):""+t.providerId)}function tl(t){rl(t,"upgradeElement")}function el(t){rl(t,"downgradeElements")}w(Ic),Ic.prototype.a=0,j(Tc,Pr),e=Tc.prototype,e.Kb=Ic.Ya(),e.P=function(){return this.f},e.$a=function(t){if(this.X&&this.X!=t)throw Error("Method not supported");Tc.K.$a.call(this,t)},e.lb=function(){this.f=this.m.a.createElement("DIV")},e.render=function(t){if(this.na)throw Error("Component already rendered");this.f||this.lb(),t?t.insertBefore(this.f,null):this.m.a.body.appendChild(this.f),this.X&&!this.X.na||this.v()},e.v=function(){this.na=!0,Ac(this,function(t){!t.na&&t.P()&&t.v()})},e.ya=function(){Ac(this,function(t){t.na&&t.ya()}),this.J&&oc(this.J),this.na=!1},e.s=function(){this.na&&this.ya(),this.J&&(this.J.o(),delete this.J),Ac(this,function(t){t.o()}),this.f&&un(this.f),this.X=this.f=this.oa=this.Ca=null,Tc.K.s.call(this)},e.removeChild=function(t,e){if(t){var n=m(t)?t:t.eb||(t.eb=":"+(t.Kb.a++).toString(36));if(this.oa&&n?(t=this.oa,t=(null!==t&&n in t?t[n]:void 0)||null):t=null,n&&t){var r=this.oa;
129if(n in r&&delete r[n],Q(this.Ca,t),e&&(t.ya(),t.f&&un(t.f)),e=t,null==e)throw Error("Unable to set parent component");e.X=null,Tc.K.$a.call(e,null)}}if(!t)throw Error("Child is not in parent component");return t},$c.A="firebaseui.auth.soy2.element.infoBar",Yc.A="firebaseui.auth.soy2.element.progressDialog",Xc.A="firebaseui.auth.soy2.element.listBoxDialog",Jc.A="firebaseui.auth.soy2.element.busyIndicator";var nl=["mdl-js-textfield","mdl-js-progress","mdl-js-spinner","mdl-js-button"];function rl(t,e){t&&window.componentHandler&&window.componentHandler[e]&&q(nl,function(n){Fu(t,n)&&window.componentHandler[e](t),q(en(n,t),function(t){window.componentHandler[e](t)})})}function il(t,e,n){if(ol.call(this),document.body.appendChild(t),t.showModal||window.dialogPolyfill.registerDialog(t),t.showModal(),tl(t),e&&Rc(this,t,function(e){var n=t.getBoundingClientRect();(e.clientX<n.left||n.left+n.width<e.clientX||e.clientY<n.top||n.top+n.height<e.clientY)&&ol.call(this)}),!n){var r=this.P().parentElement||this.P().parentNode;if(r){var i=this;this.da=function(){if(t.open){var e=t.getBoundingClientRect().height,n=r.getBoundingClientRect().height,o=r.getBoundingClientRect().top-document.body.getBoundingClientRect().top,a=r.getBoundingClientRect().left-document.body.getBoundingClientRect().left,s=t.getBoundingClientRect().width,u=r.getBoundingClientRect().width;t.style.top=(o+(n-e)/2).toString()+"px",e=a+(u-s)/2,t.style.left=e.toString()+"px",t.style.right=(document.body.getBoundingClientRect().width-e-s).toString()+"px"}else window.removeEventListener("resize",i.da)},this.da(),window.addEventListener("resize",this.da,!1)}}}function ol(){var t=al.call(this);t&&(el(t),t.open&&t.close(),un(t),this.da&&window.removeEventListener("resize",this.da))}function al(){return nn("firebaseui-id-dialog")}function sl(){un(ul.call(this))}function ul(){return Sc(this,"firebaseui-id-info-bar")}function cl(){return Sc(this,"firebaseui-id-dismiss-info-bar")}var ll={xa:{"google.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg","github.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/github.svg","facebook.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/facebook.svg","twitter.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/twitter.svg",password:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/mail.svg",phone:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/phone.svg",anonymous:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/anonymous.png","microsoft.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/microsoft.svg","yahoo.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/yahoo.svg","apple.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/apple.png",saml:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/saml.svg",oidc:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/oidc.svg"},wa:{"google.com":"#ffffff","github.com":"#333333","facebook.com":"#3b5998","twitter.com":"#55acee",password:"#db4437",phone:"#02bd7e",anonymous:"#f4b400","microsoft.com":"#2F2F2F","yahoo.com":"#720E9E","apple.com":"#000000",saml:"#007bff",oidc:"#007bff"},ib:{"google.com":"Google","github.com":"GitHub","facebook.com":"Facebook","twitter.com":"Twitter",password:"Password",phone:"Phone",anonymous:"Guest","microsoft.com":"Microsoft","yahoo.com":"Yahoo","apple.com":"Apple"}};function hl(t,e,n){for(var r in cr.call(this,t,e),n)this[r]=n[r]}function fl(t,e,n,r,i){Tc.call(this,n),this.gb=t,this.fb=e,this.Da=!1,this.Ea=r||null,this.w=this.ca=null,this.Y=dt(ll),gt(this.Y,i||{})}function pl(t){t.Da=!0;var e=Fu(t.P(),"firebaseui-use-spinner");t.ca=window.setTimeout(function(){t.P()&&null===t.w&&(t.w=bn(Jc,{vb:e},null,t.m),t.P().appendChild(t.w),tl(t.w))},500)}function dl(t){return t.P().parentElement||t.P().parentNode}function vl(t,e,n){Oc(t,e,function(){n.focus()})}function gl(t,e,n){Oc(t,e,function(){n()})}function ml(t,e,n){t=t||{},e=t.Wa;var r=t.ia;return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in with email</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+jc(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Gc(null):"")+Fc(null)+'</div></div><div class="firebaseui-card-footer">'+(r?zc(n):Kc(n))+"</div></form></div>",kn(t)}function yl(t,e,n){return t=t||{},e=t.ia,t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content">'+jc(t)+Hc()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Wc()+'</div><div class="firebaseui-form-actions">'+Uc()+'</div></div><div class="firebaseui-card-footer">'+(e?zc(n):Kc(n))+"</div></form></div>",kn(t)}function bl(t,e,n){t=t||{};var r=t.Sb;e=t.Ua;var i=t.ia,o='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-up"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Create account</h1></div><div class="firebaseui-card-content">'+jc(t);return r?(t=t||{},t=t.name,t='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-name-input">First &amp; last name</label><input type="text" name="name" id="ui-sign-in-name-input" autocomplete="name" class="mdl-textfield__input firebaseui-input firebaseui-id-name" value="'+Pn(null!=t?t:"")+'"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-name-error"></p></div>',t=kn(t)):t="",n=o+t+qc(null)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Gc(null):"")+Vc()+'</div></div><div class="firebaseui-card-footer">'+(i?zc(n):Kc(n))+"</div></form></div>",kn(n)}function _l(t,e,n){return t=t||{},e=t.Ua,t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Recover password</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Get instructions sent to this email that explain how to reset your password</p>'+jc(t)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(e?Gc(null):"")+Fc({label:Dn("Send")})+'</div></div><div class="firebaseui-card-footer">
129'+Kc(n)+"</div></form></div>",kn(t)}function wl(t,e,n){e=t.T;var r="";return t="Follow the instructions sent to <strong>"+Sn(t.email)+"</strong> to recover your password",r+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery-email-sent"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Check your email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+t+'</p></div><div class="firebaseui-card-actions">',e&&(r+='<div class="firebaseui-form-actions">'+Fc({label:Dn("Done")})+"</div>"),r+='</div><div class="firebaseui-card-footer">'+Kc(n)+"</div></div>",kn(r)}function El(t,e,n){return kn('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-callback"><div class="firebaseui-callback-indicator-container">'+Jc(null,null,n)+"</div></div>")}function Il(t,e,n){return kn('<div class="firebaseui-container firebaseui-id-page-spinner">'+Jc({vb:!0},null,n)+"</div>")}function Tl(){return kn('<div class="firebaseui-container firebaseui-id-page-blank firebaseui-use-spinner"></div>')}function Sl(t,e,n){e="",t="A sign-in email with additional instructions was sent to <strong>"+Sn(t.email)+"</strong>. Check your email to complete sign-in.";var r=kn('<a class="firebaseui-link firebaseui-id-trouble-getting-email-link" href="javascript:void(0)">Trouble getting email?</a>');return e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-sent"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign-in email sent</h1></div><div class="firebaseui-card-content"><div class="firebaseui-email-sent"></div><p class="firebaseui-text">'+t+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+r+'</div><div class="firebaseui-form-actions">'+Gc({label:Dn("Back")})+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(e)}function Cl(t,e,n){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-not-received"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Trouble getting email?</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try these common fixes:<ul><li>Check if the email was marked as spam or filtered.</li><li>Check your internet connection.</li><li>Check that you did not misspell your email.</li><li>Check that your inbox space is not running out or other inbox settings related issues.</li></ul></p><p class="firebaseui-text">If the steps above didn\'t work, you can resend the email. Note that this will deactivate the link in the older email.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+kn('<a class="firebaseui-link firebaseui-id-resend-email-link" href="javascript:void(0)">Resend</a>')+'</div><div class="firebaseui-form-actions">'+Gc({label:Dn("Back")})+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(t)}function Al(t,e,n){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-confirmation"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Confirm email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Confirm your email to complete sign in</p><div class="firebaseui-relative-wrapper">'+jc(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Gc(null)+Fc(null)+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(t)}function Nl(){var t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-different-device-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">New device or browser detected</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try opening the link using the same device or browser where you started the sign-in process.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Gc({label:Dn("Dismiss")})+"</div></div></div>";return kn(t)}function kl(){var t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-anonymous-user-mismatch"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Session ended</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">The session associated with this sign-in request has either expired or was cleared.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Gc({label:Dn("Dismiss")})+"</div></div></div>";return kn(t)}function Ol(t,e,n){return e="",t="You’ve already used <strong>"+Sn(t.email)+"</strong> to sign in. Enter your password for that account.",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">'+t+"</p>"+Hc()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Wc()+'</div><div class="firebaseui-form-actions">'+Uc()+'</div></div><div class="firebaseui-card-footer">
129'+Kc(n)+"</div></form></div>",kn(e)}function xl(t,e,n){var r=t.email;return e="",t=""+Zc(t,n),t=Dn(t),r="You’ve already used <strong>"+Sn(r)+"</strong>. You can connect your <strong>"+Sn(t)+"</strong> account with <strong>"+Sn(r)+"</strong> by signing in with email link below.",t="For this flow to successfully connect your "+Sn(t)+" account with this email, you have to open the link on the same device or browser.",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text firebaseui-text-justify">'+r+'<p class="firebaseui-text firebaseui-text-justify">'+t+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Uc()+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(e)}function Dl(t,e,n){e="";var r=""+Zc(t,n);return r=Dn(r),t="You originally intended to connect <strong>"+Sn(r)+"</strong> to your email account but have opened the link on a different device where you are not signed in.",r="If you still want to connect your <strong>"+Sn(r)+"</strong> account, open the link on the same device where you started sign-in. Otherwise, tap Continue to sign-in on this device.",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking-different-device"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text firebaseui-text-justify">'+t+'</p><p class="firebaseui-text firebaseui-text-justify">'+r+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Bc()+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(e)}function Rl(t,e,n){var r=t.email;return e="",t=""+Zc(t,n),t=Dn(t),r="You’ve already used <strong>"+Sn(r)+"</strong>. Sign in with "+Sn(t)+" to continue.",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-federated-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">'+r+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Fc({label:Dn("Sign in with "+t)})+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(e)}function Pl(t,e,n){return e="",t="To continue sign in with <strong>"+Sn(t.email)+"</strong> on this device, you have to recover the password.",e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unsupported-provider"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+t+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Gc(null)+Fc({label:Dn("Recover password")})+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(e)}function Ll(t){var e="",n='<p class="firebaseui-text">for <strong>'+Sn(t.email)+"</strong></p>";return e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Reset your password</h1></div><div class="firebaseui-card-content">'+n+qc(xn(t))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Vc()+"</div></div></form></div>",kn(e)}function Ml(t){return t=t||{},t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Password changed</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new password</p></div><div class="firebaseui-card-actions">'+(t.T?'<div class="firebaseui-form-actions">'+Bc()+"</div>":"")+"</div></div>",kn(t)}function jl(t){return t=t||{},t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try resetting your password again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to reset your password has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+(t.T?'<div class="firebaseui-form-actions">'+Bc()+"</div>":"")+"</div></div>",kn(t)}function Fl(t){var e=t.T,n="";return t="Your sign-in email address has been changed back to <strong>"+Sn(t.email)+"</strong>.",n+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-success"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Updated email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+t+'</p><p class="firebaseui-text">If you didn’t ask to change your sign-in email, it’s possible someone is trying to access your account and 
129you should <a class="firebaseui-link firebaseui-id-reset-password-link" href="javascript:void(0)">change your password right away</a>.</p></div><div class="firebaseui-card-actions">'+(e?'<div class="firebaseui-form-actions">'+Bc()+"</div>":"")+"</div></form></div>",kn(n)}function Ul(t){return t=t||{},t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Unable to update your email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">There was a problem changing your sign-in email back.</p><p class="firebaseui-text">If you try again and still can’t reset your email, try asking your administrator for help.</p></div><div class="firebaseui-card-actions">'+(t.T?'<div class="firebaseui-form-actions">'+Bc()+"</div>":"")+"</div></div>",kn(t)}function Vl(t){return t=t||{},t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Your email has been verified</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new account</p></div><div class="firebaseui-card-actions">'+(t.T?'<div class="firebaseui-form-actions">'+Bc()+"</div>":"")+"</div></div>",kn(t)}function Bl(t){return t=t||{},t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try verifying your email again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to verify your email has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+(t.T?'<div class="firebaseui-form-actions">'+Bc()+"</div>":"")+"</div></div>",kn(t)}function ql(t){var e=t.Ab;return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-recoverable-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Error encountered</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+Sn(t.errorMessage)+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">',e&&(t+=Fc({label:Dn("Retry")})),kn(t+"</div></div></div>")}function Hl(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unrecoverable-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Error encountered</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+Sn(t.errorMessage)+"</p></div></div>",kn(t)}function Wl(t,e,n){var r=t.Pb;return e="",t="Continue with "+Sn(t.ic)+"?",r="You originally wanted to sign in with "+Sn(r),e+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-mismatch"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">'+t+'</h2><p class="firebaseui-text">'+r+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Gc(null)+Fc({label:Dn("Continue")})+'</div></div><div class="firebaseui-card-footer">'+Kc(n)+"</div></form></div>",kn(e)}function Gl(t,e,n){var r='<div class="firebaseui-container firebaseui-page-provider-sign-in firebaseui-id-page-provider-sign-in firebaseui-use-spinner"><div class="firebaseui-card-content"><form onsubmit="return false;"><ul class="firebaseui-idp-list">';t=t.Rb,e=t.length;for(var i=0;i<e;i++){var o={ga:t[i]},a=n;o=o||{};var s=o.ga,u=o;u=u||{};var c="";switch(u.ga.providerId){case"google.com":c+="firebaseui-idp-google";break;case"github.com":c+="firebaseui-idp-github";break;case"facebook.com":c+="firebaseui-idp-facebook";break;case"twitter.com":c+="firebaseui-idp-twitter";break;case"phone":c+="firebaseui-idp-phone";break;case"anonymous":c+="firebaseui-idp-anonymous";break;case"password":c+="firebaseui-idp-password";break;default:c+="firebaseui-idp-generic"}u='<button class="firebaseui-idp-button mdl-button mdl-js-button mdl-button--raised '+Pn(Nn(c))+' firebaseui-id-idp-button" data-provider-id="'+Pn(s.providerId)+'" style="background-color:',c=(c=o)||{},c=c.ga,u=u+Pn(Mn(Nn(c.Ga?c.Ga:a.wa[c.providerId]?""+a.wa[c.providerId]:0==c.providerId.indexOf("saml.")?""+a.wa.saml:0==c.providerId.indexOf("oidc.")?""+a.wa.oidc:""+a.wa.password)))+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="';var l=o;c=a,l=l||{},l=l.ga,c=On(l.Na?Ln(l.Na):c.xa[l.providerId]?Ln(c.xa[l.providerId]):0==l.providerId.indexOf("saml.")?Ln(c.xa.saml):0==l.providerId.indexOf("oidc.")?Ln(c.xa.oidc):Ln(c.xa.password)),u=u+Pn(Ln(c))+'"></span>',"password"==s.providerId?u+='<span class="firebaseui-idp-text firebaseui-idp-text-long">Sign in with email</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Email</span>':"phone"==s.providerId?u+='<span class="firebaseui-idp-text firebaseui-idp-text-long">Sign in with phone</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Phone</span>':"anonymous"==s.providerId?u+='<span class="firebaseui-idp-text firebaseui-idp-text-long">Continue as guest</span><span class="firebaseui-idp-text firebaseui-idp-text-short">Guest</span>
129':(s="Sign in with "+Sn(Zc(o,a)),u+='<span class="firebaseui-idp-text firebaseui-idp-text-long">'+s+'</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+Sn(Zc(o,a))+"</span>"),o=kn(u+"</button>"),r+='<li class="firebaseui-list-item">'+o+"</li>"}return r+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+zc(n)+"</div></div>",kn(r)}function Kl(t,e,n){t=t||{};var r,i=t.Fb,o=t.Wa;return e=t.ia,t=t||{},t=t.za,t='<div class="firebaseui-phone-number"><button class="firebaseui-id-country-selector firebaseui-country-selector mdl-button mdl-js-button"><span class="firebaseui-flag firebaseui-country-selector-flag firebaseui-id-country-selector-flag"></span><span class="firebaseui-id-country-selector-code"></span></button><div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label firebaseui-textfield firebaseui-phone-input-wrapper"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-phone-number-input">Phone number</label><input type="tel" name="phoneNumber" id="ui-sign-in-phone-number-input" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-number" value="'+Pn(null!=t?t:"")+'"></div></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-phone-number-error firebaseui-id-phone-number-error"></p></div>',t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-start"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Enter your phone number</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+kn(t),r=i?kn('<div class="firebaseui-recaptcha-wrapper"><div class="firebaseui-recaptcha-container"></div><div class="firebaseui-error-wrapper firebaseui-recaptcha-error-wrapper"><p class="firebaseui-error firebaseui-hidden firebaseui-id-recaptcha-error"></p></div></div>'):"",r=t+r+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(o?Gc(null):"")+Fc({label:Dn("Verify")})+'</div></div><div class="firebaseui-card-footer">',e?(e='<p class="firebaseui-tos firebaseui-phone-tos">',e=n.G&&n.F?e+'By tapping Verify, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>. An SMS may be sent. Message &amp; data rates may apply.':e+"By tapping Verify, an SMS may be sent. Message &amp; data rates may apply.",n=kn(e+"</p>")):n=kn('<p class="firebaseui-tos firebaseui-phone-sms-notice">By tapping Verify, an SMS may be sent. Message &amp; data rates may apply.</p>')+Kc(n),kn(r+n+"</div></form></div>")}function zl(t,e,n){t=t||{},e=t.phoneNumber;var r="";return t='Enter the 6-digit code we sent to <a class="firebaseui-link firebaseui-change-phone-number-link firebaseui-id-change-phone-number-link" href="javascript:void(0)">&lrm;'+Sn(e)+"</a>",Sn(e),e=r,r=kn('<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-phone-confirmation-code-input">6-digit code</label><input type="number" name="phoneConfirmationCode" id="ui-sign-in-phone-confirmation-code-input" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-confirmation-code"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-phone-confirmation-code-error"></p></div>'),n='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-finish"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Verify your phone number</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+t+"</p>"+r+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Gc(null)+Fc({label:Dn("Continue")})+'</div></div><div class="firebaseui-card-footer">
129'+Kc(n)+"</div></form>",t=kn('<div class="firebaseui-resend-container"><span class="firebaseui-id-resend-countdown"></span><a href="javascript:void(0)" class="firebaseui-id-resend-link firebaseui-hidden firebaseui-link">Resend</a></div>'),kn(e+(n+t+"</div>"))}function $l(){return kn('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-sign-out"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign Out</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You are now successfully signed out.</p></div></div>')}function Ql(t,e,n){var r='<div class="firebaseui-container firebaseui-page-select-tenant firebaseui-id-page-select-tenant"><div class="firebaseui-card-content"><form onsubmit="return false;"><ul class="firebaseui-tenant-list">';t=t.dc,e=t.length;for(var i=0;i<e;i++){var o=t[i],a="",s="Sign in to "+Sn(o.displayName),u=Sn(o.displayName),c=o.tenantId?o.tenantId:"top-level-project";c=Dn(c),a+='<button class="firebaseui-tenant-button mdl-button mdl-js-button mdl-button--raised firebaseui-tenant-selection-'+Pn(c)+' firebaseui-id-tenant-selection-button"'+(o.tenantId?'data-tenant-id="'+Pn(o.tenantId)+'"':"")+'style="background-color:'+Pn(Mn(o.Ga))+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="'+Pn(Ln(o.Na))+'"></span><span class="firebaseui-idp-text firebaseui-idp-text-long">'+s+'</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+u+"</span></button>",o=kn(a),r+='<li class="firebaseui-list-item">'+o+"</li>"}return r+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+zc(n)+"</div></div>",kn(r)}function Yl(t,e,n){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-provider-match-by-email"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+jc(null)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Fc(null)+'</div></div><div class="firebaseui-card-footer">'+zc(n)+"</div></form></div>",kn(t)}function Xl(){return Sc(this,"firebaseui-id-submit")}function Jl(){return Sc(this,"firebaseui-id-secondary-link")}function Zl(t,e){Rc(this,Xl.call(this),function(e){t(e)});var n=Jl.call(this);n&&e&&Rc(this,n,function(t){e(t)})}function th(){return Sc(this,"firebaseui-id-password")}function eh(){return Sc(this,"firebaseui-id-password-error")}function nh(){var t=th.call(this),e=eh.call(this);kc(this,t,function(){Mc(e)&&(Nc(t,!0),Pc(e))})}function rh(){var t=th.call(this),e=eh.call(this);return Bu(t)?(Nc(t,!0),Pc(e),e=!0):(Nc(t,!1),Lc(e,Nn("Enter your password").toString()),e=!1),e?Bu(t):null}function ih(t,e,n,r,i,o){fl.call(this,Ol,{email:t},o,"passwordLinking",{G:r,F:i}),this.B=e,this.I=n}j(hl,cr),j(fl,Tc),e=fl.prototype,e.lb=function(){var t=bn(this.gb,this.fb,this.Y,this.m);tl(t),this.f=t},e.v=function(){if(fl.K.v.call(this),Ur(dl(this),new hl("pageEnter",dl(this),{pageId:this.Ea})),this.cb()&&this.Y.G){var t=this.Y.G;Rc(this,this.cb(),function(){t()})}if(this.bb()&&this.Y.F){var e=this.Y.F;Rc(this,this.bb(),function(){e()})}},e.ya=function(){Ur(dl(this),new hl("pageExit",dl(this),{pageId:this.Ea})),fl.K.ya.call(this)},e.s=function(){window.clearTimeout(this.ca),this.fb=this.gb=this.ca=null,this.Da=!1,this.w=null,el(this.P()),fl.K.s.call(this)},e.L=function(t,e,n,r){function i(){if(o.N)return null;o.Da=!1,window.clearTimeout(o.ca),o.ca=null,o.w&&(el(o.w),un(o.w),o.w=null)}var o=this;return o.Da?null:(pl(o),t.apply(null,e).then(n,r).then(i,i))},R(fl.prototype,{a:function(t){sl.call(this);var e=bn($c,{message:t},null,this.m);this.P().appendChild(e),Rc(this,cl.call(this),function(){un(e)})},xc:sl,zc:ul,yc:cl,Z:function(t,e){t=bn(Yc,{Ma:t,message:e},null,this.m),il.call(this,t)},h:ol,Db:al,Bc:function(){return Sc(this,"firebaseui-tos")},cb:function(){return Sc(this,"firebaseui-tos-link")},bb:function(){return Sc(this,"firebaseui-pp-link")},Cc:function(){return Sc(this,"firebaseui-tos-list")}}),ml.A="firebaseui.auth.soy2.page.signIn",yl.A="firebaseui.auth.soy2.page.passwordSignIn",bl.A="firebaseui.auth.soy2.page.passwordSignUp",_l.A="firebaseui.auth.soy2.page.passwordRecovery",wl.A="firebaseui.auth.soy2.page.passwordRecoveryEmailSent",El.A="firebaseui.auth.soy2.page.callback",Il.A="firebaseui.auth.soy2.page.spinner",Tl.A="firebaseui.auth.soy2.page.blank",Sl.A="firebaseui.auth.soy2.page.emailLinkSignInSent",Cl.A="firebaseui.auth.soy2.page.emailNotReceived",Al.A="firebaseui.auth.soy2.page.emailLinkSignInConfirmation",Nl.A="firebaseui.auth.soy2.page.differentDeviceError",kl.A="firebaseui.auth.soy2.page.anonymousUserMismatch",Ol.A="firebaseui.auth.soy2.page.passwordLinking",xl.A="firebaseui.auth.soy2.page.emailLinkSignInLinking",Dl.A="firebaseui.auth.soy2.page.emailLinkSignInLinkingDifferentDevice",Rl.A="firebaseui.auth.soy2.page.federatedLinking",Pl.A="firebaseui.auth.soy2.page.unsupportedProvider",Ll.A="firebaseui.auth.soy2.page.passwordReset",Ml.A="firebaseui.auth.soy2.page.passwordResetSuccess",jl.A="firebaseui.auth.soy2.page.passwordResetFailure",Fl.A="firebaseui.auth.soy2.page.emailChangeRevokeSuccess",Ul.A="firebaseui.auth.soy2.page.emailChangeRevokeFailure",Vl.A="firebaseui.auth.soy2.page.emailVerificationSuccess",Bl.A="firebaseui.auth.soy2.page.emailVerificationFailure",ql.A="firebaseui.auth.soy2.page.recoverableError",Hl.A="firebaseui.auth.soy2.page.unrecoverableError",Wl.A="firebaseui.auth.soy2.page.emailMismatch",Gl.A="firebaseui.auth.soy2.page.providerSignIn",Kl.A="firebaseui.auth.soy2.page.phoneSignInStart",zl.A="firebaseui.auth.soy2.page.phoneSignInFinish",$l.A="firebaseui.auth.soy2.page.signOut",Ql.A="firebaseui.auth.soy2.page.selectTenant",Yl.A="firebaseui.auth.soy2.page.providerMatchByEmail",c(i
129h,fl),ih.prototype.v=function(){this.R(),this.O(this.B,this.I),gl(this,this.i(),this.B),this.i().focus(),fl.prototype.v.call(this)},ih.prototype.s=function(){this.B=null,fl.prototype.s.call(this)},ih.prototype.j=function(){return Bu(Sc(this,"firebaseui-id-email"))},R(ih.prototype,{i:th,D:eh,R:nh,u:rh,ea:Xl,ba:Jl,O:Zl});var oh=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function ah(){return Sc(this,"firebaseui-id-email")}function sh(){return Sc(this,"firebaseui-id-email-error")}function uh(t){var e=ah.call(this),n=sh.call(this);kc(this,e,function(){Mc(n)&&(Nc(e,!0),Pc(n))}),t&&Oc(this,e,function(){t()})}function ch(){return rt(Bu(ah.call(this))||"")}function lh(){var t=ah.call(this),e=sh.call(this),n=Bu(t)||"";return n?oh.test(n)?(Nc(t,!0),Pc(e),e=!0):(Nc(t,!1),Lc(e,Nn("That email address isn't correct").toString()),e=!1):(Nc(t,!1),Lc(e,Nn("Enter your email address to continue").toString()),e=!1),e?rt(Bu(t)):null}function hh(t,e,n,r,i,o,a){fl.call(this,yl,{email:n,ia:!!o},a,"passwordSignIn",{G:r,F:i}),this.B=t,this.I=e}function fh(t,e,n,r,i,o){fl.call(this,t,e,r,i||"notice",o),this.i=n||null}function ph(t,e,n,r,i){fh.call(this,wl,{email:t,T:!!e},e,i,"passwordRecoveryEmailSent",{G:n,F:r})}function dh(t,e){fh.call(this,Vl,{T:!!t},t,e,"emailVerificationSuccess")}function vh(t,e){fh.call(this,Bl,{T:!!t},t,e,"emailVerificationFailure")}function gh(t){fh.call(this,$l,void 0,void 0,t,"signOut")}function mh(t,e){fh.call(this,Ml,{T:!!t},t,e,"passwordResetSuccess")}function yh(t,e){fh.call(this,jl,{T:!!t},t,e,"passwordResetFailure")}function bh(t,e){fh.call(this,Ul,{T:!!t},t,e,"emailChangeRevokeFailure")}function _h(t,e,n){fh.call(this,ql,{errorMessage:t,Ab:!!e},e,n,"recoverableError")}function wh(t,e){fh.call(this,Hl,{errorMessage:t},void 0,e,"unrecoverableError")}c(hh,fl),hh.prototype.v=function(){this.R(),this.ea(),this.ba(this.B,this.I),vl(this,this.l(),this.i()),gl(this,this.i(),this.B),Bu(this.l())?this.i().focus():this.l().focus(),fl.prototype.v.call(this)},hh.prototype.s=function(){this.I=this.B=null,fl.prototype.s.call(this)},R(hh.prototype,{l:ah,U:sh,R:uh,O:ch,j:lh,i:th,D:eh,ea:nh,u:rh,ua:Xl,pa:Jl,ba:Zl}),j(fh,fl),fh.prototype.v=function(){this.i&&(this.u(this.i),this.l().focus()),fh.K.v.call(this)},fh.prototype.s=function(){this.i=null,fh.K.s.call(this)},R(fh.prototype,{l:Xl,B:Jl,u:Zl}),j(ph,fh),j(dh,fh),j(vh,fh),j(gh,fh),j(mh,fh),j(yh,fh),j(bh,fh),j(_h,fh),j(wh,fh);var Eh=!1,Ih=null;function Th(t,e){Eh=!!e,Ih||("undefined"==typeof accountchooser&&Mu()?(e=Le(ke(new Ne(xe,"//www.gstatic.com/accountchooser/client.js"))),Ih=fi(Gi(e)).ta(function(){})):Ih=fi()),Ih.then(t,t)}function Sh(t,e){t=Dp(t),(t=Zs(t).accountChooserInvoked||null)?t(e):e()}function Ch(t,e,n){t=Dp(t),(t=Zs(t).accountChooserResult||null)?t(e,n):n()}function Ah(t,e,n,r,i){r?(vu("callback",t,e),Eh&&n()):Sh(t,function(){Ya(new qo(t.a.tenantId||null),_p(t)),bu(function(r){Ua(Da,_p(t)),Ch(t,r?"empty":"unavailable",function(){vu("signIn",t,e),(r||Eh)&&n()})},Wa(_p(t)),i)})}function Nh(t,e,n,r){function i(t){t=Ph(t),qh(e,n,void 0,t),r()}Ch(e,"accountSelected",function(){Ha(!1,_p(e));var o=Vh(e);Ap(e,yp(e).fetchSignInMethodsForEmail(t.a).then(function(i){Wh(e,n,i,t.a,t.h||void 0,void 0,o),r()},i))})}function kh(t,e,n,r){Ch(e,t?"addAccount":"unavailable",function(){vu("signIn",e,n),(t||Eh)&&r()})}function Oh(t,e,n,r){function i(){var e=t();e&&(e=Qs(Dp(e)))&&e()}yu(function(){var o=t();o&&Ah(o,e,i,n,r)},function(n){var r=t();r&&Nh(n,r,e,i)},function(n){var r=t();r&&kh(n,r,e,i)},t()&&Is(Dp(t())))}function xh(t,e,n,r){function i(n){if(!n.name||"cancel"!=n.name){t:{var r=n.message;try{var i=((JSON.parse(r).error||{}).message||"").toLowerCase().match(/invalid.+(access|id)_token/);if(i&&i.length){var o=!0;break t}}catch(a){}o=!1}if(o)n=dl(e),e.o(),qh(t,n,void 0,Nn("Your sign-in session has expired. Please try again.").toString());else{if(o=n&&n.message||"",n.code){if("auth/email-already-in-use"==n.code||"auth/credential-already-in-use"==n.code)return;o=Ph(n)}e.a(o)}}}if(kp(t),r)return Dh(t,n),fi();if(!n.credential)throw Error("No credential found!");if(r=yp(t).currentUser||n.user,!r)throw Error("User not logged in.");r=new Ro(r.email,r.displayName,r.photoURL,"password"==n.credential.providerId?null:n.credential.providerId),null!=Fa(Pa,_p(t))&&!Fa(Pa,_p(t))||Ga(r,_p(t)),Ua(Pa,_p(t));try{var o=Vp(t,n)}catch(a){return No(a.code||a.message,a),e.a(a.code||a.message),fi()}return n=o.then(function(e){Dh(t,e)},i).then(void 0,i),Ap(t,o),fi(n)}function Dh(t,e){if(!e.user)throw Error("No user found");var n=Xs(Dp(t));if(Ys(Dp(t))&&n&&Do("Both signInSuccess and signInSuccessWithAuthResult callbacks are provided. Only signInSuccessWithAuthResult callback will be invoked."),n){n=Xs(Dp(t));var r=Ba(_p(t))||void 0;Ua(Ra,_p(t));var i=!1;Ni()?(n&&!n(e,r)||(i=!0,window.opener.location.assign(je(Ve(Rh(t,r))))),n||window.close()):n&&!n(e,r)||(i=!0,Ai(Rh(t,r))),i||t.reset()}else{n=e.user,e=e.credential,r=Ys(Dp(t)),i=Ba(_p(t))||void 0,Ua(Ra,_p(t));var o=!1;Ni()?(r&&!r(n,e,i)||(o=!0,window.opener.location.assign(je(Ve(Rh(t,i))))),r||window.close()):r&&!r(n,e,i)||(o=!0,Ai(Rh(t,i))),o||t.reset()}}function Rh(t,e){if(t=e||Dp(t).a.get("signInSuccessUrl"),!t)throw Error("No redirect URL has been found. You must either specify a signInSuccessUrl in the configuration, pass in a redirect URL to the widget URL, or return false from the callback.");return t}function Ph(t){var e="";switch(t.code){case"auth/email-already-in-use":e+="The email address is already used by another account";break;case"auth/requires-recent-login":e+=Xn();break;case"auth/too-many-requests":e+="You have entered an incorrect password too many times. Please try again in a few minutes.";break;case"auth/user-cancelled":e+="Please authorize the required permissions to sign in to the application";break;case"auth/user-not-found":e+="That email address doesn't match an existing account";break;case"auth/user-token-expired":e+=Xn();break;case"auth/weak-password":e+="Strong passwords have at least 6 characters and a mix of letters and numbers";break;case"auth/wrong-password":e+="The email and password you entered don't match";break;case"auth/network-request-failed":e+="A network error has occurred";break;case"auth/invalid-phone-number":e+=zn();break;case"auth/invalid-verification-code":e+=Nn("Wrong code. Try again.");break;case"auth/code-expired":e+="This code is no longer valid";break;case"auth/expired-action-code":e+="This code has expired.";break;
129case"auth/invalid-action-code":e+="The action code is invalid. This can happen if the code is malformed, expired, or has already been used."}if(e=Nn(e).toString())return e;try{return JSON.parse(t.message),No("Internal error: "+t.message,void 0),$n().toString()}catch(n){return t.message}}function Lh(t,e,n){var i=ws[e]&&r["auth"][ws[e]]?new r["auth"][ws[e]]:0==e.indexOf("saml.")?new r["auth"].SAMLAuthProvider(e):new r["auth"].OAuthProvider(e);if(!i)throw Error("Invalid Firebase Auth provider!");var o=Ls(Dp(t),e);if(i.addScope)for(var a=0;a<o.length;a++)i.addScope(o[a]);return o=Ms(Dp(t),e)||{},n&&(t=e==r["auth"].GoogleAuthProvider.PROVIDER_ID?"login_hint":e==r["auth"].GithubAuthProvider.PROVIDER_ID?"login":(t=Os(Dp(t),e))&&t.Nb,t&&(o[t]=n)),i.setCustomParameters&&i.setCustomParameters(o),i}function Mh(t,e,n,r){function i(){Ya(new qo(t.a.tenantId||null),_p(t)),Ap(t,e.L(x(t.cc,t),[u],function(){if("file:"===(window.location&&window.location.protocol))return Ap(t,dp(t).then(function(n){e.o(),Ua(Da,_p(t)),vu("callback",t,s,fi(n))},o))},a))}function o(n){if(Ua(Da,_p(t)),!n.name||"cancel"!=n.name)switch(n.code){case"auth/popup-blocked":i();break;case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":break;case"auth/credential-already-in-use":break;case"auth/network-request-failed":case"auth/too-many-requests":case"auth/user-cancelled":e.a(Ph(n));break;default:e.o(),vu("callback",t,s,pi(n))}}function a(n){Ua(Da,_p(t)),n.name&&"cancel"==n.name||(No("signInWithRedirect: "+n.code,void 0),n=Ph(n),"blank"==e.Ea&&zs(Dp(t))?(e.o(),vu("providerSignIn",t,s,n)):e.a(n))}var s=dl(e),u=Lh(t,n,r);$s(Dp(t))==cu?i():Ap(t,Up(t,u).then(function(n){e.o(),vu("callback",t,s,fi(n))},o))}function jh(t,e){Ap(t,e.L(x(t.Zb,t),[],function(n){return e.o(),xh(t,e,n,!0)},function(t){t.name&&"cancel"==t.name||(No("ContinueAsGuest: "+t.code,void 0),t=Ph(t),e.a(t))}))}function Fh(t,e,n){function i(n){var r=!1;return n=e.L(x(t.$b,t),[n],function(n){var i=dl(e);e.o(),vu("callback",t,i,fi(n)),r=!0},function(n){if((!n.name||"cancel"!=n.name)&&(!n||"auth/credential-already-in-use"!=n.code))if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential){var r=dl(e);e.o(),vu("callback",t,r,pi(n))}else n=Ph(n),e.a(n)}),Ap(t,n),n.then(function(){return r},function(){return!1})}var o=Rs(Dp(t),n&&n.authMethod||null);return n&&n.idToken&&o===r["auth"].GoogleAuthProvider.PROVIDER_ID?(Ls(Dp(t),r["auth"].GoogleAuthProvider.PROVIDER_ID).length?(Mh(t,e,o,n.id),n=fi(!0)):n=i(r["auth"].GoogleAuthProvider.credential(n.idToken)),n):(n&&e.a(Nn("The selected credential for the authentication provider is not supported!").toString()),fi(!1))}function Uh(t,e){var n=e.j(),i=e.u();if(n)if(i){var o=r["auth"].EmailAuthProvider.credential(n,i);Ap(t,e.L(x(t.ac,t),[n,i],function(n){return xh(t,e,{user:n.user,credential:o,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})},function(t){if(!t.name||"cancel"!=t.name)switch(t.code){case"auth/email-already-in-use":break;case"auth/email-exists":Nc(e.l(),!1),Lc(e.U(),Ph(t));break;case"auth/too-many-requests":case"auth/wrong-password":Nc(e.i(),!1),Lc(e.D(),Ph(t));break;default:No("verifyPassword: "+t.message,void 0),e.a(Ph(t))}}))}else e.i().focus();else e.l().focus()}function Vh(t){return t=ks(Dp(t)),1==t.length&&t[0]==r["auth"].EmailAuthProvider.PROVIDER_ID}function Bh(t){return t=ks(Dp(t)),1==t.length&&t[0]==r["auth"].PhoneAuthProvider.PROVIDER_ID}function qh(t,e,n,r){Vh(t)?r?vu("signIn",t,e,n,r):Kh(t,e,n):t&&Bh(t)&&!r?vu("phoneSignInStart",t,e):t&&zs(Dp(t))&&!r?vu("federatedRedirect",t,e,n):vu("providerSignIn",t,e,r,n)}function Hh(t,e,n,r){var i=dl(e);Ap(t,e.L(x(yp(t).fetchSignInMethodsForEmail,yp(t)),[n],function(o){Ha(tu(Dp(t))==ou,_p(t)),e.o(),Wh(t,i,o,n,void 0,r)},function(t){t=Ph(t),e.a(t)}))}function Wh(t,e,n,i,o,a,s){n.length||Ws(Dp(t))?!n.length&&Ws(Dp(t))?vu("sendEmailLinkForSignIn",t,e,i,function(){vu("signIn",t,e)}):$(n,r["auth"].EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?vu("passwordSignIn",t,e,i,s):1==n.length&&n[0]===r["auth"].EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?vu("sendEmailLinkForSignIn",t,e,i,function(){vu("signIn",t,e)}):(n=bs(n,ks(Dp(t))))?($a(new Vo(i),_p(t)),vu("federatedSignIn",t,e,i,n,a)):vu("unsupportedProvider",t,e,i):vu("passwordSignUp",t,e,i,o,void 0,s)}function Gh(t,e,n,r,i,o){var a=dl(e);Ap(t,e.L(x(t.Hb,t),[n,o],function(){e.o(),vu("emailLinkSignInSent",t,a,n,r,o)},i))}function Kh(t,e,n){tu(Dp(t))==ou?Th(function(){gu?Sh(t,function(){Ya(new qo(t.a.tenantId||null),_p(t)),bu(function(r){Ua(Da,_p(t)),Ch(t,r?"empty":"unavailable",function(){n?vu("prefilledEmailSignIn",t,e,n):vu("signIn",t,e)})},Wa(_p(t)),Ts(Dp(t)))}):(Rp(t),Oh(mp,e,!1,Ts(Dp(t))))},!1):(Eh=!1,Sh(t,function(){Ch(t,"unavailable",function(){n?vu("prefilledEmailSignIn",t,e,n):vu("signIn",t,e)})}))}function zh(t){var e=xi();
129for(var n in t=Vs(Dp(t)),e=kt(e,t)||"",hu)if(hu[n].toLowerCase()==e.toLowerCase())return hu[n];return"callback"}function $h(t){var e=xi();return t=rs(Dp(t).a,"queryParameterForSignInSuccessUrl"),(e=kt(e,t))?je(Ve(e)):null}function Qh(){return kt(xi(),"oobCode")}function Yh(){var t=kt(xi(),"continueUrl");return t?function(){Ai(t)}:null}function Xh(t,e){var n=Oi(e,"Could not find the FirebaseUI widget element on the page.");switch(e=$h(t),zh(t)){case"callback":e&&qa(e,_p(t)),t.ob()?vu("callback",t,n):qh(t,n,wp(t));break;case"resetPassword":vu("passwordReset",t,n,Qh(),Yh());break;case"recoverEmail":vu("emailChangeRevocation",t,n,Qh());break;case"verifyEmail":vu("emailVerification",t,n,Qh(),Yh());break;case"signIn":vu("emailLinkSignInCallback",t,n,xi()),Fp();break;case"select":if(e&&qa(e,_p(t)),gu){qh(t,n);break}return void Th(function(){Rp(t),Oh(mp,n,!0)},!0);default:throw Error("Unhandled widget operation.")}(e=Qs(Dp(t)))&&e()}function Jh(t,e){fl.call(this,kl,void 0,e,"anonymousUserMismatch"),this.i=t}function Zh(t){fl.call(this,El,void 0,t,"callback")}function tf(t,e,n){if(n.user){var r={user:n.user,credential:n.credential,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo},i=Ka(_p(t)),o=i&&i.f;if(o&&!af(n.user,o))of(t,e,r);else{var a=i&&i.a;a?Ap(t,n.user.linkWithCredential(a).then(function(n){r={user:n.user,credential:a,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo},ef(t,e,r)},function(n){nf(t,e,n)})):ef(t,e,r)}}else n=dl(e),e.o(),za(_p(t)),qh(t,n)}function ef(t,e,n){za(_p(t)),xh(t,e,n)}function nf(t,e,n){var r=dl(e);za(_p(t)),n=Ph(n),e.o(),qh(t,r,void 0,n)}function rf(t,e,n,i){var o=dl(e);Ap(t,yp(t).fetchSignInMethodsForEmail(n).then(function(a){e.o(),a.length?$(a,r["auth"].EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?vu("passwordLinking",t,o,n):1==a.length&&a[0]===r["auth"].EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?vu("emailLinkSignInLinking",t,o,n):(a=bs(a,ks(Dp(t))))?vu("federatedLinking",t,o,n,a,i):(za(_p(t)),vu("unsupportedProvider",t,o,n)):(za(_p(t)),vu("passwordRecovery",t,o,n,!1,Qn().toString()))},function(n){nf(t,e,n)}))}function of(t,e,n){var r=dl(e);Ap(t,Bp(t).then(function(){e.o(),vu("emailMismatch",t,r,n)},function(t){t.name&&"cancel"==t.name||(t=Ph(t.code),e.a(t))}))}function af(t,e){if(e==t.email)return!0;if(t.providerData)for(var n=0;n<t.providerData.length;n++)if(e==t.providerData[n].email)return!0;return!1}function sf(t,e){fl.call(this,Nl,void 0,e,"differentDeviceError"),this.i=t}function uf(t,e,n,r){fl.call(this,Fl,{email:t,T:!!n},r,"emailChangeRevoke"),this.l=e,this.i=n||null}function cf(){return Sc(this,"firebaseui-id-new-password")}function lf(){return Sc(this,"firebaseui-id-password-toggle")}function hf(){this.Sa=!this.Sa;var t=lf.call(this),e=cf.call(this);this.Sa?(e.type="text",Uu(t,"firebaseui-input-toggle-off"),Vu(t,"firebaseui-input-toggle-on")):(e.type="password",Uu(t,"firebaseui-input-toggle-on"),Vu(t,"firebaseui-input-toggle-off")),e.focus()}function ff(){return Sc(this,"firebaseui-id-new-password-error")}function pf(){this.Sa=!1;var t=cf.call(this);t.type="password";var e=ff.call(this);kc(this,t,function(){Mc(e)&&(Nc(t,!0),Pc(e))});var n=lf.call(this);Uu(n,"firebaseui-input-toggle-on"),Vu(n,"firebaseui-input-toggle-off"),xc(this,t,function(){Uu(n,"firebaseui-input-toggle-focus"),Vu(n,"firebaseui-input-toggle-blur")}),Dc(this,t,function(){Uu(n,"firebaseui-input-toggle-blur"),Vu(n,"firebaseui-input-toggle-focus")}),Rc(this,n,x(hf,this))}function df(){var t=cf.call(this),e=ff.call(this);return Bu(t)?(Nc(t,!0),Pc(e),e=!0):(Nc(t,!1),Lc(e,Nn("Enter your password").toString()),e=!1),e?Bu(t):null}function vf(t,e,n){fl.call(this,Ll,{email:t},n,"passwordReset"),this.l=e}function gf(t,e,n,r,i){var o=n.u();o&&Ap(t,n.L(x(yp(t).confirmPasswordReset,yp(t)),[r,o],function(){n.o();var r=new mh(i);r.render(e),vp(t,r)},function(r){mf(t,e,n,r)}))}function mf(t,e,n,r){"auth/weak-password"==(r&&r.code)?(t=Ph(r),Nc(n.i(),!1),Lc(n.B(),t),n.i().focus()):(n&&n.o(),n=new yh,n.render(e),vp(t,n))}function yf(t,e,n){var r=new uf(n,function(){Ap(t,r.L(x(yp(t).sendPasswordResetEmail,yp(t)),[n],function(){r.o(),r=new ph(n,void 0,Bs(Dp(t)),qs(Dp(t))),r.render(e),vp(t,r)},function(){r.a(Nn("Unable to send password reset code to specified email").toString())}))});r.render(e),vp(t,r)}function bf(t,e){try{var n="number"==typeof t.selectionStart}catch(r){n=!1}n?(t.selectionStart=e,t.selectionEnd=e):pe&&!Ce("9")&&("textarea"==t.type&&(e=t.value.substring(0,e).replace(/(\r\n|\r|\n)/g,"\n").length),t=t.createTextRange(),t.collapse(!0),t.move("character",e),t.select())}function _f(t,e,n,r,i,o){fl.call(this,Al,{email:n},o,"emailLinkSignInConfirmation",{G:r,F:i}),this.l=t,this.u=e}function wf(t,e,n,r,i){fl.call(this,Dl,{ga:t},i,"emailLinkSignInLinkingDifferentDevice",{G:n,F:r}),this.i=e}function Ef(t){fl.call(this,Tl,void 0,t,"blank")}function If(t,e,n,r,i){var o=new Ef,a=new Jt(n),s=a.a.a.get(ie.ab)||"",u=a.a.a.get(ie.Ta)||"",c="1"===a.a.a.get(ie.Ra),l=ee(a),h=a.a.a.get(ie.PROVIDER_ID)||null;a=a.a.a.get(ie.xb)||null,Op(t,a);var f=!Fa(Ma,_p(t)),p=r||Xa(u,_p(t)),d=(r=Ja(u,_p(t)))&&r.a;h&&d&&d.providerId!==h&&(d=null),o.render(e),vp(t,o),Ap(t,o.L(function(){var e=fi(null);e=l&&f||f&&c?pi(Error("anonymous-user-not-found")):Lp(t,n).then(function(t){if(h&&!d)throw Error("pending-credential-not-found");return t});var r=null;return e.then(function(e){return r=e,i?null:yp(t).checkActionCode(s)}).then(function(){return r})},[],function(r){p?Cf(t,o,p,n,d,r):c?(o.o(),vu("differentDeviceError",t,e)):(o.o(),vu("emailLinkConfirmation",t,e,n,Tf))},function(r){var i=void 0;if(!r||!r.name||"cancel"!=r.name)switch(o.o(),r&&r.message){case"anonymous-user-not-found":vu("differentDeviceError",t,e);break;case"anonymous-user-mismatch":vu("anonymousUserMismatch",t,e);break;
129case"pending-credential-not-found":vu("emailLinkNewDeviceLinking",t,e,n,Sf);break;default:r&&(i=Ph(r)),qh(t,e,void 0,i)}}))}function Tf(t,e,n,r){If(t,e,r,n,!0)}function Sf(t,e,n){If(t,e,n)}function Cf(t,e,n,r,i,o){var a=dl(e);e.Z("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",Nn("Signing in...").toString());var s=null;i=(o?Mp(t,o,n,r,i):jp(t,n,r,i)).then(function(n){Ua(ja,_p(t)),Ua(Ma,_p(t)),e.h(),e.Z("firebaseui-icon-done",Nn("Signed in!").toString()),s=setTimeout(function(){e.h(),xh(t,e,n,!0)},1e3),Ap(t,function(){e&&(e.h(),e.o()),clearTimeout(s)})},function(i){if(e.h(),e.o(),!i.name||"cancel"!=i.name){var o=Ph(i);"auth/email-already-in-use"==i.code||"auth/credential-already-in-use"==i.code?(Ua(ja,_p(t)),Ua(Ma,_p(t))):"auth/invalid-email"==i.code?(o=Nn("The email provided does not match the current sign-in session.").toString(),vu("emailLinkConfirmation",t,a,r,Tf,null,o)):qh(t,a,n,o)}}),Ap(t,i)}function Af(t,e,n,r,i,o){fl.call(this,xl,{email:t,ga:e},o,"emailLinkSignInLinking",{G:r,F:i}),this.i=n}function Nf(t,e,n,r){var i=dl(e);Gh(t,e,n,function(){qh(t,i,n)},function(r){if(!r.name||"cancel"!=r.name){var o=Ph(r);r&&"auth/network-request-failed"==r.code?e.a(o):(e.o(),qh(t,i,n,o))}},r)}function kf(t,e,n,r,i,o){fl.call(this,Sl,{email:t},o,"emailLinkSignInSent",{G:r,F:i}),this.u=e,this.i=n}function Of(t,e,n,r,i,o,a){fl.call(this,Wl,{ic:t,Pb:e},a,"emailMismatch",{G:i,F:o}),this.l=n,this.i=r}function xf(t,e,n,r,i){fl.call(this,Cl,void 0,i,"emailNotReceived",{G:n,F:r}),this.l=t,this.i=e}function Df(t,e,n,r,i,o){fl.call(this,Rl,{email:t,ga:e},o,"federatedLinking",{G:r,F:i}),this.i=n}function Rf(t,e,n,r){var i=e.u();i?Ap(t,e.L(x(t.Wb,t),[n,i],function(n){return n=n.user.linkWithCredential(r).then(function(n){return xh(t,e,{user:n.user,credential:r,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo})}),Ap(t,n),n},function(t){if(!t.name||"cancel"!=t.name)switch(t.code){case"auth/wrong-password":Nc(e.i(),!1),Lc(e.D(),Ph(t));break;case"auth/too-many-requests":e.a(Ph(t));break;default:No("signInWithEmailAndPassword: "+t.message,void 0),e.a(Ph(t))}})):e.i().focus()}function Pf(t,e,n,r,i,o){fl.call(this,_l,{email:n,Ua:!!e},o,"passwordRecovery",{G:r,F:i}),this.l=t,this.u=e}function Lf(t,e){var n=e.j();if(n){var r=dl(e);Ap(t,e.L(x(yp(t).sendPasswordResetEmail,yp(t)),[n],function(){e.o();var i=new ph(n,function(){i.o(),qh(t,r)},Bs(Dp(t)),qs(Dp(t)));i.render(r),vp(t,i)},function(t){Nc(e.i(),!1),Lc(e.B(),Ph(t))}))}else e.i().focus()}function Mf(){return Sc(this,"firebaseui-id-name")}function jf(){return Sc(this,"firebaseui-id-name-error")}function Ff(t,e,n,r,i,o,a,s,u){fl.call(this,bl,{email:r,Sb:t,name:i,Ua:!!n,ia:!!s},u,"passwordSignUp",{G:o,F:a}),this.B=e,this.I=n,this.D=t}function Uf(t,e){var n=Hs(Dp(t)),i=e.j(),o=null;n&&(o=e.O());var a=e.R();if(i){if(n){if(!o)return void e.u().focus();o=ft(o)}if(a){var s=r["auth"].EmailAuthProvider.credential(i,a);Ap(t,e.L(x(t.Xb,t),[i,a],function(r){var i={user:r.user,credential:s,operationType:r.operationType,additionalUserInfo:r.additionalUserInfo};return n?(r=r.user.updateProfile({displayName:o}).then(function(){return xh(t,e,i)}),Ap(t,r),r):xh(t,e,i)},function(n){if(!n.name||"cancel"!=n.name){var r=Ph(n);switch(n.code){case"auth/email-already-in-use":return Vf(t,e,i,n);case"auth/too-many-requests":r=Nn("Too many account requests are coming from your IP address. Try again in a few minutes.").toString();case"auth/operation-not-allowed":case"auth/weak-password":Nc(e.l(),!1),Lc(e.ba(),r);break;default:n="setAccountInfo: "+fa(n),No(n,void 0),e.a(r)}}}))}else e.l().focus()}else e.i().focus()}function Vf(t,e,n,r){function i(){var t=Ph(r);Nc(e.i(),!1),Lc(e.U(),t),e.i().focus()}var o=yp(t).fetchSignInMethodsForEmail(n).then(function(r){r.length?i():(r=dl(e),e.o(),vu("passwordRecovery",t,r,n,!1,Qn().toString()))},function(){i()});return Ap(t,o),o}function Bf(){return Sc(this,"firebaseui-id-phone-confirmation-code")}function qf(){return Sc(this,"firebaseui-id-phone-confirmation-code-error")}function Hf(){return Sc(this,"firebaseui-id-resend-countdown")}function Wf(t,e,n,r,i,o,a,s,u){fl.call(this,zl,{phoneNumber:i},u,"phoneSignInFinish",{G:a,F:s}),this.kb=o,this.i=new Zu(1e3),this.D=o,this.R=t,this.l=e,this.I=n,this.O=r}function Gf(t,e,n,r){function i(t){e.u().focus(),Nc(e.u(),!1),Lc(e.pa(),t)}var o=e.ba();o?(e.Z("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",Nn("Verifying...").toString()),Ap(t,e.L(x(r.confirm,r),[o],function(n){e.h(),e.Z("firebaseui-icon-done",
129Nn("Verified!").toString());var r=setTimeout(function(){e.h(),e.o();var r={user:bp(t).currentUser,credential:null,operationType:n.operationType,additionalUserInfo:n.additionalUserInfo};xh(t,e,r,!0)},1e3);Ap(t,function(){e&&e.h(),clearTimeout(r)})},function(r){if(r.name&&"cancel"==r.name)e.h();else{var o=Ph(r);switch(r.code){case"auth/credential-already-in-use":e.h();break;case"auth/code-expired":r=dl(e),e.h(),e.o(),vu("phoneSignInStart",t,r,n,o);break;case"auth/missing-verification-code":case"auth/invalid-verification-code":e.h(),i(o);break;default:e.h(),e.a(o)}}}))):i(Nn("Wrong code. Try again.").toString())}c(Jh,fl),Jh.prototype.v=function(){var t=this;Rc(this,this.l(),function(){t.i()}),this.l().focus(),fl.prototype.v.call(this)},Jh.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(Jh.prototype,{l:Jl}),du.anonymousUserMismatch=function(t,e){var n=new Jh(function(){n.o(),qh(t,e)});n.render(e),vp(t,n)},c(Zh,fl),Zh.prototype.L=function(t,e,n,r){return t.apply(null,e).then(n,r)},du.callback=function(t,e,n){var r=new Zh;r.render(e),vp(t,r),e=n||dp(t),Ap(t,e.then(function(e){tf(t,r,e)},function(e){if(e&&("auth/account-exists-with-different-credential"==e.code||"auth/email-already-in-use"==e.code)&&e.email&&e.credential)$a(new Vo(e.email,e.credential),_p(t)),rf(t,r,e.email);else if(e&&"auth/user-cancelled"==e.code){var n=Ka(_p(t)),i=Ph(e);n&&n.a?rf(t,r,n.f,i):n?Hh(t,r,n.f,i):nf(t,r,e)}else e&&"auth/credential-already-in-use"==e.code||(e&&"auth/operation-not-supported-in-this-environment"==e.code&&Vh(t)?tf(t,r,{user:null,credential:null}):nf(t,r,e))}))},c(sf,fl),sf.prototype.v=function(){var t=this;Rc(this,this.l(),function(){t.i()}),this.l().focus(),fl.prototype.v.call(this)},sf.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(sf.prototype,{l:Jl}),du.differentDeviceError=function(t,e){var n=new sf(function(){n.o(),qh(t,e)});n.render(e),vp(t,n)},c(uf,fl),uf.prototype.v=function(){var t=this;Rc(this,Sc(this,"firebaseui-id-reset-password-link"),function(){t.l()}),this.i&&(this.B(this.i),this.u().focus()),fl.prototype.v.call(this)},uf.prototype.s=function(){this.l=this.i=null,fl.prototype.s.call(this)},R(uf.prototype,{u:Xl,D:Jl,B:Zl}),c(vf,fl),vf.prototype.v=function(){this.I(),this.D(this.l),gl(this,this.i(),this.l),this.i().focus(),fl.prototype.v.call(this)},vf.prototype.s=function(){this.l=null,fl.prototype.s.call(this)},R(vf.prototype,{i:cf,B:ff,O:lf,I:pf,u:df,U:Xl,R:Jl,D:Zl}),du.passwordReset=function(t,e,n,r){Ap(t,yp(t).verifyPasswordResetCode(n).then(function(i){var o=new vf(i,function(){gf(t,e,o,n,r)});o.render(e),vp(t,o)},function(){mf(t,e)}))},du.emailChangeRevocation=function(t,e,n){var r=null;Ap(t,yp(t).checkActionCode(n).then(function(e){return r=e.data.email,yp(t).applyActionCode(n)}).then(function(){yf(t,e,r)},function(){var n=new bh;n.render(e),vp(t,n)}))},du.emailVerification=function(t,e,n,r){Ap(t,yp(t).applyActionCode(n).then(function(){var n=new dh(r);n.render(e),vp(t,n)},function(){var n=new vh;n.render(e),vp(t,n)}))},c(_f,fl),_f.prototype.v=function(){this.B(this.l),this.D(this.l,this.u),this.i().focus(),bf(this.i(),(this.i().value||"").length),fl.prototype.v.call(this)},_f.prototype.s=function(){this.u=this.l=null,fl.prototype.s.call(this)},R(_f.prototype,{i:ah,O:sh,B:uh,I:ch,j:lh,U:Xl,R:Jl,D:Zl}),du.emailLinkConfirmation=function(t,e,n,r,i,o){var a=new _f(function(){var i=a.j();i?(a.o(),r(t,e,i,n)):a.i().focus()},function(){a.o(),qh(t,e,i||void 0)},i||void 0,Bs(Dp(t)),qs(Dp(t)));a.render(e),vp(t,a),o&&a.a(o)},c(wf,fl),wf.prototype.v=function(){this.u(this.i),this.l().focus(),fl.prototype.v.call(this)},wf.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(wf.prototype,{l:Xl,u:Zl}),du.emailLinkNewDeviceLinking=function(t,e,n,r){var i=new Jt(n);if(n=i.a.a.get(ie.PROVIDER_ID)||null,ne(i,null),n){var o=new wf(Os(Dp(t),n),function(){o.o(),r(t,e,i.toString())},Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o)}else qh(t,e)},c(Ef,fl),du.emailLinkSignInCallback=If,c(Af,fl),Af.prototype.v=function(){this.u(this.i),this.l().focus(),fl.prototype.v.call(this)},Af.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(Af.prototype,{l:Xl,u:Zl}),du.emailLinkSignInLinking=function(t,e,n){var r=Ka(_p(t));if(za(_p(t)),r){var i=r.a.providerId,o=new Af(n,Os(Dp(t),i),function(){Nf(t,o,n,r)},Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o)}else qh(t,e)},c(kf,fl),kf.prototype.v=function(){var t=this;Rc(this,this.l(),function(){t.i()}),Rc(this,Sc(this,"firebaseui-id-trouble-getting-email-link"),function(){t.u()}),this.l().focus(),fl.prototype.v.call(this)},kf.prototype.s=function(){this.i=this.u=null,fl.prototype.s.call(this)},R(kf.prototype,{l:Jl}),du.emailLinkSignInSent=function(t,e,n,r,i){var o=new kf(n,function(){o.o(),vu("emailNotReceived",t,e,n,r,i)},function(){o.o(),r()},Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o)},c(Of,fl),Of.prototype.v=function(){this.B(this.l,this.i),this.u().focus(),fl.prototype.v.call(this)},Of.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(Of.prototype,{u:Xl,D:Jl,B:Zl}),du.emailMismatch=function(t,e,n){var r=Ka(_p(t));if(r){var i=new Of(n.user.email,r.f,function(){var e=i;za(_p(t)),xh(t,e,n)},function(){var e=n.credential.providerId,o=dl(i);i.o(),r.a?vu("federatedLinking",t,o,r.f,e):vu("federatedSignIn",t,o,r.f,e)},Bs(Dp(t)),qs(Dp(t)));i.render(e),vp(t,i)}else qh(t,e)},c(xf,fl),xf.prototype.v=function(){var t=this;Rc(this,this.u(),function(){t.i()}),Rc(this,this.Ba(),function(){t.l()}),this.u().focus(),fl.prototype.v.call(this)},xf.prototype.Ba=function(){return Sc(this,"firebaseui-id-resend-email-link")},xf.prototype.s=function(){this.i=this.l=null,fl.prototype.s.call(this)},R(xf.prototype,{u:Jl}),du.emailNotReceived=function(t,e,n,r,i){var o=new xf(function(){Gh(t,o,n,r,function(t){t=Ph(t),o.a(t)},i)},function(){o.o(),qh(t,e,n)},Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o)},c(Df,fl),Df.prototype.v=function(){this.u(this.i),this.l().focus(),fl.prototype.v.call(this)},Df.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(Df.prototype,{l:Xl,u:Zl}),du.federatedLinking=function(t,e,n,r,i){var o=Ka(_p(t));if(o&&o.a){var a=new Df(n,Os(Dp(t),r),function(){Mh(t,a,r,n)},Bs(Dp(t)),qs(Dp(t)));a.render(e),vp(t,a),i&&a.a(i)}else qh(t,e)},du.federatedRedirect=function(t,e,n){var r=new Ef;r.render(e),vp(t,r),e=ks(Dp(t))[0],Mh(t,r,e,n)},du.federatedSignIn=function(t,e,n,r,i){var o=new Df(n,Os(Dp(t),r),function(){Mh(t,o,r,n)},Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o),i&&o.a(i)},du.passwordLinking=function(t,e,n){var r=Ka(_p(t));za(_p(t));var i=r&&r.a;if(i){var o=new ih(n,function(){Rf(t,o,n,i)},function(){o.o(),vu("passwordRecovery",t,e,n)},Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o)}else qh(t,e)},c(Pf,fl),Pf.prototype.v=function(){this.D(),this.I(this.l,this.u),Bu(this.i())||this.i().focus(),gl(this,this.i(),this.l),fl.prototype.v.call(this)},Pf.prototype.s=function(){this.u=this.l=null,fl.prototype.s.call(this)},R(Pf.prototype,{i:ah,B:sh,D:uh,O:ch,j:lh,U:Xl,R:Jl,I:Zl}),du.passwordRecovery=function(t,e,n,r,i){var o=new Pf(function(){Lf(t,o)},r?void 0:function(){o.o(),qh(t,e)},n,Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o),i&&o.a(i)},du.passwordSignIn=function(t,e,n,r){var i=new hh(function(){Uh(t,i)},function(){var n=i.O();i.o(),vu("passwordRecovery",t,e,n)},n,Bs(Dp(t)),qs(Dp(t)),r);i.render(e),vp(t,i)},c(Ff,fl),Ff.prototype.v=function(){this.ea(),this.D&&this.Ja(),this.ua(),this.pa(this.B,this.I),this.D?(vl(this,this.i(),this.u()),vl(this,this.u(),this.l())):vl(this,this.i(),this.l()),this.B&&gl(this,this.l(),this.B),Bu(this.i())?this.D&&!Bu(this.u())?this.u().focus():this.l().focus():this.i().focus(),fl.prototype.v.call(this)},Ff.prototype.s=function(){this.I=this.B=null,fl.prototype.s.call(this)},R(Ff.prototype,{i:ah,U:sh,ea:uh,kb:ch,j:lh,u:Mf,Ac:jf,Ja:function(){var t=Mf.call(this),e=jf.call(this);kc(this,t,function(){Mc(e)&&(Nc(t,!0),Pc(e))})},O:function(){var t=Mf.call(this),e=jf.call(this),n=Bu(t);return n=!/^[\s\xa0]*$/.test(null==n?"":String(n)),Nc(t,n),n?(Pc(e),e=!0):(Lc(e,Nn("Enter your account name").toString()),e=!1),e?rt(Bu(t)):null},l:cf,ba:ff,mb:lf,ua:pf,R:df,Mb:Xl,Lb:Jl,pa:Zl}),du.passwordSignUp=function(t,e,n,r,i,o){function a(){s.o(),qh(t,e)}var s=new Ff(Hs(Dp(t)),function(){Uf(t,s)},i?void 0:a,n,r,Bs(Dp(t)),qs(Dp(t)),o);s.render(e),vp(t,s)},c(Wf,fl),Wf.prototype.v=function(){var t=this;this.U(this.kb),wr(this.i,"tick",this.B,!1,this),this.i.start(),Rc(this,Sc(this,"firebaseui-id-change-phone-number-link"),function(){t.R()}),Rc(this,this.Ba(),function(){t.O()}),this.Ja(this.l),this.ea(this.l,this.I),this.u().focus(),fl.prototype.v.call(this)},Wf.prototype.s=function(){this.O=this.I=this.l=this.R=null,tc(this.i),Sr(this.i,"tick",this.B),this.i=null,fl.prototype.s.call(this)},Wf.prototype.B=function(){--this.D,0<this.D?this.U(this.D):(tc(this.i),Sr(this.i,"tick",this.B),this.ua(),this.mb())},R(Wf.prototype,{u:Bf,pa:qf,Ja:function(t){var e=Bf.call(this),n=qf.call(this);kc(this,e,function(){Mc(n)&&(Nc(e,!0),Pc(n))}),t&&Oc(this,e,function(){t()})},ba:function(){var t=rt(Bu(Bf.call(this))||"");return/^\d{6}$/.test(t)?t:null},Eb:Hf,U:function(t){ln(Hf.call(this),Nn("Resend code in "+(9<t?"0:":"0:0")+t).toString())},ua:function(){Pc(this.Eb())},Ba:function(){return Sc(this,"firebaseui-id-resend-link")},mb:function(){Lc(this.Ba())},Mb:Xl,Lb:Jl,ea:Zl}),du.phoneSignInFinish=function(t,e,n,r,i,o){var a=new Wf(function(){a.o(),vu("phoneSignInStart",t,e,n)},function(){Gf(t,a,n,i)},function(){a.o(),qh(t,e)},function(){a.o(),vu("phoneSignInStart",t,e,n)},ys(n),r,Bs(Dp(t)),qs(Dp(t)));a.render(e),vp(t,a),o&&a.a(o)};var Kf=!pe&&!(se("Safari")&&!(ue()||se("Coast")||se("Opera")||se("Edge")||se("Firefox")||se("FxiOS")||se("Silk")||se("Android")));function zf(t,e){return/-[a-z]/.test(e)?null:Kf&&t.dataset?!se("Android")||ue()||se("Firefox")||se("FxiOS")||se("Opera")||se("Silk")||e in t.dataset?(t=t.dataset[e],void 0===t?null:t):null:t.getAttribute("data-"+String(e).replace(/([A-Z])/g,"-$1").toLowerCase())}function $f(t,e,n){var r=this;t=bn(Xc,{items:t},null,this.m),il.call(this,t,!0,!0),n&&(n=Qf(t,n))&&(n.focus(),bc(n,t)),Rc(this,t,function(t){(t=(t=hn(t.target,"firebaseui-id-list-box-dialog-button"))&&zf(t,"listboxid"))&&(ol.call(r),e(t))})}function Qf(t,e){t=(t||document).getElementsByTagName("BUTTON");for(var n=0;n<t.length;n++)if(zf(t[n],"listboxid")===e)return t[n];return null}function Yf(){return Sc(this,"firebaseui-id-phone-number")}function Xf(){return Sc(this,"firebaseui-id-country-selector")}function Jf(){return Sc(this,"firebaseui-id-phone-number-error")}function Zf(t,e){var n=t.a,r=tp("1-US-0",n),i=null;if(i=e&&tp(e,n)?e:r?"1-US-0":0<n.length?n[0].c:null,!i)throw Error("No available default country");ip.call(this,i,t)}function tp(t,e){return t=ls(t),!(!t||!$(e,t))}function ep(t){return G(t,function(t){return{id:t.c,Ma:"firebaseui-flag "+np(t),label:t.name+" ‎+"+t.b}})}function np(t){return"firebaseui-flag-"+t.g}function rp(t){var e=this;$f.call(this,ep(t.a),function(n){ip.call(e,n,t,!0),e.M().focus()},this.Aa)}function ip(t,e,n){var r=ls(t);r&&(n&&(n=rt(Bu(Yf.call(this))||""),e=cs(e,n),e.length&&e[0].b!=r.b&&(n="+"+r.b+n.substr(e[0].b.length+1),qu(Yf.call(this),n)
129)),e=ls(this.Aa),this.Aa=t,t=Sc(this,"firebaseui-id-country-selector-flag"),e&&Vu(t,np(e)),Uu(t,np(r)),ln(Sc(this,"firebaseui-id-country-selector-code"),"‎+"+r.b))}function op(t,e,n,r,i,o,a,s,u,c){fl.call(this,Kl,{Fb:e,za:u||null,Wa:!!n,ia:!!o},c,"phoneSignInStart",{G:r,F:i}),this.I=s||null,this.O=e,this.l=t,this.B=n||null,this.pa=a||null}function ap(t,e,n,r){try{var i=e.U(ru)}catch(o){return}i?eu?(e.Z("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",Nn("Verifying...").toString()),Ap(t,e.L(x(t.bc,t),[ys(i),n],function(n){var r=dl(e);e.Z("firebaseui-icon-done",Nn("Code sent!").toString());var o=setTimeout(function(){e.h(),e.o(),vu("phoneSignInFinish",t,r,i,15,n)},1e3);Ap(t,function(){e&&e.h(),clearTimeout(o)})},function(t){if(e.h(),!t.name||"cancel"!=t.name){grecaptcha.reset(iu),eu=null;var n=t&&t.message||"";if(t.code)switch(t.code){case"auth/too-many-requests":n=Nn("This phone number has been used too many times").toString();break;case"auth/invalid-phone-number":case"auth/missing-phone-number":return e.M().focus(),void Lc(e.D(),zn().toString());default:n=Ph(t)}e.a(n)}}))):nu?Lc(e.u(),Nn("Solve the reCAPTCHA").toString()):!nu&&r&&e.i().click():(e.M().focus(),Lc(e.D(),zn().toString()))}function sp(t,e,n,r,i){fl.call(this,Gl,{Rb:e},i,"providerSignIn",{G:n,F:r}),this.i=t}function up(t,e,n,r,i,o,a){fl.call(this,ml,{email:n,Wa:!!e,ia:!!o},a,"signIn",{G:r,F:i}),this.i=t,this.u=e}function cp(t,e,n,r,i,o){fl.call(this,Pl,{email:t},o,"unsupportedProvider",{G:r,F:i}),this.l=e,this.i=n}function lp(t,e){this.Z=!1;var n=pp(e);if(fp[n])throw Error('An AuthUI instance already exists for the key "'+n+'"');fp[n]=this,this.f=t,this.u=null,this.X=!1,hp(this.f),this.a=r["initializeApp"]({apiKey:t.app.options.apiKey,authDomain:t.app.options.authDomain},t.app.name+"-firebaseui-temp").auth(),hp(this.a),this.a.setPersistence&&this.a.setPersistence(r["auth"].Auth.Persistence.SESSION),this.oa=e,this.ca=new Es,this.h=this.N=this.i=this.H=this.M=null,this.m=[],this.Y=!1,this.l=Ji.Ya(),this.j=this.C=null,this.da=this.w=!1}function hp(t){t&&t.INTERNAL&&t.INTERNAL.logFramework&&t.INTERNAL.logFramework("FirebaseUI-web")}c(op,fl),op.prototype.v=function(){this.ea(this.pa,this.I),this.R(this.l,this.B||void 0),this.O||vl(this,this.M(),this.i()),gl(this,this.i(),this.l),this.M().focus(),bf(this.M(),(this.M().value||"").length),fl.prototype.v.call(this)},op.prototype.s=function(){this.B=this.l=null,fl.prototype.s.call(this)},R(op.prototype,{Db:al,M:Yf,D:Jf,ea:function(t,e,n){var r=this,i=Yf.call(this),o=Xf.call(this),a=Jf.call(this),s=t||vs,u=s.a;if(0==u.length)throw Error("No available countries provided.");Zf.call(r,s,e),Rc(this,o,function(){rp.call(r,s)}),kc(this,i,function(){Mc(a)&&(Nc(i,!0),Pc(a));var t=rt(Bu(i)||""),e=ls(this.Aa),n=cs(s,t);t=tp("1-US-0",u),n.length&&n[0].b!=e.b&&(e=n[0],ip.call(r,"1"==e.b&&t?"1-US-0":e.c,s))}),n&&Oc(this,i,function(){n()})},U:function(t){var e=rt(Bu(Yf.call(this))||"");t=t||vs;var n=t.a,r=cs(vs,e);if(r.length&&!$(n,r[0]))throw qu(Yf.call(this)),Yf.call(this).focus(),Lc(Jf.call(this),Nn("The country code provided is not supported.").toString()),Error("The country code provided is not supported.");return n=ls(this.Aa),r.length&&r[0].b!=n.b&&ip.call(this,r[0].c,t),r.length&&(e=e.substr(r[0].b.length+1)),e?new gs(this.Aa,e):null},Ja:Xf,ba:function(){return Sc(this,"firebaseui-recaptcha-container")},u:function(){return Sc(this,"firebaseui-id-recaptcha-error")},i:Xl,ua:Jl,R:Zl}),du.phoneSignInStart=function(t,e,n,i){var o=Ps(Dp(t))||{};eu=null,nu=!(o&&"invisible"===o.size);var a=Bh(t),s=Fs(Dp(t)),u=a?js(Dp(t)):null;s=n&&n.a||s&&s.c||null,n=n&&n.za||u,(u=Us(Dp(t)))&&ps(u),ru=u?new us(Us(Dp(t))):vs;var c=new op(function(e){ap(t,c,l,!(!e||!e.keyCode))},nu,a?null:function(){l.clear(),c.o(),qh(t,e)},Bs(Dp(t)),qs(Dp(t)),a,ru,s,n);c.render(e),vp(t,c),i&&c.a(i),o.callback=function(e){c.u()&&Pc(c.u()),eu=e,nu||ap(t,c,l)},o["expired-callback"]=function(){eu=null};var l=new r["auth"].RecaptchaVerifier(nu?c.ba():c.i(),o,bp(t).app);Ap(t,c.L(x(l.render,l),[],function(t){iu=t},function(n){n.name&&"cancel"==n.name||(n=Ph(n),c.o(),qh(t,e,void 0,n))}))},du.prefilledEmailSignIn=function(t,e,n){var r=new Ef;r.render(e),vp(t,r),Ap(t,r.L(x(yp(t).fetchSignInMethodsForEmail,yp(t)),[n],function(i){r.o();var o=!(!Vh(t)||!wp(t));
129Wh(t,e,i,n,void 0,void 0,o)},function(i){i=Ph(i),r.o(),vu("signIn",t,e,n,i)}))},c(sp,fl),sp.prototype.v=function(){this.l(this.i),fl.prototype.v.call(this)},sp.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(sp.prototype,{l:function(t){function e(e){t(e)}for(var n=this.f?en("firebaseui-id-idp-button",this.f||this.m.a):[],r=0;r<n.length;r++){var i=n[r],o=zf(i,"providerId");Rc(this,i,D(e,o))}}}),du.providerSignIn=function(t,e,n,i){var o=new sp(function(n){n==r["auth"].EmailAuthProvider.PROVIDER_ID?(o.o(),Kh(t,e,i)):n==r["auth"].PhoneAuthProvider.PROVIDER_ID?(o.o(),vu("phoneSignInStart",t,e)):"anonymous"==n?jh(t,o):Mh(t,o,n,i),Rp(t),t.l.cancel()},xs(Dp(t)),Bs(Dp(t)),qs(Dp(t)));o.render(e),vp(t,o),n&&o.a(n),Pp(t)},du.sendEmailLinkForSignIn=function(t,e,n,r){var i=new Zh;i.render(e),vp(t,i),Gh(t,i,n,r,function(r){i.o(),r=Ph(r),vu("signIn",t,e,n,r)})},c(up,fl),up.prototype.v=function(){this.B(this.i),this.D(this.i,this.u||void 0),this.l().focus(),bf(this.l(),(this.l().value||"").length),fl.prototype.v.call(this)},up.prototype.s=function(){this.u=this.i=null,fl.prototype.s.call(this)},R(up.prototype,{l:ah,O:sh,B:uh,I:ch,j:lh,U:Xl,R:Jl,D:Zl}),du.signIn=function(t,e,n,r){var i=Vh(t),o=i&&tu(Dp(t))!=ou,a=new up(function(){var e=a,n=e.j()||"";n&&Hh(t,e,n)},o?null:function(){a.o(),qh(t,e,n)},n,Bs(Dp(t)),qs(Dp(t)),i);a.render(e),vp(t,a),r&&a.a(r)},c(cp,fl),cp.prototype.v=function(){this.B(this.l,this.i),this.u().focus(),fl.prototype.v.call(this)},cp.prototype.s=function(){this.i=this.l=null,fl.prototype.s.call(this)},R(cp.prototype,{u:Xl,D:Jl,B:Zl}),du.unsupportedProvider=function(t,e,n){var r=new cp(n,function(){r.o(),vu("passwordRecovery",t,e,n)},function(){r.o(),qh(t,e,n)},Bs(Dp(t)),qs(Dp(t)));r.render(e),vp(t,r)};var fp={};function pp(t){return t||"[DEFAULT]"}function dp(t){return Rp(t),t.i||(t.i=Sp(t,function(e){return e&&!Ka(_p(t))?fi(bp(t).getRedirectResult().then(function(t){return t},function(e){if(e&&"auth/email-already-in-use"==e.code&&e.email&&e.credential)throw e;return qp(t,e)})):fi(yp(t).getRedirectResult().then(function(e){return Cs(Dp(t))&&!e.user&&t.j&&!t.j.isAnonymous?bp(t).getRedirectResult():e}))})),t.i}function vp(t,e){Rp(t),t.h=e}var gp=null;function mp(){return gp}function yp(t){return Rp(t),t.a}function bp(t){return Rp(t),t.f}function _p(t){return Rp(t),t.oa}function wp(t){return Rp(t),t.M?t.M.emailHint:void 0}function Ep(t){return t=new Jt(t),"signIn"===(t.a.a.get(ie.wb)||null)&&!!t.a.a.get(ie.ab)}function Ip(t,e,n,r){Rp(t),"undefined"!==typeof t.f.languageCode&&(t.u=t.f.languageCode);var i="en".replace(/_/g,"-");t.f.languageCode=i,t.a.languageCode=i,t.X=!0,"undefined"!==typeof t.f.tenantId&&(t.a.tenantId=t.f.tenantId),t.jb(n),t.M=r||null;var o=v.document;t.C?t.C.then(function(){"complete"==o.readyState?Tp(t,e):Tr(window,"load",function(){Tp(t,e)})}):"complete"==o.readyState?Tp(t,e):Tr(window,"load",function(){Tp(t,e)})}function Tp(t,e){var n=Oi(e,"Could not find the FirebaseUI widget element on the page.");if(n.setAttribute("lang","en".replace(/_/g,"-")),gp){var r=gp;Rp(r),Ka(_p(r))&&Do("UI Widget is already rendered on the page and is pending some user interaction. Only one widget instance can be rendered per page. The previous instance has been automatically reset."),gp.reset()}gp=t,t.N=n,xp(t,n),wa(new Ea)&&wa(new Ia)?Xh(t,e):(e=Oi(e,"Could not find the FirebaseUI widget element on the page."),n=new wh(Nn("The browser you are using does not support Web Storage. Please try again in a different browser.").toString()),n.render(e),vp(t,n)),e=t.h&&"blank"==t.h.Ea&&zs(Dp(t)),Qa(_p(t))&&!e&&(e=Qa(_p(t)),Op(t,e.a),Ua(Da,_p(t)))}function Sp(t,e){if(t.w)return e(Cp(t));if(Ap(t,function(){t.w=!1}),Cs(Dp(t))){var n=new oi(function(n){Ap(t,t.f.onAuthStateChanged(function(r){t.j=r,t.w||(t.w=!0,n(e(Cp(t))))}))});return Ap(t,n),n}return t.w=!0,e(null)}function Cp(t){return Rp(t),Cs(Dp(t))&&t.j&&t.j.isAnonymous?t.j:null}function Ap(t,e){if(Rp(t),e){t.m.push(e);var n=function(){J(t.m,function(t){return t==e})};"function"!=typeof e&&e.then(n,n)}}function Np(t){var e;return Rp(t),(e=t.Y)||(t=Dp(t),t=Ms(t,r["auth"].GoogleAuthProvider.PROVIDER_ID),e=!(!t||"select_account"!==t.prompt)),e}function kp(t){"undefined"!==typeof t.f.languageCode&&t.X&&(t.X=!1,t.f.languageCode=t.u)}function Op(t,e){t.f.tenantId=e,t.a.tenantId=e}function xp(t,e){t.J=null,t.H=new qr(e),t.H.register(),wr(t.H,"pageEnter",function(e){if(e=e&&e.pageId,t.J!=e){var n=Dp(t);(n=Zs(n).uiChanged||null)&&n(t.J,e),t.J=e}})}function Dp(t){return Rp(t),t.ca}function Rp(t){if(t.Z)throw Error("AuthUI instance is deleted!")}function Pp(t){Rp(t);try{Zi(t.l,Ds(Dp(t)),Np(t)).then(function(e){return!!t.h&&Fh(t,t.h,e)})}catch(e){}}function Lp(t,e){var n=ee(new Jt(e));return n?(e=new oi(function(e,r){var i=bp(t).onAuthStateChanged(function(t){i(),t&&t.isAnonymous&&t.uid===n?e(t):t&&t.isAnonymous&&t.uid!==n?r(Error("anonymous-user-mismatch")):r(Error("anonymous-user-not-found"))});Ap(t,i)}),Ap(t,e),e):fi(null)}function Mp(t,e,n,i,o){Rp(t);var a=o||null,s=r["auth"].EmailAuthProvider.credentialWithLink(n,i);return n=a?yp(t).signInWithEmailLink(n,i).then(function(t){return t.user.linkWithCredential(a)}).then(function(){return Bp(t)}).then(function(){return qp(t,{code:"auth/email-already-in-use"},a)}):yp(t).fetchSignInMethodsForEmail(n).then(function(n){return n.length?qp(t,{code:"auth/email-already-in-use"},s):e.linkWithCredential(s)}),Ap(t,n),n}function jp(t,e,n,r){Rp(t);var i,o=r||null;return e=yp(t).signInWithEmailLink(e,n).then(function(t){if(i={user:t.user,credential:null,operationType:t.operationType,additionalUserInfo:t.additionalUserInfo},o)return t.user.linkWithCredential(o).then(function(t){i={user:t.user,credential:o,operationType:i.operationType,additionalUserInfo:t.additionalUserInfo}})}).then(function(){Bp(t)}).then(function(){return bp(t).updateCurrentUser(i.user)}).then(function(){return i.user=bp(t).currentUser,i}),Ap(t,e),e}function Fp(){var t=xi();if(Ep(t)){for(var e in t=new Jt(t),ie)ie.hasOwnProperty(e)&&zt(t.a.a,ie[e]);e={state:"signIn",mode:"emailLink",operation:"clear"};var n=v.document.title;v.history&&v.history.replaceState&&v.history.replaceState(e,n,t.toString())}}function Up(t,e){return Rp(t),Sp(t,function(n){return n&&!Ka(_p(t))?n.linkWithPopup(e).then(function(t){return t},function(e){if(e&&"auth/email-already-in-use"==e.code&&e.email&&e.credential)throw e;return qp(t,e)}):yp(t).signInWithPopup(e)})}function Vp(t,e){return Rp(t),Sp(t,function(n){if(t.j&&!t.j.isAnonymous&&Cs(Dp(t))&&!yp(t).currentUser)return Bp(t).then(function(){return"password"==e.credential.providerId&&(e.credential=null),e});if(n)return Bp(t).then(function(){return n.linkWithCredential(e.credential)}).then(function(t){return e.user=t.user,e.credential=t.credential,e.operationType=t.operationType,e.additionalUserInfo=t.additionalUserInfo,e},function(n){if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential)throw n;return qp(t,n,e.credential)});if(!e.user)throw Error('Internal error: An incompatible or outdated version of "firebase.js" may be used.');return Bp(t).then(function(){return bp(t).updateCurrentUser(e.user)}).then(function(){return e.user=bp(t).currentUser,e.operationType="signIn",e.credential&&e.credential.providerId&&"password"==e.credential.providerId&&(e.credential=null),e})})}function Bp(t){return Rp(t),yp(t).signOut()}function qp(t,e,n){if(Rp(t),e&&e.code&&("auth/email-already-in-use"==e.code||"auth/credential-already-in-use"==e.code)){var r=Js(Dp(t));return fi().then(function(){return r(new Jn("anonymous-upgrade-merge-conflict",null,n||e.credential))}).then(function(){throw t.h&&(t.h.o(),t.h=null),e})}return pi(e)}function Hp(t,e,n,r){fl.call(this,Yl,void 0,r,"providerMatchByEmail",{G:e,F:n}),this.i=t}function Wp(t,e,n,r,i){fl.call(this,Ql,{dc:e},i,"selectTenant",{G:n,F:r}),this.i=t}function Gp(t,e){function n(t){e(t)}for(var r=t.f?en("firebaseui-id-tenant-selection-button",t.f||t.m.a):[],i=0;i<r.length;i++){var o=r[i],a=zf(o,"tenantId");Rc(t,o,D(n,a))}}function Kp(t){fl.call(this,Il,void 0,t,"spinner")}function zp(t){for(var e in this.a=new ts,es(this.a,"authDomain"),es(this.a,"displayMode",rd),es(this.a,"tenants"),es(this.a,"callbacks"),es(this.a,"tosUrl"),es(this.a,"privacyPolicyUrl"),t)if(t.hasOwnProperty(e))try{ns(this.a,e,t[e])}catch(n){No('Invalid config: "'+e+'"',void 0)}}function $p(t){for(var e in t=t.a.get("displayMode"),id)if(id[e]===t)return id[e];return rd}function Qp(t){return t.a.get("callbacks")||{}}function Yp(t){var e=t.a.get("tosUrl")||null;if(t=t.a.get("privacyPolicyUrl")||null,e&&!t&&Do("Privacy Policy URL is missing, the link will not be displayed."),e&&t){if("function"===typeof e)return e;if("string"===typeof e)return function(){ki(e)}}return null}
129function Xp(t){var e=t.a.get("tosUrl")||null,n=t.a.get("privacyPolicyUrl")||null;if(n&&!e&&Do("Terms of Service URL is missing, the link will not be displayed."),e&&n){if("function"===typeof n)return n;if("string"===typeof n)return function(){ki(n)}}return null}function Jp(t,e){if(t=t.a.get("tenants"),!t||!t.hasOwnProperty(e)&&!t.hasOwnProperty(od))throw Error("Invalid tenant configuration!")}function Zp(t,e,n){if(t=t.a.get("tenants"),!t)throw Error("Invalid tenant configuration!");var r=[];if(t=t[e]||t[od],!t)return No("Invalid tenant configuration: "+e+" is not configured!",void 0),r;if(e=t.signInOptions,!e)throw Error("Invalid tenant configuration: signInOptions are invalid!");return e.forEach(function(t){if("string"===typeof t)r.push(t);else if("string"===typeof t.provider){var e=t.hd;e&&n?(e instanceof RegExp?e:new RegExp("@"+e.replace(".","\\.")+"$")).test(n)&&r.push(t.provider):r.push(t.provider)}else t="Invalid tenant configuration: signInOption "+JSON.stringify(t)+" is invalid!",No(t,void 0)}),r}function td(t,e,n){return t=ed(t,e),(e=t.signInOptions)&&n&&(e=e.filter(function(t){return"string"===typeof t?n.includes(t):n.includes(t.provider)}),t.signInOptions=e),t}function ed(t,e){var n=nd,r=void 0===r?{}:r;return Jp(t,e),t=t.a.get("tenants"),Pi(t[e]||t[od],n,r)}e=lp.prototype,e.ob=function(){return Rp(this),!!Qa(_p(this))||Ep(xi())},e.start=function(t,e){Ip(this,t,e)},e.disableAutoSignIn=function(){Rp(this),this.Y=!0},e.reset=function(){Rp(this);var t=this;this.N&&this.N.removeAttribute("lang"),this.H&&Vr(this.H),kp(this),this.M=null,Fp(),Ua(Da,_p(this)),Rp(this),this.l.cancel(),this.i=fi({user:null,credential:null}),gp==this&&(gp=null),this.N=null;for(var e=0;e<this.m.length;e++)"function"==typeof this.m[e]?this.m[e]():this.m[e].cancel&&this.m[e].cancel();this.m=[],za(_p(this)),this.h&&(this.h.o(),this.h=null),this.J=null,this.a&&(this.C=Bp(this).then(function(){t.C=null},function(){t.C=null}))},e.jb=function(t){Rp(this);var e,n=this.ca;for(e in t)try{ns(n.a,e,t[e])}catch(r){No('Invalid config: "'+e+'"',void 0)}ye&&ns(n.a,"popupMode",!1),Us(n),!this.da&&Ys(Dp(this))&&(Do("signInSuccess callback is deprecated. Please use signInSuccessWithAuthResult callback instead."),this.da=!0)},e.Vb=function(){Rp(this);var t=Dp(this),e=rs(t.a,"widgetUrl"),n=Ss(t,e);Dp(this).a.get("popupMode")?(t=(window.screen.availHeight-600)/2,e=(window.screen.availWidth-500)/2,n=n||"about:blank",t={width:500,height:600,top:0<t?t:0,left:0<e?e:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},t.target=t.target||n.target||"google_popup",t.width=t.width||690,t.height=t.height||500,(t=Ci(n,t))&&t.focus()):Ai(n)},e.Xa=function(){var t=this;return Rp(this),this.a.app.delete().then(function(){var e=pp(_p(t));delete fp[e],t.reset(),t.Z=!0})},e.Hb=function(t,e){Rp(this);var n=this,r=Ri();if(!Ws(Dp(this)))throw Error("Email link sign-in should be enabled to trigger email sending.");var i=Ks(Dp(this)),o=new Jt(i.url);return Zt(o,r),e&&e.a&&(Za(r,e,_p(this)),ne(o,e.a.providerId)),te(o,Gs(Dp(this))),Sp(this,function(e){return e&&((e=e.uid)?o.a.a.set(ie.Qa,e):zt(o.a.a,ie.Qa)),i.url=o.toString(),yp(n).sendSignInLinkToEmail(t,i)}).then(function(){var e=_p(n),i={};i.email=t,Va(Ma,ca(r,JSON.stringify(i)),e)},function(t){throw Ua(ja,_p(n)),Ua(Ma,_p(n)),t})},e.ac=function(t,e){Rp(this);var n=this;return yp(this).signInWithEmailAndPassword(t,e).then(function(i){return Sp(n,function(o){return o?Bp(n).then(function(){return qp(n,{code:"auth/email-already-in-use"},r["auth"].EmailAuthProvider.credential(t,e))}):i})})},e.Xb=function(t,e){Rp(this);var n=this;return Sp(this,function(i){if(i){var o=r["auth"].EmailAuthProvider.credential(t,e);return i.linkWithCredential(o)}return yp(n).createUserWithEmailAndPassword(t,e)})},e.$b=function(t){Rp(this);var e=this;return Sp(this,function(n){return n?n.linkWithCredential(t).then(function(t){return t},function(n){if(n&&"auth/email-already-in-use"==n.code&&n.email&&n.credential)throw n;return qp(e,n,t)}):yp(e).signInWithCredential(t)})},e.cc=function(t){Rp(this);var e=this,n=this.i;return this.i=null,Sp(this,function(n){return n&&!Ka(_p(e))?n.linkWithRedirect(t):yp(e).signInWithRedirect(t)}).then(function(){},function(t){throw e.i=n,t})},e.bc=function(t,e){Rp(this);var n=this;return Sp(this,function(r){return r?r.linkWithPhoneNumber(t,e).then(function(t){return new io(t,function(t){if("auth/credential-already-in-use"==t.code)return qp(n,t);throw t})}):bp(n).signInWithPhoneNumber(t,e).then(function(t){return new io(t)})})},e.Zb=function(){return Rp(this),bp(this).signInAnonymously()},e.Wb=function(t,e){return Rp(this),yp(this).signInWithEmailAndPassword(t,e)},c(Hp,fl),Hp.prototype.v=function(){this.u(this.i),this.B(this.i),this.l().focus(),bf(this.l(),(this.l().value||"").length),fl.prototype.v.call(this)},Hp.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},R(Hp.prototype,{l:ah,I:sh,u:uh,D:ch,j:lh,O:Xl,B:Zl}),c(Wp,fl),Wp.prototype.v=function(){Gp(this,this.i),fl.prototype.v.call(this)},Wp.prototype.s=function(){this.i=null,fl.prototype.s.call(this)},c(Kp,fl);var nd=["immediateFederatedRedirect","privacyPolicyUrl","signInFlow","signInOptions","tosUrl"],rd="optionFirst",id={oc:rd,nc:"identifierFirst"},od="*";function ad(t,e){var n=this;this.m=Oi(t),this.a={},Object.keys(e).forEach(function(t){n.a[t]=new zp(e[t])}),this.pb=this.f=this.w=this.h=this.i=this.j=null,Object.defineProperty(this,"languageCode",{get:function(){return this.pb},set:function(t){this.pb=t||null},enumerable:!1})}function sd(t){t.j&&t.j.reset(),t.nb(),t.f&&t.f.o()}e=ad.prototype,e.Tb=function(t,e){var n=this;sd(this);var r=t.apiKey;return new oi(function(t,i){if(n.a.hasOwnProperty(r)){var o=Qp(n.a[r]).selectTenantUiHidden||null;if($p(n.a[r])===rd){var a=[];e.forEach(function(t){t=t||"_";var e=n.a[r].a.get("tenants");if(!e)throw Error("Invalid tenant configuration!");(e=e[t]||e[od])?t={tenantId:"_"!==t?t:null,displayName:e.displayName,Na:e.iconUrl,Ga:e.buttonColor}:(No("Invalid tenant configuration: "+t+" is not configured!",void 0),t=null),t&&a.push(t)});var s=function(e){e={tenantId:e,providerIds:Zp(n.a[r],e||"_")},t(e)};if(1===a.length)return void s(a[0].tenantId);n.f=new Wp(function(t){sd(n),o&&o(),s(t)},a,Yp(n.a[r]),Xp(n.a[r]))}else n.f=new Hp(function(){var i=n.f.j();if(i){for(var a=0;a<e.length;a++){var s=Zp(n.a[r],e[a]||"_",i);if(0!==s.length)return i={tenantId:e[a],providerIds:s,email:i},sd(n),o&&o(),void t(i)}n.f.a(Yn({code:"no-matching-tenant-for-email"}).toString())}},Yp(n.a[r]),Xp(n.a[r]));n.f.render(n.m),(i=Qp(n.a[r]).selectTenantUiShown||null)&&i()}else{var u=Error("Invalid project configuration: API key is invali
129d!");u.code="invalid-configuration",n.qb(u),i(u)}})},e.Ob=function(t,e){if(!this.a.hasOwnProperty(t))throw Error("Invalid project configuration: API key is invalid!");var n=e||void 0;Jp(this.a[t],e||"_");try{this.i=r["app"](n).auth()}catch(o){var i=this.a[t].a.get("authDomain");if(!i)throw Error("Invalid project configuration: authDomain is required!");t=r["initializeApp"]({apiKey:t,authDomain:i},n),t.auth().tenantId=e,this.i=t.auth()}return this.i},e.Yb=function(t,e){var n=this;return new oi(function(r,i){function o(e,r){n.j=new lp(t),Ip(n.j,n.m,e,r)}var a=t.app.options.apiKey;n.a.hasOwnProperty(a)||i(Error("Invalid project configuration: API key is invalid!"));var s=td(n.a[a],t.tenantId||"_",e&&e.providerIds);sd(n),i={signInSuccessWithAuthResult:function(t){return r(t),!1}};var u,c=Qp(n.a[a]).signInUiShown||null,l=!1;i.uiChanged=function(e,r){null===e&&"callback"===r?((e=nn("firebaseui-id-page-callback",n.m))&&Pc(e),n.h=new Kp,n.h.render(n.m)):l||null===e&&"spinner"===r||"blank"===r||(n.h&&(n.h.o(),n.h=null),l=!0,c&&c(t.tenantId))},s.callbacks=i,s.credentialHelper="none",e&&e.email&&(u={emailHint:e.email}),n.j?n.j.Xa().then(function(){o(s,u)}):o(s,u)})},e.reset=function(){var t=this;return fi().then(function(){t.j&&t.j.Xa()}
129).then(function(){t.j=null,sd(t)})},e.Ub=function(){var t=this;this.h||this.w||(this.w=window.setTimeout(function(){sd(t),t.h=new Kp,t.f=t.h,t.h.render(t.m),t.w=null},500))},e.nb=function(){window.clearTimeout(this.w),this.w=null,this.h&&(this.h.o(),this.h=null)},e.Cb=function(){return sd(this),this.f=new gh,this.f.render(this.m),fi()},e.qb=function(t){var e,n=this,r=Yn({code:t.code}).toString()||t.message;sd(this),t.retry&&S(t.retry)&&(e=function(){n.reset(),t.retry()}),this.f=new _h(r,e),this.f.render(this.m)},e.Qb=function(t){var e=this;return fi().then(function(){var n=e.i&&e.i.app.options.apiKey;if(!e.a.hasOwnProperty(n))throw Error("Invalid project configuration: API key is invalid!");if(Jp(e.a[n],t.tenantId||"_"),!e.i.currentUser||e.i.currentUser.uid!==t.uid)throw Error("The user being processed does not match the signed in user!");return(n=Qp(e.a[n]).beforeSignInSuccess||null)?n(t):t}).then(function(e){if(e.uid!==t.uid)throw Error("User with mismatching UID returned.");return e})},M("firebaseui.auth.FirebaseUiHandler",ad),M("firebaseui.auth.FirebaseUiHandler.prototype.selectTenant",ad.prototype.Tb),M("firebaseui.auth.FirebaseUiHandler.prototype.getAuth",ad.prototype.Ob),M("firebaseui.auth.FirebaseUiHandler.prototype.startSignIn",ad.prototype.Yb),M("firebaseui.auth.FirebaseUiHandler.prototype.reset",ad.prototype.reset),M("firebaseui.auth.FirebaseUiHandler.prototype.showProgressBar",ad.prototype.Ub),M("firebaseui.auth.FirebaseUiHandler.prototype.hideProgressBar",ad.prototype.nb),M("firebaseui.auth.FirebaseUiHandler.prototype.completeSignOut",ad.prototype.Cb),M("firebaseui.auth.FirebaseUiHandler.prototype.handleError",ad.prototype.qb),M("firebaseui.auth.FirebaseUiHandler.prototype.processUser",ad.prototype.Qb),M("firebaseui.auth.AuthUI",lp),M("firebaseui.auth.AuthUI.getInstance",function(t){return t=pp(t),fp[t]?fp[t]:null}),M("firebaseui.auth.AuthUI.prototype.disableAutoSignIn",lp.prototype.disableAutoSignIn),M("firebaseui.auth.AuthUI.prototype.start",lp.prototype.start),M("firebaseui.auth.AuthUI.prototype.setConfig",lp.prototype.jb),M("firebaseui.auth.AuthUI.prototype.signIn",lp.prototype.Vb),M("firebaseui.auth.AuthUI.prototype.reset",lp.prototype.reset),M("firebaseui.auth.AuthUI.prototype.delete",lp.prototype.Xa),M("firebaseui.auth.AuthUI.prototype.isPendingRedirect",lp.prototype.ob),M("firebaseui.auth.AuthUIError",Jn),M("firebaseui.auth.AuthUIError.prototype.toJSON",Jn.prototype.toJSON),M("firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM",ou),M("firebaseui.auth.CredentialHelper.GOOGLE_YOLO",au),M("firebaseui.auth.CredentialHelper.NONE",su),M("firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID","anonymous"),oi.prototype["catch"]=oi.prototype.ta,oi.prototype["finally"]=oi.prototype.ec}).apply("undefined"!==typeof t?t:"undefined"!==typeof self?self:window)}).apply("undefined"!==typeof t?t:"undefined"!==typeof self?self:window),"undefined"!==typeof window&&(window.dialogPolyfill=o.a);const a=firebaseui.auth}).call(this,n("c8ba"))},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"27ee":function(t,e,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}n.d(e,"a",function(){return r})},"28a5":function(t,e,n){"use strict";var r=n("aae3"),i=n("cb7c"),o=n("ebd6"),a=n("0390"),s=n("9def"),u=n("5f1b"),c=n("520a"),l=n("79e5"),h=Math.min,f=[].push,p="split",d="length",v="lastIndex",g=4294967295,m=!l(function(){RegExp(g,"y")});n("214f")("split",2,function(t,e,n,l){var y;return y="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[d]||2!="ab"[p](/(?:ab)*/)[d]||4!="."[p](/(.?)(.?)/)[d]||"."[p](/()()/)[d]>1||""[p](/.?/)[d]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(i,t,e);var o,a,s,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,p=void 0===e?g:e>>>0,m=new RegExp(t.source,l+"g");while(o=c.call(m,i)){if(a=m[v],a>h&&(u.push(i.slice(h,o.index)),o[d]>1&&o.index<i[d]&&f.apply(u,o.slice(1)),s=o[0][d],h=a,u[d]>=p))break;m[v]===o.index&&m[v]++}return h===i[d]?!s&&m.test("")||u.push(""):u.push(i.slice(h)),u[d]>p?u.slice(0,p):u}:"0"[p](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(t,e){var r=l(y,t,this,e,y!==n);if(r.done)return r.value;var c=i(t),f=String(this),p=o(c,RegExp),d=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),b=new p(m?c:"^(?:"+c.source+")",v),_=void 0===e?g:e>>>0;
129if(0===_)return[];if(0===f.length)return null===u(b,f)?[f]:[];var w=0,E=0,I=[];while(E<f.length){b.lastIndex=m?E:0;var T,S=u(b,m?f:f.slice(E));if(null===S||(T=h(s(b.lastIndex+(m?0:E)),f.length))===w)E=a(f,E,d);else{if(I.push(f.slice(w,E)),I.length===_)return I;for(var C=1;C<=S.length-1;C++)if(I.push(S[C]),I.length===_)return I;E=w=T}}return I.push(f.slice(w)),I}]})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u="toString",c=(""+s).split(u);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||s.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},"2b0e":function(t,e,n){"use strict";(function(t){
130/*!
131 * Vue.js v2.6.10
132 * (c) 2014-2019 Evan You
133 * Released under the MIT License.
134 */
135var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function l(t){return"[object Object]"===c.call(t)}function h(t){return"[object RegExp]"===c.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g("slot,component",!0);var m=g("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var E=/-(\w)/g,I=w(function(t){return t.replace(E,function(t,e){return e?e.toUpperCase():""})}),T=w(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),S=/\B([A-Z])/g,C=w(function(t){return t.replace(S,"-$1").toLowerCase()});function A(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function N(t,e){return t.bind(e)}var k=Function.prototype.bind?N:A;function O(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function x(t,e){for(var n in e)t[n]=e[n];return t}function D(t){for(var e={},n=0;n<t.length;n++)t[n]&&x(e,t[n]);return e}function R(t,e,n){}var P=function(t,e,n){return!1},L=function(t){return t};function M(t,e){if(t===e)return!0;var n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every(function(t,n){return M(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every(function(n){return M(t[n],e[n])})}catch(c){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(M(t[n],e))return n;return-1}function F(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var U="data-server-rendered",V=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","
135serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:R,parsePlatformTagName:L,mustUseProp:P,async:!0,_lifecycleHooks:B},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function W(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function G(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var K=new RegExp("[^"+H.source+".$_\\d]");function z(t){if(!K.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var $,Q="__proto__"in{},Y="undefined"!==typeof window,X="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=X&&WXEnvironment.platform.toLowerCase(),Z=Y&&window.navigator.userAgent.toLowerCase(),tt=Z&&/msie|trident/.test(Z),et=Z&&Z.indexOf("msie 9.0")>0,nt=Z&&Z.indexOf("edge/")>0,rt=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),it=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(Y)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Ia){}var ut=function(){return void 0===$&&($=!Y&&!X&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),$},ct=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,ft="undefined"!==typeof Symbol&&lt(Symbol)&&"undefined"!==typeof Reflect&&lt(Reflect.ownKeys);ht="undefined"!==typeof Set&&lt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=R,dt=0,vt=function(){this.id=dt++,this.subs=[]};vt.prototype.addSub=function(t){this.subs.push(t)},vt.prototype.removeSub=function(t){y(this.subs,t)}
vendor: 4,209 bytes, line 135
135,vt.prototype.depend=function(){vt.target&&vt.target.addDep(this)},vt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},vt.target=null;var gt=[];function mt(t){gt.push(t),vt.target=t}function yt(){gt.pop(),vt.target=gt[gt.length-1]}var bt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},_t={child:{configurable:!0}};_t.child.get=function(){return this.componentInstance},Object.defineProperties(bt.prototype,_t);var wt=function(t){void 0===t&&(t="");var e=new bt;return e.text=t,e.isComment=!0,e};function Et(t){return new bt(void 0,void 0,void 0,String(t))}function It(t){var e=new bt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Tt=Array.prototype,St=Object.create(Tt),Ct=["push","pop","shift","unshift","splice","sort","reverse"];Ct.forEach(function(t){var e=Tt[t];G(St,t,function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o})});var At=Object.getOwnPropertyNames(St),Nt=!0;function kt(t){Nt=t}var Ot=function(t){this.value=t,this.dep=new vt,this.vmCount=0,G(t,"__ob__",this),Array.isArray(t)?(Q?xt(t,St):Dt(t,St,At),this.observeArray(t)):this.walk(t)};function xt(t,e){t.__proto__=e}function Dt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];G(t,o,e[o])}}function Rt(t,e){var n;if(u(t)&&!(t instanceof bt))return _(t,"__ob__")&&t.__ob__ instanceof Ot?n=t.__ob__:Nt&&!ut()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Ot(t)),e&&n&&n.vmCount++,n}function Pt(t,e,n,r,i){var o=new vt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=t[e]);var c=!i&&Rt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return vt.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&jt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!u||(u?u.call(t,e):n=e,c=!i&&Rt(e),o.notify())}})}}function Lt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Pt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Mt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||_(t,e)&&(delete t[e],n&&n.dep.notify())}}function jt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&jt(e)}Ot.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Pt(t,e[n])},Ot.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Rt(t[e])};var Ft=q.optionMergeStrategies;function Ut(t,e){if(!e)return t;for(var n,r,i,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],_(t,n)?r!==i&&l(r)&&l(i)&&Ut(r,i):Lt(t,n,i));return t}function Vt(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?Ut(r,i):i}:e?t?function(){return Ut("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Bt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?qt(n):n}function qt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Ht(t,e,n,r){var i=Object.create(t||null);return e?x(i,e):i}Ft.data=function(t,e,n){return n?Vt(t,e,n):e&&"function"!==typeof e?t:Vt(t,e)},B.forEach(function(t){Ft[t]=Bt}
vendor: 8,545 bytes, line 135
135),V.forEach(function(t){Ft[t+"s"]=Ht}),Ft.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in x(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ft.props=Ft.methods=Ft.inject=Ft.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return x(i,t),e&&x(i,e),i},Ft.provide=Vt;var Wt=function(t,e){return void 0===e?t:e};function Gt(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=I(i),a[o]={type:null})}else if(l(n))for(var s in n)i=n[s],o=I(s),a[o]=l(i)?i:{type:i};else 0;t.props=a}}function Kt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?x({from:o},a):{from:a}}else 0}}function zt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function $t(t,e,n){if("function"===typeof e&&(e=e.options),Gt(e,n),Kt(e,n),zt(e),!e._base&&(e.extends&&(t=$t(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=$t(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)_(t,o)||s(o);function s(r){var i=Ft[r]||Wt;a[r]=i(t[r],e[r],n,r)}return a}function Qt(t,e,n,r){if("string"===typeof n){var i=t[e];if(_(i,n))return i[n];var o=I(n);if(_(i,o))return i[o];var a=T(o);if(_(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Yt(t,e,n,r){var i=e[t],o=!_(n,t),a=n[t],s=te(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===C(t)){var u=te(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=Xt(r,i,t);var c=Nt;kt(!0),Rt(a),kt(c)}return a}function Xt(t,e,n){if(_(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Jt(e.type)?r.call(t):r}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Zt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Zt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Zt(e[n],t))return n;return-1}function ee(t,e,n){mt();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(Ia){re(Ia,r,"errorCaptured hook")}}}re(t,e,n)}finally{yt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch(function(t){return ee(t,r,i+" (Promise/async)")}),o._handled=!0)}catch(Ia){ee(Ia,r,i)}return o}function re(t,e,n){if(q.errorHandler)try{return q.errorHandler.call(null,t,e,n)}catch(Ia){Ia!==t&&ie(Ia,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!Y&&!X||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],ue=!1;function ce(){ue=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&lt(Promise)){var le=Promise.resolve();oe=function(){le.then(ce),rt&&setTimeout(R)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!lt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&lt(setImmediate)?function(){setImmediate(ce)}:function(){setTimeout(ce,0)};else{var he=1,fe=new MutationObserver(ce),pe=document.createTextNode(String(he));fe.observe(pe,{characterData:!0}),oe=function(){he=(he+1)%2,pe.data=String(he)},ae=!0}function de(t,e){var n;if(se.push(function(){if(t)try{t.call(e)}catch(Ia){ee(Ia,e,"nextTick")}else n&&n(e)}),ue||(ue=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise(function(t){n=t})}var ve=new ht;function ge(t){me(t,ve),ve.clear()}function me(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!u(t)||Object.isFrozen(t)||t instanceof bt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)me(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)me(t[r[n]],e)}}}var ye=w(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}});function be(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function _e(t,e,n,i,a,s){var u,c,l,h;for(u in t)c=t[u],l=e[u],h=ye(u),r(c)||(r(l)?(r(c.fns)&&(c=t[u]=be(c,s)),o(h.once)&&(c=t[u]=a(h.name,c,h.capture)),n(h.name,c,h.capture,h.passive,h.params)):c!==l&&(l.fns=c,t[u]=l));for(u in e)r(t[u])&&(h=ye(u),i(h.name,e[u],h.capture))}function we(t,e,n){var a;t instanceof bt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function u(){n.apply(this,arguments),y(a.fns,u)}r(s)?a=be([u]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(u)):a=be([s,u]),a.merged=!0,t[e]=a}function Ee(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,u=t.props;if(i(s)||i(u))for(var c in o){var l=C(c);Ie(a,u,c,l,!0)||Ie(a,s,c,l,!1)}return a}}function Ie(t,e,n,r,o){if(i(e)){if(_(e,n))return t[n]=e[n],o||delete e[n],!0;if(_(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Te(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Se(t){return s(t)?[Et(t)]:Array.isArray(t)?Ae(t):void 0}function Ce(t){return i(t)&&i(t.text)&&a(t.isComment)}function Ae(t,e){var n,a,u,c,l=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(u=l.length-1,c=l[u],Array.isArray(a)?a.length>0&&(a=Ae(a,(e||"")+"_"+n),Ce(a[0])&&Ce(c)&&(l[u]=Et(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Ce(c)?l[u]=Et(c.text+a):""!==a&&l.push(Et(a)):Ce(a)&&Ce(c)?l[u]=Et(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Ne(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function ke(t){var e=Oe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach(function(n){Pt(t,n,e[n])}),kt(!0))}function Oe(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var u=t[o].default;n[o]="function"===typeof u?u.call(e):u}else 0}}return n}}function xe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var c in n)n[c].every(De)&&delete n[c];return n}function De(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Re(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=Pe(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=Le(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),G(i,"$stable",a),G(i,"$key",s),G(i,"$hasNormal",o),i}function Pe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Se(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Le(t,e){return function(){return t[e]}}function Me(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(u(t))if(ft&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),l=c.next();while(!l.done)n.push(e(l.value,n.length)),l=c.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function je(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=x(x({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Fe(t){return Qt(this.$options,"filters",t,!0)||L}function Ue(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ve(t,e,n,r,i){var o=q.keyCodes[e]||n;return i&&r&&!q.keyCodes[e]?Ue(i,r):o?Ue(o,t):r?C(r)!==e:void 0}function Be(t,e,n,r,i){if(n)if(u(n)){var o;Array.isArray(n)&&(n=D(n));
vendor: 4,724 bytes, line 135
135var a=function(a){if("class"===a||"style"===a||m(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||q.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=I(a),c=C(a);if(!(u in o)&&!(c in o)&&(o[a]=n[a],i)){var l=t.on||(t.on={});l["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function qe(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e?r:(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),We(r,"__static__"+t,!1),r)}function He(t,e,n){return We(t,"__once__"+e+(n?"_"+n:""),!0),t}function We(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&Ge(t[r],e+"_"+r,n);else Ge(t,e,n)}function Ge(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Ke(t,e){if(e)if(l(e)){var n=t.on=t.on?x({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function ze(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?ze(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function $e(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Qe(t,e){return"string"===typeof t?e+t:t}function Ye(t){t._o=He,t._n=v,t._s=d,t._l=Me,t._t=je,t._q=M,t._i=j,t._m=qe,t._f=Fe,t._k=Ve,t._b=Be,t._v=Et,t._e=wt,t._u=ze,t._g=Ke,t._d=$e,t._p=Qe}function Xe(t,e,r,i,a){var s,u=this,c=a.options;_(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var l=o(c._compiled),h=!l;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Oe(c.inject,i),this.slots=function(){return u.$slots||Re(t.scopedSlots,u.$slots=xe(r,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Re(t.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Re(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var o=hn(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return hn(s,t,e,n,r,h)}}function Je(t,e,r,o,a){var s=t.options,u={},c=s.props;if(i(c))for(var l in c)u[l]=Yt(l,c,e||n);else i(r.attrs)&&tn(u,r.attrs),i(r.props)&&tn(u,r.props);var h=new Xe(r,u,a,o,t),f=s.render.call(null,h._c,h);if(f instanceof bt)return Ze(f,r,h.parent,s,h);if(Array.isArray(f)){for(var p=Se(f)||[],d=new Array(p.length),v=0;v<p.length;v++)d[v]=Ze(p[v],r,h.parent,s,h);return d}}function Ze(t,e,n,r,i){var o=It(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[I(n)]=e[n]}Ye(Xe.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,On);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Ln(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Un(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):jn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Fn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,s){if(!r(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"===typeof t){var l;if(r(t.cid)&&(l=t,t=wn(l,c),void 0===t))return _n(l,e,n,a,s);e=e||{},wr(t),i(e.model)&&un(t.options,e);var h=Ee(e,t,s);if(o(t.options.functional))return Je(t,h,e,n,a);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var p=e.slot;e={},p&&(e.slot=p)}an(e);var d=t.options.name||s,v=new bt("vue-component-"+t.cid+(d?"-"+d:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:f,tag:s,children:a},l);return v}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?sn(o,i):o)}}function sn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function un(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var cn=1,ln=2;function hn(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=ln),fn(t,e,n,r,i)}function fn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return wt();if(i(n)&&i(n.is)&&(e=n.is),!e)return wt();var a,s,u;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]}
vendor: 24,531 bytes, line 135
135,r.length=0),o===ln?r=Se(r):o===cn&&(r=Te(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||q.getTagNamespace(e),a=q.isReservedTag(e)?new bt(q.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(u=Qt(t.$options,"components",e))?new bt(e,n,r,void 0,void 0,t):rn(u,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&pn(a,s),i(n)&&dn(n),a):wt()}function pn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var u=t.children[a];i(u.tag)&&(r(u.ns)||o(n)&&"svg"!==u.tag)&&pn(u,e,n)}}function dn(t){u(t.style)&&ge(t.style),u(t.class)&&ge(t.class)}function vn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=xe(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return hn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return hn(t,e,n,r,i,!0)};var o=r&&r.data;Pt(t,"$attrs",o&&o.attrs||n,null,!0),Pt(t,"$listeners",e._parentListeners||n,null,!0)}var gn,mn=null;function yn(t){Ye(t.prototype),t.prototype.$nextTick=function(t){return de(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Re(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{mn=e,t=r.call(e._renderProxy,e.$createElement)}catch(Ia){ee(Ia,e,"render"),t=e._vnode}finally{mn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof bt||(t=wt()),t.parent=i,t}}function bn(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function _n(t,e,n,r,i){var o=wt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function wn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=mn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",function(){return y(a,n)});var h=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},f=F(function(n){t.resolved=bn(n,e),s?a.length=0:h(!0)}),d=F(function(e){i(t.errorComp)&&(t.error=!0,h(!0))}),v=t(f,d);return u(v)&&(p(v)?r(t.resolved)&&v.then(f,d):p(v.component)&&(v.component.then(f,d),i(v.error)&&(t.errorComp=bn(v.error,e)),i(v.loading)&&(t.loadingComp=bn(v.loading,e),0===v.delay?t.loading=!0:c=setTimeout(function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))},v.delay||200)),i(v.timeout)&&(l=setTimeout(function(){l=null,r(t.resolved)&&d(null)},v.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function En(t){return t.isComment&&t.asyncFactory}function In(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||En(n)))return n}}function Tn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Nn(t,e)}function Sn(t,e){gn.$on(t,e)}function Cn(t,e){gn.$off(t,e)}function An(t,e){var n=gn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Nn(t,e,n){gn=t,_e(e,n||{},Sn,Cn,An,t),gn=void 0}function kn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?O(n):n;for(var r=O(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,r,e,i)}return e}}var On=null;function xn(t){var e=On;return On=t,function(){On=e}}function Dn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Rn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=xn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Un(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Un(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Pn(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=wt),Un(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,R,{before:function(){t._isMounted&&!t._isDestroyed&&Un(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Un(t,"mounted")),t}function Ln(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),c=!!(o||t.$options._renderChildren||u);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){kt(!1);for(var l=t._props,h=t.$options._propKeys||[],f=0;f<h.length;f++){var p=h[f],d=t.$options.props;l[p]=Yt(p,d,e,t)}kt(!0),t.$options.propsData=e}r=r||n;var v=t.$options._parentListeners;t.$options._parentListeners=r,Nn(t,r,v),c&&(t.$slots=xe(o,i.context),t.$forceUpdate())}function Mn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function jn(t,e){if(e){if(t._directInactive=!1,Mn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)jn(t.$children[n]);Un(t,"activated")}}function Fn(t,e){if((!e||(t._directInactive=!0,!Mn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Fn(t.$children[n]);Un(t,"deactivated")}}function Un(t,e){mt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),yt()}var Vn=[],Bn=[],qn={},Hn=!1,Wn=!1,Gn=0;function Kn(){Gn=Vn.length=Bn.length=0,qn={},Hn=Wn=!1}var zn=0,$n=Date.now;if(Y&&!tt){var Qn=window.performance;Qn&&"function"===typeof Qn.now&&$n()>document.createEvent("Event").timeStamp&&($n=function(){return Qn.now()})}function Yn(){var t,e;for(zn=$n(),Wn=!0,Vn.sort(function(t,e){return t.id-e.id}),Gn=0;Gn<Vn.length;Gn++)t=Vn[Gn],t.before&&t.before(),e=t.id,qn[e]=null,t.run();var n=Bn.slice(),r=Vn.slice();Kn(),Zn(n),Xn(r),ct&&q.devtools&&ct.emit("flush")}function Xn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Un(r,"updated")}}function Jn(t){t._inactive=!1,Bn.push(t)}function Zn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,jn(t[e],!0)}function tr(t){var e=t.id;if(null==qn[e]){if(qn[e]=!0,Wn){var n=Vn.length-1;while(n>Gn&&Vn[n].id>t.id)n--;Vn.splice(n+1,0,t)}else Vn.push(t);Hn||(Hn=!0,de(Yn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=z(e),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;mt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Ia){if(!this.user)throw Ia;ee(Ia,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ge(t),yt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Ia){ee(Ia,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:R,set:R};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&dr(t,e.methods),e.data?sr(t):Rt(t._data={},!0),e.computed&&lr(t,e.computed),e.watch&&e.watch!==ot&&vr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||kt(!1);var a=function(o){i.push(o);var a=Yt(o,e,n,t);Pt(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);kt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?ur(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||W(o)||ir(t,"_data",o)}Rt(e,!0)}function ur(t,e){mt();try{return t.call(e,e)}catch(Ia){return ee(Ia,e,"data()"),{}}finally{yt()}}var cr={lazy:!0};function lr(t,e){var n=t._computedWatchers=Object.create(null),r=ut();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||R,R,cr)),i in t||hr(t,i,o)}}function hr(t,e,n){var r=!ut();"function"===typeof n?(rr.get=r?fr(e):pr(n),rr.set=R):(rr.get=n.get?r&&!1!==n.cache?fr(e):pr(n.get):R,rr.set=n.set||R),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),vt.target&&e.depend(),e.value}}function pr(t){return function(){return t.call(this,this)}}function dr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?R:k(e[n],t)}function vr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)gr(t,n,r[i]);else gr(t,n,r)}}function gr(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function mr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Lt,t.prototype.$delete=Mt,t.prototype.$watch=function(t,e,n){var r=this;if(l(e))return gr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var yr=0;function br(t){t.prototype._init=function(t){var e=this;e._uid=yr++,e._isVue=!0,t&&t._isComponent?_r(e,t):e.$options=$t(wr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Dn(e),Tn(e),vn(e),Un(e,"beforeCreate"),ke(e),or(e),Ne(e),Un(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function _r(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function wr(t){var e=t.options;if(t.super){var n=wr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=Er(t);i&&x(t.extendOptions,i),e=t.options=$t(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Er(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function Ir(t){this._init(t)}function Tr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Sr(t){t.mixin=function(t){return this.options=$t(this.options,t),this}}function Cr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=$t(n.options,t),a["super"]=n,a.options.props&&Ar(a),a.options.computed&&Nr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=x({},a.options),i[r]=a,a}}function Ar(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Nr(t){var e=t.options.computed;for(var n in e)hr(t.prototype,n,e[n])}function kr(t){V.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Or(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Dr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Or(a.componentOptions);s&&!e(s)&&Rr(n,o,r,i)}}}function Rr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}br(Ir),mr(Ir),kn(Ir),Rn(Ir),yn(Ir);var Pr=[String,RegExp,Array],Lr={name:"keep-alive",abstract:!0,props:{include:Pr,exclude:Pr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Rr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Dr(t,function(t){return xr(e,t)})}),this.$watch("exclude",function(e){Dr(t,function(t){return!xr(e,t)})})},render:function(){var t=this.$slots.default,e=In(t),n=e&&e.componentOptions;if(n){var r=Or(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!xr(o,r))||a&&r&&xr(a,r))return e;var s=this,u=s.cache,c=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;u[l]?(e.componentInstance=u[l].componentInstance,y(c,l),c.push(l)):(u[l]=e,c.push(l),this.max&&c.length>parseInt(this.max)&&Rr(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Mr={KeepAlive:Lr};function jr(t){var e={get:function(){return q}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:x,mergeOptions:$t,defineReactive:Pt},t.set=Lt,t.delete=Mt,t.nextTick=de,t.observable=function(t){return Rt(t),t},t.options=Object.create(null),V.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,Mr),Tr(t),Sr(t),Cr(t),kr(t)}jr(Ir),Object.defineProperty(Ir.prototype,"$isServer",{get:ut}),Object.defineProperty(Ir.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ir,"FunctionalRenderContext",{value:Xe}),Ir.version="2.6.10";var Fr=g("style,class"),Ur=g("input,textarea,option,select,progress"),Vr=function(t,e,n){return"value"===n&&Ur(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Br=g("contenteditable,draggable,spellcheck"),qr=g("events,caret,typing,plaintext-only"),Hr=function(t,e){return $r(e)||"false"===e?"false":"contenteditable"===t&&qr(e)?e:"true"},Wr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Gr="http://www.w3.org/1999/xlink",Kr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},zr=function(t){return Kr(t)?t.slice(6,t.length):""},$r=function(t){return null==t||!1===t};function Qr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Yr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Yr(e,n.data));return Xr(e.staticClass,e.class)}function Yr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Xr(t,e){return i(t)||i(e)?Jr(t,Zr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Zr(t){return Array.isArray(t)?ti(t):u(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Zr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(t){return ri(t)||ii(t)};function ai(t){return ii(t)?"svg":"math"===t?"math":void 0}var si=Object.create(null);function ui(t){if(!Y)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=si[t])return si[t];var e=document.createElement(t);return t.indexOf("-")>-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=g("text,number,password,search,email,tel,url");function li(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hi(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function fi(t,e){return document.createElementNS(ni[t],e)}function pi(t){return document.createTextNode(t)}function di(t){return document.createComment(t)}function vi(t,e,n){t.insertBefore(e,n)}function gi(t,e){t.removeChild(e)}function mi(t,e){t.appendChild(e)}function yi(t){return t.parentNode}function bi(t){return t.nextSibling}function _i(t){return t.tagName}function wi(t,e){t.textContent=e}function Ei(t,e){t.setAttribute(e,"")}var Ii=Object.freeze({createElement:hi,createElementNS:fi,createTextNode:pi,createComment:di,insertBefore:vi,removeChild:gi,appendChild:mi,parentNode:yi,nextSibling:bi,tagName:_i,setTextContent:wi,setStyleScope:Ei}),Ti={create:function(t,e){Si(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Si(t,!0),Si(e))},destroy:function(t){Si(t,!0)}};function Si(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ci=new bt("",{},[]),Ai=["create","activate","update","remove","destroy"];function Ni(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&ki(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function ki(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Oi(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function xi(t){var e,n,a={},u=t.modules,c=t.nodeOps;for(e=0;e<Ai.length;++e)for(a[Ai[e]]=[],n=0;n<u.length;++n)i(u[n][Ai[e]])&&a[Ai[e]].push(u[n][Ai[e]]);function l(t){return new bt(c.tagName(t).toLowerCase(),{},[],void 0,t)}function h(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=c.parentNode(t);i(e)&&c.removeChild(e,t)}function p(t,e,n,r,a,s,u){if(i(t.elm)&&i(s)&&(t=s[u]=It(t)),t.isRootInsert=!a,!d(t,e,n,r)){var l=t.data,h=t.children,f=t.tag;i(f)?(t.elm=t.ns?c.createElementNS(t.ns,f):c.createElement(f,t),E(t),b(t,h,e),i(l)&&w(t,e),y(n,t.elm,r)):o(t.isComment)?(t.elm=c.createComment(t.text),y(n,t.elm,r)):(t.elm=c.createTextNode(t.text),y(n,t.elm,r))}}function d(t,e,n,r){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return v(t,e),y(n,t.elm,r),o(s)&&m(t,e,n,r),!0}}function v(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,_(t)?(w(t,e),E(t)):(Si(t),e.push(t))}function m(t,e,n,r){var o,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Ci,s);e.push(s);break}y(n,t.elm,r)}function y(t,e,n){i(t)&&(i(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function b(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)p(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function _(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function w(t,n){for(var r=0;r<a.create.length;++r)a.create[r](Ci,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(Ci,t),i(e.insert)&&n.push(t))}function E(t){var e;if(i(e=t.fnScopeId))c.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent}i(e=On)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function I(t,e,n,r,i,o){for(;r<=i;++r)p(n[r],o,t,e,!1,n,r)}function T(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)T(t.children[n])}function S(t,e,n,r){for(;n<=r;++n){var o=e[n];i(o)&&(i(o.tag)?(C(o),T(o)):f(o.elm))}}function C(t,e){if(i(e)||i(t.data)){var n,r=a.remove.length+1;for(i(e)?e.listeners+=r:e=h(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&C(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else f(t.elm)}function A(t,e,n,o,a){var s,u,l,h,f=0,d=0,v=e.length-1,g=e[0],m=e[v],y=n.length-1,b=n[0],_=n[y],w=!a;while(f<=v&&d<=y)r(g)?g=e[++f]:r(m)?m=e[--v]:Ni(g,b)?(k(g,b,o,n,d),g=e[++f],b=n[++d]):Ni(m,_)?(k(m,_,o,n,y),m=e[--v],_=n[--y]):Ni(g,_)?(k(g,_,o,n,y),w&&c.insertBefore(t,g.elm,c.nextSibling(m.elm)),g=e[++f],_=n[--y]):Ni(m,b)?(k(m,b,o,n,d),w&&c.insertBefore(t,m.elm,g.elm),m=e[--v],b=n[++d]):(r(s)&&(s=Oi(e,f,v)),u=i(b.key)?s[b.key]:N(b,e,f,v),r(u)?p(b,o,t,g.elm,!1,n,d):(l=e[u],Ni(l,b)?(k(l,b,o,n,d),e[u]=void 0,w&&c.insertBefore(t,l.elm,g.elm)):p(b,o,t,g.elm,!1,n,d)),b=n[++d]);f>v?(h=r(n[y+1])?null:n[y+1].elm,I(t,h,n,d,y,o)):d>y&&S(t,e,f,v)}function N(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&Ni(t,a))return o}}function k(t,e,n,s,u,l){if(t!==e){i(e.elm)&&i(s)&&(e=s[u]=It(e));var h=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?D(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;
vendor: 3,048 bytes, line 135
135i(p)&&i(f=p.hook)&&i(f=f.prepatch)&&f(t,e);var d=t.children,v=e.children;if(i(p)&&_(e)){for(f=0;f<a.update.length;++f)a.update[f](t,e);i(f=p.hook)&&i(f=f.update)&&f(t,e)}r(e.text)?i(d)&&i(v)?d!==v&&A(h,d,v,n,l):i(v)?(i(t.text)&&c.setTextContent(h,""),I(h,null,v,0,v.length-1,n)):i(d)?S(h,d,0,d.length-1):i(t.text)&&c.setTextContent(h,""):t.text!==e.text&&c.setTextContent(h,e.text),i(p)&&i(f=p.hook)&&i(f=f.postpatch)&&f(t,e)}}}function O(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var x=g("attrs,class,staticClass,staticStyle,key");function D(t,e,n,r){var a,s=e.tag,u=e.data,c=e.children;if(r=r||u&&u.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(u)&&(i(a=u.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return v(e,n),!0;if(i(s)){if(i(c))if(t.hasChildNodes())if(i(a=u)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var l=!0,h=t.firstChild,f=0;f<c.length;f++){if(!h||!D(h,c[f],n,r)){l=!1;break}h=h.nextSibling}if(!l||h)return!1}else b(e,c,n);if(i(u)){var p=!1;for(var d in u)if(!x(d)){p=!0,w(e,n);break}!p&&u["class"]&&ge(u["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var u=!1,h=[];if(r(t))u=!0,p(e,h);else{var f=i(t.nodeType);if(!f&&Ni(t,e))k(t,e,h,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(U)&&(t.removeAttribute(U),n=!0),o(n)&&D(t,e,h))return O(e,h,!0),t;t=l(t)}var d=t.elm,v=c.parentNode(d);if(p(e,h,d._leaveCb?null:v,c.nextSibling(d)),i(e.parent)){var g=e.parent,m=_(e);while(g){for(var y=0;y<a.destroy.length;++y)a.destroy[y](g);if(g.elm=e.elm,m){for(var b=0;b<a.create.length;++b)a.create[b](Ci,g);var w=g.data.hook.insert;if(w.merged)for(var E=1;E<w.fns.length;E++)w.fns[E]()}else Si(g);g=g.parent}}i(v)?S(v,[t],0,0):i(t.tag)&&T(t)}}return O(e,h,u),e.elm}i(t)&&T(t)}}var Di={create:Ri,update:Ri,destroy:function(t){Ri(t,Ci)}};function Ri(t,e){(t.data.directives||e.data.directives)&&Pi(t,e)}function Pi(t,e){var n,r,i,o=t===Ci,a=e===Ci,s=Mi(t.data.directives,t.context),u=Mi(e.data.directives,e.context),c=[],l=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Fi(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(Fi(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var h=function(){for(var n=0;n<c.length;n++)Fi(c[n],"inserted",e,t)};o?we(e,"insert",h):h()}if(l.length&&we(e,"postpatch",function(){for(var n=0;n<l.length;n++)Fi(l[n],"componentUpdated",e,t)}),!o)for(n in s)u[n]||Fi(s[n],"unbind",t,t,a)}var Li=Object.create(null);function Mi(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Li),i[ji(r)]=r,r.def=Qt(e.$options,"directives",r.name,!0);return i}function ji(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Fi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(Ia){ee(Ia,n.context,"directive "+t.name+" "+e+" hook")}}var Ui=[Ti,Di];function Vi(t,e){var n=e.componentOptions;
vendor: 4,357 bytes, line 135
135if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,a,s,u=e.elm,c=t.data.attrs||{},l=e.data.attrs||{};for(o in i(l.__ob__)&&(l=e.data.attrs=x({},l)),l)a=l[o],s=c[o],s!==a&&Bi(u,o,a);for(o in(tt||nt)&&l.value!==c.value&&Bi(u,"value",l.value),c)r(l[o])&&(Kr(o)?u.removeAttributeNS(Gr,zr(o)):Br(o)||u.removeAttribute(o))}}function Bi(t,e,n){t.tagName.indexOf("-")>-1?qi(t,e,n):Wr(e)?$r(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Br(e)?t.setAttribute(e,Hr(e,n)):Kr(e)?$r(n)?t.removeAttributeNS(Gr,zr(e)):t.setAttributeNS(Gr,e,n):qi(t,e,n)}function qi(t,e,n){if($r(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Hi={create:Vi,update:Vi};function Wi(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Qr(e),u=n._transitionClasses;i(u)&&(s=Jr(s,Zr(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Gi,Ki={create:Wi,update:Wi},zi="__r",$i="__c";function Qi(t){if(i(t[zi])){var e=tt?"change":"input";t[e]=[].concat(t[zi],t[e]||[]),delete t[zi]}i(t[$i])&&(t.change=[].concat(t[$i],t.change||[]),delete t[$i])}function Yi(t,e,n){var r=Gi;return function i(){var o=e.apply(null,arguments);null!==o&&Zi(t,i,n,r)}}var Xi=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Xi){var i=zn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Gi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Zi(t,e,n,r){(r||Gi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Gi=e.elm,Qi(n),_e(n,i,Ji,Zi,Yi,e.context),Gi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in i(u.__ob__)&&(u=e.data.domProps=x({},u)),s)n in u||(a[n]="");for(n in u){if(o=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);io(a,c)&&(a.value=c)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var l=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Ia){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Ia){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},uo=w(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function co(t){var e=lo(t.style);return t.staticStyle?x(t.staticStyle,e):e}function lo(t){return Array.isArray(t)?D(t):"string"===typeof t?uo(t):t}function ho(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&x(r,n)}(n=co(t.data))&&x(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&x(r,n);return r}var fo,po=/^--/,vo=/\s*!important$/,go=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(vo.test(n))t.style.setProperty(C(e),n.replace(vo,""),"important");else{var r=yo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},mo=["Webkit","Moz","ms"],yo=w(function(t){if(fo=fo||document.createElement("div").style,t=I(t),"filter"!==t&&t in fo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<mo.length;n++){var r=mo[n]+e;if(r in fo)return r}});function bo(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,u=e.elm,c=o.staticStyle,l=o.normalizedStyle||o.style||{},h=c||l,f=lo(e.data.style)||{};e.data.normalizedStyle=i(f.__ob__)?x({},f):f;
vendor: 7,341 bytes, line 135
135var p=ho(e,!0);for(s in h)r(p[s])&&go(u,s,"");for(s in p)a=p[s],a!==h[s]&&go(u,s,null==a?"":a)}}var _o={create:bo,update:bo},wo=/\s+/;function Eo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wo).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Io(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wo).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function To(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&x(e,So(t.name||"v")),x(e,t),e}return"string"===typeof t?So(t):void 0}}var So=w(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Co=Y&&!et,Ao="transition",No="animation",ko="transition",Oo="transitionend",xo="animation",Do="animationend";Co&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ko="WebkitTransition",Oo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xo="WebkitAnimation",Do="webkitAnimationEnd"));var Ro=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Po(t){Ro(function(){Ro(t)})}function Lo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Eo(t,e))}function Mo(t,e){t._transitionClasses&&y(t._transitionClasses,e),Io(t,e)}function jo(t,e,n){var r=Uo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ao?Oo:Do,u=0,c=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++u>=a&&c()};setTimeout(function(){u<a&&c()},o+1),t.addEventListener(s,l)}var Fo=/\b(transform|all)(,|$)/;function Uo(t,e){var n,r=window.getComputedStyle(t),i=(r[ko+"Delay"]||"").split(", "),o=(r[ko+"Duration"]||"").split(", "),a=Vo(i,o),s=(r[xo+"Delay"]||"").split(", "),u=(r[xo+"Duration"]||"").split(", "),c=Vo(s,u),l=0,h=0;e===Ao?a>0&&(n=Ao,l=a,h=o.length):e===No?c>0&&(n=No,l=c,h=u.length):(l=Math.max(a,c),n=l>0?a>c?Ao:No:null,h=n?n===Ao?o.length:u.length:0);var f=n===Ao&&Fo.test(r[ko+"Property"]);return{type:n,timeout:l,propCount:h,hasTransform:f}}function Vo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Bo(e)+Bo(t[n])}))}function Bo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function qo(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=To(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,c=o.enterClass,l=o.enterToClass,h=o.enterActiveClass,f=o.appearClass,p=o.appearToClass,d=o.appearActiveClass,g=o.beforeEnter,m=o.enter,y=o.afterEnter,b=o.enterCancelled,_=o.beforeAppear,w=o.appear,E=o.afterAppear,I=o.appearCancelled,T=o.duration,S=On,C=On.$vnode;while(C&&C.parent)S=C.context,C=C.parent;var A=!S._isMounted||!t.isRootInsert;if(!A||w||""===w){var N=A&&f?f:c,k=A&&d?d:h,O=A&&p?p:l,x=A&&_||g,D=A&&"function"===typeof w?w:m,R=A&&E||y,P=A&&I||b,L=v(u(T)?T.enter:T);0;var M=!1!==a&&!et,j=Go(D),U=n._enterCb=F(function(){M&&(Mo(n,O),Mo(n,k)),U.cancelled?(M&&Mo(n,N),P&&P(n)):R&&R(n),n._enterCb=null});t.data.show||we(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,U)}),x&&x(n),M&&(Lo(n,N),Lo(n,k),Po(function(){Mo(n,N),U.cancelled||(Lo(n,O),j||(Wo(L)?setTimeout(U,L):jo(n,s,U)))})),t.data.show&&(e&&e(),D&&D(n,U)),M||j||U()}}}function Ho(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=To(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,s=o.type,c=o.leaveClass,l=o.leaveToClass,h=o.leaveActiveClass,f=o.beforeLeave,p=o.leave,d=o.afterLeave,g=o.leaveCancelled,m=o.delayLeave,y=o.duration,b=!1!==a&&!et,_=Go(p),w=v(u(y)?y.leave:y);0;var E=n._leaveCb=F(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(Mo(n,l),Mo(n,h)),E.cancelled?(b&&Mo(n,c),g&&g(n)):(e(),d&&d(n)),n._leaveCb=null});m?m(I):I()}function I(){E.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),b&&(Lo(n,c),Lo(n,h),Po(function(){Mo(n,c),E.cancelled||(Lo(n,l),_||(Wo(w)?setTimeout(E,w):jo(n,s,E)))})),p&&p(n,E),b||_||E())}}function Wo(t){return"number"===typeof t&&!isNaN(t)}function Go(t){if(r(t))return!1;var e=t.fns;return i(e)?Go(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Ko(t,e){!0!==e.data.show&&qo(e)}var zo=Y?{create:Ko,activate:Ko,remove:function(t,e){!0!==t.data.show?Ho(t,e):e()}}:{},$o=[Hi,Ki,no,so,_o,zo],Qo=$o.concat(Ui),Yo=xi({nodeOps:Ii,modules:Qo});et&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")});var Xo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?we(n,"postpatch",function(){Xo.componentUpdated(t,e,n)}):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some(function(t,e){return!M(t,r[e])})){var o=t.multiple?e.value.some(function(t){return ta(t,i)}):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Zo(t,e,n),(tt||nt)&&setTimeout(function(){Zo(t,e,n)},0)}function Zo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s<u;s++)if(a=t.options[s],i)o=j(r,ea(a))>-1,a.selected!==o&&(a.selected=o);else if(M(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every(function(e){return!M(e,t)})}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,qo(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?qo(n,function(){t.style.display=t.__vOriginalDisplay}):Ho(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Xo,show:aa},ua={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterA
135ctiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(In(e.children)):t}function la(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[I(o)]=i[o];return e}function ha(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function pa(t,e){return e.key===t.key&&e.tag===t.tag}var da=function(t){return t.tag||En(t)},va=function(t){return"show"===t.name},ga={name:"transition",props:ua,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(da),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return ha(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=la(this),c=this._vnode,l=ca(c);if(o.data.directives&&o.data.directives.some(va)&&(o.data.show=!0),l&&l.data&&!pa(o,l)&&!En(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var h=l.data.transition=x({},u);if("out-in"===r)return this._leaving=!0,we(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),ha(t,i);if("in-out"===r){if(En(o))return c;var f,p=function(){f()};we(u,"afterEnter",p),we(u,"enterCancelled",p),we(h,"delayLeave",function(t){f=t})}}return i}}},ma=x({tag:String,moveClass:String},ua);delete ma.mode;var ya={props:ma,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=xn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=la(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){for(var c=[],l=[],h=0;h<r.length;h++){var f=r[h];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?c.push(f):l.push(f)}this.kept=t(e,null,c),this.removed=l}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ba),t.forEach(_a),t.forEach(wa),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;Lo(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Oo,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Oo,t),n._moveCb=null,Mo(n,e))})}}))},methods:{hasMove:function(t,e){if(!Co)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Io(n,t)}),Eo(n,e),n.style.display="none",this.$el.appendChild(n);var r=Uo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ba(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function _a(t){t.data.newPos=t.elm.getBoundingClientRect()}function wa(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Ea={Transition:ga,TransitionGroup:ya};Ir.config.mustUseProp=Vr,Ir.config.isReservedTag=oi,Ir.config.isReservedAttr=Fr,Ir.config.getTagNamespace=ai,Ir.config.isUnknownElement=ui,x(Ir.options.directives,sa),x(Ir.options.components,Ea),Ir.prototype.__patch__=Y?Yo:R,Ir.prototype.$mount=function(t,e){return t=t&&Y?li(t):void 0,Pn(this,t,e)},Y&&setTimeout(function(){q.devtools&&ct&&ct.emit("init",Ir)},0),e["a"]=Ir}).call(this,n("c8ba"))},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},"2ce1":function(t,e,n){(function(t){(function(){var e,r=n("c23d").default,i="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function o(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof t&&t,e];for(var n=0;n<e.length;++n){var r=e[n];if(r&&r.Math==Math)return r}return globalThis}var a=o(this);function s(t,e){if(e){var n=a;t=t.split(".");for(var r=0;r<t.length-1;r++){var o=t[r];o in n||(n[o]={}),n=n[o]}t=t[t.length-1],r=n[t],e=e(r),e!=r&&null!=e&&i(n,t,{configurable:!0,writable:!0,value:e})}}function u(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function c(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:u(t)}}s("Promise",function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function n(){this.a=null}function r(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;n.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c(function(){e.g()})}this.a.push(t)};var i=a.setTimeout;n.prototype.c=function(t){i(t,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(r){this.f(r)}}}this.a=null},n.prototype.f=function(t){this.c(function(){throw t})},e.prototype.f=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1;return{resolve:t(this.v),reject:t(this.g)}}
vendor: 1,336 bytes, line 135
135,e.prototype.v=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.o(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.m(t):this.h(t)}},e.prototype.m=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.u(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)o.b(this.a[t]);this.a=null}};var o=new n;return e.prototype.o=function(t){var e=this.f();t.Pa(e.resolve,e.reject)},e.prototype.u=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(r){n.reject(r)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(n){o(n)}}:e}var i,o,a=new e(function(t,e){i=t,o=e});return this.Pa(r(t,i),r(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Pa=function(t,e){function n(){switch(r.b){case 1:t(r.c);break;case 2:e(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?o.b(n):this.a.push(n)}
135,e.resolve=r,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var i=c(t),o=i.next();!o.done;o=i.next())r(o.value).Pa(e,n)})},e.all=function(t){var n=c(t),i=n.next();return i.done?r([]):new e(function(t,e){function o(e){return function(n){a[e]=n,s--,0==s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Pa(o(a.length-1),e),i=n.next()}while(!i.done)})},e});var l=l||{},h=this||self,f=/^[\w+/_-]+[=]{0,2}$/,p=null;function d(){}function v(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&"undefined"!=typeof t.splice&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof t.call&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&"undefined"==typeof t.call)return"object";return e}function g(t){var e=v(t);return"array"==e||"object"==e&&"number"==typeof t.length}function m(t){return"function"==v(t)}function y(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function b(t){return Object.prototype.hasOwnProperty.call(t,_)&&t[_]||(t[_]=++w)}var _="closure_uid_"+(1e9*Math.random()>>>0),w=0;function E(t,e,n){return t.call.apply(t.bind,arguments)}function I(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function T(t,e,n){return T=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?E:I,T.apply(null,arguments)}function S(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var C=Date.now||function(){return+new Date};function A(t,e){function n(){}n.prototype=e.prototype,t.$a=e.prototype,t.prototype=new n,t.prototype.constructor=t}
135function N(t,e,n){this.code=x+t,this.message=e||D[t]||"",this.a=n||null}function k(t){var e=t&&t.code;return e?new N(e.substring(x.length),t.message,t.serverResponse):null}A(N,Error),N.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},N.prototype.toJSON=function(){return this.w()};var O,x="auth/",D={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
135ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
135d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},R={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function P(t){for(var e in R)if(R[e].id===t)return t=R[e],{firebaseEndpoint:t.Sa,secureTokenEndpoint:t.Ya,identityPlatformEndpoint:t.Va};return null}function L(t){if(!t)return!1;
135try{return!!t.$goog_Thenable}catch(e){return!1}}function M(t){if(Error.captureStackTrace)Error.captureStackTrace(this,M);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function j(t,e){t=t.split("%s");for(var n="",r=t.length-1,i=0;i<r;i++)n+=t[i]+(i<e.length?e[i]:"%s");M.call(this,n+t[r])}function F(t,e){throw new j("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function U(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function V(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function B(){this.b=this.a=null}O=P("__EID__")?"__EID__":void 0,A(M,Error),M.prototype.name="CustomError",A(j,M),j.prototype.name="AssertionError",U.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var q=new U(function(){return new W},function(t){t.reset()});function H(){var t=Ae,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function W(){this.next=this.b=this.a=null}B.prototype.add=function(t,e){var n=q.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},W.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},W.prototype.reset=function(){this.next=this.b=this.a=null};var G=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"===typeof t)return"string"!==typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},K=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"===typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function z(t,e){for(var n="string"===typeof t?t.split(""):t,r=t.length-1;0<=r;--r)r in n&&e.call(void 0,n[r],r,t)}var $=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=[],i=0,o="string"===typeof t?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(r[i++]=s)}return r},Q=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=Array(n),i="string"===typeof t?t.split(""):t,o=0;o<n;o++)o in i&&(r[o]=e.call(void 0,i[o],o,t));return r},Y=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t))return!0;return!1};function X(t){t:{for(var e=ns,n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"===typeof t?t.charAt(e):t[e]}function J(t,e){return 0<=G(t,e)}function Z(t,e){var n;return e=G(t,e),(n=0<=e)&&Array.prototype.splice.call(t,e,1),n}function tt(t,e){z(t,function(n,r){e.call(void 0,n,r,t)&&1==Array.prototype.splice.call(t,r,1).length&&0})}function et(t){return Array.prototype.concat.apply([],arguments)}function nt(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}var rt,it=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},ot=/&/g,at=/</g,st=/>/g,ut=/"/g,ct=/'/g,lt=/\x00/g,ht=/[\x00&<>"']/;function ft(t,e){return-1!=t.indexOf(e)}function pt(t,e){return t<e?-1:t>e?1:0}t:{var dt=h.navigator;if(dt){var vt=dt.userAgent;if(vt){rt=vt;break t}}rt=""}function gt(t){return ft(rt,t)}function mt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function yt(t){for(var e in t)return!1;return!0}function bt(t){var e,n={};for(e in t)n[e]=t[e];return n}var _t="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function wt(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i],r)t[n]=r[n];for(var o=0;o<_t.length;o++)n=_t[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function Et(t,e){t:{try{var n=t&&t.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if(r=r||h,r.Element&&r.Location){var i=r;break t}}catch(a){}i=null}if(i&&"undefined"!=typeof i[e]&&(!t||!(t instanceof i[e])&&(t instanceof i.Location||t instanceof i.Element))){if
135(y(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(a){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;F("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function It(t,e){this.a=t===Ct&&e||"",this.b=St}function Tt(t){return t instanceof It&&t.constructor===It&&t.b===St?t.a:(F("expected object of type Const, got '"+t+"'"),"type_error:Const")}It.prototype.sa=!0,It.prototype.ra=function(){return this.a},It.prototype.toString=function(){return"Const{"+this.a+"}"};var St={},Ct={},At=new It(Ct,"");function Nt(t,e){this.a=t===Pt&&e||"",this.b=Rt}function kt(t){return t instanceof Nt&&t.constructor===Nt&&t.b===Rt?t.a:(F("expected object of type TrustedResourceUrl, got '"+t+"' of type "+v(t)),"type_error:TrustedResourceUrl")}function Ot(t,e){var n=Tt(t);if(!Dt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(xt,function(t,r){if(!Object.prototype.hasOwnProperty.call(e,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return t=e[r],t instanceof It?Tt(t):encodeURIComponent(String(t))}),new Nt(Pt,t)}Nt.prototype.sa=!0,Nt.prototype.ra=function(){return this.a.toString()},Nt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var xt=/%{(\w+)}/g,Dt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Rt={},Pt={};function Lt(t,e){this.a=t===Vt&&e||"",this.b=Ut}function Mt(t){return t instanceof Lt&&t.constructor===Lt&&t.b===Ut?t.a:(F("expected object of type SafeUrl, got '"+t+"' of type "+v(t)),"type_error:SafeUrl")}Lt.prototype.sa=!0,Lt.prototype.ra=function(){return this.a.toString()},Lt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var jt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ft(t){return t instanceof Lt?t:(t="object"==typeof t&&t.sa?t.ra():String(t),jt.test(t)||(t="about:invalid#zClosurez"),new Lt(Vt,t))}var Ut={},Vt={};function Bt(){this.a="",this.b=Ht}function qt(t){return t instanceof Bt&&t.constructor===Bt&&t.b===Ht?t.a:(F("expected object of type SafeHtml, got '"+t+"' of type "+v(t)),"type_error:SafeHtml")}Bt.prototype.sa=!0,Bt.prototype.ra=function(){return this.a.toString()},Bt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ht={};function Wt(t){var e=new Bt;return e.a=t,e}Wt("<!DOCTYPE html>");var Gt=Wt("");function Kt(t){var e=new Nt(Pt,Tt(At));Et(t,"HTMLIFrameElement"),t.src=kt(e).toString()}function zt(t,e){Et(t,"HTMLScriptElement"),t.src=kt(e),null===p&&(e=h.document,p=(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&f.test(e)?e:""),e=p,e&&t.setAttribute("nonce",e)}function $t(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function Qt(t){return ht.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(ot,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(at,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(st,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(ut,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(ct,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(lt,"&#0;"))),t}function Yt(t){return Yt[" "](t),t}function Xt(t,e){var n=le;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}Wt("<br>"),Yt[" "]=d;var Jt,Zt=gt("Opera"),te=gt("Trident")||gt("MSIE"),ee=gt("Edge"),ne=ee||te,re=gt("Gecko")&&!(ft(rt.toLowerCase(),"webkit")&&!gt("Edge"))&&!(gt("Trident")||gt("MSIE"))&&!gt("Edge"),ie=ft(rt.toLowerCase(),"webkit")&&!gt("Edge");function oe(){var t=h.document;return t?t.documentMode:void 0}t:{var ae="",se=function(){var t=rt;return re?/rv:([^\);]+)(\)|;)/.exec(t):ee?/Edge\/([\d\.]+)/.exec(t):te?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):ie?/WebKit\/(\S+)/.exec(t):Zt?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(se&&(ae=se?se[1]:""),te){var ue=oe();if(null!=ue&&ue>parseFloat(ae)){Jt=String(ue);break t}}Jt=ae}var ce,le={};function he(t){return Xt(t,function(){for(var e=0,n=it(String(Jt)).split("."),r=it(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=pt(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||pt(0==a[2].length,0==s[2].length)||pt(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}ce=h.document&&te?oe():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Qp){}var fe=!te||9<=Number(ce);function pe(t){var e=document;return"string"===typeof t?e.getElementById(t):t}function de(t,e){mt(e,function(e,n){e&&"object"==typeof e&&e.sa&&(e=e.ra()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:me.hasOwnProperty(n)?t.setAttribute(me[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}var ve,ge,me={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
135nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ye(t,e,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!fe&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',Qt(a.name),'"'),a.type){o.push(' type="',Qt(a.type),'"');var s={};wt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=_e(i,o),a&&("string"===typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):de(o,a)),2<r.length&&be(i,o,r),o}function be(t,e,n){function r(n){n&&e.appendChild("string"===typeof n?t.createTextNode(n):n)}for(var i=2;i<n.length;i++){var o=n[i];!g(o)||y(o)&&0<o.nodeType?r(o):K(we(o)?nt(o):o,r)}}function _e(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function we(t){if(t&&"number"==typeof t.length){if(y(t))return"function"==typeof t.item||"string"==typeof t.item;if(m(t))return"function"==typeof t.item}return!1}function Ee(t){h.setTimeout(function(){throw t},0)}function Ie(){var t=h.MessageChannel;if("undefined"===typeof t&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!gt("Presto")&&(t=function(){var t=_e(document,"IFRAME");t.style.display="none",Kt(t),document.documentElement.appendChild(t);var e=t.contentWindow;t=e.document,t.open(),t.write(qt(Gt)),t.close();var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=T(function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),"undefined"!==typeof t&&!gt("Trident")&&!gt("MSIE")){var e=new t,n={},r=n;return e.port1.onmessage=function(){if(void 0!==n.next){n=n.next;var t=n.Fb;n.Fb=null,t()}},function(t){r.next={Fb:t},r=r.next,e.port2.postMessage(0)}}return function(t){h.setTimeout(t,0)}}function Te(t,e){ge||Se(),Ce||(ge(),Ce=!0),Ae.add(t,e)}function Se(){if(h.Promise&&h.Promise.resolve){var t=h.Promise.resolve(void 0);ge=function(){t.then(Ne)}}else ge=function(){var t=Ne;!m(h.setImmediate)||h.Window&&h.Window.prototype&&!gt("Edge")&&h.Window.prototype.setImmediate==h.setImmediate?(ve||(ve=Ie()),ve(t)):h.setImmediate(t)}}var Ce=!1,Ae=new B;function Ne(){for(var t;t=H();){try{t.a.call(t.b)}catch(e){Ee(e)}V(q,t)}Ce=!1}function ke(t,e){if(this.a=Oe,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=d)try{var n=this;t.call(e,function(t){We(n,xe,t)},function(t){if(!(t instanceof Ze))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}We(n,De,t)})}catch(r){We(this,De,r)}}var Oe=0,xe=2,De=3;function Re(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Re.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Pe=new U(function(){return new Re},function(t){t.reset()});function Le(t,e,n){var r=Pe.get();return r.g=t,r.b=e,r.f=n,r}function Me(t){if(t instanceof ke)return t;var e=new ke(d);return We(e,xe,t),e}
135function je(t){return new ke(function(e,n){n(t)})}function Fe(t,e,n){Ge(t,e,n,null)||Te(S(e,t))}function Ue(t){return new ke(function(e,n){var r=t.length,i=[];if(r)for(var o,a=function(t,n){r--,i[t]=n,0==r&&e(i)},s=function(t){n(t)},u=0;u<t.length;u++)o=t[u],Fe(o,S(a,u),s);else e(i)})}function Ve(t){return new ke(function(e){var n=t.length,r=[];if(n)for(var i,o=function(t,i,o){n--,r[t]=i?{Ob:!0,value:o}:{Ob:!1,reason:o},0==n&&e(r)},a=0;a<t.length;a++)i=t[a],Fe(i,S(o,a,!0),S(o,a,!1));else e(r)})}function Be(t,e){if(t.a==Oe)if(t.c){var n=t.c;if(n.b){for(var r=0,i=null,o=null,a=n.b;a&&(a.c||(r++,a.a==t&&(i=a),!(i&&1<r)));a=a.next)i||(o=a);i&&(n.a==Oe&&1==r?Be(n,e):(o?(r=o,r.next==n.f&&(n.f=r),r.next=r.next.next):$e(n),Qe(n,i,De,e)))}t.c=null}else We(t,De,e)}function qe(t,e){t.b||t.a!=xe&&t.a!=De||ze(t),t.f?t.f.next=e:t.b=e,t.f=e}function He(t,e,n,r){var i=Le(null,null,null);return i.a=new ke(function(t,o){i.g=e?function(n){try{var i=e.call(r,n);t(i)}catch(a){o(a)}}:t,i.b=n?function(e){try{var i=n.call(r,e);void 0===i&&e instanceof Ze?o(e):t(i)}catch(a){o(a)}}:o}),i.a.c=t,qe(t,i),i.a}function We(t,e,n){t.a==Oe&&(t===n&&(e=De,n=new TypeError("Promise cannot resolve to itself")),t.a=1,Ge(n,t.Zc,t.$c,t)||(t.i=n,t.a=e,t.c=null,ze(t),e!=De||n instanceof Ze||Xe(t,n)))}function Ge(t,e,n,r){if(t instanceof ke)return qe(t,Le(e||d,n||null,r)),!0;if(L(t))return t.then(e,n,r),!0;if(y(t))try{var i=t.then;if(m(i))return Ke(t,i,e,n,r),!0}catch(o){return n.call(r,o),!0}return!1}function Ke(t,e,n,r,i){function o(t){s||(s=!0,r.call(i,t))}function a(t){s||(s=!0,n.call(i,t))}var s=!1;try{e.call(t,a,o)}catch(u){o(u)}}function ze(t){t.h||(t.h=!0,Te(t.fc,t))}function $e(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function Qe(t,e,n,r){if(n==De&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,Ye(e,n,r);else try{e.c?e.g.call(e.f):Ye(e,n,r)}catch(i){Je.call(null,i)}V(Pe,e)}function Ye(t,e,n){e==xe?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}function Xe(t,e){t.g=!0,Te(function(){t.g&&Je.call(null,e)})}ke.prototype.then=function(t,e,n){return He(this,m(t)?t:null,m(e)?e:null,n)},ke.prototype.$goog_Thenable=!0,e=ke.prototype,e.na=function(t,e){return t=Le(t,t,e),t.c=!0,qe(this,t),this},e.s=function(t,e){return He(this,null,t,e)},e.cancel=function(t){if(this.a==Oe){var e=new Ze(t);Te(function(){Be(this,e)},this)}},e.Zc=function(t){this.a=Oe,We(this,xe,t)},e.$c=function(t){this.a=Oe,We(this,De,t)},e.fc=function(){for(var t;t=$e(this);)Qe(this,t,this.a,this.i);this.h=!1};var Je=Ee;function Ze(t){M.call(this,t)}function tn(){0!=en&&(nn[b(this)]=this),this.xa=this.xa,this.oa=this.oa}A(Ze,M),Ze.prototype.name="cancel";var en=0,nn={};function rn(t){if(!t.xa&&(t.xa=!0,t.Da(),0!=en)){var e=b(t);if(0!=en&&t.oa&&0<t.oa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete nn[e]}}tn.prototype.xa=!1,tn.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var on=Object.freeze||function(t){return t},an=!te||9<=Number(ce),sn=te&&!he("9"),un=function(){if(!h.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{h.addEventListener("test",d,e),h.removeEventListener("test",d,e)}catch(n){}return t}();function cn(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function ln(t,e){if(cn.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if(re){t:{try{Yt(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"===typeof t.pointerType?t.pointerType:hn[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}cn.prototype.preventDefault=function(){this.defaultPrevented=!0},A(ln,cn);var hn=on({2:"touch",3:"pen",4:"mouse"});ln.prototype.preventDefault=function(){ln.$a.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,sn)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},ln.prototype.g=function(){return this.a};var fn="closure_listenable_"+(1e6*Math.random()|0),pn=0;function dn(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Ua=i,this.key=++pn,this.va=this.Oa=!1}
135function vn(t){t.va=!0,t.listener=null,t.proxy=null,t.src=null,t.Ua=null}function gn(t){this.src=t,this.a={},this.b=0}function mn(t,e){var n=e.type;n in t.a&&Z(t.a[n],e)&&(vn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function yn(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.va&&o.listener==e&&o.capture==!!n&&o.Ua==r)return i}return-1}gn.prototype.add=function(t,e,n,r,i){var o=t.toString();t=this.a[o],t||(t=this.a[o]=[],this.b++);var a=yn(t,e,r,i);return-1<a?(e=t[a],n||(e.Oa=!1)):(e=new dn(e,this.src,o,!!r,i),e.Oa=n,t.push(e)),e};var bn="closure_lm_"+(1e6*Math.random()|0),_n={};function wn(t,e,n,r,i){if(r&&r.once)Tn(t,e,n,r,i);else if(Array.isArray(e))for(var o=0;o<e.length;o++)wn(t,e[o],n,r,i);else n=Rn(n),t&&t[fn]?Ln(t,e,n,y(r)?!!r.capture:!!r,i):En(t,e,n,!1,r,i)}function En(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=y(i)?!!i.capture:!!i,s=xn(t);if(s||(t[bn]=s=new gn(t)),n=s.add(e,n,r,a,o),!n.proxy){if(r=In(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)un||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(An(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}0}}function In(){var t=On,e=an?function(n){return t.call(e.src,e.listener,n)}:function(n){if(n=t.call(e.src,e.listener,n),!n)return n};return e}function Tn(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)Tn(t,e[o],n,r,i);else n=Rn(n),t&&t[fn]?Mn(t,e,n,y(r)?!!r.capture:!!r,i):En(t,e,n,!0,r,i)}function Sn(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)Sn(t,e[o],n,r,i);else r=y(r)?!!r.capture:!!r,n=Rn(n),t&&t[fn]?(t=t.v,e=String(e).toString(),e in t.a&&(o=t.a[e],n=yn(o,n,r,i),-1<n&&(vn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=xn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=yn(e,n,r,i)),(n=-1<t?e[t]:null)&&Cn(n))}function Cn(t){if("number"!==typeof t&&t&&!t.va){var e=t.src;if(e&&e[fn])mn(e.v,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(An(n),r):e.addListener&&e.removeListener&&e.removeListener(r),0,(n=xn(e))?(mn(n,t),0==n.b&&(n.src=null,e[bn]=null)):vn(t)}}}function An(t){return t in _n?_n[t]:_n[t]="on"+t}function Nn(t,e,n,r){var i=!0;if((t=xn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.va&&(o=kn(o,r),i=i&&!1!==o)}return i}function kn(t,e){var n=t.listener,r=t.Ua||t.src;return t.Oa&&Cn(t),n.call(r,e)}function On(t,e){if(t.va)return!0;if(!an){if(!e)t:{e=["window","event"];for(var n=h,r=0;r<e.length;r++)if(n=n[e[r]],null==n){e=null;break t}e=n}if(r=e,e=new ln(r,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(a){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.b;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;0<=i;i--){e.b=r[i];var o=Nn(r[i],t,!0,e);n=n&&o}for(i=0;i<r.length;i++)e.b=r[i],o=Nn(r[i],t,!1,e),n=n&&o}return n}return kn(t,new ln(e,this))}function xn(t){return t=t[bn],t instanceof gn?t:null}var Dn="__closure_events_fn_"+(1e9*Math.random()>>>0);function Rn(t){return m(t)?t:(t[Dn]||(t[Dn]=function(e){return t.handleEvent(e)}),t[Dn])}function Pn(){tn.call(this),this.v=new gn(this),this.$b=this,this.fb=null}function Ln(t,e,n,r,i){t.v.add(String(e),n,!1,r,i)}function Mn(t,e,n,r,i){t.v.add(String(e),n,!0,r,i)}function jn(t,e,n,r){if(e=t.v.a[String(e)],!e)return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.va&&a.capture==n){var s=a.listener,u=a.Ua||a.src;a.Oa&&mn(t.v,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}function Fn(t,e,n){if(m(t))n&&(t=T(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=T(t.handleEvent,t)}return 2147483647<Number(e)?-1:h.setTimeout(t,e||0)}function Un(t){var e=null;return new ke(function(n,r){e=Fn(function(){n(void 0)},t),-1==e&&r(Error("Failed to schedule timer."))}).s(function(t){throw h.clearTimeout(e),t})}function Vn(t){if(t.V&&"function"==typeof t.V)return t.V();if("string"===typeof t)return t.split("");
vendor: 4,326 bytes, line 135
135if(g(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}function Bn(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.V||"function"!=typeof t.V){if(g(t)||"string"===typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var r in e=[],n=0,t)e[n++]=r;return e}}function qn(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(g(t)||"string"===typeof t)K(t,e,void 0);else for(var n=Bn(t),r=Vn(t),i=r.length,o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}function Hn(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Hn)for(n=t.Y(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Wn(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Gn(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)r=t.a[e],Gn(i,r)||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Gn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}A(Pn,tn),Pn.prototype[fn]=!0,Pn.prototype.addEventListener=function(t,e,n,r){wn(this,t,e,n,r)},Pn.prototype.removeEventListener=function(t,e,n,r){Sn(this,t,e,n,r)},Pn.prototype.dispatchEvent=function(t){var e,n=this.fb;if(n)for(e=[];n;n=n.fb)e.push(n);n=this.$b;var r=t.type||t;if("string"===typeof t)t=new cn(t,n);else if(t instanceof cn)t.target=t.target||n;else{var i=t;t=new cn(r,n),wt(t,i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.b=e[o];i=jn(a,r,!0,t)&&i}if(a=t.b=n,i=jn(a,r,!0,t)&&i,i=jn(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)a=t.b=e[o],i=jn(a,r,!1,t)&&i;return i},Pn.prototype.Da=function(){if(Pn.$a.Da.call(this),this.v){var t,e=this.v;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)0,vn(n[r]);delete e.a[t],e.b--}}this.fb=null},e=Hn.prototype,e.V=function(){Wn(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},e.Y=function(){return Wn(this),this.a.concat()},e.clear=function(){this.b={},this.c=this.a.length=0},e.get=function(t,e){return Gn(this.b,t)?this.b[t]:e},e.set=function(t,e){Gn(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},e.forEach=function(t,e){for(var n=this.Y(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var Kn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function zn(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function $n(t,e){var n;this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1,t instanceof $n?(this.i=void 0!==e?e:t.i,Qn(this,t.f),this.l=t.l,this.a=t.a,Yn(this,t.g),this.c=t.c,Xn(this,gr(t.b)),this.h=t.h):t&&(n=String(t).match(Kn))?(this.i=!!e,Qn(this,n[1]||"",!0),this.l=nr(n[2]||""),this.a=nr(n[3]||"",!0),Yn(this,n[4]),this.c=nr(n[5]||"",!0),Xn(this,n[6]||"",!0),this.h=nr(n[7]||"")):(this.i=!!e,this.b=new lr(null,this.i))}function Qn(t,e,n){t.f=n?nr(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Yn(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function Xn(t,e,n){e instanceof lr?(t.b=e,yr(t.b,t.i)):(n||(e=rr(e,ur)),t.b=new lr(e,t.i))}function Jn(t,e,n){t.b.set(e,n)}function Zn(t,e){return t.b.get(e)}function tr(t){return t instanceof $n?new $n(t):new $n(t,void 0)}function er(t,e,n,r){var i=new $n(null,void 0);return t&&Qn(i,t),e&&(i.a=e),n&&Yn(i,n),r&&(i.c=r),i}function nr(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function rr(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,ir),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function ir(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}$n.prototype.toString=function(){var t=[],e=this.f;e&&t.push(rr(e,or,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(rr(e,or,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.g,null!=n&&t.push(":",String(n))),(n=this.c)&&(this.a&&"/"!=n.charAt(0)&&t.push("/"),t.push(rr(n,"/"==n.charAt(0)?sr:ar,!0))),(n=this.b.toString())&&t.pu
135sh("?",n),(n=this.h)&&t.push("#",rr(n,cr)),t.join("")},$n.prototype.resolve=function(t){var e=new $n(this),n=!!t.f;n?Qn(e,t.f):n=!!t.l,n?e.l=t.l:n=!!t.a,n?e.a=t.a:n=null!=t.g;var r=t.c;if(n)Yn(e,t.g);else if(n=!!t.c){if("/"!=r.charAt(0))if(this.a&&!this.c)r="/"+r;else{var i=e.c.lastIndexOf("/");-1!=i&&(r=e.c.substr(0,i+1)+r)}if(i=r,".."==i||"."==i)r="";else if(ft(i,"./")||ft(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?e.c=r:n=""!==t.b.toString(),n?Xn(e,gr(t.b)):n=!!t.h,n&&(e.h=t.h),e};var or=/[#\/\?@]/g,ar=/[#\?:]/g,sr=/[#\?]/g,ur=/[#\?@]/g,cr=/#/g;function lr(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function hr(t){t.a||(t.a=new Hn,t.b=0,t.c&&zn(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function fr(t){var e=Bn(t);if("undefined"==typeof e)throw Error("Keys are undefined");var n=new lr(null,void 0);t=Vn(t);for(var r=0;r<e.length;r++){var i=e[r],o=t[r];Array.isArray(o)?vr(n,i,o):n.add(i,o)}return n}function pr(t,e){hr(t),e=mr(t,e),Gn(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,t=t.a,Gn(t.b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Wn(t)))}function dr(t,e){return hr(t),e=mr(t,e),Gn(t.a.b,e)}function vr(t,e,n){pr(t,e),0<n.length&&(t.c=null,t.a.set(mr(t,e),nt(n)),t.b+=n.length)}function gr(t){var e=new lr;return e.c=t.c,t.a&&(e.a=new Hn(t.a),e.b=t.b),e}function mr(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function yr(t,e){e&&!t.f&&(hr(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(pr(this,e),vr(this,n,t))},t)),t.f=e}function br(t){var e=[];return wr(new _r,t,e),e.join("")}function _r(){}function wr(t,e,n){if(null==e)n.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var r=e;e=r.length,n.push("[");for(var i="",o=0;o<e;o++)n.push(i),wr(t,r[o],n),i=",";return void n.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(r in n.push("{"),i="",e)Object.prototype.hasOwnProperty.call(e,r)&&(o=e[r],"function"!=typeof o&&(n.push(i),Tr(r,n),n.push(":"),wr(t,o,n),i=","));return void n.push("}")}e=e.valueOf()}switch(typeof e){case"string":Tr(e,n);break;case"number":n.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":n.push(String(e));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}e=lr.prototype,e.add=function(t,e){hr(this),this.c=null,t=mr(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},e.clear=function(){this.a=this.c=null,this.b=0},e.forEach=function(t,e){hr(this),this.a.forEach(function(n,r){K(n,function(n){t.call(e,n,r,this)},this)},this)},e.Y=function(){hr(this);for(var t=this.a.V(),e=this.a.Y(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},e.V=function(t){hr(this);var e=[];if("string"===typeof t)dr(this,t)&&(e=et(e,this.a.get(mr(this,t))));else{t=this.a.V();for(var n=0;n<t.length;n++)e=et(e,t[n])}return e},e.set=function(t,e){return hr(this),this.c=null,t=mr(this,t),dr(this,t)&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},e.get=function(t,e){return t?(t=this.V(t),0<t.length?String(t[0]):e):e},e.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.Y(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.V(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")};var Er={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ir=/\uffff/.test("ï¿¿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Tr(t,e){e.push('"',t.replace(Ir,function(t){var e=Er[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),Er[t]=e),e}),'"')}function Sr(){var t=Qr();return te&&!!ce&&11==ce||/Edge\/\d+/.test(t)}function Cr(){return h.window&&h.window.location.href||self&&self.location&&self.location.href||""}function Ar(t,e){e=e||h.window;var n="about:blank";t&&(n=Mt(Ft(t))),e.location.href=n}function Nr(t,e){var n,r=[];
135for(n in t)n in e?typeof t[n]!=typeof e[n]?r.push(n):"object"==typeof t[n]&&null!=t[n]&&null!=e[n]?0<Nr(t[n],e[n]).length&&r.push(n):t[n]!==e[n]&&r.push(n):r.push(n);for(n in e)n in t||r.push(n);return r}function kr(){var t=Qr();return t=Kr(t)!=Gr?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null,!(t&&30>t)&&(!te||!ce||9<ce)}function Or(t){return t=(t||Qr()).toLowerCase(),!!(t.match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function xr(t){t=t||h.window;try{t.close()}catch(e){}}function Dr(t,e,n){var r=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;for(a in e={width:e,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Qr().toLowerCase(),r&&(e.target=r,ft(n,"crios/")&&(e.target="_blank")),Kr(Qr())==Wr&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),r=window,e=n instanceof Lt?n:Ft("undefined"!=typeof n.href?n.href:String(n)),n=t.target||n.target,i=[],t)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(t[a]?1:0))}var a=i.join(",");if((gt("iPhone")&&!gt("iPod")&&!gt("iPad")||gt("iPad")||gt("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(a=_e(document,"A"),Et(a,"HTMLAnchorElement"),e instanceof Lt||e instanceof Lt||(e="object"==typeof e&&e.sa?e.ra():String(e),jt.test(e)||(e="about:invalid#zClosurez"),e=new Lt(Vt,e)),a.href=Mt(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=r.open("",n,a),t=Mt(e),a&&(ne&&ft(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t=Wt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Qt(t)+'">'),r=a.document)&&(r.write(qt(t)),r.close())):(a=r.open(Mt(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}function Rr(t){return new ke(function(e){function n(){Un(2e3).then(function(){if(t&&!t.closed)return n();e()})}return n()})}var Pr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Lr=/^[^@]+@[^@]+$/;function Mr(){var t=null;return new ke(function(e){"complete"==h.document.readyState?e():(t=function(){e()},Tn(window,"load",t))}).s(function(e){throw Sn(window,"load",t),e})}function jr(){return Fr(void 0)?Mr().then(function(){return new ke(function(t,e){var n=h.document,r=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(r),t()},!1)})}):je(Error("Cordova must run in an Android or iOS file scheme."))}function Fr(t){return t=t||Qr(),!("file:"!==ti()&&"ionic:"!==ti()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function Ur(){var t=h.window;try{return!(!t||t==t.top)}catch(e){return!1}}function Vr(){return"undefined"!==typeof h.WorkerGlobalScope&&"function"===typeof h.importScripts}function Br(){return r.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.INTERNAL.hasOwnProperty("node")?"Node":Vr()?"Worker":"Browser"}function qr(){var t=Br();return"ReactNative"===t||"Node"===t}function Hr(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}var Wr="Firefox",Gr="Chrome";function Kr(t){var e=t.toLowerCase();return ft(e,"opera/")||ft(e,"opr/")||ft(e,"opios/")?"Opera":ft(e,"iemobile")?"IEMobile":ft(e,"msie")||ft(e,"trident/")?"IE":ft(e,"edge/")?"Edge":ft(e,"firefox/")?Wr:ft(e,"silk/")?"Silk":ft(e,"blackberry")?"Blackberry":ft(e,"webos")?"Webos":!ft(e,"safari/")||ft(e,"chrome/")||ft(e,"crios/")||ft(e,"android")?!ft(e,"chrome/")&&!ft(e,"crios/")||ft(e,"edge/")?ft(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":Gr:"Safari"}var zr={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};function $r(t,e){e=e||[];var n,r=[],i={};for(n in zr)i[zr[n]]=!0;for(n=0;n<e.length;n++)"undefined"!==typeof i[e[n]]&&(delete i[e[n]],r.push(e[n]));return r.sort(),e=r,e.length||(e=["FirebaseCore-web"]),r=Br(),"Browser"===r?(i=Qr(),r=Kr(i)):"Worker"===r&&(i=Qr(),r=Kr(i)+"-"+r),r+"/JsCore/"+t+"/"+e.join(",")}function Qr(){return h.navigator&&h.navigator.userAgent||""}function Yr(t,e){t=t.split("."),e=e||h;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function Xr(){try{var t=h.localStorage,e=oi();if(t)return t.setItem(e,"1"),t.removeItem(e),!Sr()||!!h.indexedDB}catch(n){return Vr()&&!!h.indexedDB}return!1}function Jr(){return(Zr()||"chrome-extension:"===ti()||Fr())&&!qr()&&Xr()&&!Vr()}function Zr(){return"http:"===ti()||"https:"===ti()}function ti(){return h.location&&h.location.protocol||null}function ei(t){return t=t||Qr(),!Or(t)&&Kr(t)!=Wr}function ni(t){return"undefined"===typeof t?null:br(t)}function ri(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!==t[e]&&void 0!==t[e]&&(n[e]=t[e]);return n}function ii(t){if(null!==t)return JSON.parse(t)}function oi(t){return t||Math.floor(1e9*Math.random()).toString()}function ai(t){return t=t||Qr(),"Safari"!=Kr(t)&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function si(){var t=h.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function ui(t,e){if(t>
135e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Qr(),e=Br(),this.b=Or(t)||"ReactNative"===e}function ci(){var t=h.document;return!t||"undefined"===typeof t.visibilityState||"visible"==t.visibilityState}function li(){var t=h.document,e=null;return ci()||!t?Me():new ke(function(n){e=function(){ci()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).s(function(n){throw t.removeEventListener("visibilitychange",e,!1),n})}function hi(t){"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t)}function fi(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function pi(){return!(!Yr("fireauth.oauthhelper",h)&&!Yr("fireauth.iframe",h))}function di(){var t=h.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}function vi(){var t=h.navigator;return t&&t.serviceWorker?Me().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).s(function(){return null}):Me(null)}ui.prototype.get=function(){var t=h.navigator;return!t||"boolean"!==typeof t.onLine||!Zr()&&"chrome-extension:"!==ti()&&"undefined"===typeof t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var gi,mi={};function yi(t){mi[t]||(mi[t]=!0,hi(t))}try{var bi={};Object.defineProperty(bi,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(bi,"abcd",{configurable:!0,enumerable:!0,value:2}),gi=2==bi.abcd}catch(Qp){gi=!1}function _i(t,e,n){gi?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function wi(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&_i(t,n,e[n])}function Ei(t){var e={};return wi(e,t),e}function Ii(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Ti(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var r=t[e[n]];if(void 0===r||null===r||""===r)return!1}return!0}function Si(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)_i(e,n,Si(t[n]));return e}function Ci(t){var e=t&&(t[xi]?"phone":null);if(!(e&&t&&t[Oi]))throw new N("internal-error","Internal assert: invalid MultiFactorInfo object");_i(this,"uid",t[Oi]),_i(this,"displayName",t[Ni]||null);var n=null;t[ki]&&(n=new Date(t[ki]).toUTCString()),_i(this,"enrollmentTime",n),_i(this,"factorId",e)}function Ai(t){try{var e=new Di(t)}catch(n){e=null}return e}Ci.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Ni="displayName",ki="enrolledAt",Oi="mfaEnrollmentId",xi="phoneInfo";function Di(t){Ci.call(this,t),_i(this,"phoneNumber",t[xi])}function Ri(t){var e={},n=t[ji],r=t[Ui],i=t[Vi];if(t=Ai(t[Fi]),!i||i!=Li&&i!=Mi&&!n||i==Mi&&!r||i==Pi&&!t)throw Error("Invalid checkActionCode response!");i==Mi?(e[qi]=n||null,e[Wi]=n||null,e[Bi]=r):(e[qi]=r||null,e[Wi]=r||null,e[Bi]=n||null),e[Hi]=t||null,_i(this,Ki,i),_i(this,Gi,Si(e))}A(Di,Ci),Di.prototype.w=function(){var t=Di.$a.w.call(this);return t.phoneNumber=this.phoneNumber,t};var Pi="REVERT_SECOND_FACTOR_ADDITION",Li="EMAIL_SIGNIN",Mi="VERIFY_AND_CHANGE_EMAIL",ji="email",Fi="mfaInfo",Ui="newEmail",Vi="requestType",Bi="email",qi="fromEmail",Hi="multiFactorInfo",Wi="previousEmail",Gi="data",Ki="operation";function zi(t){t=tr(t);var e=Zn(t,$i)||null,n=Zn(t,Qi)||null,r=Zn(t,Ji)||null;if(r=r&&to[r]||null,!e||!n||!r)throw new N("argument-error",$i+", "+Qi+"and "+Ji+" are required in a valid action code URL.");wi(this,{apiKey:e,operation:r,code:n,continueUrl:Zn(t,Yi)||null,languageCode:Zn(t,Xi)||null,tenantId:Zn(t,Zi)||null})}var $i="apiKey",Qi="oobCode",Yi="continueUrl",Xi="languageCode",Ji="mode",Zi="tenantId",to={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:Pi,signIn:Li,verifyAndChangeEmail:Mi,verifyEmail:"VERIFY_EMAIL"};function eo(t){try{return new zi(t)}catch(e){return null}}function no(t){var e=t[so];if("undefined"===typeof e)throw new N("missing-continue-uri");if("string"!==typeof e||"string"===typeof e&&!e.length)throw new N("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[ro];if(n&&"object"===typeof n){e=n[lo];var r=n[uo];if(n=n[co],"string"===typeof e&&e.length){if(this.a=e,"undefined"!==typeof r&&"boolean"!==typeof r)throw new N("argument-error",uo+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new N("argument-error",co+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof e)throw new N("argument-error",lo+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new N("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new N("argument-error",ro+" property must be a non null object when specified.");if(this.f=null,(e=t[ao])&&"object"===typeof e){if(e=e[ho],"string"===typeof e&&e.length)this.f=e;else if("undefined"!==typeof e)throw new N("argument-error",ho+" property must be a non empty string when specified.")}else if("undefined"!==typeof e)throw new N("argument-error",ao+" property must be a non null object when specified.");if(e=t[oo],"undefined"!==typeof e&&"boolean"!==typeof e)throw new N("argument-error",oo+" property must be a boolean when specified.");if(this.c=!!e,t=t[io],"undefined"!==typeof t&&("string"!==typeof t||"string"===typeof t&&!t.length))throw new N("argument-error",io+" property must be a non empty string when specified.");this.i=t||null}var ro="android",io="dynamicLinkDomain",oo="handleCodeInApp",ao="iOS",so="url",uo="installApp",co="minimumVersion",lo="packageName",ho="bundleId";function fo(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}function po(t){return Q(t,function(t){return t=t.toString(16),1<t.length?t:"0"+t}).join("")}var vo=null;function go(t){var e="";return mo(t,function(t){e+=String.fromCharCode(t)}),e}function mo(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),i=vo[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}yo();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;e(i<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}
135function yo(){if(!vo){vo={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=t.concat(e[n].split("")),i=0;i<r.length;i++){var o=r[i];void 0===vo[o]&&(vo[o]=i)}}}function bo(t){var e=wo(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,C(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function _o(t){try{return new bo(t)}catch(e){return null}}function wo(t){if(!t)return null;if(t=t.split("."),3!=t.length)return null;t=t[1];for(var e=(4-t.length%4)%4,n=0;n<e;n++)t+=".";try{return JSON.parse(go(t))}catch(r){}return null}bo.prototype.S=function(){return this.f},bo.prototype.i=function(){return this.b},bo.prototype.toString=function(){return this.g};var Eo="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Io=["client_id","response_type","scope","redirect_uri","state"],To={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:Io},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:Io},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:Io},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:Eo},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}};function So(t){for(var e in To)if(To[e].fa==t)return To[e];return null}function Co(t){var e={};e["facebook.com"]=xo,e["google.com"]=Ro,e["github.com"]=Do,e["twitter.com"]=Po;var n=t&&t[No];try{if(n)return e[n]?new e[n](t):new Oo(t);if("undefined"!==typeof t[Ao])return new ko(t)}catch(r){}return null}var Ao="idToken",No="providerId";function ko(t){var e=t[No];if(!e&&t[Ao]){var n=_o(t[Ao]);n&&n.a&&(e=n.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,"undefined"!==typeof t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),_i(this,"providerId",e),_i(this,"isNewUser",n)}function Oo(t){ko.call(this,t),t=ii(t.rawUserInfo||"{}"),_i(this,"profile",Si(t||{}))}function xo(t){if(Oo.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Do(t){if(Oo.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");_i(this,"username",this.profile&&this.profile.login||null)}function Ro(t){if(Oo.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Po(t){if(Oo.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");_i(this,"username",t.screenName||null)}function Lo(t){var e=tr(t),n=Zn(e,"link"),r=Zn(tr(n),"link");return e=Zn(e,"deep_link_id"),Zn(tr(e),"link")||e||r||n||t}function Mo(t,e){if(!t&&!e)throw new N("internal-error","Internal assert: no raw session string available");if(t&&e)throw new N("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?jo:Fo}A(Oo,ko),A(xo,Oo),A(Do,Oo),A(Ro,Oo),A(Po,Oo);var jo="enroll",Fo="signin";function Uo(){}function Vo(t,e){return t.then(function(t){if(t[Rs]){var n=_o(t[Rs]);if(!n||e!=n.h)throw new N("user-mismatch");return t}throw new N("user-mismatch")}).s(function(t){throw t&&t.code&&t.code==x+"user-not-found"?new N("user-mismatch"):t})}function Bo(t,e){if(!e)throw new N("internal-error","failed to construct a credential");this.a=e,_i(this,"providerId",t),_i(this,"signInMethod",t)}function qo(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function Ho(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new Bo(t.providerId,t.pendingToken)}catch(e){}return null}function Wo(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&_i(this,"idToken",e.idToken),e.accessToken&&_i(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&_i(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new N("internal-error","failed to construct a credential");_i(this,"accessToken",e.oauthToken),_i(this,"secret",e.oauthTokenSecret)}_i(this,"providerId",t),_i(this,"signInMethod",n)}function Go(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:fr(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function Ko(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new Wo(t.providerId,e,t.signInMethod)}catch(n){}}return null}function zo(t,e){this.Pc=e||[],wi(this,{providerId:t,isOAuthProvider:!0}),this.Hb={},this.ob=(So(t)||{}).Ja||null,this.nb=null}function $o(t){if("string"!==typeof t||0!=t.indexOf("saml."))throw new N("argument-error",'SAML provider IDs must be prefixed with "saml."');zo.call(this,t,[])}function Qo(t){zo.call(this,t,Io),this.a=[]}function Yo(){Qo.call(this,"facebook.com")}function Xo(t){if(!t)throw new N("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return y(t)&&(e=t.accessToken),(new Yo).credential({accessToken:e})}function Jo(){Qo.call(this,"github.com")}function Zo(t){if(!t)throw new N("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return y(t)&&(e=t.accessToken),(new Jo).credential({accessToken:e})}function ta(){Qo.call(this,"google.com"),this.Ca("profile")}function ea(t,e){var n=t;return y(t)&&(n=t.idToken,e=t.accessToken),(new ta).credential({idToken:n,accessToken:e})}
135function na(){zo.call(this,"twitter.com",Eo)}function ra(t,e){var n=t;if(y(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new N("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Wo("twitter.com",n,"twitter.com")}function ia(t,e,n){this.a=t,this.f=e,_i(this,"providerId","password"),_i(this,"signInMethod",n===aa.EMAIL_LINK_SIGN_IN_METHOD?aa.EMAIL_LINK_SIGN_IN_METHOD:aa.EMAIL_PASSWORD_SIGN_IN_METHOD)}function oa(t){return t&&t.email&&t.password?new ia(t.email,t.password,t.signInMethod):null}function aa(){wi(this,{providerId:"password",isOAuthProvider:!1})}function sa(t,e){if(e=ua(e),!e)throw new N("argument-error","Invalid email link!");return new ia(t,e.code,aa.EMAIL_LINK_SIGN_IN_METHOD)}function ua(t){return t=Lo(t),(t=eo(t))&&t.operation===Li?t:null}function ca(t){if(!(t.cb&&t.bb||t.La&&t.ea))throw new N("internal-error");this.a=t,_i(this,"providerId","phone"),this.fa="phone",_i(this,"signInMethod","phone")}function la(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return K(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){t[n]&&(e[n]=t[n])}),new ca(e)}return null}function ha(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.cb,code:t.a.bb}}function fa(t){try{this.a=t||r.auth()}catch(e){throw new N("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}wi(this,{providerId:"phone",isOAuthProvider:!1})}function pa(t,e){if(!t)throw new N("missing-verification-id");if(!e)throw new N("missing-verification-code");return new ca({cb:t,bb:e})}function da(t){if(t.temporaryProof&&t.phoneNumber)return new ca({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,r=t&&t.oauthTokenSecret,i=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return ea(o,n);case"facebook.com":return Xo(n);case"github.com":return Zo(n);case"twitter.com":return ra(n,r);default:return n||r||o||a?a?0==e.indexOf("saml.")?new Bo(e,a):new Wo(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new Qo(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function va(t){if(!t.isOAuthProvider)throw new N("invalid-oauth-provider")}function ga(t,e,n,r,i,o,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new N("invalid-auth-event");if(this.g&&this.a)throw new N("invalid-auth-event");if(this.g&&!this.f)throw new N("invalid-auth-event")}function ma(t){return t=t||{},t.type?new ga(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&k(t.error),t.postBody,t.tenantId):null}function ya(){this.b=null,this.a=[]}Mo.prototype.Ha=function(){return this.a?Me(this.a):Me(this.b)},Mo.prototype.w=function(){return this.type==jo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},Uo.prototype.ja=function(){},Uo.prototype.b=function(){},Uo.prototype.c=function(){},Uo.prototype.w=function(){},Bo.prototype.ja=function(t){return cu(t,qo(this))},Bo.prototype.b=function(t,e){var n=qo(this);return n.idToken=e,lu(t,n)},Bo.prototype.c=function(t,e){return Vo(hu(t,qo(this)),e)},Bo.prototype.w=function(){return{providerId:this.providerId,sign
135InMethod:this.signInMethod,pendingToken:this.a}},Wo.prototype.ja=function(t){return cu(t,Go(this))},Wo.prototype.b=function(t,e){var n=Go(this);return n.idToken=e,lu(t,n)},Wo.prototype.c=function(t,e){var n=Go(this);return Vo(hu(t,n),e)},Wo.prototype.w=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},zo.prototype.Ka=function(t){return this.Hb=bt(t),this},A($o,zo),A(Qo,zo),Qo.prototype.Ca=function(t){return J(this.a,t)||this.a.push(t),this},Qo.prototype.Pb=function(){return nt(this.a)},Qo.prototype.credential=function(t,e){var n;if(n=y(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null},!n.idToken&&!n.accessToken)throw new N("argument-error","credential failed: must provide the ID token and/or the access token.");return new Wo(this.providerId,n,this.providerId)},A(Yo,Qo),_i(Yo,"PROVIDER_ID","facebook.com"),_i(Yo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),A(Jo,Qo),_i(Jo,"PROVIDER_ID","github.com"),_i(Jo,"GITHUB_SIGN_IN_METHOD","github.com"),A(ta,Qo),_i(ta,"PROVIDER_ID","google.com"),_i(ta,"GOOGLE_SIGN_IN_METHOD","google.com"),A(na,zo),_i(na,"PROVIDER_ID","twitter.com"),_i(na,"TWITTER_SIGN_IN_METHOD","twitter.com"),ia.prototype.ja=function(t){return this.signInMethod==aa.EMAIL_LINK_SIGN_IN_METHOD?Ku(t,bu,{email:this.a,oobCode:this.f}):Ku(t,Bu,{email:this.a,password:this.f})},ia.prototype.b=function(t,e){return this.signInMethod==aa.EMAIL_LINK_SIGN_IN_METHOD?Ku(t,_u,{idToken:e,email:this.a,oobCode:this.f}):Ku(t,Ru,{idToken:e,email:this.a,password:this.f})},ia.prototype.c=function(t,e){return Vo(this.ja(t),e)},ia.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},wi(aa,{PROVIDER_ID:"password"}),wi(aa,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),wi(aa,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),ca.prototype.ja=function(t){return t.eb(ha(this))},ca.prototype.b=function(t,e){var n=ha(this);return n.idToken=e,Ku(t,Hu,n)},ca.prototype.c=function(t,e){var n=ha(this);return n.operation="REAUTH",t=Ku(t,Wu,n),Vo(t,e)},ca.prototype.w=function(){var t={providerId:"phone"};return this.a.cb&&(t.verificationId=this.a.cb),this.a.bb&&(t.verificationCode=this.a.bb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},fa.prototype.eb=function(t,e){var n=this.a.a;return Me(e.verify()).then(function(r){if("string"!==typeof r)throw new N("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var i,o=y(t)?t.session:null,a=y(t)?t.phoneNumber:t;return i=o&&o.type==jo?o.Ha().then(function(t){return nu(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:a,recaptchaToken:r}})}):o&&o.type==Fo?o.Ha().then(function(e){return iu(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})}):eu(n,{phoneNumber:a,recaptchaToken:r}),i.then(function(t){return"function"===typeof e.reset&&e.reset(),t},function(t){throw"function"===typeof e.reset&&e.reset(),t});default:throw new N("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},wi(fa,{PROVIDER_ID:"phone"}),wi(fa,{PHONE_SIGN_IN_METHOD:"phone"}),ga.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},ga.prototype.S=function(){return this.h},ga.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var ba,_a=null;function wa(t){var e=_a;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},t=Yr("universalLinks.subscribe",h),"function"===typeof t&&t(null,e.b))}function Ea(t){var e="unauthorized-domain",n=void 0,r=tr(t);t=r.a,r=r.f,"chrome-extension"==r?n=$t("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=$t("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",N.call(this,e,n)}function Ia(t,e,n){N.call(this,t,n),t=e||{},t.Ib&&_i(this,"email",t.Ib),t.ea&&_i(this,"phoneNumber",t.ea),t.credential&&_i(this,"credential",t.credential),t.Yb&&_i(this,"tenantId",t.Yb)}function Ta(t){if(t.code){var e=t.code||"";0==e.indexOf(x)&&(e=e.substring(x.length));var n={credential:da(t),Yb:t.tenantId};if(t.email)n.Ib=t.email;else if(t.phoneNumber)n.ea=t.phoneNumber;else if(!n.credential)return new N(e,t.message||void 0);return new Ia(e,n,t.message)}return null}function Sa(){}function Ca(t){return t.c||(t.c=t.b())}function Aa(){}function Na(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var r=e[n];try{return new ActiveXObject(r),t.f=r}catch(i){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function ka(){}function Oa(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=T(this.pc,this),this.a.onerror=T(this.Rb,this),this.a.onprogress=T(this.qc,this),this.a.ontimeout=T(this.uc,this)}function xa(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Da(t,e,n){this.reset(t,e,n,void 0,void 0)}A(Ea,N),A(Ia,N),Ia.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.w();return e&&wt(t,e),t},Ia.prototype.toJSON=function(){return this.w()},Sa.prototype.c=null,A(Aa,Sa),Aa.prototype.a=function(){var t=Na(this);return t?new ActiveXObject(t):new XMLHttpRequest},Aa.prototype.b=function(){var t={};return Na(this)&&(t[0]=!0,t[1]=!0),t},ba=new Aa,A(ka,Sa),ka.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Oa;throw Error("Unsupported browser")},ka.prototype.b=function(){return{}},e=Oa.prototype,e.open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},e.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},e.abort=function(){this.a.abort()},e.setRequestHeader=function(){},e.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},e.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,xa(this,4)},e.Rb=function(){this.status=500,this.response=this.responseText="",xa(this,4)},e.uc=function(){this.Rb()},e.qc=function(){this.status=200,xa(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Da.prototype.a=null;function Ra(t){this.f=t,this.b=this.c=this.a=null}function Pa(t,e){this.name=t,this.value=e}Da.prototype.reset=function(t,e,n,r,i){"number"==typeof i||0,r||C(),delete this.a},Pa.prototype.toString=function(){return this.name};var La=new Pa("SEVERE",1e3),Ma=new Pa("WARNING",900),ja=new Pa("CONFIG",700),Fa=new Pa("FINE",500);function Ua(t){return t.c?t.c:t.a?Ua(t.a):(F("Root logger has no level set."),null)}Ra.prototype.log=function(t,e,n){if(t.value>=Ua(this).value)for(m(e)&&(e=e()),t=new Da(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var Va={},Ba=null;function qa(t){var e;if(Ba||(Ba=new Ra(""),Va[""]=Ba,Ba.c=ja),!(e=Va[t])){e=new Ra(t);var n=t.lastIndexOf("."),r=t.substr(n+1);n=qa(t.substr(0,n)),n.b||(n.b={}),n.b[r]=e,e.a=n,Va[t]=e}return e}function Ha(t,e){t&&t.log(Fa,e,void 0)}function Wa(t){this.f=t}function Ga(t){Pn.call(this),this.o=t,this.readyState=Ka,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=qa("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}A(Wa,Sa),Wa.prototype.a=function(){return new Ga(this.f)},Wa.prototype.b=function(t){return function(){return t}}({}),A(Ga,Pn);var Ka=0;function za(t){t.c.read().then(t.oc.bind(t)).catch(t.Ta.bind(t))}function $a(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,Qa(t)}function Qa(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function Ya(t){Pn.call(this),this.headers=new Hn,this.O=t||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=Xa,this.u=this.R=!1}e=Ga.prototype,e.open=function(t,e){if(this.readyState!=Ka)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,Qa(this)},e.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
135t&&(e.body=t),this.o.fetch(new Request(this.g,e)).then(this.tc.bind(this),this.Ta.bind(this))},e.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,$a(this,!1)),this.readyState=Ka},e.tc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,Qa(this)),this.a&&(this.readyState=3,Qa(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):"undefined"!==typeof h.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,za(this)):t.text().then(this.sc.bind(this),this.Ta.bind(this)))))},e.oc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?$a(this,!0):Qa(this),3==this.readyState&&za(this)}},e.sc=function(t){this.a&&(this.response=this.responseText=t,$a(this,!0))},e.rc=function(t){this.a&&(this.response=t,$a(this,!0))},e.Ta=function(t){var e=this.h;e&&e.log(Ma,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&$a(this,!0)},e.setRequestHeader=function(t,e){this.i.append(t,e)},e.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(Ma,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(Ma,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},A(Ya,Pn);var Xa="";Ya.prototype.b=qa("goog.net.XhrIo");var Ja=/^https?$/i,Za=["POST","PUT"];function ts(t,e,n,r,i){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.G=!1,t.c=!0,t.a=t.O?t.O.a():ba.a(),t.A=t.O?Ca(t.O):Ca(ba),t.a.onreadystatechange=T(t.Ub,t);try{Ha(t.b,hs(t,"Opening Xhr")),t.N=!0,t.a.open(n,String(e),!0),t.N=!1}catch(a){return Ha(t.b,hs(t,"Error opening Xhr: "+a.message)),void rs(t,a)}e=r||"";var o=new Hn(t.headers);i&&qn(i,function(t,e){o.set(e,t)}),i=X(o.Y()),r=h.FormData&&e instanceof h.FormData,!J(Za,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{ss(t),0<t.g&&(t.u=es(t.a),Ha(t.b,hs(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=T(t.Ma,t)):t.o=Fn(t.Ma,t.g,t)),Ha(t.b,hs(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(a){Ha(t.b,hs(t,"Send error: "+a.message)),rs(t,a)}}function es(t){return te&&he(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}function ns(t){return"content-type"==t.toLowerCase()}function rs(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,is(t),as(t)}function is(t){t.G||(t.G=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function os(t){if(t.c&&"undefined"!=typeof l)if(t.A[1]&&4==us(t)&&2==cs(t))Ha(t.b,hs(t,"Local request error detected and ignored"));else if(t.i&&4==us(t))Fn(t.Ub,0,t);else if(t.dispatchEvent("readystatechange"),4==us(t)){Ha(t.b,hs(t,"Request complete")),t.c=!1;try{var e,n=cs(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.l).match(Kn)[1]||null;if(!o&&h.self&&h.self.location){var a=h.self.location.protocol;o=a.substr(0,a.length-1)}i=!Ja.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var s=2<us(t)?t.a.statusText:""}catch(u){Ha(t.b,"Can not get status: "+u.message),s=""}t.h=s+" ["+cs(t)+"]",is(t)}}finally{as(t)}}}function as(t,e){if(t.a){ss(t);var n=t.a,r=t.A[0]?d:null;t.a=null,t.A=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(t=t.b)&&t.log(La,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function ss(t){t.a&&t.u&&(t.a.ontimeout=null),t.o&&(h.clearTimeout(t.o),t.o=null)}function us(t){return t.a?t.a.readyState:0}function cs(t){try{return 2<us(t)?t.a.status:-1}catch(e){return-1}}function ls(t){try{return t.a?t.a.responseText:""}catch(e){return Ha(t.b,"Can not get responseText: "+e.message),""}}function hs(t,e){return e+" ["+t.P+" "+t.l+" "+cs(t)+"]"}function fs(t){var e=Ss;this.g=[],this.u=e,this.o=t||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function ps(t,e,n){t.a=!0,t.c=n,t.f=!e,ys(t)}function ds(t){if(t.a){if(!t.m)throw new bs(t);t.m=!1}}function vs(t,e){gs(t,null,e,void 0)}function gs(t,e,n,r){t.g.push([e,n,r]),t.a&&ys(t)}function ms(t){return Y(t.g,function(t){return m(t[1])})}function ys(t){if(t.h&&t.a&&ms(t)){var e=t.h,n=Es[e];n&&(h.clearTimeout(n.a),delete Es[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var r=n=!1;t.g.length&&!t.i;){var i=t.g.shift(),o=i[0],a=i[1];if(i=i[2],o=t.f?a:o)try{var s=o.call(i||t.o,e);void 0!==s&&(t.f=t.f&&(s==e||s instanceof Error),t.c=e=s),(L(e)||"function"===typeof h.Promise&&e instanceof h.Promise)&&(r=!0,t.i=!0)}catch(u){e=u,t.f=!0,ms(t)||(n=!0)}}t.c=e,r&&(s=T(t.v,t,!0),r=T(t.v,t,!1),e instanceof fs?(gs(e,s,r),e.A=!0):e.then(s,r)),n&&(e=new ws(e),Es[e.a]=e,t.h=e.a)}function bs(){M.call(this)}function _s(){M.call(this)}function ws(t){this.a=h.setTimeout(T(this.c,this),0),this.b=t}e=Ya.prototype,e.Ma=function(){"undefined"!=typeof l&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",Ha(this.b,hs(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},e.abort=function(){this.a&&this.c&&(Ha(this.b,hs(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),as(this))},e.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),as(this,!0)),Ya.$a.Da.call(this)},e.Ub=function(){this.xa||(this.N||this.i||this.f?os(this):this.Ic())},e.Ic=function(){os(this)},e.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case Xa:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(La,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return Ha(this.b,"Can not get response: "+e.message),null}},fs.prototype.cancel=function(t){if(this.a)this.c instanceof fs&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.u?this.u.call(this.o,this):this.m=!0,this.a||(t=new _s(this),ds(this),ps(this,!1,t))}},fs.prototype.v=function(t,e){this.i=!1,ps(this,t,e)},fs.prototype.then=function(t,e,n){var r,i,o=new ke(function(t,e){r=t,i=e});
135return gs(this,r,function(t){t instanceof _s?o.cancel():i(t)}),o.then(t,e,n)},fs.prototype.$goog_Thenable=!0,A(bs,M),bs.prototype.message="Deferred has already fired",bs.prototype.name="AlreadyCalledError",A(_s,M),_s.prototype.message="Deferred was canceled",_s.prototype.name="CanceledError",ws.prototype.c=function(){throw delete Es[this.a],this.b};var Es={};function Is(t){var e={},n=e.document||document,r=kt(t).toString(),i=_e(document,"SCRIPT"),o={Vb:i,Ma:void 0},a=new fs(o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0<u&&(s=window.setTimeout(function(){Cs(i,!0);var t=new ks(Ns,"Timeout reached for loading script "+r);ds(a),ps(a,!1,t)},u),o.Ma=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(Cs(i,e.wd||!1,s),ds(a),ps(a,!0,null))},i.onerror=function(){Cs(i,!0,s);var t=new ks(As,"Error while loading script "+r);ds(a),ps(a,!1,t)},o=e.attributes||{},wt(o,{type:"text/javascript",charset:"UTF-8"}),de(i,o),zt(i,t),Ts(n).appendChild(i),a}function Ts(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}function Ss(){if(this&&this.Vb){var t=this.Vb;t&&"SCRIPT"==t.tagName&&Cs(t,!0,this.Ma)}}function Cs(t,e,n){null!=n&&h.clearTimeout(n),t.onload=d,t.onerror=d,t.onreadystatechange=d,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}var As=0,Ns=1;function ks(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),M.call(this,n),this.code=t}function Os(t){this.f=t}function xs(t,e,n){if(this.c=t,t=e||{},this.l=t.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=t.secureTokenTimeout||Ps,this.g=bt(t.secureTokenHeaders||Ls),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=t.firebaseTimeout||Ms,this.a=bt(t.firebaseHeaders||js),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==Br(),n=h.XMLHttpRequest||n&&r.INTERNAL.node&&r.INTERNAL.node.XMLHttpRequest,!n&&!Vr())throw new N("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,Vr()?this.f=new Wa(self):qr()?this.f=new Os(n):this.f=new ka,this.b=null}A(ks,M),A(Os,Sa),Os.prototype.a=function(){return new this.f},Os.prototype.b=function(){return{}};var Ds,Rs="idToken",Ps=new ui(3e4,6e4),Ls={"Content-Type":"application/x-www-form-urlencoded"},Ms=new ui(3e4,6e4),js={"Content-Type":"application/json"};function Fs(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function Us(t,e){e&&(t.l=Vs("https://securetoken.googleapis.com/v1/token",e),t.h=Vs("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=Vs("https://identitytoolkit.googleapis.com/v2/",e))}function Vs(t,e){return t=tr(t),e=tr(e.url),t.c=t.a+t.c,Qn(t,e.f),t.a=e.a,Yn(t,e.g),t.toString()}function Bs(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function qs(t,e,n,r,i,o,a){kr()||Vr()?t=T(t.u,t):(Ds||(Ds=new ke(function(t,e){Gs(t,e)})),t=T(t.o,t)),t(e,n,r,i,o,a)}xs.prototype.S=function(){return this.b},xs.prototype.u=function(t,e,n,r,i,o){if(Vr()&&("undefined"===typeof h.fetch||"undefined"===typeof h.Headers||"undefined"===typeof h.Request))throw new N("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new Ya(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout(function(){a.dispatchEvent("timeout")},o)}Ln(a,"complete",function(){s&&clearTimeout(s);var t=null;try{t=JSON.parse(ls(this))||null}catch(n){t=null}e&&e(t)}),Mn(a,"ready",function(){s&&clearTimeout(s),rn(this)}),Mn(a,"timeout",function(){s&&clearTimeout(s),rn(this),e&&e(null)}),ts(a,t,n,r,i)};var Hs=new It(Ct,"https://apis.google.com/js/client.js?onload=%{onload}"),Ws="__fcb"+Math.floor(1e6*Math.random()).toString();function Gs(t,e){if(((window.gapi||{}).client||{}).request)t();else{h[Ws]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))};var n=Ot(Hs,{onload:Ws});vs(Is(n),function(){e(Error("CORS_UNSUPPORTED"))})}}function Ks(t,e){return new ke(function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?qs(t,t.l+"?key="+encodeURIComponent(t.c),function(t){t?t.error?r($u(t)):t.access_token&&t.refresh_token?n(t):r(new N("internal-error")):r(new N("network-request-failed"))},"POST",fr(e).toString(),t.g,t.v.get()):r(new N("internal-error"))})}function zs(t,e,n,r,i,o,a){var s=tr(e+n);Jn(s,"key",t.c),a&&Jn(s,"cb",C().toString());var u="GET"==r;if(u)for(var c in i)i.hasOwnProperty(c)&&Jn(s,c,i[c]);return new ke(function(e,n){qs(t,s.toString(),function(t){t?t.error?n($u(t,o||{})):e(t):n(new N("network-request-failed"))},r,u?void 0:br(ri(i)),t.a,t.m.get())})}function $s(t){if(t=t.email,"string"!==typeof t||!Lr.test(t))throw new N("invalid-email")}function Qs(t){"email"in t&&$s(t)}function Ys(t,e){return Ku(t,gu,{identifier:e,continueUri:Zr()?Cr():"http://localhost"}).then(function(t){return t.signinMethods||[]})}function Xs(t){return Ku(t,Nu,{}).then(function(t){return t.authorizedDomains||[]})}function Js(t){if(!t[Rs]){if(t.mfaPendingCredential)throw new N("multi-factor-auth-required",null,bt(t));throw new N("internal-error")}}function Zs(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new N("internal-error")}else{if(!t.sessionInfo)throw new N("missing-verification-id");if(!t.code)throw new N("missing-verification-code")}}xs.prototype.o=function(t,e,n,r,i){var o=this;Ds.then(function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:r,headers:i,authType:"none",callback:function(t){window.gapi.auth.setToken(a),e&&e(t)}})}).s(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},xs.prototype.yb=function(){return Ku(this,Pu,{})},xs.prototype.Ab=function(t,e){return Ku(this,Du,{idToken:t,email:e})},xs.prototype.Bb=function(t,e){return Ku(this,Ru,{idToken:t,password:e})};var tu={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function eu(t,e){return Ku(t,xu,e)}function nu(t,e){return Ku(t,Lu,e).then(function(t){return t.phoneSessionInfo.sessionInfo})}function ru(t){if(!t.phoneVerificationInfo)throw new N("internal-error");
135if(!t.phoneVerificationInfo.sessionInfo)throw new N("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new N("missing-verification-code")}function iu(t,e){return Ku(t,Mu,e).then(function(t){return t.phoneResponseInfo.sessionInfo})}function ou(t,e,n){return Ku(t,yu,{idToken:e,deleteProvider:n})}function au(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new N("internal-error")}function su(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&(t=new lr(t.postBody),dr(t,"nonce")&&(e.nonce=t.get("nonce")))),e}function uu(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Ta(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Ta(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Ta(t)):t.errorMessage&&(e=zu(t.errorMessage)),e)throw e;Js(t)}function cu(t,e){return e.returnIdpCredential=!0,Ku(t,ju,e)}function lu(t,e){return e.returnIdpCredential=!0,Ku(t,Uu,e)}function hu(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Ku(t,Fu,e)}function fu(t){if(!t.oobCode)throw new N("invalid-action-code")}e=xs.prototype,e.Cb=function(t,e){var n={idToken:t},r=[];return mt(tu,function(t,i){var o=e[i];null===o?r.push(t):i in e&&(n[i]=o)}),r.length&&(n.deleteAttribute=r),Ku(this,Du,n)},e.ub=function(t,e){return t={requestType:"PASSWORD_RESET",email:t},wt(t,e),Ku(this,Au,t)},e.vb=function(t,e){return t={requestType:"EMAIL_SIGNIN",email:t},wt(t,e),Ku(this,Tu,t)},e.tb=function(t,e){return t={requestType:"VERIFY_EMAIL",idToken:t},wt(t,e),Ku(this,Su,t)},e.Db=function(t,e,n){return t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},wt(t,n),Ku(this,Cu,t)},e.eb=function(t){return Ku(this,qu,t)},e.mb=function(t,e){return Ku(this,Ou,{oobCode:t,newPassword:e})},e.Qa=function(t){return Ku(this,du,{oobCode:t})},e.ib=function(t){return Ku(this,pu,{oobCode:t})};var pu={endpoint:"setAccountInfo",B:fu,Z:"email",C:!0},du={endpoint:"resetPassword",B:fu,F:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new N("internal-error")},C:!0},vu={endpoint:"signupNewUser",B:function(t){if($s(t),!t.password)throw new N("weak-password")},F:Js,U:!0,C:!0},gu={endpoint:"createAuthUri",C:!0},mu={endpoint:"deleteAccount",M:["idToken"]},yu={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(t){if("array"!=v(t.deleteProvider))throw new N("internal-error")}},bu={endpoint:"emailLinkSignin",M:["email","oobCode"],B:$s,F:Js,U:!0,C:!0},_u={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:$s,F:Js,U:!0},wu={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:ru,F:Js,C:!0,Na:!0},Eu={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:ru,F:Js,C:!0,Na:!0},Iu={endpoint:"getAccountInfo"},Tu={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new N("internal-error");$s(t)},Z:"email",C:!0},Su={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new N("internal-error")},Z:"email",C:!0},Cu={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new N("internal-error")},Z:"email",C:!0},Au={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("PASSWORD_RESET"!=t.requestType)throw new N("internal-error");$s(t)},Z:"email",C:!0},Nu={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},ku={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(t){if(!t.recaptchaSiteKey)throw new N("internal-error")}},Ou={endpoint:"resetPassword",B:fu,Z:"email",C:!0},xu={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},Du={endpoint:"setAccountInfo",M:["idToken"],B:Qs,U:!0},Ru={endpoint:"setAccountInfo",M:["idToken"],B:function(t){if(Qs(t),!t.password)throw new N("weak-password")},F:Js,U:!0},Pu={endpoint:"signupNewUser",F:Js,U:!0,C:!0},Lu={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(t){if(!t.phone
135EnrollmentInfo)throw new N("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new N("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new N("missing-app-credential")},F:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new N("internal-error")},C:!0,Na:!0},Mu={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new N("missing-app-credential")},F:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new N("internal-error")},C:!0,Na:!0},ju={endpoint:"verifyAssertion",B:au,Xa:su,F:uu,U:!0,C:!0},Fu={endpoint:"verifyAssertion",B:au,Xa:su,F:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new N("user-not-found");if(t.errorMessage)throw zu(t.errorMessage);Js(t)},U:!0,C:!0},Uu={endpoint:"verifyAssertion",B:function(t){if(au(t),!t.idToken)throw new N("internal-error")},Xa:su,F:uu,U:!0},Vu={endpoint:"verifyCustomToken",B:function(t){if(!t.token)throw new N("invalid-custom-token")},F:Js,U:!0,C:!0},Bu={endpoint:"verifyPassword",B:function(t){if($s(t),!t.password)throw new N("wrong-password")},F:Js,U:!0,C:!0},qu={endpoint:"verifyPhoneNumber",B:Zs,F:Js,C:!0},Hu={endpoint:"verifyPhoneNumber",B:function(t){if(!t.idToken)throw new N("internal-error");Zs(t)},F:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Ta(t);Js(t)}},Wu={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:Zs,F:Js,C:!0},Gu={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(t){if(!!t[Rs]^!!t.refreshToken)throw new N("internal-error")},C:!0,Na:!0};function Ku(t,e,n){if(!Ti(n,e.M))return je(new N("internal-error"));var r,i=!!e.Na,o=e.Tb||"POST";return Me(n).then(e.B).then(function(){return e.U&&(n.returnSecureToken=!0),e.C&&t.b&&"undefined"===typeof n.tenantId&&(n.tenantId=t.b),zs(t,i?t.i:t.h,e.endpoint,o,n,e.Gb,e.kb||!1)}).then(function(t){return r=t,e.Xa?e.Xa(n,r):r}).then(e.F).then(function(){if(!e.Z)return r;if(!(e.Z in r))throw new N("internal-error");return r[e.Z]})}function zu(t){return $u({error:{errors:[{message:t}],code:400,message:t}})}function $u(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new N(r[n]):null)return n;for(var i in n=t.error&&t.error.message||"",r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
135NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},wt(r,e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,r)if(0===n.indexOf(i))return new N(r[i],e);return!e&&t&&(e=ni(t)),new N("internal-error",e)}function Qu(t){this.b=t,this.a=null,this.qb=Yu(this)}function Yu(t){return rc().then(function(){return new ke(function(e,n){Yr("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:Yr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(r){function i(){clearTimeout(o),e()}t.a=r,t.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},ec.get());r.ping(i).then(i,function(){n(Error("Network Error"))})})})})}function Xu(t,e){return t.qb.then(function(){return new ke(function(n){t.a.send(e.type,e,n,Yr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}function Ju(t,e){t.qb.then(function(){t.a.register("authEvent",e,Yr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}var Zu=new It(Ct,"https://apis.google.com/js/api.js?onload=%{onload}"),tc=new ui(3e4,6e4),ec=new ui(5e3,15e3),nc=null;function rc(){return nc||(nc=new ke(function(t,e){function n(){si(),Yr("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){si(),e(Error("Network Error"))},timeout:tc.get()})}if(Yr("gapi.iframes.Iframe"))t();else if(Yr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();h[r]=function(){Yr("gapi.load")?n():e(Error("Network Error"))},r=Ot(Zu,{onload:r}),Me(Is(r)).s(function(){e(Error("Network Error"))})}}).s(function(t){throw nc=null,t}))}function ic(t,e,n,r){this.l=t,this.h=e,this.i=n,this.g=r,this.f=null,this.g?(t=tr(this.g.url),t=er(t.f,t.a,t.g,"/emulator/auth/iframe")):t=er("https",this.l,null,"/__/auth/iframe"),this.a=t,Jn(this.a,"apiKey",this.h),Jn(this.a,"appName",this.i),this.b=null,this.c=[]}function oc(t,e,n,r,i,o){this.u=t,this.o=e,this.c=n,this.v=r,this.m=o,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function ac(t){try{return r.app(t).auth().Ga()}catch(e){return[]}}function sc(t,e,n,r,i,o){this.o=t,this.g=e,this.b=n,this.f=o,this.c=r||null,this.i=i||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function uc(t){var e=Cr();return Xs(t).then(function(t){t:{var n=tr(e),r=n.f;n=n.a;for(var i=0;i<t.length;i++){var o=t[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=tr(o).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:Pr.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Ea(Cr())})}function cc(t){return t.v?t.v:(t.v=Mr().then(function(){if(!t.u){var e=t.c,n=t.i,r=ac(t.b),i=new ic(t.o,t.g,t.b,t.f);i.f=e,i.b=n,i.c=nt(r||[]),t.u=i.toString()}t.m=new Qu(t.u),fc(t)}),t.v)}function lc(t){return t.l||(t.A=t.c?$r(t.c,ac(t.b)):null,t.l=new xs(t.g,P(t.i),t.A),t.f&&Us(t.l,t.f)),t.l}function hc(t,e,n,r,i,o,a,s,u,c,l,h){return t=new oc(t,e,n,r,i,h),t.l=o,t.g=a,t.i=s,t.b=bt(u||null),t.f=c,t.xb(l).toString()}function fc(t){if(!t.m)throw Error("IfcHandler must be initialized!");Ju(t.m,function(e){var n={};if(e&&e.authEvent){var r=!1;for(e=ma(e.authEvent),n=0;n<t.h.length;n++)r=t.h[n](e)||r;return n={},n.status=r?"ACK":"ERROR",Me(n)}return n.status="ERROR",Me(n)})}function pc(t){var e={type:"webStorageSupport"};return cc(t).then(function(){return Xu(t.m,e)}).then(function(t){if(t&&t.length&&"undefined"!==typeof t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})}function dc(t){if(this.a=t||r.INTERNAL.reactNative&&r.INTERNAL.reactNative.AsyncStorage,!this.a)throw new N("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function vc(t){this.b=t,this.a={},this.f=T(this.c,this)}ic.prototype.toString=function(){return this.f?Jn(this.a,"v",this.f):pr(this.a.b,"v"),this.b?Jn(this.a,"eid",this.b):pr(this.a.b,"eid"),this.c.length?Jn(this.a,"fw",this.c.join(",")):pr(this.a.b,"fw"),this.a.toString()},oc.prototype.xb=function(t){return this.h=t,this},oc.prototype.toString=function(){if(this.m){var t=tr(this.m.url);t=er(t.f,t.a,t.g,"/emulator/auth/handler")}else t=er("https",this.u,null,"/__/auth/handler");if(Jn(t,"apiKey",this.o),Jn(t,"appName",this.c),Jn(t,"authType",this.v),this.a.isOAuthProvider){var e=this.a;try{var n=r.app(this.c).auth().ka()}catch(u){n=null}for(var i in e.nb=n,Jn(t,"providerId",this.a.providerId),n=this.a,e=ri(n.Hb),e)e[i]=e[i].toString();i=n.Pc,e=bt(e);for(var o=0;o<i.length;o++){var a=i[o];a in e&&delete e[a]}n.ob&&n.nb&&!e[n.ob]&&(e[n.ob]=n.nb),yt(e)||Jn(t,"customParameters",ni(e))}if("function"===typeof this.a.Pb&&(n=this.a.Pb(),n.length&&Jn(t,"scopes",n.join(","))),this.l?Jn(t,"redirectUrl",this.l):pr(t.b,"redirectUrl"),this.g?Jn(t,"eventId",this.g):pr(t.b,"eventId"),this.i?Jn(t,"v",this.i):pr(t.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Zn(t,s)&&Jn(t,s,this.b[s]);return this.h?Jn(t,"tid",this.h):pr(t.b,"tid"),this.f?Jn(t,"eid",this.f):pr(t.b,"eid"),s=ac(this.c),s.length&&Jn(t,"fw",s.join(",")),t.toString()},e=sc.prototype,e.Nb=function(t,e,n){var r=new N("popup-closed-by-user"),i=new N("web-storage-unsupported"),o=this,a=!1;return this.la().then(function(){pc(o).then(function(n){n||(t&&xr(t),e(i),a=!0)})}).s(function(){}).then(function(){if(!a)return Rr(t)}).then(function(){if(!a)return Un(n).then(function(){e(r)})})},e.Wb=function(){var t=Qr();return!ei(t)&&!ai(t)},e.Sb=function(){return!1}
135,e.Lb=function(t,e,n,r,i,o,a,s){if(!t)return je(new N("popup-blocked"));if(a&&!ei())return this.la().s(function(e){xr(t),i(e)}),r(),Me();this.a||(this.a=uc(lc(this)));var u=this;return this.a.then(function(){var e=u.la().s(function(e){throw xr(t),i(e),e});return r(),e}).then(function(){if(va(n),!a){var r=hc(u.o,u.g,u.b,e,n,null,o,u.c,void 0,u.i,s,u.f);Ar(r,t)}}).s(function(t){throw"auth/network-request-failed"==t.code&&(u.a=null),t})},e.Mb=function(t,e,n,r){this.a||(this.a=uc(lc(this)));var i=this;return this.a.then(function(){va(e);var o=hc(i.o,i.g,i.b,t,e,Cr(),n,i.c,void 0,i.i,r,i.f);Ar(o)}).s(function(t){throw"auth/network-request-failed"==t.code&&(i.a=null),t})},e.la=function(){var t=this;return cc(this).then(function(){return t.m.qb}).s(function(){throw t.a=null,new N("network-request-failed")})},e.Zb=function(){return!0},e.Ea=function(t){this.h.push(t)},e.Ra=function(t){tt(this.h,function(e){return e==t})},e=dc.prototype,e.get=function(t){return Me(this.a.getItem(t)).then(function(t){return t&&ii(t)})},e.set=function(t,e){return Me(this.a.setItem(t,ni(e)))},e.T=function(t){return Me(this.a.removeItem(t))},e.ca=function(){},e.ia=function(){};var gc,mc=[];function yc(){var t=Vr()?self:null;if(K(mc,function(n){n.b==t&&(e=n)}),!e){var e=new vc(t);mc.push(e)}return e}function bc(t,e,n){yt(t.a)&&t.b.addEventListener("message",t.f),"undefined"===typeof t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function _c(t){this.a=t}function wc(t){this.c=t,this.b=!1,this.a=[]}function Ec(t,e,n,r){var i,o,a,s,u=n||{},c=null;if(t.b)return je(Error("connection_unavailable"));var l=r?800:50,h="undefined"!==typeof MessageChannel?new MessageChannel:null;return new ke(function(n,r){h?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),h.port1.start(),a=setTimeout(function(){r(Error("unsupported_event"))},l),o=function(t){t.data.eventId===i&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout(function(){r(Error("timeout"))},3e3)):"done"===t.data.status?(clearTimeout(s),"undefined"!==typeof t.data.response?n(t.data.response):r(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),r(Error("invalid_response"))))},c={messageChannel:h,onMessage:o},t.a.push(c),h.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:i,data:u},[h.port2])):r(Error("connection_unavailable"))}).then(function(e){return Ic(t,c),e}).s(function(e){throw Ic(t,c),e})}function Ic(t,e){if(e){var n=e.messageChannel,r=e.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),tt(t.a,function(t){return t==e})}}function Tc(){if(!Nc())throw new N("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=h.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var t=this;Vr()&&self?(this.l=yc(),bc(this.l,"keyChanged",function(e,n){return Rc(t).then(function(e){return 0<e.length&&K(t.a,function(t){t(e)}),{keyProcessed:J(e,n.key)}})}),bc(this.l,"ping",function(){return Me(["keyChanged"])})):vi().then(function(e){(t.h=e)&&(t.g=new wc(new _c(e)),Ec(t.g,"ping",null,!0).then(function(e){e[0].fulfilled&&J(e[0].value,"keyChanged")&&(t.o=!0)}).s(function(){}))})}function Sc(t){return new ke(function(e,n){var r=t.m.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){e()},r.onerror=function(t){n(Error(t.target.error))}})}function Cc(t){return new ke(function(e,n){var r=t.m.open("firebaseLocalStorageDb",1);r.onerror=function(t){try{t.preventDefault()}catch(e){}n(Error(t.target.error))},r.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){r=r.target.result,r.objectStoreNames.contains("firebaseLocalStorage")?e(r):Sc(t).then(function(){return Cc(t)}).then(function(t){e(t)}).s(function(t){n(t)})}})}function Ac(t){return t.v||(t.v=Cc(t)),t.v}function Nc(){try{return!!h.indexedDB}catch(Qp){return!1}}function kc(t){return t.objectStore("firebaseLocalStorage")}function Oc(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function xc(t){return new ke(function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}})}function Dc(t,e){return t.g&&t.h&&di()===t.h?Ec(t.g,"keyChanged",{key:e},t.o).then(function(){}).s(function(){}):Me()}function Rc(t){return Ac(t).then(function(t){var e=kc(Oc(t,!1));return e.getAll?xc(e.getAll()):new ke(function(t,n){var r=[],i=e.openCursor();i.onsuccess=function(e){(e=e.target.result)?(r.push(e.value),e["continue"]()):t(r)},i.onerror=function(t){n(t.target.error)}})}).then(function(e){var n={},r=[];if(0==t.b){for(r=0;r<e.length;r++)n[e[r].fbase_key]=e[r].value;r=Nr(t.c,n),t.c=n}return r})}function Pc(t){function e(){t.f=setTimeout(function(){t.i=Rc(t).then(function(e){0<e.length&&K(t.a,function(t){t(e)})}).then(function(){e()}).s(function(t){"STOP_EVENT"!=t.message&&e()})},800)}Lc(t),e()}function Lc(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function Mc(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Me().then(function(){if(Nc()){var t=oi(),r="__sak"+t;return gc||(gc=new Tc),n=gc,n.set(r,t).then(function(){return n.get(r)}).then(function(e){if(e!==t)throw Error("indexedDB not supported!");return n.T(r)}).then(function(){return n}).s(function(){return e.c})}return e.c}).then(function(t){return e.type=t.type,t.ca(function(t){K(e.a,function(e){e(t)})}),t})}function jc(){this.a={},this.type="inMemory"}
135function Fc(){if(!Vc()){if("Node"==Br())throw new N("internal-error","The LocalStorage compatibility library was not found.");throw new N("web-storage-unsupported")}this.a=Uc()||r.INTERNAL.node.localStorage,this.type="localStorage"}function Uc(){try{var t=h.localStorage,e=oi();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Vc(){var t="Node"==Br();if(t=Uc()||t&&r.INTERNAL.node&&r.INTERNAL.node.localStorage,!t)return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}function Bc(){this.type="nullStorage"}function qc(){if(!Wc()){if("Node"==Br())throw new N("internal-error","The SessionStorage compatibility library was not found.");throw new N("web-storage-unsupported")}this.a=Hc()||r.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Hc(){try{var t=h.sessionStorage,e=oi();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Wc(){var t="Node"==Br();if(t=Hc()||t&&r.INTERNAL.node&&r.INTERNAL.node.sessionStorage,!t)return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}function Gc(){var t={};t.Browser=$c,t.Node=Qc,t.ReactNative=Yc,t.Worker=Xc,this.a=t[Br()]}vc.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,r=this.a[e];if(r&&0<r.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var i=[];K(r,function(e){i.push(Me().then(function(){return e(t.origin,t.data.data)}))}),Ve(i).then(function(r){var i=[];K(r,function(t){i.push({fulfilled:t.Ob,value:t.value,reason:t.reason?t.reason.message:void 0})}),K(i,function(t){for(var e in t)"undefined"===typeof t[e]&&delete t[e]}),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:i})})}},_c.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},wc.prototype.close=function(){for(;0<this.a.length;)Ic(this,this.a[0]);this.b=!0},e=Tc.prototype,e.set=function(t,e){var n,r=!1,i=this;return Ac(this).then(function(e){return n=e,e=kc(Oc(n,!0)),xc(e.get(t))}).then(function(o){var a=kc(Oc(n,!0));return o?(o.value=e,xc(a.put(o))):(i.b++,r=!0,o={},o.fbase_key=t,o.value=e,xc(a.add(o)))}).then(function(){return i.c[t]=e,Dc(i,t)}).na(function(){r&&i.b--})},e.get=function(t){return Ac(this).then(function(e){return xc(kc(Oc(e,!1)).get(t))}).then(function(t){return t&&t.value})},e.T=function(t){var e=!1,n=this;return Ac(this).then(function(r){return e=!0,n.b++,xc(kc(Oc(r,!0))["delete"](t))}).then(function(){return delete n.c[t],Dc(n,t)}).na(function(){e&&n.b--})},e.ca=function(t){0==this.a.length&&Pc(this),this.a.push(t)},e.ia=function(t){tt(this.a,function(e){return e==t}),0==this.a.length&&Lc(this)},e=Mc.prototype,e.get=function(t){return this.b.then(function(e){return e.get(t)})},e.set=function(t,e){return this.b.then(function(n){return n.set(t,e)})},e.T=function(t){return this.b.then(function(e){return e.T(t)})},e.ca=function(t){this.a.push(t)},e.ia=function(t){tt(this.a,function(e){return e==t})},e=jc.prototype,e.get=function(t){return Me(this.a[t])},e.set=function(t,e){return this.a[t]=e,Me()},e.T=function(t){return delete this.a[t],Me()},e.ca=function(){},e.ia=function(){},e=Fc.prototype,e.get=function(t){var e=this;return Me().then(function(){var n=e.a.getItem(t);return ii(n)})},e.set=function(t,e){var n=this;return Me().then(function(){var r=ni(e);null===r?n.T(t):n.a.setItem(t,r)})},e.T=function(t){var e=this;return Me().then(function(){e.a.removeItem(t)})},e.ca=function(t){h.window&&wn(h.window,"storage",t)},e.ia=function(t){h.window&&Sn(h.window,"storage",t)},e=Bc.prototype,e.get=function(){return Me(null)},e.set=function(){return Me()},e.T=function(){return Me()},e.ca=function(){},e.ia=function(){},e=qc.prototype,e.get=function(t){var e=this;return Me().then(function(){var n=e.a.getItem(t);return ii(n)})},e.set=function(t,e){var n=this;return Me().then(function(){var r=ni(e);null===r?n.T(t):n.a.setItem(t,r)})},e.T=function(t){var e=this;return Me().then(function(){e.a.removeItem(t)})},e.ca=function(){},e.ia=function(){};var Kc,zc,$c={D:Fc,ab:qc},Qc={D:Fc,ab:qc},Yc={D:dc,ab:Bc},Xc={D:Fc,ab:Bc},Jc={qd:"local",NONE:"none",sd:"session"};function Zc(t){var e=new N("invalid-persistence-type"),n=new N("unsupported-persistence-type");t:{for(r in Jc)if(Jc[r]==t){var r=!0;break t}r=!1}if(!r||"string"!==typeof t)throw e;switch(Br()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!Nc()&&"none"!==t)throw n;break;default:if(!Xr()&&"none"!==t)throw n}}
135function tl(){var t=!(ai(Qr())||!Ur()),e=ei(),n=Xr();this.v=t,this.h=e,this.l=n,this.a={},Kc||(Kc=new Gc),t=Kc;try{this.g=!Sr()&&pi()||!h.indexedDB?new t.a.D:new Mc(Vr()?new jc:new t.a.D)}catch(r){this.g=new jc,this.h=!0}try{this.i=new t.a.ab}catch(r){this.i=new jc}this.m=new jc,this.f=T(this.Xb,this),this.b={}}function el(){return zc||(zc=new tl),zc}function nl(t,e){switch(e){case"session":return t.i;case"none":return t.m;default:return t.g}}function rl(t,e){return"firebase:"+t.name+(e?":"+e:"")}function il(t,e,n){var r=rl(e,n),i=nl(t,e.D);return t.get(e,n).then(function(o){var a=null;try{a=ii(h.localStorage.getItem(r))}catch(s){}if(a&&!o)return h.localStorage.removeItem(r),t.set(e,a,n);a&&o&&"localStorage"!=i.type&&h.localStorage.removeItem(r)})}function ol(t,e,n){return n=rl(e,n),"local"==e.D&&(t.b[n]=null),nl(t,e.D).T(n)}function al(t){sl(t),t.c=setInterval(function(){for(var e in t.a){var n=h.localStorage.getItem(e),r=t.b[e];n!=r&&(t.b[e]=n,n=new ln({type:"storage",key:e,target:window,oldValue:r,newValue:n,a:!0}),t.Xb(n))}},1e3)}function sl(t){t.c&&(clearInterval(t.c),t.c=null)}function ul(t){this.a=t,this.b=el()}e=tl.prototype,e.get=function(t,e){return nl(this,t.D).get(rl(t,e))},e.set=function(t,e,n){var r=rl(t,n),i=this,o=nl(this,t.D);return o.set(r,e).then(function(){return o.get(r)}).then(function(e){"local"==t.D&&(i.b[r]=e)})},e.addListener=function(t,e,n){t=rl(t,e),this.l&&(this.b[t]=h.localStorage.getItem(t)),yt(this.a)&&(nl(this,"local").ca(this.f),this.h||(Sr()||!pi())&&h.indexedDB||!this.l||al(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},e.removeListener=function(t,e,n){t=rl(t,e),this.a[t]&&(tt(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),yt(this.a)&&(nl(this,"local").ia(this.f),sl(this))},e.Xb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var n in this.a){var r=this.b[n];"undefined"===typeof r&&(r=null);var i=h.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.lb(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if("undefined"!==typeof t.a.a?nl(this,"local").ia(this.f):sl(this),this.v)if(n=h.localStorage.getItem(e),r=t.a.newValue,r!==n)null!==r?h.localStorage.setItem(e,r):h.localStorage.removeItem(e);else if(this.b[e]===r&&"undefined"===typeof t.a.a)return;var o=this;n=function(){"undefined"===typeof t.a.a&&o.b[e]===h.localStorage.getItem(e)||(o.b[e]=h.localStorage.getItem(e),o.lb(e))},te&&ce&&10==ce&&h.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else K(t,T(this.lb,this))},e.lb=function(t){this.a[t]&&K(this.a[t],function(t){t()})};var cl,ll={name:"authEvent",D:"local"};function hl(t){return t.b.get(ll,t.a).then(function(t){return ma(t)})}function fl(){this.a=el()}function pl(){this.b=-1}function dl(t,e){this.b=vl,this.f=h.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=h.Int32Array?new Int32Array(64):Array(64),void 0===cl&&(cl=h.Int32Array?new Int32Array(El):El),this.reset()}A(dl,pl);for(var vl=64,gl=vl-1,ml=[],yl=0;yl<gl;yl++)ml[yl]=0;var bl=et(128,ml);function _l(t){for(var e=t.f,n=t.l,r=0,i=0;i<e.length;)n[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3],i=4*r;for(e=16;64>e;e++){i=0|n[e-15],r=0|n[e-2];var o=(0|n[e-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],l=0|t.a[5],h=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var f=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=c&l^~c&h,o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0,a=a+(0|cl[e])|0,a=o+(a+(0|n[e])|0)|0,o=h,h=l,l=c,c=u+a|0,u=s,s=i,i=r,r=a+f|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+o|0}function wl(t,e,n){void 0===n&&(n=e.length);var r=0,i=t.c;if("string"===typeof e)for(;r<n;)t.f[i++]=e.charCodeAt(r++),i==t.b&&(_l(t),i=0);else{if(!g(e))throw Error("message must be string or array");for(;r<n;){var o=e[r++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[i++]=o,i==t.b&&(_l(t),i=0)}}t.c=i,t.g+=n}dl.prototype.reset=function(){this.g=this.c=0,this.a=h.Int32Array?new Int32Array(this.h):nt(this.h)};var El=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
135734187,3204031479,3329325298];function Il(){dl.call(this,8,Tl)}A(Il,dl);var Tl=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Sl(t,e,n,r,i,o){this.m=t,this.i=e,this.l=n,this.v=r||null,this.u=i||null,this.o=o,this.h=e+":"+n,this.A=new fl,this.g=new ul(this.h),this.f=null,this.b=[],this.a=this.c=null}function Cl(t){return new N("invalid-cordova-configuration",t)}function Al(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}function Nl(t){var e=new Il;wl(e,t),t=[];var n=8*e.g;56>e.c?wl(e,bl,56-e.c):wl(e,bl,e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(_l(e),r=n=0;r<e.i;r++)for(var i=24;0<=i;i-=8)t[n++]=e.a[r]>>i&255;return po(t)}function kl(t,e,n,r,i){var o=Al(),a=new ga(e,r,null,o,new N("no-auth-event"),null,i),s=Yr("BuildInfo.packageName",h);if("string"!==typeof s)throw new N("invalid-cordova-configuration");var u=Yr("BuildInfo.displayName",h),c={};if(Qr().toLowerCase().match(/iphone|ipad|ipod/))c.ibi=s;else{if(!Qr().toLowerCase().match(/android/))return je(new N("operation-not-supported-in-this-environment"));c.apn=s}u&&(c.appDisplayName=u),o=Nl(o),c.sessionId=o;var l=hc(t.m,t.i,t.l,e,n,null,r,t.v,c,t.u,i,t.o);return t.la().then(function(){var e=t.h;return t.A.a.set(ll,a.w(),e)}).then(function(){var e=Yr("cordova.plugins.browsertab.isAvailable",h);if("function"!==typeof e)throw new N("invalid-cordova-configuration");var n=null;e(function(e){if(e){if(n=Yr("cordova.plugins.browsertab.openUrl",h),"function"!==typeof n)throw new N("invalid-cordova-configuration");n(l)}else{if(n=Yr("cordova.InAppBrowser.open",h),"function"!==typeof n)throw new N("invalid-cordova-configuration");e=Qr(),t.a=n(l,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}function Ol(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(r){}}function xl(t){return t.f||(t.f=t.la().then(function(){return new ke(function(e){function n(r){return e(r),t.Ra(n),!1}t.Ea(n),Rl(t)})})),t.f}function Dl(t){var e=null;return hl(t.g).then(function(n){return e=n,n=t.g,ol(n.b,ll,n.a)}).then(function(){return e})}function Rl(t){function e(e){r=!0,i&&i.cancel(),Dl(t).then(function(r){var i=n;if(r&&e&&e.url){var o=null;i=Lo(e.url),-1!=i.indexOf("/__/auth/callback")&&(o=tr(i),o=ii(Zn(o,"firebaseError")||null),o=(o="object"===typeof o?k(o):null)?new ga(r.c,r.b,null,null,o,null,r.S()):new ga(r.c,r.b,i,r.f,null,null,r.S())),i=o||n}Ol(t,i)})}var n=new ga("unknown",null,null,null,new N("no-auth-event")),r=!1,i=Un(500).then(function(){return Dl(t).then(function(){r||Ol(t,n)})}),o=h.handleOpenURL;h.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(Yr("BuildInfo.packageName",h).toLowerCase()+"://")&&e({url:t}),"function"===typeof o)try{o(t)}catch(n){console.error(n)}},_a||(_a=new ya),wa(e)}function Pl(t){this.a=t,this.b=el()}e=Sl.prototype,e.la=function(){return this.Ia?this.Ia:this.Ia=jr().then(function(){if("function"!==typeof Yr("universalLinks.subscribe",h))throw Cl("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Yr("BuildInfo.packageName",h))throw Cl("cordova-plugin-buildinfo is not installed");if("function"!==typeof Yr("cordova.plugins.browsertab.openUrl",h))throw Cl("cordova-plugin-browsertab is not installed");if("function"!==typeof Yr("cordova.InAppBrowser.open",h))throw Cl("cordova-plugin-inappbrowser is not installed")},function(){throw new N("cordova-not-ready")})},e.Nb=function(t,e){return e(new N("operation-not-supported-in-this-environment")),Me()},e.Lb=function(){return je(new N("operation-not-supported-in-this-environment"))},e.Zb=function(){return!1},e.Wb=function(){return!0},e.Sb=function(){return!0},e.Mb=function(t,e,n,r){if(this.c)return je(new N("redirect-operation-pending"));var i=this,o=h.document,a=null,s=null,u=null,c=null;return this.c=Me().then(function(){return va(e),xl(i)}).then(function(){return kl(i,t,e,n,r)}).then(function(){return new ke(function(t,e){s=function(){var e=Yr("cordova.plugins.browsertab.close",h);return t(),"function"===typeof e&&e(),i.a&&"function"===typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ea(s),u=function(){a||(a=Un(2e3).then(function(){e(new N("redirect-cancelled-by-user"))}))},c=function(){ci()&&u()},o.addEventListener("resume",u,!1),Qr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",c,!1)}).s(function(t){return Dl(i).then(function(){throw t})})}).na(function(){u&&o.removeEventListener("resume",u,!1),c&&o.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&i.Ra(s),i.c=null})},e.Ea=function(t){this.b.push(t),xl(this).s(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new ga("unknown",null,null,null,new N("no-auth-event")),t(e))})},e.Ra=function(t){tt(this.b,function(e){return e==t})};var Ll={name:"pendingRedirect",D:"session"};function Ml(t){return t.b.set(Ll,"pending",t.a)}function jl(t){return ol(t.b,Ll,t.a)}function Fl(t){return t.b.get(Ll,t.a).then(function(t){return"pending"==t})}function Ul(t,e,n,r){this.i={},this.u=0,this.O=t,this.m=e,this.v=n,this.G=r,this.h=[],this.f=!1,this.l=T(this.o,this),this.b=new th,this.A=new uh,this.g=new Pl(Jl(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=Vl(this.O,this.m,this.v,O,this.G)}function Vl(t,e,n,i,o){var a=r.SDK_VERSION||null;return Fr()?new Sl(t,e,n,a,i,o):new sc(t,e,n,a,i,o)}
135function Bl(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.la().s(function(n){throw t.a==e&&t.reset(),n})}function ql(t){t.a.Wb()&&Bl(t).s(function(e){var n=new ga("unknown",null,null,null,new N("operation-not-supported-in-this-environment"));$l(e)&&t.o(n)}),t.a.Sb()||eh(t.b)}function Hl(t,e){J(t.h,e)||t.h.push(e),t.f||Fl(t.g).then(function(e){e?jl(t.g).then(function(){Bl(t).s(function(e){var n=new ga("unknown",null,null,null,new N("operation-not-supported-in-this-environment"));$l(e)&&t.o(n)})}):ql(t)}).s(function(){ql(t)})}function Wl(t,e){tt(t.h,function(t){return t==e})}Ul.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=Vl(this.O,this.m,this.v,null,this.G),this.i={}},Ul.prototype.o=function(t){if(!t)throw new N("invalid-auth-event");if(6e5<=C()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Eb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,r),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=C())),e=!0;break}}return eh(this.b),e};var Gl=new ui(2e3,1e4),Kl=new ui(3e4,6e4);function zl(t,e,n,r,i,o,a){return t.a.Lb(e,n,r,function(){t.f||(t.f=!0,t.a.Ea(t.l))},function(){t.reset()},i,o,a)}function $l(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Ql(t,e,n,r,i){var o;return Ml(t.g).then(function(){return t.a.Mb(e,n,r,i).s(function(e){if($l(e))throw new N("operation-not-supported-in-this-environment");return o=e,jl(t.g).then(function(){throw o})}).then(function(){return t.a.Zb()?new ke(function(){}):jl(t.g).then(function(){return t.qa()}).then(function(){}).s(function(){})})})}function Yl(t,e,n,r,i){return t.a.Nb(r,function(t){e.ma(n,null,t,i)},Gl.get())}Ul.prototype.qa=function(){return this.b.qa()};var Xl={};function Jl(t,e,n){return t=t+":"+e,n&&(t=t+":"+n.url),t}function Zl(t,e,n,r){var i=Jl(e,n,r);return Xl[i]||(Xl[i]=new Ul(t,e,n,r)),Xl[i]}function th(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function eh(t){t.g||(t.g=!0,ah(t,!1,null,null))}function nh(t){t.g&&!t.i&&ah(t,!1,null,null)}function rh(t,e,n){n=n.Fa(e.c,e.b);var r=e.g,i=e.f,o=e.i,a=e.S(),s=!!e.c.match(/Redirect$/);n(r,i,a,o).then(function(e){ah(t,s,e,null)}).s(function(e){ah(t,s,null,e)})}function ih(t,e){if(t.b=function(){return je(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}function oh(t,e){if(t.b=function(){return Me(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function ah(t,e,n,r){e?r?ih(t,r):oh(t,n):oh(t,{user:null}),t.f=[],t.c=[]}function sh(t){var e=new N("timeout");t.a&&t.a.cancel(),t.a=Un(Kl.get()).then(function(){t.b||(t.g=!0,ah(t,!0,null,e))})}function uh(){}function ch(t,e){var n=t.b,r=t.c;e.Fa(r,n)(t.g,t.f,t.S(),t.i).then(function(t){e.ma(r,t,null,n)}).s(function(t){e.ma(r,null,t,n)})}function lh(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(t){this.hb=t},enumerable:!1})}function hh(t,e){this.a=e,_i(this,"verificationId",t)}function fh(t,e,n,r){return new fa(t).eb(e,n).then(function(t){return new hh(t,r)})}function ph(t){var e=wo(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new N("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");wi(this,{token:t,expirationTime:fi(1e3*e.exp),authTime:fi(1e3*e.auth_time),issuedAtTime:fi(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function dh(t,e,n){var r=e&&e[gh];if(!r)throw new N("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=bt(e),this.g=n,this.c=new Mo(null,r),this.b=[];var i=this;K(e[vh]||[],function(t){(t=Ai(t))&&i.b.push(t)}),_i(this,"auth",this.a),_i(this,"session",this.c),_i(this,"hints",this.b)}th.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},th.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,r=t.b,i=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!i&&!o),"unknown"!=n||i||o?t.a?(ah(this,!0,null,t.a),Me()):e.Fa(n,r)?rh(this,t,e):je(new N("invalid-auth-event")):(ah(this,!1,null,null),Me())}else je(new N("invalid-auth-event"))},th.prototype.qa=function(){var t=this;return new ke(function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),sh(t))})},uh.prototype.h=function(t,e){if(t){var n=t.c,r=t.b;t.a?(e.ma(t.c,null,t.a,t.b),Me()):e.Fa(n,r)?ch(t,e):je(new N("invalid-auth-event"))}else je(new N("invalid-auth-event"))},hh.prototype.confirm=function(t){return t=pa(this.verificationId,t),this.a(t)};var vh="mfaInfo",gh="mfaPendingCredential";function mh(t,e,n,r){N.call(this,"multi-factor-auth-required",r,e),this.b=new dh(t,e,n),_i(this,"resolver",this.b)}function yh(t,e,n){if(t&&y(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new mh(e,t.serverResponse,n,t.message)}catch(r){}return null}function bh(){}function _h(t,e,n,r){return n.Ha().then(function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),wt(n,{phoneVerificationInfo:ha(t.a)}),Ku(e,wu,n)})}function wh(t,e,n){return n.Ha().then(function(n){return n={mfaPendingCredential:n},wt(n,{phoneVerificationInfo:ha(t.a)}),Ku(e,Eu,n)})}function Eh(t){_i(this,"factorId",t.fa),this.a=t}function Ih(t){if(Eh.call(this,t),this.a.fa!=fa.PROVIDER_ID)throw new N("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function Th(t,e){for(var n in cn.call(this,t),e)this[n]=e[n]}function Sh(t,e){this.a=t,this.b=[],this.c=T(this.xc,this),wn(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&K(e.multiFactor.enrolledFactors,function(t){var e=null,r={};
135if(t){t.uid&&(r[Oi]=t.uid),t.displayName&&(r[Ni]=t.displayName),t.enrollmentTime&&(r[ki]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(r[xi]=t.phoneNumber);try{e=new Di(r)}catch(i){}t=e}else t=null;t&&n.push(t)}),Ah(this,n)}function Ch(t){var e=[];return K(t.mfaInfo||[],function(t){(t=Ai(t))&&e.push(t)}),e}function Ah(t,e){t.b=e,_i(t,"enrolledFactors",e)}function Nh(t,e,n){if(this.h=t,this.i=e,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function kh(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}function Oh(t,e){t.stop(),t.b=Un(kh(t,e)).then(function(){return li()}).then(function(){return t.h()}).then(function(){Oh(t,!0)}).s(function(e){t.i(e)&&Oh(t,!1)})}function xh(t){this.c=t,this.b=this.a=null}function Dh(t){return t.b&&1e3*t.b.c||0}function Rh(t,e){var n=e.refreshToken;t.b=_o(e[Rs]||""),t.a=n}function Ph(t,e){t.b=e.b,t.a=e.a}function Lh(t,e){return Ks(t.c,e).then(function(e){return t.b=_o(e.access_token),t.a=e.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}}).s(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})}function Mh(t,e){this.a=t||null,this.b=e||null,wi(this,{lastSignInTime:fi(e||null),creationTime:fi(t||null)})}function jh(t){return new Mh(t.a,t.b)}function Fh(t,e,n,r,i,o){wi(this,{uid:t,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:e})}function Uh(t,e,n){this.G=[],this.l=t.apiKey,this.m=t.appName,this.o=t.authDomain||null;var i=r.SDK_VERSION?$r(r.SDK_VERSION):null;this.a=new xs(this.l,P(O),i),t.emulatorConfig&&Us(this.a,t.emulatorConfig),this.b=new xh(this.a),$h(this,e[Rs]),Rh(this.b,e),_i(this,"refreshToken",this.b.a),Jh(this,n||{}),Pn.call(this),this.P=!1,this.o&&Jr()&&(this.i=Zl(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=Gh(this),this.$=T(this.gb,this);var o=this;this.pa=null,this.Ba=function(t){o.wa(t.h)},this.ba=null,this.za=function(t){Us(o.a,t.c)},this.W=null,this.X=[],this.Aa=function(t){qh(o,t.f)},this.aa=null,this.N=new Sh(this,n),_i(this,"multiFactor",this.N)}function Vh(t,e){t.ba&&Sn(t.ba,"languageCodeChanged",t.Ba),(t.ba=e)&&wn(e,"languageCodeChanged",t.Ba)}function Bh(t,e){t.W&&Sn(t.W,"emulatorConfigChanged",t.za),(t.W=e)&&wn(e,"emulatorConfigChanged",t.za)}function qh(t,e){t.X=e,Bs(t.a,r.SDK_VERSION?$r(r.SDK_VERSION,t.X):null)}function Hh(t,e){t.aa&&Sn(t.aa,"frameworkChanged",t.Aa),(t.aa=e)&&wn(e,"frameworkChanged",t.Aa)}function Wh(t){try{return r.app(t.m).auth()}catch(e){throw new N("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function Gh(t){return new Nh(function(){return t.I(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=Dh(t.b)-C()-3e5;return 0<e?e:0})}function Kh(t){t.A||t.u.b||(t.u.start(),Sn(t,"tokenChanged",t.$),wn(t,"tokenChanged",t.$))}function zh(t){Sn(t,"tokenChanged",t.$),t.u.stop()}function $h(t,e){t.ya=e,_i(t,"_lat",e)}function Qh(t,e){tt(t.R,function(t){return t==e})}function Yh(t){for(var e=[],n=0;n<t.R.length;n++)e.push(t.R[n](t));return Ve(e).then(function(){return t})}function Xh(t){t.i&&!t.P&&(t.P=!0,Hl(t.i,t))}function Jh(t,e){wi(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new Mh(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function Zh(){}function tf(t){return Me().then(function(){if(t.A)throw new N("app-deleted")})}function ef(t){return Q(t.providerData,function(t){return t.providerId})}function nf(t,e){e&&(rf(t,e.providerId),t.providerData.push(e))}function rf(t,e){tt(t.providerData,function(t){return t.providerId==e})}function of(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&_i(t,e,n)}function af(t,e){t!=e&&(wi(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),e.metadata?_i(t,"metadata",jh(e.metadata)):_i(t,"metadata",new Mh),K(e.providerData,function(e){nf(t,e)}),Ph(t.b,e.b),_i(t,"refreshToken",t.b.a),Ah(t.N,e.N.b))}function sf(t){return t.I().then(function(e){var n=t.isAnonymous;return cf(t,e).then(function(){return n||of(t,"isAnonymous",!1),e})})}function uf(t,e){e[Rs]&&t.ya!=e[Rs]&&(Rh(t.b,e),t.dispatchEvent(new Th("tokenChanged")),$h(t,e[Rs]),of(t,"refreshToken",t.b.a))}function cf(t,e){return Ku(t.a,Iu,{idToken:e}).then(T(t.Jc,t))}function lf(t){return(t=t.providerUserInfo)&&t.length?Q(t,function(t){return new Fh(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}function hf(t,e){return sf(t).then(function(){if(J(ef(t),e))return Yh(t).then(function(){throw new N("provider-already-linked")})})}function ff(t,e,n){var r=da(e);return e=Co(e),Ei({user:t,credential:r,additionalUserInfo:e,operationType:n})}function pf(t,e){return uf(t,e),t.reload().then(function(){return t})}function df(t,e,n,i,o){if(!Jr())return je(new N("operation-not-supported-in-this-environment"));if(t.f&&!o)return je(t.f);var a=So(n.providerId),s=oi(t.uid+":::"),u=null;(!ei()||Ur())&&t.o&&n.isOAuthProvider&&(u=hc(t.o,t.l,t.m,e,n,null,s,r.SDK_VERSION||null,null,null,t.tenantId));var c=Dr(u,a&&a.ua,a&&a.ta);return i=i().then(function(){if(gf(t),!o)return t.I().then(function(){})}).then(function(){return zl(t.i,c,e,n,s,!!u,t.tenantId)}).then(function(){return new ke(function(n,r){t.ma(e,null,new N("cancelled-popup-request"),t.h||null),t.g=n,t.O=r,t.h=s,t.c=Yl(t.i,t,e,c,s)})}).then(function(t){return c&&xr(c),t?Ei(t):null}).s(function(t){throw c&&xr(c),t}),mf(t,i,o)}function vf(t,e,n,r,i){if(!Jr())return je(new N("operation-not-supported-in-this-environment"));if(t.f&&!i)return je(t.f);var o=null,a=oi(t.uid+":::");return r=r().then(function(){if(gf(t),!i)return t.I().then(function(){})}).then(function(){return t.ga=a,Yh(t)}).then(function(e){return t.ha&&(e=t.ha,e=e.b.set(If,t.w(),e.a)),e}).then(function(){return Ql(t.i,e,n,a,t.tenantId)}).s(function(e){if(o=e,t.ha)return Tf(t.ha);throw o}).then(function(){if(o)throw o}),mf(t,r,i)}function gf(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new N("internal-error");throw new N("auth-domain-config-required")}}function mf(t,e,n){var r=yf(t,e,n);return t.G.push(r),r.na(function(){Z(t.G,r)}),r.s(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=yh(e.w(),Wh(t),T(t.ic,t))),n||e})}function yf(t,e,n){return t.f&&!n?(e.cancel(),je(t.f)):e.s(function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.f||t.dispatchEvent(new Th("userInvalidated")),t.f=e),e})}function bf(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[Rs]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;
135var r=new Uh(e,n,t);return t.providerData&&K(t.providerData,function(t){t&&nf(r,Ei(t))}),t.redirectEventId&&(r.ga=t.redirectEventId),r}function _f(t,e,n,r){var i=new Uh(t,e);return n&&(i.ha=n),r&&qh(i,r),i.reload().then(function(){return i})}function wf(t,e,n,r){var i=t.b,o={};return o[Rs]=i.b&&i.b.toString(),o.refreshToken=i.a,e=new Uh(e||{apiKey:t.l,authDomain:t.o,appName:t.m},o),n&&(e.ha=n),r&&qh(e,r),af(e,t),e}function Ef(t){this.a=t,this.b=el()}dh.prototype.Qc=function(t){var e=this;return t.rb(this.a.a,this.c).then(function(t){var n=bt(e.f);return delete n[vh],delete n[gh],wt(n,t),e.g(n)})},A(mh,N),bh.prototype.rb=function(t,e,n){return e.type==jo?_h(this,t,e,n):wh(this,t,e)},A(Eh,bh),A(Ih,Eh),A(Th,cn),e=Sh.prototype,e.xc=function(t){Ah(this,Ch(t.gd))},e.Qb=function(){return this.a.I().then(function(t){return new Mo(t,null)})},e.ec=function(t,e){var n=this,r=this.a.a;return this.Qb().then(function(n){return t.rb(r,n,e)}).then(function(t){return uf(n.a,t),n.a.reload()})},e.ad=function(t){var e=this,n="string"===typeof t?t:t.uid,r=this.a.a;return this.a.I().then(function(t){return Ku(r,Gu,{idToken:t,mfaEnrollmentId:n})}).then(function(t){var r=$(e.b,function(t){return t.uid!=n});return Ah(e,r),uf(e.a,t),e.a.reload().s(function(t){if("auth/user-token-expired"!=t.code)throw t})})},e.w=function(){return{multiFactor:{enrolledFactors:Q(this.b,function(t){return t.w()})}}},Nh.prototype.start=function(){this.a=this.c,Oh(this,!0)},Nh.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},xh.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:Dh(this)}},xh.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?je(new N("user-token-expired")):t||!this.b||C()>Dh(this)-3e4?this.a?Lh(this,{grant_type:"refresh_token",refresh_token:this.a}):Me(null):Me({accessToken:this.b.toString(),refreshToken:this.a})},Mh.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},A(Uh,Pn),Uh.prototype.wa=function(t){this.pa=t,Fs(this.a,t)},Uh.prototype.ka=function(){return this.pa},Uh.prototype.Ga=function(){return nt(this.X)},Uh.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},_i(Uh.prototype,"providerId","firebase"),e=Uh.prototype,e.reload=function(){var t=this;return mf(this,tf(this).then(function(){return sf(t).then(function(){return Yh(t)}).then(Zh)}))},e.nc=function(t){return this.I(t).then(function(t){return new ph(t)})},e.I=function(t){var e=this;return mf(this,tf(this).then(function(){return e.b.getToken(t)}).then(function(t){if(!t)throw new N("internal-error");return t.accessToken!=e.ya&&($h(e,t.accessToken),e.dispatchEvent(new Th("tokenChanged"))),of(e,"refreshToken",t.refreshToken),t.accessToken}))},e.Jc=function(t){if(t=t.users,!t||!t.length)throw new N("internal-error");t=t[0],Jh(this,{uid:t.localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=lf(t),n=0;n<e.length;n++)nf(this,e[n]);of(this,"isAnonymous",!(this.email&&t.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new Th("userReloaded",{gd:t}))},e.Kc=function(t){return yi("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(t)},e.sb=function(t){var e=this,n=null;return mf(this,t.c(this.a,this.uid).then(function(t){return uf(e,t),n=ff(e,t,"reauthenticate"),e.f=null,e.reload()}).then(function(){return n}),!0)},e.Bc=function(t){return yi("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(t)},e.pb=function(t){var e=this,n=null;return mf(this,hf(this,t.providerId).then(function(){return e.I()}).then(function(n){return t.b(e.a,n)}).then(function(t){return n=ff(e,t,"link"),pf(e,t)}).then(function(){return n}))},e.Cc=function(t,e){var n=this;return mf(this,hf(this,"phone").then(function(){return fh(Wh(n),t,e,T(n.pb,n))}
135))},e.Lc=function(t,e){var n=this;return mf(this,Me().then(function(){return fh(Wh(n),t,e,T(n.sb,n))}),!0)},e.Ab=function(t){var e=this;return mf(this,this.I().then(function(n){return e.a.Ab(n,t)}).then(function(t){return uf(e,t),e.reload()}))},e.dd=function(t){var e=this;return mf(this,this.I().then(function(n){return t.b(e.a,n)}).then(function(t){return uf(e,t),e.reload()}))},e.Bb=function(t){var e=this;return mf(this,this.I().then(function(n){return e.a.Bb(n,t)}).then(function(t){return uf(e,t),e.reload()}))},e.Cb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return tf(this);var e=this;return mf(this,this.I().then(function(n){return e.a.Cb(n,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return uf(e,t),of(e,"displayName",t.displayName||null),of(e,"photoURL",t.photoUrl||null),K(e.providerData,function(t){"password"===t.providerId&&(_i(t,"displayName",e.displayName),_i(t,"photoURL",e.photoURL))}),Yh(e)}).then(Zh))},e.bd=function(t){var e=this;return mf(this,sf(this).then(function(n){return J(ef(e),t)?ou(e.a,n,[t]).then(function(t){var n={};return K(t.providerUserInfo||[],function(t){n[t.providerId]=!0}),K(ef(e),function(t){n[t]||rf(e,t)}),n[fa.PROVIDER_ID]||_i(e,"phoneNumber",null),Yh(e)}):Yh(e).then(function(){throw new N("no-such-provider")})}))},e.delete=function(){var t=this;return mf(this,this.I().then(function(e){return Ku(t.a,mu,{idToken:e})}).then(function(){t.dispatchEvent(new Th("userDeleted"))})).then(function(){for(var e=0;e<t.G.length;e++)t.G[e].cancel("app-deleted");Vh(t,null),Bh(t,null),Hh(t,null),t.G=[],t.A=!0,zh(t),_i(t,"refreshToken",null),t.i&&Wl(t.i,t)})},e.Eb=function(t,e){return!!("linkViaPopup"==t&&(this.h||null)==e&&this.g||"reauthViaPopup"==t&&(this.h||null)==e&&this.g||"linkViaRedirect"==t&&(this.ga||null)==e||"reauthViaRedirect"==t&&(this.ga||null)==e)},e.ma=function(t,e,n,r){"linkViaPopup"!=t&&"reauthViaPopup"!=t||r!=(this.h||null)||(n&&this.O?this.O(n):e&&!n&&this.g&&this.g(e),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},e.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.h||null)?T(this.Jb,this):"reauthViaPopup"==t&&e==(this.h||null)?T(this.Kb,this):"linkViaRedirect"==t&&(this.ga||null)==e?T(this.Jb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?T(this.Kb,this):null},e.Dc=function(t){var e=this;return df(this,"linkViaPopup",t,function(){return hf(e,t.providerId).then(function(){return Yh(e)})},!1)},e.Mc=function(t){return df(this,"reauthViaPopup",t,function(){return Me()},!0)},e.Ec=function(t){var e=this;return vf(this,"linkViaRedirect",t,function(){return hf(e,t.providerId)},!1)},e.Nc=function(t){return vf(this,"reauthViaRedirect",t,function(){return Me()},!0)},e.Jb=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return n=this.I().then(function(n){return lu(i.a,{requestUri:t,postBody:r,sessionId:e,idToken:n})}).then(function(t){return o=ff(i,t,"link"),pf(i,t)}).then(function(){return o}),mf(this,n)},e.Kb=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null,a=Me().then(function(){return Vo(hu(i.a,{requestUri:t,sessionId:e,postBody:r,tenantId:n}),i.uid)}).then(function(t){return o=ff(i,t,"reauthenticate"),uf(i,t),i.f=null,i.reload()}).then(function(){return o});return mf(this,a,!0)},e.tb=function(t){var e=this,n=null;return mf(this,this.I().then(function(e){return n=e,"undefined"===typeof t||yt(t)?{}:fo(new no(t))}).then(function(t){return e.a.tb(n,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},e.Db=function(t,e){var n=this,r=null;return mf(this,this.I().then(function(t){return r=t,"undefined"===typeof e||yt(e)?{}:fo(new no(e))}).then(function(e){return n.a.Db(r,t,e)}).then(function(t){if(n.email!=t)return n.reload()}).then(function(){}))},e.ic=function(t){var e=null,n=this;return t=Vo(Me(t),n.uid).then(function(t){return e=ff(n,t,"reauthenticate"),uf(n,t),n.f=null,n.reload()}).then(function(){return e}),mf(this,t,!0)},e.toJSON=function(){return this.w()},e.w=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&wt(t,this.metadata.w()),K(this.providerData,function(e){t.providerData.push(Ii(e))}),wt(t,this.N.w()),t};var If={name:"redirectUser",D:"session"};function Tf(t){return ol(t.b,If,t.a)}function Sf(t,e){return t.b.get(If,t.a).then(function(t){return t&&e&&(t.authDomain=e),bf(t||{})})}function Cf(t){this.a=t,this.b=el(),this.c=null,this.f=Nf(this),this.b.addListener(Of("local"),this.a,T(this.g,this))}function Af(t,e){var n,r=[];for(n in Jc)Jc[n]!==e&&r.push(ol(t.b,Of(Jc[n]),t.a));return r.push(ol(t.b,kf,t.a)),Ue(r)}function Nf(t){var e=Of("local"),n=Of("session"),r=Of("none");return il(t.b,e,t.a).then(function(){return t.b.get(n,t.a)}).then(function(i){return i?n:t.b.get(r,t.a).then(function(n){return n?r:t.b.get(e,t.a).then(function(n){return n?e:t.b.get(kf,t.a).then(function(t){return t?Of(t):e})})})}).then(function(e){return t.c=e,Af(t,e.D)}).s(function(){t.c||(t.c=e)})}Cf.prototype.g=function(){var t=this,e=Of("local");Lf(this,function(){return Me().then(function(){return t.c&&"local"!=t.c.D?t.b.get(e,t.a):null}).then(function(n){if(n)return Af(t,"local").then(function(){t.c=e})})})};var kf={name:"persistence",D:"session"};function Of(t){return{name:"authUser",D:t}}function xf(t){return Lf(t,function(){return t.b.set(kf,t.c.D,t.a)})}function Df(t,e){return Lf(t,function(){return t.b.set(t.c,e.w(),t.a)})}function Rf(t){return Lf(t,function(){return ol(t.b,t.c,t.a)})}function Pf(t,e,n){return Lf(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),t&&n&&(t.emulatorConfig=n),bf(t||{})})})}function Lf(t,e){return t.f=t.f.then(e,e),t.f}function Mf(t){if(this.m=!1,_i(this,"settings",new lh),_i(this,"app",t),!Xf(this).options||!Xf(this).options.apiKey)throw new N("invalid-api-key");t=r.SDK_VERSION?$r(r.SDK_VERSION):null,this.a=new xs(Xf(this).options&&
135Xf(this).options.apiKey,P(O),t),this.R=[],this.u=[],this.P=[],this.ac=r.INTERNAL.createSubscribe(T(this.yc,this)),this.X=void 0,this.bc=r.INTERNAL.createSubscribe(T(this.zc,this)),Kf(this,null),this.l=new Cf(Xf(this).options.apiKey+":"+Xf(this).name),this.G=new Ef(Xf(this).options.apiKey+":"+Xf(this).name),this.$=np(this,$f(this)),this.i=np(this,Qf(this)),this.ba=!1,this.pa=T(this.Yc,this),this.Ba=T(this.da,this),this.ya=T(this.kc,this),this.za=T(this.vc,this),this.Aa=T(this.wc,this),this.b=null,Hf(this),this.INTERNAL={},this.INTERNAL["delete"]=T(this.delete,this),this.INTERNAL.logFramework=T(this.Fc,this),this.A=0,Pn.call(this),Bf(this),this.N=[],this.f=null}function jf(t){cn.call(this,"languageCodeChanged"),this.h=t}function Ff(t){cn.call(this,"emulatorConfigChanged"),this.c=t}function Uf(t){cn.call(this,"frameworkChanged"),this.f=t}function Vf(){hi("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),h.document&&Mr().then(function(){var t=h.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#ff0000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),h.document.body.appendChild(t)})}function Bf(t){Object.defineProperty(t,"lc",{get:function(){return this.ka()},set:function(t){this.wa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.S()},set:function(t){this.xb(t)},enumerable:!1}),t.W=null}function qf(t){return t.gb||je(new N("auth-domain-config-required"))}function Hf(t){var e=Xf(t).options.authDomain,n=Xf(t).options.apiKey;e&&Jr()&&(t.gb=t.$.then(function(){if(!t.m){if(t.b=Zl(e,n,Xf(t).name,t.f),Hl(t.b,t),Jf(t)&&Xh(Jf(t)),t.o){Xh(t.o);var r=t.o;r.wa(t.ka()),Vh(r,t),r=t.o,qh(r,t.N),Hh(r,t),r=t.o,Us(r.a,t.f),Bh(r,t),t.o=null}return t.b}}))}function Wf(t){if(!Jr())return je(new N("operation-not-supported-in-this-environment"));var e=qf(t).then(function(){return t.b.qa()}).then(function(t){return t?Ei(t):null});return np(t,e)}function Gf(t,e){var n={};return n.apiKey=Xf(t).options.apiKey,n.authDomain=Xf(t).options.authDomain,n.appName=Xf(t).name,t.f&&(n.emulatorConfig=t.f),t.$.then(function(){return _f(n,e,t.G,t.Ga())}).then(function(e){return Jf(t)&&e.uid==Jf(t).uid?(af(Jf(t),e),t.da(e)):(Kf(t,e),Xh(e),t.da(e))}).then(function(){tp(t)})}function Kf(t,e){Jf(t)&&(Qh(Jf(t),t.Ba),Sn(Jf(t),"tokenChanged",t.ya),Sn(Jf(t),"userDeleted",t.za),Sn(Jf(t),"userInvalidated",t.Aa),zh(Jf(t))),e&&(e.R.push(t.Ba),wn(e,"tokenChanged",t.ya),wn(e,"userDeleted",t.za),wn(e,"userInvalidated",t.Aa),0<t.A&&Kh(e)),_i(t,"currentUser",e),e&&(e.wa(t.ka()),Vh(e,t),qh(e,t.N),Hh(e,t),Us(e.a,t.f),Bh(e,t))}function zf(t){var e=Sf(t.G,Xf(t).options.authDomain).then(function(e){return(t.o=e)&&(e.ha=t.G),Tf(t.G)});return np(t,e)}function $f(t){var e=Xf(t).options.authDomain,n=zf(t).then(function(){return Pf(t.l,e,t.f)}).then(function(e){return e?(e.ha=t.G,t.o&&(t.o.ga||null)==(e.ga||null)?e:e.reload().then(function(){return Df(t.l,e).then(function(){return e})}).s(function(n){return"auth/network-request-failed"==n.code?e:Rf(t.l)})):null}).then(function(e){Kf(t,e||null)});return np(t,n)}function Qf(t){return t.$.then(function(){return Wf(t)}).s(function(){}).then(function(){if(!t.m)return t.pa()}).s(function(){}).then(function(){if(!t.m){t.ba=!0;var e=t.l;e.b.addListener(Of("local"),e.a,t.pa)}})}function Yf(t,e){var n=null,r=null;return np(t,e.then(function(e){return n=da(e),r=Co(e),Gf(t,e)},function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=yh(e.w(),t,T(t.jc,t))),n||e}).then(function(){return Ei({user:Jf(t),credential:n,additionalUserInfo:r,operationType:"signIn"})}))}function Xf(t){return t.app}function Jf(t){return t.currentUser}function Zf(t){return Jf(t)&&Jf(t)._lat||null}function tp(t){if(t.ba){for(var e=0;e<t.u.length;e++)t.u[e]&&t.u[e](Zf(t));if(t.X!==t.getUid()&&t.P.length)for(t.X=t.getUid(),e=0;e<t.P.length;e++)t.P[e]&&t.P[e](Zf(t))}}function ep(t,e){t.P.push(e),np(t,t.i.then(function(){!t.m&&J(t.P,e)&&t.X!==t.getUid()&&(t.X=t.getUid(),e(Zf(t)))}))}function np(t,e){return t.R.push(e),e.na(function(){Z(t.R,e)}),e}function rp(){}function ip(){this.a={},this.b=1e12}Cf.prototype.wb=function(t){var e=null,n=this;return Zc(t),Lf(this,function(){return t!=n.c.D?n.b.get(n.c,n.a).then(function(r){return e=r,Af(n,t)}).then(function(){if(n.c=Of(t),e)return n.b.set(n.c,e,n.a)}):Me()})},A(Mf,Pn),A(jf,cn),A(Ff,cn),A(Uf,cn),e=Mf.prototype,e.wb=function(t){return t=this.l.wb(t),np(this,t)},e.wa=function(t){this.aa===t||this.m||(this.aa=t,Fs(this.a,this.aa),this.dispatchEvent(new jf(this.ka())))},e.ka=function(){return this.aa},e.ed=function(){var t=h.navigator;this.wa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},e.fd=function(t){if(!this.f){if(!/^https?:\/\//.test(t))throw new N("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");Vf(),this.f={url:t},this.settings.hb=!0,Us(this.a,this.f),this.dispatchEvent(new Ff(this.f))}},e.Fc=function(t){this.N.push(t),Bs(this.a,r.SDK_VERSION?$r(r.SDK_VERSION,this.N):null),this.dispatchEvent(new 
135Uf(this.N))},e.Ga=function(){return nt(this.N)},e.xb=function(t){this.W===t||this.m||(this.W=t,this.a.b=this.W)},e.S=function(){return this.W},e.toJSON=function(){return{apiKey:Xf(this).options.apiKey,authDomain:Xf(this).options.authDomain,appName:Xf(this).name,currentUser:Jf(this)&&Jf(this).w()}},e.Eb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==e&&!!this.g;default:return!1}},e.ma=function(t,e,n,r){"signInViaPopup"==t&&this.h==r&&(n&&this.O?this.O(n):e&&!n&&this.g&&this.g(e),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},e.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.h==e&&this.g?T(this.hc,this):null},e.hc=function(t,e,n,r){var i=this,o={requestUri:t,postBody:r,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.$.then(function(){return Yf(i,cu(i.a,o))})},e.Wc=function(t){if(!Jr())return je(new N("operation-not-supported-in-this-environment"));var e=this,n=So(t.providerId),i=oi(),o=null;(!ei()||Ur())&&Xf(this).options.authDomain&&t.isOAuthProvider&&(o=hc(Xf(this).options.authDomain,Xf(this).options.apiKey,Xf(this).name,"signInViaPopup",t,null,i,r.SDK_VERSION||null,null,null,this.S(),this.f));var a=Dr(o,n&&n.ua,n&&n.ta);return n=qf(this).then(function(n){return zl(n,a,"signInViaPopup",t,i,!!o,e.S())}).then(function(){return new ke(function(t,n){e.ma("signInViaPopup",null,new N("cancelled-popup-request"),e.h),e.g=t,e.O=n,e.h=i,e.c=Yl(e.b,e,"signInViaPopup",a,i)})}).then(function(t){return a&&xr(a),t?Ei(t):null}).s(function(t){throw a&&xr(a),t}),np(this,n)},e.Xc=function(t){if(!Jr())return je(new N("operation-not-supported-in-this-environment"));var e=this,n=qf(this).then(function(){return xf(e.l)}).then(function(){return Ql(e.b,"signInViaRedirect",t,void 0,e.S())});return np(this,n)},e.qa=function(){var t=this;return Wf(this).then(function(e){return t.b&&nh(t.b.b),e}).s(function(e){throw t.b&&nh(t.b.b),e})},e.cd=function(t){if(!t)return je(new N("null-user"));if(this.W!=t.tenantId)return je(new N("tenant-id-mismatch"));var e=this,n={};n.apiKey=Xf(this).options.apiKey,n.authDomain=Xf(this).options.authDomain,n.appName=Xf(this).name;var r=wf(t,n,e.G,e.Ga());return np(this,this.i.then(function(){if(Xf(e).options.apiKey!=t.l)return r.reload()}).then(function(){return Jf(e)&&t.uid==Jf(e).uid?(af(Jf(e),t),e.da(t)):(Kf(e,r),Xh(r),e.da(r))}).then(function(){tp(e)}))},e.zb=function(){var t=this,e=this.i.then(function(){return t.b&&nh(t.b.b),Jf(t)?(Kf(t,null),Rf(t.l).then(function(){tp(t)})):Me()});return np(this,e)},e.Yc=function(){var t=this;return Pf(this.l,Xf(this).options.authDomain).then(function(e){if(!t.m){var n;if(n=Jf(t)&&e){n=Jf(t).uid;var r=e.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return af(Jf(t),e),Jf(t).I();(Jf(t)||e)&&(Kf(t,e),e&&(Xh(e),e.ha=t.G),t.b&&Hl(t.b,t),tp(t))}})},e.da=function(t){return Df(this.l,t)},e.kc=function(){tp(this),this.da(Jf(this))},e.vc=function(){this.zb()},e.wc=function(){this.zb()},e.jc=function(t){var e=this;return this.i.then(function(){return Yf(e,Me(t))})},e.yc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(Jf(e))})},e.zc=function(t){var e=this;ep(this,function(){t.next(Jf(e))})},e.Hc=function(t,e,n){var r=this;return this.ba&&Promise.resolve().then(function(){"function"===typeof t?t(Jf(r)):"function"===typeof t.next&&t.next(Jf(r))}),this.ac(t,e,n)},e.Gc=function(t,e,n){var r=this;return this.ba&&Promise.resolve().then(function(){r.X=r.getUid(),"function"===typeof t?t(Jf(r)):"function"===typeof t.next&&t.next(Jf(r))}),this.bc(t,e,n)},e.mc=function(t){var e=this,n=this.i.then(function(){return Jf(e)?Jf(e).I(t).then(function(t){return{accessToken:t}}):null});return np(this,n)},e.Sc=function(t){var e=this;return this.i.then(function(){return Yf(e,Ku(e.a,Vu,{token:t}))}).then(function(t){var n=t.user;return of(n,"isAnonymous",!1),e.da(n),t})},e.Tc=function(t,e){var n=this;return this.i.then(function(){return Yf(n,Ku(n.a,Bu,{email:t,password:e}))})},e.dc=function(t,e){var n=this;return this.i.then(function(){return Yf(n,Ku(n.a,vu,{email:t,password:e}))})},e.Za=function(t){var e=this;return this.i.then(function(){return Yf(e,t.ja(e.a))})},e.Rc=function(t){return yi("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(t)},e.yb=function(){var t=this;return this.i.then(function(){var e=Jf(t);if(e&&e.isAnonymous){var n=Ei({providerId:null,isNewUser:!1});return Ei({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return Yf(t,t.a.yb()).then(function(e){var n=e.user;return of(n,"isAnonymous",!0),t.da(n),e})})},e.getUid=function(){return Jf(this)&&Jf(this).uid||null},e.cc=function(t){this.addAuthTokenListener(t),this.A++,0<this.A&&Jf(this)&&Kh(Jf(this))},e.Oc=function(t){var e=this;K(this.u,function(n){n==t&&e.A--}),0>this.A&&(this.A=0),0==this.A&&Jf(this)&&zh(Jf(this)),this.removeAuthTokenListener(t)},e.addAuthTokenListener=function(t){var e=this;this.u.push(t),np(this,this.i.then(function(){e.m||J(e.u,t)&&t(Zf(e))}))},e.removeAuthTokenListener=function(t){tt(this.u,function(e){return e==t})},e.delete=function(){this.m=!0;for(var t=0;t<this.R.length;t++)this.R[t].cancel("app-deleted");return this.R=[],this.l&&(t=this.l,t.b.removeListener(Of("local"),t.a,this.pa)),this.b&&(Wl(this.b,this),nh(this.b.b)),Promise.resolve()},e.gc=function(t){return np(this,Ys(this.a,t))},e.Ac=function(t){return!!ua(t)},e.vb=function(t,e){var n=this;return np(this,Me().then(function(){var t=new no(e);if(!t.c)throw new N("argument-error",oo+" must be true when sending sign in link to email");return fo(t)}).then(function(e){return n.a.vb(t,e)}).then(function(){}))},e.hd=function(t){return this.Qa(t).then(function(t){return t.data.email})},e.mb=function(t,e){return np(this,this.a.mb(t,e).then(function(){}))},e.Qa=function(t){return np(this,this.a.Qa(t).then(function(t){return new Ri(t)}))},e.ib=function(t){return np(this,this.a.ib(t).then(function(){}))},e.ub=function(t,e){var n=this;return np(this,Me().then(function(){return"undefined"===typeof e||yt(e)?{}:fo(new no(e))}).then(function(e){return n.a.ub(t,e)}).then(function(){}))},e.Vc=function(t,e){return np(this,fh(this,t,e,T(this.Za,this)))},e.Uc=function(t,e){var n=this;return np(this,Me().then(function(){var r=e||Cr(),i=sa(t,r);if(r=ua(r),!r)throw new N("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new N("tenant-id-mismatch");return n.Za(i)}))},rp.prototype.render=function(){},rp.prototype.reset=function(){},rp.prototype.getResponse=function(){},rp.prototype.execute=function(){};var op=null;function ap(t,e){return(e=sp(e))&&t.a[e]||null}function sp(t){return(t="undefined"===typeof t?1e12:t)?t.toString():null}function up(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=pe(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():wn(this.f,"click",this.i)}function cp(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function lp(){}function hp(){}ip.prototype.render=function(t,e){return this.a[this.b.toString()]=new up(t,e),this.b++},ip.prototype.reset=function(t){var e=ap(this,t);t=sp(t),e&&t&&(e.delete(),delete this.a[t])},ip.prototype.getResponse=function(t){return(t=ap(this,t))?t.getResponse():null},ip.prototype.execute=function(t){(t=ap(this,t))&&t.execute()},up.prototype.getResponse=function(){return cp(this),this.b},up.prototype.execute=function(){cp(this);var t=this;this.a||(this.a=setTimeout(function(){t.b=Hr();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(r){}t.a=setTimeout(function(){if(t.a=null,t.b=null,n)try{n()}catch(r){}t.h&&t.execute()},6e4)},500))},up.prototype.delete=function(){cp(this),this.g=!0,clearTimeout(this.a),this.a=null,Sn(this.f,"click",this.i)},_i(lp,"FACTOR_ID","phone"),hp.prototype.g=function(){return op||(op=new ip),Me(op)},hp.prototype.c=function(){};var fp=null;function pp(){this.b=h.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var dp=new It(Ct,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),vp=new ui(3e4,6e4);pp.prototype.g=function(t){var e=this;return new ke(function(n,r){var i=setTimeout(function(){r(new N("network-request-failed"))},vp.get());if(!h.grecaptcha||t!==e.f&&!e.b){h[e.a]=function(){if(h.grecaptcha){e.f=t;var o=h.grecaptcha.render;h.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(i),n(h.grecaptcha)}else clearTimeout(i),r(new N("internal-error"));delete h[e.a]};var o=Ot(dp,{onload:e.a,hl:t||""});Me(Is(o)).s(function(){clearTimeout(i),r(new N("internal-error","Unable to load external reCAPTCHA dependencies!"))})}else clearTimeout(i),n(h.grecaptcha)})},pp.prototype.c=function(){this.b--};var gp=null;function mp(t,e,n,r,i,o,a){if(_i(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=e,this.g=null,a?(fp||(fp=new hp),a=fp):(gp||(gp=new pp),a=gp),this.v=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[_p])throw new N("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[wp],!h.document)throw new N("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!pe(e)||!this.i&&pe(e).hasChildNodes())throw new N("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new xs(t,o||null,i||null),this.u=r||function(){return null};var s=this;this.l=[];var u=this.a[yp];this.a[yp]=function(t){if(Ep(s,t),"function"===typeof u)u(t);else if("string"===typeof u){var e=Yr(u,h);"function"===typeof e&&e(t)}};var c=this.a[bp];this.a[bp]=function(){if(Ep(s,null),"function"===typeof c)c();else if("string"===typeof c){var t=Yr(c,h);"function"===typeof t&&t()}}}var yp="callback",bp="expired-callback",_p="sitekey",wp="size";function Ep(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(r){}}function Ip(t,e){tt(t.l,function(t){return t==e})}function Tp(t,e){return t.h.push(e),e.na(function(){Z(t.h,e)}),e}function Sp(t){if(t.A)throw new N("internal-error","RecaptchaVerifier instance has been destroyed.")}function Cp(t,e,n){var i=!1;try{this.b=n||r.app()}catch(s){throw new N("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new N("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ga()}catch(s){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=r.SDK_VERSION?$r(r.SDK_VERSION,a):null,mp.call(this,n,t,e,function(){try{var t=o.b.auth().ka()}catch(e){t=null}return t},a,P(O),i)}function Ap(t,e,n,r){t:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new N("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=e.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=e[i].optional&&void 0===n[i],!e[i].K(n[i])&&!o){if(e=e[i],0>i||i>=Np.length)throw new N("internal-error","Argument validator received an unsupported number of arguments.");
135n=Np[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}r=null}}if(r)throw new N("argument-error",t+" failed: "+r)}e=mp.prototype,e.Ia=function(){var t=this;return this.f?this.f:this.f=Tp(this,Me().then(function(){if(Zr()&&!Vr())return Mr();throw new N("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.v.g(t.u())}).then(function(e){return t.g=e,Ku(t.o,ku,{})}).then(function(e){t.a[_p]=e.recaptchaSiteKey}).s(function(e){throw t.f=null,e}))},e.render=function(){Sp(this);var t=this;return Tp(this,this.Ia().then(function(){if(null===t.c){var e=t.m;if(!t.i){var n=pe(e);e=ye("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},e.verify=function(){Sp(this);var t=this;return Tp(this,this.render().then(function(e){return new ke(function(n){var r=t.g.getResponse(e);if(r)n(r);else{var i=function(e){e&&(Ip(t,i),n(e))};t.l.push(i),t.i&&t.g.execute(t.c)}})}))},e.reset=function(){Sp(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Sp(this),this.A=!0,this.v.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=pe(this.m);for(var e;e=t.firstChild;)t.removeChild(e)}},A(Cp,mp);var Np="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function kp(t,e){return{name:t||"",J:"a valid string",optional:!!e,K:function(t){return"string"===typeof t}}}function Op(t,e){return{name:t||"",J:"a boolean",optional:!!e,K:function(t){return"boolean"===typeof t}}}function xp(t,e){return{name:t||"",J:"a valid object",optional:!!e,K:y}}function Dp(t,e){return{name:t||"",J:"a function",optional:!!e,K:function(t){return"function"===typeof t}}}function Rp(t,e){return{name:t||"",J:"null",optional:!!e,K:function(t){return null===t}}}function Pp(){return{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}}}function Lp(){return{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof Mf)}}}function Mp(){return{name:"app",J:"an instance of Firebase App",optional:!0,K:function(t){return!!(t&&t instanceof r.app.App)}}}function jp(t){return{name:t?t+"Credential":"credential",J:t?"a valid "+t+" credential":"a valid credential",optional:!1,K:function(e){if(!e)return!1;var n=!t||e.providerId===t;return!(!e.ja||!n)}}}function Fp(){return{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.rb}}}function Up(){return{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}}function Vp(t,e){return y(t)&&"string"===typeof t.type&&t.type===e&&"function"===typeof t.Ha}function Bp(t){return y(t)&&"string"===typeof t.uid}function qp(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!==typeof t.type||"function"!==typeof t.verify)}}}function Hp(t,e,n,r){return{name:n||"",J:t.J+" or "+e.J,optional:!!r,K:function(n){return t.K(n)||e.K(n)}}}function Wp(t,e){for(var n in e){var r=e[n].name;t[r]=zp(r,t[n],e[n].j)}}function Gp(t,e){for(var n in e){var r=e[n].name;r!==n&&Object.defineProperty(t,r,{get:S(function(t){return this[t]},n),set:S(function(t,e,n,r){Ap(t,[n],[r],!0),this[e]=r},r,n,e[n].jb),enumerable:!0})}}function Kp(t,e,n,r){t[e]=zp(e,n,r)}function zp(t,e,n){function r(){var t=Array.prototype.slice.call(arguments);return Ap(o,n,t),e.apply(this,t)}if(!n)return e;var i,o=$p(t);for(i in e)r[i]=e[i];for(i in e.prototype)r.prototype[i]=e.prototype[i];return r}function $p(t){return t=t.split("."),t[t.length-1]}Wp(Mf.prototype,{ib:{name:"applyActionCode",j:[kp("code")]},Qa:{name:"checkActionCode",j:[kp("code")]},mb:{name:"confirmPasswordReset",j:[kp("code"),kp("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[kp("email"),kp("password")]},gc:{name:"fetchSignInMethodsForEmail",j:[kp("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[kp("emailLink")]},Gc:{name:"onAuthStateChanged",j:[Hp(xp(),Dp(),"nextOrObserver"),Dp("opt_error",!0),Dp("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[Hp(xp(),Dp(),"nextOrObserver"),Dp("opt_error",!0),Dp("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[kp("email"),Hp(xp("opt_actionCodeSettings",!0),Rp(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[kp("email"),xp("actionCodeSettings")]},wb:{name:"setPersistence",j:[kp("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[jp()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[jp()]},Sc:{name:"signInWithCustomToken",j:[kp("token")]},Tc:{name:"signInWithEmailAndPassword",j:[kp("email"),kp("password")]},Uc:{name:"signInWithEmailLink",j:[kp("email"),kp("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[kp("phoneNumber"),qp()]}
135,Wc:{name:"signInWithPopup",j:[Up()]},Xc:{name:"signInWithRedirect",j:[Up()]},cd:{name:"updateCurrentUser",j:[Hp(function(t){return{name:"user",J:"an instance of Firebase User",optional:!!t,K:function(t){return!!(t&&t instanceof Uh)}}}(),Rp(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[kp(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[kp("url")]},hd:{name:"verifyPasswordResetCode",j:[kp("code")]}}),Gp(Mf.prototype,{lc:{name:"languageCode",jb:Hp(kp(),Rp(),"languageCode")},ti:{name:"tenantId",jb:Hp(kp(),Rp(),"tenantId")}}),Mf.Persistence=Jc,Mf.Persistence.LOCAL="local",Mf.Persistence.SESSION="session",Mf.Persistence.NONE="none",Wp(Uh.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[Op("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Op("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[jp()]},pb:{name:"linkWithCredential",j:[jp()]},Cc:{name:"linkWithPhoneNumber",j:[kp("phoneNumber"),qp()]},Dc:{name:"linkWithPopup",j:[Up()]},Ec:{name:"linkWithRedirect",j:[Up()]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[jp()]},sb:{name:"reauthenticateWithCredential",j:[jp()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[kp("phoneNumber"),qp()]},Mc:{name:"reauthenticateWithPopup",j:[Up()]},Nc:{name:"reauthenticateWithRedirect",j:[Up()]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[Hp(xp("opt_actionCodeSettings",!0),Rp(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[kp(null,!0)]},bd:{name:"unlink",j:[kp("provider")]},Ab:{name:"updateEmail",j:[kp("email")]},Bb:{name:"updatePassword",j:[kp("password")]},dd:{name:"updatePhoneNumber",j:[jp("phone")]},Cb:{name:"updateProfile",j:[xp("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[kp("email"),Hp(xp("opt_actionCodeSettings",!0),Rp(null,!0),"opt_actionCodeSettings",!0)]}}),Wp(ip.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Wp(rp.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Wp(ke.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),Gp(lh.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:Op("appVerificationDisabledForTesting")}}),Wp(hh.prototype,{confirm:{name:"confirm",j:[kp("verificationCode")]}}),Kp(Uo,"fromJSON",function(t){t="string"===typeof t?JSON.parse(t):t;for(var e,n=[Ko,oa,la,Ho],r=0;r<n.length;r++)if(e=n[r](t))return e;return null},[Hp(kp(),xp(),"json")]),Kp(aa,"credential",function(t,e){return new ia(t,e)},[kp("email"),kp("password")]),Wp(ia.prototype,{w:{name:"toJSON",j:[kp(null,!0)]}}),Wp(Yo.prototype,{Ca:{name:"addScope",j:[kp("scope")]},Ka:{name:"setCustomParameters",j:[xp("customOAuthParameters")]}}),Kp(Yo,"credential",Xo,[Hp(kp(),xp(),"token")]),Kp(aa,"credentialWithLink",sa,[kp("email"),kp("emailLink")]),Wp(Jo.prototype,{Ca:{name:"addScope",j:[kp("scope")]},Ka:{name:"setCustomParameters",j:[xp("customOAuthParameters")]}}),Kp(Jo,"credential",Zo,[Hp(kp(),xp(),"token")]),Wp(ta.prototype,{Ca:{name:"addScope",j:[kp("scope")]},Ka:{name:"setCustomParameters",j:[xp("customOAuthParameters")]}}),Kp(ta,"credential",ea,[Hp(kp(),Hp(xp(),Rp()),"idToken"),Hp(kp(),Rp(),"accessToken",!0)]),Wp(na.prototype,{Ka:{name:"setCustomParameters",j:[xp("customOAuthParameters")]}}),Kp(na,"credential",ra,[Hp(kp(),xp(),"token"),kp("secret",!0)]),Wp(Qo.prototype,{Ca:{name:"addScope",j:[kp("scope")]},credential:{name:"credential",j:[Hp(kp(),Hp(xp(),Rp()),"optionsOrIdToken"),Hp(kp(),Rp(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[xp("customOAuthParameters")]}}),Wp(Wo.prototype,{w:{name:"toJSON",j:[kp(null,!0)]}}),Wp(Bo.prototype,{w:{name:"toJSON",j:[kp(null,!0)]}}),Kp(fa,"credential",pa,[kp("verificationId"),kp("verificationCode")]),Wp(fa.prototype,{eb:{name:"verifyPhoneNumber",j:[Hp(kp(),function(t,e){return{name:t||"phoneInfoOptions",J:"valid phone info options",optional:!!e,K:function(t){return!!t&&(t.session&&t.phoneNumber?Vp(t.session,jo)&&"string"===typeof t.phoneNumber:t.session&&t.multiFactorHint?Vp(t.session,Fo)&&Bp(t.multiFactorHint):t.session&&t.multiFactorUid?Vp(t.session,Fo)&&"string"===typeof t.multiFactorUid:!!t.phoneNumber&&"string"===typeof t.phoneNumber)}}}(),"phoneInfoOptions"),qp()]}}),Wp(ca.prototype,{w:{name:"toJSON",j:[kp(null,!0)]}}),Wp(N.prototype,{toJSON:{name:"toJSON",j:[kp(null,!0)]}}),Wp(Ia.prototype,{toJSON:{name:"toJSON",j:[kp(null,!0)]}}),Wp(Ea.prototype,{toJSON:{name:"toJSON",j:[kp(null,!0)]}}),Wp(mh.prototype,{toJSON:{name:"toJSON",j:[kp(null,!0)]}}),Wp(dh.prototype,{Qc:{name:"resolveSignIn",j:[Fp()]}}),Wp(Sh.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[Fp(),kp("displayName",!0)]},ad:{name:"unenroll",j:[Hp({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Bp},kp(),"multiFactorInfoIdentifier")]}}),Wp(Cp.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Kp(zi,"parseLink",eo,[kp("link")]),Kp(lp,"assertion",function(t){return new Ih(t)},[jp("phone")]),function(){if("undefined"===typeof r||!r.INTERNAL||!r.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Li,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:Pi,VERIFY_AND_CHANGE_EMAIL:Mi,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Mf,AuthCredential:Uo,Error:N};Kp(t,"EmailAuthProvider",aa,[]),Kp(t,"FacebookAuthProvider",Yo,[]),Kp(t,"GithubAuthProvider",Jo,[]),Kp(t,"GoogleAuthProvider",ta,[]),Kp(t,"TwitterAuthProvider",na,[]),Kp(t,"OAuthProvider",Qo,[kp("providerId")]),Kp(t,"SAMLAuthProvider",$o,[kp("providerId")]),Kp(t,"PhoneAuthProvider",fa,[Lp()]),Kp(t,"RecaptchaVerifier",Cp,[Hp(kp(),Pp(),"recaptchaContainer"),xp("recaptchaParameters",!0),Mp()]),Kp(t,"ActionCodeURL",zi,[]),Kp(t,"PhoneMultiFactorGenerator",lp,[]),r.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return t=t.getProvider("app").getImmediate(),new Mf(t)},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),r.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return t=t.getProvider("auth").getImmediate(),{getUid:T(t.getUid,t),getToken:T(t.mc,t),addAuthTokenListener:T(t.cc,t),removeAuthTokenListener:T(t.Oc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.registerVersion("@firebase/auth","0.15.0"),r.INTERNAL.extendNamespace({User:Uh})}()}).apply("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(this,n("c8ba"))},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2e66":function(t,e,n){"use strict";n.r(e),n.d(e,"registerStorage",function(){return Pe});var r=n("c23d"),i=n.n(r),o=n("9ab4"),a=n("4be4"),s="firebasestorage.googleapis.com",u="storageBucket",c=12e4,l=6e5,h=function(){function t(t,e){this.co
135de_=p(t),this.message_="Firebase Storage: "+e,this.serverResponse_=null,this.name_="FirebaseError"}return t.prototype.codeProp=function(){return this.code},t.prototype.codeEquals=function(t){return p(t)===this.codeProp()},t.prototype.serverResponseProp=function(){return this.serverResponse_},t.prototype.setServerResponseProp=function(t){this.serverResponse_=t},Object.defineProperty(t.prototype,"name",{get:function(){return this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"code",{get:function(){return this.code_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.serverResponse_?this.message_+"\n"+this.serverResponse_:this.message_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!1,configurable:!0}),t}(),f={UNKNOWN:"unknown",OBJECT_NOT_FOUND:"object-not-found",BUCKET_NOT_FOUND:"bucket-not-found",PROJECT_NOT_FOUND:"project-not-found",QUOTA_EXCEEDED:"quota-exceeded",UNAUTHENTICATED:"unauthenticated",UNAUTHORIZED:"unauthorized",RETRY_LIMIT_EXCEEDED:"retry-limit-exceeded",INVALID_CHECKSUM:"invalid-checksum",CANCELED:"canceled",INVALID_EVENT_NAME:"invalid-event-name",INVALID_URL:"invalid-url",INVALID_DEFAULT_BUCKET:"invalid-default-bucket",NO_DEFAULT_BUCKET:"no-default-bucket",CANNOT_SLICE_BLOB:"cannot-slice-blob",SERVER_FILE_WRONG_SIZE:"server-file-wrong-size",NO_DOWNLOAD_URL:"no-download-url",INVALID_ARGUMENT:"invalid-argument",INVALID_ARGUMENT_COUNT:"invalid-argument-count",APP_DELETED:"app-deleted",INVALID_ROOT_OPERATION:"invalid-root-operation",INVALID_FORMAT:"invalid-format",INTERNAL_ERROR:"internal-error"};function p(t){return"storage/"+t}function d(){var t="An unknown error occurred, please check the error payload for server response.";return new h(f.UNKNOWN,t)}function v(t){return new h(f.OBJECT_NOT_FOUND,"Object '"+t+"' does not exist.")}function g(t){return new h(f.QUOTA_EXCEEDED,"Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function m(){var t="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new h(f.UNAUTHENTICATED,t)}function y(t){return new h(f.UNAUTHORIZED,"User does not have permission to access '"+t+"'.")}function b(){return new h(f.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function _(){return new h(f.CANCELED,"User canceled the upload/download.")}function w(t){return new h(f.INVALID_URL,"Invalid URL '"+t+"'.")}function E(t){return new h(f.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function I(){return new h(f.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function T(){return new h(f.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}function S(){return new h(f.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function C(t,e,n){return new h(f.INVALID_ARGUMENT,"Invalid argument in `"+e+"` at index "+t+": "+n)}function A(t,e,n,r){var i,o;return t===e?(i=t,o=1===t?"argument":"arguments"):(i="between "+t+" and "+e,o="arguments"),new h(f.INVALID_ARGUMENT_COUNT,"Invalid argument count in `"+n+"`: Expected "+i+" "+o+", received "+r+".")}function N(){return new h(f.APP_DELETED,"The Firebase app was deleted.")}function k(t){return new h(f.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function O(t,e){return new h(f.INVALID_FORMAT,"String does not match format '"+t+"': "+e)}function x(t){throw new h(f.INTERNAL_ERROR,"Internal error: "+t)}
136/**
137 * @license
138 * Copyright 2017 Google LLC
139 *
140 * Licensed under the Apache License, Version 2.0 (the "License");
141 * you may not use this file except in compliance with the License.
142 * You may obtain a copy of the License at
143 *
144 *   http://www.apache.org/licenses/LICENSE-2.0
145 *
146 * Unless required by applicable law or agreed to in writing, software
147 * distributed under the License is distributed on an "AS IS" BASIS,
148 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149 * See the License for the specific language governing permissions and
150 * limitations under the License.
151 */var D={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function R(t){switch(t){case D.RAW:case D.BASE64:case D.BASE64URL:case D.DATA_URL:return;default:throw"Expected one of the event types: ["+D.RAW+", "+D.BASE64+", "+D.BASE64URL+", "+D.DATA_URL+"]."}}var P=function(){function t(t,e){this.data=t,this.contentType=e||null}return t}();function L(t,e){switch(t){case D.RAW:return new P(M(e));case D.BASE64:case D.BASE64URL:return new P(F(t,e));case D.DATA_URL:return new P(V(e),B(e))}throw d()}function M(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|63&r);else if(55296===(64512&r)){var i=n<t.length-1&&56320===(64512&t.charCodeAt(n+1));if(i){var o=r,a=t.charCodeAt(++n);r=65536|(1023&o)<<10|1023&a,e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else e.push(239,191,189)}else 56320===(64512&r)?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(e)}function j(t){var e;try{e=decodeURIComponent(t)}catch(n){throw O(D.DATA_URL,"Malformed data URL.")}return M(e)}function F(t,e){switch(t){case D.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r){var i=n?"-":"_";throw O(t,"Invalid character '"+i+"' found: is it base64url encoded?")}break;case D.BASE64URL:var o=-1!==e.indexOf("+"),a=-1!==e.indexOf("/");if(o||a){i=o?"+":"/";throw O(t,"Invalid character '"+i+"' found: is it base64 encoded?")}e=e.replace(/-/g,"+").replace(/_/g,"/");break}var s;try{s=atob(e)}catch(l){throw O(t,"Invalid character found")}for(var u=new Uint8Array(s.length),c=0;c<s.length;c++)u[c]=s.charCodeAt(c);return u}var U=function(){function t(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw O(D.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=e[1]||null;null!=n&&(this.base64=q(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=t.substring(t.indexOf(",")+1)}return t}();function V(t){var e=new U(t);return e.base64?F(D.BASE64,e.rest):j(e.rest)}function B(t){var e=new U(t);return e.contentType}function q(t,e){var n=t.length>=e.length;return!!n&&t.substring(t.length-e.length)===e}
152/**
153 * @license
154 * Copyright 2017 Google LLC
155 *
156 * Licensed under the Apache License, Version 2.0 (the "License");
157 * you may not use this file except in compliance with the License.
158 * You may obtain a copy of the License at
159 *
160 *   http://www.apache.org/licenses/LICENSE-2.0
161 *
162 * Unless required by applicable law or agreed to in writing, software
163 * distributed under the License is distributed on an "AS IS" BASIS,
164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
165 * See the License for the specific language governing permissions and
166 * limitations under the License.
167 */var H,W={STATE_CHANGED:"state_changed"},G={RUNNING:"running",PAUSING:"pausing",PAUSED:"paused",SUCCESS:"success",CANCELING:"canceling",CANCELED:"canceled",ERROR:"error"},K={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function z(t){switch(t){case G.RUNNING:case G.PAUSING:case G.CANCELING:return K.RUNNING;case G.PAUSED:return K.PAUSED;case G.SUCCESS:return K.SUCCESS;case G.CANCELED:return K.CANCELED;case G.ERROR:return K.ERROR;default:return K.ERROR}}
168/**
169 * @license
170 * Copyright 2017 Google LLC
171 *
172 * Licensed under the Apache License, Version 2.0 (the "License");
173 * you may not use this file except in compliance with the License.
174 * You may obtain a copy of the License at
175 *
176 *   http://www.apache.org/licenses/LICENSE-2.0
177 *
178 * Unless required by applicable law or agreed to in writing, software
179 * distributed under the License is distributed on an "AS IS" BASIS,
180 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
181 * See the License for the specific language governing permissions and
182 * limitations under the License.
183 */function $(t){return null!=t}function Q(t){return void 0!==t}function Y(t){return"function"===typeof t}function X(t){return"object"===typeof t}function J(t){return X(t)&&null!==t}function Z(t){return X(t)&&!Array.isArray(t)}function tt(t){return"string"===typeof t||t instanceof String}function et(t){return nt(t)&&Number.isInteger(t)}function nt(t){return"number"===typeof t||t instanceof Number}function rt(t){return it()&&t instanceof Blob}function it(){return"undefined"!==typeof Blob}
184/**
185 * @license
186 * Copyright 2017 Google LLC
187 *
188 * Licensed under the Apache License, Version 2.0 (the "License");
189 * you may not use this file except in compliance with the License.
190 * You may obtain a copy of the License at
191 *
192 *   http://www.apache.org/licenses/LICENSE-2.0
193 *
194 * Unless required by applicable law or agreed to in writing, software
195 * distributed under the License is distributed on an "AS IS" BASIS,
196 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197 * See the License for the specific language governing permissions and
198 * limitations under the License.
199 */(function(t){t[t["NO_ERROR"]=0]="NO_ERROR",t[t["NETWORK_ERROR"]=1]="NETWORK_ERROR",t[t["ABORT"]=2]="ABORT"})(H||(H={}));
200/**
201 * @license
202 * Copyright 2017 Google LLC
203 *
204 * Licensed under the Apache License, Version 2.0 (the "License");
205 * you may not use this file except in compliance with the License.
206 * You may obtain a copy of the License at
207 *
208 *   http://www.apache.org/licenses/LICENSE-2.0
209 *
210 * Unless required by applicable law or agreed to in writing, software
211 * distributed under the License is distributed on an "AS IS" BASIS,
212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213 * See the License for the specific language governing permissions and
214 * limitations under the License.
215 */
216var ot=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=H.NO_ERROR,this.sendPromise_=new Promise(function(e){t.xhr_.addEventListener("abort",function(){t.errorCode_=H.ABORT,e(t)}),t.xhr_.addEventListener("error",function(){t.errorCode_=H.NETWORK_ERROR,e(t)}),t.xhr_.addEventListener("load",function(){e(t)})})}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw x("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),$(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return $(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw x("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw x("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw x("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){$(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){$(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),at=function(){function t(){}return t.prototype.createXhrIo=function(){return new ot},t}();
217/**
218 * @license
219 * Copyright 2017 Google LLC
220 *
221 * Licensed under the Apache License, Version 2.0 (the "License");
222 * you may not use this file except in compliance with the License.
223 * You may obtain a copy of the License at
224 *
225 *   http://www.apache.org/licenses/LICENSE-2.0
226 *
227 * Unless required by applicable law or agreed to in writing, software
228 * distributed under the License is distributed on an "AS IS" BASIS,
229 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
230 * See the License for the specific language governing permissions and
231 * limitations under the License.
232 */
233/**
234 * @license
235 * Copyright 2017 Google LLC
236 *
237 * Licensed under the Apache License, Version 2.0 (the "License");
238 * you may not use this file except in compliance with the License.
239 * You may obtain a copy of the License at
240 *
241 *   http://www.apache.org/licenses/LICENSE-2.0
242 *
243 * Unless required by applicable law or agreed to in writing, software
244 * distributed under the License is distributed on an "AS IS" BASIS,
245 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
246 * See the License for the specific language governing permissions and
247 * limitations under the License.
248 */
249function st(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function ut(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=st();if(void 0!==n){for(var r=new n,i=0;i<t.length;i++)r.append(t[i]);return r.getBlob()}if(it())return new Blob(t);throw Error("This browser doesn't seem to support creating Blobs")}function ct(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}
250/**
251 * @license
252 * Copyright 2017 Google LLC
253 *
254 * Licensed under the Apache License, Version 2.0 (the "License");
255 * you may not use this file except in compliance with the License.
256 * You may obtain a copy of the License at
257 *
258 *   http://www.apache.org/licenses/LICENSE-2.0
259 *
260 * Unless required by applicable law or agreed to in writing, software
261 * distributed under the License is distributed on an "AS IS" BASIS,
262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
263 * See the License for the specific language governing permissions and
264 * limitations under the License.
265 */var lt=function(){function t(t,e){var n=0,r="";rt(t)?(this.data_=t,n=t.size,r=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=r}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,n){if(rt(this.data_)){var r=this.data_,i=ct(r,e,n);return null===i?null:new t(i)}var o=new Uint8Array(this.data_.buffer,e,n-e);return new t(o,!0)},t.getBlob=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(it()){var r=e.map(function(e){return e instanceof t?e.data_:e});return new t(ut.apply(null,r))}var i=e.map(function(t){return tt(t)?L(D.RAW,t).data:t.data_}),o=0;i.forEach(function(t){o+=t.byteLength});var a=new Uint8Array(o),s=0;return i.forEach(function(t){for(var e=0;e<t.length;e++)a[s++]=t[e]}),new t(a,!0)},t.prototype.uploadData=function(){return this.data_},t}(),ht=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),t.prototype.fullServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)},t.prototype.bucketOnlyServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o"},t.makeFromBucketSpec=function(e){var n;try{n=t.makeFromUrl(e)}catch(r){return new t(e,"")}if(""===n.path)return n;throw E(e)},t.makeFromUrl=function(e){var n=null,r="([A-Za-z0-9.\\-_]+)";function i(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}var o="(/(.*))?$",a=new RegExp("^gs://"+r+o,"i"),u={bucket:1,path:3};function c(t){t.path_=decodeURIComponent(t.path)}for(var l="v[A-Za-z0-9_]+",h=s.replace(/[.]/g,"\\."),f="(/([^?#]*).*)?$",p=new RegExp("^https?://"+h+"/"+l+"/b/"+r+"/o"+f,"i"),d={bucket:1,path:3},v="(?:storage.googleapis.com|storage.cloud.google.com)",g="([^?#]*)",m=new RegExp("^https?://"+v+"/"+r+"/"+g,"i"),y={bucket:1,path:2},b=[{regex:a,indices:u,postModify:i},{regex:p,indices:d,postModify:c},{regex:m,indices:y,postModify:c}],_=0;_<b.length;_++){var E=b[_],I=E.regex.exec(e);if(I){var T=I[E.indices.bucket],S=I[E.indices.path];S||(S=""),n=new t(T,S),E.postModify(n);break}}if(null==n)throw w(e);return n},t}();
266/**
267 * @license
268 * Copyright 2017 Google LLC
269 *
270 * Licensed under the Apache License, Version 2.0 (the "License");
271 * you may not use this file except in compliance with the License.
272 * You may obtain a copy of the License at
273 *
274 *   http://www.apache.org/licenses/LICENSE-2.0
275 *
276 * Unless required by applicable law or agreed to in writing, software
277 * distributed under the License is distributed on an "AS IS" BASIS,
278 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
279 * See the License for the specific language governing permissions and
280 * limitations under the License.
281 */
282/**
283 * @license
284 * Copyright 2017 Google LLC
285 *
286 * Licensed under the Apache License, Version 2.0 (the "License");
287 * you may not use this file except in compliance with the License.
288 * You may obtain a copy of the License at
289 *
290 *   http://www.apache.org/licenses/LICENSE-2.0
291 *
292 * Unless required by applicable law or agreed to in writing, software
293 * distributed under the License is distributed on an "AS IS" BASIS,
294 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
295 * See the License for the specific language governing permissions and
296 * limitations under the License.
297 */
298function ft(t){var e;try{e=JSON.parse(t)}catch(n){return null}return Z(e)?e:null}
299/**
300 * @license
301 * Copyright 2017 Google LLC
302 *
303 * Licensed under the Apache License, Version 2.0 (the "License");
304 * you may not use this file except in compliance with the License.
305 * You may obtain a copy of the License at
306 *
307 *   http://www.apache.org/licenses/LICENSE-2.0
308 *
309 * Unless required by applicable law or agreed to in writing, software
310 * distributed under the License is distributed on an "AS IS" BASIS,
311 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
312 * See the License for the specific language governing permissions and
313 * limitations under the License.
314 */function pt(t){if(0===t.length)return null;var e=t.lastIndexOf("/");if(-1===e)return"";var n=t.slice(0,e);return n}function dt(t,e){var n=e.split("/").filter(function(t){return t.length>0}).join("/");return 0===t.length?n:t+"/"+n}function vt(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}
315/**
316 * @license
317 * Copyright 2017 Google LLC
318 *
319 * Licensed under the Apache License, Version 2.0 (the "License");
320 * you may not use this file except in compliance with the License.
321 * You may obtain a copy of the License at
322 *
323 *   http://www.apache.org/licenses/LICENSE-2.0
324 *
325 * Unless required by applicable law or agreed to in writing, software
326 * distributed under the License is distributed on an "AS IS" BASIS,
327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
328 * See the License for the specific language governing permissions and
329 * limitations under the License.
330 */function gt(t){return"https://"+s+"/v0"+t}function mt(t){var e=encodeURIComponent,n="?";for(var r in t)if(t.hasOwnProperty(r)){var i=e(r)+"="+e(t[r]);n=n+i+"&"}return n=n.slice(0,-1),n}
331/**
332 * @license
333 * Copyright 2017 Google LLC
334 *
335 * Licensed under the Apache License, Version 2.0 (the "License");
336 * you may not use this file except in compliance with the License.
337 * You may obtain a copy of the License at
338 *
339 *   http://www.apache.org/licenses/LICENSE-2.0
340 *
341 * Unless required by applicable law or agreed to in writing, software
342 * distributed under the License is distributed on an "AS IS" BASIS,
343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
344 * See the License for the specific language governing permissions and
345 * limitations under the License.
346 */function yt(t,e){return e}var bt=function(){function t(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||yt}return t}(),_t=null;function wt(t){return!tt(t)||t.length<2?t:vt(t)}function Et(){if(_t)return _t;var t=[];function e(t,e){return wt(e)}t.push(new bt("bucket")),t.push(new bt("generation")),t.push(new bt("metageneration")),t.push(new bt("name","fullPath",!0));var n=new bt("name");function r(t,e){return $(e)?Number(e):e}n.xform=e,t.push(n);var i=new bt("size");return i.xform=r,t.push(i),t.push(new bt("timeCreated")),t.push(new bt("updated")),t.push(new bt("md5Hash",null,!0)),t.push(new bt("cacheControl",null,!0)),t.push(new bt("contentDisposition",null,!0)),t.push(new bt("contentEncoding",null,!0)),t.push(new bt("contentLanguage",null,!0)),t.push(new bt("contentType",null,!0)),t.push(new bt("metadata","customMetadata",!0)),_t=t,_t}function It(t,e){function n(){var n=t["bucket"],r=t["fullPath"],i=new ht(n,r);return e.makeStorageReference(i)}Object.defineProperty(t,"ref",{get:n})}function Tt(t,e,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,e[a.server])}return It(r,t),r}function St(t,e,n){var r=ft(e);if(null===r)return null;var i=r;return Tt(t,i,n)}function Ct(t,e){var n=ft(e);if(null===n)return null;if(!tt(n["downloadTokens"]))return null;var r=n["downloadTokens"];if(0===r.length)return null;var i=encodeURIComponent,o=r.split(","),a=o.map(function(e){var n=t["bucket"],r=t["fullPath"],o="/b/"+i(n)+"/o/"+i(r),a=gt(o),s=mt({alt:"media",token:e});return a+s});return a[0]}function At(t,e){for(var n={},r=e.length,i=0;i<r;i++){var o=e[i];o.writable&&(n[o.server]=t[o.local])}return JSON.stringify(n)}function Nt(t){if(!X(t)||!t)throw"Expected Metadata object.";for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if("customMetadata"===e){if(!X(n))throw"Expected object for 'customMetadata' mapping."}else if(J(n))throw"Mapping for '"+e+"' cannot be an object."}}
347/**
348 * @license
349 * Copyright 2019 Google LLC
350 *
351 * Licensed under the Apache License, Version 2.0 (the "License");
352 * you may not use this file except in compliance with the License.
353 * You may obtain a copy of the License at
354 *
355 *   http://www.apache.org/licenses/LICENSE-2.0
356 *
357 * Unless required by applicable law or agreed to in writing, software
358 * distributed under the License is distributed on an "AS IS" BASIS,
359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
360 * See the License for the specific language governing permissions and
361 * limitations under the License.
362 */var kt="maxResults",Ot=1e3,xt="pageToken",Dt="prefixes",Rt="items";function Pt(t,e,n){var r={prefixes:[],items:[],nextPageToken:n["nextPageToken"]};if(n[Dt])for(var i=0,o=n[Dt];i<o.length;i++){var a=o[i],s=a.replace(/\/$/,""),u=t.makeStorageReference(new ht(e,s));r.prefixes.push(u)}if(n[Rt])for(var c=0,l=n[Rt];c<l.length;c++){var h=l[c];u=t.makeStorageReference(new ht(e,h["name"]));r.items.push(u)}return r}function Lt(t,e,n){var r=ft(n);if(null===r)return null;var i=r;return Pt(t,e,i)}function Mt(t){if(!X(t)||!t)throw"Expected ListOptions object.";for(var e in t)if(e===kt){if(!et(t[kt])||t[kt]<=0)throw"Expected maxResults to be a positive number.";if(t[kt]>1e3)throw"Expected maxResults to be less than or equal to "+Ot+"."}else{if(e!==xt)throw"Unknown option: "+e;if(t[xt]&&!tt(t[xt]))throw"Expected pageToken to be string."}}var jt=function(){function t(t,e,n,r){this.url=t,this.method=e,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}return t}();
363/**
364 * @license
365 * Copyright 2017 Google LLC
366 *
367 * Licensed under the Apache License, Version 2.0 (the "License");
368 * you may not use this file except in compliance with the License.
369 * You may obtain a copy of the License at
370 *
371 *   http://www.apache.org/licenses/LICENSE-2.0
372 *
373 * Unless required by applicable law or agreed to in writing, software
374 * distributed under the License is distributed on an "AS IS" BASIS,
375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
376 * See the License for the specific language governing permissions and
377 * limitations under the License.
378 */function Ft(t){if(!t)throw d()}function Ut(t,e){function n(n,r){var i=St(t,r,e);return Ft(null!==i),i}return n}function Vt(t,e){function n(n,r){var i=Lt(t,e,r);return Ft(null!==i),i}return n}function Bt(t,e){function n(n,r){var i=St(t,r,e);return Ft(null!==i),Ct(i,r)}return n}function qt(t){function e(e,n){var r;return r=401===e.getStatus()?m():402===e.getStatus()?g(t.bucket):403===e.getStatus()?y(t.path):n,r.setServerResponseProp(n.serverResponseProp()),r}return e}function Ht(t){var e=qt(t);function n(n,r){var i=e(n,r);return 404===n.getStatus()&&(i=v(t.path)),i.setServerResponseProp(r.serverResponseProp()),i}return n}function Wt(t,e,n){var r=e.fullServerUrl(),i=gt(r),o="GET",a=t.maxOperationRetryTime,s=new jt(i,o,Ut(t,n),a);return s.errorHandler=Ht(e),s}function Gt(t,e,n,r,i){var o={};e.isRoot?o["prefix"]="":o["prefix"]=e.path+"/",n&&n.length>0&&(o["delimiter"]=n),r&&(o["pageToken"]=r),i&&(o["maxResults"]=i);var a=e.bucketOnlyServerUrl(),s=gt(a),u="GET",c=t.maxOperationRetryTime,l=ne
378w jt(s,u,Vt(t,e.bucket),c);return l.urlParams=o,l.errorHandler=qt(e),l}function Kt(t,e,n){var r=e.fullServerUrl(),i=gt(r),o="GET",a=t.maxOperationRetryTime,s=new jt(i,o,Bt(t,n),a);return s.errorHandler=Ht(e),s}function zt(t,e,n,r){var i=e.fullServerUrl(),o=gt(i),a="PATCH",s=At(n,r),u={"Content-Type":"application/json; charset=utf-8"},c=t.maxOperationRetryTime,l=new jt(o,a,Ut(t,r),c);return l.headers=u,l.body=s,l.errorHandler=Ht(e),l}function $t(t,e){var n=e.fullServerUrl(),r=gt(n),i="DELETE",o=t.maxOperationRetryTime;function a(t,e){}var s=new jt(r,i,a,o);return s.successCodes=[200,204],s.errorHandler=Ht(e),s}function Qt(t,e){return t&&t["contentType"]||e&&e.type()||"application/octet-stream"}function Yt(t,e,n){var r=Object.assign({},n);return r["fullPath"]=t.path,r["size"]=e.size(),r["contentType"]||(r["contentType"]=Qt(null,e)),r}function Xt(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"};function s(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}var u=s();a["Content-Type"]="multipart/related; boundary="+u;var c=Yt(e,r,i),l=At(c,n),h="--"+u+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+l+"\r\n--"+u+"\r\nContent-Type: "+c["contentType"]+"\r\n\r\n",f="\r\n--"+u+"--",p=lt.getBlob(h,r,f);if(null===p)throw I();var d={name:c["fullPath"]},v=gt(o),g="POST",m=t.maxUploadRetryTime,y=new jt(v,g,Ut(t,n),m);return y.urlParams=d,y.headers=a,y.body=p.uploadData(),y.errorHandler=qt(e),y}var Jt=function(){function t(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null}return t}();function Zt(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(i){Ft(!1)}var r=e||["active"];return Ft(!!n&&-1!==r.indexOf(n)),n}function te(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),a=Yt(e,r,i),s={name:a["fullPath"]},u=gt(o),c="POST",l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a["contentType"],"Content-Type":"application/json; charset=utf-8"},h=At(a,n),f=t.maxUploadRetryTime;function p(t){var e;Zt(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){Ft(!1)}return Ft(tt(e)),e}var d=new jt(u,c,p,f);return d.urlParams=s,d.headers=l,d.body=h,d.errorHandler=qt(e),d}function ee(t,e,n,r){var i={"X-Goog-Upload-Command":"query"};function o(t){var e=Zt(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){Ft(!1)}n||Ft(!1);var i=Number(n);return Ft(!isNaN(i)),new Jt(i,r.size(),"final"===e)}var a="POST",s=t.maxUploadRetryTime,u=new jt(n,a,o,s);return u.headers=i,u.errorHandler=qt(e),u}var ne=262144;function re(t,e,n,r,i,o,a,s){var u=new Jt(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw T();var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var h=u.current,f=h+l,p=l===c?"upload, finalize":"upload",d={"X-Goog-Upload-Command":p,"X-Goog-Upload-Offset":u.current},v=r.slice(h,f);if(null===v)throw I();function g(t,n){var i,a=Zt(t,["active","final"]),s=u.current+l,c=r.size();return i="final"===a?Ut(e,o)(t,n):null,new Jt(s,c,"final"===a,i)}var m="POST",y=e.maxUploadRetryTime,b=new jt(n,m,g,y);return b.headers=d,b.body=v.uploadData(),b.progressCallback=s||null,b.errorHandler=qt(t),b}
379/**
380 * @license
381 * Copyright 2017 Google LLC
382 *
383 * Licensed under the Apache License, Version 2.0 (the "License");
384 * you may not use this file except in compliance with the License.
385 * You may obtain a copy of the License at
386 *
387 *   http://www.apache.org/licenses/LICENSE-2.0
388 *
389 * Unless required by applicable law or agreed to in writing, software
390 * distributed under the License is distributed on an "AS IS" BASIS,
391 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
392 * See the License for the specific language governing permissions and
393 * limitations under the License.
394 */var ie=function(){function t(t,e,n){var r=Y(t)||$(e)||$(n);if(r)this.next=t,this.error=e||null,this.complete=n||null;else{var i=t;this.next=i.next||null,this.error=i.error||null,this.complete=i.complete||null}}return t}(),oe=function(){function t(t,e,n,r,i,o){this.bytesTransferred=t,this.totalBytes=e,this.state=n,this.metadata=r,this.task=i,this.ref=o}return t}();
395/**
396 * @license
397 * Copyright 2017 Google LLC
398 *
399 * Licensed under the Apache License, Version 2.0 (the "License");
400 * you may not use this file except in compliance with the License.
401 * You may obtain a copy of the License at
402 *
403 *   http://www.apache.org/licenses/LICENSE-2.0
404 *
405 * Unless required by applicable law or agreed to in writing, software
406 * distributed under the License is distributed on an "AS IS" BASIS,
407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
408 * See the License for the specific language governing permissions and
409 * limitations under the License.
410 */
411function ae(t,e,n){for(var r=e.length,i=e.length,o=0;o<e.length;o++)if(e[o].optional){r=o;break}var a=r<=n.length&&n.length<=i;if(!a)throw A(r,i,t,n.length);for(o=0;o<n.length;o++)try{e[o].validator(n[o])}catch(s){throw s instanceof Error?C(o,t,s.message):C(o,t,s)}}var se=function(){function t(t,e){var n=this;this.validator=function(e){n.optional&&!Q(e)||t(e)},this.optional=!!e}return t}();function ue(t,e){return function(n){t(n),e(n)}}function ce(t,e){function n(t){if(!tt(t))throw"Expected string."}var r;return r=t?ue(n,t):n,new se(r,e)}function le(){function t(t){var e=t instanceof Uint8Array||t instanceof ArrayBuffer||it()&&t instanceof Blob;if(!e)throw"Expected Blob or File."}return new se(t)}function he(t){return new se(Nt,t)}function fe(t){return new se(Mt,t)}function pe(){function t(t){var e=nt(t)&&t>=0;if(!e)throw"Expected a number 0 or greater."}return new se(t)}function de(t,e){function n(e){var n=null===e||$(e)&&e instanceof Object;if(!n)throw"Expected an Object.";void 0!==t&&null!==t&&t(e)}return new se(n,e)}function ve(t){function e(t){var e=null===t||Y(t);if(!e)throw"Expected a Function."}return new se(e,t)}
412/**
413 * @license
414 * Copyright 2017 Google LLC
415 *
416 * Licensed under the Apache License, Version 2.0 (the "License");
417 * you may not use this file except in compliance with the License.
418 * You may obtain a copy of the License at
419 *
420 *   http://www.apache.org/licenses/LICENSE-2.0
421 *
422 * Unless required by applicable law or agreed to in writing, software
423 * distributed under the License is distributed on an "AS IS" BASIS,
424 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
425 * See the License for the specific language governing permissions and
426 * limitations under the License.
427 */function ge(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Promise.resolve().then(function(){return t.apply(void 0,e)})}}
428/**
429 * @license
430 * Copyright 2017 Google LLC
431 *
432 * Licensed under the Apache License, Version 2.0 (the "License");
433 * you may not use this file except in compliance with the License.
434 * You may obtain a copy of the License at
435 *
436 *   http://www.apache.org/licenses/LICENSE-2.0
437 *
438 * Unless required by applicable law or agreed to in writing, software
439 * distributed under the License is distributed on an "AS IS" BASIS,
440 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
441 * See the License for the specific language governing permissions and
442 * limitations under the License.
443 */var me=function(){function t(t,e,n,r,i,o){var a=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=t,this.service_=e,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=G.RUNNING,this.errorHandler_=function(t){a.request_=null,a.chunkMultiplier_=1,t.codeEquals(f.CANCELED)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=t,a.transition_(G.ERROR))},this.metadataErrorHandler_=function(t){a.request_=null,t.codeEquals(f.CANCELED)?a.completeTransitions_():(a.error_=t,a.transition_(G.ERROR))},this.promise_=new Promise(function(t,e){a.resolve_=t,a.reject_=e,a.start_()}),this.promise_.then(null,function(){})}return t.prototype.makeProgressCallback_=function(){var t=this,e=this.transferred_;return function(n){return t.updateProgress_(e+n)}},t.prototype.shouldDoResumable_=function(t){return t.size()>262144},t.prototype.start_=function(){this.state_===G.RUNNING&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},t.prototype.resolveToken_=function(t){var e=this;this.service_.getAuthToken().then(function(n){switch(e.state_){case G.RUNNING:t
443(n);break;case G.CANCELING:e.transition_(G.CANCELED);break;case G.PAUSING:e.transition_(G.PAUSED);break}})},t.prototype.createResumable_=function(){var t=this;this.resolveToken_(function(e){var n=te(t.service_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then(function(e){t.request_=null,t.uploadUrl_=e,t.needToFetchStatus_=!1,t.completeTransitions_()},t.errorHandler_)})},t.prototype.fetchStatus_=function(){var t=this,e=this.uploadUrl_;this.resolveToken_(function(n){var r=ee(t.service_,t.location_,e,t.blob_),i=t.service_.makeRequest(r,n);t.request_=i,i.getPromise().then(function(e){e=e,t.request_=null,t.updateProgress_(e.current),t.needToFetchStatus_=!1,e.finalized&&(t.needToFetchMetadata_=!0),t.completeTransitions_()},t.errorHandler_)})},t.prototype.continueUpload_=function(){var t=this,e=ne*this.chunkMultiplier_,n=new Jt(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_(function(i){var o;try{o=re(t.location_,t.service_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(s){return t.error_=s,void t.transition_(G.ERROR)}var a=t.service_.makeRequest(o,i);t.request_=a,a.getPromise().then(function(e){t.increaseMultiplier_(),t.request_=null,t.updateProgress_(e.current),e.finalized?(t.metadata_=e.metadata,t.transition_(G.SUCCESS)):t.completeTransitions_()},t.errorHandler_)})},t.prototype.increaseMultiplier_=function(){var t=ne*this.chunkMultiplier_;t<33554432&&(this.chunkMultiplier_*=2)},t.prototype.fetchMetadata_=function(){var t=this;this.resolveToken_(function(e){var n=Wt(t.service_,t.location_,t.mappings_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then(function(e){t.request_=null,t.metadata_=e,t.transition_(G.SUCCESS)},t.metadataErrorHandler_)})},t.prototype.oneShotUpload_=function(){var t=this;this.resolveToken_(function(e){var n=Xt(t.service_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then(function(e){t.request_=null,t.metadata_=e,t.updateProgress_(t.blob_.size()),t.transition_(G.SUCCESS)},t.errorHandler_)})},t.prototype.updateProgress_=function(t){var e=this.transferred_;this.transferred_=t,this.transferred_!==e&&this.notifyObservers_()},t.prototype.transition_=function(t){if(this.state_!==t)switch(t){case G.CANCELING:this.state_=t,null!==this.request_&&this.request_.cancel();break;case G.PAUSING:this.state_=t,null!==this.request_&&this.request_.cancel();break;case G.RUNNING:var e=this.state_===G.PAUSED;this.state_=t,e&&(this.notifyObservers_(),this.start_());break;case G.PAUSED:this.state_=t,this.notifyObservers_();break;case G.CANCELED:this.error_=_(),this.state_=t,this.notifyObservers_();break;case G.ERROR:this.state_=t,this.notifyObservers_();break;case G.SUCCESS:this.state_=t,this.notifyObservers_();break}},t.prototype.completeTransitions_=function(){switch(this.state_){case G.PAUSING:this.transition_(G.PAUSED);break;case G.CANCELING:this.transition_(G.CANCELED);break;case G.RUNNING:this.start_();break}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=z(this.state_);return new oe(this.transferred_,this.blob_.size(),t,this.metadata_,this,this.ref_)},enumerable:!1,configurable:!0}),t.prototype.on=function(t,e,n,r){function i(){if(t!==W.STATE_CHANGED)throw"Expected one of the event types: ["+W.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=ve(!0).validator,s=de(null,!0).validator;function u(t){try{return void a(t)}catch(n){}try{s(t);var e=Q(t["next"])||Q(t["error"])||Q(t["complete"]);if(!e)throw"";return}catch(n){throw o}}var c=[ce(i),de(u,!0),ve(!0),ve(!0)];ae("on",c,arguments);var l=this;function h(t){function e(e,n,i){null!==t&&ae("on",t,arguments);var o=new ie(e,n,r);return l.addObserver_(o),function(){l.removeObserver_(o)}}return e}function f(t){if(null===t)throw o;u(t)}var p=[de(f),ve(!0),ve(!0)],d=!(Q(e)||Q(n)||Q(r));return d?h(p):h(null)(e,n,r)},t.prototype.then=function(t,e){return this.promise_.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.addObserver_=function(t){this.observers_.push(t),this.notifyObserver_(t)},t.prototype.removeObserver_=function(t){var e=this.observers_.indexOf(t);-1!==e&&this.observers_.splice(e,1)},t.prototype.notifyObservers_=function(){var t=this;this.finishPromise_();var e=this.observers_.slice();e.forEach(function(e){t.notifyObserver_(e)})},t.prototype.finishPromise_=function(){if(null!==this.resolve_){var t=!0;switch(z(this.state_)){case K.SUCCESS:ge(this.resolve_.bind(null,this.snapshot))();break;case K.CANCELED:case K.ERROR:var e=this.reject_;ge(e.bind(null,this.error_))();break;default:t=!1;break}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){var e=z(this.state_);switch(e){case K.RUNNING:case K.PAUSED:t.next&&ge(t.next.bind(t,this.snapshot))();break;case K.SUCCESS:t.complete&&ge(t.complete.bind(t))();break;case K.CANCELED:case K.ERROR:t.error&&ge(t.error.bind(t,this.error_))();break;default:t.error&&ge(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){ae("resume",[],arguments);var t=this.state_===G.PAUSED||this.state_===G.PAUSING;return t&&this.transition_(G.RUNNING),t},t.prototype.pause=function(){ae("pause",[],arguments);var t=this.state_===G.RUNNING;return t&&this.transition_(G.PAUSING),t},t.prototype.cancel=function(){ae("cancel",[],arguments);var t=this.state_===G.RUNNING||this.state_===G.PAUSING;return t&&this.transition_(G.CANCELING),t},t}(),ye=function(){function t(t,e){this.service=t,this.location=e instanceof ht?e:ht.makeFromUrl(e)}return t.prototype.toString=function(){return ae("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},t.prototype.newRef=function(e,n){return new t(e,n)},t.prototype.mappings=function(){return Et()},t.prototype.child=function(t){ae("child",[ce()],arguments);var e=dt(this.location.path,t),n=new ht(this.location.bucket,e);return this.newRef(this.service,n)},Object.defineProperty(t.prototype,"parent",{get:function(){var t=pt(this.location.path);if(null===t)return null;var e=new ht(this.location.bucket,t);return this.newRef(this.service,e)}
443,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new ht(this.location.bucket,"");return this.newRef(this.service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return vt(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),t.prototype.put=function(t,e){return void 0===e&&(e=null),ae("put",[le(),he(!0)],arguments),this.throwIfRoot_("put"),new me(this,this.service,this.location,this.mappings(),new lt(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=D.RAW),ae("putString",[ce(),ce(R,!0),he(!0)],arguments),this.throwIfRoot_("putString");var r=L(e,t),i=Object.assign({},n);return!$(i["contentType"])&&$(r.contentType)&&(i["contentType"]=r.contentType),new me(this,this.service,this.location,this.mappings(),new lt(r.data,!0),i)},t.prototype.delete=function(){var t=this;return ae("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then(function(e){var n=$t(t.service,t.location);return t.service.makeRequest(n,e).getPromise()})},t.prototype.listAll=function(){ae("listAll",[],arguments);var t={prefixes:[],items:[]};return this.listAllHelper(t).then(function(){return t})},t.prototype.listAllHelper=function(t,e){return Object(o["__awaiter"])(this,void 0,void 0,function(){var n,r,i,a;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:return n={pageToken:e},[4,this.list(n)];case 1:return r=o.sent(),(i=t.prefixes).push.apply(i,r.prefixes),(a=t.items).push.apply(a,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(t,r.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},t.prototype.list=function(t){ae("list",[fe(!0)],arguments);var e=this;return this.service.getAuthToken().then(function(n){var r=t||{},i=Gt(e.service,e.location,"/",r.pageToken,r.maxResults);return e.service.makeRequest(i,n).getPromise()})},t.prototype.getMetadata=function(){var t=this;return ae("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then(function(e){var n=Wt(t.service,t.location,t.mappings());return t.service.makeRequest(n,e).getPromise()})},t.prototype.updateMetadata=function(t){var e=this;return ae("updateMetadata",[he()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then(function(n){var r=zt(e.service,e.location,t,e.mappings());return e.service.makeRequest(r,n).getPromise()})},t.prototype.getDownloadURL=function(){var t=this;return ae("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then(function(e){var n=Kt(t.service,t.location,t.mappings());return t.service.makeRequest(n,e).getPromise().then(function(t){if(null===t)throw S();return t})})},t.prototype.throwIfRoot_=function(t){if(""===this.location.path)throw k(t)},t}(),be=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}();
444/**
445 * @license
446 * Copyright 2019 Google LLC
447 *
448 * Licensed under the Apache License, Version 2.0 (the "License");
449 * you may not use this file except in compliance with the License.
450 * You may obtain a copy of the License at
451 *
452 *   http://www.apache.org/licenses/LICENSE-2.0
453 *
454 * Unless required by applicable law or agreed to in writing, software
455 * distributed under the License is distributed on an "AS IS" BASIS,
456 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
457 * See the License for the specific language governing permissions and
458 * limitations under the License.
459 */
460/**
461 * @license
462 * Copyright 2017 Google LLC
463 *
464 * Licensed under the Apache License, Version 2.0 (the "License");
465 * you may not use this file except in compliance with the License.
466 * You may obtain a copy of the License at
467 *
468 *   http://www.apache.org/licenses/LICENSE-2.0
469 *
470 * Unless required by applicable law or agreed to in writing, softw
470are
471 * distributed under the License is distributed on an "AS IS" BASIS,
472 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
473 * See the License for the specific language governing permissions and
474 * limitations under the License.
475 */
476function _e(t,e,n){var r=1,i=null,a=!1,s=0;function u(){return 2===s}var c=!1;function l(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];c||(c=!0,e.apply(null,t))}function h(e){i=setTimeout(function(){i=null,t(f,u())},e)}function f(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!c)if(t)l.call.apply(l,Object(o["__spreadArrays"])([null,t],e));else{var i,f=u()||a;if(f)l.call.apply(l,Object(o["__spreadArrays"])([null,t],e));else r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),h(i)}}var p=!1;function d(t){p||(p=!0,c||(null!==i?(t||(s=2),clearTimeout(i),h(0)):t||(s=1)))}return h(0),setTimeout(function(){a=!0,d(!0)},n),d}function we(t){t(!1)}
477/**
478 * @license
479 * Copyright 2017 Google LLC
480 *
481 * Licensed under the Apache License, Version 2.0 (the "License");
482 * you may not use this file except in compliance with the License.
483 * You may obtain a copy of the License at
484 *
485 *   http://www.apache.org/licenses/LICENSE-2.0
486 *
487 * Unless required by applicable law or agreed to in writing, software
488 * distributed under the License is distributed on an "AS IS" BASIS,
489 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
490 * See the License for the specific language governing permissions and
491 * limitations under the License.
492 */var Ee=function(){function t(t,e,n,r,i,o,a,s,u,c,l){var h=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=u,this.pool_=l,this.promise_=new Promise(function(t,e){h.resolve_=t,h.reject_=e,h.start_()})}return t.prototype.start_=function(){var t=this;function e(e,n){if(n)e(!1,new Ie(!1,null,!0));else{var r=t.pool_.createXhrIo();t.pendingXhr_=r,null!==t.progressCallback_&&r.addUploadProgressListener(i),r.send(t.url_,t.method_,t.body_,t.headers_).then(function(n){null!==t.progressCallback_&&n.removeUploadProgressListener(i),t.pendingXhr_=null,n=n;var r=n.getErrorCode()===H.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var a=-1!==t.successCodes_.indexOf(o);e(!0,new Ie(a,n))}else{var s=n.getErrorCode()===H.ABORT;e(!1,new Ie(!1,null,s))}})}function i(e){var n=e.loaded,r=e.lengthComputable?e.total:-1;null!==t.progressCallback_&&t.progressCallback_(n,r)}}function n(e,n){var r=t.resolve_,i=t.reject_,o=n.xhr;if(n.wasSuccessCode)try{var a=t.callback_(o,o.getResponseText());Q(a)?r(a):r()}catch(u){i(u)}else if(null!==o){var s=d();s.setServerResponseProp(o.getResponseText()),t.errorCallback_?i(t.errorCallback_(o,s)):i(s)}else if(n.canceled){s=t.appDelete_?N():_();i(s)}else{s=b();i(s)}}this.canceled_?n(!1,new Ie(!1,null,!0)):this.backoffId_=_e(e,n,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&we(this.backoffId_),null!==this.pendingXhr_&&this.pendingXhr_.abort()},t.prototype.isRetryStatusCode_=function(t){var e=t>=500&&t<600,n=[408,429],r=-1!==n.indexOf(t),i=-1!==this.additionalRetryCodes_.indexOf(t);return e||r||i},t}(),Ie=function(){function t(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n}return t}();function Te(t,e){null!==e&&e.length>0&&(t["Authorization"]="Firebase "+e)}function Se(t){var e="undefined"!==typeof i.a?i.a.SDK_VERSION:"AppManager";t["X-Firebase-Storage-Version"]="webjs/"+e}function Ce(t,e){e&&(t["X-Firebase-GMPID"]=e)}function Ae(t,e,n,r){var i=mt(t.urlParams),o=t.url+i,a=Object.assign({},t.headers);return Ce(a,e),Te(a,n),Se(a),new Ee(o,t.method,a,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r)}
493/**
494 * @license
495 * Copyright 2017 Google LLC
496 *
497 * Licensed under the Apache License, Version 2.0 (the "License");
498 * you may not use this file except in compliance with the License.
499 * You may obtain a copy of the License at
500 *
501 *   http://www.apache.org/licenses/LICENSE-2.0
502 *
503 * Unless required by applicable law or agreed to in writing, software
504 * distributed under the License is distributed on an "AS IS" BASIS,
505 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
506 * See the License for the specific language governing permissions and
507 * limitations under the License.
508 */var Ne=function(){function t(e,n,r,i){var o;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,this.authProvider_=n,this.maxOperationRetryTime_=c,this.maxUploadRetryTime_=l,this.requests_=new Set,this.pool_=r,this.bucket_=null!=i?ht.makeFromBucketSpec(i):t.extractBucket_(null===(o=this.app_)||void 0===o?void 0:o.options),this.internals_=new ke(this)}return t.extractBucket_=function(t){var e=null===t||void 0===t?void 0:t[u];return null==e?null:ht.makeFromBucketSpec(e)},t.prototype.getAuthToken=function(){return Object(o["__awaiter"])(this,void 0,void 0,function(){var t,e;return Object(o["__generator"])(this,function(n){switch(n.label){case 0:return t=this.authProvider_.getImmediate({optional:!0}),t?[4,t.getToken()]:[3,2];case 1:if(e=n.sent(),null!==e)return[2,e.accessToken];n.label=2;case 2:return[2,null]}})})},t.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach(function(t){return t.cancel()}),this.requests_.clear()},t.prototype.makeStorageReference=function(t){return new ye(this,t)},t.prototype.makeRequest=function(t,e){var n=this;if(this.deleted_)return new be(N());var r=Ae(t,this.appId_,e,this.pool_);return this.requests_.add(r),r.getPromise().then(function(){return n.requests_.delete(r)},function(){return n.requests_.delete(r)}),r},t.prototype.ref=function(t){function e(t){if("string"!==typeof t)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(t))throw"Expected child path but got a URL, use refFromURL instead."}if(ae("ref",[ce(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new ye(this,this.bucket_);return null!=t?n.child(t):n},t.prototype.refFromURL=function(t){function e(t){if("string"!==typeof t)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(t))throw"Expected full URL but got a child path, use ref instead.";try{ht.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return ae("refFromURL",[ce(e,!1)],arguments),new ye(this,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){ae("setMaxUploadRetryTime",[pe()],arguments),this.maxUploadRetryTime_=t},Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),t.prototype.setMaxOperationRetryTime=function(t){ae("setMaxOperationRetryTime",[pe()],arguments),this.maxOperationRetryTime_=t},Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),t}(),ke=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},t}(),Oe="@firebase/storage",xe="0.3.43",De="storage";function Re(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return new Ne(n,r,new at,e)}function Pe(t){var e={TaskState:K,TaskEvent:W,StringFormat:D,Storage:Ne,Reference:ye};t.INTERNAL.registerComponent(new a["Component"](De,Re,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion(Oe,xe)}Pe(i.a)},"2fdb":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"31f4":function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"33a4":function(t,e,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;
508t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},3523:function(t,e,n){"use strict";(function(r){Object.defineProperty(e,"__esModule",{value:!0});var i=n("c23d"),o=n("9ab4"),a=n("cd51"),s=n("abfd"),u=n("4be4");function c(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var l=c(i),h=function(){function t(t){this.domStorage_=t,this.prefix_="firebase:"}return t.prototype.set=function(t,e){null==e?this.domStorage_.removeItem(this.prefixedName_(t)):this.domStorage_.setItem(this.prefixedName_(t),a.stringify(e))},t.prototype.get=function(t){var e=this.domStorage_.getItem(this.prefixedName_(t));return null==e?null:a.jsonEval(e)},t.prototype.remove=function(t){this.domStorage_.removeItem(this.prefixedName_(t))},t.prototype.prefixedName_=function(t){return this.prefix_+t},t.prototype.toString=function(){return this.domStorage_.toString()},t}(),f=function(){function t(){this.cache_={},this.isInMemoryStorage=!0}return t.prototype.set=function(t,e){null==e?delete this.cache_[t]:this.cache_[t]=e},t.prototype.get=function(t){return a.contains(this.cache_,t)?this.cache_[t]:null},t.prototype.remove=function(t){delete this.cache_[t]},t}(),p=function(t){try{if("undefined"!==typeof window&&"undefined"!==typeof window[t]){var e=window[t];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new h(e)}}catch(n){}return new f},d=p("localStorage"),v=p("sessionStorage"),g=new s.Logger("@firebase/database"),m=function(){var t=1;return function(){return t++}}(),y=function(t){var e=a.stringToByteArray(t),n=new a.Sha1;n.update(e);var r=n.digest();return a.base64.encodeByteArray(r)},b=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n="",r=0;r<t.length;r++){var i=t[r];Array.isArray(i)||i&&"object"===typeof i&&"number"===typeof i.length?n+=b.apply(null,i):n+="object"===typeof i?a.stringify(i):i,n+=" "}return n},_=null,w=!0,E=function(t,e){a.assert(!e||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?(g.logLevel=s.LogLevel.VERBOSE,_=g.log.bind(g),e&&v.set("logging_enabled",!0)):"function"===typeof t?_=t:(_=null,v.remove("logging_enabled"))},I=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!0===w&&(w=!1,null===_&&!0===v.get("logging_enabled")&&E(!0)),_){var n=b.apply(null,t);_(n)}},T=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];I.apply(void 0,o.__spread([t],e))}},S=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE INTERNAL ERROR: "+b.apply(void 0,o.__spread(t));g.error(n)},C=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE FATAL ERROR: "+b.apply(void 0,o.__spread(t));throw g.error(n),new Error(n)},A=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="FIREBASE WARNING: "+b.apply(void 0,o.__spread(t));g.warn(n)},N=function(){"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&A("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},k=function(t){return"number"===typeof t&&(t!==t||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY)},O=function(t){if(a.isNodeSdk()||"complete"===document.readyState)t();else{var e=!1,n=function(){document.body?e||(e=!0,t()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}},x="[MIN_NAME]",D="[MAX_NAME]",R=function(t,e){if(t===e)return 0;if(t===x||e===D)return-1;if(e===x||t===D)return 1;var n=W(t),r=W(e);return null!==n?null!==r?n-r===0?t.length-e.length:n-r:-1:null!==r?1:t<e?-1:1},P=function(t,e){return t===e?0:t<e?-1:1},L=function(t,e){if(e&&t in e)return e[t];throw new Error("Missing required key ("+t+") in object: "+a.stringify(e))},M=function(t){if("object"!==typeof t||null===t)return a.stringify(t);var e=[];for(var n in t)e.push(n);e.sort();for(var r="{",i=0;i<e.length;i++)0!==i&&(r+=","),r+=a.stringify(e[i]),r+=":",r+=M(t[e[i]]);return r+="}",r},j=function(t,e){var n=t.length;if(n<=e)return[t];for(var r=[],i=0;i<n;i+=e)i+e>n?r.push(t.substring(i,n)):r.push(t.substring(i,i+e));return r};
509/**
510 * @license
511 * Copyright 2017 Google LLC
512 *
513 * Licensed under the Apache License, Version 2.0 (the "License");
514 * you may not use this file except in compliance with the License.
515 * You may obtain a copy of the License at
516 *
517 *   http://www.apache.org/licenses/LICENSE-2.0
518 *
519 * Unless required by applicable law or agreed to in writing, software
520 * distributed under the License is distributed on an "AS IS" BASIS,
521 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
522 * See the License for the specific language governing permissions and
523 * limitations under the License.
524 */function F(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])}var U=function(t){a.assert(!k(t),"Invalid JSON number");var e,n,r,i,o,s=11,u=52,c=(1<<s-1)-1;0===t?(n=0,r=0,e=1/t===-1/0?1:0):(e=t<0,t=Math.abs(t),t>=Math.pow(2,1-c)?(i=Math.min(Math.floor(Math.log(t)/Math.LN2),c),n=i+c,r=Math.round(t*Math.pow(2,u-i)-Math.pow(2,u))):(n=0,r=Math.round(t/Math.pow(2,1-c-u))));var l=[];for(o=u;o;o-=1)l.push(r%2?1:0),r=Math.floor(r/2);for(o=s;o;o-=1)l.push(n%2?1:0),n=Math.floor(n/2);l.push(e?1:0),l.reverse();var h=l.join(""),f="";for(o=0;o<64;o+=8){var p=parseInt(h.substr(o,8),2).toString(16);1===p.length&&(p="0"+p),f+=p}return f.toLowerCase()},V=function(){return!("object"!==typeof window||!window["chrome"]||!window["chrome"]["extension"]||/^chrome/.test(window.location.href))},B=function(){return"object"===typeof Windows&&"object"===typeof Windows.UI},q=function(t,e){var n="Unknown Error";"too_big"===t?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===t?n="Client doesn't have permission to access the desired data.":"unavailable"===t&&(n="The service is unavailable");var r=new Error(t+" at "+e.path.toString()+": "+n);return r.code=t.toUpperCase(),r},H=new RegExp("^-?(0*)\\d{1,10}$"),W=function(t){if(H.test(t)){var e=Number(t);if(e>=-2147483648&&e<=2147483647)return e}return null},G=function(t){try{t()}catch(e){setTimeout(function(){var t=e.stack||"";throw A("Exception was thrown by user callback.",t),e},Math.floor(0))}},K=function(){var t="object"===typeof window&&window["navigator"]&&window["navigator"]["userAgent"]||"";return t.search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},z=function(t,e){var n=setTimeout(t,e);return"object"===typeof n&&n["unref"]&&n["unref"](),n},$=function(){function t(t,e){if(void 0===e){this.pieces_=t.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=t,this.pieceNum_=e}return Object.defineProperty(t,"Empty",{get:function(){return new t("")},enumerable:!1,configurable:!0}),t.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},t.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},t.prototype.popFront=function(){var e=this.pieceNum_;return e<this.pieces_.length&&e++,new t(this.pieces_,e)},t.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},t.prototype.toString=function(){for(var t="",e=this.pieceNum_;e<this.pieces_.length;e++)""!==this.pieces_[e]&&(t+="/"+this.pieces_[e]);return t||"/"},t.prototype.toUrlEncodedString=function(){for(var t="",e=this.pieceNum_;e<this.pieces_.length;e++)""!==this.pieces_[e]&&(t+="/"+encodeURIComponent(String(this.pieces_[e])));return t||"/"},t.prototype.slice=function(t){return void 0===t&&(t=0),this.pieces_.slice(this.pieceNum_+t)},t.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var e=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)e.push(this.pieces_[n]);return new t(e,0)},t.prototype.child=function(e){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(e instanceof t)for(r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);else{var i=e.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new t(n,0)},t.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},t.relativePath=function(e,n){var r=e.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return t.relativePath(e.popFront(),n.popFront());
524throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+e+")")},t.comparePaths=function(t,e){for(var n=t.slice(),r=e.slice(),i=0;i<n.length&&i<r.length;i++){var o=R(n[i],r[i]);if(0!==o)return o}return n.length===r.length?0:n.length<r.length?-1:1},t.prototype.equals=function(t){if(this.getLength()!==t.getLength())return!1;for(var e=this.pieceNum_,n=t.pieceNum_;e<=this.pieces_.length;e++,n++)if(this.pieces_[e]!==t.pieces_[n])return!1;return!0},t.prototype.contains=function(t){var e=this.pieceNum_,n=t.pieceNum_;if(this.getLength()>t.getLength())return!1;while(e<this.pieces_.length){if(this.pieces_[e]!==t.pieces_[n])return!1;++e,++n}return!0},t}(),Q=function(){function t(t,e){this.errorPrefix_=e,this.parts_=t.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=a.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(t,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!1,configurable:!0}),Object.defineProperty(t,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!1,configurable:!0}),t.prototype.push=function(t){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(t),this.byteLength_+=a.stringLength(t),this.checkValid_()},t.prototype.pop=function(){var t=this.parts_.pop();this.byteLength_-=a.stringLength(t),this.parts_.length>0&&(this.byteLength_-=1)},t.prototype.checkValid_=function(){if(this.byteLength_>t.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+t.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>t.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+t.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},t.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},t}(),Y="5",X="v",J="s",Z="r",tt="f",et="firebaseio.com",nt="ls",rt="p",it="websocket",ot="long_polling",at=function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=!1),void 0===o&&(o=""),void 0===a&&(a=!1),this.secure=e,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this.host=t.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=d.get("host:"+t)||this.host}return t.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},t.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},t.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},t.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},t.prototype.updateHost=function(t){t!==this.internalHost&&(this.internalHost=t,this.isCacheableHost()&&d.set("host:"+this.host,this.internalHost))},t.prototype.connectionURL=function(t,e){var n;if(a.assert("string"===typeof t,"typeof type must == string"),a.assert("object"===typeof e,"typeof params must == object"),t===it)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(t!==ot)throw new Error("Unknown connection type: "+t);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(e["ns"]=this.namespace);var r=[];return F(e,function(t,e){r.push(t+"="+e)}),n+r.join("&")},t.prototype.toString=function(){var t=this.toURLString();return this.persistenceKey&&(t+="<"+this.persistenceKey+">"),t},t.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},t}();
525/**
526 * @license
527 * Copyright 2017 Google LLC
528 *
529 * Licensed under the Apache License, Version 2.0 (the "License");
530 * you may not use this file except in compliance with the License.
531 * You may obtain a copy of the License at
532 *
533 *   http://www.apache.org/licenses/LICENSE-2.0
534 *
535 * Unless required by applicable law or agreed to in writing, software
536 * distributed under the License is distributed on an "AS IS" BASIS,
537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
538 * See the License for the specific language governing permissions and
539 * limitations under the License.
540 */
541function st(t){for(var e="",n=t.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(o){}e+="/"+i}return e}function ut(t){var e,n,r={};"?"===t.charAt(0)&&(t=t.substring(1));try{for(var i=o.__values(t.split("&")),a=i.next();!a.done;a=i.next()){var s=a.value;if(0!==s.length){var u=s.split("=");
5412===u.length?r[decodeURIComponent(u[0])]=decodeURIComponent(u[1]):A("Invalid query segment '"+s+"' in query '"+t+"'")}}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}var ct,lt,ht=function(t,e){var n=ft(t),r=n.namespace;"firebase.com"===n.domain&&C(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||C("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||N();var i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new at(n.host,n.secure,r,e,i,"",r!==n.subdomain),path:new $(n.pathString)}},ft=function(t){var e="",n="",r="",i="",o="",a=!0,s="https",u=443;if("string"===typeof t){var c=t.indexOf("//");c>=0&&(s=t.substring(0,c-1),t=t.substring(c+2));var l=t.indexOf("/");-1===l&&(l=t.length);var h=t.indexOf("?");-1===h&&(h=t.length),e=t.substring(0,Math.min(l,h)),l<h&&(i=st(t.substring(l,h)));var f=ut(t.substring(Math.min(t.length,h)));c=e.indexOf(":"),c>=0?(a="https"===s||"wss"===s,u=parseInt(e.substring(c+1),10)):c=e.length;var p=e.slice(0,c);if("localhost"===p.toLowerCase())n="localhost";else if(p.split(".").length<=2)n=p;else{var d=e.indexOf(".");r=e.substring(0,d).toLowerCase(),n=e.substring(d+1),o=r}"ns"in f&&(o=f["ns"])}return{host:e,port:u,domain:n,subdomain:r,secure:a,scheme:s,pathString:i,namespace:o}},pt=/[\[\].#$\/\u0000-\u001F\u007F]/,dt=/[\[\].#$\u0000-\u001F\u007F]/,vt=10485760,gt=function(t){return"string"===typeof t&&0!==t.length&&!pt.test(t)},mt=function(t){return"string"===typeof t&&0!==t.length&&!dt.test(t)},yt=function(t){return t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),mt(t)},bt=function(t){return null===t||"string"===typeof t||"number"===typeof t&&!k(t)||t&&"object"===typeof t&&a.contains(t,".sv")},_t=function(t,e,n,r,i){i&&void 0===n||wt(a.errorPrefix(t,e,i),n,r)},wt=function(t,e,n){var r=n instanceof $?new Q(n,t):n;if(void 0===e)throw new Error(t+"contains undefined "+r.toErrorString());if("function"===typeof e)throw new Error(t+"contains a function "+r.toErrorString()+" with contents = "+e.toString());if(k(e))throw new Error(t+"contains "+e.toString()+" "+r.toErrorString());if("string"===typeof e&&e.length>vt/3&&a.stringLength(e)>vt)throw new Error(t+"contains a string greater than "+vt+" utf8 bytes "+r.toErrorString()+" ('"+e.substring(0,50)+"...')");if(e&&"object"===typeof e){var i=!1,o=!1;if(F(e,function(e,n){if(".value"===e)i=!0;else if(".priority"!==e&&".sv"!==e&&(o=!0,!gt(e)))throw new Error(t+" contains an invalid key ("+e+") "+r.toErrorString()+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(e),wt(t,n,r),r.pop()}),i&&o)throw new Error(t+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},Et=function(t,e){var n,r;for(n=0;n<e.length;n++){r=e[n];for(var i=r.slice(),o=0;o<i.length;o++)if(".priority"===i[o]&&o===i.length-1);else if(!gt(i[o]))throw new Error(t+"contains an invalid key ("+i[o]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}e.sort($.comparePaths);var a=null;for(n=0;n<e.length;n++){if(r=e[n],null!==a&&a.contains(r))throw new Error(t+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}},It=function(t,e,n,r,i){if(!i||void 0!==n){var o=a.errorPrefix(t,e,i);if(!n||"object"!==typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var s=[];F(n,function(t,e){var n=new $(t);if(wt(o,e,r.child(n)),".priority"===n.getBack()&&!bt(e))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(n)}),Et(o,s)}},Tt=function(t,e,n,r){if(!r||void 0!==n){if(k(n))throw new Error(a.errorPrefix(t,e,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!bt(n))throw new Error(a.errorPrefix(t,e,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},St=function(t,e,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(a.errorPrefix(t,e,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},Ct=function(t,e,n,r){if((!r||void 0!==n)&&!gt(n))throw new Error(a.errorPrefix(t,e,r)+'was an invali
541d key = "'+n+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},At=function(t,e,n,r){if((!r||void 0!==n)&&!mt(n))throw new Error(a.errorPrefix(t,e,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Nt=function(t,e,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),At(t,e,n,r)},kt=function(t,e){if(".info"===e.getFront())throw new Error(t+" failed = Can't modify data under /.info/")},Ot=function(t,e,n){var r=n.path.toString();if("string"!==typeof n.repoInfo.host||0===n.repoInfo.host.length||!gt(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!yt(r))throw new Error(a.errorPrefix(t,e,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},xt=function(t,e,n,r){if((!r||void 0!==n)&&"boolean"!==typeof n)throw new Error(a.errorPrefix(t,e,r)+"must be a boolean.")},Dt=function(){function t(t,e){this.repo_=t,this.path_=e}return t.prototype.cancel=function(t){a.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),a.validateCallback("OnDisconnect.cancel",1,t,!0);var e=new a.Deferred;return this.repo_.onDisconnectCancel(this.path_,e.wrapCallback(t)),e.promise},t.prototype.remove=function(t){a.validateArgCount("OnDisconnect.remove",0,1,arguments.length),kt("OnDisconnect.remove",this.path_),a.validateCallback("OnDisconnect.remove",1,t,!0);var e=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,null,e.wrapCallback(t)),e.promise},t.prototype.set=function(t,e){a.validateArgCount("OnDisconnect.set",1,2,arguments.length),kt("OnDisconnect.set",this.path_),_t("OnDisconnect.set",1,t,this.path_,!1),a.validateCallback("OnDisconnect.set",2,e,!0);var n=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,t,n.wrapCallback(e)),n.promise},t.prototype.setWithPriority=function(t,e,n){a.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),kt("OnDisconnect.setWithPriority",this.path_),_t("OnDisconnect.setWithPriority",1,t,this.path_,!1),Tt("OnDisconnect.setWithPriority",2,e,!1),a.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new a.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,t,e,r.wrapCallback(n)),r.promise},t.prototype.update=function(t,e){if(a.validateArgCount("OnDisconnect.update",1,2,arguments.length),kt("OnDisconnect.update",this.path_),Array.isArray(t)){for(var n={},r=0;r<t.length;++r)n[""+r]=t[r];t=n,A("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}It("OnDisconnect.update",1,t,this.path_,!1),a.validateCallback("OnDisconnect.update",2,e,!0);var i=new a.Deferred;return this.repo_.onDisconnectUpdate(this.path_,t,i.wrapCallback(e)),i.promise},t}(),Rt=function(){function t(t,e){this.committed=t,this.snapshot=e}return t.prototype.toJSON=function(){return a.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},t}(),Pt=function(){var t="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",e=0,n=[];return function(r){var i,o=r===e;e=r;var s=new Array(8);for(i=7;i>=0;i--)s[i]=t.charAt(r%64),r=Math.floor(r/64);a.assert(0===r,"Cannot push at time == 0");var u=s.join("");if(o){for(i=11;i>=0&&63===n[i];i--)n[i]=0;n[i]++}else for(i=0;i<12;i++)n[i]=Math.floor(64*Math.random());for(i=0;i<12;i++)u+=t.charAt(n[i]);return a.assert(20===u.length,"nextPushId: Length should be 20."),u}}(),Lt=function(){function t(t,e){this.name=t,this.node=e}return t.Wrap=function(e,n){return new t(e,n)},t}(),Mt=function(){function t(){}return t.prototype.getCompare=function(){return this.compare.bind(this)},t.prototype.indexedValueChanged=function(t,e){var n=new Lt(x,t),r=new Lt(x,e);return 0!==this.compare(n,r)},t.prototype.minPost=function(){return Lt.MIN},t}(),jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),Object.defineProperty(e,"__EMPTY_NODE",{get:function(){return ct},set:function(t){ct=t}
541,enumerable:!1,configurable:!0}),e.prototype.compare=function(t,e){return R(t.name,e.name)},e.prototype.isDefinedOn=function(t){throw a.assertionError("KeyIndex.isDefinedOn not expected to be called.")},e.prototype.indexedValueChanged=function(t,e){return!1},e.prototype.minPost=function(){return Lt.MIN},e.prototype.maxPost=function(){return new Lt(D,ct)},e.prototype.makePost=function(t,e){return a.assert("string"===typeof t,"KeyIndex indexValue must always be a string."),new Lt(t,ct)},e.prototype.toString=function(){return".key"},e}(Mt),Ft=new jt;function Ut(t){lt=t}var Vt,Bt,qt,Ht=function(t){return"number"===typeof t?"number:"+U(t):"string:"+t},Wt=function(t){if(t.isLeafNode()){var e=t.val();a.assert("string"===typeof e||"number"===typeof e||"object"===typeof e&&a.contains(e,".sv"),"Priority must be a string or number.")}else a.assert(t===lt||t.isEmpty(),"priority of unexpected type.");a.assert(t===lt||t.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Gt=function(){function t(e,n){void 0===n&&(n=t.__childrenNodeConstructor.EMPTY_NODE),this.value_=e,this.priorityNode_=n,this.lazyHash_=null,a.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Wt(this.priorityNode_)}return Object.defineProperty(t,"__childrenNodeConstructor",{get:function(){return Vt},set:function(t){Vt=t},enumerable:!1,configurable:!0}),t.prototype.isLeafNode=function(){return!0},t.prototype.getPriority=function(){return this.priorityNode_},t.prototype.updatePriority=function(e){return new t(this.value_,e)},t.prototype.getImmediateChild=function(e){return".priority"===e?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.getChild=function(e){return e.isEmpty()?this:".priority"===e.getFront()?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.hasChild=function(){return!1},t.prototype.getPredecessorChildName=function(t,e){return null},t.prototype.updateImmediateChild=function(e,n){return".priority"===e?this.updatePriority(n):n.isEmpty()&&".priority"!==e?this:t.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,n).updatePriority(this.priorityNode_)},t.prototype.updateChild=function(e,n){var r=e.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(a.assert(".priority"!==r||1===e.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,t.__childrenNodeConstructor.EMPTY_NODE.updateChild(e.popFront(),n)))},t.prototype.isEmpty=function(){return!1},t.prototype.numChildren=function(){return 0},t.prototype.forEachChild=function(t,e){return!1},t.prototype.val=function(t){return t&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},t.prototype.hash=function(){if(null===this.lazyHash_){var t="";this.priorityNode_.isEmpty()||(t+="priority:"+Ht(this.priorityNode_.val())+":");var e=typeof this.value_;t+=e+":",t+="number"===e?U(this.value_):this.value_,this.lazyHash_=y(t)}return this.lazyHash_},t.prototype.getValue=function(){return this.value_},t.prototype.compareTo=function(e){return e===t.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof t.__childrenNodeConstructor?-1:(a.assert(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))},t.prototype.compareToLeafNode_=function(e){var n=typeof e.value_,r=typeof this.value_,i=t.VALUE_TYPE_ORDER.indexOf(n),o=t.VALUE_TYPE_ORDER.indexOf(r);return a.assert(i>=0,"Unknown leaf type: "+n),a.assert(o>=0,"Unknown leaf type: "+r),i===o?"object"===r?0:this.value_<e.value_?-1:this.value_===e.value_?0:1:o-i},t.prototype.withIndex=function(){return this},t.prototype.isIndexed=function(){return!0},t.prototype.equals=function(t){if(t===this)return!0;if(t.isLeafNode()){var e=t;return this.value_===e.value_&&this.priorityNode_.equals(e.priorityNode_)}return!1},t.VALUE_TYPE_ORDER=["object","boolean","number","string"],t}();function Kt(t){Bt=t}function zt(t){qt=t}var $t,Qt,Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.compare=function(t,e){var n=t.node.getPriority(),r=e.node.getPriority(),i=n.compareTo(r);return 0===i?R(t.name,e.name):i},e.prototype.isDefinedOn=function(t){return!t.getPriority().isEmpty()},e.prototype.indexedValueChanged=function(t,e){return!t.getPriority().equals(e.getPriority())},e.prototype.minPost=function(){return Lt.MIN},e.prototype.maxPost=function(){return new Lt(D,new Gt("[PRIORITY-POST]",qt))},e.prototype.makePost=function(t,e){var n=Bt(t);return new Lt(e,new Gt("[PRIORITY-POST]",n))},e.prototype.toString=function(){return".priority"},e}(Mt),Xt=new Yt,Jt=function(){function t(t,e,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];var o=1;while(!t.isEmpty())if(t=t,o=e?n(t.key,e):1,r&&(o*=-1),o<0)t=this.isReverse_?t.left:t.right;else{if(0===o){this.nodeStack_.push(t);break}this.nodeStack_.push(t),t=this.isReverse_?t.right:t.left}}return t.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var t,e=this.nodeStack_.pop();if(t=this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value},this.isReverse_){e=e.left;while(!e.isEmpty())this.nodeStack_.push(e),e=e.right}else{e=e.right;while(!e.isEmpty())this.nodeStack_.push(e),e=e.left}return t},t.prototype.hasNext=function(){return this.nodeStack_.length>0},t.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var t=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value}},t}(),Zt=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:ee.EMPTY_NODE,this.right=null!=o?o:ee.EMPTY_NODE}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,
vendor: 2,925 bytes, line 541
541null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.count=function(){return this.left.count()+1+this.right.count()},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||!!t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},t.prototype.minKey=function(){return this.min_().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var r=this,i=n(t,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(t,e,n)),r.fixUp_()},t.prototype.removeMin_=function(){if(this.left.isEmpty())return ee.EMPTY_NODE;var t=this;return t.left.isRed_()||t.left.left.isRed_()||(t=t.moveRedLeft_()),t=t.copy(null,null,null,t.left.removeMin_(),null),t.fixUp_()},t.prototype.remove=function(t,e){var n,r;if(n=this,e(t,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(t,e),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===e(t,n.key)){if(n.right.isEmpty())return ee.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(t,e))}return n.fixUp_()},t.prototype.isRed_=function(){return this.color},t.prototype.fixUp_=function(){var t=this;return t.right.isRed_()&&!t.left.isRed_()&&(t=t.rotateLeft_()),t.left.isRed_()&&t.left.left.isRed_()&&(t=t.rotateRight_()),t.left.isRed_()&&t.right.isRed_()&&(t=t.colorFlip_()),t},t.prototype.moveRedLeft_=function(){var t=this.colorFlip_();return t.right.left.isRed_()&&(t=t.copy(null,null,null,null,t.right.rotateRight_()),t=t.rotateLeft_(),t=t.colorFlip_()),t},t.prototype.moveRedRight_=function(){var t=this.colorFlip_();return t.left.left.isRed_()&&(t=t.rotateRight_(),t=t.colorFlip_()),t},t.prototype.rotateLeft_=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.rotateRight_=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.colorFlip_=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.checkMaxDepth_=function(){var t=this.check_();return Math.pow(2,t)<=this.count()+1},t.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
541if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var t=this.left.check_();if(t!==this.right.check_())throw new Error("Black depths differ");return t+(this.isRed_()?0:1)},t.RED=!0,t.BLACK=!1,t}(),te=function(){function t(){}return t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new Zt(t,e,null)},t.prototype.remove=function(t,e){return this},t.prototype.count=function(){return 0},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.check_=function(){return 0},t.prototype.isRed_=function(){return!1},t}(),ee=function(){function t(e,n){void 0===n&&(n=t.EMPTY_NODE),this.comparator_=e,this.root_=n}return t.prototype.insert=function(e,n){return new t(this.comparator_,this.root_.insert(e,n,this.comparator_).copy(null,null,Zt.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,Zt.BLACK,null,null))},t.prototype.get=function(t){var e,n=this.root_;while(!n.isEmpty()){if(e=this.comparator_(t,n.key),0===e)return n.value;e<0?n=n.left:e>0&&(n=n.right)}return null},t.prototype.getPredecessorKey=function(t){var e,n=this.root_,r=null;while(!n.isEmpty()){if(e=this.comparator_(t,n.key),0===e){if(n.left.isEmpty())return r?r.key:null;n=n.left;while(!n.right.isEmpty())n=n.right;return n.key}e<0?n=n.left:e>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},t.prototype.isEmpty=function(){return this.root_.isEmpty()},t.prototype.count=function(){return this.root_.count()},t.prototype.minKey=function(){return this.root_.minKey()},t.prototype.maxKey=function(){return this.root_.maxKey()},t.prototype.inorderTraversal=function(t){return this.root_.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.root_.reverseTraversal(t)},t.prototype.getIterator=function(t){return new Jt(this.root_,null,this.comparator_,!1,t)},t.prototype.getIteratorFrom=function(t,e){return new Jt(this.root_,t,this.comparator_,!1,e)},t.prototype.getReverseIteratorFrom=function(t,e){return new Jt(this.root_,t,this.comparator_,!0,e)},t.prototype.getReverseIterator=function(t){return new Jt(this.root_,null,this.comparator_,!0,t)},t.EMPTY_NODE=new te,t}(),ne=Math.log(2),re=function(){function t(t){var e=function(t){return parseInt(Math.log(t)/ne,10)},n=function(t){return parseInt(Array(t+1).join("1"),2)};this.count=e(t+1),this.current_=this.count-1;var r=n(this.count);this.bits_=t+1&r}return t.prototype.nextBitIsOne=function(){var t=!(this.bits_&1<<this.current_);return this.current_--,t},t}(),ie=function(t,e,n,r){t.sort(e);var i=function(e,r){var o,a,s=r-e;if(0===s)return null;if(1===s)return o=t[e],a=n?n(o):o,new Zt(a,o.node,Zt.BLACK,null,null);var u=parseInt(s/2,10)+e,c=i(e,u),l=i(u+1,r);return o=t[u],a=n?n(o):o,new Zt(a,o.node,Zt.BLACK,c,l)},o=function(e){for(var r=null,o=null,a=t.length,s=function(e,r){var o=a-e,s=a;a-=e;var c=i(o+1,s),l=t[o],h=n?n(l):l;u(new Zt(h,l.node,r,null,c))},u=function(t){r?(r.left=t,r=t):(o=t,r=t)},c=0;c<e.count;++c){var l=e.nextBitIsOne(),h=Math.pow(2,e.count-(c+1));l?s(h,Zt.BLACK):(s(h,Zt.BLACK),s(h,Zt.RED))}return o},a=new re(t.length),s=o(a);return new ee(r||e,s)},oe={},ae=function(){function t(t,e){this.indexes_=t,this.indexSet_=e}return Object.defineProperty(t,"Default",{get:function(){return a.assert(oe&&Xt,"ChildrenNode.ts has not been loaded"),$t=$t||new t({".priority":oe},{".priority":Xt}),$t},enumerable:!1,configurable:!0}),t.prototype.get=function(t){var e=a.safeGet(this.indexes_,t);if(!e)throw new Error("No index defined for "+t);return e instanceof ee?e:null},t.prototype.hasIndex=function(t){return a.contains(this.indexSet_,t.toString())},t.prototype.addIndex=function(e,n){a.assert(e!==Ft,"KeyIndex always exists and isn't meant to be added to the IndexMap.");var r,i=[],s=!1,u=n.getIterator(Lt.Wrap),c=u.getNext();while(c)s=s||e.isDefinedOn(c.node),i.push(c),c=u.getNext();r=s?ie(i,e.getCompare()):oe;var l=e.toString(),h=o.__assign({},this.indexSet_);h[l]=e;var f=o.__assign({},this.indexes_);return f[l]=r,new t(f,h)},t.prototype.addToIndexes=function(e,n){var r=this,i=a.map(this.indexes_,function(t,i){var o=a.safeGet(r.indexSet_,i);if(a.assert(o,"Missing index implementation for "+i),t===oe){if(o.isDefinedOn(e.node)){var s=[],u=n.getIterator(Lt.Wrap),c=u.getNext();while(c)c.name!==e.name&&s.push(c),c=u.getNext();return s.push(e),ie(s,o.getCompare())}return oe}var l=n.get(e.name),h=t;return l&&(h=h.remove(new Lt(e.name,l))),h.insert(e,e.node)});return new t(i,this.indexSet_)}
541,t.prototype.removeFromIndexes=function(e,n){var r=a.map(this.indexes_,function(t){if(t===oe)return t;var r=n.get(e.name);return r?t.remove(new Lt(e.name,r)):t});return new t(r,this.indexSet_)},t}();
542/**
543 * @license
544 * Copyright 2017 Google LLC
545 *
546 * Licensed under the Apache License, Version 2.0 (the "License");
547 * you may not use this file except in compliance with the License.
548 * You may obtain a copy of the License at
549 *
550 *   http://www.apache.org/licenses/LICENSE-2.0
551 *
552 * Unless required by applicable law or agreed to in writing, software
553 * distributed under the License is distributed on an "AS IS" BASIS,
554 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
555 * See the License for the specific language governing permissions and
556 * limitations under the License.
557 */
558function se(t,e){return R(t.name,e.name)}function ue(t,e){return R(t,e)}
559/**
560 * @license
561 * Copyright 2017 Google LLC
562 *
563 * Licensed under the Apache License, Version 2.0 (the "License");
564 * you may not use this file except in compliance with the License.
565 * You may obtain a copy of the License at
566 *
567 *   http://www.apache.org/licenses/LICENSE-2.0
568 *
569 * Unless required by applicable law or agreed to in writing, software
570 * distributed under the License is distributed on an "AS IS" BASIS,
571 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
572 * See the License for the specific language governing permissions and
573 * limitations under the License.
574 */var ce=function(){function t(t,e,n){this.children_=t,this.priorityNode_=e,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Wt(this.priorityNode_),this.children_.isEmpty()&&a.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(t,"EMPTY_NODE",{get:function(){return Qt||(Qt=new t(new ee(ue),null,ae.Default))},enumerable:!1,configurable:!0}),t.prototype.isLeafNode=function(){return!1},t.prototype.getPriority=function(){return this.priorityNode_||Qt},t.prototype.updatePriority=function(e){return this.children_.isEmpty()?this:new t(this.children_,e,this.indexMap_)},t.prototype.getImmediateChild=function(t){if(".priority"===t)return this.getPriority();var e=this.children_.get(t);return null===e?Qt:e},t.prototype.getChild=function(t){var e=t.getFront();return null===e?this:this.getImmediateChild(e).getChild(t.popFront())},t.prototype.hasChild=function(t){return null!==this.children_.get(t)},t.prototype.updateImmediateChild=function(e,n){if(a.assert(n,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(n);var r=new Lt(e,n),i=void 0,o=void 0;n.isEmpty()?(i=this.children_.remove(e),o=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(e,n),o=this.indexMap_.addToIndexes(r,this.children_));var s=i.isEmpty()?Qt:this.priorityNode_;return new t(i,s,o)},t.prototype.updateChild=function(t,e){var n=t.getFront();if(null===n)return e;a.assert(".priority"!==t.getFront()||1===t.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(t.popFront(),e);return this.updateImmediateChild(n,r)},t.prototype.isEmpty=function(){return this.children_.isEmpty()},t.prototype.numChildren=function(){return this.children_.count()},t.prototype.val=function(e){if(this.isEmpty())return null;var n={},r=0,i=0,o=!0;if(this.forEachChild(Xt,function(a,s){n[a]=s.val(e),r++,o&&t.INTEGER_REGEXP_.test(a)?i=Math.max(i,Number(a)):o=!1}),!e&&o&&i<2*r){var a=[];for(var s in n)a[s]=n[s];return a}return e&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},t.prototype.hash=function(){if(null===this.lazyHash_){var t="";this.getPriority().isEmpty()||(t+="priority:"+Ht(this.getPriority().val())+":"),this.forEachChild(Xt,function(e,n){var r=n.hash();""!==r&&(t+=":"+e+":"+r)}),this.lazyHash_=""===t?"":y(t)}return this.lazyHash_},t.prototype.getPredecessorChildName=function(t,e,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new Lt(t,e));return i?i.name:null}return this.children_.getPredecessorKey(t)},t.prototype.getFirstChildName=function(t){var e=this.resolveIndex_(t);if(e){var n=e.minKey();return n&&n.name}return this.children_.minKey()},t.prototype.getFirstChild=function(t){var e=this.getFirstChildName(t);return e?new Lt(e,this.children_.get(e)):null},t.prototype.getLastChildName=function(t){var e=this.resolveIndex_(t);if(e){var n=e.maxKey();return n&&n.name}return this.children_.maxKey()},t.prototype.getLastChild=function(t){var e=this.getLastChildName(t);return e?new Lt(e,this.children_.get(e)):null},t.prototype.forEachChild=function(t,e){var n=this.resolveIndex_(t);return n?n.inorderTraversal(function(t){return e(t.name,t.node)}):this.children_.inorderTraversal(e)},t.prototype.getIterator=function(t){return this.getIteratorFrom(t.minPost(),t)}
574,t.prototype.getIteratorFrom=function(t,e){var n=this.resolveIndex_(e);if(n)return n.getIteratorFrom(t,function(t){return t});var r=this.children_.getIteratorFrom(t.name,Lt.Wrap),i=r.peek();while(null!=i&&e.compare(i,t)<0)r.getNext(),i=r.peek();return r},t.prototype.getReverseIterator=function(t){return this.getReverseIteratorFrom(t.maxPost(),t)},t.prototype.getReverseIteratorFrom=function(t,e){var n=this.resolveIndex_(e);if(n)return n.getReverseIteratorFrom(t,function(t){return t});var r=this.children_.getReverseIteratorFrom(t.name,Lt.Wrap),i=r.peek();while(null!=i&&e.compare(i,t)>0)r.getNext(),i=r.peek();return r},t.prototype.compareTo=function(t){return this.isEmpty()?t.isEmpty()?0:-1:t.isLeafNode()||t.isEmpty()?1:t===he?-1:0},t.prototype.withIndex=function(e){if(e===Ft||this.indexMap_.hasIndex(e))return this;var n=this.indexMap_.addIndex(e,this.children_);return new t(this.children_,this.priorityNode_,n)},t.prototype.isIndexed=function(t){return t===Ft||this.indexMap_.hasIndex(t)},t.prototype.equals=function(t){if(t===this)return!0;if(t.isLeafNode())return!1;var e=t;if(this.getPriority().equals(e.getPriority())){if(this.children_.count()===e.children_.count()){var n=this.getIterator(Xt),r=e.getIterator(Xt),i=n.getNext(),o=r.getNext();while(i&&o){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=n.getNext(),o=r.getNext()}return null===i&&null===o}return!1}return!1},t.prototype.resolveIndex_=function(t){return t===Ft?null:this.indexMap_.get(t.toString())},t.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,t}(),le=function(t){function e(){return t.call(this,new ee(ue),ce.EMPTY_NODE,ae.Default)||this}return o.__extends(e,t),e.prototype.compareTo=function(t){return t===this?0:1},e.prototype.equals=function(t){return t===this},e.prototype.getPriority=function(){return this},e.prototype.getImmediateChild=function(t){return ce.EMPTY_NODE},e.prototype.isEmpty=function(){return!1},e}(ce),he=new le;Object.defineProperties(Lt,{MIN:{value:new Lt(x,ce.EMPTY_NODE)},MAX:{value:new Lt(D,he)}}),jt.__EMPTY_NODE=ce.EMPTY_NODE,Gt.__childrenNodeConstructor=ce,Ut(he),zt(he);
575/**
576 * @license
577 * Copyright 2017 Google LLC
578 *
579 * Licensed under the Apache License, Version 2.0 (the "License");
580 * you may not use this file except in compliance with the License.
581 * You may obtain a copy of the License at
582 *
583 *   http://www.apache.org/licenses/LICENSE-2.0
584 *
585 * Unless required by applicable law or agreed to in writing, software
586 * distributed under the License is distributed on an "AS IS" BASIS,
587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
588 * See the License for the specific language governing permissions and
589 * limitations under the License.
590 */
591var fe=!0;function pe(t,e){if(void 0===e&&(e=null),null===t)return ce.EMPTY_NODE;if("object"===typeof t&&".priority"in t&&(e=t[".priority"]),a.assert(null===e||"string"===typeof e||"number"===typeof e||"object"===typeof e&&".sv"in e,"Invalid priority type found: "+typeof e),"object"===typeof t&&".value"in t&&null!==t[".value"]&&(t=t[".value"]),"object"!==typeof t||".sv"in t){var n=t;return new Gt(n,pe(e))}if(t instanceof Array||!fe){var r=ce.EMPTY_NODE;return F(t,function(e,n){if(a.contains(t,e)&&"."!==e.substring(0,1)){var i=pe(n);!i.isLeafNode()&&i.isEmpty()||(r=r.updateImmediateChild(e,i))}}),r.updatePriority(pe(e))}var i=[],o=!1,s=t;if(F(s,function(t,e){if("."!==t.substring(0,1)){var n=pe(e);n.isEmpty()||(o=o||!n.getPriority().isEmpty(),i.push(new Lt(t,n)))}}),0===i.length)return ce.EMPTY_NODE;var u=ie(i,se,function(t){return t.name},ue);if(o){var c=ie(i,Xt.getCompare());return new ce(u,pe(e),new ae({".priority":c},{".priority":Xt}))}return new ce(u,pe(e),ae.Default)}Kt(pe);
592/**
593 * @license
594 * Copyright 2017 Google LLC
595 *
596 * Licensed under the Apache License, Version 2.0 (the "License");
597 * you may not use this file except in compliance with the License.
598 * You may obtain a copy of the License at
599 *
600 *   http://www.apache.org/licenses/LICENSE-2.0
601 *
602 * Unless required by applicable law or agreed to in writing, software
603 * distributed under the License is distributed on an "AS IS" BASIS,
604 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
605 * See the License for the specific language governing permissions and
606 * limitations under the License.
607 */
608var de,ve=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.compare=function(t,e){var n=t.node.compareTo(e.node);return 0===n?R(t.name,e.name):n},e.prototype.isDefinedOn=function(t){return!0},e.prototype.indexedValueChanged=function(t,e){return!t.equals(e)},e.prototype.minPost=function(){return Lt.MIN},e.prototype.maxPost=function(){return Lt.MAX},e.prototype.makePost=function(t,e){var n=pe(t);return new Lt(e,n)},e.prototype.toString=function(){return".value"},e}(Mt),ge=new ve,me=function(t){function e(e){var n=t.call(this)||this;return n.indexPath_=e,a.assert(!e.isEmpty()&&".priority"!==e.getFront(),"Can't 
608create PathIndex with empty path or .priority key"),n}return o.__extends(e,t),e.prototype.extractChild=function(t){return t.getChild(this.indexPath_)},e.prototype.isDefinedOn=function(t){return!t.getChild(this.indexPath_).isEmpty()},e.prototype.compare=function(t,e){var n=this.extractChild(t.node),r=this.extractChild(e.node),i=n.compareTo(r);return 0===i?R(t.name,e.name):i},e.prototype.makePost=function(t,e){var n=pe(t),r=ce.EMPTY_NODE.updateChild(this.indexPath_,n);return new Lt(e,r)},e.prototype.maxPost=function(){var t=ce.EMPTY_NODE.updateChild(this.indexPath_,he);return new Lt(D,t)},e.prototype.toString=function(){return this.indexPath_.slice().join("/")},e}(Mt),ye=function(){function t(t,e,n){this.node_=t,this.ref_=e,this.index_=n}return t.prototype.val=function(){return a.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},t.prototype.exportVal=function(){return a.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},t.prototype.toJSON=function(){return a.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},t.prototype.exists=function(){return a.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},t.prototype.child=function(e){a.validateArgCount("DataSnapshot.child",0,1,arguments.length),e=String(e),At("DataSnapshot.child",1,e,!1);var n=new $(e),r=this.ref_.child(n);return new t(this.node_.getChild(n),r,Xt)},t.prototype.hasChild=function(t){a.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),At("DataSnapshot.hasChild",1,t,!1);var e=new $(t);return!this.node_.getChild(e).isEmpty()},t.prototype.getPriority=function(){return a.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},t.prototype.forEach=function(e){var n=this;if(a.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),a.validateCallback("DataSnapshot.forEach",1,e,!1),this.node_.isLeafNode())return!1;var r=this.node_;return!!r.forEachChild(this.index_,function(r,i){return e(new t(i,n.ref_.child(r),Xt))})},t.prototype.hasChildren=function(){return a.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(t.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!1,configurable:!0}),t.prototype.numChildren=function(){return a.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},t.prototype.getRef=function(){return a.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),t}(),be=function(){function t(t,e,n,r){this.eventType=t,this.eventRegistration=e,this.snapshot=n,this.prevName=r}return t.prototype.getPath=function(){var t=this.snapshot.getRef();return"value"===this.eventType?t.path:t.getParent().path},t.prototype.getEventType=function(){return this.eventType},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+a.stringify(this.snapshot.exportVal())},t}(),_e=function(){function t(t,e,n){this.eventRegistration=t,this.error=e,this.path=n}return t.prototype.getPath=function(){return this.path},t.prototype.getEventType=function(){return"cancel"},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.path.toString()+":cancel"},t}(),we=function(){function t(t,e,n){this.callback_=t,this.cancelCallback_=e,this.context_=n}return t.prototype.respondsTo=function(t){return"value"===t},t.prototype.createEvent=function(t,e){var n=e.getQueryParams().getIndex();return new be("value",this,new ye(t.snapshotNode,e.getRef(),n))},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(e,t.error)}}var r=this.callback_;return function(){r.call(e,t.snapshot)}},t.prototype.createCancelEvent=function(t,e){return this.cancelCallback_?new _e(this,t,e):null},t.prototype.matches=function(e){return e instanceof t&&(!e.callback_||!this.callback_||e.callback_===this.callback_&&e.context_===this.context_)},t.prototype.hasAnyCallback=function(){return null!==this.callback_},t}(),Ee=function(){function t(t,e,n){this.callbacks_=t,this.cancelCallback_=e,this.context_=n}return t.prototype.respondsTo=function(t){var e="children_added"===t?"child_added":t;
608return e="children_removed"===e?"child_removed":e,a.contains(this.callbacks_,e)},t.prototype.createCancelEvent=function(t,e){return this.cancelCallback_?new _e(this,t,e):null},t.prototype.createEvent=function(t,e){a.assert(null!=t.childName,"Child events should have a childName.");var n=e.getRef().child(t.childName),r=e.getQueryParams().getIndex();return new be(t.type,this,new ye(t.snapshotNode,n,r),t.prevName)},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(e,t.error)}}var r=this.callbacks_[t.eventType];return function(){r.call(e,t.snapshot,t.prevName)}},t.prototype.matches=function(e){var n=this;if(e instanceof t){if(!this.callbacks_||!e.callbacks_)return!0;if(this.context_===e.context_){var r=Object.keys(e.callbacks_),i=Object.keys(this.callbacks_),o=r.length,a=i.length;if(o===a){if(1===o){var s=r[0],u=i[0];return u===s&&(!e.callbacks_[s]||!this.callbacks_[u]||e.callbacks_[s]===this.callbacks_[u])}return i.every(function(t){return e.callbacks_[t]===n.callbacks_[t]})}}}return!1},t.prototype.hasAnyCallback=function(){return null!==this.callbacks_},t}(),Ie=function(){function t(t,e,n,r){this.repo=t,this.path=e,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(t,"__referenceConstructor",{get:function(){return a.assert(de,"Reference.ts has not been loaded"),de},set:function(t){de=t},enumerable:!1,configurable:!0}),t.validateQueryEndpoints_=function(t){var e=null,n=null;if(t.hasStart()&&(e=t.getIndexStartValue()),t.hasEnd()&&(n=t.getIndexEndValue()),t.getIndex()===Ft){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(t.hasStart()){var o=t.getIndexStartName();if(o!==x)throw new Error(r);if("string"!==typeof e)throw new Error(i)}if(t.hasEnd()){var s=t.getIndexEndName();if(s!==D)throw new Error(r);if("string"!==typeof n)throw new Error(i)}}else if(t.getIndex()===Xt){if(null!=e&&!bt(e)||null!=n&&!bt(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(a.assert(t.getIndex()instanceof me||t.getIndex()===ge,"unknown index type."),null!=e&&"object"===typeof e||null!=n&&"object"===typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},t.validateLimit_=function(t){if(t.hasStart()&&t.hasEnd()&&t.hasLimit()&&!t.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},t.prototype.validateNoPreviousOrderByCall_=function(t){if(!0===this.orderByCalled_)throw new Error(t+": You can't combine multiple orderBy calls.")},t.prototype.getQueryParams=function(){return this.queryParams_},t.prototype.getRef=function(){return a.validateArgCount("Query.ref",0,0,arguments.length),new t.__referenceConstructor(this.repo,this.path)},t.prototype.on=function(e,n,r,i){a.validateArgCount("Query.on",2,4,arguments.length),St("Query.on",1,e,!1),a.validateCallback("Query.on",2,n,!1);var o=t.getCancelAndContextArgs_("Query.on",r,i);if("value"===e)this.onValueEvent(n,o.cancel,o.context);else{var s={};s[e]=n,this.onChildEvent(s,o.cancel,o.context)}return n},t.prototype.onValueEvent=function(t,e,n){var r=new we(t,e||null,n||null);this.repo.addEventCallbackForQuery(this,r)},t.prototype.onChildEvent=function(t,e,n){var r=new Ee(t,e,n);this.repo.addEventCallbackForQuery(this,r)},t.prototype.off=function(t,e,n){a.validateArgCount("Query.off",0,3,arguments.length),St("Query.off",1,t,!0),a.validateCallback("Query.off",2,e,!0),a.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===t){var o=e||null;r=new we(o,null,n||null)}else t&&(e&&(i={},i[t]=e),r=new Ee(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},t.prototype.once=function(e,n,r,i){var o=this;a.validateArgCount("Query.once",1,4,arguments.length),St("Query.once",1,e,!1),a.validateCallback("Query.once",2,n,!0);var s=t.getCancelAndContextArgs_("Query.once",r,i),u=!0,c=new a.Deferred;c.promise.catch(function(){});var l=function(t){u&&(u=!1,o.off(e,l),n&&n.bind(s.context)(t),c.resolve(t))};return this.on(e,l,function(t){o.off(e,l),s.cancel&&s.cancel.bind(s.context)(t),c.reject(t)}),c.promise},t.prototype.limitToFirst=function(e){if(a.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!==typeof e||Math.floor(e)!==e||e<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set 
608(by another call to limit, limitToFirst, or limitToLast).");return new t(this.repo,this.path,this.queryParams_.limitToFirst(e),this.orderByCalled_)},t.prototype.limitToLast=function(e){if(a.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!==typeof e||Math.floor(e)!==e||e<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new t(this.repo,this.path,this.queryParams_.limitToLast(e),this.orderByCalled_)},t.prototype.orderByChild=function(e){if(a.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===e)throw new Error('Query.orderByChild: "$key" is invalid.  Use Query.orderByKey() instead.');if("$priority"===e)throw new Error('Query.orderByChild: "$priority" is invalid.  Use Query.orderByPriority() instead.');if("$value"===e)throw new Error('Query.orderByChild: "$value" is invalid.  Use Query.orderByValue() instead.');At("Query.orderByChild",1,e,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new $(e);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path.  Use Query.orderByValue() instead.");var r=new me(n),i=this.queryParams_.orderBy(r);return t.validateQueryEndpoints_(i),new t(this.repo,this.path,i,!0)},t.prototype.orderByKey=function(){a.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var e=this.queryParams_.orderBy(Ft);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.orderByPriority=function(){a.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var e=this.queryParams_.orderBy(Xt);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.orderByValue=function(){a.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var e=this.queryParams_.orderBy(ge);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.startAt=function(e,n){void 0===e&&(e=null),a.validateArgCount("Query.startAt",0,2,arguments.length),_t("Query.startAt",1,e,this.path,!0),Ct("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(e,n);if(t.validateLimit_(r),t.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===e&&(e=null,n=null),new t(this.repo,this.path,r,this.orderByCalled_)},t.prototype.endAt=function(e,n){void 0===e&&(e=null),a.validateArgCount("Query.endAt",0,2,arguments.length),_t("Query.endAt",1,e,this.path,!0),Ct("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(e,n);if(t.validateLimit_(r),t.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new t(this.repo,this.path,r,this.orderByCalled_)},t.prototype.equalTo=function(t,e){if(a.validateArgCount("Query.equalTo",1,2,arguments.length),_t("Query.equalTo",1,t,this.path,!1),Ct("Query.equalTo",2,e,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(t,e).endAt(t,e)},t.prototype.toString=function(){return a.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},t.prototype.toJSON=function(){return a.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},t.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},t.prototype.queryIdentifier=function(){var t=this.queryObject(),e=M(t);return"{}"===e?"default":e},t.prototype.isEqual=function(e){if(a.validateArgCount("Query.isEqual",1,1,arguments.length),!(e instanceof t)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}
608var r=this.repo===e.repo,i=this.path.equals(e.path),o=this.queryIdentifier()===e.queryIdentifier();return r&&i&&o},t.getCancelAndContextArgs_=function(t,e,n){var r={cancel:null,context:null};if(e&&n)r.cancel=e,a.validateCallback(t,3,r.cancel,!0),r.context=n,a.validateContextObject(t,4,r.context,!0);else if(e)if("object"===typeof e&&null!==e)r.context=e;else{if("function"!==typeof e)throw new Error(a.errorPrefix(t,3,!0)+" must either be a cancel callback or a context object.");r.cancel=e}return r},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),t}(),Te=function(){function t(t){this.node_=t}return t.prototype.getImmediateChild=function(e){var n=this.node_.getImmediateChild(e);return new t(n)},t.prototype.node=function(){return this.node_},t}(),Se=function(){function t(t,e){this.syncTree_=t,this.path_=e}return t.prototype.getImmediateChild=function(e){var n=this.path_.child(e);return new t(this.syncTree_,n)},t.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},t}(),Ce=function(t){return t=t||{},t["timestamp"]=t["timestamp"]||(new Date).getTime(),t},Ae=function(t,e,n){return t&&"object"===typeof t?(a.assert(".sv"in t,"Unexpected leaf node or priority contents"),"string"===typeof t[".sv"]?Ne(t[".sv"],e,n):"object"===typeof t[".sv"]?ke(t[".sv"],e):void a.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2))):t},Ne=function(t,e,n){switch(t){case"timestamp":return n["timestamp"];default:a.assert(!1,"Unexpected server value: "+t)}},ke=function(t,e,n){t.hasOwnProperty("increment")||a.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2));var r=t["increment"];"number"!==typeof r&&a.assert(!1,"Unexpected increment value: "+r);var i=e.node();if(a.assert(null!==i&&"undefined"!==typeof i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;var o=i,s=o.getValue();return"number"!==typeof s?r:s+r},Oe=function(t,e,n,r){return De(e,new Se(n,t),r)},xe=function(t,e,n){return De(t,new Te(e),n)};function De(t,e,n){var r,i=t.getPriority().val(),o=Ae(i,e.getImmediateChild(".priority"),n);if(t.isLeafNode()){var a=t,s=Ae(a.getValue(),e,n);return s!==a.getValue()||o!==a.getPriority().val()?new Gt(s,pe(o)):t}var u=t;return r=u,o!==u.getPriority().val()&&(r=r.updatePriority(new Gt(o))),u.forEachChild(Xt,function(t,i){var o=De(i,e.getImmediateChild(t),n);o!==i&&(r=r.updateImmediateChild(t,o))}),r}
609/**
610 * @license
611 * Copyright 2017 Google LLC
612 *
613 * Licensed under the Apache License, Version 2.0 (the "License");
614 * you may not use this file except in compliance with the License.
615 * You may obtain a copy of the License at
616 *
617 *   http://www.apache.org/licenses/LICENSE-2.0
618 *
619 * Unless required by applicable law or agreed to in writing, software
620 * distributed under the License is distributed on an "AS IS" BASIS,
621 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
622 * See the License for the specific language governing permissions and
623 * limitations under the License.
624 */var Re,Pe=function(){function t(){this.value=null,this.children=new Map}return t.prototype.find=function(t){if(null!=this.value)return this.value.getChild(t);if(!t.isEmpty()&&this.children.size>0){var e=t.getFront();if(t=t.popFront(),this.children.has(e)){var n=this.children.get(e);return n.find(t)}return null}return null},t.prototype.remember=function(e,n){if(e.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(e,n);else{var r=e.getFront();this.children.has(r)||this.children.set(r,new t);var i=this.children.get(r);e=e.popFront(),i.remember(e,n)}},t.prototype.forget=function(t){if(t.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var e=this.value;this.value=null;var n=this;return e.forEachChild(Xt,function(t,e){n.remember(new $(t),e)}),this.forget(t)}if(this.children.size>0){var r=t.getFront();if(t=t.popFront(),this.children.has(r)){var i=this.children.get(r).forget(t);i&&this.children.delete(r)}return 0===this.children.size}return!0},t.prototype.forEachTree=function(t,e){null!==this.value?e(t,this.value):this.forEachChild(function(n,r){var i=new $(t.toString()+"/"+n);r.forEachTree(i,e)})}
624,t.prototype.forEachChild=function(t){this.children.forEach(function(e,n){t(n,e)})},t}();
625/**
626 * @license
627 * Copyright 2017 Google LLC
628 *
629 * Licensed under the Apache License, Version 2.0 (the "License");
630 * you may not use this file except in compliance with the License.
631 * You may obtain a copy of the License at
632 *
633 *   http://www.apache.org/licenses/LICENSE-2.0
634 *
635 * Unless required by applicable law or agreed to in writing, software
636 * distributed under the License is distributed on an "AS IS" BASIS,
637 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
638 * See the License for the specific language governing permissions and
639 * limitations under the License.
640 */(function(t){t[t["OVERWRITE"]=0]="OVERWRITE",t[t["MERGE"]=1]="MERGE",t[t["ACK_USER_WRITE"]=2]="ACK_USER_WRITE",t[t["LISTEN_COMPLETE"]=3]="LISTEN_COMPLETE"})(Re||(Re={}));var Le,Me,je=function(){function t(t,e,n,r){this.fromUser=t,this.fromServer=e,this.queryId=n,this.tagged=r,a.assert(!r||e,"Tagged queries must be from server.")}return t.User=new t(!0,!1,null,!1),t.Server=new t(!1,!0,null,!1),t.forServerTaggedQuery=function(e){return new t(!1,!0,e,!0)},t}(),Fe=function(){function t(t,e,n){this.path=t,this.affectedTree=e,this.revert=n,this.type=Re.ACK_USER_WRITE,this.source=je.User}return t.prototype.operationForChild=function(e){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return a.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new $(e));return new t($.Empty,n,this.revert)}return a.assert(this.path.getFront()===e,"operationForChild called for unrelated child."),new t(this.path.popFront(),this.affectedTree,this.revert)},t}(),Ue=function(){return Le||(Le=new ee(P)),Le},Ve=function(){function t(t,e){void 0===e&&(e=Ue()),this.value=t,this.children=e}return t.fromObject=function(e){var n=t.Empty;return F(e,function(t,e){n=n.set(new $(t),e)}),n},t.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},t.prototype.findRootMostMatchingPathAndValue=function(t,e){if(null!=this.value&&e(this.value))return{path:$.Empty,value:this.value};if(t.isEmpty())return null;var n=t.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(t.popFront(),e);if(null!=i){var o=new $(n).child(i.path);return{path:o,value:i.value}}return null}return null},t.prototype.findRootMostValueAndPath=function(t){return this.findRootMostMatchingPathAndValue(t,function(){return!0})},t.prototype.subtree=function(e){if(e.isEmpty())return this;var n=e.getFront(),r=this.children.get(n);return null!==r?r.subtree(e.popFront()):t.Empty},t.prototype.set=function(e,n){if(e.isEmpty())return new t(n,this.children);var r=e.getFront(),i=this.children.get(r)||t.Empty,o=i.set(e.popFront(),n),a=this.children.insert(r,o);return new t(this.value,a)},t.prototype.remove=function(e){if(e.isEmpty())return this.children.isEmpty()?t.Empty:new t(null,this.children);var n=e.getFront(),r=this.children.get(n);if(r){var i=r.remove(e.popFront()),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?t.Empty:new t(this.value,o)}return this},t.prototype.get=function(t){if(t.isEmpty())return this.value;var e=t.getFront(),n=this.children.get(e);return n?n.get(t.popFront()):null},t.prototype.setTree=function(e,n){if(e.isEmpty())return n;var r=e.getFront(),i=this.children.get(r)||t.Empty,o=i.setTree(e.popFront(),n),a=void 0;return a=o.isEmpty()?this.children.remove(r):this.children.insert(r,o),new t(this.value,a)},t.prototype.fold=function(t){return this.fold_($.Empty,t)},t.prototype.fold_=function(t,e){var n={};return this.children.inorderTraversal(function(r,i){n[r]=i.fold_(t.child(r),e)}),e(t,this.value,n)},t.prototype.findOnPath=function(t,e){return this.findOnPath_(t,$.Empty,e)},t.prototype.findOnPath_=function(t,e,n){var r=!!this.value&&n(e,this.value);if(r)return r;if(t.isEmpty())return null;var i=t.getFront(),o=this.children.get(i);return o?o.findOnPath_(t.popFront(),e.child(i),n):null},t.prototype.foreachOnPath=function(t,e){return this.foreachOnPath_(t,$.Empty,e)},t.prototype.foreachOnPath_=function(e,n,r){if(e.isEmpty())return this;this.value&&r(n,this.value);var i=e.getFront(),o=this.children.get(i);return o?o.foreachOnPath_(e.popFront(),n.child(i),r):t.Empty},t.prototype.foreach=function(t){this.foreach_($.Empty,t)},t.prototype.foreach_=function(t,e){this.children.inorderTraversal(function(n,r){r.foreach_(t.child(n),e)}),this.value&&e(t,this.value)},t.prototype.foreachChild=function(t){this.children.inorderTraversal(function(e,n){
640n.value&&t(e,n.value)})},t.Empty=new t(null),t}(),Be=function(){function t(t,e){this.source=t,this.path=e,this.type=Re.LISTEN_COMPLETE}return t.prototype.operationForChild=function(e){return this.path.isEmpty()?new t(this.source,$.Empty):new t(this.source,this.path.popFront())},t}(),qe=function(){function t(t,e,n){this.source=t,this.path=e,this.snap=n,this.type=Re.OVERWRITE}return t.prototype.operationForChild=function(e){return this.path.isEmpty()?new t(this.source,$.Empty,this.snap.getImmediateChild(e)):new t(this.source,this.path.popFront(),this.snap)},t}(),He=function(){function t(t,e,n){this.source=t,this.path=e,this.children=n,this.type=Re.MERGE}return t.prototype.operationForChild=function(e){if(this.path.isEmpty()){var n=this.children.subtree(new $(e));return n.isEmpty()?null:n.value?new qe(this.source,$.Empty,n.value):new t(this.source,$.Empty,n)}return a.assert(this.path.getFront()===e,"Can't get a merge for a child not on the path of the operation"),new t(this.source,this.path.popFront(),this.children)},t.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},t}(),We=function(){function t(t,e,n){this.node_=t,this.fullyInitialized_=e,this.filtered_=n}return t.prototype.isFullyInitialized=function(){return this.fullyInitialized_},t.prototype.isFiltered=function(){return this.filtered_},t.prototype.isCompleteForPath=function(t){if(t.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var e=t.getFront();return this.isCompleteForChild(e)},t.prototype.isCompleteForChild=function(t){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(t)},t.prototype.getNode=function(){return this.node_},t}(),Ge=function(){function t(t,e){this.eventCache_=t,this.serverCache_=e}return t.prototype.updateEventSnap=function(e,n,r){return new t(new We(e,n,r),this.serverCache_)},t.prototype.updateServerSnap=function(e,n,r){return new t(this.eventCache_,new We(e,n,r))},t.prototype.getEventCache=function(){return this.eventCache_},t.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},t.prototype.getServerCache=function(){return this.serverCache_},t.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},t.Empty=new t(new We(ce.EMPTY_NODE,!1,!1),new We(ce.EMPTY_NODE,!1,!1)),t}(),Ke=function(){function t(t,e,n,r,i){this.type=t,this.snapshotNode=e,this.childName=n,this.oldSnap=r,this.prevName=i}return t.valueChange=function(e){return new t(t.VALUE,e)},t.childAddedChange=function(e,n){return new t(t.CHILD_ADDED,n,e)},t.childRemovedChange=function(e,n){return new t(t.CHILD_REMOVED,n,e)},t.childChangedChange=function(e,n,r){return new t(t.CHILD_CHANGED,n,e,r)},t.childMovedChange=function(e,n){return new t(t.CHILD_MOVED,n,e)},t.CHILD_ADDED="child_added",t.CHILD_REMOVED="child_removed",t.CHILD_CHANGED="child_changed",t.CHILD_MOVED="child_moved",t.VALUE="value",t}(),ze=function(){function t(t){this.index_=t}return t.prototype.updateChild=function(t,e,n,r,i,o){a.assert(t.isIndexed(this.index_),"A node must be indexed if only a child is updated");var s=t.getImmediateChild(e);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()===n.isEmpty()?t:(null!=o&&(n.isEmpty()?t.hasChild(e)?o.trackChildChange(Ke.childRemovedChange(e,s)):a.assert(t.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?o.trackChildChange(Ke.childAddedChange(e,n)):o.trackChildChange(Ke.childChangedChange(e,n,s))),t.isLeafNode()&&n.isEmpty()?t:t.updateImmediateChild(e,n).withIndex(this.index_))},t.prototype.updateFullNode=function(t,e,n){return null!=n&&(t.isLeafNode()||t.forEachChild(Xt,function(t,r){e.hasChild(t)||n.trackChildChange(Ke.childRemovedChange(t,r))}),e.isLeafNode()||e.forEachChild(Xt,function(e,r){if(t.hasChild(e)){var i=t.getImmediateChild(e);i.equals(r)||n.trackChildChange(Ke.childChangedChange(e,r,i))}else n.trackChildChange(Ke.childAddedChange(e,r))})),e.withIndex(this.index_)},t.prototype.updatePriority=function(t,e){return t.isEmpty()?ce.EMPTY_NODE:t.updatePriority(e)},t.prototype.filtersNodes=function(){return!1},t.prototype.getIndexedFilter=function(){return this},t.prototype.getIndex=function(){return this.index_},t}(),$e=function(){function t(){this.changeMap=new Map}return t.prototype.trackChildChange=function(t){var e=t.type,n=t.childName;a.assert(e===Ke.CHILD_ADDED||e===Ke.CHILD_CHANGED||e===Ke.CHILD_REMOVED,"Only child changes supported for tracking"),a.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if(e===Ke.CHILD_ADDED&&i===Ke.CHILD_REMOVED)this.changeMap.set(n,Ke.childChangedChange(n,t.snapshotNode,r.snapshotNode));else if(e===Ke.CHILD_REMOVED&&i===Ke.CHILD_ADDED)this.changeMap.delete(n);else if(e===Ke.CHILD_REMOVED&&i===Ke.CHILD_CHANGED)this.changeMap.set(n,Ke.childRemovedChange(n,r.oldSnap));else if(e===Ke.CHILD_CHANGED&&i===Ke.CHILD_ADDED)this.changeMap.set(n,Ke.childAddedChange(n,t.snapshotNode));else{if(e!==Ke.CHILD_CHANGED||i!==Ke.CHILD_CHANGED)throw a.assertionError("Illegal combination of changes: "+t+" occurred after "+r);this.changeMap.set(n,Ke.childChangedChange(n,t.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,t)},t.prototype.getChanges=function(){return Array.from(this.changeMap.values())},t}(),Qe=function(){function t(){}return t.prototype.getCompleteChild=function(t){return null},t.prototype.getChildAfterChild=function(t,e,n){return null},t}(),Ye=new Qe,Xe=function(){function t(t,e,n){void 0===n&&(n=null),this.writes_=t,this.viewCache_=e,this.optCompleteServerCache_=n}return t.prototype.getCompleteChild=function(t){var e=this.viewCache_.getEventCache();if(e.isCompleteForChild(t))return e.getNode().getImmediateChild(t);var n=null!=this.optCompleteServerCache_?new We(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(t,n)},t.prototype.getChildAfterChild=function(t,e,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,e,1,n,t);return 0===i.length?null:i[0]},t}(),Je=function(){function t(t,e){this.viewCache=t,this.changes=e}return t}
640(),Ze=function(){function t(t){this.filter_=t}return t.prototype.assertIndexed=function(t){a.assert(t.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),a.assert(t.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},t.prototype.applyOperation=function(e,n,r,i){var o,s,u=new $e;if(n.type===Re.OVERWRITE){var c=n;c.source.fromUser?o=this.applyUserOverwrite_(e,c.path,c.snap,r,i,u):(a.assert(c.source.fromServer,"Unknown source."),s=c.source.tagged||e.getServerCache().isFiltered()&&!c.path.isEmpty(),o=this.applyServerOverwrite_(e,c.path,c.snap,r,i,s,u))}else if(n.type===Re.MERGE){var l=n;l.source.fromUser?o=this.applyUserMerge_(e,l.path,l.children,r,i,u):(a.assert(l.source.fromServer,"Unknown source."),s=l.source.tagged||e.getServerCache().isFiltered(),o=this.applyServerMerge_(e,l.path,l.children,r,i,s,u))}else if(n.type===Re.ACK_USER_WRITE){var h=n;o=h.revert?this.revertUserWrite_(e,h.path,r,i,u):this.ackUserWrite_(e,h.path,h.affectedTree,r,i,u)}else{if(n.type!==Re.LISTEN_COMPLETE)throw a.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(e,n.path,r,u)}var f=u.getChanges();return t.maybeAddValueEvent_(e,o,f),new Je(o,f)},t.maybeAddValueEvent_=function(t,e,n){var r=e.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=t.getCompleteEventSnap();(n.length>0||!t.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(Ke.valueChange(e.getCompleteEventSnap()))}},t.prototype.generateEventCacheAfterServerEvent_=function(t,e,n,r,i){var o=t.getEventCache();if(null!=n.shadowingWrite(e))return t;var s=void 0,u=void 0;if(e.isEmpty())if(a.assert(t.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),t.getServerCache().isFiltered()){var c=t.getCompleteServerSnap(),l=c instanceof ce?c:ce.EMPTY_NODE,h=n.calcCompleteEventChildren(l);s=this.filter_.updateFullNode(t.getEventCache().getNode(),h,i)}else{var f=n.calcCompleteEventCache(t.getCompleteServerSnap());s=this.filter_.updateFullNode(t.getEventCache().getNode(),f,i)}else{var p=e.getFront();if(".priority"===p){a.assert(1===e.getLength(),"Can't have a priority with additional path components");var d=o.getNode();u=t.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(e,d,u);s=null!=v?this.filter_.updatePriority(d,v):o.getNode()}else{var g=e.popFront(),m=void 0;if(o.isCompleteForChild(p)){u=t.getServerCache().getNode();var y=n.calcEventCacheAfterServerOverwrite(e,o.getNode(),u);m=null!=y?o.getNode().getImmediateChild(p).updateChild(g,y):o.getNode().getImmediateChild(p)}else m=n.calcCompleteChild(p,t.getServerCache());s=null!=m?this.filter_.updateChild(o.getNode(),p,m,g,r,i):o.getNode()}}return t.updateEventSnap(s,o.isFullyInitialized()||e.isEmpty(),this.filter_.filtersNodes())},t.prototype.applyServerOverwrite_=function(t,e,n,r,i,o,a){var s,u=t.getServerCache(),c=o?this.filter_:this.filter_.getIndexedFilter();if(e.isEmpty())s=c.updateFullNode(u.getNode(),n,null);else if(c.filtersNodes()&&!u.isFiltered()){var l=u.getNode().updateChild(e,n);s=c.updateFullNode(u.getNode(),l,null)}else{var h=e.getFront();if(!u.isCompleteForPath(e)&&e.getLength()>1)return t;var f=e.popFront(),p=u.getNode().getImmediateChild(h),d=p.updateChild(f,n);s=".priority"===h?c.updatePriority(u.getNode(),d):c.updateChild(u.getNode(),h,d,f,Ye,null)}var v=t.updateServerSnap(s,u.isFullyInitialized()||e.isEmpty(),c.filtersNodes()),g=new Xe(r,v,i);return this.generateEventCacheAfterServerEvent_(v,e,r,g,a)},t.prototype.applyUserOverwrite_=function(t,e,n,r,i,o){var a,s,u=t.getEventCache(),c=new Xe(r,t,i);if(e.isEmpty())s=this.filter_.updateFullNode(t.getEventCache().getNode(),n,o),a=t.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var l=e.getFront();if(".priority"===l)s=this.filter_.updatePriority(t.getEventCache().getNode(),n),a=t.updateEventSnap(s,u.isFullyInitialized(),u.isFiltered());else{var h=e.popFront(),f=u.getNode().getImmediateChild(l),p=void 0;if(h.isEmpty())p=n;else{var d=c.getCompleteChild(l);p=null!=d?".priority"===h.getBack()&&d.getChild(h.parent()).isEmpty()?d:d.updateChild(h,n):ce.EMPTY_NODE}if(f.equals(p))a=t;else{var v=this.filter_.updateChild(u.getNode(),l,p,h,c,o);a=t.updateEventSnap(v,u.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},t.cacheHasChild_=function(t,e){return t.getEventCache().isCompleteForChild(e)},t.prototype.applyUserMerge_=function(e,n,r,i,o,a){var s=this,u=e;return r.foreach(function(r,c){var l=n.child(r);
640t.cacheHasChild_(e,l.getFront())&&(u=s.applyUserOverwrite_(u,l,c,i,o,a))}),r.foreach(function(r,c){var l=n.child(r);t.cacheHasChild_(e,l.getFront())||(u=s.applyUserOverwrite_(u,l,c,i,o,a))}),u},t.prototype.applyMerge_=function(t,e){return e.foreach(function(e,n){t=t.updateChild(e,n)}),t},t.prototype.applyServerMerge_=function(t,e,n,r,i,o,a){var s=this;if(t.getServerCache().getNode().isEmpty()&&!t.getServerCache().isFullyInitialized())return t;var u,c=t;u=e.isEmpty()?n:Ve.Empty.setTree(e,n);var l=t.getServerCache().getNode();return u.children.inorderTraversal(function(e,n){if(l.hasChild(e)){var u=t.getServerCache().getNode().getImmediateChild(e),h=s.applyMerge_(u,n);c=s.applyServerOverwrite_(c,new $(e),h,r,i,o,a)}}),u.children.inorderTraversal(function(e,n){var u=!t.getServerCache().isCompleteForChild(e)&&null==n.value;if(!l.hasChild(e)&&!u){var h=t.getServerCache().getNode().getImmediateChild(e),f=s.applyMerge_(h,n);c=s.applyServerOverwrite_(c,new $(e),f,r,i,o,a)}}),c},t.prototype.ackUserWrite_=function(t,e,n,r,i,o){if(null!=r.shadowingWrite(e))return t;var a=t.getServerCache().isFiltered(),s=t.getServerCache();if(null!=n.value){if(e.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(e))return this.applyServerOverwrite_(t,e,s.getNode().getChild(e),r,i,a,o);if(e.isEmpty()){var u=Ve.Empty;return s.getNode().forEachChild(Ft,function(t,e){u=u.set(new $(t),e)}),this.applyServerMerge_(t,e,u,r,i,a,o)}return t}var c=Ve.Empty;return n.foreach(function(t,n){var r=e.child(t);s.isCompleteForPath(r)&&(c=c.set(t,s.getNode().getChild(r)))}),this.applyServerMerge_(t,e,c,r,i,a,o)},t.prototype.listenComplete_=function(t,e,n,r){var i=t.getServerCache(),o=t.updateServerSnap(i.getNode(),i.isFullyInitialized()||e.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(o,e,n,Ye,r)},t.prototype.revertUserWrite_=function(t,e,n,r,i){var o;if(null!=n.shadowingWrite(e))return t;var s=new Xe(n,t,r),u=t.getEventCache().getNode(),c=void 0;if(e.isEmpty()||".priority"===e.getFront()){var l=void 0;if(t.getServerCache().isFullyInitialized())l=n.calcCompleteEventCache(t.getCompleteServerSnap());else{var h=t.getServerCache().getNode();a.assert(h instanceof ce,"serverChildren would be complete if leaf node"),l=n.calcCompleteEventChildren(h)}l=l,c=this.filter_.updateFullNode(u,l,i)}else{var f=e.getFront(),p=n.calcCompleteChild(f,t.getServerCache());null==p&&t.getServerCache().isCompleteForChild(f)&&(p=u.getImmediateChild(f)),c=null!=p?this.filter_.updateChild(u,f,p,e.popFront(),s,i):t.getEventCache().getNode().hasChild(f)?this.filter_.updateChild(u,f,ce.EMPTY_NODE,e.popFront(),s,i):u,c.isEmpty()&&t.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(t.getCompleteServerSnap()),o.isLeafNode()&&(c=this.filter_.updateFullNode(c,o,i)))}return o=t.getServerCache().isFullyInitialized()||null!=n.shadowingWrite($.Empty),t.updateEventSnap(c,o,this.filter_.filtersNodes())},t}(),tn=function(){function t(t){this.query_=t,this.index_=this.query_.getQueryParams().getIndex()}return t.prototype.generateEventsForChanges=function(t,e,n){var r=this,i=[],o=[];return t.forEach(function(t){t.type===Ke.CHILD_CHANGED&&r.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push(Ke.childMovedChange(t.childName,t.snapshotNode))}),this.generateEventsForType_(i,Ke.CHILD_REMOVED,t,n,e),this.generateEventsForType_(i,Ke.CHILD_ADDED,t,n,e),this.generateEventsForType_(i,Ke.CHILD_MOVED,o,n,e),this.generateEventsForType_(i,Ke.CHILD_CHANGED,t,n,e),this.generateEventsForType_(i,Ke.VALUE,t,n,e),i},t.prototype.generateEventsForType_=function(t,e,n,r,i){var o=this,a=n.filter(function(t){return t.type===e});a.sort(this.compareChanges_.bind(this)),a.forEach(function(e){var n=o.materializeSingleChange_(e,i);r.forEach(function(r){r.respondsTo(e.type)&&t.push(r.createEvent(n,o.query_))})})},t.prototype.materializeSingleChange_=function(t,e){return"value"===t.type||"child_removed"===t.type?t:(t.prevName=e.getPredecessorChildName(t.childName,t.snapshotNode,this.index_),t)},t.prototype.compareChanges_=function(t,e){if(null==t.childName||null==e.childName)throw a.assertionError("Should only compare child_ events.");var n=new Lt(t.childName,t.snapshotNode),r=new Lt(e.childName,e.snapshotNode);return this.index_.compare(n,r)},t}(),en=function(){function t(t,e){this.query_=t,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new ze(n.getIndex()),i=n.getNodeFilter();this.processor_=new Ze(i);var o=e.getServerCache(),a=e.getEventCache(),s=r.updateFullNode(ce.EMPTY_NODE,o.getNode(),null),u=i.updateFullNode(ce.EMPTY_NODE,a.getNode(),null),c=new We(s,o.isFullyInitialized(),r.filtersNodes()),l=new We(u,a.isFullyInitialized(),i.filtersNodes());this.viewCache_=new Ge(l,c),this.eventGenerator_=new tn(this.query_)}return t.prototype.getQuery=function(){return this.query_},t.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},t.prototype.getCompleteServerCache=function(t){var e=this.viewCache_.getCompleteServerSnap();return e&&(this.query_.getQueryParams().loadsAllData()||!t.isEmpty()&&!e.getImmediateChild(t.getFront()).isEmpty())?e.getChild(t):null},t.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},t.prototype.addEventRegistration=function(t){this.eventRegistrations_.push(t)},t.prototype.removeEventRegistration=function(t,e){var n=[];if(e){a.assert(null==t,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach(function(t){e=e;var i=t.createCancelEvent(e,r);i&&n.push(i)})}if(t){for(var i=[],o=0;o<this.eventRegistrations_.length;++o){var s=this.eventRegistrations_[o];if(s.matches(t)){if(t.hasAnyCallback()){i=i.concat(this.eventRegistrations_.slice(o+1));break}}else i.push(s)}this.eventRegistrations_=i}else this.eventRegistrations_=[];return n},t.prototype.applyOperation=function(t,e,n){t.type===Re.MERGE&&null!==t.source.queryId&&(a.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full c
640ache before handling merges"),a.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,i=this.processor_.applyOperation(r,t,e,n);return this.processor_.assertIndexed(i.viewCache),a.assert(i.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=i.viewCache,this.generateEventsForChanges_(i.changes,i.viewCache.getEventCache().getNode(),null)},t.prototype.getInitialEvents=function(t){var e=this.viewCache_.getEventCache(),n=[];if(!e.getNode().isLeafNode()){var r=e.getNode();r.forEachChild(Xt,function(t,e){n.push(Ke.childAddedChange(t,e))})}return e.isFullyInitialized()&&n.push(Ke.valueChange(e.getNode())),this.generateEventsForChanges_(n,e.getNode(),t)},t.prototype.generateEventsForChanges_=function(t,e,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(t,e,r)},t}(),nn=function(){function t(){this.views=new Map}return Object.defineProperty(t,"__referenceConstructor",{get:function(){return a.assert(Me,"Reference.ts has not been loaded"),Me},set:function(t){a.assert(!Me,"__referenceConstructor has already been defined"),Me=t},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return 0===this.views.size},t.prototype.applyOperation=function(t,e,n){var r,i,s=t.source.queryId;if(null!==s){var u=this.views.get(s);return a.assert(null!=u,"SyncTree gave us an op for an invalid query."),u.applyOperation(t,e,n)}var c=[];try{for(var l=o.__values(this.views.values()),h=l.next();!h.done;h=l.next()){u=h.value;c=c.concat(u.applyOperation(t,e,n))}}catch(f){r={error:f}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return c},t.prototype.addEventRegistration=function(t,e,n,r,i){var o=t.queryIdentifier(),a=this.views.get(o);if(!a){var s=n.calcCompleteEventCache(i?r:null),u=!1;s?u=!0:r instanceof ce?(s=n.calcCompleteEventChildren(r),u=!1):(s=ce.EMPTY_NODE,u=!1);var c=new Ge(new We(s,u,!1),new We(r,i,!1));a=new en(t,c),this.views.set(o,a)}return a.addEventRegistration(e),a.getInitialEvents(e)},t.prototype.removeEventRegistration=function(e,n,r){var i,a,s=e.queryIdentifier(),u=[],c=[],l=this.hasCompleteView();if("default"===s)try{for(var h=o.__values(this.views.entries()),f=h.next();!f.done;f=h.next()){var p=o.__read(f.value,2),d=p[0],v=p[1];c=c.concat(v.removeEventRegistration(n,r)),v.isEmpty()&&(this.views.delete(d),v.getQuery().getQueryParams().loadsAllData()||u.push(v.getQuery()))}}catch(g){i={error:g}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}else{v=this.views.get(s);v&&(c=c.concat(v.removeEventRegistration(n,r)),v.isEmpty()&&(this.views.delete(s),v.getQuery().getQueryParams().loadsAllData()||u.push(v.getQuery())))}return l&&!this.hasCompleteView()&&u.push(new t.__referenceConstructor(e.repo,e.path)),{removed:u,events:c}},t.prototype.getQueryViews=function(){var t,e,n=[];try{for(var r=o.__values(this.views.values()),i=r.next();!i.done;i=r.next()){var a=i.value;a.getQuery().getQueryParams().loadsAllData()||n.push(a)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},t.prototype.getCompleteServerCache=function(t){var e,n,r=null;try{for(var i=o.__values(this.views.values()),a=i.next();!a.done;a=i.next()){var s=a.value;r=r||s.getCompleteServerCache(t)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t.prototype.viewForQuery=function(t){var e=t.getQueryParams();if(e.loadsAllData())return this.getCompleteView();var n=t.queryIdentifier();return this.views.get(n)},t.prototype.viewExistsForQuery=function(t){return null!=this.viewForQuery(t)},t.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},t.prototype.getCompleteView=function(){var t,e;try{for(var n=o.__values(this.views.values()),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getQuery().getQueryParams().loadsAllData())return i}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return null},t}(),rn=function(){function t(t){this.writeTree_=t}return t.prototype.addWrite=function(e,n){if(e.isEmpty())return new t(new Ve(n));var r=this.writeTree_.findRootMostValueAndPath(e);if(null!=r){var i=r.path,o=r.value,a=$.relativePath(i,e);return o=o.updateChild(a,n),new t(this.writeTree_.set(i,o))}var s=new Ve(n),u=this.writeTree_.setTree(e,s);return new t(u)},t.prototype.addWrites=function(t,e){var n=this;return F(e,function(e,r){n=n.addWrite(t.child(e),r)}),n},t.prototype.removeWrite=function(e){if(e.isEmpty())return t.Empty;var n=this.writeTree_.setTree(e,Ve.Empty);return new t(n)},t.prototype.hasCompleteWrite=function(t){return null!=this.getCompleteNode(t)},t.prototype.getCompleteNode=function(t){var e=this.writeTree_.findRootMostValueAndPath(t);return null!=e?this.writeTree_.get(e.path).getChild($.relativePath(e.path,t)):null},t.prototype.getCompleteChildren=function(){var t=[],e=this.writeTree_.value;return null!=e?e.isLeafNode()||e.forEachChild(Xt,function(e,n){t.push(new Lt(e,n))}
640):this.writeTree_.children.inorderTraversal(function(e,n){null!=n.value&&t.push(new Lt(e,n.value))}),t},t.prototype.childCompoundWrite=function(e){if(e.isEmpty())return this;var n=this.getCompleteNode(e);return new t(null!=n?new Ve(n):this.writeTree_.subtree(e))},t.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},t.prototype.apply=function(t){return on($.Empty,this.writeTree_,t)},t.Empty=new t(new Ve(null)),t}();
641/**
642 * @license
643 * Copyright 2017 Google LLC
644 *
645 * Licensed under the Apache License, Version 2.0 (the "License");
646 * you may not use this file except in compliance with the License.
647 * You may obtain a copy of the License at
648 *
649 *   http://www.apache.org/licenses/LICENSE-2.0
650 *
651 * Unless required by applicable law or agreed to in writing, software
652 * distributed under the License is distributed on an "AS IS" BASIS,
653 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
654 * See the License for the specific language governing permissions and
655 * limitations under the License.
656 */function on(t,e,n){if(null!=e.value)return n.updateChild(t,e.value);var r=null;return e.children.inorderTraversal(function(e,i){".priority"===e?(a.assert(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):n=on(t.child(e),i,n)}),n.getChild(t).isEmpty()||null===r||(n=n.updateChild(t.child(".priority"),r)),n}
657/**
658 * @license
659 * Copyright 2017 Google LLC
660 *
661 * Licensed under the Apache License, Version 2.0 (the "License");
662 * you may not use this file except in compliance with the License.
663 * You may obtain a copy of the License at
664 *
665 *   http://www.apache.org/licenses/LICENSE-2.0
666 *
667 * Unless required by applicable law or agreed to in writing, software
668 * distributed under the License is distributed on an "AS IS" BASIS,
669 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
670 * See the License for the specific language governing permissions and
671 * limitations under the License.
672 */var an=function(){function t(){this.visibleWrites_=rn.Empty,this.allWrites_=[],this.lastWriteId_=-1}return t.prototype.childWrites=function(t){return new sn(t,this)},t.prototype.addOverwrite=function(t,e,n,r){a.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:t,snap:e,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(t,e)),this.lastWriteId_=n},t.prototype.addMerge=function(t,e,n){a.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:t,children:e,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(t,e),this.lastWriteId_=n},t.prototype.getWrite=function(t){for(var e=0;e<this.allWrites_.length;e++){var n=this.allWrites_[e];if(n.writeId===t)return n}return null},t.prototype.removeWrite=function(t){var e=this,n=this.allWrites_.findIndex(function(e){return e.writeId===t});a.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);var i=r.visible,o=!1,s=this.allWrites_.length-1;while(i&&s>=0){var u=this.allWrites_[s];u.visible&&(s>=n&&this.recordContainsPath_(u,r.path)?i=!1:r.path.contains(u.path)&&(o=!0)),s--}if(i){if(o)return this.resetTree_(),!0;if(r.snap)this.visibleWrites_=this.visibleWrites_.removeWrite(r.path);else{var c=r.children;F(c,function(t){e.visibleWrites_=e.visibleWrites_.removeWrite(r.path.child(t))})}return!0}return!1},t.prototype.getCompleteWriteData=function(t){return this.visibleWrites_.getCompleteNode(t)},t.prototype.calcCompleteEventCache=function(e,n,r,i){if(r||i){var o=this.visibleWrites_.childCompoundWrite(e);if(!i&&o.isEmpty())return n;if(i||null!=n||o.hasCompleteWrite($.Empty)){var a=function(t){return(t.visible||i)&&(!r||!~r.indexOf(t.writeId))&&(t.path.contains(e)||e.contains(t.path))},s=t.layerTree_(this.allWrites_,a,e);l=n||ce.EMPTY_NODE;return s.apply(l)}return null}var u=this.visibleWrites_.getCompleteNode(e);if(null!=u)return u;var c=this.visibleWrites_.childCompoundWrite(e);if(c.isEmpty())return n;if(null!=n||c.hasCompleteWrite($.Empty)){var l=n||ce.EMPTY_NODE;return c.apply(l)}return null},t.prototype.calcCompleteEventChildren=function(t,e){var n=ce.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(t);if(r)return r.isLeafNode()||r.forEachChild(Xt,function(t,e){n=n.updateImmediateChild(t,e)}),n;if(e){var i=this.visibleWrites_.childCompoundWrite(t);return e.forEachChild(Xt,function(t,e){var r=i.childCompoundWrite(new $(t)).apply(e);n=n.updateImmediateChild(t,r)}
672),i.getCompleteChildren().forEach(function(t){n=n.updateImmediateChild(t.name,t.node)}),n}var o=this.visibleWrites_.childCompoundWrite(t);return o.getCompleteChildren().forEach(function(t){n=n.updateImmediateChild(t.name,t.node)}),n},t.prototype.calcEventCacheAfterServerOverwrite=function(t,e,n,r){a.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=t.child(e);if(this.visibleWrites_.hasCompleteWrite(i))return null;var o=this.visibleWrites_.childCompoundWrite(i);return o.isEmpty()?r.getChild(e):o.apply(r.getChild(e))},t.prototype.calcCompleteChild=function(t,e,n){var r=t.child(e),i=this.visibleWrites_.getCompleteNode(r);if(null!=i)return i;if(n.isCompleteForChild(e)){var o=this.visibleWrites_.childCompoundWrite(r);return o.apply(n.getNode().getImmediateChild(e))}return null},t.prototype.shadowingWrite=function(t){return this.visibleWrites_.getCompleteNode(t)},t.prototype.calcIndexedSlice=function(t,e,n,r,i,o){var a,s=this.visibleWrites_.childCompoundWrite(t),u=s.getCompleteNode($.Empty);if(null!=u)a=u;else{if(null==e)return[];a=s.apply(e)}if(a=a.withIndex(o),a.isEmpty()||a.isLeafNode())return[];var c=[],l=o.getCompare(),h=i?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),f=h.getNext();while(f&&c.length<r)0!==l(f,n)&&c.push(f),f=h.getNext();return c},t.prototype.recordContainsPath_=function(t,e){if(t.snap)return t.path.contains(e);for(var n in t.children)if(t.children.hasOwnProperty(n)&&t.path.child(n).contains(e))return!0;return!1},t.prototype.resetTree_=function(){this.visibleWrites_=t.layerTree_(this.allWrites_,t.DefaultFilter_,$.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},t.DefaultFilter_=function(t){return t.visible},t.layerTree_=function(t,e,n){for(var r=rn.Empty,i=0;i<t.length;++i){var o=t[i];if(e(o)){var s=o.path,u=void 0;if(o.snap)n.contains(s)?(u=$.relativePath(n,s),r=r.addWrite(u,o.snap)):s.contains(n)&&(u=$.relativePath(s,n),r=r.addWrite($.Empty,o.snap.getChild(u)));else{if(!o.children)throw a.assertionError("WriteRecord should have .snap or .children");if(n.contains(s))u=$.relativePath(n,s),r=r.addWrites(u,o.children);else if(s.contains(n))if(u=$.relativePath(s,n),u.isEmpty())r=r.addWrites($.Empty,o.children);else{var c=a.safeGet(o.children,u.getFront());if(c){var l=c.getChild(u.popFront());r=r.addWrite($.Empty,l)}}}}}return r},t}(),sn=function(){function t(t,e){this.treePath_=t,this.writeTree_=e}return t.prototype.calcCompleteEventCache=function(t,e,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,t,e,n)},t.prototype.calcCompleteEventChildren=function(t){return this.writeTree_.calcCompleteEventChildren(this.treePath_,t)},t.prototype.calcEventCacheAfterServerOverwrite=function(t,e,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,t,e,n)},t.prototype.shadowingWrite=function(t){return this.writeTree_.shadowingWrite(this.treePath_.child(t))},t.prototype.calcIndexedSlice=function(t,e,n,r,i){return this.writeTree_.calcIndexedSlice(this.treePath_,t,e,n,r,i)},t.prototype.calcCompleteChild=function(t,e){return this.writeTree_.calcCompleteChild(this.treePath_,t,e)},t.prototype.child=function(e){return new t(this.treePath_.child(e),this.writeTree_)},t}(),un=function(){function t(t){this.listenProvider_=t,this.syncPointTree_=Ve.Empty,this.pendingWriteTree_=new an,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return t.prototype.applyUserOverwrite=function(t,e,n,r){return this.pendingWriteTree_.addOverwrite(t,e,n,r),r?this.applyOperationToSyncPoints_(new qe(je.User,t,e)):[]},t.prototype.applyUserMerge=function(t,e,n){this.pendingWriteTree_.addMerge(t,e,n);var r=Ve.fromObject(e);return this.applyOperationToSyncPoints_(new He(je.User,t,r))},t.prototype.ackUserWrite=function(t,e){void 0===e&&(e=!1);var n=this.pendingWriteTree_.getWrite(t),r=this.pendingWriteTree_.removeWrite(t);if(r){var i=Ve.Empty;return null!=n.snap?i=i.set($.Empty,!0):F(n.children,function(t,e){i=i.set(new $(t),e)}),this.applyOperationToSyncPoints_(new Fe(n.path,i,e))}return[]},t.prototype.applyServerOverwrite=function(t,e){return this.applyOperationToSyncPoints_(new qe(je.Server,t,e))},t.prototype.applyServerMerge=function(t,e){var n=Ve.fromObject(e);return this.applyOperationToSyncPoints_(new He(je.Server,t,n))},t.prototype.applyListenComplete=function(t){return this.applyOperationToSyncPoints_(new Be(je.Server,t))},t.prototype.applyTaggedQueryOverwrite=function(e,n,r){var i=this.queryKeyForTag_(r);if(null!=i){var o=t.parseQueryKey_(i),a=o.path,s=o.queryId,u=$.relativePath(a,e),c=new qe(je.forServerTaggedQuery(s),u,n);return this.applyTaggedOperation_(a,c)}return[]},t.prototype.applyTaggedQueryMerge=function(e,n,r){var i=this.queryKeyForTag_(r);if(i){var o=t.parseQueryKey_(i),a=o.path,s=o.queryId,u=$.relativePath(a,e),c=Ve.fromObject(n),l=new He(je.forServerTaggedQuery(s),u,c);return this.applyTaggedOperation_(a,l)}return[]},t.prototype.applyTaggedListenComplete=function(e,n){var r=this.queryKeyForTag_(n);if(r){var i=t.parseQueryKey_(r),o=i.path,a=i.queryId,s=$.relativePath(o,e),u=new Be(je.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(o,u)}return[]},t.prototype.addEventRegistration=function(e,n){var r=e.path,i=null,o=!1;this.syncPointTree_.foreachOnPath(r,function(t,e){var n=$.relativePath(t,r);i=i||e.getCompleteServerCache(n),o=o||e.hasCompleteView()});var s,u=this.syncPointTree_.get(r);if(u?(o=o||u.hasCompleteView(),i=i||u.getCompleteServerCache($.Empty)):(u=new nn,this.syncPointTree_=this.syncPointTree_.set(r,u)),null!=i)s=!0;else{s=!1,i=ce.EMPTY_NODE;var c=this.syncPointTree_.subtree(r);c.foreachChild(function(t,e){var n=e.getCompleteServerCache($.Empty);n&&(i=i.updateImmediateChild(t,n))})}var l=u.viewExistsForQuery(e);if(!l&&!e.getQueryParams().loadsAllData()){var h=t.makeQueryKey_(e);a.assert(!this.queryToTagMap.has(h),"View does not exist, but we have a tag");var f=t.getNextQueryTag_();this.queryToTagMap.set(h,f),this.tagToQueryMap.set(f,h)}var p=this.pendingWriteTree_.childWrites(r),d=u.addEventRegistration(e,n,p,i,s);if(!l&&!o){var v=u.viewForQuery(e);d=d.concat(this.setupListener_(e,v))}return d},t.prototype.removeEventRegistration=function(e,n,r){var i=this,o=e.path,a=this.syncPointTree_.get(o),s=[];
672if(a&&("default"===e.queryIdentifier()||a.viewExistsForQuery(e))){var u=a.removeEventRegistration(e,n,r);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(o));var c=u.removed;s=u.events;var l=-1!==c.findIndex(function(t){return t.getQueryParams().loadsAllData()}),h=this.syncPointTree_.findOnPath(o,function(t,e){return e.hasCompleteView()});if(l&&!h){var f=this.syncPointTree_.subtree(o);if(!f.isEmpty())for(var p=this.collectDistinctViewsForSubTree_(f),d=0;d<p.length;++d){var v=p[d],g=v.getQuery(),m=this.createListenerForView_(v);this.listenProvider_.startListening(t.queryForListening_(g),this.tagForQuery_(g),m.hashFn,m.onComplete)}}if(!h&&c.length>0&&!r)if(l){var y=null;this.listenProvider_.stopListening(t.queryForListening_(e),y)}else c.forEach(function(e){var n=i.queryToTagMap.get(t.makeQueryKey_(e));i.listenProvider_.stopListening(t.queryForListening_(e),n)});this.removeTags_(c)}return s},t.prototype.calcCompleteEventCache=function(t,e){var n=!0,r=this.pendingWriteTree_,i=this.syncPointTree_.findOnPath(t,function(e,n){var r=$.relativePath(e,t),i=n.getCompleteServerCache(r);if(i)return i});return r.calcCompleteEventCache(t,i,e,n)},t.prototype.collectDistinctViewsForSubTree_=function(t){return t.fold(function(t,e,n){if(e&&e.hasCompleteView()){var r=e.getCompleteView();return[r]}var i=[];return e&&(i=e.getQueryViews()),F(n,function(t,e){i=i.concat(e)}),i})},t.prototype.removeTags_=function(e){for(var n=0;n<e.length;++n){var r=e[n];if(!r.getQueryParams().loadsAllData()){var i=t.makeQueryKey_(r),o=this.queryToTagMap.get(i);this.queryToTagMap.delete(i),this.tagToQueryMap.delete(o)}}},t.queryForListening_=function(t){return t.getQueryParams().loadsAllData()&&
672!t.getQueryParams().isDefault()?t.getRef():t},t.prototype.setupListener_=function(e,n){var r=e.path,i=this.tagForQuery_(e),o=this.createListenerForView_(n),s=this.listenProvider_.startListening(t.queryForListening_(e),i,o.hashFn,o.onComplete),u=this.syncPointTree_.subtree(r);if(i)a.assert(!u.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var c=u.fold(function(t,e,n){if(!t.isEmpty()&&e&&e.hasCompleteView())return[e.getCompleteView().getQuery()];var r=[];return e&&(r=r.concat(e.getQueryViews().map(function(t){return t.getQuery()}))),F(n,function(t,e){r=r.concat(e)}),r}),l=0;l<c.length;++l){var h=c[l];this.listenProvider_.stopListening(t.queryForListening_(h),this.tagForQuery_(h))}return s},t.prototype.createListenerForView_=function(t){var e=this,n=t.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){var e=t.getServerCache()||ce.EMPTY_NODE;return e.hash()},onComplete:function(t){if("ok"===t)return r?e.applyTaggedListenComplete(n.path,r):e.applyListenComplete(n.path);var i=q(t,n);return e.removeEventRegistration(n,null,i)}}},t.makeQueryKey_=function(t){return t.path.toString()+"$"+t.queryIdentifier()},t.parseQueryKey_=function(t){var e=t.indexOf("$");return a.assert(-1!==e&&e<t.length-1,"Bad queryKey."),{queryId:t.substr(e+1),path:new $(t.substr(0,e))}},t.prototype.queryKeyForTag_=function(t){return this.tagToQueryMap.get(t)},t.prototype.tagForQuery_=function(e){var n=t.makeQueryKey_(e);return this.queryToTagMap.get(n)},t.getNextQueryTag_=function(){return t.nextQueryTag_++},t.prototype.applyTaggedOperation_=function(t,e){var n=this.syncPointTree_.get(t);a.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(t);return n.applyOperation(e,r,null)},t.prototype.applyOperationToSyncPoints_=function(t){return this.applyOperationHelper_(t,this.syncPointTree_,null,this.pendingWriteTree_.childWrites($.Empty))},t.prototype.applyOperationHelper_=function(t,e,n,r){if(t.path.isEmpty())return this.applyOperationDescendantsHelper_(t,e,n,r);var i=e.get($.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache($.Empty));var o=[],a=t.path.getFront(),s=t.operationForChild(a),u=e.children.get(a);if(u&&s){var c=n?n.getImmediateChild(a):null,l=r.child(a);o=o.concat(this.applyOperationHelper_(s,u,c,l))}return i&&(o=o.concat(i.applyOperation(t,r,n))),o},t.prototype.applyOperationDescendantsHelper_=function(t,e,n,r){var i=this,o=e.get($.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache($.Empty));var a=[];return e.children.inorderTraversal(function(e,o){var s=n?n.getImmediateChild(e):null,u=r.child(e),c=t.operationForChild(e);c&&(a=a.concat(i.applyOperationDescendantsHelper_(c,o,s,u)))}),o&&(a=a.concat(o.applyOperation(t,r,n))),a},t.nextQueryTag_=1,t}(),cn=function(){function t(){this.rootNode_=ce.EMPTY_NODE}return t.prototype.getNode=function(t){return this.rootNode_.getChild(t)},t.prototype.updateSnapshot=function(t,e){this.rootNode_=this.rootNode_.updateChild(t,e)},t}(),ln=function(){function t(){this.counters_={}}return t.prototype.incrementCounter=function(t,e){void 0===e&&(e=1),a.contains(this.counters_,t)||(this.counters_[t]=0),this.counters_[t]+=e},t.prototype.get=function(){return a.deepCopy(this.counters_)},t}(),hn=function(){function t(){}return t.getCollection=function(t){var e=t.toString();return this.collections_[e]||(this.collections_[e]=new ln),this.collections_[e]},t.getOrCreateReporter=function(t,e){var n=t.toString();return this.reporters_[n]||(this.reporters_[n]=e()),this.reporters_[n]},t.collections_={},t.reporters_={},t}(),fn=function(){function t(t){this.collection_=t,this.last_=null}return t.prototype.get=function(){var t=this.collection_.get(),e=o.__assign({},t);return this.last_&&F(this.last_,function(t,n){e[t]=e[t]-n}),this.last_=t,e},t}(),pn=1e4,dn=3e4,vn=3e5,gn=function(){function t(t,e){this.server_=e,this.statsToReport_={},this.statsListener_=new fn(t);var n=pn+(dn-pn)*Math.random();z(this.reportStats_.bind(this),Math.floor(n))}return t.prototype.includeStat=function(t){this.statsToReport_[t]=!0},t.prototype.reportStats_=function(){var t=this,e=this.statsListener_.get(),n={},r=!1;F(e,function(e,i){i>0&&a.contains(t.statsToReport_,e)&&(n[e]=i,r=!0)}),r&&this.server_.reportStats(n),z(this.reportStats_.bind(this),Math.floor(2*Math.random()*vn))},t}(),mn=function(){function t(){this.eventLists_=[],this.recursionDepth_=0}return t.prototype.queueEvents=function(t){for(var e=null,n=0;n<t.length;n++){var r=t[n],i=r.getPath();null===e||i.equals(e.getPath())||(this.eventLists_.push(e),e=null),null===e&&(e=new yn(i)),e.add(r)}e&&this.eventLists_.push(e)},t.prototype.raiseEventsAtPath=function(t,e){this.queueEvents(e),this.raiseQueuedEventsMatchingPredicate_(function(e){return e.equals(t)})},t.prototype.raiseEventsForChangedPath=function(t,e){this.queueEvents(e),this.raiseQueuedEventsMatchingPredicate_(function(e){return e.contains(t)||t.contains(e)})},t.prototype.raiseQueuedEventsMatchingPredicate_=function(t){this.recursionDepth_++;for(var e=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r){var i=r.getPath();t(i)?(this.eventLists_[n].raise(),this.eventLists_[n]=null):e=!1}}e&&(this.eventLists_=[]),this.recursionDepth_--},t}(),yn=function(){function t(t){this.path_=t,this.events_=[]}
672return t.prototype.add=function(t){this.events_.push(t)},t.prototype.raise=function(){for(var t=0;t<this.events_.length;t++){var e=this.events_[t];if(null!==e){this.events_[t]=null;var n=e.getEventRunner();_&&I("event: "+e.toString()),G(n)}}},t.prototype.getPath=function(){return this.path_},t}(),bn=function(){function t(t){this.allowedEvents_=t,this.listeners_={},a.assert(Array.isArray(t)&&t.length>0,"Requires a non-empty array")}return t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Array.isArray(this.listeners_[t]))for(var r=o.__spread(this.listeners_[t]),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,e)},t.prototype.on=function(t,e,n){this.validateEventType_(t),this.listeners_[t]=this.listeners_[t]||[],this.listeners_[t].push({callback:e,context:n});var r=this.getInitialEvent(t);r&&e.apply(n,r)},t.prototype.off=function(t,e,n){this.validateEventType_(t);for(var r=this.listeners_[t]||[],i=0;i<r.length;i++)if(r[i].callback===e&&(!n||n===r[i].context))return void r.splice(i,1)},t.prototype.validateEventType_=function(t){a.assert(this.allowedEvents_.find(function(e){return e===t}),"Unknown event: "+t)},t}(),_n=function(t){function e(){var e,n,r=t.call(this,["visible"])||this;return"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document["hidden"]?(n="visibilitychange",e="hidden"):"undefined"!==typeof document["mozHidden"]?(n="mozvisibilitychange",e="mozHidden"):"undefined"!==typeof document["msHidden"]?(n="msvisibilitychange",e="msHidden"):"undefined"!==typeof document["webkitHidden"]&&(n="webkitvisibilitychange",e="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,function(){var t=!document[e];t!==r.visible_&&(r.visible_=t,r.trigger("visible",t))},!1),r}return o.__extends(e,t),e.getInstance=function(){return new e},e.prototype.getInitialEvent=function(t){return a.assert("visible"===t,"Unknown event type: "+t),[this.visible_]},e}(bn),wn=function(t){function e(){var e=t.call(this,["online"])||this;return e.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||a.isMobileCordova()||(window.addEventListener("online",function(){e.online_||(e.online_=!0,e.trigger("online",!0))},!1),window.addEventListener("offline",function(){e.online_&&(e.online_=!1,e.trigger("online",!1))},!1)),e}return o.__extends(e,t),e.getInstance=function(){return new e},e.prototype.getInitialEvent=function(t){return a.assert("online"===t,"Unknown event type: "+t),[this.online_]},e.prototype.currentlyOnline=function(){return this.online_},e}(bn),En=function(){function t(t){this.onMessage_=t,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return t.prototype.closeAfter=function(t,e){this.closeAfterResponse=t,this.onClose=e,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},t.prototype.handleResponse=function(t,e){var n=this;this.pendingResponses[t]=e;var r=function(){var t=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var e=function(e){t[e]&&G(function(){n.onMessage_(t[e])})},r=0;r<t.length;++r)e(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;while(this.pendingResponses[this.currentResponseNum]){var o=r();if("break"===o)break}},t}(),In="start",Tn="close",Sn="pLPCommand",Cn="pRTLPCB",An="id",Nn="pw",kn="ser",On="cb",xn="seg",Dn="ts",Rn="d",Pn="dframe",Ln=1870,Mn=30,jn=Ln-Mn,Fn=25e3,Un=3e4,Vn=function(){function t(t,e,n,r,i){this.connId=t,this.repoInfo=e,this.applicationId=n,this.transportSessionId=r,this.lastSessionId=i,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=T(t),this.stats_=hn.getCollection(e),this.urlFn=function(t){return e.connectionURL(ot,t)}}return t.prototype.open=function(t,e){var n=this;this.curSegmentNum=0,this.onDisconnect_=e,this.myPacketOrderer=new En(t),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null},Math.floor(Un)),O(function(){if(!n.isClosed_){n.scriptTagHolder=new Bn(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.__read(t,5),i=r[0],a=r[1],s=r[2];r[3],r[4];if(n.incrementIncomingBytes_(t),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,i===In)n.id=a,n.password=s;else{if(i!==Tn)throw new Error("Unrecognized command received: "+i);a?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(a,function(){n.onClosed_()})):n.onClosed_()}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.__read(t,2),i=r[0],a=r[1];n.incrementIncomingBytes_(t),n.myPacketOrderer.handleResponse(i,a)},function(){n.onClosed_()},n.urlFn);var t={};t[In]="t",t[kn]=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(t[On]=n.scriptTagHolder.uniqueCallbackIdentifier),t[X]=Y,n.transportSessionId&&(t[J]=n.transportSessionId),n.lastSessionId&&(t[nt]=n.lastSessionId),n.applicationId&&(t[rt]=n.applicationId),"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf(et)&&(t[Z]=tt);var e=n.urlFn(t);n.log_("Connecting via long-poll to "+e),n.scriptTagHolder.addTag(e,function(){})}})},t.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},t.forceAllow=function(){t.forceAllow_=!0},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){return!a.isNodeSdk()&&(!!t.forceAllow_||!t.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!V()&&!B())},t.prototype.markConnectionHealthy=function(){},t.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},t.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},t.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},t.prototype.send=function(t){var e=a.stringify(t);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);for(var n=a.base64Encode(e),r=j(n,jn),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},t.prototype.addDisconnectPingFrame=function(t,e){if(!a.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={};n[Pn]="t",n[An]=t,n[Nn]=e,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},t.prototype.incrementIncomingBytes_=function(t){var e=a.stringify(t).length;this.bytesReceived+=e,this.stats_.incrementCounter("bytes_received",e)},t}(),Bn=function(){function t(e,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,a.isNodeSdk())this.commandCB=e,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=m(),window[Sn+this.uniqueCallbackIdentifier]=e,window[Cn+this.uniqueCallbackIdentifier]=n,this.myIFrame=t.createI
672Frame_();var o="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length)){var s=document.domain;o='<script>document.domain="'+s+'";<\/script>'}var u="<html><body>"+o+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(u),this.myIFrame.doc.close()}catch(c){I("frame writing exception"),c.stack&&I(c.stack),I(c)}}}return t.createIFrame_=function(){var t=document.createElement("iframe");if(t.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(t);try{var e=t.contentWindow.document;e||I("No IE domain setting required")}catch(r){var n=document.domain;t.src="javascript:void((function(){document.open();document.domain='"+n+"';document.close();})())"}return t.contentDocument?t.doc=t.contentDocument:t.contentWindow?t.doc=t.contentWindow.document:t.document&&(t.doc=t.document),t},t.prototype.close=function(){var t=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==t.myIFrame&&(document.body.removeChild(t.myIFrame),t.myIFrame=null)},Math.floor(0)));var e=this.onDisconnect;e&&(this.onDisconnect=null,e())},t.prototype.startLongPoll=function(t,e){this.myID=t,this.myPW=e,this.alive=!0;while(this.newRequest_());},t.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var t={};t[An]=this.myID,t[Nn]=this.myPW,t[kn]=this.currentSerial;var e=this.urlFn(t),n="",r=0;while(this.pendingSegs.length>0){var i=this.pendingSegs[0];if(!(i.d.length+Mn+n.length<=Ln))break;var o=this.pendingSegs.shift();n=n+"&"+xn+r+"="+o.seg+"&"+Dn+r+"="+o.ts+"&"+Rn+r+"="+o.d,r++}return e+=n,this.addLongPollTag_(e,this.currentSerial),!0}return!1},t.prototype.enqueueSegment=function(t,e,n){this.pendingSegs.push({seg:t,ts:e,d:n}),this.alive&&this.newRequest_()},t.prototype.addLongPollTag_=function(t,e){var n=this;this.outstandingRequests.add(e);var r=function(){n.outstandingRequests.delete(e),n.newRequest_()},i=setTimeout(r,Math.floor(Fn)),o=function(){clearTimeout(i),r()};this.addTag(t,o)},t.prototype.addTag=function(t,e){var n=this;a.isNodeSdk()?this.doNodeLongPoll(t,e):setTimeout(function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,r.onload=r.onreadystatechange=function(){var t=r.readyState;t&&"loaded"!==t&&"complete"!==t||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),e())},r.onerror=function(){I("Long-poll script failed to load: "+t),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(i){}},Math.floor(1))},t}(),qn="";function Hn(t){qn=t}
673/**
674 * @license
675 * Copyright 2017 Google LLC
676 *
677 * Licensed under the Apache License, Version 2.0 (the "License");
678 * you may not use this file except in compliance with the License.
679 * You may obtain a copy of the License at
680 *
681 *   http://www.apache.org/licenses/LICENSE-2.0
682 *
683 * Unless required by applicable law or agreed to in writing, software
684 * distributed under the License is distributed on an "AS IS" BASIS,
685 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
686 * See the License for the specific language governing permissions and
687 * limitations under the License.
688 */var Wn=16384,Gn=45e3,Kn=null;"undefined"!==typeof MozWebSocket?Kn=MozWebSocket:"undefined"!==typeof WebSocket&&(Kn=WebSocket);var zn=function(){function t(e,n,r,i,o){this.connId=e,this.applicationId=r,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=T(this.connId),this.stats_=hn.getCollection(n),this.connURL=t.connectionURL_(n,i,o),this.nodeAdmin=n.nodeAdmin}return t.connectionURL_=function(t,e,n){var r={};return r[X]=Y,!a.isNodeSdk()&&"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf(et)&&(r[Z]=tt),e&&(r[J]=e),n&&(r[nt]=n),t.connectionURL(it,r)},t.prototype.open=function(t,e){var n=this;this.onDisconnect=e,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,d.set("previous_websocket_failure",!0);try{if(a.isNodeSdk()){var i=this.nodeAdmin?"AdminNode":"Node",o={headers:{"User-Agent":"Firebase/"+Y+"/"+qn+"/"+r.platform+"/"+i,"X-Firebase-GMPID":this.applicationId||""}},s=Object({NODE_ENV:"production",BASE_URL:"/"}),u=0===this.connURL.indexOf("wss://")?s["HTTPS_PROXY"]||s["https_proxy"]:s["HTTP_PROXY"]||s["http_proxy"];u&&(o["proxy"]={origin:u}),this.mySock=new Kn(this.connURL,[],o)}else{o={headers:{"X-Firebase-GMPID":this.applicationId||""}};this.mySock=new Kn(this.connURL,[],o)}}catch(l){this.log_("Error instantiating WebSocket.");var c=l.message||l.data;return c&&this.log_(c),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0}
688,this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(t){n.handleIncomingFrame(t)},this.mySock.onerror=function(t){n.log_("WebSocket error.  Closing connection.");var e=t.message||t.data;e&&n.log_(e),n.onClosed_()}},t.prototype.start=function(){},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){var e=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(e=!0)}return!e&&null!==Kn&&!t.forceDisallow_},t.previouslyFailed=function(){return d.isInMemoryStorage||!0===d.get("previous_websocket_failure")},t.prototype.markConnectionHealthy=function(){d.remove("previous_websocket_failure")},t.prototype.appendFrame_=function(t){if(this.frames.push(t),this.frames.length===this.totalFrames){var e=this.frames.join("");this.frames=null;var n=a.jsonEval(e);this.onMessage(n)}},t.prototype.handleNewFrameCount_=function(t){this.totalFrames=t,this.frames=[]},t.prototype.extractFrameCount_=function(t){if(a.assert(null===this.frames,"We already have a frame buffer"),t.length<=6){var e=Number(t);if(!isNaN(e))return this.handleNewFrameCount_(e),null}return this.handleNewFrameCount_(1),t},t.prototype.handleIncomingFrame=function(t){if(null!==this.mySock){var e=t["data"];if(this.bytesReceived+=e.length,this.stats_.incrementCounter("bytes_received",e.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(e);else{var n=this.extractFrameCount_(e);null!==n&&this.appendFrame_(n)}}},t.prototype.send=function(t){this.resetKeepAlive();var e=a.stringify(t);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);var n=j(e,Wn);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},t.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},t.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},t.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},t.prototype.resetKeepAlive=function(){var t=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(function(){t.mySock&&t.sendString_("0"),t.resetKeepAlive()},Math.floor(Gn))},t.prototype.sendString_=function(t){try{this.mySock.send(t)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},t.responsesRequiredToBeHealthy=2,t.healthyTimeout=3e4,t}(),$n=function(){function t(t){this.initTransports_(t)}return Object.defineProperty(t,"ALL_TRANSPORTS",{get:function(){return[Vn,zn]},enumerable:!1,configurable:!0}),t.prototype.initTransports_=function(e){var n,r,i=zn&&zn["isAvailable"](),a=i&&!zn.previouslyFailed();if(e.webSocketOnly&&(i||A("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),a=!0),a)this.transports_=[zn];else{var s=this.transports_=[];try{for(var u=o.__values(t.ALL_TRANSPORTS),c=u.next();!c.done;c=u.next()){var l=c.value;l&&l["isAvailable"]()&&s.push(l)}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}},t.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},t.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},t}(),Qn=6e4,Yn=5e3,Xn=10240,Jn=102400,Zn="t",tr="d",er="s",nr="r",rr="e",ir="o",or="a",ar="n",sr="p",ur="h",cr=function(){function t(t,e,n,r,i,o,a,s){this.id=t,this.repoInfo_=e,this.applicationId_=n,this.onMessage_=r,this.onReady_=i,this.onDisconnect_=o,this.onKill_=a,this.lastSessionId=s,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=T("c:"+this.id+":"),this.transportManager_=new $n(e),this.log_("Connection created"),this.start_()}return t.prototype.start_=function(){var t=this,e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,void 0,this.lastSessionId),this.primaryResponsesRequired_=e["responsesRequiredToBeHealthy"]||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){t.conn_&&t.conn_.open(n,r)},Math.floor(0));var i=e["healthyTimeout"]||0;i>0&&(this.healthyTimeout_=z(function(){t.healthyTimeout_=null,t.isHealthy_||(t.conn_&&t.conn_.bytesReceived>
688Jn?(t.log_("Connection exceeded healthy timeout but has received "+t.conn_.bytesReceived+" bytes.  Marking connection healthy."),t.isHealthy_=!0,t.conn_.markConnectionHealthy()):t.conn_&&t.conn_.bytesSent>Xn?t.log_("Connection exceeded healthy timeout but has sent "+t.conn_.bytesSent+" bytes.  Leaving connection alive."):(t.log_("Closing unhealthy connection after timeout."),t.close()))},Math.floor(i)))},t.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},t.prototype.disconnReceiver_=function(t){var e=this;return function(n){t===e.conn_?e.onConnectionLost_(n):t===e.secondaryConn_?(e.log_("Secondary connection lost."),e.onSecondaryConnectionLost_()):e.log_("closing an old connection")}},t.prototype.connReceiver_=function(t){var e=this;return function(n){2!==e.state_&&(t===e.rx_?e.onPrimaryMessageReceived_(n):t===e.secondaryConn_?e.onSecondaryMessageReceived_(n):e.log_("message on old connection"))}},t.prototype.sendRequest=function(t){var e={t:"d",d:t};this.sendData_(e)},t.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},t.prototype.onSecondaryControl_=function(t){if(Zn in t){var e=t[Zn];e===or?this.upgradeIfSecondaryHealthy_():e===nr?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):e===ir&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},t.prototype.onSecondaryMessageReceived_=function(t){var e=L("t",t),n=L("d",t);if("c"===e)this.onSecondaryControl_(n);else{if("d"!==e)throw new Error("Unknown protocol layer: "+e);this.pendingDataMessages.push(n)}},t.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:sr,d:{}}}))},t.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:or,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:ar,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},t.prototype.onPrimaryMessageReceived_=function(t){var e=L("t",t),n=L("d",t);"c"===e?this.onControl_(n):"d"===e&&this.onDataMessage_(n)},t.prototype.onDataMessage_=function(t){this.onPrimaryResponse_(),this.onMessage_(t)},t.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},t.prototype.onControl_=function(t){var e=L(Zn,t);if(tr in t){var n=t[tr];if(e===ur)this.onHandshake_(n);else if(e===ar){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else e===er?this.onConnectionShutdown_(n):e===nr?this.onReset_(n):e===rr?S("Server Error: "+n):e===ir?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):S("Unknown control packet command: "+e)}},t.prototype.onHandshake_=function(t){var e=t.ts,n=t.v,r=t.h;this.sessionId=t.s,this.repoInfo_.updateHost(r),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,e),Y!==n&&A("Protocol version mismatch detected"),this.tryStartUpgrade_())},t.prototype.tryStartUpgrade_=function(){var t=this.transportManager_.upgradeTransport();t&&this.startUpgrade_(t)},t.prototype.startUpgrade_=function(t){var e=this;this.secondaryConn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.sessionId),this.secondaryResponsesRequired_=t["responsesRequiredToBeHealthy"]||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),z(function(){e.secondaryConn_&&(e.log_("Timed out trying to upgrade."),e.secondaryConn_.close())},Math.floor(Qn))},t.prototype.onReset_=function(t){this.log_("Reset packet received.  New host: "+t),this.repoInfo_.updateHost(t),1===this.state_?this.close():(this.closeConnections_(),this.start_())},t.prototype.onConnectionEstablished_=function(t,e){var n=this;this.log_("Realtime connection established."),this.conn_=t,this.state_=1,this.onReady_&&(this.onReady_(e,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):z(function(){n.sendPingOnPrimaryIfNecessary_()},Math.floor(Yn))},t.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:sr,d:{}}}))},t.prototype.onSecondaryConnectionLost_=function(){var t=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==t&&this.rx_!==t||this.close()},t.prototype.onConnectionLost_=function(t){this.conn_=null,t||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(d.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},t.prototype.onConnectionShutdown_=function(t){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(t),this.onKill_=null),this.onDisconnect_=null,this.close()},t.prototype.sendData_=function(t){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(t)},t.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},t.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},t}(),lr=function(){function t(){}return t.prototype.put=function(t,e,n,r){},t.prototype.merge=function(t,e,n,r){},t.prototype.refreshAuthToken=function(t){},t.prototype.onDisconnectPut=function(t,e,n){},t.prototype.onDisconnectMerge=function(t,e,n){},t.prototype.onDisconnectCancel=function(t,e){},t.prototype.reportStats=function(t){},t}
688(),hr=1e3,fr=3e5,pr=3e4,dr=1.3,vr=3e4,gr="server_kill",mr=3,yr=function(t){function e(n,r,i,o,s,u,c){var l=t.call(this)||this;if(l.repoInfo_=n,l.applicationId_=r,l.onDataUpdate_=i,l.onConnectStatus_=o,l.onServerInfoUpdate_=s,l.authTokenProvider_=u,l.authOverride_=c,l.id=e.nextPersistentConnectionId_++,l.log_=T("p:"+l.id+":"),l.interruptReasons_={},l.listens=new Map,l.outstandingPuts_=[],l.outstandingPutCount_=0,l.onDisconnectRequestQueue_=[],l.connected_=!1,l.reconnectDelay_=hr,l.maxReconnectDelay_=fr,l.securityDebugCallback_=null,l.lastSessionId=null,l.establishConnectionTimer_=null,l.visible_=!1,l.requestCBHash_={},l.requestNumber_=0,l.realtime_=null,l.authToken_=null,l.forceTokenRefresh_=!1,l.invalidAuthTokenCount_=0,l.firstConnection_=!0,l.lastConnectionAttemptTime_=null,l.lastConnectionEstablishedTime_=null,c&&!a.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return l.scheduleConnect_(0),_n.getInstance().on("visible",l.onVisible_,l),-1===n.host.indexOf("fblocal")&&wn.getInstance().on("online",l.onOnline_,l),l}return o.__extends(e,t),e.prototype.sendRequest=function(t,e,n){var r=++this.requestNumber_,i={r:r,a:t,b:e};this.log_(a.stringify(i)),a.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},e.prototype.listen=function(t,e,n,r){var i=t.queryIdentifier(),o=t.path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),a.assert(t.getQueryParams().isDefault()||!t.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),a.assert(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");var s={onComplete:r,hashFn:e,query:t,tag:n};this.listens.get(o).set(i,s),this.connected_&&this.sendListen_(s)},e.prototype.sendListen_=function(t){var n=this,r=t.query,i=r.path.toString(),o=r.queryIdentifier();this.log_("Listen on "+i+" for "+o);var a={p:i},s="q";t.tag&&(a["q"]=r.queryObject(),a["t"]=t.tag),a["h"]=t.hashFn(),this.sendRequest(s,a,function(a){var s=a["d"],u=a["s"];e.warnOnListenWarnings_(s,r);var c=n.listens.get(i)&&n.listens.get(i).get(o);c===t&&(n.log_("listen response",a),"ok"!==u&&n.removeListen_(i,o),t.onComplete&&t.onComplete(u,s))})},e.warnOnListenWarnings_=function(t,e){if(t&&"object"===typeof t&&a.contains(t,"w")){var n=a.safeGet(t,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+e.getQueryParams().getIndex().toString()+'"',i=e.path.toString();A("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},e.prototype.refreshAuthToken=function(t){this.authToken_=t,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},function(){}),this.reduceReconnectDelayIfAdminCredential_(t)},e.prototype.reduceReconnectDelayIfAdminCredential_=function(t){var e=t&&40===t.length;(e||a.isAdmin(t))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=pr)},e.prototype.tryAuth=function(){var t=this;if(this.connected_&&this.authToken_){var e=this.authToken_,n=a.isValidFormat(e)?"auth":"gauth",r={cred:e};null===this.authOverride_?r["noauth"]=!0:"object"===typeof this.authOverride_&&(r["authvar"]=this.authOverride_),this.sendRequest(n,r,function(n){var r=n["s"],i=n["d"]||"error";t.authToken_===e&&("ok"===r?t.invalidAuthTokenCount_=0:t.onAuthRevoked_(r,i))})}},e.prototype.unlisten=function(t,e){var n=t.path.toString(),r=t.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),a.assert(t.getQueryParams().isDefault()||!t.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query");var i=this.removeListen_(n,r);i&&this.connected_&&this.sendUnlisten_(n,r,t.queryObject(),e)},e.prototype.sendUnlisten_=function(t,e,n,r){this.log_("Unlisten on "+t+" for "+e);var i={p:t},o="n";r&&(i["q"]=n,i["t"]=r),this.sendRequest(o,i)},e.prototype.onDisconnectPut=function(t,e,n){this.connected_?this.sendOnDisconnect_("o",t,e,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"o",data:e,onComplete:n})},e.prototype.onDisconnectMerge=function(t,e,n){this.connected_?this.sendOnDisconnect_("om",t,e,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"om",data:e,onComplete:n})},e.prototype.onDisconnectCancel=function(t,e){this.connected_?this.sendOnDisconnect_("oc",t,null,e):this.onDisconnectRequestQueue_.push({pathString:t,action:"oc",data:null,onComplete:e})},e.prototype.sendOnDisconnect_=function(t,e,n,r){var i={p:e,d:n};this.log_("onDisconnect "+t,i),this.sendRequest(t,i,function(t){r&&setTimeout(function(){r(t["s"],t["d"])},Math.floor(0))})},e.prototype.put=function(t,e,n,r){this.putInternal("p",t,e,n,r)},e.prototype.merge=function(t,e,n,r){this.putInternal("m",t,e,n,r)},e.prototype.putInternal=function(t,e,n,r,i){var o={p:e,d:n};void 0!==i&&(o["h"]=i),this.outstandingPuts_.push({action:t,request:o,onComplete:r}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+e)},e.prototype.sendPut_=function(t){var e=this,n=this.outstandingPuts_[t].action,r=this.outstandingPuts_[t].request,i=this.outstandingPuts_[t].onComplete;this.outstandingPuts_[t].queued=this.connected_,this.sendRequest(n,r,function(r){e.log_(n+" response",r),delete e.outstandingPuts_[t],e.outstandingPutCount_--,0===e.outstandingPutCount_&&(e.outstandingPuts_=[]),i&&i(r["s"],r["d"])})},e.prototype.reportStats=function(t){var e=this;if(this.connected_){var n={c:t};this.log_("reportStats",n),this.sendRequest("s",n,function(t){var n=t["s"];if("ok"!==n){var r=t["d"];e.log_("reportStats","Error sending stats: "+r)}})}},e.prototype.onDataMessage_=function(t){if("r"in t){this.log_("from server: "+a.stringify(t));var e=t["r"],n=this.requestCBHash_[e];n&&(delete this.requestCBHash_[e],n(t["b"]))}else{if("error"in t)throw"A server-side error has occurred: "+t["error"];"a"in t&&this.onDataPush_(t["a"],t["b"])}},e.prototype.onDataPush_=function(t,e){this.log_("handleServerMessage",t,e),"d"===t?this.onDataUpdate_(e["p"],e["d"],!1,e["t"]):"m"===t?this.onDataUpdate_(e["p"],e["d"],!0,e["t"]):"c"===t?this.onListenRevoked_(e["p"],e["q"]):"ac"===t?this.onAuthRevoked_(e["s"],e["d"]):"sd"===t?this.onSecurityDebugPacket_(e):S("Unrecognized action received from server: "+a.stringify(t)+"\nAre you using the latest client?")},e.prototype.onReady_=function(t,e){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(t),this.lastSessionId=e,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},e.prototype.scheduleConnect_=function(t){var e=this;a.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(function(){e.establishConnectionTimer_=null,e.establishConnection_()},Math.floor(t))},e.prototype.onVisible_=function(t){t&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=hr,this.realtime_||this.scheduleConnect_(0)),this.visible_=t},e.prototype.onOnline_=function(t){t?(this.log_("Browser went online."),this.reconnectDelay_=hr,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},e.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){var t=(new Date).getTime()-this.lastConnectionEstablishedTime_;t>vr&&(this.reconnectDelay_=hr),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,n=Math.max(0,this.reconnectDelay_-e);
688n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*dr)}this.onConnectStatus_(!1)},e.prototype.establishConnection_=function(){var t=this;if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var n=this.onDataMessage_.bind(this),r=this.onReady_.bind(this),i=this.onRealtimeDisconnect_.bind(this),o=this.id+":"+e.nextConnectionId_++,s=this,u=this.lastSessionId,c=!1,l=null,h=function(){l?l.close():(c=!0,i())},f=function(t){a.assert(l,"sendRequest call when we're not connected not allowed."),l.sendRequest(t)};this.realtime_={close:h,sendRequest:f};var p=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(p).then(function(t){c?I("getToken() completed but was canceled"):(I("getToken() completed. Creating connection."),s.authToken_=t&&t.accessToken,l=new cr(o,s.repoInfo_,s.applicationId_,n,r,i,function(t){A(t+" ("+s.repoInfo_.toString()+")"),s.interrupt(gr)},u))}).then(null,function(e){s.log_("Failed to get token: "+e),c||(t.repoInfo_.nodeAdmin&&A(e),h())})}},e.prototype.interrupt=function(t){I("Interrupting connection for reason: "+t),this.interruptReasons_[t]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},e.prototype.resume=function(t){I("Resuming connection for reason: "+t),delete this.interruptReasons_[t],a.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=hr,this.realtime_||this.scheduleConnect_(0))},e.prototype.handleTimestamp_=function(t){var e=t-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:e})},e.prototype.cancelSentTransactions_=function(){for(var t=0;t<this.outstandingPuts_.length;t++){var e=this.outstandingPuts_[t];e&&"h"in e.request&&e.queued&&(e.onComplete&&e.onComplete("disconnect"),delete this.outstandingPuts_[t],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},e.prototype.onListenRevoked_=function(t,e){var n;n=e?e.map(function(t){return M(t)}).join("$"):"default";var r=this.removeListen_(t,n);r&&r.onComplete&&r.onComplete("permission_denied")},e.prototype.removeListen_=function(t,e){var n,r=new $(t).toString();if(this.listens.has(r)){var i=this.listens.get(r);n=i.get(e),i.delete(e),0===i.size&&this.listens.delete(r)}else n=void 0;return n},e.prototype.onAuthRevoked_=function(t,e){I("Auth token revoked: "+t+"/"+e),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==t&&"permission_denied"!==t||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=mr&&(this.reconnectDelay_=pr,this.authTokenProvider_.notifyForInvalidToken()))},e.prototype.onSecurityDebugPacket_=function(t){this.securityDebugCallback_?this.securityDebugCallback_(t):"msg"in t&&console.log("FIREBASE: "+t["msg"].replace("\n","\nFIREBASE: "))},e.prototype.restoreState_=function(){var t,e,n,r;this.tryAuth();try{for(var i=o.__values(this.listens.values()),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var u=(n=void 0,o.__values(s.values())),c=u.next();!c.done;c=u.next()){var l=c.value;this.sendListen_(l)}}catch(p){n={error:p}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(d){t={error:d}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}for(var h=0;h<this.outstandingPuts_.length;h++)this.outstandingPuts_[h]&&this.sendPut_(h);while(this.onDisconnectRequestQueue_.length){var f=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(f.action,f.pathString,f.data,f.onComplete)}},e.prototype.sendConnectStats_=function(){var t={},e="js";a.isNodeSdk()&&(e=this.repoInfo_.nodeAdmin?"admin_node":"node"),t["sdk."+e+"."+qn.replace(/\./g,"-")]=1,a.isMobileCordova()?t["framework.cordova"]=1:a.isReactNative()&&(t["framework.reactnative"]=1),this.reportStats(t)},e.prototype.shouldReconnect_=function(){var t=wn.getInstance().currentlyOnline();return a.isEmpty(this.interruptReasons_)&&t},e.nextPersistentConnectionId_=0,e.nextConnectionId_=0,e}(lr),br=function(t){function e(e,n,r){var i=t.call(this)||this;return i.repoInfo_=e,i.onDataUpdate_=n,i.authTokenProvider_=r,i.log_=T("p:rest:"),i.listens_={},i}return o.__extends(e,t),e.prototype.reportStats=function(t){throw new Error("Method not implemented.")},e.getListenId_=function(t,e){return void 0!==e?"tag$"+e:(a.assert(t.getQueryParams().isDefault(),"should have a tag if it's not a default query."),t.path.toString())},e.prototype.listen=function(t,n,r,i){var o=this,s=t.path.toString();this.log_("Listen called for "+s+" "+t.queryIdentifier());var u=e.getListenId_(t,r),c={};this.listens_[u]=c;var l=t.getQueryParams().toRestQueryStringParameters();this.restRequest_(s+".json",l,function(t,e){var n,l=e;(404===t&&(l=null,t=null),null===t&&o.onDataUpdate_(s,l,!1,r),a.safeGet(o.listens_,u)===c)&&(n=t?401===t?"permission_denied":"rest_error:"+t:"ok",i(n,null))})},e.prototype.unlisten=function(t,n){var r=e.getListenId_(t,n);delete this.listens_[r]},e.prototype.refreshAuthToken=function(t){},e.prototype.restRequest_=function(t,e,n){var r=this;void 0===e&&(e={}),e["format"]="export",this.authTokenProvider_.getToken(!1).then(function(i){var o=i&&i.accessToken;o&&(e["auth"]=o);var s=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+t+"?ns="+r.repoInfo_.namespace+a.querystring(e);r.log_("Sending REST request for "+s);var u=new XMLHttpRequest;u.onreadystatechange=function(){if(n&&4===u.readyState){r.log_("REST Response for "+s+" received. status:",u.status,"response:",u.responseText);var t=null;if(u.status>=200&&u.status<300){try{t=a.jsonEval(u.responseText)}catch(e){A("Failed to parse JSON response for "+s+": "+u.responseText)}n(null,t)}else 401!==u.status&&404!==u.status&&A("Got unsuccessful REST response for "+s+" Status: "+u.status),n(u.status);n=null}},u.open("GET",s,!0),u.send()})},e}(lr),_r="repo_interrupt",wr=function(){function t(t,e,n,r){var i=this;if(this.repoInfo_=t,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new mn,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new Pe,this.persistentConnection_=null,this.stats_=hn.getCollection(t),e||K())this.server_=new br(this.repoInfo_,this.onDataUpdate_.bind(this),r),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var o=n.options["databaseAuthVariableOverride"];if("undefined"!==typeof o&&null!==o){if("object"!==typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{a.stringify(o)}catch(s){throw new Error("Invalid authOverride provided: "+s)}}this.persistentConnection_=new yr(this.repoInfo_,n.options.appId,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),r,o),this.server_=this.persistentConnection_}r.addTokenChangeListener(function(t){i.server_.refreshAuthToken(t)}),this.statsReporter_=hn.getOrCreateReporter(t,function(){return new gn(i.stats_,i.server_)}),this.transactionsInit_(),this.infoData_=new cn,this.infoSyncTree_=new un({startListening:function(t,e,n,r){var o=[],a=i.infoData_.getNode(t.path);return a.isEmpty()||(o=i.infoSyncTree_.applyServerOverwrite(t.path,a),setTimeout(function(){r("ok")},0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new un({startListening:function(t,e,n,r){return i.server_.listen(t,n,e,function(e,n){var o=r(e,n);i.eventQueue_.raiseEventsForChangedPath(t.path,o)}),[]},stopListening:function(t,e){i.server_.unlisten(t,e)}})}return t.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},t.prototype.name=function(){return this.repoInfo_.namespace},t.prototype.serverTime=function(){var t=this.infoData_.getNode(new $(".info/serverTimeOffset")),e=t.val()||0;return(new Date).getTime()+e},t.prototype.generateServerValues=function(){return Ce({timestamp:this.serverTime()})},t.prototype.onDataUpdate_=function(t,e,n,r){this.dataUpdateCount++;var i=new $(t);e=this.interceptServerDataCallback_?this.interceptServerDataCallback_(t,e):e;var o=[];if(r)if(n){var s=a.map(e,function(t){return pe(t)});o=this.serverSyncTree_.applyTaggedQueryMerge(i,s,r)}else{var u=pe(e);o=this.serverSyncTree_.applyTaggedQueryOverwrite(i,u,r)}else if(n){var c=a.map(e,function(t){return pe(t)});o=this.serverSyncTree_.applyServerMerge(i,c)}else{var l=pe(e);o=this.serverSyncTree_.applyServerOverwrite(i,l)}var h=i;o.length>0&&(h=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(h,o)},t.prototype.interceptServerData_=function(t){this.interceptServerDataCallback_=t},t.prototype.onConnectStatus_=function(t){this.updateInfo_("connected",t),!1===t&&this.runOnDisconnectEvents_()},t.prototype.onServerInfoUpdate_=function(t){var e=this;F(t,function(t,n){e.updateInfo_(t,n)})},t.prototype.updateInfo_=function(t,e){var n=new $("/.info/"+t),r=pe(e);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},t.prototype.getNextWriteId_=function(){return this.nextWriteId_++},t.prototype.setWithPriority=function(t,e,n,r){var i=this;this.log_("set",{path:t.toString(),value:e,priority:n});var o=this.generateServerValues(),a=pe(e,n),s=this.serverSyncTree_.calcCompleteEventCache(t),u=xe(a,s,o),c=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserOverwrite(t,u,c,!0);this.eventQueue_.queueEvents(l),this.server_.put(t.toString(),a.val(!0),function(e,n){var o="ok"===e;o||A("set at "+t+" failed: "+e);var a=i.serverSyncTree_.ackUserWrite(c,!o);i.eventQueue_.raiseEventsForChangedPath(t,a),i.callOnCompleteCallback(r,e,n)});var h=this.abortTransactions_(t);this.rerunTransactions_(h),this.eventQueue_.raiseEventsForChangedPath(h,[])},t.prototype.update=function(t,e,n){var r=this;this.log_("update",{path:t.toString(),value:e});var i=!0,o=this.generateServerValues(),a={};if(F(e,function(e,n){i=!1,a[e]=Oe(t.child(e),pe(n),r.serverSyncTree_,o)}),i)I("update() called with empty data.  Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserMerge(t,a,s);this.eventQueue_.queueEvents(u),this.server_.merge(t.toString(),e,function(e,i){var o="ok"===e;o||A("update at "+t+" failed: "+e);var a=r.serverSyncTree_.ackUserWrite(s,!o),u=a.length>0?r.rerunTransactions_(t):t;r.eventQueue_.raiseEventsForChangedPath(u,a),r.callOnCompleteCallback(n,e,i)}),F(e,function(e){var n=r.abortTransactions_(t.child(e));r.rerunTransactions_(n)}),this.eventQueue_.raiseEventsForChangedPath(t,[])}},t.prototype.runOnDisconnectEvents_=function(){var t=this;this.log_("onDisconnectEvents");var e=this.generateServerValues(),n=new Pe;this.onDisconnect_.forEachTree($.Empty,function(r,i){var o=Oe(r,i,t.serverSyncTree_,e);n.remember(r,o)});var r=[];
688n.forEachTree($.Empty,function(e,n){r=r.concat(t.serverSyncTree_.applyServerOverwrite(e,n));var i=t.abortTransactions_(e);t.rerunTransactions_(i)}),this.onDisconnect_=new Pe,this.eventQueue_.raiseEventsForChangedPath($.Empty,r)},t.prototype.onDisconnectCancel=function(t,e){var n=this;this.server_.onDisconnectCancel(t.toString(),function(r,i){"ok"===r&&n.onDisconnect_.forget(t),n.callOnCompleteCallback(e,r,i)})},t.prototype.onDisconnectSet=function(t,e,n){var r=this,i=pe(e);this.server_.onDisconnectPut(t.toString(),i.val(!0),function(e,o){"ok"===e&&r.onDisconnect_.remember(t,i),r.callOnCompleteCallback(n,e,o)})},t.prototype.onDisconnectSetWithPriority=function(t,e,n,r){var i=this,o=pe(e,n);this.server_.onDisconnectPut(t.toString(),o.val(!0),function(e,n){"ok"===e&&i.onDisconnect_.remember(t,o),i.callOnCompleteCallback(r,e,n)})},t.prototype.onDisconnectUpdate=function(t,e,n){var r=this;if(a.isEmpty(e))return I("onDisconnect().update() called with empty data.  Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(t.toString(),e,function(i,o){"ok"===i&&F(e,function(e,n){var i=pe(n);r.onDisconnect_.remember(t.child(e),i)}),r.callOnCompleteCallback(n,i,o)})},t.prototype.addEventCallbackForQuery=function(t,e){var n;n=".info"===t.path.getFront()?this.infoSyncTree_.addEventRegistration(t,e):this.serverSyncTree_.addEventRegistration(t,e),this.eventQueue_.raiseEventsAtPath(t.path,n)},t.prototype.removeEventCallbackForQuery=function(t,e){var n;n=".info"===t.path.getFront()?this.infoSyncTree_.removeEventRegistration(t,e):this.serverSyncTree_.removeEventRegistration(t,e),this.eventQueue_.raiseEventsAtPath(t.path,n)},t.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt(_r)},t.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume(_r)},t.prototype.stats=function(t){if(void 0===t&&(t=!1),"undefined"!==typeof console){var e;t?(this.statsListener_||(this.statsListener_=new fn(this.stats_)),e=this.statsListener_.get()):e=this.stats_.get();var n=Object.keys(e).reduce(function(t,e){return Math.max(e.length,t)},0);F(e,function(t,e){for(var r=t,i=t.length;i<n+2;i++)r+=" ";console.log(r+e)})}},t.prototype.statsIncrementCounter=function(t){this.stats_.incrementCounter(t),this.statsReporter_.includeStat(t)},t.prototype.log_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),I.apply(void 0,o.__spread([n],t))},t.prototype.callOnCompleteCallback=function(t,e,n){t&&G(function(){if("ok"===e)t(null);else{var r=(e||"error").toUpperCase(),i=r;n&&(i+=": "+n);var o=new Error(i);o.code=r,t(o)}})},Object.defineProperty(t.prototype,"database",{get:function(){return this.__database||(this.__database=new Pr(this))},enumerable:!1,configurable:!0}),t}(),Er=function(){function t(e){this.indexedFilter_=new ze(e.getIndex()),this.index_=e.getIndex(),this.startPost_=t.getStartPost_(e),this.endPost_=t.getEndPost_(e)}return t.prototype.getStartPost=function(){return this.startPost_},t.prototype.getEndPost=function(){return this.endPost_},t.prototype.matches=function(t){return this.index_.compare(this.getStartPost(),t)<=0&&this.index_.compare(t,this.getEndPost())<=0},t.prototype.updateChild=function(t,e,n,r,i,o){return this.matches(new Lt(e,n))||(n=ce.EMPTY_NODE),this.indexedFilter_.updateChild(t,e,n,r,i,o)},t.prototype.updateFullNode=function(t,e,n){e.isLeafNode()&&(e=ce.EMPTY_NODE);var r=e.withIndex(this.index_);r=r.updatePriority(ce.EMPTY_NODE);var i=this;return e.forEachChild(Xt,function(t,e){i.matches(new Lt(t,e))||(r=r.updateImmediateChild(t,ce.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(t,r,n)},t.prototype.updatePriority=function(t,e){return t},t.prototype.filtersNodes=function(){return!0},t.prototype.getIndexedFilter=function(){return this.indexedFilter_},t.prototype.getIndex=function(){return this.index_},t.getStartPost_=function(t){if(t.hasStart()){var e=t.getIndexStartName();return t.getIndex().makePost(t.getIndexStartValue(),e)}return t.getIndex().minPost()},t.getEndPost_=function(t){if(t.hasEnd()){var e=t.getIndexEndName();return t.getIndex().makePost(t.getIndexEndValue(),e)}return t.getIndex().maxPost()},t}
688(),Ir=function(){function t(t){this.rangedFilter_=new Er(t),this.index_=t.getIndex(),this.limit_=t.getLimit(),this.reverse_=!t.isViewFromLeft()}return t.prototype.updateChild=function(t,e,n,r,i,o){return this.rangedFilter_.matches(new Lt(e,n))||(n=ce.EMPTY_NODE),t.getImmediateChild(e).equals(n)?t:t.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(t,e,n,r,i,o):this.fullLimitUpdateChild_(t,e,n,i,o)},t.prototype.updateFullNode=function(t,e,n){var r;if(e.isLeafNode()||e.isEmpty())r=ce.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<e.numChildren()&&e.isIndexed(this.index_)){r=ce.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?e.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):e.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);var o=0;while(i.hasNext()&&o<this.limit_){var a=i.getNext(),s=void 0;if(s=this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0,!s)break;r=r.updateImmediateChild(a.name,a.node),o++}}else{r=e.withIndex(this.index_),r=r.updatePriority(ce.EMPTY_NODE);var u=void 0,c=void 0,l=void 0;i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),u=this.rangedFilter_.getEndPost(),c=this.rangedFilter_.getStartPost();var h=this.index_.getCompare();l=function(t,e){return h(e,t)}}else i=r.getIterator(this.index_),u=this.rangedFilter_.getStartPost(),c=this.rangedFilter_.getEndPost(),l=this.index_.getCompare();o=0;var f=!1;while(i.hasNext()){a=i.getNext();!f&&l(u,a)<=0&&(f=!0);s=f&&o<this.limit_&&l(a,c)<=0;s?o++:r=r.updateImmediateChild(a.name,ce.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(t,r,n)},t.prototype.updatePriority=function(t,e){return t},t.prototype.filtersNodes=function(){return!0},t.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},t.prototype.getIndex=function(){return this.index_},t.prototype.fullLimitUpdateChild_=function(t,e,n,r,i){var o;if(this.reverse_){var s=this.index_.getCompare();o=function(t,e){return s(e,t)}}else o=this.index_.getCompare();var u=t;a.assert(u.numChildren()===this.limit_,"");var c=new Lt(e,n),l=this.reverse_?u.getFirstChild(this.index_):u.getLastChild(this.index_),h=this.rangedFilter_.matches(c);if(u.hasChild(e)){var f=u.getImmediateChild(e),p=r.getChildAfterChild(this.index_,l,this.reverse_);while(null!=p&&(p.name===e||u.hasChild(p.name)))p=r.getChildAfterChild(this.index_,p,this.reverse_);var d=null==p?1:o(p,c),v=h&&!n.isEmpty()&&d>=0;if(v)return null!=i&&i.trackChildChange(Ke.childChangedChange(e,n,f)),u.updateImmediateChild(e,n);null!=i&&i.trackChildChange(Ke.childRemovedChange(e,f));var g=u.updateImmediateChild(e,ce.EMPTY_NODE),m=null!=p&&this.rangedFilter_.matches(p);return m?(null!=i&&i.trackChildChange(Ke.childAddedChange(p.name,p.node)),g.updateImmediateChild(p.name,p.node)):g}return n.isEmpty()?t:h&&o(l,c)>=0?(null!=i&&(i.trackChildChange(Ke.childRemovedChange(l.name,l.node)),i.trackChildChange(Ke.childAddedChange(e,n))),u.updateImmediateChild(e,n).updateImmediateChild(l.name,ce.EMPTY_NODE)):t},t}(),Tr=function(){function t(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Xt}return t.prototype.hasStart=function(){return this.startSet_},t.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},t.prototype.getIndexStartValue=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},t.prototype.getIndexStartName=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:x},t.prototype.hasEnd=function(){return this.endSet_},t.prototype.getIndexEndValue=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},t.prototype.getIndexEndName=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:D},t.prototype.hasLimit=function(){return this.limitSet_},t.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},t.prototype.getLimit=function(){return a.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},t.prototype.getIndex=function(){return this.index_},t.prototype.copy_=function(){var e=new t;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e},t.prototype.limit=function(t){var e=this.copy_();return e.limitSet_=!0,e.limit_=t,e.viewFrom_="",e},t.prototype.limitToFirst=function(e){var n=this.copy_();return n.limitSet_=!0,n.limit_=e,n.viewFrom_=t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},t.prototype.limitToLast=function(e){var n=this.copy_();return n.limitSet_=!0,n.limit_=e,n.viewFrom_=t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},t.prototype.startAt=function(t,e){var n=this.copy_();return n.startSet_=!0,void 0===t&&(t=null),n.indexStartValue_=t,null!=e?(n.startNameSet_=!0,n.indexStartName_=e):(n.startNameSet_=!1,n.indexStartName_=""),n},t.prototype.endAt=function(t,e){var n=this.copy_();return n.endSet_=!0,void 0===t&&(t=null),n.indexEndValue_=t,void 0!==e?(n.endNameSet_=!0,n.indexEndName_=e):(n.endNameSet_=!1,n.indexEndName_=""),n},t.prototype.orderBy=function(t){var e=this.copy_();return e.index_=t,e},t.prototype.getQueryObject=function(){var e=t.WIRE_PROTOCOL_CONSTANTS_,n={};
688if(this.startSet_&&(n[e.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[e.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[e.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[e.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[e.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?e.VIEW_FROM_LEFT:e.VIEW_FROM_RIGHT),n[e.VIEW_FROM]=r}return this.index_!==Xt&&(n[e.INDEX]=this.index_.toString()),n},t.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},t.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===Xt},t.prototype.getNodeFilter=function(){return this.loadsAllData()?new ze(this.getIndex()):this.hasLimit()?new Ir(this):new Er(this)},t.prototype.toRestQueryStringParameters=function(){var e,n=t.REST_QUERY_CONSTANTS_,r={};return this.isDefault()?r:(this.index_===Xt?e=n.PRIORITY_INDEX:this.index_===ge?e=n.VALUE_INDEX:this.index_===Ft?e=n.KEY_INDEX:(a.assert(this.index_ instanceof me,"Unrecognized index type!"),e=this.index_.toString()),r[n.ORDER_BY]=a.stringify(e),this.startSet_&&(r[n.START_AT]=a.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+a.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=a.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+a.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_),r)},t.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},t.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},t.DEFAULT=new t,t}(),Sr=function(t){function e(e,n){var r=this;if(!(e instanceof wr))throw new Error("new Reference() no longer supported - use app.database().");return r=t.call(this,e,n,Tr.DEFAULT,!1)||this,r}return o.__extends(e,t),e.prototype.getKey=function(){return a.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},e.prototype.child=function(t){return a.validateArgCount("Reference.child",1,1,arguments.length),"number"===typeof t?t=String(t):t instanceof $||(null===this.path.getFront()?Nt("Reference.child",1,t,!1):At("Reference.child",1,t,!1)),new e(this.repo,this.path.child(t))},e.prototype.getParent=function(){a.validateArgCount("Reference.parent",0,0,arguments.length);var t=this.path.parent();return null===t?null:new e(this.repo,t)},e.prototype.getRoot=function(){a.validateArgCount("Reference.root",0,0,arguments.length);var t=this;while(null!==t.getParent())t=t.getParent();return t},e.prototype.databaseProp=function(){return this.repo.database},e.prototype.set=function(t,e){a.validateArgCount("Reference.set",1,2,arguments.length),kt("Reference.set",this.path),_t("Reference.set",1,t,this.path,!1),a.validateCallback("Reference.set",2,e,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path,t,null,n.wrapCallback(e)),n.promise},e.prototype.update=function(t,e){if(a.validateArgCount("Reference.update",1,2,arguments.length),kt("Reference.update",this.path),Array.isArray(t)){for(var n={},r=0;r<t.length;++r)n[""+r]=t[r];t=n,A("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}It("Reference.update",1,t,this.path,!1),a.validateCallback("Reference.update",2,e,!0);var i=new a.Deferred;return this.repo.update(this.path,t,i.wrapCallback(e)),i.promise},e.prototype.setWithPriority=function(t,e,n){if(a.validateArgCount("Reference.setWithPriority",2,3,arguments.length),kt("Reference.setWithPriority",this.path),_t("Reference.setWithPriority",1,t,this.path,!1),Tt("Reference.setWithPriority",2,e,!1),a.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new a.Deferred;return this.repo.setWithPriority(this.path,t,e,r.wrapCallback(n)),r.promise},e.prototype.remove=function(t){return a.validateArgCount("Reference.remove",0,1,arguments.length),kt("Reference.remove",this.path),a.validateCallback("Reference.remove",1,t,!0),this.set(null,t)},e.prototype.transaction=function(t,e,n){if(a.validateArgCount("Reference.transaction",1,3,arguments.length),kt("Reference.transaction",this.path),a.validateCallback("Reference.transaction",1,t,!1),a.validateCallback("Reference.transaction",2,e,!0),xt("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new a.Deferred;"function"===typeof e&&r.promise.catch(function(){});var i=function(t,n,i){t?r.reject(t):r.resolve(new Rt(n,i)),"function"===typeof e&&e(t,n,i)};return this.repo.startTransaction(this.path,t,i,n),r.promise},e.prototype.setPriority=function(t,e){a.validateArgCount("Reference.setPriority",1,2,arguments.length),kt("Reference.setPriority",this.path),Tt("Reference.setPriority",1,t,!1),a.validateCallback("Reference.setPriority",2,e,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),t,null,n.wrapCallback(e)),n.promise},e.prototype.push=function(t,e){a.validateArgCount("Reference.push",0,2,arguments.length),kt("Reference.push",this.path),_t("Reference.push",1,t,this.path,!0),a.validateCallback("Reference.push",2,e,!0);var n,r=this.repo.serverTime(),i=Pt(r),o=this.child(i),s=this.child(i);return n=null!=t?o.set(t,e).then(function(){return s}):Promise.resolve(s),o.then=n.then.bind(n),o.catch=n.then.bind(n,void 0),"function"===typeof e&&n.catch(function(){}),o},e.prototype.onDisconnect=function(){return kt("Reference.onDisconnect",this.path),new Dt(this.repo,this.path)},Object.defineProperty(e.prototype,"database",{get:function(){return this.databaseProp()}
688,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this.getKey()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),e}(Ie);
689/**
690 * @license
691 * Copyright 2017 Google LLC
692 *
693 * Licensed under the Apache License, Version 2.0 (the "License");
694 * you may not use this file except in compliance with the License.
695 * You may obtain a copy of the License at
696 *
697 *   http://www.apache.org/licenses/LICENSE-2.0
698 *
699 * Unless required by applicable law or agreed to in writing, software
700 * distributed under the License is distributed on an "AS IS" BASIS,
701 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
702 * See the License for the specific language governing permissions and
703 * limitations under the License.
704 */Ie.__referenceConstructor=Sr,nn.__referenceConstructor=Sr;
705/**
706 * @license
707 * Copyright 2017 Google LLC
708 *
709 * Licensed under the Apache License, Version 2.0 (the "License");
710 * you may not use this file except in compliance with the License.
711 * You may obtain a copy of the License at
712 *
713 *   http://www.apache.org/licenses/LICENSE-2.0
714 *
715 * Unless required by applicable law or agreed to in writing, software
716 * distributed under the License is distributed on an "AS IS" BASIS,
717 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
718 * See the License for the specific language governing permissions and
719 * limitations under the License.
720 */
721var Cr,Ar=function(){function t(){this.children={},this.childCount=0,this.value=null}return t}(),Nr=function(){function t(t,e,n){void 0===t&&(t=""),void 0===e&&(e=null),void 0===n&&(n=new Ar),this.name_=t,this.parent_=e,this.node_=n}return t.prototype.subTree=function(e){var n=e instanceof $?e:new $(e),r=this,i=n.getFront();while(null!==i){var o=a.safeGet(r.node_.children,i)||new Ar;r=new t(i,r,o),n=n.popFront(),i=n.getFront()}return r},t.prototype.getValue=function(){return this.node_.value},t.prototype.setValue=function(t){a.assert("undefined"!==typeof t,"Cannot set value to undefined"),this.node_.value=t,this.updateParents_()},t.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},t.prototype.hasChildren=function(){return this.node_.childCount>0},t.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},t.prototype.forEachChild=function(e){var n=this;F(this.node_.children,function(r,i){e(new t(r,n,i))})},t.prototype.forEachDescendant=function(t,e,n){e&&!n&&t(this),this.forEachChild(function(e){e.forEachDescendant(t,!0,n)}),e&&n&&t(this)},t.prototype.forEachAncestor=function(t,e){var n=e?this:this.parent();while(null!==n){if(t(n))return!0;n=n.parent()}return!1},t.prototype.forEachImmediateDescendantWithValue=function(t){this.forEachChild(function(e){null!==e.getValue()?t(e):e.forEachImmediateDescendantWithValue(t)})},t.prototype.path=function(){return new $(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},t.prototype.name=function(){return this.name_},t.prototype.parent=function(){return this.parent_},t.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},t.prototype.updateChild_=function(t,e){var n=e.isEmpty(),r=a.contains(this.node_.children,t);n&&r?(delete this.node_.children[t],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[t]=e.node_,this.node_.childCount++,this.updateParents_())},t}();(function(t){t[t["RUN"]=0]="RUN",t[t["SENT"]=1]="SENT",t[t["COMPLETED"]=2]="COMPLETED",t[t["SENT_NEEDS_ABORT"]=3]="SENT_NEEDS_ABORT",t[t["NEEDS_ABORT"]=4]="NEEDS_ABORT"})(Cr||(Cr={})),wr.MAX_TRANSACTION_RETRIES_=25,wr.prototype.transactionsInit_=function(){this.transactionQueueTree_=new Nr},wr.prototype.startTransaction=function(t,e,n,r){this.log_("transaction on "+t);var i=function(){},o=new Sr(this,t);o.on("value",i);var s=function(){o.off("value",i)},u={path:t,update:e,onComplete:n,status:null,order:m(),applyLocally:r,retryCount:0,unwatcher:s,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},c=this.getLatestState_(t);u.currentInputSnapshot=c;var l=u.update(c.val());if(void 0===l){if(u.unwatcher(),u.currentOutputSnapshotRaw=null,u.currentOutputSnapshotResolved=null,u.onComplete){var h=new ye(u.currentInputSnapshot,new Sr(this,u.path),Xt);u.onComplete(null,!1,h)}}else{wt("transaction failed: Data returned ",l,u.path),u.status=Cr.RUN;var f=this.transactionQueueTree_.subTree(t),p=f.getValue()||[];p.push(u),f.setValue(p);var d=void 0;if("object"===typeof l&&null!==l&&a.contains(l,".priority"))d=a.safeGet(l,".priority"),a.assert(bt(d),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else{var v=this.serverSyncTree_.calcCompleteEventCache(t)||ce.EMPTY_NODE;d=v.getPriority().val()}d=d;var g=this.generateServerValues(),y=pe(l,d),b=xe(y,c,g);u.currentOutputSnapshotRaw=y,u.currentOutputSnapshotResolved=b,u.currentWriteId=this.getNextWriteId_();var _=this.serverSyncTree_.applyUserOverwrite(t,b,u.currentWriteId,u.applyLocally);this.eventQueue_.raiseEventsForChangedPath(t,_),this.sendReadyTransactions_()}},wr.prototype.getLatestState_=function(t,e){return this.serverSyncTree_.calcCompleteEventCache(t,e)||ce.EMPTY_NODE},wr.prototype.sendReadyTransactions_=function(t){var e=this;if(void 0===t&&(t=this.transactionQueueTree_),t||this.pruneCompletedTransactionsBelowNode_(t),null!==t.getValue()){var n=this.buildTransactionQueue_(t);a.assert(n.length>0,"Sending zero length transaction queue");var r=n.every(function(t){return t.status===Cr.RUN});r&&this.sendTransactionQueue_(t.path(),n)}else t.hasChildren()&&t.forEachChild(function(t){e.sendReadyTransactions_(t)})},wr.prototype.sendTransactionQueue_=function(t,e){for(var n=this,r=e.map(function(t){return t.currentWriteId}),i=this.getLatestState_(t,r),o=i,s=i.hash(),u=0;u<e.length;u++){var c=e[u];a.assert(c.status===Cr.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=Cr.SENT,c.retryCount++;var l=$.relativePath(t,c.path);o=o.updateChild(l,c.currentOutputSnapshotRaw)}var h=o.val(!0),f=t;this.server_.put(f.toString(),h,function(r){n.log_("transaction put response",{path:f.toString(),status:r});var i=[];if("ok"===r){for(var o=[],a=0;a<e.length;
721a++){if(e[a].status=Cr.COMPLETED,i=i.concat(n.serverSyncTree_.ackUserWrite(e[a].currentWriteId)),e[a].onComplete){var s=e[a].currentOutputSnapshotResolved,u=new Sr(n,e[a].path),c=new ye(s,u,Xt);o.push(e[a].onComplete.bind(null,null,!0,c))}e[a].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(t)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(t,i);for(a=0;a<o.length;a++)G(o[a])}else{if("datastale"===r)for(a=0;a<e.length;a++)e[a].status===Cr.SENT_NEEDS_ABORT?e[a].status=Cr.NEEDS_ABORT:e[a].status=Cr.RUN;else{A("transaction at "+f.toString()+" failed: "+r);for(a=0;a<e.length;a++)e[a].status=Cr.NEEDS_ABORT,e[a].abortReason=r}n.rerunTransactions_(t)}},s)},wr.prototype.rerunTransactions_=function(t){var e=this.getAncestorTransactionNode_(t),n=e.path(),r=this.buildTransactionQueue_(e);return this.rerunTransactionQueue_(r,n),n},wr.prototype.rerunTransactionQueue_=function(t,e){if(0!==t.length){for(var n=[],r=[],i=t.filter(function(t){return t.status===Cr.RUN}),o=i.map(function(t){return t.currentWriteId}),s=0;s<t.length;s++){var u=t[s],c=$.relativePath(e,u.path),l=!1,h=void 0;if(a.assert(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),u.status===Cr.NEEDS_ABORT)l=!0,h=u.abortReason,r=r.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0));else if(u.status===Cr.RUN)if(u.retryCount>=wr.MAX_TRANSACTION_RETRIES_)l=!0,h="maxretry",r=r.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0));else{var f=this.getLatestState_(u.path,o);u.currentInputSnapshot=f;var p=t[s].update(f.val());if(void 0!==p){wt("transaction failed: Data returned ",p,u.path);var d=pe(p),v="object"===typeof p&&null!=p&&a.contains(p,".priority");v||(d=d.updatePriority(f.getPriority()));var g=u.currentWriteId,m=this.generateServerValues(),y=xe(d,f,m);u.currentOutputSnapshotRaw=d,u.currentOutputSnapshotResolved=y,u.currentWriteId=this.getNextWriteId_(),o.splice(o.indexOf(g),1),r=r.concat(this.serverSyncTree_.applyUserOverwrite(u.path,y,u.currentWriteId,u.applyLocally)),r=r.concat(this.serverSyncTree_.ackUserWrite(g,!0))}else l=!0,h="nodata",r=r.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(e,r),r=[],l&&(t[s].status=Cr.COMPLETED,function(t){setTimeout(t,Math.floor(0))}(t[s].unwatcher),t[s].onComplete))if("nodata"===h){var b=new Sr(this,t[s].path),_=t[s].currentInputSnapshot,w=new ye(_,b,Xt);n.push(t[s].onComplete.bind(null,null,!1,w))}else n.push(t[s].onComplete.bind(null,new Error(h),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(s=0;s<n.length;s++)G(n[s]);this.sendReadyTransactions_()}},wr.prototype.getAncestorTransactionNode_=function(t){var e,n=this.transactionQueueTree_;e=t.getFront();while(null!==e&&null===n.getValue())n=n.subTree(e),t=t.popFront(),e=t.getFront();return n},wr.prototype.buildTransactionQueue_=function(t){var e=[];return this.aggregateTransactionQueuesForNode_(t,e),e.sort(function(t,e){return t.order-e.order}),e},wr.prototype.aggregateTransactionQueuesForNode_=function(t,e){var n=this,r=t.getValue();if(null!==r)for(var i=0;i<r.length;i++)e.push(r[i]);t.forEachChild(function(t){n.aggregateTransactionQueuesForNode_(t,e)})},wr.prototype.pruneCompletedTransactionsBelowNode_=function(t){var e=this,n=t.getValue();if(n){for(var r=0,i=0;i<n.length;i++)n[i].status!==Cr.COMPLETED&&(n[r]=n[i],r++);n.length=r,t.setValue(n.length>0?n:null)}t.forEachChild(function(t){e.pruneCompletedTransactionsBelowNode_(t)})},wr.prototype.abortTransactions_=function(t){var e=this,n=this.getAncestorTransactionNode_(t).path(),r=this.transactionQueueTree_.subTree(t);return r.forEachAncestor(function(t){e.abortTransactionsOnNode_(t)}),this.abortTransactionsOnNode_(r),r.forEachDescendant(function(t){e.abortTransactionsOnNode_(t)}),n},wr.prototype.abortTransactionsOnNode_=function(t){var e=t.getValue();if(null!==e){for(var n=[],r=[],i=-1,o=0;o<e.length;o++)if(e[o].status===Cr.SENT_NEEDS_ABORT);else if(e[o].status===Cr.SENT)a.assert(i===o-1,"All SENT items should be at beginning of queue."),i=o,e[o].status=Cr.SENT_NEEDS_ABORT,e[o].abortReason="set";else if(a.assert(e[o].status===Cr.RUN,"Unexpected transaction status in abort"),e[o].unwatcher(),r
721=r.concat(this.serverSyncTree_.ackUserWrite(e[o].currentWriteId,!0)),e[o].onComplete){var s=null;n.push(e[o].onComplete.bind(null,new Error("set"),!1,s))}-1===i?t.setValue(null):e.length=i+1,this.eventQueue_.raiseEventsForChangedPath(t.path(),r);for(o=0;o<n.length;o++)G(n[o])}};
722/**
723 * @license
724 * Copyright 2017 Google LLC
725 *
726 * Licensed under the Apache License, Version 2.0 (the "License");
727 * you may not use this file except in compliance with the License.
728 * You may obtain a copy of the License at
729 *
730 *   http://www.apache.org/licenses/LICENSE-2.0
731 *
732 * Unless required by applicable law or agreed to in writing, software
733 * distributed under the License is distributed on an "AS IS" BASIS,
734 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
735 * See the License for the specific language governing permissions and
736 * limitations under the License.
737 */
738var kr,Or=function(){function t(t,e){var n=this;this.app_=t,this.authProvider_=e,this.auth_=null,this.auth_=e.getImmediate({optional:!0}),this.auth_||e.get().then(function(t){return n.auth_=t})}return t.prototype.getToken=function(t){return this.auth_?this.auth_.getToken(t).catch(function(t){return t&&"auth/token-not-initialized"===t.code?(I("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(t)}):Promise.resolve(null)},t.prototype.addTokenChangeListener=function(t){this.auth_?this.auth_.addAuthTokenListener(t):(setTimeout(function(){return t(null)},0),this.authProvider_.get().then(function(e){return e.addAuthTokenListener(t)}))},t.prototype.removeTokenChangeListener=function(t){this.authProvider_.get().then(function(e){return e.removeAuthTokenListener(t)})},t.prototype.notifyForInvalidToken=function(){var t='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?t+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?t+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':t+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',A(t)},t}(),xr=function(){function t(){}return t.prototype.getToken=function(e){return Promise.resolve({accessToken:t.EMULATOR_AUTH_TOKEN})},t.prototype.addTokenChangeListener=function(e){e(t.EMULATOR_AUTH_TOKEN)},t.prototype.removeTokenChangeListener=function(t){},t.prototype.notifyForInvalidToken=function(){},t.EMULATOR_AUTH_TOKEN="owner",t}(),Dr="FIREBASE_DATABASE_EMULATOR_HOST",Rr=function(){function t(){this.repos_={},this.useRestClient_=!1}return t.getInstance=function(){return kr||(kr=new t),kr},t.prototype.interrupt=function(){var t,e,n,r;try{for(var i=o.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var u=(n=void 0,o.__values(Object.keys(this.repos_[s]))),c=u.next();!c.done;c=u.next()){var l=c.value;this.repos_[s][l].interrupt()}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(f){t={error:f}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},t.prototype.resume=function(){var t,e,n,r;try{for(var i=o.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var u=(n=void 0,o.__values(Object.keys(this.repos_[s]))),c=u.next();!c.done;c=u.next()){var l=c.value;this.repos_[s][l].resume()}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(f){t={error:f}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},t.prototype.databaseFromApp=function(t,e,n,i){var o=n||t.options.databaseURL;void 0===o&&(t.options.projectId||C("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),I("Using default host for project ",t.options.projectId),o=t.options.projectId+"-default-rtdb.firebaseio.com");var a,s=ht(o,i),u=s.repoInfo,c=void 0;"undefined"!==typeof r&&(c=Object({NODE_ENV:"production",BASE_URL:"/"})[Dr]),c?(a=!0,o="http://"+c+"?ns="+u.namespace,s=ht(o,i),u=s.repoInfo):a=!s.repoInfo.secure;var l=i&&a?new xr:new Or(t,e);Ot("Invalid Firebase Database URL",1,s),s.path.isEmpty()||C("Database URL must point to the root of a Firebase Database (not including a child path).");var h=this.createRepo(u,t,l);return h.database},t.prototype.deleteRepo=function(t){var e=a.safeGet(this.repos_,t.app.name);e&&a.safeGet(e,t.repoInfo_.toURLString())===t||C("Database "+t.app.name+"("+t.repoInfo_+") has already been deleted."),t.interrupt(),delete e[t.repoInfo_.toURLString()]},t.prototype.createRepo=function(t,e,n){var r=a.safeGet(this.repos_,e.name);r||(r={},this.repos_[e.name]=r);var i=a.safeGet(r,t.toURLString());return i&&C("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new wr(t,this.useRestClient_,e,n),r[t.toURLString()]=i,i},t.prototype.forceRestClient=function(t){this.useRestClient_=t},t}(),Pr=function(){function t(t){this.repo_=t,t instanceof wr||C("Don't call new Database() directly - please use firebase.database()."),this.root_=new Sr(t,$.Empty),this.INTERNAL=new Lr(this)}return Object.defineProperty(t.prototype,"app",{get:function(){return this.repo_.app}
738,enumerable:!1,configurable:!0}),t.prototype.ref=function(t){return this.checkDeleted_("ref"),a.validateArgCount("database.ref",0,1,arguments.length),t instanceof Sr?this.refFromURL(t.toString()):void 0!==t?this.root_.child(t):this.root_},t.prototype.refFromURL=function(t){var e="database.refFromURL";this.checkDeleted_(e),a.validateArgCount(e,1,1,arguments.length);var n=ht(t,this.repo_.repoInfo_.nodeAdmin);Ot(e,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&C(e+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},t.prototype.checkDeleted_=function(t){null===this.repo_&&C("Cannot call "+t+" on a deleted database.")},t.prototype.goOffline=function(){a.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},t.prototype.goOnline=function(){a.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},t.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(t){return{".sv":{increment:t}}}},t}(),Lr=function(){function t(t){this.database=t}return t.prototype.delete=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){return this.database.checkDeleted_("delete"),Rr.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]})})},t}(),Mr=function(){zn.forceDisallow(),Vn.forceAllow()},jr=function(){Vn.forceDisallow()},Fr=function(){return zn["isAvailable"]()},Ur=function(t,e){t.repo.persistentConnection_.securityDebugCallback_=e},Vr=function(t,e){t.repo.stats(e)},Br=function(t,e){t.repo.statsIncrementCounter(e)},qr=function(t){return t.repo.dataUpdateCount},Hr=function(t,e){return t.repo.interceptServerData_(e)},Wr=Object.freeze({__proto__:null,forceLongPolling:Mr,forceWebSockets:jr,isWebSocketsAvailable:Fr,setSecurityDebugCallback:Ur,stats:Vr,statsIncrementCounter:Br,dataUpdateCount:qr,interceptServerData:Hr}),Gr=yr;yr.prototype.simpleListen=function(t,e){this.sendRequest("q",{p:t},e)},yr.prototype.echo=function(t,e){this.sendRequest("echo",{d:t},e)};var Kr=cr,zr=function(t){var e=yr.prototype.put;return yr.prototype.put=function(n,r,i,o){void 0!==o&&(o=t()),e.call(this,n,r,i,o)},function(){yr.prototype.put=e}},$r=at,Qr=function(t){return t.queryIdentifier()},Yr=function(t){Rr.getInstance().forceRestClient(t)},Xr=Object.freeze({__proto__:null,DataConnection:Gr,RealTimeConnection:Kr,hijackHash:zr,ConnectionTarget:$r,queryIdentifier:Qr,forceRestClient:Yr}),Jr="@firebase/database",Zr="0.6.13",ti=Pr.ServerValue;function ei(e){Hn(e.SDK_VERSION);var n=e.INTERNAL.registerComponent(new u.Component("database",function(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return Rr.getInstance().databaseFromApp(n,r,e)},"PUBLIC").setServiceProps({Reference:Sr,Query:Ie,Database:Pr,DataSnapshot:ye,enableLogging:E,INTERNAL:Wr,ServerValue:ti,TEST_ACCESS:Xr}).setMultipleInstances(!0));e.registerVersion(Jr,Zr),a.isNodeSdk()&&(t.exports=n)}ei(l["default"]),e.DataSnapshot=ye,e.Database=Pr,e.OnDisconnect=Dt,e.Query=Ie,e.Reference=Sr,e.ServerValue=ti,e.enableLogging=E,e.registerDatabase=ei}).call(this,n("f28c"))},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"36bd":function(t,e,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");t.exports=function(t){var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);while(c>s)e[s++]=t;return e}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"3b59":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c23d");n("7d28");var i=n("9ab4"),o=n("cd51"),a=n("abfd"),s=n("4be4");function u(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var c,l=u(r),h=function(){function t(t,e,n,r){this.client=t,this.storage=e,this.storageCache=n,this.logger=r}
738return t.prototype.isCachedDataFresh=function(t,e){if(!e)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-e,r=n<=t;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+t+". Is cache hit: "+r+"."),r},t.prototype.fetch=function(t){return i.__awaiter(this,void 0,void 0,function(){var e,n,r,o,a;return i.__generator(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return e=i.sent(),n=e[0],r=e[1],r&&this.isCachedDataFresh(t.cacheMaxAgeMillis,n)?[2,r]:(t.eTag=r&&r.eTag,[4,this.client.fetch(t)]);case 2:return o=i.sent(),a=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===o.status&&a.push(this.storage.setLastSuccessfulFetchResponse(o)),[4,Promise.all(a)];case 3:return i.sent(),[2,o]}})})},t}(),f=(c={},c["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",c["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",c["registration-api-key"]="Undefined API key. Check Firebase app initialization.",c["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",c["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",c["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",c["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",c["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",c["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",c["fetch-timeout"]='The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',c["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}.',c["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",c["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",c),p=new o.ErrorFactory("remoteconfig","Remote Config",f);
739/**
740 * @license
741 * Copyright 2019 Google LLC
742 *
743 * Licensed under the Apache License, Version 2.0 (the "License");
744 * you may not use this file except in compliance with the License.
745 * You may obtain a copy of the License at
746 *
747 *   http://www.apache.org/licenses/LICENSE-2.0
748 *
749 * Unless required by applicable law or agreed to in writing, software
750 * distributed under the License is distributed on an "AS IS" BASIS,
751 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
752 * See the License for the specific language governing permissions and
753 * limitations under the License.
754 */function d(t,e){return t instanceof o.FirebaseError&&-1!==t.code.indexOf(e)}
755/**
756 * @license
757 * Copyright 2019 Google LLC
758 *
759 * Licensed under the Apache License, Version 2.0 (the "License");
760 * you may not use this file except in compliance with the License.
761 * You may obtain a copy of the License at
762 *
763 *   http://www.apache.org/licenses/LICENSE-2.0
764 *
765 * Unless required by applicable law or agreed to in writing, software
766 * distributed under the License is distributed on an "AS IS" BASIS,
767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
768 * See the License for the specific language governing permissions and
769 * limitations under the License.
770 */function v(t){return void 0===t&&(t=navigator),t.languages&&t.languages[0]||t.language}
771/**
772 * @license
773 * Copyright 2019 Google LLC
774 *
775 * Licensed under the Apache License, Version 2.0 (the "License");
776 * you may not use this file except in compliance with the License.
777 * You may obtain a copy of the License at
778 *
779 *   http://www.apache.org/licenses/LICENSE-2.0
780 *
781 * Unless required by applicable law or agreed to in writing, softw
781are
782 * distributed under the License is distributed on an "AS IS" BASIS,
783 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
784 * See the License for the specific language governing permissions and
785 * limitations under the License.
786 */var g=function(){function t(t,e,n,r,i,o){this.firebaseInstallations=t,this.sdkVersion=e,this.namespace=n,this.projectId=r,this.apiKey=i,this.appId=o}return t.prototype.fetch=function(t){return i.__awaiter(this,void 0,void 0,function(){var e,n,r,o,a,s,u,c,l,h,f,d,g,m,y,b,_,w,E;return i.__generator(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:e=i.sent(),n=e[0],r=e[1],o=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",a=o+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,s={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":t.eTag||"*"},u={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:r,app_id:this.appId,language_code:v()},c={method:"POST",headers:s,body:JSON.stringify(u)},l=fetch(a,c),h=new Promise(function(e,n){t.signal.addEventListener(function(){var t=new Error("The operation was aborted.");t.name="AbortError",n(t)})}),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,Promise.race([l,h])];case 3:return i.sent(),[4,l];case 4:return f=i.sent(),[3,6];case 5:throw d=i.sent(),g="fetch-client-network","AbortError"===d.name&&(g="fetch-timeout"),p.create(g,{originalErrorMessage:d.message});case 6:if(m=f.status,y=f.headers.get("ETag")||void 0,200!==f.status)return[3,11];w=void 0,i.label=7;case 7:return i.trys.push([7,9,,10]),[4,f.json()];case 8:return w=i.sent(),[3,10];case 9:throw E=i.sent(),p.create("fetch-client-parse",{originalErrorMessage:E.message});case 10:b=w["entries"],_=w["state"],i.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===_?m=500:"NO_CHANGE"===_?m=304:"NO_TEMPLATE"!==_&&"EMPTY_CONFIG"!==_||(b={}),304!==m&&200!==m)throw p.create("fetch-status",{httpStatus:m});return[2,{status:m,eTag:y,config:b}]}})})},t}(),m=function(){function t(){this.listeners=[]}return t.prototype.addEventListener=function(t){this.listeners.push(t)},t.prototype.abort=function(){this.listeners.forEach(function(t){return t()})},t}(),y=!1,b="",_=0,w=["1","true","t","yes","y","on"],E=function(){function t(t,e){void 0===e&&(e=b),this._source=t,this._value=e}return t.prototype.asString=function(){return this._value},t.prototype.asBoolean=function(){return"static"===this._source?y:w.indexOf(this._value.toLowerCase())>=0},t.prototype.asNumber=function(){if("static"===this._source)return _;var t=Number(this._value);return isNaN(t)&&(t=_),t},t.prototype.getSource=function(){return this._source},t}(),I=6e4,T=432e5,S=function(){function t(t,e,n,r,i){this.app=t,this._client=e,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:I,minimumFetchIntervalMillis:T},this.defaultConfig={}}return t.prototype.setLogLevel=function(t){switch(t){case"debug":this._logger.logLevel=a.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=a.LogLevel.SILENT;break;default:this._logger.logLevel=a.LogLevel.ERROR}},Object.defineProperty(t.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!1,configurable:!0}),t.prototype.activate=function(){return i.__awaiter(this,void 0,void 0,function(){var t,e,n;return i.__generator(this,function(r){switch(r.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return t=r.sent(),e=t[0],n=t[1],e&&e.config&&e.eTag&&e.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(e.config),this._storage.setActiveConfigEtag(e.eTag)])]:[2,!1];case 2:return r.sent(),[2,!0]}})})},t.prototype.ensureInitialized=function(){var t=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then(function(){t._isInitializationComplete=!0})),this._initializePromise},t.prototype.fetch=function(){return i.__awaiter(this,void 0,void 0,function(){var t,e,n,r=this;return i.__generator(this,function(o){switch(o.label){case 0:t=new m,setTimeout(function(){return i.__awaiter(r,void 0,void 0,function(){return i.__generator(this,function(e){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 e=o.sent(),n=d(e,"fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw o.sent(),e;case 6:return[2]}})})},t.prototype.fetchAndActivate=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){switch(t.label){case 0:return[4,this.fetch()];case 1:return t.sent(),[2,this.activate()]}})})},t.prototype.getAll=function(){var t=this;return C(this._storageCache.getActiveConfig(),this.defaultConfig).reduce(function(e,n){return e[n]=t.getValue(n),e},{})},t.prototype.getBoolean=function(t){return this.getValue(t).asBoolean()},t.prototype.getNumber=function(t){return this.getValue(t).asNumber()},t.prototype.getString=function(t){return this.getValue(t).asString()},t.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 e=this._storageCache.getActiveConfig();return e&&void 0!==e[t]?new E("remote",e[t]):this.defaultConfig&&void 0!==this.defaultConfig[t]?new E("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 E("static"))},t}();
787/**
788 * @license
789 * Copyright 2019 Google LLC
790 *
791 * Licensed under the Apache License, Version 2.0 (the "License");
792 * you may not use this file except in compliance with the License.
793 * You may obtain a copy of the License at
794 *
795 *   http://www.apache.org/licenses/LICENSE-2.0
796 *
797 * Unless required by applicable law or agreed to in writing, software
798 * distributed under the License is distributed on an "AS IS" BASIS,
799 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
800 * See the License for the specific language governing permissions and
801 * limitations under the License.
802 */function C(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(i.__assign(i.__assign({},t),e))}
803/**
804 * @license
805 * Copyright 2019 Google LLC
806 *
807 * Licensed under the Apache License, Version 2.0 (the "License");
808 * you may not use this file except in compliance with the License.
809 * You may obtain a copy of the License at
810 *
811 *   http://www.apache.org/licenses/LICENSE-2.0
812 *
813 * Unless required by applicable law or agreed to in writing, software
814 * distributed under the License is distributed on an "AS IS" BASIS,
815 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
816 * See the License for the specific language governing permissions and
817 * limitations under the License.
818 */function A(t,e){var n=t.target.error||void 0;return p.create(e,{originalErrorMessage:n&&n.message})}var N="app_namespace_store",k="firebase_remote_config",O=1;function x(){return new Promise(function(t,e){var n=indexedDB.open(k,O);n.onerror=function(t){e(A(t,"storage-open"))},n.onsuccess=function(e){t(e.target.result)},n.onupgradeneeded=function(t){var e=t.target.result;switch(t.oldVersion){case 0:e.createObjectStore(N,{keyPath:"compositeKey"})}}})}var D=function(){function t(t,e,n,r){void 0===r&&(r=x()),this.appId=t,this.appName=e,this.namespace=n,this.openDbPromise=r}return t.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},t.prototype.setLastFetchStatus=function(t){return this.set("last_fetch_status",t)},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.set("last_successful_fetch_timestamp_millis",t)},t.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},t.prototype.setLastSuccessfulFetchResponse=function(t){return this.set("last_successful_fetch_response",t)},t.prototype.getActiveConfig=function(){return this.get("active_config")},t.prototype.setActiveConfig=function(t){return this.set("active_config",t)},t.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},t.prototype.setActiveConfigEtag=function(t){return this.set("active_config_etag",t)},t.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},t.prototype.setThrottleMetadata=function(t){return this.set("throttle_metadata",t)},t.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},t.prototype.get=function(t){return i.__awaiter(this,void 0,void 0,function(){var e,n=this;return i.__generator(this,function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return e=r.sent(),[2,new Promise(function(r,i){var o=e.transaction([N],"readonly"),a=o.objectStore(N),s=n.createCompositeKey(t);try{var u=a.get(s);u.onerror=function(t){i(A(t,"storage-get"))},u.onsuccess=function(t){var e=t.target.result;r(e?e.value:void 0)}}catch(c){i(p.create("storage-get",{originalErrorMessage:c&&c.message}))}})]}})})},t.prototype.set=function(t,e){return i.__awaiter(this,void 0,void 0,function(){var n,r=this;return i.__generator(this,function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return n=i.sent(),[2,new Promise(function(i,o){var a=n.transaction([N],"readwrite"),s=a.objectStore(N),u=r.createCompositeKey(t);try{var c=s.put({compositeKey:u,value:e});c.onerror=function(t){o(A(t,"storage-set"))},c.onsuccess=function(){i()}}catch(l){o(p.create("storage-set",{originalErrorMessage:l&&l.message}))}})]}})})},t.prototype.delete=function(t){return i.__awaiter(this,void 0,void 0,function(){var e,n=this;return i.__generator(this,function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return e=r.sent(),[2,new Promise(function(r,i){var o=e.transaction([N],"readwrite"),a=o.objectStore(N),s=n.createCompositeKey(t);try{var u=a.delete(s);u.onerror=function(t){i(A(t,"storage-delete"))},u.onsuccess=function(){r()}}catch(c){i(p.create("storage-delete",{originalErrorMessage:c&&c.message}))}})]}})})},t.prototype.createCompositeKey=function(t){return[this.appId,this.appName,this.namespace,t].join()},t}(),R=function(){function t(t){this.storage=t}return t.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},t.prototype.getActiveConfig=function(){return this.activeConfig},t.prototype.loadFromStorage=function(){return i.__awaiter(this,void 0,void 0,function(){var t,e,n,r,o,a;return i.__generator(this,function(i){switch(i.label){case 0:return t=this.storage.getLastFetchStatus(),e=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,t];case 1:return r=i.sent(),r&&(this.lastFetchStatus=r),[4,e];case 2:return o=i.sent(),o&&(this.lastSuccessfulFetchTimestampMillis=o),[4,n];case 3:return a=i.sent(),a&&(this.activeConfig=a),[2]}})})},t.prototype.setLastFetchStatus=function(t){return this.lastFetchStatus=t,this.storage.setLastFetchStatus(t)},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.lastSuccessfulFetchTimestampMillis=t,this.storage.setLastSuccessfulFetchTimestampMillis(t)},t.prototype.setActiveConfig=function(t){return this.activeConfig=t,this.storage.setActiveConfig(t)},t}();
819/**
820 * @license
821 * Copyright 2019 Google LLC
822 *
823 * Licensed under the Apache License, Version 2.0 (the "License");
824 * you may not use this file except in compliance with the License.
825 * You may obtain a copy of the License at
826 *
827 *   http://www.apache.org/licenses/LICENSE-2.0
828 *
829 * Unless required by applicable law or agreed to in writing, software
830 * distributed under the License is distributed on an "AS IS" BASIS,
831 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
832 * See the License for the specific language governing permissions and
833 * limitations under the License.
834 */
835/**
836 * @license
837 * Copyright 2019 Google LLC
838 *
839 * Licensed under the Apache License, Version 2.0 (the "License");
840 * you may not use this file except in compliance with the License.
841 * You may obtain a copy of the License at
842 *
843 *   http://www.apache.org/licenses/LICENSE-2.0
844 *
845 * Unless required by applicable law or agreed to in writing, software
846 * distributed under the License is distributed on an "AS IS" BASIS,
847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
848 * See the License for the specific language governing permissions and
849 * limitations under the License.
850 */
851function P(t,e){return new Promise(function(n,r){var i=Math.max(e-Date.now(),0),o=setTimeout(n,i);t.addEventListener(function(){clearTimeout(o),r(p.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function L(t){if(!(t instanceof o.FirebaseError))return!1;var e=Number(t["httpStatus"]);return 429===e||500===e||503===e||504===e}var M=function(){function t(t,e){this.client=t,this.storage=e}return t.prototype.fetch=function(t){return i.__awaiter(this,void 0,void 0,function(){var e;return i.__generator(this,function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return e=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(t,e)]}})})},t.prototype.attemptFetch=function(t,e){var n=e.throttleEndTimeMillis,r=e.backoffCount;return i.__awaiter(this,void 0,void 0,function(){var e,a,s;return i.__generator(this,function(i){switch(i.label){case 0:return[4,P(t.signal,n)];case 1:i.sent(),i.label=2;case 2:return i.trys.push([2,5,,7]),[4,this.client.fetch(t)];case 3:return e=i.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return i.sent(),[2,e];case 5:if(a=i.sent(),!L(a))throw a;return s={throttleEndTimeMillis:Date.now()+o.calculateBackoffMillis(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(s)];case 6:return i.sent(),[2,this.attemptFetch(t,s)];case 7:return[2]}})})},t}(),j="@firebase/remote-config",F="0.1.28";
852/**
853 * @license
854 * Copyright 2019 Google LLC
855 *
856 * Licensed under the Apache License, Version 2.0 (the "License");
857 * you may not use this file except in compliance with the License.
858 * You may obtain a copy of the License at
859 *
860 *   http://www.apache.org/licenses/LICENSE-2.0
861 *
862 * Unless required by applicable law or agreed to in writing, software
863 * distributed under the License is distributed on an "AS IS" BASIS,
864 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
865 * See the License for the specific language governing permissions and
866 * limitations under the License.
867 */
868function U(t){function e(e,n){var r=e.getProvider("app").getImmediate(),i=e.getProvider("installations").getImmediate();if("undefined"===typeof window)throw p.create("registration-window");var o=r.options,s=o.projectId,u=o.apiKey,c=o.appId;if(!s)throw p.create("registration-project-id");if(!u)throw p.create("registration-api-key");if(!c)throw p.create("registration-app-id");n=n||"firebase";var l=new D(c,r.name,n),f=new R(l),d=new a.Logger(j);d.logLevel=a.LogLevel.ERROR;var v=new g(i,t.SDK_VERSION,n,s,u,c),m=new M(v,l),y=new h(m,l,f,d),b=new S(r,y,f,l,d);return b.ensureInitialized(),b}t.INTERNAL.registerComponent(new s.Component("remoteConfig",e,"PUBLIC").setMultipleInstances(!0)),t.registerVersion(j,F)}U(l["default"]),e.registerRemoteConfig=U},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"454f":function(t,e,n){n("46a7");var r=n("584a").Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"46a7":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},4989:function(t,e,n){
869/*!
870  * Bootstrap v4.4.1 (https://getbootstrap.com/)
871  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
872  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
873  */
874(function(t,r){r(e,n("1157"),n("f0bd"))})(0,function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
874e%2?a(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}e=e&&e.hasOwnProperty("default")?e["default"]:e,n=n&&n.hasOwnProperty("default")?n["default"]:n;var c="transitionend",l=1e6,h=1e3;function f(t){return{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function p(){return{bindType:c,delegateType:c,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function d(t){var n=this,r=!1;return e(this).one(g.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||g.triggerTransitionEnd(n)},t),this}function v(){e.fn.emulateTransitionEnd=d,e.event.special[g.TRANSITION_END]=p()}var g={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*l)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(r){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration"),r=e(t).css("transition-delay"),i=parseFloat(n),o=parseFloat(r);return i||o?(n=n.split(",")[0],r=r.split(",")[0],(parseFloat(n)+parseFloat(r))*h):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(c)},supportsTransitionEnd:function(){return Boolean(c)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=e[r],a=o&&g.isElement(o)?"element":f(o);if(!new RegExp(i).test(a))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"===typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?g.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"===typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split("."),n=1,r=2,i=9,o=1,a=4;if(t[0]<r&&t[1]<i||t[0]===n&&t[1]===i&&t[2]<o||t[0]>=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};g.jQueryDetection(),v();var m="alert",y="4.4.1",b="bs.alert",_="."+b,w=".data-api",E=e.fn[m],I={DISMISS:'[data-dismiss="alert"]'},T={CLOSE:"close"+_,CLOSED:"closed"+_,CLICK_DATA_API:"click"+_+w},S={ALERT:"alert",FADE:"fade",SHOW:"show"},C=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t));var n=this._triggerCloseEvent(e);n.isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,b),this._element=null},n._getRootElement=function(t){var n=g.getSelectorFromElement(t),r=!1;return n&&(r=document.querySelector(n)),r||(r=e(t).closest("."+S.ALERT)[0]),r},n._triggerCloseEvent=function(t){var n=e.Event(T.CLOSE);return e(t).trigger(n),n},n._removeElement=function(t){var n=this;if(e(t).removeClass(S.SHOW),e(t).hasClass(S.FADE)){var r=g.getTransitionDurationFromElement(t);e(t).one(g.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(r)}else this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger(T.CLOSED).remove()},t._jQueryInterface=function(n){return this.each(function(){var r=e(this),i=r.data(b);i||(i=new t(this),r.data(b,i)),"close"===n&&i[n](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return y}}]),t}();e(document).on(T.CLICK_DATA_API,I.DISMISS,C._handleDismiss(new C)),e.fn[m]=C._jQueryInterface,e.fn[m].Constructor=C,e.fn[m].noConflict=function(){return e.fn[m]=E,C._jQueryInterface};var A="button",N="4.4.1",k="bs.button",O="."+k,x=".data-api",D=e.fn[A],R={ACTIVE:"active",BUTTON:"bt
874n",FOCUS:"focus"},P={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLES:'[data-toggle="buttons"]',DATA_TOGGLE:'[data-toggle="button"]',DATA_TOGGLES_BUTTONS:'[data-toggle="buttons"] .btn',INPUT:'input:not([type="hidden"])',ACTIVE:".active",BUTTON:".btn"},L={CLICK_DATA_API:"click"+O+x,FOCUS_BLUR_DATA_API:"focus"+O+x+" blur"+O+x,LOAD_DATA_API:"load"+O+x},M=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,r=e(this._element).closest(P.DATA_TOGGLES)[0];if(r){var i=this._element.querySelector(P.INPUT);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(R.ACTIVE))t=!1;else{var o=r.querySelector(P.ACTIVE);o&&e(o).removeClass(R.ACTIVE)}else"checkbox"===i.type?"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(R.ACTIVE)&&(t=!1):t=!1;t&&(i.checked=!this._element.classList.contains(R.ACTIVE),e(i).trigger("change")),i.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(R.ACTIVE)),t&&e(this._element).toggleClass(R.ACTIVE))},n.dispose=function(){e.removeData(this._element,k),this._element=null},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data(k);r||(r=new t(this),e(this).data(k,r)),"toggle"===n&&r[n]()})},i(t,null,[{key:"VERSION",get:function(){return N}}]),t}();e(document).on(L.CLICK_DATA_API,P.DATA_TOGGLE_CARROT,function(t){var n=t.target;if(e(n).hasClass(R.BUTTON)||(n=e(n).closest(P.BUTTON)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))t.preventDefault();else{var r=n.querySelector(P.INPUT);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void t.preventDefault();M._jQueryInterface.call(e(n),"toggle")}}).on(L.FOCUS_BLUR_DATA_API,P.DATA_TOGGLE_CARROT,function(t){var n=e(t.target).closest(P.BUTTON)[0];e(n).toggleClass(R.FOCUS,/^focus(in)?$/.test(t.type))}),e(window).on(L.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(P.DATA_TOGGLES_BUTTONS)),e=0,n=t.length;e<n;e++){var r=t[e],i=r.querySelector(P.INPUT);i.checked||i.hasAttribute("checked")?r.classList.add(R.ACTIVE):r.classList.remove(R.ACTIVE)}t=[].slice.call(document.querySelectorAll(P.DATA_TOGGLE));for(var o=0,a=t.length;o<a;o++){var s=t[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(R.ACTIVE):s.classList.remove(R.ACTIVE)}}),e.fn[A]=M._jQueryInterface,e.fn[A].Constructor=M,e.fn[A].noConflict=function(){return e.fn[A]=D,M._jQueryInterface};var j="carousel",F="4.4.1",U="bs.carousel",V="."+U,B=".data-api",q=e.fn[j],H=37,W=39,G=500,K=40,z={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},$={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Q={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},Y={SLIDE:"slide"+V,SLID:"slid"+V,KEYDOWN:"keydown"+V,MOUSEENTER:"mouseenter"+V,MOUSELEAVE:"mouseleave"+V,TOUCHSTART:"touchstart"+V,TOUCHMOVE:"touchmove"+V,TOUCHEND:"touchend"+V,POINTERDOWN:"pointerdown"+V,POINTERUP:"pointerup"+V,DRAG_START:"dragstart"+V,LOAD_DATA_API:"load"+V+B,CLICK_DATA_API:"click"+V+B},X={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item",POINTER_EVENT:"pointer-event"},J={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",ITEM_IMG:".carousel-item img",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},Z={TOUCH:"touch",PEN:"pen"},tt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(J.INDICATORS),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(Q.NEXT)},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"
874!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(Q.PREV)},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(J.NEXT_PREV)&&(g.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(J.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one(Y.SLID,function(){return n.to(t)});else{if(r===t)return this.pause(),void this.cycle();var i=t>r?Q.NEXT:Q.PREV;this._slide(i,this._items[t])}},n.dispose=function(){e(this._element).off(V),e.removeData(this._element,U),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=s({},z,{},t),g.typeCheckConfig(j,t,$),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=K)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(Y.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&e(this._element).on(Y.MOUSEENTER,function(e){return t.pause(e)}).on(Y.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&Z[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},r=function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX},i=function(e){t._pointerEvent&&Z[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},G+t._config.interval))};e(this._element.querySelectorAll(J.ITEM_IMG)).on(Y.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(e(this._element).on(Y.POINTERDOWN,function(t){return n(t)}),e(this._element).on(Y.POINTERUP,function(t){return i(t)}),this._element.classList.add(X.POINTER_EVENT)):(e(this._element).on(Y.TOUCHSTART,function(t){return n(t)}),e(this._element).on(Y.TOUCHMOVE,function(t){return r(t)}),e(this._element).on(Y.TOUCHEND,function(t){return i(t)}))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case H:t.preventDefault(),this.prev();break;case W:t.preventDefault(),this.next();break}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(J.ITEM)):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n=t===Q.NEXT,r=t===Q.PREV,i=this._getItemIndex(e),o=this._items.length-1,a=r&&0===i||n&&i===o;if(a&&!this._config.wrap)return e;var s=t===Q.PREV?-1:1,u=(i+s)%this._items.length;return-1===u?this._items[this._items.length-1]:this._items[u]},n._triggerSlideEvent=function(t,n){var r=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(J.ACTIVE_ITEM)),o=e.Event(Y.SLIDE,{relatedTarget:t,direction:n,from:i,to:r});return e(this._element).trigger(o),o},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(J.ACTIVE));e(n).removeClass(X.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(t)];r&&e(r).addClass(X.ACTIVE)}},n._slide=function(t,n){var r,i,o,a=this,s=this._element.querySelector(J.ACTIVE_ITEM),u=this._getItemIndex(s),c=n||s&&this._getItemByDirection(t,s),l=this._getItemIndex(c),h=Boolean(this._interval);if(t===Q.NEXT?(r=X.LEFT,i=X.NEXT,o=Q.LEFT):(r=X.RIGHT,i=X.PREV,o=Q.RIGHT),c&&e(c).hasClass(X.ACTIVE))this._isSliding=!1;else{var f=this._triggerSlideEvent(c,o);if(!f.isDefaultPrevented()&&s&&c){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(c);var p=e.Event(Y.SLID,{relatedTarget:c,direction:o,from:u,to:l});if(e(this._element).hasClass(X.SLIDE)){e(c).addClass(i),g.reflow(c),e(s).addClass(r),e(c).addClass(r);var d=parseInt(c.getAttribute("data-interval"),10);d?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=d):this._config.interval=this._config.defaultInterval||this._config.interval;var v=g.getTransitionDurationFromElement(s);e(s).one(g.TRANSITION_END,function(){e(c).removeClass(r+" "+i).addClass(X.ACTIVE),e(s).removeClass(X.ACTIVE+" "+i+" "+r),a._isSliding=!1,setTimeout(function(){return e(a._element).trigger(p)},0)}).emulateTransitionEnd(v)}else e(s).removeClass(X.ACTIVE),e(c).addClass(X.ACTIVE),this._isSliding=!1,e(this._element).trigger(p);h&&this.cycle()}}},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data(U),i=s({},z,{},e(this).data());"object"===typeof n&&(i=s({},i,{},n));var o="string"===typeof n?n:i.slide;if(r||(r=new t(this,i),e(this).data(U,r)),"number"===typeof n)r.to(n);else if("string"===typeof o){if("undefined"===typeof r[o])throw new TypeError('No method n
874amed "'+o+'"');r[o]()}else i.interval&&i.ride&&(r.pause(),r.cycle())})},t._dataApiClickHandler=function(n){var r=g.getSelectorFromElement(this);if(r){var i=e(r)[0];if(i&&e(i).hasClass(X.CAROUSEL)){var o=s({},e(i).data(),{},e(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(e(i),o),a&&e(i).data(U).to(a),n.preventDefault()}}},i(t,null,[{key:"VERSION",get:function(){return F}},{key:"Default",get:function(){return z}}]),t}();e(document).on(Y.CLICK_DATA_API,J.DATA_SLIDE,tt._dataApiClickHandler),e(window).on(Y.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(J.DATA_RIDE)),n=0,r=t.length;n<r;n++){var i=e(t[n]);tt._jQueryInterface.call(i,i.data())}}),e.fn[j]=tt._jQueryInterface,e.fn[j].Constructor=tt,e.fn[j].noConflict=function(){return e.fn[j]=q,tt._jQueryInterface};var et="collapse",nt="4.4.1",rt="bs.collapse",it="."+rt,ot=".data-api",at=e.fn[et],st={toggle:!0,parent:""},ut={toggle:"boolean",parent:"(string|element)"},ct={SHOW:"show"+it,SHOWN:"shown"+it,HIDE:"hide"+it,HIDDEN:"hidden"+it,CLICK_DATA_API:"click"+it+ot},lt={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},ht={WIDTH:"width",HEIGHT:"height"},ft={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},pt=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ft.DATA_TOGGLE)),r=0,i=n.length;r<i;r++){var o=n[r],a=g.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass(lt.SHOW)?this.hide():this.show()},n.show=function(){var n,r,i=this;if(!this._isTransitioning&&!e(this._element).hasClass(lt.SHOW)&&(this._parent&&(n=[].slice.call(this._parent.querySelectorAll(ft.ACTIVES)).filter(function(t){return"string"===typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(lt.COLLAPSE)}),0===n.length&&(n=null)),!(n&&(r=e(n).not(this._selector).data(rt),r&&r._isTransitioning)))){var o=e.Event(ct.SHOW);if(e(this._element).trigger(o),!o.isDefaultPrevented()){n&&(t._jQueryInterface.call(e(n).not(this._selector),"hide"),r||e(n).data(rt,null));var a=this._getDimension();e(this._element).removeClass(lt.COLLAPSE).addClass(lt.COLLAPSING),this._element.style[a]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(lt.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){e(i._element).removeClass(lt.COLLAPSING).addClass(lt.COLLAPSE).addClass(lt.SHOW),i._element.style[a]="",i.setTransitioning(!1),e(i._element).trigger(ct.SHOWN)},u=a[0].toUpperCase()+a.slice(1),c="scroll"+u,l=g.getTransitionDurationFromElement(this._element);e(this._element).one(g.TRANSITION_END,s).emulateTransitionEnd(l),this._element.style[a]=this._element[c]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(lt.SHOW)){var n=e.Event(ct.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",g.reflow(this._element),e(this._element).addClass(lt.COLLAPSING).removeClass(lt.COLLAPSE).removeClass(lt.SHOW);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=g.getSelectorFromElement(a);if(null!==s){var u=e([].slice.call(document.querySelectorAll(s)));u.hasClass(lt.SHOW)||e(a).addClass(lt.COLLAPSED).attr("aria-expanded",!1)}}this.setTransitioning(!0);var c=function(){t.setTransitioning(!1),e(t._element).removeClass(lt.COLLAPSING).addClass(lt.COLLAPSE).trigger(ct.HIDDEN)};this._element.style[r]="";var l=g.getTransitionDurationFromElement(this._element);e(this._element).one(g.TRANSITION_END,c).emulateTransitionEnd(l)}}},n.setTransitioning=function(t){this._isTransitioning=t},n.dispose=function(){e.removeData(this._element,rt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(t){return t=s({},st,{}
874,t),t.toggle=Boolean(t.toggle),g.typeCheckConfig(et,t,ut),t},n._getDimension=function(){var t=e(this._element).hasClass(ht.WIDTH);return t?ht.WIDTH:ht.HEIGHT},n._getParent=function(){var n,r=this;g.isElement(this._config.parent)?(n=this._config.parent,"undefined"!==typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return e(o).each(function(e,n){r._addAriaAndCollapsedClass(t._getTargetFromElement(n),[n])}),n},n._addAriaAndCollapsedClass=function(t,n){var r=e(t).hasClass(lt.SHOW);n.length&&e(n).toggleClass(lt.COLLAPSED,!r).attr("aria-expanded",r)},t._getTargetFromElement=function(t){var e=g.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(n){return this.each(function(){var r=e(this),i=r.data(rt),o=s({},st,{},r.data(),{},"object"===typeof n&&n?n:{});if(!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||(i=new t(this,o),r.data(rt,i)),"string"===typeof n){if("undefined"===typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},i(t,null,[{key:"VERSION",get:function(){return nt}},{key:"Default",get:function(){return st}}]),t}();e(document).on(ct.CLICK_DATA_API,ft.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=e(this),r=g.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(r));e(i).each(function(){var t=e(this),r=t.data(rt),i=r?"toggle":n.data();pt._jQueryInterface.call(t,i)})}),e.fn[et]=pt._jQueryInterface,e.fn[et].Constructor=pt,e.fn[et].noConflict=function(){return e.fn[et]=at,pt._jQueryInterface};var dt="dropdown",vt="4.4.1",gt="bs.dropdown",mt="."+gt,yt=".data-api",bt=e.fn[dt],_t=27,wt=32,Et=9,It=38,Tt=40,St=3,Ct=new RegExp(It+"|"+Tt+"|"+_t),At={HIDE:"hide"+mt,HIDDEN:"hidden"+mt,SHOW:"show"+mt,SHOWN:"shown"+mt,CLICK:"click"+mt,CLICK_DATA_API:"click"+mt+yt,KEYDOWN_DATA_API:"keydown"+mt+yt,KEYUP_DATA_API:"keyup"+mt+yt},Nt={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},kt={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},Ot={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},xt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Dt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Rt=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var r=t.prototype;return r.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(Nt.DISABLED)){var n=e(this._menu).hasClass(Nt.SHOW);t._clearMenus(),n||this.show(!0)}},r.show=function(r){if(void 0===r&&(r=!1),!(this._element.disabled||e(this._element).hasClass(Nt.DISABLED)||e(this._menu).hasClass(Nt.SHOW))){var i={relatedTarget:this._element},o=e.Event(At.SHOW,i),a=t._getParentFromElement(this._element);if(e(a).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&r){if("undefined"===typeof n)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=a:g.isElement(this._config.reference)&&(s=this._config.reference,"undefined"!==typeof this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(a).addClass(Nt.POSITION_STATIC),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(a).closest(kt.NAVBAR_NAV).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(Nt.SHOW),e(a).toggleClass(Nt.SHOW).trigger(e.Event(At.SHOWN,i))}}},r.hide=function(){if(!this._element.disabled&&!e(this._element).hasClass(Nt.DISABLED)&&e(this._menu).hasClass(Nt.SHOW)){var n={relatedTarget:this._element},r=e.Event(At.HIDE,n),i=t._getParentFromElement(this._element);e(i).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(Nt.SHOW),e(i).toggleClass(Nt.SHOW).trigger(e.Event(At.HIDDEN,n)))}},r.dispose=function(){e.removeData(this._element,gt),e(this._element).off(mt),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var t=this;e(this._element).on(At.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle(
874)})},r._getConfig=function(t){return t=s({},this.constructor.Default,{},e(this._element).data(),{},t),g.typeCheckConfig(dt,t,this.constructor.DefaultType),t},r._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(kt.MENU))}return this._menu},r._getPlacement=function(){var t=e(this._element.parentNode),n=Ot.BOTTOM;return t.hasClass(Nt.DROPUP)?(n=Ot.TOP,e(this._menu).hasClass(Nt.MENURIGHT)&&(n=Ot.TOPEND)):t.hasClass(Nt.DROPRIGHT)?n=Ot.RIGHT:t.hasClass(Nt.DROPLEFT)?n=Ot.LEFT:e(this._menu).hasClass(Nt.MENURIGHT)&&(n=Ot.BOTTOMEND),n},r._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},r._getOffset=function(){var t=this,e={};return"function"===typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},r._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),s({},t,{},this._config.popperConfig)},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data(gt),i="object"===typeof n?n:null;if(r||(r=new t(this,i),e(this).data(gt,r)),"string"===typeof n){if("undefined"===typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},t._clearMenus=function(n){if(!n||n.which!==St&&("keyup"!==n.type||n.which===Et))for(var r=[].slice.call(document.querySelectorAll(kt.DATA_TOGGLE)),i=0,o=r.length;i<o;i++){var a=t._getParentFromElement(r[i]),s=e(r[i]).data(gt),u={relatedTarget:r[i]};if(n&&"click"===n.type&&(u.clickEvent=n),s){var c=s._menu;if(e(a).hasClass(Nt.SHOW)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&n.which===Et)&&e.contains(a,n.target))){var l=e.Event(At.HIDE,u);e(a).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),r[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),e(c).removeClass(Nt.SHOW),e(a).removeClass(Nt.SHOW).trigger(e.Event(At.HIDDEN,u)))}}}},t._getParentFromElement=function(t){var e,n=g.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(n){if((/input|textarea/i.test(n.target.tagName)?!(n.which===wt||n.which!==_t&&(n.which!==Tt&&n.which!==It||e(n.target).closest(kt.MENU).length)):Ct.test(n.which))&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!e(this).hasClass(Nt.DISABLED))){var r=t._getParentFromElement(this),i=e(r).hasClass(Nt.SHOW);if(i||n.which!==_t)if(i&&(!i||n.which!==_t&&n.which!==wt)){var o=[].slice.call(r.querySelectorAll(kt.VISIBLE_ITEMS)).filter(function(t){return e(t).is(":visible")});if(0!==o.length){var a=o.indexOf(n.target);n.which===It&&a>0&&a--,n.which===Tt&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}else{if(n.which===_t){var s=r.querySelector(kt.DATA_TOGGLE);e(s).trigger("focus")}e(this).trigger("click")}}},i(t,null,[{key:"VERSION",get:function(){return vt}},{key:"Default",get:function(){return xt}},{key:"DefaultType",get:function(){return Dt}}]),t}();e(document).on(At.KEYDOWN_DATA_API,kt.DATA_TOGGLE,Rt._dataApiKeydownHandler).on(At.KEYDOWN_DATA_API,kt.MENU,Rt._dataApiKeydownHandler).on(At.CLICK_DATA_API+" "+At.KEYUP_DATA_API,Rt._clearMenus).on(At.CLICK_DATA_API,kt.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),Rt._jQueryInterface.call(e(this),"toggle")}).on(At.CLICK_DATA_API,kt.FORM_CHILD,function(t){t.stopPropagation()}),e.fn[dt]=Rt._jQueryInterface,e.fn[dt].Constructor=Rt,e.fn[dt].noConflict=function(){return e.fn[dt]=bt,Rt._jQueryInterface};var Pt="modal",Lt="4.4.1",Mt="bs.modal",jt="."+Mt,Ft=".data-api",Ut=e.fn[Pt],Vt=27,Bt={backdrop:!0,keyboard:!0,focus:!0,show:!0},qt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Ht={HIDE:"hide"+jt,HIDE_PREVENTED:"hidePrevented"+jt,HIDDEN:"hidden"+jt,SHOW:"show"+jt,SHOWN:"shown"+jt,FOCUSIN:"focusin"+jt,RESIZE:"resize"+jt,CLICK_DISMISS:"click.dismiss"+jt,KEYDOWN_DISMISS:"keydown.dismiss"+jt,MOUSEUP_DISMISS:"mouseup.dismiss"+jt,MOUSEDOWN_DISMISS:"mousedown.dismiss"+jt,CLICK_DATA_API:"click"+jt+Ft},Wt={SCROLLABLE:"modal-dialog-scrollable",SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show",STATIC:"modal-static"},Gt={DIALOG:".modal-dialog",MODAL_BODY:".modal-body",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"},Kt=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Gt.DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var n=t.prototype;return n.toggle=function(t){return this._isShown?this.hide():this.show(t)},n.show=function(t){var n=this;if(!this._isShown&&!this._isTransitioning){e(this._element).hasClass(Wt.FADE)&&(this._isTransitioning=!0);var r=e.Event(Ht.SHOW,{relatedTarget:t});e(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(Ht.CLICK_DISMISS,Gt.DATA_DISMISS,function(t){return n.hide(t)}),e(this._dialog).on(Ht.MOUSEDOWN_DISMISS,function(){e(n._element).one(Ht.MOUSEUP_DISMISS,function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))}},n.hide=function(t){var n=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var r=e.Event(Ht.HIDE);if(e(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=e(this._element).hasClass(Wt.FADE);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(Ht.FOCUSIN),e(this._element).removeClass(Wt.SHOW),e(this._element).off(Ht.CLICK_DISMISS),e(this._dialog).off(Ht.MOUSEDOWN_DISMISS),i){var o=g.getTransitionDurationFromElement(this._element);e(this._element).one(g.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},n.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return e(t).off(jt)}),e(document).off(Ht.FOCUSIN),e.removeData(this._element,Mt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(t){return t=s({},Bt,{},t),g.typeCheckConfig(Pt,t,qt),t},n._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var n=e.Event(Ht.HIDE_PREVENTED);if(e(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add(Wt.STATIC);var r=g.getTransitionDurationFromElement(this._element);e(this._element).one(g.TRANSITION_END,function(){t._element.classList.remove(Wt.STATIC)}).emulateTransitionEnd(r),this._element.focus()}else this.hide()},n._showElement=function(t){var n=this,r=e(this._element).hasClass(Wt.FADE),i=this._dialog?this._dialog.querySelector(Gt.MODAL_BODY):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),e(this._dialog).hasClass(Wt.SCROLLABLE)&&i?i.scrollTop=0:this._element.scrollTop=0,r&&g.reflow(this._element),e(this._element).addClass(Wt.SHOW),this._config.focus&&this._enforceFocus();var o=e.Event(Ht.SHOWN,{relatedTarget:t}),a=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(o)};if(r){var s=g.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(g.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},n._enforceFocus=function(){var t=this;e(document).off(Ht.FOCUSIN).on(Ht.FOCUSIN,function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()})},n._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(Ht.KEYDOWN_DISMISS,function(e){e.which===Vt&&t._triggerBackdropTransition()}):this._isShown||e(this._element).off(Ht.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var t=this;this._isShown?e(window).on(Ht.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(Ht.RESIZE)},n._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(Wt.OPEN),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(Ht.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(t){var n=this,r=e(this._element).hasClass(Wt.FADE)?Wt.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Wt.BACKDROP,r&&this._backdrop.classList.add(r),e(this._backdrop).appendTo(document.body),e(this._element).on(Ht.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&n._triggerBackdropTransition()}),r&&g.reflow(this._backdrop),e(this._backdrop).addClass(Wt.SHOW),!t)return;if(!r)return void t();var i=g.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(g.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(Wt.SHOW);var o=function(){n._removeBackdrop(),t&&t()};if(e(this._element).hasClass(Wt.FADE)){var a=g.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(g.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(Gt.FIXED_CONTENT)),r=[].slice.call(document.querySelectorAll(Gt.STICKY_CONTENT));e(n).each(function(n,r){var i=r.style.paddingRight,o=e(r).css("padding-right");e(r).data("padding-right",i).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")}),e(r).each(function(n,r){var i=r.style.marginRight,o=e(r).css("margin-right");e(r).data("margin-right",i).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")});var i=document.body.style.paddingRight,o=e(document.body).css("padding-right");e(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}e(document.body).addClass(Wt.OPEN)},n._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(Gt.FIXED_CONTENT));e(t).each(function(t,n){var r=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=r||""});var n=[].slice.call(document.querySelectorAll(""+Gt.STICKY_CONTENT));e(n).each(function(t,n){var r=e(n).data("margin-right");"undefined"!==typeof r&&e(n).css("margin-right",r).removeData("margin-right")});var r=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=r||""},n._getScrollbarWidth=function(){var t=document.createElement("div");t.className=Wt.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(n,r){return this.each(function(){var i=e(this).data(Mt),o=s({},Bt,{},e(this).data(),{},"object"===typeof n&&n?n:{});if(i||(i=new t(this,o),e(this).data(Mt,i)),"string"===typeof n){if("undefined"===typeof i[n])throw new TypeError('No method n
874amed "'+n+'"');i[n](r)}else o.show&&i.show(r)})},i(t,null,[{key:"VERSION",get:function(){return Lt}},{key:"Default",get:function(){return Bt}}]),t}();e(document).on(Ht.CLICK_DATA_API,Gt.DATA_TOGGLE,function(t){var n,r=this,i=g.getSelectorFromElement(this);i&&(n=document.querySelector(i));var o=e(n).data(Mt)?"toggle":s({},e(n).data(),{},e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=e(n).one(Ht.SHOW,function(t){t.isDefaultPrevented()||a.one(Ht.HIDDEN,function(){e(r).is(":visible")&&r.focus()})});Kt._jQueryInterface.call(e(n),o,this)}),e.fn[Pt]=Kt._jQueryInterface,e.fn[Pt].Constructor=Kt,e.fn[Pt].noConflict=function(){return e.fn[Pt]=Ut,Kt._jQueryInterface};var zt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],$t=/^aria-[\w-]*$/i,Qt={"*":["class","dir","id","lang","role",$t],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Yt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Xt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Jt(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===zt.indexOf(n)||Boolean(t.nodeValue.match(Yt)||t.nodeValue.match(Xt));for(var r=e.filter(function(t){return t instanceof RegExp}),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return!0;return!1}function Zt(t,e,n){if(0===t.length)return t;if(n&&"function"===typeof n)return n(t);for(var r=new window.DOMParser,i=r.parseFromString(t,"text/html"),o=Object.keys(e),a=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var r=a[t],i=r.nodeName.toLowerCase();if(-1===o.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),u=[].concat(e["*"]||[],e[i]||[]);s.forEach(function(t){Jt(t,u)||r.removeAttribute(t.nodeName)})},u=0,c=a.length;u<c;u++)s(u);return i.body.innerHTML}var te="tooltip",ee="4.4.1",ne="bs.tooltip",re="."+ne,ie=e.fn[te],oe="bs-tooltip",ae=new RegExp("(^|\\s)"+oe+"\\S+","g"),se=["sanitize","whiteList","sanitizeFn"],ue={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},ce={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},le={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Qt,popperConfig:null},he={SHOW:"show",OUT:"out"},fe={HIDE:"hide"+re,HIDDEN:"hidden"+re,SHOW:"show"+re,SHOWN:"shown"+re,INSERTED:"inserted"+re,CLICK:"click"+re,FOCUSIN:"focusin"+re,FOCUSOUT:"focusout"+re,MOUSEENTER:"mouseenter"+re,MOUSELEAVE:"mouseleave"+re},pe={FADE:"fade",SHOW:"show"},de={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},ve={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},ge=function(){function t(t,e){if("undefined"===typeof n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var r=t.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,r=e(t.currentTarget).data(n);r||(r=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(e(this.getTipElement()).hasClass(pe.SHOW))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var r=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(r);var i=g.findShadowRoot(this.element),o=e.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!o)return;var a=this.getTipElement(),s=g.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&e(a).addClass(pe.FADE);var u="function"===typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(u);this.addAttachmentClass(c);var l=this._getContainer();e(a).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(a).appendTo(l),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,this._getPopperConfig(c)),e(a).addClass(pe.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var h=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===he.OUT&&t._leave(null,t)};if(e(this.tip).hasClass(pe.FADE)){var f=g.getTransitionDurationFromElement(this.tip);e(this.tip).one(g.TRANSITION_END,h).emulateTransitionEnd(f)}else h()}},r.hide=function(t){var n=this,r=this.getTipElement(),i=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==he.SHOW&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};
874if(e(this.element).trigger(i),!i.isDefaultPrevented()){if(e(r).removeClass(pe.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[ve.CLICK]=!1,this._activeTrigger[ve.FOCUS]=!1,this._activeTrigger[ve.HOVER]=!1,e(this.tip).hasClass(pe.FADE)){var a=g.getTransitionDurationFromElement(r);e(r).one(g.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(t){e(this.getTipElement()).addClass(oe+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(de.TOOLTIP_INNER)),this.getTitle()),e(t).removeClass(pe.FADE+" "+pe.SHOW)},r.setElementContent=function(t,n){"object"!==typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Zt(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text())},r.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"===typeof this.config.title?this.config.title.call(this.element):this.config.title),t},r._getPopperConfig=function(t){var e=this,n={placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:de.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}};return s({},n,{},this.config.popperConfig)},r._getOffset=function(){var t=this,e={};return"function"===typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},r._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},r._getAttachment=function(t){return ce[t.toUpperCase()]},r._setListeners=function(){var t=this,n=this.config.trigger.split(" ");n.forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==ve.MANUAL){var r=n===ve.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=n===ve.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(r,t.config.selector,function(e){return t._enter(e)}).on(i,t.config.selector,function(e){return t._leave(e)})}}),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(t,n){var r=this.constructor.DATA_KEY;n=n||e(t.currentTarget).data(r),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusin"===t.type?ve.FOCUS:ve.HOVER]=!0),e(n.getTipElement()).hasClass(pe.SHOW)||n._hoverState===he.SHOW?n._hoverState=he.SHOW:(clearTimeout(n._timeout),n._hoverState=he.SHOW,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===he.SHOW&&n.show()},n.config.delay.show):n.show())},r._leave=function(t,n){var r=this.constructor.DATA_KEY;n=n||e(t.currentTarget).data(r),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusout"===t.type?ve.FOCUS:ve.HOVER]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=he.OUT,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===he.OUT&&n.hide()},n.config.delay.hide):n.hide())},r._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},r._getConfig=function(t){var n=e(this.element).data();
874return Object.keys(n).forEach(function(t){-1!==se.indexOf(t)&&delete n[t]}),t=s({},this.constructor.Default,{},n,{},"object"===typeof t&&t?t:{}),"number"===typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"===typeof t.title&&(t.title=t.title.toString()),"number"===typeof t.content&&(t.content=t.content.toString()),g.typeCheckConfig(te,t,this.constructor.DefaultType),t.sanitize&&(t.template=Zt(t.template,t.whiteList,t.sanitizeFn)),t},r._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},r._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(ae);null!==n&&n.length&&t.removeClass(n.join(""))},r._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},r._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(pe.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data(ne),i="object"===typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new t(this,i),e(this).data(ne,r)),"string"===typeof n)){if("undefined"===typeof r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},i(t,null,[{key:"VERSION",get:function(){return ee}},{key:"Default",get:function(){return le}},{key:"NAME",get:function(){return te}},{key:"DATA_KEY",get:function(){return ne}},{key:"Event",get:function(){return fe}},{key:"EVENT_KEY",get:function(){return re}},{key:"DefaultType",get:function(){return ue}}]),t}();e.fn[te]=ge._jQueryInterface,e.fn[te].Constructor=ge,e.fn[te].noConflict=function(){return e.fn[te]=ie,ge._jQueryInterface};var me="popover",ye="4.4.1",be="bs.popover",_e="."+be,we=e.fn[me],Ee="bs-popover",Ie=new RegExp("(^|\\s)"+Ee+"\\S+","g"),Te=s({},ge.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Se=s({},ge.DefaultType,{content:"(string|element|function)"}),Ce={FADE:"fade",SHOW:"show"},Ae={TITLE:".popover-header",CONTENT:".popover-body"},Ne={HIDE:"hide"+_e,HIDDEN:"hidden"+_e,SHOW:"show"+_e,SHOWN:"shown"+_e,INSERTED:"inserted"+_e,CLICK:"click"+_e,FOCUSIN:"focusin"+_e,FOCUSOUT:"focusout"+_e,MOUSEENTER:"mouseenter"+_e,MOUSELEAVE:"mouseleave"+_e},ke=function(t){function n(){return t.apply(this,arguments)||this}u(n,t);var r=n.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){e(this.getTipElement()).addClass(Ee+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(Ae.TITLE),this.getTitle());var n=this._getContent();"function"===typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(Ae.CONTENT),n),t.removeClass(Ce.FADE+" "+Ce.SHOW)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(Ie);null!==n&&n.length>0&&t.removeClass(n.join(""))},n._jQueryInterface=function(t){return this.each(function(){var r=e(this).data(be),i="object"===typeof t?t:null;if((r||!/dispose|hide/.test(t))&&(r||(r=new n(this,i),e(this).data(be,r)),"string"===typeof t)){if("undefined"===typeof r[t])throw new TypeError('No method named "'+t+'"');r[t]()}})},i(n,null,[{key:"VERSION",get:function(){return ye}},{key:"Default",get:function(){return Te}},{key:"NAME",get:function(){return me}},{key:"DATA_KEY",get:function(){return be}},{key:"Event",get:function(){return Ne}},{key:"EVENT_KEY",get:function(){return _e}},{key:"DefaultType",get:function(){return Se}}]),n}(ge);e.fn[me]=ke._jQueryInterface,e.fn[me].Constructor=ke,e.fn[me].noConflict=function(){return e.fn[me]=we,ke._jQueryInterface};var Oe="scrollspy",xe="4.4.1",De="bs.scrollspy",Re="."+De,Pe=".data-api",Le=e.fn[Oe],Me={offset:10,method:"auto",target:""},je={offset:"number",method:"string",target:"(string|element)"}
874,Fe={ACTIVATE:"activate"+Re,SCROLL:"scroll"+Re,LOAD_DATA_API:"load"+Re+Pe},Ue={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},Ve={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},Be={OFFSET:"offset",POSITION:"position"},qe=function(){function t(t,n){var r=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+Ve.NAV_LINKS+","+this._config.target+" "+Ve.LIST_ITEMS+","+this._config.target+" "+Ve.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(Fe.SCROLL,function(t){return r._process(t)}),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?Be.OFFSET:Be.POSITION,r="auto"===this._config.method?n:this._config.method,i=r===Be.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var o=[].slice.call(document.querySelectorAll(this._selector));o.map(function(t){var n,o=g.getSelectorFromElement(t);if(o&&(n=document.querySelector(o)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[e(n)[r]().top+i,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},n.dispose=function(){e.removeData(this._element,De),e(this._scrollElement).off(Re),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if(t=s({},Me,{},"object"===typeof t&&t?t:{}),"string"!==typeof t.target){var n=e(t.target).attr("id");n||(n=g.getUID(Oe),e(t.target).attr("id",n)),t.target="#"+n}return g.typeCheckConfig(Oe,t,je),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length,o=i;o--;){var a=this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"===typeof this._offsets[o+1]||t<this._offsets[o+1]);a&&this._activate(this._targets[o])}}},n._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),r=e([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(Ue.DROPDOWN_ITEM)?(r.closest(Ve.DROPDOWN).find(Ve.DROPDOWN_TOGGLE).addClass(Ue.ACTIVE),r.addClass(Ue.ACTIVE)):(r.addClass(Ue.ACTIVE),r.parents(Ve.NAV_LIST_GROUP).prev(Ve.NAV_LINKS+", "+Ve.LIST_ITEMS).addClass(Ue.ACTIVE),r.parents(Ve.NAV_LIST_GROUP).prev(Ve.NAV_ITEMS).children(Ve.NAV_LINKS).addClass(Ue.ACTIVE)),e(this._scrollElement).trigger(Fe.ACTIVATE,{relatedTarget:t})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(Ue.ACTIVE)}).forEach(function(t){return t.classList.remove(Ue.ACTIVE)})},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data(De),i="object"===typeof n&&n;if(r||(r=new t(this,i),e(this).data(De,r)),"string"===typeof n){if("undefined"===typeof r[n])throw new TypeError('No method n
874amed "'+n+'"');r[n]()}})},i(t,null,[{key:"VERSION",get:function(){return xe}},{key:"Default",get:function(){return Me}}]),t}();e(window).on(Fe.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(Ve.DATA_SPY)),n=t.length,r=n;r--;){var i=e(t[r]);qe._jQueryInterface.call(i,i.data())}}),e.fn[Oe]=qe._jQueryInterface,e.fn[Oe].Constructor=qe,e.fn[Oe].noConflict=function(){return e.fn[Oe]=Le,qe._jQueryInterface};var He="tab",We="4.4.1",Ge="bs.tab",Ke="."+Ge,ze=".data-api",$e=e.fn[He],Qe={HIDE:"hide"+Ke,HIDDEN:"hidden"+Ke,SHOW:"show"+Ke,SHOWN:"shown"+Ke,CLICK_DATA_API:"click"+Ke+ze},Ye={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},Xe={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},Je=function(){function t(t){this._element=t}var n=t.prototype;return n.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(Ye.ACTIVE)||e(this._element).hasClass(Ye.DISABLED))){var n,r,i=e(this._element).closest(Xe.NAV_LIST_GROUP)[0],o=g.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?Xe.ACTIVE_UL:Xe.ACTIVE;r=e.makeArray(e(i).find(a)),r=r[r.length-1]}var s=e.Event(Qe.HIDE,{relatedTarget:this._element}),u=e.Event(Qe.SHOW,{relatedTarget:r});if(r&&e(r).trigger(s),e(this._element).trigger(u),!u.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,i);var c=function(){var n=e.Event(Qe.HIDDEN,{relatedTarget:t._element}),i=e.Event(Qe.SHOWN,{relatedTarget:r});e(r).trigger(n),e(t._element).trigger(i)};n?this._activate(n,n.parentNode,c):c()}}},n.dispose=function(){e.removeData(this._element,Ge),this._element=null},n._activate=function(t,n,r){var i=this,o=!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(Xe.ACTIVE):e(n).find(Xe.ACTIVE_UL),a=o[0],s=r&&a&&e(a).hasClass(Ye.FADE),u=function(){return i._transitionComplete(t,a,r)};if(a&&s){var c=g.getTransitionDurationFromElement(a);e(a).removeClass(Ye.SHOW).one(g.TRANSITION_END,u).emulateTransitionEnd(c)}else u()},n._transitionComplete=function(t,n,r){if(n){e(n).removeClass(Ye.ACTIVE);var i=e(n.parentNode).find(Xe.DROPDOWN_ACTIVE_CHILD)[0];i&&e(i).removeClass(Ye.ACTIVE),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(Ye.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),g.reflow(t),t.classList.contains(Ye.FADE)&&t.classList.add(Ye.SHOW),t.parentNode&&e(t.parentNode).hasClass(Ye.DROPDOWN_MENU)){var o=e(t).closest(Xe.DROPDOWN)[0];if(o){var a=[].slice.call(o.querySelectorAll(Xe.DROPDOWN_TOGGLE));e(a).addClass(Ye.ACTIVE)}t.setAttribute("aria-expanded",!0)}r&&r()},t._jQueryInterface=function(n){return this.each(function(){var r=e(this),i=r.data(Ge);if(i||(i=new t(this),r.data(Ge,i)),"string"===typeof n){if("undefined"===typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},i(t,null,[{key:"VERSION",get:function(){return We}}]),t}();e(document).on(Qe.CLICK_DATA_API,Xe.DATA_TOGGLE,function(t){t.preventDefault(),Je._jQueryInterface.call(e(this),"show")}),e.fn[He]=Je._jQueryInterface,e.fn[He].Constructor=Je,e.fn[He].noConflict=function(){return e.fn[He]=$e,Je._jQueryInterface};var Ze="toast",tn="4.4.1",en="bs.toast",nn="."+en,rn=e.fn[Ze],on={CLICK_DISMISS:"click.dismiss"+nn,HIDE:"hide"+nn,HIDDEN:"hidden"+nn,SHOW:"show"+nn,SHOWN:"shown"+nn},an={FADE:"fade",HIDE:"hide",SHOW:"show",SHOWING:"showing"},sn={animation:"boolean",autohide:"boolean",delay:"number"},un={animation:!0,autohide:!0,delay:500},cn={DATA_DISMISS:'[data-dismiss="toast"]'},ln=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this,n=e.Event(on.SHOW);if(e(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add(an.FADE);var r=function(){t._element.classList.remove(an.SHOWING),t._element.classList.add(an.SHOW),e(t._element).trigger(on.SHOWN),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove(an.HIDE),g.reflow(this._element),this._element.classList.add(an.SHOWING),this._config.animation){var i=g.getTransitionDurationFromElement(this._element);e(this._element).one(g.TRANSITION_END,r).emulateTransitionEnd(i)}else r()}},n.hide=function(){if(this._element.classList.contains(an.SHOW)){var t=e.Event(on.HIDE);e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(an.SHOW)&&this._element.classList.remove(an.SHOW),e(this._element).off(on.CLICK_DISMISS),e.removeData(this._element,en),this._element=null,this._config=null},n._getConfig=function(t){return t=s({},un,{},e(this._element).data(),{},"object"===typeof t&&t?t:{}),g.typeCheckConfig(Ze,t,this.constructor.DefaultType),t}
874,n._setListeners=function(){var t=this;e(this._element).on(on.CLICK_DISMISS,cn.DATA_DISMISS,function(){return t.hide()})},n._close=function(){var t=this,n=function(){t._element.classList.add(an.HIDE),e(t._element).trigger(on.HIDDEN)};if(this._element.classList.remove(an.SHOW),this._config.animation){var r=g.getTransitionDurationFromElement(this._element);e(this._element).one(g.TRANSITION_END,n).emulateTransitionEnd(r)}else n()},t._jQueryInterface=function(n){return this.each(function(){var r=e(this),i=r.data(en),o="object"===typeof n&&n;if(i||(i=new t(this,o),r.data(en,i)),"string"===typeof n){if("undefined"===typeof i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}})},i(t,null,[{key:"VERSION",get:function(){return tn}},{key:"DefaultType",get:function(){return sn}},{key:"Default",get:function(){return un}}]),t}();e.fn[Ze]=ln._jQueryInterface,e.fn[Ze].Constructor=ln,e.fn[Ze].noConflict=function(){return e.fn[Ze]=rn,ln._jQueryInterface},t.Alert=C,t.Button=M,t.Carousel=tt,t.Collapse=pt,t.Dropdown=Rt,t.Modal=Kt,t.Popover=ke,t.Scrollspy=qe,t.Tab=Je,t.Toast=ln,t.Tooltip=ge,t.Util=g,Object.defineProperty(t,"__esModule",{value:!0})})},"4a59":function(t,e,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),u=n("27ee"),c={},l={};e=t.exports=function(t,e,n,h,f){var p,d,v,g,m=f?function(){return t}:u(t),y=r(n,h,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=s(t.length);p>b;b++)if(g=e?y(a(d=t[b])[0],d[1]):y(t[b]),g===c||g===l)return g}else for(v=m.call(t);!(d=v.next()).done;)if(g=i(v,y,d.value,e),g===c||g===l)return g};e.BREAK=c,e.RETURN=l},"4be4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("cd51"),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),a="[DEFAULT]",s=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t=a);var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.Deferred;this.instancesDeferred.set(e,n);try{var r=this.getOrInitializeService(e);r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=r.__assign({identifier:a,optional:!1},t),n=e.identifier,i=e.optional,o=this.normalizeInstanceIdentifier(n);try{var s=this.getOrInitializeService(o);if(!s){if(i)return null;throw Error("Service "+this.name+" is not available")}return s}catch(u){if(i)return null;throw u}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,c(t))try{this.getOrInitializeService(a)}catch(p){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=r.__read(o.value,2),u=s[0],l=s[1],h=this.normalizeInstanceIdentifier(u);try{var f=this.getOrInitializeService(h);l.resolve(f)}catch(p){}}}catch(d){e={error:d}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t=a),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,function(){var t;return r.__generator(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(r.__spread(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}),t.filter(function(t){return"_delete"in t}).map(function(t){return t._delete()})))];case 1:return e.sent(),[2]}})})},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,u(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:a:t},t}();function u(t){return t===a?void 0:t}function c(t){return"EAGER"===t.instantiationMode}
875/**
876 * @license
877 * Copyright 2019 Google LLC
878 *
879 * Licensed under the Apache License, Version 2.0 (the "License");
880 * you may not use this file except in compliance with the License.
881 * You may obtain a copy of the License at
882 *
883 *   http://www.apache.org/licenses/LICENSE-2.0
884 *
885 * Unless required by applicable law or agreed to in writing, software
886 * distributed under the License is distributed on an "AS IS" BASIS,
887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
888 * See the License for the specific language governing permissions and
889 * limitations under the License.
890 */var l=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){var e=this.getProvider(t.name);e.isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new s(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=l,e.Provider=s},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4e57":function(t,e){
891/**
892 * @license
893 * Copyright 2015 Google Inc. All Rights Reserved.
894 *
895 * Licensed under the Apache License, Version 2.0 (the "License");
896 * you may not use this file except in compliance with the License.
897 * You may obtain a copy of the License at
898 *
899 *      http://www.apache.org/licenses/LICENSE-2.0
900 *
901 * Unless required by applicable law or agreed to in writing, software
902 * distributed under the License is distributed on an "AS IS" BASIS,
903 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
904 * See the License for the specific language governing permissions and
905 * limitations under the License.
906 */
907var n={upgradeDom:function(t,e){},upgradeElement:function(t,e){},upgradeElements:function(t){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(t,e){},register:function(t){},downgradeElements:function(t){}};n=function(){"use strict";var t=[],e=[],n="mdlComponentConfigInternal_";function r(e,n){for(var r=0;r<t.length;r++)if(t[r].className===e)return"undefined"!==typeof n&&(t[r]=n),t[r];return!1}function i(t){var e=t.getAttribute("data-upgraded");return null===e?[""]:e.split(",")}function o(t,e){var n=i(t);return-1!==n.indexOf(e)}function a(t,e,n){if("CustomEvent"in window&&"function"===typeof window.CustomEvent)return new CustomEvent(t,{bubbles:e,cancelable:n});var r=document.createEvent("Events");return r.initEvent(t,e,n),r}function s(e,n){if("undefined"===typeof e&&"undefined"===typeof n)for(var i=0;i<t.length;i++)s(t[i].className,t[i].cssClass);else{var o=e;if("undefined"===typeof n){var a=r(o);a&&(n=a.cssClass)}for(var c=document.querySelectorAll("."+n),l=0;l<c.length;l++)u(c[l],o)}}function u(s,u){if(!("object"===typeof s&&s instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var c=a("mdl-componentupgrading",!0,!0);if(s.dispatchEvent(c),!c.defaultPrevented){var l=i(s),h=[];if(u)o(s,u)||h.push(r(u));else{var f=s.classList;t.forEach(function(t){f.contains(t.cssClass)&&-1===h.indexOf(t)&&!o(s,t.className)&&h.push(t)})}for(var p,d=0,v=h.length;d<v;d++){if(p=h[d],!p)throw new Error("Unable to find a registered component for the given class.");l.push(p.className),s.setAttribute("data-upgraded",l.join(","));var g=new p.classConstructor(s);g[n]=p,e.push(g);for(var m=0,y=p.callbacks.length;m<y;m++)p.callbacks[m](s);p.widget&&(s[p.className]=g);var b=a("mdl-componentupgraded",!0,!1);s.dispatchEvent(b)}}}function c(t){Array.isArray(t)||(t=t instanceof Element?[t]:Array.prototype.slice.call(t));for(var e,n=0,r=t.length;n<r;n++)e=t[n],e instanceof HTMLElement&&(u(e),e.children.length>0&&c(e.children))}function l(e){var i="undefined"===typeof e.widget&&"undefined"===typeof e["widget"],o=!0;i||(o=e.widget||e["widget"]);var a={classConstructor:e.constructor||e["constructor"],className:e.classAsString||e["classAsString"],cssClass:e.cssClass||e["cssClass"],widget:o,callbacks:[]};if(t.forEach(function(t){if(t.cssClass===a.cssClass)throw new Error("The provided cssClass has already been registered: "+t.cssClass);if(t.className===a.className)throw new Error("The provided className has already been registered")}),e.constructor.prototype.hasOwnProperty(n))throw new Error("MDL component classes must not have "+n+" defined as a property.");var s=r(e.classAsString,a);
vendor: 12,374 bytes, lines 907-941
907s||t.push(a)}function h(t,e){var n=r(t);n&&n.callbacks.push(e)}function f(){for(var e=0;e<t.length;e++)s(t[e].className)}function p(t){if(t){var r=e.indexOf(t);e.splice(r,1);var i=t.element_.getAttribute("data-upgraded").split(","),o=i.indexOf(t[n].classAsString);i.splice(o,1),t.element_.setAttribute("data-upgraded",i.join(","));var s=a("mdl-componentdowngraded",!0,!1);t.element_.dispatchEvent(s)}}function d(t){var n=function(t){e.filter(function(e){return e.element_===t}).forEach(p)};if(t instanceof Array||t instanceof NodeList)for(var r=0;r<t.length;r++)n(t[r]);else{if(!(t instanceof Node))throw new Error("Invalid argument provided to downgrade MDL nodes.");n(t)}}return{upgradeDom:s,upgradeElement:u,upgradeElements:c,upgradeAllRegistered:f,registerUpgradedCallback:h,register:l,downgradeElements:d}}(),n.ComponentConfigPublic,n.ComponentConfig,n.Component,n["upgradeDom"]=n.upgradeDom,n["upgradeElement"]=n.upgradeElement,n["upgradeElements"]=n.upgradeElements,n["upgradeAllRegistered"]=n.upgradeAllRegistered,n["registerUpgradedCallback"]=n.registerUpgradedCallback,n["register"]=n.register,n["downgradeElements"]=n.downgradeElements,window.componentHandler=n,window["componentHandler"]=n,window.addEventListener("load",function(){"use strict";"classList"in document.createElement("div")&&"querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach?(document.documentElement.classList.add("mdl-js"),n.upgradeAllRegistered()):(n.upgradeElement=function(){},n.register=function(){})})},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},"520a":function(t,e,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",u=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1],l=u||c;l&&(a=function(t){var e,n,a,l,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",r.call(h))),u&&(e=h[s]),a=i.call(h,t),u&&a&&(h[s]=h.global?a.index+a[0].length:e),c&&a&&a.length>1&&o.call(a[0],n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"551c":function(t,e,n){"use strict";var r,i,o,a,s=n("2d00"),u=n("7726"),c=n("9b43"),l=n("23c6"),h=n("5ca1"),f=n("d3f4"),p=n("d8e8"),d=n("f605"),v=n("4a59"),g=n("ebd6"),m=n("1991").set,y=n("8079")(),b=n("a5b8"),_=n("9c80"),w=n("a25f"),E=n("bcaa"),I="Promise",T=u.TypeError,S=u.process,C=S&&S.versions,A=C&&C.v8||"",N=u[I],k="process"==l(S),O=function(){},x=i=b.f,D=!!function(){try{var t=N.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(O,O)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==A.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),R=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&j(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(T("Promise-chain cycle")):(o=R(n))?o.call(n,u,c):u(n)):c(r)}catch(h){l&&!a&&l.exit(),c(h)}};while(n.length>o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){m.call(u,function(){var e,n,r,i=t._v,o=M(t);if(o&&(e=_(function(){k?S.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=k||M(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){m.call(u,function(){var e;k?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},U=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw T("Promise can't be resolved itself");(e=R(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(U,r,1),c(F,r,1))}catch(i){F.call(r,i)}}):(n._v=t,n._s=1,P(n,!1))}catch(r){F.call({_w:n,_d:!1},r)}}};D||(N=function(t){d(this,N,I,"_h"),p(t),r.call(this);try{t(c(U,this,1),c(F,this,1))}catch(e){F.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(N.prototype,{then:function(t,e){var n=x(g(this,N));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(U,t,1),this.reject=c(F,t,1)},b.f=x=function(t){return t===N||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!D,{Promise:N}),n("7f20")(N,I),n("7a56")(I),a=n("8378")[I],h(h.S+h.F*!D,I,{reject:function(t){var e=x(this),n=e.reject;return n(t),e.promise}}),h(h.S+h.F*(s||!D),I,{resolve:function(t){return E(s&&this===a?N:this,t)}}),h(h.S+h.F*!(D&&n("5cc5")(function(t){N.all(t)["catch"](O)})),I,{all:function(t){var e=this,n=x(e),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,a=1;v(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=x(e),r=n.reject,i=_(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"584a":function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"59ca":function(t,e,n){"use strict";var r=n("c23d");function i(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var o=i(r),a="firebase",s="7.24.0";
908/**
909 * @license
910 * Copyright 2018 Google LLC
911 *
912 * Licensed under the Apache License, Version 2.0 (the "License");
913 * you may not use this file except in compliance with the License.
914 * You may obtain a copy of the License at
915 *
916 *   http://www.apache.org/licenses/LICENSE-2.0
917 *
918 * Unless required by applicable law or agreed to in writing, software
919 * distributed under the License is distributed on an "AS IS" BASIS,
920 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
921 * See the License for the specific language governing permissions and
922 * limitations under the License.
923 */
924o["default"].registerVersion(a,s,"app"),t.exports=o["default"]},"5c15":function(t,e){
925/**
926 * @license
927 * Copyright 2015 Google Inc. All Rights Reserved.
928 *
929 * Licensed under the Apache License, Version 2.0 (the "License");
930 * you may not use this file except in compliance with the License.
931 * You may obtain a copy of the License at
932 *
933 *      http://www.apache.org/licenses/LICENSE-2.0
934 *
935 * Unless required by applicable law or agreed to in writing, software
936 * distributed under the License is distributed on an "AS IS" BASIS,
937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
938 * See the License for the specific language governing permissions and
939 * limitations under the License.
940 */
941(function(){"use strict";var t=function(t){this.element_=t,this.init()};window["MaterialSpinner"]=t,t.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},t.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},t.prototype.createLayer=function(t){var e=document.createElement("div");e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+t);var n=document.createElement("div");n.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),n.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var r=document.createElement("div");r.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),i.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var o=[n,r,i],a=0;a<o.length;a++){var s=document.createElement("div");s.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE),o[a].appendChild(s)}e.appendChild(n),e.appendChild(r),e.appendChild(i),this.element_.appendChild(e)},t.prototype["createLayer"]=t.prototype.createLayer,t.prototype.stop=function(){this.element_.classList.remove("is-active")},t.prototype["stop"]=t.prototype.stop,t.prototype.start=function(){this.element_.classList.add("is-active")},t.prototype["start"]=t.prototype.start,t.prototype.init=function(){if(this.element_){for(var t=1;t<=this.Constant_.MDL_SPINNER_LAYER_COUNT;t++)this.createLayer(t);this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:t,classAsString:"MaterialSpinner",cssClass:"mdl-js-spinner",widget:!0})})()},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",c=function(t,e,n){var l,h,f,p,d=t&c.F,v=t&c.G,g=t&c.S,m=t&c.P,y=t&c.B,b=v?r:g?r[e]||(r[e]={}):(r[e]||{})[u],_=v?i:i[e]||(i[e]={}),w=_[u]||(_[u]={});for(l in v&&(n=e),n)h=!d&&b&&void 0!==b[l],f=(h?b:n)[l],p=y&&h?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,b&&a(b,l,f,t&c.U),_[l]!=f&&o(_,l,p),m&&w[l]!=f&&(w[l]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(a){}return n}},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),u="prototype",c=function(t,e,n){var l,h,f,p=t&c.F,d=t&c.G,v=t&c.S,g=t&c.P,m=t&c.B,y=t&c.W,b=d?i:i[e]||(i[e]={}),_=b[u],w=d?r:v?r[e]:(r[e]||{})[u];for(l in d&&(n=e),n)h=!p&&w&&void 0!==w[l],h&&s(b,l)||(f=h?w[l]:n[l],b[l]=d&&"function"!=typeof w[l]?n[l]:m&&h?o(f,r):y&&w[l]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((b.virtual||(b.virtual={}))[l]=f,t&c.R&&_&&!_[l]&&a(_,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6762:function(t,e,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6c7b":function(t,e,n){var r=n("5ca1");r(r.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6d09":function(t,e,n){"use strict";
941Object.defineProperty(e,"__esModule",{value:!0});var r=n("c23d");n("7d28");var i=n("9ab4"),o=n("cd51"),a=n("abfd"),s=n("4be4");function u(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var c,l,h,f=u(r),p="@firebase/performance",d="0.4.2",v=d,g="FB-PERF-TRACE-START",m="FB-PERF-TRACE-STOP",y="FB-PERF-TRACE-MEASURE",b="_wt_",_="_fp",w="_fcp",E="_fid",I="@firebase/performance/config",T="@firebase/performance/configexpire",S="performance",C="Performance",A=(c={},c["trace started"]="Trace {$traceName} was started before.",c["trace stopped"]="Trace {$traceName} is not running.",c["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",c["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",c["no window"]="Window is not available.",c["no app id"]="App id is not available.",c["no project id"]="Project id is not available.",c["no api key"]="Api key is not available.",c["invalid cc log"]="Attempted to queue invalid cc event",c["FB not default"]="Performance can only start when Firebase app instance is the default one.",c["RC response not ok"]="RC response is not ok",c["invalid attribute name"]="Attribute name {$attributeName} is invalid.",c["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",c["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",c["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",c),N=new o.ErrorFactory(S,C,A),k=new a.Logger(C);k.logLevel=a.LogLevel.INFO;var O,x=function(){function t(t){if(this.window=t,!t)throw N.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 t.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},t.prototype.mark=function(t){this.performance&&this.performance.mark&&this.performance.mark(t)},t.prototype.measure=function(t,e,n){this.performance&&this.performance.measure&&this.performance.measure(t,e,n)},t.prototype.getEntriesByType=function(t){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(t):[]},t.prototype.getEntriesByName=function(t){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(t):[]},t.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},t.prototype.requiredApisAvailable=function(){return fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled?!!o.isIndexedDBAvailable()||(k.info("IndexedDB is not supported by current browswer"),!1):(k.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)},t.prototype.setupObserver=function(t,e){if(this.PerformanceObserver){var n=new this.PerformanceObserver(function(t){for(var n=0,r=t.getEntries();n<r.length;n++){var i=r[n];e(i)}});n.observe({entryTypes:[t]})}},t.getInstance=function(){return void 0===l&&(l=new t(h)),l},t}();function D(t){h=t}
942/**
943 * @license
944 * Copyright 2019 Google LLC
945 *
946 * Licensed under the Apache License, Version 2.0 (the "License");
947 * you may not use this file except in compliance with the License.
948 * You may obtain a copy of the License at
949 *
950 *   http://www.apache.org/licenses/LICENSE-2.0
951 *
952 * Unless required by applicable law or agreed to in writing, software
953 * distributed under the License is distributed on an "AS IS" BASIS,
954 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
955 * See the License for the specific language governing permissions and
956 * limitations under the License.
957 */function R(t,e){var n=t.length-e.length;if(n<0||n>1)throw N.create("invalid String merger input");for(var r=[],i=0;i<t.length;i++)r.push(t.charAt(i)),e.length>i&&r.push(e.charAt(i));return r.join("")}
958/**
959 * @license
960 * Copyright 2019 Google LLC
961 *
962 * Licensed under the Apache License, Version 2.0 (the "License");
963 * you may not use this file except in compliance with the License.
964 * You may obtain a copy of the License at
965 *
966 *   http://www.apache.org/licenses/LICENSE-2.0
967 *
968 * Unless required by applicable law or agreed to in writing, software
969 * distributed under the License is distributed on an "AS IS" BASIS,
970 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
971 * See the License for the specific language governing permissions and
972 * limitations under the License.
973 */var P,L,M=function(){function t(){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=R("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=R("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return t.prototype.getAppId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!t)throw N.create("no app id");return t},t.prototype.getProjectId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!t)throw N.create("no project id");return t},t.prototype.getApiKey=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!t)throw N.create("no api key");return t},t.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},t.getInstance=function(){return void 0===O&&(O=new t),O},t}();
974/**
975 * @license
976 * Copyright 2019 Google LLC
977 *
978 * Licensed under the Apache License, Version 2.0 (the "License");
979 * you may not use this file except in compliance with the License.
980 * You may obtain a copy of the License at
981 *
982 *   http://www.apache.org/licenses/LICENSE-2.0
983 *
984 * Unless required by applicable law or agreed to in writing, software
985 * distributed under the License is distributed on an "AS IS" BASIS,
986 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
987 * See the License for the specific language governing permissions and
988 * limitations under the License.
989 */function j(){var t=M.getInstance().installationsService.getId();return t.then(function(t){P=t}),t}function F(){return P}function U(){var t=M.getInstance().installationsService.getToken();return t.then(function(t){}),t}
990/**
991 * @license
992 * Copyright 2019 Google LLC
993 *
994 * Licensed under the Apache License, Version 2.0 (the "License");
995 * you may not use this file except in compliance with the License.
996 * You may obtain a copy of the License at
997 *
998 *   http://www.apache.org/licenses/LICENSE-2.0
999 *
1000 * Unless required by applicable law or agreed to in writing, software
1001 * distributed under the License is distributed on an "AS IS" BASIS,
1002 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1003 * See the License for the specific language governing permissions and
1004 * limitations under the License.
1005 */(function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["VISIBLE"]=1]="VISIBLE",t[t["HIDDEN"]=2]="HIDDEN"})(L||(L={}));var V=["firebase_","google_","ga_"],B=new RegExp("^[a-zA-Z]\\w*$"),q=40,H=100;function W(){var t=x.getInstance().navigator;return"serviceWorker"in t?t.serviceWorker.controller?2:3:1}function G(){var t=x.getInstance().document,e=t.visibilityState;switch(e){case"visible":return L.VISIBLE;case"hidden":return L.HIDDEN;default:return L.UNKNOWN}}function K(){var t=x.getInstance().navigator,e=t.connection,n=e&&e.effectiveType;switch(n){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}function z(t){if(0===t.length||t.length>q)return!1;var e=V.some(function(e){return t.startsWith(e)});return!e&&!!t.match(B)}function $(t){return 0!==t.length&&t.length<=H}
1006/**
1007 * @license
1008 * Copyright 2019 Google LLC
1009 *
1010 * Licensed under the Apache License, Version 2.0 (the "License");
1011 * you may not use this file except in compliance with the License.
1012 * You may obtain a copy of the License at
1013 *
1014 *   http://www.apache.org/licenses/LICENSE-2.0
1015 *
1016 * Unless required by applicable law or agreed to in writing, software
1017 * distributed under the License is distributed on an "AS IS" BASIS,
1018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1019 * See the License for the specific language governing permissions and
1020 * limitations under the License.
1021 */var Q="0.0.1",Y={loggingEnabled:!0},X="FIREBASE_INSTALLATIONS_AUTH";function J(t){var e=Z();return e?(rt(e),Promise.resolve()):nt(t).then(rt).then(function(t){return tt(t)},function(){})}function Z(){var t=x.getInstance().localStorage;if(t){var e=t.getItem(T);if(e&&it(e)){var n=t.getItem(I);if(n)try{var r=JSON.parse(n);return r}catch(c){return}}}}function tt(t){var e=x.getInstance().localStorage;t&&e&&(e.setItem(I,JSON.stringify(t)),e.setItem(T,String(Date.now()+60*M.getInstance().configTimeToLive*60*1e3)))}var et="Could not fetch config, will use default configs";function nt(t){return U().then(function(e){var n=M.getInstance().getProjectId(),r="https://firebaseremoteconfig.googleapis.com/v1/projects/"+n+"/namespaces/fireperf:fetch?key="+M.getInstance().getApiKey(),i=new Request(r,{method:"POST",headers:{Authorization:X+" "+e},body:JSON.stringify({app_instance_id:t,app_instance_id_token:e,app_id:M.getInstance().getAppId(),app_version:v,sdk_version:Q})});return fetch(i).then(function(t){if(t.ok)return t.json();throw N.create("RC response not ok")})}).catch(function(){k.info(et)})}function rt(t){if(!t)return t;var e=M.getInstance(),n=t.entries||{};return void 0!==n.fpr_enabled?e.loggingEnabled="true"===String(n.fpr_enabled):e.loggingEnabled=Y.loggingEnabled,n.fpr_log_source&&(e.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(e.logEndPointUrl=n.fpr_log_endpoint_url),n.fpr_log_transport_key&&(e.transportKey=n.fpr_log_transport_key),void 0!==n.fpr_vc_network_request_sampling_rate&&(e.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(e.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),e.logTraceAfterSampling=ot(e.tracesSamplingRate),e.logNetworkAfterSampling=ot(e.networkRequestsSamplingRate),t}function it(t){return Number(t)>Date.now()}function ot(t){return Math.random()<=t}
1022/**
1023 * @license
1024 * Copyright 2019 Google LLC
1025 *
1026 * Licensed under the Apache License, Version 2.0 (the "License");
1027 * you may not use this file except in compliance with the License.
1028 * You may obtain a copy of the License at
1029 *
1030 *   http://www.apache.org/licenses/LICENSE-2.0
1031 *
1032 * Unless required by applicable law or agreed to in writing, software
1033 * distributed under the License is distributed on an "AS IS" BASIS,
1034 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1035 * See the License for the specific language governing permissions and
1036 * limitations under the License.
1037 */var at,st=1;function ut(){return st=2,at=at||lt(),at}function ct(){return 3===st}function lt(){return ht().then(function(){return j()}).then(function(t){return J(t)}).then(function(){return ft()},function(){return ft()})}function ht(){var t=x.getInstance().document;return new Promise(function(e){if(t&&"complete"!==t.readyState){var n=function(){"complete"===t.readyState&&(t.removeEventListener("readystatechange",n),e())};t.addEventListener("readystatechange",n)}else e()})}function ft(){st=3}
1038/**
1039 * @license
1040 * Copyright 2019 Google LLC
1041 *
1042 * Licensed under the Apache License, Version 2.0 (the "License");
1043 * you may not use this file except in compliance with the License.
1044 * You may obtain a copy of the License at
1045 *
1046 *   http://www.apache.org/licenses/LICENSE-2.0
1047 *
1048 * Unless required by applicable law or agreed to in writing, software
1049 * distributed under the License is distributed on an "AS IS" BASIS,
1050 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1051 * See the License for the specific language governing permissions and
1052 * limitations under the License.
1053 */var pt,dt=1e4,vt=5500,gt=3,mt=gt,yt=[],bt=!1;function _t(){bt||(wt(vt),bt=!0)}function wt(t){setTimeout(function(){if(0!==mt)return yt.length?void Et():wt(dt)},t)}function Et(){var t=i.__spreadArrays(yt);yt=[];var e=t.map(function(t){return{source_extension_json_proto3:t.message,event_time_ms:String(t.eventTime)}}),n={request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:M.getInstance().logSource,log_event:e};It(n,t).catch(function(){yt=i.__spreadArrays(t,yt),mt--,k.info("Tries left: "+mt+"."),wt(dt)})}function It(t,e){return Tt(t).then(function(t){return t.ok||k.info("Call to Firebase backend failed."),t.json()}
1053).then(function(t){var n=Number(t.nextRequestWaitMillis),r=dt;isNaN(n)||(r=Math.max(n,r));var o=t.logResponseDetails;Array.isArray(o)&&o.length>0&&"RETRY_REQUEST_LATER"===o[0].responseAction&&(yt=i.__spreadArrays(e,yt),k.info("Retry transport request later.")),mt=gt,wt(r)})}function Tt(t){var e=M.getInstance().getFlTransportFullUrl();return fetch(e,{method:"POST",body:JSON.stringify(t)})}function St(t){if(!t.eventTime||!t.message)throw N.create("invalid cc log");yt=i.__spreadArrays(yt,[t])}function Ct(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(void 0,e);St({message:r,eventTime:Date.now()})}}
1054/**
1055 * @license
1056 * Copyright 2019 Google LLC
1057 *
1058 * Licensed under the Apache License, Version 2.0 (the "License");
1059 * you may not use this file except in compliance with the License.
1060 * You may obtain a copy of the License at
1061 *
1062 *   http://www.apache.org/licenses/LICENSE-2.0
1063 *
1064 * Unless required by applicable law or agreed to in writing, software
1065 * distributed under the License is distributed on an "AS IS" BASIS,
1066 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1067 * See the License for the specific language governing permissions and
1068 * limitations under the License.
1069 */function At(t,e){pt||(pt=Ct(xt)),pt(t,e)}function Nt(t){var e=M.getInstance();!e.instrumentationEnabled&&t.isAuto||(e.dataCollectionEnabled||t.isAuto)&&x.getInstance().requiredApisAvailable()&&(t.isAuto&&G()!==L.VISIBLE||(ct()?kt(t):ut().then(function(){return kt(t)},function(){return kt(t)})))}function kt(t){if(F()){var e=M.getInstance();e.loggingEnabled&&e.logTraceAfterSampling&&setTimeout(function(){return At(t,1)},0)}}function Ot(t){var e=M.getInstance();if(e.instrumentationEnabled){var n=t.url,r=e.logEndPointUrl.split("?")[0],i=e.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&e.loggingEnabled&&e.logNetworkAfterSampling&&setTimeout(function(){return At(t,0)},0)}}function xt(t,e){return 0===e?Dt(t):Rt(t)}function Dt(t){var e={url:t.url,http_method:t.httpMethod||0,http_response_code:200,response_payload_bytes:t.responsePayloadBytes,client_start_time_us:t.startTimeUs,time_to_response_initiated_us:t.timeToResponseInitiatedUs,time_to_response_completed_us:t.timeToResponseCompletedUs},n={application_info:Pt(),network_request_metric:e};return JSON.stringify(n)}function Rt(t){var e={name:t.name,is_auto:t.isAuto,client_start_time_us:t.startTimeUs,duration_us:t.durationUs};0!==Object.keys(t.counters).length&&(e.counters=t.counters);var n=t.getAttributes();0!==Object.keys(n).length&&(e.custom_attributes=n);var r={application_info:Pt(),trace_metric:e};return JSON.stringify(r)}function Pt(){return{google_app_id:M.getInstance().getAppId(),app_instance_id:F(),web_app_info:{sdk_version:v,page_url:x.getInstance().getUrl(),service_worker_status:W(),visibility_state:G(),effective_connection_type:K()},application_process_state:0}}
1070/**
1071 * @license
1072 * Copyright 2019 Google LLC
1073 *
1074 * Licensed under the Apache License, Version 2.0 (the "License");
1075 * you may not use this file except in compliance with the License.
1076 * You may obtain a copy of the License at
1077 *
1078 *   http://www.apache.org/licenses/LICENSE-2.0
1079 *
1080 * Unless required by applicable law or agreed to in writing, software
1081 * distributed under the License is distributed on an "AS IS" BASIS,
1082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1083 * See the License for the specific language governing permissions and
1084 * limitations under the License.
1085 */var Lt=100,Mt="_",jt=[_,w,E];function Ft(t,e){return!(0===t.length||t.length>Lt)&&(e&&e.startsWith(b)&&jt.indexOf(t)>-1||!t.startsWith(Mt))}function Ut(t){var e=Math.floor(t);return e<t&&k.info("Metric value should be an Integer, setting the value as : "+e+"."),e}
1086/**
1087 * @license
1088 * Copyright 2019 Google LLC
1089 *
1090 * Licensed under the Apache License, Version 2.0 (the "License");
1091 * you may not use this file except in compliance with the License.
1092 * You may obtain a copy of the License at
1093 *
1094 *   http://www.apache.org/licenses/LICENSE-2.0
1095 *
1096 * Unless required by applicable law or agreed to in writing, softw
1096are
1097 * distributed under the License is distributed on an "AS IS" BASIS,
1098 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1099 * See the License for the specific language governing permissions and
1100 * limitations under the License.
1101 */var Vt=function(){function t(t,e,n){void 0===e&&(e=!1),this.name=t,this.isAuto=e,this.state=1,this.customAttributes={},this.counters={},this.api=x.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark=g+"-"+this.randomId+"-"+this.name,this.traceStopMark=m+"-"+this.randomId+"-"+this.name,this.traceMeasure=n||y+"-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return t.prototype.start=function(){if(1!==this.state)throw N.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},t.prototype.stop=function(){if(2!==this.state)throw N.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(),Nt(this)},t.prototype.record=function(t,e,n){if(t<=0)throw N.create("nonpositive trace startTime",{traceName:this.name});if(e<=0)throw N.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*e),this.startTimeUs=Math.floor(1e3*t),n&&n.attributes&&(this.customAttributes=i.__assign({},n.attributes)),n&&n.metrics)for(var r=0,o=Object.keys(n.metrics);r<o.length;r++){var a=o[r];isNaN(Number(n.metrics[a]))||(this.counters[a]=Number(Math.floor(n.metrics[a])))}Nt(this)},t.prototype.incrementMetric=function(t,e){void 0===e&&(e=1),void 0===this.counters[t]?this.putMetric(t,e):this.putMetric(t,this.counters[t]+e)},t.prototype.putMetric=function(t,e){if(!Ft(t,this.name))throw N.create("invalid custom metric name",{customMetricName:t});this.counters[t]=Ut(e)},t.prototype.getMetric=function(t){return this.counters[t]||0},t.prototype.putAttribute=function(t,e){var n=z(t),r=$(e);if(n&&r)this.customAttributes[t]=e;else{if(!n)throw N.create("invalid attribute name",{attributeName:t});if(!r)throw N.create("invalid attribute value",{attributeValue:e})}},t.prototype.getAttribute=function(t){return this.customAttributes[t]},t.prototype.removeAttribute=function(t){void 0!==this.customAttributes[t]&&delete this.customAttributes[t]},t.prototype.getAttributes=function(){return i.__assign({},this.customAttributes)},t.prototype.setStartTime=function(t){this.startTimeUs=t},t.prototype.setDuration=function(t){this.durationUs=t},t.prototype.calculateTraceMetrics=function(){var t=this.api.getEntriesByName(this.traceMeasure),e=t&&t[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))},t.createOobTrace=function(e,n,r){var i=x.getInstance().getUrl();if(i){var o=new t(b+i,!0),a=Math.floor(1e3*x.getInstance().getTimeOrigin());o.setStartTime(a),e&&e[0]&&(o.setDuration(Math.floor(1e3*e[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*e[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*e[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*e[0].loadEventEnd)));var s="first-paint",u="first-contentful-paint";if(n){var c=n.find(function(t){return t.name===s});c&&c.startTime&&o.putMetric(_,Math.floor(1e3*c.startTime));var l=n.find(function(t){return t.name===u});l&&l.startTime&&o.putMetric(w,Math.floor(1e3*l.startTime)),r&&o.putMetric(E,Math.floor(1e3*r))}Nt(o)}},t.createUserTimingTrace=function(e){var n=new t(e,!1,e);Nt(n)},t}();
1102/**
1103 * @license
1104 * Copyright 2019 Google LLC
1105 *
1106 * Licensed under the Apache License, Version 2.0 (the "License");
1107 * you may not use this file except in compliance with the License.
1108 * You may obtain a copy of the License at
1109 *
1110 *   http://www.apache.org/licenses/LICENSE-2.0
1111 *
1112 * Unless required by applicable law or agreed to in writing, software
1113 * distributed under the License is distributed on an "AS IS" BASIS,
1114 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1115 * See the License for the specific language governing permissions and
1116 * limitations under the License.
1117 */function Bt(t){var e=t;if(e&&void 0!==e.responseStart){var n=x.getInstance().getTimeOrigin(),r=Math.floor(1e3*(e.startTime+n)),i=e.responseStart?Math.floor(1e3*(e.responseStart-e.startTime)):void 0,o=Math.floor(1e3*(e.responseEnd-e.startTime)),a=e.name&&e.name.split("?")[0],s={url:a,responsePayloadBytes:e.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:o};Ot(s)}}
1118/**
1119 * @license
1120 * Copyright 2019 Google LLC
1121 *
1122 * Licensed under the Apache License, Version 2.0 (the "License");
1123 * you may not use this file except in compliance with the License.
1124 * You may obtain a copy of the License at
1125 *
1126 *   http://www.apache.org/licenses/LICENSE-2.0
1127 *
1128 * Unless required by applicable law or agreed to in writing, software
1129 * distributed under the License is distributed on an "AS IS" BASIS,
1130 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1131 * See the License for the specific language governing permissions and
1132 * limitations under the License.
1133 */var qt=5e3;function Ht(){F()&&(setTimeout(function(){return Gt()},0),setTimeout(function(){return Wt()},0),setTimeout(function(){return Kt()},0))}function Wt(){for(var t=x.getInstance(),e=t.getEntriesByType("resource"),n=0,r=e;n<r.length;n++){var i=r[n];Bt(i)}t.setupObserver("resource",Bt)}function Gt(){var t=x.getInstance(),e=t.getEntriesByType("navigation"),n=t.getEntriesByType("paint");if(t.onFirstInputDelay){var r=setTimeout(function(){Vt.createOobTrace(e,n),r=void 0},qt);t.onFirstInputDelay(function(t){r&&(clearTimeout(r),Vt.createOobTrace(e,n,t))})}else Vt.createOobTrace(e,n)}function Kt(){for(var t=x.getInstance(),e=t.getEntriesByType("measure"),n=0,r=e;n<r.length;n++){var i=r[n];zt(i)}t.setupObserver("measure",zt)}function zt(t){var e=t.name;e.substring(0,y.length)!==y&&Vt.createUserTimingTrace(e)}
1134/**
1135 * @license
1136 * Copyright 2019 Google LLC
1137 *
1138 * Licensed under the Apache License, Version 2.0 (the "License");
1139 * you may not use this file except in compliance with the License.
1140 * You may obtain a copy of the License at
1141 *
1142 *   http://www.apache.org/licenses/LICENSE-2.0
1143 *
1144 * Unless required by applicable law or agreed to in writing, software
1145 * distributed under the License is distributed on an "AS IS" BASIS,
1146 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1147 * See the License for the specific language governing permissions and
1148 * limitations under the License.
1149 */var $t=function(){function t(t){this.app=t,x.getInstance().requiredApisAvailable()&&o.validateIndexedDBOpenable().then(function(t){t&&(_t(),ut().then(Ht,Ht))}).catch(function(t){k.info("Environment doesn't support IndexedDB: "+t)})}return t.prototype.trace=function(t){return new Vt(t)},Object.defineProperty(t.prototype,"instrumentationEnabled",{get:function(){return M.getInstance().instrumentationEnabled},set:function(t){M.getInstance().instrumentationEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataCollectionEnabled",{get:function(){return M.getInstance().dataCollectionEnabled},set:function(t){M.getInstance().dataCollectionEnabled=t},enumerable:!1,configurable:!0}),t}(),Qt="[DEFAULT]";
1150/**
1151 * @license
1152 * Copyright 2019 Google LLC
1153 *
1154 * Licensed under the Apache License, Version 2.0 (the "License");
1155 * you may not use this file except in compliance with the License.
1156 * You may obtain a copy of the License at
1157 *
1158 *   http://www.apache.org/licenses/LICENSE-2.0
1159 *
1160 * Unless required by applicable law or agreed to in writing, software
1161 * distributed under the License is distributed on an "AS IS" BASIS,
1162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1163 * See the License for the specific language governing permissions and
1164 * limitations under the License.
1165 */function Yt(t){var e=function(t,e){if(t.name!==Qt)throw N.create("FB not default");if("undefined"===typeof window)throw N.create("no window");return D(window),M.getInstance().firebaseAppInstance=t,M.getInstance().installationsService=e,new $t(t)};t.INTERNAL.registerComponent(new s.Component("performance",function(t){var n=t.getProvider("app").getImmediate(),r=t.getProvider("installations").getImmediate();return e(n,r)},"PUBLIC")),t.registerVersion(p,d)}Yt(f["default"]),e.registerPerformance=Yt},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),u=n("626a"),c=Object.assign;t.exports=!c||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){var n=s(t),c=arguments.length,l=1,h=o.f,f=a.f;while(c>l){var p,d=u(arguments[l++]),v=h?i(d).concat(h(d)):i(d),g=v.length,m=0;while(g>m)p=v[m++],r&&!f.call(d,p)||(n[p]=d[p])}return n}:c},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7d28":function(t,e,n){"use strict";n.r(e),n.d(e,"registerInstallations",function(){return kt});var r,i=n("c23d"),o=n.n(i),a=n("4be4"),s=n("9ab4"),u=n("cd51"),c=n("9dbb"),l="@firebase/installations",h="0.4.17",f=1e4,p="w:"+h,d="FIS_v2",v="https://firebaseinstallations.googleapis.com/v1",g=36e5,m="installations",y="Installations",b=(r={},r["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),_=new u["ErrorFactory"](m,y,b);function w(t){return t instanceof u["FirebaseError"]&&t.code.includes("request-failed")}
1166/**
1167 * @license
1168 * Copyright 2019 Google LLC
1169 *
1170 * Licensed under the Apache License, Version 2.0 (the "License");
1171 * you may not use this file except in compliance with the License.
1172 * You may obtain a copy of the License at
1173 *
1174 *   http://www.apache.org/licenses/LICENSE-2.0
1175 *
1176 * Unless required by applicable law or agreed to in writing, software
1177 * distributed under the License is distributed on an "AS IS" BASIS,
1178 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1179 * See the License for the specific language governing permissions and
1180 * limitations under the License.
1181 */function E(t){var e=t.projectId;return v+"/projects/"+e+"/installations"}function I(t){return{token:t.token,requestStatus:2,expiresIn:N(t.expiresIn),creationTime:Date.now()}}function T(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return[4,e.json()];case 1:return n=i.sent(),r=n.error,[2,_.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}})})}function S(t){var e=t.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function C(t,e){var n=e.refreshToken,r=S(t);return r.append("Authorization",k(n)),r}function A(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e;return Object(s["__generator"])(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return e=n.sent(),e.status>=500&&e.status<600?[2,t()]:[2,e]}})})}function N(t){return Number(t.replace("s","000"))}function k(t){return d+" "+t}
1182/**
1183 * @license
1184 * Copyright 2019 Google LLC
1185 *
1186 * Licensed under the Apache License, Version 2.0 (the "License");
1187 * you may not use this file except in compliance with the License.
1188 * You may obtain a copy of the License at
1189 *
1190 *   http://www.apache.org/licenses/LICENSE-2.0
1191 *
1192 * Unless required by applicable law or agreed to in writing, software
1193 * distributed under the License is distributed on an "AS IS" BASIS,
1194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1195 * See the License for the specific language governing permissions and
1196 * limitations under the License.
1197 */function O(t,e){var n=e.fid;return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,r,i,o,a,u,c;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return e=E(t),r=S(t),i={fid:n,authVersion:d,appId:t.appId,sdkVersion:p},o={method:"POST",headers:r,body:JSON.stringify(i)},[4,A(function(){return fetch(e,o)})];case 1:return a=s.sent(),a.ok?[4,a.json()]:[3,3];case 2:return u=s.sent(),c={fid:u.fid||n,registrationStatus:2,refreshToken:u.refreshToken,authToken:I(u.authToken)},[2,c];case 3:return[4,T("Create Installation",a)];case 4:throw s.sent()}})})}
1198/**
1199 * @license
1200 * Copyright 2019 Google LLC
1201 *
1202 * Licensed under the Apache License, Version 2.0 (the "License");
1203 * you may not use this file except in compliance with the License.
1204 * You may obtain a copy of the License at
1205 *
1206 *   http://www.apache.org/licenses/LICENSE-2.0
1207 *
1208 * Unless required by applicable law or agreed to in writing, software
1209 * distributed under the License is distributed on an "AS IS" BASIS,
1210 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1211 * See the License for the specific language governing permissions and
1212 * limitations under the License.
1213 */function x(t){return new Promise(function(e){setTimeout(e,t)})}
1214/**
1215 * @license
1216 * Copyright 2019 Google LLC
1217 *
1218 * Licensed under the Apache License, Version 2.0 (the "License");
1219 * you may not use this file except in compliance with the License.
1220 * You may obtain a copy of the License at
1221 *
1222 *   http://www.apache.org/licenses/LICENSE-2.0
1223 *
1224 * Unless required by applicable law or agreed to in writing, software
1225 * distributed under the License is distributed on an "AS IS" BASIS,
1226 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1227 * See the License for the specific language governing permissions and
1228 * limitations under the License.
1229 */function D(t){var e=btoa(String.fromCharCode.apply(String,Object(s["__spread"])(t)));return e.replace(/\+/g,"-").replace(/\//g,"_")}
1230/**
1231 * @license
1232 * Copyright 2019 Google LLC
1233 *
1234 * Licensed under the Apache License, Version 2.0 (the "License");
1235 * you may not use this file except in compliance with the License.
1236 * You may obtain a copy of the License at
1237 *
1238 *   http://www.apache.org/licenses/LICENSE-2.0
1239 *
1240 * Unless required by applicable law or agreed to in writing, software
1241 * distributed under the License is distributed on an "AS IS" BASIS,
1242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1243 * See the License for the specific language governing permissions and
1244 * limitations under the License.
1245 */var R=/^[cdef][\w-]{21}$/,P="";function L(){try{var t=new Uint8Array(17),e=self.crypto||self.msCrypto;e.getRandomValues(t),t[0]=112+t[0]%16;var n=M(t);return R.test(n)?n:P}catch(r){return P}}function M(t){var e=D(t);return e.substr(0,22)}
1246/**
1247 * @license
1248 * Copyright 2019 Google LLC
1249 *
1250 * Licensed under the Apache License, Version 2.0 (the "License");
1251 * you may not use this file except in compliance with the License.
1252 * You may obtain a copy of the License at
1253 *
1254 *   http://www.apache.org/licenses/LICENSE-2.0
1255 *
1256 * Unless required by applicable law or agreed to in writing, software
1257 * distributed under the License is distributed on an "AS IS" BASIS,
1258 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1259 * See the License for the specific language governing permissions and
1260 * limitations under the License.
1261 */function j(t){return t.appName+"!"+t.appId}
1262/**
1263 * @license
1264 * Copyright 2019 Google LLC
1265 *
1266 * Licensed under the Apache License, Version 2.0 (the "License");
1267 * you may not use this file except in compliance with the License.
1268 * You may obtain a copy of the License at
1269 *
1270 *   http://www.apache.org/licenses/LICENSE-2.0
1271 *
1272 * Unless required by applicable law or agreed to in writing, software
1273 * distributed under the License is distributed on an "AS IS" BASIS,
1274 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1275 * See the License for the specific language governing permissions and
1276 * limitations under the License.
1277 */var F=new Map;function U(t,e){var n=j(t);q(n,e),H(n,e)}function V(t,e){G();var n=j(t),r=F.get(n);r||(r=new Set,F.set(n,r)),r.add(e)}function B(t,e){var n=j(t),r=F.get(n);r&&(r.delete(e),0===r.size&&F.delete(n),K())}function q(t,e){var n,r,i=F.get(t);if(i)try{for(var o=Object(s["__values"])(i),a=o.next();!a.done;a=o.next()){var u=a.value;u(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function H(t,e){var n=G();n&&n.postMessage({key:t,fid:e}),K()}var W=null;function G(){return!W&&"BroadcastChannel"in self&&(W=new BroadcastChannel("[Firebase] FID Change"),W.onmessage=function(t){q(t.data.key,t.data.fid)}),W}function K(){0===F.size&&W&&(W.close(),W=null)}
1278/**
1279 * @license
1280 * Copyright 2019 Google LLC
1281 *
1282 * Licensed under the Apache License, Version 2.0 (the "License");
1283 * you may not use this file except in compliance with the License.
1284 * You may obtain a copy of the License at
1285 *
1286 *   http://www.apache.org/licenses/LICENSE-2.0
1287 *
1288 * Unless required by applicable law or agreed to in writing, software
1289 * distributed under the License is distributed on an "AS IS" BASIS,
1290 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1291 * See the License for the specific language governing permissions and
1292 * limitations under the License.
1293 */var z="firebase-installations-database",$=1,Q="firebase-installations-store",Y=null;function X(){return Y||(Y=Object(c["openDb"])(z,$,function(t){switch(t.oldVersion){case 0:t.createObjectStore(Q)}})),Y}function J(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i,o,a;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return n=j(t),[4,X()];case 1:return r=s.sent(),i=r.transaction(Q,"readwrite"),o=i.objectStore(Q),[4,o.get(n)];case 2:return a=s.sent(),[4,o.put(e,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),a&&a.fid===e.fid||U(t,e.fid),[2,e]}})})}function Z(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return e=j(t),[4,X()];case 1:return n=i.sent(),r=n.transaction(Q,"readwrite"),[4,r.objectStore(Q).delete(e)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function tt(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i,o,a,u;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return n=j(t),[4,X()];case 1:return r=s.sent(),i=r.transaction(Q,"readwrite"),o=i.objectStore(Q),[4,o.get(n)];case 2:return a=s.sent(),u=e(a),void 0!==u?[3,4]:[4,o.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,o.put(u,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),!u||a&&a.fid===u.fid||U(t,u.fid),[2,u]}})})}
1294/**
1295 * @license
1296 * Copyright 2019 Google LLC
1297 *
1298 * Licensed under the Apache License, Version 2.0 (the "License");
1299 * you may not use this file except in compliance with the License.
1300 * You may obtain a copy of the License at
1301 *
1302 *   http://www.apache.org/licenses/LICENSE-2.0
1303 *
1304 * Unless required by applicable law or agreed to in writing, software
1305 * distributed under the License is distributed on an "AS IS" BASIS,
1306 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1307 * See the License for the specific language governing permissions and
1308 * limitations under the License.
1309 */function et(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return[4,tt(t,function(n){var r=nt(n),i=rt(t,r);return e=i.registrationPromise,i.installationEntry})];case 1:return n=i.sent(),n.fid!==P?[3,3]:(r={},[4,e]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:e}]}})})}function nt(t){var e=t||{fid:L(),registrationStatus:0};return st(e)}function rt(t,e){if(0===e.registrationStatus){if(!navigator.onLine){var n=Promise.reject(_.create("app-offline"));return{installationEntry:e,registrationPromise:n}}var r={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},i=it(t,r);return{installationEntry:r,registrationPromise:i}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:ot(t)}:{installationEntry:e}}function it(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,O(t,e)];case 1:return n=i.sent(),[2,J(t,n)];case 2:return r=i.sent(),w(r)&&409===r.serverCode?[4,Z(t)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,J(t,{fid:e.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}})})}function ot(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r,i;return Object(s["__generator"])(this,function(o){switch(o.label){case 0:return[4,at(t)];case 1:e=o.sent(),o.label=2;case 2:return 1!==e.registrationStatus?[3,5]:[4,x(100)];case 3:return o.sent(),[4,at(t)];case 4:return e=o.sent(),[3,2];case 5:return 0!==e.registrationStatus?[3,7]:[4,et(t)];case 6:return n=o.sent(),r=n.installationEntry,i=n.registrationPromise,i?[2,i]:[2,r];case 7:return[2,e]}})})}function at(t){return tt(t,function(t){if(!t)throw _.create("installation-not-found");return st(t)})}function st(t){return ut(t)?{fid:t.fid,registrationStatus:0}:t}function ut(t){return 1===t.registrationStatus&&t.registrationTime+f<Date.now()}
1310/**
1311 * @license
1312 * Copyright 2019 Google LLC
1313 *
1314 * Licensed under the Apache License, Version 2.0 (the "License");
1315 * you may not use this file except in compliance with the License.
1316 * You may obtain a copy of the License at
1317 *
1318 *   http://www.apache.org/licenses/LICENSE-2.0
1319 *
1320 * Unless required by applicable law or agreed to in writing, software
1321 * distributed under the License is distributed on an "AS IS" BASIS,
1322 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1323 * See the License for the specific language governing permissions and
1324 * limitations under the License.
1325 */function ct(t,e){var n=t.appConfig,r=t.platformLoggerProvider;return Object(s["__awaiter"])(this,void 0,void 0,function(){var t,i,o,a,u,c,l,h;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return t=lt(n,e),i=C(n,e),o=r.getImmediate({optional:!0}),o&&i.append("x-firebase-client",o.getPlatformInfoString()),a={installation:{sdkVersion:p}},u={method:"POST",headers:i,body:JSON.stringify(a)},[4,A(function(){return fetch(t,u)})];case 1:return c=s.sent(),c.ok?[4,c.json()]:[3,3];case 2:return l=s.sent(),h=I(l),[2,h];case 3:return[4,T("Generate Auth Token",c)];case 4:throw s.sent()}})})}function lt(t,e){var n=e.fid;return E(t)+"/"+n+"/authTokens:generate"}
1326/**
1327 * @license
1328 * Copyright 2019 Google LLC
1329 *
1330 * Licensed under the Apache License, Version 2.0 (the "License");
1331 * you may not use this file except in compliance with the License.
1332 * You may obtain a copy of the License at
1333 *
1334 *   http://www.apache.org/licenses/LICENSE-2.0
1335 *
1336 * Unless required by applicable law or agreed to in writing, softw
1336are
1337 * distributed under the License is distributed on an "AS IS" BASIS,
1338 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1339 * See the License for the specific language governing permissions and
1340 * limitations under the License.
1341 */function ht(t,e){return void 0===e&&(e=!1),Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i,o;return Object(s["__generator"])(this,function(a){switch(a.label){case 0:return[4,tt(t.appConfig,function(r){if(!vt(r))throw _.create("not-registered");var i=r.authToken;if(!e&&gt(i))return r;if(1===i.requestStatus)return n=ft(t,e),r;if(!navigator.onLine)throw _.create("app-offline");var o=yt(r);return n=dt(t,o),o})];case 1:return r=a.sent(),n?[4,n]:[3,3];case 2:return o=a.sent(),[3,4];case 3:o=r.authToken,a.label=4;case 4:return i=o,[2,i]}})})}function ft(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return[4,pt(t.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,x(100)];case 3:return i.sent(),[4,pt(t.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return r=n.authToken,0===r.requestStatus?[2,ht(t,e)]:[2,r]}})})}function pt(t){return tt(t,function(t){if(!vt(t))throw _.create("not-registered");var e=t.authToken;return bt(e)?Object(s["__assign"])(Object(s["__assign"])({},t),{authToken:{requestStatus:0}}):t})}function dt(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i;return Object(s["__generator"])(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,ct(t,e)];case 1:return n=o.sent(),i=Object(s["__assign"])(Object(s["__assign"])({},e),{authToken:n}),[4,J(t.appConfig,i)];case 2:return o.sent(),[2,n];case 3:return r=o.sent(),!w(r)||401!==r.serverCode&&404!==r.serverCode?[3,5]:[4,Z(t.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=Object(s["__assign"])(Object(s["__assign"])({},e),{authToken:{requestStatus:0}}),[4,J(t.appConfig,i)];case 6:o.sent(),o.label=7;case 7:throw r;case 8:return[2]}})})}function vt(t){return void 0!==t&&2===t.registrationStatus}function gt(t){return 2===t.requestStatus&&!mt(t)}function mt(t){var e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+g}function yt(t){var e={requestStatus:1,requestTime:Date.now()};return Object(s["__assign"])(Object(s["__assign"])({},t),{authToken:e})}function bt(t){return 1===t.requestStatus&&t.requestTime+f<Date.now()}
1342/**
1343 * @license
1344 * Copyright 2019 Google LLC
1345 *
1346 * Licensed under the Apache License, Version 2.0 (the "License");
1347 * you may not use this file except in compliance with the License.
1348 * You may obtain a copy of the License at
1349 *
1350 *   http://www.apache.org/licenses/LICENSE-2.0
1351 *
1352 * Unless required by applicable law or agreed to in writing, software
1353 * distributed under the License is distributed on an "AS IS" BASIS,
1354 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1355 * See the License for the specific language governing permissions and
1356 * limitations under the License.
1357 */function _t(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return[4,et(t.appConfig)];case 1:return e=i.sent(),n=e.installationEntry,r=e.registrationPromise,r?r.catch(console.error):ht(t).catch(console.error),[2,n.fid]}})})}
1358/**
1359 * @license
1360 * Copyright 2019 Google LLC
1361 *
1362 * Licensed under the Apache License, Version 2.0 (the "License");
1363 * you may not use this file except in compliance with the License.
1364 * You may obtain a copy of the License at
1365 *
1366 *   http://www.apache.org/licenses/LICENSE-2.0
1367 *
1368 * Unless required by applicable law or agreed to in writing, software
1369 * distributed under the License is distributed on an "AS IS" BASIS,
1370 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1371 * See the License for the specific language governing permissions and
1372 * limitations under the License.
1373 */function wt(t,e){return void 0===e&&(e=!1),Object(s["__awaiter"])(this,void 0,void 0,function(){var n;return Object(s["__generator"])(this,function(r){switch(r.label){case 0:return[4,Et(t.appConfig)];case 1:return r.sent(),[4,ht(t,e)];case 2:return n=r.sent(),[2,n.token]}})})}function Et(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e;return Object(s["__generator"])(this,function(n){switch(n.label){case 0:return[4,et(t)];case 1:return e=n.sent().registrationPromise,e?[4,e]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})}
1374/**
1375 * @license
1376 * Copyright 2019 Google LLC
1377 *
1378 * Licensed under the Apache License, Version 2.0 (the "License");
1379 * you may not use this file except in compliance with the License.
1380 * You may obtain a copy of the License at
1381 *
1382 *   http://www.apache.org/licenses/LICENSE-2.0
1383 *
1384 * Unless required by applicable law or agreed to in writing, software
1385 * distributed under the License is distributed on an "AS IS" BASIS,
1386 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1387 * See the License for the specific language governing permissions and
1388 * limitations under the License.
1389 */function It(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i,o;return Object(s["__generator"])(this,function(a){switch(a.label){case 0:return n=Tt(t,e),r=C(t,e),i={method:"DELETE",headers:r},[4,A(function(){return fetch(n,i)})];case 1:return o=a.sent(),o.ok?[3,3]:[4,T("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}})})}function Tt(t,e){var n=e.fid;return E(t)+"/"+n}
1390/**
1391 * @license
1392 * Copyright 2019 Google LLC
1393 *
1394 * Licensed under the Apache License, Version 2.0 (the "License");
1395 * you may not use this file except in compliance with the License.
1396 * You may obtain a copy of the License at
1397 *
1398 *   http://www.apache.org/licenses/LICENSE-2.0
1399 *
1400 * Unless required by applicable law or agreed to in writing, software
1401 * distributed under the License is distributed on an "AS IS" BASIS,
1402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1403 * See the License for the specific language governing permissions and
1404 * limitations under the License.
1405 */function St(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n;return Object(s["__generator"])(this,function(r){switch(r.label){case 0:return e=t.appConfig,[4,tt(e,function(t){if(!t||0!==t.registrationStatus)return t})];case 1:if(n=r.sent(),!n)return[3,6];if(1!==n.registrationStatus)return[3,2];throw _.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw _.create("app-offline");case 3:return[4,It(e,n)];case 4:return r.sent(),[4,Z(e)];case 5:r.sent(),r.label=6;case 6:return[2]}})})}
1406/**
1407 * @license
1408 * Copyright 2019 Google LLC
1409 *
1410 * Licensed under the Apache License, Version 2.0 (the "License");
1411 * you may not use this file except in compliance with the License.
1412 * You may obtain a copy of the License at
1413 *
1414 *   http://www.apache.org/licenses/LICENSE-2.0
1415 *
1416 * Unless required by applicable law or agreed to in writing, software
1417 * distributed under the License is distributed on an "AS IS" BASIS,
1418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1419 * See the License for the specific language governing permissions and
1420 * limitations under the License.
1421 */function Ct(t,e){var n=t.appConfig;return V(n,e),function(){B(n,e)}}
1422/**
1423 * @license
1424 * Copyright 2019 Google LLC
1425 *
1426 * Licensed under the Apache License, Version 2.0 (the "License");
1427 * you may not use this file except in compliance with the License.
1428 * You may obtain a copy of the License at
1429 *
1430 *   http://www.apache.org/licenses/LICENSE-2.0
1431 *
1432 * Unless required by applicable law or agreed to in writing, software
1433 * distributed under the License is distributed on an "AS IS" BASIS,
1434 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1435 * See the License for the specific language governing permissions and
1436 * limitations under the License.
1437 */function At(t){var e,n;if(!t||!t.options)throw Nt("App Configuration");if(!t.name)throw Nt("App Name");var r=["projectId","apiKey","appId"];try{for(var i=Object(s["__values"])(r),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.options[a])throw Nt(a)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Nt(t){return _.create("missing-app-config-values",{valueName:t})}
1438/**
1439 * @license
1440 * Copyright 2019 Google LLC
1441 *
1442 * Licensed under the Apache License, Version 2.0 (the "License");
1443 * you may not use this file except in compliance with the License.
1444 * You may obtain a copy of the License at
1445 *
1446 *   http://www.apache.org/licenses/LICENSE-2.0
1447 *
1448 * Unless required by applicable law or agreed to in writing, softw
1448are
1449 * distributed under the License is distributed on an "AS IS" BASIS,
1450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1451 * See the License for the specific language governing permissions and
1452 * limitations under the License.
1453 */function kt(t){var e="installations";t.INTERNAL.registerComponent(new a["Component"](e,function(t){var e=t.getProvider("app").getImmediate(),n=At(e),r=t.getProvider("platform-logger"),i={appConfig:n,platformLoggerProvider:r},o={app:e,getId:function(){return _t(i)},getToken:function(t){return wt(i,t)},delete:function(){return St(i)},onIdChange:function(t){return Ct(i,t)}};return o},"PUBLIC")),t.registerVersion(l,h)}kt(o.a)},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8071:function(t,e,n){"use strict";n.r(e);n("7d28");var r,i,o=n("4be4"),a=n("cd51"),s=n("9ab4"),u=n("9dbb"),c=n("c23d"),l=n.n(c),h=(r={},r["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["permission-default"]="The notification permission was not granted and dismissed instead.",r["permission-blocked"]="The notification permission was not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",r["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["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.",r["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",r["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",r["invalid-vapid-key"]="The public VAPID key must be a string.",r["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.",r),f=new a["ErrorFactory"]("messaging","Messaging",h),p="/firebase-messaging-sw.js",d="/firebase-cloud-messaging-push-scope",v="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",g="https://fcmregistrations.googleapis.com/v1",m="FCM_MSG",y="google.c.a.c_id",b="google.c.a.c_l",_="google.c.a.ts",w="google.c.a.e",E="FirebaseMessaging: ";
1454/**
1455 * @license
1456 * Copyright 2017 Google LLC
1457 *
1458 * Licensed under the Apache License, Version 2.0 (the "License");
1459 * you may not use this file except in compliance with the License.
1460 * You may obtain a copy of the License at
1461 *
1462 *   http://www.apache.org/licenses/LICENSE-2.0
1463 *
1464 * Unless required by applicable law or agreed to in writing, software
1465 * distributed under the License is distributed on an "AS IS" BASIS,
1466 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1467 * See the License for the specific language governing permissions and
1468 * limitations under the License.
1469 */
1470function I(t){var e=new Uint8Array(t),n=btoa(String.fromCharCode.apply(String,Object(s["__spread"])(e)));return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function T(t){for(var e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length),o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}
1471/**
1472 * @license
1473 * Copyright 2019 Google LLC
1474 *
1475 * Licensed under the Apache License, Version 2.0 (the "License");
1476 * you may not use this file except in compliance with the License.
1477 * You may obtain a copy of the License at
1478 *
1479 *   http://www.apache.org/licenses/LICENSE-2.0
1480 *
1481 * Unless required by applicable law or agreed to in writing, software
1482 * distributed under the License is distributed on an "AS IS" BASIS,
1483 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1484 * See the License for the specific language governing permissions and
1485 * limitations under the License.
1486 */(function(t){t["PUSH_RECEIVED"]="push-received",t["NOTIFICATION_CLICKED"]="notification-clicked"})(i||(i={}));var S="fcm_token_details_db",C=5,A="fcm_token_object_Store";function N(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r,i,o=this;return Object(s["__generator"])(this,function(a){switch(a.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(e=a.sent(),n=e.map(function(t){return t.name}),!n.includes(S))return[2,null];a.label=2;case 2:return r=null,[4,Object(u["openDb"])(S,C,function(e){return Object(s["__awaiter"])(o,void 0,void 0,function(){var n,i,o,a;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return e.oldVersion<2?[2]:e.objectStoreNames.contains(A)?(n=e.transaction.objectStore(A),[4,n.index("fcmSenderId").get(t)]):[2];case 1:return i=s.sent(),[4,n.clear()];case 2:if(s.sent(),!i)return[2];if(2===e.oldVersion){if(o=i,!o.auth||!o.p256dh||!o.endpoint)return[2];r={token:o.fcmToken,createTime:null!==(a=o.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"===typeof o.vapidKey?o.vapidKey:I(o.vapidKey)}}}else 3===e.oldVersion?(o=i,r={token:o.fcmToken,createTime:o.createTime,subscriptionOptions:{auth:I(o.auth),p256dh:I(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:I(o.vapidKey)}}):4===e.oldVersion&&(o=i,r={token:o.fcmToken,createTime:o.createTime,subscriptionOptions:{auth:I(o.auth),p256dh:I(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:I(o.vapidKey)}});return[2]}})})})];case 3:return i=a.sent(),i.close(),[4,Object(u["deleteDb"])(S)];case 4:return a.sent(),[4,Object(u["deleteDb"])("fcm_vapid_details_db")];case 5:return a.sent(),[4,Object(u["deleteDb"])("undefined")];case 6:return a.sent(),[2,k(r)?r:null]}})})}function k(t){if(!t||!t.subscriptionOptions)return!1;var e=t.subscriptionOptions;return"number"===typeof t.createTime&&t.createTime>0&&"string"===typeof t.token&&t.token.length>0&&"string"===typeof e.auth&&e.auth.length>0&&"string"===typeof e.p256dh&&e.p256dh.length>0&&"string"===typeof e.endpoint&&e.endpoint.length>0&&"string"===typeof e.swScope&&e.swScope.length>0&&"string"===typeof e.vapidKey&&e.vapidKey.length>0}
1487/**
1488 * @license
1489 * Copyright 2019 Google LLC
1490 *
1491 * Licensed under the Apache License, Version 2.0 (the "License");
1492 * you may not use this file except in compliance with the License.
1493 * You may obtain a copy of the License at
1494 *
1495 *   http://www.apache.org/licenses/LICENSE-2.0
1496 *
1497 * Unless required by applicable law or agreed to in writing, software
1498 * distributed under the License is distributed on an "AS IS" BASIS,
1499 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1500 * See the License for the specific language governing permissions and
1501 * limitations under the License.
1502 */var O="firebase-messaging-database",x=1,D="firebase-messaging-store",R=null;function P(){return R||(R=Object(u["openDb"])(O,x,function(t){switch(t.oldVersion){case 0:t.createObjectStore(D)}})),R}function L(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r,i;return Object(s["__generator"])(this,function(o){switch(o.label){case 0:return e=F(t),[4,P()];case 1:return n=o.sent(),[4,n.transaction(D).objectStore(D).get(e)];case 2:return r=o.sent(),r?[2,r]:[3,3];case 3:return[4,N(t.appConfig.senderId)];case 4:return i=o.sent(),i?[4,M(t,i)]:[3,6];case 5:return o.sent(),[2,i];case 6:return[2]}})})}function M(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i;return Object(s["__generator"])(this,function(o){switch(o.label){case 0:return n=F(t),[4,P()];case 1:return r=o.sent(),i=r.transaction(D,"readwrite"),[4,i.objectStore(D).put(e,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,e]}})})}function j(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return e=F(t),[4,P()];case 1:return n=i.sent(),r=n.transaction(D,"readwrite"),[4,r.objectStore(D).delete(e)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function F(t){var e=t.appConfig;return e.appId}
1503/**
1504 * @license
1505 * Copyright 2019 Google LLC
1506 *
1507 * Licensed under the Apache License, Version 2.0 (the "License");
1508 * you may not use this file except in compliance with the License.
1509 * You may obtain a copy of the License at
1510 *
1511 *   http://www.apache.org/licenses/LICENSE-2.0
1512 *
1513 * Unless required by applicable law or agreed to in writing, software
1514 * distributed under the License is distributed on an "AS IS" BASIS,
1515 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1516 * See the License for the specific language governing permissions and
1517 * limitations under the License.
1518 */function U(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i,o,a,u,c;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return[4,H(t)];case 1:n=s.sent(),r=W(e),i={method:"POST",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(q(t.appConfig),i)];case 3:return a=s.sent(),[4,a.json()];case 4:return o=s.sent(),[3,6];case 5:throw u=s.sent(),f.create("token-subscribe-failed",{errorInfo:u});case 6:if(o.error)throw c=o.error.message,f.create("token-subscribe-failed",{errorInfo:c});if(!o.token)throw f.create("token-subscribe-no-token");return[2,o.token]}})})}function V(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i,o,a,u,c;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return[4,H(t)];case 1:n=s.sent(),r=W(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(q(t.appConfig)+"/"+e.token,i)];case 3:return a=s.sent(),[4,a.json()];case 4:return o=s.sent(),[3,6];case 5:throw u=s.sent(),f.create("token-update-failed",{errorInfo:u});case 6:if(o.error)throw c=o.error.message,f.create("token-update-failed",{errorInfo:c});if(!o.token)throw f.create("token-update-no-token");return[2,o.token]}})})}function B(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r,i,o,a,u;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return[4,H(t)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(q(t.appConfig)+"/"+e,r)];case 3:return i=s.sent(),[4,i.json()];case 4:if(o=s.sent(),o.error)throw a=o.error.message,f.create("token-unsubscribe-failed",{errorInfo:a});return[3,6];case 5:throw u=s.sent(),f.create("token-unsubscribe-failed",{errorInfo:u});case 6:return[2]}})})}function q(t){var e=t.projectId;return g+"/projects/"+e+"/registrations"}function H(t){var e=t.appConfig,n=t.installations;return Object(s["__awaiter"])(this,void 0,void 0,function(){var t;return Object(s["__generator"])(this,function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return t=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":"FIS "+t})]}})})}function W(t){var e=t.p256dh,n=t.auth,r=t.endpoint,i=t.vapidKey,o={web:{endpoint:r,auth:n,p256dh:e}};return i!==v&&(o.web.applicationPubKey=i),o}
1519/**
1520 * @license
1521 * Copyright 2019 Google LLC
1522 *
1523 * Licensed under the Apache License, Version 2.0 (the "License");
1524 * you may not use this file except in compliance with the License.
1525 * You may obtain a copy of the License at
1526 *
1527 *   http://www.apache.org/licenses/LICENSE-2.0
1528 *
1529 * Unless required by applicable law or agreed to in writing, software
1530 * distributed under the License is distributed on an "AS IS" BASIS,
1531 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1532 * See the License for the specific language governing permissions and
1533 * limitations under the License.
1534 */var G=6048e5;function K(t,e,n){return Object(s["__awaiter"])(this,void 0,void 0,function(){var r,i,o,a;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw f.create("permission-blocked");return[4,Y(e,n)];case 1:return r=s.sent(),[4,L(t)];case 2:return i=s.sent(),o={vapidKey:n,swScope:e.scope,endpoint:r.endpoint,auth:I(r.getKey("auth")),p256dh:I(r.getKey("p256dh"))},i?[3,3]:[2,Q(t,o)];case 3:if(X(i.subscriptionOptions,o))return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,B(t,i.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[3,7];case 7:return[2,Q(t,o)];case 8:return Date.now()>=i.createTime+G?[2,$({token:i.token,createTime:Date.now(),subscriptionOptions:o},t,e)]:[2,i.token];case 9:return[2]}})})}function z(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return[4,L(t)];case 1:return n=i.sent(),n?[4,B(t,n.token)]:[3,4];case 2:return i.sent(),[4,j(t)];case 3:i.sent(),i.label=4;case 4:return[4,e.pushManager.getSubscription()];case 5:return r=i.sent(),r?[2,r.unsubscribe()]:[2,!0]}})})}function $(t,e,n){return Object(s["__awaiter"])(this,void 0,void 0,function(){var r,i,o;return Object(s["__generator"])(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,V(e,t)];case 1:return r=a.sent(),i=Object(s["__assign"])(Object(s["__assign"])({},t),{token:r,createTime:Date.now()}),[4,M(e,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,z(e,n)];case 4:throw a.sent(),o;case 5:return[2]}})})}function Q(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return[4,U(t,e)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:e},[4,M(t,r)];case 2:return i.sent(),[2,r.token]}})})}function Y(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n;return Object(s["__generator"])(this,function(r){switch(r.label){case 0:return[4,t.pushManager.getSubscription()];case 1:return n=r.sent(),n?[2,n]:[2,t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:T(e)})]}})})}function X(t,e){var n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}
1535/**
1536 * @license
1537 * Copyright 2020 Google LLC
1538 *
1539 * Licensed under the Apache License, Version 2.0 (the "License");
1540 * you may not use this file except in compliance with the License.
1541 * You may obtain a copy of the License at
1542 *
1543 *   http://www.apache.org/licenses/LICENSE-2.0
1544 *
1545 * Unless required by applicable law or agreed to in writing, software
1546 * distributed under the License is distributed on an "AS IS" BASIS,
1547 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1548 * See the License for the specific language governing permissions and
1549 * limitations under the License.
1550 */function J(t){var e={from:t.from,collapseKey:t.collapse_key};return Z(e,t),tt(e,t),et(e,t),e}function Z(t,e){if(e.notification){t.notification={};var n=e.notification.title;n&&(t.notification.title=n);var r=e.notification.body;r&&(t.notification.body=r);var i=e.notification.image;i&&(t.notification.image=i)}}function tt(t,e){e.data&&(t.data=e.data)}function et(t,e){if(e.fcmOptions){t.fcmOptions={};var n=e.fcmOptions.link;n&&(t.fcmOptions.link=n);var r=e.fcmOptions.analytics_label;r&&(t.fcmOptions.analyticsLabel=r)}}
1551/**
1552 * @license
1553 * Copyright 2019 Google LLC
1554 *
1555 * Licensed under the Apache License, Version 2.0 (the "License");
1556 * you may not use this file except in compliance with the License.
1557 * You may obtain a copy of the License at
1558 *
1559 *   http://www.apache.org/licenses/LICENSE-2.0
1560 *
1561 * Unless required by applicable law or agreed to in writing, software
1562 * distributed under the License is distributed on an "AS IS" BASIS,
1563 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1564 * See the License for the specific language governing permissions and
1565 * limitations under the License.
1566 */function nt(t){return"object"===typeof t&&!!t&&y in t}
1567/**
1568 * @license
1569 * Copyright 2019 Google LLC
1570 *
1571 * Licensed under the Apache License, Version 2.0 (the "License");
1572 * you may not use this file except in compliance with the License.
1573 * You may obtain a copy of the License at
1574 *
1575 *   http://www.apache.org/licenses/LICENSE-2.0
1576 *
1577 * Unless required by applicable law or agreed to in writing, software
1578 * distributed under the License is distributed on an "AS IS" BASIS,
1579 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1580 * See the License for the specific language governing permissions and
1581 * limitations under the License.
1582 */function rt(t){return new Promise(function(e){setTimeout(e,t)})}
1583/**
1584 * @license
1585 * Copyright 2017 Google LLC
1586 *
1587 * Licensed under the Apache License, Version 2.0 (the "License");
1588 * you may not use this file except in compliance with the License.
1589 * You may obtain a copy of the License at
1590 *
1591 *   http://www.apache.org/licenses/LICENSE-2.0
1592 *
1593 * Unless required by applicable law or agreed to in writing, software
1594 * distributed under the License is distributed on an "AS IS" BASIS,
1595 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1596 * See the License for the specific language governing permissions and
1597 * limitations under the License.
1598 */var it=function(){function t(t){var e=this;this.firebaseDependencies=t,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(t){t.waitUntil(e.onPush(t))}),self.addEventListener("pushsubscriptionchange",function(t){t.waitUntil(e.onSubChange(t))}),self.addEventListener("notificationclick",function(t){t.waitUntil(e.onNotificationClick(t))})}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.setBackgroundMessageHandler=function(t){if(this.isOnBackgroundMessageUsed=!1,!t||"function"!==typeof t)throw f.create("invalid-bg-handler");this.bgMessageHandler=t},t.prototype.onBackgroundMessage=function(t){var e=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=t,function(){e.bgMessageHandler=null}},t.prototype.getToken=function(){var t,e;return Object(s["__awaiter"])(this,void 0,void 0,function(){var n;return Object(s["__generator"])(this,function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,L(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(e=null===(t=null===n||void 0===n?void 0:n.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==e?e:v,r.label=2;case 2:return[2,K(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},t.prototype.deleteToken=function(){return z(this.firebaseDependencies,self.registration)},t.prototype.requestPermission=function(){throw f.create("only-available-in-window")},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw f.create("use-vapid-key-after-get-token");if("string"!==typeof t||0===t.length)throw f.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(){throw f.create("only-available-in-window")},t.prototype.onMessage=function(){throw f.create("only-available-in-window")},t.prototype.onTokenRefresh=function(){throw f.create("only-available-in-window")},t.prototype.onPush=function(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r,i;return Object(s["__generator"])(this,function(o){switch(o.label){case 0:return e=at(t),e?[4,lt()]:(console.debug(E+"failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return n=o.sent(),ut(n)?[2,ct(n,e)]:(r=!1,e.notification?[4,ht(ot(e))]:[3,3]);case 2:o.sent(),r=!0,o.label=3;
1598case 3:return!0===r&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(i=J(e),"function"===typeof this.bgMessageHandler?this.bgMessageHandler(i):this.bgMessageHandler.next(i)),[2])}})})},t.prototype.onSubChange=function(t){var e,n;return Object(s["__awaiter"])(this,void 0,void 0,function(){var r,i;return Object(s["__generator"])(this,function(o){switch(o.label){case 0:return r=t.newSubscription,r?[3,2]:[4,z(this.firebaseDependencies,self.registration)];case 1:return o.sent(),[2];case 2:return[4,L(this.firebaseDependencies)];case 3:return i=o.sent(),[4,z(this.firebaseDependencies,self.registration)];case 4:return o.sent(),[4,K(this.firebaseDependencies,self.registration,null!==(n=null===(e=null===i||void 0===i?void 0:i.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==n?n:v)];case 5:return o.sent(),[2]}})})},t.prototype.onNotificationClick=function(t){var e,n;return Object(s["__awaiter"])(this,void 0,void 0,function(){var r,o,a,u,c;return Object(s["__generator"])(this,function(s){switch(s.label){case 0:return r=null===(n=null===(e=t.notification)||void 0===e?void 0:e.data)||void 0===n?void 0:n[m],r?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),o=ft(r),o?(a=new URL(o,self.location.href),u=new URL(self.location.origin),a.host!==u.host?[2]:[4,st(a)]):[2]):[2];case 1:return c=s.sent(),c?[3,4]:[4,self.clients.openWindow(o)];case 2:return c=s.sent(),[4,rt(3e3)];case 3:return s.sent(),[3,6];case 4:return[4,c.focus()];case 5:c=s.sent(),s.label=6;case 6:return c?(r.messageType=i.NOTIFICATION_CLICKED,r.isFirebaseMessaging=!0,[2,c.postMessage(r)]):[2]}})})},t}();function ot(t){var e,n=Object(s["__assign"])({},t.notification);return n.data=(e={},e[m]=t,e),n}function at(t){var e=t.data;if(!e)return null;try{return e.json()}catch(n){return null}}function st(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n,r,i,o,a,u;return Object(s["__generator"])(this,function(c){switch(c.label){case 0:return[4,lt()];case 1:e=c.sent();try{for(n=Object(s["__values"])(e),r=n.next();!r.done;r=n.next())if(i=r.value,o=new URL(i.url,self.location.href),t.host===o.host)return[2,i]}catch(l){a={error:l}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}}return[2,null]}})})}function ut(t){return t.some(function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")})}function ct(t,e){var n,r;e.isFirebaseMessaging=!0,e.messageType=i.PUSH_RECEIVED;try{for(var o=Object(s["__values"])(t),a=o.next();!a.done;a=o.next()){var u=a.value;u.postMessage(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function lt(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function ht(t){var e,n=t.actions,r=Notification.maxActions;return n&&r&&n.length>r&&console.warn("This browser only supports "+r+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(e=t.title)&&void 0!==e?e:"",t)}function ft(t){var e,n,r,i=null!==(n=null===(e=t.fcmOptions)||void 0===e?void 0:e.link)&&void 0!==n?n:null===(r=t.notification)||void 0===r?void 0:r.click_action;return i||(nt(t.data)?self.location.origin:null)}
1599/**
1600 * @license
1601 * Copyright 2017 Google LLC
1602 *
1603 * Licensed under the Apache License, Version 2.0 (the "License");
1604 * you may not use this file except in compliance with the License.
1605 * You may obtain a copy of the License at
1606 *
1607 *   http://www.apache.org/licenses/LICENSE-2.0
1608 *
1609 * Unless required by applicable law or agreed to in writing, software
1610 * distributed under the License is distributed on an "AS IS" BASIS,
1611 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1612 * See the License for the specific language governing permissions and
1613 * limitations under the License.
1614 */var pt=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(t){return e.messageEventListener(t)})}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app}
1614,enumerable:!1,configurable:!0}),t.prototype.messageEventListener=function(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){var e,n;return Object(s["__generator"])(this,function(r){switch(r.label){case 0:return e=t.data,e.isFirebaseMessaging?(this.onMessageCallback&&e.messageType===i.PUSH_RECEIVED&&("function"===typeof this.onMessageCallback?this.onMessageCallback(vt(Object.assign({},e))):this.onMessageCallback.next(Object.assign({},e))),n=e.data,nt(n)&&"1"===n[w]?[4,this.logEvent(e.messageType,n)]:[3,2]):[2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},t.prototype.getVapidKey=function(){return this.vapidKey},t.prototype.getSwReg=function(){return this.swRegistration},t.prototype.getToken=function(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){return Object(s["__generator"])(this,function(e){switch(e.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:e.sent(),e.label=2;case 2:if("granted"!==Notification.permission)throw f.create("permission-blocked");return[4,this.updateVapidKey(null===t||void 0===t?void 0:t.vapidKey)];case 3:return e.sent(),[4,this.updateSwReg(null===t||void 0===t?void 0:t.serviceWorkerRegistration)];case 4:return e.sent(),[2,K(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},t.prototype.updateVapidKey=function(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){return Object(s["__generator"])(this,function(e){return t?this.vapidKey=t:this.vapidKey||(this.vapidKey=v),[2]})})},t.prototype.updateSwReg=function(t){return Object(s["__awaiter"])(this,void 0,void 0,function(){return Object(s["__generator"])(this,function(e){switch(e.label){case 0:return t||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:if(!t&&this.swRegistration)return[2];if(!(t instanceof ServiceWorkerRegistration))throw f.create("invalid-sw-registration");return this.swRegistration=t,[2]}})})},t.prototype.registerDefaultSw=function(){return Object(s["__awaiter"])(this,void 0,void 0,function(){var t,e;return Object(s["__generator"])(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),t=this,[4,navigator.serviceWorker.register(p,{scope:d})];case 1:return t.swRegistration=n.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw e=n.sent(),f.create("failed-service-worker-registration",{browserErrorMessage:e.message});case 3:return[2]}})})},t.prototype.deleteToken=function(){return Object(s["__awaiter"])(this,void 0,void 0,function(){return Object(s["__generator"])(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,z(this.firebaseDependencies,this.swRegistration)]}})})},t.prototype.requestPermission=function(){return Object(s["__awaiter"])(this,void 0,void 0,function(){var t;return Object(s["__generator"])(this,function(e){switch(e.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if(t=e.sent(),"granted"===t)return[2];throw"denied"===t?f.create("permission-blocked"):f.create("permission-default")}})})},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw f.create("use-vapid-key-after-get-token");if("string"!==typeof t||0===t.length)throw f.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw f.create("invalid-sw-registration");if(this.swRegistration)throw f.create("use-sw-after-get-token");this.swRegistration=t},t.prototype.onMessage=function(t){var e=this;return this.onMessageCallback=t,function(){e.onMessageCallback=null}},t.prototype.setBackgroundMessageHandler=function(){throw f.create("only-available-in-sw")},t.prototype.onBackgroundMessage=function(){throw f.create("only-available-in-sw")},t.prototype.onTokenRefresh=function(){return function(){}},t.prototype.logEvent=function(t,e){return Object(s["__awaiter"])(this,void 0,void 0,function(){var n,r;return Object(s["__generator"])(this,function(i){switch(i.label){case 0:return n=dt(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r=i.sent(),r.logEvent(n,{message_id:e[y],message_name:e[b],message_time:e[_],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},t}();function dt(t){switch(t){case i.NOTIFICATION_CLICKED:return"notification_open";case i.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function vt(t){return delete t.messageType,delete t.isFirebaseMessaging,t}
1615/**
1616 * @license
1617 * Copyright 2019 Google LLC
1618 *
1619 * Licensed under the Apache License, Version 2.0 (the "License");
1620 * you may not use this file except in compliance with the License.
1621 * You may obtain a copy of the License at
1622 *
1623 *   http://www.apache.org/licenses/LICENSE-2.0
1624 *
1625 * Unless required by applicable law or agreed to in writing, software
1626 * distributed under the License is distributed on an "AS IS" BASIS,
1627 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1628 * See the License for the specific language governing permissions and
1629 * limitations under the License.
1630 */function gt(t){var e,n;if(!t||!t.options)throw mt("App Configuration Object");if(!t.name)throw mt("App Name");var r=["projectId","apiKey","appId","messagingSenderId"],i=t.options;try{for(var o=Object(s["__values"])(r),a=o.next();!a.done;a=o.next()){var u=a.value;if(!i[u])throw mt(u)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return{appName:t.name,projectId:i.projectId,apiKey:i.apiKey,appId:i.appId,senderId:i.messagingSenderId}}function mt(t){return f.create("missing-app-config-values",{valueName:t})}
1631/**
1632 * @license
1633 * Copyright 2017 Google LLC
1634 *
1635 * Licensed under the Apache License, Version 2.0 (the "License");
1636 * you may not use this file except in compliance with the License.
1637 * You may obtain a copy of the License at
1638 *
1639 *   http://www.apache.org/licenses/LICENSE-2.0
1640 *
1641 * Unless required by applicable law or agreed to in writing, software
1642 * distributed under the License is distributed on an "AS IS" BASIS,
1643 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1644 * See the License for the specific language governing permissions and
1645 * limitations under the License.
1646 */var yt="messaging";function bt(t){var e=t.getProvider("app").getImmediate(),n=gt(e),r=t.getProvider("installations").getImmediate(),i=t.getProvider("analytics-internal"),o={app:e,appConfig:n,installations:r,analyticsProvider:i};if(!wt())throw f.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new it(o):new pt(o)}var _t={isSupported:wt};function wt(){return self&&"ServiceWorkerGlobalScope"in self?It():Et()}function Et(){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")}function It(){return"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}l.a.INTERNAL.registerComponent(new o["Component"](yt,bt,"PUBLIC").setServiceProps(_t))},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var r,i;u&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aa5":function(t,e,n){"use strict";var r=n("c23d");function i(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}n("2ce1"),n("3523"),n("e89a"),n("001a"),n("8071"),n("2e66"),n("6d09"),n("dcaa"),n("3b59");var o=i(r),a="firebase",s="7.24.0";
1647/**
1648 * @license
1649 * Copyright 2018 Google LLC
1650 *
1651 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 28,296 bytes, lines 1652-1685
1652 * you may not use this file except in compliance with the License.
1653 * You may obtain a copy of the License at
1654 *
1655 *   http://www.apache.org/licenses/LICENSE-2.0
1656 *
1657 * Unless required by applicable law or agreed to in writing, software
1658 * distributed under the License is distributed on an "AS IS" BASIS,
1659 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1660 * See the License for the specific language governing permissions and
1661 * limitations under the License.
1662 */
1663o["default"].registerVersion(a,s,"app");var u="firebase",c="7.24.0";
1664/**
1665 * @license
1666 * Copyright 2017 Google LLC
1667 *
1668 * Licensed under the Apache License, Version 2.0 (the "License");
1669 * you may not use this file except in compliance with the License.
1670 * You may obtain a copy of the License at
1671 *
1672 *   http://www.apache.org/licenses/LICENSE-2.0
1673 *
1674 * Unless required by applicable law or agreed to in writing, software
1675 * distributed under the License is distributed on an "AS IS" BASIS,
1676 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1677 * See the License for the specific language governing permissions and
1678 * limitations under the License.
1679 */
1680console.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 * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),o["default"].registerVersion(u,c),t.exports=o["default"]},"8c4f":function(t,e,n){"use strict";
1681/*!
1682  * vue-router v3.1.3
1683  * (c) 2019 Evan You
1684  * @license MIT
1685  */function r(t,e){0}function i(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function a(t,e){for(var n in e)t[n]=e[n];return t}var s={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;var s=i.$createElement,c=n.name,l=i.$route,h=i._routerViewCache||(i._routerViewCache={}),f=0,p=!1;while(i&&i._routerRoot!==i){var d=i.$vnode&&i.$vnode.data;d&&(d.routerView&&f++,d.keepAlive&&i._inactive&&(p=!0)),i=i.$parent}if(o.routerViewDepth=f,p)return s(h[c],o,r);var v=l.matched[f];if(!v)return h[c]=null,s();var g=h[c]=v.components[c];o.registerRouteInstance=function(t,e){var n=v.instances[c];(e&&n!==t||!e&&n===t)&&(v.instances[c]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){v.instances[c]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[c]&&(v.instances[c]=t.componentInstance)};var m=o.props=u(l,v.props&&v.props[c]);if(m){m=o.props=a({},m);var y=o.attrs=o.attrs||{};for(var b in m)g.props&&b in g.props||(y[b]=m[b],delete m[b])}return s(g,o,r)}};function u(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var c=/[!'()*]/g,l=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,f=function(t){return encodeURIComponent(t).replace(c,l).replace(h,",")},p=decodeURIComponent;function d(t,e,n){void 0===e&&(e={});var r,i=n||v;try{r=i(t||"")}catch(a){r={}}for(var o in e)r[o]=e[o];return r}function v(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=p(n.shift()),i=n.length>0?p(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function g(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return f(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(f(e)):r.push(f(e)+"="+f(t)))}),r.join("&")}return f(e)+"="+f(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var m=/\/?$/;function y(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=b(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:E(e,i),matched:t?w(t):[]};return n&&(a.redirectedFrom=E(n,i)),Object.freeze(a)}function b(t){if(Array.isArray(t))return t.map(b);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=b(t[n]);return e}return t}var _=y(null,{path:"/"});function w(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function E(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||g;return(n||"/")+o(r)+i}function I(t,e){return e===_?t===e:!!e&&(t.path&&e.path?t.path.replace(m,"")===e.path.replace(m,"")&&t.hash===e.hash&&T(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&T(t.query,e.query)&&T(t.params,e.params)))}function T(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],i=e[n];return"object"===typeof r&&"object"===typeof i?T(r,i):String(r)===String(i)})}function S(t,e){return 0===t.path.replace(m,"/").indexOf(e.path.replace(m,"/"))&&(!e.hash||t.hash===e.hash)&&C(t.query,e.query)}function C(t,e){for(var n in e)if(!(n in t))return!1;return!0}function A(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function N(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function k(t){return t.replace(/\/\//g,"/")}var O=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},x=Y,D=j,R=F,P=B,L=Q,M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function j(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=M.exec(t))){var u=n[0],c=n[1],l=n.index;if(a+=t.slice(o,l),o=l+u.length,c)a+=c[1];else{var h=t[o],f=n[2],p=n[3],d=n[4],v=n[5],g=n[6],m=n[7];a&&(r.push(a),a="");var y=null!=f&&null!=h&&h!==f,b="+"===g||"*"===g,_="?"===g||"*"===g,w=n[2]||s,E=d||v;r.push({name:p||i++,prefix:f||"",delimiter:w,optional:_,repeat:b,partial:y,asterisk:!!m,pattern:E?H(E):m?".*":"[^"+q(w)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function F(t,e){return B(j(t,e))}function U(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function V(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function B(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var i="",o=n||{},a=r||{},s=a.pretty?U:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!==typeof c){var l,h=o[c.name];if(null==h){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(O(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(l=s(h[f]),!e[u].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===f?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?V(h):s(h),!e[u].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function q(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function W(t,e){return t.keys=e,t}function G(t){return t.sensitive?"":"i"}function K(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return W(t,e)}function z(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(Y(t[i],e,n).source);var o=new RegExp("(?:"+r.join("|")+")",G(n));return W(o,e)}function $(t,e,n){return Q(j(t,n),e,n)}function Q(t,e,n){O(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"===typeof s)o+=q(s);else{var u=q(s.prefix),c="(?:"+s.pattern+")";e.push(s),s.repeat&&(c+="(?:"+u+c+")*"),c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")",o+=c}}var l=q(n.delimiter||"/"),h=o.slice(-l.length)===l;return r||(o=(h?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+l+"|$)",W(new RegExp("^"+o,G(n)),e)}function Y(t,e,n){return O(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?K(t,e):O(t)?z(t,e,n):$(t,e,n)}x.parse=D,x.compile=R,x.tokensToFunction=P,x.tokensToRegExp=L;var X=Object.create(null);function J(t,e,n){e=e||{};try{var r=X[t]||(X[t]=x.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(i){return""}finally{delete e[0]}}function Z(t,e,n,r){var i="string"===typeof t?{path:t}:t;if(i._normalized)return i;if(i.name)return a({},t);if(!i.path&&i.params&&e){i=a({},i),i._normalized=!0;var o=a(a({},e.params),i.params);if(e.name)i.name=e.name,i.params=o;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;i.path=J(s,o,"path "+e.path)}else 0;return i}var u=N(i.path||""),c=e&&e.path||"/",l=u.path?A(u.path,c,n||i.append):c,h=d(u.query,i.query,r&&r.options.parseQuery),f=i.hash||u.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:l,query:h,hash:f}}var tt,et=[String,Object],nt=[String,Array],rt=function(){},it={name:"RouterLink",props:{to:{type:et,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:nt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,u=i.href,c={},l=n.options.linkActiveClass,h=n.options.linkExactActiveClass,f=null==l?"router-link-active":l,p=null==h?"router-link-exact-active":h,d=null==this.activeClass?f:this.activeClass,v=null==this.exactActiveClass?p:this.exactActiveClass,g=s.redirectedFrom?y(null,Z(s.redirectedFrom),null,n):s;c[v]=I(r,g),c[d]=this.exact?c[v]:S(r,g);var m=function(t){ot(t)&&(e.replace?n.replace(o,rt):n.push(o,rt))},b={click:ot};Array.isArray(this.event)?this.event.forEach(function(t){b[t]=m}):b[this.event]=m;var _={class:c},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:m,isActive:c[d],isExactActive:c[v]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?t():t("span",{},w)}if("a"===this.tag)_.on=b,_.attrs={href:u};else{var E=at(this.$slots.default);if(E){E.isStatic=!1;var T=E.data=a({},E.data);for(var C in T.on=T.on||{},T.on){var A=T.on[C];C in b&&(T.on[C]=Array.isArray(A)?A:[A])}for(var N in b)N in T.on?T.on[N].push(b[N]):T.on[N]=m;var k=E.data.attrs=a({},E.data.attrs);k.href=u}else _.on=b}return t(this.tag,_,this.$slots.default)}};function ot(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function at(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=at(e.children)))return e}}function st(t){if(!st.installed||tt!==t){st.installed=!0,tt=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",s),t.component("RouterLink",it);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ut="undefined"!==typeof window;function ct(t,e,n,r){var i=e||[],o=n||Object.create(null),a=r||Object.create(null);t.forEach(function(t){lt(i,o,a,t)});for(var s=0,u=i.length;s<u;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),u--,s--);return{pathList:i,pathMap:o,nameMap:a}}function lt(t,e,n,r,i,o){var a=r.path,s=r.name;var u=r.pathToRegexpOptions||{},c=ft(a,i,u.strict);"boolean"===typeof r.caseSensitive&&(u.sensitive=r.caseSensitive);var l={path:c,regex:ht(c,u),components:r.components||{default:r.component},instances:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach(function(r){var i=o?k(o+"/"+r.path):void 0;lt(t,e,n,r,l,i)}),e[l.path]||(t.push(l.path),e[l.path]=l),void 0!==r.alias)for(var h=Array.isArray(r.alias)?r.alias:[r.alias],f=0;f<h.length;++f){var p=h[f];0;var d={path:p,children:r.children};lt(t,e,n,d,i,l.path||"/")}s&&(n[s]||(n[s]=l))}function ht(t,e){var n=x(t,[],e);return n}function ft(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]?t:null==e?t:k(e.path+"/"+t)}function pt(t,e){var n=ct(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t){ct(t,r,i,o)}function s(t,n,a){var s=Z(t,n,!1,e),u=s.name;if(u){var c=o[u];if(!c)return l(null,s);var h=c.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&h.indexOf(f)>-1&&(s.params[f]=n.params[f]);return s.path=J(c.path,s.params,'named route "'+u+'"'),l(c,s,a)}if(s.path){s.params={};for(var p=0;p<r.length;p++){var d=r[p],v=i[d];if(dt(v.regex,s.path,s.params))return l(v,s,a)}}return l(null,s)}function u(t,n){var r=t.redirect,i="function"===typeof r?r(y(t,n,null,e)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return l(null,n);var a=i,u=a.name,c=a.path,h=n.query,f=n.hash,p=n.params;if(h=a.hasOwnProperty("query")?a.query:h,f=a.hasOwnProperty("hash")?a.hash:f,p=a.hasOwnProperty("params")?a.params:p,u){o[u];return s({_normalized:!0,name:u,query:h,hash:f,params:p},void 0,n)}if(c){var d=vt(c,t),v=J(d,p,'redirect route with path "'+d+'"');return s({_normalized:!0,path:v,query:h,hash:f},void 0,n)}return l(null,n)}function c(t,e,n){var r=J(n,e.params,'aliased route with path "'+n+'"'),i=s({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return e.params=i.params,l(a,e)}return l(null,e)}function l(t,n,r){return t&&t.redirect?u(t,r||n):t&&t.matchAs?c(t,n,t.matchAs):y(t,n,r,e)}return{match:s,addRoutes:a}}function dt(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1],s="string"===typeof r[i]?decodeURIComponent(r[i]):r[i];a&&(n[a.name||"pathMatch"]=s)}return!0}function vt(t,e){return A(t,e.parent?e.parent.path:"/",!0)}var gt=ut&&window.performance&&window.performance.now?window.performance:Date;function mt(){return gt.now().toFixed(3)}var yt=mt();function bt(){return yt}function _t(t){return yt=t}var wt=Object.create(null);function Et(){var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,"");window.history.replaceState({key:bt()},"",e),window.addEventListener("popstate",function(t){Tt(),t.state&&t.state.key&&_t(t.state.key)})}function It(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick(function(){var o=St(),a=i.call(t,e,n,r?o:null);a&&("function"===typeof a.then?a.then(function(t){Dt(t,o)}).catch(function(t){0}):Dt(a,o))})}}function Tt(){var t=bt();t&&(wt[t]={x:window.pageXOffset,y:window.pageYOffset})}function St(){var t=bt();if(t)return wt[t]}function Ct(t,e){var n=document.documentElement,r=n.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-r.left-e.x,y:i.top-r.top-e.y}}function At(t){return Ot(t.x)||Ot(t.y)}function Nt(t){return{x:Ot(t.x)?t.x:window.pageXOffset,y:Ot(t.y)?t.y:window.pageYOffset}}function kt(t){return{x:Ot(t.x)?t.x:0,y:Ot(t.y)?t.y:0}}function Ot(t){return"number"===typeof t}var xt=/^#\d/;function Dt(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var r=xt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var i=t.offset&&"object"===typeof t.offset?t.offset:{};i=kt(i),e=Ct(r,i)}else At(t)&&(e=Nt(t))}else n&&At(t)&&(e=Nt(t));e&&window.scrollTo(e.x,e.y)}var Rt=ut&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}();function Pt(t,e){Tt();var n=window.history;try{e?n.replaceState({key:bt()},"",t):n.pushState({key:_t(mt())},"",t)}catch(r){window.location[e?"replace":"assign"](t)}}function Lt(t){Pt(t,!0)}function Mt(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function jt(t){return function(e,n,r){var o=!1,a=0,s=null;Ft(t,function(t,e,n,u){if("function"===typeof t&&void 0===t.cid){o=!0,a++;var c,l=qt(function(e){Bt(e)&&(e=e.default),t.resolved="function"===typeof e?e:tt.extend(e),n.components[u]=e,a--,a<=0&&r()}),h=qt(function(t){var e="Failed to resolve async component "+u+": "+t;s||(s=i(t)?t:new Error(e),r(s))});try{c=t(l,h)}catch(p){h(p)}if(c)if("function"===typeof c.then)c.then(l,h);else{var f=c.component;f&&"function"===typeof f.then&&f.then(l,h)}}}),o||r()}}function Ft(t,e){return Ut(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Ut(t){return Array.prototype.concat.apply([],t)}var Vt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Bt(t){return t.__esModule||Vt&&"Module"===t[Symbol.toStringTag]}function qt(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Ht=function(t){function e(e){t.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+e.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new t).stack,writable:!0,configurable:!0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);Ht._name="NavigationDuplicated";var Wt=function(t,e){this.router=t,this.base=Gt(e),this.current=_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Gt(t){if(!t)if(ut){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function Kt(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function zt(t,e,n,r){var i=Ft(t,function(t,r,i,o){var a=$t(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,i,o)}):n(a,r,i,o)});return Ut(r?i.reverse():i)}function $t(t,e){return"function"!==typeof t&&(t=tt.extend(t)),t.options[e]}function Qt(t){return zt(t,"beforeRouteLeave",Xt,!0)}function Yt(t){return zt(t,"beforeRouteUpdate",Xt)}function Xt(t,e){if(e)return function(){return t.apply(e,arguments)}}function Jt(t,e,n){return zt(t,"beforeRouteEnter",function(t,r,i,o){return Zt(t,i,o,e,n)})}function Zt(t,e,n,r,i){return function(o,a,s){return t(o,a,function(t){"function"===typeof t&&r.push(function(){te(t,e.instances,n,i)}),s(t)})}}function te(t,e,n,r){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):r()&&setTimeout(function(){te(t,e,n,r)},16)}Wt.prototype.listen=function(t){this.cb=t},Wt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Wt.prototype.onError=function(t){this.errorCbs.push(t)},Wt.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Wt.prototype.confirmTransition=function(t,e,n){var a=this,s=this.current,u=function(t){!o(Ht,t)&&i(t)&&(a.errorCbs.length?a.errorCbs.forEach(function(e){e(t)}):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(I(t,s)&&t.matched.length===s.matched.length)return this.ensureURL(),u(new Ht(t));var c=Kt(this.current.matched,t.matched),l=c.updated,h=c.deactivated,f=c.activated,p=[].concat(Qt(h),this.router.beforeHooks,Yt(l),f.map(function(t){return t.beforeEnter}),jt(f));this.pending=t;var d=function(e,n){if(a.pending!==t)return u();try{e(t,s,function(t){!1===t||i(t)?(a.ensureURL(!0),u(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(u(),"object"===typeof t&&t.replace?a.replace(t):a.push(t)):n(t)})}catch(r){u(r)}};Mt(p,d,function(){var n=[],r=function(){return a.current===t},i=Jt(f,n,r),o=i.concat(a.router.resolveHooks);Mt(o,d,function(){if(a.pending!==t)return u();a.pending=null,e(t),a.router.app&&a.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},Wt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var ee=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior,o=Rt&&i;o&&Et();var a=ne(this.base);window.addEventListener("popstate",function(t){var n=r.current,i=ne(r.base);r.current===_&&i===a||r.transitionTo(i,function(t){o&&It(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,function(t){Pt(k(r.base+t.fullPath)),It(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,function(t){Lt(k(r.base+t.fullPath)),It(r.router,t,o,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(ne(this.base)!==this.current.fullPath){var e=k(this.base+this.current.fullPath);t?Pt(e):Lt(e)}},e.prototype.getCurrentLocation=function(){return ne(this.base)},e}(Wt);function ne(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var re=function(t){function e(e,n,r){t.call(this,e,n),r&&ie(this.base)||oe()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,n=e.options.scrollBehavior,r=Rt&&n;r&&Et(),window.addEventListener(Rt?"popstate":"hashchange",function(){var e=t.current;oe()&&t.transitionTo(ae(),function(n){r&&It(t.router,n,e,!0),Rt||ce(n.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,function(t){ue(t.fullPath),It(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,function(t){ce(t.fullPath),It(r.router,t,o,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ae()!==e&&(t?ue(e):ce(e))},e.prototype.getCurrentLocation=function(){return ae()},e}(Wt);function ie(t){var e=ne(t);if(!/^\/#/.test(e))return window.location.replace(k(t+"/#"+e)),!0}function oe(){var t=ae();return"/"===t.charAt(0)||(ce("/"+t),!1)}function ae(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var n=t.indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function se(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function ue(t){Rt?Pt(se(t)):window.location.hash=t}function ce(t){Rt?Lt(se(t)):window.location.replace(se(t))}var le=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)},function(t){o(Ht,t)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Wt),he=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Rt&&!1!==t.fallback,this.fallback&&(e="hash"),ut||(e="abstract"),this.mode=e,e){case"history":this.history=new ee(this,t.base);break;case"hash":this.history=new re(this,t.base,this.fallback);break;case"abstract":this.history=new le(this,t.base);break;default:0}},fe={currentRoute:{configurable:!0}};function pe(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function de(t,e,n){var r="hash"===n?"#"+e:e;return t?k(t+"/"+r):r}he.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},fe.currentRoute.get=function(){return this.history&&this.history.current},he.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof ee)n.transitionTo(n.getCurrentLocation());else if(n instanceof re){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},he.prototype.beforeEach=function(t){return pe(this.beforeHooks,t)},he.prototype.beforeResolve=function(t){return pe(this.resolveHooks,t)},he.prototype.afterEach=function(t){return pe(this.afterHooks,t)},he.prototype.onReady=function(t,e){this.history.onReady(t,e)},he.prototype.onError=function(t){this.history.onError(t)},he.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise(function(e,n){r.history.push(t,e,n)});this.history.push(t,e,n)},he.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise(function(e,n){r.history.replace(t,e,n)});this.history.replace(t,e,n)},he.prototype.go=function(t){this.history.go(t)},he.prototype.back=function(){this.go(-1)},he.prototype.forward=function(){this.go(1)},he.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},he.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=Z(t,e,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=de(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},he.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==_&&this.history.transitionTo(this.history.getCurrentLocation())}
vendor: 1,584 bytes, line 1685
1685,Object.defineProperties(he.prototype,fe),he.install=st,he.version="3.1.3",ut&&window.Vue&&window.Vue.use(he),e["a"]=he},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8e6e":function(t,e,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),u=a.f,c=i(r),l={},h=0;while(c.length>h)n=u(r,e=c[h++]),void 0!==n&&s(l,e,n);return l}})},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"990b":function(t,e,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},"9ab4":function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return i}),n.d(e,"__assign",function(){return o}),n.d(e,"__rest",function(){return a}),n.d(e,"__decorate",function(){return s}),n.d(e,"__param",function(){return u}),n.d(e,"__metadata",function(){return c}),n.d(e,"__awaiter",function(){return l}),n.d(e,"__generator",function(){return h}),n.d(e,"__createBinding",function(){return f}),n.d(e,"__exportStar",function(){return p}),n.d(e,"__values",function(){return d}),n.d(e,"__read",function(){return v}),n.d(e,"__spread",function(){return g}),n.d(e,"__spreadArrays",function(){return m}),n.d(e,"__await",function(){return y}),n.d(e,"__asyncGenerator",function(){return b}),n.d(e,"__asyncDelegator",function(){return _}),n.d(e,"__asyncValues",function(){return w}
1685),n.d(e,"__makeTemplateObject",function(){return E}),n.d(e,"__importStar",function(){return I}),n.d(e,"__importDefault",function(){return T}),n.d(e,"__classPrivateFieldGet",function(){return S}),n.d(e,"__classPrivateFieldSet",function(){return C});
1686/*! *****************************************************************************
1687Copyright (c) Microsoft Corporation.
1688
1689Permission to use, copy, modify, and/or distribute this software for any
1690purpose with or without fee is hereby granted.
1691
1692THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1693REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1694AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1695INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1696LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1697OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1698PERFORMANCE OF THIS SOFTWARE.
1699***************************************************************************** */
1700var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){function i(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())})}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||s(t,e)})})}function s(t,e){try{u(i[t](e))}catch(n){h(o[0][3],n)}}function u(t){t.value instanceof y?Promise.resolve(t.value.v).then(c,l):h(o[0][2],t)}function c(t){s("next",t)}function l(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"===typeof d?d(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,o){e=t[n](e),i(r,o,e.done,e.value)})}}function i(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}}function E(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function T(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function C(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9dbb":function(t,e,n){(function(t,n){n(e)})(0,function(t){"use strict";function e(t){return Array.prototype.slice.call(t)}function n(t){return new Promise(function(e,n){t.onsuccess=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function r(t,e,r){var i,o=new Promise(function(o,a){i=t[e].apply(t,r),n(i).then(o,a)});return o.request=i,o}function i(t,e,n){var i=r(t,e,n);return i.then(function(t){if(t)return new l(t,i.request)})}
1700function o(t,e,n){n.forEach(function(n){Object.defineProperty(t.prototype,n,{get:function(){return this[e][n]},set:function(t){this[e][n]=t}})})}function a(t,e,n,i){i.forEach(function(i){i in n.prototype&&(t.prototype[i]=function(){return r(this[e],i,arguments)})})}function s(t,e,n,r){r.forEach(function(r){r in n.prototype&&(t.prototype[r]=function(){return this[e][r].apply(this[e],arguments)})})}function u(t,e,n,r){r.forEach(function(r){r in n.prototype&&(t.prototype[r]=function(){return i(this[e],r,arguments)})})}function c(t){this._index=t}function l(t,e){this._cursor=t,this._request=e}function h(t){this._store=t}function f(t){this._tx=t,this.complete=new Promise(function(e,n){t.oncomplete=function(){e()},t.onerror=function(){n(t.error)},t.onabort=function(){n(t.error)}})}function p(t,e,n){this._db=t,this.oldVersion=e,this.transaction=new f(n)}function d(t){this._db=t}function v(t,e,n){var i=r(indexedDB,"open",[t,e]),o=i.request;return o&&(o.onupgradeneeded=function(t){n&&n(new p(o.result,t.oldVersion,o.transaction))}),i.then(function(t){return new d(t)})}function g(t){return r(indexedDB,"deleteDatabase",[t])}o(c,"_index",["name","keyPath","multiEntry","unique"]),a(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),u(c,"_index",IDBIndex,["openCursor","o
1700penKeyCursor"]),o(l,"_cursor",["direction","key","primaryKey","value"]),a(l,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(t){t in IDBCursor.prototype&&(l.prototype[t]=function(){var e=this,r=arguments;return Promise.resolve().then(function(){return e._cursor[t].apply(e._cursor,r),n(e._request).then(function(t){if(t)return new l(t,e._request)})})})}),h.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},h.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},o(h,"_store",["name","keyPath","indexNames","autoIncrement"]),a(h,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),u(h,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(h,"_store",IDBObjectStore,["deleteIndex"]),f.prototype.objectStore=function(){return new h(this._tx.objectStore.apply(this._tx,arguments))},o(f,"_tx",["objectStoreNames","mode"]),s(f,"_tx",IDBTransaction,["abort"]),p.prototype.createObjectStore=function(){return new h(this._db.createObjectStore.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["deleteObjectStore","close"]),d.prototype.transaction=function(){return new f(this._db.transaction.apply(this._db,arguments))},o(d,"_db",["name","version","objectStoreNames"]),s(d,"_db",IDBDatabase,["close"]),["openCursor","o
1700penKeyCursor"].forEach(function(t){[h,c].forEach(function(n){t in n.prototype&&(n.prototype[t.replace("open","iterate")]=function(){var n=e(arguments),r=n[n.length-1],i=this._store||this._index,o=i[t].apply(i,n.slice(0,-1));o.onsuccess=function(){r(o.result)}})})}),[c,h].forEach(function(t){t.prototype.getAll||(t.prototype.getAll=function(t,e){var n=this,r=[];return new Promise(function(i){n.iterateCursor(t,function(t){t?(r.push(t.value),void 0===e||r.length!=e?t.continue():i(r)):i(r)})})})}),t.openDb=v,t.deleteDb=g,Object.defineProperty(t,"__esModule",{value:!0})})},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a25f:function(t,e,n){var r=n("7726"),i=r.navigator;t.exports=i&&i.userAgent||""},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),u=n("5f1b"),c=Math.max,l=Math.min,h=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,v){return[function(r,i){var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=v(n,t,this,e);if(i.done)return i.value;var h=r(t),f=String(this),p="function"===typeof e;p||(e=String(e));var m=h.global;if(m){var y=h.unicode;h.lastIndex=0}var b=[];while(1){var _=u(h,f);if(null===_)break;if(b.push(_),!m)break;var w=String(_[0]);""===w&&(h.lastIndex=s(f,o(h.lastIndex),y))}for(var E="",I=0,T=0;T<b.length;T++){_=b[T];for(var S=String(_[0]),C=c(l(a(_.index),f.length),0),A=[],N=1;N<_.length;N++)A.push(d(_[N]));var k=_.groups;if(p){var O=[S].concat(A,C,f);void 0!==k&&O.push(k);var x=String(e.apply(void 0,O))}else x=g(S,f,C,A,k,e);C>=I&&(E+=f.slice(I,C)+x,I=C+S.length)}return E+f.slice(I)}];function g(t,e,r,o,a,s){var u=r+t.length,c=o.length,l=p;return void 0!==a&&(a=i(a),l=f),n.call(s,l,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var f=h(l/10);return 0===f?n:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s})}})},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function i(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},abfd:function(t,e,n){"use strict";
1701/*! *****************************************************************************
1702Copyright (c) Microsoft Corporation. All rights reserved.
1703Licensed under the Apache License, Version 2.0 (the "License"); you may not use
1704this file except in compliance with the License. You may obtain a copy of the
1705License at http://www.apache.org/licenses/LICENSE-2.0
1706
1707THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1708KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
1709WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
1710MERCHANTABLITY OR NON-INFRINGEMENT.
1711
1712See the Apache Version 2.0 License for specific language governing permissions
1713and limitations under the License.
1714***************************************************************************** */
1715function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}
1716/**
1717 * @license
1718 * Copyright 2017 Google LLC
1719 *
1720 * Licensed under the Apache License, Version 2.0 (the "License");
1721 * you may not use this file except in compliance with the License.
1722 * You may obtain a copy of the License at
1723 *
1724 *   http://www.apache.org/licenses/LICENSE-2.0
1725 *
1726 * Unless required by applicable law or agreed to in writing, softw
1726are
1727 * distributed under the License is distributed on an "AS IS" BASIS,
1728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1729 * See the License for the specific language governing permissions and
1730 * limitations under the License.
1731 */var i;n.r(e),n.d(e,"LogLevel",function(){return o}),n.d(e,"Logger",function(){return h}),n.d(e,"setLogLevel",function(){return f}),n.d(e,"setUserLogHandler",function(){return p});var o,a=[];(function(t){t[t["DEBUG"]=0]="DEBUG",t[t["VERBOSE"]=1]="VERBOSE",t[t["INFO"]=2]="INFO",t[t["WARN"]=3]="WARN",t[t["ERROR"]=4]="ERROR",t[t["SILENT"]=5]="SILENT"})(o||(o={}));var s={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},u=o.INFO,c=(i={},i[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),l=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(e<t.logLevel)){var o=(new Date).toISOString(),a=c[e];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[a].apply(console,r(["["+o+"]  "+t.name+":"],n))}},h=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=l,this._userLogHandler=null,a.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in o))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"===typeof t?s[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!==typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],t)),this._logHandler.apply(this,r([this,o.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],t)),this._logHandler.apply(this,r([this,o.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],t)),this._logHandler.apply(this,r([this,o.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],t)),this._logHandler.apply(this,r([this,o.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],t)),this._logHandler.apply(this,r([this,o.ERROR],t))},t}();function f(t){a.forEach(function(e){e.setLogLevel(t)})}function p(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=s[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=i.map(function(t){if(null==t)return null;if("string"===typeof t)return t;if("number"===typeof t||"boolean"===typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}}).filter(function(t){return t}).join(" ");n>=(null!==r&&void 0!==r?r:e.logLevel)&&t({level:o[n].toLowerCase(),message:s,args:i,type:e.name})}},r=0,i=a;r<i.length;r++){var u=i[r];n(u)}}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),u=n("84f2"),c=n("2b4c"),l=c("iterator"),h=c("toStringTag"),f=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;v<d.length;v++){var g,m=d[v],y=p[m],b=a[m],_=b&&b.prototype;if(_&&(_[l]||s(_,l,f),_[h]||s(_,h,m),u[m]=f,y))for(g in r)_[g]||o(_,g,r[g],!0)}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var r=n("520a");
1731n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},bcaa:function(t,e,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},bd86:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("85f2"),i=n.n(r);function o(t,e,n){return e in t?i()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},bff8:function(t,e){
1732/**
1733 * @license
1734 * Copyright 2015 Google Inc. All Rights Reserved.
1735 *
1736 * Licensed under the Apache License, Version 2.0 (the "License");
1737 * you may not use this file except in compliance with the License.
1738 * You may obtain a copy of the License at
1739 *
1740 *      http://www.apache.org/licenses/LICENSE-2.0
1741 *
1742 * Unless required by applicable law or agreed to in writing, software
1743 * distributed under the License is distributed on an "AS IS" BASIS,
1744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1745 * See the License for the specific language governing permissions and
1746 * limitations under the License.
1747 */
1748(function(){"use strict";var t=function(t){this.element_=t,this.init()};window["MaterialButton"]=t,t.prototype.Constant_={},t.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},t.prototype.blurHandler_=function(t){t&&this.element_.blur()},t.prototype.disable=function(){this.element_.disabled=!0},t.prototype["disable"]=t.prototype.disable,t.prototype.enable=function(){this.element_.disabled=!1},t.prototype["enable"]=t.prototype.enable,t.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var t=document.createElement("span");t.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),t.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(t)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},componentHandler.register({constructor:t,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0})})()},c23d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n("9ab4"),a=n("cd51"),s=n("4be4"),u=n("abfd"),c=(r={},r["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),l=new a.ErrorFactory("app","Firebase",c),h="@firebase/app",f="0.6.11",p="@firebase/analytics",d="@firebase/auth",v="@firebase/database",g="@firebase/functions",m="@firebase/installations",y="@firebase/messaging",b="@firebase/performance",_="@firebase/remote-config",w="@firebase/storage",E="@firebase/firestore",I="firebase-wrapper",T="[DEFAULT]",S=(i={},i[h]="fire-core",i[p]="fire-analytics",i[d]="fire-auth",i[v]="fire-rtdb",i[g]="fire-fn",i[m]="fire-iid",i[y]="fire-fcm",i[b]="fire-perf",i[_]="fire-rc",i[w]="fire-gcs",i[E]="fire-fst",i["fire-js"]="fire-js",i[I]="fire-js-all",i),C=new u.Logger("@firebase/app"),A=function(){function t(t,e,n){var r,i,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(t),this.container=new s.ComponentContainer(e.name),this._addComponent(new s.Component("app",function(){return u},"PUBLIC"));try{for(var c=o.__values(this.firebase_.INTERNAL.components.values()),l=c.next();!l.done;l=c.next()){var h=l.value;this._addComponent(h)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t}
1748,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise(function(e){t.checkDestroyed_(),e()}).then(function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map(function(t){return t.delete()}))}).then(function(){t.isDeleted_=!0})},t.prototype._getService=function(t,e){return void 0===e&&(e=T),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=T),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){C.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},t}();A.prototype.name&&A.prototype.options||A.prototype.delete||console.log("dc");var N="7.20.0";
1749/**
1750 * @license
1751 * Copyright 2019 Google LLC
1752 *
1753 * Licensed under the Apache License, Version 2.0 (the "License");
1754 * you may not use this file except in compliance with the License.
1755 * You may obtain a copy of the License at
1756 *
1757 *   http://www.apache.org/licenses/LICENSE-2.0
1758 *
1759 * Unless required by applicable law or agreed to in writing, software
1760 * distributed under the License is distributed on an "AS IS" BASIS,
1761 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1762 * See the License for the specific language governing permissions and
1763 * limitations under the License.
1764 */function k(t){var e={},n=new Map,r={__esModule:!0,initializeApp:h,app:c,registerVersion:d,setLogLevel:u.setLogLevel,onLog:v,apps:null,SDK_VERSION:N,INTERNAL:{registerComponent:p,removeApp:i,components:n,useAsService:g}};function i(t){delete e[t]}function c(t){if(t=t||T,!a.contains(e,t))throw l.create("no-app",{appName:t});return e[t]}function h(n,i){if(void 0===i&&(i={}),"object"!==typeof i||null===i){var o=i;i={name:o}}var s=i;void 0===s.name&&(s.name=T);var u=s.name;if("string"!==typeof u||!u)throw l.create("bad-app-name",{appName:String(u)});if(a.contains(e,u))throw l.create("duplicate-app",{appName:u});var c=new t(n,s,r);return e[u]=c,c}function f(){return Object.keys(e).map(function(t){return e[t]})}function p(i){var s,u,h=i.name;if(n.has(h))return C.debug("There were multiple attempts to register component "+h+"."),"PUBLIC"===i.type?r[h]:null;if(n.set(h,i),"PUBLIC"===i.type){var f=function(t){if(void 0===t&&(t=c()),"function"!==typeof t[h])throw l.create("invalid-app-argument",{appName:h});return t[h]()};void 0!==i.serviceProps&&a.deepExtend(f,i.serviceProps),r[h]=f,t.prototype[h]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,h);return n.apply(this,i.multipleInstances?t:[])}}try{for(var p=o.__values(Object.keys(e)),d=p.next();!d.done;d=p.next()){var v=d.value;e[v]._addComponent(i)}}catch(g){s={error:g}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(s)throw s.error}}return"PUBLIC"===i.type?r[h]:null}function d(t,e,n){var r,i=null!==(r=S[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void C.warn(u.join(" "))}p(new s.Component(i+"-version",function(){return{library:i,version:e}},"VERSION"))}function v(t,e){if(null!==t&&"function"!==typeof t)throw l.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)}function g(t,e){if("serverAuth"===e)return null;var n=e;return n}return r["default"]=r,Object.defineProperty(r,"apps",{get:f}),c["App"]=t,r}
1765/**
1766 * @license
1767 * Copyright 2019 Google LLC
1768 *
1769 * Licensed under the Apache License, Version 2.0 (the "License");
1770 * you may not use this file except in compliance with the License.
1771 * You may obtain a copy of the License at
1772 *
1773 *   http://www.apache.org/licenses/LICENSE-2.0
1774 *
1775 * Unless required by applicable law or agreed to in writing, software
1776 * distributed under the License is distributed on an "AS IS" BASIS,
1777 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1778 * See the License for the specific language governing permissions and
1779 * limitations under the License.
1780 */function O(){var t=k(A);function e(e){a.deepExtend(t,e)}return t.INTERNAL=o.__assign(o.__assign({},t.INTERNAL),{createFirebaseNamespace:O,extendNamespace:e,createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),t}var x=O(),D=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){var t=this.container.getProviders();return t.map(function(t){if(R(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null}).filter(function(t){return t}).join(" ")},t}();
1781/**
1782 * @license
1783 * Copyright 2019 Google LLC
1784 *
1785 * Licensed under the Apache License, Version 2.0 (the "License");
1786 * you may not use this file except in compliance with the License.
1787 * You may obtain a copy of the License at
1788 *
1789 *   http://www.apache.org/licenses/LICENSE-2.0
1790 *
1791 * Unless required by applicable law or agreed to in writing, software
1792 * distributed under the License is distributed on an "AS IS" BASIS,
1793 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1794 * See the License for the specific language governing permissions and
1795 * limitations under the License.
1796 */function R(t){var e=t.getComponent();return"VERSION"===(null===e||void 0===e?void 0:e.type)}
1797/**
1798 * @license
1799 * Copyright 2019 Google LLC
1800 *
1801 * Licensed under the Apache License, Version 2.0 (the "License");
1802 * you may not use this file except in compliance with the License.
1803 * You may obtain a copy of the License at
1804 *
1805 *   http://www.apache.org/licenses/LICENSE-2.0
1806 *
1807 * Unless required by applicable law or agreed to in writing, software
1808 * distributed under the License is distributed on an "AS IS" BASIS,
1809 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1810 * See the License for the specific language governing permissions and
1811 * limitations under the License.
1812 */function P(t,e){t.INTERNAL.registerComponent(new s.Component("platform-logger",function(t){return new D(t)},"PRIVATE")),t.registerVersion(h,f,e),t.registerVersion("fire-js","")}
1813/**
1814 * @license
1815 * Copyright 2017 Google LLC
1816 *
1817 * Licensed under the Apache License, Version 2.0 (the "License");
1818 * you may not use this file except in compliance with the License.
1819 * You may obtain a copy of the License at
1820 *
1821 *   http://www.apache.org/licenses/LICENSE-2.0
1822 *
1823 * Unless required by applicable law or agreed to in writing, software
1824 * distributed under the License is distributed on an "AS IS" BASIS,
1825 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1826 * See the License for the specific language governing permissions and
1827 * limitations under the License.
1828 */if(a.isBrowser()&&void 0!==self.firebase){C.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var L=self.firebase.SDK_VERSION;L&&L.indexOf("LITE")>=0&&C.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var M=x.initializeApp;x.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a.isNode()&&C.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),M.apply(void 0,t)};var j=x;P(j),e.default=j,e.firebase=j},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c7b2:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"ErrorCode",function(){return Er}),n.d(e,"EventType",function(){return Ir}),n.d(e,"WebChannel",function(){return Tr}),n.d(e,"XhrIo",function(){return Sr}),n.d(e,"createWebChannelTransport",function(){return wr});
1829/*! *****************************************************************************
1830Copyright (c) Microsoft Corporation.
1831
1832Permission to use, copy, modify, and/or distribute this software for any
1833purpose with or without fee is hereby granted.
1834
1835THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1836REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1837AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1838INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1839LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1840OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1841PERFORMANCE OF THIS SOFTWARE.
1842***************************************************************************** */
1843var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var a,s="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},u=u||{},c=s||self;function l(){}function h(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function f(t){var e=h(t);return"array"==e||"object"==e&&"number"==typeof t.length}function p(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function d(t){return Object.prototype.hasOwnProperty.call(t,v)&&t[v]||(t[v]=++g)}var v="closure_uid_"+(1e9*Math.random()>>>0),g=0;function m(t,e,n){return t.call.apply(t.bind,arguments)}function y(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function b(t,e,n){return b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?m:y,b.apply(null,arguments)}
1843function _(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var w=Date.now;function E(t,e){function n(){}n.prototype=e.prototype,t.S=e.prototype,t.prototype=new n,t.prototype.constructor=t}function I(){this.j=this.j,this.i=this.i}var T=0;I.prototype.j=!1,I.prototype.ja=function(){if(!this.j&&(this.j=!0,this.G(),0!=T))d(this)},I.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var S=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"===typeof t)return"string"!==typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},C=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"===typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function A(t){t:{for(var e=Fn,n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"===typeof t?t.charAt(e):t[e]}function N(t){return Array.prototype.concat.apply([],arguments)}function k(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function O(t){return/^[\s\xa0]*$/.test(t)}var x,D=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function R(t,e){return-1!=t.indexOf(e)}function P(t,e){return t<e?-1:t>e?1:0}t:{var L=c.navigator;if(L){var M=L.userAgent;if(M){x=M;break t}}x=""}function j(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function F(t){var e={};for(var n in t)e[n]=t[n];return e}var U="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function V(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i],r)t[n]=r[n];for(var o=0;o<U.length;o++)n=U[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function B(t){return B[" "](t),t}function q(t,e){var n=et;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}B[" "]=l;var H,W=R(x,"Opera"),G=R(x,"Trident")||R(x,"MSIE"),K=R(x,"Edge"),z=K||G,$=R(x,"Gecko")&&!(R(x.toLowerCase(),"webkit")&&!R(x,"Edge"))&&!(R(x,"Trident")||R(x,"MSIE"))&&!R(x,"Edge"),Q=R(x.toLowerCase(),"webkit")&&!R(x,"Edge");function Y(){var t=c.document;return t?t.documentMode:void 0}t:{var X="",J=function(){var t=x;return $?/rv:([^\);]+)(\)|;)/.exec(t):K?/Edge\/([\d\.]+)/.exec(t):G?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):Q?/WebKit\/(\S+)/.exec(t):W?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(J&&(X=J?J[1]:""),G){var Z=Y();if(null!=Z&&Z>parseFloat(X)){H=String(Z);break t}}H=X}var tt,et={};function nt(t){return q(t,function(){for(var e=0,n=D(String(H)).split("."),r=D(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=P(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||P(0==a[2].length,0==s[2].length)||P(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}if(c.document&&G){var rt=Y();tt=rt||(parseInt(H,10)||void 0)}else tt=void 0;var it=tt,ot=!G||9<=Number(it),at=G&&!nt("9"),st=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{c.addEventListener("test",l,e),c.removeEventListener("test",l,e)}catch(n){}return t}();function ut(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function ct(t,e){if(ut.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if($){t:{try{B(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}
1843else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"===typeof t.pointerType?t.pointerType:lt[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}ut.prototype.b=function(){this.defaultPrevented=!0},E(ct,ut);var lt={2:"touch",3:"pen",4:"mouse"};ct.prototype.b=function(){ct.S.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,at)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var ht="closure_listenable_"+(1e6*Math.random()|0),ft=0;function pt(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ca=i,this.key=++ft,this.Y=this.Z=!1}function dt(t){t.Y=!0,t.listener=null,t.proxy=null,t.src=null,t.ca=null}function vt(t){this.src=t,this.a={},this.b=0}function gt(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=S(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(dt(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function mt(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.Y&&o.listener==e&&o.capture==!!n&&o.ca==r)return i}return-1}vt.prototype.add=function(t,e,n,r,i){var o=t.toString();t=this.a[o],t||(t=this.a[o]=[],this.b++);var a=mt(t,e,r,i);return-1<a?(e=t[a],n||(e.Z=!1)):(e=new pt(e,this.src,o,!!r,i),e.Z=n,t.push(e)),e};var yt="closure_lm_"+(1e6*Math.random()|0),bt={};function _t(t,e,n,r,i){if(r&&r.once)return It(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)_t(t,e[o],n,r,i);return null}return n=xt(n),t&&t[ht]?t.va(e,n,p(r)?!!r.capture:!!r,i):wt(t,e,n,!1,r,i)}function wt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=p(i)?!!i.capture:!!i;if(a&&!ot)return null;var s=kt(t);if(s||(t[yt]=s=new vt(t)),n=s.add(e,n,r,a,o),n.proxy)return n;if(r=Et(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)st||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(Ct(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function Et(){var t=Nt,e=ot?function(n){return t.call(e.src,e.listener,n)}:function(n){if(n=t.call(e.src,e.listener,n),!n)return n};return e}function It(t,e,n,r,i){if(Array.isArray(e)){for(var o=0;o<e.length;o++)It(t,e[o],n,r,i);return null}return n=xt(n),t&&t[ht]?t.wa(e,n,p(r)?!!r.capture:!!r,i):wt(t,e,n,!0,r,i)}function Tt(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)Tt(t,e[o],n,r,i);else r=p(r)?!!r.capture:!!r,n=xt(n),t&&t[ht]?(t=t.c,e=String(e).toString(),e in t.a&&(o=t.a[e],n=mt(o,n,r,i),-1<n&&(dt(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=kt(t))&&(e=t.a[e.toString()],t=-1,e&&(t=mt(e,n,r,i)),(n=-1<t?e[t]:null)&&St(n))}function St(t){if("number"!==typeof t&&t&&!t.Y){var e=t.src;if(e&&e[ht])gt(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(Ct(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=kt(e))?(gt(n,t),0==n.b&&(n.src=null,e[yt]=null)):dt(t)}}}function Ct(t){return t in bt?bt[t]:bt[t]="on"+t}function At(t,e){var n=t.listener,r=t.ca||t.src;return t.Z&&St(t),n.call(r,e)}function Nt(t,e){if(t.Y)return!0;if(!ot){if(!e)t:{e=["window","event"];for(var n=c,r=0;r<e.length;r++)if(n=n[e[r]],null==n){e=null;break t}e=n}return e=new ct(e,this),At(t,e)}return At(t,new ct(e,this))}function kt(t){return t=t[yt],t instanceof vt?t:null}var Ot="__closure_events_fn_"+(1e9*Math.random()>>>0);function xt(t){return"function"==h(t)?t:(t[Ot]||(t[Ot]=function(e){return t.handleEvent(e)}),t[Ot])}function Dt(){I.call(this),this.c=new vt(this),this.J=this,this.C=null}function Rt(t,e,n,r){if(e=t.c.a[String(e)],!e)return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.Y&&a.capture==n){var s=a.listener,u=a.ca||a.src;a.Z&&gt(t.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}E(Dt,I),Dt.prototype[ht]=!0,a=Dt.prototype,a.addEventListener=function(t,e,n,r){_t(this,t,e,n,r)},a.removeEventListener=function(t,e,n,r){Tt(this,t,e,n,r)},a.dispatchEvent=function(t){var e,n=this.C;if(n)for(e=[];n;n=n.C)e.push(n);n=this.J;var r=t.type||t;if("string"===typeof t)t=new ut(t,n);else if(t instanceof ut)t.target=t.target||n;else{var i=t;t=new ut(r,n),V(t,i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.a=e[o];i=Rt(a,r,!0,t)&&i}if(a=t.a=n,i=Rt(a,r,!0,t)&&i,i=Rt(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)a=t.a=e[o],i=Rt(a,r,!1,t)&&i;return i},a.G=function(){if(Dt.S.G.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)dt(n[r]);delete e.a[t],e.b--}}this.C=null},a.va=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},a.wa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var Pt=c.JSON.stringify;function Lt(){this.b=this.a=null}var Mt,jt=new(function(){function t(t,e,n){this.f=n,this.c=t,this.g=e,this.b=0,this.a=null}return t.prototype.get=function(){var t;return 0<this.b?(this.b--,t=this.a,this.a=t.next,t.next=null):t=this.c(),t},t}())(function(){return new Ut},function(t){t.reset()},100);function Ft(){var t=Wt,e=null;
1843return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function Ut(){this.next=this.b=this.a=null}function Vt(t){c.setTimeout(function(){throw t},0)}function Bt(t,e){Mt||qt(),Ht||(Mt(),Ht=!0),Wt.add(t,e)}function qt(){var t=c.Promise.resolve(void 0);Mt=function(){t.then(Gt)}}Lt.prototype.add=function(t,e){var n=jt.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},Ut.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},Ut.prototype.reset=function(){this.next=this.b=this.a=null};var Ht=!1,Wt=new Lt;function Gt(){for(var t;t=Ft();){try{t.a.call(t.b)}catch(n){Vt(n)}var e=jt;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}Ht=!1}function Kt(t,e){Dt.call(this),this.b=t||1,this.a=e||c,this.f=b(this.Ya,this),this.g=w()}function zt(t){t.aa=!1,t.M&&(t.a.clearTimeout(t.M),t.M=null)}function $t(t,e,n){if("function"==h(t))n&&(t=b(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=b(t.handleEvent,t)}return 2147483647<Number(e)?-1:c.setTimeout(t,e||0)}function Qt(t){t.a=$t(function(){t.a=null,t.c&&(t.c=!1,Qt(t))},t.h);var e=t.b;t.b=null,t.g.apply(null,e)}E(Kt,Dt),a=Kt.prototype,a.aa=!1,a.M=null,a.Ya=function(){if(this.aa){var t=w()-this.g;0<t&&t<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-t):(this.M&&(this.a.clearTimeout(this.M),this.M=null),this.dispatchEvent("tick"),this.aa&&(zt(this),this.start()))}},a.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=w())},a.G=function(){Kt.S.G.call(this),zt(this),delete this.a};var Yt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.g=null!=r?e.bind(r):e,i.h=n,i.b=null,i.c=!1,i.a=null,i}return i(e,t),e.prototype.f=function(t){this.b=arguments,this.a?this.c=!0:Qt(this)},e.prototype.G=function(){t.prototype.G.call(this),this.a&&(c.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},e}(I);function Xt(t){I.call(this),this.b=t,this.a={}}E(Xt,I);var Jt=[];function Zt(t,e,n,r){Array.isArray(n)||(n&&(Jt[0]=n.toString()),n=Jt);for(var i=0;i<n.length;i++){var o=_t(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function te(t){j(t.a,function(t,e){this.a.hasOwnProperty(e)&&St(t)},t),t.a={}}function ee(){this.a=!0}function ne(t,e,n,r,i,o){t.info(function(){if(t.a)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var h=l.split("_");a=2<=h.length&&"type"==h[1]?a+(l+"=")+c+"&":a+(l+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+n+"\n"+a})}function re(t,e,n,r,i,o,a){t.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+o+" "+a})}function ie(t,e,n,r){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+ae(t,n)+(r?" "+r:"")})}function oe(t,e){t.info(function(){return"TIMEOUT: "+e})}function ae(t,e){if(!t.a)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;a<i.length;a++)i[a]=""}}}return Pt(n)}catch(s){return e}}Xt.prototype.G=function(){Xt.S.G.call(this),te(this)},Xt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},ee.prototype.info=function(){};var se=null;function ue(){return se=se||new Dt}function ce(t){ut.call(this,"serverreachability",t)}function le(t){var e=ue();e.dispatchEvent(new ce(e,t))}function he(t){ut.call(this,"statevent",t)}function fe(t){var e=ue();e.dispatchEvent(new he(e,t))}function pe(t){ut.call(this,"timingevent",t)}function de(t,e){if("function"!=h(t))throw Error("Fn must not be null and must be a function");return c.setTimeout(function(){t()},e)}E(ce,ut),E(he,ut),E(pe,ut);var ve={NO_ERROR:0,Za:1,gb:2,fb:3,bb:4,eb:5,hb:6,Da:7,TIMEOUT:8,kb:9},ge={ab:"complete",ob:"success",Ea:"error",Da:"abort",mb:"ready",nb:"readystatechange",TIMEOUT:"timeout",ib:"incrementaldata",lb:"progress",cb:"downloadprogress",pb:"uploadprogress"};function me(){}function ye(t){var e;return(e=t.a)||(e=t.a={}),e}function be(){}me.prototype.a=null;var _e,we={OPEN:"a",$a:"b",Ea:"c",jb:"d"};function Ee(){ut.call(this,"d")}function Ie(){ut.call(this,"c")}function Te(){}function Se(t,e,n,r){this.g=t,this.c=e,this.f=n,this.T=r||1,this.J=new Xt(this),this.P=Ce,t=z?125:void 0,this.R=new Kt(t),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.U=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.W=this.C=this.V=this.I=!1}E(Ee,ut),E(Ie,ut),E(Te,me),_e=new Te;var Ce=45e3,Ae={},Ne={};function ke(t,e,n){t.H=1,t.i=Ze(ze(e)),t.j=n,t.I=!0,Oe(t,null)}function Oe(t,e){t.u=w(),Re(t),t.l=ze(t.i);var n=t.l,r=t.T;Array.isArray(r)||(r=[String(r)]),vn(n.b,"t",r),t.D=0,t.a=dr(t.g,t.g.C?e:null),0<t.O&&(t.F=new Yt(b(t.Ca,t,t.a),t.O)),Zt(t.J,t.a,"readystatechange",t.Wa),e=t.B?F(t.B):{},t.j?(t.m||(t.m="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.ba(t.l,t.m,t.j,e)):(t.m="GET",t.a.ba(t.l,t.m,null,e)),le(1),ne(t.c,t.m,t.l,t.f,t.T,t.j)}function xe(t,e,n){for(var r=!0;!t.A&&t.D<n.length;){var i=De(t,n);if(i==Ne){4==e&&(t.h=4,fe(14),r=!1),ie(t.c,t.f,null,"[Incomplete Response]");break}if(i==Ae){t.h=4,fe(15),ie(t.c,t.f,n,"[Invalid Chunk]"),r=!1;break}ie(t.c,t.f,i,null),Fe(t,i)}4==e&&0==n.length&&(t.h=1,fe(16),r=!1),t.b=t.b&&r,r?0<n.length&&!t.W&&(t.W=!0,e=t.g,e.a==t&&e.V&&!e.F&&(e.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),ar(e),e.F=!0)):(ie(t.c,t.f,n,"[Invalid Chunked Response]"),je(t),Me(t))}function De(t,e){var n=t.D,r=e.indexOf("\n",n);return-1==r?Ne:(n=Number(e.substring(n,r)),isNaN(n)?Ae:(r+=1,r+n>e.length?Ne:(e=e.substr(r,n),t.D=r+n,e)))}
vendor: 18,470 bytes, line 1843
1843function Re(t){t.U=w()+t.P,Pe(t,t.P)}function Pe(t,e){if(null!=t.o)throw Error("WatchDog timer not null");t.o=de(b(t.Ua,t),e)}function Le(t){t.o&&(c.clearTimeout(t.o),t.o=null)}function Me(t){0==t.g.v||t.A||cr(t.g,t)}function je(t){Le(t);var e=t.F;e&&"function"==typeof e.ja&&e.ja(),t.F=null,zt(t.R),te(t.J),t.a&&(e=t.a,t.a=null,e.abort(),e.ja())}function Fe(t,e){try{var n=t.g;if(0!=n.v&&(n.a==t||In(n.b,t)))if(n.I=t.N,!t.C&&In(n.b,t)&&3==n.v){try{var r=n.ka.a.parse(e)}catch(g){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.j){if(n.a){if(!(n.a.u+3e3<t.u))break t;ur(n),Yn(n)}or(n),fe(18)}}else n.oa=i[1],0<n.oa-n.P&&37500>i[2]&&n.H&&0==n.o&&!n.m&&(n.m=de(b(n.Ra,n),6e3));if(1>=En(n.b)&&n.ea){try{n.ea()}catch(g){}n.ea=void 0}}else hr(n,11)}else if((t.C||n.a==t)&&ur(n),!O(e))for(e=r=n.ka.a.parse(e),r=0;r<e.length;r++)if(i=e[r],n.P=i[0],i=i[1],2==n.v)if("c"==i[0]){n.J=i[1],n.ga=i[2];var o=i[3];null!=o&&(n.ha=o,n.c.info("VER="+n.ha));var a=i[4];null!=a&&(n.pa=a,n.c.info("SVER="+n.pa));var s=i[5];if(null!=s&&"number"===typeof s&&0<s){var u=1.5*s;n.D=u,n.c.info("backChannelRequestTimeoutMs_="+u)}u=n;var c=t.a;if(c){var l=c.a?c.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var h=u.b;!h.a&&(R(l,"spdy")||R(l,"quic")||R(l,"h2"))&&(h.f=h.g,h.a=new Set,h.b&&(Tn(h,h.b),h.b=null))}if(u.A){var f=c.a?c.a.getResponseHeader("X-HTTP-Session-Id"):null;f&&(u.na=f,Je(u.B,u.A,f))}}n.v=3,n.f&&n.f.ta(),n.V&&(n.N=w()-t.u,n.c.info("Handshake RTT: "+n.N+"ms")),u=n;var p=t;if(u.la=pr(u,u.C?u.ga:null,u.fa),p.C){Sn(u.b,p);var d=p,v=u.D;v&&d.setTimeout(v),d.o&&(Le(d),Re(d)),u.a=p}else ir(u);0<n.g.length&&Zn(n)}else"stop"!=i[0]&&"close"!=i[0]||hr(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?hr(n,7):Qn(n):"noop"!=i[0]&&n.f&&n.f.sa(i),n.o=0);le(4)}catch(g){}}function Ue(t){if(t.K&&"function"==typeof t.K)return t.K();if("string"===typeof t)return t.split("");if(f(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}function Ve(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"===typeof t)C(t,e,void 0);else{if(t.L&&"function"==typeof t.L)var n=t.L();else if(t.K&&"function"==typeof t.K)n=void 0;else if(f(t)||"string"===typeof t){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;r=Ue(t),i=r.length;for(var o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}}function Be(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Be)for(n=t.L(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function qe(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];He(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)r=t.a[e],He(i,r)||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function He(t,e){return Object.prototype.hasOwnProperty.call(t,e)}a=Se.prototype,a.setTimeout=function(t){this.P=t},a.Wa=function(t){t=t.target;var e=this.F;e&&3==Wn(t)?e.f():this.Ca(t)},a.Ca=function(t){try{if(t==this.a)t:{var e=Wn(this.a),n=this.a.ua(),r=this.a.X();if(!(3>e||3==e&&!z&&!this.a.$())){this.A||4!=e||7==n||le(8==n||0>=r?3:2),Le(this);var i=this.a.X();this.N=i;var o=this.a.$();if(this.b=200==i,re(this.c,this.m,this.l,this.f,this.T,e,i),this.b){if(this.V&&!this.C){e:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!O(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.h=3,fe(12),je(this),Me(this);break t}ie(this.c,this.f,u,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Fe(this,u)}this.I?(xe(this,e,o),z&&this.b&&3==e&&(Zt(this.J,this.R,"tick",this.Va),this.R.start())):(ie(this.c,this.f,o,null),Fe(this,o)),4==e&&je(this),this.b&&!this.A&&(4==e?cr(this.g,this):(this.b=!1,Re(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,fe(12)):(this.h=0,fe(13)),je(this),Me(this)}}}catch(c){}},a.Va=function(){if(this.a){var t=Wn(this.a),e=this.a.$();this.D<e.length&&(Le(this),xe(this,t,e),this.b&&4!=t&&Re(this))}},a.cancel=function(){this.A=!0,je(this)},a.Ua=function(){this.o=null;var t=w();0<=t-this.U?(oe(this.c,this.l),2!=this.H&&(le(3),fe(17)),je(this),this.h=2,Me(this)):Pe(this,this.U-t)},a=Be.prototype,a.K=function(){qe(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},a.L=function(){return qe(this),this.a.concat()},a.get=function(t,e){return He(this.b,t)?this.b[t]:e},a.set=function(t,e){He(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},a.forEach=function(t,e){for(var n=this.L(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var We=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ge(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function Ke(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Ke){this.a=void 0!==e?e:t.a,$e(this,t.f),this.j=t.j,Qe(this,t.c),Ye(this,t.h),this.g=t.g,e=t.b;var n=new hn;n.c=e.c,e.a&&(n.a=new Be(e.a),n.b=e.b),Xe(this,n),this.i=t.i}else t&&(n=String(t).match(We))?(this.a=!!e,$e(this,n[1]||"",!0),this.j=nn(n[2]||""),Qe(this,n[3]||"",!0),Ye(this,n[4]),this.g=nn(n[5]||"",!0),Xe(this,n[6]||"",!0),this.i=nn(n[7]||"")):(this.a=!!e,this.b=new hn(null,this.a))}function ze(t){return new Ke(t)}function $e(t,e,n){t.f=n?nn(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Qe(t,e,n){t.c=n?nn(e,!0):e}function Ye(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Xe(t,e,n){e instanceof hn?(t.b=e,mn(t.b,t.a)):(n||(e=rn(e,cn)),t.b=new hn(e,t.a))}function Je(t,e,n){t.b.set(e,n)}function Ze(t){return Je(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36)),t}function tn(t){return t instanceof Ke?ze(t):new Ke(t,void 0)}function en(t,e,n,r){var i=new Ke(null,void 0);return t&&$e(i,t),e&&Qe(i,e),n&&Ye(i,n),r&&(i.g=r),i}function nn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function rn(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,on),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function on(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}Ke.prototype.toString=function(){var t=[],e=this.f;e&&t.push(rn(e,an,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(rn(e,an,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.h,null!=n&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(rn(n,"/"==n.charAt(0)?un:sn,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",rn(n,ln)),t.join("")};var an=/[#\/\?@]/g,sn=/[#\?:]/g,un=/[#\?]/g,cn=/[#\?@]/g,ln=/#/g;function hn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function fn(t){t.a||(t.a=new Be,t.b=0,t.c&&Ge(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function pn(t,e){fn(t),e=gn(t,e),He(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,t=t.a,He(t.b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&qe(t)))}function dn(t,e){return fn(t),e=gn(t,e),He(t.a.b,e)}function vn(t,e,n){pn(t,e),0<n.length&&(t.c=null,t.a.set(gn(t,e),k(n)),t.b+=n.length)}function gn(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function mn(t,e){e&&!t.f&&(fn(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(pn(this,e),vn(this,n,t))},t)),t.f=e}function yn(t,e){this.b=t,this.a=e}function bn(t){this.g=t||_n,c.PerformanceNavigationTiming?(t=c.performance.getEntriesByType("navigation"),t=0<t.length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol)):t=!!(c.ia&&c.ia.ya&&c.ia.ya()&&c.ia.ya().qb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}a=hn.prototype,a.add=function(t,e){fn(this),this.c=null,t=gn(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},a.forEach=function(t,e){fn(this),this.a.forEach(function(n,r){C(n,function(n){t.call(e,n,r,this)},this)},this)},a.L=function(){fn(this);for(var t=this.a.K(),e=this.a.L(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},a.K=function(t){fn(this);var e=[];if("string"===typeof t)dn(this,t)&&(e=N(e,this.a.get(gn(this,t))));else{t=this.a.K();for(var n=0;n<t.length;n++)e=N(e,t[n])}return e},a.set=function(t,e){return fn(this),this.c=null,t=gn(this,t),dn(this,t)&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},a.get=function(t,e){return t?(t=this.K(t),0<t.length?String(t[0]):e):e},a.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.L(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.K(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")};var _n=10;function wn(t){return!!t.b||!!t.a&&t.a.size>=t.f}function En(t){return t.b?1:t.a?t.a.size:0}function In(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function Tn(t,e){t.a?t.a.add(e):t.b=e}function Sn(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function Cn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.s);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var i=o(t.a.values()),a=i.next();!a.done;a=i.next()){var s=a.value;r=r.concat(s.s)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}return k(t.c)}function An(){}function Nn(){this.a=new An}function kn(t,e,n){var r=n||"";try{Ve(t,function(t,n){var i=t;p(t)&&(i=Pt(t)),e.push(r+n+"="+encodeURIComponent(i))})}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function On(t,e){var n=new ee;if(c.Image){var r=new Image;r.onload=_(xn,n,r,"TestLoadImage: loaded",!0,e),r.onerror=_(xn,n,r,"TestLoadImage: error",!1,e),r.onabort=_(xn,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=_(xn,n,r,"TestLoadImage: timeout",!1,e),c.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=t}else e(!1)}function xn(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}bn.prototype.cancel=function(){var t,e;if(this.c=Cn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=o(this.a.values()),r=n.next();!r.done;r=n.next()){var i=r.value;i.cancel()}}catch(a){t={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},An.prototype.stringify=function(t){return c.JSON.stringify(t,void 0)},An.prototype.parse=function(t){return c.JSON.parse(t,void 0)};var Dn=c.JSON.parse;function Rn(t){Dt.call(this),this.headers=new Be,this.H=t||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=Pn,this.D=this.F=!1}E(Rn,Dt);var Pn="",Ln=/^https?$/i,Mn=["POST","PUT"];function jn(t){return G&&nt(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}function Fn(t){return"content-type"==t.toLowerCase()}function Un(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,Vn(t),qn(t)}function Vn(t){t.u||(t.u=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Bn(t){if(t.b&&"undefined"!=typeof u&&(!t.s[1]||4!=Wn(t)||2!=t.X()))if(t.l&&4==Wn(t))$t(t.za,0,t);else if(t.dispatchEvent("readystatechange"),4==Wn(t)){t.b=!1;try{var e,n=t.X();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.B).match(We)[1]||null;if(!o&&c.self&&c.self.location){var a=c.self.location.protocol;o=a.substr(0,a.length-1)}i=!Ln.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var s=2<Wn(t)?t.a.statusText:""}catch(l){s=""}t.f=s+" ["+t.X()+"]",Vn(t)}}finally{qn(t)}}}function qn(t,e){if(t.a){Hn(t);var n=t.a,r=t.s[0]?l:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function Hn(t){t.a&&t.D&&(t.a.ontimeout=null),t.m&&(c.clearTimeout(t.m),t.m=null)}function Wn(t){return t.a?t.a.readyState:0}function Gn(t){var e="";return j(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}function Kn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=Gn(n),"string"===typeof t?null!=n&&encodeURIComponent(String(n)):Je(t,e,n))}function zn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function $n(t){this.pa=0,this.g=[],this.c=new ee,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.W=this.i=this.O=this.l=null,this.La=this.R=0,this.Ia=zn("failFast",!1,t),this.H=this.m=this.j=this.h=this.f=null,this.T=!0,this.I=this.oa=this.P=-1,this.U=this.o=this.u=0,this.Fa=zn("baseRetryDelayMs",5e3,t),this.Ma=zn("retryDelaySeedMs",1e4,t),this.Ja=zn("forwardChannelMaxRetries",2,t),this.ma=zn("forwardChannelRequestTimeoutMs",2e4,t),this.Ka=t&&t.g||void 0,this.D=void 0,this.C=t&&t.supportsCrossDomainXhr||!1,this.J="",this.b=new bn(t&&t.concurrentRequestLimit),this.ka=new Nn,this.da=t&&t.fastHandshake||!1,this.Ga=t&&t.b||!1,t&&t.f&&(this.c.a=!1),t&&t.forceLongPolling&&(this.T=!1),this.V=!this.da&&this.T&&t&&t.c||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null}function Qn(t){if(Xn(t),3==t.v){var e=t.R++,n=ze(t.B);Je(n,"SID",t.J),Je(n,"RID",e),Je(n,"TYPE","terminate"),nr(t,n),e=new Se(t,t.c,e,void 0),e.H=2,e.i=Ze(ze(n)),n=!1,c.navigator&&c.navigator.sendBeacon&&(n=c.navigator.sendBeacon(e.i.toString(),"")),!n&&c.Image&&((new Image).src=e.i,n=!0),n||(e.a=dr(e.g,null),e.a.ba(e.i)),e.u=w(),Re(e)}fr(t)}function Yn(t){t.a&&(ar(t),t.a.cancel(),t.a=null)}function Xn(t){Yn(t),t.j&&(c.clearTimeout(t.j),t.j=null),ur(t),t.b.cancel(),t.h&&("number"===typeof t.h&&c.clearTimeout(t.h),t.h=null)}function Jn(t,e){t.g.push(new yn(t.La++,e)),3==t.v&&Zn(t)}function Zn(t){wn(t.b)||t.h||(t.h=!0,Bt(t.Ba,t),t.u=0)}function tr(t,e){return!(En(t.b)>=t.b.f-(t.h?1:0))&&(t.h?(t.g=e.s.concat(t.g),!0):!(1==t.v||2==t.v||t.u>=(t.Ia?0:t.Ja))&&(t.h=de(b(t.Ba,t,e),lr(t,t.u)),t.u++,!0))}function er(t,e){var n;n=e?e.f:t.R++;var r=ze(t.B);Je(r,"SID",t.J),Je(r,"RID",n),Je(r,"AID",t.P),nr(t,r),t.i&&t.l&&Kn(r,t.i,t.l),n=new Se(t,t.c,n,t.u+1),null===t.i&&(n.B=t.l),e&&(t.g=e.s.concat(t.g)),e=rr(t,n,1e3),n.setTimeout(Math.round(.5*t.ma)+Math.round(.5*t.ma*Math.random())),Tn(t.b,n),ke(n,r,e)}function nr(t,e){t.f&&Ve({},function(t,n){Je(e,n,t)})}function rr(t,e,n){n=Math.min(t.g.length,n);var r=t.f?b(t.f.Ha,t.f,t):null;t:for(var i=t.g,o=-1;;){var a=["count="+n];-1==o?0<n?(o=i[0].b,a.push("ofs="+o)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var c=i[u].b,l=i[u].a;if(c-=o,0>c)o=Math.max(0,i[u].b-100),s=!1;else try{kn(l,a,"req"+c+"_")}catch(h){r&&r(l)}}if(s){r=a.join("&");break t}}return t=t.g.splice(0,n),e.s=t,r}function ir(t){t.a||t.j||(t.U=1,Bt(t.Aa,t),t.o=0)}function or(t){return!(t.a||t.j||3<=t.o)&&(t.U++,t.j=de(b(t.Aa,t),lr(t,t.o)),t.o++,!0)}function ar(t){null!=t.s&&(c.clearTimeout(t.s),t.s=null)}function sr(t){t.a=new Se(t,t.c,"rpc",t.U),null===t.i&&(t.a.B=t.l),t.a.O=0;var e=ze(t.la);Je(e,"RID","rpc"),Je(e,"SID",t.J),Je(e,"CI",t.H?"0":"1"),Je(e,"AID",t.P),nr(t,e),Je(e,"TYPE","xmlhttp"),t.i&&t.l&&Kn(e,t.i,t.l),t.D&&t.a.setTimeout(t.D);var n=t.a;t=t.ga,n.H=1,n.i=Ze(ze(e)),n.j=null,n.I=!0,Oe(n,t)}function ur(t){null!=t.m&&(c.clearTimeout(t.m),t.m=null)}function cr(t,e){var n=null;if(t.a==e){ur(t),ar(t),t.a=null;var r=2}else{if(!In(t.b,e))return;n=e.s,Sn(t.b,e),r=1}if(t.I=e.N,0!=t.v)if(e.b)if(1==r){n=e.j?e.j.length:0,e=w()-e.u;var i=t.u;r=ue(),r.dispatchEvent(new pe(r,n,e,i)),Zn(t)}else ir(t);else if(i=e.h,3==i||0==i&&0<t.I||!(1==r&&tr(t,e)||2==r&&or(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:hr(t,5);break;case 4:hr(t,10);break;case 3:hr(t,6);break;default:hr(t,2)}}function lr(t,e){var n=t.Fa+Math.floor(Math.random()*t.Ma);return t.f||(n*=2),n*e}function hr(t,e){if(t.c.info("Error code "+e),2==e){var n=null;t.f&&(n=null);var r=b(t.Xa,t);n||(n=new Ke("//www.google.com/images/cleardot.gif"),c.location&&"http"==c.location.protocol||$e(n,"https"),Ze(n)),On(n.toString(),r)}else fe(2);t.v=0,t.f&&t.f.ra(e),fr(t),Xn(t)}function fr(t){t.v=0,t.I=-1,t.f&&(0==Cn(t.b).length&&0==t.g.length||(t.b.c.length=0,k(t.g),t.g.length=0),t.f.qa())}function pr(t,e,n){var r=tn(n);if(""!=r.c)e&&Qe(r,e+"."+r.c),Ye(r,r.h);else{var i=c.location;r=en(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.W&&j(t.W,function(t,e){Je(r,e,t)}),e=t.A,n=t.na,e&&n&&Je(r,e,n),Je(r,"VER",t.ha),nr(t,r),r}function dr(t,e){if(e&&!t.C)throw Error("Can't create secondary domain capable XhrIo object.");return e=new Rn(t.Ka),e.F=t.C,e}function vr(){}function gr(){if(G&&!(10<=Number(it)))throw Error("Environmental error: no available transport.")}function mr(t,e){Dt.call(this),this.a=new $n(e),this.l=t,this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.l=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.a&&(t?t["X-WebChannel-Client-Profile"]=e.a:t={"X-WebChannel-Client-Profile":e.a}),this.a.O=t,(t=e&&e.httpHeadersOverwriteParam)&&!O(t)&&(this.a.i=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!O(e)&&(this.a.A=e,t=this.b,null!==t&&e in t&&(t=this.b,e in t&&delete t[e])),this.f=new _r(this)}function yr(t){Ee.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.c=t)?(t=this.c,this.data=null!==e&&t in e?e[t]:void 0):this.data=e}else this.data=t}function br(){Ie.call(this),this.status=1}function _r(t){this.a=t}a=Rn.prototype,a.ba=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+t);e=e?e.toUpperCase():"GET",this.B=t,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?ye(this.H):ye(_e),this.a.onreadystatechange=b(this.za,this);try{this.A=!0,this.a.open(e,String(t),!0),this.A=!1}catch(o){return void Un(this,o)}t=n||"";var i=new Be(this.headers);r&&Ve(r,function(t,e){i.set(e,t)}),r=A(i.L()),n=c.FormData&&t instanceof c.FormData,!(0<=S(Mn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
1843charset=utf-8"),i.forEach(function(t,e){this.a.setRequestHeader(e,t)},this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Hn(this),0<this.o&&((this.D=jn(this.a))?(this.a.timeout=this.o,this.a.ontimeout=b(this.xa,this)):this.m=$t(this.xa,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){Un(this,o)}},a.xa=function(){"undefined"!=typeof u&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},a.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),qn(this))},a.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),qn(this,!0)),Rn.S.G.call(this)},a.za=function(){this.j||(this.A||this.l||this.g?Bn(this):this.Ta())},a.Ta=function(){Bn(this)},a.X=function(){try{return 2<Wn(this)?this.a.status:-1}catch(t){return-1}},a.$=function(){try{return this.a?this.a.responseText:""}catch(t){return""}},a.Na=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Dn(e)}},a.ua=function(){return this.h},a.Qa=function(){return"string"===typeof this.f?this.f:String(this.f)},a=$n.prototype,a.ha=8,a.v=1,a.Ba=function(t){if(this.h)if(this.h=null,1==this.v){if(!t){this.R=Math.floor(1e5*Math.random()),t=this.R++;var e,n=new Se(this,this.c,t,void 0),r=this.l;if(this.O&&(r?(r=F(r),V(r,this.O)):r=this.O),null===this.i&&(n.B=r),this.da)t:{for(var i=e=0;i<this.g.length;i++){var o=this.g[i];if(o="__data__"in o.a&&(o=o.a.__data__,"string"===typeof o)?o.length:void 0,void 0===o)break;if(e+=o,4096<e){e=i;break t}if(4096===e||i===this.g.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=rr(this,n,e),i=ze(this.B),Je(i,"RID",t),Je(i,"CVER",22),this.A&&Je(i,"X-HTTP-Session-Id",this.A),nr(this,i),this.i&&r&&Kn(i,this.i,r),Tn(this.b,n),this.Ga&&Je(i,"TYPE","init"),this.da?(Je(i,"$req",e),Je(i,"SID","null"),n.V=!0,ke(n,i,null)):ke(n,i,e),this.v=2}}else 3==this.v&&(t?er(this,t):0==this.g.length||wn(this.b)||er(this))},a.Aa=function(){if(this.j=null,sr(this),this.V&&!(this.F||null==this.a||0>=this.N)){var t=2*this.N;this.c.info("BP detection timer enabled: "+t),this.s=de(b(this.Sa,this),t)}},a.Sa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,Yn(this),sr(this))},a.Ra=function(){null!=this.m&&(this.m=null,Yn(this),or(this),fe(19))},a.Xa=function(t){t?(this.c.info("Successfully pinged google.com"),fe(2)):(this.c.info("Failed to ping google.com"),fe(1))},a=vr.prototype,a.ta=function(){},a.sa=function(){},a.ra=function(){},a.qa=function(){},a.Ha=function(){},gr.prototype.a=function(t,e){return new mr(t,e)},E(mr,Dt),a=mr.prototype,a.addEventListener=function(t,e,n,r){mr.S.addEventListener.call(this,t,e,n,r)},a.removeEventListener=function(t,e,n,r){mr.S.removeEventListener.call(this,t,e,n,r)},a.Oa=function(){this.a.f=this.f,this.h&&(this.a.C=!0);var t=this.a,e=this.l,n=this.b||void 0;fe(0),t.fa=e,t.W=n||{},t.H=t.T,t.B=pr(t,null,t.fa),Zn(t)},a.close=function(){Qn(this.a)},a.Pa=function(t){if("string"===typeof t){var e={};e.__data__=t,Jn(this.a,e)}else this.g?(e={},e.__data__=Pt(t),Jn(this.a,e)):Jn(this.a,t)},a.G=function(){this.a.f=null,delete this.f,Qn(this.a),delete this.a,mr.S.G.call(this)},E(yr,Ee),E(br,Ie),E(_r,vr),_r.prototype.ta=function(){this.a.dispatchEvent("a")},_r.prototype.sa=function(t){this.a.dispatchEvent(new yr(t))},_r.prototype.ra=function(t){this.a.dispatchEvent(new br(t))},_r.prototype.qa=function(){this.a.dispatchEvent("b")},gr.prototype.createWebChannel=gr.prototype.a,mr.prototype.send=mr.prototype.Pa,mr.prototype.open=mr.prototype.Oa,mr.prototype.close=mr.prototype.close,ve.NO_ERROR=0,ve.TIMEOUT=8,ve.HTTP_ERROR=6,ge.COMPLETE="complete",be.EventType=we,we.OPEN="a",we.CLOSE="b",we.ERROR="c",we.MESSAGE="d",Dt.prototype.listen=Dt.prototype.va,Rn.prototype.listenOnce=Rn.prototype.wa,Rn.prototype.getLastError=Rn.prototype.Qa,Rn.prototype.getLastErrorCode=Rn.prototype.ua,Rn.prototype.getStatus=Rn.prototype.X,Rn.prototype.getResponseJson=Rn.prototype.Na,Rn.prototype.getResponseText=Rn.prototype.$,Rn.prototype.send=Rn.prototype.ba;var wr=function(){return new gr},Er=ve,Ir=ge,Tr=be,Sr=Rn,Cr={createWebChannelTransport:wr,ErrorCode:Er,EventType:Ir,WebChannel:Tr,XhrIo:Sr};e["default"]=Cr}.call(this,n("c8ba"))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c970:function(t,e,n){var r;(function(){var i=window.CustomEvent;function o(t){while(t&&t!==document.body){var e=window.getComputedStyle(t),n=function(t,n){return!(void 0===e[t]||e[t]===n)};if(e.opacity<1||n("zIndex","auto")||n("transform","none")||n("mixBlendMode","normal")||n("filter","none")||n("perspective","none")||"isolate"===e["isolation"]||"fixed"===e.position||"touch"===e.webkitOverflowScrolling)return!0;t=t.parentElement}return!1}function a(t){while(t){if("dialog"===t.localName)return t;t=t.parentElement}return null}function s(t){t&&t.blur&&t!==document.body&&t.blur()}function u(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1}function c(t){return!(!t||!t.hasAttribute("method"))&&"dialog"===t.getAttribute("method").toLowerCase()}function l(t){if(this.dialog_=t,this.replacedStyleTop_=!1,this.openAsModal_=!1,t.hasAttribute("role")||t.setAttribute("role","dialog"),t.show=this.show.bind(this),t.showModal=this.showModal.bind(this),t.close=this.close.bind(this),"returnValue"in t||(t.returnValue=""),"MutationObserver"in window){var e=new MutationObserver(this.maybeHideModal.bind(this));e.observe(t,{attributes:!0,attributeFilter:["open"]})}else{var n,r=!1,i=function(){r?this.downgradeModal():this.maybeHideModal(),r=!1}.bind(this),o=function(e){if(e.target===t){var o="DOMNodeRemoved";r|=e.type.substr(0,o.length)===o,window.clearTimeout(n),n=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(e){t.addEventListener(e,o)})}Object.defineProperty(t,"open",{set:this.setOpen.bind(this),get:t.hasAttribute.bind(t,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("click",this.backdropClick_.bind(this))}i&&"object"!==typeof i||(i=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");
vendor: 4,202 bytes, line 1843
1843return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail||null),n},i.prototype=window.Event.prototype),l.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&document.body.contains(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),h.dm.removeDialog(this))},setOpen:function(t){t?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropClick_:function(t){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var e=document.createElement("div");this.dialog_.insertBefore(e,this.dialog_.firstChild),e.tabIndex=-1,e.focus(),this.dialog_.removeChild(e)}var n=document.createEvent("MouseEvents");n.initMouseEvent(t.type,t.bubbles,t.cancelable,window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),this.dialog_.dispatchEvent(n),t.stopPropagation()},focus_:function(){var t=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!t&&this.dialog_.tabIndex>=0&&(t=this.dialog_),!t){var e=["button","input","keygen","select","textarea"],n=e.map(function(t){return t+":not([disabled])"});n.push('[tabindex]:not([disabled]):not([tabindex=""])'),t=this.dialog_.querySelector(n.join(", "))}s(document.activeElement),t&&t.focus()},updateZIndex:function(t,e){if(t<e)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=t,this.backdrop_.style.zIndex=e},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!document.body.contains(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!h.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");o(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,h.needsCentering(this.dialog_)?(h.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(t){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==t&&(this.dialog_.returnValue=t);var e=new i("close",{bubbles:!1,cancelable:!1});this.dialog_.dispatchEvent(e)}};var h={reposition:function(t){var e=document.body.scrollTop||document.documentElement.scrollTop,n=e+(window.innerHeight-t.offsetHeight)/2;t.style.top=Math.max(e,n)+"px"},isInlinePositionSetByStylesheet:function(t){for(var e=0;e<document.styleSheets.length;++e){var n=document.styleSheets[e],r=null;try{r=n.cssRules}catch(l){}if(r)for(var i=0;i<r.length;++i){var o=r[i],a=null;try{a=document.querySelectorAll(o.selectorText)}catch(l){}if(a&&u(a,t)){var s=o.style.getPropertyValue("top"),c=o.style.getPropertyValue("bottom");if(s&&"auto"!==s||c&&"auto"!==c)return!0}}}return!1},needsCentering:function(t){var e=window.getComputedStyle(t);return"absolute"===e.position&&(!("auto"!==t.style.top&&""!==t.style.top||"auto"!==t.style.bottom&&""!==t.style.bottom)&&!h.isInlinePositionSetByStylesheet(t))},forceRegisterDialog:function(t){if((window.HTMLDialogElement||t.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",t),"dialog"!==t.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new l(t)},registerDialog:function(t){t.showModal||h.forceRegisterDialog(t)}
1843,DialogManager:function(){this.pendingDialogStack=[];var t=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(e){this.forwardTab_=void 0,e.stopPropagation(),t([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(e){var n=[];e.forEach(function(t){for(var e,r=0;e=t.removedNodes[r];++r)e instanceof Element&&("dialog"===e.localName&&n.push(e),n=n.concat(e.querySelectorAll("dialog")))}),n.length&&t(n)}))}};if(h.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},h.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},h.DialogManager.prototype.updateStacking=function(){for(var t,e=this.zIndexHigh_,n=0;t=this.pendingDialogStack[n];++n)t.updateZIndex(--e,--e),0===n&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];if(r){var i=r.dialog.parentNode||document.body;i.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},h.DialogManager.prototype.containedByTopDialog_=function(t){while(t=a(t)){for(var e,n=0;e=this.pendingDialogStack[n];++n)if(e.dialog===t)return 0===n;t=t.parentElement}return!1},h.DialogManager.prototype.handleFocus_=function(t){if(!this.containedByTopDialog_(t.target)&&(t.preventDefault(),t.stopPropagation(),s(t.target),void 0!==this.forwardTab_)){var e=this.pendingDialogStack[0],n=e.dialog,r=n.compareDocumentPosition(t.target);return r&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?e.focus_():document.documentElement.focus()),!1}},h.DialogManager.prototype.handleKey_=function(t){if(this.forwardTab_=void 0,27===t.keyCode){t.preventDefault(),t.stopPropagation();var e=new i("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&n.dialog.dispatchEvent(e)&&n.dialog.close()}else 9===t.keyCode&&(this.forwardTab_=!t.shiftKey)},h.DialogManager.prototype.checkDOM_=function(t){var e=this.pendingDialogStack.slice();e.forEach(function(e){-1!==t.indexOf(e.dialog)?e.downgradeModal():e.maybeHideModal()})},h.DialogManager.prototype.pushDialog=function(t){var e=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=e)&&(1===this.pendingDialogStack.unshift(t)&&this.blockDocument(),this.updateStacking(),!0)},h.DialogManager.prototype.removeDialog=function(t){var e=this.pendingDialogStack.indexOf(t);-1!==e&&(this.pendingDialogStack.splice(e,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},h.dm=new h.DialogManager,h.formSubmitter=null,h.useValue=null,void 0===window.HTMLDialogElement){var f=document.createElement("form");if(f.setAttribute("method","dialog"),"dialog"!==f.method){var p=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(p){var d=p.get;p.get=function(){return c(this)?"dialog":d.call(this)};var v=p.set;p.set=function(t){return"string"===typeof t&&"dialog"===t.toLowerCase()?this.setAttribute("method",t):v.call(this,t)},Object.defineProperty(HTMLFormElement.prototype,"method",p)}}document.addEventListener("click",function(t){if(h.formSubmitter=null,h.useValue=null,!t.defaultPrevented){var e=t.target;if(e&&c(e.form)){var n="submit"===e.type&&["button","input"].indexOf(e.localName)>-1;if(!n){if("input"!==e.localName||"image"!==e.type)return;h.useValue=t.offsetX+","+t.offsetY}var r=a(e);r&&(h.formSubmitter=e)}}},!1);var g=HTMLFormElement.prototype.submit,m=function(){if(!c(this))return g.call(this);var t=a(this);t&&t.close()};HTMLFormElement.prototype.submit=m,document.addEventListener("submit",function(t){var e=t.target;if(c(e)){t.preventDefault();var n=a(e);if(n){var r=h.formSubmitter;r&&r.form===e?n.close(h.useValue||r.value):n.close(),h.formSubmitter=null}}},!0)}h["forceRegisterDialog"]=h.forceRegisterDialog,h["registerDialog"]=h.registerDialog,"amd"in n("07d6")?(r=function(){return h}.call(e,n,e,t),void 0===r||(t.exports=r)):"object"===typeof t["exports"]?t["exports"]=h:window["dialogPolyfill"]=h})()},c9b9:function(t,e,n){},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd51:function(t,e,n){"use strict";
1843(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw a(e)},a=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},s=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296===(64512&i)&&r+1<t.length&&56320===(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u=function(t){var e=[],n=0,r=0;while(n<t.length){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){o=t[n++];var a=t[n++],s=t[n++],u=((7&i)<<18|(63&o)<<12|(63&a)<<6|63&s)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(1023&u))}else{o=t[n++],a=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return e.join("")},c={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],a=i+1<t.length,s=a?t[i+1]:0,u=i+2<t.length,c=u?t[i+2]:0,l=o>>2,h=(3&o)<<4|s>>4,f=(15&s)<<2|c>>6,p=63&c;u||(p=64,a||(f=64)),r.push(n[l],n[h],n[f],n[p])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(s(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):u(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],a=i<t.length,s=a?n[t.charAt(i)]:0;++i;var u=i<t.length,c=u?n[t.charAt(i)]:64;++i;var l=i<t.length,h=l?n[t.charAt(i)]:64;if(++i,null==o||null==s||null==c||null==h)throw Error();var f=o<<2|s>>4;if(r.push(f),64!==c){var p=s<<4&240|c>>2;if(r.push(p),64!==h){var d=c<<6&192|h;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},l=function(t){var e=s(t);return c.encodeByteArray(e,!0)},h=function(t){try{return c.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};
1844/**
1845 * @license
1846 * Copyright 2017 Google LLC
1847 *
1848 * Licensed under the Apache License, Version 2.0 (the "License");
1849 * you may not use this file except in compliance with the License.
1850 * You may obtain a copy of the License at
1851 *
1852 *   http://www.apache.org/licenses/LICENSE-2.0
1853 *
1854 * Unless required by applicable law or agreed to in writing, software
1855 * distributed under the License is distributed on an "AS IS" BASIS,
1856 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1857 * See the License for the specific language governing permissions and
1858 * limitations under the License.
1859 */
1860/**
1861 * @license
1862 * Copyright 2017 Google LLC
1863 *
1864 * Licensed under the Apache License, Version 2.0 (the "License");
1865 * you may not use this file except in compliance with the License.
1866 * You may obtain a copy of the License at
1867 *
1868 *   http://www.apache.org/licenses/LICENSE-2.0
1869 *
1870 * Unless required by applicable law or agreed to in writing, softw
1870are
1871 * distributed under the License is distributed on an "AS IS" BASIS,
1872 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1873 * See the License for the specific language governing permissions and
1874 * limitations under the License.
1875 */
1876function f(t){return p(void 0,t)}function p(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:var n=e;return new Date(n.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var r in e)e.hasOwnProperty(r)&&(t[r]=p(t[r],e[r]));return t}
1877/**
1878 * @license
1879 * Copyright 2017 Google LLC
1880 *
1881 * Licensed under the Apache License, Version 2.0 (the "License");
1882 * you may not use this file except in compliance with the License.
1883 * You may obtain a copy of the License at
1884 *
1885 *   http://www.apache.org/licenses/LICENSE-2.0
1886 *
1887 * Unless required by applicable law or agreed to in writing, software
1888 * distributed under the License is distributed on an "AS IS" BASIS,
1889 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1890 * See the License for the specific language governing permissions and
1891 * limitations under the License.
1892 */var d=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"===typeof t&&(e.promise.catch(function(){}),1===t.length?t(n):t(n,r))}},t}();
1893/**
1894 * @license
1895 * Copyright 2017 Google LLC
1896 *
1897 * Licensed under the Apache License, Version 2.0 (the "License");
1898 * you may not use this file except in compliance with the License.
1899 * You may obtain a copy of the License at
1900 *
1901 *   http://www.apache.org/licenses/LICENSE-2.0
1902 *
1903 * Unless required by applicable law or agreed to in writing, software
1904 * distributed under the License is distributed on an "AS IS" BASIS,
1905 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1906 * See the License for the specific language governing permissions and
1907 * limitations under the License.
1908 */function v(){return"undefined"!==typeof navigator&&"string"===typeof navigator["userAgent"]?navigator["userAgent"]:""}function g(){return"undefined"!==typeof window&&!!(window["cordova"]||window["ph
1908onegap"]||window["PhoneGap"])&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(v())}function m(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(e){return!1}}function y(){return"object"===typeof self&&self.self===self}function b(){var t="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof t&&void 0!==t.id}function _(){return"object"===typeof navigator&&"ReactNative"===navigator["product"]}function w(){return v().indexOf("Electron/")>=0}function E(){var t=v();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function I(){return v().indexOf("MSAppHost/")>=0}function T(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN}function S(){return!m()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function C(){return"indexedDB"in self&&null!=indexedDB}function A(){return new Promise(function(t,e){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=window.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||window.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var t;e((null===(t=i.error)||void 0===t?void 0:t.message)||"")}}catch(o){e(o)}})}function N(){return!(!navigator||!navigator.cookieEnabled)}
1909/**
1910 * @license
1911 * Copyright 2017 Google LLC
1912 *
1913 * Licensed under the Apache License, Version 2.0 (the "License");
1914 * you may not use this file except in compliance with the License.
1915 * You may obtain a copy of the License at
1916 *
1917 *   http://www.apache.org/licenses/LICENSE-2.0
1918 *
1919 * Unless required by applicable law or agreed to in writing, software
1920 * distributed under the License is distributed on an "AS IS" BASIS,
1921 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1922 * See the License for the specific language governing permissions and
1923 * limitations under the License.
1924 */var k="FirebaseError",O=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name=k,Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,x.prototype.create),i}return r.__extends(e,t),e}(Error),x=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e[0]||{},i=this.service+"/"+t,o=this.errors[t],a=o?D(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",u=new O(i,s),c=0,l=Object.keys(r);c<l.length;c++){var h=l[c];"_"!==h.slice(-1)&&(h in u&&console.warn('Overwriting FirebaseError base field "'+h+'" can cause unexpected behavior.'),u[h]=r[h])}return u},t}();function D(t,e){return t.replace(R,function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"})}var R=/\{\$([^}]+)}/g;
1925/**
1926 * @license
1927 * Copyright 2017 Google LLC
1928 *
1929 * Licensed under the Apache License, Version 2.0 (the "License");
1930 * you may not use this file except in compliance with the License.
1931 * You may obtain a copy of the License at
1932 *
1933 *   http://www.apache.org/licenses/LICENSE-2.0
1934 *
1935 * Unless required by applicable law or agreed to in writing, software
1936 * distributed under the License is distributed on an "AS IS" BASIS,
1937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1938 * See the License for the specific language governing permissions and
1939 * limitations under the License.
1940 */function P(t){return JSON.parse(t)}function L(t){return JSON.stringify(t)}
1941/**
1942 * @license
1943 * Copyright 2017 Google LLC
1944 *
1945 * Licensed under the Apache License, Version 2.0 (the "License");
1946 * you may not use this file except in compliance with the License.
1947 * You may obtain a copy of the License at
1948 *
1949 *   http://www.apache.org/licenses/LICENSE-2.0
1950 *
1951 * Unless required by applicable law or agreed to in writing, software
1952 * distributed under the License is distributed on an "AS IS" BASIS,
1953 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1954 * See the License for the specific language governing permissions and
1955 * limitations under the License.
1956 */var M=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=P(h(o[0])||""),n=P(h(o[1])||""),i=o[2],r=n["d"]||{},delete n["d"]}catch(a){}return{header:e,claims:n,data:r,signature:i}},j=function(t){var e=M(t).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"===typeof e&&(e.hasOwnProperty("nbf")?r=e["nbf"]:e.hasOwnProperty("iat")&&(r=e["iat"]),i=e.hasOwnProperty("exp")?e["exp"]:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},F=function(t){var e=M(t).claims;return"object"===typeof e&&e.hasOwnProperty("iat")?e["iat"]:null},U=function(t){var e=M(t),n=e.claims;return!!n&&"object"===typeof n&&n.hasOwnProperty("iat")},V=function(t){var e=M(t).claims;return"object"===typeof e&&!0===e["admin"]};
1957/**
1958 * @license
1959 * Copyright 2017 Google LLC
1960 *
1961 * Licensed under the Apache License, Version 2.0 (the "License");
1962 * you may not use this file except in compliance with the License.
1963 * You may obtain a copy of the License at
1964 *
1965 *   http://www.apache.org/licenses/LICENSE-2.0
1966 *
1967 * Unless required by applicable law or agreed to in writing, software
1968 * distributed under the License is distributed on an "AS IS" BASIS,
1969 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1970 * See the License for the specific language governing permissions and
1971 * limitations under the License.
1972 */
1973function B(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function q(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0}function H(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function W(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r}
1974/**
1975 * @license
1976 * Copyright 2017 Google LLC
1977 *
1978 * Licensed under the Apache License, Version 2.0 (the "License");
1979 * you may not use this file except in compliance with the License.
1980 * You may obtain a copy of the License at
1981 *
1982 *   http://www.apache.org/licenses/LICENSE-2.0
1983 *
1984 * Unless required by applicable law or agreed to in writing, software
1985 * distributed under the License is distributed on an "AS IS" BASIS,
1986 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1987 * See the License for the specific language governing permissions and
1988 * limitations under the License.
1989 */function G(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEach(function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n(a,s)}return e.length?"&"+e.join("&"):""}function K(t){var e={},n=t.replace(/^\?/,"").split("&");return n.forEach(function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}}),e}
1990/**
1991 * @license
1992 * Copyright 2017 Google LLC
1993 *
1994 * Licensed under the Apache License, Version 2.0 (the "License");
1995 * you may not use this file except in compliance with the License.
1996 * You may obtain a copy of the License at
1997 *
1998 *   http://www.apache.org/licenses/LICENSE-2.0
1999 *
2000 * Unless required by applicable law or agreed to in writing, software
2001 * distributed under the License is distributed on an "AS IS" BASIS,
2002 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2003 * See the License for the specific language governing permissions and
2004 * limitations under the License.
2005 */var z=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"===typeof t)for(var r=0;r<16;r++)n[r]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(r=0;r<16;r++)n[r]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],h=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^u&(c^l),a=1518500249):(o=u^c^l,a=1859775393):r<60?(o=u&c|l&(u|c),a=2400959708):(o=u^c^l,a=3395469782);i=(s<<5|s>>>27)+o+h+a+n[r]&4294967295;h=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+h&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;while(r<e){if(0===o)while(r<=n)this.compress_(t,r),r+=this.blockSize;if("string"===typeof t){while(r<e)if(i[o]=t.charCodeAt(r),++o,++r,o===this.blockSize){this.compress_(i),o=0;break}}else while(r<e)if(i[o]=t[r],++o,++r,o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}();function $(t,e){var n=new Q(t,e);return n.subscribe.bind(n)}var Q=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
2005ise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(function(){t(n)}).catch(function(t){n.error(t)})}return t.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},t.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},t.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");r=X(t,["next","error","complete"])?t:{next:t,error:e,complete:n},void 0===r.next&&(r.next=J),void 0===r.error&&(r.error=J),void 0===r.complete&&(r.complete=J);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(t){}}),this.observers.push(r),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}})},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(function(){e.observers=void 0,e.onNoObservers=void 0}))},t}();function Y(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then(function(){t.apply(void 0,n)}).catch(function(t){e&&e(t)})}}function X(t,e){if("object"!==typeof t||null===t)return!1;for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i in t&&"function"===typeof t[i])return!0}return!1}function J(){}
2006/**
2007 * @license
2008 * Copyright 2017 Google LLC
2009 *
2010 * Licensed under the Apache License, Version 2.0 (the "License");
2011 * you may not use this file except in compliance with the License.
2012 * You may obtain a copy of the License at
2013 *
2014 *   http://www.apache.org/licenses/LICENSE-2.0
2015 *
2016 * Unless required by applicable law or agreed to in writing, software
2017 * distributed under the License is distributed on an "AS IS" BASIS,
2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2019 * See the License for the specific language governing permissions and
2020 * limitations under the License.
2021 */var Z=function(t,e,n,r){var i;if(r<e?i="at least "+e:r>n&&(i=0===n?"none":"no more than "+n),i){var o=t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".";throw new Error(o)}};function tt(t,e,n){var r="";switch(e){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var i=t+" failed: ";return i+=r+" argument ",i}function et(t,e,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(tt(t,e,r)+"must be a valid firebase namespace.")}function nt(t,e,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(tt(t,e,r)+"must be a valid function.")}function rt(t,e,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(tt(t,e,r)+"must be a valid context object.")}
2022/**
2023 * @license
2024 * Copyright 2017 Google LLC
2025 *
2026 * Licensed under the Apache License, Version 2.0 (the "License");
2027 * you may not use this file except in compliance with the License.
2028 * You may obtain a copy of the License at
2029 *
2030 *   http://www.apache.org/licenses/LICENSE-2.0
2031 *
2032 * Unless required by applicable law or agreed to in writing, software
2033 * distributed under the License is distributed on an "AS IS" BASIS,
2034 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2035 * See the License for the specific language governing permissions and
2036 * limitations under the License.
2037 */var it=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319){var a=i-55296;r++,o(r<t.length,"Surrogate pair missing trail surrogate.");var s=t.charCodeAt(r)-56320;i=65536+(a<<10)+s}i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},ot=function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);
2037r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e},at=1e3,st=2,ut=144e5,ct=.5;function lt(t,e,n){void 0===e&&(e=at),void 0===n&&(n=st);var r=e*Math.pow(n,t),i=Math.round(ct*r*(Math.random()-.5)*2);return Math.min(ut,r+i)}e.CONSTANTS=i,e.Deferred=d,e.ErrorFactory=x,e.FirebaseError=O,e.MAX_VALUE_MILLIS=ut,e.RANDOM_FACTOR=ct,e.Sha1=z,e.areCookiesEnabled=N,e.assert=o,e.assertionError=a,e.async=Y,e.base64=c,e.base64Decode=h,e.base64Encode=l,e.calculateBackoffMillis=lt,e.contains=B,e.createSubscribe=$,e.decode=M,e.deepCopy=f,e.deepExtend=p,e.errorPrefix=tt,e.getUA=v,e.isAdmin=V,e.isBrowser=y,e.isBrowserExtension=b,e.isElectron=w,e.isEmpty=H,e.isIE=E,e.isIndexedDBAvailable=C,e.isMobileCordova=g,e.isNode=m,e.isNodeSdk=T,e.isReactNative=_,e.isSafari=S,e.isUWP=I,e.isValidFormat=U,e.isValidTimestamp=j,e.issuedAtTime=F,e.jsonEval=P,e.map=W,e.querystring=G,e.querystringDecode=K,e.safeGet=q,e.stringLength=ot,e.stringToByteArray=it,e.stringify=L,e.validateArgCount=Z,e.validateCallback=nt,e.validateContextObject=rt,e.validateIndexedDBOpenable=A,e.validateNamespace=et}).call(this,n("c8ba"))},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var r=n("aae3"),i=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dcaa:function(t,e,n){"use strict";n.r(e),n.d(e,"factory",function(){return rt}),n.d(e,"getGlobalVars",function(){return tt}),n.d(e,"registerAnalytics",function(){return st}),n.d(e,"resetGlobalVars",function(){return Z}),n.d(e,"settings",function(){return et});var r,i,o=n("9ab4"),a=n("c23d"),s=n.n(a),u=(n("7d28"),n("abfd")),c=n("cd51"),l=n("4be4"),h="firebase_id",f="origin",p=6e4,d="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",v="https://www.googletagmanager.com/gtag/js";
2038/**
2039 * @license
2040 * Copyright 2019 Google LLC
2041 *
2042 * Licensed under the Apache License, Version 2.0 (the "License");
2043 * you may not use this file except in compliance with the License.
2044 * You may obtain a copy of the License at
2045 *
2046 *   http://www.apache.org/licenses/LICENSE-2.0
2047 *
2048 * Unless required by applicable law or agreed to in writing, software
2049 * distributed under the License is distributed on an "AS IS" BASIS,
2050 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2051 * See the License for the specific language governing permissions and
2052 * limitations under the License.
2053 */
2054function g(t,e,n,i,a){return Object(o["__awaiter"])(this,void 0,void 0,function(){var s,u;return Object(o["__generator"])(this,function(c){switch(c.label){case 0:return a&&a.global?(t(r.EVENT,n,i),[2]):[3,1];case 1:return[4,e];case 2:s=c.sent(),u=Object(o["__assign"])(Object(o["__assign"])({},i),{send_to:s}),t(r.EVENT,n,u),c.label=3;case 3:return[2]}})})}function m(t,e,n,i){return Object(o["__awaiter"])(this,void 0,void 0,function(){var a;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:return i&&i.global?(t(r.SET,{screen_name:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,e];case 2:a=o.sent(),t(r.CONFIG,a,{update:!0,screen_name:n}),o.label=3;case 3:return[2]}})})}function y(t,e,n,i){return Object(o["__awaiter"])(this,void 0,void 0,function(){var a;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:return i&&i.global?(t(r.SET,{user_id:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,e];case 2:a=o.sent(),t(r.CONFIG,a,{update:!0,user_id:n}),o.label=3;case 3:return[2]}})})}function b(t,e,n,i){return Object(o["__awaiter"])(this,void 0,void 0,function(){var a,s,u,c,l;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:if(!i||!i.global)return[3,1];for(a={},s=0,u=Object.keys(n);s<u.length;s++)c=u[s],a["user_properties."+c]=n[c];return t(r.SET,a),[2,Promise.resolve()];case 1:return[4,e];case 2:l=o.sent(),t(r.CONFIG,l,{update:!0,user_properties:n}),o.label=3;case 3:return[2]}})})}function _(t,e){return Object(o["__awaiter"])(this,void 0,void 0,function(){var n;return Object(o["__generator"])(this,function(r){switch(r.label){case 0:return[4,t];case 1:return n=r.sent(),window["ga-disable-"+n]=!e,[2]}})})}
2055/**
2056 * @license
2057 * Copyright 2019 Google LLC
2058 *
2059 * Licensed under the Apache License, Version 2.0 (the "License");
2060 * you may not use this file except in compliance with the License.
2061 * You may obtain a copy of the License at
2062 *
2063 *   http://www.apache.org/licenses/LICENSE-2.0
2064 *
2065 * Unless required by applicable law or agreed to in writing, software
2066 * distributed under the License is distributed on an "AS IS" BASIS,
2067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2068 * See the License for the specific language governing permissions and
2069 * limitations under the License.
2070 */(function(t){t["EVENT"]="event",t["SET"]="set",t["CONFIG"]="config"})(r||(r={})),function(t){t["ADD_SHIPPING_INFO"]="add_shipping_info",t["ADD_PAYMENT_INFO"]="add_payment_info",t["ADD_TO_CART"]="add_to_cart",t["ADD_TO_WISHLIST"]="add_to_wishlist",t["BEGIN_CHECKOUT"]="begin_checkout",t["CHECKOUT_PROGRESS"]="checkout_progress",t["EXCEPTION"]="exception",t["GENERATE_LEAD"]="generate_lead",t["LOGIN"]="login",t["PAGE_VIEW"]="page_view",t["PURCHASE"]="purchase",t["REFUND"]="refund",t["REMOVE_FROM_CART"]="remove_from_cart",t["SCREEN_VIEW"]="screen_view",t["SEARCH"]="search",t["SELECT_CONTENT"]="select_content",t["SELECT_ITEM"]="select_item",t["SELECT_PROMOTION"]="select_promotion",t["SET_CHECKOUT_OPTION"]="set_checkout_option",t["SHARE"]="share",t["SIGN_UP"]="sign_up",t["TIMING_COMPLETE"]="timing_complete",t["VIEW_CART"]="view_cart",t["VIEW_ITEM"]="view_item",t["VIEW_ITEM_LIST"]="view_item_list",t["VIEW_PROMOTION"]="view_promotion",t["VIEW_SEARCH_RESULTS"]="view_search_results"}(i||(i={}));var w,E=new u["Logger"]("@firebase/analytics");
2071/**
2072 * @license
2073 * Copyright 2019 Google LLC
2074 *
2075 * Licensed under the Apache License, Version 2.0 (the "License");
2076 * you may not use this file except in compliance with the License.
2077 * You may obtain a copy of the License at
2078 *
2079 *   http://www.apache.org/licenses/LICENSE-2.0
2080 *
2081 * Unless required by applicable law or agreed to in writing, software
2082 * distributed under the License is distributed on an "AS IS" BASIS,
2083 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2084 * See the License for the specific language governing permissions and
2085 * limitations under the License.
2086 */function I(t){var e=document.createElement("script");e.src=v+"?l="+t,e.async=!0,document.head.appendChild(e)}function T(t){var e=[];return Array.isArray(window[t])?e=window[t]:window[t]=e,e}function S(t,e,n,i,a,s){return Object(o["__awaiter"])(this,void 0,void 0,function(){var u,c,l,h;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:u=i[a],o.label=1;case 1:return o.trys.push([1,7,,8]),u?[4,e[u]]:[3,3];case 2:return o.sent(),[3,6];case 3:return[4,Promise.all(n)];case 4:return c=o.sent(),l=c.find(function(t){return t.measurementId===a}),l?[4,e[l.appId]]:[3,6];case 5:o.sent(),o.label=6;case 6:return[3,8];case 7:return h=o.sent(),E.error(h),[3,8];case 8:return t(r.CONFIG,a,s),[2]}})})}function C(t,e,n,i,a){return Object(o["__awaiter"])(this,void 0,void 0,function(){var s,u,c,l,h,f,p,d,v;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),s=[],a&&a["send_to"]?(u=a["send_to"],Array.isArray(u)||(u=[u]),[4,Promise.all(n)]):[3,2];case 1:for(c=o.sent(),l=function(t){var n=c.find(function(e){return e.measurementId===t}),r=n&&e[n.appId];if(!r)return s=[],"break";s.push(r)},h=0,f=u;h<f.length;h++)if(p=f[h],d=l(p),"break"===d)break;o.label=2;case 2:return 0===s.length&&(s=Object.values(e)),[4,Promise.all(s)];case 3:return o.sent(),t(r.EVENT,i,a||{}),[3,5];case 4:return v=o.sent(),E.error(v),[3,5];case 5:return[2]}})})}function A(t,e,n,i){function a(a,s,u){return Object(o["__awaiter"])(this,void 0,void 0,function(){var c;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:return o.trys.push([0,6,,7]),a!==r.EVENT?[3,2]:[4,C(t,e,n,s,u)];case 1:return o.sent(),[3,5];case 2:return a!==r.CONFIG?[3,4]:[4,S(t,e,n,i,s,u)];case 3:return o.sent(),[3,5];case 4:t(r.SET,s),o.label=5;case 5:return[3,7];case 6:return c=o.sent(),E.error(c),[3,7];case 7:return[2]}})})}return a}function N(t,e,n,r,i){var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];window[r].push(arguments)};return window[i]&&"function"===typeof window[i]&&(o=window[i]),window[i]=A(o,t,e,n),{gtagCore:o,wrappedGtag:window[i]}}function k(){for(var t=window.document.getElementsByTagName("script"),e=0,n=Object.values(t);e<n.length;e++){var r=n[e];if(r.src&&r.src.includes(v))return r}return null}
2087/**
2088 * @license
2089 * Copyright 2019 Google LLC
2090 *
2091 * Licensed under the Apache License, Version 2.0 (the "License");
2092 * you may not use this file except in compliance with the License.
2093 * You may obtain a copy of the License at
2094 *
2095 *   http://www.apache.org/licenses/LICENSE-2.0
2096 *
2097 * Unless required by applicable law or agreed to in writing, software
2098 * distributed under the License is distributed on an "AS IS" BASIS,
2099 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2100 * See the License for the specific language governing permissions and
2101 * limitations under the License.
2102 */var O=(w={},w["already-exists"]="A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.",w["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",w["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",w["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}",w["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",w["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",w["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",w["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',w["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',w),x=new c["ErrorFactory"]("analytics","Analytics",O),D=30,R=1e3,P=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e=R),this.throttleMetadata=t,this.intervalMillis=e}return t.prototype.getThrottleMetadata=function(t){return this.throttleMetadata[t]},t.prototype.setThrottleMetadata=function(t,e){this.throttleMetadata[t]=e},t.prototype.deleteThrottleMetadata=function(t){delete this.throttleMetadata[t]},t}(),L=new P;function M(t){return new Headers({Accept:"application/json","x-goog-api-key":t})}function j(t){var e;return Object(o["__awaiter"])(this,void 0,void 0,function(){var n,r,i,a,s,u,c;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:return n=t.appId,r=t.apiKey,i={method:"GET",headers:M(r)},a=d.replace("{app-id}",n),[4,fetch(a,i)];case 1:if(s=o.sent(),200===s.status||304===s.status)return[3,6];u="",o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s.json()];case 3:return c=o.sent(),(null===(e=c.error)||void 0===e?void 0:e.message)&&(u=c.error.message),[3,5];case 4:return o.sent(),[3,5];case 5:throw x.create("config-fetch-failed",{httpStatus:s.status,responseMessage:u});case 6:return[2,s.json()]}})})}function F(t,e,n){return void 0===e&&(e=L),Object(o["__awaiter"])(this,void 0,void 0,function(){var r,i,a,s,u,c,l=this;return Object(o["__generator"])(this,function(h){if(r=t.options,i=r.appId,a=r.apiKey,s=r.measurementId,!i)throw x.create("no-app-id");if(!a){if(s)return[2,{measurementId:s,appId:i}];throw x.create("no-api-key")}return u=e.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},c=new q,setTimeout(function(){return Object(o["__awaiter"])(l,void 0,void 0,function(){return Object(o["__generator"])(this,function(t){return c.abort(),[2]})})},void 0!==n?n:p),[2,U({appId:i,apiKey:a,measurementId:s},u,c,e)]})})}function U(t,e,n,r){var i=e.throttleEndTimeMillis,a=e.backoffCount;return void 0===r&&(r=L),Object(o["__awaiter"])(this,void 0,void 0,function(){var e,s,u,l,h,f,p;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:e=t.appId,s=t.measurementId,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,V(n,i)];case 2:return o.sent(),[3,4];case 3:if(u=o.sent(),s)return E.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+s+' provided in the "measurementId" field in the local Firebase config. ['+u.message+"]"),[2,{appId:e,measurementId:s}];throw u;case 4:return o.trys.push([4,6,,7]),[4,j(t)];case 5:return l=o.sent(),r.deleteThrottleMetadata(e),[2,l];case 6:if(h=o.sent(),!B(h)){if(r.deleteThrottleMetadata(e),s)return E.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+s+' provided in the "measurementId" field in the local Firebase config. ['+h.message+"]"),[2,{appId:e,measurementId:s}];throw h}return f=503===Number(h.httpStatus)?Object(c["calculateBackoffMillis"])(a,r.intervalMillis,D):Object(c["calculateBackoffMillis"])(a,r.intervalMillis),p={throttleEndTimeMillis:Date.now()+f,backoffCount:a+1},r.setThrottleMetadata(e,p),E.debug("Calling attemptFetch again in "+f+" millis"),[2,U(t,p,n,r)];case 7:return[2]}})})}function V(t,e){return new Promise(function(n,r){var i=Math.max(e-Date.now(),0),o=setTimeout(n,i);t.addEventListener(function(){clearTimeout(o),r(x.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function B(t){if(!(t instanceof c["FirebaseError"]))return!1;var e=Number(t["httpStatus"]);return 429===e||500===e||503===e||504===e}var q=function(){function t(){this.listeners=[]}return t.prototype.addEventListener=function(t){this.listeners.push(t)}
2102,t.prototype.abort=function(){this.listeners.forEach(function(t){return t()})},t}();
2103/**
2104 * @license
2105 * Copyright 2020 Google LLC
2106 *
2107 * Licensed under the Apache License, Version 2.0 (the "License");
2108 * you may not use this file except in compliance with the License.
2109 * You may obtain a copy of the License at
2110 *
2111 *   http://www.apache.org/licenses/LICENSE-2.0
2112 *
2113 * Unless required by applicable law or agreed to in writing, software
2114 * distributed under the License is distributed on an "AS IS" BASIS,
2115 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2116 * See the License for the specific language governing permissions and
2117 * limitations under the License.
2118 */function H(){return Object(o["__awaiter"])(this,void 0,void 0,function(){var t;return Object(o["__generator"])(this,function(e){switch(e.label){case 0:return Object(c["isIndexedDBAvailable"])()?[3,1]:(E.warn(x.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return e.trys.push([1,3,,4]),[4,Object(c["validateIndexedDBOpenable"])()];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),E.warn(x.create("indexeddb-unavailable",{errorInfo:t}).message),[2,!1];case 4:return[2,!0]}})})}function W(t,e,n,i,a){return Object(o["__awaiter"])(this,void 0,void 0,function(){var s,u,c,l,p,d,v;return Object(o["__generator"])(this,function(o){switch(o.label){case 0:return s=F(t),s.then(function(e){n[e.measurementId]=e.appId,t.options.measurementId&&e.measurementId!==t.options.measurementId&&E.warn("The measurement ID in the local Firebase config ("+t.options.measurementId+") does not match the measurement ID fetched from the server ("+e.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(t){return E.error(t)}),e.push(s),u=H().then(function(t){return t?i.getId():void 0}),[4,Promise.all([s,u])];case 1:return c=o.sent(),l=c[0],p=c[1],a("js",new Date),v={},v[f]="firebase",v.update=!0,d=v,null!=p&&(d[h]=p),a(r.CONFIG,l.measurementId,d),[2,l.measurementId]}})})}
2119/**
2120 * @license
2121 * Copyright 2019 Google LLC
2122 *
2123 * Licensed under the Apache License, Version 2.0 (the "License");
2124 * you may not use this file except in compliance with the License.
2125 * You may obtain a copy of the License at
2126 *
2127 *   http://www.apache.org/licenses/LICENSE-2.0
2128 *
2129 * Unless required by applicable law or agreed to in writing, software
2130 * distributed under the License is distributed on an "AS IS" BASIS,
2131 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2132 * See the License for the specific language governing permissions and
2133 * limitations under the License.
2134 */var G,K,z={},$=[],Q={},Y="dataLayer",X="gtag",J=!1;function Z(t,e,n){void 0===t&&(t=!1),void 0===e&&(e={}),void 0===n&&(n=[]),J=t,z=e,$=n,Y="dataLayer",X="gtag"}function tt(){return{initializationPromisesMap:z,dynamicConfigPromisesList:$}}function et(t){if(J)throw x.create("already-initialized");t.dataLayerName&&(Y=t.dataLayerName),t.gtagName&&(X=t.gtagName)}function nt(){var t=[];if(Object(c["isBrowserExtension"])()&&t.push("This is a browser extension environment."),Object(c["areCookiesEnabled"])()||t.push("Cookies are not available."),t.length>0){var e=t.map(function(t,e){return"("+(e+1)+") "+t}).join(" "),n=x.create("invalid-analytics-context",{errorInfo:e});E.warn(n.message)}}function rt(t,e){nt();var n=t.options.appId;if(!n)throw x.create("no-app-id");if(!t.options.apiKey){if(!t.options.measurementId)throw x.create("no-api-key");E.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 '+t.options.measurementId+' provided in the "measurementId" field in the local Firebase config.')}if(null!=z[n])throw x.create("already-exists",{id:n});if(!J){k()||I(Y),T(Y);var r=N(z,$,Q,Y,X),i=r.wrappedGtag,o=r.gtagCore;K=i,G=o,J=!0}z[n]=W(t,$,Q,e,G);var a={app:t,logEvent:function(t,e,r){g(K,z[n],t,e,r).catch(function(t){return E.error(t)})},setCurrentScreen:function(t,e){m(K,z[n],t,e).catch(function(t){return E.error(t)})},setUserId:function(t,e){y(K,z[n],t,e).catch(function(t){return E.error(t)})}
2134,setUserProperties:function(t,e){b(K,z[n],t,e).catch(function(t){return E.error(t)})},setAnalyticsCollectionEnabled:function(t){_(z[n],t).catch(function(t){return E.error(t)})},INTERNAL:{delete:function(){return delete z[n],Promise.resolve()}}};return a}var it="@firebase/analytics",ot="0.6.0",at="analytics";function st(t){function e(t){try{var e=t.getProvider(at).getImmediate();return{logEvent:e.logEvent}}catch(n){throw x.create("interop-component-reg-failed",{reason:n})}}t.INTERNAL.registerComponent(new l["Component"](at,function(t){var e=t.getProvider("app").getImmediate(),n=t.getProvider("installations").getImmediate();return rt(e,n)},"PUBLIC").setServiceProps({settings:et,EventName:i,isSupported:ut})),t.INTERNAL.registerComponent(new l["Component"]("analytics-internal",e,"PRIVATE")),t.registerVersion(it,ot)}function ut(){return Object(o["__awaiter"])(this,void 0,void 0,function(){var t;return Object(o["__generator"])(this,function(e){switch(e.label){case 0:if(Object(c["isBrowserExtension"])())return[2,!1];if(!Object(c["areCookiesEnabled"])())return[2,!1];if(!Object(c["isIndexedDBAvailable"])())return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Object(c["validateIndexedDBOpenable"])()];case 2:return t=e.sent(),[2,t];case 3:return e.sent(),[2,!1];case 4:return[2]}})})}st(s.a)},dcbc:function(t,e,n){var r=n("2aba");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e71f:function(t,e,n){"use strict";n.r(e);n("e89a")},e89a:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("c23d"),o=n("abfd"),a=n("cd51"),s=n("c7b2"),u=n("4be4");function c(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=c(i),h={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"},f=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return r.__extends(e,t),e}(Error),p=new o.Logger("@firebase/firestore");
2135/**
2136 * @license
2137 * Copyright 2020 Google LLC
2138 *
2139 * Licensed under the Apache License, Version 2.0 (the "License");
2140 * you may not use this file except in compliance with the License.
2141 * You may obtain a copy of the License at
2142 *
2143 *   http://www.apache.org/licenses/LICENSE-2.0
2144 *
2145 * Unless required by applicable law or agreed to in writing, software
2146 * distributed under the License is distributed on an "AS IS" BASIS,
2147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2148 * See the License for the specific language governing permissions and
2149 * limitations under the License.
2150 */
2151/**
2152 * @license
2153 * Copyright 2017 Google LLC
2154 *
2155 * Licensed under the Apache License, Version 2.0 (the "License");
2156 * you may not use this file except in compliance with the License.
2157 * You may obtain a copy of the License at
2158 *
2159 *   http://www.apache.org/licenses/LICENSE-2.0
2160 *
2161 * Unless required by applicable law or agreed to in writing, software
2162 * distributed under the License is distributed on an "AS IS" BASIS,
2163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2164 * See the License for the specific language governing permissions and
2165 * limitations under the License.
2166 */function d(){return p.logLevel}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(p.logLevel<=o.LogLevel.DEBUG){var i=e.map(y);p.debug.apply(p,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(p.logLevel<=o.LogLevel.ERROR){var i=e.map(y);p.error.apply(p,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(p.logLevel<=o.LogLevel.WARN){var i=e.map(y);
2166p.warn.apply(p,r.__spreadArrays(["Firestore (7.24.0): "+t],i))}}function y(t){if("string"==typeof t)return t;try{return e=t,JSON.stringify(e)}catch(e){return t}
2167/**
2168 * @license
2169 * Copyright 2020 Google LLC
2170 *
2171 * Licensed under the Apache License, Version 2.0 (the "License");
2172 * you may not use this file except in compliance with the License.
2173 * You may obtain a copy of the License at
2174 *
2175 *   http://www.apache.org/licenses/LICENSE-2.0
2176 *
2177 * Unless required by applicable law or agreed to in writing, software
2178 * distributed under the License is distributed on an "AS IS" BASIS,
2179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2180 * See the License for the specific language governing permissions and
2181 * limitations under the License.
2182 */var e}
2183/**
2184 * @license
2185 * Copyright 2017 Google LLC
2186 *
2187 * Licensed under the Apache License, Version 2.0 (the "License");
2188 * you may not use this file except in compliance with the License.
2189 * You may obtain a copy of the License at
2190 *
2191 *   http://www.apache.org/licenses/LICENSE-2.0
2192 *
2193 * Unless required by applicable law or agreed to in writing, software
2194 * distributed under the License is distributed on an "AS IS" BASIS,
2195 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2196 * See the License for the specific language governing permissions and
2197 * limitations under the License.
2198 */function b(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (7.24.0) INTERNAL ASSERTION FAILED: "+t;throw g(e),new Error(e)}function _(t,e){t||b()}function w(t,e){return t}
2199/**
2200 * @license
2201 * Copyright 2017 Google LLC
2202 *
2203 * Licensed under the Apache License, Version 2.0 (the "License");
2204 * you may not use this file except in compliance with the License.
2205 * You may obtain a copy of the License at
2206 *
2207 *   http://www.apache.org/licenses/LICENSE-2.0
2208 *
2209 * Unless required by applicable law or agreed to in writing, software
2210 * distributed under the License is distributed on an "AS IS" BASIS,
2211 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2212 * See the License for the specific language governing permissions and
2213 * limitations under the License.
2214 */function E(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function I(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function T(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
2215/**
2216 * @license
2217 * Copyright 2017 Google LLC
2218 *
2219 * Licensed under the Apache License, Version 2.0 (the "License");
2220 * you may not use this file except in compliance with the License.
2221 * You may obtain a copy of the License at
2222 *
2223 *   http://www.apache.org/licenses/LICENSE-2.0
2224 *
2225 * Unless required by applicable law or agreed to in writing, software
2226 * distributed under the License is distributed on an "AS IS" BASIS,
2227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2228 * See the License for the specific language governing permissions and
2229 * limitations under the License.
2230 */var S=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&b(),void 0===n?n=t.length-e:n>t.length-e&&b(),this.segments=t,this.offset=e,this.t=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.t},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.i(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach(function(t){n.push(t)}):n.push(e),this.o(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.u=function(t){return t=void 0===t?1:t,this.o(this.segments,this.offset+t,this.length-t)},t.prototype.h=function(){return this.o(this.segments,this.offset,this.length-1)},t.prototype.l=function(){return this.segments[this.offset]},t.prototype._=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.m=function(){return 0===this.length},t.prototype.T=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.I=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.A=function(){return this.segments.slice(this.offset,this.limit())},t.i=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),o=e.get(r);if(i<o)return-1;if(i>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.o=function(t,n,r){return new e(t,n,r)},e.prototype.R=function(){return this.A().join("/")},e.prototype.toString=function(){return this.R()},e.g=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];if(a.indexOf("//")>=0)throw new f(h.INVALID_ARGUMENT,"Invalid segment ("+a+"). Paths must not contain // in them.");r.push.apply(r,a.split("/").filter(function(t){return t.length>0}))}return new e(r)},e.P=function(){return new e([])},e}(S),A=/^[_a-zA-Z][_a-zA-Z0-9]*$/,N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.o=function(t,n,r){return new e(t,n,r)},e.V=function(t){return A.test(t)},e.prototype.R=function(){return this.A().map(function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.V(t)||(t="`"+t+"`"),t}).join(".")},e.prototype.toString=function(){return this.R()},e.prototype.p=function(){return 1===this.length&&"__name__"===this.get(0)},e.v=function(){return new e(["__name__"])},e.S=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new f(h.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<t.length;){var s=t[i];if("\\"===s){if(i+1===t.length)throw new f(h.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new f(h.INVALID_ARGUMENT,"Path has invali
2230d escape sequence: "+t);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new f(h.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.P=function(){return new e([])},e}(S),k=function(){function t(t){this.path=t}return t.D=function(e){return new t(C.g(e))},t.C=function(e){return new t(C.g(e).u(5))},t.prototype.N=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===C.i(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.i=function(t,e){return C.i(t.path,e.path)},t.F=function(t){return t.length%2==0},t.$=function(e){return new t(new C(e.slice()))},t}();
2231/**
2232 * @license
2233 * Copyright 2017 Google LLC
2234 *
2235 * Licensed under the Apache License, Version 2.0 (the "License");
2236 * you may not use this file except in compliance with the License.
2237 * You may obtain a copy of the License at
2238 *
2239 *   http://www.apache.org/licenses/LICENSE-2.0
2240 *
2241 * Unless required by applicable law or agreed to in writing, software
2242 * distributed under the License is distributed on an "AS IS" BASIS,
2243 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2244 * See the License for the specific language governing permissions and
2245 * limitations under the License.
2246 */function O(t,e){if(0!==e.length)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+$(e.length,"argument")+".")}function x(t,e,n){if(e.length!==n)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires "+$(n,"argument")+", but was called with "+$(e.length,"argument")+".")}function D(t,e,n){if(e.length<n)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires at least "+$(n,"argument")+", but was called with "+$(e.length,"argument")+".")}function R(t,e,n,r){if(e.length<n||e.length>r)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+$(e.length,"argument")+".")}function P(t,e,n,r){V(t,e,z(n)+" argument",r)}function L(t,e,n,r){void 0!==r&&P(t,e,n,r)}function M(t,e,n,r){V(t,e,n+" option",r)}function j(t,e,n,r){void 0!==r&&M(t,e,n,r)}function F(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var u=s[a];if(u===r)return;o.push(q(u))}var c=q(r);throw new f(h.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function U(t,e,n,r){if(!e.some(function(t){return t===r}))throw new f(h.INVALID_ARGUMENT,"Invalid value "+q(r)+" provided to function "+t+"() for its "+z(n)+" argument. Acceptable values: "+e.join(", "));return r}function V(t,e,n,r){if(!("object"===e?B(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=q(r);throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function B(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function q(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":b()}function H(t,e,n){if(void 0===n)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+z(e)+" argument, but it was undefined.")}function W(t,e,n){I(e,function(e,r){if(n.indexOf(e)<0)throw new f(h.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))})}function G(t,e,n,r){var i=q(r);return new f(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+z(n)+" argument to be a "+e+", but it was: "+i)}function K(t,e,n){if(n<=0)throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+z(e)+" argument to be a positive number, but it was: "+n+".")}function z(t){switch(t){case 1:return"first";
2246case 2:return"second";case 3:return"third";default:return t+"th"}}function $(t,e){return t+" "+e+(1===t?"":"s")}
2247/**
2248 * @license
2249 * Copyright 2020 Google LLC
2250 *
2251 * Licensed under the Apache License, Version 2.0 (the "License");
2252 * you may not use this file except in compliance with the License.
2253 * You may obtain a copy of the License at
2254 *
2255 *   http://www.apache.org/licenses/LICENSE-2.0
2256 *
2257 * Unless required by applicable law or agreed to in writing, software
2258 * distributed under the License is distributed on an "AS IS" BASIS,
2259 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2260 * See the License for the specific language governing permissions and
2261 * limitations under the License.
2262 */function Q(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}
2263/**
2264 * @license
2265 * Copyright 2017 Google LLC
2266 *
2267 * Licensed under the Apache License, Version 2.0 (the "License");
2268 * you may not use this file except in compliance with the License.
2269 * You may obtain a copy of the License at
2270 *
2271 *   http://www.apache.org/licenses/LICENSE-2.0
2272 *
2273 * Unless required by applicable law or agreed to in writing, software
2274 * distributed under the License is distributed on an "AS IS" BASIS,
2275 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2276 * See the License for the specific language governing permissions and
2277 * limitations under the License.
2278 */var Y=function(){function t(){}return t.k=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=Q(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function X(t,e){return t<e?-1:t>e?1:0}function J(t,e,n){return t.length===e.length&&t.every(function(t,r){return n(t,e[r])})}function Z(t){return t+"\0"}
2279/**
2280 * @license
2281 * Copyright 2020 Google LLC
2282 *
2283 * Licensed under the Apache License, Version 2.0 (the "License");
2284 * you may not use this file except in compliance with the License.
2285 * You may obtain a copy of the License at
2286 *
2287 *   http://www.apache.org/licenses/LICENSE-2.0
2288 *
2289 * Unless required by applicable law or agreed to in writing, software
2290 * distributed under the License is distributed on an "AS IS" BASIS,
2291 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2292 * See the License for the specific language governing permissions and
2293 * limitations under the License.
2294 */var tt=function(){function t(t){this.M=t}return t.fromBase64String=function(e){return new t(atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return t=this.M,btoa(t);var t},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.M)},t.prototype.O=function(){return 2*this.M.length},t.prototype.L=function(t){return X(this.M,t.M)},t.prototype.isEqual=function(t){return this.M===t.M},t}();tt.B=new tt("");var et=function(){function t(t){this.q=t}return t.fromBase64String=function(e){try{return new t(tt.fromBase64String(e))}catch(e){throw new f(h.INVALID_ARGUMENT,"Failed to construct Bytes from Base64 string: "+e)}},t.fromUint8Array=function(e){return new t(tt.fromUint8Array(e))},t.prototype.toBase64=function(){return this.q.toBase64()},t.prototype.toUint8Array=function(){return this.q.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.q.isEqual(t.q)},t}();
2295/**
2296 * @license
2297 * Copyright 2017 Google LLC
2298 *
2299 * Licensed under the Apache License, Version 2.0 (the "License");
2300 * you may not use this file except in compliance with the License.
2301 * You may obtain a copy of the License at
2302 *
2303 *   http://www.apache.org/licenses/LICENSE-2.0
2304 *
2305 * Unless required by applicable law or agreed to in writing, softw
2305are
2306 * distributed under the License is distributed on an "AS IS" BASIS,
2307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2308 * See the License for the specific language governing permissions and
2309 * limitations under the License.
2310 */function nt(){if("undefined"==typeof Uint8Array)throw new f(h.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function rt(){if("undefined"==typeof atob)throw new f(h.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.fromBase64String=function(t){x("Blob.fromBase64String",arguments,1),P("Blob.fromBase64String","string",1,t),rt();try{return new e(tt.fromBase64String(t))}catch(t){throw new f(h.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+t)}},e.fromUint8Array=function(t){if(x("Blob.fromUint8Array",arguments,1),nt(),!(t instanceof Uint8Array))throw G("Blob.fromUint8Array","Uint8Array",1,t);return new e(tt.fromUint8Array(t))},e.prototype.toBase64=function(){return x("Blob.toBase64",arguments,0),rt(),t.prototype.toBase64.call(this)},e.prototype.toUint8Array=function(){return x("Blob.toUint8Array",arguments,0),nt(),t.prototype.toUint8Array.call(this)},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e}(et),ot=function(t,e,n,r,i,o){this.U=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i,this.W=o},at=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"j",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.L=function(t){return X(this.projectId,t.projectId)||X(this.database,t.database)},t}(),st=function(){function t(t,e){this.K=t,this.G=e,this.H={}}return t.prototype.get=function(t){var e=this.K(t),n=this.H[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(this.G(a,t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.K(t),r=this.H[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.G(r[i][0],t))return void(r[i]=[t,e]);r.push([t,e])}else this.H[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.K(t),n=this.H[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.G(n[r][0],t))return 1===n.length?delete this.H[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){I(this.H,function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];t(a,s)}})},t.prototype.m=function(){return T(this.H)},t}(),ut=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new f(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new f(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new f(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new f(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.Y=function(t){return this.seconds===t.seconds?X(this.nanoseconds,t.nanoseconds):X(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},t.prototype.valueOf=function(){var t=this.seconds- -62135596800;return String(t).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),ct=function(){function t(t){this.timestamp=t}return t.J=function(e){return new t(e)},t.min=function(){return new t(new ut(0,0))},t.prototype.L=function(t){return this.timestamp.Y(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.X=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.Z=function(){return this.timestamp},t}();
2311/**
2312 * @license
2313 * Copyright 2017 Google LLC
2314 *
2315 * Licensed under the Apache License, Version 2.0 (the "License");
2316 * you may not use this file except in compliance with the License.
2317 * You may obtain a copy of the License at
2318 *
2319 *   http://www.apache.org/licenses/LICENSE-2.0
2320 *
2321 * Unless required by applicable law or agreed to in writing, software
2322 * distributed under the License is distributed on an "AS IS" BASIS,
2323 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2324 * See the License for the specific language governing permissions and
2325 * limitations under the License.
2326 */
2327/**
2328 * @license
2329 * Copyright 2017 Google LLC
2330 *
2331 * Licensed under the Apache License, Version 2.0 (the "License");
2332 * you may not use this file except in compliance with the License.
2333 * You may obtain a copy of the License at
2334 *
2335 *   http://www.apache.org/licenses/LICENSE-2.0
2336 *
2337 * Unless required by applicable law or agreed to in writing, software
2338 * distributed under the License is distributed on an "AS IS" BASIS,
2339 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2340 * See the License for the specific language governing permissions and
2341 * limitations under the License.
2342 */function lt(t){return null==t}function ht(t){return 0===t&&1/t==-1/0}function ft(t){return"number"==typeof t&&Number.isInteger(t)&&!ht(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}
2343/**
2344 * @license
2345 * Copyright 2019 Google LLC
2346 *
2347 * Licensed under the Apache License, Version 2.0 (the "License");
2348 * you may not use this file except in compliance with the License.
2349 * You may obtain a copy of the License at
2350 *
2351 *   http://www.apache.org/licenses/LICENSE-2.0
2352 *
2353 * Unless required by applicable law or agreed to in writing, software
2354 * distributed under the License is distributed on an "AS IS" BASIS,
2355 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2356 * See the License for the specific language governing permissions and
2357 * limitations under the License.
2358 */var pt=function(t,e,n,r,i,o,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.tt=null};function dt(t,e,n,r,i,o,a){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),new pt(t,e,n,r,i,o,a)}function vt(t){var e=w(t);if(null===e.tt){var n=e.path.R();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(function(t){return function(t){return t.field.R()+t.op.toString()+ae(t.value)}(t)}).join(","),n+="|ob:",n+=e.orderBy.map(function(t){return(e=t).field.R()+e.dir;var e}).join(","),lt(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=hr(e.startAt)),e.endAt&&(n+="|ub:",n+=hr(e.endAt)),e.tt=n}return e.tt}function gt(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!gr(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var r=0;r<t.filters.length;r++)if(i=t.filters[r],o=e.filters[r],i.op!==o.op||!i.field.isEqual(o.field)||!ne(i.value,o.value))return!1;var i,o;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!pr(t.startAt,e.startAt)&&pr(t.endAt,e.endAt)}function mt(t){return k.F(t.path)&&null===t.collectionGroup&&0===t.filters.length}
2359/**
2360 * @license
2361 * Copyright 2017 Google LLC
2362 *
2363 * Licensed under the Apache License, Version 2.0 (the "License");
2364 * you may not use this file except in compliance with the License.
2365 * You may obtain a copy of the License at
2366 *
2367 *   http://www.apache.org/licenses/LICENSE-2.0
2368 *
2369 * Unless required by applicable law or agreed to in writing, software
2370 * distributed under the License is distributed on an "AS IS" BASIS,
2371 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2372 * See the License for the specific language governing permissions and
2373 * limitations under the License.
2374 */var yt,bt,_t=function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=ct.min()),void 0===o&&(o=ct.min()),void 0===a&&(a=tt.B),this.target=t,this.targetId=e,this.et=n,this.sequenceNumber=r,this.nt=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return t.prototype.st=function(e){return new t(this.target,this.targetId,this.et,e,this.nt,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.it=function(e,n){return new t(this.target,this.targetId,this.et,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.rt=function(e){return new t(this.target,this.targetId,this.et,this.sequenceNumber,this.nt,e,this.resumeToken)},t}(),wt=function(t){this.count=t};
2375/**
2376 * @license
2377 * Copyright 2017 Google LLC
2378 *
2379 * Licensed under the Apache License, Version 2.0 (the "License");
2380 * you may not use this file except in compliance with the License.
2381 * You may obtain a copy of the License at
2382 *
2383 *   http://www.apache.org/licenses/LICENSE-2.0
2384 *
2385 * Unless required by applicable law or agreed to in writing, software
2386 * distributed under the License is distributed on an "AS IS" BASIS,
2387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2388 * See the License for the specific language governing permissions and
2389 * limitations under the License.
2390 */function Et(t){switch(t){case h.OK:return b();case h.CANCELLED:case h.UNKNOWN:case h.DEADLINE_EXCEEDED:case h.RESOURCE_EXHAUSTED:case h.INTERNAL:case h.UNAVAILABLE:case h.UNAUTHENTICATED:return!1;case h.INVALID_ARGUMENT:case h.NOT_FOUND:case h.ALREADY_EXISTS:case h.PERMISSION_DENIED:case h.FAILED_PRECONDITION:case h.ABORTED:case h.OUT_OF_RANGE:case h.UNIMPLEMENTED:case h.DATA_LOSS:return!0;default:return b()}}function It(t){if(void 0===t)return g("GRPC error has no .code"),h.UNKNOWN;switch(t){case yt.OK:return h.OK;case yt.CANCELLED:return h.CANCELLED;case yt.UNKNOWN:return h.UNKNOWN;case yt.DEADLINE_EXCEEDED:return h.DEADLINE_EXCEEDED;case yt.RESOURCE_EXHAUSTED:return h.RESOURCE_EXHAUSTED;case yt.INTERNAL:return h.INTERNAL;case yt.UNAVAILABLE:return h.UNAVAILABLE;case yt.UNAUTHENTICATED:return h.UNAUTHENTICATED;case yt.INVALID_ARGUMENT:return h.INVALID_ARGUMENT;case yt.NOT_FOUND:return h.NOT_FOUND;case yt.ALREADY_EXISTS:return h.ALREADY_EXISTS;case yt.PERMISSION_DENIED:return h.PERMISSION_DENIED;case yt.FAILED_PRECONDITION:return h.FAILED_PRECONDITION;case yt.ABORTED:return h.ABORTED;case yt.OUT_OF_RANGE:return h.OUT_OF_RANGE;case yt.UNIMPLEMENTED:return h.UNIMPLEMENTED;case yt.DATA_LOSS:return h.DATA_LOSS;default:return b()}}(bt=yt||(yt={}))[bt.OK=0]="OK",bt[bt.CANCELLED=1]="CANCELLED",bt[bt.UNKNOWN=2]="UNKNOWN",bt[bt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",bt[bt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",bt[bt.NOT_FOUND=5]="NOT_FOUND",bt[bt.ALREADY_EXISTS=6]="ALREADY_EXISTS",bt[bt.PERMISSION_DENIED=7]="PERMISSION_DENIED",bt[bt.UNAUTHENTICATED=16]="UNAUTHENTICATED",bt[bt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",bt[bt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",bt[bt.ABORTED=10]="ABORTED",bt[bt.OUT_OF_RANGE=11]="OUT_OF_RANGE",bt[bt.UNIMPLEMENTED=12]="UNIMPLEMENTED",bt[bt.INTERNAL=13]="INTERNAL",bt[bt.UNAVAILABLE=14]="UNAVAILABLE",bt[bt.DATA_LOSS=15]="DATA_LOSS";
2391/**
2392 * @license
2393 * Copyright 2017 Google LLC
2394 *
2395 * Licensed under the Apache License, Version 2.0 (the "License");
2396 * you may not use this file except in compliance with the License.
2397 * You may obtain a copy of the License at
2398 *
2399 *   http://www.apache.org/licenses/LICENSE-2.0
2400 *
2401 * Unless required by applicable law or agreed to in writing, software
2402 * distributed under the License is distributed on an "AS IS" BASIS,
2403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2404 * See the License for the specific language governing permissions and
2405 * limitations under the License.
2406 */
2407var Tt=function(){function t(t,e){this.i=t,this.root=e||Ct.EMPTY}return t.prototype.ot=function(e,n){return new t(this.i,this.root.ot(e,n,this.i).copy(null,null,Ct.at,null,null))},t.prototype.remove=function(e){return new t(this.i,this.root.remove(e,this.i).copy(null,null,Ct.at,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.m();){var n=this.i(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.m();){var r=this.i(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.m=function(){return this.root.m()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.ct=function(){return this.root.ct()},t.prototype.ut=function(){return this.root.ut()},t.prototype.ht=function(t){return this.root.ht(t)},t.prototype.forEach=function(t){this.ht(function(e,n){return t(e,n),!1})},t.prototype.toString=function(){var t=[];return this.ht(function(e,n){return t.push(e+":"+n),!1}),"{"+t.join(", ")+"}"},t.prototype.lt=function(t){return this.root.lt(t)},t.prototype._t=function(){return new St(this.root,null,this.i,!1)},t.prototype.ft=function(t){return new St(this.root,t,this.i,!1)},t.prototype.dt=function(){return new St(this.root,null,this.i,!0)},t.prototype.wt=function(t){return new St(this.root,t,this.i,!0)},t}(),St=function(){function t(t,e,n,r){this.Tt=r,this.Et=[];for(var i=1;!t.m();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.Tt?t.left:t.right;else{if(0===i){this.Et.push(t);break}this.Et.push(t),t=this.Tt?t.right:t.left}}return t.prototype.It=function(){var t=this.Et.pop(),e={key:t.key,value:t.value};if(this.Tt)for(t=t.left;!t.m();)this.Et.push(t),t=t.right;else for(t=t.right;!t.m();)this.Et.push(t),t=t.left;return e},t.prototype.At=function(){return this.Et.length>0},t.prototype.Rt=function(){if(0===this.Et.length)return null;var t=this.Et[this.Et.length-1];return{key:t.key,value:t.value}},t}(),Ct=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,
2407null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.m=function(){return!1},t.prototype.ht=function(t){return this.left.ht(t)||t(this.key,this.value)||this.right.ht(t)},t.prototype.lt=function(t){return this.right.lt(t)||t(this.key,this.value)||this.left.lt(t)},t.prototype.min=function(){return this.left.m()?this:this.left.min()},t.prototype.ct=function(){return this.min().key},t.prototype.ut=function(){return this.right.m()?this.key:this.right.ut()},t.prototype.ot=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.ot(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.ot(t,e,n))).gt()},t.prototype.Pt=function(){if(this.left.m())return t.EMPTY;var e=this;return e.left.yt()||e.left.left.yt()||(e=e.Vt()),(e=e.copy(null,null,null,e.left.Pt(),null)).gt()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.m()||i.left.yt()||i.left.left.yt()||(i=i.Vt()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.yt()&&(i=i.bt()),i.right.m()||i.right.yt()||i.right.left.yt()||(i=i.vt()),0===n(e,i.key)){if(i.right.m())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.Pt())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.gt()},t.prototype.yt=function(){return this.color},t.prototype.gt=function(){var t=this;return t.right.yt()&&!t.left.yt()&&(t=t.St()),t.left.yt()&&t.left.left.yt()&&(t=t.bt()),t.left.yt()&&t.right.yt()&&(t=t.Dt()),t},t.prototype.Vt=function(){var t=this.Dt();return t.right.left.yt()&&(t=(t=(t=t.copy(null,null,null,null,t.right.bt())).St()).Dt()),t},t.prototype.vt=function(){var t=this.Dt();return t.left.left.yt()&&(t=(t=t.bt()).Dt()),t},t.prototype.St=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.bt=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.Dt=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.Ct=function(){var t=this.Nt();return Math.pow(2,t)<=this.size+1},t.prototype.Nt=function(){if(this.yt()&&this.left.yt())throw b();if(this.right.yt())throw b();var t=this.left.Nt();if(t!==this.right.Nt())throw b();return t+(this.yt()?0:1)},t}();Ct.EMPTY=null,Ct.RED=!0,Ct.at=!1,Ct.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw b()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw b()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw b()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw b()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw b()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.ot=function(t,e,n){return new Ct(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.m=function(){return!0},t.prototype.ht=function(t){return!1},t.prototype.lt=function(t){return!1},t.prototype.ct=function(){return null},t.prototype.ut=function(){return null},t.prototype.yt=function(){return!1},t.prototype.Ct=function(){return!0},t.prototype.Nt=function(){return 0},t}());
2408/**
2409 * @license
2410 * Copyright 2017 Google LLC
2411 *
2412 * Licensed under the Apache License, Version 2.0 (the "License");
2413 * you may not use this file except in compliance with the License.
2414 * You may obtain a copy of the License at
2415 *
2416 *   http://www.apache.org/licenses/LICENSE-2.0
2417 *
2418 * Unless required by applicable law or agreed to in writing, software
2419 * distributed under the License is distributed on an "AS IS" BASIS,
2420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2421 * See the License for the specific language governing permissions and
2422 * limitations under the License.
2423 */
2424var At=function(){function t(t){this.i=t,this.data=new Tt(this.i)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.ct()},t.prototype.last=function(){return this.data.ut()}
2424,Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.ht(function(e,n){return t(e),!1})},t.prototype.Ft=function(t,e){for(var n=this.data.ft(t[0]);n.At();){var r=n.It();if(this.i(r.key,t[1])>=0)return;e(r.key)}},t.prototype.xt=function(t,e){var n;for(n=void 0!==e?this.data.ft(e):this.data._t();n.At();)if(!t(n.It().key))return},t.prototype.$t=function(t){var e=this.data.ft(t);return e.At()?e.It().key:null},t.prototype._t=function(){return new Nt(this.data._t())},t.prototype.ft=function(t){return new Nt(this.data.ft(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).ot(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.m=function(){return this.data.m()},t.prototype.kt=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach(function(t){e=e.add(t)}),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data._t(),r=e.data._t();n.At();){var i=n.It().key,o=r.It().key;if(0!==this.i(i,o))return!1}return!0},t.prototype.A=function(){var t=[];return this.forEach(function(e){t.push(e)}),t},t.prototype.toString=function(){var t=[];return this.forEach(function(e){return t.push(e)}),"SortedSet("+t.toString()+")"},t.prototype.copy=function(e){var n=new t(this.i);return n.data=e,n},t}(),Nt=function(){function t(t){this.Mt=t}return t.prototype.It=function(){return this.Mt.It().key},t.prototype.At=function(){return this.Mt.At()},t}(),kt=new Tt(k.i);function Ot(){return kt}function xt(){return Ot()}var Dt=new Tt(k.i);function Rt(){return Dt}var Pt=new Tt(k.i),Lt=new At(k.i);function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Lt,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var jt=new At(X);function Ft(){return jt}
2425/**
2426 * @license
2427 * Copyright 2017 Google LLC
2428 *
2429 * Licensed under the Apache License, Version 2.0 (the "License");
2430 * you may not use this file except in compliance with the License.
2431 * You may obtain a copy of the License at
2432 *
2433 *   http://www.apache.org/licenses/LICENSE-2.0
2434 *
2435 * Unless required by applicable law or agreed to in writing, software
2436 * distributed under the License is distributed on an "AS IS" BASIS,
2437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2438 * See the License for the specific language governing permissions and
2439 * limitations under the License.
2440 */var Ut=function(){function t(t){this.i=t?function(e,n){return t(e,n)||k.i(e.key,n.key)}:function(t,e){return k.i(t.key,e.key)},this.Ot=Rt(),this.Lt=new Tt(this.i)}return t.Bt=function(e){return new t(e.i)},t.prototype.has=function(t){return null!=this.Ot.get(t)},t.prototype.get=function(t){return this.Ot.get(t)},t.prototype.first=function(){return this.Lt.ct()},t.prototype.last=function(){return this.Lt.ut()},t.prototype.m=function(){return this.Lt.m()},t.prototype.indexOf=function(t){var e=this.Ot.get(t);return e?this.Lt.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.Lt.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.Lt.ht(function(e,n){return t(e),!1})},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.Ot.ot(t.key,t),e.Lt.ot(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.Ot.remove(t),this.Lt.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.Lt._t(),r=e.Lt._t();n.At();){var i=n.It().key,o=r.It().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach(function(e){t.push(e.toString())}),0===t.length?"DocumentSet ()":"DocumentSet (\n  "+t.join("  \n")+"\n)"},t.prototype.copy=function(e,n){var r=new t;return r.i=this.i,r.Ot=e,r.Lt=n,r},t}(),Vt=function(){function t(){this.qt=new Tt(k.i)}return t.prototype.track=function(t){var e=t.doc.key,n=this.qt.get(e);n?0!==t.type&&3===n.type?this.qt=this.qt.ot(e,t):3===t.type&&1!==n.type?this.qt=this.qt.ot(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.qt=this.qt.ot(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.qt=this.qt.ot(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.qt=this.qt.remove(e):1===t.type&&2===n.type?this.qt=this.qt.ot(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.qt=this.qt.ot(e,{type:2,doc:t.doc}):b():this.qt=this.qt.ot(e,t)},t.prototype.Ut=function(){var t=[];return this.qt.ht(function(e,n){t.push(n)}),t},t}(),Bt=function(){function t(t,e,n,r,i,o,a,s){this.query=t,this.docs=e,this.Qt=n,this.docChanges=r,this.Wt=i,this.fromCache=o,this.jt=a,this.Kt=s}return t.Gt=function(e,n,r,i){var o=[];
2440return n.forEach(function(t){o.push({type:0,doc:t})}),new t(e,n,Ut.Bt(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.Wt.m()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.jt===t.jt&&this.Wt.isEqual(t.Wt)&&Yn(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.Qt.isEqual(t.Qt)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),qt=function(){function t(t,e,n,r,i){this.nt=t,this.zt=e,this.Ht=n,this.Yt=r,this.Jt=i}return t.Xt=function(e,n){var r=new Map;return r.set(e,Ht.Zt(e,n)),new t(ct.min(),r,Ft(),Ot(),Mt())},t}(),Ht=function(){function t(t,e,n,r,i){this.resumeToken=t,this.te=e,this.ee=n,this.ne=r,this.se=i}return t.Zt=function(e,n){return new t(tt.B,n,Mt(),Mt(),Mt())},t}(),Wt=function(t,e,n,r){this.ie=t,this.removedTargetIds=e,this.key=n,this.re=r},Gt=function(t,e){this.targetId=t,this.oe=e},Kt=function(t,e,n,r){void 0===n&&(n=tt.B),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},zt=function(){function t(){this.ae=0,this.ce=Yt(),this.ue=tt.B,this.he=!1,this.le=!0}return Object.defineProperty(t.prototype,"te",{get:function(){return this.he},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.ue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_e",{get:function(){return 0!==this.ae},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fe",{get:function(){return this.le},enumerable:!1,configurable:!0}),t.prototype.de=function(t){t.O()>0&&(this.le=!0,this.ue=t)},t.prototype.we=function(){var t=Mt(),e=Mt(),n=Mt();return this.ce.forEach(function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:b()}}),new Ht(this.ue,this.he,t,e,n)},t.prototype.me=function(){this.le=!1,this.ce=Yt()},t.prototype.Te=function(t,e){this.le=!0,this.ce=this.ce.ot(t,e)},t.prototype.Ee=function(t){this.le=!0,this.ce=this.ce.remove(t)},t.prototype.Ie=function(){this.ae+=1},t.prototype.Ae=function(){this.ae-=1},t.prototype.Re=function(){this.le=!0,this.he=!0},t}(),$t=function(){function t(t){this.ge=t,this.Pe=new Map,this.ye=Ot(),this.Ve=Qt(),this.pe=new At(X)}return t.prototype.be=function(t){for(var e=0,n=t.ie;e<n.length;e++){var r=n[e];t.re instanceof Pn?this.ve(r,t.re):t.re instanceof Ln&&this.Se(r,t.key,t.re)}for(var i=0,o=t.removedTargetIds;i<o.length;i++){var a=o[i];this.Se(a,t.key,t.re)}},t.prototype.De=function(t){var e=this;this.Ce(t,function(n){var r=e.Ne(n);switch(t.state){case 0:e.Fe(n)&&r.de(t.resumeToken);break;case 1:r.Ae(),r._e||r.me(),r.de(t.resumeToken);break;case 2:r.Ae(),r._e||e.removeTarget(n);break;case 3:e.Fe(n)&&(r.Re(),r.de(t.resumeToken));break;case 4:e.Fe(n)&&(e.xe(n),r.de(t.resumeToken));break;default:b()}})},t.prototype.Ce=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.Pe.forEach(function(t,r){n.Fe(r)&&e(r)})},t.prototype.$e=function(t){var e=t.targetId,n=t.oe.count,r=this.ke(e);if(r){var i=r.target;if(mt(i))if(0===n){var o=new k(i.path);this.Se(e,o,new Ln(o,ct.min()))}else _(1===n);else this.Me(e)!==n&&(this.xe(e),this.pe=this.pe.add(e))}},t.prototype.Oe=function(t){var e=this,n=new Map;this.Pe.forEach(function(r,i){var o=e.ke(i);if(o){if(r.te&&mt(o.target)){var a=new k(o.target.path);null!==e.ye.get(a)||e.Le(i,a)||e.Se(i,a,new Ln(a,t))}r.fe&&(n.set(i,r.we()),r.me())}});var r=Mt();this.Ve.forEach(function(t,n){var i=!0;n.xt(function(t){var n=e.ke(t);return!n||2===n.et||(i=!1,!1)}),i&&(r=r.add(t))});var i=new qt(t,n,this.pe,this.ye,r);return this.ye=Ot(),this.Ve=Qt(),this.pe=new At(X),i},t.prototype.ve=function(t,e){if(this.Fe(t)){var n=this.Le(t,e.key)?2:0;this.Ne(t).Te(e.key,n),this.ye=this.ye.ot(e.key,e),this.Ve=this.Ve.ot(e.key,this.Be(e.key).add(t))}},t.prototype.Se=function(t,e,n){if(this.Fe(t)){var r=this.Ne(t);this.Le(t,e)?r.Te(e,1):r.Ee(e),this.Ve=this.Ve.ot(e,this.Be(e).delete(t)),n&&(this.ye=this.ye.ot(e,n))}},t.prototype.removeTarget=function(t){this.Pe.delete(t)},t.prototype.Me=function(t){var e=this.Ne(t).we();return this.ge.qe(t).size+e.ee.size-e.se.size},t.prototype.Ie=function(t){this.Ne(t).Ie()},t.prototype.Ne=function(t){var e=this.Pe.get(t);return e||(e=new zt,this.Pe.set(t,e)),e},t.prototype.Be=function(t){var e=this.Ve.get(t);return e||(e=new At(X),this.Ve=this.Ve.ot(t,e)),e},t.prototype.Fe=function(t){var e=null!==this.ke(t);return e||v("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ke=function(t){var e=this.Pe.get(t);return e&&e._e?null:this.ge.Ue(t)},t.prototype.xe=function(t){var e=this;this.Pe.set(t,new zt),this.ge.qe(t).forEach(function(n){e.Se(t,n,null)})},t.prototype.Le=function(t,e){return this.ge.qe(t).has(e)},t}();
2441/**
2442 * @license
2443 * Copyright 2017 Google LLC
2444 *
2445 * Licensed under the Apache License, Version 2.0 (the "License");
2446 * you may not use this file except in compliance with the License.
2447 * You may obtain a copy of the License at
2448 *
2449 *   http://www.apache.org/licenses/LICENSE-2.0
2450 *
2451 * Unless required by applicable law or agreed to in writing, software
2452 * distributed under the License is distributed on an "AS IS" BASIS,
2453 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2454 * See the License for the specific language governing permissions and
2455 * limitations under the License.
2456 */function Qt(){return new Tt(k.i)}function Yt(){return new Tt(k.i)}
2457/**
2458 * @license
2459 * Copyright 2020 Google LLC
2460 *
2461 * Licensed under the Apache License, Version 2.0 (the "License");
2462 * you may not use this file except in compliance with the License.
2463 * You may obtain a copy of the License at
2464 *
2465 *   http://www.apache.org/licenses/LICENSE-2.0
2466 *
2467 * Unless required by applicable law or agreed to in writing, software
2468 * distributed under the License is distributed on an "AS IS" BASIS,
2469 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2470 * See the License for the specific language governing permissions and
2471 * limitations under the License.
2472 */function Xt(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Jt(t){var e=t.mapValue.fields.__previous_value__;return Xt(e)?Jt(e):e}function Zt(t){var e=ue(t.mapValue.fields.__local_write_time__.timestampValue);return new ut(e.seconds,e.nanos)}
2473/**
2474 * @license
2475 * Copyright 2020 Google LLC
2476 *
2477 * Licensed under the Apache License, Version 2.0 (the "License");
2478 * you may not use this file except in compliance with the License.
2479 * You may obtain a copy of the License at
2480 *
2481 *   http://www.apache.org/licenses/LICENSE-2.0
2482 *
2483 * Unless required by applicable law or agreed to in writing, software
2484 * distributed under the License is distributed on an "AS IS" BASIS,
2485 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2486 * See the License for the specific language governing permissions and
2487 * limitations under the License.
2488 */var te=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function ee(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?Xt(t)?4:10:b()}function ne(t,e){var n=ee(t);if(n!==ee(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Zt(t).isEqual(Zt(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=ue(t.timestampValue),r=ue(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return le(t.bytesValue).isEqual(le(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return ce(t.geoPointValue.latitude)===ce(e.geoPointValue.latitude)&&ce(t.geoPointValue.longitude)===ce(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return ce(t.integerValue)===ce(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=ce(t.doubleValue),r=ce(e.doubleValue);return n===r?ht(n)===ht(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return J(t.arrayValue.values||[],e.arrayValue.values||[],ne);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(E(n)!==E(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!ne(n[i],r[i])))return!1;return!0}(t,e);default:return b()}}function re(t,e){return void 0!==(t.values||[]).find(function(t){return ne(t,e)})}function ie(t,e){var n=ee(t),r=ee(e);if(n!==r)return X(n,r);switch(n){case 0:return 0;case 1:return X(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=ce(t.integerValue||t.doubleValue),r=ce(e.integerValue||e.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return oe(t.timestampValue,e.timestampValue);case 4:return oe(Zt(t),Zt(e));case 5:return X(t.stringValue,e.stringValue);case 6:return function(t,e){var n=le(t),r=le(e);return n.L(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i<n.length&&i<r.length;i++){var o=X(n[i],r[i]);if(0!==o)return o}return X(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=X(ce(t.latitude),ce(e.latitude));return 0!==n?n:X(ce(t.longitude),ce(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],r=e.values||[],i=0;i<n.length&&i<r.length;++i){var o=ie(n[i],r[i]);if(o)return o}return X(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var a=0;a<r.length&&a<o.length;++a){var s=X(r[a],o[a]);if(0!==s)return s;var u=ie(n[r[a]],i[o[a]]);if(0!==u)return u}return X(r.length,o.length)}(t.mapValue,e.mapValue);default:throw b()}}function oe(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return X(t,e);var n=ue(t),r=ue(e),i=X(n.seconds,r.seconds);return 0!==i?i:X(n.nanos,r.nanos)}function ae(t){return se(t)}function se(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(t){var e=ue(t);return"time("+e.seconds+","+e.nanos+")"}
2488(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?le(t.bytesValue).toBase64():"referenceValue"in t?(n=t.referenceValue,k.C(n).toString()):"geoPointValue"in t?"geo("+(e=t.geoPointValue).latitude+","+e.longitude+")":"arrayValue"in t?function(t){for(var e="[",n=!0,r=0,i=t.values||[];r<i.length;r++)n?n=!1:e+=",",e+=se(i[r]);return e+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var e="{",n=!0,r=0,i=Object.keys(t.fields||{}).sort();r<i.length;r++){var o=i[r];n?n=!1:e+=",",e+=o+":"+se(t.fields[o])}return e+"}"}(t.mapValue):b();var e,n}function ue(t){if(_(!!t),"string"==typeof t){var e=0,n=te.exec(t);if(_(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:ce(t.seconds),nanos:ce(t.nanos)}}function ce(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function le(t){return"string"==typeof t?tt.fromBase64String(t):tt.fromUint8Array(t)}function he(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.R()}}function fe(t){return!!t&&"integerValue"in t}function pe(t){return!!t&&"arrayValue"in t}function de(t){return!!t&&"nullValue"in t}function ve(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function ge(t){return!!t&&"mapValue"in t}
2489/**
2490 * @license
2491 * Copyright 2017 Google LLC
2492 *
2493 * Licensed under the Apache License, Version 2.0 (the "License");
2494 * you may not use this file except in compliance with the License.
2495 * You may obtain a copy of the License at
2496 *
2497 *   http://www.apache.org/licenses/LICENSE-2.0
2498 *
2499 * Unless required by applicable law or agreed to in writing, software
2500 * distributed under the License is distributed on an "AS IS" BASIS,
2501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2502 * See the License for the specific language governing permissions and
2503 * limitations under the License.
2504 */var me={asc:"ASCENDING",desc:"DESCENDING"},ye={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},be=function(t,e){this.U=t,this.Qe=e};function _e(t){return{integerValue:""+t}}function we(t,e){if(t.Qe){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:ht(e)?"-0":e}}function Ee(t,e){return ft(e)?_e(e):we(t,e)}function Ie(t,e){return t.Qe?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Te(t,e){return t.Qe?e.toBase64():e.toUint8Array()}function Se(t,e){return Ie(t,e.Z())}function Ce(t){return _(!!t),ct.J(function(t){var e=ue(t);return new ut(e.seconds,e.nanos)}(t))}function Ae(t,e){return function(t){return new C(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).R()}function Ne(t){var e=C.g(t);return _(Xe(e)),e}function ke(t,e){return Ae(t.U,e.path)}function Oe(t,e){var n=Ne(e);return _(n.get(1)===t.U.projectId),_(!n.get(3)&&!t.U.database||n.get(3)===t.U.database),new k(Pe(n))}function xe(t,e){return Ae(t.U,e)}function De(t){var e=Ne(t);return 4===e.length?C.P():Pe(e)}function Re(t){return new C(["projects",t.U.projectId,"databases",t.U.database]).R()}function Pe(t){return _(t.length>4&&"documents"===t.get(4)),t.u(5)}function Le(t,e,n){return{name:ke(t,e),fields:n.proto.mapValue.fields}}function Me(t,e){var n;if(e instanceof En)n={update:Le(t,e.key,e.value)};else if(e instanceof Nn)n={delete:ke(t,e.key)};else if(e instanceof In)n={update:Le(t,e.key,e.data),updateMask:Ye(e.We)};else if(e instanceof Sn)n={transform:{document:ke(t,e.key),fieldTransforms:e.fieldTransforms.map(function(t){return function(t,e){var n=e.transform;if(n instanceof nn)return{fieldPath:e.field.R(),setToServerValue:"REQUEST_TIME"};if(n instanceof rn)return{fieldPath:e.field.R(),appendMissingElements:{values:n.elements}};if(n instanceof an)return{fieldPath:e.field.R(),removeAllFromArray:{values:n.elements}};if(n instanceof un)return{fieldPath:e.field.R(),increment:n.je};throw b()}(0,t)})}};else{if(!(e instanceof kn))return b();n={verify:ke(t,e.key)}}return e.Ge.Ke||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:Se(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:b()}(t,e.Ge)),n}function je(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?dn.updateTime(Ce(t.updateTime)):void 0!==t.exists?dn.exists(t.exists):dn.ze()}(e.currentDocument):dn.ze();if(e.update){e.update.name;var r=Oe(t,e.update.name),i=new On({mapValue:{fields:e.update.fields}});if(e.updateMask){var o=function(t){var e=t.fieldPaths||[];return new hn(e.map(function(t){return N.S(t)}))}(e.updateMask);return new In(r,i,o,n)}return new En(r,i,n)}if(e.delete){var a=Oe(t,e.delete);return new Nn(a,n)}if(e.transform){var s=Oe(t,e.transform.document),u=e.transform.fieldTransforms.map(function(e){return function(t,e){var n=null;if("setToServerValue"in e)_("REQUEST_TIME"===e.setToServerValue),n=new nn;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new rn(r)}else if("removeAllFromArray"in e){var i=e.removeAllFromArray.values||[];n=new an(i)}else"increment"in e?n=new un(t,e.increment):b();var o=N.S(e.fieldPath);return new fn(o,n)}(t,e)});return _(!0===n.exists),new Sn(s,u)}if(e.verify){var c=Oe(t,e.verify);return new kn(c,n)}return b()}function Fe(t,e){return{documents:[xe(t,e.path)]}}function Ue(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=xe(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=xe(t,r.h()),n.structuredQuery.from=[{collectionId:r._()}]);var i=function(t){if(0!==t.length){var e=t.map(function(t){return function(t){if("=="===t.op){if(ve(t.value))return{unaryFilter:{field:Ke(t.field),op:"IS_NAN"}};if(de(t.value))return{unaryFilter:{field:Ke(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(ve(t.value))return{unaryFilter:{field:Ke(t.field),op:"IS_NOT_NA
2504N"}};if(de(t.value))return{unaryFilter:{field:Ke(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ke(t.field),op:Ge(t.op),value:t.value}}}(t)});return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map(function(t){return function(t){return{field:Ke(t.field),direction:We(t.dir)}}(t)})}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(t,e){return t.Qe||lt(e)?e:{value:e}}(t,e.limit);return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=qe(e.startAt)),e.endAt&&(n.structuredQuery.endAt=qe(e.endAt)),n}function Ve(t){var e=De(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){_(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=Be(n.where));var s=[];n.orderBy&&(s=n.orderBy.map(function(t){return function(t){return new dr(ze(t.field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction))}(t)}));var u=null;n.limit&&(u=function(t){var e;return lt(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=He(n.startAt));var l=null;return n.endAt&&(l=He(n.endAt)),Kn(Fn(e,i,s,a,u,"F",c,l))}function Be(t){return t?void 0!==t.unaryFilter?[Qe(t)]:void 0!==t.fieldFilter?[$e(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(function(t){return Be(t)}).reduce(function(t,e){return t.concat(e)}):b():[]}function qe(t){return{before:t.before,values:t.position}}function He(t){var e=!!t.before,n=t.values||[];return new lr(n,e)}function We(t){return me[t]}function Ge(t){return ye[t]}function Ke(t){return{fieldPath:t.R()}}function ze(t){return N.S(t.fieldPath)}function $e(t){return er.create(ze(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return b()}}(t.fieldFilter.op),t.fieldFilter.value)}function Qe(t){switch(t.unaryFilter.op){case"IS_NAN":var e=ze(t.unaryFilter.field);return er.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=ze(t.unaryFilter.field);return er.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=ze(t.unaryFilter.field);return er.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=ze(t.unaryFilter.field);return er.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return b()}}function Ye(t){var e=[];return t.fields.forEach(function(t){return e.push(t.R())}),{fieldPaths:e}}function Xe(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}
2505/**
2506 * @license
2507 * Copyright 2018 Google LLC
2508 *
2509 * Licensed under the Apache License, Version 2.0 (the "License");
2510 * you may not use this file except in compliance with the License.
2511 * You may obtain a copy of the License at
2512 *
2513 *   http://www.apache.org/licenses/LICENSE-2.0
2514 *
2515 * Unless required by applicable law or agreed to in writing, software
2516 * distributed under the License is distributed on an "AS IS" BASIS,
2517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2518 * See the License for the specific language governing permissions and
2519 * limitations under the License.
2520 */var Je=function(){this.He=void 0};function Ze(t,e,n){return t instanceof nn?function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(n,e):t instanceof rn?on(t,e):t instanceof an?sn(t,e):function(t,e){var n=en(t,e),r=cn(n)+cn(t.je);return fe(n)&&fe(t.je)?_e(r):we(t.serializer,r)}(t,e)}function tn(t,e,n){return t instanceof rn?on(t,e):t instanceof an?sn(t,e):n}function en(t,e){return t instanceof un?fe(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(Je),rn=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return r.__extends(e,t),e}(Je);function on(t,e){for(var n=ln(e),r=function(t){n.some(function(e){return ne(e,t)})||n.push(t)},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var an=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return r.__extends(e,t),e}(Je);function sn(t,e){for(var n=ln(e),r=function(t){n=n.filter(function(e){return!ne(e,t)})},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var un=function(t){function e(e,n){var r=this;
2520return(r=t.call(this)||this).serializer=e,r.je=n,r}return r.__extends(e,t),e}(Je);function cn(t){return ce(t.integerValue||t.doubleValue)}function ln(t){return pe(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}
2521/**
2522 * @license
2523 * Copyright 2017 Google LLC
2524 *
2525 * Licensed under the Apache License, Version 2.0 (the "License");
2526 * you may not use this file except in compliance with the License.
2527 * You may obtain a copy of the License at
2528 *
2529 *   http://www.apache.org/licenses/LICENSE-2.0
2530 *
2531 * Unless required by applicable law or agreed to in writing, software
2532 * distributed under the License is distributed on an "AS IS" BASIS,
2533 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2534 * See the License for the specific language governing permissions and
2535 * limitations under the License.
2536 */var hn=function(){function t(t){this.fields=t,t.sort(N.i)}return t.prototype.Ye=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].T(t))return!0;return!1},t.prototype.isEqual=function(t){return J(this.fields,t.fields,function(t,e){return t.isEqual(e)})},t}(),fn=function(t,e){this.field=t,this.transform=e},pn=function(t,e){this.version=t,this.transformResults=e},dn=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.ze=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"Ke",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function vn(t,e){return void 0!==t.updateTime?e instanceof Pn&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e instanceof Pn}var gn=function(){};function mn(t,e,n){return t instanceof En?function(t,e,n){return new Pn(t.key,n.version,t.value,{hasCommittedMutations:!0})}(t,0,n):t instanceof In?function(t,e,n){if(!vn(t.Ge,e))return new Mn(t.key,n.version);var r=Tn(t,e);return new Pn(t.key,n.version,r,{hasCommittedMutations:!0})}(t,e,n):t instanceof Sn?function(t,e,n){if(_(null!=n.transformResults),!vn(t.Ge,e))return new Mn(t.key,n.version);var r=Cn(t,e),i=function(t,e,n){var r=[];_(t.length===n.length);for(var i=0;i<n.length;i++){var o=t[i],a=o.transform,s=null;e instanceof Pn&&(s=e.field(o.field)),r.push(tn(a,s,n[i]))}return r}(t.fieldTransforms,e,n.transformResults),o=n.version,a=An(t,r.data(),i);return new Pn(t.key,o,a,{hasCommittedMutations:!0})}(t,e,n):function(t,e,n){return new Ln(t.key,n.version,{hasCommittedMutations:!0})}(t,0,n)}function yn(t,e,n,r){return t instanceof En?function(t,e){if(!vn(t.Ge,e))return e;var n=wn(e);return new Pn(t.key,n,t.value,{Je:!0})}(t,e):t instanceof In?function(t,e){if(!vn(t.Ge,e))return e;var n=wn(e),r=Tn(t,e);return new Pn(t.key,n,r,{Je:!0})}(t,e):t instanceof Sn?function(t,e,n,r){if(!vn(t.Ge,e))return e;var i=Cn(t,e),o=function(t,e,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var s=a[o],u=s.transform,c=null;n instanceof Pn&&(c=n.field(s.field)),null===c&&r instanceof Pn&&(c=r.field(s.field)),i.push(Ze(u,c,e))}return i}(t.fieldTransforms,n,e,r),a=An(t,i.data(),o);return new Pn(t.key,i.version,a,{Je:!0})}(t,e,r,n):function(t,e){return vn(t.Ge,e)?new Ln(t.key,ct.min()):e}(t,e)}function bn(t,e){return t instanceof Sn?function(t,e){for(var n=null,r=0,i=t.fieldTransforms;r<i.length;r++){var o=i[r],a=e instanceof Pn?e.field(o.field):void 0,s=en(o.transform,a||null);null!=s&&(n=null==n?(new xn).set(o.field,s):n.set(o.field,s))}return n?n.Xe():null}(t,e):null}function _n(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.Ge.isEqual(e.Ge)&&(0===t.type?t.value.isEqual(e.value):1===t.type?t.data.isEqual(e.data)&&t.We.isEqual(e.We):2!==t.type||J(t.fieldTransforms,t.fieldTransforms,function(t,e){return function(t,e){return t.field.isEqual(e.field)&&function(t,e){return t instanceof rn&&e instanceof rn||t instanceof an&&e instanceof an?J(t.elements,e.elements,ne):t instanceof un&&e instanceof un?ne(t.je,e.je):t instanceof nn&&e instanceof nn}(t.transform,e.transform)}(t,e)}))}function wn(t){return t instanceof Pn?t.version:ct.min()}var En=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).key=e,i.value=n,i.Ge=r,i.type=0,i}return r.__extends(e,t),e}(gn),In=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.We=r,o.Ge=i,o.type=1,o}return r.__extends(e,t),e}(gn);function Tn(t,e){return function(t,e){var n=new xn(e);return t.We.fields.forEach(function(e){if(!e.m()){var r=t.data.field(e);null!==r?n.set(e,r):n.delete(e)}}),n.Xe()}(t,e instanceof Pn?e.data():On.empty())}var Sn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.fieldTransforms=n,r.type=2,r.Ge=dn.exists(!0),r}return r.__extends(e,t),e}(gn);function Cn(t,e){return e}function An(t,e,n){for(var r=new xn(e),i=0;i<t.fieldTransforms.length;i++){var o=t.fieldTransforms[i];r.set(o.field,n[i])}return r.Xe()}var Nn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ge=n,r.type=3,r}return r.__extends(e,t),e}(gn),kn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ge=n,r.type=4,r}return r.__extends(e,t),e}(gn),On=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.m())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!ge(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t._()])||null},t.prototype.isEqual=function(t){return ne(this.proto,t.proto)},t}(),xn=function(){function t(t){void 0===t&&(t=On.empty()),this.Ze=t,this.tn=new Map}return t.prototype.set=function(t,e){return this.en(t,e),this}
2536,t.prototype.delete=function(t){return this.en(t,null),this},t.prototype.en=function(t,e){for(var n=this.tn,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===ee(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(i,o),n=o):(o=new Map,n.set(i,o),n=o)}n.set(t._(),e)},t.prototype.Xe=function(){var t=this.nn(N.P(),this.tn);return null!=t?new On(t):this.Ze},t.prototype.nn=function(t,e){var n=this,r=!1,i=this.Ze.field(t),o=ge(i)?Object.assign({},i.mapValue.fields):{};return e.forEach(function(e,i){if(e instanceof Map){var a=n.nn(t.child(i),e);null!=a&&(o[i]=a,r=!0)}else null!==e?(o[i]=e,r=!0):o.hasOwnProperty(i)&&(delete o[i],r=!0)}),r?{mapValue:{fields:o}}:null},t}();function Dn(t){var e=[];return I(t.fields||{},function(t,n){var r=new N([t]);if(ge(n)){var i=Dn(n.mapValue).fields;if(0===i.length)e.push(r);else for(var o=0,a=i;o<a.length;o++){var s=a[o];e.push(r.child(s))}}else e.push(r)}),new hn(e)
2537/**
2538 * @license
2539 * Copyright 2017 Google LLC
2540 *
2541 * Licensed under the Apache License, Version 2.0 (the "License");
2542 * you may not use this file except in compliance with the License.
2543 * You may obtain a copy of the License at
2544 *
2545 *   http://www.apache.org/licenses/LICENSE-2.0
2546 *
2547 * Unless required by applicable law or agreed to in writing, software
2548 * distributed under the License is distributed on an "AS IS" BASIS,
2549 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2550 * See the License for the specific language governing permissions and
2551 * limitations under the License.
2552 */}var Rn=function(t,e){this.key=t,this.version=e},Pn=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this,e,n)||this).sn=r,o.Je=!!i.Je,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return r.__extends(e,t),e.prototype.field=function(t){return this.sn.field(t)},e.prototype.data=function(){return this.sn},e.prototype.rn=function(){return this.sn.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.Je===t.Je&&this.hasCommittedMutations===t.hasCommittedMutations&&this.sn.isEqual(t.sn)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.sn.toString()+", {hasLocalMutations: "+this.Je+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.Je||this.hasCommittedMutations},enumerable:!1,configurable:!0}),e}(Rn),Ln=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return r.__extends(e,t),e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.hasCommittedMutations===this.hasCommittedMutations&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(Rn),Mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(Rn),jn=function(t,e,n,r,i,o,a,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===a&&(a=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.on=n,this.filters=r,this.limit=i,this.an=o,this.startAt=a,this.endAt=s,this.cn=null,this.un=null,this.startAt,this.endAt};function Fn(t,e,n,r,i,o,a,s){return new jn(t,e,n,r,i,o,a,s)}function Un(t){return new jn(t)}function Vn(t){return!lt(t.limit)&&"F"===t.an}function Bn(t){return!lt(t.limit)&&"L"===t.an}function qn(t){return t.on.length>0?t.on[0].field:null}function Hn(t){for(var e=0,n=t.filters;e<n.length;e++){var r=n[e];if(r.hn())return r.field}return null}function Wn(t){return null!==t.collectionGroup}function Gn(t){var e=w(t);if(null===e.cn){e.cn=[];var n=Hn(e),r=qn(e);if(null!==n&&null===r)n.p()||e.cn.push(new dr(n)),e.cn.push(new dr(N.v(),"asc"));else{for(var i=!1,o=0,a=e.on;o<a.length;o++){var s=a[o];e.cn.push(s),s.field.p()&&(i=!0)}if(!i){var u=e.on.length>0?e.on[e.on.length-1].dir:"asc";e.cn.push(new dr(N.v(),u))}}}return e.cn}function Kn(t){var e=w(t);if(!e.un)if("F"===e.an)e.un=dt(e.path,e.collectionGroup,Gn(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=Gn(e);r<i.length;r++){var o=i[r],a="desc"===o.dir?"asc":"desc";n.push(new dr(o.field,a))}var s=e.endAt?new lr(e.endAt.position,!e.endAt.before):null,u=e.startAt?new lr(e.startAt.position,!e.startAt.before):null;e.un=dt(e.path,e.collectionGroup,n,e.filters,e.limit,s,u)}return e.un}function zn(t,e,n){return new jn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function $n(t,e){return new jn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),t.limit,t.an,e,t.endAt)}function Qn(t,e){return new jn(t.path,t.collectionGroup,t.on.slice(),t.filters.slice(),t.limit,t.an,t.startAt,e)}function Yn(t,e){return gt(Kn(t),Kn(e))&&t.an===e.an}function Xn(t){return vt(Kn(t))+"|lt:"+t.an}function Jn(t){return"Query(target="+function(t){var e=t.path.R();return null!==t.collectionGroup&&(e+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(e+=", filters: ["+t.filters.map(function(t){return(e=t).field.R()+" "+e.op+" "+ae(e.value);var e}).join(", ")+"]"),lt(t.limit)||(e+=", limit: "+t.limit),t.orderBy.length>0&&(e+=", orderBy: ["+t.orderBy.map(function(t){return(e=t).field.R()+" ("+e.dir+")";var e}).join(", ")+"]"),t.startAt&&(e+=", startAt: "+hr(t.startAt)),t.endAt&&(e+=", endAt: "+hr(t.endAt)),"Target("+e+")"}(Kn(t))+"; limitType="+t.an+")"}function Zn(t,e){return function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.N(t.collectionGroup)&&t.path.T(n):k.F(t.path)?t.path.isEqual(n):t.path.I(n)}(t,e)&&function(t,e){for(var n=0,r=t.on;n<r.length;n++){var i=r[n];if(!i.field.p()&&null===e.field(i.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,r=t.filters;n<r.length;n++)if(!r[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!fr(t.startAt,Gn(t),e))&&(!t.endAt||!fr(t.endAt,Gn(t),e))}(t,e)}function tr(t){return function(e,n){for(var r=!1,i=0,o=Gn(t);i<o.length;i++){var a=o[i],s=vr(a,e,n);if(0!==s)return s;r=r||a.field.p()}return 0}}var er=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).field=e,i.op=n,i.value=r,i}return r.__extends(e,t),e.create=function(t,n,r){if(t.p())return"in"===n||"not-in"===n?this.ln(t,
2552n,r):new nr(t,n,r);if(de(r)){if("=="!==n&&"!="!==n)throw new f(h.INVALID_ARGUMENT,"Invalid query. Null only supports '==' and '!=' comparisons.");return new e(t,n,r)}if(ve(r)){if("=="!==n&&"!="!==n)throw new f(h.INVALID_ARGUMENT,"Invalid query. NaN only supports '==' and '!=' comparisons.");return new e(t,n,r)}return"array-contains"===n?new ar(t,r):"in"===n?new sr(t,r):"not-in"===n?new ur(t,r):"array-contains-any"===n?new cr(t,r):new e(t,n,r)},e.ln=function(t,e,n){return"in"===e?new rr(t,n):new ir(t,n)},e.prototype.matches=function(t){var e=t.field(this.field);return"!="===this.op?null!==e&&this._n(ie(e,this.value)):null!==e&&ee(this.value)===ee(e)&&this._n(ie(e,this.value))},e.prototype._n=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return b()}},e.prototype.hn=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}(function(){}),nr=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=k.C(r.referenceValue),i}return r.__extends(e,t),e.prototype.matches=function(t){var e=k.i(t.key,this.key);return this._n(e)},e}(er),rr=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=or("in",n),r}return r.__extends(e,t),e.prototype.matches=function(t){return this.keys.some(function(e){return e.isEqual(t.key)})},e}(er),ir=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=or("not-in",n),r}return r.__extends(e,t),e.prototype.matches=function(t){return!this.keys.some(function(e){return e.isEqual(t.key)})},e}(er);function or(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(t){return k.C(t.referenceValue)})}var ar=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return pe(e)&&re(e.arrayValue,this.value)},e}(er),sr=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&re(this.value.arrayValue,e)},e}(er),ur=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){if(re(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.field(this.field);return null!==e&&!re(this.value.arrayValue,e)},e}(er),cr=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return r.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!pe(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(t){return re(e.value.arrayValue,t)})},e}(er),lr=function(t,e){this.position=t,this.before=e};function hr(t){return(t.before?"b":"a")+":"+t.position.map(function(t){return ae(t)}).join(",")}function fr(t,e,n){for(var r=0,i=0;i<t.position.length;i++){var o=e[i],a=t.position[i];if(r=o.field.p()?k.i(k.C(a.referenceValue),n.key):ie(a,n.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return t.before?r<=0:r<0}function pr(t,e){if(null===t)return null===e;if(null===e)return!1;if(t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!ne(t.position[n],e.position[n]))return!1;return!0}var dr=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function vr(t,e,n){var r=t.field.p()?k.i(e.key,n.key):function(t,e,n){var r=e.field(t),i=n.field(t);return null!==r&&null!==i?ie(r,i):b()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return b()}}function gr(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}
2553/**
2554 * @license
2555 * Copyright 2017 Google LLC
2556 *
2557 * Licensed under the Apache License, Version 2.0 (the "License");
2558 * you may not use this file except in compliance with the License.
2559 * You may obtain a copy of the License at
2560 *
2561 *   http://www.apache.org/licenses/LICENSE-2.0
2562 *
2563 * Unless required by applicable law or agreed to in writing, software
2564 * distributed under the License is distributed on an "AS IS" BASIS,
2565 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2566 * See the License for the specific language governing permissions and
2567 * limitations under the License.
2568 */var mr=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})},yr=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.fn=t,this.dn=e,this.wn=n,this.mn=r,this.Tn=i,this.En=0,this.In=null,this.An=Date.now(),this.reset()}return t.prototype.reset=function(){this.En=0},t.prototype.Rn=function(){this.En=this.Tn},t.prototype.gn=function(t){var e=this;this.cancel();var n=Math.floor(this.En+this.Pn()),r=Math.max(0,Date.now()-this.An),i=Math.max(0,n-r);i>0&&v("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.En+" ms, delay with 
2568jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.In=this.fn.yn(this.dn,i,function(){return e.An=Date.now(),t()}),this.En*=this.mn,this.En<this.wn&&(this.En=this.wn),this.En>this.Tn&&(this.En=this.Tn)},t.prototype.Vn=function(){null!==this.In&&(this.In.pn(),this.In=null)},t.prototype.cancel=function(){null!==this.In&&(this.In.cancel(),this.In=null)},t.prototype.Pn=function(){return(Math.random()-.5)*this.En},t}(),br=function(){function t(t){var e=this;this.bn=null,this.vn=null,this.result=void 0,this.error=void 0,this.Sn=!1,this.Dn=!1,t(function(t){e.Sn=!0,e.result=t,e.bn&&e.bn(t)},function(t){e.Sn=!0,e.error=t,e.vn&&e.vn(t)})}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Dn&&b(),this.Dn=!0,this.Sn?this.error?this.Cn(n,this.error):this.Nn(e,this.result):new t(function(t,i){r.bn=function(n){r.Nn(e,n).next(t,i)},r.vn=function(e){r.Cn(n,e).next(t,i)}})},t.prototype.Fn=function(){var t=this;return new Promise(function(e,n){t.next(e,n)})},t.prototype.xn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.Nn=function(e,n){return e?this.xn(function(){return e(n)}):t.resolve(n)},t.prototype.Cn=function(e,n){return e?this.xn(function(){return e(n)}):t.reject(n)},t.resolve=function(e){return new t(function(t,n){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.$n=function(e){return new t(function(t,n){var r=0,i=0,o=!1;e.forEach(function(e){++r,e.next(function(){++i,o&&i===r&&t()},function(t){return n(t)})}),o=!0,i===r&&t()})},t.kn=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next(function(n){return n?t.resolve(n):e()})},i=0,o=e;i<o.length;i++)r(o[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach(function(t,i){r.push(e.call(n,t,i))}),this.$n(r)},t}(),_r=function(){function e(t,n,r){this.name=t,this.version=n,this.Mn=r,12.2===e.On(a.getUA())&&g("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.delete=function(t){return v("SimpleDb","Removing database:",t),Cr(window.indexedDB.deleteDatabase(t)).Fn()},e.Ln=function(){if("undefined"==typeof indexedDB)return!1;if(e.Bn())return!0;var t=a.getUA(),n=e.On(t),r=0<n&&n<10,i=e.qn(t),o=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||o)},e.Bn=function(){var e;return"undefined"!=typeof t&&"YES"===(null===(e=Object({NODE_ENV:"production",BASE_URL:"/"}))||void 0===e?void 0:e.Un)},e.Qn=function(t,e){return t.store(e)},e.On=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.qn=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.Wn=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.db?[3,2]:(v("SimpleDb","Opening database:",this.name),e=this,[4,new Promise(function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){var n=t.target.result;e(n)},i.onblocked=function(){r(new Er(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;"VersionError"===n.name?r(new f(h.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):r(new Er(t,n))},i.onupgradeneeded=function(t){v("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion);var e=t.target.result;n.Mn.createOrUpgrade(e,i.transaction,t.oldVersion,n.version).next(function(){v("SimpleDb","Database upgrade to version "+n.version+" complete")}
2568)}})]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.jn&&(this.db.onversionchange=function(t){return n.jn(t)}),this.db)]}})})},e.prototype.Kn=function(t){this.jn=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},e.prototype.runTransaction=function(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,a,s,u,c;return r.__generator(this,function(l){switch(l.label){case 0:o="readonly"===e,a=0,s=function(){var e,s,c,l,h;return r.__generator(this,function(r){switch(r.label){case 0:++a,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,u.Wn(t)];case 2:return u.db=r.sent(),e=Tr.open(u.db,t,o?"readonly":"readwrite",n),s=i(e).catch(function(t){return e.abort(t),br.reject(t)}).Fn(),c={},s.catch(function(){}),[4,e.Gn];case 3:return[2,(c.value=(r.sent(),s),c)];case 4:return l=r.sent(),h="FirebaseError"!==l.name&&a<3,v("SimpleDb","Transaction failed with error:",l.message,"Retrying:",h),u.close(),h?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[2]}})},u=this,l.label=1;case 1:return[5,s()];case 2:if("object"==typeof(c=l.sent()))return[2,c.value];l.label=3;case 3:return[3,1];case 4:return[2]}})})},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),wr=function(){function t(t){this.zn=t,this.Hn=!1,this.Yn=null}return Object.defineProperty(t.prototype,"Sn",{get:function(){return this.Hn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Jn",{get:function(){return this.Yn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.zn=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Hn=!0},t.prototype.Xn=function(t){this.Yn=t},t.prototype.delete=function(){return Cr(this.zn.delete())},t}(),Er=function(t){function e(e,n){var r=this;return(r=t.call(this,h.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return r.__extends(e,t),e}(f);
2569/**
2570 * @license
2571 * Copyright 2017 Google LLC
2572 *
2573 * Licensed under the Apache License, Version 2.0 (the "License");
2574 * you may not use this file except in compliance with the License.
2575 * You may obtain a copy of the License at
2576 *
2577 *   http://www.apache.org/licenses/LICENSE-2.0
2578 *
2579 * Unless required by applicable law or agreed to in writing, software
2580 * distributed under the License is distributed on an "AS IS" BASIS,
2581 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2582 * See the License for the specific language governing permissions and
2583 * limitations under the License.
2584 */function Ir(t){return"IndexedDbTransactionError"===t.name}var Tr=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.Zn=new mr,this.transaction.oncomplete=function(){n.Zn.resolve()},this.transaction.onabort=function(){e.error?n.Zn.reject(new Er(t,e.error)):n.Zn.resolve()},this.transaction.onerror=function(e){var r=Nr(e.target.error);n.Zn.reject(new Er(t,r))}}return t.open=function(e,n,r,i){try{return new t(n,e.transaction(i,r))}catch(e){throw new Er(n,e)}},Object.defineProperty(t.prototype,"Gn",{get:function(){return this.Zn.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.Zn.reject(t),this.aborted||(v("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new Sr(e)},t}(),Sr=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(v("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(v("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),Cr(n)},t.prototype.add=function(t){return v("SimpleDb","ADD",this.store.name,t,t),Cr(this.store.add(t))},t.prototype.get=function(t){var e=this;return Cr(this.store.get(t)).next(function(n){return void 0===n&&(n=null),v("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return v("SimpleDb","DELETE",this.store.name,t),Cr(this.store.delete(t))},t.prototype.count=function(){return v("SimpleDb","COUNT",this.store.name),Cr(this.store.count())},t.prototype.ts=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.es(n,function(t,e){r.push(e)}).next(function(){return r})},t.prototype.ns=function(t,e){v("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.ss=!1;var r=this.cursor(n);return this.es(r,function(t,e,n){return n.delete()})},t.prototype.rs=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.es(r,e)},t.prototype.os=function(t){var e=this.cursor({});return new br(function(n,r){e.onerror=function(t){var e=Nr(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next(function(t){t?r.continue():n()}):n()}})},t.prototype.es=function(t,e){var n=[];return new br(function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new wr(i),a=e(i.primaryKey,i.value,o);if(a instanceof br){var s=a.catch(function(t){return o.done(),br.reject(t)});n.push(s)}o.Sn?r():null===o.Jn?i.continue():i.continue(o.Jn)}else r()}}).next(function(){return br.$n(n)})},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.ss?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function Cr(t){return new br(function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=Nr(t.target.error);n(e)}})}var Ar=!1;function Nr(t){var e=_r.On(a.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new f("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Ar||(Ar=!0,setTimeout(function(){throw r},0)),r}}return t}
2585/**
2586 * @license
2587 * Copyright 2020 Google LLC
2588 *
2589 * Licensed under the Apache License, Version 2.0 (the "License");
2590 * you may not use this file except in compliance with the License.
2591 * You may obtain a copy of the License at
2592 *
2593 *   http://www.apache.org/licenses/LICENSE-2.0
2594 *
2595 * Unless required by applicable law or agreed to in writing, software
2596 * distributed under the License is distributed on an "AS IS" BASIS,
2597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2598 * See the License for the specific language governing permissions and
2599 * limitations under the License.
2600 */function kr(){return"undefined"!=typeof window?window:null}function Or(){return"undefined"!=typeof document?document:null}
2601/**
2602 * @license
2603 * Copyright 2017 Google LLC
2604 *
2605 * Licensed under the Apache License, Version 2.0 (the "License");
2606 * you may not use this file except in compliance with the License.
2607 * You may obtain a copy of the License at
2608 *
2609 *   http://www.apache.org/licenses/LICENSE-2.0
2610 *
2611 * Unless required by applicable law or agreed to in writing, software
2612 * distributed under the License is distributed on an "AS IS" BASIS,
2613 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2614 * See the License for the specific language governing permissions and
2615 * limitations under the License.
2616 */var xr=function(){function t(t,e,n,r,i){this.cs=t,this.dn=e,this.us=n,this.op=r,this.hs=i,this.ls=new mr,this.then=this.ls.promise.then.bind(this.ls.promise),this.ls.promise.catch(function(t){})}return t._s=function(e,n,r,i,o){var a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},t.prototype.start=function(t){var e=this;this.fs=setTimeout(function(){return e.ds()},t)},t.prototype.pn=function(){return this.ds()},t.prototype.cancel=function(t){null!==this.fs&&(this.clearTimeout(),this.ls.reject(new f(h.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
2616)},t.prototype.ds=function(){var t=this;this.cs.ws(function(){return null!==t.fs?(t.clearTimeout(),t.op().then(function(e){return t.ls.resolve(e)})):Promise.resolve()})},t.prototype.clearTimeout=function(){null!==this.fs&&(this.hs(this),clearTimeout(this.fs),this.fs=null)},t}(),Dr=function(){function t(){var t=this;this.Ts=Promise.resolve(),this.Es=[],this.Is=!1,this.As=[],this.Rs=null,this.gs=!1,this.Ps=[],this.ys=new yr(this,"async_queue_retry"),this.Vs=function(){var e=Or();e&&v("AsyncQueue","Visibility state changed to  ",e.visibilityState),t.ys.Vn()};var e=Or();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Vs)}return Object.defineProperty(t.prototype,"ps",{get:function(){return this.Is},enumerable:!1,configurable:!0}),t.prototype.ws=function(t){this.enqueue(t)},t.prototype.bs=function(t){this.vs(),this.Ss(t)},t.prototype.Ds=function(){if(!this.Is){this.Is=!0;var t=Or();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Vs)}},t.prototype.enqueue=function(t){return this.vs(),this.Is?new Promise(function(t){}):this.Ss(t)},t.prototype.Cs=function(t){var e=this;this.ws(function(){return e.Es.push(t),e.Ns()})},t.prototype.Ns=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e=this;return r.__generator(this,function(n){switch(n.label){case 0:if(0===this.Es.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.Es[0]()];case 2:return n.sent(),this.Es.shift(),this.ys.reset(),[3,4];case 3:if(!Ir(t=n.sent()))throw t;return v("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.Es.length>0&&this.ys.gn(function(){return e.Ns()}),n.label=5;case 5:return[2]}})})},t.prototype.Ss=function(t){var e=this,n=this.Ts.then(function(){return e.gs=!0,t().catch(function(t){throw e.Rs=t,e.gs=!1,g("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t}).then(function(t){return e.gs=!1,t})});return this.Ts=n,n},t.prototype.yn=function(t,e,n){var r=this;this.vs(),this.Ps.indexOf(t)>-1&&(e=0);var i=xr._s(this,t,e,n,function(t){return r.Fs(t)});return this.As.push(i),i},t.prototype.vs=function(){this.Rs&&b()},t.prototype.xs=function(){},t.prototype.$s=function(){return r.__awaiter(this,void 0,void 0,function(){var t;return r.__generator(this,function(e){switch(e.label){case 0:return[4,t=this.Ts];case 1:e.sent(),e.label=2;case 2:if(t!==this.Ts)return[3,0];e.label=3;case 3:return[2]}})})},t.prototype.ks=function(t){for(var e=0,n=this.As;e<n.length;e++)if(n[e].dn===t)return!0;return!1},t.prototype.Ms=function(t){var e=this;return this.$s().then(function(){e.As.sort(function(t,e){return t.us-e.us});for(var n=0,r=e.As;n<r.length;n++){var i=r[n];if(i.pn(),"all"!==t&&i.dn===t)break}return e.$s()})},t.prototype.Os=function(t){this.Ps.push(t)},t.prototype.Fs=function(t){var e=this.As.indexOf(t);this.As.splice(e,1)},t}();function Rr(t,e){if(g("AsyncQueue",e+": "+t),Ir(t))return new f(h.UNAVAILABLE,e+": "+t);throw t}var Pr=function(){this.Ls=void 0,this.listeners=[]},Lr=function(){this.Bs=new st(function(t){return Xn(t)},Yn),this.onlineState="Unknown",this.qs=new Set};function Mr(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s,u,c;return r.__generator(this,function(r){switch(r.label){case 0:if(n=w(t),i=e.query,o=!1,(a=n.Bs.get(i))||(o=!0,a=new Pr),!o)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),s=a,[4,n.Us(i)];case 2:return s.Ls=r.sent(),[3,4];case 3:return u=r.sent(),c=Rr(u,"Initialization of query '"+Jn(e.query)+"' failed"),[2,void e.onError(c)];case 4:return n.Bs.set(i,a),a.listeners.push(e),e.Qs(n.onlineState),a.Ls&&e.Ws(a.Ls)&&Vr(n),[2]}})})}function jr(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s;return r.__generator(this,function(r){return n=w(t),i=e.query,o=!1,(a=n.Bs.get(i))&&(s=a.listeners.indexOf(e))>=0&&(a.listeners.splice(s,1),o=0===a.listeners.length),o?[2,(n.Bs.delete(i),n.js(i))]:[2]})})}function Fr(t,e){for(var n=w(t),r=!1,i=0,o=e;i<o.length;i++){var a=o[i],s=a.query,u=n.Bs.get(s);if(u){for(var c=0,l=u.listeners;c<l.length;c++)l[c].Ws(a)&&(r=!0);u.Ls=a}}r&&Vr(n)}function Ur(t,e,n){var r=w(t),i=r.Bs.get(e);if(i)for(var o=0,a=i.listeners;o<a.length;o++)a[o].onError(n);r.Bs.delete(e)}
2616function Vr(t){t.qs.forEach(function(t){t.next()})}var Br=function(){function t(t,e,n){this.query=t,this.Ks=e,this.Gs=!1,this.zs=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Ws=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&e.push(i)}t=new Bt(t.query,t.docs,t.Qt,e,t.Wt,t.fromCache,t.jt,!0)}var o=!1;return this.Gs?this.Hs(t)&&(this.Ks.next(t),o=!0):this.Ys(t,this.onlineState)&&(this.Js(t),o=!0),this.zs=t,o},t.prototype.onError=function(t){this.Ks.error(t)},t.prototype.Qs=function(t){this.onlineState=t;var e=!1;return this.zs&&!this.Gs&&this.Ys(this.zs,t)&&(this.Js(this.zs),e=!0),e},t.prototype.Ys=function(t,e){if(!t.fromCache)return!0;var n="Offline"!==e;return!(this.options.Xs&&n||t.docs.m()&&"Offline"!==e)},t.prototype.Hs=function(t){if(t.docChanges.length>0)return!0;var e=this.zs&&this.zs.hasPendingWrites!==t.hasPendingWrites;return!(!t.jt&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.Js=function(t){t=Bt.Gt(t.query,t.docs,t.Wt,t.fromCache),this.Gs=!0,this.Ks.next(t)},t}(),qr=function(){function t(t){this.uid=t}return t.prototype.Zs=function(){return null!=this.uid},t.prototype.ti=function(){return this.Zs()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();
2617/**
2618 * @license
2619 * Copyright 2017 Google LLC
2620 *
2621 * Licensed under the Apache License, Version 2.0 (the "License");
2622 * you may not use this file except in compliance with the License.
2623 * You may obtain a copy of the License at
2624 *
2625 *   http://www.apache.org/licenses/LICENSE-2.0
2626 *
2627 * Unless required by applicable law or agreed to in writing, software
2628 * distributed under the License is distributed on an "AS IS" BASIS,
2629 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2630 * See the License for the specific language governing permissions and
2631 * limitations under the License.
2632 */qr.UNAUTHENTICATED=new qr(null),qr.ei=new qr("google-credentials-uid"),qr.ni=new qr("first-party-uid");
2633/**
2634 * @license
2635 * Copyright 2018 Google LLC
2636 *
2637 * Licensed under the Apache License, Version 2.0 (the "License");
2638 * you may not use this file except in compliance with the License.
2639 * You may obtain a copy of the License at
2640 *
2641 *   http://www.apache.org/licenses/LICENSE-2.0
2642 *
2643 * Unless required by applicable law or agreed to in writing, software
2644 * distributed under the License is distributed on an "AS IS" BASIS,
2645 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2646 * See the License for the specific language governing permissions and
2647 * limitations under the License.
2648 */
2649var Hr=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.si=function(t){return n.ii(t)},this.ri=function(t){return e.oi(t)})}return t.prototype.ii=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.ri&&this.ri(t),t},t}();function Wr(t,e){return"firestore_clients_"+t+"_"+e}function Gr(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.Zs()&&(r+="_"+e.uid),r}function Kr(t,e){return"firestore_targets_"+t+"_"+e}Hr.ai=-1;var zr=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.ci=function(e,n,r){var i=JSON.parse(r),o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),a=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(a=new f(i.error.code,i.error.message)),o?new t(e,n,i.state,a):(g("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.ui=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),$r=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.ci=function(e,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),o=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new f(r.error.code,r.error.message)),i?new t(e,r.state,o):(g("SharedCl
2649ientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.ui=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Qr=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.ci=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Ft(),a=0;i&&a<r.activeTargetIds.length;++a)i=ft(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new t(e,o):(g("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),Yr=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.ci=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(g("SharedClientState","Failed to parse online state: "+e),null)},t}(),Xr=function(){function t(){this.activeTargetIds=Ft()}return t.prototype.hi=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.li=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.ui=function(){var t={activeTargetIds:this.activeTargetIds.A(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Jr=function(){function t(t,e,n,r,i){this.window=t,this.fn=e,this.persistenceKey=n,this._i=r,this.fi=null,this.di=null,this.si=null,this.wi=this.mi.bind(this),this.Ti=new Tt(X),this.Ei=!1,this.Ii=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Ai=Wr(this.persistenceKey,this._i),this.Ri=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Ti=this.Ti.ot(this._i,new Xr),this.gi=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Pi=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.yi=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Vi=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.wi)}return t.Ln=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e,n,i,o,a,s,u,c,l,h,f=this;return r.__generator(this,function(r){switch(r.label){case 0:return[4,this.fi.pi()];case 1:for(t=r.sent(),e=0,n=t;e<n.length;e++)(i=n[e])!==this._i&&(o=this.getItem(Wr(this.persistenceKey,i)))&&(a=Qr.ci(i,o))&&(this.Ti=this.Ti.ot(a.clientId,a));for(this.bi(),(s=this.storage.getItem(this.Vi))&&(u=this.vi(s))&&this.Si(u),c=0,l=this.Ii;c<l.length;c++)h=l[c],this.mi(h);return this.Ii=[],this.window.addEventListener("unload",function(){return f.Di()}),this.Ei=!0,[2]}})})},t.prototype.oi=function(t){this.setItem(this.Ri,JSON.stringify(t))},t.prototype.Ci=function(){return this.Ni(this.Ti)},t.prototype.Fi=function(t){var e=!1;return this.Ti.forEach(function(n,r){r.activeTargetIds.has(t)&&(e=!0)}),e},t.prototype.xi=function(t){this.$i(t,"pending")},t.prototype.ki=function(t,e,n){this.$i(t,e,n),this.Mi(t)},t.prototype.Oi=function(t){var e="not-current";if(this.Fi(t)){var n=this.storage.getItem(Kr(this.persistenceKey,t));if(n){var r=$r.ci(t,n);r&&(e=r.state)}}return this.Li.hi(t),this.bi(),e},t.prototype.Bi=function(t){this.Li.li(t),this.bi()},t.prototype.qi=function(t){return this.Li.activeTargetIds.has(t)},t.prototype.Ui=function(t){this.removeItem(Kr(this.persistenceKey,t))},t.prototype.Qi=function(t,e,n){this.Wi(t,e,n)},t.prototype.ji=function(t,e,n){var r=this;e.forEach(function(t){r.Mi(t)}),this.currentUser=t,n.forEach(function(t){r.xi(t)})},t.prototype.Ki=function(t){this.Gi(t)},t.prototype.Di=function(){this.Ei&&(this.window.removeEventListener("storage",this.wi),this.removeItem(this.Ai),this.Ei=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return v("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){v("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){v("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.mi=function(t){var e=this,n=t;
2649if(n.storageArea===this.storage){if(v("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Ai)return void g("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.fn.Cs(function(){return r.__awaiter(e,void 0,void 0,function(){var t,e,i,o,a,s;return r.__generator(this,function(r){if(this.Ei){if(null!==n.key)if(this.gi.test(n.key)){if(null==n.newValue)return t=this.zi(n.key),[2,this.Hi(t,null)];if(e=this.Yi(n.key,n.newValue))return[2,this.Hi(e.clientId,e)]}else if(this.Pi.test(n.key)){if(null!==n.newValue&&(i=this.Ji(n.key,n.newValue)))return[2,this.Xi(i)]}else if(this.yi.test(n.key)){if(null!==n.newValue&&(o=this.Zi(n.key,n.newValue)))return[2,this.tr(o)]}else if(n.key===this.Vi){if(null!==n.newValue&&(a=this.vi(n.newValue)))return[2,this.Si(a)]}else n.key===this.Ri&&(s=function(t){var e=Hr.ai;if(null!=t)try{var n=JSON.parse(t);_("number"==typeof n),e=n}catch(t){g("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(n.newValue))!==Hr.ai&&this.si(s)}else this.Ii.push(n);return[2]})})})}},Object.defineProperty(t.prototype,"Li",{get:function(){return this.Ti.get(this._i)},enumerable:!1,configurable:!0}),t.prototype.bi=function(){this.setItem(this.Ai,this.Li.ui())},t.prototype.$i=function(t,e,n){var r=new zr(this.currentUser,t,e,n),i=Gr(this.persistenceKey,this.currentUser,t);this.setItem(i,r.ui())},t.prototype.Mi=function(t){var e=Gr(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Gi=function(t){var e={clientId:this._i,onlineState:t};this.storage.setItem(this.Vi,JSON.stringify(e))},t.prototype.Wi=function(t,e,n){var r=Kr(this.persistenceKey,t),i=new $r(t,e,n);this.setItem(r,i.ui())},t.prototype.zi=function(t){var e=this.gi.exec(t);return e?e[1]:null},t.prototype.Yi=function(t,e){var n=this.zi(t);return Qr.ci(n,e)},t.prototype.Ji=function(t,e){var n=this.Pi.exec(t),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return zr.ci(new qr(i),r,e)},t.prototype.Zi=function(t,e){var n=this.yi.exec(t),r=Number(n[1]);return $r.ci(r,e)},t.prototype.vi=function(t){return Yr.ci(t)},t.prototype.Xi=function(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return t.user.uid===this.currentUser.uid?[2,this.fi.er(t.batchId,t.state,t.error)]:(v("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])})})},t.prototype.tr=function(t){return this.fi.nr(t.targetId,t.state,t.error)},t.prototype.Hi=function(t,e){var n=this,r=e?this.Ti.ot(t,e):this.Ti.remove(t),i=this.Ni(this.Ti),o=this.Ni(r),a=[],s=[];return o.forEach(function(t){i.has(t)||a.push(t)}),i.forEach(function(t){o.has(t)||s.push(t)}),this.fi.sr(a,s).then(function(){n.Ti=r})},t.prototype.Si=function(t){this.Ti.get(t.clientId)&&this.di(t.onlineState)},t.prototype.Ni=function(t){var e=Ft();return t.forEach(function(t,n){e=e.kt(n.activeTargetIds)}),e},t}(),Zr=function(){function t(){this.ir=new Xr,this.rr={},this.di=null,this.si=null}return t.prototype.xi=function(t){},t.prototype.ki=function(t,e,n){},t.prototype.Oi=function(t){return this.ir.hi(t),this.rr[t]||"not-current"},t.prototype.Qi=function(t,e,n){this.rr[t]=e},t.prototype.Bi=function(t){this.ir.li(t)},t.prototype.qi=function(t){return this.ir.activeTargetIds.has(t)},t.prototype.Ui=function(t){delete this.rr[t]},t.prototype.Ci=function(){return this.ir.activeTargetIds},t.prototype.Fi=function(t){return this.ir.activeTargetIds.has(t)},t.prototype.start=function(){return this.ir=new Xr,Promise.resolve()},t.prototype.ji=function(t,e,n){},t.prototype.Ki=function(t){},t.prototype.Di=function(){},t.prototype.oi=function(t){},t}(),ti=function(){function t(t,e,n,r){this.batchId=t,this.ar=e,this.baseMutations=n,this.mutations=r}return t.prototype.cr=function(t,e,n){for(var r=n.ur,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t)&&(e=mn(o,e,r[i]))}return e},t.prototype.hr=function(t,e){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(t)&&(e=yn(i,e,e,this.ar))}for(var o=e,a=0,s=this.mutations;a<s.length;a++){var u=s[a];u.key.isEqual(t)&&(e=yn(u,e,o,this.ar))}return e},t.prototype.lr=function(t){var e=this,n=t;return this.mutations.forEach(function(r){var i=e.hr(r.key,t.get(r.key));i&&(n=n.ot(r.key,i))}),n},t.prototype.keys=function(){return this.mutations.reduce(function(t,e){return t.add(e.key)},Mt())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&J(this.mutations,t.mutations,function(t,e){return _n(t,e)})&&J(this.baseMutations,t.baseMutations,function(t,e){return _n(t,e)})},t}(),ei=function(){function t(t,e,n,r){this.batch=t,this._r=e,this.ur=n,this.dr=r}return t.from=function(e,n,r){_(e.mutations.length===r.length);for(var i=Pt,o=e.mutations,a=0;a<o.length;a++)i=i.ot(o[a].key,r[a].version);return new t(e,n,r,i)},t}(),ni=function(){function t(){this.wr=new st(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),this.mr=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Tr},set:function(t){this.Tr=t}
2649,enumerable:!1,configurable:!0}),t.prototype.Er=function(t,e){this.Ir(),this.readTime=e,this.wr.set(t.key,t)},t.prototype.Ar=function(t,e){this.Ir(),e&&(this.readTime=e),this.wr.set(t,null)},t.prototype.Rr=function(t,e){this.Ir();var n=this.wr.get(e);return void 0!==n?br.resolve(n):this.gr(t,e)},t.prototype.getEntries=function(t,e){return this.Pr(t,e)},t.prototype.apply=function(t){return this.Ir(),this.mr=!0,this.yr(t)},t.prototype.Ir=function(){},t}(),ri="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",ii=function(){function t(){this.Vr=[]}return t.prototype.pr=function(t){this.Vr.push(t)},t.prototype.br=function(){this.Vr.forEach(function(t){return t()})},t}(),oi=function(){function t(t,e,n){this.vr=t,this.Sr=e,this.Dr=n}return t.prototype.Cr=function(t,e){var n=this;return this.Sr.Nr(t,e).next(function(r){return n.Fr(t,e,r)})},t.prototype.Fr=function(t,e,n){return this.vr.Rr(t,e).next(function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].hr(e,t);return t})},t.prototype.$r=function(t,e,n){var r=xt();return e.forEach(function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].hr(t,e);r=r.ot(t,e)}),r},t.prototype.kr=function(t,e){var n=this;return this.vr.getEntries(t,e).next(function(e){return n.Mr(t,e)})},t.prototype.Mr=function(t,e){var n=this;return this.Sr.Or(t,e).next(function(r){var i=n.$r(t,e,r),o=Ot();return i.forEach(function(t,e){e||(e=new Ln(t,ct.min())),o=o.ot(t,e)}),o})},t.prototype.Lr=function(t,e,n){return function(t){return k.F(t.path)&&null===t.collectionGroup&&0===t.filters.length}(e)?this.Br(t,e.path):Wn(e)?this.qr(t,e,n):this.Ur(t,e,n)},t.prototype.Br=function(t,e){return this.Cr(t,new k(e)).next(function(t){var e=Rt();return t instanceof Pn&&(e=e.ot(t.key,t)),e})},t.prototype.qr=function(t,e,n){var r=this,i=e.collectionGroup,o=Rt();return this.Dr.Qr(t,i).next(function(a){return br.forEach(a,function(a){var s=function(t,e){return new jn(e,null,t.on.slice(),t.filters.slice(),t.limit,t.an,t.startAt,t.endAt)}(e,a.child(i));return r.Ur(t,s,n).next(function(t){t.forEach(function(t,e){o=o.ot(t,e)})})}).next(function(){return o})})},t.prototype.Ur=function(t,e,n){var r,i,o=this;return this.vr.Lr(t,e,n).next(function(n){return r=n,o.Sr.Wr(t,e)}).next(function(e){return i=e,o.jr(t,i,r).next(function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var o=n[e],a=0,s=o.mutations;a<s.length;a++){var u=s[a],c=u.key,l=r.get(c),h=yn(u,l,l,o.ar);r=h instanceof Pn?r.ot(c,h):r.remove(c)}})}).next(function(){return r.forEach(function(t,n){Zn(e,n)||(r=r.remove(t))}),r})},t.prototype.jr=function(t,e,n){for(var r=Mt(),i=0,o=e;i<o.length;i++)for(var a=0,s=o[i].mutations;a<s.length;a++){var u=s[a];u instanceof In&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.vr.getEntries(t,r).next(function(t){return t.forEach(function(t,e){null!==e&&e instanceof Pn&&(c=c.ot(t,e))}),c})},t}(),ai=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.Kr=n,this.Gr=r}return t.zr=function(e,n){for(var r=Mt(),i=Mt(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new t(e,n.fromCache,r,i)},t}();
2650/**
2651 * @license
2652 * Copyright 2018 Google LLC
2653 *
2654 * Licensed under the Apache License, Version 2.0 (the "License");
2655 * you may not use this file except in compliance with the License.
2656 * You may obtain a copy of the License at
2657 *
2658 *   http://www.apache.org/licenses/LICENSE-2.0
2659 *
2660 * Unless required by applicable law or agreed to in writing, software
2661 * distributed under the License is distributed on an "AS IS" BASIS,
2662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2663 * See the License for the specific language governing permissions and
2664 * limitations under the License.
2665 */function si(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=X(n,i);return 0===a?X(r,o):a}var ui=function(){function t(t){this.Hr=t,this.buffer=new At(si),this.Yr=0}return t.prototype.Jr=function(){return++this.Yr},t.prototype.Xr=function(t){var e=[t,this.Jr()];if(this.buffer.size<this.Hr)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();si(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]}
2665,enumerable:!1,configurable:!0}),t}(),ci={Zr:!1,eo:0,no:0,so:0},li=function(){function t(t,e,n){this.io=t,this.ro=e,this.oo=n}return t.ao=function(e){return new t(e,t.co,t.uo)},t}();li.ho=-1,li.lo=1048576,li._o=41943040,li.co=10,li.uo=1e3,li.fo=new li(li._o,li.co,li.uo),li.do=new li(li.ho,0,0);var hi=function(){function t(t,e){this.wo=t,this.cs=e,this.mo=!1,this.To=null}return t.prototype.start=function(t){this.wo.params.io!==li.ho&&this.Eo(t)},t.prototype.stop=function(){this.To&&(this.To.cancel(),this.To=null)},Object.defineProperty(t.prototype,"Ei",{get:function(){return null!==this.To},enumerable:!1,configurable:!0}),t.prototype.Eo=function(t){var e=this,n=this.mo?3e5:6e4;v("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.To=this.cs.yn("lru_garbage_collection",n,function(){return r.__awaiter(e,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:this.To=null,this.mo=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Io(this.wo)];case 2:return n.sent(),[3,7];case 3:return Ir(e=n.sent())?(v("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,xo(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.Eo(t)];case 8:return n.sent(),[2]}})})})},t}(),fi=function(){function t(t,e){this.Ao=t,this.params=e}return t.prototype.Ro=function(t,e){return this.Ao.Po(t).next(function(t){return Math.floor(e/100*t)})},t.prototype.yo=function(t,e){var n=this;if(0===e)return br.resolve(Hr.ai);var r=new ui(e);return this.Ao.Ce(t,function(t){return r.Xr(t.sequenceNumber)}).next(function(){return n.Ao.Vo(t,function(t){return r.Xr(t)})}).next(function(){return r.maxValue})},t.prototype.po=function(t,e,n){return this.Ao.po(t,e,n)},t.prototype.bo=function(t,e){return this.Ao.bo(t,e)},t.prototype.vo=function(t,e){var n=this;return this.params.io===li.ho?(v("LruGarbageCollector","Garbage collection skipped; disabled"),br.resolve(ci)):this.So(t).next(function(r){return r<n.params.io?(v("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.io),ci):n.Do(t,e)})},t.prototype.So=function(t){return this.Ao.So(t)},t.prototype.Do=function(t,e){var n,r,i,a,s,u,c,l=this,h=Date.now();return this.Ro(t,this.params.ro).next(function(e){return e>l.params.oo?(v("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.oo+" from "+e),r=l.params.oo):r=e,a=Date.now(),l.yo(t,r)}).next(function(r){return n=r,s=Date.now(),l.po(t,n,e)}).next(function(e){return i=e,u=Date.now(),l.bo(t,n)}).next(function(t){return c=Date.now(),d()<=o.LogLevel.DEBUG&&v("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-h)+"ms\n\tDetermined least recently used "+r+" in "+(s-a)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-h)+"ms"),br.resolve({Zr:!0,eo:r,no:i,so:t})})},t}();
2666/**
2667 * @license
2668 * Copyright 2017 Google LLC
2669 *
2670 * Licensed under the Apache License, Version 2.0 (the "License");
2671 * you may not use this file except in compliance with the License.
2672 * You may obtain a copy of the License at
2673 *
2674 *   http://www.apache.org/licenses/LICENSE-2.0
2675 *
2676 * Unless required by applicable law or agreed to in writing, software
2677 * distributed under the License is distributed on an "AS IS" BASIS,
2678 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2679 * See the License for the specific language governing permissions and
2680 * limitations under the License.
2681 */function pi(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=vi(e)),e=di(t.get(n),e);return vi(e)}function di(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var o=t.charAt(i);switch(o){case"\0":n+="��";break;case"�":n+="��";break;default:n+=o}}return n}function vi(t){return t+"��"}function gi(t){var e=t.length;if(_(e>=2),2===e)return _("�"===t.charAt(0)&&"�"===t.charAt(1)),C.P();for(var n=e-2,r=[],i="",o=0;o<e;){var a=t.indexOf("�",o);switch((a<0||a>n)&&b(),t.charAt(a+1)){case"�":var s=t.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"�":i+=t.substring(o,a),i+="\0";break;case"�":i+=t.substring(o,a+1);break;default:b()}o=a+2}return new C(r)}
2682/**
2683 * @license
2684 * Copyright 2017 Google LLC
2685 *
2686 * Licensed under the Apache License, Version 2.0 (the "License");
2687 * you may not use this file except in compliance with the License.
2688 * You may obtain a copy of the License at
2689 *
2690 *   http://www.apache.org/licenses/LICENSE-2.0
2691 *
2692 * Unless required by applicable law or agreed to in writing, software
2693 * distributed under the License is distributed on an "AS IS" BASIS,
2694 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2695 * See the License for the specific language governing permissions and
2696 * limitations under the License.
2697 */var mi=function(t){this.Co=t};function yi(t,e){if(e.document)return function(t,e,n){var r=Oe(t,e.name),i=Ce(e.updateTime),o=new On({mapValue:{fields:e.fields}});return new Pn(r,i,o,{hasCommittedMutations:!!n})}(t.Co,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=k.$(e.noDocument.path),r=Ii(e.noDocument.readTime);return new Ln(n,r,{hasCommittedMutations:!!e.hasCommittedMutations})}if(e.unknownDocument){var i=k.$(e.unknownDocument.path),o=Ii(e.unknownDocument.version);return new Mn(i,o)}return b()}function bi(t,e,n){var r=_i(n),i=e.key.path.h().A();if(e instanceof Pn){var o=function(t,e){return{name:ke(t,e.key),fields:e.rn().mapValue.fields,updateTime:Ie(t,e.version.Z())}}(t.Co,e),a=e.hasCommittedMutations;return new Qi(null,null,o,a,r,i)}if(e instanceof Ln){var s=e.key.path.A(),u=Ei(e.version),c=e.hasCommittedMutations;return new Qi(null,new zi(s,u),null,c,r,i)}if(e instanceof Mn){var l=e.key.path.A(),h=Ei(e.version);return new Qi(new $i(l,h),null,null,!0,r,i)}return b()}function _i(t){var e=t.Z();return[e.seconds,e.nanoseconds]}function wi(t){var e=new ut(t[0],t[1]);return ct.J(e)}function Ei(t){var e=t.Z();return new qi(e.seconds,e.nanoseconds)}
2697function Ii(t){var e=new ut(t.seconds,t.nanoseconds);return ct.J(e)}function Ti(t,e){var n=(e.baseMutations||[]).map(function(e){return je(t.Co,e)}),r=e.mutations.map(function(e){return je(t.Co,e)}),i=ut.fromMillis(e.localWriteTimeMs);return new ti(e.batchId,i,n,r)}function Si(t){var e,n,r=Ii(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?Ii(t.lastLimboFreeSnapshotVersion):ct.min();return void 0!==t.query.documents?(_(1===(n=t.query).documents.length),e=Kn(Un(De(n.documents[0])))):e=Ve(t.query),new _t(e,t.targetId,0,t.lastListenSequenceNumber,r,i,tt.fromBase64String(t.resumeToken))}function Ci(t,e){var n,r=Ei(e.nt),i=Ei(e.lastLimboFreeSnapshotVersion);n=mt(e.target)?Fe(t.Co,e.target):Ue(t.Co,e.target);var o=e.resumeToken.toBase64();return new Xi(e.targetId,vt(e.target),r,o,e.sequenceNumber,i,n)}
2698/**
2699 * @license
2700 * Copyright 2017 Google LLC
2701 *
2702 * Licensed under the Apache License, Version 2.0 (the "License");
2703 * you may not use this file except in compliance with the License.
2704 * You may obtain a copy of the License at
2705 *
2706 *   http://www.apache.org/licenses/LICENSE-2.0
2707 *
2708 * Unless required by applicable law or agreed to in writing, software
2709 * distributed under the License is distributed on an "AS IS" BASIS,
2710 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2711 * See the License for the specific language governing permissions and
2712 * limitations under the License.
2713 */var Ai=function(){function t(t,e,n,r){this.userId=t,this.serializer=e,this.Dr=n,this.No=r,this.Fo={}}return t.xo=function(e,n,r,i){return _(""!==e.uid),new t(e.Zs()?e.uid:"",n,r,i)},t.prototype.$o=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Oi(t).rs({index:Gi.userMutationsIndex,range:n},function(t,n,r){e=!1,r.done()}).next(function(){return e})},t.prototype.ko=function(t,e,n,r){var i=this,o=xi(t),a=Oi(t);return a.add({}).next(function(s){_("number"==typeof s);for(var u=new ti(s,e,n,r),c=function(t,e,n){var r=n.baseMutations.map(function(e){return Me(t.Co,e)}),i=n.mutations.map(function(e){return Me(t.Co,e)});return new Gi(e,n.batchId,n.ar.toMillis(),r,i)}(i.serializer,i.userId,u),l=[],h=new At(function(t,e){return X(t.R(),e.R())}),f=0,p=r;f<p.length;f++){var d=p[f],v=Ki.key(i.userId,d.key.path,s);h=h.add(d.key.path.h()),l.push(a.put(c)),l.push(o.put(v,Ki.PLACEHOLDER))}return h.forEach(function(e){l.push(i.Dr.Mo(t,e))}),t.pr(function(){i.Fo[s]=u.keys()}),br.$n(l).next(function(){return u})})},t.prototype.Oo=function(t,e){var n=this;return Oi(t).get(e).next(function(t){return t?(_(t.userId===n.userId),Ti(n.serializer,t)):null})},t.prototype.Lo=function(t,e){var n=this;return this.Fo[e]?br.resolve(this.Fo[e]):this.Oo(t,e).next(function(t){if(t){var r=t.keys();return n.Fo[e]=r,r}return null})},t.prototype.Bo=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return Oi(t).rs({index:Gi.userMutationsIndex,range:i},function(t,e,i){e.userId===n.userId&&(_(e.batchId>=r),o=Ti(n.serializer,e)),i.done()}).next(function(){return o})},t.prototype.qo=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return Oi(t).rs({index:Gi.userMutationsIndex,range:e,reverse:!0},function(t,e,r){n=e.batchId,r.done()}).next(function(){return n})},t.prototype.Uo=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Oi(t).ts(Gi.userMutationsIndex,n).next(function(t){return t.map(function(t){return Ti(e.serializer,t)})})},t.prototype.Nr=function(t,e){var n=this,r=Ki.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return xi(t).rs({range:i},function(r,i,a){var s=r[0],u=r[1],c=r[2],l=gi(u);if(s===n.userId&&e.path.isEqual(l))return Oi(t).get(c).next(function(t){if(!t)throw b();_(t.userId===n.userId),o.push(Ti(n.serializer,t))});a.done()}).next(function(){return o})},t.prototype.Or=function(t,e){var n=this,r=new At(X),i=[];return e.forEach(function(e){var o=Ki.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=xi(t).rs({range:a},function(t,i,o){var a=t[0],s=t[1],u=t[2],c=gi(s);a===n.userId&&e.path.isEqual(c)?r=r.add(u):o.done()});i.push(s)}),br.$n(i).next(function(){return n.Qo(t,r)})},t.prototype.Wr=function(t,e){var n=this,r=e.path,i=r.length+1,o=Ki.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new At(X);return xi(t).rs({range:a},function(t,e,o){var a=t[0],u=t[1],c=t[2],l=gi(u);
2713a===n.userId&&r.T(l)?l.length===i&&(s=s.add(c)):o.done()}).next(function(){return n.Qo(t,s)})},t.prototype.Qo=function(t,e){var n=this,r=[],i=[];return e.forEach(function(e){i.push(Oi(t).get(e).next(function(t){if(null===t)throw b();_(t.userId===n.userId),r.push(Ti(n.serializer,t))}))}),br.$n(i).next(function(){return r})},t.prototype.Wo=function(t,e){var n=this;return ki(t.jo,this.userId,e).next(function(r){return t.pr(function(){n.Ko(e.batchId)}),br.forEach(r,function(e){return n.No.Go(t,e)})})},t.prototype.Ko=function(t){delete this.Fo[t]},t.prototype.zo=function(t){var e=this;return this.$o(t).next(function(n){if(!n)return br.resolve();var r=IDBKeyRange.lowerBound(Ki.prefixForUser(e.userId)),i=[];return xi(t).rs({range:r},function(t,n,r){if(t[0]===e.userId){var o=gi(t[1]);i.push(o)}else r.done()}).next(function(){_(0===i.length)})})},t.prototype.Ho=function(t,e){return Ni(t,this.userId,e)},t.prototype.Yo=function(t){var e=this;return Di(t).get(this.userId).next(function(t){return t||new Wi(e.userId,-1,"")})},t}();function Ni(t,e,n){var r=Ki.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return xi(t).rs({range:o,ss:!0},function(t,n,r){var o=t[0],s=t[1];t[2],o===e&&s===i&&(a=!0),r.done()}).next(function(){return a})}function ki(t,e,n){var r=t.store(Gi.store),i=t.store(Ki.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.rs({range:a},function(t,e,n){return s++,n.delete()});o.push(u.next(function(){_(1===s)}));for(var c=[],l=0,h=n.mutations;l<h.length;l++){var f=h[l],p=Ki.key(e,f.key.path,n.batchId);o.push(i.delete(p)),c.push(f.key)}return br.$n(o).next(function(){return c})}function Oi(t){return po.Qn(t,Gi.store)}function xi(t){return po.Qn(t,Ki.store)}function Di(t){return po.Qn(t,Wi.store)}
2714/**
2715 * @license
2716 * Copyright 2017 Google LLC
2717 *
2718 * Licensed under the Apache License, Version 2.0 (the "License");
2719 * you may not use this file except in compliance with the License.
2720 * You may obtain a copy of the License at
2721 *
2722 *   http://www.apache.org/licenses/LICENSE-2.0
2723 *
2724 * Unless required by applicable law or agreed to in writing, software
2725 * distributed under the License is distributed on an "AS IS" BASIS,
2726 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2727 * See the License for the specific language governing permissions and
2728 * limitations under the License.
2729 */var Ri=function(){function t(t,e){this.serializer=t,this.Dr=e}return t.prototype.Er=function(t,e,n){return Mi(t).put(ji(e),n)},t.prototype.Ar=function(t,e){var n=Mi(t),r=ji(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next(function(r){return r.byteSize+=e,n.Jo(t,r)})},t.prototype.Rr=function(t,e){var n=this;return Mi(t).get(ji(e)).next(function(t){return n.Xo(t)})},t.prototype.Zo=function(t,e){var n=this;return Mi(t).get(ji(e)).next(function(t){var e=n.Xo(t);return e?{ta:e,size:Fi(t)}:null})},t.prototype.getEntries=function(t,e){var n=this,r=xt();return this.ea(t,e,function(t,e){var i=n.Xo(e);r=r.ot(t,i)}).next(function(){return r})},t.prototype.na=function(t,e){var n=this,r=xt(),i=new Tt(k.i);return this.ea(t,e,function(t,e){var o=n.Xo(e);o?(r=r.ot(t,o),i=i.ot(t,Fi(e))):(r=r.ot(t,null),i=i.ot(t,0))}).next(function(){return{sa:r,ia:i}})},t.prototype.ea=function(t,e,n){if(e.m())return br.resolve();var r=IDBKeyRange.bound(e.first().path.A(),e.last().path.A()),i=e._t(),o=i.It();return Mi(t).rs({range:r},function(t,e,r){for(var a=k.$(t);o&&k.i(o,a)<0;)n(o,null),o=i.It();o&&o.isEqual(a)&&(n(o,e),o=i.At()?i.It():null),o?r.Xn(o.path.A()):r.done()}).next(function(){for(;o;)n(o,null),o=i.At()?i.It():null})},t.prototype.Lr=function(t,e,n){var r=this,i=Rt(),o=e.path.length+1,a={};if(n.isEqual(ct.min())){var s=e.path.A();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.A(),c=_i(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Qi.collectionReadTimeIndex}return Mi(t).rs(a,function(t,n,a){if(t.length===o){var s=yi(r.serializer,n);e.path.T(s.key.path)?s instanceof Pn&&Zn(e,s)&&(i=i.ot(s.key,s)):a.done()}}).next(function(){return i})},t.prototype.ra=function(t){return new Pi(this,!!t&&t.oa)},t.prototype.aa=function(t){return this.getMetadata(t).next(function(t){return t.byteSize})},t.prototype.getMetadata=function(t){return Li(t).get(Yi.key).next(function(t){return _(!!t),t})},t.prototype.Jo=function(t,e){return Li(t).put(Yi.key,e)},t.prototype.Xo=function(t){if(t){var e=yi(this.serializer,t);return e instanceof Ln&&e.version.isEqual(ct.min())?null:e}return null},t}(),Pi=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).ca=e,r.oa=n,r.ua=new st(function(t){return t.toString()},function(t,e){return t.isEqual(e)}),r}return r.__extends(e,t),e.prototype.yr=function(t){var e=this,n=[],r=0,i=new At(function(t,e){return X(t.R(),e.R())});return this.wr.forEach(function(o,a){var s=e.ua.get(o);if(a){var u=bi(e.ca.serializer,a,e.readTime);i=i.add(o.path.h());var c=Fi(u);r+=c-s,n.push(e.ca.Er(t,o,u))}else if(r-=s,e.oa){var l=bi(e.ca.serializer,new Ln(o,ct.min()),e.readTime);n.push(e.ca.Er(t,o,l))}else n.push(e.ca.Ar(t,o))}
2729),i.forEach(function(r){n.push(e.ca.Dr.Mo(t,r))}),n.push(this.ca.updateMetadata(t,r)),br.$n(n)},e.prototype.gr=function(t,e){var n=this;return this.ca.Zo(t,e).next(function(t){return null===t?(n.ua.set(e,0),null):(n.ua.set(e,t.size),t.ta)})},e.prototype.Pr=function(t,e){var n=this;return this.ca.na(t,e).next(function(t){var e=t.sa;return t.ia.forEach(function(t,e){n.ua.set(t,e)}),e})},e}(ni);function Li(t){return po.Qn(t,Yi.store)}function Mi(t){return po.Qn(t,Qi.store)}function ji(t){return t.path.A()}function Fi(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw b();e=t.noDocument}return JSON.stringify(e).length}
2730/**
2731 * @license
2732 * Copyright 2019 Google LLC
2733 *
2734 * Licensed under the Apache License, Version 2.0 (the "License");
2735 * you may not use this file except in compliance with the License.
2736 * You may obtain a copy of the License at
2737 *
2738 *   http://www.apache.org/licenses/LICENSE-2.0
2739 *
2740 * Unless required by applicable law or agreed to in writing, software
2741 * distributed under the License is distributed on an "AS IS" BASIS,
2742 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2743 * See the License for the specific language governing permissions and
2744 * limitations under the License.
2745 */var Ui=function(){function t(){this.ha=new Vi}return t.prototype.Mo=function(t,e){return this.ha.add(e),br.resolve()},t.prototype.Qr=function(t,e){return br.resolve(this.ha.getEntries(e))},t}(),Vi=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t._(),n=t.h(),r=this.index[e]||new At(C.i),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t._(),n=t.h(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new At(C.i)).A()},t}(),Bi=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;_(n<r&&n>=0&&r<=10);var o=new Tr("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(Hi.store)}(t),function(t){t.createObjectStore(Wi.store,{keyPath:Wi.keyPath}),t.createObjectStore(Gi.store,{keyPath:Gi.keyPath,autoIncrement:!0}).createIndex(Gi.userMutationsIndex,Gi.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Ki.store)}(t),eo(t),function(t){t.createObjectStore(Qi.store)}(t));var a=br.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Ji.store),t.deleteObjectStore(Xi.store),t.deleteObjectStore(Zi.store)}(t),eo(t)),a=a.next(function(){return function(t){var e=t.store(Zi.store),n=new Zi(0,0,ct.min().Z(),0);return e.put(Zi.key,n)}(o)})),n<4&&r>=4&&(0!==n&&(a=a.next(function(){return function(t,e){return e.store(Gi.store).ts().next(function(n){t.deleteObjectStore(Gi.store),t.createObjectStore(Gi.store,{keyPath:Gi.keyPath,autoIncrement:!0}).createIndex(Gi.userMutationsIndex,Gi.userMutationsKeyPath,{unique:!0});var r=e.store(Gi.store),i=n.map(function(t){return r.put(t)});return br.$n(i)})}(t,o)})),a=a.next(function(){!function(t){t.createObjectStore(no.store,{keyPath:no.keyPath})}(t)})),n<5&&r>=5&&(a=a.next(function(){return i.removeAcknowledgedMutations(o)})),n<6&&r>=6&&(a=a.next(function(){return function(t){t.createObjectStore(Yi.store)}(t),i.addDocumentGlobal(o)})),n<7&&r>=7&&(a=a.next(function(){return i.ensureSequenceNumbers(o)})),n<8&&r>=8&&(a=a.next(function(){return i.createCollectionParentIndex(t,o)})),n<9&&r>=9&&(a=a.next(function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Qi.store);e.createIndex(Qi.readTimeIndex,Qi.readTimeIndexPath,{unique:!1}),e.createIndex(Qi.collectionReadTimeIndex,Qi.collectionReadTimeIndexPath,{unique:!1})}(e)})),n<10&&r>=10&&(a=a.next(function(){return i.rewriteCanonicalIds(o)})),a},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Qi.store).rs(function(t,n){e+=Fi(n)}).next(function(){var n=new Yi(e);return t.store(Yi.store).put(Yi.key,n)})},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Wi.store),r=t.store(Gi.store);return n.ts().next(function(n){return br.forEach(n,function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.ts(Gi.userMutationsIndex,i).next(function(r){return br.forEach(r,function(r){_(r.userId===n.userId);var i=Ti(e.serializer,r);return ki(t,n.userId,i).next(function(){})})})})})},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Ji.store),n=t.store(Qi.store);return t.store(Zi.store).get(Zi.key).next(function(t){var r=[];return n.rs(function(n,i){var o=new C(n),a=function(t){return[0,pi(t)]}(o);r.push(e.get(a).next(function(n){return n?br.resolve():function(n){return e.put(new Ji(0,pi(n),t.highestListenSequenceNumber))}(o)}))}).next(function(){return br.$n(r)})})},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(to.store,{keyPath:to.keyPath});var n=e.store(to.store),r=new Vi,i=function(t){if(r.add(t)){var e=t._(),i=t.h();return n.put({collectionId:e,parent:pi(i)})}};return e.store(Qi.store).rs({ss:!0}
2745,function(t,e){var n=new C(t);return i(n.h())}).next(function(){return e.store(Ki.store).rs({ss:!0},function(t,e){t[0];var n=t[1],r=(t[2],gi(n));return i(r.h())})})},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Xi.store);return n.rs(function(t,r){var i=Si(r),o=Ci(e.serializer,i);return n.put(o)})},t}(),qi=function(t,e){this.seconds=t,this.nanoseconds=e},Hi=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Hi.store="owner",Hi.key="owner";var Wi=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Wi.store="mutationQueues",Wi.keyPath="userId";var Gi=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Gi.store="mutations",Gi.keyPath="batchId",Gi.userMutationsIndex="userMutationsIndex",Gi.userMutationsKeyPath=["userId","batchId"];var Ki=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,pi(e)]},t.key=function(t,e,n){return[t,pi(e),n]},t}();Ki.store="documentMutations",Ki.PLACEHOLDER=new Ki;var zi=function(t,e){this.path=t,this.readTime=e},$i=function(t,e){this.path=t,this.version=e},Qi=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Qi.store="remoteDocuments",Qi.readTimeIndex="readTimeIndex",Qi.readTimeIndexPath="readTime",Qi.collectionReadTimeIndex="collectionReadTimeIndex",Qi.
2745collectionReadTimeIndexPath=["parentPath","readTime"];var Yi=function(t){this.byteSize=t};Yi.store="remoteDocumentGlobal",Yi.key="remoteDocumentGlobalKey";var Xi=function(t,e,n,r,i,o,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};Xi.store="targets",Xi.keyPath="targetId",Xi.queryTargetsIndexName="queryTargetsIndex",Xi.queryTargetsKeyPath=["canonicalId","targetId"];var Ji=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Ji.store="targetDocuments",Ji.keyPath=["targetId","path"],Ji.documentTargetsIndex="documentTargetsIndex",Ji.documentTargetsKeyPath=["path","targetId"];var Zi=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Zi.key="targetGlobalKey",Zi.store="targetGlobal";var to=function(t,e){this.collectionId=t,this.parent=e};function eo(t){t.createObjectStore(Ji.store,{keyPath:Ji.keyPath}).createIndex(Ji.documentTargetsIndex,Ji.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Xi.store,{keyPath:Xi.keyPath}).createIndex(Xi.queryTargetsIndexName,Xi.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Zi.store)}to.store="collectionParents",to.keyPath=["collectionId","parent"];var no=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};no.store="clientMetadata",no.keyPath="clientId";var ro=r.__spreadArrays(r.__spreadArrays(r.__spreadArrays([Wi.store,Gi.store,Ki.store,Qi.store,Xi.store,Hi.store,Zi.store,Ji.store],[no.store]),[Yi.store]),[to.store]),io=function(){function t(){this.la=new Vi}return t.prototype.Mo=function(t,e){var n=this;if(!this.la.has(e)){var r=e._(),i=e.h();t.pr(function(){n.la.add(e)});var o={collectionId:r,parent:pi(i)};return oo(t).put(o)}return br.resolve()},t.prototype.Qr=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[Z(e),""],!1,!0);return oo(t).ts(r).next(function(t){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.collectionId!==e)break;n.push(gi(o.parent))}return n})},t}();
2746/**
2747 * @license
2748 * Copyright 2019 Google LLC
2749 *
2750 * Licensed under the Apache License, Version 2.0 (the "License");
2751 * you may not use this file except in compliance with the License.
2752 * You may obtain a copy of the License at
2753 *
2754 *   http://www.apache.org/licenses/LICENSE-2.0
2755 *
2756 * Unless required by applicable law or agreed to in writing, software
2757 * distributed under the License is distributed on an "AS IS" BASIS,
2758 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2759 * See the License for the specific language governing permissions and
2760 * limitations under the License.
2761 */function oo(t){return po.Qn(t,to.store)}
2762/**
2763 * @license
2764 * Copyright 2017 Google LLC
2765 *
2766 * Licensed under the Apache License, Version 2.0 (the "License");
2767 * you may not use this file except in compliance with the License.
2768 * You may obtain a copy of the License at
2769 *
2770 *   http://www.apache.org/licenses/LICENSE-2.0
2771 *
2772 * Unless required by applicable law or agreed to in writing, software
2773 * distributed under the License is distributed on an "AS IS" BASIS,
2774 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2775 * See the License for the specific language governing permissions and
2776 * limitations under the License.
2777 */var ao=function(){function t(t){this._a=t}return t.prototype.next=function(){return this._a+=2,this._a},t.fa=function(){return new t(0)},t.da=function(){return new t(-1)},t}(),so=function(){function t(t,e){this.No=t,this.serializer=e}return t.prototype.wa=function(t){var e=this;return this.ma(t).next(function(n){var r=new ao(n.highestTargetId);return n.highestTargetId=r.next(),e.Ta(t,n).next(function(){return n.highestTargetId})})},t.prototype.Ea=function(t){return this.ma(t).next(function(t){return ct.J(new ut(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.Ia=function(t){return this.ma(t).next(function(t){return t.highestListenSequenceNumber})},t.prototype.Aa=function(t,e,n){var r=this;
2777return this.ma(t).next(function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.Z()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Ta(t,i)})},t.prototype.Ra=function(t,e){var n=this;return this.ga(t,e).next(function(){return n.ma(t).next(function(r){return r.targetCount+=1,n.Pa(e,r),n.Ta(t,r)})})},t.prototype.ya=function(t,e){return this.ga(t,e)},t.prototype.Va=function(t,e){var n=this;return this.pa(t,e.targetId).next(function(){return uo(t).delete(e.targetId)}).next(function(){return n.ma(t)}).next(function(e){return _(e.targetCount>0),e.targetCount-=1,n.Ta(t,e)})},t.prototype.po=function(t,e,n){var r=this,i=0,o=[];return uo(t).rs(function(a,s){var u=Si(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.Va(t,u)))}).next(function(){return br.$n(o)}).next(function(){return i})},t.prototype.Ce=function(t,e){return uo(t).rs(function(t,n){var r=Si(n);e(r)})},t.prototype.ma=function(t){return co(t).get(Zi.key).next(function(t){return _(null!==t),t})},t.prototype.Ta=function(t,e){return co(t).put(Zi.key,e)},t.prototype.ga=function(t,e){return uo(t).put(Ci(this.serializer,e))},t.prototype.Pa=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.ba=function(t){return this.ma(t).next(function(t){return t.targetCount})},t.prototype.va=function(t,e){var n=vt(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return uo(t).rs({range:r,index:Xi.queryTargetsIndexName},function(t,n,r){var o=Si(n);gt(e,o.target)&&(i=o,r.done())}).next(function(){return i})},t.prototype.Sa=function(t,e,n){var r=this,i=[],o=lo(t);return e.forEach(function(e){var a=pi(e.path);i.push(o.put(new Ji(n,a))),i.push(r.No.Da(t,n,e))}),br.$n(i)},t.prototype.Ca=function(t,e,n){var r=this,i=lo(t);return br.forEach(e,function(e){var o=pi(e.path);return br.$n([i.delete([n,o]),r.No.Na(t,n,e)])})},t.prototype.pa=function(t,e){var n=lo(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.Fa=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=lo(t),i=Mt();return r.rs({range:n,ss:!0},function(t,e,n){var r=gi(t[1]),o=new k(r);i=i.add(o)}).next(function(){return i})},t.prototype.Ho=function(t,e){var n=pi(e.path),r=IDBKeyRange.bound([n],[Z(n)],!1,!0),i=0;return lo(t).rs({index:Ji.documentTargetsIndex,ss:!0,range:r},function(t,e,n){var r=t[0];t[1],0!==r&&(i++,n.done())}).next(function(){return i>0})},t.prototype.Ue=function(t,e){return uo(t).get(e).next(function(t){return t?Si(t):null})},t}();
2778/**
2779 * @license
2780 * Copyright 2017 Google LLC
2781 *
2782 * Licensed under the Apache License, Version 2.0 (the "License");
2783 * you may not use this file except in compliance with the License.
2784 * You may obtain a copy of the License at
2785 *
2786 *   http://www.apache.org/licenses/LICENSE-2.0
2787 *
2788 * Unless required by applicable law or agreed to in writing, software
2789 * distributed under the License is distributed on an "AS IS" BASIS,
2790 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2791 * See the License for the specific language governing permissions and
2792 * limitations under the License.
2793 */function uo(t){return po.Qn(t,Xi.store)}function co(t){return po.Qn(t,Zi.store)}function lo(t){return po.Qn(t,Ji.store)}
2794/**
2795 * @license
2796 * Copyright 2017 Google LLC
2797 *
2798 * Licensed under the Apache License, Version 2.0 (the "License");
2799 * you may not use this file except in compliance with the License.
2800 * You may obtain a copy of the License at
2801 *
2802 *   http://www.apache.org/licenses/LICENSE-2.0
2803 *
2804 * Unless required by applicable law or agreed to in writing, software
2805 * distributed under the License is distributed on an "AS IS" BASIS,
2806 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2807 * See the License for the specific language governing permissions and
2808 * limitations under the License.
2809 */var ho="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",fo=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).jo=e,r.xa=n,r}return r.__extends(e,t),e}(ii),po=function(){function t(e,n,r,i,o,a,s,u,c,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.fn=o,this.window=a,this.document=s,this.$a=c,this.ka=l,this.Ma=null,this.Oa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.La=null,this.inForeground=!1,this.Ba=null,this.qa=null,this.Ua=Number.NEGATIVE_INFINITY,this.Qa=function(t){return Promise.resolve()}
2809,!t.Ln())throw new f(h.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.No=new mo(this,i),this.Wa=n+"main",this.serializer=new mi(u),this.ja=new _r(this.Wa,10,new Bi(this.serializer)),this.Ka=new so(this.No,this.serializer),this.Dr=new io,this.vr=function(t,e){return new Ri(t,e)}(this.serializer,this.Dr),this.window&&this.window.localStorage?this.Ga=this.window.localStorage:(this.Ga=null,!1===l&&g("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.Qn=function(t,e){if(t instanceof fo)return _r.Qn(t.jo,e);throw b()},t.prototype.start=function(){var t=this;return this.za().then(function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new f(h.FAILED_PRECONDITION,ho);return t.Ha(),t.Ya(),t.Ja(),t.runTransaction("getHighestListenSequenceNumber","readonly",function(e){return t.Ka.Ia(e)})}).then(function(e){t.Ma=new Hr(e,t.$a)}).then(function(){t.Oa=!0}).catch(function(e){return t.ja&&t.ja.close(),Promise.reject(e)})},t.prototype.Xa=function(t){var e=this;return this.Qa=function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){return this.Ei?[2,t(n)]:[2]})})},t(this.isPrimary)},t.prototype.Za=function(t){var e=this;this.ja.Kn(function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})})},t.prototype.tc=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.fn.ws(function(){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.Ei?[4,this.za()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},t.prototype.za=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(e){return go(e).put(new no(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next(function(){if(t.isPrimary)return t.ec(e).next(function(e){e||(t.isPrimary=!1,t.fn.Cs(function(){return t.Qa(!1)}))})}).next(function(){return t.nc(e)}).next(function(n){return t.isPrimary&&!n?t.sc(e).next(function(){return!1}):!!n&&t.ic(e).next(function(){return!0})})}).catch(function(e){if(Ir(e))return v("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return v("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(function(e){t.isPrimary!==e&&t.fn.Cs(function(){return t.Qa(e)}),t.isPrimary=e})},t.prototype.ec=function(t){var e=this;return vo(t).get(Hi.key).next(function(t){return br.resolve(e.rc(t))})},t.prototype.oc=function(t){return go(t).delete(this.clientId)},t.prototype.ac=function(){return r.__awaiter(this,void 0,void 0,function(){var e,n,i,o,a=this;return r.__generator(this,function(r){switch(r.label){case 0:return!this.isPrimary||this.cc(this.Ua,18e5)?[3,2]:(this.Ua=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(e){var n=t.Qn(e,no.store);return n.ts().next(function(t){var e=a.uc(t,18e5),r=t.filter(function(t){return-1===e.indexOf(t)});return br.forEach(r,function(t){return n.delete(t.clientId)}).next(function(){return r})})}).catch(function(){return[]})]);case 1:if(e=r.sent(),this.Ga)for(n=0,i=e;n<i.length;n++)o=i[n],this.Ga.removeItem(this.hc(o.clientId));r.label=2;case 2:return[2]}})})},t.prototype.Ja=function(){var t=this;this.qa=this.fn.yn("client_metadata_refresh",4e3,function(){return t.za().then(function(){return t.ac()}).then(function(){return t.Ja()})})},t.prototype.rc=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.nc=function(t){var e=this;return this.ka?br.resolve(!0):vo(t).get(Hi.key).next(function(n){if(null!==n&&e.cc(n.leaseTimestampMs,5e3)&&!e.lc(n.ownerId)){if(e.rc(n)&&e.networkEnabled)return!0;if(!e.rc(n)){if(!n.allowTabSynchronization)throw new f(h.FAILED_PRECONDITION,ho);return!1}}return!(!e.networkEnabled||!e.inForeground)||go(t).ts().next(function(t){return void 0===e.uc(t,5e3).find(function(t){if(e.clientId!==t.clientId){var n=!e.networkEnabled&&t.networkEnabled,r=!e.inForeground&&t.inForeground,i=e.networkEnabled===t.networkEnabled;if(n||r&&i)return!0}return!1})})}).next(function(t){return e.isPrimary!==t&&v("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t})},t.prototype.Di=function(){return r.__awaiter(this,void 0,void 0,function(){var t=this;return r.__generator(this,function(e){switch(e.label){case 0:return this.Oa=!1,this._c(),this.qa&&(this.qa.cancel(),this.qa=null),this.fc(),this.dc(),[4,this.ja.runTransaction("shutdown","readwrite",[Hi.store,no.store],function(e){var n=new fo(e,Hr.ai);return t.sc(n).next(function(){return t.oc(n)})})];case 1:return e.sent(),this.ja.close(),this.wc(),[2]}})})},t.prototype.uc=function(t,e){var n=this;return t.filter(function(t){return n.cc(t.updateTimeMs,e)&&!n.lc(t.clientId)})},t.prototype.pi=function(){var t=this;return this.runTransaction("getActiveClients","readonly",function(e){return go(e).ts().next(function(e){return t.uc(e,18e5).map(function(t){return t.clientId})})})},Object.defineProperty(t.prototype,"Ei",{get:function(){return this.Oa}
2809,enumerable:!1,configurable:!0}),t.prototype.mc=function(t){return Ai.xo(t,this.serializer,this.Dr,this.No)},t.prototype.Tc=function(){return this.Ka},t.prototype.Ec=function(){return this.vr},t.prototype.Ic=function(){return this.Dr},t.prototype.runTransaction=function(t,e,n){var r=this;v("IndexedDbPersistence","Starting transaction:",t);var i,o="readonly"===e?"readonly":"readwrite";return this.ja.runTransaction(t,o,ro,function(o){return i=new fo(o,r.Ma?r.Ma.next():Hr.ai),"readwrite-primary"===e?r.ec(i).next(function(t){return!!t||r.nc(i)}).next(function(e){if(!e)throw g("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.fn.Cs(function(){return r.Qa(!1)}),new f(h.FAILED_PRECONDITION,ri);return n(i)}).next(function(t){return r.ic(i).next(function(){return t})}):r.Ac(i).next(function(){return n(i)})}).then(function(t){return i.br(),t})},t.prototype.Ac=function(t){var e=this;return vo(t).get(Hi.key).next(function(t){if(null!==t&&e.cc(t.leaseTimestampMs,5e3)&&!e.lc(t.ownerId)&&!e.rc(t)&&!(e.ka||e.allowTabSynchronization&&t.allowTabSynchronization))throw new f(h.FAILED_PRECONDITION,ho)})},t.prototype.ic=function(t){var e=new Hi(this.clientId,this.allowTabSynchronization,Date.now());return vo(t).put(Hi.key,e)},t.Ln=function(){return _r.Ln()},t.prototype.sc=function(t){var e=this,n=vo(t);return n.get(Hi.key).next(function(t){return e.rc(t)?(v("IndexedDbPersistence","Releasing primary lease."),n.delete(Hi.key)):br.resolve()})},t.prototype.cc=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(g("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.Ha=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ba=function(){t.fn.ws(function(){return t.inForeground="visible"===t.document.visibilityState,t.za()})},this.document.addEventListener("visibilitychange",this.Ba),this.inForeground="visible"===this.document.visibilityState)},t.prototype.fc=function(){this.Ba&&(this.document.removeEventListener("visibilitychange",this.Ba),this.Ba=null)},t.prototype.Ya=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.La=function(){e._c(),e.fn.ws(function(){return e.Di()})},this.window.addEventListener("unload",this.La))},t.prototype.dc=function(){this.La&&(this.window.removeEventListener("unload",this.La),this.La=null)},t.prototype.lc=function(t){var e;try{var n=null!==(null===(e=this.Ga)||void 0===e?void 0:e.getItem(this.hc(t)));return v("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return g("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype._c=function(){if(this.Ga)try{this.Ga.setItem(this.hc(this.clientId),String(Date.now()))}catch(r){g("Failed to set zombie client id.",r)}},t.prototype.wc=function(){if(this.Ga)try{this.Ga.removeItem(this.hc(this.clientId))}catch(r){}},t.prototype.hc=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function vo(t){return po.Qn(t,Hi.store)}function go(t){return po.Qn(t,no.store)}var mo=function(){function t(t,e){this.db=t,this.wo=new fi(this,e)}return t.prototype.Po=function(t){var e=this.Rc(t);return this.db.Tc().ba(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.Rc=function(t){var e=0;return this.Vo(t,function(t){e++}).next(function(){return e})},t.prototype.Ce=function(t,e){return this.db.Tc().Ce(t,e)},t.prototype.Vo=function(t,e){return this.gc(t,function(t,n){return e(n)})},t.prototype.Da=function(t,e,n){return yo(t,n)},t.prototype.Na=function(t,e,n){return yo(t,n)},t.prototype.po=function(t,e,n){return this.db.Tc().po(t,e,n)},t.prototype.Go=function(t,e){return yo(t,e)},t.prototype.Pc=function(t,e){return function(t,e){var n=!1;return Di(t).os(function(r){return Ni(t,r,e).next(function(t){return t&&(n=!0),br.resolve(!t)})}).next(function(){return n})}(t,e)},t.prototype.bo=function(t,e){var n=this,r=this.db.Ec().ra(),i=[],o=0;return this.gc(t,function(a,s){if(s<=e){var u=n.Pc(t,a).next(function(e){if(!e)return o++,r.Rr(t,a).next(function(){return r.Ar(a),lo(t).delete([0,pi(a.path)])})});i.push(u)}}).next(function(){return br.$n(i)}).next(function(){return r.apply(t)}).next(function(){return o}
2809)},t.prototype.removeTarget=function(t,e){var n=e.st(t.xa);return this.db.Tc().ya(t,n)},t.prototype.yc=function(t,e){return yo(t,e)},t.prototype.gc=function(t,e){var n,r=lo(t),i=Hr.ai;return r.rs({index:Ji.documentTargetsIndex},function(t,r){var o=t[0],a=(t[1],r.path),s=r.sequenceNumber;0===o?(i!==Hr.ai&&e(new k(gi(n)),i),i=s,n=a):i=Hr.ai}).next(function(){i!==Hr.ai&&e(new k(gi(n)),i)})},t.prototype.So=function(t){return this.db.Ec().aa(t)},t}();function yo(t,e){return lo(t).put(function(t,e){return new Ji(0,pi(t.path),e)}(e,t.xa))}function bo(t,e){var n=t.projectId;return t.j||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var _o=function(){function t(t,e,n){this.persistence=t,this.Vc=e,this.bc=new Tt(X),this.vc=new st(function(t){return vt(t)},gt),this.Sc=ct.min(),this.Sr=t.mc(n),this.Dc=t.Ec(),this.Ka=t.Tc(),this.Cc=new oi(this.Dc,this.Sr,this.persistence.Ic()),this.Vc.Nc(this.Cc)}return t.prototype.Io=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return t.vo(n,e.bc)})},t}();function wo(t,e){var n=w(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(t){var r=e.batch.keys(),i=n.Dc.ra({oa:!0});return function(t,e,n,r){var i=n.batch,o=i.keys(),a=br.resolve();return o.forEach(function(t){a=a.next(function(){return r.Rr(e,t)}).next(function(e){var o=e,a=n.dr.get(t);_(null!==a),(!o||o.version.L(a)<0)&&(o=i.cr(t,o,n))&&r.Er(o,n._r)})}),a.next(function(){return t.Sr.Wo(e,i)})}(n,t,e,i).next(function(){return i.apply(t)}).next(function(){return n.Sr.zo(t)}).next(function(){return n.Cc.kr(t,r)})})}function Eo(t){var e=w(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",function(t){return e.Ka.Ea(t)})}function Io(t,e){var n=w(t),r=e.nt,i=n.bc;return n.persistence.runTransaction("Apply remote event","readwrite-primary",function(t){var o=n.Dc.ra({oa:!0});i=n.bc;var a=[];e.zt.forEach(function(e,o){var s=i.get(o);if(s){a.push(n.Ka.Ca(t,e.se,o).next(function(){return n.Ka.Sa(t,e.ee,o)}));var u=e.resumeToken;if(u.O()>0){var c=s.it(u,r).st(t.xa);i=i.ot(o,c),function(t,e,n){return _(e.resumeToken.O()>0),0===t.resumeToken.O()||e.nt.X()-t.nt.X()>=3e8||n.ee.size+n.ne.size+n.se.size>0}(s,c,e)&&a.push(n.Ka.ya(t,c))}}});var s=Ot(),u=Mt();if(e.Yt.forEach(function(t,e){u=u.add(t)}),a.push(o.getEntries(t,u).next(function(i){e.Yt.forEach(function(u,c){var l=i.get(u);c instanceof Ln&&c.version.isEqual(ct.min())?(o.Ar(u,r),s=s.ot(u,c)):null==l||c.version.L(l.version)>0||0===c.version.L(l.version)&&l.hasPendingWrites?(o.Er(c,r),s=s.ot(u,c)):v("LocalStore","Ignoring outdated watch update for ",u,". Current version:",l.version," Watch version:",c.version),e.Jt.has(u)&&a.push(n.persistence.No.yc(t,u))})})),!r.isEqual(ct.min())){var c=n.Ka.Ea(t).next(function(e){return n.Ka.Aa(t,t.xa,r)});a.push(c)}return br.$n(a).next(function(){return o.apply(t)}).next(function(){return n.Cc.Mr(t,s)})}).then(function(t){return n.bc=i,t})}function To(t,e){var n=w(t);return n.persistence.runTransaction("Get next mutation batch","readonly",function(t){return void 0===e&&(e=-1),n.Sr.Bo(t,e)})}function So(t,e){var n=w(t);return n.persistence.runTransaction("Allocate target","readwrite",function(t){var r;return n.Ka.va(t,e).next(function(i){return i?(r=i,br.resolve(r)):n.Ka.wa(t).next(function(i){return r=new _t(e,i,0,t.xa),n.Ka.Ra(t,r).next(function(){return r})})})}).then(function(t){var r=n.bc.get(t.targetId);return(null===r||t.nt.L(r.nt)>0)&&(n.bc=n.bc.ot(t.targetId,t),n.vc.set(e,t.targetId)),t})}function Co(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a,s;return r.__generator(this,function(r){switch(r.label){case 0:i=w(t),o=i.bc.get(e),a=n?"readwrite":"readwrite-primary",r.label=1;case 1:return r.trys.push([1,4,,5]),n?[3,3]:[4,i.persistence.runTransaction("Release target",a,function(t){return i.persistence.No.removeTarget(t,o)})];case 2:r.sent(),r.label=3;case 3:return[3,5];case 4:if(!Ir(s=r.sent()))throw s;return v("LocalStore","Failed to update sequence numbers for target "+e+": "+s),[3,5];case 5:return i.bc=i.bc.remove(e),i.vc.delete(o.target),[2]}})})}function Ao(t,e,n){var r=w(t),i=ct.min(),o=Mt();
2809return r.persistence.runTransaction("Execute query","readonly",function(t){return function(t,e,n){var r=w(t),i=r.vc.get(n);return void 0!==i?br.resolve(r.bc.get(i)):r.Ka.va(e,n)}(r,t,Kn(e)).next(function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.Ka.Fa(t,e.targetId).next(function(t){o=t})}).next(function(){return r.Vc.Lr(t,e,n?i:ct.min(),n?o:Mt())}).next(function(t){return{documents:t,Fc:o}})})}function No(t,e){var n=w(t),r=w(n.Ka),i=n.bc.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",function(t){return r.Ue(t,e).next(function(t){return t?t.target:null})})}function ko(t){var e=w(t);return e.persistence.runTransaction("Get new document changes","readonly",function(t){return function(t,e,n){var r=w(t),i=Ot(),o=_i(n),a=Mi(e),s=IDBKeyRange.lowerBound(o,!0);return a.rs({index:Qi.readTimeIndex,range:s},function(t,e){var n=yi(r.serializer,e);i=i.ot(n.key,n),o=e.readTime}).next(function(){return{xc:i,readTime:wi(o)}})}(e.Dc,t,e.Sc)}).then(function(t){var n=t.xc,r=t.readTime;return e.Sc=r,n})}function Oo(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){return[2,(e=w(t)).persistence.runTransaction("Synchronize last document change read time","readonly",function(t){return function(t){var e=Mi(t),n=ct.min();return e.rs({index:Qi.readTimeIndex,reverse:!0},function(t,e,r){e.readTime&&(n=wi(e.readTime)),r.done()}).next(function(){return n})}(t)}).then(function(t){e.Sc=t})]})})}function xo(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){if(t.code!==h.FAILED_PRECONDITION||t.message!==ri)throw t;return v("LocalStore","Unexpectedly lost primary lease"),[2]})})}
2810/**
2811 * @license
2812 * Copyright 2017 Google LLC
2813 *
2814 * Licensed under the Apache License, Version 2.0 (the "License");
2815 * you may not use this file except in compliance with the License.
2816 * You may obtain a copy of the License at
2817 *
2818 *   http://www.apache.org/licenses/LICENSE-2.0
2819 *
2820 * Unless required by applicable law or agreed to in writing, software
2821 * distributed under the License is distributed on an "AS IS" BASIS,
2822 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2823 * See the License for the specific language governing permissions and
2824 * limitations under the License.
2825 */var Do=function(){function t(){this.$c=new At(Ro.kc),this.Mc=new At(Ro.Oc)}return t.prototype.m=function(){return this.$c.m()},t.prototype.Da=function(t,e){var n=new Ro(t,e);this.$c=this.$c.add(n),this.Mc=this.Mc.add(n)},t.prototype.Lc=function(t,e){var n=this;t.forEach(function(t){return n.Da(t,e)})},t.prototype.Na=function(t,e){this.Bc(new Ro(t,e))},t.prototype.qc=function(t,e){var n=this;t.forEach(function(t){return n.Na(t,e)})},t.prototype.Uc=function(t){var e=this,n=new k(new C([])),r=new Ro(n,t),i=new Ro(n,t+1),o=[];return this.Mc.Ft([r,i],function(t){e.Bc(t),o.push(t.key)}),o},t.prototype.Qc=function(){var t=this;this.$c.forEach(function(e){return t.Bc(e)})},t.prototype.Bc=function(t){this.$c=this.$c.delete(t),this.Mc=this.Mc.delete(t)},t.prototype.Wc=function(t){var e=new k(new C([])),n=new Ro(e,t),r=new Ro(e,t+1),i=Mt();return this.Mc.Ft([n,r],function(t){i=i.add(t.key)}),i},t.prototype.Ho=function(t){var e=new Ro(t,0),n=this.$c.$t(e);return null!==n&&t.isEqual(n.key)},t}(),Ro=function(){function t(t,e){this.key=t,this.jc=e}return t.kc=function(t,e){return k.i(t.key,e.key)||X(t.jc,e.jc)},t.Oc=function(t,e){return X(t.jc,e.jc)||k.i(t.key,e.key)},t}(),Po=function(t,e){this.user=e,this.type="OAuth",this.Kc={},this.Kc.Authorization="Bearer "+t},Lo=function(){function t(){this.Gc=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.zc=function(){},t.prototype.Hc=function(t){this.Gc=t,t(qr.UNAUTHENTICATED)},t.prototype.Yc=function(){this.Gc=null},t}(),Mo=function(){function t(t){var e=this;this.Jc=null,this.currentUser=qr.UNAUTHENTICATED,this.Xc=!1,this.Zc=0,this.Gc=null,this.forceRefresh=!1,this.Jc=function(){e.Zc++,e.currentUser=e.tu(),e.Xc=!0,e.Gc&&e.Gc(e.currentUser)},this.Zc=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.Jc):(this.Jc(null),t.get().then(function(t){e.auth=t,e.Jc&&e.auth.addAuthTokenListener(e.Jc)},function(){}))}return t.prototype.getToken=function(){var t=this,e=this.Zc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return t.Zc!==e?(v("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(_("string"==typeof n.accessToken),new Po(n.accessToken,t.currentUser)):null}):Promise.resolve(null)},t.prototype.zc=function(){this.forceRefresh=!0},t.prototype.Hc=function(t){this.Gc=t,this.Xc&&t(this.currentUser)},t.prototype.Yc=function(){this.auth&&this.auth.removeAuthTokenListener(this.Jc),this.Jc=null,this.Gc=null},t.prototype.tu=function(){var t=this.auth&&this.auth.getUid();return _(null===t||"string"==typeof t),new qr(t)},t}(),jo=function(){function t(t,e){this.eu=t,this.nu=e,this.type="FirstParty",this.user=qr.ni}return Object.defineProperty(t.prototype,"Kc",{get:function(){var t={"X-Goog-AuthUser":this.nu},e=this.eu.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),t}
2825,enumerable:!1,configurable:!0}),t}(),Fo=function(){function t(t,e){this.eu=t,this.nu=e}return t.prototype.getToken=function(){return Promise.resolve(new jo(this.eu,this.nu))},t.prototype.Hc=function(t){t(qr.ni)},t.prototype.Yc=function(){},t.prototype.zc=function(){},t}(),Uo=function(){function t(t,e,n,r,i,o){this.fn=t,this.su=n,this.iu=r,this.ru=i,this.listener=o,this.state=0,this.ou=0,this.au=null,this.stream=null,this.ys=new yr(t,e)}return t.prototype.cu=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.uu=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.hu()},t.prototype.stop=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.cu()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.lu=function(){this.state=0,this.ys.reset()},t.prototype._u=function(){var t=this;this.uu()&&null===this.au&&(this.au=this.fn.yn(this.su,6e4,function(){return t.fu()}))},t.prototype.du=function(t){this.wu(),this.stream.send(t)},t.prototype.fu=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){return this.uu()?[2,this.close(0)]:[2]})})},t.prototype.wu=function(){this.au&&(this.au.cancel(),this.au=null)},t.prototype.close=function(t,e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){switch(n.label){case 0:return this.wu(),this.ys.cancel(),this.ou++,3!==t?this.ys.reset():e&&e.code===h.RESOURCE_EXHAUSTED?(g(e.toString()),g("Using maximum backoff delay to prevent overloading the backend."),this.ys.Rn()):e&&e.code===h.UNAUTHENTICATED&&this.ru.zc(),null!==this.stream&&(this.mu(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Tu(e)];case 1:return n.sent(),[2]}})})},t.prototype.mu=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.Eu(this.ou),n=this.ou;this.ru.getToken().then(function(e){t.ou===n&&t.Iu(e)},function(n){e(function(){var e=new f(h.UNKNOWN,"Fetching auth token failed: "+n.message);return t.Au(e)})})},t.prototype.Iu=function(t){var e=this,n=this.Eu(this.ou);this.stream=this.Ru(t),this.stream.gu(function(){n(function(){return e.state=2,e.listener.gu()})}),this.stream.Tu(function(t){n(function(){return e.Au(t)})}),this.stream.onMessage(function(t){n(function(){return e.onMessage(t)})})},t.prototype.hu=function(){var t=this;this.state=4,this.ys.gn(function(){return r.__awaiter(t,void 0,void 0,function(){return r.__generator(this,function(t){return this.state=0,this.start(),[2]})})})},t.prototype.Au=function(t){return v("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.Eu=function(t){var e=this;return function(n){e.fn.ws(function(){return e.ou===t?n():(v("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),Vo=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,a}return r.__extends(e,t),e.prototype.Ru=function(t){return this.iu.Pu("Listen",t)},e.prototype.onMessage=function(t){this.ys.reset();var e=function(t,e){var n;if("targetChange"in e){e.targetChange;var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:b()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Qe?(_(void 0===e||"string"==typeof e),tt.fromBase64String(e||"")):(_(void 0===e||e instanceof Uint8Array),tt.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=e.targetChange.cause,s=a&&function(t){var e=void 0===t.code?h.UNKNOWN:It(t.code);return new f(e,t.message||"")}(a);n=new Kt(r,i,o,s||null)}else if("documentChange"in e){e.documentChange;var u=e.documentChange;u.document,u.document.name,u.document.updateTime;var c=Oe(t,u.document.name),l=Ce(u.document.updateTime),p=new On({mapValue:{fields:u.document.fields}}),d=new Pn(c,l,p,{}),v=u.targetIds||[],g=u.removedTargetIds||[];n=new Wt(v,g,d.key,d)}else if("documentDelete"in e){e.documentDelete;var m=e.documentDelete;m.document;var y=Oe(t,m.document),w=m.readTime?Ce(m.readTime):ct.min(),E=new Ln(y,w),I=m.removedTargetIds||[];n=new Wt([],I,E.key,E)}else if("documentRemove"in e){e.documentRemove;var T=e.documentRemove;T.document;var S=Oe(t,T.document),C=T.removedTargetIds||[];n=new Wt([],C,S,null)}else{if(!("filter"in e))return b();e.filter;var A=e.filter;A.targetId;var N=A.count||0,k=new wt(N),O=A.targetId;n=new Gt(O,k)}return n}(this.serializer,t),n=function(t){if(!("targetChange"in t))return ct.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?ct.min():e.readTime?Ce(e.readTime):ct.min()}(t);return this.listener.yu(e,n)},e.prototype.Vu=function(t){var e={};e.database=Re(this.serializer),e.addTarget=function(t,e){var n,r=e.target;return(n=mt(r)?{documents:Fe(t,r)}:{query:Ue(t,r)}).targetId=e.targetId,e.resumeToken.O()>0&&(n.resumeToken=Te(t,e.resumeToken)),n}(this.serializer,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return b()}}(0,e.et);return null==n?null:{"goog-listen-tags":n}}(this.serializer,t);n&&(e.labels=n),this.du(e)},e.prototype.pu=function(t){var e={};e.database=Re(this.serializer),e.removeTarget=t,this.du(e)},e}(Uo),Bo=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer
2825=i,a.bu=!1,a}return r.__extends(e,t),Object.defineProperty(e.prototype,"vu",{get:function(){return this.bu},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.bu=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.mu=function(){this.bu&&this.Su([])},e.prototype.Ru=function(t){return this.iu.Pu("Write",t)},e.prototype.onMessage=function(t){if(_(!!t.streamToken),this.lastStreamToken=t.streamToken,this.bu){this.ys.reset();var e=function(t,e){return t&&t.length>0?(_(void 0!==e),t.map(function(t){return function(t,e){var n=t.updateTime?Ce(t.updateTime):Ce(e);n.isEqual(ct.min())&&(n=Ce(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new pn(n,r)}(t,e)})):[]}(t.writeResults,t.commitTime),n=Ce(t.commitTime);return this.listener.Du(n,e)}return _(!t.writeResults||0===t.writeResults.length),this.bu=!0,this.listener.Cu()},e.prototype.Nu=function(){var t={};t.database=Re(this.serializer),this.du(t)},e.prototype.Su=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map(function(t){return Me(e.serializer,t)})};this.du(n)},e}(Uo),qo=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.iu=n,i.serializer=r,i.Fu=!1,i}return r.__extends(e,t),e.prototype.xu=function(){if(this.Fu)throw new f(h.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.$u=function(t,e,n){var r=this;return this.xu(),this.credentials.getToken().then(function(i){return r.iu.$u(t,e,n,i)}).catch(function(t){throw t.code===h.UNAUTHENTICATED&&r.credentials.zc(),t})},e.prototype.ku=function(t,e,n){var r=this;return this.xu(),this.credentials.getToken().then(function(i){return r.iu.ku(t,e,n,i)}).catch(function(t){throw t.code===h.UNAUTHENTICATED&&r.credentials.zc(),t})},e.prototype.terminate=function(){this.Fu=!1},e}(function(){}),Ho=function(){function t(t,e){this.cs=t,this.di=e,this.state="Unknown",this.Mu=0,this.Ou=null,this.Lu=!0}return t.prototype.Bu=function(){var t=this;0===this.Mu&&(this.qu("Unknown"),this.Ou=this.cs.yn("online_state_timeout",1e4,function(){return t.Ou=null,t.Uu("Backend didn't respond within 10 seconds."),t.qu("Offline"),Promise.resolve()}))},t.prototype.Qu=function(t){"Online"===this.state?this.qu("Unknown"):(this.Mu++,this.Mu>=1&&(this.Wu(),this.Uu("Connection failed 1 times. Most recent error: "+t.toString()),this.qu("Offline")))},t.prototype.set=function(t){this.Wu(),this.Mu=0,"Online"===t&&(this.Lu=!1),this.qu(t)}
2825,t.prototype.qu=function(t){t!==this.state&&(this.state=t,this.di(t))},t.prototype.Uu=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Lu?(g(e),this.Lu=!1):v("OnlineStateTracker",e)},t.prototype.Wu=function(){null!==this.Ou&&(this.Ou.cancel(),this.Ou=null)},t}(),Wo=function(t,e,n,i,o){var a=this;this.ju=t,this.Ku=e,this.cs=n,this.Gu={},this.zu=[],this.Hu=new Map,this.Yu=new Set,this.Ju=[],this.Xu=o,this.Xu.Zu(function(t){n.ws(function(){return r.__awaiter(a,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return ta(this)?(v("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return(e=w(t)).Yu.add(4),[4,Ko(e)];case 1:return n.sent(),e.th.set("Unknown"),e.Yu.delete(4),[4,Go(e)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})}),this.th=new Ho(n,i)};function Go(t){return r.__awaiter(this,void 0,void 0,function(){var e,n;return r.__generator(this,function(r){switch(r.label){case 0:if(!ta(t))return[3,4];e=0,n=t.Ju,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function Ko(t){return r.__awaiter(this,void 0,void 0,function(){var e,n;return r.__generator(this,function(r){switch(r.label){case 0:e=0,n=t.Ju,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}})})}function zo(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return e=w(t),v("RemoteStore","RemoteStore shutting down."),e.Yu.add(5),[4,Ko(e)];case 1:return n.sent(),e.Xu.Di(),e.th.set("Unknown"),[2]}})})}function $o(t,e){var n=w(t);n.Hu.has(e.targetId)||(n.Hu.set(e.targetId,e),Zo(n)?Jo(n):va(n).uu()&&Yo(n,e))}function Qo(t,e){var n=w(t),r=va(n);n.Hu.delete(e),r.uu()&&Xo(n,e),0===n.Hu.size&&(r.uu()?r._u():ta(n)&&n.th.set("Unknown"))}function Yo(t,e){t.eh.Ie(e.targetId),va(t).Vu(e)}function Xo(t,e){t.eh.Ie(e),va(t).pu(e)}function Jo(t){t.eh=new $t({qe:function(e){return t.Gu.qe(e)},Ue:function(e){return t.Hu.get(e)||null}}),va(t).start(),t.th.Bu()}function Zo(t){return ta(t)&&!va(t).cu()&&t.Hu.size>0}function ta(t){return 0===w(t).Yu.size}function ea(t){t.eh=void 0}function na(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return t.Hu.forEach(function(e,n){Yo(t,e)}),[2]})})}function ra(t,e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){return ea(t),Zo(t)?(t.th.Qu(e),Jo(t)):t.th.set("Unknown"),[2]})})}function ia(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a;return r.__generator(this,function(s){switch(s.label){case 0:if(t.th.set("Online"),!(e instanceof Kt&&2===e.state&&e.cause))return[3,6];s.label=1;case 1:return s.trys.push([1,3,,5]),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a;return r.__generator(this,function(r){switch(r.label){case 0:n=e.cause,i=0,o=e.targetIds,r.label=1;case 1:return i<o.length?(a=o[i],t.Hu.has(a)?[4,t.Gu.nh(a,n)]:[3,3]):[3,5];case 2:r.sent(),t.Hu.delete(a),t.eh.removeTarget(a),r.label=3;case 3:r.label=4;case 4:return i++,[3,1];case 5:return[2]}})})}(t,e)];case 2:return s.sent(),[3,5];case 3:return i=s.sent(),v("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),i),[4,oa(t,i)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof Wt?t.eh.be(e):e instanceof Gt?t.eh.$e(e):t.eh.De(e),n.isEqual(ct.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,Eo(t.ju)];case 8:return o=s.sent(),n.L(o)>=0?[4,function(t,e){var n=t.eh.Oe(e);return n.zt.forEach(function(n,r){if(n.resumeToken.O()>0){var i=t.Hu.get(r);i&&t.Hu.set(r,i.it(n.resumeToken,e))}}),n.Ht.forEach(function(e){var n=t.Hu.get(e);if(n){t.Hu.set(e,n.it(tt.B,n.nt)),Xo(t,e);var r=new _t(n.target,e,1,n.sequenceNumber);Yo(t,r)}}),t.Gu.sh(n)}(t,n)]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return v("RemoteStore","Failed to raise snapshot:",a=s.sent()),[4,oa(t,a)];case 12:return s.sent(),[3,13];case 13:return[2]}})})}function oa(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i=this;return r.__generator(this,function(o){switch(o.label){case 0:if(!Ir(e))throw e;return t.Yu.add(1),[4,Ko(t)];case 1:return o.sent(),t.th.set("Offline"),n||(n=function(){return Eo(t.ju)}),t.cs.Cs(function(){return r.__awaiter(i,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return v("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Yu.delete(1),[4,Go(t)];case 2:return e.sent(),[2]}})})}),[2]}})})}function aa(t,e){return e().catch(function(n){return oa(t,n,e)})}function sa(t){return r.__awaiter(this,void 0,void 0,function(){var e,n,i,o,a;return r.__generator(this,function(r){switch(r.label){case 0:e=w(t),n=ga(e),i=e.zu.length>0?e.zu[e.zu.length-1].batchId:-1,r.label=1;case 1:if(!function(t){return ta(t)&&t.zu.length<10}(e))return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,To(e.ju,i)];case 3:return null===(o=r.sent())?(0===e.zu.length&&n._u(),[3,7]):(i=o.batchId,function(t,e){t.zu.push(e);var n=ga(t);n.uu()&&n.vu&&n.Su(e.mutations)}(e,o),[3,6]);case 4:return a=r.sent(),[4,oa(e,a)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return ua(e)&&ca(e),[2]}})})}function ua(t){return ta(t)&&!ga(t).cu()&&t.zu.length>0}function ca(t){ga(t).start()}function la(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return ga(t).Nu(),[2]})})}function ha(t){return r.__awaiter(this,void 0,void 0,function(){var e,n,i,o;return r.__generator(this,function(r){for(e=ga(t),n=0,i=t.zu;n<i.length;n++)o=i[n],e.Su(o.mutations);return[2]})})}function fa(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o;return r.__generator(this,function(r){switch(r.label){case 0:return i=t.zu.shift(),o=ei.from(i,e,n),[4,aa(t,function(){return t.Gu.ih(o)})];case 1:return r.sent(),[4,sa(t)];case 2:return r.sent(),[2]}})})}function pa(t,e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){switch(n.label){case 0:return e&&ga(t).vu?[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(r){switch(r.label){case 0:return Et(i=e.code)&&i!==h.ABORTED?(n=t.zu.shift(),ga(t).lu(
2825),[4,aa(t,function(){return t.Gu.rh(n.batchId,e)})]):[3,3];case 1:return r.sent(),[4,sa(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return ua(t)&&ca(t),[2]}})})}function da(t,e){return r.__awaiter(this,void 0,void 0,function(){var n;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),e?(n.Yu.delete(2),[4,Go(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return e?[3,4]:(n.Yu.add(2),[4,Ko(n)]);case 3:r.sent(),n.th.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}})})}function va(t){var e=this;return t.oh||(t.oh=function(t,e,n){var r=w(t);return r.xu(),new Vo(e,r.iu,r.credentials,r.serializer,n)}(t.Ku,t.cs,{gu:na.bind(null,t),Tu:ra.bind(null,t),yu:ia.bind(null,t)}),t.Ju.push(function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return n?(t.oh.lu(),Zo(t)?Jo(t):t.th.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.oh.stop()];case 2:e.sent(),ea(t),e.label=3;case 3:return[2]}})})})),t.oh}function ga(t){var e=this;return t.ah||(t.ah=function(t,e,n){var r=w(t);return r.xu(),new Bo(e,r.iu,r.credentials,r.serializer,n)}(t.Ku,t.cs,{gu:la.bind(null,t),Tu:pa.bind(null,t),Cu:ha.bind(null,t),Du:fa.bind(null,t)}),t.Ju.push(function(n){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return n?(t.ah.lu(),[4,sa(t)]):[3,2];case 1:return e.sent(),[3,4];case 2:return[4,t.ah.stop()];case 3:e.sent(),t.zu.length>0&&(v("RemoteStore","Stopping write stream with "+t.zu.length+" pending writes"),t.zu=[]),e.label=4;case 4:return[2]}})})})),t.ah
2826/**
2827 * @license
2828 * Copyright 2017 Google LLC
2829 *
2830 * Licensed under the Apache License, Version 2.0 (the "License");
2831 * you may not use this file except in compliance with the License.
2832 * You may obtain a copy of the License at
2833 *
2834 *   http://www.apache.org/licenses/LICENSE-2.0
2835 *
2836 * Unless required by applicable law or agreed to in writing, software
2837 * distributed under the License is distributed on an "AS IS" BASIS,
2838 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2839 * See the License for the specific language governing permissions and
2840 * limitations under the License.
2841 */}var ma=function(t){this.key=t},ya=function(t){this.key=t},ba=function(){function t(t,e){this.query=t,this.uh=e,this.hh=null,this.te=!1,this.lh=Mt(),this.Wt=Mt(),this._h=tr(t),this.fh=new Ut(this._h)}return Object.defineProperty(t.prototype,"dh",{get:function(){return this.uh},enumerable:!1,configurable:!0}),t.prototype.wh=function(t,e){var n=this,r=e?e.mh:new Vt,i=e?e.fh:this.fh,o=e?e.Wt:this.Wt,a=i,s=!1,u=Vn(this.query)&&i.size===this.query.limit?i.last():null,c=Bn(this.query)&&i.size===this.query.limit?i.first():null;if(t.ht(function(t,e){var l=i.get(t),h=e instanceof Pn?e:null;h&&(h=Zn(n.query,h)?h:null);var f=!!l&&n.Wt.has(l.key),p=!!h&&(h.Je||n.Wt.has(h.key)&&h.hasCommittedMutations),d=!1;l&&h?l.data().isEqual(h.data())?f!==p&&(r.track({type:3,doc:h}),d=!0):n.Th(l,h)||(r.track({type:2,doc:h}),d=!0,(u&&n._h(h,u)>0||c&&n._h(h,c)<0)&&(s=!0)):!l&&h?(r.track({type:0,doc:h}),d=!0):l&&!h&&(r.track({type:1,doc:l}),d=!0,(u||c)&&(s=!0)),d&&(h?(a=a.add(h),o=p?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))}),Vn(this.query)||Bn(this.query))for(;a.size>this.query.limit;){var l=Vn(this.query)?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{fh:a,mh:r,Eh:s,Wt:o}},t.prototype.Th=function(t,e){return t.Je&&e.hasCommittedMutations&&!e.Je},t.prototype.yr=function(t,e,n){var r=this,i=this.fh;this.fh=t.fh,this.Wt=t.Wt;var o=t.mh.Ut();o.sort(function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return b()}};return n(t)-n(e)}(t.type,e.type)||r._h(t.doc,e.doc)}),this.Ih(n);var a=e?this.Ah():[],s=0===this.lh.size&&this.te?1:0,u=s!==this.hh;return this.hh=s,0!==o.length||u?{snapshot:new Bt(this.query,t.fh,i,o,t.Wt,0===s,u,!1),Rh:a}:{Rh:a}},t.prototype.Qs=function(t){return this.te&&"Offline"===t?(this.te=!1,this.yr({fh:this.fh,mh:new Vt,Wt:this.Wt,Eh:!1},!1)):{Rh:[]}},t.prototype.gh=function(t){return!this.uh.has(t)&&!!this.fh.has(t)&&!this.fh.get(t).Je},t.prototype.Ih=function(t){var e=this;t&&(t.ee.forEach(function(t){return e.uh=e.uh.add(t)}),t.ne.forEach(function(t){}),t.se.forEach(function(t){return e.uh=e.uh.delete(t)}),this.te=t.te)},t.prototype.Ah=function(){var t=this;if(!this.te)return[];var e=this.lh;
2841this.lh=Mt(),this.fh.forEach(function(e){t.gh(e.key)&&(t.lh=t.lh.add(e.key))});var n=[];return e.forEach(function(e){t.lh.has(e)||n.push(new ya(e))}),this.lh.forEach(function(t){e.has(t)||n.push(new ma(t))}),n},t.prototype.Ph=function(t){this.uh=t.Fc,this.lh=Mt();var e=this.wh(t.documents);return this.yr(e,!0)},t.prototype.yh=function(){return Bt.Gt(this.query,this.fh,this.Wt,0===this.hh)},t}(),_a=function(t,e,n){this.query=t,this.targetId=e,this.view=n},wa=function(t){this.key=t,this.Vh=!1},Ea=function(){function t(t,e,n,r,i,o){this.ju=t,this.ph=e,this.bh=n,this.Sh=r,this.currentUser=i,this.Dh=o,this.Ch={},this.Nh=new st(function(t){return Xn(t)},Yn),this.Fh=new Map,this.xh=[],this.$h=new Tt(k.i),this.kh=new Map,this.Mh=new Do,this.Oh={},this.Lh=new Map,this.Bh=ao.da(),this.onlineState="Unknown",this.qh=void 0}return Object.defineProperty(t.prototype,"Uh",{get:function(){return!0===this.qh},enumerable:!1,configurable:!0}),t}();function Ia(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s,u;return r.__generator(this,function(r){switch(r.label){case 0:return n=Qa(t),(a=n.Nh.get(e))?(i=a.targetId,n.Sh.Oi(i),o=a.view.yh(),[3,4]):[3,1];case 1:return[4,So(n.ju,Kn(e))];case 2:return s=r.sent(),u=n.Sh.Oi(s.targetId),i=s.targetId,[4,Ta(n,e,i,"current"===u)];case 3:o=r.sent(),n.Uh&&$o(n.ph,s),r.label=4;case 4:return[2,o]}})})}function Ta(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,a,s,u,c,l;return r.__generator(this,function(h){switch(h.label){case 0:return t.Qh=function(e,n,i){return function(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,a,s;return r.__generator(this,function(r){switch(r.label){case 0:return o=e.view.wh(n),o.Eh?[4,Ao(t.ju,e.query,!1).then(function(t){var n=t.documents;return e.view.wh(n,o)})]:[3,2];case 1:o=r.sent(),r.label=2;case 2:return a=i&&i.zt.get(e.targetId),s=e.view.yr(o,t.Uh,a),[2,(La(t,e.targetId,s.Rh),s.snapshot)]}})})}(t,e,n,i)},[4,Ao(t.ju,e,!0)];case 1:return o=h.sent(),a=new ba(e,o.Fc),s=a.wh(o.documents),u=Ht.Zt(n,i&&"Offline"!==t.onlineState),c=a.yr(s,t.Uh,u),La(t,n,c.Rh),l=new _a(e,n,a),[2,(t.Nh.set(e,l),t.Fh.has(n)?t.Fh.get(n).push(e):t.Fh.set(n,[e]),c.snapshot)]}})})}function Sa(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=n.Nh.get(e),(o=n.Fh.get(i.targetId)).length>1?[2,(n.Fh.set(i.targetId,o.filter(function(t){return!Yn(t,e)})),void n.Nh.delete(e))]:n.Uh?(n.Sh.Bi(i.targetId),n.Sh.Fi(i.targetId)?[3,2]:[4,Co(n.ju,i.targetId,!1).then(function(){n.Sh.Ui(i.targetId),Qo(n.ph,i.targetId),Ra(n,i.targetId)}).catch(xo)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return Ra(n,i.targetId),[4,Co(n.ju,i.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}})})}function Ca(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,Io(n.ju,e)];case 2:return i=r.sent(),e.zt.forEach(function(t,e){var r=n.kh.get(e);r&&(_(t.ee.size+t.ne.size+t.se.size<=1),t.ee.size>0?r.Vh=!0:t.ne.size>0?_(r.Vh):t.se.size>0&&(_(r.Vh),r.Vh=!1))}),[4,Fa(n,i,e)];case 3:return r.sent(),[3,6];case 4:return[4,xo(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function Aa(t,e,n){var r=w(t);if(r.Uh&&0===n||!r.Uh&&1===n){var i=[];r.Nh.forEach(function(t,n){var r=n.view.Qs(e);r.snapshot&&i.push(r.snapshot)}),function(t,e){var n=w(t);n.onlineState=e;var r=!1;n.Bs.forEach(function(t,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].Qs(e)&&(r=!0)}),r&&Vr(n)}(r.bh,e),i.length&&r.Ch.yu(i),r.onlineState=e,r.Uh&&r.Sh.Ki(e)}}function Na(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a,s,u,c;return r.__generator(this,function(r){switch(r.label){case 0:return(i=w(t)).Sh.Qi(e,"rejected",n),o=i.kh.get(e),(a=o&&o.key)?(s=(s=new Tt(k.i)).ot(a,new Ln(a,ct.min())),u=Mt().add(a),c=new qt(ct.min(),new Map,new At(X),s,u),[4,Ca(i,c)]):[3,2];case 1:return r.sent(),i.$h=i.$h.remove(a),i.kh.delete(e),ja(i),[3,4];case 2:return[4,Co(i.ju,e,!1).then(function(){return Ra(i,e,n)}).catch(xo)];case 3:r.sent(),r.label=4;case 4:return[2]}})})}function ka(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),i=e.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,wo(n.ju,e)];case 2:return o=r.sent(),Da(n,i,null),xa(n,i),n.Sh.ki(i,"acknowledged"),[4,Fa(n,o)];case 3:return r.sent(),[3,6];case 4:return[4,xo(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}function Oa(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o;return r.__generator(this,function(r){switch(r.label){case 0:i=w(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,function(t,e){var n=w(t);return n.persistence.runTransaction("Reject batch","readwrite-primary",function(t){var r;return n.Sr.Oo(t,e).next(function(e){return _(null!==e),r=e.keys(),n.Sr.Wo(t,e)}).next(function(){return n.Sr.zo(t)}).next(function(){return n.Cc.kr(t,r)})})}(i.ju,e)];case 2:return o=r.sent(),Da(i,e,n),xa(i,e),i.Sh.ki(e,"rejected",n),[4,Fa(i,o)];case 3:return r.sent(),[3,6];case 4:return[4,xo(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}})})}
2841function xa(t,e){(t.Lh.get(e)||[]).forEach(function(t){t.resolve()}),t.Lh.delete(e)}function Da(t,e,n){var r=w(t),i=r.Oh[r.currentUser.ti()];if(i){var o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.Oh[r.currentUser.ti()]=i}}function Ra(t,e,n){void 0===n&&(n=null),t.Sh.Bi(e);for(var r=0,i=t.Fh.get(e);r<i.length;r++){var o=i[r];t.Nh.delete(o),n&&t.Ch.Wh(o,n)}t.Fh.delete(e),t.Uh&&t.Mh.Uc(e).forEach(function(e){t.Mh.Ho(e)||Pa(t,e)})}function Pa(t,e){var n=t.$h.get(e);null!==n&&(Qo(t.ph,n),t.$h=t.$h.remove(e),t.kh.delete(n),ja(t))}function La(t,e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof ma?(t.Mh.Da(o.key,e),Ma(t,o)):o instanceof ya?(v("SyncEngine","Document no longer in limbo: "+o.key),t.Mh.Na(o.key,e),t.Mh.Ho(o.key)||Pa(t,o.key)):b()}}function Ma(t,e){var n=e.key;t.$h.get(n)||(v("SyncEngine","New document in limbo: "+n),t.xh.push(n),ja(t))}function ja(t){for(;t.xh.length>0&&t.$h.size<t.Dh;){var e=t.xh.shift(),n=t.Bh.next();t.kh.set(n,new wa(e)),t.$h=t.$h.ot(e,n),$o(t.ph,new _t(Kn(Un(e.path)),n,2,Hr.ai))}}function Fa(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a,s;return r.__generator(this,function(u){switch(u.label){case 0:return i=w(t),o=[],a=[],s=[],i.Nh.m()?[3,3]:(i.Nh.forEac
2841h(function(t,r){s.push(i.Qh(r,e,n).then(function(t){if(t){i.Uh&&i.Sh.Qi(r.targetId,t.fromCache?"not-current":"current"),o.push(t);var e=ai.zr(r.targetId,t);a.push(e)}}))}),[4,Promise.all(s)]);case 1:return u.sent(),i.Ch.yu(o),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,h;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(t){return br.forEach(e,function(e){return br.forEach(e.Kr,function(r){return n.persistence.No.Da(t,e.targetId,r)}).next(function(){return br.forEach(e.Gr,function(r){return n.persistence.No.Na(t,e.targetId,r)})})})})];case 2:return r.sent(),[3,4];case 3:if(!Ir(i=r.sent()))throw i;return v("LocalStore","Failed to update sequence numbers: "+i),[3,4];case 4:for(o=0,a=e;o<a.length;o++)s=a[o],u=s.targetId,s.fromCache||(c=n.bc.get(u),l=c.nt,h=c.rt(l),n.bc=n.bc.ot(u,h));return[2]}})})}(i.ju,a)];case 2:u.sent(),u.label=3;case 3:return[2]}})})}function Ua(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(o){switch(o.label){case 0:return(n=w(t)).currentUser.isEqual(e)?[3,3]:(v("SyncEngine","User change. New user:",e.ti()),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=n.Sr,o=n.Cc,[4,n.persistence.runTransaction("Handle user change","readonly",function(t){var r;return n.Sr.Uo(t).next(function(a){return r=a,i=n.persistence.mc(e),o=new oi(n.Dc,i,n.persistence.Ic()),i.Uo(t)}).next(function(e){for(var n=[],i=[],a=Mt(),s=0,u=r;s<u.length;s++){var c=u[s];n.push(c.batchId);for(var l=0,h=c.mutations;l<h.length;l++){var f=h[l];a=a.add(f.key)}}for(var p=0,d=e;p<d.length;p++){var v=d[p];i.push(v.batchId);for(var g=0,m=v.mutations;g<m.length;g++){var y=m[g];a=a.add(y.key)}}return o.kr(t,a).next(function(t){return{jh:t,Kh:n,Gh:i}})})})];case 1:return a=r.sent(),[2,(n.Sr=i,n.Cc=o,n.Vc.Nc(n.Cc),a)]}})})}(n.ju,e)]);case 1:return i=o.sent(),n.currentUser=e,function(t,e){t.Lh.forEach(function(t){t.forEach(function(t){t.reject(new f(h.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),t.Lh.clear()}(n),n.Sh.ji(e,i.Kh,i.Gh),[4,Fa(n,i.jh)];case 2:o.sent(),o.label=3;case 3:return[2]}})})}function Va(t,e){var n=w(t),r=n.kh.get(e);if(r&&r.Vh)return Mt().add(r.key);var i=Mt(),o=n.Fh.get(e);if(!o)return i;for(var a=0,s=o;a<s.length;a++){var u=s[a],c=n.Nh.get(u);i=i.kt(c.view.dh)}return i}function Ba(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:return[4,Ao((n=w(t)).ju,e.query,!0)];case 1:return i=r.sent(),o=e.view.Ph(i),[2,(n.Uh&&La(n,e.targetId,o.Rh),o)]}})})}function qa(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,a;return r.__generator(this,function(r){switch(r.label){case 0:return[4,function(t,e){var n=w(t),r=w(n.Sr);return n.persistence.runTransaction("Lookup mutation documents","readonly",function(t){return r.Lo(t,e).next(function(e){return e?n.Cc.kr(t,e):br.resolve(null)})})}((o=w(t)).ju,e)];case 1:return null===(a=r.sent())?[3,6]:"pending"!==n?[3,3]:[4,sa(o.ph)];case 2:return r.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(Da(o,e,i||null),xa(o,e),function(t,e){w(w(t).Sr).Ko(e)}(o.ju,e)):b(),r.label=4;case 4:return[4,Fa(o,a)];case 5:return r.sent(),[3,7];case 6:v("SyncEngine","Cannot apply mutation batch with id: "+e),r.label=7;case 7:return[2]}})})}function Ha(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l;return r.__generator(this,function(r){switch(r.label){case 0:return Qa(n=w(t)),Ya(n),!0!==e||!0===n.qh?[3,3]:(i=n.Sh.Ci(),[4,Wa(n,i.A())]);case 1:return o=r.sent(),n.qh=!0,[4,da(n.ph,!0)];case 2:for(r.sent(),a=0,s=o;a<s.length;a++)u=s[a],$o(n.ph,u);return[3,7];case 3:return!1!==e||!1===n.qh?[3,7]:(c=[],l=Promise.resolve(),n.Fh.forEach(function(t,e){n.Sh.qi(e)?c.push(e):l=l.then(function(){return Ra(n,e),Co(n.ju,e,!0)}),Qo(n.ph,e)}),[4,l]);case 4:return r.sent(),[4,Wa(n,c)];case 5:return r.sent(),function(t){var e=w(t);
2841e.kh.forEach(function(t,n){Qo(e.ph,n)}),e.Mh.Qc(),e.kh=new Map,e.$h=new Tt(k.i)}(n),n.qh=!1,[4,da(n.ph,!1)];case 6:r.sent(),r.label=7;case 7:return[2]}})})}function Wa(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,h,f,p,d,v,g;return r.__generator(this,function(r){switch(r.label){case 0:n=w(t),i=[],o=[],a=0,s=e,r.label=1;case 1:return a<s.length?(u=s[a],c=void 0,(l=n.Fh.get(u))&&0!==l.length?[4,So(n.ju,Kn(l[0]))]:[3,7]):[3,13];case 2:c=r.sent(),h=0,f=l,r.label=3;case 3:return h<f.length?(p=f[h],d=n.Nh.get(p),[4,Ba(n,d)]):[3,6];case 4:(v=r.sent()).snapshot&&o.push(v.snapshot),r.label=5;case 5:return h++,[3,3];case 6:return[3,11];case 7:return[4,No(n.ju,u)];case 8:return g=r.sent(),[4,So(n.ju,g)];case 9:return c=r.sent(),[4,Ta(n,Ga(g),u,!1)];case 10:r.sent(),r.label=11;case 11:i.push(c),r.label=12;case 12:return a++,[3,1];case 13:return[2,(n.Ch.yu(o),i)]}})})}function Ga(t){return Fn(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function Ka(t){var e=w(t);return w(w(e.ju).persistence).pi()}function za(t,e,n,i){return r.__awaiter(this,void 0,void 0,function(){var o,a,s;return r.__generator(this,function(r){switch(r.label){case 0:return(o=w(t)).qh?(v("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!o.Fh.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,ko(o.ju)];case 3:return a=r.sent(),s=qt.Xt(e,"current"===n),[4,Fa(o,a,s)];case 4:return r.sent(),[3,8];case 5:return[4,Co(o.ju,e,!0)];case 6:return r.sent(),Ra(o,e,i),[3,8];case 7:b(),r.label=8;case 8:return[2]}})})}function $a(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a,s,u,c,l,h,f,p;return r.__generator(this,function(d){switch(d.label){case 0:if(!(i=Qa(t)).qh)return[3,10];o=0,a=e,d.label=1;case 1:return o<a.length?(s=a[o],i.Fh.has(s)?(v("SyncEngine","Adding an already active target "+s),[3,5]):[4,No(i.ju,s)]):[3,6];case 2:return u=d.sent(),[4,So(i.ju,u)];case 3:return c=d.sent(),[4,Ta(i,Ga(u),c.targetId,!1)];case 4:d.sent(),$o(i.ph,c),d.label=5;case 5:return o++,[3,1];case 6:l=function(t){return r.__generator(this,function(e){switch(e.label){case 0:return i.Fh.has(t)?[4,Co(i.ju,t,!1).then(function(){Qo(i.ph,t),Ra(i,t)}).catch(xo)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})},h=0,f=n,d.label=7;case 7:return h<f.length?(p=f[h],[5,l(p)]):[3,10];case 8:d.sent(),d.label=9;case 9:return h++,[3,7];case 10:return[2]}})})}function Qa(t){var e=w(t);return e.ph.Gu.sh=Ca.bind(null,e),e.ph.Gu.qe=Va.bind(null,e),e.ph.Gu.nh=Na.bind(null,e),e.Ch.yu=Fr.bind(null,e.bh),e.Ch.Wh=Ur.bind(null,e.bh),e}function Ya(t){var e=w(t);return e.ph.Gu.ih=ka.bind(null,e),e.ph.Gu.rh=Oa.bind(null,e),e}
2842/**
2843 * @license
2844 * Copyright 2019 Google LLC
2845 *
2846 * Licensed under the Apache License, Version 2.0 (the "License");
2847 * you may not use this file except in compliance with the License.
2848 * You may obtain a copy of the License at
2849 *
2850 *   http://www.apache.org/licenses/LICENSE-2.0
2851 *
2852 * Unless required by applicable law or agreed to in writing, software
2853 * distributed under the License is distributed on an "AS IS" BASIS,
2854 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2855 * See the License for the specific language governing permissions and
2856 * limitations under the License.
2857 */var Xa=function(){function t(){}return t.prototype.Nc=function(t){this.zh=t},t.prototype.Lr=function(t,e,n,r){var i=this;return function(t){return 0===t.filters.length&&null===t.limit&&null==t.startAt&&null==t.endAt&&(0===t.on.length||1===t.on.length&&t.on[0].field.p())}(e)||n.isEqual(ct.min())?this.Hh(t,e):this.zh.kr(t,r).next(function(a){var s=i.Yh(e,a);return(Vn(e)||Bn(e))&&i.Eh(e.an,s,r,n)?i.Hh(t,e):(d()<=o.LogLevel.DEBUG&&v("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),Jn(e)),i.zh.Lr(t,e,n).next(function(t){return s.forEach(function(e){t=t.ot(e.key,e)}),t}))})},t.prototype.Yh=function(t,e){var n=new At(tr(t));return e.forEach(function(e,r){r instanceof Pn&&Zn(t,r)&&(n=n.add(r))}),n},t.prototype.Eh=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.L(r)>0)},t.prototype.Hh=function(t,e){return d()<=o.LogLevel.DEBUG&&v("IndexFreeQueryEngine","Using full collection scan to execute query:",Jn(e)),this.zh.Lr(t,e,ct.min())},t}(),Ja=function(){function t(t,e){this.Dr=t,this.No=e,this.Sr=[],this.Jh=1,this.Xh=new At(Ro.kc)}return t.prototype.$o=function(t){return br.resolve(0===this.Sr.length)},t.prototype.ko=function(t,e,n,r){var i=this.Jh;this.Jh++,this.Sr.length>0&&this.Sr[this.Sr.length-1];var o=new ti(i,e,n,r);this.Sr.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.Xh=this.Xh.add(new Ro(u.key,i)),this.Dr.Mo(t,u.key.path.h())}return br.resolve(o)},t.prototype.Oo=function(t,e){return br.resolve(this.Zh(e))},t.prototype.Bo=function(t,e){var n=e+1,r=this.tl(n),i=r<0?0:r;return br.resolve(this.Sr.length>i?this.Sr[i]:null)},t.prototype.qo=function(){return br.resolve(0===this.Sr.length?-1:this.Jh-1)},t.prototype.Uo=function(t){return br.resolve(this.Sr.slice())},t.prototype.Nr=function(t,e){var n=this,r=new Ro(e,0),i=new Ro(e,Number.POSITIVE_INFINITY),o=[];return this.Xh.Ft([r,i],function(t){var e=n.Zh(t.jc);o.push(e)}),br.resolve(o)},t.prototype.Or=function(t,e){var n=this,r=new At(X);return e.forEach(function(t){var e=new Ro(t,0),i=new Ro(t,Number.POSITIVE_INFINITY);n.Xh.Ft([e,i],function(t){r=r.add(t.jc)})}),br.resolve(this.el(r))},t.prototype.Wr=function(t,e){var n=e.path,r=n.length+1,i=n;k.F(i)||(i=i.child(""));
2857var o=new Ro(new k(i),0),a=new At(X);return this.Xh.xt(function(t){var e=t.key.path;return!!n.T(e)&&(e.length===r&&(a=a.add(t.jc)),!0)},o),br.resolve(this.el(a))},t.prototype.el=function(t){var e=this,n=[];return t.forEach(function(t){var r=e.Zh(t);null!==r&&n.push(r)}),n},t.prototype.Wo=function(t,e){var n=this;_(0===this.nl(e.batchId,"removed")),this.Sr.shift();var r=this.Xh;return br.forEach(e.mutations,function(i){var o=new Ro(i.key,e.batchId);return r=r.delete(o),n.No.Go(t,i.key)}).next(function(){n.Xh=r})},t.prototype.Ko=function(t){},t.prototype.Ho=function(t,e){var n=new Ro(e,0),r=this.Xh.$t(n);return br.resolve(e.isEqual(r&&r.key))},t.prototype.zo=function(t){return this.Sr.length,br.resolve()},t.prototype.nl=function(t,e){return this.tl(t)},t.prototype.tl=function(t){return 0===this.Sr.length?0:t-this.Sr[0].batchId},t.prototype.Zh=function(t){var e=this.tl(t);return e<0||e>=this.Sr.length?null:this.Sr[e]},t}(),Za=function(){function t(t,e){this.Dr=t,this.sl=e,this.docs=new Tt(k.i),this.size=0}return t.prototype.Er=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,a=this.sl(e);return this.docs=this.docs.ot(r,{ta:e,size:a,readTime:n}),this.size+=a-o,this.Dr.Mo(t,r.path.h())},t.prototype.Ar=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Rr=function(t,e){var n=this.docs.get(e);return br.resolve(n?n.ta:null)},t.prototype.getEntries=function(t,e){var n=this,r=xt();return e.forEach(function(t){var e=n.docs.get(t);r=r.ot(t,e?e.ta:null)}),br.resolve(r)},t.prototype.Lr=function(t,e,n){for(var r=Rt(),i=new k(e.path.child("")),o=this.docs.ft(i);o.At();){var a=o.It(),s=a.key,u=a.value,c=u.ta,l=u.readTime;if(!e.path.T(s.path))break;l.L(n)<=0||c instanceof Pn&&Zn(e,c)&&(r=r.ot(c.key,c))}return br.resolve(r)},t.prototype.il=function(t,e){return br.forEach(this.docs,function(t){return e(t)})},t.prototype.ra=function(t){return new ts(this)},t.prototype.aa=function(t){return br.resolve(this.size)},t}(),ts=function(t){function e(e){var n=this;return(n=t.call(this)||this).ca=e,n}return r.__extends(e,t),e.prototype.yr=function(t){var e=this,n=[];return this.wr.forEach(function(r,i){i?n.push(e.ca.Er(t,i,e.readTime)):e.ca.Ar(r)}),br.$n(n)},e.prototype.gr=function(t,e){return this.ca.Rr(t,e)},e.prototype.Pr=function(t,e){return this.ca.getEntries(t,e)},e}(ni),es=function(){function t(t){this.persistence=t,this.rl=new st(function(t){return vt(t)},gt),this.lastRemoteSnapshotVersion=ct.min(),this.highestTargetId=0,this.ol=0,this.al=new Do,this.targetCount=0,this.cl=ao.fa()}return t.prototype.Ce=function(t,e){return this.rl.forEach(function(t,n){return e(n)}),br.resolve()},t.prototype.Ea=function(t){return br.resolve(this.lastRemoteSnapshotVersion)},t.prototype.Ia=function(t){return br.resolve(this.ol)},t.prototype.wa=function(t){return this.highestTargetId=this.cl.next(),br.resolve(this.highestTargetId)},t.prototype.Aa=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ol&&(this.ol=e),br.resolve()},t.prototype.ga=function(t){this.rl.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.cl=new ao(e),this.highestTargetId=e),t.sequenceNumber>this.ol&&(this.ol=t.sequenceNumber)},t.prototype.Ra=function(t,e){return this.ga(e),this.targetCount+=1,br.resolve()},t.prototype.ya=function(t,e){return this.ga(e),br.resolve()},t.prototype.Va=function(t,e){return this.rl.delete(e.target),this.al.Uc(e.targetId),this.targetCount-=1,br.resolve()},t.prototype.po=function(t,e,n){var r=this,i=0,o=[];return this.rl.forEach(function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.rl.delete(a),o.push(r.pa(t,s.targetId)),i++)}),br.$n(o).next(function(){return i})},t.prototype.ba=function(t){return br.resolve(this.targetCount)},t.prototype.va=function(t,e){var n=this.rl.get(e)||null;return br.resolve(n)},t.prototype.Sa=function(t,e,n){return this.al.Lc(e,n),br.resolve()},t.prototype.Ca=function(t,e,n){this.al.qc(e,n);var r=this.persistence.No,i=[];return r&&e.forEach(function(e){i.push(r.Go(t,e))}),br.$n(i)},t.prototype.pa=function(t,e){return this.al.Uc(e),br.resolve()},t.prototype.Fa=function(t,e){var n=this.al.Wc(e);return br.resolve(n)},t.prototype.Ho=function(t,e){return br.resolve(this.al.Ho(e))},t}(),ns=function(){function t(t){var e=this;this.ul={},this.Ma=new Hr(0),this.Oa=!1,this.Oa=!0,this.No=t(this),this.Ka=new es(this),this.Dr=new Ui,this.vr=function(t,n){return new Za(t,function(t){return e.N
2857o.hl(t)})}(this.Dr)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Di=function(){return this.Oa=!1,Promise.resolve()},Object.defineProperty(t.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),t.prototype.Za=function(){},t.prototype.tc=function(){},t.prototype.Ic=function(){return this.Dr},t.prototype.mc=function(t){var e=this.ul[t.ti()];return e||(e=new Ja(this.Dr,this.No),this.ul[t.ti()]=e),e},t.prototype.Tc=function(){return this.Ka},t.prototype.Ec=function(){return this.vr},t.prototype.runTransaction=function(t,e,n){var r=this;v("MemoryPersistence","Starting transaction:",t);var i=new rs(this.Ma.next());return this.No.ll(),n(i).next(function(t){return r.No._l(i).next(function(){return t})}).Fn().then(function(t){return i.br(),t})},t.prototype.fl=function(t,e){return br.kn(Object.values(this.ul).map(function(n){return function(){return n.Ho(t,e)}}))},t}(),rs=function(t){function e(e){var n=this;return(n=t.call(this)||this).xa=e,n}return r.__extends(e,t),e}(ii),is=function(){function t(t){this.persistence=t,this.dl=new Do,this.wl=null}return t.ml=function(e){return new t(e)},Object.defineProperty(t.prototype,"Tl",{get:function(){if(this.wl)return this.wl;throw b()},enumerable:!1,configurable:!0}),t.prototype.Da=function(t,e,n){return this.dl.Da(n,e),this.Tl.delete(n.toString()),br.resolve()},t.prototype.Na=function(t,e,n){return this.dl.Na(n,e),this.Tl.add(n.toString()),br.resolve()},t.prototype.Go=function(t,e){return this.Tl.add(e.toString()),br.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.dl.Uc(e.targetId).forEach(function(t){return n.Tl.add(t.toString())});var r=this.persistence.Tc();return r.Fa(t,e.targetId).next(function(t){t.forEach(function(t){return n.Tl.add(t.toString())})}).next(function(){return r.Va(t,e)})},t.prototype.ll=function(){this.wl=new Set},t.prototype._l=function(t){var e=this,n=this.persistence.Ec().ra();return br.forEach(this.Tl,function(r){var i=k.D(r);return e.El(t,i).next(function(t){t||n.Ar(i)})}).next(function(){return e.wl=null,n.apply(t)})},t.prototype.yc=function(t,e){var n=this;return this.El(t,e).next(function(t){t?n.Tl.delete(e.toString()):n.Tl.add(e.toString())})},t.prototype.hl=function(t){return 0},t.prototype.El=function(t,e){var n=this;return br.kn([function(){return br.resolve(n.dl.Ho(e))},function(){return n.persistence.Tc().Ho(t,e)},function(){return n.persistence.fl(t,e)}])},t}(),os=function(){function t(t){this.Il=t.Il,this.Al=t.Al}return t.prototype.gu=function(t){this.Rl=t},t.prototype.Tu=function(t){this.gl=t},t.prototype.onMessage=function(t){this.Pl=t},t.prototype.close=function(){this.Al()},t.prototype.send=function(t){this.Il(t)},t.prototype.yl=function(){this.Rl()},t.prototype.Vl=function(t){this.gl(t)},t.prototype.pl=function(t){this.Pl(t)},t}(),as={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},ss=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.W=e.W,n}return r.__extends(e,t),e.prototype.Nl=function(t,e,n,r){return new Promise(function(i,o){var a=new s.XhrIo;a.listenOnce(s.EventType.COMPLETE,function(){try{switch(a.getLastErrorCode()){case s.ErrorCode.NO_ERROR:var e=a.getResponseJson();v("Connection","XHR received:",JSON.stringify(e)),i(e);break;case s.ErrorCode.TIMEOUT:v("Connection",'RPC "'+t+'" timed out'),o(new f(h.DEADLINE_EXCEEDED,"Request time out"));break;case s.ErrorCode.HTTP_ERROR:var n=a.getStatus();if(v("Connection",'RPC "'+t+'" failed with status:',n,"response text:",a.getResponseText()),n>0){var r=a.getResponseJson().error;if(r&&r.status&&r.message){var u=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(h).indexOf(e)>=0?e:h.UNKNOWN}(r.status);o(new f(u,r.message))}else o(new f(h.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new f(h.UNAVAILABLE,"Connection failed."));break;default:b()}}finally{v("Connection",'RPC "'+t+'" completed.')}});var u=JSON.stringify(r);a.send(e,"POST",u,n,15)})},e.prototype.Pu=function(t,e){var n=[this.vl,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=s.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.U.projectId+"/databases/"+this.U.database}
2857,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.W};this.Cl(i.initMessageHeaders,e),a.isMobileCordova()||a.isReactNative()||a.isElectron()||a.isIE()||a.isUWP()||a.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");v("Connection","Creating WebChannel: "+o,i);var u=r.createWebChannel(o,i),c=!1,l=!1,p=new os({Il:function(t){l?v("Connection","Not sending because WebChannel is closed:",t):(c||(v("Connection","Opening WebChannel transport."),u.open(),c=!0),v("Connection","WebChannel sending:",t),u.send(t))},Al:function(){return u.close()}}),d=function(t,e){u.listen(t,function(t){try{e(t)}catch(t){setTimeout(function(){throw t},0)}})};return d(s.WebChannel.EventType.OPEN,function(){l||v("Connection","WebChannel transport opened.")}),d(s.WebChannel.EventType.CLOSE,function(){l||(l=!0,v("Connection","WebChannel transport closed"),p.Vl())}),d(s.WebChannel.EventType.ERROR,function(t){l||(l=!0,m("Connection","WebChannel transport errored:",t),p.Vl(new f(h.UNAVAILABLE,"The operation could not be completed")))}),d(s.WebChannel.EventType.MESSAGE,function(t){var e;if(!l){var n=t.data[0];_(!!n);var r=n,i=r.error||(null===(e=r[0])||void 0===e?void 0:e.error);if(i){v("Connection","WebChannel received error:",i);var o=i.status,a=function(t){var e=yt[t];if(void 0!==e)return It(e)}(o),s=i.message;void 0===a&&(a=h.INTERNAL,s="Unknown error status: "+o+" with message "+i.message),l=!0,p.Vl(new f(a,s)),u.close()}else v("Connection","WebChannel received:",n),p.pl(n)}}),setTimeout(function(){p.yl()},0),p},e}(function(){function t(t){this.bl=t,this.U=t.U;var e=t.ssl?"https":"http";this.vl=e+"://"+t.host,this.Sl="projects/"+this.U.projectId+"/databases/"+this.U.database+"/documents"}return t.prototype.$u=function(t,e,n,r){var i=this.Dl(t,e);v("RestConnection","Sending: ",i,n);var o={};return this.Cl(o,r),this.Nl(t,i,o,n).then(function(t){return v("RestConnection","Received: ",t),t},function(e){throw m("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e})},t.prototype.ku=function(t,e,n,r){return this.$u(t,e,n,r)},t.prototype.Cl=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/7.24.0",t["Content-Type"]="text/plain",e)for(var n in e.Kc)e.Kc.hasOwnProperty(n)&&(t[n]=e.Kc[n])},t.prototype.Dl=function(t,e){var n=as[t];return this.vl+"/v1/"+e+":"+n},t}()),us=function(){function t(){var t=this;this.Fl=function(){return t.xl()},this.$l=function(){return t.kl()},this.Ml=[],this.Ol()}return t.prototype.Zu=function(t){this.Ml.push(t)},t.prototype.Di=function(){window.removeEventListener("online",this.Fl),window.removeEventListener("offline",this.$l)},t.prototype.Ol=function(){window.addEventListener("online",this.Fl),window.addEventListener("offline",this.$l)},t.prototype.xl=function(){v("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.Ml;t<e.length;t++)(0,e[t])(0)},t.prototype.kl=function(){v("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.Ml;t<e.length;t++)(0,e[t])(1)},t.Ln=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),cs=function(){function t(){}return t.prototype.Zu=function(t){},t.prototype.Di=function(){},t}();
2858/**
2859 * @license
2860 * Copyright 2017 Google LLC
2861 *
2862 * Licensed under the Apache License, Version 2.0 (the "License");
2863 * you may not use this file except in compliance with the License.
2864 * You may obtain a copy of the License at
2865 *
2866 *   http://www.apache.org/licenses/LICENSE-2.0
2867 *
2868 * Unless required by applicable law or agreed to in writing, software
2869 * distributed under the License is distributed on an "AS IS" BASIS,
2870 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2871 * See the License for the specific language governing permissions and
2872 * limitations under the License.
2873 */
2874/**
2875 * @license
2876 * Copyright 2020 Google LLC
2877 *
2878 * Licensed under the Apache License, Version 2.0 (the "License");
2879 * you may not use this file except in compliance with the License.
2880 * You may obtain a copy of the License at
2881 *
2882 *   http://www.apache.org/licenses/LICENSE-2.0
2883 *
2884 * Unless required by applicable law or agreed to in writing, softw
2884are
2885 * distributed under the License is distributed on an "AS IS" BASIS,
2886 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2887 * See the License for the specific language governing permissions and
2888 * limitations under the License.
2889 */
2890/**
2891 * @license
2892 * Copyright 2020 Google LLC
2893 *
2894 * Licensed under the Apache License, Version 2.0 (the "License");
2895 * you may not use this file except in compliance with the License.
2896 * You may obtain a copy of the License at
2897 *
2898 *   http://www.apache.org/licenses/LICENSE-2.0
2899 *
2900 * Unless required by applicable law or agreed to in writing, software
2901 * distributed under the License is distributed on an "AS IS" BASIS,
2902 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2903 * See the License for the specific language governing permissions and
2904 * limitations under the License.
2905 */function ls(t){return new be(t,!0)}
2906/**
2907 * @license
2908 * Copyright 2020 Google LLC
2909 *
2910 * Licensed under the Apache License, Version 2.0 (the "License");
2911 * you may not use this file except in compliance with the License.
2912 * You may obtain a copy of the License at
2913 *
2914 *   http://www.apache.org/licenses/LICENSE-2.0
2915 *
2916 * Unless required by applicable law or agreed to in writing, software
2917 * distributed under the License is distributed on an "AS IS" BASIS,
2918 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2919 * See the License for the specific language governing permissions and
2920 * limitations under the License.
2921 */var hs="You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.",fs=function(){function t(){}return t.prototype.initialize=function(t){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return this.Sh=this.Ll(t),this.persistence=this.Bl(t),[4,this.persistence.start()];case 1:return e.sent(),this.ql=this.Ul(t),this.ju=this.Ql(t),[2]}})})},t.prototype.Ul=function(t){return null},t.prototype.Ql=function(t){return e=this.persistence,n=new Xa,r=t.Wl,new _o(e,n,r);var e,n,r},t.prototype.Bl=function(t){if(t.persistenceSettings.jl)throw new f(h.FAILED_PRECONDITION,hs);return new ns(is.ml)},t.prototype.Ll=function(t){return new Zr},t.prototype.terminate=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.ql&&this.ql.stop(),[4,this.Sh.Di()];case 1:return t.sent(),[4,this.persistence.Di()];case 2:return t.sent(),[2]}})})},t.prototype.clearPersistence=function(t,e){throw new f(h.FAILED_PRECONDITION,hs)},t}(),ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,function(){var n,i=this;return r.__generator(this,function(o){switch(o.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return o.sent(),n=this.Kl.fi,this.Sh instanceof Jr?(this.Sh.fi={er:qa.bind(null,n),nr:za.bind(null,n),sr:$a.bind(null,n),pi:Ka.bind(null,n)},[4,this.Sh.start()]):[3,3];case 2:o.sent(),o.label=3;case 3:return[4,this.persistence.Xa(function(t){return r.__awaiter(i,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return[4,Ha(this.Kl.fi,t)];case 1:return e.sent(),this.ql&&(t&&!this.ql.Ei?this.ql.start(this.ju):t||this.ql.stop()),[2]}})})})];case 4:return o.sent(),[2]}})})},e.prototype.Ll=function(t){if(t.persistenceSettings.jl&&t.persistenceSettings.synchronizeTabs){var e=kr();if(!Jr.Ln(e))throw new f(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=bo(t.bl.U,t.bl.persistenceKey);return new Jr(e,t.cs,n,t.clientId,t.Wl)}return new Zr},e}(function(t){function e(e){var n=this;return(n=t.call(this)||this).Kl=e,n}return r.__extends(e,t),e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){switch(n.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return n.sent(),[4,Oo(this.ju)];case 2:return n.sent(),[4,this.Kl.initialize(this,e)];case 3:return n.sent(),[4,Ya(this.Kl.fi)];case 4:return n.sent(),[4,sa(this.Kl.ph)];case 5:return n.sent(),[2]}})})},e.prototype.Ul=function(t){var e=this.persistence.No.wo;return new hi(e,t.cs)},e.prototype.Bl=function(t){var e=bo(t.bl.U,t.bl.persistenceKey),n=ls(t.bl.U);return new po(t.persistenceSettings.synchronizeTabs,e,t.clientId,li.ao(t.persistenceSettings.cacheSizeBytes),t.cs,kr(),Or(),n,this.Sh,t.persistenceSettings.ka)},e.prototype.Ll=function(t){return new Zr},e.prototype.clearPersistence=function(t,e){return function(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return _r.Ln()?(e=t+"main",[4,_r.delete(e)]):[2,Promise.resolve()];case 1:return n.sent(),[2]}})})}(bo(t,e))},e}(fs)),ds=function(){function t(){}return t.prototype.initialize=function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.ju?[3,2]:(this.ju=t.ju,this.Sh=t.Sh,this.Ku=this.Gl(e),this.ph=this.zl(e),this.bh=this.Hl(e),this.fi=this.Yl(e),this.Sh.di=function(t){return Aa(n.fi,t,1)},this.ph.Gu.Jl=Ua.bind(null,this.fi),[4,da(this.ph,this.fi.Uh)]);case 1:r.sent(),r.label=2;case 2:return[2]}})})},t.prototype.Hl=function(t){return new Lr},t.prototype.Gl=function(t){var e,n=ls(t.bl.U),r=(e=t.bl,new ss(e));return function(t,e,n){return new qo(t,e,n)}(t.credentials,r,n)},t.prototype.zl=function(t){var e,n,r,i,o,a=this;return e=this.ju,n=this.Ku,r=t.cs,i=function(t){return Aa(a.fi,t,0)},o=us.Ln()?new us:new cs,new Wo(e,n,r,i,o)},t.prototype.Yl=function(t){return function(t,e,n,r,i,o,a){var s=new Ea(t,e,n,r,i,o);return a&&(s.qh=!0),s}(this.ju,this.ph,this.bh,this.Sh,t.Wl,t.Dh,!t.persistenceSettings.jl||!t.persistenceSettings.synchronizeTabs)},t.prototype.terminate=function(){return zo(this.ph)},t}(),vs=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.Xl(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.Xl(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.Zl=function(){this.muted=!0}
2921,t.prototype.Xl=function(t,e){var n=this;this.muted||setTimeout(function(){n.muted||t(e)},0)},t}(),gs=function(t){!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new f(h.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+$(1,"element")+".")}(0,t);for(var e=0;e<t.length;++e)if(P("FieldPath","string",e,t[e]),0===t[e].length)throw new f(h.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.t_=new N(t)},ms=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.call(this,e)||this}return r.__extends(e,t),e.documentId=function(){return new e(N.v().R())},e.prototype.isEqual=function(t){if(!(t instanceof e))throw G("isEqual","FieldPath",1,t);return this.t_.isEqual(t.t_)},e}(gs),ys=new RegExp("[~\\*/\\[\\]]"),bs=function(t){this.e_=t},_s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.n_=function(t){if(2!==t.s_)throw 1===t.s_?t.i_(this.e_+"() can only appear at the top level of your update data"):t.i_(this.e_+"() cannot be used with set() unless you pass {merge:true}");return t.We.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(bs);function ws(t,e,n){return new Rs({s_:3,r_:e.settings.r_,methodName:t.e_,o_:n},e.U,e.serializer,e.ignoreUndefinedProperties)}var Es=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.n_=function(t){return new fn(t.path,new nn)},e.prototype.isEqual=function(t){return t instanceof e},e}(bs),Is=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).a_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=ws(this,t,!0),n=this.a_.map(function(t){return Us(t,e)}),r=new rn(n);return new fn(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(bs),Ts=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).a_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=ws(this,t,!0),n=this.a_.map(function(t){return Us(t,e)}),r=new an(n);return new fn(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(bs),Ss=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).c_=n,r}return r.__extends(e,t),e.prototype.n_=function(t){var e=new un(t.serializer,Ee(t.serializer,this.c_));return new fn(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(bs),Cs=function(){function t(t,e){if(x("GeoPoint",arguments,2),P("GeoPoint","number",1,t),P("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new f(h.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new f(h.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.u_=t,this.h_=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.u_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.h_},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.u_===t.u_&&this.h_===t.h_},t.prototype.toJSON=function(){return{latitude:this.u_,longitude:this.h_}},t.prototype.Y=function(t){return X(this.u_,t.u_)||X(this.h_,t.h_)},t}(),As=function(t){this.l_=t},Ns=/^__.*__$/,ks=function(t,e,n){this.__=t,this.f_=e,this.d_=n},Os=function(){function t(t,e,n){this.data=t,this.We=e,this.fieldTransforms=n}return t.prototype.w_=function(t,e){var n=[];return null!==this.We?n.push(new In(t,this.data,this.We,e)):n.push(new En(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new Sn(t,this.fieldTransforms)),n},t}(),xs=function(){function t(t,e,n){this.data=t,this.We=e,this.fieldTransforms=n}return t.prototype.w_=function(t,e){var n=[new In(t,this.data,this.We,e)];return this.fieldTransforms.length>0&&n.push(new Sn(t,this.fieldTransforms)),n},t}();function Ds(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw b()}}var Rs=function(){function t(t,e,n,r,i,o){this.settings=t,this.U=e,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this.m_(),this.fieldTransforms=i||[],this.We=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path}
2921,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"s_",{get:function(){return this.settings.s_},enumerable:!1,configurable:!0}),t.prototype.T_=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.U,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.We)},t.prototype.E_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.T_({path:n,o_:!1});return r.I_(t),r},t.prototype.A_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.T_({path:n,o_:!1});return r.m_(),r},t.prototype.R_=function(t){return this.T_({path:void 0,o_:!0})},t.prototype.i_=function(t){return Gs(t,this.settings.methodName,this.settings.g_||!1,this.path,this.settings.r_)},t.prototype.contains=function(t){return void 0!==this.We.find(function(e){return t.T(e)})||void 0!==this.fieldTransforms.find(function(e){return t.T(e.field)})},t.prototype.m_=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.I_(this.path.get(t))},t.prototype.I_=function(t){if(0===t.length)throw this.i_("Document fields must not be empty");if(Ds(this.s_)&&Ns.test(t))throw this.i_('Document fields cannot begin and end with "__"')},t}(),Ps=function(){function t(t,e,n){this.U=t,this.ignoreUndefinedProperties=e,this.serializer=n||ls(t)}return t.prototype.P_=function(t,e,n,r){return void 0===r&&(r=!1),new Rs({s_:t,methodName:e,r_:n,path:N.P(),o_:!1,g_:r},this.U,this.serializer,this.ignoreUndefinedProperties)},t}();function Ls(t,e,n,r,i,o){void 0===o&&(o={});var a=t.P_(o.merge||o.mergeFields?2:0,e,n,i);qs("Data must be an object, but it was:",a,r);var s,u,c=Vs(r,a);if(o.merge)s=new hn(a.We),u=a.fieldTransforms;else if(o.mergeFields){for(var l=[],p=0,d=o.mergeFields;p<d.length;p++){var v=d[p],g=void 0;if(v instanceof gs)g=v.t_;else{if("string"!=typeof v)throw b();g=Ws(e,v,n)}if(!a.contains(g))throw new f(h.INVALID_ARGUMENT,"Field '"+g+"' is specified in your field mask but missing from your input data.");Ks(l,g)||l.push(g)}s=new hn(l),u=a.fieldTransforms.filter(function(t){return s.Ye(t.field)})}else s=null,u=a.fieldTransforms;return new Os(new On(c),s,u)}function Ms(t,e,n,r){var i=t.P_(1,e,n);qs("Data must be an object, but it was:",i,r);var o=[],a=new xn;I(r,function(t,r){var s=Ws(e,t,n),u=i.A_(s);if(r instanceof _s||r instanceof As&&r.l_ instanceof _s)o.push(s);else{var c=Us(r,u);null!=c&&(o.push(s),a.set(s,c))}});var s=new hn(o);return new xs(a.Xe(),s,i.fieldTransforms)}function js(t,e,n,r,i,o){var a=t.P_(1,e,n),s=[Hs(e,r,n)],u=[i];if(o.length%2!=0)throw new f(h.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var c=0;c<o.length;c+=2)s.push(Hs(e,o[c])),u.push(o[c+1]);for(var l=[],p=new xn,d=s.length-1;d>=0;--d)if(!Ks(l,s[d])){var v=s[d],g=u[d],m=a.A_(v);if(g instanceof _s||g instanceof As&&g.l_ instanceof _s)l.push(v);else{var y=Us(g,m);null!=y&&(l.push(v),p.set(v,y))}}var b=new hn(l);return new xs(p.Xe(),b,a.fieldTransforms)}function Fs(t,e,n,r){return void 0===r&&(r=!1),Us(n,t.P_(r?4:3,e))}function Us(t,e){if(t instanceof As&&(t=t.l_),Bs(t))return qs("Unsupported field value:",e,t),Vs(t,e);if(t instanceof bs)return function(t,e){if(!Ds(e.s_))throw e.i_(t.e_+"() can only be used with update() and set()");if(!e.path)throw e.i_(t.e_+"() is not currently supported inside arrays");var n=t.n_(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.We.push(e.path),t instanceof Array){if(e.settings.o_&&4!==e.s_)throw e.i_("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var a=Us(o[i],e.R_(r));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===t)return{nullValue:"NULL_VALUE"};if("number"==typeof t)return Ee(e.serializer,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=ut.fromDate(t);return{timestampValue:Ie(e.serializer,n)}}if(t instanceof ut){var r=new ut(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:Ie(e.serializer,r)}}if(t instanceof Cs)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof et)return{bytesValue:Te(e.serializer,t.q)};if(t instanceof ks){var i=e.U,o=t.__;if(!o.isEqual(i))throw e.i_("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:Ae(t.__||e.U,t.f_.path)}}if(void 0===t&&e.ignoreUndefinedProperties)return null;throw e.i_("Unsupported field value: "+q(t))}(t,e)}function Vs(t,e){var n={};return T(t)?e.path&&e.path.length>0&&e.We.push(e.path):I(t,function(t,r){var i=Us(r,e.E_(t));null!=i&&(n[t]=i)}),{mapValue:{fields:n}}}function Bs(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof ut||t instanceof Cs||t instanceof et||t instanceof ks||t instanceof bs)}function qs(t,e,n){if(!Bs(n)||!B(n)){var r=q(n);
2921throw"an object"===r?e.i_(t+" a custom object"):e.i_(t+" "+r)}}function Hs(t,e,n){if(e instanceof gs)return e.t_;if("string"==typeof e)return Ws(t,e);throw Gs("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}function Ws(t,e,n){try{return function(t){if(t.search(ys)>=0)throw new f(h.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(ms.bind.apply(ms,r.__spreadArrays([void 0],t.split("."))))}catch(r){throw new f(h.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).t_}catch(e){throw Gs((i=e)instanceof Error?i.message:i.toString(),t,!1,void 0,n)}var i}function Gs(t,e,n,r,i){var o=r&&!r.m(),a=void 0!==i,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var u="";return(o||a)&&(u+=" (found",o&&(u+=" in field "+r),a&&(u+=" in document "+i),u+=")"),new f(h.INVALID_ARGUMENT,(s+=". ")+t+u)}function Ks(t,e){return t.some(function(t){return t.isEqual(e)})}
2922/**
2923 * @license
2924 * Copyright 2017 Google LLC
2925 *
2926 * Licensed under the Apache License, Version 2.0 (the "License");
2927 * you may not use this file except in compliance with the License.
2928 * You may obtain a copy of the License at
2929 *
2930 *   http://www.apache.org/licenses/LICENSE-2.0
2931 *
2932 * Unless required by applicable law or agreed to in writing, software
2933 * distributed under the License is distributed on an "AS IS" BASIS,
2934 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2935 * See the License for the specific language governing permissions and
2936 * limitations under the License.
2937 */var zs=function(){function t(t){this.Ku=t,this.y_=new Map,this.mutations=[],this.V_=!1,this.p_=null,this.b_=new Set}return t.prototype.v_=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(i){switch(i.label){case 0:if(this.S_(),this.mutations.length>0)throw new f(h.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s,u;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=Re(n.serializer)+"/documents",o={documents:e.map(function(t){return ke(n.serializer,t)})},[4,n.ku("BatchGetDocuments",i,o)];case 1:return a=r.sent(),s=new Map,a.forEach(function(t){var e=function(t,e){return"found"in e?function(t,e){_(!!e.found),e.found.name,e.found.updateTime;var n=Oe(t,e.found.name),r=Ce(e.found.updateTime),i=new On({mapValue:{fields:e.found.fields}});return new Pn(n,r,i,{})}(t,e):"missing"in e?function(t,e){_(!!e.missing),_(!!e.readTime);var n=Oe(t,e.missing),r=Ce(e.readTime);return new Ln(n,r)}(t,e):b()}(n.serializer,t);s.set(e.key.toString(),e)}),u=[],[2,(e.forEach(function(t){var e=s.get(t.toString());_(!!e),u.push(e)}),u)]}})})}(this.Ku,t)];case 1:return[2,((e=i.sent()).forEach(function(t){t instanceof Ln||t instanceof Pn?n.D_(t):b()}),e)]}})})},t.prototype.set=function(t,e){this.write(e.w_(t,this.Ge(t))),this.b_.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.w_(t,this.C_(t)))}catch(t){this.p_=t}this.b_.add(t.toString())},t.prototype.delete=function(t){this.write([new Nn(t,this.Ge(t))]),this.b_.add(t.toString())},t.prototype.commit=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e=this;return r.__generator(this,function(n){switch(n.label){case 0:if(this.S_(),this.p_)throw this.p_;return t=this.y_,this.mutations.forEach(function(e){t.delete(e.key.toString())}),t.forEach(function(t,n){var r=k.D(n);e.mutations.push(new kn(r,e.Ge(r)))}),[4,function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o;return r.__generator(this,function(r){switch(r.label){case 0:return n=w(t),i=Re(n.serializer)+"/documents",o={writes:e.map(function(t){return Me(n.serializer,t)})},[4,n.$u("Commit",i,o)];case 1:return r.sent(),[2]}})})}(this.Ku,this.mutations)];case 1:return n.sent(),this.V_=!0,[2]}})})},t.prototype.D_=function(t){var e;if(t instanceof Pn)e=t.version;else{if(!(t instanceof Ln))throw b();e=ct.min()}var n=this.y_.get(t.key.toString());if(n){if(!e.isEqual(n))throw new f(h.ABORTED,"Document version changed between two reads.")}else this.y_.set(t.key.toString(),e)},t.prototype.Ge=function(t){var e=this.y_.get(t.toString());return!this.b_.has(t.toString())&&e?dn.updateTime(e):dn.ze()},t.prototype.C_=function(t){var e=this.y_.get(t.toString());if(!this.b_.has(t.toString())&&e){if(e.isEqual(ct.min()))throw new f(h.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return dn.updateTime(e)}return dn.exists(!0)},t.prototype.write=function(t){this.S_(),this.mutations=this.mutations.concat(t)},t.prototype.S_=function(){},t}(),$s=function(){function t(t,e,n,r){this.cs=t,this.Ku=e,this.updateFunction=n,this.ls=r,this.N_=5,this.ys=new yr(this.cs,"transaction_retry")}return t.prototype.run=function(){this.F_()},t.prototype.F_=function(){var t=this;this.ys.gn(function(){return r.__awaiter(t,void 0,void 0,function(){var t,e,n=this;return r.__generator(this,function(r){return t=new zs(this.Ku),(e=this.x_(t))&&e.then(function(e){n.cs.ws(function(){return t.commit().then(function(){n.ls.resolve(e)}).catch(function(t){n.k_(t)})})}).catch(function(t){n.k_(t)}),[2]})})})},t.prototype.x_=function(t){try{var e=this.updateFunction(t);return!lt(e)&&e.catch&&e.then?e:(this.ls.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.ls.reject(t),null}},t.prototype.k_=function(t){var e=this;this.N_>0&&this.M_(t)?(this.N_-=1,this.cs.ws(function(){return e.F_(),Promise.resolve()})):this.ls.reject(t)},t.prototype.M_=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Et(e)}return!1},t}(),Qs=function(){function t(t,e){this.credentials=t,this.cs=e,this.clientId=Y.k(),this.O_=ne
2937w mr}return t.prototype.start=function(t,e,n,i){var o=this;this.L_(),this.bl=t;var a=new mr,s=!1;return this.credentials.Hc(function(t){if(!s)return s=!0,v("FirestoreClient","Initializing. user=",t.uid),o.B_(e,n,i,t,a).then(o.O_.resolve,o.O_.reject);o.cs.Cs(function(){return function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i;return r.__generator(this,function(r){switch(r.label){case 0:return(n=w(t)).cs.xs(),v("RemoteStore","RemoteStore received new credentials"),i=ta(n),n.Yu.add(3),[4,Ko(n)];case 1:return r.sent(),i&&n.th.set("Unknown"),[4,n.Gu.Jl(e)];case 2:return r.sent(),n.Yu.delete(3),[4,Go(n)];case 3:return r.sent(),[2]}})})}(o.ph,t)})}),this.cs.ws(function(){return o.O_.promise}),a.promise},t.prototype.enableNetwork=function(){var t=this;return this.L_(),this.cs.enqueue(function(){return t.persistence.tc(!0),function(t){var e=w(t);return e.Yu.delete(0),Go(e)}(t.ph)})},t.prototype.B_=function(t,e,n,i,o){return r.__awaiter(this,void 0,void 0,function(){var a,s,u=this;return r.__generator(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),a={cs:this.cs,bl:this.bl,clientId:this.clientId,credentials:this.credentials,Wl:i,Dh:100,persistenceSettings:n},[4,t.initialize(a)];case 1:return c.sent(),[4,e.initialize(t,a)];case 2:return c.sent(),this.persistence=t.persistence,this.Sh=t.Sh,this.ju=t.ju,this.ql=t.ql,this.Ku=e.Ku,this.ph=e.ph,this.fi=e.fi,this.q_=e.bh,this.q_.Us=Ia.bind(null,this.fi),this.q_.js=Sa.bind(null,this.fi),this.persistence.Za(function(){return r.__awaiter(u,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return[4,this.terminate()];case 1:return t.sent(),[2]}})})}),o.resolve(),[3,4];case 3:if(s=c.sent(),o.reject(s),!this.U_(s))throw s;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+s),this.B_(new fs,new ds,{jl:!1},i,o))];case 4:return[2]}})})},t.prototype.U_=function(t){return"FirebaseError"===t.name?t.code===h.FAILED_PRECONDITION||t.code===h.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.L_=function(){if(this.cs.ps)throw new f(h.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.disableNetwork=function(){var t=this;return this.L_(),this.cs.enqueue(function(){return t.persistence.tc(!1),function(t){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return(e=w(t)).Yu.add(0),[4,Ko(e)];case 1:return n.sent(),e.th.set("Offline"),[2]}})})}(t.ph)})},t.prototype.terminate=function(){var t=this;this.cs.Ds();var e=new mr;return this.cs.bs(function(){return r.__awaiter(t,void 0,void 0,function(){var t,n;return r.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),this.ql&&this.ql.stop(),[4,zo(this.ph)];case 1:return r.sent(),[4,this.Sh.Di()];case 2:return r.sent(),[4,this.persistence.Di()];case 3:return r.sent(),this.credentials.Yc(),e.resolve(),[3,5];case 4:return t=r.sent(),n=Rr(t,"Failed to shutdown persistence"),e.reject(n),[3,5];case 5:return[2]}})})}),e.promise},t.prototype.waitForPendingWrites=function(){var t=this;this.L_();var e=new mr;return this.cs.ws(function(){return function(t,e){return r.__awaiter(this,void 0,void 0,function(){var n,i,o,a,s;return r.__generator(this,function(r){switch(r.label){case 0:ta((n=w(t)).ph)||v("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,function(t){var e=w(t);return e.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(t){return e.Sr.qo(t)})}(n.ju)];case 2:return-1===(i=r.sent())?[2,void e.resolve()]:((o=n.Lh.get(i)||[]).push(e),n.Lh.set(i,o),[3,4]);case 3:return a=r.sent(),s=Rr(a,"Initialization of waitForPendingWrites() operation failed"),e.reject(s),[3,4];case 4:return[2]}})})}(t.fi,e)}),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.L_();var i=new vs(n),o=new Br(t,i,e);return this.cs.ws(function(){return Mr(r.q_,o)}),function(){i.Zl(),r.cs.ws(function(){return jr(r.q_,o)})}},t.prototype.Q_=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),e=new mr,[2,(this.cs.ws(function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a;return r.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(t,e){var n=w(t);return n.persistence.runTransaction("read document","readonly",function(t){return n.Cc.Cr(t,e)})}(t,e)];case 1:return(i=r.sent())instanceof Pn?n.resolve(i):i instanceof Ln?n.resolve(null):n.reject(new f(h.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return o=r.sent(),a=Rr(o,"Failed to get document '"+e+" from cache"),n.reject(a),[3,3];case 3:return[2]}})})}(n.ju,t,e)}),e.promise)]}})})},t.prototype.W_=function(t,e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,function(){var n,i=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new mr,[2,(this.cs.ws(function(){return function(t,e,n,r,i){var o=new vs({next:function(o){e.ws(function(){return jr(t,a)});var s=o.docs.has(n);!s&&o.fromCache?i.reject(new f(h.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new f(h.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),a=new Br(Un(n.path),o,{includeMetadataChanges:!0,Xs:!0});return Mr(t,a)}(i.q_,i.cs,t,e,n)}),n.promise)]}})})},t.prototype.j_=function(t){return r.__awaiter(this,void 0,void 0,function(){var e,n=this;return r.__generator(this,function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),e=new mr,[2,(this.cs.ws(function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a,s,u,c;return r.__generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,Ao(t,e,!0)];case 1:return i=r.sent(),o=new ba(e,i.Fc),a=o.wh(i.documents),s=o.yr(a,!1),n.resolve(s.snapshot),[3,3];case 2:return u=r.sent(),c=Rr(u,"Failed to execute query '"+e+" against cache"),n.reject(c),[3,3];case 3:return[2]}})})}(n.ju,t,e)}),e.promise)]}})})},t.prototype.K_=function(t,e){return void 0===e&&(e={}),r.__awaiter(this,void 0,void 0,function(){var n,i=this;return r.__generator(this,function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new mr,[2,(this.cs.ws(function(){return function(t,e,n,r,i){var o=new vs({next:function(n){e.ws(function(){return jr(t,a)}),n.fromCache&&"server"===r.source?i.reject(new f(h.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),a=new Br(n,o,{includeMetadataChanges:!0,Xs:!0});return Mr(t,a)}(i.q_,i.cs,t,e,n)}),n.promise)]}})})},t.prototype.write=function(t){var e=this;this.L_();var n=new mr;return this.cs.ws(function(){return function(t,e,n){return r.__awaiter(this,void 0,void 0,function(){var i,o,a,s;return r.__generator(this,function(r){switch(r.label){case 0:i=Ya(t),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,function(t,e){var n,r=w(t),i=ut.now(),o=e.reduce(function(t,e){return t.add(e.key)},Mt());return r.persistence.runTransaction("Locally write mutations","readwrite",function(t){return r.Cc.kr(t,o).next(function(o){n=o;for(var a=[],s=0,u=e;s<u.length;s++){var c=u[s],l=bn(c,n.get(c.key));null!=l&&a.push(new In(c.key,l,Dn(l.proto.mapValue),dn.exists(!0)))}return r.Sr.ko(t,i,a,e)})}).then(function(t){var e=t.lr(n);return{batchId:t.batchId,wr:e}})}(i.ju,e)];case 2:return o=r.sent(),i.Sh.xi(o.batchId),function(t,e,n){var r=t.Oh[t.currentUser.ti()];r||(r=new Tt(X)),r=r.ot(e,n),t.Oh[t.currentUser.ti()]=r}(i,o.batchId,n),[4,Fa(i,o.wr)];case 3:return r.sent(),[4,sa(i.ph)];case 4:return r.sent(),[3,6];case 5:return a=r.sent(),s=Rr(a,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}})})}(e.fi,t,n)}),n.promise},t.prototype.U=function(){return this.bl.U},t.prototype.G_=function(t){var e=this;this.L_();var n=new vs(t);return this.cs.ws(function(){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(t){return[2,function(t,e){w(t).qs.add(e),e.next()}(this.q_,n)]})})}),function(){n.Zl(),e.cs.ws(function(){return r.__awaiter(e,void 0,void 0,function(){return r.__generator(this,function(t){return[2,function(t,e){w(t).qs.delete(e)}(this.q_,n)]})})})}},Object.defineProperty(t.prototype,"z_",{get:function(){return this.cs.ps}
2937,enumerable:!1,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.L_();var n=new mr;return this.cs.ws(function(){return new $s(e.cs,e.Ku,t,n).run(),Promise.resolve()}),n.promise},t}();
2938/**
2939 * @license
2940 * Copyright 2019 Google LLC
2941 *
2942 * Licensed under the Apache License, Version 2.0 (the "License");
2943 * you may not use this file except in compliance with the License.
2944 * You may obtain a copy of the License at
2945 *
2946 *   http://www.apache.org/licenses/LICENSE-2.0
2947 *
2948 * Unless required by applicable law or agreed to in writing, software
2949 * distributed under the License is distributed on an "AS IS" BASIS,
2950 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2951 * See the License for the specific language governing permissions and
2952 * limitations under the License.
2953 */function Ys(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var Xs=function(){function t(t,e,n,r,i){this.U=t,this.timestampsInSnapshots=e,this.H_=n,this.Y_=r,this.J_=i}return t.prototype.X_=function(t){switch(ee(t)){case 0:return null;case 1:return t.booleanValue;case 2:return ce(t.integerValue||t.doubleValue);case 3:return this.Z_(t.timestampValue);case 4:return this.tf(t);case 5:return t.stringValue;case 6:return this.J_(le(t.bytesValue));case 7:return this.ef(t.referenceValue);case 8:return this.nf(t.geoPointValue);case 9:return this.sf(t.arrayValue);case 10:return this.if(t.mapValue);default:throw b()}},t.prototype.if=function(t){var e=this,n={};return I(t.fields||{},function(t,r){n[t]=e.X_(r)}),n},t.prototype.nf=function(t){return new Cs(ce(t.latitude),ce(t.longitude))},t.prototype.sf=function(t){var e=this;return(t.values||[]).map(function(t){return e.X_(t)})},t.prototype.tf=function(t){switch(this.H_){case"previous":var e=Jt(t);return null==e?null:this.X_(e);case"estimate":return this.Z_(Zt(t));default:return null}},t.prototype.Z_=function(t){var e=ue(t),n=new ut(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.ef=function(t){var e=C.g(t);_(Xe(e));var n=new at(e.get(1),e.get(3)),r=new k(e.u(5));return n.isEqual(this.U)||g("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.U.projectId+"/"+this.U.database+") instead."),this.Y_(r)},t}(),Js=li.ho,Zs=function(){function t(t){var e,n,r,i,o;if(void 0===t.host){if(void 0!==t.ssl)throw new f(h.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else M("settings","non-empty string","host",t.host),this.host=t.host,j("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(W("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","experimentalAutoDetectLongPolling","ignoreUndefinedProperties"]),j("settings","object","credentials",t.credentials),this.credentials=t.credentials,j("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),j("settings","boolean","ignoreUndefinedProperties",t.ignoreUndefinedProperties),!0===t.timestampsInSnapshots?g("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&g("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=t.timestampsInSnapshots)||void 0===n||n,this.ignoreUndefinedProperties=null!==(r=t.ignoreUndefinedProperties)&&void 0!==r&&r,j("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=li._o;else{if(t.cacheSizeBytes!==Js&&t.cacheSizeBytes<li.lo)throw new f(h.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+li.lo);this.cacheSizeBytes=t.cacheSizeBytes}j("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.experimentalForceLongPolling=null!==(i=t.experimentalForceLongPolling)&&void 0!==i&&i,j("settings","boolean","experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling),this.experimentalAutoDetectLongPolling=null!==(o=t.experimentalAutoDetectLongPolling)&&void 0!==o&&o,function(t,e,n,r){if(!0===e&&!0===r)throw new f(h.INVALID_ARGUMENT,"experimentalForceLongPolling and experimentalAutoDetectLongPolling cannot be used together.")}(0,t.experimentalForceLongPolling,0,t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.timestampsInSnapshots===t.timestampsInSnapshots&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),tu=function(){function t(e,n,i,o){var a=this;if(void 0===i&&(i=new fs),void 0===o&&(o=new ds),this.rf=i,this.af=o,this.cf=null,this.uf=new Dr,this.INTERNAL={delete:function(){return r.__awaiter(a,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return this.hf(),[4,this.lf.terminate()];case 1:return t.sent(),[2]}})})}}
2953,"object"==typeof e.options){var s=e;this.cf=s,this.__=t._f(s),this.ff=s.name,this.df=new Mo(n)}else{var u=e;if(!u.projectId)throw new f(h.INVALID_ARGUMENT,"Must provide projectId");this.__=new at(u.projectId,u.database),this.ff="[DEFAULT]",this.df=new Lo}this.wf=new Zs({})}return Object.defineProperty(t.prototype,"mf",{get:function(){return this.Tf||(this.Tf=new Ps(this.__,this.wf.ignoreUndefinedProperties)),this.Tf},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){x("Firestore.settings",arguments,1),P("Firestore.settings","object",1,t),t.merge&&delete(t=Object.assign(Object.assign({},this.wf),t)).merge;var e=new Zs(t);if(this.lf&&!this.wf.isEqual(e))throw new f(h.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.wf=e,void 0!==e.credentials&&(this.df=function(t){if(!t)return new Lo;switch(t.type){case"gapi":var e=t.client;return _(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new Fo(e,t.sessionIndex||"0");case"provider":return t.client;default:throw new f(h.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.hf(),this.lf.enableNetwork()},t.prototype.disableNetwork=function(){return this.hf(),this.lf.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.lf)throw new f(h.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1,i=!1;if(t&&(void 0!==t.experimentalTabSynchronization&&g("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(e=t.synchronizeTabs)&&void 0!==e?e:t.experimentalTabSynchronization)&&void 0!==n&&n,i=!!t.experimentalForceOwningTab&&t.experimentalForceOwningTab,r&&i))throw new f(h.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.Ef(this.rf,this.af,{jl:!0,cacheSizeBytes:this.wf.cacheSizeBytes,synchronizeTabs:r,ka:i})},t.prototype.clearPersistence=function(){return r.__awaiter(this,void 0,void 0,function(){var t,e=this;return r.__generator(this,function(n){if(void 0!==this.lf&&!this.lf.z_)throw new f(h.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");return t=new mr,[2,(this.uf.bs(function(){return r.__awaiter(e,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.rf.clearPersistence(this.__,this.ff)];case 1:return n.sent(),t.resolve(),[3,3];case 2:return e=n.sent(),t.reject(e),[3,3];case 3:return[2]}})})}),t.promise)]})})},t.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(t.prototype,"If",{get:function(){return this.hf(),this.lf.z_},enumerable:!1,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.hf(),this.lf.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){if(this.hf(),Ys(t))return this.lf.G_(t);P("Firestore.onSnapshotsInSync","function",1,t);var e={next:t};return this.lf.G_(e)},t.prototype.hf=function(){return this.lf||this.Ef(new fs,new ds,{jl:!1}),this.lf},t.prototype.Af=function(){return new ot(this.__,this.ff,this.wf.host,this.wf.ssl,this.wf.experimentalForceLongPolling,this.wf.experimentalAutoDetectLongPolling)},t.prototype.Ef=function(t,e,n){var r=this.Af();return this.lf=new Qs(this.df,this.uf),this.lf.start(r,t,e,n)},t._f=function(t){if(e=t.options,!Object.prototype.hasOwnProperty.call(e,"projectId"))throw new f(h.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e,n=t.options.projectId;if(!n||"string"!=typeof n)throw new f(h.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new at(n)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.cf)throw new f(h.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.cf}
2953,enumerable:!1,configurable:!0}),t.prototype.collection=function(t){return x("Firestore.collection",arguments,1),P("Firestore.collection","non-empty string",1,t),this.hf(),new vu(C.g(t),this,null)},t.prototype.doc=function(t){return x("Firestore.doc",arguments,1),P("Firestore.doc","non-empty string",1,t),this.hf(),ru.Rf(C.g(t),this,null)},t.prototype.collectionGroup=function(t){if(x("Firestore.collectionGroup",arguments,1),P("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new f(h.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.hf(),new pu(function(t){return new jn(C.P(),t)}(t),this,null)},t.prototype.runTransaction=function(t){var e=this;return x("Firestore.runTransaction",arguments,1),P("Firestore.runTransaction","function",1,t),this.hf().transaction(function(n){return t(new eu(e,n))})},t.prototype.batch=function(){return this.hf(),new nu(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(d()){case o.LogLevel.DEBUG:return"debug";case o.LogLevel.ERROR:return"error";case o.LogLevel.SILENT:return"silent";case o.LogLevel.WARN:return"warn";case o.LogLevel.INFO:return"info";case o.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),t.setLogLevel=function(t){var e;x("Firestore.setLogLevel",arguments,1),U("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),e=t,p.setLogLevel(e)},t.prototype.gf=function(){return this.wf.timestampsInSnapshots},t.prototype.Pf=function(){return this.wf},t}(),eu=function(){function t(t,e){this.yf=t,this.Vf=e}return t.prototype.get=function(t){var e=this;x("Transaction.get",arguments,1);var n=bu("Transaction.get",t,this.yf);return this.Vf.v_([n.f_]).then(function(t){if(!t||1!==t.length)return b();var r=t[0];if(r instanceof Ln)return new ou(e.yf,n.f_,null,!1,!1,n.d_);if(r instanceof Pn)return new ou(e.yf,n.f_,r,!1,!1,n.d_);throw b()})},t.prototype.set=function(t,e,n){R("Transaction.set",arguments,2,3);var r=bu("Transaction.set",t,this.yf);n=gu("Transaction.set",n);var i=wu(r.d_,e,n),o=Ls(this.yf.mf,"Transaction.set",r.f_,i,null!==r.d_,n);return this.Vf.set(r.f_,o),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof e||e instanceof ms?(D("Transaction.update",arguments,3),r=bu("Transaction.update",t,this.yf),i=js(this.yf.mf,"Transaction.update",r.f_,e,n,o)):(x("Transaction.update",arguments,2),r=bu("Transaction.update",t,this.yf),i=Ms(this.yf.mf,"Transaction.update",r.f_,e)),this.Vf.update(r.f_,i),this},t.prototype.delete=function(t){x("Transaction.delete",arguments,1);var e=bu("Transaction.delete",t,this.yf);return this.Vf.delete(e.f_),this},t}(),nu=function(){function t(t){this.yf=t,this.pf=[],this.bf=!1}return t.prototype.set=function(t,e,n){R("WriteBatch.set",arguments,2,3),this.vf();var r=bu("WriteBatch.set",t,this.yf);n=gu("WriteBatch.set",n);var i=wu(r.d_,e,n),o=Ls(this.yf.mf,"WriteBatch.set",r.f_,i,null!==r.d_,n);return this.pf=this.pf.concat(o.w_(r.f_,dn.ze())),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this.vf(),"string"==typeof e||e instanceof ms?(D("WriteBatch.update",arguments,3),r=bu("WriteBatch.update",t,this.yf),i=js(this.yf.mf,"WriteBatch.update",r.f_,e,n,o)):(x("WriteBatch.update",arguments,2),r=bu("WriteBatch.update",t,this.yf),i=Ms(this.yf.mf,"WriteBatch.update",r.f_,e)),this.pf=this.pf.concat(i.w_(r.f_,dn.exists(!0))),this},t.prototype.delete=function(t){x("WriteBatch.delete",arguments,1),this.vf();var e=bu("WriteBatch.delete",t,this.yf);return this.pf=this.pf.concat(new Nn(e.f_,dn.ze())),this},t.prototype.commit=function(){return this.vf(),this.bf=!0,this.pf.length>0?this.yf.hf().write(this.pf):Promise.resolve()},t.prototype.vf=function(){if(this.bf)throw new f(h.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),ru=function(t){function e(e,n,r){var i=this;return(i=t.call(this,n.__,e,r)||this).f_=e,i.firestore=n,i.d_=r,i.lf=i.firestore.hf(),i}return r.__extends(e,t),e.Rf=function(t,n,r){if(t.length%2!=0)throw new f(h.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.R()+" has "+t.length);return new e(new k(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.f_.path._()}
2953,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new vu(this.f_.path.h(),this.firestore,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.f_.path.R()},enumerable:!1,configurable:!0}),e.prototype.collection=function(t){if(x("DocumentReference.collection",arguments,1),P("DocumentReference.collection","non-empty string",1,t),!t)throw new f(h.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=C.g(t);return new vu(this.f_.path.child(e),this.firestore,null)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw G("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.f_.isEqual(t.f_)&&this.d_===t.d_},e.prototype.set=function(t,e){R("DocumentReference.set",arguments,1,2),e=gu("DocumentReference.set",e);var n=wu(this.d_,t,e),r=Ls(this.firestore.mf,"DocumentReference.set",this.f_,n,null!==this.d_,e);return this.lf.write(r.w_(this.f_,dn.ze()))},e.prototype.update=function(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof t||t instanceof ms?(D("DocumentReference.update",arguments,2),n=js(this.firestore.mf,"DocumentReference.update",this.f_,t,e,r)):(x("DocumentReference.update",arguments,1),n=Ms(this.firestore.mf,"DocumentReference.update",this.f_,t)),this.lf.write(n.w_(this.f_,dn.exists(!0)))},e.prototype.delete=function(){return x("DocumentReference.delete",arguments,0),this.lf.write([new Nn(this.f_,dn.ze())])},e.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];R("DocumentReference.onSnapshot",arguments,1,4);var a={includeMetadataChanges:!1},s=0;"object"!=typeof i[s]||Ys(i[s])||(W("DocumentReference.onSnapshot",a=i[s],["includeMetadataChanges"]),j("DocumentReference.onSnapshot","boolean","includeMetadataChanges",a.includeMetadataChanges),s++);var u={includeMetadataChanges:a.includeMetadataChanges};if(Ys(i[s])){var c=i[s];i[s]=null===(t=c.next)||void 0===t?void 0:t.bind(c),i[s+1]=null===(e=c.error)||void 0===e?void 0:e.bind(c),i[s+2]=null===(n=c.complete)||void 0===n?void 0:n.bind(c)}else P("DocumentReference.onSnapshot","function",s,i[s]),L("DocumentReference.onSnapshot","function",s+1,i[s+1]),L("DocumentReference.onSnapshot","function",s+2,i[s+2]);var l={next:function(t){i[s]&&i[s](r.Sf(t))},error:i[s+1],complete:i[s+2]};return this.lf.listen(Un(this.f_.path),u,l)},e.prototype.get=function(t){var e=this;R("DocumentReference.get",arguments,0,1),yu("DocumentReference.get",t);var n=this.firestore.hf();return t&&"cache"===t.source?n.Q_(this.f_).then(function(t){return new ou(e.firestore,e.f_,t,!0,t instanceof Pn&&t.Je,e.d_)}):n.W_(this.f_,t).then(function(t){return e.Sf(t)})},e.prototype.withConverter=function(t){return new e(this.f_,this.firestore,t)},e.prototype.Sf=function(t){var e=t.docs.get(this.f_);return new ou(this.firestore,this.f_,e,t.fromCache,t.hasPendingWrites,this.d_)},e}(ks),iu=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),ou=function(){function t(t,e,n,r,i,o){this.yf=t,this.f_=e,this.Df=n,this.Cf=r,this.Nf=i,this.d_=o}return t.prototype.data=function(t){var e=this;if(R("DocumentSnapshot.data",arguments,0,1),t=mu("DocumentSnapshot.data",t),this.Df){if(this.d_){var n=new au(this.yf,this.f_,this.Df,this.Cf,this.Nf,null);return this.d_.fromFirestore(n,t)}return new Xs(this.yf.__,this.yf.gf(),t.serverTimestamps||"none",function(t){return new ru(t,e.yf,null)},function(t){return new it(t)}).X_(this.Df.rn())}},t.prototype.get=function(t,e){var n=this;if(R("DocumentSnapshot.get",arguments,1,2),e=mu("DocumentSnapshot.get",e),this.Df){var r=this.Df.data().field(Hs("DocumentSnapshot.get",t,this.f_));if(null!==r)return new Xs(this.yf.__,this.yf.gf(),e.serverTimestamps||"none",function(t){return new ru(t,n.yf,n.d_)},function(t){return new it(t)}).X_(r)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.f_.path._()}
2953,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new ru(this.f_,this.yf,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.Df},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new iu(this.Nf,this.Cf)},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw G("isEqual","DocumentSnapshot",1,e);return this.yf===e.yf&&this.Cf===e.Cf&&this.f_.isEqual(e.f_)&&(null===this.Df?null===e.Df:this.Df.isEqual(e.Df))&&this.d_===e.d_},t}(),au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.data=function(e){return t.prototype.data.call(this,e)},e}(ou);
2954/**
2955 * @license
2956 * Copyright 2017 Google LLC
2957 *
2958 * Licensed under the Apache License, Version 2.0 (the "License");
2959 * you may not use this file except in compliance with the License.
2960 * You may obtain a copy of the License at
2961 *
2962 *   http://www.apache.org/licenses/LICENSE-2.0
2963 *
2964 * Unless required by applicable law or agreed to in writing, software
2965 * distributed under the License is distributed on an "AS IS" BASIS,
2966 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2967 * See the License for the specific language governing permissions and
2968 * limitations under the License.
2969 */function su(t,e,n,r,i,o,a){var s;if(i.p()){if("array-contains"===o||"array-contains-any"===o)throw new f(h.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){lu(a,o);for(var u=[],c=0,l=a;c<l.length;c++){var p=l[c];u.push(cu(r,t,p))}s={arrayValue:{values:u}}}else s=cu(r,t,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||lu(a,o),s=Fs(n,e,a,"in"===o||"not-in"===o);var d=er.create(i,o,s);return function(t,e){if(e.hn()){var n=Hn(t);if(null!==n&&!n.isEqual(e.field))throw new f(h.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=qn(t);null!==r&&hu(t,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n<r.length;n++){var i=r[n];if(e.indexOf(i.op)>=0)return i.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw i===e.op?new f(h.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new f(h.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,d),d}function uu(t,e,n){if(null!==t.startAt)throw new f(h.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new f(h.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new dr(e,n);return function(t,e){if(null===qn(t)){var n=Hn(t);null!==n&&hu(t,n,e.field)}}(t,r),r}function cu(t,e,n){if("string"==typeof n){if(""===n)throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Wn(e)&&-1!==n.indexOf("/"))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=e.path.child(C.g(n));if(!k.F(r))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return he(t,new k(r))}if(n instanceof ks)return he(t,n.f_);throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+q(n)+".")}function lu(t,e){if(!Array.isArray(t)||0===t.length)throw new f(h.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new f(h.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if("in"===e||"array-contains-any"===e){if(t.indexOf(null)>=0)throw new f(h.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter(function(t){return Number.isNaN(t)}).length>0)throw new f(h.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")}}function hu(t,e,n){if(!n.isEqual(e))throw new f(h.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}function fu(t){if(Bn(t)&&0===t.on.length)throw new f(h.UNIMPLEMENT
2969ED,"limitToLast() queries require specifying at least one orderBy() clause")}var pu=function(){function t(t,e,n){this.Ff=t,this.firestore=e,this.d_=n}return t.prototype.where=function(e,n,r){x("Query.where",arguments,3),H("Query.where",3,r);var i=U("Query.where",["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],2,n),o=Hs("Query.where",e),a=su(this.Ff,"Query.where",this.firestore.mf,this.firestore.__,o,i,r);return new t(function(t,e){var n=t.filters.concat([e]);return new jn(t.path,t.collectionGroup,t.on.slice(),n,t.limit,t.an,t.startAt,t.endAt)}(this.Ff,a),this.firestore,this.d_)},t.prototype.orderBy=function(e,n){var r;if(R("Query.orderBy",arguments,1,2),L("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new f(h.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}var i=Hs("Query.orderBy",e),o=uu(this.Ff,i,r);return new t(function(t,e){var n=t.on.concat([e]);return new jn(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.an,t.startAt,t.endAt)}(this.Ff,o),this.firestore,this.d_)},t.prototype.limit=function(e){return x("Query.limit",arguments,1),P("Query.limit","number",1,e),K("Query.limit",1,e),new t(zn(this.Ff,e,"F"),this.firestore,this.d_)},t.prototype.limitToLast=function(e){return x("Query.limitToLast",arguments,1),P("Query.limitToLast","number",1,e),K("Query.limitToLast",1,e),new t(zn(this.Ff,e,"L"),this.firestore,this.d_)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.startAt",arguments,1);var i=this.xf("Query.startAt",e,n,!0);return new t($n(this.Ff,i),this.firestore,this.d_)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.startAfter",arguments,1);var i=this.xf("Query.startAfter",e,n,!1);return new t($n(this.Ff,i),this.firestore,this.d_)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.endBefore",arguments,1);var i=this.xf("Query.endBefore",e,n,!0);return new t(Qn(this.Ff,i),this.firestore,this.d_)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];D("Query.endAt",arguments,1);var i=this.xf("Query.endAt",e,n,!1);return new t(Qn(this.Ff,i),this.firestore,this.d_)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw G("isEqual","Query",1,e);return this.firestore===e.firestore&&Yn(this.Ff,e.Ff)&&this.d_===e.d_},t.prototype.withConverter=function(e){return new t(this.Ff,this.firestore,e)},t.prototype.xf=function(t,e,n,i){if(H(t,1,e),e instanceof ou)return x(t,r.__spreadArrays([e],n),1),function(t,e,n,r,i){if(!r)throw new f(h.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],a=0,s=Gn(t);a<s.length;a++){var u=s[a];if(u.field.p())o.push(he(e,r.key));else{var c=r.field(u.field);if(Xt(c))throw new f(h.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+u.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===c){var l=u.field.R();throw new f(h.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+l+"' (used as the orderBy) does not exist.")}o.push(c)}}return new lr(o,i)}(this.Ff,this.firestore.__,t,e.Df,i);var o=[e].concat(n);return function(t,e,n,r,i,o){var a=t.on;if(i.length>a.length)throw new f(h.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var s=[],u=0;u<i.length;u++){var c=i[u];if(a[u].field.p()){if("string"!=typeof c)throw new f(h.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof c);if(!Wn(t)&&-1!==c.indexOf("/"))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+c+"' contains a slash.");var l=t.path.child(C.g(c));if(!k.F(l))throw new f(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+l+"' is not because it c
2969ontains an odd number of segments.");var p=new k(l);s.push(he(e,p))}else{var d=Fs(n,r,c);s.push(d)}}return new lr(s,o)}(this.Ff,this.firestore.__,this.firestore.mf,t,o,i)},t.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];R("Query.onSnapshot",arguments,1,4);var a={},s=0;if("object"!=typeof i[s]||Ys(i[s])||(W("Query.onSnapshot",a=i[s],["includeMetadataChanges"]),j("Query.onSnapshot","boolean","includeMetadataChanges",a.includeMetadataChanges),s++),Ys(i[s])){var u=i[s];i[s]=null===(t=u.next)||void 0===t?void 0:t.bind(u),i[s+1]=null===(e=u.error)||void 0===e?void 0:e.bind(u),i[s+2]=null===(n=u.complete)||void 0===n?void 0:n.bind(u)}else P("Query.onSnapshot","function",s,i[s]),L("Query.onSnapshot","function",s+1,i[s+1]),L("Query.onSnapshot","function",s+2,i[s+2]);var c={next:function(t){i[s]&&i[s](new du(r.firestore,r.Ff,t,r.d_))},error:i[s+1],complete:i[s+2]};return fu(this.Ff),this.firestore.hf().listen(this.Ff,a,c)},t.prototype.get=function(t){var e=this;R("Query.get",arguments,0,1),yu("Query.get",t),fu(this.Ff);var n=this.firestore.hf();return(t&&"cache"===t.source?n.j_(this.Ff):n.K_(this.Ff,t)).then(function(t){return new du(e.firestore,e.Ff,t,e.d_)})},t}(),du=function(){function t(t,e,n,r){this.yf=t,this.$f=e,this.kf=n,this.d_=r,this.Mf=null,this.Of=null,this.metadata=new iu(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.kf.docs.m()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.kf.docs.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;R("QuerySnapshot.forEach",arguments,1,2),P("QuerySnapshot.forEach","function",1,t),this.kf.docs.forEach(function(r){t.call(e,n.Lf(r,n.metadata.fromCache,n.kf.Wt.has(r.key)))})},Object.defineProperty(t.prototype,"query",{get:function(){return new pu(this.$f,this.yf,this.d_)},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){t&&(W("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),j("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.kf.Kt)throw new f(h.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.Mf&&this.Of===e||(this.Mf=function(t,e,n){if(t.Qt.m()){var r=0;return t.docChanges.map(function(e){var i=n(e.doc,t.fromCache,t.Wt.has(e.doc.key));return e.doc,{type:"added",doc:i,oldIndex:-1,newIndex:r++}})}var i=t.Qt;return t.docChanges.filter(function(t){return e||3!==t.type}).map(function(e){var r=n(e.doc,t.fromCache,t.Wt.has(e.doc.key)),o=-1,a=-1;return 0!==e.type&&(o=i.indexOf(e.doc.key),i=i.delete(e.doc.key)),1!==e.type&&(a=(i=i.add(e.doc)).indexOf(e.doc.key)),{type:_u(e.type),doc:r,oldIndex:o,newIndex:a}})}(this.kf,e,this.Lf.bind(this)),this.Of=e),this.Mf},t.prototype.isEqual=function(e){if(!(e instanceof t))throw G("isEqual","QuerySnapshot",1,e);return this.yf===e.yf&&Yn(this.$f,e.$f)&&this.kf.isEqual(e.kf)&&this.d_===e.d_},t.prototype.Lf=function(t,e,n){return new au(this.yf,t.key,t,e,n,this.d_)},t}(),vu=function(t){function e(e,n,r){var i=this;if((i=t.call(this,Un(e),n,r)||this).Bf=e,e.length%2!=1)throw new f(h.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.R()+" has "+e.length);return i}return r.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.Ff.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.Ff.path.h();return t.m()?null:new ru(new k(t),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.Ff.path.R()},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){R("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=Y.k()),P("CollectionReference.doc","non-empty string",1,t);var e=C.g(t);return ru.Rf(this.Ff.path.child(e),this.firestore,this.d_)},e.prototype.add=function(t){x("CollectionReference.add",arguments,1
2969);var e=this.d_?this.d_.toFirestore(t):t;P("CollectionReference.add","object",1,e);var n=this.doc();return new ru(n.f_,this.firestore,null).set(e).then(function(){return n})},e.prototype.withConverter=function(t){return new e(this.Bf,this.firestore,t)},e}(pu);function gu(t,e){if(void 0===e)return{merge:!1};if(W(t,e,["merge","mergeFields"]),j(t,"boolean","merge",e.merge),function(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){if(!(r instanceof Array))throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+q(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new f(h.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be "+n+", but the value at index "+o+" was: "+q(r[o]))}(t,e,n,r,i)}(t,"mergeFields","a string or a FieldPath",e.mergeFields,function(t){return"string"==typeof t||t instanceof ms}),void 0!==e.mergeFields&&void 0!==e.merge)throw new f(h.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function mu(t,e){return void 0===e?{}:(W(t,e,["serverTimestamps"]),F(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function yu(t,e){L(t,"object",1,e),e&&(W(t,e,["source"]),F(t,0,"source",e.source,["default","server","cache"]))}function bu(t,e,n){if(e instanceof ks){if(e.firestore!==n)throw new f(h.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw G(t,"DocumentReference",1,e)}function _u(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return b()}}function wu(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}
2970/**
2971 * @license
2972 * Copyright 2020 Google LLC
2973 *
2974 * Licensed under the Apache License, Version 2.0 (the "License");
2975 * you may not use this file except in compliance with the License.
2976 * You may obtain a copy of the License at
2977 *
2978 *   http://www.apache.org/licenses/LICENSE-2.0
2979 *
2980 * Unless required by applicable law or agreed to in writing, software
2981 * distributed under the License is distributed on an "AS IS" BASIS,
2982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2983 * See the License for the specific language governing permissions and
2984 * limitations under the License.
2985 */var Eu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.serverTimestamp=function(){O("FieldValue.serverTimestamp",arguments);var t=new Es("serverTimestamp");return t.e_="FieldValue.serverTimestamp",new e(t)},e.delete=function(){O("FieldValue.delete",arguments);var t=new _s("deleteField");return t.e_="FieldValue.delete",new e(t)},e.arrayUnion=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];D("FieldValue.arrayUnion",arguments,1);var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return D("arrayUnion()",arguments,1),new Is("arrayUnion",t)}.apply(void 0,t);return r.e_="FieldValue.arrayUnion",new e(r)},e.arrayRemove=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];D("FieldValue.arrayRemove",arguments,1);var r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return D("arrayRemove()",arguments,1),new Ts("arrayRemove",t)}.apply(void 0,t);return r.e_="FieldValue.arrayRemove",new e(r)},e.increment=function(t){P("FieldValue.increment","number",1,t),x("FieldValue.increment",arguments,1);var n=function(t){return new Ss("increment",t)}(t);return n.e_="FieldValue.increment",new e(n)},e.prototype.isEqual=function(t){return this.l_.isEqual(t.l_)},e}(As),Iu={Firestore:tu,GeoPoint:Cs,Timestamp:ut,Blob:it,Transaction:eu,WriteBatch:nu,DocumentReference:ru,DocumentSnapshot:ou,Query:pu,QueryDocumentSnapshot:au,QuerySnapshot:du,CollectionReference:vu,FieldPath:ms,FieldValue:Eu,setLogLevel:tu.setLogLevel,CACHE_SIZE_UNLIMITED:Js};
2986/**
2987 * @license
2988 * Copyright 2017 Google LLC
2989 *
2990 * Licensed under the Apache License, Version 2.0 (the "License");
2991 * you may not use this file except in compliance with the License.
2992 * You may obtain a copy of the License at
2993 *
2994 *   http://www.apache.org/licenses/LICENSE-2.0
2995 *
2996 * Unless required by applicable law or agreed to in writing, softw
vendor: 7,030 bytes, lines 2996-3042
2996are
2997 * distributed under the License is distributed on an "AS IS" BASIS,
2998 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2999 * See the License for the specific language governing permissions and
3000 * limitations under the License.
3001 */
3002/**
3003 * @license
3004 * Copyright 2017 Google LLC
3005 *
3006 * Licensed under the Apache License, Version 2.0 (the "License");
3007 * you may not use this file except in compliance with the License.
3008 * You may obtain a copy of the License at
3009 *
3010 *   http://www.apache.org/licenses/LICENSE-2.0
3011 *
3012 * Unless required by applicable law or agreed to in writing, software
3013 * distributed under the License is distributed on an "AS IS" BASIS,
3014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3015 * See the License for the specific language governing permissions and
3016 * limitations under the License.
3017 */function Tu(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",function(t){return function(t,e){var n=new ds,r=new ps(n);return new tu(t,e,r,n)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))},"PUBLIC").setServiceProps(Object.assign({},Iu)))}(t),t.registerVersion("@firebase/firestore","1.18.0")}Tu(l.default),e.__PRIVATE_registerFirestore=Tu}).call(this,n("f28c"))},ea7b:function(t,e,n){"use strict";n("2ce1")},ebd6:function(t,e,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},f0bd:function(t,e,n){"use strict";n.r(e),function(t){
3018/**!
3019 * @fileOverview Kickass library to create and place poppers near their reference elements.
3020 * @version 1.16.1
3021 * @license
3022 * Copyright (c) 2016 Federico Zivolo and contributors
3023 *
3024 * Permission is hereby granted, free of charge, to any person obtaining a copy
3025 * of this software and associated documentation files (the "Software"), to deal
3026 * in the Software without restriction, including without limitation the rights
3027 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3028 * copies of the Software, and to permit persons to whom the Software is
3029 * furnished to do so, subject to the following conditions:
3030 *
3031 * The above copyright notice and this permission notice shall be included in all
3032 * copies or substantial portions of the Software.
3033 *
3034 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3035 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3036 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3037 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3038 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3039 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3040 * SOFTWARE.
3041 */
3042var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function i(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function o(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},r))}}var a=n&&window.Promise,s=a?i:o;function u(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function c(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView,r=n.getComputedStyle(t,null);return e?r[e]:r}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function h(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=c(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:h(l(t))}function f(t){return t&&t.referenceNode?t.referenceNode:t}var p=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function v(t){return 11===t?p:10===t?d:p||d}function g(t){if(!t)return document.documentElement;var e=v(10)?document.body:null,n=t.offsetParent||null;while(n===e&&t.nextElementSibling)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?g(n):n:t?t.ownerDocument.documentElement:document.documentElement}function m(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||g(t.firstElementChild)===t)}function y(t){return null!==t.parentNode?y(t.parentNode):t}function b(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||r.contains(i))return m(a)?a:g(a);var s=y(t);return s.host?b(s.host,e):b(t,y(e).host)}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function w(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_(e,"top"),i=_(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function E(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function I(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],v(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function T(t){var e=t.body,n=t.documentElement,r=v(10)&&getComputedStyle(n);return{height:I("Height",e,n,r),width:I("Width",e,n,r)}}var S=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},C=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),A=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function k(t){return N({},t,{right:t.left+t.width,bottom:t.top+t.height})}function O(t){var e={};try{if(v(10)){e=t.getBoundingClientRect();var n=_(t,"top"),r=_(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(f){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?T(t.ownerDocument):{},a=o.width||t.clientWidth||i.width,s=o.height||t.clientHeight||i.height,u=t.offsetWidth-a,l=t.offsetHeight-s;if(u||l){var h=c(t);u-=E(h,"x"),l-=E(h,"y"),i.width-=u,i.height-=l}return k(i)}function x(t,e){var n=arguments.length>
vendor: 15,993 bytes, line 3042
30422&&void 0!==arguments[2]&&arguments[2],r=v(10),i="HTML"===e.nodeName,o=O(t),a=O(e),s=h(t),u=c(e),l=parseFloat(u.borderTopWidth),f=parseFloat(u.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=k({top:o.top-a.top-l,left:o.left-a.left-f,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var d=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);p.top-=l-d,p.bottom-=l-d,p.left-=f-g,p.right-=f-g,p.marginTop=d,p.marginLeft=g}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(p=w(p,e)),p}function D(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=x(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:_(n),s=e?0:_(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return k(u)}function R(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===c(t,"position"))return!0;var n=l(t);return!!n&&R(n)}function P(t){if(!t||!t.parentElement||v())return document.documentElement;var e=t.parentElement;while(e&&"none"===c(e,"transform"))e=e.parentElement;return e||document.documentElement}function L(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?P(t):b(t,f(e));if("viewport"===r)o=D(a,i);else{var s=void 0;"scrollParent"===r?(s=h(l(e)),"BODY"===s.nodeName&&(s=t.ownerDocument.documentElement)):s="window"===r?t.ownerDocument.documentElement:r;var u=x(s,a,i);if("HTML"!==s.nodeName||R(a))o=u;else{var c=T(t.ownerDocument),p=c.height,d=c.width;o.top+=u.top-u.marginTop,o.bottom=p+u.top,o.left+=u.left-u.marginLeft,o.right=d+u.left}}n=n||0;var v="number"===typeof n;return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function M(t){var e=t.width,n=t.height;return e*n}function j(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=L(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map(function(t){return N({key:t},s[t],{area:M(s[t])})}).sort(function(t,e){return e.area-t.area}),c=u.filter(function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}),l=c.length>0?c[0].key:u[0].key,h=t.split("-")[1];return l+(h?"-"+h:"")}function F(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?P(e):b(e,f(n));return x(n,i,r)}function U(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:t.offsetWidth+i,height:t.offsetHeight+r};return o}function V(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function B(t,e,n){n=n.split("-")[0];var r=U(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[c]:e[V(s)],i}function q(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function H(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var r=q(t,function(t){return t[e]===n});return t.indexOf(r)}function W(t,e,n){var r=void 0===n?t:t.slice(0,H(t,"name",n));return r.forEach(function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t["function"]||t.fn;t.enabled&&u(n)&&(e.offsets.popper=k(e.offsets.popper),e.offsets.reference=k(e.offsets.reference),e=n(e,t))}),e}function G(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=j(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=B(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=W(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function K(t,e){return t.some(function(t){var n=t.name,r=t.enabled;return r&&n===e})}function z(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if("undefined"!==typeof document.body.style[o])return o}return null}function $(){return this.state.isDestroyed=!0,K(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Q(t){var e=t.ownerDocument;return e?e.defaultView:window}function Y(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||Y(h(o.parentNode),e,n,r),r.push(o)}function X(t,e,n,r){n.updateBound=r,Q(t).addEventListener("resize",n.updateBound,{passive:!0});var i=h(t);return Y(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=X(this.reference,this.options,this.state,this.scheduleUpdate))}function Z(t,e){return Q(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function tt(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Z(this.reference,this.state))}function et(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function nt(t,e){Object.keys(e).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&et(e[n])&&(r="px"),t.style[n]=e[n]+r})}function rt(t,e){Object.keys(e).forEach(function(n){var r=e[n];!1!==r?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function it(t){return nt(t.instance.popper,t.styles),rt(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&nt(t.arrowElement,t.arrowStyles),t}function ot(t,e,n,r,i){var o=F(i,e,t,n.positionFixed),a=j(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),nt(e,{position:n.positionFixed?"fixed":"absolute"}),n}function at(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},u=o(i.width),c=o(r.width),l=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),f=u%2===c%2,p=u%2===1&&c%2===1,d=e?l||h||f?o:a:s,v=e?o:s;return{left:d(p&&!h&&e?r.left-1:r.left),top:v(r.top),bottom:v(r.bottom),right:d(r.right)}}var st=n&&/Firefox/i.test(navigator.userAgent);function ut(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=q(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=g(t.instance.popper),u=O(s),c={position:i.position},l=at(t,window.devicePixelRatio<2||!st),h="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=z("transform"),d=void 0,v=void 0;if(v="bottom"===h?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,d="right"===f?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&p)c[p]="translate3d("+d+"px, "+v+"px, 0)",c[h]=0,c[f]=0,c.willChange="transform";else{var m="bottom"===h?-1:1,y="right"===f?-1:1;c[h]=v*m,c[f]=d*y,c.willChange=h+", "+f}var b={"x-placement":t.placement};return t.attributes=N({},b,t.attributes),t.styles=N({},c,t.styles),t.arrowStyles=N({},t.offsets.arrow,t.arrowStyles),t}function ct(t,e,n){var r=q(t,function(t){var n=t.name;return n===e}),i=!!r&&t.some(function(t){return t.name===n&&t.enabled&&t.order<r.order});if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function lt(t,e){var n;if(!ct(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"===typeof r){if(r=t.instance.popper.querySelector(r),!r)return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",h=u?"Top":"Left",f=h.toLowerCase(),p=u?"left":"top",d=u?"bottom":"right",v=U(r)[l];s[d]-v<a[f]&&(t.offsets.popper[f]-=a[f]-(s[d]-v)),s[f]+v>a[d]&&(t.offsets.popper[f]+=s[f]+v-a[d]),t.offsets.popper=k(t.offsets.popper);var g=s[f]+s[l]/2-v/2,m=c(t.instance.popper),y=parseFloat(m["margin"+h]),b=parseFloat(m["border"+h+"Width"]),_=g-t.offsets.popper[f]-y-b;return _=Math.max(Math.min(a[l]-v,_),0),t.arrowElement=r,t.offsets.arrow=(n={},A(n,f,Math.round(_)),A(n,p,""),n),t}function ht(t){return"end"===t?"start":"start"===t?"end":t}var ft=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],pt=ft.slice(3);function dt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pt.indexOf(t),r=pt.slice(n+1).concat(pt.slice(0,n));return e?r.reverse():r}var vt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function gt(t,e){if(K(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=L(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=V(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case vt.FLIP:a=[r,i];break;case vt.CLOCKWISE:a=dt(r);break;case vt.COUNTERCLOCKWISE:a=dt(r,!0);break;default:a=e.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=V(r);var c=t.offsets.popper,l=t.offsets.reference,h=Math.floor,f="left"===r&&h(c.right)>h(l.left)||"right"===r&&h(c.left)<h(l.right)||"top"===r&&h(c.bottom)>h(l.top)||"bottom"===r&&h(c.top)<h(l.bottom),p=h(c.left)<h(n.left),d=h(c.right)>h(n.right),v=h(c.top)<h(n.top),g=h(c.bottom)>h(n.bottom),m="left"===r&&p||"right"===r&&d||"top"===r&&v||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(y&&"start"===o&&p||y&&"end"===o&&d||!y&&"start"===o&&v||!y&&"end"===o&&g),_=!!e.flipVariationsByContent&&(y&&"start"===o&&d||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&v),w=b||_;(f||m||w)&&(t.flipped=!0,(f||m)&&(r=a[u+1]),w&&(o=ht(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=N({},t.offsets.popper,B(t.instance.popper,t.offsets.reference,t.placement)),t=W(t.instance.modifiers,t,"flip"))}),t}function mt(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]<o(r[u])&&(t.offsets.popper[u]=o(r[u])-n[c]),n[u]>o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}function yt(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var u=k(s);return u[e]/100*o}if("vh"===a||"vw"===a){var c=void 0;return c="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}return o}function bt(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(q(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return c=c.map(function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return yt(t,i,e,n)})}),c.forEach(function(t,e){t.forEach(function(n,r){et(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))})}),i}function _t(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=et(+n)?[+n,0]:bt(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),t.popper=o,t}function wt(t,e){var n=e.boundariesElement||g(t.instance.popper);t.instance.reference===n&&(n=g(n));var r=z("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=L(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=u;var c=e.priority,l=t.offsets.popper,h={primary:function(t){var n=l[t];return l[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(l[t],u[t])),A({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=l[n];return l[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(l[n],u[t]-("right"===t?l.width:l.height))),A({},n,r)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";l=N({},l,h[e](t))}),t.offsets.popper=l,t}function Et(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:A({},u,o[u]),end:A({},u,o[u]+o[c]-a[c])};t.offsets.popper=N({},a,l[r])}return t}function It(t){if(!ct(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=q(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function Tt(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=V(e),t.offsets.popper=k(i),t}var St={shift:{order:100,enabled:!0,fn:Et},offset:{order:200,enabled:!0,fn:_t,offset:0},preventOverflow:{order:300,enabled:!0,fn:wt,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:mt},arrow:{order:500,enabled:!0,fn:lt,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:gt,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Tt},hide:{order:800,enabled:!0,fn:It},computeStyle:{order:850,enabled:!0,fn:ut,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:it,onLoad:ot,gpuAcceleration:void 0}},Ct={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:St},At=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=s(this.update.bind(this)),this.options=N({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(N({}
3042,t.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=N({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return N({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&u(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return C(t,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return $.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return tt.call(this)}}]),t}();At.Utils=("undefined"!==typeof window?window:t).PopperUtils,At.placements=ft,At.Defaults=Ct,e["default"]=At}.call(this,n("c8ba"))},f1ae:function(t,e,n){"use strict";var r=n("86cc"),i=n("4630");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},f28c:function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function u(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}})();var c,l=[],h=!1,f=-1;function p(){h&&c&&(h=!1,c.length?l=c.concat(l):f=-1,l.length&&d())}function d(){if(!h){var t=s(p);h=!0;var e=l.length;while(e){c=l,l=[];while(++f<e)c&&c[f].run();f=-1,e=l.length}c=null,h=!1,u(t)}}function v(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new v(t,e)),1!==l.length||h||s(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f8ec:function(t,e){
3043/**
3044 * @license
3045 * Copyright 2015 Google Inc. All Rights Reserved.
3046 *
3047 * Licensed under the Apache License, Version 2.0 (the "License");
3048 * you may not use this file except in compliance with the License.
3049 * You may obtain a copy of the License at
3050 *
3051 *      http://www.apache.org/licenses/LICENSE-2.0
3052 *
3053 * Unless required by applicable law or agreed to in writing, software
3054 * distributed under the License is distributed on an "AS IS" BASIS,
3055 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3056 * See the License for the specific language governing permissions and
3057 * limitations under the License.
3058 */
3059(function(){"use strict";var t=function(t){this.element_=t,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()};window["MaterialTextfield"]=t,t.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"},t.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},t.prototype.onKeyDown_=function(t){var e=t.target.value.split("\n").length;13===t.keyCode&&e>=this.maxRows&&t.preventDefault()},t.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasse
vendor: 3,385 bytes, lines 3059-3060
3059s_.IS_FOCUSED)},t.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.onReset_=function(t){this.updateClasses_()},t.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},t.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},t.prototype["checkDisabled"]=t.prototype.checkDisabled,t.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype["checkFocus"]=t.prototype.checkFocus,t.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},t.prototype["checkValidity"]=t.prototype.checkValidity,t.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},t.prototype["checkDirty"]=t.prototype.checkDirty,t.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},t.prototype["disable"]=t.prototype.disable,t.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},t.prototype["enable"]=t.prototype.enable,t.prototype.change=function(t){this.input_.value=t||"",this.updateClasses_()},t.prototype["change"]=t.prototype.change,t.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));var t=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),t&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},componentHandler.register({constructor:t,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0})})()},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement}}]);
3060//# sourceMappingURL=chunk-vendors.e3dff1e1.js.map

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.