PageSourceSearch

https://xynergy.ai/_next/static/chunks/752-7643639fc645eab6.js

js xynergy.ai collected 2026-10-05 16:01:23 UTC 120,373 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[752],{15051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(49507),i=r(31379),o=r(91150),s=r(16215);r(25407),r(60577),r(23939);let a="@firebase/firestore",l="4.14.1";function h(e){if("object"!=typeof e||null===e)return!1;for(let t of["next","error","complete"])if(t in e&&"function"==typeof e[t])return!0;return!1}class u{constructor(e="count",t){this._internalFieldPath=t,this.type="AggregateField",this.aggregateType=e}}class c{constructor(e,t,r){this._userDataWriter=t,this._data=r,this.type="AggregateQuerySnapshot",this.query=e}data(){return this._userDataWriter.convertObjectMap(this._data)}_fieldsProto(){return new o.ObjectValue({mapValue:{fields:this._data}}).clone().value.mapValue.fields}}class f{constructor(e,t,r,n,i){this._firestore=e,this._userDataWriter=t,this._key=r,this._document=n,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new o.DocumentReference(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){let e=new d(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){return this._document?.data.clone().value.mapValue.fields??void 0}get(e){if(this._document){let t=this._document.data.field(o.__PRIVATE_fieldPathFromArgument("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class d extends f{data(){return super.data()}}function p(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new o.FirestoreError(o.D.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class g{}class _ extends g{}class m extends _{constructor(e,t,r){super(),this._field=e,this._op=t,this._value=r,this.type="where"}static _create(e,t,r){return new m(e,t,r)}_apply(e){let t=this._parse(e);return C(e._query,t),new o.Query(e.firestore,e.converter,o.__PRIVATE_queryWithAddedFilter(e._query,t))}_parse(e){let t=o.__PRIVATE_newUserDataReader(e.firestore);return function(e,t,r,n,i,s,a){let l;if(i.isKeyField()){if("array-contains"===s||"array-contains-any"===s)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid Query. You can't perform '${s}' queries on documentId().`);if("in"===s||"not-in"===s){T(a,s);let t=[];for(let r of a)t.push(A(n,e,r));l={arrayValue:{values:t}}}else l=A(n,e,a)}else"in"!==s&&"not-in"!==s&&"array-contains-any"!==s||T(a,s),l=o.__PRIVATE_parseQueryValue(r,t,a,"in"===s||"not-in"===s);return o.FieldFilter.create(i,s,l)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value)}}class y extends g{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new y(e,t)}_parse(e){let t=this._queryConstraints.map(t=>t._parse(e)).filter(e=>e.getFilters().length>0);return 1===t.length?t[0]:o.CompositeFilter.create(t,this._getOperator())}_apply(e){let t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let r=e;for(let e of t.getFlattenedFilters())C(r,e),r=o.__PRIVATE_queryWithAddedFilter(r,e)}(e._query,t),new o.Query(e.firestore,e.converter,o.__PRIVATE_queryWithAddedFilter(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class b extends _{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new b(e,t)}_apply(e){let t=function(e,t,r){if(null!==e.startAt)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new o.OrderBy(t,r)}(e._query,this._field,this._direction);return new o.Query(e.firestore,e.converter,o.__PRIVATE_queryWithAddedOrderBy(e._query,t))}}class v extends _{constructor(e,t,r){super(),this.type=e,this._limit=t,this._limitType=r}static _create(e,t,r){return new v(e,t,r)}_apply(e){return new o.Query(e.firestore,e.converter,o.__PRIVATE_queryWithLimit(e._query,this._limit,this._limitType))}}class E extends _{constructor(e,t,r){super(),this.type=e,this._docOrFields=t,this._inclusive=r}static _create(e,t,r){return new E(e,t,r)}_apply(e){let t=I(e,this.type,this._docOrFields,this._inclusive);return new o.Query(e.firestore,e.converter,o.__PRIVATE_queryWithStartAt(e._query,t))}}class w extends _{constructor(e,t,r){super(),this.type=e,this._docOrFields=t,this._inclusive=r}static _create(e,t,r){return new w(e,t,r)}_apply(e){let t=I(e,this.type,this._docOrFields,this._inclusive);return new o.Query(e.firestore,e.converter,o.__PRIVATE_queryWithEndAt(e._query,t))}}function I(e,t,r,n){if(r[0]=s.getModularInstance(r[0]),r[0]instanceof f)return function(e,t,r,n,i){if(!n)throw new o.FirestoreError(o.D.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${r}().`);let s=[];for(let r of o.__PRIVATE_queryNormalizedOrderBy(e))if(r.field.isKeyField())s.push(o.__PRIVATE_refValue(t,n.key));else{let e=n.data.field(r.field);if(o.__PRIVATE_isServerTimestamp(e))throw new o.FirestoreError(o.D.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+r.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){let e=r.field.canonicalString();throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${e}' (used as the orderBy) does not exist.`)}s.push(e)}return new o.Bound(s,i)}(e._query,e.firestore._databaseId,t,r[0]._document,n);{let i=o.__PRIVATE_newUserDataReader(e.firestore);return function(e,t,r,n,i,s){let a=e.explicitOrderBy;if(i.length>a.length)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Too many arguments provided to ${n}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);let l=[];for(let s=0;s<i.length;s++){let h=i[s];
1if(a[s].field.isKeyField()){if("string"!=typeof h)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${n}(), but got a ${typeof h}`);if(!o.__PRIVATE_isCollectionGroupQuery(e)&&-1!==h.indexOf("/"))throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${n}() must be a plain document ID, but '${h}' contains a slash.`);let r=e.path.child(o.ResourcePath.fromString(h));if(!o.DocumentKey.isDocumentKey(r))throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${n}() must result in a valid document path, but '${r}' is not because it contains an odd number of segments.`);let i=new o.DocumentKey(r);l.push(o.__PRIVATE_refValue(t,i))}else{let e=o.__PRIVATE_parseQueryValue(r,n,h);l.push(e)}}return new o.Bound(l,s)}(e._query,e.firestore._databaseId,i,t,r,n)}}function A(e,t,r){if("string"==typeof(r=s.getModularInstance(r))){if(""===r)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!o.__PRIVATE_isCollectionGroupQuery(t)&&-1!==r.indexOf("/"))throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${r}' contains a '/' character.`);let n=t.path.child(o.ResourcePath.fromString(r));if(!o.DocumentKey.isDocumentKey(n))throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${n}' is not because it has an odd number of segments (${n.length}).`);return o.__PRIVATE_refValue(e,new o.DocumentKey(n))}if(r instanceof o.DocumentReference)return o.__PRIVATE_refValue(e,r._key);throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${o.__PRIVATE_valueDescription(r)}.`)}function T(e,t){if(!Array.isArray(e)||0===e.length)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function C(e,t){let r=function(e,t){for(let r of e)for(let e of r.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==r)throw r===t.op?new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new o.FirestoreError(o.D.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${r.toString()}' filters.`)}function S(e,t){if(!(t instanceof m||t instanceof y))throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Function ${e}() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'.`)}function D(e,t,r){return e?r&&(r.merge||r.mergeFields)?e.toFirestore(t,r):e.toFirestore(t):t}class P extends o.AbstractUserDataWriter{constructor(e){super(),this.firestore=e}convertBytes(e){return new o.Bytes(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new o.DocumentReference(this.firestore,null,t)}}function R(){return new u("count")}function x(e,t){let r=o.__PRIVATE_cast(e.firestore,o.Firestore),n=o.ensureFirestoreConfigured(r),i=o.__PRIVATE_mapToArray(t,(e,t)=>new o.__PRIVATE_AggregateImpl(t,e.aggregateType,e._internalFieldPath));return o.__PRIVATE_firestoreClientRunAggregateQuery(n,e._query,i).then(t=>new c(e,new o.__PRIVATE_ExpUserDataWriter(r),t))}class O{constructor(e){this.kind="memory",this._onlineComponentProvider=o.OnlineComponentProvider.provider,this._offlineComponentProvider=e?.garbageCollector?e.garbageCollector._offlineComponentProvider:{build:()=>new o.__PRIVATE_LruGcMemoryOfflineComponentProvider(void 0)}}toJSON(){return{kind:this.kind}}}class F{constructor(e){let t;this.kind="persistent",e?.tabManager?(e.tabManager._initialize(e),t=e.tabManager):(t=M(void 0))._initialize(e),this._onlineComponentProvider=t._onlineComponentProvider,this._offlineComponentProvider=t._offlineComponentProvider}toJSON(){return{kind:this.kind}}}class N{constructor(){this.kind="memoryEager",this._offlineComponentProvider=o.__PRIVATE_MemoryOfflineComponentProvider.provider}toJSON(){return{kind:this.kind}}}class V{constructor(e){this.kind="memoryLru",this._offlineComponentProvider={build:()=>new o.__PRIVATE_LruGcMemoryOfflineComponentProvider(e)}}toJSON(){return{kind:this.kind}}}class L{constructor(e){this.forceOwnership=e,this.kind="persistentSingleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=o.OnlineComponentProvider.provider,this._offlineComponentProvider={build:t=>new o.__PRIVATE_IndexedDbOfflineComponentProvider(t,e?.cacheSizeBytes,this.forceOwnership)}}}class k{constructor(){this.kind="PersistentMultipleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=o.OnlineComponentProvider.provider,this._offlineComponentProvider={build:t=>new o.__PRIVATE_MultiTabOfflineComponentProvider(t,e?.cacheSizeBytes)}}}function M(e){return new L(e?.forceOwnership)}let j="NOT SUPPORTED";class B{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class U extends f{constructor(e,t,r,n,i,o){super(e,t,r,n,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){let t=new q(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){let r=this._document.data.field(o.__PRIVATE_fieldPathFromArgument("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new o.FirestoreError(o.D.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e=this._document,t={};return t.type=U._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()&&
1(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),this._firestore,this.ref.path,t.bundle="NOT SUPPORTED"),t}}U._jsonSchemaVersion="firestore/documentSnapshot/1.0",U._jsonSchema={type:o.property("string",U._jsonSchemaVersion),bundleSource:o.property("string","DocumentSnapshot"),bundleName:o.property("string"),bundle:o.property("string")};class q extends U{data(e={}){return super.data(e)}}class W{constructor(e,t,r,n){this._firestore=e,this._userDataWriter=t,this._snapshot=n,this.metadata=new B(n.hasPendingWrites,n.fromCache),this.query=r}get docs(){let e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(r=>{e.call(t,new q(this._firestore,this._userDataWriter,r.key,r,new B(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){let t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(r=>{let n=new q(e._firestore,e._userDataWriter,r.doc.key,r.doc,new B(e._snapshot.mutatedKeys.has(r.doc.key),e._snapshot.fromCache),e.query.converter);return r.doc,{type:"added",doc:n,oldIndex:-1,newIndex:t++}})}{let r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{let n=new q(e._firestore,e._userDataWriter,t.doc.key,t.doc,new B(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,s=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(s=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:function(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return o.fail(61501,{type:e})}}(t.type),doc:n,oldIndex:i,newIndex:s}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new o.FirestoreError(o.D.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e={};e.type=W._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=o.__PRIVATE_AutoId.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;let t=[],r=[],n=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),r.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),n.push(e.ref.path))}),this._firestore,this.query._query,e.bundleName,e.bundle="NOT SUPPORTED",e}}W._jsonSchemaVersion="firestore/querySnapshot/1.0",W._jsonSchema={type:o.property("string",W._jsonSchemaVersion),bundleSource:o.property("string","QuerySnapshot"),bundleName:o.property("string"),bundle:o.property("string")};let H={maxAttempts:5};class z{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=o.__PRIVATE_newUserDataReader(e)}set(e,t,r){this._verifyNotCommitted();let n=$(e,this._firestore),i=D(n.converter,t,r),s=o.__PRIVATE_parseSetData(this._dataReader,"WriteBatch.set",n._key,i,null!==n.converter,r);return this._mutations.push(s.toMutation(n._key,o.Precondition.none())),this}update(e,t,r,...n){let i;this._verifyNotCommitted();let a=$(e,this._firestore);return i="string"==typeof(t=s.getModularInstance(t))||t instanceof o.FieldPath?o.__PRIVATE_parseUpdateVarargs(this._dataReader,"WriteBatch.update",a._key,t,r,n):o.__PRIVATE_parseUpdateData(this._dataReader,"WriteBatch.update",a._key,t),this._mutations.push(i.toMutation(a._key,o.Precondition.exists(!0))),this}delete(e){this._verifyNotCommitted();let t=$(e,this._firestore);return this._mutations=this._mutations.concat(new o.__PRIVATE_DeleteMutation(t._key,o.Precondition.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new o.FirestoreError(o.D.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function $(e,t){if((e=s.getModularInstance(e)).firestore!==t)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}class G{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=o.__PRIVATE_newUserDataReader(e)}get(e){let t=$(e,this._firestore),r=new P(this._firestore);return this._transaction.lookup([t._key]).then(e=>{if(!e||1!==e.length)return o.fail(24041);let n=e[0];if(n.isFoundDocument())return new f(this._firestore,r,n.key,n,t.converter);if(n.isNoDocument())return new f(this._firestore,r,t._key,null,t.converter);throw o.fail(18433,{doc:n})})}set(e,t,r){let n=$(e,this._firestore),i=D(n.converter,t,r),s=o.__PRIVATE_parseSetData(this._dataReader,"Transaction.set",n._key,i,null!==n.converter,r);return this._transaction.set(n._key,s),this}update(e,t,r,...n){let i,a=$(e,this._firestore);return i="string"==typeof(t=s.getModularInstance(t))||t instanceof o.FieldPath?o.__PRIVATE_parseUpd
1ateVarargs(this._dataReader,"Transaction.update",a._key,t,r,n):o.__PRIVATE_parseUpdateData(this._dataReader,"Transaction.update",a._key,t),this._transaction.update(a._key,i),this}delete(e){let t=$(e,this._firestore);return this._transaction.delete(t._key),this}}class J extends G{constructor(e,t){super(e,t),this._firestore=e}get(e){let t=$(e,this._firestore),r=new o.__PRIVATE_ExpUserDataWriter(this._firestore);return super.get(e).then(e=>new U(this._firestore,r,t._key,e._document,new B(!1,!1),t.converter))}}function K(e,...t){let r,n,i;e=s.getModularInstance(e);let a={includeMetadataChanges:!1,source:"default"},l=0;"object"!=typeof t[0]||h(t[l])||(a=t[l++]);let u={includeMetadataChanges:a.includeMetadataChanges,source:a.source};if(h(t[l])){let e=t[l];t[l]=e.next?.bind(e),t[l+1]=e.error?.bind(e),t[l+2]=e.complete?.bind(e)}if(e instanceof o.DocumentReference)n=o.__PRIVATE_cast(e.firestore,o.Firestore),i=o.__PRIVATE_newQueryForPath(e._key.path),r={next:r=>{t[l]&&t[l](X(n,e,r))},error:t[l+1],complete:t[l+2]};else{let s=o.__PRIVATE_cast(e,o.Query);n=o.__PRIVATE_cast(s.firestore,o.Firestore),i=s._query;let a=new o.__PRIVATE_ExpUserDataWriter(n);r={next:e=>{t[l]&&t[l](new W(n,a,s,e))},error:t[l+1],complete:t[l+2]},p(e._query)}let c=o.ensureFirestoreConfigured(n);return o.__PRIVATE_firestoreClientListen(c,i,u,r)}function Q(e,t){let r=o.ensureFirestoreConfigured(e);return o.__PRIVATE_firestoreClientWrite(r,t)}function X(e,t,r){let n=r.docs.get(t._key),i=new o.__PRIVATE_ExpUserDataWriter(e);return new U(e,i,t._key,n,new B(r.hasPendingWrites,r.fromCache),t.converter)}function Y(e,t){if("string"!=typeof e[t])throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"Missing string value for: "+t);return e[t]}class Z{constructor(e){this._firestore=e,this.type="PersistentCacheIndexManager"}}function ee(e,t){let r=o.ensureFirestoreConfigured(e._firestore);o.__PRIVATE_firestoreClientSetPersistentCacheIndexAutoCreationEnabled(r,t).then(e=>o.__PRIVATE_logDebug(`setting persistent cache index auto creation isEnabled=${t} succeeded`)).catch(e=>o.__PRIVATE_logWarn(`setting persistent cache index auto creation isEnabled=${t} failed`,e))}let et=new WeakMap;class er{constructor(){throw Error("instances of this class should not be created")}static onExistenceFilterMismatch(e){return en.instance.onExistenceFilterMismatch(e)}}class en{constructor(){this.t=new Map}static get instance(){return ei||(ei=new en,o.__PRIVATE_setTestingHooksSpi(ei)),ei}o(e){this.t.forEach(t=>t(e))}onExistenceFilterMismatch(e){let t=Symbol(),r=this.t;return r.set(t,e),()=>r.delete(t)}}let ei=null;!function(e=!0){o.__PRIVATE_setSDKVersion(n.SDK_VERSION),n._registerComponent(new i.Component("firestore",(t,{instanceIdentifier:r,options:n})=>{let i=t.getProvider("app").getImmediate(),s=new o.Firestore(new o.__PRIVATE_FirebaseAuthCredentialsProvider(t.getProvider("auth-internal")),new o.__PRIVATE_FirebaseAppCheckTokenProvider(i,t.getProvider("app-check-internal")),o.__PRIVATE_databaseIdFromApp(i,r),i);return n={useFetchStreams:e,...n},s._setSettings(n),s},"PUBLIC").setMultipleInstances(!0)),n.registerVersion(a,l,void 0),n.registerVersion(a,l,"cjs2020")}(),t.AbstractUserDataWriter=o.AbstractUserDataWriter,t.Bytes=o.Bytes,t.CACHE_SIZE_UNLIMITED=o.sn,t.CollectionReference=o.CollectionReference,t.DocumentReference=o.DocumentReference,t.FieldPath=o.FieldPath,t.FieldValue=o.FieldValue,t.Firestore=o.Firestore,t.FirestoreError=o.FirestoreError,t.GeoPoint=o.GeoPoint,t.LoadBundleTask=o.LoadBundleTask,t.Query=o.Query,t.Timestamp=o.Timestamp,t.VectorValue=o.VectorValue,t._AutoId=o.__PRIVATE_AutoId,t._ByteString=o.ByteString,t._DatabaseId=o.DatabaseId,t._DocumentKey=o.DocumentKey,t._EmptyAppCheckTokenProvider=o.__PRIVATE_EmptyAppCheckTokenProvider,t._EmptyAuthCredentialsProvider=o.__PRIVATE_EmptyAuthCredentialsProvider,t._FieldPath=o.FieldPath$1,t._cast=o.__PRIVATE_cast,t._debugAssert=o.__PRIVATE_debugAssert,t._internalAggregationQueryToProtoRunAggregationQueryRequest=o._internalAggregationQueryToProtoRunAggregationQueryRequest,t._internalQueryToProtoQueryTarget=o._internalQueryToProtoQueryTarget,t._isBase64Available=o.__PRIVATE_isBase64Available,t._logWarn=o.__PRIVATE_logWarn,t._validateIsNotUsedTogether=o.__PRIVATE_validateIsNotUsedTogether,t.arrayRemove=o.arrayRemove,t.arrayUnion=o.arrayUnion,t.clearIndexedDbPersistence=o.clearIndexedDbPersistence,t.collection=o.collection,t.collectionGroup=o.collectionGroup,t.connectFirestoreEmulator=o.connectFirestoreEmulator,t.deleteField=o.deleteField,t.disableNetwork=o.disableNetwork,t.doc=o.doc,t.documentId=o.documentId,t.enableIndexedDbPersistence=o.enableIndexedDbPersistence,t.enableMultiTabIndexedDbPersistence=o.enableMultiTabIndexedDbPersistence,t.enableNetwork=o.enableNetwork,t.ensureFirestoreConfigured=o.ensureFirestoreConfigured,t.getFirestore=o.getFirestore,t.increment=o.increment,t.initializeFirestore=o.initializeFirestore,t.loadBundle=o.loadBundle,t.namedQuery=o.namedQuery,t.queryEqual=o.queryEqual,t.refEqual=o.refEqual,t.serverTimestamp=o.serverTimestamp,t.setLogLevel=o.setLogLevel,t.terminate=o.terminate,t.vector=o.vector,t.waitForPendingWrites=o.waitForPendingWrites,t.AggregateField=u,t.AggregateQuerySnapsh
1ot=c,t.DocumentSnapshot=U,t.PersistentCacheIndexManager=Z,t.QueryCompositeFilterConstraint=y,t.QueryConstraint=_,t.QueryDocumentSnapshot=q,t.QueryEndAtConstraint=w,t.QueryFieldFilterConstraint=m,t.QueryLimitConstraint=v,t.QueryOrderByConstraint=b,t.QuerySnapshot=W,t.QueryStartAtConstraint=E,t.SnapshotMetadata=B,t.Transaction=J,t.WriteBatch=z,t._TestingHooks=er,t.addDoc=function(e,t){let r=o.__PRIVATE_cast(e.firestore,o.Firestore),n=o.doc(e),i=D(e.converter,t),s=o.__PRIVATE_newUserDataReader(e.firestore);return Q(r,[o.__PRIVATE_parseSetData(s,"addDoc",n._key,i,null!==e.converter,{}).toMutation(n._key,o.Precondition.exists(!1))]).then(()=>n)},t.aggregateFieldEqual=function(e,t){return e instanceof u&&t instanceof u&&e.aggregateType===t.aggregateType&&e._internalFieldPath?.canonicalString()===t._internalFieldPath?.canonicalString()},t.aggregateQuerySnapshotEqual=function(e,t){return o.queryEqual(e.query,t.query)&&s.deepEqual(e.data(),t.data())},t.and=function(...e){return e.forEach(e=>S("and",e)),y._create("and",e)},t.average=function(e){return new u("avg",o.__PRIVATE_fieldPathFromArgument("average",e))},t.count=R,t.deleteAllPersistentCacheIndexes=function(e){let t=o.ensureFirestoreConfigured(e._firestore);o.__PRIVATE_firestoreClientDeleteAllFieldIndexes(t).then(e=>o.__PRIVATE_logDebug("deleting all persistent cache indexes succeeded")).catch(e=>o.__PRIVATE_logWarn("deleting all persistent cache indexes failed",e))},t.deleteDoc=function(e){return Q(o.__PRIVATE_cast(e.firestore,o.Firestore),[new o.__PRIVATE_DeleteMutation(e._key,o.Precondition.none())])},t.disablePersistentCacheIndexAutoCreation=function(e){ee(e,!1)},t.documentSnapshotFromJSON=function(e,t,r){if(o.__PRIVATE_validateJSON(t,U._jsonSchema)){if(t.bundle===j)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"The provided JSON object was created in a client environment, which is not supported.");let n=o.__PRIVATE_newSerializer(e._databaseId),i=o.__PRIVATE_createBundleReaderSync(t.bundle,n),s=i.Ju(),a=new o.__PRIVATE_BundleLoader(i.getMetadata(),n);for(let e of s)a.Ha(e);let l=a.documents;if(1!==l.length)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Expected bundle data to contain 1 document, but it contains ${l.length} documents.`);let h=o.__PRIVATE_fromDocument(n,l[0].document),u=new o.DocumentKey(o.ResourcePath.fromString(t.bundleName));return new U(e,new P(e),u,h,new B(!1,!1),r||null)}},t.enablePersistentCacheIndexAutoCreation=function(e){ee(e,!0)},t.endAt=function(...e){return w._create("endAt",e,!0)},t.endBefore=function(...e){return w._create("endBefore",e,!1)},t.executeWrite=Q,t.getAggregateFromServer=x,t.getCountFromServer=function(e){return x(e,{count:R()})},t.getDoc=function(e){e=o.__PRIVATE_cast(e,o.DocumentReference);let t=o.__PRIVATE_cast(e.firestore,o.Firestore),r=o.ensureFirestoreConfigured(t);return o.__PRIVATE_firestoreClientGetDocumentViaSnapshotListener(r,e._key).then(r=>X(t,e,r))},t.getDocFromCache=function(e){e=o.__PRIVATE_cast(e,o.DocumentReference);let t=o.__PRIVATE_cast(e.firestore,o.Firestore),r=o.ensureFirestoreConfigured(t),n=new o.__PRIVATE_ExpUserDataWriter(t);return o.__PRIVATE_firestoreClientGetDocumentFromLocalCache(r,e._key).then(r=>new U(t,n,e._key,r,new B(null!==r&&r.hasLocalMutations,!0),e.converter))},t.getDocFromServer=function(e){e=o.__PRIVATE_cast(e,o.DocumentReference);let t=o.__PRIVATE_cast(e.firestore,o.Firestore),r=o.ensureFirestoreConfigured(t);return o.__PRIVATE_firestoreClientGetDocumentViaSnapshotListener(r,e._key,{source:"server"}).then(r=>X(t,e,r))},t.getDocs=function(e){e=o.__PRIVATE_cast(e,o.Query);let t=o.__PRIVATE_cast(e.firestore,o.Firestore),r=o.ensureFirestoreConfigured(t),n=new o.__PRIVATE_ExpUserDataWriter(t);return p(e._query),o.__PRIVATE_firestoreClientGetDocumentsViaSnapshotListener(r,e._query).then(r=>new W(t,n,e,r))},t.getDocsFromCache=function(e){e=o.__PRIVATE_cast(e,o.Query);let t=o.__PRIVATE_cast(e.firestore,o.Firestore),r=o.ensureFirestoreConfigured(t),n=new o.__PRIVATE_ExpUserDataWriter(t);return o.__PRIVATE_firestoreClientGetDocumentsFromLocalCache(r,e._query).then(r=>new W(t,n,e,r))},t.getDocsFromServer=function(e){e=o.__PRIVATE_cast(e,o.Query);let t=o.__PRIVATE_cast(e.firestore,o.Firestore),r=o.ensureFirestoreConfigured(t),n=new o.__PRIVATE_ExpUserDataWriter(t);return o.__PRIVATE_firestoreClientGetDocumentsViaSnapshotListener(r,e._query,{source:"server"}).then(r=>new W(t,n,e,r))},t.getPersistentCacheIndexManager=function(e){e=o.__PRIVATE_cast(e,o.Firestore);let t=et.get(e);if(t)return t;let r=o.ensureFirestoreConfigured(e);if("persistent"!==r._uninitializedComponentsProvider?._offline.kind)return null;let n=new Z(e);return et.set(e,n),n},t.limit=function(e){return o.__PRIVATE_validatePositiveNumber("limit",e),v._create("limit",e,"F")},t.limitToLast=function(e){return o.__PRIVATE_validatePositiveNumber("limitToLast",e),v._create("limitToLast",e,"L")},t.memoryEagerGarbageCollector=function(){return new N},t.memoryLocalCache=function(e){return new O(e)},t.memoryLruGarbageCollector=function(e){return new V(e?.cacheSizeBytes)},t.onSnapshot=K,t.onSnapshotResume=function(e,t,...r){var n,i,a,l,u,c;let f=s.getModularInstance(e),d=function(e){let t={bundle:"",bundleName:"",bundleSource:""};for(let r of["bundle","bundleName","bundleSource"]){if(!(r in e)){t.error=`snapshotJson missing required field: ${r}`;break}let n=e[r];if("string"!=typeof n){t.error=`snapshotJson field '${r}' must be a string.`;break}if(0===n.length){t.error=`snapshotJson field '${r}
1' cannot be an empty string.`;break}"bundle"===r?t.bundle=n:"bundleName"===r?t.bundleName=n:"bundleSource"===r&&(t.bundleSource=n)}return t}(t);if(d.error)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,d.error);let p,g=0;if("object"!=typeof r[0]||h(r[g])||(p=r[g++]),"QuerySnapshot"===d.bundleSource){let e,t,s=null;if("object"==typeof r[g]&&h(r[g])){let e=r[g++];s={next:e.next,error:e.error,complete:e.complete}}else s={next:r[g++],error:r[g++],complete:r[g++]};return n=p,i=s,a=r[g],t=!1,o.loadBundle(f,d.bundle).then(()=>o.namedQuery(f,d.bundleName)).then(r=>{r&&!t&&(a&&r.withConverter(a),e=K(r,n||{},i))}).catch(e=>(i.error&&i.error(e),()=>{})),()=>{t||(t=!0,e&&e())}}if("DocumentSnapshot"===d.bundleSource){let e,t,n=null;if("object"==typeof r[g]&&h(r[g])){let e=r[g++];n={next:e.next,error:e.error,complete:e.complete}}else n={next:r[g++],error:r[g++],complete:r[g++]};return l=p,u=n,c=r[g],t=!1,o.loadBundle(f,d.bundle).then(()=>{t||(e=K(new o.DocumentReference(f,c||null,o.DocumentKey.fromPath(d.bundleName)),l||{},u))}).catch(e=>(u.error&&u.error(e),()=>{})),()=>{t||(t=!0,e&&e())}}throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`unsupported bundle source: ${d.bundleSource}`)},t.onSnapshotsInSync=function(e,t){e=o.__PRIVATE_cast(e,o.Firestore);let r=o.ensureFirestoreConfigured(e),n=h(t)?t:{next:t};return o.__PRIVATE_firestoreClientAddSnapshotsInSyncListener(r,n)},t.or=function(...e){return e.forEach(e=>S("or",e)),y._create("or",e)},t.orderBy=function(e,t="asc"){let r=o.__PRIVATE_fieldPathFromArgument("orderBy",e);return b._create(r,t)},t.persistentLocalCache=function(e){return new F(e)},t.persistentMultipleTabManager=function(){return new k},t.persistentSingleTabManager=M,t.query=function(e,t,...r){let n=[];for(let i of(t instanceof g&&n.push(t),function(e){let t=e.filter(e=>e instanceof y).length,r=e.filter(e=>e instanceof m).length;if(t>1||t>0&&r>0)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n=n.concat(r)),n))e=i._apply(e);return e},t.querySnapshotFromJSON=function(e,t,r){if(o.__PRIVATE_validateJSON(t,W._jsonSchema)){if(t.bundle===j)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"The provided JSON object was created in a client environment, which is not supported.");let n=o.__PRIVATE_newSerializer(e._databaseId),i=o.__PRIVATE_createBundleReaderSync(t.bundle,n),s=i.Ju(),a=new o.__PRIVATE_BundleLoader(i.getMetadata(),n);for(let e of s)a.Ha(e);if(1!==a.queries.length)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,`Snapshot data expected 1 query but found ${a.queries.length} queries.`);let l=o.__PRIVATE_fromBundledQuery(a.queries[0].bundledQuery),h=a.documents,u=new o.DocumentSet;h.map(e=>{let t=o.__PRIVATE_fromDocument(n,e.document);u=u.add(t)});let c=o.ViewSnapshot.fromInitialDocuments(l,u,o.__PRIVATE_documentKeySet(),!1,!1),f=new o.Query(e,r||null,l);return new W(e,new P(e),f,c)}},t.runTransaction=function(e,t,r){e=o.__PRIVATE_cast(e,o.Firestore);let n={...H,...r};if(n.maxAttempts<1)throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"Max attempts must be at least 1");let i=o.ensureFirestoreConfigured(e);return o.__PRIVATE_firestoreClientTransaction(i,r=>t(new J(e,r)),n)},t.setDoc=function(e,t,r){e=o.__PRIVATE_cast(e,o.DocumentReference);let n=o.__PRIVATE_cast(e.firestore,o.Firestore),i=D(e.converter,t,r),s=o.__PRIVATE_newUserDataReader(n);return Q(n,[o.__PRIVATE_parseSetData(s,"setDoc",e._key,i,null!==e.converter,r).toMutation(e._key,o.Precondition.none())])},t.setIndexConfiguration=function(e,t){e=o.__PRIVATE_cast(e,o.Firestore);let r=o.ensureFirestoreConfigured(e);if(!r._uninitializedComponentsProvider||"memory"===r._uninitializedComponentsProvider._offline.kind)return o.__PRIVATE_logWarn("Cannot enable indexes when persistence is disabled"),Promise.resolve();let n=function(e){let t="string"==typeof e?function(e){try{return JSON.parse(e)}catch(e){throw new o.FirestoreError(o.D.INVALID_ARGUMENT,"Failed to parse JSON: "+e?.message)}}(e):e,r=[];if(Array.isArray(t.indexes))for(let e of t.indexes){let t=Y(e,"collectionGroup"),n=[];if(Array.isArray(e.fields))for(let t of e.fields){let e=Y(t,"fieldPath"),r=o.__PRIVATE_fieldPathFromDotSeparatedString("setIndexConfiguration",e);"CONTAINS"===t.arrayConfig?n.push(new o.IndexSegment(r,2)):"ASCENDING"===t.order?n.push(new o.IndexSegment(r,0)):"DESCENDING"===t.order&&n.push(new o.IndexSegment(r,1))}r.push(new o.FieldIndex(o.FieldIndex.UNKNOWN_ID,t,n,o.IndexState.empty()))}return r}(t);return o.__PRIVATE_firestoreClientSetIndexConfiguration(r,n)},t.snapshotEqual=function(e,t){return e instanceof U&&t instanceof U?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof W&&t instanceof W&&e._firestore===t._firestore&&o.queryEqual(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)},t.startAfter=function(...e){return E._create("startAfter",e,!1)},t.startAt=function(...e){return E._create("startAt",e,!0)},t.sum=function(e){return new u("sum",o.__PRIVATE_fieldPathFromArgument("sum",e))},t.updateDoc=function(e,t,r,...n){e=o.__PRIVATE_cast(e,o.DocumentReference);let i=o.__PRIVATE_cast(e.firestore,o.Firestore),a=o.__PRIVATE_newUserDataReader(i);return Q(i,[("string"==typeof(t=s.getModularInstance(t))||t instanceof o.FieldPath?o.__PRIVATE_parseUpd
1ateVarargs(a,"updateDoc",e._key,t,r,n):o.__PRIVATE_parseUpdateData(a,"updateDoc",e._key,t)).toMutation(e._key,o.Precondition.exists(!0))])},t.where=function(e,t,r){let n=o.__PRIVATE_fieldPathFromArgument("where",e);return m._create(n,t,r)},t.writeBatch=function(e){return e=o.__PRIVATE_cast(e,o.Firestore),o.ensureFirestoreConfigured(e),new z(e,t=>Q(e,t))}},16215:(e,t,r)=>{"use strict";var n=r(32407);Object.defineProperty(t,"__esModule",{value:!0});var i=r(53994);let o={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},s=function(e,t){if(!e)throw a(t)},a=function(e){return Error("Firebase Database ("+o.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},l=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},h=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=((7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(o>>10)),t[n++]=String.fromCharCode(56320+(1023&o))}else{let o=e[r++],s=e[r++];t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")},u={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,l=a?e[t+2]:0,h=i>>2,u=(3&i)<<4|s>>4,c=(15&s)<<2|l>>6,f=63&l;!a&&(f=64,o||(c=64)),n.push(r[h],r[u],r[c],r[f])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(l(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):h(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0,s=++t<e.length?r[e.charAt(t)]:64,a=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==o||null==s||null==a)throw new c;let l=i<<2|o>>4;if(n.push(l),64!==s){let e=o<<4&240|s>>2;if(n.push(e),64!==a){let e=s<<6&192|a;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class c extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let f=function(e){let t=l(e);return u.encodeByteArray(t,!0)},d=function(e){return f(e).replace(/\./g,"")},p=function(e){try{return u.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function g(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(let r in t)t.hasOwnProperty(r)&&"__proto__"!==r&&(e[r]=g(e[r],t[r]));return e}function _(){if("u">typeof self)return self;if("u">typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")}let m=()=>{try{return i.getDefaultsFromPostinstall()||_().__FIREBASE_DEFAULTS__||(()=>{if(void 0===n||void 0===n.env)return;let e=n.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("u"<typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;
1]+)/)}catch(e){return}let t=e&&p(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},y=e=>m()?.emulatorHosts?.[e];class b{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function v(){return"u">typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function E(){let e=m()?.forceEnvironment;if("node"===e)return!0;if("browser"===e)return!1;try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(e){return!1}}function w(){return"u">typeof WorkerGlobalScope&&"u">typeof self&&self instanceof WorkerGlobalScope}class I extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,I.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,A.prototype.create)}}class A{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,n;let i=t[0]||{},o=`${this.service}/${e}`,s=this.errors[e],a=s?(r=s,n=i,r.replace(T,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`})):"Error",l=`${this.serviceName}: ${a} (${o}).`;return new I(o,l,i)}}let T=/\{\$([^}]+)}/g;function C(e){return JSON.parse(e)}let S=function(e){let t={},r={},n={},i="";try{let o=e.split(".");t=C(p(o[0])||""),r=C(p(o[1])||""),i=o[2],n=r.d||{},delete r.d}catch(e){}return{header:t,claims:r,data:n,signature:i}};function D(e){return null!==e&&"object"==typeof e}class P{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=0x67452301,this.chain_[1]=0xefcdab89,this.chain_[2]=0x98badcfe,this.chain_[3]=0x10325476,this.chain_[4]=0xc3d2e1f0,this.inbuf_=0,this.total_=0}compress_(e,t){let r,n;t||(t=0);let i=this.W_;if("string"==typeof e)for(let r=0;r<16;r++)i[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let r=0;r<16;r++)i[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(let e=16;e<80;e++){let t=i[e-3]^i[e-8]^i[e-14]^i[e-16];i[e]=(t<<1|t>>>31)&0xffffffff}let o=this.chain_[0],s=this.chain_[1],a=this.chain_[2],l=this.chain_[3],h=this.chain_[4];for(let e=0;e<80;e++){e<40?e<20?(r=l^s&(a^l),n=0x5a827999):(r=s^a^l,n=0x6ed9eba1):e<60?(r=s&a|l&(s|a),n=0x8f1bbcdc):(r=s^a^l,n=0xca62c1d6);let t=(o<<5|o>>>27)+r+h+n+i[e]|0;h=l,l=a,a=(s<<30|s>>>2)&0xffffffff,s=o,o=t}this.chain_[0]=this.chain_[0]+o|0,this.chain_[1]=this.chain_[1]+s|0,this.chain_[2]=this.chain_[2]+a|0,this.chain_[3]=this.chain_[3]+l|0,this.chain_[4]=this.chain_[4]+h|0}update(e,t){if(null==e)return;void 0===t&&(t=e.length);let r=t-this.blockSize,n=0,i=this.buf_,o=this.inbuf_;for(;n<t;){if(0===o)for(;n<=r;)this.compress_(e,n),n+=this.blockSize;if("string"==typeof e){for(;n<t;)if(i[o]=e.charCodeAt(n),++o,++n,o===this.blockSize){this.compress_(i),o=0;break}}else for(;n<t;)if(i[o]=e[n],++o,++n,o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}digest(){let e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let e=this.blockSize-1;e>=56;e--)this.buf_[e]=255&t,t/=256;this.compress_(this.buf_);let r=0;for(let t=0;t<5;t++)for(let n=24;n>=0;n-=8)e[r]=this.chain_[t]>>n&255,++r;return e}}class R{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=x),void 0===n.error&&(n.error=x),void 0===n.complete&&(n.complete=x);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>
1{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"u">typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function x(){}function O(e,t){return`${e} failed: ${t} argument `}async function F(e){return(await fetch(e,{credentials:"include"})).ok}async function N(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}t.CONSTANTS=o,t.DecodeBase64StringError=c,t.Deferred=b,t.ErrorFactory=A,t.FirebaseError=I,t.MAX_VALUE_MILLIS=144e5,t.RANDOM_FACTOR=.5,t.Sha1=P,t.areCookiesEnabled=function(){return!("u"<typeof navigator)&&!!navigator.cookieEnabled},t.assert=s,t.assertionError=a,t.async=function(e,t){return(...r)=>{Promise.resolve(!0).then(()=>{e(...r)}).catch(e=>{t&&t(e)})}},t.base64=u,t.base64Decode=p,t.base64Encode=f,t.base64urlEncodeWithoutPadding=d,t.calculateBackoffMillis=function(e,t=1e3,r=2){let n=t*Math.pow(r,e),i=Math.round(.5*n*(Math.random()-.5)*2);return Math.min(144e5,n+i)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createMockUserToken=function(e,t){if(e.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=t||"demo-project",n=e.iat||0,i=e.sub||e.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let o={iss:`https://securetoken.google.com/${r}`,aud:r,iat:n,exp:n+3600,auth_time:n,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}},...e};return[d(JSON.stringify({alg:"none",type:"JWT"})),d(JSON.stringify(o)),""].join(".")},t.createSubscribe=function(e,t){let r=new R(e,t);return r.subscribe.bind(r)},t.decode=S,t.deepCopy=function(e){return g(void 0,e)},t.deepEqual=function e(t,r){if(t===r)return!0;let n=Object.keys(t),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=t[o],s=r[o];if(D(n)&&D(s)){if(!e(n,s))return!1}else if(n!==s)return!1}for(let e of i)if(!n.includes(e))return!1;return!0},t.deepExtend=g,t.errorPrefix=O,t.extractQuerystring=function(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)},t.generateSHA256Hash=N,t.getDefaultAppConfig=()=>m()?.config,t.getDefaultEmulatorHost=y,t.getDefaultEmulatorHostnameAndPort=e=>{let t=y(e);if(!t)return;let r=t.lastIndexOf(":");if(r<=0||r+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let n=parseInt(t.substring(r+1),10);return"["===t[0]?[t.substring(1,r-1),n]:[t.substring(0,r),n]},t.getDefaults=m,t.getExperimentalSetting=e=>m()?.[`_${e}`],t.getGlobal=_,t.getModularInstance=function(e){return e&&e._delegate?e._delegate:e},t.getUA=v,t.isAdmin=function(e){let t=S(e).claims;return"object"==typeof t&&!0===t.admin},t.isBrowser=function(){return"u">typeof window||w()},t.isBrowserExtension=function(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id},t.isCloudWorkstation=function(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}},t.isCloudflareWorker=function(){return"u">typeof navigator&&"Cloudflare-Workers"===navigator.userAgent},t.isElectron=function(){return v().indexOf("Electron/")>=0},t.isEmpty=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){let e=v();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isIndexedDBAvailable=function(){try{return"object"==typeof indexedDB}catch(e){return!1}},t.isMobileCordova=function(){return"u">typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(v())},t.isNode=E,t.isNodeSdk=function(){return!0===o.NODE_CLIENT||!0===o.NODE_ADMIN},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isSafari=function(){return!E()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},t.isSafariOrWebkit=function(){return!E()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")},t.isUWP=function(){return v().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){let t=S(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){let t=S(e).claims,r=Math.floor(new Date().getTime()/1e3),n=0,i=0;return"object"==typeof t&&(t.hasOwnProperty("nbf")?n=t.nbf:t.hasOwnProperty("iat")&&(n=t.iat),i=t.hasOwnProperty("exp")?t.exp:n+86400),!!r&&!!n&&!!i&&r>=n&&r<=i},t.isWebWorker=w,t.issuedAtTime=function(e){let t=S(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=C,t.map=function(e,t,r){let n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t.call(r,e[i],i,e));return n},t.ordinal=function(e){return Number.isFinite(e)?e+function(e){let t=(e=Math.abs(e))%100;if(t>=10&&t<=20)return"th";let r=e%10;return 1===r?"st":2===r?"nd":3===r?"rd":"th"}(e):`${e}`},t.pingServer=F,t.promiseWithTimeout=function(e,t=2e3){let r=new b;return setTimeout(()=>r.reject("timeout!"),t),e.then(r.resolve,r.reject),r.promise},t.querystring=function(e){let t=[];
1for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t++:n<2048?t+=2:n>=55296&&n<=56319?(t+=4,r++):t+=3}return t},t.stringToByteArray=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i>=55296&&i<=56319){let t=i-55296;s(++n<e.length,"Surrogate pair missing trail surrogate."),i=65536+(t<<10)+(e.charCodeAt(n)-56320)}i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:(i<65536?t[r++]=i>>12|224:(t[r++]=i>>18|240,t[r++]=i>>12&63|128),t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,r,n){let i;if(n<t?i="at least "+t:n>r&&(i=0===r?"none":"no more than "+r),i)throw Error(e+" failed: Was called with "+n+(1===n?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,r,n){if((!n||r)&&"function"!=typeof r)throw Error(O(e,t)+"must be a valid function.")},t.validateContextObject=function(e,t,r,n){if((!n||r)&&("object"!=typeof r||null===r))throw Error(O(e,t)+"must be a valid context object.")},t.validateIndexedDBOpenable=function(){return new Promise((e,t)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{t(i.error?.message||"")}}catch(e){t(e)}})},t.validateNamespace=function(e,t,r){if((!r||t)&&"string"!=typeof t)throw Error(O(e,"namespace")+"must be a valid firebase namespace.")}},20752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(15051);Object.keys(n).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})})},23939:(e,t,r)=>{(function(){"use strict";var t,n,i=Object.defineProperty,o=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof r.g&&r.g];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{var r=o;e=e.split(".");for(var n=0;n<e.length-1;n++){var s=e[n];if(!(s in r))break e;r=r[s]}(t=t(n=r[e=e[e.length-1]]))!=n&&null!=t&&i(r,e,{configurable:!0,writable:!0,value:t})}}s("Symbol.dispose",function(e){return e||Symbol("Symbol.dispose")}),s("Array.prototype.values",function(e){return e||function(){return this[Symbol.iterator]()}}),s("Object.entries",function(e){return e||function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push([t,e[t]]);return r}});var a=a||{},l=this||self;function h(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function u(e,t,r){return e.call.apply(e.bind,arguments)}function c(e,t,r){return(c=u).apply(null,arguments)}function f(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function d(e,t){function r(){}r.prototype=t.prototype,e.Z=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.Ob=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[r].apply(e,i)}}var p="u">typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function g(e){let t=e.length;if(t>0){let r=Array(t);for(let n=0;n<t;n++)r[n]=e[n];return r}return[]}function _(e,t){for(let t=1;t<arguments.length;t++){let n=arguments[t];var r=typeof n;if("array"==(r="object"!=r?r:n?Array.isArray(n)?"array":r:"null")||"object"==r&&"number"==typeof n.length){r=e.length||0;let t=n.length||0;e.length=r+t;for(let i=0;i<t;i++)e[r+i]=n[i]}else e.push(n)}}class m{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}class y{constructor(){this.h=this.g=null}add(e,t){let r=b.get();r.set(e,t),this.h?this.h.next=r:this.g=r,this.h=r}}var b=new m(()=>new v,e=>e.reset());class v{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let E,w=!1,I=new y,A=()=>{let e=Promise.resolve(void 0);E=()=>{e.then(T)}};function T(){let e;for(var t;e=null,I.g&&(e=I.g,I.g=I.g.next,I.g||(I.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(e){!function(e){l.setTimeout(()=>{throw e},0)}(e)}b.j(t),b.h<100&&(b.h++,t.next=b.g,b.g=t)}w=!1}function C(){this.u=this.u,this.C=this.C}function S(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}C.prototype.u=!1,C.prototype.dispose=function(){this.u||(this.u=!0,this.N())},C.prototype[Symbol.dispose]=function(){this.dispose()},C.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},S.prototype.h=function(){this.defaultPrevented=!0};var D=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{let e=()=>{};l.addEventListener("test",e,t),l.removeEventListener("test",e,t)}catch(e){}return e}();function P(e){return/^[\s\xa0]*$/.test(e)}function R(e,t){S.call(this,e?e.type:""),this.relatedTarget=this.g=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.state=null,this.pointerId=0,this.pointerType="",this.i=null,e&&this.init(e,t)}
1d(R,S),R.prototype.init=function(e,t){let r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,(t=e.relatedTarget)||("mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement)),this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&R.Z.h.call(this)},R.prototype.h=function(){R.Z.h.call(this);let e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var x="closure_listenable_"+(1e6*Math.random()|0),O=0;function F(e,t,r,n,i){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.ha=i,this.key=++O,this.da=this.fa=!1}function N(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function V(e,t,r){for(let n in e)t.call(r,e[n],n,e)}function L(e){let t={};for(let r in e)t[r]=e[r];return t}let k="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function M(e,t){let r,n;for(let t=1;t<arguments.length;t++){for(r in n=arguments[t])e[r]=n[r];for(let t=0;t<k.length;t++)r=k[t],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}}function j(e){this.src=e,this.g={},this.h=0}function B(e,t){let r=t.type;if(r in e.g){var n,i=e.g[r],o=Array.prototype.indexOf.call(i,t,void 0);(n=o>=0)&&Array.prototype.splice.call(i,o,1),n&&(N(t),0==e.g[r].length&&(delete e.g[r],e.h--))}}function U(e,t,r,n){for(let i=0;i<e.length;++i){let o=e[i];if(!o.da&&o.listener==t&&!!r==o.capture&&o.ha==n)return i}return -1}j.prototype.add=function(e,t,r,n,i){let o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);let s=U(e,t,n,i);return s>-1?(t=e[s],r||(t.fa=!1)):((t=new F(t,this.src,o,!!n,i)).fa=r,e.push(t)),t};var q="closure_lm_"+(1e6*Math.random()|0),W={},H=0;function z(e,t,r,n,i,o){if(!t)throw Error("Invalid event type");let s=h(i)?!!i.capture:!!i,a=K(e);if(a||(e[q]=a=new j(e)),(r=a.add(t,r,n,s,o)).proxy)return r;if(n=function e(t){return J.call(e.src,e.listener,t)},r.proxy=n,n.src=e,n.listener=r,e.addEventListener)D||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),n,i);else if(e.attachEvent)e.attachEvent(G(t.toString()),n);else if(e.addListener&&e.removeListener)e.addListener(n);else throw Error("addEventListener and attachEvent are unavailable.");return H++,r}function $(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[x])B(t.i,e);else{var r=e.type,n=e.proxy;t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent(G(r),n):t.addListener&&t.removeListener&&t.removeListener(n),H--,(r=K(t))?(B(r,e),0==r.h&&(r.src=null,t[q]=null)):N(e)}}}function G(e){return e in W?W[e]:W[e]="on"+e}function J(e,t){if(e.da)e=!0;else{t=new R(t,this);let r=e.listener,n=e.ha||e.src;e.fa&&$(e),e=r.call(n,t)}return e}function K(e){return(e=e[q])instanceof j?e:null}var Q="__closure_events_fn_"+(1e9*Math.random()>>>0);function X(e){return"function"==typeof e?e:(e[Q]||(e[Q]=function(t){return e.handleEvent(t)}),e[Q])}function Y(){C.call(this),this.i=new j(this),this.M=this,this.G=null}function Z(e,t){let r,n;var i,o=e.G;if(o)for(i=[];o;o=o.G)i.push(o);if(e=e.M,o=t.type||t,"string"==typeof t)t=new S(t,e);else if(t instanceof S)t.target=t.target||e;else{var s=t;M(t=new S(o,e),s)}if(s=!0,i)for(n=i.length-1;n>=0;n--)s=ee(r=t.g=i[n],o,!0,t)&&s;if(s=ee(r=t.g=e,o,!0,t)&&s,s=ee(r,o,!1,t)&&s,i)for(n=0;n<i.length;n++)s=ee(r=t.g=i[n],o,!1,t)&&s}function ee(e,t,r,n){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();let i=!0;for(let o=0;o<t.length;++o){let s=t[o];if(s&&!s.da&&s.capture==r){let t=s.listener,r=s.ha||s.src;s.fa&&B(e.i,s),i=!1!==t.call(r,n)&&i}}return i&&!n.defaultPrevented}d(Y,C),Y.prototype[x]=!0,Y.prototype.removeEventListener=function(e,t,r,n){!function e(t,r,n,i,o){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],n,i,o);else(i=h(i)?!!i.capture:!!i,n=X(n),t&&t[x])?(t=t.i,(s=String(r).toString())in t.g&&(n=U(r=t.g[s],n,i,o))>-1&&(N(r[n]),Array.prototype.splice.call(r,n,1),0==r.length&&(delete t.g[s],t.h--))):t&&(t=K(t))&&(r=t.g[r.toString()],t=-1,r&&(t=U(r,n,i,o)),(n=t>-1?r[t]:null)&&$(n))}(this,e,t,r,n)},Y.prototype.N=function(){if(Y.Z.N.call(this),this.i){var e=this.i;for(let t in e.g){let r=e.g[t];for(let e=0;e<r.length;e++)N(r[e]);delete e.g[t],e.h--}}this.G=null},Y.prototype.J=function(e,t,r,n){return this.i.add(String(e),t,!1,r,n)},Y.prototype.K=function(e,t,r,n){return this.i.add(String(e),t,!0,r,n)};class et extends C{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:function e(t){t.g=function(e,t){if("function"!=typeof e)if(e&&"function"==typeof e.handleEvent)e=c(e.handleEvent,e);else throw Error("Invalid listener argument");return Number(t)>0x7fffffff?-1:l.setTimeout(e,t||0)}(()=>{t.g=null,t.i&&(t.i=!1,e(t))},t.l);let r=t.h;t.h=null,t.m.apply(null,r)}(this)}N(){super.N(),this.g&&(l.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function er(e){C.call(this),this.h=e,this.g={}}d(er,C);var en=[];function ei(e){V(e.g,function(e,t){this.g.hasOwnProperty(t)&&$(e)},e),e.g={}}er.prototype.N=function(){er.Z.N.call(this),ei(this)},er.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var eo=l.JSON.stringify,es=l.JSON.parse,ea=class{stringify(e){return l.JSON.stringify(e,void 0)}parse(e){return l.JSON.parse(e,void 0)}};function el(){}function eh(){}var eu={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function ec(){S.call(this,"d")}function ef(){S.call(this,"c")}d(ec,S),d(ef,S);var ed={},ep=null;function eg(){return ep=ep||new Y}function e_(e){S.call(this,ed.Ia,e)}function em(e){let t=eg();Z(t,new e_(t,e))}function ey(e,t){S.call(this,ed.STAT_EVENT,e),this.stat=t}function eb(e){let t=eg();Z(t,new ey(t,e))}function ev(e,t){S.call(this,ed.Ja,e),this.size=t}function eE(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return l.setTimeout(function(){e()},t)}function ew(){this.g=!0}function eI(e,t,r,n){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{let o=JSON.parse(t);if(o){for(e=0;e<o.length;e++)if(Array.isArray(o[e])){var r=o[e];if(!(r.length<2)){var n=r[1];if(Array.isArray(n)&&!(n.length<1)){var i=n[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(let e=1;e<n.length;e++)n[e]=""}}}}return eo(o)}catch(e){return t}}(e,r)+(n?" "+n:"")})}ed.Ia="serverreachability",d(e_,S),ed.STAT_EVENT="statevent",d(ey,S),ed.Ja="timingevent",d(ev,S),ew.prototype.ua=function(){this.g=!1},ew.prototype.info=function(){};var eA={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},eT={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function eC(){}function eS(e){return encodeURIComponent(String(e))}function eD(e,t,r,n){this.j=e,this.i=t,this.l=r,this.S=n||1,this.V=new er(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new eP}function eP(){this.i=null,this.g="",this.h=!1}d(eC,el),eC.prototype.g=function(){return new XMLHttpRequest},t=new eC;var eR={},ex={};function eO(e,t,r){e.M=1,e.A=e2(eX(t)),e.u=r,e.R=!0,eF(e,null)}function eF(e,t){e.F=Date.now(),eV(e),e.B=eX(e.A);var r,n,i,o,s,a,l=e.B,u=e.S;Array.isArray(u)||(u=[String(u)]),ts(l.i,"t",u),e.C=0,l=e.j.L,e.h=new eP,e.g=t$(e.j,l?t:null,!e.u),e.P>0&&(e.O=new et(c(e.Y,e,e.g),e.P)),t=e.V,l=e.g,u=e.ba;var f="readystatechange";Array.isArray(f)||(f&&(en[0]=f.toString()),f=en);for(let e=0;e<f.length;e++){let r=function e(t,r,n,i,o){if(i&&i.once)return function e(t,r,n,i,o){if(Array.isArray(r)){for(let s=0;s<r.length;s++)e(t,r[s],n,i,o);return null}return n=X(n),t&&t[x]?t.K(r,n,h(i)?!!i.capture:!!i,o):z(t,r,n,!0,i,o)}(t,r,n,i,o);if(Array.isArray(r)){for(let s=0;s<r.length;s++)e(t,r[s],n,i,o);return null}return n=X(n),t&&t[x]?t.J(r,n,h(i)?!!i.capture:!!i,o):z(t,r,n,!1,i,o)}(l,f[e],u||t.handleEvent,!1,t.h||t);if(!r)break;t.g[r.key]=r}t=e.J?L(e.J):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,t)):(e.v="GET",e.g.ea(e.B,e.v,null,t)),em(1),r=e.i,n=e.v,i=e.B,o=e.l,s=e.S,a=e.u,r.info(function(){if(r.g)if(a){var e="",t=a.split("&");for(let r=0;r<t.length;r++){var l=t[r].split("=");if(l.length>1){let t=l[0];l=l[1];let r=t.split("_");e=r.length>=2&&"type"==r[1]?e+(t+"=")+l+"&":e+(t+"=redacted&")}}}else e=null;else e=a;return"XMLHTTP REQ ("+o+") [attempt "+s+"]: "+n+"\n"+i+"\n"+e})}function eN(e){return!!e.g&&"GET"==e.v&&2!=e.M&&e.j.Aa}function eV(e){e.T=Date.now()+e.H,eL(e,e.H)}function eL(e,t){if(null!=e.D)throw Error("WatchDog timer not null");e.D=eE(c(e.aa,e),t)}function ek(e){e.D&&(l.clearTimeout(e.D),e.D=null)}function eM(e){0==e.j.I||e.K||tU(e.j,e)}function ej(e){ek(e);var t=e.O;t&&"function"==typeof t.dispose&&t.dispose(),e.O=null,ei(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dis
1pose())}function eB(e,t){try{var r=e.j;if(0!=r.I&&(r.g==e||ez(r.h,e))){if(!e.L&&ez(r.h,e)&&3==r.I){try{var n=r.Ba.g.parse(t)}catch(e){n=null}if(Array.isArray(n)&&3==n.length){var i=n;if(0==i[0]){e:if(!r.v){if(r.g)if(r.g.F+3e3<e.F)tB(r),tR(r);else break e;tk(r),eb(18)}}else r.xa=i[1],0<r.xa-r.K&&i[2]<37500&&r.F&&0==r.A&&!r.C&&(r.C=eE(c(r.Va,r),6e3));1>=eH(r.h)&&r.ta&&(r.ta=void 0)}else tW(r,11)}else if((e.L||r.g==e)&&tB(r),!P(t))for(i=r.Ba.g.parse(t),t=0;t<i.length;t++){let a=i[t],l=a[0];if(!(l<=r.K))if(r.K=l,a=a[1],2==r.I)if("c"==a[0]){r.M=a[1],r.ba=a[2];let t=a[3];null!=t&&(r.ka=t,r.j.info("VER="+r.ka));let i=a[4];null!=i&&(r.za=i,r.j.info("SVER="+r.za));let l=a[5];null!=l&&"number"==typeof l&&l>0&&(r.O=n=1.5*l,r.j.info("backChannelRequestTimeoutMs_="+n)),n=r;let h=e.g;if(h){let e=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var o=n.h;o.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(o.j=o.l,o.g=new Set,o.h&&(e$(o,o.h),o.h=null))}if(n.G){let e=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(n.wa=e,e1(n.J,n.G,e))}}if(r.I=3,r.l&&r.l.ra(),r.aa&&(r.T=Date.now()-e.F,r.j.info("Handshake RTT: "+r.T+"ms")),(n=r).na=tz(n,n.L?n.ba:null,n.W),e.L){eG(n.h,e);var s=n.O;s&&(e.H=s),e.D&&(ek(e),eV(e)),n.g=e}else tL(n);r.i.length>0&&tO(r)}else"stop"!=a[0]&&"close"!=a[0]||tW(r,7);else 3==r.I&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?tW(r,7):tP(r):"noop"!=a[0]&&r.l&&r.l.qa(a),r.A=0)}}em(4)}catch(e){}}eD.prototype.ba=function(e){e=e.target;let t=this.O;t&&3==tT(e)?t.j():this.Y(e)},eD.prototype.Y=function(e){try{if(e==this.g)e:{let d=tT(this.g),p=this.g.ya(),g=this.g.ca();if(!(d<3)&&(3!=d||this.g&&(this.h.h||this.g.la()||tC(this.g)))){this.K||4!=d||7==p||(8==p||g<=0?em(3):em(2)),ek(this);var t=this.g.ca();this.X=t;var r=function(e){if(!eN(e))return e.g.la();let t=tC(e.g);if(""===t)return"";let r="",n=t.length,i=4==tT(e.g);if(!e.h.i){if("u"<typeof TextDecoder)return ej(e),eM(e),"";e.h.i=new l.TextDecoder}for(let o=0;o<n;o++)e.h.h=!0,r+=e.h.i.decode(t[o],{stream:!(i&&o==n-1)});return t.length=0,e.h.g+=r,e.C=0,e.h.g}(this);if(this.o=200==t,n=this.i,i=this.v,o=this.B,s=this.l,a=this.S,n.info(function(){return"XMLHTTP RESP ("+s+") [ attempt "+a+"]: "+i+"\n"+o+"\n"+d+" "+t}),this.o){if(this.U&&!this.L){t:{if(this.g){var n,i,o,s,a,h,u=this.g;if((h=u.g?u.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!P(h)){var c=h;break t}}c=null}if(e=c)eI(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,eB(this,e);else{this.o=!1,this.m=3,eb(12),ej(this),eM(this);break e}}if(this.R){let t;for(e=!0;!this.K&&this.C<r.length;)if((t=function(e,t){var r=e.C,n=t.indexOf("\n",r);return -1==n?ex:isNaN(r=Number(t.substring(r,n)))?eR:(n+=1)+r>t.length?ex:(t=t.slice(n,n+r),e.C=n+r,t)}(this,r))==ex){4==d&&(this.m=4,eb(14),e=!1),eI(this.i,this.l,null,"[Incomplete Response]");break}else if(t==eR){this.m=4,eb(15),eI(this.i,this.l,r,"[Invalid Chunk]"),e=!1;break}else eI(this.i,this.l,t,null),eB(this,t);if(eN(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=d||0!=r.length||this.h.h||(this.m=1,eb(16),e=!1),this.o=this.o&&e,e){if(r.length>0&&!this.W){this.W=!0;var f=this.j;f.g==this&&f.aa&&!f.P&&(f.j.info("Great, no buffering proxy detected. Bytes received: "+r.length),tM(f),f.P=!0,eb(11))}}else eI(this.i,this.l,r,"[Invalid Chunked Response]"),ej(this),eM(this)}else eI(this.i,this.l,r,null),eB(this,r);4==d&&ej(this),this.o&&!this.K&&(4==d?tU(this.j,this):(this.o=!1,eV(this)))}else(function(e){let t={};e=(e.g&&tT(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let n=0;n<e.length;n++){if(P(e[n]))continue;var r=function(e){var t=1;e=e.split(":");let r=[];for(;t>0&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}(e[n]);let i=r[0];if("string"!=typeof(r=r[1]))continue;r=r.trim();let o=t[i]||[];t[i]=o,o.push(r)}var n=function(e){return e.join(", ")};for(let e in t)n.call(void 0,t[e],e,t)})(this.g),400==t&&r.indexOf("Unknown SID")>0?(this.m=3,eb(12)):(this.m=0,eb(13)),ej(this),eM(this)}}}catch(e){}finally{}},eD.prototype.cancel=function(){this.K=!0,ej(this)},eD.prototype.aa=function(){var e,t;this.D=null;let r=Date.now();r-this.T>=0?(e=this.i,t=this.B,e.info(function(){return"TIMEOUT: "+t}),2!=this.M&&(em(3),eb(17)),ej(this),this.m=2,eM(this)):eL(this,this.T-r)};var eU=class{constructor(e,t){this.g=e,this.map=t}};function eq(e){this.l=e||10,e=l.PerformanceNavigationTiming?(e=l.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(l.chrome&&l.chrome.loadTimes&&l.chrome.loadTimes()&&l.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function eW(e){return!!e.h||!!e.g&&e.g.size>=e.j}function eH(e){return e.h?1:e.g?e.g.size:0}function ez(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function e$(e,t){e.g?e.g.add(t):e.h=t}function eG(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function eJ(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let t=e.i;for(let r of e.g.values())t=t.concat(r.G);return t}return g(e.i)}eq.prototype.cancel=function(){if(this.i=eJ(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let e of this.g.values())e.cancel();this.g.clear()}};var eK=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function eQ(e){let t;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof eQ?(this.l=e.l,eY(this,e.j),this.o=e.o,this.g=e.g,eZ(this,e.u),this.h=e.h,e0(this,ta(e.i)),this.m=e.m):e&&(t=String(e).match(eK))?(this.l=!1,eY(this,t[1]||"",!0),this.o=e6(t[2]||""),this.g=e6(t[3]||"",!0),eZ(this,t[4]),this.h=e6(t[5]||"",!0),e0(this,t[6]||"",!0),this.m=e6(t[7]||"")):(this.l=!1,this.i=new tt(null,this.l))}function eX(e){return new eQ(e)}function eY(e,t,r){e.j=r?e6(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function eZ(e,t){if(t){if(isNaN(t=Number(t))||t<0)throw Error("Bad port number "+t);e.u=t}else e.u=null}function e0(e,t,r){var n,i;t instanceof tt?(e.i=t,n=e.i,(i=e.l)&&!n.j&&(tr(n),n.i=null,n.g.forEach(function(e,t){let r=t.toLowerCase();t!=r&&(tn(this,t),ts(this,r,e))},n)),n.j=i):(r||(t=e3(t,e9)),e.i=new tt(t,e.l))}function e1(e,t,r){e.i.set(t,r)}function e2(e){return e1(e,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),e}function e6(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function e3(e,t,r){return"string"==typeof e?(e=encodeURI(e).replace(t,e5),r&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function e5(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}eQ.prototype.toString=function(){let e=[];var t=this.j;t&&e.push(e3(t,e4,!0),":");var r=this.g;return(r||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(e3(t,e4,!0),"@"),e.push(eS(r).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.u)&&e.push(":",String(r))),(r=this.h)&&(this.g&&"/"!=r.charAt(0)&&e.push("/"),e.push(e3(r,"/"==r.charAt(0)?e7:e8,!0))),(r=this.i.toString())&&e.push("?",r),(r=this.m)&&e.push("#",e3(r,te)),e.join("")},eQ.prototype.resolve=function(e){let t=eX(this),r=!!e.j;r?eY(t,e.j):r=!!e.o,r?t.o=e.o:r=!!e.g,r?t.g=e.g:r=null!=e.u;var n=e.h;if(r)eZ(t,e.u);else if(r=!!e.h){if("/"!=n.charAt(0))if(this.g&&!this.h)n="/"+n;else{var i=t.h.lastIndexOf("/");-1!=i&&(n=t.h.slice(0,i+1)+n)}if(".."==(i=n)||"."==i)n="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){n=0==i.lastIndexOf("/",0),i=i.split("/");let e=[];for(let t=0;t<i.length;){let r=i[t++];"."==r?n&&t==i.length&&e.push(""):".."==r?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),n&&t==i.length&&e.push("")):(e.push(r),n=!0)}n=e.join("/")}else n=i}return r?t.h=n:r=""!==e.i.toString(),r?e0(t,ta(e.i)):r=!!e.m,r&&(t.m=e.m),t};var e4=/[#\/\?@]/g,e8=/[#\?:]/g,e7=/[#\?]/g,e9=/[#\?@]/g,te=/#/g;function tt(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function tr(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(let r=0;r<e.length;r++){let n=e[r].indexOf("="),i,o=null;n>=0?(i=e[r].substring(0,n),o=e[r].substring(n+1)):i=e[r],t(i,o?decode
1URIComponent(o.replace(/\+/g," ")):"")}}}(e.i,function(t,r){e.add(decodeURIComponent(t.replace(/\+/g," ")),r)}))}function tn(e,t){tr(e),t=tl(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function ti(e,t){return tr(e),t=tl(e,t),e.g.has(t)}function to(e,t){tr(e);let r=[];if("string"==typeof t)ti(e,t)&&(r=r.concat(e.g.get(tl(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)r=r.concat(e[t]);return r}function ts(e,t,r){tn(e,t),r.length>0&&(e.i=null,e.g.set(tl(e,t),g(r)),e.h+=r.length)}function ta(e){let t=new tt;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function tl(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function th(e,t,r,n,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),n(r)}catch(e){}}function tu(){this.g=new ea}function tc(e){this.i=e.Sb||null,this.h=e.ab||!1}function tf(e,t){Y.call(this),this.H=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function td(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function tp(e){e.readyState=4,e.l=null,e.j=null,e.B=null,tg(e)}function tg(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function t_(e){let t="";return V(e,function(e,r){t+=r,t+=":",t+=e,t+="\r\n"}),t}function tm(e,t,r){e:{for(n in r){var n=!1;break e}n=!0}n||(r=t_(r),"string"==typeof e?(eS(t),null!=r&&eS(r)):e1(e,t,r))}function ty(e){Y.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(n=tt.prototype).add=function(e,t){tr(this),this.i=null,e=tl(this,e);let r=this.g.get(e);return r||this.g.set(e,r=[]),r.push(t),this.h+=1,this},n.forEach=function(e,t){tr(this),this.g.forEach(function(r,n){r.forEach(function(r){e.call(t,r,n,this)},this)},this)},n.set=function(e,t){return tr(this),this.i=null,ti(this,e=tl(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},n.get=function(e,t){return e&&(e=to(this,e)).length>0?String(e[0]):t},n.toString=function(){if(this.i)return this.i;if(!this.g)return"";let e=[],t=Array.from(this.g.keys());for(let n=0;n<t.length;n++){var r=t[n];let i=eS(r);r=to(this,r);for(let t=0;t<r.length;t++){let n=i;""!==r[t]&&(n+="="+eS(r[t])),e.push(n)}}return this.i=e.join("&")},d(tc,el),tc.prototype.g=function(){return new tf(this.i,this.h)},d(tf,Y),(n=tf.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=t,this.readyState=1,tg(this)},n.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;let t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||l).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},n.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,tp(this)),this.readyState=0},n.Pa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,tg(this)),this.g&&(this.readyState=3,tg(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==l.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;td(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},n.Ma=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?tp(this):tg(this),3==this.readyState&&td(this)}},n.Oa=function(e){this.g&&(this.response=this.responseText=e,tp(this))},n.Na=function(e){this.g&&(this.response=e,tp(this))},n.ga=function(){this.g&&tp(this)},n.setRequestHeader=function(e,t){this.A.append(e,t)},n.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},n.getAllResponseHeaders=function(){if(!this.h)return"";let e=[],t=this.h.entries();for(var r=t.next();!r.done;)e.push((r=r.value)[0]+": "+r[1]),r=t.next();return e.join("\r\n")},Object.defineProperty(tf.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),d(ty,Y);var tb=/^https?$/i,tv=["POST","PUT"];function tE(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,tw(e),tA(e)}function tw(e){e.A||(e.A=!0,Z(e,"complete"),Z(e,"error"))}function tI(e){if(e.h&&void 0!==a){if(e.v&&4==tT(e))setTimeout(e.Ca.bind(e),0);else if(Z(e,"readystatechange"),4==tT(e)){e.h=!1;try{let o=e.ca();switch(o){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t,r,n=!0;break;default:n=!1}if(!(t=n)){if(r=0===o){let t=String(e.D).match(eK)[1]||null;!t&&l.self&&l.self.location&&(t=l.self.location.protocol.slice(0,-1)),r=!tb.test(t?t.toLowerCase():"")}t=r}if(t)Z(e,"complete"),Z(e,"success");else{e.o=6;try{var i=tT(e)>2?e.g.statusText:""}catch(e){i=""}e.l=i+" ["+e.ca()+"]",tw(e)}}finally{tA(e)}}}}function tA(e,t){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);let r=e.g;e.g=null,t||Z(e,"ready");try{r.onreadystatechange=null}catch(e){}}}function tT(e){return e.g?e.g.readyState:0}function tC(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}
1function tS(e,t,r){return r&&r.internalChannelParams&&r.internalChannelParams[e]||t}function tD(e){this.za=0,this.i=[],this.j=new ew,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=tS("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=tS("baseRetryDelayMs",5e3,e),this.Za=tS("retryDelaySeedMs",1e4,e),this.Ta=tS("forwardChannelMaxRetries",2,e),this.va=tS("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new eq(e&&e.concurrentRequestLimit),this.Ba=new tu,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function tP(e){if(tx(e),3==e.I){var t=e.V++,r=eX(e.J);if(e1(r,"SID",e.M),e1(r,"RID",t),e1(r,"TYPE","terminate"),tN(e,r),(t=new eD(e,e.j,t)).M=2,t.A=e2(eX(r)),r=!1,l.navigator&&l.navigator.sendBeacon)try{r=l.navigator.sendBeacon(t.A.toString(),"")}catch(e){}!r&&l.Image&&((new Image).src=t.A,r=!0),r||(t.g=t$(t.j,null),t.g.ea(t.A)),t.F=Date.now(),eV(t)}tH(e)}function tR(e){e.g&&(tM(e),e.g.cancel(),e.g=null)}function tx(e){tR(e),e.v&&(l.clearTimeout(e.v),e.v=null),tB(e),e.h.cancel(),e.m&&("number"==typeof e.m&&l.clearTimeout(e.m),e.m=null)}function tO(e){if(!eW(e.h)&&!e.m){e.m=!0;var t=e.Ea;E||A(),w||(E(),w=!0),I.add(t,e),e.D=0}}function tF(e,t){var r;r=t?t.l:e.V++;let n=eX(e.J);e1(n,"SID",e.M),e1(n,"RID",r),e1(n,"AID",e.K),tN(e,n),e.u&&e.o&&tm(n,e.u,e.o),r=new eD(e,e.j,r,e.D+1),null===e.u&&(r.J=e.o),t&&(e.i=t.G.concat(e.i)),t=tV(e,r,1e3),r.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),e$(e.h,r),eO(r,n,t)}function tN(e,t){e.H&&V(e.H,function(e,r){e1(t,r,e)}),e.l&&V({},function(e,r){e1(t,r,e)})}function tV(e,t,r){r=Math.min(e.i.length,r);let n=e.l?c(e.l.Ka,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){let e=["count="+r];-1==t?r>0?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let a=!0;for(let l=0;l<r;l++){var o=i[l].g;let r=i[l].map;if((o-=t)<0)t=Math.max(0,i[l].g-100),a=!1;else try{o="req"+o+"_";try{var s=r instanceof Map?r:Object.entries(r);for(let[t,r]of s){let n=r;h(r)&&(n=eo(r)),e.push(o+t+"="+encodeURIComponent(n))}}catch(t){throw e.push(o+"type="+encodeURIComponent("_badmap")),t}}catch(e){n&&n(r)}}if(a){s=e.join("&");break e}}s=void 0}return t.G=e=e.i.splice(0,r),s}function tL(e){if(!e.g&&!e.v){e.Y=1;var t=e.Da;E||A(),w||(E(),w=!0),I.add(t,e),e.A=0}}function tk(e){return!e.g&&!e.v&&!(e.A>=3)&&(e.Y++,e.v=eE(c(e.Da,e),tq(e,e.A)),e.A++,!0)}function tM(e){null!=e.B&&(l.clearTimeout(e.B),e.B=null)}function tj(e){e.g=new eD(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var t=eX(e.na);e1(t,"RID","rpc"),e1(t,"SID",e.M),e1(t,"AID",e.K),e1(t,"CI",e.F?"0":"1"),!e.F&&e.ia&&e1(t,"TO",e.ia),e1(t,"TYPE","xmlhttp"),tN(e,t),e.u&&e.o&&tm(t,e.u,e.o),e.O&&(e.g.H=e.O);var r=e.g;e=e.ba,r.M=1,r.A=e2(eX(t)),r.u=null,r.R=!0,eF(r,e)}function tB(e){null!=e.C&&(l.clearTimeout(e.C),e.C=null)}function tU(e,t){var r,n=null;if(e.g==t){tB(e),tM(e),e.g=null;var i=2}else{if(!ez(e.h,t))return;n=t.G,eG(e.h,t),i=1}if(0!=e.I){if(t.o)if(1==i){n=t.u?t.u.length:0,t=Date.now()-t.F;var o=e.D;Z(i=eg(),new ev(i,n,t,o)),tO(e)}else tL(e);else if(3==(o=t.m)||0==o&&t.X>0||!(1==i&&(r=t,!(eH(e.h)>=e.h.j-!!e.m)&&(e.m?(e.i=r.G.concat(e.i),!0):1!=e.I&&2!=e.I&&!(e.D>=(e.Sa?0:e.Ta))&&(e.m=eE(c(e.Ea,e,r),tq(e,e.D)),e.D++,!0)))||2==i&&tk(e)))switch(n&&n.length>0&&((t=e.h).i=t.i.concat(n)),o){case 1:tW(e,5);break;case 4:tW(e,10);break;case 3:tW(e,6);break;default:tW(e,2)}}}function tq(e,t){let r=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(r*=2),r*t}function tW(e,t){if(e.j.info("Error code "+t),2==t){let t,o,s;var r,n=c(e.bb,e),i=e.Ua;let a=!i;i=new eQ(i||"//www.google.com/images/cleardot.gif"),l.location&&"http"==l.location.protocol||eY(i,"https"),e2(i),a?function(e,t){let r=new ew;if(l.Image){let n=new Image;n.onload=f(th,r,"TestLoadImage: loaded",!0,t,n),n.onerror=f(th,r,"TestLoadImage: error",!1,t,n),n.onabort=f(th,r,"TestLoadImage: abort",!1,t,n),n.ontimeout=f(th,r,"TestLoadImage: timeout",!1,t,n),l.setTimeout(function(){n.ontimeout&&n.ontimeout()},1e4),n.src=e}else t(!1)}(i.toString(),n):(r=i.toString(),t=new ew,o=new AbortController,s=setTimeout(()=>{o.abort(),th(t,"TestPingServer: timeout",!1,n)},1e4),fetch(r,{signal:o.signal}).then(e=>{clearTimeout(s),e.ok?th(t,"TestPingServer: ok",!0,n):th(t,"TestPingServer: server error",!1,n)}).catch(()=>{clearTimeout(s),th(t,"TestPingServer: error",!1,n)}))}else eb(2);e.I=0,e.l&&e.l.pa(t),tH(e),tx(e)}function tH(e){if(e.I=0,e.ja=[],e.l){let t=eJ(e.h);(0!=t.length||0!=e.i.length)&&(_(e.ja,t),_(e.ja,e.i),e.h.i.length=0,g(e.i),e.i.length=0),e.l.oa()}}function tz(e,t,r){var n=r instanceof eQ?eX(r):new eQ(r);if(""!=n.g)t&&(n.g=t+"."+n.g),eZ(n,n.u);else{var i=l.location;n=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;let e=new eQ(null);n&&eY(e,n),t&&(e.g=t),i&&eZ(e,i),r&&(e.h=r),n=e}return r=e.G,t=e.wa,r&&t&&e1(n,r,t),e1(n,"VER",e.ka),tN(e,n),n}function t$(e,t,r){if(t&&!e.L)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new ty(e.Aa&&!e.ma?new tc({ab:r}):e.ma)).Fa(e.L),t}function tG(){}function tJ(){}function tK(e,t){Y.call(this),this.g=new tD(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.sa&&(e?e["X-WebChannel-Client-Profile"]=t.sa:e={"X-WebChannel-Client-Profile":t.sa}),this.g.U=e,(e=t&&t.Qb)&&!P(e)&&(this.g.u=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!P(t)&&(this.g.G=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new tY(this)}function tQ(e){ec.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(let r in t){e=r;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function tX(){ef.call(this),this.status=1}function tY(e){this.g=e}(n=ty.prototype).Fa=function(e){this.H=e},n.ea=function(e,r,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);r=r?r.toUpperCase():"GET",this.D=e,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():t.g(),this.g.onreadystatechange=p(c(this.Ca,this));try{this.B=!0,this.g.open(r,String(e),!0),this.B=!1}catch(e){tE(this,e);return}if(e=n||"",n=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var o in i)n.set(o,i[o]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let e of i.keys())n.set(e,i.get(e));else throw Error("Unknown input type for opt_headers: "+String(i));for(let[t,s]of(i=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),o=l.FormData&&e instanceof l.FormData,!(Array.prototype.indexOf.call(tv,r,void 0)>=0)||i||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(t,s);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(e),this.v=!1}catch(e){tE(this,e)}},n.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=e||7,Z(this,"complete"),Z(this,"abort"),tA(this))},n.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tA(this,!0)),ty.Z.N.call(this)}
1,n.Ca=function(){this.u||(this.B||this.v||this.j?tI(this):this.Xa())},n.Xa=function(){tI(this)},n.isActive=function(){return!!this.g},n.ca=function(){try{return tT(this)>2?this.g.status:-1}catch(e){return -1}},n.la=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},n.La=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),es(t)}},n.ya=function(){return this.o},n.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(n=tD.prototype).ka=8,n.I=1,n.connect=function(e,t,r,n){eb(0),this.W=e,this.H=t||{},r&&void 0!==n&&(this.H.OSID=r,this.H.OAID=n),this.F=this.X,this.J=tz(this,null,this.W),tO(this)},n.Ea=function(e){if(this.m)if(this.m=null,1==this.I){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;let i=new eD(this,this.j,e),o=this.o;if(this.U&&(o?M(o=L(o),this.U):o=this.U),null!==this.u||this.R||(i.J=o,o=null),this.S)e:{for(var t=0,r=0;r<this.i.length;r++){t:{var n=this.i[r];if("__data__"in n.map&&"string"==typeof(n=n.map.__data__)){n=n.length;break t}n=void 0}if(void 0===n)break;if((t+=n)>4096){t=r;break e}if(4096===t||r===this.i.length-1){t=r+1;break e}}t=1e3}else t=1e3;t=tV(this,i,t),e1(r=eX(this.J),"RID",e),e1(r,"CVER",22),this.G&&e1(r,"X-HTTP-Session-Id",this.G),tN(this,r),o&&(this.R?t="headers="+eS(t_(o))+"&"+t:this.u&&tm(r,this.u,o)),e$(this.h,i),this.Ra&&e1(r,"TYPE","init"),this.S?(e1(r,"$req",t),e1(r,"SID","null"),i.U=!0,eO(i,r,null)):eO(i,r,t),this.I=2}}else 3==this.I&&(e?tF(this,e):0==this.i.length||eW(this.h)||tF(this))},n.Da=function(){if(this.v=null,tj(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var e=4*this.T;this.j.info("BP detection timer enabled: "+e),this.B=eE(c(this.Wa,this),e)}},n.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,eb(10),tR(this),tj(this))},n.Va=function(){null!=this.C&&(this.C=null,tR(this),tk(this),eb(19))},n.bb=function(e){e?(this.j.info("Successfully pinged google.com"),eb(2)):(this.j.info("Failed to ping google.com"),eb(1))},n.isActive=function(){return!!this.l&&this.l.isActive(this)},(n=tG.prototype).ra=function(){},n.qa=function(){},n.pa=function(){},n.oa=function(){},n.isActive=function(){return!0},n.Ka=function(){},tJ.prototype.g=function(e,t){return new tK(e,t)},d(tK,Y),tK.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},tK.prototype.close=function(){tP(this.g)},tK.prototype.o=function(e){var t=this.g;if("string"==typeof e){var r={};r.__data__=e,e=r}else this.v&&((r={}).__data__=eo(e),e=r);t.i.push(new eU(t.Ya++,e)),3==t.I&&tO(t)},tK.prototype.N=function(){this.g.l=null,delete this.j,tP(this.g),delete this.g,tK.Z.N.call(this)},d(tQ,ec),d(tX,ef),d(tY,tG),tY.prototype.ra=function(){Z(this.g,"a")},tY.prototype.qa=function(e){Z(this.g,new tQ(e))},tY.prototype.pa=function(e){Z(this.g,new tX(e))},tY.prototype.oa=function(){Z(this.g,"b")},tJ.prototype.createWebChannel=tJ.prototype.g,tK.prototype.send=tK.prototype.o,tK.prototype.open=tK.prototype.m,tK.prototype.close=tK.prototype.close,e.exports.createWebChannelTransport=function(){return new tJ},e.exports.getStatEventTarget=function(){return eg()},e.exports.Event=ed,e.exports.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},eA.NO_ERROR=0,eA.TIMEOUT=8,eA.HTTP_ERROR=6,e.exports.ErrorCode=eA,eT.COMPLETE="complete",e.exports.EventType=eT,eh.EventType=eu,eu.OPEN="a",eu.CLOSE="b",eu.ERROR="c",eu.MESSAGE="d",Y.prototype.listen=Y.prototype.J,e.exports.WebChannel=eh,e.exports.FetchXmlHttpFactory=tc,ty.prototype.listenOnce=ty.prototype.K,ty.prototype.getLastError=ty.prototype.Ha,ty.prototype.getLastErrorCode=ty.prototype.ya,ty.prototype.getStatus=ty.prototype.ca,ty.prototype.getResponseJson=ty.prototype.La,ty.prototype.getResponseText=ty.prototype.la,ty.prototype.send=ty.prototype.ea,ty.prototype.setWithCredentials=ty.prototype.Fa,e.exports.XhrIo=ty}).apply(void 0!==r.g?r.g:"u">typeof self?self:"u">typeof window?window:{})},25407:(e,t,r)=>{(function(){"use strict";function t(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.C=Array(this.blockSize),this.o=this.h=0,this.u()}var r=function(){this.blockSize=-1};function n(){}function i(e,t,r){r||(r=0);let n=Array(16);if("string"==typeof t)for(var i=0;i<16;++i)n[i]=t.charCodeAt(r++)|t.charCodeAt(r++)<<8|t.charCodeAt(r++)<<16|t.charCodeAt(r++)<<24;else for(i=0;i<16;++i)n[i]=t[r++]|t[r++]<<8|t[r++]<<16|t[r++]<<24;t=e.g[0],r=e.g[1],i=e.g[2];let o=e.g[3],s;s=t+(o^r&(i^o))+n[0]+0xd76aa478|0,s=o+(i^(t=r+(s<<7|s>>>25))&(r^i))+n[1]+0xe8c7b756|0,s=i+(r^(o=t+(s<<12|s>>>20))&(t^r))+n[2]+0x242070db|0,s=r+(t^(i=o+(s<<17|s>>>15))&(o^t))+n[3]+0xc1bdceee|0,s=t+(o^(r=i+(s<<22|s>>>10))&(i^o))+n[4]+0xf57c0faf|0,s=o+(i^(t=r+(s<<7|s>>>25))&(r^i))+n[5]+0x4787c62a|0,s=i+(r^(o=t+(s<<12|s>>>20))&(t^r))+n[6]+0xa8304613|0,s=r+(t^(i=o+(s<<17|s>>>
115))&(o^t))+n[7]+0xfd469501|0,s=t+(o^(r=i+(s<<22|s>>>10))&(i^o))+n[8]+0x698098d8|0,s=o+(i^(t=r+(s<<7|s>>>25))&(r^i))+n[9]+0x8b44f7af|0,s=i+(r^(o=t+(s<<12|s>>>20))&(t^r))+n[10]+0xffff5bb1|0,s=r+(t^(i=o+(s<<17|s>>>15))&(o^t))+n[11]+0x895cd7be|0,s=t+(o^(r=i+(s<<22|s>>>10))&(i^o))+n[12]+0x6b901122|0,s=o+(i^(t=r+(s<<7|s>>>25))&(r^i))+n[13]+0xfd987193|0,s=i+(r^(o=t+(s<<12|s>>>20))&(t^r))+n[14]+0xa679438e|0,s=r+(t^(i=o+(s<<17|s>>>15))&(o^t))+n[15]+0x49b40821|0,r=i+(s<<22|s>>>10),s=t+(i^o&(r^i))+n[1]+0xf61e2562|0,t=r+(s<<5|s>>>27),s=o+(r^i&(t^r))+n[6]+0xc040b340|0,o=t+(s<<9|s>>>23),s=i+(t^r&(o^t))+n[11]+0x265e5a51|0,i=o+(s<<14|s>>>18),s=r+(o^t&(i^o))+n[0]+0xe9b6c7aa|0,r=i+(s<<20|s>>>12),s=t+(i^o&(r^i))+n[5]+0xd62f105d|0,t=r+(s<<5|s>>>27),s=o+(r^i&(t^r))+n[10]+0x2441453|0,o=t+(s<<9|s>>>23),s=i+(t^r&(o^t))+n[15]+0xd8a1e681|0,i=o+(s<<14|s>>>18),s=r+(o^t&(i^o))+n[4]+0xe7d3fbc8|0,r=i+(s<<20|s>>>12),s=t+(i^o&(r^i))+n[9]+0x21e1cde6|0,t=r+(s<<5|s>>>27),s=o+(r^i&(t^r))+n[14]+0xc33707d6|0,o=t+(s<<9|s>>>23),s=i+(t^r&(o^t))+n[3]+0xf4d50d87|0,i=o+(s<<14|s>>>18),s=r+(o^t&(i^o))+n[8]+0x455a14ed|0,r=i+(s<<20|s>>>12),s=t+(i^o&(r^i))+n[13]+0xa9e3e905|0,t=r+(s<<5|s>>>27),s=o+(r^i&(t^r))+n[2]+0xfcefa3f8|0,o=t+(s<<9|s>>>23),s=i+(t^r&(o^t))+n[7]+0x676f02d9|0,i=o+(s<<14|s>>>18),s=r+(o^t&(i^o))+n[12]+0x8d2a4c8a|0,s=t+((r=i+(s<<20|s>>>12))^i^o)+n[5]+0xfffa3942|0,s=o+((t=r+(s<<4|s>>>28))^r^i)+n[8]+0x8771f681|0,s=i+((o=t+(s<<11|s>>>21))^t^r)+n[11]+0x6d9d6122|0,s=r+((i=o+(s<<16|s>>>16))^o^t)+n[14]+0xfde5380c|0,s=t+((r=i+(s<<23|s>>>9))^i^o)+n[1]+0xa4beea44|0,s=o+((t=r+(s<<4|s>>>28))^r^i)+n[4]+0x4bdecfa9|0,s=i+((o=t+(s<<11|s>>>21))^t^r)+n[7]+0xf6bb4b60|0,s=r+((i=o+(s<<16|s>>>16))^o^t)+n[10]+0xbebfbc70|0,s=t+((r=i+(s<<23|s>>>9))^i^o)+n[13]+0x289b7ec6|0,s=o+((t=r+(s<<4|s>>>28))^r^i)+n[0]+0xeaa127fa|0,s=i+((o=t+(s<<11|s>>>21))^t^r)+n[3]+0xd4ef3085|0,s=r+((i=o+(s<<16|s>>>16))^o^t)+n[6]+0x4881d05|0,s=t+((r=i+(s<<23|s>>>9))^i^o)+n[9]+0xd9d4d039|0,s=o+((t=r+(s<<4|s>>>28))^r^i)+n[12]+0xe6db99e5|0,s=i+((o=t+(s<<11|s>>>21))^t^r)+n[15]+0x1fa27cf8|0,s=r+((i=o+(s<<16|s>>>16))^o^t)+n[2]+0xc4ac5665|0,r=i+(s<<23|s>>>9),s=t+(i^(r|~o))+n[0]+0xf4292244|0,t=r+(s<<6|s>>>26),s=o+(r^(t|~i))+n[7]+0x432aff97|0,o=t+(s<<10|s>>>22),s=i+(t^(o|~r))+n[14]+0xab9423a7|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~t))+n[5]+0xfc93a039|0,r=i+(s<<21|s>>>11),s=t+(i^(r|~o))+n[12]+0x655b59c3|0,t=r+(s<<6|s>>>26),s=o+(r^(t|~i))+n[3]+0x8f0ccc92|0,o=t+(s<<10|s>>>22),s=i+(t^(o|~r))+n[10]+0xffeff47d|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~t))+n[1]+0x85845dd1|0,r=i+(s<<21|s>>>11),s=t+(i^(r|~o))+n[8]+0x6fa87e4f|0,t=r+(s<<6|s>>>26),s=o+(r^(t|~i))+n[15]+0xfe2ce6e0|0,o=t+(s<<10|s>>>22),s=i+(t^(o|~r))+n[6]+0xa3014314|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~t))+n[13]+0x4e0811a1|0,r=i+(s<<21|s>>>11),s=t+(i^(r|~o))+n[4]+0xf7537e82|0,t=r+(s<<6|s>>>26),s=o+(r^(t|~i))+n[11]+0xbd3af235|0,o=t+(s<<10|s>>>22),s=i+(t^(o|~r))+n[2]+0x2ad7d2bb|0,i=o+(s<<15|s>>>17),s=r+(o^(i|~t))+n[9]+0xeb86d391|0,e.g[0]=e.g[0]+t|0,e.g[1]=e.g[1]+(i+(s<<21|s>>>11))|0,e.g[2]=e.g[2]+i|0,e.g[3]=e.g[3]+o|0}function o(e,t){this.h=t;let r=[],n=!0;for(let i=e.length-1;i>=0;i--){let o=0|e[i];n&&o==t||(r[i]=o,n=!1)}this.g=r}n.prototype=r.prototype,t.F=r.prototype,t.prototype=new n,t.prototype.constructor=t,t.D=function(e,t,n){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return r.prototype[t].apply(e,i)},t.prototype.u=function(){this.g[0]=0x67452301,this.g[1]=0xefcdab89,this.g[2]=0x98badcfe,this.g[3]=0x10325476,this.o=this.h=0},t.prototype.v=function(e,t){void 0===t&&(t=e.length);let r=t-this.blockSize,n=this.C,o=this.h,s=0;for(;s<t;){if(0==o)for(;s<=r;)i(this,e,s),s+=this.blockSize;if("string"==typeof e){for(;s<t;)if(n[o++]=e.charCodeAt(s++),o==this.blockSize){i(this,n),o=0;break}}else for(;s<t;)if(n[o++]=e[s++],o==this.blockSize){i(this,n),o=0;break}}this.h=o,this.o+=t},t.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;t=8*this.o;for(var r=e.length-8;r<e.length;++r)e[r]=255&t,t/=256;for(this.v(e),e=Array(16),t=0,r=0;r<4;++r)for(let n=0;n<32;n+=8)e[t++]=this.g[r]>>>n&255;return e};var s,a={};function l(e){var t;return -128<=e&&e<128?(t=function(e){return new o([0|e],e<0?-1:0)},Object.prototype.hasOwnProperty.call(a,e)?a[e]:a[e]=t(e)):new o([0|e],e<0?-1:0)}function h(e){if(isNaN(e)||!isFinite(e))return u;if(e<0)return g(h(-e));let t=[],r=1;for(let n=0;e>=r;n++)t[n]=e/r|0,r*=0x100000000;return new o(t,0)}var u=l(0),c=l(1),f=l(0x1000000);function d(e){if(0!=e.h)return!1;for(let t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function p(e){return -1==e.h}function g(e){let t=e.g.length,r=[];for(let n=0;n<t;n++)r[n]=~e.g[n];return new o(r,~e.h).add(c)}function _(e,t){return e.add(g(t))}function m(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function y(e,t){this.g=e,this.h=t}function b(e,t){if(d(t))throw Error("division by zero");if(d(e))return new y(u,u);
1if(p(e))return t=b(g(e),t),new y(g(t.g),g(t.h));if(p(t))return t=b(e,g(t)),new y(g(t.g),t.h);if(e.g.length>30){if(p(e)||p(t))throw Error("slowDivide_ only works with positive integers.");for(var r=c,n=t;0>=n.l(e);)r=v(r),n=v(n);var i=E(r,1),o=E(n,1);for(n=E(n,2),r=E(r,2);!d(n);){var s=o.add(n);0>=s.l(e)&&(i=i.add(r),o=s),n=E(n,1),r=E(r,1)}return t=_(e,i.j(t)),new y(i,t)}for(i=u;e.l(t)>=0;){for(n=(n=Math.ceil(Math.log(r=Math.max(1,Math.floor(e.m()/t.m())))/Math.LN2))<=48?1:Math.pow(2,n-48),s=(o=h(r)).j(t);p(s)||s.l(e)>0;)r-=n,s=(o=h(r)).j(t);d(o)&&(o=c),i=i.add(o),e=_(e,s)}return new y(i,e)}function v(e){let t=e.g.length+1,r=[];for(let n=0;n<t;n++)r[n]=e.i(n)<<1|e.i(n-1)>>>31;return new o(r,e.h)}function E(e,t){let r=t>>5;t%=32;let n=e.g.length-r,i=[];for(let o=0;o<n;o++)i[o]=t>0?e.i(o+r)>>>t|e.i(o+r+1)<<32-t:e.i(o+r);return new o(i,e.h)}(s=o.prototype).m=function(){if(p(this))return-g(this).m();let e=0,t=1;for(let r=0;r<this.g.length;r++){let n=this.i(r);e+=(n>=0?n:0x100000000+n)*t,t*=0x100000000}return e},s.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(d(this))return"0";if(p(this))return"-"+g(this).toString(e);let t=h(Math.pow(e,6));var r=this;let n="";for(;;){let i=b(r,t).g,o=(((r=_(r,i.j(t))).g.length>0?r.g[0]:r.h)>>>0).toString(e);if(d(r=i))return o+n;for(;o.length<6;)o="0"+o;n=o+n}},s.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},s.l=function(e){return p(e=_(this,e))?-1:+!d(e)},s.abs=function(){return p(this)?g(this):this},s.add=function(e){let t=Math.max(this.g.length,e.g.length),r=[],n=0;for(let i=0;i<=t;i++){let t=n+(65535&this.i(i))+(65535&e.i(i)),o=(t>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);n=o>>>16,t&=65535,o&=65535,r[i]=o<<16|t}return new o(r,-0x80000000&r[r.length-1]?-1:0)},s.j=function(e){if(d(this)||d(e))return u;if(p(this))return p(e)?g(this).j(g(e)):g(g(this).j(e));if(p(e))return g(this.j(g(e)));if(0>this.l(f)&&0>e.l(f))return h(this.m()*e.m());let t=this.g.length+e.g.length,r=[];for(var n=0;n<2*t;n++)r[n]=0;for(n=0;n<this.g.length;n++)for(let t=0;t<e.g.length;t++){let i=this.i(n)>>>16,o=65535&this.i(n),s=e.i(t)>>>16,a=65535&e.i(t);r[2*n+2*t]+=o*a,m(r,2*n+2*t),r[2*n+2*t+1]+=i*a,m(r,2*n+2*t+1),r[2*n+2*t+1]+=o*s,m(r,2*n+2*t+1),r[2*n+2*t+2]+=i*s,m(r,2*n+2*t+2)}for(e=0;e<t;e++)r[e]=r[2*e+1]<<16|r[2*e];for(e=t;e<2*t;e++)r[e]=0;return new o(r,0)},s.B=function(e){return b(this,e).h},s.and=function(e){let t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)&e.i(n);return new o(r,this.h&e.h)},s.or=function(e){let t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)|e.i(n);return new o(r,this.h|e.h)},s.xor=function(e){let t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)^e.i(n);return new o(r,this.h^e.h)},t.prototype.digest=t.prototype.A,t.prototype.reset=t.prototype.u,t.prototype.update=t.prototype.v,e.exports.Md5=t,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.B,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=h,o.fromString=function e(t,r){if(0==t.length)throw Error("number format error: empty string");if((r=r||10)<2||36<r)throw Error("radix out of range: "+r);if("-"==t.charAt(0))return g(e(t.substring(1),r));if(t.indexOf("-")>=0)throw Error('number format error: interior "-" character');let n=h(Math.pow(r,8)),i=u;for(let e=0;e<t.length;e+=8){var o=Math.min(8,t.length-e);let s=parseInt(t.substring(e,e+o),r);o<8?(o=h(Math.pow(r,o)),i=i.j(o).add(h(s))):i=(i=i.j(n)).add(h(s))}return i},e.exports.Integer=o}).apply(void 0!==r.g?r.g:"u">typeof self?self:"u">typeof window?window:{})},31379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(16215);class i{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let o="[DEFAULT]";class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new n.Deferred;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:o})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=o){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=o){return this.instances.has(e)}getOptions(e=o){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),n=this.onInitCallbacks.get(r)??new Set;n.add(e),this.onInitCallbacks.set(r,n);let i=this.instances.get(r);return i&&e(i,r),()=>{n.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===o?void 0:r,options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=o){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}t.Component=i,t.ComponentContainer=a,t.Provider=s},49507:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(31379),i=r(60577),o=r(16215),s=r(9118);class a{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{let t;if(t=e.getComponent(),t?.type!=="VERSION")return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let l="@firebase/app",h="0.14.12",u=new i.Logger("@firebase/app"),c="[DEFAULT]",f={[l]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},d=new Map,p=new Map,g=new Map;function _(e,t){try{e.container.addComponent(t)}catch(r){u.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function m(e){let t=e.name;if(g.has(t))return u.debug(`There were multiple attempts to register component ${t}.`),!1;for(let r of(g.set(t,e),d.values()))_(r,e);for(let t of p.values())_(t,e);return!0}function y(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function b(e){return void 0!==e.options}function v(e){return!b(e)&&("authIdToken"in e||"appCheckToken"in e||"releaseOnDeref"in e||"automaticDataCollectionEnabled"in e)}let E=new o.ErrorFactory("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
1d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class w{constructor(e,t,r){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new n.Component("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw E.create("app-deleted",{appName:this._name})}}function I(e,t){let r=o.base64Decode(e.split(".")[1]);null===r?console.error(`FirebaseServerApp ${t} is invalid: second part could not be parsed.`):void 0===JSON.parse(r).exp?console.error(`FirebaseServerApp ${t} is invalid: expiration claim could not be parsed`):1e3*JSON.parse(r).exp-new Date().getTime()<=0&&console.error(`FirebaseServerApp ${t} is invalid: the token has expired.`)}class A extends w{constructor(e,t,r,n){const i=void 0===t.automaticDataCollectionEnabled||t.automaticDataCollectionEnabled,o={name:r,automaticDataCollectionEnabled:i};void 0!==e.apiKey?super(e,o,n):super(e.options,o,n),this._serverConfig={automaticDataCollectionEnabled:i,...t},this._serverConfig.authIdToken&&I(this._serverConfig.authIdToken,"authIdToken"),this._serverConfig.appCheckToken&&I(this._serverConfig.appCheckToken,"appCheckToken"),this._finalizationRegistry=null,"u">typeof FinalizationRegistry&&(this._finalizationRegistry=new FinalizationRegistry(()=>{this.automaticCleanup()})),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,t.releaseOnDeref=void 0,S(l,h,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(e){this.isDeleted||(this._refCount++,void 0!==e&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(e,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){C(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw E.create("server-app-deleted")}}function T(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let i={name:c,automaticDataCollectionEnabled:!0,...t},s=i.name;if("string"!=typeof s||!s)throw E.create("bad-app-name",{appName:String(s)});if(r||(r=o.getDefaultAppConfig()),!r)throw E.create("no-options");let a=d.get(s);if(a)if(o.deepEqual(r,a.options)&&o.deepEqual(i,a.config))return a;else throw E.create("duplicate-app",{appName:s});let l=new n.ComponentContainer(s);for(let e of g.values())l.addComponent(e);let h=new w(r,i,l);return d.set(s,h),h}async function C(e){let t=!1,r=e.name;d.has(r)?(t=!0,d.delete(r)):p.has(r)&&0>=e.decRefCount()&&(p.delete(r),t=!0),t&&(await Promise.all(e.container.getProviders().map(e=>e.delete())),e.isDeleted=!0)}function S(e,t,r){let i=f[e]??e;r&&(i+=`-${r}`);let o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){let e=[`Unable to register library "${i}" with version "${t}":`];o&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),u.warn(e.join(" "));return}m(new n.Component(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let D="firebase-heartbeat-store",P=null;function R(){return P||(P=s.openDB("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(D)}catch(e){console.warn(e)}}}).catch(e=>{throw E.create("idb-open",{originalErrorMessage:e.message})})),P}async function x(e){try{let t=(await R()).transaction(D),r=await t.objectStore(D).get(F(e));return await t.done,r}catch(e){if(e instanceof o.FirebaseError)u.warn(e.message);else{let t=E.create("idb-get",{originalErrorMessage:e?.message});u.warn(t.message)}}}async function O(e,t){try{let r=(await R()).transaction(D,"readwrite"),n=r.objectStore(D);await n.put(t,F(e)),await r.done}catch(e){if(e instanceof o.FirebaseError)u.warn(e.message);else{let t=E.create("idb-set",{originalErrorMessage:e?.message});u.warn(t.message)}}}function F(e){return`${e.name}!${e.options.appId}`}class N{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new L(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=V();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,r=e[0].date;for(let n=1;n<e.length;n++)e[n].date<r&&(r=e[n].date,t=n);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){u.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||0===this._heartbeatsCache.heartbeats.length)return"";let e=V(),{heartbeatsToSend:t,unsentEntries:r}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),k(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),k(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),n=o.base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}catch(e){return u.warn(e),""}}}function V(){return new Date().toISOString().substring(0,10)}class L{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!o.isIndexedDBAvailable()&&o.validateIndexedDBOpenable().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await x(this.app);return e?.heartbeats?e:{heartbeats:[]}}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return O(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return O(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function k(e){return o.base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:e})).length}m(new n.Component("platform-logger",e=>new a(e),"PRIVATE")),m(new n.Component("heartbeat",e=>new N(e),"PRIVATE")),S(l,h,"node"),S(l,h,"cjs2020"),S("fire-js",""),Object.defineProperty(t,"FirebaseError",{enumerable:!0,get:function(){return o.FirebaseError}}),t.SDK_VERSION="12.13.0",t._DEFAULT_ENTRY_NAME=c,t._addComponent=_,t._addOrOverwriteComponent=function(e,t){e.container.addOrOverwriteComponent(t)},t._apps=d,t._clearComponents=function(){g.clear()},t._components=g,t._getProvider=y,t._isFirebaseApp=b,t._isFirebaseServerApp=function(e){return null!=e&&void 0!==e.settings},t._isFirebaseServerAppSettings=v,t._registerComponent=m,t._removeServiceInstance=function(e,t,r=c){y(e,t).clearInstance(r)},t._serverApps=p,t.deleteApp=C,t.getApp=function(e=c){let t=d.get(e);if(!t&&e===c&&o.getDefaultAppConfig())return T();if(!t)throw E.create("no-app",{appName:e});return t},t.getApps=function(){return Array.from(d.values())},t.initializeApp=T,t.initializeServerApp=function(e,t={}){let r;if(o.isBrowser()&&!o.isWebWorker())throw E.create("invalid-server-app-environment");let i=t||{};if(e&&(b(e)?r=e.options:v(e)?i=e:r=e),void 0===i.automaticDataCollectionEnabled&&(i.automaticDataCollectionEnabled=!0),r||(r=o.getDefaultAppConfig()),!r)throw E.create("no-options");let s={...i,...r};if(void 0!==s.releaseOnDeref&&delete s.releaseOnDeref,void 0!==i.releaseOnDeref&&"u"<typeof FinalizationRegistry)throw E.create("finalization-registry-not-supported",{});let a=""+[...JSON.stringify(s)].reduce((e,t)=>
1Math.imul(31,e)+t.charCodeAt(0)|0,0),l=p.get(a);if(l)return l.incRefCount(i.releaseOnDeref),l;let h=new n.ComponentContainer(a);for(let e of g.values())h.addComponent(e);let u=new A(r,i,a,h);return p.set(a,u),u},t.onLog=function(e,t){if(null!==e&&"function"!=typeof e)throw E.create("invalid-log-argument");i.setUserLogHandler(e,t)},t.registerVersion=S,t.setLogLevel=function(e){i.setLogLevel(e)}},53994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultsFromPostinstall=()=>({config:{apiKey:"AIzaSyB_r1_v5qmFmrnzJkpTZL3ryRWtSfDHD3E",appId:"1:307877483016:web:9287c046d1c533e254f7bd",authDomain:"finance-app-263bf.firebaseapp.com",databaseURL:"https://finance-app-263bf-default-rtdb.asia-southeast1.firebasedatabase.app",messagingSenderId:"307877483016",projectId:"finance-app-263bf",storageBucket:"finance-app-263bf.firebasestorage.app"},emulatorHosts:{}})},60577:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});let n=[];t.LogLevel=void 0,(r=t.LogLevel||(t.LogLevel={}))[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT";let i={debug:t.LogLevel.DEBUG,verbose:t.LogLevel.VERBOSE,info:t.LogLevel.INFO,warn:t.LogLevel.WARN,error:t.LogLevel.ERROR,silent:t.LogLevel.SILENT},o=t.LogLevel.INFO,s={[t.LogLevel.DEBUG]:"log",[t.LogLevel.VERBOSE]:"log",[t.LogLevel.INFO]:"info",[t.LogLevel.WARN]:"warn",[t.LogLevel.ERROR]:"error"},a=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=s[t];if(i)console[i](`[${n}]  ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class l{constructor(e){this.name=e,this._logLevel=o,this._logHandler=a,this._userLogHandler=null,n.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in t.LogLevel))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?i[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,t.LogLevel.DEBUG,...e),this._logHandler(this,t.LogLevel.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,t.LogLevel.VERBOSE,...e),this._logHandler(this,t.LogLevel.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,t.LogLevel.INFO,...e),this._logHandler(this,t.LogLevel.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,t.LogLevel.WARN,...e),this._logHandler(this,t.LogLevel.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,t.LogLevel.ERROR,...e),this._logHandler(this,t.LogLevel.ERROR,...e)}}t.Logger=l,t.setLogLevel=function(e){n.forEach(t=>{t.setLogLevel(e)})},t.setUserLogHandler=function(e,r){for(let o of n){let n=null;r&&r.level&&(n=i[r.level]),null===e?o.userLogHandler=null:o.userLogHandler=(r,i,...o)=>{let s=o.map(e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(e=>e).join(" ");i>=(n??r.logLevel)&&e({level:t.LogLevel[i].toLowerCase(),message:s,args:o,type:r.name})}}}}}]);

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.