@placeos/ts-client 4.7.5 → 4.7.6

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
@@ -58,7 +58,7 @@ function oi(t, e, n, r) {
58
58
  l((r = r.apply(t, e || [])).next());
59
59
  });
60
60
  }
61
- function rr(t, e) {
61
+ function sr(t, e) {
62
62
  var n = { label: 0, sent: function() {
63
63
  if (s[0] & 1) throw s[1];
64
64
  return s[1];
@@ -145,7 +145,7 @@ function Ot(t, e) {
145
145
  }
146
146
  return s;
147
147
  }
148
- function It(t, e, n) {
148
+ function Et(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));
@@ -166,8 +166,8 @@ function ui(t, e, n) {
166
166
  }
167
167
  function u(a, f) {
168
168
  r[a] && (i[a] = function(h) {
169
- return new Promise(function($, b) {
170
- s.push([a, h, $, b]) > 1 || c(a, h);
169
+ return new Promise(function($, v) {
170
+ s.push([a, h, $, v]) > 1 || c(a, h);
171
171
  });
172
172
  }, f && (i[a] = f(i[a])));
173
173
  }
@@ -213,13 +213,13 @@ function ci(t) {
213
213
  function C(t) {
214
214
  return typeof t == "function";
215
215
  }
216
- function ir(t) {
216
+ function $n(t) {
217
217
  var e = function(r) {
218
218
  Error.call(r), r.stack = new Error().stack;
219
219
  }, n = t(e);
220
220
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
221
221
  }
222
- var dn = ir(function(t) {
222
+ var dn = $n(function(t) {
223
223
  return function(n) {
224
224
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
225
225
  ` + n.map(function(r, i) {
@@ -228,7 +228,7 @@ var dn = ir(function(t) {
228
228
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
229
229
  };
230
230
  });
231
- function Pt(t, e) {
231
+ function It(t, e) {
232
232
  if (t) {
233
233
  var n = t.indexOf(e);
234
234
  0 <= n && t.splice(n, 1);
@@ -275,9 +275,9 @@ var Ae = function() {
275
275
  for (var p = Ce(y), a = p.next(); !a.done; a = p.next()) {
276
276
  var f = a.value;
277
277
  try {
278
- Nn(f);
278
+ jn(f);
279
279
  } catch (h) {
280
- s = s ?? [], h instanceof dn ? s = It(It([], Ot(s)), Ot(h.errors)) : s.push(h);
280
+ s = s ?? [], h instanceof dn ? s = Et(Et([], Ot(s)), Ot(h.errors)) : s.push(h);
281
281
  }
282
282
  }
283
283
  } catch (h) {
@@ -297,7 +297,7 @@ var Ae = function() {
297
297
  var n;
298
298
  if (e && e !== this)
299
299
  if (this.closed)
300
- Nn(e);
300
+ jn(e);
301
301
  else {
302
302
  if (e instanceof t) {
303
303
  if (e.closed || e._hasParent(this))
@@ -314,19 +314,19 @@ 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) && Pt(n, e);
317
+ n === e ? this._parentage = null : Array.isArray(n) && It(n, e);
318
318
  }, t.prototype.remove = function(e) {
319
319
  var n = this._finalizers;
320
- n && Pt(n, e), e instanceof t && e._removeParent(this);
320
+ n && It(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;
324
324
  }(), t;
325
- }(), sr = Ae.EMPTY;
326
- function or(t) {
325
+ }(), or = Ae.EMPTY;
326
+ function ur(t) {
327
327
  return t instanceof Ae || t && "closed" in t && C(t.remove) && C(t.add) && C(t.unsubscribe);
328
328
  }
329
- function Nn(t) {
329
+ function jn(t) {
330
330
  C(t) ? t() : t.unsubscribe();
331
331
  }
332
332
  var ai = {
@@ -335,28 +335,28 @@ var ai = {
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, It([t, e], Ot(n)));
338
+ return setTimeout.apply(void 0, Et([t, e], Ot(n)));
339
339
  },
340
340
  clearTimeout: function(t) {
341
341
  return clearTimeout(t);
342
342
  },
343
343
  delegate: void 0
344
344
  };
345
- function ur(t) {
345
+ function cr(t) {
346
346
  li.setTimeout(function() {
347
347
  throw t;
348
348
  });
349
349
  }
350
- function jn() {
350
+ function zn() {
351
351
  }
352
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;
359
- return r.isStopped = !1, n ? (r.destination = n, or(n) && n.add(r)) : r.destination = di, r;
359
+ return r.isStopped = !1, n ? (r.destination = n, ur(n) && n.add(r)) : r.destination = di, r;
360
360
  }
361
361
  return e.create = function(n, r, i) {
362
362
  return new bn(n, r, i);
@@ -425,26 +425,26 @@ var jt = function(t) {
425
425
  } : o = n, s.destination = new hi(o), s;
426
426
  }
427
427
  return e;
428
- }(jt);
428
+ }(Ft);
429
429
  function kt(t) {
430
- ur(t);
430
+ cr(t);
431
431
  }
432
432
  function fi(t) {
433
433
  throw t;
434
434
  }
435
435
  var di = {
436
436
  closed: !0,
437
- next: jn,
437
+ next: zn,
438
438
  error: fi,
439
- complete: jn
440
- }, $n = function() {
439
+ complete: zn
440
+ }, xn = function() {
441
441
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
442
442
  }();
443
- function xn(t) {
443
+ function An(t) {
444
444
  return t;
445
445
  }
446
446
  function pi(t) {
447
- return t.length === 0 ? xn : t.length === 1 ? t[0] : function(n) {
447
+ return t.length === 0 ? An : t.length === 1 ? t[0] : function(n) {
448
448
  return t.reduce(function(r, i) {
449
449
  return i(r);
450
450
  }, n);
@@ -471,7 +471,7 @@ var D = function() {
471
471
  }
472
472
  }, t.prototype.forEach = function(e, n) {
473
473
  var r = this;
474
- return n = Fn(n), new n(function(i, s) {
474
+ return n = Hn(n), new n(function(i, s) {
475
475
  var o = new bn({
476
476
  next: function(u) {
477
477
  try {
@@ -488,7 +488,7 @@ var D = function() {
488
488
  }, t.prototype._subscribe = function(e) {
489
489
  var n;
490
490
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e);
491
- }, t.prototype[$n] = function() {
491
+ }, t.prototype[xn] = function() {
492
492
  return this;
493
493
  }, t.prototype.pipe = function() {
494
494
  for (var e = [], n = 0; n < arguments.length; n++)
@@ -496,7 +496,7 @@ var D = function() {
496
496
  return pi(e)(this);
497
497
  }, t.prototype.toPromise = function(e) {
498
498
  var n = this;
499
- return e = Fn(e), new e(function(r, i) {
499
+ return e = Hn(e), new e(function(r, i) {
500
500
  var s;
501
501
  n.subscribe(function(o) {
502
502
  return s = o;
@@ -510,7 +510,7 @@ var D = function() {
510
510
  return new t(e);
511
511
  }, t;
512
512
  }();
513
- function Fn(t) {
513
+ function Hn(t) {
514
514
  var e;
515
515
  return (e = t ?? ai.Promise) !== null && e !== void 0 ? e : Promise;
516
516
  }
@@ -518,7 +518,7 @@ function _i(t) {
518
518
  return t && C(t.next) && C(t.error) && C(t.complete);
519
519
  }
520
520
  function mi(t) {
521
- return t && t instanceof jt || _i(t) && or(t);
521
+ return t && t instanceof Ft || _i(t) && ur(t);
522
522
  }
523
523
  function yi(t) {
524
524
  return C(t?.lift);
@@ -574,7 +574,7 @@ var gi = 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), bi = ir(function(t) {
577
+ }(Ft), bi = $n(function(t) {
578
578
  return function() {
579
579
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
580
580
  };
@@ -645,8 +645,8 @@ var gi = function(t) {
645
645
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
646
646
  }, e.prototype._innerSubscribe = function(n) {
647
647
  var r = this, i = this, s = i.hasError, o = i.isStopped, u = i.observers;
648
- return s || o ? sr : (this.currentObservers = null, u.push(n), new Ae(function() {
649
- r.currentObservers = null, Pt(u, n);
648
+ return s || o ? or : (this.currentObservers = null, u.push(n), new Ae(function() {
649
+ r.currentObservers = null, It(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;
@@ -674,7 +674,7 @@ var gi = function(t) {
674
674
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
675
675
  }, e.prototype._subscribe = function(n) {
676
676
  var r, i;
677
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : sr;
677
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : or;
678
678
  }, e;
679
679
  }($e), _e = function(t) {
680
680
  te(e, t);
@@ -699,15 +699,15 @@ var gi = function(t) {
699
699
  }, e.prototype.next = function(n) {
700
700
  t.prototype.next.call(this, this._value = n);
701
701
  }, e;
702
- }($e), An = {
702
+ }($e), wn = {
703
703
  now: function() {
704
- return (An.delegate || Date).now();
704
+ return (wn.delegate || Date).now();
705
705
  },
706
706
  delegate: void 0
707
707
  }, pn = function(t) {
708
708
  te(e, t);
709
709
  function e(n, r, i) {
710
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = An);
710
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = wn);
711
711
  var s = t.call(this) || this;
712
712
  return s._bufferSize = n, s._windowTime = r, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = r === 1 / 0, s._bufferSize = Math.max(1, n), s._windowTime = Math.max(1, r), s;
713
713
  }
@@ -735,11 +735,11 @@ var gi = function(t) {
735
735
  return e.prototype.schedule = function(n, r) {
736
736
  return this;
737
737
  }, e;
738
- }(Ae), zn = {
738
+ }(Ae), Wn = {
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, It([t, e], Ot(n)));
742
+ return setInterval.apply(void 0, Et([t, e], Ot(n)));
743
743
  },
744
744
  clearInterval: function(t) {
745
745
  return clearInterval(t);
@@ -759,11 +759,11 @@ var gi = function(t) {
759
759
  var s = this.id, o = this.scheduler;
760
760
  return s != null && (this.id = this.recycleAsyncId(o, s, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(o, this.id, r), this;
761
761
  }, e.prototype.requestAsyncId = function(n, r, i) {
762
- return i === void 0 && (i = 0), zn.setInterval(n.flush.bind(n, this), i);
762
+ return i === void 0 && (i = 0), Wn.setInterval(n.flush.bind(n, this), i);
763
763
  }, e.prototype.recycleAsyncId = function(n, r, i) {
764
764
  if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
765
765
  return r;
766
- r != null && zn.clearInterval(r);
766
+ r != null && Wn.clearInterval(r);
767
767
  }, e.prototype.execute = function(n, r) {
768
768
  if (this.closed)
769
769
  return new Error("executing a cancelled action");
@@ -784,20 +784,20 @@ var gi = 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, Pt(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, It(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
- }(vi), Hn = function() {
790
+ }(vi), Ln = function() {
791
791
  function t(e, n) {
792
792
  n === void 0 && (n = t.now), this.schedulerActionCtor = e, this.now = n;
793
793
  }
794
794
  return t.prototype.schedule = function(e, n, r) {
795
795
  return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(r, n);
796
- }, t.now = An.now, t;
796
+ }, t.now = wn.now, t;
797
797
  }(), ki = function(t) {
798
798
  te(e, t);
799
799
  function e(n, r) {
800
- r === void 0 && (r = Hn.now);
800
+ r === void 0 && (r = Ln.now);
801
801
  var i = t.call(this, n, r) || this;
802
802
  return i.actions = [], i._active = !1, i;
803
803
  }
@@ -819,38 +819,38 @@ var gi = function(t) {
819
819
  throw i;
820
820
  }
821
821
  }, e;
822
- }(Hn), cr = new ki(Si), $i = cr, xi = new D(function(t) {
822
+ }(Ln), ar = new ki(Si), $i = ar, xi = new D(function(t) {
823
823
  return t.complete();
824
824
  });
825
825
  function Ai(t) {
826
826
  return t && C(t.schedule);
827
827
  }
828
- var ar = function(t) {
828
+ var lr = function(t) {
829
829
  return t && typeof t.length == "number" && typeof t != "function";
830
830
  };
831
- function lr(t) {
832
- return C(t?.then);
833
- }
834
831
  function hr(t) {
835
- return C(t[$n]);
832
+ return C(t?.then);
836
833
  }
837
834
  function fr(t) {
838
- return Symbol.asyncIterator && C(t?.[Symbol.asyncIterator]);
835
+ return C(t[xn]);
839
836
  }
840
837
  function dr(t) {
838
+ return Symbol.asyncIterator && C(t?.[Symbol.asyncIterator]);
839
+ }
840
+ function pr(t) {
841
841
  return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
842
842
  }
843
843
  function wi() {
844
844
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
845
845
  }
846
- var pr = wi();
847
- function _r(t) {
848
- return C(t?.[pr]);
849
- }
846
+ var _r = wi();
850
847
  function mr(t) {
848
+ return C(t?.[_r]);
849
+ }
850
+ function yr(t) {
851
851
  return ui(this, arguments, function() {
852
852
  var n, r, i, s;
853
- return rr(this, function(o) {
853
+ return sr(this, function(o) {
854
854
  switch (o.label) {
855
855
  case 0:
856
856
  n = t.getReader(), o.label = 1;
@@ -878,53 +878,53 @@ function mr(t) {
878
878
  });
879
879
  });
880
880
  }
881
- function yr(t) {
881
+ function gr(t) {
882
882
  return C(t?.getReader);
883
883
  }
884
884
  function ce(t) {
885
885
  if (t instanceof D)
886
886
  return t;
887
887
  if (t != null) {
888
- if (hr(t))
888
+ if (fr(t))
889
889
  return Oi(t);
890
- if (ar(t))
891
- return Ii(t);
892
890
  if (lr(t))
891
+ return Ei(t);
892
+ if (hr(t))
893
+ return Ii(t);
894
+ if (dr(t))
895
+ return br(t);
896
+ if (mr(t))
893
897
  return Pi(t);
894
- if (fr(t))
895
- return gr(t);
896
- if (_r(t))
898
+ if (gr(t))
897
899
  return Ti(t);
898
- if (yr(t))
899
- return Ei(t);
900
900
  }
901
- throw dr(t);
901
+ throw pr(t);
902
902
  }
903
903
  function Oi(t) {
904
904
  return new D(function(e) {
905
- var n = t[$n]();
905
+ var n = t[xn]();
906
906
  if (C(n.subscribe))
907
907
  return n.subscribe(e);
908
908
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
909
909
  });
910
910
  }
911
- function Ii(t) {
911
+ function Ei(t) {
912
912
  return new D(function(e) {
913
913
  for (var n = 0; n < t.length && !e.closed; n++)
914
914
  e.next(t[n]);
915
915
  e.complete();
916
916
  });
917
917
  }
918
- function Pi(t) {
918
+ function Ii(t) {
919
919
  return new D(function(e) {
920
920
  t.then(function(n) {
921
921
  e.closed || (e.next(n), e.complete());
922
922
  }, function(n) {
923
923
  return e.error(n);
924
- }).then(null, ur);
924
+ }).then(null, cr);
925
925
  });
926
926
  }
927
- function Ti(t) {
927
+ function Pi(t) {
928
928
  return new D(function(e) {
929
929
  var n, r;
930
930
  try {
@@ -945,21 +945,21 @@ function Ti(t) {
945
945
  e.complete();
946
946
  });
947
947
  }
948
- function gr(t) {
948
+ function br(t) {
949
949
  return new D(function(e) {
950
950
  qi(t, e).catch(function(n) {
951
951
  return e.error(n);
952
952
  });
953
953
  });
954
954
  }
955
- function Ei(t) {
956
- return gr(mr(t));
955
+ function Ti(t) {
956
+ return br(yr(t));
957
957
  }
958
958
  function qi(t, e) {
959
959
  var n, r, i, s;
960
960
  return oi(this, void 0, void 0, function() {
961
961
  var o, u;
962
- return rr(this, function(c) {
962
+ return sr(this, function(c) {
963
963
  switch (c.label) {
964
964
  case 0:
965
965
  c.trys.push([0, 5, 6, 11]), n = ci(t), c.label = 1;
@@ -1001,7 +1001,7 @@ function Se(t, e, n, r, i) {
1001
1001
  if (t.add(s), !i)
1002
1002
  return s;
1003
1003
  }
1004
- function br(t, e) {
1004
+ function vr(t, e) {
1005
1005
  return e === void 0 && (e = 0), ue(function(n, r) {
1006
1006
  n.subscribe(ee(r, function(i) {
1007
1007
  return Se(r, t, function() {
@@ -1018,7 +1018,7 @@ function br(t, e) {
1018
1018
  }));
1019
1019
  });
1020
1020
  }
1021
- function vr(t, e) {
1021
+ function Sr(t, e) {
1022
1022
  return e === void 0 && (e = 0), ue(function(n, r) {
1023
1023
  r.add(t.schedule(function() {
1024
1024
  return n.subscribe(r);
@@ -1026,10 +1026,10 @@ function vr(t, e) {
1026
1026
  });
1027
1027
  }
1028
1028
  function Ui(t, e) {
1029
- return ce(t).pipe(vr(e), br(e));
1029
+ return ce(t).pipe(Sr(e), vr(e));
1030
1030
  }
1031
1031
  function Ri(t, e) {
1032
- return ce(t).pipe(vr(e), br(e));
1032
+ return ce(t).pipe(Sr(e), vr(e));
1033
1033
  }
1034
1034
  function Mi(t, e) {
1035
1035
  return new D(function(n) {
@@ -1043,7 +1043,7 @@ function Ci(t, e) {
1043
1043
  return new D(function(n) {
1044
1044
  var r;
1045
1045
  return Se(n, e, function() {
1046
- r = t[pr](), Se(n, e, function() {
1046
+ r = t[_r](), Se(n, e, function() {
1047
1047
  var i, s, o;
1048
1048
  try {
1049
1049
  i = r.next(), s = i.value, o = i.done;
@@ -1058,7 +1058,7 @@ function Ci(t, e) {
1058
1058
  };
1059
1059
  });
1060
1060
  }
1061
- function Sr(t, e) {
1061
+ function kr(t, e) {
1062
1062
  if (!t)
1063
1063
  throw new Error("Iterable cannot be null");
1064
1064
  return new D(function(n) {
@@ -1073,29 +1073,29 @@ function Sr(t, e) {
1073
1073
  });
1074
1074
  }
1075
1075
  function Di(t, e) {
1076
- return Sr(mr(t), e);
1076
+ return kr(yr(t), e);
1077
1077
  }
1078
1078
  function Ni(t, e) {
1079
1079
  if (t != null) {
1080
- if (hr(t))
1080
+ if (fr(t))
1081
1081
  return Ui(t, e);
1082
- if (ar(t))
1083
- return Mi(t, e);
1084
1082
  if (lr(t))
1083
+ return Mi(t, e);
1084
+ if (hr(t))
1085
1085
  return Ri(t, e);
1086
- if (fr(t))
1087
- return Sr(t, e);
1088
- if (_r(t))
1086
+ if (dr(t))
1087
+ return kr(t, e);
1088
+ if (mr(t))
1089
1089
  return Ci(t, e);
1090
- if (yr(t))
1090
+ if (gr(t))
1091
1091
  return Di(t, e);
1092
1092
  }
1093
- throw dr(t);
1093
+ throw pr(t);
1094
1094
  }
1095
- function ji(t, e) {
1095
+ function Fi(t, e) {
1096
1096
  return e ? Ni(t, e) : ce(t);
1097
1097
  }
1098
- function kr(t, e) {
1098
+ function $r(t, e) {
1099
1099
  var n = C(t) ? t : function() {
1100
1100
  return t;
1101
1101
  }, r = function(i) {
@@ -1103,10 +1103,29 @@ function kr(t, e) {
1103
1103
  };
1104
1104
  return new D(r);
1105
1105
  }
1106
- function Fi(t) {
1106
+ var ji = $n(function(t) {
1107
+ return function() {
1108
+ t(this), this.name = "EmptyError", this.message = "no elements in sequence";
1109
+ };
1110
+ });
1111
+ function zi(t, e) {
1112
+ return new Promise(function(n, r) {
1113
+ var i = !1, s;
1114
+ t.subscribe({
1115
+ next: function(o) {
1116
+ s = o, i = !0;
1117
+ },
1118
+ error: r,
1119
+ complete: function() {
1120
+ i ? n(s) : r(new ji());
1121
+ }
1122
+ });
1123
+ });
1124
+ }
1125
+ function Hi(t) {
1107
1126
  return t instanceof Date && !isNaN(t);
1108
1127
  }
1109
- function g(t, e) {
1128
+ function b(t, e) {
1110
1129
  return ue(function(n, r) {
1111
1130
  var i = 0;
1112
1131
  n.subscribe(ee(r, function(s) {
@@ -1114,7 +1133,7 @@ function g(t, e) {
1114
1133
  }));
1115
1134
  });
1116
1135
  }
1117
- function zi(t, e, n, r, i, s, o, u) {
1136
+ function Wi(t, e, n, r, i, s, o, u) {
1118
1137
  var c = [], l = 0, _ = 0, y = !1, p = function() {
1119
1138
  y && !c.length && !l && e.complete();
1120
1139
  }, a = function(h) {
@@ -1122,19 +1141,19 @@ function zi(t, e, n, r, i, s, o, u) {
1122
1141
  }, f = function(h) {
1123
1142
  l++;
1124
1143
  var $ = !1;
1125
- ce(n(h, _++)).subscribe(ee(e, function(b) {
1126
- e.next(b);
1144
+ ce(n(h, _++)).subscribe(ee(e, function(v) {
1145
+ e.next(v);
1127
1146
  }, function() {
1128
1147
  $ = !0;
1129
1148
  }, void 0, function() {
1130
1149
  if ($)
1131
1150
  try {
1132
1151
  l--;
1133
- for (var b = function() {
1152
+ for (var v = function() {
1134
1153
  var A = c.shift();
1135
1154
  o || f(A);
1136
1155
  }; c.length && l < r; )
1137
- b();
1156
+ v();
1138
1157
  p();
1139
1158
  } catch (A) {
1140
1159
  e.error(A);
@@ -1146,20 +1165,20 @@ function zi(t, e, n, r, i, s, o, u) {
1146
1165
  })), function() {
1147
1166
  };
1148
1167
  }
1149
- function $r(t, e, n) {
1150
- return n === void 0 && (n = 1 / 0), C(e) ? $r(function(r, i) {
1151
- return g(function(s, o) {
1168
+ function xr(t, e, n) {
1169
+ return n === void 0 && (n = 1 / 0), C(e) ? xr(function(r, i) {
1170
+ return b(function(s, o) {
1152
1171
  return e(r, s, i, o);
1153
1172
  })(ce(t(r, i)));
1154
1173
  }, n) : (typeof e == "number" && (n = e), ue(function(r, i) {
1155
- return zi(r, i, t, n);
1174
+ return Wi(r, i, t, n);
1156
1175
  }));
1157
1176
  }
1158
- function xr(t, e, n) {
1177
+ function On(t, e, n) {
1159
1178
  t === void 0 && (t = 0), n === void 0 && (n = $i);
1160
1179
  var r = -1;
1161
1180
  return e != null && (Ai(e) ? n = e : r = e), new D(function(i) {
1162
- var s = Fi(t) ? +t - n.now() : t;
1181
+ var s = Hi(t) ? +t - n.now() : t;
1163
1182
  s < 0 && (s = 0);
1164
1183
  var o = 0;
1165
1184
  return n.schedule(function() {
@@ -1167,7 +1186,7 @@ function xr(t, e, n) {
1167
1186
  }, s);
1168
1187
  });
1169
1188
  }
1170
- function Hi(t, e) {
1189
+ function Li(t, e) {
1171
1190
  return ue(function(n, r) {
1172
1191
  var i = 0;
1173
1192
  n.subscribe(ee(r, function(s) {
@@ -1185,25 +1204,25 @@ function Ar(t) {
1185
1204
  }));
1186
1205
  });
1187
1206
  }
1188
- function Wi(t) {
1189
- return g(function() {
1207
+ function Bi(t) {
1208
+ return b(function() {
1190
1209
  return t;
1191
1210
  });
1192
1211
  }
1193
- function Li(t, e) {
1194
- return $r(function(n, r) {
1195
- return ce(t(n, r)).pipe(Ar(1), Wi(n));
1212
+ function Vi(t, e) {
1213
+ return xr(function(n, r) {
1214
+ return ce(t(n, r)).pipe(Ar(1), Bi(n));
1196
1215
  });
1197
1216
  }
1198
- function Bi(t, e) {
1199
- e === void 0 && (e = cr);
1200
- var n = xr(t, e);
1201
- return Li(function() {
1217
+ function Qi(t, e) {
1218
+ e === void 0 && (e = ar);
1219
+ var n = On(t, e);
1220
+ return Vi(function() {
1202
1221
  return n;
1203
1222
  });
1204
1223
  }
1205
- function Vi(t, e) {
1206
- return e === void 0 && (e = xn), t = t ?? Qi, ue(function(n, r) {
1224
+ function Yi(t, e) {
1225
+ return e === void 0 && (e = An), t = t ?? Gi, ue(function(n, r) {
1207
1226
  var i, s = !0;
1208
1227
  n.subscribe(ee(r, function(o) {
1209
1228
  var u = e(o);
@@ -1211,17 +1230,17 @@ function Vi(t, e) {
1211
1230
  }));
1212
1231
  });
1213
1232
  }
1214
- function Qi(t, e) {
1233
+ function Gi(t, e) {
1215
1234
  return t === e;
1216
1235
  }
1217
- function Yi(t) {
1236
+ function Ji(t) {
1218
1237
  t === void 0 && (t = 1 / 0);
1219
1238
  var e;
1220
1239
  t && typeof t == "object" ? e = t : e = {
1221
1240
  count: t
1222
1241
  };
1223
1242
  var n = e.count, r = n === void 0 ? 1 / 0 : n, i = e.delay, s = e.resetOnSuccess, o = s === void 0 ? !1 : s;
1224
- return r <= 0 ? xn : ue(function(u, c) {
1243
+ return r <= 0 ? An : ue(function(u, c) {
1225
1244
  var l = 0, _, y = function() {
1226
1245
  var p = !1;
1227
1246
  _ = u.subscribe(ee(c, function(a) {
@@ -1232,7 +1251,7 @@ function Yi(t) {
1232
1251
  _ ? (_.unsubscribe(), _ = null, y()) : p = !0;
1233
1252
  };
1234
1253
  if (i != null) {
1235
- var h = typeof i == "number" ? xr(i) : ce(i(a, l)), $ = ee(c, function() {
1254
+ var h = typeof i == "number" ? On(i) : ce(i(a, l)), $ = ee(c, function() {
1236
1255
  $.unsubscribe(), f();
1237
1256
  }, function() {
1238
1257
  c.complete();
@@ -1247,7 +1266,7 @@ function Yi(t) {
1247
1266
  y();
1248
1267
  });
1249
1268
  }
1250
- function Wn(t, e) {
1269
+ function Bn(t, e) {
1251
1270
  return ue(function(n, r) {
1252
1271
  var i = null, s = 0, o = !1, u = function() {
1253
1272
  return o && !i && r.complete();
@@ -1265,7 +1284,7 @@ function Wn(t, e) {
1265
1284
  }));
1266
1285
  });
1267
1286
  }
1268
- function wn(t, e) {
1287
+ function En(t, e) {
1269
1288
  e === void 0 && (e = {});
1270
1289
  var n = e.selector, r = si(e, ["selector"]);
1271
1290
  return new D(function(i) {
@@ -1358,7 +1377,7 @@ const se = [
1358
1377
  "9",
1359
1378
  "+",
1360
1379
  "/"
1361
- ], Ln = [
1380
+ ], Vn = [
1362
1381
  255,
1363
1382
  255,
1364
1383
  255,
@@ -1484,9 +1503,9 @@ const se = [
1484
1503
  51
1485
1504
  ];
1486
1505
  function $t(t) {
1487
- if (t >= Ln.length)
1506
+ if (t >= Vn.length)
1488
1507
  throw new Error("Unable to parse base64 string.");
1489
- const e = Ln[t];
1508
+ const e = Vn[t];
1490
1509
  if (e === 255)
1491
1510
  throw new Error("Unable to parse base64 string.");
1492
1511
  return e;
@@ -1497,7 +1516,7 @@ function wr(t) {
1497
1516
  e += se[t[n - 2] >> 2], e += se[(t[n - 2] & 3) << 4 | t[n - 1] >> 4], e += se[(t[n - 1] & 15) << 2 | t[n] >> 6], e += se[t[n] & 63];
1498
1517
  return n === r + 1 && (e += se[t[n - 2] >> 2], e += se[(t[n - 2] & 3) << 4], e += "=="), n === r && (e += se[t[n - 2] >> 2], e += se[(t[n - 2] & 3) << 4 | t[n - 1] >> 4], e += se[(t[n - 1] & 15) << 2], e += "="), e;
1499
1518
  }
1500
- function Gi(t) {
1519
+ function Ki(t) {
1501
1520
  if (t.length % 4 !== 0)
1502
1521
  throw new Error("Unable to parse base64 string.");
1503
1522
  const e = t.indexOf("=");
@@ -1508,12 +1527,12 @@ function Gi(t) {
1508
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;
1509
1528
  return i.subarray(0, i.length - n);
1510
1529
  }
1511
- function Ji(t, e = new TextEncoder()) {
1530
+ function Zi(t, e = new TextEncoder()) {
1512
1531
  return wr(e.encode(t));
1513
1532
  }
1514
- var At = { exports: {} }, Ki = At.exports, Bn;
1515
- function Zi() {
1516
- return Bn || (Bn = 1, function(t) {
1533
+ var At = { exports: {} }, Xi = At.exports, Qn;
1534
+ function es() {
1535
+ return Qn || (Qn = 1, function(t) {
1517
1536
  (function(e, n) {
1518
1537
  var r = {};
1519
1538
  n(r);
@@ -1521,7 +1540,7 @@ function Zi() {
1521
1540
  for (var s in r)
1522
1541
  i[s] = r[s];
1523
1542
  t.exports = i;
1524
- })(Ki, function(e) {
1543
+ })(Xi, function(e) {
1525
1544
  e.__esModule = !0, e.digestLength = 32, e.blockSize = 64;
1526
1545
  var n = new Uint32Array([
1527
1546
  1116352408,
@@ -1590,14 +1609,14 @@ function Zi() {
1590
1609
  3329325298
1591
1610
  ]);
1592
1611
  function r(p, a, f, h, $) {
1593
- for (var b, A, w, Q, j, U, ne, F, H, z, Ye, Ge, St; $ >= 64; ) {
1594
- for (b = a[0], A = a[1], w = a[2], Q = a[3], j = a[4], U = a[5], ne = a[6], F = a[7], z = 0; z < 16; z++)
1612
+ for (var v, A, w, Q, F, U, ne, j, H, z, Ye, Ge, St; $ >= 64; ) {
1613
+ for (v = a[0], A = a[1], w = a[2], Q = a[3], F = a[4], U = a[5], ne = a[6], j = a[7], z = 0; z < 16; z++)
1595
1614
  Ye = h + z * 4, p[z] = (f[Ye] & 255) << 24 | (f[Ye + 1] & 255) << 16 | (f[Ye + 2] & 255) << 8 | f[Ye + 3] & 255;
1596
1615
  for (z = 16; z < 64; z++)
1597
1616
  H = p[z - 2], Ge = (H >>> 17 | H << 15) ^ (H >>> 19 | H << 13) ^ H >>> 10, H = p[z - 15], St = (H >>> 7 | H << 25) ^ (H >>> 18 | H << 14) ^ H >>> 3, p[z] = (Ge + p[z - 7] | 0) + (St + p[z - 16] | 0);
1598
1617
  for (z = 0; z < 64; z++)
1599
- Ge = (((j >>> 6 | j << 26) ^ (j >>> 11 | j << 21) ^ (j >>> 25 | j << 7)) + (j & U ^ ~j & ne) | 0) + (F + (n[z] + p[z] | 0) | 0) | 0, St = ((b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10)) + (b & A ^ b & w ^ A & w) | 0, F = ne, ne = U, U = j, j = Q + Ge | 0, Q = w, w = A, A = b, b = Ge + St | 0;
1600
- a[0] += b, a[1] += A, a[2] += w, a[3] += Q, a[4] += j, a[5] += U, a[6] += ne, a[7] += F, h += 64, $ -= 64;
1618
+ Ge = (((F >>> 6 | F << 26) ^ (F >>> 11 | F << 21) ^ (F >>> 25 | F << 7)) + (F & U ^ ~F & ne) | 0) + (j + (n[z] + p[z] | 0) | 0) | 0, St = ((v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10)) + (v & A ^ v & w ^ A & w) | 0, j = ne, ne = U, U = F, F = Q + Ge | 0, Q = w, w = A, A = v, v = Ge + St | 0;
1619
+ a[0] += v, a[1] += A, a[2] += w, a[3] += Q, a[4] += F, a[5] += U, a[6] += ne, a[7] += j, h += 64, $ -= 64;
1601
1620
  }
1602
1621
  return h;
1603
1622
  }
@@ -1629,11 +1648,11 @@ function Zi() {
1629
1648
  return this;
1630
1649
  }, p.prototype.finish = function(a) {
1631
1650
  if (!this.finished) {
1632
- var f = this.bytesHashed, h = this.bufferLength, $ = f / 536870912 | 0, b = f << 3, A = f % 64 < 56 ? 64 : 128;
1651
+ var f = this.bytesHashed, h = this.bufferLength, $ = f / 536870912 | 0, v = f << 3, A = f % 64 < 56 ? 64 : 128;
1633
1652
  this.buffer[h] = 128;
1634
1653
  for (var w = h + 1; w < A - 8; w++)
1635
1654
  this.buffer[w] = 0;
1636
- this.buffer[A - 8] = $ >>> 24 & 255, this.buffer[A - 7] = $ >>> 16 & 255, this.buffer[A - 6] = $ >>> 8 & 255, this.buffer[A - 5] = $ >>> 0 & 255, this.buffer[A - 4] = b >>> 24 & 255, this.buffer[A - 3] = b >>> 16 & 255, this.buffer[A - 2] = b >>> 8 & 255, this.buffer[A - 1] = b >>> 0 & 255, r(this.temp, this.state, this.buffer, 0, A), this.finished = !0;
1655
+ this.buffer[A - 8] = $ >>> 24 & 255, this.buffer[A - 7] = $ >>> 16 & 255, this.buffer[A - 6] = $ >>> 8 & 255, this.buffer[A - 5] = $ >>> 0 & 255, this.buffer[A - 4] = v >>> 24 & 255, this.buffer[A - 3] = v >>> 16 & 255, this.buffer[A - 2] = v >>> 8 & 255, this.buffer[A - 1] = v >>> 0 & 255, r(this.temp, this.state, this.buffer, 0, A), this.finished = !0;
1637
1656
  }
1638
1657
  for (var w = 0; w < 8; w++)
1639
1658
  a[w * 4 + 0] = this.state[w] >>> 24 & 255, a[w * 4 + 1] = this.state[w] >>> 16 & 255, a[w * 4 + 2] = this.state[w] >>> 8 & 255, a[w * 4 + 3] = this.state[w] >>> 0 & 255;
@@ -1708,37 +1727,37 @@ function Zi() {
1708
1727
  var l = new Uint8Array(e.digestLength);
1709
1728
  function _(p, a, f, h) {
1710
1729
  a === void 0 && (a = l), h === void 0 && (h = 32);
1711
- for (var $ = new Uint8Array([1]), b = u(a, p), A = new s(b), w = new Uint8Array(A.digestLength), Q = w.length, j = new Uint8Array(h), U = 0; U < h; U++)
1712
- Q === w.length && (c(w, A, f, $), Q = 0), j[U] = w[Q++];
1713
- return A.clean(), w.fill(0), $.fill(0), j;
1730
+ for (var $ = new Uint8Array([1]), v = u(a, p), A = new s(v), w = new Uint8Array(A.digestLength), Q = w.length, F = new Uint8Array(h), U = 0; U < h; U++)
1731
+ Q === w.length && (c(w, A, f, $), Q = 0), F[U] = w[Q++];
1732
+ return A.clean(), w.fill(0), $.fill(0), F;
1714
1733
  }
1715
1734
  e.hkdf = _;
1716
1735
  function y(p, a, f, h) {
1717
- for (var $ = new s(p), b = $.digestLength, A = new Uint8Array(4), w = new Uint8Array(b), Q = new Uint8Array(b), j = new Uint8Array(h), U = 0; U * b < h; U++) {
1736
+ for (var $ = new s(p), v = $.digestLength, A = new Uint8Array(4), w = new Uint8Array(v), Q = new Uint8Array(v), F = new Uint8Array(h), U = 0; U * v < h; U++) {
1718
1737
  var ne = U + 1;
1719
1738
  A[0] = ne >>> 24 & 255, A[1] = ne >>> 16 & 255, A[2] = ne >>> 8 & 255, A[3] = ne >>> 0 & 255, $.reset(), $.update(a), $.update(A), $.finish(Q);
1720
- for (var F = 0; F < b; F++)
1721
- w[F] = Q[F];
1722
- for (var F = 2; F <= f; F++) {
1739
+ for (var j = 0; j < v; j++)
1740
+ w[j] = Q[j];
1741
+ for (var j = 2; j <= f; j++) {
1723
1742
  $.reset(), $.update(Q).finish(Q);
1724
- for (var H = 0; H < b; H++)
1743
+ for (var H = 0; H < v; H++)
1725
1744
  w[H] ^= Q[H];
1726
1745
  }
1727
- for (var F = 0; F < b && U * b + F < h; F++)
1728
- j[U * b + F] = w[F];
1746
+ for (var j = 0; j < v && U * v + j < h; j++)
1747
+ F[U * v + j] = w[j];
1729
1748
  }
1730
- for (var U = 0; U < b; U++)
1749
+ for (var U = 0; U < v; U++)
1731
1750
  w[U] = Q[U] = 0;
1732
1751
  for (var U = 0; U < 4; U++)
1733
1752
  A[U] = 0;
1734
- return $.clean(), j;
1753
+ return $.clean(), F;
1735
1754
  }
1736
1755
  e.pbkdf2 = y;
1737
1756
  });
1738
1757
  }(At)), At.exports;
1739
1758
  }
1740
- var Xi = Zi();
1741
- const es = new Int32Array(4);
1759
+ var ts = es();
1760
+ const ns = new Int32Array(4);
1742
1761
  class Y {
1743
1762
  static hashStr(e, n = !1) {
1744
1763
  return this.onePassHasher.start().appendStr(e).end(n);
@@ -1896,7 +1915,7 @@ class Y {
1896
1915
  i[14] = o;
1897
1916
  else {
1898
1917
  const u = o.toString(16).match(/(.*?)(.{0,8})$/);
1899
- if (u === null) return e ? es : "";
1918
+ if (u === null) return e ? ns : "";
1900
1919
  const c = parseInt(u[2], 16), l = parseInt(u[1], 16) || 0;
1901
1920
  i[14] = c, i[15] = l;
1902
1921
  }
@@ -1905,17 +1924,17 @@ class Y {
1905
1924
  }
1906
1925
  if (Y.hashStr("hello") !== "5d41402abc4b2a76b9719d911017c592")
1907
1926
  throw new Error("Md5 self test failed.");
1908
- const ts = 36e5, Vn = Symbol.for("constructDateFrom");
1909
- function Tt(t, e) {
1910
- return typeof t == "function" ? t(e) : t && typeof t == "object" && Vn in t ? t[Vn](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
1927
+ const rs = 36e5, Yn = Symbol.for("constructDateFrom");
1928
+ function Pt(t, e) {
1929
+ return typeof t == "function" ? t(e) : t && typeof t == "object" && Yn in t ? t[Yn](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
1911
1930
  }
1912
1931
  function Xe(t, e) {
1913
- return Tt(t, t);
1932
+ return Pt(t, t);
1914
1933
  }
1915
- function ns(t, e, n) {
1934
+ function is(t, e, n) {
1916
1935
  const r = Xe(t);
1917
- if (isNaN(e)) return Tt(t, NaN);
1918
- const i = r.getDate(), s = Tt(t, r.getTime());
1936
+ if (isNaN(e)) return Pt(t, NaN);
1937
+ const i = r.getDate(), s = Pt(t, r.getTime());
1919
1938
  s.setMonth(r.getMonth() + e + 1, 0);
1920
1939
  const o = s.getDate();
1921
1940
  return i >= o ? s : (r.setFullYear(
@@ -1925,37 +1944,37 @@ function ns(t, e, n) {
1925
1944
  ), r);
1926
1945
  }
1927
1946
  function Or(t, e, n) {
1928
- return Tt(t, +Xe(t) + e);
1947
+ return Pt(t, +Xe(t) + e);
1929
1948
  }
1930
- function rs(t, e, n) {
1931
- return Or(t, e * ts);
1949
+ function ss(t, e, n) {
1950
+ return Or(t, e * rs);
1932
1951
  }
1933
- function is(t, e, n) {
1952
+ function os(t, e, n) {
1934
1953
  return Or(t, e * 1e3);
1935
1954
  }
1936
- function ss(t, e, n) {
1937
- return ns(t, e * 12);
1955
+ function us(t, e, n) {
1956
+ return is(t, e * 12);
1938
1957
  }
1939
- function Qn(t) {
1958
+ function Gn(t) {
1940
1959
  return Math.trunc(+Xe(t) / 1e3);
1941
1960
  }
1942
- function os(t, e) {
1961
+ function cs(t, e) {
1943
1962
  return +Xe(t) < +Xe(e);
1944
1963
  }
1945
1964
  function d(t, e, n, r = "debug", i) {
1946
1965
  if (window.debug) {
1947
1966
  const o = ["color: #0288D1", `color:${i || "#009688"}`, "color: default"];
1948
- n ? Yn() ? console[r](
1967
+ n ? Jn() ? console[r](
1949
1968
  `%c[PlaceOS]%c[${t}] %c${e}`,
1950
1969
  ...o,
1951
1970
  n
1952
- ) : console[r](`[PlaceOS][${t}] ${e}`, n) : Yn() ? console[r](`%c[PlaceOS]%c[${t}] %c${e}`, ...o) : console[r](`[PlaceOS][${t}] ${e}`);
1971
+ ) : console[r](`[PlaceOS][${t}] ${e}`, n) : Jn() ? console[r](`%c[PlaceOS]%c[${t}] %c${e}`, ...o) : console[r](`[PlaceOS][${t}] ${e}`);
1953
1972
  }
1954
1973
  }
1955
- function Yn() {
1974
+ function Jn() {
1956
1975
  return !(document.documentMode || /Edge/.test(navigator.userAgent));
1957
1976
  }
1958
- function Ir() {
1977
+ function Er() {
1959
1978
  const t = window.location?.hash ? window.location?.hash.slice(1) : window.location?.href.split("#")[1] || "";
1960
1979
  let e = window.location?.search ? window.location?.search.slice(1) : window.location?.href.split("?")[1] || "", n = {};
1961
1980
  if (t)
@@ -1977,12 +1996,12 @@ function Je(t) {
1977
1996
  }
1978
1997
  return e;
1979
1998
  }
1980
- const Gn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
1981
- function us(t = 40) {
1999
+ const Kn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
2000
+ function as(t = 40) {
1982
2001
  let e = "";
1983
2002
  for (let n = 0; n < t; n++)
1984
- e += Gn.charAt(
1985
- Math.floor(Math.random() * Gn.length)
2003
+ e += Kn.charAt(
2004
+ Math.floor(Math.random() * Kn.length)
1986
2005
  );
1987
2006
  return e;
1988
2007
  }
@@ -1994,14 +2013,14 @@ function be(t) {
1994
2013
  `${window.location?.pathname}${e}${n}`
1995
2014
  );
1996
2015
  }
1997
- function Et(t, e = !1) {
2016
+ function Tt(t, e = !1) {
1998
2017
  const n = e ? 1e3 : 1024;
1999
2018
  if (t < n)
2000
2019
  return t + (e ? " iB" : " B");
2001
2020
  const r = Math.floor(Math.log(t) / Math.log(n)), i = (e ? "kMGTPE" : "KMGTPE").charAt(r - 1) + (e ? "iB" : "B");
2002
2021
  return (t / Math.pow(n, r)).toFixed(2) + " " + i;
2003
2022
  }
2004
- function cs(t) {
2023
+ function ls(t) {
2005
2024
  if (t.length === 0)
2006
2025
  throw new Error("Input must not be of zero length");
2007
2026
  const e = t.split(","), n = {};
@@ -2014,12 +2033,12 @@ function cs(t) {
2014
2033
  }
2015
2034
  return n;
2016
2035
  }
2017
- function as(t, e) {
2036
+ function hs(t, e) {
2018
2037
  for (const n in t)
2019
2038
  t.hasOwnProperty(n) && e.indexOf(t[n]) >= 0 && delete t[n];
2020
2039
  return t;
2021
2040
  }
2022
- function ls() {
2041
+ function fs() {
2023
2042
  return [
2024
2043
  "iPad Simulator",
2025
2044
  "iPhone Simulator",
@@ -2030,13 +2049,13 @@ function ls() {
2030
2049
  ].includes(navigator.platform) || // iPad on iOS 13 detection
2031
2050
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
2032
2051
  }
2033
- function hs() {
2052
+ function ds() {
2034
2053
  return window.location !== window.parent.location;
2035
2054
  }
2036
- function fs(t = Date.now(), e = 60 * 1e3) {
2055
+ function ps(t = Date.now(), e = 60 * 1e3) {
2037
2056
  return Math.floor(t / e);
2038
2057
  }
2039
- class ds {
2058
+ class _s {
2040
2059
  abort() {
2041
2060
  d("Stub", "Aborted");
2042
2061
  }
@@ -2051,13 +2070,13 @@ function R(t) {
2051
2070
  return e;
2052
2071
  }
2053
2072
  const ke = {}, Ke = {}, de = {};
2054
- function ps() {
2073
+ function ms() {
2055
2074
  for (const t in ke)
2056
2075
  ke.hasOwnProperty(t) && we(t);
2057
2076
  for (const t in Ke)
2058
- Ke.hasOwnProperty(t) && _s(t);
2077
+ Ke.hasOwnProperty(t) && ys(t);
2059
2078
  for (const t in de)
2060
- de.hasOwnProperty(t) && ms(t);
2079
+ de.hasOwnProperty(t) && gs(t);
2061
2080
  }
2062
2081
  function oe(t, e, n = 300) {
2063
2082
  if (t && e && e instanceof Function)
@@ -2072,13 +2091,13 @@ function oe(t, e, n = 300) {
2072
2091
  function we(t) {
2073
2092
  ke[t] && (clearTimeout(ke[t]), delete ke[t]);
2074
2093
  }
2075
- function _s(t) {
2094
+ function ys(t) {
2076
2095
  Ke[t] && (clearInterval(Ke[t]), delete Ke[t]);
2077
2096
  }
2078
- function ms(t) {
2097
+ function gs(t) {
2079
2098
  de && de[t] && (de[t] instanceof Ae ? de[t].unsubscribe() : de[t](), delete de[t]);
2080
2099
  }
2081
- const ys = {
2100
+ const bs = {
2082
2101
  id: "mock-authority",
2083
2102
  name: "localhost:4200",
2084
2103
  description: "",
@@ -2090,108 +2109,108 @@ const ys = {
2090
2109
  config: {},
2091
2110
  version: "2.0.0"
2092
2111
  };
2093
- let v = {}, P = localStorage, W;
2112
+ let g = {}, I = localStorage, W;
2094
2113
  const S = {};
2095
2114
  let q = "", xe = "";
2096
- const De = new _e(""), Ft = new _e("");
2097
- let On = "/api/engine/v2";
2098
- const pe = new _e(!1), gs = pe.asObservable();
2115
+ const De = new _e(""), jt = new _e("");
2116
+ let In = "/api/engine/v2";
2117
+ const pe = new _e(!1), vs = pe.asObservable();
2099
2118
  let qt = 0;
2100
2119
  function x() {
2101
- return `${`${v.secure || window.location?.protocol.indexOf("https") >= 0 ? "https:" : "http:"}//${v.host || window.location?.host}`}${Pr()}`;
2120
+ return `${`${g.secure || window.location?.protocol.indexOf("https") >= 0 ? "https:" : "http:"}//${g.host || window.location?.host}`}${Ir()}`;
2102
2121
  }
2103
- function Pr() {
2104
- return v.version === "ACA Engine" ? "/control/api" : On;
2122
+ function Ir() {
2123
+ return g.version === "ACA Engine" ? "/control/api" : In;
2105
2124
  }
2106
- function bs() {
2107
- return !!v.token_header;
2125
+ function Ss() {
2126
+ return !!g.token_header;
2108
2127
  }
2109
- function vs() {
2128
+ function ks() {
2110
2129
  return q;
2111
2130
  }
2112
- function Fo() {
2113
- return v.redirect_uri;
2131
+ function Ho() {
2132
+ return g.redirect_uri;
2114
2133
  }
2115
- function zo(t, e = !0) {
2116
- P.setItem(`${q}_x-api-key`, `${t}`), P.setItem("trusted", `${e}`), Ss("x-api-key", ss(/* @__PURE__ */ new Date(), 5).valueOf());
2134
+ function Wo(t, e = !0) {
2135
+ I.setItem(`${q}_x-api-key`, `${t}`), I.setItem("trusted", `${e}`), $s("x-api-key", us(/* @__PURE__ */ new Date(), 5).valueOf());
2117
2136
  }
2118
2137
  function zt() {
2119
2138
  return Rt("x-api-key", !1) || "";
2120
2139
  }
2121
- function Ss(t, e = rs(/* @__PURE__ */ new Date(), 2).valueOf()) {
2122
- v.ignore_api_key && t === "x-api-key" || (P.setItem(`${q}_expires_at`, `${e}`), P.setItem(`${q}_access_token`, t));
2140
+ function $s(t, e = ss(/* @__PURE__ */ new Date(), 2).valueOf()) {
2141
+ g.ignore_api_key && t === "x-api-key" || (I.setItem(`${q}_expires_at`, `${e}`), I.setItem(`${q}_access_token`, t));
2123
2142
  }
2124
2143
  function X(t = !0) {
2125
- if (v.mock) return "mock-token";
2126
- if (!P) return "";
2127
- if (zt() && !v.ignore_api_key) return "x-api-key";
2128
- const e = P.getItem(`${q}_expires_at`) || "", n = De.getValue();
2129
- return os(+e, /* @__PURE__ */ new Date()) && (d("Auth", "Token expired. Requesting new token..."), Tn(), S.load_authority || (qt += 1, oe(
2144
+ if (g.mock) return "mock-token";
2145
+ if (!I) return "";
2146
+ if (zt() && !g.ignore_api_key) return "x-api-key";
2147
+ const e = I.getItem(`${q}_expires_at`) || "", n = De.getValue();
2148
+ return cs(+e, /* @__PURE__ */ new Date()) && (d("Auth", "Token expired. Requesting new token..."), qn(), S.load_authority || (qt += 1, oe(
2130
2149
  "re-authorise",
2131
2150
  () => qr().catch(
2132
2151
  (r) => d("Auth", `Failed to get token: ${r}`)
2133
2152
  ),
2134
2153
  200 * Math.min(20, qt)
2135
- )), !t) ? "" : n || P.getItem(`${q}_access_token`) || "";
2154
+ )), !t) ? "" : n || I.getItem(`${q}_access_token`) || "";
2136
2155
  }
2137
2156
  function Sn() {
2138
- return Ft.getValue() || P.getItem(`${q}_refresh_token`) || "";
2157
+ return jt.getValue() || I.getItem(`${q}_refresh_token`) || "";
2139
2158
  }
2140
2159
  function kn() {
2141
- return v.host || window.location?.host;
2160
+ return g.host || window.location?.host;
2142
2161
  }
2143
- function ks() {
2162
+ function xs() {
2144
2163
  return !!X();
2145
2164
  }
2146
- function $s() {
2147
- return De.pipe(g((t) => !!ks()));
2165
+ function As() {
2166
+ return De.pipe(b((t) => !!xs()));
2148
2167
  }
2149
2168
  function Ut() {
2150
2169
  return W;
2151
2170
  }
2152
- function Ho() {
2171
+ function Lo() {
2153
2172
  return pe.getValue();
2154
2173
  }
2155
- function In() {
2156
- return !!v.mock;
2174
+ function Pn() {
2175
+ return !!g.mock;
2157
2176
  }
2158
- function xs() {
2159
- return !!v.secure;
2177
+ function ws() {
2178
+ return !!g.secure;
2160
2179
  }
2161
- function Wo() {
2162
- return gs;
2180
+ function Bo() {
2181
+ return vs;
2163
2182
  }
2164
- function Pn() {
2183
+ function Tn() {
2165
2184
  return Rt("trust") === "true" || Rt("trusted") === "true";
2166
2185
  }
2167
- function Tr() {
2168
- return !!zt() && !v.ignore_api_key || Rt("fixed_device") === "true";
2186
+ function Pr() {
2187
+ return !!zt() && !g.ignore_api_key || Rt("fixed_device") === "true";
2169
2188
  }
2170
2189
  function Rt(t, e = !0) {
2171
- let r = Ir()[t];
2172
- if (P) {
2173
- const i = `${vs()}_${t}`;
2174
- r = r || P.getItem(i) || P.getItem(t) || "", e && P.setItem(i, `${r}`);
2190
+ let r = Er()[t];
2191
+ if (I) {
2192
+ const i = `${ks()}_${t}`;
2193
+ r = r || I.getItem(i) || I.getItem(t) || "", e && I.setItem(i, `${r}`);
2175
2194
  }
2176
2195
  return r;
2177
2196
  }
2178
- function Lo(t) {
2179
- return v = t || v, v.token_header = v.token_header ?? hs(), window.AbortController || (window.AbortController = ds), P = v.storage === "session" ? sessionStorage : localStorage, q = Y.hashStr(v.redirect_uri, !1), En();
2197
+ async function Vo(t) {
2198
+ return g = t || g, g.token_header = g.token_header ?? ds(), window.AbortController || (window.AbortController = _s), I = g.storage === "session" ? sessionStorage : localStorage, q = Y.hashStr(g.redirect_uri, !1), g.delay && g.delay > 0 && await zi(On(g.delay)), Un();
2180
2199
  }
2181
- function Bo(t) {
2182
- P = t === "session" ? sessionStorage : localStorage;
2200
+ function Qo(t) {
2201
+ I = t === "session" ? sessionStorage : localStorage;
2183
2202
  }
2184
- function Vo() {
2185
- v = {}, W = void 0, De.next(""), Ft.next(""), pe.next(!1), q = "", xe = "", On = "/api/engine/v2";
2203
+ function Yo() {
2204
+ g = {}, W = void 0, De.next(""), jt.next(""), pe.next(!1), q = "", xe = "", In = "/api/engine/v2";
2186
2205
  for (const t in S)
2187
2206
  t in S && delete S[t];
2188
- ps();
2207
+ ms();
2189
2208
  }
2190
- function Er() {
2191
- return d("Auth", "Refreshing authorty."), W = void 0, En();
2209
+ function Tr() {
2210
+ return d("Auth", "Refreshing authorty."), W = void 0, Un();
2192
2211
  }
2193
- function Tn() {
2194
- d("Auth", "Invalidating tokens."), P.removeItem(`${q}_access_token`), P.removeItem(`${q}_expires_at`), De.getValue() && De.next("");
2212
+ function qn() {
2213
+ d("Auth", "Invalidating tokens."), I.removeItem(`${q}_access_token`), I.removeItem(`${q}_expires_at`), De.getValue() && De.next("");
2195
2214
  }
2196
2215
  function qr(t, e = W) {
2197
2216
  return S.authorise || (S.authorise = new Promise((n, r) => {
@@ -2210,7 +2229,7 @@ function qr(t, e = W) {
2210
2229
  d("Auth", "Failed to generate token."), r("Failed to generate token"), setTimeout(() => delete S.authorise, 200);
2211
2230
  }
2212
2231
  ];
2213
- v && v.auth_type === "password" ? (d("Auth", "Logging in with credentials."), Us(v).then(
2232
+ g && g.auth_type === "password" ? (d("Auth", "Logging in with credentials."), Ms(g).then(
2214
2233
  ...s
2215
2234
  ), qt = 0) : xe || Sn() ? (d(
2216
2235
  "Auth",
@@ -2218,13 +2237,13 @@ function qr(t, e = W) {
2218
2237
  ), Rr().then(...s), qt = 0) : e.session ? (d(
2219
2238
  "Auth",
2220
2239
  "Users has session. Authorising application..."
2221
- ), As(t).then(...s)) : (d("Auth", "No user session"), Ur(e), r("No user session"), setTimeout(() => delete S.authorise, 200));
2240
+ ), Os(t).then(...s)) : (d("Auth", "No user session"), Ur(e), r("No user session"), setTimeout(() => delete S.authorise, 200));
2222
2241
  }
2223
2242
  };
2224
- Os().then(i, i);
2243
+ Is().then(i, i);
2225
2244
  })), S.authorise;
2226
2245
  }
2227
- function Qo() {
2246
+ function Go() {
2228
2247
  const t = W ? W.logout_url : "/logout";
2229
2248
  fetch(t, {
2230
2249
  method: "GET",
@@ -2234,30 +2253,30 @@ function Qo() {
2234
2253
  }
2235
2254
  }).then((e) => {
2236
2255
  const n = e.headers.get("Location") || t;
2237
- for (let r = 0; r < P.length; r++) {
2238
- const i = P.key(r);
2239
- i && i.indexOf(q) >= 0 && P.removeItem(i);
2256
+ for (let r = 0; r < I.length; r++) {
2257
+ const i = I.key(r);
2258
+ i && i.indexOf(q) >= 0 && I.removeItem(i);
2240
2259
  }
2241
2260
  window.location?.assign(n);
2242
2261
  });
2243
2262
  }
2244
- function En(t = 0) {
2263
+ function Un(t = 0) {
2245
2264
  return S.load_authority || (S.load_authority = new Promise((e) => {
2246
- if (pe.next(!1), v.mock) {
2247
- W = ys, d("Auth", "System in mock mode"), pe.next(!0), e();
2265
+ if (pe.next(!1), g.mock) {
2266
+ W = bs, d("Auth", "System in mock mode"), pe.next(!0), e();
2248
2267
  return;
2249
2268
  }
2250
- d("Auth", `Fixed: ${Tr()} | Trusted: ${Pn()}`), d("Auth", "Loading authority...");
2251
- const n = v.secure || window.location?.protocol.indexOf("https") >= 0, r = (i) => {
2269
+ d("Auth", `Fixed: ${Pr()} | Trusted: ${Tn()}`), d("Auth", "Loading authority...");
2270
+ const n = g.secure || window.location?.protocol.indexOf("https") >= 0, r = (i) => {
2252
2271
  d("Auth", `Failed to load authority(${i})`), pe.next(!1), oe(
2253
2272
  "load_authority",
2254
2273
  () => {
2255
- delete S.load_authority, En(t).then((s) => e());
2274
+ delete S.load_authority, Un(t).then((s) => e());
2256
2275
  },
2257
2276
  300 * Math.min(20, ++t)
2258
2277
  );
2259
2278
  };
2260
- wn(
2279
+ En(
2261
2280
  `${n ? "https:" : "http:"}//${kn()}/auth/authority`,
2262
2281
  {
2263
2282
  credentials: "same-origin"
@@ -2265,7 +2284,7 @@ function En(t = 0) {
2265
2284
  ).subscribe(async (i) => {
2266
2285
  if (!i.ok)
2267
2286
  return r(await i.text().catch((o) => o));
2268
- W = await i.json(), On = /[2-9]\.[0-9]+\.[0-9]+/g.test(
2287
+ W = await i.json(), In = /[2-9]\.[0-9]+\.[0-9]+/g.test(
2269
2288
  W.version || ""
2270
2289
  ) ? "/api/engine/v2" : "/control/api", d("Auth", "Loaded authority.", [], "group"), W && (d("Auth", `Name: ${W.name}`), d("Auth", `Version: ${W.version}`), d("Auth", `Domain: ${W.domain}`), d("Auth", `Session: ${W.session}`), d("Auth", `Production: ${W.production}`), d(
2271
2290
  "Auth",
@@ -2278,13 +2297,13 @@ function En(t = 0) {
2278
2297
  }, r);
2279
2298
  })), S.load_authority;
2280
2299
  }
2281
- async function As(t) {
2282
- const e = Ps(t);
2283
- if (v.use_iframe)
2284
- return ws(e);
2300
+ async function Os(t) {
2301
+ const e = Ts(t);
2302
+ if (g.use_iframe)
2303
+ return Es(e);
2285
2304
  window.location?.assign(e);
2286
2305
  }
2287
- function ws(t) {
2306
+ function Es(t) {
2288
2307
  return S.iframe_auth || (S.iframe_auth = new Promise((e, n) => {
2289
2308
  d("Auth", "Authorizing in an iFrame...");
2290
2309
  const r = document.createElement("iframe");
@@ -2293,7 +2312,7 @@ function ws(t) {
2293
2312
  if (s.origin === window.location?.origin && s.data.type === "place-os") {
2294
2313
  const o = s.data;
2295
2314
  if (d("Auth", "Received credentials from iFrame..."), document.body.removeChild(r), we("iframe_auth"), window.removeEventListener("message", i), delete S.iframe_auth, o.token)
2296
- return e(), qn({
2315
+ return e(), Rn({
2297
2316
  access_token: o.token,
2298
2317
  ...o
2299
2318
  });
@@ -2314,39 +2333,39 @@ function ws(t) {
2314
2333
  }, document.body.appendChild(r);
2315
2334
  })), S.iframe_auth;
2316
2335
  }
2317
- let Jn = !1;
2336
+ let Zn = !1;
2318
2337
  function Ur(t) {
2319
- if (v.handle_login !== !1 && !Jn) {
2338
+ if (g.handle_login !== !1 && !Zn) {
2320
2339
  d("Auth", "Redirecting to login page...");
2321
2340
  const e = t.login_url?.replace(
2322
2341
  "{{url}}",
2323
2342
  encodeURIComponent(window.location?.href)
2324
2343
  );
2325
- throw setTimeout(() => window.location?.assign(e), 300), Jn = !0, new Error("Redirecting to login page...");
2344
+ throw setTimeout(() => window.location?.assign(e), 300), Zn = !0, new Error("Redirecting to login page...");
2326
2345
  } else
2327
2346
  d("Auth", "Login being handled locally.");
2328
2347
  delete S.authorise;
2329
2348
  }
2330
- function Os() {
2349
+ function Is() {
2331
2350
  return S.check_token || (S.check_token = new Promise(async (t, e) => {
2332
- X() ? (d("Auth", "Valid token found."), t(X())) : (d("Auth", "No token. Checking URL for auth credentials..."), await Is() ? t(!0) : e()), delete S.check_token;
2351
+ X() ? (d("Auth", "Valid token found."), t(X())) : (d("Auth", "No token. Checking URL for auth credentials..."), await Ps() ? t(!0) : e()), delete S.check_token;
2333
2352
  })), S.check_token;
2334
2353
  }
2335
- function Is() {
2354
+ function Ps() {
2336
2355
  return S.check_params || (S.check_params = new Promise((t) => {
2337
2356
  d("Auth", "Checking for auth parameters...");
2338
- let e = Ir();
2357
+ let e = Er();
2339
2358
  if ((!e || Object.keys(e).length <= 0) && sessionStorage && (e = JSON.parse(
2340
2359
  sessionStorage.getItem("ENGINE.auth.params") || "{}"
2341
2360
  )), e && (e.code || e.access_token || e.refresh_token)) {
2342
- e.code && (xe = e.code, be("code")), e.refresh_token && (P.setItem(
2361
+ e.code && (xe = e.code, be("code")), e.refresh_token && (I.setItem(
2343
2362
  `${q}_refresh_token`,
2344
2363
  e.refresh_token
2345
2364
  ), be("refresh_token"));
2346
- const n = P.getItem(`${q}_nonce`) || "", r = (e.state || "").split(";");
2365
+ const n = I.getItem(`${q}_nonce`) || "", r = (e.state || "").split(";");
2347
2366
  be("state"), be("token_type");
2348
2367
  const i = r[0];
2349
- n === i ? (qn(e), t(!!e.access_token)) : t(!1);
2368
+ n === i ? (Rn(e), t(!!e.access_token)) : t(!1);
2350
2369
  } else
2351
2370
  t(!1);
2352
2371
  oe(
@@ -2356,27 +2375,27 @@ function Is() {
2356
2375
  );
2357
2376
  })), S.check_params;
2358
2377
  }
2359
- function Ps(t) {
2360
- const e = Rs();
2378
+ function Ts(t) {
2379
+ const e = Cs();
2361
2380
  t = t ? `${e};${t}` : e;
2362
- const n = v ? (v.auth_uri || "").indexOf("?") >= 0 : !1, r = (v ? v.auth_uri : null) || "/auth/oauth/authorize", i = Pn() || v.auth_type === "auth_code" ? "code" : "token";
2363
- let s = `${r}${n ? "&" : "?"}response_type=${encodeURIComponent(i)}&client_id=${encodeURIComponent(q)}&state=${encodeURIComponent(t)}&redirect_uri=${encodeURIComponent(v.redirect_uri)}&scope=${encodeURIComponent(v.scope)}`;
2364
- if (v.auth_type === "auth_code") {
2365
- const { challenge: o, verify: u } = Ts();
2381
+ const n = g ? (g.auth_uri || "").indexOf("?") >= 0 : !1, r = (g ? g.auth_uri : null) || "/auth/oauth/authorize", i = Tn() || g.auth_type === "auth_code" ? "code" : "token";
2382
+ let s = `${r}${n ? "&" : "?"}response_type=${encodeURIComponent(i)}&client_id=${encodeURIComponent(q)}&state=${encodeURIComponent(t)}&redirect_uri=${encodeURIComponent(g.redirect_uri)}&scope=${encodeURIComponent(g.scope)}`;
2383
+ if (g.auth_type === "auth_code") {
2384
+ const { challenge: o, verify: u } = qs();
2366
2385
  sessionStorage.setItem(`${q}_challenge`, o), s += "&code_challenge_method=S256", s += `&code_challenge=${u}`;
2367
2386
  }
2368
2387
  return s;
2369
2388
  }
2370
- const Kn = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");
2371
- function Ts(t = 43) {
2389
+ const Xn = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");
2390
+ function qs(t = 43) {
2372
2391
  const e = new Array(t).fill(0).map(
2373
- () => Kn[Math.floor(Math.random() * Kn.length)]
2374
- ).join(""), n = Gi(Ji(e)), r = wr(Xi.hash(n)).split("=")[0].replace(/\//g, "_").replace(/\+/g, "-");
2392
+ () => Xn[Math.floor(Math.random() * Xn.length)]
2393
+ ).join(""), n = Ki(Zi(e)), r = wr(ts.hash(n)).split("=")[0].replace(/\//g, "_").replace(/\+/g, "-");
2375
2394
  return { challenge: e, verify: r };
2376
2395
  }
2377
- function Es() {
2378
- let e = (v.token_uri || "/auth/token") + `?client_id=${encodeURIComponent(q)}`, n = "";
2379
- if (e += `&redirect_uri=${encodeURIComponent(v.redirect_uri)}`, Sn()) {
2396
+ function Us() {
2397
+ let e = (g.token_uri || "/auth/token") + `?client_id=${encodeURIComponent(q)}`, n = "";
2398
+ if (e += `&redirect_uri=${encodeURIComponent(g.redirect_uri)}`, Sn()) {
2380
2399
  e += `&refresh_token=${encodeURIComponent(Sn())}`, e += "&grant_type=refresh_token";
2381
2400
  const r = e.split("?");
2382
2401
  e = r[0], n = r[1];
@@ -2387,7 +2406,7 @@ function Es() {
2387
2406
  }
2388
2407
  return [e, n];
2389
2408
  }
2390
- function qs(t) {
2409
+ function Rs(t) {
2391
2410
  const e = t.token_uri || "/auth/token", n = R({
2392
2411
  grant_type: "password",
2393
2412
  client_id: q,
@@ -2401,18 +2420,18 @@ function qs(t) {
2401
2420
  return `${e}?${n}`;
2402
2421
  }
2403
2422
  function Rr() {
2404
- return Mr(...Es());
2423
+ return Mr(...Us());
2405
2424
  }
2406
- function Us(t) {
2407
- return Mr(qs(t));
2425
+ function Ms(t) {
2426
+ return Mr(Rs(t));
2408
2427
  }
2409
2428
  function Mr(t, e = "") {
2410
2429
  return S.generate_tokens || (S.generate_tokens = new Promise((n, r) => {
2411
2430
  d("Auth", "Generating new token...");
2412
2431
  const i = (s) => {
2413
- d("Auth", "Error generating new tokens.", s), P.removeItem(`${q}_refresh_token`), Ft.next(""), r(), delete S.generate_tokens;
2432
+ d("Auth", "Error generating new tokens.", s), I.removeItem(`${q}_refresh_token`), jt.next(""), r(), delete S.generate_tokens;
2414
2433
  };
2415
- wn(t, {
2434
+ En(t, {
2416
2435
  method: "POST",
2417
2436
  body: e,
2418
2437
  headers: {
@@ -2421,37 +2440,37 @@ function Mr(t, e = "") {
2421
2440
  }).subscribe(async (s) => {
2422
2441
  if (!s.ok) return i(s);
2423
2442
  const o = await s.json();
2424
- qn(o), n(), delete S.generate_tokens;
2443
+ Rn(o), n(), delete S.generate_tokens;
2425
2444
  }, i);
2426
2445
  })), S.generate_tokens;
2427
2446
  }
2428
- function qn(t) {
2429
- const e = is(
2447
+ function Rn(t) {
2448
+ const e = os(
2430
2449
  /* @__PURE__ */ new Date(),
2431
2450
  Math.max(60, parseInt(t.expires_in, 10) - 300)
2432
2451
  );
2433
- d("Auth", "Tokens generated storing..."), Pn() && (t.access_token && (P.setItem(
2452
+ d("Auth", "Tokens generated storing..."), Tn() && (t.access_token && (I.setItem(
2434
2453
  `${q}_access_token`,
2435
2454
  t.access_token
2436
- ), be("access_token")), t.refresh_token && (P.setItem(
2455
+ ), be("access_token")), t.refresh_token && (I.setItem(
2437
2456
  `${q}_refresh_token`,
2438
2457
  t.refresh_token
2439
- ), be("refresh_token"))), t.expires_in && (P.setItem(`${q}_expires_at`, `${e.valueOf()}`), be("expires_in")), pe.next(!0), De.next(t.access_token || ""), Ft.next(t.refresh_token || "");
2458
+ ), be("refresh_token"))), t.expires_in && (I.setItem(`${q}_expires_at`, `${e.valueOf()}`), be("expires_in")), pe.next(!0), De.next(t.access_token || ""), jt.next(t.refresh_token || "");
2440
2459
  }
2441
- function Rs() {
2442
- const t = us();
2443
- return P.setItem(`${q}_nonce`, t), t;
2460
+ function Cs() {
2461
+ const t = as();
2462
+ return I.setItem(`${q}_nonce`, t), t;
2444
2463
  }
2445
2464
  const Ht = {};
2446
2465
  let Cr = (t, e) => {
2447
2466
  const n = new Error(`Mock endpoint not found: ${t} ${e}`);
2448
- return n.status = 404, d("HTTP(M)", `404 ${t}:`, e), kr(n);
2467
+ return n.status = 404, d("HTTP(M)", `404 ${t}:`, e), $r(n);
2449
2468
  };
2450
- function Yo(t) {
2469
+ function Jo(t) {
2451
2470
  Cr = t;
2452
2471
  }
2453
- function Go(t, e = Ht) {
2454
- Ms(t.method, t.path, e);
2472
+ function Ko(t, e = Ht) {
2473
+ Ds(t.method, t.path, e);
2455
2474
  const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
2456
2475
  ...t,
2457
2476
  path_parts: r,
@@ -2461,19 +2480,19 @@ function Go(t, e = Ht) {
2461
2480
  };
2462
2481
  e[n] = i, d("HTTP(M)", `+ ${t.method} ${t.path}`);
2463
2482
  }
2464
- function Ms(t, e, n = Ht) {
2483
+ function Ds(t, e, n = Ht) {
2465
2484
  const r = `${t}|${e}`;
2466
2485
  n[r] && (delete n[r], d("HTTP(M)", `- ${t} ${e}`));
2467
2486
  }
2468
- function Cs(t, e, n, r = Ht) {
2469
- const i = Ds(t, e, r);
2487
+ function Ns(t, e, n, r = Ht) {
2488
+ const i = Fs(t, e, r);
2470
2489
  if (i) {
2471
- const s = Ns(e, i, n);
2472
- return js(i, s);
2490
+ const s = js(e, i, n);
2491
+ return zs(i, s);
2473
2492
  }
2474
2493
  return Cr(t, e);
2475
2494
  }
2476
- function Ds(t, e, n = Ht) {
2495
+ function Fs(t, e, n = Ht) {
2477
2496
  const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), s = Object.keys(
2478
2497
  n
2479
2498
  ).reduce((o, u) => (u.indexOf(`${t}|`) === 0 && o.push(n[u]), o), []);
@@ -2490,7 +2509,7 @@ function Ds(t, e, n = Ht) {
2490
2509
  }
2491
2510
  return null;
2492
2511
  }
2493
- function Ns(t, e, n) {
2512
+ function js(t, e, n) {
2494
2513
  const r = t.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").split("?"), i = r[0].replace(/^\//, ""), s = r[1] || "", o = Je(s), u = i.split("/"), c = {};
2495
2514
  for (let _ = 0; _ < e.path_structure.length; _++) {
2496
2515
  const y = e.path_structure[_];
@@ -2507,7 +2526,7 @@ function Ns(t, e, n) {
2507
2526
  };
2508
2527
  return d("HTTP(M)", `MATCHED ${l.method}:`, l), l;
2509
2528
  }
2510
- function js(t, e) {
2529
+ function zs(t, e) {
2511
2530
  let n;
2512
2531
  try {
2513
2532
  n = t.callback ? t.callback(e) : t.metadata;
@@ -2515,10 +2534,10 @@ function js(t, e) {
2515
2534
  throw d("HTTP(M)", `ERROR ${e.method}:`, [e.url, o]), o;
2516
2535
  }
2517
2536
  const r = t.delay_variance || 100, i = t.delay || 300, s = Math.floor(Math.random() * r - r / 2) + i;
2518
- return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]), ji([n]).pipe(Bi(Math.max(200, s)));
2537
+ return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]), Fi([n]).pipe(Qi(Math.max(200, s)));
2519
2538
  }
2520
2539
  const Dr = {};
2521
- function Fs(t, e = Dr) {
2540
+ function Hs(t, e = Dr) {
2522
2541
  return e[t] || {};
2523
2542
  }
2524
2543
  function N(t, e, n = tt) {
@@ -2536,7 +2555,7 @@ function et(t, e, n, r = tt) {
2536
2555
  function Oe(t, e, n = tt) {
2537
2556
  return e || (e = { response_type: "void" }), n("DELETE", t, { response_type: "void", ...e });
2538
2557
  }
2539
- async function zs(t, e, n = Dr) {
2558
+ async function Ws(t, e, n = Dr) {
2540
2559
  if (t.headers) {
2541
2560
  const r = {};
2542
2561
  t.headers.forEach ? t.headers.forEach((i, s) => r[s.toLowerCase()] = i) : Object.keys(t.headers).forEach(
@@ -2554,7 +2573,7 @@ async function zs(t, e, n = Dr) {
2554
2573
  return await t.json().catch(() => ({}));
2555
2574
  }
2556
2575
  }
2557
- const Nr = () => (Tn(), Er().then(
2576
+ const Nr = () => (qn(), Tr().then(
2558
2577
  () => Promise.resolve(),
2559
2578
  () => new Promise((t) => {
2560
2579
  setTimeout(() => {
@@ -2562,25 +2581,25 @@ const Nr = () => (Tn(), Er().then(
2562
2581
  }, 1e3);
2563
2582
  })
2564
2583
  ));
2565
- function tt(t, e, n, r = In, i = Cs, s = zs) {
2584
+ function tt(t, e, n, r = Pn, i = Ns, s = Ws) {
2566
2585
  if (r()) {
2567
2586
  const o = i(t, e, n?.body);
2568
2587
  if (o) return o;
2569
2588
  }
2570
- return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), $s().pipe(
2571
- Hi((o) => o),
2589
+ return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), As().pipe(
2590
+ Li((o) => o),
2572
2591
  Ar(1),
2573
- Wn((o) => {
2592
+ Bn((o) => {
2574
2593
  X() === "x-api-key" ? n.headers["X-API-Key"] = zt() : n.headers.Authorization = `Bearer ${X()}`;
2575
2594
  const u = {
2576
2595
  ...n,
2577
2596
  method: t,
2578
2597
  credentials: "same-origin"
2579
2598
  };
2580
- return ["POST", "PUT", "PATCH"].includes(t) && n.body !== void 0 && (u.body = typeof n.body == "string" ? n.body : JSON.stringify(n.body)), wn(e, u);
2599
+ return ["POST", "PUT", "PATCH"].includes(t) && n.body !== void 0 && (u.body = typeof n.body == "string" ? n.body : JSON.stringify(n.body)), En(e, u);
2581
2600
  }),
2582
- Wn((o) => o.ok ? s(o, n.response_type) : kr(o)),
2583
- Yi({
2601
+ Bn((o) => o.ok ? s(o, n.response_type) : $r(o)),
2602
+ Ji({
2584
2603
  count: 4,
2585
2604
  delay: (o, u) => new D((c) => {
2586
2605
  if (o.status === 511) {
@@ -2621,10 +2640,10 @@ class L {
2621
2640
  */
2622
2641
  toJSON() {
2623
2642
  const e = { ...this };
2624
- return e.version = this.version, delete e.created_at, as(e, [void 0, null, ""]);
2643
+ return e.version = this.version, delete e.created_at, hs(e, [void 0, null, ""]);
2625
2644
  }
2626
2645
  }
2627
- class Hs extends L {
2646
+ class Ls extends L {
2628
2647
  // Dashboard to show this alert on
2629
2648
  alert_dashboard_id;
2630
2649
  // Details of the dashboard assigned
@@ -2652,7 +2671,7 @@ class Hs extends L {
2652
2671
  }, this.severity = e.severity || "low", this.alert_type = e.alert_type || "threshold", this.debounce_period = e.debounce_period || 0, this.alert_dashboard_id = e.alert_dashboard_id || "", this.alert_dashboard_details = e.alert_dashboard_details || void 0, this.any_match = e.any_match || !1;
2653
2672
  }
2654
2673
  }
2655
- class Ws extends L {
2674
+ class Bs extends L {
2656
2675
  // Domain authority that the dashboard exists under
2657
2676
  authority_id;
2658
2677
  // Description of the dashboard's purpose
@@ -2663,65 +2682,65 @@ class Ws extends L {
2663
2682
  super(e), this.authority_id = e.authority_id || "", this.description = e.description || "", this.enabled = e.enabled || !1;
2664
2683
  }
2665
2684
  }
2666
- const je = "alert_dashboards";
2685
+ const Fe = "alert_dashboards";
2667
2686
  function Wt(t) {
2668
- return new Ws(t);
2687
+ return new Bs(t);
2669
2688
  }
2670
- function Jo(t = {}) {
2689
+ function Zo(t = {}) {
2671
2690
  return O({
2672
2691
  query_params: t,
2673
2692
  fn: Wt,
2674
- path: je
2693
+ path: Fe
2675
2694
  });
2676
2695
  }
2677
- function Ko(t) {
2696
+ function Xo(t) {
2678
2697
  return k({
2679
2698
  id: t,
2680
2699
  query_params: {},
2681
2700
  fn: Wt,
2682
- path: je
2701
+ path: Fe
2683
2702
  });
2684
2703
  }
2685
- function Zo(t, e, n = "patch") {
2686
- return E({
2704
+ function eu(t, e, n = "patch") {
2705
+ return T({
2687
2706
  id: t,
2688
2707
  form_data: e,
2689
2708
  query_params: {},
2690
2709
  method: n,
2691
2710
  fn: Wt,
2692
- path: je
2711
+ path: Fe
2693
2712
  });
2694
2713
  }
2695
- function Xo(t) {
2696
- return T({
2714
+ function tu(t) {
2715
+ return P({
2697
2716
  form_data: t,
2698
2717
  query_params: {},
2699
2718
  fn: Wt,
2700
- path: je
2719
+ path: Fe
2701
2720
  });
2702
2721
  }
2703
- function eu(t) {
2704
- return I({ id: t, query_params: {}, path: je });
2722
+ function nu(t) {
2723
+ return E({ id: t, query_params: {}, path: Fe });
2705
2724
  }
2706
- function tu(t) {
2725
+ function ru(t) {
2707
2726
  return O({
2708
2727
  query_params: {},
2709
2728
  fn: rt,
2710
- path: `${je}/${t}/alerts`
2729
+ path: `${Fe}/${t}/alerts`
2711
2730
  });
2712
2731
  }
2713
2732
  const nt = "alerts";
2714
2733
  function rt(t) {
2715
- return new Hs(t);
2734
+ return new Ls(t);
2716
2735
  }
2717
- function nu(t = {}) {
2736
+ function iu(t = {}) {
2718
2737
  return O({
2719
2738
  query_params: t,
2720
2739
  fn: rt,
2721
2740
  path: nt
2722
2741
  });
2723
2742
  }
2724
- function ru(t, e = {}) {
2743
+ function su(t, e = {}) {
2725
2744
  return k({
2726
2745
  id: t,
2727
2746
  query_params: e,
@@ -2729,8 +2748,8 @@ function ru(t, e = {}) {
2729
2748
  path: nt
2730
2749
  });
2731
2750
  }
2732
- function iu(t, e, n = "patch") {
2733
- return E({
2751
+ function ou(t, e, n = "patch") {
2752
+ return T({
2734
2753
  id: t,
2735
2754
  form_data: e,
2736
2755
  query_params: {},
@@ -2739,18 +2758,18 @@ function iu(t, e, n = "patch") {
2739
2758
  path: nt
2740
2759
  });
2741
2760
  }
2742
- function su(t) {
2743
- return T({
2761
+ function uu(t) {
2762
+ return P({
2744
2763
  form_data: t,
2745
2764
  query_params: {},
2746
2765
  fn: rt,
2747
2766
  path: nt
2748
2767
  });
2749
2768
  }
2750
- function ou(t) {
2751
- return I({ id: t, query_params: {}, path: nt });
2769
+ function cu(t) {
2770
+ return E({ id: t, query_params: {}, path: nt });
2752
2771
  }
2753
- class Ls extends L {
2772
+ class Vs extends L {
2754
2773
  /** Unique identifier of the application */
2755
2774
  uid;
2756
2775
  /** Secret associated with the application */
@@ -2769,19 +2788,19 @@ class Ls extends L {
2769
2788
  super(e), this.uid = e.uid || "", this.secret = e.secret || "", this.owner_id = e.owner_id || "", this.scopes = e.scopes || "", this.redirect_uri = e.redirect_uri || "", this.skip_authorization = e.skip_authorization || !1, this.preserve_client_id = e.preserve_client_id || !1;
2770
2789
  }
2771
2790
  }
2772
- function uu(t) {
2773
- return jr[t] || 0;
2774
- }
2775
- function cu(t) {
2791
+ function au(t) {
2776
2792
  return Fr[t] || 0;
2777
2793
  }
2778
- let jr = {}, Fr = {}, Zn = "";
2794
+ function lu(t) {
2795
+ return jr[t] || 0;
2796
+ }
2797
+ let Fr = {}, jr = {}, er = "";
2779
2798
  const Lt = (t) => t;
2780
2799
  function O(t) {
2781
2800
  const { query_params: e, fn: n, path: r, endpoint: i } = t, s = R(e), o = `${i || x()}${r ? "/" + r : ""}${s ? "?" + s : ""}`;
2782
2801
  return N(o).pipe(
2783
- g((u) => {
2784
- const c = Bs(o, s, r);
2802
+ b((u) => {
2803
+ const c = Qs(o, s, r);
2785
2804
  return {
2786
2805
  total: c.total || 0,
2787
2806
  next: c.next ? () => O({
@@ -2797,12 +2816,12 @@ function O(t) {
2797
2816
  }
2798
2817
  function k(t) {
2799
2818
  const { query_params: e, id: n, path: r, fn: i, options: s } = t, o = R(e), u = `${x()}/${r}/${n}${o ? "?" + o : ""}`;
2800
- return N(u, s).pipe(g((c) => (i || Lt)(c)));
2819
+ return N(u, s).pipe(b((c) => (i || Lt)(c)));
2801
2820
  }
2802
- function T(t) {
2821
+ function P(t) {
2803
2822
  const { query_params: e, form_data: n, path: r, fn: i } = t, s = R(e), o = `${x()}/${r}${s ? "?" + s : ""}`;
2804
2823
  return G(o, n).pipe(
2805
- g((c) => (i || Lt)(c))
2824
+ b((c) => (i || Lt)(c))
2806
2825
  );
2807
2826
  }
2808
2827
  function m(t) {
@@ -2813,24 +2832,24 @@ function m(t) {
2813
2832
  response_type: "json"
2814
2833
  }
2815
2834
  )).pipe(
2816
- g((_) => (o || ((y) => y))(_))
2835
+ b((_) => (o || ((y) => y))(_))
2817
2836
  );
2818
2837
  }
2819
- function E(t) {
2838
+ function T(t) {
2820
2839
  const { id: e, query_params: n, form_data: r, method: i, path: s, fn: o } = t, u = R({
2821
2840
  ...n,
2822
2841
  version: r.version || 0
2823
2842
  }), c = `${x()}/${s}/${e}${u ? "?" + u : ""}`;
2824
2843
  return (i === "put" ? Ne : et)(c, r).pipe(
2825
- g((l) => (o || Lt)(l))
2844
+ b((l) => (o || Lt)(l))
2826
2845
  );
2827
2846
  }
2828
- function I(t) {
2847
+ function E(t) {
2829
2848
  const { id: e, query_params: n, path: r } = t, i = R(n), s = `${x()}/${r}/${e}${i ? "?" + i : ""}`;
2830
2849
  return Oe(s);
2831
2850
  }
2832
- function Bs(t, e, n) {
2833
- const r = Fs(
2851
+ function Qs(t, e, n) {
2852
+ const r = Hs(
2834
2853
  t[0] === "/" ? `${location.origin}${t}` : t
2835
2854
  ), i = {
2836
2855
  total: 0,
@@ -2838,22 +2857,22 @@ function Bs(t, e, n) {
2838
2857
  };
2839
2858
  if (r && r["x-total-count"]) {
2840
2859
  const s = +(r["x-total-count"] || 0);
2841
- (e.length < 2 || e.length < 12 && e.indexOf("offset=") >= 0) && (jr[n] = s), Fr[n] = s, i.total = s;
2860
+ (e.length < 2 || e.length < 12 && e.indexOf("offset=") >= 0) && (Fr[n] = s), jr[n] = s, i.total = s;
2842
2861
  }
2843
- return r && r.link && (Zn = cs(r.link || "").next, i.next = Je(Zn.split("?")[1])), i;
2862
+ return r && r.link && (er = ls(r.link || "").next, i.next = Je(er.split("?")[1])), i;
2844
2863
  }
2845
2864
  const it = "oauth_apps";
2846
2865
  function Bt(t) {
2847
- return new Ls(t);
2866
+ return new Vs(t);
2848
2867
  }
2849
- function au(t = {}) {
2868
+ function hu(t = {}) {
2850
2869
  return O({ query_params: t, fn: Bt, path: it });
2851
2870
  }
2852
- function lu(t) {
2871
+ function fu(t) {
2853
2872
  return k({ id: t, query_params: {}, fn: Bt, path: it });
2854
2873
  }
2855
- function hu(t, e, n = "patch") {
2856
- return E({
2874
+ function du(t, e, n = "patch") {
2875
+ return T({
2857
2876
  id: t,
2858
2877
  form_data: e,
2859
2878
  query_params: {},
@@ -2862,14 +2881,14 @@ function hu(t, e, n = "patch") {
2862
2881
  path: it
2863
2882
  });
2864
2883
  }
2865
- function fu(t) {
2866
- return T({ form_data: t, query_params: {}, fn: Bt, path: it });
2884
+ function pu(t) {
2885
+ return P({ form_data: t, query_params: {}, fn: Bt, path: it });
2867
2886
  }
2868
- function du(t) {
2869
- return I({ id: t, query_params: {}, path: it });
2887
+ function _u(t) {
2888
+ return E({ id: t, query_params: {}, path: it });
2870
2889
  }
2871
- var Vs = /* @__PURE__ */ ((t) => (t[t.Certificate = 0] = "Certificate", t[t.NoAuth = 1] = "NoAuth", t[t.UserPassword = 2] = "UserPassword", t))(Vs || {});
2872
- class Qs extends L {
2890
+ var Ys = /* @__PURE__ */ ((t) => (t[t.Certificate = 0] = "Certificate", t[t.NoAuth = 1] = "NoAuth", t[t.UserPassword = 2] = "UserPassword", t))(Ys || {});
2891
+ class Gs extends L {
2873
2892
  /** Unique identifier for the Broker */
2874
2893
  id;
2875
2894
  /** Name of the Broker */
@@ -2900,16 +2919,16 @@ class Qs extends L {
2900
2919
  }
2901
2920
  const st = "brokers";
2902
2921
  function Vt(t) {
2903
- return new Qs(t);
2922
+ return new Gs(t);
2904
2923
  }
2905
- function pu(t = {}) {
2924
+ function mu(t = {}) {
2906
2925
  return O({ query_params: t, fn: Vt, path: st });
2907
2926
  }
2908
- function _u(t, e = {}) {
2927
+ function yu(t, e = {}) {
2909
2928
  return k({ id: t, query_params: e, fn: Vt, path: st });
2910
2929
  }
2911
- function mu(t, e, n = "patch") {
2912
- return E({
2930
+ function gu(t, e, n = "patch") {
2931
+ return T({
2913
2932
  id: t,
2914
2933
  form_data: e,
2915
2934
  query_params: {},
@@ -2918,13 +2937,13 @@ function mu(t, e, n = "patch") {
2918
2937
  path: st
2919
2938
  });
2920
2939
  }
2921
- function yu(t) {
2922
- return T({ form_data: t, query_params: {}, fn: Vt, path: st });
2940
+ function bu(t) {
2941
+ return P({ form_data: t, query_params: {}, fn: Vt, path: st });
2923
2942
  }
2924
- function gu(t, e = {}) {
2925
- return I({ id: t, query_params: e, path: st });
2943
+ function vu(t, e = {}) {
2944
+ return E({ id: t, query_params: e, path: st });
2926
2945
  }
2927
- class Ys {
2946
+ class Js {
2928
2947
  /** Unique identifier of the application */
2929
2948
  id;
2930
2949
  /** List of running drivers */
@@ -2963,7 +2982,7 @@ class Ys {
2963
2982
  edge_nodes;
2964
2983
  run_counts;
2965
2984
  constructor(e = {}) {
2966
- 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 = Et(this.memory_usage * 1024), this.total_memory = Et(this.memory_total * 1024);
2985
+ 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);
2967
2986
  const n = e.load?.edge || {};
2968
2987
  this.edge_nodes = e.edge_nodes || Object.keys(n).map((r) => ({
2969
2988
  id: r,
@@ -2972,7 +2991,7 @@ class Ys {
2972
2991
  })) || [];
2973
2992
  }
2974
2993
  }
2975
- class Gs {
2994
+ class Ks {
2976
2995
  /** ID of the cluster associated with the process */
2977
2996
  cluster_id;
2978
2997
  /** Unique identifier of the application */
@@ -3000,42 +3019,42 @@ class Gs {
3000
3019
  /** Display string for the memory total */
3001
3020
  total_memory;
3002
3021
  constructor(e, n = {}) {
3003
- 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 = Et(this.memory_usage * 1024), this.total_memory = Et(this.memory_total * 1024);
3022
+ 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);
3004
3023
  }
3005
3024
  }
3006
- const Fe = "cluster";
3025
+ const je = "cluster";
3007
3026
  function zr(t) {
3008
- return new Ys(t);
3027
+ return new Js(t);
3009
3028
  }
3010
- function bu(t = {}) {
3011
- return O({ query_params: t, fn: zr, path: Fe });
3029
+ function Su(t = {}) {
3030
+ return O({ query_params: t, fn: zr, path: je });
3012
3031
  }
3013
- function vu(t, e = {}) {
3014
- return k({ id: t, query_params: e, fn: zr, path: Fe });
3032
+ function ku(t, e = {}) {
3033
+ return k({ id: t, query_params: e, fn: zr, path: je });
3015
3034
  }
3016
- function Su(t, e = {}) {
3035
+ function $u(t, e = {}) {
3017
3036
  return k({
3018
3037
  id: t,
3019
3038
  query_params: e,
3020
3039
  fn: (n) => n.map(
3021
- (r) => new Gs(t, r)
3040
+ (r) => new Ks(t, r)
3022
3041
  ),
3023
- path: Fe
3042
+ path: je
3024
3043
  });
3025
3044
  }
3026
- function ku(t, e) {
3027
- return I({ id: t, query_params: e, path: Fe });
3045
+ function xu(t, e) {
3046
+ return E({ id: t, query_params: e, path: je });
3028
3047
  }
3029
- function $u() {
3030
- const t = `${x()}${Fe}/rebalance`;
3031
- return G(t, {}).pipe(g(() => {
3048
+ function Au() {
3049
+ const t = `${x()}${je}/rebalance`;
3050
+ return G(t, {}).pipe(b(() => {
3032
3051
  }));
3033
3052
  }
3034
- function xu() {
3035
- const t = `${x()}${Fe}/versions`;
3036
- return N(t).pipe(g((e) => e));
3053
+ function wu() {
3054
+ const t = `${x()}${je}/versions`;
3055
+ return N(t).pipe(b((e) => e));
3037
3056
  }
3038
- class Js extends L {
3057
+ class Zs extends L {
3039
3058
  /** Domain name */
3040
3059
  domain;
3041
3060
  /** Login URL for the domain */
@@ -3056,16 +3075,16 @@ class Js extends L {
3056
3075
  }
3057
3076
  const ze = "domains";
3058
3077
  function ot(t) {
3059
- return new Js(t);
3078
+ return new Zs(t);
3060
3079
  }
3061
- function Au(t = {}) {
3080
+ function Ou(t = {}) {
3062
3081
  return O({ query_params: t, fn: ot, path: ze });
3063
3082
  }
3064
- function wu(t) {
3083
+ function Eu(t) {
3065
3084
  return k({ id: t, query_params: {}, fn: ot, path: ze });
3066
3085
  }
3067
- function Ou(t, e, n = "patch") {
3068
- return E({
3086
+ function Iu(t, e, n = "patch") {
3087
+ return T({
3069
3088
  id: t,
3070
3089
  form_data: e,
3071
3090
  query_params: {},
@@ -3074,18 +3093,18 @@ function Ou(t, e, n = "patch") {
3074
3093
  path: ze
3075
3094
  });
3076
3095
  }
3077
- function Iu(t) {
3078
- return T({ form_data: t, query_params: {}, fn: ot, path: ze });
3079
- }
3080
3096
  function Pu(t) {
3081
- return I({ id: t, query_params: {}, path: ze });
3097
+ return P({ form_data: t, query_params: {}, fn: ot, path: ze });
3082
3098
  }
3083
3099
  function Tu(t) {
3100
+ return E({ id: t, query_params: {}, path: ze });
3101
+ }
3102
+ function qu(t) {
3084
3103
  const e = `${x()}${ze}/lookup/${encodeURIComponent(t)}`;
3085
- return N(e).pipe(g((n) => ot(n)));
3104
+ return N(e).pipe(b((n) => ot(n)));
3086
3105
  }
3087
3106
  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 || {});
3088
- class Ie extends L {
3107
+ class Ee extends L {
3089
3108
  /** ID of the parent zone/system/module/driver */
3090
3109
  parent_id;
3091
3110
  /** Unix timestamp in seconds of when the settings where last updated */
@@ -3136,7 +3155,7 @@ class Hr extends L {
3136
3155
  constructor(e = {}) {
3137
3156
  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.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3138
3157
  for (const n in He)
3139
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3158
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3140
3159
  parent_id: this.id,
3141
3160
  encryption_level: +n
3142
3161
  }));
@@ -3146,14 +3165,14 @@ const ae = "drivers";
3146
3165
  function Qt(t) {
3147
3166
  return new Hr(t);
3148
3167
  }
3149
- function Eu(t = {}) {
3168
+ function Uu(t = {}) {
3150
3169
  return O({ query_params: t, fn: Qt, path: ae });
3151
3170
  }
3152
- function qu(t, e = {}) {
3171
+ function Ru(t, e = {}) {
3153
3172
  return k({ id: t, query_params: e, fn: Qt, path: ae });
3154
3173
  }
3155
- function Uu(t, e, n = "patch") {
3156
- return E({
3174
+ function Mu(t, e, n = "patch") {
3175
+ return T({
3157
3176
  id: t,
3158
3177
  form_data: e,
3159
3178
  query_params: {},
@@ -3162,25 +3181,25 @@ function Uu(t, e, n = "patch") {
3162
3181
  path: ae
3163
3182
  });
3164
3183
  }
3165
- function Ru(t) {
3166
- return T({ form_data: t, query_params: {}, fn: Qt, path: ae });
3184
+ function Cu(t) {
3185
+ return P({ form_data: t, query_params: {}, fn: Qt, path: ae });
3167
3186
  }
3168
- function Mu(t) {
3169
- return I({ id: t, query_params: {}, path: ae });
3187
+ function Du(t) {
3188
+ return E({ id: t, query_params: {}, path: ae });
3170
3189
  }
3171
- function Cu(t) {
3190
+ function Nu(t) {
3172
3191
  return m({ id: t, task_name: "recompile", path: ae });
3173
3192
  }
3174
- function Du(t) {
3193
+ function Fu(t) {
3175
3194
  return m({ id: t, task_name: "reload", path: ae });
3176
3195
  }
3177
- function Nu(t) {
3196
+ function ju(t) {
3178
3197
  return m({ id: t, task_name: "compiled", method: "get", path: ae });
3179
3198
  }
3180
- function ju(t) {
3199
+ function zu(t) {
3181
3200
  return m({ id: t, task_name: "readme", method: "get", path: ae });
3182
3201
  }
3183
- class Ks extends L {
3202
+ class Xs extends L {
3184
3203
  description;
3185
3204
  secret;
3186
3205
  x_api_key;
@@ -3194,46 +3213,46 @@ class Ks extends L {
3194
3213
  return delete e.last_seen, e;
3195
3214
  }
3196
3215
  }
3197
- const Pe = "edges";
3216
+ const Ie = "edges";
3198
3217
  function Yt(t) {
3199
- return new Ks(t);
3218
+ return new Xs(t);
3200
3219
  }
3201
- function Fu(t = {}) {
3202
- return O({ query_params: t, fn: Yt, path: Pe });
3220
+ function Hu(t = {}) {
3221
+ return O({ query_params: t, fn: Yt, path: Ie });
3203
3222
  }
3204
- function zu(t) {
3205
- return k({ id: t, query_params: {}, fn: Yt, path: Pe });
3223
+ function Wu(t) {
3224
+ return k({ id: t, query_params: {}, fn: Yt, path: Ie });
3206
3225
  }
3207
- function Hu(t, e, n = "patch") {
3208
- return E({
3226
+ function Lu(t, e, n = "patch") {
3227
+ return T({
3209
3228
  id: t,
3210
3229
  form_data: e,
3211
3230
  query_params: {},
3212
3231
  method: n,
3213
3232
  fn: Yt,
3214
- path: Pe
3233
+ path: Ie
3215
3234
  });
3216
3235
  }
3217
- function Wu(t) {
3218
- return T({ form_data: t, query_params: {}, fn: Yt, path: Pe });
3236
+ function Bu(t) {
3237
+ return P({ form_data: t, query_params: {}, fn: Yt, path: Ie });
3219
3238
  }
3220
- function Lu(t) {
3221
- return I({ id: t, query_params: {}, path: Pe });
3239
+ function Vu(t) {
3240
+ return E({ id: t, query_params: {}, path: Ie });
3222
3241
  }
3223
- function Bu(t) {
3242
+ function Qu(t) {
3224
3243
  return m({
3225
3244
  id: t,
3226
3245
  task_name: "token",
3227
3246
  form_data: {},
3228
3247
  method: "get",
3229
- path: Pe
3248
+ path: Ie
3230
3249
  });
3231
3250
  }
3232
- function Vu() {
3251
+ function Yu() {
3233
3252
  const t = x(), e = t.startsWith("https") ? "wss:" : "ws:", n = t.startsWith("https") ? "https:" : "http:";
3234
- return t.replace(n, e) + `${Pe}/control`;
3253
+ return t.replace(n, e) + `${Ie}/control`;
3235
3254
  }
3236
- class Zs extends L {
3255
+ class eo extends L {
3237
3256
  /** Type of auth source */
3238
3257
  type = "ldap";
3239
3258
  /** ID of the authority associted with the auth method */
@@ -3263,16 +3282,16 @@ class Zs extends L {
3263
3282
  }
3264
3283
  const ut = "ldap_auths";
3265
3284
  function Gt(t) {
3266
- return new Zs(t);
3285
+ return new eo(t);
3267
3286
  }
3268
- function Qu(t = {}) {
3287
+ function Gu(t = {}) {
3269
3288
  return O({ query_params: t, fn: Gt, path: ut });
3270
3289
  }
3271
- function Yu(t) {
3290
+ function Ju(t) {
3272
3291
  return k({ id: t, query_params: {}, fn: Gt, path: ut });
3273
3292
  }
3274
- function Gu(t, e, n = "patch") {
3275
- return E({
3293
+ function Ku(t, e, n = "patch") {
3294
+ return T({
3276
3295
  id: t,
3277
3296
  form_data: e,
3278
3297
  query_params: {},
@@ -3281,11 +3300,11 @@ function Gu(t, e, n = "patch") {
3281
3300
  path: ut
3282
3301
  });
3283
3302
  }
3284
- function Ju(t) {
3285
- return T({ form_data: t, query_params: {}, fn: Gt, path: ut });
3303
+ function Zu(t) {
3304
+ return P({ form_data: t, query_params: {}, fn: Gt, path: ut });
3286
3305
  }
3287
- function Ku(t) {
3288
- return I({ id: t, query_params: {}, path: ut });
3306
+ function Xu(t) {
3307
+ return E({ id: t, query_params: {}, path: ut });
3289
3308
  }
3290
3309
  class Wr {
3291
3310
  /** ID of the parent resource associated with the metadata */
@@ -3384,7 +3403,7 @@ class me extends L {
3384
3403
  }, this.debounce_period = e.debounce_period || 0, this.important = e.important || !1, this.enabled = e.enabled || !1, this.webhook_secret = e.webhook_secret || "", this.control_system_id = e.system_id || e.control_system_id || "", this.zone_id = e.zone_id || "", this.system_name = e.system_name || (e.control_system ? e.control_system.name : ""), this.enable_webhook = e.enable_webhook || !1, this.exec_enabled = e.exec_enabled || !1, this.supported_methods = e.supported_methods || ["POST"], this.activated_count = e.activated_count || e.trigger_count || 0, this.playlists = e.playlists || [], this.trigger_id = e.trigger_id || "", this.any_match = e.any_match || !1;
3385
3404
  }
3386
3405
  }
3387
- class Un extends L {
3406
+ class Mn extends L {
3388
3407
  /** Tuple of user settings of differring encryption levels for the zone */
3389
3408
  settings = [null, null, null, null];
3390
3409
  /** Description of the zone's purpose */
@@ -3423,7 +3442,7 @@ class Un extends L {
3423
3442
  constructor(e = {}) {
3424
3443
  super(e), this.description = e.description || "", this.tags = e.tags || [], this.triggers = e.triggers || [], this.settings = e.settings || [null, null, null, null], this.parent_id = e.parent_id || "", this.location = e.location || "", this.display_name = e.display_name || "", this.code = e.code || "", this.type = e.type || "", this.count = e.count || 0, this.capacity = e.capacity || 0, this.map_id = e.map_id || "", this.timezone = e.timezone || "", this.images = e.images || [], this.playlists = e.playlists || [], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3425
3444
  for (const n in He)
3426
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3445
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3427
3446
  parent_id: this.id,
3428
3447
  encryption_level: +n
3429
3448
  }));
@@ -3432,7 +3451,7 @@ class Un extends L {
3432
3451
  ));
3433
3452
  }
3434
3453
  }
3435
- class Xs {
3454
+ class to {
3436
3455
  /** Zone associated with the metadata */
3437
3456
  zone;
3438
3457
  /** Metadata for zone */
@@ -3440,25 +3459,25 @@ class Xs {
3440
3459
  /** List of the root keys in the metadata */
3441
3460
  keys;
3442
3461
  constructor(e = {}) {
3443
- this.zone = new Un(e.zone), this.keys = e.keys || [], this.metadata = {};
3462
+ this.zone = new Mn(e.zone), this.keys = e.keys || [], this.metadata = {};
3444
3463
  const n = e.metadata || {};
3445
3464
  for (const r of this.keys)
3446
3465
  this.metadata[r] = new Wr(n[r]);
3447
3466
  }
3448
3467
  }
3449
- const Te = "metadata";
3468
+ const Pe = "metadata";
3450
3469
  function ct(t) {
3451
3470
  return new Wr(t);
3452
3471
  }
3453
- function Zu(t, e = {}) {
3472
+ function ec(t, e = {}) {
3454
3473
  return k({
3455
3474
  id: t,
3456
3475
  query_params: e,
3457
3476
  fn: (n) => Object.keys(n).map((r) => ct(n[r])),
3458
- path: Te
3477
+ path: Pe
3459
3478
  });
3460
3479
  }
3461
- function eo(t) {
3480
+ function no(t) {
3462
3481
  const e = [...t], n = [];
3463
3482
  for (; e.length; ) {
3464
3483
  const r = e.pop();
@@ -3466,57 +3485,57 @@ function eo(t) {
3466
3485
  }
3467
3486
  return n.reverse();
3468
3487
  }
3469
- function Xu(t, e = {}) {
3488
+ function tc(t, e = {}) {
3470
3489
  return m({
3471
3490
  id: t,
3472
3491
  task_name: "history",
3473
3492
  form_data: e,
3474
3493
  method: "get",
3475
- callback: (n) => eo(
3494
+ callback: (n) => no(
3476
3495
  Object.keys(n).map(
3477
3496
  (r) => n[r].map((i) => ct(i))
3478
3497
  )
3479
3498
  ),
3480
- path: Te
3499
+ path: Pe
3481
3500
  });
3482
3501
  }
3483
- function ec(t, e) {
3502
+ function nc(t, e) {
3484
3503
  return k({
3485
3504
  id: t,
3486
3505
  query_params: { name: e },
3487
3506
  fn: (n) => ct(n[e]),
3488
- path: Te
3507
+ path: Pe
3489
3508
  });
3490
3509
  }
3491
- function tc(t, e, n = "put") {
3492
- return E({
3510
+ function rc(t, e, n = "put") {
3511
+ return T({
3493
3512
  id: t,
3494
3513
  form_data: e,
3495
3514
  query_params: {},
3496
3515
  method: n,
3497
3516
  fn: ct,
3498
- path: Te
3517
+ path: Pe
3499
3518
  });
3500
3519
  }
3501
- function nc(t) {
3502
- return T({ form_data: t, query_params: {}, fn: ct, path: Te });
3520
+ function ic(t) {
3521
+ return P({ form_data: t, query_params: {}, fn: ct, path: Pe });
3503
3522
  }
3504
- function rc(t, e) {
3505
- return I({ id: t, query_params: e, path: Te });
3523
+ function sc(t, e) {
3524
+ return E({ id: t, query_params: e, path: Pe });
3506
3525
  }
3507
- function ic(t, e) {
3526
+ function oc(t, e) {
3508
3527
  return m({
3509
3528
  id: t,
3510
3529
  task_name: "children",
3511
3530
  form_data: e,
3512
3531
  method: "get",
3513
3532
  callback: (n) => n.map(
3514
- (r) => new Xs({
3533
+ (r) => new to({
3515
3534
  ...r,
3516
3535
  keys: Object.keys(r.metadata)
3517
3536
  })
3518
3537
  ),
3519
- path: Te
3538
+ path: Pe
3520
3539
  });
3521
3540
  }
3522
3541
  class Lr extends L {
@@ -3575,7 +3594,7 @@ class Lr extends L {
3575
3594
  constructor(e = {}) {
3576
3595
  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_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]);
3577
3596
  for (const n in He)
3578
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3597
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3579
3598
  parent_id: this.id,
3580
3599
  encryption_level: +n
3581
3600
  }));
@@ -3636,7 +3655,7 @@ class Br extends L {
3636
3655
  e.control_system || e.system
3637
3656
  ), this.has_runtime_error = e.has_runtime_error || !1, this.error_timestamp = e.error_timestamp || 0, this.driver = new Hr(e.dependency || e.driver), this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
3638
3657
  for (const n in He)
3639
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3658
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3640
3659
  parent_id: this.id,
3641
3660
  encryption_level: +n
3642
3661
  }));
@@ -3653,14 +3672,14 @@ const J = "modules";
3653
3672
  function Jt(t) {
3654
3673
  return new Br(t);
3655
3674
  }
3656
- function sc(t = {}) {
3675
+ function uc(t = {}) {
3657
3676
  return O({ query_params: t, fn: Jt, path: J });
3658
3677
  }
3659
- function oc(t, e = {}) {
3678
+ function cc(t, e = {}) {
3660
3679
  return k({ id: t, query_params: e, fn: Jt, path: J });
3661
3680
  }
3662
- function uc(t, e, n = "patch") {
3663
- return E({
3681
+ function ac(t, e, n = "patch") {
3682
+ return T({
3664
3683
  id: t,
3665
3684
  form_data: e,
3666
3685
  query_params: {},
@@ -3669,37 +3688,37 @@ function uc(t, e, n = "patch") {
3669
3688
  path: J
3670
3689
  });
3671
3690
  }
3672
- function cc(t) {
3673
- return T({ form_data: t, query_params: {}, fn: Jt, path: J });
3691
+ function lc(t) {
3692
+ return P({ form_data: t, query_params: {}, fn: Jt, path: J });
3674
3693
  }
3675
- function ac(t) {
3676
- return I({ id: t, query_params: {}, path: J });
3694
+ function hc(t) {
3695
+ return E({ id: t, query_params: {}, path: J });
3677
3696
  }
3678
- function lc(t) {
3697
+ function fc(t) {
3679
3698
  return m({ id: t, task_name: "start", path: J });
3680
3699
  }
3681
- function hc(t) {
3700
+ function dc(t) {
3682
3701
  return m({ id: t, task_name: "stop", path: J });
3683
3702
  }
3684
- function fc(t) {
3703
+ function pc(t) {
3685
3704
  return m({ id: t, task_name: "state", method: "get", path: J });
3686
3705
  }
3687
- function dc(t, e) {
3706
+ function _c(t, e) {
3688
3707
  return m({ id: t, task_name: `state/${e}`, method: "get", path: J });
3689
3708
  }
3690
- function pc(t) {
3709
+ function mc(t) {
3691
3710
  return m({ id: t, task_name: "load", method: "post", path: J });
3692
3711
  }
3693
- function _c(t) {
3712
+ function yc(t) {
3694
3713
  return m({
3695
3714
  id: t,
3696
3715
  task_name: "settings",
3697
3716
  method: "get",
3698
- callback: (e) => e.map((n) => new Ie(n)),
3717
+ callback: (e) => e.map((n) => new Ee(n)),
3699
3718
  path: J
3700
3719
  });
3701
3720
  }
3702
- function mc(t) {
3721
+ function gc(t) {
3703
3722
  return m({
3704
3723
  id: t,
3705
3724
  task_name: "error",
@@ -3707,7 +3726,7 @@ function mc(t) {
3707
3726
  path: J
3708
3727
  });
3709
3728
  }
3710
- function yc(t, e, n = []) {
3729
+ function bc(t, e, n = []) {
3711
3730
  return m({
3712
3731
  id: t,
3713
3732
  task_name: `exec/${encodeURIComponent(e)}`,
@@ -3715,7 +3734,7 @@ function yc(t, e, n = []) {
3715
3734
  path: J
3716
3735
  });
3717
3736
  }
3718
- class to extends L {
3737
+ class ro extends L {
3719
3738
  /** Type of auth source */
3720
3739
  type = "oauth";
3721
3740
  /** ID of the authority associted with the auth method */
@@ -3750,16 +3769,16 @@ class to extends L {
3750
3769
  }
3751
3770
  const at = "oauth_auths";
3752
3771
  function Kt(t) {
3753
- return new to(t);
3772
+ return new ro(t);
3754
3773
  }
3755
- function gc(t = {}) {
3774
+ function vc(t = {}) {
3756
3775
  return O({ query_params: t, fn: Kt, path: at });
3757
3776
  }
3758
- function bc(t) {
3777
+ function Sc(t) {
3759
3778
  return k({ id: t, query_params: {}, fn: Kt, path: at });
3760
3779
  }
3761
- function vc(t, e, n = "patch") {
3762
- return E({
3780
+ function kc(t, e, n = "patch") {
3781
+ return T({
3763
3782
  id: t,
3764
3783
  form_data: e,
3765
3784
  query_params: {},
@@ -3768,14 +3787,14 @@ function vc(t, e, n = "patch") {
3768
3787
  path: at
3769
3788
  });
3770
3789
  }
3771
- function Sc(t) {
3772
- return T({ form_data: t, query_params: {}, fn: Kt, path: at });
3790
+ function $c(t) {
3791
+ return P({ form_data: t, query_params: {}, fn: Kt, path: at });
3773
3792
  }
3774
- function kc(t) {
3775
- return I({ id: t, query_params: {}, path: at });
3793
+ function xc(t) {
3794
+ return E({ id: t, query_params: {}, path: at });
3776
3795
  }
3777
3796
  var Vr = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(Vr || {});
3778
- class no extends L {
3797
+ class io extends L {
3779
3798
  /** Name of the folder on the server to pull the repository */
3780
3799
  folder_name;
3781
3800
  /** Description of the contents of the repository */
@@ -3804,16 +3823,16 @@ class no extends L {
3804
3823
  }
3805
3824
  const V = "repositories";
3806
3825
  function Zt(t) {
3807
- return new no(t);
3826
+ return new io(t);
3808
3827
  }
3809
- function $c(t = {}) {
3828
+ function Ac(t = {}) {
3810
3829
  return O({ query_params: t, fn: Zt, path: V });
3811
3830
  }
3812
- function xc(t) {
3831
+ function wc(t) {
3813
3832
  return k({ id: t, query_params: {}, fn: Zt, path: V });
3814
3833
  }
3815
- function Ac(t, e, n = "patch") {
3816
- return E({
3834
+ function Oc(t, e, n = "patch") {
3835
+ return T({
3817
3836
  id: t,
3818
3837
  form_data: e,
3819
3838
  query_params: {},
@@ -3822,41 +3841,41 @@ function Ac(t, e, n = "patch") {
3822
3841
  path: V
3823
3842
  });
3824
3843
  }
3825
- function wc(t) {
3826
- return T({ form_data: t, query_params: {}, fn: Zt, path: V });
3844
+ function Ec(t) {
3845
+ return P({ form_data: t, query_params: {}, fn: Zt, path: V });
3827
3846
  }
3828
- function Oc(t) {
3829
- return I({ id: t, query_params: {}, path: V });
3847
+ function Ic(t) {
3848
+ return E({ id: t, query_params: {}, path: V });
3830
3849
  }
3831
- function Ic() {
3850
+ function Pc() {
3832
3851
  return k({
3833
3852
  id: "interfaces",
3834
3853
  query_params: {},
3835
3854
  path: V
3836
3855
  });
3837
3856
  }
3838
- function Pc(t) {
3857
+ function Tc(t) {
3839
3858
  return k({
3840
3859
  id: "remote_default_branch",
3841
3860
  query_params: t,
3842
3861
  path: V
3843
3862
  });
3844
3863
  }
3845
- function Tc(t) {
3864
+ function qc(t) {
3846
3865
  return k({
3847
3866
  id: "remote_branches",
3848
3867
  query_params: t,
3849
3868
  path: V
3850
3869
  });
3851
3870
  }
3852
- function Ec(t) {
3871
+ function Uc(t) {
3853
3872
  return k({
3854
3873
  id: "remote_commits",
3855
3874
  query_params: t,
3856
3875
  path: V
3857
3876
  });
3858
3877
  }
3859
- function qc(t, e) {
3878
+ function Rc(t, e) {
3860
3879
  return m({
3861
3880
  id: t,
3862
3881
  task_name: "drivers",
@@ -3865,7 +3884,7 @@ function qc(t, e) {
3865
3884
  path: V
3866
3885
  });
3867
3886
  }
3868
- function Uc(t, e) {
3887
+ function Mc(t, e) {
3869
3888
  return m({
3870
3889
  id: t,
3871
3890
  task_name: "commits",
@@ -3874,7 +3893,7 @@ function Uc(t, e) {
3874
3893
  path: V
3875
3894
  });
3876
3895
  }
3877
- function Rc(t) {
3896
+ function Cc(t) {
3878
3897
  return m({
3879
3898
  id: t,
3880
3899
  task_name: "branches",
@@ -3882,7 +3901,7 @@ function Rc(t) {
3882
3901
  path: V
3883
3902
  });
3884
3903
  }
3885
- function Mc(t) {
3904
+ function Dc(t) {
3886
3905
  return m({
3887
3906
  id: t,
3888
3907
  task_name: "default_branch",
@@ -3890,7 +3909,7 @@ function Mc(t) {
3890
3909
  path: V
3891
3910
  });
3892
3911
  }
3893
- function Cc(t, e) {
3912
+ function Nc(t, e) {
3894
3913
  return m({
3895
3914
  id: t,
3896
3915
  task_name: "details",
@@ -3899,7 +3918,7 @@ function Cc(t, e) {
3899
3918
  path: V
3900
3919
  });
3901
3920
  }
3902
- function Dc(t, e) {
3921
+ function Fc(t, e) {
3903
3922
  return m({
3904
3923
  id: t,
3905
3924
  task_name: "pull",
@@ -3908,7 +3927,7 @@ function Dc(t, e) {
3908
3927
  path: V
3909
3928
  });
3910
3929
  }
3911
- function Nc(t, e) {
3930
+ function jc(t, e) {
3912
3931
  return m({
3913
3932
  id: t,
3914
3933
  task_name: "folders",
@@ -3917,7 +3936,7 @@ function Nc(t, e) {
3917
3936
  path: V
3918
3937
  });
3919
3938
  }
3920
- class ro extends L {
3939
+ class so extends L {
3921
3940
  /** Type of auth source */
3922
3941
  type = "saml";
3923
3942
  /** ID of the authority associted with the auth method */
@@ -3957,16 +3976,16 @@ class ro extends L {
3957
3976
  }
3958
3977
  const lt = "saml_auths";
3959
3978
  function Xt(t) {
3960
- return new ro(t);
3979
+ return new so(t);
3961
3980
  }
3962
- function jc(t = {}) {
3981
+ function zc(t = {}) {
3963
3982
  return O({ query_params: t, fn: Xt, path: lt });
3964
3983
  }
3965
- function Fc(t) {
3984
+ function Hc(t) {
3966
3985
  return k({ id: t, query_params: {}, fn: Xt, path: lt });
3967
3986
  }
3968
- function zc(t, e, n = "patch") {
3969
- return E({
3987
+ function Wc(t, e, n = "patch") {
3988
+ return T({
3970
3989
  id: t,
3971
3990
  form_data: e,
3972
3991
  query_params: {},
@@ -3975,24 +3994,24 @@ function zc(t, e, n = "patch") {
3975
3994
  path: lt
3976
3995
  });
3977
3996
  }
3978
- function Hc(t) {
3979
- return T({ form_data: t, query_params: {}, fn: Xt, path: lt });
3997
+ function Lc(t) {
3998
+ return P({ form_data: t, query_params: {}, fn: Xt, path: lt });
3980
3999
  }
3981
- function Wc(t) {
3982
- return I({ id: t, query_params: {}, path: lt });
4000
+ function Bc(t) {
4001
+ return E({ id: t, query_params: {}, path: lt });
3983
4002
  }
3984
4003
  const We = "settings";
3985
4004
  function ht(t) {
3986
- return new Ie(t);
4005
+ return new Ee(t);
3987
4006
  }
3988
- function Lc(t = {}) {
4007
+ function Vc(t = {}) {
3989
4008
  return O({ query_params: t, fn: ht, path: We });
3990
4009
  }
3991
- function Bc(t) {
4010
+ function Qc(t) {
3992
4011
  return k({ id: t, query_params: {}, fn: ht, path: We });
3993
4012
  }
3994
- function Vc(t, e, n = {}, r = "patch") {
3995
- return E({
4013
+ function Yc(t, e, n = {}, r = "patch") {
4014
+ return T({
3996
4015
  id: t,
3997
4016
  form_data: e,
3998
4017
  query_params: n,
@@ -4001,13 +4020,13 @@ function Vc(t, e, n = {}, r = "patch") {
4001
4020
  path: We
4002
4021
  });
4003
4022
  }
4004
- function Qc(t, e = {}) {
4005
- return T({ form_data: t, query_params: e, fn: ht, path: We });
4023
+ function Gc(t, e = {}) {
4024
+ return P({ form_data: t, query_params: e, fn: ht, path: We });
4006
4025
  }
4007
- function Yc(t) {
4008
- return I({ id: t, query_params: {}, path: We });
4026
+ function Jc(t) {
4027
+ return E({ id: t, query_params: {}, path: We });
4009
4028
  }
4010
- function Gc(t, e = {}) {
4029
+ function Kc(t, e = {}) {
4011
4030
  return m({
4012
4031
  id: t,
4013
4032
  task_name: "history",
@@ -4018,55 +4037,55 @@ function Gc(t, e = {}) {
4018
4037
  });
4019
4038
  }
4020
4039
  const M = "systems";
4021
- function Ee(t) {
4040
+ function Te(t) {
4022
4041
  return new Lr(t);
4023
4042
  }
4024
- function Jc(t = {}) {
4025
- return O({ query_params: t, fn: Ee, path: M });
4043
+ function Zc(t = {}) {
4044
+ return O({ query_params: t, fn: Te, path: M });
4026
4045
  }
4027
- function Kc(t) {
4028
- return O({ query_params: t, fn: Ee, path: `${M}/with_emails` });
4046
+ function Xc(t) {
4047
+ return O({ query_params: t, fn: Te, path: `${M}/with_emails` });
4029
4048
  }
4030
- function Zc(t, e = {}) {
4031
- return k({ id: t, query_params: e, fn: Ee, path: M });
4049
+ function ea(t, e = {}) {
4050
+ return k({ id: t, query_params: e, fn: Te, path: M });
4032
4051
  }
4033
- function Xc(t, e, n = "patch") {
4034
- return E({
4052
+ function ta(t, e, n = "patch") {
4053
+ return T({
4035
4054
  id: t,
4036
4055
  form_data: e,
4037
4056
  query_params: {},
4038
4057
  method: n,
4039
- fn: Ee,
4058
+ fn: Te,
4040
4059
  path: M
4041
4060
  });
4042
4061
  }
4043
- function ea(t) {
4044
- return T({ form_data: t, query_params: {}, fn: Ee, path: M });
4062
+ function na(t) {
4063
+ return P({ form_data: t, query_params: {}, fn: Te, path: M });
4045
4064
  }
4046
- function ta(t) {
4047
- return I({ id: t, query_params: {}, path: M });
4065
+ function ra(t) {
4066
+ return E({ id: t, query_params: {}, path: M });
4048
4067
  }
4049
- function na(t, e, n = {}) {
4068
+ function ia(t, e, n = {}) {
4050
4069
  return m({
4051
4070
  id: t,
4052
4071
  task_name: `module/${e}`,
4053
4072
  form_data: n,
4054
4073
  method: "put",
4055
- callback: (r) => Ee(r),
4074
+ callback: (r) => Te(r),
4056
4075
  path: M
4057
4076
  });
4058
4077
  }
4059
- function ra(t, e) {
4078
+ function sa(t, e) {
4060
4079
  return m({
4061
4080
  id: t,
4062
4081
  task_name: `module/${e}`,
4063
4082
  form_data: {},
4064
4083
  method: "del",
4065
- callback: (n) => Ee(n),
4084
+ callback: (n) => Te(n),
4066
4085
  path: M
4067
4086
  });
4068
4087
  }
4069
- function ia(t, e = {}) {
4088
+ function oa(t, e = {}) {
4070
4089
  return m({
4071
4090
  id: t,
4072
4091
  task_name: "start",
@@ -4074,7 +4093,7 @@ function ia(t, e = {}) {
4074
4093
  path: M
4075
4094
  });
4076
4095
  }
4077
- function sa(t, e = {}) {
4096
+ function ua(t, e = {}) {
4078
4097
  return m({
4079
4098
  id: t,
4080
4099
  task_name: "stop",
@@ -4082,7 +4101,7 @@ function sa(t, e = {}) {
4082
4101
  path: M
4083
4102
  });
4084
4103
  }
4085
- function oa(t, e, n, r = 1, i = []) {
4104
+ function ca(t, e, n, r = 1, i = []) {
4086
4105
  return m({
4087
4106
  id: t,
4088
4107
  task_name: `${n}_${r}/${encodeURIComponent(e)}`,
@@ -4090,7 +4109,7 @@ function oa(t, e, n, r = 1, i = []) {
4090
4109
  path: M
4091
4110
  });
4092
4111
  }
4093
- function ua(t, e, n = 1) {
4112
+ function aa(t, e, n = 1) {
4094
4113
  return m({
4095
4114
  id: t,
4096
4115
  task_name: `${e}_${n}`,
@@ -4098,7 +4117,7 @@ function ua(t, e, n = 1) {
4098
4117
  path: M
4099
4118
  });
4100
4119
  }
4101
- function ca(t, e, n = 1, r) {
4120
+ function la(t, e, n = 1, r) {
4102
4121
  return m({
4103
4122
  id: t,
4104
4123
  task_name: `${e}_${n}/${r}`,
@@ -4106,7 +4125,7 @@ function ca(t, e, n = 1, r) {
4106
4125
  path: M
4107
4126
  });
4108
4127
  }
4109
- function aa(t, e, n = 1) {
4128
+ function ha(t, e, n = 1) {
4110
4129
  return m({
4111
4130
  id: t,
4112
4131
  task_name: `functions/${e}_${n}`,
@@ -4114,21 +4133,21 @@ function aa(t, e, n = 1) {
4114
4133
  path: M
4115
4134
  });
4116
4135
  }
4117
- function la(t) {
4136
+ function fa(t) {
4118
4137
  return O({
4119
4138
  query_params: {},
4120
- fn: (e) => new Un(e),
4139
+ fn: (e) => new Mn(e),
4121
4140
  path: `${M}/${t}/zones`
4122
4141
  });
4123
4142
  }
4124
- function ha(t, e = {}) {
4143
+ function da(t, e = {}) {
4125
4144
  return O({
4126
4145
  query_params: e,
4127
4146
  fn: (n) => new me(n),
4128
4147
  path: `${M}/${t}/triggers`
4129
4148
  });
4130
4149
  }
4131
- function fa(t, e) {
4150
+ function pa(t, e) {
4132
4151
  return m({
4133
4152
  id: t,
4134
4153
  task_name: "triggers",
@@ -4138,7 +4157,7 @@ function fa(t, e) {
4138
4157
  path: M
4139
4158
  });
4140
4159
  }
4141
- function da(t, e) {
4160
+ function _a(t, e) {
4142
4161
  return m({
4143
4162
  id: t,
4144
4163
  task_name: `triggers/${e}`,
@@ -4146,21 +4165,21 @@ function da(t, e) {
4146
4165
  path: M
4147
4166
  });
4148
4167
  }
4149
- function pa(t) {
4168
+ function ma(t) {
4150
4169
  return m({
4151
4170
  id: t,
4152
4171
  task_name: "settings",
4153
4172
  method: "get",
4154
- callback: (e) => e.map((n) => new Ie(n)),
4173
+ callback: (e) => e.map((n) => new Ee(n)),
4155
4174
  path: M
4156
4175
  });
4157
4176
  }
4158
- function _a(t = {}) {
4177
+ function ya(t = {}) {
4159
4178
  const e = x(), n = e.startsWith("https") ? "wss:" : "ws:", r = e.startsWith("https") ? "https:" : "http:";
4160
4179
  let i = e.replace(r, n) + `${M}/control`;
4161
4180
  return t.fixed_device && (i += `?fixed_device=${encodeURIComponent(String(t.fixed_device))}`), i;
4162
4181
  }
4163
- function ma(t, e = {}) {
4182
+ function ga(t, e = {}) {
4164
4183
  return m({
4165
4184
  id: t,
4166
4185
  task_name: "metadata",
@@ -4169,7 +4188,7 @@ function ma(t, e = {}) {
4169
4188
  path: M
4170
4189
  });
4171
4190
  }
4172
- function ya(t, e, n = {}) {
4191
+ function ba(t, e, n = {}) {
4173
4192
  return m({
4174
4193
  id: t,
4175
4194
  task_name: `triggers/${encodeURIComponent(e)}`,
@@ -4179,7 +4198,7 @@ function ya(t, e, n = {}) {
4179
4198
  path: M
4180
4199
  });
4181
4200
  }
4182
- function ga(t, e, n, r = "patch") {
4201
+ function va(t, e, n, r = "patch") {
4183
4202
  return m({
4184
4203
  id: t,
4185
4204
  task_name: `triggers/${encodeURIComponent(e)}`,
@@ -4193,14 +4212,14 @@ const Le = "triggers";
4193
4212
  function en(t) {
4194
4213
  return new me(t);
4195
4214
  }
4196
- function ba(t = {}) {
4215
+ function Sa(t = {}) {
4197
4216
  return O({ query_params: t, fn: en, path: Le });
4198
4217
  }
4199
- function va(t, e = {}) {
4218
+ function ka(t, e = {}) {
4200
4219
  return k({ id: t, query_params: e, fn: en, path: Le });
4201
4220
  }
4202
- function Sa(t, e, n = "patch") {
4203
- return E({
4221
+ function $a(t, e, n = "patch") {
4222
+ return T({
4204
4223
  id: t,
4205
4224
  form_data: e,
4206
4225
  query_params: {},
@@ -4209,13 +4228,13 @@ function Sa(t, e, n = "patch") {
4209
4228
  path: Le
4210
4229
  });
4211
4230
  }
4212
- function ka(t) {
4213
- return T({ form_data: t, query_params: {}, fn: en, path: Le });
4231
+ function xa(t) {
4232
+ return P({ form_data: t, query_params: {}, fn: en, path: Le });
4214
4233
  }
4215
- function $a(t) {
4216
- return I({ id: t, query_params: {}, path: Le });
4234
+ function Aa(t) {
4235
+ return E({ id: t, query_params: {}, path: Le });
4217
4236
  }
4218
- function xa(t) {
4237
+ function wa(t) {
4219
4238
  return m({
4220
4239
  id: t,
4221
4240
  task_name: "instances",
@@ -4225,8 +4244,8 @@ function xa(t) {
4225
4244
  path: Le
4226
4245
  });
4227
4246
  }
4228
- var io = /* @__PURE__ */ ((t) => (t.EQ = "equal", t.NEQ = "not_equal", t.GT = "greater_than", t.GTE = "greater_than_or_equal", t.LT = "less_than", t.LTE = "less_than_or_equal", t.AND = "and", t.OR = "or", t.XOR = "exclusive_or", t))(io || {}), so = /* @__PURE__ */ ((t) => (t.AT = "at", t.CRON = "cron", t))(so || {}), oo = /* @__PURE__ */ ((t) => (t[t.ExecuteBefore = 0] = "ExecuteBefore", t[t.ExecuteAfter = 1] = "ExecuteAfter", t[t.PayloadOnly = 2] = "PayloadOnly", t[t.IgnorePayload = 3] = "IgnorePayload", t))(oo || {});
4229
- class uo extends L {
4247
+ var oo = /* @__PURE__ */ ((t) => (t.EQ = "equal", t.NEQ = "not_equal", t.GT = "greater_than", t.GTE = "greater_than_or_equal", t.LT = "less_than", t.LTE = "less_than_or_equal", t.AND = "and", t.OR = "or", t.XOR = "exclusive_or", t))(oo || {}), uo = /* @__PURE__ */ ((t) => (t.AT = "at", t.CRON = "cron", t))(uo || {}), co = /* @__PURE__ */ ((t) => (t[t.ExecuteBefore = 0] = "ExecuteBefore", t[t.ExecuteAfter = 1] = "ExecuteAfter", t[t.PayloadOnly = 2] = "PayloadOnly", t[t.IgnorePayload = 3] = "IgnorePayload", t))(co || {});
4248
+ class ao extends L {
4230
4249
  /** Hash of the email address of the user */
4231
4250
  email_digest;
4232
4251
  /** ID of the authority associated with the user */
@@ -4281,19 +4300,19 @@ class uo extends L {
4281
4300
  }
4282
4301
  const K = "users";
4283
4302
  function Be(t) {
4284
- return new uo(t);
4303
+ return new ao(t);
4285
4304
  }
4286
- function Aa(t = {}) {
4305
+ function Oa(t = {}) {
4287
4306
  return O({ query_params: t, fn: Be, path: K });
4288
4307
  }
4289
- function wa(t, e = {}) {
4308
+ function Ea(t, e = {}) {
4290
4309
  return k({ id: t, query_params: e, fn: Be, path: K });
4291
4310
  }
4292
- function Oa(t = {}) {
4311
+ function Ia(t = {}) {
4293
4312
  return k({ id: "current", query_params: t, fn: Be, path: K });
4294
4313
  }
4295
- function Ia(t, e, n = "patch") {
4296
- return E({
4314
+ function Pa(t, e, n = "patch") {
4315
+ return T({
4297
4316
  id: t,
4298
4317
  form_data: e,
4299
4318
  query_params: {},
@@ -4302,25 +4321,25 @@ function Ia(t, e, n = "patch") {
4302
4321
  path: K
4303
4322
  });
4304
4323
  }
4305
- function Pa(t) {
4306
- return T({ form_data: t, query_params: {}, fn: Be, path: K });
4324
+ function Ta(t) {
4325
+ return P({ form_data: t, query_params: {}, fn: Be, path: K });
4307
4326
  }
4308
- function Ta(t, e = {}) {
4309
- return I({ id: t, query_params: e, path: K });
4327
+ function qa(t, e = {}) {
4328
+ return E({ id: t, query_params: e, path: K });
4310
4329
  }
4311
- function Ea(t) {
4330
+ function Ua(t) {
4312
4331
  const e = R(t), n = `${x()}${K}/groups${e ? "?" + e : ""}`;
4313
- return N(n).pipe(g((r) => r));
4332
+ return N(n).pipe(b((r) => r));
4314
4333
  }
4315
- function qa(t) {
4334
+ function Ra(t) {
4316
4335
  const e = R(t), n = `${x()}${K}/metadata/search${e ? "?" + e : ""}`;
4317
- return N(n).pipe(g((r) => r));
4336
+ return N(n).pipe(b((r) => r));
4318
4337
  }
4319
- function Ua() {
4338
+ function Ma() {
4320
4339
  const t = `${x()}${K}/resource_token`;
4321
- return G(t, {}).pipe(g((e) => e));
4340
+ return G(t, {}).pipe(b((e) => e));
4322
4341
  }
4323
- function Ra(t, e = {}) {
4342
+ function Ca(t, e = {}) {
4324
4343
  return m({
4325
4344
  id: t,
4326
4345
  task_name: "metadata",
@@ -4329,15 +4348,15 @@ function Ra(t, e = {}) {
4329
4348
  path: K
4330
4349
  });
4331
4350
  }
4332
- function Ma(t) {
4351
+ function Da(t) {
4333
4352
  const e = `${x()}${K}/${encodeURIComponent(t)}/resource_token`;
4334
4353
  return Oe(e, { response_type: "void" });
4335
4354
  }
4336
- function Ca(t) {
4355
+ function Na(t) {
4337
4356
  const e = `${x()}${K}/${encodeURIComponent(t)}/resource_token`;
4338
- return G(e, {}).pipe(g((n) => n));
4357
+ return G(e, {}).pipe(b((n) => n));
4339
4358
  }
4340
- function Da(t) {
4359
+ function Fa(t) {
4341
4360
  return m({
4342
4361
  id: t,
4343
4362
  task_name: "revive",
@@ -4349,12 +4368,12 @@ function Da(t) {
4349
4368
  }
4350
4369
  const le = "zones";
4351
4370
  function tn(t) {
4352
- return new Un(t);
4371
+ return new Mn(t);
4353
4372
  }
4354
- function Na(t = {}) {
4373
+ function ja(t = {}) {
4355
4374
  return O({ query_params: t, fn: tn, path: le });
4356
4375
  }
4357
- function ja(t = {}) {
4376
+ function za(t = {}) {
4358
4377
  return k({
4359
4378
  id: "tags",
4360
4379
  query_params: t,
@@ -4362,11 +4381,11 @@ function ja(t = {}) {
4362
4381
  path: le
4363
4382
  });
4364
4383
  }
4365
- function Fa(t, e = {}) {
4384
+ function Ha(t, e = {}) {
4366
4385
  return k({ id: t, query_params: e, fn: tn, path: le });
4367
4386
  }
4368
- function za(t, e, n = "patch") {
4369
- return E({
4387
+ function Wa(t, e, n = "patch") {
4388
+ return T({
4370
4389
  id: t,
4371
4390
  form_data: e,
4372
4391
  query_params: {},
@@ -4375,20 +4394,20 @@ function za(t, e, n = "patch") {
4375
4394
  path: le
4376
4395
  });
4377
4396
  }
4378
- function Ha(t) {
4379
- return T({ form_data: t, query_params: {}, fn: tn, path: le });
4397
+ function La(t) {
4398
+ return P({ form_data: t, query_params: {}, fn: tn, path: le });
4380
4399
  }
4381
- function Wa(t) {
4382
- return I({ id: t, query_params: {}, path: le });
4400
+ function Ba(t) {
4401
+ return E({ id: t, query_params: {}, path: le });
4383
4402
  }
4384
- function La(t, e = {}) {
4403
+ function Va(t, e = {}) {
4385
4404
  return O({
4386
4405
  query_params: e,
4387
4406
  fn: (n) => new me(n),
4388
4407
  path: `${le}/${t}/triggers`
4389
4408
  });
4390
4409
  }
4391
- function Ba(t, e, n, r = 1, i = []) {
4410
+ function Qa(t, e, n, r = 1, i = []) {
4392
4411
  return m({
4393
4412
  id: t,
4394
4413
  task_name: `exec/${encodeURIComponent(
@@ -4398,7 +4417,7 @@ function Ba(t, e, n, r = 1, i = []) {
4398
4417
  path: le
4399
4418
  });
4400
4419
  }
4401
- function Va(t, e = {}) {
4420
+ function Ya(t, e = {}) {
4402
4421
  return m({
4403
4422
  id: t,
4404
4423
  task_name: "metadata",
@@ -4408,7 +4427,7 @@ function Va(t, e = {}) {
4408
4427
  });
4409
4428
  }
4410
4429
  var Qr = /* @__PURE__ */ ((t) => (t[t.Default = 0] = "Default", t[t.Cut = 1] = "Cut", t[t.CrossFade = 2] = "CrossFade", t[t.SlideTop = 3] = "SlideTop", t[t.SlideLeft = 4] = "SlideLeft", t[t.SlideRight = 5] = "SlideRight", t[t.SlideBottom = 6] = "SlideBottom", t))(Qr || {});
4411
- class co {
4430
+ class lo {
4412
4431
  id;
4413
4432
  created_at;
4414
4433
  updated_at;
@@ -4434,10 +4453,10 @@ class co {
4434
4453
  return `/api/engine/v2/uploads/${this.thumbnail_id}/url`;
4435
4454
  }
4436
4455
  constructor(e) {
4437
- this.id = e.id || "", this.created_at = e.created_at || Qn(Date.now()), this.updated_at = e.updated_at || Qn(Date.now()), this.name = e.name || "", this.description = e.description || "", this.authority_id = e.authority_id || "", this.start_time = e.start_time || 0, this.play_time = e.play_time || 0, this.video_length = e.video_length || 0, this.animation = e.animation, this.media_type = e.media_type || "unknown", this.orientation = e.orientation || "unspecified", this.media_uri = e.media_uri || "", this.media_id = e.media_id || "", this.thumbnail_id = e.thumbnail_id || "", this.play_count = e.play_count || 0, this.valid_from = e.valid_from, this.valid_until = e.valid_until;
4456
+ this.id = e.id || "", this.created_at = e.created_at || Gn(Date.now()), this.updated_at = e.updated_at || Gn(Date.now()), this.name = e.name || "", this.description = e.description || "", this.authority_id = e.authority_id || "", this.start_time = e.start_time || 0, this.play_time = e.play_time || 0, this.video_length = e.video_length || 0, this.animation = e.animation, this.media_type = e.media_type || "unknown", this.orientation = e.orientation || "unspecified", this.media_uri = e.media_uri || "", this.media_id = e.media_id || "", this.thumbnail_id = e.thumbnail_id || "", this.play_count = e.play_count || 0, this.valid_from = e.valid_from, this.valid_until = e.valid_until;
4438
4457
  }
4439
4458
  }
4440
- class Rn {
4459
+ class Cn {
4441
4460
  id;
4442
4461
  playlist_id;
4443
4462
  items;
@@ -4454,7 +4473,7 @@ class Rn {
4454
4473
  this.id = e.id || "", this.playlist_id = e.playlist_id || "", this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0, this.items = e.items || [], this.approved = !!e.approved, this.approved_by_id = e.approved_by_id || "", this.approved_by_email = e.approved_by_email || "", this.approved_by_name = e.approved_by_name || "", this.user_id = e.user_id || "", this.user_name = e.user_name || "", this.user_email = e.user_email || "";
4455
4474
  }
4456
4475
  }
4457
- class ao {
4476
+ class ho {
4458
4477
  id;
4459
4478
  created_at;
4460
4479
  updated_at;
@@ -4478,10 +4497,10 @@ class ao {
4478
4497
  }
4479
4498
  }
4480
4499
  const Yr = "signage";
4481
- function Qa(t, e = {}, n) {
4500
+ function Ga(t, e = {}, n) {
4482
4501
  return k({ id: t, query_params: e, fn: (r) => r, path: `${Yr}`, options: n });
4483
4502
  }
4484
- function Ya(t) {
4503
+ function Ja(t) {
4485
4504
  return m({
4486
4505
  id: t,
4487
4506
  task_name: "metrics",
@@ -4493,16 +4512,16 @@ function Ya(t) {
4493
4512
  }
4494
4513
  const Ve = "signage/media";
4495
4514
  function nn(t) {
4496
- return new co(t);
4515
+ return new lo(t);
4497
4516
  }
4498
- function Ga(t = {}) {
4517
+ function Ka(t = {}) {
4499
4518
  return O({ query_params: t, fn: nn, path: Ve });
4500
4519
  }
4501
- function Ja(t, e = {}) {
4520
+ function Za(t, e = {}) {
4502
4521
  return k({ id: t, query_params: e, fn: nn, path: Ve });
4503
4522
  }
4504
- function Ka(t, e, n = "patch") {
4505
- return E({
4523
+ function Xa(t, e, n = "patch") {
4524
+ return T({
4506
4525
  id: t,
4507
4526
  form_data: e,
4508
4527
  query_params: {},
@@ -4511,28 +4530,28 @@ function Ka(t, e, n = "patch") {
4511
4530
  path: Ve
4512
4531
  });
4513
4532
  }
4514
- function Za(t) {
4515
- return T({
4533
+ function el(t) {
4534
+ return P({
4516
4535
  form_data: t,
4517
4536
  query_params: {},
4518
4537
  fn: nn,
4519
4538
  path: Ve
4520
4539
  });
4521
4540
  }
4522
- function Xa(t, e = {}) {
4523
- return I({ id: t, query_params: e, path: Ve });
4541
+ function tl(t, e = {}) {
4542
+ return E({ id: t, query_params: e, path: Ve });
4524
4543
  }
4525
- function el(t) {
4544
+ function nl(t) {
4526
4545
  return `${x()}/${Ve}/${t}/thumbnail`;
4527
4546
  }
4528
4547
  const he = "signage/playlists";
4529
4548
  function rn(t) {
4530
- return new ao(t);
4549
+ return new ho(t);
4531
4550
  }
4532
- function tl(t = {}) {
4551
+ function rl(t = {}) {
4533
4552
  return O({ query_params: t, fn: rn, path: he });
4534
4553
  }
4535
- function nl(t, e = {}) {
4554
+ function il(t, e = {}) {
4536
4555
  return k({
4537
4556
  id: t,
4538
4557
  query_params: e,
@@ -4540,8 +4559,8 @@ function nl(t, e = {}) {
4540
4559
  path: he
4541
4560
  });
4542
4561
  }
4543
- function rl(t, e, n = "patch") {
4544
- return E({
4562
+ function sl(t, e, n = "patch") {
4563
+ return T({
4545
4564
  id: t,
4546
4565
  form_data: e,
4547
4566
  query_params: {},
@@ -4550,40 +4569,40 @@ function rl(t, e, n = "patch") {
4550
4569
  path: he
4551
4570
  });
4552
4571
  }
4553
- function il(t) {
4554
- return T({
4572
+ function ol(t) {
4573
+ return P({
4555
4574
  form_data: t,
4556
4575
  query_params: {},
4557
4576
  fn: rn,
4558
4577
  path: he
4559
4578
  });
4560
4579
  }
4561
- function sl(t, e = {}) {
4562
- return I({ id: t, query_params: e, path: he });
4580
+ function ul(t, e = {}) {
4581
+ return E({ id: t, query_params: e, path: he });
4563
4582
  }
4564
- function ol(t, e = {}) {
4583
+ function cl(t, e = {}) {
4565
4584
  return m({
4566
4585
  id: t,
4567
4586
  task_name: "media",
4568
4587
  form_data: e,
4569
4588
  method: "get",
4570
- callback: (n) => new Rn(n),
4589
+ callback: (n) => new Cn(n),
4571
4590
  path: he
4572
4591
  });
4573
4592
  }
4574
- function ul(t, e = {}) {
4593
+ function al(t, e = {}) {
4575
4594
  return m({
4576
4595
  id: t,
4577
4596
  task_name: "media/revisions",
4578
4597
  form_data: e,
4579
4598
  method: "get",
4580
4599
  callback: (n) => n.map(
4581
- (r) => new Rn(r)
4600
+ (r) => new Cn(r)
4582
4601
  ),
4583
4602
  path: he
4584
4603
  });
4585
4604
  }
4586
- function cl(t) {
4605
+ function ll(t) {
4587
4606
  return m({
4588
4607
  id: t,
4589
4608
  task_name: "media/approve",
@@ -4591,14 +4610,14 @@ function cl(t) {
4591
4610
  path: he
4592
4611
  });
4593
4612
  }
4594
- function al(t, e) {
4613
+ function hl(t, e) {
4595
4614
  return m({
4596
4615
  id: t,
4597
4616
  task_name: "media",
4598
4617
  form_data: e,
4599
4618
  method: "post",
4600
4619
  path: he,
4601
- callback: (n) => new Rn(n)
4620
+ callback: (n) => new Cn(n)
4602
4621
  });
4603
4622
  }
4604
4623
  class Gr {
@@ -4612,15 +4631,15 @@ class Gr {
4612
4631
  }
4613
4632
  }
4614
4633
  const Jr = "/api/staff/v1/surveys/answers";
4615
- function ll(t = {}) {
4634
+ function fl(t = {}) {
4616
4635
  const e = R(t);
4617
4636
  return N(`${Jr}${e ? "?" + e : ""}`).pipe(
4618
- g((n) => n.map((r) => new Gr(r)))
4637
+ b((n) => n.map((r) => new Gr(r)))
4619
4638
  );
4620
4639
  }
4621
- function hl(t) {
4640
+ function dl(t) {
4622
4641
  return G(`${Jr}`, t).pipe(
4623
- g((e) => e.map((n) => new Gr(n)))
4642
+ b((e) => e.map((n) => new Gr(n)))
4624
4643
  );
4625
4644
  }
4626
4645
  class sn {
@@ -4634,29 +4653,29 @@ class sn {
4634
4653
  }
4635
4654
  }
4636
4655
  const ft = "/api/staff/v1/surveys/invitations";
4637
- function fl(t = {}) {
4656
+ function pl(t = {}) {
4638
4657
  const e = R(t);
4639
4658
  return N(`${ft}${e ? "?" + e : ""}`).pipe(
4640
- g((n) => n.map((r) => new sn(r)))
4659
+ b((n) => n.map((r) => new sn(r)))
4641
4660
  );
4642
4661
  }
4643
- function dl(t, e = {}) {
4662
+ function _l(t, e = {}) {
4644
4663
  const n = R(e);
4645
4664
  return N(`${ft}/${t}${n ? "?" + n : ""}`).pipe(
4646
- g((r) => new sn(r))
4665
+ b((r) => new sn(r))
4647
4666
  );
4648
4667
  }
4649
- function pl(t, e, n = "patch") {
4668
+ function ml(t, e, n = "patch") {
4650
4669
  return (n === "put" ? Ne : et)(`${ft}/${t}`, e).pipe(
4651
- g((r) => new sn(r))
4670
+ b((r) => new sn(r))
4652
4671
  );
4653
4672
  }
4654
- function _l(t) {
4673
+ function yl(t) {
4655
4674
  return G(`${ft}`, t).pipe(
4656
- g((e) => new sn(e))
4675
+ b((e) => new sn(e))
4657
4676
  );
4658
4677
  }
4659
- function ml(t, e = {}) {
4678
+ function gl(t, e = {}) {
4660
4679
  const n = R(e);
4661
4680
  return Oe(`${ft}/${t}${n ? "?" + n : ""}`);
4662
4681
  }
@@ -4676,29 +4695,29 @@ class on {
4676
4695
  }
4677
4696
  }
4678
4697
  const dt = "/api/staff/v1/surveys/questions";
4679
- function yl(t = {}) {
4698
+ function bl(t = {}) {
4680
4699
  const e = R(t);
4681
4700
  return N(`${dt}${e ? "?" + e : ""}`).pipe(
4682
- g((n) => n.map((r) => new on(r)))
4701
+ b((n) => n.map((r) => new on(r)))
4683
4702
  );
4684
4703
  }
4685
- function gl(t, e = {}) {
4704
+ function vl(t, e = {}) {
4686
4705
  const n = R(e);
4687
4706
  return N(`${dt}/${t}${n ? "?" + n : ""}`).pipe(
4688
- g((r) => new on(r))
4707
+ b((r) => new on(r))
4689
4708
  );
4690
4709
  }
4691
- function bl(t) {
4710
+ function Sl(t) {
4692
4711
  return G(`${dt}`, t).pipe(
4693
- g((e) => new on(e))
4712
+ b((e) => new on(e))
4694
4713
  );
4695
4714
  }
4696
- function vl(t, e, n = "patch") {
4715
+ function kl(t, e, n = "patch") {
4697
4716
  return (n === "put" ? Ne : et)(`${dt}/${t}`, e).pipe(
4698
- g((r) => new on(r))
4717
+ b((r) => new on(r))
4699
4718
  );
4700
4719
  }
4701
- function Sl(t, e = {}) {
4720
+ function $l(t, e = {}) {
4702
4721
  const n = R(e);
4703
4722
  return Oe(`${dt}/${t}${n ? "?" + n : ""}`);
4704
4723
  }
@@ -4715,31 +4734,31 @@ class un {
4715
4734
  }
4716
4735
  }
4717
4736
  const pt = "/api/staff/v1/surveys";
4718
- function kl(t = {}) {
4737
+ function xl(t = {}) {
4719
4738
  const e = R(t);
4720
4739
  return N(`${pt}${e ? "?" + e : ""}`).pipe(
4721
- g((n) => n.map((r) => new un(r)))
4740
+ b((n) => n.map((r) => new un(r)))
4722
4741
  );
4723
4742
  }
4724
- function $l(t, e = {}) {
4743
+ function Al(t, e = {}) {
4725
4744
  const n = R(e);
4726
4745
  return N(`${pt}/${t}${n ? "?" + n : ""}`).pipe(
4727
- g((r) => new un(r))
4746
+ b((r) => new un(r))
4728
4747
  );
4729
4748
  }
4730
- function xl(t, e, n = "patch") {
4749
+ function wl(t, e, n = "patch") {
4731
4750
  return (n === "put" ? Ne : et)(`${pt}/${t}`, e).pipe(
4732
- g((r) => new un(r))
4751
+ b((r) => new un(r))
4733
4752
  );
4734
4753
  }
4735
- function Al(t) {
4736
- return G(`${pt}`, t).pipe(g((e) => new un(e)));
4754
+ function Ol(t) {
4755
+ return G(`${pt}`, t).pipe(b((e) => new un(e)));
4737
4756
  }
4738
- function wl(t, e = {}) {
4757
+ function El(t, e = {}) {
4739
4758
  const n = R(e);
4740
4759
  return Oe(`${pt}/${t}${n ? "?" + n : ""}`);
4741
4760
  }
4742
- class lo {
4761
+ class fo {
4743
4762
  id;
4744
4763
  parent_category_id;
4745
4764
  name;
@@ -4751,7 +4770,7 @@ class lo {
4751
4770
  this.id = e.id || "", this.parent_category_id = e.parent_category_id || "", this.name = e.name || "", this.description = e.description || "", this.hidden = e.hidden || !1, this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0;
4752
4771
  }
4753
4772
  }
4754
- class ho {
4773
+ class po {
4755
4774
  id;
4756
4775
  purchase_order_number;
4757
4776
  invoice_number;
@@ -4766,7 +4785,7 @@ class ho {
4766
4785
  this.id = e.id || "", this.purchase_order_number = e.purchase_order_number || "", this.invoice_number = e.invoice_number || "", this.supplier_details = e.supplier_details || {}, this.purchase_date = e.purchase_date || 0, this.unit_price = e.unit_price || 0, this.expected_service_start_date = e.expected_service_start_date || 0, this.expected_service_end_date = e.expected_service_end_date || 0, this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0;
4767
4786
  }
4768
4787
  }
4769
- class fo {
4788
+ class _o {
4770
4789
  id;
4771
4790
  category_id;
4772
4791
  name;
@@ -4780,7 +4799,7 @@ class fo {
4780
4799
  this.id = e.id || "", this.category_id = e.category_id || "", this.name = e.name || "", this.brand = e.brand || "", this.description = e.description || "", this.model_number = e.model_number || "", this.images = e.images || [], this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0;
4781
4800
  }
4782
4801
  }
4783
- class po {
4802
+ class mo {
4784
4803
  id;
4785
4804
  parent_id;
4786
4805
  asset_type_id;
@@ -4811,16 +4830,16 @@ class po {
4811
4830
  }
4812
4831
  const ye = "assets";
4813
4832
  function qe(t) {
4814
- return new po(t);
4833
+ return new mo(t);
4815
4834
  }
4816
- function Ol(t = {}) {
4835
+ function Il(t = {}) {
4817
4836
  return O({
4818
4837
  query_params: t,
4819
4838
  fn: qe,
4820
4839
  path: ye
4821
4840
  });
4822
4841
  }
4823
- function Il(t, e = {}) {
4842
+ function Pl(t, e = {}) {
4824
4843
  return k({
4825
4844
  id: t,
4826
4845
  query_params: e,
@@ -4828,8 +4847,8 @@ function Il(t, e = {}) {
4828
4847
  path: ye
4829
4848
  });
4830
4849
  }
4831
- function Pl(t, e, n = "patch") {
4832
- return E({
4850
+ function Tl(t, e, n = "patch") {
4851
+ return T({
4833
4852
  id: t,
4834
4853
  form_data: e,
4835
4854
  query_params: {},
@@ -4838,49 +4857,49 @@ function Pl(t, e, n = "patch") {
4838
4857
  path: ye
4839
4858
  });
4840
4859
  }
4841
- function Tl(t) {
4842
- return T({
4860
+ function ql(t) {
4861
+ return P({
4843
4862
  form_data: t,
4844
4863
  query_params: {},
4845
4864
  fn: qe,
4846
4865
  path: ye
4847
4866
  });
4848
4867
  }
4849
- function El(t, e = {}) {
4850
- return I({ id: t, query_params: e, path: ye });
4868
+ function Ul(t, e = {}) {
4869
+ return E({ id: t, query_params: e, path: ye });
4851
4870
  }
4852
- function ql(t) {
4871
+ function Rl(t) {
4853
4872
  return G(
4854
4873
  `${x()}${ye}/bulk`,
4855
4874
  JSON.stringify(t),
4856
4875
  {}
4857
- ).pipe(g((e) => e.map((n) => qe(n))));
4876
+ ).pipe(b((e) => e.map((n) => qe(n))));
4858
4877
  }
4859
- function Ul(t, e = "patch") {
4878
+ function Ml(t, e = "patch") {
4860
4879
  return (e === "put" ? Ne : et)(
4861
4880
  `${x()}${ye}/bulk`,
4862
4881
  JSON.stringify(t),
4863
4882
  {}
4864
- ).pipe(g((r) => r.map((i) => qe(i))));
4883
+ ).pipe(b((r) => r.map((i) => qe(i))));
4865
4884
  }
4866
- function Rl(t, e = {}) {
4885
+ function Cl(t, e = {}) {
4867
4886
  const n = R(e);
4868
4887
  return Oe(`${x()}${ye}/bulk${n ? "?" + n : ""}`, {
4869
4888
  body: JSON.stringify(t)
4870
- }).pipe(g((r) => r.map((i) => qe(i))));
4889
+ }).pipe(b((r) => r.map((i) => qe(i))));
4871
4890
  }
4872
4891
  const _t = "asset_types";
4873
4892
  function cn(t) {
4874
- return new fo(t);
4893
+ return new _o(t);
4875
4894
  }
4876
- function Ml(t = {}) {
4895
+ function Dl(t = {}) {
4877
4896
  return O({
4878
4897
  query_params: t,
4879
4898
  fn: cn,
4880
4899
  path: _t
4881
4900
  });
4882
4901
  }
4883
- function Cl(t, e = {}) {
4902
+ function Nl(t, e = {}) {
4884
4903
  return k({
4885
4904
  id: t,
4886
4905
  query_params: e,
@@ -4888,8 +4907,8 @@ function Cl(t, e = {}) {
4888
4907
  path: _t
4889
4908
  });
4890
4909
  }
4891
- function Dl(t, e, n = "patch") {
4892
- return E({
4910
+ function Fl(t, e, n = "patch") {
4911
+ return T({
4893
4912
  id: t,
4894
4913
  form_data: e,
4895
4914
  query_params: {},
@@ -4898,29 +4917,29 @@ function Dl(t, e, n = "patch") {
4898
4917
  path: _t
4899
4918
  });
4900
4919
  }
4901
- function Nl(t) {
4902
- return T({
4920
+ function jl(t) {
4921
+ return P({
4903
4922
  form_data: t,
4904
4923
  query_params: {},
4905
4924
  fn: cn,
4906
4925
  path: _t
4907
4926
  });
4908
4927
  }
4909
- function jl(t, e = {}) {
4910
- return I({ id: t, query_params: e, path: _t });
4928
+ function zl(t, e = {}) {
4929
+ return E({ id: t, query_params: e, path: _t });
4911
4930
  }
4912
4931
  const mt = "asset_categories";
4913
4932
  function an(t) {
4914
- return new lo(t);
4933
+ return new fo(t);
4915
4934
  }
4916
- function Fl(t = {}) {
4935
+ function Hl(t = {}) {
4917
4936
  return O({
4918
4937
  query_params: t,
4919
4938
  fn: an,
4920
4939
  path: mt
4921
4940
  });
4922
4941
  }
4923
- function zl(t, e = {}) {
4942
+ function Wl(t, e = {}) {
4924
4943
  return k({
4925
4944
  id: t,
4926
4945
  query_params: e,
@@ -4928,8 +4947,8 @@ function zl(t, e = {}) {
4928
4947
  path: mt
4929
4948
  });
4930
4949
  }
4931
- function Hl(t, e, n = "patch") {
4932
- return E({
4950
+ function Ll(t, e, n = "patch") {
4951
+ return T({
4933
4952
  id: t,
4934
4953
  form_data: e,
4935
4954
  query_params: {},
@@ -4938,29 +4957,29 @@ function Hl(t, e, n = "patch") {
4938
4957
  path: mt
4939
4958
  });
4940
4959
  }
4941
- function Wl(t) {
4942
- return T({
4960
+ function Bl(t) {
4961
+ return P({
4943
4962
  form_data: t,
4944
4963
  query_params: {},
4945
4964
  fn: an,
4946
4965
  path: mt
4947
4966
  });
4948
4967
  }
4949
- function Ll(t, e = {}) {
4950
- return I({ id: t, query_params: e, path: mt });
4968
+ function Vl(t, e = {}) {
4969
+ return E({ id: t, query_params: e, path: mt });
4951
4970
  }
4952
4971
  const yt = "asset_purchase_orders";
4953
4972
  function ln(t) {
4954
- return new ho(t);
4973
+ return new po(t);
4955
4974
  }
4956
- function Bl(t = {}) {
4975
+ function Ql(t = {}) {
4957
4976
  return O({
4958
4977
  query_params: t,
4959
4978
  fn: ln,
4960
4979
  path: yt
4961
4980
  });
4962
4981
  }
4963
- function Vl(t, e = {}) {
4982
+ function Yl(t, e = {}) {
4964
4983
  return k({
4965
4984
  id: t,
4966
4985
  query_params: e,
@@ -4968,8 +4987,8 @@ function Vl(t, e = {}) {
4968
4987
  path: yt
4969
4988
  });
4970
4989
  }
4971
- function Ql(t, e, n = "patch") {
4972
- return E({
4990
+ function Gl(t, e, n = "patch") {
4991
+ return T({
4973
4992
  id: t,
4974
4993
  form_data: e,
4975
4994
  query_params: {},
@@ -4978,18 +4997,18 @@ function Ql(t, e, n = "patch") {
4978
4997
  path: yt
4979
4998
  });
4980
4999
  }
4981
- function Yl(t) {
4982
- return T({
5000
+ function Jl(t) {
5001
+ return P({
4983
5002
  form_data: t,
4984
5003
  query_params: {},
4985
5004
  fn: ln,
4986
5005
  path: yt
4987
5006
  });
4988
5007
  }
4989
- function Gl(t, e = {}) {
4990
- return I({ id: t, query_params: e, path: yt });
5008
+ function Kl(t, e = {}) {
5009
+ return E({ id: t, query_params: e, path: yt });
4991
5010
  }
4992
- class _o {
5011
+ class yo {
4993
5012
  id;
4994
5013
  name;
4995
5014
  uri;
@@ -5010,16 +5029,16 @@ class _o {
5010
5029
  }
5011
5030
  const ie = "short_url";
5012
5031
  function hn(t) {
5013
- return new _o(t);
5032
+ return new yo(t);
5014
5033
  }
5015
- function Jl(t = {}) {
5034
+ function Zl(t = {}) {
5016
5035
  return O({
5017
5036
  query_params: t,
5018
5037
  fn: hn,
5019
5038
  path: ie
5020
5039
  });
5021
5040
  }
5022
- function Kl(t, e = {}) {
5041
+ function Xl(t, e = {}) {
5023
5042
  return k({
5024
5043
  id: t,
5025
5044
  query_params: e,
@@ -5027,8 +5046,8 @@ function Kl(t, e = {}) {
5027
5046
  path: ie
5028
5047
  });
5029
5048
  }
5030
- function Zl(t, e, n = "patch") {
5031
- return E({
5049
+ function eh(t, e, n = "patch") {
5050
+ return T({
5032
5051
  id: t,
5033
5052
  form_data: e,
5034
5053
  query_params: {},
@@ -5037,41 +5056,41 @@ function Zl(t, e, n = "patch") {
5037
5056
  path: ie
5038
5057
  });
5039
5058
  }
5040
- function Xl(t) {
5041
- return T({
5059
+ function th(t) {
5060
+ return P({
5042
5061
  form_data: t,
5043
5062
  query_params: {},
5044
5063
  fn: hn,
5045
5064
  path: ie
5046
5065
  });
5047
5066
  }
5048
- function eh(t, e = {}) {
5049
- return I({ id: t, query_params: e, path: ie });
5067
+ function nh(t, e = {}) {
5068
+ return E({ id: t, query_params: e, path: ie });
5050
5069
  }
5051
- function th(t) {
5070
+ function rh(t) {
5052
5071
  return `${x()}${ie}/${encodeURIComponent(t)}/redirect`;
5053
5072
  }
5054
- function nh(t) {
5073
+ function ih(t) {
5055
5074
  return N(
5056
5075
  `${x()}${ie}/${encodeURIComponent(t)}/qr_code.svg`,
5057
5076
  { response_type: "text" }
5058
5077
  );
5059
5078
  }
5060
- function rh(t, e = {}) {
5079
+ function sh(t, e = {}) {
5061
5080
  const n = R(e);
5062
5081
  return `${x()}${ie}/${encodeURIComponent(t)}/qr_code.png${n ? "?" + n : ""}`;
5063
5082
  }
5064
- function ih(t) {
5083
+ function oh(t) {
5065
5084
  const { format: e = "svg", ...n } = t, r = { ...n, format: e }, i = R(r);
5066
5085
  return `${x()}${ie}/qr_code${i ? "?" + i : ""}`;
5067
5086
  }
5068
- function sh(t) {
5087
+ function uh(t) {
5069
5088
  const e = { ...t, format: "svg" }, n = R(e);
5070
5089
  return N(`${x()}${ie}/qr_code${n ? "?" + n : ""}`, {
5071
5090
  response_type: "text"
5072
5091
  });
5073
5092
  }
5074
- class mo {
5093
+ class go {
5075
5094
  id;
5076
5095
  storage_type;
5077
5096
  bucket_name;
@@ -5091,16 +5110,16 @@ class mo {
5091
5110
  }
5092
5111
  const gt = "storages";
5093
5112
  function fn(t) {
5094
- return new mo(t);
5113
+ return new go(t);
5095
5114
  }
5096
- function oh(t = {}) {
5115
+ function ch(t = {}) {
5097
5116
  return O({
5098
5117
  query_params: t,
5099
5118
  fn,
5100
5119
  path: gt
5101
5120
  });
5102
5121
  }
5103
- function uh(t, e = {}) {
5122
+ function ah(t, e = {}) {
5104
5123
  return k({
5105
5124
  id: t,
5106
5125
  query_params: e,
@@ -5108,8 +5127,8 @@ function uh(t, e = {}) {
5108
5127
  path: gt
5109
5128
  });
5110
5129
  }
5111
- function ch(t, e, n = "patch") {
5112
- return E({
5130
+ function lh(t, e, n = "patch") {
5131
+ return T({
5113
5132
  id: t,
5114
5133
  form_data: e,
5115
5134
  query_params: {},
@@ -5118,55 +5137,55 @@ function ch(t, e, n = "patch") {
5118
5137
  path: gt
5119
5138
  });
5120
5139
  }
5121
- function ah(t) {
5122
- return T({
5140
+ function hh(t) {
5141
+ return P({
5123
5142
  form_data: t,
5124
5143
  query_params: {},
5125
5144
  fn,
5126
5145
  path: gt
5127
5146
  });
5128
5147
  }
5129
- function lh(t, e = {}) {
5130
- return I({ id: t, query_params: e, path: gt });
5148
+ function fh(t, e = {}) {
5149
+ return E({ id: t, query_params: e, path: gt });
5131
5150
  }
5132
5151
  const ge = "webrtc";
5133
- function hh(t = {}) {
5152
+ function dh(t = {}) {
5134
5153
  const e = R(t), n = `${x()}${ge}/rooms${e ? "?" + e : ""}`;
5135
- return N(n).pipe(g((r) => r));
5154
+ return N(n).pipe(b((r) => r));
5136
5155
  }
5137
- function fh(t) {
5156
+ function ph(t) {
5138
5157
  const e = `${x()}${ge}/room/${encodeURIComponent(t)}`;
5139
- return N(e).pipe(g((n) => n));
5158
+ return N(e).pipe(b((n) => n));
5140
5159
  }
5141
- function dh(t) {
5160
+ function _h(t) {
5142
5161
  const e = `${x()}${ge}/members/${encodeURIComponent(t)}`;
5143
- return N(e).pipe(g((n) => n));
5162
+ return N(e).pipe(b((n) => n));
5144
5163
  }
5145
- function ph(t, e) {
5164
+ function mh(t, e) {
5146
5165
  const n = `${x()}${ge}/guest_entry/${encodeURIComponent(t)}`;
5147
- return G(n, e).pipe(g(() => {
5166
+ return G(n, e).pipe(b(() => {
5148
5167
  }));
5149
5168
  }
5150
- function _h() {
5169
+ function yh() {
5151
5170
  const t = `${x()}${ge}/guest/exit`;
5152
- return G(t, {}).pipe(g(() => {
5171
+ return G(t, {}).pipe(b(() => {
5153
5172
  }));
5154
5173
  }
5155
- function mh(t, e, n) {
5174
+ function gh(t, e, n) {
5156
5175
  const r = `${x()}${ge}/kick/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
5157
- return G(r, n).pipe(g(() => {
5176
+ return G(r, n).pipe(b(() => {
5158
5177
  }));
5159
5178
  }
5160
- function yh(t, e, n) {
5179
+ function bh(t, e, n) {
5161
5180
  const r = `${x()}${ge}/transfer/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
5162
- return G(r, n || {}).pipe(g(() => {
5181
+ return G(r, n || {}).pipe(b(() => {
5163
5182
  }));
5164
5183
  }
5165
- function gh() {
5184
+ function vh() {
5166
5185
  const t = x(), e = t.startsWith("https") ? "wss:" : "ws:", n = t.startsWith("https") ? "https:" : "http:";
5167
5186
  return t.replace(n, e) + `${ge}/signaller`;
5168
5187
  }
5169
- var yo = {
5188
+ var bo = {
5170
5189
  url: "",
5171
5190
  deserializer: function(t) {
5172
5191
  return JSON.parse(t.data);
@@ -5174,14 +5193,14 @@ var yo = {
5174
5193
  serializer: function(t) {
5175
5194
  return JSON.stringify(t);
5176
5195
  }
5177
- }, go = "WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }", bo = function(t) {
5196
+ }, vo = "WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }", So = function(t) {
5178
5197
  te(e, t);
5179
5198
  function e(n, r) {
5180
5199
  var i = t.call(this) || this;
5181
5200
  if (i._socket = null, n instanceof D)
5182
5201
  i.destination = r, i.source = n;
5183
5202
  else {
5184
- var s = i._config = Ze({}, yo);
5203
+ var s = i._config = Ze({}, bo);
5185
5204
  if (i._output = new $e(), typeof n == "string")
5186
5205
  s.url = n;
5187
5206
  else
@@ -5252,17 +5271,17 @@ var yo = {
5252
5271
  var a = n._config.openObserver;
5253
5272
  a && a.next(y);
5254
5273
  var f = n.destination;
5255
- n.destination = jt.create(function(h) {
5274
+ n.destination = Ft.create(function(h) {
5256
5275
  if (l.readyState === 1)
5257
5276
  try {
5258
5277
  var $ = n._config.serializer;
5259
5278
  l.send($(h));
5260
- } catch (b) {
5261
- n.destination.error(b);
5279
+ } catch (v) {
5280
+ n.destination.error(v);
5262
5281
  }
5263
5282
  }, function(h) {
5264
5283
  var $ = n._config.closingObserver;
5265
- $ && $.next(void 0), h && h.code ? l.close(h.code, h.reason) : c.error(new TypeError(go)), n._resetState();
5284
+ $ && $.next(void 0), h && h.code ? l.close(h.code, h.reason) : c.error(new TypeError(vo)), n._resetState();
5266
5285
  }, function() {
5267
5286
  var h = n._config.closingObserver;
5268
5287
  h && h.next(void 0), l.close(), n._resetState();
@@ -5292,11 +5311,11 @@ var yo = {
5292
5311
  n && (n.readyState === 1 || n.readyState === 0) && n.close(), this._resetState(), t.prototype.unsubscribe.call(this);
5293
5312
  }, e;
5294
5313
  }(vn);
5295
- function vo(t) {
5296
- return new bo(t);
5314
+ function ko(t) {
5315
+ return new So(t);
5297
5316
  }
5298
5317
  var re = /* @__PURE__ */ ((t) => (t[t.PARSE_ERROR = 0] = "PARSE_ERROR", t[t.BAD_REQUEST = 1] = "BAD_REQUEST", t[t.ACCESS_DENIED = 2] = "ACCESS_DENIED", t[t.REQUEST_FAILED = 3] = "REQUEST_FAILED", t[t.UNKNOWN_CMD = 4] = "UNKNOWN_CMD", t[t.SYS_NOT_FOUND = 5] = "SYS_NOT_FOUND", t[t.MOD_NOT_FOUND = 6] = "MOD_NOT_FOUND", t[t.UNEXPECTED_FAILURE = 7] = "UNEXPECTED_FAILURE", t))(re || {}), Kr = /* @__PURE__ */ ((t) => (t.Info = "info", t.Debug = "debug", t.Warning = "warn", t.Error = "error", t.Fatal = "fatal", t.Trace = "trace", t))(Kr || {});
5299
- class So {
5318
+ class $o {
5300
5319
  constructor(e, n) {
5301
5320
  this._system = e;
5302
5321
  const r = Object.getOwnPropertyNames(
@@ -5343,7 +5362,7 @@ class So {
5343
5362
  });
5344
5363
  }
5345
5364
  }
5346
- class ko {
5365
+ class xo {
5347
5366
  constructor(e) {
5348
5367
  for (const n in e)
5349
5368
  e.hasOwnProperty(n) && e[n] && e[n] instanceof Array && e[n].forEach((r) => {
@@ -5356,50 +5375,50 @@ class ko {
5356
5375
  * @param properties Properties of the new module
5357
5376
  */
5358
5377
  addModule(e, n) {
5359
- this[e] || (this[e] = []), this[e].push(new So(this, n));
5378
+ this[e] || (this[e] = []), this[e].push(new $o(this, n));
5360
5379
  }
5361
5380
  }
5362
5381
  const Ct = {};
5363
- function bh(t, e) {
5364
- return Ct[t] = new ko(e), Ct[t];
5382
+ function Sh(t, e) {
5383
+ return Ct[t] = new xo(e), Ct[t];
5365
5384
  }
5366
- function $o(t) {
5385
+ function Ao(t) {
5367
5386
  return Ct[t];
5368
5387
  }
5369
- function vh(t) {
5388
+ function kh(t) {
5370
5389
  delete Ct[t];
5371
5390
  }
5372
5391
  const Zr = 15;
5373
5392
  let bt = 0, Z, Xr = 0;
5374
- const B = {}, Mn = {}, Ue = {}, xo = {}, ve = new _e(!1);
5393
+ const B = {}, Dn = {}, Ue = {}, wo = {}, ve = new _e(!1);
5375
5394
  Ue._place_os_status = ve.asObservable();
5376
5395
  const ei = new _e([0, 0]);
5377
5396
  Ue._place_os_sync = ei.asObservable();
5378
- let ti = Date.now(), Me, Dt = 0, fe = null, wt, Cn = 0;
5397
+ let ti = Date.now(), Me, Dt = 0, fe = null, wt, Nn = 0;
5379
5398
  const vt = 10 * 1e3, ni = new $e();
5380
5399
  Ue._place_os_debug_events = ni.asObservable();
5381
5400
  function _n() {
5382
- return x().indexOf("/control/") >= 0 ? "/control/websocket" : `${Pr()}/systems/control`;
5401
+ return x().indexOf("/control/") >= 0 ? "/control/websocket" : `${Ir()}/systems/control`;
5383
5402
  }
5384
5403
  function ri() {
5385
5404
  return ve.getValue();
5386
5405
  }
5387
- function Ao() {
5406
+ function Oo() {
5388
5407
  return Ue._place_os_status;
5389
5408
  }
5390
- function Sh() {
5409
+ function $h() {
5391
5410
  return Ue._place_os_sync;
5392
5411
  }
5393
- function wo(t, e = Mn, n = Ue) {
5412
+ function Eo(t, e = Dn, n = Ue) {
5394
5413
  const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
5395
5414
  return e[r] || (e[r] = new _e(void 0), n[r] = e[r].asObservable()), n[r];
5396
5415
  }
5397
- function Oo(t, e = Mn) {
5416
+ function Io(t, e = Dn) {
5398
5417
  const n = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
5399
5418
  if (e[n])
5400
5419
  return e[n].getValue();
5401
5420
  }
5402
- function Xn(t, e = 0, n = Qe) {
5421
+ function tr(t, e = 0, n = Qe) {
5403
5422
  const r = {
5404
5423
  id: ++bt,
5405
5424
  cmd: "bind",
@@ -5407,7 +5426,7 @@ function Xn(t, e = 0, n = Qe) {
5407
5426
  };
5408
5427
  return n(r, e);
5409
5428
  }
5410
- function Io(t, e = 0, n = Qe) {
5429
+ function Po(t, e = 0, n = Qe) {
5411
5430
  const r = {
5412
5431
  id: ++bt,
5413
5432
  cmd: "unbind",
@@ -5415,7 +5434,7 @@ function Io(t, e = 0, n = Qe) {
5415
5434
  };
5416
5435
  return n(r, e);
5417
5436
  }
5418
- function Po(t, e = vt, n = Qe) {
5437
+ function To(t, e = vt, n = Qe) {
5419
5438
  const r = {
5420
5439
  id: ++bt,
5421
5440
  cmd: "exec",
@@ -5423,7 +5442,7 @@ function Po(t, e = vt, n = Qe) {
5423
5442
  };
5424
5443
  return n(r, e);
5425
5444
  }
5426
- function kh(t, e = vt, n = Qe) {
5445
+ function xh(t, e = vt, n = Qe) {
5427
5446
  const r = {
5428
5447
  id: ++bt,
5429
5448
  cmd: "debug",
@@ -5431,7 +5450,7 @@ function kh(t, e = vt, n = Qe) {
5431
5450
  };
5432
5451
  return n(r, e);
5433
5452
  }
5434
- function $h(t, e = vt, n = Qe) {
5453
+ function Ah(t, e = vt, n = Qe) {
5435
5454
  const r = {
5436
5455
  id: ++bt,
5437
5456
  cmd: "ignore",
@@ -5440,7 +5459,7 @@ function $h(t, e = vt, n = Qe) {
5440
5459
  return n(r, e);
5441
5460
  }
5442
5461
  function Qe(t, e = vt, n = 0) {
5443
- const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${fs()}`;
5462
+ const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${ps()}`;
5444
5463
  if (B[r])
5445
5464
  d("WS", "Request already in progress. Waiting...", t);
5446
5465
  else {
@@ -5453,7 +5472,7 @@ function Qe(t, e = vt, n = 0) {
5453
5472
  );
5454
5473
  };
5455
5474
  if (Z && ri()) {
5456
- In() && Co(t, Z, xo), i.resolve = s, i.reject = o;
5475
+ Pn() && No(t, Z, wo), i.resolve = s, i.reject = o;
5457
5476
  const c = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
5458
5477
  d(
5459
5478
  "WS",
@@ -5466,7 +5485,7 @@ function Qe(t, e = vt, n = 0) {
5466
5485
  },
5467
5486
  e
5468
5487
  );
5469
- } else fe ? setTimeout(() => u(), 1e3) : Dn().then(() => u());
5488
+ } else fe ? setTimeout(() => u(), 1e3) : Fn().then(() => u());
5470
5489
  }), B[r] = i;
5471
5490
  }
5472
5491
  return B[r].promise;
@@ -5474,9 +5493,9 @@ function Qe(t, e = vt, n = 0) {
5474
5493
  function ii(t) {
5475
5494
  if (t !== "pong" && t instanceof Object) {
5476
5495
  if (t.type === "notify" && t.meta)
5477
- qo(t.meta, t.value);
5496
+ Ro(t.meta, t.value);
5478
5497
  else if (t.type === "success")
5479
- To(t);
5498
+ qo(t);
5480
5499
  else if (t.type === "debug") {
5481
5500
  d(
5482
5501
  "WS",
@@ -5492,15 +5511,15 @@ function ii(t) {
5492
5511
  level: t.level || Kr.Debug,
5493
5512
  time: Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3)
5494
5513
  });
5495
- } else t.type === "error" ? Eo(t) : t.cmd || d("WS", "Invalid websocket message", t, "error");
5514
+ } else t.type === "error" ? Uo(t) : t.cmd || d("WS", "Invalid websocket message", t, "error");
5496
5515
  we(`${t.id}`);
5497
- } else t === "pong" && (Cn = Date.now(), d("WS", "Pong!"));
5516
+ } else t === "pong" && (Nn = Date.now(), d("WS", "Pong!"));
5498
5517
  }
5499
- function To(t) {
5518
+ function qo(t) {
5500
5519
  const e = Object.keys(B).map((n) => B[n]).find((n) => n?.id === t.id);
5501
5520
  d("WS", `[SUCCESS](${t.id})`), e && e.resolve && (e.resolve(t.value), delete B[e.key]);
5502
5521
  }
5503
- function Eo(t) {
5522
+ function Uo(t) {
5504
5523
  let e = "UNEXPECTED FAILURE";
5505
5524
  switch (t.code) {
5506
5525
  case re.ACCESS_DENIED:
@@ -5534,7 +5553,7 @@ function Eo(t) {
5534
5553
  const n = Object.keys(B).map((r) => B[r]).filter((r) => r).find((r) => r.id === t.id);
5535
5554
  n && n.reject && (n.reject(t), we(`${n.key}`), delete B[n.key]);
5536
5555
  }
5537
- function qo(t, e, n = Mn, r = Ue) {
5556
+ function Ro(t, e, n = Dn, r = Ue) {
5538
5557
  const i = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
5539
5558
  n[i] || (n[i] = new _e(null), r[i] = n[i].asObservable());
5540
5559
  const s = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
@@ -5544,22 +5563,22 @@ function qo(t, e, n = Mn, r = Ue) {
5544
5563
  e
5545
5564
  ]), n[i].next(e);
5546
5565
  }
5547
- function Dn(t = 0) {
5566
+ function Fn(t = 0) {
5548
5567
  return fe == null && (fe = new Promise((e) => {
5549
5568
  if (t > 40)
5550
5569
  return location.reload();
5551
- Dt++, ti = Date.now(), Z = In() ? Mo() : Uo(), Z ? (d("WS(Debug)", "Authority:", [Ut()]), d("WS", "Connecting to websocket..."), Z.subscribe(
5570
+ Dt++, ti = Date.now(), Z = Pn() ? Do() : Mo(), Z ? (d("WS(Debug)", "Authority:", [Ut()]), d("WS", "Connecting to websocket..."), Z.subscribe(
5552
5571
  (n) => {
5553
5572
  ve.getValue() || (d("WS", "Connection established."), e()), ve.next(!0), Dt = 0, mn(), ii(n);
5554
5573
  },
5555
5574
  (n) => {
5556
- Z = void 0, fe = null, tr(), mn(), Ro(n);
5575
+ Z = void 0, fe = null, rr(), mn(), Co(n);
5557
5576
  },
5558
5577
  () => {
5559
- Z = void 0, fe = null, tr(), d("WS", "Connection closed by browser."), ve.next(!1), Nt();
5578
+ Z = void 0, fe = null, rr(), d("WS", "Connection closed by browser."), ve.next(!1), Nt();
5560
5579
  }
5561
- ), Me && clearInterval(Me), Cn = Date.now(), er(), Me = setInterval(
5562
- () => er(),
5580
+ ), Me && clearInterval(Me), Nn = Date.now(), nr(), Me = setInterval(
5581
+ () => nr(),
5563
5582
  Zr * 1e3
5564
5583
  ), mn(), Xr += 1, wt = setTimeout(() => {
5565
5584
  d("WS", "Unhealthy connection. Reconnecting..."), ve.next(!1), fe = null, Nt();
@@ -5575,22 +5594,22 @@ function Dn(t = 0) {
5575
5594
  "error"
5576
5595
  ), setTimeout(
5577
5596
  () => {
5578
- fe = null, Dn(t).then((n) => e(n));
5597
+ fe = null, Fn(t).then((n) => e(n));
5579
5598
  },
5580
5599
  1e3 * Math.min(10, ++t)
5581
5600
  ));
5582
5601
  })), fe;
5583
5602
  }
5584
- function Uo() {
5603
+ function Mo() {
5585
5604
  if (!Ut() || !X()) return null;
5586
- const t = xs() || location.protocol.indexOf("https") >= 0;
5587
- let e = `ws${t ? "s" : ""}://${kn()}${_n()}${Tr() ? "?fixed_device=true" : ""}`;
5605
+ const t = ws() || location.protocol.indexOf("https") >= 0;
5606
+ let e = `ws${t ? "s" : ""}://${kn()}${_n()}${Pr() ? "?fixed_device=true" : ""}`;
5588
5607
  const n = X();
5589
5608
  let r = n === "x-api-key" ? `api-key=${zt()}` : `bearer_token=${n}`;
5590
- return !bs() && !ls() ? (d("WS", "Authenticating through cookie..."), r += `;max-age=120;path=${_n()};`, r += `${t ? "secure;" : ""}samesite=strict`, document.cookie = r, d("WS", "Cookies:", [document.cookie, r])) : (d("WS", "Authenticating through URL query parameter..."), e += `${e.indexOf("?") >= 0 ? "&" : "?"}${r}`), d(
5609
+ return !Ss() && !fs() ? (d("WS", "Authenticating through cookie..."), r += `;max-age=120;path=${_n()};`, r += `${t ? "secure;" : ""}samesite=strict`, document.cookie = r, d("WS", "Cookies:", [document.cookie, r])) : (d("WS", "Authenticating through URL query parameter..."), e += `${e.indexOf("?") >= 0 ? "&" : "?"}${r}`), d(
5591
5610
  "WS",
5592
5611
  `Creating websocket connection to ws${t ? "s" : ""}://${kn()}${_n()}`
5593
- ), vo({
5612
+ ), ko({
5594
5613
  url: e,
5595
5614
  serializer: (i) => typeof i == "object" ? JSON.stringify(i) : i,
5596
5615
  deserializer: (i) => {
@@ -5613,29 +5632,29 @@ function Nt() {
5613
5632
  )}ms...`
5614
5633
  ), oe(
5615
5634
  "reconnect",
5616
- () => Dn(),
5635
+ () => Fn(),
5617
5636
  Math.min(5e3, (Dt + 1) * 300 || 1e3)
5618
5637
  );
5619
5638
  }
5620
- function er() {
5621
- if (Date.now() - Cn > 4 * Zr * 1e3)
5639
+ function nr() {
5640
+ if (Date.now() - Nn > 4 * Zr * 1e3)
5622
5641
  return Nt();
5623
5642
  Z?.next("ping");
5624
5643
  }
5625
- function Ro(t) {
5626
- ve.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && Tn(), Er(), Nt();
5644
+ function Co(t) {
5645
+ ve.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && qn(), Tr(), Nt();
5627
5646
  }
5628
5647
  function mn() {
5629
5648
  wt && (clearTimeout(wt), wt = void 0);
5630
5649
  }
5631
- function Mo() {
5650
+ function Do() {
5632
5651
  const t = new $e();
5633
5652
  return t.subscribe(
5634
5653
  (e) => ii(e)
5635
5654
  ), t;
5636
5655
  }
5637
- function Co(t, e, n) {
5638
- const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`, i = $o(t.sys), s = i && i[t.mod] ? i[t.mod][t.index - 1 || 0] : null;
5656
+ function No(t, e, n) {
5657
+ const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`, i = Ao(t.sys), s = i && i[t.mod] ? i[t.mod][t.index - 1 || 0] : null;
5639
5658
  if (s) {
5640
5659
  switch (t.cmd) {
5641
5660
  case "bind":
@@ -5680,13 +5699,13 @@ function Co(t, e, n) {
5680
5699
  10
5681
5700
  );
5682
5701
  }
5683
- function tr() {
5702
+ function rr() {
5684
5703
  for (const t in B)
5685
5704
  B[t] && delete B[t];
5686
5705
  }
5687
- class nr {
5706
+ class ir {
5688
5707
  constructor(e, n) {
5689
- this._module = e, this.name = n, Ao().pipe(Vi()).subscribe((r) => {
5708
+ this._module = e, this.name = n, Oo().pipe(Yi()).subscribe((r) => {
5690
5709
  r && (this._stale_bindings || this._pending === 1) ? (d("VAR", "Re-binding to status variable", this.binding()), this.rebind()) : r || (we(
5691
5710
  `rebind:${JSON.stringify(this.binding())}`
5692
5711
  ), d(
@@ -5710,13 +5729,13 @@ class nr {
5710
5729
  }
5711
5730
  /** Current value of the binding */
5712
5731
  get value() {
5713
- return Oo(this.binding());
5732
+ return Io(this.binding());
5714
5733
  }
5715
5734
  /**
5716
5735
  * Get an observable that emits the current value of the binding
5717
5736
  */
5718
5737
  listen() {
5719
- return wo(this.binding());
5738
+ return Eo(this.binding());
5720
5739
  }
5721
5740
  /**
5722
5741
  * Subscribe to changes of the variable's binding value.
@@ -5738,7 +5757,7 @@ class nr {
5738
5757
  * Bind to the status variable's value
5739
5758
  */
5740
5759
  bind() {
5741
- return (this._binding_count <= 0 && this._stale_bindings <= 0 || this._pending === 2) && (this._pending = 1, Xn(this.binding()).then(() => {
5760
+ return (this._binding_count <= 0 && this._stale_bindings <= 0 || this._pending === 2) && (this._pending = 1, tr(this.binding()).then(() => {
5742
5761
  this._binding_count++, this._pending = 0;
5743
5762
  }).catch(() => null)), () => this.unbind();
5744
5763
  }
@@ -5746,7 +5765,7 @@ class nr {
5746
5765
  * Unbind from status variable
5747
5766
  */
5748
5767
  unbind() {
5749
- this._binding_count === 1 && this._pending === 0 ? (this._pending = 2, Io(this.binding()).then(() => {
5768
+ this._binding_count === 1 && this._pending === 0 ? (this._pending = 2, Po(this.binding()).then(() => {
5750
5769
  this._pending === 2 && (this._pending = 0), this._binding_count--;
5751
5770
  })) : this._binding_count = Math.max(this._binding_count - 1, 0);
5752
5771
  }
@@ -5757,7 +5776,7 @@ class nr {
5757
5776
  !this._stale_bindings && this._pending !== 1 || oe(
5758
5777
  `rebind:${JSON.stringify(this.binding())}`,
5759
5778
  async () => {
5760
- await Xn(this.binding()), this._binding_count = this._stale_bindings || 1, this._stale_bindings = 0;
5779
+ await tr(this.binding()), this._binding_count = this._stale_bindings || 1, this._stale_bindings = 0;
5761
5780
  },
5762
5781
  100
5763
5782
  );
@@ -5774,7 +5793,7 @@ class nr {
5774
5793
  };
5775
5794
  }
5776
5795
  }
5777
- class Do {
5796
+ class Fo {
5778
5797
  constructor(e, n) {
5779
5798
  this._system = e, this._id = n;
5780
5799
  }
@@ -5803,14 +5822,14 @@ class Do {
5803
5822
  * @deprecated Use `variable` instead
5804
5823
  */
5805
5824
  binding(e) {
5806
- return this._bindings[e] || (this._bindings[e] = new nr(this, e)), this._bindings[e];
5825
+ return this._bindings[e] || (this._bindings[e] = new ir(this, e)), this._bindings[e];
5807
5826
  }
5808
5827
  /**
5809
5828
  * Get binding with the given name
5810
5829
  * @param name Name of the binding
5811
5830
  */
5812
5831
  variable(e) {
5813
- return this._bindings[e] || (this._bindings[e] = new nr(this, e)), this._bindings[e];
5832
+ return this._bindings[e] || (this._bindings[e] = new ir(this, e)), this._bindings[e];
5814
5833
  }
5815
5834
  /**
5816
5835
  * Execute method on the engine module
@@ -5818,7 +5837,7 @@ class Do {
5818
5837
  * @param args Array of arguments to pass to the method
5819
5838
  */
5820
5839
  execute(e, n, r = vt) {
5821
- return Po(
5840
+ return To(
5822
5841
  {
5823
5842
  sys: this._system.id,
5824
5843
  mod: this.name,
@@ -5830,7 +5849,7 @@ class Do {
5830
5849
  );
5831
5850
  }
5832
5851
  }
5833
- class No {
5852
+ class jo {
5834
5853
  /** Unique idetifier of the system */
5835
5854
  id;
5836
5855
  /** Mapping of engine modules within the system */
@@ -5851,7 +5870,7 @@ class No {
5851
5870
  const i = r.join("_");
5852
5871
  for (this._module_list[i] || (this._module_list[i] = []); this._module_list[i].length < n; )
5853
5872
  this._module_list[i].push(
5854
- new Do(
5873
+ new Fo(
5855
5874
  this,
5856
5875
  `${i}_${this._module_list[i].length + 1}`
5857
5876
  )
@@ -5860,370 +5879,370 @@ class No {
5860
5879
  }
5861
5880
  }
5862
5881
  const yn = {};
5863
- function jo(t) {
5864
- return yn[t] || (yn[t] = new No(t)), yn[t];
5882
+ function zo(t) {
5883
+ return yn[t] || (yn[t] = new jo(t)), yn[t];
5865
5884
  }
5866
- function xh(t, e, n = 1) {
5867
- return jo(t).module(e, n);
5885
+ function wh(t, e, n = 1) {
5886
+ return zo(t).module(e, n);
5868
5887
  }
5869
5888
  export {
5870
- Vs as AuthType,
5889
+ Ys as AuthType,
5871
5890
  He as EncryptionLevel,
5872
5891
  Qr as MediaAnimation,
5873
- So as MockPlaceWebsocketModule,
5874
- ko as MockPlaceWebsocketSystem,
5875
- Hs as PlaceAlert,
5876
- Ws as PlaceAlertDashboard,
5877
- Ls as PlaceApplication,
5878
- po as PlaceAsset,
5879
- lo as PlaceAssetCategory,
5880
- ho as PlaceAssetPurchaseOrder,
5881
- fo as PlaceAssetType,
5882
- Ys as PlaceCluster,
5883
- Js as PlaceDomain,
5892
+ $o as MockPlaceWebsocketModule,
5893
+ xo as MockPlaceWebsocketSystem,
5894
+ Ls as PlaceAlert,
5895
+ Bs as PlaceAlertDashboard,
5896
+ Vs as PlaceApplication,
5897
+ mo as PlaceAsset,
5898
+ fo as PlaceAssetCategory,
5899
+ po as PlaceAssetPurchaseOrder,
5900
+ _o as PlaceAssetType,
5901
+ Js as PlaceCluster,
5902
+ Zs as PlaceDomain,
5884
5903
  Hr as PlaceDriver,
5885
5904
  Mt as PlaceDriverRole,
5886
- Ks as PlaceEdge,
5905
+ Xs as PlaceEdge,
5887
5906
  re as PlaceErrorCodes,
5888
- Zs as PlaceLDAPSource,
5907
+ eo as PlaceLDAPSource,
5889
5908
  Kr as PlaceLogLevel,
5890
- Qs as PlaceMQTTBroker,
5909
+ Gs as PlaceMQTTBroker,
5891
5910
  Wr as PlaceMetadata,
5892
5911
  Br as PlaceModule,
5893
- Do as PlaceModuleBinding,
5894
- to as PlaceOAuthSource,
5895
- Gs as PlaceProcess,
5896
- no as PlaceRepository,
5912
+ Fo as PlaceModuleBinding,
5913
+ ro as PlaceOAuthSource,
5914
+ Ks as PlaceProcess,
5915
+ io as PlaceRepository,
5897
5916
  Vr as PlaceRepositoryType,
5898
5917
  L as PlaceResource,
5899
- ro as PlaceSAMLSource,
5900
- Ie as PlaceSettings,
5901
- _o as PlaceShortUrl,
5902
- mo as PlaceStorage,
5918
+ so as PlaceSAMLSource,
5919
+ Ee as PlaceSettings,
5920
+ yo as PlaceShortUrl,
5921
+ go as PlaceStorage,
5903
5922
  Lr as PlaceSystem,
5904
- No as PlaceSystemBinding,
5923
+ jo as PlaceSystemBinding,
5905
5924
  me as PlaceTrigger,
5906
- uo as PlaceUser,
5907
- nr as PlaceVariableBinding,
5908
- Un as PlaceZone,
5909
- Xs as PlaceZoneMetadata,
5910
- co as SignageMedia,
5911
- ao as SignagePlaylist,
5912
- Rn as SignagePlaylistMedia,
5925
+ ao as PlaceUser,
5926
+ ir as PlaceVariableBinding,
5927
+ Mn as PlaceZone,
5928
+ to as PlaceZoneMetadata,
5929
+ lo as SignageMedia,
5930
+ ho as SignagePlaylist,
5931
+ Cn as SignagePlaylistMedia,
5913
5932
  un as Survey,
5914
5933
  Gr as SurveyAnswer,
5915
5934
  sn as SurveyInvitation,
5916
5935
  on as SurveyQuestion,
5917
- io as TriggerConditionOperator,
5918
- so as TriggerTimeConditionType,
5919
- oo as TriggerWebhookType,
5920
- su as addAlert,
5921
- Xo as addAlertDashboard,
5922
- hl as addAnswer,
5923
- fu as addApplication,
5924
- Tl as addAsset,
5925
- Wl as addAssetCategory,
5926
- Yl as addAssetPurchaseOrder,
5927
- Nl as addAssetType,
5928
- ql as addAssets,
5929
- yu as addBroker,
5930
- Iu as addDomain,
5931
- Ru as addDriver,
5932
- Wu as addEdge,
5933
- _l as addInvitation,
5934
- Ju as addLDAPSource,
5935
- nc as addMetadata,
5936
- cc as addModule,
5937
- Sc as addOAuthSource,
5938
- bl as addQuestion,
5939
- wc as addRepository,
5940
- Hc as addSAMLSource,
5941
- Qc as addSettings,
5942
- Xl as addShortUrl,
5943
- Za as addSignageMedia,
5944
- il as addSignagePlaylist,
5945
- ah as addStorage,
5946
- Al as addSurvey,
5947
- ea as addSystem,
5948
- na as addSystemModule,
5949
- fa as addSystemTrigger,
5950
- ka as addTrigger,
5951
- Pa as addUser,
5952
- Ha as addZone,
5936
+ oo as TriggerConditionOperator,
5937
+ uo as TriggerTimeConditionType,
5938
+ co as TriggerWebhookType,
5939
+ uu as addAlert,
5940
+ tu as addAlertDashboard,
5941
+ dl as addAnswer,
5942
+ pu as addApplication,
5943
+ ql as addAsset,
5944
+ Bl as addAssetCategory,
5945
+ Jl as addAssetPurchaseOrder,
5946
+ jl as addAssetType,
5947
+ Rl as addAssets,
5948
+ bu as addBroker,
5949
+ Pu as addDomain,
5950
+ Cu as addDriver,
5951
+ Bu as addEdge,
5952
+ yl as addInvitation,
5953
+ Zu as addLDAPSource,
5954
+ ic as addMetadata,
5955
+ lc as addModule,
5956
+ $c as addOAuthSource,
5957
+ Sl as addQuestion,
5958
+ Ec as addRepository,
5959
+ Lc as addSAMLSource,
5960
+ Gc as addSettings,
5961
+ th as addShortUrl,
5962
+ el as addSignageMedia,
5963
+ ol as addSignagePlaylist,
5964
+ hh as addStorage,
5965
+ Ol as addSurvey,
5966
+ na as addSystem,
5967
+ ia as addSystemModule,
5968
+ pa as addSystemTrigger,
5969
+ xa as addTrigger,
5970
+ Ta as addUser,
5971
+ La as addZone,
5953
5972
  x as apiEndpoint,
5954
5973
  zt as apiKey,
5955
- cl as approveSignagePlaylist,
5974
+ ll as approveSignagePlaylist,
5956
5975
  qr as authorise,
5957
5976
  Ut as authority,
5958
- Xn as bind,
5959
- as as cleanObject,
5960
- Vo as cleanupAuth,
5961
- vs as clientId,
5962
- $u as clusterRebalance,
5963
- xu as clusterVersions,
5964
- Sh as connectionState,
5965
- Yn as consoleHasColours,
5977
+ tr as bind,
5978
+ hs as cleanObject,
5979
+ Yo as cleanupAuth,
5980
+ ks as clientId,
5981
+ Au as clusterRebalance,
5982
+ wu as clusterVersions,
5983
+ $h as connectionState,
5984
+ Jn as consoleHasColours,
5966
5985
  Je as convertPairStringToMap,
5967
- T as create,
5968
- Oa as currentUser,
5969
- Ua as currentUserResourceToken,
5970
- kh as debug,
5986
+ P as create,
5987
+ Ia as currentUser,
5988
+ Ma as currentUserResourceToken,
5989
+ xh as debug,
5971
5990
  ni as debug_events,
5972
5991
  Oe as del,
5973
- Ms as deregisterMockEndpoint,
5974
- vh as deregisterSystem,
5975
- ju as driverReadme,
5976
- Vu as edgeControlUrl,
5977
- Po as execute,
5978
- yc as executeOnModule,
5979
- oa as executeOnSystem,
5980
- Ba as executeOnZone,
5981
- aa as functionList,
5982
- us as generateNonce,
5983
- sh as generateQrCode,
5992
+ Ds as deregisterMockEndpoint,
5993
+ kh as deregisterSystem,
5994
+ zu as driverReadme,
5995
+ Yu as edgeControlUrl,
5996
+ To as execute,
5997
+ bc as executeOnModule,
5998
+ ca as executeOnSystem,
5999
+ Qa as executeOnZone,
6000
+ ha as functionList,
6001
+ as as generateNonce,
6002
+ uh as generateQrCode,
5984
6003
  N as get,
5985
- Ir as getFragments,
5986
- xh as getModule,
5987
- nh as getShortUrlQrCodeSvg,
5988
- jo as getSystem,
5989
- ks as hasToken,
6004
+ Er as getFragments,
6005
+ wh as getModule,
6006
+ ih as getShortUrlQrCodeSvg,
6007
+ zo as getSystem,
6008
+ xs as hasToken,
5990
6009
  kn as host,
5991
- Pr as httpRoute,
5992
- Et as humanReadableByteCount,
5993
- $h as ignore,
5994
- Tn as invalidateToken,
5995
- Nu as isDriverCompiled,
5996
- Tr as isFixedDevice,
5997
- ls as isMobileSafari,
5998
- In as isMock,
5999
- hs as isNestedFrame,
6000
- Ho as isOnline,
6001
- xs as isSecure,
6002
- Pn as isTrusted,
6010
+ Ir as httpRoute,
6011
+ Tt as humanReadableByteCount,
6012
+ Ah as ignore,
6013
+ qn as invalidateToken,
6014
+ ju as isDriverCompiled,
6015
+ Pr as isFixedDevice,
6016
+ fs as isMobileSafari,
6017
+ Pn as isMock,
6018
+ ds as isNestedFrame,
6019
+ Lo as isOnline,
6020
+ ws as isSecure,
6021
+ Tn as isTrusted,
6003
6022
  ri as is_connected,
6004
- cu as lastRequestTotal,
6005
- ic as listChildMetadata,
6006
- tu as listDashboardAlerts,
6007
- Ic as listInterfaceRepositories,
6008
- Zu as listMetadata,
6009
- Xu as listMetadataHistory,
6010
- Tc as listRemoteRepositoryBranches,
6011
- Ec as listRemoteRepositoryCommits,
6012
- Pc as listRemoteRepositoryDefaultBranch,
6013
- Rc as listRepositoryBranches,
6014
- Uc as listRepositoryCommits,
6015
- Mc as listRepositoryDefaultBranch,
6016
- Cc as listRepositoryDriverDetails,
6017
- qc as listRepositoryDrivers,
6018
- Nc as listRepositoryFolders,
6019
- ol as listSignagePlaylistMedia,
6020
- ul as listSignagePlaylistMediaRevisions,
6021
- ha as listSystemTriggers,
6022
- la as listSystemZones,
6023
- xa as listTriggerInstances,
6024
- ja as listZoneTags,
6025
- La as listZoneTriggers,
6026
- wo as listen,
6027
- $s as listenForToken,
6028
- pc as loadModule,
6023
+ lu as lastRequestTotal,
6024
+ oc as listChildMetadata,
6025
+ ru as listDashboardAlerts,
6026
+ Pc as listInterfaceRepositories,
6027
+ ec as listMetadata,
6028
+ tc as listMetadataHistory,
6029
+ qc as listRemoteRepositoryBranches,
6030
+ Uc as listRemoteRepositoryCommits,
6031
+ Tc as listRemoteRepositoryDefaultBranch,
6032
+ Cc as listRepositoryBranches,
6033
+ Mc as listRepositoryCommits,
6034
+ Dc as listRepositoryDefaultBranch,
6035
+ Nc as listRepositoryDriverDetails,
6036
+ Rc as listRepositoryDrivers,
6037
+ jc as listRepositoryFolders,
6038
+ cl as listSignagePlaylistMedia,
6039
+ al as listSignagePlaylistMediaRevisions,
6040
+ da as listSystemTriggers,
6041
+ fa as listSystemZones,
6042
+ wa as listTriggerInstances,
6043
+ za as listZoneTags,
6044
+ Va as listZoneTriggers,
6045
+ Eo as listen,
6046
+ As as listenForToken,
6047
+ mc as loadModule,
6029
6048
  d as log,
6030
- Qo as logout,
6031
- Tu as lookupDomainByEmail,
6032
- dc as lookupModuleState,
6033
- ca as lookupSystemModuleState,
6034
- el as mediaThumbnail,
6035
- $o as mockSystem,
6036
- mc as moduleRuntimeError,
6037
- _c as moduleSettings,
6038
- fc as moduleState,
6039
- Wo as onlineState,
6040
- cs as parseLinkHeader,
6049
+ Go as logout,
6050
+ qu as lookupDomainByEmail,
6051
+ _c as lookupModuleState,
6052
+ la as lookupSystemModuleState,
6053
+ nl as mediaThumbnail,
6054
+ Ao as mockSystem,
6055
+ gc as moduleRuntimeError,
6056
+ yc as moduleSettings,
6057
+ pc as moduleState,
6058
+ Bo as onlineState,
6059
+ ls as parseLinkHeader,
6041
6060
  et as patch,
6042
6061
  G as post,
6043
- Dc as pullRepositoryChanges,
6062
+ Fc as pullRepositoryChanges,
6044
6063
  Ne as put,
6045
- ih as qrCodeUrl,
6064
+ oh as qrCodeUrl,
6046
6065
  O as query,
6047
- Jo as queryAlertDashboards,
6048
- nu as queryAlerts,
6049
- ll as queryAnswers,
6050
- au as queryApplications,
6051
- Fl as queryAssetCategories,
6052
- Bl as queryAssetPurchaseOrders,
6053
- Ml as queryAssetTypes,
6054
- Ol as queryAssets,
6055
- pu as queryBrokers,
6056
- bu as queryClusters,
6057
- Au as queryDomains,
6058
- Eu as queryDrivers,
6059
- Fu as queryEdges,
6060
- fl as queryInvitations,
6061
- Qu as queryLDAPSources,
6062
- sc as queryModules,
6063
- gc as queryOAuthSources,
6064
- Su as queryProcesses,
6065
- yl as queryQuestions,
6066
- $c as queryRepositories,
6067
- jc as querySAMLSources,
6068
- Lc as querySettings,
6069
- Jl as queryShortUrls,
6070
- Ga as querySignageMedia,
6071
- tl as querySignagePlaylists,
6072
- oh as queryStorages,
6073
- kl as querySurveys,
6074
- Jc as querySystems,
6075
- Kc as querySystemsWithEmails,
6076
- ba as queryTriggers,
6077
- Ea as queryUserGroups,
6078
- Aa as queryUsers,
6079
- hh as queryWebrtcRooms,
6080
- Na as queryZones,
6081
- Cu as recompileDriver,
6082
- Fo as redirectUri,
6083
- Er as refreshAuthority,
6066
+ Zo as queryAlertDashboards,
6067
+ iu as queryAlerts,
6068
+ fl as queryAnswers,
6069
+ hu as queryApplications,
6070
+ Hl as queryAssetCategories,
6071
+ Ql as queryAssetPurchaseOrders,
6072
+ Dl as queryAssetTypes,
6073
+ Il as queryAssets,
6074
+ mu as queryBrokers,
6075
+ Su as queryClusters,
6076
+ Ou as queryDomains,
6077
+ Uu as queryDrivers,
6078
+ Hu as queryEdges,
6079
+ pl as queryInvitations,
6080
+ Gu as queryLDAPSources,
6081
+ uc as queryModules,
6082
+ vc as queryOAuthSources,
6083
+ $u as queryProcesses,
6084
+ bl as queryQuestions,
6085
+ Ac as queryRepositories,
6086
+ zc as querySAMLSources,
6087
+ Vc as querySettings,
6088
+ Zl as queryShortUrls,
6089
+ Ka as querySignageMedia,
6090
+ rl as querySignagePlaylists,
6091
+ ch as queryStorages,
6092
+ xl as querySurveys,
6093
+ Zc as querySystems,
6094
+ Xc as querySystemsWithEmails,
6095
+ Sa as queryTriggers,
6096
+ Ua as queryUserGroups,
6097
+ Oa as queryUsers,
6098
+ dh as queryWebrtcRooms,
6099
+ ja as queryZones,
6100
+ Nu as recompileDriver,
6101
+ Ho as redirectUri,
6102
+ Tr as refreshAuthority,
6084
6103
  Sn as refreshToken,
6085
- Go as registerMockEndpoint,
6086
- bh as registerSystem,
6087
- Du as reloadDriver,
6088
- I as remove,
6089
- ou as removeAlert,
6090
- eu as removeAlertDashboard,
6091
- du as removeApplication,
6092
- El as removeAsset,
6093
- Ll as removeAssetCategory,
6094
- Gl as removeAssetPurchaseOrder,
6095
- jl as removeAssetType,
6096
- Rl as removeAssets,
6097
- gu as removeBroker,
6098
- Pu as removeDomain,
6099
- Mu as removeDriver,
6100
- Lu as removeEdge,
6104
+ Ko as registerMockEndpoint,
6105
+ Sh as registerSystem,
6106
+ Fu as reloadDriver,
6107
+ E as remove,
6108
+ cu as removeAlert,
6109
+ nu as removeAlertDashboard,
6110
+ _u as removeApplication,
6111
+ Ul as removeAsset,
6112
+ Vl as removeAssetCategory,
6113
+ Kl as removeAssetPurchaseOrder,
6114
+ zl as removeAssetType,
6115
+ Cl as removeAssets,
6116
+ vu as removeBroker,
6117
+ Tu as removeDomain,
6118
+ Du as removeDriver,
6119
+ Vu as removeEdge,
6101
6120
  be as removeFragment,
6102
- ml as removeInvitation,
6103
- Ku as removeLDAPSource,
6104
- rc as removeMetadata,
6105
- ac as removeModule,
6106
- kc as removeOAuthSource,
6107
- Sl as removeQuestion,
6108
- Oc as removeRepository,
6109
- Wc as removeSAMLSource,
6110
- Yc as removeSettings,
6111
- eh as removeShortUrl,
6112
- Xa as removeSignageMedia,
6113
- sl as removeSignagePlaylist,
6114
- lh as removeStorage,
6115
- wl as removeSurvey,
6116
- ta as removeSystem,
6117
- ra as removeSystemModule,
6118
- da as removeSystemTrigger,
6119
- $a as removeTrigger,
6120
- Ta as removeUser,
6121
- Ma as removeUserResourceToken,
6122
- Wa as removeZone,
6123
- uu as requestTotal,
6124
- Fs as responseHeaders,
6125
- Bu as retrieveEdgeToken,
6126
- Da as reviveUser,
6127
- qa as searchUserMetadata,
6128
- zo as setAPI_Key,
6129
- Yo as setMockNotFoundHandler,
6130
- Bo as setStorage,
6131
- Ss as setToken,
6132
- Gc as settingsHistory,
6133
- Lo as setup,
6134
- rh as shortUrlQrCodePngUrl,
6135
- th as shortUrlRedirectUrl,
6121
+ gl as removeInvitation,
6122
+ Xu as removeLDAPSource,
6123
+ sc as removeMetadata,
6124
+ hc as removeModule,
6125
+ xc as removeOAuthSource,
6126
+ $l as removeQuestion,
6127
+ Ic as removeRepository,
6128
+ Bc as removeSAMLSource,
6129
+ Jc as removeSettings,
6130
+ nh as removeShortUrl,
6131
+ tl as removeSignageMedia,
6132
+ ul as removeSignagePlaylist,
6133
+ fh as removeStorage,
6134
+ El as removeSurvey,
6135
+ ra as removeSystem,
6136
+ sa as removeSystemModule,
6137
+ _a as removeSystemTrigger,
6138
+ Aa as removeTrigger,
6139
+ qa as removeUser,
6140
+ Da as removeUserResourceToken,
6141
+ Ba as removeZone,
6142
+ au as requestTotal,
6143
+ Hs as responseHeaders,
6144
+ Qu as retrieveEdgeToken,
6145
+ Fa as reviveUser,
6146
+ Ra as searchUserMetadata,
6147
+ Wo as setAPI_Key,
6148
+ Jo as setMockNotFoundHandler,
6149
+ Qo as setStorage,
6150
+ $s as setToken,
6151
+ Kc as settingsHistory,
6152
+ Vo as setup,
6153
+ sh as shortUrlQrCodePngUrl,
6154
+ rh as shortUrlRedirectUrl,
6136
6155
  k as show,
6137
- ru as showAlert,
6138
- Ko as showAlertDashboard,
6139
- lu as showApplication,
6140
- Il as showAsset,
6141
- zl as showAssetCategory,
6142
- Vl as showAssetPurchaseOrder,
6143
- Cl as showAssetType,
6144
- _u as showBroker,
6145
- vu as showCluster,
6146
- wu as showDomain,
6147
- qu as showDriver,
6148
- zu as showEdge,
6149
- dl as showInvitation,
6150
- Yu as showLDAPSource,
6151
- ec as showMetadata,
6152
- oc as showModule,
6153
- bc as showOAuthSource,
6154
- gl as showQuestion,
6155
- xc as showRepository,
6156
- Fc as showSAMLSource,
6157
- Bc as showSettings,
6158
- Kl as showShortUrl,
6159
- Qa as showSignage,
6160
- Ja as showSignageMedia,
6161
- Ya as showSignageMetrics,
6162
- nl as showSignagePlaylist,
6163
- uh as showStorage,
6164
- $l as showSurvey,
6165
- Zc as showSystem,
6166
- ya as showSystemTrigger,
6167
- va as showTrigger,
6168
- wa as showUser,
6169
- fh as showWebrtcRoom,
6170
- Fa as showZone,
6171
- fs as simplifiedTime,
6172
- lc as startModule,
6173
- ia as startSystem,
6174
- Ao as status,
6175
- hc as stopModule,
6176
- sa as stopSystem,
6177
- _a as systemControlUrl,
6178
- ma as systemMetadata,
6179
- ua as systemModuleState,
6180
- pa as systemSettings,
6181
- ku as terminateProcess,
6156
+ su as showAlert,
6157
+ Xo as showAlertDashboard,
6158
+ fu as showApplication,
6159
+ Pl as showAsset,
6160
+ Wl as showAssetCategory,
6161
+ Yl as showAssetPurchaseOrder,
6162
+ Nl as showAssetType,
6163
+ yu as showBroker,
6164
+ ku as showCluster,
6165
+ Eu as showDomain,
6166
+ Ru as showDriver,
6167
+ Wu as showEdge,
6168
+ _l as showInvitation,
6169
+ Ju as showLDAPSource,
6170
+ nc as showMetadata,
6171
+ cc as showModule,
6172
+ Sc as showOAuthSource,
6173
+ vl as showQuestion,
6174
+ wc as showRepository,
6175
+ Hc as showSAMLSource,
6176
+ Qc as showSettings,
6177
+ Xl as showShortUrl,
6178
+ Ga as showSignage,
6179
+ Za as showSignageMedia,
6180
+ Ja as showSignageMetrics,
6181
+ il as showSignagePlaylist,
6182
+ ah as showStorage,
6183
+ Al as showSurvey,
6184
+ ea as showSystem,
6185
+ ba as showSystemTrigger,
6186
+ ka as showTrigger,
6187
+ Ea as showUser,
6188
+ ph as showWebrtcRoom,
6189
+ Ha as showZone,
6190
+ ps as simplifiedTime,
6191
+ fc as startModule,
6192
+ oa as startSystem,
6193
+ Oo as status,
6194
+ dc as stopModule,
6195
+ ua as stopSystem,
6196
+ ya as systemControlUrl,
6197
+ ga as systemMetadata,
6198
+ aa as systemModuleState,
6199
+ ma as systemSettings,
6200
+ xu as terminateProcess,
6182
6201
  X as token,
6183
- Io as unbind,
6184
- E as update,
6185
- iu as updateAlert,
6186
- Zo as updateAlertDashboard,
6187
- hu as updateApplication,
6188
- Pl as updateAsset,
6189
- Hl as updateAssetCategory,
6190
- Ql as updateAssetPurchaseOrder,
6191
- Dl as updateAssetType,
6192
- Ul as updateAssets,
6193
- mu as updateBroker,
6194
- Ou as updateDomain,
6195
- Uu as updateDriver,
6196
- Hu as updateEdge,
6197
- pl as updateInvitation,
6198
- Gu as updateLDAPSource,
6199
- tc as updateMetadata,
6200
- uc as updateModule,
6201
- vc as updateOAuthSource,
6202
- vl as updateQuestion,
6203
- Ac as updateRepository,
6204
- zc as updateSAMLSource,
6205
- Vc as updateSettings,
6206
- Zl as updateShortUrl,
6207
- Ka as updateSignageMedia,
6208
- rl as updateSignagePlaylist,
6209
- al as updateSignagePlaylistMedia,
6210
- ch as updateStorage,
6211
- xl as updateSurvey,
6212
- Xc as updateSystem,
6213
- ga as updateSystemTrigger,
6214
- Sa as updateTrigger,
6215
- Ia as updateUser,
6216
- za as updateZone,
6217
- Ra as userMetadata,
6218
- Ca as userResourceToken,
6219
- Oo as value,
6220
- ph as webrtcGuestEntry,
6221
- _h as webrtcGuestExit,
6222
- mh as webrtcKickUser,
6223
- dh as webrtcSessionMembers,
6224
- gh as webrtcSignallerUrl,
6225
- yh as webrtcTransferUser,
6202
+ Po as unbind,
6203
+ T as update,
6204
+ ou as updateAlert,
6205
+ eu as updateAlertDashboard,
6206
+ du as updateApplication,
6207
+ Tl as updateAsset,
6208
+ Ll as updateAssetCategory,
6209
+ Gl as updateAssetPurchaseOrder,
6210
+ Fl as updateAssetType,
6211
+ Ml as updateAssets,
6212
+ gu as updateBroker,
6213
+ Iu as updateDomain,
6214
+ Mu as updateDriver,
6215
+ Lu as updateEdge,
6216
+ ml as updateInvitation,
6217
+ Ku as updateLDAPSource,
6218
+ rc as updateMetadata,
6219
+ ac as updateModule,
6220
+ kc as updateOAuthSource,
6221
+ kl as updateQuestion,
6222
+ Oc as updateRepository,
6223
+ Wc as updateSAMLSource,
6224
+ Yc as updateSettings,
6225
+ eh as updateShortUrl,
6226
+ Xa as updateSignageMedia,
6227
+ sl as updateSignagePlaylist,
6228
+ hl as updateSignagePlaylistMedia,
6229
+ lh as updateStorage,
6230
+ wl as updateSurvey,
6231
+ ta as updateSystem,
6232
+ va as updateSystemTrigger,
6233
+ $a as updateTrigger,
6234
+ Pa as updateUser,
6235
+ Wa as updateZone,
6236
+ Ca as userMetadata,
6237
+ Na as userResourceToken,
6238
+ Io as value,
6239
+ mh as webrtcGuestEntry,
6240
+ yh as webrtcGuestExit,
6241
+ gh as webrtcKickUser,
6242
+ _h as webrtcSessionMembers,
6243
+ vh as webrtcSignallerUrl,
6244
+ bh as webrtcTransferUser,
6226
6245
  _n as websocketRoute,
6227
- Va as zoneMetadata
6246
+ Ya as zoneMetadata
6228
6247
  };
6229
6248
  //# sourceMappingURL=index.es.js.map