@openc3/js-common 6.9.2 → 6.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/services.js CHANGED
@@ -6,7 +6,7 @@ function At(n, e) {
6
6
  return n.apply(e, arguments);
7
7
  };
8
8
  }
9
- const { toString: cn } = Object.prototype, { getPrototypeOf: Me } = Object, { iterator: Se, toStringTag: Rt } = Symbol, xe = /* @__PURE__ */ ((n) => (e) => {
9
+ const { toString: cn } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: Ee, toStringTag: Rt } = Symbol, xe = /* @__PURE__ */ ((n) => (e) => {
10
10
  const t = cn.call(e);
11
11
  return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
12
12
  })(/* @__PURE__ */ Object.create(null)), B = (n) => (n = n.toLowerCase(), (e) => xe(e) === n), Ae = (n) => (e) => typeof e === n, { isArray: te } = Array, ee = Ae("undefined");
@@ -21,8 +21,8 @@ function an(n) {
21
21
  const ln = Ae("string"), N = Ae("function"), Ct = Ae("number"), ce = (n) => n !== null && typeof n == "object", un = (n) => n === !0 || n === !1, ye = (n) => {
22
22
  if (xe(n) !== "object")
23
23
  return !1;
24
- const e = Me(n);
25
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Rt in n) && !(Se in n);
24
+ const e = Be(n);
25
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Rt in n) && !(Ee in n);
26
26
  }, hn = (n) => {
27
27
  if (!ce(n) || oe(n))
28
28
  return !1;
@@ -35,7 +35,7 @@ const ln = Ae("string"), N = Ae("function"), Ct = Ae("number"), ce = (n) => n !=
35
35
  let e;
36
36
  return n && (typeof FormData == "function" && n instanceof FormData || N(n.append) && ((e = xe(n)) === "formdata" || // detect form-data instance
37
37
  e === "object" && N(n.toString) && n.toString() === "[object FormData]"));
38
- }, yn = B("URLSearchParams"), [_n, wn, En, Sn] = ["ReadableStream", "Request", "Response", "Headers"].map(B), xn = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
+ }, yn = B("URLSearchParams"), [_n, wn, Sn, En] = ["ReadableStream", "Request", "Response", "Headers"].map(B), xn = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
39
39
  function ae(n, e, { allOwnKeys: t = !1 } = {}) {
40
40
  if (n === null || typeof n > "u")
41
41
  return;
@@ -64,10 +64,10 @@ function Tt(n, e) {
64
64
  return null;
65
65
  }
66
66
  const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, kt = (n) => !ee(n) && n !== X;
67
- function Fe() {
67
+ function $e() {
68
68
  const { caseless: n, skipUndefined: e } = kt(this) && this || {}, t = {}, s = (r, o) => {
69
69
  const i = n && Tt(t, o) || o;
70
- ye(t[i]) && ye(r) ? t[i] = Fe(t[i], r) : ye(r) ? t[i] = Fe({}, r) : te(r) ? t[i] = r.slice() : (!e || !ee(r)) && (t[i] = r);
70
+ ye(t[i]) && ye(r) ? t[i] = $e(t[i], r) : ye(r) ? t[i] = $e({}, r) : te(r) ? t[i] = r.slice() : (!e || !ee(r)) && (t[i] = r);
71
71
  };
72
72
  for (let r = 0, o = arguments.length; r < o; r++)
73
73
  arguments[r] && ae(arguments[r], s);
@@ -86,7 +86,7 @@ const An = (n, e, t, { allOwnKeys: s } = {}) => (ae(e, (r, o) => {
86
86
  do {
87
87
  for (r = Object.getOwnPropertyNames(n), o = r.length; o-- > 0; )
88
88
  i = r[o], (!s || s(i, n, e)) && !c[i] && (e[i] = n[i], c[i] = !0);
89
- n = t !== !1 && Me(n);
89
+ n = t !== !1 && Be(n);
90
90
  } while (n && (!t || t(n, e)) && n !== Object.prototype);
91
91
  return e;
92
92
  }, Tn = (n, e, t) => {
@@ -102,8 +102,8 @@ const An = (n, e, t, { allOwnKeys: s } = {}) => (ae(e, (r, o) => {
102
102
  for (; e-- > 0; )
103
103
  t[e] = n[e];
104
104
  return t;
105
- }, Nn = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Me(Uint8Array)), Pn = (n, e) => {
106
- const s = (n && n[Se]).call(n);
105
+ }, Nn = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Be(Uint8Array)), Pn = (n, e) => {
106
+ const s = (n && n[Ee]).call(n);
107
107
  let r;
108
108
  for (; (r = s.next()) && !r.done; ) {
109
109
  const o = r.value;
@@ -115,18 +115,18 @@ const An = (n, e, t, { allOwnKeys: s } = {}) => (ae(e, (r, o) => {
115
115
  for (; (t = n.exec(e)) !== null; )
116
116
  s.push(t);
117
117
  return s;
118
- }, Ln = B("HTMLFormElement"), Fn = (n) => n.toLowerCase().replace(
118
+ }, Ln = B("HTMLFormElement"), $n = (n) => n.toLowerCase().replace(
119
119
  /[-_\s]([a-z\d])(\w*)/g,
120
120
  function(t, s, r) {
121
121
  return s.toUpperCase() + r;
122
122
  }
123
- ), Ze = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), $n = B("RegExp"), Nt = (n, e) => {
123
+ ), Ze = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), Fn = B("RegExp"), Nt = (n, e) => {
124
124
  const t = Object.getOwnPropertyDescriptors(n), s = {};
125
125
  ae(t, (r, o) => {
126
126
  let i;
127
127
  (i = e(r, o, n)) !== !1 && (s[o] = i || r);
128
128
  }), Object.defineProperties(n, s);
129
- }, jn = (n) => {
129
+ }, vn = (n) => {
130
130
  Nt(n, (e, t) => {
131
131
  if (N(n) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
132
132
  return !1;
@@ -141,7 +141,7 @@ const An = (n, e, t, { allOwnKeys: s } = {}) => (ae(e, (r, o) => {
141
141
  });
142
142
  }
143
143
  });
144
- }, vn = (n, e) => {
144
+ }, jn = (n, e) => {
145
145
  const t = {}, s = (r) => {
146
146
  r.forEach((o) => {
147
147
  t[o] = !0;
@@ -151,7 +151,7 @@ const An = (n, e, t, { allOwnKeys: s } = {}) => (ae(e, (r, o) => {
151
151
  }, Un = () => {
152
152
  }, Dn = (n, e) => n != null && Number.isFinite(n = +n) ? n : e;
153
153
  function qn(n) {
154
- return !!(n && N(n.append) && n[Rt] === "FormData" && n[Se]);
154
+ return !!(n && N(n.append) && n[Rt] === "FormData" && n[Ee]);
155
155
  }
156
156
  const Bn = (n) => {
157
157
  const e = new Array(10), t = (s, r) => {
@@ -179,7 +179,7 @@ const Bn = (n) => {
179
179
  }))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
180
180
  typeof setImmediate == "function",
181
181
  N(X.postMessage)
182
- ), zn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Pt, Vn = (n) => n != null && N(n[Se]), l = {
182
+ ), zn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Pt, Vn = (n) => n != null && N(n[Ee]), l = {
183
183
  isArray: te,
184
184
  isArrayBuffer: Ot,
185
185
  isBuffer: oe,
@@ -193,20 +193,20 @@ const Bn = (n) => {
193
193
  isEmptyObject: hn,
194
194
  isReadableStream: _n,
195
195
  isRequest: wn,
196
- isResponse: En,
197
- isHeaders: Sn,
196
+ isResponse: Sn,
197
+ isHeaders: En,
198
198
  isUndefined: ee,
199
199
  isDate: dn,
200
200
  isFile: fn,
201
201
  isBlob: pn,
202
- isRegExp: $n,
202
+ isRegExp: Fn,
203
203
  isFunction: N,
204
204
  isStream: gn,
205
205
  isURLSearchParams: yn,
206
206
  isTypedArray: Nn,
207
207
  isFileList: mn,
208
208
  forEach: ae,
209
- merge: Fe,
209
+ merge: $e,
210
210
  extend: An,
211
211
  trim: xn,
212
212
  stripBOM: Rn,
@@ -223,9 +223,9 @@ const Bn = (n) => {
223
223
  hasOwnProp: Ze,
224
224
  // an alias to avoid ESLint no-prototype-builtins detection
225
225
  reduceDescriptors: Nt,
226
- freezeMethods: jn,
227
- toObjectSet: vn,
228
- toCamelCase: Fn,
226
+ freezeMethods: vn,
227
+ toObjectSet: jn,
228
+ toCamelCase: $n,
229
229
  noop: Un,
230
230
  toFiniteNumber: Dn,
231
231
  findKey: Tt,
@@ -292,19 +292,19 @@ _.from = (n, e, t, s, r, o) => {
292
292
  return _.call(i, c, d, t, s, r), n && i.cause == null && Object.defineProperty(i, "cause", { value: n, configurable: !0 }), i.name = n && n.name || "Error", o && Object.assign(i, o), i;
293
293
  };
294
294
  const Jn = null;
295
- function $e(n) {
295
+ function Fe(n) {
296
296
  return l.isPlainObject(n) || l.isArray(n);
297
297
  }
298
- function Ft(n) {
298
+ function $t(n) {
299
299
  return l.endsWith(n, "[]") ? n.slice(0, -2) : n;
300
300
  }
301
301
  function Ye(n, e, t) {
302
302
  return n ? n.concat(e).map(function(r, o) {
303
- return r = Ft(r), !t && o ? "[" + r + "]" : r;
303
+ return r = $t(r), !t && o ? "[" + r + "]" : r;
304
304
  }).join(t ? "." : "") : e;
305
305
  }
306
306
  function Wn(n) {
307
- return l.isArray(n) && !n.some($e);
307
+ return l.isArray(n) && !n.some(Fe);
308
308
  }
309
309
  const Kn = l.toFlatObject(l, {}, null, function(e) {
310
310
  return /^is[A-Z]/.test(e);
@@ -338,7 +338,7 @@ function Re(n, e, t) {
338
338
  if (l.endsWith(p, "{}"))
339
339
  p = s ? p : p.slice(0, -2), h = JSON.stringify(h);
340
340
  else if (l.isArray(h) && Wn(h) || (l.isFileList(h) || l.endsWith(p, "[]")) && (w = l.toArray(h)))
341
- return p = Ft(p), w.forEach(function(x, O) {
341
+ return p = $t(p), w.forEach(function(x, O) {
342
342
  !(l.isUndefined(x) || x === null) && e.append(
343
343
  // eslint-disable-next-line no-nested-ternary
344
344
  i === !0 ? Ye([p], O, o) : i === null ? p : p + "[]",
@@ -346,25 +346,25 @@ function Re(n, e, t) {
346
346
  );
347
347
  }), !1;
348
348
  }
349
- return $e(h) ? !0 : (e.append(Ye(m, p, o), u(h)), !1);
349
+ return Fe(h) ? !0 : (e.append(Ye(m, p, o), u(h)), !1);
350
350
  }
351
351
  const f = [], g = Object.assign(Kn, {
352
352
  defaultVisitor: a,
353
353
  convertValue: u,
354
- isVisitable: $e
354
+ isVisitable: Fe
355
355
  });
356
356
  function b(h, p) {
357
357
  if (!l.isUndefined(h)) {
358
358
  if (f.indexOf(h) !== -1)
359
359
  throw Error("Circular reference detected in " + p.join("."));
360
- f.push(h), l.forEach(h, function(w, S) {
360
+ f.push(h), l.forEach(h, function(w, E) {
361
361
  (!(l.isUndefined(w) || w === null) && r.call(
362
362
  e,
363
363
  w,
364
- l.isString(S) ? S.trim() : S,
364
+ l.isString(E) ? E.trim() : E,
365
365
  p,
366
366
  g
367
- )) === !0 && b(w, p ? p.concat(S) : [S]);
367
+ )) === !0 && b(w, p ? p.concat(E) : [E]);
368
368
  }), f.pop();
369
369
  }
370
370
  }
@@ -386,14 +386,14 @@ function et(n) {
386
386
  return e[s];
387
387
  });
388
388
  }
389
- function He(n, e) {
389
+ function Me(n, e) {
390
390
  this._pairs = [], n && Re(n, this, e);
391
391
  }
392
- const $t = He.prototype;
393
- $t.append = function(e, t) {
392
+ const Ft = Me.prototype;
393
+ Ft.append = function(e, t) {
394
394
  this._pairs.push([e, t]);
395
395
  };
396
- $t.toString = function(e) {
396
+ Ft.toString = function(e) {
397
397
  const t = e ? function(s) {
398
398
  return e.call(this, s, et);
399
399
  } : et;
@@ -404,7 +404,7 @@ $t.toString = function(e) {
404
404
  function Xn(n) {
405
405
  return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
406
406
  }
407
- function jt(n, e, t) {
407
+ function vt(n, e, t) {
408
408
  if (!e)
409
409
  return n;
410
410
  const s = t && t.encode || Xn;
@@ -413,7 +413,7 @@ function jt(n, e, t) {
413
413
  });
414
414
  const r = t && t.serialize;
415
415
  let o;
416
- if (r ? o = r(e, t) : o = l.isURLSearchParams(e) ? e.toString() : new He(e, t).toString(s), o) {
416
+ if (r ? o = r(e, t) : o = l.isURLSearchParams(e) ? e.toString() : new Me(e, t).toString(s), o) {
417
417
  const i = n.indexOf("#");
418
418
  i !== -1 && (n = n.slice(0, i)), n += (n.indexOf("?") === -1 ? "?" : "&") + o;
419
419
  }
@@ -444,7 +444,7 @@ class tt {
444
444
  *
445
445
  * @param {Number} id The ID that was returned by `use`
446
446
  *
447
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
447
+ * @returns {void}
448
448
  */
449
449
  eject(e) {
450
450
  this.handlers[e] && (this.handlers[e] = null);
@@ -473,11 +473,11 @@ class tt {
473
473
  });
474
474
  }
475
475
  }
476
- const vt = {
476
+ const jt = {
477
477
  silentJSONParsing: !0,
478
478
  forcedJSONParsing: !0,
479
479
  clarifyTimeoutError: !1
480
- }, Gn = typeof URLSearchParams < "u" ? URLSearchParams : He, Qn = typeof FormData < "u" ? FormData : null, Zn = typeof Blob < "u" ? Blob : null, Yn = {
480
+ }, Gn = typeof URLSearchParams < "u" ? URLSearchParams : Me, Qn = typeof FormData < "u" ? FormData : null, Zn = typeof Blob < "u" ? Blob : null, Yn = {
481
481
  isBrowser: !0,
482
482
  classes: {
483
483
  URLSearchParams: Gn,
@@ -485,13 +485,13 @@ const vt = {
485
485
  Blob: Zn
486
486
  },
487
487
  protocols: ["http", "https", "file", "blob", "url", "data"]
488
- }, ze = typeof window < "u" && typeof document < "u", je = typeof navigator == "object" && navigator || void 0, es = ze && (!je || ["ReactNative", "NativeScript", "NS"].indexOf(je.product) < 0), ts = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
489
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ns = ze && window.location.href || "http://localhost", ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
+ }, He = typeof window < "u" && typeof document < "u", ve = typeof navigator == "object" && navigator || void 0, es = He && (!ve || ["ReactNative", "NativeScript", "NS"].indexOf(ve.product) < 0), ts = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
489
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ns = He && window.location.href || "http://localhost", ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
490
490
  __proto__: null,
491
- hasBrowserEnv: ze,
491
+ hasBrowserEnv: He,
492
492
  hasStandardBrowserEnv: es,
493
493
  hasStandardBrowserWebWorkerEnv: ts,
494
- navigator: je,
494
+ navigator: ve,
495
495
  origin: ns
496
496
  }, Symbol.toStringTag, { value: "Module" })), k = {
497
497
  ...ss,
@@ -543,7 +543,7 @@ function cs(n, e, t) {
543
543
  return (t || JSON.stringify)(n);
544
544
  }
545
545
  const le = {
546
- transitional: vt,
546
+ transitional: jt,
547
547
  adapter: ["xhr", "http", "fetch"],
548
548
  transformRequest: [function(e, t) {
549
549
  const s = t.getContentType() || "", r = s.indexOf("application/json") > -1, o = l.isObject(e);
@@ -870,7 +870,7 @@ function gs(n, e) {
870
870
  }, s - f)));
871
871
  }, () => r && i(r)];
872
872
  }
873
- const Ee = (n, e, t = 3) => {
873
+ const Se = (n, e, t = 3) => {
874
874
  let s = 0;
875
875
  const r = ms(50, 250);
876
876
  return gs((o) => {
@@ -902,16 +902,18 @@ const Ee = (n, e, t = 3) => {
902
902
  ) : () => !0, ys = k.hasStandardBrowserEnv ? (
903
903
  // Standard browser envs support document.cookie
904
904
  {
905
- write(n, e, t, s, r, o) {
906
- const i = [n + "=" + encodeURIComponent(e)];
907
- l.isNumber(t) && i.push("expires=" + new Date(t).toGMTString()), l.isString(s) && i.push("path=" + s), l.isString(r) && i.push("domain=" + r), o === !0 && i.push("secure"), document.cookie = i.join("; ");
905
+ write(n, e, t, s, r, o, i) {
906
+ if (typeof document > "u") return;
907
+ const c = [`${n}=${encodeURIComponent(e)}`];
908
+ l.isNumber(t) && c.push(`expires=${new Date(t).toUTCString()}`), l.isString(s) && c.push(`path=${s}`), l.isString(r) && c.push(`domain=${r}`), o === !0 && c.push("secure"), l.isString(i) && c.push(`SameSite=${i}`), document.cookie = c.join("; ");
908
909
  },
909
910
  read(n) {
910
- const e = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
911
- return e ? decodeURIComponent(e[3]) : null;
911
+ if (typeof document > "u") return null;
912
+ const e = document.cookie.match(new RegExp("(?:^|; )" + n + "=([^;]*)"));
913
+ return e ? decodeURIComponent(e[1]) : null;
912
914
  },
913
915
  remove(n) {
914
- this.write(n, "", Date.now() - 864e5);
916
+ this.write(n, "", Date.now() - 864e5, "/");
915
917
  }
916
918
  }
917
919
  ) : (
@@ -1004,7 +1006,7 @@ function Q(n, e) {
1004
1006
  const Mt = (n) => {
1005
1007
  const e = Q({}, n);
1006
1008
  let { data: t, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: i, auth: c } = e;
1007
- if (e.headers = i = P.from(i), e.url = jt(Bt(e.baseURL, e.url, e.allowAbsoluteUrls), n.params, n.paramsSerializer), c && i.set(
1009
+ if (e.headers = i = P.from(i), e.url = vt(Bt(e.baseURL, e.url, e.allowAbsoluteUrls), n.params, n.paramsSerializer), c && i.set(
1008
1010
  "Authorization",
1009
1011
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1010
1012
  ), l.isFormData(t)) {
@@ -1022,7 +1024,7 @@ const Mt = (n) => {
1022
1024
  d && i.set(r, d);
1023
1025
  }
1024
1026
  return e;
1025
- }, Es = typeof XMLHttpRequest < "u", Ss = Es && function(n) {
1027
+ }, Ss = typeof XMLHttpRequest < "u", Es = Ss && function(n) {
1026
1028
  return new Promise(function(t, s) {
1027
1029
  const r = Mt(n);
1028
1030
  let o = r.data;
@@ -1057,11 +1059,11 @@ const Mt = (n) => {
1057
1059
  }, m.onabort = function() {
1058
1060
  m && (s(new _("Request aborted", _.ECONNABORTED, n, m)), m = null);
1059
1061
  }, m.onerror = function(O) {
1060
- const C = O && O.message ? O.message : "Network Error", $ = new _(C, _.ERR_NETWORK, n, m);
1061
- $.event = O || null, s($), m = null;
1062
+ const C = O && O.message ? O.message : "Network Error", F = new _(C, _.ERR_NETWORK, n, m);
1063
+ F.event = O || null, s(F), m = null;
1062
1064
  }, m.ontimeout = function() {
1063
1065
  let O = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1064
- const C = r.transitional || vt;
1066
+ const C = r.transitional || jt;
1065
1067
  r.timeoutErrorMessage && (O = r.timeoutErrorMessage), s(new _(
1066
1068
  O,
1067
1069
  C.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
@@ -1070,12 +1072,12 @@ const Mt = (n) => {
1070
1072
  )), m = null;
1071
1073
  }, o === void 0 && i.setContentType(null), "setRequestHeader" in m && l.forEach(i.toJSON(), function(O, C) {
1072
1074
  m.setRequestHeader(C, O);
1073
- }), l.isUndefined(r.withCredentials) || (m.withCredentials = !!r.withCredentials), c && c !== "json" && (m.responseType = r.responseType), u && ([g, h] = Ee(u, !0), m.addEventListener("progress", g)), d && m.upload && ([f, b] = Ee(d), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", b)), (r.cancelToken || r.signal) && (a = (x) => {
1075
+ }), l.isUndefined(r.withCredentials) || (m.withCredentials = !!r.withCredentials), c && c !== "json" && (m.responseType = r.responseType), u && ([g, h] = Se(u, !0), m.addEventListener("progress", g)), d && m.upload && ([f, b] = Se(d), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", b)), (r.cancelToken || r.signal) && (a = (x) => {
1074
1076
  m && (s(!x || x.type ? new ne(null, n, m) : x), m.abort(), m = null);
1075
1077
  }, r.cancelToken && r.cancelToken.subscribe(a), r.signal && (r.signal.aborted ? a() : r.signal.addEventListener("abort", a)));
1076
- const S = ps(r.url);
1077
- if (S && k.protocols.indexOf(S) === -1) {
1078
- s(new _("Unsupported protocol " + S + ":", _.ERR_BAD_REQUEST, n));
1078
+ const E = ps(r.url);
1079
+ if (E && k.protocols.indexOf(E) === -1) {
1080
+ s(new _("Unsupported protocol " + E + ":", _.ERR_BAD_REQUEST, n));
1079
1081
  return;
1080
1082
  }
1081
1083
  m.send(o || null);
@@ -1223,24 +1225,24 @@ const Mt = (n) => {
1223
1225
  url: p,
1224
1226
  method: m,
1225
1227
  data: w,
1226
- signal: S,
1228
+ signal: E,
1227
1229
  cancelToken: x,
1228
1230
  timeout: O,
1229
1231
  onDownloadProgress: C,
1230
- onUploadProgress: $,
1232
+ onUploadProgress: F,
1231
1233
  responseType: T,
1232
1234
  headers: J,
1233
- withCredentials: j = "same-origin",
1235
+ withCredentials: v = "same-origin",
1234
1236
  fetchOptions: Z
1235
1237
  } = Mt(h), M = e || fetch;
1236
1238
  T = T ? (T + "").toLowerCase() : "text";
1237
- let v = xs([S, x && x.toAbortSignal()], O), U = null;
1238
- const I = v && v.unsubscribe && (() => {
1239
- v.unsubscribe();
1239
+ let j = xs([E, x && x.toAbortSignal()], O), U = null;
1240
+ const I = j && j.unsubscribe && (() => {
1241
+ j.unsubscribe();
1240
1242
  });
1241
1243
  let de;
1242
1244
  try {
1243
- if ($ && u && m !== "get" && m !== "head" && (de = await b(J, w)) !== 0) {
1245
+ if (F && u && m !== "get" && m !== "head" && (de = await b(J, w)) !== 0) {
1244
1246
  let L = new t(p, {
1245
1247
  method: "POST",
1246
1248
  body: w,
@@ -1249,48 +1251,48 @@ const Mt = (n) => {
1249
1251
  if (l.isFormData(w) && (V = L.headers.get("content-type")) && J.setContentType(V), L.body) {
1250
1252
  const [ke, fe] = st(
1251
1253
  de,
1252
- Ee(rt($))
1254
+ Se(rt(F))
1253
1255
  );
1254
1256
  w = ot(L.body, ct, ke, fe);
1255
1257
  }
1256
1258
  }
1257
- l.isString(j) || (j = j ? "include" : "omit");
1259
+ l.isString(v) || (v = v ? "include" : "omit");
1258
1260
  const A = o && "credentials" in t.prototype, y = {
1259
1261
  ...Z,
1260
- signal: v,
1262
+ signal: j,
1261
1263
  method: m.toUpperCase(),
1262
1264
  headers: J.normalize().toJSON(),
1263
1265
  body: w,
1264
1266
  duplex: "half",
1265
- credentials: A ? j : void 0
1267
+ credentials: A ? v : void 0
1266
1268
  };
1267
1269
  U = o && new t(p, y);
1268
- let E = await (o ? M(U, Z) : M(p, y));
1269
- const F = a && (T === "stream" || T === "response");
1270
- if (a && (C || F && I)) {
1270
+ let S = await (o ? M(U, Z) : M(p, y));
1271
+ const $ = a && (T === "stream" || T === "response");
1272
+ if (a && (C || $ && I)) {
1271
1273
  const L = {};
1272
1274
  ["status", "statusText", "headers"].forEach((Qe) => {
1273
- L[Qe] = E[Qe];
1275
+ L[Qe] = S[Qe];
1274
1276
  });
1275
- const V = l.toFiniteNumber(E.headers.get("content-length")), [ke, fe] = C && st(
1277
+ const V = l.toFiniteNumber(S.headers.get("content-length")), [ke, fe] = C && st(
1276
1278
  V,
1277
- Ee(rt(C), !0)
1279
+ Se(rt(C), !0)
1278
1280
  ) || [];
1279
- E = new s(
1280
- ot(E.body, ct, ke, () => {
1281
+ S = new s(
1282
+ ot(S.body, ct, ke, () => {
1281
1283
  fe && fe(), I && I();
1282
1284
  }),
1283
1285
  L
1284
1286
  );
1285
1287
  }
1286
1288
  T = T || "text";
1287
- let z = await f[l.findKey(f, T) || "text"](E, h);
1288
- return !F && I && I(), await new Promise((L, V) => {
1289
+ let z = await f[l.findKey(f, T) || "text"](S, h);
1290
+ return !$ && I && I(), await new Promise((L, V) => {
1289
1291
  qt(L, V, {
1290
1292
  data: z,
1291
- headers: P.from(E.headers),
1292
- status: E.status,
1293
- statusText: E.statusText,
1293
+ headers: P.from(S.headers),
1294
+ status: S.status,
1295
+ statusText: S.statusText,
1294
1296
  config: h,
1295
1297
  request: U
1296
1298
  });
@@ -1305,7 +1307,7 @@ const Mt = (n) => {
1305
1307
  }
1306
1308
  };
1307
1309
  }, ks = /* @__PURE__ */ new Map(), Ht = (n) => {
1308
- let e = n ? n.env : {};
1310
+ let e = n && n.env || {};
1309
1311
  const { fetch: t, Request: s, Response: r } = e, o = [
1310
1312
  s,
1311
1313
  r,
@@ -1317,14 +1319,14 @@ const Mt = (n) => {
1317
1319
  return u;
1318
1320
  };
1319
1321
  Ht();
1320
- const ve = {
1322
+ const ze = {
1321
1323
  http: Jn,
1322
- xhr: Ss,
1324
+ xhr: Es,
1323
1325
  fetch: {
1324
1326
  get: Ht
1325
1327
  }
1326
1328
  };
1327
- l.forEach(ve, (n, e) => {
1329
+ l.forEach(ze, (n, e) => {
1328
1330
  if (n) {
1329
1331
  try {
1330
1332
  Object.defineProperty(n, "name", { value: e });
@@ -1333,36 +1335,46 @@ l.forEach(ve, (n, e) => {
1333
1335
  Object.defineProperty(n, "adapterName", { value: e });
1334
1336
  }
1335
1337
  });
1336
- const ht = (n) => `- ${n}`, Ns = (n) => l.isFunction(n) || n === null || n === !1, zt = {
1337
- getAdapter: (n, e) => {
1338
- n = l.isArray(n) ? n : [n];
1339
- const { length: t } = n;
1340
- let s, r;
1341
- const o = {};
1342
- for (let i = 0; i < t; i++) {
1343
- s = n[i];
1344
- let c;
1345
- if (r = s, !Ns(s) && (r = ve[(c = String(s)).toLowerCase()], r === void 0))
1346
- throw new _(`Unknown adapter '${c}'`);
1347
- if (r && (l.isFunction(r) || (r = r.get(e))))
1348
- break;
1349
- o[c || "#" + i] = r;
1350
- }
1351
- if (!r) {
1352
- const i = Object.entries(o).map(
1353
- ([d, u]) => `adapter ${d} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1354
- );
1355
- let c = t ? i.length > 1 ? `since :
1338
+ const ht = (n) => `- ${n}`, Ns = (n) => l.isFunction(n) || n === null || n === !1;
1339
+ function Ps(n, e) {
1340
+ n = l.isArray(n) ? n : [n];
1341
+ const { length: t } = n;
1342
+ let s, r;
1343
+ const o = {};
1344
+ for (let i = 0; i < t; i++) {
1345
+ s = n[i];
1346
+ let c;
1347
+ if (r = s, !Ns(s) && (r = ze[(c = String(s)).toLowerCase()], r === void 0))
1348
+ throw new _(`Unknown adapter '${c}'`);
1349
+ if (r && (l.isFunction(r) || (r = r.get(e))))
1350
+ break;
1351
+ o[c || "#" + i] = r;
1352
+ }
1353
+ if (!r) {
1354
+ const i = Object.entries(o).map(
1355
+ ([d, u]) => `adapter ${d} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1356
+ );
1357
+ let c = t ? i.length > 1 ? `since :
1356
1358
  ` + i.map(ht).join(`
1357
1359
  `) : " " + ht(i[0]) : "as no adapter specified";
1358
- throw new _(
1359
- "There is no suitable adapter to dispatch the request " + c,
1360
- "ERR_NOT_SUPPORT"
1361
- );
1362
- }
1363
- return r;
1364
- },
1365
- adapters: ve
1360
+ throw new _(
1361
+ "There is no suitable adapter to dispatch the request " + c,
1362
+ "ERR_NOT_SUPPORT"
1363
+ );
1364
+ }
1365
+ return r;
1366
+ }
1367
+ const zt = {
1368
+ /**
1369
+ * Resolve an adapter from a list of adapter names or functions.
1370
+ * @type {Function}
1371
+ */
1372
+ getAdapter: Ps,
1373
+ /**
1374
+ * Exposes all known adapters
1375
+ * @type {Object<string, Function|Object>}
1376
+ */
1377
+ adapters: ze
1366
1378
  };
1367
1379
  function Ie(n) {
1368
1380
  if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
@@ -1386,7 +1398,7 @@ function dt(n) {
1386
1398
  ), s.response.headers = P.from(s.response.headers))), Promise.reject(s);
1387
1399
  });
1388
1400
  }
1389
- const Vt = "1.12.2", Oe = {};
1401
+ const Vt = "1.13.2", Oe = {};
1390
1402
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, e) => {
1391
1403
  Oe[n] = function(s) {
1392
1404
  return typeof s === n || "a" + (e < 1 ? "n " : " ") + n;
@@ -1414,7 +1426,7 @@ Oe.transitional = function(e, t, s) {
1414
1426
  Oe.spelling = function(e) {
1415
1427
  return (t, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
1416
1428
  };
1417
- function Ps(n, e, t) {
1429
+ function Is(n, e, t) {
1418
1430
  if (typeof n != "object")
1419
1431
  throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
1420
1432
  const s = Object.keys(n);
@@ -1432,7 +1444,7 @@ function Ps(n, e, t) {
1432
1444
  }
1433
1445
  }
1434
1446
  const we = {
1435
- assertOptions: Ps,
1447
+ assertOptions: Is,
1436
1448
  validators: Oe
1437
1449
  }, H = we.validators;
1438
1450
  let G = class {
@@ -1532,7 +1544,7 @@ let G = class {
1532
1544
  getUri(e) {
1533
1545
  e = Q(this.defaults, e);
1534
1546
  const t = Bt(e.baseURL, e.url, e.allowAbsoluteUrls);
1535
- return jt(t, e.params, e.paramsSerializer);
1547
+ return vt(t, e.params, e.paramsSerializer);
1536
1548
  }
1537
1549
  };
1538
1550
  l.forEach(["delete", "get", "head", "options"], function(e) {
@@ -1559,7 +1571,7 @@ l.forEach(["post", "put", "patch"], function(e) {
1559
1571
  }
1560
1572
  G.prototype[e] = t(), G.prototype[e + "Form"] = t(!0);
1561
1573
  });
1562
- let Is = class Jt {
1574
+ let Ls = class Jt {
1563
1575
  constructor(e) {
1564
1576
  if (typeof e != "function")
1565
1577
  throw new TypeError("executor must be a function.");
@@ -1632,7 +1644,7 @@ let Is = class Jt {
1632
1644
  };
1633
1645
  }
1634
1646
  };
1635
- function Ls(n) {
1647
+ function $s(n) {
1636
1648
  return function(t) {
1637
1649
  return n.apply(null, t);
1638
1650
  };
@@ -1640,7 +1652,7 @@ function Ls(n) {
1640
1652
  function Fs(n) {
1641
1653
  return l.isObject(n) && n.isAxiosError === !0;
1642
1654
  }
1643
- const Ue = {
1655
+ const je = {
1644
1656
  Continue: 100,
1645
1657
  SwitchingProtocols: 101,
1646
1658
  Processing: 102,
@@ -1703,10 +1715,16 @@ const Ue = {
1703
1715
  InsufficientStorage: 507,
1704
1716
  LoopDetected: 508,
1705
1717
  NotExtended: 510,
1706
- NetworkAuthenticationRequired: 511
1718
+ NetworkAuthenticationRequired: 511,
1719
+ WebServerIsDown: 521,
1720
+ ConnectionTimedOut: 522,
1721
+ OriginIsUnreachable: 523,
1722
+ TimeoutOccurred: 524,
1723
+ SslHandshakeFailed: 525,
1724
+ InvalidSslCertificate: 526
1707
1725
  };
1708
- Object.entries(Ue).forEach(([n, e]) => {
1709
- Ue[e] = n;
1726
+ Object.entries(je).forEach(([n, e]) => {
1727
+ je[e] = n;
1710
1728
  });
1711
1729
  function Wt(n) {
1712
1730
  const e = new G(n), t = At(G.prototype.request, e);
@@ -1717,7 +1735,7 @@ function Wt(n) {
1717
1735
  const R = Wt(le);
1718
1736
  R.Axios = G;
1719
1737
  R.CanceledError = ne;
1720
- R.CancelToken = Is;
1738
+ R.CancelToken = Ls;
1721
1739
  R.isCancel = Dt;
1722
1740
  R.VERSION = Vt;
1723
1741
  R.toFormData = Re;
@@ -1726,31 +1744,31 @@ R.Cancel = R.CanceledError;
1726
1744
  R.all = function(e) {
1727
1745
  return Promise.all(e);
1728
1746
  };
1729
- R.spread = Ls;
1747
+ R.spread = $s;
1730
1748
  R.isAxiosError = Fs;
1731
1749
  R.mergeConfig = Q;
1732
1750
  R.AxiosHeaders = P;
1733
1751
  R.formToJSON = (n) => Ut(l.isHTMLForm(n) ? new FormData(n) : n);
1734
1752
  R.getAdapter = zt.getAdapter;
1735
- R.HttpStatusCode = Ue;
1753
+ R.HttpStatusCode = je;
1736
1754
  R.default = R;
1737
1755
  const {
1738
- Axios: Gr,
1739
- AxiosError: Qr,
1740
- CanceledError: Zr,
1741
- isCancel: Yr,
1742
- CancelToken: ei,
1743
- VERSION: ti,
1744
- all: ni,
1745
- Cancel: si,
1746
- isAxiosError: ri,
1747
- spread: ii,
1748
- toFormData: oi,
1749
- AxiosHeaders: ci,
1750
- HttpStatusCode: ai,
1751
- formToJSON: li,
1752
- getAdapter: ui,
1753
- mergeConfig: hi
1756
+ Axios: Qr,
1757
+ AxiosError: Zr,
1758
+ CanceledError: Yr,
1759
+ isCancel: ei,
1760
+ CancelToken: ti,
1761
+ VERSION: ni,
1762
+ all: si,
1763
+ Cancel: ri,
1764
+ isAxiosError: ii,
1765
+ spread: oi,
1766
+ toFormData: ci,
1767
+ AxiosHeaders: ai,
1768
+ HttpStatusCode: li,
1769
+ formToJSON: ui,
1770
+ getAdapter: hi,
1771
+ mergeConfig: di
1754
1772
  } = R, Ve = R.create({
1755
1773
  baseURL: location.origin,
1756
1774
  timeout: 6e4,
@@ -1806,15 +1824,15 @@ const me = async function(n, e, {
1806
1824
  headers: r,
1807
1825
  onUploadProgress: c
1808
1826
  });
1809
- }, De = {
1827
+ }, Ue = {
1810
1828
  Accept: "application/json"
1811
1829
  }, pt = {
1812
- ...De,
1830
+ ...Ue,
1813
1831
  "Content-Type": "application/json"
1814
- }, di = {
1832
+ }, fi = {
1815
1833
  get: function(n, {
1816
1834
  params: e,
1817
- headers: t = De,
1835
+ headers: t = Ue,
1818
1836
  noScope: s,
1819
1837
  noAuth: r,
1820
1838
  onUploadProgress: o
@@ -1863,7 +1881,7 @@ const me = async function(n, e, {
1863
1881
  },
1864
1882
  delete: function(n, {
1865
1883
  params: e,
1866
- headers: t = De,
1884
+ headers: t = Ue,
1867
1885
  noScope: s,
1868
1886
  noAuth: r,
1869
1887
  onUploadProgress: o
@@ -1901,7 +1919,7 @@ class Je extends ue {
1901
1919
  super("Rejected", e), this.name = "SubscriptionRejectedError";
1902
1920
  }
1903
1921
  }
1904
- class $s extends ue {
1922
+ class vs extends ue {
1905
1923
  constructor(e) {
1906
1924
  super(e || "Timed out to receive subscription ack"), this.name = "SubscriptionTimeoutError";
1907
1925
  }
@@ -1922,7 +1940,7 @@ function Kt(n) {
1922
1940
  return `${JSON.stringify(t)}:${s}`;
1923
1941
  }).join(",")}}` : "";
1924
1942
  }
1925
- class vs {
1943
+ class Us {
1926
1944
  constructor(e) {
1927
1945
  this.channel = e, this.listeners = [];
1928
1946
  }
@@ -1975,7 +1993,7 @@ class Xt {
1975
1993
  // Unique channel identifier
1976
1994
  // static identifier = ''
1977
1995
  constructor(e = {}) {
1978
- this.emitter = Ce(), this.params = Object.freeze(e), this.presence = new vs(this), this.initialConnect = !0, this[W] = "idle";
1996
+ this.emitter = Ce(), this.params = Object.freeze(e), this.presence = new Us(this), this.initialConnect = !0, this[W] = "idle";
1979
1997
  }
1980
1998
  get identifier() {
1981
1999
  return this._identifier ? this._identifier : (this._identifier = Kt({
@@ -2078,7 +2096,7 @@ class Xt {
2078
2096
  }), this._pendingSubscribe);
2079
2097
  }
2080
2098
  }
2081
- class Us {
2099
+ class Ds {
2082
2100
  constructor(e) {
2083
2101
  this.id = e, this.intent = "unsubscribed", this.state = "idle", this.channels = [], this.disposed = !1, this._pendings = [];
2084
2102
  }
@@ -2138,7 +2156,7 @@ class Us {
2138
2156
  return !t || t.acquired || t.intent !== e ? !1 : (this._pendings.pop(), t.canceled = !0, !0);
2139
2157
  }
2140
2158
  }
2141
- class Ds {
2159
+ class qs {
2142
2160
  constructor() {
2143
2161
  this.queue = [];
2144
2162
  }
@@ -2150,9 +2168,9 @@ class Ds {
2150
2168
  ), this.queue.length > 1 && await this.queue[this.queue.length - 2]);
2151
2169
  }
2152
2170
  }
2153
- class qs {
2171
+ class Bs {
2154
2172
  constructor(e) {
2155
- e.concurrentSubscribes === !1 && (this.glv = new Ds()), this._subscriptions = {}, this._localToRemote = {};
2173
+ e.concurrentSubscribes === !1 && (this.glv = new qs()), this._subscriptions = {}, this._localToRemote = {};
2156
2174
  }
2157
2175
  all() {
2158
2176
  return Object.values(this._subscriptions);
@@ -2161,7 +2179,7 @@ class qs {
2161
2179
  return this._subscriptions[e];
2162
2180
  }
2163
2181
  create(e, { subscribe: t, unsubscribe: s }) {
2164
- let r = this._subscriptions[e] = new Us(e);
2182
+ let r = this._subscriptions[e] = new Ds(e);
2165
2183
  return r.remoteId = this._localToRemote[e], r.subscriber = t, r.unsubscriber = s, r.gvl = this.glv, r;
2166
2184
  }
2167
2185
  remove(e) {
@@ -2173,9 +2191,9 @@ class qs {
2173
2191
  s && (s.remoteId = t);
2174
2192
  }
2175
2193
  }
2176
- class Bs {
2194
+ class Ms {
2177
2195
  constructor(e = {}) {
2178
- this.subscriptions = new qs(e), this._pendingMessages = [], this._remoteToLocal = {};
2196
+ this.subscriptions = new Bs(e), this._pendingMessages = [], this._remoteToLocal = {};
2179
2197
  }
2180
2198
  subscribe(e, t) {
2181
2199
  this._remoteToLocal[t] = e, this.subscriptions.storeRemoteId(e, t), this.flush(t);
@@ -2253,7 +2271,7 @@ class he extends Gt {
2253
2271
  writeLogEntry() {
2254
2272
  }
2255
2273
  }
2256
- class Ms {
2274
+ class Hs {
2257
2275
  encode(e) {
2258
2276
  return JSON.stringify(e);
2259
2277
  }
@@ -2264,7 +2282,7 @@ class Ms {
2264
2282
  }
2265
2283
  }
2266
2284
  }
2267
- let Hs = 0;
2285
+ let zs = 0;
2268
2286
  class Qt {
2269
2287
  constructor(e = {}) {
2270
2288
  let { logger: t } = e;
@@ -2292,7 +2310,7 @@ class Qt {
2292
2310
  return this.logger.warn("subscription is already pending, skipping", r), Promise.reject(Error("Already subscribing"));
2293
2311
  let o = this.subscribeRetryInterval;
2294
2312
  return new Promise((i, c) => {
2295
- let d = ++Hs;
2313
+ let d = ++zs;
2296
2314
  this.pendingSubscriptions[r] = {
2297
2315
  resolve: i,
2298
2316
  reject: c,
@@ -2319,7 +2337,7 @@ class Qt {
2319
2337
  setTimeout(() => {
2320
2338
  let r = this.pendingSubscriptions[t];
2321
2339
  r && r.id === e && (delete this.pendingSubscriptions[t], r.reject(
2322
- new $s(
2340
+ new vs(
2323
2341
  `Haven't received subscription ack in ${s * 2}ms for ${t}`
2324
2342
  )
2325
2343
  ));
@@ -2393,7 +2411,7 @@ class Qt {
2393
2411
  }
2394
2412
  }
2395
2413
  const gt = () => Date.now() / 1e3 | 0;
2396
- class zs extends Qt {
2414
+ class Vs extends Qt {
2397
2415
  constructor(e = {}) {
2398
2416
  super(e), this.streamsPositions = {}, this.subscriptionStreams = {}, this.pendingHistory = {}, this.pendingPresence = {}, this.presenceInfo = {}, this.restoreSince = e.historyTimestamp, this.disableSessionRecovery = e.disableSessionRecovery, this.restoreSince === void 0 && (this.restoreSince = gt()), this.sessionId = void 0, this.sendPongs = e.pongs;
2399
2417
  }
@@ -2536,7 +2554,7 @@ class zs extends Qt {
2536
2554
  });
2537
2555
  }
2538
2556
  }
2539
- class Vs extends ue {
2557
+ class Js extends ue {
2540
2558
  constructor() {
2541
2559
  super("No connection", "closed"), this.name = "NoConnectionError";
2542
2560
  }
@@ -2553,17 +2571,17 @@ class We extends Xt {
2553
2571
  }
2554
2572
  }
2555
2573
  D(We, "identifier", "__ghost__");
2556
- const Js = "$pubsub";
2557
- class qe extends Xt {
2574
+ const Ws = "$pubsub";
2575
+ class De extends Xt {
2558
2576
  async perform(e, t) {
2559
2577
  if (e.startsWith("$"))
2560
2578
  return super.perform(e, t);
2561
2579
  throw Error("not implemented");
2562
2580
  }
2563
2581
  }
2564
- D(qe, "identifier", Js);
2582
+ D(De, "identifier", Ws);
2565
2583
  const K = Symbol("state");
2566
- let Ws = class {
2584
+ let Ks = class {
2567
2585
  constructor({
2568
2586
  transport: e,
2569
2587
  protocol: t,
@@ -2574,7 +2592,7 @@ let Ws = class {
2574
2592
  performFailures: c,
2575
2593
  transportConfigurator: d
2576
2594
  }) {
2577
- this.emitter = Ce(), this.transport = e, this.encoder = s, this.logger = r || new he(), this.protocol = t, this.performFailures = c || "throw", this.protocol.attached(this), this.hub = new Bs(i || {}), this[K] = "idle", this.handleClose = this.handleClose.bind(this), this.handleIncoming = this.handleIncoming.bind(this), this.transportConfigurator = d, this.transport.on("close", this.handleClose), this.transport.on("data", this.handleIncoming), this.initialConnect = !0, this.recovering = !1, o === !1 && this.connect().catch(() => {
2595
+ this.emitter = Ce(), this.transport = e, this.encoder = s, this.logger = r || new he(), this.protocol = t, this.performFailures = c || "throw", this.protocol.attached(this), this.hub = new Ms(i || {}), this[K] = "idle", this.handleClose = this.handleClose.bind(this), this.handleIncoming = this.handleIncoming.bind(this), this.transportConfigurator = d, this.transport.on("close", this.handleClose), this.transport.on("data", this.handleIncoming), this.initialConnect = !0, this.recovering = !1, o === !1 && this.connect().catch(() => {
2578
2596
  });
2579
2597
  }
2580
2598
  get state() {
@@ -2672,11 +2690,11 @@ let Ws = class {
2672
2690
  this.emit("keepalive", e);
2673
2691
  }
2674
2692
  streamFrom(e) {
2675
- let t = new qe({ stream_name: e });
2693
+ let t = new De({ stream_name: e });
2676
2694
  return this.subscribe(t);
2677
2695
  }
2678
2696
  streamFromSigned(e) {
2679
- let t = new qe({ signed_stream_name: e });
2697
+ let t = new De({ signed_stream_name: e });
2680
2698
  return this.subscribe(t);
2681
2699
  }
2682
2700
  subscribeTo(e, t) {
@@ -2809,7 +2827,7 @@ let Ws = class {
2809
2827
  }
2810
2828
  async _perform(e, t, s) {
2811
2829
  if (this.state === "connecting" && await this.pendingConnect(), this.state === "closed" || this.state === "disconnected")
2812
- throw new Vs();
2830
+ throw new Js();
2813
2831
  let r = this.hub.subscriptions.get(e);
2814
2832
  if (!r)
2815
2833
  throw Error(`Subscription not found: ${e}`);
@@ -2865,7 +2883,7 @@ let Ws = class {
2865
2883
  }), this._pendingConnect);
2866
2884
  }
2867
2885
  };
2868
- const Ks = {
2886
+ const Xs = {
2869
2887
  maxMissingPings: 2,
2870
2888
  maxReconnectAttempts: 1 / 0
2871
2889
  }, Y = () => Date.now(), Zt = (n, e) => {
@@ -2880,7 +2898,7 @@ let Yt = class {
2880
2898
  constructor({ pingInterval: e, ...t }) {
2881
2899
  if (this.pingInterval = e, !this.pingInterval)
2882
2900
  throw Error(`Incorrect pingInterval is provided: ${e}`);
2883
- if (t = Object.assign({}, Ks, t), this.strategy = t.reconnectStrategy, !this.strategy)
2901
+ if (t = Object.assign({}, Xs, t), this.strategy = t.reconnectStrategy, !this.strategy)
2884
2902
  throw Error("Reconnect strategy must be provided");
2885
2903
  this.maxMissingPings = t.maxMissingPings, this.maxReconnectAttempts = t.maxReconnectAttempts, this.logger = t.logger || new he(), this.state = "pending_connect", this.attempts = 0, this.disconnectedAt = Y();
2886
2904
  }
@@ -2942,7 +2960,7 @@ let Yt = class {
2942
2960
  this.reconnnectId && (clearTimeout(this.reconnnectId), delete this.reconnnectId);
2943
2961
  }
2944
2962
  };
2945
- class Xs {
2963
+ class Gs {
2946
2964
  constructor(e, t = {}) {
2947
2965
  this.transports = e, this.transport = null, this.emitter = Ce(), this.unbind = [], this.logger = t.logger || new he();
2948
2966
  }
@@ -3015,7 +3033,7 @@ class Xs {
3015
3033
  );
3016
3034
  }
3017
3035
  }
3018
- class Gs {
3036
+ class Qs {
3019
3037
  constructor(e, t = {}) {
3020
3038
  this.url = e;
3021
3039
  let s = t.websocketImplementation;
@@ -3111,7 +3129,7 @@ const en = {
3111
3129
  logLevel: "warn",
3112
3130
  lazy: !0
3113
3131
  };
3114
- function Qs(n, e) {
3132
+ function Zs(n, e) {
3115
3133
  if (typeof n == "object" && typeof e > "u" && (e = n, n = void 0), e = e || {}, !n && !e.transport) throw Error("URL or transport must be specified");
3116
3134
  e = Object.assign({}, en, e);
3117
3135
  let {
@@ -3131,22 +3149,22 @@ function Qs(n, e) {
3131
3149
  reconnectStrategy: p,
3132
3150
  maxMissingPings: m,
3133
3151
  maxReconnectAttempts: w,
3134
- subprotocol: S,
3152
+ subprotocol: E,
3135
3153
  tokenRefresher: x,
3136
3154
  historyTimestamp: O,
3137
3155
  protocolOptions: C,
3138
- concurrentSubscribes: $,
3156
+ concurrentSubscribes: F,
3139
3157
  performFailures: T,
3140
3158
  transportConfigurator: J,
3141
- auth: j
3159
+ auth: v
3142
3160
  } = e;
3143
3161
  if (u = u || new he(d), typeof t == "string") {
3144
- S = S || t;
3145
- let v = t.substring(0, t.lastIndexOf("-")), U = t.substring(t.lastIndexOf("-") + 1);
3146
- if (C = C || {}, v === "actioncable-v1")
3162
+ E = E || t;
3163
+ let j = t.substring(0, t.lastIndexOf("-")), U = t.substring(t.lastIndexOf("-") + 1);
3164
+ if (C = C || {}, j === "actioncable-v1")
3147
3165
  t = new Qt({ logger: u, ...C });
3148
- else if (v === "actioncable-v1-ext")
3149
- t = new zs({
3166
+ else if (j === "actioncable-v1-ext")
3167
+ t = new Vs({
3150
3168
  logger: u,
3151
3169
  historyTimestamp: O,
3152
3170
  ...C
@@ -3154,7 +3172,7 @@ function Qs(n, e) {
3154
3172
  else
3155
3173
  throw Error(`Protocol is not supported yet: ${t}`);
3156
3174
  if (U === "json")
3157
- f = f || new Ms(), r = r || "text";
3175
+ f = f || new Hs(), r = r || "text";
3158
3176
  else if (U === "msgpack") {
3159
3177
  if (r = "binary", !f)
3160
3178
  throw Error(
@@ -3169,20 +3187,20 @@ function Qs(n, e) {
3169
3187
  throw Error(`Protocol is not supported yet: ${t}`);
3170
3188
  }
3171
3189
  if (!t) throw Error("Protocol must be specified");
3172
- a = a || new Gs(n, {
3190
+ a = a || new Qs(n, {
3173
3191
  websocketImplementation: s,
3174
3192
  websocketOptions: o,
3175
- subprotocol: S,
3193
+ subprotocol: E,
3176
3194
  authStrategy: i,
3177
3195
  format: r
3178
- }), c && (a = new Xs([a, ...c], { logger: u })), j && j.token && a.setToken(j.token, j.param || "jid"), p = p || Zt(h), b !== !1 && (b = b || new Yt({
3196
+ }), c && (a = new Gs([a, ...c], { logger: u })), v && v.token && a.setToken(v.token, v.param || "jid"), p = p || Zt(h), b !== !1 && (b = b || new Yt({
3179
3197
  pingInterval: h,
3180
3198
  reconnectStrategy: p,
3181
3199
  maxMissingPings: m,
3182
3200
  maxReconnectAttempts: w,
3183
3201
  logger: u
3184
3202
  }));
3185
- let Z = { concurrentSubscribes: $ }, M = new Ws({
3203
+ let Z = { concurrentSubscribes: F }, M = new Ks({
3186
3204
  protocol: t,
3187
3205
  transport: a,
3188
3206
  encoder: f,
@@ -3192,17 +3210,17 @@ function Qs(n, e) {
3192
3210
  performFailures: T,
3193
3211
  transportConfigurator: J
3194
3212
  });
3195
- return b && (b.watch(M), M.monitor = b), x && Zs(M, async () => {
3213
+ return b && (b.watch(M), M.monitor = b), x && Ys(M, async () => {
3196
3214
  try {
3197
3215
  await x(a);
3198
- } catch (v) {
3199
- return u.error("Failed to refresh authentication token: " + v), !1;
3216
+ } catch (j) {
3217
+ return u.error("Failed to refresh authentication token: " + j), !1;
3200
3218
  }
3201
3219
  return M.connect().catch(() => {
3202
3220
  }), !0;
3203
3221
  }), M;
3204
3222
  }
3205
- function Zs(n, e) {
3223
+ function Ys(n, e) {
3206
3224
  let t = !1;
3207
3225
  n.on("connect", () => t = !1), n.on("close", async (s) => {
3208
3226
  if (s) {
@@ -3214,7 +3232,7 @@ function Zs(n, e) {
3214
3232
  }
3215
3233
  });
3216
3234
  }
3217
- class Ys {
3235
+ class er {
3218
3236
  constructor(e) {
3219
3237
  this.channel = e;
3220
3238
  }
@@ -3234,9 +3252,9 @@ class Ys {
3234
3252
  return this.channel.disconnect();
3235
3253
  }
3236
3254
  }
3237
- class er extends We {
3255
+ class tr extends We {
3238
3256
  constructor(e, t, s) {
3239
- super(e, t), this.subscription = new Ys(this), Object.assign(this.subscription, s), this.on(
3257
+ super(e, t), this.subscription = new er(this), Object.assign(this.subscription, s), this.on(
3240
3258
  "connect",
3241
3259
  ({ reconnect: r }) => this.subscription.notify("connected", { reconnected: r })
3242
3260
  ), this.on(
@@ -3247,31 +3265,31 @@ class er extends We {
3247
3265
  });
3248
3266
  }
3249
3267
  }
3250
- class tr {
3268
+ class nr {
3251
3269
  constructor(e) {
3252
3270
  this.cable = e;
3253
3271
  }
3254
3272
  create(e, t) {
3255
3273
  let s, r;
3256
3274
  typeof e == "object" ? (s = e.channel, delete e.channel, r = e) : (s = e, r = {});
3257
- let o = new er(s, r, t);
3275
+ let o = new tr(s, r, t);
3258
3276
  return o.subscription.notify("initialized"), this.cable.subscribe(o), o.subscription;
3259
3277
  }
3260
3278
  findAll(e) {
3261
3279
  return this.cable.hub.channels.filter((t) => t.identifier === e).map((t) => t.subscription);
3262
3280
  }
3263
3281
  }
3264
- class nr {
3282
+ class sr {
3265
3283
  constructor(e) {
3266
- this.cable = e, this.subscriptions = new tr(e);
3284
+ this.cable = e, this.subscriptions = new nr(e);
3267
3285
  }
3268
3286
  }
3269
- class sr extends Gt {
3287
+ class rr extends Gt {
3270
3288
  writeLogEntry(e, t, s) {
3271
3289
  s ? console[e](t, s) : console[e](t);
3272
3290
  }
3273
3291
  }
3274
- class rr extends Yt {
3292
+ class ir extends Yt {
3275
3293
  watch(e) {
3276
3294
  super.watch(e), this.initActivityListeners();
3277
3295
  }
@@ -3291,37 +3309,37 @@ class rr extends Yt {
3291
3309
  this.state === "disconnected" || this.state === "closed" || (this.logger.info("Disconnecting", { reason: e.message }), this.cancelReconnect(), this.stopPolling(), this.state = "pending_disconnect", this.target.disconnected(e));
3292
3310
  }
3293
3311
  }
3294
- const ir = ["cable", "action-cable"], or = "/cable", Te = (n, e) => {
3295
- for (let t of ir) {
3312
+ const or = ["cable", "action-cable"], cr = "/cable", Te = (n, e) => {
3313
+ for (let t of or) {
3296
3314
  let s = n.head.querySelector(`meta[name='${t}-${e}']`);
3297
3315
  if (s)
3298
3316
  return s.getAttribute("content");
3299
3317
  }
3300
- }, bt = (n) => n.match(/wss?:\/\//) ? n : typeof window < "u" ? `${window.location.protocol.replace("http", "ws")}//${window.location.host}${n}` : n, cr = () => {
3318
+ }, bt = (n) => n.match(/wss?:\/\//) ? n : typeof window < "u" ? `${window.location.protocol.replace("http", "ws")}//${window.location.host}${n}` : n, ar = () => {
3301
3319
  if (typeof document < "u" && document.head) {
3302
3320
  let n = Te(document, "url");
3303
3321
  if (n)
3304
3322
  return bt(n);
3305
3323
  }
3306
- return bt(or);
3307
- }, ar = () => {
3324
+ return bt(cr);
3325
+ }, lr = () => {
3308
3326
  if (typeof document < "u" && document.head) {
3309
3327
  let n = Te(document, "history-timestamp");
3310
3328
  if (n)
3311
3329
  return n | 0;
3312
3330
  }
3313
- }, lr = () => {
3331
+ }, ur = () => {
3314
3332
  if (typeof document < "u" && document.head)
3315
3333
  return Te(document, "token");
3316
- }, ur = () => {
3334
+ }, hr = () => {
3317
3335
  if (typeof document < "u" && document.head)
3318
3336
  return Te(document, "token-param");
3319
3337
  };
3320
- function hr(n, e) {
3321
- typeof n == "object" && typeof e > "u" && (e = n, n = void 0), n = n || cr(), e = e || {}, e.historyTimestamp || (e.historyTimestamp = ar());
3322
- let t = lr();
3338
+ function dr(n, e) {
3339
+ typeof n == "object" && typeof e > "u" && (e = n, n = void 0), n = n || ar(), e = e || {}, e.historyTimestamp || (e.historyTimestamp = lr());
3340
+ let t = ur();
3323
3341
  if (t) {
3324
- let u = ur();
3342
+ let u = hr();
3325
3343
  e.auth = Object.assign({ token: t, param: u }, e.auth || {});
3326
3344
  }
3327
3345
  e = Object.assign({}, en, e);
@@ -3333,19 +3351,19 @@ function hr(n, e) {
3333
3351
  maxMissingPings: c,
3334
3352
  maxReconnectAttempts: d
3335
3353
  } = e;
3336
- return r = e.logger = e.logger || new sr(s), i = e.reconnectStrategy = e.reconnectStrategy || Zt(o), e.monitor !== !1 && (e.monitor = e.monitor || new rr({
3354
+ return r = e.logger = e.logger || new rr(s), i = e.reconnectStrategy = e.reconnectStrategy || Zt(o), e.monitor !== !1 && (e.monitor = e.monitor || new ir({
3337
3355
  pingInterval: o,
3338
3356
  reconnectStrategy: i,
3339
3357
  maxMissingPings: c,
3340
3358
  maxReconnectAttempts: d,
3341
3359
  logger: r
3342
- })), Qs(n, e);
3360
+ })), Zs(n, e);
3343
3361
  }
3344
- function dr(n, e) {
3345
- let t = hr(n, e);
3346
- return new nr(t);
3362
+ function fr(n, e) {
3363
+ let t = dr(n, e);
3364
+ return new sr(t);
3347
3365
  }
3348
- class mi {
3366
+ class gi {
3349
3367
  constructor(e = "/openc3-api/cable") {
3350
3368
  this._cable = null, this._url = e;
3351
3369
  }
@@ -3357,7 +3375,7 @@ class mi {
3357
3375
  (o) => {
3358
3376
  if (o && OpenC3Auth.setTokens(), this._cable == null) {
3359
3377
  let i = this._url + "?scope=" + encodeURIComponent(t) + "&authorization=" + encodeURIComponent(localStorage.openc3Token);
3360
- i = new URL(i, document.baseURI).href, this._cable = dr(i);
3378
+ i = new URL(i, document.baseURI).href, this._cable = fr(i);
3361
3379
  }
3362
3380
  return this._cable.subscriptions.create(
3363
3381
  {
@@ -3377,7 +3395,7 @@ class yt {
3377
3395
  this.keyword = e.keyword, this.parameters = e.parameters, this.filename = e.filename, this.line = e.line, this.lineNumber = e.lineNumber, this.message = t, this.usage = s, this.url = r;
3378
3396
  }
3379
3397
  }
3380
- class gi {
3398
+ class bi {
3381
3399
  constructor() {
3382
3400
  D(this, "keyword", null);
3383
3401
  D(this, "parameters", []);
@@ -3461,10 +3479,10 @@ class gi {
3461
3479
  let m = h.length;
3462
3480
  if (m > 1)
3463
3481
  for (let w = 1; w < m; w++) {
3464
- let S = h[w];
3465
- if (S.length > 0 && S.charAt(0) === "#")
3482
+ let E = h[w];
3483
+ if (E.length > 0 && E.charAt(0) === "#")
3466
3484
  break;
3467
- r ? this.parameters.push(this.remove_quotes(S)) : this.parameters.push(S);
3485
+ r ? this.parameters.push(this.remove_quotes(E)) : this.parameters.push(E);
3468
3486
  }
3469
3487
  o(this.keyword, this.parameters, this.line, this.lineNumber), this.line = "";
3470
3488
  }
@@ -3472,13 +3490,13 @@ class gi {
3472
3490
  // parse_string
3473
3491
  }
3474
3492
  function ie(n) {
3475
- return fr.test(n);
3493
+ return pr.test(n);
3476
3494
  }
3477
- const fr = /^-?[0-9]+$/;
3495
+ const pr = /^-?[0-9]+$/;
3478
3496
  function tn(n) {
3479
- return pr.test(n);
3497
+ return mr.test(n);
3480
3498
  }
3481
- const pr = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
3499
+ const mr = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
3482
3500
  function nn(n, e) {
3483
3501
  if (ie(n))
3484
3502
  return Number.isSafeInteger(Number.parseInt(n, 10));
@@ -3491,7 +3509,7 @@ function nn(n, e) {
3491
3509
  let re = /* @__PURE__ */ function(n) {
3492
3510
  return n.underflow = "underflow", n.overflow = "overflow", n.truncate_integer = "truncate_integer", n.truncate_float = "truncate_float", n;
3493
3511
  }({});
3494
- function mr(n) {
3512
+ function gr(n) {
3495
3513
  if (nn(n, {
3496
3514
  approx: !1
3497
3515
  }))
@@ -3505,10 +3523,10 @@ function _t(n) {
3505
3523
  const {
3506
3524
  start: e,
3507
3525
  end: t
3508
- } = gr(n), s = n.substring(e, t), r = s.indexOf(".");
3526
+ } = br(n), s = n.substring(e, t), r = s.indexOf(".");
3509
3527
  return r === -1 ? s : s.substring(0, r) + s.substring(r + 1);
3510
3528
  }
3511
- function gr(n) {
3529
+ function br(n) {
3512
3530
  let e = 0;
3513
3531
  for (n[0] === "-" && e++; n[e] === "0" || n[e] === "."; )
3514
3532
  e++;
@@ -3520,7 +3538,7 @@ function gr(n) {
3520
3538
  end: t
3521
3539
  };
3522
3540
  }
3523
- class br {
3541
+ class yr {
3524
3542
  constructor(e) {
3525
3543
  // numeric value as string
3526
3544
  // type information
@@ -3541,7 +3559,7 @@ class br {
3541
3559
  * and toSafeNumberOrThrow to convert it to a numeric value.
3542
3560
  */
3543
3561
  valueOf() {
3544
- const e = mr(this.value);
3562
+ const e = gr(this.value);
3545
3563
  if (e === void 0 || e === re.truncate_float)
3546
3564
  return Number.parseFloat(this.value);
3547
3565
  if (ie(this.value))
@@ -3558,19 +3576,19 @@ class br {
3558
3576
  // or use that, it cannot safely turn the numeric value in the string into
3559
3577
  // stringified JSON since it has to be parsed into a number first.
3560
3578
  }
3561
- function yr(n) {
3579
+ function _r(n) {
3562
3580
  return n && typeof n == "object" && n.isLosslessNumber || !1;
3563
3581
  }
3564
- function _r(n) {
3565
- return new br(n);
3582
+ function wr(n) {
3583
+ return new yr(n);
3566
3584
  }
3567
- function wr(n, e) {
3585
+ function Sr(n, e) {
3568
3586
  return Ke({
3569
3587
  "": n
3570
3588
  }, "", n, e);
3571
3589
  }
3572
3590
  function Ke(n, e, t, s) {
3573
- return Array.isArray(t) ? s.call(n, e, Sr(t, s)) : t && typeof t == "object" && !yr(t) ? s.call(n, e, Er(t, s)) : s.call(n, e, t);
3591
+ return Array.isArray(t) ? s.call(n, e, xr(t, s)) : t && typeof t == "object" && !_r(t) ? s.call(n, e, Er(t, s)) : s.call(n, e, t);
3574
3592
  }
3575
3593
  function Er(n, e) {
3576
3594
  for (const t of Object.keys(n)) {
@@ -3579,40 +3597,40 @@ function Er(n, e) {
3579
3597
  }
3580
3598
  return n;
3581
3599
  }
3582
- function Sr(n, e) {
3600
+ function xr(n, e) {
3583
3601
  for (let t = 0; t < n.length; t++)
3584
3602
  n[t] = Ke(n, String(t), n[t], e);
3585
3603
  return n;
3586
3604
  }
3587
- function xr(n, e, t) {
3605
+ function Ar(n, e, t) {
3588
3606
  const s = typeof t == "function" ? {
3589
3607
  parseNumber: t
3590
- } : t, r = (s == null ? void 0 : s.parseNumber) ?? _r, o = (s == null ? void 0 : s.onDuplicateKey) ?? T;
3608
+ } : t, r = (s == null ? void 0 : s.parseNumber) ?? wr, o = (s == null ? void 0 : s.onDuplicateKey) ?? T;
3591
3609
  let i = 0;
3592
3610
  const c = a();
3593
- return w(c), x(), e ? wr(c, e) : c;
3611
+ return w(c), x(), e ? Sr(c, e) : c;
3594
3612
  function d() {
3595
- if (n.charCodeAt(i) === kr) {
3613
+ if (n.charCodeAt(i) === Nr) {
3596
3614
  i++, g();
3597
3615
  const y = {};
3598
- let E = !0;
3599
- for (; i < n.length && n.charCodeAt(i) !== Et; ) {
3600
- E ? E = !1 : (p(), g());
3601
- const F = i, z = b();
3616
+ let S = !0;
3617
+ for (; i < n.length && n.charCodeAt(i) !== St; ) {
3618
+ S ? S = !1 : (p(), g());
3619
+ const $ = i, z = b();
3602
3620
  if (z === void 0) {
3603
- $();
3621
+ F();
3604
3622
  return;
3605
3623
  }
3606
3624
  g(), m();
3607
3625
  const L = a();
3608
3626
  if (L === void 0) {
3609
- v();
3627
+ j();
3610
3628
  return;
3611
3629
  }
3612
- if (Object.prototype.hasOwnProperty.call(y, z) && !Be(L, y[z])) {
3630
+ if (Object.prototype.hasOwnProperty.call(y, z) && !qe(L, y[z])) {
3613
3631
  const V = o({
3614
3632
  key: z,
3615
- position: F + 1,
3633
+ position: $ + 1,
3616
3634
  oldValue: y[z],
3617
3635
  newValue: L
3618
3636
  });
@@ -3620,20 +3638,20 @@ function xr(n, e, t) {
3620
3638
  } else
3621
3639
  y[z] = L;
3622
3640
  }
3623
- return n.charCodeAt(i) !== Et && J(), i++, y;
3641
+ return n.charCodeAt(i) !== St && J(), i++, y;
3624
3642
  }
3625
3643
  }
3626
3644
  function u() {
3627
- if (n.charCodeAt(i) === Nr) {
3645
+ if (n.charCodeAt(i) === Pr) {
3628
3646
  i++, g();
3629
3647
  const y = [];
3630
- let E = !0;
3631
- for (; i < n.length && n.charCodeAt(i) !== St; ) {
3632
- E ? E = !1 : p();
3633
- const F = a();
3634
- S(F), y.push(F);
3648
+ let S = !0;
3649
+ for (; i < n.length && n.charCodeAt(i) !== Et; ) {
3650
+ S ? S = !1 : p();
3651
+ const $ = a();
3652
+ E($), y.push($);
3635
3653
  }
3636
- return n.charCodeAt(i) !== St && j(), i++, y;
3654
+ return n.charCodeAt(i) !== Et && v(), i++, y;
3637
3655
  }
3638
3656
  }
3639
3657
  function a() {
@@ -3641,12 +3659,12 @@ function xr(n, e, t) {
3641
3659
  const y = b() ?? h() ?? d() ?? u() ?? f("true", !0) ?? f("false", !1) ?? f("null", null);
3642
3660
  return g(), y;
3643
3661
  }
3644
- function f(y, E) {
3662
+ function f(y, S) {
3645
3663
  if (n.slice(i, i + y.length) === y)
3646
- return i += y.length, E;
3664
+ return i += y.length, S;
3647
3665
  }
3648
3666
  function g() {
3649
- for (; Ar(n.charCodeAt(i)); )
3667
+ for (; Rr(n.charCodeAt(i)); )
3650
3668
  i++;
3651
3669
  }
3652
3670
  function b() {
@@ -3654,11 +3672,11 @@ function xr(n, e, t) {
3654
3672
  i++;
3655
3673
  let y = "";
3656
3674
  for (; i < n.length && n.charCodeAt(i) !== Le; ) {
3657
- if (n.charCodeAt(i) === Tr) {
3658
- const E = n[i + 1], F = Cr[E];
3659
- F !== void 0 ? (y += F, i++) : E === "u" ? ge(n.charCodeAt(i + 2)) && ge(n.charCodeAt(i + 3)) && ge(n.charCodeAt(i + 4)) && ge(n.charCodeAt(i + 5)) ? (y += String.fromCharCode(Number.parseInt(n.slice(i + 2, i + 6), 16)), i += 5) : U(i) : M(i);
3675
+ if (n.charCodeAt(i) === kr) {
3676
+ const S = n[i + 1], $ = Tr[S];
3677
+ $ !== void 0 ? (y += $, i++) : S === "u" ? ge(n.charCodeAt(i + 2)) && ge(n.charCodeAt(i + 3)) && ge(n.charCodeAt(i + 4)) && ge(n.charCodeAt(i + 5)) ? (y += String.fromCharCode(Number.parseInt(n.slice(i + 2, i + 6), 16)), i += 5) : U(i) : M(i);
3660
3678
  } else
3661
- Or(n.charCodeAt(i)) ? y += n[i] : Z(n[i]);
3679
+ Cr(n.charCodeAt(i)) ? y += n[i] : Z(n[i]);
3662
3680
  i++;
3663
3681
  }
3664
3682
  return C(), i++, y;
@@ -3668,25 +3686,25 @@ function xr(n, e, t) {
3668
3686
  const y = i;
3669
3687
  if (n.charCodeAt(i) === xt && (i++, O(y)), n.charCodeAt(i) === Xe)
3670
3688
  i++;
3671
- else if (Rr(n.charCodeAt(i)))
3689
+ else if (Or(n.charCodeAt(i)))
3672
3690
  for (i++; be(n.charCodeAt(i)); )
3673
3691
  i++;
3674
- if (n.charCodeAt(i) === Ur)
3692
+ if (n.charCodeAt(i) === Dr)
3675
3693
  for (i++, O(y); be(n.charCodeAt(i)); )
3676
3694
  i++;
3677
- if (n.charCodeAt(i) === Hr || n.charCodeAt(i) === Mr)
3678
- for (i++, (n.charCodeAt(i) === xt || n.charCodeAt(i) === $r) && i++, O(y); be(n.charCodeAt(i)); )
3695
+ if (n.charCodeAt(i) === zr || n.charCodeAt(i) === Hr)
3696
+ for (i++, (n.charCodeAt(i) === xt || n.charCodeAt(i) === vr) && i++, O(y); be(n.charCodeAt(i)); )
3679
3697
  i++;
3680
3698
  if (i > y)
3681
3699
  return r(n.slice(y, i));
3682
3700
  }
3683
3701
  function p() {
3684
- if (n.charCodeAt(i) !== vr)
3702
+ if (n.charCodeAt(i) !== Ur)
3685
3703
  throw new SyntaxError(`Comma ',' expected after value ${A()}`);
3686
3704
  i++;
3687
3705
  }
3688
3706
  function m() {
3689
- if (n.charCodeAt(i) !== Dr)
3707
+ if (n.charCodeAt(i) !== qr)
3690
3708
  throw new SyntaxError(`Colon ':' expected after property name ${A()}`);
3691
3709
  i++;
3692
3710
  }
@@ -3694,7 +3712,7 @@ function xr(n, e, t) {
3694
3712
  if (y === void 0)
3695
3713
  throw new SyntaxError(`JSON value expected ${A()}`);
3696
3714
  }
3697
- function S(y) {
3715
+ function E(y) {
3698
3716
  if (y === void 0)
3699
3717
  throw new SyntaxError(`Array item expected ${A()}`);
3700
3718
  }
@@ -3704,43 +3722,43 @@ function xr(n, e, t) {
3704
3722
  }
3705
3723
  function O(y) {
3706
3724
  if (!be(n.charCodeAt(i))) {
3707
- const E = n.slice(y, i);
3708
- throw new SyntaxError(`Invalid number '${E}', expecting a digit ${A()}`);
3725
+ const S = n.slice(y, i);
3726
+ throw new SyntaxError(`Invalid number '${S}', expecting a digit ${A()}`);
3709
3727
  }
3710
3728
  }
3711
3729
  function C() {
3712
3730
  if (n.charCodeAt(i) !== Le)
3713
3731
  throw new SyntaxError(`End of string '"' expected ${A()}`);
3714
3732
  }
3715
- function $() {
3733
+ function F() {
3716
3734
  throw new SyntaxError(`Quoted object key expected ${A()}`);
3717
3735
  }
3718
3736
  function T(y) {
3719
3737
  let {
3720
- key: E,
3721
- position: F
3738
+ key: S,
3739
+ position: $
3722
3740
  } = y;
3723
- throw new SyntaxError(`Duplicate key '${E}' encountered at position ${F}`);
3741
+ throw new SyntaxError(`Duplicate key '${S}' encountered at position ${$}`);
3724
3742
  }
3725
3743
  function J() {
3726
3744
  throw new SyntaxError(`Quoted object key or end of object '}' expected ${A()}`);
3727
3745
  }
3728
- function j() {
3746
+ function v() {
3729
3747
  throw new SyntaxError(`Array item or end of array ']' expected ${A()}`);
3730
3748
  }
3731
3749
  function Z(y) {
3732
3750
  throw new SyntaxError(`Invalid character '${y}' ${I()}`);
3733
3751
  }
3734
3752
  function M(y) {
3735
- const E = n.slice(y, y + 2);
3736
- throw new SyntaxError(`Invalid escape character '${E}' ${I()}`);
3753
+ const S = n.slice(y, y + 2);
3754
+ throw new SyntaxError(`Invalid escape character '${S}' ${I()}`);
3737
3755
  }
3738
- function v() {
3756
+ function j() {
3739
3757
  throw new SyntaxError(`Object value expected after ':' ${I()}`);
3740
3758
  }
3741
3759
  function U(y) {
3742
- const E = n.slice(y, y + 6);
3743
- throw new SyntaxError(`Invalid unicode character '${E}' ${I()}`);
3760
+ const S = n.slice(y, y + 6);
3761
+ throw new SyntaxError(`Invalid unicode character '${S}' ${I()}`);
3744
3762
  }
3745
3763
  function I() {
3746
3764
  return `at position ${i}`;
@@ -3752,28 +3770,28 @@ function xr(n, e, t) {
3752
3770
  return `${de()} ${I()}`;
3753
3771
  }
3754
3772
  }
3755
- function Ar(n) {
3756
- return n === Pr || n === Ir || n === Lr || n === Fr;
3773
+ function Rr(n) {
3774
+ return n === Ir || n === Lr || n === $r || n === Fr;
3757
3775
  }
3758
3776
  function ge(n) {
3759
- return n >= Xe && n <= Ge || n >= qr && n <= zr || n >= Br && n <= Vr;
3777
+ return n >= Xe && n <= Ge || n >= Br && n <= Vr || n >= Mr && n <= Jr;
3760
3778
  }
3761
3779
  function be(n) {
3762
3780
  return n >= Xe && n <= Ge;
3763
3781
  }
3764
- function Rr(n) {
3782
+ function Or(n) {
3765
3783
  return n >= jr && n <= Ge;
3766
3784
  }
3767
- function Or(n) {
3785
+ function Cr(n) {
3768
3786
  return n >= 32 && n <= 1114111;
3769
3787
  }
3770
- function Be(n, e) {
3771
- return n === e ? !0 : Array.isArray(n) && Array.isArray(e) ? n.length === e.length && n.every((t, s) => Be(t, e[s])) : wt(n) && wt(e) ? [.../* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])].every((s) => Be(n[s], e[s])) : !1;
3788
+ function qe(n, e) {
3789
+ return n === e ? !0 : Array.isArray(n) && Array.isArray(e) ? n.length === e.length && n.every((t, s) => qe(t, e[s])) : wt(n) && wt(e) ? [.../* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])].every((s) => qe(n[s], e[s])) : !1;
3772
3790
  }
3773
3791
  function wt(n) {
3774
3792
  return typeof n == "object" && n !== null;
3775
3793
  }
3776
- const Cr = {
3794
+ const Tr = {
3777
3795
  '"': '"',
3778
3796
  "\\": "\\",
3779
3797
  "/": "/",
@@ -3784,7 +3802,7 @@ const Cr = {
3784
3802
  r: "\r",
3785
3803
  t: " "
3786
3804
  // note that \u is handled separately in parseString()
3787
- }, Tr = 92, kr = 123, Et = 125, Nr = 91, St = 93, Pr = 32, Ir = 10, Lr = 9, Fr = 13, Le = 34, $r = 43, xt = 45, Xe = 48, jr = 49, Ge = 57, vr = 44, Ur = 46, Dr = 58, qr = 65, Br = 97, Mr = 69, Hr = 101, zr = 70, Vr = 102;
3805
+ }, kr = 92, Nr = 123, St = 125, Pr = 91, Et = 93, Ir = 32, Lr = 10, $r = 9, Fr = 13, Le = 34, vr = 43, xt = 45, Xe = 48, jr = 49, Ge = 57, Ur = 44, Dr = 46, qr = 58, Br = 65, Mr = 97, Hr = 69, zr = 101, Vr = 70, Jr = 102;
3788
3806
  function sn(n, e, t, s) {
3789
3807
  const r = void 0;
3790
3808
  return i(n, "");
@@ -3835,8 +3853,8 @@ ${f}]` : "]", b;
3835
3853
  if (u(m, w)) {
3836
3854
  h ? h = !1 : p += r ? `,
3837
3855
  ` : ",";
3838
- const S = JSON.stringify(m);
3839
- p += r ? `${b + S}: ` : `${S}:`, p += i(w, b);
3856
+ const E = JSON.stringify(m);
3857
+ p += r ? `${b + E}: ` : `${E}:`, p += i(w, b);
3840
3858
  }
3841
3859
  }
3842
3860
  return p += r ? `
@@ -3846,10 +3864,10 @@ ${f}}` : "}", p;
3846
3864
  return typeof f < "u" && typeof f != "function" && typeof f != "symbol";
3847
3865
  }
3848
3866
  }
3849
- function Jr(n) {
3867
+ function Wr(n) {
3850
3868
  return ie(n) && !nn(n) ? BigInt(n) : parseFloat(n);
3851
3869
  }
3852
- class bi {
3870
+ class yi {
3853
3871
  constructor() {
3854
3872
  D(this, "id", 1);
3855
3873
  }
@@ -3883,7 +3901,7 @@ class bi {
3883
3901
  (c, d) => sn(c)
3884
3902
  ],
3885
3903
  transformResponse: [
3886
- (c) => xr(c, void 0, Jr)
3904
+ (c) => Ar(c, void 0, Wr)
3887
3905
  ]
3888
3906
  }
3889
3907
  )).data.result;
@@ -4111,9 +4129,9 @@ class bi {
4111
4129
  // 10s timeout ... should never be this long
4112
4130
  );
4113
4131
  if (c && c.length > 0) {
4114
- let d = c[0].length, u = null;
4132
+ let d = c.length, u = null;
4115
4133
  for (let a = 0; a < d; a++)
4116
- u = this.decode_openc3_type(c[0][a]), u !== null && (c[0][a] = u);
4134
+ u = this.decode_openc3_type(c[a][0]), u !== null && (c[a][0] = u);
4117
4135
  }
4118
4136
  return c;
4119
4137
  }
@@ -4416,11 +4434,11 @@ class bi {
4416
4434
  }
4417
4435
  }
4418
4436
  export {
4419
- di as Api,
4420
- mi as Cable,
4437
+ fi as Api,
4438
+ gi as Cable,
4421
4439
  yt as ConfigParserError,
4422
- gi as ConfigParserService,
4423
- bi as OpenC3Api,
4440
+ bi as ConfigParserService,
4441
+ yi as OpenC3Api,
4424
4442
  Ve as axios
4425
4443
  };
4426
4444
  //# sourceMappingURL=services.js.map