@firebase/firestore 4.3.2-canary.bebecdaad → 4.3.2-canary.ebc694a33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.rn.js CHANGED
@@ -4,7 +4,7 @@ import { Component as s } from "@firebase/component";
4
4
 
5
5
  import { Logger as o, LogLevel as _ } from "@firebase/logger";
6
6
 
7
- import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as d, getDefaultEmulatorHostnameAndPort as E } from "@firebase/util";
7
+ import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as E, getDefaultEmulatorHostnameAndPort as d } from "@firebase/util";
8
8
 
9
9
  import { Integer as A, Md5 as R, XhrIo as V, EventType as m, ErrorCode as f, createWebChannelTransport as g, getStatEventTarget as p, FetchXmlHttpFactory as y, WebChannel as w, Event as S, Stat as b } from "@firebase/webchannel-wrapper";
10
10
 
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let C = "10.6.0-canary.bebecdaad";
73
+ let C = "10.6.0-canary.ebc694a33";
74
74
 
75
75
  /**
76
76
  * @license
@@ -5848,16 +5848,16 @@ class BloomFilter {
5848
5848
  throw new __PRIVATE_BloomFilterError(`Invalid padding when bitmap length is 0: ${t}`);
5849
5849
  this.Te = 8 * e.length - t,
5850
5850
  // Set the bit count in Integer to avoid repetition in mightContain().
5851
- this.de = A.fromNumber(this.Te);
5851
+ this.Ee = A.fromNumber(this.Te);
5852
5852
  }
5853
5853
  // Calculate the ith hash value based on the hashed 64bit integers,
5854
5854
  // and calculate its corresponding bit index in the bitmap to be checked.
5855
- Ee(e, t, n) {
5855
+ de(e, t, n) {
5856
5856
  // Calculate hashed value h(i) = h1 + (i * h2).
5857
5857
  let r = e.add(t.multiply(A.fromNumber(n)));
5858
5858
  // Wrap if hash value overflow 64bit.
5859
5859
  return 1 === r.compare(Ie) && (r = new A([ r.getBits(0), r.getBits(1) ], 0)),
5860
- r.modulo(this.de).toNumber();
5860
+ r.modulo(this.Ee).toNumber();
5861
5861
  }
5862
5862
  // Return whether the bit on the given index in the bitmap is set to 1.
5863
5863
  Ae(e) {
@@ -5868,7 +5868,7 @@ class BloomFilter {
5868
5868
  if (0 === this.Te) return !1;
5869
5869
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5870
5870
  for (let e = 0; e < this.hashCount; e++) {
5871
- const t = this.Ee(n, r, e);
5871
+ const t = this.de(n, r, e);
5872
5872
  if (!this.Ae(t)) return !1;
5873
5873
  }
5874
5874
  return !0;
@@ -5881,7 +5881,7 @@ class BloomFilter {
5881
5881
  if (0 === this.Te) return;
5882
5882
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5883
5883
  for (let e = 0; e < this.hashCount; e++) {
5884
- const t = this.Ee(n, r, e);
5884
+ const t = this.de(n, r, e);
5885
5885
  this.Re(t);
5886
5886
  }
5887
5887
  }
@@ -6496,7 +6496,7 @@ const Te = (() => {
6496
6496
  desc: "DESCENDING"
6497
6497
  };
6498
6498
  return e;
6499
- })(), de = (() => {
6499
+ })(), Ee = (() => {
6500
6500
  const e = {
6501
6501
  "<": "LESS_THAN",
6502
6502
  "<=": "LESS_THAN_OR_EQUAL",
@@ -6510,7 +6510,7 @@ const Te = (() => {
6510
6510
  "array-contains-any": "ARRAY_CONTAINS_ANY"
6511
6511
  };
6512
6512
  return e;
6513
- })(), Ee = (() => {
6513
+ })(), de = (() => {
6514
6514
  const e = {
6515
6515
  and: "AND",
6516
6516
  or: "OR"
@@ -7038,11 +7038,11 @@ function __PRIVATE_toDirection(e) {
7038
7038
  }
7039
7039
 
7040
7040
  function __PRIVATE_toOperatorName(e) {
7041
- return de[e];
7041
+ return Ee[e];
7042
7042
  }
7043
7043
 
7044
7044
  function __PRIVATE_toCompositeOperatorName(e) {
7045
- return Ee[e];
7045
+ return de[e];
7046
7046
  }
7047
7047
 
7048
7048
  function __PRIVATE_toFieldPathReference(e) {
@@ -7594,18 +7594,18 @@ class __PRIVATE_FirestoreIndexValueWriter {
7594
7594
  }
7595
7595
  Pt(e, t) {
7596
7596
  if ("nullValue" in e) this.Tt(t, 5); else if ("booleanValue" in e) this.Tt(t, 10),
7597
- t.dt(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.Tt(t, 15), t.dt(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7597
+ t.Et(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.Tt(t, 15), t.Et(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7598
7598
  const n = __PRIVATE_normalizeNumber(e.doubleValue);
7599
7599
  isNaN(n) ? this.Tt(t, 13) : (this.Tt(t, 15), __PRIVATE_isNegativeZero(n) ?
7600
7600
  // -0.0, 0 and 0.0 are all considered the same
7601
- t.dt(0) : t.dt(n));
7601
+ t.Et(0) : t.Et(n));
7602
7602
  } else if ("timestampValue" in e) {
7603
7603
  const n = e.timestampValue;
7604
- this.Tt(t, 20), "string" == typeof n ? t.Et(n) : (t.Et(`${n.seconds || ""}`), t.dt(n.nanos || 0));
7604
+ this.Tt(t, 20), "string" == typeof n ? t.dt(n) : (t.dt(`${n.seconds || ""}`), t.Et(n.nanos || 0));
7605
7605
  } else if ("stringValue" in e) this.At(e.stringValue, t), this.Rt(t); else if ("bytesValue" in e) this.Tt(t, 30),
7606
7606
  t.Vt(__PRIVATE_normalizeByteString(e.bytesValue)), this.Rt(t); else if ("referenceValue" in e) this.ft(e.referenceValue, t); else if ("geoPointValue" in e) {
7607
7607
  const n = e.geoPointValue;
7608
- this.Tt(t, 45), t.dt(n.latitude || 0), t.dt(n.longitude || 0);
7608
+ this.Tt(t, 45), t.Et(n.latitude || 0), t.Et(n.longitude || 0);
7609
7609
  } else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.Tt(t, Number.MAX_SAFE_INTEGER) : (this.gt(e.mapValue, t),
7610
7610
  this.Rt(t)) : "arrayValue" in e ? (this.yt(e.arrayValue, t), this.Rt(t)) : fail();
7611
7611
  }
@@ -7613,7 +7613,7 @@ class __PRIVATE_FirestoreIndexValueWriter {
7613
7613
  this.Tt(t, 25), this.wt(e, t);
7614
7614
  }
7615
7615
  wt(e, t) {
7616
- t.Et(e);
7616
+ t.dt(e);
7617
7617
  }
7618
7618
  gt(e, t) {
7619
7619
  const n = e.fields || {};
@@ -7632,13 +7632,13 @@ class __PRIVATE_FirestoreIndexValueWriter {
7632
7632
  }));
7633
7633
  }
7634
7634
  Tt(e, t) {
7635
- e.dt(t);
7635
+ e.Et(t);
7636
7636
  }
7637
7637
  Rt(e) {
7638
7638
  // While the SDK does not implement truncation, the truncation marker is
7639
7639
  // used to terminate all variable length values (which are strings, bytes,
7640
7640
  // references, arrays and maps).
7641
- e.dt(2);
7641
+ e.Et(2);
7642
7642
  }
7643
7643
  }
7644
7644
 
@@ -7825,10 +7825,10 @@ class __PRIVATE_AscendingIndexByteEncoder {
7825
7825
  Vt(e) {
7826
7826
  this.Wt.bt(e);
7827
7827
  }
7828
- Et(e) {
7828
+ dt(e) {
7829
7829
  this.Wt.xt(e);
7830
7830
  }
7831
- dt(e) {
7831
+ Et(e) {
7832
7832
  this.Wt.Nt(e);
7833
7833
  }
7834
7834
  It() {
@@ -7843,10 +7843,10 @@ class __PRIVATE_DescendingIndexByteEncoder {
7843
7843
  Vt(e) {
7844
7844
  this.Wt.vt(e);
7845
7845
  }
7846
- Et(e) {
7846
+ dt(e) {
7847
7847
  this.Wt.Ot(e);
7848
7848
  }
7849
- dt(e) {
7849
+ Et(e) {
7850
7850
  this.Wt.kt(e);
7851
7851
  }
7852
7852
  It() {
@@ -8577,7 +8577,7 @@ class __PRIVATE_IndexedDbIndexManager {
8577
8577
  // combined with the values from the query bounds.
8578
8578
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8579
8579
  for (let c = 0; c < _; ++c) {
8580
- const _ = t ? this.In(t[c / a]) : Ae, l = this.Tn(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8580
+ const _ = t ? this.In(t[c / a]) : Ae, l = this.Tn(e, _, n[c % a], r), h = this.En(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8581
8581
  /* inclusive= */ !0)));
8582
8582
  u.push(...this.createRange(l, h, P));
8583
8583
  }
@@ -8587,7 +8587,7 @@ class __PRIVATE_IndexedDbIndexManager {
8587
8587
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8588
8588
  return r ? i : i.Ht();
8589
8589
  }
8590
- /** Generates the upper bound for `arrayValue` and `directionalValue`. */ dn(e, t, n, r) {
8590
+ /** Generates the upper bound for `arrayValue` and `directionalValue`. */ En(e, t, n, r) {
8591
8591
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8592
8592
  return r ? i.Ht() : i;
8593
8593
  }
@@ -8635,7 +8635,7 @@ class __PRIVATE_IndexedDbIndexManager {
8635
8635
  * Returns the byte encoded form of the directional values in the field index.
8636
8636
  * Returns `null` if the document does not have all fields specified in the
8637
8637
  * index.
8638
- */ En(e, t) {
8638
+ */ dn(e, t) {
8639
8639
  const n = new __PRIVATE_IndexByteEncoder;
8640
8640
  for (const r of __PRIVATE_fieldIndexGetDirectionalSegments(e)) {
8641
8641
  const e = t.data.field(r.fieldPath);
@@ -8768,7 +8768,7 @@ class __PRIVATE_IndexedDbIndexManager {
8768
8768
  }
8769
8769
  /** Creates the index entries for the given document. */ pn(e, t) {
8770
8770
  let n = new SortedSet(__PRIVATE_indexEntryComparator);
8771
- const r = this.En(t, e);
8771
+ const r = this.dn(t, e);
8772
8772
  if (null == r) return n;
8773
8773
  const i = __PRIVATE_fieldIndexGetArraySegment(t);
8774
8774
  if (null != i) {
@@ -10702,14 +10702,14 @@ class OverlayedDocument {
10702
10702
  const n = new __PRIVATE_DocReference(e, t);
10703
10703
  this.hr = this.hr.add(n), this.Ir = this.Ir.add(n);
10704
10704
  }
10705
- /** Add references to the given document keys for the given ID. */ dr(e, t) {
10705
+ /** Add references to the given document keys for the given ID. */ Er(e, t) {
10706
10706
  e.forEach((e => this.addReference(e, t)));
10707
10707
  }
10708
10708
  /**
10709
10709
  * Removes a reference to the given document key for the given
10710
10710
  * ID.
10711
10711
  */ removeReference(e, t) {
10712
- this.Er(new __PRIVATE_DocReference(e, t));
10712
+ this.dr(new __PRIVATE_DocReference(e, t));
10713
10713
  }
10714
10714
  Ar(e, t) {
10715
10715
  e.forEach((e => this.removeReference(e, t)));
@@ -10720,13 +10720,13 @@ class OverlayedDocument {
10720
10720
  */ Rr(e) {
10721
10721
  const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1), i = [];
10722
10722
  return this.Ir.forEachInRange([ n, r ], (e => {
10723
- this.Er(e), i.push(e.key);
10723
+ this.dr(e), i.push(e.key);
10724
10724
  })), i;
10725
10725
  }
10726
10726
  Vr() {
10727
- this.hr.forEach((e => this.Er(e)));
10727
+ this.hr.forEach((e => this.dr(e)));
10728
10728
  }
10729
- Er(e) {
10729
+ dr(e) {
10730
10730
  this.hr = this.hr.delete(e), this.Ir = this.Ir.delete(e);
10731
10731
  }
10732
10732
  mr(e) {
@@ -11128,7 +11128,7 @@ class __PRIVATE_MemoryRemoteDocumentChangeBuffer extends RemoteDocumentChangeBuf
11128
11128
  return PersistencePromise.resolve(n);
11129
11129
  }
11130
11130
  addMatchingKeys(e, t, n) {
11131
- return this.Or.dr(t, n), PersistencePromise.resolve();
11131
+ return this.Or.Er(t, n), PersistencePromise.resolve();
11132
11132
  }
11133
11133
  removeMatchingKeys(e, t, n) {
11134
11134
  this.Or.Ar(t, n);
@@ -11747,7 +11747,7 @@ class __PRIVATE_IndexedDbPersistence {
11747
11747
  this.serializer = new __PRIVATE_LocalSerializer(_), this.Ti = new __PRIVATE_SimpleDb(this.Ii, this.ai, new __PRIVATE_SchemaConverter(this.serializer)),
11748
11748
  this.qr = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
11749
11749
  this.remoteDocumentCache = __PRIVATE_newIndexedDbRemoteDocumentCache(this.serializer),
11750
- this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.di = this.window.localStorage : (this.di = null,
11750
+ this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.Ei = this.window.localStorage : (this.Ei = null,
11751
11751
  !1 === u && __PRIVATE_logError("IndexedDbPersistence", "LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."));
11752
11752
  }
11753
11753
  /**
@@ -11758,7 +11758,7 @@ class __PRIVATE_IndexedDbPersistence {
11758
11758
  // NOTE: This is expected to fail sometimes (in the case of another tab
11759
11759
  // already having the persistence lock), so it's the first thing we should
11760
11760
  // do.
11761
- return this.Ei().then((() => {
11761
+ return this.di().then((() => {
11762
11762
  if (!this.isPrimary && !this.allowTabSynchronization)
11763
11763
  // Fail `start()` if `synchronizeTabs` is disabled and we cannot
11764
11764
  // obtain the primary lease.
@@ -11802,7 +11802,7 @@ class __PRIVATE_IndexedDbPersistence {
11802
11802
  // Schedule a primary lease refresh for immediate execution. The eventual
11803
11803
  // lease update will be propagated via `primaryStateListener`.
11804
11804
  this.si.enqueueAndForget((async () => {
11805
- this.started && await this.Ei();
11805
+ this.started && await this.di();
11806
11806
  })));
11807
11807
  }
11808
11808
  /**
@@ -11810,7 +11810,7 @@ class __PRIVATE_IndexedDbPersistence {
11810
11810
  * extend the primary lease for the local client. Asynchronously notifies the
11811
11811
  * primary state listener if the client either newly obtained or released its
11812
11812
  * primary lease.
11813
- */ Ei() {
11813
+ */ di() {
11814
11814
  return this.runTransaction("updateClientMetadataAndTryBecomePrimary", "readwrite", (e => __PRIVATE_clientMetadataStore(e).put({
11815
11815
  clientId: this.clientId,
11816
11816
  updateTimeMs: Date.now(),
@@ -11859,14 +11859,14 @@ class __PRIVATE_IndexedDbPersistence {
11859
11859
  // Ideally we'd delete the IndexedDb and LocalStorage zombie entries for
11860
11860
  // the client atomically, but we can't. So we opt to delete the IndexedDb
11861
11861
  // entries first to avoid potentially reviving a zombied client.
11862
- if (this.di) for (const t of e) this.di.removeItem(this.vi(t.clientId));
11862
+ if (this.Ei) for (const t of e) this.Ei.removeItem(this.vi(t.clientId));
11863
11863
  }
11864
11864
  }
11865
11865
  /**
11866
11866
  * Schedules a recurring timer to update the client metadata and to either
11867
11867
  * extend or acquire the primary lease if the client is eligible.
11868
11868
  */ Vi() {
11869
- this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.Ei().then((() => this.bi())).then((() => this.Vi()))));
11869
+ this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.di().then((() => this.bi())).then((() => this.Vi()))));
11870
11870
  }
11871
11871
  /** Checks whether `client` is the local client. */ wi(e) {
11872
11872
  return !!e && e.ownerId === this.clientId;
@@ -12025,7 +12025,7 @@ class __PRIVATE_IndexedDbPersistence {
12025
12025
  Ai() {
12026
12026
  null !== this.document && "function" == typeof this.document.addEventListener && (this.ci = () => {
12027
12027
  this.si.enqueueAndForget((() => (this.inForeground = "visible" === this.document.visibilityState,
12028
- this.Ei())));
12028
+ this.di())));
12029
12029
  }, this.document.addEventListener("visibilitychange", this.ci), this.inForeground = "visible" === this.document.visibilityState);
12030
12030
  }
12031
12031
  xi() {
@@ -12066,7 +12066,7 @@ class __PRIVATE_IndexedDbPersistence {
12066
12066
  */ Fi(e) {
12067
12067
  var t;
12068
12068
  try {
12069
- const n = null !== (null === (t = this.di) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12069
+ const n = null !== (null === (t = this.Ei) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12070
12070
  return __PRIVATE_logDebug("IndexedDbPersistence", `Client '${e}' ${n ? "is" : "is not"} zombied in LocalStorage`),
12071
12071
  n;
12072
12072
  } catch (e) {
@@ -12079,16 +12079,16 @@ class __PRIVATE_IndexedDbPersistence {
12079
12079
  * Record client as zombied (a client that had its tab closed). Zombied
12080
12080
  * clients are ignored during primary tab selection.
12081
12081
  */ Mi() {
12082
- if (this.di) try {
12083
- this.di.setItem(this.vi(this.clientId), String(Date.now()));
12082
+ if (this.Ei) try {
12083
+ this.Ei.setItem(this.vi(this.clientId), String(Date.now()));
12084
12084
  } catch (e) {
12085
12085
  // Gracefully handle if LocalStorage isn't available / working.
12086
12086
  __PRIVATE_logError("Failed to set zombie client id.", e);
12087
12087
  }
12088
12088
  }
12089
12089
  /** Removes the zombied client entry if it exists. */ Ni() {
12090
- if (this.di) try {
12091
- this.di.removeItem(this.vi(this.clientId));
12090
+ if (this.Ei) try {
12091
+ this.Ei.removeItem(this.vi(this.clientId));
12092
12092
  } catch (e) {
12093
12093
  // Ignore
12094
12094
  }
@@ -12902,7 +12902,7 @@ class __PRIVATE_MutationMetadata {
12902
12902
  s && (i = new FirestoreError(r.error.code, r.error.message))), s ? new __PRIVATE_MutationMetadata(e, t, r.state, i) : (__PRIVATE_logError("SharedClientState", `Failed to parse mutation state for ID '${t}': ${n}`),
12903
12903
  null);
12904
12904
  }
12905
- ds() {
12905
+ Es() {
12906
12906
  const e = {
12907
12907
  state: this.state,
12908
12908
  updateTimeMs: Date.now()
@@ -12933,7 +12933,7 @@ class __PRIVATE_QueryTargetMetadata {
12933
12933
  i && (r = new FirestoreError(n.error.code, n.error.message))), i ? new __PRIVATE_QueryTargetMetadata(e, n.state, r) : (__PRIVATE_logError("SharedClientState", `Failed to parse target state for ID '${e}': ${t}`),
12934
12934
  null);
12935
12935
  }
12936
- ds() {
12936
+ Es() {
12937
12937
  const e = {
12938
12938
  state: this.state,
12939
12939
  updateTimeMs: Date.now()
@@ -12998,7 +12998,7 @@ class __PRIVATE_LocalClientState {
12998
12998
  constructor() {
12999
12999
  this.activeTargetIds = __PRIVATE_targetIdSet();
13000
13000
  }
13001
- Es(e) {
13001
+ ds(e) {
13002
13002
  this.activeTargetIds = this.activeTargetIds.add(e);
13003
13003
  }
13004
13004
  As(e) {
@@ -13007,7 +13007,7 @@ class __PRIVATE_LocalClientState {
13007
13007
  /**
13008
13008
  * Converts this entry into a JSON-encoded format we can use for WebStorage.
13009
13009
  * Does not encode `clientId` as it is part of the key in WebStorage.
13010
- */ ds() {
13010
+ */ Es() {
13011
13011
  const e = {
13012
13012
  activeTargetIds: this.activeTargetIds.toArray(),
13013
13013
  updateTimeMs: Date.now()
@@ -13142,7 +13142,7 @@ class __PRIVATE_LocalClientState {
13142
13142
  r && (t = r.state);
13143
13143
  }
13144
13144
  }
13145
- return this.Ls.Es(e), this.Fs(), t;
13145
+ return this.Ls.ds(e), this.Fs(), t;
13146
13146
  }
13147
13147
  removeLocalQueryTarget(e) {
13148
13148
  this.Ls.As(e), this.Fs();
@@ -13244,11 +13244,11 @@ class __PRIVATE_LocalClientState {
13244
13244
  return this.gs.get(this.Rs);
13245
13245
  }
13246
13246
  Fs() {
13247
- this.setItem(this.ys, this.Ls.ds());
13247
+ this.setItem(this.ys, this.Ls.Es());
13248
13248
  }
13249
13249
  Ns(e, t, n) {
13250
13250
  const r = new __PRIVATE_MutationMetadata(this.currentUser, e, t, n), i = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
13251
- this.setItem(i, r.ds());
13251
+ this.setItem(i, r.Es());
13252
13252
  }
13253
13253
  Bs(e) {
13254
13254
  const t = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
@@ -13263,7 +13263,7 @@ class __PRIVATE_LocalClientState {
13263
13263
  }
13264
13264
  ks(e, t, n) {
13265
13265
  const r = createWebStorageQueryTargetMetadataKey(this.persistenceKey, e), i = new __PRIVATE_QueryTargetMetadata(e, t, n);
13266
- this.setItem(r, i.ds());
13266
+ this.setItem(r, i.Es());
13267
13267
  }
13268
13268
  Qs(e) {
13269
13269
  const t = JSON.stringify(Array.from(e));
@@ -13351,7 +13351,7 @@ class __PRIVATE_MemorySharedClientState {
13351
13351
  // No op.
13352
13352
  }
13353
13353
  addLocalQueryTarget(e) {
13354
- return this.eo.Es(e), this.no[e] || "not-current";
13354
+ return this.eo.ds(e), this.no[e] || "not-current";
13355
13355
  }
13356
13356
  updateQueryState(e, t, n) {
13357
13357
  this.no[e] = t;
@@ -14359,7 +14359,7 @@ class __PRIVATE_PersistentStream {
14359
14359
  * Sends an initial streamToken to the server, performing the handshake
14360
14360
  * required to make the StreamingWrite RPC work. Subsequent
14361
14361
  * calls should wait until onHandshakeComplete was called.
14362
- */ d_() {
14362
+ */ E_() {
14363
14363
  // TODO(dimond): Support stream resumption. We intentionally do not set the
14364
14364
  // stream token on the handshake, ignoring any stream token we might have.
14365
14365
  const e = {};
@@ -14402,10 +14402,10 @@ class __PRIVATE_PersistentStream {
14402
14402
  class __PRIVATE_DatastoreImpl extends class Datastore {} {
14403
14403
  constructor(e, t, n, r) {
14404
14404
  super(), this.authCredentials = e, this.appCheckCredentials = t, this.connection = n,
14405
- this.serializer = r, this.E_ = !1;
14405
+ this.serializer = r, this.d_ = !1;
14406
14406
  }
14407
14407
  A_() {
14408
- if (this.E_) throw new FirestoreError(F.FAILED_PRECONDITION, "The client has already been terminated.");
14408
+ if (this.d_) throw new FirestoreError(F.FAILED_PRECONDITION, "The client has already been terminated.");
14409
14409
  }
14410
14410
  /** Invokes the provided RPC with auth and AppCheck tokens. */ wo(e, t, n) {
14411
14411
  return this.A_(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([r, i]) => this.connection.wo(e, t, n, r, i))).catch((e => {
@@ -14420,7 +14420,7 @@ class __PRIVATE_DatastoreImpl extends class Datastore {} {
14420
14420
  }));
14421
14421
  }
14422
14422
  terminate() {
14423
- this.E_ = !0;
14423
+ this.d_ = !0;
14424
14424
  }
14425
14425
  }
14426
14426
 
@@ -14880,7 +14880,7 @@ function __PRIVATE_startWriteStream(e) {
14880
14880
  }
14881
14881
 
14882
14882
  async function __PRIVATE_onWriteStreamOpen(e) {
14883
- __PRIVATE_ensureWriteStream(e).d_();
14883
+ __PRIVATE_ensureWriteStream(e).E_();
14884
14884
  }
14885
14885
 
14886
14886
  async function __PRIVATE_onWriteHandshakeComplete(e) {
@@ -15807,7 +15807,7 @@ class __PRIVATE_RemovedLimboDocument {
15807
15807
  }
15808
15808
  /**
15809
15809
  * Returns whether the doc for the given key should be in limbo.
15810
- */ da(e) {
15810
+ */ Ea(e) {
15811
15811
  // If the remote end says it's part of this query, it's not in limbo.
15812
15812
  return !this.ia.has(e) && (
15813
15813
  // The local store doesn't think it's a result, so it shouldn't be in limbo.
@@ -15827,7 +15827,7 @@ class __PRIVATE_RemovedLimboDocument {
15827
15827
  // updating many documents.
15828
15828
  const e = this.oa;
15829
15829
  this.oa = __PRIVATE_documentKeySet(), this.aa.forEach((e => {
15830
- this.da(e.key) && (this.oa = this.oa.add(e.key));
15830
+ this.Ea(e.key) && (this.oa = this.oa.add(e.key));
15831
15831
  }));
15832
15832
  // Diff the new limbo docs with the old limbo docs.
15833
15833
  const t = [];
@@ -15857,7 +15857,7 @@ class __PRIVATE_RemovedLimboDocument {
15857
15857
  * @returns The ViewChange that resulted from this synchronization.
15858
15858
  */
15859
15859
  // PORTING NOTE: Multi-tab only.
15860
- Ea(e) {
15860
+ da(e) {
15861
15861
  this.ia = e.ls, this.oa = __PRIVATE_documentKeySet();
15862
15862
  const t = this.ca(e.documents);
15863
15863
  return this.applyChanges(t, /*updateLimboDocuments=*/ !0);
@@ -16412,7 +16412,7 @@ function __PRIVATE_syncEngineGetRemoteKeysForTarget(e, t) {
16412
16412
  * from persistence.
16413
16413
  */ async function __PRIVATE_synchronizeViewAndComputeSnapshot(e, t) {
16414
16414
  const n = __PRIVATE_debugCast(e), r = await __PRIVATE_localStoreExecuteQuery(n.localStore, t.query,
16415
- /* usePreviousResults= */ !0), i = t.view.Ea(r);
16415
+ /* usePreviousResults= */ !0), i = t.view.da(r);
16416
16416
  return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.Ta),
16417
16417
  i;
16418
16418
  }
@@ -18627,7 +18627,7 @@ class LoadBundleTask {
18627
18627
  const e = r.getImmediate({
18628
18628
  identifier: n
18629
18629
  }), i = r.getOptions(n);
18630
- if (d(i, t)) return e;
18630
+ if (E(i, t)) return e;
18631
18631
  throw new FirestoreError(F.FAILED_PRECONDITION, "initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.");
18632
18632
  }
18633
18633
  if (void 0 !== t.cacheSizeBytes && void 0 !== t.localCache) throw new FirestoreError(F.INVALID_ARGUMENT, "cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");
@@ -18643,7 +18643,7 @@ function getFirestore(t, n) {
18643
18643
  identifier: i
18644
18644
  });
18645
18645
  if (!s._initialized) {
18646
- const e = E("firestore");
18646
+ const e = d("firestore");
18647
18647
  e && connectFirestoreEmulator(s, ...e);
18648
18648
  }
18649
18649
  return s;
@@ -19281,11 +19281,11 @@ function __PRIVATE_isWrite(e) {
19281
19281
  /** Returns a new context with the specified settings overwritten. */ Tu(e) {
19282
19282
  return new __PRIVATE_ParseContextImpl(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
19283
19283
  }
19284
- du(e) {
19284
+ Eu(e) {
19285
19285
  var t;
19286
19286
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19287
19287
  path: n,
19288
- Eu: !1
19288
+ du: !1
19289
19289
  });
19290
19290
  return r.Au(e), r;
19291
19291
  }
@@ -19293,7 +19293,7 @@ function __PRIVATE_isWrite(e) {
19293
19293
  var t;
19294
19294
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19295
19295
  path: n,
19296
- Eu: !1
19296
+ du: !1
19297
19297
  });
19298
19298
  return r.Pu(), r;
19299
19299
  }
@@ -19302,7 +19302,7 @@ function __PRIVATE_isWrite(e) {
19302
19302
  // undefined.
19303
19303
  return this.Tu({
19304
19304
  path: void 0,
19305
- Eu: !0
19305
+ du: !0
19306
19306
  });
19307
19307
  }
19308
19308
  mu(e) {
@@ -19335,7 +19335,7 @@ function __PRIVATE_isWrite(e) {
19335
19335
  methodName: t,
19336
19336
  gu: n,
19337
19337
  path: FieldPath$1.emptyPath(),
19338
- Eu: !1,
19338
+ du: !1,
19339
19339
  fu: r
19340
19340
  }, this.databaseId, this.serializer, this.ignoreUndefinedProperties);
19341
19341
  }
@@ -19395,7 +19395,7 @@ class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19395
19395
  Iu: 3 /* UserDataSource.Argument */ ,
19396
19396
  gu: t.settings.gu,
19397
19397
  methodName: e._methodName,
19398
- Eu: n
19398
+ du: n
19399
19399
  }, t.databaseId, t.serializer, t.ignoreUndefinedProperties);
19400
19400
  }
19401
19401
 
@@ -19560,7 +19560,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19560
19560
  // the set of values to be included for the IN query) that may directly
19561
19561
  // contain additional arrays (each representing an individual field
19562
19562
  // value), so we disable this validation.
19563
- if (t.settings.Eu && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19563
+ if (t.settings.du && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19564
19564
  return function __PRIVATE_parseArray(e, t) {
19565
19565
  const n = [];
19566
19566
  let r = 0;
@@ -19639,7 +19639,7 @@ function __PRIVATE_parseObject(e, t) {
19639
19639
  // If we encounter an empty object, we explicitly add it to the update
19640
19640
  // mask to ensure that the server creates a map entry.
19641
19641
  t.path && t.path.length > 0 && t.fieldMask.push(t.path) : forEach(e, ((e, r) => {
19642
- const i = __PRIVATE_parseData(r, t.du(e));
19642
+ const i = __PRIVATE_parseData(r, t.Eu(e));
19643
19643
  null != i && (n[e] = i);
19644
19644
  })), {
19645
19645
  mapValue: {
@@ -20506,7 +20506,7 @@ class __PRIVATE_LiteUserDataWriter extends AbstractUserDataWriter {
20506
20506
  * @returns `true` if the objects are "equal", as defined above, or `false`
20507
20507
  * otherwise.
20508
20508
  */ function aggregateQuerySnapshotEqual(e, t) {
20509
- return queryEqual(e.query, t.query) && d(e.data(), t.data());
20509
+ return queryEqual(e.query, t.query) && E(e.data(), t.data());
20510
20510
  }
20511
20511
 
20512
20512
  /**
@@ -21810,9 +21810,9 @@ let Ce = null;
21810
21810
  return r = Object.assign({
21811
21811
  useFetchStreams: t
21812
21812
  }, r), s._setSettings(r), s;
21813
- }), "PUBLIC").setMultipleInstances(!0)), r(D, "4.3.2-canary.bebecdaad", e),
21813
+ }), "PUBLIC").setMultipleInstances(!0)), r(D, "4.3.2-canary.ebc694a33", e),
21814
21814
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21815
- r(D, "4.3.2-canary.bebecdaad", "esm2017");
21815
+ r(D, "4.3.2-canary.ebc694a33", "esm2017");
21816
21816
  }("rn", /* useFetchStreams= */ !1);
21817
21817
 
21818
21818
  export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, ye as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, PersistentCacheIndexManager, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, SnapshotMetadata, Timestamp, Transaction, WriteBatch, __PRIVATE_AutoId as _AutoId, ByteString as _ByteString, DatabaseId as _DatabaseId, DocumentKey as _DocumentKey, __PRIVATE_EmptyAppCheckTokenProvider as _EmptyAppCheckTokenProvider, __PRIVATE_EmptyAuthCredentialsProvider as _EmptyAuthCredentialsProvider, FieldPath$1 as _FieldPath, TestingHooks as _TestingHooks, __PRIVATE_cast as _cast, __PRIVATE_debugAssert as _debugAssert, __PRIVATE_isBase64Available as _isBase64Available, __PRIVATE_logWarn as _logWarn, __PRIVATE_validateIsNotUsedTogether as _validateIsNotUsedTogether, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, clearIndexedDbPersistence, collection, collectionGroup, connectFirestoreEmulator, count, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, memoryEagerGarbageCollector, memoryLocalCache, memoryLruGarbageCollector, namedQuery, onSnapshot, onSnapshotsInSync, or, orderBy, persistentLocalCache, persistentMultipleTabManager, persistentSingleTabManager, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setIndexConfiguration, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, waitForPendingWrites, where, writeBatch };
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
65
  */
66
- let d = "10.6.0-canary.bebecdaad";
66
+ let d = "10.6.0-canary.ebc694a33";
67
67
 
68
68
  /**
69
69
  * @license
@@ -7195,7 +7195,7 @@ class Transaction {
7195
7195
  return r && i._setSettings(r), i;
7196
7196
  }), "PUBLIC").setMultipleInstances(!0)),
7197
7197
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7198
- registerVersion("firestore-lite", "4.3.2-canary.bebecdaad", ""), registerVersion("firestore-lite", "4.3.2-canary.bebecdaad", "esm2017");
7198
+ registerVersion("firestore-lite", "4.3.2-canary.ebc694a33", ""), registerVersion("firestore-lite", "4.3.2-canary.ebc694a33", "esm2017");
7199
7199
  }();
7200
7200
 
7201
7201
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
@@ -67,7 +67,7 @@ v.MOCK_USER = new v("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- var g = "10.6.0-canary.bebecdaad", w = new l("@firebase/firestore");
70
+ var g = "10.6.0-canary.ebc694a33", w = new l("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -6689,7 +6689,7 @@ hi = "".concat(i, "_lite"), g = hi, o(new c("firestore/lite", (function(t, e) {
6689
6689
  return r && o._setSettings(r), o;
6690
6690
  }), "PUBLIC").setMultipleInstances(!0)),
6691
6691
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
6692
- a("firestore-lite", "4.3.2-canary.bebecdaad", ""), a("firestore-lite", "4.3.2-canary.bebecdaad", "esm5");
6692
+ a("firestore-lite", "4.3.2-canary.ebc694a33", ""), a("firestore-lite", "4.3.2-canary.ebc694a33", "esm5");
6693
6693
 
6694
6694
  export { En as AggregateField, Sn as AggregateQuerySnapshot, Dn as Bytes, An as CollectionReference, In as DocumentReference, lr as DocumentSnapshot, Rn as FieldPath, xn as FieldValue, gn as Firestore, B as FirestoreError, Cn as GeoPoint, kn as Query, br as QueryCompositeFilterConstraint, mr as QueryConstraint, fr as QueryDocumentSnapshot, Or as QueryEndAtConstraint, gr as QueryFieldFilterConstraint, kr as QueryLimitConstraint, Er as QueryOrderByConstraint, hr as QuerySnapshot, Pr as QueryStartAtConstraint, Dt as Timestamp, yi as Transaction, oi as WriteBatch, Qr as addDoc, Zr as aggregateFieldEqual, $r as aggregateQuerySnapshotEqual, Tr as and, ri as arrayRemove, ni as arrayUnion, Jr as average, Pn as collection, Vn as collectionGroup, _n as connectFirestoreEmulator, Xr as count, Gr as deleteDoc, ti as deleteField, Fn as doc, qn as documentId, Dr as endAt, Nr as endBefore, Yr as getAggregate, Wr as getCount, Ur as getDoc, Br as getDocs, bn as getFirestore, ii as increment, wn as initializeFirestore, Ir as limit, Ar as limitToLast, _r as or, Sr as orderBy, vr as query, Nn as queryEqual, On as refEqual, mi as runTransaction, ei as serverTimestamp, zr as setDoc, b as setLogLevel, pr as snapshotEqual, Fr as startAfter, Vr as startAt, Hr as sum, Tn as terminate, Kr as updateDoc, wr as where, ui as writeBatch };
6695
6695
  //# sourceMappingURL=index.browser.esm5.js.map
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
65
  */
66
- let d = "10.6.0-canary.bebecdaad";
66
+ let d = "10.6.0-canary.ebc694a33";
67
67
 
68
68
  /**
69
69
  * @license
@@ -7195,7 +7195,7 @@ class Transaction {
7195
7195
  return r && i._setSettings(r), i;
7196
7196
  }), "PUBLIC").setMultipleInstances(!0)),
7197
7197
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7198
- registerVersion("firestore-lite", "4.3.2-canary.bebecdaad", ""), registerVersion("firestore-lite", "4.3.2-canary.bebecdaad", "cjs2017");
7198
+ registerVersion("firestore-lite", "4.3.2-canary.ebc694a33", ""), registerVersion("firestore-lite", "4.3.2-canary.ebc694a33", "cjs2017");
7199
7199
  }();
7200
7200
 
7201
7201
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
@@ -10,7 +10,7 @@ var util = require('@firebase/util');
10
10
  var undici = require('undici');
11
11
  var crypto = require('crypto');
12
12
 
13
- const version$1 = "4.3.2-canary.bebecdaad";
13
+ const version$1 = "4.3.2-canary.ebc694a33";
14
14
 
15
15
  /**
16
16
  * @license
@@ -63,7 +63,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
63
63
  User.FIRST_PARTY = new User('first-party-uid');
64
64
  User.MOCK_USER = new User('mock-user');
65
65
 
66
- const version = "10.6.0-canary.bebecdaad";
66
+ const version = "10.6.0-canary.ebc694a33";
67
67
 
68
68
  /**
69
69
  * @license