@firebase/firestore 4.1.2-canary.5f6304d39 → 4.1.2-canary.60e4a07d2

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.
Files changed (58) hide show
  1. package/dist/firestore/src/api/persistent_cache_index_manager.d.ts +10 -0
  2. package/dist/firestore/src/api.d.ts +1 -1
  3. package/dist/firestore/src/core/firestore_client.d.ts +1 -0
  4. package/dist/firestore/src/global_index.d.ts +14 -2
  5. package/dist/firestore/src/local/index_manager.d.ts +2 -0
  6. package/dist/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
  7. package/dist/firestore/src/local/local_store_impl.d.ts +1 -0
  8. package/dist/firestore/src/local/memory_index_manager.d.ts +1 -0
  9. package/dist/firestore/test/unit/local/test_index_manager.d.ts +1 -0
  10. package/dist/index.cjs.js +103 -74
  11. package/dist/index.cjs.js.map +1 -1
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.esm2017.js +103 -75
  14. package/dist/index.esm2017.js.map +1 -1
  15. package/dist/index.esm5.js +127 -80
  16. package/dist/index.esm5.js.map +1 -1
  17. package/dist/index.node.cjs.js +42 -2
  18. package/dist/index.node.cjs.js.map +1 -1
  19. package/dist/index.node.mjs +42 -3
  20. package/dist/index.node.mjs.map +1 -1
  21. package/dist/index.rn.js +120 -92
  22. package/dist/index.rn.js.map +1 -1
  23. package/dist/internal.d.ts +13 -0
  24. package/dist/lite/firestore/src/api/persistent_cache_index_manager.d.ts +10 -0
  25. package/dist/lite/firestore/src/api.d.ts +1 -1
  26. package/dist/lite/firestore/src/core/firestore_client.d.ts +1 -0
  27. package/dist/lite/firestore/src/local/index_manager.d.ts +2 -0
  28. package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
  29. package/dist/lite/firestore/src/local/local_store_impl.d.ts +1 -0
  30. package/dist/lite/firestore/src/local/memory_index_manager.d.ts +1 -0
  31. package/dist/lite/firestore/test/unit/local/test_index_manager.d.ts +1 -0
  32. package/dist/lite/index.browser.esm2017.js +2 -2
  33. package/dist/lite/index.browser.esm5.js +2 -2
  34. package/dist/lite/index.cjs.js +2 -2
  35. package/dist/lite/index.node.cjs.js +2 -2
  36. package/dist/lite/index.node.mjs +2 -2
  37. package/dist/lite/index.rn.esm2017.js +2 -2
  38. package/dist/lite/internal.d.ts +2 -0
  39. package/dist/lite/packages/firestore/src/api/persistent_cache_index_manager.d.ts +10 -0
  40. package/dist/lite/packages/firestore/src/api.d.ts +1 -1
  41. package/dist/lite/packages/firestore/src/core/firestore_client.d.ts +1 -0
  42. package/dist/lite/packages/firestore/src/local/index_manager.d.ts +2 -0
  43. package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
  44. package/dist/lite/packages/firestore/src/local/local_store_impl.d.ts +1 -0
  45. package/dist/lite/packages/firestore/src/local/memory_index_manager.d.ts +1 -0
  46. package/dist/lite/packages/firestore/test/unit/local/test_index_manager.d.ts +1 -0
  47. package/dist/lite/private.d.ts +2 -0
  48. package/dist/packages/firestore/dist/index.esm2017.d.ts +18 -7
  49. package/dist/packages/firestore/src/api/persistent_cache_index_manager.d.ts +10 -0
  50. package/dist/packages/firestore/src/api.d.ts +1 -1
  51. package/dist/packages/firestore/src/core/firestore_client.d.ts +1 -0
  52. package/dist/packages/firestore/src/local/index_manager.d.ts +2 -0
  53. package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +1 -0
  54. package/dist/packages/firestore/src/local/local_store_impl.d.ts +1 -0
  55. package/dist/packages/firestore/src/local/memory_index_manager.d.ts +1 -0
  56. package/dist/packages/firestore/test/unit/local/test_index_manager.d.ts +1 -0
  57. package/dist/private.d.ts +4 -0
  58. package/package.json +9 -9
package/dist/index.d.ts CHANGED
@@ -319,6 +319,7 @@ export declare class CollectionReference<AppModelType = DocumentData, DbModelTyp
319
319
  export declare function connectFirestoreEmulator(firestore: Firestore, host: string, port: number, options?: {
320
320
  mockUserToken?: EmulatorMockTokenOptions | string;
321
321
  }): void;
322
+ /* Excluded from this release type: deleteAllPersistentCacheIndexes */
322
323
  /**
323
324
  * Deletes the document referred to by the specified `DocumentReference`.
324
325
  *
@@ -66,7 +66,7 @@ User.MOCK_USER = new User("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let S = "10.3.0-canary.5f6304d39";
69
+ let S = "10.3.0-canary.60e4a07d2";
70
70
 
71
71
  /**
72
72
  * @license
@@ -4455,7 +4455,7 @@ class __PRIVATE_QueryImpl {
4455
4455
  // aggregate queries. Unlike targets for non-aggregate queries,
4456
4456
  // aggregate query targets do not contain normalized order-bys, they only
4457
4457
  // contain explicit order-bys.
4458
- this.Te = null, this.startAt, this.endAt;
4458
+ this.de = null, this.startAt, this.endAt;
4459
4459
  }
4460
4460
  }
4461
4461
 
@@ -4923,8 +4923,8 @@ function __PRIVATE_targetIdSet() {
4923
4923
  // PORTING NOTE: Since JavaScript's integer arithmetic is limited to 53 bit
4924
4924
  // precision and resolves overflows by reducing precision, we do not
4925
4925
  // manually cap overflows at 2^63.
4926
- const n = __PRIVATE_computeTransformOperationBaseValue(e, t), r = asNumber(n) + asNumber(e.de);
4927
- return isInteger(n) && isInteger(e.de) ? __PRIVATE_toInteger(r) : __PRIVATE_toDouble(e.serializer, r);
4926
+ const n = __PRIVATE_computeTransformOperationBaseValue(e, t), r = asNumber(n) + asNumber(e.Te);
4927
+ return isInteger(n) && isInteger(e.Te) ? __PRIVATE_toInteger(r) : __PRIVATE_toDouble(e.serializer, r);
4928
4928
  }(e, t);
4929
4929
  }
4930
4930
 
@@ -5006,7 +5006,7 @@ function __PRIVATE_applyArrayRemoveTransformOperation(e, t) {
5006
5006
  * arithmetic is used and precision loss can occur for values greater than 2^53.
5007
5007
  */ class __PRIVATE_NumericIncrementTransformOperation extends TransformOperation {
5008
5008
  constructor(e, t) {
5009
- super(), this.serializer = e, this.de = t;
5009
+ super(), this.serializer = e, this.Te = t;
5010
5010
  }
5011
5011
  }
5012
5012
 
@@ -5042,7 +5042,7 @@ function __PRIVATE_coercedFieldValuesArray(e) {
5042
5042
 
5043
5043
  function __PRIVATE_fieldTransformEquals(e, t) {
5044
5044
  return e.field.isEqual(t.field) && function __PRIVATE_transformOperationEquals(e, t) {
5045
- return e instanceof __PRIVATE_ArrayUnionTransformOperation && t instanceof __PRIVATE_ArrayUnionTransformOperation || e instanceof __PRIVATE_ArrayRemoveTransformOperation && t instanceof __PRIVATE_ArrayRemoveTransformOperation ? __PRIVATE_arrayEquals(e.elements, t.elements, __PRIVATE_valueEquals) : e instanceof __PRIVATE_NumericIncrementTransformOperation && t instanceof __PRIVATE_NumericIncrementTransformOperation ? __PRIVATE_valueEquals(e.de, t.de) : e instanceof __PRIVATE_ServerTimestampTransform && t instanceof __PRIVATE_ServerTimestampTransform;
5045
+ return e instanceof __PRIVATE_ArrayUnionTransformOperation && t instanceof __PRIVATE_ArrayUnionTransformOperation || e instanceof __PRIVATE_ArrayRemoveTransformOperation && t instanceof __PRIVATE_ArrayRemoveTransformOperation ? __PRIVATE_arrayEquals(e.elements, t.elements, __PRIVATE_valueEquals) : e instanceof __PRIVATE_NumericIncrementTransformOperation && t instanceof __PRIVATE_NumericIncrementTransformOperation ? __PRIVATE_valueEquals(e.Te, t.Te) : e instanceof __PRIVATE_ServerTimestampTransform && t instanceof __PRIVATE_ServerTimestampTransform;
5046
5046
  }(e.transform, t.transform);
5047
5047
  }
5048
5048
 
@@ -6754,7 +6754,7 @@ function toMutation(e, t) {
6754
6754
  };
6755
6755
  if (n instanceof __PRIVATE_NumericIncrementTransformOperation) return {
6756
6756
  fieldPath: t.field.canonicalString(),
6757
- increment: n.de
6757
+ increment: n.Te
6758
6758
  };
6759
6759
  throw fail();
6760
6760
  }(0, e)))), t.precondition.isNone || (n.currentDocument = function __PRIVATE_toPrecondition(e, t) {
@@ -7588,13 +7588,13 @@ class __PRIVATE_FirestoreIndexValueWriter {
7588
7588
  // ["bar", [2, truncated("foo")]] -> (STRING, "bar", TERM, ARRAY, NUMBER, 2, STRING, "foo", TRUNC)
7589
7589
  // ["bar", truncated(["foo"])] -> (STRING, "bar", TERM, ARRAY. STRING, "foo", TERM, TRUNC)
7590
7590
  /** Writes an index value. */
7591
- Tt(e, t) {
7592
- this.dt(e, t),
7591
+ dt(e, t) {
7592
+ this.Tt(e, t),
7593
7593
  // Write separator to split index values
7594
7594
  // (see go/firestore-storage-format#encodings).
7595
7595
  t.Et();
7596
7596
  }
7597
- dt(e, t) {
7597
+ Tt(e, t) {
7598
7598
  if ("nullValue" in e) this.At(t, 5); else if ("booleanValue" in e) this.At(t, 10),
7599
7599
  t.Rt(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.At(t, 15), t.Rt(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7600
7600
  const n = __PRIVATE_normalizeNumber(e.doubleValue);
@@ -7620,12 +7620,12 @@ class __PRIVATE_FirestoreIndexValueWriter {
7620
7620
  St(e, t) {
7621
7621
  const n = e.fields || {};
7622
7622
  this.At(t, 55);
7623
- for (const e of Object.keys(n)) this.ft(e, t), this.dt(n[e], t);
7623
+ for (const e of Object.keys(n)) this.ft(e, t), this.Tt(n[e], t);
7624
7624
  }
7625
7625
  bt(e, t) {
7626
7626
  const n = e.values || [];
7627
7627
  this.At(t, 50);
7628
- for (const e of n) this.dt(e, t);
7628
+ for (const e of n) this.Tt(e, t);
7629
7629
  }
7630
7630
  wt(e, t) {
7631
7631
  this.At(t, 37);
@@ -8273,6 +8273,10 @@ function __PRIVATE_applyDistributionFieldAndCompositeFilters(e, t) {
8273
8273
  // Field indices are not supported with memory persistence.
8274
8274
  return PersistencePromise.resolve();
8275
8275
  }
8276
+ deleteAllFieldIndexes(e) {
8277
+ // Field indices are not supported with memory persistence.
8278
+ return PersistencePromise.resolve();
8279
+ }
8276
8280
  createTargetIndexes(e, t) {
8277
8281
  // Field indices are not supported with memory persistence.
8278
8282
  return PersistencePromise.resolve();
@@ -8346,7 +8350,7 @@ function __PRIVATE_applyDistributionFieldAndCompositeFilters(e, t) {
8346
8350
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8347
8351
  * See the License for the specific language governing permissions and
8348
8352
  * limitations under the License.
8349
- */ const Te = new Uint8Array(0);
8353
+ */ const de = new Uint8Array(0);
8350
8354
 
8351
8355
  /**
8352
8356
  * A persisted implementation of IndexManager.
@@ -8439,6 +8443,10 @@ class __PRIVATE_IndexedDbIndexManager {
8439
8443
  /*lowerOpen=*/ !1,
8440
8444
  /*upperOpen=*/ !0))));
8441
8445
  }
8446
+ deleteAllFieldIndexes(e) {
8447
+ const t = __PRIVATE_indexConfigurationStore(e), n = __PRIVATE_indexEntriesStore(e), r = __PRIVATE_indexStateStore(e);
8448
+ return t.J().next((() => n.J())).next((() => r.J()));
8449
+ }
8442
8450
  createTargetIndexes(e, t) {
8443
8451
  return PersistencePromise.forEach(this.ln(t), (t => this.getIndexType(e, t).next((n => {
8444
8452
  if (0 /* IndexType.NONE */ === n || 1 /* IndexType.PARTIAL */ === n) {
@@ -8526,7 +8534,7 @@ class __PRIVATE_IndexedDbIndexManager {
8526
8534
  n.push(t.value), r && (r = t.inclusive);
8527
8535
  }
8528
8536
  return new Bound(n, r);
8529
- }(s, i), c = this.Pn(i, s, a), l = this.Pn(i, s, u), h = this.In(i, s, _), P = this.Tn(i.indexId, o, c, a.inclusive, l, u.inclusive, h);
8537
+ }(s, i), c = this.Pn(i, s, a), l = this.Pn(i, s, u), h = this.In(i, s, _), P = this.dn(i.indexId, o, c, a.inclusive, l, u.inclusive, h);
8530
8538
  return PersistencePromise.forEach(P, (i => n.H(i, t.limit).next((t => {
8531
8539
  t.forEach((t => {
8532
8540
  const n = DocumentKey.fromSegments(t.documentKey);
@@ -8549,14 +8557,14 @@ class __PRIVATE_IndexedDbIndexManager {
8549
8557
  /**
8550
8558
  * Constructs a key range query on `DbIndexEntryStore` that unions all
8551
8559
  * bounds.
8552
- */ Tn(e, t, n, r, i, s, o) {
8560
+ */ dn(e, t, n, r, i, s, o) {
8553
8561
  // The number of total index scans we union together. This is similar to a
8554
8562
  // distributed normal form, but adapted for array values. We create a single
8555
8563
  // index range per value in an ARRAY_CONTAINS or ARRAY_CONTAINS_ANY filter
8556
8564
  // combined with the values from the query bounds.
8557
8565
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8558
8566
  for (let c = 0; c < _; ++c) {
8559
- const _ = t ? this.dn(t[c / a]) : Te, l = this.En(e, _, n[c % a], r), h = this.An(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
8567
+ const _ = t ? this.Tn(t[c / a]) : de, l = this.En(e, _, n[c % a], r), h = this.An(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
8560
8568
  /* inclusive= */ !0)));
8561
8569
  u.push(...this.createRange(l, h, P));
8562
8570
  }
@@ -8620,13 +8628,13 @@ class __PRIVATE_IndexedDbIndexManager {
8620
8628
  const e = t.data.field(r.fieldPath);
8621
8629
  if (null == e) return null;
8622
8630
  const i = n.Yt(r.kind);
8623
- __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, i);
8631
+ __PRIVATE_FirestoreIndexValueWriter.Ct.dt(e, i);
8624
8632
  }
8625
8633
  return n.zt();
8626
8634
  }
8627
- /** Encodes a single value to the ascending index format. */ dn(e) {
8635
+ /** Encodes a single value to the ascending index format. */ Tn(e) {
8628
8636
  const t = new __PRIVATE_IndexByteEncoder;
8629
- return __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, t.Yt(0 /* IndexKind.ASCENDING */)),
8637
+ return __PRIVATE_FirestoreIndexValueWriter.Ct.dt(e, t.Yt(0 /* IndexKind.ASCENDING */)),
8630
8638
  t.zt();
8631
8639
  }
8632
8640
  /**
@@ -8634,7 +8642,7 @@ class __PRIVATE_IndexedDbIndexManager {
8634
8642
  * ordering of the field index.
8635
8643
  */ Vn(e, t) {
8636
8644
  const n = new __PRIVATE_IndexByteEncoder;
8637
- return __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(__PRIVATE_refValue(this.databaseId, t), n.Yt(function __PRIVATE_fieldIndexGetKeyOrder(e) {
8645
+ return __PRIVATE_FirestoreIndexValueWriter.Ct.dt(__PRIVATE_refValue(this.databaseId, t), n.Yt(function __PRIVATE_fieldIndexGetKeyOrder(e) {
8638
8646
  const t = __PRIVATE_fieldIndexGetDirectionalSegments(e);
8639
8647
  return 0 === t.length ? 0 /* IndexKind.ASCENDING */ : t[t.length - 1].kind;
8640
8648
  }(e))), n.zt();
@@ -8651,7 +8659,7 @@ class __PRIVATE_IndexedDbIndexManager {
8651
8659
  const e = n[i++];
8652
8660
  for (const n of r) if (this.mn(t, s.fieldPath) && isArray(e)) r = this.fn(r, s, e); else {
8653
8661
  const t = n.Yt(s.kind);
8654
- __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, t);
8662
+ __PRIVATE_FirestoreIndexValueWriter.Ct.dt(e, t);
8655
8663
  }
8656
8664
  }
8657
8665
  return this.gn(r);
@@ -8677,7 +8685,7 @@ class __PRIVATE_IndexedDbIndexManager {
8677
8685
  const r = [ ...e ], i = [];
8678
8686
  for (const e of n.arrayValue.values || []) for (const n of r) {
8679
8687
  const r = new __PRIVATE_IndexByteEncoder;
8680
- r.seed(n.zt()), __PRIVATE_FirestoreIndexValueWriter.Ct.Tt(e, r.Yt(t.kind)), i.push(r);
8688
+ r.seed(n.zt()), __PRIVATE_FirestoreIndexValueWriter.Ct.dt(e, r.Yt(t.kind)), i.push(r);
8681
8689
  }
8682
8690
  return i;
8683
8691
  }
@@ -8752,8 +8760,8 @@ class __PRIVATE_IndexedDbIndexManager {
8752
8760
  const i = __PRIVATE_fieldIndexGetArraySegment(t);
8753
8761
  if (null != i) {
8754
8762
  const s = e.data.field(i.fieldPath);
8755
- if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.dn(i), r));
8756
- } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Te, r));
8763
+ if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.Tn(i), r));
8764
+ } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, de, r));
8757
8765
  return n;
8758
8766
  }
8759
8767
  /**
@@ -8828,7 +8836,7 @@ class __PRIVATE_IndexedDbIndexManager {
8828
8836
  // If we encounter two bounds that will create an unmatchable key range,
8829
8837
  // then we return an empty set of key ranges.
8830
8838
  if (this.Cn(r[e], r[e + 1])) return [];
8831
- const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, Te, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, Te, [] ];
8839
+ const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, de, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, de, [] ];
8832
8840
  i.push(IDBKeyRange.bound(t, n));
8833
8841
  }
8834
8842
  return i;
@@ -8896,7 +8904,7 @@ function __PRIVATE_getMinOffsetFromFieldIndexes(e) {
8896
8904
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8897
8905
  * See the License for the specific language governing permissions and
8898
8906
  * limitations under the License.
8899
- */ const de = {
8907
+ */ const Te = {
8900
8908
  didRun: !1,
8901
8909
  sequenceNumbersCollected: 0,
8902
8910
  targetsRemoved: 0,
@@ -9629,8 +9637,8 @@ class __PRIVATE_TargetIdGenerator {
9629
9637
  }
9630
9638
  collect(e, t) {
9631
9639
  return -1 === this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", "Garbage collection skipped; disabled"),
9632
- PersistencePromise.resolve(de)) : this.getCacheSize(e).next((n => n < this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", `Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),
9633
- de) : this.Zn(e, t)));
9640
+ PersistencePromise.resolve(Te)) : this.getCacheSize(e).next((n => n < this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", `Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),
9641
+ Te) : this.Zn(e, t)));
9634
9642
  }
9635
9643
  getCacheSize(e) {
9636
9644
  return this.Hn.getCacheSize(e);
@@ -10670,16 +10678,16 @@ class OverlayedDocument {
10670
10678
  */ class __PRIVATE_ReferenceSet {
10671
10679
  constructor() {
10672
10680
  // A set of outstanding references to a document sorted by key.
10673
- this.Ir = new SortedSet(__PRIVATE_DocReference.Tr),
10681
+ this.Ir = new SortedSet(__PRIVATE_DocReference.dr),
10674
10682
  // A set of outstanding references to a document sorted by target id.
10675
- this.dr = new SortedSet(__PRIVATE_DocReference.Er);
10683
+ this.Tr = new SortedSet(__PRIVATE_DocReference.Er);
10676
10684
  }
10677
10685
  /** Returns true if the reference set contains no references. */ isEmpty() {
10678
10686
  return this.Ir.isEmpty();
10679
10687
  }
10680
10688
  /** Adds a reference to the given document key for the given ID. */ addReference(e, t) {
10681
10689
  const n = new __PRIVATE_DocReference(e, t);
10682
- this.Ir = this.Ir.add(n), this.dr = this.dr.add(n);
10690
+ this.Ir = this.Ir.add(n), this.Tr = this.Tr.add(n);
10683
10691
  }
10684
10692
  /** Add references to the given document keys for the given ID. */ Ar(e, t) {
10685
10693
  e.forEach((e => this.addReference(e, t)));
@@ -10698,7 +10706,7 @@ class OverlayedDocument {
10698
10706
  * removed.
10699
10707
  */ mr(e) {
10700
10708
  const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1), i = [];
10701
- return this.dr.forEachInRange([ n, r ], (e => {
10709
+ return this.Tr.forEachInRange([ n, r ], (e => {
10702
10710
  this.Rr(e), i.push(e.key);
10703
10711
  })), i;
10704
10712
  }
@@ -10706,12 +10714,12 @@ class OverlayedDocument {
10706
10714
  this.Ir.forEach((e => this.Rr(e)));
10707
10715
  }
10708
10716
  Rr(e) {
10709
- this.Ir = this.Ir.delete(e), this.dr = this.dr.delete(e);
10717
+ this.Ir = this.Ir.delete(e), this.Tr = this.Tr.delete(e);
10710
10718
  }
10711
10719
  pr(e) {
10712
10720
  const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1);
10713
10721
  let i = __PRIVATE_documentKeySet();
10714
- return this.dr.forEachInRange([ n, r ], (e => {
10722
+ return this.Tr.forEachInRange([ n, r ], (e => {
10715
10723
  i = i.add(e.key);
10716
10724
  })), i;
10717
10725
  }
@@ -10725,7 +10733,7 @@ class __PRIVATE_DocReference {
10725
10733
  constructor(e, t) {
10726
10734
  this.key = e, this.yr = t;
10727
10735
  }
10728
- /** Compare by key then by ID */ static Tr(e, t) {
10736
+ /** Compare by key then by ID */ static dr(e, t) {
10729
10737
  return DocumentKey.comparator(e.key, t.key) || __PRIVATE_primitiveComparator(e.yr, t.yr);
10730
10738
  }
10731
10739
  /** Compare by ID then by key */ static Er(e, t) {
@@ -10759,7 +10767,7 @@ class __PRIVATE_DocReference {
10759
10767
  /** Next value to use when assigning sequential IDs to each mutation batch. */
10760
10768
  this.wr = 1,
10761
10769
  /** An ordered mapping between documents and the mutations batch IDs. */
10762
- this.Sr = new SortedSet(__PRIVATE_DocReference.Tr);
10770
+ this.Sr = new SortedSet(__PRIVATE_DocReference.dr);
10763
10771
  }
10764
10772
  checkEmpty(e) {
10765
10773
  return PersistencePromise.resolve(0 === this.mutationQueue.length);
@@ -11721,9 +11729,9 @@ class __PRIVATE_IndexedDbPersistence {
11721
11729
  /** The last time we garbage collected the client metadata object store. */
11722
11730
  this.Ii = Number.NEGATIVE_INFINITY,
11723
11731
  /** A listener to notify on primary state changes. */
11724
- this.Ti = e => Promise.resolve(), !__PRIVATE_IndexedDbPersistence.C()) throw new FirestoreError(D.UNIMPLEMENTED, "This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");
11725
- this.referenceDelegate = new __PRIVATE_IndexedDbLruDelegateImpl(this, r), this.di = t + "main",
11726
- this.serializer = new __PRIVATE_LocalSerializer(_), this.Ei = new __PRIVATE_SimpleDb(this.di, this.ci, new __PRIVATE_SchemaConverter(this.serializer)),
11732
+ this.di = e => Promise.resolve(), !__PRIVATE_IndexedDbPersistence.C()) throw new FirestoreError(D.UNIMPLEMENTED, "This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");
11733
+ this.referenceDelegate = new __PRIVATE_IndexedDbLruDelegateImpl(this, r), this.Ti = t + "main",
11734
+ this.serializer = new __PRIVATE_LocalSerializer(_), this.Ei = new __PRIVATE_SimpleDb(this.Ti, this.ci, new __PRIVATE_SchemaConverter(this.serializer)),
11727
11735
  this.Kr = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
11728
11736
  this.remoteDocumentCache = __PRIVATE_newIndexedDbRemoteDocumentCache(this.serializer),
11729
11737
  this.Ur = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.Ai = this.window.localStorage : (this.Ai = null,
@@ -11756,7 +11764,7 @@ class __PRIVATE_IndexedDbPersistence {
11756
11764
  *
11757
11765
  * PORTING NOTE: This is only used for Web multi-tab.
11758
11766
  */ gi(e) {
11759
- return this.Ti = async t => {
11767
+ return this.di = async t => {
11760
11768
  if (this.started) return e(t);
11761
11769
  }, e(this.isPrimary);
11762
11770
  }
@@ -11797,7 +11805,7 @@ class __PRIVATE_IndexedDbPersistence {
11797
11805
  inForeground: this.inForeground
11798
11806
  }).next((() => {
11799
11807
  if (this.isPrimary) return this.pi(e).next((e => {
11800
- e || (this.isPrimary = !1, this._i.enqueueRetryable((() => this.Ti(!1))));
11808
+ e || (this.isPrimary = !1, this._i.enqueueRetryable((() => this.di(!1))));
11801
11809
  }));
11802
11810
  })).next((() => this.yi(e))).next((t => this.isPrimary && !t ? this.wi(e).next((() => !1)) : !!t && this.Si(e).next((() => !0)))))).catch((e => {
11803
11811
  if (__PRIVATE_isIndexedDbTransactionError(e))
@@ -11809,7 +11817,7 @@ class __PRIVATE_IndexedDbPersistence {
11809
11817
  return __PRIVATE_logDebug("IndexedDbPersistence", "Releasing owner lease after error during lease refresh", e),
11810
11818
  /* isPrimary= */ !1;
11811
11819
  })).then((e => {
11812
- this.isPrimary !== e && this._i.enqueueRetryable((() => this.Ti(e))), this.isPrimary = e;
11820
+ this.isPrimary !== e && this._i.enqueueRetryable((() => this.di(e))), this.isPrimary = e;
11813
11821
  }));
11814
11822
  }
11815
11823
  pi(e) {
@@ -11961,7 +11969,7 @@ class __PRIVATE_IndexedDbPersistence {
11961
11969
  return this.Ei.runTransaction(e, r, i, (r => (s = new __PRIVATE_IndexedDbTransaction(r, this.qr ? this.qr.next() : __PRIVATE_ListenSequence.ae),
11962
11970
  "readwrite-primary" === t ? this.pi(s).next((e => !!e || this.yi(s))).next((t => {
11963
11971
  if (!t) throw __PRIVATE_logError(`Failed to obtain primary lease for action '${e}'.`),
11964
- this.isPrimary = !1, this._i.enqueueRetryable((() => this.Ti(!1))), new FirestoreError(D.FAILED_PRECONDITION, v);
11972
+ this.isPrimary = !1, this._i.enqueueRetryable((() => this.di(!1))), new FirestoreError(D.FAILED_PRECONDITION, v);
11965
11973
  return n(s);
11966
11974
  })).next((e => this.Si(s).next((() => e)))) : this.qi(s).next((() => n(s)))))).then((e => (s.raiseOnCommittedEvent(),
11967
11975
  e)));
@@ -12793,8 +12801,8 @@ async function __PRIVATE_localStoreApplyBundledDocuments(e, t, n, r) {
12793
12801
  for (const e of n) {
12794
12802
  const n = t.Is(e.metadata.name);
12795
12803
  e.document && (s = s.add(n));
12796
- const r = t.Ts(e);
12797
- r.setReadTime(t.ds(e.metadata.readTime)), o = o.insert(n, r);
12804
+ const r = t.ds(e);
12805
+ r.setReadTime(t.Ts(e.metadata.readTime)), o = o.insert(n, r);
12798
12806
  }
12799
12807
  const _ = i._s.newChangeBuffer({
12800
12808
  trackRemovals: !0
@@ -14313,7 +14321,7 @@ class __PRIVATE_PersistentStream {
14313
14321
  this.P_ = !1, this.lastStreamToken = void 0, super.start();
14314
14322
  }
14315
14323
  s_() {
14316
- this.P_ && this.T_([]);
14324
+ this.P_ && this.d_([]);
14317
14325
  }
14318
14326
  u_(e, t) {
14319
14327
  return this.connection.Mo("Write", e, t);
@@ -14327,7 +14335,7 @@ class __PRIVATE_PersistentStream {
14327
14335
  // the write itself might be causing an error we want to back off from.
14328
14336
  this.Ho.reset();
14329
14337
  const t = __PRIVATE_fromWriteResults(e.writeResults, e.commitTime), n = __PRIVATE_fromVersion(e.commitTime);
14330
- return this.listener.d_(n, t);
14338
+ return this.listener.T_(n, t);
14331
14339
  }
14332
14340
  // The first response is always the handshake response
14333
14341
  return __PRIVATE_hardAssert(!e.writeResults || 0 === e.writeResults.length), this.P_ = !0,
@@ -14343,7 +14351,7 @@ class __PRIVATE_PersistentStream {
14343
14351
  const e = {};
14344
14352
  e.database = __PRIVATE_getEncodedDatabaseId(this.serializer), this.n_(e);
14345
14353
  }
14346
- /** Sends a group of mutations to the Firestore backend to apply. */ T_(e) {
14354
+ /** Sends a group of mutations to the Firestore backend to apply. */ d_(e) {
14347
14355
  const t = {
14348
14356
  streamToken: this.lastStreamToken,
14349
14357
  writes: e.map((e => toMutation(this.serializer, e)))
@@ -14440,9 +14448,9 @@ async function __PRIVATE_invokeRunAggregationQueryRpc(e, t, n) {
14440
14448
  };
14441
14449
  }(i.serializer, function __PRIVATE_queryToAggregateTarget(e) {
14442
14450
  const t = __PRIVATE_debugCast(e);
14443
- return t.Te || (
14451
+ return t.de || (
14444
14452
  // Do not include implicit order-bys for aggregate queries.
14445
- t.Te = __PRIVATE__queryToTarget(t, e.explicitOrderBy)), t.Te;
14453
+ t.de = __PRIVATE__queryToTarget(t, e.explicitOrderBy)), t.de;
14446
14454
  }(t), n), _ = s.parent;
14447
14455
  i.connection.So || delete s.parent;
14448
14456
  const a = (await i.Fo("RunAggregationQuery", _, s, /*expectedResponseCount=*/ 1)).filter((e => !!e.result));
@@ -14846,7 +14854,7 @@ async function __PRIVATE_fillWritePipeline(e) {
14846
14854
  */ function __PRIVATE_addToWritePipeline(e, t) {
14847
14855
  e.C_.push(t);
14848
14856
  const n = __PRIVATE_ensureWriteStream(e);
14849
- n.Yo() && n.I_ && n.T_(t.mutations);
14857
+ n.Yo() && n.I_ && n.d_(t.mutations);
14850
14858
  }
14851
14859
 
14852
14860
  function __PRIVATE_shouldStartWriteStream(e) {
@@ -14864,7 +14872,7 @@ async function __PRIVATE_onWriteStreamOpen(e) {
14864
14872
  async function __PRIVATE_onWriteHandshakeComplete(e) {
14865
14873
  const t = __PRIVATE_ensureWriteStream(e);
14866
14874
  // Send the write pipeline now that the stream is established.
14867
- for (const n of e.C_) t.T_(n.mutations);
14875
+ for (const n of e.C_) t.d_(n.mutations);
14868
14876
  }
14869
14877
 
14870
14878
  async function __PRIVATE_onMutationResult(e, t, n) {
@@ -14981,7 +14989,7 @@ async function __PRIVATE_remoteStoreHandleCredentialChange(e, t) {
14981
14989
  Io: __PRIVATE_onWriteStreamOpen.bind(null, e),
14982
14990
  Eo: __PRIVATE_onWriteStreamClose.bind(null, e),
14983
14991
  E_: __PRIVATE_onWriteHandshakeComplete.bind(null, e),
14984
- d_: __PRIVATE_onMutationResult.bind(null, e)
14992
+ T_: __PRIVATE_onMutationResult.bind(null, e)
14985
14993
  }), e.M_.push((async t => {
14986
14994
  t ? (e.L_.Xo(),
14987
14995
  // This will start the write stream if necessary.
@@ -15483,10 +15491,10 @@ function __PRIVATE_raiseSnapshotsInSyncEvent(e) {
15483
15491
  }
15484
15492
  /**
15485
15493
  * Converts a BundleDocument to a MutableDocument.
15486
- */ Ts(e) {
15487
- return e.metadata.exists ? __PRIVATE_fromDocument(this.serializer, e.document, !1) : MutableDocument.newNoDocument(this.Is(e.metadata.name), this.ds(e.metadata.readTime));
15494
+ */ ds(e) {
15495
+ return e.metadata.exists ? __PRIVATE_fromDocument(this.serializer, e.document, !1) : MutableDocument.newNoDocument(this.Is(e.metadata.name), this.Ts(e.metadata.readTime));
15488
15496
  }
15489
- ds(e) {
15497
+ Ts(e) {
15490
15498
  return __PRIVATE_fromVersion(e);
15491
15499
  }
15492
15500
  }
@@ -15750,8 +15758,8 @@ class __PRIVATE_RemovedLimboDocument {
15750
15758
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15751
15759
  * See the License for the specific language governing permissions and
15752
15760
  * limitations under the License.
15753
- */ (e.type, t.type) || this.ua(e.doc, t.doc))), this.Ta(n);
15754
- const s = t ? this.da() : [], o = 0 === this.aa.size && this.current ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , _ = o !== this._a;
15761
+ */ (e.type, t.type) || this.ua(e.doc, t.doc))), this.da(n);
15762
+ const s = t ? this.Ta() : [], o = 0 === this.aa.size && this.current ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , _ = o !== this._a;
15755
15763
  if (this._a = o, 0 !== i.length || _) {
15756
15764
  return {
15757
15765
  snapshot: new ViewSnapshot(this.query, e.ca, r, i, e.mutatedKeys, 0 /* SyncState.Local */ === o, _,
@@ -15794,11 +15802,11 @@ class __PRIVATE_RemovedLimboDocument {
15794
15802
  /**
15795
15803
  * Updates syncedDocuments, current, and limbo docs based on the given change.
15796
15804
  * Returns the list of changes to which docs are in limbo.
15797
- */ Ta(e) {
15805
+ */ da(e) {
15798
15806
  e && (e.addedDocuments.forEach((e => this.oa = this.oa.add(e))), e.modifiedDocuments.forEach((e => {})),
15799
15807
  e.removedDocuments.forEach((e => this.oa = this.oa.delete(e))), this.current = e.current);
15800
15808
  }
15801
- da() {
15809
+ Ta() {
15802
15810
  // We can only determine limbo documents when we're in-sync with the server.
15803
15811
  if (!this.current) return [];
15804
15812
  // TODO(klimt): Do this incrementally so that it's not quadratic when
@@ -17692,6 +17700,13 @@ function __PRIVATE_firestoreClientSetIndexConfiguration(e, t) {
17692
17700
  function __PRIVATE_firestoreClientSetPersistentCacheIndexAutoCreationEnabled(e, t) {
17693
17701
  return e.asyncQueue.enqueue((async () => function __PRIVATE_localStoreSetIndexAutoCreationEnabled(e, t) {
17694
17702
  __PRIVATE_debugCast(e).ns.Wi = t;
17703
+ }(await __PRIVATE_getLocalStore(e), t)));
17704
+ }
17705
+
17706
+ function __PRIVATE_firestoreClientDeleteAllFieldIndexes(e) {
17707
+ return e.asyncQueue.enqueue((async () => function __PRIVATE_localStoreDeleteAllFieldIndexes(e) {
17708
+ const t = __PRIVATE_debugCast(e), n = t.indexManager;
17709
+ return t.persistence.runTransaction("Delete All Indexes", "readwrite", (e => n.deleteAllFieldIndexes(e)));
17695
17710
  }
17696
17711
  /**
17697
17712
  * @license
@@ -17711,7 +17726,7 @@ function __PRIVATE_firestoreClientSetPersistentCacheIndexAutoCreationEnabled(e,
17711
17726
  */
17712
17727
  // The format of the LocalStorage key that stores the client state is:
17713
17728
  // firestore_clients_<persistence_prefix>_<instance_key>
17714
- (await __PRIVATE_getLocalStore(e), t)));
17729
+ (await __PRIVATE_getLocalStore(e))));
17715
17730
  }
17716
17731
 
17717
17732
  /**
@@ -19243,13 +19258,13 @@ function __PRIVATE_isWrite(e) {
19243
19258
  this.settings = e, this.databaseId = t, this.serializer = n, this.ignoreUndefinedProperties = r,
19244
19259
  // Minor hack: If fieldTransforms is undefined, we assume this is an
19245
19260
  // external call and we need to validate the entire path.
19246
- void 0 === i && this.Tu(), this.fieldTransforms = i || [], this.fieldMask = s || [];
19261
+ void 0 === i && this.du(), this.fieldTransforms = i || [], this.fieldMask = s || [];
19247
19262
  }
19248
19263
  get path() {
19249
19264
  return this.settings.path;
19250
19265
  }
19251
- get du() {
19252
- return this.settings.du;
19266
+ get Tu() {
19267
+ return this.settings.Tu;
19253
19268
  }
19254
19269
  /** Returns a new context with the specified settings overwritten. */ Eu(e) {
19255
19270
  return new __PRIVATE_ParseContextImpl(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
@@ -19268,7 +19283,7 @@ function __PRIVATE_isWrite(e) {
19268
19283
  path: n,
19269
19284
  Ru: !1
19270
19285
  });
19271
- return r.Tu(), r;
19286
+ return r.du(), r;
19272
19287
  }
19273
19288
  fu(e) {
19274
19289
  // TODO(b/34871131): We don't support array paths right now; so make path
@@ -19284,14 +19299,14 @@ function __PRIVATE_isWrite(e) {
19284
19299
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(e) {
19285
19300
  return void 0 !== this.fieldMask.find((t => e.isPrefixOf(t))) || void 0 !== this.fieldTransforms.find((t => e.isPrefixOf(t.field)));
19286
19301
  }
19287
- Tu() {
19302
+ du() {
19288
19303
  // TODO(b/34871131): Remove null check once we have proper paths for fields
19289
19304
  // within arrays.
19290
19305
  if (this.path) for (let e = 0; e < this.path.length; e++) this.Vu(this.path.get(e));
19291
19306
  }
19292
19307
  Vu(e) {
19293
19308
  if (0 === e.length) throw this.gu("Document fields must not be empty");
19294
- if (__PRIVATE_isWrite(this.du) && ge.test(e)) throw this.gu('Document fields cannot begin and end with "__"');
19309
+ if (__PRIVATE_isWrite(this.Tu) && ge.test(e)) throw this.gu('Document fields cannot begin and end with "__"');
19295
19310
  }
19296
19311
  }
19297
19312
 
@@ -19304,7 +19319,7 @@ function __PRIVATE_isWrite(e) {
19304
19319
  }
19305
19320
  /** Creates a new top-level parse context. */ wu(e, t, n, r = !1) {
19306
19321
  return new __PRIVATE_ParseContextImpl({
19307
- du: e,
19322
+ Tu: e,
19308
19323
  methodName: t,
19309
19324
  yu: n,
19310
19325
  path: FieldPath$1.emptyPath(),
@@ -19338,7 +19353,7 @@ function __PRIVATE_newUserDataReader(e) {
19338
19353
 
19339
19354
  class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19340
19355
  _toFieldTransform(e) {
19341
- if (2 /* UserDataSource.MergeSet */ !== e.du) throw 1 /* UserDataSource.Update */ === e.du ? e.gu(`${this._methodName}() can only appear at the top level of your update data`) : e.gu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
19356
+ if (2 /* UserDataSource.MergeSet */ !== e.Tu) throw 1 /* UserDataSource.Update */ === e.Tu ? e.gu(`${this._methodName}() can only appear at the top level of your update data`) : e.gu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
19342
19357
  // No transform to add for a delete, but we need to add it to our
19343
19358
  // fieldMask so it gets deleted.
19344
19359
  return e.fieldMask.push(e.path), null;
@@ -19365,7 +19380,7 @@ class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19365
19380
  * @param arrayElement - Whether or not the FieldValue has an array.
19366
19381
  */ function __PRIVATE_createSentinelChildContext(e, t, n) {
19367
19382
  return new __PRIVATE_ParseContextImpl({
19368
- du: 3 /* UserDataSource.Argument */ ,
19383
+ Tu: 3 /* UserDataSource.Argument */ ,
19369
19384
  yu: t.settings.yu,
19370
19385
  methodName: e._methodName,
19371
19386
  Ru: n
@@ -19508,7 +19523,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19508
19523
  */
19509
19524
  return function __PRIVATE_parseSentinelFieldValue(e, t) {
19510
19525
  // Sentinels are only supported with writes, and not within arrays.
19511
- if (!__PRIVATE_isWrite(t.du)) throw t.gu(`${e._methodName}() can only be used with update() and set()`);
19526
+ if (!__PRIVATE_isWrite(t.Tu)) throw t.gu(`${e._methodName}() can only be used with update() and set()`);
19512
19527
  if (!t.path) throw t.gu(`${e._methodName}() is not currently supported inside arrays`);
19513
19528
  const n = e._toFieldTransform(t);
19514
19529
  n && t.fieldTransforms.push(n);
@@ -19533,7 +19548,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19533
19548
  // the set of values to be included for the IN query) that may directly
19534
19549
  // contain additional arrays (each representing an individual field
19535
19550
  // value), so we disable this validation.
19536
- if (t.settings.Ru && 4 /* UserDataSource.ArrayArgument */ !== t.du) throw t.gu("Nested arrays are not supported");
19551
+ if (t.settings.Ru && 4 /* UserDataSource.ArrayArgument */ !== t.Tu) throw t.gu("Nested arrays are not supported");
19537
19552
  return function __PRIVATE_parseArray(e, t) {
19538
19553
  const n = [];
19539
19554
  let r = 0;
@@ -21698,6 +21713,19 @@ function __PRIVATE_tryGetString(e, t) {
21698
21713
  __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, !1);
21699
21714
  }
21700
21715
 
21716
+ /**
21717
+ * Removes all persistent cache indexes.
21718
+ *
21719
+ * Please note this function will also deletes indexes generated by
21720
+ * `setIndexConfiguration()`, which is deprecated.
21721
+ *
21722
+ * TODO(CSI) Remove @internal to make the API publicly available.
21723
+ * @internal
21724
+ */ function deleteAllPersistentCacheIndexes(e) {
21725
+ e._client.verifyNotTerminated();
21726
+ __PRIVATE_firestoreClientDeleteAllFieldIndexes(e._client).then((e => __PRIVATE_logDebug("deleting all persistent cache indexes succeeded"))).catch((e => __PRIVATE_logWarn("deleting all persistent cache indexes failed", e)));
21727
+ }
21728
+
21701
21729
  function __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, t) {
21702
21730
  e._client.verifyNotTerminated();
21703
21731
  __PRIVATE_firestoreClientSetPersistentCacheIndexAutoCreationEnabled(e._client, t).then((e => __PRIVATE_logDebug(`setting persistent cache index auto creation isEnabled=${t} succeeded`))).catch((e => __PRIVATE_logWarn(`setting persistent cache index auto creation isEnabled=${t} failed`, e)));
@@ -21794,10 +21822,10 @@ let Se = null;
21794
21822
  return r = Object.assign({
21795
21823
  useFetchStreams: t
21796
21824
  }, r), s._setSettings(r), s;
21797
- }), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.1.2-canary.5f6304d39", e),
21825
+ }), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.1.2-canary.60e4a07d2", e),
21798
21826
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21799
- registerVersion(w, "4.1.2-canary.5f6304d39", "esm2017");
21827
+ registerVersion(w, "4.1.2-canary.60e4a07d2", "esm2017");
21800
21828
  }();
21801
21829
 
21802
- export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, fe 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, 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, 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 };
21830
+ export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, fe 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, 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 };
21803
21831
  //# sourceMappingURL=index.esm2017.js.map