@kosdev-code/kos-ui-sdk 0.1.0-dev.5697 → 0.1.0-dev.5699

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -356,7 +356,7 @@ function Pa(t, e, s) {
356
356
  const d = o(u);
357
357
  if (i.has(d))
358
358
  return;
359
- i.add(d), i.size > 1e3 && Array.from(i).slice(0, 500).forEach((f) => i.delete(f));
359
+ i.add(d), i.size > 1e3 && Array.from(i).slice(0, 500).forEach((p) => i.delete(p));
360
360
  }
361
361
  await e(u);
362
362
  }
@@ -365,8 +365,8 @@ function Pa(t, e, s) {
365
365
  const u = await r(), d = Array.isArray(u) ? u : [u];
366
366
  for (const h of d)
367
367
  if (o) {
368
- const f = o(h);
369
- i.has(f) || (i.add(f), await e(h));
368
+ const p = o(h);
369
+ i.has(p) || (i.add(p), await e(h));
370
370
  } else
371
371
  await e(h);
372
372
  } catch (u) {
@@ -393,7 +393,7 @@ function Ra(t) {
393
393
  return a.data;
394
394
  const h = await en(e, {
395
395
  getCurrentState: o,
396
- shouldUseFetchedState: (f) => !!f,
396
+ shouldUseFetchedState: (p) => !!p,
397
397
  timeout: d
398
398
  });
399
399
  return a.state = "connected", a.data = h, u(), h;
@@ -1014,19 +1014,19 @@ function ts(t) {
1014
1014
  )}`;
1015
1015
  if (e[jt][i] = o, !t.lifecycle) {
1016
1016
  const c = function(...u) {
1017
- const d = u[u.length - 1], h = async (f) => {
1018
- const p = ai.get(c);
1019
- if (!p)
1017
+ const d = u[u.length - 1], h = async (p) => {
1018
+ const f = ai.get(c);
1019
+ if (!f)
1020
1020
  throw new Error("Service request metadata not found for method");
1021
1021
  try {
1022
1022
  const { default: m } = await Promise.resolve().then(() => $o), { resolvedPath: y, apiParams: v, finalBody: _, finalRequestOptions: U } = Yd(
1023
- p,
1023
+ f,
1024
1024
  this,
1025
1025
  u,
1026
- f
1026
+ p
1027
1027
  ), [D, $] = await Wd(
1028
1028
  m,
1029
- p.method,
1029
+ f.method,
1030
1030
  y,
1031
1031
  v,
1032
1032
  _,
@@ -1036,11 +1036,11 @@ function ts(t) {
1036
1036
  return Qd(
1037
1037
  D,
1038
1038
  $,
1039
- p.errorHandler,
1039
+ f.errorHandler,
1040
1040
  this
1041
1041
  );
1042
1042
  let L = $;
1043
- return p.transform && (L = p.transform($)), [null, L];
1043
+ return f.transform && (L = f.transform($)), [null, L];
1044
1044
  } catch (m) {
1045
1045
  return [m.message || "Unknown error", null];
1046
1046
  }
@@ -1048,11 +1048,11 @@ function ts(t) {
1048
1048
  if (Wa(d))
1049
1049
  return d.$request = h, n.apply(this, u);
1050
1050
  {
1051
- const f = {
1051
+ const p = {
1052
1052
  [Mo]: !0,
1053
1053
  $request: h
1054
1054
  };
1055
- return n.apply(this, [...u, f]);
1055
+ return n.apply(this, [...u, p]);
1056
1056
  }
1057
1057
  };
1058
1058
  ai.set(c, o), r.value = c;
@@ -1723,13 +1723,13 @@ class Ze {
1723
1723
  const s = this._disposerMap.get(e.id);
1724
1724
  s && (s(), this._disposerMap.delete(e.id));
1725
1725
  const r = Object.entries(this._optionsMap || {}), n = Object.values(this._optionsMap || {}), o = new Map(r.map(([u, d]) => [d, u])), i = (u) => {
1726
- var h, f;
1726
+ var h, p;
1727
1727
  n.includes(u.name) && ((h = this.index.get(o.get(u.name))) == null || h.refresh());
1728
1728
  const d = r.filter(
1729
- ([, p]) => typeof p == "function"
1729
+ ([, f]) => typeof f == "function"
1730
1730
  );
1731
- for (const [p] of d)
1732
- (f = this.index.get(p)) == null || f.refresh();
1731
+ for (const [f] of d)
1732
+ (p = this.index.get(f)) == null || p.refresh();
1733
1733
  }, a = ch(
1734
1734
  e,
1735
1735
  i,
@@ -2509,25 +2509,25 @@ function Mh(t, e) {
2509
2509
  "trace",
2510
2510
  "getCompanionParent"
2511
2511
  // Don't override our own getCompanionParent
2512
- ], u = (p) => {
2512
+ ], u = (f) => {
2513
2513
  const m = i.constructor.prototype[ne] || {};
2514
2514
  return Object.values(m).some((y) => {
2515
2515
  const v = y == null ? void 0 : y.handler;
2516
- return v === i[p] || v === i.constructor.prototype[p];
2516
+ return v === i[f] || v === i.constructor.prototype[f];
2517
2517
  });
2518
- }, d = (p) => p === "constructor" || p.startsWith("_") || p.startsWith("__") || a.includes(p) || c.includes(p) || o.includes(p) || u(p) || // Exclude topic handler methods in decorator mode
2519
- p in t, h = /* @__PURE__ */ new Set();
2520
- Object.getOwnPropertyNames(i).filter((p) => !d(p)).forEach((p) => h.add(p));
2521
- let f = Object.getPrototypeOf(i);
2522
- for (; f && f !== Object.prototype; )
2523
- Object.getOwnPropertyNames(f).filter((p) => !d(p)).forEach((p) => h.add(p)), f = Object.getPrototypeOf(f);
2524
- for (const p of h)
2518
+ }, d = (f) => f === "constructor" || f.startsWith("_") || f.startsWith("__") || a.includes(f) || c.includes(f) || o.includes(f) || u(f) || // Exclude topic handler methods in decorator mode
2519
+ f in t, h = /* @__PURE__ */ new Set();
2520
+ Object.getOwnPropertyNames(i).filter((f) => !d(f)).forEach((f) => h.add(f));
2521
+ let p = Object.getPrototypeOf(i);
2522
+ for (; p && p !== Object.prototype; )
2523
+ Object.getOwnPropertyNames(p).filter((f) => !d(f)).forEach((f) => h.add(f)), p = Object.getPrototypeOf(p);
2524
+ for (const f of h)
2525
2525
  try {
2526
- const m = i[p];
2527
- typeof m == "function" ? t[p] = (...y) => m.apply(i, y) : Object.defineProperty(t, p, {
2528
- get: () => i[p],
2526
+ const m = i[f];
2527
+ typeof m == "function" ? t[f] = (...y) => m.apply(i, y) : Object.defineProperty(t, f, {
2528
+ get: () => i[f],
2529
2529
  set: (y) => {
2530
- i[p] = y;
2530
+ i[f] = y;
2531
2531
  },
2532
2532
  enumerable: !0,
2533
2533
  configurable: !0
@@ -2535,7 +2535,7 @@ function Mh(t, e) {
2535
2535
  });
2536
2536
  } catch (m) {
2537
2537
  Vn.debug(
2538
- `Skipping companion proxy for property ${p}:`,
2538
+ `Skipping companion proxy for property ${f}:`,
2539
2539
  m
2540
2540
  );
2541
2541
  }
@@ -2665,8 +2665,8 @@ function Ch(t, e) {
2665
2665
  destinationAddress: u,
2666
2666
  debounce: d,
2667
2667
  throttle: h,
2668
- buffer: f,
2669
- filter: p,
2668
+ buffer: p,
2669
+ filter: f,
2670
2670
  once: m,
2671
2671
  wildcardName: y,
2672
2672
  flow: v,
@@ -2674,9 +2674,9 @@ function Ch(t, e) {
2674
2674
  } = t, U = e.value, D = Dh(U, {
2675
2675
  debounce: d,
2676
2676
  throttle: h,
2677
- buffer: f,
2677
+ buffer: p,
2678
2678
  once: m
2679
- }), $ = xh(p, s);
2679
+ }), $ = xh(f, s);
2680
2680
  return {
2681
2681
  websocket: n,
2682
2682
  fos: o,
@@ -2808,12 +2808,12 @@ function Kh(t, e) {
2808
2808
  return;
2809
2809
  const s = t[et], r = [];
2810
2810
  for (const a of Object.keys(s)) {
2811
- const { value: c, dependencies: u, options: d } = s[a], h = c.bind(t), f = () => {
2811
+ const { value: c, dependencies: u, options: d } = s[a], h = c.bind(t), p = () => {
2812
2812
  Z(() => h());
2813
- }, p = u ? Jt(() => u(t), f, {
2813
+ }, f = u ? Jt(() => u(t), p, {
2814
2814
  fireImmediately: !!(d != null && d.fireImmediately)
2815
- }) : Xt(f);
2816
- r.push(p);
2815
+ }) : Xt(p);
2816
+ r.push(f);
2817
2817
  }
2818
2818
  Object.defineProperty(t, zh, {
2819
2819
  value: r,
@@ -3228,7 +3228,7 @@ const nc = (t, e, s) => {
3228
3228
  return t.filter(br);
3229
3229
  }
3230
3230
  }, hf = (t, e) => {
3231
- var f;
3231
+ var p;
3232
3232
  const s = e.id || e.modelType, r = be({
3233
3233
  value: s,
3234
3234
  modelData: t.modelData,
@@ -3237,16 +3237,16 @@ const nc = (t, e, s) => {
3237
3237
  g.debug(
3238
3238
  `Resolving dependent model ${e.modelType} with id ${r} (policy: ${n})`
3239
3239
  );
3240
- const o = Object.keys((e == null ? void 0 : e.options) || {}).reduce((p, m) => {
3240
+ const o = Object.keys((e == null ? void 0 : e.options) || {}).reduce((f, m) => {
3241
3241
  const y = e.options[m];
3242
- return p[m] = be({
3242
+ return f[m] = be({
3243
3243
  value: y,
3244
3244
  modelData: t.modelData,
3245
3245
  modelId: t.modelId
3246
- }), p;
3246
+ }), f;
3247
3247
  }, {}), i = T.getInstance().modelManager, a = i.registry.models[e.modelType];
3248
3248
  if (!a) {
3249
- const p = `No model registered for type ${e.modelType}`;
3249
+ const f = `No model registered for type ${e.modelType}`;
3250
3250
  if (g.error(
3251
3251
  `Failed to resolve dependency for model ${t.modelId}:
3252
3252
  - Dependency Type: ${e.modelType}
@@ -3254,19 +3254,19 @@ const nc = (t, e, s) => {
3254
3254
  - Resolution Policy: ${n}
3255
3255
  - Parent Model: ${t.modelTypeName}
3256
3256
  - Parent Model ID: ${t.modelId}
3257
- - Error: ${p}`
3257
+ - Error: ${f}`
3258
3258
  ), n === ht.CONTINUE)
3259
3259
  return g.warn(
3260
3260
  `Model type not registered (policy: CONTINUE) - Model ${t.modelId} will continue without dependency ${e.modelType} [${r}]`
3261
3261
  ), { dependentModel: null, dataModelId: r, success: !1 };
3262
3262
  throw new Error(
3263
- `Dependency resolution failed - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${p}`
3263
+ `Dependency resolution failed - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${f}`
3264
3264
  );
3265
3265
  }
3266
3266
  const c = i.getModelById(r);
3267
3267
  if (c) {
3268
3268
  if (c.modelTypeName !== e.modelType) {
3269
- const p = `Model type mismatch: expected ${e.modelType}, found ${c.modelTypeName}`;
3269
+ const f = `Model type mismatch: expected ${e.modelType}, found ${c.modelTypeName}`;
3270
3270
  if (g.error(
3271
3271
  `Failed to resolve dependency for model ${t.modelId}:
3272
3272
  - Dependency Type: ${e.modelType}
@@ -3275,13 +3275,13 @@ const nc = (t, e, s) => {
3275
3275
  - Parent Model: ${t.modelTypeName}
3276
3276
  - Parent Model ID: ${t.modelId}
3277
3277
  - Found Model Type: ${c.modelTypeName}
3278
- - Error: ${p}`
3278
+ - Error: ${f}`
3279
3279
  ), n === ht.CONTINUE)
3280
3280
  return g.warn(
3281
3281
  `Model type mismatch (policy: CONTINUE) - Model ${t.modelId} will continue without dependency`
3282
3282
  ), { dependentModel: null, dataModelId: r, success: !1 };
3283
3283
  throw new Error(
3284
- `Dependency resolution failed - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${p}`
3284
+ `Dependency resolution failed - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${f}`
3285
3285
  );
3286
3286
  }
3287
3287
  return g.debug(
@@ -3299,8 +3299,8 @@ const nc = (t, e, s) => {
3299
3299
  `Model ${e.modelType} [${r}] not found (policy: CONTINUE) - Model ${t.modelId} will continue without this dependency`
3300
3300
  ), { dependentModel: null, dataModelId: r, success: !1 };
3301
3301
  const u = Object.keys(o).length > 0, d = a.class || a.create;
3302
- if (((f = d == null ? void 0 : d.prototype) == null ? void 0 : f[tn]) === !0 && !u) {
3303
- const p = `Model ${e.modelType} requires options but none were provided`;
3302
+ if (((p = d == null ? void 0 : d.prototype) == null ? void 0 : p[tn]) === !0 && !u) {
3303
+ const f = `Model ${e.modelType} requires options but none were provided`;
3304
3304
  throw g.error(
3305
3305
  `Failed to resolve dependency for model ${t.modelId}:
3306
3306
  - Dependency Type: ${e.modelType}
@@ -3309,23 +3309,23 @@ const nc = (t, e, s) => {
3309
3309
  - Parent Model: ${t.modelTypeName}
3310
3310
  - Parent Model ID: ${t.modelId}
3311
3311
  - Provided Options: ${JSON.stringify(o, null, 2)}
3312
- - Error: ${p}
3312
+ - Error: ${f}
3313
3313
  - Model requires options but dependency declaration provides none`
3314
3314
  ), new Error(
3315
- `Dependency resolution failed - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${p}. Use resolutionPolicy: DependencyResolutionPolicy.CONTINUE if this dependency is optional.`
3315
+ `Dependency resolution failed - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${f}. Use resolutionPolicy: DependencyResolutionPolicy.CONTINUE if this dependency is optional.`
3316
3316
  );
3317
3317
  }
3318
3318
  try {
3319
- const p = T.getInstance().modelManager.createModelInstance(
3319
+ const f = T.getInstance().modelManager.createModelInstance(
3320
3320
  e.modelType,
3321
3321
  r,
3322
3322
  o
3323
3323
  );
3324
3324
  return g.debug(
3325
3325
  `Successfully created dependent model ${e.modelType} with id ${r}`
3326
- ), { dependentModel: p, dataModelId: r, success: !0 };
3327
- } catch (p) {
3328
- const m = p instanceof Error ? p.message : String(p);
3326
+ ), { dependentModel: f, dataModelId: r, success: !0 };
3327
+ } catch (f) {
3328
+ const m = f instanceof Error ? f.message : String(f);
3329
3329
  throw g.error(
3330
3330
  `Failed to create dependency for model ${t.modelId}:
3331
3331
  - Dependency Type: ${e.modelType}
@@ -3337,7 +3337,7 @@ const nc = (t, e, s) => {
3337
3337
  - Error: ${m}`
3338
3338
  ), n === ht.FAIL ? new Error(
3339
3339
  `Dependency resolution failed (policy: FAIL) - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${m}`
3340
- ) : p;
3340
+ ) : f;
3341
3341
  }
3342
3342
  }, ff = (t, e = O.READY) => {
3343
3343
  var n;
@@ -3352,19 +3352,19 @@ const nc = (t, e, s) => {
3352
3352
  t.modelData[o] = c.data, g.debug(
3353
3353
  `waiting for dependent model ${i.modelType} with id ${u} - waiting for WHENREADY`
3354
3354
  );
3355
- const d = async (p, m, y) => {
3355
+ const d = async (f, m, y) => {
3356
3356
  var v;
3357
- await ((v = p.whenReady) == null ? void 0 : v.call(p)), g.debug(`dependent model ${m} with id ${y} - READY`);
3358
- }, { promise: h, cancel: f } = nc(
3357
+ await ((v = f.whenReady) == null ? void 0 : v.call(f)), g.debug(`dependent model ${m} with id ${y} - READY`);
3358
+ }, { promise: h, cancel: p } = nc(
3359
3359
  sc,
3360
3360
  t,
3361
3361
  t.status
3362
3362
  );
3363
3363
  return Promise.race([
3364
3364
  d(c.model, i.modelType, u).then(() => {
3365
- f();
3366
- }).catch((p) => {
3367
- const m = Bt(p, {
3365
+ p();
3366
+ }).catch((f) => {
3367
+ const m = Bt(f, {
3368
3368
  modelType: i.modelType,
3369
3369
  modelId: u,
3370
3370
  parentModel: {
@@ -3374,7 +3374,7 @@ const nc = (t, e, s) => {
3374
3374
  lifecycle: e,
3375
3375
  operation: "dependency whenReady()"
3376
3376
  });
3377
- throw g.error(m.toDetailedString()), f(), m;
3377
+ throw g.error(m.toDetailedString()), p(), m;
3378
3378
  }),
3379
3379
  h
3380
3380
  ]);
@@ -3415,7 +3415,7 @@ const nc = (t, e, s) => {
3415
3415
  (d = a.promise) == null ? void 0 : d.then(() => {
3416
3416
  u();
3417
3417
  }).catch((h) => {
3418
- const f = Bt(h, {
3418
+ const p = Bt(h, {
3419
3419
  modelType: a.type || "unknown",
3420
3420
  modelId: a.modelId,
3421
3421
  parentModel: {
@@ -3425,7 +3425,7 @@ const nc = (t, e, s) => {
3425
3425
  lifecycle: r,
3426
3426
  operation: `transition to ${s}`
3427
3427
  });
3428
- throw g.error(f.toDetailedString()), u(), f;
3428
+ throw g.error(p.toDetailedString()), u(), p;
3429
3429
  }),
3430
3430
  c
3431
3431
  ]);
@@ -3567,22 +3567,22 @@ function yf(t, e, s, r) {
3567
3567
  const d = t[ne] || {}, h = Object.keys(d);
3568
3568
  return h.length === 0 ? { count: 0, data: [] } : {
3569
3569
  count: h.length,
3570
- data: h.map((f) => {
3571
- const p = d[f];
3570
+ data: h.map((p) => {
3571
+ const f = d[p];
3572
3572
  return {
3573
- topic: f,
3574
- websocket: !!p.websocket,
3575
- ...p.lifecycle && { lifecycle: p.lifecycle },
3576
- ...p.fos && { fos: !0 },
3577
- ...p.bridge && { bridge: !0 },
3578
- ...p.destinationAddress && {
3579
- destinationAddress: p.destinationAddress
3573
+ topic: p,
3574
+ websocket: !!f.websocket,
3575
+ ...f.lifecycle && { lifecycle: f.lifecycle },
3576
+ ...f.fos && { fos: !0 },
3577
+ ...f.bridge && { bridge: !0 },
3578
+ ...f.destinationAddress && {
3579
+ destinationAddress: f.destinationAddress
3580
3580
  },
3581
- ...p.wildcardName && {
3582
- wildcardName: p.wildcardName
3581
+ ...f.wildcardName && {
3582
+ wildcardName: f.wildcardName
3583
3583
  },
3584
- ...p.flow && { flow: !0 },
3585
- ...p.requiresBaseline && { requiresBaseline: !0 }
3584
+ ...f.flow && { flow: !0 },
3585
+ ...f.requiresBaseline && { requiresBaseline: !0 }
3586
3586
  };
3587
3587
  })
3588
3588
  };
@@ -4639,7 +4639,7 @@ const Bf = ({
4639
4639
  at.debug(`path: ${o}`);
4640
4640
  const i = (e == null ? void 0 : e.timeout) || Wf, a = Jf(e), c = Zf(i), u = e != null && e.signal ? Xf([e.signal, c]) : c, d = await kf(e == null ? void 0 : e.body), h = {};
4641
4641
  d.contentType && (h["content-type"] = d.contentType), d.encoding && (h["content-encoding"] = d.encoding);
4642
- const f = $t(
4642
+ const p = $t(
4643
4643
  a({
4644
4644
  path: o,
4645
4645
  requestId: r,
@@ -4652,7 +4652,7 @@ const Bf = ({
4652
4652
  }),
4653
4653
  d.data
4654
4654
  );
4655
- return new Promise((p, m) => {
4655
+ return new Promise((f, m) => {
4656
4656
  let y = null;
4657
4657
  if (u.aborted) {
4658
4658
  const D = u.reason;
@@ -4727,13 +4727,13 @@ const Bf = ({
4727
4727
  },
4728
4728
  bodyUsed: !1
4729
4729
  };
4730
- _.unsubscribe(), Qf().then(() => p(us));
4730
+ _.unsubscribe(), Qf().then(() => f(us));
4731
4731
  });
4732
4732
  y = _.unsubscribe;
4733
4733
  const U = e != null && e.fos ? s.fosSocket : s.socket;
4734
4734
  if (!U)
4735
4735
  throw Error(`No web socket transport available: ${e}`);
4736
- U == null || U.send(f);
4736
+ U == null || U.send(p);
4737
4737
  });
4738
4738
  };
4739
4739
  let we = "kos:", Ue = ep;
@@ -5265,10 +5265,10 @@ class fp {
5265
5265
  for (this.enqueueEvent(u); this.eventQueue.length > 0; ) {
5266
5266
  const d = this.dequeueEvent();
5267
5267
  d && o.push(d);
5268
- const f = Date.now() - i;
5269
- if (o.length >= r || f >= n) {
5270
- const p = await a();
5271
- p !== void 0 && (yield p);
5268
+ const p = Date.now() - i;
5269
+ if (o.length >= r || p >= n) {
5270
+ const f = await a();
5271
+ f !== void 0 && (yield f);
5272
5272
  break;
5273
5273
  }
5274
5274
  }
@@ -5276,8 +5276,8 @@ class fp {
5276
5276
  o.push(u);
5277
5277
  const h = Date.now() - i;
5278
5278
  if (o.length >= r || h >= n) {
5279
- const f = await a();
5280
- f !== void 0 && (yield f);
5279
+ const p = await a();
5280
+ p !== void 0 && (yield p);
5281
5281
  }
5282
5282
  }
5283
5283
  const c = await a();
@@ -5791,9 +5791,9 @@ class Is {
5791
5791
  return this;
5792
5792
  }
5793
5793
  _sendSubscriptionMessage(e, s, r = !1, n = !1, o) {
5794
- var f, p, m, y;
5794
+ var p, f, m, y;
5795
5795
  ct.debug(`${s} to topic ${e}`);
5796
- const i = $e(), a = i == null ? void 0 : i.connId, c = o ?? a ?? ((f = window == null ? void 0 : window.kosBridge) == null ? void 0 : f.call(window, "connId"));
5796
+ const i = $e(), a = i == null ? void 0 : i.connId, c = o ?? a ?? ((p = window == null ? void 0 : window.kosBridge) == null ? void 0 : p.call(window, "connId"));
5797
5797
  ct.debug(`subscribing with connId ${c}`);
5798
5798
  const u = c ? `dst-addr:${c}
5799
5799
  ` : "", d = r ? `subscribe:${e}` : n ? `type:fos.broker
@@ -5802,7 +5802,7 @@ ${u}topics:${e}
5802
5802
  ` : `${u}type:kos.broker.${s}
5803
5803
 
5804
5804
  ["${e}"]`;
5805
- if (r ? (p = this.fosSocket) == null ? void 0 : p.connectionEstablished : (m = this.socket) == null ? void 0 : m.connectionEstablished) {
5805
+ if (r ? (f = this.fosSocket) == null ? void 0 : f.connectionEstablished : (m = this.socket) == null ? void 0 : m.connectionEstablished) {
5806
5806
  const v = r ? this.fosSocket : this.socket;
5807
5807
  (y = v == null ? void 0 : v.socket) == null || y.send(d);
5808
5808
  } else {
@@ -5973,42 +5973,41 @@ class Mp {
5973
5973
  }
5974
5974
  createHandler(e, s) {
5975
5975
  return async (r) => {
5976
- var n;
5977
5976
  try {
5978
- const o = (n = r == null ? void 0 : r.headers) == null ? void 0 : n["src-addr"], i = s.destinationAddress && this.resolvePropKey(s.destinationAddress), a = i ? o === i : !0, c = this.extractWildcardCapture(
5977
+ const n = this.extractWildcardCapture(
5979
5978
  e,
5980
5979
  r,
5981
5980
  s
5982
- ), u = this.isBaselineReady(e);
5983
- if (!this.model.isReady() || !u) {
5984
- u ? this.log.warn(
5981
+ ), o = this.isBaselineReady(e);
5982
+ if (!this.model.isReady() || !o) {
5983
+ o ? this.log.warn(
5985
5984
  `Model ${this.modelId} not ready. Queuing message for ${e}`
5986
5985
  ) : this.log.warn(
5987
5986
  `Baseline not ready for ${e}. Queuing message.`
5988
5987
  );
5989
- const d = () => {
5990
- const h = pi(r, s.skipParse), f = s.transform(h);
5991
- if (a && s.condition(f, this.modelData, r))
5988
+ const i = () => {
5989
+ const a = pi(r, s.skipParse), c = s.transform(a);
5990
+ if (s.condition(c, this.modelData, r))
5992
5991
  return this.callHandlerWithWildcard(
5993
5992
  s,
5994
- f,
5995
5993
  c,
5994
+ n,
5996
5995
  r
5997
5996
  );
5998
5997
  };
5999
- this.offlineQueue.enqueue(d, e, r);
5998
+ this.offlineQueue.enqueue(i, e, r);
6000
5999
  } else {
6001
- const d = pi(r, s.skipParse), h = s.transform(d);
6002
- if (a && s.condition(h, this.modelData, r))
6000
+ const i = pi(r, s.skipParse), a = s.transform(i);
6001
+ if (s.condition(a, this.modelData, r))
6003
6002
  return this.callHandlerWithWildcard(
6004
6003
  s,
6005
- h,
6006
- c,
6004
+ a,
6005
+ n,
6007
6006
  r
6008
6007
  );
6009
6008
  }
6010
- } catch (o) {
6011
- this.log.error(`Error handling subscription for ${e}`, o);
6009
+ } catch (n) {
6010
+ this.log.error(`Error handling subscription for ${e}`, n);
6012
6011
  }
6013
6012
  };
6014
6013
  }
@@ -6525,13 +6524,13 @@ class xp {
6525
6524
  n,
6526
6525
  Dt(o, "effect")
6527
6526
  )), Tp(n)) {
6528
- const f = Dt(o, "subscription");
6527
+ const p = Dt(o, "subscription");
6529
6528
  h.subscriptionManager = new Mp(
6530
6529
  e,
6531
6530
  n,
6532
6531
  s,
6533
6532
  a,
6534
- f
6533
+ p
6535
6534
  ), h.onlineLifecycleManager = new Cf(
6536
6535
  e,
6537
6536
  Dt(o, "online")
@@ -6750,13 +6749,13 @@ class Pp {
6750
6749
  this._isLoadExecuting = !0;
6751
6750
  try {
6752
6751
  F.debug(`Loading model ${s} with id ${r}`), await Xs(this, O.LOAD);
6753
- const d = J.getContext(r), h = `${Ap}.${s}`, f = await M.loader.executeLoader(
6752
+ const d = J.getContext(r), h = `${Ap}.${s}`, p = await M.loader.executeLoader(
6754
6753
  h,
6755
6754
  {}
6756
6755
  );
6757
- f && (F.info(
6756
+ p && (F.info(
6758
6757
  `Setting loaded context for ${r}, type: ${s}`
6759
- ), d == null || d.set(h, f)), await ((n = this.serviceRequestManager) == null ? void 0 : n.executeForLifecycle(
6758
+ ), d == null || d.set(h, p)), await ((n = this.serviceRequestManager) == null ? void 0 : n.executeForLifecycle(
6760
6759
  O.LOAD
6761
6760
  )), await ((i = (o = this.modelData) == null ? void 0 : o.load) == null ? void 0 : i.call(o, d)), ae(() => {
6762
6761
  this.loaded = !0;
@@ -6904,12 +6903,12 @@ class Rp {
6904
6903
  });
6905
6904
  }
6906
6905
  try {
6907
- const h = n.create ? n.create({ modelTypeId: e, id: o, options: r }) : new n.class(o, r), f = new Pp({
6906
+ const h = n.create ? n.create({ modelTypeId: e, id: o, options: r }) : new n.class(o, r), p = new Pp({
6908
6907
  modelTypeName: e,
6909
6908
  id: o,
6910
6909
  modelData: h
6911
6910
  });
6912
- this.cache.addModel(f), this._createCompanionModels(f, r);
6911
+ this.cache.addModel(p), this._createCompanionModels(p, r);
6913
6912
  } catch (h) {
6914
6913
  throw hi(h, {
6915
6914
  modelType: e,
@@ -7583,21 +7582,21 @@ class T {
7583
7582
  var i, a, c;
7584
7583
  const n = this.getInstance({ reset: s, connectionAlias: r });
7585
7584
  (i = e.extensions) != null && i.dataMapper && Object.keys(e.extensions.dataMapper).forEach((u) => {
7586
- var h, f;
7587
- const d = (f = (h = e.extensions) == null ? void 0 : h.dataMapper) == null ? void 0 : f[u];
7588
- d && (Array.isArray(d) ? d.forEach((p) => {
7589
- M.dataMapper.registerDataMapper(u, p);
7585
+ var h, p;
7586
+ const d = (p = (h = e.extensions) == null ? void 0 : h.dataMapper) == null ? void 0 : p[u];
7587
+ d && (Array.isArray(d) ? d.forEach((f) => {
7588
+ M.dataMapper.registerDataMapper(u, f);
7590
7589
  }) : M.dataMapper.registerDataMapper(u, d));
7591
7590
  }), (a = e.extensions) != null && a.propertyMapper && Object.keys(e.extensions.propertyMapper).forEach((u) => {
7592
- var h, f;
7593
- const d = (f = (h = e.extensions) == null ? void 0 : h.propertyMapper) == null ? void 0 : f[u];
7591
+ var h, p;
7592
+ const d = (p = (h = e.extensions) == null ? void 0 : h.propertyMapper) == null ? void 0 : p[u];
7594
7593
  d && M.propertyMapper.registerPropertyMapper(
7595
7594
  u,
7596
7595
  d
7597
7596
  );
7598
7597
  }), (c = e.extensions) != null && c.contextLoader && Object.keys(e.extensions.contextLoader).forEach((u) => {
7599
- var h, f;
7600
- const d = (f = (h = e.extensions) == null ? void 0 : h.contextLoader) == null ? void 0 : f[u];
7598
+ var h, p;
7599
+ const d = (p = (h = e.extensions) == null ? void 0 : h.contextLoader) == null ? void 0 : p[u];
7601
7600
  d && M.loader.registerLoader(u, d);
7602
7601
  }), A.model.getAll().forEach(([, u]) => {
7603
7602
  e.models = { ...e.models, ...u.registration };
@@ -7607,15 +7606,15 @@ class T {
7607
7606
  }, A.companion.getAll().forEach(([u, d]) => {
7608
7607
  e.companionModels = { ...e.companionModels }, e.companionModels[u] = e.companionModels[u] || [];
7609
7608
  for (const h of d) {
7610
- let f;
7609
+ let p;
7611
7610
  if (typeof h == "string") {
7612
- const p = e.models[h];
7613
- if (p != null && p.class) {
7614
- const m = p.class.prototype[vt];
7615
- f = m == null ? void 0 : m.lifecycle;
7611
+ const f = e.models[h];
7612
+ if (f != null && f.class) {
7613
+ const m = f.class.prototype[vt];
7614
+ p = m == null ? void 0 : m.lifecycle;
7616
7615
  }
7617
7616
  }
7618
- e.companionModels[u].push({ type: h, lifecycle: f });
7617
+ e.companionModels[u].push({ type: h, lifecycle: p });
7619
7618
  }
7620
7619
  }), A.model.getPreloadModels().forEach((u) => {
7621
7620
  e.preloadModels.includes(u) || e.preloadModels.push(u);
@@ -8000,7 +7999,7 @@ const h_ = async (t, e) => {
8000
7999
  }), u = r ?? 3e3, d = window.setInterval(() => {
8001
8000
  let y = performance.now() - a;
8002
8001
  y = y / 1e3, y > u / 1e3 && i.abort();
8003
- }, u), h = n ?? 2e3, f = window.setInterval(() => {
8002
+ }, u), h = n ?? 2e3, p = window.setInterval(() => {
8004
8003
  Gf({
8005
8004
  msg: {},
8006
8005
  options: {
@@ -8008,12 +8007,12 @@ const h_ = async (t, e) => {
8008
8007
  destinationAddress: e
8009
8008
  }
8010
8009
  });
8011
- }, h), p = () => {
8012
- window.clearInterval(f), window.clearInterval(d), c();
8010
+ }, h), f = () => {
8011
+ window.clearInterval(p), window.clearInterval(d), c();
8013
8012
  }, m = () => {
8014
- p(), s && s(), i.signal.removeEventListener("abort", m);
8013
+ f(), s && s(), i.signal.removeEventListener("abort", m);
8015
8014
  };
8016
- return i.signal.addEventListener("abort", m), { cleanUpHeartbeat: p };
8015
+ return i.signal.addEventListener("abort", m), { cleanUpHeartbeat: f };
8017
8016
  }, cg = (...t) => (e) => t.reduce((s, r) => r(s), e), lg = {
8018
8017
  maxAttempts: 5,
8019
8018
  baseDelayMs: 100,
@@ -8044,22 +8043,22 @@ const ug = g.createLogger({ name: "kos-service-request" }), Ee = (t) => ({ isMoc
8044
8043
  bridge: u,
8045
8044
  timeout: d,
8046
8045
  signal: h,
8047
- destinationAddress: f
8046
+ destinationAddress: p
8048
8047
  }) => {
8049
- const p = {
8048
+ const f = {
8050
8049
  method: "DELETE"
8051
8050
  };
8052
- t && (p.destinationAddress = t), n && (p.tracker = n), rs(p, {
8051
+ t && (f.destinationAddress = t), n && (f.tracker = n), rs(f, {
8053
8052
  ordered: i,
8054
8053
  studio: a,
8055
8054
  fos: c,
8056
8055
  bridge: u,
8057
8056
  timeout: d,
8058
8057
  signal: h,
8059
- destinationAddress: f
8058
+ destinationAddress: p
8060
8059
  });
8061
8060
  try {
8062
- const m = await s(o || `${e}/${r}`, p);
8061
+ const m = await s(o || `${e}/${r}`, f);
8063
8062
  if (!m.ok)
8064
8063
  throw Error(
8065
8064
  `There was a problem deleting the model; returned status ${m.status}`
@@ -8104,29 +8103,29 @@ const ug = g.createLogger({ name: "kos-service-request" }), Ee = (t) => ({ isMoc
8104
8103
  signal: u,
8105
8104
  destinationAddress: d
8106
8105
  });
8107
- const f = r || e;
8106
+ const p = r || e;
8108
8107
  try {
8109
- const p = await s(f, h);
8110
- if (!p.ok) {
8108
+ const f = await s(p, h);
8109
+ if (!f.ok) {
8111
8110
  let y;
8112
8111
  try {
8113
- y = await p.json();
8112
+ y = await f.json();
8114
8113
  } catch {
8115
8114
  }
8116
8115
  throw new G(
8117
- `There was a problem retrieving the model; returned status ${p.status}`,
8116
+ `There was a problem retrieving the model; returned status ${f.status}`,
8118
8117
  y ?? void 0
8119
8118
  );
8120
8119
  }
8121
- return await p.json() ?? void 0;
8122
- } catch (p) {
8123
- if (p instanceof DOMException) {
8124
- if (p.name === "TimeoutError")
8120
+ return await f.json() ?? void 0;
8121
+ } catch (f) {
8122
+ if (f instanceof DOMException) {
8123
+ if (f.name === "TimeoutError")
8125
8124
  throw new G("Request timed out while retrieving models");
8126
- if (p.name === "AbortError")
8125
+ if (f.name === "AbortError")
8127
8126
  throw new G("Request was cancelled while retrieving models");
8128
8127
  }
8129
- throw p;
8128
+ throw f;
8130
8129
  }
8131
8130
  }, fg = (t, e, s) => async ({
8132
8131
  urlOverride: r,
@@ -8139,10 +8138,10 @@ const ug = g.createLogger({ name: "kos-service-request" }), Ee = (t) => ({ isMoc
8139
8138
  signal: d,
8140
8139
  destinationAddress: h
8141
8140
  }) => {
8142
- const f = {
8141
+ const p = {
8143
8142
  method: "GET"
8144
8143
  };
8145
- t && (f.destinationAddress = t), c && (f.tracker = c), rs(f, {
8144
+ t && (p.destinationAddress = t), c && (p.tracker = c), rs(p, {
8146
8145
  timeout: u,
8147
8146
  ordered: n,
8148
8147
  studio: o,
@@ -8151,10 +8150,10 @@ const ug = g.createLogger({ name: "kos-service-request" }), Ee = (t) => ({ isMoc
8151
8150
  signal: d,
8152
8151
  destinationAddress: h
8153
8152
  });
8154
- const p = r || e;
8155
- ug.debug(`resolvedUrl: ${p}`);
8153
+ const f = r || e;
8154
+ ug.debug(`resolvedUrl: ${f}`);
8156
8155
  try {
8157
- const m = await s(p, f);
8156
+ const m = await s(f, p);
8158
8157
  if (!m.ok) {
8159
8158
  let v;
8160
8159
  try {
@@ -8187,10 +8186,10 @@ const ug = g.createLogger({ name: "kos-service-request" }), Ee = (t) => ({ isMoc
8187
8186
  signal: d,
8188
8187
  destinationAddress: h
8189
8188
  }) => {
8190
- const f = {
8189
+ const p = {
8191
8190
  method: "GET"
8192
8191
  };
8193
- t && (f.destinationAddress = t), rs(f, {
8192
+ t && (p.destinationAddress = t), rs(p, {
8194
8193
  timeout: u,
8195
8194
  ordered: o,
8196
8195
  studio: i,
@@ -8199,9 +8198,9 @@ const ug = g.createLogger({ name: "kos-service-request" }), Ee = (t) => ({ isMoc
8199
8198
  signal: d,
8200
8199
  destinationAddress: h
8201
8200
  });
8202
- const p = r || `${e}/${n}`;
8201
+ const f = r || `${e}/${n}`;
8203
8202
  try {
8204
- const m = await s(p, f);
8203
+ const m = await s(f, p);
8205
8204
  if (!m.ok) {
8206
8205
  let v;
8207
8206
  try {
@@ -8245,23 +8244,23 @@ const Ii = (t, e, s) => async ({
8245
8244
  bridge: u,
8246
8245
  timeout: d,
8247
8246
  signal: h,
8248
- destinationAddress: f
8247
+ destinationAddress: p
8249
8248
  }) => {
8250
- const p = {
8249
+ const f = {
8251
8250
  method: "POST",
8252
8251
  body: typeof r == "string" ? r : JSON.stringify(r)
8253
8252
  };
8254
- t && (p.destinationAddress = t), i && (p.tracker = i), rs(p, {
8253
+ t && (f.destinationAddress = t), i && (f.tracker = i), rs(f, {
8255
8254
  timeout: d,
8256
8255
  ordered: o,
8257
8256
  studio: a,
8258
8257
  fos: c,
8259
8258
  bridge: u,
8260
8259
  signal: h,
8261
- destinationAddress: f
8260
+ destinationAddress: p
8262
8261
  });
8263
8262
  try {
8264
- const m = await s(n || e, p);
8263
+ const m = await s(n || e, f);
8265
8264
  if (!m.ok) {
8266
8265
  let v;
8267
8266
  try {
@@ -8293,8 +8292,8 @@ const Ii = (t, e, s) => async ({
8293
8292
  fos: u,
8294
8293
  bridge: d,
8295
8294
  timeout: h,
8296
- signal: f,
8297
- destinationAddress: p
8295
+ signal: p,
8296
+ destinationAddress: f
8298
8297
  }) => {
8299
8298
  const m = {
8300
8299
  method: t
@@ -8305,8 +8304,8 @@ const Ii = (t, e, s) => async ({
8305
8304
  studio: c,
8306
8305
  fos: u,
8307
8306
  bridge: d,
8308
- signal: f,
8309
- destinationAddress: p
8307
+ signal: p,
8308
+ destinationAddress: f
8310
8309
  });
8311
8310
  try {
8312
8311
  const y = await r(i || `${s}/${o}`, m);
@@ -8988,8 +8987,8 @@ class vg {
8988
8987
  let d = 0;
8989
8988
  const h = async () => {
8990
8989
  if (d < c.middlewares.length) {
8991
- const f = c.middlewares[d++];
8992
- await f(i, s, h);
8990
+ const p = c.middlewares[d++];
8991
+ await p(i, s, h);
8993
8992
  }
8994
8993
  };
8995
8994
  await h();
@@ -9885,7 +9884,7 @@ const F_ = (t, e, s, r) => {
9885
9884
  }), d = i.getDefaultUnitForMeasure(a, u.system), h = i.getDefaultUnitDecimalPlaces(
9886
9885
  a,
9887
9886
  u.system
9888
- ), f = {
9887
+ ), p = {
9889
9888
  ...r,
9890
9889
  minDecimals: (r == null ? void 0 : r.minDecimals) ?? h,
9891
9890
  maxDecimals: (r == null ? void 0 : r.maxDecimals) ?? h
@@ -9894,13 +9893,13 @@ const F_ = (t, e, s, r) => {
9894
9893
  value: n,
9895
9894
  unit: d || o.unit || "",
9896
9895
  display: Di(n, d || o.unit || "", {
9897
- ...f,
9896
+ ...p,
9898
9897
  mode: "long"
9899
9898
  }),
9900
9899
  shortDisplay: Di(
9901
9900
  n,
9902
9901
  d || o.unit || "",
9903
- { ...f, mode: "short" }
9902
+ { ...p, mode: "short" }
9904
9903
  )
9905
9904
  };
9906
9905
  };
@@ -10331,13 +10330,13 @@ let Cs = class {
10331
10330
  return n;
10332
10331
  }
10333
10332
  getConverter() {
10334
- var r, n, o, i, a, c, u, d, h, f, p;
10333
+ var r, n, o, i, a, c, u, d, h, p, f;
10335
10334
  const { unit: t, measure: e } = this.getConverterFromFormat(), s = t === "drt" ? "second" : t;
10336
10335
  if (this.converter) {
10337
10336
  const m = (r = this.converter) == null ? void 0 : r.measure, y = (o = (n = this.converter) == null ? void 0 : n.to) == null ? void 0 : o.measure, v = (a = (i = this.converter) == null ? void 0 : i.from) == null ? void 0 : a.measure, _ = m || y || v || e, U = ((u = (c = this.converter) == null ? void 0 : c.to) == null ? void 0 : u.unit) || this.regionInfo.getDefaultUnitForMeasure(
10338
10337
  _,
10339
10338
  ((h = (d = this.converter) == null ? void 0 : d.to) == null ? void 0 : h.system) ?? this.regionInfo.defaultUnitSystem
10340
- ), D = ((p = (f = this.converter) == null ? void 0 : f.to) == null ? void 0 : p.system) ?? this.regionInfo.getUnitSystem(U), $ = this.schemaFormat === "drt" ? "second" : this.schemaFormat || s;
10339
+ ), D = ((f = (p = this.converter) == null ? void 0 : p.to) == null ? void 0 : f.system) ?? this.regionInfo.getUnitSystem(U), $ = this.schemaFormat === "drt" ? "second" : this.schemaFormat || s;
10341
10340
  return {
10342
10341
  ...this.converter,
10343
10342
  from: {
@@ -11044,29 +11043,29 @@ function Hc(t) {
11044
11043
  }
11045
11044
  function Yn(t, e, s, r, n) {
11046
11045
  for (var o = [], i = [], a, c, u, d, h = 0; h < t.length; h++) {
11047
- var f = t[h], p = f.type;
11048
- if (p === _e || p === Mt)
11049
- Array.isArray(f.value) ? o.push.apply(o, Yn(f.value.map(function(m) {
11046
+ var p = t[h], f = p.type;
11047
+ if (f === _e || f === Mt)
11048
+ Array.isArray(p.value) ? o.push.apply(o, Yn(p.value.map(function(m) {
11050
11049
  return new P(_e, m);
11051
- }).concat(new P(Kt, f.value.length)), e, s, r, n)) : o.push(f);
11052
- else if (p === Ke && n.hasOwnProperty(f.value))
11053
- f = new P(_e, n[f.value]), o.push(f);
11054
- else if (p === is && o.length > 1)
11055
- c = o.pop(), a = o.pop(), d = s[f.value], f = new P(_e, d(a.value, c.value)), o.push(f);
11056
- else if (p === as && o.length > 2)
11057
- u = o.pop(), c = o.pop(), a = o.pop(), f.value === "?" ? o.push(a.value ? c.value : u.value) : (d = r[f.value], f = new P(_e, d(a.value, c.value, u.value)), o.push(f));
11058
- else if (p === os && o.length > 0)
11059
- a = o.pop(), d = e[f.value], f = new P(_e, d(a.value)), o.push(f);
11060
- else if (p === pe) {
11050
+ }).concat(new P(Kt, p.value.length)), e, s, r, n)) : o.push(p);
11051
+ else if (f === Ke && n.hasOwnProperty(p.value))
11052
+ p = new P(_e, n[p.value]), o.push(p);
11053
+ else if (f === is && o.length > 1)
11054
+ c = o.pop(), a = o.pop(), d = s[p.value], p = new P(_e, d(a.value, c.value)), o.push(p);
11055
+ else if (f === as && o.length > 2)
11056
+ u = o.pop(), c = o.pop(), a = o.pop(), p.value === "?" ? o.push(a.value ? c.value : u.value) : (d = r[p.value], p = new P(_e, d(a.value, c.value, u.value)), o.push(p));
11057
+ else if (f === os && o.length > 0)
11058
+ a = o.pop(), d = e[p.value], p = new P(_e, d(a.value)), o.push(p);
11059
+ else if (f === pe) {
11061
11060
  for (; o.length > 0; )
11062
11061
  i.push(o.shift());
11063
- i.push(new P(pe, Yn(f.value, e, s, r, n)));
11064
- } else if (p === St && o.length > 0)
11065
- a = o.pop(), o.push(new P(_e, a.value[f.value]));
11062
+ i.push(new P(pe, Yn(p.value, e, s, r, n)));
11063
+ } else if (f === St && o.length > 0)
11064
+ a = o.pop(), o.push(new P(_e, a.value[p.value]));
11066
11065
  else {
11067
11066
  for (; o.length > 0; )
11068
11067
  i.push(o.shift());
11069
- i.push(f);
11068
+ i.push(p);
11070
11069
  }
11071
11070
  }
11072
11071
  for (; o.length > 0; )
@@ -11091,37 +11090,37 @@ function ft(t, e, s) {
11091
11090
  if (No(t))
11092
11091
  return Be(t, s);
11093
11092
  for (var d = t.length, h = 0; h < d; h++) {
11094
- var f = t[h], p = f.type;
11095
- if (p === _e || p === Mt)
11096
- r.push(f.value);
11097
- else if (p === is)
11098
- o = r.pop(), n = r.pop(), f.value === "and" ? r.push(n ? !!ft(o, e, s) : !1) : f.value === "or" ? r.push(n ? !0 : !!ft(o, e, s)) : f.value === "=" ? (a = e.binaryOps[f.value], r.push(a(n, ft(o, e, s), s))) : (a = e.binaryOps[f.value], r.push(a(Be(n, s), Be(o, s))));
11099
- else if (p === as)
11100
- i = r.pop(), o = r.pop(), n = r.pop(), f.value === "?" ? r.push(ft(n ? o : i, e, s)) : (a = e.ternaryOps[f.value], r.push(a(Be(n, s), Be(o, s), Be(i, s))));
11101
- else if (p === Ke)
11102
- if (f.value in e.functions)
11103
- r.push(e.functions[f.value]);
11104
- else if (f.value in e.unaryOps && e.parser.isOperatorEnabled(f.value))
11105
- r.push(e.unaryOps[f.value]);
11093
+ var p = t[h], f = p.type;
11094
+ if (f === _e || f === Mt)
11095
+ r.push(p.value);
11096
+ else if (f === is)
11097
+ o = r.pop(), n = r.pop(), p.value === "and" ? r.push(n ? !!ft(o, e, s) : !1) : p.value === "or" ? r.push(n ? !0 : !!ft(o, e, s)) : p.value === "=" ? (a = e.binaryOps[p.value], r.push(a(n, ft(o, e, s), s))) : (a = e.binaryOps[p.value], r.push(a(Be(n, s), Be(o, s))));
11098
+ else if (f === as)
11099
+ i = r.pop(), o = r.pop(), n = r.pop(), p.value === "?" ? r.push(ft(n ? o : i, e, s)) : (a = e.ternaryOps[p.value], r.push(a(Be(n, s), Be(o, s), Be(i, s))));
11100
+ else if (f === Ke)
11101
+ if (p.value in e.functions)
11102
+ r.push(e.functions[p.value]);
11103
+ else if (p.value in e.unaryOps && e.parser.isOperatorEnabled(p.value))
11104
+ r.push(e.unaryOps[p.value]);
11106
11105
  else {
11107
- var m = s[f.value];
11106
+ var m = s[p.value];
11108
11107
  if (m !== void 0)
11109
11108
  r.push(m);
11110
11109
  else
11111
- throw new Error("undefined variable: " + f.value);
11110
+ throw new Error("undefined variable: " + p.value);
11112
11111
  }
11113
- else if (p === os)
11114
- n = r.pop(), a = e.unaryOps[f.value], r.push(a(Be(n, s)));
11115
- else if (p === Vt) {
11116
- for (u = f.value, c = []; u-- > 0; )
11112
+ else if (f === os)
11113
+ n = r.pop(), a = e.unaryOps[p.value], r.push(a(Be(n, s)));
11114
+ else if (f === Vt) {
11115
+ for (u = p.value, c = []; u-- > 0; )
11117
11116
  c.unshift(Be(r.pop(), s));
11118
11117
  if (a = r.pop(), a.apply && a.call)
11119
11118
  r.push(a.apply(void 0, c));
11120
11119
  else
11121
11120
  throw new Error(a + " is not a function");
11122
- } else if (p === on)
11121
+ } else if (f === on)
11123
11122
  r.push(function() {
11124
- for (var y = r.pop(), v = [], _ = f.value; _-- > 0; )
11123
+ for (var y = r.pop(), v = [], _ = p.value; _-- > 0; )
11125
11124
  v.unshift(r.pop());
11126
11125
  var U = r.pop(), D = function() {
11127
11126
  for (var $ = Object.assign({}, s), L = 0, se = v.length; L < se; L++)
@@ -11133,16 +11132,16 @@ function ft(t, e, s) {
11133
11132
  writable: !1
11134
11133
  }), s[U] = D, D;
11135
11134
  }());
11136
- else if (p === pe)
11137
- r.push(Cm(f, e));
11138
- else if (p === Fo)
11139
- r.push(f);
11140
- else if (p === St)
11141
- n = r.pop(), r.push(n[f.value]);
11142
- else if (p === an)
11135
+ else if (f === pe)
11136
+ r.push(Cm(p, e));
11137
+ else if (f === Fo)
11138
+ r.push(p);
11139
+ else if (f === St)
11140
+ n = r.pop(), r.push(n[p.value]);
11141
+ else if (f === an)
11143
11142
  r.pop();
11144
- else if (p === Kt) {
11145
- for (u = f.value, c = []; u-- > 0; )
11143
+ else if (f === Kt) {
11144
+ for (u = p.value, c = []; u-- > 0; )
11146
11145
  c.unshift(r.pop());
11147
11146
  r.push(c);
11148
11147
  } else
@@ -13288,8 +13287,8 @@ let kr = class {
13288
13287
  group: u,
13289
13288
  createTime: d,
13290
13289
  role: h,
13291
- color: f,
13292
- servicePath: p,
13290
+ color: p,
13291
+ servicePath: f,
13293
13292
  rawJson: m,
13294
13293
  ...y
13295
13294
  }, v) {
@@ -13312,7 +13311,7 @@ let kr = class {
13312
13311
  l(this, "createTime");
13313
13312
  l(this, "rawJson");
13314
13313
  l(this, "_mapped", {});
13315
- this.id = t, this.logger = v.logger, this.type = c, this._troubleId = n, this._resolvable = !!e, this.ifaces = a, this.rank = i, this.role = h, this.color = f, this.tags = s, this.info = r, this.group = u, this.rawJson = m, this.servicePath = p ?? "/api/kos/troubles", this.createTime = d, this.clientData = o, this.data = {}, Object.assign(this.data, y), this.futureHandler = new _o(this);
13314
+ this.id = t, this.logger = v.logger, this.type = c, this._troubleId = n, this._resolvable = !!e, this.ifaces = a, this.rank = i, this.role = h, this.color = p, this.tags = s, this.info = r, this.group = u, this.rawJson = m, this.servicePath = f ?? "/api/kos/troubles", this.createTime = d, this.clientData = o, this.data = {}, Object.assign(this.data, y), this.futureHandler = new _o(this);
13316
13315
  }
13317
13316
  // -------------------LIFECYCLE----------------------------
13318
13317
  getTitleWithContext(t) {
@@ -14034,9 +14033,9 @@ const to = (t, e) => {
14034
14033
  if (u.includes(".")) {
14035
14034
  const d = u.split(".");
14036
14035
  let h = s;
14037
- for (const f of d)
14038
- if (h && typeof h == "object" && Object.prototype.hasOwnProperty.call(h, f))
14039
- h = h[f];
14036
+ for (const p of d)
14037
+ if (h && typeof h == "object" && Object.prototype.hasOwnProperty.call(h, p))
14038
+ h = h[p];
14040
14039
  else
14041
14040
  return a;
14042
14041
  return h;
@@ -15073,14 +15072,14 @@ class mv extends Ct {
15073
15072
  if (i === c)
15074
15073
  u = this.baseColor.r, d = this.baseColor.g, h = this.baseColor.b;
15075
15074
  else if (i < c && i > c - this.trailColors.length) {
15076
- const p = c - i;
15077
- if (p < this.trailColors.length) {
15078
- const m = this.trailColors[p];
15075
+ const f = c - i;
15076
+ if (f < this.trailColors.length) {
15077
+ const m = this.trailColors[f];
15079
15078
  u = m.r, d = m.g, h = m.b;
15080
15079
  }
15081
15080
  }
15082
- const f = (i * s + a) * 4;
15083
- o[f] = u, o[f + 1] = d, o[f + 2] = h, o[f + 3] = 255;
15081
+ const p = (i * s + a) * 4;
15082
+ o[p] = u, o[p + 1] = d, o[p + 2] = h, o[p + 3] = 255;
15084
15083
  }
15085
15084
  this.ctx.putImageData(n, 0, 0);
15086
15085
  }
@@ -15276,10 +15275,10 @@ class Ul extends Ct {
15276
15275
  this.drawScrollingImage(s, r, n, i), this.checkScrollCompletion(s, r, n, i);
15277
15276
  }
15278
15277
  drawScrollingImage(s, r, n, o) {
15279
- var h, f, p, m, y, v, _, U, D;
15278
+ var h, p, f, m, y, v, _, U, D;
15280
15279
  const i = this.img.width / this.img.height;
15281
15280
  let a, c;
15282
- ((h = this.scrollConfig) == null ? void 0 : h.maintainAspectRatio) !== !1 ? (f = this.scrollConfig) != null && f.height ? (c = this.scrollConfig.height, a = c * i) : (p = this.scrollConfig) != null && p.width ? (a = this.scrollConfig.width, c = a / i) : n === "left" || n === "right" ? (c = r, a = c * i) : (a = s, c = a / i) : (a = ((m = this.scrollConfig) == null ? void 0 : m.width) || s, c = ((y = this.scrollConfig) == null ? void 0 : y.height) || r);
15281
+ ((h = this.scrollConfig) == null ? void 0 : h.maintainAspectRatio) !== !1 ? (p = this.scrollConfig) != null && p.height ? (c = this.scrollConfig.height, a = c * i) : (f = this.scrollConfig) != null && f.width ? (a = this.scrollConfig.width, c = a / i) : n === "left" || n === "right" ? (c = r, a = c * i) : (a = s, c = a / i) : (a = ((m = this.scrollConfig) == null ? void 0 : m.width) || s, c = ((y = this.scrollConfig) == null ? void 0 : y.height) || r);
15283
15282
  let u, d;
15284
15283
  switch (n === "left" || n === "right" ? (u = 0, ((v = this.scrollConfig) == null ? void 0 : v.offsetY) === "center" || ((_ = this.scrollConfig) == null ? void 0 : _.offsetY) === void 0 ? d = (r - c) / 2 : d = this.scrollConfig.offsetY) : (((U = this.scrollConfig) == null ? void 0 : U.offsetX) === "center" || ((D = this.scrollConfig) == null ? void 0 : D.offsetX) === void 0 ? u = (s - a) / 2 : u = this.scrollConfig.offsetX, d = 0), n) {
15285
15284
  case "left": {
@@ -15341,12 +15340,12 @@ class Ul extends Ct {
15341
15340
  }
15342
15341
  }
15343
15342
  checkScrollCompletion(s, r, n, o) {
15344
- var h, f, p, m, y;
15343
+ var h, p, f, m, y;
15345
15344
  if (!this.isPlaying)
15346
15345
  return;
15347
15346
  const i = this.img.width / this.img.height;
15348
15347
  let a, c;
15349
- switch (((h = this.scrollConfig) == null ? void 0 : h.maintainAspectRatio) !== !1 ? (f = this.scrollConfig) != null && f.height ? (c = this.scrollConfig.height, a = c * i) : (p = this.scrollConfig) != null && p.width ? (a = this.scrollConfig.width, c = a / i) : n === "left" || n === "right" ? (c = r, a = c * i) : (a = s, c = a / i) : (a = ((m = this.scrollConfig) == null ? void 0 : m.width) || s, c = ((y = this.scrollConfig) == null ? void 0 : y.height) || r), n) {
15348
+ switch (((h = this.scrollConfig) == null ? void 0 : h.maintainAspectRatio) !== !1 ? (p = this.scrollConfig) != null && p.height ? (c = this.scrollConfig.height, a = c * i) : (f = this.scrollConfig) != null && f.width ? (a = this.scrollConfig.width, c = a / i) : n === "left" || n === "right" ? (c = r, a = c * i) : (a = s, c = a / i) : (a = ((m = this.scrollConfig) == null ? void 0 : m.width) || s, c = ((y = this.scrollConfig) == null ? void 0 : y.height) || r), n) {
15350
15349
  case "left":
15351
15350
  case "right":
15352
15351
  this.loopConfig;
@@ -15740,7 +15739,7 @@ class Mv extends Ct {
15740
15739
  if (r === 0)
15741
15740
  o = i = a = n;
15742
15741
  else {
15743
- const c = (h, f, p) => (p < 0 && (p += 1), p > 1 && (p -= 1), p < 0.16666666666666666 ? h + (f - h) * 6 * p : p < 0.5 ? f : p < 0.6666666666666666 ? h + (f - h) * (0.6666666666666666 - p) * 6 : h), u = n < 0.5 ? n * (1 + r) : n + r - n * r, d = 2 * n - u;
15742
+ const c = (h, p, f) => (f < 0 && (f += 1), f > 1 && (f -= 1), f < 0.16666666666666666 ? h + (p - h) * 6 * f : f < 0.5 ? p : f < 0.6666666666666666 ? h + (p - h) * (0.6666666666666666 - f) * 6 : h), u = n < 0.5 ? n * (1 + r) : n + r - n * r, d = 2 * n - u;
15744
15743
  o = c(d, u, s + 1 / 3), i = c(d, u, s), a = c(d, u, s - 1 / 3);
15745
15744
  }
15746
15745
  return [Math.round(o * 255), Math.round(i * 255), Math.round(a * 255)];
@@ -15757,8 +15756,8 @@ class Mv extends Ct {
15757
15756
  let i = 0;
15758
15757
  for (let a = 0; a < r; a++)
15759
15758
  for (let c = 0; c < s; c++) {
15760
- const u = (c + this.offset) % s / s, d = this.minHue / 360 + u * ((this.maxHue - this.minHue) / 360), [h, f, p] = this.hslToRgb(d, 1, 0.5);
15761
- o[i++] = h, o[i++] = f, o[i++] = p, o[i++] = 255;
15759
+ const u = (c + this.offset) % s / s, d = this.minHue / 360 + u * ((this.maxHue - this.minHue) / 360), [h, p, f] = this.hslToRgb(d, 1, 0.5);
15760
+ o[i++] = h, o[i++] = p, o[i++] = f, o[i++] = 255;
15762
15761
  }
15763
15762
  this.ctx.putImageData(n, 0, 0);
15764
15763
  }
@@ -17187,24 +17186,24 @@ function pu(t, e, s = {}) {
17187
17186
  );
17188
17187
  try {
17189
17188
  await h.cancelFuture();
17190
- } catch (p) {
17191
- g.error(`Failed to cancel future ${h.id}:`, p);
17189
+ } catch (f) {
17190
+ g.error(`Failed to cancel future ${h.id}:`, f);
17192
17191
  }
17193
17192
  }
17194
17193
  },
17195
17194
  { once: !0 }
17196
17195
  ));
17197
- const f = () => {
17196
+ const p = () => {
17198
17197
  d && (d(), d = void 0);
17199
17198
  };
17200
17199
  try {
17201
- const p = [...a];
17200
+ const f = [...a];
17202
17201
  if (o && u) {
17203
- const v = p[p.length - 1];
17204
- v && typeof v == "object" && "aborted" in v ? p[p.length - 1] = u.signal : p.push(u.signal);
17202
+ const v = f[f.length - 1];
17203
+ v && typeof v == "object" && "aborted" in v ? f[f.length - 1] = u.signal : f.push(u.signal);
17205
17204
  }
17206
17205
  if (i === "context") {
17207
- const v = p[p.length - 1];
17206
+ const v = f[f.length - 1];
17208
17207
  if (Wa(v))
17209
17208
  v.$tracker = c;
17210
17209
  else {
@@ -17212,25 +17211,25 @@ function pu(t, e, s = {}) {
17212
17211
  [Mo]: !0,
17213
17212
  $tracker: c
17214
17213
  };
17215
- p.push(_);
17214
+ f.push(_);
17216
17215
  }
17217
17216
  } else
17218
- p.push(c);
17217
+ f.push(c);
17219
17218
  const m = (
17220
17219
  // eslint-disable-next-line no-invalid-this
17221
- await t.apply(this, p)
17220
+ await t.apply(this, f)
17222
17221
  );
17223
17222
  g.debug(`received future response for ${c}`, m);
17224
17223
  const y = hw(m) ? m : m == null ? void 0 : m.data;
17225
17224
  return y ? (y.progress = 1, g.debug("mapping future response to future model"), h.endState ? g.debug(
17226
17225
  `future ${h.id} has already completed. Not updating the model`
17227
- ) : Cc(y, h)) : this.futureHandler.removeFuture(r), f(), y;
17228
- } catch (p) {
17229
- if (f(), o && (u != null && u.signal.aborted)) {
17226
+ ) : Cc(y, h)) : this.futureHandler.removeFuture(r), p(), y;
17227
+ } catch (f) {
17228
+ if (p(), o && (u != null && u.signal.aborted)) {
17230
17229
  const m = new Error("Operation cancelled");
17231
17230
  throw g.debug(`Operation ${e} was cancelled`), m;
17232
17231
  }
17233
- throw g.error(p), p;
17232
+ throw g.error(f), f;
17234
17233
  }
17235
17234
  };
17236
17235
  }
@@ -17357,12 +17356,12 @@ function vT(t, e, s, r) {
17357
17356
  cancelFuture: a,
17358
17357
  future: c
17359
17358
  } = n, u = o;
17360
- let d = 0, h = "PENDING", f = !0;
17361
- const p = /* @__PURE__ */ new Set();
17359
+ let d = 0, h = "PENDING", p = !0;
17360
+ const f = /* @__PURE__ */ new Set();
17362
17361
  let m;
17363
17362
  return c && typeof c == "object" && (m = Xt(() => {
17364
17363
  const y = c.progress || 0, v = c.status || "PENDING", _ = !c.endState;
17365
- (y !== d || v !== h || _ !== f) && (d = y, h = v, f = _, p.forEach((U) => {
17364
+ (y !== d || v !== h || _ !== p) && (d = y, h = v, p = _, f.forEach((U) => {
17366
17365
  try {
17367
17366
  U(d, h);
17368
17367
  } catch (D) {
@@ -17370,15 +17369,15 @@ function vT(t, e, s, r) {
17370
17369
  }
17371
17370
  }));
17372
17371
  })), o.finally(() => {
17373
- f = !1, i != null && i.signal.aborted || (h = "COMPLETED", p.forEach((y) => {
17372
+ p = !1, i != null && i.signal.aborted || (h = "COMPLETED", f.forEach((y) => {
17374
17373
  try {
17375
17374
  y(d, h);
17376
17375
  } catch (v) {
17377
17376
  console.warn("Progress callback error:", v);
17378
17377
  }
17379
- })), m && m(), p.clear();
17378
+ })), m && m(), f.clear();
17380
17379
  }), u.cancel = async () => {
17381
- i && !i.signal.aborted && i.abort(), a && await a(), f = !1, h = "CANCELLED", p.forEach((y) => {
17380
+ i && !i.signal.aborted && i.abort(), a && await a(), p = !1, h = "CANCELLED", f.forEach((y) => {
17382
17381
  try {
17383
17382
  y(d, h);
17384
17383
  } catch (v) {
@@ -17392,9 +17391,9 @@ function vT(t, e, s, r) {
17392
17391
  get: () => h,
17393
17392
  enumerable: !0
17394
17393
  }), Object.defineProperty(u, "isRunning", {
17395
- get: () => f,
17394
+ get: () => p,
17396
17395
  enumerable: !0
17397
- }), u.onProgressUpdate = (y) => (p.add(y), y(d, h), () => p.delete(y)), u;
17396
+ }), u.onProgressUpdate = (y) => (f.add(y), y(d, h), () => f.delete(y)), u;
17398
17397
  }
17399
17398
  const yw = ju`
17400
17399
  0% {
@@ -17669,7 +17668,7 @@ const oe = (t) => {
17669
17668
  return S(() => {
17670
17669
  t.forceUpdate && h && To(h) && h.updateModel(t.options || {});
17671
17670
  }, [h]), S(() => {
17672
- async function f() {
17671
+ async function p() {
17673
17672
  try {
17674
17673
  return await o.kosCore.whenReady(), r && await (d == null ? void 0 : d.fsm.transitionTo(
17675
17674
  k.GO_ACTIVE,
@@ -17679,9 +17678,9 @@ const oe = (t) => {
17679
17678
  throw u(m.message), m;
17680
17679
  }
17681
17680
  }
17682
- let p;
17683
- return o.kosCore && e && f().then((m) => {
17684
- p = ee(() => {
17681
+ let f;
17682
+ return o.kosCore && e && p().then((m) => {
17683
+ f = ee(() => {
17685
17684
  const y = (m == null ? void 0 : m.status) === b.READY;
17686
17685
  a(y);
17687
17686
  });
@@ -17697,14 +17696,14 @@ const oe = (t) => {
17697
17696
  if (n) {
17698
17697
  const y = h.id;
17699
17698
  qe(h).then(() => {
17700
- pt.delete(y), p == null || p();
17699
+ pt.delete(y), f == null || f();
17701
17700
  });
17702
17701
  }
17703
17702
  });
17704
17703
  }
17705
17704
  } else
17706
17705
  n && h && qe(h).then(() => {
17707
- pt.delete(e), p == null || p();
17706
+ pt.delete(e), f == null || f();
17708
17707
  });
17709
17708
  };
17710
17709
  }, [
@@ -17781,10 +17780,10 @@ const Mu = Us(void 0), Hw = () => {
17781
17780
  rootUrl: n,
17782
17781
  descriptorResolver: o
17783
17782
  }) => {
17784
- const [i, a] = E(!1), [c, u] = E(), [d, h] = E(), f = n || Hw(), p = Y(() => e ?? "app/system", [e]);
17783
+ const [i, a] = E(!1), [c, u] = E(), [d, h] = E(), p = n || Hw(), f = Y(() => e ?? "app/system", [e]);
17785
17784
  S(() => {
17786
17785
  async function v() {
17787
- const U = (Array.isArray(p) ? p : [p]).map((se) => (o || Kb(se))()), L = (await Promise.allSettled(U)).map((se) => {
17786
+ const U = (Array.isArray(f) ? f : [f]).map((se) => (o || Kb(se))()), L = (await Promise.allSettled(U)).map((se) => {
17788
17787
  if (se.status === "rejected") {
17789
17788
  g.warn("Failed to load localization descriptor", se.reason);
17790
17789
  return;
@@ -17803,10 +17802,10 @@ const Mu = Us(void 0), Hw = () => {
17803
17802
  u(L);
17804
17803
  }
17805
17804
  v();
17806
- }, [p, o]), S(() => {
17805
+ }, [f, o]), S(() => {
17807
17806
  async function v() {
17808
17807
  if (c) {
17809
- const _ = f, { translations: U } = await ev.init({
17808
+ const _ = p, { translations: U } = await ev.init({
17810
17809
  lang: s,
17811
17810
  descriptor: c,
17812
17811
  defaultNamespace: "common",
@@ -17817,7 +17816,7 @@ const Mu = Us(void 0), Hw = () => {
17817
17816
  }
17818
17817
  }
17819
17818
  v();
17820
- }, [s, c, r, f]);
17819
+ }, [s, c, r, p]);
17821
17820
  const m = Y(() => i ? {
17822
17821
  setLocale: (v) => {
17823
17822
  d && (d.currentLocale = v);
@@ -17894,9 +17893,9 @@ const Un = 10, Yw = pa(
17894
17893
  const d = re(
17895
17894
  (h) => {
17896
17895
  if (a.current && n) {
17897
- const f = a.current.getContext("2d");
17898
- f && Kw({
17899
- ctx: f,
17896
+ const p = a.current.getContext("2d");
17897
+ p && Kw({
17898
+ ctx: p,
17900
17899
  format: "base64",
17901
17900
  dataString: h,
17902
17901
  height: e,
@@ -18021,8 +18020,8 @@ const BT = (t) => {
18021
18020
  async function d(h) {
18022
18021
  try {
18023
18022
  h && (await Te(h), o(!0));
18024
- } catch (f) {
18025
- a(f.message);
18023
+ } catch (p) {
18024
+ a(p.message);
18026
18025
  }
18027
18026
  }
18028
18027
  d(e);
@@ -18070,8 +18069,8 @@ const jn = g.createLogger({ name: "use-timer" }), qT = ({
18070
18069
  return;
18071
18070
  }
18072
18071
  const u = I(lu, (d) => {
18073
- const { name: h, action: f, remainingTime: p } = d == null ? void 0 : d.body;
18074
- h === t && (f === du ? e({ name: h, action: f, remainingTime: p, timer: o }) : r != null && r[f] && r[f]({ name: h, action: f, remainingTime: p, timer: o }));
18072
+ const { name: h, action: p, remainingTime: f } = d == null ? void 0 : d.body;
18073
+ h === t && (p === du ? e({ name: h, action: p, remainingTime: f, timer: o }) : r != null && r[p] && r[p]({ name: h, action: p, remainingTime: f, timer: o }));
18075
18074
  });
18076
18075
  return n && o.start(), () => {
18077
18076
  u.unsubscribe();
@@ -18080,8 +18079,8 @@ const jn = g.createLogger({ name: "use-timer" }), qT = ({
18080
18079
  if (!o || !s)
18081
18080
  return;
18082
18081
  const u = `${uu}/${t}`, d = I(u, (h) => {
18083
- const { name: f, remainingTime: p } = h == null ? void 0 : h.body;
18084
- f === t && s({ name: f, remainingTime: p, timer: o });
18082
+ const { name: p, remainingTime: f } = h == null ? void 0 : h.body;
18083
+ p === t && s({ name: p, remainingTime: f, timer: o });
18085
18084
  });
18086
18085
  return () => {
18087
18086
  d.unsubscribe();
@@ -18181,10 +18180,10 @@ const lE = async () => {
18181
18180
  }), [e == null ? void 0 : e.keyPrefix, a]);
18182
18181
  return { t: re(
18183
18182
  (d, h) => {
18184
- const f = e != null && e.keyPrefix ? `${e.keyPrefix}.${d}` : d;
18185
- return a ? a.resolveKey(f, h) : (g.debug(
18186
- `Translation model ${t} not ready for key: ${f}`
18187
- ), f);
18183
+ const p = e != null && e.keyPrefix ? `${e.keyPrefix}.${d}` : d;
18184
+ return a ? a.resolveKey(p, h) : (g.debug(
18185
+ `Translation model ${t} not ready for key: ${p}`
18186
+ ), p);
18188
18187
  },
18189
18188
  [e == null ? void 0 : e.keyPrefix, t, a]
18190
18189
  ), i18n: c };
@@ -18264,16 +18263,16 @@ const ZT = ({ path: t, propKey: e }) => {
18264
18263
  options: {
18265
18264
  path: t
18266
18265
  }
18267
- }), [r, n] = E(!1), [o, i] = E(), [a, c] = E(""), [u, d] = E(), h = (f) => {
18268
- o && e && o.updateProperty(e, f);
18266
+ }), [r, n] = E(!1), [o, i] = E(), [a, c] = E(""), [u, d] = E(), h = (p) => {
18267
+ o && e && o.updateProperty(e, p);
18269
18268
  };
18270
18269
  return S(() => {
18271
- var f;
18272
- s.model && i(s.model), s.model && e && ((f = s.model) != null && f.props.has(e) ? c(s.model.props[e]) : d(`property ${e} not found`)), s.ready && n(s.ready);
18270
+ var p;
18271
+ s.model && i(s.model), s.model && e && ((p = s.model) != null && p.props.has(e) ? c(s.model.props[e]) : d(`property ${e} not found`)), s.ready && n(s.ready);
18273
18272
  }, [s.ready, s.model, e]), S(() => {
18274
18273
  e && Xt(() => {
18275
- const f = o == null ? void 0 : o.props[e];
18276
- c(f || "");
18274
+ const p = o == null ? void 0 : o.props[e];
18275
+ c(p || "");
18277
18276
  });
18278
18277
  }, [o, e]), {
18279
18278
  config: o,
@@ -18444,14 +18443,14 @@ function ME({
18444
18443
  dayFormat: a = "short"
18445
18444
  } = {}
18446
18445
  }) {
18447
- const c = $u(o, r), u = _E(o, r, t), d = TE(i, t), h = $E(i, t), f = Su(e, s), p = IE(e, s, t, n), m = DE(s, e, p), y = OE(t, a);
18446
+ const c = $u(o, r), u = _E(o, r, t), d = TE(i, t), h = $E(i, t), p = Su(e, s), f = IE(e, s, t, n), m = DE(s, e, f), y = OE(t, a);
18448
18447
  return {
18449
- daysArray: f,
18448
+ daysArray: p,
18450
18449
  monthsArray: d,
18451
18450
  yearsArray: c,
18452
18451
  yearsOptionsArray: u,
18453
18452
  monthsOptionsArray: h,
18454
- daysOptionsArray: p,
18453
+ daysOptionsArray: f,
18455
18454
  calendarDayArray: m,
18456
18455
  dayNamesArray: y
18457
18456
  };
@@ -18557,7 +18556,7 @@ function t$({
18557
18556
  daysOfWeekFilter: u = []
18558
18557
  } = {}
18559
18558
  }) {
18560
- const [d, h] = E(e), [f, p] = E(c), [m, y] = E(s), [v, _] = E(r);
18559
+ const [d, h] = E(e), [p, f] = E(c), [m, y] = E(s), [v, _] = E(r);
18561
18560
  S(() => {
18562
18561
  h(e);
18563
18562
  }, [e]), S(() => {
@@ -18577,7 +18576,7 @@ function t$({
18577
18576
  } = ME({
18578
18577
  locale: t,
18579
18578
  year: d,
18580
- yearRange: f,
18579
+ yearRange: p,
18581
18580
  month: m,
18582
18581
  formatOptions: {
18583
18582
  yearFormat: n,
@@ -18594,7 +18593,7 @@ function t$({
18594
18593
  return {
18595
18594
  dateActions: {
18596
18595
  setYear: h,
18597
- setYearRange: p,
18596
+ setYearRange: f,
18598
18597
  setMonth: y,
18599
18598
  setDay: _,
18600
18599
  nextMonth: () => {
@@ -18614,7 +18613,7 @@ function t$({
18614
18613
  me === 11 && h(le), y(me);
18615
18614
  },
18616
18615
  nextYear: () => {
18617
- const le = d < f[1] ? d + 1 : f[0], me = Re(le);
18616
+ const le = d < p[1] ? d + 1 : p[0], me = Re(le);
18618
18617
  if (lr(me, m, v))
18619
18618
  h(le);
18620
18619
  else {
@@ -18623,7 +18622,7 @@ function t$({
18623
18622
  }
18624
18623
  },
18625
18624
  previousYear: () => {
18626
- const le = d > f[0] ? d - 1 : f[0], me = Re(le);
18625
+ const le = d > p[0] ? d - 1 : p[0], me = Re(le);
18627
18626
  if (lr(me, m, v))
18628
18627
  h(le);
18629
18628
  else {
@@ -18634,7 +18633,7 @@ function t$({
18634
18633
  },
18635
18634
  dateState: {
18636
18635
  year: d,
18637
- yearRange: f,
18636
+ yearRange: p,
18638
18637
  month: m,
18639
18638
  day: v,
18640
18639
  yearsArray: U,
@@ -18686,8 +18685,8 @@ const PE = ({
18686
18685
  }
18687
18686
  });
18688
18687
  return S(() => {
18689
- const d = Number(t), h = Math.floor(d / 3600), f = Math.floor(d % 3600 / 60), p = d % 60;
18690
- s(h), n(f), i(p);
18688
+ const d = Number(t), h = Math.floor(d / 3600), p = Math.floor(d % 3600 / 60), f = d % 60;
18689
+ s(h), n(p), i(f);
18691
18690
  const m = /* @__PURE__ */ new Date();
18692
18691
  m.setHours(0, 0, 0, 0);
18693
18692
  const y = new Date(m.getTime() + d * 1e3);
@@ -19075,7 +19074,7 @@ function YE({
19075
19074
  }, []), u = re((y) => {
19076
19075
  const v = new Date(y);
19077
19076
  o(v);
19078
- }, []), d = GE(n, r), { hourOptions: h, minuteOptions: f, secondOptions: p, amPmOptions: m } = KE({
19077
+ }, []), d = GE(n, r), { hourOptions: h, minuteOptions: p, secondOptions: f, amPmOptions: m } = KE({
19079
19078
  formatOptions: t,
19080
19079
  locale: s
19081
19080
  });
@@ -19083,8 +19082,8 @@ function YE({
19083
19082
  amPmOptions: m,
19084
19083
  formattedTime: d,
19085
19084
  hourOptions: h,
19086
- minuteOptions: f,
19087
- secondOptions: p,
19085
+ minuteOptions: p,
19086
+ secondOptions: f,
19088
19087
  setHours: i,
19089
19088
  setMinutes: a,
19090
19089
  setSeconds: c,
@@ -19104,20 +19103,20 @@ const u$ = (t) => {
19104
19103
  function d$(t, e, s = {}) {
19105
19104
  const { disposeOnUnmount: r = !0 } = s, [n, o] = E(!1), [i, a] = E(void 0), c = mt(null), u = mt(!0), d = mt(!1), h = Y(() => {
19106
19105
  if (!u.current && c.current && r && Cn(c.current)) {
19107
- const p = c.current;
19106
+ const f = c.current;
19108
19107
  Promise.resolve().then(() => {
19109
- Cn(p) && p.dispose();
19108
+ Cn(f) && f.dispose();
19110
19109
  });
19111
19110
  }
19112
19111
  u.current = !1, d.current = !1;
19113
- const f = t();
19114
- return c.current = f, f;
19112
+ const p = t();
19113
+ return c.current = p, p;
19115
19114
  }, e);
19116
19115
  return S(() => {
19117
19116
  d.current || (Hh(h) ? (d.current = !0, o(!1), a(void 0), h.ready().then(() => {
19118
19117
  o(!0);
19119
- }).catch((f) => {
19120
- a(f), o(!1);
19118
+ }).catch((p) => {
19119
+ a(p), o(!1);
19121
19120
  })) : (o(!0), a(void 0)));
19122
19121
  }, [h]), S(
19123
19122
  () => () => {