@placeos/ts-client 4.8.0 → 4.8.2

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/dist/index.es.js CHANGED
@@ -128,7 +128,7 @@ function Ce(t) {
128
128
  };
129
129
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
130
130
  }
131
- function Ot(t, e) {
131
+ function Pt(t, e) {
132
132
  var n = typeof Symbol == "function" && t[Symbol.iterator];
133
133
  if (!n) return t;
134
134
  var r = n.call(t), i, s = [], o;
@@ -145,7 +145,7 @@ function Ot(t, e) {
145
145
  }
146
146
  return s;
147
147
  }
148
- function Et(t, e, n) {
148
+ function Ot(t, e, n) {
149
149
  if (n || arguments.length === 2) for (var r = 0, i = e.length, s; r < i; r++)
150
150
  (s || !(r in e)) && (s || (s = Array.prototype.slice.call(e, 0, r)), s[r] = e[r]);
151
151
  return t.concat(s || Array.prototype.slice.call(e));
@@ -228,7 +228,7 @@ var _n = An(function(t) {
228
228
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
229
229
  };
230
230
  });
231
- function It(t, e) {
231
+ function Et(t, e) {
232
232
  if (t) {
233
233
  var n = t.indexOf(e);
234
234
  0 <= n && t.splice(n, 1);
@@ -277,7 +277,7 @@ var Ae = function() {
277
277
  try {
278
278
  Hn(f);
279
279
  } catch (h) {
280
- s = s ?? [], h instanceof _n ? s = Et(Et([], Ot(s)), Ot(h.errors)) : s.push(h);
280
+ s = s ?? [], h instanceof _n ? s = Ot(Ot([], Pt(s)), Pt(h.errors)) : s.push(h);
281
281
  }
282
282
  }
283
283
  } catch (h) {
@@ -314,10 +314,10 @@ var Ae = function() {
314
314
  this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e;
315
315
  }, t.prototype._removeParent = function(e) {
316
316
  var n = this._parentage;
317
- n === e ? this._parentage = null : Array.isArray(n) && It(n, e);
317
+ n === e ? this._parentage = null : Array.isArray(n) && Et(n, e);
318
318
  }, t.prototype.remove = function(e) {
319
319
  var n = this._finalizers;
320
- n && It(n, e), e instanceof t && e._removeParent(this);
320
+ n && Et(n, e), e instanceof t && e._removeParent(this);
321
321
  }, t.EMPTY = function() {
322
322
  var e = new t();
323
323
  return e.closed = !0, e;
@@ -335,7 +335,7 @@ var fi = {
335
335
  setTimeout: function(t, e) {
336
336
  for (var n = [], r = 2; r < arguments.length; r++)
337
337
  n[r - 2] = arguments[r];
338
- return setTimeout.apply(void 0, Et([t, e], Ot(n)));
338
+ return setTimeout.apply(void 0, Ot([t, e], Pt(n)));
339
339
  },
340
340
  clearTimeout: function(t) {
341
341
  return clearTimeout(t);
@@ -349,10 +349,10 @@ function lr(t) {
349
349
  }
350
350
  function Wn() {
351
351
  }
352
- function At(t) {
352
+ function xt(t) {
353
353
  t();
354
354
  }
355
- var jt = function(t) {
355
+ var Ft = function(t) {
356
356
  te(e, t);
357
357
  function e(n) {
358
358
  var r = t.call(this) || this;
@@ -393,7 +393,7 @@ var jt = function(t) {
393
393
  try {
394
394
  n.next(e);
395
395
  } catch (r) {
396
- $t(r);
396
+ kt(r);
397
397
  }
398
398
  }, t.prototype.error = function(e) {
399
399
  var n = this.partialObserver;
@@ -401,17 +401,17 @@ var jt = function(t) {
401
401
  try {
402
402
  n.error(e);
403
403
  } catch (r) {
404
- $t(r);
404
+ kt(r);
405
405
  }
406
406
  else
407
- $t(e);
407
+ kt(e);
408
408
  }, t.prototype.complete = function() {
409
409
  var e = this.partialObserver;
410
410
  if (e.complete)
411
411
  try {
412
412
  e.complete();
413
413
  } catch (n) {
414
- $t(n);
414
+ kt(n);
415
415
  }
416
416
  }, t;
417
417
  }(), Sn = function(t) {
@@ -425,8 +425,8 @@ var jt = function(t) {
425
425
  } : o = n, s.destination = new di(o), s;
426
426
  }
427
427
  return e;
428
- }(jt);
429
- function $t(t) {
428
+ }(Ft);
429
+ function kt(t) {
430
430
  lr(t);
431
431
  }
432
432
  function _i(t) {
@@ -459,7 +459,7 @@ var D = function() {
459
459
  return n.source = this, n.operator = e, n;
460
460
  }, t.prototype.subscribe = function(e, n, r) {
461
461
  var i = this, s = bi(e) ? e : new Sn(e, n, r);
462
- return At(function() {
462
+ return xt(function() {
463
463
  var o = i, u = o.operator, c = o.source;
464
464
  s.add(u ? u.call(s, c) : c ? i._subscribe(s) : i._trySubscribe(s));
465
465
  }), s;
@@ -518,7 +518,7 @@ function gi(t) {
518
518
  return t && C(t.next) && C(t.error) && C(t.complete);
519
519
  }
520
520
  function bi(t) {
521
- return t && t instanceof jt || gi(t) && ar(t);
521
+ return t && t instanceof Ft || gi(t) && ar(t);
522
522
  }
523
523
  function vi(t) {
524
524
  return C(t?.lift);
@@ -574,7 +574,7 @@ var Si = function(t) {
574
574
  t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
575
575
  }
576
576
  }, e;
577
- }(jt), ki = An(function(t) {
577
+ }(Ft), ki = An(function(t) {
578
578
  return function() {
579
579
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
580
580
  };
@@ -592,7 +592,7 @@ var Si = function(t) {
592
592
  throw new ki();
593
593
  }, e.prototype.next = function(n) {
594
594
  var r = this;
595
- At(function() {
595
+ xt(function() {
596
596
  var i, s;
597
597
  if (r._throwIfClosed(), !r.isStopped) {
598
598
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
@@ -614,7 +614,7 @@ var Si = function(t) {
614
614
  });
615
615
  }, e.prototype.error = function(n) {
616
616
  var r = this;
617
- At(function() {
617
+ xt(function() {
618
618
  if (r._throwIfClosed(), !r.isStopped) {
619
619
  r.hasError = r.isStopped = !0, r.thrownError = n;
620
620
  for (var i = r.observers; i.length; )
@@ -623,7 +623,7 @@ var Si = function(t) {
623
623
  });
624
624
  }, e.prototype.complete = function() {
625
625
  var n = this;
626
- At(function() {
626
+ xt(function() {
627
627
  if (n._throwIfClosed(), !n.isStopped) {
628
628
  n.isStopped = !0;
629
629
  for (var r = n.observers; r.length; )
@@ -646,7 +646,7 @@ var Si = function(t) {
646
646
  }, e.prototype._innerSubscribe = function(n) {
647
647
  var r = this, i = this, s = i.hasError, o = i.isStopped, u = i.observers;
648
648
  return s || o ? cr : (this.currentObservers = null, u.push(n), new Ae(function() {
649
- r.currentObservers = null, It(u, n);
649
+ r.currentObservers = null, Et(u, n);
650
650
  }));
651
651
  }, e.prototype._checkFinalizedStatuses = function(n) {
652
652
  var r = this, i = r.hasError, s = r.thrownError, o = r.isStopped;
@@ -739,7 +739,7 @@ var Si = function(t) {
739
739
  setInterval: function(t, e) {
740
740
  for (var n = [], r = 2; r < arguments.length; r++)
741
741
  n[r - 2] = arguments[r];
742
- return setInterval.apply(void 0, Et([t, e], Ot(n)));
742
+ return setInterval.apply(void 0, Ot([t, e], Pt(n)));
743
743
  },
744
744
  clearInterval: function(t) {
745
745
  return clearInterval(t);
@@ -784,7 +784,7 @@ var Si = function(t) {
784
784
  }, e.prototype.unsubscribe = function() {
785
785
  if (!this.closed) {
786
786
  var n = this, r = n.id, i = n.scheduler, s = i.actions;
787
- this.work = this.state = this.scheduler = null, this.pending = !1, It(s, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
787
+ this.work = this.state = this.scheduler = null, this.pending = !1, Et(s, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
788
788
  }
789
789
  }, e;
790
790
  }($i), Vn = function() {
@@ -1502,7 +1502,7 @@ const se = [
1502
1502
  50,
1503
1503
  51
1504
1504
  ];
1505
- function xt(t) {
1505
+ function $t(t) {
1506
1506
  if (t >= Gn.length)
1507
1507
  throw new Error("Unable to parse base64 string.");
1508
1508
  const e = Gn[t];
@@ -1524,13 +1524,13 @@ function es(t) {
1524
1524
  throw new Error("Unable to parse base64 string.");
1525
1525
  let n = t.endsWith("==") ? 2 : t.endsWith("=") ? 1 : 0, r = t.length, i = new Uint8Array(3 * (r / 4)), s;
1526
1526
  for (let o = 0, u = 0; o < r; o += 4, u += 3)
1527
- s = xt(t.charCodeAt(o)) << 18 | xt(t.charCodeAt(o + 1)) << 12 | xt(t.charCodeAt(o + 2)) << 6 | xt(t.charCodeAt(o + 3)), i[u] = s >> 16, i[u + 1] = s >> 8 & 255, i[u + 2] = s & 255;
1527
+ s = $t(t.charCodeAt(o)) << 18 | $t(t.charCodeAt(o + 1)) << 12 | $t(t.charCodeAt(o + 2)) << 6 | $t(t.charCodeAt(o + 3)), i[u] = s >> 16, i[u + 1] = s >> 8 & 255, i[u + 2] = s & 255;
1528
1528
  return i.subarray(0, i.length - n);
1529
1529
  }
1530
1530
  function ts(t, e = new TextEncoder()) {
1531
1531
  return Or(e.encode(t));
1532
1532
  }
1533
- var wt = { exports: {} }, ns = wt.exports, Yn;
1533
+ var At = { exports: {} }, ns = At.exports, Yn;
1534
1534
  function rs() {
1535
1535
  return Yn || (Yn = 1, function(t) {
1536
1536
  (function(e, n) {
@@ -1609,13 +1609,13 @@ function rs() {
1609
1609
  3329325298
1610
1610
  ]);
1611
1611
  function r(d, a, f, h, $) {
1612
- for (var v, w, P, Q, F, U, ne, j, W, z, Ge, Ye, kt; $ >= 64; ) {
1612
+ for (var v, w, P, Q, F, U, ne, j, W, z, Ge, Ye, St; $ >= 64; ) {
1613
1613
  for (v = a[0], w = a[1], P = a[2], Q = a[3], F = a[4], U = a[5], ne = a[6], j = a[7], z = 0; z < 16; z++)
1614
1614
  Ge = h + z * 4, d[z] = (f[Ge] & 255) << 24 | (f[Ge + 1] & 255) << 16 | (f[Ge + 2] & 255) << 8 | f[Ge + 3] & 255;
1615
1615
  for (z = 16; z < 64; z++)
1616
- W = d[z - 2], Ye = (W >>> 17 | W << 15) ^ (W >>> 19 | W << 13) ^ W >>> 10, W = d[z - 15], kt = (W >>> 7 | W << 25) ^ (W >>> 18 | W << 14) ^ W >>> 3, d[z] = (Ye + d[z - 7] | 0) + (kt + d[z - 16] | 0);
1616
+ W = d[z - 2], Ye = (W >>> 17 | W << 15) ^ (W >>> 19 | W << 13) ^ W >>> 10, W = d[z - 15], St = (W >>> 7 | W << 25) ^ (W >>> 18 | W << 14) ^ W >>> 3, d[z] = (Ye + d[z - 7] | 0) + (St + d[z - 16] | 0);
1617
1617
  for (z = 0; z < 64; z++)
1618
- Ye = (((F >>> 6 | F << 26) ^ (F >>> 11 | F << 21) ^ (F >>> 25 | F << 7)) + (F & U ^ ~F & ne) | 0) + (j + (n[z] + d[z] | 0) | 0) | 0, kt = ((v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10)) + (v & w ^ v & P ^ w & P) | 0, j = ne, ne = U, U = F, F = Q + Ye | 0, Q = P, P = w, w = v, v = Ye + kt | 0;
1618
+ Ye = (((F >>> 6 | F << 26) ^ (F >>> 11 | F << 21) ^ (F >>> 25 | F << 7)) + (F & U ^ ~F & ne) | 0) + (j + (n[z] + d[z] | 0) | 0) | 0, St = ((v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10)) + (v & w ^ v & P ^ w & P) | 0, j = ne, ne = U, U = F, F = Q + Ye | 0, Q = P, P = w, w = v, v = Ye + St | 0;
1619
1619
  a[0] += v, a[1] += w, a[2] += P, a[3] += Q, a[4] += F, a[5] += U, a[6] += ne, a[7] += j, h += 64, $ -= 64;
1620
1620
  }
1621
1621
  return h;
@@ -1754,7 +1754,7 @@ function rs() {
1754
1754
  }
1755
1755
  e.pbkdf2 = y;
1756
1756
  });
1757
- }(wt)), wt.exports;
1757
+ }(At)), At.exports;
1758
1758
  }
1759
1759
  var is = rs();
1760
1760
  const ss = new Int32Array(4);
@@ -1925,16 +1925,16 @@ class G {
1925
1925
  if (G.hashStr("hello") !== "5d41402abc4b2a76b9719d911017c592")
1926
1926
  throw new Error("Md5 self test failed.");
1927
1927
  const os = 36e5, Jn = Symbol.for("constructDateFrom");
1928
- function Tt(t, e) {
1928
+ function It(t, e) {
1929
1929
  return typeof t == "function" ? t(e) : t && typeof t == "object" && Jn in t ? t[Jn](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
1930
1930
  }
1931
1931
  function Xe(t, e) {
1932
- return Tt(t, t);
1932
+ return It(t, t);
1933
1933
  }
1934
1934
  function us(t, e, n) {
1935
1935
  const r = Xe(t);
1936
- if (isNaN(e)) return Tt(t, NaN);
1937
- const i = r.getDate(), s = Tt(t, r.getTime());
1936
+ if (isNaN(e)) return It(t, NaN);
1937
+ const i = r.getDate(), s = It(t, r.getTime());
1938
1938
  s.setMonth(r.getMonth() + e + 1, 0);
1939
1939
  const o = s.getDate();
1940
1940
  return i >= o ? s : (r.setFullYear(
@@ -1944,7 +1944,7 @@ function us(t, e, n) {
1944
1944
  ), r);
1945
1945
  }
1946
1946
  function Er(t, e, n) {
1947
- return Tt(t, +Xe(t) + e);
1947
+ return It(t, +Xe(t) + e);
1948
1948
  }
1949
1949
  function cs(t, e, n) {
1950
1950
  return Er(t, e * os);
@@ -2013,7 +2013,7 @@ function be(t) {
2013
2013
  `${window.location?.pathname}${e}${n}`
2014
2014
  );
2015
2015
  }
2016
- function qt(t, e = !1) {
2016
+ function Tt(t, e = !1) {
2017
2017
  const n = e ? 1e3 : 1024;
2018
2018
  if (t < n)
2019
2019
  return t + (e ? " iB" : " B");
@@ -2112,10 +2112,10 @@ const ks = {
2112
2112
  let g = {}, T = localStorage, H;
2113
2113
  const S = {};
2114
2114
  let q = "", xe = "";
2115
- const De = new _e(""), zt = new _e("");
2115
+ const De = new _e(""), jt = new _e("");
2116
2116
  let Tn = "/api/engine/v2";
2117
2117
  const de = new _e(!1), $s = de.asObservable();
2118
- let Ut = 0;
2118
+ let qt = 0;
2119
2119
  function Tr(t) {
2120
2120
  if (!t || t.startsWith("http://") || t.startsWith("https://"))
2121
2121
  return t;
@@ -2140,8 +2140,8 @@ function Vo() {
2140
2140
  function Qo(t, e = !0) {
2141
2141
  T.setItem(`${q}_x-api-key`, `${t}`), T.setItem("trusted", `${e}`), ws("x-api-key", ls(/* @__PURE__ */ new Date(), 5).valueOf());
2142
2142
  }
2143
- function Ht() {
2144
- return Mt("x-api-key", !1) || "";
2143
+ function zt() {
2144
+ return Rt("x-api-key", !1) || "";
2145
2145
  }
2146
2146
  function ws(t, e = cs(/* @__PURE__ */ new Date(), 2).valueOf()) {
2147
2147
  g.ignore_api_key && t === "x-api-key" || (T.setItem(`${q}_expires_at`, `${e}`), T.setItem(`${q}_access_token`, t));
@@ -2149,20 +2149,20 @@ function ws(t, e = cs(/* @__PURE__ */ new Date(), 2).valueOf()) {
2149
2149
  function X(t = !0) {
2150
2150
  if (g.mock) return "mock-token";
2151
2151
  if (!T) return "";
2152
- if (Ht() && !g.ignore_api_key) return "x-api-key";
2152
+ if (zt() && !g.ignore_api_key) return "x-api-key";
2153
2153
  const e = T.getItem(`${q}_expires_at`) || "", n = De.getValue();
2154
- return hs(+e, /* @__PURE__ */ new Date()) && (p("Auth", "Token expired. Requesting new token..."), Rn(), S.load_authority || (Ut += 1, oe(
2154
+ return hs(+e, /* @__PURE__ */ new Date()) && (p("Auth", "Token expired. Requesting new token..."), Rn(), S.load_authority || (qt += 1, oe(
2155
2155
  "re-authorise",
2156
2156
  async () => {
2157
2157
  delete S.authorise, await Mr().catch(
2158
2158
  (r) => p("Auth", `Failed to get token: ${r}`)
2159
2159
  );
2160
2160
  },
2161
- 200 * Math.min(20, Ut)
2161
+ 200 * Math.min(20, qt)
2162
2162
  )), !t) ? "" : n || T.getItem(`${q}_access_token`) || "";
2163
2163
  }
2164
2164
  function $n() {
2165
- return zt.getValue() || T.getItem(`${q}_refresh_token`) || "";
2165
+ return jt.getValue() || T.getItem(`${q}_refresh_token`) || "";
2166
2166
  }
2167
2167
  function xn() {
2168
2168
  return g.host || window.location?.host;
@@ -2173,7 +2173,7 @@ function Ps() {
2173
2173
  function Os() {
2174
2174
  return De.pipe(b((t) => !!Ps()));
2175
2175
  }
2176
- function Rt() {
2176
+ function Ut() {
2177
2177
  return H;
2178
2178
  }
2179
2179
  function Go() {
@@ -2189,12 +2189,12 @@ function Yo() {
2189
2189
  return $s;
2190
2190
  }
2191
2191
  function Un() {
2192
- return Mt("trust") === "true" || Mt("trusted") === "true";
2192
+ return Rt("trust") === "true" || Rt("trusted") === "true";
2193
2193
  }
2194
2194
  function Ur() {
2195
- return !!Ht() && !g.ignore_api_key || Mt("fixed_device") === "true";
2195
+ return !!zt() && !g.ignore_api_key || Rt("fixed_device") === "true";
2196
2196
  }
2197
- function Mt(t, e = !0) {
2197
+ function Rt(t, e = !0) {
2198
2198
  let r = Ir()[t];
2199
2199
  if (T) {
2200
2200
  const i = `${As()}_${t}`;
@@ -2209,7 +2209,7 @@ function Ko(t) {
2209
2209
  T = t === "session" ? sessionStorage : localStorage;
2210
2210
  }
2211
2211
  function Zo() {
2212
- g = {}, H = void 0, De.next(""), zt.next(""), de.next(!1), q = "", xe = "", Tn = "/api/engine/v2";
2212
+ g = {}, H = void 0, De.next(""), jt.next(""), de.next(!1), q = "", xe = "", Tn = "/api/engine/v2";
2213
2213
  for (const t in S)
2214
2214
  t in S && delete S[t];
2215
2215
  bs();
@@ -2239,10 +2239,10 @@ function Mr(t, e = H) {
2239
2239
  ];
2240
2240
  g && g.auth_type === "password" ? (p("Auth", "Logging in with credentials."), Ns(g).then(
2241
2241
  ...s
2242
- ), Ut = 0) : xe || $n() ? (p(
2242
+ ), qt = 0) : xe || $n() ? (p(
2243
2243
  "Auth",
2244
2244
  `Generating token with ${xe ? "code" : "refresh token"}`
2245
- ), Dr().then(...s), Ut = 0) : e.session ? (p(
2245
+ ), Dr().then(...s), qt = 0) : e.session ? (p(
2246
2246
  "Auth",
2247
2247
  "Users has session. Authorising application..."
2248
2248
  ), Is(t).then(...s)) : (p("Auth", "No user session"), Cr(e), r("No user session"), setTimeout(() => delete S.authorise, 200));
@@ -2441,7 +2441,7 @@ function Nr(t, e = "") {
2441
2441
  return S.generate_tokens || (S.generate_tokens = new Promise((n, r) => {
2442
2442
  p("Auth", "Generating new token...");
2443
2443
  const i = (s) => {
2444
- p("Auth", "Error generating new tokens.", s), T.removeItem(`${q}_refresh_token`), zt.next(""), r(), delete S.generate_tokens;
2444
+ p("Auth", "Error generating new tokens.", s), T.removeItem(`${q}_refresh_token`), jt.next(""), r(), delete S.generate_tokens;
2445
2445
  };
2446
2446
  In(t, {
2447
2447
  method: "POST",
@@ -2467,13 +2467,13 @@ function Cn(t) {
2467
2467
  ), be("access_token")), t.refresh_token && (T.setItem(
2468
2468
  `${q}_refresh_token`,
2469
2469
  t.refresh_token
2470
- ), be("refresh_token"))), t.expires_in && (T.setItem(`${q}_expires_at`, `${e.valueOf()}`), be("expires_in")), de.next(!0), De.next(t.access_token || ""), zt.next(t.refresh_token || "");
2470
+ ), be("refresh_token"))), t.expires_in && (T.setItem(`${q}_expires_at`, `${e.valueOf()}`), be("expires_in")), de.next(!0), De.next(t.access_token || ""), jt.next(t.refresh_token || "");
2471
2471
  }
2472
2472
  function Fs() {
2473
2473
  const t = fs();
2474
2474
  return T.setItem(`${q}_nonce`, t), t;
2475
2475
  }
2476
- const Wt = {};
2476
+ const Ht = {};
2477
2477
  let Fr = (t, e) => {
2478
2478
  const n = new Error(`Mock endpoint not found: ${t} ${e}`);
2479
2479
  return n.status = 404, p("HTTP(M)", `404 ${t}:`, e), Ar(n);
@@ -2481,7 +2481,7 @@ let Fr = (t, e) => {
2481
2481
  function eu(t) {
2482
2482
  Fr = t;
2483
2483
  }
2484
- function tu(t, e = Wt) {
2484
+ function tu(t, e = Ht) {
2485
2485
  js(t.method, t.path, e);
2486
2486
  const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
2487
2487
  ...t,
@@ -2492,11 +2492,11 @@ function tu(t, e = Wt) {
2492
2492
  };
2493
2493
  e[n] = i, p("HTTP(M)", `+ ${t.method} ${t.path}`);
2494
2494
  }
2495
- function js(t, e, n = Wt) {
2495
+ function js(t, e, n = Ht) {
2496
2496
  const r = `${t}|${e}`;
2497
2497
  n[r] && (delete n[r], p("HTTP(M)", `- ${t} ${e}`));
2498
2498
  }
2499
- function zs(t, e, n, r = Wt) {
2499
+ function zs(t, e, n, r = Ht) {
2500
2500
  const i = Hs(t, e, r);
2501
2501
  if (i) {
2502
2502
  const s = Ws(e, i, n);
@@ -2504,7 +2504,7 @@ function zs(t, e, n, r = Wt) {
2504
2504
  }
2505
2505
  return Fr(t, e);
2506
2506
  }
2507
- function Hs(t, e, n = Wt) {
2507
+ function Hs(t, e, n = Ht) {
2508
2508
  const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), s = Object.keys(
2509
2509
  n
2510
2510
  ).reduce((o, u) => (u.indexOf(`${t}|`) === 0 && o.push(n[u]), o), []);
@@ -2602,7 +2602,7 @@ function tt(t, e, n, r = qn, i = zs, s = Vs) {
2602
2602
  Qi((o) => o),
2603
2603
  Pr(1),
2604
2604
  Qn((o) => {
2605
- X() === "x-api-key" ? n.headers["X-API-Key"] = Ht() : n.headers.Authorization = `Bearer ${X()}`;
2605
+ X() === "x-api-key" ? n.headers["X-API-Key"] = zt() : n.headers.Authorization = `Bearer ${X()}`;
2606
2606
  const u = {
2607
2607
  ...n,
2608
2608
  method: t,
@@ -2615,7 +2615,7 @@ function tt(t, e, n, r = qn, i = zs, s = Vs) {
2615
2615
  count: 4,
2616
2616
  delay: (o, u) => new D((c) => {
2617
2617
  if (o.status === 511) {
2618
- Cr(Rt()), c.error(o);
2618
+ Cr(Ut()), c.error(o);
2619
2619
  return;
2620
2620
  }
2621
2621
  if (o.status !== 401) {
@@ -2695,13 +2695,13 @@ class Gs extends L {
2695
2695
  }
2696
2696
  }
2697
2697
  const Fe = "alert_dashboards";
2698
- function Lt(t) {
2698
+ function Wt(t) {
2699
2699
  return new Gs(t);
2700
2700
  }
2701
2701
  function nu(t = {}) {
2702
2702
  return A({
2703
2703
  query_params: t,
2704
- fn: Lt,
2704
+ fn: Wt,
2705
2705
  path: Fe
2706
2706
  });
2707
2707
  }
@@ -2709,7 +2709,7 @@ function ru(t) {
2709
2709
  return k({
2710
2710
  id: t,
2711
2711
  query_params: {},
2712
- fn: Lt,
2712
+ fn: Wt,
2713
2713
  path: Fe
2714
2714
  });
2715
2715
  }
@@ -2719,7 +2719,7 @@ function iu(t, e, n = "patch") {
2719
2719
  form_data: e,
2720
2720
  query_params: {},
2721
2721
  method: n,
2722
- fn: Lt,
2722
+ fn: Wt,
2723
2723
  path: Fe
2724
2724
  });
2725
2725
  }
@@ -2727,7 +2727,7 @@ function su(t) {
2727
2727
  return E({
2728
2728
  form_data: t,
2729
2729
  query_params: {},
2730
- fn: Lt,
2730
+ fn: Wt,
2731
2731
  path: Fe
2732
2732
  });
2733
2733
  }
@@ -2807,7 +2807,7 @@ function du(t) {
2807
2807
  return Wr[t] || 0;
2808
2808
  }
2809
2809
  let Hr = {}, Wr = {}, nr = "";
2810
- const Bt = (t) => t;
2810
+ const Lt = (t) => t;
2811
2811
  function A(t) {
2812
2812
  const { query_params: e, fn: n, path: r, endpoint: i } = t, s = R(e), o = `${i || x()}${r ? "/" + r : ""}${s ? "?" + s : ""}`;
2813
2813
  return N(o).pipe(
@@ -2821,19 +2821,19 @@ function A(t) {
2821
2821
  endpoint: i,
2822
2822
  path: r
2823
2823
  }) : null,
2824
- data: u && u instanceof Array ? u.map((l) => (n || Bt)(l)) : u && !(u instanceof Array) && u.results ? u.results.map((l) => l) : []
2824
+ data: u && u instanceof Array ? u.map((l) => (n || Lt)(l)) : u && !(u instanceof Array) && u.results ? u.results.map((l) => l) : []
2825
2825
  };
2826
2826
  })
2827
2827
  );
2828
2828
  }
2829
2829
  function k(t) {
2830
2830
  const { query_params: e, id: n, path: r, fn: i, options: s } = t, o = R(e), u = `${x()}/${r}/${n}${o ? "?" + o : ""}`;
2831
- return N(u, s).pipe(b((c) => (i || Bt)(c)));
2831
+ return N(u, s).pipe(b((c) => (i || Lt)(c)));
2832
2832
  }
2833
2833
  function E(t) {
2834
2834
  const { query_params: e, form_data: n, path: r, fn: i } = t, s = R(e), o = `${x()}/${r}${s ? "?" + s : ""}`;
2835
2835
  return Y(o, n).pipe(
2836
- b((c) => (i || Bt)(c))
2836
+ b((c) => (i || Lt)(c))
2837
2837
  );
2838
2838
  }
2839
2839
  function m(t) {
@@ -2853,7 +2853,7 @@ function I(t) {
2853
2853
  version: r.version || 0
2854
2854
  }), c = `${x()}/${s}/${e}${u ? "?" + u : ""}`;
2855
2855
  return (i === "put" ? Ne : et)(c, r).pipe(
2856
- b((l) => (o || Bt)(l))
2856
+ b((l) => (o || Lt)(l))
2857
2857
  );
2858
2858
  }
2859
2859
  function O(t) {
@@ -2874,14 +2874,14 @@ function Js(t, e, n) {
2874
2874
  return r && r.link && (nr = ps(r.link || "").next, i.next = Je(nr.split("?")[1])), i;
2875
2875
  }
2876
2876
  const it = "oauth_apps";
2877
- function Vt(t) {
2877
+ function Bt(t) {
2878
2878
  return new Ys(t);
2879
2879
  }
2880
2880
  function _u(t = {}) {
2881
- return A({ query_params: t, fn: Vt, path: it });
2881
+ return A({ query_params: t, fn: Bt, path: it });
2882
2882
  }
2883
2883
  function mu(t) {
2884
- return k({ id: t, query_params: {}, fn: Vt, path: it });
2884
+ return k({ id: t, query_params: {}, fn: Bt, path: it });
2885
2885
  }
2886
2886
  function yu(t, e, n = "patch") {
2887
2887
  return I({
@@ -2889,12 +2889,12 @@ function yu(t, e, n = "patch") {
2889
2889
  form_data: e,
2890
2890
  query_params: {},
2891
2891
  method: n,
2892
- fn: Vt,
2892
+ fn: Bt,
2893
2893
  path: it
2894
2894
  });
2895
2895
  }
2896
2896
  function gu(t) {
2897
- return E({ form_data: t, query_params: {}, fn: Vt, path: it });
2897
+ return E({ form_data: t, query_params: {}, fn: Bt, path: it });
2898
2898
  }
2899
2899
  function bu(t) {
2900
2900
  return O({ id: t, query_params: {}, path: it });
@@ -2930,14 +2930,14 @@ class Zs extends L {
2930
2930
  }
2931
2931
  }
2932
2932
  const st = "brokers";
2933
- function Qt(t) {
2933
+ function Vt(t) {
2934
2934
  return new Zs(t);
2935
2935
  }
2936
2936
  function vu(t = {}) {
2937
- return A({ query_params: t, fn: Qt, path: st });
2937
+ return A({ query_params: t, fn: Vt, path: st });
2938
2938
  }
2939
2939
  function Su(t, e = {}) {
2940
- return k({ id: t, query_params: e, fn: Qt, path: st });
2940
+ return k({ id: t, query_params: e, fn: Vt, path: st });
2941
2941
  }
2942
2942
  function ku(t, e, n = "patch") {
2943
2943
  return I({
@@ -2945,12 +2945,12 @@ function ku(t, e, n = "patch") {
2945
2945
  form_data: e,
2946
2946
  query_params: {},
2947
2947
  method: n,
2948
- fn: Qt,
2948
+ fn: Vt,
2949
2949
  path: st
2950
2950
  });
2951
2951
  }
2952
2952
  function $u(t) {
2953
- return E({ form_data: t, query_params: {}, fn: Qt, path: st });
2953
+ return E({ form_data: t, query_params: {}, fn: Vt, path: st });
2954
2954
  }
2955
2955
  function xu(t, e = {}) {
2956
2956
  return O({ id: t, query_params: e, path: st });
@@ -2994,7 +2994,7 @@ class Xs {
2994
2994
  edge_nodes;
2995
2995
  run_counts;
2996
2996
  constructor(e = {}) {
2997
- this.id = e.id || e.core_id || "", this.compiled_drivers = e.compiled_drivers || [], this.available_repositories = e.available_repositories || e.status?.available_repositories || [], this.running_drivers = e.running_drivers || e.status?.running_drivers || 0, this.module_instances = e.module_instances || e.status?.module_instances || 0, this.unavailable_repositories = e.unavailable_repositories || e.status?.unavailable_repositories || [], this.unavailable_drivers = e.unavailable_drivers || e.status?.unavailable_drivers || [], this.hostname = e.hostname || e.load?.local.hostname || "", this.cpu_count = e.cpu_count || e.load?.local.cpu_count || 0, this.core_cpu = e.core_cpu || e.load?.local.core_cpu || 0, this.total_cpu = e.total_cpu || e.load?.local.total_cpu || 0, this.memory_total = e.memory_total || e.load?.local.memory_total || 0, this.memory_usage = e.memory_usage || e.load?.local.memory_usage || 0, this.core_memory = e.core_memory || e.load?.local.core_memory || 0, this.run_counts = e.run_counts || e.status?.run_counts?.local || { modules: 0, drivers: 0 }, this.memory_percentage = +(this.memory_usage / this.memory_total * 100).toFixed(4), this.used_memory = qt(this.memory_usage * 1024), this.total_memory = qt(this.memory_total * 1024);
2997
+ this.id = e.id || e.core_id || "", this.compiled_drivers = e.compiled_drivers || [], this.available_repositories = e.available_repositories || e.status?.available_repositories || [], this.running_drivers = e.running_drivers || e.status?.running_drivers || 0, this.module_instances = e.module_instances || e.status?.module_instances || 0, this.unavailable_repositories = e.unavailable_repositories || e.status?.unavailable_repositories || [], this.unavailable_drivers = e.unavailable_drivers || e.status?.unavailable_drivers || [], this.hostname = e.hostname || e.load?.local.hostname || "", this.cpu_count = e.cpu_count || e.load?.local.cpu_count || 0, this.core_cpu = e.core_cpu || e.load?.local.core_cpu || 0, this.total_cpu = e.total_cpu || e.load?.local.total_cpu || 0, this.memory_total = e.memory_total || e.load?.local.memory_total || 0, this.memory_usage = e.memory_usage || e.load?.local.memory_usage || 0, this.core_memory = e.core_memory || e.load?.local.core_memory || 0, this.run_counts = e.run_counts || e.status?.run_counts?.local || { modules: 0, drivers: 0 }, this.memory_percentage = +(this.memory_usage / this.memory_total * 100).toFixed(4), this.used_memory = Tt(this.memory_usage * 1024), this.total_memory = Tt(this.memory_total * 1024);
2998
2998
  const n = e.load?.edge || {};
2999
2999
  this.edge_nodes = e.edge_nodes || Object.keys(n).map((r) => ({
3000
3000
  id: r,
@@ -3031,7 +3031,7 @@ class eo {
3031
3031
  /** Display string for the memory total */
3032
3032
  total_memory;
3033
3033
  constructor(e, n = {}) {
3034
- this.cluster_id = e, this.id = n.id || n.driver || "", this.modules = n.modules || [], this.running = n.running || !1, this.module_instances = n.module_instances || n.edge?.status?.module_instances || n.local?.status?.module_instances || 0, this.last_exit_code = n.last_exit_code || n.edge?.status?.last_exit_code || n.local?.status?.last_exit_code || 0, this.launch_count = n.launch_count || n.edge?.status?.launch_count || n.local?.status?.launch_count || 0, this.launch_time = n.launch_time || n.edge?.status?.launch_time || n.local?.status?.launch_time || 0, this.cpu_usage = n.cpu_usage || n.percentage_cpu || n.edge?.status?.percentage_cpu || n.local?.status?.percentage_cpu || 0, this.memory_total = n.memory_total || n.edge?.status?.memory_total || n.local?.status?.memory_total || 0, this.memory_usage = n.memory_usage || n.edge?.status?.memory_usage || n.local?.status?.memory_usage || 0, this.used_memory = qt(this.memory_usage * 1024), this.total_memory = qt(this.memory_total * 1024);
3034
+ this.cluster_id = e, this.id = n.id || n.driver || "", this.modules = n.modules || [], this.running = n.running || !1, this.module_instances = n.module_instances || n.edge?.status?.module_instances || n.local?.status?.module_instances || 0, this.last_exit_code = n.last_exit_code || n.edge?.status?.last_exit_code || n.local?.status?.last_exit_code || 0, this.launch_count = n.launch_count || n.edge?.status?.launch_count || n.local?.status?.launch_count || 0, this.launch_time = n.launch_time || n.edge?.status?.launch_time || n.local?.status?.launch_time || 0, this.cpu_usage = n.cpu_usage || n.percentage_cpu || n.edge?.status?.percentage_cpu || n.local?.status?.percentage_cpu || 0, this.memory_total = n.memory_total || n.edge?.status?.memory_total || n.local?.status?.memory_total || 0, this.memory_usage = n.memory_usage || n.edge?.status?.memory_usage || n.local?.status?.memory_usage || 0, this.used_memory = Tt(this.memory_usage * 1024), this.total_memory = Tt(this.memory_total * 1024);
3035
3035
  }
3036
3036
  }
3037
3037
  const je = "cluster";
@@ -3086,14 +3086,14 @@ class to extends L {
3086
3086
  }
3087
3087
  }
3088
3088
  const ze = "domains";
3089
- function ot(t) {
3089
+ function Qt(t) {
3090
3090
  return new to(t);
3091
3091
  }
3092
3092
  function Tu(t = {}) {
3093
- return A({ query_params: t, fn: ot, path: ze });
3093
+ return A({ query_params: t, fn: Qt, path: ze });
3094
3094
  }
3095
3095
  function qu(t) {
3096
- return k({ id: t, query_params: {}, fn: ot, path: ze });
3096
+ return k({ id: t, query_params: {}, fn: Qt, path: ze });
3097
3097
  }
3098
3098
  function Uu(t, e, n = "patch") {
3099
3099
  return I({
@@ -3101,19 +3101,19 @@ function Uu(t, e, n = "patch") {
3101
3101
  form_data: e,
3102
3102
  query_params: {},
3103
3103
  method: n,
3104
- fn: ot,
3104
+ fn: Qt,
3105
3105
  path: ze
3106
3106
  });
3107
3107
  }
3108
3108
  function Ru(t) {
3109
- return E({ form_data: t, query_params: {}, fn: ot, path: ze });
3109
+ return E({ form_data: t, query_params: {}, fn: Qt, path: ze });
3110
3110
  }
3111
3111
  function Mu(t) {
3112
3112
  return O({ id: t, query_params: {}, path: ze });
3113
3113
  }
3114
3114
  function Cu(t) {
3115
3115
  const e = `${x()}${ze}/lookup/${encodeURIComponent(t)}`;
3116
- return N(e).pipe(b((n) => ot(n)));
3116
+ return N(e).pipe(b((n) => `${n}`));
3117
3117
  }
3118
3118
  var He = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Support = 1] = "Support", t[t.Admin = 2] = "Admin", t[t.NeverDisplay = 3] = "NeverDisplay", t))(He || {});
3119
3119
  class Oe extends L {
@@ -3137,7 +3137,7 @@ class Oe extends L {
3137
3137
  super(e), this.parent_id = e.parent_id || "", this.updated_at = e.updated_at || Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3), this.settings_string = e.settings_string || "", this.encryption_level = e.encryption_level || He.None, this.keys = e.keys || [], this.modified_by_id = e.modified_by_id || "";
3138
3138
  }
3139
3139
  }
3140
- var Ct = /* @__PURE__ */ ((t) => (t[t.SSH = 0] = "SSH", t[t.Device = 1] = "Device", t[t.Service = 2] = "Service", t[t.Websocket = 3] = "Websocket", t[t.Logic = 99] = "Logic", t))(Ct || {});
3140
+ var Mt = /* @__PURE__ */ ((t) => (t[t.SSH = 0] = "SSH", t[t.Device = 1] = "Device", t[t.Service = 2] = "Service", t[t.Websocket = 3] = "Websocket", t[t.Logic = 99] = "Logic", t))(Mt || {});
3141
3141
  class Br extends L {
3142
3142
  /** Place class name of the driver */
3143
3143
  class_name;
@@ -3167,7 +3167,7 @@ class Br extends L {
3167
3167
  /** Tuple of user settings of differring encryption levels for the driver */
3168
3168
  settings;
3169
3169
  constructor(e = {}) {
3170
- super(e), this.description = e.description || "", this.module_name = e.module_name || "", this.role = e.role ?? Ct.Logic, this.default_uri = e.default_uri || "", this.default_port = e.default_port || 1, this.ignore_connected = e.ignore_connected || !1, this.class_name = e.class_name || "", this.repository_id = e.repository_id || "", this.file_name = e.file_name || "", this.commit = e.commit || "", this.update_available = e.update_available || !1, this.update_info = e.update_info, this.alert_level = e.alert_level || "medium", this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3170
+ super(e), this.description = e.description || "", this.module_name = e.module_name || "", this.role = e.role ?? Mt.Logic, this.default_uri = e.default_uri || "", this.default_port = e.default_port || 1, this.ignore_connected = e.ignore_connected || !1, this.class_name = e.class_name || "", this.repository_id = e.repository_id || "", this.file_name = e.file_name || "", this.commit = e.commit || "", this.update_available = e.update_available || !1, this.update_info = e.update_info, this.alert_level = e.alert_level || "medium", this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3171
3171
  for (const n in He)
3172
3172
  !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Oe({
3173
3173
  parent_id: this.id,
@@ -3294,15 +3294,15 @@ class ro extends L {
3294
3294
  super(e), this.authority_id = e.authority_id || "", this.host = e.host || "", this.port = e.port || 636, this.auth_method = e.auth_method || "ssl", this.uid = e.uid || "", this.base = e.base || "", this.bind_dn = e.bind_dn || "", this.password = e.password || "", this.filter = e.filter || "";
3295
3295
  }
3296
3296
  }
3297
- const ut = "ldap_auths";
3297
+ const ot = "ldap_auths";
3298
3298
  function Jt(t) {
3299
3299
  return new ro(t);
3300
3300
  }
3301
3301
  function Xu(t = {}) {
3302
- return A({ query_params: t, fn: Jt, path: ut });
3302
+ return A({ query_params: t, fn: Jt, path: ot });
3303
3303
  }
3304
3304
  function ec(t) {
3305
- return k({ id: t, query_params: {}, fn: Jt, path: ut });
3305
+ return k({ id: t, query_params: {}, fn: Jt, path: ot });
3306
3306
  }
3307
3307
  function tc(t, e, n = "patch") {
3308
3308
  return I({
@@ -3311,14 +3311,14 @@ function tc(t, e, n = "patch") {
3311
3311
  query_params: {},
3312
3312
  method: n,
3313
3313
  fn: Jt,
3314
- path: ut
3314
+ path: ot
3315
3315
  });
3316
3316
  }
3317
3317
  function nc(t) {
3318
- return E({ form_data: t, query_params: {}, fn: Jt, path: ut });
3318
+ return E({ form_data: t, query_params: {}, fn: Jt, path: ot });
3319
3319
  }
3320
3320
  function rc(t) {
3321
- return O({ id: t, query_params: {}, path: ut });
3321
+ return O({ id: t, query_params: {}, path: ot });
3322
3322
  }
3323
3323
  class Vr {
3324
3324
  /** ID of the parent resource associated with the metadata */
@@ -3480,14 +3480,14 @@ class io {
3480
3480
  }
3481
3481
  }
3482
3482
  const Ie = "metadata";
3483
- function ct(t) {
3483
+ function ut(t) {
3484
3484
  return new Vr(t);
3485
3485
  }
3486
3486
  function ic(t, e = {}) {
3487
3487
  return k({
3488
3488
  id: t,
3489
3489
  query_params: e,
3490
- fn: (n) => Object.keys(n).map((r) => ct(n[r])),
3490
+ fn: (n) => Object.keys(n).map((r) => ut(n[r])),
3491
3491
  path: Ie
3492
3492
  });
3493
3493
  }
@@ -3507,7 +3507,7 @@ function sc(t, e = {}) {
3507
3507
  method: "get",
3508
3508
  callback: (n) => so(
3509
3509
  Object.keys(n).map(
3510
- (r) => n[r].map((i) => ct(i))
3510
+ (r) => n[r].map((i) => ut(i))
3511
3511
  )
3512
3512
  ),
3513
3513
  path: Ie
@@ -3517,7 +3517,7 @@ function oc(t, e) {
3517
3517
  return k({
3518
3518
  id: t,
3519
3519
  query_params: { name: e },
3520
- fn: (n) => ct(n[e]),
3520
+ fn: (n) => ut(n[e]),
3521
3521
  path: Ie
3522
3522
  });
3523
3523
  }
@@ -3527,12 +3527,12 @@ function uc(t, e, n = "put") {
3527
3527
  form_data: e,
3528
3528
  query_params: {},
3529
3529
  method: n,
3530
- fn: ct,
3530
+ fn: ut,
3531
3531
  path: Ie
3532
3532
  });
3533
3533
  }
3534
3534
  function cc(t) {
3535
- return E({ form_data: t, query_params: {}, fn: ct, path: Ie });
3535
+ return E({ form_data: t, query_params: {}, fn: ut, path: Ie });
3536
3536
  }
3537
3537
  function ac(t, e) {
3538
3538
  return O({ id: t, query_params: e, path: Ie });
@@ -3578,6 +3578,8 @@ class Qr extends L {
3578
3578
  /** URL for the timetable UI linked to the system */
3579
3579
  timetable_url;
3580
3580
  /** URLs for requesting snapshots of the assosiated camera */
3581
+ camera_snapshot_url;
3582
+ /** URLs for requesting snapshots of the assosiated camera */
3581
3583
  camera_snapshot_urls;
3582
3584
  /** URL for managing the attached camera */
3583
3585
  camera_url;
@@ -3606,7 +3608,7 @@ class Qr extends L {
3606
3608
  /** Orientation of the signage system */
3607
3609
  orientation;
3608
3610
  constructor(e = {}) {
3609
- super(e), this.display_name = e.display_name || "", this.description = e.description || "", this.email = e.email || "", this.code = e.code || "", this.capacity = e.capacity || 0, this.features = e.features || [], this.bookable = e.bookable || !1, this.public = e.public ?? !1, this.installed_ui_devices = e.installed_ui_devices || 0, this.support_url = e.support_url || "", this.camera_snapshot_urls = e.camera_snapshot_urls || [], this.camera_url = e.camera_url || "", this.timetable_url = e.timetable_url || "", this.room_booking_url = e.room_booking_url || "", this.map_id = e.map_id || "", this.modules = e.modules || [], this.images = e.images || [], this.zones = e.zones || [], this.settings = e.settings || [null, null, null, null], this.timezone = e.timezone || "", this.signage = e.signage || !1, this.playlists = e.playlists || [], this.orientation = e.orientation || "unspecified", this.approval = e.approval || !1, typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3611
+ super(e), this.display_name = e.display_name || "", this.description = e.description || "", this.email = e.email || "", this.code = e.code || "", this.capacity = e.capacity || 0, this.features = e.features || [], this.bookable = e.bookable || !1, this.public = e.public ?? !1, this.installed_ui_devices = e.installed_ui_devices || 0, this.support_url = e.support_url || "", this.camera_snapshot_url = e.camera_snapshot_url || "", this.camera_snapshot_urls = e.camera_snapshot_urls || [], this.camera_url = e.camera_url || "", this.timetable_url = e.timetable_url || "", this.room_booking_url = e.room_booking_url || "", this.map_id = e.map_id || "", this.modules = e.modules || [], this.images = e.images || [], this.zones = e.zones || [], this.settings = e.settings || [null, null, null, null], this.timezone = e.timezone || "", this.signage = e.signage || !1, this.playlists = e.playlists || [], this.orientation = e.orientation || "unspecified", this.approval = e.approval || !1, typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3610
3612
  for (const n in He)
3611
3613
  !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Oe({
3612
3614
  parent_id: this.id,
@@ -3667,7 +3669,7 @@ class Gr extends L {
3667
3669
  return this.control_system_id;
3668
3670
  }
3669
3671
  constructor(e = {}) {
3670
- super(e), this.driver_id = e.driver_id || e.dependency_id || "", this.control_system_id = e.control_system_id || "", this.edge_id = e.edge_id || "", this.ip = e.ip || "", this.tls = e.tls || !1, this.udp = e.udp || !1, this.port = e.port || 1, this.makebreak = e.makebreak || !1, this.uri = e.uri || "", this.custom_name = e.custom_name || "", this.role = e.role ?? Ct.Logic, this.notes = e.notes || "", this.ignore_connected = e.ignore_connected || !1, this.connected = e.connected, this.running = e.running || !1, this.updated_at = e.updated_at || 0, this.system = new Qr(
3672
+ super(e), this.driver_id = e.driver_id || e.dependency_id || "", this.control_system_id = e.control_system_id || "", this.edge_id = e.edge_id || "", this.ip = e.ip || "", this.tls = e.tls || !1, this.udp = e.udp || !1, this.port = e.port || 1, this.makebreak = e.makebreak || !1, this.uri = e.uri || "", this.custom_name = e.custom_name || "", this.role = e.role ?? Mt.Logic, this.notes = e.notes || "", this.ignore_connected = e.ignore_connected || !1, this.connected = e.connected, this.running = e.running || !1, this.updated_at = e.updated_at || 0, this.system = new Qr(
3671
3673
  e.control_system || e.system
3672
3674
  ), this.has_runtime_error = e.has_runtime_error || !1, this.error_timestamp = e.error_timestamp || 0, this.driver = new Br(e.dependency || e.driver), this.settings = e.settings || [null, null, null, null], this.alert_level = e.alert_level || "medium", typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3673
3675
  for (const n in He)
@@ -3681,7 +3683,7 @@ class Gr extends L {
3681
3683
  */
3682
3684
  toJSON(e = !1) {
3683
3685
  const n = super.toJSON();
3684
- return (n.role !== Ct.Logic && !e || !n.control_system_id) && delete n.control_system_id, delete n.driver, delete n.system, delete n.error_timestamp, delete n.has_runtime_error, n;
3686
+ return (n.role !== Mt.Logic && !e || !n.control_system_id) && delete n.control_system_id, delete n.driver, delete n.system, delete n.error_timestamp, delete n.has_runtime_error, n;
3685
3687
  }
3686
3688
  }
3687
3689
  const J = "modules";
@@ -3783,15 +3785,15 @@ class oo extends L {
3783
3785
  super(e), this.authority_id = e.authority_id || "", this.client_id = e.client_id || "", this.client_secret = e.client_secret || "", this.info_mappings = e.info_mappings || {}, this.authorize_params = e.authorize_params || {}, this.ensure_matching = e.ensure_matching || {}, this.site = e.site || "", this.authorize_url = e.authorize_url || "oauth/authorize", this.token_method = e.token_method || "post", this.token_url = e.token_url || "oauth/token", this.auth_scheme = e.auth_scheme || "request_body", this.scope = e.scope || "", this.raw_info_url = e.raw_info_url || "", this.authorize_params = e.authorize_params || {}, this.ensure_matching = e.ensure_matching || {};
3784
3786
  }
3785
3787
  }
3786
- const at = "oauth_auths";
3788
+ const ct = "oauth_auths";
3787
3789
  function Zt(t) {
3788
3790
  return new oo(t);
3789
3791
  }
3790
3792
  function xc(t = {}) {
3791
- return A({ query_params: t, fn: Zt, path: at });
3793
+ return A({ query_params: t, fn: Zt, path: ct });
3792
3794
  }
3793
3795
  function Ac(t) {
3794
- return k({ id: t, query_params: {}, fn: Zt, path: at });
3796
+ return k({ id: t, query_params: {}, fn: Zt, path: ct });
3795
3797
  }
3796
3798
  function wc(t, e, n = "patch") {
3797
3799
  return I({
@@ -3800,14 +3802,14 @@ function wc(t, e, n = "patch") {
3800
3802
  query_params: {},
3801
3803
  method: n,
3802
3804
  fn: Zt,
3803
- path: at
3805
+ path: ct
3804
3806
  });
3805
3807
  }
3806
3808
  function Pc(t) {
3807
- return E({ form_data: t, query_params: {}, fn: Zt, path: at });
3809
+ return E({ form_data: t, query_params: {}, fn: Zt, path: ct });
3808
3810
  }
3809
3811
  function Oc(t) {
3810
- return O({ id: t, query_params: {}, path: at });
3812
+ return O({ id: t, query_params: {}, path: ct });
3811
3813
  }
3812
3814
  var Yr = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(Yr || {});
3813
3815
  class uo extends L {
@@ -3990,15 +3992,15 @@ class co extends L {
3990
3992
  super(e), this.authority_id = e.authority_id || "", this.issuer = e.issuer || "", this.idp_sso_target_url_runtime_params = e.idp_sso_target_url_runtime_params || {}, this.name_identifier_format = e.name_identifier_format || "", this.uid_attribute = e.uid_attribute || "", this.assertion_consumer_service_url = e.assertion_consumer_service_url || "", this.idp_sso_target_url = e.idp_sso_target_url || "", this.idp_cert = e.idp_cert || "", this.idp_cert_fingerprint = e.idp_cert_fingerprint || "", this.attribute_service_name = e.attribute_service_name || "", this.attribute_statements = e.attribute_statements || {}, this.request_attributes = e.request_attributes || [], this.idp_slo_target_url = e.idp_slo_target_url || "", this.slo_default_relay_state = e.slo_default_relay_state || "";
3991
3993
  }
3992
3994
  }
3993
- const lt = "saml_auths";
3995
+ const at = "saml_auths";
3994
3996
  function en(t) {
3995
3997
  return new co(t);
3996
3998
  }
3997
3999
  function Bc(t = {}) {
3998
- return A({ query_params: t, fn: en, path: lt });
4000
+ return A({ query_params: t, fn: en, path: at });
3999
4001
  }
4000
4002
  function Vc(t) {
4001
- return k({ id: t, query_params: {}, fn: en, path: lt });
4003
+ return k({ id: t, query_params: {}, fn: en, path: at });
4002
4004
  }
4003
4005
  function Qc(t, e, n = "patch") {
4004
4006
  return I({
@@ -4007,24 +4009,24 @@ function Qc(t, e, n = "patch") {
4007
4009
  query_params: {},
4008
4010
  method: n,
4009
4011
  fn: en,
4010
- path: lt
4012
+ path: at
4011
4013
  });
4012
4014
  }
4013
4015
  function Gc(t) {
4014
- return E({ form_data: t, query_params: {}, fn: en, path: lt });
4016
+ return E({ form_data: t, query_params: {}, fn: en, path: at });
4015
4017
  }
4016
4018
  function Yc(t) {
4017
- return O({ id: t, query_params: {}, path: lt });
4019
+ return O({ id: t, query_params: {}, path: at });
4018
4020
  }
4019
4021
  const We = "settings";
4020
- function ht(t) {
4022
+ function lt(t) {
4021
4023
  return new Oe(t);
4022
4024
  }
4023
4025
  function Jc(t = {}) {
4024
- return A({ query_params: t, fn: ht, path: We });
4026
+ return A({ query_params: t, fn: lt, path: We });
4025
4027
  }
4026
4028
  function Kc(t) {
4027
- return k({ id: t, query_params: {}, fn: ht, path: We });
4029
+ return k({ id: t, query_params: {}, fn: lt, path: We });
4028
4030
  }
4029
4031
  function Zc(t, e, n = {}, r = "patch") {
4030
4032
  return I({
@@ -4032,12 +4034,12 @@ function Zc(t, e, n = {}, r = "patch") {
4032
4034
  form_data: e,
4033
4035
  query_params: n,
4034
4036
  method: r,
4035
- fn: ht,
4037
+ fn: lt,
4036
4038
  path: We
4037
4039
  });
4038
4040
  }
4039
4041
  function Xc(t, e = {}) {
4040
- return E({ form_data: t, query_params: e, fn: ht, path: We });
4042
+ return E({ form_data: t, query_params: e, fn: lt, path: We });
4041
4043
  }
4042
4044
  function ea(t) {
4043
4045
  return O({ id: t, query_params: {}, path: We });
@@ -4048,7 +4050,7 @@ function ta(t, e = {}) {
4048
4050
  task_name: "history",
4049
4051
  form_data: e,
4050
4052
  method: "get",
4051
- callback: (n) => n.map((r) => ht(r)),
4053
+ callback: (n) => n.map((r) => lt(r)),
4052
4054
  path: We
4053
4055
  });
4054
4056
  }
@@ -4654,19 +4656,19 @@ function _l(t, e) {
4654
4656
  callback: (n) => new Nn(n)
4655
4657
  });
4656
4658
  }
4657
- const ft = "signage/plugins";
4659
+ const ht = "signage/plugins";
4658
4660
  function on(t) {
4659
4661
  return new mo(t);
4660
4662
  }
4661
4663
  function ml(t = {}) {
4662
- return A({ query_params: t, fn: on, path: ft });
4664
+ return A({ query_params: t, fn: on, path: ht });
4663
4665
  }
4664
4666
  function yl(t, e = {}) {
4665
4667
  return k({
4666
4668
  id: t,
4667
4669
  query_params: e,
4668
4670
  fn: on,
4669
- path: ft
4671
+ path: ht
4670
4672
  });
4671
4673
  }
4672
4674
  function gl(t, e, n = "patch") {
@@ -4676,7 +4678,7 @@ function gl(t, e, n = "patch") {
4676
4678
  query_params: {},
4677
4679
  method: n,
4678
4680
  fn: on,
4679
- path: ft
4681
+ path: ht
4680
4682
  });
4681
4683
  }
4682
4684
  function bl(t) {
@@ -4684,11 +4686,11 @@ function bl(t) {
4684
4686
  form_data: t,
4685
4687
  query_params: {},
4686
4688
  fn: on,
4687
- path: ft
4689
+ path: ht
4688
4690
  });
4689
4691
  }
4690
4692
  function vl(t, e = {}) {
4691
- return O({ id: t, query_params: e, path: ft });
4693
+ return O({ id: t, query_params: e, path: ht });
4692
4694
  }
4693
4695
  class Zr {
4694
4696
  id;
@@ -4722,32 +4724,32 @@ class un {
4722
4724
  this.id = e.id || 0, this.survey_id = e.survey_id || 0, this.token = e.token || "", this.email = e.email || "", this.sent = e.sent ?? !1;
4723
4725
  }
4724
4726
  }
4725
- const pt = "/api/staff/v1/surveys/invitations";
4727
+ const ft = "/api/staff/v1/surveys/invitations";
4726
4728
  function $l(t = {}) {
4727
4729
  const e = R(t);
4728
- return N(`${pt}${e ? "?" + e : ""}`).pipe(
4730
+ return N(`${ft}${e ? "?" + e : ""}`).pipe(
4729
4731
  b((n) => n.map((r) => new un(r)))
4730
4732
  );
4731
4733
  }
4732
4734
  function xl(t, e = {}) {
4733
4735
  const n = R(e);
4734
- return N(`${pt}/${t}${n ? "?" + n : ""}`).pipe(
4736
+ return N(`${ft}/${t}${n ? "?" + n : ""}`).pipe(
4735
4737
  b((r) => new un(r))
4736
4738
  );
4737
4739
  }
4738
4740
  function Al(t, e, n = "patch") {
4739
- return (n === "put" ? Ne : et)(`${pt}/${t}`, e).pipe(
4741
+ return (n === "put" ? Ne : et)(`${ft}/${t}`, e).pipe(
4740
4742
  b((r) => new un(r))
4741
4743
  );
4742
4744
  }
4743
4745
  function wl(t) {
4744
- return Y(`${pt}`, t).pipe(
4746
+ return Y(`${ft}`, t).pipe(
4745
4747
  b((e) => new un(e))
4746
4748
  );
4747
4749
  }
4748
4750
  function Pl(t, e = {}) {
4749
4751
  const n = R(e);
4750
- return Pe(`${pt}/${t}${n ? "?" + n : ""}`);
4752
+ return Pe(`${ft}/${t}${n ? "?" + n : ""}`);
4751
4753
  }
4752
4754
  class cn {
4753
4755
  id;
@@ -4764,32 +4766,32 @@ class cn {
4764
4766
  this.id = e.id || 0, this.title = e.title || "", this.description = e.description || "", this.type = e.type || "", this.options = e.options || {}, this.required = e.required || !1, this.max_rating = e.max_rating || 0, this.choices = e.choices || [], this.tags = e.tags || [], this.deleted = e.deleted || !1;
4765
4767
  }
4766
4768
  }
4767
- const dt = "/api/staff/v1/surveys/questions";
4769
+ const pt = "/api/staff/v1/surveys/questions";
4768
4770
  function Ol(t = {}) {
4769
4771
  const e = R(t);
4770
- return N(`${dt}${e ? "?" + e : ""}`).pipe(
4772
+ return N(`${pt}${e ? "?" + e : ""}`).pipe(
4771
4773
  b((n) => n.map((r) => new cn(r)))
4772
4774
  );
4773
4775
  }
4774
4776
  function El(t, e = {}) {
4775
4777
  const n = R(e);
4776
- return N(`${dt}/${t}${n ? "?" + n : ""}`).pipe(
4778
+ return N(`${pt}/${t}${n ? "?" + n : ""}`).pipe(
4777
4779
  b((r) => new cn(r))
4778
4780
  );
4779
4781
  }
4780
4782
  function Il(t) {
4781
- return Y(`${dt}`, t).pipe(
4783
+ return Y(`${pt}`, t).pipe(
4782
4784
  b((e) => new cn(e))
4783
4785
  );
4784
4786
  }
4785
4787
  function Tl(t, e, n = "patch") {
4786
- return (n === "put" ? Ne : et)(`${dt}/${t}`, e).pipe(
4788
+ return (n === "put" ? Ne : et)(`${pt}/${t}`, e).pipe(
4787
4789
  b((r) => new cn(r))
4788
4790
  );
4789
4791
  }
4790
4792
  function ql(t, e = {}) {
4791
4793
  const n = R(e);
4792
- return Pe(`${dt}/${t}${n ? "?" + n : ""}`);
4794
+ return Pe(`${pt}/${t}${n ? "?" + n : ""}`);
4793
4795
  }
4794
4796
  class an {
4795
4797
  id;
@@ -4803,30 +4805,30 @@ class an {
4803
4805
  this.id = e.id || 0, this.title = e.title || "", this.description = e.description || "", this.building_id = e.building_id || "", this.zone_id = e.zone_id || "", this.pages = e.pages || [], this.trigger = e.trigger || "NONE";
4804
4806
  }
4805
4807
  }
4806
- const _t = "/api/staff/v1/surveys";
4808
+ const dt = "/api/staff/v1/surveys";
4807
4809
  function Ul(t = {}) {
4808
4810
  const e = R(t);
4809
- return N(`${_t}${e ? "?" + e : ""}`).pipe(
4811
+ return N(`${dt}${e ? "?" + e : ""}`).pipe(
4810
4812
  b((n) => n.map((r) => new an(r)))
4811
4813
  );
4812
4814
  }
4813
4815
  function Rl(t, e = {}) {
4814
4816
  const n = R(e);
4815
- return N(`${_t}/${t}${n ? "?" + n : ""}`).pipe(
4817
+ return N(`${dt}/${t}${n ? "?" + n : ""}`).pipe(
4816
4818
  b((r) => new an(r))
4817
4819
  );
4818
4820
  }
4819
4821
  function Ml(t, e, n = "patch") {
4820
- return (n === "put" ? Ne : et)(`${_t}/${t}`, e).pipe(
4822
+ return (n === "put" ? Ne : et)(`${dt}/${t}`, e).pipe(
4821
4823
  b((r) => new an(r))
4822
4824
  );
4823
4825
  }
4824
4826
  function Cl(t) {
4825
- return Y(`${_t}`, t).pipe(b((e) => new an(e)));
4827
+ return Y(`${dt}`, t).pipe(b((e) => new an(e)));
4826
4828
  }
4827
4829
  function Dl(t, e = {}) {
4828
4830
  const n = R(e);
4829
- return Pe(`${_t}/${t}${n ? "?" + n : ""}`);
4831
+ return Pe(`${dt}/${t}${n ? "?" + n : ""}`);
4830
4832
  }
4831
4833
  class yo {
4832
4834
  id;
@@ -4958,7 +4960,7 @@ function Bl(t, e = {}) {
4958
4960
  body: JSON.stringify(t)
4959
4961
  }).pipe(b((r) => r.map((i) => qe(i))));
4960
4962
  }
4961
- const mt = "asset_types";
4963
+ const _t = "asset_types";
4962
4964
  function ln(t) {
4963
4965
  return new bo(t);
4964
4966
  }
@@ -4966,7 +4968,7 @@ function Vl(t = {}) {
4966
4968
  return A({
4967
4969
  query_params: t,
4968
4970
  fn: ln,
4969
- path: mt
4971
+ path: _t
4970
4972
  });
4971
4973
  }
4972
4974
  function Ql(t, e = {}) {
@@ -4974,7 +4976,7 @@ function Ql(t, e = {}) {
4974
4976
  id: t,
4975
4977
  query_params: e,
4976
4978
  fn: ln,
4977
- path: mt
4979
+ path: _t
4978
4980
  });
4979
4981
  }
4980
4982
  function Gl(t, e, n = "patch") {
@@ -4984,7 +4986,7 @@ function Gl(t, e, n = "patch") {
4984
4986
  query_params: {},
4985
4987
  method: n,
4986
4988
  fn: ln,
4987
- path: mt
4989
+ path: _t
4988
4990
  });
4989
4991
  }
4990
4992
  function Yl(t) {
@@ -4992,13 +4994,13 @@ function Yl(t) {
4992
4994
  form_data: t,
4993
4995
  query_params: {},
4994
4996
  fn: ln,
4995
- path: mt
4997
+ path: _t
4996
4998
  });
4997
4999
  }
4998
5000
  function Jl(t, e = {}) {
4999
- return O({ id: t, query_params: e, path: mt });
5001
+ return O({ id: t, query_params: e, path: _t });
5000
5002
  }
5001
- const yt = "asset_categories";
5003
+ const mt = "asset_categories";
5002
5004
  function hn(t) {
5003
5005
  return new yo(t);
5004
5006
  }
@@ -5006,7 +5008,7 @@ function Kl(t = {}) {
5006
5008
  return A({
5007
5009
  query_params: t,
5008
5010
  fn: hn,
5009
- path: yt
5011
+ path: mt
5010
5012
  });
5011
5013
  }
5012
5014
  function Zl(t, e = {}) {
@@ -5014,7 +5016,7 @@ function Zl(t, e = {}) {
5014
5016
  id: t,
5015
5017
  query_params: e,
5016
5018
  fn: hn,
5017
- path: yt
5019
+ path: mt
5018
5020
  });
5019
5021
  }
5020
5022
  function Xl(t, e, n = "patch") {
@@ -5024,7 +5026,7 @@ function Xl(t, e, n = "patch") {
5024
5026
  query_params: {},
5025
5027
  method: n,
5026
5028
  fn: hn,
5027
- path: yt
5029
+ path: mt
5028
5030
  });
5029
5031
  }
5030
5032
  function eh(t) {
@@ -5032,13 +5034,13 @@ function eh(t) {
5032
5034
  form_data: t,
5033
5035
  query_params: {},
5034
5036
  fn: hn,
5035
- path: yt
5037
+ path: mt
5036
5038
  });
5037
5039
  }
5038
5040
  function th(t, e = {}) {
5039
- return O({ id: t, query_params: e, path: yt });
5041
+ return O({ id: t, query_params: e, path: mt });
5040
5042
  }
5041
- const gt = "asset_purchase_orders";
5043
+ const yt = "asset_purchase_orders";
5042
5044
  function fn(t) {
5043
5045
  return new go(t);
5044
5046
  }
@@ -5046,7 +5048,7 @@ function nh(t = {}) {
5046
5048
  return A({
5047
5049
  query_params: t,
5048
5050
  fn,
5049
- path: gt
5051
+ path: yt
5050
5052
  });
5051
5053
  }
5052
5054
  function rh(t, e = {}) {
@@ -5054,7 +5056,7 @@ function rh(t, e = {}) {
5054
5056
  id: t,
5055
5057
  query_params: e,
5056
5058
  fn,
5057
- path: gt
5059
+ path: yt
5058
5060
  });
5059
5061
  }
5060
5062
  function ih(t, e, n = "patch") {
@@ -5064,7 +5066,7 @@ function ih(t, e, n = "patch") {
5064
5066
  query_params: {},
5065
5067
  method: n,
5066
5068
  fn,
5067
- path: gt
5069
+ path: yt
5068
5070
  });
5069
5071
  }
5070
5072
  function sh(t) {
@@ -5072,11 +5074,11 @@ function sh(t) {
5072
5074
  form_data: t,
5073
5075
  query_params: {},
5074
5076
  fn,
5075
- path: gt
5077
+ path: yt
5076
5078
  });
5077
5079
  }
5078
5080
  function oh(t, e = {}) {
5079
- return O({ id: t, query_params: e, path: gt });
5081
+ return O({ id: t, query_params: e, path: yt });
5080
5082
  }
5081
5083
  class So {
5082
5084
  id;
@@ -5178,7 +5180,7 @@ class ko {
5178
5180
  this.id = e.id || "", this.storage_type = e.storage_type || null, this.bucket_name = e.bucket_name || "", this.region = e.region || "", this.access_key = e.access_key || "", this.access_secret = e.access_secret || "", this.authority_id = e.authority_id || "", this.endpoint = e.endpoint || "", this.is_default = e.is_default ?? !1, this.ext_filter = e.ext_filter || [], this.mime_filter = e.mime_filter || [], this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0;
5179
5181
  }
5180
5182
  }
5181
- const bt = "storages";
5183
+ const gt = "storages";
5182
5184
  function dn(t) {
5183
5185
  return new ko(t);
5184
5186
  }
@@ -5186,7 +5188,7 @@ function yh(t = {}) {
5186
5188
  return A({
5187
5189
  query_params: t,
5188
5190
  fn: dn,
5189
- path: bt
5191
+ path: gt
5190
5192
  });
5191
5193
  }
5192
5194
  function gh(t, e = {}) {
@@ -5194,7 +5196,7 @@ function gh(t, e = {}) {
5194
5196
  id: t,
5195
5197
  query_params: e,
5196
5198
  fn: dn,
5197
- path: bt
5199
+ path: gt
5198
5200
  });
5199
5201
  }
5200
5202
  function bh(t, e, n = "patch") {
@@ -5204,7 +5206,7 @@ function bh(t, e, n = "patch") {
5204
5206
  query_params: {},
5205
5207
  method: n,
5206
5208
  fn: dn,
5207
- path: bt
5209
+ path: gt
5208
5210
  });
5209
5211
  }
5210
5212
  function vh(t) {
@@ -5212,11 +5214,11 @@ function vh(t) {
5212
5214
  form_data: t,
5213
5215
  query_params: {},
5214
5216
  fn: dn,
5215
- path: bt
5217
+ path: gt
5216
5218
  });
5217
5219
  }
5218
5220
  function Sh(t, e = {}) {
5219
- return O({ id: t, query_params: e, path: bt });
5221
+ return O({ id: t, query_params: e, path: gt });
5220
5222
  }
5221
5223
  const ge = "webrtc";
5222
5224
  function kh(t = {}) {
@@ -5341,7 +5343,7 @@ var $o = {
5341
5343
  var a = n._config.openObserver;
5342
5344
  a && a.next(y);
5343
5345
  var f = n.destination;
5344
- n.destination = jt.create(function(h) {
5346
+ n.destination = Ft.create(function(h) {
5345
5347
  if (l.readyState === 1)
5346
5348
  try {
5347
5349
  var $ = n._config.serializer;
@@ -5448,24 +5450,24 @@ class Oo {
5448
5450
  this[e] || (this[e] = []), this[e].push(new Po(this, n));
5449
5451
  }
5450
5452
  }
5451
- const Dt = {};
5453
+ const Ct = {};
5452
5454
  function Ih(t, e) {
5453
- return Dt[t] = new Oo(e), Dt[t];
5455
+ return Ct[t] = new Oo(e), Ct[t];
5454
5456
  }
5455
5457
  function Eo(t) {
5456
- return Dt[t];
5458
+ return Ct[t];
5457
5459
  }
5458
5460
  function Th(t) {
5459
- delete Dt[t];
5461
+ delete Ct[t];
5460
5462
  }
5461
5463
  const ti = 15;
5462
- let vt = 0, Z, ni = 0;
5464
+ let bt = 0, Z, ni = 0;
5463
5465
  const B = {}, Fn = {}, Ue = {}, Io = {}, ve = new _e(!1);
5464
5466
  Ue._place_os_status = ve.asObservable();
5465
5467
  const ri = new _e([0, 0]);
5466
5468
  Ue._place_os_sync = ri.asObservable();
5467
- let ii = Date.now(), Me, Nt = 0, fe = null, Pt, jn = 0;
5468
- const St = 10 * 1e3, si = new $e();
5469
+ let ii = Date.now(), Me, Dt = 0, fe = null, wt, jn = 0;
5470
+ const vt = 10 * 1e3, si = new $e();
5469
5471
  Ue._place_os_debug_events = si.asObservable();
5470
5472
  function yn() {
5471
5473
  return x().indexOf("/control/") >= 0 ? "/control/websocket" : `${qr()}/systems/control`;
@@ -5490,7 +5492,7 @@ function Uo(t, e = Fn) {
5490
5492
  }
5491
5493
  function rr(t, e = 0, n = Qe) {
5492
5494
  const r = {
5493
- id: ++vt,
5495
+ id: ++bt,
5494
5496
  cmd: "bind",
5495
5497
  ...t
5496
5498
  };
@@ -5498,37 +5500,37 @@ function rr(t, e = 0, n = Qe) {
5498
5500
  }
5499
5501
  function Ro(t, e = 0, n = Qe) {
5500
5502
  const r = {
5501
- id: ++vt,
5503
+ id: ++bt,
5502
5504
  cmd: "unbind",
5503
5505
  ...t
5504
5506
  };
5505
5507
  return n(r, e);
5506
5508
  }
5507
- function Mo(t, e = St, n = Qe) {
5509
+ function Mo(t, e = vt, n = Qe) {
5508
5510
  const r = {
5509
- id: ++vt,
5511
+ id: ++bt,
5510
5512
  cmd: "exec",
5511
5513
  ...t
5512
5514
  };
5513
5515
  return n(r, e);
5514
5516
  }
5515
- function Uh(t, e = St, n = Qe) {
5517
+ function Uh(t, e = vt, n = Qe) {
5516
5518
  const r = {
5517
- id: ++vt,
5519
+ id: ++bt,
5518
5520
  cmd: "debug",
5519
5521
  ...t
5520
5522
  };
5521
5523
  return n(r, e);
5522
5524
  }
5523
- function Rh(t, e = St, n = Qe) {
5525
+ function Rh(t, e = vt, n = Qe) {
5524
5526
  const r = {
5525
- id: ++vt,
5527
+ id: ++bt,
5526
5528
  cmd: "ignore",
5527
5529
  ...t
5528
5530
  };
5529
5531
  return n(r, e);
5530
5532
  }
5531
- function Qe(t, e = St, n = 0) {
5533
+ function Qe(t, e = vt, n = 0) {
5532
5534
  const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${ys()}`;
5533
5535
  if (B[r])
5534
5536
  p("WS", "Request already in progress. Waiting...", t);
@@ -5637,25 +5639,25 @@ function zn(t = 0) {
5637
5639
  return fe == null && (fe = new Promise((e) => {
5638
5640
  if (t > 40)
5639
5641
  return location.reload();
5640
- Nt++, ii = Date.now(), Z = qn() ? zo() : Fo(), Z ? (p("WS(Debug)", "Authority:", [Rt()]), p("WS", "Connecting to websocket..."), Z.subscribe(
5642
+ Dt++, ii = Date.now(), Z = qn() ? zo() : Fo(), Z ? (p("WS(Debug)", "Authority:", [Ut()]), p("WS", "Connecting to websocket..."), Z.subscribe(
5641
5643
  (n) => {
5642
- ve.getValue() || (p("WS", "Connection established."), e()), ve.next(!0), Nt = 0, gn(), ui(n);
5644
+ ve.getValue() || (p("WS", "Connection established."), e()), ve.next(!0), Dt = 0, gn(), ui(n);
5643
5645
  },
5644
5646
  (n) => {
5645
5647
  Z = void 0, fe = null, sr(), gn(), jo(n);
5646
5648
  },
5647
5649
  () => {
5648
- Z = void 0, fe = null, sr(), p("WS", "Connection closed by browser."), ve.next(!1), Ft();
5650
+ Z = void 0, fe = null, sr(), p("WS", "Connection closed by browser."), ve.next(!1), Nt();
5649
5651
  }
5650
5652
  ), Me && clearInterval(Me), jn = Date.now(), ir(), Me = setInterval(
5651
5653
  () => ir(),
5652
5654
  ti * 1e3
5653
- ), gn(), ni += 1, Pt = setTimeout(() => {
5654
- p("WS", "Unhealthy connection. Reconnecting..."), ve.next(!1), fe = null, Ft();
5655
+ ), gn(), ni += 1, wt = setTimeout(() => {
5656
+ p("WS", "Unhealthy connection. Reconnecting..."), ve.next(!1), fe = null, Nt();
5655
5657
  }, 30 * 1e3)) : (Z ? p(
5656
5658
  "WS",
5657
5659
  `Waiting on auth(${t}). Retrying in ${1e3 * Math.min(10, t + 1)}ms...`,
5658
- [!!X(), !!Rt()],
5660
+ [!!X(), !!Ut()],
5659
5661
  "info"
5660
5662
  ) : p(
5661
5663
  "WS",
@@ -5671,11 +5673,11 @@ function zn(t = 0) {
5671
5673
  })), fe;
5672
5674
  }
5673
5675
  function Fo() {
5674
- if (!Rt() || !X()) return null;
5676
+ if (!Ut() || !X()) return null;
5675
5677
  const t = Es() || location.protocol.indexOf("https") >= 0;
5676
5678
  let e = `ws${t ? "s" : ""}://${xn()}${yn()}${Ur() ? "?fixed_device=true" : ""}`;
5677
5679
  const n = X();
5678
- let r = n === "x-api-key" ? `api-key=${Ht()}` : `bearer_token=${n}`;
5680
+ let r = n === "x-api-key" ? `api-key=${zt()}` : `bearer_token=${n}`;
5679
5681
  return !xs() && !_s() ? (p("WS", "Authenticating through cookie..."), r += `;max-age=120;path=${yn()};`, r += `${t ? "secure;" : ""}samesite=strict`, document.cookie = r, p("WS", "Cookies:", [document.cookie, r])) : (p("WS", "Authenticating through URL query parameter..."), e += `${e.indexOf("?") >= 0 ? "&" : "?"}${r}`), p(
5680
5682
  "WS",
5681
5683
  `Creating websocket connection to ws${t ? "s" : ""}://${xn()}${yn()}`
@@ -5693,29 +5695,29 @@ function Fo() {
5693
5695
  }
5694
5696
  });
5695
5697
  }
5696
- function Ft() {
5698
+ function Nt() {
5697
5699
  ri.next([ni, Date.now() - ii]), Z && oi() && (Z.complete(), Me && (clearInterval(Me), Me = void 0)), p(
5698
5700
  "WS",
5699
5701
  `Reconnecting in ${Math.min(
5700
5702
  5e3,
5701
- Nt * 300 || 1e3
5703
+ Dt * 300 || 1e3
5702
5704
  )}ms...`
5703
5705
  ), oe(
5704
5706
  "reconnect",
5705
5707
  () => zn(),
5706
- Math.min(5e3, (Nt + 1) * 300 || 1e3)
5708
+ Math.min(5e3, (Dt + 1) * 300 || 1e3)
5707
5709
  );
5708
5710
  }
5709
5711
  function ir() {
5710
5712
  if (Date.now() - jn > 4 * ti * 1e3)
5711
- return Ft();
5713
+ return Nt();
5712
5714
  Z?.next("ping");
5713
5715
  }
5714
5716
  function jo(t) {
5715
- ve.next(!1), p("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && Rn(), Rr(), Ft();
5717
+ ve.next(!1), p("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && Rn(), Rr(), Nt();
5716
5718
  }
5717
5719
  function gn() {
5718
- Pt && (clearTimeout(Pt), Pt = void 0);
5720
+ wt && (clearTimeout(wt), wt = void 0);
5719
5721
  }
5720
5722
  function zo() {
5721
5723
  const t = new $e();
@@ -5906,7 +5908,7 @@ class Wo {
5906
5908
  * @param method Name of the method
5907
5909
  * @param args Array of arguments to pass to the method
5908
5910
  */
5909
- execute(e, n, r = St) {
5911
+ execute(e, n, r = vt) {
5910
5912
  return Mo(
5911
5913
  {
5912
5914
  sys: this._system.id,
@@ -5971,7 +5973,7 @@ export {
5971
5973
  Xs as PlaceCluster,
5972
5974
  to as PlaceDomain,
5973
5975
  Br as PlaceDriver,
5974
- Ct as PlaceDriverRole,
5976
+ Mt as PlaceDriverRole,
5975
5977
  no as PlaceEdge,
5976
5978
  re as PlaceErrorCodes,
5977
5979
  ro as PlaceLDAPSource,
@@ -6042,10 +6044,10 @@ export {
6042
6044
  Ma as addUser,
6043
6045
  Ga as addZone,
6044
6046
  x as apiEndpoint,
6045
- Ht as apiKey,
6047
+ zt as apiKey,
6046
6048
  dl as approveSignagePlaylist,
6047
6049
  Mr as authorise,
6048
- Rt as authority,
6050
+ Ut as authority,
6049
6051
  rr as bind,
6050
6052
  ds as cleanObject,
6051
6053
  Zo as cleanupAuth,
@@ -6080,7 +6082,7 @@ export {
6080
6082
  Ps as hasToken,
6081
6083
  xn as host,
6082
6084
  qr as httpRoute,
6083
- qt as humanReadableByteCount,
6085
+ Tt as humanReadableByteCount,
6084
6086
  Rh as ignore,
6085
6087
  Rn as invalidateToken,
6086
6088
  Lu as isDriverCompiled,