@micro-lc/preview 0.7.1 → 0.7.3-rc0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ var __publicField = (obj, key2, value) => {
4
4
  __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
5
5
  return value;
6
6
  };
7
+ var _a;
7
8
  (function polyfill() {
8
9
  const relList = document.createElement("link").relList;
9
10
  if (relList && relList.supports && relList.supports("modulepreload")) {
@@ -2789,26 +2790,26 @@ function getAugmentedNamespace(n2) {
2789
2790
  fetchCache[link2.href] = fetchModule(link2.href, getFetchOpts(link2));
2790
2791
  }
2791
2792
  })();
2792
- var extendStatics = function(d2, b2) {
2793
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
2793
+ var extendStatics$1 = function(d2, b2) {
2794
+ extendStatics$1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
2794
2795
  d3.__proto__ = b3;
2795
2796
  } || function(d3, b3) {
2796
2797
  for (var p2 in b3)
2797
2798
  if (Object.prototype.hasOwnProperty.call(b3, p2))
2798
2799
  d3[p2] = b3[p2];
2799
2800
  };
2800
- return extendStatics(d2, b2);
2801
+ return extendStatics$1(d2, b2);
2801
2802
  };
2802
- function __extends(d2, b2) {
2803
+ function __extends$1(d2, b2) {
2803
2804
  if (typeof b2 !== "function" && b2 !== null)
2804
2805
  throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
2805
- extendStatics(d2, b2);
2806
+ extendStatics$1(d2, b2);
2806
2807
  function __() {
2807
2808
  this.constructor = d2;
2808
2809
  }
2809
2810
  d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
2810
2811
  }
2811
- function __awaiter(thisArg, _arguments, P2, generator) {
2812
+ function __awaiter$1(thisArg, _arguments, P2, generator) {
2812
2813
  function adopt(value) {
2813
2814
  return value instanceof P2 ? value : new P2(function(resolve) {
2814
2815
  resolve(value);
@@ -2835,7 +2836,7 @@ function __awaiter(thisArg, _arguments, P2, generator) {
2835
2836
  step2((generator = generator.apply(thisArg, _arguments || [])).next());
2836
2837
  });
2837
2838
  }
2838
- function __generator(thisArg, body) {
2839
+ function __generator$1(thisArg, body) {
2839
2840
  var _2 = { label: 0, sent: function() {
2840
2841
  if (t2[0] & 1)
2841
2842
  throw t2[1];
@@ -2911,7 +2912,7 @@ function __generator(thisArg, body) {
2911
2912
  return { value: op[0] ? op[1] : void 0, done: true };
2912
2913
  }
2913
2914
  }
2914
- function __values(o2) {
2915
+ function __values$1(o2) {
2915
2916
  var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
2916
2917
  if (m2)
2917
2918
  return m2.call(o2);
@@ -2925,7 +2926,7 @@ function __values(o2) {
2925
2926
  };
2926
2927
  throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
2927
2928
  }
2928
- function __read(o2, n2) {
2929
+ function __read$1(o2, n2) {
2929
2930
  var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
2930
2931
  if (!m2)
2931
2932
  return o2;
@@ -2946,7 +2947,7 @@ function __read(o2, n2) {
2946
2947
  }
2947
2948
  return ar;
2948
2949
  }
2949
- function __spreadArray(to, from2, pack) {
2950
+ function __spreadArray$1(to, from2, pack) {
2950
2951
  if (pack || arguments.length === 2)
2951
2952
  for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
2952
2953
  if (ar || !(i2 in from2)) {
@@ -2957,10 +2958,10 @@ function __spreadArray(to, from2, pack) {
2957
2958
  }
2958
2959
  return to.concat(ar || Array.prototype.slice.call(from2));
2959
2960
  }
2960
- function __await(v2) {
2961
- return this instanceof __await ? (this.v = v2, this) : new __await(v2);
2961
+ function __await$1(v2) {
2962
+ return this instanceof __await$1 ? (this.v = v2, this) : new __await$1(v2);
2962
2963
  }
2963
- function __asyncGenerator(thisArg, _arguments, generator) {
2964
+ function __asyncGenerator$1(thisArg, _arguments, generator) {
2964
2965
  if (!Symbol.asyncIterator)
2965
2966
  throw new TypeError("Symbol.asyncIterator is not defined.");
2966
2967
  var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
@@ -2983,7 +2984,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
2983
2984
  }
2984
2985
  }
2985
2986
  function step2(r2) {
2986
- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
2987
+ r2.value instanceof __await$1 ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
2987
2988
  }
2988
2989
  function fulfill(value) {
2989
2990
  resume("next", value);
@@ -2996,11 +2997,11 @@ function __asyncGenerator(thisArg, _arguments, generator) {
2996
2997
  resume(q2[0][0], q2[0][1]);
2997
2998
  }
2998
2999
  }
2999
- function __asyncValues(o2) {
3000
+ function __asyncValues$1(o2) {
3000
3001
  if (!Symbol.asyncIterator)
3001
3002
  throw new TypeError("Symbol.asyncIterator is not defined.");
3002
3003
  var m2 = o2[Symbol.asyncIterator], i2;
3003
- return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
3004
+ return m2 ? m2.call(o2) : (o2 = typeof __values$1 === "function" ? __values$1(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
3004
3005
  return this;
3005
3006
  }, i2);
3006
3007
  function verb(n2) {
@@ -3020,10 +3021,10 @@ typeof SuppressedError === "function" ? SuppressedError : function(error2, suppr
3020
3021
  var e2 = new Error(message);
3021
3022
  return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
3022
3023
  };
3023
- function isFunction(value) {
3024
+ function isFunction$1(value) {
3024
3025
  return typeof value === "function";
3025
3026
  }
3026
- function createErrorClass(createImpl) {
3027
+ function createErrorClass$1(createImpl) {
3027
3028
  var _super = function(instance) {
3028
3029
  Error.call(instance);
3029
3030
  instance.stack = new Error().stack;
@@ -3033,7 +3034,7 @@ function createErrorClass(createImpl) {
3033
3034
  ctorFunc.prototype.constructor = ctorFunc;
3034
3035
  return ctorFunc;
3035
3036
  }
3036
- var UnsubscriptionError = createErrorClass(function(_super) {
3037
+ var UnsubscriptionError$1 = createErrorClass$1(function(_super) {
3037
3038
  return function UnsubscriptionErrorImpl(errors) {
3038
3039
  _super(this);
3039
3040
  this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i2) {
@@ -3043,13 +3044,13 @@ var UnsubscriptionError = createErrorClass(function(_super) {
3043
3044
  this.errors = errors;
3044
3045
  };
3045
3046
  });
3046
- function arrRemove(arr, item) {
3047
+ function arrRemove$1(arr, item) {
3047
3048
  if (arr) {
3048
3049
  var index2 = arr.indexOf(item);
3049
3050
  0 <= index2 && arr.splice(index2, 1);
3050
3051
  }
3051
3052
  }
3052
- var Subscription = function() {
3053
+ var Subscription$1 = function() {
3053
3054
  function Subscription2(initialTeardown) {
3054
3055
  this.initialTeardown = initialTeardown;
3055
3056
  this.closed = false;
@@ -3057,7 +3058,7 @@ var Subscription = function() {
3057
3058
  this._finalizers = null;
3058
3059
  }
3059
3060
  Subscription2.prototype.unsubscribe = function() {
3060
- var e_1, _a2, e_2, _b;
3061
+ var e_1, _a3, e_2, _b;
3061
3062
  var errors;
3062
3063
  if (!this.closed) {
3063
3064
  this.closed = true;
@@ -3066,7 +3067,7 @@ var Subscription = function() {
3066
3067
  this._parentage = null;
3067
3068
  if (Array.isArray(_parentage)) {
3068
3069
  try {
3069
- for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
3070
+ for (var _parentage_1 = __values$1(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
3070
3071
  var parent_1 = _parentage_1_1.value;
3071
3072
  parent_1.remove(this);
3072
3073
  }
@@ -3074,8 +3075,8 @@ var Subscription = function() {
3074
3075
  e_1 = { error: e_1_1 };
3075
3076
  } finally {
3076
3077
  try {
3077
- if (_parentage_1_1 && !_parentage_1_1.done && (_a2 = _parentage_1.return))
3078
- _a2.call(_parentage_1);
3078
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a3 = _parentage_1.return))
3079
+ _a3.call(_parentage_1);
3079
3080
  } finally {
3080
3081
  if (e_1)
3081
3082
  throw e_1.error;
@@ -3086,25 +3087,25 @@ var Subscription = function() {
3086
3087
  }
3087
3088
  }
3088
3089
  var initialFinalizer = this.initialTeardown;
3089
- if (isFunction(initialFinalizer)) {
3090
+ if (isFunction$1(initialFinalizer)) {
3090
3091
  try {
3091
3092
  initialFinalizer();
3092
3093
  } catch (e2) {
3093
- errors = e2 instanceof UnsubscriptionError ? e2.errors : [e2];
3094
+ errors = e2 instanceof UnsubscriptionError$1 ? e2.errors : [e2];
3094
3095
  }
3095
3096
  }
3096
3097
  var _finalizers = this._finalizers;
3097
3098
  if (_finalizers) {
3098
3099
  this._finalizers = null;
3099
3100
  try {
3100
- for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
3101
+ for (var _finalizers_1 = __values$1(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
3101
3102
  var finalizer = _finalizers_1_1.value;
3102
3103
  try {
3103
- execFinalizer(finalizer);
3104
+ execFinalizer$1(finalizer);
3104
3105
  } catch (err) {
3105
3106
  errors = errors !== null && errors !== void 0 ? errors : [];
3106
- if (err instanceof UnsubscriptionError) {
3107
- errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
3107
+ if (err instanceof UnsubscriptionError$1) {
3108
+ errors = __spreadArray$1(__spreadArray$1([], __read$1(errors)), __read$1(err.errors));
3108
3109
  } else {
3109
3110
  errors.push(err);
3110
3111
  }
@@ -3123,15 +3124,15 @@ var Subscription = function() {
3123
3124
  }
3124
3125
  }
3125
3126
  if (errors) {
3126
- throw new UnsubscriptionError(errors);
3127
+ throw new UnsubscriptionError$1(errors);
3127
3128
  }
3128
3129
  }
3129
3130
  };
3130
3131
  Subscription2.prototype.add = function(teardown) {
3131
- var _a2;
3132
+ var _a3;
3132
3133
  if (teardown && teardown !== this) {
3133
3134
  if (this.closed) {
3134
- execFinalizer(teardown);
3135
+ execFinalizer$1(teardown);
3135
3136
  } else {
3136
3137
  if (teardown instanceof Subscription2) {
3137
3138
  if (teardown.closed || teardown._hasParent(this)) {
@@ -3139,7 +3140,7 @@ var Subscription = function() {
3139
3140
  }
3140
3141
  teardown._addParent(this);
3141
3142
  }
3142
- (this._finalizers = (_a2 = this._finalizers) !== null && _a2 !== void 0 ? _a2 : []).push(teardown);
3143
+ (this._finalizers = (_a3 = this._finalizers) !== null && _a3 !== void 0 ? _a3 : []).push(teardown);
3143
3144
  }
3144
3145
  }
3145
3146
  };
@@ -3156,12 +3157,12 @@ var Subscription = function() {
3156
3157
  if (_parentage === parent) {
3157
3158
  this._parentage = null;
3158
3159
  } else if (Array.isArray(_parentage)) {
3159
- arrRemove(_parentage, parent);
3160
+ arrRemove$1(_parentage, parent);
3160
3161
  }
3161
3162
  };
3162
3163
  Subscription2.prototype.remove = function(teardown) {
3163
3164
  var _finalizers = this._finalizers;
3164
- _finalizers && arrRemove(_finalizers, teardown);
3165
+ _finalizers && arrRemove$1(_finalizers, teardown);
3165
3166
  if (teardown instanceof Subscription2) {
3166
3167
  teardown._removeParent(this);
3167
3168
  }
@@ -3173,73 +3174,73 @@ var Subscription = function() {
3173
3174
  }();
3174
3175
  return Subscription2;
3175
3176
  }();
3176
- var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
3177
- function isSubscription(value) {
3178
- return value instanceof Subscription || value && "closed" in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);
3177
+ var EMPTY_SUBSCRIPTION$1 = Subscription$1.EMPTY;
3178
+ function isSubscription$1(value) {
3179
+ return value instanceof Subscription$1 || value && "closed" in value && isFunction$1(value.remove) && isFunction$1(value.add) && isFunction$1(value.unsubscribe);
3179
3180
  }
3180
- function execFinalizer(finalizer) {
3181
- if (isFunction(finalizer)) {
3181
+ function execFinalizer$1(finalizer) {
3182
+ if (isFunction$1(finalizer)) {
3182
3183
  finalizer();
3183
3184
  } else {
3184
3185
  finalizer.unsubscribe();
3185
3186
  }
3186
3187
  }
3187
- var config = {
3188
+ var config$1 = {
3188
3189
  onUnhandledError: null,
3189
3190
  onStoppedNotification: null,
3190
3191
  Promise: void 0,
3191
3192
  useDeprecatedSynchronousErrorHandling: false,
3192
3193
  useDeprecatedNextContext: false
3193
3194
  };
3194
- var timeoutProvider = {
3195
+ var timeoutProvider$1 = {
3195
3196
  setTimeout: function(handler2, timeout) {
3196
3197
  var args = [];
3197
3198
  for (var _i = 2; _i < arguments.length; _i++) {
3198
3199
  args[_i - 2] = arguments[_i];
3199
3200
  }
3200
- var delegate = timeoutProvider.delegate;
3201
+ var delegate = timeoutProvider$1.delegate;
3201
3202
  if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
3202
- return delegate.setTimeout.apply(delegate, __spreadArray([handler2, timeout], __read(args)));
3203
+ return delegate.setTimeout.apply(delegate, __spreadArray$1([handler2, timeout], __read$1(args)));
3203
3204
  }
3204
- return setTimeout.apply(void 0, __spreadArray([handler2, timeout], __read(args)));
3205
+ return setTimeout.apply(void 0, __spreadArray$1([handler2, timeout], __read$1(args)));
3205
3206
  },
3206
3207
  clearTimeout: function(handle2) {
3207
- var delegate = timeoutProvider.delegate;
3208
+ var delegate = timeoutProvider$1.delegate;
3208
3209
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle2);
3209
3210
  },
3210
3211
  delegate: void 0
3211
3212
  };
3212
- function reportUnhandledError(err) {
3213
- timeoutProvider.setTimeout(function() {
3213
+ function reportUnhandledError$1(err) {
3214
+ timeoutProvider$1.setTimeout(function() {
3214
3215
  {
3215
3216
  throw err;
3216
3217
  }
3217
3218
  });
3218
3219
  }
3219
- function noop$6() {
3220
+ function noop$7() {
3220
3221
  }
3221
- function errorContext(cb2) {
3222
+ function errorContext$1(cb2) {
3222
3223
  {
3223
3224
  cb2();
3224
3225
  }
3225
3226
  }
3226
- var Subscriber = function(_super) {
3227
- __extends(Subscriber2, _super);
3227
+ var Subscriber$1 = function(_super) {
3228
+ __extends$1(Subscriber2, _super);
3228
3229
  function Subscriber2(destination) {
3229
3230
  var _this = _super.call(this) || this;
3230
3231
  _this.isStopped = false;
3231
3232
  if (destination) {
3232
3233
  _this.destination = destination;
3233
- if (isSubscription(destination)) {
3234
+ if (isSubscription$1(destination)) {
3234
3235
  destination.add(_this);
3235
3236
  }
3236
3237
  } else {
3237
- _this.destination = EMPTY_OBSERVER;
3238
+ _this.destination = EMPTY_OBSERVER$1;
3238
3239
  }
3239
3240
  return _this;
3240
3241
  }
3241
3242
  Subscriber2.create = function(next, error2, complete) {
3242
- return new SafeSubscriber(next, error2, complete);
3243
+ return new SafeSubscriber$1(next, error2, complete);
3243
3244
  };
3244
3245
  Subscriber2.prototype.next = function(value) {
3245
3246
  if (this.isStopped)
@@ -3289,12 +3290,12 @@ var Subscriber = function(_super) {
3289
3290
  }
3290
3291
  };
3291
3292
  return Subscriber2;
3292
- }(Subscription);
3293
- var _bind = Function.prototype.bind;
3294
- function bind(fn, thisArg) {
3295
- return _bind.call(fn, thisArg);
3293
+ }(Subscription$1);
3294
+ var _bind$1 = Function.prototype.bind;
3295
+ function bind$1(fn, thisArg) {
3296
+ return _bind$1.call(fn, thisArg);
3296
3297
  }
3297
- var ConsumerObserver = function() {
3298
+ var ConsumerObserver$1 = function() {
3298
3299
  function ConsumerObserver2(partialObserver) {
3299
3300
  this.partialObserver = partialObserver;
3300
3301
  }
@@ -3304,7 +3305,7 @@ var ConsumerObserver = function() {
3304
3305
  try {
3305
3306
  partialObserver.next(value);
3306
3307
  } catch (error2) {
3307
- handleUnhandledError(error2);
3308
+ handleUnhandledError$1(error2);
3308
3309
  }
3309
3310
  }
3310
3311
  };
@@ -3314,10 +3315,10 @@ var ConsumerObserver = function() {
3314
3315
  try {
3315
3316
  partialObserver.error(err);
3316
3317
  } catch (error2) {
3317
- handleUnhandledError(error2);
3318
+ handleUnhandledError$1(error2);
3318
3319
  }
3319
3320
  } else {
3320
- handleUnhandledError(err);
3321
+ handleUnhandledError$1(err);
3321
3322
  }
3322
3323
  };
3323
3324
  ConsumerObserver2.prototype.complete = function() {
@@ -3326,18 +3327,18 @@ var ConsumerObserver = function() {
3326
3327
  try {
3327
3328
  partialObserver.complete();
3328
3329
  } catch (error2) {
3329
- handleUnhandledError(error2);
3330
+ handleUnhandledError$1(error2);
3330
3331
  }
3331
3332
  }
3332
3333
  };
3333
3334
  return ConsumerObserver2;
3334
3335
  }();
3335
- var SafeSubscriber = function(_super) {
3336
- __extends(SafeSubscriber2, _super);
3336
+ var SafeSubscriber$1 = function(_super) {
3337
+ __extends$1(SafeSubscriber2, _super);
3337
3338
  function SafeSubscriber2(observerOrNext, error2, complete) {
3338
3339
  var _this = _super.call(this) || this;
3339
3340
  var partialObserver;
3340
- if (isFunction(observerOrNext) || !observerOrNext) {
3341
+ if (isFunction$1(observerOrNext) || !observerOrNext) {
3341
3342
  partialObserver = {
3342
3343
  next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
3343
3344
  error: error2 !== null && error2 !== void 0 ? error2 : void 0,
@@ -3345,43 +3346,43 @@ var SafeSubscriber = function(_super) {
3345
3346
  };
3346
3347
  } else {
3347
3348
  var context_1;
3348
- if (_this && config.useDeprecatedNextContext) {
3349
+ if (_this && config$1.useDeprecatedNextContext) {
3349
3350
  context_1 = Object.create(observerOrNext);
3350
3351
  context_1.unsubscribe = function() {
3351
3352
  return _this.unsubscribe();
3352
3353
  };
3353
3354
  partialObserver = {
3354
- next: observerOrNext.next && bind(observerOrNext.next, context_1),
3355
- error: observerOrNext.error && bind(observerOrNext.error, context_1),
3356
- complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
3355
+ next: observerOrNext.next && bind$1(observerOrNext.next, context_1),
3356
+ error: observerOrNext.error && bind$1(observerOrNext.error, context_1),
3357
+ complete: observerOrNext.complete && bind$1(observerOrNext.complete, context_1)
3357
3358
  };
3358
3359
  } else {
3359
3360
  partialObserver = observerOrNext;
3360
3361
  }
3361
3362
  }
3362
- _this.destination = new ConsumerObserver(partialObserver);
3363
+ _this.destination = new ConsumerObserver$1(partialObserver);
3363
3364
  return _this;
3364
3365
  }
3365
3366
  return SafeSubscriber2;
3366
- }(Subscriber);
3367
- function handleUnhandledError(error2) {
3367
+ }(Subscriber$1);
3368
+ function handleUnhandledError$1(error2) {
3368
3369
  {
3369
- reportUnhandledError(error2);
3370
+ reportUnhandledError$1(error2);
3370
3371
  }
3371
3372
  }
3372
- function defaultErrorHandler(err) {
3373
+ function defaultErrorHandler$1(err) {
3373
3374
  throw err;
3374
3375
  }
3375
- var EMPTY_OBSERVER = {
3376
+ var EMPTY_OBSERVER$1 = {
3376
3377
  closed: true,
3377
- next: noop$6,
3378
- error: defaultErrorHandler,
3379
- complete: noop$6
3378
+ next: noop$7,
3379
+ error: defaultErrorHandler$1,
3380
+ complete: noop$7
3380
3381
  };
3381
- var observable = function() {
3382
+ var observable$1 = function() {
3382
3383
  return typeof Symbol === "function" && Symbol.observable || "@@observable";
3383
3384
  }();
3384
- function identity(x2) {
3385
+ function identity$1(x2) {
3385
3386
  return x2;
3386
3387
  }
3387
3388
  function pipe() {
@@ -3389,11 +3390,11 @@ function pipe() {
3389
3390
  for (var _i = 0; _i < arguments.length; _i++) {
3390
3391
  fns[_i] = arguments[_i];
3391
3392
  }
3392
- return pipeFromArray(fns);
3393
+ return pipeFromArray$1(fns);
3393
3394
  }
3394
- function pipeFromArray(fns) {
3395
+ function pipeFromArray$1(fns) {
3395
3396
  if (fns.length === 0) {
3396
- return identity;
3397
+ return identity$1;
3397
3398
  }
3398
3399
  if (fns.length === 1) {
3399
3400
  return fns[0];
@@ -3404,7 +3405,7 @@ function pipeFromArray(fns) {
3404
3405
  }, input);
3405
3406
  };
3406
3407
  }
3407
- var Observable = function() {
3408
+ var Observable$1 = function() {
3408
3409
  function Observable2(subscribe) {
3409
3410
  if (subscribe) {
3410
3411
  this._subscribe = subscribe;
@@ -3418,9 +3419,9 @@ var Observable = function() {
3418
3419
  };
3419
3420
  Observable2.prototype.subscribe = function(observerOrNext, error2, complete) {
3420
3421
  var _this = this;
3421
- var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error2, complete);
3422
- errorContext(function() {
3423
- var _a2 = _this, operator = _a2.operator, source = _a2.source;
3422
+ var subscriber = isSubscriber$1(observerOrNext) ? observerOrNext : new SafeSubscriber$1(observerOrNext, error2, complete);
3423
+ errorContext$1(function() {
3424
+ var _a3 = _this, operator = _a3.operator, source = _a3.source;
3424
3425
  subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
3425
3426
  });
3426
3427
  return subscriber;
@@ -3434,9 +3435,9 @@ var Observable = function() {
3434
3435
  };
3435
3436
  Observable2.prototype.forEach = function(next, promiseCtor) {
3436
3437
  var _this = this;
3437
- promiseCtor = getPromiseCtor(promiseCtor);
3438
+ promiseCtor = getPromiseCtor$1(promiseCtor);
3438
3439
  return new promiseCtor(function(resolve, reject) {
3439
- var subscriber = new SafeSubscriber({
3440
+ var subscriber = new SafeSubscriber$1({
3440
3441
  next: function(value) {
3441
3442
  try {
3442
3443
  next(value);
@@ -3452,10 +3453,10 @@ var Observable = function() {
3452
3453
  });
3453
3454
  };
3454
3455
  Observable2.prototype._subscribe = function(subscriber) {
3455
- var _a2;
3456
- return (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber);
3456
+ var _a3;
3457
+ return (_a3 = this.source) === null || _a3 === void 0 ? void 0 : _a3.subscribe(subscriber);
3457
3458
  };
3458
- Observable2.prototype[observable] = function() {
3459
+ Observable2.prototype[observable$1] = function() {
3459
3460
  return this;
3460
3461
  };
3461
3462
  Observable2.prototype.pipe = function() {
@@ -3463,11 +3464,11 @@ var Observable = function() {
3463
3464
  for (var _i = 0; _i < arguments.length; _i++) {
3464
3465
  operations[_i] = arguments[_i];
3465
3466
  }
3466
- return pipeFromArray(operations)(this);
3467
+ return pipeFromArray$1(operations)(this);
3467
3468
  };
3468
3469
  Observable2.prototype.toPromise = function(promiseCtor) {
3469
3470
  var _this = this;
3470
- promiseCtor = getPromiseCtor(promiseCtor);
3471
+ promiseCtor = getPromiseCtor$1(promiseCtor);
3471
3472
  return new promiseCtor(function(resolve, reject) {
3472
3473
  var value;
3473
3474
  _this.subscribe(function(x2) {
@@ -3484,22 +3485,22 @@ var Observable = function() {
3484
3485
  };
3485
3486
  return Observable2;
3486
3487
  }();
3487
- function getPromiseCtor(promiseCtor) {
3488
- var _a2;
3489
- return (_a2 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a2 !== void 0 ? _a2 : Promise;
3488
+ function getPromiseCtor$1(promiseCtor) {
3489
+ var _a3;
3490
+ return (_a3 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config$1.Promise) !== null && _a3 !== void 0 ? _a3 : Promise;
3490
3491
  }
3491
- function isObserver(value) {
3492
- return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
3492
+ function isObserver$1(value) {
3493
+ return value && isFunction$1(value.next) && isFunction$1(value.error) && isFunction$1(value.complete);
3493
3494
  }
3494
- function isSubscriber(value) {
3495
- return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);
3495
+ function isSubscriber$1(value) {
3496
+ return value && value instanceof Subscriber$1 || isObserver$1(value) && isSubscription$1(value);
3496
3497
  }
3497
- function hasLift(source) {
3498
- return isFunction(source === null || source === void 0 ? void 0 : source.lift);
3498
+ function hasLift$1(source) {
3499
+ return isFunction$1(source === null || source === void 0 ? void 0 : source.lift);
3499
3500
  }
3500
- function operate(init) {
3501
+ function operate$1(init) {
3501
3502
  return function(source) {
3502
- if (hasLift(source)) {
3503
+ if (hasLift$1(source)) {
3503
3504
  return source.lift(function(liftedSource) {
3504
3505
  try {
3505
3506
  return init(liftedSource, this);
@@ -3511,11 +3512,11 @@ function operate(init) {
3511
3512
  throw new TypeError("Unable to lift unknown Observable type");
3512
3513
  };
3513
3514
  }
3514
- function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
3515
- return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
3515
+ function createOperatorSubscriber$1(destination, onNext, onComplete, onError, onFinalize) {
3516
+ return new OperatorSubscriber$1(destination, onNext, onComplete, onError, onFinalize);
3516
3517
  }
3517
- var OperatorSubscriber = function(_super) {
3518
- __extends(OperatorSubscriber2, _super);
3518
+ var OperatorSubscriber$1 = function(_super) {
3519
+ __extends$1(OperatorSubscriber2, _super);
3519
3520
  function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
3520
3521
  var _this = _super.call(this, destination) || this;
3521
3522
  _this.onFinalize = onFinalize;
@@ -3548,24 +3549,24 @@ var OperatorSubscriber = function(_super) {
3548
3549
  return _this;
3549
3550
  }
3550
3551
  OperatorSubscriber2.prototype.unsubscribe = function() {
3551
- var _a2;
3552
+ var _a3;
3552
3553
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
3553
3554
  var closed_1 = this.closed;
3554
3555
  _super.prototype.unsubscribe.call(this);
3555
- !closed_1 && ((_a2 = this.onFinalize) === null || _a2 === void 0 ? void 0 : _a2.call(this));
3556
+ !closed_1 && ((_a3 = this.onFinalize) === null || _a3 === void 0 ? void 0 : _a3.call(this));
3556
3557
  }
3557
3558
  };
3558
3559
  return OperatorSubscriber2;
3559
- }(Subscriber);
3560
- var ObjectUnsubscribedError = createErrorClass(function(_super) {
3560
+ }(Subscriber$1);
3561
+ var ObjectUnsubscribedError$1 = createErrorClass$1(function(_super) {
3561
3562
  return function ObjectUnsubscribedErrorImpl() {
3562
3563
  _super(this);
3563
3564
  this.name = "ObjectUnsubscribedError";
3564
3565
  this.message = "object unsubscribed";
3565
3566
  };
3566
3567
  });
3567
- var Subject = function(_super) {
3568
- __extends(Subject2, _super);
3568
+ var Subject$1 = function(_super) {
3569
+ __extends$1(Subject2, _super);
3569
3570
  function Subject2() {
3570
3571
  var _this = _super.call(this) || this;
3571
3572
  _this.closed = false;
@@ -3577,26 +3578,26 @@ var Subject = function(_super) {
3577
3578
  return _this;
3578
3579
  }
3579
3580
  Subject2.prototype.lift = function(operator) {
3580
- var subject = new AnonymousSubject(this, this);
3581
+ var subject = new AnonymousSubject$1(this, this);
3581
3582
  subject.operator = operator;
3582
3583
  return subject;
3583
3584
  };
3584
3585
  Subject2.prototype._throwIfClosed = function() {
3585
3586
  if (this.closed) {
3586
- throw new ObjectUnsubscribedError();
3587
+ throw new ObjectUnsubscribedError$1();
3587
3588
  }
3588
3589
  };
3589
3590
  Subject2.prototype.next = function(value) {
3590
3591
  var _this = this;
3591
- errorContext(function() {
3592
- var e_1, _a2;
3592
+ errorContext$1(function() {
3593
+ var e_1, _a3;
3593
3594
  _this._throwIfClosed();
3594
3595
  if (!_this.isStopped) {
3595
3596
  if (!_this.currentObservers) {
3596
3597
  _this.currentObservers = Array.from(_this.observers);
3597
3598
  }
3598
3599
  try {
3599
- for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
3600
+ for (var _b = __values$1(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
3600
3601
  var observer = _c.value;
3601
3602
  observer.next(value);
3602
3603
  }
@@ -3604,8 +3605,8 @@ var Subject = function(_super) {
3604
3605
  e_1 = { error: e_1_1 };
3605
3606
  } finally {
3606
3607
  try {
3607
- if (_c && !_c.done && (_a2 = _b.return))
3608
- _a2.call(_b);
3608
+ if (_c && !_c.done && (_a3 = _b.return))
3609
+ _a3.call(_b);
3609
3610
  } finally {
3610
3611
  if (e_1)
3611
3612
  throw e_1.error;
@@ -3616,7 +3617,7 @@ var Subject = function(_super) {
3616
3617
  };
3617
3618
  Subject2.prototype.error = function(err) {
3618
3619
  var _this = this;
3619
- errorContext(function() {
3620
+ errorContext$1(function() {
3620
3621
  _this._throwIfClosed();
3621
3622
  if (!_this.isStopped) {
3622
3623
  _this.hasError = _this.isStopped = true;
@@ -3630,7 +3631,7 @@ var Subject = function(_super) {
3630
3631
  };
3631
3632
  Subject2.prototype.complete = function() {
3632
3633
  var _this = this;
3633
- errorContext(function() {
3634
+ errorContext$1(function() {
3634
3635
  _this._throwIfClosed();
3635
3636
  if (!_this.isStopped) {
3636
3637
  _this.isStopped = true;
@@ -3647,8 +3648,8 @@ var Subject = function(_super) {
3647
3648
  };
3648
3649
  Object.defineProperty(Subject2.prototype, "observed", {
3649
3650
  get: function() {
3650
- var _a2;
3651
- return ((_a2 = this.observers) === null || _a2 === void 0 ? void 0 : _a2.length) > 0;
3651
+ var _a3;
3652
+ return ((_a3 = this.observers) === null || _a3 === void 0 ? void 0 : _a3.length) > 0;
3652
3653
  },
3653
3654
  enumerable: false,
3654
3655
  configurable: true
@@ -3664,19 +3665,19 @@ var Subject = function(_super) {
3664
3665
  };
3665
3666
  Subject2.prototype._innerSubscribe = function(subscriber) {
3666
3667
  var _this = this;
3667
- var _a2 = this, hasError = _a2.hasError, isStopped = _a2.isStopped, observers2 = _a2.observers;
3668
+ var _a3 = this, hasError = _a3.hasError, isStopped = _a3.isStopped, observers2 = _a3.observers;
3668
3669
  if (hasError || isStopped) {
3669
- return EMPTY_SUBSCRIPTION;
3670
+ return EMPTY_SUBSCRIPTION$1;
3670
3671
  }
3671
3672
  this.currentObservers = null;
3672
3673
  observers2.push(subscriber);
3673
- return new Subscription(function() {
3674
+ return new Subscription$1(function() {
3674
3675
  _this.currentObservers = null;
3675
- arrRemove(observers2, subscriber);
3676
+ arrRemove$1(observers2, subscriber);
3676
3677
  });
3677
3678
  };
3678
3679
  Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
3679
- var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, isStopped = _a2.isStopped;
3680
+ var _a3 = this, hasError = _a3.hasError, thrownError = _a3.thrownError, isStopped = _a3.isStopped;
3680
3681
  if (hasError) {
3681
3682
  subscriber.error(thrownError);
3682
3683
  } else if (isStopped) {
@@ -3684,17 +3685,17 @@ var Subject = function(_super) {
3684
3685
  }
3685
3686
  };
3686
3687
  Subject2.prototype.asObservable = function() {
3687
- var observable2 = new Observable();
3688
+ var observable2 = new Observable$1();
3688
3689
  observable2.source = this;
3689
3690
  return observable2;
3690
3691
  };
3691
3692
  Subject2.create = function(destination, source) {
3692
- return new AnonymousSubject(destination, source);
3693
+ return new AnonymousSubject$1(destination, source);
3693
3694
  };
3694
3695
  return Subject2;
3695
- }(Observable);
3696
- var AnonymousSubject = function(_super) {
3697
- __extends(AnonymousSubject2, _super);
3696
+ }(Observable$1);
3697
+ var AnonymousSubject$1 = function(_super) {
3698
+ __extends$1(AnonymousSubject2, _super);
3698
3699
  function AnonymousSubject2(destination, source) {
3699
3700
  var _this = _super.call(this) || this;
3700
3701
  _this.destination = destination;
@@ -3702,25 +3703,25 @@ var AnonymousSubject = function(_super) {
3702
3703
  return _this;
3703
3704
  }
3704
3705
  AnonymousSubject2.prototype.next = function(value) {
3705
- var _a2, _b;
3706
- (_b = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.next) === null || _b === void 0 ? void 0 : _b.call(_a2, value);
3706
+ var _a3, _b;
3707
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.next) === null || _b === void 0 ? void 0 : _b.call(_a3, value);
3707
3708
  };
3708
3709
  AnonymousSubject2.prototype.error = function(err) {
3709
- var _a2, _b;
3710
- (_b = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.error) === null || _b === void 0 ? void 0 : _b.call(_a2, err);
3710
+ var _a3, _b;
3711
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.error) === null || _b === void 0 ? void 0 : _b.call(_a3, err);
3711
3712
  };
3712
3713
  AnonymousSubject2.prototype.complete = function() {
3713
- var _a2, _b;
3714
- (_b = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.complete) === null || _b === void 0 ? void 0 : _b.call(_a2);
3714
+ var _a3, _b;
3715
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.complete) === null || _b === void 0 ? void 0 : _b.call(_a3);
3715
3716
  };
3716
3717
  AnonymousSubject2.prototype._subscribe = function(subscriber) {
3717
- var _a2, _b;
3718
- return (_b = (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
3718
+ var _a3, _b;
3719
+ return (_b = (_a3 = this.source) === null || _a3 === void 0 ? void 0 : _a3.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION$1;
3719
3720
  };
3720
3721
  return AnonymousSubject2;
3721
- }(Subject);
3722
+ }(Subject$1);
3722
3723
  var BehaviorSubject = function(_super) {
3723
- __extends(BehaviorSubject2, _super);
3724
+ __extends$1(BehaviorSubject2, _super);
3724
3725
  function BehaviorSubject2(_value) {
3725
3726
  var _this = _super.call(this) || this;
3726
3727
  _this._value = _value;
@@ -3739,7 +3740,7 @@ var BehaviorSubject = function(_super) {
3739
3740
  return subscription;
3740
3741
  };
3741
3742
  BehaviorSubject2.prototype.getValue = function() {
3742
- var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, _value = _a2._value;
3743
+ var _a3 = this, hasError = _a3.hasError, thrownError = _a3.thrownError, _value = _a3._value;
3743
3744
  if (hasError) {
3744
3745
  throw thrownError;
3745
3746
  }
@@ -3750,15 +3751,15 @@ var BehaviorSubject = function(_super) {
3750
3751
  _super.prototype.next.call(this, this._value = value);
3751
3752
  };
3752
3753
  return BehaviorSubject2;
3753
- }(Subject);
3754
- var dateTimestampProvider = {
3754
+ }(Subject$1);
3755
+ var dateTimestampProvider$1 = {
3755
3756
  now: function() {
3756
- return (dateTimestampProvider.delegate || Date).now();
3757
+ return (dateTimestampProvider$1.delegate || Date).now();
3757
3758
  },
3758
3759
  delegate: void 0
3759
3760
  };
3760
- var ReplaySubject = function(_super) {
3761
- __extends(ReplaySubject2, _super);
3761
+ var ReplaySubject$1 = function(_super) {
3762
+ __extends$1(ReplaySubject2, _super);
3762
3763
  function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) {
3763
3764
  if (_bufferSize === void 0) {
3764
3765
  _bufferSize = Infinity;
@@ -3767,7 +3768,7 @@ var ReplaySubject = function(_super) {
3767
3768
  _windowTime = Infinity;
3768
3769
  }
3769
3770
  if (_timestampProvider === void 0) {
3770
- _timestampProvider = dateTimestampProvider;
3771
+ _timestampProvider = dateTimestampProvider$1;
3771
3772
  }
3772
3773
  var _this = _super.call(this) || this;
3773
3774
  _this._bufferSize = _bufferSize;
@@ -3781,7 +3782,7 @@ var ReplaySubject = function(_super) {
3781
3782
  return _this;
3782
3783
  }
3783
3784
  ReplaySubject2.prototype.next = function(value) {
3784
- var _a2 = this, isStopped = _a2.isStopped, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow, _timestampProvider = _a2._timestampProvider, _windowTime = _a2._windowTime;
3785
+ var _a3 = this, isStopped = _a3.isStopped, _buffer = _a3._buffer, _infiniteTimeWindow = _a3._infiniteTimeWindow, _timestampProvider = _a3._timestampProvider, _windowTime = _a3._windowTime;
3785
3786
  if (!isStopped) {
3786
3787
  _buffer.push(value);
3787
3788
  !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
@@ -3793,7 +3794,7 @@ var ReplaySubject = function(_super) {
3793
3794
  this._throwIfClosed();
3794
3795
  this._trimBuffer();
3795
3796
  var subscription = this._innerSubscribe(subscriber);
3796
- var _a2 = this, _infiniteTimeWindow = _a2._infiniteTimeWindow, _buffer = _a2._buffer;
3797
+ var _a3 = this, _infiniteTimeWindow = _a3._infiniteTimeWindow, _buffer = _a3._buffer;
3797
3798
  var copy2 = _buffer.slice();
3798
3799
  for (var i2 = 0; i2 < copy2.length && !subscriber.closed; i2 += _infiniteTimeWindow ? 1 : 2) {
3799
3800
  subscriber.next(copy2[i2]);
@@ -3802,7 +3803,7 @@ var ReplaySubject = function(_super) {
3802
3803
  return subscription;
3803
3804
  };
3804
3805
  ReplaySubject2.prototype._trimBuffer = function() {
3805
- var _a2 = this, _bufferSize = _a2._bufferSize, _timestampProvider = _a2._timestampProvider, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow;
3806
+ var _a3 = this, _bufferSize = _a3._bufferSize, _timestampProvider = _a3._timestampProvider, _buffer = _a3._buffer, _infiniteTimeWindow = _a3._infiniteTimeWindow;
3806
3807
  var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
3807
3808
  _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
3808
3809
  if (!_infiniteTimeWindow) {
@@ -3815,9 +3816,9 @@ var ReplaySubject = function(_super) {
3815
3816
  }
3816
3817
  };
3817
3818
  return ReplaySubject2;
3818
- }(Subject);
3819
- var Action = function(_super) {
3820
- __extends(Action2, _super);
3819
+ }(Subject$1);
3820
+ var Action$1 = function(_super) {
3821
+ __extends$1(Action2, _super);
3821
3822
  function Action2(scheduler2, work) {
3822
3823
  return _super.call(this) || this;
3823
3824
  }
@@ -3825,27 +3826,27 @@ var Action = function(_super) {
3825
3826
  return this;
3826
3827
  };
3827
3828
  return Action2;
3828
- }(Subscription);
3829
- var intervalProvider = {
3829
+ }(Subscription$1);
3830
+ var intervalProvider$1 = {
3830
3831
  setInterval: function(handler2, timeout) {
3831
3832
  var args = [];
3832
3833
  for (var _i = 2; _i < arguments.length; _i++) {
3833
3834
  args[_i - 2] = arguments[_i];
3834
3835
  }
3835
- var delegate = intervalProvider.delegate;
3836
+ var delegate = intervalProvider$1.delegate;
3836
3837
  if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
3837
- return delegate.setInterval.apply(delegate, __spreadArray([handler2, timeout], __read(args)));
3838
+ return delegate.setInterval.apply(delegate, __spreadArray$1([handler2, timeout], __read$1(args)));
3838
3839
  }
3839
- return setInterval.apply(void 0, __spreadArray([handler2, timeout], __read(args)));
3840
+ return setInterval.apply(void 0, __spreadArray$1([handler2, timeout], __read$1(args)));
3840
3841
  },
3841
3842
  clearInterval: function(handle2) {
3842
- var delegate = intervalProvider.delegate;
3843
+ var delegate = intervalProvider$1.delegate;
3843
3844
  return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle2);
3844
3845
  },
3845
3846
  delegate: void 0
3846
3847
  };
3847
- var AsyncAction = function(_super) {
3848
- __extends(AsyncAction2, _super);
3848
+ var AsyncAction$1 = function(_super) {
3849
+ __extends$1(AsyncAction2, _super);
3849
3850
  function AsyncAction2(scheduler2, work) {
3850
3851
  var _this = _super.call(this, scheduler2, work) || this;
3851
3852
  _this.scheduler = scheduler2;
@@ -3854,7 +3855,7 @@ var AsyncAction = function(_super) {
3854
3855
  return _this;
3855
3856
  }
3856
3857
  AsyncAction2.prototype.schedule = function(state, delay) {
3857
- var _a2;
3858
+ var _a3;
3858
3859
  if (delay === void 0) {
3859
3860
  delay = 0;
3860
3861
  }
@@ -3869,14 +3870,14 @@ var AsyncAction = function(_super) {
3869
3870
  }
3870
3871
  this.pending = true;
3871
3872
  this.delay = delay;
3872
- this.id = (_a2 = this.id) !== null && _a2 !== void 0 ? _a2 : this.requestAsyncId(scheduler2, this.id, delay);
3873
+ this.id = (_a3 = this.id) !== null && _a3 !== void 0 ? _a3 : this.requestAsyncId(scheduler2, this.id, delay);
3873
3874
  return this;
3874
3875
  };
3875
3876
  AsyncAction2.prototype.requestAsyncId = function(scheduler2, _id, delay) {
3876
3877
  if (delay === void 0) {
3877
3878
  delay = 0;
3878
3879
  }
3879
- return intervalProvider.setInterval(scheduler2.flush.bind(scheduler2, this), delay);
3880
+ return intervalProvider$1.setInterval(scheduler2.flush.bind(scheduler2, this), delay);
3880
3881
  };
3881
3882
  AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id2, delay) {
3882
3883
  if (delay === void 0) {
@@ -3886,7 +3887,7 @@ var AsyncAction = function(_super) {
3886
3887
  return id2;
3887
3888
  }
3888
3889
  if (id2 != null) {
3889
- intervalProvider.clearInterval(id2);
3890
+ intervalProvider$1.clearInterval(id2);
3890
3891
  }
3891
3892
  return void 0;
3892
3893
  };
@@ -3918,11 +3919,11 @@ var AsyncAction = function(_super) {
3918
3919
  };
3919
3920
  AsyncAction2.prototype.unsubscribe = function() {
3920
3921
  if (!this.closed) {
3921
- var _a2 = this, id2 = _a2.id, scheduler2 = _a2.scheduler;
3922
+ var _a3 = this, id2 = _a3.id, scheduler2 = _a3.scheduler;
3922
3923
  var actions = scheduler2.actions;
3923
3924
  this.work = this.state = this.scheduler = null;
3924
3925
  this.pending = false;
3925
- arrRemove(actions, this);
3926
+ arrRemove$1(actions, this);
3926
3927
  if (id2 != null) {
3927
3928
  this.id = this.recycleAsyncId(scheduler2, id2, null);
3928
3929
  }
@@ -3931,8 +3932,8 @@ var AsyncAction = function(_super) {
3931
3932
  }
3932
3933
  };
3933
3934
  return AsyncAction2;
3934
- }(Action);
3935
- var Scheduler = function() {
3935
+ }(Action$1);
3936
+ var Scheduler$1 = function() {
3936
3937
  function Scheduler2(schedulerActionCtor, now2) {
3937
3938
  if (now2 === void 0) {
3938
3939
  now2 = Scheduler2.now;
@@ -3946,14 +3947,14 @@ var Scheduler = function() {
3946
3947
  }
3947
3948
  return new this.schedulerActionCtor(this, work).schedule(state, delay);
3948
3949
  };
3949
- Scheduler2.now = dateTimestampProvider.now;
3950
+ Scheduler2.now = dateTimestampProvider$1.now;
3950
3951
  return Scheduler2;
3951
3952
  }();
3952
- var AsyncScheduler = function(_super) {
3953
- __extends(AsyncScheduler2, _super);
3953
+ var AsyncScheduler$1 = function(_super) {
3954
+ __extends$1(AsyncScheduler2, _super);
3954
3955
  function AsyncScheduler2(SchedulerAction, now2) {
3955
3956
  if (now2 === void 0) {
3956
- now2 = Scheduler.now;
3957
+ now2 = Scheduler$1.now;
3957
3958
  }
3958
3959
  var _this = _super.call(this, SchedulerAction, now2) || this;
3959
3960
  _this.actions = [];
@@ -3982,53 +3983,53 @@ var AsyncScheduler = function(_super) {
3982
3983
  }
3983
3984
  };
3984
3985
  return AsyncScheduler2;
3985
- }(Scheduler);
3986
- var asyncScheduler = new AsyncScheduler(AsyncAction);
3987
- var async = asyncScheduler;
3988
- var EMPTY$1 = new Observable(function(subscriber) {
3986
+ }(Scheduler$1);
3987
+ var asyncScheduler$1 = new AsyncScheduler$1(AsyncAction$1);
3988
+ var async$1 = asyncScheduler$1;
3989
+ var EMPTY$2 = new Observable$1(function(subscriber) {
3989
3990
  return subscriber.complete();
3990
3991
  });
3991
- function isScheduler(value) {
3992
- return value && isFunction(value.schedule);
3992
+ function isScheduler$1(value) {
3993
+ return value && isFunction$1(value.schedule);
3993
3994
  }
3994
3995
  function last$1(arr) {
3995
3996
  return arr[arr.length - 1];
3996
3997
  }
3997
3998
  function popResultSelector(args) {
3998
- return isFunction(last$1(args)) ? args.pop() : void 0;
3999
+ return isFunction$1(last$1(args)) ? args.pop() : void 0;
3999
4000
  }
4000
4001
  function popScheduler(args) {
4001
- return isScheduler(last$1(args)) ? args.pop() : void 0;
4002
+ return isScheduler$1(last$1(args)) ? args.pop() : void 0;
4002
4003
  }
4003
- var isArrayLike = function(x2) {
4004
+ var isArrayLike$1 = function(x2) {
4004
4005
  return x2 && typeof x2.length === "number" && typeof x2 !== "function";
4005
4006
  };
4006
- function isPromise(value) {
4007
- return isFunction(value === null || value === void 0 ? void 0 : value.then);
4007
+ function isPromise$1(value) {
4008
+ return isFunction$1(value === null || value === void 0 ? void 0 : value.then);
4008
4009
  }
4009
- function isInteropObservable(input) {
4010
- return isFunction(input[observable]);
4010
+ function isInteropObservable$1(input) {
4011
+ return isFunction$1(input[observable$1]);
4011
4012
  }
4012
- function isAsyncIterable(obj) {
4013
- return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
4013
+ function isAsyncIterable$1(obj) {
4014
+ return Symbol.asyncIterator && isFunction$1(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
4014
4015
  }
4015
- function createInvalidObservableTypeError(input) {
4016
+ function createInvalidObservableTypeError$1(input) {
4016
4017
  return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
4017
4018
  }
4018
- function getSymbolIterator() {
4019
+ function getSymbolIterator$1() {
4019
4020
  if (typeof Symbol !== "function" || !Symbol.iterator) {
4020
4021
  return "@@iterator";
4021
4022
  }
4022
4023
  return Symbol.iterator;
4023
4024
  }
4024
- var iterator$2 = getSymbolIterator();
4025
- function isIterable(input) {
4026
- return isFunction(input === null || input === void 0 ? void 0 : input[iterator$2]);
4025
+ var iterator$3 = getSymbolIterator$1();
4026
+ function isIterable$1(input) {
4027
+ return isFunction$1(input === null || input === void 0 ? void 0 : input[iterator$3]);
4027
4028
  }
4028
- function readableStreamLikeToAsyncGenerator(readableStream) {
4029
- return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
4030
- var reader, _a2, value, done;
4031
- return __generator(this, function(_b) {
4029
+ function readableStreamLikeToAsyncGenerator$1(readableStream) {
4030
+ return __asyncGenerator$1(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
4031
+ var reader, _a3, value, done;
4032
+ return __generator$1(this, function(_b) {
4032
4033
  switch (_b.label) {
4033
4034
  case 0:
4034
4035
  reader = readableStream.getReader();
@@ -4037,16 +4038,16 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
4037
4038
  _b.trys.push([1, , 9, 10]);
4038
4039
  _b.label = 2;
4039
4040
  case 2:
4040
- return [4, __await(reader.read())];
4041
+ return [4, __await$1(reader.read())];
4041
4042
  case 3:
4042
- _a2 = _b.sent(), value = _a2.value, done = _a2.done;
4043
+ _a3 = _b.sent(), value = _a3.value, done = _a3.done;
4043
4044
  if (!done)
4044
4045
  return [3, 5];
4045
- return [4, __await(void 0)];
4046
+ return [4, __await$1(void 0)];
4046
4047
  case 4:
4047
4048
  return [2, _b.sent()];
4048
4049
  case 5:
4049
- return [4, __await(value)];
4050
+ return [4, __await$1(value)];
4050
4051
  case 6:
4051
4052
  return [4, _b.sent()];
4052
4053
  case 7:
@@ -4063,54 +4064,54 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
4063
4064
  });
4064
4065
  });
4065
4066
  }
4066
- function isReadableStreamLike(obj) {
4067
- return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
4067
+ function isReadableStreamLike$1(obj) {
4068
+ return isFunction$1(obj === null || obj === void 0 ? void 0 : obj.getReader);
4068
4069
  }
4069
- function innerFrom(input) {
4070
- if (input instanceof Observable) {
4070
+ function innerFrom$1(input) {
4071
+ if (input instanceof Observable$1) {
4071
4072
  return input;
4072
4073
  }
4073
4074
  if (input != null) {
4074
- if (isInteropObservable(input)) {
4075
- return fromInteropObservable(input);
4075
+ if (isInteropObservable$1(input)) {
4076
+ return fromInteropObservable$1(input);
4076
4077
  }
4077
- if (isArrayLike(input)) {
4078
- return fromArrayLike(input);
4078
+ if (isArrayLike$1(input)) {
4079
+ return fromArrayLike$1(input);
4079
4080
  }
4080
- if (isPromise(input)) {
4081
- return fromPromise(input);
4081
+ if (isPromise$1(input)) {
4082
+ return fromPromise$1(input);
4082
4083
  }
4083
- if (isAsyncIterable(input)) {
4084
- return fromAsyncIterable(input);
4084
+ if (isAsyncIterable$1(input)) {
4085
+ return fromAsyncIterable$1(input);
4085
4086
  }
4086
- if (isIterable(input)) {
4087
- return fromIterable(input);
4087
+ if (isIterable$1(input)) {
4088
+ return fromIterable$1(input);
4088
4089
  }
4089
- if (isReadableStreamLike(input)) {
4090
- return fromReadableStreamLike(input);
4090
+ if (isReadableStreamLike$1(input)) {
4091
+ return fromReadableStreamLike$1(input);
4091
4092
  }
4092
4093
  }
4093
- throw createInvalidObservableTypeError(input);
4094
+ throw createInvalidObservableTypeError$1(input);
4094
4095
  }
4095
- function fromInteropObservable(obj) {
4096
- return new Observable(function(subscriber) {
4097
- var obs = obj[observable]();
4098
- if (isFunction(obs.subscribe)) {
4096
+ function fromInteropObservable$1(obj) {
4097
+ return new Observable$1(function(subscriber) {
4098
+ var obs = obj[observable$1]();
4099
+ if (isFunction$1(obs.subscribe)) {
4099
4100
  return obs.subscribe(subscriber);
4100
4101
  }
4101
4102
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
4102
4103
  });
4103
4104
  }
4104
- function fromArrayLike(array) {
4105
- return new Observable(function(subscriber) {
4105
+ function fromArrayLike$1(array) {
4106
+ return new Observable$1(function(subscriber) {
4106
4107
  for (var i2 = 0; i2 < array.length && !subscriber.closed; i2++) {
4107
4108
  subscriber.next(array[i2]);
4108
4109
  }
4109
4110
  subscriber.complete();
4110
4111
  });
4111
4112
  }
4112
- function fromPromise(promise) {
4113
- return new Observable(function(subscriber) {
4113
+ function fromPromise$1(promise) {
4114
+ return new Observable$1(function(subscriber) {
4114
4115
  promise.then(function(value) {
4115
4116
  if (!subscriber.closed) {
4116
4117
  subscriber.next(value);
@@ -4118,14 +4119,14 @@ function fromPromise(promise) {
4118
4119
  }
4119
4120
  }, function(err) {
4120
4121
  return subscriber.error(err);
4121
- }).then(null, reportUnhandledError);
4122
+ }).then(null, reportUnhandledError$1);
4122
4123
  });
4123
4124
  }
4124
- function fromIterable(iterable) {
4125
- return new Observable(function(subscriber) {
4126
- var e_1, _a2;
4125
+ function fromIterable$1(iterable) {
4126
+ return new Observable$1(function(subscriber) {
4127
+ var e_1, _a3;
4127
4128
  try {
4128
- for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
4129
+ for (var iterable_1 = __values$1(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
4129
4130
  var value = iterable_1_1.value;
4130
4131
  subscriber.next(value);
4131
4132
  if (subscriber.closed) {
@@ -4136,8 +4137,8 @@ function fromIterable(iterable) {
4136
4137
  e_1 = { error: e_1_1 };
4137
4138
  } finally {
4138
4139
  try {
4139
- if (iterable_1_1 && !iterable_1_1.done && (_a2 = iterable_1.return))
4140
- _a2.call(iterable_1);
4140
+ if (iterable_1_1 && !iterable_1_1.done && (_a3 = iterable_1.return))
4141
+ _a3.call(iterable_1);
4141
4142
  } finally {
4142
4143
  if (e_1)
4143
4144
  throw e_1.error;
@@ -4146,26 +4147,26 @@ function fromIterable(iterable) {
4146
4147
  subscriber.complete();
4147
4148
  });
4148
4149
  }
4149
- function fromAsyncIterable(asyncIterable) {
4150
- return new Observable(function(subscriber) {
4151
- process$1(asyncIterable, subscriber).catch(function(err) {
4150
+ function fromAsyncIterable$1(asyncIterable) {
4151
+ return new Observable$1(function(subscriber) {
4152
+ process$2(asyncIterable, subscriber).catch(function(err) {
4152
4153
  return subscriber.error(err);
4153
4154
  });
4154
4155
  });
4155
4156
  }
4156
- function fromReadableStreamLike(readableStream) {
4157
- return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
4157
+ function fromReadableStreamLike$1(readableStream) {
4158
+ return fromAsyncIterable$1(readableStreamLikeToAsyncGenerator$1(readableStream));
4158
4159
  }
4159
- function process$1(asyncIterable, subscriber) {
4160
+ function process$2(asyncIterable, subscriber) {
4160
4161
  var asyncIterable_1, asyncIterable_1_1;
4161
- var e_2, _a2;
4162
- return __awaiter(this, void 0, void 0, function() {
4162
+ var e_2, _a3;
4163
+ return __awaiter$1(this, void 0, void 0, function() {
4163
4164
  var value, e_2_1;
4164
- return __generator(this, function(_b) {
4165
+ return __generator$1(this, function(_b) {
4165
4166
  switch (_b.label) {
4166
4167
  case 0:
4167
4168
  _b.trys.push([0, 5, 6, 11]);
4168
- asyncIterable_1 = __asyncValues(asyncIterable);
4169
+ asyncIterable_1 = __asyncValues$1(asyncIterable);
4169
4170
  _b.label = 1;
4170
4171
  case 1:
4171
4172
  return [4, asyncIterable_1.next()];
@@ -4188,9 +4189,9 @@ function process$1(asyncIterable, subscriber) {
4188
4189
  return [3, 11];
4189
4190
  case 6:
4190
4191
  _b.trys.push([6, , 9, 10]);
4191
- if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a2 = asyncIterable_1.return)))
4192
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a3 = asyncIterable_1.return)))
4192
4193
  return [3, 8];
4193
- return [4, _a2.call(asyncIterable_1)];
4194
+ return [4, _a3.call(asyncIterable_1)];
4194
4195
  case 7:
4195
4196
  _b.sent();
4196
4197
  _b.label = 8;
@@ -4233,8 +4234,8 @@ function observeOn(scheduler2, delay) {
4233
4234
  if (delay === void 0) {
4234
4235
  delay = 0;
4235
4236
  }
4236
- return operate(function(source, subscriber) {
4237
- source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4237
+ return operate$1(function(source, subscriber) {
4238
+ source.subscribe(createOperatorSubscriber$1(subscriber, function(value) {
4238
4239
  return executeSchedule(subscriber, scheduler2, function() {
4239
4240
  return subscriber.next(value);
4240
4241
  }, delay);
@@ -4253,20 +4254,20 @@ function subscribeOn(scheduler2, delay) {
4253
4254
  if (delay === void 0) {
4254
4255
  delay = 0;
4255
4256
  }
4256
- return operate(function(source, subscriber) {
4257
+ return operate$1(function(source, subscriber) {
4257
4258
  subscriber.add(scheduler2.schedule(function() {
4258
4259
  return source.subscribe(subscriber);
4259
4260
  }, delay));
4260
4261
  });
4261
4262
  }
4262
4263
  function scheduleObservable(input, scheduler2) {
4263
- return innerFrom(input).pipe(subscribeOn(scheduler2), observeOn(scheduler2));
4264
+ return innerFrom$1(input).pipe(subscribeOn(scheduler2), observeOn(scheduler2));
4264
4265
  }
4265
4266
  function schedulePromise(input, scheduler2) {
4266
- return innerFrom(input).pipe(subscribeOn(scheduler2), observeOn(scheduler2));
4267
+ return innerFrom$1(input).pipe(subscribeOn(scheduler2), observeOn(scheduler2));
4267
4268
  }
4268
4269
  function scheduleArray(input, scheduler2) {
4269
- return new Observable(function(subscriber) {
4270
+ return new Observable$1(function(subscriber) {
4270
4271
  var i2 = 0;
4271
4272
  return scheduler2.schedule(function() {
4272
4273
  if (i2 === input.length) {
@@ -4281,16 +4282,16 @@ function scheduleArray(input, scheduler2) {
4281
4282
  });
4282
4283
  }
4283
4284
  function scheduleIterable(input, scheduler2) {
4284
- return new Observable(function(subscriber) {
4285
+ return new Observable$1(function(subscriber) {
4285
4286
  var iterator2;
4286
4287
  executeSchedule(subscriber, scheduler2, function() {
4287
- iterator2 = input[iterator$2]();
4288
+ iterator2 = input[iterator$3]();
4288
4289
  executeSchedule(subscriber, scheduler2, function() {
4289
- var _a2;
4290
+ var _a3;
4290
4291
  var value;
4291
4292
  var done;
4292
4293
  try {
4293
- _a2 = iterator2.next(), value = _a2.value, done = _a2.done;
4294
+ _a3 = iterator2.next(), value = _a3.value, done = _a3.done;
4294
4295
  } catch (err) {
4295
4296
  subscriber.error(err);
4296
4297
  return;
@@ -4303,7 +4304,7 @@ function scheduleIterable(input, scheduler2) {
4303
4304
  }, 0, true);
4304
4305
  });
4305
4306
  return function() {
4306
- return isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return();
4307
+ return isFunction$1(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return();
4307
4308
  };
4308
4309
  });
4309
4310
  }
@@ -4311,7 +4312,7 @@ function scheduleAsyncIterable(input, scheduler2) {
4311
4312
  if (!input) {
4312
4313
  throw new Error("Iterable cannot be null");
4313
4314
  }
4314
- return new Observable(function(subscriber) {
4315
+ return new Observable$1(function(subscriber) {
4315
4316
  executeSchedule(subscriber, scheduler2, function() {
4316
4317
  var iterator2 = input[Symbol.asyncIterator]();
4317
4318
  executeSchedule(subscriber, scheduler2, function() {
@@ -4327,33 +4328,33 @@ function scheduleAsyncIterable(input, scheduler2) {
4327
4328
  });
4328
4329
  }
4329
4330
  function scheduleReadableStreamLike(input, scheduler2) {
4330
- return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler2);
4331
+ return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator$1(input), scheduler2);
4331
4332
  }
4332
4333
  function scheduled(input, scheduler2) {
4333
4334
  if (input != null) {
4334
- if (isInteropObservable(input)) {
4335
+ if (isInteropObservable$1(input)) {
4335
4336
  return scheduleObservable(input, scheduler2);
4336
4337
  }
4337
- if (isArrayLike(input)) {
4338
+ if (isArrayLike$1(input)) {
4338
4339
  return scheduleArray(input, scheduler2);
4339
4340
  }
4340
- if (isPromise(input)) {
4341
+ if (isPromise$1(input)) {
4341
4342
  return schedulePromise(input, scheduler2);
4342
4343
  }
4343
- if (isAsyncIterable(input)) {
4344
+ if (isAsyncIterable$1(input)) {
4344
4345
  return scheduleAsyncIterable(input, scheduler2);
4345
4346
  }
4346
- if (isIterable(input)) {
4347
+ if (isIterable$1(input)) {
4347
4348
  return scheduleIterable(input, scheduler2);
4348
4349
  }
4349
- if (isReadableStreamLike(input)) {
4350
+ if (isReadableStreamLike$1(input)) {
4350
4351
  return scheduleReadableStreamLike(input, scheduler2);
4351
4352
  }
4352
4353
  }
4353
- throw createInvalidObservableTypeError(input);
4354
+ throw createInvalidObservableTypeError$1(input);
4354
4355
  }
4355
4356
  function from(input, scheduler2) {
4356
- return scheduler2 ? scheduled(input, scheduler2) : innerFrom(input);
4357
+ return scheduler2 ? scheduled(input, scheduler2) : innerFrom$1(input);
4357
4358
  }
4358
4359
  function of$1() {
4359
4360
  var args = [];
@@ -4363,14 +4364,14 @@ function of$1() {
4363
4364
  var scheduler2 = popScheduler(args);
4364
4365
  return from(args, scheduler2);
4365
4366
  }
4366
- var EmptyError = createErrorClass(function(_super) {
4367
+ var EmptyError$1 = createErrorClass$1(function(_super) {
4367
4368
  return function EmptyErrorImpl() {
4368
4369
  _super(this);
4369
4370
  this.name = "EmptyError";
4370
4371
  this.message = "no elements in sequence";
4371
4372
  };
4372
4373
  });
4373
- function lastValueFrom(source, config2) {
4374
+ function lastValueFrom$1(source, config2) {
4374
4375
  var hasConfig = typeof config2 === "object";
4375
4376
  return new Promise(function(resolve, reject) {
4376
4377
  var _hasValue = false;
@@ -4387,55 +4388,35 @@ function lastValueFrom(source, config2) {
4387
4388
  } else if (hasConfig) {
4388
4389
  resolve(config2.defaultValue);
4389
4390
  } else {
4390
- reject(new EmptyError());
4391
+ reject(new EmptyError$1());
4391
4392
  }
4392
4393
  }
4393
4394
  });
4394
4395
  });
4395
4396
  }
4396
- function firstValueFrom(source, config2) {
4397
- var hasConfig = typeof config2 === "object";
4398
- return new Promise(function(resolve, reject) {
4399
- var subscriber = new SafeSubscriber({
4400
- next: function(value) {
4401
- resolve(value);
4402
- subscriber.unsubscribe();
4403
- },
4404
- error: reject,
4405
- complete: function() {
4406
- if (hasConfig) {
4407
- resolve(config2.defaultValue);
4408
- } else {
4409
- reject(new EmptyError());
4410
- }
4411
- }
4412
- });
4413
- source.subscribe(subscriber);
4414
- });
4415
- }
4416
- function isValidDate(value) {
4397
+ function isValidDate$1(value) {
4417
4398
  return value instanceof Date && !isNaN(value);
4418
4399
  }
4419
- function map$3(project, thisArg) {
4420
- return operate(function(source, subscriber) {
4400
+ function map$4(project, thisArg) {
4401
+ return operate$1(function(source, subscriber) {
4421
4402
  var index2 = 0;
4422
- source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4403
+ source.subscribe(createOperatorSubscriber$1(subscriber, function(value) {
4423
4404
  subscriber.next(project.call(thisArg, value, index2++));
4424
4405
  }));
4425
4406
  });
4426
4407
  }
4427
4408
  var isArray$3 = Array.isArray;
4428
4409
  function callOrApply(fn, args) {
4429
- return isArray$3(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
4410
+ return isArray$3(args) ? fn.apply(void 0, __spreadArray$1([], __read$1(args))) : fn(args);
4430
4411
  }
4431
4412
  function mapOneOrManyArgs(fn) {
4432
- return map$3(function(args) {
4413
+ return map$4(function(args) {
4433
4414
  return callOrApply(fn, args);
4434
4415
  });
4435
4416
  }
4436
4417
  function combineLatestInit(observables, scheduler2, valueTransform) {
4437
4418
  if (valueTransform === void 0) {
4438
- valueTransform = identity;
4419
+ valueTransform = identity$1;
4439
4420
  }
4440
4421
  return function(subscriber) {
4441
4422
  maybeSchedule(scheduler2, function() {
@@ -4447,7 +4428,7 @@ function combineLatestInit(observables, scheduler2, valueTransform) {
4447
4428
  maybeSchedule(scheduler2, function() {
4448
4429
  var source = from(observables[i3], scheduler2);
4449
4430
  var hasFirstValue = false;
4450
- source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4431
+ source.subscribe(createOperatorSubscriber$1(subscriber, function(value) {
4451
4432
  values[i3] = value;
4452
4433
  if (!hasFirstValue) {
4453
4434
  hasFirstValue = true;
@@ -4493,7 +4474,7 @@ function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, e
4493
4474
  expand && subscriber.next(value);
4494
4475
  active++;
4495
4476
  var innerComplete = false;
4496
- innerFrom(project(value, index2++)).subscribe(createOperatorSubscriber(subscriber, function(innerValue) {
4477
+ innerFrom$1(project(value, index2++)).subscribe(createOperatorSubscriber$1(subscriber, function(innerValue) {
4497
4478
  onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
4498
4479
  if (expand) {
4499
4480
  outerNext(innerValue);
@@ -4526,7 +4507,7 @@ function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, e
4526
4507
  }
4527
4508
  }));
4528
4509
  };
4529
- source.subscribe(createOperatorSubscriber(subscriber, outerNext, function() {
4510
+ source.subscribe(createOperatorSubscriber$1(subscriber, outerNext, function() {
4530
4511
  isComplete = true;
4531
4512
  checkComplete();
4532
4513
  }));
@@ -4538,92 +4519,36 @@ function mergeMap(project, resultSelector, concurrent) {
4538
4519
  if (concurrent === void 0) {
4539
4520
  concurrent = Infinity;
4540
4521
  }
4541
- if (isFunction(resultSelector)) {
4522
+ if (isFunction$1(resultSelector)) {
4542
4523
  return mergeMap(function(a2, i2) {
4543
- return map$3(function(b2, ii2) {
4524
+ return map$4(function(b2, ii2) {
4544
4525
  return resultSelector(a2, b2, i2, ii2);
4545
- })(innerFrom(project(a2, i2)));
4526
+ })(innerFrom$1(project(a2, i2)));
4546
4527
  }, concurrent);
4547
4528
  } else if (typeof resultSelector === "number") {
4548
4529
  concurrent = resultSelector;
4549
4530
  }
4550
- return operate(function(source, subscriber) {
4531
+ return operate$1(function(source, subscriber) {
4551
4532
  return mergeInternals(source, subscriber, project, concurrent);
4552
4533
  });
4553
4534
  }
4554
- var nodeEventEmitterMethods = ["addListener", "removeListener"];
4555
- var eventTargetMethods = ["addEventListener", "removeEventListener"];
4556
- var jqueryMethods = ["on", "off"];
4557
- function fromEvent(target2, eventName, options, resultSelector) {
4558
- if (isFunction(options)) {
4559
- resultSelector = options;
4560
- options = void 0;
4561
- }
4562
- if (resultSelector) {
4563
- return fromEvent(target2, eventName, options).pipe(mapOneOrManyArgs(resultSelector));
4564
- }
4565
- var _a2 = __read(isEventTarget(target2) ? eventTargetMethods.map(function(methodName) {
4566
- return function(handler2) {
4567
- return target2[methodName](eventName, handler2, options);
4568
- };
4569
- }) : isNodeStyleEventEmitter(target2) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target2, eventName)) : isJQueryStyleEventEmitter(target2) ? jqueryMethods.map(toCommonHandlerRegistry(target2, eventName)) : [], 2), add = _a2[0], remove = _a2[1];
4570
- if (!add) {
4571
- if (isArrayLike(target2)) {
4572
- return mergeMap(function(subTarget) {
4573
- return fromEvent(subTarget, eventName, options);
4574
- })(innerFrom(target2));
4575
- }
4576
- }
4577
- if (!add) {
4578
- throw new TypeError("Invalid event target");
4579
- }
4580
- return new Observable(function(subscriber) {
4581
- var handler2 = function() {
4582
- var args = [];
4583
- for (var _i = 0; _i < arguments.length; _i++) {
4584
- args[_i] = arguments[_i];
4585
- }
4586
- return subscriber.next(1 < args.length ? args : args[0]);
4587
- };
4588
- add(handler2);
4589
- return function() {
4590
- return remove(handler2);
4591
- };
4592
- });
4593
- }
4594
- function toCommonHandlerRegistry(target2, eventName) {
4595
- return function(methodName) {
4596
- return function(handler2) {
4597
- return target2[methodName](eventName, handler2);
4598
- };
4599
- };
4600
- }
4601
- function isNodeStyleEventEmitter(target2) {
4602
- return isFunction(target2.addListener) && isFunction(target2.removeListener);
4603
- }
4604
- function isJQueryStyleEventEmitter(target2) {
4605
- return isFunction(target2.on) && isFunction(target2.off);
4606
- }
4607
- function isEventTarget(target2) {
4608
- return isFunction(target2.addEventListener) && isFunction(target2.removeEventListener);
4609
- }
4610
- function timer(dueTime, intervalOrScheduler, scheduler2) {
4535
+ function timer$1(dueTime, intervalOrScheduler, scheduler2) {
4611
4536
  if (dueTime === void 0) {
4612
4537
  dueTime = 0;
4613
4538
  }
4614
4539
  if (scheduler2 === void 0) {
4615
- scheduler2 = async;
4540
+ scheduler2 = async$1;
4616
4541
  }
4617
4542
  var intervalDuration = -1;
4618
4543
  if (intervalOrScheduler != null) {
4619
- if (isScheduler(intervalOrScheduler)) {
4544
+ if (isScheduler$1(intervalOrScheduler)) {
4620
4545
  scheduler2 = intervalOrScheduler;
4621
4546
  } else {
4622
4547
  intervalDuration = intervalOrScheduler;
4623
4548
  }
4624
4549
  }
4625
- return new Observable(function(subscriber) {
4626
- var due = isValidDate(dueTime) ? +dueTime - scheduler2.now() : dueTime;
4550
+ return new Observable$1(function(subscriber) {
4551
+ var due = isValidDate$1(dueTime) ? +dueTime - scheduler2.now() : dueTime;
4627
4552
  if (due < 0) {
4628
4553
  due = 0;
4629
4554
  }
@@ -4640,52 +4565,40 @@ function timer(dueTime, intervalOrScheduler, scheduler2) {
4640
4565
  }, due);
4641
4566
  });
4642
4567
  }
4643
- function interval(period, scheduler2) {
4644
- if (period === void 0) {
4645
- period = 0;
4646
- }
4647
- if (scheduler2 === void 0) {
4648
- scheduler2 = asyncScheduler;
4649
- }
4650
- if (period < 0) {
4651
- period = 0;
4652
- }
4653
- return timer(period, period, scheduler2);
4654
- }
4655
4568
  var isArray$2 = Array.isArray;
4656
4569
  function argsOrArgArray(args) {
4657
4570
  return args.length === 1 && isArray$2(args[0]) ? args[0] : args;
4658
4571
  }
4659
- function filter(predicate, thisArg) {
4660
- return operate(function(source, subscriber) {
4572
+ function filter$1(predicate, thisArg) {
4573
+ return operate$1(function(source, subscriber) {
4661
4574
  var index2 = 0;
4662
- source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4575
+ source.subscribe(createOperatorSubscriber$1(subscriber, function(value) {
4663
4576
  return predicate.call(thisArg, value, index2++) && subscriber.next(value);
4664
4577
  }));
4665
4578
  });
4666
4579
  }
4667
4580
  function bufferTime(bufferTimeSpan) {
4668
- var _a2, _b;
4581
+ var _a3, _b;
4669
4582
  var otherArgs = [];
4670
4583
  for (var _i = 1; _i < arguments.length; _i++) {
4671
4584
  otherArgs[_i - 1] = arguments[_i];
4672
4585
  }
4673
- var scheduler2 = (_a2 = popScheduler(otherArgs)) !== null && _a2 !== void 0 ? _a2 : asyncScheduler;
4586
+ var scheduler2 = (_a3 = popScheduler(otherArgs)) !== null && _a3 !== void 0 ? _a3 : asyncScheduler$1;
4674
4587
  var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
4675
4588
  var maxBufferSize = otherArgs[1] || Infinity;
4676
- return operate(function(source, subscriber) {
4589
+ return operate$1(function(source, subscriber) {
4677
4590
  var bufferRecords = [];
4678
4591
  var restartOnEmit = false;
4679
4592
  var emit = function(record) {
4680
4593
  var buffer2 = record.buffer, subs = record.subs;
4681
4594
  subs.unsubscribe();
4682
- arrRemove(bufferRecords, record);
4595
+ arrRemove$1(bufferRecords, record);
4683
4596
  subscriber.next(buffer2);
4684
4597
  restartOnEmit && startBuffer();
4685
4598
  };
4686
4599
  var startBuffer = function() {
4687
4600
  if (bufferRecords) {
4688
- var subs = new Subscription();
4601
+ var subs = new Subscription$1();
4689
4602
  subscriber.add(subs);
4690
4603
  var buffer2 = [];
4691
4604
  var record_1 = {
@@ -4704,11 +4617,11 @@ function bufferTime(bufferTimeSpan) {
4704
4617
  restartOnEmit = true;
4705
4618
  }
4706
4619
  startBuffer();
4707
- var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value) {
4708
- var e_1, _a3;
4620
+ var bufferTimeSubscriber = createOperatorSubscriber$1(subscriber, function(value) {
4621
+ var e_1, _a4;
4709
4622
  var recordsCopy = bufferRecords.slice();
4710
4623
  try {
4711
- for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
4624
+ for (var recordsCopy_1 = __values$1(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
4712
4625
  var record = recordsCopy_1_1.value;
4713
4626
  var buffer2 = record.buffer;
4714
4627
  buffer2.push(value);
@@ -4718,8 +4631,8 @@ function bufferTime(bufferTimeSpan) {
4718
4631
  e_1 = { error: e_1_1 };
4719
4632
  } finally {
4720
4633
  try {
4721
- if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a3 = recordsCopy_1.return))
4722
- _a3.call(recordsCopy_1);
4634
+ if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a4 = recordsCopy_1.return))
4635
+ _a4.call(recordsCopy_1);
4723
4636
  } finally {
4724
4637
  if (e_1)
4725
4638
  throw e_1.error;
@@ -4744,8 +4657,8 @@ function combineLatest() {
4744
4657
  args[_i] = arguments[_i];
4745
4658
  }
4746
4659
  var resultSelector = popResultSelector(args);
4747
- return resultSelector ? pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs(resultSelector)) : operate(function(source, subscriber) {
4748
- combineLatestInit(__spreadArray([source], __read(argsOrArgArray(args))))(subscriber);
4660
+ return resultSelector ? pipe(combineLatest.apply(void 0, __spreadArray$1([], __read$1(args))), mapOneOrManyArgs(resultSelector)) : operate$1(function(source, subscriber) {
4661
+ combineLatestInit(__spreadArray$1([source], __read$1(argsOrArgArray(args))))(subscriber);
4749
4662
  });
4750
4663
  }
4751
4664
  function combineLatestWith() {
@@ -4753,17 +4666,17 @@ function combineLatestWith() {
4753
4666
  for (var _i = 0; _i < arguments.length; _i++) {
4754
4667
  otherSources[_i] = arguments[_i];
4755
4668
  }
4756
- return combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));
4669
+ return combineLatest.apply(void 0, __spreadArray$1([], __read$1(otherSources)));
4757
4670
  }
4758
4671
  function concatMap(project, resultSelector) {
4759
- return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);
4672
+ return isFunction$1(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);
4760
4673
  }
4761
- function take(count) {
4674
+ function take$1(count) {
4762
4675
  return count <= 0 ? function() {
4763
- return EMPTY$1;
4764
- } : operate(function(source, subscriber) {
4676
+ return EMPTY$2;
4677
+ } : operate$1(function(source, subscriber) {
4765
4678
  var seen2 = 0;
4766
- source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4679
+ source.subscribe(createOperatorSubscriber$1(subscriber, function(value) {
4767
4680
  if (++seen2 <= count) {
4768
4681
  subscriber.next(value);
4769
4682
  if (count <= seen2) {
@@ -4774,10 +4687,10 @@ function take(count) {
4774
4687
  });
4775
4688
  }
4776
4689
  function pairwise() {
4777
- return operate(function(source, subscriber) {
4690
+ return operate$1(function(source, subscriber) {
4778
4691
  var prev;
4779
4692
  var hasPrev = false;
4780
- source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4693
+ source.subscribe(createOperatorSubscriber$1(subscriber, function(value) {
4781
4694
  var p2 = prev;
4782
4695
  prev = value;
4783
4696
  hasPrev && subscriber.next([p2, value]);
@@ -4786,33 +4699,33 @@ function pairwise() {
4786
4699
  });
4787
4700
  }
4788
4701
  function tap(observerOrNext, error2, complete) {
4789
- var tapObserver = isFunction(observerOrNext) || error2 || complete ? { next: observerOrNext, error: error2, complete } : observerOrNext;
4790
- return tapObserver ? operate(function(source, subscriber) {
4791
- var _a2;
4792
- (_a2 = tapObserver.subscribe) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
4702
+ var tapObserver = isFunction$1(observerOrNext) || error2 || complete ? { next: observerOrNext, error: error2, complete } : observerOrNext;
4703
+ return tapObserver ? operate$1(function(source, subscriber) {
4704
+ var _a3;
4705
+ (_a3 = tapObserver.subscribe) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver);
4793
4706
  var isUnsub = true;
4794
- source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4795
- var _a3;
4796
- (_a3 = tapObserver.next) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, value);
4707
+ source.subscribe(createOperatorSubscriber$1(subscriber, function(value) {
4708
+ var _a4;
4709
+ (_a4 = tapObserver.next) === null || _a4 === void 0 ? void 0 : _a4.call(tapObserver, value);
4797
4710
  subscriber.next(value);
4798
4711
  }, function() {
4799
- var _a3;
4712
+ var _a4;
4800
4713
  isUnsub = false;
4801
- (_a3 = tapObserver.complete) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver);
4714
+ (_a4 = tapObserver.complete) === null || _a4 === void 0 ? void 0 : _a4.call(tapObserver);
4802
4715
  subscriber.complete();
4803
4716
  }, function(err) {
4804
- var _a3;
4717
+ var _a4;
4805
4718
  isUnsub = false;
4806
- (_a3 = tapObserver.error) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, err);
4719
+ (_a4 = tapObserver.error) === null || _a4 === void 0 ? void 0 : _a4.call(tapObserver, err);
4807
4720
  subscriber.error(err);
4808
4721
  }, function() {
4809
- var _a3, _b;
4722
+ var _a4, _b;
4810
4723
  if (isUnsub) {
4811
- (_a3 = tapObserver.unsubscribe) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver);
4724
+ (_a4 = tapObserver.unsubscribe) === null || _a4 === void 0 ? void 0 : _a4.call(tapObserver);
4812
4725
  }
4813
4726
  (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
4814
4727
  }));
4815
- }) : identity;
4728
+ }) : identity$1;
4816
4729
  }
4817
4730
  var react = { exports: {} };
4818
4731
  var react_production_min = {};
@@ -13138,8 +13051,8 @@ var MapShim = function() {
13138
13051
  if (ctx2 === void 0) {
13139
13052
  ctx2 = null;
13140
13053
  }
13141
- for (var _i = 0, _a2 = this.__entries__; _i < _a2.length; _i++) {
13142
- var entry = _a2[_i];
13054
+ for (var _i = 0, _a3 = this.__entries__; _i < _a3.length; _i++) {
13055
+ var entry = _a3[_i];
13143
13056
  callback.call(ctx2, entry[1], entry[0]);
13144
13057
  }
13145
13058
  };
@@ -13284,8 +13197,8 @@ var ResizeObserverController = (
13284
13197
  this.mutationEventsAdded_ = false;
13285
13198
  this.connected_ = false;
13286
13199
  };
13287
- ResizeObserverController2.prototype.onTransitionEnd_ = function(_a2) {
13288
- var _b = _a2.propertyName, propertyName = _b === void 0 ? "" : _b;
13200
+ ResizeObserverController2.prototype.onTransitionEnd_ = function(_a3) {
13201
+ var _b = _a3.propertyName, propertyName = _b === void 0 ? "" : _b;
13289
13202
  var isReflowProperty = transitionKeys.some(function(key2) {
13290
13203
  return !!~propertyName.indexOf(key2);
13291
13204
  });
@@ -13304,8 +13217,8 @@ var ResizeObserverController = (
13304
13217
  }()
13305
13218
  );
13306
13219
  var defineConfigurable = function(target2, props) {
13307
- for (var _i = 0, _a2 = Object.keys(props); _i < _a2.length; _i++) {
13308
- var key2 = _a2[_i];
13220
+ for (var _i = 0, _a3 = Object.keys(props); _i < _a3.length; _i++) {
13221
+ var key2 = _a3[_i];
13309
13222
  Object.defineProperty(target2, key2, {
13310
13223
  value: props[key2],
13311
13224
  enumerable: false,
@@ -13399,8 +13312,8 @@ function getContentRect(target2) {
13399
13312
  }
13400
13313
  return getHTMLElementContentRect(target2);
13401
13314
  }
13402
- function createReadOnlyRect(_a2) {
13403
- var x2 = _a2.x, y2 = _a2.y, width = _a2.width, height = _a2.height;
13315
+ function createReadOnlyRect(_a3) {
13316
+ var x2 = _a3.x, y2 = _a3.y, width = _a3.width, height = _a3.height;
13404
13317
  var Constr = typeof DOMRectReadOnly !== "undefined" ? DOMRectReadOnly : Object;
13405
13318
  var rect = Object.create(Constr.prototype);
13406
13319
  defineConfigurable(rect, {
@@ -13559,8 +13472,8 @@ var ResizeObserver = (
13559
13472
  "disconnect"
13560
13473
  ].forEach(function(method) {
13561
13474
  ResizeObserver.prototype[method] = function() {
13562
- var _a2;
13563
- return (_a2 = observers.get(this))[method].apply(_a2, arguments);
13475
+ var _a3;
13476
+ return (_a3 = observers.get(this))[method].apply(_a3, arguments);
13564
13477
  };
13565
13478
  });
13566
13479
  var index$2 = function() {
@@ -13844,6 +13757,9 @@ var factoryWithThrowingShims = function() {
13844
13757
  }
13845
13758
  var propTypesExports = propTypes.exports;
13846
13759
  const PropTypes$1 = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
13760
+ function commonjsRequire(path2) {
13761
+ throw new Error('Could not dynamically require "' + path2 + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
13762
+ }
13847
13763
  const enUS$2 = {
13848
13764
  // Options.jsx
13849
13765
  items_per_page: "/ page",
@@ -15629,8 +15545,8 @@ for (var i$1 = 0; i$1 < DOMIterables.length; i$1++) {
15629
15545
  }
15630
15546
  var _wksExt = {};
15631
15547
  _wksExt.f = _wksExports;
15632
- var iterator$1 = _wksExt.f("iterator");
15633
- var iterator = { "default": iterator$1, __esModule: true };
15548
+ var iterator$2 = _wksExt.f("iterator");
15549
+ var iterator$1 = { "default": iterator$2, __esModule: true };
15634
15550
  var _meta = { exports: {} };
15635
15551
  var META$1 = _uid("meta");
15636
15552
  var isObject$1 = _isObject;
@@ -16009,7 +15925,7 @@ _wksDefine("observable");
16009
15925
  var symbol$1 = _coreExports.Symbol;
16010
15926
  var symbol = { "default": symbol$1, __esModule: true };
16011
15927
  _typeof$w.__esModule = true;
16012
- var _iterator = iterator;
15928
+ var _iterator = iterator$1;
16013
15929
  var _iterator2 = _interopRequireDefault$7(_iterator);
16014
15930
  var _symbol = symbol;
16015
15931
  var _symbol2 = _interopRequireDefault$7(_symbol);
@@ -16573,7 +16489,7 @@ function getChildrenFromProps$1(props) {
16573
16489
  }
16574
16490
  return children;
16575
16491
  }
16576
- function noop$5() {
16492
+ function noop$6() {
16577
16493
  }
16578
16494
  var Animate$2 = function(_React$Component) {
16579
16495
  _default$br(Animate2, _React$Component);
@@ -16795,10 +16711,10 @@ Animate$2.defaultProps = {
16795
16711
  transitionEnter: true,
16796
16712
  transitionLeave: true,
16797
16713
  transitionAppear: false,
16798
- onEnd: noop$5,
16799
- onEnter: noop$5,
16800
- onLeave: noop$5,
16801
- onAppear: noop$5
16714
+ onEnd: noop$6,
16715
+ onEnter: noop$6,
16716
+ onLeave: noop$6,
16717
+ onAppear: noop$6
16802
16718
  };
16803
16719
  var _initialiseProps$3 = function _initialiseProps() {
16804
16720
  var _this5 = this;
@@ -17948,7 +17864,7 @@ function _typeof$u(obj) {
17948
17864
  }
17949
17865
  return _typeof$u(obj);
17950
17866
  }
17951
- function noop$4() {
17867
+ function noop$5() {
17952
17868
  }
17953
17869
  function getKeyFromChildrenIndex(child, menuEventKey, index2) {
17954
17870
  var prefix = menuEventKey || "";
@@ -19957,7 +19873,7 @@ function getChildrenFromProps(props) {
19957
19873
  }
19958
19874
  return children;
19959
19875
  }
19960
- function noop$3() {
19876
+ function noop$4() {
19961
19877
  }
19962
19878
  var Animate = function(_React$Component) {
19963
19879
  _default$br(Animate2, _React$Component);
@@ -20179,10 +20095,10 @@ Animate.defaultProps = {
20179
20095
  transitionEnter: true,
20180
20096
  transitionLeave: true,
20181
20097
  transitionAppear: false,
20182
- onEnd: noop$3,
20183
- onEnter: noop$3,
20184
- onLeave: noop$3,
20185
- onAppear: noop$3
20098
+ onEnd: noop$4,
20099
+ onEnter: noop$4,
20100
+ onLeave: noop$4,
20101
+ onAppear: noop$4
20186
20102
  };
20187
20103
  var _initialiseProps$2 = function _initialiseProps2() {
20188
20104
  var _this5 = this;
@@ -20589,7 +20505,7 @@ var _initialiseProps$1 = function _initialiseProps3() {
20589
20505
  return _this3.getTargetElement;
20590
20506
  };
20591
20507
  };
20592
- function noop$2() {
20508
+ function noop$3() {
20593
20509
  }
20594
20510
  function returnEmptyString() {
20595
20511
  return "";
@@ -20924,9 +20840,9 @@ Trigger.defaultProps = {
20924
20840
  prefixCls: "rc-trigger-popup",
20925
20841
  getPopupClassNameFromAlign: returnEmptyString,
20926
20842
  getDocument: returnDocument,
20927
- onPopupVisibleChange: noop$2,
20928
- afterPopupVisibleChange: noop$2,
20929
- onPopupAlign: noop$2,
20843
+ onPopupVisibleChange: noop$3,
20844
+ afterPopupVisibleChange: noop$3,
20845
+ onPopupAlign: noop$3,
20930
20846
  popupClassName: "",
20931
20847
  mouseEnterDelay: 0,
20932
20848
  mouseLeaveDelay: 0.1,
@@ -21974,12 +21890,12 @@ var SubMenu = /* @__PURE__ */ function(_React$Component) {
21974
21890
  return SubMenu2;
21975
21891
  }(reactExports.Component);
21976
21892
  SubMenu.defaultProps = {
21977
- onMouseEnter: noop$4,
21978
- onMouseLeave: noop$4,
21979
- onTitleMouseEnter: noop$4,
21980
- onTitleMouseLeave: noop$4,
21981
- onTitleClick: noop$4,
21982
- manualRef: noop$4,
21893
+ onMouseEnter: noop$5,
21894
+ onMouseLeave: noop$5,
21895
+ onTitleMouseEnter: noop$5,
21896
+ onTitleMouseLeave: noop$5,
21897
+ onTitleClick: noop$5,
21898
+ manualRef: noop$5,
21983
21899
  mode: "vertical",
21984
21900
  title: ""
21985
21901
  };
@@ -22676,7 +22592,7 @@ var SubPopupMenu = /* @__PURE__ */ function(_React$Component) {
22676
22592
  active: !childProps.disabled && isActive,
22677
22593
  multiple: props2.multiple,
22678
22594
  onClick: function onClick(e2) {
22679
- (childProps.onClick || noop$4)(e2);
22595
+ (childProps.onClick || noop$5)(e2);
22680
22596
  _this.onClick(e2);
22681
22597
  },
22682
22598
  onItemHover: _this.onItemHover,
@@ -22790,7 +22706,7 @@ SubPopupMenu.defaultProps = {
22790
22706
  visible: true,
22791
22707
  focusable: true,
22792
22708
  style: {},
22793
- manualRef: noop$4
22709
+ manualRef: noop$5
22794
22710
  };
22795
22711
  var connected$1 = connect()(SubPopupMenu);
22796
22712
  function _typeof$n(obj) {
@@ -23093,10 +23009,10 @@ var Menu = /* @__PURE__ */ function(_React$Component) {
23093
23009
  }(reactExports.Component);
23094
23010
  Menu.defaultProps = {
23095
23011
  selectable: true,
23096
- onClick: noop$4,
23097
- onSelect: noop$4,
23098
- onOpenChange: noop$4,
23099
- onDeselect: noop$4,
23012
+ onClick: noop$5,
23013
+ onSelect: noop$5,
23014
+ onOpenChange: noop$5,
23015
+ onDeselect: noop$5,
23100
23016
  defaultSelectedKeys: [],
23101
23017
  defaultOpenKeys: [],
23102
23018
  subMenuOpenDelay: 0.1,
@@ -23828,10 +23744,10 @@ var MenuItem = /* @__PURE__ */ function(_React$Component) {
23828
23744
  }(reactExports.Component);
23829
23745
  MenuItem.isMenuItem = true;
23830
23746
  MenuItem.defaultProps = {
23831
- onSelect: noop$4,
23832
- onMouseEnter: noop$4,
23833
- onMouseLeave: noop$4,
23834
- manualRef: noop$4
23747
+ onSelect: noop$5,
23748
+ onMouseEnter: noop$5,
23749
+ onMouseLeave: noop$5,
23750
+ manualRef: noop$5
23835
23751
  };
23836
23752
  var connected = connect(function(_ref, _ref2) {
23837
23753
  var activeKey = _ref.activeKey, selectedKeys = _ref.selectedKeys;
@@ -24576,7 +24492,7 @@ var SelectTrigger = /* @__PURE__ */ function(_React$Component) {
24576
24492
  key: "render",
24577
24493
  value: function render2() {
24578
24494
  var _popupClassName;
24579
- var _a2 = this.props, onPopupFocus = _a2.onPopupFocus, empty2 = _a2.empty, props = __rest$e(_a2, ["onPopupFocus", "empty"]);
24495
+ var _a3 = this.props, onPopupFocus = _a3.onPopupFocus, empty2 = _a3.empty, props = __rest$e(_a3, ["onPopupFocus", "empty"]);
24580
24496
  var multiple = props.multiple, visible = props.visible, inputValue = props.inputValue, dropdownAlign = props.dropdownAlign, disabled = props.disabled, showSearch = props.showSearch, dropdownClassName = props.dropdownClassName, dropdownStyle = props.dropdownStyle, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth;
24581
24497
  var dropdownPrefixCls = this.getDropdownPrefixCls();
24582
24498
  var popupClassName = (_popupClassName = {}, _defineProperty$g(_popupClassName, dropdownClassName, !!dropdownClassName), _defineProperty$g(_popupClassName, "".concat(dropdownPrefixCls, "--").concat(multiple ? "multiple" : "single"), 1), _defineProperty$g(_popupClassName, "".concat(dropdownPrefixCls, "--empty"), empty2), _popupClassName);
@@ -24728,7 +24644,7 @@ function isHidden$1(node2) {
24728
24644
  return !node2 || node2.offsetParent === null;
24729
24645
  }
24730
24646
  var SELECT_EMPTY_VALUE_KEY = "RC_SELECT_EMPTY_VALUE_KEY";
24731
- var noop$1 = function noop() {
24647
+ var noop$2 = function noop() {
24732
24648
  return null;
24733
24649
  };
24734
24650
  function chaining() {
@@ -25902,13 +25818,13 @@ Select$1.defaultProps = {
25902
25818
  showSearch: true,
25903
25819
  allowClear: false,
25904
25820
  placeholder: "",
25905
- onChange: noop$1,
25906
- onFocus: noop$1,
25907
- onBlur: noop$1,
25908
- onSelect: noop$1,
25909
- onSearch: noop$1,
25910
- onDeselect: noop$1,
25911
- onInputKeyDown: noop$1,
25821
+ onChange: noop$2,
25822
+ onFocus: noop$2,
25823
+ onBlur: noop$2,
25824
+ onSelect: noop$2,
25825
+ onSearch: noop$2,
25826
+ onDeselect: noop$2,
25827
+ onInputKeyDown: noop$2,
25912
25828
  dropdownMatchSelectWidth: true,
25913
25829
  dropdownStyle: {},
25914
25830
  dropdownMenuStyle: {},
@@ -45872,7 +45788,7 @@ var Button = /* @__PURE__ */ function(_React$Component) {
45872
45788
  _this.renderButton = function(_ref) {
45873
45789
  var _classNames;
45874
45790
  var getPrefixCls2 = _ref.getPrefixCls, autoInsertSpaceInButton = _ref.autoInsertSpaceInButton;
45875
- var _a2 = _this.props, customizePrefixCls = _a2.prefixCls, type = _a2.type, shape = _a2.shape, size = _a2.size, className = _a2.className, children = _a2.children, icon = _a2.icon, ghost = _a2.ghost, block = _a2.block, rest = __rest$b(_a2, ["prefixCls", "type", "shape", "size", "className", "children", "icon", "ghost", "block"]);
45791
+ var _a3 = _this.props, customizePrefixCls = _a3.prefixCls, type = _a3.type, shape = _a3.shape, size = _a3.size, className = _a3.className, children = _a3.children, icon = _a3.icon, ghost = _a3.ghost, block = _a3.block, rest = __rest$b(_a3, ["prefixCls", "type", "shape", "size", "className", "children", "icon", "ghost", "block"]);
45876
45792
  var _this$state = _this.state, loading = _this$state.loading, hasTwoCNChar = _this$state.hasTwoCNChar;
45877
45793
  var prefixCls = getPrefixCls2("btn", customizePrefixCls);
45878
45794
  var autoInsertSpace = autoInsertSpaceInButton !== false;
@@ -46303,7 +46219,7 @@ var Search = /* @__PURE__ */ function(_React$Component) {
46303
46219
  };
46304
46220
  _this.renderSearch = function(_ref) {
46305
46221
  var getPrefixCls2 = _ref.getPrefixCls;
46306
- var _a2 = _this.props, customizePrefixCls = _a2.prefixCls, customizeInputPrefixCls = _a2.inputPrefixCls, size = _a2.size, enterButton = _a2.enterButton, className = _a2.className, restProps = __rest$9(_a2, ["prefixCls", "inputPrefixCls", "size", "enterButton", "className"]);
46222
+ var _a3 = _this.props, customizePrefixCls = _a3.prefixCls, customizeInputPrefixCls = _a3.inputPrefixCls, size = _a3.size, enterButton = _a3.enterButton, className = _a3.className, restProps = __rest$9(_a3, ["prefixCls", "inputPrefixCls", "size", "enterButton", "className"]);
46307
46223
  delete restProps.onSearch;
46308
46224
  delete restProps.loading;
46309
46225
  var prefixCls = getPrefixCls2("input-search", customizePrefixCls);
@@ -47055,7 +46971,7 @@ var Password = /* @__PURE__ */ function(_React$Component) {
47055
46971
  }, {
47056
46972
  key: "render",
47057
46973
  value: function render2() {
47058
- var _a2 = this.props, className = _a2.className, prefixCls = _a2.prefixCls, inputPrefixCls = _a2.inputPrefixCls, size = _a2.size, visibilityToggle = _a2.visibilityToggle, restProps = __rest$8(_a2, ["className", "prefixCls", "inputPrefixCls", "size", "visibilityToggle"]);
46974
+ var _a3 = this.props, className = _a3.className, prefixCls = _a3.prefixCls, inputPrefixCls = _a3.inputPrefixCls, size = _a3.size, visibilityToggle = _a3.visibilityToggle, restProps = __rest$8(_a3, ["className", "prefixCls", "inputPrefixCls", "size", "visibilityToggle"]);
47059
46975
  var suffixIcon = visibilityToggle && this.getIcon();
47060
46976
  var inputClassName = classNames$1(prefixCls, className, _defineProperty$6({}, "".concat(prefixCls, "-").concat(size), !!size));
47061
46977
  return /* @__PURE__ */ reactExports.createElement(Input$1, _extends$b({}, omit(restProps, ["suffix"]), {
@@ -47237,7 +47153,7 @@ var Select = /* @__PURE__ */ function(_React$Component) {
47237
47153
  _this.renderSelect = function(_ref) {
47238
47154
  var _classNames;
47239
47155
  var getContextPopupContainer = _ref.getPopupContainer, getPrefixCls2 = _ref.getPrefixCls, renderEmpty3 = _ref.renderEmpty;
47240
- var _a2 = _this.props, customizePrefixCls = _a2.prefixCls, _a$className = _a2.className, className = _a$className === void 0 ? "" : _a$className, size = _a2.size, mode = _a2.mode, getPopupContainer = _a2.getPopupContainer, removeIcon = _a2.removeIcon, clearIcon = _a2.clearIcon, menuItemSelectedIcon = _a2.menuItemSelectedIcon, showArrow = _a2.showArrow, restProps = __rest$7(_a2, ["prefixCls", "className", "size", "mode", "getPopupContainer", "removeIcon", "clearIcon", "menuItemSelectedIcon", "showArrow"]);
47156
+ var _a3 = _this.props, customizePrefixCls = _a3.prefixCls, _a$className = _a3.className, className = _a$className === void 0 ? "" : _a$className, size = _a3.size, mode = _a3.mode, getPopupContainer = _a3.getPopupContainer, removeIcon = _a3.removeIcon, clearIcon = _a3.clearIcon, menuItemSelectedIcon = _a3.menuItemSelectedIcon, showArrow = _a3.showArrow, restProps = __rest$7(_a3, ["prefixCls", "className", "size", "mode", "getPopupContainer", "removeIcon", "clearIcon", "menuItemSelectedIcon", "showArrow"]);
47241
47157
  var rest = omit(restProps, ["inputIcon"]);
47242
47158
  var prefixCls = getPrefixCls2("select", customizePrefixCls);
47243
47159
  var cls = classNames$1((_classNames = {}, _defineProperty$5(_classNames, "".concat(prefixCls, "-lg"), size === "large"), _defineProperty$5(_classNames, "".concat(prefixCls, "-sm"), size === "small"), _defineProperty$5(_classNames, "".concat(prefixCls, "-show-arrow"), showArrow), _classNames), className);
@@ -48095,7 +48011,7 @@ var CheckableTag = /* @__PURE__ */ function(_React$Component) {
48095
48011
  _this.renderCheckableTag = function(_ref) {
48096
48012
  var _classNames;
48097
48013
  var getPrefixCls2 = _ref.getPrefixCls;
48098
- var _a2 = _this.props, customizePrefixCls = _a2.prefixCls, className = _a2.className, checked = _a2.checked, restProps = __rest$6(_a2, ["prefixCls", "className", "checked"]);
48014
+ var _a3 = _this.props, customizePrefixCls = _a3.prefixCls, className = _a3.className, checked = _a3.checked, restProps = __rest$6(_a3, ["prefixCls", "className", "checked"]);
48099
48015
  var prefixCls = getPrefixCls2("tag", customizePrefixCls);
48100
48016
  var cls = classNames$1(prefixCls, (_classNames = {}, _defineProperty$3(_classNames, "".concat(prefixCls, "-checkable"), true), _defineProperty$3(_classNames, "".concat(prefixCls, "-checkable-checked"), checked), _classNames), className);
48101
48017
  delete restProps.onChange;
@@ -48261,7 +48177,7 @@ var Tag = /* @__PURE__ */ function(_React$Component) {
48261
48177
  _this.setVisible(false, e2);
48262
48178
  };
48263
48179
  _this.renderTag = function(configProps) {
48264
- var _a2 = _this.props, children = _a2.children, otherProps = __rest$5(_a2, ["children"]);
48180
+ var _a3 = _this.props, children = _a3.children, otherProps = __rest$5(_a3, ["children"]);
48265
48181
  var isNeedWave = "onClick" in otherProps || children && children.type === "a";
48266
48182
  var tagProps = omit(otherProps, ["onClose", "afterClose", "color", "visible", "closable", "prefixCls"]);
48267
48183
  return isNeedWave ? /* @__PURE__ */ reactExports.createElement(Wave, null, /* @__PURE__ */ reactExports.createElement("span", _extends$6({}, tagProps, {
@@ -48528,7 +48444,7 @@ var TransButton = /* @__PURE__ */ function(_React$Component) {
48528
48444
  }, {
48529
48445
  key: "render",
48530
48446
  value: function render2() {
48531
- var _a2 = this.props, style2 = _a2.style, noStyle = _a2.noStyle, restProps = __rest$4(_a2, ["style", "noStyle"]);
48447
+ var _a3 = this.props, style2 = _a3.style, noStyle = _a3.noStyle, restProps = __rest$4(_a3, ["style", "noStyle"]);
48532
48448
  return /* @__PURE__ */ reactExports.createElement("div", _extends$5({
48533
48449
  role: "button",
48534
48450
  tabIndex: 0,
@@ -49495,8 +49411,8 @@ var __rest$3 = function(s2, e2) {
49495
49411
  }
49496
49412
  return t2;
49497
49413
  };
49498
- var Typography$2 = function Typography(_a2, ref2) {
49499
- var customizePrefixCls = _a2.prefixCls, _a$component = _a2.component, component = _a$component === void 0 ? "article" : _a$component, className = _a2.className, ariaLabel = _a2["aria-label"], setContentRef = _a2.setContentRef, children = _a2.children, restProps = __rest$3(_a2, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]);
49414
+ var Typography$2 = function Typography(_a3, ref2) {
49415
+ var customizePrefixCls = _a3.prefixCls, _a$component = _a3.component, component = _a$component === void 0 ? "article" : _a$component, className = _a3.className, ariaLabel = _a3["aria-label"], setContentRef = _a3.setContentRef, children = _a3.children, restProps = __rest$3(_a3, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]);
49500
49416
  var mergedRef = ref2;
49501
49417
  if (setContentRef) {
49502
49418
  warning$2(false, "Typography", "`setContentRef` is deprecated. Please use `ref` instead.");
@@ -50456,7 +50372,7 @@ var Base = /* @__PURE__ */ function(_React$Component) {
50456
50372
  value: function renderContent() {
50457
50373
  var _this2 = this;
50458
50374
  var _this$state3 = this.state, ellipsisContent = _this$state3.ellipsisContent, isEllipsis = _this$state3.isEllipsis, expanded = _this$state3.expanded;
50459
- var _a2 = this.props, component = _a2.component, children = _a2.children, className = _a2.className, prefixCls = _a2.prefixCls, type = _a2.type, disabled = _a2.disabled, style2 = _a2.style, restProps = __rest$2(_a2, ["component", "children", "className", "prefixCls", "type", "disabled", "style"]);
50375
+ var _a3 = this.props, component = _a3.component, children = _a3.children, className = _a3.className, prefixCls = _a3.prefixCls, type = _a3.type, disabled = _a3.disabled, style2 = _a3.style, restProps = __rest$2(_a3, ["component", "children", "className", "prefixCls", "type", "disabled", "style"]);
50460
50376
  var _this$getEllipsis5 = this.getEllipsis(), rows = _this$getEllipsis5.rows;
50461
50377
  var textProps = omit(restProps, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "underline", "mark", "code", "delete", "underline", "strong"].concat(_toConsumableArray(configConsumerProps)));
50462
50378
  var cssEllipsis = this.canUseCSSEllipsis();
@@ -50561,8 +50477,8 @@ var __rest$1 = function(s2, e2) {
50561
50477
  }
50562
50478
  return t2;
50563
50479
  };
50564
- var Text = function Text2(_a2) {
50565
- var ellipsis = _a2.ellipsis, restProps = __rest$1(_a2, ["ellipsis"]);
50480
+ var Text = function Text2(_a3) {
50481
+ var ellipsis = _a3.ellipsis, restProps = __rest$1(_a3, ["ellipsis"]);
50566
50482
  warning$2(_typeof$1(ellipsis) !== "object", "Typography.Text", "`ellipsis` only supports boolean value.");
50567
50483
  return /* @__PURE__ */ reactExports.createElement(Base$1, _extends$2({}, restProps, {
50568
50484
  ellipsis: !!ellipsis,
@@ -57905,7 +57821,7 @@ const deserializer = ($2, _2) => {
57905
57821
  return unpair;
57906
57822
  };
57907
57823
  const deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
57908
- const EMPTY = "";
57824
+ const EMPTY$1 = "";
57909
57825
  const { toString } = {};
57910
57826
  const { keys: keys$1 } = Object;
57911
57827
  const typeOf = (value) => {
@@ -57915,17 +57831,17 @@ const typeOf = (value) => {
57915
57831
  const asString = toString.call(value).slice(8, -1);
57916
57832
  switch (asString) {
57917
57833
  case "Array":
57918
- return [ARRAY, EMPTY];
57834
+ return [ARRAY, EMPTY$1];
57919
57835
  case "Object":
57920
- return [OBJECT, EMPTY];
57836
+ return [OBJECT, EMPTY$1];
57921
57837
  case "Date":
57922
- return [DATE, EMPTY];
57838
+ return [DATE, EMPTY$1];
57923
57839
  case "RegExp":
57924
- return [REGEXP, EMPTY];
57840
+ return [REGEXP, EMPTY$1];
57925
57841
  case "Map":
57926
- return [MAP, EMPTY];
57842
+ return [MAP, EMPTY$1];
57927
57843
  case "Set":
57928
- return [SET, EMPTY];
57844
+ return [SET, EMPTY$1];
57929
57845
  }
57930
57846
  if (asString.includes("Array"))
57931
57847
  return [ARRAY, asString];
@@ -60558,12 +60474,12 @@ function footnoteDefinition(node2, _2, state, info) {
60558
60474
  );
60559
60475
  tracker.shift(4);
60560
60476
  value += tracker.move(
60561
- state.indentLines(state.containerFlow(node2, tracker.current()), map$2)
60477
+ state.indentLines(state.containerFlow(node2, tracker.current()), map$3)
60562
60478
  );
60563
60479
  exit2();
60564
60480
  return value;
60565
60481
  }
60566
- function map$2(line, index2, blank) {
60482
+ function map$3(line, index2, blank) {
60567
60483
  if (index2 === 0) {
60568
60484
  return line;
60569
60485
  }
@@ -60764,12 +60680,12 @@ function blockquote(node2, _2, state, info) {
60764
60680
  tracker.shift(2);
60765
60681
  const value = state.indentLines(
60766
60682
  state.containerFlow(node2, tracker.current()),
60767
- map$1
60683
+ map$2
60768
60684
  );
60769
60685
  exit2();
60770
60686
  return value;
60771
60687
  }
60772
- function map$1(line, _2, blank) {
60688
+ function map$2(line, _2, blank) {
60773
60689
  return ">" + (blank ? "" : " ") + line;
60774
60690
  }
60775
60691
  function patternInScope(stack, pattern) {
@@ -60844,7 +60760,7 @@ function code$1(node2, _2, state, info) {
60844
60760
  const suffix2 = marker === "`" ? "GraveAccent" : "Tilde";
60845
60761
  if (formatCodeAsIndented(node2, state)) {
60846
60762
  const exit3 = state.enter("codeIndented");
60847
- const value2 = state.indentLines(raw, map);
60763
+ const value2 = state.indentLines(raw, map$1);
60848
60764
  exit3();
60849
60765
  return value2;
60850
60766
  }
@@ -60885,7 +60801,7 @@ function code$1(node2, _2, state, info) {
60885
60801
  exit2();
60886
60802
  return value;
60887
60803
  }
60888
- function map(line, _2, blank) {
60804
+ function map$1(line, _2, blank) {
60889
60805
  return (blank ? "" : " ") + line;
60890
60806
  }
60891
60807
  function checkQuote(state) {
@@ -63115,264 +63031,1818 @@ const SvgDiamondsFourBig = (props) => /* @__PURE__ */ reactExports.createElement
63115
63031
  const SvgMinusSquared = (props) => /* @__PURE__ */ reactExports.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ reactExports.createElement("path", { d: "M13 2H3C2.73478 2 2.48043 2.10536 2.29289 2.29289C2.10536 2.48043 2 2.73478 2 3V13C2 13.2652 2.10536 13.5196 2.29289 13.7071C2.48043 13.8946 2.73478 14 3 14H13C13.2652 14 13.5196 13.8946 13.7071 13.7071C13.8946 13.5196 14 13.2652 14 13V3C14 2.73478 13.8946 2.48043 13.7071 2.29289C13.5196 2.10536 13.2652 2 13 2ZM13 13H3V3H13V13ZM11 8C11 8.13261 10.9473 8.25979 10.8536 8.35355C10.7598 8.44732 10.6326 8.5 10.5 8.5H5.5C5.36739 8.5 5.24021 8.44732 5.14645 8.35355C5.05268 8.25979 5 8.13261 5 8C5 7.86739 5.05268 7.74021 5.14645 7.64645C5.24021 7.55268 5.36739 7.5 5.5 7.5H10.5C10.6326 7.5 10.7598 7.55268 10.8536 7.64645C10.9473 7.74021 11 7.86739 11 8Z", fill: "#636363" }));
63116
63032
  const SvgPlusSquared = (props) => /* @__PURE__ */ reactExports.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ reactExports.createElement("path", { d: "M12.6667 1.5H3.33333C2.32081 1.5 1.5 2.32081 1.5 3.33333V12.6667C1.5 13.6792 2.32081 14.5 3.33333 14.5H12.6667C13.6792 14.5 14.5 13.6792 14.5 12.6667V3.33333C14.5 2.32081 13.6792 1.5 12.6667 1.5ZM3.33333 2.5H12.6667C13.1269 2.5 13.5 2.8731 13.5 3.33333V12.6667C13.5 13.1269 13.1269 13.5 12.6667 13.5H3.33333C2.8731 13.5 2.5 13.1269 2.5 12.6667V3.33333C2.5 2.8731 2.8731 2.5 3.33333 2.5Z", fill: "#636363" }), /* @__PURE__ */ reactExports.createElement("path", { d: "M8 4.83331C8.25313 4.83331 8.46233 5.02142 8.49544 5.26547L8.5 5.33331V10.6666C8.5 10.9428 8.27614 11.1666 8 11.1666C7.74687 11.1666 7.53767 10.9785 7.50456 10.7345L7.5 10.6666V5.33331C7.5 5.05717 7.72386 4.83331 8 4.83331Z", fill: "#636363" }), /* @__PURE__ */ reactExports.createElement("path", { d: "M10.6663 7.5C10.9425 7.5 11.1663 7.72386 11.1663 8C11.1663 8.25313 10.9782 8.46233 10.7342 8.49544L10.6663 8.5H5.33301C5.05687 8.5 4.83301 8.27614 4.83301 8C4.83301 7.74687 5.02111 7.53767 5.26516 7.50456L5.33301 7.5H10.6663Z", fill: "#636363" }));
63117
63033
  const SvgTextAlignCenter = (props) => /* @__PURE__ */ reactExports.createElement("svg", { width: 64, height: 64, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ reactExports.createElement("path", { d: "M56 16V18C56 18.5304 55.7893 19.0391 55.4142 19.4142C55.0391 19.7893 54.5304 20 54 20H10C9.46957 20 8.96086 19.7893 8.58579 19.4142C8.21071 19.0391 8 18.5304 8 18V16C8 15.4696 8.21071 14.9609 8.58579 14.5858C8.96086 14.2107 9.46957 14 10 14H54C54.5304 14 55.0391 14.2107 55.4142 14.5858C55.7893 14.9609 56 15.4696 56 16ZM48 30C48.5304 30 49.0391 29.7893 49.4142 29.4142C49.7893 29.0391 50 28.5304 50 28V26C50 25.4696 49.7893 24.9609 49.4142 24.5858C49.0391 24.2107 48.5304 24 48 24H16C15.4696 24 14.9609 24.2107 14.5858 24.5858C14.2107 24.9609 14 25.4696 14 26V28C14 28.5304 14.2107 29.0391 14.5858 29.4142C14.9609 29.7893 15.4696 30 16 30H48ZM54 34H10C9.46957 34 8.96086 34.2107 8.58579 34.5858C8.21071 34.9609 8 35.4696 8 36V38C8 38.5304 8.21071 39.0391 8.58579 39.4142C8.96086 39.7893 9.46957 40 10 40H54C54.5304 40 55.0391 39.7893 55.4142 39.4142C55.7893 39.0391 56 38.5304 56 38V36C56 35.4696 55.7893 34.9609 55.4142 34.5858C55.0391 34.2107 54.5304 34 54 34ZM48 44H16C15.4696 44 14.9609 44.2107 14.5858 44.5858C14.2107 44.9609 14 45.4696 14 46V48C14 48.5304 14.2107 49.0391 14.5858 49.4142C14.9609 49.7893 15.4696 50 16 50H48C48.5304 50 49.0391 49.7893 49.4142 49.4142C49.7893 49.0391 50 48.5304 50 48V46C50 45.4696 49.7893 44.9609 49.4142 44.5858C49.0391 44.2107 48.5304 44 48 44Z", fill: "#ACACAC" }));
63118
- var fromWindowToReceiver = (self2, options) => {
63119
- return {
63120
- postMessage: (message) => {
63121
- self2.postMessage(message, (options == null ? void 0 : options.targetOrigin) ?? "*", options == null ? void 0 : options.transfer);
63122
- }
63034
+ var __require = /* @__PURE__ */ ((x2) => typeof commonjsRequire !== "undefined" ? commonjsRequire : typeof Proxy !== "undefined" ? new Proxy(x2, {
63035
+ get: (a2, b2) => (typeof commonjsRequire !== "undefined" ? commonjsRequire : a2)[b2]
63036
+ }) : x2)(function(x2) {
63037
+ if (typeof commonjsRequire !== "undefined")
63038
+ return commonjsRequire.apply(this, arguments);
63039
+ throw Error('Dynamic require of "' + x2 + '" is not supported');
63040
+ });
63041
+ var extendStatics = function(d2, b2) {
63042
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d22, b22) {
63043
+ d22.__proto__ = b22;
63044
+ } || function(d22, b22) {
63045
+ for (var p2 in b22)
63046
+ if (Object.prototype.hasOwnProperty.call(b22, p2))
63047
+ d22[p2] = b22[p2];
63123
63048
  };
63049
+ return extendStatics(d2, b2);
63124
63050
  };
63125
- var SynAck = /* @__PURE__ */ ((SynAck2) => {
63126
- SynAck2["Ack"] = "ack";
63127
- SynAck2["Syn"] = "syn";
63128
- return SynAck2;
63129
- })(SynAck || {});
63130
- var synackKeys = Object.values(SynAck);
63131
- var getData = (message) => message.data;
63132
- var synackFilter = (type) => (data) => data.type === type.toString();
63133
- var isPostChannelMessage = (message) => {
63134
- const data = message.data;
63135
- return typeof data === "object" && data !== null && "type" in data && typeof data.type === "string" && "instance" in data && typeof data.instance === "string" && "content" in data;
63136
- };
63137
- var generateDarkColorHex = () => {
63138
- let color2 = "#";
63139
- for (let i2 = 0; i2 < 3; i2++) {
63140
- color2 += `0${Math.floor(Math.random() * Math.pow(16, 2) / 2).toString(16)}`.slice(-2);
63051
+ function __extends(d2, b2) {
63052
+ if (typeof b2 !== "function" && b2 !== null)
63053
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
63054
+ extendStatics(d2, b2);
63055
+ function __() {
63056
+ this.constructor = d2;
63141
63057
  }
63142
- return color2;
63143
- };
63144
- var PostChannel = class {
63145
- constructor(listener, from2, to, opts) {
63146
- __publicField(this, "__generateId");
63147
- __publicField(this, "__instance");
63148
- __publicField(this, "__colors");
63149
- __publicField(this, "__listener");
63150
- __publicField(this, "__log");
63151
- __publicField(this, "__receiver");
63152
- __publicField(this, "__subscription");
63153
- __publicField(this, "__okToWrite");
63154
- __publicField(this, "__write$");
63155
- __publicField(this, "__recv$");
63156
- this.__generateId = () => globalThis.crypto.randomUUID();
63157
- const instance = this.__generateId();
63158
- const messages = new ReplaySubject();
63159
- const fromSubscription = fromEvent(from2, "message").pipe(filter(isPostChannelMessage)).subscribe(messages);
63160
- this.__subscription = new Subscription();
63161
- this.__subscription.add(fromSubscription);
63162
- this.__okToWrite = new ReplaySubject(1);
63163
- this.__write$ = this.__okToWrite.pipe(take(1));
63164
- this.__recv$ = messages.asObservable();
63165
- this.__listener = listener;
63166
- this.__log = (opts == null ? void 0 : opts.log) && opts.log.bind(this);
63167
- this.__instance = instance;
63168
- const color2 = generateDarkColorHex();
63169
- this.__colors = {
63170
- bg: `${color2}22`,
63171
- fg: color2
63058
+ d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
63059
+ }
63060
+ function __awaiter(thisArg, _arguments, P2, generator) {
63061
+ function adopt(value) {
63062
+ return value instanceof P2 ? value : new P2(function(resolve) {
63063
+ resolve(value);
63064
+ });
63065
+ }
63066
+ return new (P2 || (P2 = Promise))(function(resolve, reject) {
63067
+ function fulfilled(value) {
63068
+ try {
63069
+ step2(generator.next(value));
63070
+ } catch (e2) {
63071
+ reject(e2);
63072
+ }
63073
+ }
63074
+ function rejected(value) {
63075
+ try {
63076
+ step2(generator["throw"](value));
63077
+ } catch (e2) {
63078
+ reject(e2);
63079
+ }
63080
+ }
63081
+ function step2(result) {
63082
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
63083
+ }
63084
+ step2((generator = generator.apply(thisArg, _arguments || [])).next());
63085
+ });
63086
+ }
63087
+ function __generator(thisArg, body) {
63088
+ var _2 = { label: 0, sent: function() {
63089
+ if (t2[0] & 1)
63090
+ throw t2[1];
63091
+ return t2[1];
63092
+ }, trys: [], ops: [] }, f2, y2, t2, g2;
63093
+ return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
63094
+ return this;
63095
+ }), g2;
63096
+ function verb(n2) {
63097
+ return function(v2) {
63098
+ return step2([n2, v2]);
63172
63099
  };
63173
- this.__receiver = to;
63174
- this.__connect(
63175
- instance,
63176
- (opts == null ? void 0 : opts.period) ? opts.period : 10
63177
- );
63178
63100
  }
63179
- __connect(instance, period) {
63180
- const synSubscription = interval(period).subscribe(() => this.__receiver.postMessage({
63181
- content: instance,
63182
- instance,
63183
- type: "syn".toString()
63184
- }));
63185
- this.__subscription.add(synSubscription);
63186
- this.__subscription.add(
63187
- this.__recv$.pipe(
63188
- map$3(getData),
63189
- filter(synackFilter(
63190
- "ack"
63191
- /* Ack */
63192
- )),
63193
- filter(({ content: content2 }) => content2 === instance),
63194
- take(1)
63195
- ).subscribe(({ instance: foreignInstance }) => {
63196
- this.__okToWrite.next(0);
63197
- this.__subscription.add(
63198
- this.__recv$.pipe(
63199
- filter(
63200
- ({ data: { type, instance: incomingInstance } }) => !synackKeys.includes(type) && incomingInstance === foreignInstance
63201
- )
63202
- ).subscribe((message) => {
63203
- this.__listener(message);
63204
- const { data } = message;
63205
- if (data._id !== void 0) {
63206
- this.__receiver.postMessage({
63207
- ...data,
63208
- content: data,
63209
- instance,
63210
- type: "ack"
63211
- /* Ack */
63212
- });
63101
+ function step2(op) {
63102
+ if (f2)
63103
+ throw new TypeError("Generator is already executing.");
63104
+ while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
63105
+ try {
63106
+ if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
63107
+ return t2;
63108
+ if (y2 = 0, t2)
63109
+ op = [op[0] & 2, t2.value];
63110
+ switch (op[0]) {
63111
+ case 0:
63112
+ case 1:
63113
+ t2 = op;
63114
+ break;
63115
+ case 4:
63116
+ _2.label++;
63117
+ return { value: op[1], done: false };
63118
+ case 5:
63119
+ _2.label++;
63120
+ y2 = op[1];
63121
+ op = [0];
63122
+ continue;
63123
+ case 7:
63124
+ op = _2.ops.pop();
63125
+ _2.trys.pop();
63126
+ continue;
63127
+ default:
63128
+ if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
63129
+ _2 = 0;
63130
+ continue;
63213
63131
  }
63214
- })
63215
- );
63216
- synSubscription.unsubscribe();
63217
- })
63218
- );
63219
- this.__subscription.add(
63220
- this.__recv$.pipe(
63221
- map$3(getData),
63222
- filter(synackFilter(
63223
- "syn"
63224
- /* Syn */
63225
- )),
63226
- // must check whether is not short-circuiting
63227
- // in an infinite loop by syncing with itself
63228
- filter(({ instance: foreignInstance }) => foreignInstance !== instance),
63229
- take(1)
63230
- ).subscribe(({ content: content2 }) => {
63231
- this.__receiver.postMessage({
63232
- content: content2,
63233
- instance,
63234
- type: "ack"
63235
- /* Ack */
63236
- });
63237
- })
63238
- );
63132
+ if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
63133
+ _2.label = op[1];
63134
+ break;
63135
+ }
63136
+ if (op[0] === 6 && _2.label < t2[1]) {
63137
+ _2.label = t2[1];
63138
+ t2 = op;
63139
+ break;
63140
+ }
63141
+ if (t2 && _2.label < t2[2]) {
63142
+ _2.label = t2[2];
63143
+ _2.ops.push(op);
63144
+ break;
63145
+ }
63146
+ if (t2[2])
63147
+ _2.ops.pop();
63148
+ _2.trys.pop();
63149
+ continue;
63150
+ }
63151
+ op = body.call(thisArg, _2);
63152
+ } catch (e2) {
63153
+ op = [6, e2];
63154
+ y2 = 0;
63155
+ } finally {
63156
+ f2 = t2 = 0;
63157
+ }
63158
+ if (op[0] & 5)
63159
+ throw op[1];
63160
+ return { value: op[0] ? op[1] : void 0, done: true };
63239
63161
  }
63240
- __write(message, messageId) {
63241
- const extra = {};
63242
- if (messageId !== void 0) {
63243
- extra._id = messageId;
63162
+ }
63163
+ function __values(o2) {
63164
+ var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
63165
+ if (m2)
63166
+ return m2.call(o2);
63167
+ if (o2 && typeof o2.length === "number")
63168
+ return {
63169
+ next: function() {
63170
+ if (o2 && i2 >= o2.length)
63171
+ o2 = void 0;
63172
+ return { value: o2 && o2[i2++], done: !o2 };
63173
+ }
63174
+ };
63175
+ throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
63176
+ }
63177
+ function __read(o2, n2) {
63178
+ var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
63179
+ if (!m2)
63180
+ return o2;
63181
+ var i2 = m2.call(o2), r2, ar = [], e2;
63182
+ try {
63183
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
63184
+ ar.push(r2.value);
63185
+ } catch (error2) {
63186
+ e2 = { error: error2 };
63187
+ } finally {
63188
+ try {
63189
+ if (r2 && !r2.done && (m2 = i2["return"]))
63190
+ m2.call(i2);
63191
+ } finally {
63192
+ if (e2)
63193
+ throw e2.error;
63244
63194
  }
63245
- this.__subscription.add(
63246
- this.__write$.subscribe(() => {
63247
- var _a2;
63248
- const outgoingMessage = Object.assign(
63249
- message,
63250
- {
63251
- instance: this.__instance,
63252
- ...extra
63253
- }
63254
- );
63255
- this.__receiver.postMessage(outgoingMessage);
63256
- (_a2 = this.__log) == null ? void 0 : _a2.call(this, outgoingMessage);
63257
- })
63258
- );
63259
63195
  }
63260
- disconnect() {
63261
- this.__subscription.unsubscribe();
63196
+ return ar;
63197
+ }
63198
+ function __spreadArray(to, from2, pack) {
63199
+ if (pack || arguments.length === 2)
63200
+ for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
63201
+ if (ar || !(i2 in from2)) {
63202
+ if (!ar)
63203
+ ar = Array.prototype.slice.call(from2, 0, i2);
63204
+ ar[i2] = from2[i2];
63205
+ }
63206
+ }
63207
+ return to.concat(ar || Array.prototype.slice.call(from2));
63208
+ }
63209
+ function __await(v2) {
63210
+ return this instanceof __await ? (this.v = v2, this) : new __await(v2);
63211
+ }
63212
+ function __asyncGenerator(thisArg, _arguments, generator) {
63213
+ if (!Symbol.asyncIterator)
63214
+ throw new TypeError("Symbol.asyncIterator is not defined.");
63215
+ var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
63216
+ return i2 = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
63217
+ return this;
63218
+ }, i2;
63219
+ function awaitReturn(f2) {
63220
+ return function(v2) {
63221
+ return Promise.resolve(v2).then(f2, reject);
63222
+ };
63262
63223
  }
63263
- send(message) {
63264
- this.__write(message);
63224
+ function verb(n2, f2) {
63225
+ if (g2[n2]) {
63226
+ i2[n2] = function(v2) {
63227
+ return new Promise(function(a2, b2) {
63228
+ q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
63229
+ });
63230
+ };
63231
+ if (f2)
63232
+ i2[n2] = f2(i2[n2]);
63233
+ }
63265
63234
  }
63266
- ackSend(message) {
63267
- let done;
63268
- const promise = new Promise((resolve) => {
63269
- done = resolve;
63270
- });
63271
- const messageId = this.__generateId();
63272
- this.__subscription.add(
63273
- this.__recv$.pipe(
63274
- map$3(getData),
63275
- filter(synackFilter(
63276
- "ack"
63277
- /* Ack */
63278
- )),
63279
- filter(({ _id }) => _id === messageId),
63280
- take(1)
63281
- ).subscribe(() => done())
63282
- );
63283
- this.__write(message, messageId);
63284
- return promise;
63235
+ function resume(n2, v2) {
63236
+ try {
63237
+ step2(g2[n2](v2));
63238
+ } catch (e2) {
63239
+ settle(q2[0][3], e2);
63240
+ }
63285
63241
  }
63286
- get instance() {
63287
- return this.__instance;
63242
+ function step2(r2) {
63243
+ r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
63288
63244
  }
63289
- get colors() {
63290
- return this.__colors;
63245
+ function fulfill(value) {
63246
+ resume("next", value);
63291
63247
  }
63292
- /**
63293
- * signals readiness on listening and cannot fail but keeps hanging
63294
- * if not resolved
63295
- */
63296
- get ready() {
63297
- return firstValueFrom(this.__write$).then(() => {
63298
- });
63248
+ function reject(value) {
63249
+ resume("throw", value);
63299
63250
  }
63300
- };
63301
- var src_default = PostChannel;
63302
- var __defProp$2 = Object.defineProperty;
63303
- var __defNormalProp$2 = (obj, key2, value) => key2 in obj ? __defProp$2(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
63304
- var __publicField$2 = (obj, key2, value) => {
63305
- __defNormalProp$2(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
63306
- return value;
63307
- };
63308
- class Lexer {
63309
- constructor(input) {
63310
- __publicField$2(this, "_input");
63311
- __publicField$2(this, "_length");
63312
- __publicField$2(this, "_idx", 0);
63313
- __publicField$2(
63314
- this,
63315
- "_mode",
63316
- 0
63317
- /* Literal */
63318
- );
63319
- __publicField$2(this, "_literals", []);
63320
- __publicField$2(this, "_variables", []);
63321
- __publicField$2(this, "_braketCount", 0);
63322
- __publicField$2(this, "_done", false);
63323
- this._input = input;
63324
- this._length = input.length;
63251
+ function settle(f2, v2) {
63252
+ if (f2(v2), q2.shift(), q2.length)
63253
+ resume(q2[0][0], q2[0][1]);
63325
63254
  }
63326
- concatToLastLiteral(concat) {
63327
- this._literals.push(this._literals.pop().concat(concat));
63255
+ }
63256
+ function __asyncValues(o2) {
63257
+ if (!Symbol.asyncIterator)
63258
+ throw new TypeError("Symbol.asyncIterator is not defined.");
63259
+ var m2 = o2[Symbol.asyncIterator], i2;
63260
+ return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
63261
+ return this;
63262
+ }, i2);
63263
+ function verb(n2) {
63264
+ i2[n2] = o2[n2] && function(v2) {
63265
+ return new Promise(function(resolve, reject) {
63266
+ v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
63267
+ });
63268
+ };
63328
63269
  }
63329
- concatToLastVariable(concat) {
63330
- this._variables.push(this._variables.pop().concat(concat));
63270
+ function settle(resolve, reject, d2, v2) {
63271
+ Promise.resolve(v2).then(function(v22) {
63272
+ resolve({ value: v22, done: d2 });
63273
+ }, reject);
63331
63274
  }
63332
- get() {
63333
- const rawLiterals = [...this._literals];
63334
- const literals = Object.assign([], rawLiterals);
63335
- Object.defineProperty(literals, "raw", { value: rawLiterals, writable: false });
63336
- return {
63337
- literals,
63338
- variables: this._variables
63339
- };
63275
+ }
63276
+ function isFunction(value) {
63277
+ return typeof value === "function";
63278
+ }
63279
+ function createErrorClass(createImpl) {
63280
+ var _super = function(instance) {
63281
+ Error.call(instance);
63282
+ instance.stack = new Error().stack;
63283
+ };
63284
+ var ctorFunc = createImpl(_super);
63285
+ ctorFunc.prototype = Object.create(Error.prototype);
63286
+ ctorFunc.prototype.constructor = ctorFunc;
63287
+ return ctorFunc;
63288
+ }
63289
+ var UnsubscriptionError = createErrorClass(function(_super) {
63290
+ return function UnsubscriptionErrorImpl(errors) {
63291
+ _super(this);
63292
+ this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i2) {
63293
+ return i2 + 1 + ") " + err.toString();
63294
+ }).join("\n ") : "";
63295
+ this.name = "UnsubscriptionError";
63296
+ this.errors = errors;
63297
+ };
63298
+ });
63299
+ function arrRemove(arr, item) {
63300
+ if (arr) {
63301
+ var index2 = arr.indexOf(item);
63302
+ 0 <= index2 && arr.splice(index2, 1);
63340
63303
  }
63341
- run() {
63342
- if (this._length === 0) {
63343
- this._literals.push("");
63344
- }
63345
- while (this._idx < this._length) {
63346
- const char = this._input.charAt(this._idx);
63347
- switch (this._mode) {
63348
- case 0: {
63349
- if (this._literals.length === 0) {
63350
- this._literals.push("");
63351
- }
63352
- if (char === "{" && this._idx + 1 !== this._length && this._input.charAt(this._idx + 1) === "{") {
63353
- this._literals.push("");
63354
- this._variables.push("");
63355
- this._mode = 1;
63356
- this._idx += 1;
63357
- } else {
63358
- this.concatToLastLiteral(char);
63304
+ }
63305
+ var Subscription = function() {
63306
+ function Subscription2(initialTeardown) {
63307
+ this.initialTeardown = initialTeardown;
63308
+ this.closed = false;
63309
+ this._parentage = null;
63310
+ this._finalizers = null;
63311
+ }
63312
+ Subscription2.prototype.unsubscribe = function() {
63313
+ var e_1, _a3, e_2, _b;
63314
+ var errors;
63315
+ if (!this.closed) {
63316
+ this.closed = true;
63317
+ var _parentage = this._parentage;
63318
+ if (_parentage) {
63319
+ this._parentage = null;
63320
+ if (Array.isArray(_parentage)) {
63321
+ try {
63322
+ for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
63323
+ var parent_1 = _parentage_1_1.value;
63324
+ parent_1.remove(this);
63325
+ }
63326
+ } catch (e_1_1) {
63327
+ e_1 = { error: e_1_1 };
63328
+ } finally {
63329
+ try {
63330
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a3 = _parentage_1.return))
63331
+ _a3.call(_parentage_1);
63332
+ } finally {
63333
+ if (e_1)
63334
+ throw e_1.error;
63335
+ }
63359
63336
  }
63360
- break;
63337
+ } else {
63338
+ _parentage.remove(this);
63361
63339
  }
63362
- case 1:
63363
- if (char === "}" && this._input.charAt(this._idx + 1) === "}") {
63364
- this._mode = 0;
63365
- this._idx += 1;
63366
- } else {
63367
- this.concatToLastVariable(char);
63340
+ }
63341
+ var initialFinalizer = this.initialTeardown;
63342
+ if (isFunction(initialFinalizer)) {
63343
+ try {
63344
+ initialFinalizer();
63345
+ } catch (e2) {
63346
+ errors = e2 instanceof UnsubscriptionError ? e2.errors : [e2];
63347
+ }
63348
+ }
63349
+ var _finalizers = this._finalizers;
63350
+ if (_finalizers) {
63351
+ this._finalizers = null;
63352
+ try {
63353
+ for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
63354
+ var finalizer = _finalizers_1_1.value;
63355
+ try {
63356
+ execFinalizer(finalizer);
63357
+ } catch (err) {
63358
+ errors = errors !== null && errors !== void 0 ? errors : [];
63359
+ if (err instanceof UnsubscriptionError) {
63360
+ errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
63361
+ } else {
63362
+ errors.push(err);
63363
+ }
63364
+ }
63368
63365
  }
63369
- break;
63366
+ } catch (e_2_1) {
63367
+ e_2 = { error: e_2_1 };
63368
+ } finally {
63369
+ try {
63370
+ if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
63371
+ _b.call(_finalizers_1);
63372
+ } finally {
63373
+ if (e_2)
63374
+ throw e_2.error;
63375
+ }
63376
+ }
63377
+ }
63378
+ if (errors) {
63379
+ throw new UnsubscriptionError(errors);
63370
63380
  }
63371
- this._idx += 1;
63372
63381
  }
63373
- if (this._mode === 1) {
63374
- this._literals.pop();
63375
- this.concatToLastLiteral("{{".concat(this._variables.pop()));
63382
+ };
63383
+ Subscription2.prototype.add = function(teardown) {
63384
+ var _a3;
63385
+ if (teardown && teardown !== this) {
63386
+ if (this.closed) {
63387
+ execFinalizer(teardown);
63388
+ } else {
63389
+ if (teardown instanceof Subscription2) {
63390
+ if (teardown.closed || teardown._hasParent(this)) {
63391
+ return;
63392
+ }
63393
+ teardown._addParent(this);
63394
+ }
63395
+ (this._finalizers = (_a3 = this._finalizers) !== null && _a3 !== void 0 ? _a3 : []).push(teardown);
63396
+ }
63397
+ }
63398
+ };
63399
+ Subscription2.prototype._hasParent = function(parent) {
63400
+ var _parentage = this._parentage;
63401
+ return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
63402
+ };
63403
+ Subscription2.prototype._addParent = function(parent) {
63404
+ var _parentage = this._parentage;
63405
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
63406
+ };
63407
+ Subscription2.prototype._removeParent = function(parent) {
63408
+ var _parentage = this._parentage;
63409
+ if (_parentage === parent) {
63410
+ this._parentage = null;
63411
+ } else if (Array.isArray(_parentage)) {
63412
+ arrRemove(_parentage, parent);
63413
+ }
63414
+ };
63415
+ Subscription2.prototype.remove = function(teardown) {
63416
+ var _finalizers = this._finalizers;
63417
+ _finalizers && arrRemove(_finalizers, teardown);
63418
+ if (teardown instanceof Subscription2) {
63419
+ teardown._removeParent(this);
63420
+ }
63421
+ };
63422
+ Subscription2.EMPTY = function() {
63423
+ var empty2 = new Subscription2();
63424
+ empty2.closed = true;
63425
+ return empty2;
63426
+ }();
63427
+ return Subscription2;
63428
+ }();
63429
+ var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
63430
+ function isSubscription(value) {
63431
+ return value instanceof Subscription || value && "closed" in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);
63432
+ }
63433
+ function execFinalizer(finalizer) {
63434
+ if (isFunction(finalizer)) {
63435
+ finalizer();
63436
+ } else {
63437
+ finalizer.unsubscribe();
63438
+ }
63439
+ }
63440
+ var config = {
63441
+ onUnhandledError: null,
63442
+ onStoppedNotification: null,
63443
+ Promise: void 0,
63444
+ useDeprecatedSynchronousErrorHandling: false,
63445
+ useDeprecatedNextContext: false
63446
+ };
63447
+ var timeoutProvider = {
63448
+ setTimeout: function(handler2, timeout) {
63449
+ var args = [];
63450
+ for (var _i = 2; _i < arguments.length; _i++) {
63451
+ args[_i - 2] = arguments[_i];
63452
+ }
63453
+ return setTimeout.apply(void 0, __spreadArray([handler2, timeout], __read(args)));
63454
+ },
63455
+ clearTimeout: function(handle2) {
63456
+ return clearTimeout(handle2);
63457
+ },
63458
+ delegate: void 0
63459
+ };
63460
+ function reportUnhandledError(err) {
63461
+ timeoutProvider.setTimeout(function() {
63462
+ {
63463
+ throw err;
63464
+ }
63465
+ });
63466
+ }
63467
+ function noop$1() {
63468
+ }
63469
+ function errorContext(cb2) {
63470
+ {
63471
+ cb2();
63472
+ }
63473
+ }
63474
+ var Subscriber = function(_super) {
63475
+ __extends(Subscriber2, _super);
63476
+ function Subscriber2(destination) {
63477
+ var _this = _super.call(this) || this;
63478
+ _this.isStopped = false;
63479
+ if (destination) {
63480
+ _this.destination = destination;
63481
+ if (isSubscription(destination)) {
63482
+ destination.add(_this);
63483
+ }
63484
+ } else {
63485
+ _this.destination = EMPTY_OBSERVER;
63486
+ }
63487
+ return _this;
63488
+ }
63489
+ Subscriber2.create = function(next, error2, complete) {
63490
+ return new SafeSubscriber(next, error2, complete);
63491
+ };
63492
+ Subscriber2.prototype.next = function(value) {
63493
+ if (this.isStopped)
63494
+ ;
63495
+ else {
63496
+ this._next(value);
63497
+ }
63498
+ };
63499
+ Subscriber2.prototype.error = function(err) {
63500
+ if (this.isStopped)
63501
+ ;
63502
+ else {
63503
+ this.isStopped = true;
63504
+ this._error(err);
63505
+ }
63506
+ };
63507
+ Subscriber2.prototype.complete = function() {
63508
+ if (this.isStopped)
63509
+ ;
63510
+ else {
63511
+ this.isStopped = true;
63512
+ this._complete();
63513
+ }
63514
+ };
63515
+ Subscriber2.prototype.unsubscribe = function() {
63516
+ if (!this.closed) {
63517
+ this.isStopped = true;
63518
+ _super.prototype.unsubscribe.call(this);
63519
+ this.destination = null;
63520
+ }
63521
+ };
63522
+ Subscriber2.prototype._next = function(value) {
63523
+ this.destination.next(value);
63524
+ };
63525
+ Subscriber2.prototype._error = function(err) {
63526
+ try {
63527
+ this.destination.error(err);
63528
+ } finally {
63529
+ this.unsubscribe();
63530
+ }
63531
+ };
63532
+ Subscriber2.prototype._complete = function() {
63533
+ try {
63534
+ this.destination.complete();
63535
+ } finally {
63536
+ this.unsubscribe();
63537
+ }
63538
+ };
63539
+ return Subscriber2;
63540
+ }(Subscription);
63541
+ var _bind = Function.prototype.bind;
63542
+ function bind(fn, thisArg) {
63543
+ return _bind.call(fn, thisArg);
63544
+ }
63545
+ var ConsumerObserver = function() {
63546
+ function ConsumerObserver2(partialObserver) {
63547
+ this.partialObserver = partialObserver;
63548
+ }
63549
+ ConsumerObserver2.prototype.next = function(value) {
63550
+ var partialObserver = this.partialObserver;
63551
+ if (partialObserver.next) {
63552
+ try {
63553
+ partialObserver.next(value);
63554
+ } catch (error2) {
63555
+ handleUnhandledError(error2);
63556
+ }
63557
+ }
63558
+ };
63559
+ ConsumerObserver2.prototype.error = function(err) {
63560
+ var partialObserver = this.partialObserver;
63561
+ if (partialObserver.error) {
63562
+ try {
63563
+ partialObserver.error(err);
63564
+ } catch (error2) {
63565
+ handleUnhandledError(error2);
63566
+ }
63567
+ } else {
63568
+ handleUnhandledError(err);
63569
+ }
63570
+ };
63571
+ ConsumerObserver2.prototype.complete = function() {
63572
+ var partialObserver = this.partialObserver;
63573
+ if (partialObserver.complete) {
63574
+ try {
63575
+ partialObserver.complete();
63576
+ } catch (error2) {
63577
+ handleUnhandledError(error2);
63578
+ }
63579
+ }
63580
+ };
63581
+ return ConsumerObserver2;
63582
+ }();
63583
+ var SafeSubscriber = function(_super) {
63584
+ __extends(SafeSubscriber2, _super);
63585
+ function SafeSubscriber2(observerOrNext, error2, complete) {
63586
+ var _this = _super.call(this) || this;
63587
+ var partialObserver;
63588
+ if (isFunction(observerOrNext) || !observerOrNext) {
63589
+ partialObserver = {
63590
+ next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
63591
+ error: error2 !== null && error2 !== void 0 ? error2 : void 0,
63592
+ complete: complete !== null && complete !== void 0 ? complete : void 0
63593
+ };
63594
+ } else {
63595
+ var context_1;
63596
+ if (_this && config.useDeprecatedNextContext) {
63597
+ context_1 = Object.create(observerOrNext);
63598
+ context_1.unsubscribe = function() {
63599
+ return _this.unsubscribe();
63600
+ };
63601
+ partialObserver = {
63602
+ next: observerOrNext.next && bind(observerOrNext.next, context_1),
63603
+ error: observerOrNext.error && bind(observerOrNext.error, context_1),
63604
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
63605
+ };
63606
+ } else {
63607
+ partialObserver = observerOrNext;
63608
+ }
63609
+ }
63610
+ _this.destination = new ConsumerObserver(partialObserver);
63611
+ return _this;
63612
+ }
63613
+ return SafeSubscriber2;
63614
+ }(Subscriber);
63615
+ function handleUnhandledError(error2) {
63616
+ {
63617
+ reportUnhandledError(error2);
63618
+ }
63619
+ }
63620
+ function defaultErrorHandler(err) {
63621
+ throw err;
63622
+ }
63623
+ var EMPTY_OBSERVER = {
63624
+ closed: true,
63625
+ next: noop$1,
63626
+ error: defaultErrorHandler,
63627
+ complete: noop$1
63628
+ };
63629
+ var observable = function() {
63630
+ return typeof Symbol === "function" && Symbol.observable || "@@observable";
63631
+ }();
63632
+ function identity(x2) {
63633
+ return x2;
63634
+ }
63635
+ function pipeFromArray(fns) {
63636
+ if (fns.length === 0) {
63637
+ return identity;
63638
+ }
63639
+ if (fns.length === 1) {
63640
+ return fns[0];
63641
+ }
63642
+ return function piped(input) {
63643
+ return fns.reduce(function(prev, fn) {
63644
+ return fn(prev);
63645
+ }, input);
63646
+ };
63647
+ }
63648
+ var Observable = function() {
63649
+ function Observable2(subscribe) {
63650
+ if (subscribe) {
63651
+ this._subscribe = subscribe;
63652
+ }
63653
+ }
63654
+ Observable2.prototype.lift = function(operator) {
63655
+ var observable2 = new Observable2();
63656
+ observable2.source = this;
63657
+ observable2.operator = operator;
63658
+ return observable2;
63659
+ };
63660
+ Observable2.prototype.subscribe = function(observerOrNext, error2, complete) {
63661
+ var _this = this;
63662
+ var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error2, complete);
63663
+ errorContext(function() {
63664
+ var _a3 = _this, operator = _a3.operator, source = _a3.source;
63665
+ subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
63666
+ });
63667
+ return subscriber;
63668
+ };
63669
+ Observable2.prototype._trySubscribe = function(sink) {
63670
+ try {
63671
+ return this._subscribe(sink);
63672
+ } catch (err) {
63673
+ sink.error(err);
63674
+ }
63675
+ };
63676
+ Observable2.prototype.forEach = function(next, promiseCtor) {
63677
+ var _this = this;
63678
+ promiseCtor = getPromiseCtor(promiseCtor);
63679
+ return new promiseCtor(function(resolve, reject) {
63680
+ var subscriber = new SafeSubscriber({
63681
+ next: function(value) {
63682
+ try {
63683
+ next(value);
63684
+ } catch (err) {
63685
+ reject(err);
63686
+ subscriber.unsubscribe();
63687
+ }
63688
+ },
63689
+ error: reject,
63690
+ complete: resolve
63691
+ });
63692
+ _this.subscribe(subscriber);
63693
+ });
63694
+ };
63695
+ Observable2.prototype._subscribe = function(subscriber) {
63696
+ var _a3;
63697
+ return (_a3 = this.source) === null || _a3 === void 0 ? void 0 : _a3.subscribe(subscriber);
63698
+ };
63699
+ Observable2.prototype[observable] = function() {
63700
+ return this;
63701
+ };
63702
+ Observable2.prototype.pipe = function() {
63703
+ var operations = [];
63704
+ for (var _i = 0; _i < arguments.length; _i++) {
63705
+ operations[_i] = arguments[_i];
63706
+ }
63707
+ return pipeFromArray(operations)(this);
63708
+ };
63709
+ Observable2.prototype.toPromise = function(promiseCtor) {
63710
+ var _this = this;
63711
+ promiseCtor = getPromiseCtor(promiseCtor);
63712
+ return new promiseCtor(function(resolve, reject) {
63713
+ var value;
63714
+ _this.subscribe(function(x2) {
63715
+ return value = x2;
63716
+ }, function(err) {
63717
+ return reject(err);
63718
+ }, function() {
63719
+ return resolve(value);
63720
+ });
63721
+ });
63722
+ };
63723
+ Observable2.create = function(subscribe) {
63724
+ return new Observable2(subscribe);
63725
+ };
63726
+ return Observable2;
63727
+ }();
63728
+ function getPromiseCtor(promiseCtor) {
63729
+ var _a3;
63730
+ return (_a3 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a3 !== void 0 ? _a3 : Promise;
63731
+ }
63732
+ function isObserver(value) {
63733
+ return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
63734
+ }
63735
+ function isSubscriber(value) {
63736
+ return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);
63737
+ }
63738
+ function hasLift(source) {
63739
+ return isFunction(source === null || source === void 0 ? void 0 : source.lift);
63740
+ }
63741
+ function operate(init) {
63742
+ return function(source) {
63743
+ if (hasLift(source)) {
63744
+ return source.lift(function(liftedSource) {
63745
+ try {
63746
+ return init(liftedSource, this);
63747
+ } catch (err) {
63748
+ this.error(err);
63749
+ }
63750
+ });
63751
+ }
63752
+ throw new TypeError("Unable to lift unknown Observable type");
63753
+ };
63754
+ }
63755
+ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
63756
+ return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
63757
+ }
63758
+ var OperatorSubscriber = function(_super) {
63759
+ __extends(OperatorSubscriber2, _super);
63760
+ function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
63761
+ var _this = _super.call(this, destination) || this;
63762
+ _this.onFinalize = onFinalize;
63763
+ _this.shouldUnsubscribe = shouldUnsubscribe;
63764
+ _this._next = onNext ? function(value) {
63765
+ try {
63766
+ onNext(value);
63767
+ } catch (err) {
63768
+ destination.error(err);
63769
+ }
63770
+ } : _super.prototype._next;
63771
+ _this._error = onError ? function(err) {
63772
+ try {
63773
+ onError(err);
63774
+ } catch (err2) {
63775
+ destination.error(err2);
63776
+ } finally {
63777
+ this.unsubscribe();
63778
+ }
63779
+ } : _super.prototype._error;
63780
+ _this._complete = onComplete ? function() {
63781
+ try {
63782
+ onComplete();
63783
+ } catch (err) {
63784
+ destination.error(err);
63785
+ } finally {
63786
+ this.unsubscribe();
63787
+ }
63788
+ } : _super.prototype._complete;
63789
+ return _this;
63790
+ }
63791
+ OperatorSubscriber2.prototype.unsubscribe = function() {
63792
+ var _a3;
63793
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
63794
+ var closed_1 = this.closed;
63795
+ _super.prototype.unsubscribe.call(this);
63796
+ !closed_1 && ((_a3 = this.onFinalize) === null || _a3 === void 0 ? void 0 : _a3.call(this));
63797
+ }
63798
+ };
63799
+ return OperatorSubscriber2;
63800
+ }(Subscriber);
63801
+ var ObjectUnsubscribedError = createErrorClass(function(_super) {
63802
+ return function ObjectUnsubscribedErrorImpl() {
63803
+ _super(this);
63804
+ this.name = "ObjectUnsubscribedError";
63805
+ this.message = "object unsubscribed";
63806
+ };
63807
+ });
63808
+ var Subject = function(_super) {
63809
+ __extends(Subject2, _super);
63810
+ function Subject2() {
63811
+ var _this = _super.call(this) || this;
63812
+ _this.closed = false;
63813
+ _this.currentObservers = null;
63814
+ _this.observers = [];
63815
+ _this.isStopped = false;
63816
+ _this.hasError = false;
63817
+ _this.thrownError = null;
63818
+ return _this;
63819
+ }
63820
+ Subject2.prototype.lift = function(operator) {
63821
+ var subject = new AnonymousSubject(this, this);
63822
+ subject.operator = operator;
63823
+ return subject;
63824
+ };
63825
+ Subject2.prototype._throwIfClosed = function() {
63826
+ if (this.closed) {
63827
+ throw new ObjectUnsubscribedError();
63828
+ }
63829
+ };
63830
+ Subject2.prototype.next = function(value) {
63831
+ var _this = this;
63832
+ errorContext(function() {
63833
+ var e_1, _a3;
63834
+ _this._throwIfClosed();
63835
+ if (!_this.isStopped) {
63836
+ if (!_this.currentObservers) {
63837
+ _this.currentObservers = Array.from(_this.observers);
63838
+ }
63839
+ try {
63840
+ for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
63841
+ var observer = _c.value;
63842
+ observer.next(value);
63843
+ }
63844
+ } catch (e_1_1) {
63845
+ e_1 = { error: e_1_1 };
63846
+ } finally {
63847
+ try {
63848
+ if (_c && !_c.done && (_a3 = _b.return))
63849
+ _a3.call(_b);
63850
+ } finally {
63851
+ if (e_1)
63852
+ throw e_1.error;
63853
+ }
63854
+ }
63855
+ }
63856
+ });
63857
+ };
63858
+ Subject2.prototype.error = function(err) {
63859
+ var _this = this;
63860
+ errorContext(function() {
63861
+ _this._throwIfClosed();
63862
+ if (!_this.isStopped) {
63863
+ _this.hasError = _this.isStopped = true;
63864
+ _this.thrownError = err;
63865
+ var observers2 = _this.observers;
63866
+ while (observers2.length) {
63867
+ observers2.shift().error(err);
63868
+ }
63869
+ }
63870
+ });
63871
+ };
63872
+ Subject2.prototype.complete = function() {
63873
+ var _this = this;
63874
+ errorContext(function() {
63875
+ _this._throwIfClosed();
63876
+ if (!_this.isStopped) {
63877
+ _this.isStopped = true;
63878
+ var observers2 = _this.observers;
63879
+ while (observers2.length) {
63880
+ observers2.shift().complete();
63881
+ }
63882
+ }
63883
+ });
63884
+ };
63885
+ Subject2.prototype.unsubscribe = function() {
63886
+ this.isStopped = this.closed = true;
63887
+ this.observers = this.currentObservers = null;
63888
+ };
63889
+ Object.defineProperty(Subject2.prototype, "observed", {
63890
+ get: function() {
63891
+ var _a3;
63892
+ return ((_a3 = this.observers) === null || _a3 === void 0 ? void 0 : _a3.length) > 0;
63893
+ },
63894
+ enumerable: false,
63895
+ configurable: true
63896
+ });
63897
+ Subject2.prototype._trySubscribe = function(subscriber) {
63898
+ this._throwIfClosed();
63899
+ return _super.prototype._trySubscribe.call(this, subscriber);
63900
+ };
63901
+ Subject2.prototype._subscribe = function(subscriber) {
63902
+ this._throwIfClosed();
63903
+ this._checkFinalizedStatuses(subscriber);
63904
+ return this._innerSubscribe(subscriber);
63905
+ };
63906
+ Subject2.prototype._innerSubscribe = function(subscriber) {
63907
+ var _this = this;
63908
+ var _a3 = this, hasError = _a3.hasError, isStopped = _a3.isStopped, observers2 = _a3.observers;
63909
+ if (hasError || isStopped) {
63910
+ return EMPTY_SUBSCRIPTION;
63911
+ }
63912
+ this.currentObservers = null;
63913
+ observers2.push(subscriber);
63914
+ return new Subscription(function() {
63915
+ _this.currentObservers = null;
63916
+ arrRemove(observers2, subscriber);
63917
+ });
63918
+ };
63919
+ Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
63920
+ var _a3 = this, hasError = _a3.hasError, thrownError = _a3.thrownError, isStopped = _a3.isStopped;
63921
+ if (hasError) {
63922
+ subscriber.error(thrownError);
63923
+ } else if (isStopped) {
63924
+ subscriber.complete();
63925
+ }
63926
+ };
63927
+ Subject2.prototype.asObservable = function() {
63928
+ var observable2 = new Observable();
63929
+ observable2.source = this;
63930
+ return observable2;
63931
+ };
63932
+ Subject2.create = function(destination, source) {
63933
+ return new AnonymousSubject(destination, source);
63934
+ };
63935
+ return Subject2;
63936
+ }(Observable);
63937
+ var AnonymousSubject = function(_super) {
63938
+ __extends(AnonymousSubject2, _super);
63939
+ function AnonymousSubject2(destination, source) {
63940
+ var _this = _super.call(this) || this;
63941
+ _this.destination = destination;
63942
+ _this.source = source;
63943
+ return _this;
63944
+ }
63945
+ AnonymousSubject2.prototype.next = function(value) {
63946
+ var _a3, _b;
63947
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.next) === null || _b === void 0 ? void 0 : _b.call(_a3, value);
63948
+ };
63949
+ AnonymousSubject2.prototype.error = function(err) {
63950
+ var _a3, _b;
63951
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.error) === null || _b === void 0 ? void 0 : _b.call(_a3, err);
63952
+ };
63953
+ AnonymousSubject2.prototype.complete = function() {
63954
+ var _a3, _b;
63955
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.complete) === null || _b === void 0 ? void 0 : _b.call(_a3);
63956
+ };
63957
+ AnonymousSubject2.prototype._subscribe = function(subscriber) {
63958
+ var _a3, _b;
63959
+ return (_b = (_a3 = this.source) === null || _a3 === void 0 ? void 0 : _a3.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
63960
+ };
63961
+ return AnonymousSubject2;
63962
+ }(Subject);
63963
+ var dateTimestampProvider = {
63964
+ now: function() {
63965
+ return (dateTimestampProvider.delegate || Date).now();
63966
+ },
63967
+ delegate: void 0
63968
+ };
63969
+ var ReplaySubject = function(_super) {
63970
+ __extends(ReplaySubject2, _super);
63971
+ function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) {
63972
+ if (_bufferSize === void 0) {
63973
+ _bufferSize = Infinity;
63974
+ }
63975
+ if (_windowTime === void 0) {
63976
+ _windowTime = Infinity;
63977
+ }
63978
+ if (_timestampProvider === void 0) {
63979
+ _timestampProvider = dateTimestampProvider;
63980
+ }
63981
+ var _this = _super.call(this) || this;
63982
+ _this._bufferSize = _bufferSize;
63983
+ _this._windowTime = _windowTime;
63984
+ _this._timestampProvider = _timestampProvider;
63985
+ _this._buffer = [];
63986
+ _this._infiniteTimeWindow = true;
63987
+ _this._infiniteTimeWindow = _windowTime === Infinity;
63988
+ _this._bufferSize = Math.max(1, _bufferSize);
63989
+ _this._windowTime = Math.max(1, _windowTime);
63990
+ return _this;
63991
+ }
63992
+ ReplaySubject2.prototype.next = function(value) {
63993
+ var _a3 = this, isStopped = _a3.isStopped, _buffer = _a3._buffer, _infiniteTimeWindow = _a3._infiniteTimeWindow, _timestampProvider = _a3._timestampProvider, _windowTime = _a3._windowTime;
63994
+ if (!isStopped) {
63995
+ _buffer.push(value);
63996
+ !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
63997
+ }
63998
+ this._trimBuffer();
63999
+ _super.prototype.next.call(this, value);
64000
+ };
64001
+ ReplaySubject2.prototype._subscribe = function(subscriber) {
64002
+ this._throwIfClosed();
64003
+ this._trimBuffer();
64004
+ var subscription = this._innerSubscribe(subscriber);
64005
+ var _a3 = this, _infiniteTimeWindow = _a3._infiniteTimeWindow, _buffer = _a3._buffer;
64006
+ var copy2 = _buffer.slice();
64007
+ for (var i2 = 0; i2 < copy2.length && !subscriber.closed; i2 += _infiniteTimeWindow ? 1 : 2) {
64008
+ subscriber.next(copy2[i2]);
64009
+ }
64010
+ this._checkFinalizedStatuses(subscriber);
64011
+ return subscription;
64012
+ };
64013
+ ReplaySubject2.prototype._trimBuffer = function() {
64014
+ var _a3 = this, _bufferSize = _a3._bufferSize, _timestampProvider = _a3._timestampProvider, _buffer = _a3._buffer, _infiniteTimeWindow = _a3._infiniteTimeWindow;
64015
+ var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
64016
+ _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
64017
+ if (!_infiniteTimeWindow) {
64018
+ var now2 = _timestampProvider.now();
64019
+ var last = 0;
64020
+ for (var i2 = 1; i2 < _buffer.length && _buffer[i2] <= now2; i2 += 2) {
64021
+ last = i2;
64022
+ }
64023
+ last && _buffer.splice(0, last + 1);
64024
+ }
64025
+ };
64026
+ return ReplaySubject2;
64027
+ }(Subject);
64028
+ var Action = function(_super) {
64029
+ __extends(Action2, _super);
64030
+ function Action2(scheduler2, work) {
64031
+ return _super.call(this) || this;
64032
+ }
64033
+ Action2.prototype.schedule = function(state, delay) {
64034
+ return this;
64035
+ };
64036
+ return Action2;
64037
+ }(Subscription);
64038
+ var intervalProvider = {
64039
+ setInterval: function(handler2, timeout) {
64040
+ var args = [];
64041
+ for (var _i = 2; _i < arguments.length; _i++) {
64042
+ args[_i - 2] = arguments[_i];
64043
+ }
64044
+ return setInterval.apply(void 0, __spreadArray([handler2, timeout], __read(args)));
64045
+ },
64046
+ clearInterval: function(handle2) {
64047
+ return clearInterval(handle2);
64048
+ },
64049
+ delegate: void 0
64050
+ };
64051
+ var AsyncAction = function(_super) {
64052
+ __extends(AsyncAction2, _super);
64053
+ function AsyncAction2(scheduler2, work) {
64054
+ var _this = _super.call(this, scheduler2, work) || this;
64055
+ _this.scheduler = scheduler2;
64056
+ _this.work = work;
64057
+ _this.pending = false;
64058
+ return _this;
64059
+ }
64060
+ AsyncAction2.prototype.schedule = function(state, delay) {
64061
+ var _a3;
64062
+ if (delay === void 0) {
64063
+ delay = 0;
64064
+ }
64065
+ if (this.closed) {
64066
+ return this;
64067
+ }
64068
+ this.state = state;
64069
+ var id2 = this.id;
64070
+ var scheduler2 = this.scheduler;
64071
+ if (id2 != null) {
64072
+ this.id = this.recycleAsyncId(scheduler2, id2, delay);
64073
+ }
64074
+ this.pending = true;
64075
+ this.delay = delay;
64076
+ this.id = (_a3 = this.id) !== null && _a3 !== void 0 ? _a3 : this.requestAsyncId(scheduler2, this.id, delay);
64077
+ return this;
64078
+ };
64079
+ AsyncAction2.prototype.requestAsyncId = function(scheduler2, _id, delay) {
64080
+ if (delay === void 0) {
64081
+ delay = 0;
64082
+ }
64083
+ return intervalProvider.setInterval(scheduler2.flush.bind(scheduler2, this), delay);
64084
+ };
64085
+ AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id2, delay) {
64086
+ if (delay === void 0) {
64087
+ delay = 0;
64088
+ }
64089
+ if (delay != null && this.delay === delay && this.pending === false) {
64090
+ return id2;
64091
+ }
64092
+ if (id2 != null) {
64093
+ intervalProvider.clearInterval(id2);
64094
+ }
64095
+ return void 0;
64096
+ };
64097
+ AsyncAction2.prototype.execute = function(state, delay) {
64098
+ if (this.closed) {
64099
+ return new Error("executing a cancelled action");
64100
+ }
64101
+ this.pending = false;
64102
+ var error2 = this._execute(state, delay);
64103
+ if (error2) {
64104
+ return error2;
64105
+ } else if (this.pending === false && this.id != null) {
64106
+ this.id = this.recycleAsyncId(this.scheduler, this.id, null);
64107
+ }
64108
+ };
64109
+ AsyncAction2.prototype._execute = function(state, _delay) {
64110
+ var errored = false;
64111
+ var errorValue;
64112
+ try {
64113
+ this.work(state);
64114
+ } catch (e2) {
64115
+ errored = true;
64116
+ errorValue = e2 ? e2 : new Error("Scheduled action threw falsy error");
64117
+ }
64118
+ if (errored) {
64119
+ this.unsubscribe();
64120
+ return errorValue;
64121
+ }
64122
+ };
64123
+ AsyncAction2.prototype.unsubscribe = function() {
64124
+ if (!this.closed) {
64125
+ var _a3 = this, id2 = _a3.id, scheduler2 = _a3.scheduler;
64126
+ var actions = scheduler2.actions;
64127
+ this.work = this.state = this.scheduler = null;
64128
+ this.pending = false;
64129
+ arrRemove(actions, this);
64130
+ if (id2 != null) {
64131
+ this.id = this.recycleAsyncId(scheduler2, id2, null);
64132
+ }
64133
+ this.delay = null;
64134
+ _super.prototype.unsubscribe.call(this);
64135
+ }
64136
+ };
64137
+ return AsyncAction2;
64138
+ }(Action);
64139
+ var Scheduler = function() {
64140
+ function Scheduler2(schedulerActionCtor, now2) {
64141
+ if (now2 === void 0) {
64142
+ now2 = Scheduler2.now;
64143
+ }
64144
+ this.schedulerActionCtor = schedulerActionCtor;
64145
+ this.now = now2;
64146
+ }
64147
+ Scheduler2.prototype.schedule = function(work, delay, state) {
64148
+ if (delay === void 0) {
64149
+ delay = 0;
64150
+ }
64151
+ return new this.schedulerActionCtor(this, work).schedule(state, delay);
64152
+ };
64153
+ Scheduler2.now = dateTimestampProvider.now;
64154
+ return Scheduler2;
64155
+ }();
64156
+ var AsyncScheduler = function(_super) {
64157
+ __extends(AsyncScheduler2, _super);
64158
+ function AsyncScheduler2(SchedulerAction, now2) {
64159
+ if (now2 === void 0) {
64160
+ now2 = Scheduler.now;
64161
+ }
64162
+ var _this = _super.call(this, SchedulerAction, now2) || this;
64163
+ _this.actions = [];
64164
+ _this._active = false;
64165
+ return _this;
64166
+ }
64167
+ AsyncScheduler2.prototype.flush = function(action) {
64168
+ var actions = this.actions;
64169
+ if (this._active) {
64170
+ actions.push(action);
64171
+ return;
64172
+ }
64173
+ var error2;
64174
+ this._active = true;
64175
+ do {
64176
+ if (error2 = action.execute(action.state, action.delay)) {
64177
+ break;
64178
+ }
64179
+ } while (action = actions.shift());
64180
+ this._active = false;
64181
+ if (error2) {
64182
+ while (action = actions.shift()) {
64183
+ action.unsubscribe();
64184
+ }
64185
+ throw error2;
64186
+ }
64187
+ };
64188
+ return AsyncScheduler2;
64189
+ }(Scheduler);
64190
+ var asyncScheduler = new AsyncScheduler(AsyncAction);
64191
+ var async = asyncScheduler;
64192
+ var EMPTY = new Observable(function(subscriber) {
64193
+ return subscriber.complete();
64194
+ });
64195
+ function isScheduler(value) {
64196
+ return value && isFunction(value.schedule);
64197
+ }
64198
+ var isArrayLike = function(x2) {
64199
+ return x2 && typeof x2.length === "number" && typeof x2 !== "function";
64200
+ };
64201
+ function isPromise(value) {
64202
+ return isFunction(value === null || value === void 0 ? void 0 : value.then);
64203
+ }
64204
+ function isInteropObservable(input) {
64205
+ return isFunction(input[observable]);
64206
+ }
64207
+ function isAsyncIterable(obj) {
64208
+ return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
64209
+ }
64210
+ function createInvalidObservableTypeError(input) {
64211
+ return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
64212
+ }
64213
+ function getSymbolIterator() {
64214
+ if (typeof Symbol !== "function" || !Symbol.iterator) {
64215
+ return "@@iterator";
64216
+ }
64217
+ return Symbol.iterator;
64218
+ }
64219
+ var iterator = getSymbolIterator();
64220
+ function isIterable(input) {
64221
+ return isFunction(input === null || input === void 0 ? void 0 : input[iterator]);
64222
+ }
64223
+ function readableStreamLikeToAsyncGenerator(readableStream) {
64224
+ return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
64225
+ var reader, _a3, value, done;
64226
+ return __generator(this, function(_b) {
64227
+ switch (_b.label) {
64228
+ case 0:
64229
+ reader = readableStream.getReader();
64230
+ _b.label = 1;
64231
+ case 1:
64232
+ _b.trys.push([1, , 9, 10]);
64233
+ _b.label = 2;
64234
+ case 2:
64235
+ return [4, __await(reader.read())];
64236
+ case 3:
64237
+ _a3 = _b.sent(), value = _a3.value, done = _a3.done;
64238
+ if (!done)
64239
+ return [3, 5];
64240
+ return [4, __await(void 0)];
64241
+ case 4:
64242
+ return [2, _b.sent()];
64243
+ case 5:
64244
+ return [4, __await(value)];
64245
+ case 6:
64246
+ return [4, _b.sent()];
64247
+ case 7:
64248
+ _b.sent();
64249
+ return [3, 2];
64250
+ case 8:
64251
+ return [3, 10];
64252
+ case 9:
64253
+ reader.releaseLock();
64254
+ return [7];
64255
+ case 10:
64256
+ return [2];
64257
+ }
64258
+ });
64259
+ });
64260
+ }
64261
+ function isReadableStreamLike(obj) {
64262
+ return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
64263
+ }
64264
+ function innerFrom(input) {
64265
+ if (input instanceof Observable) {
64266
+ return input;
64267
+ }
64268
+ if (input != null) {
64269
+ if (isInteropObservable(input)) {
64270
+ return fromInteropObservable(input);
64271
+ }
64272
+ if (isArrayLike(input)) {
64273
+ return fromArrayLike(input);
64274
+ }
64275
+ if (isPromise(input)) {
64276
+ return fromPromise(input);
64277
+ }
64278
+ if (isAsyncIterable(input)) {
64279
+ return fromAsyncIterable(input);
64280
+ }
64281
+ if (isIterable(input)) {
64282
+ return fromIterable(input);
64283
+ }
64284
+ if (isReadableStreamLike(input)) {
64285
+ return fromReadableStreamLike(input);
64286
+ }
64287
+ }
64288
+ throw createInvalidObservableTypeError(input);
64289
+ }
64290
+ function fromInteropObservable(obj) {
64291
+ return new Observable(function(subscriber) {
64292
+ var obs = obj[observable]();
64293
+ if (isFunction(obs.subscribe)) {
64294
+ return obs.subscribe(subscriber);
64295
+ }
64296
+ throw new TypeError("Provided object does not correctly implement Symbol.observable");
64297
+ });
64298
+ }
64299
+ function fromArrayLike(array) {
64300
+ return new Observable(function(subscriber) {
64301
+ for (var i2 = 0; i2 < array.length && !subscriber.closed; i2++) {
64302
+ subscriber.next(array[i2]);
64303
+ }
64304
+ subscriber.complete();
64305
+ });
64306
+ }
64307
+ function fromPromise(promise) {
64308
+ return new Observable(function(subscriber) {
64309
+ promise.then(function(value) {
64310
+ if (!subscriber.closed) {
64311
+ subscriber.next(value);
64312
+ subscriber.complete();
64313
+ }
64314
+ }, function(err) {
64315
+ return subscriber.error(err);
64316
+ }).then(null, reportUnhandledError);
64317
+ });
64318
+ }
64319
+ function fromIterable(iterable) {
64320
+ return new Observable(function(subscriber) {
64321
+ var e_1, _a3;
64322
+ try {
64323
+ for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
64324
+ var value = iterable_1_1.value;
64325
+ subscriber.next(value);
64326
+ if (subscriber.closed) {
64327
+ return;
64328
+ }
64329
+ }
64330
+ } catch (e_1_1) {
64331
+ e_1 = { error: e_1_1 };
64332
+ } finally {
64333
+ try {
64334
+ if (iterable_1_1 && !iterable_1_1.done && (_a3 = iterable_1.return))
64335
+ _a3.call(iterable_1);
64336
+ } finally {
64337
+ if (e_1)
64338
+ throw e_1.error;
64339
+ }
64340
+ }
64341
+ subscriber.complete();
64342
+ });
64343
+ }
64344
+ function fromAsyncIterable(asyncIterable) {
64345
+ return new Observable(function(subscriber) {
64346
+ process$1(asyncIterable, subscriber).catch(function(err) {
64347
+ return subscriber.error(err);
64348
+ });
64349
+ });
64350
+ }
64351
+ function fromReadableStreamLike(readableStream) {
64352
+ return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
64353
+ }
64354
+ function process$1(asyncIterable, subscriber) {
64355
+ var asyncIterable_1, asyncIterable_1_1;
64356
+ var e_2, _a3;
64357
+ return __awaiter(this, void 0, void 0, function() {
64358
+ var value, e_2_1;
64359
+ return __generator(this, function(_b) {
64360
+ switch (_b.label) {
64361
+ case 0:
64362
+ _b.trys.push([0, 5, 6, 11]);
64363
+ asyncIterable_1 = __asyncValues(asyncIterable);
64364
+ _b.label = 1;
64365
+ case 1:
64366
+ return [4, asyncIterable_1.next()];
64367
+ case 2:
64368
+ if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done))
64369
+ return [3, 4];
64370
+ value = asyncIterable_1_1.value;
64371
+ subscriber.next(value);
64372
+ if (subscriber.closed) {
64373
+ return [2];
64374
+ }
64375
+ _b.label = 3;
64376
+ case 3:
64377
+ return [3, 1];
64378
+ case 4:
64379
+ return [3, 11];
64380
+ case 5:
64381
+ e_2_1 = _b.sent();
64382
+ e_2 = { error: e_2_1 };
64383
+ return [3, 11];
64384
+ case 6:
64385
+ _b.trys.push([6, , 9, 10]);
64386
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a3 = asyncIterable_1.return)))
64387
+ return [3, 8];
64388
+ return [4, _a3.call(asyncIterable_1)];
64389
+ case 7:
64390
+ _b.sent();
64391
+ _b.label = 8;
64392
+ case 8:
64393
+ return [3, 10];
64394
+ case 9:
64395
+ if (e_2)
64396
+ throw e_2.error;
64397
+ return [7];
64398
+ case 10:
64399
+ return [7];
64400
+ case 11:
64401
+ subscriber.complete();
64402
+ return [2];
64403
+ }
64404
+ });
64405
+ });
64406
+ }
64407
+ var EmptyError = createErrorClass(function(_super) {
64408
+ return function EmptyErrorImpl() {
64409
+ _super(this);
64410
+ this.name = "EmptyError";
64411
+ this.message = "no elements in sequence";
64412
+ };
64413
+ });
64414
+ function lastValueFrom(source, config2) {
64415
+ var hasConfig = typeof config2 === "object";
64416
+ return new Promise(function(resolve, reject) {
64417
+ var _hasValue = false;
64418
+ var _value;
64419
+ source.subscribe({
64420
+ next: function(value) {
64421
+ _value = value;
64422
+ _hasValue = true;
64423
+ },
64424
+ error: reject,
64425
+ complete: function() {
64426
+ if (_hasValue) {
64427
+ resolve(_value);
64428
+ } else if (hasConfig) {
64429
+ resolve(config2.defaultValue);
64430
+ } else {
64431
+ reject(new EmptyError());
64432
+ }
64433
+ }
64434
+ });
64435
+ });
64436
+ }
64437
+ function firstValueFrom(source, config2) {
64438
+ var hasConfig = typeof config2 === "object";
64439
+ return new Promise(function(resolve, reject) {
64440
+ var subscriber = new SafeSubscriber({
64441
+ next: function(value) {
64442
+ resolve(value);
64443
+ subscriber.unsubscribe();
64444
+ },
64445
+ error: reject,
64446
+ complete: function() {
64447
+ if (hasConfig) {
64448
+ resolve(config2.defaultValue);
64449
+ } else {
64450
+ reject(new EmptyError());
64451
+ }
64452
+ }
64453
+ });
64454
+ source.subscribe(subscriber);
64455
+ });
64456
+ }
64457
+ function isValidDate(value) {
64458
+ return value instanceof Date && !isNaN(value);
64459
+ }
64460
+ function map(project, thisArg) {
64461
+ return operate(function(source, subscriber) {
64462
+ var index2 = 0;
64463
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
64464
+ subscriber.next(project.call(thisArg, value, index2++));
64465
+ }));
64466
+ });
64467
+ }
64468
+ function timer(dueTime, intervalOrScheduler, scheduler2) {
64469
+ if (dueTime === void 0) {
64470
+ dueTime = 0;
64471
+ }
64472
+ if (scheduler2 === void 0) {
64473
+ scheduler2 = async;
64474
+ }
64475
+ var intervalDuration = -1;
64476
+ if (intervalOrScheduler != null) {
64477
+ if (isScheduler(intervalOrScheduler)) {
64478
+ scheduler2 = intervalOrScheduler;
64479
+ } else {
64480
+ intervalDuration = intervalOrScheduler;
64481
+ }
64482
+ }
64483
+ return new Observable(function(subscriber) {
64484
+ var due = isValidDate(dueTime) ? +dueTime - scheduler2.now() : dueTime;
64485
+ if (due < 0) {
64486
+ due = 0;
64487
+ }
64488
+ var n2 = 0;
64489
+ return scheduler2.schedule(function() {
64490
+ if (!subscriber.closed) {
64491
+ subscriber.next(n2++);
64492
+ if (0 <= intervalDuration) {
64493
+ this.schedule(void 0, intervalDuration);
64494
+ } else {
64495
+ subscriber.complete();
64496
+ }
64497
+ }
64498
+ }, due);
64499
+ });
64500
+ }
64501
+ function interval(period, scheduler2) {
64502
+ if (period === void 0) {
64503
+ period = 0;
64504
+ }
64505
+ if (scheduler2 === void 0) {
64506
+ scheduler2 = asyncScheduler;
64507
+ }
64508
+ if (period < 0) {
64509
+ period = 0;
64510
+ }
64511
+ return timer(period, period, scheduler2);
64512
+ }
64513
+ function not(pred, thisArg) {
64514
+ return function(value, index2) {
64515
+ return !pred.call(thisArg, value, index2);
64516
+ };
64517
+ }
64518
+ function filter(predicate, thisArg) {
64519
+ return operate(function(source, subscriber) {
64520
+ var index2 = 0;
64521
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
64522
+ return predicate.call(thisArg, value, index2++) && subscriber.next(value);
64523
+ }));
64524
+ });
64525
+ }
64526
+ function partition(source, predicate, thisArg) {
64527
+ return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))];
64528
+ }
64529
+ function take(count) {
64530
+ return count <= 0 ? function() {
64531
+ return EMPTY;
64532
+ } : operate(function(source, subscriber) {
64533
+ var seen2 = 0;
64534
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
64535
+ if (++seen2 <= count) {
64536
+ subscriber.next(value);
64537
+ if (count <= seen2) {
64538
+ subscriber.complete();
64539
+ }
64540
+ }
64541
+ }));
64542
+ });
64543
+ }
64544
+ var Msg = /* @__PURE__ */ ((_Msg) => {
64545
+ _Msg["Msg"] = "msg";
64546
+ return _Msg;
64547
+ })(Msg || {});
64548
+ var SynAck = /* @__PURE__ */ ((SynAck2) => {
64549
+ SynAck2["Ack"] = "ack";
64550
+ SynAck2["Syn"] = "syn";
64551
+ return SynAck2;
64552
+ })(SynAck || {});
64553
+ var fromServiceWorkerToReceiver = (self2, options) => (clientId) => ({
64554
+ postMessage: (message) => {
64555
+ const { errorCatcher = () => () => {
64556
+ }, ...rest } = options ?? {};
64557
+ self2.clients.get(clientId).then((client) => client == null ? void 0 : client.postMessage(message, rest)).catch(errorCatcher(clientId, message));
64558
+ }
64559
+ });
64560
+ var fromWindowToReceiver = (self2, options) => {
64561
+ return {
64562
+ postMessage: (message) => {
64563
+ self2.postMessage(message, (options == null ? void 0 : options.targetOrigin) ?? "*", options == null ? void 0 : options.transfer);
64564
+ }
64565
+ };
64566
+ };
64567
+ var adapters = {
64568
+ fromChild(window2) {
64569
+ return {
64570
+ from: window2,
64571
+ to: fromWindowToReceiver(window2.parent)
64572
+ };
64573
+ },
64574
+ fromParent(iframe) {
64575
+ if (iframe.contentWindow) {
64576
+ if (iframe.ownerDocument.defaultView) {
64577
+ return {
64578
+ from: iframe.ownerDocument.defaultView,
64579
+ to: fromWindowToReceiver(iframe.contentWindow)
64580
+ };
64581
+ }
64582
+ throw new TypeError("iframe ownerDocument.defaultView is null");
64583
+ }
64584
+ throw new TypeError("iframe contentWindow is null");
64585
+ },
64586
+ fromServiceWorkerToReceiver,
64587
+ fromWindowToReceiver
64588
+ };
64589
+ var synackKeys = Object.values(SynAck);
64590
+ var msgKeys = Object.values(Msg);
64591
+ var getData = (message) => message.data;
64592
+ var synackFilter = (type) => (data) => data.type === type;
64593
+ var isPostChannelMessage = (message) => {
64594
+ const data = message.data;
64595
+ return typeof data === "object" && data !== null && "type" in data && typeof data.type === "string" && [...synackKeys, ...msgKeys].includes(data.type) && "instance" in data && typeof data.instance === "string" && "content" in data;
64596
+ };
64597
+ var generateDarkColorHex = () => {
64598
+ let color2 = "#";
64599
+ for (let i2 = 0; i2 < 3; i2++) {
64600
+ color2 += `0${Math.floor(Math.random() * Math.pow(16, 2) / 2).toString(16)}`.slice(-2);
64601
+ }
64602
+ return color2;
64603
+ };
64604
+ var PostChannel = (_a = class {
64605
+ constructor(listener, opts) {
64606
+ __publicField(this, "__instance");
64607
+ __publicField(this, "__sender");
64608
+ __publicField(this, "__listener");
64609
+ __publicField(this, "__log");
64610
+ __publicField(this, "__receiver");
64611
+ __publicField(this, "__handler");
64612
+ __publicField(this, "__subscription");
64613
+ __publicField(this, "__okToWrite");
64614
+ __publicField(this, "__write$");
64615
+ __publicField(this, "__synack$");
64616
+ __publicField(this, "__user$");
64617
+ __publicField(this, "__colors");
64618
+ const events = new Subject();
64619
+ this.__instance = opts.instance ?? _a.__generateId();
64620
+ this.__listener = listener;
64621
+ this.__sender = opts.from;
64622
+ this.__receiver = opts.to;
64623
+ this.__handler = (message) => events.next(message);
64624
+ this.__log = opts.log && opts.log.bind(this);
64625
+ this.__subscription = new Subscription();
64626
+ this.__sender.addEventListener("message", this.__handler);
64627
+ const [synackMessages, userMessages] = partition(
64628
+ events.pipe(filter(isPostChannelMessage), map(getData)),
64629
+ (message) => synackKeys.includes(message.type)
64630
+ );
64631
+ this.__synack$ = synackMessages;
64632
+ this.__user$ = userMessages;
64633
+ this.__okToWrite = new ReplaySubject(1);
64634
+ this.__write$ = this.__okToWrite.pipe(take(1));
64635
+ const color2 = generateDarkColorHex();
64636
+ this.__colors = {
64637
+ bg: `${color2}22`,
64638
+ fg: color2
64639
+ };
64640
+ this.__connect(
64641
+ (opts == null ? void 0 : opts.period) ? opts.period : 10
64642
+ );
64643
+ }
64644
+ __connect(period) {
64645
+ const synSubscription = interval(period).subscribe(() => this.__receiver.postMessage({
64646
+ content: this.__instance,
64647
+ instance: this.__instance,
64648
+ type: "syn"
64649
+ /* Syn */
64650
+ }));
64651
+ this.__subscription.add(synSubscription);
64652
+ this.__subscription.add(
64653
+ this.__user$.subscribe((message) => {
64654
+ lastValueFrom(this.__okToWrite.pipe(take(1))).then((foreignInstance) => {
64655
+ if (message.instance === foreignInstance) {
64656
+ this.__listener(message.content);
64657
+ if (message._id !== void 0) {
64658
+ this.__receiver.postMessage({
64659
+ content: message._id,
64660
+ instance: this.__instance,
64661
+ type: "ack"
64662
+ /* Ack */
64663
+ });
64664
+ }
64665
+ }
64666
+ }).catch((err) => {
64667
+ console.error("Unexpected error", err.message);
64668
+ });
64669
+ })
64670
+ );
64671
+ this.__subscription.add(
64672
+ this.__synack$.pipe(
64673
+ filter(synackFilter(
64674
+ "ack"
64675
+ /* Ack */
64676
+ )),
64677
+ filter(({ content: content2 }) => content2 === this.instance),
64678
+ take(1)
64679
+ ).subscribe(({ instance: foreignInstance }) => {
64680
+ this.__okToWrite.next(foreignInstance);
64681
+ synSubscription.unsubscribe();
64682
+ })
64683
+ );
64684
+ this.__subscription.add(
64685
+ this.__synack$.pipe(
64686
+ // must check whether is not short-circuiting
64687
+ // in an infinite loop by syncing with itself
64688
+ filter(synackFilter(
64689
+ "syn"
64690
+ /* Syn */
64691
+ )),
64692
+ filter(({ instance: foreignInstance }) => foreignInstance !== this.instance),
64693
+ take(1)
64694
+ ).subscribe(({ content: content2 }) => {
64695
+ this.__receiver.postMessage({
64696
+ content: content2,
64697
+ instance: this.instance,
64698
+ type: "ack"
64699
+ /* Ack */
64700
+ });
64701
+ })
64702
+ );
64703
+ }
64704
+ __write(message, _id) {
64705
+ this.__subscription.add(
64706
+ this.__write$.subscribe(() => {
64707
+ var _a3;
64708
+ const outgoingMessage = {
64709
+ _id,
64710
+ content: message,
64711
+ instance: this.__instance,
64712
+ type: "msg"
64713
+ /* Msg */
64714
+ };
64715
+ this.__receiver.postMessage(outgoingMessage);
64716
+ (_a3 = this.__log) == null ? void 0 : _a3.call(this, message);
64717
+ })
64718
+ );
64719
+ }
64720
+ disconnect() {
64721
+ this.__subscription.unsubscribe();
64722
+ this.__sender.removeEventListener("message", this.__handler);
64723
+ }
64724
+ send(message) {
64725
+ this.__write(message);
64726
+ }
64727
+ ackSend(message) {
64728
+ let done;
64729
+ const promise = new Promise((resolve) => {
64730
+ done = resolve;
64731
+ });
64732
+ const messageId = _a.__generateId();
64733
+ this.__subscription.add(
64734
+ this.__synack$.pipe(
64735
+ filter(synackFilter(
64736
+ "ack"
64737
+ /* Ack */
64738
+ )),
64739
+ filter(({ content: content2 }) => content2 === messageId),
64740
+ take(1)
64741
+ ).subscribe(() => done())
64742
+ );
64743
+ this.__write(message, messageId);
64744
+ return promise;
64745
+ }
64746
+ get instance() {
64747
+ return this.__instance;
64748
+ }
64749
+ get colors() {
64750
+ return this.__colors;
64751
+ }
64752
+ /**
64753
+ * signals readiness on listening and cannot fail but keeps hanging
64754
+ * if not resolved
64755
+ */
64756
+ get ready() {
64757
+ return firstValueFrom(this.__write$).then(() => {
64758
+ });
64759
+ }
64760
+ }, __publicField(_a, "__generateId", () => {
64761
+ if (window) {
64762
+ return window.crypto.randomUUID();
64763
+ }
64764
+ return __require("crypto").randomUUID();
64765
+ }), __publicField(_a, "utils", {
64766
+ isPostChannelMessage
64767
+ }), _a);
64768
+ var createPostChannel = (listener, opts) => {
64769
+ const channel = new PostChannel(listener, opts);
64770
+ return channel.ready.then(() => channel);
64771
+ };
64772
+ var __defProp$2 = Object.defineProperty;
64773
+ var __defNormalProp$2 = (obj, key2, value) => key2 in obj ? __defProp$2(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
64774
+ var __publicField$2 = (obj, key2, value) => {
64775
+ __defNormalProp$2(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
64776
+ return value;
64777
+ };
64778
+ class Lexer {
64779
+ constructor(input) {
64780
+ __publicField$2(this, "_input");
64781
+ __publicField$2(this, "_length");
64782
+ __publicField$2(this, "_idx", 0);
64783
+ __publicField$2(
64784
+ this,
64785
+ "_mode",
64786
+ 0
64787
+ /* Literal */
64788
+ );
64789
+ __publicField$2(this, "_literals", []);
64790
+ __publicField$2(this, "_variables", []);
64791
+ __publicField$2(this, "_braketCount", 0);
64792
+ __publicField$2(this, "_done", false);
64793
+ this._input = input;
64794
+ this._length = input.length;
64795
+ }
64796
+ concatToLastLiteral(concat) {
64797
+ this._literals.push(this._literals.pop().concat(concat));
64798
+ }
64799
+ concatToLastVariable(concat) {
64800
+ this._variables.push(this._variables.pop().concat(concat));
64801
+ }
64802
+ get() {
64803
+ const rawLiterals = [...this._literals];
64804
+ const literals = Object.assign([], rawLiterals);
64805
+ Object.defineProperty(literals, "raw", { value: rawLiterals, writable: false });
64806
+ return {
64807
+ literals,
64808
+ variables: this._variables
64809
+ };
64810
+ }
64811
+ run() {
64812
+ if (this._length === 0) {
64813
+ this._literals.push("");
64814
+ }
64815
+ while (this._idx < this._length) {
64816
+ const char = this._input.charAt(this._idx);
64817
+ switch (this._mode) {
64818
+ case 0: {
64819
+ if (this._literals.length === 0) {
64820
+ this._literals.push("");
64821
+ }
64822
+ if (char === "{" && this._idx + 1 !== this._length && this._input.charAt(this._idx + 1) === "{") {
64823
+ this._literals.push("");
64824
+ this._variables.push("");
64825
+ this._mode = 1;
64826
+ this._idx += 1;
64827
+ } else {
64828
+ this.concatToLastLiteral(char);
64829
+ }
64830
+ break;
64831
+ }
64832
+ case 1:
64833
+ if (char === "}" && this._input.charAt(this._idx + 1) === "}") {
64834
+ this._mode = 0;
64835
+ this._idx += 1;
64836
+ } else {
64837
+ this.concatToLastVariable(char);
64838
+ }
64839
+ break;
64840
+ }
64841
+ this._idx += 1;
64842
+ }
64843
+ if (this._mode === 1) {
64844
+ this._literals.pop();
64845
+ this.concatToLastLiteral("{{".concat(this._variables.pop()));
63376
64846
  }
63377
64847
  this._done = true;
63378
64848
  }
@@ -63447,15 +64917,15 @@ const keys2 = {
63447
64917
  };
63448
64918
  const registerChannels = () => ({
63449
64919
  componentsExplorerVisible: new BehaviorSubject(false),
63450
- configuration: new ReplaySubject(),
64920
+ configuration: new ReplaySubject$1(),
63451
64921
  focus: new BehaviorSubject(void 0),
63452
- infos: new ReplaySubject(),
63453
- mocks: new ReplaySubject(),
64922
+ infos: new ReplaySubject$1(),
64923
+ mocks: new ReplaySubject$1(),
63454
64924
  mode: new BehaviorSubject("select"),
63455
- notification: new ReplaySubject(),
63456
- setSourceMap: new ReplaySubject(1),
63457
- swSourceMapAck: new ReplaySubject(1),
63458
- updated: new Subject(),
64925
+ notification: new ReplaySubject$1(),
64926
+ setSourceMap: new ReplaySubject$1(1),
64927
+ swSourceMapAck: new ReplaySubject$1(1),
64928
+ updated: new Subject$1(),
63459
64929
  uppercaseTags: /* @__PURE__ */ new Set()
63460
64930
  });
63461
64931
  const nextMode = (mode) => {
@@ -63470,8 +64940,7 @@ const nextMode = (mode) => {
63470
64940
  return next;
63471
64941
  };
63472
64942
  const swMakeListener = (_2) => (message) => {
63473
- const { data } = message;
63474
- switch (data.type) {
64943
+ switch (message.type) {
63475
64944
  }
63476
64945
  };
63477
64946
  function useChannel(channel, reducer, initialValue) {
@@ -63493,15 +64962,15 @@ const registerServiceWorker = async (self2, channels) => {
63493
64962
  if (!registration.active) {
63494
64963
  throw new TypeError("smth went wrong on sw activation");
63495
64964
  }
63496
- return new src_default(swMakeListener(), window.navigator.serviceWorker, registration.active);
64965
+ return createPostChannel(swMakeListener(), { from: window.navigator.serviceWorker, instance: "preview-to-service-worker", to: registration.active });
63497
64966
  })
63498
64967
  ]).then(([, channel]) => channel);
63499
64968
  };
63500
- const parentMakeListener = (self2, channels) => (message) => {
63501
- const { data } = message;
63502
- switch (data.type) {
64969
+ const parentMakeListener = (self2, channels) => (_message) => {
64970
+ const message = _message;
64971
+ switch (message.type) {
63503
64972
  case "options": {
63504
- const { content: { disableOverlay, redirectTo, timeout, run: run2, language } } = data;
64973
+ const { content: { disableOverlay, redirectTo, timeout, run: run2, language } } = message;
63505
64974
  if (run2) {
63506
64975
  channels.swSourceMapAck.next(0);
63507
64976
  }
@@ -63520,22 +64989,22 @@ const parentMakeListener = (self2, channels) => (message) => {
63520
64989
  break;
63521
64990
  }
63522
64991
  case "toggle-components-explorer":
63523
- channels.componentsExplorerVisible.next(data.content.visible);
64992
+ channels.componentsExplorerVisible.next(message.content.visible);
63524
64993
  break;
63525
64994
  case "ctrl-space":
63526
64995
  nextMode(channels.mode);
63527
64996
  break;
63528
64997
  case "new-configuration":
63529
- channels.configuration.next({ ...data.content, type: "reset" });
64998
+ channels.configuration.next({ ...message.content, type: "reset" });
63530
64999
  break;
63531
65000
  case "update":
63532
- channels.configuration.next({ ...data.content, type: "update" });
65001
+ channels.configuration.next({ ...message.content, type: "update" });
63533
65002
  break;
63534
65003
  case "focus-element":
63535
- channels.focus.next(data.content);
65004
+ channels.focus.next(message.content);
63536
65005
  break;
63537
65006
  case "set-source-map": {
63538
- const { content: content2 } = data;
65007
+ const { content: content2 } = message;
63539
65008
  channels.setSourceMap.next(Object.entries(content2).reduce((acc, [from2, to]) => {
63540
65009
  try {
63541
65010
  const { href: fromUrl } = new URL(from2, self2.location.href);
@@ -63552,11 +65021,11 @@ const parentMakeListener = (self2, channels) => (message) => {
63552
65021
  }
63553
65022
  }
63554
65023
  };
63555
- const registerParent = (self2, channels) => new src_default(
65024
+ const registerParent = (self2, channels) => createPostChannel(
63556
65025
  parentMakeListener(self2, channels),
63557
- self2,
63558
- fromWindowToReceiver(self2.parent),
63559
65026
  {
65027
+ from: self2,
65028
+ instance: "preview-to-main-thread",
63560
65029
  log(message) {
63561
65030
  {
63562
65031
  console.assert(self2.parent !== self2);
@@ -63568,7 +65037,8 @@ const registerParent = (self2, channels) => new src_default(
63568
65037
  console.log(message.content);
63569
65038
  console.groupEnd();
63570
65039
  }
63571
- }
65040
+ },
65041
+ to: adapters.fromWindowToReceiver(self2.parent)
63572
65042
  }
63573
65043
  );
63574
65044
  const translations = {
@@ -66764,13 +68234,13 @@ const JsonViewer = ({ schema }) => {
66764
68234
  };
66765
68235
  const getLibraryKey = (component) => component.source || "__other_libraries_key__";
66766
68236
  const getLibraryLabel = (component) => {
66767
- var _a2;
66768
- return ((_a2 = component.libraryName) != null ? _a2 : component.source) || getTranslation("components.components-explorer.other-libs.name");
68237
+ var _a3;
68238
+ return ((_a3 = component.libraryName) != null ? _a3 : component.source) || getTranslation("components.components-explorer.other-libs.name");
66769
68239
  };
66770
68240
  const beautifyTag = (tag) => tag.split("-").map((_tag) => _tag.charAt(0).toUpperCase() + _tag.slice(1)).join(" ");
66771
68241
  const getComponentLabel = (component) => {
66772
- var _a2;
66773
- return (_a2 = component.info.label) != null ? _a2 : beautifyTag(component.tag);
68242
+ var _a3;
68243
+ return (_a3 = component.info.label) != null ? _a3 : beautifyTag(component.tag);
66774
68244
  };
66775
68245
  const ComponentsExplorer = ({ info$, hide: hide2 }) => {
66776
68246
  const [searchValue, setSearchValue] = reactExports.useState("");
@@ -67031,8 +68501,8 @@ const unfocus = (element2, mapping) => {
67031
68501
  if (originalStyle) {
67032
68502
  const { css: css2, rest, subscription } = originalStyle;
67033
68503
  rest.forEach((el2) => {
67034
- var _a2;
67035
- return (_a2 = el2.__unfocus_handler) == null ? void 0 : _a2.call(el2);
68504
+ var _a3;
68505
+ return (_a3 = el2.__unfocus_handler) == null ? void 0 : _a3.call(el2);
67036
68506
  });
67037
68507
  subscription.unsubscribe();
67038
68508
  originalStyle.elementToFocus.forEach((el2, idx) => {
@@ -67048,25 +68518,25 @@ function focus(document2, obs$, mode$) {
67048
68518
  const subscription = obs$.pipe(
67049
68519
  pairwise(),
67050
68520
  tap(([current]) => {
67051
- var _a2;
68521
+ var _a3;
67052
68522
  if (current !== void 0) {
67053
68523
  const prev = getElement(document2, current);
67054
68524
  if (prev !== null) {
67055
- (_a2 = prev.__unfocus_handler) == null ? void 0 : _a2.call(prev);
68525
+ (_a3 = prev.__unfocus_handler) == null ? void 0 : _a3.call(prev);
67056
68526
  unfocus(prev, stylesMap);
67057
68527
  }
67058
68528
  }
67059
68529
  }),
67060
- map$3(([, next]) => next),
67061
- filter(noUndefined),
67062
- map$3((next) => {
68530
+ map$4(([, next]) => next),
68531
+ filter$1(noUndefined),
68532
+ map$4((next) => {
67063
68533
  const [first, ...rest] = next.selectors;
67064
68534
  const otherElements = rest.reduce((arr, selector) => {
67065
- var _a2;
68535
+ var _a3;
67066
68536
  const el2 = getBySelector(selector);
67067
68537
  if (el2) {
67068
68538
  arr.push(el2);
67069
- const result = (_a2 = el2.__focus_handler) == null ? void 0 : _a2.call(el2);
68539
+ const result = (_a3 = el2.__focus_handler) == null ? void 0 : _a3.call(el2);
67070
68540
  if (result && "then" in result) {
67071
68541
  result.catch(noop2);
67072
68542
  }
@@ -67075,11 +68545,11 @@ function focus(document2, obs$, mode$) {
67075
68545
  }, []);
67076
68546
  return { first, next, otherElements };
67077
68547
  }),
67078
- map$3((next) => ({ ...next, firstElement: getBySelector(next.first) })),
67079
- filter((next) => next.firstElement !== null),
67080
- map$3((next) => {
67081
- var _a2, _b;
67082
- return { ...next, focus: (_b = (_a2 = next.firstElement).__focus_handler) == null ? void 0 : _b.call(_a2) };
68548
+ map$4((next) => ({ ...next, firstElement: getBySelector(next.first) })),
68549
+ filter$1((next) => next.firstElement !== null),
68550
+ map$4((next) => {
68551
+ var _a3, _b;
68552
+ return { ...next, focus: (_b = (_a3 = next.firstElement).__focus_handler) == null ? void 0 : _b.call(_a3) };
67083
68553
  }),
67084
68554
  concatMap(({ focus: focusPromise, ...rest }) => {
67085
68555
  const promise = focusPromise && "then" in focusPromise ? focusPromise : Promise.resolve(focusPromise != null ? focusPromise : rest.firstElement);
@@ -67087,17 +68557,17 @@ function focus(document2, obs$, mode$) {
67087
68557
  })
67088
68558
  ).subscribe(({ otherElements, next, firstElement, focus: focusContext }) => {
67089
68559
  const cssKeys = Object.keys(next.style);
67090
- const stylePendingChanges = new Subscription();
68560
+ const stylePendingChanges = new Subscription$1();
67091
68561
  const elementToFocus = toArray$1(focusContext != null ? focusContext : firstElement).filter(Boolean);
67092
68562
  const initialStyles = { css: [], elementToFocus, rest: otherElements, subscription: stylePendingChanges };
67093
68563
  const styles2 = cssKeys.reduce((acc, key2) => {
67094
68564
  elementToFocus.forEach((el2, idx) => {
67095
- var _a2;
67096
- acc.css[idx] = Object.assign((_a2 = acc.css[idx]) != null ? _a2 : {}, { [key2]: el2.style[key2] });
68565
+ var _a3;
68566
+ acc.css[idx] = Object.assign((_a3 = acc.css[idx]) != null ? _a3 : {}, { [key2]: el2.style[key2] });
67097
68567
  });
67098
68568
  return acc;
67099
68569
  }, initialStyles);
67100
- stylePendingChanges.add(mode$.pipe(filter((val) => val === "select"), take(1)).subscribe(() => {
68570
+ stylePendingChanges.add(mode$.pipe(filter$1((val) => val === "select"), take$1(1)).subscribe(() => {
67101
68571
  elementToFocus.forEach((el2) => {
67102
68572
  Object.assign(el2.style, next.style);
67103
68573
  });
@@ -67481,8 +68951,8 @@ function parseContent(buffer2, content2, extraProperties) {
67481
68951
  return acc;
67482
68952
  }, { override: {}, props: {} });
67483
68953
  const initialTagExtraProperties = Array.from(extraProperties.keys()).map((prop) => {
67484
- var _a2;
67485
- return ".".concat(prop, "=${").concat((_a2 = override[prop]) != null ? _a2 : prop, "}");
68954
+ var _a3;
68955
+ return ".".concat(prop, "=${").concat((_a3 = override[prop]) != null ? _a3 : prop, "}");
67486
68956
  });
67487
68957
  const initialTagProperties = Object.entries(props).reduce((acc, [name2, value]) => {
67488
68958
  switch (typeof value) {
@@ -67710,7 +69180,7 @@ const lexer = async (input) => {
67710
69180
  }
67711
69181
  return cache.get(hash);
67712
69182
  };
67713
- class Bus extends ReplaySubject {
69183
+ class Bus extends ReplaySubject$1 {
67714
69184
  }
67715
69185
  function createPool() {
67716
69186
  const array = [];
@@ -67747,14 +69217,14 @@ async function createComposerContext(content2, { extraProperties, context = {} }
67747
69217
  return (container, options) => D(htmlTemplate, container, options);
67748
69218
  }
67749
69219
  async function premount(config2, proxyWindow = window, reporter2 = console.error) {
67750
- var _a2;
69220
+ var _a3;
67751
69221
  let uris = [];
67752
69222
  let importmap;
67753
69223
  let modules = {};
67754
69224
  let done = Promise.resolve();
67755
69225
  if (config2.sources) {
67756
69226
  const { sources } = config2;
67757
- importmap = !Array.isArray(sources) && typeof sources !== "string" ? (_a2 = sources.importmap) != null ? _a2 : {} : {};
69227
+ importmap = !Array.isArray(sources) && typeof sources !== "string" ? (_a3 = sources.importmap) != null ? _a3 : {} : {};
67758
69228
  try {
67759
69229
  proxyWindow.importShim.addImportMap(importmap);
67760
69230
  } catch (err) {
@@ -67791,9 +69261,9 @@ async function render(config2, container, context = {}) {
67791
69261
  });
67792
69262
  }
67793
69263
  const fromErrorToNotification = (error2) => {
67794
- var _a2;
69264
+ var _a3;
67795
69265
  return {
67796
- data: { message: error2.message, name: error2.name, stack: (_a2 = error2.stack) != null ? _a2 : "" },
69266
+ data: { message: error2.message, name: error2.name, stack: (_a3 = error2.stack) != null ? _a3 : "" },
67797
69267
  description: "preview.notifications.error.description",
67798
69268
  message: "preview.notifications.error.message",
67799
69269
  status: "error"
@@ -67886,13 +69356,13 @@ const collectInfos = (postChannel, info$, addInfo) => info$.pipe(
67886
69356
  return of$1({ info: { libraryName: tag.libraryName, source: tag.source, ...translateObject({ description, descriptionLong, label }), ...rest }, tag: tag.name });
67887
69357
  }),
67888
69358
  bufferTime(BUFFER_TIME),
67889
- filter((newInfos) => newInfos.length > 0)
69359
+ filter$1((newInfos) => newInfos.length > 0)
67890
69360
  ).subscribe({
67891
69361
  error: (error2) => reporter(postChannel, error2),
67892
69362
  next: (extras) => addInfo(extras)
67893
69363
  });
67894
69364
  const collectMocks = (postChannel, subjects, info$) => info$.pipe(
67895
- map$3(
69365
+ map$4(
67896
69366
  ([, { __manifest: { mocks = {} }, tag }]) => [tag.name, mocks]
67897
69367
  )
67898
69368
  ).subscribe({
@@ -67967,9 +69437,9 @@ function fetchMockFactory(instance, fetchFactory, windowHref) {
67967
69437
  );
67968
69438
  const routes = fetchFactory(context);
67969
69439
  return routes.map(({ url, method = "GET", notify = false, handler: fetchHandler = () => Promise.resolve(new Response()) }) => {
67970
- var _a2;
69440
+ var _a3;
67971
69441
  const info = compileObject({ ...url, method }, context);
67972
- const matcher = new URL(info.pathname, (_a2 = info.origin) != null ? _a2 : windowHref);
69442
+ const matcher = new URL(info.pathname, (_a3 = info.origin) != null ? _a3 : windowHref);
67973
69443
  return [matcher.href, method, (injectedInfo, init) => fetchHandler(injectedInfo, init).finally(() => {
67974
69444
  if (notify) {
67975
69445
  this.notify(fetchNotification(method, matcher));
@@ -67994,9 +69464,9 @@ class FetchMockStore extends Map {
67994
69464
  this.notify = notify;
67995
69465
  }
67996
69466
  add(obj, value) {
67997
- var _a2, _b;
69467
+ var _a3, _b;
67998
69468
  const { method, url } = obj;
67999
- const methodMap = (_a2 = this.get(method)) != null ? _a2 : /* @__PURE__ */ new Map();
69469
+ const methodMap = (_a3 = this.get(method)) != null ? _a3 : /* @__PURE__ */ new Map();
68000
69470
  const urls = (_b = this.__urlMap.get(method)) != null ? _b : [];
68001
69471
  methodMap.set(url, value);
68002
69472
  urls.push(url);
@@ -68004,7 +69474,7 @@ class FetchMockStore extends Map {
68004
69474
  this.__urlMap.set(method, urls);
68005
69475
  }
68006
69476
  match(obj) {
68007
- var _a2;
69477
+ var _a3;
68008
69478
  const { method, url } = obj;
68009
69479
  const urls = this.__urlMap.get(method);
68010
69480
  if (urls === void 0) {
@@ -68023,7 +69493,7 @@ class FetchMockStore extends Map {
68023
69493
  if (id2 === void 0) {
68024
69494
  return;
68025
69495
  }
68026
- return (_a2 = this.get(method)) == null ? void 0 : _a2.get(urls[id2]);
69496
+ return (_a3 = this.get(method)) == null ? void 0 : _a3.get(urls[id2]);
68027
69497
  }
68028
69498
  }
68029
69499
  const storeSaverMapFactory = (store2) => ([url, method, fetchHandler]) => store2.add({ method, url }, fetchHandler);
@@ -68038,8 +69508,8 @@ async function handler(store2, instances, factory, href) {
68038
69508
  fetchMockFactory.call(store2, instances, factory, href).map(storeSaverMap)
68039
69509
  ).then(noop2);
68040
69510
  }
68041
- var _a;
68042
- const MANIFEST_TIMEOUT = (_a = window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__) != null ? _a : 5e3;
69511
+ var _a2;
69512
+ const MANIFEST_TIMEOUT = (_a2 = window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__) != null ? _a2 : 5e3;
68043
69513
  const printHeaders = (headers) => {
68044
69514
  const obj = {};
68045
69515
  headers.forEach((val, key2) => {
@@ -68048,11 +69518,11 @@ const printHeaders = (headers) => {
68048
69518
  return JSON.stringify(obj);
68049
69519
  };
68050
69520
  const fetchPrint = (window2, url, init, resHeaders = new Headers()) => {
68051
- var _a2;
69521
+ var _a22;
68052
69522
  const style2 = window2.origin === "null" ? { background: "antiquewhite", color: "brown" } : { background: "cyan", color: "blue" };
68053
69523
  console.groupCollapsed("%c Fetching from ".concat(window2.origin, " "), Object.entries(style2).map(([key2, val]) => "".concat(key2, ": ").concat(val)).join("; "));
68054
69524
  console.info(
68055
- "a component fetched with method " + "".concat((_a2 = init == null ? void 0 : init.method) != null ? _a2 : "GET", " resource at %c ").concat(url.href, " got a response with headers ").concat(printHeaders(resHeaders)),
69525
+ "a component fetched with method " + "".concat((_a22 = init == null ? void 0 : init.method) != null ? _a22 : "GET", " resource at %c ").concat(url.href, " got a response with headers ").concat(printHeaders(resHeaders)),
68056
69526
  "background: lightgreen; color: darkgreen"
68057
69527
  );
68058
69528
  console.groupEnd();
@@ -68069,12 +69539,12 @@ async function mock(postChannel, subjects, contexts, tags = []) {
68069
69539
  const urlMaker = urlMakerFactory(this);
68070
69540
  const store2 = new FetchMockStore(this.notify.bind(this));
68071
69541
  await Promise.all(tags.map(async (tag) => {
68072
- var _a2;
69542
+ var _a22;
68073
69543
  let fetchFactory = () => [];
68074
69544
  const raced = await Promise.race([
68075
- lastValueFrom(timer(MANIFEST_TIMEOUT)),
68076
- lastValueFrom(
68077
- subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === tag), take(1))
69545
+ lastValueFrom$1(timer$1(MANIFEST_TIMEOUT)),
69546
+ lastValueFrom$1(
69547
+ subjects.mocks.pipe(filter$1(([incomingTag]) => incomingTag === tag), take$1(1))
68078
69548
  )
68079
69549
  ]);
68080
69550
  if (raced === 0) {
@@ -68085,15 +69555,15 @@ async function mock(postChannel, subjects, contexts, tags = []) {
68085
69555
  fetchFactory = fetch2;
68086
69556
  }
68087
69557
  }
68088
- const instancesCarryingMocks = (_a2 = contexts.get(tag)) != null ? _a2 : [];
69558
+ const instancesCarryingMocks = (_a22 = contexts.get(tag)) != null ? _a22 : [];
68089
69559
  return handler(store2, instancesCarryingMocks, fetchFactory, href);
68090
69560
  })).catch(
68091
69561
  (error2) => error2 instanceof Error && errorHandler(postChannel, error2)
68092
69562
  );
68093
69563
  const mockedFetch = async (info, init) => {
68094
- var _a2;
69564
+ var _a22;
68095
69565
  const url = toURL(urlMaker, info);
68096
- const mockImplementation = store2.match({ method: (_a2 = init == null ? void 0 : init.method) != null ? _a2 : "GET", url });
69566
+ const mockImplementation = store2.match({ method: (_a22 = init == null ? void 0 : init.method) != null ? _a22 : "GET", url });
68097
69567
  if (mockImplementation !== void 0) {
68098
69568
  return mockImplementation(url, init).then((res) => {
68099
69569
  {
@@ -68112,9 +69582,9 @@ async function mock(postChannel, subjects, contexts, tags = []) {
68112
69582
  let fetchFactory = () => [];
68113
69583
  if (isCustomTag(instance.tag)) {
68114
69584
  const raced = await Promise.race([
68115
- lastValueFrom(timer(MANIFEST_TIMEOUT)),
68116
- lastValueFrom(
68117
- subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === instance.tag), take(1))
69585
+ lastValueFrom$1(timer$1(MANIFEST_TIMEOUT)),
69586
+ lastValueFrom$1(
69587
+ subjects.mocks.pipe(filter$1(([incomingTag]) => incomingTag === instance.tag), take$1(1))
68118
69588
  )
68119
69589
  ]);
68120
69590
  if (raced === 0) {
@@ -68199,8 +69669,8 @@ class InMemoryStorage extends Map {
68199
69669
  super.clear();
68200
69670
  }
68201
69671
  getItem(key2) {
68202
- var _a2;
68203
- return (_a2 = super.get(key2)) != null ? _a2 : null;
69672
+ var _a3;
69673
+ return (_a3 = super.get(key2)) != null ? _a3 : null;
68204
69674
  }
68205
69675
  key() {
68206
69676
  return null;
@@ -68219,11 +69689,11 @@ function domPatch(frame) {
68219
69689
  const element2 = originalCreateElement.call(this, tagName, options);
68220
69690
  if (isAnchor(element2)) {
68221
69691
  const notifyAnchorClick = () => {
68222
- var _a2;
69692
+ var _a3;
68223
69693
  return frame.notify({
68224
69694
  data: {
68225
69695
  href: trimLocationOrigin(frame.location.origin, new URL(element2.href, frame.location.href)),
68226
- target: (_a2 = element2.getAttribute("target")) != null ? _a2 : "_self"
69696
+ target: (_a3 = element2.getAttribute("target")) != null ? _a3 : "_self"
68227
69697
  },
68228
69698
  description: "preview.notifications.anchor.description",
68229
69699
  message: "preview.notifications.anchor.message",
@@ -68355,7 +69825,7 @@ function appendOverlay(self2, mode$) {
68355
69825
  const isVisible = () => overlay.style.display === visibleOverlayDisplay;
68356
69826
  const swap2 = () => isVisible() ? overlay.style.display = "none" : overlay.style.display = visibleOverlayDisplay;
68357
69827
  const subscription = mode$.pipe(
68358
- filter((next) => {
69828
+ filter$1((next) => {
68359
69829
  if (self2.__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__) {
68360
69830
  return next === "interact";
68361
69831
  }
@@ -68396,7 +69866,7 @@ function createLifecycle(frame, postChannel) {
68396
69866
  bootstrap: bootstrap.bind(composerFrame),
68397
69867
  mocks: { fetch: /* @__PURE__ */ new Map() },
68398
69868
  postChannel,
68399
- subscription: new Subscription(),
69869
+ subscription: new Subscription$1(),
68400
69870
  unmount: unmount.bind(composerFrame),
68401
69871
  update: update.bind(composerFrame)
68402
69872
  });
@@ -68460,8 +69930,8 @@ const run = (frame, renderRoot, postChannel, channels) => {
68460
69930
  const { context } = next;
68461
69931
  done = queue.add([
68462
69932
  () => {
68463
- var _a2, _b, _c;
68464
- return (_c = (_a2 = frame.proxyWindow) == null ? void 0 : (_b = _a2.fetch).update) == null ? void 0 : _c.call(_b, context);
69933
+ var _a3, _b, _c;
69934
+ return (_c = (_a3 = frame.proxyWindow) == null ? void 0 : (_b = _a3.fetch).update) == null ? void 0 : _c.call(_b, context);
68465
69935
  },
68466
69936
  () => update.call(frame, content2, renderRoot).finally(() => channels.updated.next(0))
68467
69937
  ]);
@@ -68503,10 +69973,10 @@ const interceptCORSFetch = (self2, notification) => {
68503
69973
  }
68504
69974
  const originalFetch = self2.fetch.bind(self2);
68505
69975
  self2.fetch = (input, init) => {
68506
- var _a2;
69976
+ var _a3;
68507
69977
  const url = toURL(urlMaker, input);
68508
69978
  if (isSameDocumentOriginRequest(document2, url)) {
68509
- notification.next(fetchNotification((_a2 = init == null ? void 0 : init.method) != null ? _a2 : "GET", url));
69979
+ notification.next(fetchNotification((_a3 = init == null ? void 0 : init.method) != null ? _a3 : "GET", url));
68510
69980
  }
68511
69981
  return originalFetch(input, init);
68512
69982
  };
@@ -68534,7 +70004,7 @@ const createComposerApplication = (self2, postChannel, channels) => {
68534
70004
  };
68535
70005
  };
68536
70006
  function registerParentWindowSenders(chs) {
68537
- const subscription = new Subscription();
70007
+ const subscription = new Subscription$1();
68538
70008
  subscription.add(
68539
70009
  chs.updated.subscribe(() => this.send({
68540
70010
  content: {},
@@ -68568,7 +70038,7 @@ function registerParentWindowSenders(chs) {
68568
70038
  };
68569
70039
  }
68570
70040
  function registerServiceWorkerSenders(channels) {
68571
- const subscription = new Subscription();
70041
+ const subscription = new Subscription$1();
68572
70042
  subscription.add(
68573
70043
  channels.setSourceMap.subscribe(
68574
70044
  (message) => {
@@ -68596,7 +70066,7 @@ function registerCleanups(window2, fns) {
68596
70066
  (async (self2) => {
68597
70067
  const channels = registerChannels();
68598
70068
  const swRegistration = await registerServiceWorker(self2);
68599
- const parentWindowRegistration = registerParent(self2, channels);
70069
+ const parentWindowRegistration = await registerParent(self2, channels);
68600
70070
  const serviceWorkerSenderCleanup = registerServiceWorkerSenders.call(swRegistration, channels);
68601
70071
  const parentWindowSenderCleanup = registerParentWindowSenders.call(parentWindowRegistration, channels);
68602
70072
  const listenerCleanup = registerEventListeners(