@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$5() {
3220
+ function noop$6() {
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$5,
3378
- error: defaultErrorHandler,
3379
- complete: noop$5
3378
+ next: noop$6,
3379
+ error: defaultErrorHandler$1,
3380
+ complete: noop$6
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(props) {
16573
16489
  }
16574
16490
  return children;
16575
16491
  }
16576
- function noop$4() {
16492
+ function noop$5() {
16577
16493
  }
16578
16494
  var Animate = function(_React$Component) {
16579
16495
  _default$br(Animate2, _React$Component);
@@ -16795,10 +16711,10 @@ Animate.defaultProps = {
16795
16711
  transitionEnter: true,
16796
16712
  transitionLeave: true,
16797
16713
  transitionAppear: false,
16798
- onEnd: noop$4,
16799
- onEnter: noop$4,
16800
- onLeave: noop$4,
16801
- onAppear: noop$4
16714
+ onEnd: noop$5,
16715
+ onEnter: noop$5,
16716
+ onLeave: noop$5,
16717
+ onAppear: noop$5
16802
16718
  };
16803
16719
  var _initialiseProps$2 = function _initialiseProps() {
16804
16720
  var _this5 = this;
@@ -17992,7 +17908,7 @@ function _typeof$u(obj) {
17992
17908
  }
17993
17909
  return _typeof$u(obj);
17994
17910
  }
17995
- function noop$3() {
17911
+ function noop$4() {
17996
17912
  }
17997
17913
  function getKeyFromChildrenIndex(child, menuEventKey, index2) {
17998
17914
  var prefix = menuEventKey || "";
@@ -20169,7 +20085,7 @@ var _initialiseProps$1 = function _initialiseProps2() {
20169
20085
  return _this3.getTargetElement;
20170
20086
  };
20171
20087
  };
20172
- function noop$2() {
20088
+ function noop$3() {
20173
20089
  }
20174
20090
  function returnEmptyString() {
20175
20091
  return "";
@@ -20504,9 +20420,9 @@ Trigger.defaultProps = {
20504
20420
  prefixCls: "rc-trigger-popup",
20505
20421
  getPopupClassNameFromAlign: returnEmptyString,
20506
20422
  getDocument: returnDocument,
20507
- onPopupVisibleChange: noop$2,
20508
- afterPopupVisibleChange: noop$2,
20509
- onPopupAlign: noop$2,
20423
+ onPopupVisibleChange: noop$3,
20424
+ afterPopupVisibleChange: noop$3,
20425
+ onPopupAlign: noop$3,
20510
20426
  popupClassName: "",
20511
20427
  mouseEnterDelay: 0,
20512
20428
  mouseLeaveDelay: 0.1,
@@ -21554,12 +21470,12 @@ var SubMenu = /* @__PURE__ */ function(_React$Component) {
21554
21470
  return SubMenu2;
21555
21471
  }(reactExports.Component);
21556
21472
  SubMenu.defaultProps = {
21557
- onMouseEnter: noop$3,
21558
- onMouseLeave: noop$3,
21559
- onTitleMouseEnter: noop$3,
21560
- onTitleMouseLeave: noop$3,
21561
- onTitleClick: noop$3,
21562
- manualRef: noop$3,
21473
+ onMouseEnter: noop$4,
21474
+ onMouseLeave: noop$4,
21475
+ onTitleMouseEnter: noop$4,
21476
+ onTitleMouseLeave: noop$4,
21477
+ onTitleClick: noop$4,
21478
+ manualRef: noop$4,
21563
21479
  mode: "vertical",
21564
21480
  title: ""
21565
21481
  };
@@ -22256,7 +22172,7 @@ var SubPopupMenu = /* @__PURE__ */ function(_React$Component) {
22256
22172
  active: !childProps.disabled && isActive,
22257
22173
  multiple: props2.multiple,
22258
22174
  onClick: function onClick(e2) {
22259
- (childProps.onClick || noop$3)(e2);
22175
+ (childProps.onClick || noop$4)(e2);
22260
22176
  _this.onClick(e2);
22261
22177
  },
22262
22178
  onItemHover: _this.onItemHover,
@@ -22370,7 +22286,7 @@ SubPopupMenu.defaultProps = {
22370
22286
  visible: true,
22371
22287
  focusable: true,
22372
22288
  style: {},
22373
- manualRef: noop$3
22289
+ manualRef: noop$4
22374
22290
  };
22375
22291
  var connected$1 = connect()(SubPopupMenu);
22376
22292
  function _typeof$n(obj) {
@@ -22673,10 +22589,10 @@ var Menu = /* @__PURE__ */ function(_React$Component) {
22673
22589
  }(reactExports.Component);
22674
22590
  Menu.defaultProps = {
22675
22591
  selectable: true,
22676
- onClick: noop$3,
22677
- onSelect: noop$3,
22678
- onOpenChange: noop$3,
22679
- onDeselect: noop$3,
22592
+ onClick: noop$4,
22593
+ onSelect: noop$4,
22594
+ onOpenChange: noop$4,
22595
+ onDeselect: noop$4,
22680
22596
  defaultSelectedKeys: [],
22681
22597
  defaultOpenKeys: [],
22682
22598
  subMenuOpenDelay: 0.1,
@@ -23408,10 +23324,10 @@ var MenuItem = /* @__PURE__ */ function(_React$Component) {
23408
23324
  }(reactExports.Component);
23409
23325
  MenuItem.isMenuItem = true;
23410
23326
  MenuItem.defaultProps = {
23411
- onSelect: noop$3,
23412
- onMouseEnter: noop$3,
23413
- onMouseLeave: noop$3,
23414
- manualRef: noop$3
23327
+ onSelect: noop$4,
23328
+ onMouseEnter: noop$4,
23329
+ onMouseLeave: noop$4,
23330
+ manualRef: noop$4
23415
23331
  };
23416
23332
  var connected = connect(function(_ref, _ref2) {
23417
23333
  var activeKey = _ref.activeKey, selectedKeys = _ref.selectedKeys;
@@ -24156,7 +24072,7 @@ var SelectTrigger = /* @__PURE__ */ function(_React$Component) {
24156
24072
  key: "render",
24157
24073
  value: function render2() {
24158
24074
  var _popupClassName;
24159
- var _a2 = this.props, onPopupFocus = _a2.onPopupFocus, empty2 = _a2.empty, props = __rest$e(_a2, ["onPopupFocus", "empty"]);
24075
+ var _a3 = this.props, onPopupFocus = _a3.onPopupFocus, empty2 = _a3.empty, props = __rest$e(_a3, ["onPopupFocus", "empty"]);
24160
24076
  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;
24161
24077
  var dropdownPrefixCls = this.getDropdownPrefixCls();
24162
24078
  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);
@@ -24308,7 +24224,7 @@ function isHidden$1(node2) {
24308
24224
  return !node2 || node2.offsetParent === null;
24309
24225
  }
24310
24226
  var SELECT_EMPTY_VALUE_KEY = "RC_SELECT_EMPTY_VALUE_KEY";
24311
- var noop$1 = function noop() {
24227
+ var noop$2 = function noop() {
24312
24228
  return null;
24313
24229
  };
24314
24230
  function chaining() {
@@ -25482,13 +25398,13 @@ Select$1.defaultProps = {
25482
25398
  showSearch: true,
25483
25399
  allowClear: false,
25484
25400
  placeholder: "",
25485
- onChange: noop$1,
25486
- onFocus: noop$1,
25487
- onBlur: noop$1,
25488
- onSelect: noop$1,
25489
- onSearch: noop$1,
25490
- onDeselect: noop$1,
25491
- onInputKeyDown: noop$1,
25401
+ onChange: noop$2,
25402
+ onFocus: noop$2,
25403
+ onBlur: noop$2,
25404
+ onSelect: noop$2,
25405
+ onSearch: noop$2,
25406
+ onDeselect: noop$2,
25407
+ onInputKeyDown: noop$2,
25492
25408
  dropdownMatchSelectWidth: true,
25493
25409
  dropdownStyle: {},
25494
25410
  dropdownMenuStyle: {},
@@ -45452,7 +45368,7 @@ var Button = /* @__PURE__ */ function(_React$Component) {
45452
45368
  _this.renderButton = function(_ref) {
45453
45369
  var _classNames;
45454
45370
  var getPrefixCls2 = _ref.getPrefixCls, autoInsertSpaceInButton = _ref.autoInsertSpaceInButton;
45455
- 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"]);
45371
+ 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"]);
45456
45372
  var _this$state = _this.state, loading = _this$state.loading, hasTwoCNChar = _this$state.hasTwoCNChar;
45457
45373
  var prefixCls = getPrefixCls2("btn", customizePrefixCls);
45458
45374
  var autoInsertSpace = autoInsertSpaceInButton !== false;
@@ -45883,7 +45799,7 @@ var Search = /* @__PURE__ */ function(_React$Component) {
45883
45799
  };
45884
45800
  _this.renderSearch = function(_ref) {
45885
45801
  var getPrefixCls2 = _ref.getPrefixCls;
45886
- 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"]);
45802
+ 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"]);
45887
45803
  delete restProps.onSearch;
45888
45804
  delete restProps.loading;
45889
45805
  var prefixCls = getPrefixCls2("input-search", customizePrefixCls);
@@ -46635,7 +46551,7 @@ var Password = /* @__PURE__ */ function(_React$Component) {
46635
46551
  }, {
46636
46552
  key: "render",
46637
46553
  value: function render2() {
46638
- 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"]);
46554
+ 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"]);
46639
46555
  var suffixIcon = visibilityToggle && this.getIcon();
46640
46556
  var inputClassName = classNames$1(prefixCls, className, _defineProperty$6({}, "".concat(prefixCls, "-").concat(size), !!size));
46641
46557
  return /* @__PURE__ */ reactExports.createElement(Input$1, _extends$b({}, omit(restProps, ["suffix"]), {
@@ -46817,7 +46733,7 @@ var Select = /* @__PURE__ */ function(_React$Component) {
46817
46733
  _this.renderSelect = function(_ref) {
46818
46734
  var _classNames;
46819
46735
  var getContextPopupContainer = _ref.getPopupContainer, getPrefixCls2 = _ref.getPrefixCls, renderEmpty3 = _ref.renderEmpty;
46820
- 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"]);
46736
+ 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"]);
46821
46737
  var rest = omit(restProps, ["inputIcon"]);
46822
46738
  var prefixCls = getPrefixCls2("select", customizePrefixCls);
46823
46739
  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);
@@ -47675,7 +47591,7 @@ var CheckableTag = /* @__PURE__ */ function(_React$Component) {
47675
47591
  _this.renderCheckableTag = function(_ref) {
47676
47592
  var _classNames;
47677
47593
  var getPrefixCls2 = _ref.getPrefixCls;
47678
- var _a2 = _this.props, customizePrefixCls = _a2.prefixCls, className = _a2.className, checked = _a2.checked, restProps = __rest$6(_a2, ["prefixCls", "className", "checked"]);
47594
+ var _a3 = _this.props, customizePrefixCls = _a3.prefixCls, className = _a3.className, checked = _a3.checked, restProps = __rest$6(_a3, ["prefixCls", "className", "checked"]);
47679
47595
  var prefixCls = getPrefixCls2("tag", customizePrefixCls);
47680
47596
  var cls = classNames$1(prefixCls, (_classNames = {}, _defineProperty$3(_classNames, "".concat(prefixCls, "-checkable"), true), _defineProperty$3(_classNames, "".concat(prefixCls, "-checkable-checked"), checked), _classNames), className);
47681
47597
  delete restProps.onChange;
@@ -47841,7 +47757,7 @@ var Tag = /* @__PURE__ */ function(_React$Component) {
47841
47757
  _this.setVisible(false, e2);
47842
47758
  };
47843
47759
  _this.renderTag = function(configProps) {
47844
- var _a2 = _this.props, children = _a2.children, otherProps = __rest$5(_a2, ["children"]);
47760
+ var _a3 = _this.props, children = _a3.children, otherProps = __rest$5(_a3, ["children"]);
47845
47761
  var isNeedWave = "onClick" in otherProps || children && children.type === "a";
47846
47762
  var tagProps = omit(otherProps, ["onClose", "afterClose", "color", "visible", "closable", "prefixCls"]);
47847
47763
  return isNeedWave ? /* @__PURE__ */ reactExports.createElement(Wave, null, /* @__PURE__ */ reactExports.createElement("span", _extends$6({}, tagProps, {
@@ -48108,7 +48024,7 @@ var TransButton = /* @__PURE__ */ function(_React$Component) {
48108
48024
  }, {
48109
48025
  key: "render",
48110
48026
  value: function render2() {
48111
- var _a2 = this.props, style2 = _a2.style, noStyle = _a2.noStyle, restProps = __rest$4(_a2, ["style", "noStyle"]);
48027
+ var _a3 = this.props, style2 = _a3.style, noStyle = _a3.noStyle, restProps = __rest$4(_a3, ["style", "noStyle"]);
48112
48028
  return /* @__PURE__ */ reactExports.createElement("div", _extends$5({
48113
48029
  role: "button",
48114
48030
  tabIndex: 0,
@@ -49075,8 +48991,8 @@ var __rest$3 = function(s2, e2) {
49075
48991
  }
49076
48992
  return t2;
49077
48993
  };
49078
- var Typography$2 = function Typography(_a2, ref2) {
49079
- 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"]);
48994
+ var Typography$2 = function Typography(_a3, ref2) {
48995
+ 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"]);
49080
48996
  var mergedRef = ref2;
49081
48997
  if (setContentRef) {
49082
48998
  warning$2(false, "Typography", "`setContentRef` is deprecated. Please use `ref` instead.");
@@ -50042,7 +49958,7 @@ var Base = /* @__PURE__ */ function(_React$Component) {
50042
49958
  value: function renderContent() {
50043
49959
  var _this2 = this;
50044
49960
  var _this$state3 = this.state, ellipsisContent = _this$state3.ellipsisContent, isEllipsis = _this$state3.isEllipsis, expanded = _this$state3.expanded;
50045
- 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"]);
49961
+ 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"]);
50046
49962
  var _this$getEllipsis5 = this.getEllipsis(), rows = _this$getEllipsis5.rows;
50047
49963
  var textProps = omit(restProps, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "underline", "mark", "code", "delete", "underline", "strong"].concat(_toConsumableArray(configConsumerProps)));
50048
49964
  var cssEllipsis = this.canUseCSSEllipsis();
@@ -50147,8 +50063,8 @@ var __rest$1 = function(s2, e2) {
50147
50063
  }
50148
50064
  return t2;
50149
50065
  };
50150
- var Text = function Text2(_a2) {
50151
- var ellipsis = _a2.ellipsis, restProps = __rest$1(_a2, ["ellipsis"]);
50066
+ var Text = function Text2(_a3) {
50067
+ var ellipsis = _a3.ellipsis, restProps = __rest$1(_a3, ["ellipsis"]);
50152
50068
  warning$2(_typeof$1(ellipsis) !== "object", "Typography.Text", "`ellipsis` only supports boolean value.");
50153
50069
  return /* @__PURE__ */ reactExports.createElement(Base$1, _extends$2({}, restProps, {
50154
50070
  ellipsis: !!ellipsis,
@@ -57491,7 +57407,7 @@ const deserializer = ($2, _2) => {
57491
57407
  return unpair;
57492
57408
  };
57493
57409
  const deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
57494
- const EMPTY = "";
57410
+ const EMPTY$1 = "";
57495
57411
  const { toString } = {};
57496
57412
  const { keys: keys$1 } = Object;
57497
57413
  const typeOf = (value) => {
@@ -57501,17 +57417,17 @@ const typeOf = (value) => {
57501
57417
  const asString = toString.call(value).slice(8, -1);
57502
57418
  switch (asString) {
57503
57419
  case "Array":
57504
- return [ARRAY, EMPTY];
57420
+ return [ARRAY, EMPTY$1];
57505
57421
  case "Object":
57506
- return [OBJECT, EMPTY];
57422
+ return [OBJECT, EMPTY$1];
57507
57423
  case "Date":
57508
- return [DATE, EMPTY];
57424
+ return [DATE, EMPTY$1];
57509
57425
  case "RegExp":
57510
- return [REGEXP, EMPTY];
57426
+ return [REGEXP, EMPTY$1];
57511
57427
  case "Map":
57512
- return [MAP, EMPTY];
57428
+ return [MAP, EMPTY$1];
57513
57429
  case "Set":
57514
- return [SET, EMPTY];
57430
+ return [SET, EMPTY$1];
57515
57431
  }
57516
57432
  if (asString.includes("Array"))
57517
57433
  return [ARRAY, asString];
@@ -60144,12 +60060,12 @@ function footnoteDefinition(node2, _2, state, info) {
60144
60060
  );
60145
60061
  tracker.shift(4);
60146
60062
  value += tracker.move(
60147
- state.indentLines(state.containerFlow(node2, tracker.current()), map$2)
60063
+ state.indentLines(state.containerFlow(node2, tracker.current()), map$3)
60148
60064
  );
60149
60065
  exit2();
60150
60066
  return value;
60151
60067
  }
60152
- function map$2(line, index2, blank) {
60068
+ function map$3(line, index2, blank) {
60153
60069
  if (index2 === 0) {
60154
60070
  return line;
60155
60071
  }
@@ -60350,12 +60266,12 @@ function blockquote(node2, _2, state, info) {
60350
60266
  tracker.shift(2);
60351
60267
  const value = state.indentLines(
60352
60268
  state.containerFlow(node2, tracker.current()),
60353
- map$1
60269
+ map$2
60354
60270
  );
60355
60271
  exit2();
60356
60272
  return value;
60357
60273
  }
60358
- function map$1(line, _2, blank) {
60274
+ function map$2(line, _2, blank) {
60359
60275
  return ">" + (blank ? "" : " ") + line;
60360
60276
  }
60361
60277
  function patternInScope(stack, pattern) {
@@ -60430,7 +60346,7 @@ function code$1(node2, _2, state, info) {
60430
60346
  const suffix2 = marker === "`" ? "GraveAccent" : "Tilde";
60431
60347
  if (formatCodeAsIndented(node2, state)) {
60432
60348
  const exit3 = state.enter("codeIndented");
60433
- const value2 = state.indentLines(raw, map);
60349
+ const value2 = state.indentLines(raw, map$1);
60434
60350
  exit3();
60435
60351
  return value2;
60436
60352
  }
@@ -60471,7 +60387,7 @@ function code$1(node2, _2, state, info) {
60471
60387
  exit2();
60472
60388
  return value;
60473
60389
  }
60474
- function map(line, _2, blank) {
60390
+ function map$1(line, _2, blank) {
60475
60391
  return (blank ? "" : " ") + line;
60476
60392
  }
60477
60393
  function checkQuote(state) {
@@ -62701,267 +62617,1821 @@ const SvgDiamondsFourBig = (props) => /* @__PURE__ */ reactExports.createElement
62701
62617
  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" }));
62702
62618
  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" }));
62703
62619
  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" }));
62704
- var fromWindowToReceiver = (self2, options) => {
62705
- return {
62706
- postMessage: (message) => {
62707
- self2.postMessage(message, (options == null ? void 0 : options.targetOrigin) ?? "*", options == null ? void 0 : options.transfer);
62708
- }
62620
+ var __require = /* @__PURE__ */ ((x2) => typeof commonjsRequire !== "undefined" ? commonjsRequire : typeof Proxy !== "undefined" ? new Proxy(x2, {
62621
+ get: (a2, b2) => (typeof commonjsRequire !== "undefined" ? commonjsRequire : a2)[b2]
62622
+ }) : x2)(function(x2) {
62623
+ if (typeof commonjsRequire !== "undefined")
62624
+ return commonjsRequire.apply(this, arguments);
62625
+ throw Error('Dynamic require of "' + x2 + '" is not supported');
62626
+ });
62627
+ var extendStatics = function(d2, b2) {
62628
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d22, b22) {
62629
+ d22.__proto__ = b22;
62630
+ } || function(d22, b22) {
62631
+ for (var p2 in b22)
62632
+ if (Object.prototype.hasOwnProperty.call(b22, p2))
62633
+ d22[p2] = b22[p2];
62709
62634
  };
62635
+ return extendStatics(d2, b2);
62710
62636
  };
62711
- var SynAck = /* @__PURE__ */ ((SynAck2) => {
62712
- SynAck2["Ack"] = "ack";
62713
- SynAck2["Syn"] = "syn";
62714
- return SynAck2;
62715
- })(SynAck || {});
62716
- var synackKeys = Object.values(SynAck);
62717
- var getData = (message) => message.data;
62718
- var synackFilter = (type) => (data) => data.type === type.toString();
62719
- var isPostChannelMessage = (message) => {
62720
- const data = message.data;
62721
- return typeof data === "object" && data !== null && "type" in data && typeof data.type === "string" && "instance" in data && typeof data.instance === "string" && "content" in data;
62722
- };
62723
- var generateDarkColorHex = () => {
62724
- let color2 = "#";
62725
- for (let i2 = 0; i2 < 3; i2++) {
62726
- color2 += `0${Math.floor(Math.random() * Math.pow(16, 2) / 2).toString(16)}`.slice(-2);
62637
+ function __extends(d2, b2) {
62638
+ if (typeof b2 !== "function" && b2 !== null)
62639
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
62640
+ extendStatics(d2, b2);
62641
+ function __() {
62642
+ this.constructor = d2;
62727
62643
  }
62728
- return color2;
62729
- };
62730
- var PostChannel = class {
62731
- constructor(listener, from2, to, opts) {
62732
- __publicField(this, "__generateId");
62733
- __publicField(this, "__instance");
62734
- __publicField(this, "__colors");
62735
- __publicField(this, "__listener");
62736
- __publicField(this, "__log");
62737
- __publicField(this, "__receiver");
62738
- __publicField(this, "__subscription");
62739
- __publicField(this, "__okToWrite");
62740
- __publicField(this, "__write$");
62741
- __publicField(this, "__recv$");
62742
- this.__generateId = () => globalThis.crypto.randomUUID();
62743
- const instance = this.__generateId();
62744
- const messages = new ReplaySubject();
62745
- const fromSubscription = fromEvent(from2, "message").pipe(filter(isPostChannelMessage)).subscribe(messages);
62746
- this.__subscription = new Subscription();
62747
- this.__subscription.add(fromSubscription);
62748
- this.__okToWrite = new ReplaySubject(1);
62749
- this.__write$ = this.__okToWrite.pipe(take(1));
62750
- this.__recv$ = messages.asObservable();
62751
- this.__listener = listener;
62752
- this.__log = (opts == null ? void 0 : opts.log) && opts.log.bind(this);
62753
- this.__instance = instance;
62754
- const color2 = generateDarkColorHex();
62755
- this.__colors = {
62756
- bg: `${color2}22`,
62757
- fg: color2
62644
+ d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
62645
+ }
62646
+ function __awaiter(thisArg, _arguments, P2, generator) {
62647
+ function adopt(value) {
62648
+ return value instanceof P2 ? value : new P2(function(resolve) {
62649
+ resolve(value);
62650
+ });
62651
+ }
62652
+ return new (P2 || (P2 = Promise))(function(resolve, reject) {
62653
+ function fulfilled(value) {
62654
+ try {
62655
+ step2(generator.next(value));
62656
+ } catch (e2) {
62657
+ reject(e2);
62658
+ }
62659
+ }
62660
+ function rejected(value) {
62661
+ try {
62662
+ step2(generator["throw"](value));
62663
+ } catch (e2) {
62664
+ reject(e2);
62665
+ }
62666
+ }
62667
+ function step2(result) {
62668
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
62669
+ }
62670
+ step2((generator = generator.apply(thisArg, _arguments || [])).next());
62671
+ });
62672
+ }
62673
+ function __generator(thisArg, body) {
62674
+ var _2 = { label: 0, sent: function() {
62675
+ if (t2[0] & 1)
62676
+ throw t2[1];
62677
+ return t2[1];
62678
+ }, trys: [], ops: [] }, f2, y2, t2, g2;
62679
+ return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
62680
+ return this;
62681
+ }), g2;
62682
+ function verb(n2) {
62683
+ return function(v2) {
62684
+ return step2([n2, v2]);
62758
62685
  };
62759
- this.__receiver = to;
62760
- this.__connect(
62761
- instance,
62762
- (opts == null ? void 0 : opts.period) ? opts.period : 10
62763
- );
62764
62686
  }
62765
- __connect(instance, period) {
62766
- const synSubscription = interval(period).subscribe(() => this.__receiver.postMessage({
62767
- content: instance,
62768
- instance,
62769
- type: "syn".toString()
62770
- }));
62771
- this.__subscription.add(synSubscription);
62772
- this.__subscription.add(
62773
- this.__recv$.pipe(
62774
- map$3(getData),
62775
- filter(synackFilter(
62776
- "ack"
62777
- /* Ack */
62778
- )),
62779
- filter(({ content: content2 }) => content2 === instance),
62780
- take(1)
62781
- ).subscribe(({ instance: foreignInstance }) => {
62782
- this.__okToWrite.next(0);
62783
- this.__subscription.add(
62784
- this.__recv$.pipe(
62785
- filter(
62786
- ({ data: { type, instance: incomingInstance } }) => !synackKeys.includes(type) && incomingInstance === foreignInstance
62787
- )
62788
- ).subscribe((message) => {
62789
- this.__listener(message);
62790
- const { data } = message;
62791
- if (data._id !== void 0) {
62792
- this.__receiver.postMessage({
62793
- ...data,
62794
- content: data,
62795
- instance,
62796
- type: "ack"
62797
- /* Ack */
62798
- });
62687
+ function step2(op) {
62688
+ if (f2)
62689
+ throw new TypeError("Generator is already executing.");
62690
+ while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
62691
+ try {
62692
+ 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)
62693
+ return t2;
62694
+ if (y2 = 0, t2)
62695
+ op = [op[0] & 2, t2.value];
62696
+ switch (op[0]) {
62697
+ case 0:
62698
+ case 1:
62699
+ t2 = op;
62700
+ break;
62701
+ case 4:
62702
+ _2.label++;
62703
+ return { value: op[1], done: false };
62704
+ case 5:
62705
+ _2.label++;
62706
+ y2 = op[1];
62707
+ op = [0];
62708
+ continue;
62709
+ case 7:
62710
+ op = _2.ops.pop();
62711
+ _2.trys.pop();
62712
+ continue;
62713
+ default:
62714
+ if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
62715
+ _2 = 0;
62716
+ continue;
62799
62717
  }
62800
- })
62801
- );
62802
- synSubscription.unsubscribe();
62803
- })
62804
- );
62805
- this.__subscription.add(
62806
- this.__recv$.pipe(
62807
- map$3(getData),
62808
- filter(synackFilter(
62809
- "syn"
62810
- /* Syn */
62811
- )),
62812
- // must check whether is not short-circuiting
62813
- // in an infinite loop by syncing with itself
62814
- filter(({ instance: foreignInstance }) => foreignInstance !== instance),
62815
- take(1)
62816
- ).subscribe(({ content: content2 }) => {
62817
- this.__receiver.postMessage({
62818
- content: content2,
62819
- instance,
62820
- type: "ack"
62821
- /* Ack */
62822
- });
62823
- })
62824
- );
62718
+ if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
62719
+ _2.label = op[1];
62720
+ break;
62721
+ }
62722
+ if (op[0] === 6 && _2.label < t2[1]) {
62723
+ _2.label = t2[1];
62724
+ t2 = op;
62725
+ break;
62726
+ }
62727
+ if (t2 && _2.label < t2[2]) {
62728
+ _2.label = t2[2];
62729
+ _2.ops.push(op);
62730
+ break;
62731
+ }
62732
+ if (t2[2])
62733
+ _2.ops.pop();
62734
+ _2.trys.pop();
62735
+ continue;
62736
+ }
62737
+ op = body.call(thisArg, _2);
62738
+ } catch (e2) {
62739
+ op = [6, e2];
62740
+ y2 = 0;
62741
+ } finally {
62742
+ f2 = t2 = 0;
62743
+ }
62744
+ if (op[0] & 5)
62745
+ throw op[1];
62746
+ return { value: op[0] ? op[1] : void 0, done: true };
62825
62747
  }
62826
- __write(message, messageId) {
62827
- const extra = {};
62828
- if (messageId !== void 0) {
62829
- extra._id = messageId;
62748
+ }
62749
+ function __values(o2) {
62750
+ var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
62751
+ if (m2)
62752
+ return m2.call(o2);
62753
+ if (o2 && typeof o2.length === "number")
62754
+ return {
62755
+ next: function() {
62756
+ if (o2 && i2 >= o2.length)
62757
+ o2 = void 0;
62758
+ return { value: o2 && o2[i2++], done: !o2 };
62759
+ }
62760
+ };
62761
+ throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
62762
+ }
62763
+ function __read(o2, n2) {
62764
+ var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
62765
+ if (!m2)
62766
+ return o2;
62767
+ var i2 = m2.call(o2), r2, ar = [], e2;
62768
+ try {
62769
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
62770
+ ar.push(r2.value);
62771
+ } catch (error2) {
62772
+ e2 = { error: error2 };
62773
+ } finally {
62774
+ try {
62775
+ if (r2 && !r2.done && (m2 = i2["return"]))
62776
+ m2.call(i2);
62777
+ } finally {
62778
+ if (e2)
62779
+ throw e2.error;
62830
62780
  }
62831
- this.__subscription.add(
62832
- this.__write$.subscribe(() => {
62833
- var _a2;
62834
- const outgoingMessage = Object.assign(
62835
- message,
62836
- {
62837
- instance: this.__instance,
62838
- ...extra
62839
- }
62840
- );
62841
- this.__receiver.postMessage(outgoingMessage);
62842
- (_a2 = this.__log) == null ? void 0 : _a2.call(this, outgoingMessage);
62843
- })
62844
- );
62845
62781
  }
62846
- disconnect() {
62847
- this.__subscription.unsubscribe();
62782
+ return ar;
62783
+ }
62784
+ function __spreadArray(to, from2, pack) {
62785
+ if (pack || arguments.length === 2)
62786
+ for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
62787
+ if (ar || !(i2 in from2)) {
62788
+ if (!ar)
62789
+ ar = Array.prototype.slice.call(from2, 0, i2);
62790
+ ar[i2] = from2[i2];
62791
+ }
62792
+ }
62793
+ return to.concat(ar || Array.prototype.slice.call(from2));
62794
+ }
62795
+ function __await(v2) {
62796
+ return this instanceof __await ? (this.v = v2, this) : new __await(v2);
62797
+ }
62798
+ function __asyncGenerator(thisArg, _arguments, generator) {
62799
+ if (!Symbol.asyncIterator)
62800
+ throw new TypeError("Symbol.asyncIterator is not defined.");
62801
+ var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
62802
+ return i2 = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
62803
+ return this;
62804
+ }, i2;
62805
+ function awaitReturn(f2) {
62806
+ return function(v2) {
62807
+ return Promise.resolve(v2).then(f2, reject);
62808
+ };
62848
62809
  }
62849
- send(message) {
62850
- this.__write(message);
62810
+ function verb(n2, f2) {
62811
+ if (g2[n2]) {
62812
+ i2[n2] = function(v2) {
62813
+ return new Promise(function(a2, b2) {
62814
+ q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
62815
+ });
62816
+ };
62817
+ if (f2)
62818
+ i2[n2] = f2(i2[n2]);
62819
+ }
62851
62820
  }
62852
- ackSend(message) {
62853
- let done;
62854
- const promise = new Promise((resolve) => {
62855
- done = resolve;
62856
- });
62857
- const messageId = this.__generateId();
62858
- this.__subscription.add(
62859
- this.__recv$.pipe(
62860
- map$3(getData),
62861
- filter(synackFilter(
62862
- "ack"
62863
- /* Ack */
62864
- )),
62865
- filter(({ _id }) => _id === messageId),
62866
- take(1)
62867
- ).subscribe(() => done())
62868
- );
62869
- this.__write(message, messageId);
62870
- return promise;
62821
+ function resume(n2, v2) {
62822
+ try {
62823
+ step2(g2[n2](v2));
62824
+ } catch (e2) {
62825
+ settle(q2[0][3], e2);
62826
+ }
62871
62827
  }
62872
- get instance() {
62873
- return this.__instance;
62828
+ function step2(r2) {
62829
+ r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
62874
62830
  }
62875
- get colors() {
62876
- return this.__colors;
62831
+ function fulfill(value) {
62832
+ resume("next", value);
62877
62833
  }
62878
- /**
62879
- * signals readiness on listening and cannot fail but keeps hanging
62880
- * if not resolved
62881
- */
62882
- get ready() {
62883
- return firstValueFrom(this.__write$).then(() => {
62884
- });
62834
+ function reject(value) {
62835
+ resume("throw", value);
62885
62836
  }
62886
- };
62887
- var src_default = PostChannel;
62888
- var __defProp$2 = Object.defineProperty;
62889
- var __defNormalProp$2 = (obj, key2, value) => key2 in obj ? __defProp$2(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
62890
- var __publicField$2 = (obj, key2, value) => {
62891
- __defNormalProp$2(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
62892
- return value;
62893
- };
62894
- class Lexer {
62895
- constructor(input) {
62896
- __publicField$2(this, "_input");
62897
- __publicField$2(this, "_length");
62898
- __publicField$2(this, "_idx", 0);
62899
- __publicField$2(
62900
- this,
62901
- "_mode",
62902
- 0
62903
- /* Literal */
62904
- );
62905
- __publicField$2(this, "_literals", []);
62906
- __publicField$2(this, "_variables", []);
62907
- __publicField$2(this, "_braketCount", 0);
62908
- __publicField$2(this, "_done", false);
62909
- this._input = input;
62910
- this._length = input.length;
62837
+ function settle(f2, v2) {
62838
+ if (f2(v2), q2.shift(), q2.length)
62839
+ resume(q2[0][0], q2[0][1]);
62911
62840
  }
62912
- concatToLastLiteral(concat) {
62913
- this._literals.push(this._literals.pop().concat(concat));
62841
+ }
62842
+ function __asyncValues(o2) {
62843
+ if (!Symbol.asyncIterator)
62844
+ throw new TypeError("Symbol.asyncIterator is not defined.");
62845
+ var m2 = o2[Symbol.asyncIterator], i2;
62846
+ 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() {
62847
+ return this;
62848
+ }, i2);
62849
+ function verb(n2) {
62850
+ i2[n2] = o2[n2] && function(v2) {
62851
+ return new Promise(function(resolve, reject) {
62852
+ v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
62853
+ });
62854
+ };
62914
62855
  }
62915
- concatToLastVariable(concat) {
62916
- this._variables.push(this._variables.pop().concat(concat));
62856
+ function settle(resolve, reject, d2, v2) {
62857
+ Promise.resolve(v2).then(function(v22) {
62858
+ resolve({ value: v22, done: d2 });
62859
+ }, reject);
62917
62860
  }
62918
- get() {
62919
- const rawLiterals = [...this._literals];
62920
- const literals = Object.assign([], rawLiterals);
62921
- Object.defineProperty(literals, "raw", { value: rawLiterals, writable: false });
62922
- return {
62923
- literals,
62924
- variables: this._variables
62925
- };
62861
+ }
62862
+ function isFunction(value) {
62863
+ return typeof value === "function";
62864
+ }
62865
+ function createErrorClass(createImpl) {
62866
+ var _super = function(instance) {
62867
+ Error.call(instance);
62868
+ instance.stack = new Error().stack;
62869
+ };
62870
+ var ctorFunc = createImpl(_super);
62871
+ ctorFunc.prototype = Object.create(Error.prototype);
62872
+ ctorFunc.prototype.constructor = ctorFunc;
62873
+ return ctorFunc;
62874
+ }
62875
+ var UnsubscriptionError = createErrorClass(function(_super) {
62876
+ return function UnsubscriptionErrorImpl(errors) {
62877
+ _super(this);
62878
+ this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i2) {
62879
+ return i2 + 1 + ") " + err.toString();
62880
+ }).join("\n ") : "";
62881
+ this.name = "UnsubscriptionError";
62882
+ this.errors = errors;
62883
+ };
62884
+ });
62885
+ function arrRemove(arr, item) {
62886
+ if (arr) {
62887
+ var index2 = arr.indexOf(item);
62888
+ 0 <= index2 && arr.splice(index2, 1);
62926
62889
  }
62927
- run() {
62928
- if (this._length === 0) {
62929
- this._literals.push("");
62930
- }
62931
- while (this._idx < this._length) {
62932
- const char = this._input.charAt(this._idx);
62933
- switch (this._mode) {
62934
- case 0: {
62935
- if (this._literals.length === 0) {
62936
- this._literals.push("");
62937
- }
62938
- if (char === "{" && this._idx + 1 !== this._length && this._input.charAt(this._idx + 1) === "{") {
62939
- this._literals.push("");
62940
- this._variables.push("");
62941
- this._mode = 1;
62942
- this._idx += 1;
62943
- } else {
62944
- this.concatToLastLiteral(char);
62890
+ }
62891
+ var Subscription = function() {
62892
+ function Subscription2(initialTeardown) {
62893
+ this.initialTeardown = initialTeardown;
62894
+ this.closed = false;
62895
+ this._parentage = null;
62896
+ this._finalizers = null;
62897
+ }
62898
+ Subscription2.prototype.unsubscribe = function() {
62899
+ var e_1, _a3, e_2, _b;
62900
+ var errors;
62901
+ if (!this.closed) {
62902
+ this.closed = true;
62903
+ var _parentage = this._parentage;
62904
+ if (_parentage) {
62905
+ this._parentage = null;
62906
+ if (Array.isArray(_parentage)) {
62907
+ try {
62908
+ for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
62909
+ var parent_1 = _parentage_1_1.value;
62910
+ parent_1.remove(this);
62911
+ }
62912
+ } catch (e_1_1) {
62913
+ e_1 = { error: e_1_1 };
62914
+ } finally {
62915
+ try {
62916
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a3 = _parentage_1.return))
62917
+ _a3.call(_parentage_1);
62918
+ } finally {
62919
+ if (e_1)
62920
+ throw e_1.error;
62921
+ }
62945
62922
  }
62946
- break;
62923
+ } else {
62924
+ _parentage.remove(this);
62947
62925
  }
62948
- case 1:
62949
- if (char === "}" && this._input.charAt(this._idx + 1) === "}") {
62950
- this._mode = 0;
62951
- this._idx += 1;
62952
- } else {
62953
- this.concatToLastVariable(char);
62926
+ }
62927
+ var initialFinalizer = this.initialTeardown;
62928
+ if (isFunction(initialFinalizer)) {
62929
+ try {
62930
+ initialFinalizer();
62931
+ } catch (e2) {
62932
+ errors = e2 instanceof UnsubscriptionError ? e2.errors : [e2];
62933
+ }
62934
+ }
62935
+ var _finalizers = this._finalizers;
62936
+ if (_finalizers) {
62937
+ this._finalizers = null;
62938
+ try {
62939
+ for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
62940
+ var finalizer = _finalizers_1_1.value;
62941
+ try {
62942
+ execFinalizer(finalizer);
62943
+ } catch (err) {
62944
+ errors = errors !== null && errors !== void 0 ? errors : [];
62945
+ if (err instanceof UnsubscriptionError) {
62946
+ errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
62947
+ } else {
62948
+ errors.push(err);
62949
+ }
62950
+ }
62954
62951
  }
62955
- break;
62952
+ } catch (e_2_1) {
62953
+ e_2 = { error: e_2_1 };
62954
+ } finally {
62955
+ try {
62956
+ if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return))
62957
+ _b.call(_finalizers_1);
62958
+ } finally {
62959
+ if (e_2)
62960
+ throw e_2.error;
62961
+ }
62962
+ }
62963
+ }
62964
+ if (errors) {
62965
+ throw new UnsubscriptionError(errors);
62956
62966
  }
62957
- this._idx += 1;
62958
62967
  }
62959
- if (this._mode === 1) {
62960
- this._literals.pop();
62961
- this.concatToLastLiteral("{{".concat(this._variables.pop()));
62968
+ };
62969
+ Subscription2.prototype.add = function(teardown) {
62970
+ var _a3;
62971
+ if (teardown && teardown !== this) {
62972
+ if (this.closed) {
62973
+ execFinalizer(teardown);
62974
+ } else {
62975
+ if (teardown instanceof Subscription2) {
62976
+ if (teardown.closed || teardown._hasParent(this)) {
62977
+ return;
62978
+ }
62979
+ teardown._addParent(this);
62980
+ }
62981
+ (this._finalizers = (_a3 = this._finalizers) !== null && _a3 !== void 0 ? _a3 : []).push(teardown);
62982
+ }
62962
62983
  }
62963
- this._done = true;
62964
- }
62984
+ };
62985
+ Subscription2.prototype._hasParent = function(parent) {
62986
+ var _parentage = this._parentage;
62987
+ return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
62988
+ };
62989
+ Subscription2.prototype._addParent = function(parent) {
62990
+ var _parentage = this._parentage;
62991
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
62992
+ };
62993
+ Subscription2.prototype._removeParent = function(parent) {
62994
+ var _parentage = this._parentage;
62995
+ if (_parentage === parent) {
62996
+ this._parentage = null;
62997
+ } else if (Array.isArray(_parentage)) {
62998
+ arrRemove(_parentage, parent);
62999
+ }
63000
+ };
63001
+ Subscription2.prototype.remove = function(teardown) {
63002
+ var _finalizers = this._finalizers;
63003
+ _finalizers && arrRemove(_finalizers, teardown);
63004
+ if (teardown instanceof Subscription2) {
63005
+ teardown._removeParent(this);
63006
+ }
63007
+ };
63008
+ Subscription2.EMPTY = function() {
63009
+ var empty2 = new Subscription2();
63010
+ empty2.closed = true;
63011
+ return empty2;
63012
+ }();
63013
+ return Subscription2;
63014
+ }();
63015
+ var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
63016
+ function isSubscription(value) {
63017
+ return value instanceof Subscription || value && "closed" in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);
63018
+ }
63019
+ function execFinalizer(finalizer) {
63020
+ if (isFunction(finalizer)) {
63021
+ finalizer();
63022
+ } else {
63023
+ finalizer.unsubscribe();
63024
+ }
63025
+ }
63026
+ var config = {
63027
+ onUnhandledError: null,
63028
+ onStoppedNotification: null,
63029
+ Promise: void 0,
63030
+ useDeprecatedSynchronousErrorHandling: false,
63031
+ useDeprecatedNextContext: false
63032
+ };
63033
+ var timeoutProvider = {
63034
+ setTimeout: function(handler2, timeout) {
63035
+ var args = [];
63036
+ for (var _i = 2; _i < arguments.length; _i++) {
63037
+ args[_i - 2] = arguments[_i];
63038
+ }
63039
+ return setTimeout.apply(void 0, __spreadArray([handler2, timeout], __read(args)));
63040
+ },
63041
+ clearTimeout: function(handle2) {
63042
+ return clearTimeout(handle2);
63043
+ },
63044
+ delegate: void 0
63045
+ };
63046
+ function reportUnhandledError(err) {
63047
+ timeoutProvider.setTimeout(function() {
63048
+ {
63049
+ throw err;
63050
+ }
63051
+ });
63052
+ }
63053
+ function noop$1() {
63054
+ }
63055
+ function errorContext(cb2) {
63056
+ {
63057
+ cb2();
63058
+ }
63059
+ }
63060
+ var Subscriber = function(_super) {
63061
+ __extends(Subscriber2, _super);
63062
+ function Subscriber2(destination) {
63063
+ var _this = _super.call(this) || this;
63064
+ _this.isStopped = false;
63065
+ if (destination) {
63066
+ _this.destination = destination;
63067
+ if (isSubscription(destination)) {
63068
+ destination.add(_this);
63069
+ }
63070
+ } else {
63071
+ _this.destination = EMPTY_OBSERVER;
63072
+ }
63073
+ return _this;
63074
+ }
63075
+ Subscriber2.create = function(next, error2, complete) {
63076
+ return new SafeSubscriber(next, error2, complete);
63077
+ };
63078
+ Subscriber2.prototype.next = function(value) {
63079
+ if (this.isStopped)
63080
+ ;
63081
+ else {
63082
+ this._next(value);
63083
+ }
63084
+ };
63085
+ Subscriber2.prototype.error = function(err) {
63086
+ if (this.isStopped)
63087
+ ;
63088
+ else {
63089
+ this.isStopped = true;
63090
+ this._error(err);
63091
+ }
63092
+ };
63093
+ Subscriber2.prototype.complete = function() {
63094
+ if (this.isStopped)
63095
+ ;
63096
+ else {
63097
+ this.isStopped = true;
63098
+ this._complete();
63099
+ }
63100
+ };
63101
+ Subscriber2.prototype.unsubscribe = function() {
63102
+ if (!this.closed) {
63103
+ this.isStopped = true;
63104
+ _super.prototype.unsubscribe.call(this);
63105
+ this.destination = null;
63106
+ }
63107
+ };
63108
+ Subscriber2.prototype._next = function(value) {
63109
+ this.destination.next(value);
63110
+ };
63111
+ Subscriber2.prototype._error = function(err) {
63112
+ try {
63113
+ this.destination.error(err);
63114
+ } finally {
63115
+ this.unsubscribe();
63116
+ }
63117
+ };
63118
+ Subscriber2.prototype._complete = function() {
63119
+ try {
63120
+ this.destination.complete();
63121
+ } finally {
63122
+ this.unsubscribe();
63123
+ }
63124
+ };
63125
+ return Subscriber2;
63126
+ }(Subscription);
63127
+ var _bind = Function.prototype.bind;
63128
+ function bind(fn, thisArg) {
63129
+ return _bind.call(fn, thisArg);
63130
+ }
63131
+ var ConsumerObserver = function() {
63132
+ function ConsumerObserver2(partialObserver) {
63133
+ this.partialObserver = partialObserver;
63134
+ }
63135
+ ConsumerObserver2.prototype.next = function(value) {
63136
+ var partialObserver = this.partialObserver;
63137
+ if (partialObserver.next) {
63138
+ try {
63139
+ partialObserver.next(value);
63140
+ } catch (error2) {
63141
+ handleUnhandledError(error2);
63142
+ }
63143
+ }
63144
+ };
63145
+ ConsumerObserver2.prototype.error = function(err) {
63146
+ var partialObserver = this.partialObserver;
63147
+ if (partialObserver.error) {
63148
+ try {
63149
+ partialObserver.error(err);
63150
+ } catch (error2) {
63151
+ handleUnhandledError(error2);
63152
+ }
63153
+ } else {
63154
+ handleUnhandledError(err);
63155
+ }
63156
+ };
63157
+ ConsumerObserver2.prototype.complete = function() {
63158
+ var partialObserver = this.partialObserver;
63159
+ if (partialObserver.complete) {
63160
+ try {
63161
+ partialObserver.complete();
63162
+ } catch (error2) {
63163
+ handleUnhandledError(error2);
63164
+ }
63165
+ }
63166
+ };
63167
+ return ConsumerObserver2;
63168
+ }();
63169
+ var SafeSubscriber = function(_super) {
63170
+ __extends(SafeSubscriber2, _super);
63171
+ function SafeSubscriber2(observerOrNext, error2, complete) {
63172
+ var _this = _super.call(this) || this;
63173
+ var partialObserver;
63174
+ if (isFunction(observerOrNext) || !observerOrNext) {
63175
+ partialObserver = {
63176
+ next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0,
63177
+ error: error2 !== null && error2 !== void 0 ? error2 : void 0,
63178
+ complete: complete !== null && complete !== void 0 ? complete : void 0
63179
+ };
63180
+ } else {
63181
+ var context_1;
63182
+ if (_this && config.useDeprecatedNextContext) {
63183
+ context_1 = Object.create(observerOrNext);
63184
+ context_1.unsubscribe = function() {
63185
+ return _this.unsubscribe();
63186
+ };
63187
+ partialObserver = {
63188
+ next: observerOrNext.next && bind(observerOrNext.next, context_1),
63189
+ error: observerOrNext.error && bind(observerOrNext.error, context_1),
63190
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context_1)
63191
+ };
63192
+ } else {
63193
+ partialObserver = observerOrNext;
63194
+ }
63195
+ }
63196
+ _this.destination = new ConsumerObserver(partialObserver);
63197
+ return _this;
63198
+ }
63199
+ return SafeSubscriber2;
63200
+ }(Subscriber);
63201
+ function handleUnhandledError(error2) {
63202
+ {
63203
+ reportUnhandledError(error2);
63204
+ }
63205
+ }
63206
+ function defaultErrorHandler(err) {
63207
+ throw err;
63208
+ }
63209
+ var EMPTY_OBSERVER = {
63210
+ closed: true,
63211
+ next: noop$1,
63212
+ error: defaultErrorHandler,
63213
+ complete: noop$1
63214
+ };
63215
+ var observable = function() {
63216
+ return typeof Symbol === "function" && Symbol.observable || "@@observable";
63217
+ }();
63218
+ function identity(x2) {
63219
+ return x2;
63220
+ }
63221
+ function pipeFromArray(fns) {
63222
+ if (fns.length === 0) {
63223
+ return identity;
63224
+ }
63225
+ if (fns.length === 1) {
63226
+ return fns[0];
63227
+ }
63228
+ return function piped(input) {
63229
+ return fns.reduce(function(prev, fn) {
63230
+ return fn(prev);
63231
+ }, input);
63232
+ };
63233
+ }
63234
+ var Observable = function() {
63235
+ function Observable2(subscribe) {
63236
+ if (subscribe) {
63237
+ this._subscribe = subscribe;
63238
+ }
63239
+ }
63240
+ Observable2.prototype.lift = function(operator) {
63241
+ var observable2 = new Observable2();
63242
+ observable2.source = this;
63243
+ observable2.operator = operator;
63244
+ return observable2;
63245
+ };
63246
+ Observable2.prototype.subscribe = function(observerOrNext, error2, complete) {
63247
+ var _this = this;
63248
+ var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error2, complete);
63249
+ errorContext(function() {
63250
+ var _a3 = _this, operator = _a3.operator, source = _a3.source;
63251
+ subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
63252
+ });
63253
+ return subscriber;
63254
+ };
63255
+ Observable2.prototype._trySubscribe = function(sink) {
63256
+ try {
63257
+ return this._subscribe(sink);
63258
+ } catch (err) {
63259
+ sink.error(err);
63260
+ }
63261
+ };
63262
+ Observable2.prototype.forEach = function(next, promiseCtor) {
63263
+ var _this = this;
63264
+ promiseCtor = getPromiseCtor(promiseCtor);
63265
+ return new promiseCtor(function(resolve, reject) {
63266
+ var subscriber = new SafeSubscriber({
63267
+ next: function(value) {
63268
+ try {
63269
+ next(value);
63270
+ } catch (err) {
63271
+ reject(err);
63272
+ subscriber.unsubscribe();
63273
+ }
63274
+ },
63275
+ error: reject,
63276
+ complete: resolve
63277
+ });
63278
+ _this.subscribe(subscriber);
63279
+ });
63280
+ };
63281
+ Observable2.prototype._subscribe = function(subscriber) {
63282
+ var _a3;
63283
+ return (_a3 = this.source) === null || _a3 === void 0 ? void 0 : _a3.subscribe(subscriber);
63284
+ };
63285
+ Observable2.prototype[observable] = function() {
63286
+ return this;
63287
+ };
63288
+ Observable2.prototype.pipe = function() {
63289
+ var operations = [];
63290
+ for (var _i = 0; _i < arguments.length; _i++) {
63291
+ operations[_i] = arguments[_i];
63292
+ }
63293
+ return pipeFromArray(operations)(this);
63294
+ };
63295
+ Observable2.prototype.toPromise = function(promiseCtor) {
63296
+ var _this = this;
63297
+ promiseCtor = getPromiseCtor(promiseCtor);
63298
+ return new promiseCtor(function(resolve, reject) {
63299
+ var value;
63300
+ _this.subscribe(function(x2) {
63301
+ return value = x2;
63302
+ }, function(err) {
63303
+ return reject(err);
63304
+ }, function() {
63305
+ return resolve(value);
63306
+ });
63307
+ });
63308
+ };
63309
+ Observable2.create = function(subscribe) {
63310
+ return new Observable2(subscribe);
63311
+ };
63312
+ return Observable2;
63313
+ }();
63314
+ function getPromiseCtor(promiseCtor) {
63315
+ var _a3;
63316
+ return (_a3 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a3 !== void 0 ? _a3 : Promise;
63317
+ }
63318
+ function isObserver(value) {
63319
+ return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
63320
+ }
63321
+ function isSubscriber(value) {
63322
+ return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);
63323
+ }
63324
+ function hasLift(source) {
63325
+ return isFunction(source === null || source === void 0 ? void 0 : source.lift);
63326
+ }
63327
+ function operate(init) {
63328
+ return function(source) {
63329
+ if (hasLift(source)) {
63330
+ return source.lift(function(liftedSource) {
63331
+ try {
63332
+ return init(liftedSource, this);
63333
+ } catch (err) {
63334
+ this.error(err);
63335
+ }
63336
+ });
63337
+ }
63338
+ throw new TypeError("Unable to lift unknown Observable type");
63339
+ };
63340
+ }
63341
+ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
63342
+ return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
63343
+ }
63344
+ var OperatorSubscriber = function(_super) {
63345
+ __extends(OperatorSubscriber2, _super);
63346
+ function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
63347
+ var _this = _super.call(this, destination) || this;
63348
+ _this.onFinalize = onFinalize;
63349
+ _this.shouldUnsubscribe = shouldUnsubscribe;
63350
+ _this._next = onNext ? function(value) {
63351
+ try {
63352
+ onNext(value);
63353
+ } catch (err) {
63354
+ destination.error(err);
63355
+ }
63356
+ } : _super.prototype._next;
63357
+ _this._error = onError ? function(err) {
63358
+ try {
63359
+ onError(err);
63360
+ } catch (err2) {
63361
+ destination.error(err2);
63362
+ } finally {
63363
+ this.unsubscribe();
63364
+ }
63365
+ } : _super.prototype._error;
63366
+ _this._complete = onComplete ? function() {
63367
+ try {
63368
+ onComplete();
63369
+ } catch (err) {
63370
+ destination.error(err);
63371
+ } finally {
63372
+ this.unsubscribe();
63373
+ }
63374
+ } : _super.prototype._complete;
63375
+ return _this;
63376
+ }
63377
+ OperatorSubscriber2.prototype.unsubscribe = function() {
63378
+ var _a3;
63379
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
63380
+ var closed_1 = this.closed;
63381
+ _super.prototype.unsubscribe.call(this);
63382
+ !closed_1 && ((_a3 = this.onFinalize) === null || _a3 === void 0 ? void 0 : _a3.call(this));
63383
+ }
63384
+ };
63385
+ return OperatorSubscriber2;
63386
+ }(Subscriber);
63387
+ var ObjectUnsubscribedError = createErrorClass(function(_super) {
63388
+ return function ObjectUnsubscribedErrorImpl() {
63389
+ _super(this);
63390
+ this.name = "ObjectUnsubscribedError";
63391
+ this.message = "object unsubscribed";
63392
+ };
63393
+ });
63394
+ var Subject = function(_super) {
63395
+ __extends(Subject2, _super);
63396
+ function Subject2() {
63397
+ var _this = _super.call(this) || this;
63398
+ _this.closed = false;
63399
+ _this.currentObservers = null;
63400
+ _this.observers = [];
63401
+ _this.isStopped = false;
63402
+ _this.hasError = false;
63403
+ _this.thrownError = null;
63404
+ return _this;
63405
+ }
63406
+ Subject2.prototype.lift = function(operator) {
63407
+ var subject = new AnonymousSubject(this, this);
63408
+ subject.operator = operator;
63409
+ return subject;
63410
+ };
63411
+ Subject2.prototype._throwIfClosed = function() {
63412
+ if (this.closed) {
63413
+ throw new ObjectUnsubscribedError();
63414
+ }
63415
+ };
63416
+ Subject2.prototype.next = function(value) {
63417
+ var _this = this;
63418
+ errorContext(function() {
63419
+ var e_1, _a3;
63420
+ _this._throwIfClosed();
63421
+ if (!_this.isStopped) {
63422
+ if (!_this.currentObservers) {
63423
+ _this.currentObservers = Array.from(_this.observers);
63424
+ }
63425
+ try {
63426
+ for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
63427
+ var observer = _c.value;
63428
+ observer.next(value);
63429
+ }
63430
+ } catch (e_1_1) {
63431
+ e_1 = { error: e_1_1 };
63432
+ } finally {
63433
+ try {
63434
+ if (_c && !_c.done && (_a3 = _b.return))
63435
+ _a3.call(_b);
63436
+ } finally {
63437
+ if (e_1)
63438
+ throw e_1.error;
63439
+ }
63440
+ }
63441
+ }
63442
+ });
63443
+ };
63444
+ Subject2.prototype.error = function(err) {
63445
+ var _this = this;
63446
+ errorContext(function() {
63447
+ _this._throwIfClosed();
63448
+ if (!_this.isStopped) {
63449
+ _this.hasError = _this.isStopped = true;
63450
+ _this.thrownError = err;
63451
+ var observers2 = _this.observers;
63452
+ while (observers2.length) {
63453
+ observers2.shift().error(err);
63454
+ }
63455
+ }
63456
+ });
63457
+ };
63458
+ Subject2.prototype.complete = function() {
63459
+ var _this = this;
63460
+ errorContext(function() {
63461
+ _this._throwIfClosed();
63462
+ if (!_this.isStopped) {
63463
+ _this.isStopped = true;
63464
+ var observers2 = _this.observers;
63465
+ while (observers2.length) {
63466
+ observers2.shift().complete();
63467
+ }
63468
+ }
63469
+ });
63470
+ };
63471
+ Subject2.prototype.unsubscribe = function() {
63472
+ this.isStopped = this.closed = true;
63473
+ this.observers = this.currentObservers = null;
63474
+ };
63475
+ Object.defineProperty(Subject2.prototype, "observed", {
63476
+ get: function() {
63477
+ var _a3;
63478
+ return ((_a3 = this.observers) === null || _a3 === void 0 ? void 0 : _a3.length) > 0;
63479
+ },
63480
+ enumerable: false,
63481
+ configurable: true
63482
+ });
63483
+ Subject2.prototype._trySubscribe = function(subscriber) {
63484
+ this._throwIfClosed();
63485
+ return _super.prototype._trySubscribe.call(this, subscriber);
63486
+ };
63487
+ Subject2.prototype._subscribe = function(subscriber) {
63488
+ this._throwIfClosed();
63489
+ this._checkFinalizedStatuses(subscriber);
63490
+ return this._innerSubscribe(subscriber);
63491
+ };
63492
+ Subject2.prototype._innerSubscribe = function(subscriber) {
63493
+ var _this = this;
63494
+ var _a3 = this, hasError = _a3.hasError, isStopped = _a3.isStopped, observers2 = _a3.observers;
63495
+ if (hasError || isStopped) {
63496
+ return EMPTY_SUBSCRIPTION;
63497
+ }
63498
+ this.currentObservers = null;
63499
+ observers2.push(subscriber);
63500
+ return new Subscription(function() {
63501
+ _this.currentObservers = null;
63502
+ arrRemove(observers2, subscriber);
63503
+ });
63504
+ };
63505
+ Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
63506
+ var _a3 = this, hasError = _a3.hasError, thrownError = _a3.thrownError, isStopped = _a3.isStopped;
63507
+ if (hasError) {
63508
+ subscriber.error(thrownError);
63509
+ } else if (isStopped) {
63510
+ subscriber.complete();
63511
+ }
63512
+ };
63513
+ Subject2.prototype.asObservable = function() {
63514
+ var observable2 = new Observable();
63515
+ observable2.source = this;
63516
+ return observable2;
63517
+ };
63518
+ Subject2.create = function(destination, source) {
63519
+ return new AnonymousSubject(destination, source);
63520
+ };
63521
+ return Subject2;
63522
+ }(Observable);
63523
+ var AnonymousSubject = function(_super) {
63524
+ __extends(AnonymousSubject2, _super);
63525
+ function AnonymousSubject2(destination, source) {
63526
+ var _this = _super.call(this) || this;
63527
+ _this.destination = destination;
63528
+ _this.source = source;
63529
+ return _this;
63530
+ }
63531
+ AnonymousSubject2.prototype.next = function(value) {
63532
+ var _a3, _b;
63533
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.next) === null || _b === void 0 ? void 0 : _b.call(_a3, value);
63534
+ };
63535
+ AnonymousSubject2.prototype.error = function(err) {
63536
+ var _a3, _b;
63537
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.error) === null || _b === void 0 ? void 0 : _b.call(_a3, err);
63538
+ };
63539
+ AnonymousSubject2.prototype.complete = function() {
63540
+ var _a3, _b;
63541
+ (_b = (_a3 = this.destination) === null || _a3 === void 0 ? void 0 : _a3.complete) === null || _b === void 0 ? void 0 : _b.call(_a3);
63542
+ };
63543
+ AnonymousSubject2.prototype._subscribe = function(subscriber) {
63544
+ var _a3, _b;
63545
+ return (_b = (_a3 = this.source) === null || _a3 === void 0 ? void 0 : _a3.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
63546
+ };
63547
+ return AnonymousSubject2;
63548
+ }(Subject);
63549
+ var dateTimestampProvider = {
63550
+ now: function() {
63551
+ return (dateTimestampProvider.delegate || Date).now();
63552
+ },
63553
+ delegate: void 0
63554
+ };
63555
+ var ReplaySubject = function(_super) {
63556
+ __extends(ReplaySubject2, _super);
63557
+ function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) {
63558
+ if (_bufferSize === void 0) {
63559
+ _bufferSize = Infinity;
63560
+ }
63561
+ if (_windowTime === void 0) {
63562
+ _windowTime = Infinity;
63563
+ }
63564
+ if (_timestampProvider === void 0) {
63565
+ _timestampProvider = dateTimestampProvider;
63566
+ }
63567
+ var _this = _super.call(this) || this;
63568
+ _this._bufferSize = _bufferSize;
63569
+ _this._windowTime = _windowTime;
63570
+ _this._timestampProvider = _timestampProvider;
63571
+ _this._buffer = [];
63572
+ _this._infiniteTimeWindow = true;
63573
+ _this._infiniteTimeWindow = _windowTime === Infinity;
63574
+ _this._bufferSize = Math.max(1, _bufferSize);
63575
+ _this._windowTime = Math.max(1, _windowTime);
63576
+ return _this;
63577
+ }
63578
+ ReplaySubject2.prototype.next = function(value) {
63579
+ var _a3 = this, isStopped = _a3.isStopped, _buffer = _a3._buffer, _infiniteTimeWindow = _a3._infiniteTimeWindow, _timestampProvider = _a3._timestampProvider, _windowTime = _a3._windowTime;
63580
+ if (!isStopped) {
63581
+ _buffer.push(value);
63582
+ !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
63583
+ }
63584
+ this._trimBuffer();
63585
+ _super.prototype.next.call(this, value);
63586
+ };
63587
+ ReplaySubject2.prototype._subscribe = function(subscriber) {
63588
+ this._throwIfClosed();
63589
+ this._trimBuffer();
63590
+ var subscription = this._innerSubscribe(subscriber);
63591
+ var _a3 = this, _infiniteTimeWindow = _a3._infiniteTimeWindow, _buffer = _a3._buffer;
63592
+ var copy2 = _buffer.slice();
63593
+ for (var i2 = 0; i2 < copy2.length && !subscriber.closed; i2 += _infiniteTimeWindow ? 1 : 2) {
63594
+ subscriber.next(copy2[i2]);
63595
+ }
63596
+ this._checkFinalizedStatuses(subscriber);
63597
+ return subscription;
63598
+ };
63599
+ ReplaySubject2.prototype._trimBuffer = function() {
63600
+ var _a3 = this, _bufferSize = _a3._bufferSize, _timestampProvider = _a3._timestampProvider, _buffer = _a3._buffer, _infiniteTimeWindow = _a3._infiniteTimeWindow;
63601
+ var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
63602
+ _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
63603
+ if (!_infiniteTimeWindow) {
63604
+ var now2 = _timestampProvider.now();
63605
+ var last = 0;
63606
+ for (var i2 = 1; i2 < _buffer.length && _buffer[i2] <= now2; i2 += 2) {
63607
+ last = i2;
63608
+ }
63609
+ last && _buffer.splice(0, last + 1);
63610
+ }
63611
+ };
63612
+ return ReplaySubject2;
63613
+ }(Subject);
63614
+ var Action = function(_super) {
63615
+ __extends(Action2, _super);
63616
+ function Action2(scheduler2, work) {
63617
+ return _super.call(this) || this;
63618
+ }
63619
+ Action2.prototype.schedule = function(state, delay) {
63620
+ return this;
63621
+ };
63622
+ return Action2;
63623
+ }(Subscription);
63624
+ var intervalProvider = {
63625
+ setInterval: function(handler2, timeout) {
63626
+ var args = [];
63627
+ for (var _i = 2; _i < arguments.length; _i++) {
63628
+ args[_i - 2] = arguments[_i];
63629
+ }
63630
+ return setInterval.apply(void 0, __spreadArray([handler2, timeout], __read(args)));
63631
+ },
63632
+ clearInterval: function(handle2) {
63633
+ return clearInterval(handle2);
63634
+ },
63635
+ delegate: void 0
63636
+ };
63637
+ var AsyncAction = function(_super) {
63638
+ __extends(AsyncAction2, _super);
63639
+ function AsyncAction2(scheduler2, work) {
63640
+ var _this = _super.call(this, scheduler2, work) || this;
63641
+ _this.scheduler = scheduler2;
63642
+ _this.work = work;
63643
+ _this.pending = false;
63644
+ return _this;
63645
+ }
63646
+ AsyncAction2.prototype.schedule = function(state, delay) {
63647
+ var _a3;
63648
+ if (delay === void 0) {
63649
+ delay = 0;
63650
+ }
63651
+ if (this.closed) {
63652
+ return this;
63653
+ }
63654
+ this.state = state;
63655
+ var id2 = this.id;
63656
+ var scheduler2 = this.scheduler;
63657
+ if (id2 != null) {
63658
+ this.id = this.recycleAsyncId(scheduler2, id2, delay);
63659
+ }
63660
+ this.pending = true;
63661
+ this.delay = delay;
63662
+ this.id = (_a3 = this.id) !== null && _a3 !== void 0 ? _a3 : this.requestAsyncId(scheduler2, this.id, delay);
63663
+ return this;
63664
+ };
63665
+ AsyncAction2.prototype.requestAsyncId = function(scheduler2, _id, delay) {
63666
+ if (delay === void 0) {
63667
+ delay = 0;
63668
+ }
63669
+ return intervalProvider.setInterval(scheduler2.flush.bind(scheduler2, this), delay);
63670
+ };
63671
+ AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id2, delay) {
63672
+ if (delay === void 0) {
63673
+ delay = 0;
63674
+ }
63675
+ if (delay != null && this.delay === delay && this.pending === false) {
63676
+ return id2;
63677
+ }
63678
+ if (id2 != null) {
63679
+ intervalProvider.clearInterval(id2);
63680
+ }
63681
+ return void 0;
63682
+ };
63683
+ AsyncAction2.prototype.execute = function(state, delay) {
63684
+ if (this.closed) {
63685
+ return new Error("executing a cancelled action");
63686
+ }
63687
+ this.pending = false;
63688
+ var error2 = this._execute(state, delay);
63689
+ if (error2) {
63690
+ return error2;
63691
+ } else if (this.pending === false && this.id != null) {
63692
+ this.id = this.recycleAsyncId(this.scheduler, this.id, null);
63693
+ }
63694
+ };
63695
+ AsyncAction2.prototype._execute = function(state, _delay) {
63696
+ var errored = false;
63697
+ var errorValue;
63698
+ try {
63699
+ this.work(state);
63700
+ } catch (e2) {
63701
+ errored = true;
63702
+ errorValue = e2 ? e2 : new Error("Scheduled action threw falsy error");
63703
+ }
63704
+ if (errored) {
63705
+ this.unsubscribe();
63706
+ return errorValue;
63707
+ }
63708
+ };
63709
+ AsyncAction2.prototype.unsubscribe = function() {
63710
+ if (!this.closed) {
63711
+ var _a3 = this, id2 = _a3.id, scheduler2 = _a3.scheduler;
63712
+ var actions = scheduler2.actions;
63713
+ this.work = this.state = this.scheduler = null;
63714
+ this.pending = false;
63715
+ arrRemove(actions, this);
63716
+ if (id2 != null) {
63717
+ this.id = this.recycleAsyncId(scheduler2, id2, null);
63718
+ }
63719
+ this.delay = null;
63720
+ _super.prototype.unsubscribe.call(this);
63721
+ }
63722
+ };
63723
+ return AsyncAction2;
63724
+ }(Action);
63725
+ var Scheduler = function() {
63726
+ function Scheduler2(schedulerActionCtor, now2) {
63727
+ if (now2 === void 0) {
63728
+ now2 = Scheduler2.now;
63729
+ }
63730
+ this.schedulerActionCtor = schedulerActionCtor;
63731
+ this.now = now2;
63732
+ }
63733
+ Scheduler2.prototype.schedule = function(work, delay, state) {
63734
+ if (delay === void 0) {
63735
+ delay = 0;
63736
+ }
63737
+ return new this.schedulerActionCtor(this, work).schedule(state, delay);
63738
+ };
63739
+ Scheduler2.now = dateTimestampProvider.now;
63740
+ return Scheduler2;
63741
+ }();
63742
+ var AsyncScheduler = function(_super) {
63743
+ __extends(AsyncScheduler2, _super);
63744
+ function AsyncScheduler2(SchedulerAction, now2) {
63745
+ if (now2 === void 0) {
63746
+ now2 = Scheduler.now;
63747
+ }
63748
+ var _this = _super.call(this, SchedulerAction, now2) || this;
63749
+ _this.actions = [];
63750
+ _this._active = false;
63751
+ return _this;
63752
+ }
63753
+ AsyncScheduler2.prototype.flush = function(action) {
63754
+ var actions = this.actions;
63755
+ if (this._active) {
63756
+ actions.push(action);
63757
+ return;
63758
+ }
63759
+ var error2;
63760
+ this._active = true;
63761
+ do {
63762
+ if (error2 = action.execute(action.state, action.delay)) {
63763
+ break;
63764
+ }
63765
+ } while (action = actions.shift());
63766
+ this._active = false;
63767
+ if (error2) {
63768
+ while (action = actions.shift()) {
63769
+ action.unsubscribe();
63770
+ }
63771
+ throw error2;
63772
+ }
63773
+ };
63774
+ return AsyncScheduler2;
63775
+ }(Scheduler);
63776
+ var asyncScheduler = new AsyncScheduler(AsyncAction);
63777
+ var async = asyncScheduler;
63778
+ var EMPTY = new Observable(function(subscriber) {
63779
+ return subscriber.complete();
63780
+ });
63781
+ function isScheduler(value) {
63782
+ return value && isFunction(value.schedule);
63783
+ }
63784
+ var isArrayLike = function(x2) {
63785
+ return x2 && typeof x2.length === "number" && typeof x2 !== "function";
63786
+ };
63787
+ function isPromise(value) {
63788
+ return isFunction(value === null || value === void 0 ? void 0 : value.then);
63789
+ }
63790
+ function isInteropObservable(input) {
63791
+ return isFunction(input[observable]);
63792
+ }
63793
+ function isAsyncIterable(obj) {
63794
+ return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
63795
+ }
63796
+ function createInvalidObservableTypeError(input) {
63797
+ 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.");
63798
+ }
63799
+ function getSymbolIterator() {
63800
+ if (typeof Symbol !== "function" || !Symbol.iterator) {
63801
+ return "@@iterator";
63802
+ }
63803
+ return Symbol.iterator;
63804
+ }
63805
+ var iterator = getSymbolIterator();
63806
+ function isIterable(input) {
63807
+ return isFunction(input === null || input === void 0 ? void 0 : input[iterator]);
63808
+ }
63809
+ function readableStreamLikeToAsyncGenerator(readableStream) {
63810
+ return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
63811
+ var reader, _a3, value, done;
63812
+ return __generator(this, function(_b) {
63813
+ switch (_b.label) {
63814
+ case 0:
63815
+ reader = readableStream.getReader();
63816
+ _b.label = 1;
63817
+ case 1:
63818
+ _b.trys.push([1, , 9, 10]);
63819
+ _b.label = 2;
63820
+ case 2:
63821
+ return [4, __await(reader.read())];
63822
+ case 3:
63823
+ _a3 = _b.sent(), value = _a3.value, done = _a3.done;
63824
+ if (!done)
63825
+ return [3, 5];
63826
+ return [4, __await(void 0)];
63827
+ case 4:
63828
+ return [2, _b.sent()];
63829
+ case 5:
63830
+ return [4, __await(value)];
63831
+ case 6:
63832
+ return [4, _b.sent()];
63833
+ case 7:
63834
+ _b.sent();
63835
+ return [3, 2];
63836
+ case 8:
63837
+ return [3, 10];
63838
+ case 9:
63839
+ reader.releaseLock();
63840
+ return [7];
63841
+ case 10:
63842
+ return [2];
63843
+ }
63844
+ });
63845
+ });
63846
+ }
63847
+ function isReadableStreamLike(obj) {
63848
+ return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);
63849
+ }
63850
+ function innerFrom(input) {
63851
+ if (input instanceof Observable) {
63852
+ return input;
63853
+ }
63854
+ if (input != null) {
63855
+ if (isInteropObservable(input)) {
63856
+ return fromInteropObservable(input);
63857
+ }
63858
+ if (isArrayLike(input)) {
63859
+ return fromArrayLike(input);
63860
+ }
63861
+ if (isPromise(input)) {
63862
+ return fromPromise(input);
63863
+ }
63864
+ if (isAsyncIterable(input)) {
63865
+ return fromAsyncIterable(input);
63866
+ }
63867
+ if (isIterable(input)) {
63868
+ return fromIterable(input);
63869
+ }
63870
+ if (isReadableStreamLike(input)) {
63871
+ return fromReadableStreamLike(input);
63872
+ }
63873
+ }
63874
+ throw createInvalidObservableTypeError(input);
63875
+ }
63876
+ function fromInteropObservable(obj) {
63877
+ return new Observable(function(subscriber) {
63878
+ var obs = obj[observable]();
63879
+ if (isFunction(obs.subscribe)) {
63880
+ return obs.subscribe(subscriber);
63881
+ }
63882
+ throw new TypeError("Provided object does not correctly implement Symbol.observable");
63883
+ });
63884
+ }
63885
+ function fromArrayLike(array) {
63886
+ return new Observable(function(subscriber) {
63887
+ for (var i2 = 0; i2 < array.length && !subscriber.closed; i2++) {
63888
+ subscriber.next(array[i2]);
63889
+ }
63890
+ subscriber.complete();
63891
+ });
63892
+ }
63893
+ function fromPromise(promise) {
63894
+ return new Observable(function(subscriber) {
63895
+ promise.then(function(value) {
63896
+ if (!subscriber.closed) {
63897
+ subscriber.next(value);
63898
+ subscriber.complete();
63899
+ }
63900
+ }, function(err) {
63901
+ return subscriber.error(err);
63902
+ }).then(null, reportUnhandledError);
63903
+ });
63904
+ }
63905
+ function fromIterable(iterable) {
63906
+ return new Observable(function(subscriber) {
63907
+ var e_1, _a3;
63908
+ try {
63909
+ for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
63910
+ var value = iterable_1_1.value;
63911
+ subscriber.next(value);
63912
+ if (subscriber.closed) {
63913
+ return;
63914
+ }
63915
+ }
63916
+ } catch (e_1_1) {
63917
+ e_1 = { error: e_1_1 };
63918
+ } finally {
63919
+ try {
63920
+ if (iterable_1_1 && !iterable_1_1.done && (_a3 = iterable_1.return))
63921
+ _a3.call(iterable_1);
63922
+ } finally {
63923
+ if (e_1)
63924
+ throw e_1.error;
63925
+ }
63926
+ }
63927
+ subscriber.complete();
63928
+ });
63929
+ }
63930
+ function fromAsyncIterable(asyncIterable) {
63931
+ return new Observable(function(subscriber) {
63932
+ process$1(asyncIterable, subscriber).catch(function(err) {
63933
+ return subscriber.error(err);
63934
+ });
63935
+ });
63936
+ }
63937
+ function fromReadableStreamLike(readableStream) {
63938
+ return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));
63939
+ }
63940
+ function process$1(asyncIterable, subscriber) {
63941
+ var asyncIterable_1, asyncIterable_1_1;
63942
+ var e_2, _a3;
63943
+ return __awaiter(this, void 0, void 0, function() {
63944
+ var value, e_2_1;
63945
+ return __generator(this, function(_b) {
63946
+ switch (_b.label) {
63947
+ case 0:
63948
+ _b.trys.push([0, 5, 6, 11]);
63949
+ asyncIterable_1 = __asyncValues(asyncIterable);
63950
+ _b.label = 1;
63951
+ case 1:
63952
+ return [4, asyncIterable_1.next()];
63953
+ case 2:
63954
+ if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done))
63955
+ return [3, 4];
63956
+ value = asyncIterable_1_1.value;
63957
+ subscriber.next(value);
63958
+ if (subscriber.closed) {
63959
+ return [2];
63960
+ }
63961
+ _b.label = 3;
63962
+ case 3:
63963
+ return [3, 1];
63964
+ case 4:
63965
+ return [3, 11];
63966
+ case 5:
63967
+ e_2_1 = _b.sent();
63968
+ e_2 = { error: e_2_1 };
63969
+ return [3, 11];
63970
+ case 6:
63971
+ _b.trys.push([6, , 9, 10]);
63972
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a3 = asyncIterable_1.return)))
63973
+ return [3, 8];
63974
+ return [4, _a3.call(asyncIterable_1)];
63975
+ case 7:
63976
+ _b.sent();
63977
+ _b.label = 8;
63978
+ case 8:
63979
+ return [3, 10];
63980
+ case 9:
63981
+ if (e_2)
63982
+ throw e_2.error;
63983
+ return [7];
63984
+ case 10:
63985
+ return [7];
63986
+ case 11:
63987
+ subscriber.complete();
63988
+ return [2];
63989
+ }
63990
+ });
63991
+ });
63992
+ }
63993
+ var EmptyError = createErrorClass(function(_super) {
63994
+ return function EmptyErrorImpl() {
63995
+ _super(this);
63996
+ this.name = "EmptyError";
63997
+ this.message = "no elements in sequence";
63998
+ };
63999
+ });
64000
+ function lastValueFrom(source, config2) {
64001
+ var hasConfig = typeof config2 === "object";
64002
+ return new Promise(function(resolve, reject) {
64003
+ var _hasValue = false;
64004
+ var _value;
64005
+ source.subscribe({
64006
+ next: function(value) {
64007
+ _value = value;
64008
+ _hasValue = true;
64009
+ },
64010
+ error: reject,
64011
+ complete: function() {
64012
+ if (_hasValue) {
64013
+ resolve(_value);
64014
+ } else if (hasConfig) {
64015
+ resolve(config2.defaultValue);
64016
+ } else {
64017
+ reject(new EmptyError());
64018
+ }
64019
+ }
64020
+ });
64021
+ });
64022
+ }
64023
+ function firstValueFrom(source, config2) {
64024
+ var hasConfig = typeof config2 === "object";
64025
+ return new Promise(function(resolve, reject) {
64026
+ var subscriber = new SafeSubscriber({
64027
+ next: function(value) {
64028
+ resolve(value);
64029
+ subscriber.unsubscribe();
64030
+ },
64031
+ error: reject,
64032
+ complete: function() {
64033
+ if (hasConfig) {
64034
+ resolve(config2.defaultValue);
64035
+ } else {
64036
+ reject(new EmptyError());
64037
+ }
64038
+ }
64039
+ });
64040
+ source.subscribe(subscriber);
64041
+ });
64042
+ }
64043
+ function isValidDate(value) {
64044
+ return value instanceof Date && !isNaN(value);
64045
+ }
64046
+ function map(project, thisArg) {
64047
+ return operate(function(source, subscriber) {
64048
+ var index2 = 0;
64049
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
64050
+ subscriber.next(project.call(thisArg, value, index2++));
64051
+ }));
64052
+ });
64053
+ }
64054
+ function timer(dueTime, intervalOrScheduler, scheduler2) {
64055
+ if (dueTime === void 0) {
64056
+ dueTime = 0;
64057
+ }
64058
+ if (scheduler2 === void 0) {
64059
+ scheduler2 = async;
64060
+ }
64061
+ var intervalDuration = -1;
64062
+ if (intervalOrScheduler != null) {
64063
+ if (isScheduler(intervalOrScheduler)) {
64064
+ scheduler2 = intervalOrScheduler;
64065
+ } else {
64066
+ intervalDuration = intervalOrScheduler;
64067
+ }
64068
+ }
64069
+ return new Observable(function(subscriber) {
64070
+ var due = isValidDate(dueTime) ? +dueTime - scheduler2.now() : dueTime;
64071
+ if (due < 0) {
64072
+ due = 0;
64073
+ }
64074
+ var n2 = 0;
64075
+ return scheduler2.schedule(function() {
64076
+ if (!subscriber.closed) {
64077
+ subscriber.next(n2++);
64078
+ if (0 <= intervalDuration) {
64079
+ this.schedule(void 0, intervalDuration);
64080
+ } else {
64081
+ subscriber.complete();
64082
+ }
64083
+ }
64084
+ }, due);
64085
+ });
64086
+ }
64087
+ function interval(period, scheduler2) {
64088
+ if (period === void 0) {
64089
+ period = 0;
64090
+ }
64091
+ if (scheduler2 === void 0) {
64092
+ scheduler2 = asyncScheduler;
64093
+ }
64094
+ if (period < 0) {
64095
+ period = 0;
64096
+ }
64097
+ return timer(period, period, scheduler2);
64098
+ }
64099
+ function not(pred, thisArg) {
64100
+ return function(value, index2) {
64101
+ return !pred.call(thisArg, value, index2);
64102
+ };
64103
+ }
64104
+ function filter(predicate, thisArg) {
64105
+ return operate(function(source, subscriber) {
64106
+ var index2 = 0;
64107
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
64108
+ return predicate.call(thisArg, value, index2++) && subscriber.next(value);
64109
+ }));
64110
+ });
64111
+ }
64112
+ function partition(source, predicate, thisArg) {
64113
+ return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))];
64114
+ }
64115
+ function take(count) {
64116
+ return count <= 0 ? function() {
64117
+ return EMPTY;
64118
+ } : operate(function(source, subscriber) {
64119
+ var seen2 = 0;
64120
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
64121
+ if (++seen2 <= count) {
64122
+ subscriber.next(value);
64123
+ if (count <= seen2) {
64124
+ subscriber.complete();
64125
+ }
64126
+ }
64127
+ }));
64128
+ });
64129
+ }
64130
+ var Msg = /* @__PURE__ */ ((_Msg) => {
64131
+ _Msg["Msg"] = "msg";
64132
+ return _Msg;
64133
+ })(Msg || {});
64134
+ var SynAck = /* @__PURE__ */ ((SynAck2) => {
64135
+ SynAck2["Ack"] = "ack";
64136
+ SynAck2["Syn"] = "syn";
64137
+ return SynAck2;
64138
+ })(SynAck || {});
64139
+ var fromServiceWorkerToReceiver = (self2, options) => (clientId) => ({
64140
+ postMessage: (message) => {
64141
+ const { errorCatcher = () => () => {
64142
+ }, ...rest } = options ?? {};
64143
+ self2.clients.get(clientId).then((client) => client == null ? void 0 : client.postMessage(message, rest)).catch(errorCatcher(clientId, message));
64144
+ }
64145
+ });
64146
+ var fromWindowToReceiver = (self2, options) => {
64147
+ return {
64148
+ postMessage: (message) => {
64149
+ self2.postMessage(message, (options == null ? void 0 : options.targetOrigin) ?? "*", options == null ? void 0 : options.transfer);
64150
+ }
64151
+ };
64152
+ };
64153
+ var adapters = {
64154
+ fromChild(window2) {
64155
+ return {
64156
+ from: window2,
64157
+ to: fromWindowToReceiver(window2.parent)
64158
+ };
64159
+ },
64160
+ fromParent(iframe) {
64161
+ if (iframe.contentWindow) {
64162
+ if (iframe.ownerDocument.defaultView) {
64163
+ return {
64164
+ from: iframe.ownerDocument.defaultView,
64165
+ to: fromWindowToReceiver(iframe.contentWindow)
64166
+ };
64167
+ }
64168
+ throw new TypeError("iframe ownerDocument.defaultView is null");
64169
+ }
64170
+ throw new TypeError("iframe contentWindow is null");
64171
+ },
64172
+ fromServiceWorkerToReceiver,
64173
+ fromWindowToReceiver
64174
+ };
64175
+ var synackKeys = Object.values(SynAck);
64176
+ var msgKeys = Object.values(Msg);
64177
+ var getData = (message) => message.data;
64178
+ var synackFilter = (type) => (data) => data.type === type;
64179
+ var isPostChannelMessage = (message) => {
64180
+ const data = message.data;
64181
+ 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;
64182
+ };
64183
+ var generateDarkColorHex = () => {
64184
+ let color2 = "#";
64185
+ for (let i2 = 0; i2 < 3; i2++) {
64186
+ color2 += `0${Math.floor(Math.random() * Math.pow(16, 2) / 2).toString(16)}`.slice(-2);
64187
+ }
64188
+ return color2;
64189
+ };
64190
+ var PostChannel = (_a = class {
64191
+ constructor(listener, opts) {
64192
+ __publicField(this, "__instance");
64193
+ __publicField(this, "__sender");
64194
+ __publicField(this, "__listener");
64195
+ __publicField(this, "__log");
64196
+ __publicField(this, "__receiver");
64197
+ __publicField(this, "__handler");
64198
+ __publicField(this, "__subscription");
64199
+ __publicField(this, "__okToWrite");
64200
+ __publicField(this, "__write$");
64201
+ __publicField(this, "__synack$");
64202
+ __publicField(this, "__user$");
64203
+ __publicField(this, "__colors");
64204
+ const events = new Subject();
64205
+ this.__instance = opts.instance ?? _a.__generateId();
64206
+ this.__listener = listener;
64207
+ this.__sender = opts.from;
64208
+ this.__receiver = opts.to;
64209
+ this.__handler = (message) => events.next(message);
64210
+ this.__log = opts.log && opts.log.bind(this);
64211
+ this.__subscription = new Subscription();
64212
+ this.__sender.addEventListener("message", this.__handler);
64213
+ const [synackMessages, userMessages] = partition(
64214
+ events.pipe(filter(isPostChannelMessage), map(getData)),
64215
+ (message) => synackKeys.includes(message.type)
64216
+ );
64217
+ this.__synack$ = synackMessages;
64218
+ this.__user$ = userMessages;
64219
+ this.__okToWrite = new ReplaySubject(1);
64220
+ this.__write$ = this.__okToWrite.pipe(take(1));
64221
+ const color2 = generateDarkColorHex();
64222
+ this.__colors = {
64223
+ bg: `${color2}22`,
64224
+ fg: color2
64225
+ };
64226
+ this.__connect(
64227
+ (opts == null ? void 0 : opts.period) ? opts.period : 10
64228
+ );
64229
+ }
64230
+ __connect(period) {
64231
+ const synSubscription = interval(period).subscribe(() => this.__receiver.postMessage({
64232
+ content: this.__instance,
64233
+ instance: this.__instance,
64234
+ type: "syn"
64235
+ /* Syn */
64236
+ }));
64237
+ this.__subscription.add(synSubscription);
64238
+ this.__subscription.add(
64239
+ this.__user$.subscribe((message) => {
64240
+ lastValueFrom(this.__okToWrite.pipe(take(1))).then((foreignInstance) => {
64241
+ if (message.instance === foreignInstance) {
64242
+ this.__listener(message.content);
64243
+ if (message._id !== void 0) {
64244
+ this.__receiver.postMessage({
64245
+ content: message._id,
64246
+ instance: this.__instance,
64247
+ type: "ack"
64248
+ /* Ack */
64249
+ });
64250
+ }
64251
+ }
64252
+ }).catch((err) => {
64253
+ console.error("Unexpected error", err.message);
64254
+ });
64255
+ })
64256
+ );
64257
+ this.__subscription.add(
64258
+ this.__synack$.pipe(
64259
+ filter(synackFilter(
64260
+ "ack"
64261
+ /* Ack */
64262
+ )),
64263
+ filter(({ content: content2 }) => content2 === this.instance),
64264
+ take(1)
64265
+ ).subscribe(({ instance: foreignInstance }) => {
64266
+ this.__okToWrite.next(foreignInstance);
64267
+ synSubscription.unsubscribe();
64268
+ })
64269
+ );
64270
+ this.__subscription.add(
64271
+ this.__synack$.pipe(
64272
+ // must check whether is not short-circuiting
64273
+ // in an infinite loop by syncing with itself
64274
+ filter(synackFilter(
64275
+ "syn"
64276
+ /* Syn */
64277
+ )),
64278
+ filter(({ instance: foreignInstance }) => foreignInstance !== this.instance),
64279
+ take(1)
64280
+ ).subscribe(({ content: content2 }) => {
64281
+ this.__receiver.postMessage({
64282
+ content: content2,
64283
+ instance: this.instance,
64284
+ type: "ack"
64285
+ /* Ack */
64286
+ });
64287
+ })
64288
+ );
64289
+ }
64290
+ __write(message, _id) {
64291
+ this.__subscription.add(
64292
+ this.__write$.subscribe(() => {
64293
+ var _a3;
64294
+ const outgoingMessage = {
64295
+ _id,
64296
+ content: message,
64297
+ instance: this.__instance,
64298
+ type: "msg"
64299
+ /* Msg */
64300
+ };
64301
+ this.__receiver.postMessage(outgoingMessage);
64302
+ (_a3 = this.__log) == null ? void 0 : _a3.call(this, message);
64303
+ })
64304
+ );
64305
+ }
64306
+ disconnect() {
64307
+ this.__subscription.unsubscribe();
64308
+ this.__sender.removeEventListener("message", this.__handler);
64309
+ }
64310
+ send(message) {
64311
+ this.__write(message);
64312
+ }
64313
+ ackSend(message) {
64314
+ let done;
64315
+ const promise = new Promise((resolve) => {
64316
+ done = resolve;
64317
+ });
64318
+ const messageId = _a.__generateId();
64319
+ this.__subscription.add(
64320
+ this.__synack$.pipe(
64321
+ filter(synackFilter(
64322
+ "ack"
64323
+ /* Ack */
64324
+ )),
64325
+ filter(({ content: content2 }) => content2 === messageId),
64326
+ take(1)
64327
+ ).subscribe(() => done())
64328
+ );
64329
+ this.__write(message, messageId);
64330
+ return promise;
64331
+ }
64332
+ get instance() {
64333
+ return this.__instance;
64334
+ }
64335
+ get colors() {
64336
+ return this.__colors;
64337
+ }
64338
+ /**
64339
+ * signals readiness on listening and cannot fail but keeps hanging
64340
+ * if not resolved
64341
+ */
64342
+ get ready() {
64343
+ return firstValueFrom(this.__write$).then(() => {
64344
+ });
64345
+ }
64346
+ }, __publicField(_a, "__generateId", () => {
64347
+ if (window) {
64348
+ return window.crypto.randomUUID();
64349
+ }
64350
+ return __require("crypto").randomUUID();
64351
+ }), __publicField(_a, "utils", {
64352
+ isPostChannelMessage
64353
+ }), _a);
64354
+ var createPostChannel = (listener, opts) => {
64355
+ const channel = new PostChannel(listener, opts);
64356
+ return channel.ready.then(() => channel);
64357
+ };
64358
+ var __defProp$2 = Object.defineProperty;
64359
+ var __defNormalProp$2 = (obj, key2, value) => key2 in obj ? __defProp$2(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
64360
+ var __publicField$2 = (obj, key2, value) => {
64361
+ __defNormalProp$2(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
64362
+ return value;
64363
+ };
64364
+ class Lexer {
64365
+ constructor(input) {
64366
+ __publicField$2(this, "_input");
64367
+ __publicField$2(this, "_length");
64368
+ __publicField$2(this, "_idx", 0);
64369
+ __publicField$2(
64370
+ this,
64371
+ "_mode",
64372
+ 0
64373
+ /* Literal */
64374
+ );
64375
+ __publicField$2(this, "_literals", []);
64376
+ __publicField$2(this, "_variables", []);
64377
+ __publicField$2(this, "_braketCount", 0);
64378
+ __publicField$2(this, "_done", false);
64379
+ this._input = input;
64380
+ this._length = input.length;
64381
+ }
64382
+ concatToLastLiteral(concat) {
64383
+ this._literals.push(this._literals.pop().concat(concat));
64384
+ }
64385
+ concatToLastVariable(concat) {
64386
+ this._variables.push(this._variables.pop().concat(concat));
64387
+ }
64388
+ get() {
64389
+ const rawLiterals = [...this._literals];
64390
+ const literals = Object.assign([], rawLiterals);
64391
+ Object.defineProperty(literals, "raw", { value: rawLiterals, writable: false });
64392
+ return {
64393
+ literals,
64394
+ variables: this._variables
64395
+ };
64396
+ }
64397
+ run() {
64398
+ if (this._length === 0) {
64399
+ this._literals.push("");
64400
+ }
64401
+ while (this._idx < this._length) {
64402
+ const char = this._input.charAt(this._idx);
64403
+ switch (this._mode) {
64404
+ case 0: {
64405
+ if (this._literals.length === 0) {
64406
+ this._literals.push("");
64407
+ }
64408
+ if (char === "{" && this._idx + 1 !== this._length && this._input.charAt(this._idx + 1) === "{") {
64409
+ this._literals.push("");
64410
+ this._variables.push("");
64411
+ this._mode = 1;
64412
+ this._idx += 1;
64413
+ } else {
64414
+ this.concatToLastLiteral(char);
64415
+ }
64416
+ break;
64417
+ }
64418
+ case 1:
64419
+ if (char === "}" && this._input.charAt(this._idx + 1) === "}") {
64420
+ this._mode = 0;
64421
+ this._idx += 1;
64422
+ } else {
64423
+ this.concatToLastVariable(char);
64424
+ }
64425
+ break;
64426
+ }
64427
+ this._idx += 1;
64428
+ }
64429
+ if (this._mode === 1) {
64430
+ this._literals.pop();
64431
+ this.concatToLastLiteral("{{".concat(this._variables.pop()));
64432
+ }
64433
+ this._done = true;
64434
+ }
62965
64435
  }
62966
64436
  const isSquareBrakets = (field) => {
62967
64437
  const trimmed = field.trim();
@@ -63033,15 +64503,15 @@ const keys2 = {
63033
64503
  };
63034
64504
  const registerChannels = () => ({
63035
64505
  componentsExplorerVisible: new BehaviorSubject(false),
63036
- configuration: new ReplaySubject(),
64506
+ configuration: new ReplaySubject$1(),
63037
64507
  focus: new BehaviorSubject(void 0),
63038
- infos: new ReplaySubject(),
63039
- mocks: new ReplaySubject(),
64508
+ infos: new ReplaySubject$1(),
64509
+ mocks: new ReplaySubject$1(),
63040
64510
  mode: new BehaviorSubject("select"),
63041
- notification: new ReplaySubject(),
63042
- setSourceMap: new ReplaySubject(1),
63043
- swSourceMapAck: new ReplaySubject(1),
63044
- updated: new Subject(),
64511
+ notification: new ReplaySubject$1(),
64512
+ setSourceMap: new ReplaySubject$1(1),
64513
+ swSourceMapAck: new ReplaySubject$1(1),
64514
+ updated: new Subject$1(),
63045
64515
  uppercaseTags: /* @__PURE__ */ new Set()
63046
64516
  });
63047
64517
  const nextMode = (mode) => {
@@ -63056,8 +64526,7 @@ const nextMode = (mode) => {
63056
64526
  return next;
63057
64527
  };
63058
64528
  const swMakeListener = (_2) => (message) => {
63059
- const { data } = message;
63060
- switch (data.type) {
64529
+ switch (message.type) {
63061
64530
  }
63062
64531
  };
63063
64532
  function useChannel(channel, reducer, initialValue) {
@@ -63079,15 +64548,15 @@ const registerServiceWorker = async (self2, channels) => {
63079
64548
  if (!registration.active) {
63080
64549
  throw new TypeError("smth went wrong on sw activation");
63081
64550
  }
63082
- return new src_default(swMakeListener(), window.navigator.serviceWorker, registration.active);
64551
+ return createPostChannel(swMakeListener(), { from: window.navigator.serviceWorker, instance: "preview-to-service-worker", to: registration.active });
63083
64552
  })
63084
64553
  ]).then(([, channel]) => channel);
63085
64554
  };
63086
- const parentMakeListener = (self2, channels) => (message) => {
63087
- const { data } = message;
63088
- switch (data.type) {
64555
+ const parentMakeListener = (self2, channels) => (_message) => {
64556
+ const message = _message;
64557
+ switch (message.type) {
63089
64558
  case "options": {
63090
- const { content: { disableOverlay, redirectTo, timeout, run: run2, language } } = data;
64559
+ const { content: { disableOverlay, redirectTo, timeout, run: run2, language } } = message;
63091
64560
  if (run2) {
63092
64561
  channels.swSourceMapAck.next(0);
63093
64562
  }
@@ -63106,22 +64575,22 @@ const parentMakeListener = (self2, channels) => (message) => {
63106
64575
  break;
63107
64576
  }
63108
64577
  case "toggle-components-explorer":
63109
- channels.componentsExplorerVisible.next(data.content.visible);
64578
+ channels.componentsExplorerVisible.next(message.content.visible);
63110
64579
  break;
63111
64580
  case "ctrl-space":
63112
64581
  nextMode(channels.mode);
63113
64582
  break;
63114
64583
  case "new-configuration":
63115
- channels.configuration.next({ ...data.content, type: "reset" });
64584
+ channels.configuration.next({ ...message.content, type: "reset" });
63116
64585
  break;
63117
64586
  case "update":
63118
- channels.configuration.next({ ...data.content, type: "update" });
64587
+ channels.configuration.next({ ...message.content, type: "update" });
63119
64588
  break;
63120
64589
  case "focus-element":
63121
- channels.focus.next(data.content);
64590
+ channels.focus.next(message.content);
63122
64591
  break;
63123
64592
  case "set-source-map": {
63124
- const { content: content2 } = data;
64593
+ const { content: content2 } = message;
63125
64594
  channels.setSourceMap.next(Object.entries(content2).reduce((acc, [from2, to]) => {
63126
64595
  try {
63127
64596
  const { href: fromUrl } = new URL(from2, self2.location.href);
@@ -63138,11 +64607,11 @@ const parentMakeListener = (self2, channels) => (message) => {
63138
64607
  }
63139
64608
  }
63140
64609
  };
63141
- const registerParent = (self2, channels) => new src_default(
64610
+ const registerParent = (self2, channels) => createPostChannel(
63142
64611
  parentMakeListener(self2, channels),
63143
- self2,
63144
- fromWindowToReceiver(self2.parent),
63145
64612
  {
64613
+ from: self2,
64614
+ instance: "preview-to-main-thread",
63146
64615
  log(message) {
63147
64616
  {
63148
64617
  console.assert(self2.parent !== self2);
@@ -63154,7 +64623,8 @@ const registerParent = (self2, channels) => new src_default(
63154
64623
  console.log(message.content);
63155
64624
  console.groupEnd();
63156
64625
  }
63157
- }
64626
+ },
64627
+ to: adapters.fromWindowToReceiver(self2.parent)
63158
64628
  }
63159
64629
  );
63160
64630
  const translations = {
@@ -66350,13 +67820,13 @@ const JsonViewer = ({ schema }) => {
66350
67820
  };
66351
67821
  const getLibraryKey = (component) => component.source || "__other_libraries_key__";
66352
67822
  const getLibraryLabel = (component) => {
66353
- var _a2;
66354
- return ((_a2 = component.libraryName) != null ? _a2 : component.source) || getTranslation("components.components-explorer.other-libs.name");
67823
+ var _a3;
67824
+ return ((_a3 = component.libraryName) != null ? _a3 : component.source) || getTranslation("components.components-explorer.other-libs.name");
66355
67825
  };
66356
67826
  const beautifyTag = (tag) => tag.split("-").map((_tag) => _tag.charAt(0).toUpperCase() + _tag.slice(1)).join(" ");
66357
67827
  const getComponentLabel = (component) => {
66358
- var _a2;
66359
- return (_a2 = component.info.label) != null ? _a2 : beautifyTag(component.tag);
67828
+ var _a3;
67829
+ return (_a3 = component.info.label) != null ? _a3 : beautifyTag(component.tag);
66360
67830
  };
66361
67831
  const ComponentsExplorer = ({ info$, hide: hide2 }) => {
66362
67832
  const [searchValue, setSearchValue] = reactExports.useState("");
@@ -66617,8 +68087,8 @@ const unfocus = (element2, mapping) => {
66617
68087
  if (originalStyle) {
66618
68088
  const { css: css2, rest, subscription } = originalStyle;
66619
68089
  rest.forEach((el2) => {
66620
- var _a2;
66621
- return (_a2 = el2.__unfocus_handler) == null ? void 0 : _a2.call(el2);
68090
+ var _a3;
68091
+ return (_a3 = el2.__unfocus_handler) == null ? void 0 : _a3.call(el2);
66622
68092
  });
66623
68093
  subscription.unsubscribe();
66624
68094
  originalStyle.elementToFocus.forEach((el2, idx) => {
@@ -66634,25 +68104,25 @@ function focus(document2, obs$, mode$) {
66634
68104
  const subscription = obs$.pipe(
66635
68105
  pairwise(),
66636
68106
  tap(([current]) => {
66637
- var _a2;
68107
+ var _a3;
66638
68108
  if (current !== void 0) {
66639
68109
  const prev = getElement(document2, current);
66640
68110
  if (prev !== null) {
66641
- (_a2 = prev.__unfocus_handler) == null ? void 0 : _a2.call(prev);
68111
+ (_a3 = prev.__unfocus_handler) == null ? void 0 : _a3.call(prev);
66642
68112
  unfocus(prev, stylesMap);
66643
68113
  }
66644
68114
  }
66645
68115
  }),
66646
- map$3(([, next]) => next),
66647
- filter(noUndefined),
66648
- map$3((next) => {
68116
+ map$4(([, next]) => next),
68117
+ filter$1(noUndefined),
68118
+ map$4((next) => {
66649
68119
  const [first, ...rest] = next.selectors;
66650
68120
  const otherElements = rest.reduce((arr, selector) => {
66651
- var _a2;
68121
+ var _a3;
66652
68122
  const el2 = getBySelector(selector);
66653
68123
  if (el2) {
66654
68124
  arr.push(el2);
66655
- const result = (_a2 = el2.__focus_handler) == null ? void 0 : _a2.call(el2);
68125
+ const result = (_a3 = el2.__focus_handler) == null ? void 0 : _a3.call(el2);
66656
68126
  if (result && "then" in result) {
66657
68127
  result.catch(noop2);
66658
68128
  }
@@ -66661,11 +68131,11 @@ function focus(document2, obs$, mode$) {
66661
68131
  }, []);
66662
68132
  return { first, next, otherElements };
66663
68133
  }),
66664
- map$3((next) => ({ ...next, firstElement: getBySelector(next.first) })),
66665
- filter((next) => next.firstElement !== null),
66666
- map$3((next) => {
66667
- var _a2, _b;
66668
- return { ...next, focus: (_b = (_a2 = next.firstElement).__focus_handler) == null ? void 0 : _b.call(_a2) };
68134
+ map$4((next) => ({ ...next, firstElement: getBySelector(next.first) })),
68135
+ filter$1((next) => next.firstElement !== null),
68136
+ map$4((next) => {
68137
+ var _a3, _b;
68138
+ return { ...next, focus: (_b = (_a3 = next.firstElement).__focus_handler) == null ? void 0 : _b.call(_a3) };
66669
68139
  }),
66670
68140
  concatMap(({ focus: focusPromise, ...rest }) => {
66671
68141
  const promise = focusPromise && "then" in focusPromise ? focusPromise : Promise.resolve(focusPromise != null ? focusPromise : rest.firstElement);
@@ -66673,17 +68143,17 @@ function focus(document2, obs$, mode$) {
66673
68143
  })
66674
68144
  ).subscribe(({ otherElements, next, firstElement, focus: focusContext }) => {
66675
68145
  const cssKeys = Object.keys(next.style);
66676
- const stylePendingChanges = new Subscription();
68146
+ const stylePendingChanges = new Subscription$1();
66677
68147
  const elementToFocus = toArray$1(focusContext != null ? focusContext : firstElement).filter(Boolean);
66678
68148
  const initialStyles = { css: [], elementToFocus, rest: otherElements, subscription: stylePendingChanges };
66679
68149
  const styles2 = cssKeys.reduce((acc, key2) => {
66680
68150
  elementToFocus.forEach((el2, idx) => {
66681
- var _a2;
66682
- acc.css[idx] = Object.assign((_a2 = acc.css[idx]) != null ? _a2 : {}, { [key2]: el2.style[key2] });
68151
+ var _a3;
68152
+ acc.css[idx] = Object.assign((_a3 = acc.css[idx]) != null ? _a3 : {}, { [key2]: el2.style[key2] });
66683
68153
  });
66684
68154
  return acc;
66685
68155
  }, initialStyles);
66686
- stylePendingChanges.add(mode$.pipe(filter((val) => val === "select"), take(1)).subscribe(() => {
68156
+ stylePendingChanges.add(mode$.pipe(filter$1((val) => val === "select"), take$1(1)).subscribe(() => {
66687
68157
  elementToFocus.forEach((el2) => {
66688
68158
  Object.assign(el2.style, next.style);
66689
68159
  });
@@ -67067,8 +68537,8 @@ function parseContent(buffer2, content2, extraProperties) {
67067
68537
  return acc;
67068
68538
  }, { override: {}, props: {} });
67069
68539
  const initialTagExtraProperties = Array.from(extraProperties.keys()).map((prop) => {
67070
- var _a2;
67071
- return ".".concat(prop, "=${").concat((_a2 = override[prop]) != null ? _a2 : prop, "}");
68540
+ var _a3;
68541
+ return ".".concat(prop, "=${").concat((_a3 = override[prop]) != null ? _a3 : prop, "}");
67072
68542
  });
67073
68543
  const initialTagProperties = Object.entries(props).reduce((acc, [name2, value]) => {
67074
68544
  switch (typeof value) {
@@ -67296,7 +68766,7 @@ const lexer = async (input) => {
67296
68766
  }
67297
68767
  return cache.get(hash);
67298
68768
  };
67299
- class Bus extends ReplaySubject {
68769
+ class Bus extends ReplaySubject$1 {
67300
68770
  }
67301
68771
  function createPool() {
67302
68772
  const array = [];
@@ -67333,14 +68803,14 @@ async function createComposerContext(content2, { extraProperties, context = {} }
67333
68803
  return (container, options) => D(htmlTemplate, container, options);
67334
68804
  }
67335
68805
  async function premount(config2, proxyWindow = window, reporter2 = console.error) {
67336
- var _a2;
68806
+ var _a3;
67337
68807
  let uris = [];
67338
68808
  let importmap;
67339
68809
  let modules = {};
67340
68810
  let done = Promise.resolve();
67341
68811
  if (config2.sources) {
67342
68812
  const { sources } = config2;
67343
- importmap = !Array.isArray(sources) && typeof sources !== "string" ? (_a2 = sources.importmap) != null ? _a2 : {} : {};
68813
+ importmap = !Array.isArray(sources) && typeof sources !== "string" ? (_a3 = sources.importmap) != null ? _a3 : {} : {};
67344
68814
  try {
67345
68815
  proxyWindow.importShim.addImportMap(importmap);
67346
68816
  } catch (err) {
@@ -67377,9 +68847,9 @@ async function render(config2, container, context = {}) {
67377
68847
  });
67378
68848
  }
67379
68849
  const fromErrorToNotification = (error2) => {
67380
- var _a2;
68850
+ var _a3;
67381
68851
  return {
67382
- data: { message: error2.message, name: error2.name, stack: (_a2 = error2.stack) != null ? _a2 : "" },
68852
+ data: { message: error2.message, name: error2.name, stack: (_a3 = error2.stack) != null ? _a3 : "" },
67383
68853
  description: "preview.notifications.error.description",
67384
68854
  message: "preview.notifications.error.message",
67385
68855
  status: "error"
@@ -67472,13 +68942,13 @@ const collectInfos = (postChannel, info$, addInfo) => info$.pipe(
67472
68942
  return of$1({ info: { libraryName: tag.libraryName, source: tag.source, ...translateObject({ description, descriptionLong, label }), ...rest }, tag: tag.name });
67473
68943
  }),
67474
68944
  bufferTime(BUFFER_TIME),
67475
- filter((newInfos) => newInfos.length > 0)
68945
+ filter$1((newInfos) => newInfos.length > 0)
67476
68946
  ).subscribe({
67477
68947
  error: (error2) => reporter(postChannel, error2),
67478
68948
  next: (extras) => addInfo(extras)
67479
68949
  });
67480
68950
  const collectMocks = (postChannel, subjects, info$) => info$.pipe(
67481
- map$3(
68951
+ map$4(
67482
68952
  ([, { __manifest: { mocks = {} }, tag }]) => [tag.name, mocks]
67483
68953
  )
67484
68954
  ).subscribe({
@@ -67553,9 +69023,9 @@ function fetchMockFactory(instance, fetchFactory, windowHref) {
67553
69023
  );
67554
69024
  const routes = fetchFactory(context);
67555
69025
  return routes.map(({ url, method = "GET", notify = false, handler: fetchHandler = () => Promise.resolve(new Response()) }) => {
67556
- var _a2;
69026
+ var _a3;
67557
69027
  const info = compileObject({ ...url, method }, context);
67558
- const matcher = new URL(info.pathname, (_a2 = info.origin) != null ? _a2 : windowHref);
69028
+ const matcher = new URL(info.pathname, (_a3 = info.origin) != null ? _a3 : windowHref);
67559
69029
  return [matcher.href, method, (injectedInfo, init) => fetchHandler(injectedInfo, init).finally(() => {
67560
69030
  if (notify) {
67561
69031
  this.notify(fetchNotification(method, matcher));
@@ -67580,9 +69050,9 @@ class FetchMockStore extends Map {
67580
69050
  this.notify = notify;
67581
69051
  }
67582
69052
  add(obj, value) {
67583
- var _a2, _b;
69053
+ var _a3, _b;
67584
69054
  const { method, url } = obj;
67585
- const methodMap = (_a2 = this.get(method)) != null ? _a2 : /* @__PURE__ */ new Map();
69055
+ const methodMap = (_a3 = this.get(method)) != null ? _a3 : /* @__PURE__ */ new Map();
67586
69056
  const urls = (_b = this.__urlMap.get(method)) != null ? _b : [];
67587
69057
  methodMap.set(url, value);
67588
69058
  urls.push(url);
@@ -67590,7 +69060,7 @@ class FetchMockStore extends Map {
67590
69060
  this.__urlMap.set(method, urls);
67591
69061
  }
67592
69062
  match(obj) {
67593
- var _a2;
69063
+ var _a3;
67594
69064
  const { method, url } = obj;
67595
69065
  const urls = this.__urlMap.get(method);
67596
69066
  if (urls === void 0) {
@@ -67609,7 +69079,7 @@ class FetchMockStore extends Map {
67609
69079
  if (id2 === void 0) {
67610
69080
  return;
67611
69081
  }
67612
- return (_a2 = this.get(method)) == null ? void 0 : _a2.get(urls[id2]);
69082
+ return (_a3 = this.get(method)) == null ? void 0 : _a3.get(urls[id2]);
67613
69083
  }
67614
69084
  }
67615
69085
  const storeSaverMapFactory = (store2) => ([url, method, fetchHandler]) => store2.add({ method, url }, fetchHandler);
@@ -67624,8 +69094,8 @@ async function handler(store2, instances, factory, href) {
67624
69094
  fetchMockFactory.call(store2, instances, factory, href).map(storeSaverMap)
67625
69095
  ).then(noop2);
67626
69096
  }
67627
- var _a;
67628
- const MANIFEST_TIMEOUT = (_a = window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__) != null ? _a : 5e3;
69097
+ var _a2;
69098
+ const MANIFEST_TIMEOUT = (_a2 = window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__) != null ? _a2 : 5e3;
67629
69099
  const printHeaders = (headers) => {
67630
69100
  const obj = {};
67631
69101
  headers.forEach((val, key2) => {
@@ -67634,11 +69104,11 @@ const printHeaders = (headers) => {
67634
69104
  return JSON.stringify(obj);
67635
69105
  };
67636
69106
  const fetchPrint = (window2, url, init, resHeaders = new Headers()) => {
67637
- var _a2;
69107
+ var _a22;
67638
69108
  const style2 = window2.origin === "null" ? { background: "antiquewhite", color: "brown" } : { background: "cyan", color: "blue" };
67639
69109
  console.groupCollapsed("%c Fetching from ".concat(window2.origin, " "), Object.entries(style2).map(([key2, val]) => "".concat(key2, ": ").concat(val)).join("; "));
67640
69110
  console.info(
67641
- "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)),
69111
+ "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)),
67642
69112
  "background: lightgreen; color: darkgreen"
67643
69113
  );
67644
69114
  console.groupEnd();
@@ -67655,12 +69125,12 @@ async function mock(postChannel, subjects, contexts, tags = []) {
67655
69125
  const urlMaker = urlMakerFactory(this);
67656
69126
  const store2 = new FetchMockStore(this.notify.bind(this));
67657
69127
  await Promise.all(tags.map(async (tag) => {
67658
- var _a2;
69128
+ var _a22;
67659
69129
  let fetchFactory = () => [];
67660
69130
  const raced = await Promise.race([
67661
- lastValueFrom(timer(MANIFEST_TIMEOUT)),
67662
- lastValueFrom(
67663
- subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === tag), take(1))
69131
+ lastValueFrom$1(timer$1(MANIFEST_TIMEOUT)),
69132
+ lastValueFrom$1(
69133
+ subjects.mocks.pipe(filter$1(([incomingTag]) => incomingTag === tag), take$1(1))
67664
69134
  )
67665
69135
  ]);
67666
69136
  if (raced === 0) {
@@ -67671,15 +69141,15 @@ async function mock(postChannel, subjects, contexts, tags = []) {
67671
69141
  fetchFactory = fetch2;
67672
69142
  }
67673
69143
  }
67674
- const instancesCarryingMocks = (_a2 = contexts.get(tag)) != null ? _a2 : [];
69144
+ const instancesCarryingMocks = (_a22 = contexts.get(tag)) != null ? _a22 : [];
67675
69145
  return handler(store2, instancesCarryingMocks, fetchFactory, href);
67676
69146
  })).catch(
67677
69147
  (error2) => error2 instanceof Error && errorHandler(postChannel, error2)
67678
69148
  );
67679
69149
  const mockedFetch = async (info, init) => {
67680
- var _a2;
69150
+ var _a22;
67681
69151
  const url = toURL(urlMaker, info);
67682
- const mockImplementation = store2.match({ method: (_a2 = init == null ? void 0 : init.method) != null ? _a2 : "GET", url });
69152
+ const mockImplementation = store2.match({ method: (_a22 = init == null ? void 0 : init.method) != null ? _a22 : "GET", url });
67683
69153
  if (mockImplementation !== void 0) {
67684
69154
  return mockImplementation(url, init).then((res) => {
67685
69155
  {
@@ -67698,9 +69168,9 @@ async function mock(postChannel, subjects, contexts, tags = []) {
67698
69168
  let fetchFactory = () => [];
67699
69169
  if (isCustomTag(instance.tag)) {
67700
69170
  const raced = await Promise.race([
67701
- lastValueFrom(timer(MANIFEST_TIMEOUT)),
67702
- lastValueFrom(
67703
- subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === instance.tag), take(1))
69171
+ lastValueFrom$1(timer$1(MANIFEST_TIMEOUT)),
69172
+ lastValueFrom$1(
69173
+ subjects.mocks.pipe(filter$1(([incomingTag]) => incomingTag === instance.tag), take$1(1))
67704
69174
  )
67705
69175
  ]);
67706
69176
  if (raced === 0) {
@@ -67785,8 +69255,8 @@ class InMemoryStorage extends Map {
67785
69255
  super.clear();
67786
69256
  }
67787
69257
  getItem(key2) {
67788
- var _a2;
67789
- return (_a2 = super.get(key2)) != null ? _a2 : null;
69258
+ var _a3;
69259
+ return (_a3 = super.get(key2)) != null ? _a3 : null;
67790
69260
  }
67791
69261
  key() {
67792
69262
  return null;
@@ -67805,11 +69275,11 @@ function domPatch(frame) {
67805
69275
  const element2 = originalCreateElement.call(this, tagName, options);
67806
69276
  if (isAnchor(element2)) {
67807
69277
  const notifyAnchorClick = () => {
67808
- var _a2;
69278
+ var _a3;
67809
69279
  return frame.notify({
67810
69280
  data: {
67811
69281
  href: trimLocationOrigin(frame.location.origin, new URL(element2.href, frame.location.href)),
67812
- target: (_a2 = element2.getAttribute("target")) != null ? _a2 : "_self"
69282
+ target: (_a3 = element2.getAttribute("target")) != null ? _a3 : "_self"
67813
69283
  },
67814
69284
  description: "preview.notifications.anchor.description",
67815
69285
  message: "preview.notifications.anchor.message",
@@ -67941,7 +69411,7 @@ function appendOverlay(self2, mode$) {
67941
69411
  const isVisible = () => overlay.style.display === visibleOverlayDisplay;
67942
69412
  const swap2 = () => isVisible() ? overlay.style.display = "none" : overlay.style.display = visibleOverlayDisplay;
67943
69413
  const subscription = mode$.pipe(
67944
- filter((next) => {
69414
+ filter$1((next) => {
67945
69415
  if (self2.__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__) {
67946
69416
  return next === "interact";
67947
69417
  }
@@ -67982,7 +69452,7 @@ function createLifecycle(frame, postChannel) {
67982
69452
  bootstrap: bootstrap.bind(composerFrame),
67983
69453
  mocks: { fetch: /* @__PURE__ */ new Map() },
67984
69454
  postChannel,
67985
- subscription: new Subscription(),
69455
+ subscription: new Subscription$1(),
67986
69456
  unmount: unmount.bind(composerFrame),
67987
69457
  update: update.bind(composerFrame)
67988
69458
  });
@@ -68046,8 +69516,8 @@ const run = (frame, renderRoot, postChannel, channels) => {
68046
69516
  const { context } = next;
68047
69517
  done = queue.add([
68048
69518
  () => {
68049
- var _a2, _b, _c;
68050
- return (_c = (_a2 = frame.proxyWindow) == null ? void 0 : (_b = _a2.fetch).update) == null ? void 0 : _c.call(_b, context);
69519
+ var _a3, _b, _c;
69520
+ return (_c = (_a3 = frame.proxyWindow) == null ? void 0 : (_b = _a3.fetch).update) == null ? void 0 : _c.call(_b, context);
68051
69521
  },
68052
69522
  () => update.call(frame, content2, renderRoot).finally(() => channels.updated.next(0))
68053
69523
  ]);
@@ -68089,10 +69559,10 @@ const interceptCORSFetch = (self2, notification) => {
68089
69559
  }
68090
69560
  const originalFetch = self2.fetch.bind(self2);
68091
69561
  self2.fetch = (input, init) => {
68092
- var _a2;
69562
+ var _a3;
68093
69563
  const url = toURL(urlMaker, input);
68094
69564
  if (isSameDocumentOriginRequest(document2, url)) {
68095
- notification.next(fetchNotification((_a2 = init == null ? void 0 : init.method) != null ? _a2 : "GET", url));
69565
+ notification.next(fetchNotification((_a3 = init == null ? void 0 : init.method) != null ? _a3 : "GET", url));
68096
69566
  }
68097
69567
  return originalFetch(input, init);
68098
69568
  };
@@ -68120,7 +69590,7 @@ const createComposerApplication = (self2, postChannel, channels) => {
68120
69590
  };
68121
69591
  };
68122
69592
  function registerParentWindowSenders(chs) {
68123
- const subscription = new Subscription();
69593
+ const subscription = new Subscription$1();
68124
69594
  subscription.add(
68125
69595
  chs.updated.subscribe(() => this.send({
68126
69596
  content: {},
@@ -68154,7 +69624,7 @@ function registerParentWindowSenders(chs) {
68154
69624
  };
68155
69625
  }
68156
69626
  function registerServiceWorkerSenders(channels) {
68157
- const subscription = new Subscription();
69627
+ const subscription = new Subscription$1();
68158
69628
  subscription.add(
68159
69629
  channels.setSourceMap.subscribe(
68160
69630
  (message) => {
@@ -68182,7 +69652,7 @@ function registerCleanups(window2, fns) {
68182
69652
  (async (self2) => {
68183
69653
  const channels = registerChannels();
68184
69654
  const swRegistration = await registerServiceWorker(self2);
68185
- const parentWindowRegistration = registerParent(self2, channels);
69655
+ const parentWindowRegistration = await registerParent(self2, channels);
68186
69656
  const serviceWorkerSenderCleanup = registerServiceWorkerSenders.call(swRegistration, channels);
68187
69657
  const parentWindowSenderCleanup = registerParentWindowSenders.call(parentWindowRegistration, channels);
68188
69658
  const listenerCleanup = registerEventListeners(