@dereekb/firebase 13.30.0 → 13.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -65,7 +65,7 @@ function _create_class$b(Constructor, protoProps, staticProps) {
65
65
  if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
66
66
  return Constructor;
67
67
  }
68
- function _define_property$y(obj, key, value) {
68
+ function _define_property$z(obj, key, value) {
69
69
  if (key in obj) {
70
70
  Object.defineProperty(obj, key, {
71
71
  value: value,
@@ -91,7 +91,7 @@ function _define_property$y(obj, key, value) {
91
91
  */ var AbstractFirestoreDocumentDataAccessorWrapper = /*#__PURE__*/ function() {
92
92
  function AbstractFirestoreDocumentDataAccessorWrapper(accessor) {
93
93
  _class_call_check$j(this, AbstractFirestoreDocumentDataAccessorWrapper);
94
- _define_property$y(this, "_accessor", void 0);
94
+ _define_property$z(this, "_accessor", void 0);
95
95
  this._accessor = accessor;
96
96
  }
97
97
  _create_class$b(AbstractFirestoreDocumentDataAccessorWrapper, [
@@ -264,7 +264,7 @@ function _class_call_check$i(instance, Constructor) {
264
264
  throw new TypeError("Cannot call a class as a function");
265
265
  }
266
266
  }
267
- function _define_property$x(obj, key, value) {
267
+ function _define_property$y(obj, key, value) {
268
268
  if (key in obj) {
269
269
  Object.defineProperty(obj, key, {
270
270
  value: value,
@@ -312,7 +312,7 @@ function _inherits$9(subClass, superClass) {
312
312
  });
313
313
  if (superClass) _set_prototype_of$9(subClass, superClass);
314
314
  }
315
- function _object_spread$q(target) {
315
+ function _object_spread$r(target) {
316
316
  for(var i = 1; i < arguments.length; i++){
317
317
  var source = arguments[i] != null ? arguments[i] : {};
318
318
  var ownKeys = Object.keys(source);
@@ -322,7 +322,7 @@ function _object_spread$q(target) {
322
322
  }));
323
323
  }
324
324
  ownKeys.forEach(function(key) {
325
- _define_property$x(target, key, source[key]);
325
+ _define_property$y(target, key, source[key]);
326
326
  });
327
327
  }
328
328
  return target;
@@ -375,13 +375,13 @@ function _is_native_reflect_construct$9() {
375
375
  var _this;
376
376
  _this = _call_super$9(this, ModifyBeforeSetFirestoreDocumentDataAccessorWrapper, [
377
377
  accessor
378
- ]), _define_property$x(_this, "config", void 0), _define_property$x(_this, "modifier", void 0), _define_property$x(_this, "set", void 0);
378
+ ]), _define_property$y(_this, "config", void 0), _define_property$y(_this, "modifier", void 0), _define_property$y(_this, "set", void 0);
379
379
  _this.config = config;
380
380
  var when = config.when;
381
381
  _this.modifier = util.mergeModifiers(util.asArray(config.modifier));
382
382
  var setFn;
383
383
  var modifyData = function modifyData(data, options) {
384
- var copy = _object_spread$q({}, data);
384
+ var copy = _object_spread$r({}, data);
385
385
  var input = {
386
386
  data: copy,
387
387
  documentRef: _this.documentRef,
@@ -1254,7 +1254,7 @@ function _create_class$a(Constructor, protoProps, staticProps) {
1254
1254
  if (protoProps) _defineProperties$a(Constructor.prototype, protoProps);
1255
1255
  return Constructor;
1256
1256
  }
1257
- function _define_property$w(obj, key, value) {
1257
+ function _define_property$x(obj, key, value) {
1258
1258
  if (key in obj) {
1259
1259
  Object.defineProperty(obj, key, {
1260
1260
  value: value,
@@ -1329,13 +1329,13 @@ function _is_native_reflect_construct$8() {
1329
1329
  function AbstractFirestoreDocument(accessor, documentAccessor) {
1330
1330
  var _this = this;
1331
1331
  _class_call_check$h(this, AbstractFirestoreDocument);
1332
- _define_property$w(this, "_accessor", void 0);
1333
- _define_property$w(this, "_documentAccessor", void 0);
1334
- _define_property$w(this, "_cache", void 0);
1335
- _define_property$w(this, "stream$", rxjs.lazyFrom(function() {
1332
+ _define_property$x(this, "_accessor", void 0);
1333
+ _define_property$x(this, "_documentAccessor", void 0);
1334
+ _define_property$x(this, "_cache", void 0);
1335
+ _define_property$x(this, "stream$", rxjs.lazyFrom(function() {
1336
1336
  return _this._accessor.stream();
1337
1337
  }));
1338
- _define_property$w(this, "data$", rxjs.lazyFrom(function() {
1338
+ _define_property$x(this, "data$", rxjs.lazyFrom(function() {
1339
1339
  return dataFromSnapshotStream(_this.stream$);
1340
1340
  }));
1341
1341
  this._accessor = accessor;
@@ -1748,7 +1748,7 @@ var AbstractFirestoreDocumentWithParent = /*#__PURE__*/ function(AbstractFiresto
1748
1748
  x.loadDocumentForWriteBatch = singleAccessor.loadDocumentForWriteBatch;
1749
1749
  }
1750
1750
 
1751
- function _array_like_to_array$h(arr, len) {
1751
+ function _array_like_to_array$i(arr, len) {
1752
1752
  if (len == null || len > arr.length) len = arr.length;
1753
1753
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1754
1754
  return arr2;
@@ -1813,15 +1813,15 @@ function _non_iterable_rest$5() {
1813
1813
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1814
1814
  }
1815
1815
  function _sliced_to_array$5(arr, i) {
1816
- return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$5();
1816
+ return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$5();
1817
1817
  }
1818
- function _unsupported_iterable_to_array$h(o, minLen) {
1818
+ function _unsupported_iterable_to_array$i(o, minLen) {
1819
1819
  if (!o) return;
1820
- if (typeof o === "string") return _array_like_to_array$h(o, minLen);
1820
+ if (typeof o === "string") return _array_like_to_array$i(o, minLen);
1821
1821
  var n = Object.prototype.toString.call(o).slice(8, -1);
1822
1822
  if (n === "Object" && o.constructor) n = o.constructor.name;
1823
1823
  if (n === "Map" || n === "Set") return Array.from(n);
1824
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
1824
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
1825
1825
  }
1826
1826
  function _ts_generator$k(thisArg, body) {
1827
1827
  var f, y, t, _ = {
@@ -3860,7 +3860,7 @@ function _ts_generator$i(thisArg, body) {
3860
3860
  return path;
3861
3861
  }
3862
3862
 
3863
- function _define_property$v(obj, key, value) {
3863
+ function _define_property$w(obj, key, value) {
3864
3864
  if (key in obj) {
3865
3865
  Object.defineProperty(obj, key, {
3866
3866
  value: value,
@@ -3873,7 +3873,7 @@ function _define_property$v(obj, key, value) {
3873
3873
  }
3874
3874
  return obj;
3875
3875
  }
3876
- function _object_spread$p(target) {
3876
+ function _object_spread$q(target) {
3877
3877
  for(var i = 1; i < arguments.length; i++){
3878
3878
  var source = arguments[i] != null ? arguments[i] : {};
3879
3879
  var ownKeys = Object.keys(source);
@@ -3883,12 +3883,12 @@ function _object_spread$p(target) {
3883
3883
  }));
3884
3884
  }
3885
3885
  ownKeys.forEach(function(key) {
3886
- _define_property$v(target, key, source[key]);
3886
+ _define_property$w(target, key, source[key]);
3887
3887
  });
3888
3888
  }
3889
3889
  return target;
3890
3890
  }
3891
- function ownKeys$l(object, enumerableOnly) {
3891
+ function ownKeys$m(object, enumerableOnly) {
3892
3892
  var keys = Object.keys(object);
3893
3893
  if (Object.getOwnPropertySymbols) {
3894
3894
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3896,12 +3896,12 @@ function ownKeys$l(object, enumerableOnly) {
3896
3896
  }
3897
3897
  return keys;
3898
3898
  }
3899
- function _object_spread_props$l(target, source) {
3899
+ function _object_spread_props$m(target, source) {
3900
3900
  source = source != null ? source : {};
3901
3901
  if (Object.getOwnPropertyDescriptors) {
3902
3902
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3903
3903
  } else {
3904
- ownKeys$l(Object(source)).forEach(function(key) {
3904
+ ownKeys$m(Object(source)).forEach(function(key) {
3905
3905
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3906
3906
  });
3907
3907
  }
@@ -3987,7 +3987,7 @@ function _object_spread_props$l(target, source) {
3987
3987
  }
3988
3988
  // If specific fields are specified for merging, only include those fields
3989
3989
  if (mergeFields) {
3990
- toOptions = _object_spread_props$l(_object_spread$p({}, toOptions), {
3990
+ toOptions = _object_spread_props$m(_object_spread$q({}, toOptions), {
3991
3991
  fields: asTopLevelFieldPaths(mergeFields)
3992
3992
  });
3993
3993
  }
@@ -4034,7 +4034,7 @@ function _object_spread_props$l(target, source) {
4034
4034
  * Using null is consistent with Firestore's approach to empty/unset values.
4035
4035
  */ var FIRESTORE_EMPTY_VALUE = null;
4036
4036
 
4037
- function _define_property$u(obj, key, value) {
4037
+ function _define_property$v(obj, key, value) {
4038
4038
  if (key in obj) {
4039
4039
  Object.defineProperty(obj, key, {
4040
4040
  value: value,
@@ -4047,7 +4047,7 @@ function _define_property$u(obj, key, value) {
4047
4047
  }
4048
4048
  return obj;
4049
4049
  }
4050
- function _object_spread$o(target) {
4050
+ function _object_spread$p(target) {
4051
4051
  for(var i = 1; i < arguments.length; i++){
4052
4052
  var source = arguments[i] != null ? arguments[i] : {};
4053
4053
  var ownKeys = Object.keys(source);
@@ -4057,12 +4057,12 @@ function _object_spread$o(target) {
4057
4057
  }));
4058
4058
  }
4059
4059
  ownKeys.forEach(function(key) {
4060
- _define_property$u(target, key, source[key]);
4060
+ _define_property$v(target, key, source[key]);
4061
4061
  });
4062
4062
  }
4063
4063
  return target;
4064
4064
  }
4065
- function ownKeys$k(object, enumerableOnly) {
4065
+ function ownKeys$l(object, enumerableOnly) {
4066
4066
  var keys = Object.keys(object);
4067
4067
  if (Object.getOwnPropertySymbols) {
4068
4068
  var symbols = Object.getOwnPropertySymbols(object);
@@ -4070,12 +4070,12 @@ function ownKeys$k(object, enumerableOnly) {
4070
4070
  }
4071
4071
  return keys;
4072
4072
  }
4073
- function _object_spread_props$k(target, source) {
4073
+ function _object_spread_props$l(target, source) {
4074
4074
  source = source != null ? source : {};
4075
4075
  if (Object.getOwnPropertyDescriptors) {
4076
4076
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4077
4077
  } else {
4078
- ownKeys$k(Object(source)).forEach(function(key) {
4078
+ ownKeys$l(Object(source)).forEach(function(key) {
4079
4079
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4080
4080
  });
4081
4081
  }
@@ -4275,7 +4275,7 @@ function optionalFirestoreField(config) {
4275
4275
  */ function firestoreString(config) {
4276
4276
  var transform = util.transformStringFunctionConfig(config === null || config === void 0 ? void 0 : config.transform);
4277
4277
  var transformData = transform ? util.transformStringFunction(transform) : util.passThrough;
4278
- return firestoreField(_object_spread_props$k(_object_spread$o({
4278
+ return firestoreField(_object_spread_props$l(_object_spread$p({
4279
4279
  default: DEFAULT_FIRESTORE_STRING_FIELD_VALUE
4280
4280
  }, config), {
4281
4281
  fromData: transformData,
@@ -4306,7 +4306,7 @@ function optionalFirestoreField(config) {
4306
4306
  */ function optionalFirestoreString(config) {
4307
4307
  var transform = util.transformStringFunctionConfig(config === null || config === void 0 ? void 0 : config.transform);
4308
4308
  var transformData = transform ? util.transformStringFunction(transform) : util.passThrough;
4309
- return optionalFirestoreField(_object_spread_props$k(_object_spread$o({}, config), {
4309
+ return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
4310
4310
  transformData: transformData
4311
4311
  }));
4312
4312
  }
@@ -4331,7 +4331,7 @@ function optionalFirestoreField(config) {
4331
4331
  *
4332
4332
  * @__NO_SIDE_EFFECTS__
4333
4333
  */ function firestoreEnum(config) {
4334
- return firestoreField(_object_spread_props$k(_object_spread$o({}, config), {
4334
+ return firestoreField(_object_spread_props$l(_object_spread$p({}, config), {
4335
4335
  fromData: util.passThrough,
4336
4336
  toData: util.passThrough
4337
4337
  }));
@@ -4485,7 +4485,7 @@ function optionalFirestoreField(config) {
4485
4485
  return date.isSameDate(x, comparisonDate);
4486
4486
  };
4487
4487
  }
4488
- return optionalFirestoreField(_object_spread_props$k(_object_spread$o({}, config), {
4488
+ return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
4489
4489
  dontStoreValueIf: dontStoreValueIf,
4490
4490
  transformFromData: date.toJsDate,
4491
4491
  transformToData: date.toISODateString
@@ -4540,7 +4540,7 @@ function optionalFirestoreField(config) {
4540
4540
  return date.isSameDate(x, comparisonDate);
4541
4541
  };
4542
4542
  }
4543
- return optionalFirestoreField(_object_spread_props$k(_object_spread$o({}, config), {
4543
+ return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
4544
4544
  dontStoreValueIf: dontStoreValueIf,
4545
4545
  transformFromData: toDate,
4546
4546
  transformToData: fromDate
@@ -4554,7 +4554,7 @@ function optionalFirestoreField(config) {
4554
4554
  *
4555
4555
  * @__NO_SIDE_EFFECTS__
4556
4556
  */ function firestoreUnixDateTimeSecondsNumber(config) {
4557
- return firestoreDateNumber(_object_spread_props$k(_object_spread$o({}, config), {
4557
+ return firestoreDateNumber(_object_spread_props$l(_object_spread$p({}, config), {
4558
4558
  fromDate: util.unixDateTimeSecondsNumberFromDate,
4559
4559
  toDate: util.dateFromDateOrTimeSecondsNumber
4560
4560
  }));
@@ -4567,7 +4567,7 @@ function optionalFirestoreField(config) {
4567
4567
  *
4568
4568
  * @__NO_SIDE_EFFECTS__
4569
4569
  */ function optionalFirestoreUnixDateTimeSecondsNumber(config) {
4570
- return optionalFirestoreDateNumber(_object_spread_props$k(_object_spread$o({}, config), {
4570
+ return optionalFirestoreDateNumber(_object_spread_props$l(_object_spread$p({}, config), {
4571
4571
  fromDate: util.unixDateTimeSecondsNumberFromDate,
4572
4572
  toDate: util.dateFromDateOrTimeSecondsNumber
4573
4573
  }));
@@ -4647,7 +4647,7 @@ function optionalFirestoreField(config) {
4647
4647
  transform: config === null || config === void 0 ? void 0 : config.transform
4648
4648
  } : config === null || config === void 0 ? void 0 : config.transform : undefined;
4649
4649
  var transformData = transform ? util.transformNumberFunction(transform) : util.passThrough;
4650
- return firestoreField(_object_spread_props$k(_object_spread$o({}, config), {
4650
+ return firestoreField(_object_spread_props$l(_object_spread$p({}, config), {
4651
4651
  defaultBeforeSave: ((_config_defaultBeforeSave = config.defaultBeforeSave) !== null && _config_defaultBeforeSave !== void 0 ? _config_defaultBeforeSave : config.saveDefault) ? config.default : undefined,
4652
4652
  fromData: transformData,
4653
4653
  toData: transformData
@@ -4672,7 +4672,7 @@ function optionalFirestoreField(config) {
4672
4672
  transform: config === null || config === void 0 ? void 0 : config.transform
4673
4673
  } : config === null || config === void 0 ? void 0 : config.transform : undefined;
4674
4674
  var transformData = transform ? util.transformNumberFunction(transform) : util.passThrough;
4675
- return optionalFirestoreField(_object_spread_props$k(_object_spread$o({}, config), {
4675
+ return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
4676
4676
  transformData: transformData
4677
4677
  }));
4678
4678
  }
@@ -4767,7 +4767,7 @@ function optionalFirestoreField(config) {
4767
4767
  inputTransformData,
4768
4768
  sortArrayFn
4769
4769
  ]);
4770
- return optionalFirestoreField(_object_spread_props$k(_object_spread$o({}, config), {
4770
+ return optionalFirestoreField(_object_spread_props$l(_object_spread$p({}, config), {
4771
4771
  dontStoreIf: dontStoreIf,
4772
4772
  transformData: transformData
4773
4773
  }));
@@ -4811,7 +4811,7 @@ function optionalFirestoreField(config) {
4811
4811
  *
4812
4812
  * @__NO_SIDE_EFFECTS__
4813
4813
  */ function firestoreUniqueKeyedArray(config) {
4814
- return firestoreUniqueArray(_object_spread_props$k(_object_spread$o({}, config), {
4814
+ return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
4815
4815
  filterUnique: util.filterUniqueFunction(config.readKey)
4816
4816
  }));
4817
4817
  }
@@ -4829,7 +4829,7 @@ function optionalFirestoreField(config) {
4829
4829
  * @__NO_SIDE_EFFECTS__
4830
4830
  */ function firestoreEnumArray() {
4831
4831
  var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4832
- return firestoreUniqueArray(_object_spread_props$k(_object_spread$o({}, config), {
4832
+ return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
4833
4833
  filterUnique: util.unique
4834
4834
  }));
4835
4835
  }
@@ -4844,7 +4844,7 @@ function optionalFirestoreField(config) {
4844
4844
  * @__NO_SIDE_EFFECTS__
4845
4845
  */ function firestoreUniqueStringArray(config) {
4846
4846
  var filterUnique = config == null ? util.unique : util.filterUniqueTransform(config);
4847
- return firestoreUniqueArray(_object_spread_props$k(_object_spread$o({}, config), {
4847
+ return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
4848
4848
  filterUnique: filterUnique
4849
4849
  }));
4850
4850
  }
@@ -4880,7 +4880,7 @@ function optionalFirestoreField(config) {
4880
4880
  * @__NO_SIDE_EFFECTS__
4881
4881
  */ // eslint-disable-next-line sonarjs/no-identical-functions -- exposes a distinct typed alias for number arrays
4882
4882
  function firestoreUniqueNumberArray(config) {
4883
- return firestoreUniqueArray(_object_spread_props$k(_object_spread$o({}, config), {
4883
+ return firestoreUniqueArray(_object_spread_props$l(_object_spread$p({}, config), {
4884
4884
  filterUnique: util.unique
4885
4885
  }));
4886
4886
  }
@@ -5077,7 +5077,7 @@ function firestoreUniqueNumberArray(config) {
5077
5077
  * @__NO_SIDE_EFFECTS__
5078
5078
  */ function firestoreDencoderMap(config) {
5079
5079
  var dencoder = config.dencoder;
5080
- return firestoreEncodedObjectMap(_object_spread_props$k(_object_spread$o({}, config), {
5080
+ return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$p({}, config), {
5081
5081
  encoder: dencoder,
5082
5082
  decoder: dencoder
5083
5083
  }));
@@ -5113,7 +5113,7 @@ function firestoreUniqueNumberArray(config) {
5113
5113
  * @__NO_SIDE_EFFECTS__
5114
5114
  */ function firestoreArrayMap() {
5115
5115
  var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5116
- return firestoreMap(_object_spread$o({
5116
+ return firestoreMap(_object_spread$p({
5117
5117
  mapFilter: util.KeyValueTypleValueFilter.EMPTY,
5118
5118
  mapFieldValues: util.filterMaybeArrayValues
5119
5119
  }, config));
@@ -5585,7 +5585,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
5585
5585
  * @__NO_SIDE_EFFECTS__
5586
5586
  */ function firestoreBitwiseSet(config) {
5587
5587
  var dencoder = util.bitwiseSetDencoder(config.maxIndex);
5588
- return firestoreField(_object_spread_props$k(_object_spread$o({
5588
+ return firestoreField(_object_spread_props$l(_object_spread$p({
5589
5589
  default: function _default() {
5590
5590
  return new Set();
5591
5591
  }
@@ -5606,7 +5606,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
5606
5606
  * @__NO_SIDE_EFFECTS__
5607
5607
  */ function firestoreBitwiseSetMap(config) {
5608
5608
  var dencoder = util.bitwiseSetDencoder(config.maxIndex);
5609
- return firestoreEncodedObjectMap(_object_spread_props$k(_object_spread$o({
5609
+ return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$p({
5610
5610
  mapFilter: util.KeyValueTypleValueFilter.FALSY
5611
5611
  }, config), {
5612
5612
  encoder: dencoder,
@@ -5625,7 +5625,7 @@ var MAX_FIRESTORE_MAP_ZOOM_LEVEL_VALUE = 22;
5625
5625
  * @__NO_SIDE_EFFECTS__
5626
5626
  */ function firestoreBitwiseObjectMap(config) {
5627
5627
  var dencoder = config.dencoder;
5628
- return firestoreEncodedObjectMap(_object_spread_props$k(_object_spread$o({
5628
+ return firestoreEncodedObjectMap(_object_spread_props$l(_object_spread$p({
5629
5629
  mapFilter: util.KeyValueTypleValueFilter.FALSY
5630
5630
  }, config), {
5631
5631
  encoder: dencoder,
@@ -5684,30 +5684,30 @@ function firebaseQueryItemAccumulator(iteration, mapItem) {
5684
5684
  return firebaseQuerySnapshotAccumulator(iteration, mapFn);
5685
5685
  }
5686
5686
 
5687
- function _array_like_to_array$g(arr, len) {
5687
+ function _array_like_to_array$h(arr, len) {
5688
5688
  if (len == null || len > arr.length) len = arr.length;
5689
5689
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5690
5690
  return arr2;
5691
5691
  }
5692
- function _array_without_holes$b(arr) {
5693
- if (Array.isArray(arr)) return _array_like_to_array$g(arr);
5692
+ function _array_without_holes$c(arr) {
5693
+ if (Array.isArray(arr)) return _array_like_to_array$h(arr);
5694
5694
  }
5695
- function _iterable_to_array$b(iter) {
5695
+ function _iterable_to_array$c(iter) {
5696
5696
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
5697
5697
  }
5698
- function _non_iterable_spread$b() {
5698
+ function _non_iterable_spread$c() {
5699
5699
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5700
5700
  }
5701
- function _to_consumable_array$b(arr) {
5702
- return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$b();
5701
+ function _to_consumable_array$c(arr) {
5702
+ return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$c();
5703
5703
  }
5704
- function _unsupported_iterable_to_array$g(o, minLen) {
5704
+ function _unsupported_iterable_to_array$h(o, minLen) {
5705
5705
  if (!o) return;
5706
- if (typeof o === "string") return _array_like_to_array$g(o, minLen);
5706
+ if (typeof o === "string") return _array_like_to_array$h(o, minLen);
5707
5707
  var n = Object.prototype.toString.call(o).slice(8, -1);
5708
5708
  if (n === "Object" && o.constructor) n = o.constructor.name;
5709
5709
  if (n === "Map" || n === "Set") return Array.from(n);
5710
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
5710
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
5711
5711
  }
5712
5712
  /**
5713
5713
  * Creates a {@link FirestoreQueryConstraint} with the given type identifier and data.
@@ -6087,7 +6087,7 @@ function orderBy(fieldPath, directionStr) {
6087
6087
  * const newConstraints = replaceLimit(existingConstraints);
6088
6088
  * ```
6089
6089
  */ function replaceConstraints(replaceFn, types) {
6090
- var separateFn = separateConstraints.apply(void 0, _to_consumable_array$b(types));
6090
+ var separateFn = separateConstraints.apply(void 0, _to_consumable_array$c(types));
6091
6091
  return function(constraints) {
6092
6092
  var separated = separateFn(constraints);
6093
6093
  var replacements = util.asArray(replaceFn(separated.excluded));
@@ -6283,15 +6283,15 @@ function whereDateIsBeforeWithSort(fieldPath) {
6283
6283
  ];
6284
6284
  }
6285
6285
 
6286
- function _array_like_to_array$f(arr, len) {
6286
+ function _array_like_to_array$g(arr, len) {
6287
6287
  if (len == null || len > arr.length) len = arr.length;
6288
6288
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
6289
6289
  return arr2;
6290
6290
  }
6291
- function _array_without_holes$a(arr) {
6292
- if (Array.isArray(arr)) return _array_like_to_array$f(arr);
6291
+ function _array_without_holes$b(arr) {
6292
+ if (Array.isArray(arr)) return _array_like_to_array$g(arr);
6293
6293
  }
6294
- function _define_property$t(obj, key, value) {
6294
+ function _define_property$u(obj, key, value) {
6295
6295
  if (key in obj) {
6296
6296
  Object.defineProperty(obj, key, {
6297
6297
  value: value,
@@ -6304,13 +6304,13 @@ function _define_property$t(obj, key, value) {
6304
6304
  }
6305
6305
  return obj;
6306
6306
  }
6307
- function _iterable_to_array$a(iter) {
6307
+ function _iterable_to_array$b(iter) {
6308
6308
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
6309
6309
  }
6310
- function _non_iterable_spread$a() {
6310
+ function _non_iterable_spread$b() {
6311
6311
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6312
6312
  }
6313
- function _object_spread$n(target) {
6313
+ function _object_spread$o(target) {
6314
6314
  for(var i = 1; i < arguments.length; i++){
6315
6315
  var source = arguments[i] != null ? arguments[i] : {};
6316
6316
  var ownKeys = Object.keys(source);
@@ -6320,12 +6320,12 @@ function _object_spread$n(target) {
6320
6320
  }));
6321
6321
  }
6322
6322
  ownKeys.forEach(function(key) {
6323
- _define_property$t(target, key, source[key]);
6323
+ _define_property$u(target, key, source[key]);
6324
6324
  });
6325
6325
  }
6326
6326
  return target;
6327
6327
  }
6328
- function ownKeys$j(object, enumerableOnly) {
6328
+ function ownKeys$k(object, enumerableOnly) {
6329
6329
  var keys = Object.keys(object);
6330
6330
  if (Object.getOwnPropertySymbols) {
6331
6331
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6333,27 +6333,27 @@ function ownKeys$j(object, enumerableOnly) {
6333
6333
  }
6334
6334
  return keys;
6335
6335
  }
6336
- function _object_spread_props$j(target, source) {
6336
+ function _object_spread_props$k(target, source) {
6337
6337
  source = source != null ? source : {};
6338
6338
  if (Object.getOwnPropertyDescriptors) {
6339
6339
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6340
6340
  } else {
6341
- ownKeys$j(Object(source)).forEach(function(key) {
6341
+ ownKeys$k(Object(source)).forEach(function(key) {
6342
6342
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6343
6343
  });
6344
6344
  }
6345
6345
  return target;
6346
6346
  }
6347
- function _to_consumable_array$a(arr) {
6348
- return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$a();
6347
+ function _to_consumable_array$b(arr) {
6348
+ return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$b();
6349
6349
  }
6350
- function _unsupported_iterable_to_array$f(o, minLen) {
6350
+ function _unsupported_iterable_to_array$g(o, minLen) {
6351
6351
  if (!o) return;
6352
- if (typeof o === "string") return _array_like_to_array$f(o, minLen);
6352
+ if (typeof o === "string") return _array_like_to_array$g(o, minLen);
6353
6353
  var n = Object.prototype.toString.call(o).slice(8, -1);
6354
6354
  if (n === "Object" && o.constructor) n = o.constructor.name;
6355
6355
  if (n === "Map" || n === "Set") return Array.from(n);
6356
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
6356
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
6357
6357
  }
6358
6358
  /**
6359
6359
  * Filters out constraints that should not be directly specified in pagination queries.
@@ -6418,13 +6418,13 @@ function _unsupported_iterable_to_array$f(o, minLen) {
6418
6418
  // Add Limit
6419
6419
  var limitCount = filterLimit !== null && filterLimit !== void 0 ? filterLimit : itemsPerPage + (startAfterFilter ? 1 : 0); // todo: may not be needed.
6420
6420
  var limitConstraint = limit(limitCount);
6421
- var constraintsWithLimit = _to_consumable_array$a(constraints).concat([
6421
+ var constraintsWithLimit = _to_consumable_array$b(constraints).concat([
6422
6422
  limitConstraint
6423
6423
  ]);
6424
6424
  // make query
6425
6425
  var batchQuery = (_driver = driver).query.apply(_driver, [
6426
6426
  queryLike
6427
- ].concat(_to_consumable_array$a(constraintsWithLimit)));
6427
+ ].concat(_to_consumable_array$b(constraintsWithLimit)));
6428
6428
  var resultPromise = driver.getDocs(batchQuery).then(function(snapshot) {
6429
6429
  var time = new Date();
6430
6430
  var docs = snapshot.docs;
@@ -6553,7 +6553,7 @@ function _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration) {
6553
6553
  return x.docs;
6554
6554
  }
6555
6555
  });
6556
- var result = _object_spread_props$j(_object_spread$n({}, mappedIteration), {
6556
+ var result = _object_spread_props$k(_object_spread$o({}, mappedIteration), {
6557
6557
  snapshotIteration: snapshotIteration
6558
6558
  });
6559
6559
  return result;
@@ -6695,13 +6695,13 @@ function _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration) {
6695
6695
  return _firestoreItemPageIterationWithSnapshotIteration(snapshotIteration);
6696
6696
  }
6697
6697
 
6698
- function _array_like_to_array$e(arr, len) {
6698
+ function _array_like_to_array$f(arr, len) {
6699
6699
  if (len == null || len > arr.length) len = arr.length;
6700
6700
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
6701
6701
  return arr2;
6702
6702
  }
6703
- function _array_without_holes$9(arr) {
6704
- if (Array.isArray(arr)) return _array_like_to_array$e(arr);
6703
+ function _array_without_holes$a(arr) {
6704
+ if (Array.isArray(arr)) return _array_like_to_array$f(arr);
6705
6705
  }
6706
6706
  function asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, key, arg) {
6707
6707
  try {
@@ -6732,22 +6732,22 @@ function _async_to_generator$h(fn) {
6732
6732
  });
6733
6733
  };
6734
6734
  }
6735
- function _iterable_to_array$9(iter) {
6735
+ function _iterable_to_array$a(iter) {
6736
6736
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
6737
6737
  }
6738
- function _non_iterable_spread$9() {
6738
+ function _non_iterable_spread$a() {
6739
6739
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6740
6740
  }
6741
- function _to_consumable_array$9(arr) {
6742
- return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$9();
6741
+ function _to_consumable_array$a(arr) {
6742
+ return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$a();
6743
6743
  }
6744
- function _unsupported_iterable_to_array$e(o, minLen) {
6744
+ function _unsupported_iterable_to_array$f(o, minLen) {
6745
6745
  if (!o) return;
6746
- if (typeof o === "string") return _array_like_to_array$e(o, minLen);
6746
+ if (typeof o === "string") return _array_like_to_array$f(o, minLen);
6747
6747
  var n = Object.prototype.toString.call(o).slice(8, -1);
6748
6748
  if (n === "Object" && o.constructor) n = o.constructor.name;
6749
6749
  if (n === "Map" || n === "Set") return Array.from(n);
6750
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
6750
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
6751
6751
  }
6752
6752
  function _ts_generator$h(thisArg, body) {
6753
6753
  var f, y, t, _ = {
@@ -6888,7 +6888,7 @@ function _ts_generator$h(thisArg, body) {
6888
6888
  var allConstraints = util.flattenArrayOrValueArray(queryConstraints);
6889
6889
  var query = makeQuery.apply(void 0, [
6890
6890
  inputQuery
6891
- ].concat(_to_consumable_array$9(allConstraints)));
6891
+ ].concat(_to_consumable_array$a(allConstraints)));
6892
6892
  var result = {
6893
6893
  query: query,
6894
6894
  countDocs: function countDocs1() {
@@ -6910,7 +6910,7 @@ function _ts_generator$h(thisArg, body) {
6910
6910
  constraintsForOneDoc = addOrReplaceLimitInConstraints(1)(allConstraints);
6911
6911
  query = makeQuery.apply(void 0, [
6912
6912
  inputQuery
6913
- ].concat(_to_consumable_array$9(constraintsForOneDoc)));
6913
+ ].concat(_to_consumable_array$a(constraintsForOneDoc)));
6914
6914
  return [
6915
6915
  4,
6916
6916
  getDocs(query, transaction)
@@ -7018,7 +7018,7 @@ function _ts_generator$h(thisArg, body) {
7018
7018
  return snapshot.ref.path;
7019
7019
  }
7020
7020
 
7021
- function _array_like_to_array$d(arr, len) {
7021
+ function _array_like_to_array$e(arr, len) {
7022
7022
  if (len == null || len > arr.length) len = arr.length;
7023
7023
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7024
7024
  return arr2;
@@ -7055,7 +7055,7 @@ function _async_to_generator$g(fn) {
7055
7055
  });
7056
7056
  };
7057
7057
  }
7058
- function _define_property$s(obj, key, value) {
7058
+ function _define_property$t(obj, key, value) {
7059
7059
  if (key in obj) {
7060
7060
  Object.defineProperty(obj, key, {
7061
7061
  value: value,
@@ -7095,7 +7095,7 @@ function _iterable_to_array_limit$4(arr, i) {
7095
7095
  function _non_iterable_rest$4() {
7096
7096
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7097
7097
  }
7098
- function _object_spread$m(target) {
7098
+ function _object_spread$n(target) {
7099
7099
  for(var i = 1; i < arguments.length; i++){
7100
7100
  var source = arguments[i] != null ? arguments[i] : {};
7101
7101
  var ownKeys = Object.keys(source);
@@ -7105,12 +7105,12 @@ function _object_spread$m(target) {
7105
7105
  }));
7106
7106
  }
7107
7107
  ownKeys.forEach(function(key) {
7108
- _define_property$s(target, key, source[key]);
7108
+ _define_property$t(target, key, source[key]);
7109
7109
  });
7110
7110
  }
7111
7111
  return target;
7112
7112
  }
7113
- function ownKeys$i(object, enumerableOnly) {
7113
+ function ownKeys$j(object, enumerableOnly) {
7114
7114
  var keys = Object.keys(object);
7115
7115
  if (Object.getOwnPropertySymbols) {
7116
7116
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7118,27 +7118,27 @@ function ownKeys$i(object, enumerableOnly) {
7118
7118
  }
7119
7119
  return keys;
7120
7120
  }
7121
- function _object_spread_props$i(target, source) {
7121
+ function _object_spread_props$j(target, source) {
7122
7122
  source = source != null ? source : {};
7123
7123
  if (Object.getOwnPropertyDescriptors) {
7124
7124
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7125
7125
  } else {
7126
- ownKeys$i(Object(source)).forEach(function(key) {
7126
+ ownKeys$j(Object(source)).forEach(function(key) {
7127
7127
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7128
7128
  });
7129
7129
  }
7130
7130
  return target;
7131
7131
  }
7132
7132
  function _sliced_to_array$4(arr, i) {
7133
- return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$4();
7133
+ return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$4();
7134
7134
  }
7135
- function _unsupported_iterable_to_array$d(o, minLen) {
7135
+ function _unsupported_iterable_to_array$e(o, minLen) {
7136
7136
  if (!o) return;
7137
- if (typeof o === "string") return _array_like_to_array$d(o, minLen);
7137
+ if (typeof o === "string") return _array_like_to_array$e(o, minLen);
7138
7138
  var n = Object.prototype.toString.call(o).slice(8, -1);
7139
7139
  if (n === "Object" && o.constructor) n = o.constructor.name;
7140
7140
  if (n === "Map" || n === "Set") return Array.from(n);
7141
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
7141
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
7142
7142
  }
7143
7143
  function _ts_generator$g(thisArg, body) {
7144
7144
  var f, y, t, _ = {
@@ -7272,7 +7272,7 @@ function _ts_generator$g(thisArg, body) {
7272
7272
  loadPairForSnapshot = firestoreDocumentSnapshotPairsLoaderInstance(documentAccessor);
7273
7273
  return [
7274
7274
  2,
7275
- iterateFirestoreDocumentSnapshots(_object_spread_props$i(_object_spread$m({}, config), {
7275
+ iterateFirestoreDocumentSnapshots(_object_spread_props$j(_object_spread$n({}, config), {
7276
7276
  iterateSnapshot: function iterateSnapshot(snapshot) {
7277
7277
  return _async_to_generator$g(function() {
7278
7278
  var pair;
@@ -7324,16 +7324,16 @@ function _ts_generator$g(thisArg, body) {
7324
7324
  iterateSnapshot = config.iterateSnapshot, performTasksConfig = config.performTasksConfig, snapshotsPerformTasksConfig = config.snapshotsPerformTasksConfig;
7325
7325
  return [
7326
7326
  2,
7327
- iterateFirestoreDocumentSnapshotBatches(_object_spread_props$i(_object_spread$m({}, config), {
7327
+ iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$n({}, config), {
7328
7328
  maxParallelCheckpoints: 1,
7329
7329
  iterateSnapshotBatch: function iterateSnapshotBatch(docSnapshots) {
7330
7330
  return _async_to_generator$g(function() {
7331
7331
  return _ts_generator$g(this, function(_state) {
7332
7332
  return [
7333
7333
  2,
7334
- util.performAsyncTasks(docSnapshots, iterateSnapshot, _object_spread$m({
7334
+ util.performAsyncTasks(docSnapshots, iterateSnapshot, _object_spread$n({
7335
7335
  sequential: true
7336
- }, snapshotsPerformTasksConfig !== null && snapshotsPerformTasksConfig !== void 0 ? snapshotsPerformTasksConfig : _object_spread_props$i(_object_spread$m({}, performTasksConfig), {
7336
+ }, snapshotsPerformTasksConfig !== null && snapshotsPerformTasksConfig !== void 0 ? snapshotsPerformTasksConfig : _object_spread_props$j(_object_spread$n({}, performTasksConfig), {
7337
7337
  nonConcurrentTaskKeyFactory: undefined,
7338
7338
  beforeRetry: undefined
7339
7339
  }) // don't pass the nonConcurrentTaskKeyFactory
@@ -7382,7 +7382,7 @@ function _ts_generator$g(thisArg, body) {
7382
7382
  loadPairForSnapshot = firestoreDocumentSnapshotPairsLoaderInstance(documentAccessor);
7383
7383
  return [
7384
7384
  2,
7385
- iterateFirestoreDocumentSnapshotBatches(_object_spread_props$i(_object_spread$m({}, config), {
7385
+ iterateFirestoreDocumentSnapshotBatches(_object_spread_props$j(_object_spread$n({}, config), {
7386
7386
  maxParallelCheckpoints: 1,
7387
7387
  iterateSnapshotBatch: function iterateSnapshotBatch(snapshots, batchIndex) {
7388
7388
  return _async_to_generator$g(function() {
@@ -7444,7 +7444,7 @@ function _ts_generator$g(thisArg, body) {
7444
7444
  };
7445
7445
  return [
7446
7446
  2,
7447
- iterateFirestoreDocumentSnapshotCheckpoints(_object_spread_props$i(_object_spread$m({}, config), {
7447
+ iterateFirestoreDocumentSnapshotCheckpoints(_object_spread_props$j(_object_spread$n({}, config), {
7448
7448
  iterateCheckpoint: function iterateCheckpoint(docSnapshots) {
7449
7449
  return _async_to_generator$g(function() {
7450
7450
  var result, batchSizeForSnapshotsResult, batches, i, performTasksResult;
@@ -7465,7 +7465,7 @@ function _ts_generator$g(thisArg, body) {
7465
7465
  4,
7466
7466
  util.performAsyncTasks(batches, function(x) {
7467
7467
  return iterateSnapshotBatch(x, i++);
7468
- }, _object_spread$m({
7468
+ }, _object_spread$n({
7469
7469
  sequential: true
7470
7470
  }, performTasksConfig))
7471
7471
  ];
@@ -8202,13 +8202,13 @@ function _ts_generator$f(thisArg, body) {
8202
8202
  return type;
8203
8203
  }
8204
8204
 
8205
- function _array_like_to_array$c(arr, len) {
8205
+ function _array_like_to_array$d(arr, len) {
8206
8206
  if (len == null || len > arr.length) len = arr.length;
8207
8207
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8208
8208
  return arr2;
8209
8209
  }
8210
- function _array_without_holes$8(arr) {
8211
- if (Array.isArray(arr)) return _array_like_to_array$c(arr);
8210
+ function _array_without_holes$9(arr) {
8211
+ if (Array.isArray(arr)) return _array_like_to_array$d(arr);
8212
8212
  }
8213
8213
  function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
8214
8214
  try {
@@ -8239,22 +8239,22 @@ function _async_to_generator$e(fn) {
8239
8239
  });
8240
8240
  };
8241
8241
  }
8242
- function _iterable_to_array$8(iter) {
8242
+ function _iterable_to_array$9(iter) {
8243
8243
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8244
8244
  }
8245
- function _non_iterable_spread$8() {
8245
+ function _non_iterable_spread$9() {
8246
8246
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8247
8247
  }
8248
- function _to_consumable_array$8(arr) {
8249
- return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$8();
8248
+ function _to_consumable_array$9(arr) {
8249
+ return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$9();
8250
8250
  }
8251
- function _unsupported_iterable_to_array$c(o, minLen) {
8251
+ function _unsupported_iterable_to_array$d(o, minLen) {
8252
8252
  if (!o) return;
8253
- if (typeof o === "string") return _array_like_to_array$c(o, minLen);
8253
+ if (typeof o === "string") return _array_like_to_array$d(o, minLen);
8254
8254
  var n = Object.prototype.toString.call(o).slice(8, -1);
8255
8255
  if (n === "Object" && o.constructor) n = o.constructor.name;
8256
8256
  if (n === "Map" || n === "Set") return Array.from(n);
8257
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
8257
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
8258
8258
  }
8259
8259
  function _ts_generator$e(thisArg, body) {
8260
8260
  var f, y, t, _ = {
@@ -8476,7 +8476,7 @@ function _ts_generator$e(thisArg, body) {
8476
8476
  for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
8477
8477
  queryConstraints[_key] = arguments[_key];
8478
8478
  }
8479
- return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$8(queryConstraints)));
8479
+ return wrapQuery((_baseQuery = baseQuery).filter.apply(_baseQuery, _to_consumable_array$9(queryConstraints)));
8480
8480
  }
8481
8481
  };
8482
8482
  };
@@ -8486,20 +8486,20 @@ function _ts_generator$e(thisArg, body) {
8486
8486
  for(var _len = arguments.length, queryConstraints = new Array(_len), _key = 0; _key < _len; _key++){
8487
8487
  queryConstraints[_key] = arguments[_key];
8488
8488
  }
8489
- return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$8(queryConstraints)));
8489
+ return wrapQuery((_queryFactory = queryFactory).query.apply(_queryFactory, _to_consumable_array$9(queryConstraints)));
8490
8490
  }
8491
8491
  };
8492
8492
  }
8493
8493
 
8494
- function _array_like_to_array$b(arr, len) {
8494
+ function _array_like_to_array$c(arr, len) {
8495
8495
  if (len == null || len > arr.length) len = arr.length;
8496
8496
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8497
8497
  return arr2;
8498
8498
  }
8499
- function _array_without_holes$7(arr) {
8500
- if (Array.isArray(arr)) return _array_like_to_array$b(arr);
8499
+ function _array_without_holes$8(arr) {
8500
+ if (Array.isArray(arr)) return _array_like_to_array$c(arr);
8501
8501
  }
8502
- function _define_property$r(obj, key, value) {
8502
+ function _define_property$s(obj, key, value) {
8503
8503
  if (key in obj) {
8504
8504
  Object.defineProperty(obj, key, {
8505
8505
  value: value,
@@ -8512,13 +8512,13 @@ function _define_property$r(obj, key, value) {
8512
8512
  }
8513
8513
  return obj;
8514
8514
  }
8515
- function _iterable_to_array$7(iter) {
8515
+ function _iterable_to_array$8(iter) {
8516
8516
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8517
8517
  }
8518
- function _non_iterable_spread$7() {
8518
+ function _non_iterable_spread$8() {
8519
8519
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8520
8520
  }
8521
- function _object_spread$l(target) {
8521
+ function _object_spread$m(target) {
8522
8522
  for(var i = 1; i < arguments.length; i++){
8523
8523
  var source = arguments[i] != null ? arguments[i] : {};
8524
8524
  var ownKeys = Object.keys(source);
@@ -8528,12 +8528,12 @@ function _object_spread$l(target) {
8528
8528
  }));
8529
8529
  }
8530
8530
  ownKeys.forEach(function(key) {
8531
- _define_property$r(target, key, source[key]);
8531
+ _define_property$s(target, key, source[key]);
8532
8532
  });
8533
8533
  }
8534
8534
  return target;
8535
8535
  }
8536
- function ownKeys$h(object, enumerableOnly) {
8536
+ function ownKeys$i(object, enumerableOnly) {
8537
8537
  var keys = Object.keys(object);
8538
8538
  if (Object.getOwnPropertySymbols) {
8539
8539
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8541,31 +8541,31 @@ function ownKeys$h(object, enumerableOnly) {
8541
8541
  }
8542
8542
  return keys;
8543
8543
  }
8544
- function _object_spread_props$h(target, source) {
8544
+ function _object_spread_props$i(target, source) {
8545
8545
  source = source != null ? source : {};
8546
8546
  if (Object.getOwnPropertyDescriptors) {
8547
8547
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8548
8548
  } else {
8549
- ownKeys$h(Object(source)).forEach(function(key) {
8549
+ ownKeys$i(Object(source)).forEach(function(key) {
8550
8550
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8551
8551
  });
8552
8552
  }
8553
8553
  return target;
8554
8554
  }
8555
- function _to_consumable_array$7(arr) {
8556
- return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$7();
8555
+ function _to_consumable_array$8(arr) {
8556
+ return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$8();
8557
8557
  }
8558
8558
  function _type_of$9(obj) {
8559
8559
  "@swc/helpers - typeof";
8560
8560
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
8561
8561
  }
8562
- function _unsupported_iterable_to_array$b(o, minLen) {
8562
+ function _unsupported_iterable_to_array$c(o, minLen) {
8563
8563
  if (!o) return;
8564
- if (typeof o === "string") return _array_like_to_array$b(o, minLen);
8564
+ if (typeof o === "string") return _array_like_to_array$c(o, minLen);
8565
8565
  var n = Object.prototype.toString.call(o).slice(8, -1);
8566
8566
  if (n === "Object" && o.constructor) n = o.constructor.name;
8567
8567
  if (n === "Map" || n === "Set") return Array.from(n);
8568
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
8568
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
8569
8569
  }
8570
8570
  /**
8571
8571
  * Separator used in Firestore paths to separate collection and document IDs.
@@ -9011,7 +9011,7 @@ function firestoreModelIdentity(parentOrModelName, collectionNameOrModelName, in
9011
9011
  * @returns
9012
9012
  * @__NO_SIDE_EFFECTS__
9013
9013
  */ function firestoreModelKeyPartPairsKeyPath(input) {
9014
- return firestoreModelKeyPath.apply(void 0, _to_consumable_array$7(firestoreModelKeyPartPairsPaths(input)));
9014
+ return firestoreModelKeyPath.apply(void 0, _to_consumable_array$8(firestoreModelKeyPartPairsPaths(input)));
9015
9015
  }
9016
9016
  /**
9017
9017
  * Maps the input FirestoreModelCollectionAndIdPair[] values to FirestoreModelKeyPart[] values.
@@ -9093,7 +9093,7 @@ var FIRESTORE_DUMMY_MODEL_KEY = 'dummymodel/dummykey';
9093
9093
  var queryFactory = firestoreQueryFactory(config);
9094
9094
  var queryDocument = firestoreCollectionQueryFactory(queryFactory, documentAccessorExtension).queryDocument;
9095
9095
  var query = queryFactory.query;
9096
- return _object_spread_props$h(_object_spread$l({
9096
+ return _object_spread_props$i(_object_spread$m({
9097
9097
  config: config,
9098
9098
  cache: cache,
9099
9099
  modelIdentity: modelIdentity,
@@ -9132,7 +9132,7 @@ var FIRESTORE_DUMMY_MODEL_KEY = 'dummymodel/dummykey';
9132
9132
  });
9133
9133
  }
9134
9134
 
9135
- function _define_property$q(obj, key, value) {
9135
+ function _define_property$r(obj, key, value) {
9136
9136
  if (key in obj) {
9137
9137
  Object.defineProperty(obj, key, {
9138
9138
  value: value,
@@ -9145,7 +9145,7 @@ function _define_property$q(obj, key, value) {
9145
9145
  }
9146
9146
  return obj;
9147
9147
  }
9148
- function _object_spread$k(target) {
9148
+ function _object_spread$l(target) {
9149
9149
  for(var i = 1; i < arguments.length; i++){
9150
9150
  var source = arguments[i] != null ? arguments[i] : {};
9151
9151
  var ownKeys = Object.keys(source);
@@ -9155,12 +9155,12 @@ function _object_spread$k(target) {
9155
9155
  }));
9156
9156
  }
9157
9157
  ownKeys.forEach(function(key) {
9158
- _define_property$q(target, key, source[key]);
9158
+ _define_property$r(target, key, source[key]);
9159
9159
  });
9160
9160
  }
9161
9161
  return target;
9162
9162
  }
9163
- function ownKeys$g(object, enumerableOnly) {
9163
+ function ownKeys$h(object, enumerableOnly) {
9164
9164
  var keys = Object.keys(object);
9165
9165
  if (Object.getOwnPropertySymbols) {
9166
9166
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9168,12 +9168,12 @@ function ownKeys$g(object, enumerableOnly) {
9168
9168
  }
9169
9169
  return keys;
9170
9170
  }
9171
- function _object_spread_props$g(target, source) {
9171
+ function _object_spread_props$h(target, source) {
9172
9172
  source = source != null ? source : {};
9173
9173
  if (Object.getOwnPropertyDescriptors) {
9174
9174
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9175
9175
  } else {
9176
- ownKeys$g(Object(source)).forEach(function(key) {
9176
+ ownKeys$h(Object(source)).forEach(function(key) {
9177
9177
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9178
9178
  });
9179
9179
  }
@@ -9220,7 +9220,7 @@ function _object_spread_props$g(target, source) {
9220
9220
  var queryDocument = firestoreCollectionQueryFactory(queryFactory, documentAccessorExtension).queryDocument;
9221
9221
  var query = queryFactory.query;
9222
9222
  // Return the fully constructed collection group
9223
- return _object_spread_props$g(_object_spread$k({
9223
+ return _object_spread_props$h(_object_spread$l({
9224
9224
  config: config,
9225
9225
  cache: cache,
9226
9226
  queryLike: queryLike,
@@ -9306,7 +9306,7 @@ function _object_spread_props$g(target, source) {
9306
9306
  });
9307
9307
  }
9308
9308
 
9309
- function _define_property$p(obj, key, value) {
9309
+ function _define_property$q(obj, key, value) {
9310
9310
  if (key in obj) {
9311
9311
  Object.defineProperty(obj, key, {
9312
9312
  value: value,
@@ -9319,7 +9319,7 @@ function _define_property$p(obj, key, value) {
9319
9319
  }
9320
9320
  return obj;
9321
9321
  }
9322
- function _object_spread$j(target) {
9322
+ function _object_spread$k(target) {
9323
9323
  for(var i = 1; i < arguments.length; i++){
9324
9324
  var source = arguments[i] != null ? arguments[i] : {};
9325
9325
  var ownKeys = Object.keys(source);
@@ -9329,12 +9329,12 @@ function _object_spread$j(target) {
9329
9329
  }));
9330
9330
  }
9331
9331
  ownKeys.forEach(function(key) {
9332
- _define_property$p(target, key, source[key]);
9332
+ _define_property$q(target, key, source[key]);
9333
9333
  });
9334
9334
  }
9335
9335
  return target;
9336
9336
  }
9337
- function ownKeys$f(object, enumerableOnly) {
9337
+ function ownKeys$g(object, enumerableOnly) {
9338
9338
  var keys = Object.keys(object);
9339
9339
  if (Object.getOwnPropertySymbols) {
9340
9340
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9342,12 +9342,12 @@ function ownKeys$f(object, enumerableOnly) {
9342
9342
  }
9343
9343
  return keys;
9344
9344
  }
9345
- function _object_spread_props$f(target, source) {
9345
+ function _object_spread_props$g(target, source) {
9346
9346
  source = source != null ? source : {};
9347
9347
  if (Object.getOwnPropertyDescriptors) {
9348
9348
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9349
9349
  } else {
9350
- ownKeys$f(Object(source)).forEach(function(key) {
9350
+ ownKeys$g(Object(source)).forEach(function(key) {
9351
9351
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9352
9352
  });
9353
9353
  }
@@ -9412,7 +9412,7 @@ function _object_spread_props$f(target, source) {
9412
9412
  */ function makePagedItemFirestoreCollection(config) {
9413
9413
  var _config_converter;
9414
9414
  var resolvedConverter = (_config_converter = config.converter) !== null && _config_converter !== void 0 ? _config_converter : defaultPagedItemPageDataConverter();
9415
- var baseConfig = _object_spread_props$f(_object_spread$j({}, config), {
9415
+ var baseConfig = _object_spread_props$g(_object_spread$k({}, config), {
9416
9416
  converter: resolvedConverter
9417
9417
  });
9418
9418
  return util.build({
@@ -9428,15 +9428,15 @@ function _object_spread_props$f(target, source) {
9428
9428
  });
9429
9429
  }
9430
9430
 
9431
- function _array_like_to_array$a(arr, len) {
9431
+ function _array_like_to_array$b(arr, len) {
9432
9432
  if (len == null || len > arr.length) len = arr.length;
9433
9433
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
9434
9434
  return arr2;
9435
9435
  }
9436
- function _array_without_holes$6(arr) {
9437
- if (Array.isArray(arr)) return _array_like_to_array$a(arr);
9436
+ function _array_without_holes$7(arr) {
9437
+ if (Array.isArray(arr)) return _array_like_to_array$b(arr);
9438
9438
  }
9439
- function _define_property$o(obj, key, value) {
9439
+ function _define_property$p(obj, key, value) {
9440
9440
  if (key in obj) {
9441
9441
  Object.defineProperty(obj, key, {
9442
9442
  value: value,
@@ -9449,13 +9449,13 @@ function _define_property$o(obj, key, value) {
9449
9449
  }
9450
9450
  return obj;
9451
9451
  }
9452
- function _iterable_to_array$6(iter) {
9452
+ function _iterable_to_array$7(iter) {
9453
9453
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
9454
9454
  }
9455
- function _non_iterable_spread$6() {
9455
+ function _non_iterable_spread$7() {
9456
9456
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9457
9457
  }
9458
- function _object_spread$i(target) {
9458
+ function _object_spread$j(target) {
9459
9459
  for(var i = 1; i < arguments.length; i++){
9460
9460
  var source = arguments[i] != null ? arguments[i] : {};
9461
9461
  var ownKeys = Object.keys(source);
@@ -9465,12 +9465,12 @@ function _object_spread$i(target) {
9465
9465
  }));
9466
9466
  }
9467
9467
  ownKeys.forEach(function(key) {
9468
- _define_property$o(target, key, source[key]);
9468
+ _define_property$p(target, key, source[key]);
9469
9469
  });
9470
9470
  }
9471
9471
  return target;
9472
9472
  }
9473
- function ownKeys$e(object, enumerableOnly) {
9473
+ function ownKeys$f(object, enumerableOnly) {
9474
9474
  var keys = Object.keys(object);
9475
9475
  if (Object.getOwnPropertySymbols) {
9476
9476
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9478,27 +9478,27 @@ function ownKeys$e(object, enumerableOnly) {
9478
9478
  }
9479
9479
  return keys;
9480
9480
  }
9481
- function _object_spread_props$e(target, source) {
9481
+ function _object_spread_props$f(target, source) {
9482
9482
  source = source != null ? source : {};
9483
9483
  if (Object.getOwnPropertyDescriptors) {
9484
9484
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9485
9485
  } else {
9486
- ownKeys$e(Object(source)).forEach(function(key) {
9486
+ ownKeys$f(Object(source)).forEach(function(key) {
9487
9487
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9488
9488
  });
9489
9489
  }
9490
9490
  return target;
9491
9491
  }
9492
- function _to_consumable_array$6(arr) {
9493
- return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$6();
9492
+ function _to_consumable_array$7(arr) {
9493
+ return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$7();
9494
9494
  }
9495
- function _unsupported_iterable_to_array$a(o, minLen) {
9495
+ function _unsupported_iterable_to_array$b(o, minLen) {
9496
9496
  if (!o) return;
9497
- if (typeof o === "string") return _array_like_to_array$a(o, minLen);
9497
+ if (typeof o === "string") return _array_like_to_array$b(o, minLen);
9498
9498
  var n = Object.prototype.toString.call(o).slice(8, -1);
9499
9499
  if (n === "Object" && o.constructor) n = o.constructor.name;
9500
9500
  if (n === "Map" || n === "Set") return Array.from(n);
9501
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
9501
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
9502
9502
  }
9503
9503
  /**
9504
9504
  * Creates a factory function for generating FirestoreContext instances.
@@ -9522,7 +9522,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
9522
9522
  var makeFirestoreCollectionConfig = function makeFirestoreCollectionConfig(config) {
9523
9523
  var collection = config.collection;
9524
9524
  var queryLike = collection !== null && collection !== void 0 ? collection : config.queryLike;
9525
- return _object_spread_props$e(_object_spread$i({}, config), {
9525
+ return _object_spread_props$f(_object_spread$j({}, config), {
9526
9526
  collection: config.converter ? collection === null || collection === void 0 ? void 0 : collection.withConverter(config.converter) : collection,
9527
9527
  queryLike: config.converter ? queryLike.withConverter(config.converter) : queryLike,
9528
9528
  firestoreContext: context,
@@ -9552,7 +9552,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
9552
9552
  return (_drivers_firestoreAccessorDriver = drivers.firestoreAccessorDriver).collection.apply(_drivers_firestoreAccessorDriver, [
9553
9553
  firestore,
9554
9554
  path
9555
- ].concat(_to_consumable_array$6(pathSegments)));
9555
+ ].concat(_to_consumable_array$7(pathSegments)));
9556
9556
  },
9557
9557
  subcollection: drivers.firestoreAccessorDriver.subcollection,
9558
9558
  runTransaction: drivers.firestoreAccessorDriver.transactionFactoryForFirestore(firestore),
@@ -9866,15 +9866,15 @@ function _ts_generator$d(thisArg, body) {
9866
9866
  });
9867
9867
  }
9868
9868
 
9869
- function _array_like_to_array$9(arr, len) {
9869
+ function _array_like_to_array$a(arr, len) {
9870
9870
  if (len == null || len > arr.length) len = arr.length;
9871
9871
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
9872
9872
  return arr2;
9873
9873
  }
9874
- function _array_without_holes$5(arr) {
9875
- if (Array.isArray(arr)) return _array_like_to_array$9(arr);
9874
+ function _array_without_holes$6(arr) {
9875
+ if (Array.isArray(arr)) return _array_like_to_array$a(arr);
9876
9876
  }
9877
- function _define_property$n(obj, key, value) {
9877
+ function _define_property$o(obj, key, value) {
9878
9878
  if (key in obj) {
9879
9879
  Object.defineProperty(obj, key, {
9880
9880
  value: value,
@@ -9887,13 +9887,13 @@ function _define_property$n(obj, key, value) {
9887
9887
  }
9888
9888
  return obj;
9889
9889
  }
9890
- function _iterable_to_array$5(iter) {
9890
+ function _iterable_to_array$6(iter) {
9891
9891
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
9892
9892
  }
9893
- function _non_iterable_spread$5() {
9893
+ function _non_iterable_spread$6() {
9894
9894
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9895
9895
  }
9896
- function _object_spread$h(target) {
9896
+ function _object_spread$i(target) {
9897
9897
  for(var i = 1; i < arguments.length; i++){
9898
9898
  var source = arguments[i] != null ? arguments[i] : {};
9899
9899
  var ownKeys = Object.keys(source);
@@ -9903,21 +9903,21 @@ function _object_spread$h(target) {
9903
9903
  }));
9904
9904
  }
9905
9905
  ownKeys.forEach(function(key) {
9906
- _define_property$n(target, key, source[key]);
9906
+ _define_property$o(target, key, source[key]);
9907
9907
  });
9908
9908
  }
9909
9909
  return target;
9910
9910
  }
9911
- function _to_consumable_array$5(arr) {
9912
- return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$5();
9911
+ function _to_consumable_array$6(arr) {
9912
+ return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$6();
9913
9913
  }
9914
- function _unsupported_iterable_to_array$9(o, minLen) {
9914
+ function _unsupported_iterable_to_array$a(o, minLen) {
9915
9915
  if (!o) return;
9916
- if (typeof o === "string") return _array_like_to_array$9(o, minLen);
9916
+ if (typeof o === "string") return _array_like_to_array$a(o, minLen);
9917
9917
  var n = Object.prototype.toString.call(o).slice(8, -1);
9918
9918
  if (n === "Object" && o.constructor) n = o.constructor.name;
9919
9919
  if (n === "Map" || n === "Set") return Array.from(n);
9920
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
9920
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
9921
9921
  }
9922
9922
  /**
9923
9923
  * Converts a {@link FirestoreAccessorArrayUpdate} into Firestore `UpdateData` using the
@@ -9948,14 +9948,14 @@ function _unsupported_iterable_to_array$9(o, minLen) {
9948
9948
  result = util.mapObjectMap(fieldUpdate, function(arrayUpdate) {
9949
9949
  var result;
9950
9950
  if (arrayUpdate) {
9951
- result = arrayUpdateFunction.apply(void 0, _to_consumable_array$5(arrayUpdate)); // use spread operator to insert each value as an argument, as "nested arrays" are not allowed in the Firestore
9951
+ result = arrayUpdateFunction.apply(void 0, _to_consumable_array$6(arrayUpdate)); // use spread operator to insert each value as an argument, as "nested arrays" are not allowed in the Firestore
9952
9952
  }
9953
9953
  return result;
9954
9954
  });
9955
9955
  }
9956
9956
  return result;
9957
9957
  }
9958
- var updateData = _object_spread$h({}, createUpdatesWithArrayFunction(union, firestore.arrayUnion), createUpdatesWithArrayFunction(remove, firestore.arrayRemove));
9958
+ var updateData = _object_spread$i({}, createUpdatesWithArrayFunction(union, firestore.arrayUnion), createUpdatesWithArrayFunction(remove, firestore.arrayRemove));
9959
9959
  return updateData;
9960
9960
  }
9961
9961
 
@@ -9977,7 +9977,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
9977
9977
  if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
9978
9978
  return Constructor;
9979
9979
  }
9980
- function _define_property$m(obj, key, value) {
9980
+ function _define_property$n(obj, key, value) {
9981
9981
  if (key in obj) {
9982
9982
  Object.defineProperty(obj, key, {
9983
9983
  value: value,
@@ -10002,7 +10002,7 @@ function _define_property$m(obj, key, value) {
10002
10002
  */ var DefaultFirestoreDocumentDataAccessor = /*#__PURE__*/ function() {
10003
10003
  function DefaultFirestoreDocumentDataAccessor(documentRef) {
10004
10004
  _class_call_check$g(this, DefaultFirestoreDocumentDataAccessor);
10005
- _define_property$m(this, "_documentRef", void 0);
10005
+ _define_property$n(this, "_documentRef", void 0);
10006
10006
  this._documentRef = documentRef;
10007
10007
  }
10008
10008
  _create_class$9(DefaultFirestoreDocumentDataAccessor, [
@@ -10153,7 +10153,7 @@ function _create_class$8(Constructor, protoProps, staticProps) {
10153
10153
  if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
10154
10154
  return Constructor;
10155
10155
  }
10156
- function _define_property$l(obj, key, value) {
10156
+ function _define_property$m(obj, key, value) {
10157
10157
  if (key in obj) {
10158
10158
  Object.defineProperty(obj, key, {
10159
10159
  value: value,
@@ -10224,7 +10224,7 @@ function _is_native_reflect_construct$7() {
10224
10224
  var _this;
10225
10225
  _this = _call_super$7(this, WriteBatchFirestoreDocumentDataAccessor, [
10226
10226
  documentRef
10227
- ]), _define_property$l(_this, "_batch", void 0);
10227
+ ]), _define_property$m(_this, "_batch", void 0);
10228
10228
  _this._batch = batch;
10229
10229
  return _this;
10230
10230
  }
@@ -10294,9 +10294,9 @@ function _is_native_reflect_construct$7() {
10294
10294
  */ var WriteBatchFirestoreDocumentContext = /*#__PURE__*/ function() {
10295
10295
  function WriteBatchFirestoreDocumentContext(batch) {
10296
10296
  _class_call_check$f(this, WriteBatchFirestoreDocumentContext);
10297
- _define_property$l(this, "_batch", void 0);
10298
- _define_property$l(this, "contextType", exports.FirestoreDocumentContextType.BATCH);
10299
- _define_property$l(this, "accessorFactory", void 0);
10297
+ _define_property$m(this, "_batch", void 0);
10298
+ _define_property$m(this, "contextType", exports.FirestoreDocumentContextType.BATCH);
10299
+ _define_property$m(this, "accessorFactory", void 0);
10300
10300
  this._batch = batch;
10301
10301
  this.accessorFactory = writeBatchAccessorFactory(batch);
10302
10302
  }
@@ -10343,7 +10343,7 @@ function _create_class$7(Constructor, protoProps, staticProps) {
10343
10343
  if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
10344
10344
  return Constructor;
10345
10345
  }
10346
- function _define_property$k(obj, key, value) {
10346
+ function _define_property$l(obj, key, value) {
10347
10347
  if (key in obj) {
10348
10348
  Object.defineProperty(obj, key, {
10349
10349
  value: value,
@@ -10366,8 +10366,8 @@ function _define_property$k(obj, key, value) {
10366
10366
  */ var TransactionFirestoreDocumentDataAccessor = /*#__PURE__*/ function() {
10367
10367
  function TransactionFirestoreDocumentDataAccessor(transaction, documentRef) {
10368
10368
  _class_call_check$e(this, TransactionFirestoreDocumentDataAccessor);
10369
- _define_property$k(this, "_transaction", void 0);
10370
- _define_property$k(this, "_documentRef", void 0);
10369
+ _define_property$l(this, "_transaction", void 0);
10370
+ _define_property$l(this, "_documentRef", void 0);
10371
10371
  this._transaction = transaction;
10372
10372
  this._documentRef = documentRef;
10373
10373
  }
@@ -10488,9 +10488,9 @@ function _define_property$k(obj, key, value) {
10488
10488
  */ var TransactionFirestoreDocumentContext = /*#__PURE__*/ function() {
10489
10489
  function TransactionFirestoreDocumentContext(transaction) {
10490
10490
  _class_call_check$e(this, TransactionFirestoreDocumentContext);
10491
- _define_property$k(this, "_transaction", void 0);
10492
- _define_property$k(this, "contextType", exports.FirestoreDocumentContextType.TRANSACTION);
10493
- _define_property$k(this, "accessorFactory", void 0);
10491
+ _define_property$l(this, "_transaction", void 0);
10492
+ _define_property$l(this, "contextType", exports.FirestoreDocumentContextType.TRANSACTION);
10493
+ _define_property$l(this, "accessorFactory", void 0);
10494
10494
  this._transaction = transaction;
10495
10495
  this.accessorFactory = transactionAccessorFactory(transaction);
10496
10496
  }
@@ -10695,15 +10695,15 @@ function _ts_generator$c(thisArg, body) {
10695
10695
  };
10696
10696
  }
10697
10697
 
10698
- function _array_like_to_array$8(arr, len) {
10698
+ function _array_like_to_array$9(arr, len) {
10699
10699
  if (len == null || len > arr.length) len = arr.length;
10700
10700
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
10701
10701
  return arr2;
10702
10702
  }
10703
- function _array_without_holes$4(arr) {
10704
- if (Array.isArray(arr)) return _array_like_to_array$8(arr);
10703
+ function _array_without_holes$5(arr) {
10704
+ if (Array.isArray(arr)) return _array_like_to_array$9(arr);
10705
10705
  }
10706
- function _define_property$j(obj, key, value) {
10706
+ function _define_property$k(obj, key, value) {
10707
10707
  if (key in obj) {
10708
10708
  Object.defineProperty(obj, key, {
10709
10709
  value: value,
@@ -10716,13 +10716,13 @@ function _define_property$j(obj, key, value) {
10716
10716
  }
10717
10717
  return obj;
10718
10718
  }
10719
- function _iterable_to_array$4(iter) {
10719
+ function _iterable_to_array$5(iter) {
10720
10720
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
10721
10721
  }
10722
- function _non_iterable_spread$4() {
10722
+ function _non_iterable_spread$5() {
10723
10723
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10724
10724
  }
10725
- function _object_spread$g(target) {
10725
+ function _object_spread$h(target) {
10726
10726
  for(var i = 1; i < arguments.length; i++){
10727
10727
  var source = arguments[i] != null ? arguments[i] : {};
10728
10728
  var ownKeys = Object.keys(source);
@@ -10732,12 +10732,12 @@ function _object_spread$g(target) {
10732
10732
  }));
10733
10733
  }
10734
10734
  ownKeys.forEach(function(key) {
10735
- _define_property$j(target, key, source[key]);
10735
+ _define_property$k(target, key, source[key]);
10736
10736
  });
10737
10737
  }
10738
10738
  return target;
10739
10739
  }
10740
- function ownKeys$d(object, enumerableOnly) {
10740
+ function ownKeys$e(object, enumerableOnly) {
10741
10741
  var keys = Object.keys(object);
10742
10742
  if (Object.getOwnPropertySymbols) {
10743
10743
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10745,27 +10745,27 @@ function ownKeys$d(object, enumerableOnly) {
10745
10745
  }
10746
10746
  return keys;
10747
10747
  }
10748
- function _object_spread_props$d(target, source) {
10748
+ function _object_spread_props$e(target, source) {
10749
10749
  source = source != null ? source : {};
10750
10750
  if (Object.getOwnPropertyDescriptors) {
10751
10751
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10752
10752
  } else {
10753
- ownKeys$d(Object(source)).forEach(function(key) {
10753
+ ownKeys$e(Object(source)).forEach(function(key) {
10754
10754
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10755
10755
  });
10756
10756
  }
10757
10757
  return target;
10758
10758
  }
10759
- function _to_consumable_array$4(arr) {
10760
- return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$4();
10759
+ function _to_consumable_array$5(arr) {
10760
+ return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$5();
10761
10761
  }
10762
- function _unsupported_iterable_to_array$8(o, minLen) {
10762
+ function _unsupported_iterable_to_array$9(o, minLen) {
10763
10763
  if (!o) return;
10764
- if (typeof o === "string") return _array_like_to_array$8(o, minLen);
10764
+ if (typeof o === "string") return _array_like_to_array$9(o, minLen);
10765
10765
  var n = Object.prototype.toString.call(o).slice(8, -1);
10766
10766
  if (n === "Object" && o.constructor) n = o.constructor.name;
10767
10767
  if (n === "Map" || n === "Set") return Array.from(n);
10768
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
10768
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
10769
10769
  }
10770
10770
  /**
10771
10771
  * Appends one or more `QueryConstraint` values to the builder, returning a new builder instance.
@@ -10776,41 +10776,41 @@ function _unsupported_iterable_to_array$8(o, minLen) {
10776
10776
  */ function addConstraintToBuilder(builder, constraint) {
10777
10777
  return {
10778
10778
  query: builder.query,
10779
- constraints: _to_consumable_array$4(builder.constraints).concat(_to_consumable_array$4(Array.isArray(constraint) ? constraint : [
10779
+ constraints: _to_consumable_array$5(builder.constraints).concat(_to_consumable_array$5(Array.isArray(constraint) ? constraint : [
10780
10780
  constraint
10781
10781
  ]))
10782
10782
  };
10783
10783
  }
10784
- var _obj;
10784
+ var _obj$1;
10785
10785
  /**
10786
10786
  * Maps each abstract {@link FirestoreQueryConstraintType} to its client-side `firebase/firestore`
10787
10787
  * implementation. The `FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE` is `undefined` because Firestore
10788
10788
  * client SDK does not support offset-based pagination (server-only feature).
10789
- */ var FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING = (_obj = {}, _define_property$j(_obj, FIRESTORE_LIMIT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10789
+ */ var FIRESTORE_CLIENT_QUERY_CONSTRAINT_HANDLER_MAPPING = (_obj$1 = {}, _define_property$k(_obj$1, FIRESTORE_LIMIT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10790
10790
  return addConstraintToBuilder(builder, firestore.limit(data.limit));
10791
- }), _define_property$j(_obj, FIRESTORE_LIMIT_TO_LAST_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10791
+ }), _define_property$k(_obj$1, FIRESTORE_LIMIT_TO_LAST_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10792
10792
  return addConstraintToBuilder(builder, firestore.limitToLast(data.limit));
10793
- }), _define_property$j(_obj, FIRESTORE_ORDER_BY_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10793
+ }), _define_property$k(_obj$1, FIRESTORE_ORDER_BY_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10794
10794
  return addConstraintToBuilder(builder, firestore.orderBy(data.fieldPath, data.directionStr));
10795
- }), _define_property$j(_obj, FIRESTORE_ORDER_BY_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10795
+ }), _define_property$k(_obj$1, FIRESTORE_ORDER_BY_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10796
10796
  return addConstraintToBuilder(builder, firestore.orderBy(firestore.documentId(), data.directionStr));
10797
- }), _define_property$j(_obj, FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10797
+ }), _define_property$k(_obj$1, FIRESTORE_WHERE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10798
10798
  return addConstraintToBuilder(builder, firestore.where(data.fieldPath, data.opStr, data.value));
10799
- }), _define_property$j(_obj, FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10799
+ }), _define_property$k(_obj$1, FIRESTORE_WHERE_DOCUMENT_ID_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10800
10800
  return addConstraintToBuilder(builder, firestore.where(firestore.documentId(), data.opStr, data.value));
10801
- }), _define_property$j(_obj, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, undefined), _define_property$j(_obj, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10801
+ }), _define_property$k(_obj$1, FIRESTORE_OFFSET_QUERY_CONSTRAINT_TYPE, undefined), _define_property$k(_obj$1, FIRESTORE_START_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10802
10802
  return addConstraintToBuilder(builder, firestore.startAt(data.snapshot));
10803
- }), _define_property$j(_obj, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10804
- return addConstraintToBuilder(builder, firestore.startAt.apply(void 0, _to_consumable_array$4(data.fieldValues)));
10805
- }), _define_property$j(_obj, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10803
+ }), _define_property$k(_obj$1, FIRESTORE_START_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10804
+ return addConstraintToBuilder(builder, firestore.startAt.apply(void 0, _to_consumable_array$5(data.fieldValues)));
10805
+ }), _define_property$k(_obj$1, FIRESTORE_START_AFTER_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10806
10806
  return addConstraintToBuilder(builder, firestore.startAfter(data.snapshot));
10807
- }), _define_property$j(_obj, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10807
+ }), _define_property$k(_obj$1, FIRESTORE_END_AT_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10808
10808
  return addConstraintToBuilder(builder, firestore.endAt(data.snapshot));
10809
- }), _define_property$j(_obj, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10810
- return addConstraintToBuilder(builder, firestore.endAt.apply(void 0, _to_consumable_array$4(data.fieldValues)));
10811
- }), _define_property$j(_obj, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10809
+ }), _define_property$k(_obj$1, FIRESTORE_END_AT_VALUE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10810
+ return addConstraintToBuilder(builder, firestore.endAt.apply(void 0, _to_consumable_array$5(data.fieldValues)));
10811
+ }), _define_property$k(_obj$1, FIRESTORE_END_BEFORE_QUERY_CONSTRAINT_TYPE, function(builder, data) {
10812
10812
  return addConstraintToBuilder(builder, firestore.endBefore(data.snapshot));
10813
- }), _obj);
10813
+ }), _obj$1);
10814
10814
  /**
10815
10815
  * Creates a {@link FirestoreQueryConstraintFunctionsDriver} for the client `firebase/firestore` SDK.
10816
10816
  *
@@ -10831,7 +10831,7 @@ var _obj;
10831
10831
  var initialQuery = param.query, constraints = param.constraints;
10832
10832
  return firestore.query.apply(void 0, [
10833
10833
  initialQuery
10834
- ].concat(_to_consumable_array$4(constraints)));
10834
+ ].concat(_to_consumable_array$5(constraints)));
10835
10835
  },
10836
10836
  documentIdFieldPath: function documentIdFieldPath() {
10837
10837
  return firestore.documentId();
@@ -10853,7 +10853,7 @@ var _obj;
10853
10853
  * // Used internally by firebaseFirestoreClientDrivers()
10854
10854
  * ```
10855
10855
  */ function firebaseFirestoreQueryDriver() {
10856
- return _object_spread_props$d(_object_spread$g({}, firebaseFirestoreQueryConstraintFunctionsDriver()), {
10856
+ return _object_spread_props$e(_object_spread$h({}, firebaseFirestoreQueryConstraintFunctionsDriver()), {
10857
10857
  countDocs: function countDocs(query) {
10858
10858
  return firestore.getCountFromServer(query).then(function(x) {
10859
10859
  return x.data().count;
@@ -10949,7 +10949,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
10949
10949
  if (staticProps) _defineProperties$6(Constructor, staticProps);
10950
10950
  return Constructor;
10951
10951
  }
10952
- function _define_property$i(obj, key, value) {
10952
+ function _define_property$j(obj, key, value) {
10953
10953
  if (key in obj) {
10954
10954
  Object.defineProperty(obj, key, {
10955
10955
  value: value,
@@ -10981,7 +10981,7 @@ function _inherits$6(subClass, superClass) {
10981
10981
  });
10982
10982
  if (superClass) _set_prototype_of$6(subClass, superClass);
10983
10983
  }
10984
- function _object_spread$f(target) {
10984
+ function _object_spread$g(target) {
10985
10985
  for(var i = 1; i < arguments.length; i++){
10986
10986
  var source = arguments[i] != null ? arguments[i] : {};
10987
10987
  var ownKeys = Object.keys(source);
@@ -10991,7 +10991,7 @@ function _object_spread$f(target) {
10991
10991
  }));
10992
10992
  }
10993
10993
  ownKeys.forEach(function(key) {
10994
- _define_property$i(target, key, source[key]);
10994
+ _define_property$j(target, key, source[key]);
10995
10995
  });
10996
10996
  }
10997
10997
  return target;
@@ -11054,7 +11054,7 @@ function _is_native_reflect_construct$6() {
11054
11054
  var _this;
11055
11055
  _this = _call_super$6(this, FirebaseServerError, [
11056
11056
  serverError
11057
- ]), _define_property$i(_this, "firebaseError", void 0);
11057
+ ]), _define_property$j(_this, "firebaseError", void 0);
11058
11058
  _this.firebaseError = firebaseError;
11059
11059
  return _this;
11060
11060
  }
@@ -11076,7 +11076,7 @@ function _is_native_reflect_construct$6() {
11076
11076
  * @returns A new {@link FirebaseServerError} wrapping the given Firebase error with structured server error details.
11077
11077
  */ function fromFirebaseError(error) {
11078
11078
  var details = error.details;
11079
- details = _object_spread$f({
11079
+ details = _object_spread$g({
11080
11080
  status: 0,
11081
11081
  message: error.message || error.name,
11082
11082
  code: error.code
@@ -11118,7 +11118,7 @@ function _async_to_generator$b(fn) {
11118
11118
  });
11119
11119
  };
11120
11120
  }
11121
- function _define_property$h(obj, key, value) {
11121
+ function _define_property$i(obj, key, value) {
11122
11122
  if (key in obj) {
11123
11123
  Object.defineProperty(obj, key, {
11124
11124
  value: value,
@@ -11131,7 +11131,7 @@ function _define_property$h(obj, key, value) {
11131
11131
  }
11132
11132
  return obj;
11133
11133
  }
11134
- function _object_spread$e(target) {
11134
+ function _object_spread$f(target) {
11135
11135
  for(var i = 1; i < arguments.length; i++){
11136
11136
  var source = arguments[i] != null ? arguments[i] : {};
11137
11137
  var ownKeys = Object.keys(source);
@@ -11141,12 +11141,12 @@ function _object_spread$e(target) {
11141
11141
  }));
11142
11142
  }
11143
11143
  ownKeys.forEach(function(key) {
11144
- _define_property$h(target, key, source[key]);
11144
+ _define_property$i(target, key, source[key]);
11145
11145
  });
11146
11146
  }
11147
11147
  return target;
11148
11148
  }
11149
- function ownKeys$c(object, enumerableOnly) {
11149
+ function ownKeys$d(object, enumerableOnly) {
11150
11150
  var keys = Object.keys(object);
11151
11151
  if (Object.getOwnPropertySymbols) {
11152
11152
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11154,12 +11154,12 @@ function ownKeys$c(object, enumerableOnly) {
11154
11154
  }
11155
11155
  return keys;
11156
11156
  }
11157
- function _object_spread_props$c(target, source) {
11157
+ function _object_spread_props$d(target, source) {
11158
11158
  source = source != null ? source : {};
11159
11159
  if (Object.getOwnPropertyDescriptors) {
11160
11160
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
11161
11161
  } else {
11162
- ownKeys$c(Object(source)).forEach(function(key) {
11162
+ ownKeys$d(Object(source)).forEach(function(key) {
11163
11163
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11164
11164
  });
11165
11165
  }
@@ -11310,7 +11310,7 @@ function mapHttpsCallable(callable, wrap) {
11310
11310
  mappedResultData = _state.sent();
11311
11311
  return [
11312
11312
  2,
11313
- directData ? mappedResultData : _object_spread_props$c(_object_spread$e({}, result), {
11313
+ directData ? mappedResultData : _object_spread_props$d(_object_spread$f({}, result), {
11314
11314
  data: mappedResultData
11315
11315
  })
11316
11316
  ];
@@ -11553,7 +11553,7 @@ function onCallTypedModelParams(modelTypeInput, data, specifier, call) {
11553
11553
  return onCallTypedModelParamsFunction(call)(modelTypeInput, data, specifier);
11554
11554
  }
11555
11555
 
11556
- function _array_like_to_array$7(arr, len) {
11556
+ function _array_like_to_array$8(arr, len) {
11557
11557
  if (len == null || len > arr.length) len = arr.length;
11558
11558
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
11559
11559
  return arr2;
@@ -11589,15 +11589,15 @@ function _non_iterable_rest$3() {
11589
11589
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11590
11590
  }
11591
11591
  function _sliced_to_array$3(arr, i) {
11592
- return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$3();
11592
+ return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$3();
11593
11593
  }
11594
- function _unsupported_iterable_to_array$7(o, minLen) {
11594
+ function _unsupported_iterable_to_array$8(o, minLen) {
11595
11595
  if (!o) return;
11596
- if (typeof o === "string") return _array_like_to_array$7(o, minLen);
11596
+ if (typeof o === "string") return _array_like_to_array$8(o, minLen);
11597
11597
  var n = Object.prototype.toString.call(o).slice(8, -1);
11598
11598
  if (n === "Object" && o.constructor) n = o.constructor.name;
11599
11599
  if (n === "Map" || n === "Set") return Array.from(n);
11600
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
11600
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
11601
11601
  }
11602
11602
  /**
11603
11603
  * Default specifier string (`'_'`) used when a CRUD operation has specifiers but one
@@ -12016,6 +12016,10 @@ function _class_call_check$c(instance, Constructor) {
12016
12016
  return x.value;
12017
12017
  });
12018
12018
 
12019
+ /**
12020
+ * Suffix appended to a default profile's description in {@link oidcProviderProfileDetails}, so an
12021
+ * admin viewing the picker sees that leaving the field empty still grants that profile's scopes.
12022
+ */ var OIDC_PROVIDER_PROFILE_DEFAULT_DESCRIPTION_SUFFIX = 'Applied by default when no profiles are assigned.';
12019
12023
  // MARK: Utility
12020
12024
  /**
12021
12025
  * Filters the provider-profile registry to the profiles matching the given assigned keys.
@@ -12029,6 +12033,35 @@ function _class_call_check$c(instance, Constructor) {
12029
12033
  return keySet.has(profile.key);
12030
12034
  });
12031
12035
  }
12036
+ /**
12037
+ * Filters the provider-profile registry to the profiles marked {@link OidcProviderProfile.isDefault}.
12038
+ *
12039
+ * @param profiles - The full provider-profile registry.
12040
+ * @returns The registry profiles that apply to a client with no assigned profiles.
12041
+ */ function defaultOidcProviderProfiles(profiles) {
12042
+ return profiles.filter(function(profile) {
12043
+ return profile.isDefault === true;
12044
+ });
12045
+ }
12046
+ /**
12047
+ * Resolves the profiles that apply to a client: its assigned profiles, or — when it has NO profiles
12048
+ * assigned — the registry's default profiles.
12049
+ *
12050
+ * The fallback is exclusive: a client with any assigned key resolves to exactly
12051
+ * {@link oidcProviderProfilesForKeys}, so a non-default assignment never additionally confers the
12052
+ * default profiles' scopes. A registry declaring no default behaves identically to
12053
+ * {@link oidcProviderProfilesForKeys}.
12054
+ *
12055
+ * The fallback keys off the assigned key list being empty/absent rather than off the resolved set
12056
+ * being empty, so a client whose assigned profile was later removed from the registry resolves to no
12057
+ * profiles (fail-closed) rather than silently picking up the default.
12058
+ *
12059
+ * @param profiles - The full provider-profile registry.
12060
+ * @param keys - The profile keys assigned to the client (its `dbx_provider_profiles`).
12061
+ * @returns The client's assigned profiles, or the default profiles when none are assigned.
12062
+ */ function oidcProviderProfilesForClient(profiles, keys) {
12063
+ return (keys === null || keys === void 0 ? void 0 : keys.length) ? oidcProviderProfilesForKeys(profiles, keys) : defaultOidcProviderProfiles(profiles);
12064
+ }
12032
12065
  /**
12033
12066
  * Collects every scope referenced by the given profiles.
12034
12067
  *
@@ -12036,6 +12069,11 @@ function _class_call_check$c(instance, Constructor) {
12036
12069
  * obtain via a profile. Passed a client's assigned profiles, this is the set of scopes those
12037
12070
  * profiles unlock for that client.
12038
12071
  *
12072
+ * Note a gated scope is not necessarily unavailable to an unassigned client: a scope unlocked by a
12073
+ * default profile is gated yet reachable by every client. Use
12074
+ * {@link assignmentOnlyScopesForOidcProviderProfiles} for the "requires an explicit assignment"
12075
+ * subset (e.g. to exclude scopes from a general picker or from advertised scope metadata).
12076
+ *
12039
12077
  * @param profiles - The profiles to collect scopes from.
12040
12078
  * @returns The union of every profile's scopes.
12041
12079
  */ function scopesForOidcProviderProfiles(profiles) {
@@ -12063,9 +12101,59 @@ function _class_call_check$c(instance, Constructor) {
12063
12101
  });
12064
12102
  return result;
12065
12103
  }
12104
+ /**
12105
+ * Collects the scopes unlocked by the registry's default profiles — the scopes every client can
12106
+ * obtain, including one with no profiles assigned.
12107
+ *
12108
+ * @param profiles - The full provider-profile registry.
12109
+ * @returns The union of every default profile's scopes. Empty when no profile is marked default.
12110
+ */ function defaultUnlockedScopesForOidcProviderProfiles(profiles) {
12111
+ return scopesForOidcProviderProfiles(defaultOidcProviderProfiles(profiles));
12112
+ }
12113
+ /**
12114
+ * Collects the gated scopes that are NOT unlocked by default — the scopes a client can only obtain
12115
+ * via an explicit profile assignment.
12116
+ *
12117
+ * This is the set to exclude from a general scope picker or from advertised scope metadata (e.g. an
12118
+ * MCP protected-resource document's `scopes_supported`). Prefer it over
12119
+ * {@link scopesForOidcProviderProfiles} for that job: the full gated set would wrongly drop a
12120
+ * default-unlocked scope that every client can in fact obtain. With no default declared the two are
12121
+ * identical.
12122
+ *
12123
+ * @param profiles - The full provider-profile registry.
12124
+ * @returns Every profile-gated scope minus the default-unlocked ones.
12125
+ */ function assignmentOnlyScopesForOidcProviderProfiles(profiles) {
12126
+ var defaultUnlockedScopes = defaultUnlockedScopesForOidcProviderProfiles(profiles);
12127
+ var result = new Set();
12128
+ scopesForOidcProviderProfiles(profiles).forEach(function(scope) {
12129
+ if (!defaultUnlockedScopes.has(scope)) {
12130
+ result.add(scope);
12131
+ }
12132
+ });
12133
+ return result;
12134
+ }
12135
+ /**
12136
+ * Collects the scopes of every profile marked {@link OidcProviderProfile.adminOnly}.
12137
+ *
12138
+ * Unioned with `OidcProviderConfig.adminOnlyScopes` by the consent admin-only gate: a consent
12139
+ * requesting one of these scopes is hard-rejected with `access_denied` when the resolving user is
12140
+ * not an admin.
12141
+ *
12142
+ * @param profiles - The full provider-profile registry.
12143
+ * @returns The union of every admin-only profile's scopes. Empty when no profile is marked admin-only.
12144
+ */ function adminOnlyScopesForOidcProviderProfiles(profiles) {
12145
+ return scopesForOidcProviderProfiles(profiles.filter(function(profile) {
12146
+ return profile.adminOnly === true;
12147
+ }));
12148
+ }
12066
12149
  /**
12067
12150
  * Builds picker entries for the given provider profiles, suitable for an admin profile-selection field.
12068
12151
  *
12152
+ * A default profile's description carries {@link OIDC_PROVIDER_PROFILE_DEFAULT_DESCRIPTION_SUFFIX} so
12153
+ * an admin isn't surprised that an empty selection still grants scopes. Default profiles are
12154
+ * deliberately not pre-selected — persisting the default as an explicit assignment would opt the
12155
+ * client out of the fallback, so it would stop tracking the registry if the default later changed.
12156
+ *
12069
12157
  * @param profiles - The provider-profile registry.
12070
12158
  * @returns One {@link OidcProviderProfileDetails} per profile.
12071
12159
  */ function oidcProviderProfileDetails(profiles) {
@@ -12073,7 +12161,10 @@ function _class_call_check$c(instance, Constructor) {
12073
12161
  return {
12074
12162
  value: profile.key,
12075
12163
  label: profile.label,
12076
- description: profile.description
12164
+ description: profile.isDefault ? [
12165
+ profile.description,
12166
+ OIDC_PROVIDER_PROFILE_DEFAULT_DESCRIPTION_SUFFIX
12167
+ ].filter(Boolean).join(' ') : profile.description
12077
12168
  };
12078
12169
  });
12079
12170
  }
@@ -12343,7 +12434,7 @@ var OFFLINE_ACCESS_OIDC_SCOPE_DETAILS = {
12343
12434
  return result;
12344
12435
  }
12345
12436
 
12346
- function _array_like_to_array$6(arr, len) {
12437
+ function _array_like_to_array$7(arr, len) {
12347
12438
  if (len == null || len > arr.length) len = arr.length;
12348
12439
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
12349
12440
  return arr2;
@@ -12379,15 +12470,15 @@ function _non_iterable_rest$2() {
12379
12470
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12380
12471
  }
12381
12472
  function _sliced_to_array$2(arr, i) {
12382
- return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$2();
12473
+ return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$2();
12383
12474
  }
12384
- function _unsupported_iterable_to_array$6(o, minLen) {
12475
+ function _unsupported_iterable_to_array$7(o, minLen) {
12385
12476
  if (!o) return;
12386
- if (typeof o === "string") return _array_like_to_array$6(o, minLen);
12477
+ if (typeof o === "string") return _array_like_to_array$7(o, minLen);
12387
12478
  var n = Object.prototype.toString.call(o).slice(8, -1);
12388
12479
  if (n === "Object" && o.constructor) n = o.constructor.name;
12389
12480
  if (n === "Map" || n === "Set") return Array.from(n);
12390
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
12481
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
12391
12482
  }
12392
12483
  /**
12393
12484
  * Minimum password length enforced by Firebase Authentication.
@@ -12620,7 +12711,7 @@ function _class_call_check$b(instance, Constructor) {
12620
12711
  throw new TypeError("Cannot call a class as a function");
12621
12712
  }
12622
12713
  }
12623
- function _define_property$g(obj, key, value) {
12714
+ function _define_property$h(obj, key, value) {
12624
12715
  if (key in obj) {
12625
12716
  Object.defineProperty(obj, key, {
12626
12717
  value: value,
@@ -12650,7 +12741,7 @@ function _define_property$g(obj, key, value) {
12650
12741
  * Entry in the list of available scheduled functions returned by the development endpoint.
12651
12742
  */ var ScheduledFunctionDevelopmentFirebaseFunctionListEntry = function ScheduledFunctionDevelopmentFirebaseFunctionListEntry() {
12652
12743
  _class_call_check$b(this, ScheduledFunctionDevelopmentFirebaseFunctionListEntry);
12653
- _define_property$g(this, "name", void 0);
12744
+ _define_property$h(this, "name", void 0);
12654
12745
  };
12655
12746
  /**
12656
12747
  * Development function specifier used to route requests to the scheduled function endpoint.
@@ -12815,7 +12906,7 @@ function _create_class$5(Constructor, protoProps, staticProps) {
12815
12906
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
12816
12907
  return Constructor;
12817
12908
  }
12818
- function _define_property$f(obj, key, value) {
12909
+ function _define_property$g(obj, key, value) {
12819
12910
  if (key in obj) {
12820
12911
  Object.defineProperty(obj, key, {
12821
12912
  value: value,
@@ -12983,7 +13074,7 @@ function _ts_generator$a(thisArg, body) {
12983
13074
  var _this;
12984
13075
  _this = _call_super$5(this, FirebaseModelPermissionServiceInstance, [
12985
13076
  delegate
12986
- ]), _define_property$f(_this, "_delegate", void 0);
13077
+ ]), _define_property$g(_this, "_delegate", void 0);
12987
13078
  _this._delegate = delegate;
12988
13079
  return _this;
12989
13080
  }
@@ -13068,7 +13159,7 @@ function _create_class$4(Constructor, protoProps, staticProps) {
13068
13159
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
13069
13160
  return Constructor;
13070
13161
  }
13071
- function _define_property$e(obj, key, value) {
13162
+ function _define_property$f(obj, key, value) {
13072
13163
  if (key in obj) {
13073
13164
  Object.defineProperty(obj, key, {
13074
13165
  value: value,
@@ -13089,8 +13180,8 @@ function _define_property$e(obj, key, value) {
13089
13180
  */ var ContextGrantedModelRolesReaderInstance = /*#__PURE__*/ function() {
13090
13181
  function ContextGrantedModelRolesReaderInstance(contextGrantedModelRoles) {
13091
13182
  _class_call_check$9(this, ContextGrantedModelRolesReaderInstance);
13092
- _define_property$e(this, "_contextGrantedModelRoles", void 0);
13093
- _define_property$e(this, "_roleReader", void 0);
13183
+ _define_property$f(this, "_contextGrantedModelRoles", void 0);
13184
+ _define_property$f(this, "_roleReader", void 0);
13094
13185
  this._contextGrantedModelRoles = contextGrantedModelRoles;
13095
13186
  this._roleReader = model.grantedRoleMapReader(contextGrantedModelRoles.roleMap);
13096
13187
  }
@@ -13612,7 +13703,7 @@ function _ts_generator$9(thisArg, body) {
13612
13703
  * Error code for an invalid or inaccessible cursor document key in a query request.
13613
13704
  */ var BAD_DOCUMENT_QUERY_CURSOR_ERROR_CODE = 'BAD_DOCUMENT_QUERY_CURSOR';
13614
13705
 
13615
- function _define_property$d(obj, key, value) {
13706
+ function _define_property$e(obj, key, value) {
13616
13707
  if (key in obj) {
13617
13708
  Object.defineProperty(obj, key, {
13618
13709
  value: value,
@@ -13625,7 +13716,7 @@ function _define_property$d(obj, key, value) {
13625
13716
  }
13626
13717
  return obj;
13627
13718
  }
13628
- function _object_spread$d(target) {
13719
+ function _object_spread$e(target) {
13629
13720
  for(var i = 1; i < arguments.length; i++){
13630
13721
  var source = arguments[i] != null ? arguments[i] : {};
13631
13722
  var ownKeys = Object.keys(source);
@@ -13635,12 +13726,12 @@ function _object_spread$d(target) {
13635
13726
  }));
13636
13727
  }
13637
13728
  ownKeys.forEach(function(key) {
13638
- _define_property$d(target, key, source[key]);
13729
+ _define_property$e(target, key, source[key]);
13639
13730
  });
13640
13731
  }
13641
13732
  return target;
13642
13733
  }
13643
- function ownKeys$b(object, enumerableOnly) {
13734
+ function ownKeys$c(object, enumerableOnly) {
13644
13735
  var keys = Object.keys(object);
13645
13736
  if (Object.getOwnPropertySymbols) {
13646
13737
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13648,12 +13739,12 @@ function ownKeys$b(object, enumerableOnly) {
13648
13739
  }
13649
13740
  return keys;
13650
13741
  }
13651
- function _object_spread_props$b(target, source) {
13742
+ function _object_spread_props$c(target, source) {
13652
13743
  source = source != null ? source : {};
13653
13744
  if (Object.getOwnPropertyDescriptors) {
13654
13745
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
13655
13746
  } else {
13656
- ownKeys$b(Object(source)).forEach(function(key) {
13747
+ ownKeys$c(Object(source)).forEach(function(key) {
13657
13748
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13658
13749
  });
13659
13750
  }
@@ -13792,7 +13883,7 @@ function _object_spread_props$b(target, source) {
13792
13883
  */ function firebaseModelsService(services) {
13793
13884
  var firebaseModelsServiceFunction = function firebaseModelsServiceFunction1(type, context) {
13794
13885
  var firebaseModelService = services[type];
13795
- var contextWithService = _object_spread_props$b(_object_spread$d({}, context), {
13886
+ var contextWithService = _object_spread_props$c(_object_spread$e({}, context), {
13796
13887
  service: firebaseModelsServiceFunction
13797
13888
  });
13798
13889
  var service = inContextFirebaseModelServiceFactory(firebaseModelService)(contextWithService);
@@ -13945,7 +14036,7 @@ function _async_to_generator$8(fn) {
13945
14036
  });
13946
14037
  };
13947
14038
  }
13948
- function _define_property$c(obj, key, value) {
14039
+ function _define_property$d(obj, key, value) {
13949
14040
  if (key in obj) {
13950
14041
  Object.defineProperty(obj, key, {
13951
14042
  value: value,
@@ -13958,7 +14049,7 @@ function _define_property$c(obj, key, value) {
13958
14049
  }
13959
14050
  return obj;
13960
14051
  }
13961
- function _object_spread$c(target) {
14052
+ function _object_spread$d(target) {
13962
14053
  for(var i = 1; i < arguments.length; i++){
13963
14054
  var source = arguments[i] != null ? arguments[i] : {};
13964
14055
  var ownKeys = Object.keys(source);
@@ -13968,12 +14059,12 @@ function _object_spread$c(target) {
13968
14059
  }));
13969
14060
  }
13970
14061
  ownKeys.forEach(function(key) {
13971
- _define_property$c(target, key, source[key]);
14062
+ _define_property$d(target, key, source[key]);
13972
14063
  });
13973
14064
  }
13974
14065
  return target;
13975
14066
  }
13976
- function ownKeys$a(object, enumerableOnly) {
14067
+ function ownKeys$b(object, enumerableOnly) {
13977
14068
  var keys = Object.keys(object);
13978
14069
  if (Object.getOwnPropertySymbols) {
13979
14070
  var symbols = Object.getOwnPropertySymbols(object);
@@ -13981,12 +14072,12 @@ function ownKeys$a(object, enumerableOnly) {
13981
14072
  }
13982
14073
  return keys;
13983
14074
  }
13984
- function _object_spread_props$a(target, source) {
14075
+ function _object_spread_props$b(target, source) {
13985
14076
  source = source != null ? source : {};
13986
14077
  if (Object.getOwnPropertyDescriptors) {
13987
14078
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
13988
14079
  } else {
13989
- ownKeys$a(Object(source)).forEach(function(key) {
14080
+ ownKeys$b(Object(source)).forEach(function(key) {
13990
14081
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13991
14082
  });
13992
14083
  }
@@ -14135,7 +14226,7 @@ function _ts_generator$8(thisArg, body) {
14135
14226
  },
14136
14227
  buildInputForNextPage: function buildInputForNextPage(pageResult, input, _options) {
14137
14228
  var _pageResult_nextPageCursor;
14138
- return _object_spread_props$a(_object_spread$c({}, input), {
14229
+ return _object_spread_props$b(_object_spread$d({}, input), {
14139
14230
  pageToken: (_pageResult_nextPageCursor = pageResult.nextPageCursor) !== null && _pageResult_nextPageCursor !== void 0 ? _pageResult_nextPageCursor : undefined
14140
14231
  });
14141
14232
  }
@@ -14150,7 +14241,7 @@ function _ts_generator$8(thisArg, body) {
14150
14241
  * @returns The result of the paginated per-item iteration.
14151
14242
  */ function iterateStorageListFilesByEachFile(input) {
14152
14243
  var folder = input.folder, includeNestedResults = input.includeNestedResults, pageToken = input.pageToken;
14153
- return fetch.iterateFetchPagesByEachItem(_object_spread_props$a(_object_spread$c({}, input), {
14244
+ return fetch.iterateFetchPagesByEachItem(_object_spread_props$b(_object_spread$d({}, input), {
14154
14245
  input: {
14155
14246
  folder: folder,
14156
14247
  includeNestedResults: includeNestedResults,
@@ -14168,7 +14259,7 @@ function _ts_generator$8(thisArg, body) {
14168
14259
  * @returns The result of the paginated page-level iteration.
14169
14260
  */ function iterateStorageListFiles(input) {
14170
14261
  var folder = input.folder, includeNestedResults = input.includeNestedResults, pageToken = input.pageToken;
14171
- return fetch.iterateFetchPages(_object_spread_props$a(_object_spread$c({}, input), {
14262
+ return fetch.iterateFetchPages(_object_spread_props$b(_object_spread$d({}, input), {
14172
14263
  input: {
14173
14264
  folder: folder,
14174
14265
  includeNestedResults: includeNestedResults,
@@ -14563,13 +14654,13 @@ function _ts_generator$7(thisArg, body) {
14563
14654
  };
14564
14655
  }
14565
14656
 
14566
- function _array_like_to_array$5(arr, len) {
14657
+ function _array_like_to_array$6(arr, len) {
14567
14658
  if (len == null || len > arr.length) len = arr.length;
14568
14659
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
14569
14660
  return arr2;
14570
14661
  }
14571
- function _array_without_holes$3(arr) {
14572
- if (Array.isArray(arr)) return _array_like_to_array$5(arr);
14662
+ function _array_without_holes$4(arr) {
14663
+ if (Array.isArray(arr)) return _array_like_to_array$6(arr);
14573
14664
  }
14574
14665
  function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
14575
14666
  try {
@@ -14600,7 +14691,7 @@ function _async_to_generator$6(fn) {
14600
14691
  });
14601
14692
  };
14602
14693
  }
14603
- function _define_property$b(obj, key, value) {
14694
+ function _define_property$c(obj, key, value) {
14604
14695
  if (key in obj) {
14605
14696
  Object.defineProperty(obj, key, {
14606
14697
  value: value,
@@ -14613,13 +14704,13 @@ function _define_property$b(obj, key, value) {
14613
14704
  }
14614
14705
  return obj;
14615
14706
  }
14616
- function _iterable_to_array$3(iter) {
14707
+ function _iterable_to_array$4(iter) {
14617
14708
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
14618
14709
  }
14619
- function _non_iterable_spread$3() {
14710
+ function _non_iterable_spread$4() {
14620
14711
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14621
14712
  }
14622
- function _object_spread$b(target) {
14713
+ function _object_spread$c(target) {
14623
14714
  for(var i = 1; i < arguments.length; i++){
14624
14715
  var source = arguments[i] != null ? arguments[i] : {};
14625
14716
  var ownKeys = Object.keys(source);
@@ -14629,12 +14720,12 @@ function _object_spread$b(target) {
14629
14720
  }));
14630
14721
  }
14631
14722
  ownKeys.forEach(function(key) {
14632
- _define_property$b(target, key, source[key]);
14723
+ _define_property$c(target, key, source[key]);
14633
14724
  });
14634
14725
  }
14635
14726
  return target;
14636
14727
  }
14637
- function ownKeys$9(object, enumerableOnly) {
14728
+ function ownKeys$a(object, enumerableOnly) {
14638
14729
  var keys = Object.keys(object);
14639
14730
  if (Object.getOwnPropertySymbols) {
14640
14731
  var symbols = Object.getOwnPropertySymbols(object);
@@ -14642,27 +14733,27 @@ function ownKeys$9(object, enumerableOnly) {
14642
14733
  }
14643
14734
  return keys;
14644
14735
  }
14645
- function _object_spread_props$9(target, source) {
14736
+ function _object_spread_props$a(target, source) {
14646
14737
  source = source != null ? source : {};
14647
14738
  if (Object.getOwnPropertyDescriptors) {
14648
14739
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
14649
14740
  } else {
14650
- ownKeys$9(Object(source)).forEach(function(key) {
14741
+ ownKeys$a(Object(source)).forEach(function(key) {
14651
14742
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
14652
14743
  });
14653
14744
  }
14654
14745
  return target;
14655
14746
  }
14656
- function _to_consumable_array$3(arr) {
14657
- return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$3();
14747
+ function _to_consumable_array$4(arr) {
14748
+ return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$4();
14658
14749
  }
14659
- function _unsupported_iterable_to_array$5(o, minLen) {
14750
+ function _unsupported_iterable_to_array$6(o, minLen) {
14660
14751
  if (!o) return;
14661
- if (typeof o === "string") return _array_like_to_array$5(o, minLen);
14752
+ if (typeof o === "string") return _array_like_to_array$6(o, minLen);
14662
14753
  var n = Object.prototype.toString.call(o).slice(8, -1);
14663
14754
  if (n === "Object" && o.constructor) n = o.constructor.name;
14664
14755
  if (n === "Map" || n === "Set") return Array.from(n);
14665
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
14756
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
14666
14757
  }
14667
14758
  function _ts_generator$6(thisArg, body) {
14668
14759
  var f, y, t, _ = {
@@ -14833,7 +14924,7 @@ function _ts_generator$6(thisArg, body) {
14833
14924
  contentEncoding: (_options_metadata2 = options.metadata) === null || _options_metadata2 === void 0 ? void 0 : _options_metadata2.contentEncoding,
14834
14925
  contentLanguage: (_options_metadata3 = options.metadata) === null || _options_metadata3 === void 0 ? void 0 : _options_metadata3.contentLanguage,
14835
14926
  contentType: (_options_metadata4 = options.metadata) === null || _options_metadata4 === void 0 ? void 0 : _options_metadata4.contentType,
14836
- customMetadata: util.filterUndefinedValues(_object_spread$b({}, (_options_metadata5 = options.metadata) === null || _options_metadata5 === void 0 ? void 0 : _options_metadata5.customMetadata, options.customMetadata))
14927
+ customMetadata: util.filterUndefinedValues(_object_spread$c({}, (_options_metadata5 = options.metadata) === null || _options_metadata5 === void 0 ? void 0 : _options_metadata5.customMetadata, options.customMetadata))
14837
14928
  });
14838
14929
  }
14839
14930
  function uploadMetadataFromStorageUploadOptions(options) {
@@ -14842,7 +14933,7 @@ function _ts_generator$6(thisArg, body) {
14842
14933
  var _options_contentType;
14843
14934
  var _options_metadata;
14844
14935
  result = _configureMetadata({
14845
- metadata: _object_spread_props$9(_object_spread$b({}, options.metadata), {
14936
+ metadata: _object_spread_props$a(_object_spread$c({}, options.metadata), {
14846
14937
  contentType: (_options_contentType = options.contentType) !== null && _options_contentType !== void 0 ? _options_contentType : (_options_metadata = options.metadata) === null || _options_metadata === void 0 ? void 0 : _options_metadata.contentType
14847
14938
  }),
14848
14939
  customMetadata: options.customMetadata
@@ -14959,7 +15050,7 @@ function _ts_generator$6(thisArg, body) {
14959
15050
  },
14960
15051
  next: function next(param, result) {
14961
15052
  var options = param.options, folder = param.folder;
14962
- return folder.list(_object_spread_props$9(_object_spread$b({}, options, result.options), {
15053
+ return folder.list(_object_spread_props$a(_object_spread$c({}, options, result.options), {
14963
15054
  pageToken: result.listResult.nextPageToken
14964
15055
  }));
14965
15056
  },
@@ -15060,8 +15151,8 @@ function _ts_generator$6(thisArg, body) {
15060
15151
  case 2:
15061
15152
  allNestedFolderFileResults = _state.sent();
15062
15153
  allNestedFiles = allNestedFolderFileResults.flat();
15063
- allFiles = _to_consumable_array$3(allImmediateFiles).concat(_to_consumable_array$3(allNestedFiles));
15064
- result = _object_spread_props$9(_object_spread$b({}, rootResults), {
15154
+ allFiles = _to_consumable_array$4(allImmediateFiles).concat(_to_consumable_array$4(allNestedFiles));
15155
+ result = _object_spread_props$a(_object_spread$c({}, rootResults), {
15065
15156
  files: function files() {
15066
15157
  return allFiles;
15067
15158
  },
@@ -15231,7 +15322,7 @@ function _ts_generator$6(thisArg, body) {
15231
15322
  return "".concat(firestoreModelId(input), "_").concat(taskType); // combineation of model id and template type
15232
15323
  }
15233
15324
 
15234
- function _define_property$a(obj, key, value) {
15325
+ function _define_property$b(obj, key, value) {
15235
15326
  if (key in obj) {
15236
15327
  Object.defineProperty(obj, key, {
15237
15328
  value: value,
@@ -15244,7 +15335,7 @@ function _define_property$a(obj, key, value) {
15244
15335
  }
15245
15336
  return obj;
15246
15337
  }
15247
- function _object_spread$a(target) {
15338
+ function _object_spread$b(target) {
15248
15339
  for(var i = 1; i < arguments.length; i++){
15249
15340
  var source = arguments[i] != null ? arguments[i] : {};
15250
15341
  var ownKeys = Object.keys(source);
@@ -15254,12 +15345,12 @@ function _object_spread$a(target) {
15254
15345
  }));
15255
15346
  }
15256
15347
  ownKeys.forEach(function(key) {
15257
- _define_property$a(target, key, source[key]);
15348
+ _define_property$b(target, key, source[key]);
15258
15349
  });
15259
15350
  }
15260
15351
  return target;
15261
15352
  }
15262
- function ownKeys$8(object, enumerableOnly) {
15353
+ function ownKeys$9(object, enumerableOnly) {
15263
15354
  var keys = Object.keys(object);
15264
15355
  if (Object.getOwnPropertySymbols) {
15265
15356
  var symbols = Object.getOwnPropertySymbols(object);
@@ -15267,12 +15358,12 @@ function ownKeys$8(object, enumerableOnly) {
15267
15358
  }
15268
15359
  return keys;
15269
15360
  }
15270
- function _object_spread_props$8(target, source) {
15361
+ function _object_spread_props$9(target, source) {
15271
15362
  source = source != null ? source : {};
15272
15363
  if (Object.getOwnPropertyDescriptors) {
15273
15364
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
15274
15365
  } else {
15275
- ownKeys$8(Object(source)).forEach(function(key) {
15366
+ ownKeys$9(Object(source)).forEach(function(key) {
15276
15367
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15277
15368
  });
15278
15369
  }
@@ -15402,7 +15493,7 @@ function _object_spread_props$8(target, source) {
15402
15493
  * @returns The merged config.
15403
15494
  */ function mergeNotificationUserDefaultNotificationBoxRecipientConfig(a, b) {
15404
15495
  var c = mergeNotificationBoxRecipientTemplateConfigRecords(a.c, b.c);
15405
- var result = _object_spread_props$8(_object_spread$a({}, util.mergeObjects([
15496
+ var result = _object_spread_props$9(_object_spread$b({}, util.mergeObjects([
15406
15497
  a,
15407
15498
  b
15408
15499
  ], util.KeyValueTypleValueFilter.UNDEFINED)), {
@@ -15600,7 +15691,7 @@ var notificationBoxRecipientTemplateConfigDencoder = util.bitwiseObjectDencoder(
15600
15691
  var array = [];
15601
15692
  util.forEachKeyValue(input, {
15602
15693
  forEach: function forEach(x) {
15603
- array.push(_object_spread$a({
15694
+ array.push(_object_spread$b({
15604
15695
  type: x[0]
15605
15696
  }, x[1]));
15606
15697
  }
@@ -15626,6 +15717,564 @@ var notificationBoxRecipientTemplateConfigDencoder = util.bitwiseObjectDencoder(
15626
15717
  return map;
15627
15718
  }
15628
15719
 
15720
+ function _array_like_to_array$5(arr, len) {
15721
+ if (len == null || len > arr.length) len = arr.length;
15722
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15723
+ return arr2;
15724
+ }
15725
+ function _array_without_holes$3(arr) {
15726
+ if (Array.isArray(arr)) return _array_like_to_array$5(arr);
15727
+ }
15728
+ function _define_property$a(obj, key, value) {
15729
+ if (key in obj) {
15730
+ Object.defineProperty(obj, key, {
15731
+ value: value,
15732
+ enumerable: true,
15733
+ configurable: true,
15734
+ writable: true
15735
+ });
15736
+ } else {
15737
+ obj[key] = value;
15738
+ }
15739
+ return obj;
15740
+ }
15741
+ function _iterable_to_array$3(iter) {
15742
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
15743
+ }
15744
+ function _non_iterable_spread$3() {
15745
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15746
+ }
15747
+ function _object_spread$a(target) {
15748
+ for(var i = 1; i < arguments.length; i++){
15749
+ var source = arguments[i] != null ? arguments[i] : {};
15750
+ var ownKeys = Object.keys(source);
15751
+ if (typeof Object.getOwnPropertySymbols === "function") {
15752
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
15753
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
15754
+ }));
15755
+ }
15756
+ ownKeys.forEach(function(key) {
15757
+ _define_property$a(target, key, source[key]);
15758
+ });
15759
+ }
15760
+ return target;
15761
+ }
15762
+ function ownKeys$8(object, enumerableOnly) {
15763
+ var keys = Object.keys(object);
15764
+ if (Object.getOwnPropertySymbols) {
15765
+ var symbols = Object.getOwnPropertySymbols(object);
15766
+ keys.push.apply(keys, symbols);
15767
+ }
15768
+ return keys;
15769
+ }
15770
+ function _object_spread_props$8(target, source) {
15771
+ source = source != null ? source : {};
15772
+ if (Object.getOwnPropertyDescriptors) {
15773
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
15774
+ } else {
15775
+ ownKeys$8(Object(source)).forEach(function(key) {
15776
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
15777
+ });
15778
+ }
15779
+ return target;
15780
+ }
15781
+ function _to_consumable_array$3(arr) {
15782
+ return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$3();
15783
+ }
15784
+ function _unsupported_iterable_to_array$5(o, minLen) {
15785
+ if (!o) return;
15786
+ if (typeof o === "string") return _array_like_to_array$5(o, minLen);
15787
+ var n = Object.prototype.toString.call(o).slice(8, -1);
15788
+ if (n === "Object" && o.constructor) n = o.constructor.name;
15789
+ if (n === "Map" || n === "Set") return Array.from(n);
15790
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
15791
+ }
15792
+ /**
15793
+ * A delivery method (channel) that notifications can be sent through.
15794
+ *
15795
+ * The values mirror the per-method flags on {@link NotificationBoxRecipientTemplateConfig}
15796
+ * (`se`/`st`/`sp`/`sn`), so a method maps directly onto the config field that gates it.
15797
+ */ exports.NotificationDeliveryMethod = void 0;
15798
+ (function(NotificationDeliveryMethod) {
15799
+ /**
15800
+ * Email delivery. Gated by `se`.
15801
+ */ NotificationDeliveryMethod["EMAIL"] = "e";
15802
+ /**
15803
+ * Text/SMS delivery. Gated by `st`.
15804
+ */ NotificationDeliveryMethod["TEXT"] = "t";
15805
+ /**
15806
+ * Push notification delivery. Gated by `sp`.
15807
+ */ NotificationDeliveryMethod["PUSH"] = "p";
15808
+ /**
15809
+ * In-app delivery to a NotificationSummary. Gated by `sn`.
15810
+ */ NotificationDeliveryMethod["NOTIFICATION_SUMMARY"] = "n";
15811
+ })(exports.NotificationDeliveryMethod || (exports.NotificationDeliveryMethod = {}));
15812
+ /**
15813
+ * All delivery methods, in the order a report should present them.
15814
+ */ var ALL_NOTIFICATION_DELIVERY_METHODS = [
15815
+ exports.NotificationDeliveryMethod.EMAIL,
15816
+ exports.NotificationDeliveryMethod.TEXT,
15817
+ exports.NotificationDeliveryMethod.PUSH,
15818
+ exports.NotificationDeliveryMethod.NOTIFICATION_SUMMARY
15819
+ ];
15820
+ /**
15821
+ * The outcome of a health check, or of one individual finding within it.
15822
+ */ exports.NotificationHealthCheckStatus = void 0;
15823
+ (function(NotificationHealthCheckStatus) {
15824
+ /**
15825
+ * Everything that was checked looks healthy.
15826
+ */ NotificationHealthCheckStatus["OK"] = "ok";
15827
+ /**
15828
+ * Something looks off, but delivery is probably still working.
15829
+ */ NotificationHealthCheckStatus["WARNING"] = "warn";
15830
+ /**
15831
+ * Delivery is blocked or broken.
15832
+ */ NotificationHealthCheckStatus["ERROR"] = "error";
15833
+ /**
15834
+ * Waiting on an asynchronous result, such as an in-flight delivery probe.
15835
+ */ NotificationHealthCheckStatus["PENDING"] = "pending";
15836
+ /**
15837
+ * Not checked. Either the method is not configured for this app, or no check was available.
15838
+ */ NotificationHealthCheckStatus["SKIPPED"] = "skipped";
15839
+ /**
15840
+ * The check ran but could not reach a conclusion, such as when a provider API was unreachable.
15841
+ */ NotificationHealthCheckStatus["UNKNOWN"] = "unknown";
15842
+ })(exports.NotificationHealthCheckStatus || (exports.NotificationHealthCheckStatus = {}));
15843
+ var _obj;
15844
+ /**
15845
+ * Severity ranking used to roll several statuses up into one.
15846
+ *
15847
+ * Higher wins. `ERROR` outranks `PENDING` so that a method with a known problem is not masked by an
15848
+ * unrelated in-flight probe, and `SKIPPED` ranks lowest so an unconfigured method never drags a
15849
+ * report down.
15850
+ */ var NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY = (_obj = {}, _define_property$a(_obj, exports.NotificationHealthCheckStatus.SKIPPED, 0), _define_property$a(_obj, exports.NotificationHealthCheckStatus.OK, 1), _define_property$a(_obj, exports.NotificationHealthCheckStatus.UNKNOWN, 2), _define_property$a(_obj, exports.NotificationHealthCheckStatus.PENDING, 3), _define_property$a(_obj, exports.NotificationHealthCheckStatus.WARNING, 4), _define_property$a(_obj, exports.NotificationHealthCheckStatus.ERROR, 5), _obj);
15851
+ /**
15852
+ * Rolls a set of statuses up into the single most severe one.
15853
+ *
15854
+ * @param statuses - The statuses to roll up.
15855
+ * @returns The most severe status, or {@link NotificationHealthCheckStatus.SKIPPED} if none were given.
15856
+ *
15857
+ * @example
15858
+ * ```ts
15859
+ * rollupNotificationHealthCheckStatus([NotificationHealthCheckStatus.OK, NotificationHealthCheckStatus.ERROR]);
15860
+ * // NotificationHealthCheckStatus.ERROR
15861
+ * ```
15862
+ */ function rollupNotificationHealthCheckStatus(statuses) {
15863
+ var result = exports.NotificationHealthCheckStatus.SKIPPED;
15864
+ statuses.forEach(function(x) {
15865
+ if (NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY[x] > NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY[result]) {
15866
+ result = x;
15867
+ }
15868
+ });
15869
+ return result;
15870
+ }
15871
+ /**
15872
+ * True if the status represents a problem the user should act on.
15873
+ *
15874
+ * @param status - The status to test.
15875
+ * @returns True for errors and warnings; false for statuses that need no action.
15876
+ */ function isProblemNotificationHealthCheckStatus(status) {
15877
+ return status === exports.NotificationHealthCheckStatus.ERROR || status === exports.NotificationHealthCheckStatus.WARNING;
15878
+ }
15879
+ /**
15880
+ * Issue codes emitted by the health checks the library performs itself.
15881
+ *
15882
+ * Apps and delivery providers may emit additional codes of their own — see
15883
+ * {@link NotificationHealthCheckIssueCode}.
15884
+ */ exports.KnownNotificationHealthCheckIssueCode = void 0;
15885
+ (function(KnownNotificationHealthCheckIssueCode) {
15886
+ /**
15887
+ * The server has no send service configured for this delivery method, so nothing will ever be sent through it.
15888
+ */ KnownNotificationHealthCheckIssueCode["SEND_SERVICE_NOT_CONFIGURED"] = "sendServiceNotConfigured";
15889
+ /**
15890
+ * No send service health check is available for this delivery method, so only configuration was inspected.
15891
+ */ KnownNotificationHealthCheckIssueCode["SEND_SERVICE_HEALTH_CHECK_UNAVAILABLE"] = "sendServiceHealthCheckUnavailable";
15892
+ /**
15893
+ * No delivery target could be resolved for this method — e.g. no email address on the auth record and no override.
15894
+ */ KnownNotificationHealthCheckIssueCode["NO_DELIVERY_TARGET"] = "noDeliveryTarget";
15895
+ /**
15896
+ * The recipient has opted out of all notifications.
15897
+ */ KnownNotificationHealthCheckIssueCode["RECIPIENT_OPTED_OUT"] = "recipientOptedOut";
15898
+ /**
15899
+ * The recipient's notifications are disabled.
15900
+ */ KnownNotificationHealthCheckIssueCode["RECIPIENT_DISABLED"] = "recipientDisabled";
15901
+ /**
15902
+ * This delivery method is switched off by the user's global or default configuration.
15903
+ */ KnownNotificationHealthCheckIssueCode["METHOD_DISABLED_GLOBALLY"] = "methodDisabledGlobally";
15904
+ /**
15905
+ * This delivery method is switched off for the notification template type that was checked.
15906
+ */ KnownNotificationHealthCheckIssueCode["METHOD_DISABLED_FOR_TEMPLATE"] = "methodDisabledForTemplate";
15907
+ /**
15908
+ * This delivery method is switched off for one or more of the user's individual notification boxes.
15909
+ */ KnownNotificationHealthCheckIssueCode["METHOD_DISABLED_FOR_BOX"] = "methodDisabledForBox";
15910
+ /**
15911
+ * The user is not subscribed to any notification boxes, so no model-driven notifications will reach them.
15912
+ */ KnownNotificationHealthCheckIssueCode["NO_NOTIFICATION_BOXES"] = "noNotificationBoxes";
15913
+ /**
15914
+ * The user has notification box exclusions that suppress notifications from matching boxes.
15915
+ */ KnownNotificationHealthCheckIssueCode["NOTIFICATION_BOX_EXCLUSIONS"] = "notificationBoxExclusions";
15916
+ /**
15917
+ * The user's configuration has not finished syncing to their notification boxes.
15918
+ */ KnownNotificationHealthCheckIssueCode["NEEDS_CONFIG_SYNC"] = "needsConfigSync";
15919
+ /**
15920
+ * One or more of the user's subscriptions is broken and will never send.
15921
+ */ KnownNotificationHealthCheckIssueCode["SUBSCRIPTION_BROKEN"] = "subscriptionBroken";
15922
+ /**
15923
+ * One or more of the user's subscriptions has not finished being set up, so its notifications are delayed.
15924
+ */ KnownNotificationHealthCheckIssueCode["SUBSCRIPTION_NOT_READY"] = "subscriptionNotReady";
15925
+ /**
15926
+ * A test message was dispatched and its outcome is not known yet.
15927
+ */ KnownNotificationHealthCheckIssueCode["PROBE_PENDING"] = "probePending";
15928
+ /**
15929
+ * A test message was confirmed delivered.
15930
+ */ KnownNotificationHealthCheckIssueCode["PROBE_DELIVERED"] = "probeDelivered";
15931
+ /**
15932
+ * A test message failed to deliver.
15933
+ */ KnownNotificationHealthCheckIssueCode["PROBE_FAILED"] = "probeFailed";
15934
+ /**
15935
+ * A test message could not be dispatched at all.
15936
+ */ KnownNotificationHealthCheckIssueCode["PROBE_DISPATCH_FAILED"] = "probeDispatchFailed";
15937
+ })(exports.KnownNotificationHealthCheckIssueCode || (exports.KnownNotificationHealthCheckIssueCode = {}));
15938
+ /**
15939
+ * Creates a {@link NotificationHealthCheckIssue}.
15940
+ *
15941
+ * @param code - The issue code.
15942
+ * @param status - The severity.
15943
+ * @param content - The message, plus an optional suggested fix and structured detail.
15944
+ * @returns The issue.
15945
+ *
15946
+ * @example
15947
+ * ```ts
15948
+ * notificationHealthCheckIssue(KnownNotificationHealthCheckIssueCode.NO_DELIVERY_TARGET, NotificationHealthCheckStatus.ERROR, {
15949
+ * message: 'There is no email address on your account.',
15950
+ * fix: 'Add an email address to your account.'
15951
+ * });
15952
+ * ```
15953
+ */ function notificationHealthCheckIssue(code, status, content) {
15954
+ return {
15955
+ c: code,
15956
+ s: status,
15957
+ m: content.message,
15958
+ f: content.fix,
15959
+ d: content.data
15960
+ };
15961
+ }
15962
+ /**
15963
+ * True if the probe is still awaiting an outcome and should be re-checked.
15964
+ *
15965
+ * @param probe - The probe to test, if one exists.
15966
+ * @returns True if the probe is pending.
15967
+ */ function isPendingNotificationHealthCheckProbe(probe) {
15968
+ return (probe === null || probe === void 0 ? void 0 : probe.s) === exports.NotificationHealthCheckStatus.PENDING;
15969
+ }
15970
+ /**
15971
+ * The correlation id of a probe the provider gave nothing to track it by.
15972
+ *
15973
+ * Empty rather than absent because the field is what a provider looks the outcome up with, and there is
15974
+ * nothing to look up — such a probe is always recorded already settled, so it is never queried.
15975
+ */ var UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID = '';
15976
+ /**
15977
+ * Records a dispatch attempt the provider gave no way to track.
15978
+ *
15979
+ * A send that produced no correlation id still happened, and the test message window is derived from the
15980
+ * recorded probe — so an attempt recorded as nothing at all would leave the server's throttle and the
15981
+ * client's countdown with nothing to key on, making the action look successful and be immediately
15982
+ * repeatable. Always settled ({@link NotificationHealthCheckStatus.UNKNOWN} when the provider accepted it,
15983
+ * `ERROR` when it did not), never pending: there is no outcome coming for it.
15984
+ *
15985
+ * @param probe - The attempt's time, settled status, target, and provider detail.
15986
+ * @returns The probe recording the attempt.
15987
+ */ function untrackableNotificationHealthCheckProbe(probe) {
15988
+ return _object_spread_props$8(_object_spread$a({}, probe), {
15989
+ id: UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID
15990
+ });
15991
+ }
15992
+ /**
15993
+ * Rolls a delivery method's findings and probe up into a single status.
15994
+ *
15995
+ * @param result - The per-method result, without its rolled-up status.
15996
+ * @returns The most severe status across the method's findings and probe.
15997
+ */ function rollupNotificationDeliveryHealthCheckResultStatus(result) {
15998
+ var statuses = result.is.map(function(x) {
15999
+ return x.s;
16000
+ });
16001
+ if (result.pr) {
16002
+ statuses.push(result.pr.s);
16003
+ }
16004
+ return rollupNotificationHealthCheckStatus(statuses);
16005
+ }
16006
+ /**
16007
+ * The delivery methods whose test message is still awaiting an outcome.
16008
+ *
16009
+ * A pending probe is the whole reason to keep watching a check: it is the one part of a report that
16010
+ * changes on its own, as the provider records what happened to the message. Both the client (which
16011
+ * polls until they settle) and the server (which only consults a provider it has something to ask
16012
+ * about) scope their work to exactly these methods.
16013
+ *
16014
+ * @param healthCheck - The health check to read.
16015
+ * @returns The methods carrying a pending probe, in report order. Empty when nothing is in flight.
16016
+ */ function notificationHealthCheckPendingProbeMethods(healthCheck) {
16017
+ var _ref;
16018
+ return ((_ref = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref !== void 0 ? _ref : []).filter(function(x) {
16019
+ return isPendingNotificationHealthCheckProbe(x.pr);
16020
+ }).map(function(x) {
16021
+ return x.me;
16022
+ });
16023
+ }
16024
+ /**
16025
+ * Finds the result for a specific delivery method.
16026
+ *
16027
+ * @param healthCheck - The health check to read.
16028
+ * @param method - The delivery method to look for.
16029
+ * @returns The method's result, or undefined if the method was not checked.
16030
+ */ function notificationDeliveryHealthCheckResultForMethod(healthCheck, method) {
16031
+ return healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m.find(function(x) {
16032
+ return x.me === method;
16033
+ });
16034
+ }
16035
+ /**
16036
+ * Every issue in a health check, account-wide findings first.
16037
+ *
16038
+ * @param healthCheck - The health check to read.
16039
+ * @returns All issues, account-wide first and then in method order.
16040
+ */ function allNotificationHealthCheckIssues(healthCheck) {
16041
+ if (!healthCheck) {
16042
+ return [];
16043
+ }
16044
+ return _to_consumable_array$3(healthCheck.is).concat(_to_consumable_array$3(healthCheck.m.flatMap(function(x) {
16045
+ return x.is;
16046
+ })));
16047
+ }
16048
+ /**
16049
+ * Rolls a whole health check up into a single status.
16050
+ *
16051
+ * @param healthCheck - The check's account-wide findings and per-method results.
16052
+ * @returns The most severe status across everything the check found.
16053
+ */ function rollupNotificationHealthCheckResultStatus(healthCheck) {
16054
+ return rollupNotificationHealthCheckStatus(_to_consumable_array$3(healthCheck.is.map(function(x) {
16055
+ return x.s;
16056
+ })).concat(_to_consumable_array$3(healthCheck.m.map(function(x) {
16057
+ return x.s;
16058
+ }))));
16059
+ }
16060
+ // MARK: Throttle
16061
+ /**
16062
+ * How long a user must wait between health check runs.
16063
+ *
16064
+ * A run calls out to each delivery provider and can dispatch real messages, so it is throttled against
16065
+ * the check stored on the NotificationUser rather than being runnable on demand.
16066
+ */ var DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES = 2;
16067
+ /**
16068
+ * The earliest time another health check may be run for a NotificationUser.
16069
+ *
16070
+ * Both the server (which enforces the throttle) and the client (which disables the action until then)
16071
+ * derive the window from the same stored check, so the UI cannot offer a run the server would reject.
16072
+ *
16073
+ * @param input - The stored check, and optionally a throttle window to use instead of the default.
16074
+ * @returns The time the next run is allowed, or undefined when no check has been run yet.
16075
+ */ function notificationUserHealthCheckNextRunAt(input) {
16076
+ var healthCheck = input.healthCheck, throttleMinutes = input.throttleMinutes;
16077
+ return (healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.at) == null ? undefined : dateFns.addMinutes(healthCheck.at, throttleMinutes !== null && throttleMinutes !== void 0 ? throttleMinutes : DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES);
16078
+ }
16079
+ /**
16080
+ * How long a user must wait between test messages on a single delivery method.
16081
+ *
16082
+ * Throttled separately from — and more strictly than — a plain run: a probe delivers a real message to
16083
+ * the user, while a run only reads configuration and provider state. Running the check must therefore
16084
+ * not consume the test message allowance, and vice versa.
16085
+ *
16086
+ * Only the default. An app that wants a different cadence declares its own value and passes it to both
16087
+ * the server (which enforces the window) and the client (which counts down to it) — see
16088
+ * {@link NotificationUserHealthCheckNextProbeAtInput.throttleMinutes}. Both sides must use the same
16089
+ * value, or the UI will offer a test message the server rejects.
16090
+ */ var DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES = 5;
16091
+ /**
16092
+ * The earliest time another test message may be dispatched for a NotificationUser.
16093
+ *
16094
+ * The window is per delivery method: each method has its own test message action, so a test email must
16095
+ * not hold the test text message off. Pass the methods being probed to get their window — the most
16096
+ * recent probe among just those methods — and pass none for the window across every checked method.
16097
+ *
16098
+ * Both the server (which enforces the window) and the client (which disables the action until then)
16099
+ * derive it from the same stored check, so the UI cannot offer a test message the server would reject.
16100
+ *
16101
+ * @param input - The stored check, the methods being probed, and optionally a throttle window to use
16102
+ * instead of the default.
16103
+ * @returns The time the next probe is allowed, or undefined when none of those methods has ever
16104
+ * dispatched one.
16105
+ */ function notificationUserHealthCheckNextProbeAt(input) {
16106
+ var _Math;
16107
+ var _ref, _ref1;
16108
+ var healthCheck = input.healthCheck, methods = input.methods, throttleMinutes = input.throttleMinutes;
16109
+ var scopedMethods = (methods === null || methods === void 0 ? void 0 : methods.length) ? new Set(methods) : undefined;
16110
+ var scopedResults = scopedMethods ? ((_ref = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref !== void 0 ? _ref : []).filter(function(x) {
16111
+ return scopedMethods.has(x.me);
16112
+ }) : (_ref1 = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref1 !== void 0 ? _ref1 : [];
16113
+ var probeTimes = util.filterMaybeArrayValues(scopedResults.map(function(x) {
16114
+ var _x_pr;
16115
+ return (_x_pr = x.pr) === null || _x_pr === void 0 ? void 0 : _x_pr.at;
16116
+ })).map(function(x) {
16117
+ return x.getTime();
16118
+ });
16119
+ var latestProbeAt = probeTimes.length > 0 ? new Date((_Math = Math).max.apply(_Math, _to_consumable_array$3(probeTimes))) : undefined;
16120
+ return latestProbeAt == null ? undefined : dateFns.addMinutes(latestProbeAt, throttleMinutes !== null && throttleMinutes !== void 0 ? throttleMinutes : DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES);
16121
+ }
16122
+ // MARK: Verify
16123
+ /**
16124
+ * How long a caller must wait between verifications of a check's pending probes.
16125
+ *
16126
+ * A verify-only run exists to be polled: a dispatched test message settles on the provider's schedule,
16127
+ * so something has to keep asking until it does. It is throttled far more loosely than a run or a probe
16128
+ * because it is far cheaper — it consults a provider only for a method with a probe actually in flight,
16129
+ * and touches nothing else — but it is throttled all the same, so a client cannot poll a provider's API
16130
+ * in a tight loop.
16131
+ *
16132
+ * Seconds rather than minutes: the point of the verification is that the outcome appears while the user
16133
+ * is still looking at the report.
16134
+ */ var DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS = 15;
16135
+ /**
16136
+ * The earliest time a check's pending probes may be verified again.
16137
+ *
16138
+ * Derived from `vat` rather than `at`, so verifying an in-flight test message neither answers to nor
16139
+ * consumes the user's run window. Both the server (which enforces the window) and the client (which
16140
+ * paces its polling to it) derive it the same way.
16141
+ *
16142
+ * @param input - The stored check, and optionally a window to use instead of the default.
16143
+ * @returns The time the next verification is allowed, or undefined when none has happened yet.
16144
+ */ function notificationUserHealthCheckNextVerifyAt(input) {
16145
+ var healthCheck = input.healthCheck, throttleSeconds = input.throttleSeconds;
16146
+ return (healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.vat) == null ? undefined : dateFns.addSeconds(healthCheck.vat, throttleSeconds !== null && throttleSeconds !== void 0 ? throttleSeconds : DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS);
16147
+ }
16148
+ /**
16149
+ * The earliest time another test message may be dispatched through each of a check's delivery methods.
16150
+ *
16151
+ * The per-method form of {@link notificationUserHealthCheckNextProbeAt}, for a UI that renders one test
16152
+ * message action per method and needs every method's window at once.
16153
+ *
16154
+ * @param input - The stored check, and optionally a throttle window to use instead of the default.
16155
+ * @returns The time the next probe is allowed on each checked method. A method that has never
16156
+ * dispatched a probe maps to undefined.
16157
+ */ function notificationUserHealthCheckNextProbeAtByMethod(input) {
16158
+ var _ref;
16159
+ var healthCheck = input.healthCheck, throttleMinutes = input.throttleMinutes;
16160
+ var nextProbeAtByMethod = {};
16161
+ ((_ref = healthCheck === null || healthCheck === void 0 ? void 0 : healthCheck.m) !== null && _ref !== void 0 ? _ref : []).forEach(function(methodResult) {
16162
+ nextProbeAtByMethod[methodResult.me] = notificationUserHealthCheckNextProbeAt({
16163
+ healthCheck: healthCheck,
16164
+ methods: [
16165
+ methodResult.me
16166
+ ],
16167
+ throttleMinutes: throttleMinutes
16168
+ });
16169
+ });
16170
+ return nextProbeAtByMethod;
16171
+ }
16172
+ // MARK: Firestore
16173
+ /**
16174
+ * Firestore sub-object converter for {@link NotificationHealthCheckIssue}.
16175
+ */ var firestoreNotificationHealthCheckIssue = /* @__PURE__ */ firestoreSubObject({
16176
+ objectField: {
16177
+ fields: {
16178
+ c: firestoreString({
16179
+ default: ''
16180
+ }),
16181
+ s: firestoreEnum({
16182
+ default: exports.NotificationHealthCheckStatus.UNKNOWN
16183
+ }),
16184
+ m: firestoreString({
16185
+ default: ''
16186
+ }),
16187
+ f: optionalFirestoreString(),
16188
+ d: optionalFirestoreField()
16189
+ }
16190
+ }
16191
+ });
16192
+ /**
16193
+ * Firestore sub-object converter for {@link NotificationHealthCheckProbe}.
16194
+ */ var firestoreNotificationHealthCheckProbe = /* @__PURE__ */ firestoreSubObject({
16195
+ objectField: {
16196
+ fields: {
16197
+ id: firestoreString({
16198
+ default: ''
16199
+ }),
16200
+ at: firestoreDate({
16201
+ saveDefaultAsNow: true
16202
+ }),
16203
+ s: firestoreEnum({
16204
+ default: exports.NotificationHealthCheckStatus.PENDING
16205
+ }),
16206
+ tg: firestoreString({
16207
+ default: ''
16208
+ }),
16209
+ d: optionalFirestoreString()
16210
+ }
16211
+ }
16212
+ });
16213
+ var notificationHealthCheckProbeMapFunctions = firestoreNotificationHealthCheckProbe.mapFunctions;
16214
+ /**
16215
+ * Firestore sub-object converter for {@link NotificationDeliveryHealthCheckResult}.
16216
+ */ var firestoreNotificationDeliveryHealthCheckResult = /* @__PURE__ */ firestoreSubObject({
16217
+ objectField: {
16218
+ fields: {
16219
+ me: firestoreEnum({
16220
+ default: exports.NotificationDeliveryMethod.EMAIL
16221
+ }),
16222
+ s: firestoreEnum({
16223
+ default: exports.NotificationHealthCheckStatus.UNKNOWN
16224
+ }),
16225
+ tg: optionalFirestoreString(),
16226
+ is: firestoreObjectArray({
16227
+ objectField: firestoreNotificationHealthCheckIssue
16228
+ }),
16229
+ pr: optionalFirestoreField({
16230
+ transformFromData: function transformFromData(x) {
16231
+ return notificationHealthCheckProbeMapFunctions.from(x);
16232
+ },
16233
+ transformToData: function transformToData(x) {
16234
+ return notificationHealthCheckProbeMapFunctions.to(x);
16235
+ }
16236
+ }),
16237
+ pb: optionalFirestoreBoolean()
16238
+ }
16239
+ }
16240
+ });
16241
+ /**
16242
+ * Firestore sub-object converter for {@link NotificationHealthCheck}.
16243
+ */ var firestoreNotificationHealthCheck = /* @__PURE__ */ firestoreSubObject({
16244
+ objectField: {
16245
+ fields: {
16246
+ at: firestoreDate({
16247
+ saveDefaultAsNow: true
16248
+ }),
16249
+ vat: optionalFirestoreDate(),
16250
+ s: firestoreEnum({
16251
+ default: exports.NotificationHealthCheckStatus.UNKNOWN
16252
+ }),
16253
+ t: optionalFirestoreString(),
16254
+ is: firestoreObjectArray({
16255
+ objectField: firestoreNotificationHealthCheckIssue
16256
+ }),
16257
+ m: firestoreObjectArray({
16258
+ objectField: firestoreNotificationDeliveryHealthCheckResult
16259
+ })
16260
+ }
16261
+ }
16262
+ });
16263
+ var notificationHealthCheckMapFunctions = firestoreNotificationHealthCheck.mapFunctions;
16264
+ /**
16265
+ * Field config for the optional {@link NotificationHealthCheck} stored on a NotificationUser.
16266
+ *
16267
+ * Unlike {@link firestoreNotificationHealthCheck}, this leaves the field absent instead of defaulting
16268
+ * to an empty check, so "never run" stays distinguishable from "ran and found nothing".
16269
+ */ var optionalFirestoreNotificationHealthCheck = /* @__PURE__ */ optionalFirestoreField({
16270
+ transformFromData: function transformFromData(x) {
16271
+ return notificationHealthCheckMapFunctions.from(x);
16272
+ },
16273
+ transformToData: function transformToData(x) {
16274
+ return notificationHealthCheckMapFunctions.to(x);
16275
+ }
16276
+ });
16277
+
15629
16278
  /**
15630
16279
  * Firestore sub-object converter for embedding {@link NotificationItem} within parent documents.
15631
16280
  */ var firestoreNotificationItem = firestoreSubObject({
@@ -15795,7 +16444,8 @@ var NotificationUserDocument = /*#__PURE__*/ function(AbstractFirestoreDocument)
15795
16444
  bc: firestoreObjectArray({
15796
16445
  objectField: firestoreNotificationUserNotificationBoxRecipientConfig
15797
16446
  }),
15798
- ns: optionalFirestoreBoolean()
16447
+ ns: optionalFirestoreBoolean(),
16448
+ hc: optionalFirestoreNotificationHealthCheck
15799
16449
  }
15800
16450
  });
15801
16451
  /**
@@ -16524,6 +17174,15 @@ var updateNotificationUserParamsType = targetModelParamsType.merge({
16524
17174
  'dc?': model.clearable(updateNotificationUserDefaultNotificationBoxRecipientConfigParamsType),
16525
17175
  'bc?': model.clearable(updateNotificationUserNotificationBoxRecipientParamsType.array())
16526
17176
  });
17177
+ var notificationUserHealthCheckParamsType = targetModelParamsType.merge({
17178
+ 'methods?': model.clearable(arktype.type.enumerated(exports.NotificationDeliveryMethod.EMAIL, exports.NotificationDeliveryMethod.TEXT, exports.NotificationDeliveryMethod.PUSH, exports.NotificationDeliveryMethod.NOTIFICATION_SUMMARY).array()),
17179
+ 'sendProbe?': model.clearable('boolean'),
17180
+ 'verifyPendingProbesOnly?': model.clearable('boolean'),
17181
+ 'notificationTemplateType?': model.clearable('string > 0'),
17182
+ 'skipSubscriptionChecks?': model.clearable('boolean'),
17183
+ 'force?': model.clearable('boolean'),
17184
+ 'returnFullHealthCheck?': model.clearable('boolean')
17185
+ });
16527
17186
  var resyncAllNotificationUserParamsType = /* @__PURE__ */ arktype.type({});
16528
17187
  var createNotificationSummaryParamsType = /* @__PURE__ */ arktype.type({
16529
17188
  model: firestoreModelKeyType
@@ -16577,7 +17236,8 @@ var cleanupOldNotificationLoggedEventDaysParamsType = /* @__PURE__ */ arktype.ty
16577
17236
  var NOTIFICATION_FUNCTION_TYPE_CONFIG_MAP = {};
16578
17237
  var NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = {
16579
17238
  notificationUser: [
16580
- 'update:_,resync'
17239
+ 'update:_,resync',
17240
+ 'invoke:healthCheck'
16581
17241
  ],
16582
17242
  notificationSummary: [
16583
17243
  'update:_'
@@ -16633,6 +17293,18 @@ var NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = {
16633
17293
  /**
16634
17294
  * Thrown when attempting to update a recipient config that is locked by the user.
16635
17295
  */ var NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = 'NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED';
17296
+ /**
17297
+ * Thrown when a NotificationUser health check is run again before its throttle window has passed.
17298
+ */ var NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE = 'NOTIFICATION_USER_HEALTH_CHECK_THROTTLED';
17299
+ /**
17300
+ * Thrown when a NotificationUser health check test message is dispatched again before its throttle
17301
+ * window has passed. Tracked separately from the run throttle, since a probe sends a real message.
17302
+ */ var NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE = 'NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED';
17303
+ /**
17304
+ * Thrown when a NotificationUser health check's pending probes are verified again before its throttle
17305
+ * window has passed. Tracked separately from the run throttle: verifying an in-flight test message is
17306
+ * cheap and meant to be polled, so it neither answers to nor consumes the user's run allowance.
17307
+ */ var NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE = 'NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED';
16636
17308
 
16637
17309
  function _define_property$9(obj, key, value) {
16638
17310
  if (key in obj) {
@@ -17865,6 +18537,53 @@ function _unsupported_iterable_to_array$4(o, minLen) {
17865
18537
  return service;
17866
18538
  }
17867
18539
 
18540
+ /**
18541
+ * @module notification.healthcheck.mailgun
18542
+ *
18543
+ * Issue codes emitted by the Mailgun-backed email health check.
18544
+ *
18545
+ * These live here, rather than next to the server-side check that emits them, so a browser can ship a
18546
+ * first-class presentation for each code without re-declaring the strings. The check itself stays in
18547
+ * `@dereekb/firebase-server/model` and imports these codes from here.
18548
+ */ /**
18549
+ * Issue codes emitted by the Mailgun email health check.
18550
+ *
18551
+ * These are Mailgun-specific and sit alongside the library's own
18552
+ * {@link KnownNotificationHealthCheckIssueCode} values.
18553
+ */ exports.MailgunNotificationHealthCheckIssueCode = void 0;
18554
+ (function(MailgunNotificationHealthCheckIssueCode) {
18555
+ /**
18556
+ * The address is on the domain's bounce suppression list, so Mailgun drops every message to it.
18557
+ */ MailgunNotificationHealthCheckIssueCode["SUPPRESSED_BOUNCE"] = "mailgunSuppressedBounce";
18558
+ /**
18559
+ * The address is on the domain's spam complaint list, so Mailgun drops every message to it.
18560
+ */ MailgunNotificationHealthCheckIssueCode["SUPPRESSED_COMPLAINT"] = "mailgunSuppressedComplaint";
18561
+ /**
18562
+ * The address is on the domain's unsubscribe list.
18563
+ */ MailgunNotificationHealthCheckIssueCode["SUPPRESSED_UNSUBSCRIBE"] = "mailgunSuppressedUnsubscribe";
18564
+ /**
18565
+ * A recent message to the address failed or was rejected.
18566
+ */ MailgunNotificationHealthCheckIssueCode["RECENT_DELIVERY_FAILURE"] = "mailgunRecentDeliveryFailure";
18567
+ /**
18568
+ * A recent message to the address was delivered successfully.
18569
+ */ MailgunNotificationHealthCheckIssueCode["RECENT_DELIVERY_SUCCESS"] = "mailgunRecentDeliverySuccess";
18570
+ /**
18571
+ * No email activity was recorded for the address in the window that was inspected.
18572
+ */ MailgunNotificationHealthCheckIssueCode["NO_RECENT_ACTIVITY"] = "mailgunNoRecentActivity";
18573
+ /**
18574
+ * The sending domain is not active, which blocks delivery for everyone.
18575
+ */ MailgunNotificationHealthCheckIssueCode["DOMAIN_NOT_ACTIVE"] = "mailgunDomainNotActive";
18576
+ /**
18577
+ * Address validation says the address cannot receive mail.
18578
+ */ MailgunNotificationHealthCheckIssueCode["ADDRESS_UNDELIVERABLE"] = "mailgunAddressUndeliverable";
18579
+ /**
18580
+ * The address belongs to a disposable email provider.
18581
+ */ MailgunNotificationHealthCheckIssueCode["ADDRESS_DISPOSABLE"] = "mailgunAddressDisposable";
18582
+ /**
18583
+ * A probe was requested but no probe message builder is configured.
18584
+ */ MailgunNotificationHealthCheckIssueCode["PROBE_NOT_CONFIGURED"] = "mailgunProbeNotConfigured";
18585
+ })(exports.MailgunNotificationHealthCheckIssueCode || (exports.MailgunNotificationHealthCheckIssueCode = {}));
18586
+
17868
18587
  function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
17869
18588
  try {
17870
18589
  var info = gen[key](arg);
@@ -21671,6 +22390,7 @@ function _is_native_reflect_construct() {
21671
22390
  });
21672
22391
  }
21673
22392
 
22393
+ exports.ALL_NOTIFICATION_DELIVERY_METHODS = ALL_NOTIFICATION_DELIVERY_METHODS;
21674
22394
  exports.ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHODS = ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHODS;
21675
22395
  exports.ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS = ALL_OIDC_TOKEN_ENDPOINT_AUTH_METHOD_OPTIONS;
21676
22396
  exports.ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES = ALL_STORAGE_FILE_NOTIFICATION_TASK_TYPES;
@@ -21721,6 +22441,9 @@ exports.DEFAULT_NOTIFICATION_TASK_NOTIFICATION_MODEL_KEY = DEFAULT_NOTIFICATION_
21721
22441
  exports.DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS = DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_ATTEMPTS;
21722
22442
  exports.DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY = DEFAULT_NOTIFICATION_TASK_SUBTASK_CLEANUP_RETRY_DELAY;
21723
22443
  exports.DEFAULT_NOTIFICATION_TEMPLATE_TYPE = DEFAULT_NOTIFICATION_TEMPLATE_TYPE;
22444
+ exports.DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES = DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLE_MINUTES;
22445
+ exports.DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES = DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_THROTTLE_MINUTES;
22446
+ exports.DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS = DEFAULT_NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLE_SECONDS;
21724
22447
  exports.DEFAULT_ON_CALL_QUERY_MODEL_LIMIT = DEFAULT_ON_CALL_QUERY_MODEL_LIMIT;
21725
22448
  exports.DEFAULT_PAGED_ITEM_INDEX_DOCUMENT_ID = DEFAULT_PAGED_ITEM_INDEX_DOCUMENT_ID;
21726
22449
  exports.DEFAULT_PAGED_ITEM_MAX_ITEMS_PER_PAGE = DEFAULT_PAGED_ITEM_MAX_ITEMS_PER_PAGE;
@@ -21801,6 +22524,7 @@ exports.NOTIFICATION_BOX_EXISTS_FOR_MODEL_ERROR_CODE = NOTIFICATION_BOX_EXISTS_F
21801
22524
  exports.NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG = NOTIFICATION_BOX_MODEL_CRUD_FUNCTIONS_CONFIG;
21802
22525
  exports.NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE = NOTIFICATION_BOX_RECIPIENT_DOES_NOT_EXIST_ERROR_CODE;
21803
22526
  exports.NOTIFICATION_FUNCTION_TYPE_CONFIG_MAP = NOTIFICATION_FUNCTION_TYPE_CONFIG_MAP;
22527
+ exports.NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY = NOTIFICATION_HEALTH_CHECK_STATUS_SEVERITY;
21804
22528
  exports.NOTIFICATION_LOGGED_EVENT_DAY_ITEM_CONVERTER = NOTIFICATION_LOGGED_EVENT_DAY_ITEM_CONVERTER;
21805
22529
  exports.NOTIFICATION_MESSAGE_MAX_LENGTH = NOTIFICATION_MESSAGE_MAX_LENGTH;
21806
22530
  exports.NOTIFICATION_MESSAGE_MIN_LENGTH = NOTIFICATION_MESSAGE_MIN_LENGTH;
@@ -21815,6 +22539,9 @@ exports.NOTIFICATION_SUMMARY_ITEM_LIMIT = NOTIFICATION_SUMMARY_ITEM_LIMIT;
21815
22539
  exports.NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP = NOTIFICATION_TASK_SUBTASK_CHECKPOINT_CLEANUP;
21816
22540
  exports.NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING = NOTIFICATION_TASK_SUBTASK_CHECKPOINT_PROCESSING;
21817
22541
  exports.NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE = NOTIFICATION_USER_BLOCKED_FROM_BEING_ADD_TO_RECIPIENTS_ERROR_CODE;
22542
+ exports.NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE = NOTIFICATION_USER_HEALTH_CHECK_PROBE_THROTTLED_ERROR_CODE;
22543
+ exports.NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE = NOTIFICATION_USER_HEALTH_CHECK_THROTTLED_ERROR_CODE;
22544
+ exports.NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE = NOTIFICATION_USER_HEALTH_CHECK_VERIFY_THROTTLED_ERROR_CODE;
21818
22545
  exports.NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE = NOTIFICATION_USER_INVALID_UID_FOR_CREATE_ERROR_CODE;
21819
22546
  exports.NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE = NOTIFICATION_USER_LOCKED_CONFIG_FROM_BEING_UPDATED_ERROR_CODE;
21820
22547
  exports.NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT = NOTIFICATION_WEEK_NOTIFICATION_ITEM_LIMIT;
@@ -21833,6 +22560,7 @@ exports.OFFLINE_ACCESS_OIDC_SCOPE_DETAILS = OFFLINE_ACCESS_OIDC_SCOPE_DETAILS;
21833
22560
  exports.OIDC_ENTRY_CLIENT_TYPE = OIDC_ENTRY_CLIENT_TYPE;
21834
22561
  exports.OIDC_FUNCTION_TYPE_CONFIG_MAP = OIDC_FUNCTION_TYPE_CONFIG_MAP;
21835
22562
  exports.OIDC_MODEL_CRUD_FUNCTIONS_CONFIG = OIDC_MODEL_CRUD_FUNCTIONS_CONFIG;
22563
+ exports.OIDC_PROVIDER_PROFILE_DEFAULT_DESCRIPTION_SUFFIX = OIDC_PROVIDER_PROFILE_DEFAULT_DESCRIPTION_SUFFIX;
21836
22564
  exports.OPENID_OIDC_SCOPE = OPENID_OIDC_SCOPE;
21837
22565
  exports.OPENID_OIDC_SCOPE_DETAILS = OPENID_OIDC_SCOPE_DETAILS;
21838
22566
  exports.OidcEntryDocument = OidcEntryDocument;
@@ -21885,6 +22613,7 @@ exports.UNAUTHENTICATED_ERROR_CODE = UNAUTHENTICATED_ERROR_CODE;
21885
22613
  exports.UNAVAILABLE_ERROR_CODE = UNAVAILABLE_ERROR_CODE;
21886
22614
  exports.UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE = UNAVAILABLE_OR_DEACTIVATED_FUNCTION_ERROR_CODE;
21887
22615
  exports.UNKNOWN_MODEL_TYPE_ERROR_CODE = UNKNOWN_MODEL_TYPE_ERROR_CODE;
22616
+ exports.UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID = UNTRACKABLE_NOTIFICATION_HEALTH_CHECK_PROBE_ID;
21888
22617
  exports.UPDATE_MODEL_OIDC_SCOPE = UPDATE_MODEL_OIDC_SCOPE;
21889
22618
  exports.UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE = UPLOADED_FILE_DOES_NOT_EXIST_ERROR_CODE;
21890
22619
  exports.UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE = UPLOADED_FILE_INITIALIZATION_DISCARDED_ERROR_CODE;
@@ -21896,9 +22625,11 @@ exports.abstractSubscribeOrUnsubscribeToNotificationBoxParamsType = abstractSubs
21896
22625
  exports.abstractSubscribeToNotificationBoxParamsType = abstractSubscribeToNotificationBoxParamsType;
21897
22626
  exports.addConstraintToBuilder = addConstraintToBuilder;
21898
22627
  exports.addOrReplaceLimitInConstraints = addOrReplaceLimitInConstraints;
22628
+ exports.adminOnlyScopesForOidcProviderProfiles = adminOnlyScopesForOidcProviderProfiles;
21899
22629
  exports.allChildDocumentsUnderParent = allChildDocumentsUnderParent;
21900
22630
  exports.allChildDocumentsUnderParentPath = allChildDocumentsUnderParentPath;
21901
22631
  exports.allChildDocumentsUnderRelativePath = allChildDocumentsUnderRelativePath;
22632
+ exports.allNotificationHealthCheckIssues = allNotificationHealthCheckIssues;
21902
22633
  exports.allowDocumentSnapshotWithPathOnceFilter = allowDocumentSnapshotWithPathOnceFilter;
21903
22634
  exports.allowedNotificationRecipients = allowedNotificationRecipients;
21904
22635
  exports.appNotificationTemplateTypeInfoRecordService = appNotificationTemplateTypeInfoRecordService;
@@ -21913,6 +22644,7 @@ exports.assignDateCellScheduleFunction = assignDateCellScheduleFunction;
21913
22644
  exports.assignUnitedStatesAddressFunction = assignUnitedStatesAddressFunction;
21914
22645
  exports.assignWebsiteFileLinkFunction = assignWebsiteFileLinkFunction;
21915
22646
  exports.assignWebsiteLinkFunction = assignWebsiteLinkFunction;
22647
+ exports.assignmentOnlyScopesForOidcProviderProfiles = assignmentOnlyScopesForOidcProviderProfiles;
21916
22648
  exports.buildFirebaseCollectionTypeModelTypeMap = buildFirebaseCollectionTypeModelTypeMap;
21917
22649
  exports.calculateNsForNotificationUserNotificationBoxRecipientConfigs = calculateNsForNotificationUserNotificationBoxRecipientConfigs;
21918
22650
  exports.calculateStorageFileGroupEmbeddedFileUpdate = calculateStorageFileGroupEmbeddedFileUpdate;
@@ -21957,7 +22689,9 @@ exports.createStorageFileSignedUploadUrlParamsType = createStorageFileSignedUplo
21957
22689
  exports.dataFromDocumentSnapshots = dataFromDocumentSnapshots;
21958
22690
  exports.dataFromSnapshotStream = dataFromSnapshotStream;
21959
22691
  exports.decodeFirebaseAuthOobCode = decodeFirebaseAuthOobCode;
22692
+ exports.defaultOidcProviderProfiles = defaultOidcProviderProfiles;
21960
22693
  exports.defaultPagedItemPageDataConverter = defaultPagedItemPageDataConverter;
22694
+ exports.defaultUnlockedScopesForOidcProviderProfiles = defaultUnlockedScopesForOidcProviderProfiles;
21961
22695
  exports.delayCompletion = delayCompletion;
21962
22696
  exports.deleteAllQueuedStorageFilesParamsType = deleteAllQueuedStorageFilesParamsType;
21963
22697
  exports.deleteOidcClientParamsType = targetModelParamsType;
@@ -22099,6 +22833,10 @@ exports.firestoreModelKeysFromDocuments = firestoreModelKeysFromDocuments;
22099
22833
  exports.firestoreModelType = firestoreModelType;
22100
22834
  exports.firestoreNotificationBoxRecipient = firestoreNotificationBoxRecipient;
22101
22835
  exports.firestoreNotificationBoxRecipientTemplateConfigRecord = firestoreNotificationBoxRecipientTemplateConfigRecord;
22836
+ exports.firestoreNotificationDeliveryHealthCheckResult = firestoreNotificationDeliveryHealthCheckResult;
22837
+ exports.firestoreNotificationHealthCheck = firestoreNotificationHealthCheck;
22838
+ exports.firestoreNotificationHealthCheckIssue = firestoreNotificationHealthCheckIssue;
22839
+ exports.firestoreNotificationHealthCheckProbe = firestoreNotificationHealthCheckProbe;
22102
22840
  exports.firestoreNotificationItem = firestoreNotificationItem;
22103
22841
  exports.firestoreNotificationRecipientWithConfig = firestoreNotificationRecipientWithConfig;
22104
22842
  exports.firestoreNotificationUserDefaultNotificationBoxRecipientConfig = firestoreNotificationUserDefaultNotificationBoxRecipientConfig;
@@ -22179,6 +22917,8 @@ exports.isFirestoreModelIdOrKey = isFirestoreModelIdOrKey;
22179
22917
  exports.isFirestoreModelKey = isFirestoreModelKey;
22180
22918
  exports.isLoggedEventNotification = isLoggedEventNotification;
22181
22919
  exports.isOwnerOfUserRelatedModelInFirebaseModelContext = isOwnerOfUserRelatedModelInFirebaseModelContext;
22920
+ exports.isPendingNotificationHealthCheckProbe = isPendingNotificationHealthCheckProbe;
22921
+ exports.isProblemNotificationHealthCheckStatus = isProblemNotificationHealthCheckStatus;
22182
22922
  exports.iterateFirestoreDocumentSnapshotBatches = iterateFirestoreDocumentSnapshotBatches;
22183
22923
  exports.iterateFirestoreDocumentSnapshotCheckpoints = iterateFirestoreDocumentSnapshotCheckpoints;
22184
22924
  exports.iterateFirestoreDocumentSnapshotPairBatches = iterateFirestoreDocumentSnapshotPairBatches;
@@ -22251,9 +22991,12 @@ exports.notificationBoxesFlaggedInvalidQuery = notificationBoxesFlaggedInvalidQu
22251
22991
  exports.notificationCollectionReference = notificationCollectionReference;
22252
22992
  exports.notificationCollectionReferenceFactory = notificationCollectionReferenceFactory;
22253
22993
  exports.notificationConverter = notificationConverter;
22994
+ exports.notificationDeliveryHealthCheckResultForMethod = notificationDeliveryHealthCheckResultForMethod;
22254
22995
  exports.notificationFirestoreCollectionFactory = notificationFirestoreCollectionFactory;
22255
22996
  exports.notificationFirestoreCollectionGroup = notificationFirestoreCollectionGroup;
22256
22997
  exports.notificationFunctionMap = notificationFunctionMap;
22998
+ exports.notificationHealthCheckIssue = notificationHealthCheckIssue;
22999
+ exports.notificationHealthCheckPendingProbeMethods = notificationHealthCheckPendingProbeMethods;
22257
23000
  exports.notificationIdentity = notificationIdentity;
22258
23001
  exports.notificationLoggedEventDayCollectionReference = notificationLoggedEventDayCollectionReference;
22259
23002
  exports.notificationLoggedEventDayCollectionReferenceFactory = notificationLoggedEventDayCollectionReferenceFactory;
@@ -22292,6 +23035,11 @@ exports.notificationUserCollectionReference = notificationUserCollectionReferenc
22292
23035
  exports.notificationUserConverter = notificationUserConverter;
22293
23036
  exports.notificationUserFirestoreCollection = notificationUserFirestoreCollection;
22294
23037
  exports.notificationUserHasExclusionQuery = notificationUserHasExclusionQuery;
23038
+ exports.notificationUserHealthCheckNextProbeAt = notificationUserHealthCheckNextProbeAt;
23039
+ exports.notificationUserHealthCheckNextProbeAtByMethod = notificationUserHealthCheckNextProbeAtByMethod;
23040
+ exports.notificationUserHealthCheckNextRunAt = notificationUserHealthCheckNextRunAt;
23041
+ exports.notificationUserHealthCheckNextVerifyAt = notificationUserHealthCheckNextVerifyAt;
23042
+ exports.notificationUserHealthCheckParamsType = notificationUserHealthCheckParamsType;
22295
23043
  exports.notificationUserIdentity = notificationUserIdentity;
22296
23044
  exports.notificationUsersFlaggedForNeedsSyncQuery = notificationUsersFlaggedForNeedsSyncQuery;
22297
23045
  exports.notificationWeekCollectionReference = notificationWeekCollectionReference;
@@ -22316,6 +23064,7 @@ exports.oidcEntryIdentity = oidcEntryIdentity;
22316
23064
  exports.oidcGrantEntriesByUidQuery = oidcGrantEntriesByUidQuery;
22317
23065
  exports.oidcModelFunctionMap = oidcModelFunctionMap;
22318
23066
  exports.oidcProviderProfileDetails = oidcProviderProfileDetails;
23067
+ exports.oidcProviderProfilesForClient = oidcProviderProfilesForClient;
22319
23068
  exports.oidcProviderProfilesForKeys = oidcProviderProfilesForKeys;
22320
23069
  exports.oidcScopeTermSatisfied = oidcScopeTermSatisfied;
22321
23070
  exports.oidcScopeTermsSatisfied = oidcScopeTermsSatisfied;
@@ -22337,6 +23086,7 @@ exports.optionalFirestoreDate = optionalFirestoreDate;
22337
23086
  exports.optionalFirestoreDateNumber = optionalFirestoreDateNumber;
22338
23087
  exports.optionalFirestoreEnum = optionalFirestoreEnum;
22339
23088
  exports.optionalFirestoreField = optionalFirestoreField;
23089
+ exports.optionalFirestoreNotificationHealthCheck = optionalFirestoreNotificationHealthCheck;
22340
23090
  exports.optionalFirestoreNumber = optionalFirestoreNumber;
22341
23091
  exports.optionalFirestoreString = optionalFirestoreString;
22342
23092
  exports.optionalFirestoreUID = optionalFirestoreUID;
@@ -22361,6 +23111,9 @@ exports.resolveEffectiveOidcScopeTerms = resolveEffectiveOidcScopeTerms;
22361
23111
  exports.resolveOidcModelScopeRequirement = resolveOidcModelScopeRequirement;
22362
23112
  exports.resyncAllNotificationUserParamsType = resyncAllNotificationUserParamsType;
22363
23113
  exports.resyncNotificationUserParamsType = targetModelParamsType;
23114
+ exports.rollupNotificationDeliveryHealthCheckResultStatus = rollupNotificationDeliveryHealthCheckResultStatus;
23115
+ exports.rollupNotificationHealthCheckResultStatus = rollupNotificationHealthCheckResultStatus;
23116
+ exports.rollupNotificationHealthCheckStatus = rollupNotificationHealthCheckStatus;
22364
23117
  exports.rotateOidcClientSecretParamsType = targetModelParamsType;
22365
23118
  exports.scheduledFunctionDevelopmentFirebaseFunctionParamsType = scheduledFunctionDevelopmentFirebaseFunctionParamsType;
22366
23119
  exports.scopesForOidcProviderProfiles = scopesForOidcProviderProfiles;
@@ -22422,6 +23175,7 @@ exports.targetModelParamsType = targetModelParamsType;
22422
23175
  exports.twoWayFlatFirestoreModelKey = twoWayFlatFirestoreModelKey;
22423
23176
  exports.unreadNotificationItems = unreadNotificationItems;
22424
23177
  exports.unsupportedFirestoreDriverFunctionError = unsupportedFirestoreDriverFunctionError;
23178
+ exports.untrackableNotificationHealthCheckProbe = untrackableNotificationHealthCheckProbe;
22425
23179
  exports.updateNotificationBoxParamsType = targetModelParamsType;
22426
23180
  exports.updateNotificationBoxRecipientLikeParamsType = updateNotificationBoxRecipientLikeParamsType;
22427
23181
  exports.updateNotificationBoxRecipientParamsType = updateNotificationBoxRecipientParamsType;