@placeos/ts-client 4.7.4 → 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,105 +2109,108 @@ const ys = {
2090
2109
  config: {},
2091
2110
  version: "2.0.0"
2092
2111
  };
2093
- let v = {}, E = 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
- E.setItem(`${q}_x-api-key`, `${t}`), E.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" || (E.setItem(`${q}_expires_at`, `${e}`), E.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 (!E) return "";
2127
- if (zt() && !v.ignore_api_key) return "x-api-key";
2128
- const e = E.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 || E.getItem(`${q}_access_token`) || "";
2154
+ )), !t) ? "" : n || I.getItem(`${q}_access_token`) || "";
2136
2155
  }
2137
2156
  function Sn() {
2138
- return Ft.getValue() || E.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 (E) {
2173
- const i = `${vs()}_${t}`;
2174
- r = r || E.getItem(i) || E.getItem(t) || "", e && E.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), E = 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() {
2182
- v = {}, W = void 0, De.next(""), Ft.next(""), pe.next(!1), q = "", xe = "", On = "/api/engine/v2";
2200
+ function Qo(t) {
2201
+ I = t === "session" ? sessionStorage : localStorage;
2202
+ }
2203
+ function Yo() {
2204
+ g = {}, W = void 0, De.next(""), jt.next(""), pe.next(!1), q = "", xe = "", In = "/api/engine/v2";
2183
2205
  for (const t in S)
2184
2206
  t in S && delete S[t];
2185
- ps();
2207
+ ms();
2186
2208
  }
2187
- function Er() {
2188
- return d("Auth", "Refreshing authorty."), W = void 0, En();
2209
+ function Tr() {
2210
+ return d("Auth", "Refreshing authorty."), W = void 0, Un();
2189
2211
  }
2190
- function Tn() {
2191
- d("Auth", "Invalidating tokens."), E.removeItem(`${q}_access_token`), E.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("");
2192
2214
  }
2193
2215
  function qr(t, e = W) {
2194
2216
  return S.authorise || (S.authorise = new Promise((n, r) => {
@@ -2207,7 +2229,7 @@ function qr(t, e = W) {
2207
2229
  d("Auth", "Failed to generate token."), r("Failed to generate token"), setTimeout(() => delete S.authorise, 200);
2208
2230
  }
2209
2231
  ];
2210
- 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(
2211
2233
  ...s
2212
2234
  ), qt = 0) : xe || Sn() ? (d(
2213
2235
  "Auth",
@@ -2215,13 +2237,13 @@ function qr(t, e = W) {
2215
2237
  ), Rr().then(...s), qt = 0) : e.session ? (d(
2216
2238
  "Auth",
2217
2239
  "Users has session. Authorising application..."
2218
- ), 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));
2219
2241
  }
2220
2242
  };
2221
- Os().then(i, i);
2243
+ Is().then(i, i);
2222
2244
  })), S.authorise;
2223
2245
  }
2224
- function Vo() {
2246
+ function Go() {
2225
2247
  const t = W ? W.logout_url : "/logout";
2226
2248
  fetch(t, {
2227
2249
  method: "GET",
@@ -2231,30 +2253,30 @@ function Vo() {
2231
2253
  }
2232
2254
  }).then((e) => {
2233
2255
  const n = e.headers.get("Location") || t;
2234
- for (let r = 0; r < E.length; r++) {
2235
- const i = E.key(r);
2236
- i && i.indexOf(q) >= 0 && E.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);
2237
2259
  }
2238
2260
  window.location?.assign(n);
2239
2261
  });
2240
2262
  }
2241
- function En(t = 0) {
2263
+ function Un(t = 0) {
2242
2264
  return S.load_authority || (S.load_authority = new Promise((e) => {
2243
- if (pe.next(!1), v.mock) {
2244
- 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();
2245
2267
  return;
2246
2268
  }
2247
- d("Auth", `Fixed: ${Tr()} | Trusted: ${Pn()}`), d("Auth", "Loading authority...");
2248
- 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) => {
2249
2271
  d("Auth", `Failed to load authority(${i})`), pe.next(!1), oe(
2250
2272
  "load_authority",
2251
2273
  () => {
2252
- delete S.load_authority, En(t).then((s) => e());
2274
+ delete S.load_authority, Un(t).then((s) => e());
2253
2275
  },
2254
2276
  300 * Math.min(20, ++t)
2255
2277
  );
2256
2278
  };
2257
- wn(
2279
+ En(
2258
2280
  `${n ? "https:" : "http:"}//${kn()}/auth/authority`,
2259
2281
  {
2260
2282
  credentials: "same-origin"
@@ -2262,7 +2284,7 @@ function En(t = 0) {
2262
2284
  ).subscribe(async (i) => {
2263
2285
  if (!i.ok)
2264
2286
  return r(await i.text().catch((o) => o));
2265
- 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(
2266
2288
  W.version || ""
2267
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(
2268
2290
  "Auth",
@@ -2275,13 +2297,13 @@ function En(t = 0) {
2275
2297
  }, r);
2276
2298
  })), S.load_authority;
2277
2299
  }
2278
- async function As(t) {
2279
- const e = Ps(t);
2280
- if (v.use_iframe)
2281
- return ws(e);
2300
+ async function Os(t) {
2301
+ const e = Ts(t);
2302
+ if (g.use_iframe)
2303
+ return Es(e);
2282
2304
  window.location?.assign(e);
2283
2305
  }
2284
- function ws(t) {
2306
+ function Es(t) {
2285
2307
  return S.iframe_auth || (S.iframe_auth = new Promise((e, n) => {
2286
2308
  d("Auth", "Authorizing in an iFrame...");
2287
2309
  const r = document.createElement("iframe");
@@ -2290,7 +2312,7 @@ function ws(t) {
2290
2312
  if (s.origin === window.location?.origin && s.data.type === "place-os") {
2291
2313
  const o = s.data;
2292
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)
2293
- return e(), qn({
2315
+ return e(), Rn({
2294
2316
  access_token: o.token,
2295
2317
  ...o
2296
2318
  });
@@ -2311,39 +2333,39 @@ function ws(t) {
2311
2333
  }, document.body.appendChild(r);
2312
2334
  })), S.iframe_auth;
2313
2335
  }
2314
- let Jn = !1;
2336
+ let Zn = !1;
2315
2337
  function Ur(t) {
2316
- if (v.handle_login !== !1 && !Jn) {
2338
+ if (g.handle_login !== !1 && !Zn) {
2317
2339
  d("Auth", "Redirecting to login page...");
2318
2340
  const e = t.login_url?.replace(
2319
2341
  "{{url}}",
2320
2342
  encodeURIComponent(window.location?.href)
2321
2343
  );
2322
- 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...");
2323
2345
  } else
2324
2346
  d("Auth", "Login being handled locally.");
2325
2347
  delete S.authorise;
2326
2348
  }
2327
- function Os() {
2349
+ function Is() {
2328
2350
  return S.check_token || (S.check_token = new Promise(async (t, e) => {
2329
- 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;
2330
2352
  })), S.check_token;
2331
2353
  }
2332
- function Is() {
2354
+ function Ps() {
2333
2355
  return S.check_params || (S.check_params = new Promise((t) => {
2334
2356
  d("Auth", "Checking for auth parameters...");
2335
- let e = Ir();
2357
+ let e = Er();
2336
2358
  if ((!e || Object.keys(e).length <= 0) && sessionStorage && (e = JSON.parse(
2337
2359
  sessionStorage.getItem("ENGINE.auth.params") || "{}"
2338
2360
  )), e && (e.code || e.access_token || e.refresh_token)) {
2339
- e.code && (xe = e.code, be("code")), e.refresh_token && (E.setItem(
2361
+ e.code && (xe = e.code, be("code")), e.refresh_token && (I.setItem(
2340
2362
  `${q}_refresh_token`,
2341
2363
  e.refresh_token
2342
2364
  ), be("refresh_token"));
2343
- const n = E.getItem(`${q}_nonce`) || "", r = (e.state || "").split(";");
2365
+ const n = I.getItem(`${q}_nonce`) || "", r = (e.state || "").split(";");
2344
2366
  be("state"), be("token_type");
2345
2367
  const i = r[0];
2346
- n === i ? (qn(e), t(!!e.access_token)) : t(!1);
2368
+ n === i ? (Rn(e), t(!!e.access_token)) : t(!1);
2347
2369
  } else
2348
2370
  t(!1);
2349
2371
  oe(
@@ -2353,27 +2375,27 @@ function Is() {
2353
2375
  );
2354
2376
  })), S.check_params;
2355
2377
  }
2356
- function Ps(t) {
2357
- const e = Rs();
2378
+ function Ts(t) {
2379
+ const e = Cs();
2358
2380
  t = t ? `${e};${t}` : e;
2359
- 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";
2360
- 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)}`;
2361
- if (v.auth_type === "auth_code") {
2362
- 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();
2363
2385
  sessionStorage.setItem(`${q}_challenge`, o), s += "&code_challenge_method=S256", s += `&code_challenge=${u}`;
2364
2386
  }
2365
2387
  return s;
2366
2388
  }
2367
- const Kn = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");
2368
- function Ts(t = 43) {
2389
+ const Xn = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");
2390
+ function qs(t = 43) {
2369
2391
  const e = new Array(t).fill(0).map(
2370
- () => Kn[Math.floor(Math.random() * Kn.length)]
2371
- ).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, "-");
2372
2394
  return { challenge: e, verify: r };
2373
2395
  }
2374
- function Es() {
2375
- let e = (v.token_uri || "/auth/token") + `?client_id=${encodeURIComponent(q)}`, n = "";
2376
- 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()) {
2377
2399
  e += `&refresh_token=${encodeURIComponent(Sn())}`, e += "&grant_type=refresh_token";
2378
2400
  const r = e.split("?");
2379
2401
  e = r[0], n = r[1];
@@ -2384,7 +2406,7 @@ function Es() {
2384
2406
  }
2385
2407
  return [e, n];
2386
2408
  }
2387
- function qs(t) {
2409
+ function Rs(t) {
2388
2410
  const e = t.token_uri || "/auth/token", n = R({
2389
2411
  grant_type: "password",
2390
2412
  client_id: q,
@@ -2398,18 +2420,18 @@ function qs(t) {
2398
2420
  return `${e}?${n}`;
2399
2421
  }
2400
2422
  function Rr() {
2401
- return Mr(...Es());
2423
+ return Mr(...Us());
2402
2424
  }
2403
- function Us(t) {
2404
- return Mr(qs(t));
2425
+ function Ms(t) {
2426
+ return Mr(Rs(t));
2405
2427
  }
2406
2428
  function Mr(t, e = "") {
2407
2429
  return S.generate_tokens || (S.generate_tokens = new Promise((n, r) => {
2408
2430
  d("Auth", "Generating new token...");
2409
2431
  const i = (s) => {
2410
- d("Auth", "Error generating new tokens.", s), E.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;
2411
2433
  };
2412
- wn(t, {
2434
+ En(t, {
2413
2435
  method: "POST",
2414
2436
  body: e,
2415
2437
  headers: {
@@ -2418,37 +2440,37 @@ function Mr(t, e = "") {
2418
2440
  }).subscribe(async (s) => {
2419
2441
  if (!s.ok) return i(s);
2420
2442
  const o = await s.json();
2421
- qn(o), n(), delete S.generate_tokens;
2443
+ Rn(o), n(), delete S.generate_tokens;
2422
2444
  }, i);
2423
2445
  })), S.generate_tokens;
2424
2446
  }
2425
- function qn(t) {
2426
- const e = is(
2447
+ function Rn(t) {
2448
+ const e = os(
2427
2449
  /* @__PURE__ */ new Date(),
2428
2450
  Math.max(60, parseInt(t.expires_in, 10) - 300)
2429
2451
  );
2430
- d("Auth", "Tokens generated storing..."), Pn() && (t.access_token && (E.setItem(
2452
+ d("Auth", "Tokens generated storing..."), Tn() && (t.access_token && (I.setItem(
2431
2453
  `${q}_access_token`,
2432
2454
  t.access_token
2433
- ), be("access_token")), t.refresh_token && (E.setItem(
2455
+ ), be("access_token")), t.refresh_token && (I.setItem(
2434
2456
  `${q}_refresh_token`,
2435
2457
  t.refresh_token
2436
- ), be("refresh_token"))), t.expires_in && (E.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 || "");
2437
2459
  }
2438
- function Rs() {
2439
- const t = us();
2440
- return E.setItem(`${q}_nonce`, t), t;
2460
+ function Cs() {
2461
+ const t = as();
2462
+ return I.setItem(`${q}_nonce`, t), t;
2441
2463
  }
2442
2464
  const Ht = {};
2443
2465
  let Cr = (t, e) => {
2444
2466
  const n = new Error(`Mock endpoint not found: ${t} ${e}`);
2445
- 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);
2446
2468
  };
2447
- function Qo(t) {
2469
+ function Jo(t) {
2448
2470
  Cr = t;
2449
2471
  }
2450
- function Yo(t, e = Ht) {
2451
- Ms(t.method, t.path, e);
2472
+ function Ko(t, e = Ht) {
2473
+ Ds(t.method, t.path, e);
2452
2474
  const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
2453
2475
  ...t,
2454
2476
  path_parts: r,
@@ -2458,19 +2480,19 @@ function Yo(t, e = Ht) {
2458
2480
  };
2459
2481
  e[n] = i, d("HTTP(M)", `+ ${t.method} ${t.path}`);
2460
2482
  }
2461
- function Ms(t, e, n = Ht) {
2483
+ function Ds(t, e, n = Ht) {
2462
2484
  const r = `${t}|${e}`;
2463
2485
  n[r] && (delete n[r], d("HTTP(M)", `- ${t} ${e}`));
2464
2486
  }
2465
- function Cs(t, e, n, r = Ht) {
2466
- const i = Ds(t, e, r);
2487
+ function Ns(t, e, n, r = Ht) {
2488
+ const i = Fs(t, e, r);
2467
2489
  if (i) {
2468
- const s = Ns(e, i, n);
2469
- return js(i, s);
2490
+ const s = js(e, i, n);
2491
+ return zs(i, s);
2470
2492
  }
2471
2493
  return Cr(t, e);
2472
2494
  }
2473
- function Ds(t, e, n = Ht) {
2495
+ function Fs(t, e, n = Ht) {
2474
2496
  const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), s = Object.keys(
2475
2497
  n
2476
2498
  ).reduce((o, u) => (u.indexOf(`${t}|`) === 0 && o.push(n[u]), o), []);
@@ -2487,7 +2509,7 @@ function Ds(t, e, n = Ht) {
2487
2509
  }
2488
2510
  return null;
2489
2511
  }
2490
- function Ns(t, e, n) {
2512
+ function js(t, e, n) {
2491
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 = {};
2492
2514
  for (let _ = 0; _ < e.path_structure.length; _++) {
2493
2515
  const y = e.path_structure[_];
@@ -2504,7 +2526,7 @@ function Ns(t, e, n) {
2504
2526
  };
2505
2527
  return d("HTTP(M)", `MATCHED ${l.method}:`, l), l;
2506
2528
  }
2507
- function js(t, e) {
2529
+ function zs(t, e) {
2508
2530
  let n;
2509
2531
  try {
2510
2532
  n = t.callback ? t.callback(e) : t.metadata;
@@ -2512,10 +2534,10 @@ function js(t, e) {
2512
2534
  throw d("HTTP(M)", `ERROR ${e.method}:`, [e.url, o]), o;
2513
2535
  }
2514
2536
  const r = t.delay_variance || 100, i = t.delay || 300, s = Math.floor(Math.random() * r - r / 2) + i;
2515
- 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)));
2516
2538
  }
2517
2539
  const Dr = {};
2518
- function Fs(t, e = Dr) {
2540
+ function Hs(t, e = Dr) {
2519
2541
  return e[t] || {};
2520
2542
  }
2521
2543
  function N(t, e, n = tt) {
@@ -2533,7 +2555,7 @@ function et(t, e, n, r = tt) {
2533
2555
  function Oe(t, e, n = tt) {
2534
2556
  return e || (e = { response_type: "void" }), n("DELETE", t, { response_type: "void", ...e });
2535
2557
  }
2536
- async function zs(t, e, n = Dr) {
2558
+ async function Ws(t, e, n = Dr) {
2537
2559
  if (t.headers) {
2538
2560
  const r = {};
2539
2561
  t.headers.forEach ? t.headers.forEach((i, s) => r[s.toLowerCase()] = i) : Object.keys(t.headers).forEach(
@@ -2551,7 +2573,7 @@ async function zs(t, e, n = Dr) {
2551
2573
  return await t.json().catch(() => ({}));
2552
2574
  }
2553
2575
  }
2554
- const Nr = () => (Tn(), Er().then(
2576
+ const Nr = () => (qn(), Tr().then(
2555
2577
  () => Promise.resolve(),
2556
2578
  () => new Promise((t) => {
2557
2579
  setTimeout(() => {
@@ -2559,25 +2581,25 @@ const Nr = () => (Tn(), Er().then(
2559
2581
  }, 1e3);
2560
2582
  })
2561
2583
  ));
2562
- function tt(t, e, n, r = In, i = Cs, s = zs) {
2584
+ function tt(t, e, n, r = Pn, i = Ns, s = Ws) {
2563
2585
  if (r()) {
2564
2586
  const o = i(t, e, n?.body);
2565
2587
  if (o) return o;
2566
2588
  }
2567
- return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), $s().pipe(
2568
- 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),
2569
2591
  Ar(1),
2570
- Wn((o) => {
2592
+ Bn((o) => {
2571
2593
  X() === "x-api-key" ? n.headers["X-API-Key"] = zt() : n.headers.Authorization = `Bearer ${X()}`;
2572
2594
  const u = {
2573
2595
  ...n,
2574
2596
  method: t,
2575
2597
  credentials: "same-origin"
2576
2598
  };
2577
- 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);
2578
2600
  }),
2579
- Wn((o) => o.ok ? s(o, n.response_type) : kr(o)),
2580
- Yi({
2601
+ Bn((o) => o.ok ? s(o, n.response_type) : $r(o)),
2602
+ Ji({
2581
2603
  count: 4,
2582
2604
  delay: (o, u) => new D((c) => {
2583
2605
  if (o.status === 511) {
@@ -2618,10 +2640,10 @@ class L {
2618
2640
  */
2619
2641
  toJSON() {
2620
2642
  const e = { ...this };
2621
- 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, ""]);
2622
2644
  }
2623
2645
  }
2624
- class Hs extends L {
2646
+ class Ls extends L {
2625
2647
  // Dashboard to show this alert on
2626
2648
  alert_dashboard_id;
2627
2649
  // Details of the dashboard assigned
@@ -2649,7 +2671,7 @@ class Hs extends L {
2649
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;
2650
2672
  }
2651
2673
  }
2652
- class Ws extends L {
2674
+ class Bs extends L {
2653
2675
  // Domain authority that the dashboard exists under
2654
2676
  authority_id;
2655
2677
  // Description of the dashboard's purpose
@@ -2660,65 +2682,65 @@ class Ws extends L {
2660
2682
  super(e), this.authority_id = e.authority_id || "", this.description = e.description || "", this.enabled = e.enabled || !1;
2661
2683
  }
2662
2684
  }
2663
- const je = "alert_dashboards";
2685
+ const Fe = "alert_dashboards";
2664
2686
  function Wt(t) {
2665
- return new Ws(t);
2687
+ return new Bs(t);
2666
2688
  }
2667
- function Go(t = {}) {
2689
+ function Zo(t = {}) {
2668
2690
  return O({
2669
2691
  query_params: t,
2670
2692
  fn: Wt,
2671
- path: je
2693
+ path: Fe
2672
2694
  });
2673
2695
  }
2674
- function Jo(t) {
2696
+ function Xo(t) {
2675
2697
  return k({
2676
2698
  id: t,
2677
2699
  query_params: {},
2678
2700
  fn: Wt,
2679
- path: je
2701
+ path: Fe
2680
2702
  });
2681
2703
  }
2682
- function Ko(t, e, n = "patch") {
2704
+ function eu(t, e, n = "patch") {
2683
2705
  return T({
2684
2706
  id: t,
2685
2707
  form_data: e,
2686
2708
  query_params: {},
2687
2709
  method: n,
2688
2710
  fn: Wt,
2689
- path: je
2711
+ path: Fe
2690
2712
  });
2691
2713
  }
2692
- function Zo(t) {
2714
+ function tu(t) {
2693
2715
  return P({
2694
2716
  form_data: t,
2695
2717
  query_params: {},
2696
2718
  fn: Wt,
2697
- path: je
2719
+ path: Fe
2698
2720
  });
2699
2721
  }
2700
- function Xo(t) {
2701
- return I({ id: t, query_params: {}, path: je });
2722
+ function nu(t) {
2723
+ return E({ id: t, query_params: {}, path: Fe });
2702
2724
  }
2703
- function eu(t) {
2725
+ function ru(t) {
2704
2726
  return O({
2705
2727
  query_params: {},
2706
2728
  fn: rt,
2707
- path: `${je}/${t}/alerts`
2729
+ path: `${Fe}/${t}/alerts`
2708
2730
  });
2709
2731
  }
2710
2732
  const nt = "alerts";
2711
2733
  function rt(t) {
2712
- return new Hs(t);
2734
+ return new Ls(t);
2713
2735
  }
2714
- function tu(t = {}) {
2736
+ function iu(t = {}) {
2715
2737
  return O({
2716
2738
  query_params: t,
2717
2739
  fn: rt,
2718
2740
  path: nt
2719
2741
  });
2720
2742
  }
2721
- function nu(t, e = {}) {
2743
+ function su(t, e = {}) {
2722
2744
  return k({
2723
2745
  id: t,
2724
2746
  query_params: e,
@@ -2726,7 +2748,7 @@ function nu(t, e = {}) {
2726
2748
  path: nt
2727
2749
  });
2728
2750
  }
2729
- function ru(t, e, n = "patch") {
2751
+ function ou(t, e, n = "patch") {
2730
2752
  return T({
2731
2753
  id: t,
2732
2754
  form_data: e,
@@ -2736,7 +2758,7 @@ function ru(t, e, n = "patch") {
2736
2758
  path: nt
2737
2759
  });
2738
2760
  }
2739
- function iu(t) {
2761
+ function uu(t) {
2740
2762
  return P({
2741
2763
  form_data: t,
2742
2764
  query_params: {},
@@ -2744,10 +2766,10 @@ function iu(t) {
2744
2766
  path: nt
2745
2767
  });
2746
2768
  }
2747
- function su(t) {
2748
- return I({ id: t, query_params: {}, path: nt });
2769
+ function cu(t) {
2770
+ return E({ id: t, query_params: {}, path: nt });
2749
2771
  }
2750
- class Ls extends L {
2772
+ class Vs extends L {
2751
2773
  /** Unique identifier of the application */
2752
2774
  uid;
2753
2775
  /** Secret associated with the application */
@@ -2766,19 +2788,19 @@ class Ls extends L {
2766
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;
2767
2789
  }
2768
2790
  }
2769
- function ou(t) {
2770
- return jr[t] || 0;
2771
- }
2772
- function uu(t) {
2791
+ function au(t) {
2773
2792
  return Fr[t] || 0;
2774
2793
  }
2775
- let jr = {}, Fr = {}, Zn = "";
2794
+ function lu(t) {
2795
+ return jr[t] || 0;
2796
+ }
2797
+ let Fr = {}, jr = {}, er = "";
2776
2798
  const Lt = (t) => t;
2777
2799
  function O(t) {
2778
2800
  const { query_params: e, fn: n, path: r, endpoint: i } = t, s = R(e), o = `${i || x()}${r ? "/" + r : ""}${s ? "?" + s : ""}`;
2779
2801
  return N(o).pipe(
2780
- g((u) => {
2781
- const c = Bs(o, s, r);
2802
+ b((u) => {
2803
+ const c = Qs(o, s, r);
2782
2804
  return {
2783
2805
  total: c.total || 0,
2784
2806
  next: c.next ? () => O({
@@ -2794,12 +2816,12 @@ function O(t) {
2794
2816
  }
2795
2817
  function k(t) {
2796
2818
  const { query_params: e, id: n, path: r, fn: i, options: s } = t, o = R(e), u = `${x()}/${r}/${n}${o ? "?" + o : ""}`;
2797
- return N(u, s).pipe(g((c) => (i || Lt)(c)));
2819
+ return N(u, s).pipe(b((c) => (i || Lt)(c)));
2798
2820
  }
2799
2821
  function P(t) {
2800
2822
  const { query_params: e, form_data: n, path: r, fn: i } = t, s = R(e), o = `${x()}/${r}${s ? "?" + s : ""}`;
2801
2823
  return G(o, n).pipe(
2802
- g((c) => (i || Lt)(c))
2824
+ b((c) => (i || Lt)(c))
2803
2825
  );
2804
2826
  }
2805
2827
  function m(t) {
@@ -2810,7 +2832,7 @@ function m(t) {
2810
2832
  response_type: "json"
2811
2833
  }
2812
2834
  )).pipe(
2813
- g((_) => (o || ((y) => y))(_))
2835
+ b((_) => (o || ((y) => y))(_))
2814
2836
  );
2815
2837
  }
2816
2838
  function T(t) {
@@ -2819,15 +2841,15 @@ function T(t) {
2819
2841
  version: r.version || 0
2820
2842
  }), c = `${x()}/${s}/${e}${u ? "?" + u : ""}`;
2821
2843
  return (i === "put" ? Ne : et)(c, r).pipe(
2822
- g((l) => (o || Lt)(l))
2844
+ b((l) => (o || Lt)(l))
2823
2845
  );
2824
2846
  }
2825
- function I(t) {
2847
+ function E(t) {
2826
2848
  const { id: e, query_params: n, path: r } = t, i = R(n), s = `${x()}/${r}/${e}${i ? "?" + i : ""}`;
2827
2849
  return Oe(s);
2828
2850
  }
2829
- function Bs(t, e, n) {
2830
- const r = Fs(
2851
+ function Qs(t, e, n) {
2852
+ const r = Hs(
2831
2853
  t[0] === "/" ? `${location.origin}${t}` : t
2832
2854
  ), i = {
2833
2855
  total: 0,
@@ -2835,21 +2857,21 @@ function Bs(t, e, n) {
2835
2857
  };
2836
2858
  if (r && r["x-total-count"]) {
2837
2859
  const s = +(r["x-total-count"] || 0);
2838
- (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;
2839
2861
  }
2840
- 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;
2841
2863
  }
2842
2864
  const it = "oauth_apps";
2843
2865
  function Bt(t) {
2844
- return new Ls(t);
2866
+ return new Vs(t);
2845
2867
  }
2846
- function cu(t = {}) {
2868
+ function hu(t = {}) {
2847
2869
  return O({ query_params: t, fn: Bt, path: it });
2848
2870
  }
2849
- function au(t) {
2871
+ function fu(t) {
2850
2872
  return k({ id: t, query_params: {}, fn: Bt, path: it });
2851
2873
  }
2852
- function lu(t, e, n = "patch") {
2874
+ function du(t, e, n = "patch") {
2853
2875
  return T({
2854
2876
  id: t,
2855
2877
  form_data: e,
@@ -2859,14 +2881,14 @@ function lu(t, e, n = "patch") {
2859
2881
  path: it
2860
2882
  });
2861
2883
  }
2862
- function hu(t) {
2884
+ function pu(t) {
2863
2885
  return P({ form_data: t, query_params: {}, fn: Bt, path: it });
2864
2886
  }
2865
- function fu(t) {
2866
- return I({ id: t, query_params: {}, path: it });
2887
+ function _u(t) {
2888
+ return E({ id: t, query_params: {}, path: it });
2867
2889
  }
2868
- var Vs = /* @__PURE__ */ ((t) => (t[t.Certificate = 0] = "Certificate", t[t.NoAuth = 1] = "NoAuth", t[t.UserPassword = 2] = "UserPassword", t))(Vs || {});
2869
- 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 {
2870
2892
  /** Unique identifier for the Broker */
2871
2893
  id;
2872
2894
  /** Name of the Broker */
@@ -2897,15 +2919,15 @@ class Qs extends L {
2897
2919
  }
2898
2920
  const st = "brokers";
2899
2921
  function Vt(t) {
2900
- return new Qs(t);
2922
+ return new Gs(t);
2901
2923
  }
2902
- function du(t = {}) {
2924
+ function mu(t = {}) {
2903
2925
  return O({ query_params: t, fn: Vt, path: st });
2904
2926
  }
2905
- function pu(t, e = {}) {
2927
+ function yu(t, e = {}) {
2906
2928
  return k({ id: t, query_params: e, fn: Vt, path: st });
2907
2929
  }
2908
- function _u(t, e, n = "patch") {
2930
+ function gu(t, e, n = "patch") {
2909
2931
  return T({
2910
2932
  id: t,
2911
2933
  form_data: e,
@@ -2915,13 +2937,13 @@ function _u(t, e, n = "patch") {
2915
2937
  path: st
2916
2938
  });
2917
2939
  }
2918
- function mu(t) {
2940
+ function bu(t) {
2919
2941
  return P({ form_data: t, query_params: {}, fn: Vt, path: st });
2920
2942
  }
2921
- function yu(t, e = {}) {
2922
- return I({ id: t, query_params: e, path: st });
2943
+ function vu(t, e = {}) {
2944
+ return E({ id: t, query_params: e, path: st });
2923
2945
  }
2924
- class Ys {
2946
+ class Js {
2925
2947
  /** Unique identifier of the application */
2926
2948
  id;
2927
2949
  /** List of running drivers */
@@ -2960,7 +2982,7 @@ class Ys {
2960
2982
  edge_nodes;
2961
2983
  run_counts;
2962
2984
  constructor(e = {}) {
2963
- 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);
2964
2986
  const n = e.load?.edge || {};
2965
2987
  this.edge_nodes = e.edge_nodes || Object.keys(n).map((r) => ({
2966
2988
  id: r,
@@ -2969,7 +2991,7 @@ class Ys {
2969
2991
  })) || [];
2970
2992
  }
2971
2993
  }
2972
- class Gs {
2994
+ class Ks {
2973
2995
  /** ID of the cluster associated with the process */
2974
2996
  cluster_id;
2975
2997
  /** Unique identifier of the application */
@@ -2997,42 +3019,42 @@ class Gs {
2997
3019
  /** Display string for the memory total */
2998
3020
  total_memory;
2999
3021
  constructor(e, n = {}) {
3000
- 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);
3001
3023
  }
3002
3024
  }
3003
- const Fe = "cluster";
3025
+ const je = "cluster";
3004
3026
  function zr(t) {
3005
- return new Ys(t);
3027
+ return new Js(t);
3006
3028
  }
3007
- function gu(t = {}) {
3008
- return O({ query_params: t, fn: zr, path: Fe });
3029
+ function Su(t = {}) {
3030
+ return O({ query_params: t, fn: zr, path: je });
3009
3031
  }
3010
- function bu(t, e = {}) {
3011
- 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 });
3012
3034
  }
3013
- function vu(t, e = {}) {
3035
+ function $u(t, e = {}) {
3014
3036
  return k({
3015
3037
  id: t,
3016
3038
  query_params: e,
3017
3039
  fn: (n) => n.map(
3018
- (r) => new Gs(t, r)
3040
+ (r) => new Ks(t, r)
3019
3041
  ),
3020
- path: Fe
3042
+ path: je
3021
3043
  });
3022
3044
  }
3023
- function Su(t, e) {
3024
- return I({ id: t, query_params: e, path: Fe });
3045
+ function xu(t, e) {
3046
+ return E({ id: t, query_params: e, path: je });
3025
3047
  }
3026
- function ku() {
3027
- const t = `${x()}${Fe}/rebalance`;
3028
- return G(t, {}).pipe(g(() => {
3048
+ function Au() {
3049
+ const t = `${x()}${je}/rebalance`;
3050
+ return G(t, {}).pipe(b(() => {
3029
3051
  }));
3030
3052
  }
3031
- function $u() {
3032
- const t = `${x()}${Fe}/versions`;
3033
- return N(t).pipe(g((e) => e));
3053
+ function wu() {
3054
+ const t = `${x()}${je}/versions`;
3055
+ return N(t).pipe(b((e) => e));
3034
3056
  }
3035
- class Js extends L {
3057
+ class Zs extends L {
3036
3058
  /** Domain name */
3037
3059
  domain;
3038
3060
  /** Login URL for the domain */
@@ -3053,15 +3075,15 @@ class Js extends L {
3053
3075
  }
3054
3076
  const ze = "domains";
3055
3077
  function ot(t) {
3056
- return new Js(t);
3078
+ return new Zs(t);
3057
3079
  }
3058
- function xu(t = {}) {
3080
+ function Ou(t = {}) {
3059
3081
  return O({ query_params: t, fn: ot, path: ze });
3060
3082
  }
3061
- function Au(t) {
3083
+ function Eu(t) {
3062
3084
  return k({ id: t, query_params: {}, fn: ot, path: ze });
3063
3085
  }
3064
- function wu(t, e, n = "patch") {
3086
+ function Iu(t, e, n = "patch") {
3065
3087
  return T({
3066
3088
  id: t,
3067
3089
  form_data: e,
@@ -3071,18 +3093,18 @@ function wu(t, e, n = "patch") {
3071
3093
  path: ze
3072
3094
  });
3073
3095
  }
3074
- function Ou(t) {
3096
+ function Pu(t) {
3075
3097
  return P({ form_data: t, query_params: {}, fn: ot, path: ze });
3076
3098
  }
3077
- function Iu(t) {
3078
- return I({ id: t, query_params: {}, path: ze });
3099
+ function Tu(t) {
3100
+ return E({ id: t, query_params: {}, path: ze });
3079
3101
  }
3080
- function Pu(t) {
3102
+ function qu(t) {
3081
3103
  const e = `${x()}${ze}/lookup/${encodeURIComponent(t)}`;
3082
- return N(e).pipe(g((n) => ot(n)));
3104
+ return N(e).pipe(b((n) => ot(n)));
3083
3105
  }
3084
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 || {});
3085
- class Ie extends L {
3107
+ class Ee extends L {
3086
3108
  /** ID of the parent zone/system/module/driver */
3087
3109
  parent_id;
3088
3110
  /** Unix timestamp in seconds of when the settings where last updated */
@@ -3133,7 +3155,7 @@ class Hr extends L {
3133
3155
  constructor(e = {}) {
3134
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]);
3135
3157
  for (const n in He)
3136
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3158
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3137
3159
  parent_id: this.id,
3138
3160
  encryption_level: +n
3139
3161
  }));
@@ -3143,13 +3165,13 @@ const ae = "drivers";
3143
3165
  function Qt(t) {
3144
3166
  return new Hr(t);
3145
3167
  }
3146
- function Tu(t = {}) {
3168
+ function Uu(t = {}) {
3147
3169
  return O({ query_params: t, fn: Qt, path: ae });
3148
3170
  }
3149
- function Eu(t, e = {}) {
3171
+ function Ru(t, e = {}) {
3150
3172
  return k({ id: t, query_params: e, fn: Qt, path: ae });
3151
3173
  }
3152
- function qu(t, e, n = "patch") {
3174
+ function Mu(t, e, n = "patch") {
3153
3175
  return T({
3154
3176
  id: t,
3155
3177
  form_data: e,
@@ -3159,25 +3181,25 @@ function qu(t, e, n = "patch") {
3159
3181
  path: ae
3160
3182
  });
3161
3183
  }
3162
- function Uu(t) {
3184
+ function Cu(t) {
3163
3185
  return P({ form_data: t, query_params: {}, fn: Qt, path: ae });
3164
3186
  }
3165
- function Ru(t) {
3166
- return I({ id: t, query_params: {}, path: ae });
3187
+ function Du(t) {
3188
+ return E({ id: t, query_params: {}, path: ae });
3167
3189
  }
3168
- function Mu(t) {
3190
+ function Nu(t) {
3169
3191
  return m({ id: t, task_name: "recompile", path: ae });
3170
3192
  }
3171
- function Cu(t) {
3193
+ function Fu(t) {
3172
3194
  return m({ id: t, task_name: "reload", path: ae });
3173
3195
  }
3174
- function Du(t) {
3196
+ function ju(t) {
3175
3197
  return m({ id: t, task_name: "compiled", method: "get", path: ae });
3176
3198
  }
3177
- function Nu(t) {
3199
+ function zu(t) {
3178
3200
  return m({ id: t, task_name: "readme", method: "get", path: ae });
3179
3201
  }
3180
- class Ks extends L {
3202
+ class Xs extends L {
3181
3203
  description;
3182
3204
  secret;
3183
3205
  x_api_key;
@@ -3191,46 +3213,46 @@ class Ks extends L {
3191
3213
  return delete e.last_seen, e;
3192
3214
  }
3193
3215
  }
3194
- const Pe = "edges";
3216
+ const Ie = "edges";
3195
3217
  function Yt(t) {
3196
- return new Ks(t);
3218
+ return new Xs(t);
3197
3219
  }
3198
- function ju(t = {}) {
3199
- return O({ query_params: t, fn: Yt, path: Pe });
3220
+ function Hu(t = {}) {
3221
+ return O({ query_params: t, fn: Yt, path: Ie });
3200
3222
  }
3201
- function Fu(t) {
3202
- 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 });
3203
3225
  }
3204
- function zu(t, e, n = "patch") {
3226
+ function Lu(t, e, n = "patch") {
3205
3227
  return T({
3206
3228
  id: t,
3207
3229
  form_data: e,
3208
3230
  query_params: {},
3209
3231
  method: n,
3210
3232
  fn: Yt,
3211
- path: Pe
3233
+ path: Ie
3212
3234
  });
3213
3235
  }
3214
- function Hu(t) {
3215
- return P({ 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 });
3216
3238
  }
3217
- function Wu(t) {
3218
- return I({ id: t, query_params: {}, path: Pe });
3239
+ function Vu(t) {
3240
+ return E({ id: t, query_params: {}, path: Ie });
3219
3241
  }
3220
- function Lu(t) {
3242
+ function Qu(t) {
3221
3243
  return m({
3222
3244
  id: t,
3223
3245
  task_name: "token",
3224
3246
  form_data: {},
3225
3247
  method: "get",
3226
- path: Pe
3248
+ path: Ie
3227
3249
  });
3228
3250
  }
3229
- function Bu() {
3251
+ function Yu() {
3230
3252
  const t = x(), e = t.startsWith("https") ? "wss:" : "ws:", n = t.startsWith("https") ? "https:" : "http:";
3231
- return t.replace(n, e) + `${Pe}/control`;
3253
+ return t.replace(n, e) + `${Ie}/control`;
3232
3254
  }
3233
- class Zs extends L {
3255
+ class eo extends L {
3234
3256
  /** Type of auth source */
3235
3257
  type = "ldap";
3236
3258
  /** ID of the authority associted with the auth method */
@@ -3260,15 +3282,15 @@ class Zs extends L {
3260
3282
  }
3261
3283
  const ut = "ldap_auths";
3262
3284
  function Gt(t) {
3263
- return new Zs(t);
3285
+ return new eo(t);
3264
3286
  }
3265
- function Vu(t = {}) {
3287
+ function Gu(t = {}) {
3266
3288
  return O({ query_params: t, fn: Gt, path: ut });
3267
3289
  }
3268
- function Qu(t) {
3290
+ function Ju(t) {
3269
3291
  return k({ id: t, query_params: {}, fn: Gt, path: ut });
3270
3292
  }
3271
- function Yu(t, e, n = "patch") {
3293
+ function Ku(t, e, n = "patch") {
3272
3294
  return T({
3273
3295
  id: t,
3274
3296
  form_data: e,
@@ -3278,11 +3300,11 @@ function Yu(t, e, n = "patch") {
3278
3300
  path: ut
3279
3301
  });
3280
3302
  }
3281
- function Gu(t) {
3303
+ function Zu(t) {
3282
3304
  return P({ form_data: t, query_params: {}, fn: Gt, path: ut });
3283
3305
  }
3284
- function Ju(t) {
3285
- return I({ id: t, query_params: {}, path: ut });
3306
+ function Xu(t) {
3307
+ return E({ id: t, query_params: {}, path: ut });
3286
3308
  }
3287
3309
  class Wr {
3288
3310
  /** ID of the parent resource associated with the metadata */
@@ -3381,7 +3403,7 @@ class me extends L {
3381
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;
3382
3404
  }
3383
3405
  }
3384
- class Un extends L {
3406
+ class Mn extends L {
3385
3407
  /** Tuple of user settings of differring encryption levels for the zone */
3386
3408
  settings = [null, null, null, null];
3387
3409
  /** Description of the zone's purpose */
@@ -3420,7 +3442,7 @@ class Un extends L {
3420
3442
  constructor(e = {}) {
3421
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]);
3422
3444
  for (const n in He)
3423
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3445
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3424
3446
  parent_id: this.id,
3425
3447
  encryption_level: +n
3426
3448
  }));
@@ -3429,7 +3451,7 @@ class Un extends L {
3429
3451
  ));
3430
3452
  }
3431
3453
  }
3432
- class Xs {
3454
+ class to {
3433
3455
  /** Zone associated with the metadata */
3434
3456
  zone;
3435
3457
  /** Metadata for zone */
@@ -3437,25 +3459,25 @@ class Xs {
3437
3459
  /** List of the root keys in the metadata */
3438
3460
  keys;
3439
3461
  constructor(e = {}) {
3440
- 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 = {};
3441
3463
  const n = e.metadata || {};
3442
3464
  for (const r of this.keys)
3443
3465
  this.metadata[r] = new Wr(n[r]);
3444
3466
  }
3445
3467
  }
3446
- const Te = "metadata";
3468
+ const Pe = "metadata";
3447
3469
  function ct(t) {
3448
3470
  return new Wr(t);
3449
3471
  }
3450
- function Ku(t, e = {}) {
3472
+ function ec(t, e = {}) {
3451
3473
  return k({
3452
3474
  id: t,
3453
3475
  query_params: e,
3454
3476
  fn: (n) => Object.keys(n).map((r) => ct(n[r])),
3455
- path: Te
3477
+ path: Pe
3456
3478
  });
3457
3479
  }
3458
- function eo(t) {
3480
+ function no(t) {
3459
3481
  const e = [...t], n = [];
3460
3482
  for (; e.length; ) {
3461
3483
  const r = e.pop();
@@ -3463,57 +3485,57 @@ function eo(t) {
3463
3485
  }
3464
3486
  return n.reverse();
3465
3487
  }
3466
- function Zu(t, e = {}) {
3488
+ function tc(t, e = {}) {
3467
3489
  return m({
3468
3490
  id: t,
3469
3491
  task_name: "history",
3470
3492
  form_data: e,
3471
3493
  method: "get",
3472
- callback: (n) => eo(
3494
+ callback: (n) => no(
3473
3495
  Object.keys(n).map(
3474
3496
  (r) => n[r].map((i) => ct(i))
3475
3497
  )
3476
3498
  ),
3477
- path: Te
3499
+ path: Pe
3478
3500
  });
3479
3501
  }
3480
- function Xu(t, e) {
3502
+ function nc(t, e) {
3481
3503
  return k({
3482
3504
  id: t,
3483
3505
  query_params: { name: e },
3484
3506
  fn: (n) => ct(n[e]),
3485
- path: Te
3507
+ path: Pe
3486
3508
  });
3487
3509
  }
3488
- function ec(t, e, n = "put") {
3510
+ function rc(t, e, n = "put") {
3489
3511
  return T({
3490
3512
  id: t,
3491
3513
  form_data: e,
3492
3514
  query_params: {},
3493
3515
  method: n,
3494
3516
  fn: ct,
3495
- path: Te
3517
+ path: Pe
3496
3518
  });
3497
3519
  }
3498
- function tc(t) {
3499
- return P({ 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 });
3500
3522
  }
3501
- function nc(t, e) {
3502
- return I({ id: t, query_params: e, path: Te });
3523
+ function sc(t, e) {
3524
+ return E({ id: t, query_params: e, path: Pe });
3503
3525
  }
3504
- function rc(t, e) {
3526
+ function oc(t, e) {
3505
3527
  return m({
3506
3528
  id: t,
3507
3529
  task_name: "children",
3508
3530
  form_data: e,
3509
3531
  method: "get",
3510
3532
  callback: (n) => n.map(
3511
- (r) => new Xs({
3533
+ (r) => new to({
3512
3534
  ...r,
3513
3535
  keys: Object.keys(r.metadata)
3514
3536
  })
3515
3537
  ),
3516
- path: Te
3538
+ path: Pe
3517
3539
  });
3518
3540
  }
3519
3541
  class Lr extends L {
@@ -3572,7 +3594,7 @@ class Lr extends L {
3572
3594
  constructor(e = {}) {
3573
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]);
3574
3596
  for (const n in He)
3575
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3597
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3576
3598
  parent_id: this.id,
3577
3599
  encryption_level: +n
3578
3600
  }));
@@ -3633,7 +3655,7 @@ class Br extends L {
3633
3655
  e.control_system || e.system
3634
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]);
3635
3657
  for (const n in He)
3636
- !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ie({
3658
+ !isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
3637
3659
  parent_id: this.id,
3638
3660
  encryption_level: +n
3639
3661
  }));
@@ -3650,13 +3672,13 @@ const J = "modules";
3650
3672
  function Jt(t) {
3651
3673
  return new Br(t);
3652
3674
  }
3653
- function ic(t = {}) {
3675
+ function uc(t = {}) {
3654
3676
  return O({ query_params: t, fn: Jt, path: J });
3655
3677
  }
3656
- function sc(t, e = {}) {
3678
+ function cc(t, e = {}) {
3657
3679
  return k({ id: t, query_params: e, fn: Jt, path: J });
3658
3680
  }
3659
- function oc(t, e, n = "patch") {
3681
+ function ac(t, e, n = "patch") {
3660
3682
  return T({
3661
3683
  id: t,
3662
3684
  form_data: e,
@@ -3666,37 +3688,37 @@ function oc(t, e, n = "patch") {
3666
3688
  path: J
3667
3689
  });
3668
3690
  }
3669
- function uc(t) {
3691
+ function lc(t) {
3670
3692
  return P({ form_data: t, query_params: {}, fn: Jt, path: J });
3671
3693
  }
3672
- function cc(t) {
3673
- return I({ id: t, query_params: {}, path: J });
3694
+ function hc(t) {
3695
+ return E({ id: t, query_params: {}, path: J });
3674
3696
  }
3675
- function ac(t) {
3697
+ function fc(t) {
3676
3698
  return m({ id: t, task_name: "start", path: J });
3677
3699
  }
3678
- function lc(t) {
3700
+ function dc(t) {
3679
3701
  return m({ id: t, task_name: "stop", path: J });
3680
3702
  }
3681
- function hc(t) {
3703
+ function pc(t) {
3682
3704
  return m({ id: t, task_name: "state", method: "get", path: J });
3683
3705
  }
3684
- function fc(t, e) {
3706
+ function _c(t, e) {
3685
3707
  return m({ id: t, task_name: `state/${e}`, method: "get", path: J });
3686
3708
  }
3687
- function dc(t) {
3709
+ function mc(t) {
3688
3710
  return m({ id: t, task_name: "load", method: "post", path: J });
3689
3711
  }
3690
- function pc(t) {
3712
+ function yc(t) {
3691
3713
  return m({
3692
3714
  id: t,
3693
3715
  task_name: "settings",
3694
3716
  method: "get",
3695
- callback: (e) => e.map((n) => new Ie(n)),
3717
+ callback: (e) => e.map((n) => new Ee(n)),
3696
3718
  path: J
3697
3719
  });
3698
3720
  }
3699
- function _c(t) {
3721
+ function gc(t) {
3700
3722
  return m({
3701
3723
  id: t,
3702
3724
  task_name: "error",
@@ -3704,7 +3726,7 @@ function _c(t) {
3704
3726
  path: J
3705
3727
  });
3706
3728
  }
3707
- function mc(t, e, n = []) {
3729
+ function bc(t, e, n = []) {
3708
3730
  return m({
3709
3731
  id: t,
3710
3732
  task_name: `exec/${encodeURIComponent(e)}`,
@@ -3712,7 +3734,7 @@ function mc(t, e, n = []) {
3712
3734
  path: J
3713
3735
  });
3714
3736
  }
3715
- class to extends L {
3737
+ class ro extends L {
3716
3738
  /** Type of auth source */
3717
3739
  type = "oauth";
3718
3740
  /** ID of the authority associted with the auth method */
@@ -3747,15 +3769,15 @@ class to extends L {
3747
3769
  }
3748
3770
  const at = "oauth_auths";
3749
3771
  function Kt(t) {
3750
- return new to(t);
3772
+ return new ro(t);
3751
3773
  }
3752
- function yc(t = {}) {
3774
+ function vc(t = {}) {
3753
3775
  return O({ query_params: t, fn: Kt, path: at });
3754
3776
  }
3755
- function gc(t) {
3777
+ function Sc(t) {
3756
3778
  return k({ id: t, query_params: {}, fn: Kt, path: at });
3757
3779
  }
3758
- function bc(t, e, n = "patch") {
3780
+ function kc(t, e, n = "patch") {
3759
3781
  return T({
3760
3782
  id: t,
3761
3783
  form_data: e,
@@ -3765,14 +3787,14 @@ function bc(t, e, n = "patch") {
3765
3787
  path: at
3766
3788
  });
3767
3789
  }
3768
- function vc(t) {
3790
+ function $c(t) {
3769
3791
  return P({ form_data: t, query_params: {}, fn: Kt, path: at });
3770
3792
  }
3771
- function Sc(t) {
3772
- return I({ id: t, query_params: {}, path: at });
3793
+ function xc(t) {
3794
+ return E({ id: t, query_params: {}, path: at });
3773
3795
  }
3774
3796
  var Vr = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(Vr || {});
3775
- class no extends L {
3797
+ class io extends L {
3776
3798
  /** Name of the folder on the server to pull the repository */
3777
3799
  folder_name;
3778
3800
  /** Description of the contents of the repository */
@@ -3801,15 +3823,15 @@ class no extends L {
3801
3823
  }
3802
3824
  const V = "repositories";
3803
3825
  function Zt(t) {
3804
- return new no(t);
3826
+ return new io(t);
3805
3827
  }
3806
- function kc(t = {}) {
3828
+ function Ac(t = {}) {
3807
3829
  return O({ query_params: t, fn: Zt, path: V });
3808
3830
  }
3809
- function $c(t) {
3831
+ function wc(t) {
3810
3832
  return k({ id: t, query_params: {}, fn: Zt, path: V });
3811
3833
  }
3812
- function xc(t, e, n = "patch") {
3834
+ function Oc(t, e, n = "patch") {
3813
3835
  return T({
3814
3836
  id: t,
3815
3837
  form_data: e,
@@ -3819,41 +3841,41 @@ function xc(t, e, n = "patch") {
3819
3841
  path: V
3820
3842
  });
3821
3843
  }
3822
- function Ac(t) {
3844
+ function Ec(t) {
3823
3845
  return P({ form_data: t, query_params: {}, fn: Zt, path: V });
3824
3846
  }
3825
- function wc(t) {
3826
- return I({ id: t, query_params: {}, path: V });
3847
+ function Ic(t) {
3848
+ return E({ id: t, query_params: {}, path: V });
3827
3849
  }
3828
- function Oc() {
3850
+ function Pc() {
3829
3851
  return k({
3830
3852
  id: "interfaces",
3831
3853
  query_params: {},
3832
3854
  path: V
3833
3855
  });
3834
3856
  }
3835
- function Ic(t) {
3857
+ function Tc(t) {
3836
3858
  return k({
3837
3859
  id: "remote_default_branch",
3838
3860
  query_params: t,
3839
3861
  path: V
3840
3862
  });
3841
3863
  }
3842
- function Pc(t) {
3864
+ function qc(t) {
3843
3865
  return k({
3844
3866
  id: "remote_branches",
3845
3867
  query_params: t,
3846
3868
  path: V
3847
3869
  });
3848
3870
  }
3849
- function Tc(t) {
3871
+ function Uc(t) {
3850
3872
  return k({
3851
3873
  id: "remote_commits",
3852
3874
  query_params: t,
3853
3875
  path: V
3854
3876
  });
3855
3877
  }
3856
- function Ec(t, e) {
3878
+ function Rc(t, e) {
3857
3879
  return m({
3858
3880
  id: t,
3859
3881
  task_name: "drivers",
@@ -3862,7 +3884,7 @@ function Ec(t, e) {
3862
3884
  path: V
3863
3885
  });
3864
3886
  }
3865
- function qc(t, e) {
3887
+ function Mc(t, e) {
3866
3888
  return m({
3867
3889
  id: t,
3868
3890
  task_name: "commits",
@@ -3871,7 +3893,7 @@ function qc(t, e) {
3871
3893
  path: V
3872
3894
  });
3873
3895
  }
3874
- function Uc(t) {
3896
+ function Cc(t) {
3875
3897
  return m({
3876
3898
  id: t,
3877
3899
  task_name: "branches",
@@ -3879,7 +3901,7 @@ function Uc(t) {
3879
3901
  path: V
3880
3902
  });
3881
3903
  }
3882
- function Rc(t) {
3904
+ function Dc(t) {
3883
3905
  return m({
3884
3906
  id: t,
3885
3907
  task_name: "default_branch",
@@ -3887,7 +3909,7 @@ function Rc(t) {
3887
3909
  path: V
3888
3910
  });
3889
3911
  }
3890
- function Mc(t, e) {
3912
+ function Nc(t, e) {
3891
3913
  return m({
3892
3914
  id: t,
3893
3915
  task_name: "details",
@@ -3896,7 +3918,7 @@ function Mc(t, e) {
3896
3918
  path: V
3897
3919
  });
3898
3920
  }
3899
- function Cc(t, e) {
3921
+ function Fc(t, e) {
3900
3922
  return m({
3901
3923
  id: t,
3902
3924
  task_name: "pull",
@@ -3905,7 +3927,7 @@ function Cc(t, e) {
3905
3927
  path: V
3906
3928
  });
3907
3929
  }
3908
- function Dc(t, e) {
3930
+ function jc(t, e) {
3909
3931
  return m({
3910
3932
  id: t,
3911
3933
  task_name: "folders",
@@ -3914,7 +3936,7 @@ function Dc(t, e) {
3914
3936
  path: V
3915
3937
  });
3916
3938
  }
3917
- class ro extends L {
3939
+ class so extends L {
3918
3940
  /** Type of auth source */
3919
3941
  type = "saml";
3920
3942
  /** ID of the authority associted with the auth method */
@@ -3954,15 +3976,15 @@ class ro extends L {
3954
3976
  }
3955
3977
  const lt = "saml_auths";
3956
3978
  function Xt(t) {
3957
- return new ro(t);
3979
+ return new so(t);
3958
3980
  }
3959
- function Nc(t = {}) {
3981
+ function zc(t = {}) {
3960
3982
  return O({ query_params: t, fn: Xt, path: lt });
3961
3983
  }
3962
- function jc(t) {
3984
+ function Hc(t) {
3963
3985
  return k({ id: t, query_params: {}, fn: Xt, path: lt });
3964
3986
  }
3965
- function Fc(t, e, n = "patch") {
3987
+ function Wc(t, e, n = "patch") {
3966
3988
  return T({
3967
3989
  id: t,
3968
3990
  form_data: e,
@@ -3972,23 +3994,23 @@ function Fc(t, e, n = "patch") {
3972
3994
  path: lt
3973
3995
  });
3974
3996
  }
3975
- function zc(t) {
3997
+ function Lc(t) {
3976
3998
  return P({ form_data: t, query_params: {}, fn: Xt, path: lt });
3977
3999
  }
3978
- function Hc(t) {
3979
- return I({ id: t, query_params: {}, path: lt });
4000
+ function Bc(t) {
4001
+ return E({ id: t, query_params: {}, path: lt });
3980
4002
  }
3981
4003
  const We = "settings";
3982
4004
  function ht(t) {
3983
- return new Ie(t);
4005
+ return new Ee(t);
3984
4006
  }
3985
- function Wc(t = {}) {
4007
+ function Vc(t = {}) {
3986
4008
  return O({ query_params: t, fn: ht, path: We });
3987
4009
  }
3988
- function Lc(t) {
4010
+ function Qc(t) {
3989
4011
  return k({ id: t, query_params: {}, fn: ht, path: We });
3990
4012
  }
3991
- function Bc(t, e, n = {}, r = "patch") {
4013
+ function Yc(t, e, n = {}, r = "patch") {
3992
4014
  return T({
3993
4015
  id: t,
3994
4016
  form_data: e,
@@ -3998,13 +4020,13 @@ function Bc(t, e, n = {}, r = "patch") {
3998
4020
  path: We
3999
4021
  });
4000
4022
  }
4001
- function Vc(t, e = {}) {
4023
+ function Gc(t, e = {}) {
4002
4024
  return P({ form_data: t, query_params: e, fn: ht, path: We });
4003
4025
  }
4004
- function Qc(t) {
4005
- return I({ id: t, query_params: {}, path: We });
4026
+ function Jc(t) {
4027
+ return E({ id: t, query_params: {}, path: We });
4006
4028
  }
4007
- function Yc(t, e = {}) {
4029
+ function Kc(t, e = {}) {
4008
4030
  return m({
4009
4031
  id: t,
4010
4032
  task_name: "history",
@@ -4015,55 +4037,55 @@ function Yc(t, e = {}) {
4015
4037
  });
4016
4038
  }
4017
4039
  const M = "systems";
4018
- function Ee(t) {
4040
+ function Te(t) {
4019
4041
  return new Lr(t);
4020
4042
  }
4021
- function Gc(t = {}) {
4022
- return O({ query_params: t, fn: Ee, path: M });
4043
+ function Zc(t = {}) {
4044
+ return O({ query_params: t, fn: Te, path: M });
4023
4045
  }
4024
- function Jc(t) {
4025
- 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` });
4026
4048
  }
4027
- function Kc(t, e = {}) {
4028
- 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 });
4029
4051
  }
4030
- function Zc(t, e, n = "patch") {
4052
+ function ta(t, e, n = "patch") {
4031
4053
  return T({
4032
4054
  id: t,
4033
4055
  form_data: e,
4034
4056
  query_params: {},
4035
4057
  method: n,
4036
- fn: Ee,
4058
+ fn: Te,
4037
4059
  path: M
4038
4060
  });
4039
4061
  }
4040
- function Xc(t) {
4041
- return P({ 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 });
4042
4064
  }
4043
- function ea(t) {
4044
- return I({ id: t, query_params: {}, path: M });
4065
+ function ra(t) {
4066
+ return E({ id: t, query_params: {}, path: M });
4045
4067
  }
4046
- function ta(t, e, n = {}) {
4068
+ function ia(t, e, n = {}) {
4047
4069
  return m({
4048
4070
  id: t,
4049
4071
  task_name: `module/${e}`,
4050
4072
  form_data: n,
4051
4073
  method: "put",
4052
- callback: (r) => Ee(r),
4074
+ callback: (r) => Te(r),
4053
4075
  path: M
4054
4076
  });
4055
4077
  }
4056
- function na(t, e) {
4078
+ function sa(t, e) {
4057
4079
  return m({
4058
4080
  id: t,
4059
4081
  task_name: `module/${e}`,
4060
4082
  form_data: {},
4061
4083
  method: "del",
4062
- callback: (n) => Ee(n),
4084
+ callback: (n) => Te(n),
4063
4085
  path: M
4064
4086
  });
4065
4087
  }
4066
- function ra(t, e = {}) {
4088
+ function oa(t, e = {}) {
4067
4089
  return m({
4068
4090
  id: t,
4069
4091
  task_name: "start",
@@ -4071,7 +4093,7 @@ function ra(t, e = {}) {
4071
4093
  path: M
4072
4094
  });
4073
4095
  }
4074
- function ia(t, e = {}) {
4096
+ function ua(t, e = {}) {
4075
4097
  return m({
4076
4098
  id: t,
4077
4099
  task_name: "stop",
@@ -4079,7 +4101,7 @@ function ia(t, e = {}) {
4079
4101
  path: M
4080
4102
  });
4081
4103
  }
4082
- function sa(t, e, n, r = 1, i = []) {
4104
+ function ca(t, e, n, r = 1, i = []) {
4083
4105
  return m({
4084
4106
  id: t,
4085
4107
  task_name: `${n}_${r}/${encodeURIComponent(e)}`,
@@ -4087,7 +4109,7 @@ function sa(t, e, n, r = 1, i = []) {
4087
4109
  path: M
4088
4110
  });
4089
4111
  }
4090
- function oa(t, e, n = 1) {
4112
+ function aa(t, e, n = 1) {
4091
4113
  return m({
4092
4114
  id: t,
4093
4115
  task_name: `${e}_${n}`,
@@ -4095,7 +4117,7 @@ function oa(t, e, n = 1) {
4095
4117
  path: M
4096
4118
  });
4097
4119
  }
4098
- function ua(t, e, n = 1, r) {
4120
+ function la(t, e, n = 1, r) {
4099
4121
  return m({
4100
4122
  id: t,
4101
4123
  task_name: `${e}_${n}/${r}`,
@@ -4103,7 +4125,7 @@ function ua(t, e, n = 1, r) {
4103
4125
  path: M
4104
4126
  });
4105
4127
  }
4106
- function ca(t, e, n = 1) {
4128
+ function ha(t, e, n = 1) {
4107
4129
  return m({
4108
4130
  id: t,
4109
4131
  task_name: `functions/${e}_${n}`,
@@ -4111,21 +4133,21 @@ function ca(t, e, n = 1) {
4111
4133
  path: M
4112
4134
  });
4113
4135
  }
4114
- function aa(t) {
4136
+ function fa(t) {
4115
4137
  return O({
4116
4138
  query_params: {},
4117
- fn: (e) => new Un(e),
4139
+ fn: (e) => new Mn(e),
4118
4140
  path: `${M}/${t}/zones`
4119
4141
  });
4120
4142
  }
4121
- function la(t, e = {}) {
4143
+ function da(t, e = {}) {
4122
4144
  return O({
4123
4145
  query_params: e,
4124
4146
  fn: (n) => new me(n),
4125
4147
  path: `${M}/${t}/triggers`
4126
4148
  });
4127
4149
  }
4128
- function ha(t, e) {
4150
+ function pa(t, e) {
4129
4151
  return m({
4130
4152
  id: t,
4131
4153
  task_name: "triggers",
@@ -4135,7 +4157,7 @@ function ha(t, e) {
4135
4157
  path: M
4136
4158
  });
4137
4159
  }
4138
- function fa(t, e) {
4160
+ function _a(t, e) {
4139
4161
  return m({
4140
4162
  id: t,
4141
4163
  task_name: `triggers/${e}`,
@@ -4143,21 +4165,21 @@ function fa(t, e) {
4143
4165
  path: M
4144
4166
  });
4145
4167
  }
4146
- function da(t) {
4168
+ function ma(t) {
4147
4169
  return m({
4148
4170
  id: t,
4149
4171
  task_name: "settings",
4150
4172
  method: "get",
4151
- callback: (e) => e.map((n) => new Ie(n)),
4173
+ callback: (e) => e.map((n) => new Ee(n)),
4152
4174
  path: M
4153
4175
  });
4154
4176
  }
4155
- function pa(t = {}) {
4177
+ function ya(t = {}) {
4156
4178
  const e = x(), n = e.startsWith("https") ? "wss:" : "ws:", r = e.startsWith("https") ? "https:" : "http:";
4157
4179
  let i = e.replace(r, n) + `${M}/control`;
4158
4180
  return t.fixed_device && (i += `?fixed_device=${encodeURIComponent(String(t.fixed_device))}`), i;
4159
4181
  }
4160
- function _a(t, e = {}) {
4182
+ function ga(t, e = {}) {
4161
4183
  return m({
4162
4184
  id: t,
4163
4185
  task_name: "metadata",
@@ -4166,7 +4188,7 @@ function _a(t, e = {}) {
4166
4188
  path: M
4167
4189
  });
4168
4190
  }
4169
- function ma(t, e, n = {}) {
4191
+ function ba(t, e, n = {}) {
4170
4192
  return m({
4171
4193
  id: t,
4172
4194
  task_name: `triggers/${encodeURIComponent(e)}`,
@@ -4176,7 +4198,7 @@ function ma(t, e, n = {}) {
4176
4198
  path: M
4177
4199
  });
4178
4200
  }
4179
- function ya(t, e, n, r = "patch") {
4201
+ function va(t, e, n, r = "patch") {
4180
4202
  return m({
4181
4203
  id: t,
4182
4204
  task_name: `triggers/${encodeURIComponent(e)}`,
@@ -4190,13 +4212,13 @@ const Le = "triggers";
4190
4212
  function en(t) {
4191
4213
  return new me(t);
4192
4214
  }
4193
- function ga(t = {}) {
4215
+ function Sa(t = {}) {
4194
4216
  return O({ query_params: t, fn: en, path: Le });
4195
4217
  }
4196
- function ba(t, e = {}) {
4218
+ function ka(t, e = {}) {
4197
4219
  return k({ id: t, query_params: e, fn: en, path: Le });
4198
4220
  }
4199
- function va(t, e, n = "patch") {
4221
+ function $a(t, e, n = "patch") {
4200
4222
  return T({
4201
4223
  id: t,
4202
4224
  form_data: e,
@@ -4206,13 +4228,13 @@ function va(t, e, n = "patch") {
4206
4228
  path: Le
4207
4229
  });
4208
4230
  }
4209
- function Sa(t) {
4231
+ function xa(t) {
4210
4232
  return P({ form_data: t, query_params: {}, fn: en, path: Le });
4211
4233
  }
4212
- function ka(t) {
4213
- return I({ id: t, query_params: {}, path: Le });
4234
+ function Aa(t) {
4235
+ return E({ id: t, query_params: {}, path: Le });
4214
4236
  }
4215
- function $a(t) {
4237
+ function wa(t) {
4216
4238
  return m({
4217
4239
  id: t,
4218
4240
  task_name: "instances",
@@ -4222,8 +4244,8 @@ function $a(t) {
4222
4244
  path: Le
4223
4245
  });
4224
4246
  }
4225
- 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 || {});
4226
- 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 {
4227
4249
  /** Hash of the email address of the user */
4228
4250
  email_digest;
4229
4251
  /** ID of the authority associated with the user */
@@ -4278,18 +4300,18 @@ class uo extends L {
4278
4300
  }
4279
4301
  const K = "users";
4280
4302
  function Be(t) {
4281
- return new uo(t);
4303
+ return new ao(t);
4282
4304
  }
4283
- function xa(t = {}) {
4305
+ function Oa(t = {}) {
4284
4306
  return O({ query_params: t, fn: Be, path: K });
4285
4307
  }
4286
- function Aa(t, e = {}) {
4308
+ function Ea(t, e = {}) {
4287
4309
  return k({ id: t, query_params: e, fn: Be, path: K });
4288
4310
  }
4289
- function wa(t = {}) {
4311
+ function Ia(t = {}) {
4290
4312
  return k({ id: "current", query_params: t, fn: Be, path: K });
4291
4313
  }
4292
- function Oa(t, e, n = "patch") {
4314
+ function Pa(t, e, n = "patch") {
4293
4315
  return T({
4294
4316
  id: t,
4295
4317
  form_data: e,
@@ -4299,25 +4321,25 @@ function Oa(t, e, n = "patch") {
4299
4321
  path: K
4300
4322
  });
4301
4323
  }
4302
- function Ia(t) {
4324
+ function Ta(t) {
4303
4325
  return P({ form_data: t, query_params: {}, fn: Be, path: K });
4304
4326
  }
4305
- function Pa(t, e = {}) {
4306
- return I({ id: t, query_params: e, path: K });
4327
+ function qa(t, e = {}) {
4328
+ return E({ id: t, query_params: e, path: K });
4307
4329
  }
4308
- function Ta(t) {
4330
+ function Ua(t) {
4309
4331
  const e = R(t), n = `${x()}${K}/groups${e ? "?" + e : ""}`;
4310
- return N(n).pipe(g((r) => r));
4332
+ return N(n).pipe(b((r) => r));
4311
4333
  }
4312
- function Ea(t) {
4334
+ function Ra(t) {
4313
4335
  const e = R(t), n = `${x()}${K}/metadata/search${e ? "?" + e : ""}`;
4314
- return N(n).pipe(g((r) => r));
4336
+ return N(n).pipe(b((r) => r));
4315
4337
  }
4316
- function qa() {
4338
+ function Ma() {
4317
4339
  const t = `${x()}${K}/resource_token`;
4318
- return G(t, {}).pipe(g((e) => e));
4340
+ return G(t, {}).pipe(b((e) => e));
4319
4341
  }
4320
- function Ua(t, e = {}) {
4342
+ function Ca(t, e = {}) {
4321
4343
  return m({
4322
4344
  id: t,
4323
4345
  task_name: "metadata",
@@ -4326,15 +4348,15 @@ function Ua(t, e = {}) {
4326
4348
  path: K
4327
4349
  });
4328
4350
  }
4329
- function Ra(t) {
4351
+ function Da(t) {
4330
4352
  const e = `${x()}${K}/${encodeURIComponent(t)}/resource_token`;
4331
4353
  return Oe(e, { response_type: "void" });
4332
4354
  }
4333
- function Ma(t) {
4355
+ function Na(t) {
4334
4356
  const e = `${x()}${K}/${encodeURIComponent(t)}/resource_token`;
4335
- return G(e, {}).pipe(g((n) => n));
4357
+ return G(e, {}).pipe(b((n) => n));
4336
4358
  }
4337
- function Ca(t) {
4359
+ function Fa(t) {
4338
4360
  return m({
4339
4361
  id: t,
4340
4362
  task_name: "revive",
@@ -4346,12 +4368,12 @@ function Ca(t) {
4346
4368
  }
4347
4369
  const le = "zones";
4348
4370
  function tn(t) {
4349
- return new Un(t);
4371
+ return new Mn(t);
4350
4372
  }
4351
- function Da(t = {}) {
4373
+ function ja(t = {}) {
4352
4374
  return O({ query_params: t, fn: tn, path: le });
4353
4375
  }
4354
- function Na(t = {}) {
4376
+ function za(t = {}) {
4355
4377
  return k({
4356
4378
  id: "tags",
4357
4379
  query_params: t,
@@ -4359,10 +4381,10 @@ function Na(t = {}) {
4359
4381
  path: le
4360
4382
  });
4361
4383
  }
4362
- function ja(t, e = {}) {
4384
+ function Ha(t, e = {}) {
4363
4385
  return k({ id: t, query_params: e, fn: tn, path: le });
4364
4386
  }
4365
- function Fa(t, e, n = "patch") {
4387
+ function Wa(t, e, n = "patch") {
4366
4388
  return T({
4367
4389
  id: t,
4368
4390
  form_data: e,
@@ -4372,20 +4394,20 @@ function Fa(t, e, n = "patch") {
4372
4394
  path: le
4373
4395
  });
4374
4396
  }
4375
- function za(t) {
4397
+ function La(t) {
4376
4398
  return P({ form_data: t, query_params: {}, fn: tn, path: le });
4377
4399
  }
4378
- function Ha(t) {
4379
- return I({ id: t, query_params: {}, path: le });
4400
+ function Ba(t) {
4401
+ return E({ id: t, query_params: {}, path: le });
4380
4402
  }
4381
- function Wa(t, e = {}) {
4403
+ function Va(t, e = {}) {
4382
4404
  return O({
4383
4405
  query_params: e,
4384
4406
  fn: (n) => new me(n),
4385
4407
  path: `${le}/${t}/triggers`
4386
4408
  });
4387
4409
  }
4388
- function La(t, e, n, r = 1, i = []) {
4410
+ function Qa(t, e, n, r = 1, i = []) {
4389
4411
  return m({
4390
4412
  id: t,
4391
4413
  task_name: `exec/${encodeURIComponent(
@@ -4395,7 +4417,7 @@ function La(t, e, n, r = 1, i = []) {
4395
4417
  path: le
4396
4418
  });
4397
4419
  }
4398
- function Ba(t, e = {}) {
4420
+ function Ya(t, e = {}) {
4399
4421
  return m({
4400
4422
  id: t,
4401
4423
  task_name: "metadata",
@@ -4405,7 +4427,7 @@ function Ba(t, e = {}) {
4405
4427
  });
4406
4428
  }
4407
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 || {});
4408
- class co {
4430
+ class lo {
4409
4431
  id;
4410
4432
  created_at;
4411
4433
  updated_at;
@@ -4431,10 +4453,10 @@ class co {
4431
4453
  return `/api/engine/v2/uploads/${this.thumbnail_id}/url`;
4432
4454
  }
4433
4455
  constructor(e) {
4434
- 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;
4435
4457
  }
4436
4458
  }
4437
- class Rn {
4459
+ class Cn {
4438
4460
  id;
4439
4461
  playlist_id;
4440
4462
  items;
@@ -4451,7 +4473,7 @@ class Rn {
4451
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 || "";
4452
4474
  }
4453
4475
  }
4454
- class ao {
4476
+ class ho {
4455
4477
  id;
4456
4478
  created_at;
4457
4479
  updated_at;
@@ -4475,10 +4497,10 @@ class ao {
4475
4497
  }
4476
4498
  }
4477
4499
  const Yr = "signage";
4478
- function Va(t, e = {}, n) {
4500
+ function Ga(t, e = {}, n) {
4479
4501
  return k({ id: t, query_params: e, fn: (r) => r, path: `${Yr}`, options: n });
4480
4502
  }
4481
- function Qa(t) {
4503
+ function Ja(t) {
4482
4504
  return m({
4483
4505
  id: t,
4484
4506
  task_name: "metrics",
@@ -4490,15 +4512,15 @@ function Qa(t) {
4490
4512
  }
4491
4513
  const Ve = "signage/media";
4492
4514
  function nn(t) {
4493
- return new co(t);
4515
+ return new lo(t);
4494
4516
  }
4495
- function Ya(t = {}) {
4517
+ function Ka(t = {}) {
4496
4518
  return O({ query_params: t, fn: nn, path: Ve });
4497
4519
  }
4498
- function Ga(t, e = {}) {
4520
+ function Za(t, e = {}) {
4499
4521
  return k({ id: t, query_params: e, fn: nn, path: Ve });
4500
4522
  }
4501
- function Ja(t, e, n = "patch") {
4523
+ function Xa(t, e, n = "patch") {
4502
4524
  return T({
4503
4525
  id: t,
4504
4526
  form_data: e,
@@ -4508,7 +4530,7 @@ function Ja(t, e, n = "patch") {
4508
4530
  path: Ve
4509
4531
  });
4510
4532
  }
4511
- function Ka(t) {
4533
+ function el(t) {
4512
4534
  return P({
4513
4535
  form_data: t,
4514
4536
  query_params: {},
@@ -4516,20 +4538,20 @@ function Ka(t) {
4516
4538
  path: Ve
4517
4539
  });
4518
4540
  }
4519
- function Za(t, e = {}) {
4520
- return I({ id: t, query_params: e, path: Ve });
4541
+ function tl(t, e = {}) {
4542
+ return E({ id: t, query_params: e, path: Ve });
4521
4543
  }
4522
- function Xa(t) {
4544
+ function nl(t) {
4523
4545
  return `${x()}/${Ve}/${t}/thumbnail`;
4524
4546
  }
4525
4547
  const he = "signage/playlists";
4526
4548
  function rn(t) {
4527
- return new ao(t);
4549
+ return new ho(t);
4528
4550
  }
4529
- function el(t = {}) {
4551
+ function rl(t = {}) {
4530
4552
  return O({ query_params: t, fn: rn, path: he });
4531
4553
  }
4532
- function tl(t, e = {}) {
4554
+ function il(t, e = {}) {
4533
4555
  return k({
4534
4556
  id: t,
4535
4557
  query_params: e,
@@ -4537,7 +4559,7 @@ function tl(t, e = {}) {
4537
4559
  path: he
4538
4560
  });
4539
4561
  }
4540
- function nl(t, e, n = "patch") {
4562
+ function sl(t, e, n = "patch") {
4541
4563
  return T({
4542
4564
  id: t,
4543
4565
  form_data: e,
@@ -4547,7 +4569,7 @@ function nl(t, e, n = "patch") {
4547
4569
  path: he
4548
4570
  });
4549
4571
  }
4550
- function rl(t) {
4572
+ function ol(t) {
4551
4573
  return P({
4552
4574
  form_data: t,
4553
4575
  query_params: {},
@@ -4555,32 +4577,32 @@ function rl(t) {
4555
4577
  path: he
4556
4578
  });
4557
4579
  }
4558
- function il(t, e = {}) {
4559
- return I({ id: t, query_params: e, path: he });
4580
+ function ul(t, e = {}) {
4581
+ return E({ id: t, query_params: e, path: he });
4560
4582
  }
4561
- function sl(t, e = {}) {
4583
+ function cl(t, e = {}) {
4562
4584
  return m({
4563
4585
  id: t,
4564
4586
  task_name: "media",
4565
4587
  form_data: e,
4566
4588
  method: "get",
4567
- callback: (n) => new Rn(n),
4589
+ callback: (n) => new Cn(n),
4568
4590
  path: he
4569
4591
  });
4570
4592
  }
4571
- function ol(t, e = {}) {
4593
+ function al(t, e = {}) {
4572
4594
  return m({
4573
4595
  id: t,
4574
4596
  task_name: "media/revisions",
4575
4597
  form_data: e,
4576
4598
  method: "get",
4577
4599
  callback: (n) => n.map(
4578
- (r) => new Rn(r)
4600
+ (r) => new Cn(r)
4579
4601
  ),
4580
4602
  path: he
4581
4603
  });
4582
4604
  }
4583
- function ul(t) {
4605
+ function ll(t) {
4584
4606
  return m({
4585
4607
  id: t,
4586
4608
  task_name: "media/approve",
@@ -4588,14 +4610,14 @@ function ul(t) {
4588
4610
  path: he
4589
4611
  });
4590
4612
  }
4591
- function cl(t, e) {
4613
+ function hl(t, e) {
4592
4614
  return m({
4593
4615
  id: t,
4594
4616
  task_name: "media",
4595
4617
  form_data: e,
4596
4618
  method: "post",
4597
4619
  path: he,
4598
- callback: (n) => new Rn(n)
4620
+ callback: (n) => new Cn(n)
4599
4621
  });
4600
4622
  }
4601
4623
  class Gr {
@@ -4609,15 +4631,15 @@ class Gr {
4609
4631
  }
4610
4632
  }
4611
4633
  const Jr = "/api/staff/v1/surveys/answers";
4612
- function al(t = {}) {
4634
+ function fl(t = {}) {
4613
4635
  const e = R(t);
4614
4636
  return N(`${Jr}${e ? "?" + e : ""}`).pipe(
4615
- g((n) => n.map((r) => new Gr(r)))
4637
+ b((n) => n.map((r) => new Gr(r)))
4616
4638
  );
4617
4639
  }
4618
- function ll(t) {
4640
+ function dl(t) {
4619
4641
  return G(`${Jr}`, t).pipe(
4620
- g((e) => e.map((n) => new Gr(n)))
4642
+ b((e) => e.map((n) => new Gr(n)))
4621
4643
  );
4622
4644
  }
4623
4645
  class sn {
@@ -4631,29 +4653,29 @@ class sn {
4631
4653
  }
4632
4654
  }
4633
4655
  const ft = "/api/staff/v1/surveys/invitations";
4634
- function hl(t = {}) {
4656
+ function pl(t = {}) {
4635
4657
  const e = R(t);
4636
4658
  return N(`${ft}${e ? "?" + e : ""}`).pipe(
4637
- g((n) => n.map((r) => new sn(r)))
4659
+ b((n) => n.map((r) => new sn(r)))
4638
4660
  );
4639
4661
  }
4640
- function fl(t, e = {}) {
4662
+ function _l(t, e = {}) {
4641
4663
  const n = R(e);
4642
4664
  return N(`${ft}/${t}${n ? "?" + n : ""}`).pipe(
4643
- g((r) => new sn(r))
4665
+ b((r) => new sn(r))
4644
4666
  );
4645
4667
  }
4646
- function dl(t, e, n = "patch") {
4668
+ function ml(t, e, n = "patch") {
4647
4669
  return (n === "put" ? Ne : et)(`${ft}/${t}`, e).pipe(
4648
- g((r) => new sn(r))
4670
+ b((r) => new sn(r))
4649
4671
  );
4650
4672
  }
4651
- function pl(t) {
4673
+ function yl(t) {
4652
4674
  return G(`${ft}`, t).pipe(
4653
- g((e) => new sn(e))
4675
+ b((e) => new sn(e))
4654
4676
  );
4655
4677
  }
4656
- function _l(t, e = {}) {
4678
+ function gl(t, e = {}) {
4657
4679
  const n = R(e);
4658
4680
  return Oe(`${ft}/${t}${n ? "?" + n : ""}`);
4659
4681
  }
@@ -4673,29 +4695,29 @@ class on {
4673
4695
  }
4674
4696
  }
4675
4697
  const dt = "/api/staff/v1/surveys/questions";
4676
- function ml(t = {}) {
4698
+ function bl(t = {}) {
4677
4699
  const e = R(t);
4678
4700
  return N(`${dt}${e ? "?" + e : ""}`).pipe(
4679
- g((n) => n.map((r) => new on(r)))
4701
+ b((n) => n.map((r) => new on(r)))
4680
4702
  );
4681
4703
  }
4682
- function yl(t, e = {}) {
4704
+ function vl(t, e = {}) {
4683
4705
  const n = R(e);
4684
4706
  return N(`${dt}/${t}${n ? "?" + n : ""}`).pipe(
4685
- g((r) => new on(r))
4707
+ b((r) => new on(r))
4686
4708
  );
4687
4709
  }
4688
- function gl(t) {
4710
+ function Sl(t) {
4689
4711
  return G(`${dt}`, t).pipe(
4690
- g((e) => new on(e))
4712
+ b((e) => new on(e))
4691
4713
  );
4692
4714
  }
4693
- function bl(t, e, n = "patch") {
4715
+ function kl(t, e, n = "patch") {
4694
4716
  return (n === "put" ? Ne : et)(`${dt}/${t}`, e).pipe(
4695
- g((r) => new on(r))
4717
+ b((r) => new on(r))
4696
4718
  );
4697
4719
  }
4698
- function vl(t, e = {}) {
4720
+ function $l(t, e = {}) {
4699
4721
  const n = R(e);
4700
4722
  return Oe(`${dt}/${t}${n ? "?" + n : ""}`);
4701
4723
  }
@@ -4712,31 +4734,31 @@ class un {
4712
4734
  }
4713
4735
  }
4714
4736
  const pt = "/api/staff/v1/surveys";
4715
- function Sl(t = {}) {
4737
+ function xl(t = {}) {
4716
4738
  const e = R(t);
4717
4739
  return N(`${pt}${e ? "?" + e : ""}`).pipe(
4718
- g((n) => n.map((r) => new un(r)))
4740
+ b((n) => n.map((r) => new un(r)))
4719
4741
  );
4720
4742
  }
4721
- function kl(t, e = {}) {
4743
+ function Al(t, e = {}) {
4722
4744
  const n = R(e);
4723
4745
  return N(`${pt}/${t}${n ? "?" + n : ""}`).pipe(
4724
- g((r) => new un(r))
4746
+ b((r) => new un(r))
4725
4747
  );
4726
4748
  }
4727
- function $l(t, e, n = "patch") {
4749
+ function wl(t, e, n = "patch") {
4728
4750
  return (n === "put" ? Ne : et)(`${pt}/${t}`, e).pipe(
4729
- g((r) => new un(r))
4751
+ b((r) => new un(r))
4730
4752
  );
4731
4753
  }
4732
- function xl(t) {
4733
- 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)));
4734
4756
  }
4735
- function Al(t, e = {}) {
4757
+ function El(t, e = {}) {
4736
4758
  const n = R(e);
4737
4759
  return Oe(`${pt}/${t}${n ? "?" + n : ""}`);
4738
4760
  }
4739
- class lo {
4761
+ class fo {
4740
4762
  id;
4741
4763
  parent_category_id;
4742
4764
  name;
@@ -4748,7 +4770,7 @@ class lo {
4748
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;
4749
4771
  }
4750
4772
  }
4751
- class ho {
4773
+ class po {
4752
4774
  id;
4753
4775
  purchase_order_number;
4754
4776
  invoice_number;
@@ -4763,7 +4785,7 @@ class ho {
4763
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;
4764
4786
  }
4765
4787
  }
4766
- class fo {
4788
+ class _o {
4767
4789
  id;
4768
4790
  category_id;
4769
4791
  name;
@@ -4777,7 +4799,7 @@ class fo {
4777
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;
4778
4800
  }
4779
4801
  }
4780
- class po {
4802
+ class mo {
4781
4803
  id;
4782
4804
  parent_id;
4783
4805
  asset_type_id;
@@ -4808,16 +4830,16 @@ class po {
4808
4830
  }
4809
4831
  const ye = "assets";
4810
4832
  function qe(t) {
4811
- return new po(t);
4833
+ return new mo(t);
4812
4834
  }
4813
- function wl(t = {}) {
4835
+ function Il(t = {}) {
4814
4836
  return O({
4815
4837
  query_params: t,
4816
4838
  fn: qe,
4817
4839
  path: ye
4818
4840
  });
4819
4841
  }
4820
- function Ol(t, e = {}) {
4842
+ function Pl(t, e = {}) {
4821
4843
  return k({
4822
4844
  id: t,
4823
4845
  query_params: e,
@@ -4825,7 +4847,7 @@ function Ol(t, e = {}) {
4825
4847
  path: ye
4826
4848
  });
4827
4849
  }
4828
- function Il(t, e, n = "patch") {
4850
+ function Tl(t, e, n = "patch") {
4829
4851
  return T({
4830
4852
  id: t,
4831
4853
  form_data: e,
@@ -4835,7 +4857,7 @@ function Il(t, e, n = "patch") {
4835
4857
  path: ye
4836
4858
  });
4837
4859
  }
4838
- function Pl(t) {
4860
+ function ql(t) {
4839
4861
  return P({
4840
4862
  form_data: t,
4841
4863
  query_params: {},
@@ -4843,41 +4865,41 @@ function Pl(t) {
4843
4865
  path: ye
4844
4866
  });
4845
4867
  }
4846
- function Tl(t, e = {}) {
4847
- return I({ id: t, query_params: e, path: ye });
4868
+ function Ul(t, e = {}) {
4869
+ return E({ id: t, query_params: e, path: ye });
4848
4870
  }
4849
- function El(t) {
4871
+ function Rl(t) {
4850
4872
  return G(
4851
4873
  `${x()}${ye}/bulk`,
4852
4874
  JSON.stringify(t),
4853
4875
  {}
4854
- ).pipe(g((e) => e.map((n) => qe(n))));
4876
+ ).pipe(b((e) => e.map((n) => qe(n))));
4855
4877
  }
4856
- function ql(t, e = "patch") {
4878
+ function Ml(t, e = "patch") {
4857
4879
  return (e === "put" ? Ne : et)(
4858
4880
  `${x()}${ye}/bulk`,
4859
4881
  JSON.stringify(t),
4860
4882
  {}
4861
- ).pipe(g((r) => r.map((i) => qe(i))));
4883
+ ).pipe(b((r) => r.map((i) => qe(i))));
4862
4884
  }
4863
- function Ul(t, e = {}) {
4885
+ function Cl(t, e = {}) {
4864
4886
  const n = R(e);
4865
4887
  return Oe(`${x()}${ye}/bulk${n ? "?" + n : ""}`, {
4866
4888
  body: JSON.stringify(t)
4867
- }).pipe(g((r) => r.map((i) => qe(i))));
4889
+ }).pipe(b((r) => r.map((i) => qe(i))));
4868
4890
  }
4869
4891
  const _t = "asset_types";
4870
4892
  function cn(t) {
4871
- return new fo(t);
4893
+ return new _o(t);
4872
4894
  }
4873
- function Rl(t = {}) {
4895
+ function Dl(t = {}) {
4874
4896
  return O({
4875
4897
  query_params: t,
4876
4898
  fn: cn,
4877
4899
  path: _t
4878
4900
  });
4879
4901
  }
4880
- function Ml(t, e = {}) {
4902
+ function Nl(t, e = {}) {
4881
4903
  return k({
4882
4904
  id: t,
4883
4905
  query_params: e,
@@ -4885,7 +4907,7 @@ function Ml(t, e = {}) {
4885
4907
  path: _t
4886
4908
  });
4887
4909
  }
4888
- function Cl(t, e, n = "patch") {
4910
+ function Fl(t, e, n = "patch") {
4889
4911
  return T({
4890
4912
  id: t,
4891
4913
  form_data: e,
@@ -4895,7 +4917,7 @@ function Cl(t, e, n = "patch") {
4895
4917
  path: _t
4896
4918
  });
4897
4919
  }
4898
- function Dl(t) {
4920
+ function jl(t) {
4899
4921
  return P({
4900
4922
  form_data: t,
4901
4923
  query_params: {},
@@ -4903,21 +4925,21 @@ function Dl(t) {
4903
4925
  path: _t
4904
4926
  });
4905
4927
  }
4906
- function Nl(t, e = {}) {
4907
- return I({ id: t, query_params: e, path: _t });
4928
+ function zl(t, e = {}) {
4929
+ return E({ id: t, query_params: e, path: _t });
4908
4930
  }
4909
4931
  const mt = "asset_categories";
4910
4932
  function an(t) {
4911
- return new lo(t);
4933
+ return new fo(t);
4912
4934
  }
4913
- function jl(t = {}) {
4935
+ function Hl(t = {}) {
4914
4936
  return O({
4915
4937
  query_params: t,
4916
4938
  fn: an,
4917
4939
  path: mt
4918
4940
  });
4919
4941
  }
4920
- function Fl(t, e = {}) {
4942
+ function Wl(t, e = {}) {
4921
4943
  return k({
4922
4944
  id: t,
4923
4945
  query_params: e,
@@ -4925,7 +4947,7 @@ function Fl(t, e = {}) {
4925
4947
  path: mt
4926
4948
  });
4927
4949
  }
4928
- function zl(t, e, n = "patch") {
4950
+ function Ll(t, e, n = "patch") {
4929
4951
  return T({
4930
4952
  id: t,
4931
4953
  form_data: e,
@@ -4935,7 +4957,7 @@ function zl(t, e, n = "patch") {
4935
4957
  path: mt
4936
4958
  });
4937
4959
  }
4938
- function Hl(t) {
4960
+ function Bl(t) {
4939
4961
  return P({
4940
4962
  form_data: t,
4941
4963
  query_params: {},
@@ -4943,21 +4965,21 @@ function Hl(t) {
4943
4965
  path: mt
4944
4966
  });
4945
4967
  }
4946
- function Wl(t, e = {}) {
4947
- return I({ id: t, query_params: e, path: mt });
4968
+ function Vl(t, e = {}) {
4969
+ return E({ id: t, query_params: e, path: mt });
4948
4970
  }
4949
4971
  const yt = "asset_purchase_orders";
4950
4972
  function ln(t) {
4951
- return new ho(t);
4973
+ return new po(t);
4952
4974
  }
4953
- function Ll(t = {}) {
4975
+ function Ql(t = {}) {
4954
4976
  return O({
4955
4977
  query_params: t,
4956
4978
  fn: ln,
4957
4979
  path: yt
4958
4980
  });
4959
4981
  }
4960
- function Bl(t, e = {}) {
4982
+ function Yl(t, e = {}) {
4961
4983
  return k({
4962
4984
  id: t,
4963
4985
  query_params: e,
@@ -4965,7 +4987,7 @@ function Bl(t, e = {}) {
4965
4987
  path: yt
4966
4988
  });
4967
4989
  }
4968
- function Vl(t, e, n = "patch") {
4990
+ function Gl(t, e, n = "patch") {
4969
4991
  return T({
4970
4992
  id: t,
4971
4993
  form_data: e,
@@ -4975,7 +4997,7 @@ function Vl(t, e, n = "patch") {
4975
4997
  path: yt
4976
4998
  });
4977
4999
  }
4978
- function Ql(t) {
5000
+ function Jl(t) {
4979
5001
  return P({
4980
5002
  form_data: t,
4981
5003
  query_params: {},
@@ -4983,10 +5005,10 @@ function Ql(t) {
4983
5005
  path: yt
4984
5006
  });
4985
5007
  }
4986
- function Yl(t, e = {}) {
4987
- return I({ id: t, query_params: e, path: yt });
5008
+ function Kl(t, e = {}) {
5009
+ return E({ id: t, query_params: e, path: yt });
4988
5010
  }
4989
- class _o {
5011
+ class yo {
4990
5012
  id;
4991
5013
  name;
4992
5014
  uri;
@@ -5007,16 +5029,16 @@ class _o {
5007
5029
  }
5008
5030
  const ie = "short_url";
5009
5031
  function hn(t) {
5010
- return new _o(t);
5032
+ return new yo(t);
5011
5033
  }
5012
- function Gl(t = {}) {
5034
+ function Zl(t = {}) {
5013
5035
  return O({
5014
5036
  query_params: t,
5015
5037
  fn: hn,
5016
5038
  path: ie
5017
5039
  });
5018
5040
  }
5019
- function Jl(t, e = {}) {
5041
+ function Xl(t, e = {}) {
5020
5042
  return k({
5021
5043
  id: t,
5022
5044
  query_params: e,
@@ -5024,7 +5046,7 @@ function Jl(t, e = {}) {
5024
5046
  path: ie
5025
5047
  });
5026
5048
  }
5027
- function Kl(t, e, n = "patch") {
5049
+ function eh(t, e, n = "patch") {
5028
5050
  return T({
5029
5051
  id: t,
5030
5052
  form_data: e,
@@ -5034,7 +5056,7 @@ function Kl(t, e, n = "patch") {
5034
5056
  path: ie
5035
5057
  });
5036
5058
  }
5037
- function Zl(t) {
5059
+ function th(t) {
5038
5060
  return P({
5039
5061
  form_data: t,
5040
5062
  query_params: {},
@@ -5042,33 +5064,33 @@ function Zl(t) {
5042
5064
  path: ie
5043
5065
  });
5044
5066
  }
5045
- function Xl(t, e = {}) {
5046
- return I({ id: t, query_params: e, path: ie });
5067
+ function nh(t, e = {}) {
5068
+ return E({ id: t, query_params: e, path: ie });
5047
5069
  }
5048
- function eh(t) {
5070
+ function rh(t) {
5049
5071
  return `${x()}${ie}/${encodeURIComponent(t)}/redirect`;
5050
5072
  }
5051
- function th(t) {
5073
+ function ih(t) {
5052
5074
  return N(
5053
5075
  `${x()}${ie}/${encodeURIComponent(t)}/qr_code.svg`,
5054
5076
  { response_type: "text" }
5055
5077
  );
5056
5078
  }
5057
- function nh(t, e = {}) {
5079
+ function sh(t, e = {}) {
5058
5080
  const n = R(e);
5059
5081
  return `${x()}${ie}/${encodeURIComponent(t)}/qr_code.png${n ? "?" + n : ""}`;
5060
5082
  }
5061
- function rh(t) {
5083
+ function oh(t) {
5062
5084
  const { format: e = "svg", ...n } = t, r = { ...n, format: e }, i = R(r);
5063
5085
  return `${x()}${ie}/qr_code${i ? "?" + i : ""}`;
5064
5086
  }
5065
- function ih(t) {
5087
+ function uh(t) {
5066
5088
  const e = { ...t, format: "svg" }, n = R(e);
5067
5089
  return N(`${x()}${ie}/qr_code${n ? "?" + n : ""}`, {
5068
5090
  response_type: "text"
5069
5091
  });
5070
5092
  }
5071
- class mo {
5093
+ class go {
5072
5094
  id;
5073
5095
  storage_type;
5074
5096
  bucket_name;
@@ -5088,16 +5110,16 @@ class mo {
5088
5110
  }
5089
5111
  const gt = "storages";
5090
5112
  function fn(t) {
5091
- return new mo(t);
5113
+ return new go(t);
5092
5114
  }
5093
- function sh(t = {}) {
5115
+ function ch(t = {}) {
5094
5116
  return O({
5095
5117
  query_params: t,
5096
5118
  fn,
5097
5119
  path: gt
5098
5120
  });
5099
5121
  }
5100
- function oh(t, e = {}) {
5122
+ function ah(t, e = {}) {
5101
5123
  return k({
5102
5124
  id: t,
5103
5125
  query_params: e,
@@ -5105,7 +5127,7 @@ function oh(t, e = {}) {
5105
5127
  path: gt
5106
5128
  });
5107
5129
  }
5108
- function uh(t, e, n = "patch") {
5130
+ function lh(t, e, n = "patch") {
5109
5131
  return T({
5110
5132
  id: t,
5111
5133
  form_data: e,
@@ -5115,7 +5137,7 @@ function uh(t, e, n = "patch") {
5115
5137
  path: gt
5116
5138
  });
5117
5139
  }
5118
- function ch(t) {
5140
+ function hh(t) {
5119
5141
  return P({
5120
5142
  form_data: t,
5121
5143
  query_params: {},
@@ -5123,47 +5145,47 @@ function ch(t) {
5123
5145
  path: gt
5124
5146
  });
5125
5147
  }
5126
- function ah(t, e = {}) {
5127
- return I({ id: t, query_params: e, path: gt });
5148
+ function fh(t, e = {}) {
5149
+ return E({ id: t, query_params: e, path: gt });
5128
5150
  }
5129
5151
  const ge = "webrtc";
5130
- function lh(t = {}) {
5152
+ function dh(t = {}) {
5131
5153
  const e = R(t), n = `${x()}${ge}/rooms${e ? "?" + e : ""}`;
5132
- return N(n).pipe(g((r) => r));
5154
+ return N(n).pipe(b((r) => r));
5133
5155
  }
5134
- function hh(t) {
5156
+ function ph(t) {
5135
5157
  const e = `${x()}${ge}/room/${encodeURIComponent(t)}`;
5136
- return N(e).pipe(g((n) => n));
5158
+ return N(e).pipe(b((n) => n));
5137
5159
  }
5138
- function fh(t) {
5160
+ function _h(t) {
5139
5161
  const e = `${x()}${ge}/members/${encodeURIComponent(t)}`;
5140
- return N(e).pipe(g((n) => n));
5162
+ return N(e).pipe(b((n) => n));
5141
5163
  }
5142
- function dh(t, e) {
5164
+ function mh(t, e) {
5143
5165
  const n = `${x()}${ge}/guest_entry/${encodeURIComponent(t)}`;
5144
- return G(n, e).pipe(g(() => {
5166
+ return G(n, e).pipe(b(() => {
5145
5167
  }));
5146
5168
  }
5147
- function ph() {
5169
+ function yh() {
5148
5170
  const t = `${x()}${ge}/guest/exit`;
5149
- return G(t, {}).pipe(g(() => {
5171
+ return G(t, {}).pipe(b(() => {
5150
5172
  }));
5151
5173
  }
5152
- function _h(t, e, n) {
5174
+ function gh(t, e, n) {
5153
5175
  const r = `${x()}${ge}/kick/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
5154
- return G(r, n).pipe(g(() => {
5176
+ return G(r, n).pipe(b(() => {
5155
5177
  }));
5156
5178
  }
5157
- function mh(t, e, n) {
5179
+ function bh(t, e, n) {
5158
5180
  const r = `${x()}${ge}/transfer/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
5159
- return G(r, n || {}).pipe(g(() => {
5181
+ return G(r, n || {}).pipe(b(() => {
5160
5182
  }));
5161
5183
  }
5162
- function yh() {
5184
+ function vh() {
5163
5185
  const t = x(), e = t.startsWith("https") ? "wss:" : "ws:", n = t.startsWith("https") ? "https:" : "http:";
5164
5186
  return t.replace(n, e) + `${ge}/signaller`;
5165
5187
  }
5166
- var yo = {
5188
+ var bo = {
5167
5189
  url: "",
5168
5190
  deserializer: function(t) {
5169
5191
  return JSON.parse(t.data);
@@ -5171,14 +5193,14 @@ var yo = {
5171
5193
  serializer: function(t) {
5172
5194
  return JSON.stringify(t);
5173
5195
  }
5174
- }, 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) {
5175
5197
  te(e, t);
5176
5198
  function e(n, r) {
5177
5199
  var i = t.call(this) || this;
5178
5200
  if (i._socket = null, n instanceof D)
5179
5201
  i.destination = r, i.source = n;
5180
5202
  else {
5181
- var s = i._config = Ze({}, yo);
5203
+ var s = i._config = Ze({}, bo);
5182
5204
  if (i._output = new $e(), typeof n == "string")
5183
5205
  s.url = n;
5184
5206
  else
@@ -5249,17 +5271,17 @@ var yo = {
5249
5271
  var a = n._config.openObserver;
5250
5272
  a && a.next(y);
5251
5273
  var f = n.destination;
5252
- n.destination = jt.create(function(h) {
5274
+ n.destination = Ft.create(function(h) {
5253
5275
  if (l.readyState === 1)
5254
5276
  try {
5255
5277
  var $ = n._config.serializer;
5256
5278
  l.send($(h));
5257
- } catch (b) {
5258
- n.destination.error(b);
5279
+ } catch (v) {
5280
+ n.destination.error(v);
5259
5281
  }
5260
5282
  }, function(h) {
5261
5283
  var $ = n._config.closingObserver;
5262
- $ && $.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();
5263
5285
  }, function() {
5264
5286
  var h = n._config.closingObserver;
5265
5287
  h && h.next(void 0), l.close(), n._resetState();
@@ -5289,11 +5311,11 @@ var yo = {
5289
5311
  n && (n.readyState === 1 || n.readyState === 0) && n.close(), this._resetState(), t.prototype.unsubscribe.call(this);
5290
5312
  }, e;
5291
5313
  }(vn);
5292
- function vo(t) {
5293
- return new bo(t);
5314
+ function ko(t) {
5315
+ return new So(t);
5294
5316
  }
5295
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 || {});
5296
- class So {
5318
+ class $o {
5297
5319
  constructor(e, n) {
5298
5320
  this._system = e;
5299
5321
  const r = Object.getOwnPropertyNames(
@@ -5340,7 +5362,7 @@ class So {
5340
5362
  });
5341
5363
  }
5342
5364
  }
5343
- class ko {
5365
+ class xo {
5344
5366
  constructor(e) {
5345
5367
  for (const n in e)
5346
5368
  e.hasOwnProperty(n) && e[n] && e[n] instanceof Array && e[n].forEach((r) => {
@@ -5353,50 +5375,50 @@ class ko {
5353
5375
  * @param properties Properties of the new module
5354
5376
  */
5355
5377
  addModule(e, n) {
5356
- this[e] || (this[e] = []), this[e].push(new So(this, n));
5378
+ this[e] || (this[e] = []), this[e].push(new $o(this, n));
5357
5379
  }
5358
5380
  }
5359
5381
  const Ct = {};
5360
- function gh(t, e) {
5361
- return Ct[t] = new ko(e), Ct[t];
5382
+ function Sh(t, e) {
5383
+ return Ct[t] = new xo(e), Ct[t];
5362
5384
  }
5363
- function $o(t) {
5385
+ function Ao(t) {
5364
5386
  return Ct[t];
5365
5387
  }
5366
- function bh(t) {
5388
+ function kh(t) {
5367
5389
  delete Ct[t];
5368
5390
  }
5369
5391
  const Zr = 15;
5370
5392
  let bt = 0, Z, Xr = 0;
5371
- const B = {}, Mn = {}, Ue = {}, xo = {}, ve = new _e(!1);
5393
+ const B = {}, Dn = {}, Ue = {}, wo = {}, ve = new _e(!1);
5372
5394
  Ue._place_os_status = ve.asObservable();
5373
5395
  const ei = new _e([0, 0]);
5374
5396
  Ue._place_os_sync = ei.asObservable();
5375
- 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;
5376
5398
  const vt = 10 * 1e3, ni = new $e();
5377
5399
  Ue._place_os_debug_events = ni.asObservable();
5378
5400
  function _n() {
5379
- return x().indexOf("/control/") >= 0 ? "/control/websocket" : `${Pr()}/systems/control`;
5401
+ return x().indexOf("/control/") >= 0 ? "/control/websocket" : `${Ir()}/systems/control`;
5380
5402
  }
5381
5403
  function ri() {
5382
5404
  return ve.getValue();
5383
5405
  }
5384
- function Ao() {
5406
+ function Oo() {
5385
5407
  return Ue._place_os_status;
5386
5408
  }
5387
- function vh() {
5409
+ function $h() {
5388
5410
  return Ue._place_os_sync;
5389
5411
  }
5390
- function wo(t, e = Mn, n = Ue) {
5412
+ function Eo(t, e = Dn, n = Ue) {
5391
5413
  const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
5392
5414
  return e[r] || (e[r] = new _e(void 0), n[r] = e[r].asObservable()), n[r];
5393
5415
  }
5394
- function Oo(t, e = Mn) {
5416
+ function Io(t, e = Dn) {
5395
5417
  const n = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
5396
5418
  if (e[n])
5397
5419
  return e[n].getValue();
5398
5420
  }
5399
- function Xn(t, e = 0, n = Qe) {
5421
+ function tr(t, e = 0, n = Qe) {
5400
5422
  const r = {
5401
5423
  id: ++bt,
5402
5424
  cmd: "bind",
@@ -5404,7 +5426,7 @@ function Xn(t, e = 0, n = Qe) {
5404
5426
  };
5405
5427
  return n(r, e);
5406
5428
  }
5407
- function Io(t, e = 0, n = Qe) {
5429
+ function Po(t, e = 0, n = Qe) {
5408
5430
  const r = {
5409
5431
  id: ++bt,
5410
5432
  cmd: "unbind",
@@ -5412,7 +5434,7 @@ function Io(t, e = 0, n = Qe) {
5412
5434
  };
5413
5435
  return n(r, e);
5414
5436
  }
5415
- function Po(t, e = vt, n = Qe) {
5437
+ function To(t, e = vt, n = Qe) {
5416
5438
  const r = {
5417
5439
  id: ++bt,
5418
5440
  cmd: "exec",
@@ -5420,7 +5442,7 @@ function Po(t, e = vt, n = Qe) {
5420
5442
  };
5421
5443
  return n(r, e);
5422
5444
  }
5423
- function Sh(t, e = vt, n = Qe) {
5445
+ function xh(t, e = vt, n = Qe) {
5424
5446
  const r = {
5425
5447
  id: ++bt,
5426
5448
  cmd: "debug",
@@ -5428,7 +5450,7 @@ function Sh(t, e = vt, n = Qe) {
5428
5450
  };
5429
5451
  return n(r, e);
5430
5452
  }
5431
- function kh(t, e = vt, n = Qe) {
5453
+ function Ah(t, e = vt, n = Qe) {
5432
5454
  const r = {
5433
5455
  id: ++bt,
5434
5456
  cmd: "ignore",
@@ -5437,7 +5459,7 @@ function kh(t, e = vt, n = Qe) {
5437
5459
  return n(r, e);
5438
5460
  }
5439
5461
  function Qe(t, e = vt, n = 0) {
5440
- 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()}`;
5441
5463
  if (B[r])
5442
5464
  d("WS", "Request already in progress. Waiting...", t);
5443
5465
  else {
@@ -5450,7 +5472,7 @@ function Qe(t, e = vt, n = 0) {
5450
5472
  );
5451
5473
  };
5452
5474
  if (Z && ri()) {
5453
- In() && Co(t, Z, xo), i.resolve = s, i.reject = o;
5475
+ Pn() && No(t, Z, wo), i.resolve = s, i.reject = o;
5454
5476
  const c = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
5455
5477
  d(
5456
5478
  "WS",
@@ -5463,7 +5485,7 @@ function Qe(t, e = vt, n = 0) {
5463
5485
  },
5464
5486
  e
5465
5487
  );
5466
- } else fe ? setTimeout(() => u(), 1e3) : Dn().then(() => u());
5488
+ } else fe ? setTimeout(() => u(), 1e3) : Fn().then(() => u());
5467
5489
  }), B[r] = i;
5468
5490
  }
5469
5491
  return B[r].promise;
@@ -5471,9 +5493,9 @@ function Qe(t, e = vt, n = 0) {
5471
5493
  function ii(t) {
5472
5494
  if (t !== "pong" && t instanceof Object) {
5473
5495
  if (t.type === "notify" && t.meta)
5474
- qo(t.meta, t.value);
5496
+ Ro(t.meta, t.value);
5475
5497
  else if (t.type === "success")
5476
- To(t);
5498
+ qo(t);
5477
5499
  else if (t.type === "debug") {
5478
5500
  d(
5479
5501
  "WS",
@@ -5489,15 +5511,15 @@ function ii(t) {
5489
5511
  level: t.level || Kr.Debug,
5490
5512
  time: Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3)
5491
5513
  });
5492
- } 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");
5493
5515
  we(`${t.id}`);
5494
- } else t === "pong" && (Cn = Date.now(), d("WS", "Pong!"));
5516
+ } else t === "pong" && (Nn = Date.now(), d("WS", "Pong!"));
5495
5517
  }
5496
- function To(t) {
5518
+ function qo(t) {
5497
5519
  const e = Object.keys(B).map((n) => B[n]).find((n) => n?.id === t.id);
5498
5520
  d("WS", `[SUCCESS](${t.id})`), e && e.resolve && (e.resolve(t.value), delete B[e.key]);
5499
5521
  }
5500
- function Eo(t) {
5522
+ function Uo(t) {
5501
5523
  let e = "UNEXPECTED FAILURE";
5502
5524
  switch (t.code) {
5503
5525
  case re.ACCESS_DENIED:
@@ -5531,7 +5553,7 @@ function Eo(t) {
5531
5553
  const n = Object.keys(B).map((r) => B[r]).filter((r) => r).find((r) => r.id === t.id);
5532
5554
  n && n.reject && (n.reject(t), we(`${n.key}`), delete B[n.key]);
5533
5555
  }
5534
- function qo(t, e, n = Mn, r = Ue) {
5556
+ function Ro(t, e, n = Dn, r = Ue) {
5535
5557
  const i = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
5536
5558
  n[i] || (n[i] = new _e(null), r[i] = n[i].asObservable());
5537
5559
  const s = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
@@ -5541,22 +5563,22 @@ function qo(t, e, n = Mn, r = Ue) {
5541
5563
  e
5542
5564
  ]), n[i].next(e);
5543
5565
  }
5544
- function Dn(t = 0) {
5566
+ function Fn(t = 0) {
5545
5567
  return fe == null && (fe = new Promise((e) => {
5546
5568
  if (t > 40)
5547
5569
  return location.reload();
5548
- 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(
5549
5571
  (n) => {
5550
5572
  ve.getValue() || (d("WS", "Connection established."), e()), ve.next(!0), Dt = 0, mn(), ii(n);
5551
5573
  },
5552
5574
  (n) => {
5553
- Z = void 0, fe = null, tr(), mn(), Ro(n);
5575
+ Z = void 0, fe = null, rr(), mn(), Co(n);
5554
5576
  },
5555
5577
  () => {
5556
- 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();
5557
5579
  }
5558
- ), Me && clearInterval(Me), Cn = Date.now(), er(), Me = setInterval(
5559
- () => er(),
5580
+ ), Me && clearInterval(Me), Nn = Date.now(), nr(), Me = setInterval(
5581
+ () => nr(),
5560
5582
  Zr * 1e3
5561
5583
  ), mn(), Xr += 1, wt = setTimeout(() => {
5562
5584
  d("WS", "Unhealthy connection. Reconnecting..."), ve.next(!1), fe = null, Nt();
@@ -5572,22 +5594,22 @@ function Dn(t = 0) {
5572
5594
  "error"
5573
5595
  ), setTimeout(
5574
5596
  () => {
5575
- fe = null, Dn(t).then((n) => e(n));
5597
+ fe = null, Fn(t).then((n) => e(n));
5576
5598
  },
5577
5599
  1e3 * Math.min(10, ++t)
5578
5600
  ));
5579
5601
  })), fe;
5580
5602
  }
5581
- function Uo() {
5603
+ function Mo() {
5582
5604
  if (!Ut() || !X()) return null;
5583
- const t = xs() || location.protocol.indexOf("https") >= 0;
5584
- 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" : ""}`;
5585
5607
  const n = X();
5586
5608
  let r = n === "x-api-key" ? `api-key=${zt()}` : `bearer_token=${n}`;
5587
- 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(
5588
5610
  "WS",
5589
5611
  `Creating websocket connection to ws${t ? "s" : ""}://${kn()}${_n()}`
5590
- ), vo({
5612
+ ), ko({
5591
5613
  url: e,
5592
5614
  serializer: (i) => typeof i == "object" ? JSON.stringify(i) : i,
5593
5615
  deserializer: (i) => {
@@ -5610,29 +5632,29 @@ function Nt() {
5610
5632
  )}ms...`
5611
5633
  ), oe(
5612
5634
  "reconnect",
5613
- () => Dn(),
5635
+ () => Fn(),
5614
5636
  Math.min(5e3, (Dt + 1) * 300 || 1e3)
5615
5637
  );
5616
5638
  }
5617
- function er() {
5618
- if (Date.now() - Cn > 4 * Zr * 1e3)
5639
+ function nr() {
5640
+ if (Date.now() - Nn > 4 * Zr * 1e3)
5619
5641
  return Nt();
5620
5642
  Z?.next("ping");
5621
5643
  }
5622
- function Ro(t) {
5623
- 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();
5624
5646
  }
5625
5647
  function mn() {
5626
5648
  wt && (clearTimeout(wt), wt = void 0);
5627
5649
  }
5628
- function Mo() {
5650
+ function Do() {
5629
5651
  const t = new $e();
5630
5652
  return t.subscribe(
5631
5653
  (e) => ii(e)
5632
5654
  ), t;
5633
5655
  }
5634
- function Co(t, e, n) {
5635
- 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;
5636
5658
  if (s) {
5637
5659
  switch (t.cmd) {
5638
5660
  case "bind":
@@ -5677,13 +5699,13 @@ function Co(t, e, n) {
5677
5699
  10
5678
5700
  );
5679
5701
  }
5680
- function tr() {
5702
+ function rr() {
5681
5703
  for (const t in B)
5682
5704
  B[t] && delete B[t];
5683
5705
  }
5684
- class nr {
5706
+ class ir {
5685
5707
  constructor(e, n) {
5686
- this._module = e, this.name = n, Ao().pipe(Vi()).subscribe((r) => {
5708
+ this._module = e, this.name = n, Oo().pipe(Yi()).subscribe((r) => {
5687
5709
  r && (this._stale_bindings || this._pending === 1) ? (d("VAR", "Re-binding to status variable", this.binding()), this.rebind()) : r || (we(
5688
5710
  `rebind:${JSON.stringify(this.binding())}`
5689
5711
  ), d(
@@ -5707,13 +5729,13 @@ class nr {
5707
5729
  }
5708
5730
  /** Current value of the binding */
5709
5731
  get value() {
5710
- return Oo(this.binding());
5732
+ return Io(this.binding());
5711
5733
  }
5712
5734
  /**
5713
5735
  * Get an observable that emits the current value of the binding
5714
5736
  */
5715
5737
  listen() {
5716
- return wo(this.binding());
5738
+ return Eo(this.binding());
5717
5739
  }
5718
5740
  /**
5719
5741
  * Subscribe to changes of the variable's binding value.
@@ -5735,7 +5757,7 @@ class nr {
5735
5757
  * Bind to the status variable's value
5736
5758
  */
5737
5759
  bind() {
5738
- 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(() => {
5739
5761
  this._binding_count++, this._pending = 0;
5740
5762
  }).catch(() => null)), () => this.unbind();
5741
5763
  }
@@ -5743,7 +5765,7 @@ class nr {
5743
5765
  * Unbind from status variable
5744
5766
  */
5745
5767
  unbind() {
5746
- 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(() => {
5747
5769
  this._pending === 2 && (this._pending = 0), this._binding_count--;
5748
5770
  })) : this._binding_count = Math.max(this._binding_count - 1, 0);
5749
5771
  }
@@ -5754,7 +5776,7 @@ class nr {
5754
5776
  !this._stale_bindings && this._pending !== 1 || oe(
5755
5777
  `rebind:${JSON.stringify(this.binding())}`,
5756
5778
  async () => {
5757
- 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;
5758
5780
  },
5759
5781
  100
5760
5782
  );
@@ -5771,7 +5793,7 @@ class nr {
5771
5793
  };
5772
5794
  }
5773
5795
  }
5774
- class Do {
5796
+ class Fo {
5775
5797
  constructor(e, n) {
5776
5798
  this._system = e, this._id = n;
5777
5799
  }
@@ -5800,14 +5822,14 @@ class Do {
5800
5822
  * @deprecated Use `variable` instead
5801
5823
  */
5802
5824
  binding(e) {
5803
- 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];
5804
5826
  }
5805
5827
  /**
5806
5828
  * Get binding with the given name
5807
5829
  * @param name Name of the binding
5808
5830
  */
5809
5831
  variable(e) {
5810
- 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];
5811
5833
  }
5812
5834
  /**
5813
5835
  * Execute method on the engine module
@@ -5815,7 +5837,7 @@ class Do {
5815
5837
  * @param args Array of arguments to pass to the method
5816
5838
  */
5817
5839
  execute(e, n, r = vt) {
5818
- return Po(
5840
+ return To(
5819
5841
  {
5820
5842
  sys: this._system.id,
5821
5843
  mod: this.name,
@@ -5827,7 +5849,7 @@ class Do {
5827
5849
  );
5828
5850
  }
5829
5851
  }
5830
- class No {
5852
+ class jo {
5831
5853
  /** Unique idetifier of the system */
5832
5854
  id;
5833
5855
  /** Mapping of engine modules within the system */
@@ -5848,7 +5870,7 @@ class No {
5848
5870
  const i = r.join("_");
5849
5871
  for (this._module_list[i] || (this._module_list[i] = []); this._module_list[i].length < n; )
5850
5872
  this._module_list[i].push(
5851
- new Do(
5873
+ new Fo(
5852
5874
  this,
5853
5875
  `${i}_${this._module_list[i].length + 1}`
5854
5876
  )
@@ -5857,369 +5879,370 @@ class No {
5857
5879
  }
5858
5880
  }
5859
5881
  const yn = {};
5860
- function jo(t) {
5861
- 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];
5862
5884
  }
5863
- function $h(t, e, n = 1) {
5864
- return jo(t).module(e, n);
5885
+ function wh(t, e, n = 1) {
5886
+ return zo(t).module(e, n);
5865
5887
  }
5866
5888
  export {
5867
- Vs as AuthType,
5889
+ Ys as AuthType,
5868
5890
  He as EncryptionLevel,
5869
5891
  Qr as MediaAnimation,
5870
- So as MockPlaceWebsocketModule,
5871
- ko as MockPlaceWebsocketSystem,
5872
- Hs as PlaceAlert,
5873
- Ws as PlaceAlertDashboard,
5874
- Ls as PlaceApplication,
5875
- po as PlaceAsset,
5876
- lo as PlaceAssetCategory,
5877
- ho as PlaceAssetPurchaseOrder,
5878
- fo as PlaceAssetType,
5879
- Ys as PlaceCluster,
5880
- 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,
5881
5903
  Hr as PlaceDriver,
5882
5904
  Mt as PlaceDriverRole,
5883
- Ks as PlaceEdge,
5905
+ Xs as PlaceEdge,
5884
5906
  re as PlaceErrorCodes,
5885
- Zs as PlaceLDAPSource,
5907
+ eo as PlaceLDAPSource,
5886
5908
  Kr as PlaceLogLevel,
5887
- Qs as PlaceMQTTBroker,
5909
+ Gs as PlaceMQTTBroker,
5888
5910
  Wr as PlaceMetadata,
5889
5911
  Br as PlaceModule,
5890
- Do as PlaceModuleBinding,
5891
- to as PlaceOAuthSource,
5892
- Gs as PlaceProcess,
5893
- no as PlaceRepository,
5912
+ Fo as PlaceModuleBinding,
5913
+ ro as PlaceOAuthSource,
5914
+ Ks as PlaceProcess,
5915
+ io as PlaceRepository,
5894
5916
  Vr as PlaceRepositoryType,
5895
5917
  L as PlaceResource,
5896
- ro as PlaceSAMLSource,
5897
- Ie as PlaceSettings,
5898
- _o as PlaceShortUrl,
5899
- mo as PlaceStorage,
5918
+ so as PlaceSAMLSource,
5919
+ Ee as PlaceSettings,
5920
+ yo as PlaceShortUrl,
5921
+ go as PlaceStorage,
5900
5922
  Lr as PlaceSystem,
5901
- No as PlaceSystemBinding,
5923
+ jo as PlaceSystemBinding,
5902
5924
  me as PlaceTrigger,
5903
- uo as PlaceUser,
5904
- nr as PlaceVariableBinding,
5905
- Un as PlaceZone,
5906
- Xs as PlaceZoneMetadata,
5907
- co as SignageMedia,
5908
- ao as SignagePlaylist,
5909
- 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,
5910
5932
  un as Survey,
5911
5933
  Gr as SurveyAnswer,
5912
5934
  sn as SurveyInvitation,
5913
5935
  on as SurveyQuestion,
5914
- io as TriggerConditionOperator,
5915
- so as TriggerTimeConditionType,
5916
- oo as TriggerWebhookType,
5917
- iu as addAlert,
5918
- Zo as addAlertDashboard,
5919
- ll as addAnswer,
5920
- hu as addApplication,
5921
- Pl as addAsset,
5922
- Hl as addAssetCategory,
5923
- Ql as addAssetPurchaseOrder,
5924
- Dl as addAssetType,
5925
- El as addAssets,
5926
- mu as addBroker,
5927
- Ou as addDomain,
5928
- Uu as addDriver,
5929
- Hu as addEdge,
5930
- pl as addInvitation,
5931
- Gu as addLDAPSource,
5932
- tc as addMetadata,
5933
- uc as addModule,
5934
- vc as addOAuthSource,
5935
- gl as addQuestion,
5936
- Ac as addRepository,
5937
- zc as addSAMLSource,
5938
- Vc as addSettings,
5939
- Zl as addShortUrl,
5940
- Ka as addSignageMedia,
5941
- rl as addSignagePlaylist,
5942
- ch as addStorage,
5943
- xl as addSurvey,
5944
- Xc as addSystem,
5945
- ta as addSystemModule,
5946
- ha as addSystemTrigger,
5947
- Sa as addTrigger,
5948
- Ia as addUser,
5949
- za 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,
5950
5972
  x as apiEndpoint,
5951
5973
  zt as apiKey,
5952
- ul as approveSignagePlaylist,
5974
+ ll as approveSignagePlaylist,
5953
5975
  qr as authorise,
5954
5976
  Ut as authority,
5955
- Xn as bind,
5956
- as as cleanObject,
5957
- Bo as cleanupAuth,
5958
- vs as clientId,
5959
- ku as clusterRebalance,
5960
- $u as clusterVersions,
5961
- vh as connectionState,
5962
- 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,
5963
5985
  Je as convertPairStringToMap,
5964
5986
  P as create,
5965
- wa as currentUser,
5966
- qa as currentUserResourceToken,
5967
- Sh as debug,
5987
+ Ia as currentUser,
5988
+ Ma as currentUserResourceToken,
5989
+ xh as debug,
5968
5990
  ni as debug_events,
5969
5991
  Oe as del,
5970
- Ms as deregisterMockEndpoint,
5971
- bh as deregisterSystem,
5972
- Nu as driverReadme,
5973
- Bu as edgeControlUrl,
5974
- Po as execute,
5975
- mc as executeOnModule,
5976
- sa as executeOnSystem,
5977
- La as executeOnZone,
5978
- ca as functionList,
5979
- us as generateNonce,
5980
- ih 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,
5981
6003
  N as get,
5982
- Ir as getFragments,
5983
- $h as getModule,
5984
- th as getShortUrlQrCodeSvg,
5985
- jo as getSystem,
5986
- ks as hasToken,
6004
+ Er as getFragments,
6005
+ wh as getModule,
6006
+ ih as getShortUrlQrCodeSvg,
6007
+ zo as getSystem,
6008
+ xs as hasToken,
5987
6009
  kn as host,
5988
- Pr as httpRoute,
5989
- Et as humanReadableByteCount,
5990
- kh as ignore,
5991
- Tn as invalidateToken,
5992
- Du as isDriverCompiled,
5993
- Tr as isFixedDevice,
5994
- ls as isMobileSafari,
5995
- In as isMock,
5996
- hs as isNestedFrame,
5997
- Ho as isOnline,
5998
- xs as isSecure,
5999
- 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,
6000
6022
  ri as is_connected,
6001
- uu as lastRequestTotal,
6002
- rc as listChildMetadata,
6003
- eu as listDashboardAlerts,
6004
- Oc as listInterfaceRepositories,
6005
- Ku as listMetadata,
6006
- Zu as listMetadataHistory,
6007
- Pc as listRemoteRepositoryBranches,
6008
- Tc as listRemoteRepositoryCommits,
6009
- Ic as listRemoteRepositoryDefaultBranch,
6010
- Uc as listRepositoryBranches,
6011
- qc as listRepositoryCommits,
6012
- Rc as listRepositoryDefaultBranch,
6013
- Mc as listRepositoryDriverDetails,
6014
- Ec as listRepositoryDrivers,
6015
- Dc as listRepositoryFolders,
6016
- sl as listSignagePlaylistMedia,
6017
- ol as listSignagePlaylistMediaRevisions,
6018
- la as listSystemTriggers,
6019
- aa as listSystemZones,
6020
- $a as listTriggerInstances,
6021
- Na as listZoneTags,
6022
- Wa as listZoneTriggers,
6023
- wo as listen,
6024
- $s as listenForToken,
6025
- dc 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,
6026
6048
  d as log,
6027
- Vo as logout,
6028
- Pu as lookupDomainByEmail,
6029
- fc as lookupModuleState,
6030
- ua as lookupSystemModuleState,
6031
- Xa as mediaThumbnail,
6032
- $o as mockSystem,
6033
- _c as moduleRuntimeError,
6034
- pc as moduleSettings,
6035
- hc as moduleState,
6036
- Wo as onlineState,
6037
- 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,
6038
6060
  et as patch,
6039
6061
  G as post,
6040
- Cc as pullRepositoryChanges,
6062
+ Fc as pullRepositoryChanges,
6041
6063
  Ne as put,
6042
- rh as qrCodeUrl,
6064
+ oh as qrCodeUrl,
6043
6065
  O as query,
6044
- Go as queryAlertDashboards,
6045
- tu as queryAlerts,
6046
- al as queryAnswers,
6047
- cu as queryApplications,
6048
- jl as queryAssetCategories,
6049
- Ll as queryAssetPurchaseOrders,
6050
- Rl as queryAssetTypes,
6051
- wl as queryAssets,
6052
- du as queryBrokers,
6053
- gu as queryClusters,
6054
- xu as queryDomains,
6055
- Tu as queryDrivers,
6056
- ju as queryEdges,
6057
- hl as queryInvitations,
6058
- Vu as queryLDAPSources,
6059
- ic as queryModules,
6060
- yc as queryOAuthSources,
6061
- vu as queryProcesses,
6062
- ml as queryQuestions,
6063
- kc as queryRepositories,
6064
- Nc as querySAMLSources,
6065
- Wc as querySettings,
6066
- Gl as queryShortUrls,
6067
- Ya as querySignageMedia,
6068
- el as querySignagePlaylists,
6069
- sh as queryStorages,
6070
- Sl as querySurveys,
6071
- Gc as querySystems,
6072
- Jc as querySystemsWithEmails,
6073
- ga as queryTriggers,
6074
- Ta as queryUserGroups,
6075
- xa as queryUsers,
6076
- lh as queryWebrtcRooms,
6077
- Da as queryZones,
6078
- Mu as recompileDriver,
6079
- Fo as redirectUri,
6080
- 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,
6081
6103
  Sn as refreshToken,
6082
- Yo as registerMockEndpoint,
6083
- gh as registerSystem,
6084
- Cu as reloadDriver,
6085
- I as remove,
6086
- su as removeAlert,
6087
- Xo as removeAlertDashboard,
6088
- fu as removeApplication,
6089
- Tl as removeAsset,
6090
- Wl as removeAssetCategory,
6091
- Yl as removeAssetPurchaseOrder,
6092
- Nl as removeAssetType,
6093
- Ul as removeAssets,
6094
- yu as removeBroker,
6095
- Iu as removeDomain,
6096
- Ru as removeDriver,
6097
- Wu 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,
6098
6120
  be as removeFragment,
6099
- _l as removeInvitation,
6100
- Ju as removeLDAPSource,
6101
- nc as removeMetadata,
6102
- cc as removeModule,
6103
- Sc as removeOAuthSource,
6104
- vl as removeQuestion,
6105
- wc as removeRepository,
6106
- Hc as removeSAMLSource,
6107
- Qc as removeSettings,
6108
- Xl as removeShortUrl,
6109
- Za as removeSignageMedia,
6110
- il as removeSignagePlaylist,
6111
- ah as removeStorage,
6112
- Al as removeSurvey,
6113
- ea as removeSystem,
6114
- na as removeSystemModule,
6115
- fa as removeSystemTrigger,
6116
- ka as removeTrigger,
6117
- Pa as removeUser,
6118
- Ra as removeUserResourceToken,
6119
- Ha as removeZone,
6120
- ou as requestTotal,
6121
- Fs as responseHeaders,
6122
- Lu as retrieveEdgeToken,
6123
- Ca as reviveUser,
6124
- Ea as searchUserMetadata,
6125
- zo as setAPI_Key,
6126
- Qo as setMockNotFoundHandler,
6127
- Ss as setToken,
6128
- Yc as settingsHistory,
6129
- Lo as setup,
6130
- nh as shortUrlQrCodePngUrl,
6131
- eh 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,
6132
6155
  k as show,
6133
- nu as showAlert,
6134
- Jo as showAlertDashboard,
6135
- au as showApplication,
6136
- Ol as showAsset,
6137
- Fl as showAssetCategory,
6138
- Bl as showAssetPurchaseOrder,
6139
- Ml as showAssetType,
6140
- pu as showBroker,
6141
- bu as showCluster,
6142
- Au as showDomain,
6143
- Eu as showDriver,
6144
- Fu as showEdge,
6145
- fl as showInvitation,
6146
- Qu as showLDAPSource,
6147
- Xu as showMetadata,
6148
- sc as showModule,
6149
- gc as showOAuthSource,
6150
- yl as showQuestion,
6151
- $c as showRepository,
6152
- jc as showSAMLSource,
6153
- Lc as showSettings,
6154
- Jl as showShortUrl,
6155
- Va as showSignage,
6156
- Ga as showSignageMedia,
6157
- Qa as showSignageMetrics,
6158
- tl as showSignagePlaylist,
6159
- oh as showStorage,
6160
- kl as showSurvey,
6161
- Kc as showSystem,
6162
- ma as showSystemTrigger,
6163
- ba as showTrigger,
6164
- Aa as showUser,
6165
- hh as showWebrtcRoom,
6166
- ja as showZone,
6167
- fs as simplifiedTime,
6168
- ac as startModule,
6169
- ra as startSystem,
6170
- Ao as status,
6171
- lc as stopModule,
6172
- ia as stopSystem,
6173
- pa as systemControlUrl,
6174
- _a as systemMetadata,
6175
- oa as systemModuleState,
6176
- da as systemSettings,
6177
- Su 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,
6178
6201
  X as token,
6179
- Io as unbind,
6202
+ Po as unbind,
6180
6203
  T as update,
6181
- ru as updateAlert,
6182
- Ko as updateAlertDashboard,
6183
- lu as updateApplication,
6184
- Il as updateAsset,
6185
- zl as updateAssetCategory,
6186
- Vl as updateAssetPurchaseOrder,
6187
- Cl as updateAssetType,
6188
- ql as updateAssets,
6189
- _u as updateBroker,
6190
- wu as updateDomain,
6191
- qu as updateDriver,
6192
- zu as updateEdge,
6193
- dl as updateInvitation,
6194
- Yu as updateLDAPSource,
6195
- ec as updateMetadata,
6196
- oc as updateModule,
6197
- bc as updateOAuthSource,
6198
- bl as updateQuestion,
6199
- xc as updateRepository,
6200
- Fc as updateSAMLSource,
6201
- Bc as updateSettings,
6202
- Kl as updateShortUrl,
6203
- Ja as updateSignageMedia,
6204
- nl as updateSignagePlaylist,
6205
- cl as updateSignagePlaylistMedia,
6206
- uh as updateStorage,
6207
- $l as updateSurvey,
6208
- Zc as updateSystem,
6209
- ya as updateSystemTrigger,
6210
- va as updateTrigger,
6211
- Oa as updateUser,
6212
- Fa as updateZone,
6213
- Ua as userMetadata,
6214
- Ma as userResourceToken,
6215
- Oo as value,
6216
- dh as webrtcGuestEntry,
6217
- ph as webrtcGuestExit,
6218
- _h as webrtcKickUser,
6219
- fh as webrtcSessionMembers,
6220
- yh as webrtcSignallerUrl,
6221
- mh as webrtcTransferUser,
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,
6222
6245
  _n as websocketRoute,
6223
- Ba as zoneMetadata
6246
+ Ya as zoneMetadata
6224
6247
  };
6225
6248
  //# sourceMappingURL=index.es.js.map