@firebase/firestore 4.5.0-canary.9ca1a4e4f → 4.5.0-canary.c6ecac8ac

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 (36) hide show
  1. package/dist/firestore/src/local/indexeddb_schema.d.ts +2 -1
  2. package/dist/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  3. package/dist/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  4. package/dist/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  5. package/dist/index.cjs.js +134 -126
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/index.esm2017.js +134 -126
  8. package/dist/index.esm2017.js.map +1 -1
  9. package/dist/index.esm5.js +2164 -2157
  10. package/dist/index.esm5.js.map +1 -1
  11. package/dist/index.node.cjs.js +25 -10
  12. package/dist/index.node.cjs.js.map +1 -1
  13. package/dist/index.node.mjs +25 -10
  14. package/dist/index.node.mjs.map +1 -1
  15. package/dist/index.rn.js +134 -126
  16. package/dist/index.rn.js.map +1 -1
  17. package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +2 -1
  18. package/dist/lite/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  19. package/dist/lite/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  20. package/dist/lite/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  21. package/dist/lite/index.browser.esm2017.js +2 -2
  22. package/dist/lite/index.browser.esm5.js +2 -2
  23. package/dist/lite/index.cjs.js +2 -2
  24. package/dist/lite/index.node.cjs.js +2 -2
  25. package/dist/lite/index.node.mjs +2 -2
  26. package/dist/lite/index.rn.esm2017.js +2 -2
  27. package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +2 -1
  28. package/dist/lite/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  29. package/dist/lite/packages/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  30. package/dist/lite/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  31. package/dist/packages/firestore/dist/index.esm2017.d.ts +2 -2
  32. package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +2 -1
  33. package/dist/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  34. package/dist/packages/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  35. package/dist/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  36. package/package.json +9 -9
package/dist/index.rn.js CHANGED
@@ -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 D = "10.9.0-canary.9ca1a4e4f";
73
+ let D = "10.9.0-canary.c6ecac8ac";
74
74
 
75
75
  /**
76
76
  * @license
@@ -2305,7 +2305,7 @@ function __PRIVATE_newDbDocumentMutationPrefixForPath(e, t) {
2305
2305
  * there is no useful information to store as the value. The raw (unencoded)
2306
2306
  * path cannot be stored because IndexedDb doesn't store prototype
2307
2307
  * information.
2308
- */ const N = {}, L = [ "prefixPath", "collectionGroup", "readTime", "documentId" ], B = [ "prefixPath", "collectionGroup", "documentId" ], k = [ "collectionGroup", "readTime", "prefixPath", "documentId" ], q = [ "canonicalId", "targetId" ], Q = [ "targetId", "path" ], K = [ "path", "targetId" ], $ = [ "collectionId", "parent" ], U = [ "indexId", "uid" ], W = [ "uid", "sequenceNumber" ], G = [ "indexId", "uid", "arrayValue", "directionalValue", "orderedDocumentKey", "documentKey" ], z = [ "indexId", "uid", "orderedDocumentKey" ], j = [ "userId", "collectionPath", "documentId" ], H = [ "userId", "collectionPath", "largestBatchId" ], J = [ "userId", "collectionGroup", "largestBatchId" ], Y = [ ...[ ...[ ...[ ...[ "mutationQueues", "mutations", "documentMutations", "remoteDocuments", "targets", "owner", "targetGlobal", "targetDocuments" ], "clientMetadata" ], "remoteDocumentGlobal" ], "collectionParents" ], "bundles", "namedQueries" ], Z = [ ...Y, "documentOverlays" ], X = [ "mutationQueues", "mutations", "documentMutations", "remoteDocumentsV14", "targets", "owner", "targetGlobal", "targetDocuments", "clientMetadata", "remoteDocumentGlobal", "collectionParents", "bundles", "namedQueries", "documentOverlays" ], ee = X, te = [ ...ee, "indexConfiguration", "indexState", "indexEntries" ];
2308
+ */ const N = {}, L = [ "prefixPath", "collectionGroup", "readTime", "documentId" ], B = [ "prefixPath", "collectionGroup", "documentId" ], k = [ "collectionGroup", "readTime", "prefixPath", "documentId" ], q = [ "canonicalId", "targetId" ], Q = [ "targetId", "path" ], K = [ "path", "targetId" ], $ = [ "collectionId", "parent" ], U = [ "indexId", "uid" ], W = [ "uid", "sequenceNumber" ], G = [ "indexId", "uid", "arrayValue", "directionalValue", "orderedDocumentKey", "documentKey" ], z = [ "indexId", "uid", "orderedDocumentKey" ], j = [ "userId", "collectionPath", "documentId" ], H = [ "userId", "collectionPath", "largestBatchId" ], J = [ "userId", "collectionGroup", "largestBatchId" ], Y = [ ...[ ...[ ...[ ...[ "mutationQueues", "mutations", "documentMutations", "remoteDocuments", "targets", "owner", "targetGlobal", "targetDocuments" ], "clientMetadata" ], "remoteDocumentGlobal" ], "collectionParents" ], "bundles", "namedQueries" ], Z = [ ...Y, "documentOverlays" ], X = [ "mutationQueues", "mutations", "documentMutations", "remoteDocumentsV14", "targets", "owner", "targetGlobal", "targetDocuments", "clientMetadata", "remoteDocumentGlobal", "collectionParents", "bundles", "namedQueries", "documentOverlays" ], ee = X, te = [ ...ee, "indexConfiguration", "indexState", "indexEntries" ], ne = te;
2309
2309
 
2310
2310
  /**
2311
2311
  * @license
@@ -3069,7 +3069,7 @@ function __PRIVATE_isBase64Available() {
3069
3069
 
3070
3070
  ByteString.EMPTY_BYTE_STRING = new ByteString("");
3071
3071
 
3072
- const ne = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
3072
+ const re = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
3073
3073
 
3074
3074
  /**
3075
3075
  * Converts the possible Proto values for a timestamp value into a "seconds and
@@ -3083,7 +3083,7 @@ const ne = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
3083
3083
  // (millis), so we do some custom parsing here.
3084
3084
  // Parse the nanos right out of the string.
3085
3085
  let t = 0;
3086
- const n = ne.exec(e);
3086
+ const n = re.exec(e);
3087
3087
  if (__PRIVATE_hardAssert(!!n), n[1]) {
3088
3088
  // Pad the fraction out to 9 digits (nanos).
3089
3089
  let e = n[1];
@@ -3250,7 +3250,7 @@ class DatabaseId {
3250
3250
  * See the License for the specific language governing permissions and
3251
3251
  * limitations under the License.
3252
3252
  */
3253
- const re = {
3253
+ const ie = {
3254
3254
  mapValue: {
3255
3255
  fields: {
3256
3256
  __type__: {
@@ -3258,7 +3258,7 @@ const re = {
3258
3258
  }
3259
3259
  }
3260
3260
  }
3261
- }, ie = {
3261
+ }, se = {
3262
3262
  nullValue: "NULL_VALUE"
3263
3263
  };
3264
3264
 
@@ -3402,9 +3402,9 @@ function __PRIVATE_valueCompare(e, t) {
3402
3402
 
3403
3403
  case 10 /* TypeOrder.ObjectValue */ :
3404
3404
  return function __PRIVATE_compareMaps(e, t) {
3405
- if (e === re.mapValue && t === re.mapValue) return 0;
3406
- if (e === re.mapValue) return 1;
3407
- if (t === re.mapValue) return -1;
3405
+ if (e === ie.mapValue && t === ie.mapValue) return 0;
3406
+ if (e === ie.mapValue) return 1;
3407
+ if (t === ie.mapValue) return -1;
3408
3408
  const n = e.fields || {}, r = Object.keys(n), i = t.fields || {}, s = Object.keys(i);
3409
3409
  // Even though MapValues are likely sorted correctly based on their insertion
3410
3410
  // order (e.g. when received from the backend), local modifications can bring
@@ -3580,7 +3580,7 @@ function isArray(e) {
3580
3580
  }
3581
3581
 
3582
3582
  /** Returns the lowest value for the given value type (inclusive). */ function __PRIVATE_valuesGetLowerBound(e) {
3583
- return "nullValue" in e ? ie : "booleanValue" in e ? {
3583
+ return "nullValue" in e ? se : "booleanValue" in e ? {
3584
3584
  booleanValue: !1
3585
3585
  } : "integerValue" in e || "doubleValue" in e ? {
3586
3586
  doubleValue: NaN
@@ -3626,7 +3626,7 @@ function isArray(e) {
3626
3626
  arrayValue: {}
3627
3627
  } : "arrayValue" in e ? {
3628
3628
  mapValue: {}
3629
- } : "mapValue" in e ? re : fail();
3629
+ } : "mapValue" in e ? ie : fail();
3630
3630
  }
3631
3631
 
3632
3632
  function __PRIVATE_lowerBoundCompare(e, t) {
@@ -4314,10 +4314,10 @@ function __PRIVATE_targetIsDocumentTarget(e) {
4314
4314
  * the provided `fieldPath` (or the upper bound for an descending segment).
4315
4315
  */
4316
4316
  function __PRIVATE_targetGetAscendingBound(e, t, n) {
4317
- let r = ie, i = !0;
4317
+ let r = se, i = !0;
4318
4318
  // Process all filters to find a value for the current field segment
4319
4319
  for (const n of __PRIVATE_targetGetFieldFiltersForPath(e, t)) {
4320
- let e = ie, t = !0;
4320
+ let e = se, t = !0;
4321
4321
  switch (n.op) {
4322
4322
  case "<" /* Operator.LESS_THAN */ :
4323
4323
  case "<=" /* Operator.LESS_THAN_OR_EQUAL */ :
@@ -4336,7 +4336,7 @@ function __PRIVATE_targetGetAscendingBound(e, t, n) {
4336
4336
 
4337
4337
  case "!=" /* Operator.NOT_EQUAL */ :
4338
4338
  case "not-in" /* Operator.NOT_IN */ :
4339
- e = ie;
4339
+ e = se;
4340
4340
  // Remaining filters cannot be used as lower bounds.
4341
4341
  }
4342
4342
  __PRIVATE_lowerBoundCompare({
@@ -4372,10 +4372,10 @@ function __PRIVATE_targetGetAscendingBound(e, t, n) {
4372
4372
  * Returns the value to use as the upper bound for ascending index segment at
4373
4373
  * the provided `fieldPath` (or the lower bound for a descending segment).
4374
4374
  */ function __PRIVATE_targetGetDescendingBound(e, t, n) {
4375
- let r = re, i = !0;
4375
+ let r = ie, i = !0;
4376
4376
  // Process all filters to find a value for the current field segment
4377
4377
  for (const n of __PRIVATE_targetGetFieldFiltersForPath(e, t)) {
4378
- let e = re, t = !0;
4378
+ let e = ie, t = !0;
4379
4379
  switch (n.op) {
4380
4380
  case ">=" /* Operator.GREATER_THAN_OR_EQUAL */ :
4381
4381
  case ">" /* Operator.GREATER_THAN */ :
@@ -4394,7 +4394,7 @@ function __PRIVATE_targetGetAscendingBound(e, t, n) {
4394
4394
 
4395
4395
  case "!=" /* Operator.NOT_EQUAL */ :
4396
4396
  case "not-in" /* Operator.NOT_IN */ :
4397
- e = re;
4397
+ e = ie;
4398
4398
  // Remaining filters cannot be used as upper bounds.
4399
4399
  }
4400
4400
  __PRIVATE_upperBoundCompare({
@@ -4771,22 +4771,22 @@ function __PRIVATE_compareDocs(e, t, n) {
4771
4771
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4772
4772
  * See the License for the specific language governing permissions and
4773
4773
  * limitations under the License.
4774
- */ const se = new SortedMap(DocumentKey.comparator);
4774
+ */ const oe = new SortedMap(DocumentKey.comparator);
4775
4775
 
4776
4776
  function __PRIVATE_mutableDocumentMap() {
4777
- return se;
4777
+ return oe;
4778
4778
  }
4779
4779
 
4780
- const oe = new SortedMap(DocumentKey.comparator);
4780
+ const _e = new SortedMap(DocumentKey.comparator);
4781
4781
 
4782
4782
  function documentMap(...e) {
4783
- let t = oe;
4783
+ let t = _e;
4784
4784
  for (const n of e) t = t.insert(n.key, n);
4785
4785
  return t;
4786
4786
  }
4787
4787
 
4788
4788
  function __PRIVATE_convertOverlayedDocumentMapToDocumentMap(e) {
4789
- let t = oe;
4789
+ let t = _e;
4790
4790
  return e.forEach(((e, n) => t = t.insert(e, n.overlayedDocument))), t;
4791
4791
  }
4792
4792
 
@@ -4802,20 +4802,20 @@ function __PRIVATE_newDocumentKeyMap() {
4802
4802
  return new ObjectMap((e => e.toString()), ((e, t) => e.isEqual(t)));
4803
4803
  }
4804
4804
 
4805
- const _e = new SortedMap(DocumentKey.comparator);
4805
+ const ae = new SortedMap(DocumentKey.comparator);
4806
4806
 
4807
- const ae = new SortedSet(DocumentKey.comparator);
4807
+ const ue = new SortedSet(DocumentKey.comparator);
4808
4808
 
4809
4809
  function __PRIVATE_documentKeySet(...e) {
4810
- let t = ae;
4810
+ let t = ue;
4811
4811
  for (const n of e) t = t.add(n);
4812
4812
  return t;
4813
4813
  }
4814
4814
 
4815
- const ue = new SortedSet(__PRIVATE_primitiveComparator);
4815
+ const ce = new SortedSet(__PRIVATE_primitiveComparator);
4816
4816
 
4817
4817
  function __PRIVATE_targetIdSet() {
4818
- return ue;
4818
+ return ce;
4819
4819
  }
4820
4820
 
4821
4821
  /**
@@ -5506,7 +5506,7 @@ class __PRIVATE_VerifyMutation extends Mutation {
5506
5506
  */ static from(e, t, n) {
5507
5507
  __PRIVATE_hardAssert(e.mutations.length === n.length);
5508
5508
  let r = function __PRIVATE_documentVersionMap() {
5509
- return _e;
5509
+ return ae;
5510
5510
  }();
5511
5511
  const i = e.mutations;
5512
5512
  for (let e = 0; e < i.length; e++) r = r.insert(i[e].key, n[e].version);
@@ -5620,7 +5620,7 @@ class __PRIVATE_VerifyMutation extends Mutation {
5620
5620
  * Important! The names of these identifiers matter because the string forms
5621
5621
  * are used for reverse lookups from the webchannel stream. Do NOT change the
5622
5622
  * names of these identifiers or change this into a const enum.
5623
- */ var ce, le;
5623
+ */ var le, he;
5624
5624
 
5625
5625
  /**
5626
5626
  * Determines whether an error code represents a permanent error when received
@@ -5685,55 +5685,55 @@ function __PRIVATE_mapCodeFromRpcCode(e) {
5685
5685
  // to send invalid proto messages) we may get an error with no GRPC code.
5686
5686
  return __PRIVATE_logError("GRPC error has no .code"), v.UNKNOWN;
5687
5687
  switch (e) {
5688
- case ce.OK:
5688
+ case le.OK:
5689
5689
  return v.OK;
5690
5690
 
5691
- case ce.CANCELLED:
5691
+ case le.CANCELLED:
5692
5692
  return v.CANCELLED;
5693
5693
 
5694
- case ce.UNKNOWN:
5694
+ case le.UNKNOWN:
5695
5695
  return v.UNKNOWN;
5696
5696
 
5697
- case ce.DEADLINE_EXCEEDED:
5697
+ case le.DEADLINE_EXCEEDED:
5698
5698
  return v.DEADLINE_EXCEEDED;
5699
5699
 
5700
- case ce.RESOURCE_EXHAUSTED:
5700
+ case le.RESOURCE_EXHAUSTED:
5701
5701
  return v.RESOURCE_EXHAUSTED;
5702
5702
 
5703
- case ce.INTERNAL:
5703
+ case le.INTERNAL:
5704
5704
  return v.INTERNAL;
5705
5705
 
5706
- case ce.UNAVAILABLE:
5706
+ case le.UNAVAILABLE:
5707
5707
  return v.UNAVAILABLE;
5708
5708
 
5709
- case ce.UNAUTHENTICATED:
5709
+ case le.UNAUTHENTICATED:
5710
5710
  return v.UNAUTHENTICATED;
5711
5711
 
5712
- case ce.INVALID_ARGUMENT:
5712
+ case le.INVALID_ARGUMENT:
5713
5713
  return v.INVALID_ARGUMENT;
5714
5714
 
5715
- case ce.NOT_FOUND:
5715
+ case le.NOT_FOUND:
5716
5716
  return v.NOT_FOUND;
5717
5717
 
5718
- case ce.ALREADY_EXISTS:
5718
+ case le.ALREADY_EXISTS:
5719
5719
  return v.ALREADY_EXISTS;
5720
5720
 
5721
- case ce.PERMISSION_DENIED:
5721
+ case le.PERMISSION_DENIED:
5722
5722
  return v.PERMISSION_DENIED;
5723
5723
 
5724
- case ce.FAILED_PRECONDITION:
5724
+ case le.FAILED_PRECONDITION:
5725
5725
  return v.FAILED_PRECONDITION;
5726
5726
 
5727
- case ce.ABORTED:
5727
+ case le.ABORTED:
5728
5728
  return v.ABORTED;
5729
5729
 
5730
- case ce.OUT_OF_RANGE:
5730
+ case le.OUT_OF_RANGE:
5731
5731
  return v.OUT_OF_RANGE;
5732
5732
 
5733
- case ce.UNIMPLEMENTED:
5733
+ case le.UNIMPLEMENTED:
5734
5734
  return v.UNIMPLEMENTED;
5735
5735
 
5736
- case ce.DATA_LOSS:
5736
+ case le.DATA_LOSS:
5737
5737
  return v.DATA_LOSS;
5738
5738
 
5739
5739
  default:
@@ -5748,14 +5748,14 @@ function __PRIVATE_mapCodeFromRpcCode(e) {
5748
5748
  * "UNKNOWN", etc.)
5749
5749
  * @returns The equivalent Code. Non-matching responses are mapped to
5750
5750
  * Code.UNKNOWN.
5751
- */ (le = ce || (ce = {}))[le.OK = 0] = "OK", le[le.CANCELLED = 1] = "CANCELLED",
5752
- le[le.UNKNOWN = 2] = "UNKNOWN", le[le.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT",
5753
- le[le.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", le[le.NOT_FOUND = 5] = "NOT_FOUND",
5754
- le[le.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", le[le.PERMISSION_DENIED = 7] = "PERMISSION_DENIED",
5755
- le[le.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", le[le.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED",
5756
- le[le.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", le[le.ABORTED = 10] = "ABORTED",
5757
- le[le.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", le[le.UNIMPLEMENTED = 12] = "UNIMPLEMENTED",
5758
- le[le.INTERNAL = 13] = "INTERNAL", le[le.UNAVAILABLE = 14] = "UNAVAILABLE", le[le.DATA_LOSS = 15] = "DATA_LOSS";
5751
+ */ (he = le || (le = {}))[he.OK = 0] = "OK", he[he.CANCELLED = 1] = "CANCELLED",
5752
+ he[he.UNKNOWN = 2] = "UNKNOWN", he[he.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT",
5753
+ he[he.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", he[he.NOT_FOUND = 5] = "NOT_FOUND",
5754
+ he[he.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", he[he.PERMISSION_DENIED = 7] = "PERMISSION_DENIED",
5755
+ he[he.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", he[he.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED",
5756
+ he[he.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", he[he.ABORTED = 10] = "ABORTED",
5757
+ he[he.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", he[he.UNIMPLEMENTED = 12] = "UNIMPLEMENTED",
5758
+ he[he.INTERNAL = 13] = "INTERNAL", he[he.UNAVAILABLE = 14] = "UNAVAILABLE", he[he.DATA_LOSS = 15] = "DATA_LOSS";
5759
5759
 
5760
5760
  /**
5761
5761
  * @license
@@ -5780,7 +5780,7 @@ le[le.INTERNAL = 13] = "INTERNAL", le[le.UNAVAILABLE = 14] = "UNAVAILABLE", le[l
5780
5780
  * integration tests that have registered callbacks to be notified of events
5781
5781
  * that happen during the test execution.
5782
5782
  */
5783
- let he = null;
5783
+ let Pe = null;
5784
5784
 
5785
5785
  /**
5786
5786
  * Sets the value of the `testingHooksSpi` object.
@@ -5828,7 +5828,7 @@ function __PRIVATE_newTextEncoder() {
5828
5828
  * See the License for the specific language governing permissions and
5829
5829
  * limitations under the License.
5830
5830
  */
5831
- const Pe = new A([ 4294967295, 4294967295 ], 0);
5831
+ const Ie = new A([ 4294967295, 4294967295 ], 0);
5832
5832
 
5833
5833
  // Hash a string using md5 hashing algorithm.
5834
5834
  function __PRIVATE_getMd5HashValue(e) {
@@ -5863,7 +5863,7 @@ class BloomFilter {
5863
5863
  // Calculate hashed value h(i) = h1 + (i * h2).
5864
5864
  let r = e.add(t.multiply(A.fromNumber(n)));
5865
5865
  // Wrap if hash value overflow 64bit.
5866
- return 1 === r.compare(Pe) && (r = new A([ r.getBits(0), r.getBits(1) ], 0)),
5866
+ return 1 === r.compare(Ie) && (r = new A([ r.getBits(0), r.getBits(1) ], 0)),
5867
5867
  r.modulo(this.Ee).toNumber();
5868
5868
  }
5869
5869
  // Return whether the bit on the given index in the bitmap is set to 1.
@@ -6281,7 +6281,7 @@ class __PRIVATE_WatchChangeAggregator {
6281
6281
  const e = 2 /* BloomFilterApplicationStatus.FalsePositive */ === i ? "TargetPurposeExistenceFilterMismatchBloom" /* TargetPurpose.ExistenceFilterMismatchBloom */ : "TargetPurposeExistenceFilterMismatch" /* TargetPurpose.ExistenceFilterMismatch */;
6282
6282
  this.Ke = this.Ke.insert(t, e);
6283
6283
  }
6284
- null == he || he.tt(function __PRIVATE_createExistenceFilterMismatchInfoForTestingHooks(e, t, n, r, i) {
6284
+ null == Pe || Pe.tt(function __PRIVATE_createExistenceFilterMismatchInfoForTestingHooks(e, t, n, r, i) {
6285
6285
  var s, o, _, a, u, c;
6286
6286
  const l = {
6287
6287
  localCacheCount: e,
@@ -6497,13 +6497,13 @@ function __PRIVATE_snapshotChangesMap() {
6497
6497
  return new SortedMap(DocumentKey.comparator);
6498
6498
  }
6499
6499
 
6500
- const Ie = (() => {
6500
+ const Te = (() => {
6501
6501
  const e = {
6502
6502
  asc: "ASCENDING",
6503
6503
  desc: "DESCENDING"
6504
6504
  };
6505
6505
  return e;
6506
- })(), Te = (() => {
6506
+ })(), Ee = (() => {
6507
6507
  const e = {
6508
6508
  "<": "LESS_THAN",
6509
6509
  "<=": "LESS_THAN_OR_EQUAL",
@@ -6517,7 +6517,7 @@ const Ie = (() => {
6517
6517
  "array-contains-any": "ARRAY_CONTAINS_ANY"
6518
6518
  };
6519
6519
  return e;
6520
- })(), Ee = (() => {
6520
+ })(), de = (() => {
6521
6521
  const e = {
6522
6522
  and: "AND",
6523
6523
  or: "OR"
@@ -7050,15 +7050,15 @@ function __PRIVATE_fromFilter(e) {
7050
7050
  }
7051
7051
 
7052
7052
  function __PRIVATE_toDirection(e) {
7053
- return Ie[e];
7053
+ return Te[e];
7054
7054
  }
7055
7055
 
7056
7056
  function __PRIVATE_toOperatorName(e) {
7057
- return Te[e];
7057
+ return Ee[e];
7058
7058
  }
7059
7059
 
7060
7060
  function __PRIVATE_toCompositeOperatorName(e) {
7061
- return Ee[e];
7061
+ return de[e];
7062
7062
  }
7063
7063
 
7064
7064
  function __PRIVATE_toFieldPathReference(e) {
@@ -7616,8 +7616,9 @@ class __PRIVATE_FirestoreIndexValueWriter {
7616
7616
  // -0.0, 0 and 0.0 are all considered the same
7617
7617
  t.dt(0) : t.dt(n));
7618
7618
  } else if ("timestampValue" in e) {
7619
- const n = e.timestampValue;
7620
- this.Et(t, 20), "string" == typeof n ? t.At(n) : (t.At(`${n.seconds || ""}`), t.dt(n.nanos || 0));
7619
+ let n = e.timestampValue;
7620
+ this.Et(t, 20), "string" == typeof n && (n = __PRIVATE_normalizeTimestamp(n)), t.At(`${n.seconds || ""}`),
7621
+ t.dt(n.nanos || 0);
7621
7622
  } else if ("stringValue" in e) this.Rt(e.stringValue, t), this.Vt(t); else if ("bytesValue" in e) this.Et(t, 30),
7622
7623
  t.ft(__PRIVATE_normalizeByteString(e.bytesValue)), this.Vt(t); else if ("referenceValue" in e) this.gt(e.referenceValue, t); else if ("geoPointValue" in e) {
7623
7624
  const n = e.geoPointValue;
@@ -8379,7 +8380,7 @@ function __PRIVATE_applyDistributionFieldAndCompositeFilters(e, t) {
8379
8380
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8380
8381
  * See the License for the specific language governing permissions and
8381
8382
  * limitations under the License.
8382
- */ const de = new Uint8Array(0);
8383
+ */ const Ae = new Uint8Array(0);
8383
8384
 
8384
8385
  /**
8385
8386
  * A persisted implementation of IndexManager.
@@ -8593,7 +8594,7 @@ class __PRIVATE_IndexedDbIndexManager {
8593
8594
  // combined with the values from the query bounds.
8594
8595
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8595
8596
  for (let c = 0; c < _; ++c) {
8596
- const _ = t ? this.Tn(t[c / a]) : de, l = this.En(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
8597
+ const _ = t ? this.Tn(t[c / a]) : Ae, l = this.En(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
8597
8598
  /* inclusive= */ !0)));
8598
8599
  u.push(...this.createRange(l, h, P));
8599
8600
  }
@@ -8790,7 +8791,7 @@ class __PRIVATE_IndexedDbIndexManager {
8790
8791
  if (null != i) {
8791
8792
  const s = e.data.field(i.fieldPath);
8792
8793
  if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.Tn(i), r));
8793
- } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, de, r));
8794
+ } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Ae, r));
8794
8795
  return n;
8795
8796
  }
8796
8797
  /**
@@ -8865,7 +8866,7 @@ class __PRIVATE_IndexedDbIndexManager {
8865
8866
  // If we encounter two bounds that will create an unmatchable key range,
8866
8867
  // then we return an empty set of key ranges.
8867
8868
  if (this.Dn(r[e], r[e + 1])) return [];
8868
- 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, [] ];
8869
+ const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, Ae, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, Ae, [] ];
8869
8870
  i.push(IDBKeyRange.bound(t, n));
8870
8871
  }
8871
8872
  return i;
@@ -8933,7 +8934,7 @@ function __PRIVATE_getMinOffsetFromFieldIndexes(e) {
8933
8934
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8934
8935
  * See the License for the specific language governing permissions and
8935
8936
  * limitations under the License.
8936
- */ const Ae = {
8937
+ */ const Re = {
8937
8938
  didRun: !1,
8938
8939
  sequenceNumbersCollected: 0,
8939
8940
  targetsRemoved: 0,
@@ -9666,8 +9667,8 @@ class __PRIVATE_TargetIdGenerator {
9666
9667
  }
9667
9668
  collect(e, t) {
9668
9669
  return -1 === this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", "Garbage collection skipped; disabled"),
9669
- PersistencePromise.resolve(Ae)) : 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}`),
9670
- Ae) : this.Yn(e, t)));
9670
+ PersistencePromise.resolve(Re)) : 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}`),
9671
+ Re) : this.Yn(e, t)));
9671
9672
  }
9672
9673
  getCacheSize(e) {
9673
9674
  return this.jn.getCacheSize(e);
@@ -10262,6 +10263,7 @@ function __PRIVATE_dbCollectionGroupKey(e, t) {
10262
10263
  * document lookup via `getAll()`.
10263
10264
  * 14. Add overlays.
10264
10265
  * 15. Add indexing support.
10266
+ * 16. Parse timestamp strings before creating index entries.
10265
10267
  */
10266
10268
  /**
10267
10269
  * @license
@@ -11539,7 +11541,13 @@ class __PRIVATE_MemoryLruDelegate {
11539
11541
  }).createIndex("documentKeyIndex", z, {
11540
11542
  unique: !1
11541
11543
  });
11542
- }(e)))), s;
11544
+ }(e)))), n < 16 && r >= 16 && (
11545
+ // Clear the object stores to remove possibly corrupted index entries
11546
+ s = s.next((() => {
11547
+ t.objectStore("indexState").clear();
11548
+ })).next((() => {
11549
+ t.objectStore("indexEntries").clear();
11550
+ }))), s;
11543
11551
  }
11544
11552
  ei(e) {
11545
11553
  let t = 0;
@@ -11682,7 +11690,7 @@ function __PRIVATE_createQueryCache(e) {
11682
11690
  }), e.createObjectStore("targetGlobal");
11683
11691
  }
11684
11692
 
11685
- const Re = "Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";
11693
+ const Ve = "Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";
11686
11694
 
11687
11695
  /**
11688
11696
  * Oldest acceptable age in milliseconds for client metadata before the client
@@ -11745,7 +11753,7 @@ class __PRIVATE_IndexedDbPersistence {
11745
11753
  * If set to true, forcefully obtains database access. Existing tabs will
11746
11754
  * no longer be able to access IndexedDB.
11747
11755
  */
11748
- u, c = 15) {
11756
+ u, c = 16) {
11749
11757
  if (this.allowTabSynchronization = e, this.persistenceKey = t, this.clientId = n,
11750
11758
  this.oi = i, this.window = s, this.document = o, this._i = a, this.ai = u, this.ui = c,
11751
11759
  this.kr = null, this.qr = !1, this.isPrimary = !1, this.networkEnabled = !0,
@@ -11778,7 +11786,7 @@ class __PRIVATE_IndexedDbPersistence {
11778
11786
  if (!this.isPrimary && !this.allowTabSynchronization)
11779
11787
  // Fail `start()` if `synchronizeTabs` is disabled and we cannot
11780
11788
  // obtain the primary lease.
11781
- throw new FirestoreError(v.FAILED_PRECONDITION, Re);
11789
+ throw new FirestoreError(v.FAILED_PRECONDITION, Ve);
11782
11790
  return this.Ri(), this.Vi(), this.mi(), this.runTransaction("getHighestListenSequenceNumber", "readonly", (e => this.Qr.getHighestSequenceNumber(e)));
11783
11791
  })).then((e => {
11784
11792
  this.kr = new __PRIVATE_ListenSequence(e, this._i);
@@ -11920,7 +11928,7 @@ class __PRIVATE_IndexedDbPersistence {
11920
11928
  // settings is not supported.
11921
11929
  // TODO(b/114226234): Remove this check when `synchronizeTabs` can
11922
11930
  // no longer be turned off.
11923
- throw new FirestoreError(v.FAILED_PRECONDITION, Re);
11931
+ throw new FirestoreError(v.FAILED_PRECONDITION, Ve);
11924
11932
  return !1;
11925
11933
  }
11926
11934
  }
@@ -11990,7 +11998,7 @@ class __PRIVATE_IndexedDbPersistence {
11990
11998
  const r = "readonly" === t ? "readonly" : "readwrite", i =
11991
11999
  /** Returns the object stores for the provided schema. */
11992
12000
  function __PRIVATE_getObjectStores(e) {
11993
- return 15 === e ? te : 14 === e ? ee : 13 === e ? X : 12 === e ? Z : 11 === e ? Y : void fail();
12001
+ return 16 === e ? ne : 15 === e ? te : 14 === e ? ee : 13 === e ? X : 12 === e ? Z : 11 === e ? Y : void fail();
11994
12002
  }(this.ui);
11995
12003
  let s;
11996
12004
  // Do all transactions as readwrite against all object stores, since we
@@ -12011,7 +12019,7 @@ class __PRIVATE_IndexedDbPersistence {
12011
12019
  // be turned off.
12012
12020
  ki(e) {
12013
12021
  return __PRIVATE_primaryClientStore(e).get("owner").next((e => {
12014
- if (null !== e && this.Ci(e.leaseTimestampMs, 5e3) && !this.Mi(e.ownerId) && !this.Si(e) && !(this.ai || this.allowTabSynchronization && e.allowTabSynchronization)) throw new FirestoreError(v.FAILED_PRECONDITION, Re);
12022
+ if (null !== e && this.Ci(e.leaseTimestampMs, 5e3) && !this.Mi(e.ownerId) && !this.Si(e) && !(this.ai || this.allowTabSynchronization && e.allowTabSynchronization)) throw new FirestoreError(v.FAILED_PRECONDITION, Ve);
12015
12023
  }));
12016
12024
  }
12017
12025
  /**
@@ -13508,7 +13516,7 @@ class __PRIVATE_BrowserConnectivityMonitor {
13508
13516
  /**
13509
13517
  * The value returned from the most recent invocation of
13510
13518
  * `generateUniqueDebugId()`, or null if it has never been invoked.
13511
- */ let Ve = null;
13519
+ */ let me = null;
13512
13520
 
13513
13521
  /**
13514
13522
  * Generates and returns an initial value for `lastUniqueDebugId`.
@@ -13533,9 +13541,9 @@ class __PRIVATE_BrowserConnectivityMonitor {
13533
13541
  * @return the 10-character generated ID (e.g. "0xa1b2c3d4").
13534
13542
  */
13535
13543
  function __PRIVATE_generateUniqueDebugId() {
13536
- return null === Ve ? Ve = function __PRIVATE_generateInitialUniqueDebugId() {
13544
+ return null === me ? me = function __PRIVATE_generateInitialUniqueDebugId() {
13537
13545
  return 268435456 + Math.round(2147483648 * Math.random());
13538
- }() : Ve++, "0x" + Ve.toString(16);
13546
+ }() : me++, "0x" + me.toString(16);
13539
13547
  }
13540
13548
 
13541
13549
  /**
@@ -13553,7 +13561,7 @@ function __PRIVATE_generateUniqueDebugId() {
13553
13561
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13554
13562
  * See the License for the specific language governing permissions and
13555
13563
  * limitations under the License.
13556
- */ const me = {
13564
+ */ const fe = {
13557
13565
  BatchGetDocuments: "batchGet",
13558
13566
  Commit: "commit",
13559
13567
  RunQuery: "runQuery",
@@ -13631,7 +13639,7 @@ class __PRIVATE_StreamBridge {
13631
13639
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13632
13640
  * See the License for the specific language governing permissions and
13633
13641
  * limitations under the License.
13634
- */ const fe = "WebChannelConnection";
13642
+ */ const ge = "WebChannelConnection";
13635
13643
 
13636
13644
  class __PRIVATE_WebChannelConnection extends
13637
13645
  /**
@@ -13685,7 +13693,7 @@ class __PRIVATE_RestConnection {
13685
13693
  t && t.headers.forEach(((t, n) => e[n] = t)), n && n.headers.forEach(((t, n) => e[n] = t));
13686
13694
  }
13687
13695
  bo(e, t) {
13688
- const n = me[e];
13696
+ const n = fe[e];
13689
13697
  return `${this.fo}/v1/${t}:${n}`;
13690
13698
  }
13691
13699
  /**
@@ -13709,17 +13717,17 @@ class __PRIVATE_RestConnection {
13709
13717
  switch (_.getLastErrorCode()) {
13710
13718
  case f.NO_ERROR:
13711
13719
  const t = _.getResponseJson();
13712
- __PRIVATE_logDebug(fe, `XHR for RPC '${e}' ${i} received:`, JSON.stringify(t)),
13720
+ __PRIVATE_logDebug(ge, `XHR for RPC '${e}' ${i} received:`, JSON.stringify(t)),
13713
13721
  s(t);
13714
13722
  break;
13715
13723
 
13716
13724
  case f.TIMEOUT:
13717
- __PRIVATE_logDebug(fe, `RPC '${e}' ${i} timed out`), o(new FirestoreError(v.DEADLINE_EXCEEDED, "Request time out"));
13725
+ __PRIVATE_logDebug(ge, `RPC '${e}' ${i} timed out`), o(new FirestoreError(v.DEADLINE_EXCEEDED, "Request time out"));
13718
13726
  break;
13719
13727
 
13720
13728
  case f.HTTP_ERROR:
13721
13729
  const n = _.getStatus();
13722
- if (__PRIVATE_logDebug(fe, `RPC '${e}' ${i} failed with status:`, n, "response text:", _.getResponseText()),
13730
+ if (__PRIVATE_logDebug(ge, `RPC '${e}' ${i} failed with status:`, n, "response text:", _.getResponseText()),
13723
13731
  n > 0) {
13724
13732
  let e = _.getResponseJson();
13725
13733
  Array.isArray(e) && (e = e[0]);
@@ -13741,11 +13749,11 @@ class __PRIVATE_RestConnection {
13741
13749
  fail();
13742
13750
  }
13743
13751
  } finally {
13744
- __PRIVATE_logDebug(fe, `RPC '${e}' ${i} completed.`);
13752
+ __PRIVATE_logDebug(ge, `RPC '${e}' ${i} completed.`);
13745
13753
  }
13746
13754
  }));
13747
13755
  const a = JSON.stringify(r);
13748
- __PRIVATE_logDebug(fe, `RPC '${e}' ${i} sending request:`, r), _.send(t, "POST", a, n, 15);
13756
+ __PRIVATE_logDebug(ge, `RPC '${e}' ${i} sending request:`, r), _.send(t, "POST", a, n, 15);
13749
13757
  }));
13750
13758
  }
13751
13759
  Fo(e, t, n) {
@@ -13786,7 +13794,7 @@ class __PRIVATE_RestConnection {
13786
13794
  // which is recognized by the webchannel backend.
13787
13795
  _.encodeInitMessageHeaders = !0;
13788
13796
  const u = i.join("");
13789
- __PRIVATE_logDebug(fe, `Creating RPC '${e}' stream ${r}: ${u}`, _);
13797
+ __PRIVATE_logDebug(ge, `Creating RPC '${e}' stream ${r}: ${u}`, _);
13790
13798
  const c = s.createWebChannel(u, _);
13791
13799
  // WebChannel supports sending the first message with the handshake - saving
13792
13800
  // a network round trip. However, it will have to call send in the same
@@ -13799,8 +13807,8 @@ class __PRIVATE_RestConnection {
13799
13807
  // on a closed stream
13800
13808
  const P = new __PRIVATE_StreamBridge({
13801
13809
  lo: t => {
13802
- h ? __PRIVATE_logDebug(fe, `Not sending because RPC '${e}' stream ${r} is closed:`, t) : (l || (__PRIVATE_logDebug(fe, `Opening RPC '${e}' stream ${r} transport.`),
13803
- c.open(), l = !0), __PRIVATE_logDebug(fe, `RPC '${e}' stream ${r} sending:`, t),
13810
+ h ? __PRIVATE_logDebug(ge, `Not sending because RPC '${e}' stream ${r} is closed:`, t) : (l || (__PRIVATE_logDebug(ge, `Opening RPC '${e}' stream ${r} transport.`),
13811
+ c.open(), l = !0), __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} sending:`, t),
13804
13812
  c.send(t));
13805
13813
  },
13806
13814
  ho: () => c.close()
@@ -13822,12 +13830,12 @@ class __PRIVATE_RestConnection {
13822
13830
  // Note that eventually this function could go away if we are confident
13823
13831
  // enough the code is exception free.
13824
13832
  return __PRIVATE_unguardedEventListen(c, y.EventType.OPEN, (() => {
13825
- h || __PRIVATE_logDebug(fe, `RPC '${e}' stream ${r} transport opened.`);
13833
+ h || __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} transport opened.`);
13826
13834
  })), __PRIVATE_unguardedEventListen(c, y.EventType.CLOSE, (() => {
13827
- h || (h = !0, __PRIVATE_logDebug(fe, `RPC '${e}' stream ${r} transport closed`),
13835
+ h || (h = !0, __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} transport closed`),
13828
13836
  P.Vo());
13829
13837
  })), __PRIVATE_unguardedEventListen(c, y.EventType.ERROR, (t => {
13830
- h || (h = !0, __PRIVATE_logWarn(fe, `RPC '${e}' stream ${r} transport errored:`, t),
13838
+ h || (h = !0, __PRIVATE_logWarn(ge, `RPC '${e}' stream ${r} transport errored:`, t),
13831
13839
  P.Vo(new FirestoreError(v.UNAVAILABLE, "The operation could not be completed")));
13832
13840
  })), __PRIVATE_unguardedEventListen(c, y.EventType.MESSAGE, (t => {
13833
13841
  var n;
@@ -13841,7 +13849,7 @@ class __PRIVATE_RestConnection {
13841
13849
  // Use any because msgData.error is not typed.
13842
13850
  const s = i, o = s.error || (null === (n = s[0]) || void 0 === n ? void 0 : n.error);
13843
13851
  if (o) {
13844
- __PRIVATE_logDebug(fe, `RPC '${e}' stream ${r} received error:`, o);
13852
+ __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} received error:`, o);
13845
13853
  // error.status will be a string like 'OK' or 'NOT_FOUND'.
13846
13854
  const t = o.status;
13847
13855
  let n =
@@ -13854,16 +13862,16 @@ class __PRIVATE_RestConnection {
13854
13862
  function __PRIVATE_mapCodeFromRpcStatus(e) {
13855
13863
  // lookup by string
13856
13864
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13857
- const t = ce[e];
13865
+ const t = le[e];
13858
13866
  if (void 0 !== t) return __PRIVATE_mapCodeFromRpcCode(t);
13859
13867
  }(t), i = o.message;
13860
13868
  void 0 === n && (n = v.INTERNAL, i = "Unknown error status: " + t + " with message " + o.message),
13861
13869
  // Mark closed so no further events are propagated
13862
13870
  h = !0, P.Vo(new FirestoreError(n, i)), c.close();
13863
- } else __PRIVATE_logDebug(fe, `RPC '${e}' stream ${r} received:`, i), P.mo(i);
13871
+ } else __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} received:`, i), P.mo(i);
13864
13872
  }
13865
13873
  })), __PRIVATE_unguardedEventListen(o, w.STAT_EVENT, (t => {
13866
- t.stat === S.PROXY ? __PRIVATE_logDebug(fe, `RPC '${e}' stream ${r} detected buffering proxy`) : t.stat === S.NOPROXY && __PRIVATE_logDebug(fe, `RPC '${e}' stream ${r} detected no buffering proxy`);
13874
+ t.stat === S.PROXY ? __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} detected buffering proxy`) : t.stat === S.NOPROXY && __PRIVATE_logDebug(ge, `RPC '${e}' stream ${r} detected no buffering proxy`);
13867
13875
  })), setTimeout((() => {
13868
13876
  // Technically we could/should wait for the WebChannel opened event,
13869
13877
  // but because we want to send the first message with the WebChannel
@@ -15452,12 +15460,12 @@ function __PRIVATE_raiseSnapshotsInSyncEvent(e) {
15452
15460
  }));
15453
15461
  }
15454
15462
 
15455
- var ge, pe;
15463
+ var pe, ye;
15456
15464
 
15457
15465
  /** Listen to both cache and server changes */
15458
- (pe = ge || (ge = {})).j_ = "default",
15466
+ (ye = pe || (pe = {})).j_ = "default",
15459
15467
  /** Listen to changes in cache only */
15460
- pe.Cache = "cache";
15468
+ ye.Cache = "cache";
15461
15469
 
15462
15470
  /**
15463
15471
  * QueryListener takes a series of internal view snapshots and determines
@@ -15532,7 +15540,7 @@ class __PRIVATE_QueryListener {
15532
15540
  this.J_ = !0, this.H_.next(e);
15533
15541
  }
15534
15542
  U_() {
15535
- return this.options.source !== ge.Cache;
15543
+ return this.options.source !== pe.Cache;
15536
15544
  }
15537
15545
  }
15538
15546
 
@@ -17899,7 +17907,7 @@ function __PRIVATE_cloneLongPollingOptions(e) {
17899
17907
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17900
17908
  * See the License for the specific language governing permissions and
17901
17909
  * limitations under the License.
17902
- */ const ye = new Map;
17910
+ */ const we = new Map;
17903
17911
 
17904
17912
  /**
17905
17913
  * An instance map that ensures only one Datastore exists per Firestore
@@ -18145,8 +18153,8 @@ class Firestore$1 {
18145
18153
  * when the `Firestore` instance is terminated.
18146
18154
  */
18147
18155
  return function __PRIVATE_removeComponents(e) {
18148
- const t = ye.get(e);
18149
- t && (__PRIVATE_logDebug("ComponentProvider", "Removing Datastore"), ye.delete(e),
18156
+ const t = we.get(e);
18157
+ t && (__PRIVATE_logDebug("ComponentProvider", "Removing Datastore"), we.delete(e),
18150
18158
  t.terminate());
18151
18159
  }(this), Promise.resolve();
18152
18160
  }
@@ -18697,7 +18705,7 @@ class LoadBundleTask {
18697
18705
  * Constant used to indicate the LRU garbage collection should be disabled.
18698
18706
  * Set this value as the `cacheSizeBytes` on the settings passed to the
18699
18707
  * {@link Firestore} instance.
18700
- */ const we = -1;
18708
+ */ const Se = -1;
18701
18709
 
18702
18710
  /**
18703
18711
  * The Cloud Firestore service interface.
@@ -19320,7 +19328,7 @@ class AggregateField {
19320
19328
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19321
19329
  * See the License for the specific language governing permissions and
19322
19330
  * limitations under the License.
19323
- */ const Se = /^__.*__$/;
19331
+ */ const be = /^__.*__$/;
19324
19332
 
19325
19333
  /** The result of parsing document data (e.g. for a setData call). */ class ParsedSetData {
19326
19334
  constructor(e, t, n) {
@@ -19431,7 +19439,7 @@ function __PRIVATE_isWrite(e) {
19431
19439
  }
19432
19440
  pu(e) {
19433
19441
  if (0 === e.length) throw this.Su("Document fields must not be empty");
19434
- if (__PRIVATE_isWrite(this.Vu) && Se.test(e)) throw this.Su('Document fields cannot begin and end with "__"');
19442
+ if (__PRIVATE_isWrite(this.Vu) && be.test(e)) throw this.Su('Document fields cannot begin and end with "__"');
19435
19443
  }
19436
19444
  }
19437
19445
 
@@ -19786,7 +19794,7 @@ function __PRIVATE_validatePlainObject(e, t, n) {
19786
19794
 
19787
19795
  /**
19788
19796
  * Matches any characters in a field path string that are reserved.
19789
- */ const be = new RegExp("[~\\*/\\[\\]]");
19797
+ */ const De = new RegExp("[~\\*/\\[\\]]");
19790
19798
 
19791
19799
  /**
19792
19800
  * Wraps fromDotSeparatedString with an error message about the method that
@@ -19797,7 +19805,7 @@ function __PRIVATE_validatePlainObject(e, t, n) {
19797
19805
  * @param targetDoc - The document against which the field path will be
19798
19806
  * evaluated.
19799
19807
  */ function __PRIVATE_fieldPathFromDotSeparatedString(e, t, n) {
19800
- if (t.search(be) >= 0) throw __PRIVATE_createError(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`, e,
19808
+ if (t.search(De) >= 0) throw __PRIVATE_createError(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`, e,
19801
19809
  /* hasConverter= */ !1,
19802
19810
  /* path= */ void 0, n);
19803
19811
  try {
@@ -21351,7 +21359,7 @@ class __PRIVATE_MultiTabManagerImpl {
21351
21359
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21352
21360
  * See the License for the specific language governing permissions and
21353
21361
  * limitations under the License.
21354
- */ const De = {
21362
+ */ const Ce = {
21355
21363
  maxAttempts: 5
21356
21364
  };
21357
21365
 
@@ -21563,7 +21571,7 @@ class Transaction extends class Transaction$1 {
21563
21571
  * rejected promise with the corresponding failure error is returned.
21564
21572
  */ function runTransaction(e, t, n) {
21565
21573
  e = __PRIVATE_cast(e, Firestore);
21566
- const r = Object.assign(Object.assign({}, De), n);
21574
+ const r = Object.assign(Object.assign({}, Ce), n);
21567
21575
  !function __PRIVATE_validateTransactionOptions(e) {
21568
21576
  if (e.maxAttempts < 1) throw new FirestoreError(v.INVALID_ARGUMENT, "Max attempts must be at least 1");
21569
21577
  }(r);
@@ -21779,12 +21787,12 @@ function __PRIVATE_tryGetString(e, t) {
21779
21787
  */ function getPersistentCacheIndexManager(e) {
21780
21788
  var t;
21781
21789
  e = __PRIVATE_cast(e, Firestore);
21782
- const n = Ce.get(e);
21790
+ const n = ve.get(e);
21783
21791
  if (n) return n;
21784
21792
  const r = ensureFirestoreConfigured(e);
21785
21793
  if ("persistent" !== (null === (t = r._uninitializedComponentsProvider) || void 0 === t ? void 0 : t._offlineKind)) return null;
21786
21794
  const i = new PersistentCacheIndexManager(r);
21787
- return Ce.set(e, i), i;
21795
+ return ve.set(e, i), i;
21788
21796
  }
21789
21797
 
21790
21798
  /**
@@ -21827,7 +21835,7 @@ function __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, t) {
21827
21835
  * Use a `WeakMap` so that the mapping will be automatically dropped when the
21828
21836
  * `Firestore` instance is garbage collected. This emulates a private member
21829
21837
  * as described in https://goo.gle/454yvug.
21830
- */ const Ce = new WeakMap;
21838
+ */ const ve = new WeakMap;
21831
21839
 
21832
21840
  /**
21833
21841
  * @license
@@ -21880,10 +21888,10 @@ function __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, t) {
21880
21888
  this.Mu = new Map;
21881
21889
  }
21882
21890
  static get instance() {
21883
- return ve || (ve = new __PRIVATE_TestingHooksSpiImpl, function __PRIVATE_setTestingHooksSpi(e) {
21884
- if (he) throw new Error("a TestingHooksSpi instance is already set");
21885
- he = e;
21886
- }(ve)), ve;
21891
+ return Fe || (Fe = new __PRIVATE_TestingHooksSpiImpl, function __PRIVATE_setTestingHooksSpi(e) {
21892
+ if (Pe) throw new Error("a TestingHooksSpi instance is already set");
21893
+ Pe = e;
21894
+ }(Fe)), Fe;
21887
21895
  }
21888
21896
  tt(e) {
21889
21897
  this.Mu.forEach((t => t(e)));
@@ -21894,7 +21902,7 @@ function __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, t) {
21894
21902
  }
21895
21903
  }
21896
21904
 
21897
- let ve = null;
21905
+ let Fe = null;
21898
21906
 
21899
21907
  /**
21900
21908
  * @license
@@ -21922,10 +21930,10 @@ let ve = null;
21922
21930
  return r = Object.assign({
21923
21931
  useFetchStreams: t
21924
21932
  }, r), s._setSettings(r), s;
21925
- }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.5.0-canary.9ca1a4e4f", e),
21933
+ }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.5.0-canary.c6ecac8ac", e),
21926
21934
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21927
- r(b, "4.5.0-canary.9ca1a4e4f", "esm2017");
21935
+ r(b, "4.5.0-canary.c6ecac8ac", "esm2017");
21928
21936
  }("rn", /* useFetchStreams= */ !1);
21929
21937
 
21930
- export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, we 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 };
21938
+ export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, Se 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 };
21931
21939
  //# sourceMappingURL=index.rn.js.map