@aikaara/chat-sdk 1.4.6 → 1.4.7
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/{AikaaraLinkButton--t5yyst9.mjs → AikaaraLinkButton-BRR8kKL8.mjs} +1 -1
- package/dist/{AikaaraLinkButton-DtbxlRUu.cjs → AikaaraLinkButton-DoINI2KX.cjs} +1 -1
- package/dist/AikaaraPaymentLink-C-GhGZ4c.cjs +1 -0
- package/dist/{AikaaraPaymentLink-BuQX9XAE.mjs → AikaaraPaymentLink-C82ApGKH.mjs} +45 -45
- package/dist/{MountTenant-xtZIgPSM.mjs → MountTenant-DOYMoJu4.mjs} +83 -82
- package/dist/{MountTenant-DUSZye2K.cjs → MountTenant-LbcBXsS9.cjs} +10 -10
- package/dist/cdn/aikaara-chat.iife.js +1495 -0
- package/dist/headless.cjs +1 -1
- package/dist/headless.d.ts +2 -0
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
- package/dist/AikaaraPaymentLink-BlxQSATl.cjs +0 -1
|
@@ -545,27 +545,27 @@ class Gl {
|
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
var to = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Yl = Object.getOwnPropertyNames, Ql = Object.prototype.hasOwnProperty, Ve = (a, e) => () => (a && (e = a(a = 0)), e), pe = (a, e) => () => (e || a((e = { exports: {} }).exports, e), e.exports),
|
|
548
|
+
var to = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Yl = Object.getOwnPropertyNames, Ql = Object.prototype.hasOwnProperty, Ve = (a, e) => () => (a && (e = a(a = 0)), e), pe = (a, e) => () => (e || a((e = { exports: {} }).exports, e), e.exports), Ft = (a, e) => {
|
|
549
549
|
for (var t in e) to(a, t, { get: e[t], enumerable: !0 });
|
|
550
550
|
}, Jl = (a, e, t, r) => {
|
|
551
551
|
if (e && typeof e == "object" || typeof e == "function") for (let o of Yl(e)) !Ql.call(a, o) && o !== t && to(a, o, { get: () => e[o], enumerable: !(r = Kl(e, o)) || r.enumerable });
|
|
552
552
|
return a;
|
|
553
553
|
}, Pe = (a) => Jl(to({}, "__esModule", { value: !0 }), a), le = Ve(() => {
|
|
554
554
|
}), Re = {};
|
|
555
|
-
|
|
555
|
+
Ft(Re, { _debugEnd: () => Ln, _debugProcess: () => Rn, _events: () => Yn, _eventsCount: () => Qn, _exiting: () => vn, _fatalExceptions: () => On, _getActiveHandles: () => Ys, _getActiveRequests: () => Ks, _kill: () => kn, _linkedBinding: () => Vs, _maxListeners: () => Kn, _preload_modules: () => Vn, _rawDebug: () => gn, _startProfilerIdleNotifier: () => jn, _stopProfilerIdleNotifier: () => Nn, _tickCallback: () => Mn, abort: () => Fn, addListener: () => Jn, allowedNodeEnvironmentFlags: () => Tn, arch: () => tn, argv: () => on, argv0: () => zn, assert: () => Qs, binding: () => un, browser: () => mn, chdir: () => fn, config: () => wn, cpuUsage: () => Kt, cwd: () => dn, debugPort: () => Wn, default: () => no, dlopen: () => Gs, domain: () => yn, emit: () => ri, emitWarning: () => cn, env: () => nn, execArgv: () => sn, execPath: () => Hn, exit: () => An, features: () => Cn, hasUncaughtExceptionCaptureCallback: () => Js, hrtime: () => ur, kill: () => En, listeners: () => Zs, memoryUsage: () => Sn, moduleLoadList: () => bn, nextTick: () => Ws, off: () => Zn, on: () => st, once: () => Xn, openStdin: () => In, pid: () => $n, platform: () => rn, ppid: () => qn, prependListener: () => ni, prependOnceListener: () => ii, reallyExit: () => _n, release: () => pn, removeAllListeners: () => ti, removeListener: () => ei, resourceUsage: () => xn, setSourceMapsEnabled: () => Gn, setUncaughtExceptionCaptureCallback: () => Pn, stderr: () => Bn, stdin: () => Dn, stdout: () => Un, title: () => en, umask: () => hn, uptime: () => Xs, version: () => an, versions: () => ln });
|
|
556
556
|
function ro(a) {
|
|
557
557
|
throw new Error("Node.js process " + a + " is not supported by JSPM core outside of Node.js");
|
|
558
558
|
}
|
|
559
559
|
function Xl() {
|
|
560
|
-
!It || !Et || (It = !1, Et.length ? nt = Et.concat(nt) :
|
|
560
|
+
!It || !Et || (It = !1, Et.length ? nt = Et.concat(nt) : Xt = -1, nt.length && Hs());
|
|
561
561
|
}
|
|
562
562
|
function Hs() {
|
|
563
563
|
if (!It) {
|
|
564
564
|
var a = setTimeout(Xl, 0);
|
|
565
565
|
It = !0;
|
|
566
566
|
for (var e = nt.length; e; ) {
|
|
567
|
-
for (Et = nt, nt = []; ++
|
|
568
|
-
|
|
567
|
+
for (Et = nt, nt = []; ++Xt < e; ) Et && Et[Xt].run();
|
|
568
|
+
Xt = -1, e = nt.length;
|
|
569
569
|
}
|
|
570
570
|
Et = null, It = !1, clearTimeout(a);
|
|
571
571
|
}
|
|
@@ -611,8 +611,8 @@ function st() {
|
|
|
611
611
|
function Zs(a) {
|
|
612
612
|
return [];
|
|
613
613
|
}
|
|
614
|
-
var nt, It, Et,
|
|
615
|
-
le(), ue(), ce(), nt = [], It = !1,
|
|
614
|
+
var nt, It, Et, Xt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, Kt, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Rn, Ln, jn, Nn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Gn, lt, Vr, hr, Kn, Yn, Qn, Jn, Xn, Zn, ei, ti, ri, ni, ii, no, Zl = Ve(() => {
|
|
615
|
+
le(), ue(), ce(), nt = [], It = !1, Xt = -1, zs.prototype.run = function() {
|
|
616
616
|
this.fun.apply(null, this.array);
|
|
617
617
|
}, en = "browser", tn = "x64", rn = "browser", nn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, on = ["/usr/bin/node"], sn = [], an = "v16.8.0", ln = {}, cn = function(a, e) {
|
|
618
618
|
console.warn((e ? e + ": " : "") + a);
|
|
@@ -623,12 +623,12 @@ var nt, It, Et, Jt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn,
|
|
|
623
623
|
}, dn = function() {
|
|
624
624
|
return "/";
|
|
625
625
|
}, fn = function(a) {
|
|
626
|
-
}, pn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, mn = !0, gn = Fe, bn = [], yn = {}, vn = !1, wn = {}, _n = Fe, kn = Fe,
|
|
626
|
+
}, pn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, mn = !0, gn = Fe, bn = [], yn = {}, vn = !1, wn = {}, _n = Fe, kn = Fe, Kt = function() {
|
|
627
627
|
return {};
|
|
628
|
-
}, xn =
|
|
628
|
+
}, xn = Kt, Sn = Kt, En = Fe, An = Fe, In = Fe, Tn = {}, Cn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, On = Fe, Pn = Fe, Mn = Fe, Rn = Fe, Ln = Fe, jn = Fe, Nn = Fe, Un = void 0, Bn = void 0, Dn = void 0, Fn = Fe, $n = 2, qn = 1, Hn = "/bin/usr/node", Wn = 9229, zn = "node", Vn = [], Gn = Fe, lt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, lt.now === void 0 && (Vr = Date.now(), lt.timing && lt.timing.navigationStart && (Vr = lt.timing.navigationStart), lt.now = () => Date.now() - Vr), hr = 1e9, ur.bigint = function(a) {
|
|
629
629
|
var e = ur(a);
|
|
630
630
|
return typeof BigInt > "u" ? e[0] * hr + e[1] : BigInt(e[0] * hr) + BigInt(e[1]);
|
|
631
|
-
}, Kn = 10, Yn = {}, Qn = 0, Jn = st, Xn = st, Zn = st, ei = st, ti = st, ri = Fe, ni = st, ii = st, no = { version: an, versions: ln, arch: tn, platform: rn, browser: mn, release: pn, _rawDebug: gn, moduleLoadList: bn, binding: un, _linkedBinding: Vs, _events: Yn, _eventsCount: Qn, _maxListeners: Kn, on: st, addListener: Jn, once: Xn, off: Zn, removeListener: ei, removeAllListeners: ti, emit: ri, prependListener: ni, prependOnceListener: ii, listeners: Zs, domain: yn, _exiting: vn, config: wn, dlopen: Gs, uptime: Xs, _getActiveRequests: Ks, _getActiveHandles: Ys, reallyExit: _n, _kill: kn, cpuUsage:
|
|
631
|
+
}, Kn = 10, Yn = {}, Qn = 0, Jn = st, Xn = st, Zn = st, ei = st, ti = st, ri = Fe, ni = st, ii = st, no = { version: an, versions: ln, arch: tn, platform: rn, browser: mn, release: pn, _rawDebug: gn, moduleLoadList: bn, binding: un, _linkedBinding: Vs, _events: Yn, _eventsCount: Qn, _maxListeners: Kn, on: st, addListener: Jn, once: Xn, off: Zn, removeListener: ei, removeAllListeners: ti, emit: ri, prependListener: ni, prependOnceListener: ii, listeners: Zs, domain: yn, _exiting: vn, config: wn, dlopen: Gs, uptime: Xs, _getActiveRequests: Ks, _getActiveHandles: Ys, reallyExit: _n, _kill: kn, cpuUsage: Kt, resourceUsage: xn, memoryUsage: Sn, kill: En, exit: An, openStdin: In, allowedNodeEnvironmentFlags: Tn, assert: Qs, features: Cn, _fatalExceptions: On, setUncaughtExceptionCaptureCallback: Pn, hasUncaughtExceptionCaptureCallback: Js, emitWarning: cn, nextTick: Ws, _tickCallback: Mn, _debugProcess: Rn, _debugEnd: Ln, _startProfilerIdleNotifier: jn, _stopProfilerIdleNotifier: Nn, stdout: Un, stdin: Dn, stderr: Bn, abort: Fn, umask: hn, chdir: fn, cwd: dn, env: nn, title: en, argv: on, execArgv: sn, pid: $n, ppid: qn, execPath: Hn, debugPort: Wn, hrtime: ur, argv0: zn, _preload_modules: Vn, setSourceMapsEnabled: Gn };
|
|
632
632
|
}), ce = Ve(() => {
|
|
633
633
|
Zl();
|
|
634
634
|
});
|
|
@@ -671,7 +671,7 @@ function ec() {
|
|
|
671
671
|
return Lt;
|
|
672
672
|
}
|
|
673
673
|
function tc() {
|
|
674
|
-
return si ?
|
|
674
|
+
return si ? Yt : (si = !0, Yt.read = function(a, e, t, r, o) {
|
|
675
675
|
var n, i, s = o * 8 - r - 1, l = (1 << s) - 1, c = l >> 1, u = -7, h = t ? o - 1 : 0, p = t ? -1 : 1, b = a[e + h];
|
|
676
676
|
for (h += p, n = b & (1 << -u) - 1, b >>= -u, u += s; u > 0; n = n * 256 + a[e + h], h += p, u -= 8) ;
|
|
677
677
|
for (i = n & (1 << -u) - 1, n >>= -u, u += r; u > 0; i = i * 256 + a[e + h], h += p, u -= 8) ;
|
|
@@ -681,12 +681,12 @@ function tc() {
|
|
|
681
681
|
i = i + Math.pow(2, r), n = n - c;
|
|
682
682
|
}
|
|
683
683
|
return (b ? -1 : 1) * i * Math.pow(2, n - r);
|
|
684
|
-
},
|
|
684
|
+
}, Yt.write = function(a, e, t, r, o, n) {
|
|
685
685
|
var i, s, l, c = n * 8 - o - 1, u = (1 << c) - 1, h = u >> 1, p = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = r ? 0 : n - 1, f = r ? 1 : -1, g = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
686
686
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, i = u) : (i = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -i)) < 1 && (i--, l *= 2), i + h >= 1 ? e += p / l : e += p * Math.pow(2, 1 - h), e * l >= 2 && (i++, l /= 2), i + h >= u ? (s = 0, i = u) : i + h >= 1 ? (s = (e * l - 1) * Math.pow(2, o), i = i + h) : (s = e * Math.pow(2, h - 1) * Math.pow(2, o), i = 0)); o >= 8; a[t + b] = s & 255, b += f, s /= 256, o -= 8) ;
|
|
687
687
|
for (i = i << o | s, c += o; c > 0; a[t + b] = i & 255, b += f, i /= 256, c -= 8) ;
|
|
688
688
|
a[t + b - f] |= g * 128;
|
|
689
|
-
},
|
|
689
|
+
}, Yt);
|
|
690
690
|
}
|
|
691
691
|
function rc() {
|
|
692
692
|
if (ai) return bt;
|
|
@@ -1446,10 +1446,10 @@ function rc() {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
return bt;
|
|
1448
1448
|
}
|
|
1449
|
-
var Lt, oi,
|
|
1450
|
-
le(), ue(), ce(), Lt = {}, oi = !1,
|
|
1449
|
+
var Lt, oi, Yt, si, bt, ai, nc = Ve(() => {
|
|
1450
|
+
le(), ue(), ce(), Lt = {}, oi = !1, Yt = {}, si = !1, bt = {}, ai = !1;
|
|
1451
1451
|
}), Ue = {};
|
|
1452
|
-
|
|
1452
|
+
Ft(Ue, { Buffer: () => Nr, INSPECT_MAX_BYTES: () => ea, default: () => at, kMaxLength: () => ta });
|
|
1453
1453
|
var at, Nr, ea, ta, Be = Ve(() => {
|
|
1454
1454
|
le(), ue(), ce(), nc(), at = rc(), at.Buffer, at.SlowBuffer, at.INSPECT_MAX_BYTES, at.kMaxLength, Nr = at.Buffer, ea = at.INSPECT_MAX_BYTES, ta = at.kMaxLength;
|
|
1455
1455
|
}), ue = Ve(() => {
|
|
@@ -1697,9 +1697,9 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1697
1697
|
var { AbortController: t, AbortSignal: r } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
|
|
1698
1698
|
e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
|
|
1699
1699
|
}), wt = {};
|
|
1700
|
-
|
|
1700
|
+
Ft(wt, { EventEmitter: () => na, default: () => jt, defaultMaxListeners: () => ia, init: () => oa, listenerCount: () => sa, on: () => aa, once: () => la });
|
|
1701
1701
|
function ic() {
|
|
1702
|
-
if (li) return
|
|
1702
|
+
if (li) return Qt;
|
|
1703
1703
|
li = !0;
|
|
1704
1704
|
var a = typeof Reflect == "object" ? Reflect : null, e = a && typeof a.apply == "function" ? a.apply : function(x, v, E) {
|
|
1705
1705
|
return Function.prototype.apply.call(x, v, E);
|
|
@@ -1718,7 +1718,7 @@ function ic() {
|
|
|
1718
1718
|
function n() {
|
|
1719
1719
|
n.init.call(this);
|
|
1720
1720
|
}
|
|
1721
|
-
|
|
1721
|
+
Qt = n, Qt.once = w, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._eventsCount = 0, n.prototype._maxListeners = void 0;
|
|
1722
1722
|
var i = 10;
|
|
1723
1723
|
function s(x) {
|
|
1724
1724
|
if (typeof x != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof x);
|
|
@@ -1867,10 +1867,10 @@ function ic() {
|
|
|
1867
1867
|
});
|
|
1868
1868
|
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof x);
|
|
1869
1869
|
}
|
|
1870
|
-
return
|
|
1870
|
+
return Qt;
|
|
1871
1871
|
}
|
|
1872
|
-
var
|
|
1873
|
-
le(), ue(), ce(),
|
|
1872
|
+
var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
1873
|
+
le(), ue(), ce(), Qt = {}, li = !1, jt = ic(), jt.once, jt.once = function(a, e) {
|
|
1874
1874
|
return new Promise((t, r) => {
|
|
1875
1875
|
function o(...i) {
|
|
1876
1876
|
n !== void 0 && a.removeListener("error", n), t(i);
|
|
@@ -2360,7 +2360,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2360
2360
|
});
|
|
2361
2361
|
}
|
|
2362
2362
|
e.exports = Y, e.exports.finished = re;
|
|
2363
|
-
}),
|
|
2363
|
+
}), $t = pe((a, e) => {
|
|
2364
2364
|
le(), ue(), ce();
|
|
2365
2365
|
var t = Ot(), { aggregateTwoErrors: r, codes: { ERR_MULTIPLE_CALLBACK: o }, AbortError: n } = We(), { Symbol: i } = je(), { kIsDestroyed: s, isDestroyed: l, isFinished: c, isServerRequest: u } = dt(), h = i("kDestroy"), p = i("kConstruct");
|
|
2366
2366
|
function b(T, q, D) {
|
|
@@ -2834,7 +2834,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2834
2834
|
e.exports = se, se.ReadableState = ve;
|
|
2835
2835
|
var { EventEmitter: g } = (Ct(), Pe(wt)), { Stream: y, prependListener: w } = io(), { Buffer: m } = (Be(), Pe(Ue)), { addAbortSignal: _ } = Dr(), x = _t(), v = ze().debuglog("stream", (C) => {
|
|
2836
2836
|
v = C;
|
|
2837
|
-
}), E = oc(), S =
|
|
2837
|
+
}), E = oc(), S = $t(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Fr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: N, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = We(), { validateObject: Y } = tr(), V = f("kPaused"), { StringDecoder: re } = ac(), F = ca();
|
|
2838
2838
|
c(se.prototype, y.prototype), c(se, y);
|
|
2839
2839
|
var Z = () => {
|
|
2840
2840
|
}, { errorOrDestroy: M } = S, J = 1, be = 2, te = 4, we = 8, G = 16, j = 32, ne = 64, W = 128, K = 256, Q = 512, ge = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
@@ -2961,23 +2961,23 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2961
2961
|
let Se = (!L || L.end !== !1) && C !== t.stdout && C !== t.stderr ? He : xt;
|
|
2962
2962
|
xe.endEmitted ? t.nextTick(Se) : _e.once("end", Se), C.on("unpipe", Ne);
|
|
2963
2963
|
function Ne(rt, ot) {
|
|
2964
|
-
v("onunpipe"), rt === _e && ot && ot.hasUnpiped === !1 && (ot.hasUnpiped = !0,
|
|
2964
|
+
v("onunpipe"), rt === _e && ot && ot.hasUnpiped === !1 && (ot.hasUnpiped = !0, Vt());
|
|
2965
2965
|
}
|
|
2966
2966
|
function He() {
|
|
2967
2967
|
v("onend"), C.end();
|
|
2968
2968
|
}
|
|
2969
|
-
let Qe,
|
|
2970
|
-
function zt() {
|
|
2971
|
-
v("cleanup"), C.removeListener("close", tt), C.removeListener("finish", mt), Qe && C.removeListener("drain", Qe), C.removeListener("error", kt), C.removeListener("unpipe", Ne), _e.removeListener("end", He), _e.removeListener("end", xt), _e.removeListener("data", ir), Wt = !0, Qe && xe.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Qe();
|
|
2972
|
-
}
|
|
2969
|
+
let Qe, zt = !1;
|
|
2973
2970
|
function Vt() {
|
|
2974
|
-
|
|
2971
|
+
v("cleanup"), C.removeListener("close", tt), C.removeListener("finish", mt), Qe && C.removeListener("drain", Qe), C.removeListener("error", kt), C.removeListener("unpipe", Ne), _e.removeListener("end", He), _e.removeListener("end", xt), _e.removeListener("data", ir), zt = !0, Qe && xe.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Qe();
|
|
2972
|
+
}
|
|
2973
|
+
function Gt() {
|
|
2974
|
+
zt || (xe.pipes.length === 1 && xe.pipes[0] === C ? (v("false write response, pause", 0), xe.awaitDrainWriters = C, xe.multiAwaitDrain = !1) : xe.pipes.length > 1 && xe.pipes.includes(C) && (v("false write response, pause", xe.awaitDrainWriters.size), xe.awaitDrainWriters.add(C)), _e.pause()), Qe || (Qe = Ee(_e, C), C.on("drain", Qe));
|
|
2975
2975
|
}
|
|
2976
2976
|
_e.on("data", ir);
|
|
2977
2977
|
function ir(rt) {
|
|
2978
2978
|
v("ondata");
|
|
2979
2979
|
let ot = C.write(rt);
|
|
2980
|
-
v("dest.write", ot), ot === !1 &&
|
|
2980
|
+
v("dest.write", ot), ot === !1 && Gt();
|
|
2981
2981
|
}
|
|
2982
2982
|
function kt(rt) {
|
|
2983
2983
|
if (v("onerror", rt), xt(), C.removeListener("error", kt), C.listenerCount("error") === 0) {
|
|
@@ -2997,7 +2997,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2997
2997
|
function xt() {
|
|
2998
2998
|
v("unpipe"), _e.unpipe(C);
|
|
2999
2999
|
}
|
|
3000
|
-
return C.emit("pipe", _e), C.writableNeedDrain === !0 ?
|
|
3000
|
+
return C.emit("pipe", _e), C.writableNeedDrain === !0 ? Gt() : xe.flowing || (v("pipe resume"), _e.resume()), C;
|
|
3001
3001
|
};
|
|
3002
3002
|
function Ee(C, L) {
|
|
3003
3003
|
return function() {
|
|
@@ -3171,13 +3171,13 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3171
3171
|
return F(se, C, L);
|
|
3172
3172
|
};
|
|
3173
3173
|
var Rt;
|
|
3174
|
-
function
|
|
3174
|
+
function Wt() {
|
|
3175
3175
|
return Rt === void 0 && (Rt = {}), Rt;
|
|
3176
3176
|
}
|
|
3177
3177
|
se.fromWeb = function(C, L) {
|
|
3178
|
-
return
|
|
3178
|
+
return Wt().newStreamReadableFromReadableStream(C, L);
|
|
3179
3179
|
}, se.toWeb = function(C, L) {
|
|
3180
|
-
return
|
|
3180
|
+
return Wt().newReadableStreamFromStreamReadable(C, L);
|
|
3181
3181
|
}, se.wrap = function(C, L) {
|
|
3182
3182
|
var _e, xe;
|
|
3183
3183
|
return new se({ objectMode: (_e = (xe = C.readableObjectMode) !== null && xe !== void 0 ? xe : C.objectMode) !== null && _e !== void 0 ? _e : !0, ...L, destroy(Se, Ne) {
|
|
@@ -3188,7 +3188,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3188
3188
|
le(), ue(), ce();
|
|
3189
3189
|
var t = Ot(), { ArrayPrototypeSlice: r, Error: o, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: i, ObjectDefineProperties: s, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: h } = je();
|
|
3190
3190
|
e.exports = Y, Y.WritableState = U;
|
|
3191
|
-
var { EventEmitter: p } = (Ct(), Pe(wt)), b = io().Stream, { Buffer: f } = (Be(), Pe(Ue)), g =
|
|
3191
|
+
var { EventEmitter: p } = (Ct(), Pe(wt)), b = io().Stream, { Buffer: f } = (Be(), Pe(Ue)), g = $t(), { addAbortSignal: y } = Dr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Fr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: N } = We().codes, { errorOrDestroy: T } = g;
|
|
3192
3192
|
l(Y.prototype, b.prototype), l(Y, b);
|
|
3193
3193
|
function q() {
|
|
3194
3194
|
}
|
|
@@ -3416,7 +3416,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3416
3416
|
};
|
|
3417
3417
|
}), lc = pe((a, e) => {
|
|
3418
3418
|
le(), ue(), ce();
|
|
3419
|
-
var t = Ot(), r = (Be(), Pe(Ue)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: s, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = dt(), b = _t(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: w } =
|
|
3419
|
+
var t = Ot(), r = (Be(), Pe(Ue)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: s, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = dt(), b = _t(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: w } = $t(), m = ut(), _ = $r(), x = oo(), { createDeferredPromise: v } = ze(), E = ca(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3420
3420
|
return D instanceof S;
|
|
3421
3421
|
} : function(D) {
|
|
3422
3422
|
return !1;
|
|
@@ -3629,7 +3629,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3629
3629
|
};
|
|
3630
3630
|
}), so = pe((a, e) => {
|
|
3631
3631
|
le(), ue(), ce();
|
|
3632
|
-
var t = Ot(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = je(), s = _t(), { once: l } = ze(), c =
|
|
3632
|
+
var t = Ot(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = je(), s = _t(), { once: l } = ze(), c = $t(), u = ut(), { aggregateTwoErrors: h, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: g, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = We(), { validateFunction: m, validateAbortSignal: _ } = tr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: N } = dt(), T = globalThis.AbortController || er().AbortController, q, D, U;
|
|
3633
3633
|
function ae(te, we, G) {
|
|
3634
3634
|
let j = !1;
|
|
3635
3635
|
te.on("close", () => {
|
|
@@ -3797,7 +3797,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3797
3797
|
e.exports = { pipelineImpl: J, pipeline: M };
|
|
3798
3798
|
}), da = pe((a, e) => {
|
|
3799
3799
|
le(), ue(), ce();
|
|
3800
|
-
var { pipeline: t } = so(), r = ut(), { destroyer: o } =
|
|
3800
|
+
var { pipeline: t } = so(), r = ut(), { destroyer: o } = $t(), { isNodeStream: n, isReadable: i, isWritable: s, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = dt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: b, ERR_MISSING_ARGS: f } } = We(), g = _t();
|
|
3801
3801
|
e.exports = function(...y) {
|
|
3802
3802
|
if (y.length === 0) throw new f("streams");
|
|
3803
3803
|
if (y.length === 1) return r.from(y[0]);
|
|
@@ -4088,7 +4088,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4088
4088
|
e.exports = { finished: l, pipeline: c };
|
|
4089
4089
|
}), pa = pe((a, e) => {
|
|
4090
4090
|
le(), ue(), ce();
|
|
4091
|
-
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } = cc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = We(), u = da(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Fr(), { pipeline: b } = so(), { destroyer: f } =
|
|
4091
|
+
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } = cc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = We(), u = da(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Fr(), { pipeline: b } = so(), { destroyer: f } = $t(), g = _t(), y = fa(), w = dt(), m = e.exports = io().Stream;
|
|
4092
4092
|
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = $r();
|
|
4093
4093
|
for (let x of o(s)) {
|
|
4094
4094
|
let v = function(...S) {
|
|
@@ -5542,7 +5542,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5542
5542
|
a.default = t;
|
|
5543
5543
|
}), Sc = pe((a, e) => {
|
|
5544
5544
|
e.exports = { version: "5.15.0" };
|
|
5545
|
-
}),
|
|
5545
|
+
}), qt = pe((a) => {
|
|
5546
5546
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.MQTTJS_VERSION = a.nextTick = a.ErrorWithSubackPacket = a.ErrorWithReasonCode = void 0, a.applyMixin = r;
|
|
5547
5547
|
var e = class va extends Error {
|
|
5548
5548
|
code;
|
|
@@ -5572,7 +5572,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5572
5572
|
}, a.MQTTJS_VERSION = Sc().version;
|
|
5573
5573
|
}), qr = pe((a) => {
|
|
5574
5574
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.ReasonCodes = void 0;
|
|
5575
|
-
var e =
|
|
5575
|
+
var e = qt();
|
|
5576
5576
|
a.ReasonCodes = { 0: "", 1: "Unacceptable protocol version", 2: "Identifier rejected", 3: "Server unavailable", 4: "Bad username or password", 5: "Not authorized", 16: "No matching subscribers", 17: "No subscription existed", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 132: "Unsupported Protocol Version", 133: "Client Identifier not valid", 134: "Bad User Name or Password", 135: "Not authorized", 136: "Server unavailable", 137: "Server busy", 138: "Banned", 139: "Server shutting down", 140: "Bad authentication method", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 145: "Packet identifier in use", 146: "Packet Identifier not found", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" };
|
|
5577
5577
|
var t = (r, o) => {
|
|
5578
5578
|
let { messageId: n } = o, i = o.cmd, s = null, l = r.outgoing[n] ? r.outgoing[n].cb : null, c = null;
|
|
@@ -5625,7 +5625,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5625
5625
|
a.default = t;
|
|
5626
5626
|
}), Ec = pe((a) => {
|
|
5627
5627
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
5628
|
-
var e =
|
|
5628
|
+
var e = qt(), t = qr(), r = (o, n) => {
|
|
5629
5629
|
let { options: i } = o, s = i.protocolVersion, l = s === 5 ? n.reasonCode : n.returnCode;
|
|
5630
5630
|
if (s !== 5) {
|
|
5631
5631
|
let c = new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`, l);
|
|
@@ -5680,19 +5680,19 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5680
5680
|
constructor(b) {
|
|
5681
5681
|
super(b), this.fill(0);
|
|
5682
5682
|
}
|
|
5683
|
-
}, h = class
|
|
5683
|
+
}, h = class Jt {
|
|
5684
5684
|
heap;
|
|
5685
5685
|
length;
|
|
5686
5686
|
static #l = !1;
|
|
5687
5687
|
static create(f) {
|
|
5688
5688
|
let g = c(f);
|
|
5689
5689
|
if (!g) return [];
|
|
5690
|
-
|
|
5691
|
-
let y = new
|
|
5692
|
-
return
|
|
5690
|
+
Jt.#l = !0;
|
|
5691
|
+
let y = new Jt(f, g);
|
|
5692
|
+
return Jt.#l = !1, y;
|
|
5693
5693
|
}
|
|
5694
5694
|
constructor(f, g) {
|
|
5695
|
-
if (!
|
|
5695
|
+
if (!Jt.#l) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
5696
5696
|
this.heap = new g(f), this.length = 0;
|
|
5697
5697
|
}
|
|
5698
5698
|
push(f) {
|
|
@@ -7680,7 +7680,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7680
7680
|
return i && i.__esModule ? i : { default: i };
|
|
7681
7681
|
};
|
|
7682
7682
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7683
|
-
var t = qr(), r = e(Fc()), o =
|
|
7683
|
+
var t = qr(), r = e(Fc()), o = qt(), n = (i, s) => {
|
|
7684
7684
|
i.log("_handleConnack");
|
|
7685
7685
|
let { options: l } = i, c = l.protocolVersion === 5 ? s.reasonCode : s.returnCode;
|
|
7686
7686
|
if (clearTimeout(i.connackTimer), delete i.topicAliasSend, s.properties) {
|
|
@@ -7803,7 +7803,7 @@ var Yt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7803
7803
|
return n && n.__esModule ? n : { default: n };
|
|
7804
7804
|
};
|
|
7805
7805
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.TypedEventEmitter = void 0;
|
|
7806
|
-
var t = e((Ct(), Pe(wt))), r =
|
|
7806
|
+
var t = e((Ct(), Pe(wt))), r = qt(), o = class {
|
|
7807
7807
|
};
|
|
7808
7808
|
a.TypedEventEmitter = o, (0, r.applyMixin)(o, t.default);
|
|
7809
7809
|
}), Hr = pe((a, e) => {
|
|
@@ -8518,7 +8518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8518
8518
|
return v && v.__esModule ? v : { default: v };
|
|
8519
8519
|
};
|
|
8520
8520
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8521
|
-
var n = o(wc()), i = Pt(), s = o(kc()), l = o(ht()), c = r(ba()), u = o(ya()), h = o(Hc()), p = o(ja()), b = o(Wc()), f =
|
|
8521
|
+
var n = o(wc()), i = Pt(), s = o(kc()), l = o(ht()), c = r(ba()), u = o(ya()), h = o(Hc()), p = o(ja()), b = o(Wc()), f = qt(), g = zc(), y = o(qa()), w = r(Wr()), m = globalThis.setImmediate || ((...v) => {
|
|
8522
8522
|
let E = v.shift();
|
|
8523
8523
|
(0, f.nextTick)(() => {
|
|
8524
8524
|
E(...v);
|
|
@@ -9240,7 +9240,7 @@ function xu() {
|
|
|
9240
9240
|
var a = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = lo();
|
|
9241
9241
|
return br = t.call(a, e), br;
|
|
9242
9242
|
}
|
|
9243
|
-
function
|
|
9243
|
+
function Ht() {
|
|
9244
9244
|
if (Li) return yr;
|
|
9245
9245
|
Li = !0;
|
|
9246
9246
|
var a, e = mu(), t = gu(), r = bu(), o = yu(), n = Ha(), i = rr(), s = vu(), l = Function, c = function(Y) {
|
|
@@ -9333,7 +9333,7 @@ function qt() {
|
|
|
9333
9333
|
function co() {
|
|
9334
9334
|
if (ji) return vr;
|
|
9335
9335
|
ji = !0;
|
|
9336
|
-
var a =
|
|
9336
|
+
var a = Ht(), e = a("%Object.defineProperty%", !0) || !1;
|
|
9337
9337
|
if (e) try {
|
|
9338
9338
|
e({}, "a", { value: 1 });
|
|
9339
9339
|
} catch {
|
|
@@ -9344,7 +9344,7 @@ function co() {
|
|
|
9344
9344
|
function Wa() {
|
|
9345
9345
|
if (Ni) return wr;
|
|
9346
9346
|
Ni = !0;
|
|
9347
|
-
var a =
|
|
9347
|
+
var a = Ht(), e = a("%Object.getOwnPropertyDescriptor%", !0);
|
|
9348
9348
|
if (e) try {
|
|
9349
9349
|
e([], "length");
|
|
9350
9350
|
} catch {
|
|
@@ -9387,7 +9387,7 @@ function Eu() {
|
|
|
9387
9387
|
function Au() {
|
|
9388
9388
|
if (Di) return xr;
|
|
9389
9389
|
Di = !0;
|
|
9390
|
-
var a =
|
|
9390
|
+
var a = Ht(), e = Su(), t = Eu()(), r = Wa(), o = rr(), n = a("%Math.floor%");
|
|
9391
9391
|
return xr = function(i, s) {
|
|
9392
9392
|
if (typeof i != "function") throw new o("`fn` is not a function");
|
|
9393
9393
|
if (typeof s != "number" || s < 0 || s > 4294967295 || n(s) !== s) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -9402,7 +9402,7 @@ function Au() {
|
|
|
9402
9402
|
function Iu() {
|
|
9403
9403
|
if (Fi) return Nt;
|
|
9404
9404
|
Fi = !0;
|
|
9405
|
-
var a = lo(), e =
|
|
9405
|
+
var a = lo(), e = Ht(), t = Au(), r = rr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), i = e("%Reflect.apply%", !0) || a.call(n, o), s = co(), l = e("%Math.max%");
|
|
9406
9406
|
Nt = function(u) {
|
|
9407
9407
|
if (typeof u != "function") throw new r("a function is required");
|
|
9408
9408
|
var h = i(a, n, arguments);
|
|
@@ -9416,7 +9416,7 @@ function Iu() {
|
|
|
9416
9416
|
function Tu() {
|
|
9417
9417
|
if ($i) return Sr;
|
|
9418
9418
|
$i = !0;
|
|
9419
|
-
var a =
|
|
9419
|
+
var a = Ht(), e = Iu(), t = e(a("String.prototype.indexOf"));
|
|
9420
9420
|
return Sr = function(r, o) {
|
|
9421
9421
|
var n = a(r, !!o);
|
|
9422
9422
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
@@ -9429,15 +9429,15 @@ function uo(a) {
|
|
|
9429
9429
|
throw new Error("Node.js process " + a + " is not supported by JSPM core outside of Node.js");
|
|
9430
9430
|
}
|
|
9431
9431
|
function Ou() {
|
|
9432
|
-
!Tt || !At || (Tt = !1, At.length ? it = At.concat(it) :
|
|
9432
|
+
!Tt || !At || (Tt = !1, At.length ? it = At.concat(it) : Zt = -1, it.length && za());
|
|
9433
9433
|
}
|
|
9434
9434
|
function za() {
|
|
9435
9435
|
if (!Tt) {
|
|
9436
9436
|
var a = setTimeout(Ou, 0);
|
|
9437
9437
|
Tt = !0;
|
|
9438
9438
|
for (var e = it.length; e; ) {
|
|
9439
|
-
for (At = it, it = []; ++
|
|
9440
|
-
|
|
9439
|
+
for (At = it, it = []; ++Zt < e; ) At && At[Zt].run();
|
|
9440
|
+
Zt = -1, e = it.length;
|
|
9441
9441
|
}
|
|
9442
9442
|
At = null, Tt = !1, clearTimeout(a);
|
|
9443
9443
|
}
|
|
@@ -9483,8 +9483,8 @@ function gt() {
|
|
|
9483
9483
|
function Du(a) {
|
|
9484
9484
|
return [];
|
|
9485
9485
|
}
|
|
9486
|
-
var it, Tt, At,
|
|
9487
|
-
le(), ue(), ce(), it = [], Tt = !1,
|
|
9486
|
+
var it, Tt, At, Zt, xo, So, Eo, Ao, Io, To, Co, Oo, Po, Mo, Ro, Lo, jo, No, Uo, Bo, Do, Fo, $o, qo, Ho, or, Wo, zo, Vo, Go, Ko, Yo, Qo, Jo, Xo, Zo, es, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ct, Kr, Er, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, ho, Ga = Ve(() => {
|
|
9487
|
+
le(), ue(), ce(), it = [], Tt = !1, Zt = -1, Va.prototype.run = function() {
|
|
9488
9488
|
this.fun.apply(null, this.array);
|
|
9489
9489
|
}, xo = "browser", So = "x64", Eo = "browser", Ao = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Io = ["/usr/bin/node"], To = [], Co = "v16.8.0", Oo = {}, Po = function(a, e) {
|
|
9490
9490
|
console.warn((e ? e + ": " : "") + a);
|
|
@@ -9656,7 +9656,7 @@ function Fu() {
|
|
|
9656
9656
|
var Ar, qi, Hi, $u = Ve(() => {
|
|
9657
9657
|
le(), ue(), ce(), Ga(), Ar = {}, qi = !1, Hi = Fu();
|
|
9658
9658
|
}), Ka = {};
|
|
9659
|
-
|
|
9659
|
+
Ft(Ka, { URL: () => il, Url: () => Za, default: () => qe, fileURLToPath: () => Qa, format: () => el, parse: () => nl, pathToFileURL: () => Ja, resolve: () => tl, resolveObject: () => rl });
|
|
9660
9660
|
function qu() {
|
|
9661
9661
|
if (Wi) return Ir;
|
|
9662
9662
|
Wi = !0;
|
|
@@ -9715,8 +9715,8 @@ function qu() {
|
|
|
9715
9715
|
return "[Function" + (nr ? ": " + nr : " (anonymous)") + "]" + (Rt.length > 0 ? " { " + I.call(Rt, ", ") + " }" : "");
|
|
9716
9716
|
}
|
|
9717
9717
|
if (K(ie)) {
|
|
9718
|
-
var
|
|
9719
|
-
return typeof ie == "object" && !D ? d(
|
|
9718
|
+
var Wt = D ? _.call(String(ie), /^(Symbol\(.*\))_[^)]*$/, "$1") : q.call(ie);
|
|
9719
|
+
return typeof ie == "object" && !D ? d(Wt) : Wt;
|
|
9720
9720
|
}
|
|
9721
9721
|
if (ve(ie)) {
|
|
9722
9722
|
for (var C = "<" + v.call(String(ie.nodeName)), L = ie.attributes || [], _e = 0; _e < L.length; _e++) C += " " + L[_e].name + "=" + M(J(L[_e].value), "double", Ce);
|
|
@@ -9757,7 +9757,7 @@ function qu() {
|
|
|
9757
9757
|
if (typeof window < "u" && ie === window) return "{ [object Window] }";
|
|
9758
9758
|
if (typeof globalThis < "u" && ie === globalThis || typeof Tr < "u" && ie === Tr) return "{ [object globalThis] }";
|
|
9759
9759
|
if (!te(ie) && !we(ie)) {
|
|
9760
|
-
var Qe = ke(ie, Ge),
|
|
9760
|
+
var Qe = ke(ie, Ge), zt = Y ? Y(ie) === Object.prototype : ie instanceof Object || ie.constructor === Object, Vt = ie instanceof Object ? "" : "null prototype", Gt = !zt && U && Object(ie) === ie && U in ie ? m.call(R(ie), 8, -1) : Vt ? "Object" : "", ir = zt || typeof ie.constructor != "function" ? "" : ie.constructor.name ? ie.constructor.name + " " : "", kt = ir + (Gt || Vt ? "[" + I.call(S.call([], Gt || [], Vt || []), ": ") + "] " : "");
|
|
9761
9761
|
return Qe.length === 0 ? kt + "{}" : et ? kt + "{" + he(Qe, et) + "}" : kt + "{ " + I.call(Qe, ", ") + " }";
|
|
9762
9762
|
}
|
|
9763
9763
|
return String(ie);
|
|
@@ -9955,7 +9955,7 @@ function qu() {
|
|
|
9955
9955
|
function Hu() {
|
|
9956
9956
|
if (zi) return Cr;
|
|
9957
9957
|
zi = !0;
|
|
9958
|
-
var a =
|
|
9958
|
+
var a = Ht(), e = Tu(), t = qu(), r = rr(), o = a("%WeakMap%", !0), n = a("%Map%", !0), i = e("WeakMap.prototype.get", !0), s = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), p = function(y, w) {
|
|
9959
9959
|
for (var m = y, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
|
|
9960
9960
|
}, b = function(y, w) {
|
|
9961
9961
|
var m = p(y, w);
|
|
@@ -10609,7 +10609,7 @@ var Xa, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Qi, vt, Ji, qe,
|
|
|
10609
10609
|
};
|
|
10610
10610
|
a.browserStreamBuilder = y;
|
|
10611
10611
|
}), mo = {};
|
|
10612
|
-
|
|
10612
|
+
Ft(mo, { Server: () => Le, Socket: () => Le, Stream: () => Le, _createServerHandle: () => Le, _normalizeArgs: () => Le, _setSimultaneousAccepts: () => Le, connect: () => Le, createConnection: () => Le, createServer: () => Le, default: () => ml, isIP: () => Le, isIPv4: () => Le, isIPv6: () => Le });
|
|
10613
10613
|
function Le() {
|
|
10614
10614
|
throw new Error("Node.js net module is not supported by JSPM core outside of Node.js");
|
|
10615
10615
|
}
|
|
@@ -10630,7 +10630,7 @@ var ml, gl = Ve(() => {
|
|
|
10630
10630
|
};
|
|
10631
10631
|
a.default = i;
|
|
10632
10632
|
}), yl = {};
|
|
10633
|
-
|
|
10633
|
+
Ft(yl, { default: () => vl });
|
|
10634
10634
|
var vl, Xu = Ve(() => {
|
|
10635
10635
|
le(), ue(), ce(), vl = {};
|
|
10636
10636
|
}), Ts = pe((a) => {
|
|
@@ -10893,7 +10893,7 @@ var vl, Xu = Ve(() => {
|
|
|
10893
10893
|
return u.connectAsync;
|
|
10894
10894
|
} });
|
|
10895
10895
|
var h = n(qa());
|
|
10896
|
-
a.KeepaliveManager = h.default, a.Client = i.default, o(ui(), a), o(
|
|
10896
|
+
a.KeepaliveManager = h.default, a.Client = i.default, o(ui(), a), o(qt(), a), o(ba(), a);
|
|
10897
10897
|
var p = qr();
|
|
10898
10898
|
Object.defineProperty(a, "ReasonCodes", { enumerable: !0, get: function() {
|
|
10899
10899
|
return p.ReasonCodes;
|
|
@@ -13270,12 +13270,12 @@ function Ut(a) {
|
|
|
13270
13270
|
let t = nd(e);
|
|
13271
13271
|
return t = t.replace(/```(\w*)\n([\s\S]*?)```/g, (r, o, n) => `<pre><code>${n.trim()}</code></pre>`), t = t.replace(/`([^`]+)`/g, "<code>$1</code>"), t = t.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), t = t.replace(/\*(.+?)\*/g, "<em>$1</em>"), t = t.replace(
|
|
13272
13272
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
13273
|
-
'<a href="$2" target="
|
|
13273
|
+
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
13274
13274
|
), t = t.replace(
|
|
13275
13275
|
/(^|[^"'>=(])(https?:\/\/[^\s<]+)/g,
|
|
13276
13276
|
(r, o, n) => {
|
|
13277
13277
|
const i = /[.,!?;:]+$/.exec(n), s = i ? i[0] : "", l = s ? n.slice(0, n.length - s.length) : n;
|
|
13278
|
-
return `${o}<a href="${l}" target="
|
|
13278
|
+
return `${o}<a href="${l}" target="_self" rel="noopener noreferrer">${l}</a>${s}`;
|
|
13279
13279
|
}
|
|
13280
13280
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
13281
13281
|
}
|
|
@@ -13434,7 +13434,7 @@ class ld extends HTMLElement {
|
|
|
13434
13434
|
const t = e.composedPath?.() ?? [], r = t.find(
|
|
13435
13435
|
(n) => n && n.tagName === "A"
|
|
13436
13436
|
);
|
|
13437
|
-
!r || !r.href || r.dataset.noModal !== void 0 || r.target === "_blank" || r.classList.contains("attachment") || t.some((n) => {
|
|
13437
|
+
!r || !r.href || r.dataset.noModal !== void 0 || r.target === "_blank" || r.target === "_self" || r.classList.contains("attachment") || t.some((n) => {
|
|
13438
13438
|
if (!n || !n.classList) return !1;
|
|
13439
13439
|
const i = n.classList;
|
|
13440
13440
|
return i.contains("bubble") && i.contains("user");
|
|
@@ -13580,7 +13580,7 @@ class ld extends HTMLElement {
|
|
|
13580
13580
|
gap: 4px;
|
|
13581
13581
|
padding: 10px 14px;
|
|
13582
13582
|
align-self: flex-start;
|
|
13583
|
-
background:
|
|
13583
|
+
background: transparent;
|
|
13584
13584
|
border-radius: var(--aikaara-radius, 12px);
|
|
13585
13585
|
border-bottom-left-radius: 4px;
|
|
13586
13586
|
}
|
|
@@ -14361,7 +14361,7 @@ function yd(a, e = 5e3) {
|
|
|
14361
14361
|
});
|
|
14362
14362
|
}
|
|
14363
14363
|
const vd = {
|
|
14364
|
-
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-
|
|
14364
|
+
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-C82ApGKH.mjs").then(({ registerAikaaraPaymentLink: a }) => a())
|
|
14365
14365
|
};
|
|
14366
14366
|
function wd(a) {
|
|
14367
14367
|
const e = `template:${a}`, t = window.__aikaara_descriptor__?.components?.[e];
|
|
@@ -14550,7 +14550,7 @@ class _d extends HTMLElement {
|
|
|
14550
14550
|
*/
|
|
14551
14551
|
mountLinkButton(e) {
|
|
14552
14552
|
const t = this.renderGen;
|
|
14553
|
-
import("./AikaaraLinkButton
|
|
14553
|
+
import("./AikaaraLinkButton-BRR8kKL8.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
14554
14554
|
if (t !== this.renderGen) return;
|
|
14555
14555
|
r();
|
|
14556
14556
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -16084,7 +16084,7 @@ function Fs(a) {
|
|
|
16084
16084
|
return 0;
|
|
16085
16085
|
}
|
|
16086
16086
|
}
|
|
16087
|
-
async function
|
|
16087
|
+
async function Dt(a) {
|
|
16088
16088
|
return typeof a == "function" ? await a() : a;
|
|
16089
16089
|
}
|
|
16090
16090
|
class Fd {
|
|
@@ -16121,7 +16121,7 @@ class Fd {
|
|
|
16121
16121
|
}), this.inflight);
|
|
16122
16122
|
}
|
|
16123
16123
|
async fetchOnce() {
|
|
16124
|
-
const e = await
|
|
16124
|
+
const e = await Dt(this.sessionToken), t = this.descriptor.authHeader ?? "Authorization", r = this.descriptor.authHeaderTemplate ?? "Bearer {token}", o = {
|
|
16125
16125
|
accept: "application/json",
|
|
16126
16126
|
...this.descriptor.headers ?? {},
|
|
16127
16127
|
[t]: r.replace("{token}", e)
|
|
@@ -16555,7 +16555,7 @@ async function eo(a, e, t = "before-chat") {
|
|
|
16555
16555
|
return h;
|
|
16556
16556
|
}
|
|
16557
16557
|
return u;
|
|
16558
|
-
}, s = await
|
|
16558
|
+
}, s = await Dt(e.sessionToken), l = {}, c = [800, 1500, 3e3, 5e3, 8e3];
|
|
16559
16559
|
for (let u = 0; u < r.length; u++) {
|
|
16560
16560
|
const h = r[u], p = n(h.url), b = h.method ?? (h.body ? "POST" : "GET"), f = { accept: "application/json", ...h.headers ?? {} };
|
|
16561
16561
|
if ((h.authHeader ?? "session") === "session") {
|
|
@@ -16832,7 +16832,7 @@ async function df(a) {
|
|
|
16832
16832
|
`mountFromSlug: widget_configs/${a.slug} descriptor must include "auth" block`
|
|
16833
16833
|
);
|
|
16834
16834
|
let i = null, s = a.user.id, l = a.user.name, c = "", u = a.user.token, h = null;
|
|
16835
|
-
const p = await
|
|
16835
|
+
const p = await Dt(a.user.token).catch(() => ""), b = typeof p == "string" && p.length > 0;
|
|
16836
16836
|
if (!b && o.sso?.tokenSource) {
|
|
16837
16837
|
h = new Jd({
|
|
16838
16838
|
descriptor: {
|
|
@@ -16883,6 +16883,7 @@ async function df(a) {
|
|
|
16883
16883
|
const m = w.fullName || l || s;
|
|
16884
16884
|
window.__aikaara_runtime__ = {
|
|
16885
16885
|
getChatJwt: async () => (await y.get()).token,
|
|
16886
|
+
getSessionToken: () => Dt(a.user.token),
|
|
16886
16887
|
identity: a.user.identity,
|
|
16887
16888
|
slug: a.slug,
|
|
16888
16889
|
// aikaara-ai base — lets the SDK derive same-origin API routes such as
|
|
@@ -16895,7 +16896,7 @@ async function df(a) {
|
|
|
16895
16896
|
} catch (I) {
|
|
16896
16897
|
return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
|
|
16897
16898
|
}
|
|
16898
|
-
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await
|
|
16899
|
+
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Dt(a.user.token)}`, E = a.hooks?.upload ?? (x && x.mode === "presigned-3step" ? gh({
|
|
16899
16900
|
...x,
|
|
16900
16901
|
authHeader: v
|
|
16901
16902
|
}) : x && x.mode === "direct" ? _l({
|
|
@@ -16928,7 +16929,7 @@ async function df(a) {
|
|
|
16928
16929
|
conversationScope: a.conversationScope,
|
|
16929
16930
|
onError: a.hooks?.onError,
|
|
16930
16931
|
onMessage: a.hooks?.onMessage,
|
|
16931
|
-
getLinkBearer: async (I) => I === "none" ? null : I === "chat" ? (await y.get()).token :
|
|
16932
|
+
getLinkBearer: async (I) => I === "none" ? null : I === "chat" ? (await y.get()).token : Dt(a.user.token)
|
|
16932
16933
|
});
|
|
16933
16934
|
return Object.assign(S, {
|
|
16934
16935
|
fullName: m,
|